Files
RmEye/Server/templates/js/vendor.68a7f1bc.js
2022-10-11 16:53:51 +08:00

32 lines
1.3 MiB
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(globalThis["webpackChunksyseye"]=globalThis["webpackChunksyseye"]||[]).push([[736],{7518:e=>{e.exports=function(e,t,n){const i=void 0!==e.__vccOpts?e.__vccOpts:e,r=i[t];if(void 0===r)i[t]=n;else for(const o in n)void 0===r[o]&&(r[o]=n[o])}},1959:(e,t,n)=>{"use strict";n.d(t,{Bj:()=>o,Fl:()=>Ge,IU:()=>ke,Jd:()=>S,PG:()=>Me,SU:()=>ze,Um:()=>be,WL:()=>He,X$:()=>T,X3:()=>Te,XI:()=>Ne,Xl:()=>Ae,dq:()=>Re,iH:()=>Ee,j:()=>C,lk:()=>M,qj:()=>_e,qq:()=>x,yT:()=>Ie});var i=n(2323);let r;class o{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&r&&(this.parent=r,this.index=(r.scopes||(r.scopes=[])).push(this)-1)}run(e){if(this.active){const t=r;try{return r=this,e()}finally{r=t}}else 0}on(){r=this}off(){r=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function a(e,t=r){t&&t.active&&t.effects.push(e)}const s=e=>{const t=new Set(e);return t.w=0,t.n=0,t},l=e=>(e.w&f)>0,u=e=>(e.n&f)>0,c=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=f},h=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const r=t[i];l(r)&&!u(r)?r.delete(e):t[n++]=r,r.w&=~f,r.n&=~f}t.length=n}},d=new WeakMap;let p=0,f=1;const g=30;let v;const y=Symbol(""),m=Symbol("");class x{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,a(this,n)}run(){if(!this.active)return this.fn();let e=v,t=b;while(e){if(e===this)return;e=e.parent}try{return this.parent=v,v=this,b=!0,f=1<<++p,p<=g?c(this):_(this),this.fn()}finally{p<=g&&h(this),f=1<<--p,v=this.parent,b=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){v===this?this.deferStop=!0:this.active&&(_(this),this.onStop&&this.onStop(),this.active=!1)}}function _(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let b=!0;const w=[];function S(){w.push(b),b=!1}function M(){const e=w.pop();b=void 0===e||e}function C(e,t,n){if(b&&v){let t=d.get(e);t||d.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=s());const r=void 0;I(i,r)}}function I(e,t){let n=!1;p<=g?u(e)||(e.n|=f,n=!l(e)):n=!e.has(v),n&&(e.add(v),v.deps.push(e))}function T(e,t,n,r,o,a){const l=d.get(e);if(!l)return;let u=[];if("clear"===t)u=[...l.values()];else if("length"===n&&(0,i.kJ)(e))l.forEach(((e,t)=>{("length"===t||t>=r)&&u.push(e)}));else switch(void 0!==n&&u.push(l.get(n)),t){case"add":(0,i.kJ)(e)?(0,i.S0)(n)&&u.push(l.get("length")):(u.push(l.get(y)),(0,i._N)(e)&&u.push(l.get(m)));break;case"delete":(0,i.kJ)(e)||(u.push(l.get(y)),(0,i._N)(e)&&u.push(l.get(m)));break;case"set":(0,i._N)(e)&&u.push(l.get(y));break}if(1===u.length)u[0]&&k(u[0]);else{const e=[];for(const t of u)t&&e.push(...t);k(s(e))}}function k(e,t){const n=(0,i.kJ)(e)?e:[...e];for(const i of n)i.computed&&A(i,t);for(const i of n)i.computed||A(i,t)}function A(e,t){(e!==v||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const D=(0,i.fY)("__proto__,__v_isRef,__isVue"),L=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(i.yk)),P=B(),O=B(!1,!0),R=B(!0),E=N();function N(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=ke(this);for(let t=0,r=this.length;t<r;t++)C(n,"get",t+"");const i=n[t](...e);return-1===i||!1===i?n[t](...e.map(ke)):i}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){S();const n=ke(this)[t].apply(this,e);return M(),n}})),e}function B(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?ye:ve:t?ge:fe).get(n))return n;const a=(0,i.kJ)(n);if(!e&&a&&(0,i.RI)(E,r))return Reflect.get(E,r,o);const s=Reflect.get(n,r,o);return((0,i.yk)(r)?L.has(r):D(r))?s:(e||C(n,"get",r),t?s:Re(s)?a&&(0,i.S0)(r)?s:s.value:(0,i.Kn)(s)?e?we(s):_e(s):s)}}const F=V(),z=V(!0);function V(e=!1){return function(t,n,r,o){let a=t[n];if(Ce(a)&&Re(a)&&!Re(r))return!1;if(!e&&!Ce(r)&&(Ie(r)||(r=ke(r),a=ke(a)),!(0,i.kJ)(t)&&Re(a)&&!Re(r)))return a.value=r,!0;const s=(0,i.kJ)(t)&&(0,i.S0)(n)?Number(n)<t.length:(0,i.RI)(t,n),l=Reflect.set(t,n,r,o);return t===ke(o)&&(s?(0,i.aU)(r,a)&&T(t,"set",n,r,a):T(t,"add",n,r)),l}}function H(e,t){const n=(0,i.RI)(e,t),r=e[t],o=Reflect.deleteProperty(e,t);return o&&n&&T(e,"delete",t,void 0,r),o}function q(e,t){const n=Reflect.has(e,t);return(0,i.yk)(t)&&L.has(t)||C(e,"has",t),n}function G(e){return C(e,"iterate",(0,i.kJ)(e)?"length":y),Reflect.ownKeys(e)}const W={get:P,set:F,deleteProperty:H,has:q,ownKeys:G},U={get:R,set(e,t){return!0},deleteProperty(e,t){return!0}},j=(0,i.l7)({},W,{get:O,set:z}),Z=e=>e,Y=e=>Reflect.getPrototypeOf(e);function $(e,t,n=!1,i=!1){e=e["__v_raw"];const r=ke(e),o=ke(t);n||(t!==o&&C(r,"get",t),C(r,"get",o));const{has:a}=Y(r),s=i?Z:n?Le:De;return a.call(r,t)?s(e.get(t)):a.call(r,o)?s(e.get(o)):void(e!==r&&e.get(t))}function X(e,t=!1){const n=this["__v_raw"],i=ke(n),r=ke(e);return t||(e!==r&&C(i,"has",e),C(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function K(e,t=!1){return e=e["__v_raw"],!t&&C(ke(e),"iterate",y),Reflect.get(e,"size",e)}function J(e){e=ke(e);const t=ke(this),n=Y(t),i=n.has.call(t,e);return i||(t.add(e),T(t,"add",e,e)),this}function Q(e,t){t=ke(t);const n=ke(this),{has:r,get:o}=Y(n);let a=r.call(n,e);a||(e=ke(e),a=r.call(n,e));const s=o.call(n,e);return n.set(e,t),a?(0,i.aU)(t,s)&&T(n,"set",e,t,s):T(n,"add",e,t),this}function ee(e){const t=ke(this),{has:n,get:i}=Y(t);let r=n.call(t,e);r||(e=ke(e),r=n.call(t,e));const o=i?i.call(t,e):void 0,a=t.delete(e);return r&&T(t,"delete",e,void 0,o),a}function te(){const e=ke(this),t=0!==e.size,n=void 0,i=e.clear();return t&&T(e,"clear",void 0,void 0,n),i}function ne(e,t){return function(n,i){const r=this,o=r["__v_raw"],a=ke(o),s=t?Z:e?Le:De;return!e&&C(a,"iterate",y),o.forEach(((e,t)=>n.call(i,s(e),s(t),r)))}}function ie(e,t,n){return function(...r){const o=this["__v_raw"],a=ke(o),s=(0,i._N)(a),l="entries"===e||e===Symbol.iterator&&s,u="keys"===e&&s,c=o[e](...r),h=n?Z:t?Le:De;return!t&&C(a,"iterate",u?m:y),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[h(e[0]),h(e[1])]:h(e),done:t}},[Symbol.iterator](){return this}}}}function re(e){return function(...t){return"delete"!==e&&this}}function oe(){const e={get(e){return $(this,e)},get size(){return K(this)},has:X,add:J,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return $(this,e,!1,!0)},get size(){return K(this)},has:X,add:J,set:Q,delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return $(this,e,!0)},get size(){return K(this,!0)},has(e){return X.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ne(!0,!1)},i={get(e){return $(this,e,!0,!0)},get size(){return K(this,!0)},has(e){return X.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ne(!0,!0)},r=["keys","values","entries",Symbol.iterator];return r.forEach((r=>{e[r]=ie(r,!1,!1),n[r]=ie(r,!0,!1),t[r]=ie(r,!1,!0),i[r]=ie(r,!0,!0)})),[e,n,t,i]}const[ae,se,le,ue]=oe();function ce(e,t){const n=t?e?ue:le:e?se:ae;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,i.RI)(n,r)&&r in t?n:t,r,o)}const he={get:ce(!1,!1)},de={get:ce(!1,!0)},pe={get:ce(!0,!1)};const fe=new WeakMap,ge=new WeakMap,ve=new WeakMap,ye=new WeakMap;function me(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xe(e){return e["__v_skip"]||!Object.isExtensible(e)?0:me((0,i.W7)(e))}function _e(e){return Ce(e)?e:Se(e,!1,W,he,fe)}function be(e){return Se(e,!1,j,de,ge)}function we(e){return Se(e,!0,U,pe,ve)}function Se(e,t,n,r,o){if(!(0,i.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const a=o.get(e);if(a)return a;const s=xe(e);if(0===s)return e;const l=new Proxy(e,2===s?r:n);return o.set(e,l),l}function Me(e){return Ce(e)?Me(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Ce(e){return!(!e||!e["__v_isReadonly"])}function Ie(e){return!(!e||!e["__v_isShallow"])}function Te(e){return Me(e)||Ce(e)}function ke(e){const t=e&&e["__v_raw"];return t?ke(t):e}function Ae(e){return(0,i.Nj)(e,"__v_skip",!0),e}const De=e=>(0,i.Kn)(e)?_e(e):e,Le=e=>(0,i.Kn)(e)?we(e):e;function Pe(e){b&&v&&(e=ke(e),I(e.dep||(e.dep=s())))}function Oe(e,t){e=ke(e),e.dep&&k(e.dep)}function Re(e){return!(!e||!0!==e.__v_isRef)}function Ee(e){return Be(e,!1)}function Ne(e){return Be(e,!0)}function Be(e,t){return Re(e)?e:new Fe(e,t)}class Fe{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ke(e),this._value=t?e:De(e)}get value(){return Pe(this),this._value}set value(e){e=this.__v_isShallow?e:ke(e),(0,i.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:De(e),Oe(this,e))}}function ze(e){return Re(e)?e.value:e}const Ve={get:(e,t,n)=>ze(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Re(r)&&!Re(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function He(e){return Me(e)?e:new Proxy(e,Ve)}class qe{constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new x(e,(()=>{this._dirty||(this._dirty=!0,Oe(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this["__v_isReadonly"]=n}get value(){const e=ke(this);return Pe(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ge(e,t,n=!1){let r,o;const a=(0,i.mf)(e);a?(r=e,o=i.dG):(r=e.get,o=e.set);const s=new qe(r,o,a||!o,n);return s}},3673:(e,t,n)=>{"use strict";n.d(t,{$d:()=>a,Ah:()=>De,FN:()=>Mn,Fl:()=>Vn,HY:()=>Gt,JJ:()=>$,Jd:()=>Ae,Ko:()=>We,P$:()=>ae,Q2:()=>He,Q6:()=>de,U2:()=>le,Uk:()=>pn,Us:()=>Dt,Wm:()=>un,Xn:()=>Te,Y3:()=>w,Y8:()=>ie,YP:()=>J,_:()=>ln,aZ:()=>pe,bv:()=>Ie,dl:()=>ye,f3:()=>X,h:()=>Hn,iD:()=>en,ic:()=>ke,j4:()=>tn,kq:()=>fn,lR:()=>qt,nK:()=>he,se:()=>me,up:()=>ze,w5:()=>V,wF:()=>Ce,wg:()=>$t,wy:()=>Ee});var i=n(1959),r=n(2323);function o(e,t,n,i){let r;try{r=i?e(...i):e()}catch(o){s(o,t,n)}return r}function a(e,t,n,i){if((0,r.mf)(e)){const a=o(e,t,n,i);return a&&(0,r.tI)(a)&&a.catch((e=>{s(e,t,n)})),a}const l=[];for(let r=0;r<e.length;r++)l.push(a(e[r],t,n,i));return l}function s(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const r=t.proxy,a=n;while(i){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,a))return;i=i.parent}const s=t.appContext.config.errorHandler;if(s)return void o(s,null,10,[e,r,a])}l(e,n,r,i)}function l(e,t,n,i=!0){console.error(e)}let u=!1,c=!1;const h=[];let d=0;const p=[];let f=null,g=0;const v=[];let y=null,m=0;const x=Promise.resolve();let _=null,b=null;function w(e){const t=_||x;return e?t.then(this?e.bind(this):e):t}function S(e){let t=d+1,n=h.length;while(t<n){const i=t+n>>>1,r=P(h[i]);r<e?t=i+1:n=i}return t}function M(e){h.length&&h.includes(e,u&&e.allowRecurse?d+1:d)||e===b||(null==e.id?h.push(e):h.splice(S(e.id),0,e),C())}function C(){u||c||(c=!0,_=x.then(O))}function I(e){const t=h.indexOf(e);t>d&&h.splice(t,1)}function T(e,t,n,i){(0,r.kJ)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?i+1:i)||n.push(e),C()}function k(e){T(e,f,p,g)}function A(e){T(e,y,v,m)}function D(e,t=null){if(p.length){for(b=t,f=[...new Set(p)],p.length=0,g=0;g<f.length;g++)f[g]();f=null,g=0,b=null,D(e,t)}}function L(e){if(D(),v.length){const e=[...new Set(v)];if(v.length=0,y)return void y.push(...e);for(y=e,y.sort(((e,t)=>P(e)-P(t))),m=0;m<y.length;m++)y[m]();y=null,m=0}}const P=e=>null==e.id?1/0:e.id;function O(e){c=!1,u=!0,D(e),h.sort(((e,t)=>P(e)-P(t)));r.dG;try{for(d=0;d<h.length;d++){const e=h[d];e&&!1!==e.active&&o(e,null,14)}}finally{d=0,h.length=0,L(e),u=!1,_=null,(h.length||p.length||v.length)&&O(e)}}new Set;new Map;function R(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||r.kT;let o=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in i){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:a}=i[e]||r.kT;a&&(o=n.map((e=>e.trim()))),t&&(o=n.map(r.He))}let u;let c=i[u=(0,r.hR)(t)]||i[u=(0,r.hR)((0,r._A)(t))];!c&&s&&(c=i[u=(0,r.hR)((0,r.rs)(t))]),c&&a(c,e,6,o);const h=i[u+"Once"];if(h){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,a(h,e,6,o)}}function E(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(void 0!==o)return o;const a=e.emits;let s={},l=!1;if(!(0,r.mf)(e)){const i=e=>{const n=E(e,t,!0);n&&(l=!0,(0,r.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return a||l?((0,r.kJ)(a)?a.forEach((e=>s[e]=null)):(0,r.l7)(s,a),i.set(e,s),s):(i.set(e,null),null)}function N(e,t){return!(!e||!(0,r.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,r.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,r.RI)(e,(0,r.rs)(t))||(0,r.RI)(e,t))}let B=null,F=null;function z(e){const t=B;return B=e,F=e&&e.type.__scopeId||null,t}function V(e,t=B,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&Jt(-1);const r=z(t),o=e(...n);return z(r),i._d&&Jt(1),o};return i._n=!0,i._c=!0,i._d=!0,i}function H(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:a,propsOptions:[l],slots:u,attrs:c,emit:h,render:d,renderCache:p,data:f,setupState:g,ctx:v,inheritAttrs:y}=e;let m,x;const _=z(e);try{if(4&n.shapeFlag){const e=o||i;m=gn(d.call(e,e,p,a,g,f,v)),x=c}else{const e=t;0,m=gn(e.length>1?e(a,{attrs:c,slots:u,emit:h}):e(a,null)),x=t.props?c:q(c)}}catch(w){Zt.length=0,s(w,e,1),m=un(Ut)}let b=m;if(x&&!1!==y){const e=Object.keys(x),{shapeFlag:t}=b;e.length&&7&t&&(l&&e.some(r.tR)&&(x=G(x,l)),b=dn(b,x))}return n.dirs&&(b=dn(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,z(_),m}const q=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,r.F7)(n))&&((t||(t={}))[n]=e[n]);return t},G=(e,t)=>{const n={};for(const i in e)(0,r.tR)(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function W(e,t,n){const{props:i,children:r,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!s||s&&s.$stable)||i!==a&&(i?!a||U(i,a,u):!!a);if(1024&l)return!0;if(16&l)return i?U(i,a,u):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==i[n]&&!N(u,n))return!0}}return!1}function U(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const o=i[r];if(t[o]!==e[o]&&!N(n,o))return!0}return!1}function j({vnode:e,parent:t},n){while(t&&t.subTree===e)(e=t.vnode).el=n,t=t.parent}const Z=e=>e.__isSuspense;function Y(e,t){t&&t.pendingBranch?(0,r.kJ)(e)?t.effects.push(...e):t.effects.push(e):A(e)}function $(e,t){if(Sn){let n=Sn.provides;const i=Sn.parent&&Sn.parent.provides;i===n&&(n=Sn.provides=Object.create(i)),n[e]=t}else 0}function X(e,t,n=!1){const i=Sn||B;if(i){const o=null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&(0,r.mf)(t)?t.call(i.proxy):t}else 0}const K={};function J(e,t,n){return Q(e,t,n)}function Q(e,t,{immediate:n,deep:s,flush:l,onTrack:u,onTrigger:c}=r.kT){const h=Sn;let d,p,f=!1,g=!1;if((0,i.dq)(e)?(d=()=>e.value,f=(0,i.yT)(e)):(0,i.PG)(e)?(d=()=>e,s=!0):(0,r.kJ)(e)?(g=!0,f=e.some((e=>(0,i.PG)(e)||(0,i.yT)(e))),d=()=>e.map((e=>(0,i.dq)(e)?e.value:(0,i.PG)(e)?ne(e):(0,r.mf)(e)?o(e,h,2):void 0))):d=(0,r.mf)(e)?t?()=>o(e,h,2):()=>{if(!h||!h.isUnmounted)return p&&p(),a(e,h,3,[v])}:r.dG,t&&s){const e=d;d=()=>ne(e())}let v=e=>{p=_.onStop=()=>{o(e,h,4)}};if(Dn)return v=r.dG,t?n&&a(t,h,3,[d(),g?[]:void 0,v]):d(),r.dG;let y=g?[]:K;const m=()=>{if(_.active)if(t){const e=_.run();(s||f||(g?e.some(((e,t)=>(0,r.aU)(e,y[t]))):(0,r.aU)(e,y)))&&(p&&p(),a(t,h,3,[e,y===K?void 0:y,v]),y=e)}else _.run()};let x;m.allowRecurse=!!t,x="sync"===l?m:"post"===l?()=>At(m,h&&h.suspense):()=>k(m);const _=new i.qq(d,x);return t?n?m():y=_.run():"post"===l?At(_.run.bind(_),h&&h.suspense):_.run(),()=>{_.stop(),h&&h.scope&&(0,r.Od)(h.scope.effects,_)}}function ee(e,t,n){const i=this.proxy,o=(0,r.HD)(e)?e.includes(".")?te(i,e):()=>i[e]:e.bind(i,i);let a;(0,r.mf)(t)?a=t:(a=t.handler,n=t);const s=Sn;Cn(this);const l=Q(o,a.bind(i),n);return s?Cn(s):In(),l}function te(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function ne(e,t){if(!(0,r.Kn)(e)||e["__v_skip"])return e;if(t=t||new Set,t.has(e))return e;if(t.add(e),(0,i.dq)(e))ne(e.value,t);else if((0,r.kJ)(e))for(let n=0;n<e.length;n++)ne(e[n],t);else if((0,r.DM)(e)||(0,r._N)(e))e.forEach((e=>{ne(e,t)}));else if((0,r.PO)(e))for(const n in e)ne(e[n],t);return e}function ie(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ie((()=>{e.isMounted=!0})),Ae((()=>{e.isUnmounting=!0})),e}const re=[Function,Array],oe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:re,onEnter:re,onAfterEnter:re,onEnterCancelled:re,onBeforeLeave:re,onLeave:re,onAfterLeave:re,onLeaveCancelled:re,onBeforeAppear:re,onAppear:re,onAfterAppear:re,onAppearCancelled:re},setup(e,{slots:t}){const n=Mn(),r=ie();let o;return()=>{const a=t.default&&de(t.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){let e=!1;for(const t of a)if(t.type!==Ut){0,s=t,e=!0;break}}const l=(0,i.IU)(e),{mode:u}=l;if(r.isLeaving)return ue(s);const c=ce(s);if(!c)return ue(s);const h=le(c,l,r,n);he(c,h);const d=n.subTree,p=d&&ce(d);let f=!1;const{getTransitionKey:g}=c.type;if(g){const e=g();void 0===o?o=e:e!==o&&(o=e,f=!0)}if(p&&p.type!==Ut&&(!rn(c,p)||f)){const e=le(p,l,r,n);if(he(p,e),"out-in"===u)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},ue(s);"in-out"===u&&c.type!==Ut&&(e.delayLeave=(e,t,n)=>{const i=se(r,p);i[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=n})}return s}}},ae=oe;function se(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function le(e,t,n,i){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:h,onEnterCancelled:d,onBeforeLeave:p,onLeave:f,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:y,onAppear:m,onAfterAppear:x,onAppearCancelled:_}=t,b=String(e.key),w=se(n,e),S=(e,t)=>{e&&a(e,i,9,t)},M=(e,t)=>{const n=t[1];S(e,t),(0,r.kJ)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:s,persisted:l,beforeEnter(t){let i=u;if(!n.isMounted){if(!o)return;i=y||u}t._leaveCb&&t._leaveCb(!0);const r=w[b];r&&rn(e,r)&&r.el._leaveCb&&r.el._leaveCb(),S(i,[t])},enter(e){let t=c,i=h,r=d;if(!n.isMounted){if(!o)return;t=m||c,i=x||h,r=_||d}let a=!1;const s=e._enterCb=t=>{a||(a=!0,S(t?r:i,[e]),C.delayedLeave&&C.delayedLeave(),e._enterCb=void 0)};t?M(t,[e,s]):s()},leave(t,i){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return i();S(p,[t]);let o=!1;const a=t._leaveCb=n=>{o||(o=!0,i(),S(n?v:g,[t]),t._leaveCb=void 0,w[r]===e&&delete w[r])};w[r]=e,f?M(f,[t,a]):a()},clone(e){return le(e,t,n,i)}};return C}function ue(e){if(ge(e))return e=dn(e),e.children=null,e}function ce(e){return ge(e)?e.children?e.children[0]:void 0:e}function he(e,t){6&e.shapeFlag&&e.component?he(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function de(e,t=!1,n){let i=[],r=0;for(let o=0;o<e.length;o++){let a=e[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===Gt?(128&a.patchFlag&&r++,i=i.concat(de(a.children,t,s))):(t||a.type!==Ut)&&i.push(null!=s?dn(a,{key:s}):a)}if(r>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}function pe(e){return(0,r.mf)(e)?{setup:e,name:e.name}:e}const fe=e=>!!e.type.__asyncLoader;const ge=e=>e.type.__isKeepAlive;RegExp,RegExp;function ve(e,t){return(0,r.kJ)(e)?e.some((e=>ve(e,t))):(0,r.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function ye(e,t){xe(e,"a",t)}function me(e,t){xe(e,"da",t)}function xe(e,t,n=Sn){const i=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Se(t,i,n),n){let e=n.parent;while(e&&e.parent)ge(e.parent.vnode)&&_e(i,t,n,e),e=e.parent}}function _e(e,t,n,i){const o=Se(t,e,i,!0);De((()=>{(0,r.Od)(i[t],o)}),n)}function be(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function we(e){return 128&e.shapeFlag?e.ssContent:e}function Se(e,t,n=Sn,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;(0,i.Jd)(),Cn(n);const o=a(t,n,e,r);return In(),(0,i.lk)(),o});return r?o.unshift(s):o.push(s),s}}const Me=e=>(t,n=Sn)=>(!Dn||"sp"===e)&&Se(e,t,n),Ce=Me("bm"),Ie=Me("m"),Te=Me("bu"),ke=Me("u"),Ae=Me("bum"),De=Me("um"),Le=Me("sp"),Pe=Me("rtg"),Oe=Me("rtc");function Re(e,t=Sn){Se("ec",e,t)}function Ee(e,t){const n=B;if(null===n)return e;const i=Bn(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[e,n,s,l=r.kT]=t[a];(0,r.mf)(e)&&(e={mounted:e,updated:e}),e.deep&&ne(n),o.push({dir:e,instance:i,value:n,oldValue:void 0,arg:s,modifiers:l})}return e}function Ne(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let l=0;l<o.length;l++){const u=o[l];s&&(u.oldValue=s[l].value);let c=u.dir[r];c&&((0,i.Jd)(),a(c,n,8,[e.el,u,e,t]),(0,i.lk)())}}const Be="components",Fe="directives";function ze(e,t){return qe(Be,e,!0,t)||e}const Ve=Symbol();function He(e){return qe(Fe,e)}function qe(e,t,n=!0,i=!1){const o=B||Sn;if(o){const n=o.type;if(e===Be){const e=Fn(n,!1);if(e&&(e===t||e===(0,r._A)(t)||e===(0,r.kC)((0,r._A)(t))))return n}const a=Ge(o[e]||n[e],t)||Ge(o.appContext[e],t);return!a&&i?n:a}}function Ge(e,t){return e&&(e[t]||e[(0,r._A)(t)]||e[(0,r.kC)((0,r._A)(t))])}function We(e,t,n,i){let o;const a=n&&n[i];if((0,r.kJ)(e)||(0,r.HD)(e)){o=new Array(e.length);for(let n=0,i=e.length;n<i;n++)o[n]=t(e[n],n,void 0,a&&a[n])}else if("number"===typeof e){0,o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,a&&a[n])}else if((0,r.Kn)(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let i=0,r=n.length;i<r;i++){const r=n[i];o[i]=t(e[r],r,i,a&&a[i])}}else o=[];return n&&(n[i]=o),o}const Ue=e=>e?Tn(e)?Bn(e)||e.proxy:Ue(e.parent):null,je=(0,r.l7)(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=>Ue(e.parent),$root:e=>Ue(e.root),$emit:e=>e.emit,$options:e=>Qe(e),$forceUpdate:e=>e.f||(e.f=()=>M(e.update)),$nextTick:e=>e.n||(e.n=w.bind(e.proxy)),$watch:e=>ee.bind(e)}),Ze={get({_:e},t){const{ctx:n,setupState:o,data:a,props:s,accessCache:l,type:u,appContext:c}=e;let h;if("$"!==t[0]){const i=l[t];if(void 0!==i)switch(i){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(o!==r.kT&&(0,r.RI)(o,t))return l[t]=1,o[t];if(a!==r.kT&&(0,r.RI)(a,t))return l[t]=2,a[t];if((h=e.propsOptions[0])&&(0,r.RI)(h,t))return l[t]=3,s[t];if(n!==r.kT&&(0,r.RI)(n,t))return l[t]=4,n[t];Ye&&(l[t]=0)}}const d=je[t];let p,f;return d?("$attrs"===t&&(0,i.j)(e,"get",t),d(e)):(p=u.__cssModules)&&(p=p[t])?p:n!==r.kT&&(0,r.RI)(n,t)?(l[t]=4,n[t]):(f=c.config.globalProperties,(0,r.RI)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:i,setupState:o,ctx:a}=e;return o!==r.kT&&(0,r.RI)(o,t)?(o[t]=n,!0):i!==r.kT&&(0,r.RI)(i,t)?(i[t]=n,!0):!(0,r.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:a}},s){let l;return!!n[s]||e!==r.kT&&(0,r.RI)(e,s)||t!==r.kT&&(0,r.RI)(t,s)||(l=a[0])&&(0,r.RI)(l,s)||(0,r.RI)(i,s)||(0,r.RI)(je,s)||(0,r.RI)(o.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,r.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Ye=!0;function $e(e){const t=Qe(e),n=e.proxy,o=e.ctx;Ye=!1,t.beforeCreate&&Ke(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:l,watch:u,provide:c,inject:h,created:d,beforeMount:p,mounted:f,beforeUpdate:g,updated:v,activated:y,deactivated:m,beforeDestroy:x,beforeUnmount:_,destroyed:b,unmounted:w,render:S,renderTracked:M,renderTriggered:C,errorCaptured:I,serverPrefetch:T,expose:k,inheritAttrs:A,components:D,directives:L,filters:P}=t,O=null;if(h&&Xe(h,o,O,e.appContext.config.unwrapInjectedRef),l)for(const i in l){const e=l[i];(0,r.mf)(e)&&(o[i]=e.bind(n))}if(a){0;const t=a.call(n,n);0,(0,r.Kn)(t)&&(e.data=(0,i.qj)(t))}if(Ye=!0,s)for(const i in s){const e=s[i],t=(0,r.mf)(e)?e.bind(n,n):(0,r.mf)(e.get)?e.get.bind(n,n):r.dG;0;const a=!(0,r.mf)(e)&&(0,r.mf)(e.set)?e.set.bind(n):r.dG,l=Vn({get:t,set:a});Object.defineProperty(o,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(u)for(const i in u)Je(u[i],o,n,i);if(c){const e=(0,r.mf)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{$(t,e[t])}))}function R(e,t){(0,r.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&Ke(d,e,"c"),R(Ce,p),R(Ie,f),R(Te,g),R(ke,v),R(ye,y),R(me,m),R(Re,I),R(Oe,M),R(Pe,C),R(Ae,_),R(De,w),R(Le,T),(0,r.kJ)(k))if(k.length){const t=e.exposed||(e.exposed={});k.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===r.dG&&(e.render=S),null!=A&&(e.inheritAttrs=A),D&&(e.components=D),L&&(e.directives=L)}function Xe(e,t,n=r.dG,o=!1){(0,r.kJ)(e)&&(e=rt(e));for(const a in e){const n=e[a];let s;s=(0,r.Kn)(n)?"default"in n?X(n.from||a,n.default,!0):X(n.from||a):X(n),(0,i.dq)(s)&&o?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[a]=s}}function Ke(e,t,n){a((0,r.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Je(e,t,n,i){const o=i.includes(".")?te(n,i):()=>n[i];if((0,r.HD)(e)){const n=t[e];(0,r.mf)(n)&&J(o,n)}else if((0,r.mf)(e))J(o,e.bind(n));else if((0,r.Kn)(e))if((0,r.kJ)(e))e.forEach((e=>Je(e,t,n,i)));else{const i=(0,r.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,r.mf)(i)&&J(o,i,e)}else 0}function Qe(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:r.length||n||i?(l={},r.length&&r.forEach((e=>et(l,e,a,!0))),et(l,t,a)):l=t,o.set(t,l),l}function et(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&et(e,o,n,!0),r&&r.forEach((t=>et(e,t,n,!0)));for(const a in t)if(i&&"expose"===a);else{const i=tt[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const tt={data:nt,props:at,emits:at,methods:at,computed:at,beforeCreate:ot,created:ot,beforeMount:ot,mounted:ot,beforeUpdate:ot,updated:ot,beforeDestroy:ot,beforeUnmount:ot,destroyed:ot,unmounted:ot,activated:ot,deactivated:ot,errorCaptured:ot,serverPrefetch:ot,components:at,directives:at,watch:st,provide:nt,inject:it};function nt(e,t){return t?e?function(){return(0,r.l7)((0,r.mf)(e)?e.call(this,this):e,(0,r.mf)(t)?t.call(this,this):t)}:t:e}function it(e,t){return at(rt(e),rt(t))}function rt(e){if((0,r.kJ)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ot(e,t){return e?[...new Set([].concat(e,t))]:t}function at(e,t){return e?(0,r.l7)((0,r.l7)(Object.create(null),e),t):t}function st(e,t){if(!e)return t;if(!t)return e;const n=(0,r.l7)(Object.create(null),e);for(const i in t)n[i]=ot(e[i],t[i]);return n}function lt(e,t,n,o=!1){const a={},s={};(0,r.Nj)(s,on,1),e.propsDefaults=Object.create(null),ct(e,t,a,s);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);n?e.props=o?a:(0,i.Um)(a):e.type.props?e.props=a:e.props=s,e.attrs=s}function ut(e,t,n,o){const{props:a,attrs:s,vnode:{patchFlag:l}}=e,u=(0,i.IU)(a),[c]=e.propsOptions;let h=!1;if(!(o||l>0)||16&l){let i;ct(e,t,a,s)&&(h=!0);for(const o in u)t&&((0,r.RI)(t,o)||(i=(0,r.rs)(o))!==o&&(0,r.RI)(t,i))||(c?!n||void 0===n[o]&&void 0===n[i]||(a[o]=ht(c,u,o,void 0,e,!0)):delete a[o]);if(s!==u)for(const e in s)t&&(0,r.RI)(t,e)||(delete s[e],h=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){let o=n[i];if(N(e.emitsOptions,o))continue;const l=t[o];if(c)if((0,r.RI)(s,o))l!==s[o]&&(s[o]=l,h=!0);else{const t=(0,r._A)(o);a[t]=ht(c,u,t,l,e,!1)}else l!==s[o]&&(s[o]=l,h=!0)}}h&&(0,i.X$)(e,"set","$attrs")}function ct(e,t,n,o){const[a,s]=e.propsOptions;let l,u=!1;if(t)for(let i in t){if((0,r.Gg)(i))continue;const c=t[i];let h;a&&(0,r.RI)(a,h=(0,r._A)(i))?s&&s.includes(h)?(l||(l={}))[h]=c:n[h]=c:N(e.emitsOptions,i)||i in o&&c===o[i]||(o[i]=c,u=!0)}if(s){const t=(0,i.IU)(n),o=l||r.kT;for(let i=0;i<s.length;i++){const l=s[i];n[l]=ht(a,t,l,o[l],e,!(0,r.RI)(o,l))}}return u}function ht(e,t,n,i,o,a){const s=e[n];if(null!=s){const e=(0,r.RI)(s,"default");if(e&&void 0===i){const e=s.default;if(s.type!==Function&&(0,r.mf)(e)){const{propsDefaults:r}=o;n in r?i=r[n]:(Cn(o),i=r[n]=e.call(null,t),In())}else i=e}s[0]&&(a&&!e?i=!1:!s[1]||""!==i&&i!==(0,r.rs)(n)||(i=!0))}return i}function dt(e,t,n=!1){const i=t.propsCache,o=i.get(e);if(o)return o;const a=e.props,s={},l=[];let u=!1;if(!(0,r.mf)(e)){const i=e=>{u=!0;const[n,i]=dt(e,t,!0);(0,r.l7)(s,n),i&&l.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!a&&!u)return i.set(e,r.Z6),r.Z6;if((0,r.kJ)(a))for(let h=0;h<a.length;h++){0;const e=(0,r._A)(a[h]);pt(e)&&(s[e]=r.kT)}else if(a){0;for(const e in a){const t=(0,r._A)(e);if(pt(t)){const n=a[e],i=s[t]=(0,r.kJ)(n)||(0,r.mf)(n)?{type:n}:n;if(i){const e=vt(Boolean,i.type),n=vt(String,i.type);i[0]=e>-1,i[1]=n<0||e<n,(e>-1||(0,r.RI)(i,"default"))&&l.push(t)}}}}const c=[s,l];return i.set(e,c),c}function pt(e){return"$"!==e[0]}function ft(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function gt(e,t){return ft(e)===ft(t)}function vt(e,t){return(0,r.kJ)(t)?t.findIndex((t=>gt(t,e))):(0,r.mf)(t)&&gt(t,e)?0:-1}const yt=e=>"_"===e[0]||"$stable"===e,mt=e=>(0,r.kJ)(e)?e.map(gn):[gn(e)],xt=(e,t,n)=>{if(t._n)return t;const i=V(((...e)=>mt(t(...e))),n);return i._c=!1,i},_t=(e,t,n)=>{const i=e._ctx;for(const o in e){if(yt(o))continue;const n=e[o];if((0,r.mf)(n))t[o]=xt(o,n,i);else if(null!=n){0;const e=mt(n);t[o]=()=>e}}},bt=(e,t)=>{const n=mt(t);e.slots.default=()=>n},wt=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,i.IU)(t),(0,r.Nj)(t,"_",n)):_t(t,e.slots={})}else e.slots={},t&&bt(e,t);(0,r.Nj)(e.slots,on,1)},St=(e,t,n)=>{const{vnode:i,slots:o}=e;let a=!0,s=r.kT;if(32&i.shapeFlag){const e=t._;e?n&&1===e?a=!1:((0,r.l7)(o,t),n||1!==e||delete o._):(a=!t.$stable,_t(t,o)),s=t}else t&&(bt(e,t),s={default:1});if(a)for(const r in o)yt(r)||r in s||delete o[r]};function Mt(){return{app:null,config:{isNativeTag:r.NO,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 Ct=0;function It(e,t){return function(n,i=null){(0,r.mf)(n)||(n=Object.assign({},n)),null==i||(0,r.Kn)(i)||(i=null);const o=Mt(),a=new Set;let s=!1;const l=o.app={_uid:Ct++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:qn,get config(){return o.config},set config(e){0},use(e,...t){return a.has(e)||(e&&(0,r.mf)(e.install)?(a.add(e),e.install(l,...t)):(0,r.mf)(e)&&(a.add(e),e(l,...t))),l},mixin(e){return o.mixins.includes(e)||o.mixins.push(e),l},component(e,t){return t?(o.components[e]=t,l):o.components[e]},directive(e,t){return t?(o.directives[e]=t,l):o.directives[e]},mount(r,a,u){if(!s){0;const c=un(n,i);return c.appContext=o,a&&t?t(c,r):e(c,r,u),s=!0,l._container=r,r.__vue_app__=l,Bn(c.component)||c.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return o.provides[e]=t,l}};return l}}function Tt(e,t,n,a,s=!1){if((0,r.kJ)(e))return void e.forEach(((e,i)=>Tt(e,t&&((0,r.kJ)(t)?t[i]:t),n,a,s)));if(fe(a)&&!s)return;const l=4&a.shapeFlag?Bn(a.component)||a.component.proxy:a.el,u=s?null:l,{i:c,r:h}=e;const d=t&&t.r,p=c.refs===r.kT?c.refs={}:c.refs,f=c.setupState;if(null!=d&&d!==h&&((0,r.HD)(d)?(p[d]=null,(0,r.RI)(f,d)&&(f[d]=null)):(0,i.dq)(d)&&(d.value=null)),(0,r.mf)(h))o(h,c,12,[u,p]);else{const t=(0,r.HD)(h),o=(0,i.dq)(h);if(t||o){const i=()=>{if(e.f){const n=t?p[h]:h.value;s?(0,r.kJ)(n)&&(0,r.Od)(n,l):(0,r.kJ)(n)?n.includes(l)||n.push(l):t?(p[h]=[l],(0,r.RI)(f,h)&&(f[h]=p[h])):(h.value=[l],e.k&&(p[e.k]=h.value))}else t?(p[h]=u,(0,r.RI)(f,h)&&(f[h]=u)):o&&(h.value=u,e.k&&(p[e.k]=u))};u?(i.id=-1,At(i,n)):i()}else 0}}function kt(){}const At=Y;function Dt(e){return Lt(e)}function Lt(e,t){kt();const n=(0,r.E9)();n.__VUE__=!0;const{insert:o,remove:a,patchProp:s,createElement:l,createText:u,createComment:c,setText:h,setElementText:d,parentNode:p,nextSibling:f,setScopeId:g=r.dG,cloneNode:v,insertStaticContent:y}=e,m=(e,t,n,i=null,r=null,o=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!rn(e,t)&&(i=Q(e),Y(e,r,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:h}=t;switch(u){case Wt:x(e,t,n,i);break;case Ut:_(e,t,n,i);break;case jt:null==e&&b(t,n,i,a);break;case Gt:E(e,t,n,i,r,o,a,s,l);break;default:1&h?C(e,t,n,i,r,o,a,s,l):6&h?N(e,t,n,i,r,o,a,s,l):(64&h||128&h)&&u.process(e,t,n,i,r,o,a,s,l,te)}null!=c&&r&&Tt(c,e&&e.ref,o,t||e,!t)},x=(e,t,n,i)=>{if(null==e)o(t.el=u(t.children),n,i);else{const n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},_=(e,t,n,i)=>{null==e?o(t.el=c(t.children||""),n,i):t.el=e.el},b=(e,t,n,i)=>{[e.el,e.anchor]=y(e.children,t,n,i,e.el,e.anchor)},w=({el:e,anchor:t},n,i)=>{let r;while(e&&e!==t)r=f(e),o(e,n,i),e=r;o(t,n,i)},S=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=f(e),a(e),e=n;a(t)},C=(e,t,n,i,r,o,a,s,l)=>{a=a||"svg"===t.type,null==e?T(t,n,i,r,o,a,s,l):P(e,t,r,o,a,s,l)},T=(e,t,n,i,a,u,c,h)=>{let p,f;const{type:g,props:y,shapeFlag:m,transition:x,patchFlag:_,dirs:b}=e;if(e.el&&void 0!==v&&-1===_)p=e.el=v(e.el);else{if(p=e.el=l(e.type,u,y&&y.is,y),8&m?d(p,e.children):16&m&&A(e.children,p,null,i,a,u&&"foreignObject"!==g,c,h),b&&Ne(e,null,i,"created"),y){for(const t in y)"value"===t||(0,r.Gg)(t)||s(p,t,null,y[t],u,e.children,i,a,J);"value"in y&&s(p,"value",null,y.value),(f=y.onVnodeBeforeMount)&&xn(f,i,e)}k(p,e,e.scopeId,c,i)}b&&Ne(e,null,i,"beforeMount");const w=(!a||a&&!a.pendingBranch)&&x&&!x.persisted;w&&x.beforeEnter(p),o(p,t,n),((f=y&&y.onVnodeMounted)||w||b)&&At((()=>{f&&xn(f,i,e),w&&x.enter(p),b&&Ne(e,null,i,"mounted")}),a)},k=(e,t,n,i,r)=>{if(n&&g(e,n),i)for(let o=0;o<i.length;o++)g(e,i[o]);if(r){let n=r.subTree;if(t===n){const t=r.vnode;k(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},A=(e,t,n,i,r,o,a,s,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=s?vn(e[u]):gn(e[u]);m(null,l,t,n,i,r,o,a,s)}},P=(e,t,n,i,o,a,l)=>{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:h,dirs:p}=t;c|=16&e.patchFlag;const f=e.props||r.kT,g=t.props||r.kT;let v;n&&Pt(n,!1),(v=g.onVnodeBeforeUpdate)&&xn(v,n,t,e),p&&Ne(t,e,n,"beforeUpdate"),n&&Pt(n,!0);const y=o&&"foreignObject"!==t.type;if(h?O(e.dynamicChildren,h,u,n,i,y,a):l||q(e,t,u,null,n,i,y,a,!1),c>0){if(16&c)R(u,t,f,g,n,i,o);else if(2&c&&f.class!==g.class&&s(u,"class",null,g.class,o),4&c&&s(u,"style",f.style,g.style,o),8&c){const r=t.dynamicProps;for(let t=0;t<r.length;t++){const a=r[t],l=f[a],c=g[a];c===l&&"value"!==a||s(u,a,l,c,o,e.children,n,i,J)}}1&c&&e.children!==t.children&&d(u,t.children)}else l||null!=h||R(u,t,f,g,n,i,o);((v=g.onVnodeUpdated)||p)&&At((()=>{v&&xn(v,n,t,e),p&&Ne(t,e,n,"updated")}),i)},O=(e,t,n,i,r,o,a)=>{for(let s=0;s<t.length;s++){const l=e[s],u=t[s],c=l.el&&(l.type===Gt||!rn(l,u)||70&l.shapeFlag)?p(l.el):n;m(l,u,c,null,i,r,o,a,!0)}},R=(e,t,n,i,o,a,l)=>{if(n!==i){for(const u in i){if((0,r.Gg)(u))continue;const c=i[u],h=n[u];c!==h&&"value"!==u&&s(e,u,h,c,l,t.children,o,a,J)}if(n!==r.kT)for(const u in n)(0,r.Gg)(u)||u in i||s(e,u,n[u],null,l,t.children,o,a,J);"value"in i&&s(e,"value",n.value,i.value)}},E=(e,t,n,i,r,a,s,l,c)=>{const h=t.el=e?e.el:u(""),d=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(o(h,n,i),o(d,n,i),A(t.children,n,d,r,a,s,l,c)):p>0&&64&p&&f&&e.dynamicChildren?(O(e.dynamicChildren,f,n,r,a,s,l),(null!=t.key||r&&t===r.subTree)&&Ot(e,t,!0)):q(e,t,n,d,r,a,s,l,c)},N=(e,t,n,i,r,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,i,a,l):B(t,n,i,r,o,a,l):F(e,t,l)},B=(e,t,n,i,r,o,a)=>{const s=e.component=wn(e,i,r);if(ge(e)&&(s.ctx.renderer=te),Ln(s),s.asyncDep){if(r&&r.registerDep(s,z),!e.el){const e=s.subTree=un(Ut);_(null,e,t,n)}}else z(s,e,t,n,r,o,a)},F=(e,t,n)=>{const i=t.component=e.component;if(W(e,t,n)){if(i.asyncDep&&!i.asyncResolved)return void V(i,t,n);i.next=t,I(i.update),i.update()}else t.el=e.el,i.vnode=t},z=(e,t,n,o,a,s,l)=>{const u=()=>{if(e.isMounted){let t,{next:n,bu:i,u:o,parent:u,vnode:c}=e,h=n;0,Pt(e,!1),n?(n.el=c.el,V(e,n,l)):n=c,i&&(0,r.ir)(i),(t=n.props&&n.props.onVnodeBeforeUpdate)&&xn(t,u,n,c),Pt(e,!0);const d=H(e);0;const f=e.subTree;e.subTree=d,m(f,d,p(f.el),Q(f),e,a,s),n.el=d.el,null===h&&j(e,d.el),o&&At(o,a),(t=n.props&&n.props.onVnodeUpdated)&&At((()=>xn(t,u,n,c)),a)}else{let i;const{el:l,props:u}=t,{bm:c,m:h,parent:d}=e,p=fe(t);if(Pt(e,!1),c&&(0,r.ir)(c),!p&&(i=u&&u.onVnodeBeforeMount)&&xn(i,d,t),Pt(e,!0),l&&ie){const n=()=>{e.subTree=H(e),ie(l,e.subTree,e,a,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const i=e.subTree=H(e);0,m(null,i,n,o,e,a,s),t.el=i.el}if(h&&At(h,a),!p&&(i=u&&u.onVnodeMounted)){const e=t;At((()=>xn(i,d,e)),a)}(256&t.shapeFlag||d&&fe(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&At(e.a,a),e.isMounted=!0,t=n=o=null}},c=e.effect=new i.qq(u,(()=>M(h)),e.scope),h=e.update=()=>c.run();h.id=e.uid,Pt(e,!0),h()},V=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,ut(e,t.props,r,n),St(e,t.children,n),(0,i.Jd)(),D(void 0,e.update),(0,i.lk)()},q=(e,t,n,i,r,o,a,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,h=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void U(u,h,n,i,r,o,a,s,l);if(256&p)return void G(u,h,n,i,r,o,a,s,l)}8&f?(16&c&&J(u,r,o),h!==u&&d(n,h)):16&c?16&f?U(u,h,n,i,r,o,a,s,l):J(u,r,o,!0):(8&c&&d(n,""),16&f&&A(h,n,i,r,o,a,s,l))},G=(e,t,n,i,o,a,s,l,u)=>{e=e||r.Z6,t=t||r.Z6;const c=e.length,h=t.length,d=Math.min(c,h);let p;for(p=0;p<d;p++){const i=t[p]=u?vn(t[p]):gn(t[p]);m(e[p],i,n,null,o,a,s,l,u)}c>h?J(e,o,a,!0,!1,d):A(t,n,i,o,a,s,l,u,d)},U=(e,t,n,i,o,a,s,l,u)=>{let c=0;const h=t.length;let d=e.length-1,p=h-1;while(c<=d&&c<=p){const i=e[c],r=t[c]=u?vn(t[c]):gn(t[c]);if(!rn(i,r))break;m(i,r,n,null,o,a,s,l,u),c++}while(c<=d&&c<=p){const i=e[d],r=t[p]=u?vn(t[p]):gn(t[p]);if(!rn(i,r))break;m(i,r,n,null,o,a,s,l,u),d--,p--}if(c>d){if(c<=p){const e=p+1,r=e<h?t[e].el:i;while(c<=p)m(null,t[c]=u?vn(t[c]):gn(t[c]),n,r,o,a,s,l,u),c++}}else if(c>p)while(c<=d)Y(e[c],o,a,!0),c++;else{const f=c,g=c,v=new Map;for(c=g;c<=p;c++){const e=t[c]=u?vn(t[c]):gn(t[c]);null!=e.key&&v.set(e.key,c)}let y,x=0;const _=p-g+1;let b=!1,w=0;const S=new Array(_);for(c=0;c<_;c++)S[c]=0;for(c=f;c<=d;c++){const i=e[c];if(x>=_){Y(i,o,a,!0);continue}let r;if(null!=i.key)r=v.get(i.key);else for(y=g;y<=p;y++)if(0===S[y-g]&&rn(i,t[y])){r=y;break}void 0===r?Y(i,o,a,!0):(S[r-g]=c+1,r>=w?w=r:b=!0,m(i,t[r],n,null,o,a,s,l,u),x++)}const M=b?Rt(S):r.Z6;for(y=M.length-1,c=_-1;c>=0;c--){const e=g+c,r=t[e],d=e+1<h?t[e+1].el:i;0===S[c]?m(null,r,n,d,o,a,s,l,u):b&&(y<0||c!==M[y]?Z(r,n,d,2):y--)}}},Z=(e,t,n,i,r=null)=>{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)return void Z(e.component.subTree,t,n,i);if(128&c)return void e.suspense.move(t,n,i);if(64&c)return void s.move(e,t,n,te);if(s===Gt){o(a,t,n);for(let e=0;e<u.length;e++)Z(u[e],t,n,i);return void o(e.anchor,t,n)}if(s===jt)return void w(e,t,n);const h=2!==i&&1&c&&l;if(h)if(0===i)l.beforeEnter(a),o(a,t,n),At((()=>l.enter(a)),r);else{const{leave:e,delayLeave:i,afterLeave:r}=l,s=()=>o(a,t,n),u=()=>{e(a,(()=>{s(),r&&r()}))};i?i(a,s,u):u()}else o(a,t,n)},Y=(e,t,n,i=!1,r=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:h,dirs:d}=e;if(null!=s&&Tt(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const p=1&c&&d,f=!fe(e);let g;if(f&&(g=a&&a.onVnodeBeforeUnmount)&&xn(g,t,e),6&c)K(e.component,n,i);else{if(128&c)return void e.suspense.unmount(n,i);p&&Ne(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,r,te,i):u&&(o!==Gt||h>0&&64&h)?J(u,t,n,!1,!0):(o===Gt&&384&h||!r&&16&c)&&J(l,t,n),i&&$(e)}(f&&(g=a&&a.onVnodeUnmounted)||p)&&At((()=>{g&&xn(g,t,e),p&&Ne(e,null,t,"unmounted")}),n)},$=e=>{const{type:t,el:n,anchor:i,transition:r}=e;if(t===Gt)return void X(n,i);if(t===jt)return void S(e);const o=()=>{a(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:i}=r,a=()=>t(n,o);i?i(e.el,o,a):a()}else o()},X=(e,t)=>{let n;while(e!==t)n=f(e),a(e),e=n;a(t)},K=(e,t,n)=>{const{bum:i,scope:o,update:a,subTree:s,um:l}=e;i&&(0,r.ir)(i),o.stop(),a&&(a.active=!1,Y(s,e,t,n)),l&&At(l,t),At((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,i=!1,r=!1,o=0)=>{for(let a=o;a<e.length;a++)Y(e[a],t,n,i,r)},Q=e=>6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),ee=(e,t,n)=>{null==e?t._vnode&&Y(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),L(),t._vnode=e},te={p:m,um:Y,m:Z,r:$,mt:B,mc:A,pc:q,pbc:O,n:Q,o:e};let ne,ie;return t&&([ne,ie]=t(te)),{render:ee,hydrate:ne,createApp:It(ee,ne)}}function Pt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ot(e,t,n=!1){const i=e.children,o=t.children;if((0,r.kJ)(i)&&(0,r.kJ)(o))for(let r=0;r<i.length;r++){const e=i[r];let t=o[r];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=o[r]=vn(o[r]),t.el=e.el),n||Ot(e,t))}}function Rt(e){const t=e.slice(),n=[0];let i,r,o,a,s;const l=e.length;for(i=0;i<l;i++){const l=e[i];if(0!==l){if(r=n[n.length-1],e[r]<l){t[i]=r,n.push(i);continue}o=0,a=n.length-1;while(o<a)s=o+a>>1,e[n[s]]<l?o=s+1:a=s;l<e[n[o]]&&(o>0&&(t[i]=n[o-1]),n[o]=i)}}o=n.length,a=n[o-1];while(o-- >0)n[o]=a,a=t[a];return n}const Et=e=>e.__isTeleport,Nt=e=>e&&(e.disabled||""===e.disabled),Bt=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,Ft=(e,t)=>{const n=e&&e.to;if((0,r.HD)(n)){if(t){const e=t(n);return e}return null}return n},zt={__isTeleport:!0,process(e,t,n,i,r,o,a,s,l,u){const{mc:c,pc:h,pbc:d,o:{insert:p,querySelector:f,createText:g,createComment:v}}=u,y=Nt(t.props);let{shapeFlag:m,children:x,dynamicChildren:_}=t;if(null==e){const e=t.el=g(""),u=t.anchor=g("");p(e,n,i),p(u,n,i);const h=t.target=Ft(t.props,f),d=t.targetAnchor=g("");h&&(p(d,h),a=a||Bt(h));const v=(e,t)=>{16&m&&c(x,e,t,r,o,a,s,l)};y?v(n,u):h&&v(h,d)}else{t.el=e.el;const i=t.anchor=e.anchor,c=t.target=e.target,p=t.targetAnchor=e.targetAnchor,g=Nt(e.props),v=g?n:c,m=g?i:p;if(a=a||Bt(c),_?(d(e.dynamicChildren,_,v,r,o,a,s),Ot(e,t,!0)):l||h(e,t,v,m,r,o,a,s,!1),y)g||Vt(t,n,i,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Ft(t.props,f);e&&Vt(t,e,null,u,0)}else g&&Vt(t,c,p,u,1)}},remove(e,t,n,i,{um:r,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:h,props:d}=e;if(h&&o(c),(a||!Nt(d))&&(o(u),16&s))for(let p=0;p<l.length;p++){const e=l[p];r(e,t,n,!0,!!e.dynamicChildren)}},move:Vt,hydrate:Ht};function Vt(e,t,n,{o:{insert:i},m:r},o=2){0===o&&i(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=e,h=2===o;if(h&&i(a,t,n),(!h||Nt(c))&&16&l)for(let d=0;d<u.length;d++)r(u[d],t,n,2);h&&i(s,t,n)}function Ht(e,t,n,i,r,o,{o:{nextSibling:a,parentNode:s,querySelector:l}},u){const c=t.target=Ft(t.props,l);if(c){const l=c._lpa||c.firstChild;if(16&t.shapeFlag)if(Nt(t.props))t.anchor=u(a(e),t,s(e),n,i,r,o),t.targetAnchor=l;else{t.anchor=a(e);let s=l;while(s)if(s=a(s),s&&8===s.nodeType&&"teleport anchor"===s.data){t.targetAnchor=s,c._lpa=t.targetAnchor&&a(t.targetAnchor);break}u(l,t,c,n,i,r,o)}}return t.anchor&&a(t.anchor)}const qt=zt,Gt=Symbol(void 0),Wt=Symbol(void 0),Ut=Symbol(void 0),jt=Symbol(void 0),Zt=[];let Yt=null;function $t(e=!1){Zt.push(Yt=e?null:[])}function Xt(){Zt.pop(),Yt=Zt[Zt.length-1]||null}let Kt=1;function Jt(e){Kt+=e}function Qt(e){return e.dynamicChildren=Kt>0?Yt||r.Z6:null,Xt(),Kt>0&&Yt&&Yt.push(e),e}function en(e,t,n,i,r,o){return Qt(ln(e,t,n,i,r,o,!0))}function tn(e,t,n,i,r){return Qt(un(e,t,n,i,r,!0))}function nn(e){return!!e&&!0===e.__v_isVNode}function rn(e,t){return e.type===t.type&&e.key===t.key}const on="__vInternal",an=({key:e})=>null!=e?e:null,sn=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,r.HD)(e)||(0,i.dq)(e)||(0,r.mf)(e)?{i:B,r:e,k:t,f:!!n}:e:null;function ln(e,t=null,n=null,i=0,o=null,a=(e===Gt?0:1),s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&an(t),ref:t&&sn(t),scopeId:F,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null};return l?(yn(u,n),128&a&&e.normalize(u)):n&&(u.shapeFlag|=(0,r.HD)(n)?8:16),Kt>0&&!s&&Yt&&(u.patchFlag>0||6&a)&&32!==u.patchFlag&&Yt.push(u),u}const un=cn;function cn(e,t=null,n=null,o=0,a=null,s=!1){if(e&&e!==Ve||(e=Ut),nn(e)){const i=dn(e,t,!0);return n&&yn(i,n),Kt>0&&!s&&Yt&&(6&i.shapeFlag?Yt[Yt.indexOf(e)]=i:Yt.push(i)),i.patchFlag|=-2,i}if(zn(e)&&(e=e.__vccOpts),t){t=hn(t);let{class:e,style:n}=t;e&&!(0,r.HD)(e)&&(t.class=(0,r.C_)(e)),(0,r.Kn)(n)&&((0,i.X3)(n)&&!(0,r.kJ)(n)&&(n=(0,r.l7)({},n)),t.style=(0,r.j5)(n))}const l=(0,r.HD)(e)?1:Z(e)?128:Et(e)?64:(0,r.Kn)(e)?4:(0,r.mf)(e)?2:0;return ln(e,t,n,o,a,l,s,!0)}function hn(e){return e?(0,i.X3)(e)||on in e?(0,r.l7)({},e):e:null}function dn(e,t,n=!1){const{props:i,ref:o,patchFlag:a,children:s}=e,l=t?mn(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&an(l),ref:t&&t.ref?n&&o?(0,r.kJ)(o)?o.concat(sn(t)):[o,sn(t)]:sn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Gt?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&dn(e.ssContent),ssFallback:e.ssFallback&&dn(e.ssFallback),el:e.el,anchor:e.anchor};return u}function pn(e=" ",t=0){return un(Wt,null,e,t)}function fn(e="",t=!1){return t?($t(),tn(Ut,null,e)):un(Ut,null,e)}function gn(e){return null==e||"boolean"===typeof e?un(Ut):(0,r.kJ)(e)?un(Gt,null,e.slice()):"object"===typeof e?vn(e):un(Wt,null,String(e))}function vn(e){return null===e.el||e.memo?e:dn(e)}function yn(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if((0,r.kJ)(t))n=16;else if("object"===typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),yn(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||on in t?3===i&&B&&(1===B.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=B}}else(0,r.mf)(t)?(t={default:t,_ctx:B},n=32):(t=String(t),64&i?(n=16,t=[pn(t)]):n=8);e.children=t,e.shapeFlag|=n}function mn(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=(0,r.C_)([t.class,i.class]));else if("style"===e)t.style=(0,r.j5)([t.style,i.style]);else if((0,r.F7)(e)){const n=t[e],o=i[e];!o||n===o||(0,r.kJ)(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=i[e])}return t}function xn(e,t,n,i=null){a(e,t,7,[n,i])}const _n=Mt();let bn=0;function wn(e,t,n){const o=e.type,a=(t?t.appContext:e.appContext)||_n,s={uid:bn++,vnode:e,type:o,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new i.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:dt(o,a),emitsOptions:E(o,a),emit:null,emitted:null,propsDefaults:r.kT,inheritAttrs:o.inheritAttrs,ctx:r.kT,data:r.kT,props:r.kT,attrs:r.kT,slots:r.kT,refs:r.kT,setupState:r.kT,setupContext:null,suspense:n,suspenseId:n?n.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 s.ctx={_:s},s.root=t?t.root:s,s.emit=R.bind(null,s),e.ce&&e.ce(s),s}let Sn=null;const Mn=()=>Sn||B,Cn=e=>{Sn=e,e.scope.on()},In=()=>{Sn&&Sn.scope.off(),Sn=null};function Tn(e){return 4&e.vnode.shapeFlag}let kn,An,Dn=!1;function Ln(e,t=!1){Dn=t;const{props:n,children:i}=e.vnode,r=Tn(e);lt(e,n,r,t),wt(e,i);const o=r?Pn(e,t):void 0;return Dn=!1,o}function Pn(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,i.Xl)(new Proxy(e.ctx,Ze));const{setup:a}=n;if(a){const n=e.setupContext=a.length>1?Nn(e):null;Cn(e),(0,i.Jd)();const l=o(a,e,0,[e.props,n]);if((0,i.lk)(),In(),(0,r.tI)(l)){if(l.then(In,In),t)return l.then((n=>{On(e,n,t)})).catch((t=>{s(t,e,0)}));e.asyncDep=l}else On(e,l,t)}else Rn(e,t)}function On(e,t,n){(0,r.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,r.Kn)(t)&&(e.setupState=(0,i.WL)(t)),Rn(e,n)}function Rn(e,t,n){const o=e.type;if(!e.render){if(!t&&kn&&!o.render){const t=o.template;if(t){0;const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:s}=o,l=(0,r.l7)((0,r.l7)({isCustomElement:n,delimiters:a},i),s);o.render=kn(t,l)}}e.render=o.render||r.dG,An&&An(e)}Cn(e),(0,i.Jd)(),$e(e),(0,i.lk)(),In()}function En(e){return new Proxy(e.attrs,{get(t,n){return(0,i.j)(e,"get","$attrs"),t[n]}})}function Nn(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=En(e))},slots:e.slots,emit:e.emit,expose:t}}function Bn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,i.WL)((0,i.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in je?je[n](e):void 0}}))}function Fn(e,t=!0){return(0,r.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function zn(e){return(0,r.mf)(e)&&"__vccOpts"in e}const Vn=(e,t)=>(0,i.Fl)(e,t,Dn);function Hn(e,t,n){const i=arguments.length;return 2===i?(0,r.Kn)(t)&&!(0,r.kJ)(t)?nn(t)?un(e,null,[t]):un(e,t):un(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&nn(n)&&(n=[n]),un(e,t,n))}Symbol("");const qn="3.2.37"},8880:(e,t,n)=>{"use strict";n.d(t,{ri:()=>ne,uT:()=>B});var i=n(2323),r=n(3673);n(1959);const o="http://www.w3.org/2000/svg",a="undefined"!==typeof document?document:null,s=a&&a.createElement("template"),l={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t?a.createElementNS(o,e):a.createElement(e,n?{is:n}:void 0);return"select"===e&&i&&null!=i.multiple&&r.setAttribute("multiple",i.multiple),r},createText:e=>a.createTextNode(e),createComment:e=>a.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>a.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,i,r,o){const a=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling)){while(1)if(t.insertBefore(r.cloneNode(!0),n),r===o||!(r=r.nextSibling))break}else{s.innerHTML=i?`<svg>${e}</svg>`:e;const r=s.content;if(i){const e=r.firstChild;while(e.firstChild)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function u(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function c(e,t,n){const r=e.style,o=(0,i.HD)(n);if(n&&!o){for(const e in n)d(r,e,n[e]);if(t&&!(0,i.HD)(t))for(const e in t)null==n[e]&&d(r,e,"")}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const h=/\s*!important$/;function d(e,t,n){if((0,i.kJ)(n))n.forEach((n=>d(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=g(e,t);h.test(n)?e.setProperty((0,i.rs)(r),n.replace(h,""),"important"):e[r]=n}}const p=["Webkit","Moz","ms"],f={};function g(e,t){const n=f[t];if(n)return n;let r=(0,i._A)(t);if("filter"!==r&&r in e)return f[t]=r;r=(0,i.kC)(r);for(let i=0;i<p.length;i++){const n=p[i]+r;if(n in e)return f[t]=n}return t}const v="http://www.w3.org/1999/xlink";function y(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(v,t.slice(6,t.length)):e.setAttributeNS(v,t,n);else{const r=(0,i.Pq)(t);null==n||r&&!(0,i.yA)(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function m(e,t,n,r,o,a,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,o,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const i=null==n?"":n;return e.value===i&&"OPTION"!==e.tagName||(e.value=i),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=(0,i.yA)(n):null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(u){0}l&&e.removeAttribute(t)}const[x,_]=(()=>{let e=Date.now,t=!1;if("undefined"!==typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let b=0;const w=Promise.resolve(),S=()=>{b=0},M=()=>b||(w.then(S),b=x());function C(e,t,n,i){e.addEventListener(t,n,i)}function I(e,t,n,i){e.removeEventListener(t,n,i)}function T(e,t,n,i,r=null){const o=e._vei||(e._vei={}),a=o[t];if(i&&a)a.value=i;else{const[n,s]=A(t);if(i){const a=o[t]=D(i,r);C(e,n,a,s)}else a&&(I(e,n,a,s),o[t]=void 0)}}const k=/(?:Once|Passive|Capture)$/;function A(e){let t;if(k.test(e)){let n;t={};while(n=e.match(k))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,i.rs)(e.slice(2)),t]}function D(e,t){const n=e=>{const i=e.timeStamp||x();(_||i>=n.attached-1)&&(0,r.$d)(L(e,n.value),t,5,[e])};return n.value=e,n.attached=M(),n}function L(e,t){if((0,i.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const P=/^on[a-z]/,O=(e,t,n,r,o=!1,a,s,l,h)=>{"class"===t?u(e,r,o):"style"===t?c(e,n,r):(0,i.F7)(t)?(0,i.tR)(t)||T(e,t,n,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):R(e,t,r,o))?m(e,t,r,a,s,l,h):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),y(e,t,r,o))};function R(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&P.test(t)&&(0,i.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!P.test(t)||!(0,i.HD)(n))&&t in e))))}"undefined"!==typeof HTMLElement&&HTMLElement;const E="transition",N="animation",B=(e,{slots:t})=>(0,r.h)(r.P$,H(e),t);B.displayName="Transition";const F={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},z=(B.props=(0,i.l7)({},r.P$.props,F),(e,t=[])=>{(0,i.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)}),V=e=>!!e&&((0,i.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function H(e){const t={};for(const i in e)i in F||(t[i]=e[i]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=s,appearToClass:h=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=q(o),v=g&&g[0],y=g&&g[1],{onBeforeEnter:m,onEnter:x,onEnterCancelled:_,onLeave:b,onLeaveCancelled:w,onBeforeAppear:S=m,onAppear:M=x,onAppearCancelled:C=_}=t,I=(e,t,n)=>{U(e,t?h:l),U(e,t?c:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,U(e,d),U(e,f),U(e,p),t&&t()},k=e=>(t,n)=>{const i=e?M:x,o=()=>I(t,e,n);z(i,[t,o]),j((()=>{U(t,e?u:a),W(t,e?h:l),V(i)||Y(t,r,v,o)}))};return(0,i.l7)(t,{onBeforeEnter(e){z(m,[e]),W(e,a),W(e,s)},onBeforeAppear(e){z(S,[e]),W(e,u),W(e,c)},onEnter:k(!1),onAppear:k(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);W(e,d),J(),W(e,p),j((()=>{e._isLeaving&&(U(e,d),W(e,f),V(b)||Y(e,r,y,n))})),z(b,[e,n])},onEnterCancelled(e){I(e,!1),z(_,[e])},onAppearCancelled(e){I(e,!0),z(C,[e])},onLeaveCancelled(e){T(e),z(w,[e])}})}function q(e){if(null==e)return null;if((0,i.Kn)(e))return[G(e.enter),G(e.leave)];{const t=G(e);return[t,t]}}function G(e){const t=(0,i.He)(e);return t}function W(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function U(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function j(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Z=0;function Y(e,t,n,i){const r=e._endId=++Z,o=()=>{r===e._endId&&i()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=$(e,t);if(!a)return i();const u=a+"end";let c=0;const h=()=>{e.removeEventListener(u,d),o()},d=t=>{t.target===e&&++c>=l&&h()};setTimeout((()=>{c<l&&h()}),s+1),e.addEventListener(u,d)}function $(e,t){const n=window.getComputedStyle(e),i=e=>(n[e]||"").split(", "),r=i(E+"Delay"),o=i(E+"Duration"),a=X(r,o),s=i(N+"Delay"),l=i(N+"Duration"),u=X(s,l);let c=null,h=0,d=0;t===E?a>0&&(c=E,h=a,d=o.length):t===N?u>0&&(c=N,h=u,d=l.length):(h=Math.max(a,u),c=h>0?a>u?E:N:null,d=c?c===E?o.length:l.length:0);const p=c===E&&/\b(transform|all)(,|$)/.test(n[E+"Property"]);return{type:c,timeout:h,propCount:d,hasTransform:p}}function X(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map(((t,n)=>K(t)+K(e[n]))))}function K(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function J(){return document.body.offsetHeight}new WeakMap,new WeakMap;const Q=(0,i.l7)({patchProp:O},l);let ee;function te(){return ee||(ee=(0,r.Us)(Q))}const ne=(...e)=>{const t=te().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=ie(e);if(!r)return;const o=t._component;(0,i.mf)(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function ie(e){if((0,i.HD)(e)){const t=document.querySelector(e);return t}return e}},2323:(e,t,n)=>{"use strict";function i(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{C_:()=>p,DM:()=>P,E9:()=>ie,F7:()=>M,Gg:()=>W,HD:()=>E,He:()=>te,Kn:()=>B,NO:()=>w,Nj:()=>ee,Od:()=>T,PO:()=>q,Pq:()=>s,RI:()=>A,S0:()=>G,W7:()=>H,WV:()=>g,Z6:()=>_,_A:()=>Z,_N:()=>L,aU:()=>J,dG:()=>b,e1:()=>o,fY:()=>i,hR:()=>K,hq:()=>v,ir:()=>Q,j5:()=>u,kC:()=>X,kJ:()=>D,kT:()=>x,l7:()=>I,mf:()=>R,rs:()=>$,tI:()=>F,tR:()=>C,yA:()=>l,yk:()=>N,zw:()=>y});const r="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",o=i(r);const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",s=i(a);function l(e){return!!e||""===e}function u(e){if(D(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=E(i)?d(i):u(i);if(r)for(const e in r)t[e]=r[e]}return t}return E(e)||B(e)?e:void 0}const c=/;(?![^(]*\))/g,h=/:(.+)/;function d(e){const t={};return e.split(c).forEach((e=>{if(e){const n=e.split(h);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function p(e){let t="";if(E(e))t=e;else if(D(e))for(let n=0;n<e.length;n++){const i=p(e[n]);i&&(t+=i+" ")}else if(B(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function f(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=g(e[i],t[i]);return n}function g(e,t){if(e===t)return!0;let n=O(e),i=O(t);if(n||i)return!(!n||!i)&&e.getTime()===t.getTime();if(n=N(e),i=N(t),n||i)return e===t;if(n=D(e),i=D(t),n||i)return!(!n||!i)&&f(e,t);if(n=B(e),i=B(t),n||i){if(!n||!i)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const n in e){const i=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(i&&!r||!i&&r||!g(e[n],t[n]))return!1}}return String(e)===String(t)}function v(e,t){return e.findIndex((e=>g(e,t)))}const y=e=>E(e)?e:null==e?"":D(e)||B(e)&&(e.toString===z||!R(e.toString))?JSON.stringify(e,m,2):String(e),m=(e,t)=>t&&t.__v_isRef?m(e,t.value):L(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:P(t)?{[`Set(${t.size})`]:[...t.values()]}:!B(t)||D(t)||q(t)?t:String(t),x={},_=[],b=()=>{},w=()=>!1,S=/^on[^a-z]/,M=e=>S.test(e),C=e=>e.startsWith("onUpdate:"),I=Object.assign,T=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},k=Object.prototype.hasOwnProperty,A=(e,t)=>k.call(e,t),D=Array.isArray,L=e=>"[object Map]"===V(e),P=e=>"[object Set]"===V(e),O=e=>"[object Date]"===V(e),R=e=>"function"===typeof e,E=e=>"string"===typeof e,N=e=>"symbol"===typeof e,B=e=>null!==e&&"object"===typeof e,F=e=>B(e)&&R(e.then)&&R(e.catch),z=Object.prototype.toString,V=e=>z.call(e),H=e=>V(e).slice(8,-1),q=e=>"[object Object]"===V(e),G=e=>E(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,W=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),U=e=>{const t=Object.create(null);return n=>{const i=t[n];return i||(t[n]=e(n))}},j=/-(\w)/g,Z=U((e=>e.replace(j,((e,t)=>t?t.toUpperCase():"")))),Y=/\B([A-Z])/g,$=U((e=>e.replace(Y,"-$1").toLowerCase())),X=U((e=>e.charAt(0).toUpperCase()+e.slice(1))),K=U((e=>e?`on${X(e)}`:"")),J=(e,t)=>!Object.is(e,t),Q=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ee=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},te=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ne;const ie=()=>ne||(ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},52:(e,t,n)=>{e.exports=n(7974)},8699:(e,t,n)=>{"use strict";var i=n(7210),r=n(4923),o=n(3634),a=n(7696),s=n(9835),l=n(3423),u=n(8365),c=n(8838),h=n(9469),d=n(9157),p=n(7302);e.exports=function(e){return new Promise((function(t,n){var f,g=e.data,v=e.headers,y=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}i.isFormData(g)&&i.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+b)}var w=s(e.baseURL,e.url);function S(){if(x){var i="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null,o=y&&"text"!==y&&"json"!==y?x.response:x.responseText,a={data:o,status:x.status,statusText:x.statusText,headers:i,config:e,request:x};r((function(e){t(e),m()}),(function(e){n(e),m()}),a),x=null}}if(x.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=S:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(S)},x.onabort=function(){x&&(n(new h("Request aborted",h.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new h("Network Error",h.ERR_NETWORK,e,x,x)),x=null},x.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new h(t,i.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,e,x)),x=null},i.isStandardBrowserEnv()){var M=(e.withCredentials||u(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;M&&(v[e.xsrfHeaderName]=M)}"setRequestHeader"in x&&i.forEach(v,(function(e,t){"undefined"===typeof g&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),y&&"json"!==y&&(x.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){x&&(n(!e||e&&e.type?new d:e),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),g||(g=null);var C=p(w);C&&-1===["http","https","file"].indexOf(C)?n(new h("Unsupported protocol "+C+":",h.ERR_BAD_REQUEST,e)):x.send(g)}))}},7974:(e,t,n)=>{"use strict";var i=n(7210),r=n(2938),o=n(8799),a=n(4495),s=n(2447);function l(e){var t=new o(e),n=r(o.prototype.request,t);return i.extend(n,o.prototype,t),i.extend(n,t),n.create=function(t){return l(a(e,t))},n}var u=l(s);u.Axios=o,u.CanceledError=n(9157),u.CancelToken=n(8858),u.isCancel=n(6029),u.VERSION=n(765).version,u.toFormData=n(4415),u.AxiosError=n(9469),u.Cancel=u.CanceledError,u.all=function(e){return Promise.all(e)},u.spread=n(5178),u.isAxiosError=n(5615),e.exports=u,e.exports["default"]=u},8858:(e,t,n)=>{"use strict";var i=n(9157);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t<i;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,i=new Promise((function(e){n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},9157:(e,t,n)=>{"use strict";var i=n(9469),r=n(7210);function o(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}r.inherits(o,i,{__CANCEL__:!0}),e.exports=o},6029:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},8799:(e,t,n)=>{"use strict";var i=n(7210),r=n(7696),o=n(2591),a=n(516),s=n(4495),l=n(9835),u=n(3170),c=u.validators;function h(e){this.defaults=e,this.interceptors={request:new o,response:new o}}h.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var h=[a,void 0];Array.prototype.unshift.apply(h,i),h=h.concat(l),o=Promise.resolve(t);while(h.length)o=o.then(h.shift(),h.shift());return o}var d=t;while(i.length){var p=i.shift(),f=i.shift();try{d=p(d)}catch(g){f(g);break}}try{o=a(d)}catch(g){return Promise.reject(g)}while(l.length)o=o.then(l.shift(),l.shift());return o},h.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],(function(e){h.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(s(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}h.prototype[e]=t(),h.prototype[e+"Form"]=t(!0)})),e.exports=h},9469:(e,t,n)=>{"use strict";var i=n(7210);function r(e,t,n,i,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}i.inherits(r,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=r.prototype,a={};["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"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(r,a),Object.defineProperty(o,"isAxiosError",{value:!0}),r.from=function(e,t,n,a,s,l){var u=Object.create(o);return i.toFlatObject(e,u,(function(e){return e!==Error.prototype})),r.call(u,e.message,t,n,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},2591:(e,t,n)=>{"use strict";var i=n(7210);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},9835:(e,t,n)=>{"use strict";var i=n(8380),r=n(6092);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},516:(e,t,n)=>{"use strict";var i=n(7210),r=n(4330),o=n(6029),a=n(2447),s=n(9157);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4495:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function o(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function a(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);i.isUndefined(r)&&t!==l||(n[e]=r)})),n}},4923:(e,t,n)=>{"use strict";var i=n(9469);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},4330:(e,t,n)=>{"use strict";var i=n(7210),r=n(2447);e.exports=function(e,t,n){var o=this||r;return i.forEach(n,(function(n){e=n.call(o,e,t)})),e}},2447:(e,t,n)=>{"use strict";var i=n(7210),r=n(4733),o=n(9469),a=n(8838),s=n(4415),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(8699)),e}function h(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}var d={transitional:a,adapter:c(),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=i.isObject(e),a=t&&t["Content-Type"];if((n=i.isFileList(e))||o&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,l&&new l)}return o||"application/json"===a?(u(t,"application/json"),h(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o.from(s,o.ERR_BAD_RESPONSE,this,null,this.response);throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(6632)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){d.headers[e]=i.merge(l)})),e.exports=d},8838:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},765:e=>{e.exports={version:"0.27.2"}},2938:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},7696:(e,t,n)=>{"use strict";var i=n(7210);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},6092:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},3634:(e,t,n)=>{"use strict";var i=n(7210);e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},8380:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5615:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},8365:(e,t,n)=>{"use strict";var i=n(7210);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},4733:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},6632:e=>{e.exports=null},3423:(e,t,n)=>{"use strict";var i=n(7210),r=["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"];e.exports=function(e){var t,n,o,a={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},7302:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5178:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4415:(e,t,n)=>{"use strict";var i=n(7210);function r(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function o(e,a){if(i.isPlainObject(e)||i.isArray(e)){if(-1!==n.indexOf(e))throw Error("Circular reference detected in "+a);n.push(e),i.forEach(e,(function(e,n){if(!i.isUndefined(e)){var s,l=a?a+"."+n:n;if(e&&!a&&"object"===typeof e)if(i.endsWith(n,"{}"))e=JSON.stringify(e);else if(i.endsWith(n,"[]")&&(s=i.toArray(e)))return void s.forEach((function(e){!i.isUndefined(e)&&t.append(l,r(e))}));o(e,l)}})),n.pop()}else t.append(a,r(e))}return o(e),t}e.exports=r},3170:(e,t,n)=>{"use strict";var i=n(765).version,r=n(9469),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};function s(e,t,n){if("object"!==typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);var i=Object.keys(e),o=i.length;while(o-- >0){var a=i[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new r("option "+a+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+a,r.ERR_BAD_OPTION)}}o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new r(o(i," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!a[i]&&(a[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={assertOptions:s,validators:o}},7210:(e,t,n)=>{"use strict";var i=n(2938),r=Object.prototype.toString,o=function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function a(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function s(e){return Array.isArray(e)}function l(e){return"undefined"===typeof e}function u(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var c=a("ArrayBuffer");function h(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t}function d(e){return"string"===typeof e}function p(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function g(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var v=a("Date"),y=a("File"),m=a("Blob"),x=a("FileList");function _(e){return"[object Function]"===r.call(e)}function b(e){return f(e)&&_(e.pipe)}function w(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||r.call(e)===t||_(e.toString)&&e.toString()===t)}var S=a("URLSearchParams");function M(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function I(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),s(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function T(){var e={};function t(t,n){g(e[n])&&g(t)?e[n]=T(e[n],t):g(t)?e[n]=T({},t):s(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)I(arguments[n],t);return e}function k(e,t,n){return I(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e}function A(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}function D(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function L(e,t,n){var i,r,o,a={};t=t||{};do{i=Object.getOwnPropertyNames(e),r=i.length;while(r-- >0)o=i[r],a[o]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function P(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n}function O(e){if(!e)return null;var t=e.length;if(l(t))return null;var n=new Array(t);while(t-- >0)n[t]=e[t];return n}var R=function(e){return function(t){return e&&t instanceof e}}("undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array));e.exports={isArray:s,isArrayBuffer:c,isBuffer:u,isFormData:w,isArrayBufferView:h,isString:d,isNumber:p,isObject:f,isPlainObject:g,isUndefined:l,isDate:v,isFile:y,isBlob:m,isFunction:_,isStream:b,isURLSearchParams:S,isStandardBrowserEnv:C,forEach:I,merge:T,extend:k,trim:M,stripBOM:A,inherits:D,toFlatObject:L,kindOf:o,kindOfTest:a,endsWith:P,toArray:O,isTypedArray:R,isFileList:x}},5607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(2236),a=n(7657);const s=(0,r.L)({name:"QBanner",props:{...o.S,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,o.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-banner row items-center"+(!0===e.dense?" q-banner--dense":"")+(!0===r.value?" q-banner--dark q-dark":"")+(!0===e.rounded?" rounded-borders":""))),l=(0,i.Fl)((()=>"q-banner__actions row items-center justify-end col-"+(!0===e.inlineActions?"auto":"all")));return()=>{const n=[(0,i.h)("div",{class:"q-banner__avatar col-auto row items-center self-start"},(0,a.KR)(t.avatar)),(0,i.h)("div",{class:"q-banner__content col text-body2"},(0,a.KR)(t.default))],r=(0,a.KR)(t.action);return void 0!==r&&n.push((0,i.h)("div",{class:l.value},r)),(0,i.h)("div",{class:s.value+(!1===e.inlineActions&&void 0!==r?" q-banner--top-padding":""),role:"alert"},n)}}})},846:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(2236),o=n(908),a=n(7657);const s=(0,o.L)({name:"QBar",props:{...r.S,dense:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>`q-bar row no-wrap items-center q-bar--${!0===e.dense?"dense":"standard"} q-bar--`+(!0===o.value?"dark":"light")));return()=>(0,i.h)("div",{class:s.value,role:"toolbar"},(0,a.KR)(t.default))}})},1481:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(3610);var i=n(3673),r=n(9992),o=n(908),a=n(7657),s=n(7445);const l=["",!0],u=(0,o.L)({name:"QBreadcrumbs",props:{...r.jO,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:t}){const n=(0,r.ZP)(e),o=(0,i.Fl)((()=>`flex items-center ${n.value}${"none"===e.gutter?"":` q-gutter-${e.gutter}`}`)),u=(0,i.Fl)((()=>e.separatorColor?` text-${e.separatorColor}`:"")),c=(0,i.Fl)((()=>` text-${e.activeColor}`));return()=>{const n=(0,s.Pf)((0,a.KR)(t.default));if(0===n.length)return;let r=1;const h=[],d=n.filter((e=>void 0!==e.type&&"QBreadcrumbsEl"===e.type.name)).length,p=void 0!==t.separator?t.separator:()=>e.separator;return n.forEach((e=>{if(void 0!==e.type&&"QBreadcrumbsEl"===e.type.name){const t=r<d,n=null!==e.props&&l.includes(e.props.disable),o=(!0===t?"":" q-breadcrumbs--last")+(!0!==n&&!0===t?c.value:"");r++,h.push((0,i.h)("div",{class:`flex items-center${o}`},[e])),!0===t&&h.push((0,i.h)("div",{class:"q-breadcrumbs__separator"+u.value},p()))}else h.push(e)})),(0,i.h)("div",{class:"q-breadcrumbs"},[(0,i.h)("div",{class:o.value},h)])}}})},5926:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(4554),o=n(908),a=n(7657),s=n(7277);const l=(0,o.L)({name:"QBreadcrumbsEl",props:{...s.$,label:String,icon:String,tag:{type:String,default:"span"}},setup(e,{slots:t}){const{linkTag:n,linkProps:o,linkClass:l,hasRouterLink:u,navigateToRouterLink:c}=(0,s.Z)(),h=(0,i.Fl)((()=>{const t={class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(!0!==e.disable?"q-link--focusable"+l.value:"q-breadcrumbs__el--disable"),...o.value};return!0===u.value&&(t.onClick=c),t})),d=(0,i.Fl)((()=>"q-breadcrumbs__el-icon"+(void 0!==e.label?" q-breadcrumbs__el-icon--with-label":"")));return()=>{const o=[];return void 0!==e.icon&&o.push((0,i.h)(r.Z,{class:d.value,name:e.icon})),void 0!==e.label&&o.push(e.label),(0,i.h)(n.value,{...h.value},(0,a.vs)(t.default,o))}}})},8240:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var i=n(3673),r=n(1959),o=n(8880),a=n(4554),s=n(9754),l=n(6489),u=(n(3610),n(9992)),c=n(2417),h=n(7277);const d={none:0,xs:4,sm:8,md:16,lg:24,xl:32},p={xs:8,sm:10,md:14,lg:20,xl:24},f=["button","submit","reset"],g=/[^\s]\/[^\s]/,v={...c.LU,...h.$,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,round:Boolean,square:Boolean,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...u.jO.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function y(e){const t=(0,c.ZP)(e,p),n=(0,u.ZP)(e),{hasRouterLink:r,hasLink:o,linkTag:a,linkProps:s,navigateToRouterLink:l}=(0,h.Z)("button"),v=(0,i.Fl)((()=>{const n=!1===e.fab&&!1===e.fabMini?t.value:{};return void 0!==e.padding?Object.assign({},n,{padding:e.padding.split(/\s+/).map((e=>e in d?d[e]+"px":e)).join(" "),minWidth:"0",minHeight:"0"}):n})),y=(0,i.Fl)((()=>!0===e.rounded||!0===e.fab||!0===e.fabMini)),m=(0,i.Fl)((()=>!0!==e.disable&&!0!==e.loading)),x=(0,i.Fl)((()=>!0===m.value?e.tabindex||0:-1)),_=(0,i.Fl)((()=>!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":"standard")),b=(0,i.Fl)((()=>{const t={tabindex:x.value};return!0===o.value?Object.assign(t,s.value):!0===f.includes(e.type)&&(t.type=e.type),"a"===a.value?(!0===e.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==r.value&&!0===g.test(e.type)&&(t.type=e.type)):!0===e.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===e.loading&&void 0!==e.percentage&&Object.assign(t,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),t})),w=(0,i.Fl)((()=>{let t;void 0!==e.color?t=!0===e.flat||!0===e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(t=`text-${e.textColor}`);const n=!0===e.round?"round":"rectangle"+(!0===y.value?" q-btn--rounded":!0===e.square?" q-btn--square":"");return`q-btn--${_.value} q-btn--${n}`+(void 0!==t?" "+t:"")+(!0===m.value?" q-btn--actionable q-focusable q-hoverable":!0===e.disable?" disabled":"")+(!0===e.fab?" q-btn--fab":!0===e.fabMini?" q-btn--fab-mini":"")+(!0===e.noCaps?" q-btn--no-uppercase":"")+(!0===e.dense?" q-btn--dense":"")+(!0===e.stretch?" no-border-radius self-stretch":"")+(!0===e.glossy?" glossy":"")+(e.square?" q-btn--square":"")})),S=(0,i.Fl)((()=>n.value+(!0===e.stack?" column":" row")+(!0===e.noWrap?" no-wrap text-no-wrap":"")+(!0===e.loading?" q-btn__content--hidden":"")));return{classes:w,style:v,innerClasses:S,attributes:b,hasRouterLink:r,hasLink:o,linkTag:a,navigateToRouterLink:l,isActionable:m}}var m=n(908),x=n(7657),_=n(4716),b=n(1436);const{passiveCapture:w}=_.rU;let S=null,M=null,C=null;const I=(0,m.L)({name:"QBtn",props:{...v,percentage:Number,darkPercentage:Boolean},emits:["click","keydown","touchstart","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:u}=(0,i.FN)(),{classes:c,style:h,innerClasses:d,attributes:p,hasRouterLink:f,hasLink:g,linkTag:v,navigateToRouterLink:m,isActionable:I}=y(e),T=(0,r.iH)(null),k=(0,r.iH)(null);let A,D,L=null;const P=(0,i.Fl)((()=>void 0!==e.label&&null!==e.label&&""!==e.label)),O=(0,i.Fl)((()=>!0!==e.disable&&!1!==e.ripple&&{keyCodes:!0===g.value?[13,32]:[13],...!0===e.ripple?{}:e.ripple})),R=(0,i.Fl)((()=>({center:e.round}))),E=(0,i.Fl)((()=>{const t=Math.max(0,Math.min(100,e.percentage));return t>0?{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}:{}})),N=(0,i.Fl)((()=>!0===e.loading?{onMousedown:W,onTouchstartPassive:W,onClick:W,onKeydown:W,onKeyup:W}:!0===I.value?{onClick:F,onKeydown:z,onMousedown:H,onTouchstart:V}:{onClick:_.NS})),B=(0,i.Fl)((()=>({ref:T,class:"q-btn q-btn-item non-selectable no-outline "+c.value,style:h.value,...p.value,...N.value})));function F(t){if(null!==T.value){if(void 0!==t){if(!0===t.defaultPrevented)return;const n=document.activeElement;if("submit"===e.type&&n!==document.body&&!1===T.value.contains(n)&&!1===n.contains(T.value)){T.value.focus();const e=()=>{document.removeEventListener("keydown",_.NS,!0),document.removeEventListener("keyup",e,w),null!==T.value&&T.value.removeEventListener("blur",e,w)};document.addEventListener("keydown",_.NS,!0),document.addEventListener("keyup",e,w),T.value.addEventListener("blur",e,w)}}if(!0===f.value){const e=()=>{t.__qNavigate=!0,m(t)};n("click",t,e),!0!==t.defaultPrevented&&e()}else n("click",t)}}function z(e){null!==T.value&&(n("keydown",e),!0===(0,b.So)(e,[13,32])&&M!==T.value&&(null!==M&&G(),!0!==e.defaultPrevented&&(T.value.focus(),M=T.value,T.value.classList.add("q-btn--active"),document.addEventListener("keyup",q,!0),T.value.addEventListener("blur",q,w)),(0,_.NS)(e)))}function V(e){null!==T.value&&(n("touchstart",e),!0!==e.defaultPrevented&&(S!==T.value&&(null!==S&&G(),S=T.value,L=e.target,L.addEventListener("touchcancel",q,w),L.addEventListener("touchend",q,w)),A=!0,clearTimeout(D),D=setTimeout((()=>{A=!1}),200)))}function H(e){null!==T.value&&(e.qSkipRipple=!0===A,n("mousedown",e),!0!==e.defaultPrevented&&C!==T.value&&(null!==C&&G(),C=T.value,T.value.classList.add("q-btn--active"),document.addEventListener("mouseup",q,w)))}function q(e){if(null!==T.value&&(void 0===e||"blur"!==e.type||document.activeElement!==T.value)){if(void 0!==e&&"keyup"===e.type){if(M===T.value&&!0===(0,b.So)(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&(0,_.X$)(t),!0===e.cancelBubble&&(0,_.sT)(t),T.value.dispatchEvent(t),(0,_.NS)(e),e.qKeyEvent=!0}n("keyup",e)}G()}}function G(e){const t=k.value;!0===e||S!==T.value&&C!==T.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),S===T.value&&(null!==L&&(L.removeEventListener("touchcancel",q,w),L.removeEventListener("touchend",q,w)),S=L=null),C===T.value&&(document.removeEventListener("mouseup",q,w),C=null),M===T.value&&(document.removeEventListener("keyup",q,!0),null!==T.value&&T.value.removeEventListener("blur",q,w),M=null),null!==T.value&&T.value.classList.remove("q-btn--active")}function W(e){(0,_.NS)(e),e.qSkipRipple=!0}return(0,i.Jd)((()=>{G(!0)})),Object.assign(u,{click:F}),()=>{let n=[];void 0!==e.icon&&n.push((0,i.h)(a.Z,{name:e.icon,left:!1===e.stack&&!0===P.value,role:"img","aria-hidden":"true"})),!0===P.value&&n.push((0,i.h)("span",{class:"block"},[e.label])),n=(0,x.vs)(t.default,n),void 0!==e.iconRight&&!1===e.round&&n.push((0,i.h)(a.Z,{name:e.iconRight,right:!1===e.stack&&!0===P.value,role:"img","aria-hidden":"true"}));const r=[(0,i.h)("span",{class:"q-focus-helper",ref:k})];return!0===e.loading&&void 0!==e.percentage&&r.push((0,i.h)("span",{class:"q-btn__progress absolute-full overflow-hidden"+(!0===e.darkPercentage?" q-btn__progress--dark":"")},[(0,i.h)("span",{class:"q-btn__progress-indicator fit block",style:E.value})])),r.push((0,i.h)("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+d.value},n)),null!==e.loading&&r.push((0,i.h)(o.uT,{name:"q-transition--fade"},(()=>!0===e.loading?[(0,i.h)("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==t.loading?t.loading():[(0,i.h)(s.Z)])]:null))),(0,i.wy)((0,i.h)(v.value,B.value,r),[[l.Z,O.value,void 0,R.value]])}}})},151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(2236),o=n(908),a=n(7657);const s=(0,o.L)({name:"QCard",props:{...r.S,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-card"+(!0===o.value?" q-card--dark q-dark":"")+(!0===e.bordered?" q-card--bordered":"")+(!0===e.square?" q-card--square no-border-radius":"")+(!0===e.flat?" q-card--flat no-shadow":"")));return()=>(0,i.h)(e.tag,{class:s.value},(0,a.KR)(t.default))}})},9367:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(9992),o=n(908),a=n(7657);const s=(0,o.L)({name:"QCardActions",props:{...r.jO,vertical:Boolean},setup(e,{slots:t}){const n=(0,r.ZP)(e),o=(0,i.Fl)((()=>`q-card__actions ${n.value} q-card__actions--`+(!0===e.vertical?"vert column":"horiz row")));return()=>(0,i.h)("div",{class:o.value},(0,a.KR)(t.default))}})},5589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-card__section q-card__section--"+(!0===e.horizontal?"horiz row no-wrap":"vert")));return()=>(0,i.h)(e.tag,{class:n.value},(0,o.KR)(t.default))}})},7030:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(3673),r=n(4554),o=n(6489),a=n(2236),s=n(2417),l=n(908),u=n(4716),c=n(7657);const h={xs:8,sm:10,md:14,lg:20,xl:24},d=(0,l.L)({name:"QChip",props:{...a.S,...s.LU,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:l}}=(0,i.FN)(),d=(0,a.Z)(e,l),p=(0,s.ZP)(e,h),f=(0,i.Fl)((()=>!0===e.selected||void 0!==e.icon)),g=(0,i.Fl)((()=>!0===e.selected?e.iconSelected||l.iconSet.chip.selected:e.icon)),v=(0,i.Fl)((()=>e.iconRemove||l.iconSet.chip.remove)),y=(0,i.Fl)((()=>!1===e.disable&&(!0===e.clickable||null!==e.selected))),m=(0,i.Fl)((()=>{const t=!0===e.outline&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(!1===e.outline&&void 0!==e.color?` bg-${e.color}`:"")+(t?` text-${t} q-chip--colored`:"")+(!0===e.disable?" disabled":"")+(!0===e.dense?" q-chip--dense":"")+(!0===e.outline?" q-chip--outline":"")+(!0===e.selected?" q-chip--selected":"")+(!0===y.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(!0===e.square?" q-chip--square":"")+(!0===d.value?" q-chip--dark q-dark":"")})),x=(0,i.Fl)((()=>!0===e.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0}));function _(e){13===e.keyCode&&b(e)}function b(t){e.disable||(n("update:selected",!e.selected),n("click",t))}function w(t){void 0!==t.keyCode&&13!==t.keyCode||((0,u.NS)(t),!1===e.disable&&(n("update:modelValue",!1),n("remove")))}function S(){const n=[];!0===y.value&&n.push((0,i.h)("div",{class:"q-focus-helper"})),!0===f.value&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const o=void 0!==e.label?[(0,i.h)("div",{class:"ellipsis"},[e.label])]:void 0;return n.push((0,i.h)("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},(0,c.pf)(t.default,o))),e.iconRight&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),!0===e.removable&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:v.value,...x.value,onClick:w,onKeyup:w})),n}return()=>{if(!1===e.modelValue)return;const t={class:m.value,style:p.value};return!0===y.value&&Object.assign(t,x.value,{onClick:b,onKeyup:_}),(0,c.Jl)("div",t,S(),"ripple",!1!==e.ripple&&!0!==e.disable,(()=>[[o.Z,e.ripple]]))}}})},6778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});n(3610),n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(69),s=n(4955),l=n(416),u=n(3628),c=n(6104),h=n(5911),d=n(405),p=n(908),f=n(2012),g=n(7657),v=n(4704),y=n(8517),m=n(230);let x=0;const _={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},b={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},w=(0,p.L)({name:"QDialog",inheritAttrs:!1,props:{...u.vr,...c.D,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:e=>"standard"===e||["top","bottom","left","right"].includes(e)}},emits:[...u.gH,"shake","click","escape-key"],setup(e,{slots:t,emit:n,attrs:c}){const p=(0,i.FN)(),w=(0,r.iH)(null),S=(0,r.iH)(!1),M=(0,r.iH)(!1),C=(0,r.iH)(!1);let I,T,k,A=null;const D=(0,i.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss&&!0!==e.seamless)),{preventBodyScroll:L}=(0,d.Z)(),{registerTimeout:P,removeTimeout:O}=(0,s.Z)(),{registerTick:R,removeTick:E}=(0,l.Z)(),{showPortal:N,hidePortal:B,portalIsAccessible:F,renderPortal:z}=(0,h.Z)(p,w,se,!0),{hide:V}=(0,u.ZP)({showing:S,hideOnRouteChange:D,handleShow:K,handleHide:J,processOnMount:!0}),{addToHistory:H,removeFromHistory:q}=(0,a.Z)(S,V,D),G=(0,i.Fl)((()=>"q-dialog__inner flex no-pointer-events q-dialog__inner--"+(!0===e.maximized?"maximized":"minimized")+` q-dialog__inner--${e.position} ${_[e.position]}`+(!0===C.value?" q-dialog__inner--animating":"")+(!0===e.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===e.fullHeight?" q-dialog__inner--fullheight":"")+(!0===e.square?" q-dialog__inner--square":""))),W=(0,i.Fl)((()=>"q-transition--"+(void 0===e.transitionShow?b[e.position][0]:e.transitionShow))),U=(0,i.Fl)((()=>"q-transition--"+(void 0===e.transitionHide?b[e.position][1]:e.transitionHide))),j=(0,i.Fl)((()=>!0===M.value?U.value:W.value)),Z=(0,i.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`)),Y=(0,i.Fl)((()=>!0===S.value&&!0!==e.seamless)),$=(0,i.Fl)((()=>!0===e.autoClose?{onClick:re}:{})),X=(0,i.Fl)((()=>["q-dialog fullscreen no-pointer-events q-dialog--"+(!0===Y.value?"modal":"seamless"),c.class]));function K(t){O(),E(),H(),A=!1===e.noRefocus&&null!==document.activeElement?document.activeElement:null,ie(e.maximized),N(),C.value=!0,!0!==e.noFocus&&(null!==document.activeElement&&document.activeElement.blur(),R(Q)),P((()=>{if(!0===p.proxy.$q.platform.is.ios){if(!0!==e.seamless&&document.activeElement){const{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:n}=window,i=void 0!==window.visualViewport?window.visualViewport.height:n;e>0&&t>i/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-i,t>=n?1/0:Math.ceil(document.scrollingElement.scrollTop+t-i/2))),document.activeElement.scrollIntoView()}k=!0,w.value.click(),k=!1}N(!0),C.value=!1,n("show",t)}),e.transitionDuration)}function J(t){O(),E(),q(),ne(!0),C.value=!0,B(),null!==A&&(A.focus(),A=null),P((()=>{B(!0),C.value=!1,n("hide",t)}),e.transitionDuration)}function Q(e){(0,m.jd)((()=>{let t=w.value;null!==t&&!0!==t.contains(document.activeElement)&&(t=t.querySelector(e||"[autofocus], [data-autofocus]")||t,t.focus({preventScroll:!0}))}))}function ee(){Q(),n("shake");const e=w.value;null!==e&&(e.classList.remove("q-animate--scale"),e.classList.add("q-animate--scale"),clearTimeout(I),I=setTimeout((()=>{null!==w.value&&(e.classList.remove("q-animate--scale"),Q())}),170))}function te(){!0!==e.seamless&&(!0===e.persistent||!0===e.noEscDismiss?!0!==e.maximized&&!0!==e.noShake&&ee():(n("escape-key"),V()))}function ne(t){clearTimeout(I),!0!==t&&!0!==S.value||(ie(!1),!0!==e.seamless&&(L(!1),(0,y.H)(ae),(0,v.k)(te))),!0!==t&&(A=null)}function ie(e){!0===e?!0!==T&&(x<1&&document.body.classList.add("q-body--dialog"),x++,T=!0):!0===T&&(x<2&&document.body.classList.remove("q-body--dialog"),x--,T=!1)}function re(e){!0!==k&&(V(e),n("click",e))}function oe(t){!0!==e.persistent&&!0!==e.noBackdropDismiss?V(t):!0!==e.noShake&&ee()}function ae(t){!0!==e.allowFocusOutside&&!0===F.value&&!0!==(0,f.mY)(w.value,t.target)&&Q('[tabindex]:not([tabindex="-1"])')}function se(){return(0,i.h)("div",{...c,class:X.value},[(0,i.h)(o.uT,{name:"q-transition--fade",appear:!0},(()=>!0===Y.value?(0,i.h)("div",{class:"q-dialog__backdrop fixed-full",style:Z.value,"aria-hidden":"true",onMousedown:oe}):null)),(0,i.h)(o.uT,{name:j.value,appear:!0},(()=>!0===S.value?(0,i.h)("div",{ref:w,class:G.value,style:Z.value,tabindex:-1,...$.value},(0,g.KR)(t.default)):null))])}return(0,i.YP)(S,(e=>{(0,i.Y3)((()=>{M.value=e}))})),(0,i.YP)((()=>e.maximized),(e=>{!0===S.value&&ie(e)})),(0,i.YP)(Y,(e=>{L(e),!0===e?((0,y.i)(ae),(0,v.c)(te)):((0,y.H)(ae),(0,v.k)(te))})),Object.assign(p.proxy,{focus:Q,shake:ee,__updateRefocusTarget(e){A=e||null}}),(0,i.Jd)(ne),z}})},2428:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});n(3610),n(71);var i=n(3673),r=n(1959),o=n(69),a=n(3628),s=n(405),l=n(4955),u=n(2236),c=n(4688),h=n(908);const d={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},p=Object.keys(d);function f(e){const t={};for(const n of p)!0===e[n]&&(t[n]=!0);return 0===Object.keys(t).length?d:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}function g(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"===typeof t.handler&&"INPUT"!==e.target.nodeName.toUpperCase()&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}d.all=!0;var v=n(4716),y=n(9725);function m(e,t,n){const i=(0,v.FK)(e);let r,o=i.left-t.event.x,a=i.top-t.event.y,s=Math.abs(o),l=Math.abs(a);const u=t.direction;!0===u.horizontal&&!0!==u.vertical?r=o<0?"left":"right":!0!==u.horizontal&&!0===u.vertical?r=a<0?"up":"down":!0===u.up&&a<0?(r="up",s>l&&(!0===u.left&&o<0?r="left":!0===u.right&&o>0&&(r="right"))):!0===u.down&&a>0?(r="down",s>l&&(!0===u.left&&o<0?r="left":!0===u.right&&o>0&&(r="right"))):!0===u.left&&o<0?(r="left",s<l&&(!0===u.up&&a<0?r="up":!0===u.down&&a>0&&(r="down"))):!0===u.right&&o>0&&(r="right",s<l&&(!0===u.up&&a<0?r="up":!0===u.down&&a>0&&(r="down")));let c=!1;if(void 0===r&&!1===n){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};r=t.event.lastDir,c=!0,"left"===r||"right"===r?(i.left-=o,s=0,o=0):(i.top-=a,l=0,a=0)}return{synthetic:c,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:i,direction:r,isFirst:t.event.isFirst,isFinal:!0===n,duration:Date.now()-t.event.time,distance:{x:s,y:l},offset:{x:o,y:a},delta:{x:i.left-t.event.lastX,y:i.top-t.event.lastY}}}}let x=0;const _=(0,h.f)({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(!0!==n.mouse&&!0!==c.Lp.has.touch)return;function i(e,t){!0===n.mouse&&!0===t?(0,v.NS)(e):(!0===n.stop&&(0,v.sT)(e),!0===n.prevent&&(0,v.X$)(e))}const r={uid:"qvtp_"+x++,handler:t,modifiers:n,direction:f(n),noop:v.ZT,mouseStart(e){g(e,r)&&(0,v.du)(e)&&((0,v.M0)(r,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),r.start(e,!0))},touchStart(e){if(g(e,r)){const t=e.target;(0,v.M0)(r,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),r.start(e)}},start(t,i){if(!0===c.Lp.is.firefox&&(0,v.Jf)(e,!0),r.lastEvt=t,!0===i||!0===n.stop){if(!0!==r.direction.all&&(!0!==i||!0!==r.modifiers.mouseAllDir)){const e=t.type.indexOf("mouse")>-1?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&(0,v.X$)(e),!0===t.cancelBubble&&(0,v.sT)(e),Object.assign(e,{qKeyEvent:t.qKeyEvent,qClickOutside:t.qClickOutside,qAnchorHandled:t.qAnchorHandled,qClonedBy:void 0===t.qClonedBy?[r.uid]:t.qClonedBy.concat(r.uid)}),r.initialEvent={target:t.target,event:e}}(0,v.sT)(t)}const{left:o,top:a}=(0,v.FK)(t);r.event={x:o,y:a,time:Date.now(),mouse:!0===i,detected:!1,isFirst:!0,isFinal:!1,lastX:o,lastY:a}},move(e){if(void 0===r.event)return;const t=(0,v.FK)(e),o=t.left-r.event.x,a=t.top-r.event.y;if(0===o&&0===a)return;r.lastEvt=e;const s=!0===r.event.mouse,l=()=>{i(e,s),!0!==n.preserveCursor&&(document.documentElement.style.cursor="grabbing"),!0===s&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),(0,y.M)(),r.styleCleanup=e=>{if(r.styleCleanup=void 0,!0!==n.preserveCursor&&(document.documentElement.style.cursor=""),document.body.classList.remove("non-selectable"),!0===s){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout((()=>{t(),e()}),50):t()}else void 0!==e&&e()}};if(!0===r.event.detected){!0!==r.event.isFirst&&i(e,r.event.mouse);const{payload:t,synthetic:n}=m(e,r,!1);return void(void 0!==t&&(!1===r.handler(t)?r.end(e):(void 0===r.styleCleanup&&!0===r.event.isFirst&&l(),r.event.lastX=t.position.left,r.event.lastY=t.position.top,r.event.lastDir=!0===n?void 0:t.direction,r.event.isFirst=!1)))}if(!0===r.direction.all||!0===s&&!0===r.modifiers.mouseAllDir)return l(),r.event.detected=!0,void r.move(e);const u=Math.abs(o),c=Math.abs(a);u!==c&&(!0===r.direction.horizontal&&u>c||!0===r.direction.vertical&&u<c||!0===r.direction.up&&u<c&&a<0||!0===r.direction.down&&u<c&&a>0||!0===r.direction.left&&u>c&&o<0||!0===r.direction.right&&u>c&&o>0?(r.event.detected=!0,r.move(e)):r.end(e,!0))},end(t,n){if(void 0!==r.event){if((0,v.ul)(r,"temp"),!0===c.Lp.is.firefox&&(0,v.Jf)(e,!1),!0===n)void 0!==r.styleCleanup&&r.styleCleanup(),!0!==r.event.detected&&void 0!==r.initialEvent&&r.initialEvent.target.dispatchEvent(r.initialEvent.event);else if(!0===r.event.detected){!0===r.event.isFirst&&r.handler(m(void 0===t?r.lastEvt:t,r).payload);const{payload:e}=m(void 0===t?r.lastEvt:t,r,!0),n=()=>{r.handler(e)};void 0!==r.styleCleanup?r.styleCleanup(n):n()}r.event=void 0,r.initialEvent=void 0,r.lastEvt=void 0}}};e.__qtouchpan=r,!0===n.mouse&&(0,v.M0)(r,"main",[[e,"mousedown","mouseStart","passive"+(!0===n.mouseCapture?"Capture":"")]]),!0===c.Lp.has.touch&&(0,v.M0)(r,"main",[[e,"touchstart","touchStart","passive"+(!0===n.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;void 0!==n&&(t.oldValue!==t.value&&("function"!==typeof value&&n.end(),n.handler=t.value),n.direction=f(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),(0,v.ul)(t,"main"),(0,v.ul)(t,"temp"),!0===c.Lp.is.firefox&&(0,v.Jf)(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}});var b=n(2130),w=n(7657),S=n(2547);const M=150,C=(0,h.L)({name:"QDrawer",inheritAttrs:!1,props:{...a.vr,...u.S,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...a.gH,"on-layout","mini-state"],setup(e,{slots:t,emit:n,attrs:c}){const h=(0,i.FN)(),{proxy:{$q:d}}=h,p=(0,u.Z)(e,d),{preventBodyScroll:f}=(0,s.Z)(),{registerTimeout:g}=(0,l.Z)(),v=(0,i.f3)(S.YE,(()=>{console.error("QDrawer needs to be child of QLayout")}));let y,m,x;const C=(0,r.iH)("mobile"===e.behavior||"desktop"!==e.behavior&&v.totalWidth.value<=e.breakpoint),I=(0,i.Fl)((()=>!0===e.mini&&!0!==C.value)),T=(0,i.Fl)((()=>!0===I.value?e.miniWidth:e.width)),k=(0,r.iH)(!0===e.showIfAbove&&!1===C.value||!0===e.modelValue),A=(0,i.Fl)((()=>!0!==e.persistent&&(!0===C.value||!0===Z.value)));function D(e,t){if(R(),!1!==e&&v.animate(),ae(0),!0===C.value){const e=v.instances[G.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),se(1),!0!==v.isContainer.value&&f(!0)}else se(0),!1!==e&&le(!1);g((()=>{!1!==e&&le(!0),!0!==t&&n("show",e)}),M)}function L(e,t){E(),!1!==e&&v.animate(),se(0),ae(F.value*T.value),de(),!0!==t&&g((()=>{n("hide",e)}),M)}const{show:P,hide:O}=(0,a.ZP)({showing:k,hideOnRouteChange:A,handleShow:D,handleHide:L}),{addToHistory:R,removeFromHistory:E}=(0,o.Z)(k,O,A),N={belowBreakpoint:C,hide:O},B=(0,i.Fl)((()=>"right"===e.side)),F=(0,i.Fl)((()=>(!0===d.lang.rtl?-1:1)*(!0===B.value?1:-1))),z=(0,r.iH)(0),V=(0,r.iH)(!1),H=(0,r.iH)(!1),q=(0,r.iH)(T.value*F.value),G=(0,i.Fl)((()=>!0===B.value?"left":"right")),W=(0,i.Fl)((()=>!0===k.value&&!1===C.value&&!1===e.overlay?!0===e.miniToOverlay?e.miniWidth:T.value:0)),U=(0,i.Fl)((()=>!0===e.overlay||!0===e.miniToOverlay||v.view.value.indexOf(B.value?"R":"L")>-1||!0===d.platform.is.ios&&!0===v.isContainer.value)),j=(0,i.Fl)((()=>!1===e.overlay&&!0===k.value&&!1===C.value)),Z=(0,i.Fl)((()=>!0===e.overlay&&!0===k.value&&!1===C.value)),Y=(0,i.Fl)((()=>"fullscreen q-drawer__backdrop"+(!1===k.value&&!1===V.value?" hidden":""))),$=(0,i.Fl)((()=>({backgroundColor:`rgba(0,0,0,${.4*z.value})`}))),X=(0,i.Fl)((()=>!0===B.value?"r"===v.rows.value.top[2]:"l"===v.rows.value.top[0])),K=(0,i.Fl)((()=>!0===B.value?"r"===v.rows.value.bottom[2]:"l"===v.rows.value.bottom[0])),J=(0,i.Fl)((()=>{const e={};return!0===v.header.space&&!1===X.value&&(!0===U.value?e.top=`${v.header.offset}px`:!0===v.header.space&&(e.top=`${v.header.size}px`)),!0===v.footer.space&&!1===K.value&&(!0===U.value?e.bottom=`${v.footer.offset}px`:!0===v.footer.space&&(e.bottom=`${v.footer.size}px`)),e})),Q=(0,i.Fl)((()=>{const e={width:`${T.value}px`,transform:`translateX(${q.value}px)`};return!0===C.value?e:Object.assign(e,J.value)})),ee=(0,i.Fl)((()=>"q-drawer__content fit "+(!0!==v.isContainer.value?"scroll":"overflow-auto"))),te=(0,i.Fl)((()=>`q-drawer q-drawer--${e.side}`+(!0===H.value?" q-drawer--mini-animate":"")+(!0===e.bordered?" q-drawer--bordered":"")+(!0===p.value?" q-drawer--dark q-dark":"")+(!0===V.value?" no-transition":!0===k.value?"":" q-layout--prevent-focus")+(!0===C.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":" q-drawer--"+(!0===I.value?"mini":"standard")+(!0===U.value||!0!==j.value?" fixed":"")+(!0===e.overlay||!0===e.miniToOverlay?" q-drawer--on-top":"")+(!0===X.value?" q-drawer--top-padding":"")))),ne=(0,i.Fl)((()=>{const t=!0===d.lang.rtl?e.side:G.value;return[[_,ce,void 0,{[t]:!0,mouse:!0}]]})),ie=(0,i.Fl)((()=>{const t=!0===d.lang.rtl?G.value:e.side;return[[_,he,void 0,{[t]:!0,mouse:!0}]]})),re=(0,i.Fl)((()=>{const t=!0===d.lang.rtl?G.value:e.side;return[[_,he,void 0,{[t]:!0,mouse:!0,mouseAllDir:!0}]]}));function oe(){fe(C,"mobile"===e.behavior||"desktop"!==e.behavior&&v.totalWidth.value<=e.breakpoint)}function ae(e){void 0===e?(0,i.Y3)((()=>{e=!0===k.value?0:T.value,ae(F.value*e)})):(!0!==v.isContainer.value||!0!==B.value||!0!==C.value&&Math.abs(e)!==T.value||(e+=F.value*v.scrollbarWidth.value),q.value=e)}function se(e){z.value=e}function le(e){const t=!0===e?"remove":!0!==v.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function ue(){clearTimeout(m),h.proxy&&h.proxy.$el&&h.proxy.$el.classList.add("q-drawer--mini-animate"),H.value=!0,m=setTimeout((()=>{H.value=!1,h&&h.proxy&&h.proxy.$el&&h.proxy.$el.classList.remove("q-drawer--mini-animate")}),150)}function ce(e){if(!1!==k.value)return;const t=T.value,n=(0,b.vX)(e.distance.x,0,t);if(!0===e.isFinal){const e=n>=Math.min(75,t);return!0===e?P():(v.animate(),se(0),ae(F.value*t)),void(V.value=!1)}ae((!0===d.lang.rtl?!0!==B.value:B.value)?Math.max(t-n,0):Math.min(0,n-t)),se((0,b.vX)(n/t,0,1)),!0===e.isFirst&&(V.value=!0)}function he(t){if(!0!==k.value)return;const n=T.value,i=t.direction===e.side,r=(!0===d.lang.rtl?!0!==i:i)?(0,b.vX)(t.distance.x,0,n):0;if(!0===t.isFinal){const e=Math.abs(r)<Math.min(75,n);return!0===e?(v.animate(),se(1),ae(0)):O(),void(V.value=!1)}ae(F.value*r),se((0,b.vX)(1-r/n,0,1)),!0===t.isFirst&&(V.value=!0)}function de(){f(!1),le(!0)}function pe(t,n){v.update(e.side,t,n)}function fe(e,t){e.value!==t&&(e.value=t)}function ge(t,n){pe("size",!0===t?e.miniWidth:n)}return(0,i.YP)(C,(t=>{!0===t?(y=k.value,!0===k.value&&O(!1)):!1===e.overlay&&"mobile"!==e.behavior&&!1!==y&&(!0===k.value?(ae(0),se(0),de()):P(!1))})),(0,i.YP)((()=>e.side),((e,t)=>{v.instances[t]===N&&(v.instances[t]=void 0,v[t].space=!1,v[t].offset=0),v.instances[e]=N,v[e].size=T.value,v[e].space=j.value,v[e].offset=W.value})),(0,i.YP)(v.totalWidth,(()=>{!0!==v.isContainer.value&&!0===document.qScrollPrevented||oe()})),(0,i.YP)((()=>e.behavior+e.breakpoint),oe),(0,i.YP)(v.isContainer,(e=>{!0===k.value&&f(!0!==e),!0===e&&oe()})),(0,i.YP)(v.scrollbarWidth,(()=>{ae(!0===k.value?0:void 0)})),(0,i.YP)(W,(e=>{pe("offset",e)})),(0,i.YP)(j,(e=>{n("on-layout",e),pe("space",e)})),(0,i.YP)(B,(()=>{ae()})),(0,i.YP)(T,(t=>{ae(),ge(e.miniToOverlay,t)})),(0,i.YP)((()=>e.miniToOverlay),(e=>{ge(e,T.value)})),(0,i.YP)((()=>d.lang.rtl),(()=>{ae()})),(0,i.YP)((()=>e.mini),(()=>{!0===e.modelValue&&(ue(),v.animate())})),(0,i.YP)(I,(e=>{n("mini-state",e)})),v.instances[e.side]=N,ge(e.miniToOverlay,T.value),pe("space",j.value),pe("offset",W.value),!0===e.showIfAbove&&!0!==e.modelValue&&!0===k.value&&void 0!==e["onUpdate:modelValue"]&&n("update:modelValue",!0),(0,i.bv)((()=>{n("on-layout",j.value),n("mini-state",I.value),y=!0===e.showIfAbove;const t=()=>{const e=!0===k.value?D:L;e(!1,!0)};0===v.totalWidth.value?x=(0,i.YP)(v.totalWidth,(()=>{x(),x=void 0,!1===k.value&&!0===e.showIfAbove&&!1===C.value?P(!1):t()})):(0,i.Y3)(t)})),(0,i.Jd)((()=>{void 0!==x&&x(),clearTimeout(m),!0===k.value&&de(),v.instances[e.side]===N&&(v.instances[e.side]=void 0,pe("size",0),pe("offset",0),pe("space",!1))})),()=>{const n=[];!0===C.value&&(!1===e.noSwipeOpen&&n.push((0,i.wy)((0,i.h)("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),ne.value)),n.push((0,w.Jl)("div",{ref:"backdrop",class:Y.value,style:$.value,"aria-hidden":"true",onClick:O},void 0,"backdrop",!0!==e.noSwipeBackdrop&&!0===k.value,(()=>re.value))));const r=!0===I.value&&void 0!==t.mini,o=[(0,i.h)("div",{...c,key:""+r,class:[ee.value,c.class]},!0===r?t.mini():(0,w.KR)(t.default))];return!0===e.elevated&&!0===k.value&&o.push((0,i.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push((0,w.Jl)("aside",{ref:"content",class:te.value,style:Q.value},o,"contentclose",!0!==e.noSwipeClose&&!0===C.value,(()=>ie.value))),(0,i.h)("div",{class:"q-drawer-container"},n)}}})},3812:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(3673),r=n(1959),o=n(5151),a=n(908),s=n(7657),l=n(2547);const u=(0,a.L)({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=(0,i.FN)(),u=(0,i.f3)(l.YE,(()=>{console.error("QHeader needs to be child of QLayout")})),c=(0,r.iH)(parseInt(e.heightHint,10)),h=(0,r.iH)(!0),d=(0,i.Fl)((()=>!0===e.reveal||u.view.value.indexOf("H")>-1||a.platform.is.ios&&!0===u.isContainer.value)),p=(0,i.Fl)((()=>{if(!0!==e.modelValue)return 0;if(!0===d.value)return!0===h.value?c.value:0;const t=c.value-u.scroll.value.position;return t>0?t:0})),f=(0,i.Fl)((()=>!0!==e.modelValue||!0===d.value&&!0!==h.value)),g=(0,i.Fl)((()=>!0===e.modelValue&&!0===f.value&&!0===e.reveal)),v=(0,i.Fl)((()=>"q-header q-layout__section--marginal "+(!0===d.value?"fixed":"absolute")+"-top"+(!0===e.bordered?" q-header--bordered":"")+(!0===f.value?" q-header--hidden":"")+(!0!==e.modelValue?" q-layout--prevent-focus":""))),y=(0,i.Fl)((()=>{const e=u.rows.value.top,t={};return"l"===e[0]&&!0===u.left.space&&(t[!0===a.lang.rtl?"right":"left"]=`${u.left.size}px`),"r"===e[2]&&!0===u.right.space&&(t[!0===a.lang.rtl?"left":"right"]=`${u.right.size}px`),t}));function m(e,t){u.update("header",e,t)}function x(e,t){e.value!==t&&(e.value=t)}function _({height:e}){x(c,e),m("size",e)}function b(e){!0===g.value&&x(h,!0),n("focusin",e)}(0,i.YP)((()=>e.modelValue),(e=>{m("space",e),x(h,!0),u.animate()})),(0,i.YP)(p,(e=>{m("offset",e)})),(0,i.YP)((()=>e.reveal),(t=>{!1===t&&x(h,e.modelValue)})),(0,i.YP)(h,(e=>{u.animate(),n("reveal",e)})),(0,i.YP)(u.scroll,(t=>{!0===e.reveal&&x(h,"up"===t.direction||t.position<=e.revealOffset||t.position-t.inflectionPoint<100)}));const w={};return u.instances.header=w,!0===e.modelValue&&m("size",c.value),m("space",e.modelValue),m("offset",p.value),(0,i.Jd)((()=>{u.instances.header===w&&(u.instances.header=void 0,m("size",0),m("offset",0),m("space",!1))})),()=>{const n=(0,s.Bl)(t.default,[]);return!0===e.elevated&&n.push((0,i.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push((0,i.h)(o.Z,{debounce:0,onResize:_})),(0,i.h)("header",{class:v.value,style:y.value,onFocusin:b},n)}}})},4554:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(71);var i=n(3673),r=n(2417),o=n(908),a=n(7657);const s="0 0 24 24",l=e=>e,u=e=>`ionicons ${e}`,c={"mdi-":e=>`mdi ${e}`,"icon-":l,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":u,"ion-ios":u,"ion-logo":u,"iconfont ":l,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},h={o_:"-outlined",r_:"-round",s_:"-sharp"},d={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},p=new RegExp("^("+Object.keys(c).join("|")+")"),f=new RegExp("^("+Object.keys(h).join("|")+")"),g=new RegExp("^("+Object.keys(d).join("|")+")"),v=/^[Mm]\s?[-+]?\.?\d/,y=/^img:/,m=/^svguse:/,x=/^ion-/,_=/^(fa-(solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,b=(0,o.L)({name:"QIcon",props:{...r.LU,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),o=(0,r.ZP)(e),l=(0,i.Fl)((()=>"q-icon"+(!0===e.left?" on-left":"")+(!0===e.right?" on-right":"")+(void 0!==e.color?` text-${e.color}`:""))),u=(0,i.Fl)((()=>{let t,r=e.name;if("none"===r||!r)return{none:!0};if(null!==n.iconMapFn){const e=n.iconMapFn(r);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls,content:void 0!==e.content?e.content:" "};if(r=e.icon,"none"===r||!r)return{none:!0}}}if(!0===v.test(r)){const[e,t=s]=r.split("|");return{svg:!0,viewBox:t,nodes:e.split("&&").map((e=>{const[t,n,r]=e.split("@@");return(0,i.h)("path",{style:n,d:t,transform:r})}))}}if(!0===y.test(r))return{img:!0,src:r.substring(4)};if(!0===m.test(r)){const[e,t=s]=r.split("|");return{svguse:!0,src:e.substring(7),viewBox:t}}let o=" ";const a=r.match(p);if(null!==a)t=c[a[1]](r);else if(!0===_.test(r))t=r;else if(!0===x.test(r))t=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${r.substring(3)}`;else if(!0===g.test(r)){t="notranslate material-symbols";const e=r.match(g);null!==e&&(r=r.substring(6),t+=d[e[1]]),o=r}else{t="notranslate material-icons";const e=r.match(f);null!==e&&(r=r.substring(2),t+=h[e[1]]),o=r}return{cls:t,content:o}}));return()=>{const n={class:l.value,style:o.value,"aria-hidden":"true",role:"presentation"};return!0===u.value.none?(0,i.h)(e.tag,n,(0,a.KR)(t.default)):!0===u.value.img?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("img",{src:u.value.src})])):!0===u.value.svg?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("svg",{viewBox:u.value.viewBox||"0 0 24 24"},u.value.nodes)])):!0===u.value.svguse?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("svg",{viewBox:u.value.viewBox},[(0,i.h)("use",{"xlink:href":u.value.src})])])):(void 0!==u.value.cls&&(n.class+=" "+u.value.cls),(0,i.h)(e.tag,n,(0,a.vs)(t.default,[u.value.content])))}}})},4842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(71),n(3610);var i=n(1959),r=n(3673),o=n(2659),a=(n(5363),n(1436));const s={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},l={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},u=Object.keys(l);u.forEach((e=>{l[e].regex=new RegExp(l[e].pattern)}));const c=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+u.join("")+"])|(.)","g"),h=/[.*+?^${}()|[\]\\]/g,d=String.fromCharCode(1),p={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function f(e,t,n,o){let u,p,f,g;const v=(0,i.iH)(null),y=(0,i.iH)(x());function m(){return!0===e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}function x(){if(b(),!0===v.value){const t=I(k(e.modelValue));return!1!==e.fillMask?A(t):t}return e.modelValue}function _(e){if(e<u.length)return u.slice(-e);let t="",n=u;const i=n.indexOf(d);if(i>-1){for(let i=e-n.length;i>0;i--)t+=d;n=n.slice(0,i)+t+n.slice(i)}return n}function b(){if(v.value=void 0!==e.mask&&e.mask.length>0&&m(),!1===v.value)return g=void 0,u="",void(p="");const t=void 0===s[e.mask]?e.mask:s[e.mask],n="string"===typeof e.fillMask&&e.fillMask.length>0?e.fillMask.slice(0,1):"_",i=n.replace(h,"\\$&"),r=[],o=[],a=[];let y=!0===e.reverseFillMask,x="",_="";t.replace(c,((e,t,n,i,s)=>{if(void 0!==i){const e=l[i];a.push(e),_=e.negate,!0===y&&(o.push("(?:"+_+"+)?("+e.pattern+"+)?(?:"+_+"+)?("+e.pattern+"+)?"),y=!1),o.push("(?:"+_+"+)?("+e.pattern+")?")}else if(void 0!==n)x="\\"+("\\"===n?"":n),a.push(n),r.push("([^"+x+"]+)?"+x+"?");else{const e=void 0!==t?t:s;x="\\"===e?"\\\\\\\\":e.replace(h,"\\\\$&"),a.push(e),r.push("([^"+x+"]+)?"+x+"?")}}));const b=new RegExp("^"+r.join("")+"("+(""===x?".":"[^"+x+"]")+"+)?$"),w=o.length-1,S=o.map(((t,n)=>0===n&&!0===e.reverseFillMask?new RegExp("^"+i+"*"+t):n===w?new RegExp("^"+t+"("+(""===_?".":_)+"+)?"+(!0===e.reverseFillMask?"$":i+"*")):new RegExp("^"+t)));f=a,g=e=>{const t=b.exec(e);null!==t&&(e=t.slice(1).join(""));const n=[],i=S.length;for(let r=0,o=e;r<i;r++){const e=S[r].exec(o);if(null===e)break;o=o.slice(e.shift().length),n.push(...e)}return n.length>0?n.join(""):e},u=a.map((e=>"string"===typeof e?e:d)).join(""),p=u.split(d).join(n)}function w(t,i,a){const s=o.value,l=s.selectionEnd,c=s.value.length-l,h=k(t);!0===i&&b();const f=I(h),g=!1!==e.fillMask?A(f):f,v=y.value!==g;s.value!==g&&(s.value=g),!0===v&&(y.value=g),document.activeElement===s&&(0,r.Y3)((()=>{if(g!==p)if("insertFromPaste"!==a||!0===e.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(a)>-1){const t=!0===e.reverseFillMask?0===l?g.length>f.length?1:0:Math.max(0,g.length-(g===p?0:Math.min(f.length,c)+1))+1:l;s.setSelectionRange(t,t,"forward")}else if(!0===e.reverseFillMask)if(!0===v){const e=Math.max(0,g.length-(g===p?0:Math.min(f.length,c+1)));1===e&&1===l?s.setSelectionRange(e,e,"forward"):M.rightReverse(s,e,e)}else{const e=g.length-c;s.setSelectionRange(e,e,"backward")}else if(!0===v){const e=Math.max(0,u.indexOf(d),Math.min(f.length,l)-1);M.right(s,e,e)}else{const e=l-1;M.right(s,e,e)}else{const e=l-1;M.right(s,e,e)}else{const t=!0===e.reverseFillMask?p.length:0;s.setSelectionRange(t,t,"forward")}}));const m=!0===e.unmaskedValue?k(g):g;String(e.modelValue)!==m&&n(m,!0)}function S(e,t,n){const i=I(k(e.value));t=Math.max(0,u.indexOf(d),Math.min(i.length,t)),e.setSelectionRange(t,n,"forward")}(0,r.YP)((()=>e.type+e.autogrow),b),(0,r.YP)((()=>e.mask),(n=>{if(void 0!==n)w(y.value,!0);else{const n=k(y.value);b(),e.modelValue!==n&&t("update:modelValue",n)}})),(0,r.YP)((()=>e.fillMask+e.reverseFillMask),(()=>{!0===v.value&&w(y.value,!0)})),(0,r.YP)((()=>e.unmaskedValue),(()=>{!0===v.value&&w(y.value)}));const M={left(e,t,n,i){const r=-1===u.slice(t-1).indexOf(d);let o=Math.max(0,t-1);for(;o>=0;o--)if(u[o]===d){t=o,!0===r&&t++;break}if(o<0&&void 0!==u[t]&&u[t]!==d)return M.right(e,0,0);t>=0&&e.setSelectionRange(t,!0===i?n:t,"backward")},right(e,t,n,i){const r=e.value.length;let o=Math.min(r,n+1);for(;o<=r;o++){if(u[o]===d){n=o;break}u[o-1]===d&&(n=o)}if(o>r&&void 0!==u[n-1]&&u[n-1]!==d)return M.left(e,r,r);e.setSelectionRange(i?t:n,n,"forward")},leftReverse(e,t,n,i){const r=_(e.value.length);let o=Math.max(0,t-1);for(;o>=0;o--){if(r[o-1]===d){t=o;break}if(r[o]===d&&(t=o,0===o))break}if(o<0&&void 0!==r[t]&&r[t]!==d)return M.rightReverse(e,0,0);t>=0&&e.setSelectionRange(t,!0===i?n:t,"backward")},rightReverse(e,t,n,i){const r=e.value.length,o=_(r),a=-1===o.slice(0,n+1).indexOf(d);let s=Math.min(r,n+1);for(;s<=r;s++)if(o[s-1]===d){n=s,n>0&&!0===a&&n--;break}if(s>r&&void 0!==o[n-1]&&o[n-1]!==d)return M.leftReverse(e,r,r);e.setSelectionRange(!0===i?t:n,n,"forward")}};function C(t){if(!0===(0,a.Wm)(t))return;const n=o.value,i=n.selectionStart,r=n.selectionEnd;if(37===t.keyCode||39===t.keyCode){const o=M[(39===t.keyCode?"right":"left")+(!0===e.reverseFillMask?"Reverse":"")];t.preventDefault(),o(n,i,r,t.shiftKey)}else 8===t.keyCode&&!0!==e.reverseFillMask&&i===r?M.left(n,i,r,!0):46===t.keyCode&&!0===e.reverseFillMask&&i===r&&M.rightReverse(n,i,r,!0)}function I(t){if(void 0===t||null===t||""===t)return"";if(!0===e.reverseFillMask)return T(t);const n=f;let i=0,r="";for(let e=0;e<n.length;e++){const o=t[i],a=n[e];if("string"===typeof a)r+=a,o===a&&i++;else{if(void 0===o||!a.regex.test(o))return r;r+=void 0!==a.transform?a.transform(o):o,i++}}return r}function T(e){const t=f,n=u.indexOf(d);let i=e.length-1,r="";for(let o=t.length-1;o>=0&&i>-1;o--){const a=t[o];let s=e[i];if("string"===typeof a)r=a+r,s===a&&i--;else{if(void 0===s||!a.regex.test(s))return r;do{r=(void 0!==a.transform?a.transform(s):s)+r,i--,s=e[i]}while(n===o&&void 0!==s&&a.regex.test(s))}}return r}function k(e){return"string"!==typeof e||void 0===g?"number"===typeof e?g(""+e):e:g(e)}function A(t){return p.length-t.length<=0?t:!0===e.reverseFillMask&&t.length>0?p.slice(0,-t.length)+t:t+p.slice(t.length)}return{innerValue:y,hasMask:v,moveCursorForPaste:S,updateMaskValue:w,onMaskedKeydown:C}}var g=n(9550);function v(e,t){function n(){const t=e.modelValue;try{const e="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(t)===t&&("length"in t?Array.from(t):[t]).forEach((t=>{e.items.add(t)})),{files:e.files}}catch(n){return{files:void 0}}}return!0===t?(0,r.Fl)((()=>{if("file"===e.type)return n()})):(0,r.Fl)(n)}var y=n(4421),m=n(908),x=n(4716),_=n(230);const b=(0,m.L)({name:"QInput",inheritAttrs:!1,props:{...o.Cl,...p,...g.Fz,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...o.HJ,"paste","change"],setup(e,{emit:t,attrs:n}){const a={};let s,l,u,c,h=NaN;const d=(0,i.iH)(null),p=(0,g.Do)(e),{innerValue:m,hasMask:b,moveCursorForPaste:w,updateMaskValue:S,onMaskedKeydown:M}=f(e,t,B,d),C=v(e,!0),I=(0,r.Fl)((()=>(0,o.yV)(m.value))),T=(0,y.Z)(N),k=(0,o.tL)(),A=(0,r.Fl)((()=>"textarea"===e.type||!0===e.autogrow)),D=(0,r.Fl)((()=>!0===A.value||["text","search","url","tel","password"].includes(e.type))),L=(0,r.Fl)((()=>{const t={...k.splitAttrs.listeners.value,onInput:N,onPaste:E,onChange:z,onBlur:V,onFocus:x.sT};return t.onCompositionstart=t.onCompositionupdate=t.onCompositionend=T,!0===b.value&&(t.onKeydown=M),!0===e.autogrow&&(t.onAnimationend=F),t})),P=(0,r.Fl)((()=>{const t={tabindex:0,"data-autofocus":!0===e.autofocus||void 0,rows:"textarea"===e.type?6:void 0,"aria-label":e.label,name:p.value,...k.splitAttrs.attributes.value,id:k.targetUid.value,maxlength:e.maxlength,disabled:!0===e.disable,readonly:!0===e.readonly};return!1===A.value&&(t.type=e.type),!0===e.autogrow&&(t.rows=1),t}));function O(){(0,_.jd)((()=>{const e=document.activeElement;null===d.value||d.value===e||null!==e&&e.id===k.targetUid.value||d.value.focus({preventScroll:!0})}))}function R(){null!==d.value&&d.value.select()}function E(n){if(!0===b.value&&!0!==e.reverseFillMask){const e=n.target;w(e,e.selectionStart,e.selectionEnd)}t("paste",n)}function N(n){if(!n||!n.target)return;if("file"===e.type)return void t("update:modelValue",n.target.files);const i=n.target.value;if(!0!==n.target.qComposing){if(!0===b.value)S(i,!1,n.inputType);else if(B(i),!0===D.value&&n.target===document.activeElement){const{selectionStart:e,selectionEnd:t}=n.target;void 0!==e&&void 0!==t&&(0,r.Y3)((()=>{n.target===document.activeElement&&0===i.indexOf(n.target.value)&&n.target.setSelectionRange(e,t)}))}!0===e.autogrow&&F()}else a.value=i}function B(n,i){c=()=>{"number"!==e.type&&!0===a.hasOwnProperty("value")&&delete a.value,e.modelValue!==n&&h!==n&&(h=n,!0===i&&(l=!0),t("update:modelValue",n),(0,r.Y3)((()=>{h===n&&(h=NaN)}))),c=void 0},"number"===e.type&&(s=!0,a.value=n),void 0!==e.debounce?(clearTimeout(u),a.value=n,u=setTimeout(c,e.debounce)):c()}function F(){const e=d.value;if(null!==e){const t=e.parentNode.style,{overflow:n}=e.style;t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.overflow="hidden",e.style.height=e.scrollHeight+"px",e.style.overflow=n,t.marginBottom=""}}function z(e){T(e),clearTimeout(u),void 0!==c&&c(),t("change",e.target.value)}function V(t){void 0!==t&&(0,x.sT)(t),clearTimeout(u),void 0!==c&&c(),s=!1,l=!1,delete a.value,"file"!==e.type&&setTimeout((()=>{null!==d.value&&(d.value.value=void 0!==m.value?m.value:"")}))}function H(){return!0===a.hasOwnProperty("value")?a.value:void 0!==m.value?m.value:""}(0,r.YP)((()=>e.type),(()=>{d.value&&(d.value.value=e.modelValue)})),(0,r.YP)((()=>e.modelValue),(t=>{if(!0===b.value){if(!0===l&&(l=!1,String(t)===h))return;S(t)}else m.value!==t&&(m.value=t,"number"===e.type&&!0===a.hasOwnProperty("value")&&(!0===s?s=!1:delete a.value));!0===e.autogrow&&(0,r.Y3)(F)})),(0,r.YP)((()=>e.autogrow),(e=>{!0===e?(0,r.Y3)(F):null!==d.value&&n.rows>0&&(d.value.style.height="auto")})),(0,r.YP)((()=>e.dense),(()=>{!0===e.autogrow&&(0,r.Y3)(F)})),(0,r.Jd)((()=>{V()})),(0,r.bv)((()=>{!0===e.autogrow&&F()})),Object.assign(k,{innerValue:m,fieldClass:(0,r.Fl)((()=>"q-"+(!0===A.value?"textarea":"input")+(!0===e.autogrow?" q-textarea--autogrow":""))),hasShadow:(0,r.Fl)((()=>"file"!==e.type&&"string"===typeof e.shadowText&&e.shadowText.length>0)),inputRef:d,emitValue:B,hasValue:I,floatingLabel:(0,r.Fl)((()=>!0===I.value||(0,o.yV)(e.displayValue))),getControl:()=>(0,r.h)(!0===A.value?"textarea":"input",{ref:d,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...P.value,...L.value,..."file"!==e.type?{value:H()}:C.value}),getShadowControl:()=>(0,r.h)("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===A.value?"":" text-no-wrap")},[(0,r.h)("span",{class:"invisible"},H()),(0,r.h)("span",e.shadowText)])});const q=(0,o.ZP)(k),G=(0,r.FN)();return Object.assign(G.proxy,{focus:O,select:R,getNativeElement:()=>d.value}),q}})},3414:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(3673),r=n(1959),o=n(2236),a=n(7277),s=n(908),l=n(7657),u=n(4716),c=n(1436);const h=(0,s.L)({name:"QItem",props:{...o.S,...a.$,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:s}}=(0,i.FN)(),h=(0,o.Z)(e,s),{hasRouterLink:d,hasLink:p,linkProps:f,linkClass:g,linkTag:v,navigateToRouterLink:y}=(0,a.Z)(),m=(0,r.iH)(null),x=(0,r.iH)(null),_=(0,i.Fl)((()=>!0===e.clickable||!0===p.value||"label"===e.tag)),b=(0,i.Fl)((()=>!0!==e.disable&&!0===_.value)),w=(0,i.Fl)((()=>"q-item q-item-type row no-wrap"+(!0===e.dense?" q-item--dense":"")+(!0===h.value?" q-item--dark":"")+(!0===p.value&&null===e.active?g.value:!0===e.active?(void 0!==e.activeClass?` ${e.activeClass}`:"")+" q-item--active":"")+(!0===e.disable?" disabled":"")+(!0===b.value?" q-item--clickable q-link cursor-pointer "+(!0===e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===e.focused?" q-manual-focusable--focused":""):""))),S=(0,i.Fl)((()=>{if(void 0===e.insetLevel)return null;const t=!0===s.lang.rtl?"Right":"Left";return{["padding"+t]:16+56*e.insetLevel+"px"}}));function M(e){!0===b.value&&(null!==x.value&&(!0!==e.qKeyEvent&&document.activeElement===m.value?x.value.focus():document.activeElement===x.value&&m.value.focus()),!0===d.value&&y(e),n("click",e))}function C(e){if(!0===b.value&&!0===(0,c.So)(e,13)){(0,u.NS)(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,m.value.dispatchEvent(t)}n("keyup",e)}function I(){const e=(0,l.Bl)(t.default,[]);return!0===b.value&&e.unshift((0,i.h)("div",{class:"q-focus-helper",tabindex:-1,ref:x})),e}return()=>{const t={ref:m,class:w.value,style:S.value,onClick:M,onKeyup:C};return!0===b.value?(t.tabindex=e.tabindex||"0",Object.assign(t,f.value)):!0===_.value&&(t["aria-disabled"]="true"),(0,i.h)(v.value,t,I())}}})},2350:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=(0,i.Fl)((()=>parseInt(e.lines,10))),r=(0,i.Fl)((()=>"q-item__label"+(!0===e.overline?" q-item__label--overline text-overline":"")+(!0===e.caption?" q-item__label--caption text-caption":"")+(!0===e.header?" q-item__label--header":"")+(1===n.value?" ellipsis":""))),a=(0,i.Fl)((()=>void 0!==e.lines&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null));return()=>(0,i.h)("div",{style:a.value,class:r.value},(0,o.KR)(t.default))}})},2035:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-item__section column q-item__section--"+(!0===e.avatar||!0===e.side||!0===e.thumbnail?"side":"main")+(!0===e.top?" q-item__section--top justify-start":" justify-center")+(!0===e.avatar?" q-item__section--avatar":"")+(!0===e.thumbnail?" q-item__section--thumbnail":"")+(!0===e.noWrap?" q-item__section--nowrap":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},7011:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(2236),a=n(7657);const s=(0,r.L)({name:"QList",props:{...o.S,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,o.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-list"+(!0===e.bordered?" q-list--bordered":"")+(!0===e.dense?" q-list--dense":"")+(!0===e.separator?" q-list--separator":"")+(!0===r.value?" q-list--dark":"")+(!0===e.padding?" q-list--padding":"")));return()=>(0,i.h)("div",{class:s.value},(0,a.KR)(t.default))}})},3066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(3673),r=n(1959),o=n(4688),a=(n(3610),n(71),n(908)),s=n(8400),l=n(4716);const{passive:u}=l.rU,c=["both","horizontal","vertical"],h=(0,a.L)({name:"QScrollObserver",props:{axis:{type:String,validator:e=>c.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let r,o,a=null;function c(){null!==a&&a();const i=Math.max(0,(0,s.u3)(r)),o=(0,s.OI)(r),l={top:i-n.position.top,left:o-n.position.left};if("vertical"===e.axis&&0===l.top||"horizontal"===e.axis&&0===l.left)return;const u=Math.abs(l.top)>=Math.abs(l.left)?l.top<0?"up":"down":l.left<0?"left":"right";n.position={top:i,left:o},n.directionChanged=n.direction!==u,n.delta=l,!0===n.directionChanged&&(n.direction=u,n.inflectionPoint=n.position),t("scroll",{...n})}function h(){r=(0,s.b0)(o,e.scrollTarget),r.addEventListener("scroll",p,u),p(!0)}function d(){void 0!==r&&(r.removeEventListener("scroll",p,u),r=void 0)}function p(t){if(!0===t||0===e.debounce||"0"===e.debounce)c();else if(null===a){const[t,n]=e.debounce?[setTimeout(c,e.debounce),clearTimeout]:[requestAnimationFrame(c),cancelAnimationFrame];a=()=>{n(t),a=null}}}(0,i.YP)((()=>e.scrollTarget),(()=>{d(),h()}));const f=(0,i.FN)();return(0,i.bv)((()=>{o=f.proxy.$el.parentNode,h()})),(0,i.Jd)((()=>{null!==a&&a(),d()})),Object.assign(f.proxy,{trigger:p,getPosition:()=>n}),l.ZT}});var d=n(5151),p=n(7657),f=n(2547);const g=(0,a.L)({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=(0,i.FN)(),l=(0,r.iH)(null),u=(0,r.iH)(a.screen.height),c=(0,r.iH)(!0===e.container?0:a.screen.width),g=(0,r.iH)({position:0,direction:"down",inflectionPoint:0}),v=(0,r.iH)(0),y=(0,r.iH)(!0===o.uX.value?0:(0,s.np)()),m=(0,i.Fl)((()=>"q-layout q-layout--"+(!0===e.container?"containerized":"standard"))),x=(0,i.Fl)((()=>!1===e.container?{minHeight:a.screen.height+"px"}:null)),_=(0,i.Fl)((()=>0!==y.value?{[!0===a.lang.rtl?"left":"right"]:`${y.value}px`}:null)),b=(0,i.Fl)((()=>0!==y.value?{[!0===a.lang.rtl?"right":"left"]:0,[!0===a.lang.rtl?"left":"right"]:`-${y.value}px`,width:`calc(100% + ${y.value}px)`}:null));function w(t){if(!0===e.container||!0!==document.qScrollPrevented){const i={position:t.position.top,direction:t.direction,directionChanged:t.directionChanged,inflectionPoint:t.inflectionPoint.top,delta:t.delta.top};g.value=i,void 0!==e.onScroll&&n("scroll",i)}}function S(t){const{height:i,width:r}=t;let o=!1;u.value!==i&&(o=!0,u.value=i,void 0!==e.onScrollHeight&&n("scroll-height",i),C()),c.value!==r&&(o=!0,c.value=r),!0===o&&void 0!==e.onResize&&n("resize",t)}function M({height:e}){v.value!==e&&(v.value=e,C())}function C(){if(!0===e.container){const e=u.value>v.value?(0,s.np)():0;y.value!==e&&(y.value=e)}}let I;const T={instances:{},view:(0,i.Fl)((()=>e.view)),isContainer:(0,i.Fl)((()=>e.container)),rootRef:l,height:u,containerHeight:v,scrollbarWidth:y,totalWidth:(0,i.Fl)((()=>c.value+y.value)),rows:(0,i.Fl)((()=>{const t=e.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}})),header:(0,r.qj)({size:0,offset:0,space:!1}),right:(0,r.qj)({size:300,offset:0,space:!1}),footer:(0,r.qj)({size:0,offset:0,space:!1}),left:(0,r.qj)({size:300,offset:0,space:!1}),scroll:g,animate(){void 0!==I?clearTimeout(I):document.body.classList.add("q-body--layout-animate"),I=setTimeout((()=>{document.body.classList.remove("q-body--layout-animate"),I=void 0}),155)},update(e,t,n){T[e][t]=n}};if((0,i.JJ)(f.YE,T),(0,s.np)()>0){let k=null;const A=document.body;function D(){k=null,A.classList.remove("hide-scrollbar")}function L(){if(null===k){if(A.scrollHeight>a.screen.height)return;A.classList.add("hide-scrollbar")}else clearTimeout(k);k=setTimeout(D,300)}function P(e){null!==k&&"remove"===e&&(clearTimeout(k),D()),window[`${e}EventListener`]("resize",L)}(0,i.YP)((()=>!0!==e.container?"add":"remove"),P),!0!==e.container&&P("add"),(0,i.Ah)((()=>{P("remove")}))}return()=>{const n=(0,p.vs)(t.default,[(0,i.h)(h,{onScroll:w}),(0,i.h)(d.Z,{onResize:S})]),r=(0,i.h)("div",{class:m.value,style:x.value,ref:!0===e.container?void 0:l,tabindex:-1},n);return!0===e.container?(0,i.h)("div",{class:"q-layout-container overflow-hidden",ref:l},[(0,i.h)(d.Z,{onResize:M}),(0,i.h)("div",{class:"absolute-full",style:_.value},[(0,i.h)("div",{class:"scroll",style:b.value},[r])])]):r}}})},811:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(5875),s=n(1372),l=n(3628),u=n(2236),c=n(5911),h=n(6104),d=n(416),p=n(4955),f=n(908),g=n(4312),v=n(8400),y=n(4716),m=n(7657),x=n(4704),_=n(8517),b=n(2012),w=n(9916),S=n(230),M=n(2657);const C=(0,f.L)({name:"QMenu",inheritAttrs:!1,props:{...a.u,...l.vr,...u.S,...h.D,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:M.$},self:{type:String,validator:M.$},offset:{type:Array,validator:M.io},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...l.gH,"click","escape-key"],setup(e,{slots:t,emit:n,attrs:f}){let C,I,T,k=null;const A=(0,i.FN)(),{proxy:D}=A,{$q:L}=D,P=(0,r.iH)(null),O=(0,r.iH)(!1),R=(0,i.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss)),E=(0,u.Z)(e,L),{registerTick:N,removeTick:B}=(0,d.Z)(),{registerTimeout:F,removeTimeout:z}=(0,p.Z)(),{transition:V,transitionStyle:H}=(0,h.Z)(e,O),{localScrollTarget:q,changeScrollEvent:G,unconfigureScrollTarget:W}=(0,s.Z)(e,se),{anchorEl:U,canShow:j}=(0,a.Z)({showing:O}),{hide:Z}=(0,l.ZP)({showing:O,canShow:j,handleShow:re,handleHide:oe,hideOnRouteChange:R,processOnMount:!0}),{showPortal:Y,hidePortal:$,renderPortal:X}=(0,c.Z)(A,P,de),K={anchorEl:U,innerRef:P,onClickOutside(t){if(!0!==e.persistent&&!0===O.value)return Z(t),("touchstart"===t.type||t.target.classList.contains("q-dialog__backdrop"))&&(0,y.NS)(t),!0}},J=(0,i.Fl)((()=>(0,M.li)(e.anchor||(!0===e.cover?"center middle":"bottom start"),L.lang.rtl))),Q=(0,i.Fl)((()=>!0===e.cover?J.value:(0,M.li)(e.self||"top start",L.lang.rtl))),ee=(0,i.Fl)((()=>(!0===e.square?" q-menu--square":"")+(!0===E.value?" q-menu--dark q-dark":""))),te=(0,i.Fl)((()=>!0===e.autoClose?{onClick:le}:{})),ne=(0,i.Fl)((()=>!0===O.value&&!0!==e.persistent));function ie(){(0,S.jd)((()=>{let e=P.value;e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus], [data-autofocus]")||e,e.focus({preventScroll:!0}))}))}function re(t){if(B(),z(),k=!1===e.noRefocus?document.activeElement:null,(0,_.i)(ue),Y(),se(),C=void 0,void 0!==t&&(e.touchPosition||e.contextMenu)){const e=(0,y.FK)(t);if(void 0!==e.left){const{top:t,left:n}=U.value.getBoundingClientRect();C={left:e.left-n,top:e.top-t}}}void 0===I&&(I=(0,i.YP)((()=>L.screen.width+"|"+L.screen.height+"|"+e.self+"|"+e.anchor+"|"+L.lang.rtl),he)),!0!==e.noFocus&&document.activeElement.blur(),N((()=>{he(),!0!==e.noFocus&&ie()})),F((()=>{!0===L.platform.is.ios&&(T=e.autoClose,P.value.click()),he(),Y(!0),n("show",t)}),e.transitionDuration)}function oe(t){B(),z(),$(),ae(!0),null===k||void 0!==t&&!0===t.qClickOutside||(k.focus(),k=null),F((()=>{$(!0),n("hide",t)}),e.transitionDuration)}function ae(e){C=void 0,void 0!==I&&(I(),I=void 0),!0!==e&&!0!==O.value||((0,_.H)(ue),W(),(0,w.D)(K),(0,x.k)(ce)),!0!==e&&(k=null)}function se(){null===U.value&&void 0===e.scrollTarget||(q.value=(0,v.b0)(U.value,e.scrollTarget),G(q.value,he))}function le(e){!0!==T?((0,g.AH)(D,e),n("click",e)):T=!1}function ue(t){!0===ne.value&&!0!==e.noFocus&&!0!==(0,b.mY)(P.value,t.target)&&ie()}function ce(e){n("escape-key"),Z(e)}function he(){const t=P.value;null!==t&&null!==U.value&&(0,M.wq)({el:t,offset:e.offset,anchorEl:U.value,anchorOrigin:J.value,selfOrigin:Q.value,absoluteOffset:C,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function de(){return(0,i.h)(o.uT,{name:V.value,appear:!0},(()=>!0===O.value?(0,i.h)("div",{...f,ref:P,tabindex:-1,class:["q-menu q-position-engine scroll"+ee.value,f.class],style:[f.style,H.value],...te.value},(0,m.KR)(t.default)):null))}return(0,i.YP)(ne,(e=>{!0===e?((0,x.c)(ce),(0,w.m)(K)):((0,x.k)(ce),(0,w.D)(K))})),(0,i.Jd)(ae),Object.assign(D,{focus:ie,updatePosition:he}),X}})},2652:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(7657),a=n(2547);const s=(0,r.L)({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),r=(0,i.f3)(a.YE,(()=>{console.error("QPageContainer needs to be child of QLayout")}));(0,i.JJ)(a.Mw,!0);const s=(0,i.Fl)((()=>{const e={};return!0===r.header.space&&(e.paddingTop=`${r.header.size}px`),!0===r.right.space&&(e["padding"+(!0===n.lang.rtl?"Left":"Right")]=`${r.right.size}px`),!0===r.footer.space&&(e.paddingBottom=`${r.footer.size}px`),!0===r.left.space&&(e["padding"+(!0===n.lang.rtl?"Right":"Left")]=`${r.left.size}px`),e}));return()=>(0,i.h)("div",{class:"q-page-container",style:s.value},(0,o.KR)(t.default))}})},3944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(3673),r=n(1959),o=n(6778),a=n(811),s=n(5875),l=n(908);const u=(0,l.L)({name:"QPopupProxy",props:{...s.u,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:t,emit:n,attrs:l}){const{proxy:u}=(0,i.FN)(),{$q:c}=u,h=(0,r.iH)(!1),d=(0,r.iH)(null),p=(0,i.Fl)((()=>parseInt(e.breakpoint,10))),{canShow:f}=(0,s.Z)({showing:h});function g(){return c.screen.width<p.value||c.screen.height<p.value?"dialog":"menu"}const v=(0,r.iH)(g()),y=(0,i.Fl)((()=>"menu"===v.value?{maxHeight:"99vh"}:{}));function m(e){h.value=!0,n("show",e)}function x(e){h.value=!1,v.value=g(),n("hide",e)}return(0,i.YP)((()=>g()),(e=>{!0!==h.value&&(v.value=e)})),Object.assign(u,{show(e){!0===f(e)&&d.value.show(e)},hide(e){d.value.hide(e)},toggle(e){d.value.toggle(e)}}),()=>{const n={ref:d,...y.value,...l,onShow:m,onHide:x};let r;return"dialog"===v.value?r=o.Z:(r=a.Z,Object.assign(n,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),(0,i.h)(r,n,t.default)}}})},5151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(3673),r=n(1959),o=n(4688);function a(){const e=(0,r.iH)(!o.uX.value);return!1===e.value&&(0,i.bv)((()=>{e.value=!0})),e}var s=n(908),l=n(4716);const u="undefined"!==typeof ResizeObserver,c=!0===u?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},h=(0,s.L)({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n,r=null,o={width:-1,height:-1};function s(t){!0===t||0===e.debounce||"0"===e.debounce?h():null===r&&(r=setTimeout(h,e.debounce))}function h(){if(clearTimeout(r),r=null,n){const{offsetWidth:e,offsetHeight:i}=n;e===o.width&&i===o.height||(o={width:e,height:i},t("resize",o))}}const d=(0,i.FN)();if(Object.assign(d.proxy,{trigger:s}),!0===u){let p;return(0,i.bv)((()=>{(0,i.Y3)((()=>{n=d.proxy.$el.parentNode,n&&(p=new ResizeObserver(s),p.observe(n),h())}))})),(0,i.Jd)((()=>{clearTimeout(r),void 0!==p&&(void 0!==p.disconnect?p.disconnect():n&&p.unobserve(n))})),l.ZT}{const f=a();let g;function v(){clearTimeout(r),void 0!==g&&(void 0!==g.removeEventListener&&g.removeEventListener("resize",s,l.rU.passive),g=void 0)}function y(){v(),n&&n.contentDocument&&(g=n.contentDocument.defaultView,g.addEventListener("resize",s,l.rU.passive),h())}return(0,i.bv)((()=>{(0,i.Y3)((()=>{n=d.proxy.$el,n&&y()}))})),(0,i.Jd)(v),()=>{if(!0===f.value)return(0,i.h)("object",{style:c.style,tabindex:-1,type:"text/html",data:c.url,"aria-hidden":"true",onLoad:y})}}}})},5869:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(2236),o=n(908);const a={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},s={xs:2,sm:4,md:8,lg:16,xl:24},l=(0,o.L)({name:"QSeparator",props:{...r.S,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=(0,i.FN)(),n=(0,r.Z)(e,t.proxy.$q),o=(0,i.Fl)((()=>!0===e.vertical?"vertical":"horizontal")),l=(0,i.Fl)((()=>` q-separator--${o.value}`)),u=(0,i.Fl)((()=>!1!==e.inset?`${l.value}-${a[e.inset]}`:"")),c=(0,i.Fl)((()=>`q-separator${l.value}${u.value}`+(void 0!==e.color?` bg-${e.color}`:"")+(!0===n.value?" q-separator--dark":""))),h=(0,i.Fl)((()=>{const t={};if(void 0!==e.size&&(t[!0===e.vertical?"width":"height"]=e.size),!1!==e.spaced){const n=!0===e.spaced?`${s.md}px`:e.spaced in s?`${s[e.spaced]}px`:e.spaced,i=!0===e.vertical?["Left","Right"]:["Top","Bottom"];t[`margin${i[0]}`]=t[`margin${i[1]}`]=n}return t}));return()=>(0,i.h)("hr",{class:c.value,style:h.value,"aria-orientation":o.value})}})},2025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908);const o=(0,i.h)("div",{class:"q-space"}),a=(0,r.L)({name:"QSpace",setup(){return()=>o}})},9754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(2417);const o={size:{type:[Number,String],default:"1em"},color:String};function a(e){return{cSize:(0,i.Fl)((()=>e.size in r.Ok?`${r.Ok[e.size]}px`:e.size)),classes:(0,i.Fl)((()=>"q-spinner"+(e.color?` text-${e.color}`:"")))}}var s=n(908);const l=(0,s.L)({name:"QSpinner",props:{...o,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=a(e);return()=>(0,i.h)("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[(0,i.h)("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}})},4147:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Be});n(3610),n(71);var i=n(3673),r=n(1959),o=n(4554),a=n(908),s=n(7657);const l=(0,a.L)({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const r=(0,i.FN)(),{proxy:{$q:a}}=r,l=e=>{n("click",e)};return()=>{if(void 0===e.props)return(0,i.h)("th",{class:!0===e.autoWidth?"q-table--col-auto-width":"",onClick:l},(0,s.KR)(t.default));let n,u;const c=r.vnode.key;if(c){if(n=e.props.colsMap[c],void 0===n)return}else n=e.props.col;if(!0===n.sortable){const e="right"===n.align?"unshift":"push";u=(0,s.Bl)(t.default,[]),u[e]((0,i.h)(o.Z,{class:n.__iconClass,name:a.iconSet.table.arrowUp}))}else u=(0,s.KR)(t.default);const h={class:n.__thClass+(!0===e.autoWidth?" q-table--col-auto-width":""),style:n.headerStyle,onClick:t=>{!0===n.sortable&&e.props.sort(n),l(t)}};return(0,i.h)("th",h,u)}}});var u=n(5869),c=n(7011),h=n(2236);const d=["horizontal","vertical","cell","none"],p=(0,a.L)({name:"QMarkupTable",props:{...h.S,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>d.includes(e)}},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,h.Z)(e,n.proxy.$q),o=(0,i.Fl)((()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(!0===r.value?" q-table--dark q-table__card--dark q-dark":"")+(!0===e.dense?" q-table--dense":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":"")+(!0===e.square?" q-table--square":"")+(!1===e.wrapCells?" q-table--no-wrap":"")));return()=>(0,i.h)("div",{class:o.value},[(0,i.h)("table",{class:"q-table"},(0,s.KR)(t.default))])}});function f(e,t){return(0,i.h)("div",e,[(0,i.h)("table",{class:"q-table"},t)])}n(5363);var g=n(9405),v=n(4716);let y=!1;{const e=document.createElement("div"),t=document.createElement("div");e.setAttribute("dir","rtl"),e.style.width="1px",e.style.height="1px",e.style.overflow="auto",t.style.width="1000px",t.style.height="1px",document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,y=e.scrollLeft>=0,e.remove()}const m=1e3,x=["start","center","end","start-force","center-force","end-force"],_=Array.prototype.filter,b=void 0===window.getComputedStyle(document.body).overflowAnchor?v.ZT:function(e,t){null!==e&&(cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame((()=>{if(null===e)return;const n=e.children||[];_.call(n,(e=>e.dataset&&void 0!==e.dataset.qVsAnchor)).forEach((e=>{delete e.dataset.qVsAnchor}));const i=n[t];i&&i.dataset&&(i.dataset.qVsAnchor="")})))};function w(e,t){return e+t}function S(e,t,n,i,r,o,a,s){const l=e===window?document.scrollingElement||document.documentElement:e,u=!0===r?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-a-s,scrollMaxSize:0,offsetStart:-a,offsetEnd:-s};if(!0===r?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=l.scrollLeft,c.scrollViewSize+=l.clientWidth),c.scrollMaxSize=l.scrollWidth,!0===o&&(c.scrollStart=(!0===y?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=l.scrollTop,c.scrollViewSize+=l.clientHeight),c.scrollMaxSize=l.scrollHeight),null!==n)for(let h=n.previousElementSibling;null!==h;h=h.previousElementSibling)!1===h.classList.contains("q-virtual-scroll--skip")&&(c.offsetStart+=h[u]);if(null!==i)for(let h=i.nextElementSibling;null!==h;h=h.nextElementSibling)!1===h.classList.contains("q-virtual-scroll--skip")&&(c.offsetEnd+=h[u]);if(t!==e){const n=l.getBoundingClientRect(),i=t.getBoundingClientRect();!0===r?(c.offsetStart+=i.left-n.left,c.offsetEnd-=i.width):(c.offsetStart+=i.top-n.top,c.offsetEnd-=i.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function M(e,t,n,i){"end"===t&&(t=(e===window?document.body:e)[!0===n?"scrollWidth":"scrollHeight"]),e===window?!0===n?(!0===i&&(t=(!0===y?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):!0===n?(!0===i&&(t=(!0===y?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function C(e,t,n,i){if(n>=i)return 0;const r=t.length,o=Math.floor(n/m),a=Math.floor((i-1)/m)+1;let s=e.slice(o,a).reduce(w,0);return n%m!==0&&(s-=t.slice(o*m,n).reduce(w,0)),i%m!==0&&i!==r&&(s-=t.slice(i,a*m).reduce(w,0)),s}const I={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},T=Object.keys(I),k={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...I};function A({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const a=(0,i.FN)(),{props:s,emit:l,proxy:u}=a,{$q:c}=u;let h,d,p,f,v=[];const y=(0,r.iH)(0),I=(0,r.iH)(0),T=(0,r.iH)({}),k=(0,r.iH)(null),A=(0,r.iH)(null),D=(0,r.iH)(null),L=(0,r.iH)({from:0,to:0}),P=(0,i.Fl)((()=>void 0!==s.tableColspan?s.tableColspan:100));void 0===o&&(o=(0,i.Fl)((()=>s.virtualScrollItemSize)));const O=(0,i.Fl)((()=>o.value+";"+s.virtualScrollHorizontal)),R=(0,i.Fl)((()=>O.value+";"+s.virtualScrollSliceRatioBefore+";"+s.virtualScrollSliceRatioAfter));function E(){q(d,!0)}function N(e){q(void 0===e?d:e)}function B(i,r){const o=t();if(void 0===o||null===o||8===o.nodeType)return;const a=S(o,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd);p!==a.scrollViewSize&&G(a.scrollViewSize),z(o,a,Math.min(e.value-1,Math.max(0,parseInt(i,10)||0)),0,x.indexOf(r)>-1?r:d>-1&&i>d?"end":"start")}function F(){const i=t();if(void 0===i||null===i||8===i.nodeType)return;const r=S(i,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd),o=e.value-1,a=r.scrollMaxSize-r.offsetStart-r.offsetEnd-I.value;if(h===r.scrollStart)return;if(r.scrollMaxSize<=0)return void z(i,r,0,0);p!==r.scrollViewSize&&G(r.scrollViewSize),V(L.value.from);const l=Math.floor(r.scrollMaxSize-Math.max(r.scrollViewSize,r.offsetEnd)-Math.min(f[o],r.scrollViewSize/2));if(l>0&&Math.ceil(r.scrollStart)>=l)return void z(i,r,o,r.scrollMaxSize-r.offsetEnd-v.reduce(w,0));let u=0,d=r.scrollStart-r.offsetStart,g=d;if(d<=a&&d+r.scrollViewSize>=y.value)d-=y.value,u=L.value.from,g=d;else for(let e=0;d>=v[e]&&u<o;e++)d-=v[e],u+=m;while(d>0&&u<o)d-=f[u],d>-r.scrollViewSize?(u++,g=d):g=f[u]+d;z(i,r,u,g)}function z(t,n,i,r,o){const a="string"===typeof o&&o.indexOf("-force")>-1,l=!0===a?o.replace("-force",""):o,u=void 0!==l?l:"start";let d=Math.max(0,i-T.value[u]),p=d+T.value.total;p>e.value&&(p=e.value,d=Math.max(0,p-T.value.total)),h=n.scrollStart;const g=d!==L.value.from||p!==L.value.to;if(!1===g&&void 0===l)return void U(i);const{activeElement:m}=document,x=D.value;!0===g&&null!==x&&x!==m&&!0===x.contains(m)&&(x.addEventListener("focusout",H),setTimeout((()=>{null!==x&&x.removeEventListener("focusout",H)}))),b(x,i-d);const _=void 0!==l?f.slice(d,i).reduce(w,0):0;if(!0===g){const t=p>=L.value.from&&d<=L.value.to?L.value.to:p;L.value={from:d,to:t},y.value=C(v,f,0,d),I.value=C(v,f,p,e.value),requestAnimationFrame((()=>{L.value.to!==p&&h===n.scrollStart&&(L.value={from:L.value.from,to:p},I.value=C(v,f,p,e.value))}))}requestAnimationFrame((()=>{if(h!==n.scrollStart)return;!0===g&&V(d);const e=f.slice(d,i).reduce(w,0),o=e+n.offsetStart+y.value,u=o+f[i];let p=o+r;if(void 0!==l){const t=e-_,r=n.scrollStart+t;p=!0!==a&&r<o&&u<r+n.scrollViewSize?r:"end"===l?u-n.scrollViewSize:o-("start"===l?0:Math.round((n.scrollViewSize-f[i])/2))}h=p,M(t,p,s.virtualScrollHorizontal,c.lang.rtl),U(i)}))}function V(e){const t=D.value;if(t){const n=_.call(t.children,(e=>e.classList&&!1===e.classList.contains("q-virtual-scroll--skip"))),i=n.length,r=!0===s.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight;let o,a,l=e;for(let e=0;e<i;){o=r(n[e]),e++;while(e<i&&!0===n[e].classList.contains("q-virtual-scroll--with-prev"))o+=r(n[e]),e++;a=o-f[l],0!==a&&(f[l]+=a,v[Math.floor(l/m)]+=a),l++}}}function H(){null!==D.value&&void 0!==D.value&&D.value.focus()}function q(t,n){const r=1*o.value;!0!==n&&!1!==Array.isArray(f)||(f=[]);const a=f.length;f.length=e.value;for(let i=e.value-1;i>=a;i--)f[i]=r;const s=Math.floor((e.value-1)/m);v=[];for(let i=0;i<=s;i++){let t=0;const n=Math.min((i+1)*m,e.value);for(let e=i*m;e<n;e++)t+=f[e];v.push(t)}d=-1,h=void 0,y.value=C(v,f,0,L.value.from),I.value=C(v,f,L.value.to,e.value),t>=0?(V(L.value.from),(0,i.Y3)((()=>{B(t)}))):j()}function G(e){if(void 0===e&&"undefined"!==typeof window){const i=t();void 0!==i&&null!==i&&8!==i.nodeType&&(e=S(i,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd).scrollViewSize)}p=e;const i=parseFloat(s.virtualScrollSliceRatioBefore)||0,r=parseFloat(s.virtualScrollSliceRatioAfter)||0,a=1+i+r,l=void 0===e||e<=0?1:Math.ceil(e/o.value),u=Math.max(1,l,Math.ceil((s.virtualScrollSliceSize>0?s.virtualScrollSliceSize:10)/a));T.value={total:Math.ceil(u*a),start:Math.ceil(u*i),center:Math.ceil(u*(.5+i)),end:Math.ceil(u*(1+i)),view:l}}function W(e,t){const n=!0===s.virtualScrollHorizontal?"width":"height",r={["--q-virtual-scroll-item-"+n]:o.value+"px"};return["tbody"===e?(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:k},[(0,i.h)("tr",[(0,i.h)("td",{style:{[n]:`${y.value}px`,...r},colspan:P.value})])]):(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:k,style:{[n]:`${y.value}px`,...r}}),(0,i.h)(e,{class:"q-virtual-scroll__content",key:"content",ref:D,tabindex:-1},t.flat()),"tbody"===e?(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:A},[(0,i.h)("tr",[(0,i.h)("td",{style:{[n]:`${I.value}px`,...r},colspan:P.value})])]):(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:A,style:{[n]:`${I.value}px`,...r}})]}function U(e){d!==e&&(void 0!==s.onVirtualScroll&&l("virtual-scroll",{index:e,from:L.value.from,to:L.value.to-1,direction:e<d?"decrease":"increase",ref:u}),d=e)}(0,i.YP)(R,(()=>{G()})),(0,i.YP)(O,E),G();const j=(0,g.Z)(F,!0===c.platform.is.ios?120:35);(0,i.wF)((()=>{G()}));let Z=!1;return(0,i.se)((()=>{Z=!0})),(0,i.dl)((()=>{if(!0!==Z)return;const e=t();void 0!==h&&void 0!==e&&null!==e&&8!==e.nodeType?M(e,h,s.virtualScrollHorizontal,c.lang.rtl):B(d)})),(0,i.Jd)((()=>{j.cancel()})),Object.assign(u,{scrollTo:B,reset:E,refresh:N}),{virtualScrollSliceRange:L,virtualScrollSliceSizeComputed:T,setVirtualScrollSize:G,onVirtualScrollEvt:j,localResetVirtualScroll:q,padVirtualScroll:W,scrollTo:B,reset:E,refresh:N}}var D=n(8400);const L={list:c.Z,table:p},P=["list","table","__qtable"],O=(0,a.L)({name:"QVirtualScroll",props:{...k,type:{type:String,default:"list",validator:e=>P.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},setup(e,{slots:t,attrs:n}){let o;const a=(0,r.iH)(null),l=(0,i.Fl)((()=>e.itemsSize>=0&&void 0!==e.itemsFn?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0)),{virtualScrollSliceRange:u,localResetVirtualScroll:c,padVirtualScroll:h,onVirtualScrollEvt:d}=A({virtualScrollLength:l,getVirtualScrollTarget:x,getVirtualScrollEl:m}),p=(0,i.Fl)((()=>{if(0===l.value)return[];const t=(e,t)=>({index:u.value.from+t,item:e});return void 0===e.itemsFn?e.items.slice(u.value.from,u.value.to).map(t):e.itemsFn(u.value.from,u.value.to-u.value.from).map(t)})),g=(0,i.Fl)((()=>"q-virtual-scroll q-virtual-scroll"+(!0===e.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==e.scrollTarget?"":" scroll"))),y=(0,i.Fl)((()=>void 0!==e.scrollTarget?{}:{tabindex:0}));function m(){return a.value.$el||a.value}function x(){return o}function _(){o=(0,D.b0)(m(),e.scrollTarget),o.addEventListener("scroll",d,v.rU.passive)}function b(){void 0!==o&&(o.removeEventListener("scroll",d,v.rU.passive),o=void 0)}function w(){let n=h("list"===e.type?"div":"tbody",p.value.map(t.default));return void 0!==t.before&&(n=t.before().concat(n)),(0,s.vs)(t.after,n)}return(0,i.YP)(l,(()=>{c()})),(0,i.YP)((()=>e.scrollTarget),(()=>{b(),_()})),(0,i.wF)((()=>{c()})),(0,i.bv)((()=>{_()})),(0,i.dl)((()=>{_()})),(0,i.se)((()=>{b()})),(0,i.Jd)((()=>{b()})),()=>{if(void 0!==t.default)return"__qtable"===e.type?f({ref:a,class:"q-table__middle "+g.value},w()):(0,i.h)(L[e.type],{...n,ref:a,class:[n.class,g.value],...y.value},w);console.error("QVirtualScroll: default scoped slot is required for rendering")}}});var R=n(2659);const E=(0,a.L)({name:"QField",inheritAttrs:!1,props:R.Cl,emits:R.HJ,setup(){return(0,R.ZP)((0,R.tL)())}});var N=n(7030),B=n(3414),F=n(2035),z=n(2350),V=n(811),H=n(6778),q=n(9550),G=n(4421),W=n(782),U=n(2130),j=n(1436);const Z=e=>["add","add-unique","toggle"].includes(e),Y=".*+?^${}()|[]\\",$=Object.keys(R.Cl),X=(0,a.L)({name:"QSelect",inheritAttrs:!1,props:{...k,...q.Fz,...R.Cl,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Z},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...R.HJ,"add","remove","input-value","new-value","keyup","keypress","keydown","filter-abort"],setup(e,{slots:t,emit:n}){const{proxy:a}=(0,i.FN)(),{$q:l}=a,u=(0,r.iH)(!1),c=(0,r.iH)(!1),h=(0,r.iH)(-1),d=(0,r.iH)(""),p=(0,r.iH)(!1),f=(0,r.iH)(!1);let g,y,m,x,_,b,w,S,M;const C=(0,r.iH)(null),I=(0,r.iH)(null),T=(0,r.iH)(null),k=(0,r.iH)(null),D=(0,r.iH)(null),L=(0,q.Do)(e),P=(0,G.Z)(Ye),O=(0,i.Fl)((()=>Array.isArray(e.options)?e.options.length:0)),X=(0,i.Fl)((()=>void 0===e.virtualScrollItemSize?!0===e.optionsDense?24:48:e.virtualScrollItemSize)),{virtualScrollSliceRange:K,virtualScrollSliceSizeComputed:J,localResetVirtualScroll:Q,padVirtualScroll:ee,onVirtualScrollEvt:te,scrollTo:ne,setVirtualScrollSize:ie}=A({virtualScrollLength:O,getVirtualScrollTarget:We,getVirtualScrollEl:Ge,virtualScrollItemSizeComputed:X}),re=(0,R.tL)(),oe=(0,i.Fl)((()=>{const t=!0===e.mapOptions&&!0!==e.multiple,n=void 0===e.modelValue||null===e.modelValue&&!0!==t?[]:!0===e.multiple&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue];if(!0===e.mapOptions&&!0===Array.isArray(e.options)){const i=!0===e.mapOptions&&void 0!==y?y:[],r=n.map((e=>Ee(e,i)));return null===e.modelValue&&!0===t?r.filter((e=>null!==e)):r}return n})),ae=(0,i.Fl)((()=>{const t={};return $.forEach((n=>{const i=e[n];void 0!==i&&(t[n]=i)})),t})),se=(0,i.Fl)((()=>null===e.optionsDark?re.isDark.value:e.optionsDark)),le=(0,i.Fl)((()=>(0,R.yV)(oe.value))),ue=(0,i.Fl)((()=>{let t="q-field__input q-placeholder col";return!0===e.hideSelected||0===oe.value.length?[t,e.inputClass]:(t+=" q-field__input--padding",void 0===e.inputClass?t:[t,e.inputClass])})),ce=(0,i.Fl)((()=>(!0===e.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:""))),he=(0,i.Fl)((()=>0===O.value)),de=(0,i.Fl)((()=>oe.value.map((e=>Me.value(e))).join(", "))),pe=(0,i.Fl)((()=>!0===e.optionsHtml?()=>!0:e=>void 0!==e&&null!==e&&!0===e.html)),fe=(0,i.Fl)((()=>!0===e.displayValueHtml||void 0===e.displayValue&&(!0===e.optionsHtml||oe.value.some(pe.value)))),ge=(0,i.Fl)((()=>!0===re.focused.value?e.tabindex:-1)),ve=(0,i.Fl)((()=>{const t={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-autocomplete":!0===e.useInput?"list":"none","aria-expanded":!0===u.value?"true":"false","aria-owns":`${re.targetUid.value}_lb`,"aria-controls":`${re.targetUid.value}_lb`};return h.value>=0&&(t["aria-activedescendant"]=`${re.targetUid.value}_${h.value}`),t})),ye=(0,i.Fl)((()=>{const t={id:`${re.targetUid.value}_lb`,role:"listbox","aria-multiselectable":!0===e.multiple?"true":"false"};return h.value>=0&&(t["aria-activedescendant"]=`${re.targetUid.value}_${h.value}`),t})),me=(0,i.Fl)((()=>oe.value.map(((e,t)=>({index:t,opt:e,html:pe.value(e),selected:!0,removeAtIndex:De,toggleOption:Pe,tabindex:ge.value}))))),xe=(0,i.Fl)((()=>{if(0===O.value)return[];const{from:t,to:n}=K.value;return e.options.slice(t,n).map(((n,i)=>{const r=!0===Ce.value(n),o=t+i,a={clickable:!0,active:!1,activeClass:we.value,manualFocus:!0,focused:!1,disable:r,tabindex:-1,dense:e.optionsDense,dark:se.value,role:"option",id:`${re.targetUid.value}_${o}`,onClick:()=>{Pe(n)}};return!0!==r&&(!0===Be(n)&&(a.active=!0),h.value===o&&(a.focused=!0),a["aria-selected"]=!0===a.active?"true":"false",!0===l.platform.is.desktop&&(a.onMousemove=()=>{!0===u.value&&Oe(o)})),{index:o,opt:n,html:pe.value(n),label:Me.value(n),selected:a.active,focused:a.focused,toggleOption:Pe,setOptionIndex:Oe,itemProps:a}}))})),_e=(0,i.Fl)((()=>void 0!==e.dropdownIcon?e.dropdownIcon:l.iconSet.arrow.dropdown)),be=(0,i.Fl)((()=>!1===e.optionsCover&&!0!==e.outlined&&!0!==e.standout&&!0!==e.borderless&&!0!==e.rounded)),we=(0,i.Fl)((()=>void 0!==e.optionsSelectedClass?e.optionsSelectedClass:void 0!==e.color?`text-${e.color}`:"")),Se=(0,i.Fl)((()=>Ne(e.optionValue,"value"))),Me=(0,i.Fl)((()=>Ne(e.optionLabel,"label"))),Ce=(0,i.Fl)((()=>Ne(e.optionDisable,"disable"))),Ie=(0,i.Fl)((()=>oe.value.map((e=>Se.value(e))))),Te=(0,i.Fl)((()=>{const e={onInput:Ye,onChange:P,onKeydown:qe,onKeyup:Ve,onKeypress:He,onFocus:Fe,onClick(e){!0===m&&(0,v.sT)(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=P,e}));function ke(t){return!0===e.emitValue?Se.value(t):t}function Ae(t){if(t>-1&&t<oe.value.length)if(!0===e.multiple){const i=e.modelValue.slice();n("remove",{index:t,value:i.splice(t,1)[0]}),n("update:modelValue",i)}else n("update:modelValue",null)}function De(e){Ae(e),re.focus()}function Le(t,i){const r=ke(t);if(!0!==e.multiple)return!0===e.fillInput&&Xe(Me.value(t),!0,!0),void n("update:modelValue",r);if(0===oe.value.length)return n("add",{index:0,value:r}),void n("update:modelValue",!0===e.multiple?[r]:r);if(!0===i&&!0===Be(t))return;if(void 0!==e.maxValues&&e.modelValue.length>=e.maxValues)return;const o=e.modelValue.slice();n("add",{index:o.length,value:r}),o.push(r),n("update:modelValue",o)}function Pe(t,i){if(!0!==re.editable.value||void 0===t||!0===Ce.value(t))return;const r=Se.value(t);if(!0!==e.multiple)return!0!==i&&(Xe(!0===e.fillInput?Me.value(t):"",!0,!0),ut()),null!==I.value&&I.value.focus(),void(0!==oe.value.length&&!0===(0,W.xb)(Se.value(oe.value[0]),r)||n("update:modelValue",!0===e.emitValue?r:t));if((!0!==m||!0===p.value)&&re.focus(),Fe(),0===oe.value.length){const i=!0===e.emitValue?r:t;return n("add",{index:0,value:i}),void n("update:modelValue",!0===e.multiple?[i]:i)}const o=e.modelValue.slice(),a=Ie.value.findIndex((e=>(0,W.xb)(e,r)));if(a>-1)n("remove",{index:a,value:o.splice(a,1)[0]});else{if(void 0!==e.maxValues&&o.length>=e.maxValues)return;const i=!0===e.emitValue?r:t;n("add",{index:o.length,value:i}),o.push(i)}n("update:modelValue",o)}function Oe(e){if(!0!==l.platform.is.desktop)return;const t=e>-1&&e<O.value?e:-1;h.value!==t&&(h.value=t)}function Re(t=1,n){if(!0===u.value){let i=h.value;do{i=(0,U.Uz)(i+t,-1,O.value-1)}while(-1!==i&&i!==h.value&&!0===Ce.value(e.options[i]));h.value!==i&&(Oe(i),ne(i),!0!==n&&!0===e.useInput&&!0===e.fillInput&&$e(i>=0?Me.value(e.options[i]):b))}}function Ee(t,n){const i=e=>(0,W.xb)(Se.value(e),t);return e.options.find(i)||n.find(i)||t}function Ne(e,t){const n=void 0!==e?e:t;return"function"===typeof n?n:e=>null!==e&&"object"===typeof e&&n in e?e[n]:e}function Be(e){const t=Se.value(e);return void 0!==Ie.value.find((e=>(0,W.xb)(e,t)))}function Fe(t){!0===e.useInput&&null!==I.value&&(void 0===t||I.value===t.target&&t.target.value===de.value)&&I.value.select()}function ze(e){!0===(0,j.So)(e,27)&&!0===u.value&&((0,v.sT)(e),ut(),ct()),n("keyup",e)}function Ve(t){const{value:n}=t.target;if(void 0===t.keyCode)if(t.target.value="",clearTimeout(g),ct(),"string"===typeof n&&n.length>0){const t=n.toLocaleLowerCase(),i=n=>{const i=e.options.find((e=>n.value(e).toLocaleLowerCase()===t));return void 0!==i&&(-1===oe.value.indexOf(i)?Pe(i):ut(),!0)},r=e=>{!0!==i(Se)&&!0!==i(Me)&&!0!==e&&Ke(n,!0,(()=>r(!0)))};r()}else re.clearValue(t);else ze(t)}function He(e){n("keypress",e)}function qe(t){if(n("keydown",t),!0===(0,j.Wm)(t))return;const r=d.value.length>0&&(void 0!==e.newValueMode||void 0!==e.onNewValue),o=!0!==t.shiftKey&&!0!==e.multiple&&(h.value>-1||!0===r);if(27===t.keyCode)return void(0,v.X$)(t);if(9===t.keyCode&&!1===o)return void st();if(void 0===t.target||t.target.id!==re.targetUid.value)return;if(40===t.keyCode&&!0!==re.innerLoading.value&&!1===u.value)return(0,v.NS)(t),void lt();if(8===t.keyCode&&!0!==e.hideSelected&&0===d.value.length)return void(!0===e.multiple&&!0===Array.isArray(e.modelValue)?Ae(e.modelValue.length-1):!0!==e.multiple&&null!==e.modelValue&&n("update:modelValue",null));35!==t.keyCode&&36!==t.keyCode||"string"===typeof d.value&&0!==d.value.length||((0,v.NS)(t),h.value=-1,Re(36===t.keyCode?1:-1,e.multiple)),33!==t.keyCode&&34!==t.keyCode||void 0===J.value||((0,v.NS)(t),h.value=Math.max(-1,Math.min(O.value,h.value+(33===t.keyCode?-1:1)*J.value.view)),Re(33===t.keyCode?1:-1,e.multiple)),38!==t.keyCode&&40!==t.keyCode||((0,v.NS)(t),Re(38===t.keyCode?-1:1,e.multiple));const a=O.value;if((void 0===S||M<Date.now())&&(S=""),a>0&&!0!==e.useInput&&void 0!==t.key&&1===t.key.length&&t.altKey===t.ctrlKey&&(32!==t.keyCode||S.length>0)){!0!==u.value&&lt(t);const n=t.key.toLocaleLowerCase(),r=1===S.length&&S[0]===n;M=Date.now()+1500,!1===r&&((0,v.NS)(t),S+=n);const o=new RegExp("^"+S.split("").map((e=>Y.indexOf(e)>-1?"\\"+e:e)).join(".*"),"i");let s=h.value;if(!0===r||s<0||!0!==o.test(Me.value(e.options[s])))do{s=(0,U.Uz)(s+1,-1,a-1)}while(s!==h.value&&(!0===Ce.value(e.options[s])||!0!==o.test(Me.value(e.options[s]))));h.value!==s&&(0,i.Y3)((()=>{Oe(s),ne(s),s>=0&&!0===e.useInput&&!0===e.fillInput&&$e(Me.value(e.options[s]))}))}else if(13===t.keyCode||32===t.keyCode&&!0!==e.useInput&&""===S||9===t.keyCode&&!1!==o)if(9!==t.keyCode&&(0,v.NS)(t),h.value>-1&&h.value<a)Pe(e.options[h.value]);else{if(!0===r){const t=(t,n)=>{if(n){if(!0!==Z(n))return}else n=e.newValueMode;if(void 0===t||null===t)return;Xe("",!0!==e.multiple,!0);const i="toggle"===n?Pe:Le;i(t,"add-unique"===n),!0!==e.multiple&&(null!==I.value&&I.value.focus(),ut())};if(void 0!==e.onNewValue?n("new-value",d.value,t):t(d.value),!0!==e.multiple)return}!0===u.value?st():!0!==re.innerLoading.value&&lt()}}function Ge(){return!0===m?D.value:null!==T.value&&null!==T.value.__qPortalInnerRef.value?T.value.__qPortalInnerRef.value:void 0}function We(){return Ge()}function Ue(){return!0===e.hideSelected?[]:void 0!==t["selected-item"]?me.value.map((e=>t["selected-item"](e))).slice():void 0!==t.selected?[].concat(t.selected()):!0===e.useChips?me.value.map(((t,n)=>(0,i.h)(N.Z,{key:"option-"+n,removable:!0===re.editable.value&&!0!==Ce.value(t.opt),dense:!0,textColor:e.color,tabindex:ge.value,onRemove(){t.removeAtIndex(n)}},(()=>(0,i.h)("span",{class:"ellipsis",[!0===t.html?"innerHTML":"textContent"]:Me.value(t.opt)}))))):[(0,i.h)("span",{[!0===fe.value?"innerHTML":"textContent"]:void 0!==e.displayValue?e.displayValue:de.value})]}function je(){if(!0===he.value)return void 0!==t["no-option"]?t["no-option"]({inputValue:d.value}):void 0;const e=void 0!==t.option?t.option:e=>(0,i.h)(B.Z,{key:e.index,...e.itemProps},(()=>(0,i.h)(F.Z,(()=>(0,i.h)(z.Z,(()=>(0,i.h)("span",{[!0===e.html?"innerHTML":"textContent"]:e.label})))))));let n=ee("div",xe.value.map(e));return void 0!==t["before-options"]&&(n=t["before-options"]().concat(n)),(0,s.vs)(t["after-options"],n)}function Ze(t,n){const r=!0===n?{...ve.value,...re.splitAttrs.attributes.value}:void 0,o={ref:!0===n?I:void 0,key:"i_t",class:ue.value,style:e.inputStyle,value:void 0!==d.value?d.value:"",type:"search",...r,id:!0===n?re.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":!0!==t&&!0===e.autofocus||void 0,disabled:!0===e.disable,readonly:!0===e.readonly,...Te.value};return!0!==t&&!0===m&&(!0===Array.isArray(o.class)?o.class=[...o.class,"no-pointer-events"]:o.class+=" no-pointer-events"),(0,i.h)("input",o)}function Ye(t){clearTimeout(g),t&&t.target&&!0===t.target.qComposing||($e(t.target.value||""),x=!0,b=d.value,!0===re.focused.value||!0===m&&!0!==p.value||re.focus(),void 0!==e.onFilter&&(g=setTimeout((()=>{Ke(d.value)}),e.inputDebounce)))}function $e(e){d.value!==e&&(d.value=e,n("input-value",e))}function Xe(t,n,i){x=!0!==i,!0===e.useInput&&($e(t),!0!==n&&!0===i||(b=t),!0!==n&&Ke(t))}function Ke(t,r,o){if(void 0===e.onFilter||!0!==r&&!0!==re.focused.value)return;!0===re.innerLoading.value?n("filter-abort"):(re.innerLoading.value=!0,f.value=!0),""!==t&&!0!==e.multiple&&oe.value.length>0&&!0!==x&&t===Me.value(oe.value[0])&&(t="");const s=setTimeout((()=>{!0===u.value&&(u.value=!1)}),10);clearTimeout(_),_=s,n("filter",t,((e,t)=>{!0!==r&&!0!==re.focused.value||_!==s||(clearTimeout(_),"function"===typeof e&&e(),f.value=!1,(0,i.Y3)((()=>{re.innerLoading.value=!1,!0===re.editable.value&&(!0===r?!0===u.value&&ut():!0===u.value?ht(!0):u.value=!0),"function"===typeof t&&(0,i.Y3)((()=>{t(a)})),"function"===typeof o&&(0,i.Y3)((()=>{o(a)}))})))}),(()=>{!0===re.focused.value&&_===s&&(clearTimeout(_),re.innerLoading.value=!1,f.value=!1),!0===u.value&&(u.value=!1)}))}function Je(){return(0,i.h)(V.Z,{ref:T,class:ce.value,style:e.popupContentStyle,modelValue:u.value,fit:!0!==e.menuShrink,cover:!0===e.optionsCover&&!0!==he.value&&!0!==e.useInput,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:se.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:be.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...ye.value,onScrollPassive:te,onBeforeShow:ft,onBeforeHide:Qe,onShow:et},je)}function Qe(e){gt(e),st()}function et(){ie()}function tt(e){(0,v.sT)(e),null!==I.value&&I.value.focus(),p.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function nt(e){(0,v.sT)(e),(0,i.Y3)((()=>{p.value=!1}))}function it(){const n=[(0,i.h)(E,{class:`col-auto ${re.fieldClass.value}`,...ae.value,for:re.targetUid.value,dark:se.value,square:!0,loading:f.value,itemAligned:!1,filled:!0,stackLabel:d.value.length>0,...re.splitAttrs.listeners.value,onFocus:tt,onBlur:nt},{...t,rawControl:()=>re.getControl(!0),before:void 0,after:void 0})];return!0===u.value&&n.push((0,i.h)("div",{ref:D,class:ce.value+" scroll",style:e.popupContentStyle,...ye.value,onClick:v.X$,onScrollPassive:te},je())),(0,i.h)(H.Z,{ref:k,modelValue:c.value,position:!0===e.useInput?"top":void 0,transitionShow:w,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:ft,onBeforeHide:rt,onHide:ot,onShow:at},(()=>(0,i.h)("div",{class:"q-select__dialog"+(!0===se.value?" q-select__dialog--dark q-dark":"")+(!0===p.value?" q-select__dialog--focused":"")},n)))}function rt(e){gt(e),null!==k.value&&k.value.__updateRefocusTarget(re.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),re.focused.value=!1}function ot(e){ut(),!1===re.focused.value&&n("blur",e),ct()}function at(){const e=document.activeElement;null!==e&&e.id===re.targetUid.value||null===I.value||I.value===e||I.value.focus(),ie()}function st(){!0!==c.value&&(h.value=-1,!0===u.value&&(u.value=!1),!1===re.focused.value&&(clearTimeout(_),_=void 0,!0===re.innerLoading.value&&(n("filter-abort"),re.innerLoading.value=!1,f.value=!1)))}function lt(n){!0===re.editable.value&&(!0===m?(re.onControlFocusin(n),c.value=!0,(0,i.Y3)((()=>{re.focus()}))):re.focus(),void 0!==e.onFilter?Ke(d.value):!0===he.value&&void 0===t["no-option"]||(u.value=!0))}function ut(){c.value=!1,st()}function ct(){!0===e.useInput&&Xe(!0!==e.multiple&&!0===e.fillInput&&oe.value.length>0&&Me.value(oe.value[0])||"",!0,!0)}function ht(t){let n=-1;if(!0===t){if(oe.value.length>0){const t=Se.value(oe.value[0]);n=e.options.findIndex((e=>(0,W.xb)(Se.value(e),t)))}Q(n)}Oe(n)}function dt(e,t){!0===u.value&&!1===re.innerLoading.value&&(Q(-1,!0),(0,i.Y3)((()=>{!0===u.value&&!1===re.innerLoading.value&&(e>t?Q():ht(!0))})))}function pt(){!1===c.value&&null!==T.value&&T.value.updatePosition()}function ft(e){void 0!==e&&(0,v.sT)(e),n("popup-show",e),re.hasPopupOpen=!0,re.onControlFocusin(e)}function gt(e){void 0!==e&&(0,v.sT)(e),n("popup-hide",e),re.hasPopupOpen=!1,re.onControlFocusout(e)}function vt(){m=(!0===l.platform.is.mobile||"dialog"===e.behavior)&&("menu"!==e.behavior&&(!0!==e.useInput||(void 0!==t["no-option"]||void 0!==e.onFilter||!1===he.value))),w=!0===l.platform.is.ios&&!0===m&&!0===e.useInput?"fade":e.transitionShow}return(0,i.YP)(oe,(t=>{y=t,!0===e.useInput&&!0===e.fillInput&&!0!==e.multiple&&!0!==re.innerLoading.value&&(!0!==c.value&&!0!==u.value||!0!==le.value)&&(!0!==x&&ct(),!0!==c.value&&!0!==u.value||Ke(""))}),{immediate:!0}),(0,i.YP)((()=>e.fillInput),ct),(0,i.YP)(u,ht),(0,i.YP)(O,dt),(0,i.Xn)(vt),(0,i.ic)(pt),vt(),(0,i.Jd)((()=>{clearTimeout(g)})),Object.assign(a,{showPopup:lt,hidePopup:ut,removeAtIndex:Ae,add:Le,toggleOption:Pe,getOptionIndex:()=>h.value,setOptionIndex:Oe,moveOptionSelection:Re,filter:Ke,updateMenuPosition:pt,updateInputValue:Xe,isOptionSelected:Be,getEmittingOptionValue:ke,isOptionDisabled:(...e)=>!0===Ce.value.apply(null,e),getOptionValue:(...e)=>Se.value.apply(null,e),getOptionLabel:(...e)=>Me.value.apply(null,e)}),Object.assign(re,{innerValue:oe,fieldClass:(0,i.Fl)((()=>`q-select q-field--auto-height q-select--with${!0!==e.useInput?"out":""}-input q-select--with${!0!==e.useChips?"out":""}-chips q-select--`+(!0===e.multiple?"multiple":"single"))),inputRef:C,targetRef:I,hasValue:le,showPopup:lt,floatingLabel:(0,i.Fl)((()=>!0!==e.hideSelected&&!0===le.value||"number"===typeof d.value||d.value.length>0||(0,R.yV)(e.displayValue))),getControlChild:()=>{if(!1!==re.editable.value&&(!0===c.value||!0!==he.value||void 0!==t["no-option"]))return!0===m?it():Je();!0===re.hasPopupOpen&&(re.hasPopupOpen=!1)},controlEvents:{onFocusin(e){re.onControlFocusin(e)},onFocusout(e){re.onControlFocusout(e,(()=>{ct(),st()}))},onClick(e){if((0,v.X$)(e),!0!==m&&!0===u.value)return st(),void(null!==I.value&&I.value.focus());lt(e)}},getControl:t=>{const n=Ue(),r=!0===t||!0!==c.value||!0!==m;if(!0===e.useInput)n.push(Ze(t,r));else if(!0===re.editable.value){const o=!0===r?ve.value:void 0;n.push((0,i.h)("input",{ref:!0===r?I:void 0,key:"d_t",class:"q-select__focus-target",id:!0===r?re.targetUid.value:void 0,readonly:!0,"data-autofocus":!0!==t&&!0===e.autofocus||void 0,...o,onKeydown:qe,onKeyup:ze,onKeypress:He})),!0===r&&"string"===typeof e.autocomplete&&e.autocomplete.length>0&&n.push((0,i.h)("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,onKeyup:Ve}))}if(void 0!==L.value&&!0!==e.disable&&Ie.value.length>0){const t=Ie.value.map((e=>(0,i.h)("option",{value:e,selected:!0})));n.push((0,i.h)("select",{class:"hidden",name:L.value,multiple:e.multiple},t))}const o=!0===e.useInput||!0!==r?void 0:re.splitAttrs.attributes.value;return(0,i.h)("div",{class:"q-field__native row items-center",...o},n)},getInnerAppend:()=>!0!==e.loading&&!0!==f.value&&!0!==e.hideDropdownIcon?[(0,i.h)(o.Z,{class:"q-select__dropdown-icon"+(!0===u.value?" rotate-180":""),name:_e.value})]:null}),(0,R.ZP)(re)}});var K=n(2417);const J={xs:2,sm:4,md:6,lg:10,xl:14};function Q(e,t,n){return{transform:!0===t?`translateX(${!0===n.lang.rtl?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const ee=(0,a.L)({name:"QLinearProgress",props:{...h.S,...K.LU,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:n}=(0,i.FN)(),r=(0,h.Z)(e,n.$q),o=(0,K.ZP)(e,J),a=(0,i.Fl)((()=>!0===e.indeterminate||!0===e.query)),l=(0,i.Fl)((()=>e.reverse!==e.query)),u=(0,i.Fl)((()=>({...null!==o.value?o.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`}))),c=(0,i.Fl)((()=>"q-linear-progress"+(void 0!==e.color?` text-${e.color}`:"")+(!0===e.reverse||!0===e.query?" q-linear-progress--reverse":"")+(!0===e.rounded?" rounded-borders":""))),d=(0,i.Fl)((()=>Q(void 0!==e.buffer?e.buffer:1,l.value,n.$q))),p=(0,i.Fl)((()=>`q-linear-progress__track absolute-full q-linear-progress__track--with${!0===e.instantFeedback?"out":""}-transition q-linear-progress__track--`+(!0===r.value?"dark":"light")+(void 0!==e.trackColor?` bg-${e.trackColor}`:""))),f=(0,i.Fl)((()=>Q(!0===a.value?1:e.value,l.value,n.$q))),g=(0,i.Fl)((()=>`q-linear-progress__model absolute-full q-linear-progress__model--with${!0===e.instantFeedback?"out":""}-transition q-linear-progress__model--${!0===a.value?"in":""}determinate`)),v=(0,i.Fl)((()=>({width:100*e.value+"%"}))),y=(0,i.Fl)((()=>"q-linear-progress__stripe absolute-"+(!0===e.reverse?"right":"left")));return()=>{const n=[(0,i.h)("div",{class:p.value,style:d.value}),(0,i.h)("div",{class:g.value,style:f.value})];return!0===e.stripe&&!1===a.value&&n.push((0,i.h)("div",{class:y.value,style:v.value})),(0,i.h)("div",{class:c.value,style:u.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===e.indeterminate?void 0:e.value},(0,s.vs)(t.default,n))}}});function te(e,t){const n=(0,r.iH)(null),o=(0,i.Fl)((()=>!0===e.disable?null:(0,i.h)("span",{ref:n,class:"no-outline",tabindex:-1})));function a(e){const i=t.value;void 0!==e&&0===e.type.indexOf("key")?null!==i&&document.activeElement!==i&&!0===i.contains(document.activeElement)&&i.focus():null!==n.value&&(void 0===e||null!==i&&!0===i.contains(e.target))&&n.value.focus()}return{refocusTargetEl:o,refocusTarget:a}}const ne={xs:30,sm:35,md:40,lg:50,xl:60},ie={...h.S,...K.LU,...q.Fz,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>"tf"===e||"ft"===e},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},re=["update:modelValue"];function oe(e,t){const{props:n,slots:o,emit:a,proxy:l}=(0,i.FN)(),{$q:u}=l,c=(0,h.Z)(n,u),d=(0,r.iH)(null),{refocusTargetEl:p,refocusTarget:f}=te(n,d),g=(0,K.ZP)(n,ne),y=(0,i.Fl)((()=>void 0!==n.val&&Array.isArray(n.modelValue))),m=(0,i.Fl)((()=>{const e=(0,r.IU)(n.val);return!0===y.value?n.modelValue.findIndex((t=>(0,r.IU)(t)===e)):-1})),x=(0,i.Fl)((()=>!0===y.value?m.value>-1:(0,r.IU)(n.modelValue)===(0,r.IU)(n.trueValue))),_=(0,i.Fl)((()=>!0===y.value?-1===m.value:(0,r.IU)(n.modelValue)===(0,r.IU)(n.falseValue))),b=(0,i.Fl)((()=>!1===x.value&&!1===_.value)),w=(0,i.Fl)((()=>!0===n.disable?-1:n.tabindex||0)),S=(0,i.Fl)((()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(!0===n.disable?" disabled":"")+(!0===c.value?` q-${e}--dark`:"")+(!0===n.dense?` q-${e}--dense`:"")+(!0===n.leftLabel?" reverse":""))),M=(0,i.Fl)((()=>{const t=!0===x.value?"truthy":!0===_.value?"falsy":"indet",i=void 0===n.color||!0!==n.keepColor&&("toggle"===e?!0!==x.value:!0===_.value)?"":` text-${n.color}`;return`q-${e}__inner relative-position non-selectable q-${e}__inner--${t}${i}`})),C=(0,i.Fl)((()=>{const e={type:"checkbox"};return void 0!==n.name&&Object.assign(e,{"^checked":!0===x.value?"checked":void 0,name:n.name,value:!0===y.value?n.val:n.trueValue}),e})),I=(0,q.eX)(C),T=(0,i.Fl)((()=>{const e={tabindex:w.value,role:"checkbox","aria-label":n.label,"aria-checked":!0===b.value?"mixed":!0===x.value?"true":"false"};return!0===n.disable&&(e["aria-disabled"]="true"),e}));function k(e){void 0!==e&&((0,v.NS)(e),f(e)),!0!==n.disable&&a("update:modelValue",A(),e)}function A(){if(!0===y.value){if(!0===x.value){const e=n.modelValue.slice();return e.splice(m.value,1),e}return n.modelValue.concat([n.val])}if(!0===x.value){if("ft"!==n.toggleOrder||!1===n.toggleIndeterminate)return n.falseValue}else{if(!0!==_.value)return"ft"!==n.toggleOrder?n.trueValue:n.falseValue;if("ft"===n.toggleOrder||!1===n.toggleIndeterminate)return n.trueValue}return n.indeterminateValue}function D(e){13!==e.keyCode&&32!==e.keyCode||(0,v.NS)(e)}function L(e){13!==e.keyCode&&32!==e.keyCode||k(e)}const P=t(x,b);return Object.assign(l,{toggle:k}),()=>{const t=P();!0!==n.disable&&I(t,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const r=[(0,i.h)("div",{class:M.value,style:g.value},t)];null!==p.value&&r.push(p.value);const a=void 0!==n.label?(0,s.vs)(o.default,[n.label]):(0,s.KR)(o.default);return void 0!==a&&r.push((0,i.h)("div",{class:`q-${e}__label q-anchor--skip`},a)),(0,i.h)("div",{ref:d,class:S.value,...T.value,onClick:k,onKeydown:D,onKeyup:L},r)}}const ae=(0,i.h)("div",{key:"svg",class:"q-checkbox__bg absolute"},[(0,i.h)("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24","aria-hidden":"true"},[(0,i.h)("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),(0,i.h)("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),se=(0,a.L)({name:"QCheckbox",props:ie,emits:re,setup(e){function t(t,n){const r=(0,i.Fl)((()=>(!0===t.value?e.checkedIcon:!0===n.value?e.indeterminateIcon:e.uncheckedIcon)||null));return()=>null!==r.value?[(0,i.h)("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[(0,i.h)(o.Z,{class:"q-checkbox__icon",name:r.value})])]:[ae]}return oe("checkbox",t)}});var le=n(8240),ue=n(6583),ce=n(7445);let he=0;const de={fullscreen:Boolean,noRouteFullscreenExit:Boolean},pe=["update:fullscreen","fullscreen"];function fe(){const e=(0,i.FN)(),{props:t,emit:n,proxy:o}=e;let a,s,l;const u=(0,r.iH)(!1);function c(){!0===u.value?d():h()}function h(){!0!==u.value&&(u.value=!0,l=o.$el.parentNode,l.replaceChild(s,o.$el),document.body.appendChild(o.$el),he++,1===he&&document.body.classList.add("q-body--fullscreen-mixin"),a={handler:d},ue.Z.add(a))}function d(){!0===u.value&&(void 0!==a&&(ue.Z.remove(a),a=void 0),l.replaceChild(o.$el,s),u.value=!1,he=Math.max(0,he-1),0===he&&(document.body.classList.remove("q-body--fullscreen-mixin"),void 0!==o.$el.scrollIntoView&&setTimeout((()=>{o.$el.scrollIntoView()}))))}return!0===(0,ce.Rb)(e)&&(0,i.YP)((()=>o.$route.fullPath),(()=>{!0!==t.noRouteFullscreenExit&&d()})),(0,i.YP)((()=>t.fullscreen),(e=>{u.value!==e&&c()})),(0,i.YP)(u,(e=>{n("update:fullscreen",e),n("fullscreen",e)})),(0,i.wF)((()=>{s=document.createElement("span")})),(0,i.bv)((()=>{!0===t.fullscreen&&h()})),(0,i.Jd)(d),Object.assign(o,{toggleFullscreen:c,setFullscreen:h,exitFullscreen:d}),{inFullscreen:u,toggleFullscreen:c}}function ge(e,t){return new Date(e)-new Date(t)}const ve={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>"ad"===e||"da"===e,default:"ad"}};function ye(e,t,n,r){const o=(0,i.Fl)((()=>{const{sortBy:e}=t.value;return e&&n.value.find((t=>t.name===e))||null})),a=(0,i.Fl)((()=>void 0!==e.sortMethod?e.sortMethod:(e,t,i)=>{const r=n.value.find((e=>e.name===t));if(void 0===r||void 0===r.field)return e;const o=!0===i?-1:1,a="function"===typeof r.field?e=>r.field(e):e=>e[r.field];return e.sort(((e,t)=>{let n=a(e),i=a(t);return null===n||void 0===n?-1*o:null===i||void 0===i?1*o:void 0!==r.sort?r.sort(n,i,e,t)*o:!0===(0,W.hj)(n)&&!0===(0,W.hj)(i)?(n-i)*o:!0===(0,W.J_)(n)&&!0===(0,W.J_)(i)?ge(n,i)*o:"boolean"===typeof n&&"boolean"===typeof i?(n-i)*o:([n,i]=[n,i].map((e=>(e+"").toLocaleString().toLowerCase())),n<i?-1*o:n===i?0:o)}))}));function s(i){let o=e.columnSortOrder;if(!0===(0,W.Kn)(i))i.sortOrder&&(o=i.sortOrder),i=i.name;else{const e=n.value.find((e=>e.name===i));void 0!==e&&e.sortOrder&&(o=e.sortOrder)}let{sortBy:a,descending:s}=t.value;a!==i?(a=i,s="da"===o):!0===e.binaryStateSort?s=!s:!0===s?"ad"===o?a=null:s=!1:"ad"===o?s=!0:a=null,r({sortBy:a,descending:s,page:1})}return{columnToSort:o,computedSortMethod:a,sort:s}}const me={filter:[String,Object],filterMethod:Function};function xe(e,t){const n=(0,i.Fl)((()=>void 0!==e.filterMethod?e.filterMethod:(e,t,n,i)=>{const r=t?t.toLowerCase():"";return e.filter((e=>n.some((t=>{const n=i(t,e)+"",o="undefined"===n||"null"===n?"":n.toLowerCase();return-1!==o.indexOf(r)}))))}));return(0,i.YP)((()=>e.filter),(()=>{(0,i.Y3)((()=>{t({page:1},!0)}))}),{deep:!0}),{computedFilterMethod:n}}function _e(e,t){for(const n in t)if(t[n]!==e[n])return!1;return!0}function be(e){return e.page<1&&(e.page=1),void 0!==e.rowsPerPage&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const we={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function Se(e,t){const{props:n,emit:o}=e,a=(0,r.iH)(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length>0?n.rowsPerPageOptions[0]:5},n.pagination)),s=(0,i.Fl)((()=>{const e=void 0!==n["onUpdate:pagination"]?{...a.value,...n.pagination}:a.value;return be(e)})),l=(0,i.Fl)((()=>void 0!==s.value.rowsNumber));function u(e){c({pagination:e,filter:n.filter})}function c(e={}){(0,i.Y3)((()=>{o("request",{pagination:e.pagination||s.value,filter:e.filter||n.filter,getCellValue:t})}))}function h(e,t){const i=be({...s.value,...e});!0!==_e(s.value,i)?!0!==l.value?void 0!==n.pagination&&void 0!==n["onUpdate:pagination"]?o("update:pagination",i):a.value=i:u(i):!0===l.value&&!0===t&&u(i)}return{innerPagination:a,computedPagination:s,isServerSide:l,requestServerInteraction:c,setPagination:h}}function Me(e,t,n,r,o,a){const{props:s,emit:l,proxy:{$q:u}}=e,c=(0,i.Fl)((()=>!0===r.value?n.value.rowsNumber||0:a.value)),h=(0,i.Fl)((()=>{const{page:e,rowsPerPage:t}=n.value;return(e-1)*t})),d=(0,i.Fl)((()=>{const{page:e,rowsPerPage:t}=n.value;return e*t})),p=(0,i.Fl)((()=>1===n.value.page)),f=(0,i.Fl)((()=>0===n.value.rowsPerPage?1:Math.max(1,Math.ceil(c.value/n.value.rowsPerPage)))),g=(0,i.Fl)((()=>0===d.value||n.value.page>=f.value)),v=(0,i.Fl)((()=>{const e=s.rowsPerPageOptions.includes(t.value.rowsPerPage)?s.rowsPerPageOptions:[t.value.rowsPerPage].concat(s.rowsPerPageOptions);return e.map((e=>({label:0===e?u.lang.table.allRows:""+e,value:e})))}));function y(){o({page:1})}function m(){const{page:e}=n.value;e>1&&o({page:e-1})}function x(){const{page:e,rowsPerPage:t}=n.value;d.value>0&&e*t<c.value&&o({page:e+1})}function _(){o({page:f.value})}return(0,i.YP)(f,((e,t)=>{if(e===t)return;const i=n.value.page;e&&!i?o({page:1}):e<i&&o({page:e})})),void 0!==s["onUpdate:pagination"]&&l("update:pagination",{...n.value}),{firstRowIndex:h,lastRowIndex:d,isFirstPage:p,isLastPage:g,pagesNumber:f,computedRowsPerPageOptions:v,computedRowsNumber:c,firstPage:y,prevPage:m,nextPage:x,lastPage:_}}const Ce={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},Ie=["update:selected","selection"];function Te(e,t,n,r){const o=(0,i.Fl)((()=>{const t={};return e.selected.map(r.value).forEach((e=>{t[e]=!0})),t})),a=(0,i.Fl)((()=>"none"!==e.selection)),s=(0,i.Fl)((()=>"single"===e.selection)),l=(0,i.Fl)((()=>"multiple"===e.selection)),u=(0,i.Fl)((()=>n.value.length>0&&n.value.every((e=>!0===o.value[r.value(e)])))),c=(0,i.Fl)((()=>!0!==u.value&&n.value.some((e=>!0===o.value[r.value(e)])))),h=(0,i.Fl)((()=>e.selected.length));function d(e){return!0===o.value[e]}function p(){t("update:selected",[])}function f(n,i,o,a){t("selection",{rows:i,added:o,keys:n,evt:a});const l=!0===s.value?!0===o?i:[]:!0===o?e.selected.concat(i):e.selected.filter((e=>!1===n.includes(r.value(e))));t("update:selected",l)}return{hasSelectionMode:a,singleSelection:s,multipleSelection:l,allRowsSelected:u,someRowsSelected:c,rowsSelectedNumber:h,isRowSelected:d,clearSelection:p,updateSelection:f}}function ke(e){return Array.isArray(e)?e.slice():[]}const Ae={expanded:Array},De=["update:expanded"];function Le(e,t){const n=(0,r.iH)(ke(e.expanded));function o(e){return n.value.includes(e)}function a(i){void 0!==e.expanded?t("update:expanded",i):n.value=i}function s(e,t){const i=n.value.slice(),r=i.indexOf(e);!0===t?-1===r&&(i.push(e),a(i)):-1!==r&&(i.splice(r,1),a(i))}return(0,i.YP)((()=>e.expanded),(e=>{n.value=ke(e)})),{isRowExpanded:o,setExpanded:a,updateExpanded:s}}const Pe={visibleColumns:Array};function Oe(e,t,n){const r=(0,i.Fl)((()=>{if(void 0!==e.columns)return e.columns;const t=e.rows[0];return void 0!==t?Object.keys(t).map((e=>({name:e,label:e.toUpperCase(),field:e,align:(0,W.hj)(t[e])?"right":"left",sortable:!0}))):[]})),o=(0,i.Fl)((()=>{const{sortBy:n,descending:i}=t.value,o=void 0!==e.visibleColumns?r.value.filter((t=>!0===t.required||!0===e.visibleColumns.includes(t.name))):r.value;return o.map((e=>{const t=e.align||"right",r=`text-${t}`;return{...e,align:t,__iconClass:`q-table__sort-icon q-table__sort-icon--${t}`,__thClass:r+(void 0!==e.headerClasses?" "+e.headerClasses:"")+(!0===e.sortable?" sortable":"")+(e.name===n?" sorted "+(!0===i?"sort-desc":""):""),__tdStyle:void 0!==e.style?"function"!==typeof e.style?()=>e.style:e.style:()=>null,__tdClass:void 0!==e.classes?"function"!==typeof e.classes?()=>r+" "+e.classes:t=>r+" "+e.classes(t):()=>r}}))})),a=(0,i.Fl)((()=>{const e={};return o.value.forEach((t=>{e[t.name]=t})),e})),s=(0,i.Fl)((()=>void 0!==e.tableColspan?e.tableColspan:o.value.length+(!0===n.value?1:0)));return{colList:r,computedCols:o,computedColsMap:a,computedColspan:s}}var Re=n(9085);const Ee="q-table__bottom row items-center",Ne={};T.forEach((e=>{Ne[e]={}}));const Be=(0,a.L)({name:"QTable",props:{rows:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{default:void 0},...Ne,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...h.S,...de,...Pe,...me,...we,...Ae,...Ce,...ve},emits:["request","virtual-scroll",...pe,...De,...Ie],setup(e,{slots:t,emit:n}){const a=(0,i.FN)(),{proxy:{$q:s}}=a,c=(0,h.Z)(e,s),{inFullscreen:d,toggleFullscreen:p}=fe(),g=(0,i.Fl)((()=>"function"===typeof e.rowKey?e.rowKey:t=>t[e.rowKey])),v=(0,r.iH)(null),y=(0,r.iH)(null),m=(0,i.Fl)((()=>!0!==e.grid&&!0===e.virtualScroll)),x=(0,i.Fl)((()=>" q-table__card"+(!0===c.value?" q-table__card--dark q-dark":"")+(!0===e.square?" q-table--square":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":""))),_=(0,i.Fl)((()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(!0===e.grid?" q-table--grid":x.value)+(!0===c.value?" q-table--dark":"")+(!0===e.dense?" q-table--dense":"")+(!1===e.wrapCells?" q-table--no-wrap":"")+(!0===d.value?" fullscreen scroll":""))),b=(0,i.Fl)((()=>_.value+(!0===e.loading?" q-table--loading":"")));(0,i.YP)((()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+_.value),(()=>{!0===m.value&&null!==y.value&&y.value.reset()}));const{innerPagination:w,computedPagination:S,isServerSide:M,requestServerInteraction:C,setPagination:I}=Se(a,Ne),{computedFilterMethod:k}=xe(e,I),{isRowExpanded:A,setExpanded:D,updateExpanded:L}=Le(e,n),P=(0,i.Fl)((()=>{let t=e.rows;if(!0===M.value||0===t.length)return t;const{sortBy:n,descending:i}=S.value;return e.filter&&(t=k.value(t,e.filter,j.value,Ne)),null!==$.value&&(t=K.value(e.rows===t?t.slice():t,n,i)),t})),R=(0,i.Fl)((()=>P.value.length)),E=(0,i.Fl)((()=>{let t=P.value;if(!0===M.value)return t;const{rowsPerPage:n}=S.value;return 0!==n&&(0===Q.value&&e.rows!==t?t.length>te.value&&(t=t.slice(0,te.value)):t=t.slice(Q.value,te.value)),t})),{hasSelectionMode:N,singleSelection:B,multipleSelection:F,allRowsSelected:z,someRowsSelected:V,rowsSelectedNumber:H,isRowSelected:q,clearSelection:G,updateSelection:W}=Te(e,n,E,g),{colList:U,computedCols:j,computedColsMap:Z,computedColspan:Y}=Oe(e,S,N),{columnToSort:$,computedSortMethod:K,sort:J}=ye(e,S,U,I),{firstRowIndex:Q,lastRowIndex:te,isFirstPage:ne,isLastPage:ie,pagesNumber:re,computedRowsPerPageOptions:oe,computedRowsNumber:ae,firstPage:ue,prevPage:ce,nextPage:he,lastPage:de}=Me(a,w,S,M,I,R),pe=(0,i.Fl)((()=>0===E.value.length)),ge=(0,i.Fl)((()=>{const t={};return T.forEach((n=>{t[n]=e[n]})),void 0===t.virtualScrollItemSize&&(t.virtualScrollItemSize=!0===e.dense?28:48),t}));function ve(){!0===m.value&&y.value.reset()}function me(){if(!0===e.grid)return $e();const n=!0!==e.hideHeader?Ve:null;if(!0===m.value){const r=t["top-row"],o=t["bottom-row"],a={default:e=>Ce(e.item,t.body,e.index)};if(void 0!==r){const e=(0,i.h)("tbody",r({cols:j.value}));a.before=null===n?()=>e:()=>[n()].concat(e)}else null!==n&&(a.before=n);return void 0!==o&&(a.after=()=>(0,i.h)("tbody",o({cols:j.value}))),(0,i.h)(O,{ref:y,class:e.tableClass,style:e.tableStyle,...ge.value,scrollTarget:e.virtualScrollTarget,items:E.value,type:"__qtable",tableColspan:Y.value,onVirtualScroll:be},a)}const r=[Ie()];return null!==n&&r.unshift(n()),f({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},r)}function _e(e,t){if(null!==y.value)return void y.value.scrollTo(e,t);e=parseInt(e,10);const i=v.value.querySelector(`tbody tr:nth-of-type(${e+1})`);if(null!==i){const t=v.value.querySelector(".q-table__middle.scroll"),{offsetTop:r}=i,o=r<t.scrollTop?"decrease":"increase";t.scrollTop=r,n("virtual-scroll",{index:e,from:0,to:w.value.rowsPerPage-1,direction:o})}}function be(e){n("virtual-scroll",e)}function we(){return[(0,i.h)(ee,{class:"q-table__linear-progress",color:e.color,dark:c.value,indeterminate:!0,trackColor:"transparent"})]}function Ce(r,o,a){const s=g.value(r),l=q(s);if(void 0!==o)return o(ke({key:s,row:r,pageIndex:a,__trClass:l?"selected":""}));const u=t["body-cell"],h=j.value.map((e=>{const n=t[`body-cell-${e.name}`],o=void 0!==n?n:u;return void 0!==o?o(Ae({key:s,row:r,pageIndex:a,col:e})):(0,i.h)("td",{class:e.__tdClass(r),style:e.__tdStyle(r)},Ne(e,r))}));if(!0===N.value){const n=t["body-selection"],o=void 0!==n?n(De({key:s,row:r,pageIndex:a})):[(0,i.h)(se,{modelValue:l,color:e.color,dark:c.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{W([s],[r],e,t)}})];h.unshift((0,i.h)("td",{class:"q-table--col-auto-width"},o))}const d={key:s,class:{selected:l}};return void 0!==e.onRowClick&&(d.class["cursor-pointer"]=!0,d.onClick=e=>{n("RowClick",e,r,a)}),void 0!==e.onRowDblclick&&(d.class["cursor-pointer"]=!0,d.onDblclick=e=>{n("RowDblclick",e,r,a)}),void 0!==e.onRowContextmenu&&(d.class["cursor-pointer"]=!0,d.onContextmenu=e=>{n("RowContextmenu",e,r,a)}),(0,i.h)("tr",d,h)}function Ie(){const e=t.body,n=t["top-row"],r=t["bottom-row"];let o=E.value.map(((t,n)=>Ce(t,e,n)));return void 0!==n&&(o=n({cols:j.value}).concat(o)),void 0!==r&&(o=o.concat(r({cols:j.value}))),(0,i.h)("tbody",o)}function ke(e){return Pe(e),e.cols=e.cols.map((t=>{const n={...t};return(0,Re.g)(n,"value",(()=>Ne(t,e.row))),n})),e}function Ae(e){return Pe(e),(0,Re.g)(e,"value",(()=>Ne(e.col,e.row))),e}function De(e){return Pe(e),e}function Pe(t){Object.assign(t,{cols:j.value,colsMap:Z.value,sort:J,rowIndex:Q.value+t.pageIndex,color:e.color,dark:c.value,dense:e.dense}),!0===N.value&&(0,Re.g)(t,"selected",(()=>q(t.key)),((e,n)=>{W([t.key],[t.row],e,n)})),(0,Re.g)(t,"expand",(()=>A(t.key)),(e=>{L(t.key,e)}))}function Ne(e,t){const n="function"===typeof e.field?e.field(t):t[e.field];return void 0!==e.format?e.format(n,t):n}const Be=(0,i.Fl)((()=>({pagination:S.value,pagesNumber:re.value,isFirstPage:ne.value,isLastPage:ie.value,firstPage:ue,prevPage:ce,nextPage:he,lastPage:de,inFullscreen:d.value,toggleFullscreen:p})));function Fe(){const n=t.top,r=t["top-left"],o=t["top-right"],a=t["top-selection"],s=!0===N.value&&void 0!==a&&H.value>0,l="q-table__top relative-position row items-center";if(void 0!==n)return(0,i.h)("div",{class:l},[n(Be.value)]);let u;return!0===s?u=a(Be.value).slice():(u=[],void 0!==r?u.push((0,i.h)("div",{class:"q-table-control"},[r(Be.value)])):e.title&&u.push((0,i.h)("div",{class:"q-table__control"},[(0,i.h)("div",{class:["q-table__title",e.titleClass]},e.title)]))),void 0!==o&&(u.push((0,i.h)("div",{class:"q-table__separator col"})),u.push((0,i.h)("div",{class:"q-table__control"},[o(Be.value)]))),0!==u.length?(0,i.h)("div",{class:l},u):void 0}const ze=(0,i.Fl)((()=>!0===V.value?null:z.value));function Ve(){const n=He();return!0===e.loading&&void 0===t.loading&&n.push((0,i.h)("tr",{class:"q-table__progress"},[(0,i.h)("th",{class:"relative-position",colspan:Y.value},we())])),(0,i.h)("thead",n)}function He(){const n=t.header,r=t["header-cell"];if(void 0!==n)return n(qe({header:!0})).slice();const o=j.value.map((e=>{const n=t[`header-cell-${e.name}`],o=void 0!==n?n:r,a=qe({col:e});return void 0!==o?o(a):(0,i.h)(l,{key:e.name,props:a},(()=>e.label))}));if(!0===B.value&&!0!==e.grid)o.unshift((0,i.h)("th",{class:"q-table--col-auto-width"}," "));else if(!0===F.value){const n=t["header-selection"],r=void 0!==n?n(qe({})):[(0,i.h)(se,{color:e.color,modelValue:ze.value,dark:c.value,dense:e.dense,"onUpdate:modelValue":Ge})];o.unshift((0,i.h)("th",{class:"q-table--col-auto-width"},r))}return[(0,i.h)("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},o)]}function qe(t){return Object.assign(t,{cols:j.value,sort:J,colsMap:Z.value,color:e.color,dark:c.value,dense:e.dense}),!0===F.value&&(0,Re.g)(t,"selected",(()=>ze.value),Ge),t}function Ge(e){!0===V.value&&(e=!1),W(E.value.map(g.value),E.value,e)}const We=(0,i.Fl)((()=>{const t=[e.iconFirstPage||s.iconSet.table.firstPage,e.iconPrevPage||s.iconSet.table.prevPage,e.iconNextPage||s.iconSet.table.nextPage,e.iconLastPage||s.iconSet.table.lastPage];return!0===s.lang.rtl?t.reverse():t}));function Ue(){if(!0===e.hideBottom)return;if(!0===pe.value){if(!0===e.hideNoData)return;const n=!0===e.loading?e.loadingLabel||s.lang.table.loading:e.filter?e.noResultsLabel||s.lang.table.noResults:e.noDataLabel||s.lang.table.noData,r=t["no-data"],a=void 0!==r?[r({message:n,icon:s.iconSet.table.warning,filter:e.filter})]:[(0,i.h)(o.Z,{class:"q-table__bottom-nodata-icon",name:s.iconSet.table.warning}),n];return(0,i.h)("div",{class:Ee+" q-table__bottom--nodata"},a)}const n=t.bottom;if(void 0!==n)return(0,i.h)("div",{class:Ee},[n(Be.value)]);const r=!0!==e.hideSelectedBanner&&!0===N.value&&H.value>0?[(0,i.h)("div",{class:"q-table__control"},[(0,i.h)("div",[(e.selectedRowsLabel||s.lang.table.selectedRecords)(H.value)])])]:[];return!0!==e.hidePagination?(0,i.h)("div",{class:Ee+" justify-end"},Ze(r)):r.length>0?(0,i.h)("div",{class:Ee},r):void 0}function je(e){I({page:1,rowsPerPage:e.value})}function Ze(n){let r;const{rowsPerPage:o}=S.value,a=e.paginationLabel||s.lang.table.pagination,l=t.pagination,u=e.rowsPerPageOptions.length>1;if(n.push((0,i.h)("div",{class:"q-table__separator col"})),!0===u&&n.push((0,i.h)("div",{class:"q-table__control"},[(0,i.h)("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||s.lang.table.recordsPerPage]),(0,i.h)(X,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:o,options:oe.value,displayValue:0===o?s.lang.table.allRows:o,dark:c.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":je})])),void 0!==l)r=l(Be.value);else if(r=[(0,i.h)("span",0!==o?{class:"q-table__bottom-item"}:{},[o?a(Q.value+1,Math.min(te.value,ae.value),ae.value):a(1,R.value,ae.value)])],0!==o&&re.value>1){const t={color:e.color,round:!0,dense:!0,flat:!0};!0===e.dense&&(t.size="sm"),re.value>2&&r.push((0,i.h)(le.Z,{key:"pgFirst",...t,icon:We.value[0],disable:ne.value,onClick:ue})),r.push((0,i.h)(le.Z,{key:"pgPrev",...t,icon:We.value[1],disable:ne.value,onClick:ce}),(0,i.h)(le.Z,{key:"pgNext",...t,icon:We.value[2],disable:ie.value,onClick:he})),re.value>2&&r.push((0,i.h)(le.Z,{key:"pgLast",...t,icon:We.value[3],disable:ie.value,onClick:de}))}return n.push((0,i.h)("div",{class:"q-table__control"},r)),n}function Ye(){const n=!0===e.gridHeader?[(0,i.h)("table",{class:"q-table"},[Ve(i.h)])]:!0===e.loading&&void 0===t.loading?we(i.h):void 0;return(0,i.h)("div",{class:"q-table__middle"},n)}function $e(){const r=void 0!==t.item?t.item:r=>{const o=r.cols.map((e=>(0,i.h)("div",{class:"q-table__grid-item-row"},[(0,i.h)("div",{class:"q-table__grid-item-title"},[e.label]),(0,i.h)("div",{class:"q-table__grid-item-value"},[e.value])])));if(!0===N.value){const n=t["body-selection"],a=void 0!==n?n(r):[(0,i.h)(se,{modelValue:r.selected,color:e.color,dark:c.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{W([r.key],[r.row],e,t)}})];o.unshift((0,i.h)("div",{class:"q-table__grid-item-row"},a),(0,i.h)(u.Z,{dark:c.value}))}const a={class:["q-table__grid-item-card"+x.value,e.cardClass],style:e.cardStyle};return void 0===e.onRowClick&&void 0===e.onRowDblclick||(a.class[0]+=" cursor-pointer",void 0!==e.onRowClick&&(a.onClick=e=>{n("RowClick",e,r.row,r.pageIndex)}),void 0!==e.onRowDblclick&&(a.onDblclick=e=>{n("RowDblclick",e,r.row,r.pageIndex)})),(0,i.h)("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(!0===r.selected?" q-table__grid-item--selected":"")},[(0,i.h)("div",a,o)])};return(0,i.h)("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},E.value.map(((e,t)=>r(ke({key:g.value(e),row:e,pageIndex:t})))))}return Object.assign(a.proxy,{requestServerInteraction:C,setPagination:I,firstPage:ue,prevPage:ce,nextPage:he,lastPage:de,isRowSelected:q,clearSelection:G,isRowExpanded:A,setExpanded:D,sort:J,resetVirtualScroll:ve,scrollTo:_e,getCellValue:Ne}),(0,Re.K)(a.proxy,{filteredSortedRows:()=>P.value,computedRows:()=>E.value,computedRowsNumber:()=>ae.value}),()=>{const n=[Fe()],r={ref:v,class:b.value};return!0===e.grid?n.push(Ye()):Object.assign(r,{class:[r.class,e.cardClass],style:e.cardStyle}),n.push(me(),Ue()),!0===e.loading&&void 0!==t.loading&&n.push(t.loading()),(0,i.h)("div",r,n)}}})},3884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,i.Fl)((()=>"q-td"+(!0===e.autoWidth?" q-table--col-auto-width":"")+(!0===e.noHover?" q-td--no-hover":"")+" "));return()=>{if(void 0===e.props)return(0,i.h)("td",{class:r.value},(0,o.KR)(t.default));const a=n.vnode.key,s=(void 0!==e.props.colsMap?e.props.colsMap[a]:null)||e.props.col;if(void 0===s)return;const{row:l}=e.props;return(0,i.h)("td",{class:r.value+s.__tdClass(l),style:s.__tdStyle(l)},(0,o.KR)(t.default))}}})},8186:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-tr"+(void 0===e.props||!0===e.props.header?"":" "+e.props.__trClass)+(!0===e.noHover?" q-tr--no-hover":"")));return()=>(0,i.h)("tr",{class:n.value},(0,o.KR)(t.default))}})},1432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(3610);var i=n(3673),r=n(2236),o=n(908),a=n(7657),s=n(2547);const l=(0,o.L)({name:"QTimeline",props:{...r.S,color:{type:String,default:"primary"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},layout:{type:String,default:"dense",validator:e=>["dense","comfortable","loose"].includes(e)}},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q);(0,i.JJ)(s.xP,e);const l=(0,i.Fl)((()=>`q-timeline q-timeline--${e.layout} q-timeline--${e.layout}--${e.side}`+(!0===o.value?" q-timeline--dark":"")));return()=>(0,i.h)("ul",{class:l.value},(0,a.KR)(t.default))}})},3424:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(3610);var i=n(3673),r=n(4554),o=n(908),a=n(7657),s=n(2547);const l=(0,o.L)({name:"QTimelineEntry",props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},setup(e,{slots:t}){const n=(0,i.f3)(s.xP,(()=>{console.error("QTimelineEntry needs to be child of QTimeline")})),o=(0,i.Fl)((()=>`q-timeline__entry q-timeline__entry--${e.side}`+(void 0!==e.icon||void 0!==e.avatar?" q-timeline__entry--icon":""))),l=(0,i.Fl)((()=>`q-timeline__dot text-${e.color||n.color}`)),u=(0,i.Fl)((()=>"comfortable"===n.layout&&"left"===n.side));return()=>{const n=(0,a.Bl)(t.default,[]);if(void 0!==e.body&&n.unshift(e.body),!0===e.heading){const t=[(0,i.h)("div"),(0,i.h)("div"),(0,i.h)(e.tag,{class:"q-timeline__heading-title"},n)];return(0,i.h)("div",{class:"q-timeline__heading"},!0===u.value?t.reverse():t)}let s;void 0!==e.icon?s=[(0,i.h)(r.Z,{class:"row items-center justify-center",name:e.icon})]:void 0!==e.avatar&&(s=[(0,i.h)("img",{class:"q-timeline__dot-img",src:e.avatar})]);const c=[(0,i.h)("div",{class:"q-timeline__subtitle"},[(0,i.h)("span",{},(0,a.KR)(t.subtitle,[e.subtitle]))]),(0,i.h)("div",{class:l.value},s),(0,i.h)("div",{class:"q-timeline__content"},[(0,i.h)("h6",{class:"q-timeline__title"},(0,a.KR)(t.title,[e.title]))].concat(n))];return(0,i.h)("li",{class:o.value},!0===u.value?c.reverse():c)}}})},9570:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-toolbar row no-wrap items-center"+(!0===e.inset?" q-toolbar--inset":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},3747:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-toolbar__title ellipsis"+(!0===e.shrink?" col-shrink":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},8870:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(5875),s=n(1372),l=n(3628),u=n(5911),c=n(6104),h=n(416),d=n(4955),p=n(908),f=n(8400),g=n(4716),v=n(9725),y=n(7657),m=n(9916),x=n(2657);const _=(0,p.L)({name:"QTooltip",inheritAttrs:!1,props:{...a.u,...l.vr,...c.D,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:x.$},self:{type:String,default:"top middle",validator:x.$},offset:{type:Array,default:()=>[14,14],validator:x.io},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},emits:[...l.gH],setup(e,{slots:t,emit:n,attrs:p}){let _,b;const w=(0,i.FN)(),{proxy:{$q:S}}=w,M=(0,r.iH)(null),C=(0,r.iH)(!1),I=(0,i.Fl)((()=>(0,x.li)(e.anchor,S.lang.rtl))),T=(0,i.Fl)((()=>(0,x.li)(e.self,S.lang.rtl))),k=(0,i.Fl)((()=>!0!==e.persistent)),{registerTick:A,removeTick:D}=(0,h.Z)(),{registerTimeout:L,removeTimeout:P}=(0,d.Z)(),{transition:O,transitionStyle:R}=(0,c.Z)(e,C),{localScrollTarget:E,changeScrollEvent:N,unconfigureScrollTarget:B}=(0,s.Z)(e,Q),{anchorEl:F,canShow:z,anchorEvents:V}=(0,a.Z)({showing:C,configureAnchorEl:J}),{show:H,hide:q}=(0,l.ZP)({showing:C,canShow:z,handleShow:j,handleHide:Z,hideOnRouteChange:k,processOnMount:!0});Object.assign(V,{delayShow:X,delayHide:K});const{showPortal:G,hidePortal:W,renderPortal:U}=(0,u.Z)(w,M,te);if(!0===S.platform.is.mobile){const t={anchorEl:F,innerRef:M,onClickOutside(e){return q(e),e.target.classList.contains("q-dialog__backdrop")&&(0,g.NS)(e),!0}},n=(0,i.Fl)((()=>null===e.modelValue&&!0!==e.persistent&&!0===C.value));(0,i.YP)(n,(e=>{const n=!0===e?m.m:m.D;n(t)})),(0,i.Jd)((()=>{(0,m.D)(t)}))}function j(t){D(),P(),G(),A((()=>{b=new MutationObserver((()=>$())),b.observe(M.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),$(),Q()})),void 0===_&&(_=(0,i.YP)((()=>S.screen.width+"|"+S.screen.height+"|"+e.self+"|"+e.anchor+"|"+S.lang.rtl),$)),L((()=>{G(!0),n("show",t)}),e.transitionDuration)}function Z(t){D(),P(),W(),Y(),L((()=>{W(!0),n("hide",t)}),e.transitionDuration)}function Y(){void 0!==b&&(b.disconnect(),b=void 0),void 0!==_&&(_(),_=void 0),B(),(0,g.ul)(V,"tooltipTemp")}function $(){const t=M.value;null!==F.value&&t&&(0,x.wq)({el:t,offset:e.offset,anchorEl:F.value,anchorOrigin:I.value,selfOrigin:T.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function X(t){if(!0===S.platform.is.mobile){(0,v.M)(),document.body.classList.add("non-selectable");const e=F.value,t=["touchmove","touchcancel","touchend","click"].map((t=>[e,t,"delayHide","passiveCapture"]));(0,g.M0)(V,"tooltipTemp",t)}L((()=>{H(t)}),e.delay)}function K(t){P(),!0===S.platform.is.mobile&&((0,g.ul)(V,"tooltipTemp"),(0,v.M)(),setTimeout((()=>{document.body.classList.remove("non-selectable")}),10)),L((()=>{q(t)}),e.hideDelay)}function J(){if(!0===e.noParentEvent||null===F.value)return;const t=!0===S.platform.is.mobile?[[F.value,"touchstart","delayShow","passive"]]:[[F.value,"mouseenter","delayShow","passive"],[F.value,"mouseleave","delayHide","passive"]];(0,g.M0)(V,"anchor",t)}function Q(){if(null!==F.value||void 0!==e.scrollTarget){E.value=(0,f.b0)(F.value,e.scrollTarget);const t=!0===e.noParentEvent?$:q;N(E.value,t)}}function ee(){return!0===C.value?(0,i.h)("div",{...p,ref:M,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",p.class],style:[p.style,R.value],role:"complementary"},(0,y.KR)(t.default)):null}function te(){return(0,i.h)(o.uT,{name:O.value,appear:!0},ee)}return(0,i.Jd)(Y),Object.assign(w.proxy,{updatePosition:$}),U}})},9992:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s,jO:()=>a});n(3610);var i=n(3673);const r={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},o=Object.keys(r),a={align:{type:String,validator:e=>o.includes(e)}};function s(e){return(0,i.Fl)((()=>{const t=void 0===e.align?!0===e.vertical?"stretch":"left":e.align;return`${!0===e.vertical?"items":"justify"}-${r[t]}`}))}},5875:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u,u:()=>l});var i=n(3673),r=n(1959),o=n(9725),a=n(4716),s=n(1436);const l={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function u({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:l,proxy:u,emit:c}=(0,i.FN)(),h=(0,r.iH)(null);let d;function p(e){return null!==h.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const f={};function g(){(0,a.ul)(f,"anchor")}function v(e){h.value=e;while(h.value.classList.contains("q-anchor--skip"))h.value=h.value.parentNode;n()}function y(){if(!1===l.target||""===l.target||null===u.$el.parentNode)h.value=null;else if(!0===l.target)v(u.$el.parentNode);else{let t=l.target;if("string"===typeof l.target)try{t=document.querySelector(l.target)}catch(e){t=void 0}void 0!==t&&null!==t?(h.value=t.$el||t,n()):(h.value=null,console.error(`Anchor: target "${l.target}" not found`))}}return void 0===n&&(Object.assign(f,{hide(e){u.hide(e)},toggle(e){u.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===(0,s.So)(e,13)&&f.toggle(e)},contextClick(e){u.hide(e),(0,a.X$)(e),(0,i.Y3)((()=>{u.show(e),e.qAnchorHandled=!0}))},prevent:a.X$,mobileTouch(e){if(f.mobileCleanup(e),!0!==p(e))return;u.hide(e),h.value.classList.add("non-selectable");const t=e.target;(0,a.M0)(f,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[h.value,"contextmenu","prevent","notPassive"]]),d=setTimeout((()=>{u.show(e),e.qAnchorHandled=!0}),300)},mobileCleanup(t){h.value.classList.remove("non-selectable"),clearTimeout(d),!0===e.value&&void 0!==t&&(0,o.M)()}}),n=function(e=l.contextMenu){if(!0===l.noParentEvent||null===h.value)return;let t;t=!0===e?!0===u.$q.platform.is.mobile?[[h.value,"touchstart","mobileTouch","passive"]]:[[h.value,"mousedown","hide","passive"],[h.value,"contextmenu","contextClick","notPassive"]]:[[h.value,"click","toggle","passive"],[h.value,"keyup","toggleKey","passive"]],(0,a.M0)(f,"anchor",t)}),(0,i.YP)((()=>l.contextMenu),(e=>{null!==h.value&&(g(),n(e))})),(0,i.YP)((()=>l.target),(()=>{null!==h.value&&g(),y()})),(0,i.YP)((()=>l.noParentEvent),(e=>{null!==h.value&&(!0===e?g():n())})),(0,i.bv)((()=>{y(),!0!==t&&!0===l.modelValue&&null===h.value&&c("update:modelValue",!1)})),(0,i.Jd)((()=>{clearTimeout(d),g()})),{anchorEl:h,canShow:p,anchorEvents:f}}},2236:(e,t,n)=>{"use strict";n.d(t,{S:()=>r,Z:()=>o});var i=n(3673);const r={dark:{type:Boolean,default:null}};function o(e,t){return(0,i.Fl)((()=>null===e.dark?t.dark.isActive:e.dark))}},2659:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Q,yV:()=>$,HJ:()=>K,Cl:()=>X,tL:()=>J});var i=n(3673),r=n(1959),o=n(8880),a=n(4688),s=n(4554),l=n(9754),u=n(2236),c=(n(3610),n(71),n(2547));function h({validate:e,resetValidation:t,requiresQForm:n}){const r=(0,i.f3)(c.vh,!1);if(!1!==r){const{props:n,proxy:o}=(0,i.FN)();Object.assign(o,{validate:e,resetValidation:t}),(0,i.YP)((()=>n.disable),(e=>{!0===e?("function"===typeof t&&t(),r.unbindComponent(o)):r.bindComponent(o)})),!0!==n.disable&&r.bindComponent(o),(0,i.Jd)((()=>{!0!==n.disable&&r.unbindComponent(o)}))}else!0===n&&console.error("Parent QForm not found on useFormChild()!")}const d=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,p=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,f=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,g=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,v=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,y={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>d.test(e),hexaColor:e=>p.test(e),hexOrHexaColor:e=>f.test(e),rgbColor:e=>g.test(e),rgbaColor:e=>v.test(e),rgbOrRgbaColor:e=>g.test(e)||v.test(e),hexOrRgbColor:e=>d.test(e)||g.test(e),hexaOrRgbaColor:e=>p.test(e)||v.test(e),anyColor:e=>f.test(e)||g.test(e)||v.test(e)};n(4406);n(6701),n(5363);Object.prototype.toString,Object.prototype.hasOwnProperty;const m={};"Boolean Number String Function Array Date RegExp Object".split(" ").forEach((e=>{m["[object "+e+"]"]=e.toLowerCase()}));n(7965),n(6016),n(8240);var x=n(2417);const _={...x.LU,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean};var b=n(908),w=n(7657),S=n(2130);const M=50,C=2*M,I=C*Math.PI,T=Math.round(1e3*I)/1e3;(0,b.L)({name:"QCircularProgress",props:{..._,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),r=(0,x.ZP)(e),o=(0,i.Fl)((()=>{const t=(!0===n.lang.rtl?-1:1)*e.angle;return{transform:e.reverse!==(!0===n.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-t}deg)`:`rotate3d(0, 0, 1, ${t-90}deg)`}})),a=(0,i.Fl)((()=>!0!==e.instantFeedback&&!0!==e.indeterminate?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:"")),s=(0,i.Fl)((()=>C/(1-e.thickness/2))),l=(0,i.Fl)((()=>`${s.value/2} ${s.value/2} ${s.value} ${s.value}`)),u=(0,i.Fl)((()=>(0,S.vX)(e.value,e.min,e.max))),c=(0,i.Fl)((()=>I*(1-(u.value-e.min)/(e.max-e.min)))),h=(0,i.Fl)((()=>e.thickness/2*s.value));function d({thickness:e,offset:t,color:n,cls:r}){return(0,i.h)("circle",{class:"q-circular-progress__"+r+(void 0!==n?` text-${n}`:""),style:a.value,fill:"transparent",stroke:"currentColor","stroke-width":e,"stroke-dasharray":T,"stroke-dashoffset":t,cx:s.value,cy:s.value,r:M})}return()=>{const n=[];void 0!==e.centerColor&&"transparent"!==e.centerColor&&n.push((0,i.h)("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:M-h.value/2,cx:s.value,cy:s.value})),void 0!==e.trackColor&&"transparent"!==e.trackColor&&n.push(d({cls:"track",thickness:h.value,offset:0,color:e.trackColor})),n.push(d({cls:"circle",thickness:h.value,offset:c.value,color:e.color}));const a=[(0,i.h)("svg",{class:"q-circular-progress__svg",style:o.value,viewBox:l.value,"aria-hidden":"true"},n)];return!0===e.showValue&&a.push((0,i.h)("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},void 0!==t.default?t.default():[(0,i.h)("div",u.value)])),(0,i.h)("div",{class:`q-circular-progress q-circular-progress--${!0===e.indeterminate?"in":""}determinate`,style:r.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":!0===e.indeterminate?void 0:u.value},(0,w.pf)(t.internal,a))}}});var k=n(4716);const A={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},D=["rejected"];u.S,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const L=[...D,"start","finish","added","removed"];const P=()=>!0;function O(e){const t={};return e.forEach((e=>{t[e]=P})),t}n(782);O(L);n(9111);var R=n(9405);n(2012);n(8400),n(4398),n(6105),n(5123),n(8836),n(8685),n(2396),n(9802),n(2773);let E,N=0;const B=new Array(256);for(let ee=0;ee<256;ee++)B[ee]=(ee+256).toString(16).substring(1);const F=(()=>{const e="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return e=>{const t=[];for(let n=e;n>0;n--)t.push(Math.floor(256*Math.random()));return t}})(),z=4096;function V(){(void 0===E||N+16>z)&&(N=0,E=F(z));const e=Array.prototype.slice.call(E,N,N+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,B[e[0]]+B[e[1]]+B[e[2]]+B[e[3]]+"-"+B[e[4]]+B[e[5]]+"-"+B[e[6]]+B[e[7]]+"-"+B[e[8]]+B[e[9]]+"-"+B[e[10]]+B[e[11]]+B[e[12]]+B[e[13]]+B[e[14]]+B[e[15]]}var H=n(9085);const q=[!0,!1,"ondemand"],G={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:e=>q.includes(e)}};function W(e,t){const{props:n,proxy:o}=(0,i.FN)(),a=(0,r.iH)(!1),s=(0,r.iH)(null),l=(0,r.iH)(null);h({validate:m,resetValidation:v});let u,c=0;const d=(0,i.Fl)((()=>void 0!==n.rules&&null!==n.rules&&n.rules.length>0)),p=(0,i.Fl)((()=>!0!==n.disable&&!0===d.value)),f=(0,i.Fl)((()=>!0===n.error||!0===a.value)),g=(0,i.Fl)((()=>"string"===typeof n.errorMessage&&n.errorMessage.length>0?n.errorMessage:s.value));function v(){c++,t.value=!1,l.value=null,a.value=!1,s.value=null,_.cancel()}function m(e=n.modelValue){if(!0!==p.value)return!0;const i=++c;!0!==t.value&&!0!==n.lazyRules&&(l.value=!0);const r=(e,n)=>{a.value!==e&&(a.value=e);const i=n||void 0;s.value!==i&&(s.value=i),t.value=!1},o=[];for(let t=0;t<n.rules.length;t++){const i=n.rules[t];let a;if("function"===typeof i?a=i(e):"string"===typeof i&&void 0!==y[i]&&(a=y[i](e)),!1===a||"string"===typeof a)return r(!0,a),!1;!0!==a&&void 0!==a&&o.push(a)}return 0===o.length?(r(!1),!0):(t.value=!0,Promise.all(o).then((e=>{if(void 0===e||!1===Array.isArray(e)||0===e.length)return i===c&&r(!1),!0;const t=e.find((e=>!1===e||"string"===typeof e));return i===c&&r(void 0!==t,t),void 0===t}),(e=>(i===c&&(console.error(e),r(!0)),!1))))}function x(e){!0===p.value&&"ondemand"!==n.lazyRules&&(!0===l.value||!0!==n.lazyRules&&!0!==e)&&_()}(0,i.YP)((()=>n.modelValue),(()=>{x()})),(0,i.YP)((()=>n.reactiveRules),(e=>{!0===e?void 0===u&&(u=(0,i.YP)((()=>n.rules),(()=>{x(!0)}))):void 0!==u&&(u(),u=void 0)}),{immediate:!0}),(0,i.YP)(e,(e=>{!0===e?null===l.value&&(l.value=!1):!1===l.value&&(l.value=!0,!0===p.value&&"ondemand"!==n.lazyRules&&!1===t.value&&_())}));const _=(0,R.Z)(m,0);return(0,i.Jd)((()=>{void 0!==u&&u(),_.cancel()})),Object.assign(o,{resetValidation:v,validate:m}),(0,H.g)(o,"hasError",(()=>f.value)),{isDirtyModel:l,hasRules:d,hasError:f,errorMessage:g,validate:m,resetValidation:v}}const U=/^on[A-Z]/;function j(e,t){const n={listeners:(0,r.iH)({}),attributes:(0,r.iH)({})};function o(){const i={},r={};for(const t in e)"class"!==t&&"style"!==t&&!1===U.test(t)&&(i[t]=e[t]);for(const e in t.props)!0===U.test(e)&&(r[e]=t.props[e]);n.attributes.value=i,n.listeners.value=r}return(0,i.Xn)(o),o(),n}var Z=n(230);function Y(e){return void 0===e?`f_${V()}`:e}function $(e){return void 0!==e&&null!==e&&(""+e).length>0}const X={...u.S,...G,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},K=["update:modelValue","clear","focus","blur","popup-show","popup-hide"];function J(){const{props:e,attrs:t,proxy:n,vnode:o}=(0,i.FN)(),a=(0,u.Z)(e,n.$q);return{isDark:a,editable:(0,i.Fl)((()=>!0!==e.disable&&!0!==e.readonly)),innerLoading:(0,r.iH)(!1),focused:(0,r.iH)(!1),hasPopupOpen:!1,splitAttrs:j(t,o),targetUid:(0,r.iH)(Y(e.for)),rootRef:(0,r.iH)(null),targetRef:(0,r.iH)(null),controlRef:(0,r.iH)(null)}}function Q(e){const{props:t,emit:n,slots:r,attrs:u,proxy:c}=(0,i.FN)(),{$q:h}=c;let d;void 0===e.hasValue&&(e.hasValue=(0,i.Fl)((()=>$(t.modelValue)))),void 0===e.emitValue&&(e.emitValue=e=>{n("update:modelValue",e)}),void 0===e.controlEvents&&(e.controlEvents={onFocusin:P,onFocusout:O}),Object.assign(e,{clearValue:R,onControlFocusin:P,onControlFocusout:O,focus:D}),void 0===e.computedCounter&&(e.computedCounter=(0,i.Fl)((()=>{if(!1!==t.counter){const e="string"===typeof t.modelValue||"number"===typeof t.modelValue?(""+t.modelValue).length:!0===Array.isArray(t.modelValue)?t.modelValue.length:0,n=void 0!==t.maxlength?t.maxlength:t.maxValues;return e+(void 0!==n?" / "+n:"")}})));const{isDirtyModel:p,hasRules:f,hasError:g,errorMessage:v,resetValidation:y}=W(e.focused,e.innerLoading),m=void 0!==e.floatingLabel?(0,i.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.floatingLabel.value)):(0,i.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.hasValue.value)),x=(0,i.Fl)((()=>!0===t.bottomSlots||void 0!==t.hint||!0===f.value||!0===t.counter||null!==t.error)),_=(0,i.Fl)((()=>!0===t.filled?"filled":!0===t.outlined?"outlined":!0===t.borderless?"borderless":t.standout?"standout":"standard")),b=(0,i.Fl)((()=>`q-field row no-wrap items-start q-field--${_.value}`+(void 0!==e.fieldClass?` ${e.fieldClass.value}`:"")+(!0===t.rounded?" q-field--rounded":"")+(!0===t.square?" q-field--square":"")+(!0===m.value?" q-field--float":"")+(!0===M.value?" q-field--labeled":"")+(!0===t.dense?" q-field--dense":"")+(!0===t.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===e.isDark.value?" q-field--dark":"")+(void 0===e.getControl?" q-field--auto-height":"")+(!0===e.focused.value?" q-field--focused":"")+(!0===g.value?" q-field--error":"")+(!0===g.value||!0===e.focused.value?" q-field--highlighted":"")+(!0!==t.hideBottomSpace&&!0===x.value?" q-field--with-bottom":"")+(!0===t.disable?" q-field--disabled":!0===t.readonly?" q-field--readonly":""))),S=(0,i.Fl)((()=>"q-field__control relative-position row no-wrap"+(void 0!==t.bgColor?` bg-${t.bgColor}`:"")+(!0===g.value?" text-negative":"string"===typeof t.standout&&t.standout.length>0&&!0===e.focused.value?` ${t.standout}`:void 0!==t.color?` text-${t.color}`:""))),M=(0,i.Fl)((()=>!0===t.labelSlot||void 0!==t.label)),C=(0,i.Fl)((()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==t.labelColor&&!0!==g.value?` text-${t.labelColor}`:""))),I=(0,i.Fl)((()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:m.value,modelValue:t.modelValue,emitValue:e.emitValue}))),T=(0,i.Fl)((()=>{const n={for:e.targetUid.value};return!0===t.disable?n["aria-disabled"]="true":!0===t.readonly&&(n["aria-readonly"]="true"),n}));function A(){const t=document.activeElement;let n=void 0!==e.targetRef&&e.targetRef.value;!n||null!==t&&t.id===e.targetUid.value||(!0===n.hasAttribute("tabindex")||(n=n.querySelector("[tabindex]")),n&&n!==t&&n.focus({preventScroll:!0}))}function D(){(0,Z.jd)(A)}function L(){(0,Z.fP)(A);const t=document.activeElement;null!==t&&e.rootRef.value.contains(t)&&t.blur()}function P(t){clearTimeout(d),!0===e.editable.value&&!1===e.focused.value&&(e.focused.value=!0,n("focus",t))}function O(t,i){clearTimeout(d),d=setTimeout((()=>{(!0!==document.hasFocus()||!0!==e.hasPopupOpen&&void 0!==e.controlRef&&null!==e.controlRef.value&&!1===e.controlRef.value.contains(document.activeElement))&&(!0===e.focused.value&&(e.focused.value=!1,n("blur",t)),void 0!==i&&i())}))}function R(r){if((0,k.NS)(r),!0!==h.platform.is.mobile){const t=void 0!==e.targetRef&&e.targetRef.value||e.rootRef.value;t.focus()}else!0===e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===t.type&&(e.inputRef.value.value=null),n("update:modelValue",null),n("clear",t.modelValue),(0,i.Y3)((()=>{y(),!0!==h.platform.is.mobile&&(p.value=!1)}))}function E(){const n=[];return void 0!==r.prepend&&n.push((0,i.h)("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:k.X$},r.prepend())),n.push((0,i.h)("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},N())),!0===g.value&&!1===t.noErrorIcon&&n.push(F("error",[(0,i.h)(s.Z,{name:h.iconSet.field.error,color:"negative"})])),!0===t.loading||!0===e.innerLoading.value?n.push(F("inner-loading-append",void 0!==r.loading?r.loading():[(0,i.h)(l.Z,{color:t.color})])):!0===t.clearable&&!0===e.hasValue.value&&!0===e.editable.value&&n.push(F("inner-clearable-append",[(0,i.h)(s.Z,{class:"q-field__focusable-action",tag:"button",name:t.clearIcon||h.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:R})])),void 0!==r.append&&n.push((0,i.h)("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:k.X$},r.append())),void 0!==e.getInnerAppend&&n.push(F("inner-append",e.getInnerAppend())),void 0!==e.getControlChild&&n.push(e.getControlChild()),n}function N(){const n=[];return void 0!==t.prefix&&null!==t.prefix&&n.push((0,i.h)("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),void 0!==e.getShadowControl&&!0===e.hasShadow.value&&n.push(e.getShadowControl()),void 0!==e.getControl?n.push(e.getControl()):void 0!==r.rawControl?n.push(r.rawControl()):void 0!==r.control&&n.push((0,i.h)("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0},r.control(I.value))),!0===M.value&&n.push((0,i.h)("div",{class:C.value},(0,w.KR)(r.label,t.label))),void 0!==t.suffix&&null!==t.suffix&&n.push((0,i.h)("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),n.concat((0,w.KR)(r.default))}function B(){let n,a;!0===g.value?null!==v.value?(n=[(0,i.h)("div",{role:"alert"},v.value)],a=`q--slot-error-${v.value}`):(n=(0,w.KR)(r.error),a="q--slot-error"):!0===t.hideHint&&!0!==e.focused.value||(void 0!==t.hint?(n=[(0,i.h)("div",t.hint)],a=`q--slot-hint-${t.hint}`):(n=(0,w.KR)(r.hint),a="q--slot-hint"));const s=!0===t.counter||void 0!==r.counter;if(!0===t.hideBottomSpace&&!1===s&&void 0===n)return;const l=(0,i.h)("div",{key:a,class:"q-field__messages col"},n);return(0,i.h)("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==t.hideBottomSpace?"animated":"stale")},[!0===t.hideBottomSpace?l:(0,i.h)(o.uT,{name:"q-transition--field-message"},(()=>l)),!0===s?(0,i.h)("div",{class:"q-field__counter"},void 0!==r.counter?r.counter():e.computedCounter.value):null])}function F(e,t){return null===t?null:(0,i.h)("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},t)}(0,i.YP)((()=>t.for),(t=>{e.targetUid.value=Y(t)})),Object.assign(c,{focus:D,blur:L});let z=!1;return(0,i.se)((()=>{z=!0})),(0,i.dl)((()=>{!0===z&&!0===t.autofocus&&c.focus()})),(0,i.bv)((()=>{!0===a.uX.value&&void 0===t.for&&(e.targetUid.value=Y()),!0===t.autofocus&&c.focus()})),(0,i.Jd)((()=>{clearTimeout(d)})),function(){const n=void 0===e.getControl&&void 0===r.control?{...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0,...T.value}:T.value;return(0,i.h)("label",{ref:e.rootRef,class:[b.value,u.class],style:u.style,...n},[void 0!==r.before?(0,i.h)("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:k.X$},r.before()):null,(0,i.h)("div",{class:"q-field__inner relative-position col self-stretch"},[(0,i.h)("div",{ref:e.controlRef,class:S.value,tabindex:-1,...e.controlEvents},E()),!0===x.value?B():null]),void 0!==r.after?(0,i.h)("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:k.X$},r.after()):null])}}},9550:(e,t,n)=>{"use strict";n.d(t,{Do:()=>a,Fz:()=>r,eX:()=>o});var i=n(3673);const r={name:String};function o(e={}){return(t,n,r)=>{t[n]((0,i.h)("input",{class:"hidden"+(r||""),...e.value}))}}function a(e){return(0,i.Fl)((()=>e.name||e.for))}},69:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(3673),r=n(6583);function o(e,t,n){let o;function a(){void 0!==o&&(r.Z.remove(o),o=void 0)}return(0,i.Jd)((()=>{!0===e.value&&a()})),{removeFromHistory:a,addToHistory(){o={condition:()=>!0===n.value,handler:t},r.Z.add(o)}}}},4421:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(4688);const r=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,o=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,a=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,s=/[a-z0-9_ -]$/i;function l(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,e(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"===typeof t.data){const e=!0===i.Lp.is.firefox?!1===s.test(t.data):!0===r.test(t.data)||!0===o.test(t.data)||!0===a.test(t.data);!0===e&&(t.target.qComposing=!0)}}}},3628:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s,gH:()=>a,vr:()=>o});var i=n(3673),r=n(7445);const o={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},a=["before-show","show","before-hide","hide"];function s({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:a,processOnMount:s}){const l=(0,i.FN)(),{props:u,emit:c,proxy:h}=l;let d;function p(t){!0===e.value?v(t):f(t)}function f(e){if(!0===u.disable||void 0!==e&&!0===e.qAnchorHandled||void 0!==t&&!0!==t(e))return;const n=void 0!==u["onUpdate:modelValue"];!0===n&&(c("update:modelValue",!0),d=e,(0,i.Y3)((()=>{d===e&&(d=void 0)}))),null!==u.modelValue&&!1!==n||g(e)}function g(t){!0!==e.value&&(e.value=!0,c("before-show",t),void 0!==o?o(t):c("show",t))}function v(e){if(!0===u.disable)return;const t=void 0!==u["onUpdate:modelValue"];!0===t&&(c("update:modelValue",!1),d=e,(0,i.Y3)((()=>{d===e&&(d=void 0)}))),null!==u.modelValue&&!1!==t||y(e)}function y(t){!1!==e.value&&(e.value=!1,c("before-hide",t),void 0!==a?a(t):c("hide",t))}function m(t){if(!0===u.disable&&!0===t)void 0!==u["onUpdate:modelValue"]&&c("update:modelValue",!1);else if(!0===t!==e.value){const e=!0===t?g:y;e(d)}}(0,i.YP)((()=>u.modelValue),m),void 0!==n&&!0===(0,r.Rb)(l)&&(0,i.YP)((()=>h.$route.fullPath),(()=>{!0===n.value&&!0===e.value&&v()})),!0===s&&(0,i.bv)((()=>{m(u.modelValue)}));const x={show:f,hide:v,toggle:p};return Object.assign(h,x),x}},5911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(1959),r=n(3673),o=(n(4716),n(230)),a=n(5578);const s=[];let l=document.body;function u(e){const t=document.createElement("div");if(void 0!==e&&(t.id=e),void 0!==a.w6.globalNodes){const e=a.w6.globalNodes["class"];void 0!==e&&(t.className=e)}return l.appendChild(t),s.push(t),t}function c(e){s.splice(s.indexOf(e),1),e.remove()}var h=n(4312);function d(e){e=e.parent;while(void 0!==e&&null!==e){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function p(e,t,n,a){const s=(0,i.iH)(!1),l=(0,i.iH)(!1);let p=null;const f={},g=!0===a&&d(e);function v(t){if(!0===t)return(0,o.xF)(f),void(l.value=!0);l.value=!1,!1===s.value&&(!1===g&&null===p&&(p=u()),s.value=!0,h.wN.push(e.proxy),(0,o.YX)(f))}function y(t){if(l.value=!1,!0!==t)return;(0,o.xF)(f),s.value=!1;const n=h.wN.indexOf(e.proxy);n>-1&&h.wN.splice(n,1),null!==p&&(c(p),p=null)}return(0,r.Ah)((()=>{y(!0)})),Object.assign(e.proxy,{__qPortalInnerRef:t}),{showPortal:v,hidePortal:y,portalIsActive:s,portalIsAccessible:l,renderPortal:()=>!0===g?n():!0===s.value?[(0,r.h)(r.lR,{to:p},n())]:void 0}}},405:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(4716),r=n(8400),o=n(4688);let a,s,l,u,c,h,d=0,p=!1;function f(e){g(e)&&(0,i.NS)(e)}function g(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=(0,i.AZ)(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=n||o?e.deltaY:e.deltaX;for(let i=0;i<t.length;i++){const e=t[i];if((0,r.QA)(e,o))return o?a<0&&0===e.scrollTop||a>0&&e.scrollTop+e.clientHeight===e.scrollHeight:a<0&&0===e.scrollLeft||a>0&&e.scrollLeft+e.clientWidth===e.scrollWidth}return!0}function v(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function y(e){!0!==p&&(p=!0,requestAnimationFrame((()=>{p=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:i}=document.scrollingElement;void 0!==l&&t===window.innerHeight||(l=n-t,document.scrollingElement.scrollTop=i),i>l&&(document.scrollingElement.scrollTop-=Math.ceil((i-l)/8))})))}function m(e){const t=document.body,n=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:l}=window.getComputedStyle(t);a=(0,r.OI)(window),s=(0,r.u3)(window),u=t.style.left,c=t.style.top,t.style.left=`-${a}px`,t.style.top=`-${s}px`,"hidden"!==l&&("scroll"===l||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===o.Lp.is.ios&&(!0===n?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",y,i.rU.passiveCapture),window.visualViewport.addEventListener("scroll",y,i.rU.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",v,i.rU.passiveCapture))}!0===o.Lp.is.desktop&&!0===o.Lp.is.mac&&window[`${e}EventListener`]("wheel",f,i.rU.notPassive),"remove"===e&&(!0===o.Lp.is.ios&&(!0===n?(window.visualViewport.removeEventListener("resize",y,i.rU.passiveCapture),window.visualViewport.removeEventListener("scroll",y,i.rU.passiveCapture)):window.removeEventListener("scroll",v,i.rU.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=u,t.style.top=c,window.scrollTo(a,s),l=void 0)}function x(e){let t="add";if(!0===e){if(d++,void 0!==h)return clearTimeout(h),void(h=void 0);if(d>1)return}else{if(0===d)return;if(d--,d>0)return;if(t="remove",!0===o.Lp.is.ios&&!0===o.Lp.is.nativeMobile)return clearTimeout(h),void(h=setTimeout((()=>{m(t),h=void 0}),100))}m(t)}function _(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,x(t))}}}},7277:(e,t,n)=>{"use strict";n.d(t,{$:()=>d,Z:()=>p});n(5363);var i=n(3673),r=n(4716),o=n(7445);function a(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function s(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function l(e,t){for(const n in t){const i=t[n],r=e[n];if("string"===typeof i){if(i!==r)return!1}else if(!1===Array.isArray(r)||r.length!==i.length||i.some(((e,t)=>e!==r[t])))return!1}return!0}function u(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function c(e,t){return!0===Array.isArray(e)?u(e,t):!0===Array.isArray(t)?u(t,e):e===t}function h(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!1===c(e[n],t[n]))return!1;return!0}const d={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function p(e){const t=(0,i.FN)(),{props:n,proxy:u}=t,c=(0,o.Rb)(t),d=(0,i.Fl)((()=>!0!==n.disable&&void 0!==n.href)),p=(0,i.Fl)((()=>!0===c&&!0!==n.disable&&!0!==d.value&&void 0!==n.to&&null!==n.to&&""!==n.to)),f=(0,i.Fl)((()=>{if(!0===p.value)try{return u.$router.resolve(n.to)}catch(e){}return null})),g=(0,i.Fl)((()=>null!==f.value)),v=(0,i.Fl)((()=>!0===d.value||!0===g.value)),y=(0,i.Fl)((()=>"a"===n.type||!0===v.value?"a":n.tag||e||"div")),m=(0,i.Fl)((()=>!0===d.value?{href:n.href,target:n.target}:!0===g.value?{href:f.value.href,target:n.target}:{})),x=(0,i.Fl)((()=>{if(!1===g.value)return null;const{matched:e}=f.value,{length:t}=e,n=e[t-1];if(void 0===n)return-1;const i=u.$route.matched;if(0===i.length)return-1;const r=i.findIndex(s.bind(null,n));if(r>-1)return r;const o=a(e[t-2]);return t>1&&a(n)===o&&i[i.length-1].path!==o?i.findIndex(s.bind(null,e[t-2])):r})),_=(0,i.Fl)((()=>!0===g.value&&x.value>-1&&l(u.$route.params,f.value.params))),b=(0,i.Fl)((()=>!0===_.value&&x.value===u.$route.matched.length-1&&h(u.$route.params,f.value.params))),w=(0,i.Fl)((()=>!0===g.value?!0===b.value?` ${n.exactActiveClass} ${n.activeClass}`:!0===n.exact?"":!0===_.value?` ${n.activeClass}`:"":""));function S(e){return!(!0===n.disable||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||!0!==e.__qNavigate&&!0===e.defaultPrevented||void 0!==e.button&&0!==e.button||"_blank"===n.target)&&((0,r.X$)(e),u.$router[!0===n.replace?"replace":"push"](n.to).catch((e=>e)))}return{hasRouterLink:g,hasHrefLink:d,hasLink:v,linkTag:y,linkRoute:f,linkIsActive:_,linkIsExactActive:b,linkClass:w,linkProps:m,navigateToRouterLink:S}}},1372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(1959),r=n(3673),o=n(4716);function a(e,t){const n=(0,i.iH)(null);let a;function s(e,t){const n=(void 0!==t?"add":"remove")+"EventListener",i=void 0!==t?t:a;e!==window&&e[n]("scroll",i,o.rU.passive),window[n]("scroll",i,o.rU.passive),a=t}function l(){null!==n.value&&(s(n.value),n.value=null)}const u=(0,r.YP)((()=>e.noParentEvent),(()=>{null!==n.value&&(l(),t())}));return(0,r.Jd)(u),{localScrollTarget:n,unconfigureScrollTarget:l,changeScrollEvent:s}}},2417:(e,t,n)=>{"use strict";n.d(t,{LU:()=>o,Ok:()=>r,ZP:()=>a});var i=n(3673);const r={xs:18,sm:24,md:32,lg:38,xl:46},o={size:String};function a(e,t=r){return(0,i.Fl)((()=>void 0!==e.size?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null))}},416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(3673);function r(){let e;return(0,i.Jd)((()=>{e=void 0})),{registerTick(t){e=t,(0,i.Y3)((()=>{e===t&&(e(),e=void 0)}))},removeTick(){e=void 0}}}},4955:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(3673);function r(){let e;return(0,i.Jd)((()=>{clearTimeout(e)})),{registerTimeout(t,n){clearTimeout(e),e=setTimeout(t,n)},removeTimeout(){clearTimeout(e)}}}},6104:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,Z:()=>a});var i=n(1959),r=n(3673);const o={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function a(e,t){const n=(0,i.iH)(t.value);return(0,r.YP)(t,(e=>{(0,r.Y3)((()=>{n.value=e}))})),{transition:(0,r.Fl)((()=>"q-transition--"+(!0===n.value?e.transitionHide:e.transitionShow))),transitionStyle:(0,r.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`))}}},677:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(908),r=n(4312),o=n(1436);function a(e){if(!1===e)return 0;if(!0===e||void 0===e)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}const s=(0,i.f)({name:"close-popup",beforeMount(e,{value:t}){const n={depth:a(t),handler(t){0!==n.depth&&setTimeout((()=>{const i=(0,r.HW)(e);void 0!==i&&(0,r.S7)(i,t,n.depth)}))},handlerKey(e){!0===(0,o.So)(e,13)&&n.handler(e)}};e.__qclosepopup=n,e.addEventListener("click",n.handler),e.addEventListener("keyup",n.handlerKey)},updated(e,{value:t,oldValue:n}){t!==n&&(e.__qclosepopup.depth=a(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}})},6489:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(908),r=n(2012),o=n(4716),a=n(1436);function s(e,t=250){let n,i=!1;return function(){return!1===i&&(i=!0,setTimeout((()=>{i=!1}),t),n=e.apply(this,arguments)),n}}function l(e,t,n,i){!0===n.modifiers.stop&&(0,o.sT)(e);const a=n.modifiers.color;let s=n.modifiers.center;s=!0===s||!0===i;const l=document.createElement("span"),u=document.createElement("span"),c=(0,o.FK)(e),{left:h,top:d,width:p,height:f}=t.getBoundingClientRect(),g=Math.sqrt(p*p+f*f),v=g/2,y=(p-g)/2+"px",m=s?y:c.left-h-v+"px",x=(f-g)/2+"px",_=s?x:c.top-d-v+"px";u.className="q-ripple__inner",(0,r.iv)(u,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${m},${_},0) scale3d(.2,.2,1)`,opacity:0}),l.className="q-ripple"+(a?" text-"+a:""),l.setAttribute("dir","ltr"),l.appendChild(u),t.appendChild(l);const b=()=>{l.remove(),clearTimeout(w)};n.abort.push(b);let w=setTimeout((()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${y},${x},0) scale3d(1,1,1)`,u.style.opacity=.2,w=setTimeout((()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,w=setTimeout((()=>{l.remove(),n.abort.splice(n.abort.indexOf(b),1)}),275)}),250)}),50)}function u(e,{modifiers:t,value:n,arg:i}){const r=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:!0===r.early,stop:!0===r.stop,center:!0===r.center,color:r.color||i,keyCodes:[].concat(r.keyCodes||13)}}const c=(0,i.f)({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(!1===n.ripple)return;const i={cfg:n,enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===i.enabled&&!0!==t.qSkipRipple&&t.type===(!0===i.modifiers.early?"pointerdown":"click")&&l(t,e,i,!0===t.qKeyEvent)},keystart:s((t=>{!0===i.enabled&&!0!==t.qSkipRipple&&!0===(0,a.So)(t,i.modifiers.keyCodes)&&t.type==="key"+(!0===i.modifiers.early?"down":"up")&&l(t,e,i,!0)}),300)};u(i,t),e.__qripple=i,(0,o.M0)(i,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;void 0!==n&&(n.enabled=!1!==t.value,!0===n.enabled&&Object(t.value)===t.value&&u(n,t))}},beforeUnmount(e){const t=e.__qripple;void 0!==t&&(t.abort.forEach((e=>{e()})),(0,o.ul)(t,"main"),delete e._qripple)}})},6583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(71),n(3610);var i=n(4688),r=n(4716);const o=()=>!0;function a(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function s(e){return!0===e.startsWith("#")&&(e=e.substring(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substring(0,e.length-1)),"#"+e}function l(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return o;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(a).map(s)),()=>t.includes(window.location.hash)}const u={__history:[],add:r.ZT,remove:r.ZT,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:n}=i.Lp.is;if(!0!==t&&!0!==n)return;const r=e.config[!0===t?"cordova":"capacitor"];if(void 0!==r&&!1===r.backButton)return;if(!0===n&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=e=>{void 0===e.condition&&(e.condition=o),this.__history.push(e)},this.remove=e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)};const a=l(Object.assign({backButtonExit:!0},r)),s=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===a()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",(()=>{document.addEventListener("backbutton",s,!1)})):window.Capacitor.Plugins.App.addListener("backButton",s)}}},9111:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,F:()=>r});n(5363);var i=n(2002);const r={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function o(){const e=!0===Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map(((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase())).join("-")}const a=(0,i.Z)({__langPack:{}},{getLocale:o,set(e=r,t){const n={...e,rtl:!0===e.rtl,getLocale:o};{const e=document.documentElement;e.setAttribute("dir",!0===n.rtl?"rtl":"ltr"),e.setAttribute("lang",n.isoName),n.set=a.set,Object.assign(a.__langPack,n),a.props=n,a.isoName=n.isoName,a.nativeName=n.nativeName}},install({$q:e,lang:t,ssrContext:n}){e.lang=a.__langPack,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||r)}}),s=a},4688:(e,t,n)=>{"use strict";n.d(t,{Lp:()=>g,ZP:()=>y,aG:()=>a,uX:()=>o});var i=n(1959),r=n(9085);const o=(0,i.iH)(!1);let a,s=!1;function l(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",versionNumber:n[4]||n[2]||"0",platform:t[0]||""}}function u(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const c="ontouchstart"in window||window.navigator.maxTouchPoints>0;function h(e){a={is:{...e}},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function d(e){const t=e.toLowerCase(),n=u(t),i=l(t,n),r={};i.browser&&(r[i.browser]=!0,r.version=i.version,r.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(r[i.platform]=!0);const o=r.android||r.ios||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"];return!0===o||t.indexOf("mobile")>-1?(r.mobile=!0,r.edga||r.edgios?(r.edge=!0,i.browser="edge"):r.crios?(r.chrome=!0,i.browser="chrome"):r.fxios&&(r.firefox=!0,i.browser="firefox")):r.desktop=!0,(r.ipod||r.ipad||r.iphone)&&(r.ios=!0),r["windows phone"]&&(r.winphone=!0,delete r["windows phone"]),(r.chrome||r.opr||r.safari||r.vivaldi||!0===r.mobile&&!0!==r.ios&&!0!==o)&&(r.webkit=!0),r.edg&&(i.browser="edgechromium",r.edgeChromium=!0),(r.safari&&r.blackberry||r.bb)&&(i.browser="blackberry",r.blackberry=!0),r.safari&&r.playbook&&(i.browser="playbook",r.playbook=!0),r.opr&&(i.browser="opera",r.opera=!0),r.safari&&r.android&&(i.browser="android",r.android=!0),r.safari&&r.kindle&&(i.browser="kindle",r.kindle=!0),r.safari&&r.silk&&(i.browser="silk",r.silk=!0),r.vivaldi&&(i.browser="vivaldi",r.vivaldi=!0),r.name=i.browser,r.platform=i.platform,t.indexOf("electron")>-1?r.electron=!0:document.location.href.indexOf("-extension://")>-1?r.bex=!0:(void 0!==window.Capacitor?(r.capacitor=!0,r.nativeMobile=!0,r.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(r.cordova=!0,r.nativeMobile=!0,r.nativeMobileWrapper="cordova"),!0===c&&!0===r.mac&&(!0===r.desktop&&!0===r.safari||!0===r.nativeMobile&&!0!==r.android&&!0!==r.ios&&!0!==r.ipad)&&h(r)),r}const p=navigator.userAgent||navigator.vendor||window.opera,f={has:{touch:!1,webStorage:!1},within:{iframe:!1}},g={userAgent:p,is:d(p),has:{touch:c},within:{iframe:window.self!==window.top}},v={install(e){const{$q:t}=e;!0===o.value?(e.onSSRHydrated.push((()=>{o.value=!1,Object.assign(t.platform,g),a=void 0})),t.platform=(0,i.qj)(this)):t.platform=this}};{let e;(0,r.g)(g.has,"webStorage",(()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(t){}return e=!1,!1})),s=!0===g.is.ios&&-1===window.navigator.vendor.toLowerCase().indexOf("apple"),!0===o.value?Object.assign(v,g,a,f):Object.assign(v,g)}const y=v},9405:(e,t,n)=>{"use strict";function i(e,t=250,n){let i;function r(){const r=arguments,o=()=>{i=void 0,!0!==n&&e.apply(this,r)};clearTimeout(i),!0===n&&void 0===i&&e.apply(this,r),i=setTimeout(o,t)}return r.cancel=()=>{clearTimeout(i)},r}n.d(t,{Z:()=>i})},2012:(e,t,n)=>{"use strict";n.d(t,{iv:()=>r,mY:()=>a,sb:()=>o});var i=n(1959);function r(e,t){const n=e.style;for(const i in t)n[i]=t[i]}function o(e){if(void 0===e||null===e)return;if("string"===typeof e)try{return document.querySelector(e)||void 0}catch(n){return}const t=!0===(0,i.dq)(e)?e.value:e;return t?t.$el||t:void 0}function a(e,t){if(void 0===e||null===e||!0===e.contains(t))return!0;for(let n=e.nextElementSibling;null!==n;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}},4716:(e,t,n)=>{"use strict";n.d(t,{AZ:()=>s,FK:()=>a,Jf:()=>h,M0:()=>d,NS:()=>c,X$:()=>u,ZT:()=>r,du:()=>o,rU:()=>i,sT:()=>l,ul:()=>p});n(71);const i={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(i,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(f){}function r(){}function o(e){return 0===e.button}function a(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function s(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;while(n){if(t.push(n),"HTML"===n.tagName)return t.push(document),t.push(window),t;n=n.parentElement}}function l(e){e.stopPropagation()}function u(e){!1!==e.cancelable&&e.preventDefault()}function c(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function h(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const n=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",u,i.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",u,i.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function d(e,t,n){const r=`__q_${t}_evt`;e[r]=void 0!==e[r]?e[r].concat(n):n,n.forEach((t=>{t[0].addEventListener(t[1],e[t[2]],i[t[3]])}))}function p(e,t){const n=`__q_${t}_evt`;void 0!==e[n]&&(e[n].forEach((t=>{t[0].removeEventListener(t[1],e[t[2]],i[t[3]])})),e[n]=void 0)}},2130:(e,t,n)=>{"use strict";n.d(t,{Uz:()=>o,kC:()=>i,vX:()=>r,vk:()=>a});function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function o(e,t,n){if(n<=t)return t;const i=n-t+1;let r=t+(e-t)%i;return r<t&&(r=i+r),0===r?0:r}function a(e,t=2,n="0"){if(void 0===e||null===e)return e;const i=""+e;return i.length>=t?i:new Array(t-i.length+1).join(n)+i}},9916:(e,t,n)=>{"use strict";n.d(t,{D:()=>c,m:()=>u});var i=n(4716),r=n(4312);let o;const{notPassiveCapture:a}=i.rU,s=[];function l(e){clearTimeout(o);const t=e.target;if(void 0===t||8===t.nodeType||!0===t.classList.contains("no-pointer-events"))return;let n=r.wN.length-1;while(n>=0){const e=r.wN[n].$;if("QDialog"!==e.type.name)break;if(!0!==e.props.seamless)return;n--}for(let i=s.length-1;i>=0;i--){const n=s[i];if(null!==n.anchorEl.value&&!1!==n.anchorEl.value.contains(t)||t!==document.body&&(null===n.innerRef.value||!1!==n.innerRef.value.contains(t)))return;e.qClickOutside=!0,n.onClickOutside(e)}}function u(e){s.push(e),1===s.length&&(document.addEventListener("mousedown",l,a),document.addEventListener("touchstart",l,a))}function c(e){const t=s.findIndex((t=>t===e));t>-1&&(s.splice(t,1),0===s.length&&(clearTimeout(o),document.removeEventListener("mousedown",l,a),document.removeEventListener("touchstart",l,a)))}},908:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,f:()=>a});var i=n(1959),r=n(3673);const o=e=>(0,i.Xl)((0,r.aZ)(e)),a=e=>(0,i.Xl)(e)},2002:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(1959),r=n(9085);const o=(e,t)=>{const n=(0,i.qj)(e);for(const i in e)(0,r.g)(t,i,(()=>n[i]),(e=>{n[i]=e}));return t}},4704:(e,t,n)=>{"use strict";n.d(t,{c:()=>h,k:()=>d});var i=n(4688),r=n(1436);const o=[];let a;function s(e){a=27===e.keyCode}function l(){!0===a&&(a=!1)}function u(e){!0===a&&(a=!1,!0===(0,r.So)(e,27)&&o[o.length-1](e))}function c(e){window[e]("keydown",s),window[e]("blur",l),window[e]("keyup",u),a=!1}function h(e){!0===i.Lp.is.desktop&&(o.push(e),1===o.length&&c("addEventListener"))}function d(e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),0===o.length&&c("removeEventListener"))}},230:(e,t,n)=>{"use strict";n.d(t,{YX:()=>a,fP:()=>u,jd:()=>l,xF:()=>s});let i=[],r=[];function o(e){r=r.filter((t=>t!==e))}function a(e){o(e),r.push(e)}function s(e){o(e),0===r.length&&i.length>0&&(i[i.length-1](),i=[])}function l(e){0===r.length?e():i.push(e)}function u(e){i=i.filter((t=>t!==e))}},8517:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,i:()=>a});var i=n(4688);const r=[];function o(e){r[r.length-1](e)}function a(e){!0===i.Lp.is.desktop&&(r.push(e),1===r.length&&document.body.addEventListener("focusin",o))}function s(e){const t=r.indexOf(e);t>-1&&(r.splice(t,1),0===r.length&&document.body.removeEventListener("focusin",o))}},5578:(e,t,n)=>{"use strict";n.d(t,{Uf:()=>r,tP:()=>o,w6:()=>i});const i={};let r=!1;function o(){r=!0}},9085:(e,t,n)=>{"use strict";function i(e,t,n,i){Object.defineProperty(e,t,{get:n,set:i,enumerable:!0})}function r(e,t){for(const n in t)i(e,n,t[n])}n.d(t,{K:()=>r,g:()=>i})},782:(e,t,n)=>{"use strict";n.d(t,{J_:()=>l,Kn:()=>s,hj:()=>u,xb:()=>a});n(71),n(4406);const i="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer;function a(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let n,s;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(s=n;0!==s--;)if(!0!==a(e[s],t[s]))return!1;return!0}if(!0===i&&e.constructor===Map){if(e.size!==t.size)return!1;s=e.entries().next();while(!0!==s.done){if(!0!==t.has(s.value[0]))return!1;s=s.next()}s=e.entries().next();while(!0!==s.done){if(!0!==a(s.value[1],t.get(s.value[0])))return!1;s=s.next()}return!0}if(!0===r&&e.constructor===Set){if(e.size!==t.size)return!1;s=e.entries().next();while(!0!==s.done){if(!0!==t.has(s.value[0]))return!1;s=s.next()}return!0}if(!0===o&&null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(s=n;0!==s--;)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const l=Object.keys(e).filter((t=>void 0!==e[t]));if(n=l.length,n!==Object.keys(t).filter((e=>void 0!==t[e])).length)return!1;for(s=n;0!==s--;){const n=l[s];if(!0!==a(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function s(e){return null!==e&&"object"===typeof e&&!0!==Array.isArray(e)}function l(e){return"[object Date]"===Object.prototype.toString.call(e)}function u(e){return"number"===typeof e&&isFinite(e)}},1436:(e,t,n)=>{"use strict";n.d(t,{So:()=>a,Wm:()=>o,ZK:()=>r});n(3610);let i=!1;function r(e){i=!0===e.isComposing}function o(e){return!0===i||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function a(e,t){return!0!==o(e)&&[].concat(t).includes(e.keyCode)}},4312:(e,t,n)=>{"use strict";n.d(t,{AH:()=>a,HW:()=>o,S7:()=>s,wN:()=>r});var i=n(7445);const r=[];function o(e){return r.find((t=>null!==t.__qPortalInnerRef.value&&t.__qPortalInnerRef.value.contains(e)))}function a(e,t){do{if("QMenu"===e.$options.name){if(e.hide(t),!0===e.$props.separateClosePopup)return(0,i.Kq)(e)}else if(void 0!==e.__qPortalInnerRef){const n=(0,i.Kq)(e);return void 0!==n&&"QPopupProxy"===n.$options.name?(e.hide(t),n):e}e=(0,i.Kq)(e)}while(void 0!==e&&null!==e)}function s(e,t,n){while(0!==n&&void 0!==e&&null!==e){if(void 0!==e.__qPortalInnerRef){if(n--,"QMenu"===e.$options.name){e=a(e,t);continue}e.hide(t)}e=(0,i.Kq)(e)}}},2657:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,io:()=>l,li:()=>c,wq:()=>p});n(3610);var i=n(8400),r=n(4688);let o,a;function s(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function l(e){return!e||2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1])}const u={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function c(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:u[`${n[1]}#${!0===t?"rtl":"ltr"}`]}}function h(e,t){let{top:n,left:i,right:r,bottom:o,width:a,height:s}=e.getBoundingClientRect();return void 0!==t&&(n-=t[1],i-=t[0],o+=t[1],r+=t[0],a+=t[0],s+=t[1]),{top:n,left:i,right:r,bottom:o,width:a,height:s,middle:i+(r-i)/2,center:n+(o-n)/2}}function d(e){return{top:0,center:e.offsetHeight/2,bottom:e.offsetHeight,left:0,middle:e.offsetWidth/2,right:e.offsetWidth}}function p(e){if(!0===r.Lp.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:n}=window.visualViewport;t!==o&&(e.setProperty("--q-pe-left",t+"px"),o=t),n!==a&&(e.setProperty("--q-pe-top",n+"px"),a=n)}let t;const{scrollLeft:n,scrollTop:i}=e.el;if(void 0===e.absoluteOffset)t=h(e.anchorEl,!0===e.cover?[0,0]:e.offset);else{const{top:n,left:i}=e.anchorEl.getBoundingClientRect(),r=n+e.absoluteOffset.top,o=i+e.absoluteOffset.left;t={top:r,left:o,width:1,height:1,right:o+1,center:r,middle:o,bottom:r+1}}let s={maxHeight:e.maxHeight,maxWidth:e.maxWidth,visibility:"visible"};!0!==e.fit&&!0!==e.cover||(s.minWidth=t.width+"px",!0===e.cover&&(s.minHeight=t.height+"px")),Object.assign(e.el.style,s);const l=d(e.el),u={top:t[e.anchorOrigin.vertical]-l[e.selfOrigin.vertical],left:t[e.anchorOrigin.horizontal]-l[e.selfOrigin.horizontal]};f(u,t,l,e.anchorOrigin,e.selfOrigin),s={top:u.top+"px",left:u.left+"px"},void 0!==u.maxHeight&&(s.maxHeight=u.maxHeight+"px",t.height>u.maxHeight&&(s.minHeight=s.maxHeight)),void 0!==u.maxWidth&&(s.maxWidth=u.maxWidth+"px",t.width>u.maxWidth&&(s.minWidth=s.maxWidth)),Object.assign(e.el.style,s),e.el.scrollTop!==i&&(e.el.scrollTop=i),e.el.scrollLeft!==n&&(e.el.scrollLeft=n)}function f(e,t,n,r,o){const a=n.bottom,s=n.right,l=(0,i.np)(),u=window.innerHeight-l,c=document.body.clientWidth;if(e.top<0||e.top+a>u)if("center"===o.vertical)e.top=t[r.vertical]>u/2?Math.max(0,u-a):0,e.maxHeight=Math.min(a,u);else if(t[r.vertical]>u/2){const n=Math.min(u,"center"===r.vertical?t.center:r.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,n),e.top=Math.max(0,n-a)}else e.top=Math.max(0,"center"===r.vertical?t.center:r.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,u-e.top);if(e.left<0||e.left+s>c)if(e.maxWidth=Math.min(s,c),"middle"===o.horizontal)e.left=t[r.horizontal]>c/2?Math.max(0,c-s):0;else if(t[r.horizontal]>c/2){const n=Math.min(c,"middle"===r.horizontal?t.middle:r.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(s,n),e.left=Math.max(0,n-e.maxWidth)}else e.left=Math.max(0,"middle"===r.horizontal?t.middle:r.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(s,c-e.left)}["left","middle","right"].forEach((e=>{u[`${e}#ltr`]=e,u[`${e}#rtl`]=e}))},7657:(e,t,n)=>{"use strict";n.d(t,{Bl:()=>o,Jl:()=>l,KR:()=>r,pf:()=>s,vs:()=>a});var i=n(3673);function r(e,t){return void 0!==e&&e()||t}function o(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function a(e,t){return void 0!==e?t.concat(e()):t}function s(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function l(e,t,n,r,o,a){t.key=r+o;const s=(0,i.h)(e,t,n);return!0===o?(0,i.wy)(s,a()):s}},9725:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(4688);function r(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==i.ZP.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}},2547:(e,t,n)=>{"use strict";n.d(t,{Mw:()=>a,Ng:()=>i,YE:()=>o,vh:()=>s,xP:()=>r});const i="_q_",r="_q_t_",o="_q_l_",a="_q_pc_",s="_q_fo_"},7445:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>i,Pf:()=>o,Rb:()=>a});n(71);function i(e){if(Object(e.$parent)===e.$parent)return e.$parent;e=e.$.parent;while(Object(e)===e){if(Object(e.proxy)===e.proxy)return e.proxy;e=e.parent}}function r(e,t){"symbol"===typeof t.type?!0===Array.isArray(t.children)&&t.children.forEach((t=>{r(e,t)})):e.add(t)}function o(e){const t=new Set;return e.forEach((e=>{r(t,e)})),Array.from(t)}function a(e){return void 0!==e.appContext.config.globalProperties.$router}},8400:(e,t,n)=>{"use strict";n.d(t,{OI:()=>s,QA:()=>c,b0:()=>o,np:()=>u,u3:()=>a});n(3610);var i=n(2012);const r=[null,document,document.body,document.scrollingElement,document.documentElement];function o(e,t){let n=(0,i.sb)(t);if(void 0===n){if(void 0===e||null===e)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return r.includes(n)?window:n}function a(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function s(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let l;function u(){if(void 0!==l)return l;const e=document.createElement("p"),t=document.createElement("div");(0,i.iv)(e,{width:"100%",height:"200px"}),(0,i.iv)(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),l=n-r,l}function c(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"])))}},4398:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n(6701);function i(e,t,n=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}},9782:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});n(3610);var i=n(4688),r=(n(71),n(2002)),o=n(4716),a=n(9405);const s=["sm","md","lg","xl"],{passive:l}=o.rU,u=(0,r.Z)({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:o.ZT,setDebounce:o.ZT,install({$q:e,onSSRHydrated:t}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const{visualViewport:n}=window,r=n||window,o=document.scrollingElement||document.documentElement,u=void 0===n||!0===i.Lp.is.mobile?()=>[Math.max(window.innerWidth,o.clientWidth),Math.max(window.innerHeight,o.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-o.clientWidth,n.height*n.scale+window.innerHeight-o.clientHeight],c=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=e=>{const[t,n]=u();if(n!==this.height&&(this.height=n),t!==this.width)this.width=t;else if(!0!==e)return;let i=this.sizes;this.gt.xs=t>=i.sm,this.gt.sm=t>=i.md,this.gt.md=t>=i.lg,this.gt.lg=t>=i.xl,this.lt.sm=t<i.sm,this.lt.md=t<i.md,this.lt.lg=t<i.lg,this.lt.xl=t<i.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg,i=(!0===this.xs?"xs":!0===this.sm&&"sm")||!0===this.md&&"md"||!0===this.lg&&"lg"||"xl",i!==this.name&&(!0===c&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${i}`)),this.name=i)};let h,d={},p=16;this.setSizes=e=>{s.forEach((t=>{void 0!==e[t]&&(d[t]=e[t])}))},this.setDebounce=e=>{p=e};const f=()=>{const e=getComputedStyle(document.body);e.getPropertyValue("--q-size-sm")&&s.forEach((t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)})),this.setSizes=e=>{s.forEach((t=>{e[t]&&(this.sizes[t]=e[t])})),this.__update(!0)},this.setDebounce=e=>{void 0!==h&&r.removeEventListener("resize",h,l),h=e>0?(0,a.Z)(this.__update,e):this.__update,r.addEventListener("resize",h,l)},this.setDebounce(p),Object.keys(d).length>0?(this.setSizes(d),d=void 0):this.__update(),!0===c&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===i.uX.value?t.push(f):f()}});n(5363);const c=(0,r.Z)({isActive:!1,mode:!1},{__media:void 0,set(e){c.mode=e,"auto"===e?(void 0===c.__media&&(c.__media=window.matchMedia("(prefers-color-scheme: dark)"),c.__updateMedia=()=>{c.set("auto")},c.__media.addListener(c.__updateMedia)),e=c.__media.matches):void 0!==c.__media&&(c.__media.removeListener(c.__updateMedia),c.__media=void 0),c.isActive=!0===e,document.body.classList.remove("body--"+(!0===e?"light":"dark")),document.body.classList.add("body--"+(!0===e?"dark":"light"))},toggle(){c.set(!1===c.isActive)},install({$q:e,onSSRHydrated:t,ssrContext:n}){const{dark:r}=e.config;if(e.dark=this,!0===this.__installed&&void 0===r)return;this.isActive=!0===r;const o=void 0!==r&&r;if(!0===i.uX.value){const e=e=>{this.__fromSSR=e},n=this.set;this.set=e,e(o),t.push((()=>{this.set=n,this.set(this.__fromSSR)}))}else this.set(o)}}),h=c;var d=n(6583),p=n(9111),f=n(4398),g=n(1436);function v(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function y({is:e,has:t,within:n},i){const r=[!0===e.desktop?"desktop":"mobile",(!1===t.touch?"no-":"")+"touch"];if(!0===e.mobile){const t=v(e);void 0!==t&&r.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;r.push(t),r.push("native-mobile"),!0!==e.ios||void 0!==i[t]&&!1===i[t].iosStatusBarPadding||r.push("q-ios-padding")}else!0===e.electron?r.push("electron"):!0===e.bex&&r.push("bex");return!0===n.iframe&&r.push("within-iframe"),r}function m(){const e=document.body.className;let t=e;void 0!==i.aG&&(t=t.replace("desktop","platform-ios mobile")),!0===i.Lp.has.touch&&(t=t.replace("no-touch","touch")),!0===i.Lp.within.iframe&&(t+=" within-iframe"),e!==t&&(document.body.className=t)}function x(e){for(const t in e)(0,f.Z)(t,e[t])}const _={install(e){if(!0!==this.__installed){if(!0===i.uX.value)m();else{const{$q:t}=e;void 0!==t.config.brand&&x(t.config.brand);const n=y(i.Lp,t.config);document.body.classList.add.apply(document.body.classList,n)}!0===i.Lp.is.ios&&document.body.addEventListener("touchstart",o.ZT),window.addEventListener("keydown",g.ZK,!0)}}};var b=n(9085);const w={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},S=(0,r.Z)({iconMapFn:null,__icons:{}},{set(e,t){const n={...e,rtl:!0===e.rtl};n.set=S.set,Object.assign(S.__icons,n)},install({$q:e,iconSet:t,ssrContext:n}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,(0,b.g)(e,"iconMapFn",(()=>this.iconMapFn),(e=>{this.iconMapFn=e})),!0===this.__installed?void 0!==t&&this.set(t):this.set(t||w)}}),M=S;var C=n(2547),I=n(5578),T=n(782);const k=[i.ZP,_,h,u,d.Z,p.Z,M];function A(e,t){t.forEach((t=>{t.install(e),t.__installed=!0}))}function D(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(C.Ng,n.$q),A(n,k),void 0!==t.components&&Object.values(t.components).forEach((t=>{!0===(0,T.Kn)(t)&&void 0!==t.name&&e.component(t.name,t)})),void 0!==t.directives&&Object.values(t.directives).forEach((t=>{!0===(0,T.Kn)(t)&&void 0!==t.name&&e.directive(t.name,t)})),void 0!==t.plugins&&A(n,Object.values(t.plugins).filter((e=>"function"===typeof e.install&&!1===k.includes(e)))),!0===i.uX.value&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach((e=>{e()})),n.$q.onSSRHydrated=()=>{}})}const L=function(e,t={}){const n={version:"2.7.7"};!1===I.Uf?(void 0!==t.config&&Object.assign(I.w6,t.config),n.config={...I.w6},(0,I.tP)()):n.config=t.config||{},D(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},P={version:"2.7.7",install:L,lang:p.Z,iconSet:M}},392:(e,t,n)=>{var i=n(419),r=n(3353),o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not a function")}},2722:(e,t,n)=>{var i=n(7593),r=n(3353),o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not a constructor")}},8248:(e,t,n)=>{var i=n(419),r=String,o=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},2852:(e,t,n)=>{var i=n(854),r=n(1074),o=n(928).f,a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},6412:(e,t,n)=>{"use strict";var i=n(1021).charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},2827:(e,t,n)=>{var i=n(7673),r=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw r("Incorrect invocation")}},7950:(e,t,n)=>{var i=n(776),r=String,o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not an object")}},6257:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},683:(e,t,n)=>{"use strict";var i,r,o,a=n(6257),s=n(9631),l=n(7358),u=n(419),c=n(776),h=n(7322),d=n(5976),p=n(3353),f=n(1904),g=n(3460),v=n(928).f,y=n(7673),m=n(4945),x=n(6184),_=n(854),b=n(6862),w=n(7624),S=w.enforce,M=w.get,C=l.Int8Array,I=C&&C.prototype,T=l.Uint8ClampedArray,k=T&&T.prototype,A=C&&m(C),D=I&&m(I),L=Object.prototype,P=l.TypeError,O=_("toStringTag"),R=b("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",N=a&&!!x&&"Opera"!==d(l.opera),B=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},V=function(e){if(!c(e))return!1;var t=d(e);return"DataView"===t||h(F,t)||h(z,t)},H=function(e){var t=m(e);if(c(t)){var n=M(t);return n&&h(n,E)?n[E]:H(t)}},q=function(e){if(!c(e))return!1;var t=d(e);return h(F,t)||h(z,t)},G=function(e){if(q(e))return e;throw P("Target is not a typed array")},W=function(e){if(u(e)&&(!x||y(A,e)))return e;throw P(p(e)+" is not a typed array constructor")},U=function(e,t,n,i){if(s){if(n)for(var r in F){var o=l[r];if(o&&h(o.prototype,e))try{delete o.prototype[e]}catch(a){try{o.prototype[e]=t}catch(u){}}}D[e]&&!n||g(D,e,n?t:N&&I[e]||t,i)}},j=function(e,t,n){var i,r;if(s){if(x){if(n)for(i in F)if(r=l[i],r&&h(r,e))try{delete r[e]}catch(o){}if(A[e]&&!n)return;try{return g(A,e,n?t:N&&A[e]||t)}catch(o){}}for(i in F)r=l[i],!r||r[e]&&!n||g(r,e,t)}};for(i in F)r=l[i],o=r&&r.prototype,o?S(o)[E]=r:N=!1;for(i in z)r=l[i],o=r&&r.prototype,o&&(S(o)[E]=r);if((!N||!u(A)||A===Function.prototype)&&(A=function(){throw P("Incorrect invocation")},N))for(i in F)l[i]&&x(l[i],A);if((!N||!D||D===L)&&(D=A.prototype,N))for(i in F)l[i]&&x(l[i].prototype,D);if(N&&m(k)!==D&&x(k,D),s&&!h(D,O))for(i in B=!0,v(D,O,{get:function(){return c(this)?this[R]:void 0}}),F)l[i]&&f(l[i],R,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:B&&R,aTypedArray:G,aTypedArrayConstructor:W,exportTypedArrayMethod:U,exportTypedArrayStaticMethod:j,getTypedArrayConstructor:H,isView:V,isTypedArray:q,TypedArray:A,TypedArrayPrototype:D}},62:(e,t,n)=>{"use strict";var i=n(7358),r=n(1890),o=n(9631),a=n(6257),s=n(7961),l=n(1904),u=n(6703),c=n(6400),h=n(2827),d=n(1860),p=n(4068),f=n(833),g=n(8830),v=n(4945),y=n(6184),m=n(1454).f,x=n(928).f,_=n(5786),b=n(5771),w=n(1061),S=n(7624),M=s.PROPER,C=s.CONFIGURABLE,I=S.get,T=S.set,k="ArrayBuffer",A="DataView",D="prototype",L="Wrong length",P="Wrong index",O=i[k],R=O,E=R&&R[D],N=i[A],B=N&&N[D],F=Object.prototype,z=i.Array,V=i.RangeError,H=r(_),q=r([].reverse),G=g.pack,W=g.unpack,U=function(e){return[255&e]},j=function(e){return[255&e,e>>8&255]},Z=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},$=function(e){return G(e,23,4)},X=function(e){return G(e,52,8)},K=function(e,t){x(e[D],t,{get:function(){return I(this)[t]}})},J=function(e,t,n,i){var r=f(n),o=I(e);if(r+t>o.byteLength)throw V(P);var a=I(o.buffer).bytes,s=r+o.byteOffset,l=b(a,s,s+t);return i?l:q(l)},Q=function(e,t,n,i,r,o){var a=f(n),s=I(e);if(a+t>s.byteLength)throw V(P);for(var l=I(s.buffer).bytes,u=a+s.byteOffset,c=i(+r),h=0;h<t;h++)l[u+h]=c[o?h:t-h-1]};if(a){var ee=M&&O.name!==k;if(c((function(){O(1)}))&&c((function(){new O(-1)}))&&!c((function(){return new O,new O(1.5),new O(NaN),ee&&!C})))ee&&C&&l(O,"name",k);else{R=function(e){return h(this,E),new O(f(e))},R[D]=E;for(var te,ne=m(O),ie=0;ne.length>ie;)(te=ne[ie++])in R||l(R,te,O[te]);E.constructor=R}y&&v(B)!==F&&y(B,F);var re=new N(new R(2)),oe=r(B.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||u(B,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else R=function(e){h(this,E);var t=f(e);T(this,{bytes:H(z(t),0),byteLength:t}),o||(this.byteLength=t)},E=R[D],N=function(e,t,n){h(this,B),h(e,E);var i=I(e).byteLength,r=d(t);if(r<0||r>i)throw V("Wrong offset");if(n=void 0===n?i-r:p(n),r+n>i)throw V(L);T(this,{buffer:e,byteLength:n,byteOffset:r}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=r)},B=N[D],o&&(K(R,"byteLength"),K(N,"buffer"),K(N,"byteLength"),K(N,"byteOffset")),u(B,{getInt8:function(e){return J(this,1,e)[0]<<24>>24},getUint8:function(e){return J(this,1,e)[0]},getInt16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Y(J(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Y(J(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return W(J(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return W(J(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Q(this,1,e,U,t)},setUint8:function(e,t){Q(this,1,e,U,t)},setInt16:function(e,t){Q(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Q(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Q(this,4,e,Z,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Q(this,4,e,Z,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Q(this,4,e,$,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Q(this,8,e,X,t,arguments.length>2?arguments[2]:void 0)}});w(R,k),w(N,A),e.exports={ArrayBuffer:R,DataView:N}},5786:(e,t,n)=>{"use strict";var i=n(7475),r=n(1801),o=n(6042);e.exports=function(e){var t=i(this),n=o(t),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);while(u>s)t[s++]=e;return t}},2029:(e,t,n)=>{"use strict";var i=n(422),r=n(3577),o=n(7475),a=n(9234),s=n(1558),l=n(7593),u=n(6042),c=n(6496),h=n(2151),d=n(7143),p=Array;e.exports=function(e){var t=o(e),n=l(this),f=arguments.length,g=f>1?arguments[1]:void 0,v=void 0!==g;v&&(g=i(g,f>2?arguments[2]:void 0));var y,m,x,_,b,w,S=d(t),M=0;if(!S||this===p&&s(S))for(y=u(t),m=n?new this(y):p(y);y>M;M++)w=v?g(t[M],M):t[M],c(m,M,w);else for(_=h(t,S),b=_.next,m=n?new this:[];!(x=r(b,_)).done;M++)w=v?a(_,g,[x.value,M],!0):x.value,c(m,M,w);return m.length=M,m}},6963:(e,t,n)=>{var i=n(7120),r=n(1801),o=n(6042),a=function(e){return function(t,n,a){var s,l=i(t),u=o(l),c=r(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},5416:(e,t,n)=>{var i=n(422),r=n(2985),o=n(7475),a=n(6042),s=function(e){var t=1==e;return function(n,s,l){var u,c,h=o(n),d=r(h),p=i(s,l),f=a(d);while(f-- >0)if(u=d[f],c=p(u,f,h),c)switch(e){case 0:return u;case 1:return f}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},2099:(e,t,n)=>{var i=n(422),r=n(1890),o=n(2985),a=n(7475),s=n(6042),l=n(6340),u=r([].push),c=function(e){var t=1==e,n=2==e,r=3==e,c=4==e,h=6==e,d=7==e,p=5==e||h;return function(f,g,v,y){for(var m,x,_=a(f),b=o(_),w=i(g,v),S=s(b),M=0,C=y||l,I=t?C(f,S):n||d?C(f,0):void 0;S>M;M++)if((p||M in b)&&(m=b[M],x=w(m,M,_),e))if(t)I[M]=x;else if(x)switch(e){case 3:return!0;case 5:return m;case 6:return M;case 2:u(I,m)}else switch(e){case 4:return!1;case 7:u(I,m)}return h?-1:r||c?c:I}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},5771:(e,t,n)=>{var i=n(1801),r=n(6042),o=n(6496),a=Array,s=Math.max;e.exports=function(e,t,n){for(var l=r(e),u=i(t,l),c=i(void 0===n?l:n,l),h=a(s(c-u,0)),d=0;u<c;u++,d++)o(h,d,e[u]);return h.length=d,h}},6534:(e,t,n)=>{var i=n(5771),r=Math.floor,o=function(e,t){var n=e.length,l=r(n/2);return n<8?a(e,t):s(e,o(i(e,0,l),t),o(i(e,l),t),t)},a=function(e,t){var n,i,r=e.length,o=1;while(o<r){i=o,n=e[o];while(i&&t(e[i-1],n)>0)e[i]=e[--i];i!==o++&&(e[i]=n)}return e},s=function(e,t,n,i){var r=t.length,o=n.length,a=0,s=0;while(a<r||s<o)e[a+s]=a<r&&s<o?i(t[a],n[s])<=0?t[a++]:n[s++]:a<r?t[a++]:n[s++];return e};e.exports=o},330:(e,t,n)=>{var i=n(6894),r=n(7593),o=n(776),a=n(854),s=a("species"),l=Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,r(t)&&(t===l||i(t.prototype))?t=void 0:o(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?l:t}},6340:(e,t,n)=>{var i=n(330);e.exports=function(e,t){return new(i(e))(0===t?0:t)}},9234:(e,t,n)=>{var i=n(7950),r=n(8105);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(a){r(e,"throw",a)}}},8047:(e,t,n)=>{var i=n(854),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},5173:(e,t,n)=>{var i=n(1890),r=i({}.toString),o=i("".slice);e.exports=function(e){return o(r(e),8,-1)}},5976:(e,t,n)=>{var i=n(5705),r=n(419),o=n(5173),a=n(854),s=a("toStringTag"),l=Object,u="Arguments"==o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=i?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=l(e),s))?n:u?o(t):"Object"==(i=o(t))&&r(t.callee)?"Arguments":i}},767:(e,t,n)=>{var i=n(1890),r=Error,o=i("".replace),a=function(e){return String(r(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)while(t--)e=o(e,s,"");return e}},8438:(e,t,n)=>{var i=n(7322),r=n(7764),o=n(2404),a=n(928);e.exports=function(e,t,n){for(var s=r(t),l=a.f,u=o.f,c=0;c<s.length;c++){var h=s[c];i(e,h)||n&&i(n,h)||l(e,h,u(t,h))}}},123:(e,t,n)=>{var i=n(6400);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5912:(e,t,n)=>{"use strict";var i=n(4848).IteratorPrototype,r=n(1074),o=n(5442),a=n(1061),s=n(2184),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=r(i,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},1904:(e,t,n)=>{var i=n(9631),r=n(928),o=n(5442);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},5442:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6496:(e,t,n)=>{"use strict";var i=n(8618),r=n(928),o=n(5442);e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,o(0,n)):e[a]=n}},9468:(e,t,n)=>{var i=n(9843),r=n(928);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},3460:(e,t,n)=>{var i=n(419),r=n(928),o=n(9843),a=n(1615);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(i(n)&&o(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(c){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6703:(e,t,n)=>{var i=n(3460);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},1615:(e,t,n)=>{var i=n(7358),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},8810:(e,t,n)=>{"use strict";var i=n(8934),r=n(3577),o=n(6692),a=n(7961),s=n(419),l=n(5912),u=n(4945),c=n(6184),h=n(1061),d=n(1904),p=n(3460),f=n(854),g=n(2184),v=n(4848),y=a.PROPER,m=a.CONFIGURABLE,x=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,b=f("iterator"),w="keys",S="values",M="entries",C=function(){return this};e.exports=function(e,t,n,a,f,v,I){l(n,t,a);var T,k,A,D=function(e){if(e===f&&E)return E;if(!_&&e in O)return O[e];switch(e){case w:return function(){return new n(this,e)};case S:return function(){return new n(this,e)};case M:return function(){return new n(this,e)}}return function(){return new n(this)}},L=t+" Iterator",P=!1,O=e.prototype,R=O[b]||O["@@iterator"]||f&&O[f],E=!_&&R||D(f),N="Array"==t&&O.entries||R;if(N&&(T=u(N.call(new e)),T!==Object.prototype&&T.next&&(o||u(T)===x||(c?c(T,x):s(T[b])||p(T,b,C)),h(T,L,!0,!0),o&&(g[L]=C))),y&&f==S&&R&&R.name!==S&&(!o&&m?d(O,"name",S):(P=!0,E=function(){return r(R,this)})),f)if(k={values:D(S),keys:v?E:D(w),entries:D(M)},I)for(A in k)(_||P||!(A in O))&&p(O,A,k[A]);else i({target:t,proto:!0,forced:_||P},k);return o&&!I||O[b]===E||p(O,b,E,{name:f}),g[t]=E,k}},9631:(e,t,n)=>{var i=n(6400);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5354:(e,t,n)=>{var i=n(7358),r=n(776),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},4296:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8753:(e,t,n)=>{var i=n(5354),r=i("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},1544:(e,t,n)=>{var i=n(9173),r=i.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},8979:(e,t,n)=>{var i=n(9173);e.exports=/MSIE|Trident/.test(i)},9173:(e,t,n)=>{var i=n(9694);e.exports=i("navigator","userAgent")||""},5068:(e,t,n)=>{var i,r,o=n(7358),a=n(9173),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=c.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),e.exports=r},1513:(e,t,n)=>{var i=n(9173),r=i.match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},2875:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6429:(e,t,n)=>{var i=n(6400),r=n(5442);e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},8934:(e,t,n)=>{var i=n(7358),r=n(2404).f,o=n(1904),a=n(3460),s=n(1615),l=n(8438),u=n(4389);e.exports=function(e,t){var n,c,h,d,p,f,g=e.target,v=e.global,y=e.stat;if(c=v?i:y?i[g]||s(g,{}):(i[g]||{}).prototype,c)for(h in t){if(p=t[h],e.dontCallGetSet?(f=r(c,h),d=f&&f.value):d=c[h],n=u(v?h:g+(y?".":"#")+h,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(c,h,p,e)}}},6400:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},9529:(e,t,n)=>{"use strict";n(7280);var i=n(1890),r=n(3460),o=n(4348),a=n(6400),s=n(854),l=n(1904),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,h){var d=s(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),f=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!f||n){var g=i(/./[d]),v=t(d,""[e],(function(e,t,n,r,a){var s=i(e),l=t.exec;return l===o||l===c.exec?p&&!a?{done:!0,value:g(t,n,r)}:{done:!0,value:s(n,t,r)}:{done:!1}}));r(String.prototype,e,v[0]),r(c,d,v[1])}h&&l(c[d],"sham",!0)}},4157:(e,t,n)=>{var i=n(8427),r=Function.prototype,o=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},422:(e,t,n)=>{var i=n(1890),r=n(392),o=n(8427),a=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},8427:(e,t,n)=>{var i=n(6400);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3577:(e,t,n)=>{var i=n(8427),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},7961:(e,t,n)=>{var i=n(9631),r=n(7322),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!i||i&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},1890:(e,t,n)=>{var i=n(8427),r=Function.prototype,o=r.bind,a=r.call,s=i&&o.bind(a,a);e.exports=i?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},9694:(e,t,n)=>{var i=n(7358),r=n(419),o=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e]):i[e]&&i[e][t]}},7143:(e,t,n)=>{var i=n(5976),r=n(2344),o=n(2184),a=n(854),s=a("iterator");e.exports=function(e){if(void 0!=e)return r(e,s)||r(e,"@@iterator")||o[i(e)]}},2151:(e,t,n)=>{var i=n(3577),r=n(392),o=n(7950),a=n(3353),s=n(7143),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return o(i(n,e));throw l(a(e)+" is not iterable")}},2344:(e,t,n)=>{var i=n(392);e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},8716:(e,t,n)=>{var i=n(1890),r=n(7475),o=Math.floor,a=i("".charAt),s=i("".replace),l=i("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,h,d){var p=n+e.length,f=i.length,g=c;return void 0!==h&&(h=r(h),g=u),s(d,g,(function(r,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":u=h[l(s,1,-1)];break;default:var c=+s;if(0===c)return r;if(c>f){var d=o(c/10);return 0===d?r:d<=f?void 0===i[d-1]?a(s,1):i[d-1]+a(s,1):r}u=i[c-1]}return void 0===u?"":u}))}},7358:(e,t,n)=>{var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},7322:(e,t,n)=>{var i=n(1890),r=n(7475),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},600:e=>{e.exports={}},9970:(e,t,n)=>{var i=n(9694);e.exports=i("document","documentElement")},7021:(e,t,n)=>{var i=n(9631),r=n(6400),o=n(5354);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8830:e=>{var t=Array,n=Math.abs,i=Math.pow,r=Math.floor,o=Math.log,a=Math.LN2,s=function(e,s,l){var u,c,h,d=t(l),p=8*l-s-1,f=(1<<p)-1,g=f>>1,v=23===s?i(2,-24)-i(2,-77):0,y=e<0||0===e&&1/e<0?1:0,m=0;e=n(e),e!=e||e===1/0?(c=e!=e?1:0,u=f):(u=r(o(e)/a),h=i(2,-u),e*h<1&&(u--,h*=2),e+=u+g>=1?v/h:v*i(2,1-g),e*h>=2&&(u++,h/=2),u+g>=f?(c=0,u=f):u+g>=1?(c=(e*h-1)*i(2,s),u+=g):(c=e*i(2,g-1)*i(2,s),u=0));while(s>=8)d[m++]=255&c,c/=256,s-=8;u=u<<s|c,p+=s;while(p>0)d[m++]=255&u,u/=256,p-=8;return d[--m]|=128*y,d},l=function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<<o)-1,s=a>>1,l=o-7,u=r-1,c=e[u--],h=127&c;c>>=7;while(l>0)h=256*h+e[u--],l-=8;n=h&(1<<-l)-1,h>>=-l,l+=t;while(l>0)n=256*n+e[u--],l-=8;if(0===h)h=1-s;else{if(h===a)return n?NaN:c?-1/0:1/0;n+=i(2,t),h-=s}return(c?-1:1)*n*i(2,h-t)};e.exports={pack:s,unpack:l}},2985:(e,t,n)=>{var i=n(1890),r=n(6400),o=n(5173),a=Object,s=i("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},9941:(e,t,n)=>{var i=n(419),r=n(776),o=n(6184);e.exports=function(e,t,n){var a,s;return o&&i(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},3725:(e,t,n)=>{var i=n(1890),r=n(419),o=n(1089),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},5684:(e,t,n)=>{var i=n(776),r=n(1904);e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},7624:(e,t,n)=>{var i,r,o,a=n(9262),s=n(7358),l=n(1890),u=n(776),c=n(1904),h=n(7322),d=n(1089),p=n(203),f=n(600),g="Object already initialized",v=s.TypeError,y=s.WeakMap,m=function(e){return o(e)?r(e):i(e,{})},x=function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var _=d.state||(d.state=new y),b=l(_.get),w=l(_.has),S=l(_.set);i=function(e,t){if(w(_,e))throw new v(g);return t.facade=e,S(_,e,t),t},r=function(e){return b(_,e)||{}},o=function(e){return w(_,e)}}else{var M=p("state");f[M]=!0,i=function(e,t){if(h(e,M))throw new v(g);return t.facade=e,c(e,M,t),t},r=function(e){return h(e,M)?e[M]:{}},o=function(e){return h(e,M)}}e.exports={set:i,get:r,has:o,enforce:m,getterFor:x}},1558:(e,t,n)=>{var i=n(854),r=n(2184),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},6894:(e,t,n)=>{var i=n(5173);e.exports=Array.isArray||function(e){return"Array"==i(e)}},419:e=>{e.exports=function(e){return"function"==typeof e}},7593:(e,t,n)=>{var i=n(1890),r=n(6400),o=n(419),a=n(5976),s=n(9694),l=n(3725),u=function(){},c=[],h=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=i(d.exec),f=!d.exec(u),g=function(e){if(!o(e))return!1;try{return h(u,c,e),!0}catch(t){return!1}},v=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(d,l(e))}catch(t){return!0}};v.sham=!0,e.exports=!h||r((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?v:g},4389:(e,t,n)=>{var i=n(6400),r=n(419),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(r(t)?i(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},2818:(e,t,n)=>{var i=n(776),r=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&r(e)===e}},776:(e,t,n)=>{var i=n(419);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},6692:e=>{e.exports=!1},410:(e,t,n)=>{var i=n(9694),r=n(419),o=n(7673),a=n(8476),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&o(t.prototype,s(e))}},8105:(e,t,n)=>{var i=n(3577),r=n(7950),o=n(2344);e.exports=function(e,t,n){var a,s;r(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=i(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return r(a),n}},4848:(e,t,n)=>{"use strict";var i,r,o,a=n(6400),s=n(419),l=n(1074),u=n(4945),c=n(3460),h=n(854),d=n(6692),p=h("iterator"),f=!1;[].keys&&(o=[].keys(),"next"in o?(r=u(u(o)),r!==Object.prototype&&(i=r)):f=!0);var g=void 0==i||a((function(){var e={};return i[p].call(e)!==e}));g?i={}:d&&(i=l(i)),s(i[p])||c(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:f}},2184:e=>{e.exports={}},6042:(e,t,n)=>{var i=n(4068);e.exports=function(e){return i(e.length)}},9843:(e,t,n)=>{var i=n(6400),r=n(419),o=n(7322),a=n(9631),s=n(7961).CONFIGURABLE,l=n(3725),u=n(7624),c=u.enforce,h=u.get,d=Object.defineProperty,p=a&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),f=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&o(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=c(e);return o(i,"source")||(i.source=f.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return r(this)&&h(this).source||l(this)}),"toString")},1243:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},7529:(e,t,n)=>{var i=n(5068),r=n(6400);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},6595:(e,t,n)=>{var i=n(6400),r=n(854),o=n(6692),a=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},9262:(e,t,n)=>{var i=n(7358),r=n(419),o=n(3725),a=i.WeakMap;e.exports=r(a)&&/native code/.test(o(a))},7598:(e,t,n)=>{var i=n(4481);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},8439:(e,t,n)=>{"use strict";var i=n(9631),r=n(1890),o=n(3577),a=n(6400),s=n(9158),l=n(4199),u=n(5604),c=n(7475),h=n(2985),d=Object.assign,p=Object.defineProperty,f=r([].concat);e.exports=!d||a((function(){if(i&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||s(d({},t)).join("")!=r}))?function(e,t){var n=c(e),r=arguments.length,a=1,d=l.f,p=u.f;while(r>a){var g,v=h(arguments[a++]),y=d?f(s(v),d(v)):s(v),m=y.length,x=0;while(m>x)g=y[x++],i&&!o(p,v,g)||(n[g]=v[g])}return n}:d},1074:(e,t,n)=>{var i,r=n(7950),o=n(3605),a=n(2875),s=n(600),l=n(9970),u=n(5354),c=n(203),h=">",d="<",p="prototype",f="script",g=c("IE_PROTO"),v=function(){},y=function(e){return d+f+h+e+d+"/"+f+h},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},x=function(){var e,t=u("iframe"),n="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},_=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}_="undefined"!=typeof document?document.domain&&i?m(i):x():m(i);var e=a.length;while(e--)delete _[p][a[e]];return _()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[p]=r(e),n=new v,v[p]=null,n[g]=e):n=_(),void 0===t?n:o.f(n,t)}},3605:(e,t,n)=>{var i=n(9631),r=n(5953),o=n(928),a=n(7950),s=n(7120),l=n(9158);t.f=i&&!r?Object.defineProperties:function(e,t){a(e);var n,i=s(t),r=l(t),u=r.length,c=0;while(u>c)o.f(e,n=r[c++],i[n]);return e}},928:(e,t,n)=>{var i=n(9631),r=n(7021),o=n(5953),a=n(7950),s=n(8618),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";t.f=i?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=c(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:h in n?n[h]:i[h],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return u(e,t,n)}catch(i){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},2404:(e,t,n)=>{var i=n(9631),r=n(3577),o=n(5604),a=n(5442),s=n(7120),l=n(8618),u=n(7322),c=n(7021),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=s(e),t=l(t),c)try{return h(e,t)}catch(n){}if(u(e,t))return a(!r(o.f,e,t),e[t])}},1454:(e,t,n)=>{var i=n(1587),r=n(2875),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},4199:(e,t)=>{t.f=Object.getOwnPropertySymbols},4945:(e,t,n)=>{var i=n(7322),r=n(419),o=n(7475),a=n(203),s=n(123),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},7673:(e,t,n)=>{var i=n(1890);e.exports=i({}.isPrototypeOf)},1587:(e,t,n)=>{var i=n(1890),r=n(7322),o=n(7120),a=n(6963).indexOf,s=n(600),l=i([].push);e.exports=function(e,t){var n,i=o(e),u=0,c=[];for(n in i)!r(s,n)&&r(i,n)&&l(c,n);while(t.length>u)r(i,n=t[u++])&&(~a(c,n)||l(c,n));return c}},9158:(e,t,n)=>{var i=n(1587),r=n(2875);e.exports=Object.keys||function(e){return i(e,r)}},5604:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},6184:(e,t,n)=>{var i=n(1890),r=n(7950),o=n(8248);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),t?e(n,i):n.__proto__=i,n}}():void 0)},9308:(e,t,n)=>{var i=n(3577),r=n(419),o=n(776),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!o(s=i(n,e)))return s;if(r(n=e.valueOf)&&!o(s=i(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!o(s=i(n,e)))return s;throw a("Can't convert object to primitive value")}},7764:(e,t,n)=>{var i=n(9694),r=n(1890),o=n(1454),a=n(4199),s=n(7950),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},4836:(e,t,n)=>{var i=n(928).f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},9395:(e,t,n)=>{var i=n(3577),r=n(7950),o=n(419),a=n(5173),s=n(4348),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=i(n,e,t);return null!==u&&r(u),u}if("RegExp"===a(e))return i(s,e,t);throw l("RegExp#exec called on incompatible receiver")}},4348:(e,t,n)=>{"use strict";var i=n(3577),r=n(1890),o=n(4481),a=n(136),s=n(2351),l=n(1586),u=n(1074),c=n(7624).get,h=n(5337),d=n(1442),p=l("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,g=f,v=r("".charAt),y=r("".indexOf),m=r("".replace),x=r("".slice),_=function(){var e=/a/,t=/b*/g;return i(f,e,"a"),i(f,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),b=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=_||w||b||h||d;S&&(g=function(e){var t,n,r,s,l,h,d,S=this,M=c(S),C=o(e),I=M.raw;if(I)return I.lastIndex=S.lastIndex,t=i(g,I,C),S.lastIndex=I.lastIndex,t;var T=M.groups,k=b&&S.sticky,A=i(a,S),D=S.source,L=0,P=C;if(k&&(A=m(A,"y",""),-1===y(A,"g")&&(A+="g"),P=x(C,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(C,S.lastIndex-1))&&(D="(?: "+D+")",P=" "+P,L++),n=new RegExp("^(?:"+D+")",A)),w&&(n=new RegExp("^"+D+"$(?!\\s)",A)),_&&(r=S.lastIndex),s=i(f,k?n:S,P),k?s?(s.input=x(s.input,L),s[0]=x(s[0],L),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:_&&s&&(S.lastIndex=S.global?s.index+s[0].length:r),w&&s&&s.length>1&&i(p,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&T)for(s.groups=h=u(null),l=0;l<T.length;l++)d=T[l],h[d[0]]=s[d[1]];return s}),e.exports=g},136:(e,t,n)=>{"use strict";var i=n(7950);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},2351:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp,a=i((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s=a||i((function(){return!o("a","y").sticky})),l=a||i((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:a}},5337:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp;e.exports=i((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},1442:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp;e.exports=i((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},7933:e=>{var t=TypeError;e.exports=function(e){if(void 0==e)throw t("Can't call method on "+e);return e}},4114:(e,t,n)=>{"use strict";var i=n(9694),r=n(928),o=n(854),a=n(9631),s=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},1061:(e,t,n)=>{var i=n(928).f,r=n(7322),o=n(854),a=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,a)&&i(e,a,{configurable:!0,value:t})}},203:(e,t,n)=>{var i=n(1586),r=n(6862),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},1089:(e,t,n)=>{var i=n(7358),r=n(1615),o="__core-js_shared__",a=i[o]||r(o,{});e.exports=a},1586:(e,t,n)=>{var i=n(6692),r=n(1089);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},1021:(e,t,n)=>{var i=n(1890),r=n(1860),o=n(4481),a=n(7933),s=i("".charAt),l=i("".charCodeAt),u=i("".slice),c=function(e){return function(t,n){var i,c,h=o(a(t)),d=r(n),p=h.length;return d<0||d>=p?e?"":void 0:(i=l(h,d),i<55296||i>56319||d+1===p||(c=l(h,d+1))<56320||c>57343?e?s(h,d):i:e?u(h,d,d+2):c-56320+(i-55296<<10)+65536)}};e.exports={codeAt:c(!1),charAt:c(!0)}},5253:(e,t,n)=>{"use strict";var i=n(1890),r=2147483647,o=36,a=1,s=26,l=38,u=700,c=72,h=128,d="-",p=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,g="Overflow: input needs wider integers to process",v=o-a,y=RangeError,m=i(f.exec),x=Math.floor,_=String.fromCharCode,b=i("".charCodeAt),w=i([].join),S=i([].push),M=i("".replace),C=i("".split),I=i("".toLowerCase),T=function(e){var t=[],n=0,i=e.length;while(n<i){var r=b(e,n++);if(r>=55296&&r<=56319&&n<i){var o=b(e,n++);56320==(64512&o)?S(t,((1023&r)<<10)+(1023&o)+65536):(S(t,r),n--)}else S(t,r)}return t},k=function(e){return e+22+75*(e<26)},A=function(e,t,n){var i=0;e=n?x(e/u):e>>1,e+=x(e/t);while(e>v*s>>1)e=x(e/v),i+=o;return x(i+(v+1)*e/(e+l))},D=function(e){var t=[];e=T(e);var n,i,l=e.length,u=h,p=0,f=c;for(n=0;n<e.length;n++)i=e[n],i<128&&S(t,_(i));var v=t.length,m=v;v&&S(t,d);while(m<l){var b=r;for(n=0;n<e.length;n++)i=e[n],i>=u&&i<b&&(b=i);var M=m+1;if(b-u>x((r-p)/M))throw y(g);for(p+=(b-u)*M,u=b,n=0;n<e.length;n++){if(i=e[n],i<u&&++p>r)throw y(g);if(i==u){var C=p,I=o;while(1){var D=I<=f?a:I>=f+s?s:I-f;if(C<D)break;var L=C-D,P=o-D;S(t,_(k(D+L%P))),C=x(L/P),I+=o}S(t,_(k(C))),f=A(p,M,m==v),p=0,m++}}p++,u++}return w(t,"")};e.exports=function(e){var t,n,i=[],r=C(M(I(e),f,"."),".");for(t=0;t<r.length;t++)n=r[t],S(i,m(p,n)?"xn--"+D(n):n);return w(i,".")}},1801:(e,t,n)=>{var i=n(1860),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},5492:(e,t,n)=>{var i=n(2181),r=TypeError;e.exports=function(e){var t=i(e,"number");if("number"==typeof t)throw r("Can't convert number to bigint");return BigInt(t)}},833:(e,t,n)=>{var i=n(1860),r=n(4068),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw o("Wrong length or index");return n}},7120:(e,t,n)=>{var i=n(2985),r=n(7933);e.exports=function(e){return i(r(e))}},1860:(e,t,n)=>{var i=n(1243);e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},4068:(e,t,n)=>{var i=n(1860),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},7475:(e,t,n)=>{var i=n(7933),r=Object;e.exports=function(e){return r(i(e))}},701:(e,t,n)=>{var i=n(1443),r=RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw r("Wrong offset");return n}},1443:(e,t,n)=>{var i=n(1860),r=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw r("The argument can't be less than 0");return t}},2181:(e,t,n)=>{var i=n(3577),r=n(776),o=n(410),a=n(2344),s=n(9308),l=n(854),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},8618:(e,t,n)=>{var i=n(2181),r=n(410);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},5705:(e,t,n)=>{var i=n(854),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},4481:(e,t,n)=>{var i=n(5976),r=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},3353:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},6968:(e,t,n)=>{"use strict";var i=n(8934),r=n(7358),o=n(3577),a=n(9631),s=n(8689),l=n(683),u=n(62),c=n(2827),h=n(5442),d=n(1904),p=n(2818),f=n(4068),g=n(833),v=n(701),y=n(8618),m=n(7322),x=n(5976),_=n(776),b=n(410),w=n(1074),S=n(7673),M=n(6184),C=n(1454).f,I=n(9401),T=n(2099).forEach,k=n(4114),A=n(928),D=n(2404),L=n(7624),P=n(9941),O=L.get,R=L.set,E=L.enforce,N=A.f,B=D.f,F=Math.round,z=r.RangeError,V=u.ArrayBuffer,H=V.prototype,q=u.DataView,G=l.NATIVE_ARRAY_BUFFER_VIEWS,W=l.TYPED_ARRAY_TAG,U=l.TypedArray,j=l.TypedArrayPrototype,Z=l.aTypedArrayConstructor,Y=l.isTypedArray,$="BYTES_PER_ELEMENT",X="Wrong length",K=function(e,t){Z(e);var n=0,i=t.length,r=new e(i);while(i>n)r[n]=t[n++];return r},J=function(e,t){N(e,t,{get:function(){return O(this)[t]}})},Q=function(e){var t;return S(H,e)||"ArrayBuffer"==(t=x(e))||"SharedArrayBuffer"==t},ee=function(e,t){return Y(e)&&!b(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=y(t),ee(e,t)?h(2,e[t]):B(e,t)},ne=function(e,t,n){return t=y(t),!(ee(e,t)&&_(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};a?(G||(D.f=te,A.f=ne,J(j,"buffer"),J(j,"byteOffset"),J(j,"byteLength"),J(j,"length")),i({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,h="set"+e,p=r[l],y=p,m=y&&y.prototype,x={},b=function(e,t){var n=O(e);return n.view[u](t*a+n.byteOffset,!0)},S=function(e,t,i){var r=O(e);n&&(i=(i=F(i))<0?0:i>255?255:255&i),r.view[h](t*a+r.byteOffset,i,!0)},A=function(e,t){N(e,t,{get:function(){return b(this,t)},set:function(e){return S(this,t,e)},enumerable:!0})};G?s&&(y=t((function(e,t,n,i){return c(e,m),P(function(){return _(t)?Q(t)?void 0!==i?new p(t,v(n,a),i):void 0!==n?new p(t,v(n,a)):new p(t):Y(t)?K(y,t):o(I,y,t):new p(g(t))}(),e,y)})),M&&M(y,U),T(C(p),(function(e){e in y||d(y,e,p[e])})),y.prototype=m):(y=t((function(e,t,n,i){c(e,m);var r,s,l,u=0,h=0;if(_(t)){if(!Q(t))return Y(t)?K(y,t):o(I,y,t);r=t,h=v(n,a);var d=t.byteLength;if(void 0===i){if(d%a)throw z(X);if(s=d-h,s<0)throw z(X)}else if(s=f(i)*a,s+h>d)throw z(X);l=s/a}else l=g(t),s=l*a,r=new V(s);R(e,{buffer:r,byteOffset:h,byteLength:s,length:l,view:new q(r)});while(u<l)A(e,u++)})),M&&M(y,U),m=y.prototype=w(j)),m.constructor!==y&&d(m,"constructor",y),E(m).TypedArrayConstructor=y,W&&d(m,W,l);var D=y!=p;x[l]=y,i({global:!0,constructor:!0,forced:D,sham:!G},x),$ in y||d(y,$,a),$ in m||d(m,$,a),k(l)}):e.exports=function(){}},8689:(e,t,n)=>{var i=n(7358),r=n(6400),o=n(8047),a=n(683).NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;e.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new s(2),1,void 0).length}))},9401:(e,t,n)=>{var i=n(422),r=n(3577),o=n(2722),a=n(7475),s=n(6042),l=n(2151),u=n(7143),c=n(1558),h=n(683).aTypedArrayConstructor;e.exports=function(e){var t,n,d,p,f,g,v=o(this),y=a(e),m=arguments.length,x=m>1?arguments[1]:void 0,_=void 0!==x,b=u(y);if(b&&!c(b)){f=l(y,b),g=f.next,y=[];while(!(p=r(g,f)).done)y.push(p.value)}for(_&&m>2&&(x=i(x,arguments[2])),n=s(y),d=new(h(v))(n),t=0;n>t;t++)d[t]=_?x(y[t],t):y[t];return d}},6862:(e,t,n)=>{var i=n(1890),r=0,o=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+o,36)}},8476:(e,t,n)=>{var i=n(7529);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5953:(e,t,n)=>{var i=n(9631),r=n(6400);e.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6596:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},854:(e,t,n)=>{var i=n(7358),r=n(1586),o=n(7322),a=n(6862),s=n(7529),l=n(8476),u=r("wks"),c=i.Symbol,h=c&&c["for"],d=l?c:c&&c.withoutSetter||a;e.exports=function(e){if(!o(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&o(c,e)?u[e]=c[e]:u[e]=l&&h?h(t):d(t)}return u[e]}},7971:(e,t,n)=>{"use strict";var i=n(9694),r=n(7322),o=n(1904),a=n(7673),s=n(6184),l=n(8438),u=n(4836),c=n(9941),h=n(7598),d=n(5684),p=n(767),f=n(6429),g=n(9631),v=n(6692);e.exports=function(e,t,n,y){var m="stackTraceLimit",x=y?2:1,_=e.split("."),b=_[_.length-1],w=i.apply(null,_);if(w){var S=w.prototype;if(!v&&r(S,"cause")&&delete S.cause,!n)return w;var M=i("Error"),C=t((function(e,t){var n=h(y?t:e,void 0),i=y?new w(e):new w;return void 0!==n&&o(i,"message",n),f&&o(i,"stack",p(i.stack,2)),this&&a(S,this)&&c(i,this,C),arguments.length>x&&d(i,arguments[x]),i}));if(C.prototype=S,"Error"!==b?s?s(C,M):l(C,M,{name:!0}):g&&m in w&&(u(C,w,m),u(C,w,"prepareStackTrace")),l(C,w),!v)try{S.name!==b&&o(S,"name",b),S.constructor=C}catch(I){}return C}}},3610:(e,t,n)=>{"use strict";var i=n(8934),r=n(6963).includes,o=n(6400),a=n(2852),s=o((function(){return!Array(1).includes()}));i({target:"Array",proto:!0,forced:s},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6843:(e,t,n)=>{"use strict";var i=n(7120),r=n(2852),o=n(2184),a=n(7624),s=n(928).f,l=n(8810),u=n(6692),c=n(9631),h="Array Iterator",d=a.set,p=a.getterFor(h);e.exports=l(Array,"Array",(function(e,t){d(this,{type:h,target:i(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");var f=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!u&&c&&"values"!==f.name)try{s(f,"name",{value:"values"})}catch(g){}},6701:(e,t,n)=>{var i=n(8934),r=n(7358),o=n(4157),a=n(7971),s="WebAssembly",l=r[s],u=7!==Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=a(e,t,u),i({global:!0,constructor:!0,arity:1,forced:u},n)},h=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,u),i({target:s,stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return o(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),c("URIError",(function(e){return function(t){return o(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},7280:(e,t,n)=>{"use strict";var i=n(8934),r=n(4348);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},4406:(e,t,n)=>{var i=n(7358),r=n(9631),o=n(9468),a=n(136),s=n(6400),l=i.RegExp,u=l.prototype,c=r&&s((function(){var e=!0;try{l(".","d")}catch(c){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",r=function(e,i){Object.defineProperty(t,e,{get:function(){return n+=i,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)r(a,o[a]);var s=Object.getOwnPropertyDescriptor(u,"flags").get.call(t);return s!==i||n!==i}));c&&o(u,"flags",{configurable:!0,get:a})},839:(e,t,n)=>{"use strict";var i=n(1021).charAt,r=n(4481),o=n(7624),a=n(8810),s="String Iterator",l=o.set,u=o.getterFor(s);a(String,"String",(function(e){l(this,{type:s,string:r(e),index:0})}),(function(){var e,t=u(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},5363:(e,t,n)=>{"use strict";var i=n(4157),r=n(3577),o=n(1890),a=n(9529),s=n(6400),l=n(7950),u=n(419),c=n(1860),h=n(4068),d=n(4481),p=n(7933),f=n(6412),g=n(2344),v=n(8716),y=n(9395),m=n(854),x=m("replace"),_=Math.max,b=Math.min,w=o([].concat),S=o([].push),M=o("".indexOf),C=o("".slice),I=function(e){return void 0===e?e:String(e)},T=function(){return"$0"==="a".replace(/./,"$0")}(),k=function(){return!!/./[x]&&""===/./[x]("a","$0")}(),A=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));a("replace",(function(e,t,n){var o=k?"$":"$0";return[function(e,n){var i=p(this),o=void 0==e?void 0:g(e,x);return o?r(o,e,i,n):r(t,d(i),e,n)},function(e,r){var a=l(this),s=d(e);if("string"==typeof r&&-1===M(r,o)&&-1===M(r,"$<")){var p=n(t,a,s,r);if(p.done)return p.value}var g=u(r);g||(r=d(r));var m=a.global;if(m){var x=a.unicode;a.lastIndex=0}var T=[];while(1){var k=y(a,s);if(null===k)break;if(S(T,k),!m)break;var A=d(k[0]);""===A&&(a.lastIndex=f(s,h(a.lastIndex),x))}for(var D="",L=0,P=0;P<T.length;P++){k=T[P];for(var O=d(k[0]),R=_(b(c(k.index),s.length),0),E=[],N=1;N<k.length;N++)S(E,I(k[N]));var B=k.groups;if(g){var F=w([O],E,R,s);void 0!==B&&S(F,B);var z=d(i(r,void 0,F))}else z=v(O,s,R,E,B,r);R>=L&&(D+=C(s,L,R)+z,L=R+O.length)}return D+C(s,L)}]}),!A||!T||k)},5123:(e,t,n)=>{"use strict";var i=n(683),r=n(6042),o=n(1860),a=i.aTypedArray,s=i.exportTypedArrayMethod;s("at",(function(e){var t=a(this),n=r(t),i=o(e),s=i>=0?i:n+i;return s<0||s>=n?void 0:t[s]}))},8836:(e,t,n)=>{"use strict";var i=n(683),r=n(5786),o=n(5492),a=n(5976),s=n(3577),l=n(1890),u=n(6400),c=i.aTypedArray,h=i.exportTypedArrayMethod,d=l("".slice),p=u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));h("fill",(function(e){var t=arguments.length;c(this);var n="Big"===d(a(this),0,3)?o(e):+e;return s(r,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),p)},7648:(e,t,n)=>{"use strict";var i=n(683),r=n(5416).findLastIndex,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLastIndex",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},4331:(e,t,n)=>{"use strict";var i=n(683),r=n(5416).findLast,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLast",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},8685:(e,t,n)=>{"use strict";var i=n(7358),r=n(3577),o=n(683),a=n(6042),s=n(701),l=n(7475),u=n(6400),c=i.RangeError,h=i.Int8Array,d=h&&h.prototype,p=d&&d.set,f=o.aTypedArray,g=o.exportTypedArrayMethod,v=!u((function(){var e=new Uint8ClampedArray(2);return r(p,e,{length:1,0:3},1),3!==e[1]})),y=v&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new h(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){f(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(v)return r(p,this,n,t);var i=this.length,o=a(n),u=0;if(o+t>i)throw c("Wrong length");while(u<o)this[t+u]=n[u++]}),!v||y)},2396:(e,t,n)=>{"use strict";var i=n(7358),r=n(1890),o=n(6400),a=n(392),s=n(6534),l=n(683),u=n(1544),c=n(8979),h=n(5068),d=n(1513),p=l.aTypedArray,f=l.exportTypedArrayMethod,g=i.Uint16Array,v=g&&r(g.prototype.sort),y=!!v&&!(o((function(){v(new g(2),null)}))&&o((function(){v(new g(2),{})}))),m=!!v&&!o((function(){if(h)return h<74;if(u)return u<67;if(c)return!0;if(d)return d<602;var e,t,n=new g(516),i=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,i[e]=e-2*t+3;for(v(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==i[e])return!0})),x=function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}};f("sort",(function(e){return void 0!==e&&a(e),m?v(this,e):s(p(this),x(e))}),!m||y)},6105:(e,t,n)=>{var i=n(6968);i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},2773:(e,t,n)=>{n(7648)},9802:(e,t,n)=>{n(4331)},71:(e,t,n)=>{var i=n(7358),r=n(4296),o=n(8753),a=n(6843),s=n(1904),l=n(854),u=l("iterator"),c=l("toStringTag"),h=a.values,d=function(e,t){if(e){if(e[u]!==h)try{s(e,u,h)}catch(i){e[u]=h}if(e[c]||s(e,c,t),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(i){e[n]=a[n]}}};for(var p in r)d(i[p]&&i[p].prototype,p);d(o,"DOMTokenList")},1999:(e,t,n)=>{"use strict";n(6843);var i=n(8934),r=n(7358),o=n(3577),a=n(1890),s=n(9631),l=n(6595),u=n(3460),c=n(6703),h=n(1061),d=n(5912),p=n(7624),f=n(2827),g=n(419),v=n(7322),y=n(422),m=n(5976),x=n(7950),_=n(776),b=n(4481),w=n(1074),S=n(5442),M=n(2151),C=n(7143),I=n(6596),T=n(854),k=n(6534),A=T("iterator"),D="URLSearchParams",L=D+"Iterator",P=p.set,O=p.getterFor(D),R=p.getterFor(L),E=Object.getOwnPropertyDescriptor,N=function(e){if(!s)return r[e];var t=E(r,e);return t&&t.value},B=N("fetch"),F=N("Request"),z=N("Headers"),V=F&&F.prototype,H=z&&z.prototype,q=r.RegExp,G=r.TypeError,W=r.decodeURIComponent,U=r.encodeURIComponent,j=a("".charAt),Z=a([].join),Y=a([].push),$=a("".replace),X=a([].shift),K=a([].splice),J=a("".split),Q=a("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=q("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return W(e)}catch(t){return e}},re=function(e){var t=$(e,ee," "),n=4;try{return W(t)}catch(i){while(n)t=$(t,ne(n--),ie);return t}},oe=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ae[e]},le=function(e){return $(U(e),oe,se)},ue=d((function(e,t){P(this,{type:L,iterator:M(O(e).entries),kind:t})}),"Iterator",(function(){var e=R(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),!0),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===j(e,0)?Q(e,1):e:b(e)))};ce.prototype={type:D,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,a,s,l,u=C(e);if(u){t=M(e,u),n=t.next;while(!(i=o(n,t)).done){if(r=M(x(i.value)),a=r.next,(s=o(a,r)).done||(l=o(a,r)).done||!o(a,r).done)throw G("Expected sequence with length 2");Y(this.entries,{key:b(s.value),value:b(l.value)})}}else for(var c in e)v(e,c)&&Y(this.entries,{key:c,value:b(e[c])})},parseQuery:function(e){if(e){var t,n,i=J(e,"&"),r=0;while(r<i.length)t=i[r++],t.length&&(n=J(t,"="),Y(this.entries,{key:re(X(n)),value:re(Z(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],i=0;while(i<t.length)e=t[i++],Y(n,le(e.key)+"="+le(e.value));return Z(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){f(this,de);var e=arguments.length>0?arguments[0]:void 0;P(this,new ce(e))},de=he.prototype;if(c(de,{append:function(e,t){I(arguments.length,2);var n=O(this);Y(n.entries,{key:b(e),value:b(t)}),n.updateURL()},delete:function(e){I(arguments.length,1);var t=O(this),n=t.entries,i=b(e),r=0;while(r<n.length)n[r].key===i?K(n,r,1):r++;t.updateURL()},get:function(e){I(arguments.length,1);for(var t=O(this).entries,n=b(e),i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){I(arguments.length,1);for(var t=O(this).entries,n=b(e),i=[],r=0;r<t.length;r++)t[r].key===n&&Y(i,t[r].value);return i},has:function(e){I(arguments.length,1);var t=O(this).entries,n=b(e),i=0;while(i<t.length)if(t[i++].key===n)return!0;return!1},set:function(e,t){I(arguments.length,1);for(var n,i=O(this),r=i.entries,o=!1,a=b(e),s=b(t),l=0;l<r.length;l++)n=r[l],n.key===a&&(o?K(r,l--,1):(o=!0,n.value=s));o||Y(r,{key:a,value:s}),i.updateURL()},sort:function(){var e=O(this);k(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=O(this).entries,i=y(e,arguments.length>1?arguments[1]:void 0),r=0;while(r<n.length)t=n[r++],i(t.value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),u(de,A,de.entries,{name:"entries"}),u(de,"toString",(function(){return O(this).serialize()}),{enumerable:!0}),h(he,D),i({global:!0,constructor:!0,forced:!l},{URLSearchParams:he}),!l&&g(z)){var pe=a(H.has),fe=a(H.set),ge=function(e){if(_(e)){var t,n=e.body;if(m(n)===D)return t=e.headers?new z(e.headers):new z,pe(t,"content-type")||fe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(e,{body:S(0,b(n)),headers:S(0,t)})}return e};if(g(B)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return B(e,arguments.length>1?ge(arguments[1]):{})}}),g(F)){var ve=function(e){return f(this,V),new F(e,arguments.length>1?ge(arguments[1]):{})};V.constructor=ve,ve.prototype=V,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:he,getState:O}},6016:(e,t,n)=>{n(1999)},6295:(e,t,n)=>{"use strict";n(839);var i,r=n(8934),o=n(9631),a=n(6595),s=n(7358),l=n(422),u=n(1890),c=n(3460),h=n(9468),d=n(2827),p=n(7322),f=n(8439),g=n(2029),v=n(5771),y=n(1021).codeAt,m=n(5253),x=n(4481),_=n(1061),b=n(6596),w=n(1999),S=n(7624),M=S.set,C=S.getterFor("URL"),I=w.URLSearchParams,T=w.getState,k=s.URL,A=s.TypeError,D=s.parseInt,L=Math.floor,P=Math.pow,O=u("".charAt),R=u(/./.exec),E=u([].join),N=u(1..toString),B=u([].pop),F=u([].push),z=u("".replace),V=u([].shift),H=u("".split),q=u("".slice),G=u("".toLowerCase),W=u([].unshift),U="Invalid authority",j="Invalid scheme",Z="Invalid host",Y="Invalid port",$=/[a-z]/i,X=/[\d+-.a-z]/i,K=/\d/,J=/^0x/i,Q=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ie=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ae=function(e){var t,n,i,r,o,a,s,l=H(e,".");if(l.length&&""==l[l.length-1]&&l.length--,t=l.length,t>4)return e;for(n=[],i=0;i<t;i++){if(r=l[i],""==r)return e;if(o=10,r.length>1&&"0"==O(r,0)&&(o=R(J,r)?16:8,r=q(r,8==o?1:2)),""===r)a=0;else{if(!R(10==o?ee:8==o?Q:te,r))return e;a=D(r,o)}F(n,a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=P(256,5-t))return null}else if(a>255)return null;for(s=B(n),i=0;i<n.length;i++)s+=n[i]*P(256,3-i);return s},se=function(e){var t,n,i,r,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,h=0,d=function(){return O(e,h)};if(":"==d()){if(":"!=O(e,1))return;h+=2,u++,c=u}while(d()){if(8==u)return;if(":"!=d()){t=n=0;while(n<4&&R(te,d()))t=16*t+D(d(),16),h++,n++;if("."==d()){if(0==n)return;if(h-=n,u>6)return;i=0;while(d()){if(r=null,i>0){if(!("."==d()&&i<4))return;h++}if(!R(K,d()))return;while(R(K,d())){if(o=D(d(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;h++}l[u]=256*l[u]+r,i++,2!=i&&4!=i||u++}if(4!=i)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[u++]=t}else{if(null!==c)return;h++,u++,c=u}}if(null!==c){a=u-c,u=7;while(0!=u&&a>0)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s}else if(8!=u)return;return l},le=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t},ue=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)W(t,e%256),e=L(e/256);return E(t,".")}if("object"==typeof e){for(t="",i=le(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=N(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ce={},he=f({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),de=f({},he,{"#":1,"?":1,"{":1,"}":1}),pe=f({},de,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=y(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},ge={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var n;return 2==e.length&&R($,O(e,0))&&(":"==(n=O(e,1))||!t&&"|"==n)},ye=function(e){var t;return e.length>1&&ve(q(e,0,2))&&(2==e.length||"/"===(t=O(e,2))||"\\"===t||"?"===t||"#"===t)},me=function(e){return"."===e||"%2e"===G(e)},xe=function(e){return e=G(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},_e={},be={},we={},Se={},Me={},Ce={},Ie={},Te={},ke={},Ae={},De={},Le={},Pe={},Oe={},Re={},Ee={},Ne={},Be={},Fe={},ze={},Ve={},He=function(e,t,n){var i,r,o,a=x(e);if(t){if(r=this.parse(a),r)throw A(r);this.searchParams=null}else{if(void 0!==n&&(i=new He(n,!0)),r=this.parse(a,null,i),r)throw A(r);o=T(new I),o.bindURL(this),this.searchParams=o}};He.prototype={type:"URL",parse:function(e,t,n){var r,o,a,s,l=this,u=t||_e,c=0,h="",d=!1,f=!1,y=!1;e=x(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=z(e,re,"")),e=z(e,oe,""),r=g(e);while(c<=r.length){switch(o=r[c],u){case _e:if(!o||!R($,o)){if(t)return j;u=we;continue}h+=G(o),u=be;break;case be:if(o&&(R(X,o)||"+"==o||"-"==o||"."==o))h+=G(o);else{if(":"!=o){if(t)return j;h="",u=we,c=0;continue}if(t&&(l.isSpecial()!=p(ge,h)||"file"==h&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=h,t)return void(l.isSpecial()&&ge[l.scheme]==l.port&&(l.port=null));h="","file"==l.scheme?u=Oe:l.isSpecial()&&n&&n.scheme==l.scheme?u=Se:l.isSpecial()?u=Te:"/"==r[c+1]?(u=Me,c++):(l.cannotBeABaseURL=!0,F(l.path,""),u=Fe)}break;case we:if(!n||n.cannotBeABaseURL&&"#"!=o)return j;if(n.cannotBeABaseURL&&"#"==o){l.scheme=n.scheme,l.path=v(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=Ve;break}u="file"==n.scheme?Oe:Ce;continue;case Se:if("/"!=o||"/"!=r[c+1]){u=Ce;continue}u=ke,c++;break;case Me:if("/"==o){u=Ae;break}u=Be;continue;case Ce:if(l.scheme=n.scheme,o==i)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query=n.query;else if("/"==o||"\\"==o&&l.isSpecial())u=Ie;else if("?"==o)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query="",u=ze;else{if("#"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.path.length--,u=Be;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query=n.query,l.fragment="",u=Ve}break;case Ie:if(!l.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=Be;continue}u=Ae}else u=ke;break;case Te:if(u=ke,"/"!=o||"/"!=O(h,c+1))continue;c++;break;case ke:if("/"!=o&&"\\"!=o){u=Ae;continue}break;case Ae:if("@"==o){d&&(h="%40"+h),d=!0,a=g(h);for(var m=0;m<a.length;m++){var _=a[m];if(":"!=_||y){var b=fe(_,pe);y?l.password+=b:l.username+=b}else y=!0}h=""}else if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(d&&""==h)return U;c-=g(h).length+1,h="",u=De}else h+=o;break;case De:case Le:if(t&&"file"==l.scheme){u=Ee;continue}if(":"!=o||f){if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(l.isSpecial()&&""==h)return Z;if(t&&""==h&&(l.includesCredentials()||null!==l.port))return;if(s=l.parseHost(h),s)return s;if(h="",u=Ne,t)return;continue}"["==o?f=!0:"]"==o&&(f=!1),h+=o}else{if(""==h)return Z;if(s=l.parseHost(h),s)return s;if(h="",u=Pe,t==Le)return}break;case Pe:if(!R(K,o)){if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()||t){if(""!=h){var w=D(h,10);if(w>65535)return Y;l.port=l.isSpecial()&&w===ge[l.scheme]?null:w,h=""}if(t)return;u=Ne;continue}return Y}h+=o;break;case Oe:if(l.scheme="file","/"==o||"\\"==o)u=Re;else{if(!n||"file"!=n.scheme){u=Be;continue}if(o==i)l.host=n.host,l.path=v(n.path),l.query=n.query;else if("?"==o)l.host=n.host,l.path=v(n.path),l.query="",u=ze;else{if("#"!=o){ye(E(v(r,c),""))||(l.host=n.host,l.path=v(n.path),l.shortenPath()),u=Be;continue}l.host=n.host,l.path=v(n.path),l.query=n.query,l.fragment="",u=Ve}}break;case Re:if("/"==o||"\\"==o){u=Ee;break}n&&"file"==n.scheme&&!ye(E(v(r,c),""))&&(ve(n.path[0],!0)?F(l.path,n.path[0]):l.host=n.host),u=Be;continue;case Ee:if(o==i||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&ve(h))u=Be;else if(""==h){if(l.host="",t)return;u=Ne}else{if(s=l.parseHost(h),s)return s;if("localhost"==l.host&&(l.host=""),t)return;h="",u=Ne}continue}h+=o;break;case Ne:if(l.isSpecial()){if(u=Be,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=i&&(u=Be,"/"!=o))continue}else l.fragment="",u=Ve;else l.query="",u=ze;break;case Be:if(o==i||"/"==o||"\\"==o&&l.isSpecial()||!t&&("?"==o||"#"==o)){if(xe(h)?(l.shortenPath(),"/"==o||"\\"==o&&l.isSpecial()||F(l.path,"")):me(h)?"/"==o||"\\"==o&&l.isSpecial()||F(l.path,""):("file"==l.scheme&&!l.path.length&&ve(h)&&(l.host&&(l.host=""),h=O(h,0)+":"),F(l.path,h)),h="","file"==l.scheme&&(o==i||"?"==o||"#"==o))while(l.path.length>1&&""===l.path[0])V(l.path);"?"==o?(l.query="",u=ze):"#"==o&&(l.fragment="",u=Ve)}else h+=fe(o,de);break;case Fe:"?"==o?(l.query="",u=ze):"#"==o?(l.fragment="",u=Ve):o!=i&&(l.path[0]+=fe(o,ce));break;case ze:t||"#"!=o?o!=i&&("'"==o&&l.isSpecial()?l.query+="%27":l.query+="#"==o?"%23":fe(o,ce)):(l.fragment="",u=Ve);break;case Ve:o!=i&&(l.fragment+=fe(o,he));break}c++}},parseHost:function(e){var t,n,i;if("["==O(e,0)){if("]"!=O(e,e.length-1))return Z;if(t=se(q(e,1,-1)),!t)return Z;this.host=t}else if(this.isSpecial()){if(e=m(e),R(ne,e))return Z;if(t=ae(e),null===t)return Z;this.host=t}else{if(R(ie,e))return Z;for(t="",n=g(e),i=0;i<n.length;i++)t+=fe(n[i],ce);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(ge,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&ve(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==r?(u+="//",e.includesCredentials()&&(u+=n+(i?":"+i:"")+"@"),u+=ue(r),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+E(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw A(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new qe(e.path[0]).origin}catch(n){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ue(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(x(e)+":",_e)},getUsername:function(){return this.username},setUsername:function(e){var t=g(x(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=fe(t[n],pe)}},getPassword:function(){return this.password},setPassword:function(e){var t=g(x(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=fe(t[n],pe)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ue(e):ue(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,De)},getHostname:function(){var e=this.host;return null===e?"":ue(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Le)},getPort:function(){var e=this.port;return null===e?"":x(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=x(e),""==e?this.port=null:this.parse(e,Pe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+E(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ne))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=x(e),""==e?this.query=null:("?"==O(e,0)&&(e=q(e,1)),this.query="",this.parse(e,ze)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=x(e),""!=e?("#"==O(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Ve)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=d(this,Ge),n=b(arguments.length,1)>1?arguments[1]:void 0,i=M(t,new He(e,!1,n));o||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Ge=qe.prototype,We=function(e,t){return{get:function(){return C(this)[e]()},set:t&&function(e){return C(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(h(Ge,"href",We("serialize","setHref")),h(Ge,"origin",We("getOrigin")),h(Ge,"protocol",We("getProtocol","setProtocol")),h(Ge,"username",We("getUsername","setUsername")),h(Ge,"password",We("getPassword","setPassword")),h(Ge,"host",We("getHost","setHost")),h(Ge,"hostname",We("getHostname","setHostname")),h(Ge,"port",We("getPort","setPort")),h(Ge,"pathname",We("getPathname","setPathname")),h(Ge,"search",We("getSearch","setSearch")),h(Ge,"searchParams",We("getSearchParams")),h(Ge,"hash",We("getHash","setHash"))),c(Ge,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),c(Ge,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),k){var Ue=k.createObjectURL,je=k.revokeObjectURL;Ue&&c(qe,"createObjectURL",l(Ue,k)),je&&c(qe,"revokeObjectURL",l(je,k))}_(qe,"URL"),r({global:!0,constructor:!0,forced:!a,sham:!o},{URL:qe})},7965:(e,t,n)=>{n(6295)},2256:(e,t,n)=>{"use strict";n.d(t,{S1:()=>Tw});var i={};n.r(i),n.d(i,{Arc:()=>Jy,BezierCurve:()=>$y,BoundingRect:()=>oo,Circle:()=>ly,CompoundPath:()=>em,Ellipse:()=>hy,Group:()=>Lo,Image:()=>iu,IncrementalDisplayable:()=>gm,Line:()=>Wy,LinearGradient:()=>rm,OrientedBoundingRect:()=>dm,Path:()=>$l,Point:()=>$r,Polygon:()=>By,Polyline:()=>Vy,RadialGradient:()=>am,Rect:()=>du,Ring:()=>Py,Sector:()=>Ay,Text:()=>Du,applyTransform:()=>Om,clipPointsByRect:()=>Fm,clipRectByRect:()=>zm,createIcon:()=>Vm,extendPath:()=>bm,extendShape:()=>xm,getShapeClass:()=>Sm,getTransform:()=>Pm,groupTransition:()=>Bm,initProps:()=>Kc,isElementRemoved:()=>Jc,lineLineIntersect:()=>qm,linePolygonIntersect:()=>Hm,makeImage:()=>Cm,makePath:()=>Mm,mergePath:()=>Tm,registerShape:()=>wm,removeElement:()=>Qc,removeElementWithFadeOut:()=>th,resizePath:()=>km,setTooltipConfig:()=>Um,subPixelOptimize:()=>Lm,subPixelOptimizeLine:()=>Am,subPixelOptimizeRect:()=>Dm,transformDirection:()=>Rm,traverseElements:()=>Zm,updateProps:()=>Xc});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var a=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),s=function(){function e(){this.browser=new a,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),l=new s;function u(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(l.wxa=!0,l.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?l.worker=!0:"undefined"===typeof navigator?(l.node=!0,l.svgSupported=!0):u(navigator.userAgent,l);const c=l;var h=12,d="sans-serif",p=h+"px "+d,f=20,g=100,v="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function y(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n<e.length;n++){var i=String.fromCharCode(n+32),r=(e.charCodeAt(n)-f)/g;t[i]=r}return t}var m=y(v),x={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,i){if(!e){var r=x.createCanvas();e=r&&r.getContext("2d")}if(e)return t!==i&&(t=e.font=i||p),e.measureText(n);n=n||"",i=i||p;var o=/^([0-9]*?)px$/.exec(i),a=+(o&&o[1])||h,s=0;if(i.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=m[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(e,t,n){var i=new Image;return i.onload=t,i.onerror=n,i.src=e,i}};var _=U(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),b=U(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),w=Object.prototype.toString,S=Array.prototype,M=S.forEach,C=S.filter,I=S.slice,T=S.map,k=function(){}.constructor,A=k?k.prototype:null,D="__proto__",L=2311;function P(){return L++}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!==typeof console&&console.error.apply(console,e)}function R(e){if(null==e||"object"!==typeof e)return e;var t=e,n=w.call(e);if("[object Array]"===n){if(!_e(e)){t=[];for(var i=0,r=e.length;i<r;i++)t[i]=R(e[i])}}else if(b[n]){if(!_e(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(i=0,r=e.length;i<r;i++)t[i]=e[i]}}}else if(!_[n]&&!_e(e)&&!ae(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==D&&(t[a]=R(e[a]));return t}function E(e,t,n){if(!ie(t)||!ie(e))return n?R(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==D){var r=e[i],o=t[i];!ie(o)||!ie(r)||J(o)||J(r)||ae(o)||ae(r)||re(o)||re(r)||_e(o)||_e(r)?!n&&i in e||(e[i]=R(t[i])):E(r,o,n)}return e}function N(e,t){for(var n=e[0],i=1,r=e.length;i<r;i++)n=E(n,e[i],t);return n}function B(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==D&&(e[n]=t[n]);return e}function F(e,t,n){for(var i=Y(t),r=0;r<i.length;r++){var o=i[r];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}x.createCanvas;function z(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function V(e,t){var n=e.prototype;function i(){}for(var r in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(r)&&(e.prototype[r]=n[r]);e.prototype.constructor=e,e.superClass=t}function H(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else F(e,t,n)}function q(e){return!!e&&("string"!==typeof e&&"number"===typeof e.length)}function G(e,t,n){if(e&&t)if(e.forEach&&e.forEach===M)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function W(e,t,n){if(!e)return[];if(!t)return fe(e);if(e.map&&e.map===T)return e.map(t,n);for(var i=[],r=0,o=e.length;r<o;r++)i.push(t.call(n,e[r],r,e));return i}function U(e,t,n,i){if(e&&t){for(var r=0,o=e.length;r<o;r++)n=t.call(i,n,e[r],r,e);return n}}function j(e,t,n){if(!e)return[];if(!t)return fe(e);if(e.filter&&e.filter===C)return e.filter(t,n);for(var i=[],r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}function Z(e,t,n){if(e&&t)for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]}function Y(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function $(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(I.call(arguments)))}}var X=A&&Q(A.bind)?A.call.bind(A.bind):$;function K(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(I.call(arguments)))}}function J(e){return Array.isArray?Array.isArray(e):"[object Array]"===w.call(e)}function Q(e){return"function"===typeof e}function ee(e){return"string"===typeof e}function te(e){return"[object String]"===w.call(e)}function ne(e){return"number"===typeof e}function ie(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function re(e){return!!_[w.call(e)]}function oe(e){return!!b[w.call(e)]}function ae(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function se(e){return null!=e.colorStops}function le(e){return null!=e.image}function ue(e){return"[object RegExp]"===w.call(e)}function ce(e){return e!==e}function he(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e.length;n<i;n++)if(null!=e[n])return e[n]}function de(e,t){return null!=e?e:t}function pe(e,t,n){return null!=e?e:null!=t?t:n}function fe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return I.apply(e,t)}function ge(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function ve(e,t){if(!e)throw new Error(t)}function ye(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var me="__ec_primitive__";function xe(e){e[me]=!0}function _e(e){return e[me]}var be=function(){function e(t){this.data={};var n=J(t);this.data={};var i=this;function r(e,t){n?i.set(e,t):i.set(t,e)}t instanceof e?t.each(r):t&&G(t,r)}return e.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},e.prototype.set=function(e,t){return this.data[e]=t},e.prototype.each=function(e,t){for(var n in this.data)this.data.hasOwnProperty(n)&&e.call(t,this.data[n],n)},e.prototype.keys=function(){return Y(this.data)},e.prototype.removeKey=function(e){delete this.data[e]},e}();function we(e){return new be(e)}function Se(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var r=e.length;for(i=0;i<t.length;i++)n[i+r]=t[i];return n}function Me(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&B(n,t),n}function Ce(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ie(e,t){return e.hasOwnProperty(t)}function Te(){}var ke=180/Math.PI,Ae=function(e,t){return Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ae(e,t)};function De(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ae(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;function Le(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function Pe(e,t){return e[0]=t[0],e[1]=t[1],e}function Oe(e){return[e[0],e[1]]}function Re(e,t,n){return e[0]=t,e[1]=n,e}function Ee(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Ne(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function Be(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Fe(e){return Math.sqrt(ze(e))}function ze(e){return e[0]*e[0]+e[1]*e[1]}function Ve(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function He(e,t){var n=Fe(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function qe(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ge=qe;function We(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ue=We;function je(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function Ze(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function Ye(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function $e(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Xe=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Ke=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Xe(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(r,o,e),this.handler.dispatchToElement(new Xe(t,e),"drag",e.event);var a=this.handler.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Xe(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new Xe(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Xe(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Xe(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}();const Je=Ke;var Qe=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof t&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),r[e]||(r[e]=[]);for(var a=0;a<r[e].length;a++)if(r[e][a].h===n)return this;var s={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[e].length-1,u=r[e][l];return u&&u.callAtLast?r[e].splice(l,0,s):r[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],r=0,o=n[e].length;r<o;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,a=t[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}();const et=Qe;var tt=Math.log(2);function nt(e,t,n,i,r,o){var a=i+"-"+r,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~r)/tt);return e[n][l]}var u=i|1<<n,c=n+1;while(i&1<<c)c++;for(var h=0,d=0,p=0;d<s;d++){var f=1<<d;f&r||(h+=(p%2?-1:1)*e[n][d]*nt(e,t-1,c,u,r|f,o),p++)}return o[a]=h,h}function it(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},r=nt(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*nt(n,7,0===a?1:0,1<<a,1<<s,i)/r*t[a];return function(e,t,n){var i=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/i,e[1]=(t*o[3]+n*o[4]+o[5])/i}}}var rt="___zrEVENTSAVED",ot=[];function at(e,t,n,i,r){return st(ot,t,i,r,!0)&&st(e,n,ot[0],ot[1])}function st(e,t,n,i,r){if(t.getBoundingClientRect&&c.domSupported&&!ct(t)){var o=t[rt]||(t[rt]={}),a=lt(t,o),s=ut(a,o,r);if(s)return s(e,n,i),!0}return!1}function lt(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function ut(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=n?it(s,a):it(a,s))}function ct(e){return"CANVAS"===e.nodeName.toUpperCase()}var ht=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,dt=[],pt=c.browser.firefox&&+c.browser.version.split(".")[0]<39;function ft(e,t,n,i){return n=n||{},i?gt(e,t,n):pt&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):gt(e,t,n),n}function gt(e,t,n){if(c.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(ct(e)){var o=e.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(st(dt,e,i,r))return n.zrX=dt[0],void(n.zrY=dt[1])}n.zrX=n.zrY=0}function vt(e){return e||window.event}function yt(e,t,n){if(t=vt(t),null!=t.zrX)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];o&&ft(e,o,t,n)}else{ft(e,t,t,n);var a=mt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&ht.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function mt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function xt(e,t,n,i){e.addEventListener(t,n,i)}function _t(e,t,n,i){e.removeEventListener(t,n,i)}var bt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function wt(e){return 2===e.which||3===e.which}var St=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,a=i.length;o<a;o++){var s=i[o],l=ft(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},e.prototype._recognize=function(e){for(var t in It)if(It.hasOwnProperty(t)){var n=It[t](this._track,e);if(n)return n}},e}();function Mt(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Ct(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var It={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,r=(e[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=Mt(i)/Mt(r);!isFinite(o)&&(o=1),t.pinchScale=o;var a=Ct(i);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},Tt="silent";function kt(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:At}}function At(){bt(this.event)}var Dt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return De(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(et),Lt=function(){function e(e,t){this.x=e,this.y=t}return e}(),Pt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ot=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o._hovered=new Lt(0,0),o.storage=t,o.painter=n,o.painterRoot=r,i=i||new Dt,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new Je(o),o}return De(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(G(Pt,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=Et(this,t,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Lt(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Lt(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var i=e.target;if(!i||!i.silent){var r="on"+t,o=kt(t,e,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){for(var i=this.storage.getDisplayList(),r=new Lt(e,t),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=Rt(i[o],e,t))&&(!r.topTarget&&(r.topTarget=i[o]),a!==Tt)){r.target=i[o];break}}return r},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new St);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r;var o=new Lt;o.target=i.target,this.dispatchToElement(o,r,i.event)}},t}(et);function Rt(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var i=e,r=void 0,o=!1;while(i){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||Tt}return!1}function Et(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}G(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Ot.prototype[e]=function(t){var n,i,r=t.zrX,o=t.zrY,a=Et(this,r,o);if("mouseup"===e&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Ge(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));const Nt=Ot;var Bt=32,Ft=7;function zt(e){var t=0;while(e>=Bt)t|=1&e,e>>=1;return e+t}function Vt(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){while(r<n&&i(e[r],e[r-1])<0)r++;Ht(e,t,r)}else while(r<n&&i(e[r],e[r-1])>=0)r++;return r-t}function Ht(e,t,n){n--;while(t<n){var i=e[t];e[t++]=e[n],e[n--]=i}}function qt(e,t,n,i,r){for(i===t&&i++;i<n;i++){var o,a=e[i],s=t,l=i;while(s<l)o=s+l>>>1,r(a,e[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(u>0)e[s+u]=e[s+u-1],u--}e[s]=a}}function Gt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){s=i-r;while(l<s&&o(e,t[n+r+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(l<s&&o(e,t[n+r-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}a++;while(a<l){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function Wt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){s=r+1;while(l<s&&o(e,t[n+r-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-r;while(l<s&&o(e,t[n+r+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a<l){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Ut(e,t){var n,i,r=Ft,o=0,a=0;o=e.length;var s=[];function l(e,t){n[a]=e,i[a]=t,a+=1}function u(){while(a>1){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;h(e)}}function c(){while(a>1){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,h(e)}}function h(r){var o=n[r],s=i[r],l=n[r+1],u=i[r+1];i[r]=s+u,r===a-3&&(n[r+1]=n[r+2],i[r+1]=i[r+2]),a--;var c=Wt(e[l],e,o,s,0,t);o+=c,s-=c,0!==s&&(u=Gt(e[o+s-1],e,l,u,u-1,t),0!==u&&(s<=u?d(o,s,l,u):p(o,s,l,u)))}function d(n,i,o,a){var l=0;for(l=0;l<i;l++)s[l]=e[n+l];var u=0,c=o,h=n;if(e[h++]=e[c++],0!==--a)if(1!==i){var d,p,f,g=r;while(1){d=0,p=0,f=!1;do{if(t(e[c],s[u])<0){if(e[h++]=e[c++],p++,d=0,0===--a){f=!0;break}}else if(e[h++]=s[u++],d++,p=0,1===--i){f=!0;break}}while((d|p)<g);if(f)break;do{if(d=Wt(e[c],s,u,i,0,t),0!==d){for(l=0;l<d;l++)e[h+l]=s[u+l];if(h+=d,u+=d,i-=d,i<=1){f=!0;break}}if(e[h++]=e[c++],0===--a){f=!0;break}if(p=Gt(s[u],e,c,a,0,t),0!==p){for(l=0;l<p;l++)e[h+l]=e[c+l];if(h+=p,c+=p,a-=p,0===a){f=!0;break}}if(e[h++]=s[u++],1===--i){f=!0;break}g--}while(d>=Ft||p>=Ft);if(f)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l<a;l++)e[h+l]=e[c+l];e[h+a]=s[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)e[h+l]=s[u+l]}}else{for(l=0;l<a;l++)e[h+l]=e[c+l];e[h+a]=s[u]}else for(l=0;l<i;l++)e[h+l]=s[u+l]}function p(n,i,o,a){var l=0;for(l=0;l<a;l++)s[l]=e[o+l];var u=n+i-1,c=a-1,h=o+a-1,d=0,p=0;if(e[h--]=e[u--],0!==--i)if(1!==a){var f=r;while(1){var g=0,v=0,y=!1;do{if(t(s[c],e[u])<0){if(e[h--]=e[u--],g++,v=0,0===--i){y=!0;break}}else if(e[h--]=s[c--],v++,g=0,1===--a){y=!0;break}}while((g|v)<f);if(y)break;do{if(g=i-Wt(s[c],e,n,i,i-1,t),0!==g){for(h-=g,u-=g,i-=g,p=h+1,d=u+1,l=g-1;l>=0;l--)e[p+l]=e[d+l];if(0===i){y=!0;break}}if(e[h--]=s[c--],1===--a){y=!0;break}if(v=a-Gt(e[u],s,0,a,a-1,t),0!==v){for(h-=v,c-=v,a-=v,p=h+1,d=c+1,l=0;l<v;l++)e[p+l]=s[d+l];if(a<=1){y=!0;break}}if(e[h--]=e[u--],0===--i){y=!0;break}f--}while(g>=Ft||v>=Ft);if(y)break;f<0&&(f=0),f+=2}if(r=f,r<1&&(r=1),1===a){for(h-=i,u-=i,p=h+1,d=u+1,l=i-1;l>=0;l--)e[p+l]=e[d+l];e[h]=s[c]}else{if(0===a)throw new Error;for(d=h-(a-1),l=0;l<a;l++)e[d+l]=s[l]}}else{for(h-=i,u-=i,p=h+1,d=u+1,l=i-1;l>=0;l--)e[p+l]=e[d+l];e[h]=s[c]}else for(d=h-(a-1),l=0;l<a;l++)e[d+l]=s[l]}return o<120?5:o<1542?10:o<119151?19:40,n=[],i=[],{mergeRuns:u,forceMergeRuns:c,pushRun:l}}function jt(e,t,n,i){n||(n=0),i||(i=e.length);var r=i-n;if(!(r<2)){var o=0;if(r<Bt)return o=Vt(e,n,i,t),void qt(e,n,i,n+o,t);var a=Ut(e,t),s=zt(r);do{if(o=Vt(e,n,i,t),o<s){var l=r;l>s&&(l=s),qt(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var Zt=1,Yt=2,$t=4,Xt=!1;function Kt(){Xt||(Xt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Jt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Qt=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jt}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,jt(n,Jt)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t=t?t.slice():[];var r=i,o=e;while(r)r.parent=o,r.updateTransform(),t.push(r),o=r,r=r.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=Zt),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Kt(),u.z=0),isNaN(u.z2)&&(Kt(),u.z2=0),isNaN(u.zlevel)&&(Kt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var i=z(this._roots,e);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}();const en=Qt;var tn;tn=c.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const nn=tn;var rn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i))},elasticOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-rn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*rn.bounceIn(2*e):.5*rn.bounceOut(2*e-1)+.5}};const on=rn;var an=Math.pow,sn=Math.sqrt,ln=1e-8,un=1e-4,cn=sn(3),hn=1/3,dn=Le(),pn=Le(),fn=Le();function gn(e){return e>-ln&&e<ln}function vn(e){return e>ln||e<-ln}function yn(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function mn(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function xn(e,t,n,i,r,o){var a=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(gn(c)&&gn(h))if(gn(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=h*h-4*c*d;if(gn(g)){var v=h/c,y=(f=-s/a+v,-v/2);f>=0&&f<=1&&(o[p++]=f),y>=0&&y<=1&&(o[p++]=y)}else if(g>0){var m=sn(g),x=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);x=x<0?-an(-x,hn):an(x,hn),_=_<0?-an(-_,hn):an(_,hn);f=(-s-(x+_))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var b=(2*c*s-3*a*h)/(2*sn(c*c*c)),w=Math.acos(b)/3,S=sn(c),M=Math.cos(w),C=(f=(-s-2*S*M)/(3*a),y=(-s+S*(M+cn*Math.sin(w)))/(3*a),(-s+S*(M-cn*Math.sin(w)))/(3*a));f>=0&&f<=1&&(o[p++]=f),y>=0&&y<=1&&(o[p++]=y),C>=0&&C<=1&&(o[p++]=C)}}return p}function _n(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(gn(a)){if(vn(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(gn(c))r[0]=-o/(2*a);else if(c>0){var h=sn(c),d=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function bn(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=e,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function wn(e,t,n,i,r,o,a,s,l,u,c){var h,d,p,f,g,v=.005,y=1/0;dn[0]=l,dn[1]=u;for(var m=0;m<1;m+=.05)pn[0]=yn(e,n,r,a,m),pn[1]=yn(t,i,o,s,m),f=Ue(dn,pn),f<y&&(h=m,y=f);y=1/0;for(var x=0;x<32;x++){if(v<un)break;d=h-v,p=h+v,pn[0]=yn(e,n,r,a,d),pn[1]=yn(t,i,o,s,d),f=Ue(pn,dn),d>=0&&f<y?(h=d,y=f):(fn[0]=yn(e,n,r,a,p),fn[1]=yn(t,i,o,s,p),g=Ue(fn,dn),p<=1&&g<y?(h=p,y=g):v*=.5)}return c&&(c[0]=yn(e,n,r,a,h),c[1]=yn(t,i,o,s,h)),sn(y)}function Sn(e,t,n,i,r,o,a,s,l){for(var u=e,c=t,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=yn(e,n,r,a,f),v=yn(t,i,o,s,f),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Mn(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function Cn(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function In(e,t,n,i,r){var o=e-2*t+n,a=2*(t-e),s=e-i,l=0;if(gn(o)){if(vn(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(gn(c)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var h=sn(c),d=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function Tn(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function kn(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function An(e,t,n,i,r,o,a,s,l){var u,c=.005,h=1/0;dn[0]=a,dn[1]=s;for(var d=0;d<1;d+=.05){pn[0]=Mn(e,n,r,d),pn[1]=Mn(t,i,o,d);var p=Ue(dn,pn);p<h&&(u=d,h=p)}h=1/0;for(var f=0;f<32;f++){if(c<un)break;var g=u-c,v=u+c;pn[0]=Mn(e,n,r,g),pn[1]=Mn(t,i,o,g);p=Ue(pn,dn);if(g>=0&&p<h)u=g,h=p;else{fn[0]=Mn(e,n,r,v),fn[1]=Mn(t,i,o,v);var y=Ue(fn,dn);v<=1&&y<h?(u=v,h=y):c*=.5}}return l&&(l[0]=Mn(e,n,r,u),l[1]=Mn(t,i,o,u)),sn(h)}function Dn(e,t,n,i,r,o,a){for(var s=e,l=t,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,p=Mn(e,n,r,d),f=Mn(t,i,o,d),g=p-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=p,l=f}return u}var Ln=/cubic-bezier\(([0-9,\.e ]+)\)/;function Pn(e){var t=e&&Ln.exec(e);if(t){var n=t[1].split(","),i=+ye(n[0]),r=+ye(n[1]),o=+ye(n[2]),a=+ye(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:xn(0,i,o,1,e,s)&&yn(0,r,a,1,s[0])}}}var On=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Te,this.ondestroy=e.ondestroy||Te,this.onrestart=e.onrestart||Te,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Q(e)?e:on[e]||Pn(e)},e}();const Rn=On;var En=function(){function e(e){this.value=e}return e}(),Nn=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new En(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Bn=function(){function e(e){this._list=new Nn,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,r=null;if(null==i[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new En(t),a.key=e,n.insertEntry(a),i[e]=a}return r},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Fn=Bn;var zn={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 Vn(e){return e=Math.round(e),e<0?0:e>255?255:e}function Hn(e){return e=Math.round(e),e<0?0:e>360?360:e}function qn(e){return e<0?0:e>1?1:e}function Gn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Vn(parseFloat(t)/100*255):Vn(parseInt(t,10))}function Wn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?qn(parseFloat(t)/100):qn(parseFloat(t))}function Un(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function jn(e,t,n){return e+(t-e)*n}function Zn(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function Yn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var $n=new Fn(20),Xn=null;function Kn(e,t){Xn&&Yn(Xn,t),Xn=$n.put(e,Xn||t.slice())}function Jn(e,t){if(e){t=t||[];var n=$n.get(e);if(n)return Yn(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in zn)return Yn(t,zn[i]),Kn(e,t),t;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?Zn(t,+l[0],+l[1],+l[2],1):Zn(t,0,0,0,1);u=Wn(l.pop());case"rgb":return 3!==l.length?void Zn(t,0,0,0,1):(Zn(t,Gn(l[0]),Gn(l[1]),Gn(l[2]),u),Kn(e,t),t);case"hsla":return 4!==l.length?void Zn(t,0,0,0,1):(l[3]=Wn(l[3]),Qn(l,t),Kn(e,t),t);case"hsl":return 3!==l.length?void Zn(t,0,0,0,1):(Qn(l,t),Kn(e,t),t);default:return}}Zn(t,0,0,0,1)}else{if(4===r||5===r){var c=parseInt(i.slice(1,4),16);return c>=0&&c<=4095?(Zn(t,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===r?parseInt(i.slice(4),16)/15:1),Kn(e,t),t):void Zn(t,0,0,0,1)}if(7===r||9===r){c=parseInt(i.slice(1,7),16);return c>=0&&c<=16777215?(Zn(t,(16711680&c)>>16,(65280&c)>>8,255&c,9===r?parseInt(i.slice(7),16)/255:1),Kn(e,t),t):void Zn(t,0,0,0,1)}}}}function Qn(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=Wn(e[1]),r=Wn(e[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return t=t||[],Zn(t,Vn(255*Un(a,o,n+1/3)),Vn(255*Un(a,o,n)),Vn(255*Un(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function ei(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?t=d-h:r===s?t=1/3+c-d:o===s&&(t=2/3+h-c),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,n,u];return null!=e[3]&&p.push(e[3]),p}}function ti(e,t){var n=Jn(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return ai(n,4===n.length?"rgba":"rgb")}}function ni(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],s=t[o],l=i-r;return n[0]=Vn(jn(a[0],s[0],l)),n[1]=Vn(jn(a[1],s[1],l)),n[2]=Vn(jn(a[2],s[2],l)),n[3]=qn(jn(a[3],s[3],l)),n}}function ii(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=Jn(t[r]),s=Jn(t[o]),l=i-r,u=ai([Vn(jn(a[0],s[0],l)),Vn(jn(a[1],s[1],l)),Vn(jn(a[2],s[2],l)),qn(jn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function ri(e,t,n,i){var r=Jn(e);if(e)return r=ei(r),null!=t&&(r[0]=Hn(t)),null!=n&&(r[1]=Wn(n)),null!=i&&(r[2]=Wn(i)),ai(Qn(r),"rgba")}function oi(e,t){var n=Jn(e);if(n&&null!=t)return n[3]=qn(t),ai(n,"rgba")}function ai(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function si(e,t){var n=Jn(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var li=Math.round;function ui(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Jn(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var ci=1e-4;function hi(e){return e<ci&&e>-ci}function di(e){return li(1e3*e)/1e3}function pi(e){return li(1e4*e)/1e4}function fi(e){return"matrix("+di(e[0])+","+di(e[1])+","+di(e[2])+","+di(e[3])+","+pi(e[4])+","+pi(e[5])+")"}var gi={left:"start",right:"end",center:"middle",middle:"middle"};function vi(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function yi(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function mi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function xi(e){return e&&!!e.image}function _i(e){return e&&!!e.svgElement}function bi(e){return xi(e)||_i(e)}function wi(e){return"linear"===e.type}function Si(e){return"radial"===e.type}function Mi(e){return e&&("linear"===e.type||"radial"===e.type)}function Ci(e){return"url(#"+e+")"}function Ii(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ti(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*ke,r=de(e.scaleX,1),o=de(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+li(a*ke)+"deg, "+li(s*ke)+"deg)"),l.join(" ")}var ki=function(){return c.hasGlobalWindow&&Q(window.btoa)?function(e){return window.btoa(unescape(e))}:"undefined"!==typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),Ai=Array.prototype.slice;function Di(e,t,n){return(t-e)*n+e}function Li(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=Di(t[o],n[o],i);return e}function Pi(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=Di(t[a][s],n[a][s],i)}return e}function Oi(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=t[o]+n[o]*i;return e}function Ri(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*i}return e}function Ei(e,t){for(var n=e.length,i=t.length,r=n>i?t:e,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Ni(e,t,n){var i=e,r=t;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(1===n?r[l]:Ai.call(r[l]))}var u=i[0]&&i[0].length;for(l=0;l<i.length;l++)if(1===n)isNaN(i[l])&&(i[l]=r[l]);else for(var c=0;c<u;c++)isNaN(i[l][c])&&(i[l][c]=r[l][c])}}function Bi(e){if(q(e)){var t=e.length;if(q(e[0])){for(var n=[],i=0;i<t;i++)n.push(Ai.call(e[i]));return n}return Ai.call(e)}return e}function Fi(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]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function zi(e){return q(e&&e[0])?2:1}var Vi=0,Hi=1,qi=2,Gi=3,Wi=4,Ui=5,ji=6;function Zi(e){return e===Wi||e===Ui}function Yi(e){return e===Hi||e===qi}var $i=[0,0,0,0],Xi=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=ji,s=t;if(q(t)){var l=zi(t);a=l,(1===l&&!ne(t[0])||2===l&&!ne(t[0][0]))&&(o=!0)}else if(ne(t)&&!ce(t))a=Vi;else if(ee(t))if(isNaN(+t)){var u=Jn(t);u&&(s=u,a=Gi)}else a=Vi;else if(se(t)){var c=B({},s);c.colorStops=W(t.colorStops,(function(e){return{offset:e.offset,color:Jn(e.color)}})),wi(t)?a=Wi:Si(t)&&(a=Ui),s=c}0===r?this.valType=a:a===this.valType&&a!==ji||(o=!0),this.discrete=this.discrete||o;var h={time:e,value:s,rawValue:t,percent:0};return n&&(h.easing=n,h.easingFunc=Q(n)?n:on[n]||Pn(n)),i.push(h),h},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Yi(i),l=Zi(i),u=0;u<r;u++){var c=n[u],h=c.value,d=o.value;c.percent=c.time/e,a||(s&&u!==r-1?Ni(h,d,i):l&&Ei(h.colorStops,d.colorStops))}if(!a&&i!==Ui&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;var p=n[0].value;for(u=0;u<r;u++)i===Vi?n[u].additiveValue=n[u].value-p:i===Gi?n[u].additiveValue=Oi([],n[u].value,p,-1):Yi(i)&&(n[u].additiveValue=i===Hi?Oi([],n[u].value,p,-1):Ri([],n[u].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=s===Gi,d=this._lastFr,p=Math.min;if(1===u)i=r=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){var f=p(d+1,u-1);for(n=f;n>=0;n--)if(l[n].percent<=t)break;n=p(n,u-2)}else{for(n=d;n<u;n++)if(l[n].percent>t)break;n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var g=r.percent-i.percent,v=0===g?1:p((t-i.percent)/g,1);r.easingFunc&&(v=r.easingFunc(v));var y=o?this._additiveValue:h?$i:e[c];if(!Yi(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)e[c]=v<1?i.rawValue:r.rawValue;else if(Yi(s))s===Hi?Li(y,i[a],r[a],v):Pi(y,i[a],r[a],v);else if(Zi(s)){var m=i[a],x=r[a],_=s===Wi;e[c]={type:_?"linear":"radial",x:Di(m.x,x.x,v),y:Di(m.y,x.y,v),colorStops:W(m.colorStops,(function(e,t){var n=x.colorStops[t];return{offset:Di(e.offset,n.offset,v),color:Fi(Li([],e.color,n.color,v))}})),global:x.global},_?(e[c].x2=Di(m.x2,x.x2,v),e[c].y2=Di(m.y2,x.y2,v)):e[c].r=Di(m.r,x.r,v)}else if(h)Li(y,i[a],r[a],v),o||(e[c]=Fi(y));else{var b=Di(i[a],r[a],v);o?this._additiveValue=b:e[c]=b}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===Vi?e[n]=e[n]+i:t===Gi?(Jn(e[n],$i),Oi($i,$i,i,1),e[n]=Fi($i)):t===Hi?Oi(e[n],e[n],i,1):t===qi&&Ri(e[n],e[n],i,1)},e}(),Ki=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?O("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Y(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new Xi(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,u.valType===Gi&&l&&(l=Fi(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,Bi(l),i),this._trackKeys.push(a)}s.addKeyframe(e,Bi(t[a]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(e);r&&(t=r)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(t._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Rn({life:i,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var i=t._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return W(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<e.length;r++){var o=n[e[r]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var r=t[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[r]=Bi(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Y(e);for(var n=0;n<t.length;n++){var i=t[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}();const Ji=Ki;function Qi(){return(new Date).getTime()}var er=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return De(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=Qi()-this._pausedTime,n=t-this._time,i=this._head;while(i){var r=i.next,o=i.step(t,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(nn(t),!e._paused&&e.update())}this._running=!0,nn(t)},t.prototype.start=function(){this._running||(this._time=Qi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Qi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Qi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Ji(e,t.loop);return this.addAnimator(n),n},t}(et);const tr=er;var nr=300,ir=c.domSupported,rr=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=W(e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:i}}(),or={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ar=!1;function sr(e){var t=e.pointerType;return"pen"===t||"touch"===t}function lr(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function ur(e){e&&(e.zrByTouch=!0)}function cr(e,t){return yt(e.dom,new dr(e,t),!0)}function hr(e,t){var n=t,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return i}var dr=function(){function e(e,t){this.stopPropagation=Te,this.stopImmediatePropagation=Te,this.preventDefault=Te,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),pr={mousedown:function(e){e=yt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=yt(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=yt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=yt(this.dom,e);var t=e.toElement||e.relatedTarget;hr(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){ar=!0,e=yt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){ar||(e=yt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=yt(this.dom,e),ur(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),pr.mousemove.call(this,e),pr.mousedown.call(this,e)},touchmove:function(e){e=yt(this.dom,e),ur(e),this.handler.processGesture(e,"change"),pr.mousemove.call(this,e)},touchend:function(e){e=yt(this.dom,e),ur(e),this.handler.processGesture(e,"end"),pr.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<nr&&pr.click.call(this,e)},pointerdown:function(e){pr.mousedown.call(this,e)},pointermove:function(e){sr(e)||pr.mousemove.call(this,e)},pointerup:function(e){pr.mouseup.call(this,e)},pointerout:function(e){sr(e)||pr.mouseout.call(this,e)}};G(["click","dblclick","contextmenu"],(function(e){pr[e]=function(t){t=yt(this.dom,t),this.trigger(e,t)}}));var fr={pointermove:function(e){sr(e)||fr.mousemove.call(this,e)},pointerup:function(e){fr.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 gr(e,t){var n=t.domHandlers;c.pointerEventsSupported?G(rr.pointer,(function(i){yr(t,i,(function(t){n[i].call(e,t)}))})):(c.touchEventsSupported&&G(rr.touch,(function(i){yr(t,i,(function(r){n[i].call(e,r),lr(t)}))})),G(rr.mouse,(function(i){yr(t,i,(function(r){r=vt(r),t.touching||n[i].call(e,r)}))})))}function vr(e,t){function n(n){function i(i){i=vt(i),hr(e,i.target)||(i=cr(e,i),t.domHandlers[n].call(e,i))}yr(t,n,i,{capture:!0})}c.pointerEventsSupported?G(or.pointer,n):c.touchEventsSupported||G(or.mouse,n)}function yr(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,xt(e.domTarget,t,n,i)}function mr(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&_t(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var xr=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),_r=function(e){function t(t,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new xr(t,pr),ir&&(i._globalHandlerScope=new xr(document,fr)),gr(i,i._localHandlerScope),i}return De(t,e),t.prototype.dispose=function(){mr(this._localHandlerScope),ir&&mr(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,ir&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?vr(this,t):mr(t)}},t}(et);const br=_r;var wr=1;c.hasGlobalWindow&&(wr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sr=wr,Mr=.4,Cr="#333",Ir="#ccc",Tr="#eee";function kr(){return[1,0,0,1,0,0]}function Ar(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Dr(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 Lr(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function Pr(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Or(e,t,n){var i=t[0],r=t[2],o=t[4],a=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=i*c+a*u,e[1]=-i*u+a*c,e[2]=r*c+s*u,e[3]=-r*u+c*s,e[4]=c*o+u*l,e[5]=c*l-u*o,e}function Rr(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function Er(e,t){var n=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*i;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*r)*l,e[5]=(o*r-n*s)*l,e):null}function Nr(e){var t=kr();return Dr(t,e),t}var Br=Ar,Fr=5e-5;function zr(e){return e>Fr||e<-Fr}var Vr=[],Hr=[],qr=kr(),Gr=Math.abs,Wr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return zr(this.rotation)||zr(this.x)||zr(this.y)||zr(this.scaleX-1)||zr(this.scaleY-1)||zr(this.skewX)||zr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||kr(),t?this.getLocalTransform(n):Br(n),e&&(t?Lr(n,e,n):Dr(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Br(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Vr);var n=Vr[0]<0?-1:1,i=Vr[1]<0?-1:1,r=((Vr[0]-n)*t+n)/Vr[0]||0,o=((Vr[1]-i)*t+i)/Vr[1]||0;e[0]*=r,e[1]*=r,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||kr(),Er(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Lr(Hr,e.invTransform,t),t=Hr);var n=this.originX,i=this.originY;(n||i)&&(qr[4]=n,qr[5]=i,Lr(Hr,t,qr),Hr[4]-=n,Hr[5]-=i,t=Hr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&Ze(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&Ze(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Gr(e[0]-1)>1e-10&&Gr(e[3]-1)>1e-10?Math.sqrt(Gr(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){jr(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,r=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;t[4]=-p*r-h*f*o,t[5]=-f*o-d*p*r}else t[4]=t[5]=0;return t[0]=r,t[3]=o,t[1]=d*r,t[2]=h*o,l&&Or(t,t,l),t[4]+=n+u,t[5]+=i+c,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Ur=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function jr(e,t){for(var n=0;n<Ur.length;n++){var i=Ur[n];e[i]=t[i]}}const Zr=Wr;var Yr=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var r=1-i;e.x=r*t.x+i*n.x,e.y=r*t.y+i*n.y},e}();const $r=Yr;var Xr=Math.min,Kr=Math.max,Jr=new $r,Qr=new $r,eo=new $r,to=new $r,no=new $r,io=new $r,ro=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=Xr(e.x,this.x),n=Xr(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Kr(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Kr(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,r=kr();return Pr(r,r,[-t.x,-t.y]),Rr(r,r,[n,i]),Pr(r,r,[e.x,e.y]),r},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,c=t.y,h=t.y+t.height,d=!(o<l||u<r||s<c||h<a);if(n){var p=1/0,f=0,g=Math.abs(o-l),v=Math.abs(u-r),y=Math.abs(s-c),m=Math.abs(h-a),x=Math.min(g,v),_=Math.min(y,m);o<l||u<r?x>f&&(f=x,g<v?$r.set(io,-g,0):$r.set(io,v,0)):x<p&&(p=x,g<v?$r.set(no,g,0):$r.set(no,-v,0)),s<c||h<a?_>f&&(f=_,y<m?$r.set(io,0,-y):$r.set(io,0,m)):x<p&&(p=x,y<m?$r.set(no,0,y):$r.set(no,0,-m))}return n&&$r.copy(n,d?no:io),d},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=n.x*r+a,t.y=n.y*o+s,t.width=n.width*r,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Jr.x=eo.x=n.x,Jr.y=to.y=n.y,Qr.x=to.x=n.x+n.width,Qr.y=eo.y=n.y+n.height,Jr.transform(i),to.transform(i),Qr.transform(i),eo.transform(i),t.x=Xr(Jr.x,Qr.x,eo.x,to.x),t.y=Xr(Jr.y,Qr.y,eo.y,to.y);var l=Kr(Jr.x,Qr.x,eo.x,to.x),u=Kr(Jr.y,Qr.y,eo.y,to.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}();const oo=ro;var ao={};function so(e,t){t=t||p;var n=ao[t];n||(n=ao[t]=new Fn(500));var i=n.get(e);return null==i&&(i=x.measureText(e,t).width,n.put(e,i)),i}function lo(e,t,n,i){var r=so(e,t),o=po(t),a=co(0,r,n),s=ho(0,o,i),l=new oo(a,s,r,o);return l}function uo(e,t,n,i){var r=((e||"")+"").split("\n"),o=r.length;if(1===o)return lo(r[0],t,n,i);for(var a=new oo(0,0,0,0),s=0;s<r.length;s++){var l=lo(r[s],t,n,i);0===s?a.copy(l):a.union(l)}return a}function co(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function ho(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function po(e){return so("国",e)}function fo(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function go(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=fo(i[0],n.width),u+=fo(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=h,e}var vo="__zr_normal__",yo=Ur.concat(["ignore"]),mo=U(Ur,(function(e,t){return e[t]=!0,e}),{ignore:!1}),xo={},_o=new oo(0,0,0,0),bo=function(){function e(e){this.id=P(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=t.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(t),null!=n.position){var u=_o;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(xo,n,u):go(xo,n,u),r.x=xo.x,r.y=xo.y,o=xo.align,a=xo.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=fo(c[0],u.width),d=fo(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;f&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=Zt,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ir:Cr},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Jn(t);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,ai(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},B(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(ie(e))for(var n=e,i=Y(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,e[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==vo)){var o=i.targetName,a=o?t[o]:t;i.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,yo)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null==e[r]||r in t||(t[r]=this[r])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(vo,!1,e)},e.prototype.useState=function(e,t,n,i){var r=e===vo,o=this.hasState();if(o||!r){var a=this.currentStates,s=this.stateTransition;if(!(z(a,e)>=0)||!t&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||r){r||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(e,t,n,u),h&&h.useState(e,t,n,u),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zt),l}O("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,o=e.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(e[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,h),g&&g.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zt)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=z(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),r=z(i,e),o=z(i,t)>=0;r>=0?o?i.splice(r,1):i[r]=t:n&&!o&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i<e.length;i++){var r=e[i];B(n,r),r.textConfig&&(t=t||{},B(t,r.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,i,r,o){var a=!(t&&i);t&&t.textConfig?(this.textConfig=B({},i?this.textConfig:n.textConfig),B(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<yo.length;u++){var c=yo[u],h=r&&mo[c];t&&null!=t[c]?h?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var d=this.animators[u],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(t||n)[p]:t||n)}l&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Zr,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),B(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Zt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var i=e?this[e]:this;var r=new Ji(i,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during((function(){i.updateDuringAnimation(t)})).done((function(){var t=i.animators,n=z(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];e&&e!==a.scope?r.push(a):a.stop(t)}return this.animators=r,this},e.prototype.animateTo=function(e,t,n){wo(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){wo(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,i){for(var r=wo(this,t,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Zt;function n(e,n,i,r){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[r]},set:function(t){e[r]=t}})}Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];o(this,e)}return this[n]},set:function(e){this[i]=e[0],this[r]=e[1],this[n]=e,o(this,e)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function wo(e,t,n,i,r){n=n||{};var o=[];ko(e,"",e,t,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function So(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}function Mo(e){return q(e[0])}function Co(e,t,n){if(q(t[n]))if(q(e[n])||(e[n]=[]),oe(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),So(e[n],t[n],i))}else{var r=t[n],o=e[n],a=r.length;if(Mo(r))for(var s=r[0].length,l=0;l<a;l++)o[l]?So(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else So(o,r,a);o.length=r.length}else e[n]=t[n]}function Io(e,t){return e===t||q(e)&&q(t)&&To(e,t)}function To(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function ko(e,t,n,i,r,o,a,s){for(var l=Y(i),u=r.duration,c=r.delay,h=r.additive,d=r.setToFinal,p=!ie(o),f=e.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=i[y];if(null!=m&&null!=n[y]&&(p||o[y]))if(!ie(m)||q(m)||se(m))g.push(y);else{if(t){s||(n[y]=m,e.updateDuringAnimation(t));continue}ko(e,y,n[y],m,r,o&&o[y],a,s)}else s||(n[y]=m,e.updateDuringAnimation(t),g.push(y))}var x=g.length;if(!h&&x)for(var _=0;_<f.length;_++){var b=f[_];if(b.targetName===t){var w=b.stopTracks(g);if(w){var S=z(f,b);f.splice(S,1)}}}if(r.force||(g=j(g,(function(e){return!Io(i[e],n[e])})),x=g.length),x>0||r.force&&!a.length){var M=void 0,C=void 0,I=void 0;if(s){C={},d&&(M={});for(_=0;_<x;_++){y=g[_];C[y]=n[y],d?M[y]=i[y]:n[y]=i[y]}}else if(d){I={};for(_=0;_<x;_++){y=g[_];I[y]=Bi(n[y]),Co(n,i,y)}}b=new Ji(n,!1,!1,h?j(f,(function(e){return e.targetName===t})):null);b.targetName=t,r.scope&&(b.scope=r.scope),d&&M&&b.whenWithKeys(0,M,g),I&&b.whenWithKeys(0,I,g),b.whenWithKeys(null==u?500:u,s?C:i,g).delay(c||0),e.addAnimator(b,t),a.push(b)}}H(bo,et),H(bo,Zr);const Ao=bo;var Do=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return De(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=z(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=z(n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var i=e[n];t&&i.removeSelfFromZr(t),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=e.call(t,i);i.isGroup&&!r&&i.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new oo(0,0,0,0),n=e||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(oo.applyTransform(t,s,l),r=r||t.clone(),r.union(t)):(r=r||s.clone(),r.union(s))}}return r||t},t}(Ao);Do.prototype.type="group";const Lo=Do;
/*!
* 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 Po={},Oo={};function Ro(e){delete Oo[e]}function Eo(e){if(!e)return!1;if("string"===typeof e)return si(e,1)<Mr;if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,r=0;r<i;r++)n+=si(t[r].color,1);return n/=i,n<Mr}return!1}var No=function(){function e(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var r=new en,o=n.renderer||"canvas";Po[o]||(o=Y(Po)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Po[o](t,r,n,e),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l=c.node||c.worker||s?null:new br(a.getViewportRoot(),a.root);this.handler=new Nt(r,a,l,a.root),this.animation=new tr({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},e.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Eo(e)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(e){var t,n=Qi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=Qi();t?(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(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Lo&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Ro(this.id)},e}();function Bo(e,t){var n=new No(P(),e,t);return Oo[n.id]=n,n}function Fo(e,t){Po[e]=t}var zo=1e-4,Vo=20;function Ho(e){return e.replace(/^\s+|\s+$/g,"")}function qo(e,t,n,i){var r=t[0],o=t[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*u+a}function Go(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 ee(e)?Ho(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function Wo(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),Vo),e=(+e).toFixed(t),n?e:+e}function Uo(e){return e.sort((function(e,t){return e-t})),e}function jo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return Zo(e)}function Zo(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function Yo(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function $o(e,t,n){if(!e[t])return 0;var i=U(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;var r=Math.pow(10,n),o=W(e,(function(e){return(isNaN(e)?0:e)/i*r*100})),a=100*r,s=W(o,(function(e){return Math.floor(e)})),l=U(s,(function(e,t){return e+t}),0),u=W(o,(function(e,t){return e-s[t]}));while(l<a){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,p=u.length;d<p;++d)u[d]>c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[t]/r}function Xo(e,t){var n=Math.max(jo(e),jo(t)),i=e+t;return n>Vo?i:Wo(i,n)}var Ko=9007199254740991;function Jo(e){var t=2*Math.PI;return(e%t+t)%t}function Qo(e){return e>-zo&&e<zo}var ea=/^(?:(\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 ta(e){if(e instanceof Date)return e;if(ee(e)){var t=ea.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}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)}return null==e?new Date(NaN):new Date(Math.round(e))}function na(e){return Math.pow(10,ia(e))}function ia(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function ra(e,t){var n,i=ia(e),r=Math.pow(10,i),o=e/r;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function oa(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function aa(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,o=e[i].close,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-n),t=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!==1?e.splice(i,1):i++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function sa(e){var t=parseFloat(e);return t==e&&(0!==t||!ee(e)||e.indexOf("x")<=0)?t:NaN}function la(e){return!isNaN(sa(e))}function ua(){return Math.round(9*Math.random())}function ca(e,t){return 0===t?e:ca(t,e%t)}function ha(e,t){return null==e?t:null==t?e:e*t/ca(e,t)}function da(e,t,n){return(t-e)*n+e}var pa="series\0",fa="\0_ec_\0";function ga(e){return e instanceof Array?e:null==e?[]:[e]}function va(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var ya=["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 ma(e){return!ie(e)||J(e)||e instanceof Date?e:e.value}function xa(e){return ie(e)&&!(e instanceof Array)}function _a(e,t,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=we();G(t,(function(e,n){ie(e)||(t[n]=null)}));var s=ba(e,a,n);return(i||r)&&wa(s,e,a,t),i&&Sa(s,t),i||r?Ma(s,t,r):o&&Ca(s,t),Ia(s),s}function ba(e,t,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<e.length;r++){var o=e[r];o&&null!=o.id&&t.set(o.id,r),i.push({existing:"replaceMerge"===n||La(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function wa(e,t,n,i){G(i,(function(r,o){if(r&&null!=r.id){var a=ka(r.id),s=n.get(a);if(null!=s){var l=e[s];ve(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=t[s],i[o]=null}}}))}function Sa(e,t){G(t,(function(n,i){if(n&&null!=n.name)for(var r=0;r<e.length;r++){var o=e[r].existing;if(!e[r].newOption&&o&&(null==o.id||null==n.id)&&!La(n)&&!La(o)&&Ta("name",o,n))return e[r].newOption=n,void(t[i]=null)}}))}function Ma(e,t,n){G(t,(function(t){if(t){var i,r=0;while((i=e[r])&&(i.newOption||La(i.existing)||i.existing&&null!=t.id&&!Ta("id",t,i.existing)))r++;i?(i.newOption=t,i.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),r++}}))}function Ca(e,t){G(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}function Ia(e){var t=we();G(e,(function(e){var n=e.existing;n&&t.set(n.id,e)})),G(e,(function(e){var n=e.newOption;ve(!n||null==n.id||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})})),G(e,(function(e,n){var i=e.existing,r=e.newOption,o=e.keyInfo;if(ie(r)){if(o.name=null!=r.name?ka(r.name):i?i.name:pa+n,i)o.id=ka(i.id);else if(null!=r.id)o.id=ka(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(t.get(o.id))}t.set(o.id,e)}}))}function Ta(e,t,n){var i=Aa(t[e],null),r=Aa(n[e],null);return null!=i&&null!=r&&i===r}function ka(e){return Aa(e,"")}function Aa(e,t){return null==e?t:ee(e)?e:ne(e)||te(e)?e+"":t}function Da(e){var t=e.name;return!(!t||!t.indexOf(pa))}function La(e){return e&&null!=e.id&&0===ka(e.id).indexOf(fa)}function Pa(e){return fa+e}function Oa(e,t,n){G(e,(function(e){var i=e.newOption;ie(i)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Ra(t,i,e.existing,n))}))}function Ra(e,t,n,i){var r=t.type?t.type:n?n.subType:i.determineSubType(e,t);return r}function Ea(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[o(n),o(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++){var o=Aa(e[i].seriesId,null);if(null==o)return;for(var a=ga(e[i].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(t[o]||(t[o]={}))[c]=1}}}function o(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var r=o(e[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function Na(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?J(t.dataIndex)?W(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?J(t.name)?W(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function Ba(){var e="__ec_inner_"+Fa++;return function(t){return t[e]||(t[e]={})}}var Fa=ua();function za(e,t,n){var i=Va(t,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each((function(t,i){var r=Ga(e,i,t,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]})),s}function Va(e,t){var n;if(ee(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var r=we(),o={},a=!1;return G(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&z(t.includeMainTypes,s)<0)){a=a||!!s;var u=r.get(s)||r.set(s,{});u[l]=e}}else o[n]=e})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Ha={useDefault:!0,enableAll:!1,enableNone:!1},qa={useDefault:!1,enableAll:!0,enableNone:!0};function Ga(e,t,n,i){i=i||Ha;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===r||!1===r?(ve(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(ve(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=e.queryComponents({mainType:t,index:r,id:o,name:a}),s)}function Wa(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Ua(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function ja(e){return"auto"===e?c.domSupported?"html":"richText":e||"html"}function Za(e,t){var n=we(),i=[];return G(e,(function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)})),{keys:i,buckets:n}}function Ya(e,t,n,i,r){var o=null==t||"auto"===t;if(null==i)return i;if(ne(i)){var a=da(n||0,i,r);return Wo(a,o?Math.max(jo(n||0),jo(i)):t)}if(ee(i))return r<1?n:i;for(var s=[],l=n,u=i,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var d=e.getDimensionInfo(h);if(d&&"ordinal"===d.type)s[h]=(r<1&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,f=u[h];a=da(p,f,r);s[h]=Wo(a,o?Math.max(jo(p),jo(f)):t)}}return s}var $a=".",Xa="___EC__COMPONENT__CONTAINER___",Ka="___EC__EXTENDED_CLASS___";function Ja(e){var t={main:"",sub:""};if(e){var n=e.split($a);t.main=n[0]||"",t.sub=n[1]||""}return t}function Qa(e){ve(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function es(e){return!(!e||!e[Ka])}function ts(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return ns(n)?t=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(n):(t=function(){(e.$constructor||n).apply(this,arguments)},V(t,this)),B(t.prototype,e),t[Ka]=!0,t.extend=this.extend,t.superCall=as,t.superApply=ss,t.superClass=n,t}}function ns(e){return Q(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function is(e,t){e.extend=t.extend}var rs=Math.round(10*Math.random());function os(e){var t=["__\0is_clz",rs++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function as(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function ss(e,t,n){return this.superClass.prototype[t].apply(e,n)}function ls(e){var t={};function n(e){var n=t[e.main];return n&&n[Xa]||(n=t[e.main]={},n[Xa]=!0),n}e.registerClass=function(e){var i=e.type||e.prototype.type;if(i){Qa(i),e.prototype.type=i;var r=Ja(i);if(r.sub){if(r.sub!==Xa){var o=n(r);o[r.sub]=e}}else t[r.main]=e}return e},e.getClass=function(e,n,i){var r=t[e];if(r&&r[Xa]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){var n=Ja(e),i=[],r=t[n.main];return r&&r[Xa]?G(r,(function(e,t){t!==Xa&&i.push(e)})):i.push(r),i},e.hasClass=function(e){var n=Ja(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return G(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=Ja(e),i=t[n.main];return i&&i[Xa]}}function us(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,r){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(i&&z(i,s)>=0||r&&z(r,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var cs=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],hs=us(cs),ds=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return hs(this,e,t)},e}(),ps=new Fn(50);function fs(e){if("string"===typeof e){var t=ps.get(e);return t&&t.image}return e}function gs(e,t,n,i,r){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=ps.get(e),a={hostEl:n,cb:i,cbPayload:r};return o?(t=o.image,!ys(t)&&o.pending.push(a)):(t=x.loadImage(e,vs,vs),t.__zrImageSrc=e,ps.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function vs(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function ys(e){return e&&e.width&&e.height}var ms=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function xs(e,t,n,i,r){if(!t)return"";var o=(e+"").split("\n");r=_s(t,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=bs(o[a],r);return o.join("\n")}function _s(e,t,n,i){i=i||{};var r=B({},i);r.font=t,n=de(n,"..."),r.maxIterations=de(i.maxIterations,2);var o=r.minChar=de(i.minChar,0);r.cnCharWidth=so("国",t);var a=r.ascCharWidth=so("a",t);r.placeholder=de(i.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=so(n,t);return u>s&&(n="",u=0),s=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=e,r}function bs(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var o=so(e,i);if(o<=n)return e;for(var a=0;;a++){if(o<=r||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?ws(e,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*r/o):0;e=e.substr(0,s),o=so(e,i)}return""===e&&(e=t.placeholder),e}function ws(e,t,n,i){for(var r=0,o=0,a=e.length;o<a&&r<t;o++){var s=e.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}function Ss(e,t){null!=e&&(e+="");var n,i=t.overflow,r=t.padding,o=t.font,a="truncate"===i,s=po(o),l=de(t.lineHeight,s),u=!!t.backgroundColor,c="truncate"===t.lineOverflow,h=t.width;n=null==h||"break"!==i&&"breakAll"!==i?e?e.split("\n"):[]:e?Ps(e,t.font,h,"breakAll"===i,0).lines:[];var d=n.length*l,p=de(t.height,d);if(d>p&&c){var f=Math.floor(p/l);n=n.slice(0,f)}if(e&&a&&null!=h)for(var g=_s(h,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;v<n.length;v++)n[v]=bs(n[v],g);var y=p,m=0;for(v=0;v<n.length;v++)m=Math.max(so(n[v],o),m);null==h&&(h=m);var x=m;return r&&(y+=r[0]+r[2],x+=r[1]+r[3],h+=r[1]+r[3]),u&&(x=h),{lines:n,height:p,outerWidth:x,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:d,width:h}}var Ms=function(){function e(){}return e}(),Cs=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Is=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 Ts(e,t){var n=new Is;if(null!=e&&(e+=""),!e)return n;var i,r=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=ms.lastIndex=0;while(null!=(i=ms.exec(e))){var u=i.index;u>l&&ks(n,e.substring(l,u),t,s),ks(n,i[2],t,s,i[1]),l=ms.lastIndex}l<e.length&&ks(n,e.substring(l,e.length),t,s);var c=[],h=0,d=0,p=t.padding,f="truncate"===a,g="truncate"===t.lineOverflow;function v(e,t,n){e.width=t,e.lineHeight=n,h+=n,d=Math.max(d,t)}e:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],x=0,_=0,b=0;b<m.tokens.length;b++){var w=m.tokens[b],S=w.styleName&&t.rich[w.styleName]||{},M=w.textPadding=S.padding,C=M?M[1]+M[3]:0,I=w.font=S.font||t.font;w.contentHeight=po(I);var T=de(S.height,w.contentHeight);if(w.innerHeight=T,M&&(T+=M[0]+M[2]),w.height=T,w.lineHeight=pe(S.lineHeight,t.lineHeight,T),w.align=S&&S.align||t.align,w.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&h+w.lineHeight>o){b>0?(m.tokens=m.tokens.slice(0,b),v(m,_,x),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var k=S.width,A=null==k||"auto"===k;if("string"===typeof k&&"%"===k.charAt(k.length-1))w.percentWidth=k,c.push(w),w.contentWidth=so(w.text,I);else{if(A){var D=S.backgroundColor,L=D&&D.image;L&&(L=fs(L),ys(L)&&(w.width=Math.max(w.width,L.width*T/L.height)))}var P=f&&null!=r?r-_:null;null!=P&&P<w.width?!A||P<C?(w.text="",w.width=w.contentWidth=0):(w.text=xs(w.text,P-C,I,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=so(w.text,I)):w.contentWidth=so(w.text,I)}w.width+=C,_+=w.width,S&&(x=Math.max(x,w.lineHeight))}v(m,_,x)}n.outerWidth=n.width=de(r,d),n.outerHeight=n.height=de(o,h),n.contentHeight=h,n.contentWidth=d,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(y=0;y<c.length;y++){w=c[y];var O=w.percentWidth;w.width=parseInt(O,10)/100*n.width}return n}function ks(e,t,n,i,r){var o,a,s=""===t,l=r&&n.rich[r]||{},u=e.lines,c=l.font||n.font,h=!1;if(i){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=fo(l.width,i.width)+p;u.length>0&&f+i.accumWidth>i.width&&(o=t.split("\n"),h=!0),i.accumWidth=f}else{var g=Ps(t,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new Ms;if(m.styleName=r,m.text=y,m.isLineHolder=!y&&!s,"number"===typeof l.width?m.width=l.width:m.width=a?a[v]:so(y,c),v||h)u.push(new Cs([m]));else{var x=(u[u.length-1]||(u[0]=new Cs)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=m:(y||!_||s)&&x.push(m)}}}function As(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var Ds=U(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Ls(e){return!As(e)||!!Ds[e]}function Ps(e,t,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<e.length;h++){var d=e.charAt(h);if("\n"!==d){var p=so(d,t),f=!i&&!Ls(d);(o.length?c+p>n:r+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(c+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var Os="__zr_style_"+Math.round(10*Math.random()),Rs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Es={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Rs[Os]=!0;var Ns=["z","z2","invisible"],Bs=["invisible"],Fs=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype._init=function(t){for(var n=Y(t),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(t[r]):e.prototype.attrKV.call(this,r,t[r])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&Hs(this,e,t)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return i.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new oo(0,0,0,0)),t?oo.applyTransform(e,n,t):e.copy(n),(r||o||a)&&(e.width+=2*r+Math.abs(o),e.height+=2*r+Math.abs(a),e.x=Math.min(e.x,e.x+o-r),e.y=Math.min(e.y,e.y+a-r));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new oo(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"===typeof e?this.style[e]=t:B(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Yt,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Yt)},t.prototype.styleUpdated=function(){this.__dirty&=~Yt},t.prototype.createStyle=function(e){return Me(Rs,e)},t.prototype.useStyle=function(e){e[Os]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Os]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Ns)},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Y(u),h=0;h<c.length;h++){var d=c[h];d in s&&(s[d]=s[d],this.style[d]=u[d])}var p=Y(s);for(h=0;h<p.length;h++){d=p[h];this.style[d]=this.style[d]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Bs:Ns;for(h=0;h<f.length;h++){d=f[h];n&&null!=n[d]?this[d]=n[d]:l&&null!=i[d]&&(this[d]=i[d])}},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,t){return B(e,t),e},t.prototype.getAnimationStyleProps=function(){return Es},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=Zt|Yt}(),t}(Ao),zs=new oo(0,0,0,0),Vs=new oo(0,0,0,0);function Hs(e,t,n){return zs.copy(e.getBoundingRect()),e.transform&&zs.applyTransform(e.transform),Vs.width=t,Vs.height=n,!zs.intersect(Vs)}const qs=Fs;var Gs=Math.min,Ws=Math.max,Us=Math.sin,js=Math.cos,Zs=2*Math.PI,Ys=Le(),$s=Le(),Xs=Le();function Ks(e,t,n){if(0!==e.length){for(var i=e[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<e.length;l++)i=e[l],r=Gs(r,i[0]),o=Ws(o,i[0]),a=Gs(a,i[1]),s=Ws(s,i[1]);t[0]=r,t[1]=a,n[0]=o,n[1]=s}}function Js(e,t,n,i,r,o){r[0]=Gs(e,n),r[1]=Gs(t,i),o[0]=Ws(e,n),o[1]=Ws(t,i)}var Qs=[],el=[];function tl(e,t,n,i,r,o,a,s,l,u){var c=_n,h=yn,d=c(e,n,r,a,Qs);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=h(e,n,r,a,Qs[p]);l[0]=Gs(f,l[0]),u[0]=Ws(f,u[0])}d=c(t,i,o,s,el);for(p=0;p<d;p++){var g=h(t,i,o,s,el[p]);l[1]=Gs(g,l[1]),u[1]=Ws(g,u[1])}l[0]=Gs(e,l[0]),u[0]=Ws(e,u[0]),l[0]=Gs(a,l[0]),u[0]=Ws(a,u[0]),l[1]=Gs(t,l[1]),u[1]=Ws(t,u[1]),l[1]=Gs(s,l[1]),u[1]=Ws(s,u[1])}function nl(e,t,n,i,r,o,a,s){var l=Tn,u=Mn,c=Ws(Gs(l(e,n,r),1),0),h=Ws(Gs(l(t,i,o),1),0),d=u(e,n,r,c),p=u(t,i,o,h);a[0]=Gs(e,r,d),a[1]=Gs(t,o,p),s[0]=Ws(e,r,d),s[1]=Ws(t,o,p)}function il(e,t,n,i,r,o,a,s,l){var u=Ye,c=$e,h=Math.abs(r-o);if(h%Zs<1e-4&&h>1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if(Ys[0]=js(r)*n+e,Ys[1]=Us(r)*i+t,$s[0]=js(o)*n+e,$s[1]=Us(o)*i+t,u(s,Ys,$s),c(l,Ys,$s),r%=Zs,r<0&&(r+=Zs),o%=Zs,o<0&&(o+=Zs),r>o&&!a?o+=Zs:r<o&&a&&(r+=Zs),a){var d=o;o=r,r=d}for(var p=0;p<o;p+=Math.PI/2)p>r&&(Xs[0]=js(p)*n+e,Xs[1]=Us(p)*i+t,u(s,Xs,s),c(l,Xs,l))}var rl={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ol=[],al=[],sl=[],ll=[],ul=[],cl=[],hl=Math.min,dl=Math.max,pl=Math.cos,fl=Math.sin,gl=Math.abs,vl=Math.PI,yl=2*vl,ml="undefined"!==typeof Float32Array,xl=[];function _l(e){var t=Math.round(e/vl*1e8)/1e8;return t%2*vl}function bl(e,t){var n=_l(e[0]);n<0&&(n+=yl);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=yl?r=n+yl:t&&n-r>=yl?r=n-yl:!t&&n>r?r=n+(yl-_l(n-r)):t&&n<r&&(r=n-(yl-_l(r-n))),e[0]=n,e[1]=r}var wl=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=gl(n/Sr/e)||0,this._uy=gl(n/Sr/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(rl.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=gl(e-this._xi),i=gl(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(rl.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){return this._drawPendingPt(),this.addData(rl.C,e,t,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(rl.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,o){this._drawPendingPt(),xl[0]=i,xl[1]=r,bl(xl,o),i=xl[0],r=xl[1];var a=r-i;return this.addData(rl.A,e,t,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=pl(r)*n+e,this._yi=fl(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(rl.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(rl.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!ml||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,r=0;r<t;r++)n+=e[r].len();ml&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<t;r++)for(var o=e[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},e.prototype.addData=function(e,t,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ml&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){sl[0]=sl[1]=ul[0]=ul[1]=Number.MAX_VALUE,ll[0]=ll[1]=cl[0]=cl[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,r=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(n=t[e],i=t[e+1],r=n,o=i),a){case rl.M:n=r=t[e++],i=o=t[e++],ul[0]=r,ul[1]=o,cl[0]=r,cl[1]=o;break;case rl.L:Js(n,i,t[e],t[e+1],ul,cl),n=t[e++],i=t[e++];break;case rl.C:tl(n,i,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],ul,cl),n=t[e++],i=t[e++];break;case rl.Q:nl(n,i,t[e++],t[e++],t[e],t[e+1],ul,cl),n=t[e++],i=t[e++];break;case rl.A:var l=t[e++],u=t[e++],c=t[e++],h=t[e++],d=t[e++],p=t[e++]+d;e+=1;var f=!t[e++];s&&(r=pl(d)*c+l,o=fl(d)*h+u),il(l,u,c,h,d,p,f,ul,cl),n=pl(p)*c+l,i=fl(p)*h+u;break;case rl.R:r=n=t[e++],o=i=t[e++];var g=t[e++],v=t[e++];Js(r,o,r+g,o+v,ul,cl);break;case rl.Z:n=r,i=o;break}Ye(sl,sl,ul),$e(ll,ll,cl)}return 0===e&&(sl[0]=sl[1]=ll[0]=ll[1]=0),new oo(sl[0],sl[1],ll[0]-sl[0],ll[1]-sl[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<t;){var d=e[h++],p=1===h;p&&(r=e[h],o=e[h+1],a=r,s=o);var f=-1;switch(d){case rl.M:r=a=e[h++],o=s=e[h++];break;case rl.L:var g=e[h++],v=e[h++],y=g-r,m=v-o;(gl(y)>n||gl(m)>i||h===t-1)&&(f=Math.sqrt(y*y+m*m),r=g,o=v);break;case rl.C:var x=e[h++],_=e[h++],b=(g=e[h++],v=e[h++],e[h++]),w=e[h++];f=Sn(r,o,x,_,g,v,b,w,10),r=b,o=w;break;case rl.Q:x=e[h++],_=e[h++],g=e[h++],v=e[h++];f=Dn(r,o,x,_,g,v,10),r=g,o=v;break;case rl.A:var S=e[h++],M=e[h++],C=e[h++],I=e[h++],T=e[h++],k=e[h++],A=k+T;h+=1;e[h++];p&&(a=pl(T)*C+S,s=fl(T)*I+M),f=dl(C,I)*hl(yl,Math.abs(k)),r=pl(A)*C+S,o=fl(A)*I+M;break;case rl.R:a=r=e[h++],s=o=e[h++];var D=e[h++],L=e[h++];f=2*D+2*L;break;case rl.Z:y=a-r,m=s-o;f=Math.sqrt(y*y+m*m),r=a,o=s;break}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,i,r,o,a,s,l,u,c,h,d,p=this.data,f=this._ux,g=this._uy,v=this._len,y=t<1,m=0,x=0,_=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=t*u,c))e:for(var b=0;b<v;){var w=p[b++],S=1===b;switch(S&&(r=p[b],o=p[b+1],n=r,i=o),w!==rl.L&&_>0&&(e.lineTo(h,d),_=0),w){case rl.M:n=r=p[b++],i=o=p[b++],e.moveTo(r,o);break;case rl.L:a=p[b++],s=p[b++];var M=gl(a-r),C=gl(s-o);if(M>f||C>g){if(y){var I=l[x++];if(m+I>c){var T=(c-m)/I;e.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break e}m+=I}e.lineTo(a,s),r=a,o=s,_=0}else{var k=M*M+C*C;k>_&&(h=a,d=s,_=k)}break;case rl.C:var A=p[b++],D=p[b++],L=p[b++],P=p[b++],O=p[b++],R=p[b++];if(y){I=l[x++];if(m+I>c){T=(c-m)/I;bn(r,A,L,O,T,ol),bn(o,D,P,R,T,al),e.bezierCurveTo(ol[1],al[1],ol[2],al[2],ol[3],al[3]);break e}m+=I}e.bezierCurveTo(A,D,L,P,O,R),r=O,o=R;break;case rl.Q:A=p[b++],D=p[b++],L=p[b++],P=p[b++];if(y){I=l[x++];if(m+I>c){T=(c-m)/I;kn(r,A,L,T,ol),kn(o,D,P,T,al),e.quadraticCurveTo(ol[1],al[1],ol[2],al[2]);break e}m+=I}e.quadraticCurveTo(A,D,L,P),r=L,o=P;break;case rl.A:var E=p[b++],N=p[b++],B=p[b++],F=p[b++],z=p[b++],V=p[b++],H=p[b++],q=!p[b++],G=B>F?B:F,W=gl(B-F)>.001,U=z+V,j=!1;if(y){I=l[x++];m+I>c&&(U=z+V*(c-m)/I,j=!0),m+=I}if(W&&e.ellipse?e.ellipse(E,N,B,F,H,z,U,q):e.arc(E,N,G,z,U,q),j)break e;S&&(n=pl(z)*B+E,i=fl(z)*F+N),r=pl(U)*B+E,o=fl(U)*F+N;break;case rl.R:n=r=p[b],i=o=p[b+1],a=p[b++],s=p[b++];var Z=p[b++],Y=p[b++];if(y){I=l[x++];if(m+I>c){var $=c-m;e.moveTo(a,s),e.lineTo(a+hl($,Z),s),$-=Z,$>0&&e.lineTo(a+Z,s+hl($,Y)),$-=Y,$>0&&e.lineTo(a+dl(Z-$,0),s+Y),$-=Z,$>0&&e.lineTo(a,s+dl(Y-$,0));break e}m+=I}e.rect(a,s,Z,Y);break;case rl.Z:if(y){I=l[x++];if(m+I>c){T=(c-m)/I;e.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break e}m+=I}e.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=rl,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Sl=wl;function Ml(e,t,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=e;if(a>t+s&&a>i+s||a<t-s&&a<i-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;l=(t-i)/(e-n),u=(e*i-n*t)/(e-n);var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function Cl(e,t,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>t+h&&c>i+h&&c>o+h&&c>s+h||c<t-h&&c<i-h&&c<o-h&&c<s-h||u>e+h&&u>n+h&&u>r+h&&u>a+h||u<e-h&&u<n-h&&u<r-h&&u<a-h)return!1;var d=wn(e,t,n,i,r,o,a,s,u,c,null);return d<=h/2}function Il(e,t,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>t+u&&l>i+u&&l>o+u||l<t-u&&l<i-u&&l<o-u||s>e+u&&s>n+u&&s>r+u||s<e-u&&s<n-u&&s<r-u)return!1;var c=An(e,t,n,i,r,o,s,l,null);return c<=u/2}var Tl=2*Math.PI;function kl(e){return e%=Tl,e<0&&(e+=Tl),e}var Al=2*Math.PI;function Dl(e,t,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%Al<1e-4)return!0;if(o){var h=i;i=kl(r),r=kl(h)}else i=kl(i),r=kl(r);i>r&&(r+=Al);var d=Math.atan2(l,s);return d<0&&(d+=Al),d>=i&&d<=r||d+Al>=i&&d+Al<=r}function Ll(e,t,n,i,r,o){if(o>t&&o>i||o<t&&o<i)return 0;if(i===t)return 0;var a=(o-t)/(i-t),s=i<t?1:-1;1!==a&&0!==a||(s=i<t?.5:-.5);var l=a*(n-e)+e;return l===r?1/0:l>r?s:0}var Pl=Sl.CMD,Ol=2*Math.PI,Rl=1e-4;function El(e,t){return Math.abs(e-t)<Rl}var Nl=[-1,-1,-1],Bl=[-1,-1];function Fl(){var e=Bl[0];Bl[0]=Bl[1],Bl[1]=e}function zl(e,t,n,i,r,o,a,s,l,u){if(u>t&&u>i&&u>o&&u>s||u<t&&u<i&&u<o&&u<s)return 0;var c=xn(t,i,o,s,u,Nl);if(0===c)return 0;for(var h=0,d=-1,p=void 0,f=void 0,g=0;g<c;g++){var v=Nl[g],y=0===v||1===v?.5:1,m=yn(e,n,r,a,v);m<l||(d<0&&(d=_n(t,i,o,s,Bl),Bl[1]<Bl[0]&&d>1&&Fl(),p=yn(t,i,o,s,Bl[0]),d>1&&(f=yn(t,i,o,s,Bl[1]))),2===d?v<Bl[0]?h+=p<t?y:-y:v<Bl[1]?h+=f<p?y:-y:h+=s<f?y:-y:v<Bl[0]?h+=p<t?y:-y:h+=s<p?y:-y)}return h}function Vl(e,t,n,i,r,o,a,s){if(s>t&&s>i&&s>o||s<t&&s<i&&s<o)return 0;var l=In(t,i,o,s,Nl);if(0===l)return 0;var u=Tn(t,i,o);if(u>=0&&u<=1){for(var c=0,h=Mn(t,i,o,u),d=0;d<l;d++){var p=0===Nl[d]||1===Nl[d]?.5:1,f=Mn(e,n,r,Nl[d]);f<a||(Nl[d]<u?c+=h<t?p:-p:c+=o<h?p:-p)}return c}p=0===Nl[0]||1===Nl[0]?.5:1,f=Mn(e,n,r,Nl[0]);return f<a?0:o<t?p:-p}function Hl(e,t,n,i,r,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Nl[0]=-l,Nl[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Ol-1e-4){i=0,r=Ol;var c=o?1:-1;return a>=Nl[0]+e&&a<=Nl[1]+e?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Ol,r+=Ol);for(var d=0,p=0;p<2;p++){var f=Nl[p];if(f+e>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Ol+g),(g>=i&&g<=r||g+Ol>=i&&g+Ol<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function ql(e,t,n,i,r){for(var o,a,s=e.data,l=e.len(),u=0,c=0,h=0,d=0,p=0,f=0;f<l;){var g=s[f++],v=1===f;switch(g===Pl.M&&f>1&&(n||(u+=Ll(c,h,d,p,i,r))),v&&(c=s[f],h=s[f+1],d=c,p=h),g){case Pl.M:d=s[f++],p=s[f++],c=d,h=p;break;case Pl.L:if(n){if(Ml(c,h,s[f],s[f+1],t,i,r))return!0}else u+=Ll(c,h,s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case Pl.C:if(n){if(Cl(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=zl(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case Pl.Q:if(n){if(Il(c,h,s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=Vl(c,h,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case Pl.A:var y=s[f++],m=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++];f+=1;var S=!!(1-s[f++]);o=Math.cos(b)*x+y,a=Math.sin(b)*_+m,v?(d=o,p=a):u+=Ll(c,h,o,a,i,r);var M=(i-y)*_/x+y;if(n){if(Dl(y,m,_,b,b+w,S,t,M,r))return!0}else u+=Hl(y,m,_,b,b+w,S,M,r);c=Math.cos(b+w)*x+y,h=Math.sin(b+w)*_+m;break;case Pl.R:d=c=s[f++],p=h=s[f++];var C=s[f++],I=s[f++];if(o=d+C,a=p+I,n){if(Ml(d,p,o,p,t,i,r)||Ml(o,p,o,a,t,i,r)||Ml(o,a,d,a,t,i,r)||Ml(d,a,d,p,t,i,r))return!0}else u+=Ll(o,p,o,a,i,r),u+=Ll(d,a,d,p,i,r);break;case Pl.Z:if(n){if(Ml(c,h,d,p,t,i,r))return!0}else u+=Ll(c,h,d,p,i,r);c=d,h=p;break}}return n||El(h,p)||(u+=Ll(c,h,d,p,i,r)||0),0!==u}function Gl(e,t,n){return ql(e,0,!1,t,n)}function Wl(e,t,n,i){return ql(e,t,!0,n,i)}var Ul=F({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Rs),jl={style:F({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Es.style)},Zl=Ur.concat(["invisible","culling","z","z2","zlevel","parent"]),Yl=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(e){n.buildPath(e,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Zl.length;++s)r[Zl[s]]=this[Zl[s]];r.__dirty|=Zt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Y(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=t[o];"style"===o?this.style?B(this.style,a):this.useStyle(a):"shape"===o?B(this.shape,a):e.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(ee(e)){var t=si(e,0);return t>.5?Cr:t>.2?Tr:Ir}if(e)return Ir}return Cr},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(ee(t)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=si(e,0)<Mr;if(i===r)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~$t},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Sl(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&$t)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Wl(o,a/s,e,t)))return!0}if(this.hasFill())return Gl(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=$t,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:B(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&$t)},t.prototype.createStyle=function(e){return Me(Ul,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=B({},i.shape),B(s,n.shape)):(s=B({},r?this.shape:i.shape),B(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=B({},this.shape);for(var u={},c=Y(s),h=0;h<c.length;h++){var d=c[h];"object"===typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return jl},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var i=t.call(this,n)||this;return e.init&&e.init.call(i,n),i}return De(n,t),n.prototype.getDefaultStyle=function(){return R(e.style)},n.prototype.getDefaultShape=function(){return R(e.shape)},n}(t);for(var i in e)"function"===typeof e[i]&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=Zt|Yt|$t}(),t}(qs);const $l=Yl;var Xl=F({strokeFirst:!0,font:p,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ul),Kl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Me(Xl,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=uo(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(qs);Kl.prototype.type="tspan";const Jl=Kl;var Ql=F({x:0,y:0},Rs),eu={style:F({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Es.style)};function tu(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t.prototype.createStyle=function(e){return Me(Ql,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i=tu(t.image)?t.image:this.__image;if(!i)return 0;var r="width"===e?"height":"width",o=t[r];return null==o?i[e]:i[e]/i[r]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return eu},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new oo(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(qs);nu.prototype.type="image";const iu=nu;function ru(e,t){var n,i,r,o,a,s=t.x,l=t.y,u=t.width,c=t.height,h=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(a=n+i,n*=u/a,i*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),i+r>c&&(a=i+r,i*=c/a,r*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-i,l),0!==i&&e.arc(s+u-i,l+i,i,-Math.PI/2,0),e.lineTo(s+u,l+c-r),0!==r&&e.arc(s+u-r,l+c-r,r,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ou=Math.round;function au(e,t,n){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;e.x1=i,e.x2=r,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(ou(2*i)===ou(2*r)&&(e.x1=e.x2=lu(i,s,!0)),ou(2*o)===ou(2*a)&&(e.y1=e.y2=lu(o,s,!0)),e):e}}function su(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=lu(i,s,!0),e.y=lu(r,s,!0),e.width=Math.max(lu(i+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(lu(r+a,s,!1)-e.y,0===a?0:1),e):e}}function lu(e,t,n){if(!t)return e;var i=ou(2*e);return(i+ou(t))%2===0?i/2:(i+(n?1:-1))/2}var uu=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),cu={},hu=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new uu},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=su(cu,t,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,i=t.y,r=t.width,o=t.height;t.r?ru(e,t):e.rect(n,i,r,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($l);hu.prototype.type="rect";const du=hu;var pu={fill:"#000"},fu=2,gu={style:F({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Es.style)},vu=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=pu,n.attr(t),n}return De(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Su(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new oo(0,0,0,0),t=this._children,n=[],i=null,r=0;r<t.length;r++){var o=t[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),i=i||e.clone(),i.union(e)):(i=i||a.clone(),i.union(a))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||pu},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,i=e.rich||n&&{};return B(e,t),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,t){for(var n=Y(t),i=0;i<n.length;i++){var r=n[i];e[r]=e[r]||{},B(e[r],t[r])}},t.prototype.getAnimationStyleProps=function(){return gu},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||p,n=e.padding,i=ku(e),r=Ss(i,e),o=Au(e),a=!!e.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,c=r.lines,h=r.lineHeight,d=this._defaultStyle,f=e.x||0,g=e.y||0,v=e.align||d.align||"left",y=e.verticalAlign||d.verticalAlign||"top",m=f,x=ho(g,r.contentHeight,y);if(o||n){var _=co(f,l,v),b=ho(g,s,y);o&&this._renderBackground(e,e,_,b,l,s)}x+=h/2,n&&(m=Tu(f,v,n),"top"===y?x+=n[0]:"bottom"===y&&(x-=n[2]));for(var w=0,S=!1,M=(Iu("fill"in e?e.fill:(S=!0,d.fill))),C=(Cu("stroke"in e?e.stroke:a||d.autoStroke&&!S?null:(w=fu,d.stroke))),I=e.textShadowBlur>0,T=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),k=r.calculatedLineHeight,A=0;A<c.length;A++){var D=this._getOrCreateChild(Jl),L=D.createStyle();D.useStyle(L),L.text=c[A],L.x=m,L.y=x,v&&(L.textAlign=v),L.textBaseline="middle",L.opacity=e.opacity,L.strokeFirst=!0,I&&(L.shadowBlur=e.textShadowBlur||0,L.shadowColor=e.textShadowColor||"transparent",L.shadowOffsetX=e.textShadowOffsetX||0,L.shadowOffsetY=e.textShadowOffsetY||0),L.stroke=C,L.fill=M,C&&(L.lineWidth=e.lineWidth||w,L.lineDash=e.lineDash,L.lineDashOffset=e.lineDashOffset||0),L.font=t,bu(L,e),x+=h,T&&D.setBoundingRect(new oo(co(L.x,e.width,L.textAlign),ho(L.y,k,L.textBaseline),u,k))}},t.prototype._updateRichTexts=function(){var e=this.style,t=ku(e),n=Ts(t,e),i=n.width,r=n.outerWidth,o=n.outerHeight,a=e.padding,s=e.x||0,l=e.y||0,u=this._defaultStyle,c=e.align||u.align,h=e.verticalAlign||u.verticalAlign,d=co(s,r,c),p=ho(l,o,h),f=d,g=p;a&&(f+=a[3],g+=a[0]);var v=f+i;Au(e)&&this._renderBackground(e,e,d,p,r,o);for(var y=!!e.backgroundColor,m=0;m<n.lines.length;m++){var x=n.lines[m],_=x.tokens,b=_.length,w=x.lineHeight,S=x.width,M=0,C=f,I=v,T=b-1,k=void 0;while(M<b&&(k=_[M],!k.align||"left"===k.align))this._placeToken(k,e,w,g,C,"left",y),S-=k.width,C+=k.width,M++;while(T>=0&&(k=_[T],"right"===k.align))this._placeToken(k,e,w,g,I,"right",y),S-=k.width,I-=k.width,T--;C+=(i-(C-f)-(v-I)-S)/2;while(M<=T)k=_[M],this._placeToken(k,e,w,g,C+k.width/2,"center",y),C+=k.width,M++;g+=w}},t.prototype._placeToken=function(e,t,n,i,r,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=i+n/2;"top"===l?u=i+e.height/2:"bottom"===l&&(u=i+n-e.height/2);var c=!e.isLineHolder&&Au(s);c&&this._renderBackground(s,t,"right"===o?r-e.width:"center"===o?r-e.width/2:r,u-e.height/2,e.width,e.height);var h=!!s.backgroundColor,d=e.textPadding;d&&(r=Tu(r,o,d),u-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Jl),g=f.createStyle();f.useStyle(g);var v=this._defaultStyle,y=!1,m=0,x=Iu("fill"in s?s.fill:"fill"in t?t.fill:(y=!0,v.fill)),_=Cu("stroke"in s?s.stroke:"stroke"in t?t.stroke:h||a||v.autoStroke&&!y?null:(m=fu,v.stroke)),b=s.textShadowBlur>0||t.textShadowBlur>0;g.text=e.text,g.x=r,g.y=u,b&&(g.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,g.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",g.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,g.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),g.textAlign=o,g.textBaseline="middle",g.font=e.font||p,g.opacity=pe(s.opacity,t.opacity,1),bu(g,s),_&&(g.lineWidth=pe(s.lineWidth,t.lineWidth,m),g.lineDash=de(s.lineDash,t.lineDash),g.lineDashOffset=t.lineDashOffset||0,g.stroke=_),x&&(g.fill=x);var w=e.contentWidth,S=e.contentHeight;f.setBoundingRect(new oo(co(g.x,w,g.textAlign),ho(g.y,S,g.textBaseline),w,S))},t.prototype._renderBackground=function(e,t,n,i,r,o){var a,s,l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,h=l&&l.image,d=l&&!h,p=e.borderRadius,f=this;if(d||e.lineHeight||u&&c){a=this._getOrCreateChild(du),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=p,a.dirtyShape()}if(d){var v=a.style;v.fill=l||null,v.fillOpacity=de(e.fillOpacity,1)}else if(h){s=this._getOrCreateChild(iu),s.onload=function(){f.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=i,y.width=r,y.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=de(e.strokeOpacity,1),v.lineDash=e.borderDash,v.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=e.shadowBlur||0,m.shadowColor=e.shadowColor||"transparent",m.shadowOffsetX=e.shadowOffsetX||0,m.shadowOffsetY=e.shadowOffsetY||0,m.opacity=pe(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return wu(e)&&(t=[e.fontStyle,e.fontWeight,_u(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&ye(t)||e.textFont||e.font},t}(qs),yu={left:!0,right:1,center:1},mu={top:1,bottom:1,middle:1},xu=["fontStyle","fontWeight","fontSize","fontFamily"];function _u(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?h+"px":e+"px":e}function bu(e,t){for(var n=0;n<xu.length;n++){var i=xu[n],r=t[i];null!=r&&(e[i]=r)}}function wu(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function Su(e){return Mu(e),G(e.rich,Mu),e}function Mu(e){if(e){e.font=vu.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||yu[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||mu[n]?n:"top";var i=e.padding;i&&(e.padding=ge(e.padding))}}function Cu(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function Iu(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function Tu(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function ku(e){var t=e.text;return null!=t&&(t+=""),t}function Au(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Du=vu;var Lu=Ba(),Pu=function(e,t,n,i){if(i){var r=Lu(i);r.dataIndex=n,r.dataType=t,r.seriesIndex=e,"group"===i.type&&i.traverse((function(i){var r=Lu(i);r.seriesIndex=e,r.dataIndex=n,r.dataType=t}))}},Ou=1,Ru={},Eu=Ba(),Nu=Ba(),Bu=0,Fu=1,zu=2,Vu=["emphasis","blur","select"],Hu=["normal","emphasis","blur","select"],qu=10,Gu=9,Wu="highlight",Uu="downplay",ju="select",Zu="unselect",Yu="toggleSelect";function $u(e){return null!=e&&"none"!==e}var Xu=new Fn(100);function Ku(e){if(ee(e)){var t=Xu.get(e);return t||(t=ti(e,-.1),Xu.put(e,t)),t}if(se(e)){var n=B({},e);return n.colorStops=W(e.colorStops,(function(e){return{offset:e.offset,color:ti(e.color,-.1)}})),n}return e}function Ju(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Qu(e){Ju(e,"emphasis",zu)}function ec(e){e.hoverState===zu&&Ju(e,"normal",Bu)}function tc(e){Ju(e,"blur",Fu)}function nc(e){e.hoverState===Fu&&Ju(e,"normal",Bu)}function ic(e){e.selected=!0}function rc(e){e.selected=!1}function oc(e,t,n){t(e,n)}function ac(e,t,n){oc(e,t,n),e.isGroup&&e.traverse((function(e){oc(e,t,n)}))}function sc(e,t){switch(t){case"emphasis":e.hoverState=zu;break;case"normal":e.hoverState=Bu;break;case"blur":e.hoverState=Fu;break;case"select":e.selected=!0}}function lc(e,t,n,i){for(var r=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}function uc(e,t,n,i){var r=n&&z(n,"select")>=0,o=!1;if(e instanceof $l){var a=Eu(e),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if($u(s)||$u(l)){i=i||{};var u=i.style||{};"inherit"===u.fill?(o=!0,i=B({},i),u=B({},u),u.fill=s):!$u(u.fill)&&$u(s)?(o=!0,i=B({},i),u=B({},u),u.fill=Ku(s)):!$u(u.stroke)&&$u(l)&&(o||(i=B({},i),u=B({},u)),u.stroke=Ku(l)),i.style=u}}if(i&&null==i.z2){o||(i=B({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(null!=c?c:qu)}return i}function cc(e,t,n){if(n&&null==n.z2){n=B({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:Gu)}return n}function hc(e,t,n){var i=z(e.currentStates,t)>=0,r=e.style.opacity,o=i?null:lc(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=B({},n),a=B({opacity:i?r:.1*o.opacity},a),n.style=a),n}function dc(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return uc(this,e,t,n);if("blur"===e)return hc(this,e,n);if("select"===e)return cc(this,e,n)}return n}function pc(e){e.stateProxy=dc;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=dc),n&&(n.stateProxy=dc)}function fc(e,t){!wc(e,t)&&!e.__highByOuter&&ac(e,Qu)}function gc(e,t){!wc(e,t)&&!e.__highByOuter&&ac(e,ec)}function vc(e,t){e.__highByOuter|=1<<(t||0),ac(e,Qu)}function yc(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ac(e,ec)}function mc(e){ac(e,tc)}function xc(e){ac(e,nc)}function _c(e){ac(e,ic)}function bc(e){ac(e,rc)}function wc(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Sc(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,r){var o=Nu(r),a="series"===t,s=a?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(e){nc(e)})),a&&n.push(r)),o.isBlured=!1})),G(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Mc(e,t,n,i){var r=i.getModel();function o(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&xc(i)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=r.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(e){var r=a===e,u=e.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!c||"series"===t&&r)){var h=i.getViewOfSeriesModel(e);if(h.group.traverse((function(e){tc(e)})),q(t))o(e.getData(),t);else if(ie(t))for(var d=Y(t),p=0;p<d.length;p++)o(e.getData(d[p]),t[d[p]]);l.push(e),Nu(e).isBlured=!0}})),r.eachComponent((function(e,t){if("series"!==e){var n=i.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function Cc(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){Nu(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(e){tc(e)}))}}}function Ic(e,t,n){var i=e.seriesIndex,r=e.getData(t.dataType);if(r){var o=Na(r,t);o=(J(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a){var s=r.count(),l=0;while(!a&&l<s)a=r.getItemGraphicEl(l++)}if(a){var u=Lu(a);Mc(i,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);null!=c&&Mc(i,c,h,n)}}}function Tc(e,t,n,i){var r={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return r;var o=i.getModel().getComponent(e,t);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Lu(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function kc(e,t,n){var i=Lu(e),r=Tc(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&Cc(i.componentMainType,i.componentIndex,n),G(o,(function(e){return fc(e,t)}))):(Mc(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Cc(i.componentMainType,i.componentIndex,n),fc(e,t))}function Ac(e,t,n){Sc(n);var i=Lu(e),r=Tc(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?G(r,(function(e){return gc(e,t)})):gc(e,t)}function Dc(e,t,n){if(Wc(t)){var i=t.dataType,r=e.getData(i),o=Na(r,t);J(o)||(o=[o]),e[t.type===Yu?"toggleSelect":t.type===ju?"select":"unselect"](o,i)}}function Lc(e){var t=e.getAllData();G(t,(function(t){var n=t.data,i=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,i)?_c(t):bc(t)}))}))}function Pc(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();G(n,(function(n){n.data;var i=n.type,r=e.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}}))})),t}function Oc(e,t,n){Vc(e,!0),ac(e,pc),Nc(e,t,n)}function Rc(e){Vc(e,!1)}function Ec(e,t,n,i){i?Rc(e):Oc(e,t,n)}function Nc(e,t,n){var i=Lu(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var Bc=["emphasis","blur","select"],Fc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zc(e,t,n,i){n=n||"itemStyle";for(var r=0;r<Bc.length;r++){var o=Bc[r],a=t.getModel([o,n]),s=e.ensureState(o);s.style=i?i(a):a[Fc[n]]()}}function Vc(e,t){var n=!1===t,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Hc(e){return!(!e||!e.__highDownDispatcher)}function qc(e,t,n){var i=Lu(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=n}function Gc(e){var t=Ru[e];return null==t&&Ou<=32&&(t=Ru[e]=Ou++),t}function Wc(e){var t=e.type;return t===ju||t===Zu||t===Yu}function Uc(e){var t=e.type;return t===Wu||t===Uu}function jc(e){var t=Eu(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Zc=Ba();function Yc(e,t,n,i,r){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l="update"===e;if(s){var u=void 0,c=void 0,h=void 0;i?(u=de(i.duration,200),c=de(i.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(h=o.delay)),Q(h)&&(h=h(n,r)),Q(u)&&(u=u(n));var d={duration:u||0,delay:h,easing:c};return d}return null}function $c(e,t,n,i,r,o,a){var s,l=!1;Q(r)?(a=o,o=r,r=null):ie(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=Yc(e,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(c&&c.duration>0){var h=c.duration,d=c.delay,p=c.easing,f={duration:h,delay:d||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,f):t.animateTo(n,f)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function Xc(e,t,n,i,r,o){$c("update",e,t,n,i,r,o)}function Kc(e,t,n,i,r,o){$c("enter",e,t,n,i,r,o)}function Jc(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if("leave"===n.scope)return!0}return!1}function Qc(e,t,n,i,r,o){Jc(e)||$c("leave",e,t,n,i,r,o)}function eh(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),Qc(e,{style:{opacity:0}},t,n,i)}function th(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||eh(e,t,n,i)})):eh(e,t,n,i)}function nh(e){Zc(e).oldStyle=e.style}function ih(e){return Zc(e).oldStyle}var rh={};function oh(e,t){for(var n=0;n<Vu.length;n++){var i=Vu[n],r=t[i],o=e.ensureState(i);o.style=o.style||{},o.style.text=r}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function ah(e,t,n){var i,r=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Q(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:i},u=0;u<Vu.length;u++){var c=Vu[u],h=t[c];l[c]=de(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function sh(e,t,n,i){n=n||rh;for(var r=e instanceof Du,o=!1,a=0;a<Hu.length;a++){var s=t[Hu[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?e:e.getTextContent();if(o){r||(l||(l=new Du,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=ah(n,t),c=t.normal,h=!!c.getShallow("show"),d=uh(c,i&&i.normal,n,!1,!r);d.text=u.normal,r||e.setTextConfig(ch(c,n,!1));for(a=0;a<Vu.length;a++){var p=Vu[a];s=t[p];if(s){var f=l.ensureState(p),g=!!de(s.getShallow("show"),h);if(g!==h&&(f.ignore=!g),f.style=uh(s,i&&i[p],n,!0,!r),f.style.text=u[p],!r){var v=e.ensureState(p);v.textConfig=ch(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(d.x=l.style.x),null!=l.style.y&&(d.y=l.style.y),l.ignore=!h,l.useStyle(d),l.dirty(),n.enableTextSetter&&(mh(l).setLabelText=function(e){var i=ah(n,t,e);oh(l,i)})}else l&&(l.ignore=!0);e.dirty()}function lh(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<Vu.length;i++){var r=Vu[i];n[r]=e.getModel([r,t])}return n}function uh(e,t,n,i,r){var o={};return hh(o,e,n,i,r),t&&B(o,t),o}function ch(e,t,n){t=t||{};var i,r={},o=e.getShallow("rotate"),a=de(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=t.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",r}function hh(e,t,n,i,r){n=n||rh;var o,a=t.ecModel,s=a&&a.option.textStyle,l=dh(t);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);vh(o[u]={},c,s,n,i,r,!1,!0)}o&&(e.rich=o);var h=t.get("overflow");h&&(e.overflow=h);var d=t.get("minMargin");null!=d&&(e.margin=d),vh(e,t,s,n,i,r,!0,!1)}function dh(e){var t;while(e&&e!==e.ecModel){var n=(e.option||rh).rich;if(n){t=t||{};for(var i=Y(n),r=0;r<i.length;r++){var o=i[r];t[o]=1}}e=e.parentModel}return t}var ph=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],fh=["align","lineHeight","width","height","tag","verticalAlign"],gh=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function vh(e,t,n,i,r,o,a,s){n=!r&&n||rh;var l=i&&i.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),h=de(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var d=de(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(e.lineWidth=d);var p=de(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=de(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),r||null!=h||s||(h=i&&i.defaultOpacity),null!=h&&(e.opacity=h),r||o||null==e.fill&&i.inheritColor&&(e.fill=i.inheritColor);for(var g=0;g<ph.length;g++){var v=ph[g],y=de(t.getShallow(v),n[v]);null!=y&&(e[v]=y)}for(g=0;g<fh.length;g++){v=fh[g],y=t.getShallow(v);null!=y&&(e[v]=y)}if(null==e.verticalAlign){var m=t.getShallow("baseline");null!=m&&(e.verticalAlign=m)}if(!a||!i.disableBox){for(g=0;g<gh.length;g++){v=gh[g],y=t.getShallow(v);null!=y&&(e[v]=y)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}function yh(e,t){var n=t&&t.getModel("textStyle");return ye([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var mh=Ba();function xh(e,t,n,i){if(e){var r=mh(e);r.prevValue=r.value,r.value=n;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function _h(e,t,n,i,r){var o=mh(e);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=de(o.interpolatedValue,o.prevValue),l=o.value;e.percent=0,(null==o.prevValue?Kc:Xc)(e,{percent:1},i,t,null,u)}function u(i){var u=Ya(n,o.precision,s,l,i);o.interpolatedValue=1===i?null:u;var c=ah({labelDataIndex:t,labelFetcher:r,defaultText:a?a(u):u+""},o.statesModels,u);oh(e,c)}}var bh=["textStyle","color"],wh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Sh=new Du,Mh=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(bh):null)},e.prototype.getFont=function(){return yh({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<wh.length;n++)t[wh[n]]=this.getShallow(wh[n]);return Sh.useStyle(t),Sh.update(),Sh.getBoundingRect()},e}();const Ch=Mh;var Ih=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Th=us(Ih),kh=function(){function e(){}return e.prototype.getLineStyle=function(e){return Th(this,e)},e}(),Ah=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Dh=us(Ah),Lh=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Dh(this,e,t)},e}(),Ph=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},e.prototype.mergeOption=function(e,t){E(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var r=this.parentModel;r&&(i=r.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,r=i?this.parsePath(t):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(R(this.option))},e.prototype.parsePath=function(e){return"string"===typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!c.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length;i++)if(e[i]&&(n=n&&"object"===typeof n?n[e[i]]:null,null==n))break;return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();ts(Ph),os(Ph),H(Ph,kh),H(Ph,Lh),H(Ph,ds),H(Ph,Ch);const Oh=Ph;var Rh=Math.round(10*Math.random());function Eh(e){return[e||"",Rh++].join("_")}function Nh(e){var t={};e.registerSubTypeDefaulter=function(e,n){var i=Ja(e);t[i.main]=n},e.determineSubType=function(n,i){var r=i.type;if(!r){var o=Ja(n).main;e.hasSubTypes(n)&&t[o]&&(r=t[o](i))}return r}}function Bh(e,t){function n(e){var n={},o=[];return G(e,(function(a){var s=i(n,a),l=s.originalDeps=t(a),u=r(l,e);s.entryCount=u.length,0===s.entryCount&&o.push(a),G(u,(function(e){z(s.predecessor,e)<0&&s.predecessor.push(e);var t=i(n,e);z(t.successor,e)<0&&t.successor.push(a)}))})),{graph:n,noEntryList:o}}function i(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function r(e,t){var n=[];return G(e,(function(e){z(t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,i,r){if(e.length){var o=n(t),a=o.graph,s=o.noEntryList,l={};G(e,(function(e){l[e]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),G(c.successor,h?p:d)}G(l,(function(){var e="";throw new Error(e)}))}function d(e){a[e].entryCount--,0===a[e].entryCount&&s.push(e)}function p(e){l[e]=!0,d(e)}}}function Fh(e,t){return E(E({},e,!0),t,!0)}const zh={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Vh={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}};var Hh="ZH",qh="EN",Gh=qh,Wh={},Uh={},jh=c.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(Hh)>-1?Hh:Gh}():Gh;function Zh(e,t){e=e.toUpperCase(),Uh[e]=new Oh(t),Wh[e]=t}function Yh(e){if(ee(e)){var t=Wh[e.toUpperCase()]||{};return e===Hh||e===qh?R(t):E(R(t),R(Wh[Gh]),!1)}return E(R(e),R(Wh[Gh]),!1)}function $h(e){return Uh[e]}function Xh(){return Uh[Gh]}Zh(qh,zh),Zh(Hh,Vh);var Kh=1e3,Jh=60*Kh,Qh=60*Jh,ed=24*Qh,td=365*ed,nd={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}"},id="{yyyy}-{MM}-{dd}",rd={year:"{yyyy}",month:"{yyyy}-{MM}",day:id,hour:id+" "+nd.hour,minute:id+" "+nd.minute,second:id+" "+nd.second,millisecond:nd.none},od=["year","month","day","hour","minute","second","millisecond"],ad=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function sd(e,t){return e+="","0000".substr(0,t-e.length)+e}function ld(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 ud(e){return e===ld(e)}function cd(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function hd(e,t,n,i){var r=ta(e),o=r[gd(n)](),a=r[vd(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[yd(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[md(n)](),h=(c-1)%12+1,d=r[xd(n)](),p=r[_d(n)](),f=r[bd(n)](),g=i instanceof Oh?i:$h(i||jh)||Xh(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),x=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,sd(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,sd(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,sd(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,sd(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,sd(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,sd(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,sd(f,3)).replace(/{S}/g,f+"")}function dd(e,t,n,i,r){var o=null;if(ee(n))o=n;else if(Q(n))o=n(e.value,t,{level:e.level});else{var a=B({},nd);if(e.level>0)for(var s=0;s<od.length;++s)a[od[s]]="{primary|"+a[od[s]]+"}";var l=n?!1===n.inherit?n:F(n,a):a,u=pd(e.value,r);if(l[u])o=l[u];else if(l.inherit){var c=ad.indexOf(u);for(s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(J(o)){var h=null==e.level?0:e.level>=0?e.level:o.length+e.level;h=Math.min(h,o.length-1),o=o[h]}}return hd(new Date(e.value),o,r,i)}function pd(e,t){var n=ta(e),i=n[vd(t)]()+1,r=n[yd(t)](),o=n[md(t)](),a=n[xd(t)](),s=n[_d(t)](),l=n[bd(t)](),u=0===l,c=u&&0===s,h=c&&0===a,d=h&&0===o,p=d&&1===r,f=p&&1===i;return f?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function fd(e,t,n){var i=ne(e)?ta(e):e;switch(t=t||pd(e,n),t){case"year":return i[gd(n)]();case"half-year":return i[vd(n)]()>=6?1:0;case"quarter":return Math.floor((i[vd(n)]()+1)/4);case"month":return i[vd(n)]();case"day":return i[yd(n)]();case"half-day":return i[md(n)]()/24;case"hour":return i[md(n)]();case"minute":return i[xd(n)]();case"second":return i[_d(n)]();case"millisecond":return i[bd(n)]()}}function gd(e){return e?"getUTCFullYear":"getFullYear"}function vd(e){return e?"getUTCMonth":"getMonth"}function yd(e){return e?"getUTCDate":"getDate"}function md(e){return e?"getUTCHours":"getHours"}function xd(e){return e?"getUTCMinutes":"getMinutes"}function _d(e){return e?"getUTCSeconds":"getSeconds"}function bd(e){return e?"getUTCMilliseconds":"getMilliseconds"}function wd(e){return e?"setUTCFullYear":"setFullYear"}function Sd(e){return e?"setUTCMonth":"setMonth"}function Md(e){return e?"setUTCDate":"setDate"}function Cd(e){return e?"setUTCHours":"setHours"}function Id(e){return e?"setUTCMinutes":"setMinutes"}function Td(e){return e?"setUTCSeconds":"setSeconds"}function kd(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Ad(e){if(!la(e))return ee(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Dd(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Ld=ge,Pd=/([&<>"'])/g,Od={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Rd(e){return null==e?"":(e+"").replace(Pd,(function(e,t){return Od[t]}))}function Ed(e,t,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(e){return e&&ye(e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var a="time"===t,s=e instanceof Date;if(a||s){var l=a?ta(e):e;if(!isNaN(+l))return hd(l,i,n);if(s)return"-"}if("ordinal"===t)return te(e)?r(e):ne(e)&&o(e)?e+"":"-";var u=sa(e);return o(u)?Ad(u):te(e)?r(e):"boolean"===typeof e?e+"":"-"}var Nd=["a","b","c","d","e","f","g"],Bd=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Fd(e,t,n){J(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=Nd[o];e=e.replace(Bd(a),Bd(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];e=e.replace(Bd(Nd[l],s),n?Rd(u):u)}return e}function zd(e,t,n){return G(t,(function(t,i){e=e.replace("{"+i+"}",n?Rd(t):t)})),e}function Vd(e,t){var n=ee(e)?{color:e,extraCssText:t}:e||{},i=n.color,r=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if("html"===o)return"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Rd(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Rd(i)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Hd(e,t){return t=t||"transparent",ee(e)?e:ie(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function qd(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Gd=G,Wd=["left","right","top","bottom","width","height"],Ud=[["width","left","right"],["height","top","bottom"]];function jd(e,t,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var g=d.width+(f?-f.x+d.x:0);c=o+g,c>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(f?-f.y+d.y:0);h=a+v,h>r||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=h+n)}))}var Zd=jd;K(jd,"vertical"),K(jd,"horizontal");function Yd(e,t,n){var i=t.width,r=t.height,o=Go(e.left,i),a=Go(e.top,r),s=Go(e.right,i),l=Go(e.bottom,r);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=r),n=Ld(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function $d(e,t,n){n=Ld(n||0);var i=t.width,r=t.height,o=Go(e.left,i),a=Go(e.top,r),s=Go(e.right,i),l=Go(e.bottom,r),u=Go(e.width,i),c=Go(e.height,r),h=n[2]+n[0],d=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),e.left||e.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d;break}switch(e.top||e.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new oo(o+n[3],a+n[0],u,c);return f.margin=n,f}function Xd(e,t,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!s&&!l)return!1;if("raw"===u)a="group"===e.type?new oo(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();a=a.clone(),a.applyTransform(c)}var h=$d(F({width:a.width,height:a.height},t),n,i),d=s?h.x-a.x:0,p=l?h.y-a.y:0;return"raw"===u?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===e&&e.markRedraw(),!0}function Kd(e,t){return null!=e[Ud[t][0]]||null!=e[Ud[t][1]]&&null!=e[Ud[t][2]]}function Jd(e){var t=e.layoutMode||e.constructor.layoutMode;return ie(t)?t:t?{type:t}:null}function Qd(e,t,n){var i=n&&n.ignoreSize;!J(i)&&(i=[i,i]);var r=a(Ud[0],0),o=a(Ud[1],1);function a(n,r){var o={},a=0,u={},c=0,h=2;if(Gd(n,(function(t){u[t]=e[t]})),Gd(n,(function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++})),i[r])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var d=0;d<n.length;d++){var p=n[d];if(!s(o,p)&&s(e,p)){o[p]=e[p];break}}return o}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){Gd(e,(function(e){t[e]=n[e]}))}u(Ud[0],e,r),u(Ud[1],e,o)}function ep(e){return tp({},e)}function tp(e,t){return t&&e&&Gd(Wd,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var np=Ba(),ip=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.uid=Eh("ec_cpt_model"),r}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Jd(this),i=n?ep(e):{},r=t.getTheme();E(e,r.get(this.mainType)),E(e,this.getDefaultOption()),n&&Qd(e,i,n)},t.prototype.mergeOption=function(e,t){E(this.option,e,!0);var n=Jd(this);n&&Qd(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!es(e))return e.defaultOption;var t=np(this);if(!t.defaultOption){var n=[],i=e;while(i){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=E(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return Ga(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Oh);function rp(e){var t=[];return G(ip.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=W(t,(function(e){return Ja(e).main})),"dataset"!==e&&z(t,"dataset")<=0&&t.unshift("dataset"),t}is(ip,Oh),ls(ip),Nh(ip),Bh(ip,rp);const op=ip;var ap="";"undefined"!==typeof navigator&&(ap=navigator.platform||"");var sp="rgba(0, 0, 0, 0.2)";const lp={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sp,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sp,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sp,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sp,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sp,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sp,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ap.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 up=we(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),cp="original",hp="arrayRows",dp="objectRows",pp="keyedColumns",fp="typedArray",gp="unknown",vp="column",yp="row",mp={Must:1,Might:2,Not:3},xp=Ba();function _p(e){xp(e).datasetMap=we()}function bp(e,t,n){var i={},r=Sp(t);if(!r||!e)return i;var o,a,s=[],l=[],u=t.ecModel,c=xp(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;e=e.slice(),G(e,(function(t,n){var r=ie(t)?t:e[n]={name:t};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function f(e){var t=e.dimsDef;return t?t.length:1}return G(e,(function(e,t){var n=e.name,r=f(e);if(null==o){var a=d.valueWayDim;p(i[n],a,r),p(l,a,r),d.valueWayDim+=r}else if(o===t)p(i[n],0,r),p(s,0,r);else{a=d.categoryWayDim;p(i[n],a,r),p(l,a,r),d.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function wp(e,t,n){var i={},r=Sp(e);if(!r)return i;var o,a=t.sourceFormat,s=t.dimensionsDefine;a!==dp&&a!==pp||G(s,(function(e,t){"name"===(ie(e)?e.name:e)&&(o=t)}));var l=function(){for(var e={},i={},r=[],l=0,u=Math.min(5,n);l<u;l++){var c=Ip(t.data,a,t.seriesLayoutBy,s,t.startIndex,l);r.push(c);var h=c===mp.Not;if(h&&null==e.v&&l!==o&&(e.v=l),(null==e.n||e.n===e.v||!h&&r[e.n]===mp.Not)&&(e.n=l),d(e)&&r[e.n]!==mp.Not)return e;h||(c===mp.Might&&null==i.v&&l!==o&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(i)?i:null}();if(l){i.value=[l.v];var u=null!=o?o:l.n;i.itemName=[u],i.seriesName=[u]}return i}function Sp(e){var t=e.get("data",!0);if(!t)return Ga(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Ha).models[0]}function Mp(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Ga(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Ha).models:[]}function Cp(e,t){return Ip(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Ip(e,t,n,i,r,o){var a,s,l,u=5;if(oe(e))return mp.Not;if(i){var c=i[o];ie(c)?(s=c.name,l=c.type):ee(c)&&(s=c)}if(null!=l)return"ordinal"===l?mp.Must:mp.Not;if(t===hp){var h=e;if(n===yp){for(var d=h[o],p=0;p<(d||[]).length&&p<u;p++)if(null!=(a=_(d[r+p])))return a}else for(p=0;p<h.length&&p<u;p++){var f=h[r+p];if(f&&null!=(a=_(f[o])))return a}}else if(t===dp){var g=e;if(!s)return mp.Not;for(p=0;p<g.length&&p<u;p++){var v=g[p];if(v&&null!=(a=_(v[s])))return a}}else if(t===pp){var y=e;if(!s)return mp.Not;d=y[s];if(!d||oe(d))return mp.Not;for(p=0;p<d.length&&p<u;p++)if(null!=(a=_(d[p])))return a}else if(t===cp){var m=e;for(p=0;p<m.length&&p<u;p++){v=m[p];var x=ma(v);if(!J(x))return mp.Not;if(null!=(a=_(x[o])))return a}}function _(e){var t=ee(e);return null!=e&&isFinite(e)&&""!==e?t?mp.Might:mp.Not:t&&"-"!==e?mp.Must:void 0}return mp.Not}var Tp=we();function kp(e,t){ve(null==Tp.get(e)&&t),Tp.set(e,t)}function Ap(e,t,n){var i=Tp.get(t);if(!i)return n;var r=i(e);return r?n.concat(r):n}var Dp,Lp,Pp,Op=Ba(),Rp=Ba(),Ep=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var i=ga(this.get("color",!0)),r=this.get("colorLayer",!0);return Fp(this,Op,i,r,e,t,n)},e.prototype.clearColorPalette=function(){zp(this,Op)},e}();function Np(e,t,n,i){var r=ga(e.get(["aria","decal","decals"]));return Fp(e,Rp,r,null,t,n,i)}function Bp(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}function Fp(e,t,n,i,r,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?Bp(i,a):n;if(c=c||n,c&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function zp(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Vp="\0_ec_inner",Hp=1;var qp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new Oh(i),this._locale=new Oh(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=Zp(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Zp(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):Pp(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&G(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=we(),s=t&&t.replaceMergeMainTypeMap;function l(t){var o=Ap(this,t,ga(e[t])),a=i.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=_a(a,o,l);Oa(u,t,op),n[t]=null,i.set(t,null),r.set(t,0);var c,h=[],d=[],p=0;G(u,(function(e,n){var i=e.existing,r=e.newOption;if(r){var o="series"===t,a=op.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(c)return void 0;c=!0}if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=B({componentIndex:n},e.keyInfo);i=new a(r,this,this,s),B(i,s),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),d.push(i),p++):(h.push(void 0),d.push(void 0))}),this),n[t]=h,i.set(t,d),r.set(t,p),"series"===t&&Dp(this)}_p(this),G(e,(function(e,t){null!=e&&(op.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?R(e):E(n[t],e,!0))})),s&&s.each((function(e,t){op.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),op.topologicalTravel(o,op.getAllClassMainTypes(),l,this),this._seriesIndices||Dp(this)},t.prototype.getOption=function(){var e=R(this.option);return G(e,(function(t,n){if(op.hasClass(n)){for(var i=ga(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!La(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[Vp],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,r=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=i?(n=[],G(ga(i),(function(e){a[e]&&n.push(a[e])}))):n=null!=r?Up("id",r,a):null!=o?Up("name",o,a):j(a,(function(e){return!!e})),jp(n,e)):[]},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,i=o(t),r=i?this.queryComponents(i):j(this._componentsMap.get(n),(function(e){return!!e}));return a(jp(r,e));function o(e){var t=n+"Index",i=n+"Id",r=n+"Name";return!e||null==e[t]&&null==e[i]&&null==e[r]?null:{mainType:n,index:e[t],id:e[i],name:e[r]}}function a(t){return e.filter?j(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if(Q(e)){var r=t,o=e;i.each((function(e,t){for(var n=0;e&&n<e.length;n++){var i=e[n];i&&o.call(r,t,i,i.componentIndex)}}))}else for(var a=ee(e)?i.get(e):ie(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Aa(e,null);return j(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return j(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return j(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){Lp(this),G(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},t.prototype.eachRawSeries=function(e,t){G(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){Lp(this),G(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return G(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Lp(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Lp(this);var n=[];G(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];e.call(t,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=we(n)},t.prototype.restoreData=function(e){Dp(this);var t=this._componentsMap,n=[];t.each((function(e,t){op.hasClass(t)&&n.push(t)})),op.topologicalTravel(n,op.getAllClassMainTypes(),(function(n){G(t.get(n),(function(t){!t||"series"===n&&Gp(t,e)||t.restoreData()}))}))},t.internalField=function(){Dp=function(e){var t=e._seriesIndices=[];G(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=we(t)},Lp=function(e){0},Pp=function(e,t){e.option={},e.option[Vp]=Hp,e._componentsMap=we({series:[]}),e._componentsCount=we();var n=t.aria;ie(n)&&null==n.enabled&&(n.enabled=!0),Wp(t,e._theme.option),E(t,lp,!1),e._mergeOption(t,null)}}(),t}(Oh);function Gp(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}function Wp(e,t){var n=e.color&&!e.colorLayer;G(t,(function(t,i){"colorLayer"===i&&n||op.hasClass(i)||("object"===typeof t?e[i]=e[i]?E(e[i],t,!1):R(t):null==e[i]&&(e[i]=t))}))}function Up(e,t,n){if(J(t)){var i=we();return G(t,(function(e){if(null!=e){var t=Aa(e,null);null!=t&&i.set(e,!0)}})),j(n,(function(t){return t&&i.get(t[e])}))}var r=Aa(t,null);return j(n,(function(t){return t&&null!=r&&t[e]===r}))}function jp(e,t){return t.hasOwnProperty("subType")?j(e,(function(e){return e&&e.subType===t.subType})):e}function Zp(e){var t=we();return e&&G(ga(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}H(qp,Ep);const Yp=qp;var $p=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Xp=function(){function e(e){G($p,(function(t){this[t]=X(e[t],e)}),this)}return e}();const Kp=Xp;var Jp={},Qp=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];G(Jp,(function(i,r){var o=i.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){G(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){Jp[e]=t},e.get=function(e){return Jp[e]},e}();const ef=Qp;var tf=/^(min|max)?(.+)$/,nf=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(G(ga(e.series),(function(e){e&&e.data&&oe(e.data)&&xe(e.data)})),G(ga(e.dataset),(function(e){e&&e.source&&oe(e.source)&&xe(e.source)}))),e=R(e);var i=this._optionBackup,r=rf(e,t,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],R(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=R(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!i.length&&!r)return a;for(var s=0,l=i.length;s<l;s++)of(i[s].query,t,n)&&o.push(s);return!o.length&&r&&(o=[-1]),o.length&&!sf(o,this._currentMediaIndices)&&(a=W(o,(function(e){return R(-1===e?r.option:i[e].option)}))),this._currentMediaIndices=o,a},e}();function rf(e,t,n){var i,r,o=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,h=!!(l||s||a&&a.timeline);function d(e){G(t,(function(t){t(e,n)}))}return a?(r=a,r.timeline||(r.timeline=s)):((h||c)&&(e.options=e.media=null),r=e),c&&J(u)&&G(u,(function(e){e&&e.option&&(e.query?o.push(e):i||(i=e))})),d(r),G(l,(function(e){return d(e)})),G(o,(function(e){return d(e.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}function of(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return G(e,(function(e,t){var n=t.match(tf);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();af(i[a],e,o)||(r=!1)}})),r}function af(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function sf(e,t){return e.join(",")===t.join(",")}const lf=nf;var uf=G,cf=ie,hf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function df(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=hf.length;n<i;n++){var r=hf[n],o=t.normal,a=t.emphasis;o&&o[r]&&(e[r]=e[r]||{},e[r].normal?E(e[r].normal,o[r]):e[r].normal=o[r],o[r]=null),a&&a[r]&&(e[r]=e[r]||{},e[r].emphasis?E(e[r].emphasis,a[r]):e[r].emphasis=a[r],a[r]=null)}}function pf(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,F(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function ff(e){pf(e,"itemStyle"),pf(e,"lineStyle"),pf(e,"areaStyle"),pf(e,"label"),pf(e,"labelLine"),pf(e,"upperLabel"),pf(e,"edgeLabel")}function gf(e,t){var n=cf(e)&&e[t],i=cf(n)&&n.textStyle;if(i){0;for(var r=0,o=ya.length;r<o;r++){var a=ya[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function vf(e){e&&(ff(e),gf(e,"label"),e.emphasis&&gf(e.emphasis,"label"))}function yf(e){if(cf(e)){df(e),ff(e),gf(e,"label"),gf(e,"upperLabel"),gf(e,"edgeLabel"),e.emphasis&&(gf(e.emphasis,"label"),gf(e.emphasis,"upperLabel"),gf(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(df(t),vf(t));var n=e.markLine;n&&(df(n),vf(n));var i=e.markArea;i&&vf(i);var r=e.data;if("graph"===e.type){r=r||e.nodes;var o=e.links||e.edges;if(o&&!oe(o))for(var a=0;a<o.length;a++)vf(o[a]);G(e.categories,(function(e){ff(e)}))}if(r&&!oe(r))for(a=0;a<r.length;a++)vf(r[a]);if(t=e.markPoint,t&&t.data){var s=t.data;for(a=0;a<s.length;a++)vf(s[a])}if(n=e.markLine,n&&n.data){var l=n.data;for(a=0;a<l.length;a++)J(l[a])?(vf(l[a][0]),vf(l[a][1])):vf(l[a])}"gauge"===e.type?(gf(e,"axisLabel"),gf(e,"title"),gf(e,"detail")):"treemap"===e.type?(pf(e.breadcrumb,"itemStyle"),G(e.levels,(function(e){ff(e)}))):"tree"===e.type&&ff(e.leaves)}}function mf(e){return J(e)?e:e?[e]:[]}function xf(e){return(J(e)?e[0]:e)||{}}function _f(e,t){uf(mf(e.series),(function(e){cf(e)&&yf(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),uf(n,(function(t){uf(mf(e[t]),(function(e){e&&(gf(e,"axisLabel"),gf(e.axisPointer,"label"))}))})),uf(mf(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;gf(t,"axisLabel"),gf(t&&t.axisPointer,"label")})),uf(mf(e.calendar),(function(e){pf(e,"itemStyle"),gf(e,"dayLabel"),gf(e,"monthLabel"),gf(e,"yearLabel")})),uf(mf(e.radar),(function(e){gf(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),uf(mf(e.geo),(function(e){cf(e)&&(vf(e),uf(mf(e.regions),(function(e){vf(e)})))})),uf(mf(e.timeline),(function(e){vf(e),pf(e,"label"),pf(e,"itemStyle"),pf(e,"controlStyle",!0);var t=e.data;J(t)&&G(t,(function(e){ie(e)&&(pf(e,"label"),pf(e,"itemStyle"))}))})),uf(mf(e.toolbox),(function(e){pf(e,"iconStyle"),uf(e.feature,(function(e){pf(e,"iconStyle")}))})),gf(xf(e.axisPointer),"label"),gf(xf(e.tooltip).axisPointer,"label")}function bf(e,t){for(var n=t.split(","),i=e,r=0;r<n.length;r++)if(i=i&&i[n[r]],null==i)break;return i}function wf(e,t,n,i){for(var r,o=t.split(","),a=e,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function Sf(e){e&&G(Mf,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var Mf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Cf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],If=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Tf(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<If.length;n++){var i=If[n][1],r=If[n][0];null!=t[i]&&(t[r]=t[i])}}function kf(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function Af(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Df(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}function Lf(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Lf(e[n].children,t)}function Pf(e,t){_f(e,t),e.series=ga(e.series),G(e.series,(function(e){if(ie(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),kf(e.label);var n=e.data;if(n&&!oe(n))for(var i=0;i<n.length;i++)kf(n[i]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=bf(e,"pointer.color");null!=r&&wf(e,"itemStyle.color",r)}else if("bar"===t){Tf(e),Tf(e.backgroundStyle),Tf(e.emphasis);n=e.data;if(n&&!oe(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(Tf(n[i]),Tf(n[i]&&n[i].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),Af(e),Lf(e.data,Af)}else"graph"===t||"sankey"===t?Df(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&F(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),Sf(e)}})),e.dataRange&&(e.visualMap=e.dataRange),G(Cf,(function(t){var n=e[t];n&&(J(n)||(n=[n]),G(n,(function(e){Sf(e)})))}))}function Of(e){var t=we();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),t.each(Rf)}function Rf(e){G(e,(function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,d,p=a.get(t.stackedDimension,c);if(isNaN(p))return r;s?d=a.getRawIndex(c):h=a.get(t.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var v=e[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var y=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=Xo(p,y),f=y;break}}}return i[0]=p,i[1]=f,i}))}))}var Ef,Nf,Bf,Ff,zf,Vf=function(){function e(e){this.data=e.data||(e.sourceFormat===pp?{}:[]),this.sourceFormat=e.sourceFormat||gp,this.seriesLayoutBy=e.seriesLayoutBy||vp,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&Cp(this,n)===mp.Must&&(i.type="ordinal")}}return e}();function Hf(e){return e instanceof Vf}function qf(e,t,n){n=n||Uf(e);var i=t.seriesLayoutBy,r=jf(e,n,i,t.sourceHeader,t.dimensions),o=new Vf({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:R(t)});return o}function Gf(e){return new Vf({data:e,sourceFormat:oe(e)?fp:cp})}function Wf(e){return new Vf({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:R(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Uf(e){var t=gp;if(oe(e))t=fp;else if(J(e)){0===e.length&&(t=hp);for(var n=0,i=e.length;n<i;n++){var r=e[n];if(null!=r){if(J(r)){t=hp;break}if(ie(r)){t=dp;break}}}}else if(ie(e))for(var o in e)if(Ie(e,o)&&q(e[o])){t=pp;break}return t}function jf(e,t,n,i,r){var o,a;if(!e)return{dimensionsDefine:Yf(r),startIndex:a,dimensionsDetectedCount:o};if(t===hp){var s=e;"auto"===i||null==i?$f((function(e){null!=e&&"-"!==e&&(ee(e)?null==a&&(a=1):a=0)}),n,s,10):a=ne(i)?i:i?1:0,r||1!==a||(r=[],$f((function(e,t){r[t]=null!=e?e+"":""}),n,s,1/0)),o=r?r.length:n===yp?s.length:s[0]?s[0].length:null}else if(t===dp)r||(r=Zf(e));else if(t===pp)r||(r=[],G(e,(function(e,t){r.push(t)})));else if(t===cp){var l=ma(e[0]);o=J(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Yf(r),dimensionsDetectedCount:o}}function Zf(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t){var i=[];return G(t,(function(e,t){i.push(t)})),i}}function Yf(e){if(e){var t=we();return W(e,(function(e,n){e=ie(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=t.get(i.name);return r?i.name+="-"+r.count++:t.set(i.name,{count:1}),i}))}}function $f(e,t,n,i){if(t===yp)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)e(o[r],r)}}function Xf(e){var t=e.sourceFormat;return t===dp||t===pp}var Kf=function(){function e(e,t){var n=Hf(e)?e:Gf(e);this._source=n;var i=this._data=n.data;n.sourceFormat===fp&&(this._offset=0,this._dimSize=t,this._data=i),zf(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;zf=function(e,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Ff[sg(a,s)];if(B(e,c),a===fp)e.getItem=t,e.count=i,e.fillStorage=n;else{var h=eg(a,s);e.getItem=X(h,null,r,l,u);var d=ig(a,s);e.count=X(d,null,r,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,r=i*e,o=0;o<i;o++)t[o]=n[r+o];return t},n=function(e,t,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,h=n[a],d=0;d<c;d++){var p=r[d*o+a];h[e+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}e={},e[hp+"_"+vp]={pure:!0,appendData:r},e[hp+"_"+yp]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[dp]={pure:!0,appendData:r},e[pp]={pure:!0,appendData:function(e){var t=this._data;G(e,(function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])}))}},e[cp]={appendData:r},e[fp]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Ff=e}(),e}(),Jf=function(e,t,n,i){return e[i]},Qf=(Ef={},Ef[hp+"_"+vp]=function(e,t,n,i){return e[i+t]},Ef[hp+"_"+yp]=function(e,t,n,i,r){i+=t;for(var o=r||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Ef[dp]=Jf,Ef[pp]=function(e,t,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=e[s];o[a]=l?l[i]:null}return o},Ef[cp]=Jf,Ef);function eg(e,t){var n=Qf[sg(e,t)];return n}var tg=function(e,t,n){return e.length},ng=(Nf={},Nf[hp+"_"+vp]=function(e,t,n){return Math.max(0,e.length-t)},Nf[hp+"_"+yp]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},Nf[dp]=tg,Nf[pp]=function(e,t,n){var i=n[0].name;var r=e[i];return r?r.length:0},Nf[cp]=tg,Nf);function ig(e,t){var n=ng[sg(e,t)];return n}var rg=function(e,t,n){return e[t]},og=(Bf={},Bf[hp]=rg,Bf[dp]=function(e,t,n){return e[n]},Bf[pp]=rg,Bf[cp]=function(e,t,n){var i=ma(e);return i instanceof Array?i[t]:i},Bf[fp]=rg,Bf);function ag(e){var t=og[e];return t}function sg(e,t){return e===hp?e+"_"+t:e}function lg(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r=e.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=r.getDimensionProperty(a);return ag(o)(i,a,s)}var l=i;return o===cp&&(l=ma(i)),l}}}var ug=/\{@(.+?)\}/g,cg=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,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:r,data:a,dataType:t,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,i,r,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);if(o&&(s.value=o.interpolatedValue),null!=i&&J(s.value)&&(s.value=s.value[i]),!r){var l=a.getItemModel(e);r=l.get("normal"===t?["label","formatter"]:[t,"label","formatter"])}if(Q(r))return s.status=t,s.dimensionIndex=i,r(s);if(ee(r)){var u=Fd(r,s);return u.replace(ug,(function(t,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=lg(a,e,r);if(o&&J(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return lg(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function hg(e){var t,n;return ie(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function dg(e){return new pg(e)}var pg=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d<p)){var f=this._progress;if(J(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,p,l,u);else this._doProgress(f,d,p,l,u)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,i,r){fg.reset(t,n,i,r),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:fg.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),J(t)&&!t.length&&(t=null)),this._progress=t,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(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),fg=function(){var e,t,n,i,r,o={reset:function(l,u,c,h){t=l,e=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%r*n+Math.ceil(t/r),a=t>=e?null:o<i?o:t;return t++,a}}();"undefined"!==typeof console&&console.warn&&console.log;function gg(e){0}function vg(e){throw new Error(e)}function yg(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||ne(e)||null==e||"-"===e||(e=+ta(e)),null==e||""===e?NaN:+e)}var mg=we({number:function(e){return parseFloat(e)},time:function(e){return+ta(e)},trim:function(e){return ee(e)?ye(e):e}});function xg(e){return mg.get(e)}var _g={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}},bg=function(){function e(e,t){if(!ne(t)){var n="";0,vg(n)}this._opFn=_g[e],this._rvalFloat=sa(t)}return e.prototype.evaluate=function(e){return ne(e)?this._opFn(e,this._rvalFloat):this._opFn(sa(e),this._rvalFloat)},e}(),wg=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ne(e)?e:sa(e),i=ne(t)?t:sa(t),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=ee(e),s=ee(t);a&&(n=s?e:0),s&&(i=a?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Sg=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=sa(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=sa(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Mg(e,t){return"eq"===e||"ne"===e?new Sg("eq"===e,t):Ie(_g,e)?new bg(e,t):null}var Cg=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return yg(e,t)},e}();function Ig(e,t){var n=new Cg,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==vp&&vg(a);var s=[],l={},u=e.dimensionsDefine;if(u)G(u,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(s.push(i),null!=n){var r="";Ie(l,n)&&vg(r),l[n]=i}}));else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var h=eg(r,vp);t.__isBuiltIn&&(n.getRawDataItem=function(e){return h(i,o,s,e)},n.getRawData=X(Tg,null,e)),n.cloneRawData=X(kg,null,e);var d=ig(r,vp);n.count=X(d,null,i,o,s);var p=ag(r);n.retrieveValue=function(e,t){var n=h(i,o,s,e);return f(n,t)};var f=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=s[t];return n?p(e,t,n.name):void 0}};return n.getDimensionInfo=X(Ag,null,s,l),n.cloneAllDimensionInfo=X(Dg,null,s),n}function Tg(e){var t=e.sourceFormat;if(!Eg(t)){var n="";0,vg(n)}return e.data}function kg(e){var t=e.sourceFormat,n=e.data;if(!Eg(t)){var i="";0,vg(i)}if(t===hp){for(var r=[],o=0,a=n.length;o<a;o++)r.push(n[o].slice());return r}if(t===dp){for(r=[],o=0,a=n.length;o<a;o++)r.push(B({},n[o]));return r}}function Ag(e,t,n){if(null!=n)return ne(n)||!isNaN(n)&&!Ie(t,n)?e[n]:Ie(t,n)?t[n]:void 0}function Dg(e){return R(e)}var Lg=we();function Pg(e){e=R(e);var t=e.type,n="";t||vg(n);var i=t.split(":");2!==i.length&&vg(n);var r=!1;"echarts"===i[0]&&(t=i[1],r=!0),e.__isBuiltIn=r,Lg.set(t,e)}function Og(e,t,n){var i=ga(e),r=i.length,o="";r||vg(o);for(var a=0,s=r;a<s;a++){var l=i[a];t=Rg(l,t,n,1===r?null:a),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function Rg(e,t,n,i){var r="";t.length||vg(r),ie(e)||vg(r);var o=e.type,a=Lg.get(o);a||vg(r);var s=W(t,(function(e){return Ig(e,a)})),l=ga(a.transform({upstream:s[0],upstreamList:s,config:R(e.config)}));return W(l,(function(e,n){var i="";ie(e)||vg(i),e.data||vg(i);var r,o=Uf(e.data);Eg(o)||vg(i);var a=t[0];if(a&&0===n&&!e.dimensions){var s=a.startIndex;s&&(e.data=a.data.slice(0,s).concat(e.data)),r={seriesLayoutBy:vp,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:vp,sourceHeader:0,dimensions:e.dimensions};return qf(e.data,r,null)}))}function Eg(e){return e===hp||e===dp}var Ng,Bg="undefined",Fg=typeof Uint32Array===Bg?Array:Uint32Array,zg=typeof Uint16Array===Bg?Array:Uint16Array,Vg=typeof Int32Array===Bg?Array:Int32Array,Hg=typeof Float64Array===Bg?Array:Float64Array,qg={float:Hg,int:Vg,ordinal:Array,number:Array,time:Hg};function Gg(e){return e>65535?Fg:zg}function Wg(){return[1/0,-1/0]}function Ug(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function jg(e,t,n,i,r){var o=qg[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(i)}var Zg=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=we()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),r=this.defaultDimValueGetter=Ng[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];Xf(i);this._dimensions=W(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(e);if(null!=r){if(i[r].type===t)return r}else r=i.length;return i[r]={type:t},n.set(e,r),this._chunks[r]=new qg[t||"float"](this._rawCount),this._rawExtent[r]=Wg(),r},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[e]=Wg());for(var s=r[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=t,i.ordinalOffset=a,i.type="ordinal"},e.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<r;l++){var u=i[l];jg(n,l,u.type,s,!0)}for(var c=[],h=a;h<s;h++)for(var d=h-a,p=0;p<r;p++){u=i[p];var f=Ng.arrayRows.call(this,e[d]||c,u.property,d,p);n[p][h]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=W(o,(function(e){return e.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=Wg()),jg(r,u,c.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,r,s);else for(var h=[],d=e;d<t;d++){h=i.getItem(d,h);for(var p=0;p<a;p++){var f=r[p],g=this._dimValueGetter(h,l[p],d,p);f[d]=g;var v=s[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],i=[];if(null==t){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=e;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var i=0,r=this.count();i<r;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;var i=0,r=this._count-1;while(i<=r){var o=(i+r)/2|0;if(t[o]<e)i=o+1;else{if(!(t[o]>e))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,r=i[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),d=t-r[h],p=Math.abs(d);p<=n&&((p<a||p===a&&d>=0&&s<0)&&(a=p,s=d,l=0),d===s&&(o[l++]=u))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r<i;r++)e[r]=t[r]}else e=new n(t.buffer,0,i)}else{n=Gg(this._rawCount);e=new n(this.count());for(r=0;r<e.length;r++)e[r]=r}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=Gg(n._rawCount),o=new r(i),a=[],s=e.length,l=0,u=e[0],c=n._chunks,h=0;h<i;h++){var d=void 0,p=n.getRawIndex(h);if(0===s)d=t(h);else if(1===s){var f=c[u][p];d=t(f,h)}else{for(var g=0;g<s;g++)a[g]=c[e[g]][p];a[g]=h,d=t.apply(null,a)}d&&(o[l++]=p)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=Y(e),r=i.length;if(!r)return this;var o=t.count(),a=Gg(t._rawCount),s=new a(o),l=0,u=i[0],c=e[u][0],h=e[u][1],d=t._chunks,p=!1;if(!t._indices){var f=0;if(1===r){for(var g=d[i[0]],v=0;v<n;v++){var y=g[v];(y>=c&&y<=h||isNaN(y))&&(s[l++]=f),f++}p=!0}else if(2===r){g=d[i[0]];var m=d[i[1]],x=e[i[1]][0],_=e[i[1]][1];for(v=0;v<n;v++){y=g[v];var b=m[v];(y>=c&&y<=h||isNaN(y))&&(b>=x&&b<=_||isNaN(b))&&(s[l++]=f),f++}p=!0}}if(!p)if(1===r)for(v=0;v<o;v++){var w=t.getRawIndex(v);y=d[i[0]][w];(y>=c&&y<=h||isNaN(y))&&(s[l++]=w)}else for(v=0;v<o;v++){for(var S=!0,M=(w=t.getRawIndex(v),0);M<r;M++){var C=i[M];y=d[C][w];(y<e[C][0]||y>e[C][1])&&(S=!1)}S&&(s[l++]=t.getRawIndex(v))}return l<o&&(t._indices=s),t._count=l,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var i=e._chunks,r=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=Wg();for(var c=0;c<a;c++){for(var h=e.getRawIndex(c),d=0;d<o;d++)s[d]=i[t[d]][h];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!==typeof p&&(r[0]=p,p=r);for(u=0;u<p.length;u++){var f=t[u],g=p[u],v=l[f],y=i[f];y&&(y[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),a=o._chunks,s=a[e],l=this.count(),u=0,c=Math.floor(1/t),h=this.getRawIndex(0),d=new(Gg(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;for(var p=1;p<l-1;p+=c){for(var f=Math.min(p+c,l-1),g=Math.min(p+2*c,l),v=(g+f)/2,y=0,m=f;m<g;m++){var x=this.getRawIndex(m),_=s[x];isNaN(_)||(y+=_)}y/=g-f;var b=p,w=Math.min(p+c,l),S=p-1,M=s[h];n=-1,r=b;var C=-1,I=0;for(m=b;m<w;m++){x=this.getRawIndex(m),_=s[x];isNaN(_)?(I++,C<0&&(C=x)):(i=Math.abs((S-v)*(_-M)-(S-m)*(y-M)),i>n&&(n=i,r=x))}I>0&&I<w-b&&(d[u++]=Math.min(C,r),r=Math.max(C,r)),d[u++]=r,h=r}return d[u++]=this.getRawIndex(l-1),o._count=u,o._indices=d,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,i){for(var r=this.clone([e],!0),o=r._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=r._rawExtent[e]=Wg(),h=new(Gg(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(p+i(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[d++]=y}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:t(r);break;case 1:t(i[e[0]][a],r);break;case 2:t(i[e[0]][a],i[e[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[e[s]][a];l[s]=r,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Wg();if(!t)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[e].slice();if(i=this._extent[e],i)return i.slice();i=n;for(var a=i[0],s=i[1],l=0;l<r;l++){var u=this.getRawIndex(l),c=t[u];c<a&&(a=c),c>s&&(s=c)}return i=[a,s],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][t]);return n},e.prototype.clone=function(t,n){var i=new e,r=this._chunks,o=t&&U(t,(function(e,t){return e[t]=!0,e}),{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?Ug(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=R(this._extent),e._rawExtent=R(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return yg(e[i],this._dimensions[i])}Ng={arrayRows:e,objectRows:function(e,t,n,i){return yg(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return yg(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}();const Yg=Zg;var $g=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Kg(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,t=[u._getVersionSign()]}else a=o.get("data",!0),s=oe(a)?fp:cp,t=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=de(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=de(c.sourceHeader,h.sourceHeader),f=de(c.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!p!==!!h.sourceHeader||f;e=g?[qf(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var v=n;if(r){var y=this._applyTransform(i);e=y.sourceList,t=y.upstreamSignList}else{var m=v.get("source",!0);e=[qf(m,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==e.length&&Jg(o)}var a=[],s=[];return G(e,(function(e){e.prepareSource();var t=e.getSource(r||0),n="";null==r||t||Jg(n),a.push(t),s.push(e._getVersionSign())})),i?t=Og(i,a,{datasetIndex:n.componentIndex}):null!=r&&(t=[Wf(a[0])]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var i=0,r=this._storeList,o=r[i];o||(o=r[i]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];Kg(this._sourceHost)&&s?a=s._innerGetDataStore(e,t,n):(a=new Yg,a.initData(new Kf(t,e.length),e)),o[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Kg(e)){var t=Sp(e);return t?[t.getSourceManager()]:[]}return W(Mp(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;if(Kg(i))e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Xg(e){var t=e.option.transform;t&&xe(e.option.transform)}function Kg(e){return"series"===e.mainType}function Jg(e){throw new Error(e)}var Qg="line-height:1";function ev(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,r=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Rd(i+"")+"px;color:"+Rd(n)+";font-weight:"+Rd(r+""),valueStyle:"font-size:"+Rd(a+"")+"px;color:"+Rd(o)+";font-weight:"+Rd(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var tv=[0,10,20,30],nv=["","\n","\n\n","\n\n\n"];function iv(e,t){return t.type=e,t}function rv(e){return"section"===e.type}function ov(e){return rv(e)?sv:lv}function av(e){if(rv(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return G(e.blocks,(function(e){var n=av(e);n>=t&&(t=n+ +(i&&(!n||rv(e)&&!e.noHeader)))})),t}return 0}function sv(e,t,n,i){var r=t.noHeader,o=cv(av(t)),a=[],s=t.blocks||[];ve(!s||J(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ie(u,l)){var c=new wg(u[l],null);s.sort((function(e,t){return c.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}G(s,(function(n,r){var s=t.valueFormatter,l=ov(n)(s?B(B({},e),{valueFormatter:s}):e,n,r>0?o.html:0,i);null!=l&&a.push(l)}));var h="richText"===e.renderMode?a.join(o.richText):hv(a.join(""),r?n:o.html);if(r)return h;var d=Ed(t.header,"ordinal",e.useUTC),p=ev(i,e.renderMode).nameStyle;return"richText"===e.renderMode?fv(e,d,p)+o.richText+h:hv('<div style="'+p+";"+Qg+';">'+Rd(d)+"</div>"+h,n)}function lv(e,t,n,i){var r=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return e=J(e)?e:[e],W(e,(function(e,t){return Ed(e,J(p)?p[t]:p,u)}))};if(!o||!a){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),d=o?"":Ed(l,"ordinal",u),p=t.valueType,f=a?[]:c(t.value),g=!s||!o,v=!s&&o,y=ev(i,r),m=y.nameStyle,x=y.valueStyle;return"richText"===r?(s?"":h)+(o?"":fv(e,d,m))+(a?"":gv(e,f,g,v,x)):hv((s?"":h)+(o?"":dv(d,!s,m))+(a?"":pv(f,g,v,x)),n)}}function uv(e,t,n,i,r,o){if(e){var a=ov(e),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function cv(e){return{html:tv[e],richText:nv[e]}}function hv(e,t){var n='<div style="clear:both"></div>',i="margin: "+t+"px 0 0";return'<div style="'+i+";"+Qg+';">'+e+n+"</div>"}function dv(e,t,n){var i=t?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+Rd(e)+"</span>"}function pv(e,t,n,i){var r=n?"10px":"20px",o=t?"float:right;margin-left:"+r:"";return e=J(e)?e:[e],'<span style="'+o+";"+i+'">'+W(e,(function(e){return Rd(e)})).join("&nbsp;&nbsp;")+"</span>"}function fv(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function gv(e,t,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(J(t)?t.join(" "):t,o)}function vv(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return Hd(i)}function yv(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var mv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=ua()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,r=Vd({color:t,type:e,renderMode:n,markerId:i});return ee(r)?r:(this.richTextStyles[i]=r.style,r.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};J(t)?G(t,(function(e){return B(n,e)})):B(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}();function xv(e){var t,n,i,r,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=J(h),p=vv(o,a);if(c>1||d&&!c){var f=_v(h,o,a,u,p);t=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=t=lg(l,a,u[0]),n=g.type}else r=t=d?h[0]:h;var v=Da(o),y=v&&o.name||"",m=l.getName(a),x=s?y:m;return iv("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[iv("nameValue",{markerType:"item",markerColor:p,name:x,noName:!ye(x),value:t,valueType:n})].concat(i||[])})}function _v(e,t,n,i,r){var o=t.getData(),a=U(e,(function(e,t,n){var i=o.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(iv("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return i.length?G(i,(function(e){c(lg(o,n,e),e)})):G(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var bv=Ba();function wv(e,t){return e.getName(t)||e.getId(t)}var Sv="__universalTransitionEnabled",Mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return o(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=dg({count:Tv,reset:kv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=bv(this).sourceManager=new $g(this);i.prepareSource();var r=this.getInitialData(e,n);Dv(r,this),this.dataTask.context.data=r,bv(this).dataBeforeProcessed=r,Cv(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Jd(this),i=n?ep(e):{},r=this.subType;op.hasClass(r)&&(r+="Series"),E(e,t.getTheme().get(this.subType)),E(e,this.getDefaultOption()),va(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Qd(e,i,n)},t.prototype.mergeOption=function(e,t){e=E(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Jd(this);n&&Qd(this.option,e,n);var i=bv(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(e,t);Dv(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,bv(this).dataBeforeProcessed=r,Cv(this),this._initSelectedMapFromData(r)},t.prototype.fillDataTextStyle=function(e){if(e&&!oe(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&va(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){var t=this.getRawData();t.appendData(e.data)},t.prototype.getData=function(e){var t=Pv(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return bv(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Pv(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}bv(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return we(e)},t.prototype.getSourceManager=function(){return bv(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return bv(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return xv({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(c.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=Ep.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=e[o],s=wv(r,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=Y(e),n=[],i=0;i<t.length;i++){var r=e[t[i]];r>=0&&n.push(r)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[wv(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Sv])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,r=this.option,o=r.selectedMode,a=t.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){ie(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=t[l],c=wv(e,u);s[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(u)}}else if("single"===o||!0===o){var h=t[a-1];c=wv(e,h);r.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(i={},i[c]=e.getRawIndex(h),i)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return op.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(op);function Cv(e){var t=e.name;Da(e)||(e.name=Iv(e)||t)}function Iv(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return G(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function Tv(e){return e.model.getRawData().count()}function kv(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Av}function Av(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Dv(e,t){G(Se(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,K(Lv,t))}))}function Lv(e,t){var n=Pv(e);return n&&n.setOutputEnd((t||this).count()),t}function Pv(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}H(Mv,cg),H(Mv,Ep),is(Mv,op);const Ov=Mv;var Rv=function(){function e(){this.group=new Lo,this.uid=Eh("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();ts(Rv),ls(Rv);const Ev=Rv;function Nv(){var e=Ba();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Bv=Sl.CMD,Fv=[[],[],[]],zv=Math.sqrt,Vv=Math.atan2;function Hv(e,t){if(t){var n,i,r,o,a,s,l=e.data,u=e.len(),c=Bv.M,h=Bv.C,d=Bv.L,p=Bv.R,f=Bv.A,g=Bv.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:i=1;break;case d:i=1;break;case h:i=3;break;case g:i=2;break;case f:var v=t[4],y=t[5],m=zv(t[0]*t[0]+t[1]*t[1]),x=zv(t[2]*t[2]+t[3]*t[3]),_=Vv(-t[1]/x,t[0]/m);l[r]*=m,l[r++]+=v,l[r]*=x,l[r++]+=y,l[r++]*=m,l[r++]*=x,l[r++]+=_,l[r++]+=_,r+=2,o=r;break;case p:s[0]=l[r++],s[1]=l[r++],Ze(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],Ze(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=Fv[a];b[0]=l[r++],b[1]=l[r++],Ze(b,b,t),l[o++]=b[0],l[o++]=b[1]}}e.increaseVersion()}}var qv=Math.sqrt,Gv=Math.sin,Wv=Math.cos,Uv=Math.PI;function jv(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Zv(e,t){return(e[0]*t[0]+e[1]*t[1])/(jv(e)*jv(t))}function Yv(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Zv(e,t))}function $v(e,t,n,i,r,o,a,s,l,u,c){var h=l*(Uv/180),d=Wv(h)*(e-n)/2+Gv(h)*(t-i)/2,p=-1*Gv(h)*(e-n)/2+Wv(h)*(t-i)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=qv(f),s*=qv(f));var g=(r===o?-1:1)*qv((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,v=g*a*p/s,y=g*-s*d/a,m=(e+n)/2+Wv(h)*v-Gv(h)*y,x=(t+i)/2+Gv(h)*v+Wv(h)*y,_=Yv([1,0],[(d-v)/a,(p-y)/s]),b=[(d-v)/a,(p-y)/s],w=[(-1*d-v)/a,(-1*p-y)/s],S=Yv(b,w);if(Zv(b,w)<=-1&&(S=Uv),Zv(b,w)>=1&&(S=0),S<0){var M=Math.round(S/Uv*1e6)/1e6;S=2*Uv+M%2*Uv}c.addData(u,m,x,a,s,_,S,h,o)}var Xv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Kv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Jv(e){var t=new Sl;if(!e)return t;var n,i=0,r=0,o=i,a=r,s=Sl.CMD,l=e.match(Xv);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,p=c.match(Kv)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);var v=0;while(v<f){var y=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=i,C=r,I=void 0,T=void 0;switch(h){case"l":i+=p[v++],r+=p[v++],d=s.L,t.addData(d,i,r);break;case"L":i=p[v++],r=p[v++],d=s.L,t.addData(d,i,r);break;case"m":i+=p[v++],r+=p[v++],d=s.M,t.addData(d,i,r),o=i,a=r,h="l";break;case"M":i=p[v++],r=p[v++],d=s.M,t.addData(d,i,r),o=i,a=r,h="L";break;case"h":i+=p[v++],d=s.L,t.addData(d,i,r);break;case"H":i=p[v++],d=s.L,t.addData(d,i,r);break;case"v":r+=p[v++],d=s.L,t.addData(d,i,r);break;case"V":r=p[v++],d=s.L,t.addData(d,i,r);break;case"C":d=s.C,t.addData(d,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),i=p[v-2],r=p[v-1];break;case"c":d=s.C,t.addData(d,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r),i+=p[v-2],r+=p[v-1];break;case"S":y=i,m=r,I=t.len(),T=t.data,n===s.C&&(y+=i-T[I-4],m+=r-T[I-3]),d=s.C,M=p[v++],C=p[v++],i=p[v++],r=p[v++],t.addData(d,y,m,M,C,i,r);break;case"s":y=i,m=r,I=t.len(),T=t.data,n===s.C&&(y+=i-T[I-4],m+=r-T[I-3]),d=s.C,M=i+p[v++],C=r+p[v++],i+=p[v++],r+=p[v++],t.addData(d,y,m,M,C,i,r);break;case"Q":M=p[v++],C=p[v++],i=p[v++],r=p[v++],d=s.Q,t.addData(d,M,C,i,r);break;case"q":M=p[v++]+i,C=p[v++]+r,i+=p[v++],r+=p[v++],d=s.Q,t.addData(d,M,C,i,r);break;case"T":y=i,m=r,I=t.len(),T=t.data,n===s.Q&&(y+=i-T[I-4],m+=r-T[I-3]),i=p[v++],r=p[v++],d=s.Q,t.addData(d,y,m,i,r);break;case"t":y=i,m=r,I=t.len(),T=t.data,n===s.Q&&(y+=i-T[I-4],m+=r-T[I-3]),i+=p[v++],r+=p[v++],d=s.Q,t.addData(d,y,m,i,r);break;case"A":x=p[v++],_=p[v++],b=p[v++],w=p[v++],S=p[v++],M=i,C=r,i=p[v++],r=p[v++],d=s.A,$v(M,C,i,r,w,S,x,_,b,d,t);break;case"a":x=p[v++],_=p[v++],b=p[v++],w=p[v++],S=p[v++],M=i,C=r,i+=p[v++],r+=p[v++],d=s.A,$v(M,C,i,r,w,S,x,_,b,d,t);break}}"z"!==h&&"Z"!==h||(d=s.Z,t.addData(d),i=o,r=a),n=d}return t.toStatic(),t}var Qv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t.prototype.applyTransform=function(e){},t}($l);function ey(e){return null!=e.setData}function ty(e,t){var n=Jv(e),i=B({},t);return i.buildPath=function(e){if(ey(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{t=e;n.rebuildPath(t,1)}},i.applyTransform=function(e){Hv(n,e),this.dirtyShape()},i}function ny(e,t){return new Qv(ty(e,t))}function iy(e,t){var n=ty(e,t),i=function(e){function t(t){var i=e.call(this,t)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return De(t,e),t}(Qv);return i}function ry(e,t){for(var n=[],i=e.length,r=0;r<i;r++){var o=e[r];n.push(o.getUpdatedPathProxy(!0))}var a=new $l(t);return a.createPathProxy(),a.buildPath=function(e){if(ey(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a}function oy(e,t){t=t||{};var n=new $l;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?Hv(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var ay=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),sy=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new ay},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}($l);sy.prototype.type="circle";const ly=sy;var uy=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),cy=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new uy},t.prototype.buildPath=function(e,t){var n=.5522848,i=t.cx,r=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(i-o,r),e.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),e.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),e.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),e.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),e.closePath()},t}($l);cy.prototype.type="ellipse";const hy=cy;var dy=Math.PI,py=2*dy,fy=Math.sin,gy=Math.cos,vy=Math.acos,yy=Math.atan2,my=Math.abs,xy=Math.sqrt,_y=Math.max,by=Math.min,wy=1e-4;function Sy(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,h=s-o,d=h*l-c*u;if(!(d*d<wy))return d=(c*(t-o)-h*(e-r))/d,[e+d*l,t+d*u]}function My(e,t,n,i,r,o,a){var s=e-n,l=t-i,u=(a?o:-o)/xy(s*s+l*l),c=u*l,h=-u*s,d=e+c,p=t+h,f=n+c,g=i+h,v=(d+f)/2,y=(p+g)/2,m=f-d,x=g-p,_=m*m+x*x,b=r-o,w=d*g-f*p,S=(x<0?-1:1)*xy(_y(0,b*b*_-w*w)),M=(w*x-m*S)/_,C=(-w*m-x*S)/_,I=(w*x+m*S)/_,T=(-w*m+x*S)/_,k=M-v,A=C-y,D=I-v,L=T-y;return k*k+A*A>D*D+L*L&&(M=I,C=T),{cx:M,cy:C,x0:-c,y0:-h,x1:M*(r/b-1),y1:C*(r/b-1)}}function Cy(e){var t;if(J(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Iy(e,t){var n,i=_y(t.r,0),r=_y(t.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=t.startAngle,u=t.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=t.cx,h=t.cy,d=!!t.clockwise,p=my(u-l),f=p>py&&p%py;if(f>wy&&(p=f),i>wy)if(p>py-wy)e.moveTo(c+i*gy(l),h+i*fy(l)),e.arc(c,h,i,l,u,!d),r>wy&&(e.moveTo(c+r*gy(u),h+r*fy(u)),e.arc(c,h,r,u,l,d));else{var g=void 0,v=void 0,y=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,C=void 0,I=void 0,T=void 0,k=void 0,A=void 0,D=void 0,L=i*gy(l),P=i*fy(l),O=r*gy(u),R=r*fy(u),E=p>wy;if(E){var N=t.cornerRadius;N&&(n=Cy(N),g=n[0],v=n[1],y=n[2],m=n[3]);var B=my(i-r)/2;if(x=by(B,y),_=by(B,m),b=by(B,g),w=by(B,v),C=S=_y(x,_),I=M=_y(b,w),(S>wy||M>wy)&&(T=i*gy(u),k=i*fy(u),A=r*gy(l),D=r*fy(l),p<dy)){var F=Sy(L,P,A,D,T,k,O,R);if(F){var z=L-F[0],V=P-F[1],H=T-F[0],q=k-F[1],G=1/fy(vy((z*H+V*q)/(xy(z*z+V*V)*xy(H*H+q*q)))/2),W=xy(F[0]*F[0]+F[1]*F[1]);C=by(S,(i-W)/(G+1)),I=by(M,(r-W)/(G-1))}}}if(E)if(C>wy){var U=by(y,C),j=by(m,C),Z=My(A,D,L,P,i,U,d),Y=My(T,k,O,R,i,j,d);e.moveTo(c+Z.cx+Z.x0,h+Z.cy+Z.y0),C<S&&U===j?e.arc(c+Z.cx,h+Z.cy,C,yy(Z.y0,Z.x0),yy(Y.y0,Y.x0),!d):(U>0&&e.arc(c+Z.cx,h+Z.cy,U,yy(Z.y0,Z.x0),yy(Z.y1,Z.x1),!d),e.arc(c,h,i,yy(Z.cy+Z.y1,Z.cx+Z.x1),yy(Y.cy+Y.y1,Y.cx+Y.x1),!d),j>0&&e.arc(c+Y.cx,h+Y.cy,j,yy(Y.y1,Y.x1),yy(Y.y0,Y.x0),!d))}else e.moveTo(c+L,h+P),e.arc(c,h,i,l,u,!d);else e.moveTo(c+L,h+P);if(r>wy&&E)if(I>wy){U=by(g,I),j=by(v,I),Z=My(O,R,T,k,r,-j,d),Y=My(L,P,A,D,r,-U,d);e.lineTo(c+Z.cx+Z.x0,h+Z.cy+Z.y0),I<M&&U===j?e.arc(c+Z.cx,h+Z.cy,I,yy(Z.y0,Z.x0),yy(Y.y0,Y.x0),!d):(j>0&&e.arc(c+Z.cx,h+Z.cy,j,yy(Z.y0,Z.x0),yy(Z.y1,Z.x1),!d),e.arc(c,h,r,yy(Z.cy+Z.y1,Z.cx+Z.x1),yy(Y.cy+Y.y1,Y.cx+Y.x1),d),U>0&&e.arc(c+Y.cx,h+Y.cy,U,yy(Y.y1,Y.x1),yy(Y.y0,Y.x0),!d))}else e.lineTo(c+O,h+R),e.arc(c,h,r,u,l,d);else e.lineTo(c+O,h+R)}else e.moveTo(c,h);e.closePath()}}}var Ty=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),ky=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new Ty},t.prototype.buildPath=function(e,t){Iy(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($l);ky.prototype.type="sector";const Ay=ky;var Dy=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Ly=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new Dy},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}($l);Ly.prototype.type="ring";const Py=Ly;function Oy(e,t,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=e.length;d<p;d++)Ye(a,a,e[d]),$e(s,s,e[d]);Ye(a,a,i[0]),$e(s,s,i[1])}for(d=0,p=e.length;d<p;d++){var f=e[d];if(n)r=e[d?d-1:p-1],o=e[(d+1)%p];else{if(0===d||d===p-1){l.push(Oe(e[d]));continue}r=e[d-1],o=e[d+1]}Be(u,o,r),Ve(u,u,t);var g=qe(f,r),v=qe(f,o),y=g+v;0!==y&&(g/=y,v/=y),Ve(c,u,-g),Ve(h,u,v);var m=Ee([],f,c),x=Ee([],f,h);i&&($e(m,m,a),Ye(m,m,s),$e(x,x,a),Ye(x,x,s)),l.push(m),l.push(x)}return n&&l.push(l.shift()),l}function Ry(e,t,n){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var o=Oy(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;s<h;s++)e.lineTo(r[s][0],r[s][1])}n&&e.closePath()}}var Ey=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Ny=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new Ey},t.prototype.buildPath=function(e,t){Ry(e,t,!0)},t}($l);Ny.prototype.type="polygon";const By=Ny;var Fy=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),zy=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Fy},t.prototype.buildPath=function(e,t){Ry(e,t,!1)},t}($l);zy.prototype.type="polyline";const Vy=zy;var Hy={},qy=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Gy=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qy},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=au(Hy,t,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=t.x1,i=t.y1,r=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),e.lineTo(r,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}($l);Gy.prototype.type="line";const Wy=Gy;var Uy=[],jy=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 Zy(e,t,n){var i=e.cpx2,r=e.cpy2;return null!=i||null!=r?[(n?mn:yn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?mn:yn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Cn:Mn)(e.x1,e.cpx1,e.x2,t),(n?Cn:Mn)(e.y1,e.cpy1,e.y2,t)]}var Yy=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jy},t.prototype.buildPath=function(e,t){var n=t.x1,i=t.y1,r=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,i),null==l||null==u?(c<1&&(kn(n,a,r,c,Uy),a=Uy[1],r=Uy[2],kn(i,s,o,c,Uy),s=Uy[1],o=Uy[2]),e.quadraticCurveTo(a,s,r,o)):(c<1&&(bn(n,a,l,r,c,Uy),a=Uy[1],l=Uy[2],r=Uy[3],bn(i,s,u,o,c,Uy),s=Uy[1],u=Uy[2],o=Uy[3]),e.bezierCurveTo(a,s,l,u,r,o)))},t.prototype.pointAt=function(e){return Zy(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Zy(this.shape,e,!0);return He(t,t)},t}($l);Yy.prototype.type="bezier-curve";const $y=Yy;var Xy=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),Ky=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Xy},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*r+n,u*r+i),e.arc(n,i,r,o,a,!s)},t}($l);Ky.prototype.type="arc";const Jy=Ky;var Qy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return De(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),$l.prototype.getBoundingRect.call(this)},t}($l);const em=Qy;var tm=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();const nm=tm;var im=function(e){function t(t,n,i,r,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return De(t,e),t}(nm);const rm=im;var om=function(e){function t(t,n,i,r,o){var a=e.call(this,r)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return De(t,e),t}(nm);const am=om;var sm=[0,0],lm=[0,0],um=new $r,cm=new $r,hm=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new $r;for(n=0;n<2;n++)this._axes[n]=new $r;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,r=e.x,o=e.y,a=r+e.width,s=o+e.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),t)for(var l=0;l<4;l++)n[l].transform(t);$r.sub(i[0],n[1],n[0]),$r.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return um.set(1/0,1/0),cm.set(0,0),!this._intersectCheckOneSide(this,e,um,cm,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,um,cm,i,-1)&&(n=!1,i)||i||$r.copy(t,n?um:cm),n},e.prototype._intersectCheckOneSide=function(e,t,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,sm),this._getProjMinMaxOnAxis(s,t._corners,lm),sm[1]<lm[0]||sm[0]>lm[1]){if(a=!1,r)return a;var u=Math.abs(lm[0]-sm[1]),c=Math.abs(sm[0]-lm[1]);Math.min(u,c)>i.len()&&(u<c?$r.scale(i,l,-u*o):$r.scale(i,l,c*o))}else if(n){u=Math.abs(lm[0]-sm[1]),c=Math.abs(sm[0]-lm[1]);Math.min(u,c)<n.len()&&(u<c?$r.scale(n,l,u*o):$r.scale(n,l,-c*o))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],r=this._origin,o=t[0].dot(i)+r[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(i)+r[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}();const dm=hm;var pm=[],fm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return De(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new oo(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(pm)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(e,t))return!0}return!1},t}(qs);const gm=fm;var vm=Math.max,ym=Math.min,mm={};function xm(e){return $l.extend(e)}var _m=iy;function bm(e,t){return _m(e,t)}function wm(e,t){mm[e]=t}function Sm(e){if(mm.hasOwnProperty(e))return mm[e]}function Mm(e,t,n,i){var r=ny(e,t);return n&&("center"===i&&(n=Im(n,r.getBoundingRect())),km(r,n)),r}function Cm(e,t,n){var i=new iu({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(Im(t,r))}}});return i}function Im(e,t){var n,i=t.width/t.height,r=e.height*i;r<=e.width?n=e.height:(r=e.width,n=r/i);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var Tm=ry;function km(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function Am(e){return au(e.shape,e.shape,e.style),e}function Dm(e){return su(e.shape,e.shape,e.style),e}var Lm=lu;function Pm(e,t){var n=Ar([]);while(e&&e!==t)Lr(n,e.getLocalTransform(),n),e=e.parent;return n}function Om(e,t,n){return t&&!q(t)&&(t=Zr.getLocalTransform(t)),n&&(t=Er([],t)),Ze([],e,t)}function Rm(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return o=Om(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Em(e){return!e.isGroup}function Nm(e){return null!=e.shape}function Bm(e,t,n){if(e&&t){var i=r(e);t.traverse((function(e){if(Em(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),Xc(e,r,n,Lu(e).dataIndex)}}}))}function r(e){var t={};return e.traverse((function(e){Em(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Nm(e)&&(t.shape=B({},e.shape)),t}}function Fm(e,t){return W(e,(function(e){var n=e[0];n=vm(n,t.x),n=ym(n,t.x+t.width);var i=e[1];return i=vm(i,t.y),i=ym(i,t.y+t.height),[n,i]}))}function zm(e,t){var n=vm(e.x,t.x),i=ym(e.x+e.width,t.x+t.width),r=vm(e.y,t.y),o=ym(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Vm(e,t,n){var i=B({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),F(r,n),new iu(i)):Mm(e.replace("path://",""),i,n,"center")}function Hm(e,t,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(qm(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function qm(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,h=s-o,d=Gm(c,h,l,u);if(Wm(d))return!1;var p=e-r,f=t-o,g=Gm(p,f,l,u)/d;if(g<0||g>1)return!1;var v=Gm(p,f,c,h)/d;return!(v<0||v>1)}function Gm(e,t,n,i){return e*i-n*t}function Wm(e){return e<=1e-6&&e>=-1e-6}function Um(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=ee(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&G(Y(l),(function(e){Ie(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=Lu(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:F({content:i,formatterParams:s},r)}}function jm(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Zm(e,t){if(e)if(J(e))for(var n=0;n<e.length;n++)jm(e[n],t);else jm(e,t)}wm("circle",ly),wm("ellipse",hy),wm("sector",Ay),wm("ring",Py),wm("polygon",By),wm("polyline",Vy),wm("rect",du),wm("line",Wy),wm("bezierCurve",$y),wm("arc",Jy);var Ym=Ba(),$m=Nv(),Xm=function(){function e(){this.group=new Lo,this.uid=Eh("viewChart"),this.renderTask=dg({plan:Qm,reset:ex}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){0},e.prototype.highlight=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&Jm(r,i,"emphasis")},e.prototype.downplay=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&Jm(r,i,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){Zm(this.group,e)},e.markUpdateMethod=function(e,t){Ym(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Km(e,t,n){e&&Hc(e)&&("emphasis"===t?vc:yc)(e,n)}function Jm(e,t,n){var i=Na(e,t),r=t&&null!=t.highlightKey?Gc(t.highlightKey):null;null!=i?G(ga(i),(function(t){Km(e.getItemGraphicEl(t),n,r)})):e.eachItemGraphicEl((function(e){Km(e,n,r)}))}function Qm(e){return $m(e.model)}function ex(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=r&&Ym(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,i,r),tx[l]}ts(Xm,["dispose"]),ls(Xm);var tx={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)}}};const nx=Xm;var ix="\0__throttleOriginMethod",rx="\0__throttleRate",ox="\0__throttleType";function ax(e,t,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];i=(new Date).getTime(),o=this,a=e;var p=s||t,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}function sx(e,t,n,i){var r=e[t];if(r){var o=r[ix]||r,a=r[ox],s=r[rx];if(s!==n||a!==i){if(null==n||!i)return e[t]=o;r=e[t]=ax(o,n,"debounce"===i),r[ix]=o,r[ox]=i,r[rx]=n}return r}}function lx(e,t){var n=e[t];n&&n[ix]&&(n.clear&&n.clear(),e[t]=n[ix])}var ux=Ba(),cx={itemStyle:us(Ah,!0),lineStyle:us(Ih,!0)},hx={lineStyle:"stroke",itemStyle:"fill"};function dx(e,t){var n=e.visualStyleMapper||cx[t];return n||(console.warn("Unkown style type '"+t+"'."),cx.itemStyle)}function px(e,t){var n=e.visualDrawType||hx[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var fx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),o=dx(e,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=px(e,i),u=a[l],c=Q(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Q(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||Q(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=B({},a);r[l]=c(i),t.setItemVisual(n,"style",r)}}}},gx=new Oh,vx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=dx(e,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){gx.option=n[i];var a=r(gx),s=e.ensureUniqueItemVisual(t,"style");B(s,a),gx.option.decal&&(e.setItemVisual(t,"decal",gx.option.decal),gx.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},yx={performRawSeries:!0,overallReset:function(e){var t=we();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),ux(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=ux(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=px(t,a);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",h=n.count();u[s]=t.getColorFromPalette(c,o,h)}}))}}))}},mx=Math.PI;function xx(e,t){t=t||{},F(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Lo,i=new du({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,o=new Du({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 du({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(r=new Jy({shape:{startAngle:-mx/2,endAngle:-mx/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*mx/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*mx/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var _x=function(){function e(e,t,n,i){this._stageTaskMap=we(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=we();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;G(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{}),o="";ve(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}G(e,(function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(e){a(i,e)&&(e.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);d.each((function(e){e.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,o=t.seriesTaskMap,a=t.seriesTaskMap=we(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||dg({plan:Ix,reset:Tx,count:Dx}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,o=t.overallTask=t.overallTask||dg({reset:bx});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=we(),l=e.seriesType,u=e.getTargetSeries,c=!0,h=!1,d="";function p(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(h=!0,dg({reset:Sx,onDirty:Cx})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,r._pipe(e,n)}ve(!e.createOnAllSeries,d),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(c=!1,G(n.getSeries(),p)),h&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return Q(e)&&(e={overallReset:e,seriesType:Lx(e)}),e.uid=Eh("stageHandler"),t&&(e.visualType=t),e},e}();function bx(e){e.overallReset(e.ecModel,e.api,e.payload)}function Sx(e){return e.overallProgress&&Mx}function Mx(){this.agent.dirty(),this.getDownstream().dirty()}function Cx(){this.agent&&this.agent.dirty()}function Ix(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Tx(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ga(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?W(t,(function(e,t){return Ax(t)})):kx}var kx=Ax(0);function Ax(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function Dx(e){return e.data.count()}function Lx(e){Px=null;try{e(Ox,Rx)}catch(wy){}return Px}var Px,Ox={},Rx={};function Ex(e,t){for(var n in t.prototype)e[n]=Te}Ex(Ox,Yp),Ex(Rx,Kp),Ox.eachSeriesByType=Ox.eachRawSeriesByType=function(e){Px=e},Ox.eachComponent=function(e){"series"===e.mainType&&e.subType&&(Px=e.subType)};const Nx=_x;var Bx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Fx={color:Bx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Bx]};var zx="#B9B8CE",Vx="#100C2A",Hx=function(){return{axisLine:{lineStyle:{color:zx}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},qx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Gx={darkMode:!0,color:qx,backgroundColor:Vx,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:zx}},textStyle:{color:zx},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:zx}},dataZoom:{borderColor:"#71708A",textStyle:{color:zx},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:zx}},timeline:{lineStyle:{color:zx},label:{color:zx},controlStyle:{color:zx,borderColor:zx}},calendar:{itemStyle:{color:Vx},dayLabel:{color:zx},monthLabel:{color:zx},yearLabel:{color:zx}},timeAxis:Hx(),logAxis:Hx(),valueAxis:Hx(),categoryAxis:Hx(),line:{symbol:"circle"},graph:{color:qx},gauge:{title:{color:zx},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:zx},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Gx.categoryAxis.splitLine.show=!1;const Wx=Gx;var Ux=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(ee(e)){var r=Ja(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};G(e,(function(e,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(t.mainType=h,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),jx=["symbol","symbolSize","symbolRotate","symbolOffset"],Zx=jx.concat(["symbolKeepAspect"]),Yx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<jx.length;a++){var s=jx[a],l=e.get(s);Q(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(B({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var u=Y(r);return{dataEach:o?c:null}}}function c(t,n){for(var i=e.getRawValue(n),o=e.getDataParams(n),a=0;a<u.length;a++){var s=u[a];t.setItemVisual(n,s,r[s](i,o))}}}},$x={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e)){var n=e.getData();return{dataEach:n.hasItemOption?i:null}}function i(e,t){for(var n=e.getItemModel(t),i=0;i<Zx.length;i++){var r=Zx[i],o=n.getShallow(r,!0);null!=o&&e.setItemVisual(t,r,o)}}}};function Xx(e,t,n){switch(n){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function Kx(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function Jx(e,t,n,i){switch(n){case"color":var r=e.ensureUniqueItemVisual(t,"style");r[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i);break;default:0}}function Qx(e,t){function n(t,n){var i=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){i.push(e.seriesIndex)})),i}G([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,i,r){t=B({},t),r.dispatchAction(B(t,{type:e[1],seriesIndex:n(i,t)}))}))}))}function e_(e,t,n,i,r){var o=e+t;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,i=e.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),u=Na(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:J(u)?l.getName(u[0]):l.getName(u),selected:ee(i)?i:B({},i)})}}))}function t_(e,t,n){e.on("selectchanged",(function(e){var i=n.getModel();e.isFromClick?(e_("map","selectchanged",t,i,e),e_("pie","selectchanged",t,i,e)):"select"===e.fromAction?(e_("map","selected",t,i,e),e_("pie","selected",t,i,e)):"unselect"===e.fromAction&&(e_("map","unselected",t,i,e),e_("pie","unselected",t,i,e))}))}function n_(e,t,n){var i;while(e){if(t(e)&&(i=e,n))break;e=e.__hostTarget||e.parent}return i}var i_=Math.round(9*Math.random()),r_="function"===typeof Object.defineProperty,o_=function(){function e(){this._id="__ec_inner_"+i_++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return r_?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype["delete"]=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}();const a_=o_;var s_=$l.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i+o),e.lineTo(n-r,i+o),e.closePath()}}),l_=$l.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i),e.lineTo(n,i+o),e.lineTo(n-r,i),e.closePath()}}),u_=$l.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),e.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),e.closePath()}}),c_=$l.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;e.moveTo(r,o),e.lineTo(r+a,o+n),e.lineTo(r,o+n/4*3),e.lineTo(r-a,o+n),e.lineTo(r,o),e.closePath()}}),h_={line:Wy,rect:du,roundRect:du,square:du,circle:ly,diamond:l_,pin:u_,arrow:c_,triangle:s_},d_={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var o=Math.min(n,i);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},p_={};G(h_,(function(e,t){p_[t]=new e}));var f_=$l.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=go(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=p_[i];r||(i="rect",r=p_[i]),d_[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function g_(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function v_(e,t,n,i,r,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),s=0===e.indexOf("image://")?Cm(e.slice(8),new oo(t,n,i,r),a?"center":"cover"):0===e.indexOf("path://")?Mm(e.slice(7),{},new oo(t,n,i,r),a?"center":"cover"):new f_({shape:{symbolType:e,x:t,y:n,width:i,height:r}}),s.__isEmptyBrush=l,s.setColor=g_,o&&s.setColor(o),s}function y_(e){return J(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function m_(e,t){if(null!=e)return J(e)||(e=[e,e]),[Go(e[0],t[0])||0,Go(de(e[1],e[0]),t[1])||0]}function x_(e){return isFinite(e)}function __(e,t,n){var i=null==t.x?0:t.x,r=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;t.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=x_(i)?i:0,r=x_(r)?r:1,o=x_(o)?o:0,a=x_(a)?a:0;var s=e.createLinearGradient(i,o,r,a);return s}function b_(e,t,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=x_(a)?a:.5,s=x_(s)?s:.5,l=l>=0&&x_(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function w_(e,t,n){for(var i="radial"===t.type?b_(e,t,n):__(e,t,n),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function S_(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function M_(e){return parseInt(e,10)}function C_(e,t,n){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(e);return(e[r]||M_(s[i])||M_(e.style[i]))-(M_(s[o])||0)-(M_(s[a])||0)|0}function I_(e,t){return e&&"solid"!==e&&t>0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:ne(e)?[e]:J(e)?e:null:null}function T_(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&I_(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(n){var r=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;r&&1!==r&&(n=W(n,(function(e){return e/r})),i/=r)}return[n,i]}var k_=new Sl(!0);function A_(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function D_(e){return"string"===typeof e&&"none"!==e}function L_(e){var t=e.fill;return null!=t&&"none"!==t}function P_(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function O_(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function R_(e,t,n){var i=gs(t.image,t.__image,n);if(ys(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*ke),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}function E_(e,t,n,i){var r,o=A_(n),a=L_(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||k_,h=t.__dirty;if(!i){var d=n.fill,p=n.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,v=a&&!!d.image,y=o&&!!p.image,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(m=h?w_(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(x=h?w_(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),v&&(_=h||!t.__canvasFillPattern?R_(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=_),y&&(b=h||!t.__canvasStrokePattern?R_(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),f?e.fillStyle=m:v&&(_?e.fillStyle=_:a=!1),g?e.strokeStyle=x:y&&(b?e.strokeStyle=b:o=!1)}var S,M,C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(r=T_(t),S=r[0],M=r[1]);var I=!0;(u||h&$t)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),I=!1),c.reset(),t.buildPath(c,t.shape,i),c.toStatic(),t.pathUpdated()),I&&c.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=M),i||(n.strokeFirst?(o&&O_(e,n),a&&P_(e,n)):(a&&P_(e,n),o&&O_(e,n))),S&&e.setLineDash([])}function N_(e,t,n){var i=t.__image=gs(n.image,t.__image,t,t.onload);if(i&&ys(i)){var r=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,d=s-c;e.drawImage(i,u,c,h,d,r,o,a,s)}else e.drawImage(i,r,o,a,s)}}function B_(e,t,n){var i,r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||p,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(i=T_(t),o=i[0],a=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(A_(n)&&e.strokeText(r,n.x,n.y),L_(n)&&e.fillText(r,n.x,n.y)):(L_(n)&&e.fillText(r,n.x,n.y),A_(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}var F_=["shadowBlur","shadowOffsetX","shadowOffsetY"],z_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function V_(e,t,n,i,r){var o=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){K_(e,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Rs.opacity:a}(i||t.blend!==n.blend)&&(o||(K_(e,r),o=!0),e.globalCompositeOperation=t.blend||Rs.blend);for(var s=0;s<F_.length;s++){var l=F_[s];(i||t[l]!==n[l])&&(o||(K_(e,r),o=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(o||(K_(e,r),o=!0),e.shadowColor=t.shadowColor||Rs.shadowColor),o}function H_(e,t,n,i,r){var o=J_(t,r.inHover),a=i?null:n&&J_(n,r.inHover)||{};if(o===a)return!1;var s=V_(e,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(K_(e,r),s=!0),D_(o.fill)&&(e.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(K_(e,r),s=!0),D_(o.stroke)&&(e.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(K_(e,r),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(K_(e,r),s=!0),e.lineWidth=u)}for(var c=0;c<z_.length;c++){var h=z_[c],d=h[0];(i||o[d]!==a[d])&&(s||(K_(e,r),s=!0),e[d]=o[d]||h[1])}return s}function q_(e,t,n,i,r){return V_(e,J_(t,r.inHover),n&&J_(n,r.inHover),i,r)}function G_(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}function W_(e,t,n){for(var i=!1,r=0;r<e.length;r++){var o=e[r];i=i||o.isZeroArea(),G_(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=i}function U_(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 j_=1,Z_=2,Y_=3,$_=4;function X_(e){var t=L_(e),n=A_(e);return!(e.lineDash||!(+t^+n)||t&&"string"!==typeof e.fill||n&&"string"!==typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function K_(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function J_(e,t){return t&&e.__hoverStyle||e.style}function Q_(e,t){eb(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function eb(e,t,n,i){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~Zt,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!S_(o,a)||(a&&a.length&&(K_(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(K_(e,n),e.save(),W_(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof $l&&t.autoBatch&&X_(t.style);s||U_(r,u.transform)?(K_(e,n),G_(e,t)):c||K_(e,n);var h=J_(t,n.inHover);t instanceof $l?(n.lastDrawType!==j_&&(l=!0,n.lastDrawType=j_),H_(e,t,u,l,n),c&&(n.batchFill||n.batchStroke)||e.beginPath(),E_(e,t,h,c),c&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):t instanceof Jl?(n.lastDrawType!==Y_&&(l=!0,n.lastDrawType=Y_),H_(e,t,u,l,n),B_(e,t,h)):t instanceof iu?(n.lastDrawType!==Z_&&(l=!0,n.lastDrawType=Z_),q_(e,t,u,l,n),N_(e,t,h)):t.getTemporalDisplayables&&(n.lastDrawType!==$_&&(l=!0,n.lastDrawType=$_),tb(e,t,n)),c&&i&&K_(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}function tb(e,t,n){var i=t.getDisplayables(),r=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=i.length;o<a;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),eb(e,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=r.length;u<c;u++){l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),eb(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var nb=new a_,ib=new Fn(100),rb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ob(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r="svg"===i.painter.type;e.dirty&&nb["delete"](e);var o=nb.get(e);if(o)return o;var a=F(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,nb.set(e,s),e.dirty=!1,s;function l(e){for(var t,o=[n],s=!0,l=0;l<rb.length;++l){var u=a[rb[l]];if(null!=u&&!J(u)&&!ee(u)&&!ne(u)&&"boolean"!==typeof u){s=!1;break}o.push(u)}if(s){t=o.join(",")+(r?"-svg":"");var c=ib.get(t);c&&(r?e.svgElement=c:e.image=c)}var h,d=sb(a.dashArrayX),p=lb(a.dashArrayY),f=ab(a.symbol),g=ub(d),v=cb(p),y=!r&&x.createCanvas(),m=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=b();function b(){for(var e=1,t=0,n=g.length;t<n;++t)e=ha(e,g[t]);var i=1;for(t=0,n=f.length;t<n;++t)i=ha(i,f[t].length);e*=i;var r=v*g.length*f.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}function w(){h&&(h.clearRect(0,0,y.width,y.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,y.width,y.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0)){var o=-v,s=0,l=0,u=0;while(o<_.height){if(s%2===0){var c=l/2%f.length,g=0,x=0,b=0;while(g<2*_.width){var w=0;for(t=0;t<d[u].length;++t)w+=d[u][t];if(w<=0)break;if(x%2===0){var S=.5*(1-a.symbolSize),M=g+d[u][x]*S,C=o+p[s]*S,I=d[u][x]*a.symbolSize,T=p[s]*a.symbolSize,k=b/2%f[c].length;A(M,C,I,T,f[c][k])}g+=d[u][x],++b,++x,x===d[u].length&&(x=0)}++u,u===d.length&&(u=0)}o+=p[s],++l,++s,s===p.length&&(s=0)}}function A(e,t,o,s,l){var u=r?1:n,c=v_(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(c);d&&m.children.push(d)}else Q_(h,c)}}y&&(y.width=_.width*n,y.height=_.height*n,h=y.getContext("2d")),w(),s&&ib.put(t,y||m),e.image=y,e.svgElement=m,e.svgWidth=_.width,e.svgHeight=_.height}}function ab(e){if(!e||0===e.length)return[["rect"]];if(ee(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!ee(e[n])){t=!1;break}if(t)return ab([e]);var i=[];for(n=0;n<e.length;++n)ee(e[n])?i.push([e[n]]):i.push(e[n]);return i}function sb(e){if(!e||0===e.length)return[[0,0]];if(ne(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,i=0;i<e.length;++i)if(!ne(e[i])){n=!1;break}if(n)return sb([e]);var r=[];for(i=0;i<e.length;++i)if(ne(e[i])){t=Math.ceil(e[i]);r.push([t,t])}else{t=W(e[i],(function(e){return Math.ceil(e)}));t.length%2===1?r.push(t.concat(t)):r.push(t)}return r}function lb(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if(ne(e)){var t=Math.ceil(e);return[t,t]}var n=W(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}function ub(e){return W(e,(function(e){return cb(e)}))}function cb(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}function hb(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(e){var n=i.getItemVisual(e,"decal");if(n){var r=i.ensureUniqueItemVisual(e,"style");r.decal=ob(n,t)}}));var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=ob(r,t)}}}))}var db=new et;const pb=db;var fb={};function gb(e,t){fb[e]=t}function vb(e){return fb[e]}var yb="undefined"!==typeof window,mb=1,xb=800,_b=900,bb=1e3,wb=2e3,Sb=5e3,Mb=1e3,Cb=1100,Ib=2e3,Tb=3e3,kb=4e3,Ab=4500,Db=4600,Lb=5e3,Pb=6e3,Ob=7e3,Rb={PROCESSOR:{FILTER:bb,SERIES_FILTER:xb,STATISTIC:Sb},VISUAL:{LAYOUT:Mb,PROGRESSIVE_LAYOUT:Cb,GLOBAL:Ib,CHART:Tb,POST_CHART_LAYOUT:Db,COMPONENT:kb,BRUSH:Lb,CHART_ITEM:Ab,ARIA:Pb,DECAL:Ob}},Eb="__flagInMainProcess",Nb="__pendingUpdate",Bb="__needsUpdateStatus",Fb=/^[a-zA-Z0-9_]+$/,zb="__connectUpdateStatus",Vb=0,Hb=1,qb=2;function Gb(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return Ub(this,e,t);gw(this.id)}}function Wb(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Ub(this,e,t)}}function Ub(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),et.prototype[t].apply(e,n)}var jb,Zb,Yb,$b,Xb,Kb,Jb,Qb,ew,tw,nw,iw,rw,ow,aw,sw,lw,uw,cw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(et),hw=cw.prototype;hw.on=Wb("on"),hw.off=Wb("off");var dw=function(e){function t(t,n,i){var r=e.call(this,new Ux)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},ee(n)&&(n=bw[n]),r._dom=t;var o="canvas",a=!1,s=r._zr=Bo(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:null==i.useDirtyRect?a:i.useDirtyRect});r._ssr=i.ssr,r._throttledZrFlush=ax(X(s.flush,s),17),n=R(n),n&&Pf(n,!0),r._theme=n,r._locale=Yh(i.locale||jh),r._coordSysMgr=new ef;var l=r._api=aw(r);function u(e,t){return e.__prio-t.__prio}return jt(_w,u),jt(mw,u),r._scheduler=new Nx(r,l,mw,_w),r._messageCenter=new cw,r._initEvents(),r.resize=X(r.resize,r),s.animation.on("frame",r._onframe,r),tw(s,r),nw(s,r),xe(r),r}return o(t,e),t.prototype._onframe=function(){if(!this._disposed){uw(this);var e=this._scheduler;if(this[Nb]){var t=this[Nb].silent;this[Eb]=!0;try{jb(this),$b.update.call(this,null,this[Nb].updateParams)}catch(wy){throw this[Eb]=!1,this[Nb]=null,wy}this._zr.flush(),this[Eb]=!1,this[Nb]=null,Qb.call(this,t),ew.call(this,t)}else if(e.unfinished){var n=mb,i=this._model,r=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Kb(this,i),e.performVisualTasks(i),ow(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Eb])if(this._disposed)gw(this.id);else{var i,r,o;if(ie(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,o=t.transition,t=t.notMerge),this[Eb]=!0,!this._model||t){var a=new lf(this._api),s=this._theme,l=this._model=new Yp;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:r},xw);var u={seriesTransition:o,optionChanged:!0};if(n)this[Nb]={silent:i,updateParams:u},this[Eb]=!1,this.getZr().wakeUp();else{try{jb(this),$b.update.call(this,null,u)}catch(wy){throw this[Nb]=null,this[Eb]=!1,wy}this._ssr||this._zr.flush(),this[Nb]=null,this[Eb]=!1,Qb.call(this,i),ew.call(this,i)}}},t.prototype.setTheme=function(){gg("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||yb&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(c.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return G(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;G(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return G(i,(function(e){e.group.ignore=!1})),o}gw(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(Mw[n]){var a=o,s=o,l=-o,u=-o,c=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();G(Sw,(function(o,h){if(o.group===n){var d=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(R(e)),p=o.getDom().getBoundingClientRect();a=i(p.left,a),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),c.push({dom:d,left:p.left,top:p.top})}})),a*=h,s*=h,l*=h,u*=h;var d=l-a,p=u-s,f=x.createCanvas(),g=Bo(f,{renderer:t?"svg":"canvas"});if(g.resize({width:d,height:p}),t){var v="";return G(c,(function(e){var t=e.left-a,n=e.top-s;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new du({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),G(c,(function(e){var t=new iu({style:{x:e.left*h-a,y:e.top*h-s,image:e.dom}});g.add(t)})),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}gw(this.id)},t.prototype.convertToPixel=function(e,t){return Xb(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Xb(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=za(i,e);return G(r,(function(e,i){i.indexOf("Models")>=0&&G(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}gw(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=za(n,e,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?Xx(o,a,t):Kx(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;G(fw,(function(t){var n=function(n){var i,r=e.getModel(),o=n.target,a="globalout"===t;if(a?i={}:o&&n_(o,(function(e){var t=Lu(e);if(t&&null!=t.dataIndex){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return i=n&&n.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return i=B({},t.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},e.trigger(t,i)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),G(yw,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),G(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),t_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?gw(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)gw(this.id);else{this._disposed=!0;var e=this.getDom();e&&Wa(this.getDom(),Iw,"");var t=this,n=t._api,i=t._model;G(t._componentsViews,(function(e){e.dispose(i,n)})),G(t._chartsViews,(function(e){e.dispose(i,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Sw[t.id]}},t.prototype.resize=function(e){if(!this[Eb])if(this._disposed)gw(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Nb]&&(null==i&&(i=this[Nb].silent),n=!0,this[Nb]=null),this[Eb]=!0;try{n&&jb(this),$b.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(wy){throw this[Eb]=!1,wy}this[Eb]=!1,Qb.call(this,i),ew.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)gw(this.id);else if(ie(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ww[e]){var n=ww[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?gw(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=B({},e);return t.type=yw[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)gw(this.id);else if(ie(t)||(t={silent:!!t}),vw[e.type]&&this._model)if(this[Eb])this._pendingActions.push(e);else{var n=t.silent;Jb.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&c.browser.weChat&&this._throttledZrFlush(),Qb.call(this,n),ew.call(this,n)}},t.prototype.updateLabelLayout=function(){pb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)gw(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);0,i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:r.componentIndex,type:e,key:s})})),i){var r,o,a=t.concat(n);jt(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),G(a,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,a=t.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&t.push(r)}e.selected&&e.states.select&&t.push("select"),e.hoverState===zu&&e.states.emphasis?t.push("emphasis"):e.hoverState===Fu&&e.states.blur&&t.push("blur"),e.useStates(t)}function i(e,t){var n=e._zr,i=n.storage,r=0;i.traverse((function(e){e.isGroup||r++})),r>t.get("hoverLayerThreshold")&&!c.node&&!c.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function r(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function a(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return s(e,n,i,-1/0),!0}))}}function s(e,t,n,i){var r=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var l=e.childrenRef(),u=0;u<l.length;u++)i=Math.max(s(l[u],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(r&&(r.z=t,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var c=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+(c&&c.showAbove?1:-1))}return i}function l(e,t){t.eachRendered((function(e){if(!Jc(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function u(e,t){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(Jc(e))return;if(e instanceof $l&&jc(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}jb=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Zb(e,!0),Zb(e,!1),t.plan()},Zb=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var h=Ja(e.type),d=t?Ev.getClass(h.main,h.sub):nx.getClass(h.sub);0,c=new d,c.init(n,s),o[u]=c,r.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&i.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Yb=function(e,t,n,i,r){var o=e._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=we(),G(ga(u),(function(e){var t=Aa(e,null);null!=t&&l.set(t,!0)}))),o&&o.eachComponent(s,(function(t){var i=l&&null!==l.get(t.id);if(!i)if(Uc(n))if(t instanceof Ov)n.type!==Wu||n.notBlur||t.get(["emphasis","disabled"])||Ic(t,n,e._api);else{var r=Tc(t.mainType,t.componentIndex,n.name,e._api),o=r.focusSelf,a=r.dispatchers;n.type===Wu&&o&&!n.notBlur&&Cc(t.mainType,t.componentIndex,e._api),a&&G(a,(function(e){n.type===Wu?vc(e):yc(e)}))}else Wc(n)&&t instanceof Ov&&(Dc(t,n,e._api),Lc(t),lw(e))}),e),o&&o.eachComponent(s,(function(t){var n=l&&null!==l.get(t.id);n||c(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else G([].concat(e._componentsViews).concat(e._chartsViews),c);function c(i){i&&i.__alive&&i[t]&&i[t](i.__model,o,e._api,n)}},$b={prepareAndUpdate:function(e){jb(this),$b.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,t),Kb(this,i),a.update(i,r),e(i),s.performVisualTasks(i,t),iw(this,i,r,t,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),pb.trigger("afterupdate",i,r)}},updateTransform:function(t){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(t);var o=[];i.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,t);l&&l.update&&o.push(s)}else o.push(s)}}));var a=we();i.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,i,r,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:a}),ow(this,i,r,t,{},a),pb.trigger("afterupdate",i,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),nx.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),iw(this,n,this._api,t,{}),pb.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(e){e.getData().clearAllVisual()})),nx.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(e,r){if("series"!==e){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,t)}})),i.eachSeries((function(e){var r=n._chartsMap[e.__viewId];r.updateVisual(e,i,n._api,t)})),pb.trigger("afterupdate",i,this._api))},updateLayout:function(e){$b.update.call(this,e)}},Xb=function(e,t,n,i){if(e._disposed)gw(e.id);else{for(var r,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=za(o,n),l=0;l<a.length;l++){var u=a[l];if(u[t]&&null!=(r=u[t](o,s,i)))return r}0}},Kb=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))},Jb=function(e,t){var n=this,i=this.getModel(),r=e.type,o=e.escapeConnect,a=vw[r],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&Ja(l[0]);this[Eb]=!0;var h=[e],d=!1;e.batch&&(d=!0,h=W(e.batch,(function(t){return t=F(B({},t),e),t.batch=null,t})));var p,f=[],g=Wc(e),v=Uc(e);if(v&&Sc(this._api),G(h,(function(t){if(p=a.action(t,n._model,n._api),p=p||B({},t),p.type=s.event||p.type,f.push(p),v){var i=Va(e),r=i.queryOptionMap,o=i.mainTypeSpecified,l=o?r.keys()[0]:"series";Yb(n,u,t,l),lw(n)}else g?(Yb(n,u,t,"series"),lw(n)):c&&Yb(n,u,t,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this[Nb]?(jb(this),$b.update.call(this,e),this[Nb]=null):$b[u].call(this,e)}catch(wy){throw this[Eb]=!1,wy}if(p=d?{type:s.event||r,escapeConnect:o,batch:f}:f[0],this[Eb]=!1,!t){var y=this._messageCenter;if(y.trigger(p.type,p),g){var m={type:"selectchanged",escapeConnect:o,selected:Pc(i),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};y.trigger(m.type,m)}}},Qb=function(e){var t=this._pendingActions;while(t.length){var n=t.shift();Jb.call(this,n,e)}},ew=function(e){!e&&this.trigger("updated")},tw=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Nb]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},nw=function(e,t){e.on("mouseover",(function(e){var n=e.target,i=n_(n,Hc);i&&(kc(i,e,t._api),lw(t))})).on("mouseout",(function(e){var n=e.target,i=n_(n,Hc);i&&(Ac(i,e,t._api),lw(t))})).on("click",(function(e){var n=e.target,i=n_(n,(function(e){return null!=Lu(e).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=Lu(i);t._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},iw=function(e,n,i,r,o){t(n),rw(e,n,i,r,o),G(e._chartsViews,(function(e){e.__alive=!1})),ow(e,n,i,r,o),G(e._chartsViews,(function(e){e.__alive||e.remove(n,i)}))},rw=function(e,t,n,i,r,o){G(o||e._componentsViews,(function(e){var r=e.__model;l(r,e),e.render(r,t,n,i),a(r,e),u(r,e)}))},ow=function(e,t,n,o,s,c){var h=e._scheduler;s=B(s||{},{updatedSeries:t.getSeries()}),pb.trigger("series:beforeupdate",t,n,s);var d=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;h.updatePayload(i,o),l(t,n),c&&c.get(t.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(d=!0),n.group.silent=!!t.get("silent"),r(t,n),Lc(t)})),h.unfinished=d||h.unfinished,pb.trigger("series:layoutlabels",t,n,s),pb.trigger("series:transition",t,n,s),t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];a(t,n),u(t,n)})),i(e,t),pb.trigger("series:afterupdate",t,n,s)},lw=function(e){e[Bb]=!0,e.getZr().wakeUp()},uw=function(e){e[Bb]&&(e.getZr().storage.traverse((function(e){Jc(e)||n(e)})),e[Bb]=!1)},aw=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){vc(t,n),lw(e)},n.prototype.leaveEmphasis=function(t,n){yc(t,n),lw(e)},n.prototype.enterBlur=function(t){mc(t),lw(e)},n.prototype.leaveBlur=function(t){xc(t),lw(e)},n.prototype.enterSelect=function(t){_c(t),lw(e)},n.prototype.leaveSelect=function(t){bc(t),lw(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(Kp))(e)},sw=function(e){function t(e,t){for(var n=0;n<e.length;n++){var i=e[n];i[zb]=t}}G(yw,(function(n,i){e._messageCenter.on(i,(function(n){if(Mw[e.group]&&e[zb]!==Vb){if(n&&n.escapeConnect)return;var i=e.makeActionFromEvent(n),r=[];G(Sw,(function(t){t!==e&&t.group===e.group&&r.push(t)})),t(r,Vb),G(r,(function(e){e[zb]!==Hb&&e.dispatchAction(i)})),t(r,qb)}}))}))}}(),t}(et),pw=dw.prototype;pw.on=Gb("on"),pw.off=Gb("off"),pw.one=function(e,t,n){var i=this;function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t&&t.apply&&t.apply(this,n),i.off(e,r)}gg("ECharts#one is deprecated."),this.on.call(this,e,r,n)};var fw=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function gw(e){0}var vw={},yw={},mw=[],xw=[],_w=[],bw={},ww={},Sw={},Mw={},Cw=+new Date-0,Iw=(new Date,"_echarts_instance_");function Tw(e,t,n){var i=!(n&&n.ssr);if(i){0;var r=kw(e);if(r)return r;0}var o=new dw(e,t,n);return o.id="ec_"+Cw++,Sw[o.id]=o,i&&Wa(e,Iw,o.id),sw(o),pb.trigger("afterinit",o),o}function kw(e){return Sw[Ua(e,Iw)]}function Aw(e,t){bw[e]=t}function Dw(e){z(xw,e)<0&&xw.push(e)}function Lw(e,t){Vw(mw,e,t,wb)}function Pw(e){Rw("afterinit",e)}function Ow(e){Rw("afterupdate",e)}function Rw(e,t){pb.on(e,t)}function Ew(e,t,n){Q(t)&&(n=t,t="");var i=ie(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,yw[t]||(ve(Fb.test(i)&&Fb.test(t)),vw[i]||(vw[i]={action:n,actionInfo:e}),yw[t]=i)}function Nw(e,t){ef.register(e,t)}function Bw(e,t){Vw(_w,e,t,Mb,"layout")}function Fw(e,t){Vw(_w,e,t,Tb,"visual")}var zw=[];function Vw(e,t,n,i,r){if((Q(t)||ie(t))&&(n=t,t=i),!(z(zw,n)>=0)){zw.push(n);var o=Nx.wrapStageHandler(n,r);o.__prio=t,o.__raw=n,e.push(o)}}function Hw(e,t){ww[e]=t}function qw(e,t,n){var i=vb("registerMap");i&&i(e,t,n)}var Gw=Pg;Fw(Ib,fx),Fw(Ab,vx),Fw(Ab,yx),Fw(Ib,Yx),Fw(Ab,$x),Fw(Ob,hb),Dw(Pf),Lw(_b,Of),Hw("default",xx),Ew({type:Wu,event:Wu,update:Wu},Te),Ew({type:Uu,event:Uu,update:Uu},Te),Ew({type:ju,event:ju,update:ju},Te),Ew({type:Zu,event:Zu,update:Zu},Te),Ew({type:Yu,event:Yu,update:Yu},Te),Aw("light",Fx),Aw("dark",Wx);var Ww=[],Uw={registerPreprocessor:Dw,registerProcessor:Lw,registerPostInit:Pw,registerPostUpdate:Ow,registerUpdateLifecycle:Rw,registerAction:Ew,registerCoordinateSystem:Nw,registerLayout:Bw,registerVisual:Fw,registerTransform:Gw,registerLoading:Hw,registerMap:qw,registerImpl:gb,PRIORITY:Rb,ComponentModel:op,ComponentView:Ev,SeriesModel:Ov,ChartView:nx,registerComponentModel:function(e){op.registerClass(e)},registerComponentView:function(e){Ev.registerClass(e)},registerSeriesModel:function(e){Ov.registerClass(e)},registerChartView:function(e){nx.registerClass(e)},registerSubTypeDefaulter:function(e,t){op.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Fo(e,t)}};function jw(e){J(e)?G(e,(function(e){jw(e)})):z(Ww,e)>=0||(Ww.push(e),Q(e)&&(e={install:e}),e.install(Uw))}var Zw=2*Math.PI,Yw=Sl.CMD,$w=["top","right","bottom","left"];function Xw(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0);break}}function Kw(e,t,n,i,r,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+e,h=s*n+t;if(Math.abs(i-r)%Zw<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=i;i=kl(r),r=kl(d)}else i=kl(i),r=kl(r);i>r&&(r+=Zw);var p=Math.atan2(s,a);if(p<0&&(p+=Zw),p>=i&&p<=r||p+Zw>=i&&p+Zw<=r)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(i)+e,g=n*Math.sin(i)+t,v=n*Math.cos(r)+e,y=n*Math.sin(r)+t,m=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(y-s)*(y-s);return m<x?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(x))}function Jw(e,t,n,i,r,o,a,s){var l=r-e,u=o-t,c=n-e,h=i-t,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=l*c+u*h,f=p/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var g=a[0]=e+f*c,v=a[1]=t+f*h;return Math.sqrt((g-r)*(g-r)+(v-o)*(v-o))}function Qw(e,t,n,i,r,o,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,u=a[0]=Math.min(Math.max(r,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var eS=[];function tS(e,t,n){var i=Qw(t.x,t.y,t.width,t.height,e.x,e.y,eS);return n.set(eS[0],eS[1]),i}function nS(e,t,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=t.data,h=e.x,d=e.y,p=0;p<c.length;){var f=c[p++];1===p&&(o=c[p],a=c[p+1],s=o,l=a);var g=u;switch(f){case Yw.M:s=c[p++],l=c[p++],o=s,a=l;break;case Yw.L:g=Jw(o,a,c[p],c[p+1],h,d,eS,!0),o=c[p++],a=c[p++];break;case Yw.C:g=wn(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,eS),o=c[p++],a=c[p++];break;case Yw.Q:g=An(o,a,c[p++],c[p++],c[p],c[p+1],h,d,eS),o=c[p++],a=c[p++];break;case Yw.A:var v=c[p++],y=c[p++],m=c[p++],x=c[p++],_=c[p++],b=c[p++];p+=1;var w=!!(1-c[p++]);i=Math.cos(_)*m+v,r=Math.sin(_)*x+y,p<=1&&(s=i,l=r);var S=(h-v)*x/m+v;g=Kw(v,y,x,_,_+b,w,S,d,eS),o=Math.cos(_+b)*m+v,a=Math.sin(_+b)*x+y;break;case Yw.R:s=o=c[p++],l=a=c[p++];var M=c[p++],C=c[p++];g=Qw(s,l,M,C,h,d,eS);break;case Yw.Z:g=Jw(o,a,s,l,h,d,eS,!0),o=s,a=l;break}g<u&&(u=g,n.set(eS[0],eS[1]))}return u}var iS=new $r,rS=new $r,oS=new $r,aS=new $r,sS=new $r;function lS(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var r=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||$w,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=e.getComputedTransform(),h=c&&Er([],c),d=t.get("length2")||0;u&&oS.copy(u);for(var p=0;p<a.length;p++){var f=a[p];Xw(f,0,s,iS,aS),$r.scaleAndAdd(rS,iS,aS,d),rS.transform(h);var g=e.getBoundingRect(),v=u?u.distance(rS):e instanceof $l?nS(rS,e.path,oS):tS(rS,g,oS);v<l&&(l=v,rS.transform(c),oS.transform(c),oS.toArray(o[0]),rS.toArray(o[1]),iS.toArray(o[2]))}hS(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var uS=[],cS=new $r;function hS(e,t){if(t<=180&&t>0){t=t/180*Math.PI,iS.fromArray(e[0]),rS.fromArray(e[1]),oS.fromArray(e[2]),$r.sub(aS,iS,rS),$r.sub(sS,oS,rS);var n=aS.len(),i=sS.len();if(!(n<.001||i<.001)){aS.scale(1/n),sS.scale(1/i);var r=aS.dot(sS),o=Math.cos(t);if(o<r){var a=Jw(rS.x,rS.y,oS.x,oS.y,iS.x,iS.y,uS,!1);cS.fromArray(uS),cS.scaleAndAdd(sS,a/Math.tan(Math.PI-t));var s=oS.x!==rS.x?(cS.x-rS.x)/(oS.x-rS.x):(cS.y-rS.y)/(oS.y-rS.y);if(isNaN(s))return;s<0?$r.copy(cS,rS):s>1&&$r.copy(cS,oS),cS.toArray(e[1])}}}}function dS(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,iS.fromArray(e[0]),rS.fromArray(e[1]),oS.fromArray(e[2]),$r.sub(aS,rS,iS),$r.sub(sS,oS,rS);var i=aS.len(),r=sS.len();if(!(i<.001||r<.001)){aS.scale(1/i),sS.scale(1/r);var o=aS.dot(t),a=Math.cos(n);if(o<a){var s=Jw(rS.x,rS.y,oS.x,oS.y,iS.x,iS.y,uS,!1);cS.fromArray(uS);var l=Math.PI/2,u=Math.acos(sS.dot(t)),c=l+u-n;if(c>=l)$r.copy(cS,oS);else{cS.scaleAndAdd(sS,s/Math.tan(Math.PI/2-c));var h=oS.x!==rS.x?(cS.x-rS.x)/(oS.x-rS.x):(cS.y-rS.y)/(oS.y-rS.y);if(isNaN(h))return;h<0?$r.copy(cS,rS):h>1&&$r.copy(cS,oS)}cS.toArray(e[1])}}}}function pS(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function fS(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Ge(i[0],i[1]),o=Ge(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=je([],i[1],i[0],a/r),l=je([],i[1],i[2],a/o),u=je([],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],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}function gS(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(r){for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<Hu.length;l++){var u=Hu[l],c=t[u],h="normal"===u;if(c){var d=c.get("show"),p=h?s:de(r.states[u]&&r.states[u].ignore,s);if(p||!de(d,a)){var f=h?i:i&&i.states[u];f&&(f.ignore=!0);continue}i||(i=new Vy,e.setTextGuideLine(i),h||!s&&a||pS(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),pS(i,!1,u,c)}}if(i){F(i.style,n),i.style.fill=null;var g=o.get("showAbove"),v=e.textGuideLineConfig=e.textGuideLineConfig||{};v.showAbove=g||!1,i.buildPath=fS}}else i&&e.removeTextGuideLine()}function vS(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<Vu.length;i++){var r=Vu[i];n[r]=e.getModel([r,t])}return n}function yS(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new dm(a,o):null;t.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return t}function mS(e,t,n,i,r,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var p=e[d],f=p.rect;s=f[t]-l,s<0&&(f[t]-=s,p.label[t]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[t]+f[n]}h>0&&o&&w(-h/a,0,a);var v,y,m=e[0],x=e[a-1];return _(),v<0&&S(-v,.8),y<0&&S(y,.8),_(),b(v,y,1),b(y,v,-1),_(),v<0&&M(-v),y<0&&M(y),u}function _(){v=m.rect[t]-i,y=r-x.rect[t]-x.rect[n]}function b(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){w(i*n,0,a);var r=i+e;r<0&&S(-r*n,1)}else S(-e*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=e[o],s=a.rect;s[t]+=n,a.label[t]+=n}}function S(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){var d=o[l]*h;w(d,0,l+1)}else for(l=a-1;l>0;l--){d=o[l-1]*h;w(-d,l,a)}}}function M(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i<a-1;i++)if(t>0?w(n,0,i+1):w(-n,a-i-1,a),e-=n,e<=0)return}}function xS(e,t,n,i){return mS(e,"x","width",t,n,i)}function _S(e,t,n,i){return mS(e,"y","height",t,n,i)}function bS(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new oo(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r<e.length;r++){var o=e[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,d=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new dm(f.localRect,f.transform)),h||(h=new dm(s,l)),h.intersect(f.obb)){d=!0;break}}}d?(i(u),c&&i(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function wS(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function SS(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:wS(i&&i.shape.points)}}var MS=["align","verticalAlign","width","height","fontSize"],CS=new Zr,IS=Ba(),TS=Ba();function kS(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var AS=["x","y","rotation"],DS=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();oo.applyTransform(u,u,l),l?CS.setLocalTransform(l):(CS.x=CS.y=CS.rotation=CS.originX=CS.originY=0,CS.scaleX=CS.scaleY=1);var c,h=i.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();oo.applyTransform(c,c,d)}var p=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:CS.x,y:CS.y,scaleX:CS.scaleX,scaleY:CS.scaleY,rotation:CS.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:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(Q(i)||Y(i).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var r=e.getTextContent(),o=Lu(e);r&&!r.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,r,i)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(e,t){return function(){lS(e,t)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=Q(o.layoutOption)?o.layoutOption(SS(o,s)):o.layoutOption,u=u||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=Go(u.x,t),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=Go(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}var p=IS(a);p.needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var f=0;f<MS.length;f++){var g=MS[f];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var y=o.seriesModel.getData(o.dataType);v=y.getItemModel(o.dataIndex)}a.on("drag",i(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=yS(this._labelList),r=j(i,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=j(i,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));xS(r,0,t),_S(o,0,n);var a=j(i,(function(e){return e.layoutOption.hideOverlap}));bS(a)},e.prototype.processLabelsOverall=function(){var e=this;G(this._chartViewList,(function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!i,a=t.getTextContent();!o&&a&&(o=IS(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=Lu(e),r=i.dataIndex;if(n&&null!=r){var o=t.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");gS(e,vS(a),s),lS(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Jc(e))){var r=IS(n),o=r.oldLayout,a=Lu(e),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(a.dataType);if(o){n.attr(o);var c=e.prevStates;c&&(z(c,"select")>=0&&n.attr(r.oldLayoutSelect),z(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Xc(n,l,t,s)}else if(n.attr(l),!mh(n).valueAnimation){var h=de(n.style.opacity,1);n.style.opacity=0,Kc(n,{style:{opacity:h}},t,s)}if(r.oldLayout=l,n.states.select){var d=r.oldLayoutSelect={};kS(d,l,AS),kS(d,n.states.select,AS)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};kS(p,l,AS),kS(p,n.states.emphasis,AS)}_h(n,s,u,t,t)}if(i&&!i.ignore&&!i.invisible){r=TS(i),o=r.oldLayout;var f={points:i.shape.points};o?(i.attr({shape:o}),Xc(i,{shape:f},t)):(i.setShape(f),i.style.strokePercent=0,Kc(i,{style:{strokePercent:1}},t)),r.oldLayout=f}},e}();const LS=DS;var PS=Ba();function OS(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=PS(t).labelManager;i||(i=PS(t).labelManager=new LS),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=PS(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}function RS(e,t,n){var i=x.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}jw(OS);var ES=function(e){function t(t,n,i){var r,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Sr,"string"===typeof t?r=RS(t,n,i):ie(t)&&(r=t,t=r.id),o.id=t,o.dom=r;var a=r.style;return a&&(Ce(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return De(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=RS("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new oo(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new oo(0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var h=new oo(0,0,0,0);h.copy(c),h.union(e),o[u]=h,n=!0;break}if(s){l.copy(e),l.union(c);var d=e.width*e.height,p=c.width*c.height,f=l.width*l.height,g=f-d-p;g<i&&(i=g,r=u)}}if(s&&(o[r].union(e),n=!0),!n){t=new oo(0,0,0,0);t.copy(e),o.push(t)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=e[c];if(h){var d=h.shouldBePainted(n,i,!0,!0),p=h.__isRendered&&(h.__dirty&Zt||!d)?h.getPrevPaintRect():null;p&&u(p);var f=d&&(h.__dirty&Zt||!h.__isRendered)?h.getPaintRect():null;f&&u(f)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){h=t[c],d=h.shouldBePainted(n,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){p=h.getPrevPaintRect();p&&u(p)}}do{r=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var h=this.domBack;function d(e,n,i,o){if(r.clearRect(e,n,i,o),t&&"transparent"!==t){var a=void 0;se(t)?(a=t.__canvasGradient||w_(r,t,{x:0,y:0,width:i,height:o}),t.__canvasGradient=a):le(t)&&(a=R_(r,t,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),r.save(),r.fillStyle=a||t,r.fillRect(e,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,e,n,i,o),r.restore())}!n||s?d(0,0,o,a):n.length&&G(n,(function(e){d(e.x*u,e.y*u,e.width*u,e.height*u)}))},t}(et);const NS=ES;var BS=1e5,FS=314159,zS=.01,VS=.001;function HS(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}function qS(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var GS=function(){function e(e,t,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=B({},n||{}),this.dpr=n.devicePixelRatio||Sr,this._singleCanvas=r,this.root=e;var o=e.style;o&&(Ce(e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(r){var l=e,u=l.width,c=l.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var h=new NS(l,this,this.dpr);h.__builtin__=!0,h.initContext(),s[FS]=h,h.zlevel=FS,a.push(FS),this._domRoot=e}else{this._width=C_(e,0,n),this._height=C_(e,1,n);var d=this._domRoot=qS(this._width,this._height);e.appendChild(d)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(BS)),i||(i=n.ctx,i.save()),eb(i,a,r,o===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(BS)},e.prototype.paintOne=function(e,t){Q_(e,t)},e.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;nn((function(){s._paintList(e,t,n,i)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(FS).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,h=!1,d=function(a){var s,l=r[a],c=l.ctx,d=o&&l.createRepaintRects(e,t,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,d);else if(f===l.__startIndex){var m=e[f];m.incremental&&m.notClear&&!n||l.clear(!1,y,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=e[s];if(r.__inHover&&(h=!0),i._doPaintEl(r,l,o,t,n,s===l.__endIndex-1),g){var a=Date.now()-v;if(a>15)break}}n.prevElClipPaths&&c.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=p.dpr,b=0;b<d.length;++b){var w=d[b];c.save(),c.beginPath(),c.rect(w.x*_,w.y*_,w.width*_,w.height*_),c.clip(),x(w),c.restore()}else c.save(),x(),c.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},p=this,f=0;f<r.length;f++)d(f);return c.wxa&&G(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:u,needsRefreshHover:h}},e.prototype._doPaintEl=function(e,t,n,i,r,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!i||s&&s.intersect(i))&&(eb(a,e,r,o),e.setPrevPaintRect(s))}else eb(a,e,r,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=FS);var n=this._layers[e];return n||(n=new NS("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?E(n,this._layerConfig[e],!0):this._layerConfig[e-zS]&&E(n,this._layerConfig[e-zS],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&HS(t)){if(r>0&&e>i[0]){for(s=0;s<r-1;s++)if(i[s]<e&&i[s+1]>e)break;a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];e.call(t,this._layers[r],r)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&e.call(t,o,r)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||e.call(t,o,r)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){a&&(a.__endIndex!==e&&(a.__dirty=!0),a.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var r,o,a=null,s=0;for(o=0;o<e.length;o++){i=e[o];var l=i.zlevel,u=void 0;r!==l&&(r=l,s=0),i.incremental?(u=this.getLayer(l+VS,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?zS:0),this._needsManuallyCompositing),u.__builtin__||O("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,t(o),a=u),i.__dirty&Zt&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,G(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?E(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===e||r===e+zS){var o=this._layers[r];E(o,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(z(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=C_(r,0,i),t=C_(r,1,i),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(FS).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[FS].dom;var t=new NS("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,r=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,i,r):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];eb(n,u,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const WS=GS;function US(e){e.registerPainter("canvas",WS)}var jS=Math.sin,ZS=Math.cos,YS=Math.PI,$S=2*Math.PI,XS=180/YS,KS=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){this._add("C",e,t,n,i,r,o)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,r,o){this.ellipse(e,t,n,n,0,i,r,o)},e.prototype.ellipse=function(e,t,n,i,r,o,a,s){var l=a-o,u=!s,c=Math.abs(l),h=hi(c-$S)||(u?l>=$S:-l>=$S),d=l>0?l%$S:l%$S+$S,p=!1;p=!!h||!hi(c)&&d>=YS===!!u;var f=e+n*ZS(o),g=t+i*jS(o);this._start&&this._add("M",f,g);var v=Math.round(r*XS);if(h){var y=1/this._p,m=(u?1:-1)*($S-y);this._add("A",n,i,v,1,+u,e+n*ZS(o+m),t+i*jS(o+m)),y>.01&&this._add("A",n,i,v,0,+u,f,g)}else{var x=e+n*ZS(a),_=t+i*jS(a);this._add("A",n,i,v,+p,+u,x,_)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,o,a,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(e+u.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}();const JS=KS;var QS="none",eM=Math.round;function tM(e){var t=e.fill;return null!=t&&t!==QS}function nM(e){var t=e.stroke;return null!=t&&t!==QS}var iM=["lineCap","miterLimit","lineJoin"],rM=W(iM,(function(e){return"stroke-"+e.toLowerCase()}));function oM(e,t,n,i){var r=null==t.opacity?1:t.opacity;if(n instanceof iu)e("opacity",r);else{if(tM(t)){var o=ui(t.fill);e("fill",o.color);var a=null!=t.fillOpacity?t.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&e("fill-opacity",a)}else e("fill",QS);if(nM(t)){var s=ui(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*r:s.opacity*r,h=t.strokeFirst;if((i||1!==u)&&e("stroke-width",u),(i||h)&&e("paint-order",h?"stroke":"fill"),(i||c<1)&&e("stroke-opacity",c),t.lineDash){var d=T_(n),p=d[0],f=d[1];p&&(f=eM(f||0),e("stroke-dasharray",p.join(",")),(f||i)&&e("stroke-dashoffset",f))}else i&&e("stroke-dasharray",QS);for(var g=0;g<iM.length;g++){var v=iM[g];if(i||t[v]!==Ul[v]){var y=t[v]||Ul[v];y&&e(rM[g],y)}}}else i&&e("stroke",QS)}}var aM="http://www.w3.org/2000/svg",sM="http://www.w3.org/1999/xlink",lM="http://www.w3.org/2000/xmlns/",uM="http://www.w3.org/XML/1998/namespace";function cM(e){return document.createElementNS(aM,e)}function hM(e,t,n,i,r){return{tag:e,attrs:n||{},children:i,text:r,key:t}}function dM(e,t){var n=[];if(t)for(var i in t){var r=t[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}function pM(e){return"</"+e+">"}function fM(e,t){t=t||{};var n=t.newline?"\n":"";function i(e){var t=e.children,r=e.tag,o=e.attrs;return dM(r,o)+(e.text||"")+(t?""+n+W(t,(function(e){return i(e)})).join(n)+n:"")+pM(r)}return i(e)}function gM(e,t,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",a=W(Y(e),(function(t){return t+r+W(Y(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),s=W(Y(t),(function(e){return"@keyframes "+e+r+W(Y(t[e]),(function(n){return n+r+W(Y(t[e][n]),(function(i){var r=t[e][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}function vM(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function yM(e,t,n,i){return hM("svg","root",{width:e,height:t,xmlns:aM,"xmlns:xlink":sM,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var mM={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"},xM="transform-origin";function _M(e,t,n){var i=B({},e.shape);B(i,t),e.buildPath(n,i);var r=new JS;return r.reset(Ii(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function bM(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[xM]=n+"px "+i+"px")}var wM={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function SM(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function MM(e,t,n){var i,r,o=e.shape.paths,a={};if(G(o,(function(e){var t=vM(n.zrId);t.animation=!0,IM(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=Y(o),u=l.length;if(u){r=l[u-1];var c=o[r];for(var h in c){var d=c[h];a[h]=a[h]||{d:""},a[h].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){t.d=!1;var s=SM(a,n);return i.replace(r,s)}}function CM(e){return ee(e)?mM[e]?"cubic-bezier("+mM[e]+")":Pn(e)?e:"":""}function IM(e,t,n,i){var r=e.animators,o=r.length,a=[];if(e instanceof em){var s=MM(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=r[u],h=[c.getMaxTime()/1e3+"s"],d=CM(c.getClip().easing),p=c.getDelay();d?h.push(d):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(r){var o,a=r[1],s=a.length,l={},u={},c={},h="animation-timing-function";function d(e,t,n){for(var i=e.getTracks(),r=e.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],d=Math.round(c.time/r*100)+"%",p=CM(c.easing),f=c.rawValue;(ee(f)||ne(f))&&(t[d]=t[d]||{},t[d][l]=c.rawValue,p&&(t[d][h]=p))}}}}for(var p=0;p<s;p++){var f=a[p],g=f.targetName;g?"shape"===g&&d(f,u):!i&&d(f,l)}for(var v in l){var y={};jr(y,e),B(y,l[v]);var m=Ti(y),x=l[v][h];c[v]=m?{transform:m}:{},bM(c[v],y),x&&(c[v][h]=x)}var _=!0;for(var v in u){c[v]=c[v]||{};var b=!o;x=u[v][h];b&&(o=new Sl);var w=o.len();o.reset(),c[v].d=_M(e,u[v],o);var S=o.len();if(!b&&w!==S){_=!1;break}x&&(c[v][h]=x)}if(!_)for(var v in c)delete c[v].d;if(!i)for(p=0;p<s;p++){f=a[p],g=f.targetName;"style"===g&&d(f,c,(function(e){return wM[e]}))}var M,C=Y(c),I=!0;for(p=1;p<C.length;p++){var T=C[p-1],k=C[p];if(c[T][xM]!==c[k][xM]){I=!1;break}M=c[T][xM]}if(I&&M){for(var v in c)c[v][xM]&&delete c[v][xM];t[xM]=M}if(j(C,(function(e){return Y(c[e]).length>0})).length){var A=SM(c,n);return A+" "+r[0]+" both"}}for(var v in l){s=g(l[v]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+y]={animation:a.join(",")},t["class"]=y}}var TM=Math.round;function kM(e){return e&&ee(e.src)}function AM(e){return e&&Q(e.toDataURL)}function DM(e,t,n,i){oM((function(r,o){var a="fill"===r||"stroke"===r;a&&Mi(o)?WM(t,e,r,i):a&&bi(o)?UM(n,e,r,i):e[r]=o}),t,n,!1),GM(n,e,i)}function LM(e){return hi(e[0]-1)&&hi(e[1])&&hi(e[2])&&hi(e[3]-1)}function PM(e){return hi(e[4])&&hi(e[5])}function OM(e,t,n){if(t&&(!PM(t)||!LM(t))){var i=n?10:1e4;e.transform=LM(t)?"translate("+TM(t[4]*i)/i+" "+TM(t[5]*i)/i+")":fi(t)}}function RM(e,t,n){for(var i=e.points,r=[],o=0;o<i.length;o++)r.push(TM(i[o][0]*n)/n),r.push(TM(i[o][1]*n)/n);t.points=r.join(" ")}function EM(e){return!e.smooth}function NM(e){var t=W(e,(function(e){return"string"===typeof e?[e,e]:e}));return function(e,n,i){for(var r=0;r<t.length;r++){var o=t[r],a=e[o[0]];null!=a&&(n[o[1]]=TM(a*i)/i)}}}var BM={circle:[NM(["cx","cy","r"])],polyline:[RM,EM],polygon:[RM,EM]};function FM(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}function zM(e,t){var n=e.style,i=e.shape,r=BM[e.type],o={},a=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&Ii(e)||4;if(!r||t.willUpdate||r[1]&&!r[1](i)||a&&FM(e)||l<1){e.path||e.createPathProxy();var c=e.path;e.shapeChanged()&&(c.beginPath(),e.buildPath(c,e.shape),e.pathUpdated());var h=c.getVersion(),d=e,p=d.__svgPathBuilder;d.__svgPathVersion===h&&p&&l===d.__svgPathStrokePercent||(p||(p=d.__svgPathBuilder=new JS),p.reset(u),c.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),o.d=p.getStr()}else{s=e.type;var f=Math.pow(10,u);r[0](i,o,f)}return OM(o,e.transform),DM(o,n,e,t),t.animation&&IM(e,o,t),hM(s,e.id+"",o)}function VM(e,t){var n=e.style,i=n.image;if(i&&!ee(i)&&(kM(i)?i=i.src:AM(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:i,width:a,height:s};return r&&(l.x=r),o&&(l.y=o),OM(l,e.transform),DM(l,n,e,t),t.animation&&IM(e,l,t),hM("image",e.id+"",l)}}function HM(e,t){var n=e.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||p,o=n.x||0,a=vi(n.y||0,po(r),n.textBaseline),s=gi[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(wu(n)){var u="",c=n.fontStyle,h=_u(n.fontSize);if(!parseFloat(h))return;var f=n.fontFamily||d,g=n.fontWeight;u+="font-size:"+h+";font-family:"+f+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),g&&"normal"!==g&&(u+="font-weight:"+g+";"),l.style=u}else l.style="font: "+r;return i.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),OM(l,e.transform),DM(l,n,e,t),t.animation&&IM(e,l,t),hM("text",e.id+"",l,void 0,i)}}function qM(e,t){return e instanceof $l?zM(e,t):e instanceof iu?VM(e,t):e instanceof Jl?HM(e,t):void 0}function GM(e,t,n){var i=e.style;if(yi(i)){var r=mi(e),o=n.shadowCache,a=o[r];if(!a){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=i.shadowOffsetX||0,h=i.shadowOffsetY||0,d=i.shadowBlur,p=ui(i.shadowColor),f=p.opacity,g=p.color,v=d/2/l,y=d/2/u,m=v+" "+y;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=hM("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[hM("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),o[r]=a}t.filter=Ci(a)}}function WM(e,t,n,i){var r,o=e[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(wi(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Si(o))return void 0;r="radialGradient",a.cx=de(o.x,.5),a.cy=de(o.y,.5),a.r=de(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*pi(s[u].offset)+"%",d=s[u].color,p=ui(d),f=p.color,g=p.opacity,v={offset:h};v["stop-color"]=f,g<1&&(v["stop-opacity"]=g),l.push(hM("stop",u+"",v))}var y=hM(r,"",a,l),m=fM(y),x=i.gradientCache,_=x[m];_||(_=i.zrId+"-g"+i.gradientIdx++,x[m]=_,a.id=_,i.defs[_]=hM(r,_,a,l)),t[n]=Ci(_)}function UM(e,t,n,i){var r,o=e.style[n],a={patternUnits:"userSpaceOnUse"};if(xi(o)){var s=o.imageWidth,l=o.imageHeight,u=void 0,c=o.image;if(ee(c)?u=c:kM(c)?u=c.src:AM(c)&&(u=c.toDataURL()),"undefined"===typeof Image){var h="Image width/height must been given explictly in svg-ssr renderer.";ve(s,h),ve(l,h)}else if(null==s||null==l){var d=function(e,t){if(e){var n=e.elm,i=e.attrs.width=s||t.width,r=e.attrs.height=l||t.height;n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},p=gs(u,null,e,(function(e){d(f,e),d(r,e)}));p&&p.width&&p.height&&(s=s||p.width,l=l||p.height)}r=hM("image","img",{href:u,width:s,height:l}),a.width=s,a.height=l}else o.svgElement&&(r=R(o.svgElement),a.width=o.svgWidth,a.height=o.svgHeight);if(r){a.patternTransform=Ti(o);var f=hM("pattern","",a,[r]),g=fM(f),v=i.patternCache,y=v[g];y||(y=i.zrId+"-p"+i.patternIdx++,v[g]=y,a.id=y,f=i.defs[y]=hM("pattern",y,a,[r])),t[n]=Ci(y)}}function jM(e,t,n){var i=n.clipPathCache,r=n.defs,o=i[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};i[e.id]=o,r[o]=hM("clipPath",o,a,[zM(e,n)])}t["clip-path"]=Ci(o)}function ZM(e){return document.createTextNode(e)}function YM(e,t,n){e.insertBefore(t,n)}function $M(e,t){e.removeChild(t)}function XM(e,t){e.appendChild(t)}function KM(e){return e.parentNode}function JM(e){return e.nextSibling}function QM(e,t){e.textContent=t}var eC=58,tC=120,nC=hM("","");function iC(e){return void 0===e}function rC(e){return void 0!==e}function oC(e,t,n){for(var i={},r=t;r<=n;++r){var o=e[r].key;void 0!==o&&(i[o]=r)}return i}function aC(e,t){var n=e.key===t.key,i=e.tag===t.tag;return i&&n}function sC(e){var t,n=e.children,i=e.tag;if(rC(i)){var r=e.elm=cM(i);if(cC(nC,e),J(n))for(t=0;t<n.length;++t){var o=n[t];null!=o&&XM(r,sC(o))}else rC(e.text)&&!ie(e.text)&&XM(r,ZM(e.text))}else e.elm=ZM(e.text);return e.elm}function lC(e,t,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&YM(e,sC(o),t)}}function uC(e,t,n,i){for(;n<=i;++n){var r=t[n];if(null!=r)if(rC(r.tag)){var o=KM(r.elm);$M(o,r.elm)}else $M(e,r.elm)}}function cC(e,t){var n,i=t.elm,r=e&&e.attrs||{},o=t.attrs||{};if(r!==o){for(n in o){var a=o[n],s=r[n];s!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):n.charCodeAt(0)!==tC?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(lM,n,a):n.charCodeAt(3)===eC?i.setAttributeNS(uM,n,a):n.charCodeAt(5)===eC?i.setAttributeNS(sM,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function hC(e,t,n){var i,r,o,a,s=0,l=0,u=t.length-1,c=t[0],h=t[u],d=n.length-1,p=n[0],f=n[d];while(s<=u&&l<=d)null==c?c=t[++s]:null==h?h=t[--u]:null==p?p=n[++l]:null==f?f=n[--d]:aC(c,p)?(dC(c,p),c=t[++s],p=n[++l]):aC(h,f)?(dC(h,f),h=t[--u],f=n[--d]):aC(c,f)?(dC(c,f),YM(e,c.elm,JM(h.elm)),c=t[++s],f=n[--d]):aC(h,p)?(dC(h,p),YM(e,h.elm,c.elm),h=t[--u],p=n[++l]):(iC(i)&&(i=oC(t,s,u)),r=i[p.key],iC(r)?YM(e,sC(p),c.elm):(o=t[r],o.tag!==p.tag?YM(e,sC(p),c.elm):(dC(o,p),t[r]=void 0,YM(e,o.elm,c.elm))),p=n[++l]);(s<=u||l<=d)&&(s>u?(a=null==n[d+1]?null:n[d+1].elm,lC(e,a,n,l,d)):uC(e,t,s,u))}function dC(e,t){var n=t.elm=e.elm,i=e.children,r=t.children;e!==t&&(cC(e,t),iC(t.text)?rC(i)&&rC(r)?i!==r&&hC(n,i,r):rC(r)?(rC(e.text)&&QM(n,""),lC(n,null,r,0,r.length-1)):rC(i)?uC(n,i,0,i.length-1):rC(e.text)&&QM(n,""):e.text!==t.text&&(rC(i)&&uC(n,i,0,i.length-1),QM(n,t.text)))}function pC(e,t){if(aC(e,t))dC(e,t);else{var n=e.elm,i=KM(n);sC(t),null!==i&&(YM(i,t.elm,JM(n)),uC(i,[e],0,0))}return t}var fC=0,gC=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=vC("refreshHover"),this.configLayer=vC("configLayer"),this.storage=t,this._opts=n=B({},n),this.root=e,this._id="zr"+fC++,this._oldVNode=yM(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=cM("svg");cC(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",pC(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return qM(e,vM(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,r=this._height,o=vM(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var a=[];if(n&&"none"!==n){var s=ui(n),l=s.color,u=s.opacity;this._bgVNode=hM("rect","bg",{width:i,height:r,x:"0",y:"0",id:"0",fill:l,"fill-opacity":u}),a.push(this._bgVNode)}else this._bgVNode=null;var c=e.compress?null:this._mainVNode=hM("g","main",{},[]);this._paintList(t,o,c?c.children:a),c&&a.push(c);var h=W(Y(o.defs),(function(e){return o.defs[e]}));if(h.length&&a.push(hM("defs","defs",{},h)),e.animation){var d=gM(o.cssNodes,o.cssAnims,{newline:!0});if(d){var p=hM("style","stl",{},[],d);a.push(p)}}return yM(i,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},fM(this.renderToVNode({animation:de(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:de(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=ui(e),i=n.color,r=n.opacity;t.elm.setAttribute("fill",i),r<1&&t.elm.setAttribute("fill-opacity",r)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,r,o=e.length,a=[],s=0,l=0,u=0;u<o;u++){var c=e[u];if(!c.invisible){var h=c.__clipPaths,d=h&&h.length||0,p=r&&r.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0;f--)if(h&&r&&h[f]===r[f])break;for(var g=p-1;g>f;g--)s--,i=a[s-1];for(var v=f+1;v<d;v++){var y={};jM(h[v],y,t);var m=hM("g","clip-g-"+l++,y,[]);(i?i.children:n).push(m),a[s++]=m,i=m}r=h;var x=qM(c,t);x&&(i?i.children:n).push(x)}}},e.prototype.resize=function(e,t){var n=this._opts,i=this.root,r=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),i&&r&&(r.style.display="none",e=C_(i,0,n),t=C_(i,1,n),r.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,r){var o=r.style;o.width=e+"px",o.height=t+"px"}var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t))}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return e?(t=ki(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+t},e}();function vC(e){return function(){0}}const yC=gC;function mC(e){e.registerPainter("svg",yC)}function xC(e){return null==e?0:e.length||1}function _C(e){return e}var bC=function(){function e(e,t,n,i,r,o){this._old=e,this._new=t,this._oldKeyGetter=n||_C,this._newKeyGetter=i||_C,this.context=r,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=i[o],s=n[a],l=xC(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],o=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=xC(l),h=xC(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=t[i],o=xC(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);t[i]=null}},e.prototype._initIndexMap=function(e,t,n,i){for(var r=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[i](e[o],o);if(r||(n[o]=a),t){var s=t[a],l=xC(s);0===l?(t[a]=o,r&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}();const wC=bC;var SC=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function MC(e,t){var n={},i=n.encode={},r=we(),o=[],a=[],s={};G(e.dimensions,(function(t){var n=e.getDimensionInfo(t),l=n.coordDim;if(l){0;var u=n.coordDimIndex;CC(i,l)[u]=t,n.isExtraCoord||(r.set(l,1),TC(n.type)&&(o[0]=t),CC(s,l)[u]=e.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(t)}up.each((function(e,t){var r=CC(i,t),o=n.otherDims[t];null!=o&&!1!==o&&(r[o]=n.name)}))}));var l=[],u={};r.each((function(e,t){var n=i[t];u[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=W(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new SC(s,t),n}function CC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function IC(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function TC(e){return!("ordinal"===e||"time"===e)}var kC=function(){function e(e){this.otherDims={},null!=e&&B(this,e)}return e}();const AC=kC;var DC=Ba(),LC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},PC=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=EC(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return de(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Xf(this.source),n=!NC(e),i="",r=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=t?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=LC[l]||"f",u&&(i+=u.uid),i+="$"}var d=this.source,p=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:r,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function OC(e){return e instanceof PC}function RC(e){for(var t=we(),n=0;n<(e||[]).length;n++){var i=e[n],r=ie(i)?i.name:i;null!=r&&null==t.get(r)&&t.set(r,n)}return t}function EC(e){var t=DC(e);return t.dimNameMap||(t.dimNameMap=RC(e.dimensionsDefine))}function NC(e){return e>30}var BC,FC,zC,VC,HC,qC,GC,WC=ie,UC=W,jC="undefined"===typeof Int32Array?Array:Int32Array,ZC="e\0\0",YC=-1,$C=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],XC=["_approximateExtent"],KC=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;OC(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=ee(c)?new AC({name:c}):c instanceof AC?c:new AC(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(d),r[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=we();G(o,(function(e){f.set(r[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var i=this._schema.getSourceDimension(t);return i?i.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(ne(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,r=this;if(e instanceof Yg&&(i=e),!i){var o=this.dimensions,a=Hf(e)||q(e)?new Kf(e,o.length):e;i=new Yg;var s=UC(o,(function(e){return{type:r._dimInfos[e].type,property:e}}));i.initData(a,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=MC(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=t[s],o&&GC(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==fp&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===cp;if(s&&!i.pure)for(var l=[],u=e;u<t;u++){var c=i.getItem(u,l);if(!this.hasItemOption&&xa(c)&&(this.hasItemOption=!0),c){var h=c.name;null==r[u]&&null!=h&&(r[u]=Aa(h,null));var d=c.id;null==o[u]&&null!=d&&(o[u]=Aa(d,null))}}if(this._shouldMakeIdFromName())for(u=e;u<t;u++)GC(this,u);BC(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){WC(e)?B(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=zC(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return FC(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,i=this._store;return J(e)?i.getValues(UC(e,(function(e){return n._getStoreDimIndex(e)})),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var i=n[t];return null==i||isNaN(i)?YC:i},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){Q(e)&&(n=t,t=e,e=[]);var i=n||this,r=UC(VC(e),this._getStoreDimIndex,this);this._store.each(r,i?X(t,i):t)},e.prototype.filterSelf=function(e,t,n){Q(e)&&(n=t,t=e,e=[]);var i=n||this,r=UC(VC(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?X(t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={},i=Y(e),r=[];return G(i,(function(i){var o=t._getStoreDimIndex(i);n[o]=e[i],r.push(o)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){Q(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},e.prototype.map=function(e,t,n,i){var r=n||i||this,o=UC(VC(e),this._getStoreDimIndex,this),a=qC(this);return a._store=this._store.map(o,r?X(t,r):t),a},e.prototype.modify=function(e,t,n,i){var r=n||i||this;var o=UC(VC(e),this._getStoreDimIndex,this);this._store.modify(o,r?X(t,r):t)},e.prototype.downSample=function(e,t,n,i){var r=qC(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),r},e.prototype.lttbDownSample=function(e,t){var n=qC(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Oh(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new wC(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return FC(e,t)}),(function(e){return FC(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},WC(e)?B(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(r=this.getVisual(t),J(r)?r=r.slice():WC(r)&&(r=B({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,WC(t)?B(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){WC(e)?B(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?B(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Pu(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){G(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:UC(this.dimensions,this._getDimInfo,this),this.hostModel)),HC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];Q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(fe(arguments)))})},e.internalField=function(){BC=function(e){var t=e._invertedIndicesMap;G(t,(function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,a=e._store;if(o){n=t[i]=new jC(o.categories.length);for(var s=0;s<n.length;s++)n[s]=YC;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},zC=function(e,t,n){return Aa(e._getCategory(t,n),null)},FC=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=zC(e,e._idDimIdx,t)),null==n&&(n=ZC+t),n},VC=function(e){return J(e)||(e=null!=e?[e]:[]),e},qC=function(t){var n=new e(t._schema?t._schema:UC(t.dimensions,t._getDimInfo,t),t.hostModel);return HC(n,t),n},HC=function(e,t){G($C.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,G(XC,(function(n){e[n]=R(t[n])})),e._calculationInfo=B({},t._calculationInfo)},GC=function(e,t){var n=e._nameList,i=e._idList,r=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=i[t];if(null==a&&null!=r&&(n[t]=a=zC(e,r,t)),null==s&&null!=o&&(i[t]=s=zC(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[t]=s}}}(),e}();const JC=KC;function QC(e,t){Hf(e)||(e=Gf(e)),t=t||{};var n=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=we(),o=[],a=tI(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&NC(a),l=i===e.dimensionsDefine,u=l?EC(e):RC(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var h=we(c),d=new Vg(a),p=0;p<d.length;p++)d[p]=-1;function f(e){var t=d[e];if(t<0){var n=i[e],r=ie(n)?n:{name:n},a=new AC,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return d[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(p=0;p<a;p++)f(p);h.each((function(e,t){var n=ga(e).slice();if(1===n.length&&!ee(n[0])&&n[0]<0)h.set(t,!1);else{var i=h.set(t,[]);G(n,(function(e,n){var r=ee(e)?u.get(e):e;null!=r&&r<a&&(i[n]=r,v(f(r),t,n))}))}}));var g=0;function v(e,t,n){null!=up.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,r.set(t,!0))}G(n,(function(e){var t,n,i,r;if(ee(e))t=e,r={};else{r=e,t=r.name;var o=r.ordinalMeta;r.ordinalMeta=null,r=B({},r),r.ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(t);if(!1!==s){if(s=ga(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(g<a&&null!=f(g).coordDim)g++;g<a&&s.push(g++)}G(s,(function(e,o){var a=f(e);if(l&&null!=r.type&&(a.type=r.type),v(F(a,r),t,o),null==a.name&&n){var s=n[o];!ie(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&F(a.otherDims,i)}))}}));var y=t.generateCoord,m=t.generateCoordCount,x=null!=m;m=y?m||1:0;var _=y||"value";function b(e){null==e.name&&(e.name=e.coordDim)}if(s)G(o,(function(e){b(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w),M=S.coordDim;null==M&&(S.coordDim=nI(_,r,x),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),b(S),null!=S.type||Cp(e,w)!==mp.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return eI(o),new PC({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function eI(e){for(var t=we(),n=0;n<e.length;n++){var i=e[n],r=i.name,o=t.get(r)||0;o>0&&(i.name=r+(o-1)),o++,t.set(r,o)}}function tI(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return G(t,(function(e){var t;ie(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}function nI(e,t,n){var i=t.data;if(n||i.hasOwnProperty(e)){var r=0;while(i.hasOwnProperty(e+r))r++;e+=r}return t.set(e,!0),e}var iI=function(){function e(e){this.coordSysDims=[],this.axisMap=we(),this.categoryAxisMap=we(),this.coordSysName=e}return e}();function rI(e){var t=e.get("coordinateSystem"),n=new iI(t),i=oI[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var oI={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",Ha).models[0],o=e.getReferringComponents("yAxis",Ha).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),aI(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),aI(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",Ha).models[0];t.coordSysDims=["single"],n.set("single",r),aI(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",Ha).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),aI(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),aI(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();G(o.parallelAxisIndex,(function(e,o){var s=r.getComponent("parallelAxis",e),l=a[o];n.set(l,s),aI(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function aI(e){return"category"===e.get("type")}function sI(e,t,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;lI(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var l,u,c,h,d=!(!e||!e.get("stack"));if(G(i,(function(e,t){ee(e)&&(i[t]=e={name:e}),d&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;G(i,(function(e){e.coordDim===p&&g++}));var v={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,f),y.storeDimIndex=o.ensureCalculationDimension(c,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(i.push(v),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function lI(e){return!OC(e.schema)}function uI(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function cI(e,t){return uI(e,t)?e.getCalculationInfo("stackResultDimension"):t}function hI(e,t){var n,i=e.get("coordinateSystem"),r=ef.get(i);return t&&t.coordSysDims&&(n=W(t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=IC(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function dI(e,t,n){var i,r;return n&&G(e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(r=!0)})),r||null==i||(e[i].otherDims.itemName=0),i}function pI(e,t,n){n=n||{};var i,r=t.getSourceManager(),o=!1;e?(o=!0,i=Gf(e)):(i=r.getSource(),o=i.sourceFormat===cp);var a=rI(t),s=hI(t,a),l=n.useEncodeDefaulter,u=Q(l)?l:l?K(bp,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=QC(i,c),d=dI(h.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(h),f=sI(t,{schema:h,store:p}),g=new JC(h,t);g.setCalculationInfo(f);var v=null!=d&&fI(i)?function(e,t,n,i){return i===d?n:this.defaultDimValueGetter(e,t,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:p,null,v),g}function fI(e){if(e.sourceFormat===cp){var t=gI(e.data||[]);return!J(ma(t))}}function gI(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}const vI=pI;var yI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.getInitialData=function(e){return vI(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Lo,n=v_("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*e.itemHeight,s=v_(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?r:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ov);const mI=yI;function xI(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=lg(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(lg(e,t,n[a]));return o.join(" ")}}function _I(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!J(t))return t+"";for(var i=[],r=0;r<n.length;r++){var o=e.getDimensionIndex(n[r]);o>=0&&i.push(t[o])}return i.join(" ")}var bI=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return o(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=v_(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=wI,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){vc(this.childAt(0))},t.prototype.downplay=function(){yc(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):Xc(h,d,a,n),nh(h)}if(this._updateCommon(e,n,s,i,r),l){h=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Kc(h,d,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,a,s,l,u,c,h,d,p,f=this.childAt(0),g=e.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle,c=i.emphasisDisabled),!i||e.hasItemOption){var v=i&&i.itemModel?i.itemModel:e.getItemModel(t),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=lh(v),d=y.getShallow("scale"),p=v.getShallow("cursor")}var m=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=m_(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var _=e.getItemVisual(t,"style"),b=_.fill;if(f instanceof iu){var w=f.style;f.useStyle(B({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(B({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var C=r&&r.useNameLabel;function I(t){return C?e.getName(t):xI(e,t)}sh(f,h,{labelFetcher:g,labelDataIndex:t,defaultText:I,inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");if(T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,d){var k=Math.max(ne(d)?d:1.1,3/this._sizeY);T.scaleX=this._sizeX*k,T.scaleY=this._sizeY*k}this.setSymbolScale(1),Ec(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=Lu(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Qc(a,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Qc(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return y_(e.getItemVisual(t,"symbolSize"))},t}(Lo);function wI(e,t){this.parent.drift(e,t)}const SI=bI;function MI(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function CI(e){return null==e||ie(e)||(e={isIgnore:e}),e||{}}function II(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:lh(t),cursorStyle:t.get("cursor")}}var TI=function(){function e(e){this.group=new Lo,this._SymbolCtor=e||SI}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=CI(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=II(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=u(i);if(MI(e,r,i,t)){var a=new o(e,i,s,l);a.setPosition(r),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,h){var d=r.getItemGraphicEl(h),p=u(c);if(MI(e,p,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new o(e,c,s,l),d.setPosition(p);else{d.updateData(e,c,s,l);var v={x:p[0],y:p[1]};a?d.attr(v):Xc(d,v,i)}n.add(d),e.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=II(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=CI(n);for(var r=e.start;r<e.end;r++){var o=t.getItemLayout(r);if(MI(t,o,r,n)){var a=new this._SymbolCtor(t,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){Zm(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}();const kI=TI;function AI(e,t,n){var i=e.getBaseAxis(),r=e.getOtherAxis(i),o=DI(r,n),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,h=W(e.dimensions,(function(e){return t.mapDimension(e)})),d=!1,p=t.getCalculationInfo("stackResultDimension");return uI(t,h[0])&&(d=!0,h[0]=p),uI(t,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function DI(e,t){var n=0,i=e.scale.getExtent();return"start"===t?n=i[0]:"end"===t?n=i[1]:ne(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function LI(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var PI="undefined"!==typeof Float32Array,OI=PI?Float32Array:Array;function RI(e){return J(e)?PI?new Float32Array(e):e:new OI(e)}function EI(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function NI(e,t,n,i,r,o,a,s){for(var l=EI(e,t),u=[],c=[],h=[],d=[],p=[],f=[],g=[],v=AI(r,t,a),y=e.getLayout("points")||[],m=t.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,w=void 0,S=void 0;switch(_.cmd){case"=":w=2*_.idx,S=2*_.idx1;var M=y[w],C=y[w+1],I=m[S],T=m[S+1];(isNaN(M)||isNaN(C))&&(M=I,C=T),u.push(M,C),c.push(I,T),h.push(n[w],n[w+1]),d.push(i[S],i[S+1]),g.push(t.getRawIndex(_.idx1));break;case"+":var k=_.idx,A=v.dataDimsForPoint,D=r.dataToPoint([t.get(A[0],k),t.get(A[1],k)]);S=2*k,u.push(D[0],D[1]),c.push(m[S],m[S+1]);var L=LI(v,r,t,k);h.push(L[0],L[1]),d.push(i[S],i[S+1]),g.push(t.getRawIndex(k));break;case"-":b=!1}b&&(p.push(_),f.push(f.length))}f.sort((function(e,t){return g[e]-g[t]}));var P=u.length,O=RI(P),R=RI(P),E=RI(P),N=RI(P),B=[];for(x=0;x<f.length;x++){var F=f[x],z=2*x,V=2*F;O[z]=u[V],O[z+1]=u[V+1],R[z]=c[V],R[z+1]=c[V+1],E[z]=h[V],E[z+1]=h[V+1],N[z]=d[V],N[z+1]=d[V+1],B[x]=p[F]}return{current:O,next:R,stackedOnCurrent:E,stackedOnNext:N,status:B}}var BI=Math.min,FI=Math.max;function zI(e,t){return isNaN(e)||isNaN(t)}function VI(e,t,n,i,r,o,a,s,l){for(var u,c,h,d,p,f,g=n,v=0;v<i;v++){var y=t[2*g],m=t[2*g+1];if(g>=r||g<0)break;if(zI(y,m)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](y,m),h=y,d=m;else{var x=y-u,_=m-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){var b=g+o,w=t[2*b],S=t[2*b+1];while(w===y&&S===m&&v<i)v++,b+=o,g+=o,w=t[2*b],S=t[2*b+1],y=t[2*g],m=t[2*g+1],x=y-u,_=m-c;var M=v+1;if(l)while(zI(w,S)&&M<i)M++,b+=o,w=t[2*b],S=t[2*b+1];var C=.5,I=0,T=0,k=void 0,A=void 0;if(M>=i||zI(w,S))p=y,f=m;else{I=w-u,T=S-c;var D=y-u,L=w-y,P=m-c,O=S-m,R=void 0,E=void 0;if("x"===s){R=Math.abs(D),E=Math.abs(L);var N=I>0?1:-1;p=y-N*R*a,f=m,k=y+N*E*a,A=m}else if("y"===s){R=Math.abs(P),E=Math.abs(O);var B=T>0?1:-1;p=y,f=m-B*R*a,k=y,A=m+B*E*a}else R=Math.sqrt(D*D+P*P),E=Math.sqrt(L*L+O*O),C=E/(E+R),p=y-I*a*(1-C),f=m-T*a*(1-C),k=y+I*a*C,A=m+T*a*C,k=BI(k,FI(w,y)),A=BI(A,FI(S,m)),k=FI(k,BI(w,y)),A=FI(A,BI(S,m)),I=k-y,T=A-m,p=y-I*R/E,f=m-T*R/E,p=BI(p,FI(u,y)),f=BI(f,FI(c,m)),p=FI(p,BI(u,y)),f=FI(f,BI(c,m)),I=y-p,T=m-f,k=y+I*E/R,A=m+T*E/R}e.bezierCurveTo(h,d,p,f,y,m),h=k,d=A}else e.lineTo(y,m)}u=y,c=m,g+=o}return v}var HI=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),qI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new HI},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0;r--)if(!zI(n[2*r-2],n[2*r-1]))break;for(;i<r;i++)if(!zI(n[2*i],n[2*i+1]))break}while(i<r)i+=VI(e,n,i,r,r,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=Sl.CMD,s="x"===t,l=[],u=0;u<o.length;){var c=o[u++],h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,v=void 0,y=void 0;switch(c){case a.M:n=o[u++],i=o[u++];break;case a.L:if(h=o[u++],d=o[u++],y=s?(e-n)/(h-n):(e-i)/(d-i),y<=1&&y>=0){var m=s?(d-i)*y+i:(h-n)*y+n;return s?[e,m]:[m,e]}n=h,i=d;break;case a.C:h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++],v=o[u++];var x=s?xn(n,h,p,g,e,l):xn(i,d,f,v,e,l);if(x>0)for(var _=0;_<x;_++){var b=l[_];if(b<=1&&b>=0){m=s?yn(i,d,f,v,b):yn(n,h,p,g,b);return s?[e,m]:[m,e]}}n=g,i=v;break}}},t}($l),GI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(HI),WI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return o(t,e),t.prototype.getDefaultShape=function(){return new GI},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!zI(n[2*o-2],n[2*o-1]))break;for(;r<o;r++)if(!zI(n[2*r],n[2*r+1]))break}while(r<o){var s=VI(e,n,r,o,o,1,t.smooth,a,t.connectNulls);VI(e,i,r+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),r+=s+1,e.closePath()}},t}($l);function UI(e,t,n,i,r){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new du({shape:{x:a,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=Q(r)?function(e){r(e,h)}:null;Kc(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}function jI(e,t,n){var i=e.getArea(),r=Wo(i.r0,1),o=Wo(i.r,1),a=new Ay({shape:{cx:Wo(e.cx,1),cy:Wo(e.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s="angle"===e.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,Kc(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function ZI(e,t,n,i,r){return e?"polar"===e.type?jI(e,t,n):"cartesian2d"===e.type?UI(e,t,n,i,r):null:null}function YI(e,t){return e.type===t}function $I(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function XI(e){for(var t=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[t,n],[i,r]]}function KI(e,t){var n=XI(e),i=n[0],r=n[1],o=XI(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function JI(e){return ne(e)?e:e?.5:0}function QI(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),r=RI(2*i),o=0;o<i;o++){var a=LI(n,e,t,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function eT(e,t,n,i){var r=t.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(i){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||h.push(e[s],e[s+1]);e=h}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],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,p=[];l[o]=p[o]=d,l[1-o]=u[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function tT(e,t){var n,i,r=[],o=e.length;function a(e,t,n){var i=e.coord,r=(n-i)/(t.coord-i),o=ii(r,[e.color,t.color]);return{coord:n,color:o}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function nT(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var l=t.getAxis(r),u=W(o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=tT(u,"x"===r?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=10,g=d[0].coord-f,v=d[p-1].coord+f,y=v-g;if(y<.001)return"transparent";G(d,(function(e){e.offset=(e.coord-g)/y})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var m=new rm(0,0,0,0,d,!0);return m[r]=g,m[r+"2"]=v,m}}}function iT(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!rT(o,t))){var a=t.mapDimension(o.dim),s={};return G(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function rT(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*SI.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}function oT(e,t){return isNaN(e)||isNaN(t)}function aT(e){for(var t=e.length/2;t>0;t--)if(!oT(e[2*t-2],e[2*t-1]))break;return t-1}function sT(e,t){return[e[2*t],e[2*t+1]]}function lT(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=e[2*u+a],!isNaN(r)&&!isNaN(e[2*u+1-a]))if(0!==u){if(i<=t&&r>=t||i>=t&&r<=t){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}function uT(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Vu.length;t++)if(e.get([Vu[t],"endLabel","show"]))return!0;return!1}function cT(e,t,n,i){if(YI(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=uT(i)?function(n,i){e._endLabelOnDuring(n,i,a,s,o,r,t)}:null,u=t.getBaseAxis().isHorizontal(),c=UI(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return jI(t,n,i)}function hT(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var dT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(){var e=new Lo,t=new kI;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,d=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,v=e.get("animation"),y=!l.isEmpty(),m=l.get("origin"),x=AI(r,a,m),_=y&&QI(r,a,x),b=e.get("showSymbol"),w=e.get("connectNulls"),S=b&&!c&&iT(e,a,r),M=this._data;M&&M.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),M.setItemGraphicEl(t,null))})),b||d.remove(),o.add(g);var C,I=!c&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(C=r.getArea(),null!=C.width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var T=nT(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&h.type===r.type&&I===this._step){y&&!f?f=this._newPolygon(u,_):f&&!y&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,r,Hd(T));var k=g.getClipPath();if(k){var A=cT(this,r,!1,e);Kc(k,{shape:A.shape},e)}else g.setClipPath(cT(this,r,!0,e));b&&d.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),$I(this._stackedOnPoints,_)&&$I(this._points,u)||(v?this._doUpdateAnimation(a,_,r,n,I,m,w):(I&&(u=eT(u,r,I,w),_&&(_=eT(_,r,I,w))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&d.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),v&&this._initSymbolLabelAnimation(a,r,C),I&&(u=eT(u,r,I,w),_&&(_=eT(_,r,I,w))),p=this._newPolyline(u),y?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,r,Hd(T)),g.setClipPath(cT(this,r,!0,e));var D=e.getModel("emphasis"),L=D.get("focus"),P=D.get("blurScope"),O=D.get("disabled");if(p.useStyle(F(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),zc(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var R=p.getState("emphasis").style;R.lineWidth=+p.style.lineWidth+1}Lu(p).seriesIndex=e.seriesIndex,Ec(p,L,P,O);var E=JI(e.get("smooth")),N=e.get("smoothMonotone");if(p.setShape({smooth:E,smoothMonotone:N,connectNulls:w}),f){var B=a.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(F(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),B&&(z=JI(B.get("smooth"))),f.setShape({smooth:E,stackedOnSmooth:z,smoothMonotone:N,connectNulls:w}),zc(f,e,"areaStyle"),Lu(f).seriesIndex=e.seriesIndex,Ec(f,L,P,O)}var V=function(e){i._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=V)})),this._polyline.onHoverStateChange=V,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=I,this._valueOrigin=m,e.get("triggerLineEvent")&&(this.packEventData(e,p),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){Lu(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=Na(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel"),h=e.get("z");s=new SI(r,o),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else nx.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=Na(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else nx.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;sc(this._polyline,e),t&&sc(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new qI({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new WI({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var s=e.hostModel,l=s.get("animationDuration");Q(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=Q(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var h=[e.x,e.y],d=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,v=t.pointToCoord(h);i?(d=g.startAngle,p=g.endAngle,f=-v[1]/180*Math.PI):(d=g.r0,p=g.r,f=v[0])}else{var y=n;i?(d=y.x,p=y.x+y.width,f=e.x):(d=y.y+y.height,p=y.y,f=e.y)}var m=p===d?0:(f-d)/(p-d);a&&(m=1-m);var x=Q(u)?u(o):l*m+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(uT(e)){var r=e.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Du({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=aT(a);l>=0&&(sh(o,lh(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?_I(r,n):xI(r,e)},enableTextSetter:!0},hT(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,y=t.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,x=(g?p:0)*(v?-1:1),_=(g?0:-p)*(v?-1:1),b=g?"x":"y",w=lT(u,m,b),S=w.range,M=S[1]-S[0],C=void 0;if(M>=1){if(M>1&&!h){var I=sT(u,S[0]);s.attr({x:I[0]+x,y:I[1]+_}),r&&(C=c.getRawValue(S[0]))}else{I=l.getPointOn(m,b);I&&s.attr({x:I[0]+x,y:I[1]+_});var T=c.getRawValue(S[0]),k=c.getRawValue(S[1]);r&&(C=Ya(n,d,T,k,w.t))}i.lastFrameIndex=S[0]}else{var A=1===e||i.lastFrameIndex>0?S[0]:0;I=sT(u,A);r&&(C=c.getRawValue(A)),s.attr({x:I[0]+x,y:I[1]+_})}r&&mh(s).setLabelText(C)}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=NI(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(h=eT(c.current,n,r,a),d=eT(c.stackedOnCurrent,n,r,a),p=eT(c.next,n,r,a),f=eT(c.stackedOnNext,n,r,a)),KI(h,p)>3e3||l&&KI(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Xc(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Xc(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;m<y.length;m++){var x=y[m].cmd;if("="===x){var _=e.getItemGraphicEl(y[m].idx1);_&&v.push({el:_,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<v.length;t++){var n=v[t].el,i=2*v[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(nx);const pT=dT;function fT(e,t){return{seriesType:e,plan:Nv(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,r=e.pipelineContext,o=t||r.large;if(i){var a=W(i.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");uI(n,a[0])&&(a[0]=l),uI(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,r=o&&RI(n*s),a=[],l=[],d=e.start,p=0;d<e.end;d++){var f=void 0;if(1===s){var g=u.get(c,d);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,d),a[1]=u.get(h,d),f=i.dataToPoint(a,null,l);o?(r[p++]=f[0],r[p++]=f[1]):t.setItemLayout(d,f.slice())}o&&t.setLayout("points",r)}}}}}}var gT={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},vT=function(e){return Math.round(e.length/2)};function yT(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),r=e.get("sampling"),o=e.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===r&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;ee(r)?p=gT[r]:Q(r)&&(p=r),p&&e.setData(i.downSample(i.mapDimension(l.dim),1/d,p,vT))}}}}}function mT(e){e.registerChartView(pT),e.registerSeriesModel(mI),e.registerLayout(fT("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,yT("line"))}var xT="__ec_stack_";function _T(e){return e.get("stack")||xT+e.seriesIndex}function bT(e){return e.dim+e.index}function wT(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<e.count;o++)t.push(F({bandWidth:r,axisKey:i,stackId:xT+o},e));var a=IT(t),s=[];for(o=0;o<e.count;o++){var l=a[i][xT+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ST(e,t){var n=[];return t.eachSeriesByType(e,(function(e){DT(e)&&n.push(e)})),n}function MT(e){var t={};G(e,(function(e){var n=e.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=e.getData(),o=i.dim+"_"+i.index,a=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);t[o]?t[o].push(c):t[o]=[c]}}));var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(r){r.sort((function(e,t){return e-t}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function CT(e){var t=MT(e),n=[];return G(e,(function(e){var i,r=e.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);i=l?u/h*l:u}else{var d=e.getData();i=Math.abs(a[1]-a[0])/d.count()}var p=Go(e.get("barWidth"),i),f=Go(e.get("barMaxWidth"),i),g=Go(e.get("barMinWidth")||(LT(e)?.5:1),i),v=e.get("barGap"),y=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:bT(o),stackId:_T(e)})})),IT(n)}function IT(e){var t={};G(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var h=e.barGap;null!=h&&(o.gap=h);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return G(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=e.categoryGap;if(null==o){var a=Y(i).length;o=Math.max(35-4*a,15)+"%"}var s=Go(o,r),l=Go(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),G(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,u-=i+l*i,c--}else{var i=h;t&&t<i&&(i=Math.min(t,u)),n&&n>i&&(i=n),i!==h&&(e.width=i,u-=i+l*i,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;G(i,(function(e,t){e.width||(e.width=h),d=e,p+=e.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;G(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:r,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}function TT(e,t,n){if(e&&t){var i=e[bT(t)];return null!=i&&null!=n?i[_T(n)]:i}}function kT(e,t){var n=ST(e,t),i=CT(n);G(n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=_T(e),a=i[bT(r)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function AT(e){return{seriesType:e,plan:Nv(),reset:function(e){if(DT(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(r.dim)),a=t.getDimensionIndex(t.mapDimension(i.dim)),s=e.get("showBackground",!0),l=t.mapDimension(r.dim),u=t.getCalculationInfo("stackResultDimension"),c=uI(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),d=PT(i,r),p=LT(e),f=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),v=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(e,t){var i,r=e.count,l=p&&RI(3*r),u=p&&s&&RI(3*r),m=p&&RI(r),x=n.master.getRect(),_=h?x.width:x.height,b=t.getStore(),w=0;while(null!=(i=e.next())){var S=b.get(c?g:o,i),M=b.get(a,i),C=d,I=void 0;c&&(I=+S-b.get(o,i));var T=void 0,k=void 0,A=void 0,D=void 0;if(h){var L=n.dataToPoint([S,M]);if(c){var P=n.dataToPoint([I,M]);C=P[0]}T=C,k=L[1]+y,A=L[0]-C,D=v,Math.abs(A)<f&&(A=(A<0?-1:1)*f)}else{L=n.dataToPoint([M,S]);if(c){P=n.dataToPoint([M,I]);C=P[1]}T=L[0]+y,k=C,A=v,D=L[1]-C,Math.abs(D)<f&&(D=(D<=0?-1:1)*f)}p?(l[w]=T,l[w+1]=k,l[w+2]=h?A:D,u&&(u[w]=h?x.x:T,u[w+1]=h?k:x.y,u[w+2]=_),m[i]=i):t.setItemLayout(i,{x:T,y:k,width:A,height:D}),w+=3}p&&t.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function DT(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function LT(e){return e.pipelineContext&&e.pipelineContext.large}function PT(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}var OT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t&&t.clampData){var n=t.dataToPoint(t.clampData(e)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size"),a=t.getBaseAxis().isHorizontal()?0:1;return n[a]+=r+o/2,n}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}(Ov);Ov.registerClass(OT);const RT=OT;var ET=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(){return vI(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Fh(RT.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}(RT);const NT=ET;var BT=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),FT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return o(t,e),t.prototype.getDefaultShape=function(){return new BT},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);d?(e.moveTo(p*r+n,f*r+i),e.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!c)):e.moveTo(p*o+n,f*o+i),e.arc(n,i,o,l,u,!c),e.arc(g*s+n,v*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&e.arc(n,i,r,u,l,c)},t}($l);const zT=FT;function VT(e,t){t=t||{};var n=t.isRoundCap;return function(t,i,r){var o=i.position;if(!o||o instanceof Array)return go(t,i,r);var a=e(o),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,c=l.cy,h=l.r,d=l.r0,p=(h+d)/2,f=l.startAngle,g=l.endAngle,v=(f+g)/2,y=n?Math.abs(h-d)/2:0,m=Math.cos,x=Math.sin,_=u+h*m(f),b=c+h*x(f),w="left",S="top";switch(a){case"startArc":_=u+(d-s)*m(v),b=c+(d-s)*x(v),w="center",S="top";break;case"insideStartArc":_=u+(d+s)*m(v),b=c+(d+s)*x(v),w="center",S="bottom";break;case"startAngle":_=u+p*m(f)+qT(f,s+y,!1),b=c+p*x(f)+GT(f,s+y,!1),w="right",S="middle";break;case"insideStartAngle":_=u+p*m(f)+qT(f,-s+y,!1),b=c+p*x(f)+GT(f,-s+y,!1),w="left",S="middle";break;case"middle":_=u+p*m(v),b=c+p*x(v),w="center",S="middle";break;case"endArc":_=u+(h+s)*m(v),b=c+(h+s)*x(v),w="center",S="bottom";break;case"insideEndArc":_=u+(h-s)*m(v),b=c+(h-s)*x(v),w="center",S="top";break;case"endAngle":_=u+p*m(g)+qT(g,s+y,!0),b=c+p*x(g)+GT(g,s+y,!0),w="left",S="middle";break;case"insideEndAngle":_=u+p*m(g)+qT(g,-s+y,!0),b=c+p*x(g)+GT(g,-s+y,!0),w="right",S="middle";break;default:return go(t,i,r)}return t=t||{},t.x=_,t.y=b,t.align=w,t.verticalAlign=S,t}}function HT(e,t,n,i){if(ne(i))e.setTextConfig({rotation:i});else if(J(t))e.setTextConfig({rotation:0});else{var r,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void e.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}function qT(e,t,n){return t*Math.sin(e)*(n?-1:1)}function GT(e,t,n){return t*Math.cos(e)*(n?1:-1)}var WT=Math.max,UT=Math.min;function jT(e,t){var n=e.getArea&&e.getArea();if(YI(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var ZT=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return o(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Zm(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,h=XT(e,l);h&&this._enableRealtimeSort(h,a,n);var d=e.get("clip",!0)||h,p=jT(l,a);o.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),v=e.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],x=this._backgroundEls,_=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(e){var t=nk[l.type](a,e),n=pk(l,r,t);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=nk[l.type](a,t,n);if(g&&w(t),a.hasValue(t)&&tk[l.type](i)){var s=!1;d&&(s=YT[l.type](p,i));var v=$T[l.type](e,a,t,i,r,c,u.model,!1,f);h&&(v.forceLabelAnimation=!0),ok(v,a,t,n,i,e,r,"polar"===l.type),_?v.attr({shape:i}):h?KT(h,c,v,i,t,r,!1,!1):Kc(v,{shape:i},e,t),a.setItemGraphicEl(t,v),o.add(v),v.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),S=nk[l.type](a,t,i);if(g){var M=void 0;0===x.length?M=w(n):(M=x[n],M.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&M.setShape("r",y),m[t]=M);var C=nk[l.type](a,t),I=dk(r,C,l);Xc(M,{shape:I},c,t)}var T=s.getItemGraphicEl(n);if(a.hasValue(t)&&tk[l.type](S)){var k=!1;if(d&&(k=YT[l.type](p,S),k&&o.remove(T)),T?nh(T):T=$T[l.type](e,a,t,S,r,c,u.model,!!T,f),h&&(T.forceLabelAnimation=!0),b){var A=T.getTextContent();if(A){var D=mh(A);null!=D.prevValue&&(D.prevValue=D.value)}}else ok(T,a,t,i,S,e,r,"polar"===l.type);_?T.attr({shape:S}):h?KT(h,c,T,S,t,r,!0,b):Xc(T,{shape:S},e,t,null),a.setItemGraphicEl(t,T),T.ignore=k,o.add(T)}else o.remove(T)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&th(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Lo);S.removeAll();for(var M=0;M<m.length;++M)S.add(m[M]);o.add(S),this._backgroundEls=m,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),uk(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),uk(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&ZI(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var r=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var i=[];return e.each(e.mapDimension(t.dim),(function(e,t){var r=n(t);r=null==r?NaN:r,i.push({dataIndex:t,mappedValue:r,ordinalNumber:e})})),i.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:W(i,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,r=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){th(t,e,Lu(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(nx),YT={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=WT(t.x,e.x),s=UT(t.x+t.width,r),l=WT(t.y,e.y),u=UT(t.y+t.height,o),c=s<a,h=u<l;return t.x=c&&a>r?s:a,t.y=h&&l>o?u:l,t.width=c?0:s-a,t.height=h?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=UT(t.r,e.r),o=WT(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},$T={cartesian2d:function(e,t,n,i,r,o,a,s,l){var u=new du({shape:B({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,h=r?"height":"width";c[h]=0}return u},polar:function(e,t,n,i,r,o,a,s,l){var u=!r&&l?zT:Ay,c=new u({shape:i,z2:1});c.name="item";var h=rk(r);if(c.calculateTextPosition=VT(h,{isRoundCap:u===zT}),o){var d=c.shape,p=r?"r":"endAngle",f={};d[p]=r?0:i.startAngle,f[p]=i[p],(s?Xc:Kc)(c,{shape:f},o)}return c}};function XT(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function KT(e,t,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Xc:Kc)(n,{shape:l},t,r,null);var c=t?e.baseAxis.model:null;(a?Xc:Kc)(n,{shape:u},c,r)}function JT(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var QT=["x","y","width","height"],ek=["cx","cy","r","startAngle","endAngle"],tk={cartesian2d:function(e){return!JT(e,QT)},polar:function(e){return!JT(e,ek)}},nk={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),r=n?ak(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ik(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function rk(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function ok(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",i.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=i.getShallow("cursor");u&&e.attr("cursor",u);var c=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",h=lh(i);sh(e,h,{labelFetcher:o,labelDataIndex:n,defaultText:xI(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=e.getTextContent();if(s&&d){var p=i.get(["label","position"]);e.textConfig.inside="middle"===p||null,HT(e,"outside"===p?c:p,rk(a),i.get(["label","rotate"]))}xh(d,h,o.getRawValue(n),(function(e){return _I(t,e)}));var f=i.getModel(["emphasis"]);Ec(e,f.get("focus"),f.get("blurScope"),f.get("disabled")),zc(e,i),ik(r)&&(e.style.fill="none",e.style.stroke="none",G(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function ak(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var sk=function(){function e(){}return e}(),lk=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return o(t,e),t.prototype.getDefaultShape=function(){return new sk},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],e.rect(o[0],o[1],a[0],a[1])},t}($l);function uk(e,t,n,i){var r=e.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=e.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new lk({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var h=new lk({shape:{points:r.getLayout("largePoints")},incremental:!!i,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,t.add(h),h.useStyle(r.getVisual("style")),Lu(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",ck),h.on("mousemove",ck)),n&&n.push(h)}var ck=ax((function(e){var t=this,n=hk(t,e.offsetX,e.offsetY);Lu(t).dataIndex=n>=0?n:null}),30,!1);function hk(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,h=o.length/3;c<h;c++){var d=3*c;if(l[i]=u,l[r]=o[d+2],s[i]=o[d+i],s[r]=o[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function dk(e,t,n){if(YI(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}r=n.getArea();var o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function pk(e,t,n){var i="polar"===e.type?Ay:du;return new i({shape:dk(t,n,e),silent:!0,z2:0})}const fk=ZT;function gk(e){e.registerChartView(fk),e.registerSeriesModel(NT),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,K(kT,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AT("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,yT("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var vk=2*Math.PI,yk=Math.PI/180;function mk(e,t){return $d(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xk(e,t){var n=mk(e,t),i=e.get("center"),r=e.get("radius");J(r)||(r=[0,r]),J(i)||(i=[i,i]);var o=Go(n.width,t.getWidth()),a=Go(n.height,t.getHeight()),s=Math.min(o,a),l=Go(i[0],o)+n.x,u=Go(i[1],a)+n.y,c=Go(r[0],s/2),h=Go(r[1],s/2);return{cx:l,cy:u,r0:c,r:h}}function _k(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=mk(e,n),o=xk(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*yk,h=e.get("minAngle")*yk,d=0;t.each(i,(function(e){!isNaN(e)&&d++}));var p=t.getSum(i),f=Math.PI/(p||d)*2,g=e.get("clockwise"),v=e.get("roseType"),y=e.get("stillShowZeroSum"),m=t.getDataExtent(i);m[0]=0;var x=vk,_=0,b=c,w=g?1:-1;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{i="area"!==v?0===p&&y?f:e*f:vk/d,i<h?(i=h,x-=h):_+=e;var r=b+w*i;t.setItemLayout(n,{angle:i,startAngle:b,endAngle:r,clockwise:g,cx:a,cy:s,r0:u,r:v?qo(e,m,[u,l]):l}),b=r}})),x<vk&&d)if(x<=.001){var S=vk/d;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=S,i.startAngle=c+w*n*S,i.endAngle=c+w*(n+1)*S}}))}else f=x/_,b=c,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),r=i.angle===h?h:e*f;i.startAngle=b,i.endAngle=b+w*r,b+=w*r}}))}))}function bk(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),r=0;r<n.length;r++)if(!n[r].isSelected(t))return!1;return!0}))}}}}var wk=Math.PI/180;function Sk(e,t,n,i,r,o,a,s,l,u){if(!(e.length<2)){for(var c=e.length,h=0;h<c;h++)if("outer"===e[h].position&&"labelLine"===e[h].labelAlignTo){var d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}_S(e,l,l+a)&&f(e)}function p(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,d=Math.sqrt((1-Math.abs(u*u/a))*h),p=t+(d+l.len2)*r,f=p-l.label.x,g=l.targetTextWidth-f*r;Ck(l,g,!0),l.label.x=p}}function f(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-t-l.len2*r,d=i+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(o),p(a)}}function Mk(e,t,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++){var p=e[d].label;Ik(e[d])||(p.x<t?(c=Math.min(c,p.x),l.push(e[d])):(h=Math.max(h,p.x),u.push(e[d])))}for(d=0;d<e.length;d++){var f=e[d];if(!Ik(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;p=f.label;var g=f.linePoints,v=void 0;v="edge"===f.labelAlignTo?p.x<t?g[2][0]-f.labelDistance-a-f.edgeDistance:a+r-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<t?c-a-f.bleedMargin:a+r-h-f.bleedMargin:p.x<t?p.x-a-f.bleedMargin:a+r-p.x-f.bleedMargin,f.targetTextWidth=v,Ck(f,v)}}Sk(u,t,n,i,1,r,o,a,s,h),Sk(l,t,n,i,-1,r,o,a,s,c);for(d=0;d<e.length;d++){f=e[d];if(!Ik(f)&&f.linePoints){p=f.label,g=f.linePoints;var y="edge"===f.labelAlignTo,m=p.style.padding,x=m?m[1]+m[3]:0,_=p.style.backgroundColor?0:x,b=f.rect.width+_,w=g[1][0]-g[2][0];y?p.x<t?g[2][0]=a+f.edgeDistance+b+f.labelDistance:g[2][0]=a+r-f.edgeDistance-b-f.labelDistance:(p.x<t?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=p.y}}}function Ck(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var i=e.label,r=i.style,o=e.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(t<c||n){var h=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var p=t-l,f=t<c?p:n?p>e.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function Ik(e){return"center"===e.position}function Tk(e){var t,n,i=e.getData(),r=[],o=!1,a=(e.get("minShowLabelAngle")||0)*wk,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(e){e.ignore=!0}function f(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}i.each((function(e){var s=i.getItemGraphicEl(e),h=s.shape,d=s.getTextContent(),g=s.getTextGuideLine(),v=i.getItemModel(e),y=v.getModel("label"),m=y.get("position")||v.get(["emphasis","label","position"]),x=y.get("distanceToLabelLine"),_=y.get("alignTo"),b=Go(y.get("edgeDistance"),u),w=y.get("bleedMargin"),S=v.getModel("labelLine"),M=S.get("length");M=Go(M,u);var C=S.get("length2");if(C=Go(C,u),Math.abs(h.endAngle-h.startAngle)<a)return G(d.states,p),void(d.ignore=!0);if(f(d)){var I,T,k,A,D=(h.startAngle+h.endAngle)/2,L=Math.cos(D),P=Math.sin(D);t=h.cx,n=h.cy;var O="inside"===m||"inner"===m;if("center"===m)I=h.cx,T=h.cy,A="center";else{var R=(O?(h.r+h.r0)/2*L:h.r*L)+t,E=(O?(h.r+h.r0)/2*P:h.r*P)+n;if(I=R+3*L,T=E+3*P,!O){var N=R+L*(M+l-h.r),B=E+P*(M+l-h.r),F=N+(L<0?-1:1)*C,z=B;I="edge"===_?L<0?c+b:c+u-b:F+(L<0?-x:x),T=z,k=[[R,E],[N,B],[F,z]]}A=O?"center":"edge"===_?L>0?"right":"left":L>0?"left":"right"}var V=Math.PI,H=0,q=y.get("rotate");if(ne(q))H=q*(V/180);else if("center"===m)H=0;else if("radial"===q||!0===q){var W=L<0?-D+V:-D;H=W}else if("tangential"===q&&"outside"!==m&&"outer"!==m){var U=Math.atan2(L,P);U<0&&(U=2*V+U);var j=P>0;j&&(U=V+U),H=U-V}if(o=!!H,d.x=I,d.y=T,d.rotation=H,d.setStyle({verticalAlign:"middle"}),O){d.setStyle({align:A});var Z=d.states.select;Z&&(Z.x+=d.x,Z.y+=d.y)}else{var Y=d.getBoundingRect().clone();Y.applyTransform(d.getComputedTransform());var $=(d.style.margin||0)+2.1;Y.y-=$/2,Y.height+=$,r.push({label:d,labelLine:g,position:m,len:M,len2:C,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new $r(L,P),linePoints:k,textAlign:A,labelDistance:x,labelAlignTo:_,edgeDistance:b,bleedMargin:w,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:O})}})),!o&&e.get("avoidLabelOverlap")&&Mk(r,t,n,l,u,d,c,h);for(var g=0;g<r.length;g++){var v=r[g],y=v.label,m=v.labelLine,x=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),x&&(G(y.states,p),y.ignore=!0);var _=y.states.select;_&&(_.x+=y.x,_.y+=y.y)}if(m){var b=v.linePoints;x||!b?(G(m.states,p),m.ignore=!0):(hS(b,v.minTurnAngle),dS(b,v.surfaceNormal,v.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new $r(b[0][0],b[0][1])})}}}function kk(e,t,n){var i=e.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;J(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:W(i,(function(e){return fo(e,r)}))}}var Ak=function(e){function t(t,n,i){var r=e.call(this)||this;r.z2=2;var o=new Du;return r.setTextContent(o),r.updateData(t,n,i,!0),r}return o(t,e),t.prototype.updateData=function(e,t,n,i){var r=this,o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),u=B(kk(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(Kc(r,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,Kc(r,{shape:{r:l.r}},o,t)):null!=n?(r.setShape({startAngle:n,endAngle:n}),Kc(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(r.shape.endAngle=l.startAngle,Xc(r,{shape:{endAngle:l.endAngle}},o,t))}else nh(r),Xc(r,{shape:u},o,t);r.useStyle(e.getItemVisual(t,"style")),zc(r,a);var h=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),p=Math.cos(h)*d,f=Math.sin(h)*d,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,e,t),r.ensureState("emphasis").shape=B({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},kk(s.getModel("itemStyle"),l)),B(r.ensureState("select"),{x:p,y:f,shape:kk(a.getModel(["select","itemStyle"]),l)}),B(r.ensureState("blur"),{shape:kk(a.getModel(["blur","itemStyle"]),l)});var v=r.getTextGuideLine(),y=r.getTextContent();v&&B(v.ensureState("select"),{x:p,y:f}),B(y.ensureState("select"),{x:p,y:f}),Ec(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var i=this,r=t.getItemModel(n),o=r.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;sh(i,lh(r),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Vy,this.setTextGuideLine(h)),gS(this,vS(r),{stroke:s,opacity:pe(o.get(["lineStyle","opacity"]),l,1)})}},t}(Ay),Dk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return o(t,e),t.prototype.render=function(e,t,n,i){var r,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var c=new Ay({shape:xk(e,n)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(e){var t=new Ak(o,e,r);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,r),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);th(n,e,t)})).execute(),Tk(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="pie",t}(nx);const Lk=Dk;function Pk(e,t,n){t=J(t)&&{coordDimensions:t}||B({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=QC(i,t).dimensions,o=new JC(r,e);return o.initData(i,n),o}var Ok=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}();const Rk=Ok;var Ek=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Pk(this,{coordDimensions:["value"],encodeDefaulter:K(wp,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=[];return n.each(n.mapDimension("value"),(function(e){r.push(e)})),i.percent=$o(r,t,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},t.prototype._defaultLabelLine=function(e){va(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ov);const Nk=Ek;function Bk(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(ne(i)&&!isNaN(i)&&i<0)}))}}}function Fk(e){e.registerChartView(Lk),e.registerSeriesModel(Nk),Qx("pie",e.registerAction),e.registerLayout(K(_k,"pie")),e.registerProcessor(bk("pie")),e.registerProcessor(Bk("pie"))}var zk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Ov);const Vk=zk;var Hk=4,qk=function(){function e(){}return e}(),Gk=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(t,e),t.prototype.getDefaultShape=function(){return new qk},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&r[0]<Hk,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-r[0]/2,a.y=h-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(e,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,r=this._ctx,o=this.softClipShape;if(r){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}e=this._rect=new oo(a-r/2,s-o/2,l-a+r,u-s+o)}return e},t}($l),Wk=function(){function e(){this.group=new Lo}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],r=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=e.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Gk({cursor:"default"});return this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=n.clipShape||null,e.symbolProxy=v_(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Hk;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=Lu(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const Uk=Wk;var jk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=fT("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new Uk:new kI,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(nx);const Zk=jk;var Yk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(op);const $k=Yk;var Xk=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),Kk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ha).models[0]},t.type="cartesian2dAxis",t}(op);H(Kk,Xk);var Jk={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)"]}}},Qk=E({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Jk),eA=E({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}}},Jk),tA=E({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eA),nA=F({logBase:10},eA);const iA={category:Qk,value:eA,time:tA,log:nA};var rA=0,oA=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++rA}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&W(i,aA);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!ee(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=we(this.categories))},e}();function aA(e){return ie(e)&&null!=e.value?e.value:e+""}const sA=oA;var lA={value:1,category:1,time:1,log:1};function uA(e,t,n,i){G(lA,(function(r,a){var s=E(E({},iA[a],!0),i,!0),l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return o(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Jd(this),i=n?ep(e):{},r=t.getTheme();E(e,r.get(a+"Axis")),E(e,this.getDefaultOption()),e.type=cA(e),n&&Qd(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=sA.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=s,n}(n);e.registerComponentModel(l)})),e.registerSubTypeDefaulter(t+"Axis",cA)}function cA(e){return e.type||(e.data?"category":"value")}var hA=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();ls(hA);const dA=hA;function pA(e){return"interval"===e.type||"log"===e.type}function fA(e,t,n,i){var r={},o=e[1]-e[0],a=r.interval=ra(o/t,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=vA(a),l=r.niceTickExtent=[Wo(Math.ceil(e[0]/a)*a,s),Wo(Math.floor(e[1]/a)*a,s)];return mA(l,e),r}function gA(e){var t=Math.pow(10,ia(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Wo(n*t)}function vA(e){return jo(e)+2}function yA(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function mA(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),yA(e,0,t),yA(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function xA(e,t){return e>=t[0]&&e<=t[1]}function _A(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function bA(e,t){return e*(t[1]-t[0])+t[0]}var wA=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new sA({})),J(i)&&(i=new sA({categories:W(i,(function(e){return ie(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return o(t,e),t.prototype.parse=function(e){return null==e?NaN:ee(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),xA(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),_A(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(bA(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r<a;++r){var s=t[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){while(null!=i[l])l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(dA);dA.registerClass(wA);const SA=wA;var MA=Wo,CA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return o(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return xA(e,this._extent)},t.prototype.normalize=function(e){return _A(e,this._extent)},t.prototype.scale=function(e){return bA(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=vA(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]<i[0]&&(e?o.push({value:MA(i[0]-t,r)}):o.push({value:n[0]}));var s=i[0];while(s<=i[1]){if(o.push({value:s}),s=MA(s+t,r),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(e?o.push({value:MA(l+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){var o=t[r],a=t[r-1],s=0,l=[],u=o.value-a.value,c=u/e;while(s<e-1){var h=MA(a.value+(s+1)*c);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=jo(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=MA(e.value,n,!0);return Ad(i)},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=fA(i,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=MA(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=MA(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(dA);dA.registerClass(CA);const IA=CA;var TA=function(e,t,n,i){while(n<i){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n},kA=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return o(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return hd(e.value,rd[cd(ld(this._minLevelUnit))]||rd.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return dd(e,t,n,r,i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var i=this.getSetting("useUTC"),r=BA(this._minLevelUnit,this._approxInterval,i,t);return n=n.concat(r),n.push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=ed,t[1]+=ed),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-ed}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=AA.length,a=Math.min(TA(AA,this._approxInterval,0,o),o-1);this._interval=AA[a][1],this._minLevelUnit=AA[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return ne(e)?e:+ta(e)},t.prototype.contain=function(e){return xA(this.parse(e),this._extent)},t.prototype.normalize=function(e){return _A(this.parse(e),this._extent)},t.prototype.scale=function(e){return bA(e,this._extent)},t.type="time",t}(IA),AA=[["second",Kh],["minute",Jh],["hour",Qh],["quarter-day",6*Qh],["half-day",12*Qh],["day",1.2*ed],["half-week",3.5*ed],["week",7*ed],["month",31*ed],["quarter",95*ed],["half-year",td/2],["year",td]];function DA(e,t,n,i){var r=ta(t),o=ta(n),a=function(e){return fd(r,e,i)===fd(o,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return p()}}function LA(e,t){return e/=ed,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function PA(e){var t=30*ed;return e/=t,e>6?6:e>3?3:e>2?2:1}function OA(e){return e/=Qh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function RA(e,t){return e/=t?Jh:Kh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function EA(e){return ra(e,!0)}function NA(e,t,n){var i=new Date(e);switch(ld(t)){case"year":case"month":i[Sd(n)](0);case"day":i[Md(n)](1);case"hour":i[Cd(n)](0);case"minute":i[Id(n)](0);case"second":i[Td(n)](0),i[kd(n)](0)}return i.getTime()}function BA(e,t,n,i){var r=1e4,o=ad,a=0;function s(e,t,n,r,o,a,s){var l=new Date(t),u=t,c=l[r]();while(u<n&&u<=i[1])s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,r,o){var a=[],l=!r.length;if(!DA(ld(e),i[0],i[1],n)){l&&(r=[{value:NA(new Date(i[0]),e,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0,g=!1;switch(e){case"year":d=Math.max(1,Math.round(t/ed/365)),p=gd(n),f=wd(n);break;case"half-year":case"quarter":case"month":d=PA(t),p=vd(n),f=Sd(n);break;case"week":case"half-week":case"day":d=LA(t,31),p=yd(n),f=Md(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=OA(t),p=md(n),f=Cd(n);break;case"minute":d=RA(t,!0),p=xd(n),f=Id(n);break;case"second":d=RA(t,!1),p=_d(n),f=Td(n);break;case"millisecond":d=EA(t),p=bd(n),f=kd(n);break}s(d,c,h,p,f,g,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,d=0,p=0;p<o.length&&a++<r;++p){var f=ld(o[p]);if(ud(o[p])){l(o[p],u[u.length-1]||[],c);var g=o[p+1]?ld(o[p+1]):null;if(f!==g){if(c.length){d=h,c.sort((function(e,t){return e.value-t.value}));for(var v=[],y=0;y<c.length;++y){var m=c[y].value;0!==y&&c[y-1].value===m||(v.push(c[y]),m>=i[0]&&m<=i[1]&&h++)}var x=(i[1]-i[0])/t;if(h>1.5*x&&d>x/1.5)break;if(u.push(v),h>x||e===o[p])break}c=[]}}}var _=j(W(u,(function(e){return j(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),b=[],w=_.length-1;for(p=0;p<_.length;++p)for(var S=_[p],M=0;M<S.length;++M)b.push({value:S[M].value,level:w-p});b.sort((function(e,t){return e.value-t.value}));var C=[];for(p=0;p<b.length;++p)0!==p&&b[p].value===b[p-1].value||C.push(b[p]);return C}dA.registerClass(kA);const FA=kA;var zA=dA.prototype,VA=IA.prototype,HA=Wo,qA=Math.floor,GA=Math.ceil,WA=Math.pow,UA=Math.log,jA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new IA,t._interval=0,t}return o(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent(),r=VA.getTicks.call(this,e);return W(r,(function(e){var t=e.value,r=Wo(WA(this.base,t));return r=t===n[0]&&this._fixMin?YA(r,i[0]):r,r=t===n[1]&&this._fixMax?YA(r,i[1]):r,{value:r}}),this)},t.prototype.setExtent=function(e,t){var n=this.base;e=UA(e)/UA(n),t=UA(t)/UA(n),VA.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=zA.getExtent.call(this);t[0]=WA(e,t[0]),t[1]=WA(e,t[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(t[0]=YA(t[0],i[0])),this._fixMax&&(t[1]=YA(t[1],i[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=UA(e[0])/UA(t),e[1]=UA(e[1])/UA(t),zA.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=na(n),r=e/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[Wo(GA(t[0]/i)*i),Wo(qA(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){VA.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=UA(e)/UA(this.base),xA(e,this._extent)},t.prototype.normalize=function(e){return e=UA(e)/UA(this.base),_A(e,this._extent)},t.prototype.scale=function(e){return e=bA(e,this._extent),WA(this.base,e)},t.type="log",t}(dA),ZA=jA.prototype;function YA(e,t){return HA(e,jo(t))}ZA.getMinorTicks=VA.getMinorTicks,ZA.getLabel=VA.getLabel,dA.registerClass(jA);const $A=jA;var XA=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var r=this._modelMinRaw=t.get("min",!0);Q(r)?this._modelMinNum=eD(e,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=eD(e,r));var o=this._modelMaxRaw=t.get("max",!0);if(Q(o)?this._modelMaxNum=eD(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=eD(e,o)),i)this._axisDataLen=t.getCategories().length;else{var a=t.get("boundaryGap"),s=J(a)?a:[a||0,a||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[fo(s[0],1),fo(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?i?0:NaN:t-r[0]*o),null==s&&(s=e?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=ce(a)||ce(s)||e&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[JA[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=KA[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),KA={min:"_determinedMin",max:"_determinedMax"},JA={min:"_dataMin",max:"_dataMax"};function QA(e,t,n){var i=e.rawExtentInfo;return i||(i=new XA(e,t,n),e.rawExtentInfo=i,i)}function eD(e,t){return null==t?null:ce(t)?NaN:e.parse(t)}function tD(e,t){var n=e.type,i=QA(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&"time"===n){var s=ST("bar",a),l=!1;if(G(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=CT(s),c=nD(r,o,t,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function nD(e,t,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=TT(i,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;G(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;G(a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,h=1-(s+l)/o,d=c/h-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function iD(e,t){var n=t,i=tD(e,n),r=i.extent,o=n.get("splitNumber");e instanceof $A&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function rD(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new SA({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new FA({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(dA.getClass(t)||IA)}}function oD(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function aD(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,i){return e.scale.getFormattedLabel(n,i,t)}}(t):ee(t)?function(t){return function(n){var i=e.scale.getLabel(n),r=t.replace("{value}",null!=i?i:"");return r}}(t):Q(t)?function(t){return function(i,r){return null!=n&&(r=i.value-n),t(sD(e,i),r,null!=i.level?{level:i.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function sD(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function lD(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof SA?r=n.count():(i=n.getTicks(),r=i.length);var a,s=e.getLabelModel(),l=aD(e),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;c<r;c+=u){var h=i?i[c]:{value:o[0]+c},d=l(h,c),p=s.getTextRect(d),f=uD(p,s.get("rotate")||0);a?a.union(f):a=f}return a}}function uD(e,t){var n=t*Math.PI/180,i=e.width,r=e.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new oo(e.x,e.y,o,a);return s}function cD(e){var t=e.get("interval");return null==t?"auto":t}function hD(e){return"category"===e.type&&0===cD(e.getLabelModel())}function dD(e,t){var n={};return G(e.mapDimensionsAll(t),(function(t){n[cI(e,t)]=!0})),Y(n)}function pD(e,t,n){t&&G(dD(t,n),(function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])}))}var fD=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return W(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),j(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}();const gD=fD;var vD=["x","y"];function yD(e){return"interval"===e.type||"time"===e.type}var mD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=vD,t}return o(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(yD(e)&&yD(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Er([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new oo(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Ze(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Ze(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-i;return new oo(n,i,r,o)},t}(gD);const xD=mD;var _D=Ba();function bD(e){return"category"===e.type?SD(e):ID(e)}function wD(e,t){return"category"===e.type?CD(e,t):{ticks:W(e.scale.getTicks(),(function(e){return e.value}))}}function SD(e){var t=e.getLabelModel(),n=MD(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function MD(e,t){var n,i,r=TD(e,"labels"),o=cD(t),a=kD(r,o);return a||(Q(o)?n=RD(e,o):(i="auto"===o?DD(e):o,n=OD(e,i)),AD(r,o,{labels:n,labelCategoryInterval:i}))}function CD(e,t){var n,i,r=TD(e,"ticks"),o=cD(t),a=kD(r,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),Q(o))n=RD(e,o,!0);else if("auto"===o){var s=MD(e,e.getLabelModel());i=s.labelCategoryInterval,n=W(s.labels,(function(e){return e.tickValue}))}else i=o,n=OD(e,i,!0);return AD(r,o,{ticks:n,tickCategoryInterval:i})}function ID(e){var t=e.scale.getTicks(),n=aD(e);return{labels:W(t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function TD(e,t){return _D(e)[t]||(_D(e)[t]=[])}function kD(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function AD(e,t,n){return e.push({key:t,value:n}),n}function DD(e){var t=_D(e).autoInterval;return null!=t?t:_D(e).autoInterval=e.calculateCategoryInterval()}function LD(e){var t=PD(e),n=aD(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,p=0;l<=o[1];l+=s){var f=0,g=0,v=uo(n({value:l}),t.font,"center","top");f=1.3*v.width,g=1.3*v.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var y=d/c,m=p/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(y,m))),_=_D(e.model),b=e.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function PD(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 OD(e,t,n){var i=aD(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=hD(e),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return p&&f-l!==o[1]&&g(o[1]),s}function RD(e,t,n){var i=e.scale,r=aD(e),o=[];return G(i.getTicks(),(function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:r(e),rawLabel:a,tickValue:s})})),o}var ED=[0,1],ND=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Yo(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),BD(n,i.count())),qo(e,ED,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),BD(n,i.count()));var r=qo(e,n,ED,t);return this.scale.scale(r)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=wD(this,t),i=n.ticks,r=W(i,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return FD(this,r,o,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=W(n,(function(e){return W(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},e.prototype.getViewLabels=function(){return bD(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return LD(this)},e}();function BD(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function FD(e,t,n,i){var r=t.length;if(e.onBand&&!n&&r){var o,a,s=e.getExtent();if(1===r)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var l=t[r-1].tickValue-t[0].tickValue,u=(t[r-1].coord-t[0].coord)/l;G(t,(function(e){e.coord-=u/2}));var c=e.scale.getExtent();a=1+c[1]-t[r-1].tickValue,o={coord:t[r-1].coord+u*a},t.push(o)}var h=s[0]>s[1];d(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift()),i&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]}),d(s[1],o.coord)&&(i?o.coord=s[1]:t.pop()),i&&d(o.coord,s[1])&&t.push({coord:s[1]})}function d(e,t){return e=Wo(e),t=Wo(t),h?e>t:e<t}}const zD=ND;var VD=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return o(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(zD);const HD=VD;function qD(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,f="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[d[l]]:h[0],"x"===u?f[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?f[d[s]]-f[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),he(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function GD(e){return"cartesian2d"===e.get("coordinateSystem")}function WD(e){var t={xAxisModel:null,yAxisModel:null};return G(t,(function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,Ha).models[0];t[i]=o})),t}var UD=Math.log;function jD(e,t,n){var i=IA.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=tD(e,t),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===e.type){var d=UD(e.base);u=[UD(u[0])/d,UD(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var p=i.getExtent.call(e);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var f=i.getInterval.call(e),g=u[0],v=u[1];if(c&&h)f=(v-g)/a;else if(c){v=u[0]+f*a;while(v<u[1]&&isFinite(v)&&isFinite(u[1]))f=gA(f),v=u[0]+f*a}else if(h){g=u[1]-f*a;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))f=gA(f),g=u[1]-f*a}else{var y=e.getTicks().length-1;y>a&&(f=gA(f));var m=f*a;v=Math.ceil(u[1]/f)*f,g=Wo(v-m),g<0&&u[0]>=0?(g=0,v=Wo(m)):v>0&&u[1]<=0&&(v=0,g=-Wo(m))}var x=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(e,g+f*x,v+f*_),i.setInterval.call(e,f),(x||_)&&i.setNiceExtent.call(e,g+f,v-f)}var ZD=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=vD,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=Y(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=e[a],l=s.model,u=s.scale;pA(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(iD(u,l),pA(u)&&(t=s))}r.length&&(t||(t=r.pop(),iD(t.scale,t.model)),G(r,(function(e){jD(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};G(n.x,(function(e){$D(n,"y",e,r)})),G(n.y,(function(e){$D(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=$d(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){G(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),KD(e,t?o.x:o.y)}))}s(),r&&(G(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=lD(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),s()),G(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}ie(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,r=e.xAxisModel||i&&i.getReferringComponents("xAxis",Ha).models[0],o=e.yAxisModel||i&&i.getReferringComponents("yAxis",Ha).models[0],a=e.gridModel,s=this._coordsList;if(i)t=i.coordinateSystem,z(s,t)<0&&(t=null);else if(r&&o)t=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if(YD(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new HD(t,rD(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[t][i]=u,s[t]++}}}this._axesMap=a,G(a.x,(function(t,n){G(a.y,(function(r,o){var a="x"+n+"y"+o,s=new xD(a);s.master=i,s.model=e,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(r)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){G(dD(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}G(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(GD(e)){var i=WD(e),r=i.xAxisModel,o=i.yAxisModel;if(!YD(r,t)||!YD(o,t))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return G(this.getCartesians(),(function(i){var r=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(r);z(t,r)<0&&t.push(r),z(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(r,o){var a=new e(r,t,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),t.eachSeries((function(e){if(GD(e)){var t=WD(e),n=t.xAxisModel,i=t.yAxisModel,r=n.getCoordSysModel();0;var o=r.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=vD,e}();function YD(e,t){return e.getCoordSysModel()===t}function $D(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)XD(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&XD(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(e){return e.dim+"_"+e.index}}function XD(e){return e&&"category"!==e.type&&"time"!==e.type&&oD(e)}function KD(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}const JD=ZD;var QD=Math.PI,eL=function(){function e(e,t){this.group=new Lo,this.opt=t,this.axisModel=e,F(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Lo({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!tL[e]},e.prototype.add=function(e){tL[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,r,o=Jo(t-e);return Qo(o)?(r=n>0?"top":"bottom",i="center"):Qo(o-QD)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<QD?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),tL={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(Ze(s,s,a),Ze(l,l,a));var u=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Wy({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=t.get(["axisLine","symbol"]);if(null!=h){var d=t.get(["axisLine","symbolSize"]);ee(h)&&(h=[h,h]),(ee(d)||ne(d))&&(d=[d,d]);var p=m_(t.get(["axisLine","symbolOffset"])||0,d),f=d[0],g=d[1];G([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,i){if("none"!==h[i]&&null!=h[i]){var r=v_(h[i],-f/2,-g/2,f,g,u.stroke,!0),o=t.r+t.offset;r.attr({rotation:t.rotate,x:s[0]+o*Math.cos(e.rotation),y:s[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,i){var r=lL(n,i,t,e),o=cL(n,i,t,e);if(iL(t,o,r),uL(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=yS(W(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));bS(a)}},axisName:function(e,t,n,i){var r=he(e.axisName,t.get("name"));if(r){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,h=t.axis.getExtent(),d=h[0]>h[1]?-1:1,p=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,aL(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*QD/180),aL(s)?o=eL.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(o=nL(e.rotation,s,f||0,h),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,m=he(e.nameTruncateMaxWidth,v.maxWidth,a),x=new Du({x:p[0],y:p[1],rotation:o.rotation,silent:eL.isLabelSilent(t),style:uh(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Um({el:x,componentModel:t,itemName:r}),x.__fullText=r,x.anid="name",t.get("triggerEvent")){var _=eL.makeAxisEventDataBase(t);_.targetType="axisName",_.name=r,Lu(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function nL(e,t,n,i){var r,o,a=Jo(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return Qo(a-QD/2)?(o=l?"bottom":"top",r="center"):Qo(a-1.5*QD)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*QD&&a>QD/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function iL(e,t,n){if(!hD(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(rL(o),rL(u)):oL(o,a)&&(i?(rL(a),rL(c)):(rL(o),rL(u))),!1===r?(rL(s),rL(h)):oL(l,s)&&(r?(rL(l),rL(d)):(rL(s),rL(h)))}}function rL(e){e&&(e.ignore=!0)}function oL(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=Ar([]);return Or(r,r,-e.rotation),n.applyTransform(Lr([],r,e.getLocalTransform())),i.applyTransform(Lr([],r,t.getLocalTransform())),n.intersect(i)}}function aL(e){return"middle"===e||"center"===e}function sL(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(Ze(a,a,t),Ze(s,s,t));var c=new Wy({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});c.anid=r+"_"+e[l].tickValue,o.push(c)}return o}function lL(e,t,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=r.getTicksCoords(),c=sL(u,t.transform,l,F(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)e.add(c[h]);return c}}function uL(e,t,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=F(s.getLineStyle(),F(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=sL(a[c],t.transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)e.add(h[d])}}function cL(e,t,n,i){var r=n.axis,o=he(i.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),u=(he(i.labelRotate,a.get("rotate"))||0)*QD/180,c=eL.innerTextLayout(i.rotation,u,i.labelDirection),h=n.getCategories&&n.getCategories(!0),d=[],p=eL.isLabelSilent(n),f=n.get("triggerEvent");return G(l,(function(o,l){var u="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,g=o.formattedLabel,v=o.rawLabel,y=a;if(h&&h[u]){var m=h[u];ie(m)&&m.textStyle&&(y=new Oh(m.textStyle,a,n.ecModel))}var x=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=r.dataToCoord(u),b=new Du({x:_,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:uh(y,{text:g,align:y.getShallow("align",!0)||c.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||c.textVerticalAlign,fill:Q(x)?x("category"===r.type?v:"value"===r.type?u+"":u,l):x})});if(b.anid="label_"+u,f){var w=eL.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=v,w.tickIndex=l,"category"===r.type&&(w.dataIndex=u),Lu(b).eventData=w}t.add(b),b.updateTransform(),d.push(b),e.add(b),b.decomposeTransform()})),d}}const hL=eL;function dL(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return pL(n,e,t),n.seriesInvolved&&gL(n,e),n}function pL(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];G(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=wL(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",i);if(G(n.getAxes(),K(f,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&G(p.baseAxes,K(f,!d||"cross",h)),d&&G(p.otherAxes,K(f,"cross",!1))}}function f(i,s,u){var h=u.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||bL(h))){null==s&&(s=h.get("triggerTooltip")),h=i?fL(u,c,r,t,i,s):h;var p=h.get("snap"),f=wL(u.model),g=s||p||"category"===u.type,v=e.axesInfo[f]={key:f,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:p,useHandle:bL(h),seriesModels:[],linkGroup:null};l[f]=v,e.seriesInvolved=e.seriesInvolved||g;var y=vL(o,u);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[f]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}}))}function fL(e,t,n,i,r,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};G(s,(function(e){l[e]=R(a.get(e))})),l.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===r){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&F(u,h.textStyle)}}return e.model.getModel("axisPointer",new Oh(l,n,i))}function gL(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==t.get(["axisPointer","show"],!0)&&G(e.coordSysAxesInfo[wL(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}function vL(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(yL(o[i+"AxisId"],n.id)||yL(o[i+"AxisIndex"],n.componentIndex)||yL(o[i+"AxisName"],n.name))return r}}function yL(e,t){return"all"===e||J(e)&&z(e,t)>=0||e===t}function mL(e){var t=xL(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=bL(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function xL(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[wL(e)]}function _L(e){var t=xL(e);return t&&t.axisPointerModel}function bL(e){return!!e.get(["handle","show"])}function wL(e){return e.type+"||"+e.id}var SL={},ML=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(t,n,i,r){this.axisPointerClass&&mL(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},t.prototype.updateAxisPointer=function(e,t,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var r=t.getAxisPointerClass(this.axisPointerClass);if(r){var o=_L(e);o?(this._axisPointer||(this._axisPointer=new r)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){SL[e]=t},t.getAxisPointerClass=function(e){return e&&SL[e]},t.type="axis",t}(Ev);const CL=ML;var IL=Ba();function TL(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=IL(e).splitAreaColors,d=we(),p=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var v=r.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=J(s)?s:[s];for(f=1;f<u.length;f++){var m=r.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;r.isHorizontal()?(x=v,_=l.y,b=m-x,w=l.height,v=x+b):(x=l.x,_=v,b=l.width,w=m-_,v=_+w);var S=u[f-1].tickValue;null!=S&&d.set(S,p),t.add(new du({anid:null!=S?"area_"+S:null,shape:{x,y:_,width:b,height:w},style:F({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}IL(e).splitAreaColors=d}}}function kL(e){IL(e).splitAreaColors=null}var AL=["axisLine","axisTickLabel","axisName"],DL=["splitArea","splitLine","minorSplitLine"],LL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return o(t,e),t.prototype.render=function(t,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Lo,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=qD(a,t),l=new hL(t,B({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(pA(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},s));G(AL,l.add,l),this._axisGroup.add(l.getGroup()),G(DL,(function(e){t.get([e,"show"])&&PL[e](this,this._axisGroup,t,a)}),this);var u=r&&"changeAxisOrder"===r.type&&r.isInitSort;u||Bm(o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)}},t.prototype.remove=function(){kL(this)},t.type="cartesianAxis",t}(CL),PL={splitLine:function(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=J(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,h=r.getTicksCoords({tickModel:o}),d=[],p=[],f=a.getLineStyle(),g=0;g<h.length;g++){var v=r.toGlobalCoord(h[g].coord);u?(d[0]=v,d[1]=l.y,p[0]=v,p[1]=l.y+l.height):(d[0]=l.x,d[1]=v,p[0]=l.x+l.width,p[1]=v);var y=c++%s.length,m=h[g].tickValue;t.add(new Wy({anid:null!=m?"line_"+h[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:F({stroke:s[y]},f),silent:!0}))}}},minorSplitLine:function(e,t,n,i){var r=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=r.toGlobalCoord(u[p][f].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g),t.add(new Wy({anid:"minor_line_"+u[p][f].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0}))}},splitArea:function(e,t,n,i){TL(e,t,n,i)}},OL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="xAxis",t}(LL),RL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=OL.type,t}return o(t,e),t.type="yAxis",t}(LL);var EL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return o(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new du({shape:e.coordinateSystem.getRect(),style:F({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ev),NL={offset:0};function BL(e){e.registerComponentView(EL),e.registerComponentModel($k),e.registerCoordinateSystem("cartesian2d",JD),uA(e,"x",Kk,NL),uA(e,"y",Kk,NL),e.registerComponentView(OL),e.registerComponentView(RL),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function FL(e){jw(BL),e.registerSeriesModel(Vk),e.registerChartView(Zk),e.registerLayout(fT("scatter"))}function zL(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var r=i.getIndicatorAxes();G(r,(function(e,o){t.each(t.mapDimension(r[o].dim),(function(e,t){n[t]=n[t]||[];var r=i.dataToPoint(e,o);n[t][o]=VL(r)?r:HL(i)}))})),t.each((function(e){var r=Z(n[e],(function(e){return VL(e)}))||HL(i);n[e].push(r.slice()),t.setItemLayout(e,n[e])}))}}))}function VL(e){return!isNaN(e[0])&&!isNaN(e[1])}function HL(e){return[e.cx,e.cy]}function qL(e){var t=e.polar;if(t){J(t)||(t=[t]);var n=[];G(t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],J(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}G(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var GL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var r=e.coordinateSystem,o=this.group,a=e.getData(),s=this._data;function l(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=y_(e.getItemVisual(t,"symbolSize")),r=v_(n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function u(t,n,r,o,a,s){r.removeAll();for(var u=0;u<n.length-1;u++){var c=l(o,a);c&&(c.__dimIdx=u,t[u]?(c.setPosition(t[u]),i[s?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},e,a)):c.setPosition(n[u]),r.add(c))}}function c(e){return W(e,(function(e){return[r.cx,r.cy]}))}a.diff(s).add((function(t){var n=a.getItemLayout(t);if(n){var i=new By,r=new Vy,o={shape:{points:n}};i.shape.points=c(n),r.shape.points=c(n),Kc(i,o,e,t),Kc(r,o,e,t);var s=new Lo,l=new Lo;s.add(r),s.add(i),s.add(l),u(r.shape.points,n,l,a,t,!0),a.setItemGraphicEl(t,s)}})).update((function(t,n){var i=s.getItemGraphicEl(n),r=i.childAt(0),o=i.childAt(1),l=i.childAt(2),c={shape:{points:a.getItemLayout(t)}};c.shape.points&&(u(r.shape.points,c.shape.points,l,a,t,!1),nh(o),nh(r),Xc(r,c,e),Xc(o,c,e),a.setItemGraphicEl(t,i))})).remove((function(e){o.remove(s.getItemGraphicEl(e))})).execute(),a.eachItemGraphicEl((function(e,t){var n=a.getItemModel(t),i=e.childAt(0),r=e.childAt(1),s=e.childAt(2),l=a.getItemVisual(t,"style"),u=l.fill;o.add(e),i.useStyle(F(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),zc(i,n,"lineStyle"),zc(r,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();r.ignore=h,G(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();r.ensureState(e).ignore=i&&h})),r.useStyle(F(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),p=d.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof iu){var i=e.style;e.useStyle(B({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;var r=e.ensureState("emphasis");r.style=R(p);var o=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(null==o||isNaN(o))&&(o=""),sh(e,lh(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:o,inheritColor:u,defaultOpacity:l.opacity})})),Ec(e,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(nx);const WL=GL;var UL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Pk(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.coordinateSystem,o=r.getIndicatorAxes(),a=this.getData().getName(e),s=""===a?this.name:a,l=vv(this,e);return iv("section",{header:s,sortBlocks:!0,blocks:W(o,(function(t){var n=i.get(i.mapDimension(t.dim),e);return iv("nameValue",{markerType:"subItem",markerColor:l,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(W(n.dimensions,(function(e){return t.mapDimension(e)})),e),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},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}(Ov);const jL=UL;var ZL=iA.value;function YL(e,t){return F({show:t},e)}var $L=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=W(this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=F({color:h.color},a));var p=E(R(h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(ee(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else Q(l)&&(p.name=l(p.name,p));var g=new Oh(p,null,this.ecModel);return H(g,Xk.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},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:E({lineStyle:{color:"#bbb"}},ZL.axisLine),axisLabel:YL(ZL.axisLabel,!1),axisTick:YL(ZL.axisTick,!1),splitLine:YL(ZL.splitLine,!0),splitArea:YL(ZL.splitArea,!0),indicator:[]},t}(op);const XL=$L;var KL=["axisLine","axisTickLabel","axisName"],JL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=W(n,(function(e){var n=e.model.get("showName")?e.name:"",i=new hL(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));G(i,(function(e){G(KL,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=J(c)?c:[c],p=J(h)?h:[h],f=[],g=[];if("circle"===i)for(var v=n[0].getTicksCoords(),y=t.cx,m=t.cy,x=0;x<v.length;x++){if(l){var _=k(f,d,x);f[_].push(new ly({shape:{cx:y,cy:m,r:v[x].coord}}))}if(u&&x<v.length-1){_=k(g,p,x);g[_].push(new Py({shape:{cx:y,cy:m,r0:v[x].coord,r:v[x+1].coord}}))}}else{var b,w=W(n,(function(e,n){var i=e.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),W(i,(function(e){return t.coordToPoint(e.coord,n)}))})),S=[];for(x=0;x<=b;x++){for(var M=[],C=0;C<n.length;C++)M.push(w[C][x]);if(M[0]&&M.push(M[0].slice()),l){_=k(f,d,x);f[_].push(new Vy({shape:{points:M}}))}if(u&&S){_=k(g,p,x-1);g[_].push(new By({shape:{points:M.concat(S)}}))}S=M.slice().reverse()}}var I=a.getLineStyle(),T=s.getAreaStyle();G(g,(function(e,t){this.group.add(Tm(e,{style:F({stroke:"none",fill:p[t%p.length]},T),silent:!0}))}),this),G(f,(function(e,t){this.group.add(Tm(e,{style:F({fill:"none",stroke:d[t%d.length]},I),silent:!0}))}),this)}function k(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(Ev);const QL=JL;var eP=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return o(t,e),t}(zD);const tP=eP;var nP=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=W(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new tP(n,new IA);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,r=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[r,o]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var r,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r)/2;this.cx=Go(n[0],i),this.cy=Go(n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");(ee(a)||ne(a))&&(a=[0,a]),this.r0=Go(a[0],o),this.r=Go(a[1],o),G(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;G(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var o=t.getData();G(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var r=i.get("splitNumber"),o=new IA;o.setExtent(0,r),o.setInterval(1),G(n,(function(e,t){jD(e.scale,e.model,o)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}();const iP=nP;function rP(e){e.registerCoordinateSystem("radar",iP),e.registerComponentModel(XL),e.registerComponentView(QL),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function oP(e){jw(rP),e.registerChartView(WL),e.registerSeriesModel(jL),e.registerLayout(zL),e.registerProcessor(bk("radar")),e.registerPreprocessor(qL)}var aP="\0_ec_interaction_mutex";function sP(e,t,n){var i=cP(e);i[t]=n}function lP(e,t,n){var i=cP(e),r=i[t];r===n&&(i[t]=null)}function uP(e,t){return!!cP(e)[t]}function cP(e){return e[aP]||(e[aP]={})}Ew({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Te);var hP=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=X(n._mousedownHandler,n),r=X(n._mousemoveHandler,n),o=X(n._mouseupHandler,n),a=X(n._mousewheelHandler,n),s=X(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=F(R(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return o(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(wt(e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&fP("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!uP(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,r=this._y,o=t-i,a=n-r;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&bt(e.event),pP(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:i,oldY:r,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){wt(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=fP("zoomOnMouseWheel",e,this._opt),n=fP("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),o=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;dP(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);dP(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!uP(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;dP(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(et);function dP(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(bt(i.event),pP(e,t,n,i,r))}function pP(e,t,n,i,r){r.isAvailableBehavior=X(fP,null,n,i),e.trigger(t,r)}function fP(e,t,n){var i=n[e];return!e||i&&(!ee(i)||t.event[i+"Key"])}const gP=hP;function vP(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function yP(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var mP,xP={axisPointer:1,tooltip:1,brush:1};function _P(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!xP.hasOwnProperty(i.mainType)&&r&&r.model!==n}function bP(e){if(ee(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var wP={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"},SP=Y(wP),MP={"alignment-baseline":"textBaseline","stop-color":"stopColor"},CP=Y(MP),IP=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=bP(e);this._defsUsePending=[];var i=new Lo;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),PP(n,i,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(NP(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=FP(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=UP(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var d=i;i=new Lo,i.add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return t.ignoreRootClip||null==a||null==s||i.setClipPath(new du({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},e.prototype._parseNode=function(e,t,n,i,r,o){var a,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!r){var u=mP[s];if(u&&Ie(mP,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});t.add(a)}}var d=TP[s];if(d&&Ie(TP,s)){var p=d.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup){var g=e.firstChild;while(g)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new Jl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});DP(t,n),PP(e,n,this._defsUsePending,!1,!1),OP(n,t);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){mP={g:function(e,t){var n=new Lo;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new du;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new ly;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Wy;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new hy;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=LP(i));var r=new By({shape:{points:n||[]},silent:!0});return DP(t,r),PP(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=LP(i));var r=new Vy({shape:{points:n||[]},silent:!0});return DP(t,r),PP(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new iu;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Lo;return DP(t,a),PP(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new Lo;return DP(t,a),PP(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",i=ny(n);return DP(t,i),PP(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),TP={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new rm(t,n,i,r);return kP(e,o),AP(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new am(t,n,i);return kP(e,r),AP(e,r),r}};function kP(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function AP(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};GP(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function DP(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),F(t.__inheritedStyle,e.__inheritedStyle))}function LP(e){for(var t=FP(e),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),o=parseFloat(t[i+1]);n.push([r,o])}return n}function PP(e,t,n,i,r){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(HP(e,t),GP(e,a,s),i||WP(e,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=EP(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=EP(o,"stroke",a.stroke,n)),G(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(o.style[e]=parseFloat(a[e]))})),G(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(o.style[e]=a[e])})),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=W(FP(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function OP(e,t){var n=t.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",e.style.textBaseline=r}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}var RP=/^url\(\s*#(.*?)\)/;function EP(e,t,n,i){var r=n&&n.match(RP);if(!r)return"none"===n&&(n=null),n;var o=ye(r[1]);i.push([e,t,o])}function NP(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}var BP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function FP(e){return e.match(BP)||[]}var zP=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,VP=Math.PI/180;function HP(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(zP,(function(e,t,n){return i.push(t,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=FP(a);switch(r=r||kr(),s){case"translate":Pr(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Rr(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Or(r,r,-parseFloat(l[0])*VP);break;case"skewX":var u=Math.tan(parseFloat(l[0])*VP);Lr(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*VP);Lr(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}t.setLocalTransform(r)}}var qP=/([^\s:;]+)\s*:\s*([^:;]+)/g;function GP(e,t,n){var i=e.getAttribute("style");if(i){var r;qP.lastIndex=0;while(null!=(r=qP.exec(i))){var o=r[1],a=Ie(wP,o)?wP[o]:null;a&&(t[a]=r[2]);var s=Ie(MP,o)?MP[o]:null;s&&(n[s]=r[2])}}}function WP(e,t,n){for(var i=0;i<SP.length;i++){var r=SP[i],o=e.getAttribute(r);null!=o&&(t[wP[r]]=o)}for(i=0;i<CP.length;i++){r=CP[i],o=e.getAttribute(r);null!=o&&(n[MP[r]]=o)}}function UP(e,t){var n=t.width/e.width,i=t.height/e.height,r=Math.min(n,i);return{scale:r,x:-(e.x+e.width/2)*r+(t.x+t.width/2),y:-(e.y+e.height/2)*r+(t.y+t.height/2)}}function jP(e,t){var n=new IP;return n.parse(e,t)}var ZP=1e-8;function YP(e,t){return Math.abs(e-t)<ZP}function $P(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var o=1;o<e.length;o++){var a=e[o];i+=Ll(r[0],r[1],a[0],a[1],t,n),r=a}var s=e[0];return YP(r[0],s[0])&&YP(r[1],s[1])||(i+=Ll(r[0],r[1],s[0],s[1],t,n)),0!==i}var XP=[];function KP(e,t){for(var n=0;n<e.length;n++)Ze(e[n],e[n],t)}function JP(e,t,n,i){for(var r=0;r<e.length;r++){var o=e[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Ye(t,t,o),$e(n,n,o))}}function QP(e){for(var t=0,n=0,i=0,r=e.length,o=e[r-1][0],a=e[r-1][1],s=0;s<r;s++){var l=e[s][0],u=e[s][1],c=o*u-l*a;t+=c,n+=(o+l)*c,i+=(a+u)*c,o=l,a=u}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}var eO=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),tO=function(){function e(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return e}(),nO=function(){function e(e){this.type="linestring",this.points=e}return e}(),iO=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return o(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var r=t[i],o=r.exterior,a=o&&o.length;a>n&&(e=r,n=a)}if(e)return QP(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return G(r,(function(t){"polygon"===t.type?JP(t.exterior,n,i,e):G(t.points,(function(t){JP(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new oo(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if($P(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if($P(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new oo(e,t,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(KP(c.exterior,s),G(c.interiors,(function(e){KP(e,s)}))):G(c.points,(function(e){KP(e,s)}))}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(eO),rO=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return o(t,e),t.prototype.calcCenter=function(){var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=Ar(XP),r=e;while(r&&!r.isGeoSVGGraphicRoot)Lr(i,r.getLocalTransform(),i),r=r.parent;return Er(i,i),Ze(n,n,i),n},t}(eO),oO=we(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),aO=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=we(),this._freedGraphics=[],this._mapName=e,this._parsedXML=bP(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=lO(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&jP(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,ve(null!=n)}catch(wy){throw new Error("Invalid svg format\n"+wy.message)}var i=new Lo;i.add(n),i.isGeoSVGGraphicRoot=!0;var r=t.width,o=t.height,a=t.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,h=void 0;if(null!=r?(l=0,c=r):a&&(l=a.x,c=a.width),null!=o?(u=0,h=o):a&&(u=a.y,h=a.height),null==l||null==u){var d=n.getBoundingRect();null==l&&(l=d.x,c=d.width),null==u&&(u=d.y,h=d.height)}s=this._boundingRect=new oo(l,u,c,h)}if(a){var p=UP(a,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new du({shape:s.plain()}));var f=[];return G(t.named,(function(e){null!=oO.get(e.svgNodeTagLower)&&(f.push(e),sO(e.el))})),{root:i,boundingRect:s,named:f}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function sO(e){e.silent=!1,e.isGroup&&e.traverse((function(e){e.silent=!1}))}function lO(e){var t=[],n=we();return G(e,(function(e){if(null==e.namedFrom){var i=new rO(e.name,e.el);t.push(i),n.set(e.name,i)}})),{regions:t,regionsMap:n}}function uO(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var i=t.features;return G(i,(function(e){var t=e.geometry,i=t.encodeOffsets,r=t.coordinates;if(i)switch(t.type){case"LineString":t.coordinates=hO(r,i,n);break;case"Polygon":cO(r,i,n);break;case"MultiLineString":cO(r,i,n);break;case"MultiPolygon":G(r,(function(e,t){return cO(e,i[t],n)}))}})),t.UTF8Encoding=!1,t}function cO(e,t,n){for(var i=0;i<e.length;i++)e[i]=hO(e[i],t[i],n)}function hO(e,t,n){for(var i=[],r=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function dO(e,t){return e=uO(e),W(j(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new tO(o[0],o.slice(1)));break;case"MultiPolygon":G(i.coordinates,(function(e){e[0]&&r.push(new tO(e[0],e.slice(1)))}));break;case"LineString":r.push(new nO([i.coordinates]));break;case"MultiLineString":r.push(new nO(i.coordinates))}var a=new iO(n[t||"name"],r,n.cp);return a.properties=n,a}))}for(var pO=[126,25],fO="南海诸岛",gO=[[[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]]],vO=0;vO<gO.length;vO++)for(var yO=0;yO<gO[vO].length;yO++)gO[vO][yO][0]/=10.5,gO[vO][yO][1]/=-14,gO[vO][yO][0]+=pO[0],gO[vO][yO][1]+=pO[1];function mO(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===fO)return;t.push(new iO(fO,W(gO,(function(e){return{type:"polygon",exterior:e}})),pO))}}var xO={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function _O(e,t){if("china"===e){var n=xO[t.name];if(n){var i=t.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,t.setCenter(i)}}}var bO=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function wO(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:bO[0]})}var SO="name",MO=function(){function e(e,t,n){this.type="geoJSON",this._parsedMap=we(),this._mapName=e,this._specialAreas=n,this._geoJSON=IO(t)}return e.prototype.load=function(e,t){t=t||SO;var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:CO(i)})}var r=we(),o=[];return G(n.regions,(function(t){var n=t.name;e&&Ie(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),r.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new oo(0,0,0,0),regionsMap:r}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?dO(i,e):[]}catch(wy){throw new Error("Invalid geoJson format\n"+wy.message)}return mO(n,t),G(t,(function(e){var t=e.name;_O(n,e),wO(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function CO(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return t}function IO(e){return ee(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var TO=we();const kO={registerMap:function(e,t,n){if(t.svg){var i=new aO(e,t.svg);TO.set(e,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?n=t.specialAreas:r=t;i=new MO(e,r,n);TO.set(e,i)}},getGeoResource:function(e){return TO.get(e)},getMapForUser:function(e){var t=TO.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var i=TO.get(e);if(i)return i.load(t,n)}};var AO=["rect","circle","line","ellipse","polygon","polyline","path"],DO=we(AO),LO=we(AO.concat(["g"])),PO=we(AO.concat(["g"])),OO=Ba();function RO(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function EO(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var NO=function(){function e(e){var t=new Lo;this.uid=Eh("ec_map_draw"),this._controller=new gP(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Lo),t.add(this._svgGroup=new Lo)}return e.prototype.draw=function(e,t,n,i,r){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam,p=!l.childAt(0)||r;p?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):Xc(u,d,e);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=we(),n=we(),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function c(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var r=u(e[i],n);r&&t.push(r)}return t}function h(e){return{shape:{points:c(e)}}}i.removeAll(),G(e.geo.regions,(function(r){var c=r.name,d=t.get(c),p=n.get(c)||{},f=p.dataIdx,g=p.regionModel;d||(d=t.set(c,new Lo),i.add(d),f=a?a.indexOfName(c):null,g=e.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var v=[],y=[];G(r.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=qO(t,l)),G(t,(function(e){v.push(new By(h(e)))}))}else{var n=e.points;l&&(n=qO(n,l,!0)),G(n,(function(e){y.push(new Vy(h(e)))}))}}));var m=u(r.getCenter(),s&&s.project);function x(t,n){if(t.length){var i=new em({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});d.add(i),BO(e,i,f,g),FO(e,i,c,g,o,f,m),n&&(EO(i),G(i.states,EO))}}x(v),x(y,!0)})),t.each((function(t,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;zO(e,t,i,s,o,a),VO(e,t,i,s,o),HO(e,t,i,s,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=we(),r=!1;G(this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);if(null!=DO.get(s)&&l instanceof qs&&BO(e,l,u,c),l instanceof qs&&(l.culling=!0),l.z2EmphasisLift=0,!t.namedFrom&&(null!=PO.get(s)&&FO(e,l,n,c,o,u,null),zO(e,l,n,c,o,u),VO(e,l,n,c,o),null!=LO.get(s))){var h=HO(e,l,n,c,o);"self"===h&&(r=!0);var d=i.get(n)||i.set(n,[]);d.push(l)}}),this),this._enableBlurEntireSVG(r,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){pc(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=i&&(t.opacity=i),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(e);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=kO.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=kO.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}r.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,vP(o,e.dx,e.dy),n.dispatchAction(B(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,yP(o,e.scale,e.originX,e.originY),n.dispatchAction(B(s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(t,r,o){return i.containPoint([r,o])&&!_P(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=OO(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,i){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){r._mouseDownFlag=!0})),t.on("click",(function(e){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},e}();function BO(e,t,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=RO(r),u=RO(o),c=RO(s),h=RO(a),d=e.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=ob(f,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=h,pc(t)}function FO(e,t,n,i,r,o,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;sh(t,lh(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=t.getTextContent();if(f&&(OO(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function zO(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):Lu(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function VO(e,t,n,i,r){e.data||Um({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function HO(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Ec(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&qc(t,r,n),a}function qO(e,t,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),G(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}const GO=NO;var WO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){o=this._mapDraw;o&&r.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new GO(n);r.add(o.group),o.draw(e,t,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,r=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new ly({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:qu+1)});if(!s){var u=e.mainSeries.getData(),c=i.getName(n),h=u.indexOfName(c),d=i.getItemModel(n),p=d.getModel("label"),f=u.getItemGraphicEl(h);sh(l,lh(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(e){sc(l,e)}}r.add(l)}}}))},t.type="map",t}(nx);const UO=WO;var jO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return o(t,e),t.prototype.getInitialData=function(e){for(var t=Pk(this,{coordDimensions:["value"],encodeDefaulter:K(wp,this)}),n=we(),i=[],r=0,o=t.count();r<o;r++){var a=t.getName(r);n.set(a,!0)}var s=kO.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return G(s.regions,(function(e){var t=e.name;n.get(t)||i.push(t)})),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),r=this.getRawValue(e),o=i.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return iv("section",{header:s.join(", "),noHeader:!s.length,blocks:[iv("nameValue",{name:o,value:r})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=v_(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Ov);const ZO=jO;function YO(e,t){var n={};return G(e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+e[0].getName(r),s=0,l=1/0,u=-1/0,c=n[a].length,h=0;h<c;h++)l=Math.min(l,n[a][h]),u=Math.max(u,n[a][h]),s+=n[a][h];return o="min"===t?l:"max"===t?u:"average"===t?s/c:s,0===c?NaN:o}))}function $O(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),G(t,(function(e,t){for(var n=YO(W(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=0===i&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]}))}function XO(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var r={};G(n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var o=i.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!r[t],o.setItemLayout(e,n)})),t[i]=!0}}))}var KO=Ze,JO=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Zr,n._rawTransformable=new Zr,n.name=t,n}return o(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new oo(e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new oo(e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new oo(e,t,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Go(e[0],t.getWidth()),Go(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=Ze([],i,e),n=Ze([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=r,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),Dr(this.transform||(this.transform=[]),t.transform||kr()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Er(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Zr;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?KO(n,e,i):Pe(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?KO([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=QO(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=QO(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Zr);function QO(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const eR=JO;var tR={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},nR=["lng","lat"],iR=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.dimensions=nR,r.type="geo",r._nameCoordMap=we(),r.map=n;var o,a=i.projection,s=kO.load(n,i.nameMap,i.nameProperty),l=kO.getGeoResource(n),u=(r.resourceType=l?l.type:null,r.regions=s.regions),c=tR[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=a,a)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(a);o=o||d.clone(),o.union(d)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:de(i.aspectScale,c.aspectScale),r._invertLongitute=!a&&c.invertLongitute,r}return o(t,e),t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new oo(e,t,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(ee(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=rR(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=rR(t);return i===this?i.pointToData(n):null},t}(eR);function rR(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Ha).models[0]||{}).coordinateSystem:null}H(iR,eR);const oR=iR;function aR(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var c=function(e,t,n,a){for(var s=n-e,l=a-t,u=0;u<=100;u++){var c=u/100,h=o.project([e+s*c,t+l*c]);Ye(i,i,h),$e(r,r,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else 0}var h,d,p,f=this.getBoundingRect(),g=e.get("layoutCenter"),v=e.get("layoutSize"),y=t.getWidth(),m=t.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&v&&(h=[Go(g[0],y),Go(g[1],m)],d=Go(v,Math.min(y,m)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(_=!0)),_)p={},x>1?(p.width=d,p.height=d/x):(p.height=d,p.width=d*x),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var b=e.getBoxLayoutParams();b.aspect=x,p=$d(b,{width:y,height:m})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function sR(e,t){G(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var lR=function(){function e(){this.dimensions=nR}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),a=new oR(o+r,o,B({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=aR,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),G(r,(function(e,r){var o=W(e,(function(e){return e.get("nameMap")})),a=new oR(r,r,B({nameMap:N(o)},i(e[0])));a.zoomLimit=he.apply(null,W(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=aR,a.resize(e[0],t),G(e,(function(e){e.coordinateSystem=a,sR(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=we(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=kO.load(t,n,i);return G(s.regions,(function(e){var t=e.name;!o.get(t)&&r.push({name:t})})),r},e}(),uR=new lR;const cR=uR;var hR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t,n){var i=kO.getGeoResource(e.map);if(i&&"geoJSON"===i.type){var r=e.itemStyle=e.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(e,n),va(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=cR.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=U(t.regions||[],(function(t,i){var r=i.name;return r&&(t.set(r,new Oh(i,e,e.ecModel)),i.selected&&(n[r]=!0)),t}),we()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Oh(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:e};return Q(i)?(r.status=t,i(r)):ee(i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){"multiple"!==n&&(t.selectedMap=null);var i=t.selectedMap||(t.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(op);const dR=hR;function pR(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function fR(e,t,n,i){var r=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(pR(e,s),i)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}e.scaleX*=a,e.scaleY*=a;var c=(t.originX-e.x)*(a-1),h=(t.originY-e.y)*(a-1);e.x-=c,e.y-=h,e.updateTransform(),e.setCenter(pR(e,s),i),e.setZoom(a*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var gR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return o(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new GO(n));var r=this._mapDraw;r.draw(e,t,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=e.get("silent"),this.group.add(r.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;n_(e.target,(function(e){return null!=(t=Lu(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse((function(e){var t=Lu(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Ev);const vR=gR;function yR(e,t,n){kO.registerMap(e,t,n)}function mR(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var o=n.coordinateSystem;G(o.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var a=[];G(i,(function(e,t){i[t]&&a.push(t)})),r.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:r,name:e.name}}))}e.registerCoordinateSystem("geo",cR),e.registerComponentModel(dR),e.registerComponentView(vR),e.registerImpl("registerMap",yR),e.registerImpl("getMap",(function(e){return kO.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var o=fR(r,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===i&&G(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}function xR(e){jw(mR),e.registerChartView(UO),e.registerSeriesModel(ZO),e.registerLayout(XO),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$O),Qx("map",e.registerAction)}function _R(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,r=[t];while(n=r.pop())if(i=n.children,n.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function bR(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){IR(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=TR(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function wR(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function SR(e){return arguments.length?e:PR}function MR(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function CR(e,t){return $d(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function IR(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function TR(e,t,n,i){if(t){var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;while(s=kR(s),o=AR(o),s&&o){r=kR(r),a=AR(a),r.hierNode.ancestor=e;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(LR(DR(s,e,n),e,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!kR(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!AR(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function kR(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function AR(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function DR(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function LR(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function PR(e,t){return e.parentNode===t.parentNode?1:2}var OR=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),RR=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OR},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Go(t.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,e.moveTo(r[0],r[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[l]=o[l],e.lineTo(h[0],h[1]),h[l]=a[l],e.lineTo(h[0],h[1]),e.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var p=n[d];e.moveTo(p[0],p[1]),h[l]=p[l],e.lineTo(h[0],h[1])}},t}($l),ER=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Lo,n}return o(t,e),t.prototype.init=function(e,t){this._controller=new gP(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),r=e.layoutInfo,o=this._mainGroup,a=e.get("layout");"radial"===a?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var s=this._data;i.diff(s).add((function(t){NR(i,t)&&BR(i,t,null,o,e)})).update((function(t,n){var r=s.getItemGraphicEl(n);NR(i,t)?BR(i,t,r,o,e):r&&HR(s,n,r,o,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&HR(s,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}));var r=[],o=[];Ks(i,r,o);var a=this._min,s=this._max;o[0]-r[0]===0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]===0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=e.coordinateSystem=new eR;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!_P(t,n,e)})),r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){vP(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){yP(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1,r=t.getZoom(),o=(r-1)*n+1;return o/i},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}(nx);function NR(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function BR(e,t,n,i,r){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=e.tree.root,h=a.parentNode===c?a:a.parentNode||a,d=e.getItemGraphicEl(h.dataIndex),p=h.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=a.getLayout();o?(n=new SI(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=f.x,n.y=f.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Xc(n,{x:g.x,y:g.y},r);var v=n.getSymbolPath();if("radial"===r.get("layout")){var y=c.children[0],m=y.getLayout(),x=y.children.length,_=void 0,b=void 0;if(g.x===m.x&&!0===a.isExpand&&y.children.length){var w={x:(y.children[0].getLayout().x+y.children[x-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[x-1].getLayout().y)/2};_=Math.atan2(w.y-m.y,w.x-m.x),_<0&&(_=2*Math.PI+_),b=w.x<m.x,b&&(_-=Math.PI)}else _=Math.atan2(g.y-m.y,g.x-m.x),_<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=g.x<m.x,b&&(_-=Math.PI)):(b=g.x>m.x,b||(_-=Math.PI));var S=b?"left":"right",M=s.getModel("label"),C=M.get("rotate"),I=C*(Math.PI/180),T=v.getTextContent();T&&(v.setTextConfig({position:M.get("position")||S,rotation:null==C?-_:I,origin:"center"}),T.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),A="relative"===k?Se(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():null;A&&(Lu(n).focus=A),FR(r,a,c,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Fu||sc(n.__edge,t)}})}function FR(e,t,n,i,r,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),h=e.getOrient(),d=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(g||(g=i.__edge=new $y({shape:qR(c,h,d,r,r)})),Xc(g,{shape:qR(c,h,d,o,a)},e));else if("polyline"===u)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,y=[],m=0;m<v.length;m++){var x=v[m].getLayout();y.push([x.x,x.y])}g||(g=i.__edge=new RR({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:p}})),Xc(g,{shape:{parentPoint:[a.x,a.y],childPoints:y}},e)}}else 0;g&&("polyline"!==u||t.isExpand)&&(g.useStyle(F({strokeNoScale:!0,fill:null},f)),zc(g,l,"lineStyle"),pc(g),s.add(g))}function zR(e,t,n,i,r){var o=t.tree.root,a=VR(o,e),s=a.source,l=a.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),h=c.__edge,d=u.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),p=i.get("edgeShape"),f=i.get("layout"),g=i.get("orient"),v=i.get(["lineStyle","curveness"]);d&&("curve"===p?Qc(d,{shape:qR(f,g,v,l,l),style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}):"polyline"===p&&"orthogonal"===i.get("layout")&&Qc(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}))}}function VR(e,t){var n,i=t.parentNode===e?t:t.parentNode||t;while(n=i.getLayout(),null==n)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function HR(e,t,n,i,r){var o=e.tree.getNodeByDataIndex(t),a=e.tree.root,s=VR(a,o).sourceLayout,l={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Qc(n,{x:s.x+1,y:s.y+1},r,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(t){zR(t,e,i,r,l)})),zR(o,e,i,r,l)}function qR(e,t,n,i,r){var o,a,s,l,u,c,h,d;if("radial"===e){u=i.rawX,h=i.rawY,c=r.rawX,d=r.rawY;var p=MR(u,h),f=MR(u,h+(d-h)*n),g=MR(c,d+(h-d)*n),v=MR(c,d);return{x1:p.x||0,y1:p.y||0,x2:v.x||0,y2:v.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,h=i.y,c=r.x,d=r.y,"LR"!==t&&"RL"!==t||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=d),"TB"!==t&&"BT"!==t||(o=u,a=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}const GR=ER;var WR=Ba();function UR(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,JR(t,n,e),G(n,(function(n){G(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,K(jR,e))}))})),t.wrapMethod("cloneShallow",K(YR,e)),G(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,K(ZR,e))})),ve(n[t.dataType]===t)}function jR(e,t){if(KR(this)){var n=B({},WR(this).datas);n[this.dataType]=t,JR(t,n,e)}else QR(t,this.dataType,WR(this).mainData,e);return t}function ZR(e,t){return e.struct&&e.struct.update(),t}function YR(e,t){return G(WR(t).datas,(function(n,i){n!==t&&QR(n.cloneShallow(),i,t,e)})),t}function $R(e){var t=WR(this).mainData;return null==e||null==t?t:WR(t).datas[e]}function XR(){var e=WR(this).mainData;return null==e?[{data:e}]:W(Y(WR(e).datas),(function(t){return{type:t,data:WR(e).datas[t]}}))}function KR(e){return WR(e).mainData===e}function JR(e,t,n){WR(e).datas={},G(t,(function(t,i){QR(t,i,e,n)}))}function QR(e,t,n,i){WR(n).datas[t]=e,WR(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=$R,e.getLinkedDataAll=XR}const eE=UR;var tE=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){Q(e)&&(n=t,t=e,e=null),e=e||{},ee(e)&&(e={order:e});var i,r=e.order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(i=t.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].contains(e);if(r)return r}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),nE=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var r=new e(n),o=[],a=1;function s(e,t){var n=e.value;a=Math.max(a,J(n)?n.length:1),o.push(e);var i=new tE(Aa(e.name,""),r);t?iE(i,t):r.root=i,r._nodes.push(i);var l=e.children;if(l)for(var u=0;u<l.length;u++)s(l[u],i)}s(t),r.root.updateDepthAndHeight(0);var l=QC(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new JC(l,n);return u.initData(o),i&&i(u),eE({mainData:u,struct:r,structAttr:"tree"}),r.update(),r},e}();function iE(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}const rE=nE;function oE(e,t,n){if(e&&z(t,e.type)>=0){var i=n.getData().tree.root,r=e.targetNode;if(ee(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function aE(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function sE(e,t){var n=aE(e);return z(n,t)>=0}function lE(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var uE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return o(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Oh(n,this,this.ecModel),r=rE.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var a=0;r.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return iv("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lE(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}(Ov);const cE=uE;function hE(e,t,n){var i,r=[e],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}while(i=o.pop())t(i,n)}function dE(e,t){var n,i=[e];while(n=i.pop())if(t(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function pE(e,t){e.eachSeriesByType("tree",(function(e){fE(e,t)}))}function fE(e,t){var n=CR(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=SR((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,a=SR());var s=e.getData().tree.root,l=s.children[0];if(l){_R(s),hE(l,bR,a),s.hierNode.modifier=-l.hierNode.prelim,dE(l,wR);var u=l,c=l,h=l;dE(l,(function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.getLayout().x&&(c=e),e.depth>h.depth&&(h=e)}));var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,f=0,g=0,v=0,y=0;if("radial"===i)f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),dE(l,(function(e){v=(e.getLayout().x+p)*f,y=(e.depth-1)*g;var t=MR(v,y);e.setLayout({x:t.x,y:t.y,rawX:v,rawY:y},!0)}));else{var m=e.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+d+p),f=r/(h.depth-1||1),dE(l,(function(e){y=(e.getLayout().x+p)*g,v="LR"===m?(e.depth-1)*f:r-(e.depth-1)*f,e.setLayout({x:v,y},!0)}))):"TB"!==m&&"BT"!==m||(f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),dE(l,(function(e){v=(e.getLayout().x+p)*f,y="TB"===m?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:v,y},!0)})))}}}function gE(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");B(r,i)}))}))}function vE(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,r=fR(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function yE(e){e.registerChartView(GR),e.registerSeriesModel(cE),e.registerLayout(pE),e.registerVisual(gE),vE(e)}var mE=["treemapZoomToNode","treemapRender","treemapMove"];function xE(e){for(var t=0;t<mE.length;t++)e.registerAction({type:mE[t],update:"updateView"},Te);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var i=["treemapZoomToNode","treemapRootToNode"],r=oE(e,i,t);if(r){var o=t.getViewRoot();o&&(e.direction=sE(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}function _E(e){var t=e.getData(),n=t.tree,i={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var r=Np(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",r)}))}var bE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};wE(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new Oh({itemStyle:r},this,t);i=e.levels=SE(i,t);var a=W(i||[],(function(e){return new Oh(e,o,t)}),this),s=rE.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return iv("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lE(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=we(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){_E(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},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}(Ov);function wE(e){var t=0;G(e.children,(function(e){wE(e);var n=e.value;J(n)&&(n=n[0]),t+=n}));var n=e.value;J(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),J(e.value)?e.value[0]=n:e.value=n}function SE(e,t){var n=ga(t.get("color")),i=ga(t.get(["aria","decal","decals"]));if(n){var r,o;e=e||[],G(e,(function(e){var t=new Oh(e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=e[0]||(e[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),e}}const ME=bE;var CE=8,IE=8,TE=5,kE=function(){function e(e){this.group=new Lo,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(e,l,a,s,i),Xd(o,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=Aa(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*CE,t.emptyItemWidth);t.totalWidth+=a+IE,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r){for(var o=0,a=t.emptyItemWidth,s=e.get(["breadcrumb","height"]),l=Yd(t.pos,t.box),u=t.totalWidth,c=t.renderList,h=c.length-1;h>=0;h--){var d=c[h],p=d.node,f=d.width,g=d.text;u>l.width&&(u-=f-a,f=a,g=null);var v=new By({shape:{points:AE(o,0,f,s,h===c.length-1,0===h)},style:F(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Du({style:{text:g,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*qu,onclick:K(r,p)});v.disableLabelAnimation=!0,this.group.add(v),DE(v,e,p),o+=f+IE}},e.prototype.remove=function(){this.group.removeAll()},e}();function AE(e,t,n,i,r,o){var a=[[r?e:e-TE,t],[e+n,t],[e+n,t+i],[r?e:e-TE,t+i]];return!o&&a.splice(2,0,[e+n+TE,t+i/2]),!r&&a.push([e,t+i/2]),a}function DE(e,t,n){Lu(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&lE(n,t)}}const LE=kE;var PE=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;i<r;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 OE(){return new PE}var RE=Lo,EE=du,NE=3,BE="label",FE="upperLabel",zE=10*qu,VE=2*qu,HE=3*qu,qE=us([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),GE=function(e){var t=qE(e);return t.stroke=t.fill=t.lineWidth=null,t},WE=Ba(),UE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=jE(),n}return o(t,e),t.prototype.render=function(e,t,n,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(z(r,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],a=oE(i,o,e),s=i&&i.type,l=e.layoutInfo,u=!this._oldTree,c=this._storage,h="treemapRootToNode"===s&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),p=e.get("animation"),f=this._doRender(d,e,h);!p||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(d,f,e,h),this._resetController(n),this._renderBreadcrumb(e,n,a)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new RE,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,r=this._oldTree,o=jE(),a=jE(),s=this._storage,l=[];function u(e,i,r,u){return ZE(t,a,s,n,o,l,e,i,r,u)}h(i.root?[i.root]:[],r&&r.root?[r.root]:[],e,i===r||!r,0);var c=d(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:p};function h(e,t,n,i,r){function o(e){return e.getId()}function a(o,a){var s=null!=o?e[o]:null,l=null!=a?t[a]:null,c=u(s,l,n,r);c&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],c,i,r+1)}i?(t=e,G(e,(function(e,t){!e.isRemoved()&&a(t,t)}))):new wC(t,e,o,o).add(a).update(a).remove(K(a,null)).execute()}function d(e){var t=jE();return e&&G(e,(function(e,n){var i=t[n];G(e,(function(e){e&&(i.push(e),WE(e).willDelete=!0)}))})),t}function p(){G(c,(function(e){G(e,(function(e){e.parent&&e.parent.remove(e)}))})),G(l,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Q(r)?0:r)||0,s=(Q(o)?null:o)||"cubicOut",l=OE();G(t.willDeleteEls,(function(e,t){G(e,(function(e,n){if(!e.invisible){var r,o=e.parent,u=WE(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),r="nodeGroup"===t?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}r&&l.add(e,r,a,0,s)}}))})),G(this._storage,(function(e,n){G(e,(function(e,i){var r=t.lastsForAnimation[n][i],o={};r&&(e instanceof Lo?null!=r.oldX&&(o.x=e.x,o.y=e.y,e.x=r.oldX,e.y=r.oldY):(r.oldShape&&(o.shape=B({},e.shape),e.setShape(r.oldShape)),r.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),l.add(e,o,a,0,s))}))}),this),this._state="animating",l.finished(X((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||(t=this._controller=new gP(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",X(this._onPan,this)),t.on("zoom",X(this._onZoom,this)));var n=new oo(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,i){return n.contain(t,i)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>NE||Math.abs(e.dy)>NE)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new oo(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=kr();Pr(s,s,[-t,-n]),Rr(s,s,[e.scale,e.scale]),Pr(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&qd(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new LE(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(sE(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=jE(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(nx);function jE(){return{nodeGroup:[],background:[],content:[]}}function ZE(e,t,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),h=e.getData(),d=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var p=c.width,f=c.height,g=c.borderWidth,v=c.invisible,y=a.getRawIndex(),m=s&&s.getRawIndex(),x=a.viewChildren,_=c.upperHeight,b=x&&x.length,w=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),C=d.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,T=H("nodeGroup",RE);if(T){if(l.add(T),T.x=c.x||0,T.y=c.y||0,T.markRedraw(),WE(T).nodeWidth=p,WE(T).nodeHeight=f,c.isAboveViewRoot)return T;var k=H("background",EE,u,VE);k&&E(T,k,b&&c.upperLabelHeight);var A=d.getModel("emphasis"),D=A.get("focus"),L=A.get("blurScope"),P=A.get("disabled"),O="ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():D;if(b)Hc(T)&&Vc(T,!1),k&&(Vc(k,!P),h.setItemGraphicEl(a.dataIndex,k),Nc(k,O,L));else{var R=H("content",EE,u,HE);R&&N(T,R),k.disableMorphing=!0,k&&Hc(k)&&Vc(k,!1),Vc(T,!P),h.setItemGraphicEl(a.dataIndex,T),Nc(T,O,L)}return T}}}function E(t,n,i){var r=Lu(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:I}),v)F(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=GE(w);l.fill=s;var u=qE(S);u.fill=S.get("borderColor");var c=qE(M);c.fill=M.get("borderColor");var h=qE(C);if(h.fill=C.get("borderColor"),i){var d=p-2*g;z(n,s,o.opacity,{x:g,y:0,width:d,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,pc(n)}t.add(n)}function N(t,n){var i=Lu(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:I}),v)F(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=GE(w);u.fill=l,u.decal=s.decal;var c=qE(S),h=qE(M),d=qE(C);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,pc(n)}t.add(n)}function F(e){!e.invisible&&o.push(e)}function z(t,n,i,r){var o=d.getModel(r?FE:BE),s=Aa(d.get("name"),null),l=o.getShallow("show");sh(t,lh(d,r?FE:BE),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var h=u.style,p=ge(h.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:t.shape.height)-p[0]-p[2],0);h.width===e&&h.height===n||u.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",V(h,r,c);var f=u.getState("emphasis");V(f?f.style:null,r,c)}}function V(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function H(e,i,o,a){var s=null!=m&&n[e][m],l=r[e];return s?(n[e][m]=null,q(l,s)):v||(s=new i,s instanceof qs&&(s.z2=YE(o,a)),G(l,s)),t[e][y]=s}function q(e,t){var n=e[y]={};t instanceof RE?(n.oldX=t.x,n.oldY=t.y):n.oldShape=B({},t.shape)}function G(e,t){var n=e[y]={},o=a.parentNode,s=t instanceof Lo;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function YE(e,t){return e*zE+t}const $E=UE;var XE=G,KE=ie,JE=-1,QE=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=R(t);this.type=i,this.mappingMethod=n,this._normalizeData=hN[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(nN(r),eN(r)):"category"===n?r.categories?tN(r):nN(r,!0):(ve("linear"!==n||r.dataExtent),nN(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return X(this._normalizeData,this)},e.listVisualTypes=function(){return Y(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){ie(e)?G(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=J(t)?[]:ie(t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);r?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,i={};return t&&XE(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(J(e))e=e.slice();else{if(!KE(e))return[];var t=[];XE(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,r=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||ee(s)&&s===e+"")return o;n&&h(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(dN(c[1],e,u[1]))return o}else if(u[1]===1/0){if(dN(c[0],u[0],e))return o}else if(dN(c[0],u[0],e)&&dN(c[1],e,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function h(t,n){var o=Math.abs(t-e);o<r&&(r=o,i=n)}},e.visualHandlers={color:{applyVisual:oN("color"),getColorMapper:function(){var e=this.option;return X("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),aN.call(this,e)}:function(t,n,i){var r=!!i;return!n&&(t=this._normalizeData(t)),i=ni(t,e.parsedVisual,i),r?i:ai(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ai(ni(e,this.option.parsedVisual),"rgba")},category:aN,piecewise:function(e,t){var n=uN.call(this,t);return null==n&&(n=ai(ni(e,this.option.parsedVisual),"rgba")),n},fixed:sN}},colorHue:iN((function(e,t){return ri(e,t)})),colorSaturation:iN((function(e,t){return ri(e,null,t)})),colorLightness:iN((function(e,t){return ri(e,null,null,t)})),colorAlpha:iN((function(e,t){return oi(e,t)})),decal:{applyVisual:oN("decal"),_normalizedToVisual:{linear:null,category:aN,piecewise:null,fixed:null}},opacity:{applyVisual:oN("opacity"),_normalizedToVisual:lN([0,1])},liftZ:{applyVisual:oN("liftZ"),_normalizedToVisual:{linear:sN,category:sN,piecewise:sN,fixed:sN}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:rN,category:aN,piecewise:function(e,t){var n=uN.call(this,t);return null==n&&(n=rN.call(this,e)),n},fixed:sN}},symbolSize:{applyVisual:oN("symbolSize"),_normalizedToVisual:lN([0,1])}},e}();function eN(e){var t=e.pieceList;e.hasSpecialVisual=!1,G(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function tN(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(XE(t,(function(e,t){n[e]=t})),!J(i)){var r=[];ie(i)?XE(i,(function(e,t){var i=n[t];r[null!=i?i:JE]=e})):r[JE]=i,i=cN(e,r)}for(var o=t.length-1;o>=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}function nN(e,t){var n=e.visual,i=[];ie(n)?XE(n,(function(e){i.push(e)})):null!=n&&i.push(n);var r={color:1,symbol:1};t||1!==i.length||r.hasOwnProperty(e.type)||(i[1]=i[0]),cN(e,i)}function iN(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:lN([0,1])}}function rN(e){var t=this.option.visual;return t[Math.round(qo(e,[0,1],[0,t.length-1],!0))]||{}}function oN(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function aN(e){var t=this.option.visual;return t[this.option.loop&&e!==JE?e%t.length:e]}function sN(){return this.option.visual[0]}function lN(e){return{linear:function(t){return qo(t,e,this.option.visual,!0)},category:aN,piecewise:function(t,n){var i=uN.call(this,n);return null==i&&(i=qo(t,e,this.option.visual,!0)),i},fixed:sN}}function uN(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=QE.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function cN(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=W(t,(function(e){var t=Jn(e);return t||[0,0,0,1]}))),t}var hN={linear:function(e){return qo(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=QE.findPieceIndex(e,t,!0);if(null!=n)return qo(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?JE:t},fixed:Te};function dN(e,t,n){return e?t<=n:t<n}const pN=QE;var fN="itemStyle",gN=Ba();const vN={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||yN(n,{},e.getViewRoot().getAncestors(),e)}};function yN(e,t,n,i){var r=e.getModel(),o=e.getLayout(),a=e.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel(fN),u=mN(l,t,i),c=a.ensureUniqueItemVisual(e.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(s=xN(u),h=_N(d,s)),c.stroke=h;var p=e.viewChildren;if(p&&p.length){var f=wN(e,r,o,l,u,p);G(p,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var o=MN(r,u,e,t,f,i);yN(e,o,n,i)}}))}else s=xN(u),c.fill=s}}function mN(e,t,n){var i=B({},t),r=n.designatedVisualItemStyle;return G(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function xN(e){var t=bN(e,"color");if(t){var n=bN(e,"colorAlpha"),i=bN(e,"colorSaturation");return i&&(t=ri(t,null,null,i)),n&&(t=oi(t,n)),t}}function _N(e,t){return null!=t?ri(t,null,null,e):null}function bN(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function wN(e,t,n,i,r,o){if(o&&o.length){var a=SN(t,"color")||null!=r.color&&"none"!==r.color&&(SN(t,"colorAlpha")||SN(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new pN(h);return gN(d).drColorMappingBy=c,d}}}function SN(e,t){var n=e.get(t);return J(n)&&n.length?{name:t,range:n}:null}function MN(e,t,n,i,r,o){var a=B({},t);if(r){var s=r.type,l="color"===s&&gN(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}var CN=Math.max,IN=Math.min,TN=he,kN=G,AN=["itemStyle","borderWidth"],DN=["itemStyle","gapWidth"],LN=["upperLabel","show"],PN=["upperLabel","height"];const ON={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,s=$d(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Go(TN(s.width,l[0]),r),c=Go(TN(s.height,l[1]),o),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],p=oE(i,d,e),f="treemapRender"===h||"treemapMove"===h?i.rootRect:null,g=e.getViewRoot(),v=aE(g);if("treemapMove"!==h){var y="treemapZoomToNode"===h?HN(e,p,g,u,c):f?[f.width,f.height]:[u,c],m=a.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var x={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(_),RN(g,x,!1,0),_=g.getLayout(),kN(v,(function(e,t){var n=(v[t+1]||g).getValue();e.setLayout(B({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var b=e.getData().tree.root;b.setLayout(qN(s,f,p),!0),e.setLayoutInfo(s),GN(b,new oo(-s.x,-s.y,r,o),v,g,0)}};function RN(e,t,n,i){var r,o;if(!e.isRemoved()){var a=e.getLayout();r=a.width,o=a.height;var s=e.getModel(),l=s.get(AN),u=s.get(DN)/2,c=WN(s),h=Math.max(l,c),d=l-u,p=h-u;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),r=CN(r-2*d,0),o=CN(o-d-p,0);var f=r*o,g=EN(e,s,f,t,n,i);if(g.length){var v={x:d,y:p,width:r,height:o},y=IN(r,o),m=1/0,x=[];x.area=0;for(var _=0,b=g.length;_<b;){var w=g[_];x.push(w),x.area+=w.getLayout().area;var S=zN(x,y,t.squareRatio);S<=m?(_++,m=S):(x.area-=x.pop().getLayout().area,VN(x,y,v,u,!1),y=IN(v.width,v.height),x.length=x.area=0,m=1/0)}if(x.length&&VN(x,y,v,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(_=0,b=g.length;_<b;_++)RN(g[_],t,n,i+1)}}}function EN(e,t,n,i,r,o){var a=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return e.viewChildren=[];a=j(a,(function(e){return!e.isRemoved()})),BN(a,s);var u=FN(t,a,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=NN(t,n,u.sum,s,a),0===u.sum)return e.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}return l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:u.dataExtent},!0),a}function NN(e,t,n,i,r){if(!i)return n;for(var o=e.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}function BN(e,t){return t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i})),e}function FN(e,t,n){for(var i=0,r=0,o=t.length;r<o;r++)i+=t[r].getValue();var a,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],kN(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function zN(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;o<s;o++)a=e[o].getLayout().area,a&&(a<r&&(r=a),a>i&&(i=a));var l=e.area*e.area,u=t*t*n;return l?CN(u*i/l,l/(u*r)):1/0}function VN(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=e.length;h<d;h++){var p=e[h],f={},g=c?p.getLayout().area/c:0,v=f[l[a]]=CN(c-2*i,0),y=n[s[o]]+n[l[o]]-u,m=h===d-1||y<g?y:g,x=f[l[o]]=CN(m-2*i,0);f[s[a]]=n[s[a]]+IN(i,v/2),f[s[o]]=u+IN(i,x/2),u+=m,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function HN(e,t,n,i,r){var o,a=(t||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,u=l*e.option.zoomToNodeRatio;while(o=a.parentNode){for(var c=0,h=o.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),v=g.get(AN),y=Math.max(v,WN(g));u+=4*v*v+(3*v+y)*Math.pow(u,.5),u>Ko&&(u=Ko),a=o}u<l&&(u=l);var m=Math.pow(u/l,.5);return[i*m,r*m]}function qN(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}function GN(e,t,n,i,r){var o=e.getLayout(),a=n[r],s=a&&a===e;if(!(a&&!s||r===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new oo(t.x-o.x,t.y-o.y,t.width,t.height);kN(e.viewChildren||[],(function(e){GN(e,l,n,i,r+1)}))}}function WN(e){return e.get(LN)?e.get(PN):0}function UN(e){e.registerSeriesModel(ME),e.registerChartView($E),e.registerVisual(vN),e.registerLayout(ON),xE(e)}function jN(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e),i=n.getShallow("category");if(null!=i){ne(i)&&(i=o[i]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(i))return!1}return!0}))}))}function ZN(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e),o=t.getShallow("category");if(null!=o){ee(o)&&(o=r["ec-"+o]);var a=n.getItemVisual(o,"style"),s=i.ensureUniqueItemVisual(e,"style");B(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)i.setItemVisual(e,l[u],n.getItemVisual(o,l[u]))}}))}))}function YN(e){return e instanceof Array||(e=[e,e]),e}function $N(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=YN(e.get("edgeSymbol")),r=YN(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),r=t.getEdgeByIndex(e),o=YN(i.getShallow("symbol",!0)),a=YN(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(B(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style");l.stroke=u&&u.fill;break}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var XN="--\x3e",KN=function(e){return e.get("autoCurveness")||null},JN=function(e,t){var n=KN(e),i=20,r=[];if(ne(n))i=n;else if(J(n))return void(e.__curvenessList=n);t>i&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=r},QN=function(e,t,n){var i=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[n.uid,i,r].join(XN)},eB=function(e){var t=e.split(XN);return[t[0],t[2],t[1]].join(XN)},tB=function(e,t){var n=QN(e.node1,e.node2,t);return t.__edgeMap[n]},nB=function(e,t){var n=iB(QN(e.node1,e.node2,t),t),i=iB(QN(e.node2,e.node1,t),t);return n+i},iB=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function rB(e){KN(e)&&(e.__curvenessList=[],e.__edgeMap={},JN(e))}function oB(e,t,n,i){if(KN(n)){var r=QN(e,t,n),o=n.__edgeMap,a=o[eB(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}function aB(e,t,n,i){var r=KN(t),o=J(r);if(!r)return null;var a=tB(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=nB(e,t);JN(t,u),e.lineStyle=e.lineStyle||{};var c=QN(e.node1,e.node2,t),h=t.__curvenessList,d=o||u%2?0:1;if(a.isForward)return h[d+s];var p=eB(c),f=iB(p,t),g=h[s+f+d];return i?o?r&&0===r[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:h[s+f+d]}function sB(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),lB(n,e)}}function lB(e,t){e.eachEdge((function(e,n){var i=pe(e.getModel().get(["lineStyle","curveness"]),-aB(e,t,n,!0),0),r=Oe(e.node1.getLayout()),o=Oe(e.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),e.setLayout(a)}))}function uB(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];G(n.dimensions,(function(e){r=r.concat(i.mapDimensionsAll(e))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}lB(i.graph,e)}else t&&"none"!==t||sB(e)}))}function cB(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX,r=t.getZoom(),o=(r-1)*n+1;return o/i}function hB(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var dB=Math.PI,pB=[];function fB(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),r=e.getData(),o=r.graph,a=i.width/2+i.x,s=i.height/2+i.y,l=Math.min(i.width,i.height)/2,u=r.count();r.setLayout({cx:a,cy:s}),u&&(gB[t](e,o,r,l,a,s,u),o.eachEdge((function(t,n){var i,r=pe(t.getModel().get(["lineStyle","curveness"]),aB(t,e,n),0),o=Oe(t.node1.getLayout()),l=Oe(t.node2.getLayout()),u=(o[0]+l[0])/2,c=(o[1]+l[1])/2;+r&&(r*=3,i=[a*r+u*(1-r),s*r+c*(1-r)]),t.setLayout([o,l,i])})))}}var gB={value:function(e,t,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,i,r,o,a){var s=0;pB.length=a;var l=cB(e);t.eachNode((function(e){var t=hB(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=dB/2),pB[e.dataIndex]=n,s+=2*n}));var u=(2*dB-s)/a/2,c=0;t.eachNode((function(e){var t=u+pB[e.dataIndex];c+=t,e.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=t}))}};function vB(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&fB(e,"symbolSize")}))}var yB=Ne;function mB(e,t,n){for(var i=e,r=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=Le(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Oe(h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){p=e},step:function(e){d&&d(i,r);for(var t=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;Be(t,c.p,s.p);var h=Fe(t)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),He(t,t),!s.fixed&&yB(s.p,s.p,t,f*h*g),!c.fixed&&yB(c.p,c.p,t,-(1-f)*h*g)}}for(o=0;o<n;o++){var v=i[o];v.fixed||(Be(t,l,v.p),yB(v.p,v.p,t,u*g))}for(o=0;o<n;o++){s=i[o];for(var y=o+1;y<n;y++){c=i[y];Be(t,c.p,s.p);h=Fe(t);0===h&&(Re(t,Math.random()-.5,Math.random()-.5),h=1);var m=(s.rep+c.rep)/h/h;!s.fixed&&yB(s.pp,s.pp,t,m),!c.fixed&&yB(c.pp,c.pp,t,-m)}}var x=[];for(o=0;o<n;o++){v=i[o];v.fixed||(Be(x,v.p,v.pp),yB(v.p,v.p,x,g),Pe(v.pp,v.p))}g*=.992;var _=g<.01;p&&p(i,r,_),e&&e(_)}}}function xB(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),r=i.data,o=i.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?r.each((function(e){var t=r.getId(e);r.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&fB(e,"value"):sB(e);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),d=J(c)?c:[c,c],p=J(h)?h:[h,h];p=[p[1],p[0]];var f=r.mapArray("value",(function(e,t){var n=r.getItemLayout(t),i=qo(e,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(t,n){var r=i.getEdgeByIndex(n),o=qo(t,u,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=r.getModel(),s=pe(r.getModel().get(["lineStyle","curveness"]),-aB(r,e,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),v=t.getBoundingRect(),y=mB(f,g,{rect:v,gravity:a.get("gravity"),friction:a.get("friction")});y.beforeStep((function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].fixed&&Pe(e[n].p,i.getNodeByIndex(n).getLayout())})),y.afterStep((function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||i.getNodeByIndex(a).setLayout(e[a].p),n[r.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],u=i.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,d=u.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],Pe(d[0],c),Pe(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),e.forceLayout=y,e.preservedPoints=n,y.step()}else e.forceLayout=null}))}function _B(e,t,n){var i=B(e.getBoxLayoutParams(),{aspect:n});return $d(i,{width:t.getWidth(),height:t.getHeight()})}function bB(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var r=e.getData(),o=r.mapArray((function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.get("y")]})),a=[],s=[];Ks(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=_B(e,t,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],h=s[1]-a[1],d=u.width,p=u.height,f=e.coordinateSystem=new eR;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,h),f.setViewRect(u.x,u.y,d,p),f.setCenter(e.get("center"),t),f.setZoom(e.get("zoom")),n.push(f)}})),n}var wB=Wy.prototype,SB=$y.prototype,MB=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}o(t,e)})(MB);function CB(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var IB=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new MB},t.prototype.buildPath=function(e,t){CB(t)?wB.buildPath.call(this,e,t):SB.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return CB(this.shape)?wB.pointAt.call(this,e):SB.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=CB(t)?[t.x2-t.x1,t.y2-t.y1]:SB.tangentAt.call(this,e);return He(n,n)},t}($l);const TB=IB;var kB=["fromSymbol","toSymbol"];function AB(e){return"_"+e+"Type"}function DB(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=y_(r),u=m_(a||0,l),c=v_(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function LB(e){var t=new TB({name:"line",subPixelOptimize:!0});return PB(t.shape,e),t}function PB(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var OB=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createLine(t,n,i),r}return o(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,r=e.getItemLayout(t),o=LB(r);o.shape.percent=0,Kc(o,{shape:{percent:1}},i,t),this.add(o),G(kB,(function(n){var i=DB(n,e,t);this.add(i),this[AB(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};PB(a.shape,o),Xc(r,a,i,t),G(kB,(function(n){var i=e.getItemVisual(t,n),r=AB(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=DB(n,e,t);this.add(o)}this[r]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(t),p=d.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),l=lh(d)}var f=e.getItemVisual(t,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,G(kB,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=f.opacity;for(var n=0;n<Vu.length;n++){var i=Vu[n],o=r.getState(i);if(o){var a=o.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}}),this);var v=i.getRawValue(t);sh(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==v?e.getName(t):isFinite(v)?Wo(v):v)+""});var y=this.getTextContent();if(y){var m=l.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=m.get("position")||"middle";var x=m.get("distance");J(x)||(x=[x,x]),y.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Ec(this,c,h,u)},t.prototype.highlight=function(){vc(this)},t.prototype.downplay=function(){yc(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");PB(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){var r=1,o=this.parent;while(o)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=Be([],u,l);if(He(c,c),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=r*s,t.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,v=s/2,y=a.tangentAt(v),m=[y[1],-y[0]],x=a.pointAt(v);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var _=y[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(y[1],y[0]);u[0]<l[0]&&(b=Math.PI+b),i.rotation=b}var w=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*f+u[0],i.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+w,h=y[0]<0?"right":"left",i.originX=-f*_,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+w,h=y[0]>=0?"right":"left",i.originX=f*_,i.originY=-w;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Lo);const RB=OB;var EB=function(){function e(e){this.group=new Lo,this._LineCtor=e||RB}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=BB(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=BB(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||NB(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++){var r=t.getItemLayout(i);if(zB(r)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){Zm(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){var i=e.getItemLayout(t);if(zB(i)){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,i,r){var o=e.getItemGraphicEl(n);zB(t.getItemLayout(i))?(o?o.updateData(t,i,r):o=new this._LineCtor(t,i,r),t.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},e}();function NB(e){return e.animators&&e.animators.length>0}function BB(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:lh(t)}}function FB(e){return isNaN(e[0])||isNaN(e[1])}function zB(e){return e&&!FB(e[0])&&!FB(e[1])}const VB=EB;var HB=[],qB=[],GB=[],WB=Mn,UB=Ue,jB=Math.abs;function ZB(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){HB[0]=WB(r[0],o[0],a[0],c),HB[1]=WB(r[1],o[1],a[1],c);var h=jB(UB(HB,t)-l);h<s&&(s=h,i=c)}for(var d=0;d<32;d++){var p=i+u;qB[0]=WB(r[0],o[0],a[0],i),qB[1]=WB(r[1],o[1],a[1],i),GB[0]=WB(r[0],o[0],a[0],p),GB[1]=WB(r[1],o[1],a[1],p);h=UB(qB,t)-l;if(jB(h)<.01)break;var f=UB(GB,t)-l;u/=2,h<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function YB(e,t){var n=[],i=kn,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[Oe(l[0]),Oe(l[1])],l[2]&&l.__original.push(Oe(l[2])));var h=l.__original;if(null!=l[2]){if(Pe(r[0],h[0]),Pe(r[1],h[2]),Pe(r[2],h[1]),u&&"none"!==u){var d=hB(e.node1),p=ZB(r,h[0],d*t);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){d=hB(e.node2),p=ZB(r,h[1],d*t);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}Pe(l[0],r[0]),Pe(l[1],r[2]),Pe(l[2],r[1])}else{if(Pe(o[0],h[0]),Pe(o[1],h[1]),Be(a,o[1],o[0]),He(a,a),u&&"none"!==u){d=hB(e.node1);Ne(o[0],o[0],a,d*t)}if(c&&"none"!==c){d=hB(e.node2);Ne(o[1],o[1],a,-d*t)}Pe(l[0],o[0]),Pe(l[1],o[1])}}))}function $B(e){return"view"===e.type}var XB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){var n=new kI,i=new VB,r=this.group;this._controller=new gP(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if($B(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Xc(s,l,e)}YB(e.getGraph(),cB(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d),u.graph.eachNode((function(e){var t=e.dataIndex,n=e.getGraphicEl(),r=e.getModel();if(n){n.off("drag").off("dragend");var o=r.get("draggable");o&&n.on("drag",(function(){h&&(h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(t),u.setItemLayout(t,[n.x,n.y]))})).on("dragend",(function(){h&&h.setUnfixed(t)})),n.setDraggable(o&&!!h,!!r.get("cursor"));var a=r.get(["emphasis","focus"]);"adjacency"===a&&(Lu(n).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Lu(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),f=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),i=n.get(["label","rotate"])||0,r=e.getSymbolPath();if(p){var o=u.getItemLayout(t),a=Math.atan2(o[1]-g,o[0]-f);a<0&&(a=2*Math.PI+a);var s=o[0]<f;s&&(a-=Math.PI);var l=s?"left":"right";r.setTextConfig({rotation:-a,position:l,origin:"center"});var c=r.ensureState("emphasis");B(c.textConfig||(c.textConfig={}),{position:l})}else r.setTextConfig({rotation:i*=Math.PI/180})})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!_P(t,n,e)})),$B(e.coordinateSystem)?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){vP(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){yP(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),YB(e.getGraph(),cB(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=cB(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){YB(e.getGraph(),cB(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(nx);const KB=XB;function JB(e){return"_EC_"+e}var QB=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[JB(e)]){var i=new eF(e,t);return i.hostGraph=this,this.nodes.push(i),n[JB(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[JB(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(ne(e)&&(e=this.nodes[e]),ne(t)&&(t=this.nodes[t]),e instanceof eF||(e=i[JB(e)]),t instanceof eF||(t=i[JB(t)]),e&&t){var o=e.id+"-"+t.id,a=new tF(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),r[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof eF&&(e=e.id),t instanceof eF&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof eF||(t=this._nodesMap[JB(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null)){var a=[t];while(a.length){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(i,c,s))return;a.push(c),c.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r;t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)t.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),eF=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e}(),tF=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function nF(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}H(eF,nF("hostGraph","data")),H(tF,nF("hostGraph","edgeData"));const iF=QB;function rF(e,t,n,i,r){for(var o=new iF(i),a=0;a<e.length;a++)o.addNode(he(e[a].id,e[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<t.length;a++){var c=t[a],h=c.source,d=c.target;o.addEdge(h,d,u)&&(l.push(c),s.push(he(Aa(c.id,null),h+" > "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=vI(e,n);else{var g=ef.get(f),v=g&&g.dimensions||[];z(v,"value")<0&&v.concat(["value"]);var y=QC(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;p=new JC(y,n),p.initData(e)}var m=new JC(["value"],n);return m.initData(l,s),r&&r(p,m),eE({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var oF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Rk(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),va(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){rB(this);var o=rF(i,n,this,!0,a);return G(o.edges,(function(e){oB(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Oh.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),iv("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var u=xv({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=W(this.option.categories||[],(function(e){return null!=e.value?e:B({value:0},e)})),t=new JC(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const aF=oF;var sF={type:"graphRoam",event:"graphRoam",update:"none"};function lF(e){e.registerChartView(KB),e.registerSeriesModel(aF),e.registerProcessor(jN),e.registerVisual(ZN),e.registerVisual($N),e.registerLayout(uB),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,vB),e.registerLayout(xB),e.registerCoordinateSystem("graphView",{dimensions:eR.dimensions,create:bB}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Te),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Te),e.registerAction(sF,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,r=fR(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}var uF=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),cF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return o(t,e),t.prototype.getDefaultShape=function(){return new uF},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)},t}($l);const hF=cF;function dF(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r),a=Go(n[0],t.getWidth()),s=Go(n[1],t.getHeight()),l=Go(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function pF(e,t){var n=null==e?"":e+"";return t&&(ee(t)?n=t.replace("{value}",n):Q(t)&&(n=t(e))),n}var fF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=dF(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap"),h=c?zT:Ay,d=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),g=[s,l];bl(g,!a),s=g[0],l=g[1];for(var v=l-s,y=s,m=0;d&&m<i.length;m++){var x=Math.min(Math.max(i[m][0],0),1);l=s+v*x;var _=new h({shape:{startAngle:y,endAngle:l,cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-f,r:r.r},silent:!0});_.setStyle({fill:i[m][1]}),_.setStyle(p.getLineStyle(["color","width"])),o.add(_),y=l}var b=function(e){if(e<=0)return i[0][1];var t;for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};this._renderTicks(e,t,n,b,r,s,l,a,f),this._renderTitleAndDetail(e,t,n,b,r),this._renderAnchor(e,r),this._renderPointer(e,t,n,b,r,s,l,a,f)},t.prototype._renderTicks=function(e,t,n,i,r,o,a,s,l){for(var u,c,h=this.group,d=r.cx,p=r.cy,f=r.r,g=+e.get("min"),v=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),x=e.getModel("axisLabel"),_=e.get("splitNumber"),b=m.get("splitNumber"),w=Go(y.get("length"),f),S=Go(m.get("length"),f),M=o,C=(a-o)/_,I=C/b,T=y.getModel("lineStyle").getLineStyle(),k=m.getModel("lineStyle").getLineStyle(),A=y.get("distance"),D=0;D<=_;D++){if(u=Math.cos(M),c=Math.sin(M),y.get("show")){var L=A?A+l:l,P=new Wy({shape:{x1:u*(f-L)+d,y1:c*(f-L)+p,x2:u*(f-w-L)+d,y2:c*(f-w-L)+p},style:T,silent:!0});"auto"===T.stroke&&P.setStyle({stroke:i(D/_)}),h.add(P)}if(x.get("show")){L=x.get("distance")+A;var O=pF(Wo(D/_*(v-g)+g),x.get("formatter")),R=i(D/_);h.add(new Du({style:uh(x,{text:O,x:u*(f-w-L)+d,y:c*(f-w-L)+p,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0}))}if(m.get("show")&&D!==_){L=m.get("distance");L=L?L+l:l;for(var E=0;E<=b;E++){u=Math.cos(M),c=Math.sin(M);var N=new Wy({shape:{x1:u*(f-L)+d,y1:c*(f-L)+p,x2:u*(f-S-L)+d,y2:c*(f-S-L)+p},silent:!0,style:k});"auto"===k.stroke&&N.setStyle({stroke:i((D+E/b)/_)}),h.add(N),M+=I}M-=I}else M+=C}},t.prototype._renderPointer=function(e,t,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],p=e.get(["pointer","show"]),f=e.getModel("progress"),g=f.get("show"),v=e.getData(),y=v.mapDimension("value"),m=+e.get("min"),x=+e.get("max"),_=[m,x],b=[o,a];function w(t,n){var i,o=v.getItemModel(t),a=o.getModel("pointer"),s=Go(a.get("width"),r.r),l=Go(a.get("length"),r.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),h=Go(c[0],r.r),d=Go(c[1],r.r),p=a.get("keepAspect");return i=u?v_(u,h-s/2,d-l,s,l,null,p):new hF({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(e,t){var n=f.get("roundCap"),i=n?zT:Ay,a=f.get("overlap"),u=a?f.get("width"):l/v.count(),c=a?r.r-u:r.r-(e+1)*u,h=a?r.r:r.r-e*u,d=new i({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:h}});return a&&(d.z2=x-v.get(y,e)%x),d}(g||p)&&(v.diff(c).add((function(t){var n=v.get(y,t);if(p){var i=w(t,o);Kc(i,{rotation:-((isNaN(+n)?b[0]:qo(n,_,b,!0))+Math.PI/2)},e),u.add(i),v.setItemGraphicEl(t,i)}if(g){var r=S(t,o),a=f.get("clip");Kc(r,{shape:{endAngle:qo(n,_,b,a)}},e),u.add(r),Pu(e.seriesIndex,v.dataType,t,r),d[t]=r}})).update((function(t,n){var i=v.get(y,t);if(p){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=w(t,a);s.rotation=a,Xc(s,{rotation:-((isNaN(+i)?b[0]:qo(i,_,b,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(g){var l=h[n],m=l?l.shape.endAngle:o,x=S(t,m),M=f.get("clip");Xc(x,{shape:{endAngle:qo(i,_,b,M)}},e),u.add(x),Pu(e.seriesIndex,v.dataType,t,x),d[t]=x}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),u=l.fill;if(s instanceof iu){var c=s.style;s.useStyle(B({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(qo(v.get(y,e),_,[0,1],!0))),s.z2EmphasisLift=0,zc(s,t),Ec(s,r,o,a)}if(g){var h=d[e];h.useStyle(v.getItemVisual(e,"style")),h.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,zc(h,t),Ec(h,r,o,a)}})),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=v_(o,t.cx-r/2+Go(a[0],t.r),t.cy-r/2+Go(a[1],t.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new Lo,h=[],d=[],p=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){h[e]=new Du({silent:!0}),d[e]=new Du({silent:!0})})).update((function(e,t){h[e]=o._titleEls[t],d[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),g=new Lo,v=i(qo(o,[l,u],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var m=y.get("offsetCenter"),x=r.cx+Go(m[0],r.r),_=r.cy+Go(m[1],r.r),b=h[t];b.attr({z2:f?0:2,style:uh(y,{x,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(b)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),M=r.cx+Go(S[0],r.r),C=r.cy+Go(S[1],r.r),I=Go(w.get("width"),r.r),T=Go(w.get("height"),r.r),k=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:v,A=(b=d[t],w.get("formatter"));b.attr({z2:f?0:2,style:uh(w,{x:M,y:C,text:pF(o,A),width:isNaN(I)?null:I,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:k})}),xh(b,{normal:w},o,(function(e){return pF(e,A)})),p&&_h(b,t,a,e,{getFormattedLabel:function(e,t,n,i,r,a){return pF(a?a.interpolatedValue:o,A)}}),g.add(b)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(nx);const gF=fF;var vF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return o(t,e),t.prototype.getInitialData=function(e,t){return Pk(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},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}(Ov);const yF=vF;function mF(e){e.registerChartView(gF),e.registerSeriesModel(yF)}var xF=["itemStyle","opacity"],_F=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new Vy,a=new Du;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return o(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(xF);l=null==l?1:l,n||nh(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Kc(i,{style:{opacity:l}},r,t)):Xc(i,{style:{opacity:l},shape:{points:a.points}},r,t),zc(i,o),this._updateLabel(e,t),Ec(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;sh(r,lh(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new $r(h[0][0],h[0][1]):null},Xc(r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),gS(n,vS(a),{stroke:c})},t}(By),bF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new _F(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=r.getItemGraphicEl(t);th(n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(nx);const wF=bF;var SF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Pk(this,{coordDimensions:["value"],encodeDefaulter:K(wp,this)})},t.prototype._defaultLabelLine=function(e){va(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const MF=SF;function CF(e,t){return $d(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function IF(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,a=0,s=e.count();a<s;a++)r[a]=a;return Q(t)?r.sort(t):"none"!==t&&r.sort((function(e,t){return o?i[e]-i[t]:i[t]-i[e]})),r}function TF(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var i,r,o,a,s=e.getItemModel(t),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),h=e.getItemLayout(t),d=h.points,p="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(p)"insideLeft"===u?(r=(d[0][0]+d[3][0])/2+5,o=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===u?(r=(d[1][0]+d[2][0])/2-5,o=(d[1][1]+d[2][1])/2,i="right"):(r=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,o=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var f=void 0,g=void 0,v=void 0,y=void 0,m=c.get("length");0,"left"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=f-m,r=v-5,i="right"):"right"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=f+m,r=v+5,i="left"):"top"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,y=g-m,o=y-5,i="center"):"bottom"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,y=g+m,o=y+5,i="center"):"rightTop"===u?(f="horizontal"===n?d[3][0]:d[1][0],g="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(y=g-m,o=y-5,i="center"):(v=f+m,r=v+5,i="top")):"rightBottom"===u?(f=d[2][0],g=d[2][1],"horizontal"===n?(y=g+m,o=y+5,i="center"):(v=f+m,r=v+5,i="bottom")):"leftTop"===u?(f=d[0][0],g="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(y=g-m,o=y-5,i="center"):(v=f-m,r=v-5,i="right")):"leftBottom"===u?(f="horizontal"===n?d[1][0]:d[3][0],g="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(y=g+m,o=y+5,i="center"):(v=f-m,r=v-5,i="right")):(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===n?(y=g+m,o=y+5,i="center"):(v=f+m,r=v+5,i="left")),"horizontal"===n?(v=f,r=v):(y=g,o=y),a=[[f,g],[v,y]]}h.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:p}}))}function kF(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),r=e.get("sort"),o=CF(e,t),a=e.get("orient"),s=o.width,l=o.height,u=IF(n,r),c=o.x,h=o.y,d="horizontal"===a?[Go(e.get("minSize"),l),Go(e.get("maxSize"),l)]:[Go(e.get("minSize"),s),Go(e.get("maxSize"),s)],p=n.getDataExtent(i),f=e.get("min"),g=e.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var v=e.get("funnelAlign"),y=e.get("gap"),m="horizontal"===a?s:l,x=(m-y*(n.count()-1))/n.count(),_=function(e,t){if("horizontal"===a){var r=n.get(i,e)||0,o=qo(r,[f,g],d,!0),u=void 0;switch(v){case"top":u=h;break;case"center":u=h+(l-o)/2;break;case"bottom":u=h+(l-o);break}return[[t,u],[t,u+o]]}var p,y=n.get(i,e)||0,m=qo(y,[f,g],d,!0);switch(v){case"left":p=c;break;case"center":p=c+(s-m)/2;break;case"right":p=c+s-m;break}return[[p,t],[p+m,t]]};"ascending"===r&&(x=-x,y=-y,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var b=0;b<u.length;b++){var w=u[b],S=u[b+1],M=n.getItemModel(w);if("horizontal"===a){var C=M.get(["itemStyle","width"]);null==C?C=x:(C=Go(C,s),"ascending"===r&&(C=-C));var I=_(w,c),T=_(S,c+C);c+=C+y,n.setItemLayout(w,{points:I.concat(T.slice().reverse())})}else{var k=M.get(["itemStyle","height"]);null==k?k=x:(k=Go(k,l),"ascending"===r&&(k=-k));I=_(w,h),T=_(S,h+k);h+=k+y,n.setItemLayout(w,{points:I.concat(T.slice().reverse())})}}TF(n)}))}function AF(e){e.registerChartView(wF),e.registerSeriesModel(MF),e.registerLayout(kF),e.registerProcessor(bk("funnel"))}var DF=.3,LF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Lo,n._initialized=!1,n}return o(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,u=EF(e);function c(e){var t=RF(o,r,e,l,s);NF(t,o,e,u)}function h(t,n){var i=a.getItemGraphicEl(n),r=OF(o,t,l,s);o.setItemGraphicEl(t,i),Xc(i,{shape:{points:r}},e,t),nh(i),NF(i,o,t,u)}function d(e){var t=a.getItemGraphicEl(e);r.remove(t)}if(o.diff(a).add(c).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var p=PF(s,e,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(p)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,o=r.dimensions,a=EF(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=RF(i,this._dataGroup,l,o,r);u.incremental=!0,NF(u,i,l,a),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(nx);function PF(e,t,n){var i=e.model,r=e.getRect(),o=new du({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),Kc(o,{shape:{width:r.width,height:r.height}},t,n),o}function OF(e,t,n,i){for(var r=[],o=0;o<n.length;o++){var a=n[o],s=e.get(e.mapDimension(a),t);BF(s,i.getAxis(a).type)||r.push(i.dataToPoint(s,a))}return r}function RF(e,t,n,i,r){var o=OF(e,n,i,r),a=new Vy({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function EF(e){var t=e.get("smooth",!0);return!0===t&&(t=DF),t=sa(t),ce(t)&&(t=0),{smooth:t}}function NF(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var r=t.getItemModel(n),o=r.getModel("emphasis");zc(e,r,"lineStyle"),Ec(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function BF(e,t){return"category"===t?null==e:null==e||isNaN(e)}const FF=LF;var zF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{useEncodeDefaulter:X(VF,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,r){e===t&&i.push(n.getRawIndex(r))})),i},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}(Ov);function VF(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return G(t.dimensions,(function(e){var t=HF(e);n[e]=t})),n}}function HF(e){return+e.replace("dim","")}const qF=zF;var GF=["lineStyle","opacity"],WF={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var r=i[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(GF,!0);null!=o&&(r=o)}var a=t.ensureUniqueItemVisual(n,"style");a.opacity=r}),e.start,e.end)}}}};const UF=WF;function jF(e){ZF(e),YF(e)}function ZF(e){if(!e.parallel){var t=!1;G(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function YF(e){var t=ga(e.parallelAxis);G(t,(function(t){if(ie(t)){var n=t.parallelIndex||0,i=ga(e.parallel)[n];i&&i.parallelAxisDefault&&E(t,i.parallelAxisDefault,!1)}}))}var $F=5,XF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},G(KF,(function(e,t){n.getZr().on(t,this._handlers[t]=X(e,this))}),this)),sx(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){lx(this,"_throttledDispatchExpand"),G(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(B({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Ev),KF={mousedown:function(e){JF(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(JF(this,"click")&&t){var n=[e.offsetX,e.offsetY],i=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(i>$F)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&JF(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function JF(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const QF=XF;var ez=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&E(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){G(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=j(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);G(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(op);const tz=ez;var nz=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return o(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(zD);const iz=nz;function rz(e,t,n,i,r,o){e=e||0;var a=n[1]-n[0];if(null!=r&&(r=az(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=az(s,[0,a]),r=o=az(s,[r,o]),i=0}t[0]=az(t[0],n),t[1]=az(t[1],n);var l=oz(t,i);t[i]+=e;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,t[i]=az(t[i],h),u=oz(t,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(t[1-i]=t[i]+l.sign*r),u=oz(t,i),null!=o&&u.span>o&&(t[1-i]=t[i]+u.sign*o),t}function oz(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function az(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var sz=G,lz=Math.min,uz=Math.max,cz=Math.floor,hz=Math.ceil,dz=Wo,pz=Math.PI,fz=function(){function e(e,t,n){this.type="parallel",this._axesMap=we(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;sz(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new iz(e,rD(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();sz(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),iD(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=$d(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=gz(t.get("axisExpandWidth"),l),h=gz(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=t.get("axisExpandWindow");if(p)e=gz(p[1]-p[0],l),p[1]=p[0]+e;else{e=gz(c*(h-1),l);var f=t.get("axisExpandCenter")||cz(u/2);p=[c*f-e/2],p[1]=p[0]+e}var g=(s-e)/(u-h);g<3&&(g=0);var v=[cz(dz(p[0]/c,1))+1,hz(dz(p[1]/c,1))-1],y=g/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),sz(n,(function(t,n){var o=(i.axisExpandable?yz:vz)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:pz/2,vertical:0},l=[a[r].x+e.x,a[r].y+e.y],u=s[r],c=kr();Or(c,c,u),Pr(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];G(o,(function(t){a.push(e.mapDimension(t)),s.push(r.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var h=e.getValues(a,u),d=0,p=o.length;d<p;d++){var f=s[d].getActiveState(h[d]);if("inactive"===f){c="inactive";break}}}else c="normal";t(c,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Om([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return R(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?rz(a,i,o,"all"):l="none";else{var d=i[1]-i[0],p=o[1]*s/d;i=[uz(0,p-d/2)],i[1]=lz(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();function gz(e,t){return lz(uz(e,t[0]),t[1])}function vz(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function yz(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-e)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}const mz=fz;function xz(e,t){var n=[];return e.eachComponent("parallel",(function(i,r){var o=new mz(i,e,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",Ha).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var _z={create:xz};const bz=_z;var wz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return o(t,e),t.prototype.getAreaSelectStyle=function(){return us([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=R(e);if(t)for(var n=t.length-1;n>=0;n--)Uo(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(op);H(wz,Xk);const Sz=wz;var Mz=!0,Cz=Math.min,Iz=Math.max,Tz=Math.pow,kz=1e4,Az=6,Dz=6,Lz="globalPan",Pz={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Oz={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Rz={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Ez=0,Nz=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new Lo,n._uid="brushController_"+Ez++,G(fV,(function(e,t){this._handlers[t]=X(e,this)}),n),n}return o(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||sP(t,Lz,this._uid),G(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=E(R(Rz),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;lP(e,Lz,this._uid),G(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};G(e,(function(e){t[e.panelId]=R(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=W(e,(function(e){return E(R(Rz),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new wC(n,e,s,a).add(l).update(l).remove(u).execute(),this;function a(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(e,t){return a(e.__brushOption,t)}function l(t,a){var s=e[t];if(null!=a&&n[a]===o)i[t]=n[a];else{var l=i[t]=null!=a?(n[a].__brushOption=s,n[a]):Fz(r,Bz(r,s));Hz(r,l)}}function u(e){n[e]!==o&&r.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),Uz(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(et);function Bz(e,t){var n=yV[t.brushType].createCover(e,t);return n.__brushOption=t,Vz(n,t),e.group.add(n),n}function Fz(e,t){var n=qz(t);return n.endCreating&&(n.endCreating(e,t),Vz(t,t.__brushOption)),t}function zz(e,t){var n=t.__brushOption;qz(t).updateCoverShape(e,t,n.range,n)}function Vz(e,t){var n=t.z;null==n&&(n=kz),e.traverse((function(e){e.z=n,e.z2=n}))}function Hz(e,t){qz(t).updateCommon(e,t),zz(e,t)}function qz(e){return yV[e.__brushOption.brushType]}function Gz(e,t,n){var i,r=e._panels;if(!r)return Mz;var o=e._transform;return G(r,(function(e){e.isTargetByCursor(t,n,o)&&(i=e)})),i}function Wz(e,t){var n=e._panels;if(!n)return Mz;var i=t.__brushOption.panelId;return null!=i?n[i]:Mz}function Uz(e){var t=e._covers,n=t.length;return G(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function jz(e,t){var n=W(e._covers,(function(e){var t=e.__brushOption,n=R(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Zz(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],r=n[0]-i[0],o=n[1]-i[1],a=Tz(r*r+o*o,.5);return a>Az}function Yz(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function $z(e,t,n,i){var r=new Lo;return r.add(new du({name:"main",style:Qz(n),silent:!0,draggable:!0,cursor:"move",drift:K(rV,e,t,r,["n","s","w","e"]),ondragend:K(jz,t,{isEnd:!0})})),G(i,(function(n){r.add(new du({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:K(rV,e,t,r,n),ondragend:K(jz,t,{isEnd:!0})}))})),r}function Xz(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=Iz(r,Dz),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,p=h-o+r/2,f=c-a,g=h-s,v=f+r,y=g+r;Jz(e,t,"main",a,s,f,g),i.transformable&&(Jz(e,t,"w",l,u,o,y),Jz(e,t,"e",d,u,o,y),Jz(e,t,"n",l,u,v,o),Jz(e,t,"s",l,p,v,o),Jz(e,t,"nw",l,u,o,o),Jz(e,t,"ne",d,u,o,o),Jz(e,t,"sw",l,p,o,o),Jz(e,t,"se",d,p,o,o))}function Kz(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(Qz(n)),r.attr({silent:!i,cursor:i?"move":"default"}),G([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?nV(e,n[0]):iV(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?Oz[o]+"-resize":null})}))}function Jz(e,t,n,i,r,o,a){var s=t.childOfName(n);s&&s.setShape(lV(sV(e,t,[[i,r],[i+o,r+a]])))}function Qz(e){return F({strokeNoScale:!0},e.brushStyle)}function eV(e,t,n,i){var r=[Cz(e,n),Cz(t,i)],o=[Iz(e,n),Iz(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function tV(e){return Pm(e.group)}function nV(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=Rm(n[t],tV(e));return i[r]}function iV(e,t){var n=[nV(e,t[0]),nV(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function rV(e,t,n,i,r,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=aV(t,r,o);G(i,(function(e){var t=Pz[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(eV(s[0][0],s[1][0],s[0][1],s[1][1])),Hz(t,n),jz(t,{isEnd:!1})}function oV(e,t,n,i){var r=t.__brushOption.range,o=aV(e,n,i);G(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),Hz(e,t),jz(e,{isEnd:!1})}function aV(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function sV(e,t,n){var i=Wz(e,t);return i&&i!==Mz?i.clipPath(n,e._transform):R(n)}function lV(e){var t=Cz(e[0][0],e[1][0]),n=Cz(e[0][1],e[1][1]),i=Iz(e[0][0],e[1][0]),r=Iz(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:r-n}}function uV(e,t,n){if(e._brushType&&!vV(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=Gz(e,t,n);if(!e._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===Mz||s.panelId===o.panelId)&&yV[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function cV(e){var t=e.event;t.preventDefault&&t.preventDefault()}function hV(e,t,n){return e.childOfName("main").contain(t,n)}function dV(e,t,n,i){var r,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),Zz(e)||o){if(a&&!o){"single"===s.brushMode&&Uz(e);var l=R(s);l.brushType=pV(l.brushType,a),l.panelId=a===Mz?null:a.panelId,o=e._creatingCover=Bz(e,l),e._covers.push(o)}if(o){var u=yV[pV(e._brushType,a)],c=o.__brushOption;c.range=u.getCreatingRange(sV(e,o,e._track)),i&&(Fz(e,o),u.updateCommon(e,o)),zz(e,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Gz(e,t,n)&&Uz(e)&&(r={isEnd:i,removeOnClick:!0});return r}function pV(e,t){return"auto"===e?t.defaultBrushType:e}var fV={mousedown:function(e){if(this._dragging)gV(this,e);else if(!e.target||!e.target.draggable){cV(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=Gz(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(uV(this,e,i),this._dragging){cV(e);var r=dV(this,e,i,!1);r&&jz(this,r)}},mouseup:function(e){gV(this,e)}};function gV(e,t){if(e._dragging){cV(t);var n=t.offsetX,i=t.offsetY,r=e.group.transformCoordToLocal(n,i),o=dV(e,t,r,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&jz(e,o)}}function vV(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var yV={lineX:mV(0),lineY:mV(1),rect:{createCover:function(e,t){function n(e){return e}return $z({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Yz(e);return eV(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){Xz(e,t,n,i)},updateCommon:Kz,contain:hV},polygon:{createCover:function(e,t){var n=new Lo;return n.add(new Vy({name:"main",style:Qz(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new By({name:"main",draggable:!0,drift:K(oV,e,t),ondragend:K(jz,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:sV(e,t,n)})},updateCommon:Kz,contain:hV}};function mV(e){return{createCover:function(t,n){return $z({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Yz(t),i=Cz(n[0][e],n[1][e]),r=Iz(n[0][e],n[1][e]);return[i,r]},updateCoverShape:function(t,n,i,r){var o,a=Wz(t,n);if(a!==Mz&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),Xz(t,n,l,r)},updateCommon:Kz,contain:hV}}const xV=Nz;function _V(e){return e=SV(e),function(t){return Fm(t,e)}}function bV(e,t){return e=SV(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function wV(e,t,n){var i=SV(e);return function(e,r){return i.contain(r[0],r[1])&&!_P(e,t,n)}}function SV(e){return oo.create(e)}var MV=["axisLine","axisTickLabel","axisName"],CV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new xV(n.getZr())).on("brush",X(this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!IV(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Lo,this.group.add(this._axisGroup),e.get("show")){var o=kV(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=a.getAxisLayout(u),h=B({strokeContainThreshold:l},c),d=new hL(e,h);G(MV,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,e,o,l,n),Bm(r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=oo.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:_V(u),isTargetByCursor:wV(u,o,i),getLinearBrushOtherExtent:bV(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(TV(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=W(t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ev);function IV(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function TV(e){var t=e.axis;return W(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function kV(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const AV=CV;var DV={type:"axisAreaSelect",event:"axisAreaSelected"};function LV(e){e.registerAction(DV,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var PV={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function OV(e){e.registerComponentView(QF),e.registerComponentModel(tz),e.registerCoordinateSystem("parallel",bz),e.registerPreprocessor(jF),e.registerComponentModel(Sz),e.registerComponentView(AV),uA(e,"parallel",Sz,PV),LV(e)}function RV(e){jw(OV),e.registerChartView(FF),e.registerSeriesModel(qF),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,UF)}var EV=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}(),NV=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getDefaultShape=function(){return new EV},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){vc(this)},t.prototype.downplay=function(){yc(this)},t}($l),BV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,u=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(t){var n=new NV,i=Lu(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,a,u,d,p,f,g,v,y=t.getModel(),m=y.getModel("lineStyle"),x=m.get("curveness"),_=t.node1.getLayout(),b=t.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=t.node2.getLayout(),C=t.node2.getModel(),I=C.get("localX"),T=C.get("localY"),k=t.getLayout();switch(n.shape.extent=Math.max(1,k.dy),n.shape.orient=h,"vertical"===h?(r=(null!=w?w*s:_.x)+k.sy,a=(null!=S?S*l:_.y)+_.dy,u=(null!=I?I*s:M.x)+k.ty,d=null!=T?T*l:M.y,p=r,f=a*(1-x)+d*x,g=u,v=a*x+d*(1-x)):(r=(null!=w?w*s:_.x)+_.dx,a=(null!=S?S*l:_.y)+k.sy,u=null!=I?I*s:M.x,d=(null!=T?T*l:M.y)+k.ty,p=r*(1-x)+u*x,f=a,g=r*x+u*(1-x),v=d),n.setShape({x1:r,y1:a,x2:u,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:v}),n.useStyle(m.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var A=t.node1.getVisual("color"),D=t.node2.getVisual("color");ee(A)&&ee(D)&&(n.style.fill=new rm(0,0,+("horizontal"===h),+("vertical"===h),[{color:A,offset:0},{color:D,offset:1}]))}var L=y.getModel("emphasis");zc(n,y,"lineStyle",(function(e){return e.getItemStyle()})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var P=L.get("focus");Ec(n,"adjacency"===P?t.getAdjacentDataIndices():P,L.get("blurScope"),L.get("disabled")),Lu(n).dataType="edge"})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),h=new du({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});sh(h,lh(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),zc(h,i),o.add(h),u.setItemGraphicEl(t.dataIndex,h),Lu(h).dataType="node";var d=c.get("focus");Ec(h,"adjacency"===d?t.getAdjacentDataIndices():d,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,r){var o=u.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(FV(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(nx);function FV(e,t,n){var i=new du({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Kc(i,{shape:{width:e.width+20}},t,n),i}const zV=BV;var VV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new Oh(r[a],this,t));if(i&&n){var s=rF(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return iv("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return iv("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t),o=r.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},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}(Ov);const HV=VV;function qV(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=GV(e,t);e.layoutInfo=r;var o=r.width,a=r.height,s=e.getGraph(),l=s.nodes,u=s.edges;UV(l);var c=j(l,(function(e){return 0===e.getLayout().value})),h=0!==c.length?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");WV(l,u,n,i,o,a,h,d,p)}))}function GV(e,t){return $d(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function WV(e,t,n,i,r,o,a,s,l){jV(e,t,n,r,o,s,l),KV(e,t,o,r,i,a,s),cH(e,s)}function UV(e){G(e,(function(e){var t=lH(e.outEdges,sH),n=lH(e.inEdges,sH),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}function jV(e,t,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<t.length;d++)s[d]=1;for(d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&u.push(e[d]);var p=-1;while(u.length){for(var f=0;f<u.length;f++){var g=u[f],v=g.hostGraph.data.getRawDataItem(g.dataIndex),y=null!=v.depth&&v.depth>=0;y&&v.depth>p&&(p=v.depth),g.setLayout({depth:y?v.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;m<g.outEdges.length;m++){var x=g.outEdges[m],_=t.indexOf(x);s[_]=0;var b=x.node2,w=e.indexOf(b);0===--l[w]&&c.indexOf(b)<0&&c.push(b)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var S=p>h-1?p:h-1;a&&"left"!==a&&YV(e,a,o,S);var M="vertical"===o?(r-n)/S:(i-n)/S;XV(e,M,o)}function ZV(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function YV(e,t,n,i){if("right"===t){var r=[],o=e,a=0;while(o.length){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}o=r,r=[],++a}G(e,(function(e){ZV(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&$V(e,i)}function $V(e,t){G(e,(function(e){ZV(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function XV(e,t,n){G(e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}function KV(e,t,n,i,r,o,a){var s=JV(e,a);QV(s,t,n,i,r,a),eH(s,r,n,i,a);for(var l=1;o>0;o--)l*=.99,tH(s,l,a),eH(s,r,n,i,a),uH(s,l,a),eH(s,r,n,i,a)}function JV(e,t){var n=[],i="vertical"===t?"y":"x",r=Za(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),G(r.keys,(function(e){n.push(r.buckets.get(e))})),n}function QV(e,t,n,i,r,o){var a=1/0;G(e,(function(e){var t=e.length,s=0;G(e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*r)/s:(n-(t-1)*r)/s;l<a&&(a=l)})),G(e,(function(e){G(e,(function(e,t){var n=e.getLayout().value*a;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),G(t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))}function eH(e,t,n,i,r){var o="vertical"===r?"x":"y";G(e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var u=0,c=e.length,h="vertical"===r?"dx":"dy",d=0;d<c;d++)s=e[d],l=u-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+t;var p="vertical"===r?i:n;if(l=u-t-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)s=e[d],l=s.getLayout()[o]+s.getLayout()[h]+t-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function tH(e,t,n){G(e.slice().reverse(),(function(e){G(e,(function(e){if(e.outEdges.length){var i=lH(e.outEdges,nH,n)/lH(e.outEdges,sH);if(isNaN(i)){var r=e.outEdges.length;i=r?lH(e.outEdges,iH,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-aH(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-aH(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function nH(e,t){return aH(e.node2,t)*e.getValue()}function iH(e,t){return aH(e.node2,t)}function rH(e,t){return aH(e.node1,t)*e.getValue()}function oH(e,t){return aH(e.node1,t)}function aH(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function sH(e){return e.getValue()}function lH(e,t,n){var i=0,r=e.length,o=-1;while(++o<r){var a=+t(e[o],n);isNaN(a)||(i+=a)}return i}function uH(e,t,n){G(e,(function(e){G(e,(function(e){if(e.inEdges.length){var i=lH(e.inEdges,rH,n)/lH(e.inEdges,sH);if(isNaN(i)){var r=e.inEdges.length;i=r?lH(e.inEdges,oH,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-aH(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-aH(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function cH(e,t){var n="vertical"===t?"x":"y";G(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),G(e,(function(e){var t=0,n=0;G(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),G(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function hH(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes;if(n.length){var i=1/0,r=-1/0;G(n,(function(e){var t=e.getLayout().value;t<i&&(i=t),t>r&&(r=t)})),G(n,(function(t){var n=new pN({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:e.get("color")}),o=n.mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",o),t.setVisual("style",{fill:o}))}))}}))}function dH(e){e.registerChartView(zV),e.registerSeriesModel(HV),e.registerLayout(qV),e.registerVisual(hH),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var pH=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,o],p=d[u].get("type"),f=d[1-u].get("type"),g=e.data;if(g&&i){var v=[];G(g,(function(e,t){var n;J(e)?(n=e.slice(),e.unshift(t)):J(e.value)?(n=B({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,v.push(n)})),e.data=v}var y=this.defaultValueDimensions,m=[{name:c,type:IC(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:IC(f),dimsDef:y.slice()}];return Pk(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:K(bp,m,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),fH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return o(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Ov);H(fH,pH,!0);const gH=fH;var vH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=xH(t,i,e,a,!0);i.setItemGraphicEl(e,n),r.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(nh(n),_H(s,n,i,e)):n=xH(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(nx),yH=function(){function e(){}return e}(),mH=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return o(t,e),t.prototype.getDefaultShape=function(){return new yH},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}($l);function xH(e,t,n,i,r){var o=e.ends,a=new mH({shape:{points:r?bH(o,i,e):o}});return _H(e,a,t,n,r),a}function _H(e,t,n,r,o){var a=n.hostModel,s=i[o?"initProps":"updateProps"];s(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var l=n.getItemModel(r),u=l.getModel("emphasis");zc(t,l),Ec(t,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function bH(e,t,n){return W(e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}const wH=vH;function SH(e,t){}var MH=G;function CH(e){var t=IH(e);MH(t,(function(e){var t=e.seriesModels;t.length&&(TH(e),MH(t,(function(t,n){kH(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function IH(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),r=z(n,i);r<0&&(r=n.length,n[r]=i,t[r]={axis:i,seriesModels:[]}),t[r].seriesModels.push(e)})),t}function TH(e){var t,n=e.axis,i=e.seriesModels,r=i.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;MH(i,(function(e){l=Math.max(l,e.getData().count())}));var u=n.getExtent();t=Math.abs(u[1]-u[0])/l}MH(i,(function(e){var n=e.get("boxWidth");J(n)||(n=[n,n]),s.push([Go(n[0],t)||0,Go(n[1],t)||0])}));var c=.8*t-2,h=c/r*.3,d=(c-h*(r-1))/r,p=d/2-c/2;MH(i,(function(e,t){a.push(p),p+=h+d,o.push(Math.min(Math.max(d,s[t][0]),s[t][1]))}))}function kH(e,t,n){var i=e.coordinateSystem,r=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<r.count();h++){var d=r.get(u,h),p=x(d,c[2],h),f=x(d,c[0],h),g=x(d,c[1],h),v=x(d,c[3],h),y=x(d,c[4],h),m=[];_(m,g,!1),_(m,v,!0),m.push(f,g,y,v),b(m,f),b(m,y),b(m,p),r.setItemLayout(h,{initBaseline:p[s],ends:m})}function x(e,n,o){var l,u=r.get(n,o),c=[];return c[a]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c),l[a]+=t),l}function _(e,t,n){var i=t.slice(),r=t.slice();i[a]+=o,r[a]-=o,n?e.push(i,r):e.push(r,i)}function b(e,t){var n=t.slice(),i=t.slice();n[a]-=o,i[a]+=o,e.push(n,i)}}function AH(e,t){t=t||{};for(var n=[],i=[],r=t.boundIQR,o="none"===r||0===r,a=0;a<e.length;a++){var s=Uo(e[a].slice()),l=oa(s,.25),u=oa(s,.5),c=oa(s,.75),h=s[0],d=s[s.length-1],p=(null==r?1.5:r)*(c-l),f=o?h:Math.max(h,l-p),g=o?d:Math.min(d,c+p),v=t.itemNameFormatter,y=Q(v)?v({value:a}):ee(v)?v.replace("{value}",a+""):a+"";n.push([y,f,l,u,c,g]);for(var m=0;m<s.length;m++){var x=s[m];if(x<f||x>g){var _=[y,x];i.push(_)}}}return{boxData:n,outliers:i}}var DH={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==hp){var n="";0,vg(n)}var i=AH(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function LH(e){e.registerSeriesModel(gH),e.registerChartView(wH),e.registerVisual(SH),e.registerLayout(CH),e.registerTransform(DH)}var PH=["color","borderColor"],OH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Zm(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&BH(s,a))return;var l=NH(a,n,!0);Kc(l,{shape:{points:a.ends}},e,n),FH(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&BH(s,c)?i.remove(u):(u?(Xc(u,{shape:{points:c.ends}},e,a),nh(u)):u=NH(c,a),FH(u,t,a,r),i.add(u),t.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),qH(e,this.group);var t=e.get("clip",!0)?ZI(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=i.getItemLayout(n),a=NH(o,n);FH(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){qH(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(nx),RH=function(){function e(){}return e}(),EH=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return o(t,e),t.prototype.getDefaultShape=function(){return new RH},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}($l);function NH(e,t,n){var i=e.ends;return new EH({shape:{points:n?zH(i,e):i},z2:100})}function BH(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function FH(e,t,n,i){var r=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,zc(e,r)}function zH(e,t){return W(e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var VH=function(){function e(){}return e}(),HH=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return o(t,e),t.prototype.getDefaultShape=function(){return new VH},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];e.moveTo(r,n[i++]),e.lineTo(r,n[i++])}else i+=3},t}($l);function qH(e,t,n,i){var r=e.getData(),o=r.getLayout("largePoints"),a=new HH({shape:{points:o},__sign:1});t.add(a);var s=new HH({shape:{points:o},__sign:-1});t.add(s),GH(1,a,e,r),GH(-1,s,e,r),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function GH(e,t,n,i){var r=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(PH);t.useStyle(o),t.style.fill=null,t.style.stroke=r}const WH=OH;var UH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return o(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",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}(Ov);H(UH,pH,!0);const jH=UH;function ZH(e){e&&J(e.series)&&G(e.series,(function(e){ie(e)&&"k"===e.type&&(e.type="candlestick")}))}var YH=["itemStyle","borderColor"],$H=["itemStyle","borderColor0"],XH=["itemStyle","color"],KH=["itemStyle","color0"],JH={seriesType:"candlestick",plan:Nv(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?XH:KH)}function i(e,t){return t.get(e>0?YH:$H)}if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(e,t){var r;while(null!=(r=e.next())){var o=t.getItemModel(r),a=t.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=t.ensureUniqueItemVisual(r,"style");B(l,s)}}}}}};const QH=JH;var eq={seriesType:"candlestick",plan:Nv(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=nq(e,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=W(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?f:p};function p(e,n){var a,l=n.getStore();while(null!=(a=e.next())){var p=l.get(s,a),f=l.get(u,a),g=l.get(c,a),v=l.get(h,a),y=l.get(d,a),m=Math.min(f,g),x=Math.max(f,g),_=C(m,p),b=C(x,p),w=C(v,p),S=C(y,p),M=[];I(M,b,0),I(M,_,1),M.push(k(S),k(b),k(w),k(_)),n.setItemLayout(a,{sign:tq(l,a,f,g,c),initBaseline:f>g?b[o]:_[o],ends:M,brushRect:T(v,y,p)})}function C(e,n){var i=[];return i[r]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function I(e,t,n){var o=t.slice(),a=t.slice();o[r]=Lm(o[r]+i/2,1,!1),a[r]=Lm(a[r]-i/2,1,!0),n?e.push(o,a):e.push(a,o)}function T(e,t,n){var a=C(e,n),s=C(t,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function k(e){return e[r]=Lm(e[r],1),e}}function f(e,n){var i,a,l=RI(4*e.count),p=0,f=[],g=[],v=n.getStore();while(null!=(a=e.next())){var y=v.get(s,a),m=v.get(u,a),x=v.get(c,a),_=v.get(h,a),b=v.get(d,a);isNaN(y)||isNaN(_)||isNaN(b)?(l[p++]=NaN,p+=3):(l[p++]=tq(v,a,m,x,c),f[r]=y,f[o]=_,i=t.dataToPoint(f,null,g),l[p++]=i?i[0]:NaN,l[p++]=i?i[1]:NaN,f[o]=b,i=t.dataToPoint(f,null,g),l[p++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}}};function tq(e,t,n,i,r){var o;return o=n>i?-1:n<i?1:t>0?e.get(r,t-1)<=i?1:-1:1,o}function nq(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Go(de(e.get("barMaxWidth"),r),r),a=Go(de(e.get("barMinWidth"),1),r),s=e.get("barWidth");return null!=s?Go(s,r):Math.max(Math.min(r/2,o),a)}const iq=eq;function rq(e){e.registerChartView(WH),e.registerSeriesModel(jH),e.registerPreprocessor(ZH),e.registerVisual(QH),e.registerLayout(iq)}function oq(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var aq=function(e){function t(t,n){var i=e.call(this)||this,r=new SI(t,n),o=new Lo;return i.add(r),i.add(o),i.updateData(t,n),i}return o(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=v_(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),r.add(a)}oq(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}oq(n,e)},t.prototype.highlight=function(){vc(this)},t.prototype.downplay=function(){yc(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=y_(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,c=o.getModel("emphasis");r.setScale(s),r.traverse((function(e){e.setStyle("fill",u)}));var h=m_(e.getItemVisual(t,"symbolOffset"),s);h&&(r.x=h[0],r.y=h[1]);var d=e.getItemVisual(t,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=t/e.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===e&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Ec(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(Lo);const sq=aq;var lq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){this._symbolDraw=new kI(sq)},t.prototype.render=function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(r.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var r=fT("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Nr(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(nx);const uq=lq;var cq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Ov);const hq=cq;function dq(e){e.registerChartView(uq),e.registerSeriesModel(hq),e.registerLayout(fT("effectScatter"))}var pq=function(e){function t(t,n,i){var r=e.call(this)||this;return r.add(r.createLine(t,n,i)),r._updateEffectSymbol(t,n),r}return o(t,e),t.prototype.createLine=function(e,t,n){return new RB(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),i=n.getModel("effect"),r=i.get("symbolSize"),o=i.get("symbol");J(r)||(r=[r,r]);var a=e.getItemVisual(t,"style"),s=i.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=v_(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=r[0],l.scaleY=r[1],l.setColor(s),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(e,i,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var r=e.getItemLayout(n),o=1e3*t.get("period"),a=t.get("loop"),s=t.get("constantSpeed"),l=he(t.get("delay"),(function(t){return t/e.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),s>0&&(o=this._getLineLength(i)/s*1e3),o!==this._period||a!==this._loop){i.stopAnimation();var u=void 0;u=Q(l)?l(n):l,i.__t>0&&(u=-o*i.__t),this._animateSymbol(i,o,u,a)}this._period=o,this._loop=a}},t.prototype._animateSymbol=function(e,t,n,i){if(t>0){e.__t=0;var r=this,o=e.animate("",i).when(t,{__t:1}).delay(n).during((function(){r._updateSymbolPosition(e)}));i||o.done((function(){r.remove(e)})),o.start()}},t.prototype._getLineLength=function(e){return Ge(e.__p1,e.__cp1)+Ge(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t,o=[e.x,e.y],a=o.slice(),s=Mn,l=Cn;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var u=l(t[0],i[0],n[0],r),c=l(t[1],i[1],n[1],r);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Ge(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*Ge(t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(Lo);const fq=pq;var gq=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createPolyline(t,n,i),r}return o(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),r=new Vy({shape:{points:i}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};Xc(r,o,i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),r=e.getItemModel(t),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=r.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=o,Ec(this,a,s,l)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(Lo);const vq=gq;var yq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return o(t,e),t.prototype.createLine=function(e,t,n){return new vq(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var o=t[r-1],a=t[r];i+=Ge(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(a+1,r-1);for(o=s;o>=0;o--)if(i[o]<=t)break;o=Math.min(o,r-2)}else{for(o=a;o<r;o++)if(i[o]>t)break;o=Math.min(o-1,r-2)}var l=(t-i[o])/(i[o+1]-i[o]),u=n[o],c=n[o+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var h=c[0]-u[0],d=c[1]-u[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(fq);const mq=yq;var xq=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),_q=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xq},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){e.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(e.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;e.quadraticCurveTo(h,d,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],h=1;h<l;h++){var d=i[s++],p=i[s++];if(Ml(u,c,d,p,o,e,t))return a}a++}else for(a=0,s=0;s<i.length;){u=i[s++],c=i[s++],d=i[s++],p=i[s++];if(r>0){var f=(u+d)/2-(c-p)*r,g=(c+p)/2-(d-u)*r;if(Il(u,c,f,g,d,p,o,e,t))return a}else if(Ml(u,c,d,p,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];i=Math.min(l,i),o=Math.max(l,o),r=Math.min(u,r),a=Math.max(u,a)}e=this._rect=new oo(i,r,o,a)}return e},t}($l),bq=function(){function e(){this.group=new Lo}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new _q({cursor:"default"});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null);var o=Lu(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){o.dataIndex=null;var n=e.hoverDataIdx;n>0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const wq=bq;var Sq={seriesType:"lines",plan:Nv(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var p=e.getLineCoords(c,a);n&&(s[h++]=p);for(var f=0;f<p;f++)d=t.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),v=(p=e.getLineCoords(c,a),[]);if(n)for(var y=0;y<p;y++)v.push(t.dataToPoint(a[y]));else{v[0]=t.dataToPoint(a[0]),v[1]=t.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*m,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*m])}o.setItemLayout(c,v)}}}}}};const Mq=Sq;var Cq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),o=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=e.get("clip",!0)&&ZI(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=Mq.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new wq:new VB(r?i?mq:vq:i?fq:RB),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(nx);const Iq=Cq;var Tq="undefined"===typeof Uint32Array?Array:Uint32Array,kq="undefined"===typeof Float64Array?Array:Float64Array;function Aq(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=W(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),N([n,e[0],e[1]])})))}var Dq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return o(t,e),t.prototype.init=function(t){t.data=t.data||[],Aq(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(Aq(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Se(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Se(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(e);for(r=0;r<o.length;r++)t[r]=t[r]||[],t[r][0]=o[r][0],t[r][1]=o[r][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),ne(e[0])){for(var n=e.length,i=new Tq(n),r=new kq(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];i[a++]=o+t,i[a++]=u;for(var c=0;c<u;c++){var h=e[l++],d=e[l++];r[o++]=h,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new JC(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,r){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getItemModel(e),o=r.get("name");if(o)return o;var a=r.get("fromName"),s=r.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),iv("nameValue",{name:l.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Ov);const Lq=Dq;function Pq(e){return e instanceof Array||(e=[e,e]),e}var Oq={seriesType:"lines",reset:function(e){var t=Pq(e.get("symbol")),n=Pq(e.get("symbolSize")),i=e.getData();function r(e,t){var n=e.getItemModel(t),i=Pq(n.getShallow("symbol",!0)),r=Pq(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}};const Rq=Oq;function Eq(e){e.registerChartView(Iq),e.registerSeriesModel(Lq),e.registerLayout(Mq),e.registerVisual(Rq)}var Nq=256,Bq=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=x.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=e.length;c.width=t,c.height=n;for(var p=0;p<d;++p){var f=e[p],g=f[0],v=f[1],y=f[2],m=i(y);h.globalAlpha=m,h.drawImage(a,g-u,v-u)}if(!c.width||!c.height)return c;var x=h.getImageData(0,0,c.width,c.height),_=x.data,b=0,w=_.length,S=this.minOpacity,M=this.maxOpacity,C=M-S;while(b<w){m=_[b+3]/256;var I=4*Math.floor(m*(Nq-1));if(m>0){var T=o(m)?s:l;m>0&&(m=m*C+S),_[b++]=T[I],_[b++]=T[I+1],_[b++]=T[I+2],_[b++]=T[I+3]*m*256}else b+=4}return h.putImageData(x,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=x.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}();const Fq=Bq;function zq(e,t,n){var i=e[1]-e[0];t=W(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){var i;for(i=o;i<r;i++){var a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}function Vq(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function Hq(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var qq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Hq(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(Hq(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Zm(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,a,s,l,u=e.coordinateSystem,c=YI(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");0,o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),v=e.getModel(["blur","itemStyle"]).getItemStyle(),y=e.getModel(["select","itemStyle"]).getItemStyle(),m=e.get(["itemStyle","borderRadius"]),x=lh(e),_=e.getModel("emphasis"),b=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],C=n;C<i;C++){var I=void 0,T=f.getItemVisual(C,"style");if(c){var k=f.get(M[0],C),A=f.get(M[1],C);if(isNaN(f.get(M[2],C))||k<s[0]||k>s[1]||A<l[0]||A>l[1])continue;var D=u.dataToPoint([k,A]);I=new du({shape:{x:D[0]-o/2,y:D[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(f.get(M[1],C)))continue;I=new du({z2:1,shape:u.dataToRect([f.get(M[0],C)]).contentShape,style:T})}if(f.hasItemOption){var L=f.getItemModel(C),P=L.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),v=L.getModel(["blur","itemStyle"]).getItemStyle(),y=L.getModel(["select","itemStyle"]).getItemStyle(),m=L.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),x=lh(L)}I.shape.r=m;var O=e.getRawValue(C),R="-";O&&null!=O[2]&&(R=O[2]+""),sh(I,x,{labelFetcher:e,labelDataIndex:C,defaultOpacity:T.opacity,defaultText:R}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=v,I.ensureState("select").style=y,Ec(I,b,w,S),I.incremental=r,r&&(I.states.emphasis.hoverLayer=!0),p.add(I),f.setItemGraphicEl(C,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new Fq;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-c,g=p-h,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],y=a.mapArray(v,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=c,r[1]-=h,r.push(i),r})),m=n.getExtent(),x="visualMap.continuous"===n.type?Vq(m,n.option.range):zq(m,n.getPieceList(),n.option.selected);s.update(y,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new iu({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(nx);const Gq=qq;var Wq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=ef.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const Uq=Wq;function jq(e){e.registerChartView(Gq),e.registerSeriesModel(Uq)}var Zq=["itemStyle","borderWidth"],Yq=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],$q=new ly,Xq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:Yq[+l],categoryDim:Yq[1-+l]};return r.diff(o).add((function(e){if(r.hasValue(e)){var t=lG(r,e),n=Kq(r,e,t,c),o=hG(r,c,n);r.setItemGraphicEl(e,o),i.add(o),yG(o,c,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var a=lG(r,e),s=Kq(r,e,a,c),l=fG(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?dG(n,c,s):n=hG(r,c,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),yG(n,c,s)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&pG(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){pG(i,Lu(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(nx);function Kq(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Jq(n,o,r,i,d),eG(e,t,r,o,a,d.boundingLength,d.pxSign,c,i,d),tG(n,d.symbolScale,u,i,d);var p=d.symbolSize,f=m_(n.get("symbolOffset"),p);return nG(n,p,r,o,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function Jq(e,t,n,i,r){var o,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(J(s)){var h=[Qq(l,s[0])-u,Qq(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?Qq(l,s)-u:t?i.coordSysExtent[a.index][c]-u:n[a.wh];r.boundingLength=o,t&&(r.repeatCutLength=n[a.wh]),r.pxSign=o>0?1:-1}function Qq(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function eG(e,t,n,i,r,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=e.getItemVisual(t,"symbolSize");c=J(f)?f.slice():null==f?["100%","100%"]:[f,f],c[d.index]=Go(c[d.index],p),c[h.index]=Go(c[h.index],i?p:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}function tG(e,t,n,i,r){var o=e.get(Zq)||0;o&&($q.attr({scaleX:t[0],scaleY:t[1],rotation:n}),$q.updateTransform(),o/=$q.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}function nG(e,t,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(t[p.index]+s,0),v=g;if(i){var y=Math.abs(l),m=he(e.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=Go(m,t[p.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=la(i),M=S?i:mG((y+w)/b),C=y-M*g;_=C/2/(x?M:Math.max(M-1,1)),b=g+2*_,w=x?0:2*_,S||"fixed"===i||(M=u?mG((Math.abs(u)+w)/b):0),v=M*b-w,h.repeatTimes=M,h.symbolMargin=_}var I=f*(v/2),T=h.pathPosition=[];T[d.index]=n[d.wh]/2,T[p.index]="start"===a?I:"end"===a?l-I:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var k=h.bundlePosition=[];k[d.index]=n[d.xy],k[p.index]=n[p.xy];var A=h.barRectShape=B({},n);A[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(T[p.index]+I)),A[d.wh]=n[d.wh];var D=h.clipShape={};D[d.xy]=-n[d.xy],D[d.wh]=c.ecSize[d.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}function iG(e){var t=e.symbolPatternSize,n=v_(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function rG(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,h=o[t.valueDim.index]+a+2*n.symbolMargin;for(gG(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?vG(e,null,f(c),n,i):vG(e,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(e)})),c++}));c<u;c++){var d=iG(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var p=f(c);vG(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(e){var t=s.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-e),t[l.index]=h*(r-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function oG(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?vG(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=iG(n),r.add(o),vG(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function aG(e,t,n){var i=B({},t.barRectShape),r=e.__pictorialBarRect;r?vG(r,null,{shape:i},t,n):(r=e.__pictorialBarRect=new du({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,e.add(r))}function sG(e,t,n,r){if(n.symbolClip){var o=e.__pictorialClipPath,a=B({},n.clipShape),s=t.valueDim,l=n.animationModel,u=n.dataIndex;if(o)Xc(o,{shape:a},l,u);else{a[s.wh]=0,o=new du({shape:a}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var c={};c[s.wh]=n.clipShape[s.wh],i[r?"updateProps":"initProps"](o,{shape:c},l,u)}}}function lG(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=uG,n.isAnimationEnabled=cG,n}function uG(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function cG(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function hG(e,t,n,i){var r=new Lo,o=new Lo;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?rG(r,t,n):oG(r,t,n),aG(r,n,i),sG(r,t,n,i),r.__pictorialShapeStr=fG(e,n),r.__pictorialSymbolMeta=n,r}function dG(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;Xc(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?rG(e,t,n,!0):oG(e,t,n,!0),aG(e,n,!0),sG(e,t,n,!0)}function pG(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];gG(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),G(o,(function(e){Qc(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function fG(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function gG(e,t,n){G(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function vG(e,t,n,r,o,a){t&&e.attr(t),r.symbolClip&&!o?n&&e.attr(n):n&&i[o?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function yG(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");gG(e,(function(e){if(e instanceof iu){var t=e.style;e.useStyle(B({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;sh(f,lh(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:xI(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Ec(e,c,h,o.get("disabled"))}function mG(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const xG=Xq;var _G=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return o(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Fh(RT.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(RT);const bG=_G;function wG(e){e.registerChartView(xG),e.registerSeriesModel(bG),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,K(kT,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AT("pictorialBar"))}var SG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=l.y+u[0];var h=new wC(this._layersSeries||[],a,c,c),d=[];function p(t,n,s){var l=r._layers;if("remove"!==t){for(var u,c,h=[],p=[],f=a[n].indices,g=0;g<f.length;g++){var v=i.getItemLayout(f[g]),y=v.x,m=v.y0,x=v.y;h.push(y,m),p.push(y,m+x),u=i.getItemVisual(f[g],"style")}var _=i.getItemLayout(f[0]),b=e.getModel("label"),w=b.get("margin"),S=e.getModel("emphasis");if("add"===t){var M=d[n]=new Lo;c=new WI({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M.add(c),o.add(M),e.isAnimationEnabled()&&c.setClipPath(MG(c.getBoundingRect(),e,(function(){c.removeClipPath()})))}else{M=l[s];c=M.childAt(0),o.add(M),d[n]=M,Xc(c,{shape:{points:h,stackedOnPoints:p}},e),nh(c)}sh(c,lh(e),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var C=c.getTextContent();C&&(C.x=_.x-w,C.y=_.y0+_.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),zc(c,e),Ec(c,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else o.remove(l[n])}h.add(X(p,this,"add")).update(X(p,this,"update")).remove(X(p,this,"remove")).execute(),this._layersSeries=a,this._layers=d},t.type="themeRiver",t}(nx);function MG(e,t,n){var i=new du({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Kc(i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}const CG=SG;var IG=2,TG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=Za(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),r=[];i.buckets.each((function(e,t){r.push({name:t,dataList:e})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",Ha).models[0],i=n.get("type"),r=j(e.data,(function(e){return void 0!==e[2]})),o=this.fixData(r||[]),a=[],s=this.nameMap=we(),l=0,u=0;u<o.length;++u)a.push(o[u][IG]),s.get(o[u][IG])||(s.set(o[u][IG],l),l++);var c=QC(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:IC(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new JC(c,this);return h.initData(o),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var r=e.mapDimension("single"),o=Za(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(r,t)-e.get(r,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){J(e)||(e=e?[e]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,d=0;d<h;++d){var p=r.get(e[0],o[l].indices[d]),f=Math.abs(p-t);f<=u&&(i=p,u=f,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getName(e),o=i.get(i.mapDimension("value"),e);return iv("nameValue",{name:r,value:o})},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}(Ov);const kG=TG;function AG(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=e.get("boundaryGap"),a=n.getAxis();if(i.boundaryGap=o,"horizontal"===a.orient){o[0]=Go(o[0],r.height),o[1]=Go(o[1],r.height);var s=r.height-o[0]-o[1];DG(t,e,s)}else{o[0]=Go(o[0],r.width),o[1]=Go(o[1],r.width);var l=r.width-o[0]-o[1];DG(t,e,l)}t.setLayout("layoutInfo",i)}))}function DG(e,t,n){if(e.count())for(var i,r=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=W(o,(function(t){return W(t.indices,(function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),u=LG(l),c=u.y0,h=n/u.max,d=o.length,p=o[0].indices.length,f=0;f<p;++f){i=c[f]*h,e.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*h});for(var g=1;g<d;++g)i+=l[g-1][f][1]*h,e.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*h})}}function LG(e){for(var t=e.length,n=e[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var c=0;c<n;++c){var h=i[c]+r[c];h>o&&(o=h)}return{y0:r,max:o}}function PG(e){e.registerChartView(CG),e.registerSeriesModel(kG),e.registerLayout(AG),e.registerProcessor(bk("themeRiver"))}var OG=2,RG=4,EG=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=OG,o.textConfig={inside:!0},Lu(o).seriesIndex=n.seriesIndex;var a=new Du({z2:RG,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return o(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Lu(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=B({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var h=t.getVisual("decal");h&&(c.decal=ob(h,r));var d=kk(a.getModel("itemStyle"),u,!0);B(u,d),G(Vu,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=kk(n,u);i&&(t.shape=i)})),e?(o.setShape(u),o.shape.r=l.r0,Xc(o,{shape:{r:l.r}},n,t.dataIndex)):(Xc(o,{shape:u},n),nh(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),g="ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Ec(this,g,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(o)<d);function f(e,t){var n=e.get(t);return null==n?i.get(t):n}c.ignore=!p,G(Hu,(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,g=p?c:c.ensureState(i),v=e.getFormattedLabel(h,i);p&&(v=v||t.node.name),g.style=uh(d,{},null,"normal"!==i,!0),v&&(g.style.text=v);var y=d.get("show");null==y||p||(g.ignore=!y);var m,x=f(d,"position"),_=p?u:u.states[i],b=_.style.fill;_.textConfig={outsideFill:"inherit"===d.get("color")?b:null,inside:"outside"!==x};var w=f(d,"distance")||0,S=f(d,"align");"outside"===x?(m=r.r+w,S=a>Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(m=r.r0+w,a>Math.PI/2&&(S="right")):"right"===S&&(m=r.r-w,a>Math.PI/2&&(S="left")):(m=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=m*s+r.cx,g.y=m*l+r.cy;var M=f(d,"rotate"),C=0;"radial"===M?(C=-a,C<-Math.PI/2&&(C+=Math.PI)):"tangential"===M?(C=Math.PI/2-a,C>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI)):ne(M)&&(C=M*Math.PI/180),g.rotation=C})),c.dirtyStyle()},t}(Ay);const NG=EG;var BG="sunburstRootToNode",FG="sunburstHighlight",zG="sunburstUnhighlight";function VG(e){e.registerAction({type:BG,update:"updateView"},(function(e,t){function n(t,n){var i=oE(e,[BG],t);if(i){var r=t.getViewRoot();r&&(e.direction=sE(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:FG,update:"none"},(function(e,t,n){function i(t){var n=oE(e,[FG],t);n&&(e.dataIndex=n.node.dataIndex)}e=B({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(B(e,{type:"highlight"}))})),e.registerAction({type:zG,update:"updateView"},(function(e,t,n){e=B({},e),n.dispatchAction(B(e,{type:"downplay"}))}))}var HG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var h=this._oldChildren||[];function d(e,t){function n(e){return e.getId()}function i(n,i){var r=null==n?null:e[n],o=null==i?null:t[i];p(r,o)}0===e.length&&0===t.length||new wC(t,e,n,n).add(i).update(i).remove(K(i,null)).execute()}function p(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):f(r);else if(i){var s=new NG(i,e,t,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function f(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function g(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new NG(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}d(c,h),g(a,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";qd(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:BG,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="sunburst",t}(nx);const qG=HG;var GG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};WG(n);var i=this._levelModels=W(e.levels||[],(function(e){return new Oh(e,this,t)}),this),r=rE.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=lE(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){_E(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}(Ov);function WG(e){var t=0;G(e.children,(function(e){WG(e);var n=e.value;J(n)&&(n=n[0]),t+=n}));var n=e.value;J(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),J(e.value)?e.value[0]=n:e.value=n}const UG=GG;var jG=Math.PI/180;function ZG(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");J(i)||(i=[0,i]),J(t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Go(t[0],r),l=Go(t[1],o),u=Go(i[0],a/2),c=Go(i[1],a/2),h=-e.get("startAngle")*jG,d=e.get("minAngle")*jG,p=e.getData().tree.root,f=e.getViewRoot(),g=f.depth,v=e.get("sort");null!=v&&YG(f,v);var y=0;G(f.children,(function(e){!isNaN(e.getValue())&&y++}));var m=f.getValue(),x=Math.PI/(m||y)*2,_=f.depth>0,b=f.height-(_?-1:1),w=(c-u)/(b||1),S=e.get("clockwise"),M=e.get("stillShowZeroSum"),C=S?1:-1,I=function(t,n){if(t){var i=n;if(t!==p){var r=t.getValue(),o=0===m&&M?x:r*x;o<d&&(o=d),i=n+C*o;var c=t.depth-g-(_?-1:1),h=u+w*c,f=u+w*(c+1),v=e.getLevelModel(t);if(v){var y=v.get("r0",!0),b=v.get("r",!0),T=v.get("radius",!0);null!=T&&(y=T[0],b=T[1]),null!=y&&(h=Go(y,a/2)),null!=b&&(f=Go(b,a/2))}t.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:h,r:f})}if(t.children&&t.children.length){var k=0;G(t.children,(function(e){k+=I(e,n+k)}))}return i-n}};if(_){var T=u,k=u+w,A=2*Math.PI;p.setLayout({angle:A,startAngle:h,endAngle:h+A,clockwise:S,cx:s,cy:l,r0:T,r:k})}I(f,h)}))}function YG(e,t){var n=e.children||[];e.children=$G(n,t),n.length&&G(e.children,(function(e){YG(e,t)}))}function $G(e,t){if(Q(t)){var n=W(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),W(n,(function(t){return e[t.index]}))}var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}function XG(e){var t={};function n(e,n,i){var r=e;while(r&&r.depth>1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&ee(o)&&(o=ti(o,(e.depth-1)/(i-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,e,i.root.height));var s=t.ensureUniqueItemVisual(r.dataIndex,"style");B(s,a)}))}))}function KG(e){e.registerChartView(qG),e.registerSeriesModel(UG),e.registerLayout(K(ZG,"sunburst")),e.registerProcessor(K(bk,"sunburst")),e.registerVisual(XG),VG(e)}var JG={color:"fill",borderColor:"stroke"},QG={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},eW=Ba(),tW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return vI(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=eW(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Ov);const nW=tW;function iW(e,t){return t=t||[0,0],W(["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function rW(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:X(iW,e)}}}function oW(e,t){return t=t||[0,0],W([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function aW(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:X(oW,e)}}}function sW(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function lW(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:X(sW,e)}}}function uW(e,t){return t=t||[0,0],W(["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=t[i],s=e[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function cW(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:X(uW,e)}}}function hW(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function dW(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Ie(e,"text")))}function pW(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},Ie(a,"text")&&(o.text=a.text),Ie(a,"rich")&&(o.rich=a.rich),Ie(a,"textFill")&&(o.fill=a.textFill),Ie(a,"textStroke")&&(o.stroke=a.textStroke),Ie(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Ie(a,"fontSize")&&(o.fontSize=a.fontSize),Ie(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Ie(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Ie(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Ie(a,"textPosition")&&(i.position=a.textPosition),Ie(a,"textOffset")&&(i.offset=a.textOffset),Ie(a,"textRotation")&&(i.rotation=a.textRotation),Ie(a,"textDistance")&&(i.distance=a.textDistance)}return fW(o,e),G(o.rich,(function(e){fW(e,e)})),{textConfig:i,textContent:r}}function fW(e,t){t&&(t.font=t.textFont||t.font,Ie(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Ie(t,"textAlign")&&(e.align=t.textAlign),Ie(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Ie(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Ie(t,"textWidth")&&(e.width=t.textWidth),Ie(t,"textHeight")&&(e.height=t.textHeight),Ie(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Ie(t,"textPadding")&&(e.padding=t.textPadding),Ie(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Ie(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Ie(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Ie(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Ie(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Ie(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Ie(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function gW(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";vW(i,t);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,G(t.rich,(function(e){vW(e,e)})),i}function vW(e,t){t&&(Ie(t,"fill")&&(e.textFill=t.fill),Ie(t,"stroke")&&(e.textStroke=t.fill),Ie(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Ie(t,"font")&&(e.font=t.font),Ie(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Ie(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Ie(t,"fontSize")&&(e.fontSize=t.fontSize),Ie(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Ie(t,"align")&&(e.textAlign=t.align),Ie(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Ie(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Ie(t,"width")&&(e.textWidth=t.width),Ie(t,"height")&&(e.textHeight=t.height),Ie(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Ie(t,"padding")&&(e.textPadding=t.padding),Ie(t,"borderColor")&&(e.textBorderColor=t.borderColor),Ie(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Ie(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Ie(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Ie(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Ie(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Ie(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Ie(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Ie(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Ie(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Ie(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var yW={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},mW=Y(yW),xW=(U(Ur,(function(e,t){return e[t]=1,e}),{}),Ur.join(", "),["","style","shape","extra"]),_W=Ba();function bW(e,t,n,i,r){var o=e+"Animation",a=Yc(e,i,r)||{},s=_W(t).userDuring;return a.duration>0&&(a.during=s?X(LW,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),B(a,n[o]),a}function wW(e,t,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=_W(e),u=t.style;l.userDuring=t.during;var c={},h={};if(EW(e,t,h),OW("shape",t,h),OW("extra",t,h),!o&&s&&(RW(e,t,c),PW("shape",e,t,c),PW("extra",e,t,c),NW(e,t,u,c)),h.style=u,IW(e,h,a),kW(e,t),s)if(o){var d={};G(xW,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),B(e?d[e]:d,n.enterFrom))}));var p=bW("enter",e,t,n,r);p.duration>0&&e.animateFrom(d,p)}else TW(e,t,r||0,n,c);SW(e,t),u?e.dirty():e.markRedraw()}function SW(e,t){for(var n=_W(e).leaveToProps,i=0;i<xW.length;i++){var r=xW[i],o=r?t[r]:t;o&&o.leaveTo&&(n||(n=_W(e).leaveToProps={}),r&&(n[r]=n[r]||{}),B(r?n[r]:n,o.leaveTo))}}function MW(e,t,n,i){if(e){var r=e.parent,o=_W(e).leaveToProps;if(o){var a=bW("update",e,t,n,0);a.done=function(){r.remove(e),i&&i()},e.animateTo(o,a)}else r.remove(e),i&&i()}}function CW(e){return"all"===e}function IW(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var r=e.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}function TW(e,t,n,i,r){if(r){var o=bW("update",e,t,i,n);o.duration>0&&e.animateFrom(r,o)}}function kW(e,t){Ie(t,"silent")&&(e.silent=t.silent),Ie(t,"ignore")&&(e.ignore=t.ignore),e instanceof qs&&Ie(t,"invisible")&&(e.invisible=t.invisible),e instanceof $l&&Ie(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var AW={},DW={setTransform:function(e,t){return AW.el[e]=t,this},getTransform:function(e){return AW.el[e]},setShape:function(e,t){var n=AW.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=AW.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=AW.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=AW.el.style;if(t)return t[e]},setExtra:function(e,t){var n=AW.el.extra||(AW.el.extra={});return n[e]=t,this},getExtra:function(e){var t=AW.el.extra;if(t)return t[e]}};function LW(){var e=this,t=e.el;if(t){var n=_W(t).userDuring,i=e.userDuring;n===i?(AW.el=t,i(DW)):e.el=e.userDuring=null}}function PW(e,t,n,i){var r=n[e];if(r){var o,a=t[e];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[e]={}),CW(l))B(o,a);else for(var u=ga(l),c=0;c<u.length;c++){var h=u[c],d=a[h];o[h]=d}else if(CW(s)||z(s,e)>=0){!o&&(o=i[e]={});var p=Y(a);for(c=0;c<p.length;c++){h=p[c],d=a[h];BW(r[h],d)&&(o[h]=d)}}}}}function OW(e,t,n){var i=t[e];if(i)for(var r=n[e]={},o=Y(i),a=0;a<o.length;a++){var s=o[a];r[s]=Bi(i[s])}}function RW(e,t,n){for(var i=t.transition,r=CW(i)?Ur:ga(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];0,n[a]=s}}}function EW(e,t,n){for(var i=0;i<mW.length;i++){var r=mW[i],o=yW[r],a=t[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<Ur.length;i++){var s=Ur[i];null!=t[s]&&(n[s]=t[s])}}function NW(e,t,n,i){if(n){var r,o=e.style;if(o){var a=n.transition,s=t.transition;if(a&&!CW(a)){var l=ga(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=l[u],h=o[c];r[c]=h}}else if(e.getAnimationStyleProps&&(CW(s)||CW(a)||z(s,"style")>=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!r&&(r=i.style={});var f=Y(n);for(u=0;u<f.length;u++){c=f[u];if(p[c]){h=o[c];r[c]=h}}}}}}}function BW(e,t){return q(e)?e!==t:null!=e&&isFinite(e)}var FW=Ba(),zW=["percent","easing","shape","style","extra"];function VW(e){e.stopAnimation("keyframe"),e.attr(FW(e))}function HW(e,t,n){if(n.isAnimationEnabled()&&t)if(J(t))G(t,(function(t){HW(e,t,n)}));else{var i=t.keyframes,r=t.duration;if(n&&null==r){var o=Yc("enter",n,0);r=o&&o.duration}if(i&&r){var a=FW(e);G(xW,(function(n){if(!n||e[n]){var o;i.sort((function(e,t){return e.percent-t.percent})),G(i,(function(i){var s=e.animators,l=n?i[n]:i;if(l){var u=Y(l);if(n||(u=j(u,(function(e){return z(zW,e)<0}))),u.length){o||(o=e.animate(n,t.loop,!0),o.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;G(u,(function(t){h[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(r*i.percent,l,u,i.easing)}}})),o&&o.delay(t.delay||0).duration(r).start(t.easing)}}))}}}var qW="emphasis",GW="normal",WW="blur",UW="select",jW=[GW,qW,WW,UW],ZW={normal:["itemStyle"],emphasis:[qW,"itemStyle"],blur:[WW,"itemStyle"],select:[UW,"itemStyle"]},YW={normal:["label"],emphasis:[qW,"label"],blur:[WW,"label"],select:[UW,"label"]},$W=["x","y"],XW="e\0\0",KW={normal:{},emphasis:{},blur:{},select:{}},JW={cartesian2d:rW,geo:aW,single:lW,polar:cW,calendar:hW};function QW(e){return e instanceof $l}function eU(e){return e instanceof qs}function tU(e,t){t.copyTransform(e),eU(t)&&eU(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,QW(t)&&QW(e)&&t.setShape(e.shape))}var nU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._data,o=e.getData(),a=this.group,s=uU(e,o,t,n);r||a.removeAll(),o.diff(r).add((function(t){hU(n,null,t,s(t,i),e,a,o)})).remove((function(t){var n=r.getItemGraphicEl(t);MW(n,eW(n).option,e)})).update((function(t,l){var u=r.getItemGraphicEl(l);hU(n,u,t,s(t,i),e,a,o)})).execute();var l=e.get("clip",!0)?ZI(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,r){var o=t.getData(),a=uU(t,o,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=hU(null,null,u,a(u,r),t,this.group,o);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){Zm(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var r=t.element;if(null==r||n.name===r)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===r)return!0;return!1},t.type="custom",t}(nx);const iU=nU;function rU(e){var t,n=e.type;if("path"===n){var i=e.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=MU(i);t=Mm(o,null,r,i.layout||"center"),eW(t).customPathData=o}else if("image"===n)t=new iu({}),eW(t).customImagePath=e.style.image;else if("text"===n)t=new Du({});else if("group"===n)t=new Lo;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=Sm(n);if(!a){var s="";0,vg(s)}t=new a}return eW(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function oU(e,t,n,i,r,o,a){VW(t);var s=r&&r.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=$W);var l=i&&i.style;if(l){if("text"===t.type){var u=l;Ie(u,"textFill")&&(u.fill=u.textFill),Ie(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=QW(t)?l.decal:null;e&&h&&(h.dirty=!0,c=ob(h,e)),l.__decalPattern=c}if(eU(t)&&l){c=l.__decalPattern;c&&(l.decal=c)}wW(t,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),HW(t,i.keyframeAnimation,o)}function aU(e,t,n,i,r){var o=t.isGroup?null:t,a=r&&r[e].cfg;if(o){var s=o.ensureState(e);if(!1===i){var l=o.getState(e);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),pc(o)}}function sU(e,t,n){if(!e.isGroup){var i=e,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=t.z2;null!=a&&(i.z2=a||0);for(var s=0;s<jW.length;s++)lU(i,t,jW[s])}}function lU(e,t,n){var i,r=n===GW,o=r?t:yU(t,n),a=o?o.z2:null;null!=a&&(i=r?e:e.ensureState(n),i.z2=a||0)}function uU(e,t,n,i){var r=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):JW[o.type](o));for(var s,l,u=F({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:_,style:w,ordinalRawValue:b,styleEmphasis:S,visual:I,barLayout:T,currentSeriesIndices:k,font:A},a.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:cU(e.getData())},h={},d={},p={},f={},g=0;g<jW.length;g++){var v=jW[g];p[v]=e.getModel(ZW[v]),f[v]=e.getModel(YW[v])}function y(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function m(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=y(e).getModel(ZW[n])):y(e).getModel(ZW[n]):p[n]}function x(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=y(e).getModel(YW[n])):y(e).getModel(YW[n]):f[n]}return function(e,n){return s=e,l=null,h={},d={},r&&r(F({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),u)};function _(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)}function b(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var r=t.getDimensionIndex(e);return r>=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function w(n,i){null==i&&(i=s);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=m(i,GW).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:ee(o)?o:"#000"},c=x(i,GW),h=uh(c,null,u,!1,!0);h.text=c.getShallow("show")?de(e.getFormattedLabel(i,GW),xI(t,i)):null;var d=ch(c,u,!1);return C(n,l),l=gW(l,h,d),n&&M(l,n),l.legacy=!0,l}function S(n,i){null==i&&(i=s);var r=m(i,qW).getItemStyle(),o=x(i,qW),a=uh(o,null,null,!0,!0);a.text=o.getShallow("show")?pe(e.getFormattedLabel(i,qW),e.getFormattedLabel(i,GW),xI(t,i)):null;var l=ch(o,null,!0);return C(n,r),r=gW(r,a,l),n&&M(r,n),r.legacy=!0,r}function M(e,t){for(var n in t)Ie(t,n)&&(e[n]=t[n])}function C(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function I(e,n){if(null==n&&(n=s),Ie(JG,e)){var i=t.getItemVisual(n,"style");return i?i[JG[e]]:null}if(Ie(QG,e))return t.getItemVisual(n,e)}function T(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return wT(F({axis:t},e))}}function k(){return n.getCurrentSeriesIndices()}function A(e){return yh(e,n)}}function cU(e){var t={};return G(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=t[r]=t[r]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function hU(e,t,n,i,r,o,a){if(i){var s=dU(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Ec(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function dU(e,t,n,i,r,o){var a=-1,s=t;t&&pU(t,i,r)&&(a=z(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=rU(i),s&&tU(s,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),KW.normal.cfg=KW.normal.conOpt=KW.emphasis.cfg=KW.emphasis.conOpt=KW.blur.cfg=KW.blur.conOpt=KW.select.cfg=KW.select.conOpt=null,KW.isLegacy=!1,gU(u,n,i,r,l,KW),fU(u,n,i,r,l),oU(e,u,n,i,KW,r,l),Ie(i,"info")&&(eW(u).info=i.info);for(var c=0;c<jW.length;c++){var h=jW[c];if(h!==GW){var d=yU(i,h),p=mU(i,d,h);aU(h,u,d,p,KW)}}return sU(u,i,r),"group"===i.type&&xU(e,u,n,i,r),a>=0?o.replaceAt(u,a):o.add(u),u}function pU(e,t,n){var i=eW(e),r=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&CU(o)&&MU(o)!==i.customPathData||"image"===r&&Ie(a,"image")&&a.image!==i.customImagePath}function fU(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&pU(a,o,i)&&(a=null),a||(a=rU(o),e.setClipPath(a)),oU(null,a,t,o,null,i,r)}}function gU(e,t,n,i,r,o){if(!e.isGroup){vU(n,null,o),vU(n,qW,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=rU(a),e.setTextContent(c)),oU(null,c,t,a,null,i,r);for(var h=a&&a.style,d=0;d<jW.length;d++){var p=jW[d];if(p!==GW){var f=o[p].conOpt;aU(p,c,f,mU(a,f,p),null)}}h?c.dirty():c.markRedraw()}}}}function vU(e,t,n){var i=t?yU(e,t):e,r=t?mU(e,i,qW):e.style,o=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?yU(s,t):s:null;if(r&&(n.isLegacy||dW(r,o,!!a,!!l))){n.isLegacy=!0;var u=pW(r,o,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var h=t?n[t]:n.normal;h.cfg=a,h.conOpt=l}function yU(e,t){return t?e?e[t]:null:e}function mU(e,t,n){var i=t&&t.style;return null==i&&n===qW&&e&&(i=e.styleEmphasis),i}function xU(e,t,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u)if(l)_U({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:t});else{u&&t.removeAll();for(var c=0;c<a;c++)o[c]&&dU(e,t.childAt(c),n,o[c],r,t);for(var h=t.childCount()-1;h>=c;h--){var d=t.childAt(h);MW(d,eW(t).option,r)}}}function _U(e){new wC(e.oldChildren,e.newChildren,bU,bU,e).add(wU).update(wU).remove(SU).execute()}function bU(e,t){var n=e&&e.name;return null!=n?n:XW+t}function wU(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;dU(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function SU(e){var t=this.context,n=t.oldChildren[e];MW(n,eW(n).option,t.seriesModel)}function MU(e){return e&&(e.pathData||e.d)}function CU(e){return e&&(Ie(e,"pathData")||Ie(e,"d"))}function IU(e){e.registerChartView(iU),e.registerSeriesModel(nW)}var TU=Ba(),kU=R,AU=X,DU=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var h=K(LU,t,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,t)}else a=this._group=new Lo,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);EU(a,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=xL(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,r){var o=t.pointer;if(o){var a=TU(e).pointerEl=new i[o.type](kU(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=TU(e).labelEl=new Du(kU(t.label));e.add(r),OU(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=TU(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=TU(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),OU(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=Vm(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){bt(e.event)},onmousedown:AU(this._onHandleDragMove,this,0,0),drift:AU(this._onHandleDragMove,this),ondragend:AU(this._onHandleDragEnd,this)}),i.add(r)),EU(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");J(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,sx(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){LU(this._axisPointerModel,!t&&this._moveAnimation,this._handle,RU(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(RU(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(RU(i)),TU(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),lx(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function LU(e,t,n,i){PU(TU(n).lastProp,i)||(TU(n).lastProp=i,t?Xc(n,i,e):(n.stopAnimation(),n.attr(i)))}function PU(e,t){if(ie(e)&&ie(t)){var n=!0;return G(t,(function(t,i){n=n&&PU(e[i],t)})),!!n}return e===t}function OU(e,t){e[t.get(["label","show"])?"show":"hide"]()}function RU(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function EU(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}const NU=DU;function BU(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function FU(e,t,n,i,r){var o=n.get("value"),a=VU(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Ld(s.get("padding")||0),u=s.getFont(),c=uo(a,u),h=r.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=r.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),zU(h,d,p,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:uh(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function zU(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function VU(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var s={value:sD(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};G(i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&s.seriesData.push(r)})),ee(a)?o=a.replace("{value}",o):Q(a)&&(o=a(s))}return o}function HU(e,t,n){var i=kr();return Or(i,i,n.rotation),Pr(i,i,n.position),Om([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function qU(e,t,n,i,r,o){var a=hL.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),FU(t,i,r,o,{position:HU(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function GU(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function WU(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function UU(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var jU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=ZU(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=BU(i),h=YU[s](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=qD(a.model,n);qU(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=qD(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=HU(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=ZU(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[l]}},t}(NU);function ZU(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var YU={line:function(e,t,n){var i=GU([t,n[0]],[t,n[1]],$U(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:WU([t-i/2,n[0]],[i,r],$U(e))}}};function $U(e){return"x"===e.dim?0:1}const XU=jU;var KU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!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}(op);const JU=KU;var QU=Ba(),ej=G;function tj(e,t,n){if(!c.node){var i=t.getZr();QU(i).records||(QU(i).records={}),nj(i,t);var r=QU(i).records[e]||(QU(i).records[e]={});r.handler=n}}function nj(e,t){function n(n,i){e.on(n,(function(n){var r=aj(t);ej(QU(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),ij(r.pendings,t)}))}QU(e).initialized||(QU(e).initialized=!0,n("click",K(oj,"click")),n("mousemove",K(oj,"mousemove")),n("globalout",rj))}function ij(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function rj(e,t,n){e.handler("leave",null,n)}function oj(e,t,n,i){t.handler(e,n,i)}function aj(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function sj(e,t){if(!c.node){var n=t.getZr(),i=(QU(n).records||{})[e];i&&(QU(n).records[e]=null)}}var lj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";tj("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){sj("axisPointer",t)},t.prototype.dispose=function(e,t){sj("axisPointer",t)},t.type="axisPointer",t}(Ev);const uj=lj;function cj(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Na(o,e);if(null==a||a<0||J(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,p="x"===h||"radius"===h?1:0,f=o.mapDimension(d),g=[];g[p]=o.get(f,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(W(l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}var hj=Ba();function dj(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||X(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){wj(r)&&(r=cj({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=wj(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||wj(r),d={},p={},f={list:[],map:{}},g={showPointer:K(gj,p),showTooltip:K(vj,f)};G(s.coordSysMap,(function(e,t){var n=l||e.containPoint(r);G(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=_j(u,e);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&pj(e,a,g,!1,d)}}))}));var v={};return G(c,(function(e,t){var n=e.linkGroup;n&&!p[t]&&G(n.axesInfo,(function(t,i){var r=p[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,bj(t),bj(e)))),v[e.key]=o}}))})),G(v,(function(e,t){pj(c[t],e,g,!0,d)})),yj(p,c,d),mj(f,r,e,a),xj(c,a,n),d}}function pj(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=fj(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&B(r,s[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function fj(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return G(t.seriesModels,(function(t,l){var u,c,h=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(h,e,n);c=d.dataIndices,u=d.nestestValue}else{if(c=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null),!c.length)return;u=t.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=e-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,r=u,o.length=0),G(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}function gj(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function vj(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=wL(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:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function yj(e,t,n){var i=n.axesInfo=[];G(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function mj(e,t,n,i){if(!wj(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function xj(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=hj(i)[r]||{},a=hj(i)[r]={};G(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&G(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];G(o,(function(e,t){!a[t]&&l.push(e)})),G(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function _j(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function bj(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function wj(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function Sj(e){CL.registerAxisPointerClass("CartesianAxisPointer",XU),e.registerComponentModel(JU),e.registerComponentView(uj),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!J(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dL(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},dj)}function Mj(e){jw(BL),jw(Sj)}var Cj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(t),c=i.get("type");if(c&&"none"!==c){var h=BU(i),d=Tj[c](o,a,u,l);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),f=Ij(t,n,i,a,p);FU(e,n,i,r,f)},t}(NU);function Ij(e,t,n,i,r){var o=t.axis,a=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=kr();Or(d,d,s),Pr(d,d,[i.cx,i.cy]),l=Om([a,-r],d);var p=t.getModel("axisLabel").get("rotate")||0,f=hL.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,a]);var v=i.cx,y=i.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-y)/g<.3?"middle":l[1]>y?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var Tj={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:GU(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:UU(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:UU(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}};const kj=Cj;var Aj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(op);const Dj=Aj;var Lj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ha).models[0]},t.type="polarAxis",t}(op);H(Lj,Xk);var Pj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="angleAxis",t}(Lj),Oj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="radiusAxis",t}(Lj),Rj=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return o(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(zD);Rj.prototype.dataToRadius=zD.prototype.dataToCoord,Rj.prototype.radiusToData=zD.prototype.coordToData;const Ej=Rj;var Nj=Ba(),Bj=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return o(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=uo(null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=Nj(e.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-r)<=1&&p>h?h=p:(d.lastTickCount=r,d.lastAutoInterval=h),h},t}(zD);Bj.prototype.dataToAngle=zD.prototype.dataToCoord,Bj.prototype.angleToData=zD.prototype.coordToData;const Fj=Bj;var zj=["radius","angle"],Vj=function(){function e(e){this.dimensions=zj,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Ej,this._angleAxis=new Fj,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=l<o?1:-1;while(l<o||l>a)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,r=-Math.sin(n)*t+this.cy;return[i,r]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},e.prototype.convertToPixel=function(e,t,n){var i=Hj(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Hj(t);return i===this?this.pointToData(n):null},e}();function Hj(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const qj=Vj;function Gj(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=Go(i[0],r),e.cy=Go(i[1],o);var a=e.getRadiusAxis(),s=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:J(l)||(l=[0,l]);var u=[Go(l[0],s),Go(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function Wj(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();G(dD(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),G(dD(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),iD(i.scale,i.model),iD(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function Uj(e){return"angleAxis"===e.mainType}function jj(e,t){if(e.type=t.get("type"),e.scale=rD(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),Uj(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var Zj={dimensions:zj,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new qj(i+"");r.update=Wj;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");jj(o,s),jj(a,l),Gj(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",Ha).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}};const Yj=Zj;var $j=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Xj(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function Kj(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Jj(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var Qj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return o(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=W(n.getViewLabels(),(function(e){e=R(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));Jj(s),Jj(o),G($j,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||eZ[t](this.group,e,i,o,a,r,s)}),this)}},t.type="angleAxis",t}(CL),eZ={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=Kj(n),u=l?0:1;a=0===o[u]?new ly({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Py({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Kj(n)],u=W(i,(function(e){return new Wy({shape:Xj(n,[l,l+s],e.coord)})}));e.add(Tm(u,{style:F(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Kj(n)],c=[],h=0;h<r.length;h++)for(var d=0;d<r[h].length;d++)c.push(new Wy({shape:Xj(n,[u,u+l],r[h][d].coord)}));e.add(Tm(c,{style:F(s.getModel("lineStyle").getLineStyle(),F(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,r,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");G(a,(function(i,r){var a=l,h=i.tickValue,d=o[Kj(n)],p=n.coordToPoint([d+u,i.coord]),f=n.cx,g=n.cy,v=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",y=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var m=s[h];ie(m)&&m.textStyle&&(a=new Oh(m.textStyle,l,l.ecModel))}var x=new Du({silent:hL.isLabelSilent(t),style:uh(a,{x:p[0],y:p[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:y})});if(e.add(x),c){var _=hL.makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,Lu(x).eventData=_}}),this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<i.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Wy({shape:Xj(n,o,i[h].coord)}))}for(h=0;h<c.length;h++)e.add(Tm(c[h],{style:F({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<r.length;u++)for(var c=0;c<r[u].length;c++)l.push(new Wy({shape:Xj(n,o,r[u][c].coord)}));e.add(Tm(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,r,o){if(i.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-i[0].coord*h,p=Math.min(o[0],o[1]),f=Math.max(o[0],o[1]),g=t.get("clockwise"),v=1,y=i.length;v<=y;v++){var m=v===y?i[0].coord:i[v].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new Ay({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:d,endAngle:-m*h,clockwise:g},silent:!0})),d=-m*h}for(v=0;v<c.length;v++)e.add(Tm(c[v],{style:F({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};const tZ=Qj;var nZ=["axisLine","axisTickLabel","axisName"],iZ=["splitLine","splitArea","minorSplitLine"],rZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return o(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new Lo;this.group.add(i);var r=e.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=a.getExtent()[0],c=r.getExtent(),h=aZ(o,e,u),d=new hL(e,h);G(nZ,d.add,d),i.add(d.getGroup()),Bm(n,i,e),G(iZ,(function(t){e.get([t,"show"])&&!r.scale.isBlank()&&oZ[t](this.group,e,o,u,c,s,l)}),this)}},t.type="radiusAxis",t}(CL),oZ={splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<o.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new ly({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[h].coord,0)}}))}for(h=0;h<c.length;h++)e.add(Tm(c[h],{style:F({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,r,o,a){if(a.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)u.push(new ly({shape:{cx:n.cx,cy:n.cy,r:a[c][h].coord}}));e.add(Tm(u,{style:F({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,r,o){if(o.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=o[0].coord,d=1;d<o.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Ay({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[d].coord}for(d=0;d<c.length;d++)e.add(Tm(c[d],{style:F({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function aZ(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const sZ=rZ;function lZ(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function uZ(e,t){return t.dim+e.model.componentIndex}function cZ(e,t,n){var i={},r=hZ(j(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=uZ(n,o),s=lZ(e),l=r[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),d=e.coordinateSystem.cx,p=e.coordinateSystem.cy,f=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var v=t.mapDimension(h.dim),y=t.mapDimension(o.dim),m=uI(t,v),x="radius"!==o.dim||!e.get("roundCap",!0),_=h.dataToCoord(0),b=0,w=t.count();b<w;b++){var S=t.get(v,b),M=t.get(y,b),C=S>=0?"p":"n",I=_;m&&(i[s][M]||(i[s][M]={p:_,n:_}),I=i[s][M][C]);var T=void 0,k=void 0,A=void 0,D=void 0;if("radius"===h.dim){var L=h.dataToCoord(S)-_,P=o.dataToCoord(M);Math.abs(L)<f&&(L=(L<0?-1:1)*f),T=I,k=I+L,A=P-u,D=A-c,m&&(i[s][M][C]=k)}else{var O=h.dataToCoord(S,x)-_,R=o.dataToCoord(M);Math.abs(O)<g&&(O=(O<0?-1:1)*g),T=R+u,k=T+c,A=I,D=I+O,m&&(i[s][M][C]=D)}t.setItemLayout(b,{cx:d,cy:p,r0:T,r:k,startAngle:-A*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:A>=D})}}}))}function hZ(e){var t={};G(e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),a=uZ(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var h=lZ(e);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=Go(e.get("barWidth"),l),p=Go(e.get("barMaxWidth"),l),f=e.get("barGap"),g=e.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),p&&(c[h].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return G(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=Go(e.categoryGap,r),a=Go(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),G(i,(function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;G(i,(function(e,t){e.width||(e.width=u),c=e,h+=e.width*(1+a)})),c&&(h-=c.width*a);var d=-h/2;G(i,(function(e,i){n[t][i]=n[t][i]||{offset:d,width:e.width},d+=e.width*(1+a)}))})),n}const dZ=cZ;var pZ={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},fZ={splitNumber:5},gZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="polar",t}(Ev);function vZ(e){jw(Sj),CL.registerAxisPointerClass("PolarAxisPointer",kj),e.registerCoordinateSystem("polar",Yj),e.registerComponentModel(Dj),e.registerComponentView(gZ),uA(e,"angle",Pj,pZ),uA(e,"radius",Oj,fZ),e.registerComponentView(tZ),e.registerComponentView(sZ),e.registerLayout(K(dZ,"bar"))}function yZ(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};r.rotation=Math.PI/2*c[a];var h={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=h[o],e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),he(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var d=t.rotate;return null==d&&(d=e.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-d:d,r.z2=1,r}var mZ=["axisLine","axisTickLabel","axisName"],xZ=["splitArea","splitLine"],_Z=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return o(t,e),t.prototype.render=function(t,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Lo;var s=yZ(t),l=new hL(t,s);G(mZ,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),G(xZ,(function(e){t.get([e,"show"])&&bZ[e](this,this.group,this._axisGroup,t)}),this),Bm(a,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)},t.prototype.remove=function(){kL(this)},t.type="singleAxis",t}(CL),bZ={splitLine:function(e,t,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=[],h=0,d=r.getTicksCoords({tickModel:o}),p=[],f=[],g=0;g<d.length;++g){var v=r.toGlobalCoord(d[g].coord);u?(p[0]=v,p[1]=l.y,f[0]=v,f[1]=l.y+l.height):(p[0]=l.x,p[1]=v,f[0]=l.x+l.width,f[1]=v);var y=h++%s.length;c[y]=c[y]||[],c[y].push(new Wy({subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:f[0],y2:f[1]},silent:!0}))}var m=a.getLineStyle(["color"]);for(g=0;g<c.length;++g)t.add(Tm(c[g],{style:F({stroke:s[g%s.length]},m),silent:!0}))}},splitArea:function(e,t,n,i){TL(e,n,i,i)}};const wZ=_Z;var SZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.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}(op);H(SZ,Xk.prototype);const MZ=SZ;var CZ=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return o(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(zD);const IZ=CZ;var TZ=["single"],kZ=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=TZ,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,r=new IZ(i,rD(e),[0,0],e.get("type"),e.get("position")),o="category"===r.type;r.onBand=o&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),e.axis=r,r.model=e,r.coordinateSystem=this,this._axis=r},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();G(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),iD(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=$d({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.reverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=AZ(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=AZ(t);return i===this?this.pointToData(n):null},e}();function AZ(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const DZ=kZ;function LZ(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new DZ(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Ha).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var PZ={create:LZ,dimensions:TZ};const OZ=PZ;var RZ=["x","y"],EZ=["width","height"],NZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=zZ(a,1-FZ(o)),l=a.dataToPoint(t)[0],u=i.get("type");if(u&&"none"!==u){var c=BU(i),h=BZ[u](o,l,s);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=yZ(n);qU(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=yZ(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=HU(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=FZ(r),s=zZ(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=zZ(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(NU),BZ={line:function(e,t,n){var i=GU([t,n[0]],[t,n[1]],FZ(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:WU([t-i/2,n[0]],[i,r],FZ(e))}}};function FZ(e){return e.isHorizontal()?0:1}function zZ(e,t){var n=e.getRect();return[n[RZ[t]],n[RZ[t]]+n[EZ[t]]]}const VZ=NZ;var HZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="single",t}(Ev);function qZ(e){jw(Sj),CL.registerAxisPointerClass("SingleAxisPointer",VZ),e.registerComponentView(HZ),e.registerComponentView(wZ),e.registerComponentModel(MZ),uA(e,"single",MZ,MZ.defaultOption),e.registerCoordinateSystem("single",OZ)}var GZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t,n,i){var r=ep(t);e.prototype.init.apply(this,arguments),WZ(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),WZ(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(op);function WZ(e,t){var n,i=e.cellSize;n=J(i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=W([0,1],(function(e){return Kd(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Qd(e,t,{type:"box",ignoreSize:r})}const UZ=GZ;var jZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new du({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new Vy({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return ee(e)&&e?zd(e,t):Q(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var p=r.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(p,f),v=new Du({z2:30,style:uh(r,{text:g})});v.attr(this._yearTextPositionControl(v,h[a],n,a,o)),i.add(v)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!ee(o)||(o&&(t=$h(o)||t),o=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,p=0;p<u[c].length-1;p++){var f=u[c][p].slice(),g=this._firstDayOfMonth[p];if(d){var v=this._firstDayPoints[p];f[h]=(v[h]+u[0][p+1][h])/2}var y=r.get("formatter"),m=o[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:m},_=this._formatterLabel(y,x),b=new Du({z2:30,style:B(uh(r,{text:_}),this._monthTextPositionControl(f,d,n,s,a))});i.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,r){var o="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,i,r){var o=e.getModel("dayLabel");if(o.get("show")){var a=e.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||ee(l)){l&&(t=$h(l)||t);var h=t.get(["time","dayOfWeekShort"]);l=h||W(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}))}var d=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];u=Go(u,Math.min(p[1],p[0])),"start"===s&&(d=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var f=0;f<7;f++){var g=a.getNextNDay(d,f),v=a.dataToRect([g.time],!1).center,y=f;y=Math.abs((f+c)%7);var m=new Du({z2:30,style:B(uh(o,{text:l[y]}),this._weekTextPositionControl(v,i,s,u,p))});r.add(m)}}},t.type="calendar",t}(Ev);const ZZ=jZ;var YZ=864e5,$Z=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=ta(e);var t=e.getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,r=e.getDate(),o=r<10?"0"+r:""+r,a=e.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:o,day:a,time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];G([0,1],(function(e){u(r,e)&&(o[i[e]]=r[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=$d(o,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}G([0,1],(function(e){u(r,e)||(r[e]=l[i[e]]/a[e])})),this._sw=r[0],this._sh=r[1]},e.prototype.dataToPoint=function(e,t){J(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,r=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+YZ))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=XZ(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=XZ(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(J(t)&&1===t.length&&(t=t[0]),J(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/YZ)-Math.floor(n[0].time/YZ)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function XZ(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}const KZ=$Z;function JZ(e){e.registerComponentModel(UZ),e.registerComponentView(ZZ),e.registerCoordinateSystem("calendar",KZ)}function QZ(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function eY(e,t){var n;return G(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function tY(e,t,n){var i=B({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(E(r,i,!0),Qd(r,i,{ignoreSize:!0}),tp(n,r),rY(n,r),rY(n,r,"shape"),rY(n,r,"style"),rY(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}var nY=["transition","enterFrom","leaveTo"],iY=nY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function rY(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?nY:iY,r=0;r<i.length;r++){var o=i[r];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}function oY(e,t){if(e&&(e.hv=t.hv=[eY(t,["left","right"]),eY(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var aY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return o(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,r=n.elements=t?[]:n.elements,o=[];this._flatten(i,o,null);var a=_a(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];G(a,(function(e,t){var n=e.newOption;n&&(s.push(n),QZ(e,n),tY(r,t,n),oY(r[t],n))}),this),n.elements=j(r,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){G(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(op),sY={path:null,compoundPath:null,group:Lo,image:iu,text:Du},lY=Ba(),uY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){this._elMap=we()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,r=e.get("z"),o=e.get("zlevel");G(t,(function(t){var a=Aa(t.id,null),s=null!=a?n.get(a):null,l=Aa(t.parentId,null),u=null!=l?n.get(l):i,c=t.type,h=t.style;"text"===c&&h&&t.hv&&t.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=t.textContent,p=t.textConfig;if(h&&dW(h,c,!!p,!!d)){var f=pW(h,c,!0);!p&&f.textConfig&&(p=t.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=fY(t);var v=t.$action||"merge",y="merge"===v,m="replace"===v;if(y){var x=!s,_=s;x?_=hY(a,u,t.type,n):(_&&(lY(_).isNew=!1),VW(_)),_&&(wW(_,g,e,{isInit:x}),pY(_,t,r,o))}else if(m){dY(s,t,n,e);var b=hY(a,u,t.type,n);b&&(wW(b,g,e,{isInit:!0}),pY(b,t,r,o))}else"remove"===v&&(SW(s,t),dY(s,t,n,e));var w=n.get(a);if(w&&d)if(y){var S=w.getTextContent();S?S.attr(d):w.setTextContent(new Du(d))}else m&&w.setTextContent(new Du(d));if(w){var M=t.clipPath;if(M){var C=M.type,I=void 0;x=!1;if(y){var T=w.getClipPath();x=!T||lY(T).type!==C,I=x?cY(C):T}else m&&(x=!0,I=cY(C));w.setClipPath(I),wW(I,M,e,{isInit:x}),HW(I,M.keyframeAnimation,e)}var k=lY(w);w.setTextConfig(p),k.option=t,gY(w,e,t),Um({el:w,componentModel:e,itemName:w.name,itemTooltipOption:t.tooltip}),HW(w,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,o=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=Aa(u.id,null),h=null!=c?r.get(c):null;if(h&&h.isGroup){var d=h.parent,p=d===i,f=lY(h),g=lY(d);f.width=Go(f.option.width,p?o:g.width)||0,f.height=Go(f.option.height,p?a:g.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=Aa(u.id,null),h=null!=c?r.get(c):null;if(h){d=h.parent,g=lY(d);var v=d===i?{width:o,height:a}:{width:g.width,height:g.height},y={},m=Xd(h,u,v,null,{hv:u.hv,boundingMode:u.bounding},y);if(!lY(h).isNew&&m){for(var x=u.transition,_={},b=0;b<s.length;b++){var w=s[b],S=y[w];x&&(CW(x)||z(x,w)>=0)?_[w]=S:h[w]=S}Xc(h,_,e,0)}else h.attr(y)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){dY(n,lY(n).option,t,e._lastGraphicModel)})),this._elMap=we()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ev);function cY(e){var t=Ie(sY,e)?sY[e]:Sm(e);var n=new t({});return lY(n).type=e,n}function hY(e,t,n,i){var r=cY(n);return t.add(r),i.set(e,r),lY(r).id=e,lY(r).isNew=!0,r}function dY(e,t,n,i){var r=e&&e.parent;r&&("group"===e.type&&e.traverse((function(e){dY(e,t,n,i)})),MW(e,t,i),n.removeKey(lY(e).id))}function pY(e,t,n,i){e.isGroup||G([["cursor",qs.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];Ie(t,i)?e[i]=de(t[i],n[1]):null==e[i]&&(e[i]=n[1])})),G(Y(t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=Q(i)?i:null}})),Ie(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function fY(e){return e=B({},e),G(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Wd),(function(t){delete e[t]})),e}function gY(e,t,n){var i=Lu(e).eventData;e.silent||e.ignore||i||(i=Lu(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function vY(e){e.registerComponentModel(aY),e.registerComponentView(uY),e.registerPreprocessor((function(e){var t=e.graphic;J(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var yY=["x","y","radius","angle","single"],mY=["cartesian2d","polar","singleAxis"];function xY(e){var t=e.get("coordinateSystem");return z(mY,t)>=0}function _Y(e){return e+"Axis"}function bY(e,t){var n,i=we(),r=[],o=we();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),r.push(e),u(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}function u(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return r}function wY(e){var t=e.ecModel,n={infoList:[],infoMap:we()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(_Y(e),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var SY=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),MY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return o(t,e),t.prototype.init=function(e,t,n){var i=CY(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=CY(e);E(this.option,e,!0),E(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;G([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=we(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return G(yY,(function(n){var i=this.getReferringComponents(_Y(n),qa);if(i.specified){t=!0;var r=new SY;G(i.models,(function(e){r.add(e.componentIndex)})),e.set(n,r)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var r=t[0];if(r){var o=new SY;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Ha).models[0];a&&G(t,(function(e){r.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",Ha).models[0]&&o.add(e.componentIndex)}))}}}i&&G(yY,(function(t){if(i){var r=n.findComponents({mainType:_Y(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new SY;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");G([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(_Y(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){G(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(_Y(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;G([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;G(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(op);function CY(e){var t={};return G(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}const IY=MY;var TY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.select",t}(IY);const kY=TY;var AY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(Ev);const DY=AY;var LY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.select",t}(DY);const PY=LY;var OY=G,RY=Uo,EY=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(xY(t)){var n=_Y(this._dimName),i=t.getReferringComponents(n,Ha).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return R(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];OY(["start","end"],(function(i,u){var c=e[i],h=e[i+"Value"];"percent"===o[u]?(null==c&&(c=a[u]),h=r.parse(qo(c,a,n))):(t=!0,h=null==h?n[u]:r.parse(h),c=qo(h,n,a)),l[u]=h,s[u]=c})),RY(l),RY(s);var u=this._minMaxSpan;function c(e,t,n,i,o){var a=o?"Span":"ValueSpan";rz(0,e,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)t[s]=qo(e[s],n,i,!0),o&&(t[s]=r.parse(t[s]))}return t?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=NY(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=e.get("filterMode"),o=this._valueWindow;"none"!==r&&OY(i,(function(e){var t=e.getData(),i=t.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var s=t.getStore(),l=W(i,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,r,a=0;a<i.length;a++){var u=s.get(l[a],e),c=!isNaN(u),h=u<o[0],d=u>o[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(t=!0),d&&(n=!0)}return r&&t&&n}))}else OY(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));OY(i,(function(e){t.setApproximateExtent(o,e)}))}}))}function a(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;OY(["min","max"],(function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=qo(n[0]+o,n,[0,100],!0):null!=r&&(o=qo(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=Yo(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();function NY(e,t,n){var i=[1/0,-1/0];OY(n,(function(e){pD(i,e.getData(),t)}));var r=e.getAxisModel(),o=QA(r.axis.scale,r,i).calculate();return[o.min,o.max]}const BY=EY;var FY={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=e.getComponent(_Y(i),r);t(i,r,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new BY(t,i,o,e),n.push(r.__dzAxisProxy))}));var i=we();return G(n,(function(e){G(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};const zY=FY;function VY(e){e.registerAction("dataZoom",(function(e,t){var n=bY(t,e);G(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var HY=!1;function qY(e){HY||(HY=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,zY),VY(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function GY(e){e.registerComponentModel(kY),e.registerComponentView(PY),qY(e)}var WY=function(){function e(){}return e}(),UY={};function jY(e,t){UY[e]=t}function ZY(e){return UY[e]}var YY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;G(this.option.feature,(function(e,n){var i=ZY(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),E(e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(op);const $Y=YY;function XY(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=$d(i,o,r);Zd(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Xd(e,i,o,r)}function KY(e,t){var n=Ld(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new du({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),e}var JY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];G(s,(function(e,t){u.push(t)})),new wC(this._featureNames||[],u).add(c).update(c).remove(K(c,null)).execute(),this._featureNames=u,XY(r,e,n),r.add(KY(r.getBoundingRect(),e)),a||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Q(l)&&t){var u=l.style||(l.style={}),c=uo(t,Du.makeFont(u)),h=e.x+r.x,d=e.y+r.y+o,p=!1;d+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):h-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function c(r,o){var a,c=u[r],d=u[o],p=s[c],f=new Oh(p,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(p.title=i.newTitle),c&&!d){if(QY(c))a={onclick:f.option.onclick,featureName:c};else{var g=ZY(c);if(!g)return;a=new g}l[c]=a}else if(a=l[d],!a)return;a.uid=Eh("toolbox-feature"),a.model=f,a.ecModel=t,a.api=n;var v=a instanceof WY;c||!d?!f.get("show")||v&&a.unusable?v&&a.remove&&a.remove(t,n):(h(f,a,c),f.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?vc:yc)(i[e])},a instanceof WY&&a.render&&a.render(f,t,n,i)):v&&a.dispose&&a.dispose(t,n)}function h(i,s,l){var u,c,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof WY&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};ee(p)?(u={},u[l]=p):u=p,ee(f)?(c={},c[l]=f):c=f;var g=i.iconPaths={};G(u,(function(l,u){var p=Vm(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(h.getItemStyle());var f=p.ensureState("emphasis");f.style=d.getItemStyle();var v=new Du({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null},ignore:!0});p.setTextContent(v),Um({el:p,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var t=d.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",u])?vc:yc)(p),r.add(p),p.on("click",X(s.onclick,s,t,n,u)),g[u]=p}))}},t.prototype.updateView=function(e,t,n,i){G(this._features,(function(e){e instanceof WY&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){G(this._features,(function(n){n instanceof WY&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){G(this._features,(function(n){n instanceof WY&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Ev);function QY(e){return 0===e.indexOf("my")}const e$=JY;var t$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=c.browser;if(Q(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var h=a.split(","),d=h[0].indexOf("base64")>-1,p=r?decodeURIComponent(h[1]):h[1];d&&(p=window.atob(p));var f=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var g=p.length,v=new Uint8Array(g);while(g--)v[g]=p.charCodeAt(g);var y=new Blob([v]);window.navigator.msSaveOrOpenBlob(y,f)}else{var m=document.createElement("iframe");document.body.appendChild(m);var x=m.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),x.focus(),_.execCommand("SaveAs",!0,f),document.body.removeChild(m)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',S=window.open();S.document.write(w),S.document.title=i}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(WY);const n$=t$;var i$="__ec_magicType_stack__",r$=[["line","bar"],["stack"]],o$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return G(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if(a$[n]){var o,a={series:[]},s=function(e){var t=e.subType,r=e.id,o=a$[n](t,r,e,i);o&&(F(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",h=e.getReferringComponents(c,Ha).models[0],d=h.componentIndex;a[c]=a[c]||[];for(var p=0;p<=d;p++)a[c][d]=a[c][d]||{};a[c][d].boundaryGap="bar"===n}}};G(r$,(function(e){z(e,n)>=0&&G(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(o=E({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},t}(WY),a$={line:function(e,t,n,i){if("bar"===e)return E({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return E({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===i$;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),E({id:t,stack:r?"":i$},i.get(["option","stack"])||{},!0)}};Ew({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));const s$=o$;var l$=new Array(60).join("-"),u$="\t";function c$(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function h$(e){var t=[];return G(e,(function(e,n){var i=e.categoryAxis,r=e.valueAxis,o=r.dim,a=[" "].concat(W(e.series,(function(e){return e.name}))),s=[i.model.getCategories()];G(e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[a.join(u$)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(u$))}t.push(l.join("\n"))})),t.join("\n\n"+l$+"\n\n")}function d$(e){return W(e,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,r=arguments[e-1],o=t.getName(r),a=0;a<e-1;a++)i[a]=arguments[a];n.push((o?o+u$:"")+i.join(u$))})),n.join("\n")})).join("\n\n"+l$+"\n\n")}function p$(e){var t=c$(e);return{value:j([h$(t.seriesGroupByCategoryAxis),d$(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+l$+"\n\n"),meta:t.meta}}function f$(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function g$(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(u$)>=0)return!0}var v$=new RegExp("["+u$+"]+","g");function y$(e){for(var t=e.split(/\n+/g),n=f$(t.shift()).split(v$),i=[],r=W(n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var a=f$(t[o]).split(v$);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}function m$(e){for(var t=e.split(/\n+/g),n=f$(t.shift()),i=[],r=0;r<t.length;r++){var o=f$(t[r]);if(o){var a=o.split(v$),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}function x$(e,t){var n=e.split(new RegExp("\n*"+l$+"\n*","g")),i={series:[]};return G(n,(function(e,n){if(g$(e)){var r=y$(e),o=t[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=m$(e);i.series.push(r)}})),i}var _$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=p$(e);if(Q(u)){var d=u(t.getOption());ee(d)?s.innerHTML=d:ae(d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var p=l.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=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=h.value,s.appendChild(l)}var f=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),m=document.createElement("div");v+=";background-color:"+i.get("buttonColor"),v+=";color:"+i.get("buttonTextColor");var x=this;function _(){n.removeChild(r),x._dom=null}xt(y,"click",_),xt(m,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var e;try{e=Q(c)?c(s,t.getOption()):x$(l.value,f)}catch(wy){throw _(),new Error("Data view format error "+wy)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),_()}})),y.innerHTML=a[1],m.innerHTML=a[2],m.style.cssText=y.style.cssText=v,!i.get("readOnly")&&g.appendChild(m),g.appendChild(y),r.appendChild(o),r.appendChild(s),r.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){var t={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return t},t}(WY);function b$(e,t){return W(e,(function(e,n){var i=t&&t[n];if(ie(i)&&!J(i)){var r=ie(e)&&!J(e);r||(e={value:e});var o=null!=i.name&&null==e.name;return e=F(e,i),o&&delete e.name,e}return e}))}Ew({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];G(e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var r=i.get("data");n.push({name:e.name,data:b$(e.data,r)})}else n.push(B({type:"scatter"},e))})),t.mergeOption(F({series:n},e.newOption))}));const w$=_$;var S$=G,M$=Ba();function C$(e,t){var n=A$(e);S$(t,(function(t,i){for(var r=n.length-1;r>=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function I$(e){var t=A$(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return S$(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n],e){i[n]=e;break}})),i}function T$(e){M$(e).snapshots=null}function k$(e){return A$(e).length}function A$(e){var t=M$(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var D$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){T$(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(WY);Ew({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));const L$=D$;var P$=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],O$=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=E$(t,e);G(N$,(function(e,t){(!n||!n.include||z(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=z$[e.brushType](0,n,t);e.__rangeOffset={offset:H$[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){G(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&G(i.coordSyses,(function(i){var r=z$[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){G(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=z$[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?H$[e.brushType](i.values,r.offset,G$(i.xyMinMax,r.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return W(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:_V(i),isTargetByCursor:wV(i,e,n.coordSysModel),getLinearBrushOtherExtent:bV(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&z(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=E$(t,e),r=0;r<n.length;r++){var o=n[r],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<B$.length;s++)if(B$[s](i,o))return o}return!0},e}();function R$(e){return e[0]>e[1]&&e.reverse(),e}function E$(e,t){return za(e,t,{includeMainTypes:P$})}var N$={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=we(),a={},s={};(n||i||r)&&(G(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),G(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),G(r,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];G(r.getCartesians(),(function(e,t){(z(n,e.getAxis("x").model)>=0||z(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:F$.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){G(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:F$.geo})}))}},B$=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],F$={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Pm(e)),t}},z$={lineX:K(V$,0),lineY:K(V$,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[R$([r[0],o[0]]),R$([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=W(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function V$(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=R$(W([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var H$={lineX:K(q$,0),lineY:K(q$,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return W(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function q$(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function G$(e,t){var n=W$(e),i=W$(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function W$(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const U$=O$;var j$=G,Z$=Pa("toolbox-dataZoom_"),Y$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new xV(n.getZr()),this._brushController.on("brush",X(this._onBrush,this)).mount()),J$(e,t,this,i,n),K$(e,t)},t.prototype.onclick=function(e,t,n){$$[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new U$(X$(this.model),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),C$(i,n),this._dispatchZoomAction(n)}function o(e,t,r){var o=t.getAxis(e),s=o.model,l=a(e,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=rz(0,r.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(e,t.componentIndex);r&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];j$(e,(function(e,n){t.push(R(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(WY),$$={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(I$(this.ecModel))}};function X$(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function K$(e,t){e.setIconStatus("back",k$(t)>1?"emphasis":"normal")}function J$(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new U$(X$(e),t,{include:["grid"]}),s=a.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}kp("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=X$(i),a=za(e,o);return j$(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),j$(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),r}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:Z$+t+o};a[n]=o,r.push(a)}}));const Q$=Y$;function eX(e){e.registerComponentModel($Y),e.registerComponentView(e$),jY("saveAsImage",n$),jY("magicType",s$),jY("dataView",w$),jY("dataZoom",Q$),jY("restore",L$),jw(GY)}var tX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(op);const nX=tX;function iX(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function rX(e){if(c.domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}var oX=rX(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),aX=rX(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function sX(e,t){if(!e)return t;t=Dd(t,!0);var n=e.indexOf(t);return e=-1===n?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function lX(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var uX=sX(aX,"transition"),cX=sX(oX,"transform"),hX="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(c.transform3dSupported?"will-change:transform;":"");function dX(e){return e="left"===e?"right":"right"===e?"left":"top"===e?"bottom":"top",e}function pX(e,t,n){if(!ee(n)||"inside"===n)return"";var i=e.get("backgroundColor"),r=e.get("borderWidth");t=Hd(t);var o,a=dX(n),s=Math.max(1.5*Math.round(r),6),l="",u=cX+":";z(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,h=s+r,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-h)/2))/100;l+=";"+a+":-"+p+"px";var f=t+" solid "+r+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function fX(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=c.transformSupported?","+cX+i:",left"+i+",top"+i),uX+":"+r}function gX(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!c.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=c.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+cX+":"+a+";":[["top",0],["left",0],[oX,a]]}function vX(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),G(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function yX(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),h=yv(e,"html"),d=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+d),t&&r&&i.push(fX(r,n)),o&&i.push("background-color:"+o),G(["width","color","radius"],(function(t){var n="border-"+t,r=Dd(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(vX(c)),null!=h&&i.push("padding:"+Ld(h).join("px ")+"px"),i.join(";")+";"}function mX(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&at(e,a,document.body,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var xX=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,c.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;mX(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler,n=r.painter.getViewportRoot();yt(n,e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=lX(t,"position"),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=hX+yX(e,!this._firstShow,this._longHide)+gX(r[0],r[1],!0)+"border-color:"+Hd(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if(ee(r)&&"item"===n.get("trigger")&&!iX(n)&&(a=pX(n,i,r)),ee(e))o.innerHTML=e+a;else if(e){o.innerHTML="",J(e)||(e=[e]);for(var s=0;s<e.length;s++)ae(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(mX(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var i=this.el.style,r=gX(n[0],n[1]);G(r,(function(e){i[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",c.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(X(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const _X=xX;var bX=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),MX(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,i,r){var o=this;ie(e)&&vg(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Du({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:yv(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),G(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),G(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=SX(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;MX(i,this._zr,e,t),e=i[0],t=i[1];var r=n.style,o=wX(r.borderWidth||0),a=SX(r);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(X(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function wX(e){return Math.max(0,e)}function SX(e){var t=wX(e.shadowBlur||0),n=wX(e.shadowOffsetX||0),i=wX(e.shadowOffsetY||0);return{left:wX(t-n),right:wX(t+n),top:wX(t-i),bottom:wX(t+i)}}function MX(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const CX=bX;var IX=new du({shape:{x:-1,y:-1,width:2,height:2}}),TX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){if(!c.node&&t.getDom()){var n=e.getComponent("tooltip"),i=this._renderMode=ja(n.get("renderMode"));this._tooltipContent="richText"===i?new CX(t):new _X(t.getDom(),t,{appendToBody:n.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!c.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?sx(this,"_updatePosition",50,"fixRate"):lx(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,t=e.get("triggerOn");tj("itemTooltip",this._api,X((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!c.node&&n.getDom()){var r=AX(i,n);this._ticket="";var o=i.dataByCoordSys,a=RX(i,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=IX;l.x=i.x,l.y=i.y,l.update(),Lu(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var u=cj(i,t),h=u.point[0],d=u.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(AX(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s){var l=s.getData(),u=kX([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,a;this._lastDataByCoordSys=null,n_(n,(function(e){return null!=Lu(e).dataIndex?(o=e,!0):null!=Lu(e).tooltipConfig?(a=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=X(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=kX([t.tooltipOption],i),a=this._renderMode,s=[],l=iv("section",{blocks:[],noHeader:!0}),u=[],c=new mv;G(e,(function(e){G(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=VU(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),h=iv("section",{header:o,noHeader:!ye(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),G(e.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=sD(t.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",Hd(f.color),a);var g=hg(d.formatTooltip(p,!0,null)),v=g.frag;if(v){var y=kX([d],i).get("valueFormatter");h.blocks.push(y?B({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=t.position,d=o.get("order"),p=uv(l,c,a,d,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=Lu(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=e.positionDefault,p=kX([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new mv;g.marker=v.makeTooltipMarker("item",Hd(g.color),h);var y=hg(s.formatTooltip(l,!1,u)),m=p.get("order"),x=p.get("valueFormatter"),_=y.frag,b=_?uv(x?B({valueFormatter:x},_):_,v,h,m,i.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,b,g,w,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i=Lu(t),r=i.tooltipConfig,o=r.option||{};if(ee(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=kX(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",p=new mv;this._showOrMove(c,(function(){var n=R(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,e.offsetX,e.offsetY,e.position,t,p)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var h=t,d=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(c)if(ee(c)){var f=e.ecModel.get("useUTC"),g=J(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,v&&(h=hd(g.axisValue,h,f)),h=Fd(h,n,!0)}else if(Q(c)){var y=X((function(t,i){t===this._ticket&&(u.setContent(i,l,e,p,a),this._updatePosition(e,a,r,o,u,n,s))}),this);this._ticket=i,h=c(n,i,y)}else h=c;u.setContent(h,l,e,p,a),u.show(e,p),this._updatePosition(e,a,r,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||J(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:J(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),c=e.get("align"),h=e.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Q(t)&&(t=t([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),J(t))n=Go(t[0],s),i=Go(t[1],l);else if(ie(t)){var p=t;p.width=u[0],p.height=u[1];var f=$d(p,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if(ee(t)&&a){var g=PX(t,d,u,e.get("borderWidth"));n=g[0],i=g[1]}else{g=DX(n,i,r,s,l,c?null:20,h?null:20);n=g[0],i=g[1]}if(c&&(n-=OX(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=OX(h)?u[1]/2:"bottom"===h?u[1]:0),iX(e)){g=LX(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&G(n,(function(n,o){var a=n.dataByAxis||[],s=e[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&G(a,(function(e,n){var o=l[n]||{},a=e.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===s.length,r&&G(a,(function(e,t){var n=s[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&G(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!c.node&&t.getDom()&&(lx(this,"_updatePosition"),this._tooltipContent.dispose(),sj("itemTooltip",t))},t.type="tooltip",t}(Ev);function kX(e,t,n){var i,r=t.ecModel;n?(i=new Oh(n,r,r),i=new Oh(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Oh&&(a=a.get("tooltip",!0)),ee(a)&&(a={formatter:a}),a&&(i=new Oh(a,i,r)))}return i}function AX(e,t){return e.dispatchAction||X(t.dispatchAction,t)}function DX(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=a&&(t+u+a>r?t-=u+a:t+=a),[e,t]}function LX(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function PX(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function OX(e){return"center"===e||"middle"===e}function RX(e,t,n){var i=Va(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Ga(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(t){var n=Lu(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}const EX=TX;function NX(e){jw(Sj),e.registerComponentModel(nX),e.registerComponentView(EX),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Te),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Te)}var BX=["rect","polygon","keep","clear"];function FX(e,t){var n=ga(e?e.brush:[]);if(n.length){var i=[];G(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;J(r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),zX(s),t&&!s.length&&s.push.apply(s,BX)}}function zX(e){var t={};G(e,(function(e){t[e]=1})),e.length=0,G(t,(function(t,n){e.push(n)}))}var VX=G;function HX(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function qX(e,t,n){var i={};return VX(t,(function(t){var o=i[t]=r();VX(e[t],(function(e,i){if(pN.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new pN(r),"opacity"===i&&(r=R(r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new pN(r))}}))})),i;function r(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function GX(e,t,n){var i;G(n,(function(e){t.hasOwnProperty(e)&&HX(t[e])&&(i=!0)})),i&&G(n,(function(n){t.hasOwnProperty(n)&&HX(t[n])?e[n]=R(t[n]):delete e[n]}))}function WX(e,t,n,i,r,o){var a,s={};function l(e){return Xx(n,a,e)}function u(e,t){Jx(n,a,e,t)}function c(e,c){a=null==o?e:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=i.call(r,e),p=t[d],f=s[d],g=0,v=f.length;g<v;g++){var y=f[g];p[y]&&p[y].applyVisual(e,l,u)}}G(e,(function(e){var n=pN.prepareVisualTypes(t[e]);s[e]=n})),null==o?n.each(c):n.each([o],c)}function UX(e,t,n,i){var r={};return G(e,(function(e){var n=pN.prepareVisualTypes(t[e]);r[e]=n})),{progress:function(e,o){var a,s;function l(e){return Xx(o,s,e)}function u(e,t){Jx(o,s,e,t)}null!=i&&(a=o.getDimensionIndex(i));var c=o.getStore();while(null!=(s=e.next())){var h=o.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=null!=i?c.get(a,s):s,p=n(d),f=t[p],g=r[p],v=0,y=g.length;v<y;v++){var m=g[v];f[m]&&f[m].applyVisual(d,l,u)}}}}}function jX(e){var t=e.brushType,n={point:function(i){return ZX[t].point(i,n,e)},rect:function(i){return ZX[t].rect(i,n,e)}};return n}var ZX={lineX:YX(0),lineY:YX(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&$P(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var r=e.x,o=e.y,a=e.width,s=e.height,l=i[0];return!!($P(i,r,o)||$P(i,r+a,o)||$P(i,r,o+s)||$P(i,r+a,o+s)||oo.create(e).contain(l[0],l[1])||Hm(r,o,r+a,o,i)||Hm(r,o,r,o+s,i)||Hm(r+a,o,r+a,o+s,i)||Hm(r,o+s,r+a,o+s,i))||void 0}}};function YX(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var r=i.range,o=t[e];return $X(o,r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),$X(s[0],a)||$X(s[1],a)||$X(a[0],s)||$X(a[1],s)}}}}function $X(e,t){return t[0]<=e&&e<=t[1]}var XX=["inBrush","outOfBrush"],KX="__ecBrushSelect",JX="__ecInBrushSelectEvent";function QX(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new U$(t.option,e);n.setInputRanges(t.areas,e)}))}function eK(e,t,n){var i,r,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),QX(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:R(t.areas),selected:[]};o.push(a);var s=t.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=W(t.areas,(function(e){var t=oK[e.brushType],n=F({boundingRect:t?t(e):void 0},e);return n.selectors=jX(n),n})),f=qX(t.option,XX,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===l||!!u[e]}function v(e){return!!e.length}function y(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(c[t]=1)}))}function m(n,i,r){if(n.brushSelector&&!rK(t,i)&&(G(p,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&r.push(i),d=d||v(r)})),g(i)&&v(r))){var o=n.getData();o.each((function(e){iK(n,r,o,e)&&(c[e]=1)}))}}J(l)&&G(l,(function(e){u[e]=1})),e.eachSeries((function(e,t){var n=h[t]=[];"parallel"===e.subType?y(e,t):m(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var i=h[t],r=e.getData(),o=g(t)?function(e){return c[e]?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return iK(e,i,r,t)?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?d:v(i))&&WX(XX,f,r,o)}))})),tK(t,i,r,o,n)}function tK(e,t,n,i,r){if(r){var o=e.getZr();if(!o[JX]){o[KX]||(o[KX]=nK);var a=sx(o,KX,n,t);a(e,i)}}}function nK(e,t){if(!e.isDisposed()){var n=e.getZr();n[JX]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[JX]=!1}}function iK(e,t,n,i){for(var r=0,o=t.length;r<o;r++){var a=t[r];if(e.brushSelector(i,n,a.selectors,a))return!0}}function rK(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(J(n)?z(n,t)<0:t!==n)}var oK={rect:function(e){return aK(e.range)},polygon:function(e){for(var t,n=e.range,i=0,r=n.length;i<r;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&aK(t)}};function aK(e){return new oo(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var sK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new xV(t.getZr())).on("brush",X(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){QX(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:R(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:R(n),$from:t})},t.type="brush",t}(Ev);const lK=sK;var uK="#ddd",cK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return o(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&GX(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:uK},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=W(e,(function(e){return hK(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=hK(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(op);function hK(e,t){return E({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Oh(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const dK=cK;var pK=["rect","polygon","lineX","lineY","keep","clear"],fK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,G(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return G(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){var t={show:!0,type:pK.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(WY);const gK=fK;function vK(e){e.registerComponentView(lK),e.registerComponentModel(dK),e.registerPreprocessor(FX),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,eK),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Te),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Te),jY("brush",gK)}var yK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return o(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(op),mK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=de(e.get("textBaseline"),e.get("textVerticalAlign")),l=new Du({style:uh(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),h=new Du({style:uh(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){qd(d,"_"+e.get("target"))})),p&&h.on("click",(function(){qd(p,"_"+e.get("subtarget"))})),Lu(l).eventData=Lu(h).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),v=e.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=$d(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=i.getBoundingRect();var x=y.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var b=new du({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},t.type="title",t}(Ev);function xK(e){e.registerComponentModel(yK),e.registerComponentView(mK)}var _K=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],G(n,(function(t,n){var i,o=Aa(ma(t),"");ie(t)?(i=R(t),i.value=n):i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new JC([{name:"value",type:o}],this);a.initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(op);const bK=_K;var wK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="timeline.slider",t.defaultOption=Fh(bK.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}(bK);H(wK,cg.prototype);const SK=wK;var MK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="timeline",t}(Ev);const CK=MK;var IK=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return o(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(zD);const TK=IK;var kK=Math.PI,AK=Ba(),DK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return iv("nameValue",{noName:!0,value:t})},G(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,a,e)}),this),this._renderAxisLabel(i,o,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),r=e.get("orient"),o=PK(e,t);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2<t.getHeight()/2?"-":"+":o.x+o.width/2<t.getWidth()/2?"+":"-":ee(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][i]:i;var a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:kK/2},d="vertical"===r?o.height:o.width,p=e.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,v=f?p.get("itemGap"):0,y=g+v,m=e.get(["label","rotate"])||0;m=m*kK/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),b=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=d;"left"===x||"bottom"===x?(_&&(a=[0,0],S+=y),b&&(s=[S,0],S+=y),w&&(l=[M-g,0],M-=y)):(_&&(a=[M-g,0],M-=y),b&&(s=[0,0],S+=y),w&&(l=[M-g,0],M-=y));var C=[S,M];return e.get("inverse")&&C.reverse(),{viewRect:o,mainLength:d,orient:r,rotation:h[r],labelRotation:m,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[r],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[r],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:C,controlSize:g,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=kr(),a=r.x,s=r.y+r.height;Pr(o,o,[-a,-s]),Or(o,o,-kK/2),Pr(o,o,[a,s]),r=r.clone(),r.applyTransform(o)}var l=v(r),u=v(n.getBoundingRect()),c=v(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p=e.labelPosOpt;if(null==p||ee(p)){var f="+"===p?0:1;y(h,u,l,1,f),y(d,c,l,1,1-f)}else{f=p>=0?0:1;y(h,u,l,1,f),d[1]=h[1]+p}function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,g(n),g(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=LK(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new TK("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Lo;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Wy({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new Wy({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:F({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],G(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:X(r._changeTimeline,r,e.value)},d=RK(s,l,t,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Oc(d);var p=Lu(d);s.get("tooltip")?(p.dataIndex=e.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],G(s,(function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new Du({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:X(r._changeTimeline,r,o),silent:!1,style:uh(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=uh(u),d.ensureState("progress").style=uh(c),t.add(d),Oc(d),AK(d).dataIndex=o,r._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(e,n,l,u){if(e){var c=fo(de(i.get(["controlStyle",n+"BtnSize"]),r),r),h=[0,-c/2,c,c],d=OK(i,n+"Icon",h,{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});d.ensureState("emphasis").style=s,t.add(d),Oc(d)}}c(e.nextBtnPosition,"next",X(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",X(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",X(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=X(s._handlePointerDrag,s),e.ondragend=X(s._handlePointerDragend,s),EK(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){EK(e,s._progressLine,o,n,i)}};this._currentPointer=RK(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=Uo(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var o=this._findNearestTick(n),a=this.model;(t||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return Om(e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-e);s<i&&(i=s,t=o)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",AK(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(CK);function LK(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new SA({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new FA({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new IA}}function PK(e,t){return $d(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function OK(e,t,n,i){var r=i.style,o=Vm(e.get(["controlStyle",t]),i||{},new oo(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}function RK(e,t,n,i,r,o){var a=t.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=e.get("symbol");r=v_(s,-1,-1,2,2,a),r.setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var l=t.getItemStyle(["color"]);r.setStyle(l),i=E({rectHover:!0,z2:100},i,!0);var u=y_(e.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=m_(e.get("symbolOffset"),u);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var h=e.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function EK(e,t,n,i,r,o){if(!e.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const NK=DK;function BK(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),F({currentIndex:i.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function FK(e){var t=e&&e.timeline;J(t)||(t=t?[t]:[]),G(t,(function(e){e&&zK(e)}))}function zK(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),VK(e),HK(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});HK(i,"position")||(i.position=e.controlPosition),"none"!==i.position||HK(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}G(e.data||[],(function(e){ie(e)&&!J(e)&&(!HK(e,"value")&&HK(e,"name")&&(e.value=e.name),VK(e))}))}function VK(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};G(i,(function(e,t){o[t]||HK(r,t)||(r[t]=e)})),n.label&&!HK(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function HK(e,t){return e.hasOwnProperty(t)}function qK(e){e.registerComponentModel(SK),e.registerComponentView(NK),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),BK(e),e.registerPreprocessor(FK)}function GK(e,t){if(!e)return!1;for(var n=J(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function WK(e){va(e,"label",["show"])}var UK=Ba(),jK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(c.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var r=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=UK(e)[r];n&&n.data?(o?o._mergeOption(n,t,!0):(i&&WK(n),G(n.data,(function(e){e instanceof Array?(WK(e[0]),WK(e[1])):WK(e)})),o=this.createMarkerModelFromSeries(n,this,t),B(o,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),UK(e)[r]=o):UK(e)[r]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return iv("section",{header:this.name,blocks:[iv("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return UK(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(op);H(jK,cg.prototype);const ZK=jK;var YK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,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}(ZK);const $K=YK;function XK(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function KK(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function JK(e,t,n,i,r,o){var a=[],s=uI(t,i),l=s?t.getCalculationInfo("stackResultDimension"):i,u=aJ(t,l,e),c=t.indicesOfNearest(l,u)[0];a[r]=t.get(n,c),a[o]=t.get(l,c);var h=t.get(i,c),d=jo(t.get(i,c));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,h]}var QK={min:K(JK,"min"),max:K(JK,"max"),average:K(JK,"average"),median:K(JK,"median")};function eJ(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!KK(t)&&!J(t.coord)&&i){var r=i.dimensions,o=tJ(t,n,i,e);if(t=R(t),t.type&&QK[t.type]&&o.baseAxis&&o.valueAxis){var a=z(r,o.baseAxis.dim),s=z(r,o.valueAxis.dim),l=QK[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else{for(var u=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],c=0;c<2;c++)QK[u[c]]&&(u[c]=aJ(n,n.mapDimension(r[c]),u[c]));t.coord=u}}return t}function tJ(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(nJ(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function nJ(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function iJ(e,t){return!(e&&e.containData&&t.coord&&!XK(t))||e.containData(t.coord)}function rJ(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!XK(t)&&!XK(n))||e.containZone(t.coord,n.coord)}function oJ(e,t){return e?function(e,n,i,r){var o=r<2?e.coord&&e.coord[r]:e.value;return yg(o,t[r])}:function(e,n,i,r){return yg(e.value,t[r])}}function aJ(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var sJ=Ba(),lJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){this.markerGroupMap=we()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){sJ(e).keep=!1})),t.eachSeries((function(e){var r=ZK.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!sJ(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){sJ(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;G(e,(function(e){var i=ZK.getMarkerModelFromSeries(e,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(e){e&&(t?mc(e):xc(e))}))}}))},t.type="marker",t}(Ev);const uJ=lJ;function cJ(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,a=e.getItemModel(r),s=Go(a.get("x"),n.getWidth()),l=Go(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var u=e.get(i.dimensions[0],r),c=e.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var hJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markPoint");t&&(cJ(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new kI),u=dJ(r,e,t);t.setData(u),cJ(t.getData(),e,i),u.each((function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Q(i)||Q(r)||Q(o)||Q(s)){var c=t.getRawValue(e),h=t.getDataParams(e);Q(i)&&(i=i(c,h)),Q(r)&&(r=r(c,h)),Q(o)&&(o=o(c,h)),Q(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),p=Kx(a,"color");d.fill||(d.fill=p),u.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){Lu(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(uJ);function dJ(e,t,n){var i;i=e?W(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return B(B({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new JC(i,n),o=W(n.get("data"),K(eJ,t));e&&(o=j(o,K(iJ,e)));var a=oJ(!!e,i);return r.initData(o,null,a),r}const pJ=hJ;function fJ(e){e.registerComponentModel($K),e.registerComponentView(pJ),e.registerPreprocessor((function(e){GK(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var gJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ZK);const vJ=gJ;var yJ=Ba(),mJ=function(e,t,n,i){var r,o=e.getData();if(J(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=he(i.yAxis,i.xAxis);else{var u=tJ(i,o,t,e);s=u.valueAxis;var c=cI(o,u.valueDataDim);l=aJ(o,c,a)}var h="x"===s.dim?0:1,d=1-h,p=R(i),f={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,f.coord[d]=1/0;var g=n.get("precision");g>=0&&ne(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[h]=f.coord[h]=l,r=[p,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var v=[eJ(e,r[0]),eJ(e,r[1]),B({},r[2])];return v[2].type=v[2].type||null,E(v[2],v[0]),E(v[2],v[1]),v};function xJ(e){return!isNaN(e)&&!isFinite(e)}function _J(e,t,n,i){var r=1-e,o=i.dimensions[e];return xJ(t[r])&&xJ(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function bJ(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(_J(1,n,i,e)||_J(0,n,i,e)))return!0}return iJ(e,t[0])&&iJ(e,t[1])}function wJ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Go(s.get("x"),r.getWidth()),u=Go(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,h=e.get(c[0],t),d=e.get(c[1],t);o=a.dataToPoint([h,d])}if(YI(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;xJ(e.get(c[0],t))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):xJ(e.get(c[1],t))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var SJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=yJ(t).from,o=yJ(t).to;r.each((function(t){wJ(r,t,!0,e,n),wJ(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new VB);this.group.add(l.group);var u=MJ(r,e,t),c=u.from,h=u.to,d=u.line;yJ(t).from=c,yJ(t).to=h,t.setData(d);var p=t.get("symbol"),f=t.get("symbolSize"),g=t.get("symbolRotate"),v=t.get("symbolOffset");function y(t,n,r){var o=t.getItemModel(n);wJ(t,n,r,e,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Kx(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:de(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:de(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:de(o.get("symbolSize"),f[r?0:1]),symbol:de(o.get("symbol",!0),p[r?0:1]),style:s})}J(p)||(p=[p,p]),J(f)||(f=[f,f]),J(g)||(g=[g,g]),J(v)||(v=[v,v]),u.from.each((function(e){y(c,e,!0),y(h,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[c.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),l.updateData(d),u.line.eachItemGraphicEl((function(e){Lu(e).dataModel=t,e.traverse((function(e){Lu(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(uJ);function MJ(e,t,n){var i;i=e?W(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return B(B({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new JC(i,n),o=new JC(i,n),a=new JC([],n),s=W(n.get("data"),K(mJ,t,e,n));e&&(s=j(s,K(bJ,e)));var l=oJ(!!e,i);return r.initData(W(s,(function(e){return e[0]})),null,l),o.initData(W(s,(function(e){return e[1]})),null,l),a.initData(W(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}const CJ=SJ;function IJ(e){e.registerComponentModel(vJ),e.registerComponentView(CJ),e.registerPreprocessor((function(e){GK(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var TJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ZK);const kJ=TJ;var AJ=Ba(),DJ=function(e,t,n,i){var r=eJ(e,i[0]),o=eJ(e,i[1]),a=r.coord,s=o.coord;a[0]=he(a[0],-1/0),a[1]=he(a[1],-1/0),s[0]=he(s[0],1/0),s[1]=he(s[1],1/0);var l=N([{},r,o]);return l.coord=[r.coord,o.coord],l.x0=r.x,l.y0=r.y,l.x1=o.x,l.y1=o.y,l};function LJ(e){return!isNaN(e)&&!isFinite(e)}function PJ(e,t,n,i){var r=1-e;return LJ(t[r])&&LJ(n[r])}function OJ(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return YI(e,"cartesian2d")?!(!n||!i||!PJ(1,n,i,e)&&!PJ(0,n,i,e))||rJ(e,r,o):iJ(e,r)||iJ(e,o)}function RJ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Go(s.get(n[0]),r.getWidth()),u=Go(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(n,t));else{var c=e.get(n[0],t),h=e.get(n[1],t),d=[c,h];a.clampData&&a.clampData(d,d),o=a.dataToPoint(d,!0)}if(YI(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=e.get(n[0],t),h=e.get(n[1],t);LJ(c)?o[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):LJ(h)&&(o[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var EJ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],NJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=W(EJ,(function(r){return RJ(i,t,r,e,n)}));i.setItemLayout(t,r);var o=i.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Lo});this.group.add(l.group),this.markKeep(l);var u=BJ(r,e,t);t.setData(u),u.each((function(t){var n=W(EJ,(function(n){return RJ(u,t,n,e,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],d=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];Uo(h),Uo(d);var p=!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]),f=!p;u.setItemLayout(t,{points:n,allClipped:f});var g=u.getItemModel(t).getModel("itemStyle").getItemStyle(),v=Kx(a,"color");g.fill||(g.fill=v,ee(g.fill)&&(g.fill=oi(g.fill,.4))),g.stroke||(g.stroke=v),u.setItemVisual(t,"style",g)})),u.diff(AJ(l).data).add((function(e){var t=u.getItemLayout(e);if(!t.allClipped){var n=new By({shape:{points:t.points}});u.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var i=AJ(l).data.getItemGraphicEl(n),r=u.getItemLayout(e);r.allClipped?i&&l.group.remove(i):(i?Xc(i,{shape:{points:r.points}},t,e):i=new By({shape:{points:r.points}}),u.setItemGraphicEl(e,i),l.group.add(i))})).remove((function(e){var t=AJ(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),u.eachItemGraphicEl((function(e,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");e.useStyle(u.getItemVisual(n,"style")),sh(e,lh(i),{labelFetcher:t,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:ee(r.fill)?oi(r.fill,1):"#000"}),zc(e,i),Ec(e,null,null,i.get(["emphasis","disabled"])),Lu(e).dataModel=t})),AJ(l).data=u,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(uJ);function BJ(e,t,n){var i,r,o=["x0","y0","x1","y1"];if(e){var a=W(e&&e.dimensions,(function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return B(B({},i),{name:e,ordinalMeta:null})}));r=W(o,(function(e,t){return{name:e,type:a[t%2].type}})),i=new JC(r,n)}else r=[{name:"value",type:"float"}],i=new JC(r,n);var s=W(n.get("data"),K(DJ,t,e,n));e&&(s=j(s,K(OJ,e)));var l=e?function(e,t,n,i){var o=e.coord[Math.floor(i/2)][i%2];return yg(o,r[i])}:function(e,t,n,i){return yg(e.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}const FJ=NJ;function zJ(e){e.registerComponentModel(kJ),e.registerComponentView(FJ),e.registerPreprocessor((function(e){GK(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var VJ=function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0},HJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),J(t)&&G(t,(function(e,i){ee(e)&&(e={type:e}),t[i]=E(e,VJ(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider,s=a.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(s)),s.length?t=t.concat(s):r=!0}else r=!0;r&&Da(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,r=W(i,(function(e){return(ee(e)||ne(e))&&(e={name:e}),new Oh(e,this,this.ecModel)}),this);this._data=r},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;G(i,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;G(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;G(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&z(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(op);const qJ=HJ;var GJ=K,WJ=G,UJ=Lo,jJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return o(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new UJ),this.group.add(this._selectorGroup=new UJ),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),h=$d(l,u,c),d=this.layoutInner(e,r,h,i,a,s),p=$d(F({width:d.width,height:d.height},l),u,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KY(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,o,a){var s=this.getContentGroup(),l=we(),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),WJ(t.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new UJ;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),y=this._createItem(d,a,o,r,t,e,f,v,g,u,i);y.on("click",GJ($J,a,null,i,c)).on("mouseover",GJ(KJ,d.name,null,i,c)).on("mouseout",GJ(JJ,d.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),d=s.getItemVisual(h,"style"),p=s.getItemVisual(h,"legendIcon"),f=Jn(d.fill);f&&0===f[3]&&(f[3]=.2,d=B(B({},d),{fill:ai(f,"rgba")}));var g=this._createItem(n,a,o,r,t,e,{},d,p,u,i);g.on("click",GJ($J,null,a,i,c)).on("mouseover",GJ(KJ,null,a,i,c)).on("mouseout",GJ(JJ,null,a,i,c)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,t,i,o,a)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();WJ(e,(function(e){var i=e.type,r=new Du({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);sh(r,{normal:a,emphasis:s},{defaultText:e.title}),Oc(r)}))},t.prototype._createItem=function(e,t,n,i,r,o,a,s,l,u,c){var h=e.visualDrawType,d=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(t),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),y=i.get("icon");l=y||l||"roundRect";var m=ZJ(l,i,a,s,h,f,c),x=new UJ,_=i.getModel("textStyle");if(!Q(e.getLegendIcon)||y&&"inherit"!==y){var b="inherit"===y&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;x.add(YJ({itemWidth:d,itemHeight:p,icon:l,iconRotate:b,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}))}else x.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}));var w="left"===o?d+5:-5,S=o,M=r.get("formatter"),C=t;ee(M)&&M?C=M.replace("{name}",null!=t?t:""):Q(M)&&(C=M(t));var I=i.get("inactiveColor");x.add(new Du({style:uh(_,{text:C,x:w,y:p/2,fill:f?_.getTextColor():I,align:S,verticalAlign:"middle"})}));var T=new du({shape:x.getBoundingRect(),invisible:!0}),k=i.getModel("tooltip");return k.get("show")&&Um({el:T,componentModel:r,itemName:t,itemTooltipOption:k.option}),x.add(T),x.eachChild((function(e){e.silent=!0})),T.silent=!u,this.getContentGroup().add(x),Oc(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Zd(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Zd("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+d+c[f],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ev);function ZJ(e,t,n,i,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),WJ(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?ob(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function YJ(e){var t=e.icon||"roundRect",n=v_(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function $J(e,t,n,i){JJ(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),KJ(e,t,n,i)}function XJ(e){var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;while(i<r&&!(t=n[i].states.emphasis))i++;return t&&t.hoverLayer}function KJ(e,t,n,i){XJ(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function JJ(e,t,n,i){XJ(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}const QJ=jJ;function eQ(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function tQ(e,t,n){var i,r={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name));var a=n.getData();G(a,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&i:r[t]=i}}))})),"allSelect"===e||"inverseSelect"===e?{selected:r}:{name:t.name,selected:r}}function nQ(e){e.registerAction("legendToggleSelect","legendselectchanged",K(tQ,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",K(tQ,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",K(tQ,"inverseSelect")),e.registerAction("legendSelect","legendselected",K(tQ,"select")),e.registerAction("legendUnSelect","legendunselected",K(tQ,"unSelect"))}function iQ(e){e.registerComponentModel(qJ),e.registerComponentView(QJ),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,eQ),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),nQ(e)}var rQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var r=ep(t);e.prototype.init.call(this,t,n,i),oQ(this,t,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),oQ(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Fh(qJ.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}(qJ);function oQ(e,t,n){var i=e.getOrient(),r=[1,1];r[i.index]=0,Qd(t,n,{type:"box",ignoreSize:!!r})}const aQ=rQ;var sQ=Lo,lQ=["width","height"],uQ=["x","y"],cQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return o(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new sQ),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new sQ)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,i,r,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=J(c)?c:[c,c];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(e,t){var i=e+"DataIndex",o=Vm(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:X(l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=e,u.add(o)}u.add(new Du({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=lQ[s],u=uQ[s],c=lQ[1-s],h=uQ[1-s];r&&Zd("horizontal",a,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=R(n);r&&(g[l]=n[l]-p[l]-d);var v=this._layoutContentAndController(e,i,g,s,l,c,h,u);if(r){if("end"===o)f[s]+=v[l]+d;else{var y=p[l]+d;f[s]-=y,v[u]-=y}v[l]+=p[l]+d,f[1-s]+=v[h]+v[c]/2-p[c]/2,v[c]=Math.max(v[c],p[c]),v[h]=Math.min(v[h],p[h]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Zd(e.get("orient"),l,e.get("itemGap"),i?n.width:null,i?null:n.height),Zd("horizontal",c,e.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[r]>n[r],f=[-h.x,-h.y];t||(f[i]=l[s]);var g=[0,0],v=[-d.x,-d.y],y=de(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var m=e.get("pageButtonPosition",!0);"end"===m?v[i]+=n[r]-d[r]:g[i]+=d[r]+y}v[1-i]+=h[o]/2-d[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var x={x:0,y:0};if(x[r]=p?n[r]:h[r],x[o]=Math.max(h[o],d[o]),x[a]=Math.min(0,d[a]+v[1-i]),u.__rectSize=n[r],p){var _={x:0,y:0};_[r]=Math.max(n[r]-d[r]-y,0),_[o]=x[o],u.setClipPath(new du({shape:_})),u.__rectSize=_[r]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(e);return null!=b.pageIndex&&Xc(l,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),x},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;G(["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=t[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;i&&r&&i.setStyle("text",ee(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=lQ[r],a=uQ[r],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=m(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,v=p,y=null;f<=c;++f)y=m(l[f]),(!y&&v.e>g.s+i||y&&!x(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),v=y;for(f=s-1,g=p,v=p,y=null;f>=-1;--f)y=m(l[f]),y&&x(v,y.s)||!(g.i<v.i)||(v=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=y;return d;function m(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n},t.type="legend.scroll",t}(QJ);const hQ=cQ;function dQ(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function pQ(e){jw(iQ),e.registerComponentModel(aQ),e.registerComponentView(hQ),dQ(e)}function fQ(e){jw(iQ),jw(pQ)}var gQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.inside",t.defaultOption=Fh(IY.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(IY);const vQ=gQ;var yQ=Ba();function mQ(e,t,n){yQ(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function xQ(e,t){for(var n=yQ(e).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||_Q(n,a))}}}function _Q(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function bQ(e,t){var n={model:t,containsPoint:K(SQ,t),dispatchAction:K(wQ,e),dataZoomInfoMap:null,controller:null},i=n.controller=new gP(e.getZr());return G(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(r){if(t.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[e],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function wQ(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function SQ(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function MQ(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return e.each((function(e){var o=e.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+t]&&(t=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function CQ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=yQ(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=we());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=wY(e);G(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,bQ(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=we());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=MQ(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),sx(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else _Q(i,e)}))}))}var IQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return o(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),mQ(i,t,{pan:X(TQ.pan,this),zoom:X(TQ.zoom,this),scrollMove:X(TQ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xQ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(DY),TQ={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=AQ[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return rz(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:kQ((function(e,t,n,i,r,o){var a=AQ[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:kQ((function(e,t,n,i,r,o){var a=AQ[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function kQ(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,i,r);return rz(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var AQ={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const DQ=IQ;function LQ(e){qY(e),e.registerComponentModel(vQ),e.registerComponentView(DQ),CQ(e)}var PQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Fh(IY.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}(IY);const OQ=PQ;var RQ=du,EQ=7,NQ=1,BQ=30,FQ=7,zQ="horizontal",VQ="vertical",HQ=5,qQ=["line","bar","candlestick","scatter"],GQ={easing:"cubicOut",duration:100,delay:0},WQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return o(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=X(this._onBrush,this),this._onBrushEnd=X(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),sx(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lx(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Lo;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=n?FQ:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===zQ?{right:o.width-r.x-r.width,top:o.height-BQ-EQ-i,width:r.width,height:BQ}:{right:EQ,top:r.y,width:BQ,height:r.height},s=ep(e.option);G(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var l=$d(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===VQ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==zQ||r?n===zQ&&r?{scaleY:a?1:-1,scaleX:-1}:n!==VQ||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new RQ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new RQ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:X(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim?i.getShadowDim():e.otherDim;if(null!=o){var a=this._shadowPolygonPts,s=this._shadowPolylinePts;if(r!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=r.getDataExtent(o),u=.3*(l[1]-l[0]);l=[l[0]-u,l[1]+u];var c,h=[0,t[1]],d=[0,t[0]],p=[[t[0],0],[0,0]],f=[],g=d[1]/(r.count()-1),v=0,y=Math.round(r.count()/t[0]);r.each([o],(function(e,t){if(y>0&&t%y)v+=g;else{var n=null==e||isNaN(e)||""===e,i=n?0:qo(e,l,h,!0);n&&!c&&t?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&c&&(p.push([v,0]),f.push([v,0])),p.push([v,i]),f.push([v,i]),v+=g,c=n}})),a=this._shadowPolygonPts=p,s=this._shadowPolylinePts=f}this._shadowData=r,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var m=this.dataZoomModel,x=0;x<3;x++){var _=b(1===x);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function b(e){var t=m.getModel(e?"selectedDataBackground":"dataBackground"),n=new Lo,i=new By({shape:{points:a},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Vy({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var a=e.getAxisProxy(r,o).getTargetSeriesModels();G(a,(function(e){if(!n&&!(!0!==t&&z(qQ,e.get("type"))<0)){var a,s=i.getComponent(_Y(r),o).axis,l=UQ(r),u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new RQ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new RQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:NQ,fill:"rgba(0,0,0,0)"}})),G([0,1],(function(t){var o=a.get("handleIcon");!p_[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=v_(o,-1,0,2,2,null,!0);s.attr({cursor:jQ(this._orient),draggable:!0,drift:X(this._onDragMove,this,t),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Go(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Oc(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[t]=s);var h=a.getModel("textStyle");e.add(i[t]=new Du({silent:!0,invisible:!0,style:uh(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=Go(a.get("moveHandleSize"),o[1]),p=t.moveHandle=new du({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=t.moveHandleIcon=v_(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(d,10));h=t.moveZone=new du({invisible:!0,shape:{y:o[1]-v,height:d+v}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:jQ(this._orient),drift:X(this._onDragMove,this,"all"),ondragstart:X(this._showDataInfo,this,!0),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[qo(e[0],[0,100],t,!0),qo(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];rz(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?qo(o.minSpan,a,r,!0):null,null!=o.maxSpan?qo(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Uo([qo(i[0],r,a,!0),qo(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=Uo(n.slice()),r=this._size;G([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new du,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Uo(this._handleEnds.slice());function h(e){var t=Pm(n.handles[e].parent,this.group),a=Rm(0===e?"right":"left",t),s=this._handleWidth/2+HQ,l=Om([c[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:r===zQ?"middle":a,align:r===zQ?a:"center",text:o[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(r,20));return Q(i)?i(e,o):ee(i)?i.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,bt(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=Om([t,n],r,!0),a=this._updateInterval(e,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new $r(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=Uo([qo(n.x,r,o,!0),qo(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(bt(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new RQ({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?GQ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=wY(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(DY);function UQ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function jQ(e){return"vertical"===e?"ns-resize":"ew-resize"}const ZQ=WQ;function YQ(e){e.registerComponentModel(OQ),e.registerComponentView(ZQ),qY(e)}function $Q(e){jw(LQ),jw(YQ)}var XQ={get:function(e,t,n){var i=R((KQ[e]||{})[t]);return n&&J(i)?i[i.length-1]:i}},KQ={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]}};const JQ=XQ;var QQ=pN.mapVisual,e0=pN.eachVisual,t0=J,n0=G,i0=Uo,r0=qo,o0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&GX(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=X(e,this),this.controllerVisuals=qX(this.option.controller,t,e),this.targetVisuals=qX(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=ga(e),t},t.prototype.eachTargetSeries=function(e,t){G(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],J(e)&&(e=e.slice(),i=!0);var l=t?e:i?[u(e[0]),u(e[1])]:u(e);return ee(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):Q(s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=i0([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});E(i,n),E(r,n);var o=this.isCategory();function a(n){t0(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},n0(i,(function(e,t){if(pN.isValidType(t)){var n=JQ.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";n0(this.stateList,(function(r){var s=this.itemSize,l=e[r];l||(l=e[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&R(t)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&R(n)||(o?s[0]:[s[0],s[0]])),l.symbol=QQ(l.symbol,(function(e){return"none"===e?a:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;e0(u,(function(e){e>c&&(c=e)})),l.symbolSize=QQ(u,(function(e){return r0(e,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),s.call(this,i,"inRange","outOfRange"),l.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(op);const a0=o0;var s0=[20,140],l0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=s0[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=s0[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):J(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),G(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Uo((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=u0(this,"outOfRange",this.getExtent()),n=u0(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&r(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(t[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Fh(a0.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}(a0);function u0(e,t,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],a=[],s=0;s<=i&&o<n[1];s++)a.push(o),o+=r;return a.push(n[1]),a}const c0=l0;var h0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return o(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Ld(t.get("padding")||0),i=e.getBoundingRect();e.add(new du({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var i=n.forceState,r=this.visualMapModel,o={};if("color"===t){var a=r.get("contentColor");o.color=a}function s(e){return o[e]}function l(e,t){o[e]=t}var u=r.controllerVisuals[i||r.getValueState(e)],c=pN.prepareVisualTypes(u);return G(c,(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),pN.dependsOn(i,t)&&r&&r.applyVisual(e,s,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Xd(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(Ev);const d0=h0;var p0=[["left","right","width"],["top","bottom","height"]];function f0(e,t,n){var i=e.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===i.orient?1:0,s=p0[a],l=[0,null,10],u={},c=0;c<3;c++)u[p0[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],d=$d(u,o,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function g0(e,t){return G(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var v0=qo,y0=G,m0=Math.min,x0=Math.max,_0=12,b0=6,w0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return o(t,e),t.prototype.doRender=function(e,t,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Du({style:uh(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,r=this._orient,o=this._useHandle,a=f0(t,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new Lo;s.add(l),l.add(n.outOfRange=S0()),l.add(n.inRange=S0(null,o?I0(this._orient):null,X(this._dragHandle,this,"all",!1),X(this._dragHandle,this,"all",!0))),l.setClipPath(new du({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),c=x0(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,c,r),this._createHandle(t,s,1,i,c,r)),this._createIndicator(t,s,i,c,r),e.add(s)},t.prototype._createHandle=function(e,t,n,i,r,o){var a=X(this._dragHandle,this,n,!1),s=X(this._dragHandle,this,n,!0),l=fo(e.get("handleSize"),i[0]),u=v_(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=I0(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){bt(e.event)}}),u.x=i[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Vc(u,!0),t.add(u);var h=this.visualMapModel.textStyleModel,d=new Du({cursor:c,draggable:!0,drift:a,onmousemove:function(e){bt(e.event)},ondragend:s,style:uh(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=p,f.handleLabels[n]=d},t.prototype._createIndicator=function(e,t,n,i,r){var o=fo(e.get("indicatorSize"),n[0]),a=v_(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof iu){var l=a.style;a.useStyle(B({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var u=this.visualMapModel.textStyleModel,c=new Du({silent:!0,invisible:!0,style:uh(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===r?i/2:b0)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,r[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():C0(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[v0(t[0],n,i,!0),v0(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];rz(t,i,r,e,0);var o=n.getExtent();this._dataInterval=[v0(i[0],r,o,!0),v0(i[1],r,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],o=e?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),a=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new rm(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,i=[],r=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<n;o++){var a=e[0]+r*o;if(a>e[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Lo("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();y0([0,1],(function(l){var u=r[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=v0(e[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=Om(n.handleLabelPoints[l],Pm(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),d=this.getControllerVisual(e,"symbolSize"),p=v0(e,o,s,!0),f=a[0]-d/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var v=Om(l.indicatorLabelPoint,Pm(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),x=this._orient,_="horizontal"===x;y.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:_?m:"middle",align:_?"center":m});var b={x:f,y:p,style:{fill:h}},w={style:{x:v[0],y:v[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(b,S),y.animateTo(w,S)}else u.attr(b),y.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var C=0;C<M.length;C++)this._api.enterBlur(M[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=m0(x0(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();e=m0(x0(r[0],e),r[1]);var a=M0(n,o,r),s=[e-a,e+a],l=v0(e,r,o,!0),u=[v0(s[0],r,o,!0),v0(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(t||C0(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=Ea(c,h);this._dispatchHighDown("downplay",g0(d[0],n)),this._dispatchHighDown("highlight",g0(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Lu(t).dataIndex){var i=Lu(t),r=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(r)){var o=r.getData(i.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",g0(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,i){var r=Pm(t,i?null:this.group);return J(e)?Om(e,r,n):Rm(e,r,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(d0);function S0(e,t,n,i){return new By({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){bt(e.event)},ondragend:i})}function M0(e,t,n){var i=_0/2,r=e.get("hoverLinkDataSize");return r&&(i=v0(r,t,n,!0)/2),i}function C0(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function I0(e){return"vertical"===e?"ns-resize":"ew-resize"}const T0=w0;var k0={type:"selectDataRange",event:"dataRangeSelected",update:"update"},A0=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},D0=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i=e.pipelineContext;!t.isTargetSeries(e)||i&&i.large||n.push(UX(t.stateList,t.targetVisuals,X(t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(X(L0,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function L0(e,t,n,i){for(var r=t.targetVisuals[i],o=pN.prepareVisualTypes(r),a={color:Kx(e.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return a.color;function h(e){return a[e]}function d(e,t){a[e]=t}}var P0=G;function O0(e){var t=e&&e.visualMap;J(t)||(t=t?[t]:[]),P0(t,(function(e){if(e){R0(e,"splitList")&&!R0(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&J(t)&&P0(t,(function(e){ie(e)&&(R0(e,"start")&&!R0(e,"min")&&(e.min=e.start),R0(e,"end")&&!R0(e,"max")&&(e.max=e.end))}))}}))}function R0(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var E0=!1;function N0(e){E0||(E0=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(k0,A0),G(D0,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(O0))}function B0(e){e.registerComponentModel(c0),e.registerComponentView(T0),N0(e)}var F0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return o(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],z0[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=R(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=W(this._pieceList,(function(e){return e=R(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=pN.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}G(t.pieces,(function(e){G(i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),G(n,(function(e,n){var i=!1;G(this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&G(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=JQ.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,G(i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;G(i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=R(e)},t.prototype.getValueState=function(e){var t=pN.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){var o=pN.findPieceIndex(t,n);o===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return G(r,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Fh(a0.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}(a0),z0={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),aa(e),G(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;G(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),V0(t,e)},pieces:function(e){var t=this.option;G(t.pieces,(function(t,n){ie(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var r=i.value=t.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=t[h[d]],a[c]=s[d],u[c]=2===d;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=pN.retrieveVisuals(t),e.push(i)}),this),V0(t,e),aa(e),G(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function V0(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}const H0=F0;var q0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=he(t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),G(l.viewPieceList,(function(i){var l=i.piece,u=new Lo;u.onclick=X(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=t.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new Du({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),Zd(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:g0(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return f0(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new Lo,a=this.visualMapModel.textStyleModel;o.add(new Du({style:uh(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=W(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(v_(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=R(n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,G(r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(d0);const G0=q0;function W0(e){e.registerComponentModel(H0),e.registerComponentView(G0),N0(e)}function U0(e){jw(B0),jw(W0)}var j0={label:{enabled:!0},decal:{show:!1}},Z0=Ba(),Y0={};function $0(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=R(j0);E(i.label,e.getLocaleModel().get("aria"),!1),E(n.option,i,!1),r(),o()}function r(){var t=n.getModel("decal"),i=t.get("show");if(i){var r=we();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=r.get(e.type);t||(t={},r.set(e.type,t)),Z0(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(Q(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=Np(t.ecModel,t.name,Y0,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=t.getRawData(),a={},s=Z0(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var i=a[e],r=o.getName(e)||e+"",c=Np(t.ecModel,r,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,c))}))}}function u(e,t){var n=e?B(B({},t),e):t;return n.dirty=!0,n}}))}}function o(){var i=e.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=F(r.option,i),r.get("enabled")){var o=t.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var u,c=e.getSeriesCount(),h=r.get(["data","maxCount"])||10,d=r.get(["series","maxCount"])||10,p=Math.min(c,d);if(!(c<1)){var f=s();if(f){var g=r.get(["general","withTitle"]);u=a(g,{title:f})}else u=r.get(["general","withoutTitle"]);var v=[],y=c>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=a(y,{seriesCount:c}),e.eachSeries((function(e,t){if(t<p){var n=void 0,i=e.get("name"),o=i?"withName":"withoutName";n=c>1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>h){var u=r.get(["data","partialData"]);n+=a(u,{displayCnt:h})}else n+=r.get(["data","allData"]);for(var d=r.get(["data","separator","middle"]),f=r.get(["data","separator","end"]),g=[],y=0;y<s.count();y++)if(y<h){var m=s.getName(y),x=s.getValues(y),_=r.get(["data",m?"withName":"withoutName"]);g.push(a(_,{name:m,value:x.join(d)}))}n+=g.join(d)+f,v.push(n)}}));var m=r.getModel(["series","multiple","separator"]),x=m.get("middle"),_=m.get("end");u+=v.join(x)+_,o.setAttribute("aria-label",u)}}}}function a(e,t){if(!ee(e))return e;var n=e;return G(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function s(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}function l(t){return e.getLocaleModel().get(["series","typeNames"])[t]||"自定义图"}}function X0(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},G(["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function K0(e){e.registerPreprocessor(X0),e.registerVisual(e.PRIORITY.VISUAL.ARIA,$0)}var J0={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Q0=function(){function e(e){var t=this._condVal=ee(e)?new RegExp(e):ue(e)?e:null;if(null==t){var n="";0,vg(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return ee(t)?this._condVal.test(e):!!ne(t)&&this._condVal.test(e+"")},e}(),e1=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),t1=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),n1=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),i1=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),r1=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),i=e?this.valueParser(n):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?i:n))return!1;return!0},e}();function o1(e,t){if(!0===e||!1===e){var n=new e1;return n.value=e,n}var i="";return u1(e)||vg(i),e.and?a1("and",e,t):e.or?a1("or",e,t):e.not?s1(e,t):l1(e,t)}function a1(e,t,n){var i=t[e],r="";J(i)||vg(r),i.length||vg(r);var o="and"===e?new t1:new n1;return o.children=W(i,(function(e){return o1(e,n)})),o.children.length||vg(r),o}function s1(e,t){var n=e.not,i="";u1(n)||vg(i);var r=new i1;return r.child=o1(n,t),r.child||vg(i),r}function l1(e,t){for(var n="",i=t.prepareGetValue(e),r=[],o=Y(e),a=e.parser,s=a?xg(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!t.valueGetterAttrMap.get(u)){var c=Ie(J0,u)?J0[u]:u,h=e[u],d=s?s(h):h,p=Mg(c,d)||"reg"===c&&new Q0(d);p||vg(n),r.push(p)}}r.length||vg(n);var f=new r1;return f.valueGetterParam=i,f.valueParser=s,f.getValue=t.getValue,f.subCondList=r,f}function u1(e){return ie(e)&&!q(e)}var c1=function(){function e(e,t){this._cond=o1(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function h1(e,t){return new c1(e,t)}var d1={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,i=h1(e.config,{valueGetterAttrMap:we({dimension:!0}),prepareGetValue:function(e){var t="",i=e.dimension;Ie(e,"dimension")||vg(t);var r=n.getDimensionInfo(i);return r||vg(t),{dimIdx:r.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),r=[],o=0,a=n.count();o<a;o++)t=n.getRawDataItem(o),i.evaluate()&&r.push(t);return{data:r}}};var p1={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i="",r=ga(n);r.length||vg(i);var o=[];G(r,(function(e){var n=e.dimension,r=e.order,a=e.parser,s=e.incomparable;if(null==n&&vg(i),"asc"!==r&&"desc"!==r&&vg(i),s&&"min"!==s&&"max"!==s){var l="";0,vg(l)}if("asc"!==r&&"desc"!==r){var u="";0,vg(u)}var c=t.getDimensionInfo(n);c||vg(i);var h=a?xg(a):null;a&&!h&&vg(i),o.push({dimIdx:c.index,parser:h,comparator:new wg(r,s)})}));var a=t.sourceFormat;a!==hp&&a!==dp&&vg(i);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var i=0;i<o.length;i++){var r=o[i],a=t.retrieveValueFromItem(e,r.dimIdx),s=t.retrieveValueFromItem(n,r.dimIdx);r.parser&&(a=r.parser(a),s=r.parser(s));var l=r.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function f1(e){e.registerTransform(d1),e.registerTransform(p1)}var g1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return o(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new $g(this),Xg(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Xg(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:vp},t}(op),v1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return o(t,e),t.type="dataset",t}(Ev);function y1(e){e.registerComponentModel(g1),e.registerComponentView(v1)}var m1=Sl.CMD;function x1(e,t){return Math.abs(e-t)<1e-5}function _1(e){var t,n,i,r,o,a=e.data,s=e.len(),l=[],u=0,c=0,h=0,d=0;function p(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function f(e,n,i,r){x1(e,i)&&x1(n,r)||t.push(e,n,i,r,i,r)}function g(e,n,i,r,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=n<e?-1:1,c=Math.cos(e),h=Math.sin(e),d=Math.cos(n),p=Math.sin(n),f=c*o+i,g=h*a+r,v=d*o+i,y=p*a+r,m=o*l*u,x=a*l*u;t.push(f-m*h,g+x*c,v+m*p,y-x*d,v,y)}for(var v=0;v<s;){var y=a[v++],m=1===v;switch(m&&(u=a[v],c=a[v+1],h=u,d=c,y!==m1.L&&y!==m1.C&&y!==m1.Q||(t=[h,d])),y){case m1.M:u=h=a[v++],c=d=a[v++],p(h,d);break;case m1.L:n=a[v++],i=a[v++],f(u,c,n,i),u=n,c=i;break;case m1.C:t.push(a[v++],a[v++],a[v++],a[v++],u=a[v++],c=a[v++]);break;case m1.Q:n=a[v++],i=a[v++],r=a[v++],o=a[v++],t.push(u+2/3*(n-u),c+2/3*(i-c),r+2/3*(n-r),o+2/3*(i-o),r,o),u=r,c=o;break;case m1.A:var x=a[v++],_=a[v++],b=a[v++],w=a[v++],S=a[v++],M=a[v++]+S;v+=1;var C=!a[v++];n=Math.cos(S)*b+x,i=Math.sin(S)*w+_,m?(h=n,d=i,p(h,d)):f(u,c,n,i),u=Math.cos(M)*b+x,c=Math.sin(M)*w+_;for(var I=(C?-1:1)*Math.PI/2,T=S;C?T>M:T<M;T+=I){var k=C?Math.max(T+I,M):Math.min(T+I,M);g(T,k,x,_,b,w)}break;case m1.R:h=u=a[v++],d=c=a[v++],n=h+a[v++],i=d+a[v++],p(n,d),f(n,d,n,i),f(n,i,h,i),f(h,i,h,d),f(h,d,n,d);break;case m1.Z:t&&f(u,c,h,d),u=h,c=d;break}}return t&&t.length>2&&l.push(t),l}function b1(e,t,n,i,r,o,a,s,l,u){if(x1(e,n)&&x1(t,i)&&x1(r,a)&&x1(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-e,p=s-t,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-e,v=i-t,y=r-a,m=o-s,x=g*g+v*v,_=y*y+m*m;if(x<h&&_<h)l.push(a,s);else{var b=d*g+p*v,w=-d*y-p*m,S=x-b*b,M=_-w*w;if(S<h&&b>=0&&M<h&&w>=0)l.push(a,s);else{var C=[],I=[];bn(e,n,r,a,.5,C),bn(t,i,o,s,.5,I),b1(C[0],I[0],C[1],I[1],C[2],I[2],C[3],I[3],l,u),b1(C[4],I[4],C[5],I[5],C[6],I[6],C[7],I[7],l,u)}}}}function w1(e,t){var n=_1(e),i=[];t=t||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++];b1(s,l,c,h,d,p,f,g,a,t),s=f,l=g}i.push(a)}return i}function S1(e,t,n){var i=e[t],r=e[1-t],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=a*s,h=n-c;if(h>0)for(u=0;u<h;u++)l[u%a]+=1;return l}function M1(e,t,n){for(var i=e.r0,r=e.r,o=e.startAngle,a=e.endAngle,s=Math.abs(a-o),l=s*r,u=r-i,c=l>Math.abs(u),h=S1([l,u],c?0:1,t),d=(c?s:u)/h.length,p=0;p<h.length;p++)for(var f=(c?u:s)/h[p],g=0;g<h[p];g++){var v={};c?(v.startAngle=o+d*p,v.endAngle=o+d*(p+1),v.r0=i+f*g,v.r=i+f*(g+1)):(v.startAngle=o+f*g,v.endAngle=o+f*(g+1),v.r0=i+d*p,v.r=i+d*(p+1)),v.clockwise=e.clockwise,v.cx=e.cx,v.cy=e.cy,n.push(v)}}function C1(e,t,n){for(var i=e.width,r=e.height,o=i>r,a=S1([i,r],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=e[s]/a.length,d=0;d<a.length;d++)for(var p=e[l]/a[d],f=0;f<a[d];f++){var g={};g[u]=d*h,g[c]=f*p,g[s]=h,g[l]=p,g.x+=e.x,g.y+=e.y,n.push(g)}}function I1(e,t,n,i){return e*i-n*t}function T1(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,h=s-o,d=I1(c,h,l,u);if(Math.abs(d)<1e-6)return null;var p=e-r,f=t-o,g=I1(p,f,c,h)/d;return g<0||g>1?null:new $r(g*l+e,g*u+t)}function k1(e,t,n){var i=new $r;$r.sub(i,n,t),i.normalize();var r=new $r;$r.sub(r,e,t);var o=r.dot(i);return o}function A1(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function D1(e,t,n){for(var i=e.length,r=[],o=0;o<i;o++){var a=e[o],s=e[(o+1)%i],l=T1(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&r.push({projPt:k1(l,t,n),pt:l,idx:o})}if(r.length<2)return[{points:e},{points:e}];r.sort((function(e,t){return e.projPt-t.projPt}));var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],f=[d],g=[p];for(o=u.idx+1;o<=c.idx;o++)A1(f,e[o].slice());A1(f,p),A1(f,d);for(o=c.idx+1;o<=u.idx+i;o++)A1(g,e[o%i].slice());return A1(g,d),A1(g,p),[{points:f},{points:g}]}function L1(e){var t=e.points,n=[],i=[];Ks(t,n,i);var r=new oo(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new $r,c=new $r;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),D1(t,u,c)}function P1(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);P1(e,o[0],r,i),P1(e,o[1],n-r,i)}return i}function O1(e,t){for(var n=[],i=0;i<t;i++)n.push(oy(e));return n}function R1(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function E1(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function N1(e,t){var n,i=[],r=e.shape;switch(e.type){case"rect":C1(r,t,i),n=du;break;case"sector":M1(r,t,i),n=Ay;break;case"circle":M1({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},t,i),n=Ay;break;default:var o=e.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=W(w1(e.getUpdatedPathProxy(),a),(function(e){return E1(e)})),l=s.length;if(0===l)P1(L1,{points:s[0]},t,i);else if(l===t)for(var u=0;u<l;u++)i.push({points:s[u]});else{var c=0,h=W(s,(function(e){var t=[],n=[];Ks(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return c+=i,{poly:e,area:i}}));h.sort((function(e,t){return t.area-e.area}));var d=t;for(u=0;u<l;u++){var p=h[u];if(d<=0)break;var f=u===l-1?d:Math.ceil(p.area/c*t);f<0||(P1(L1,{points:p.poly},f,i),d-=f)}}n=By;break}if(!n)return O1(e,t);var g=[];for(u=0;u<i.length;u++){var v=new n;v.setShape(i[u]),R1(e,v),g.push(v)}return g}function B1(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var r=[],o=[],a=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],d=l,p=2;p<s;){var f=a[p-2],g=a[p-1],v=a[p++],y=a[p++],m=a[p++],x=a[p++],_=a[p++],b=a[p++];if(d<=0)h.push(v,y,m,x,_,b);else{for(var w=Math.min(d,c-1)+1,S=1;S<=w;S++){var M=S/w;bn(f,v,m,_,M,r),bn(g,y,x,b,M,o),f=r[3],g=o[3],h.push(r[1],o[1],r[2],o[2],f,g),v=r[5],y=o[5],m=r[6],x=o[6]}d-=w-1}}return a===e?[h,t]:[e,h]}function F1(e,t){for(var n=e.length,i=e[n-2],r=e[n-1],o=[],a=0;a<t.length;)o[a++]=i,o[a++]=r;return o}function z1(e,t){for(var n,i,r,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,h=void 0;l?u?(n=B1(l,u),c=n[0],h=n[1],i=c,r=h):(h=F1(r||l,l),c=l):(c=F1(i||u,u),h=u),o.push(c),a.push(h)}return[o,a]}function V1(e){for(var t=0,n=0,i=0,r=e.length,o=0,a=r-2;o<r;a=o,o+=2){var s=e[a],l=e[a+1],u=e[o],c=e[o+1],h=s*c-u*l;t+=h,n+=(s+u)*h,i+=(l+c)*h}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function H1(e,t,n,i){for(var r=(e.length-2)/6,o=1/0,a=0,s=e.length,l=s-2,u=0;u<r;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=e[p]-n[0],g=e[p+1]-n[1],v=t[d]-i[0],y=t[d+1]-i[1],m=v-f,x=y-g;h+=m*m+x*x}h<o&&(o=h,a=u)}return a}function q1(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}function G1(e,t,n,i){for(var r,o=[],a=0;a<e.length;a++){var s=e[a],l=t[a],u=V1(s),c=V1(l);null==r&&(r=u[2]<0!==c[2]<0);var h=[],d=[],p=0,f=1/0,g=[],v=s.length;r&&(s=q1(s));for(var y=6*H1(s,l,u,c),m=v-2,x=0;x<m;x+=2){var _=(y+x)%m+2;h[x+2]=s[_]-u[0],h[x+3]=s[_+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],n>0)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),M=Math.cos(w),C=0;for(x=0;x<s.length;x+=2){var I=h[x],T=h[x+1],k=l[x]-c[0],A=l[x+1]-c[1],D=k*M-A*S,L=k*S+A*M;g[x]=D,g[x+1]=L;var P=D-I,O=L-T;C+=P*P+O*O}if(C<f){f=C,p=w;for(var R=0;R<g.length;R++)d[R]=g[R]}}else for(var E=0;E<v;E+=2)d[E]=l[E]-c[0],d[E+1]=l[E+1]-c[1];o.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return o}function W1(e){return e.__isCombineMorphing}var U1="__mOriginal_";function j1(e,t,n){var i=U1+t,r=e[i]||e[t];e[i]||(e[i]=e[t]);var o=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=o?o.apply(this,t):r.apply(this,t),a&&a.apply(this,t),e}}function Z1(e,t){var n=U1+t;e[n]&&(e[t]=e[n],e[n]=null)}function Y1(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=t[0]*o+t[2]*a+t[4],i[r++]=t[1]*o+t[3]*a+t[5]}}function $1(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),r=z1(_1(n),_1(i)),o=r[0],a=r[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&Y1(o,s),l&&Y1(a,l),j1(t,"updateTransform",{replace:u}),t.transform=null;var c=G1(o,a,10,Math.PI),h=[];j1(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,r=[],o=0;o<c.length;o++){var a=c[o],s=a.from,l=a.to,u=a.rotation*n,d=a.fromCp,p=a.toCp,f=Math.sin(u),g=Math.cos(u);je(r,d,p,n);for(var v=0;v<s.length;v+=2){var y=s[v],m=s[v+1],x=l[v],_=l[v+1],b=y*i+x*n,w=m*i+_*n;h[v]=b*g-w*f+r[0],h[v+1]=b*f+w*g+r[1]}var S=h[0],M=h[1];e.moveTo(S,M);for(v=2;v<s.length;){x=h[v++],_=h[v++];var C=h[v++],I=h[v++],T=h[v++],k=h[v++];S===x&&M===_&&C===T&&I===k?e.lineTo(T,k):e.bezierCurveTo(x,_,C,I,T,k),S=T,M=k}}}})}function X1(e,t,n){if(!e||!t)return t;var i=n.done,r=n.during;function o(){Z1(t,"buildPath"),Z1(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return $1(e,t),t.__morphT=0,t.animateTo({__morphT:1},F({during:function(e){t.dirtyShape(),r&&r(e)},done:function(){o(),i&&i()}},n)),t}function K1(e,t,n,i,r,o){var a=16;e=r===n?0:Math.round(32767*(e-n)/(r-n)),t=o===i?0:Math.round(32767*(t-i)/(o-i));for(var s,l=0,u=(1<<a)/2;u>0;u/=2){var c=0,h=0;(e&u)>0&&(c=1),(t&u)>0&&(h=1),l+=u*u*(3*c^h),0===h&&(1===c&&(e=u-1-e,t=u-1-t),s=e,e=t,t=s)}return l}function J1(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,o=W(e,(function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]})),a=W(o,(function(o,a){return{cp:o,z:K1(o[0],o[1],t,n,i,r),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function Q1(e){return N1(e.path,e.count)}function e2(){return{fromIndividuals:[],toIndividuals:[],count:0}}function t2(e,t,n){var i=[];function r(e){for(var t=0;t<e.length;t++){var n=e[t];W1(n)?r(n.childrenRef()):n instanceof $l&&i.push(n)}}r(e);var o=i.length;if(!o)return e2();var a=n.dividePath||Q1,s=a({path:t,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),e2();i=J1(i),s=J1(s);for(var l=n.done,u=n.during,c=n.individualDelay,h=new Zr,d=0;d<o;d++){var p=i[d],f=s[d];f.parent=t,f.copyTransform(h),c||$1(p,f)}function g(e){for(var t=0;t<s.length;t++)s[t].addSelfToZr(e)}function v(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Z1(t,"addSelfToZr"),Z1(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return s},j1(t,"addSelfToZr",{after:function(e){g(e)}}),j1(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<s.length;t++)s[t].removeSelfFromZr(e)}});var y=s.length;if(c){var m=y,x=function(){m--,0===m&&(v(),l&&l())};for(d=0;d<y;d++){var _=c?F({delay:(n.delay||0)+c(d,y,i[d],s[d]),done:x},n):n;X1(i[d],s[d],_)}}else t.__morphT=0,t.animateTo({__morphT:1},F({during:function(e){for(var n=0;n<y;n++){var i=s[n];i.__morphT=t.__morphT,i.dirtyShape()}u&&u(e)},done:function(){v();for(var t=0;t<e.length;t++)Z1(e[t],"updateTransform");l&&l()}},n));return t.__zr&&g(t.__zr),{fromIndividuals:i,toIndividuals:s,count:y}}function n2(e,t,n){var i=t.length,r=[],o=n.dividePath||Q1;function a(e){for(var t=0;t<e.length;t++){var n=e[t];W1(n)?a(n.childrenRef()):n instanceof $l&&r.push(n)}}if(W1(e)){a(e.childrenRef());var s=r.length;if(s<i)for(var l=0,u=s;u<i;u++)r.push(oy(r[l++%s]));r.length=i}else{r=o({path:e,count:i});var c=e.getComputedTransform();for(u=0;u<r.length;u++)r[u].setLocalTransform(c);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),e2()}r=J1(r),t=J1(t);var h=n.individualDelay;for(u=0;u<i;u++){var d=h?F({delay:(n.delay||0)+h(u,i,r[u],t[u])},n):n;X1(r[u],t[u],d)}return{fromIndividuals:r,toIndividuals:t,count:t.length}}function i2(e){return J(e[0])}function r2(e,t){for(var n=[],i=e.length,r=0;r<i;r++)n.push({one:e[r],many:[]});for(r=0;r<t.length;r++){var o=t[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(t[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var o2={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var r=oy(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function a2(e,t,n,i,r,o){if(e.length&&t.length){var a=Yc("update",i,r);if(a&&a.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);i2(e)&&(s=e,l=t),i2(t)&&(s=t,l=e);for(var h=s?s===e:e.length>t.length,d=s?r2(l,s):r2(h?t:e,[h?e:t]),p=0,f=0;f<d.length;f++)p+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)v(d[f],h,g,p),g+=d[f].many.length}}function v(e,t,i,r,a){var s=e.many,l=e.one;if(1!==s.length||a)for(var h=F({dividePath:o2[n],individualDelay:u&&function(e,t,n,o){return u(e+i,r)}},c),d=t?t2(s,l,h):n2(l,s,h),p=d.fromIndividuals,f=d.toIndividuals,g=p.length,y=0;y<g;y++){_=u?F({delay:u(y,g)},c):c;o(p[y],f[y],t?s[y]:e.one,t?e.one:s[y],_)}else{var m=t?s[0]:l,x=t?l:s[0];if(W1(m))v({many:[m],one:x},!0,i,r,!0);else{var _=u?F({delay:u(i,r)},c):c;X1(m,x,_),o(m,x,m,x,_)}}}}function s2(e){if(!e)return[];if(J(e)){for(var t=[],n=0;n<e.length;n++)t.push(s2(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof $l&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var l2=1e4,u2=Ba();function c2(e){for(var t=e.dimensions,n=0;n<t.length;n++){var i=e.getDimensionInfo(t[n]);if(i&&0===i.otherDims.itemGroupId)return t[n]}}function h2(e){var t=[];return G(e,(function(e){var n=e.data;if(!(n.count()>l2))for(var i=n.getIndices(),r=c2(n),o=0;o<i.length;o++)t.push({data:n,dim:e.dim||r,divide:e.divide,dataIndex:o})})),t}function d2(e,t,n){e.traverse((function(e){e instanceof $l&&Kc(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function p2(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function f2(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function g2(e,t,n){var i=Yc("update",n,t);i&&e.traverse((function(e){if(e instanceof qs){var t=ih(e);t&&e.animateFrom({style:t},i)}}))}function v2(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var r=e[i],o=t[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function y2(e,t,n){var i=h2(e),r=h2(t);function o(e,t,n,i,r){(n||e)&&t.animateFrom({style:n&&n!==e?B(B({},n.style),e.style):e.style},r)}function a(e){for(var t=0;t<e.length;t++)if(e[t].dim)return e[t].dim}var s=a(i),l=a(r),u=!1;function c(e,t){return function(n){var i=n.data,r=n.dataIndex;if(t)return i.getId(r);var o=i.hostModel&&i.hostModel.get("dataGroupId"),a=e?s||l:l||s,u=a&&i.getDimensionInfo(a),c=u&&u.ordinalMeta;if(u){var h=i.get(u.name,r);return c&&c.categories[h]||h+""}var d=i.getRawDataItem(r);return d&&d.groupId?d.groupId+"":o||i.getId(r)}}var h=v2(i,r),d={};if(!h)for(var p=0;p<r.length;p++){var f=r[p],g=f.data.getItemGraphicEl(f.dataIndex);g&&(d[g.id]=!0)}function v(e,t){var n=i[t],a=r[e],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),c=a.data.getItemGraphicEl(a.dataIndex);l!==c?l&&d[l.id]||c&&(f2(c),l?(f2(l),p2(l),u=!0,a2(s2(l),s2(c),a.divide,s,e,o)):d2(c,s,e)):c&&g2(c,a.dataIndex,s)}new wC(i,r,c(!0,h),c(!1,h),null,"multiple").update(v).updateManyToOne((function(e,t){var n=r[e],a=n.data,s=a.hostModel,l=a.getItemGraphicEl(n.dataIndex),c=j(W(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==l&&!d[e.id]}));l&&(f2(l),c.length?(G(c,(function(e){f2(e),p2(e)})),u=!0,a2(s2(c),s2(l),n.divide,s,e,o)):d2(l,s,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!d[a.id]){var s=j(W(e,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==a})),l=r[e[0]].data.hostModel;s.length&&(G(s,(function(e){return f2(e)})),a?(f2(a),p2(a),u=!0,a2(s2(a),s2(s),n.divide,l,e[0],o)):G(s,(function(t){return d2(t,l,e[0])})))}})).updateManyToMany((function(e,t){new wC(t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return r[e].data.getId(r[e].dataIndex)})).update((function(n,i){v(e[n],t[i])})).execute()})).execute(),u&&G(t,(function(e){var t=e.data,i=t.hostModel,r=i&&n.getViewOfSeriesModel(i),o=Yc("update",i,0);r&&i.isAnimationEnabled()&&o&&o.duration>0&&r.group.traverse((function(e){e instanceof $l&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function m2(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function x2(e){return J(e)?e.sort().join(","):e}function _2(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function b2(e,t){var n=we(),i=we(),r=we();return G(e.oldSeries,(function(t,n){var o=e.oldData[n],a=m2(t),s=x2(a);i.set(s,o),J(a)&&G(a,(function(e){r.set(e,{data:o,key:s})}))})),G(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),o=m2(e),a=x2(o),s=i.get(a);if(s)n.set(a,{oldSeries:[{divide:_2(s),data:s}],newSeries:[{divide:_2(t),data:t}]});else if(J(o)){0;var l=[];G(o,(function(e){var t=i.get(e);t&&l.push({divide:_2(t),data:t})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:t,divide:_2(t)}]})}else{var u=r.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:_2(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:t,divide:_2(t)})}}}})),n}function w2(e,t){for(var n=0;n<e.length;n++){var i=null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id;if(i)return n}}function S2(e,t,n,i){var r=[],o=[];G(ga(e.from),(function(e){var n=w2(t.oldSeries,e);n>=0&&r.push({data:t.oldData[n],divide:_2(t.oldData[n]),dim:e.dimension})})),G(ga(e.to),(function(e){var t=w2(n.updatedSeries,e);if(t>=0){var i=n.updatedSeries[t].getData();o.push({data:i,divide:_2(i),dim:e.dimension})}})),r.length>0&&o.length>0&&y2(r,o,i)}function M2(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){G(ga(n.seriesTransition),(function(e){G(ga(e.to),(function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][Sv]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var i=u2(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)G(ga(r),(function(e){S2(e,i,n,t)}));else{var o=b2(i,n);G(o.keys(),(function(e){var n=o.get(e);y2(n.oldSeries,n.newSeries,t)}))}G(n.updatedSeries,(function(e){e[Sv]&&(e[Sv]=!1)}))}for(var a=e.getSeries(),s=i.oldSeries=[],l=i.oldData=[],u=0;u<a.length;u++){var c=a[u].getData();c.count()<l2&&(s.push(a[u]),l.push(c))}}))}jw([US]),jw([mC]),jw([mT,gk,Fk,FL,oP,xR,yE,UN,lF,mF,AF,RV,dH,LH,rq,dq,Eq,jq,wG,PG,KG,IU]),jw(Mj),jw(vZ),jw(mR),jw(qZ),jw(OV),jw(JZ),jw(vY),jw(eX),jw(NX),jw(Sj),jw(vK),jw(xK),jw(qK),jw(fJ),jw(IJ),jw(zJ),jw(fQ),jw($Q),jw(LQ),jw(YQ),jw(U0),jw(B0),jw(W0),jw(K0),jw(f1),jw(y1),jw(M2),jw(OS)},4260:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n}},3340:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{BC:()=>i})},8339:(e,t,n)=>{"use strict";n.d(t,{p7:()=>nt,r5:()=>V});var i=n(3673),r=n(1959);
/*!
* vue-router v4.1.3
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/
const o="undefined"!==typeof window;function a(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const s=Object.assign;function l(e,t){const n={};for(const i in t){const r=t[i];n[i]=c(r)?r.map(e):e(r)}return n}const u=()=>{},c=Array.isArray;const h=/\/$/,d=e=>e.replace(h,"");function p(e,t,n="/"){let i,r={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(i=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),r=e(o)),s>-1&&(i=i||t.slice(0,s),a=t.slice(s,t.length)),i=b(null!=i?i:t,n),{fullPath:i+(o&&"?")+o+a,path:i,query:r,hash:a}}function f(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function g(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function v(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&y(t.matched[i],n.matched[r])&&m(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function y(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function m(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!x(e[n],t[n]))return!1;return!0}function x(e,t){return c(e)?_(e,t):c(t)?_(t,e):e===t}function _(e,t){return c(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function b(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let r,o,a=n.length-1;for(r=0;r<i.length;r++)if(o=i[r],"."!==o){if(".."!==o)break;a>1&&a--}return n.slice(0,a).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var w,S;(function(e){e["pop"]="pop",e["push"]="push"})(w||(w={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(S||(S={}));function M(e){if(!e)if(o){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),d(e)}const C=/^[^#]+#/;function I(e,t){return e.replace(C,"#")+t}function T(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const k=()=>({left:window.pageXOffset,top:window.pageYOffset});function A(e){let t;if("el"in e){const n=e.el,i="string"===typeof n&&n.startsWith("#");0;const r="string"===typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=T(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function D(e,t){const n=history.state?history.state.position-t:-1;return n+e}const L=new Map;function P(e,t){L.set(e,t)}function O(e){const t=L.get(e);return L.delete(e),t}let R=()=>location.protocol+"//"+location.host;function E(e,t){const{pathname:n,search:i,hash:r}=t,o=e.indexOf("#");if(o>-1){let t=r.includes(e.slice(o))?e.slice(o).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),g(n,"")}const a=g(n,e);return a+i+r}function N(e,t,n,i){let r=[],o=[],a=null;const l=({state:o})=>{const s=E(e,location),l=n.value,u=t.value;let c=0;if(o){if(n.value=s,t.value=o,a&&a===l)return void(a=null);c=u?o.position-u.position:0}else i(s);r.forEach((e=>{e(n.value,l,{delta:c,type:w.pop,direction:c?c>0?S.forward:S.back:S.unknown})}))};function u(){a=n.value}function c(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return o.push(t),t}function h(){const{history:e}=window;e.state&&e.replaceState(s({},e.state,{scroll:k()}),"")}function d(){for(const e of o)e();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h),{pauseListeners:u,listen:c,destroy:d}}function B(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?k():null}}function F(e){const{history:t,location:n}=window,i={value:E(e,n)},r={value:t.state};function o(i,o,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+i:R()+e+i;try{t[a?"replaceState":"pushState"](o,"",l),r.value=o}catch(u){console.error(u),n[a?"replace":"assign"](l)}}function a(e,n){const a=s({},t.state,B(r.value.back,e,r.value.forward,!0),n,{position:r.value.position});o(e,a,!0),i.value=e}function l(e,n){const a=s({},r.value,t.state,{forward:e,scroll:k()});o(a.current,a,!0);const l=s({},B(i.value,e,null),{position:a.position+1},n);o(e,l,!1),i.value=e}return r.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:r,push:l,replace:a}}function z(e){e=M(e);const t=F(e),n=N(e,t.state,t.location,t.replace);function i(e,t=!0){t||n.pauseListeners(),history.go(e)}const r=s({location:"",base:e,go:i,createHref:I.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function V(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),z(e)}function H(e){return"string"===typeof e||e&&"object"===typeof e}function q(e){return"string"===typeof e||"symbol"===typeof e}const G={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},W=Symbol("");var U;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(U||(U={}));function j(e,t){return s(new Error,{type:e,[W]:!0},t)}function Z(e,t){return e instanceof Error&&W in e&&(null==t||!!(e.type&t))}const Y="[^/]+?",$={sensitive:!1,strict:!1,start:!0,end:!0},X=/[.+*?^${}()[\]/\\]/g;function K(e,t){const n=s({},$,t),i=[];let r=n.start?"^":"";const o=[];for(const s of e){const e=s.length?[]:[90];n.strict&&!s.length&&(r+="/");for(let t=0;t<s.length;t++){const i=s[t];let a=40+(n.sensitive?.25:0);if(0===i.type)t||(r+="/"),r+=i.value.replace(X,"\\$&"),a+=40;else if(1===i.type){const{value:e,repeatable:n,optional:l,regexp:u}=i;o.push({name:e,repeatable:n,optional:l});const c=u||Y;if(c!==Y){a+=10;try{new RegExp(`(${c})`)}catch(h){throw new Error(`Invalid custom RegExp for param "${e}" (${c}): `+h.message)}}let d=n?`((?:${c})(?:/(?:${c}))*)`:`(${c})`;t||(d=l&&s.length<2?`(?:/${d})`:"/"+d),l&&(d+="?"),r+=d,a+=20,l&&(a+=-8),n&&(a+=-20),".*"===c&&(a+=-50)}e.push(a)}i.push(e)}if(n.strict&&n.end){const e=i.length-1;i[e][i[e].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const a=new RegExp(r,n.sensitive?"":"i");function l(e){const t=e.match(a),n={};if(!t)return null;for(let i=1;i<t.length;i++){const e=t[i]||"",r=o[i-1];n[r.name]=e&&r.repeatable?e.split("/"):e}return n}function u(t){let n="",i=!1;for(const r of e){i&&n.endsWith("/")||(n+="/"),i=!1;for(const e of r)if(0===e.type)n+=e.value;else if(1===e.type){const{value:o,repeatable:a,optional:s}=e,l=o in t?t[o]:"";if(c(l)&&!a)throw new Error(`Provided param "${o}" is an array but it is not repeatable (* or + modifiers)`);const u=c(l)?l.join("/"):l;if(!u){if(!s)throw new Error(`Missing required param "${o}"`);r.length<2&&(n.endsWith("/")?n=n.slice(0,-1):i=!0)}n+=u}}return n||"/"}return{re:a,score:i,keys:o,parse:l,stringify:u}}function J(e,t){let n=0;while(n<e.length&&n<t.length){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function Q(e,t){let n=0;const i=e.score,r=t.score;while(n<i.length&&n<r.length){const e=J(i[n],r[n]);if(e)return e;n++}if(1===Math.abs(r.length-i.length)){if(ee(i))return 1;if(ee(r))return-1}return r.length-i.length}function ee(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const te={type:0,value:""},ne=/[a-zA-Z0-9_]/;function ie(e){if(!e)return[[]];if("/"===e)return[[te]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${u}": ${e}`)}let n=0,i=n;const r=[];let o;function a(){o&&r.push(o),o=[]}let s,l=0,u="",c="";function h(){u&&(0===n?o.push({type:0,value:u}):1===n||2===n||3===n?(o.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function d(){u+=s}while(l<e.length)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(u&&h(),a()):":"===s?(h(),n=1):d();break;case 4:d(),n=i;break;case 1:"("===s?n=2:ne.test(s)?d():(h(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==c[c.length-1]?c=c.slice(0,-1)+s:n=3:c+=s;break;case 3:h(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,c="";break;default:t("Unknown state");break}else i=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${u}"`),h(),a(),r}function re(e,t,n){const i=K(ie(e.path),n);const r=s(i,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf===!t.record.aliasOf&&t.children.push(r),r}function oe(e,t){const n=[],i=new Map;function r(e){return i.get(e)}function o(e,n,i){const r=!i,l=se(e);l.aliasOf=i&&i.record;const h=he(t,e),d=[l];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)d.push(s({},l,{components:i?i.record.components:l.components,path:e,aliasOf:i?i.record:l}))}let p,f;for(const t of d){const{path:s}=t;if(n&&"/"!==s[0]){const e=n.record.path,i="/"===e[e.length-1]?"":"/";t.path=n.record.path+(s&&i+s)}if(p=re(t,n,h),i?i.alias.push(p):(f=f||p,f!==p&&f.alias.push(p),r&&e.name&&!ue(p)&&a(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)o(e[t],p,i&&i.children[t])}i=i||p,c(p)}return f?()=>{a(f)}:u}function a(e){if(q(e)){const t=i.get(e);t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function l(){return n}function c(e){let t=0;while(t<n.length&&Q(e,n[t])>=0&&(e.record.path!==n[t].record.path||!de(e,n[t])))t++;n.splice(t,0,e),e.record.name&&!ue(e)&&i.set(e.record.name,e)}function h(e,t){let r,o,a,l={};if("name"in e&&e.name){if(r=i.get(e.name),!r)throw j(1,{location:e});a=r.record.name,l=s(ae(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params),o=r.stringify(l)}else if("path"in e)o=e.path,r=n.find((e=>e.re.test(o))),r&&(l=r.parse(o),a=r.record.name);else{if(r=t.name?i.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw j(1,{location:e,currentLocation:t});a=r.record.name,l=s({},t.params,e.params),o=r.stringify(l)}const u=[];let c=r;while(c)u.unshift(c.record),c=c.parent;return{name:a,path:o,params:l,matched:u,meta:ce(u)}}return t=he({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:h,removeRoute:a,getRoutes:l,getRecordMatcher:r}}function ae(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function se(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:le(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function le(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="boolean"===typeof n?n:n[i];return t}function ue(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ce(e){return e.reduce(((e,t)=>s(e,t.meta)),{})}function he(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function de(e,t){return t.children.some((t=>t===e||de(e,t)))}const pe=/#/g,fe=/&/g,ge=/\//g,ve=/=/g,ye=/\?/g,me=/\+/g,xe=/%5B/g,_e=/%5D/g,be=/%5E/g,we=/%60/g,Se=/%7B/g,Me=/%7C/g,Ce=/%7D/g,Ie=/%20/g;function Te(e){return encodeURI(""+e).replace(Me,"|").replace(xe,"[").replace(_e,"]")}function ke(e){return Te(e).replace(Se,"{").replace(Ce,"}").replace(be,"^")}function Ae(e){return Te(e).replace(me,"%2B").replace(Ie,"+").replace(pe,"%23").replace(fe,"%26").replace(we,"`").replace(Se,"{").replace(Ce,"}").replace(be,"^")}function De(e){return Ae(e).replace(ve,"%3D")}function Le(e){return Te(e).replace(pe,"%23").replace(ye,"%3F")}function Pe(e){return null==e?"":Le(e).replace(ge,"%2F")}function Oe(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Re(e){const t={};if(""===e||"?"===e)return t;const n="?"===e[0],i=(n?e.slice(1):e).split("&");for(let r=0;r<i.length;++r){const e=i[r].replace(me," "),n=e.indexOf("="),o=Oe(n<0?e:e.slice(0,n)),a=n<0?null:Oe(e.slice(n+1));if(o in t){let e=t[o];c(e)||(e=t[o]=[e]),e.push(a)}else t[o]=a}return t}function Ee(e){let t="";for(let n in e){const i=e[n];if(n=De(n),null==i){void 0!==i&&(t+=(t.length?"&":"")+n);continue}const r=c(i)?i.map((e=>e&&Ae(e))):[i&&Ae(i)];r.forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Ne(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=c(i)?i.map((e=>null==e?null:""+e)):null==i?i:""+i)}return t}const Be=Symbol(""),Fe=Symbol(""),ze=Symbol(""),Ve=Symbol(""),He=Symbol("");function qe(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Ge(e,t,n,i,r){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise(((a,s)=>{const l=e=>{!1===e?s(j(4,{from:n,to:t})):e instanceof Error?s(e):H(e)?s(j(2,{from:t,to:e})):(o&&i.enterCallbacks[r]===o&&"function"===typeof e&&o.push(e),a())},u=e.call(i&&i.instances[r],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch((e=>s(e)))}))}function We(e,t,n,i){const r=[];for(const o of e){0;for(const e in o.components){let s=o.components[e];if("beforeRouteEnter"===t||o.instances[e])if(Ue(s)){const a=s.__vccOpts||s,l=a[t];l&&r.push(Ge(l,n,i,o,e))}else{let l=s();0,r.push((()=>l.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${o.path}"`));const s=a(r)?r.default:r;o.components[e]=s;const l=s.__vccOpts||s,u=l[t];return u&&Ge(u,n,i,o,e)()}))))}}}return r}function Ue(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function je(e){const t=(0,i.f3)(ze),n=(0,i.f3)(Ve),o=(0,i.Fl)((()=>t.resolve((0,r.SU)(e.to)))),a=(0,i.Fl)((()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],r=n.matched;if(!i||!r.length)return-1;const a=r.findIndex(y.bind(null,i));if(a>-1)return a;const s=Ke(e[t-2]);return t>1&&Ke(i)===s&&r[r.length-1].path!==s?r.findIndex(y.bind(null,e[t-2])):a})),s=(0,i.Fl)((()=>a.value>-1&&Xe(n.params,o.value.params))),l=(0,i.Fl)((()=>a.value>-1&&a.value===n.matched.length-1&&m(n.params,o.value.params)));function c(n={}){return $e(n)?t[(0,r.SU)(e.replace)?"replace":"push"]((0,r.SU)(e.to)).catch(u):Promise.resolve()}return{route:o,href:(0,i.Fl)((()=>o.value.href)),isActive:s,isExactActive:l,navigate:c}}const Ze=(0,i.aZ)({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:je,setup(e,{slots:t}){const n=(0,r.qj)(je(e)),{options:o}=(0,i.f3)(ze),a=(0,i.Fl)((()=>({[Je(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Je(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:(0,i.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},r)}}}),Ye=Ze;function $e(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){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 Xe(e,t){for(const n in t){const i=t[n],r=e[n];if("string"===typeof i){if(i!==r)return!1}else if(!c(r)||r.length!==i.length||i.some(((e,t)=>e!==r[t])))return!1}return!0}function Ke(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Je=(e,t,n)=>null!=e?e:null!=t?t:n,Qe=(0,i.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=(0,i.f3)(He),a=(0,i.Fl)((()=>e.route||o.value)),l=(0,i.f3)(Fe,0),u=(0,i.Fl)((()=>{let e=(0,r.SU)(l);const{matched:t}=a.value;let n;while((n=t[e])&&!n.components)e++;return e})),c=(0,i.Fl)((()=>a.value.matched[u.value]));(0,i.JJ)(Fe,(0,i.Fl)((()=>u.value+1))),(0,i.JJ)(Be,c),(0,i.JJ)(He,a);const h=(0,r.iH)();return(0,i.YP)((()=>[h.value,c.value,e.name]),(([e,t,n],[i,r,o])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&y(t,r)&&i||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=a.value,o=e.name,l=c.value,u=l&&l.components[o];if(!u)return et(n.default,{Component:u,route:r});const d=l.props[o],p=d?!0===d?r.params:"function"===typeof d?d(r):d:null,f=e=>{e.component.isUnmounted&&(l.instances[o]=null)},g=(0,i.h)(u,s({},p,t,{onVnodeUnmounted:f,ref:h}));return et(n.default,{Component:g,route:r})||g}}});function et(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const tt=Qe;function nt(e){const t=oe(e.routes,e),n=e.parseQuery||Re,a=e.stringifyQuery||Ee,h=e.history;const d=qe(),g=qe(),y=qe(),m=(0,r.XI)(G);let x=G;o&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const _=l.bind(null,(e=>""+e)),b=l.bind(null,Pe),S=l.bind(null,Oe);function M(e,n){let i,r;return q(e)?(i=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,i)}function C(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function I(){return t.getRoutes().map((e=>e.record))}function T(e){return!!t.getRecordMatcher(e)}function L(e,i){if(i=s({},i||m.value),"string"===typeof e){const r=p(n,e,i.path),o=t.resolve({path:r.path},i),a=h.createHref(r.fullPath);return s(r,o,{params:S(o.params),hash:Oe(r.hash),redirectedFrom:void 0,href:a})}let r;if("path"in e)r=s({},e,{path:p(n,e.path,i.path).path});else{const t=s({},e.params);for(const e in t)null==t[e]&&delete t[e];r=s({},e,{params:b(e.params)}),i.params=b(i.params)}const o=t.resolve(r,i),l=e.hash||"";o.params=_(S(o.params));const u=f(a,s({},e,{hash:ke(l),path:o.path})),c=h.createHref(u);return s({fullPath:u,hash:l,query:a===Ee?Ne(e.query):e.query||{}},o,{redirectedFrom:void 0,href:c})}function R(e){return"string"===typeof e?p(n,e,m.value.path):s({},e)}function E(e,t){if(x!==e)return j(8,{from:t,to:e})}function N(e){return z(e)}function B(e){return N(s(R(e),{replace:!0}))}function F(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let i="function"===typeof n?n(e):n;return"string"===typeof i&&(i=i.includes("?")||i.includes("#")?i=R(i):{path:i},i.params={}),s({query:e.query,hash:e.hash,params:"path"in i?{}:e.params},i)}}function z(e,t){const n=x=L(e),i=m.value,r=e.state,o=e.force,l=!0===e.replace,u=F(n);if(u)return z(s(R(u),{state:r,force:o,replace:l}),t||n);const c=n;let h;return c.redirectedFrom=t,!o&&v(a,i,n)&&(h=j(16,{to:c,from:i}),ne(i,i,!0,!1)),(h?Promise.resolve(h):H(c,i)).catch((e=>Z(e)?Z(e,2)?e:te(e):Q(e,c,i))).then((e=>{if(e){if(Z(e,2))return z(s({replace:l},R(e.to),{state:r,force:o}),t||c)}else e=U(c,i,!0,l,r);return W(c,i,e),e}))}function V(e,t){const n=E(e,t);return n?Promise.reject(n):Promise.resolve()}function H(e,t){let n;const[i,r,o]=rt(e,t);n=We(i.reverse(),"beforeRouteLeave",e,t);for(const s of i)s.leaveGuards.forEach((i=>{n.push(Ge(i,e,t))}));const a=V.bind(null,e,t);return n.push(a),it(n).then((()=>{n=[];for(const i of d.list())n.push(Ge(i,e,t));return n.push(a),it(n)})).then((()=>{n=We(r,"beforeRouteUpdate",e,t);for(const i of r)i.updateGuards.forEach((i=>{n.push(Ge(i,e,t))}));return n.push(a),it(n)})).then((()=>{n=[];for(const i of e.matched)if(i.beforeEnter&&!t.matched.includes(i))if(c(i.beforeEnter))for(const r of i.beforeEnter)n.push(Ge(r,e,t));else n.push(Ge(i.beforeEnter,e,t));return n.push(a),it(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=We(o,"beforeRouteEnter",e,t),n.push(a),it(n)))).then((()=>{n=[];for(const i of g.list())n.push(Ge(i,e,t));return n.push(a),it(n)})).catch((e=>Z(e,8)?e:Promise.reject(e)))}function W(e,t,n){for(const i of y.list())i(e,t,n)}function U(e,t,n,i,r){const a=E(e,t);if(a)return a;const l=t===G,u=o?history.state:{};n&&(i||l?h.replace(e.fullPath,s({scroll:l&&u&&u.scroll},r)):h.push(e.fullPath,r)),m.value=e,ne(e,t,n,l),te()}let Y;function $(){Y||(Y=h.listen(((e,t,n)=>{if(!se.listening)return;const i=L(e),r=F(i);if(r)return void z(s(r,{replace:!0}),i).catch(u);x=i;const a=m.value;o&&P(D(a.fullPath,n.delta),k()),H(i,a).catch((e=>Z(e,12)?e:Z(e,2)?(z(e.to,i).then((e=>{Z(e,20)&&!n.delta&&n.type===w.pop&&h.go(-1,!1)})).catch(u),Promise.reject()):(n.delta&&h.go(-n.delta,!1),Q(e,i,a)))).then((e=>{e=e||U(i,a,!1),e&&(n.delta&&!Z(e,8)?h.go(-n.delta,!1):n.type===w.pop&&Z(e,20)&&h.go(-1,!1)),W(i,a,e)})).catch(u)})))}let X,K=qe(),J=qe();function Q(e,t,n){te(e);const i=J.list();return i.length?i.forEach((i=>i(e,t,n))):console.error(e),Promise.reject(e)}function ee(){return X&&m.value!==G?Promise.resolve():new Promise(((e,t)=>{K.add([e,t])}))}function te(e){return X||(X=!e,$(),K.list().forEach((([t,n])=>e?n(e):t())),K.reset()),e}function ne(t,n,r,a){const{scrollBehavior:s}=e;if(!o||!s)return Promise.resolve();const l=!r&&O(D(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return(0,i.Y3)().then((()=>s(t,n,l))).then((e=>e&&A(e))).catch((e=>Q(e,t,n)))}const ie=e=>h.go(e);let re;const ae=new Set,se={currentRoute:m,listening:!0,addRoute:M,removeRoute:C,hasRoute:T,getRoutes:I,resolve:L,options:e,push:N,replace:B,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:d.add,beforeResolve:g.add,afterEach:y.add,onError:J.add,isReady:ee,install(e){const t=this;e.component("RouterLink",Ye),e.component("RouterView",tt),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,r.SU)(m)}),o&&!re&&m.value===G&&(re=!0,N(h.location).catch((e=>{0})));const n={};for(const r in G)n[r]=(0,i.Fl)((()=>m.value[r]));e.provide(ze,t),e.provide(Ve,(0,r.qj)(n)),e.provide(He,m);const a=e.unmount;ae.add(e),e.unmount=function(){ae.delete(e),ae.size<1&&(x=G,Y&&Y(),Y=null,m.value=G,re=!1,X=!1),a()}}};return se}function it(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function rt(e,t){const n=[],i=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const o=t.matched[a];o&&(e.matched.find((e=>y(e,o)))?i.push(o):n.push(o));const s=e.matched[a];s&&(t.matched.find((e=>y(e,s)))||r.push(s))}return[n,i,r]}}}]);