vite-bundle-explorer 0.3.4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -27
- package/bin/index.js +2 -0
- package/dist-plugin/stats-plugin.js +16 -19
- package/dist-ui/assets/index-Bam0Jqju.js +63 -0
- package/dist-ui/assets/index-BjwEoC8D.css +1 -0
- package/dist-ui/index.html +2 -2
- package/package.json +12 -3
- package/dist-ui/assets/index-D-ZNVfN7.css +0 -1
- package/dist-ui/assets/index-DHfe3O-k.js +0 -63
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();/**
|
|
2
|
+
* @vue/shared v3.5.17
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Zf(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const Ie={},ho=[],Mr=()=>{},nD=()=>!1,Tl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),_p=t=>t.startsWith("onUpdate:"),Xe=Object.assign,bp=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},iD=Object.prototype.hasOwnProperty,Be=(t,e)=>iD.call(t,e),ie=Array.isArray,vo=t=>Lo(t)==="[object Map]",xa=t=>Lo(t)==="[object Set]",gm=t=>Lo(t)==="[object Date]",aD=t=>Lo(t)==="[object RegExp]",pe=t=>typeof t=="function",Je=t=>typeof t=="string",Gr=t=>typeof t=="symbol",Ue=t=>t!==null&&typeof t=="object",wp=t=>(Ue(t)||pe(t))&&pe(t.then)&&pe(t.catch),jb=Object.prototype.toString,Lo=t=>jb.call(t),oD=t=>Lo(t).slice(8,-1),Jf=t=>Lo(t)==="[object Object]",Sp=t=>Je(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,po=Zf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Qf=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},sD=/-(\w)/g,bt=Qf(t=>t.replace(sD,(e,r)=>r?r.toUpperCase():"")),lD=/\B([A-Z])/g,tr=Qf(t=>t.replace(lD,"-$1").toLowerCase()),Cl=Qf(t=>t.charAt(0).toUpperCase()+t.slice(1)),go=Qf(t=>t?`on${Cl(t)}`:""),Ht=(t,e)=>!Object.is(t,e),mo=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},$d=(t,e,r,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},lf=t=>{const e=parseFloat(t);return isNaN(e)?t:e},uf=t=>{const e=Je(t)?Number(t):NaN;return isNaN(e)?t:e};let mm;const ec=()=>mm||(mm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),uD="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",fD=Zf(uD);function On(t){if(ie(t)){const e={};for(let r=0;r<t.length;r++){const n=t[r],i=Je(n)?vD(n):On(n);if(i)for(const a in i)e[a]=i[a]}return e}else if(Je(t)||Ue(t))return t}const cD=/;(?![^(]*\))/g,hD=/:([^]+)/,dD=/\/\*[^]*?\*\//g;function vD(t){const e={};return t.replace(dD,"").split(cD).forEach(r=>{if(r){const n=r.split(hD);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function un(t){let e="";if(Je(t))e=t;else if(ie(t))for(let r=0;r<t.length;r++){const n=un(t[r]);n&&(e+=n+" ")}else if(Ue(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}function qb(t){if(!t)return null;let{class:e,style:r}=t;return e&&!Je(e)&&(t.class=un(e)),r&&(t.style=On(r)),t}const pD="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gD=Zf(pD);function Zb(t){return!!t||t===""}function mD(t,e){if(t.length!==e.length)return!1;let r=!0;for(let n=0;r&&n<t.length;n++)r=pi(t[n],e[n]);return r}function pi(t,e){if(t===e)return!0;let r=gm(t),n=gm(e);if(r||n)return r&&n?t.getTime()===e.getTime():!1;if(r=Gr(t),n=Gr(e),r||n)return t===e;if(r=ie(t),n=ie(e),r||n)return r&&n?mD(t,e):!1;if(r=Ue(t),n=Ue(e),r||n){if(!r||!n)return!1;const i=Object.keys(t).length,a=Object.keys(e).length;if(i!==a)return!1;for(const o in t){const s=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(s&&!l||!s&&l||!pi(t[o],e[o]))return!1}}return String(t)===String(e)}function tc(t,e){return t.findIndex(r=>pi(r,e))}const Jb=t=>!!(t&&t.__v_isRef===!0),zt=t=>Je(t)?t:t==null?"":ie(t)||Ue(t)&&(t.toString===jb||!pe(t.toString))?Jb(t)?zt(t.value):JSON.stringify(t,Qb,2):String(t),Qb=(t,e)=>Jb(e)?Qb(t,e.value):vo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i],a)=>(r[jc(n,a)+" =>"]=i,r),{})}:xa(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>jc(r))}:Gr(e)?jc(e):Ue(e)&&!ie(e)&&!Jf(e)?String(e):e,jc=(t,e="")=>{var r;return Gr(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/**
|
|
6
|
+
* @vue/reactivity v3.5.17
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let Mt;class xp{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Mt,!e&&Mt&&(this.index=(Mt.scopes||(Mt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].pause();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].resume();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].resume()}}run(e){if(this._active){const r=Mt;try{return Mt=this,e()}finally{Mt=r}}}on(){++this._on===1&&(this.prevScope=Mt,Mt=this)}off(){this._on>0&&--this._on===0&&(Mt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Tp(t){return new xp(t)}function rc(){return Mt}function Cp(t,e=!1){Mt&&Mt.cleanups.push(t)}let je;const qc=new WeakSet;class Xs{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Mt&&Mt.active&&Mt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,qc.has(this)&&(qc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tw(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ym(this),rw(this);const e=je,r=Hr;je=this,Hr=!0;try{return this.fn()}finally{nw(this),je=e,Hr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ip(e);this.deps=this.depsTail=void 0,ym(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?qc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Gd(this)&&this.run()}get dirty(){return Gd(this)}}let ew=0,Is,Ms;function tw(t,e=!1){if(t.flags|=8,e){t.next=Ms,Ms=t;return}t.next=Is,Is=t}function Dp(){ew++}function Ap(){if(--ew>0)return;if(Ms){let e=Ms;for(Ms=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;Is;){let e=Is;for(Is=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function rw(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function nw(t){let e,r=t.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),Ip(n),yD(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=r}function Gd(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(iw(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function iw(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Ks)||(t.globalVersion=Ks,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Gd(t))))return;t.flags|=2;const e=t.dep,r=je,n=Hr;je=t,Hr=!0;try{rw(t);const i=t.fn(t._value);(e.version===0||Ht(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{je=r,Hr=n,nw(t),t.flags&=-3}}function Ip(t,e=!1){const{dep:r,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)Ip(a,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function yD(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}function _D(t,e){t.effect instanceof Xs&&(t=t.effect.fn);const r=new Xs(t);e&&Xe(r,e);try{r.run()}catch(i){throw r.stop(),i}const n=r.run.bind(r);return n.effect=r,n}function bD(t){t.effect.stop()}let Hr=!0;const aw=[];function In(){aw.push(Hr),Hr=!1}function Mn(){const t=aw.pop();Hr=t===void 0?!0:t}function ym(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const r=je;je=void 0;try{e()}finally{je=r}}}let Ks=0;class wD{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class nc{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!je||!Hr||je===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==je)r=this.activeLink=new wD(je,this),je.deps?(r.prevDep=je.depsTail,je.depsTail.nextDep=r,je.depsTail=r):je.deps=je.depsTail=r,ow(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=je.depsTail,r.nextDep=void 0,je.depsTail.nextDep=r,je.depsTail=r,je.deps===r&&(je.deps=n)}return r}trigger(e){this.version++,Ks++,this.notify(e)}notify(e){Dp();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Ap()}}}function ow(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)ow(n)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}const ff=new WeakMap,oa=Symbol(""),Ud=Symbol(""),js=Symbol("");function Pt(t,e,r){if(Hr&&je){let n=ff.get(t);n||ff.set(t,n=new Map);let i=n.get(r);i||(n.set(r,i=new nc),i.map=n,i.key=r),i.track()}}function wn(t,e,r,n,i,a){const o=ff.get(t);if(!o){Ks++;return}const s=l=>{l&&l.trigger()};if(Dp(),e==="clear")o.forEach(s);else{const l=ie(t),u=l&&Sp(r);if(l&&r==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===js||!Gr(h)&&h>=f)&&s(c)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(js)),e){case"add":l?u&&s(o.get("length")):(s(o.get(oa)),vo(t)&&s(o.get(Ud)));break;case"delete":l||(s(o.get(oa)),vo(t)&&s(o.get(Ud)));break;case"set":vo(t)&&s(o.get(oa));break}}Ap()}function SD(t,e){const r=ff.get(t);return r&&r.get(e)}function Pa(t){const e=Pe(t);return e===t?e:(Pt(e,"iterate",js),gr(t)?e:e.map(Tt))}function ic(t){return Pt(t=Pe(t),"iterate",js),t}const xD={__proto__:null,[Symbol.iterator](){return Zc(this,Symbol.iterator,Tt)},concat(...t){return Pa(this).concat(...t.map(e=>ie(e)?Pa(e):e))},entries(){return Zc(this,"entries",t=>(t[1]=Tt(t[1]),t))},every(t,e){return pn(this,"every",t,e,void 0,arguments)},filter(t,e){return pn(this,"filter",t,e,r=>r.map(Tt),arguments)},find(t,e){return pn(this,"find",t,e,Tt,arguments)},findIndex(t,e){return pn(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return pn(this,"findLast",t,e,Tt,arguments)},findLastIndex(t,e){return pn(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return pn(this,"forEach",t,e,void 0,arguments)},includes(...t){return Jc(this,"includes",t)},indexOf(...t){return Jc(this,"indexOf",t)},join(t){return Pa(this).join(t)},lastIndexOf(...t){return Jc(this,"lastIndexOf",t)},map(t,e){return pn(this,"map",t,e,void 0,arguments)},pop(){return $o(this,"pop")},push(...t){return $o(this,"push",t)},reduce(t,...e){return _m(this,"reduce",t,e)},reduceRight(t,...e){return _m(this,"reduceRight",t,e)},shift(){return $o(this,"shift")},some(t,e){return pn(this,"some",t,e,void 0,arguments)},splice(...t){return $o(this,"splice",t)},toReversed(){return Pa(this).toReversed()},toSorted(t){return Pa(this).toSorted(t)},toSpliced(...t){return Pa(this).toSpliced(...t)},unshift(...t){return $o(this,"unshift",t)},values(){return Zc(this,"values",Tt)}};function Zc(t,e,r){const n=ic(t),i=n[e]();return n!==t&&!gr(t)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const TD=Array.prototype;function pn(t,e,r,n,i,a){const o=ic(t),s=o!==t&&!gr(t),l=o[e];if(l!==TD[e]){const c=l.apply(t,a);return s?Tt(c):c}let u=r;o!==t&&(s?u=function(c,h){return r.call(this,Tt(c),h,t)}:r.length>2&&(u=function(c,h){return r.call(this,c,h,t)}));const f=l.call(o,u,n);return s&&i?i(f):f}function _m(t,e,r,n){const i=ic(t);let a=r;return i!==t&&(gr(t)?r.length>3&&(a=function(o,s,l){return r.call(this,o,s,l,t)}):a=function(o,s,l){return r.call(this,o,Tt(s),l,t)}),i[e](a,...n)}function Jc(t,e,r){const n=Pe(t);Pt(n,"iterate",js);const i=n[e](...r);return(i===-1||i===!1)&&sc(r[0])?(r[0]=Pe(r[0]),n[e](...r)):i}function $o(t,e,r=[]){In(),Dp();const n=Pe(t)[e].apply(t,r);return Ap(),Mn(),n}const CD=Zf("__proto__,__v_isRef,__isVue"),sw=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Gr));function DD(t){Gr(t)||(t=String(t));const e=Pe(this);return Pt(e,"has",t),e.hasOwnProperty(t)}class lw{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?vw:dw:a?hw:cw).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=ie(e);if(!i){let l;if(o&&(l=xD[r]))return l;if(r==="hasOwnProperty")return DD}const s=Reflect.get(e,r,qe(e)?e:n);return(Gr(r)?sw.has(r):CD(r))||(i||Pt(e,"get",r),a)?s:qe(s)?o&&Sp(r)?s:s.value:Ue(s)?i?Dl(s):gi(s):s}}class uw extends lw{constructor(e=!1){super(!1,e)}set(e,r,n,i){let a=e[r];if(!this._isShallow){const l=En(a);if(!gr(n)&&!En(n)&&(a=Pe(a),n=Pe(n)),!ie(e)&&qe(a)&&!qe(n))return l?!1:(a.value=n,!0)}const o=ie(e)&&Sp(r)?Number(r)<e.length:Be(e,r),s=Reflect.set(e,r,n,qe(e)?e:i);return e===Pe(i)&&(o?Ht(n,a)&&wn(e,"set",r,n):wn(e,"add",r,n)),s}deleteProperty(e,r){const n=Be(e,r);e[r];const i=Reflect.deleteProperty(e,r);return i&&n&&wn(e,"delete",r,void 0),i}has(e,r){const n=Reflect.has(e,r);return(!Gr(r)||!sw.has(r))&&Pt(e,"has",r),n}ownKeys(e){return Pt(e,"iterate",ie(e)?"length":oa),Reflect.ownKeys(e)}}class fw extends lw{constructor(e=!1){super(!0,e)}set(e,r){return!0}deleteProperty(e,r){return!0}}const AD=new uw,ID=new fw,MD=new uw(!0),ED=new fw(!0),Wd=t=>t,$l=t=>Reflect.getPrototypeOf(t);function PD(t,e,r){return function(...n){const i=this.__v_raw,a=Pe(i),o=vo(a),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=i[t](...n),f=r?Wd:e?cf:Tt;return!e&&Pt(a,"iterate",l?Ud:oa),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function Gl(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function LD(t,e){const r={get(i){const a=this.__v_raw,o=Pe(a),s=Pe(i);t||(Ht(i,s)&&Pt(o,"get",i),Pt(o,"get",s));const{has:l}=$l(o),u=e?Wd:t?cf:Tt;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!t&&Pt(Pe(i),"iterate",oa),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=Pe(a),s=Pe(i);return t||(Ht(i,s)&&Pt(o,"has",i),Pt(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=Pe(s),u=e?Wd:t?cf:Tt;return!t&&Pt(l,"iterate",oa),s.forEach((f,c)=>i.call(a,u(f),u(c),o))}};return Xe(r,t?{add:Gl("add"),set:Gl("set"),delete:Gl("delete"),clear:Gl("clear")}:{add(i){!e&&!gr(i)&&!En(i)&&(i=Pe(i));const a=Pe(this);return $l(a).has.call(a,i)||(a.add(i),wn(a,"add",i,i)),this},set(i,a){!e&&!gr(a)&&!En(a)&&(a=Pe(a));const o=Pe(this),{has:s,get:l}=$l(o);let u=s.call(o,i);u||(i=Pe(i),u=s.call(o,i));const f=l.call(o,i);return o.set(i,a),u?Ht(a,f)&&wn(o,"set",i,a):wn(o,"add",i,a),this},delete(i){const a=Pe(this),{has:o,get:s}=$l(a);let l=o.call(a,i);l||(i=Pe(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&wn(a,"delete",i,void 0),u},clear(){const i=Pe(this),a=i.size!==0,o=i.clear();return a&&wn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=PD(i,t,e)}),r}function ac(t,e){const r=LD(t,e);return(n,i,a)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Be(r,i)&&i in n?r:n,i,a)}const RD={get:ac(!1,!1)},OD={get:ac(!1,!0)},kD={get:ac(!0,!1)},ND={get:ac(!0,!0)},cw=new WeakMap,hw=new WeakMap,dw=new WeakMap,vw=new WeakMap;function BD(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function FD(t){return t.__v_skip||!Object.isExtensible(t)?0:BD(oD(t))}function gi(t){return En(t)?t:oc(t,!1,AD,RD,cw)}function pw(t){return oc(t,!1,MD,OD,hw)}function Dl(t){return oc(t,!0,ID,kD,dw)}function VD(t){return oc(t,!0,ED,ND,vw)}function oc(t,e,r,n,i){if(!Ue(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=FD(t);if(a===0)return t;const o=i.get(t);if(o)return o;const s=new Proxy(t,a===2?n:r);return i.set(t,s),s}function ai(t){return En(t)?ai(t.__v_raw):!!(t&&t.__v_isReactive)}function En(t){return!!(t&&t.__v_isReadonly)}function gr(t){return!!(t&&t.__v_isShallow)}function sc(t){return t?!!t.__v_raw:!1}function Pe(t){const e=t&&t.__v_raw;return e?Pe(e):t}function gw(t){return!Be(t,"__v_skip")&&Object.isExtensible(t)&&$d(t,"__v_skip",!0),t}const Tt=t=>Ue(t)?gi(t):t,cf=t=>Ue(t)?Dl(t):t;function qe(t){return t?t.__v_isRef===!0:!1}function fe(t){return mw(t,!1)}function $r(t){return mw(t,!0)}function mw(t,e){return qe(t)?t:new zD(t,e)}class zD{constructor(e,r){this.dep=new nc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:Pe(e),this._value=r?e:Tt(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){const r=this._rawValue,n=this.__v_isShallow||gr(e)||En(e);e=n?e:Pe(e),Ht(e,r)&&(this._rawValue=e,this._value=n?e:Tt(e),this.dep.trigger())}}function HD(t){t.dep&&t.dep.trigger()}function L(t){return qe(t)?t.value:t}function tt(t){return pe(t)?t():L(t)}const $D={get:(t,e,r)=>e==="__v_raw"?t:L(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return qe(i)&&!qe(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function Mp(t){return ai(t)?t:new Proxy(t,$D)}class GD{constructor(e){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new nc,{get:n,set:i}=e(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Ep(t){return new GD(t)}function wi(t){const e=ie(t)?new Array(t.length):{};for(const r in t)e[r]=_w(t,r);return e}class UD{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return SD(Pe(this._object),this._key)}}class WD{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function yw(t,e,r){return qe(t)?t:pe(t)?new WD(t):Ue(t)&&arguments.length>1?_w(t,e,r):fe(t)}function _w(t,e,r){const n=t[e];return qe(n)?n:new UD(t,e,r)}class YD{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new nc(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ks-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&je!==this)return tw(this,!0),!0}get value(){const e=this.dep.track();return iw(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function XD(t,e,r=!1){let n,i;return pe(t)?n=t:(n=t.get,i=t.set),new YD(n,i,r)}const KD={GET:"get",HAS:"has",ITERATE:"iterate"},jD={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Ul={},hf=new WeakMap;let Zn;function qD(){return Zn}function bw(t,e=!1,r=Zn){if(r){let n=hf.get(r);n||hf.set(r,n=[]),n.push(t)}}function ZD(t,e,r=Ie){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=b=>i?b:gr(b)||i===!1||i===0?Sn(b,1):Sn(b);let f,c,h,d,v=!1,g=!1;if(qe(t)?(c=()=>t.value,v=gr(t)):ai(t)?(c=()=>u(t),v=!0):ie(t)?(g=!0,v=t.some(b=>ai(b)||gr(b)),c=()=>t.map(b=>{if(qe(b))return b.value;if(ai(b))return u(b);if(pe(b))return l?l(b,2):b()})):pe(t)?e?c=l?()=>l(t,2):t:c=()=>{if(h){In();try{h()}finally{Mn()}}const b=Zn;Zn=f;try{return l?l(t,3,[d]):t(d)}finally{Zn=b}}:c=Mr,e&&i){const b=c,w=i===!0?1/0:i;c=()=>Sn(b(),w)}const p=rc(),m=()=>{f.stop(),p&&p.active&&bp(p.effects,f)};if(a&&e){const b=e;e=(...w)=>{b(...w),m()}}let _=g?new Array(t.length).fill(Ul):Ul;const y=b=>{if(!(!(f.flags&1)||!f.dirty&&!b))if(e){const w=f.run();if(i||v||(g?w.some((S,x)=>Ht(S,_[x])):Ht(w,_))){h&&h();const S=Zn;Zn=f;try{const x=[w,_===Ul?void 0:g&&_[0]===Ul?[]:_,d];_=w,l?l(e,3,x):e(...x)}finally{Zn=S}}}else f.run()};return s&&s(y),f=new Xs(c),f.scheduler=o?()=>o(y,!1):y,d=b=>bw(b,!1,f),h=f.onStop=()=>{const b=hf.get(f);if(b){if(l)l(b,4);else for(const w of b)w();hf.delete(f)}},e?n?y(!0):_=f.run():o?o(y.bind(null,!0),!0):f.run(),m.pause=f.pause.bind(f),m.resume=f.resume.bind(f),m.stop=m,m}function Sn(t,e=1/0,r){if(e<=0||!Ue(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),e--,qe(t))Sn(t.value,e,r);else if(ie(t))for(let n=0;n<t.length;n++)Sn(t[n],e,r);else if(xa(t)||vo(t))t.forEach(n=>{Sn(n,e,r)});else if(Jf(t)){for(const n in t)Sn(t[n],e,r);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&Sn(t[n],e,r)}return t}/**
|
|
10
|
+
* @vue/runtime-core v3.5.17
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/const ww=[];function JD(t){ww.push(t)}function QD(){ww.pop()}function eA(t,e){}const tA={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},rA={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Ro(t,e,r,n){try{return n?t(...n):t()}catch(i){Ta(i,e,r)}}function Lr(t,e,r,n){if(pe(t)){const i=Ro(t,e,r,n);return i&&wp(i)&&i.catch(a=>{Ta(a,e,r)}),i}if(ie(t)){const i=[];for(let a=0;a<t.length;a++)i.push(Lr(t[a],e,r,n));return i}}function Ta(t,e,r,n=!0){const i=e?e.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Ie;if(e){let s=e.parent;const l=e.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){const f=s.ec;if(f){for(let c=0;c<f.length;c++)if(f[c](t,l,u)===!1)return}s=s.parent}if(a){In(),Ro(a,null,10,[t,l,u]),Mn();return}}nA(t,r,i,n,o)}function nA(t,e,r,n=!0,i=!1){if(i)throw t;console.error(t)}const $t=[];let tn=-1;const yo=[];let Jn=null,Qa=0;const Sw=Promise.resolve();let df=null;function Ot(t){const e=df||Sw;return t?e.then(this?t.bind(this):t):e}function iA(t){let e=tn+1,r=$t.length;for(;e<r;){const n=e+r>>>1,i=$t[n],a=Zs(i);a<t||a===t&&i.flags&2?e=n+1:r=n}return e}function Pp(t){if(!(t.flags&1)){const e=Zs(t),r=$t[$t.length-1];!r||!(t.flags&2)&&e>=Zs(r)?$t.push(t):$t.splice(iA(e),0,t),t.flags|=1,xw()}}function xw(){df||(df=Sw.then(Tw))}function qs(t){ie(t)?yo.push(...t):Jn&&t.id===-1?Jn.splice(Qa+1,0,t):t.flags&1||(yo.push(t),t.flags|=1),xw()}function bm(t,e,r=tn+1){for(;r<$t.length;r++){const n=$t[r];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;$t.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function vf(t){if(yo.length){const e=[...new Set(yo)].sort((r,n)=>Zs(r)-Zs(n));if(yo.length=0,Jn){Jn.push(...e);return}for(Jn=e,Qa=0;Qa<Jn.length;Qa++){const r=Jn[Qa];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Jn=null,Qa=0}}const Zs=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Tw(t){try{for(tn=0;tn<$t.length;tn++){const e=$t[tn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Ro(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;tn<$t.length;tn++){const e=$t[tn];e&&(e.flags&=-2)}tn=-1,$t.length=0,vf(),df=null,($t.length||yo.length)&&Tw()}}let eo,Wl=[];function Cw(t,e){var r,n;eo=t,eo?(eo.enabled=!0,Wl.forEach(({event:i,args:a})=>eo.emit(i,...a)),Wl=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{Cw(a,e)}),setTimeout(()=>{eo||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Wl=[])},3e3)):Wl=[]}let gt=null,lc=null;function Js(t){const e=gt;return gt=t,lc=t&&t.type.__scopeId||null,e}function aA(t){lc=t}function oA(){lc=null}const sA=t=>ae;function ae(t,e=gt,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&Qd(-1);const a=Js(e);let o;try{o=t(...i)}finally{Js(a),n._d&&Qd(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function uc(t,e){if(gt===null)return t;const r=El(gt),n=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[a,o,s,l=Ie]=e[i];a&&(pe(a)&&(a={mounted:a,updated:a}),a.deep&&Sn(o),n.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:l}))}return t}function rn(t,e,r,n){const i=t.dirs,a=e&&e.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(In(),Lr(l,r,8,[t.el,s,t,e]),Mn())}}const Dw=Symbol("_vte"),Aw=t=>t.__isTeleport,Es=t=>t&&(t.disabled||t.disabled===""),wm=t=>t&&(t.defer||t.defer===""),Sm=t=>typeof SVGElement<"u"&&t instanceof SVGElement,xm=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Yd=(t,e)=>{const r=t&&t.to;return Je(r)?e?e(r):null:r},Iw={name:"Teleport",__isTeleport:!0,process(t,e,r,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:h,o:{insert:d,querySelector:v,createText:g,createComment:p}}=u,m=Es(e.props);let{shapeFlag:_,children:y,dynamicChildren:b}=e;if(t==null){const w=e.el=g(""),S=e.anchor=g("");d(w,r,n),d(S,r,n);const x=(T,D)=>{_&16&&(i&&i.isCE&&(i.ce._teleportTarget=T),f(y,T,D,i,a,o,s,l))},C=()=>{const T=e.target=Yd(e.props,v),D=Ew(T,e,g,d);T&&(o!=="svg"&&Sm(T)?o="svg":o!=="mathml"&&xm(T)&&(o="mathml"),m||(x(T,D),Hu(e,!1)))};m&&(x(r,S),Hu(e,!0)),wm(e.props)?(e.el.__isMounted=!1,vt(()=>{C(),delete e.el.__isMounted},a)):C()}else{if(wm(e.props)&&t.el.__isMounted===!1){vt(()=>{Iw.process(t,e,r,n,i,a,o,s,l,u)},a);return}e.el=t.el,e.targetStart=t.targetStart;const w=e.anchor=t.anchor,S=e.target=t.target,x=e.targetAnchor=t.targetAnchor,C=Es(t.props),T=C?r:S,D=C?w:x;if(o==="svg"||Sm(S)?o="svg":(o==="mathml"||xm(S))&&(o="mathml"),b?(h(t.dynamicChildren,b,T,i,a,o,s),Gp(t,e,!0)):l||c(t,e,T,D,i,a,o,s,!1),m)C?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Yl(e,r,w,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const I=e.target=Yd(e.props,v);I&&Yl(e,I,null,u,0)}else C&&Yl(e,S,x,u,1);Hu(e,m)}},remove(t,e,r,{um:n,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:f,target:c,props:h}=t;if(c&&(i(u),i(f)),a&&i(l),o&16){const d=a||!Es(h);for(let v=0;v<s.length;v++){const g=s[v];n(g,e,r,d,!!g.dynamicChildren)}}},move:Yl,hydrate:lA};function Yl(t,e,r,{o:{insert:n},m:i},a=2){a===0&&n(t.targetAnchor,e,r);const{el:o,anchor:s,shapeFlag:l,children:u,props:f}=t,c=a===2;if(c&&n(o,e,r),(!c||Es(f))&&l&16)for(let h=0;h<u.length;h++)i(u[h],e,r,2);c&&n(s,e,r)}function lA(t,e,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:u,createText:f}},c){const h=e.target=Yd(e.props,l);if(h){const d=Es(e.props),v=h._lpa||h.firstChild;if(e.shapeFlag&16)if(d)e.anchor=c(o(t),e,s(t),r,n,i,a),e.targetStart=v,e.targetAnchor=v&&o(v);else{e.anchor=o(t);let g=v;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")e.targetStart=g;else if(g.data==="teleport anchor"){e.targetAnchor=g,h._lpa=e.targetAnchor&&o(e.targetAnchor);break}}g=o(g)}e.targetAnchor||Ew(h,e,f,u),c(v&&o(v),e,h,r,n,i,a)}Hu(e,d)}return e.anchor&&o(e.anchor)}const Mw=Iw;function Hu(t,e){const r=t.ctx;if(r&&r.ut){let n,i;for(e?(n=t.el,i=t.anchor):(n=t.targetStart,i=t.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function Ew(t,e,r,n){const i=e.targetStart=r(""),a=e.targetAnchor=r("");return i[Dw]=a,t&&(n(i,t),n(a,t)),a}const Qn=Symbol("_leaveCb"),Xl=Symbol("_enterCb");function Lp(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return lr(()=>{t.isMounted=!0}),Il(()=>{t.isUnmounting=!0}),t}const wr=[Function,Array],Rp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:wr,onEnter:wr,onAfterEnter:wr,onEnterCancelled:wr,onBeforeLeave:wr,onLeave:wr,onAfterLeave:wr,onLeaveCancelled:wr,onBeforeAppear:wr,onAppear:wr,onAfterAppear:wr,onAppearCancelled:wr},Pw=t=>{const e=t.subTree;return e.component?Pw(e.component):e},uA={name:"BaseTransition",props:Rp,setup(t,{slots:e}){const r=ht(),n=Lp();return()=>{const i=e.default&&fc(e.default(),!0);if(!i||!i.length)return;const a=Lw(i),o=Pe(t),{mode:s}=o;if(n.isLeaving)return Qc(a);const l=Tm(a);if(!l)return Qc(a);let u=To(l,o,n,r,c=>u=c);l.type!==ft&&Pn(l,u);let f=r.subTree&&Tm(r.subTree);if(f&&f.type!==ft&&!Vr(l,f)&&Pw(r).type!==ft){let c=To(f,o,n,r);if(Pn(f,c),s==="out-in"&&l.type!==ft)return n.isLeaving=!0,c.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete c.afterLeave,f=void 0},Qc(a);s==="in-out"&&l.type!==ft?c.delayLeave=(h,d,v)=>{const g=Ow(n,f);g[String(f.key)]=f,h[Qn]=()=>{d(),h[Qn]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return a}}};function Lw(t){let e=t[0];if(t.length>1){for(const r of t)if(r.type!==ft){e=r;break}}return e}const Rw=uA;function Ow(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function To(t,e,r,n,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:f,onEnterCancelled:c,onBeforeLeave:h,onLeave:d,onAfterLeave:v,onLeaveCancelled:g,onBeforeAppear:p,onAppear:m,onAfterAppear:_,onAppearCancelled:y}=e,b=String(t.key),w=Ow(r,t),S=(T,D)=>{T&&Lr(T,n,9,D)},x=(T,D)=>{const I=D[1];S(T,D),ie(T)?T.every(M=>M.length<=1)&&I():T.length<=1&&I()},C={mode:o,persisted:s,beforeEnter(T){let D=l;if(!r.isMounted)if(a)D=p||l;else return;T[Qn]&&T[Qn](!0);const I=w[b];I&&Vr(t,I)&&I.el[Qn]&&I.el[Qn](),S(D,[T])},enter(T){let D=u,I=f,M=c;if(!r.isMounted)if(a)D=m||u,I=_||f,M=y||c;else return;let O=!1;const R=T[Xl]=V=>{O||(O=!0,V?S(M,[T]):S(I,[T]),C.delayedLeave&&C.delayedLeave(),T[Xl]=void 0)};D?x(D,[T,R]):R()},leave(T,D){const I=String(t.key);if(T[Xl]&&T[Xl](!0),r.isUnmounting)return D();S(h,[T]);let M=!1;const O=T[Qn]=R=>{M||(M=!0,D(),R?S(g,[T]):S(v,[T]),T[Qn]=void 0,w[I]===t&&delete w[I])};w[I]=t,d?x(d,[T,O]):O()},clone(T){const D=To(T,e,r,n,i);return i&&i(D),D}};return C}function Qc(t){if(Al(t))return t=Ur(t),t.children=null,t}function Tm(t){if(!Al(t))return Aw(t.type)&&t.children?Lw(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&&pe(r.default))return r.default()}}function Pn(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Pn(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function fc(t,e=!1,r){let n=[],i=0;for(let a=0;a<t.length;a++){let o=t[a];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:a);o.type===et?(o.patchFlag&128&&i++,n=n.concat(fc(o.children,e,s))):(e||o.type!==ft)&&n.push(s!=null?Ur(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function he(t,e){return pe(t)?Xe({name:t.name},e,{setup:t}):t}function kw(){const t=ht();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function Op(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function cc(t){const e=ht(),r=$r(null);if(e){const i=e.refs===Ie?e.refs={}:e.refs;Object.defineProperty(i,t,{enumerable:!0,get:()=>r.value,set:a=>r.value=a})}return r}function _o(t,e,r,n,i=!1){if(ie(t)){t.forEach((v,g)=>_o(v,e&&(ie(e)?e[g]:e),r,n,i));return}if(oi(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&_o(t,e,r,n.component.subTree);return}const a=n.shapeFlag&4?El(n.component):n.el,o=i?null:a,{i:s,r:l}=t,u=e&&e.r,f=s.refs===Ie?s.refs={}:s.refs,c=s.setupState,h=Pe(c),d=c===Ie?()=>!1:v=>Be(h,v);if(u!=null&&u!==l&&(Je(u)?(f[u]=null,d(u)&&(c[u]=null)):qe(u)&&(u.value=null)),pe(l))Ro(l,s,12,[o,f]);else{const v=Je(l),g=qe(l);if(v||g){const p=()=>{if(t.f){const m=v?d(l)?c[l]:f[l]:l.value;i?ie(m)&&bp(m,a):ie(m)?m.includes(a)||m.push(a):v?(f[l]=[a],d(l)&&(c[l]=f[l])):(l.value=[a],t.k&&(f[t.k]=l.value))}else v?(f[l]=o,d(l)&&(c[l]=o)):g&&(l.value=o,t.k&&(f[t.k]=o))};o?(p.id=-1,vt(p,r)):p()}}}let Cm=!1;const La=()=>{Cm||(console.error("Hydration completed but contains mismatches."),Cm=!0)},fA=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",cA=t=>t.namespaceURI.includes("MathML"),Kl=t=>{if(t.nodeType===1){if(fA(t))return"svg";if(cA(t))return"mathml"}},no=t=>t.nodeType===8;function hA(t){const{mt:e,p:r,o:{patchProp:n,createText:i,nextSibling:a,parentNode:o,remove:s,insert:l,createComment:u}}=t,f=(y,b)=>{if(!b.hasChildNodes()){r(null,y,b),vf(),b._vnode=y;return}c(b.firstChild,y,null,null,null),vf(),b._vnode=y},c=(y,b,w,S,x,C=!1)=>{C=C||!!b.dynamicChildren;const T=no(y)&&y.data==="[",D=()=>g(y,b,w,S,x,T),{type:I,ref:M,shapeFlag:O,patchFlag:R}=b;let V=y.nodeType;b.el=y,R===-2&&(C=!1,b.dynamicChildren=null);let N=null;switch(I){case li:V!==3?b.children===""?(l(b.el=i(""),o(y),y),N=y):N=D():(y.data!==b.children&&(La(),y.data=b.children),N=a(y));break;case ft:_(y)?(N=a(y),m(b.el=y.content.firstChild,y,w)):V!==8||T?N=D():N=a(y);break;case la:if(T&&(y=a(y),V=y.nodeType),V===1||V===3){N=y;const B=!b.children.length;for(let F=0;F<b.staticCount;F++)B&&(b.children+=N.nodeType===1?N.outerHTML:N.data),F===b.staticCount-1&&(b.anchor=N),N=a(N);return T?a(N):N}else D();break;case et:T?N=v(y,b,w,S,x,C):N=D();break;default:if(O&1)(V!==1||b.type.toLowerCase()!==y.tagName.toLowerCase())&&!_(y)?N=D():N=h(y,b,w,S,x,C);else if(O&6){b.slotScopeIds=x;const B=o(y);if(T?N=p(y):no(y)&&y.data==="teleport start"?N=p(y,y.data,"teleport end"):N=a(y),e(b,B,null,w,S,Kl(B),C),oi(b)&&!b.type.__asyncResolved){let F;T?(F=re(et),F.anchor=N?N.previousSibling:B.lastChild):F=y.nodeType===3?mr(""):re("div"),F.el=y,b.component.subTree=F}}else O&64?V!==8?N=D():N=b.type.hydrate(y,b,w,S,x,C,t,d):O&128&&(N=b.type.hydrate(y,b,w,S,Kl(o(y)),x,C,t,c))}return M!=null&&_o(M,null,S,b),N},h=(y,b,w,S,x,C)=>{C=C||!!b.dynamicChildren;const{type:T,props:D,patchFlag:I,shapeFlag:M,dirs:O,transition:R}=b,V=T==="input"||T==="option";if(V||I!==-1){O&&rn(b,null,w,"created");let N=!1;if(_(y)){N=aS(null,R)&&w&&w.vnode.props&&w.vnode.props.appear;const F=y.content.firstChild;if(N){const G=F.getAttribute("class");G&&(F.$cls=G),R.beforeEnter(F)}m(F,y,w),b.el=y=F}if(M&16&&!(D&&(D.innerHTML||D.textContent))){let F=d(y.firstChild,b,y,w,S,x,C);for(;F;){jl(y,1)||La();const G=F;F=F.nextSibling,s(G)}}else if(M&8){let F=b.children;F[0]===`
|
|
14
|
+
`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(F=F.slice(1)),y.textContent!==F&&(jl(y,0)||La(),y.textContent=b.children)}if(D){if(V||!C||I&48){const F=y.tagName.includes("-");for(const G in D)(V&&(G.endsWith("value")||G==="indeterminate")||Tl(G)&&!po(G)||G[0]==="."||F)&&n(y,G,null,D[G],void 0,w)}else if(D.onClick)n(y,"onClick",null,D.onClick,void 0,w);else if(I&4&&ai(D.style))for(const F in D.style)D.style[F]}let B;(B=D&&D.onVnodeBeforeMount)&&qt(B,w,b),O&&rn(b,null,w,"beforeMount"),((B=D&&D.onVnodeMounted)||O||N)&&vS(()=>{B&&qt(B,w,b),N&&R.enter(y),O&&rn(b,null,w,"mounted")},S)}return y.nextSibling},d=(y,b,w,S,x,C,T)=>{T=T||!!b.dynamicChildren;const D=b.children,I=D.length;for(let M=0;M<I;M++){const O=T?D[M]:D[M]=Zt(D[M]),R=O.type===li;y?(R&&!T&&M+1<I&&Zt(D[M+1]).type===li&&(l(i(y.data.slice(O.children.length)),w,a(y)),y.data=O.children),y=c(y,O,S,x,C,T)):R&&!O.children?l(O.el=i(""),w):(jl(w,1)||La(),r(null,O,w,null,S,x,Kl(w),C))}return y},v=(y,b,w,S,x,C)=>{const{slotScopeIds:T}=b;T&&(x=x?x.concat(T):T);const D=o(y),I=d(a(y),b,D,w,S,x,C);return I&&no(I)&&I.data==="]"?a(b.anchor=I):(La(),l(b.anchor=u("]"),D,I),I)},g=(y,b,w,S,x,C)=>{if(jl(y.parentElement,1)||La(),b.el=null,C){const I=p(y);for(;;){const M=a(y);if(M&&M!==I)s(M);else break}}const T=a(y),D=o(y);return s(y),r(null,b,D,T,w,S,Kl(D),x),w&&(w.vnode.el=b.el,gc(w,b.el)),T},p=(y,b="[",w="]")=>{let S=0;for(;y;)if(y=a(y),y&&no(y)&&(y.data===b&&S++,y.data===w)){if(S===0)return a(y);S--}return y},m=(y,b,w)=>{const S=b.parentNode;S&&S.replaceChild(y,b);let x=w;for(;x;)x.vnode.el===b&&(x.vnode.el=x.subTree.el=y),x=x.parent},_=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[f,c]}const Dm="data-allow-mismatch",dA={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function jl(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(Dm);)t=t.parentElement;const r=t&&t.getAttribute(Dm);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return e===0&&n.includes("children")?!0:n.includes(dA[e])}}const vA=ec().requestIdleCallback||(t=>setTimeout(t,1)),pA=ec().cancelIdleCallback||(t=>clearTimeout(t)),gA=(t=1e4)=>e=>{const r=vA(e,{timeout:t});return()=>pA(r)};function mA(t){const{top:e,left:r,bottom:n,right:i}=t.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(e>0&&e<a||n>0&&n<a)&&(r>0&&r<o||i>0&&i<o)}const yA=t=>(e,r)=>{const n=new IntersectionObserver(i=>{for(const a of i)if(a.isIntersecting){n.disconnect(),e();break}},t);return r(i=>{if(i instanceof Element){if(mA(i))return e(),n.disconnect(),!1;n.observe(i)}}),()=>n.disconnect()},_A=t=>e=>{if(t){const r=matchMedia(t);if(r.matches)e();else return r.addEventListener("change",e,{once:!0}),()=>r.removeEventListener("change",e)}},bA=(t=[])=>(e,r)=>{Je(t)&&(t=[t]);let n=!1;const i=o=>{n||(n=!0,a(),e(),o.target.dispatchEvent(new o.constructor(o.type,o)))},a=()=>{r(o=>{for(const s of t)o.removeEventListener(s,i)})};return r(o=>{for(const s of t)o.addEventListener(s,i,{once:!0})}),a};function wA(t,e){if(no(t)&&t.data==="["){let r=1,n=t.nextSibling;for(;n;){if(n.nodeType===1){if(e(n)===!1)break}else if(no(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else e(t)}const oi=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function SA(t){pe(t)&&(t={loader:t});const{loader:e,loadingComponent:r,errorComponent:n,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:l}=t;let u=null,f,c=0;const h=()=>(c++,u=null,d()),d=()=>{let v;return u||(v=u=e().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((p,m)=>{l(g,()=>p(h()),()=>m(g),c+1)});throw g}).then(g=>v!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),f=g,g)))};return he({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(v,g,p){const m=a?()=>{const y=a(()=>{p()},b=>wA(v,b));y&&(g.bum||(g.bum=[])).push(y),(g.u||(g.u=[])).push(()=>!0)}:p;f?m():d().then(()=>!g.isUnmounted&&m())},get __asyncResolved(){return f},setup(){const v=pt;if(Op(v),f)return()=>eh(f,v);const g=y=>{u=null,Ta(y,v,13,!n)};if(s&&v.suspense||Co)return d().then(y=>()=>eh(y,v)).catch(y=>(g(y),()=>n?re(n,{error:y}):null));const p=fe(!1),m=fe(),_=fe(!!i);return i&&setTimeout(()=>{_.value=!1},i),o!=null&&setTimeout(()=>{if(!p.value&&!m.value){const y=new Error(`Async component timed out after ${o}ms.`);g(y),m.value=y}},o),d().then(()=>{p.value=!0,v.parent&&Al(v.parent.vnode)&&v.parent.update()}).catch(y=>{g(y),m.value=y}),()=>{if(p.value&&f)return eh(f,v);if(m.value&&n)return re(n,{error:m.value});if(r&&!_.value)return re(r)}}})}function eh(t,e){const{ref:r,props:n,children:i,ce:a}=e.vnode,o=re(t,n,i);return o.ref=r,o.ce=a,delete e.vnode.ce,o}const Al=t=>t.type.__isKeepAlive,xA={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=ht(),n=r.ctx;if(!n.renderer)return()=>{const _=e.default&&e.default();return _&&_.length===1?_[0]:_};const i=new Map,a=new Set;let o=null;const s=r.suspense,{renderer:{p:l,m:u,um:f,o:{createElement:c}}}=n,h=c("div");n.activate=(_,y,b,w,S)=>{const x=_.component;u(_,y,b,0,s),l(x.vnode,_,y,b,x,s,w,_.slotScopeIds,S),vt(()=>{x.isDeactivated=!1,x.a&&mo(x.a);const C=_.props&&_.props.onVnodeMounted;C&&qt(C,x.parent,_)},s)},n.deactivate=_=>{const y=_.component;gf(y.m),gf(y.a),u(_,h,null,1,s),vt(()=>{y.da&&mo(y.da);const b=_.props&&_.props.onVnodeUnmounted;b&&qt(b,y.parent,_),y.isDeactivated=!0},s)};function d(_){th(_),f(_,r,s,!0)}function v(_){i.forEach((y,b)=>{const w=iv(y.type);w&&!_(w)&&g(b)})}function g(_){const y=i.get(_);y&&(!o||!Vr(y,o))?d(y):o&&th(o),i.delete(_),a.delete(_)}Ne(()=>[t.include,t.exclude],([_,y])=>{_&&v(b=>vs(_,b)),y&&v(b=>!vs(y,b))},{flush:"post",deep:!0});let p=null;const m=()=>{p!=null&&(mf(r.subTree.type)?vt(()=>{i.set(p,ql(r.subTree))},r.subTree.suspense):i.set(p,ql(r.subTree)))};return lr(m),dc(m),Il(()=>{i.forEach(_=>{const{subTree:y,suspense:b}=r,w=ql(y);if(_.type===w.type&&_.key===w.key){th(w);const S=w.component.da;S&&vt(S,b);return}d(_)})}),()=>{if(p=null,!e.default)return o=null;const _=e.default(),y=_[0];if(_.length>1)return o=null,_;if(!Ln(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let b=ql(y);if(b.type===ft)return o=null,b;const w=b.type,S=iv(oi(b)?b.type.__asyncResolved||{}:w),{include:x,exclude:C,max:T}=t;if(x&&(!S||!vs(x,S))||C&&S&&vs(C,S))return b.shapeFlag&=-257,o=b,y;const D=b.key==null?w:b.key,I=i.get(D);return b.el&&(b=Ur(b),y.shapeFlag&128&&(y.ssContent=b)),p=D,I?(b.el=I.el,b.component=I.component,b.transition&&Pn(b,b.transition),b.shapeFlag|=512,a.delete(D),a.add(D)):(a.add(D),T&&a.size>parseInt(T,10)&&g(a.values().next().value)),b.shapeFlag|=256,o=b,mf(y.type)?y:b}}},TA=xA;function vs(t,e){return ie(t)?t.some(r=>vs(r,e)):Je(t)?t.split(",").includes(e):aD(t)?(t.lastIndex=0,t.test(e)):!1}function Nw(t,e){Fw(t,"a",e)}function Bw(t,e){Fw(t,"da",e)}function Fw(t,e,r=pt){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(hc(e,n,r),r){let i=r.parent;for(;i&&i.parent;)Al(i.parent.vnode)&&CA(n,e,r,i),i=i.parent}}function CA(t,e,r,n){const i=hc(e,t,n,!0);Si(()=>{bp(n[e],i)},r)}function th(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function ql(t){return t.shapeFlag&128?t.ssContent:t}function hc(t,e,r=pt,n=!1){if(r){const i=r[t]||(r[t]=[]),a=e.__weh||(e.__weh=(...o)=>{In();const s=ga(r),l=Lr(e,r,t,o);return s(),Mn(),l});return n?i.unshift(a):i.push(a),a}}const kn=t=>(e,r=pt)=>{(!Co||t==="sp")&&hc(t,(...n)=>e(...n),r)},Vw=kn("bm"),lr=kn("m"),kp=kn("bu"),dc=kn("u"),Il=kn("bum"),Si=kn("um"),zw=kn("sp"),Hw=kn("rtg"),$w=kn("rtc");function Gw(t,e=pt){hc("ec",t,e)}const Np="components",DA="directives";function AA(t,e){return Bp(Np,t,!0,e)||t}const Uw=Symbol.for("v-ndc");function IA(t){return Je(t)?Bp(Np,t,!1)||t:t||Uw}function MA(t){return Bp(DA,t)}function Bp(t,e,r=!0,n=!1){const i=gt||pt;if(i){const a=i.type;if(t===Np){const s=iv(a,!1);if(s&&(s===e||s===bt(e)||s===Cl(bt(e))))return a}const o=Am(i[t]||a[t],e)||Am(i.appContext[t],e);return!o&&n?a:o}}function Am(t,e){return t&&(t[e]||t[bt(e)]||t[Cl(bt(e))])}function Oo(t,e,r,n){let i;const a=r&&r[n],o=ie(t);if(o||Je(t)){const s=o&&ai(t);let l=!1,u=!1;s&&(l=!gr(t),u=En(t),t=ic(t)),i=new Array(t.length);for(let f=0,c=t.length;f<c;f++)i[f]=e(l?u?cf(Tt(t[f])):Tt(t[f]):t[f],f,void 0,a&&a[f])}else if(typeof t=="number"){i=new Array(t);for(let s=0;s<t;s++)i[s]=e(s+1,s,void 0,a&&a[s])}else if(Ue(t))if(t[Symbol.iterator])i=Array.from(t,(s,l)=>e(s,l,void 0,a&&a[l]));else{const s=Object.keys(t);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const f=s[l];i[l]=e(t[f],f,l,a&&a[l])}}else i=[];return r&&(r[n]=i),i}function EA(t,e){for(let r=0;r<e.length;r++){const n=e[r];if(ie(n))for(let i=0;i<n.length;i++)t[n[i].name]=n[i].fn;else n&&(t[n.name]=n.key?(...i)=>{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return t}function Me(t,e,r={},n,i){if(gt.ce||gt.parent&&oi(gt.parent)&>.parent.ce)return e!=="default"&&(r.name=e),Q(),ge(et,null,[re("slot",r,n&&n())],64);let a=t[e];a&&a._c&&(a._d=!1),Q();const o=a&&Fp(a(r)),s=r.key||o&&o.key,l=ge(et,{key:(s&&!Gr(s)?s:`_${e}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function Fp(t){return t.some(e=>Ln(e)?!(e.type===ft||e.type===et&&!Fp(e.children)):!0)?t:null}function PA(t,e){const r={};for(const n in t)r[e&&/[A-Z]/.test(n)?`on:${n}`:go(n)]=t[n];return r}const Xd=t=>t?bS(t)?El(t):Xd(t.parent):null,Ps=Xe(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Xd(t.parent),$root:t=>Xd(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Vp(t),$forceUpdate:t=>t.f||(t.f=()=>{Pp(t.update)}),$nextTick:t=>t.n||(t.n=Ot.bind(t.proxy)),$watch:t=>oI.bind(t)}),rh=(t,e)=>t!==Ie&&!t.__isScriptSetup&&Be(t,e),Kd={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=t;let u;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return a[e]}else{if(rh(n,e))return o[e]=1,n[e];if(i!==Ie&&Be(i,e))return o[e]=2,i[e];if((u=t.propsOptions[0])&&Be(u,e))return o[e]=3,a[e];if(r!==Ie&&Be(r,e))return o[e]=4,r[e];jd&&(o[e]=0)}}const f=Ps[e];let c,h;if(f)return e==="$attrs"&&Pt(t.attrs,"get",""),f(t);if((c=s.__cssModules)&&(c=c[e]))return c;if(r!==Ie&&Be(r,e))return o[e]=4,r[e];if(h=l.config.globalProperties,Be(h,e))return h[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:a}=t;return rh(i,e)?(i[e]=r,!0):n!==Ie&&Be(n,e)?(n[e]=r,!0):Be(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||t!==Ie&&Be(t,o)||rh(e,o)||(s=a[0])&&Be(s,o)||Be(n,o)||Be(Ps,o)||Be(i.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Be(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}},LA=Xe({},Kd,{get(t,e){if(e!==Symbol.unscopables)return Kd.get(t,e,t)},has(t,e){return e[0]!=="_"&&!fD(e)}});function RA(){return null}function OA(){return null}function kA(t){}function NA(t){}function BA(){return null}function FA(){}function VA(t,e){return null}function zA(){return Ww().slots}function HA(){return Ww().attrs}function Ww(){const t=ht();return t.setupContext||(t.setupContext=xS(t))}function Qs(t){return ie(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function $A(t,e){const r=Qs(t);for(const n in e){if(n.startsWith("__skip"))continue;let i=r[n];i?ie(i)||pe(i)?i=r[n]={type:i,default:e[n]}:i.default=e[n]:i===null&&(i=r[n]={default:e[n]}),i&&e[`__skip_${n}`]&&(i.skipFactory=!0)}return r}function ir(t,e){return!t||!e?t||e:ie(t)&&ie(e)?t.concat(e):Xe({},Qs(t),Qs(e))}function GA(t,e){const r={};for(const n in t)e.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>t[n]});return r}function UA(t){const e=ht();let r=t();return tv(),wp(r)&&(r=r.catch(n=>{throw ga(e),n})),[r,()=>ga(e)]}let jd=!0;function WA(t){const e=Vp(t),r=t.proxy,n=t.ctx;jd=!1,e.beforeCreate&&Im(e.beforeCreate,t,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:d,updated:v,activated:g,deactivated:p,beforeDestroy:m,beforeUnmount:_,destroyed:y,unmounted:b,render:w,renderTracked:S,renderTriggered:x,errorCaptured:C,serverPrefetch:T,expose:D,inheritAttrs:I,components:M,directives:O,filters:R}=e;if(u&&YA(u,n,null),o)for(const B in o){const F=o[B];pe(F)&&(n[B]=F.bind(r))}if(i){const B=i.call(r,r);Ue(B)&&(t.data=gi(B))}if(jd=!0,a)for(const B in a){const F=a[B],G=pe(F)?F.bind(r,r):pe(F.get)?F.get.bind(r,r):Mr,J=!pe(F)&&pe(F.set)?F.set.bind(r):Mr,oe=ce({get:G,set:J});Object.defineProperty(n,B,{enumerable:!0,configurable:!0,get:()=>oe.value,set:K=>oe.value=K})}if(s)for(const B in s)Yw(s[B],n,r,B);if(l){const B=pe(l)?l.call(r):l;Reflect.ownKeys(B).forEach(F=>{vc(F,B[F])})}f&&Im(f,t,"c");function N(B,F){ie(F)?F.forEach(G=>B(G.bind(r))):F&&B(F.bind(r))}if(N(Vw,c),N(lr,h),N(kp,d),N(dc,v),N(Nw,g),N(Bw,p),N(Gw,C),N($w,S),N(Hw,x),N(Il,_),N(Si,b),N(zw,T),ie(D))if(D.length){const B=t.exposed||(t.exposed={});D.forEach(F=>{Object.defineProperty(B,F,{get:()=>r[F],set:G=>r[F]=G})})}else t.exposed||(t.exposed={});w&&t.render===Mr&&(t.render=w),I!=null&&(t.inheritAttrs=I),M&&(t.components=M),O&&(t.directives=O),T&&Op(t)}function YA(t,e,r=Mr){ie(t)&&(t=qd(t));for(const n in t){const i=t[n];let a;Ue(i)?"default"in i?a=si(i.from||n,i.default,!0):a=si(i.from||n):a=si(i),qe(a)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):e[n]=a}}function Im(t,e,r){Lr(ie(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function Yw(t,e,r,n){let i=n.includes(".")?fS(r,n):()=>r[n];if(Je(t)){const a=e[t];pe(a)&&Ne(i,a)}else if(pe(t))Ne(i,t.bind(r));else if(Ue(t))if(ie(t))t.forEach(a=>Yw(a,e,r,n));else{const a=pe(t.handler)?t.handler.bind(r):e[t.handler];pe(a)&&Ne(i,a,t)}}function Vp(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=t.appContext,s=a.get(e);let l;return s?l=s:!i.length&&!r&&!n?l=e:(l={},i.length&&i.forEach(u=>pf(l,u,o,!0)),pf(l,e,o)),Ue(e)&&a.set(e,l),l}function pf(t,e,r,n=!1){const{mixins:i,extends:a}=e;a&&pf(t,a,r,!0),i&&i.forEach(o=>pf(t,o,r,!0));for(const o in e)if(!(n&&o==="expose")){const s=XA[o]||r&&r[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const XA={data:Mm,props:Em,emits:Em,methods:ps,computed:ps,beforeCreate:Nt,created:Nt,beforeMount:Nt,mounted:Nt,beforeUpdate:Nt,updated:Nt,beforeDestroy:Nt,beforeUnmount:Nt,destroyed:Nt,unmounted:Nt,activated:Nt,deactivated:Nt,errorCaptured:Nt,serverPrefetch:Nt,components:ps,directives:ps,watch:jA,provide:Mm,inject:KA};function Mm(t,e){return e?t?function(){return Xe(pe(t)?t.call(this,this):t,pe(e)?e.call(this,this):e)}:e:t}function KA(t,e){return ps(qd(t),qd(e))}function qd(t){if(ie(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function Nt(t,e){return t?[...new Set([].concat(t,e))]:e}function ps(t,e){return t?Xe(Object.create(null),t,e):e}function Em(t,e){return t?ie(t)&&ie(e)?[...new Set([...t,...e])]:Xe(Object.create(null),Qs(t),Qs(e??{})):e}function jA(t,e){if(!t)return e;if(!e)return t;const r=Xe(Object.create(null),t);for(const n in e)r[n]=Nt(t[n],e[n]);return r}function Xw(){return{app:null,config:{isNativeTag:nD,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 qA=0;function ZA(t,e){return function(n,i=null){pe(n)||(n=Xe({},n)),i!=null&&!Ue(i)&&(i=null);const a=Xw(),o=new WeakSet,s=[];let l=!1;const u=a.app={_uid:qA++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:CS,get config(){return a.config},set config(f){},use(f,...c){return o.has(f)||(f&&pe(f.install)?(o.add(f),f.install(u,...c)):pe(f)&&(o.add(f),f(u,...c))),u},mixin(f){return a.mixins.includes(f)||a.mixins.push(f),u},component(f,c){return c?(a.components[f]=c,u):a.components[f]},directive(f,c){return c?(a.directives[f]=c,u):a.directives[f]},mount(f,c,h){if(!l){const d=u._ceVNode||re(n,i);return d.appContext=a,h===!0?h="svg":h===!1&&(h=void 0),c&&e?e(d,f):t(d,f,h),l=!0,u._container=f,f.__vue_app__=u,El(d.component)}},onUnmount(f){s.push(f)},unmount(){l&&(Lr(s,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(f,c){return a.provides[f]=c,u},runWithContext(f){const c=sa;sa=u;try{return f()}finally{sa=c}}};return u}}let sa=null;function vc(t,e){if(pt){let r=pt.provides;const n=pt.parent&&pt.parent.provides;n===r&&(r=pt.provides=Object.create(n)),r[t]=e}}function si(t,e,r=!1){const n=pt||gt;if(n||sa){let i=sa?sa._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return r&&pe(e)?e.call(n&&n.proxy):e}}function zp(){return!!(pt||gt||sa)}const Kw={},jw=()=>Object.create(Kw),qw=t=>Object.getPrototypeOf(t)===Kw;function JA(t,e,r,n=!1){const i={},a=jw();t.propsDefaults=Object.create(null),Zw(t,e,i,a);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);r?t.props=n?i:pw(i):t.type.props?t.props=i:t.props=a,t.attrs=a}function QA(t,e,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=t,s=Pe(i),[l]=t.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=t.vnode.dynamicProps;for(let c=0;c<f.length;c++){let h=f[c];if(pc(t.emitsOptions,h))continue;const d=e[h];if(l)if(Be(a,h))d!==a[h]&&(a[h]=d,u=!0);else{const v=bt(h);i[v]=Zd(l,s,v,d,t,!1)}else d!==a[h]&&(a[h]=d,u=!0)}}}else{Zw(t,e,i,a)&&(u=!0);let f;for(const c in s)(!e||!Be(e,c)&&((f=tr(c))===c||!Be(e,f)))&&(l?r&&(r[c]!==void 0||r[f]!==void 0)&&(i[c]=Zd(l,s,c,void 0,t,!0)):delete i[c]);if(a!==s)for(const c in a)(!e||!Be(e,c))&&(delete a[c],u=!0)}u&&wn(t.attrs,"set","")}function Zw(t,e,r,n){const[i,a]=t.propsOptions;let o=!1,s;if(e)for(let l in e){if(po(l))continue;const u=e[l];let f;i&&Be(i,f=bt(l))?!a||!a.includes(f)?r[f]=u:(s||(s={}))[f]=u:pc(t.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Pe(r),u=s||Ie;for(let f=0;f<a.length;f++){const c=a[f];r[c]=Zd(i,l,c,u[c],t,!Be(u,c))}}return o}function Zd(t,e,r,n,i,a){const o=t[r];if(o!=null){const s=Be(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&pe(l)){const{propsDefaults:u}=i;if(r in u)n=u[r];else{const f=ga(i);n=u[r]=l.call(null,e),f()}}else n=l;i.ce&&i.ce._setProp(r,n)}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===tr(r))&&(n=!0))}return n}const eI=new WeakMap;function Jw(t,e,r=!1){const n=r?eI:e.propsCache,i=n.get(t);if(i)return i;const a=t.props,o={},s=[];let l=!1;if(!pe(t)){const f=c=>{l=!0;const[h,d]=Jw(c,e,!0);Xe(o,h),d&&s.push(...d)};!r&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!a&&!l)return Ue(t)&&n.set(t,ho),ho;if(ie(a))for(let f=0;f<a.length;f++){const c=bt(a[f]);Pm(c)&&(o[c]=Ie)}else if(a)for(const f in a){const c=bt(f);if(Pm(c)){const h=a[f],d=o[c]=ie(h)||pe(h)?{type:h}:Xe({},h),v=d.type;let g=!1,p=!0;if(ie(v))for(let m=0;m<v.length;++m){const _=v[m],y=pe(_)&&_.name;if(y==="Boolean"){g=!0;break}else y==="String"&&(p=!1)}else g=pe(v)&&v.name==="Boolean";d[0]=g,d[1]=p,(g||Be(d,"default"))&&s.push(c)}}const u=[o,s];return Ue(t)&&n.set(t,u),u}function Pm(t){return t[0]!=="$"&&!po(t)}const Hp=t=>t[0]==="_"||t==="$stable",$p=t=>ie(t)?t.map(Zt):[Zt(t)],tI=(t,e,r)=>{if(e._n)return e;const n=ae((...i)=>$p(e(...i)),r);return n._c=!1,n},Qw=(t,e,r)=>{const n=t._ctx;for(const i in t){if(Hp(i))continue;const a=t[i];if(pe(a))e[i]=tI(i,a,n);else if(a!=null){const o=$p(a);e[i]=()=>o}}},eS=(t,e)=>{const r=$p(e);t.slots.default=()=>r},tS=(t,e,r)=>{for(const n in e)(r||!Hp(n))&&(t[n]=e[n])},rI=(t,e,r)=>{const n=t.slots=jw();if(t.vnode.shapeFlag&32){const i=e.__;i&&$d(n,"__",i,!0);const a=e._;a?(tS(n,e,r),r&&$d(n,"_",a,!0)):Qw(e,n)}else e&&eS(t,e)},nI=(t,e,r)=>{const{vnode:n,slots:i}=t;let a=!0,o=Ie;if(n.shapeFlag&32){const s=e._;s?r&&s===1?a=!1:tS(i,e,r):(a=!e.$stable,Qw(e,i)),o=e}else e&&(eS(t,e),o={default:1});if(a)for(const s in i)!Hp(s)&&o[s]==null&&delete i[s]},vt=vS;function rS(t){return iS(t)}function nS(t){return iS(t,hA)}function iS(t,e){const r=ec();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:d=Mr,insertStaticContent:v}=t,g=(A,E,k,H=null,z=null,$=null,j=void 0,Y=null,X=!!E.dynamicChildren)=>{if(A===E)return;A&&!Vr(A,E)&&(H=ut(A),K(A,z,$,!0),A=null),E.patchFlag===-2&&(X=!1,E.dynamicChildren=null);const{type:U,ref:de,shapeFlag:Z}=E;switch(U){case li:p(A,E,k,H);break;case ft:m(A,E,k,H);break;case la:A==null&&_(E,k,H,j);break;case et:M(A,E,k,H,z,$,j,Y,X);break;default:Z&1?w(A,E,k,H,z,$,j,Y,X):Z&6?O(A,E,k,H,z,$,j,Y,X):(Z&64||Z&128)&&U.process(A,E,k,H,z,$,j,Y,X,me)}de!=null&&z?_o(de,A&&A.ref,$,E||A,!E):de==null&&A&&A.ref!=null&&_o(A.ref,null,$,A,!0)},p=(A,E,k,H)=>{if(A==null)n(E.el=s(E.children),k,H);else{const z=E.el=A.el;E.children!==A.children&&u(z,E.children)}},m=(A,E,k,H)=>{A==null?n(E.el=l(E.children||""),k,H):E.el=A.el},_=(A,E,k,H)=>{[A.el,A.anchor]=v(A.children,E,k,H,A.el,A.anchor)},y=({el:A,anchor:E},k,H)=>{let z;for(;A&&A!==E;)z=h(A),n(A,k,H),A=z;n(E,k,H)},b=({el:A,anchor:E})=>{let k;for(;A&&A!==E;)k=h(A),i(A),A=k;i(E)},w=(A,E,k,H,z,$,j,Y,X)=>{E.type==="svg"?j="svg":E.type==="math"&&(j="mathml"),A==null?S(E,k,H,z,$,j,Y,X):T(A,E,z,$,j,Y,X)},S=(A,E,k,H,z,$,j,Y)=>{let X,U;const{props:de,shapeFlag:Z,transition:se,dirs:_e}=A;if(X=A.el=o(A.type,$,de&&de.is,de),Z&8?f(X,A.children):Z&16&&C(A.children,X,null,H,z,nh(A,$),j,Y),_e&&rn(A,null,H,"created"),x(X,A,A.scopeId,j,H),de){for(const Ke in de)Ke!=="value"&&!po(Ke)&&a(X,Ke,null,de[Ke],$,H);"value"in de&&a(X,"value",null,de.value,$),(U=de.onVnodeBeforeMount)&&qt(U,H,A)}_e&&rn(A,null,H,"beforeMount");const Ee=aS(z,se);Ee&&se.beforeEnter(X),n(X,E,k),((U=de&&de.onVnodeMounted)||Ee||_e)&&vt(()=>{U&&qt(U,H,A),Ee&&se.enter(X),_e&&rn(A,null,H,"mounted")},z)},x=(A,E,k,H,z)=>{if(k&&d(A,k),H)for(let $=0;$<H.length;$++)d(A,H[$]);if(z){let $=z.subTree;if(E===$||mf($.type)&&($.ssContent===E||$.ssFallback===E)){const j=z.vnode;x(A,j,j.scopeId,j.slotScopeIds,z.parent)}}},C=(A,E,k,H,z,$,j,Y,X=0)=>{for(let U=X;U<A.length;U++){const de=A[U]=Y?ei(A[U]):Zt(A[U]);g(null,de,E,k,H,z,$,j,Y)}},T=(A,E,k,H,z,$,j)=>{const Y=E.el=A.el;let{patchFlag:X,dynamicChildren:U,dirs:de}=E;X|=A.patchFlag&16;const Z=A.props||Ie,se=E.props||Ie;let _e;if(k&&Ci(k,!1),(_e=se.onVnodeBeforeUpdate)&&qt(_e,k,E,A),de&&rn(E,A,k,"beforeUpdate"),k&&Ci(k,!0),(Z.innerHTML&&se.innerHTML==null||Z.textContent&&se.textContent==null)&&f(Y,""),U?D(A.dynamicChildren,U,Y,k,H,nh(E,z),$):j||F(A,E,Y,null,k,H,nh(E,z),$,!1),X>0){if(X&16)I(Y,Z,se,k,z);else if(X&2&&Z.class!==se.class&&a(Y,"class",null,se.class,z),X&4&&a(Y,"style",Z.style,se.style,z),X&8){const Ee=E.dynamicProps;for(let Ke=0;Ke<Ee.length;Ke++){const He=Ee[Ke],Xt=Z[He],Ct=se[He];(Ct!==Xt||He==="value")&&a(Y,He,Xt,Ct,z,k)}}X&1&&A.children!==E.children&&f(Y,E.children)}else!j&&U==null&&I(Y,Z,se,k,z);((_e=se.onVnodeUpdated)||de)&&vt(()=>{_e&&qt(_e,k,E,A),de&&rn(E,A,k,"updated")},H)},D=(A,E,k,H,z,$,j)=>{for(let Y=0;Y<E.length;Y++){const X=A[Y],U=E[Y],de=X.el&&(X.type===et||!Vr(X,U)||X.shapeFlag&198)?c(X.el):k;g(X,U,de,null,H,z,$,j,!0)}},I=(A,E,k,H,z)=>{if(E!==k){if(E!==Ie)for(const $ in E)!po($)&&!($ in k)&&a(A,$,E[$],null,z,H);for(const $ in k){if(po($))continue;const j=k[$],Y=E[$];j!==Y&&$!=="value"&&a(A,$,Y,j,z,H)}"value"in k&&a(A,"value",E.value,k.value,z)}},M=(A,E,k,H,z,$,j,Y,X)=>{const U=E.el=A?A.el:s(""),de=E.anchor=A?A.anchor:s("");let{patchFlag:Z,dynamicChildren:se,slotScopeIds:_e}=E;_e&&(Y=Y?Y.concat(_e):_e),A==null?(n(U,k,H),n(de,k,H),C(E.children||[],k,de,z,$,j,Y,X)):Z>0&&Z&64&&se&&A.dynamicChildren?(D(A.dynamicChildren,se,k,z,$,j,Y),(E.key!=null||z&&E===z.subTree)&&Gp(A,E,!0)):F(A,E,k,de,z,$,j,Y,X)},O=(A,E,k,H,z,$,j,Y,X)=>{E.slotScopeIds=Y,A==null?E.shapeFlag&512?z.ctx.activate(E,k,H,j,X):R(E,k,H,z,$,j,X):V(A,E,X)},R=(A,E,k,H,z,$,j)=>{const Y=A.component=_S(A,H,z);if(Al(A)&&(Y.ctx.renderer=me),wS(Y,!1,j),Y.asyncDep){if(z&&z.registerDep(Y,N,j),!A.el){const X=Y.subTree=re(ft);m(null,X,E,k)}}else N(Y,A,E,k,z,$,j)},V=(A,E,k)=>{const H=E.component=A.component;if(cI(A,E,k))if(H.asyncDep&&!H.asyncResolved){B(H,E,k);return}else H.next=E,H.update();else E.el=A.el,H.vnode=E},N=(A,E,k,H,z,$,j)=>{const Y=()=>{if(A.isMounted){let{next:Z,bu:se,u:_e,parent:Ee,vnode:Ke}=A;{const ur=oS(A);if(ur){Z&&(Z.el=Ke.el,B(A,Z,j)),ur.asyncDep.then(()=>{A.isUnmounted||Y()});return}}let He=Z,Xt;Ci(A,!1),Z?(Z.el=Ke.el,B(A,Z,j)):Z=Ke,se&&mo(se),(Xt=Z.props&&Z.props.onVnodeBeforeUpdate)&&qt(Xt,Ee,Z,Ke),Ci(A,!0);const Ct=$u(A),Or=A.subTree;A.subTree=Ct,g(Or,Ct,c(Or.el),ut(Or),A,z,$),Z.el=Ct.el,He===null&&gc(A,Ct.el),_e&&vt(_e,z),(Xt=Z.props&&Z.props.onVnodeUpdated)&&vt(()=>qt(Xt,Ee,Z,Ke),z)}else{let Z;const{el:se,props:_e}=E,{bm:Ee,m:Ke,parent:He,root:Xt,type:Ct}=A,Or=oi(E);if(Ci(A,!1),Ee&&mo(Ee),!Or&&(Z=_e&&_e.onVnodeBeforeMount)&&qt(Z,He,E),Ci(A,!0),se&&ne){const ur=()=>{A.subTree=$u(A),ne(se,A.subTree,A,z,null)};Or&&Ct.__asyncHydrate?Ct.__asyncHydrate(se,A,ur):ur()}else{Xt.ce&&Xt.ce._def.shadowRoot!==!1&&Xt.ce._injectChildStyle(Ct);const ur=A.subTree=$u(A);g(null,ur,k,H,A,z,$),E.el=ur.el}if(Ke&&vt(Ke,z),!Or&&(Z=_e&&_e.onVnodeMounted)){const ur=E;vt(()=>qt(Z,He,ur),z)}(E.shapeFlag&256||He&&oi(He.vnode)&&He.vnode.shapeFlag&256)&&A.a&&vt(A.a,z),A.isMounted=!0,E=k=H=null}};A.scope.on();const X=A.effect=new Xs(Y);A.scope.off();const U=A.update=X.run.bind(X),de=A.job=X.runIfDirty.bind(X);de.i=A,de.id=A.uid,X.scheduler=()=>Pp(de),Ci(A,!0),U()},B=(A,E,k)=>{E.component=A;const H=A.vnode.props;A.vnode=E,A.next=null,QA(A,E.props,H,k),nI(A,E.children,k),In(),bm(A),Mn()},F=(A,E,k,H,z,$,j,Y,X=!1)=>{const U=A&&A.children,de=A?A.shapeFlag:0,Z=E.children,{patchFlag:se,shapeFlag:_e}=E;if(se>0){if(se&128){J(U,Z,k,H,z,$,j,Y,X);return}else if(se&256){G(U,Z,k,H,z,$,j,Y,X);return}}_e&8?(de&16&&De(U,z,$),Z!==U&&f(k,Z)):de&16?_e&16?J(U,Z,k,H,z,$,j,Y,X):De(U,z,$,!0):(de&8&&f(k,""),_e&16&&C(Z,k,H,z,$,j,Y,X))},G=(A,E,k,H,z,$,j,Y,X)=>{A=A||ho,E=E||ho;const U=A.length,de=E.length,Z=Math.min(U,de);let se;for(se=0;se<Z;se++){const _e=E[se]=X?ei(E[se]):Zt(E[se]);g(A[se],_e,k,null,z,$,j,Y,X)}U>de?De(A,z,$,!0,!1,Z):C(E,k,H,z,$,j,Y,X,Z)},J=(A,E,k,H,z,$,j,Y,X)=>{let U=0;const de=E.length;let Z=A.length-1,se=de-1;for(;U<=Z&&U<=se;){const _e=A[U],Ee=E[U]=X?ei(E[U]):Zt(E[U]);if(Vr(_e,Ee))g(_e,Ee,k,null,z,$,j,Y,X);else break;U++}for(;U<=Z&&U<=se;){const _e=A[Z],Ee=E[se]=X?ei(E[se]):Zt(E[se]);if(Vr(_e,Ee))g(_e,Ee,k,null,z,$,j,Y,X);else break;Z--,se--}if(U>Z){if(U<=se){const _e=se+1,Ee=_e<de?E[_e].el:H;for(;U<=se;)g(null,E[U]=X?ei(E[U]):Zt(E[U]),k,Ee,z,$,j,Y,X),U++}}else if(U>se)for(;U<=Z;)K(A[U],z,$,!0),U++;else{const _e=U,Ee=U,Ke=new Map;for(U=Ee;U<=se;U++){const fr=E[U]=X?ei(E[U]):Zt(E[U]);fr.key!=null&&Ke.set(fr.key,U)}let He,Xt=0;const Ct=se-Ee+1;let Or=!1,ur=0;const Ho=new Array(Ct);for(U=0;U<Ct;U++)Ho[U]=0;for(U=_e;U<=Z;U++){const fr=A[U];if(Xt>=Ct){K(fr,z,$,!0);continue}let jr;if(fr.key!=null)jr=Ke.get(fr.key);else for(He=Ee;He<=se;He++)if(Ho[He-Ee]===0&&Vr(fr,E[He])){jr=He;break}jr===void 0?K(fr,z,$,!0):(Ho[jr-Ee]=U+1,jr>=ur?ur=jr:Or=!0,g(fr,E[jr],k,null,z,$,j,Y,X),Xt++)}const vm=Or?iI(Ho):ho;for(He=vm.length-1,U=Ct-1;U>=0;U--){const fr=Ee+U,jr=E[fr],pm=fr+1<de?E[fr+1].el:H;Ho[U]===0?g(null,jr,k,pm,z,$,j,Y,X):Or&&(He<0||U!==vm[He]?oe(jr,k,pm,2):He--)}}},oe=(A,E,k,H,z=null)=>{const{el:$,type:j,transition:Y,children:X,shapeFlag:U}=A;if(U&6){oe(A.component.subTree,E,k,H);return}if(U&128){A.suspense.move(E,k,H);return}if(U&64){j.move(A,E,k,me);return}if(j===et){n($,E,k);for(let Z=0;Z<X.length;Z++)oe(X[Z],E,k,H);n(A.anchor,E,k);return}if(j===la){y(A,E,k);return}if(H!==2&&U&1&&Y)if(H===0)Y.beforeEnter($),n($,E,k),vt(()=>Y.enter($),z);else{const{leave:Z,delayLeave:se,afterLeave:_e}=Y,Ee=()=>{A.ctx.isUnmounted?i($):n($,E,k)},Ke=()=>{Z($,()=>{Ee(),_e&&_e()})};se?se($,Ee,Ke):Ke()}else n($,E,k)},K=(A,E,k,H=!1,z=!1)=>{const{type:$,props:j,ref:Y,children:X,dynamicChildren:U,shapeFlag:de,patchFlag:Z,dirs:se,cacheIndex:_e}=A;if(Z===-2&&(z=!1),Y!=null&&(In(),_o(Y,null,k,A,!0),Mn()),_e!=null&&(E.renderCache[_e]=void 0),de&256){E.ctx.deactivate(A);return}const Ee=de&1&&se,Ke=!oi(A);let He;if(Ke&&(He=j&&j.onVnodeBeforeUnmount)&&qt(He,E,A),de&6)ze(A.component,k,H);else{if(de&128){A.suspense.unmount(k,H);return}Ee&&rn(A,null,E,"beforeUnmount"),de&64?A.type.remove(A,E,k,me,H):U&&!U.hasOnce&&($!==et||Z>0&&Z&64)?De(U,E,k,!1,!0):($===et&&Z&384||!z&&de&16)&&De(X,E,k),H&&Te(A)}(Ke&&(He=j&&j.onVnodeUnmounted)||Ee)&&vt(()=>{He&&qt(He,E,A),Ee&&rn(A,null,E,"unmounted")},k)},Te=A=>{const{type:E,el:k,anchor:H,transition:z}=A;if(E===et){Ge(k,H);return}if(E===la){b(A);return}const $=()=>{i(k),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(A.shapeFlag&1&&z&&!z.persisted){const{leave:j,delayLeave:Y}=z,X=()=>j(k,$);Y?Y(A.el,$,X):X()}else $()},Ge=(A,E)=>{let k;for(;A!==E;)k=h(A),i(A),A=k;i(E)},ze=(A,E,k)=>{const{bum:H,scope:z,job:$,subTree:j,um:Y,m:X,a:U,parent:de,slots:{__:Z}}=A;gf(X),gf(U),H&&mo(H),de&&ie(Z)&&Z.forEach(se=>{de.renderCache[se]=void 0}),z.stop(),$&&($.flags|=8,K(j,A,E,k)),Y&&vt(Y,E),vt(()=>{A.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&A.asyncDep&&!A.asyncResolved&&A.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},De=(A,E,k,H=!1,z=!1,$=0)=>{for(let j=$;j<A.length;j++)K(A[j],E,k,H,z)},ut=A=>{if(A.shapeFlag&6)return ut(A.component.subTree);if(A.shapeFlag&128)return A.suspense.next();const E=h(A.anchor||A.el),k=E&&E[Dw];return k?h(k):E};let ye=!1;const ee=(A,E,k)=>{A==null?E._vnode&&K(E._vnode,null,null,!0):g(E._vnode||null,A,E,null,null,null,k),E._vnode=A,ye||(ye=!0,bm(),vf(),ye=!1)},me={p:g,um:K,m:oe,r:Te,mt:R,mc:C,pc:F,pbc:D,n:ut,o:t};let q,ne;return e&&([q,ne]=e(me)),{render:ee,hydrate:q,createApp:ZA(ee,q)}}function nh({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function Ci({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function aS(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Gp(t,e,r=!1){const n=t.children,i=e.children;if(ie(n)&&ie(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=ei(i[a]),s.el=o.el),!r&&s.patchFlag!==-2&&Gp(o,s)),s.type===li&&(s.el=o.el),s.type===ft&&!s.el&&(s.el=o.el)}}function iI(t){const e=t.slice(),r=[0];let n,i,a,o,s;const l=t.length;for(n=0;n<l;n++){const u=t[n];if(u!==0){if(i=r[r.length-1],t[i]<u){e[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,t[r[s]]<u?a=s+1:o=s;u<t[r[a]]&&(a>0&&(e[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=e[o];return r}function oS(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:oS(e)}function gf(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const sS=Symbol.for("v-scx"),lS=()=>si(sS);function Yt(t,e){return Ml(t,null,e)}function aI(t,e){return Ml(t,null,{flush:"post"})}function uS(t,e){return Ml(t,null,{flush:"sync"})}function Ne(t,e,r){return Ml(t,e,r)}function Ml(t,e,r=Ie){const{immediate:n,deep:i,flush:a,once:o}=r,s=Xe({},r),l=e&&n||!e&&a!=="post";let u;if(Co){if(a==="sync"){const d=lS();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Mr,d.resume=Mr,d.pause=Mr,d}}const f=pt;s.call=(d,v,g)=>Lr(d,f,v,g);let c=!1;a==="post"?s.scheduler=d=>{vt(d,f&&f.suspense)}:a!=="sync"&&(c=!0,s.scheduler=(d,v)=>{v?d():Pp(d)}),s.augmentJob=d=>{e&&(d.flags|=4),c&&(d.flags|=2,f&&(d.id=f.uid,d.i=f))};const h=ZD(t,e,s);return Co&&(u?u.push(h):l&&h()),h}function oI(t,e,r){const n=this.proxy,i=Je(t)?t.includes(".")?fS(n,t):()=>n[t]:t.bind(n,n);let a;pe(e)?a=e:(a=e.handler,r=e);const o=ga(this),s=Ml(i,a.bind(n),r);return o(),s}function fS(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function br(t,e,r=Ie){const n=ht(),i=bt(e),a=tr(e),o=cS(t,i),s=Ep((l,u)=>{let f,c=Ie,h;return uS(()=>{const d=t[i];Ht(f,d)&&(f=d,u())}),{get(){return l(),r.get?r.get(f):f},set(d){const v=r.set?r.set(d):d;if(!Ht(v,f)&&!(c!==Ie&&Ht(d,c)))return;const g=n.vnode.props;g&&(e in g||i in g||a in g)&&(`onUpdate:${e}`in g||`onUpdate:${i}`in g||`onUpdate:${a}`in g)||(f=d,u()),n.emit(`update:${e}`,v),Ht(d,v)&&Ht(d,c)&&!Ht(v,h)&&u(),c=d,h=v}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||Ie:s,done:!1}:{done:!0}}}},s}const cS=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${bt(e)}Modifiers`]||t[`${tr(e)}Modifiers`];function sI(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||Ie;let i=r;const a=e.startsWith("update:"),o=a&&cS(n,e.slice(7));o&&(o.trim&&(i=r.map(f=>Je(f)?f.trim():f)),o.number&&(i=r.map(lf)));let s,l=n[s=go(e)]||n[s=go(bt(e))];!l&&a&&(l=n[s=go(tr(e))]),l&&Lr(l,t,6,i);const u=n[s+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Lr(u,t,6,i)}}function hS(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const a=t.emits;let o={},s=!1;if(!pe(t)){const l=u=>{const f=hS(u,e,!0);f&&(s=!0,Xe(o,f))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!s?(Ue(t)&&n.set(t,null),null):(ie(a)?a.forEach(l=>o[l]=null):Xe(o,a),Ue(t)&&n.set(t,o),o)}function pc(t,e){return!t||!Tl(e)?!1:(e=e.slice(2).replace(/Once$/,""),Be(t,e[0].toLowerCase()+e.slice(1))||Be(t,tr(e))||Be(t,e))}function $u(t){const{type:e,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:d,ctx:v,inheritAttrs:g}=t,p=Js(t);let m,_;try{if(r.shapeFlag&4){const b=i||n,w=b;m=Zt(u.call(w,b,f,c,d,h,v)),_=s}else{const b=e;m=Zt(b.length>1?b(c,{attrs:s,slots:o,emit:l}):b(c,null)),_=e.props?s:uI(s)}}catch(b){Ls.length=0,Ta(b,t,1),m=re(ft)}let y=m;if(_&&g!==!1){const b=Object.keys(_),{shapeFlag:w}=y;b.length&&w&7&&(a&&b.some(_p)&&(_=fI(_,a)),y=Ur(y,_,!1,!0))}return r.dirs&&(y=Ur(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&Pn(y,r.transition),m=y,Js(p),m}function lI(t,e=!0){let r;for(let n=0;n<t.length;n++){const i=t[n];if(Ln(i)){if(i.type!==ft||i.children==="v-if"){if(r)return;r=i}}else return}return r}const uI=t=>{let e;for(const r in t)(r==="class"||r==="style"||Tl(r))&&((e||(e={}))[r]=t[r]);return e},fI=(t,e)=>{const r={};for(const n in t)(!_p(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function cI(t,e,r){const{props:n,children:i,component:a}=t,{props:o,children:s,patchFlag:l}=e,u=a.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Lm(n,o,u):!!o;if(l&8){const f=e.dynamicProps;for(let c=0;c<f.length;c++){const h=f[c];if(o[h]!==n[h]&&!pc(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?Lm(n,o,u):!0:!!o;return!1}function Lm(t,e,r){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(e[a]!==t[a]&&!pc(r,a))return!0}return!1}function gc({vnode:t,parent:e},r){for(;e;){const n=e.subTree;if(n.suspense&&n.suspense.activeBranch===t&&(n.el=t.el),n===t)(t=e.vnode).el=r,e=e.parent;else break}}const mf=t=>t.__isSuspense;let Jd=0;const hI={name:"Suspense",__isSuspense:!0,process(t,e,r,n,i,a,o,s,l,u){if(t==null)vI(e,r,n,i,a,o,s,l,u);else{if(a&&a.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}pI(t,e,r,n,i,o,s,l,u)}},hydrate:gI,normalize:mI},dI=hI;function el(t,e){const r=t.props&&t.props[e];pe(r)&&r()}function vI(t,e,r,n,i,a,o,s,l){const{p:u,o:{createElement:f}}=l,c=f("div"),h=t.suspense=dS(t,i,n,e,c,r,a,o,s,l);u(null,h.pendingBranch=t.ssContent,c,null,n,h,a,o),h.deps>0?(el(t,"onPending"),el(t,"onFallback"),u(null,t.ssFallback,e,r,n,null,a,o),bo(h,t.ssFallback)):h.resolve(!1,!0)}function pI(t,e,r,n,i,a,o,s,{p:l,um:u,o:{createElement:f}}){const c=e.suspense=t.suspense;c.vnode=e,e.el=t.el;const h=e.ssContent,d=e.ssFallback,{activeBranch:v,pendingBranch:g,isInFallback:p,isHydrating:m}=c;if(g)c.pendingBranch=h,Vr(h,g)?(l(g,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():p&&(m||(l(v,d,r,n,i,null,a,o,s),bo(c,d)))):(c.pendingId=Jd++,m?(c.isHydrating=!1,c.activeBranch=g):u(g,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=f("div"),p?(l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():(l(v,d,r,n,i,null,a,o,s),bo(c,d))):v&&Vr(h,v)?(l(v,h,r,n,i,c,a,o,s),c.resolve(!0)):(l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0&&c.resolve()));else if(v&&Vr(h,v))l(v,h,r,n,i,c,a,o,s),bo(c,h);else if(el(e,"onPending"),c.pendingBranch=h,h.shapeFlag&512?c.pendingId=h.component.suspenseId:c.pendingId=Jd++,l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0)c.resolve();else{const{timeout:_,pendingId:y}=c;_>0?setTimeout(()=>{c.pendingId===y&&c.fallback(d)},_):_===0&&c.fallback(d)}}function dS(t,e,r,n,i,a,o,s,l,u,f=!1){const{p:c,m:h,um:d,n:v,o:{parentNode:g,remove:p}}=u;let m;const _=yI(t);_&&e&&e.pendingBranch&&(m=e.pendingId,e.deps++);const y=t.props?uf(t.props.timeout):void 0,b=a,w={vnode:t,parent:e,parentComponent:r,namespace:o,container:n,hiddenContainer:i,deps:0,pendingId:Jd++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(S=!1,x=!1){const{vnode:C,activeBranch:T,pendingBranch:D,pendingId:I,effects:M,parentComponent:O,container:R}=w;let V=!1;w.isHydrating?w.isHydrating=!1:S||(V=T&&D.transition&&D.transition.mode==="out-in",V&&(T.transition.afterLeave=()=>{I===w.pendingId&&(h(D,R,a===b?v(T):a,0),qs(M))}),T&&(g(T.el)===R&&(a=v(T)),d(T,O,w,!0)),V||h(D,R,a,0)),bo(w,D),w.pendingBranch=null,w.isInFallback=!1;let N=w.parent,B=!1;for(;N;){if(N.pendingBranch){N.effects.push(...M),B=!0;break}N=N.parent}!B&&!V&&qs(M),w.effects=[],_&&e&&e.pendingBranch&&m===e.pendingId&&(e.deps--,e.deps===0&&!x&&e.resolve()),el(C,"onResolve")},fallback(S){if(!w.pendingBranch)return;const{vnode:x,activeBranch:C,parentComponent:T,container:D,namespace:I}=w;el(x,"onFallback");const M=v(C),O=()=>{w.isInFallback&&(c(null,S,D,M,T,null,I,s,l),bo(w,S))},R=S.transition&&S.transition.mode==="out-in";R&&(C.transition.afterLeave=O),w.isInFallback=!0,d(C,T,null,!0),R||O()},move(S,x,C){w.activeBranch&&h(w.activeBranch,S,x,C),w.container=S},next(){return w.activeBranch&&v(w.activeBranch)},registerDep(S,x,C){const T=!!w.pendingBranch;T&&w.deps++;const D=S.vnode.el;S.asyncDep.catch(I=>{Ta(I,S,0)}).then(I=>{if(S.isUnmounted||w.isUnmounted||w.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:M}=S;rv(S,I,!1),D&&(M.el=D);const O=!D&&S.subTree.el;x(S,M,g(D||S.subTree.el),D?null:v(S.subTree),w,o,C),O&&p(O),gc(S,M.el),T&&--w.deps===0&&w.resolve()})},unmount(S,x){w.isUnmounted=!0,w.activeBranch&&d(w.activeBranch,r,S,x),w.pendingBranch&&d(w.pendingBranch,r,S,x)}};return w}function gI(t,e,r,n,i,a,o,s,l){const u=e.suspense=dS(e,n,r,t.parentNode,document.createElement("div"),null,i,a,o,s,!0),f=l(t,u.pendingBranch=e.ssContent,r,u,a,o);return u.deps===0&&u.resolve(!1,!0),f}function mI(t){const{shapeFlag:e,children:r}=t,n=e&32;t.ssContent=Rm(n?r.default:r),t.ssFallback=n?Rm(r.fallback):re(ft)}function Rm(t){let e;if(pe(t)){const r=pa&&t._c;r&&(t._d=!1,Q()),t=t(),r&&(t._d=!0,e=Lt,pS())}return ie(t)&&(t=lI(t)),t=Zt(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function vS(t,e){e&&e.pendingBranch?ie(t)?e.effects.push(...t):e.effects.push(t):qs(t)}function bo(t,e){t.activeBranch=e;const{vnode:r,parentComponent:n}=t;let i=e.el;for(;!i&&e.component;)e=e.component.subTree,i=e.el;r.el=i,n&&n.subTree===r&&(n.vnode.el=i,gc(n,i))}function yI(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const et=Symbol.for("v-fgt"),li=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),la=Symbol.for("v-stc"),Ls=[];let Lt=null;function Q(t=!1){Ls.push(Lt=t?null:[])}function pS(){Ls.pop(),Lt=Ls[Ls.length-1]||null}let pa=1;function Qd(t,e=!1){pa+=t,t<0&&Lt&&e&&(Lt.hasOnce=!0)}function gS(t){return t.dynamicChildren=pa>0?Lt||ho:null,pS(),pa>0&&Lt&&Lt.push(t),t}function nt(t,e,r,n,i,a){return gS(xe(t,e,r,n,i,a,!0))}function ge(t,e,r,n,i){return gS(re(t,e,r,n,i,!0))}function Ln(t){return t?t.__v_isVNode===!0:!1}function Vr(t,e){return t.type===e.type&&t.key===e.key}function _I(t){}const mS=({key:t})=>t??null,Gu=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Je(t)||qe(t)||pe(t)?{i:gt,r:t,k:e,f:!!r}:t:null);function xe(t,e=null,r=null,n=0,i=null,a=t===et?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&mS(e),ref:e&&Gu(e),scopeId:lc,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:gt};return s?(Wp(l,r),a&128&&t.normalize(l)):r&&(l.shapeFlag|=Je(r)?8:16),pa>0&&!o&&Lt&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Lt.push(l),l}const re=bI;function bI(t,e=null,r=null,n=0,i=null,a=!1){if((!t||t===Uw)&&(t=ft),Ln(t)){const s=Ur(t,e,!0);return r&&Wp(s,r),pa>0&&!a&&Lt&&(s.shapeFlag&6?Lt[Lt.indexOf(t)]=s:Lt.push(s)),s.patchFlag=-2,s}if(AI(t)&&(t=t.__vccOpts),e){e=Up(e);let{class:s,style:l}=e;s&&!Je(s)&&(e.class=un(s)),Ue(l)&&(sc(l)&&!ie(l)&&(l=Xe({},l)),e.style=On(l))}const o=Je(t)?1:mf(t)?128:Aw(t)?64:Ue(t)?4:pe(t)?2:0;return xe(t,e,r,n,i,o,a,!0)}function Up(t){return t?sc(t)||qw(t)?Xe({},t):t:null}function Ur(t,e,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=t,u=e?St(i||{},e):i,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&mS(u),ref:e&&e.ref?r&&a?ie(a)?a.concat(Gu(e)):[a,Gu(e)]:Gu(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==et?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ur(t.ssContent),ssFallback:t.ssFallback&&Ur(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&Pn(f,l.clone(f)),f}function mr(t=" ",e=0){return re(li,null,t,e)}function yS(t,e){const r=re(la,null,t);return r.staticCount=e,r}function sn(t="",e=!1){return e?(Q(),ge(ft,null,t)):re(ft,null,t)}function Zt(t){return t==null||typeof t=="boolean"?re(ft):ie(t)?re(et,null,t.slice()):Ln(t)?ei(t):re(li,null,String(t))}function ei(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ur(t)}function Wp(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(ie(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),Wp(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!qw(e)?e._ctx=gt:i===3&>&&(gt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else pe(e)?(e={default:e,_ctx:gt},r=32):(e=String(e),n&64?(r=16,e=[mr(e)]):r=8);t.children=e,t.shapeFlag|=r}function St(...t){const e={};for(let r=0;r<t.length;r++){const n=t[r];for(const i in n)if(i==="class")e.class!==n.class&&(e.class=un([e.class,n.class]));else if(i==="style")e.style=On([e.style,n.style]);else if(Tl(i)){const a=e[i],o=n[i];o&&a!==o&&!(ie(a)&&a.includes(o))&&(e[i]=a?[].concat(a,o):o)}else i!==""&&(e[i]=n[i])}return e}function qt(t,e,r,n=null){Lr(t,e,7,[r,n])}const wI=Xw();let SI=0;function _S(t,e,r){const n=t.type,i=(e?e.appContext:t.appContext)||wI,a={uid:SI++,vnode:t,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new xp(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Jw(n,i),emitsOptions:hS(n,i),emit:null,emitted:null,propsDefaults:Ie,inheritAttrs:n.inheritAttrs,ctx:Ie,data:Ie,props:Ie,attrs:Ie,slots:Ie,refs:Ie,setupState:Ie,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=sI.bind(null,a),t.ce&&t.ce(a),a}let pt=null;const ht=()=>pt||gt;let yf,ev;{const t=ec(),e=(r,n)=>{let i;return(i=t[r])||(i=t[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};yf=e("__VUE_INSTANCE_SETTERS__",r=>pt=r),ev=e("__VUE_SSR_SETTERS__",r=>Co=r)}const ga=t=>{const e=pt;return yf(t),t.scope.on(),()=>{t.scope.off(),yf(e)}},tv=()=>{pt&&pt.scope.off(),yf(null)};function bS(t){return t.vnode.shapeFlag&4}let Co=!1;function wS(t,e=!1,r=!1){e&&ev(e);const{props:n,children:i}=t.vnode,a=bS(t);JA(t,n,a,e),rI(t,i,r||e);const o=a?xI(t,e):void 0;return e&&ev(!1),o}function xI(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Kd);const{setup:n}=r;if(n){In();const i=t.setupContext=n.length>1?xS(t):null,a=ga(t),o=Ro(n,t,0,[t.props,i]),s=wp(o);if(Mn(),a(),(s||t.sp)&&!oi(t)&&Op(t),s){if(o.then(tv,tv),e)return o.then(l=>{rv(t,l,e)}).catch(l=>{Ta(l,t,0)});t.asyncDep=o}else rv(t,o,e)}else SS(t,e)}function rv(t,e,r){pe(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ue(e)&&(t.setupState=Mp(e)),SS(t,r)}let _f,nv;function TI(t){_f=t,nv=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,LA))}}const CI=()=>!_f;function SS(t,e,r){const n=t.type;if(!t.render){if(!e&&_f&&!n.render){const i=n.template||Vp(t).template;if(i){const{isCustomElement:a,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Xe(Xe({isCustomElement:a,delimiters:s},o),l);n.render=_f(i,u)}}t.render=n.render||Mr,nv&&nv(t)}{const i=ga(t);In();try{WA(t)}finally{Mn(),i()}}}const DI={get(t,e){return Pt(t,"get",""),t[e]}};function xS(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,DI),slots:t.slots,emit:t.emit,expose:e}}function El(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Mp(gw(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Ps)return Ps[r](t)},has(e,r){return r in e||r in Ps}})):t.proxy}function iv(t,e=!0){return pe(t)?t.displayName||t.name:t.name||e&&t.__name}function AI(t){return pe(t)&&"__vccOpts"in t}const ce=(t,e)=>XD(t,e,Co);function Ft(t,e,r){const n=arguments.length;return n===2?Ue(e)&&!ie(e)?Ln(e)?re(t,null,[e]):re(t,e):re(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ln(r)&&(r=[r]),re(t,e,r))}function II(){}function MI(t,e,r,n){const i=r[n];if(i&&TS(i,t))return i;const a=e();return a.memo=t.slice(),a.cacheIndex=n,r[n]=a}function TS(t,e){const r=t.memo;if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(Ht(r[n],e[n]))return!1;return pa>0&&Lt&&Lt.push(t),!0}const CS="3.5.17",EI=Mr,PI=rA,LI=eo,RI=Cw,OI={createComponentInstance:_S,setupComponent:wS,renderComponentRoot:$u,setCurrentRenderingInstance:Js,isVNode:Ln,normalizeVNode:Zt,getComponentPublicInstance:El,ensureValidVNode:Fp,pushWarningContext:JD,popWarningContext:QD},kI=OI,NI=null,BI=null,FI=null;/**
|
|
15
|
+
* @vue/runtime-dom v3.5.17
|
|
16
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
|
+
* @license MIT
|
|
18
|
+
**/let av;const Om=typeof window<"u"&&window.trustedTypes;if(Om)try{av=Om.createPolicy("vue",{createHTML:t=>t})}catch{}const DS=av?t=>av.createHTML(t):t=>t,VI="http://www.w3.org/2000/svg",zI="http://www.w3.org/1998/Math/MathML",_n=typeof document<"u"?document:null,km=_n&&_n.createElement("template"),HI={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e==="svg"?_n.createElementNS(VI,t):e==="mathml"?_n.createElementNS(zI,t):r?_n.createElement(t,{is:r}):_n.createElement(t);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>_n.createTextNode(t),createComment:t=>_n.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>_n.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,i,a){const o=r?r.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{km.innerHTML=DS(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const s=km.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,r)}return[o?o.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},Fn="transition",Go="animation",Do=Symbol("_vtc"),AS={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},IS=Xe({},Rp,AS),$I=t=>(t.displayName="Transition",t.props=IS,t),GI=$I((t,{slots:e})=>Ft(Rw,MS(t),e)),Di=(t,e=[])=>{ie(t)?t.forEach(r=>r(...e)):t&&t(...e)},Nm=t=>t?ie(t)?t.some(e=>e.length>1):t.length>1:!1;function MS(t){const e={};for(const M in t)M in AS||(e[M]=t[M]);if(t.css===!1)return e;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:d=`${r}-leave-to`}=t,v=UI(i),g=v&&v[0],p=v&&v[1],{onBeforeEnter:m,onEnter:_,onEnterCancelled:y,onLeave:b,onLeaveCancelled:w,onBeforeAppear:S=m,onAppear:x=_,onAppearCancelled:C=y}=e,T=(M,O,R,V)=>{M._enterCancelled=V,Xn(M,O?f:s),Xn(M,O?u:o),R&&R()},D=(M,O)=>{M._isLeaving=!1,Xn(M,c),Xn(M,d),Xn(M,h),O&&O()},I=M=>(O,R)=>{const V=M?x:_,N=()=>T(O,M,R);Di(V,[O,N]),Bm(()=>{Xn(O,M?l:a),en(O,M?f:s),Nm(V)||Fm(O,n,g,N)})};return Xe(e,{onBeforeEnter(M){Di(m,[M]),en(M,a),en(M,o)},onBeforeAppear(M){Di(S,[M]),en(M,l),en(M,u)},onEnter:I(!1),onAppear:I(!0),onLeave(M,O){M._isLeaving=!0;const R=()=>D(M,O);en(M,c),M._enterCancelled?(en(M,h),ov()):(ov(),en(M,h)),Bm(()=>{M._isLeaving&&(Xn(M,c),en(M,d),Nm(b)||Fm(M,n,p,R))}),Di(b,[M,R])},onEnterCancelled(M){T(M,!1,void 0,!0),Di(y,[M])},onAppearCancelled(M){T(M,!0,void 0,!0),Di(C,[M])},onLeaveCancelled(M){D(M),Di(w,[M])}})}function UI(t){if(t==null)return null;if(Ue(t))return[ih(t.enter),ih(t.leave)];{const e=ih(t);return[e,e]}}function ih(t){return uf(t)}function en(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[Do]||(t[Do]=new Set)).add(e)}function Xn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[Do];r&&(r.delete(e),r.size||(t[Do]=void 0))}function Bm(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let WI=0;function Fm(t,e,r,n){const i=t._endId=++WI,a=()=>{i===t._endId&&n()};if(r!=null)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=ES(t,e);if(!o)return n();const u=o+"end";let f=0;const c=()=>{t.removeEventListener(u,h),a()},h=d=>{d.target===t&&++f>=l&&c()};setTimeout(()=>{f<l&&c()},s+1),t.addEventListener(u,h)}function ES(t,e){const r=window.getComputedStyle(t),n=v=>(r[v]||"").split(", "),i=n(`${Fn}Delay`),a=n(`${Fn}Duration`),o=Vm(i,a),s=n(`${Go}Delay`),l=n(`${Go}Duration`),u=Vm(s,l);let f=null,c=0,h=0;e===Fn?o>0&&(f=Fn,c=o,h=a.length):e===Go?u>0&&(f=Go,c=u,h=l.length):(c=Math.max(o,u),f=c>0?o>u?Fn:Go:null,h=f?f===Fn?a.length:l.length:0);const d=f===Fn&&/\b(transform|all)(,|$)/.test(n(`${Fn}Property`).toString());return{type:f,timeout:c,propCount:h,hasTransform:d}}function Vm(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,n)=>zm(r)+zm(t[n])))}function zm(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function ov(){return document.body.offsetHeight}function YI(t,e,r){const n=t[Do];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const bf=Symbol("_vod"),PS=Symbol("_vsh"),LS={beforeMount(t,{value:e},{transition:r}){t[bf]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Uo(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),Uo(t,!0),n.enter(t)):n.leave(t,()=>{Uo(t,!1)}):Uo(t,e))},beforeUnmount(t,{value:e}){Uo(t,e)}};function Uo(t,e){t.style.display=e?t[bf]:"none",t[PS]=!e}function XI(){LS.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const RS=Symbol("");function KI(t){const e=ht();if(!e)return;const r=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(a=>wf(a,i))},n=()=>{const i=t(e.proxy);e.ce?wf(e.ce,i):sv(e.subTree,i),r(i)};kp(()=>{qs(n)}),lr(()=>{Ne(n,Mr,{flush:"post"});const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),Si(()=>i.disconnect())})}function sv(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{sv(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)wf(t.el,e);else if(t.type===et)t.children.forEach(r=>sv(r,e));else if(t.type===la){let{el:r,anchor:n}=t;for(;r&&(wf(r,e),r!==n);)r=r.nextSibling}}function wf(t,e){if(t.nodeType===1){const r=t.style;let n="";for(const i in e)r.setProperty(`--${i}`,e[i]),n+=`--${i}: ${e[i]};`;r[RS]=n}}const jI=/(^|;)\s*display\s*:/;function qI(t,e,r){const n=t.style,i=Je(r);let a=!1;if(r&&!i){if(e)if(Je(e))for(const o of e.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&Uu(n,s,"")}else for(const o in e)r[o]==null&&Uu(n,o,"");for(const o in r)o==="display"&&(a=!0),Uu(n,o,r[o])}else if(i){if(e!==r){const o=n[RS];o&&(r+=";"+o),n.cssText=r,a=jI.test(r)}}else e&&t.removeAttribute("style");bf in t&&(t[bf]=a?n.display:"",t[PS]&&(n.display="none"))}const Hm=/\s*!important$/;function Uu(t,e,r){if(ie(r))r.forEach(n=>Uu(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=ZI(t,e);Hm.test(r)?t.setProperty(tr(n),r.replace(Hm,""),"important"):t[n]=r}}const $m=["Webkit","Moz","ms"],ah={};function ZI(t,e){const r=ah[e];if(r)return r;let n=bt(e);if(n!=="filter"&&n in t)return ah[e]=n;n=Cl(n);for(let i=0;i<$m.length;i++){const a=$m[i]+n;if(a in t)return ah[e]=a}return e}const Gm="http://www.w3.org/1999/xlink";function Um(t,e,r,n,i,a=gD(e)){n&&e.startsWith("xlink:")?r==null?t.removeAttributeNS(Gm,e.slice(6,e.length)):t.setAttributeNS(Gm,e,r):r==null||a&&!Zb(r)?t.removeAttribute(e):t.setAttribute(e,a?"":Gr(r)?String(r):r)}function Wm(t,e,r,n,i){if(e==="innerHTML"||e==="textContent"){r!=null&&(t[e]=e==="innerHTML"?DS(r):r);return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?t.getAttribute("value")||"":t.value,l=r==null?t.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in t))&&(t.value=l),r==null&&t.removeAttribute(e),t._value=r;return}let o=!1;if(r===""||r==null){const s=typeof t[e];s==="boolean"?r=Zb(r):r==null&&s==="string"?(r="",o=!0):s==="number"&&(r=0,o=!0)}try{t[e]=r}catch{}o&&t.removeAttribute(i||e)}function xn(t,e,r,n){t.addEventListener(e,r,n)}function JI(t,e,r,n){t.removeEventListener(e,r,n)}const Ym=Symbol("_vei");function QI(t,e,r,n,i=null){const a=t[Ym]||(t[Ym]={}),o=a[e];if(n&&o)o.value=n;else{const[s,l]=eM(e);if(n){const u=a[e]=nM(n,i);xn(t,s,u,l)}else o&&(JI(t,s,o,l),a[e]=void 0)}}const Xm=/(?:Once|Passive|Capture)$/;function eM(t){let e;if(Xm.test(t)){e={};let n;for(;n=t.match(Xm);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):tr(t.slice(2)),e]}let oh=0;const tM=Promise.resolve(),rM=()=>oh||(tM.then(()=>oh=0),oh=Date.now());function nM(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Lr(iM(n,r.value),e,5,[n])};return r.value=t,r.attached=rM(),r}function iM(t,e){if(ie(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const Km=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,aM=(t,e,r,n,i,a)=>{const o=i==="svg";e==="class"?YI(t,n,o):e==="style"?qI(t,r,n):Tl(e)?_p(e)||QI(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):oM(t,e,n,o))?(Wm(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Um(t,e,n,o,a,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Je(n))?Wm(t,bt(e),n,a,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Um(t,e,n,o))};function oM(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&Km(e)&&pe(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Km(e)&&Je(r)?!1:e in t}const jm={};/*! #__NO_SIDE_EFFECTS__ */function OS(t,e,r){const n=he(t,e);Jf(n)&&Xe(n,e);class i extends mc{constructor(o){super(n,o,r)}}return i.def=n,i}/*! #__NO_SIDE_EFFECTS__ */const sM=(t,e)=>OS(t,e,YS),lM=typeof HTMLElement<"u"?HTMLElement:class{};class mc extends lM{constructor(e,r={},n=Tf){super(),this._def=e,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==Tf?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof mc){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Ot(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const i of n)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(n,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:o}=n;let s;if(a&&!ie(a))for(const l in a){const u=a[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=uf(this._props[l])),(s||(s=Object.create(null)))[bt(l)]=!0)}this._numberProps=s,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>{n.configureApp=this._def.configureApp,e(this._def=n,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)Be(this,n)||Object.defineProperty(this,n,{get:()=>L(r[n])})}_resolveProps(e){const{props:r}=e,n=ie(r)?r:Object.keys(r||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(bt))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const r=this.hasAttribute(e);let n=r?this.getAttribute(e):jm;const i=bt(e);r&&this._numberProps&&this._numberProps[i]&&(n=uf(n)),this._setProp(i,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,r,n=!0,i=!1){if(r!==this._props[e]&&(r===jm?delete this._props[e]:(this._props[e]=r,e==="key"&&this._app&&(this._app._ceVNode.key=r)),i&&this._instance&&this._update(),n)){const a=this._ob;a&&a.disconnect(),r===!0?this.setAttribute(tr(e),""):typeof r=="string"||typeof r=="number"?this.setAttribute(tr(e),r+""):r||this.removeAttribute(tr(e)),a&&a.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),WS(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const r=re(this._def,Xe(e,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const i=(a,o)=>{this.dispatchEvent(new CustomEvent(a,Jf(o[0])?Xe({detail:o},o[0]):{detail:o}))};n.emit=(a,...o)=>{i(a,o),tr(a)!==a&&i(tr(a),o)},this._setParent()}),r}_applyStyles(e,r){if(!e)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const n=this._nonce;for(let i=e.length-1;i>=0;i--){const a=document.createElement("style");n&&a.setAttribute("nonce",n),a.textContent=e[i],this.shadowRoot.prepend(a)}}_parseSlots(){const e=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),r=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const i=e[n],a=i.getAttribute("name")||"default",o=this._slots[a],s=i.parentNode;if(o)for(const l of o){if(r&&l.nodeType===1){const u=r+"-s",f=document.createTreeWalker(l,1);l.setAttribute(u,"");let c;for(;c=f.nextNode();)c.setAttribute(u,"")}s.insertBefore(l,i)}else for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}function kS(t){const e=ht(),r=e&&e.ce;return r||null}function uM(){const t=kS();return t&&t.shadowRoot}function fM(t="$style"){{const e=ht();if(!e)return Ie;const r=e.type.__cssModules;if(!r)return Ie;const n=r[t];return n||Ie}}const NS=new WeakMap,BS=new WeakMap,Sf=Symbol("_moveCb"),qm=Symbol("_enterCb"),cM=t=>(delete t.props.mode,t),hM=cM({name:"TransitionGroup",props:Xe({},IS,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=ht(),n=Lp();let i,a;return dc(()=>{if(!i.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!mM(i[0].el,r.vnode.el,o)){i=[];return}i.forEach(vM),i.forEach(pM);const s=i.filter(gM);ov(),s.forEach(l=>{const u=l.el,f=u.style;en(u,o),f.transform=f.webkitTransform=f.transitionDuration="";const c=u[Sf]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",c),u[Sf]=null,Xn(u,o))};u.addEventListener("transitionend",c)}),i=[]}),()=>{const o=Pe(t),s=MS(o);let l=o.tag||et;if(i=[],a)for(let u=0;u<a.length;u++){const f=a[u];f.el&&f.el instanceof Element&&(i.push(f),Pn(f,To(f,s,n,r)),NS.set(f,f.el.getBoundingClientRect()))}a=e.default?fc(e.default()):[];for(let u=0;u<a.length;u++){const f=a[u];f.key!=null&&Pn(f,To(f,s,n,r))}return re(l,null,a)}}}),dM=hM;function vM(t){const e=t.el;e[Sf]&&e[Sf](),e[qm]&&e[qm]()}function pM(t){BS.set(t,t.el.getBoundingClientRect())}function gM(t){const e=NS.get(t),r=BS.get(t),n=e.left-r.left,i=e.top-r.top;if(n||i){const a=t.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${i}px)`,a.transitionDuration="0s",t}}function mM(t,e,r){const n=t.cloneNode(),i=t[Do];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=e.nodeType===1?e:e.parentNode;a.appendChild(n);const{hasTransform:o}=ES(n);return a.removeChild(n),o}const mi=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ie(e)?r=>mo(e,r):e};function yM(t){t.target.composing=!0}function Zm(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Er=Symbol("_assign"),xf={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t[Er]=mi(i);const a=n||i.props&&i.props.type==="number";xn(t,e?"change":"input",o=>{if(o.target.composing)return;let s=t.value;r&&(s=s.trim()),a&&(s=lf(s)),t[Er](s)}),r&&xn(t,"change",()=>{t.value=t.value.trim()}),e||(xn(t,"compositionstart",yM),xn(t,"compositionend",Zm),xn(t,"change",Zm))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},o){if(t[Er]=mi(o),t.composing)return;const s=(a||t.type==="number")&&!/^0\d/.test(t.value)?lf(t.value):t.value,l=e??"";s!==l&&(document.activeElement===t&&t.type!=="range"&&(n&&e===r||i&&t.value.trim()===l)||(t.value=l))}},Yp={deep:!0,created(t,e,r){t[Er]=mi(r),xn(t,"change",()=>{const n=t._modelValue,i=Ao(t),a=t.checked,o=t[Er];if(ie(n)){const s=tc(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(xa(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(FS(t,a))})},mounted:Jm,beforeUpdate(t,e,r){t[Er]=mi(r),Jm(t,e,r)}};function Jm(t,{value:e,oldValue:r},n){t._modelValue=e;let i;if(ie(e))i=tc(e,n.props.value)>-1;else if(xa(e))i=e.has(n.props.value);else{if(e===r)return;i=pi(e,FS(t,!0))}t.checked!==i&&(t.checked=i)}const Xp={created(t,{value:e},r){t.checked=pi(e,r.props.value),t[Er]=mi(r),xn(t,"change",()=>{t[Er](Ao(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t[Er]=mi(n),e!==r&&(t.checked=pi(e,n.props.value))}},Pl={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const i=xa(e);xn(t,"change",()=>{const a=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>r?lf(Ao(o)):Ao(o));t[Er](t.multiple?i?new Set(a):a:a[0]),t._assigning=!0,Ot(()=>{t._assigning=!1})}),t[Er]=mi(n)},mounted(t,{value:e}){Qm(t,e)},beforeUpdate(t,e,r){t[Er]=mi(r)},updated(t,{value:e}){t._assigning||Qm(t,e)}};function Qm(t,e){const r=t.multiple,n=ie(e);if(!(r&&!n&&!xa(e))){for(let i=0,a=t.options.length;i<a;i++){const o=t.options[i],s=Ao(o);if(r)if(n){const l=typeof s;l==="string"||l==="number"?o.selected=e.some(u=>String(u)===String(s)):o.selected=tc(e,s)>-1}else o.selected=e.has(s);else if(pi(Ao(o),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Ao(t){return"_value"in t?t._value:t.value}function FS(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const VS={created(t,e,r){Zl(t,e,r,null,"created")},mounted(t,e,r){Zl(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){Zl(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){Zl(t,e,r,n,"updated")}};function zS(t,e){switch(t){case"SELECT":return Pl;case"TEXTAREA":return xf;default:switch(e){case"checkbox":return Yp;case"radio":return Xp;default:return xf}}}function Zl(t,e,r,n,i){const o=zS(t.tagName,r.props&&r.props.type)[i];o&&o(t,e,r,n)}function _M(){xf.getSSRProps=({value:t})=>({value:t}),Xp.getSSRProps=({value:t},e)=>{if(e.props&&pi(e.props.value,t))return{checked:!0}},Yp.getSSRProps=({value:t},e)=>{if(ie(t)){if(e.props&&tc(t,e.props.value)>-1)return{checked:!0}}else if(xa(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},VS.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const r=zS(e.type.toUpperCase(),e.props&&e.props.type);if(r.getSSRProps)return r.getSSRProps(t,e)}}const bM=["ctrl","shift","alt","meta"],wM={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>bM.some(r=>t[`${r}Key`]&&!e.includes(r))},HS=(t,e)=>{const r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o<e.length;o++){const s=wM[e[o]];if(s&&s(i,e))return}return t(i,...a)})},SM={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Kp=(t,e)=>{const r=t._withKeys||(t._withKeys={}),n=e.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const a=tr(i.key);if(e.some(o=>o===a||SM[o]===a))return t(i)})},$S=Xe({patchProp:aM},HI);let Rs,ey=!1;function GS(){return Rs||(Rs=rS($S))}function US(){return Rs=ey?Rs:nS($S),ey=!0,Rs}const WS=(...t)=>{GS().render(...t)},xM=(...t)=>{US().hydrate(...t)},Tf=(...t)=>{const e=GS().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=KS(n);if(!i)return;const a=e._component;!pe(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,XS(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e},YS=(...t)=>{const e=US().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=KS(n);if(i)return r(i,!0,XS(i))},e};function XS(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function KS(t){return Je(t)?document.querySelector(t):t}let ty=!1;const TM=()=>{ty||(ty=!0,_M(),XI())};/**
|
|
19
|
+
* vue v3.5.17
|
|
20
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
21
|
+
* @license MIT
|
|
22
|
+
**/const CM=()=>{},DM=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Rw,BaseTransitionPropsValidators:Rp,Comment:ft,DeprecationTypes:FI,EffectScope:xp,ErrorCodes:tA,ErrorTypeStrings:PI,Fragment:et,KeepAlive:TA,ReactiveEffect:Xs,Static:la,Suspense:dI,Teleport:Mw,Text:li,TrackOpTypes:KD,Transition:GI,TransitionGroup:dM,TriggerOpTypes:jD,VueElement:mc,assertNumber:eA,callWithAsyncErrorHandling:Lr,callWithErrorHandling:Ro,camelize:bt,capitalize:Cl,cloneVNode:Ur,compatUtils:BI,compile:CM,computed:ce,createApp:Tf,createBlock:ge,createCommentVNode:sn,createElementBlock:nt,createElementVNode:xe,createHydrationRenderer:nS,createPropsRestProxy:GA,createRenderer:rS,createSSRApp:YS,createSlots:EA,createStaticVNode:yS,createTextVNode:mr,createVNode:re,customRef:Ep,defineAsyncComponent:SA,defineComponent:he,defineCustomElement:OS,defineEmits:OA,defineExpose:kA,defineModel:FA,defineOptions:NA,defineProps:RA,defineSSRCustomElement:sM,defineSlots:BA,devtools:LI,effect:_D,effectScope:Tp,getCurrentInstance:ht,getCurrentScope:rc,getCurrentWatcher:qD,getTransitionRawChildren:fc,guardReactiveProps:Up,h:Ft,handleError:Ta,hasInjectionContext:zp,hydrate:xM,hydrateOnIdle:gA,hydrateOnInteraction:bA,hydrateOnMediaQuery:_A,hydrateOnVisible:yA,initCustomFormatter:II,initDirectivesForSSR:TM,inject:si,isMemoSame:TS,isProxy:sc,isReactive:ai,isReadonly:En,isRef:qe,isRuntimeOnly:CI,isShallow:gr,isVNode:Ln,markRaw:gw,mergeDefaults:$A,mergeModels:ir,mergeProps:St,nextTick:Ot,normalizeClass:un,normalizeProps:qb,normalizeStyle:On,onActivated:Nw,onBeforeMount:Vw,onBeforeUnmount:Il,onBeforeUpdate:kp,onDeactivated:Bw,onErrorCaptured:Gw,onMounted:lr,onRenderTracked:$w,onRenderTriggered:Hw,onScopeDispose:Cp,onServerPrefetch:zw,onUnmounted:Si,onUpdated:dc,onWatcherCleanup:bw,openBlock:Q,popScopeId:oA,provide:vc,proxyRefs:Mp,pushScopeId:aA,queuePostFlushCb:qs,reactive:gi,readonly:Dl,ref:fe,registerRuntimeCompiler:TI,render:WS,renderList:Oo,renderSlot:Me,resolveComponent:AA,resolveDirective:MA,resolveDynamicComponent:IA,resolveFilter:NI,resolveTransitionHooks:To,setBlockTracking:Qd,setDevtoolsHook:RI,setTransitionHooks:Pn,shallowReactive:pw,shallowReadonly:VD,shallowRef:$r,ssrContextKey:sS,ssrUtils:kI,stop:bD,toDisplayString:zt,toHandlerKey:go,toHandlers:PA,toRaw:Pe,toRef:yw,toRefs:wi,toValue:tt,transformVNodeArgs:_I,triggerRef:HD,unref:L,useAttrs:HA,useCssModule:fM,useCssVars:KI,useHost:kS,useId:kw,useModel:br,useSSRContext:lS,useShadowRoot:uM,useSlots:zA,useTemplateRef:cc,useTransitionState:Lp,vModelCheckbox:Yp,vModelDynamic:VS,vModelRadio:Xp,vModelSelect:Pl,vModelText:xf,vShow:LS,version:CS,warn:EI,watch:Ne,watchEffect:Yt,watchPostEffect:aI,watchSyncEffect:uS,withAsyncContext:UA,withCtx:ae,withDefaults:VA,withDirectives:uc,withKeys:Kp,withMemo:MI,withModifiers:HS,withScopeId:sA},Symbol.toStringTag,{value:"Module"}));function jp(t){return t?t.flatMap(e=>e.type===et?jp(e.children):[e]):[]}const AM=he({name:"PrimitiveSlot",inheritAttrs:!1,setup(t,{attrs:e,slots:r}){return()=>{if(!r.default)return null;const n=jp(r.default()),i=n.findIndex(l=>l.type!==ft);if(i===-1)return n;const a=n[i];delete a.props?.ref;const o=a.props?St(e,a.props):e,s=Ur({...a,props:{}},o);return n.length===1?s:(n[i]=s,n)}}}),IM=["area","img","input"],xt=he({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(t,{attrs:e,slots:r}){const n=t.asChild?"template":t.as;return typeof n=="string"&&IM.includes(n)?()=>Ft(n,e):n!=="template"?()=>Ft(t.as,e,{default:r.default}):()=>Ft(AM,e,{default:r.default})}}),MM=he({__name:"VisuallyHidden",props:{feature:{default:"focusable"},asChild:{type:Boolean},as:{default:"span"}},setup(t){return(e,r)=>(Q(),ge(L(xt),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature==="focusable"?"true":void 0,"data-hidden":e.feature==="fully-hidden"?"":void 0,tabindex:e.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:ae(()=>[Me(e.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}});function jS(t){return rc()?(Cp(t),!0):!1}function EM(t){let e=!1,r;const n=Tp(!0);return(...i)=>(e||(r=n.run(()=>t(...i)),e=!0),r)}function PM(t){let e=0,r,n;const i=()=>{e-=1,n&&e<=0&&(n.stop(),r=void 0,n=void 0)};return(...a)=>(e+=1,n||(n=Tp(!0),r=n.run(()=>t(...a))),jS(i),r)}const Ca=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const LM=t=>typeof t<"u",RM=Object.prototype.toString,OM=t=>RM.call(t)==="[object Object]",ry=kM();function kM(){var t,e;return Ca&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function NM(t){return ht()}function sh(t){return Array.isArray(t)?t:[t]}const BM=tt;function FM(t,e){NM()&&Il(t,e)}function VM(t,e,r){return Ne(t,e,{...r,immediate:!0})}const qp=Ca?window:void 0;function ko(t){var e;const r=tt(t);return(e=r?.$el)!=null?e:r}function Zp(...t){const e=[],r=()=>{e.forEach(s=>s()),e.length=0},n=(s,l,u,f)=>(s.addEventListener(l,u,f),()=>s.removeEventListener(l,u,f)),i=ce(()=>{const s=sh(tt(t[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),a=VM(()=>{var s,l;return[(l=(s=i.value)==null?void 0:s.map(u=>ko(u)))!=null?l:[qp].filter(u=>u!=null),sh(tt(i.value?t[1]:t[0])),sh(L(i.value?t[2]:t[1])),tt(i.value?t[3]:t[2])]},([s,l,u,f])=>{if(r(),!s?.length||!l?.length||!u?.length)return;const c=OM(f)?{...f}:f;e.push(...s.flatMap(h=>l.flatMap(d=>u.map(v=>n(h,d,v,c)))))},{flush:"post"}),o=()=>{a(),r()};return jS(r),o}function zM(){const t=$r(!1),e=ht();return e&&lr(()=>{t.value=!0},e),t}function HM(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function $M(...t){let e,r,n={};t.length===3?(e=t[0],r=t[1],n=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,r=t[0],n=t[1]):(e=t[0],r=t[1]):(e=!0,r=t[0]);const{target:i=qp,eventName:a="keydown",passive:o=!1,dedupe:s=!1}=n,l=HM(e);return Zp(i,a,f=>{f.repeat&&tt(s)||l(f)&&r(f)},o)}function GM(t){return JSON.parse(JSON.stringify(t))}function yc(t,e,r,n={}){var i,a,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:f=!1,defaultValue:c,shouldEmit:h}=n,d=ht(),v=r||d?.emit||((i=d?.$emit)==null?void 0:i.bind(d))||((o=(a=d?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(d?.proxy));let g=u;e||(e="modelValue"),g=g||`update:${e.toString()}`;const p=y=>s?typeof s=="function"?s(y):GM(y):y,m=()=>LM(t[e])?p(t[e]):c,_=y=>{h?h(y)&&v(g,y):v(g,y)};if(l){const y=m(),b=fe(y);let w=!1;return Ne(()=>t[e],S=>{w||(w=!0,b.value=p(S),Ot(()=>w=!1))}),Ne(b,S=>{!w&&(S!==t[e]||f)&&_(S)},{deep:f}),b}else return ce({get(){return m()},set(y){_(y)}})}function Da(t,e){const r=typeof t=="string"&&!e?`${t}Context`:e,n=Symbol(r);return[o=>{const s=si(n,o);if(s||s===null)return s;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`)},o=>(vc(n,o),o)]}function ny(t){return typeof t=="string"?`'${t}'`:new UM().serialize(t)}const UM=(function(){class t{#e=new Map;compare(r,n){const i=typeof r,a=typeof n;return i==="string"&&a==="string"?r.localeCompare(n):i==="number"&&a==="number"?r-n:String.prototype.localeCompare.call(this.serialize(r,!0),this.serialize(n,!0))}serialize(r,n){if(r===null)return"null";switch(typeof r){case"string":return n?r:`'${r}'`;case"bigint":return`${r}n`;case"object":return this.$object(r);case"function":return this.$function(r)}return String(r)}serializeObject(r){const n=Object.prototype.toString.call(r);if(n!=="[object Object]")return this.serializeBuiltInType(n.length<10?`unknown:${n}`:n.slice(8,-1),r);const i=r.constructor,a=i===Object||i===void 0?"":i.name;if(a!==""&&globalThis[a]===i)return this.serializeBuiltInType(a,r);if(typeof r.toJSON=="function"){const o=r.toJSON();return a+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(a,Object.entries(r))}serializeBuiltInType(r,n){const i=this["$"+r];if(i)return i.call(this,n);if(typeof n?.entries=="function")return this.serializeObjectEntries(r,n.entries());throw new Error(`Cannot serialize ${r}`)}serializeObjectEntries(r,n){const i=Array.from(n).sort((o,s)=>this.compare(o[0],s[0]));let a=`${r}{`;for(let o=0;o<i.length;o++){const[s,l]=i[o];a+=`${this.serialize(s,!0)}:${this.serialize(l)}`,o<i.length-1&&(a+=",")}return a+"}"}$object(r){let n=this.#e.get(r);return n===void 0&&(this.#e.set(r,`#${this.#e.size}`),n=this.serializeObject(r),this.#e.set(r,n)),n}$function(r){const n=Function.prototype.toString.call(r);return n.slice(-15)==="[native code] }"?`${r.name||""}()[native]`:`${r.name}(${r.length})${n.replace(/\s*\n\s*/g,"")}`}$Array(r){let n="[";for(let i=0;i<r.length;i++)n+=this.serialize(r[i]),i<r.length-1&&(n+=",");return n+"]"}$Date(r){try{return`Date(${r.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(r){return`ArrayBuffer[${new Uint8Array(r).join(",")}]`}$Set(r){return`Set${this.$Array(Array.from(r).sort((n,i)=>this.compare(n,i)))}`}$Map(r){return this.serializeObjectEntries("Map",r.entries())}}for(const e of["Error","RegExp","URL"])t.prototype["$"+e]=function(r){return`${e}(${r})`};for(const e of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])t.prototype["$"+e]=function(r){return`${e}[${r.join(",")}]`};for(const e of["BigInt64Array","BigUint64Array"])t.prototype["$"+e]=function(r){return`${e}[${r.join("n,")}${r.length>0?"n":""}]`};return t})();function Cf(t,e){return t===e||ny(t)===ny(e)}function WM(t){return t==null}function YM(t,e){return WM(t)?!1:Array.isArray(t)?t.some(r=>Cf(r,e)):Cf(t,e)}function XM({type:t,defaultValue:e,modelValue:r}){const n=r||e;return r!==void 0||e!==void 0?Array.isArray(n)?"multiple":"single":t??"single"}function KM({type:t,defaultValue:e,modelValue:r}){return t||XM({type:t,defaultValue:e,modelValue:r})}function jM({type:t,defaultValue:e}){return e!==void 0?e:t==="single"?void 0:[]}function qM(t,e){const r=ce(()=>KM(t)),n=yc(t,"modelValue",e,{defaultValue:jM(t),passive:t.modelValue===void 0,deep:!0});function i(o){if(r.value==="single")n.value=Cf(o,n.value)?void 0:o;else{const s=Array.isArray(n.value)?[...n.value||[]]:[n.value].filter(Boolean);if(YM(s,o)){const l=s.findIndex(u=>Cf(u,o));s.splice(l,1)}else s.push(o);n.value=s}}const a=ce(()=>r.value==="single");return{modelValue:n,changeModelValue:i,isSingle:a}}const[Jp]=Da("ConfigProvider");function qS(t){const e=Jp({dir:fe("ltr")});return ce(()=>t?.value||e.dir?.value||"ltr")}function lt(){const t=ht(),e=fe(),r=ce(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:ko(e)),n=Object.assign({},t.exposed),i={};for(const o in t.props)Object.defineProperty(i,o,{enumerable:!0,configurable:!0,get:()=>t.props[o]});if(Object.keys(n).length>0)for(const o in n)Object.defineProperty(i,o,{enumerable:!0,configurable:!0,get:()=>n[o]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>t.vnode.el}),t.exposed=i;function a(o){e.value=o,o&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>o instanceof Element?o:o.$el}),t.exposed=i)}return{forwardRef:a,currentRef:e,currentElement:r}}const[_c,ZM]=Da("AccordionRoot"),JM=he({__name:"AccordionRoot",props:{collapsible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dir:{},orientation:{default:"vertical"},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,{dir:i,disabled:a,unmountOnHide:o}=wi(r),s=qS(i),{modelValue:l,changeModelValue:u,isSingle:f}=qM(r,n),{forwardRef:c,currentElement:h}=lt();return ZM({disabled:a,direction:s,orientation:r.orientation,parentElement:h,isSingle:f,collapsible:r.collapsible,modelValue:l,changeModelValue:u,unmountOnHide:o}),(d,v)=>(Q(),ge(L(xt),{ref:L(c),"as-child":d.asChild,as:d.as},{default:ae(()=>[Me(d.$slots,"default",{modelValue:L(l)})]),_:3},8,["as-child","as"]))}}),[ZS,QM]=Da("CollapsibleRoot"),eE=he({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(t,{expose:e,emit:r}){const n=t,a=yc(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),{disabled:o,unmountOnHide:s}=wi(n);return QM({contentId:"",disabled:o,open:a,unmountOnHide:s,onOpenToggle:()=>{o.value||(a.value=!a.value)}}),e({open:a}),lt(),(l,u)=>(Q(),ge(L(xt),{as:l.as,"as-child":n.asChild,"data-state":L(a)?"open":"closed","data-disabled":L(o)?"":void 0},{default:ae(()=>[Me(l.$slots,"default",{open:L(a)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),tE=["INPUT","TEXTAREA"];function rE(t,e,r,n={}){if(!e||n.enableIgnoredElement&&tE.includes(e.nodeName))return null;const{arrowKeyOptions:i="both",attributeName:a="[data-reka-collection-item]",itemsArray:o=[],loop:s=!0,dir:l="ltr",preventScroll:u=!0,focus:f=!1}=n,[c,h,d,v,g,p]=[t.key==="ArrowRight",t.key==="ArrowLeft",t.key==="ArrowUp",t.key==="ArrowDown",t.key==="Home",t.key==="End"],m=d||v,_=c||h;if(!g&&!p&&(!m&&!_||i==="vertical"&&_||i==="horizontal"&&m))return null;const y=r?Array.from(r.querySelectorAll(a)):o;if(!y.length)return null;u&&t.preventDefault();let b=null;return _||m?b=JS(y,e,{goForward:m?v:l==="ltr"?c:h,loop:s}):g?b=y.at(0)||null:p&&(b=y.at(-1)||null),f&&b?.focus(),b}function JS(t,e,r,n=t.length){if(--n===0)return null;const i=t.indexOf(e),a=r.goForward?i+1:i-1;if(!r.loop&&(a<0||a>=t.length))return null;const o=(a+t.length)%t.length,s=t[o];return s?s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"?JS(t,s,r,n):s:null}const[Qp,nE]=Da("AccordionItem"),iE=he({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t,{expose:e}){const r=t,n=_c(),i=ce(()=>n.isSingle.value?r.value===n.modelValue.value:Array.isArray(n.modelValue.value)&&n.modelValue.value.includes(r.value)),a=ce(()=>n.disabled.value||r.disabled),o=ce(()=>a.value?"":void 0),s=ce(()=>i.value?"open":"closed");e({open:i,dataDisabled:o});const{currentRef:l,currentElement:u}=lt();nE({open:i,dataState:s,disabled:a,dataDisabled:o,triggerId:"",currentRef:l,currentElement:u,value:ce(()=>r.value)});function f(c){const h=c.target;if(Array.from(n.parentElement.value?.querySelectorAll("[data-reka-collection-item]")??[]).findIndex(g=>g===h)===-1)return null;rE(c,h,n.parentElement.value,{arrowKeyOptions:n.orientation,dir:n.direction.value,focus:!0})}return(c,h)=>(Q(),ge(L(eE),{"data-orientation":L(n).orientation,"data-disabled":o.value,"data-state":s.value,disabled:a.value,open:i.value,as:r.as,"as-child":r.asChild,"unmount-on-hide":L(n).unmountOnHide.value,onKeydown:Kp(f,["up","down","left","right","home","end"])},{default:ae(()=>[Me(c.$slots,"default",{open:i.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child","unmount-on-hide"]))}});let aE=0;function yi(t,e="reka"){if(t)return t;const r=Jp({useId:void 0});return Object.hasOwn(DM,"useId")?`${e}-${kw?.()}`:r.useId?`${e}-${r.useId()}`:`${e}-${++aE}`}function oE(t,e){const r=fe(t);function n(a){return e[r.value][a]??r.value}return{state:r,dispatch:a=>{r.value=n(a)}}}function sE(t,e){const r=fe({}),n=fe("none"),i=fe(t),a=t.value?"mounted":"unmounted";let o;const s=e.value?.ownerDocument.defaultView??qp,{state:l,dispatch:u}=oE(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),f=p=>{if(Ca){const m=new CustomEvent(p,{bubbles:!1,cancelable:!1});e.value?.dispatchEvent(m)}};Ne(t,async(p,m)=>{const _=m!==p;if(await Ot(),_){const y=n.value,b=Jl(e.value);p?(u("MOUNT"),f("enter"),b==="none"&&f("after-enter")):b==="none"||b==="undefined"||r.value?.display==="none"?(u("UNMOUNT"),f("leave"),f("after-leave")):m&&y!==b?(u("ANIMATION_OUT"),f("leave")):(u("UNMOUNT"),f("after-leave"))}},{immediate:!0});const c=p=>{const m=Jl(e.value),_=m.includes(p.animationName),y=l.value==="mounted"?"enter":"leave";if(p.target===e.value&&_&&(f(`after-${y}`),u("ANIMATION_END"),!i.value)){const b=e.value.style.animationFillMode;e.value.style.animationFillMode="forwards",o=s?.setTimeout(()=>{e.value?.style.animationFillMode==="forwards"&&(e.value.style.animationFillMode=b)})}p.target===e.value&&m==="none"&&u("ANIMATION_END")},h=p=>{p.target===e.value&&(n.value=Jl(e.value))},d=Ne(e,(p,m)=>{p?(r.value=getComputedStyle(p),p.addEventListener("animationstart",h),p.addEventListener("animationcancel",c),p.addEventListener("animationend",c)):(u("ANIMATION_END"),o!==void 0&&s?.clearTimeout(o),m?.removeEventListener("animationstart",h),m?.removeEventListener("animationcancel",c),m?.removeEventListener("animationend",c))},{immediate:!0}),v=Ne(l,()=>{const p=Jl(e.value);n.value=l.value==="mounted"?p:"none"});return Si(()=>{d(),v()}),{isPresent:ce(()=>["mounted","unmountSuspended"].includes(l.value))}}function Jl(t){return t&&getComputedStyle(t).animationName||"none"}const eg=he({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:e,expose:r}){const{present:n,forceMount:i}=wi(t),a=fe(),{isPresent:o}=sE(n,a);r({present:o});let s=e.default({present:o.value});s=jp(s||[]);const l=ht();if(s&&s?.length>1){const u=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>` - ${f}`).join(`
|
|
23
|
+
`)].join(`
|
|
24
|
+
`))}return()=>i.value||n.value||o.value?Ft(e.default({present:o.value})[0],{ref:u=>{const f=ko(u);return typeof f?.hasAttribute>"u"||(f?.hasAttribute("data-reka-popper-content-wrapper")?a.value=f.firstElementChild:a.value=f),f}}):null}}),lE=he({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["contentFound"],setup(t,{emit:e}){const r=t,n=e,i=ZS();i.contentId||=yi(void 0,"reka-collapsible-content");const a=fe(),{forwardRef:o,currentElement:s}=lt(),l=fe(0),u=fe(0),f=ce(()=>i.open.value),c=fe(f.value),h=fe();Ne(()=>[f.value,a.value?.present],async()=>{await Ot();const v=s.value;if(!v)return;h.value=h.value||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const g=v.getBoundingClientRect();u.value=g.height,l.value=g.width,c.value||(v.style.transitionDuration=h.value.transitionDuration,v.style.animationName=h.value.animationName)},{immediate:!0});const d=ce(()=>c.value&&i.open.value);return lr(()=>{requestAnimationFrame(()=>{c.value=!1})}),Zp(s,"beforematch",v=>{requestAnimationFrame(()=>{i.onOpenToggle(),n("contentFound")})}),(v,g)=>(Q(),ge(L(eg),{ref_key:"presentRef",ref:a,present:v.forceMount||L(i).open.value,"force-mount":!0},{default:ae(({present:p})=>[re(L(xt),St(v.$attrs,{id:L(i).contentId,ref:L(o),"as-child":r.asChild,as:v.as,hidden:p?void 0:L(i).unmountOnHide.value?"":"until-found","data-state":d.value?void 0:L(i).open.value?"open":"closed","data-disabled":L(i).disabled?.value?"":void 0,style:{"--reka-collapsible-content-height":`${u.value}px`,"--reka-collapsible-content-width":`${l.value}px`}}),{default:ae(()=>[!L(i).unmountOnHide.value||p?Me(v.$slots,"default",{key:0}):sn("",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]),_:3},8,["present"]))}}),uE=he({__name:"AccordionContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t){const e=t,r=_c(),n=Qp();return lt(),(i,a)=>(Q(),ge(L(lE),{role:"region","as-child":e.asChild,as:i.as,"force-mount":e.forceMount,"aria-labelledby":L(n).triggerId,"data-state":L(n).dataState.value,"data-disabled":L(n).dataDisabled.value,"data-orientation":L(r).orientation,style:{"--reka-accordion-content-width":"var(--reka-collapsible-content-width)","--reka-accordion-content-height":"var(--reka-collapsible-content-height)"},onContentFound:a[0]||(a[0]=o=>L(r).changeModelValue(L(n).value.value))},{default:ae(()=>[Me(i.$slots,"default")]),_:3},8,["as-child","as","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),fE=he({__name:"AccordionHeader",props:{asChild:{type:Boolean},as:{default:"h3"}},setup(t){const e=t,r=_c(),n=Qp();return lt(),(i,a)=>(Q(),ge(L(xt),{as:e.as,"as-child":e.asChild,"data-orientation":L(r).orientation,"data-state":L(n).dataState.value,"data-disabled":L(n).dataDisabled.value},{default:ae(()=>[Me(i.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),cE=he({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(t){const e=t;lt();const r=ZS();return(n,i)=>(Q(),ge(L(xt),{type:n.as==="button"?"button":void 0,as:n.as,"as-child":e.asChild,"aria-controls":L(r).contentId,"aria-expanded":L(r).open.value,"data-state":L(r).open.value?"open":"closed","data-disabled":L(r).disabled?.value?"":void 0,disabled:L(r).disabled?.value,onClick:L(r).onOpenToggle},{default:ae(()=>[Me(n.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"]))}}),hE=he({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{}},setup(t){const e=t,r=_c(),n=Qp();n.triggerId||=yi(void 0,"reka-accordion-trigger");function i(){const a=r.isSingle.value&&n.open.value&&!r.collapsible;n.disabled.value||a||r.changeModelValue(n.value.value)}return(a,o)=>(Q(),ge(L(cE),{id:L(n).triggerId,ref:L(n).currentRef,"data-reka-collection-item":"",as:e.as,"as-child":e.asChild,"aria-disabled":L(n).disabled.value||void 0,"aria-expanded":L(n).open.value||!1,"data-disabled":L(n).dataDisabled.value,"data-orientation":L(r).orientation,"data-state":L(n).dataState.value,disabled:L(n).disabled.value,onClick:i},{default:ae(()=>[Me(a.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),[dn,dE]=Da("DialogRoot"),vE=he({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(t,{emit:e}){const r=t,i=yc(r,"open",e,{defaultValue:r.defaultOpen,passive:r.open===void 0}),a=fe(),o=fe(),{modal:s}=wi(r);return dE({open:i,modal:s,openModal:()=>{i.value=!0},onOpenChange:l=>{i.value=l},onOpenToggle:()=>{i.value=!i.value},contentId:"",titleId:"",descriptionId:"",triggerElement:a,contentElement:o}),(l,u)=>Me(l.$slots,"default",{open:L(i),close:()=>i.value=!1})}}),pE=he({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(t){const e=t;lt();const r=dn();return(n,i)=>(Q(),ge(L(xt),St(e,{type:n.as==="button"?"button":void 0,onClick:i[0]||(i[0]=a=>L(r).onOpenChange(!1))}),{default:ae(()=>[Me(n.$slots,"default")]),_:3},16,["type"]))}});function tg(t){const e=ht(),r=e?.type.emits,n={};return r?.length||console.warn(`No emitted event found. Please check component: ${e?.type.__name}`),r?.forEach(i=>{n[go(bt(i))]=(...a)=>t(i,...a)}),n}function ui(){let t=document.activeElement;if(t==null)return null;for(;t!=null&&t.shadowRoot!=null&&t.shadowRoot.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function gE(t){return t?"open":"closed"}const mE=EM(()=>fe([]));function yE(){const t=mE();return{add(e){const r=t.value[0];e!==r&&r?.pause(),t.value=iy(t.value,e),t.value.unshift(e)},remove(e){t.value=iy(t.value,e),t.value[0]?.resume()}}}function iy(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function _E(t){return t.filter(e=>e.tagName!=="A")}const lh="focusScope.autoFocusOnMount",uh="focusScope.autoFocusOnUnmount",ay={bubbles:!1,cancelable:!0};function bE(t,{select:e=!1}={}){const r=ui();for(const n of t)if(Kn(n,{select:e}),ui()!==r)return!0}function wE(t){const e=QS(t),r=oy(e,t),n=oy(e.reverse(),t);return[r,n]}function QS(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function oy(t,e){for(const r of t)if(!SE(r,{upTo:e}))return r}function SE(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function xE(t){return t instanceof HTMLInputElement&&"select"in t}function Kn(t,{select:e=!1}={}){if(t&&t.focus){const r=ui();t.focus({preventScroll:!0}),t!==r&&xE(t)&&e&&t.select()}}const TE=he({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(t,{emit:e}){const r=t,n=e,{currentRef:i,currentElement:a}=lt(),o=fe(null),s=yE(),l=gi({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Yt(f=>{if(!Ca)return;const c=a.value;if(!r.trapped)return;function h(p){if(l.paused||!c)return;const m=p.target;c.contains(m)?o.value=m:Kn(o.value,{select:!0})}function d(p){if(l.paused||!c)return;const m=p.relatedTarget;m!==null&&(c.contains(m)||Kn(o.value,{select:!0}))}function v(p){c.contains(o.value)||Kn(c)}document.addEventListener("focusin",h),document.addEventListener("focusout",d);const g=new MutationObserver(v);c&&g.observe(c,{childList:!0,subtree:!0}),f(()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",d),g.disconnect()})}),Yt(async f=>{const c=a.value;if(await Ot(),!c)return;s.add(l);const h=ui();if(!c.contains(h)){const v=new CustomEvent(lh,ay);c.addEventListener(lh,g=>n("mountAutoFocus",g)),c.dispatchEvent(v),v.defaultPrevented||(bE(_E(QS(c)),{select:!0}),ui()===h&&Kn(c))}f(()=>{c.removeEventListener(lh,p=>n("mountAutoFocus",p));const v=new CustomEvent(uh,ay),g=p=>{n("unmountAutoFocus",p)};c.addEventListener(uh,g),c.dispatchEvent(v),setTimeout(()=>{v.defaultPrevented||Kn(h??document.body,{select:!0}),c.removeEventListener(uh,g),s.remove(l)},0)})});function u(f){if(!r.loop&&!r.trapped||l.paused)return;const c=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,h=ui();if(c&&h){const d=f.currentTarget,[v,g]=wE(d);v&&g?!f.shiftKey&&h===g?(f.preventDefault(),r.loop&&Kn(v,{select:!0})):f.shiftKey&&h===v&&(f.preventDefault(),r.loop&&Kn(g,{select:!0})):h===d&&f.preventDefault()}}return(f,c)=>(Q(),ge(L(xt),{ref_key:"currentRef",ref:i,tabindex:"-1","as-child":f.asChild,as:f.as,onKeydown:u},{default:ae(()=>[Me(f.$slots,"default")]),_:3},8,["as-child","as"]))}});function e1(t,e,r){const n=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&n.addEventListener(t,e,{once:!0}),n.dispatchEvent(i)}const CE="dismissableLayer.pointerDownOutside",DE="dismissableLayer.focusOutside";function t1(t,e){const r=e.closest("[data-dismissable-layer]"),n=t.dataset.dismissableLayer===""?t:t.querySelector("[data-dismissable-layer]"),i=Array.from(t.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(r&&(n===r||i.indexOf(n)<i.indexOf(r)))}function AE(t,e,r=!0){const n=e?.value?.ownerDocument??globalThis?.document,i=fe(!1),a=fe(()=>{});return Yt(o=>{if(!Ca||!tt(r))return;const s=async u=>{const f=u.target;if(!(!e?.value||!f)){if(t1(e.value,f)){i.value=!1;return}if(u.target&&!i.value){let c=function(){e1(CE,t,h)};const h={originalEvent:u};u.pointerType==="touch"?(n.removeEventListener("click",a.value),a.value=c,n.addEventListener("click",a.value,{once:!0})):c()}else n.removeEventListener("click",a.value);i.value=!1}},l=window.setTimeout(()=>{n.addEventListener("pointerdown",s)},0);o(()=>{window.clearTimeout(l),n.removeEventListener("pointerdown",s),n.removeEventListener("click",a.value)})}),{onPointerDownCapture:()=>{tt(r)&&(i.value=!0)}}}function IE(t,e,r=!0){const n=e?.value?.ownerDocument??globalThis?.document,i=fe(!1);return Yt(a=>{if(!Ca||!tt(r))return;const o=async s=>{if(!e?.value)return;await Ot(),await Ot();const l=s.target;!e.value||!l||t1(e.value,l)||s.target&&!i.value&&e1(DE,t,{originalEvent:s})};n.addEventListener("focusin",o),a(()=>n.removeEventListener("focusin",o))}),{onFocusCapture:()=>{tt(r)&&(i.value=!0)},onBlurCapture:()=>{tt(r)&&(i.value=!1)}}}const gn=gi({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ME=he({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(t,{emit:e}){const r=t,n=e,{forwardRef:i,currentElement:a}=lt(),o=ce(()=>a.value?.ownerDocument??globalThis.document),s=ce(()=>gn.layersRoot),l=ce(()=>a.value?Array.from(s.value).indexOf(a.value):-1),u=ce(()=>gn.layersWithOutsidePointerEventsDisabled.size>0),f=ce(()=>{const v=Array.from(s.value),[g]=[...gn.layersWithOutsidePointerEventsDisabled].slice(-1),p=v.indexOf(g);return l.value>=p}),c=AE(async v=>{const g=[...gn.branches].some(p=>p?.contains(v.target));!f.value||g||(n("pointerDownOutside",v),n("interactOutside",v),await Ot(),v.defaultPrevented||n("dismiss"))},a),h=IE(v=>{[...gn.branches].some(p=>p?.contains(v.target))||(n("focusOutside",v),n("interactOutside",v),v.defaultPrevented||n("dismiss"))},a);$M("Escape",v=>{l.value===s.value.size-1&&(n("escapeKeyDown",v),v.defaultPrevented||n("dismiss"))});let d;return Yt(v=>{a.value&&(r.disableOutsidePointerEvents&&(gn.layersWithOutsidePointerEventsDisabled.size===0&&(d=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),gn.layersWithOutsidePointerEventsDisabled.add(a.value)),s.value.add(a.value),v(()=>{r.disableOutsidePointerEvents&&gn.layersWithOutsidePointerEventsDisabled.size===1&&(o.value.body.style.pointerEvents=d)}))}),Yt(v=>{v(()=>{a.value&&(s.value.delete(a.value),gn.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(v,g)=>(Q(),ge(L(xt),{ref:L(i),"as-child":v.asChild,as:v.as,"data-dismissable-layer":"",style:On({pointerEvents:u.value?f.value?"auto":"none":void 0}),onFocusCapture:L(h).onFocusCapture,onBlurCapture:L(h).onBlurCapture,onPointerdownCapture:L(c).onPointerDownCapture},{default:ae(()=>[Me(v.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),r1=he({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,n=e,i=dn(),{forwardRef:a,currentElement:o}=lt();return i.titleId||=yi(void 0,"reka-dialog-title"),i.descriptionId||=yi(void 0,"reka-dialog-description"),lr(()=>{i.contentElement=o,ui()!==document.body&&(i.triggerElement.value=ui())}),(s,l)=>(Q(),ge(L(TE),{"as-child":"",loop:"",trapped:r.trapFocus,onMountAutoFocus:l[5]||(l[5]=u=>n("openAutoFocus",u)),onUnmountAutoFocus:l[6]||(l[6]=u=>n("closeAutoFocus",u))},{default:ae(()=>[re(L(ME),St({id:L(i).contentId,ref:L(a),as:s.as,"as-child":s.asChild,"disable-outside-pointer-events":s.disableOutsidePointerEvents,role:"dialog","aria-describedby":L(i).descriptionId,"aria-labelledby":L(i).titleId,"data-state":L(gE)(L(i).open.value)},s.$attrs,{onDismiss:l[0]||(l[0]=u=>L(i).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=u=>n("escapeKeyDown",u)),onFocusOutside:l[2]||(l[2]=u=>n("focusOutside",u)),onInteractOutside:l[3]||(l[3]=u=>n("interactOutside",u)),onPointerDownOutside:l[4]||(l[4]=u=>n("pointerDownOutside",u))}),{default:ae(()=>[Me(s.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}});var EE=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Ra=new WeakMap,Ql=new WeakMap,eu={},fh=0,n1=function(t){return t&&(t.host||n1(t.parentNode))},PE=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=n1(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},LE=function(t,e,r,n){var i=PE(e,Array.isArray(t)?t:[t]);eu[r]||(eu[r]=new WeakMap);var a=eu[r],o=[],s=new Set,l=new Set(i),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};i.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(s.has(h))f(h);else try{var d=h.getAttribute(n),v=d!==null&&d!=="false",g=(Ra.get(h)||0)+1,p=(a.get(h)||0)+1;Ra.set(h,g),a.set(h,p),o.push(h),g===1&&v&&Ql.set(h,!0),p===1&&h.setAttribute(r,"true"),v||h.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return f(e),s.clear(),fh++,function(){o.forEach(function(c){var h=Ra.get(c)-1,d=a.get(c)-1;Ra.set(c,h),a.set(c,d),h||(Ql.has(c)||c.removeAttribute(n),Ql.delete(c)),d||c.removeAttribute(r)}),fh--,fh||(Ra=new WeakMap,Ra=new WeakMap,Ql=new WeakMap,eu={})}},RE=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=EE(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),LE(n,i,r,"aria-hidden")):function(){return null}};function OE(t){let e;Ne(()=>ko(t),r=>{r?e=RE(r):e&&e()}),Si(()=>{e&&e()})}const kE=he({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,n=e,i=dn(),a=tg(n),{forwardRef:o,currentElement:s}=lt();return OE(s),(l,u)=>(Q(),ge(r1,St({...r,...L(a)},{ref:L(o),"trap-focus":L(i).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:u[0]||(u[0]=f=>{f.defaultPrevented||(f.preventDefault(),L(i).triggerElement.value?.focus())}),onPointerDownOutside:u[1]||(u[1]=f=>{const c=f.detail.originalEvent,h=c.button===0&&c.ctrlKey===!0;(c.button===2||h)&&f.preventDefault()}),onFocusOutside:u[2]||(u[2]=f=>{f.preventDefault()})}),{default:ae(()=>[Me(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),NE=he({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,i=tg(e);lt();const a=dn(),o=fe(!1),s=fe(!1);return(l,u)=>(Q(),ge(r1,St({...r,...L(i)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:u[0]||(u[0]=f=>{f.defaultPrevented||(o.value||L(a).triggerElement.value?.focus(),f.preventDefault()),o.value=!1,s.value=!1}),onInteractOutside:u[1]||(u[1]=f=>{f.defaultPrevented||(o.value=!0,f.detail.originalEvent.type==="pointerdown"&&(s.value=!0));const c=f.target;L(a).triggerElement.value?.contains(c)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&s.value&&f.preventDefault()})}),{default:ae(()=>[Me(l.$slots,"default")]),_:3},16))}}),BE=he({__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,n=e,i=dn(),a=tg(n),{forwardRef:o}=lt();return(s,l)=>(Q(),ge(L(eg),{present:s.forceMount||L(i).open.value},{default:ae(()=>[L(i).modal.value?(Q(),ge(kE,St({key:0,ref:L(o)},{...r,...L(a),...s.$attrs}),{default:ae(()=>[Me(s.$slots,"default")]),_:3},16)):(Q(),ge(NE,St({key:1,ref:L(o)},{...r,...L(a),...s.$attrs}),{default:ae(()=>[Me(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),FE=he({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(t){const e=t;lt();const r=dn();return(n,i)=>(Q(),ge(L(xt),St(e,{id:L(r).descriptionId}),{default:ae(()=>[Me(n.$slots,"default")]),_:3},16,["id"]))}});function ch(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function lv(t,e,r=".",n){if(!ch(e))return lv(t,{},r,n);const i=Object.assign({},e);for(const a in t){if(a==="__proto__"||a==="constructor")continue;const o=t[a];o!=null&&(n&&n(i,a,o,r)||(Array.isArray(o)&&Array.isArray(i[a])?i[a]=[...o,...i[a]]:ch(o)&&ch(i[a])?i[a]=lv(o,i[a],(r?`${r}.`:"")+a.toString(),n):i[a]=o))}return i}function VE(t){return(...e)=>e.reduce((r,n)=>lv(r,n,"",t),{})}const zE=VE(),HE=PM(()=>{const t=fe(new Map),e=fe(),r=ce(()=>{for(const o of t.value.values())if(o)return!0;return!1}),n=Jp({scrollBody:fe(!0)});let i=null;const a=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=e.value??"",ry&&i?.(),e.value=void 0};return Ne(r,(o,s)=>{if(!Ca)return;if(!o){s&&a();return}e.value===void 0&&(e.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,u={padding:l,margin:0},f=n.scrollBody?.value?typeof n.scrollBody.value=="object"?zE({padding:n.scrollBody.value.padding===!0?l:n.scrollBody.value.padding,margin:n.scrollBody.value.margin===!0?l:n.scrollBody.value.margin},u):u:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof f.padding=="number"?`${f.padding}px`:String(f.padding),document.body.style.marginRight=typeof f.margin=="number"?`${f.margin}px`:String(f.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),ry&&(i=Zp(document,"touchmove",c=>GE(c),{passive:!1})),Ot(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),t});function $E(t){const e=Math.random().toString(36).substring(2,7),r=HE();r.value.set(e,t);const n=ce({get:()=>r.value.get(e)??!1,set:i=>r.value.set(e,i)});return FM(()=>{r.value.delete(e)}),n}function i1(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const r=t.parentNode;return!(r instanceof Element)||r.tagName==="BODY"?!1:i1(r)}}function GE(t){const e=t||window.event,r=e.target;return r instanceof Element&&i1(r)?!1:e.touches.length>1?!0:(e.preventDefault&&e.cancelable&&e.preventDefault(),!1)}const UE=he({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(t){const e=dn();return $E(!0),lt(),(r,n)=>(Q(),ge(L(xt),{as:r.as,"as-child":r.asChild,"data-state":L(e).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:ae(()=>[Me(r.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),WE=he({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t){const e=dn(),{forwardRef:r}=lt();return(n,i)=>L(e)?.modal.value?(Q(),ge(L(eg),{key:0,present:n.forceMount||L(e).open.value},{default:ae(()=>[re(UE,St(n.$attrs,{ref:L(r),as:n.as,"as-child":n.asChild}),{default:ae(()=>[Me(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):sn("",!0)}}),YE=he({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(t){const e=zM();return(r,n)=>L(e)||r.forceMount?(Q(),ge(Mw,{key:0,to:r.to,disabled:r.disabled,defer:r.defer},[Me(r.$slots,"default")],8,["to","disabled","defer"])):sn("",!0)}}),XE=he({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(t){const e=t,r=dn();return lt(),(n,i)=>(Q(),ge(L(xt),St(e,{id:L(r).titleId}),{default:ae(()=>[Me(n.$slots,"default")]),_:3},16,["id"]))}}),KE=he({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(t){const e=t,r=dn(),{forwardRef:n,currentElement:i}=lt();return r.contentId||=yi(void 0,"reka-dialog-content"),lr(()=>{r.triggerElement.value=i.value}),(a,o)=>(Q(),ge(L(xt),St(e,{ref:L(n),type:a.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":L(r).open.value||!1,"aria-controls":L(r).open.value?L(r).contentId:void 0,"data-state":L(r).open.value?"open":"closed",onClick:L(r).onOpenToggle}),{default:ae(()=>[Me(a.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}});function jE(){const t=fe(),e=ce(()=>["#text","#comment"].includes(t.value?.$el.nodeName)?t.value?.$el.nextElementSibling:ko(t));return{primitiveElement:t,currentElement:e}}function qE(t){return ce(()=>BM(t)?!!ko(t)?.closest("form"):!0)}const sy=he({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:"fully-hidden"}},setup(t){const e=t,{primitiveElement:r,currentElement:n}=jE(),i=ce(()=>e.checked??e.value);return Ne(i,(a,o)=>{if(!n.value)return;const s=n.value,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(f&&a!==o){const c=new Event("input",{bubbles:!0}),h=new Event("change",{bubbles:!0});f.call(s,a),s.dispatchEvent(c),s.dispatchEvent(h)}}),(a,o)=>(Q(),ge(MM,St({ref_key:"primitiveElement",ref:r},{...e,...a.$attrs},{as:"input"}),null,16))}}),ZE=he({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:"fully-hidden"}},setup(t){const e=t,r=ce(()=>typeof e.value=="object"&&Array.isArray(e.value)&&e.value.length===0&&e.required),n=ce(()=>typeof e.value=="string"||typeof e.value=="number"||typeof e.value=="boolean"?[{name:e.name,value:e.value}]:typeof e.value=="object"&&Array.isArray(e.value)?e.value.flatMap((i,a)=>typeof i=="object"?Object.entries(i).map(([o,s])=>({name:`[${e.name}][${a}][${o}]`,value:s})):{name:`[${e.name}][${a}]`,value:i}):e.value!==null&&typeof e.value=="object"&&!Array.isArray(e.value)?Object.entries(e.value).map(([i,a])=>({name:`[${e.name}][${i}]`,value:a})):[]);return(i,a)=>r.value?(Q(),ge(sy,St({key:i.name},{...e,...i.$attrs},{name:i.name,value:i.value}),null,16,["name","value"])):(Q(!0),nt(et,{key:1},Oo(n.value,o=>(Q(),ge(sy,St({key:o.name,ref_for:!0},{...e,...i.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))}});function JE(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const QE=he({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(t){const e=t;return(r,n)=>(Q(),ge(L(YE),qb(Up(e)),{default:ae(()=>[Me(r.$slots,"default")]),_:3},16))}});function Se(t,e="Assertion failed!"){if(!t)throw console.error(e),new Error(e)}const Ll=typeof document<"u";function a1(t,e=document){if(!Ll)return null;if(e instanceof HTMLElement&&e?.dataset?.panelGroupId===t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function bc(t,e=document){if(!Ll)return null;const r=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return r||null}function o1(t,e,r=document){return Ll?tl(t,r).findIndex(a=>a.getAttribute("data-panel-resize-handle-id")===e)??null:null}function tl(t,e=document){return Ll?Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`)):[]}function eP(t,e,r,n=document){const i=bc(e,n),a=tl(t,n),o=i?a.indexOf(i):-1,s=r[o]?.id??null,l=r[o+1]?.id??null;return[s,l]}function s1(t){return t.type==="keydown"}function l1(t){return t.type.startsWith("mouse")}function u1(t){return t.type.startsWith("touch")}function wc(t){if(l1(t))return{x:t.clientX,y:t.clientY};if(u1(t)){const e=t.touches[0];if(e&&e.clientX&&e.clientY)return{x:e.clientX,y:e.clientY}}return{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY}}function f1(t,e){const r=t==="horizontal",{x:n,y:i}=wc(e);return r?n:i}function tP(t,e,r,n,i){const a=r==="horizontal",o=bc(e,i);Se(o);const s=o.getAttribute("data-panel-group-id");Se(s);const{initialCursorPosition:l}=n,u=f1(r,t),f=a1(s,i);Se(f);const c=f.getBoundingClientRect(),h=a?c.width:c.height;return(u-l)/h*100}function rP(t,e,r,n,i,a){if(s1(t)){const o=r==="horizontal";let s=0;t.shiftKey?s=100:s=i??10;let l=0;switch(t.key){case"ArrowDown":l=o?0:s;break;case"ArrowLeft":l=o?-s:0;break;case"ArrowRight":l=o?s:0;break;case"ArrowUp":l=o?0:-s;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return n==null?0:tP(t,e,r,n,a)}function nP({layout:t,panelsArray:e,pivotIndices:r}){let n=0,i=100,a=0,o=0;const s=r[0];Se(s!=null),e.forEach((c,h)=>{const{constraints:d}=c,{maxSize:v=100,minSize:g=0}=d;h===s?(n=g,i=v):(a+=g,o+=v)});const l=Math.min(i,100-a),u=Math.max(n,100-o),f=t[s];return{valueMax:l,valueMin:u,valueNow:f}}function iP({panelDataArray:t}){const e=Array.from({length:t.length}),r=t.map(a=>a.constraints);let n=0,i=100;for(let a=0;a<t.length;a++){const o=r[a];Se(o);const{defaultSize:s}=o;s!=null&&(n++,e[a]=s,i-=s)}for(let a=0;a<t.length;a++){const o=r[a];Se(o);const{defaultSize:s}=o;if(s!=null)continue;const l=t.length-n,u=i/l;n++,e[a]=u,i-=u}return e}function Wo(t,e,r){e.forEach((n,i)=>{const a=t[i];Se(a);const{callbacks:o,constraints:s,id:l}=a,{collapsedSize:u=0,collapsible:f}=s,c=r[l];if(c==null||n!==c){r[l]=n;const{onCollapse:h,onExpand:d,onResize:v}=o;v&&v(n,c),f&&(h||d)&&(d&&(c==null||c===u)&&n!==u&&d(),h&&(c==null||c!==u)&&n===u&&h())}})}function aP(t,e=10){let r=null;return(...i)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...i)},e)}}const rg=10;function rl(t,e,r=rg){t=Number.parseFloat(t.toFixed(r)),e=Number.parseFloat(e.toFixed(r));const n=t-e;return n===0?0:n>0?1:-1}function hr(t,e,r){return rl(t,e,r)===0}function io({panelConstraints:t,panelIndex:e,size:r}){const n=t[e];Se(n!=null);const{collapsedSize:i=0,collapsible:a,maxSize:o=100,minSize:s=0}=n;if(rl(r,s)<0)if(a){const l=(i+s)/2;rl(r,l)<0?r=i:r=s}else r=s;return r=Math.min(o,r),r=Number.parseFloat(r.toFixed(rg)),r}function tu(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function gs({delta:t,layout:e,panelConstraints:r,pivotIndices:n,trigger:i}){if(hr(t,0))return e;const a=[...e],[o,s]=n;Se(o!=null),Se(s!=null);let l=0;if(i==="keyboard"){{const f=t<0?s:o,c=r[f];if(Se(c),c.collapsible){const h=e[f];Se(h!=null);const d=r[f];Se(d);const{collapsedSize:v=0,minSize:g=0}=d;if(hr(h,v)){const p=g-h;rl(p,Math.abs(t))>0&&(t=t<0?0-p:p)}}}{const f=t<0?o:s,c=r[f];Se(c);const{collapsible:h}=c;if(h){const d=e[f];Se(d!=null);const v=r[f];Se(v);const{collapsedSize:g=0,minSize:p=0}=v;if(hr(d,p)){const m=d-g;rl(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let c=t<0?s:o,h=0;for(;;){const v=e[c];Se(v!=null);const p=io({panelConstraints:r,panelIndex:c,size:100})-v;if(h+=p,c+=f,c<0||c>=r.length)break}const d=Math.min(Math.abs(t),Math.abs(h));t=t<0?0-d:d}{let c=t<0?o:s;for(;c>=0&&c<r.length;){const h=Math.abs(t)-Math.abs(l),d=e[c];Se(d!=null);const v=d-h,g=io({panelConstraints:r,panelIndex:c,size:v});if(!hr(d,g)&&(l+=d-g,a[c]=g,l.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?c--:c++}}if(hr(l,0))return e;{const f=t<0?s:o,c=e[f];Se(c!=null);const h=c+l,d=io({panelConstraints:r,panelIndex:f,size:h});if(a[f]=d,!hr(d,h)){let v=h-d,p=t<0?s:o;for(;p>=0&&p<r.length;){const m=a[p];Se(m!=null);const _=m+v,y=io({panelConstraints:r,panelIndex:p,size:_});if(hr(m,y)||(v-=y-m,a[p]=y),hr(v,0))break;t>0?p--:p++}}}const u=a.reduce((f,c)=>c+f,0);return hr(u,100)?a:e}function c1(t,e,r){const n=o1(t,e,r);return n!=null?[n,n+1]:[-1,-1]}function oP(t,e,r){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function sP(t,e){if(t===e)throw new Error("Cannot compare node with itself");const r={a:fy(t),b:fy(e)};let n;for(;r.a.at(-1)===r.b.at(-1);)t=r.a.pop(),e=r.b.pop(),n=t;Se(n);const i={a:uy(ly(r.a)),b:uy(ly(r.b))};if(i.a===i.b){const a=n.childNodes,o={a:r.a.at(-1),b:r.b.at(-1)};let s=a.length;for(;s--;){const l=a[s];if(l===o.a)return 1;if(l===o.b)return-1}}return Math.sign(i.a-i.b)}const lP=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function uP(t){const e=getComputedStyle(h1(t)).display;return e==="flex"||e==="inline-flex"}function fP(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||uP(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||lP.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function ly(t){let e=t.length;for(;e--;){const r=t[e];if(Se(r),fP(r))return r}return null}function uy(t){return t&&Number(getComputedStyle(t).zIndex)||0}function fy(t){const e=[];for(;t;)e.push(t),t=h1(t);return e}function h1(t){return t.parentNode instanceof DocumentFragment&&t.parentNode?.host||t.parentNode}let uv=null,Qi=null;function cP(t,e){if(e){const r=(e&v1)!==0,n=(e&p1)!==0,i=(e&g1)!==0,a=(e&m1)!==0;if(r)return i?"se-resize":a?"ne-resize":"e-resize";if(n)return i?"sw-resize":a?"nw-resize":"w-resize";if(i)return"s-resize";if(a)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function d1(){Qi!==null&&(document.head.removeChild(Qi),uv=null,Qi=null)}function hh(t,e){const r=cP(t,e);uv!==r&&(uv=r,Qi===null&&(Qi=document.createElement("style"),document.head.appendChild(Qi)),Qi.innerHTML=`*{cursor: ${r}!important;}`)}function hP({defaultSize:t,dragState:e,layout:r,panelData:n,panelIndex:i,precision:a=3}){const o=r[i];let s;return o==null?s=t!==void 0?t.toPrecision(a):"1":n.length===1?s="1":s=o.toPrecision(a),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}const v1=1,p1=2,g1=4,m1=8;function dP(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}const vP=dP()==="coarse",_i=[];let Sc=!1;const ri=new Map,xc=new Map,nl=new Set;function pP(t,e,r,n,i){const{ownerDocument:a}=e,o={direction:r,element:e,hitAreaMargins:n,setResizeHandlerState:i},s=ri.get(a)??0;return ri.set(a,s+1),nl.add(o),Df(),function(){xc.delete(t),nl.delete(o);const u=ri.get(a)??1;ri.set(a,u-1),Df(),d1(),u===1&&ri.delete(a)}}function ru(t){const{target:e}=t,{x:r,y:n}=wc(t);Sc=!0,ng({target:e,x:r,y:n}),Df(),_i.length>0&&(ig("down",t),t.preventDefault())}function Vn(t){const{x:e,y:r}=wc(t);if(!Sc){const{target:n}=t;ng({target:n,x:e,y:r})}ig("move",t),y1(),_i.length>0&&t.preventDefault()}function zn(t){const{target:e}=t,{x:r,y:n}=wc(t);xc.clear(),Sc=!1,_i.length>0&&t.preventDefault(),ig("up",t),ng({target:e,x:r,y:n}),y1(),Df()}function ng({target:t,x:e,y:r}){_i.splice(0);let n=null;t instanceof HTMLElement&&(n=t),nl.forEach(i=>{const{element:a,hitAreaMargins:o}=i,s=a.getBoundingClientRect(),{bottom:l,left:u,right:f,top:c}=s,h=vP?o.coarse:o.fine;if(e>=u-h&&e<=f+h&&r>=c-h&&r<=l+h){if(n!==null&&a!==n&&!a.contains(n)&&!n.contains(a)&&sP(n,a)>0){let v=n,g=!1;for(;v&&!v.contains(a);){if(oP(v.getBoundingClientRect(),s)){g=!0;break}v=v.parentElement}if(g)return}_i.push(i)}})}function dh(t,e){xc.set(t,e)}function y1(){let t=!1,e=!1;_i.forEach(n=>{const{direction:i}=n;i.value==="horizontal"?t=!0:e=!0});let r=0;xc.forEach(n=>{r|=n}),t&&e?hh("intersection",r):t?hh("horizontal",r):e?hh("vertical",r):d1()}function Df(){ri.forEach((t,e)=>{const{body:r}=e;r.removeEventListener("contextmenu",zn),r.removeEventListener("mousedown",ru),r.removeEventListener("mouseleave",Vn),r.removeEventListener("mousemove",Vn),r.removeEventListener("touchmove",Vn),r.removeEventListener("touchstart",ru)}),window.removeEventListener("mouseup",zn),window.removeEventListener("touchcancel",zn),window.removeEventListener("touchend",zn),nl.size>0&&(Sc?(_i.length>0&&ri.forEach((t,e)=>{const{body:r}=e;t>0&&(r.addEventListener("contextmenu",zn),r.addEventListener("mouseleave",Vn),r.addEventListener("mousemove",Vn),r.addEventListener("touchmove",Vn,{passive:!1}))}),window.addEventListener("mouseup",zn),window.addEventListener("touchcancel",zn),window.addEventListener("touchend",zn)):ri.forEach((t,e)=>{const{body:r}=e;t>0&&(r.addEventListener("mousedown",ru),r.addEventListener("mousemove",Vn),r.addEventListener("touchmove",Vn,{passive:!1}),r.addEventListener("touchstart",ru))}))}function ig(t,e){nl.forEach(r=>{const{setResizeHandlerState:n}=r,i=_i.includes(r);n(t,i,e)})}function gP({layout:t,panelConstraints:e}){const r=[...t],n=r.reduce((a,o)=>a+o,0);if(r.length!==e.length)throw new Error(`Invalid ${e.length} panel layout: ${r.map(a=>`${a}%`).join(", ")}`);if(!hr(n,100)){console.warn(`WARNING: Invalid layout total size: ${r.map(a=>`${a}%`).join(", ")}. Layout normalization will be applied.`);for(let a=0;a<e.length;a++){const o=r[a];Se(o!=null);const s=100/n*o;r[a]=s}}let i=0;for(let a=0;a<e.length;a++){const o=r[a];Se(o!=null);const s=io({panelConstraints:e,panelIndex:a,size:o});o!==s&&(i+=o-s,r[a]=s)}if(!hr(i,0))for(let a=0;a<e.length;a++){const o=r[a];Se(o!=null);const s=o+i,l=io({panelConstraints:e,panelIndex:a,size:s});if(o!==l&&(i-=l-o,r[a]=l,hr(i,0)))break}return r}function mP({eagerValuesRef:t,groupId:e,layout:r,panelDataArray:n,panelGroupElement:i,setLayout:a}){Yt(o=>{const s=i.value;if(!s)return;const l=tl(e,s);for(let u=0;u<n.length-1;u++){const{valueMax:f,valueMin:c,valueNow:h}=nP({layout:r.value,panelsArray:n,pivotIndices:[u,u+1]}),d=l[u];if(d!=null){const v=n[u];Se(v),d.setAttribute("aria-controls",v.id),d.setAttribute("aria-valuemax",`${Math.round(f)}`),d.setAttribute("aria-valuemin",`${Math.round(c)}`),d.setAttribute("aria-valuenow",h!=null?`${Math.round(h)}`:"")}}o(()=>{l.forEach(u=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})})}),Yt(o=>{const s=i.value;if(!s)return;const l=t.value;Se(l);const{panelDataArray:u}=l,f=a1(e,s);Se(f!=null,`No group found for id "${e}"`);const c=tl(e,s);Se(c);const h=c.map(d=>{const v=d.getAttribute("data-panel-resize-handle-id");Se(v);const[g,p]=eP(e,v,u,s);if(g==null||p==null)return()=>{};const m=_=>{if(!_.defaultPrevented)switch(_.key){case"Enter":{_.preventDefault();const y=u.findIndex(b=>b.id===g);if(y>=0){const b=u[y];Se(b);const w=r.value[y],{collapsedSize:S=0,collapsible:x,minSize:C=0}=b.constraints;if(w!=null&&x){const T=gs({delta:hr(w,S)?C-S:S-w,layout:r.value,panelConstraints:u.map(D=>D.constraints),pivotIndices:c1(e,v,s),trigger:"keyboard"});r.value!==T&&a(T)}}break}}};return d.addEventListener("keydown",m),()=>{d.removeEventListener("keydown",m)}});o(()=>{h.forEach(d=>d())})})}function cy(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,r)=>{localStorage.setItem(e,r)};else throw new TypeError("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function _1(t){return`reka:${t}`}function b1(t){return t.map(e=>{const{constraints:r,id:n,idIsFromProps:i,order:a}=e;return i?n:a?`${a}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((e,r)=>e.localeCompare(r)).join(",")}function w1(t,e){try{const r=_1(t),n=e.getItem(r);if(n){const i=JSON.parse(n);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function yP(t,e,r){const n=w1(t,r)??{},i=b1(e);return n[i]??null}function _P(t,e,r,n,i){const a=_1(t),o=b1(e),s=w1(t,i)??{};s[o]={expandToSizes:Object.fromEntries(r.entries()),layout:n};try{i.setItem(a,JSON.stringify(s))}catch(l){console.error(l)}}const bP=100,ms={getItem:t=>(cy(ms),ms.getItem(t)),setItem:(t,e)=>{cy(ms),ms.setItem(t,e)}},[S1,wP]=Da("PanelGroup"),SP=he({__name:"SplitterGroup",props:{id:{},autoSaveId:{default:null},direction:{},keyboardResizeBy:{default:10},storage:{default:()=>ms},asChild:{type:Boolean},as:{}},emits:["layout"],setup(t,{emit:e}){const r=t,n=e,i={},{direction:a}=wi(r),o=yi(r.id,"reka-splitter-group"),s=qS(),{forwardRef:l,currentElement:u}=lt(),f=fe(null),c=fe([]),h=fe({}),d=fe(new Map),v=fe(0),g=ce(()=>({autoSaveId:r.autoSaveId,direction:r.direction,dragState:f.value,id:o,keyboardResizeBy:r.keyboardResizeBy,storage:r.storage})),p=fe({layout:c.value,panelDataArray:[],panelDataArrayChanged:!1}),m=B=>c.value=B;mP({eagerValuesRef:p,groupId:o,layout:c,panelDataArray:p.value.panelDataArray,setLayout:m,panelGroupElement:u}),Yt(()=>{const{panelDataArray:B}=p.value,{autoSaveId:F}=r;if(F){if(c.value.length===0||c.value.length!==B.length)return;let G=i[F];G||(G=aP(_P,bP),i[F]=G);const J=[...B],oe=new Map(d.value);G(F,J,oe,c.value,r.storage)}});function _(B,F){const{panelDataArray:G}=p.value,J=V(G,B);return hP({defaultSize:F,dragState:f.value,layout:c.value,panelData:G,panelIndex:J})}function y(B){const{panelDataArray:F}=p.value;F.push(B),F.sort((G,J)=>{const oe=G.order,K=J.order;return oe==null&&K==null?0:oe==null?-1:K==null?1:oe-K}),p.value.panelDataArrayChanged=!0}Ne(()=>p.value.panelDataArrayChanged,()=>{if(p.value.panelDataArrayChanged){p.value.panelDataArrayChanged=!1;const{autoSaveId:B,storage:F}=g.value,{layout:G,panelDataArray:J}=p.value;let oe=null;if(B){const Te=yP(B,J,F);Te&&(d.value=new Map(Object.entries(Te.expandToSizes)),oe=Te.layout)}oe===null&&(oe=iP({panelDataArray:J}));const K=gP({layout:oe,panelConstraints:J.map(Te=>Te.constraints)});JE(G,K)||(m(K),p.value.layout=K,n("layout",K),Wo(J,K,h.value))}});function b(B){return function(G){G.preventDefault();const J=u.value;if(!J)return()=>null;const{direction:oe,dragState:K,id:Te,keyboardResizeBy:Ge}=g.value,{layout:ze,panelDataArray:De}=p.value,{initialLayout:ut}=K??{},ye=c1(Te,B,J);let ee=rP(G,B,oe,K,Ge,J);if(ee===0)return;const me=oe==="horizontal";s.value==="rtl"&&me&&(ee=-ee);const q=De.map(E=>E.constraints),ne=gs({delta:ee,layout:ut??ze,panelConstraints:q,pivotIndices:ye,trigger:s1(G)?"keyboard":"mouse-or-touch"}),A=!tu(ze,ne);(l1(G)||u1(G))&&v.value!==ee&&(v.value=ee,A?dh(B,0):me?dh(B,ee<0?v1:p1):dh(B,ee<0?g1:m1)),A&&(m(ne),p.value.layout=ne,n("layout",ne),Wo(De,ne,h.value))}}function w(B,F){const{layout:G,panelDataArray:J}=p.value,oe=J.map(ut=>ut.constraints),{panelSize:K,pivotIndices:Te}=N(J,B,G);Se(K!=null);const ze=V(J,B)===J.length-1?K-F:F-K,De=gs({delta:ze,layout:G,panelConstraints:oe,pivotIndices:Te,trigger:"imperative-api"});tu(G,De)||(m(De),p.value.layout=De,n("layout",De),Wo(J,De,h.value))}function S(B,F){const{layout:G,panelDataArray:J}=p.value,oe=V(J,B);J[oe]=B,p.value.panelDataArrayChanged=!0;const{collapsedSize:K=0,collapsible:Te}=F,{collapsedSize:Ge=0,collapsible:ze,maxSize:De=100,minSize:ut=0}=B.constraints,{panelSize:ye}=N(J,B,G);ye!==null&&(Te&&ze&&ye===K?K!==Ge&&w(B,Ge):ye<ut?w(B,ut):ye>De&&w(B,De))}function x(B,F){const{direction:G}=g.value,{layout:J}=p.value;if(!u.value)return;const oe=bc(B,u.value);Se(oe);const K=f1(G,F);f.value={dragHandleId:B,dragHandleRect:oe.getBoundingClientRect(),initialCursorPosition:K,initialLayout:J}}function C(){f.value=null}function T(B){const{panelDataArray:F}=p.value,G=V(F,B);G>=0&&(F.splice(G,1),delete h.value[B.id],p.value.panelDataArrayChanged=!0)}function D(B){const{layout:F,panelDataArray:G}=p.value;if(B.constraints.collapsible){const J=G.map(Ge=>Ge.constraints),{collapsedSize:oe=0,panelSize:K,pivotIndices:Te}=N(G,B,F);if(Se(K!=null,`Panel size not found for panel "${B.id}"`),K!==oe){d.value.set(B.id,K);const ze=V(G,B)===G.length-1?K-oe:oe-K,De=gs({delta:ze,layout:F,panelConstraints:J,pivotIndices:Te,trigger:"imperative-api"});tu(F,De)||(m(De),p.value.layout=De,n("layout",De),Wo(G,De,h.value))}}}function I(B){const{layout:F,panelDataArray:G}=p.value;if(B.constraints.collapsible){const J=G.map(ze=>ze.constraints),{collapsedSize:oe=0,panelSize:K,minSize:Te=0,pivotIndices:Ge}=N(G,B,F);if(K===oe){const ze=d.value.get(B.id),De=ze!=null&&ze>=Te?ze:Te,ye=V(G,B)===G.length-1?K-De:De-K,ee=gs({delta:ye,layout:F,panelConstraints:J,pivotIndices:Ge,trigger:"imperative-api"});tu(F,ee)||(m(ee),p.value.layout=ee,n("layout",ee),Wo(G,ee,h.value))}}}function M(B){const{layout:F,panelDataArray:G}=p.value,{panelSize:J}=N(G,B,F);return Se(J!=null,`Panel size not found for panel "${B.id}"`),J}function O(B){const{layout:F,panelDataArray:G}=p.value,{collapsedSize:J=0,collapsible:oe,panelSize:K}=N(G,B,F);return oe?K===void 0?B.constraints.defaultSize===B.constraints.collapsedSize:K===J:!1}function R(B){const{layout:F,panelDataArray:G}=p.value,{collapsedSize:J=0,collapsible:oe,panelSize:K}=N(G,B,F);return Se(K!=null,`Panel size not found for panel "${B.id}"`),!oe||K>J}wP({direction:a,dragState:f.value,groupId:o,reevaluatePanelConstraints:S,registerPanel:y,registerResizeHandle:b,resizePanel:w,startDragging:x,stopDragging:C,unregisterPanel:T,panelGroupElement:u,collapsePanel:D,expandPanel:I,isPanelCollapsed:O,isPanelExpanded:R,getPanelSize:M,getPanelStyle:_});function V(B,F){return B.findIndex(G=>G===F||G.id===F.id)}function N(B,F,G){const J=V(B,F),K=J===B.length-1?[J-1,J]:[J,J+1],Te=G[J];return{...F.constraints,panelSize:Te,pivotIndices:K}}return(B,F)=>(Q(),ge(L(xt),{ref:L(l),as:B.as,"as-child":B.asChild,style:On({display:"flex",flexDirection:L(a)==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"}),"data-panel-group":"","data-orientation":L(a),"data-panel-group-id":L(o)},{default:ae(()=>[Me(B.$slots,"default",{layout:c.value})]),_:3},8,["as","as-child","style","data-orientation","data-panel-group-id"]))}}),hy=he({__name:"SplitterPanel",props:{collapsedSize:{},collapsible:{type:Boolean},defaultSize:{},id:{},maxSize:{},minSize:{},order:{},asChild:{type:Boolean},as:{}},emits:["collapse","expand","resize"],setup(t,{expose:e,emit:r}){const n=t,i=r,a=S1();if(a===null)throw new Error("SplitterPanel components must be rendered within a SplitterGroup container");const{collapsePanel:o,expandPanel:s,getPanelSize:l,getPanelStyle:u,isPanelCollapsed:f,resizePanel:c,groupId:h,reevaluatePanelConstraints:d,registerPanel:v,unregisterPanel:g}=a,p=yi(n.id,"reka-splitter-panel"),m=ce(()=>({callbacks:{onCollapse:()=>i("collapse"),onExpand:()=>i("expand"),onResize:(...C)=>i("resize",...C)},constraints:{collapsedSize:n.collapsedSize&&Number.parseFloat(n.collapsedSize.toFixed(rg)),collapsible:n.collapsible,defaultSize:n.defaultSize,maxSize:n.maxSize,minSize:n.minSize},id:p,idIsFromProps:n.id!==void 0,order:n.order}));Ne(()=>m.value.constraints,(C,T)=>{(T.collapsedSize!==C.collapsedSize||T.collapsible!==C.collapsible||T.maxSize!==C.maxSize||T.minSize!==C.minSize)&&d(m.value,T)},{deep:!0}),lr(()=>{const C=m.value;v(C),Si(()=>{g(C)})});const _=ce(()=>u(m.value,n.defaultSize)),y=ce(()=>f(m.value)),b=ce(()=>!y.value);function w(){o(m.value)}function S(){s(m.value)}function x(C){c(m.value,C)}return e({collapse:w,expand:S,getSize(){return l(m.value)},resize:x,isCollapsed:y,isExpanded:b}),(C,T)=>(Q(),ge(L(xt),{id:L(p),style:On(_.value),as:C.as,"as-child":C.asChild,"data-panel":"","data-panel-collapsible":C.collapsible||void 0,"data-panel-group-id":L(h),"data-panel-id":L(p),"data-panel-size":Number.parseFloat(`${_.value.flexGrow}`).toFixed(1),"data-state":C.collapsible?y.value?"collapsed":"expanded":void 0},{default:ae(()=>[Me(C.$slots,"default",{isCollapsed:y.value,isExpanded:b.value,expand:S,collapse:w,resize:x})]),_:3},8,["id","style","as","as-child","data-panel-collapsible","data-panel-group-id","data-panel-id","data-panel-size","data-state"]))}});function xP({disabled:t,handleId:e,resizeHandler:r,panelGroupElement:n}){Yt(i=>{const a=n.value;if(t.value||r.value===null||a===null)return;const o=bc(e,a);if(o==null)return;const s=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),r.value?.(l);break}case"F6":{l.preventDefault();const u=o.getAttribute("data-panel-group-id");Se(u);const f=tl(u,a),c=o1(u,e,a);Se(c!==null);const h=l.shiftKey?c>0?c-1:f.length-1:c+1<f.length?c+1:0;f[h].focus();break}}};o.addEventListener("keydown",s),i(()=>{o.removeEventListener("keydown",s)})})}const TP=he({__name:"SplitterResizeHandle",props:{id:{},hitAreaMargins:{},tabindex:{default:0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["dragging"],setup(t,{emit:e}){const r=t,n=e,{forwardRef:i,currentElement:a}=lt(),{disabled:o}=wi(r),s=S1();if(s===null)throw new Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:l,groupId:u,registerResizeHandle:f,startDragging:c,stopDragging:h,panelGroupElement:d}=s,v=yi(r.id,"reka-splitter-resize-handle"),g=fe("inactive"),p=fe(!1),m=fe(null);return Ne(o,()=>{Ll&&(o.value?m.value=null:m.value=f(v))},{immediate:!0}),Yt(_=>{if(o.value||m.value===null)return;const y=a.value;if(!y)return;Se(y);const b=(w,S,x)=>{if(S)switch(w){case"down":{g.value="drag",c(v,x),n("dragging",!0);break}case"move":{g.value!=="drag"&&(g.value="hover"),m.value?.(x);break}case"up":{g.value="hover",h(),n("dragging",!1);break}}else g.value="inactive"};_(pP(v,y,l,{coarse:r.hitAreaMargins?.coarse??15,fine:r.hitAreaMargins?.fine??5},b))}),xP({disabled:o,resizeHandler:m,handleId:v,panelGroupElement:d}),(_,y)=>(Q(),ge(L(xt),{id:L(v),ref:L(i),style:{touchAction:"none",userSelect:"none"},as:_.as,"as-child":_.asChild,role:"separator","data-resize-handle":"",tabindex:_.tabindex,"data-state":g.value,"data-disabled":L(o)?"":void 0,"data-orientation":L(l),"data-panel-group-id":L(u),"data-resize-handle-active":g.value==="drag"?"pointer":p.value?"keyboard":void 0,"data-resize-handle-state":g.value,"data-panel-resize-handle-enabled":!L(o),"data-panel-resize-handle-id":L(v),onBlur:y[0]||(y[0]=b=>p.value=!1),onFocus:y[1]||(y[1]=b=>p.value=!1)},{default:ae(()=>[Me(_.$slots,"default")]),_:3},8,["id","as","as-child","tabindex","data-state","data-disabled","data-orientation","data-panel-group-id","data-resize-handle-active","data-resize-handle-state","data-panel-resize-handle-enabled","data-panel-resize-handle-id"]))}}),[CP,DP]=Da("SwitchRoot"),AP=he({__name:"SwitchRoot",props:{defaultValue:{type:Boolean},modelValue:{type:[Boolean,null],default:void 0},disabled:{type:Boolean},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"},name:{},required:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,{disabled:i}=wi(r),a=yc(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0});function o(){i.value||(a.value=!a.value)}const{forwardRef:s,currentElement:l}=lt(),u=qE(l),f=ce(()=>r.id&&l.value?document.querySelector(`[for="${r.id}"]`)?.innerText:void 0);return DP({modelValue:a,toggleCheck:o,disabled:i}),(c,h)=>(Q(),ge(L(xt),St(c.$attrs,{id:c.id,ref:L(s),role:"switch",type:c.as==="button"?"button":void 0,value:c.value,"aria-label":c.$attrs["aria-label"]||f.value,"aria-checked":L(a),"aria-required":c.required,"data-state":L(a)?"checked":"unchecked","data-disabled":L(i)?"":void 0,"as-child":c.asChild,as:c.as,disabled:L(i),onClick:o,onKeydown:Kp(HS(o,["prevent"]),["enter"])}),{default:ae(()=>[Me(c.$slots,"default",{modelValue:L(a)}),L(u)&&c.name?(Q(),ge(L(ZE),{key:0,type:"checkbox",name:c.name,disabled:L(i),required:c.required,value:c.value,checked:!!L(a)},null,8,["name","disabled","required","value","checked"])):sn("",!0)]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]))}}),IP=he({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(t){const e=CP();return lt(),(r,n)=>(Q(),ge(L(xt),{"data-state":L(e).modelValue?.value?"checked":"unchecked","data-disabled":L(e).disabled.value?"":void 0,"as-child":r.asChild,as:r.as},{default:ae(()=>[Me(r.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"]))}});function MP(t){return rc()?(Cp(t),!0):!1}const vh=new WeakMap,EP=(...t)=>{var e;const r=t[0],n=(e=ht())==null?void 0:e.proxy;if(n==null&&!zp())throw new Error("injectLocal must be called in setup");return n&&vh.has(n)&&r in vh.get(n)?vh.get(n)[r]:si(...t)},x1=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const PP=Object.prototype.toString,LP=t=>PP.call(t)==="[object Object]",ti=()=>{},RP=OP();function OP(){var t,e;return x1&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function T1(...t){if(t.length!==1)return yw(...t);const e=t[0];return typeof e=="function"?Dl(Ep(()=>({get:e,set:ti}))):fe(e)}function kP(t,e){function r(...n){return new Promise((i,a)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(i).catch(a)})}return r}const C1=t=>t();function NP(t=C1,e={}){const{initialState:r="active"}=e,n=T1(r==="active");function i(){n.value=!1}function a(){n.value=!0}const o=(...s)=>{n.value&&t(...s)};return{isActive:Dl(n),pause:i,resume:a,eventFilter:o}}function dy(t){return t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t)}function ph(t){return Array.isArray(t)?t:[t]}function BP(t){return ht()}function FP(t,e,r={}){const{eventFilter:n=C1,...i}=r;return Ne(t,kP(n,e),i)}function VP(t,e,r={}){const{eventFilter:n,initialState:i="active",...a}=r,{eventFilter:o,pause:s,resume:l,isActive:u}=NP(n,{initialState:i});return{stop:FP(t,e,{...a,eventFilter:o}),pause:s,resume:l,isActive:u}}function D1(t,e=!0,r){BP()?lr(t,r):e?t():Ot(t)}function zP(t,e,r){return Ne(t,e,{...r,immediate:!0})}const ma=x1?window:void 0;function ao(t){var e;const r=tt(t);return(e=r?.$el)!=null?e:r}function zr(...t){const e=[],r=()=>{e.forEach(s=>s()),e.length=0},n=(s,l,u,f)=>(s.addEventListener(l,u,f),()=>s.removeEventListener(l,u,f)),i=ce(()=>{const s=ph(tt(t[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),a=zP(()=>{var s,l;return[(l=(s=i.value)==null?void 0:s.map(u=>ao(u)))!=null?l:[ma].filter(u=>u!=null),ph(tt(i.value?t[1]:t[0])),ph(L(i.value?t[2]:t[1])),tt(i.value?t[3]:t[2])]},([s,l,u,f])=>{if(r(),!s?.length||!l?.length||!u?.length)return;const c=LP(f)?{...f}:f;e.push(...s.flatMap(h=>l.flatMap(d=>u.map(v=>n(h,d,v,c)))))},{flush:"post"}),o=()=>{a(),r()};return MP(r),o}let vy=!1;function HP(t,e,r={}){const{window:n=ma,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=r;if(!n)return s?{stop:ti,cancel:ti,trigger:ti}:ti;if(RP&&!vy){vy=!0;const p={passive:!0};Array.from(n.document.body.children).forEach(m=>m.addEventListener("click",ti,p)),n.document.documentElement.addEventListener("click",ti,p)}let l=!0;const u=p=>tt(i).some(m=>{if(typeof m=="string")return Array.from(n.document.querySelectorAll(m)).some(_=>_===p.target||p.composedPath().includes(_));{const _=ao(m);return _&&(p.target===_||p.composedPath().includes(_))}});function f(p){const m=tt(p);return m&&m.$.subTree.shapeFlag===16}function c(p,m){const _=tt(p),y=_.$.subTree&&_.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(b=>b.el===m.target||m.composedPath().includes(b.el))}const h=p=>{const m=ao(t);if(p.target!=null&&!(!(m instanceof Element)&&f(t)&&c(t,p))&&!(!m||m===p.target||p.composedPath().includes(m))){if("detail"in p&&p.detail===0&&(l=!u(p)),!l){l=!0;return}e(p)}};let d=!1;const v=[zr(n,"click",p=>{d||(d=!0,setTimeout(()=>{d=!1},0),h(p))},{passive:!0,capture:a}),zr(n,"pointerdown",p=>{const m=ao(t);l=!u(p)&&!!(m&&!p.composedPath().includes(m))},{passive:!0}),o&&zr(n,"blur",p=>{setTimeout(()=>{var m;const _=ao(t);((m=n.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!_?.contains(n.document.activeElement)&&e(p)},0)},{passive:!0})].filter(Boolean),g=()=>v.forEach(p=>p());return s?{stop:g,cancel:()=>{l=!1},trigger:p=>{l=!0,h(p),l=!1}}:g}function $P(){const t=$r(!1),e=ht();return e&&lr(()=>{t.value=!0},e),t}function GP(t){const e=$P();return ce(()=>(e.value,!!t()))}const UP=Symbol("vueuse-ssr-width");function WP(){const t=zp()?EP(UP,null):null;return typeof t=="number"?t:void 0}function YP(t,e={}){const{window:r=ma,ssrWidth:n=WP()}=e,i=GP(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),a=$r(typeof n=="number"),o=$r(),s=$r(!1),l=u=>{s.value=u.matches};return Yt(()=>{if(a.value){a.value=!i.value;const u=tt(t).split(",");s.value=u.some(f=>{const c=f.includes("not all"),h=f.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=f.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let v=!!(h||d);return h&&v&&(v=n>=dy(h[1])),d&&v&&(v=n<=dy(d[1])),c?!v:v});return}i.value&&(o.value=r.matchMedia(tt(t)),s.value=o.value.matches)}),zr(o,"change",l,{passive:!0}),ce(()=>s.value)}const nu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},iu="__vueuse_ssr_handlers__",XP=KP();function KP(){return iu in nu||(nu[iu]=nu[iu]||{}),nu[iu]}function A1(t,e){return XP[t]||e}function jP(t){return YP("(prefers-color-scheme: dark)",t)}function qP(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const ZP={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},py="vueuse-storage";function JP(t,e,r,n={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:f,window:c=ma,eventFilter:h,onError:d=R=>{console.error(R)},initOnMounted:v}=n,g=(f?$r:fe)(typeof e=="function"?e():e),p=ce(()=>tt(t));if(!r)try{r=A1("getDefaultStorage",()=>{var R;return(R=ma)==null?void 0:R.localStorage})()}catch(R){d(R)}if(!r)return g;const m=tt(e),_=qP(m),y=(i=n.serializer)!=null?i:ZP[_],{pause:b,resume:w}=VP(g,()=>D(g.value),{flush:a,deep:o,eventFilter:h});Ne(p,()=>M(),{flush:a});let S=!1;const x=R=>{v&&!S||M(R)},C=R=>{v&&!S||O(R)};c&&s&&(r instanceof Storage?zr(c,"storage",x,{passive:!0}):zr(c,py,C)),v?D1(()=>{S=!0,M()}):M();function T(R,V){if(c){const N={key:p.value,oldValue:R,newValue:V,storageArea:r};c.dispatchEvent(r instanceof Storage?new StorageEvent("storage",N):new CustomEvent(py,{detail:N}))}}function D(R){try{const V=r.getItem(p.value);if(R==null)T(V,null),r.removeItem(p.value);else{const N=y.write(R);V!==N&&(r.setItem(p.value,N),T(V,N))}}catch(V){d(V)}}function I(R){const V=R?R.newValue:r.getItem(p.value);if(V==null)return l&&m!=null&&r.setItem(p.value,y.write(m)),m;if(!R&&u){const N=y.read(V);return typeof u=="function"?u(N,m):_==="object"&&!Array.isArray(N)?{...m,...N}:N}else return typeof V!="string"?V:y.read(V)}function M(R){if(!(R&&R.storageArea!==r)){if(R&&R.key==null){g.value=m;return}if(!(R&&R.key!==p.value)){b();try{R?.newValue!==y.write(g.value)&&(g.value=I(R))}catch(V){d(V)}finally{R?Ot(w):w()}}}}function O(R){M(R.detail)}return g}const QP="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function eL(t={}){const{selector:e="html",attribute:r="class",initialValue:n="auto",window:i=ma,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:u,disableTransition:f=!0}=t,c={auto:"",light:"light",dark:"dark",...t.modes||{}},h=jP({window:i}),d=ce(()=>h.value?"dark":"light"),v=l||(o==null?T1(n):JP(o,n,a,{window:i,listenToStorageChanges:s})),g=ce(()=>v.value==="auto"?d.value:v.value),p=A1("updateHTMLAttrs",(b,w,S)=>{const x=typeof b=="string"?i?.document.querySelector(b):ao(b);if(!x)return;const C=new Set,T=new Set;let D=null;if(w==="class"){const M=S.split(/\s/g);Object.values(c).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{M.includes(O)?C.add(O):T.add(O)})}else D={key:w,value:S};if(C.size===0&&T.size===0&&D===null)return;let I;f&&(I=i.document.createElement("style"),I.appendChild(document.createTextNode(QP)),i.document.head.appendChild(I));for(const M of C)x.classList.add(M);for(const M of T)x.classList.remove(M);D&&x.setAttribute(D.key,D.value),f&&(i.getComputedStyle(I).opacity,document.head.removeChild(I))});function m(b){var w;p(e,r,(w=c[b])!=null?w:b)}function _(b){t.onChanged?t.onChanged(b,m):m(b)}Ne(g,_,{flush:"post",immediate:!0}),D1(()=>_(g.value));const y=ce({get(){return u?v.value:g.value},set(b){v.value=b}});return Object.assign(y,{store:v,system:d,state:g})}function ag(t={}){const{valueDark:e="dark",valueLight:r=""}=t,n=eL({...t,onChanged:(o,s)=>{var l;t.onChanged?(l=t.onChanged)==null||l.call(t,o==="dark",s,o):s(o)},modes:{dark:e,light:r}}),i=ce(()=>n.system.value);return ce({get(){return n.value==="dark"},set(o){const s=o?"dark":"light";i.value===s?n.value="auto":n.value=s}})}const tL={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function rL(t={}){const{reactive:e=!1,target:r=ma,aliasMap:n=tL,passive:i=!0,onEventFired:a=ti}=t,o=gi(new Set),s={toJSON(){return{}},current:o},l=e?gi(s):s,u=new Set,f=new Set,c=new Set;function h(p,m){p in l&&(e?l[p]=m:l[p].value=m)}function d(){o.clear();for(const p of c)h(p,!1)}function v(p,m){var _,y;const b=(_=p.key)==null?void 0:_.toLowerCase(),S=[(y=p.code)==null?void 0:y.toLowerCase(),b].filter(Boolean);b&&(m?o.add(b):o.delete(b));for(const x of S)c.add(x),h(x,m);b==="shift"&&!m?(f.forEach(x=>{o.delete(x),h(x,!1)}),f.clear()):typeof p.getModifierState=="function"&&p.getModifierState("Shift")&&m&&[...o,...S].forEach(x=>f.add(x)),b==="meta"&&!m?(u.forEach(x=>{o.delete(x),h(x,!1)}),u.clear()):typeof p.getModifierState=="function"&&p.getModifierState("Meta")&&m&&[...o,...S].forEach(x=>u.add(x))}zr(r,"keydown",p=>(v(p,!0),a(p)),{passive:i}),zr(r,"keyup",p=>(v(p,!1),a(p)),{passive:i}),zr("blur",d,{passive:i}),zr("focus",d,{passive:i});const g=new Proxy(l,{get(p,m,_){if(typeof m!="string")return Reflect.get(p,m,_);if(m=m.toLowerCase(),m in n&&(m=n[m]),!(m in l))if(/[+_-]/.test(m)){const b=m.split(/[+_-]/g).map(w=>w.trim());l[m]=ce(()=>b.map(w=>tt(g[w])).every(Boolean))}else l[m]=$r(!1);const y=Reflect.get(p,m,_);return e?tt(y):y}});return g}/*! *****************************************************************************
|
|
25
|
+
Copyright (c) Microsoft Corporation.
|
|
26
|
+
|
|
27
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
28
|
+
purpose with or without fee is hereby granted.
|
|
29
|
+
|
|
30
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
31
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
32
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
33
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
34
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
35
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
36
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
37
|
+
***************************************************************************** */var fv=function(t,e){return fv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},fv(t,e)};function le(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");fv(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var nL=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),iL=(function(){function t(){this.browser=new nL,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),be=new iL;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(be.wxa=!0,be.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?be.worker=!0:!be.hasGlobalWindow||"Deno"in window?(be.node=!0,be.svgSupported=!0):aL(navigator.userAgent,be);function aL(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var og=12,oL="sans-serif",ya=og+"px "+oL,sL=20,lL=100,uL="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function fL(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-sL)/lL;e[n]=i}return e}var cL=fL(uL),No={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=No.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||ya),t.measureText(r);r=r||"",n=n||ya;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||og,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=cL[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},I1=Bo(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),M1=Bo(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Rl=Object.prototype.toString,Tc=Array.prototype,hL=Tc.forEach,dL=Tc.filter,sg=Tc.slice,vL=Tc.map,gy=(function(){}).constructor,au=gy?gy.prototype:null,lg="__proto__",pL=2311;function E1(){return pL++}function ug(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Ae(t){if(t==null||typeof t!="object")return t;var e=t,r=Rl.call(t);if(r==="[object Array]"){if(!Os(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=Ae(t[n])}}else if(M1[r]){if(!Os(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!I1[r]&&!Os(t)&&!il(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==lg&&(e[o]=Ae(t[o]))}return e}function at(t,e,r){if(!ve(e)||!ve(t))return r?Ae(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==lg){var i=t[n],a=e[n];ve(a)&&ve(i)&&!te(a)&&!te(i)&&!il(a)&&!il(i)&&!my(a)&&!my(i)&&!Os(a)&&!Os(i)?at(i,a,r):(r||!(n in t))&&(t[n]=Ae(e[n]))}return t}function W(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==lg&&(t[r]=e[r]);return t}function rt(t,e,r){for(var n=ot(e),i=0,a=n.length;i<a;i++){var o=n[i];t[o]==null&&(t[o]=e[o])}return t}function $e(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function gL(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Yr(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else rt(t,e)}function ar(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function P(t,e,r){if(t&&e)if(t.forEach&&t.forEach===hL)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function ke(t,e,r){if(!t)return[];if(!e)return fg(t);if(t.map&&t.map===vL)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function Bo(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function dr(t,e,r){if(!t)return[];if(!e)return fg(t);if(t.filter&&t.filter===dL)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function ot(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function mL(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(sg.call(arguments)))}}var Le=au&&Re(au.bind)?au.call.bind(au.bind):mL;function it(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(sg.call(arguments)))}}function te(t){return Array.isArray?Array.isArray(t):Rl.call(t)==="[object Array]"}function Re(t){return typeof t=="function"}function ue(t){return typeof t=="string"}function cv(t){return Rl.call(t)==="[object String]"}function st(t){return typeof t=="number"}function ve(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function my(t){return!!I1[Rl.call(t)]}function or(t){return!!M1[Rl.call(t)]}function il(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Cc(t){return t.colorStops!=null}function yL(t){return t.image!=null}function _L(t){return t!==t}function bi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function Ce(t,e){return t??e}function ua(t,e,r){return t??e??r}function fg(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return sg.apply(t,e)}function cg(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Wr(t,e){if(!t)throw new Error(e)}function an(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var P1="__ec_primitive__";function hv(t){t[P1]=!0}function Os(t){return t[P1]}var bL=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return ot(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),L1=typeof Map=="function";function wL(){return L1?new Map:new bL}var SL=(function(){function t(e){var r=te(e);this.data=wL();var n=this;e instanceof t?e.each(i):e&&P(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return L1?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function we(t){return new SL(t)}function xL(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function Dc(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&W(r,e),r}function R1(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function _a(t,e){return t.hasOwnProperty(e)}function mt(){}var TL=180/Math.PI;function Aa(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Bt(t,e){return t[0]=e[0],t[1]=e[1],t}function Cn(t){return[t[0],t[1]]}function CL(t,e,r){return t[0]=e,t[1]=r,t}function yy(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function dv(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function ea(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function vv(t){return Math.sqrt(DL(t))}function DL(t){return t[0]*t[0]+t[1]*t[1]}function Wu(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Fo(t,e){var r=vv(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function pv(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var AL=pv;function IL(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var fa=IL;function yr(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function oo(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function so(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Oa=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),ML=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Oa(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new Oa(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Oa(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Oa(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Oa(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Oa(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Xr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),EL=Math.log(2);function gv(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/EL);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,d=0;h<s;h++){var v=1<<h;v&i||(c+=(d%2?-1:1)*t[r][h]*gv(t,e-1,f,u,i|v,a),d++)}return a[o]=c,c}function _y(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=gv(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*gv(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var by="___zrEVENTSAVED",gh=[];function PL(t,e,r,n,i){return mv(gh,e,n,i,!0)&&mv(t,r,gh[0],gh[1])}function mv(t,e,r,n,i){if(e.getBoundingClientRect&&be.domSupported&&!O1(e)){var a=e[by]||(e[by]={}),o=LL(e,a),s=RL(o,a,i);if(s)return s(t,r,n),!0}return!1}function LL(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return r}function RL(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,h=f.left,d=f.top;o.push(h,d),l=l&&a&&h===a[c]&&d===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?_y(s,o):_y(o,s))}function O1(t){return t.nodeName.toUpperCase()==="CANVAS"}var OL=/([&<>"'])/g,kL={"&":"&","<":"<",">":">",'"':""","'":"'"};function Gt(t){return t==null?"":(t+"").replace(OL,function(e,r){return kL[r]})}var NL=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mh=[],BL=be.browser.firefox&&+be.browser.version.split(".")[0]<39;function yv(t,e,r,n){return r=r||{},n?wy(t,e,r):BL&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):wy(t,e,r),r}function wy(t,e,r){if(be.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(O1(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(mv(mh,t,n,i)){r.zrX=mh[0],r.zrY=mh[1];return}}r.zrX=r.zrY=0}function hg(t){return t||window.event}function Cr(t,e,r){if(e=hg(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&yv(t,o,e,r)}else{yv(t,e,e,r);var a=FL(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&NL.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function FL(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function VL(t,e,r,n){t.addEventListener(e,r,n)}function zL(t,e,r,n){t.removeEventListener(e,r,n)}var Ac=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Sy(t){return t.which===2||t.which===3}var HL=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=yv(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in yh)if(yh.hasOwnProperty(r)){var n=yh[r](this._track,e);if(n)return n}},t})();function xy(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function $L(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var yh={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=xy(n)/xy(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=$L(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function fi(){return[1,0,0,1,0,0]}function dg(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function k1(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function wo(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function al(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function vg(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function N1(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function pg(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var Ye=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),ou=Math.min,su=Math.max,Ai=new Ye,Ii=new Ye,Mi=new Ye,Ei=new Ye,Yo=new Ye,Xo=new Ye,Oe=(function(){function t(e,r,n,i){n<0&&(e=e+n,n=-n),i<0&&(r=r+i,i=-i),this.x=e,this.y=r,this.width=n,this.height=i}return t.prototype.union=function(e){var r=ou(e.x,this.x),n=ou(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=su(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=su(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=fi();return al(a,a,[-r.x,-r.y]),N1(a,a,[n,i]),al(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,c=e.y+e.height,h=!(a<l||u<i||s<f||c<o);if(r){var d=1/0,v=0,g=Math.abs(a-l),p=Math.abs(u-i),m=Math.abs(s-f),_=Math.abs(c-o),y=Math.min(g,p),b=Math.min(m,_);a<l||u<i?y>v&&(v=y,g<p?Ye.set(Xo,-g,0):Ye.set(Xo,p,0)):y<d&&(d=y,g<p?Ye.set(Yo,g,0):Ye.set(Yo,-p,0)),s<f||c<o?b>v&&(v=b,m<_?Ye.set(Xo,0,-m):Ye.set(Xo,0,_)):y<d&&(d=y,m<_?Ye.set(Yo,0,m):Ye.set(Yo,0,-_))}return r&&Ye.copy(r,h?Yo:Xo),h},t.prototype.contain=function(e,r){var n=this;return e>=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ai.x=Mi.x=r.x,Ai.y=Ei.y=r.y,Ii.x=Ei.x=r.x+r.width,Ii.y=Mi.y=r.y+r.height,Ai.transform(n),Ei.transform(n),Ii.transform(n),Mi.transform(n),e.x=ou(Ai.x,Ii.x,Mi.x,Ei.x),e.y=ou(Ai.y,Ii.y,Mi.y,Ei.y);var l=su(Ai.x,Ii.x,Mi.x,Ei.x),u=su(Ai.y,Ii.y,Mi.y,Ei.y);e.width=l-e.x,e.height=u-e.y},t})(),B1="silent";function GL(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:UL}}function UL(){Ac(this.event)}var WL=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Xr),Ko=(function(){function t(e,r){this.x=e,this.y=r}return t})(),YL=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_h=new Oe(0,0,0,0),F1=(function(t){le(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Ko(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new WL,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new ML(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(P(YL,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=V1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ko(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Ko(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=GL(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Ko(r,n);if(Ty(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Oe(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(_h.copy(h.getBoundingRect()),h.transform&&_h.applyTransform(h.transform),_h.intersect(f)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=d)for(var m=0;m<g;m+=v){var _=r+p*Math.cos(m),y=n+p*Math.sin(m);if(Ty(s,o,_,y,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new HL);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Ko;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Xr);P(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){F1.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=V1(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||AL(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function XL(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?B1:!0}return!1}function Ty(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=XL(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==B1)){e.target=o;break}}}function V1(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var z1=32,jo=7;function KL(t){for(var e=0;t>=z1;)e|=t&1,t>>=1;return t+e}function Cy(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;jL(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function jL(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Dy(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function bh(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function wh(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function qL(t,e){var r=jo,n,i,a=0,o=[];n=[],i=[];function s(d,v){n[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;f(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,f(d)}}function f(d){var v=n[d],g=i[d],p=n[d+1],m=i[d+1];i[d]=g+m,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var _=wh(t[p],t,v,g,0,e);v+=_,g-=_,g!==0&&(m=bh(t[v+g-1],t,p,m,m-1,e),m!==0&&(g<=m?c(v,g,p,m):h(v,g,p,m)))}function c(d,v,g,p){var m=0;for(m=0;m<v;m++)o[m]=t[d+m];var _=0,y=g,b=d;if(t[b++]=t[y++],--p===0){for(m=0;m<v;m++)t[b+m]=o[_+m];return}if(v===1){for(m=0;m<p;m++)t[b+m]=t[y+m];t[b+p]=o[_];return}for(var w=r,S,x,C;;){S=0,x=0,C=!1;do if(e(t[y],o[_])<0){if(t[b++]=t[y++],x++,S=0,--p===0){C=!0;break}}else if(t[b++]=o[_++],S++,x=0,--v===1){C=!0;break}while((S|x)<w);if(C)break;do{if(S=wh(t[y],o,_,v,0,e),S!==0){for(m=0;m<S;m++)t[b+m]=o[_+m];if(b+=S,_+=S,v-=S,v<=1){C=!0;break}}if(t[b++]=t[y++],--p===0){C=!0;break}if(x=bh(o[_],t,y,p,0,e),x!==0){for(m=0;m<x;m++)t[b+m]=t[y+m];if(b+=x,y+=x,p-=x,p===0){C=!0;break}}if(t[b++]=o[_++],--v===1){C=!0;break}w--}while(S>=jo||x>=jo);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),v===1){for(m=0;m<p;m++)t[b+m]=t[y+m];t[b+p]=o[_]}else{if(v===0)throw new Error;for(m=0;m<v;m++)t[b+m]=o[_+m]}}function h(d,v,g,p){var m=0;for(m=0;m<p;m++)o[m]=t[g+m];var _=d+v-1,y=p-1,b=g+p-1,w=0,S=0;if(t[b--]=t[_--],--v===0){for(w=b-(p-1),m=0;m<p;m++)t[w+m]=o[m];return}if(p===1){for(b-=v,_-=v,S=b+1,w=_+1,m=v-1;m>=0;m--)t[S+m]=t[w+m];t[b]=o[y];return}for(var x=r;;){var C=0,T=0,D=!1;do if(e(o[y],t[_])<0){if(t[b--]=t[_--],C++,T=0,--v===0){D=!0;break}}else if(t[b--]=o[y--],T++,C=0,--p===1){D=!0;break}while((C|T)<x);if(D)break;do{if(C=v-wh(o[y],t,d,v,v-1,e),C!==0){for(b-=C,_-=C,v-=C,S=b+1,w=_+1,m=C-1;m>=0;m--)t[S+m]=t[w+m];if(v===0){D=!0;break}}if(t[b--]=o[y--],--p===1){D=!0;break}if(T=p-bh(t[_],o,0,p,p-1,e),T!==0){for(b-=T,y-=T,p-=T,S=b+1,w=y+1,m=0;m<T;m++)t[S+m]=o[w+m];if(p<=1){D=!0;break}}if(t[b--]=t[_--],--v===0){D=!0;break}x--}while(C>=jo||T>=jo);if(D)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(b-=v,_-=v,S=b+1,w=_+1,m=v-1;m>=0;m--)t[S+m]=t[w+m];t[b]=o[y]}else{if(p===0)throw new Error;for(w=b-(p-1),m=0;m<p;m++)t[w+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Yu(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<z1){a=Cy(t,r,n,e),Dy(t,r,n,r+a,e);return}var o=qL(t,e),s=KL(i);do{if(a=Cy(t,r,n,e),a<s){var l=i;l>s&&(l=s),Dy(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var vr=1,ys=2,to=4,Ay=!1;function Sh(){Ay||(Ay=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Iy(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ZL=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Iy}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,Yu(n,Iy)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=e;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=vr),this._updateAndAddDisplayable(u,r,n)}e.__dirty=0}else{var f=e;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Sh(),f.z=0),isNaN(f.z2)&&(Sh(),f.z2=0),isNaN(f.zlevel)&&(Sh(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=$e(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Af;Af=be.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ks={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ks.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?ks.bounceIn(t*2)*.5:ks.bounceOut(t*2-1)*.5+.5}},lu=Math.pow,ci=Math.sqrt,If=1e-8,H1=1e-4,My=ci(3),uu=1/3,nn=Aa(),Ir=Aa(),So=Aa();function ni(t){return t>-If&&t<If}function $1(t){return t>If||t<-If}function Ut(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function Ey(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function G1(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,d=0;if(ni(f)&&ni(c))if(ni(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var g=c*c-4*f*h;if(ni(g)){var p=c/f,v=-s/o+p,m=-p/2;v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m)}else if(g>0){var _=ci(g),y=f*s+1.5*o*(-c+_),b=f*s+1.5*o*(-c-_);y<0?y=-lu(-y,uu):y=lu(y,uu),b<0?b=-lu(-b,uu):b=lu(b,uu);var v=(-s-(y+b))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var w=(2*f*s-3*o*c)/(2*ci(f*f*f)),S=Math.acos(w)/3,x=ci(f),C=Math.cos(S),v=(-s-2*x*C)/(3*o),m=(-s+x*(C+My*Math.sin(S)))/(3*o),T=(-s+x*(C-My*Math.sin(S)))/(3*o);v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m),T>=0&&T<=1&&(a[d++]=T)}}return d}function U1(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(ni(o)){if($1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(ni(f))i[0]=-a/(2*o);else if(f>0){var c=ci(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Mf(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function JL(t,e,r,n,i,a,o,s,l,u,f){var c,h=.005,d=1/0,v,g,p,m;nn[0]=l,nn[1]=u;for(var _=0;_<1;_+=.05)Ir[0]=Ut(t,r,i,o,_),Ir[1]=Ut(e,n,a,s,_),p=fa(nn,Ir),p<d&&(c=_,d=p);d=1/0;for(var y=0;y<32&&!(h<H1);y++)v=c-h,g=c+h,Ir[0]=Ut(t,r,i,o,v),Ir[1]=Ut(e,n,a,s,v),p=fa(Ir,nn),v>=0&&p<d?(c=v,d=p):(So[0]=Ut(t,r,i,o,g),So[1]=Ut(e,n,a,s,g),m=fa(So,nn),g<=1&&m<d?(c=g,d=m):h*=.5);return ci(d)}function QL(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,h=1/l,d=1;d<=l;d++){var v=d*h,g=Ut(t,r,i,o,v),p=Ut(e,n,a,s,v),m=g-u,_=p-f;c+=Math.sqrt(m*m+_*_),u=g,f=p}return c}function Wt(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Py(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function eR(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(ni(a)){if($1(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(ni(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=ci(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function W1(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function ol(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function tR(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;nn[0]=o,nn[1]=s;for(var h=0;h<1;h+=.05){Ir[0]=Wt(t,r,i,h),Ir[1]=Wt(e,n,a,h);var d=fa(nn,Ir);d<c&&(u=h,c=d)}c=1/0;for(var v=0;v<32&&!(f<H1);v++){var g=u-f,p=u+f;Ir[0]=Wt(t,r,i,g),Ir[1]=Wt(e,n,a,g);var d=fa(Ir,nn);if(g>=0&&d<c)u=g,c=d;else{So[0]=Wt(t,r,i,p),So[1]=Wt(e,n,a,p);var m=fa(So,nn);p<=1&&m<c?(u=p,c=m):f*=.5}}return ci(c)}function rR(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,d=Wt(t,r,i,h),v=Wt(e,n,a,h),g=d-s,p=v-l;u+=Math.sqrt(g*g+p*p),s=d,l=v}return u}var nR=/cubic-bezier\(([0-9,\.e ]+)\)/;function Y1(t){var e=t&&nR.exec(t);if(e){var r=e[1].split(","),n=+an(r[0]),i=+an(r[1]),a=+an(r[2]),o=+an(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:G1(0,n,a,1,l,s)&&Ut(0,i,o,1,s[0])}}}var iR=(function(){function t(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||mt,this.ondestroy=e.ondestroy||mt,this.onrestart=e.onrestart||mt,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Re(e)?e:ks[e]||Y1(e)},t})(),X1=(function(){function t(e){this.value=e}return t})(),aR=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new X1(e);return this.insertEntry(r),r},t.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++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),Ol=(function(){function t(e){this._list=new aR,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new X1(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),Ly={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 hi(t){return t=Math.round(t),t<0?0:t>255?255:t}function oR(t){return t=Math.round(t),t<0?0:t>360?360:t}function Ef(t){return t<0?0:t>1?1:t}function xh(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?hi(parseFloat(e)/100*255):hi(parseInt(e,10))}function ca(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ef(parseFloat(e)/100):Ef(parseFloat(e))}function Th(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function fu(t,e,r){return t+(e-t)*r}function Tr(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function _v(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var K1=new Ol(20),cu=null;function ka(t,e){cu&&_v(cu,e),cu=K1.put(t,cu||e.slice())}function ln(t,e){if(t){e=e||[];var r=K1.get(t);if(r)return _v(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Ly)return _v(e,Ly[n]),ka(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Tr(e,0,0,0,1);return}return Tr(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),ka(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Tr(e,0,0,0,1);return}return Tr(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ka(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Tr(e,+u[0],+u[1],+u[2],1):Tr(e,0,0,0,1);f=ca(u.pop());case"rgb":if(u.length>=3)return Tr(e,xh(u[0]),xh(u[1]),xh(u[2]),u.length===3?f:ca(u[3])),ka(t,e),e;Tr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Tr(e,0,0,0,1);return}return u[3]=ca(u[3]),bv(u,e),ka(t,e),e;case"hsl":if(u.length!==3){Tr(e,0,0,0,1);return}return bv(u,e),ka(t,e),e;default:return}}Tr(e,0,0,0,1)}}function bv(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=ca(t[1]),i=ca(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Tr(e,hi(Th(o,a,r+1/3)*255),hi(Th(o,a,r)*255),hi(Th(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function sR(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?l=h-c:r===a?l=1/3+f-h:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return t[3]!=null&&d.push(t[3]),d}}function Ry(t,e){var r=ln(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return di(r,r.length===4?"rgba":"rgb")}}function Ch(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return r[0]=hi(fu(o[0],s[0],l)),r[1]=hi(fu(o[1],s[1],l)),r[2]=hi(fu(o[2],s[2],l)),r[3]=Ef(fu(o[3],s[3],l)),r}}function Ns(t,e,r,n){var i=ln(t);if(t)return i=sR(i),e!=null&&(i[0]=oR(e)),r!=null&&(i[1]=ca(r)),n!=null&&(i[2]=ca(n)),di(bv(i),"rgba")}function j1(t,e){var r=ln(t);if(r&&e!=null)return r[3]=Ef(e),di(r,"rgba")}function di(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Pf(t,e){var r=ln(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Oy=new Ol(100);function ky(t){if(ue(t)){var e=Oy.get(t);return e||(e=Ry(t,-.1),Oy.put(t,e)),e}else if(Cc(t)){var r=W({},t);return r.colorStops=ke(t.colorStops,function(n){return{offset:n.offset,color:Ry(n.color,-.1)}}),r}return t}function lR(t){return t.type==="linear"}function uR(t){return t.type==="radial"}(function(){return be.hasGlobalWindow&&Re(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var wv=Array.prototype.slice;function bn(t,e,r){return(e-t)*r+t}function Dh(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=bn(e[a],r[a],n);return t}function fR(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=bn(e[o][s],r[o][s],n)}return t}function hu(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function Ny(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function cR(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function hR(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:wv.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Xu(t){if(ar(t)){var e=t.length;if(ar(t[0])){for(var r=[],n=0;n<e;n++)r.push(wv.call(t[n]));return r}return wv.call(t)}return t}function Ku(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function dR(t){return ar(t&&t[0])?2:1}var du=0,ju=1,q1=2,_s=3,Sv=4,xv=5,By=6;function Fy(t){return t===Sv||t===xv}function vu(t){return t===ju||t===q1}var qo=[0,0,0,0],vR=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=By,l=r;if(ar(r)){var u=dR(r);s=u,(u===1&&!st(r[0])||u===2&&!st(r[0][0]))&&(o=!0)}else if(st(r)&&!_L(r))s=du;else if(ue(r))if(!isNaN(+r))s=du;else{var f=ln(r);f&&(l=f,s=_s)}else if(Cc(r)){var c=W({},l);c.colorStops=ke(r.colorStops,function(d){return{offset:d.offset,color:ln(d.color)}}),lR(r)?s=Sv:uR(r)&&(s=xv),l=c}a===0?this.valType=s:(s!==this.valType||s===By)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=Re(n)?n:ks[n]||Y1(n)),i.push(h),h},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=vu(i),u=Fy(i),f=0;f<a;f++){var c=n[f],h=c.value,d=o.value;c.percent=c.time/e,s||(l&&f!==a-1?hR(h,d,i):u&&cR(h.colorStops,d.colorStops))}if(!s&&i!==xv&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,f=0;f<a;f++)i===du?n[f].additiveValue=n[f].value-v:i===_s?n[f].additiveValue=hu([],n[f].value,v,-1):vu(i)&&(n[f].additiveValue=i===ju?hu([],n[f].value,v,-1):Ny([],n[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===_s,f,c=this._lastFr,h=Math.min,d,v;if(s===1)d=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=h(c+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}v=o[f+1],d=o[f]}if(d&&v){this._lastFr=f,this._lastFrP=r;var p=v.percent-d.percent,m=p===0?1:h((r-d.percent)/p,1);v.easingFunc&&(m=v.easingFunc(m));var _=n?this._additiveValue:u?qo:e[l];if((vu(a)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)e[l]=m<1?d.rawValue:v.rawValue;else if(vu(a))a===ju?Dh(_,d[i],v[i],m):fR(_,d[i],v[i],m);else if(Fy(a)){var y=d[i],b=v[i],w=a===Sv;e[l]={type:w?"linear":"radial",x:bn(y.x,b.x,m),y:bn(y.y,b.y,m),colorStops:ke(y.colorStops,function(x,C){var T=b.colorStops[C];return{offset:bn(x.offset,T.offset,m),color:Ku(Dh([],x.color,T.color,m))}}),global:b.global},w?(e[l].x2=bn(y.x2,b.x2,m),e[l].y2=bn(y.y2,b.y2,m)):e[l].r=bn(y.r,b.r,m)}else if(u)Dh(_,d[i],v[i],m),n||(e[l]=Ku(_));else{var S=bn(d[i],v[i],m);n?this._additiveValue=S:e[l]=S}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===du?e[n]=e[n]+i:r===_s?(ln(e[n],qo),hu(qo,qo,i,1),e[n]=Ku(qo)):r===ju?hu(e[n],e[n],i,1):r===q1&&Ny(e[n],e[n],i,1)},t})(),gg=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){ug("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,ot(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new vR(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===_s&&u&&(u=Ku(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Xu(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Xu(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new iR({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var v=r._additiveAnimators;if(v){for(var g=!1,p=0;p<v.length;p++)if(v[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,d);var m=r._onframeCbs;if(m)for(var p=0;p<m.length;p++)m[p](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return ke(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=Xu(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ot(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function lo(){return new Date().getTime()}var pR=(function(t){le(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=lo()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Af(n),!r._paused&&r.update())}Af(n)},e.prototype.start=function(){this._running||(this._time=lo(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=lo(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=lo()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new gg(r,n.loop);return this.addAnimator(i),i},e})(Xr),gR=300,Ah=be.domSupported,Ih=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ke(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),Vy={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},zy=!1;function Tv(t){var e=t.pointerType;return e==="pen"||e==="touch"}function mR(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Mh(t){t&&(t.zrByTouch=!0)}function yR(t,e){return Cr(t.dom,new _R(t,e),!0)}function Z1(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var _R=(function(){function t(e,r){this.stopPropagation=mt,this.stopImmediatePropagation=mt,this.preventDefault=mt,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Br={mousedown:function(t){t=Cr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Cr(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Cr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Cr(this.dom,t);var e=t.toElement||t.relatedTarget;Z1(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){zy=!0,t=Cr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){zy||(t=Cr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Cr(this.dom,t),Mh(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Br.mousemove.call(this,t),Br.mousedown.call(this,t)},touchmove:function(t){t=Cr(this.dom,t),Mh(t),this.handler.processGesture(t,"change"),Br.mousemove.call(this,t)},touchend:function(t){t=Cr(this.dom,t),Mh(t),this.handler.processGesture(t,"end"),Br.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<gR&&Br.click.call(this,t)},pointerdown:function(t){Br.mousedown.call(this,t)},pointermove:function(t){Tv(t)||Br.mousemove.call(this,t)},pointerup:function(t){Br.mouseup.call(this,t)},pointerout:function(t){Tv(t)||Br.mouseout.call(this,t)}};P(["click","dblclick","contextmenu"],function(t){Br[t]=function(e){e=Cr(this.dom,e),this.trigger(t,e)}});var Cv={pointermove:function(t){Tv(t)||Cv.mousemove.call(this,t)},pointerup:function(t){Cv.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function bR(t,e){var r=e.domHandlers;be.pointerEventsSupported?P(Ih.pointer,function(n){qu(e,n,function(i){r[n].call(t,i)})}):(be.touchEventsSupported&&P(Ih.touch,function(n){qu(e,n,function(i){r[n].call(t,i),mR(e)})}),P(Ih.mouse,function(n){qu(e,n,function(i){i=hg(i),e.touching||r[n].call(t,i)})}))}function wR(t,e){be.pointerEventsSupported?P(Vy.pointer,r):be.touchEventsSupported||P(Vy.mouse,r);function r(n){function i(a){a=hg(a),Z1(t,a.target)||(a=yR(t,a),e.domHandlers[n].call(t,a))}qu(e,n,i,{capture:!0})}}function qu(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,VL(t.domTarget,e,r,n)}function Eh(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&zL(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Hy=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),SR=(function(t){le(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Hy(r,Br),Ah&&(i._globalHandlerScope=new Hy(document,Cv)),bR(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Eh(this._localHandlerScope),Ah&&Eh(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Ah&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?wR(this,n):Eh(n)}},e})(Xr),J1=1;be.hasGlobalWindow&&(J1=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Lf=J1,Dv=.4,Av="#333",Iv="#ccc",xR="#eee",$y=dg,Gy=5e-5;function Pi(t){return t>Gy||t<-Gy}var Li=[],Na=[],Ph=fi(),Lh=Math.abs,ta=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Pi(this.rotation)||Pi(this.x)||Pi(this.y)||Pi(this.scaleX-1)||Pi(this.scaleY-1)||Pi(this.skewX)||Pi(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&($y(n),this.invTransform=null);return}n=n||fi(),r?this.getLocalTransform(n):$y(n),e&&(r?wo(n,e,n):k1(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Li);var n=Li[0]<0?-1:1,i=Li[1]<0?-1:1,a=((Li[0]-n)*r+n)/Li[0]||0,o=((Li[1]-i)*r+i)/Li[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||fi(),pg(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||fi(),wo(Na,e.invTransform,r),r=Na);var n=this.originX,i=this.originY;(n||i)&&(Ph[4]=n,Ph[5]=i,wo(Na,r,Ph),Na[4]-=n,Na[5]-=i,r=Na),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&yr(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&yr(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Lh(e[0]-1)>1e-10&&Lh(e[3]-1)>1e-10?Math.sqrt(Lh(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){TR(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var v=n+s,g=i+l;r[4]=-v*a-h*g*o,r[5]=-g*o-d*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&vg(r,r,u),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),sl=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function TR(t,e){for(var r=0;r<sl.length;r++){var n=sl[r];t[n]=e[n]}}var Uy={};function _r(t,e){e=e||ya;var r=Uy[e];r||(r=Uy[e]=new Ol(500));var n=r.get(t);return n==null&&(n=No.measureText(t,e).width,r.put(t,n)),n}function Wy(t,e,r,n){var i=_r(t,e),a=mg(e),o=bs(0,i,r),s=ro(0,a,n),l=new Oe(o,s,i,a);return l}function Q1(t,e,r,n){var i=((t||"")+"").split(`
|
|
38
|
+
`),a=i.length;if(a===1)return Wy(i[0],e,r,n);for(var o=new Oe(0,0,0,0),s=0;s<i.length;s++){var l=Wy(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function bs(t,e,r){return r==="right"?t-=e:r==="center"&&(t-=e/2),t}function ro(t,e,r){return r==="middle"?t-=e/2:r==="bottom"&&(t-=e),t}function mg(t){return _r("国",t)}function ll(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ex(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=ll(n[0],r.width),u+=ll(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Rh="__zr_normal__",Oh=sl.concat(["ignore"]),CR=Bo(sl,function(t,e){return t[e]=!0,t},{ignore:!1}),Ba={},DR=new Oe(0,0,0,0),Ic=(function(){function t(e){this.id=E1(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=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]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=DR;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ba,n,f):ex(Ba,n,f),a.x=Ba.x,a.y=Ba.y,o=Ba.align,s=Ba.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,d=void 0;c==="center"?(h=f.width*.5,d=f.height*.5):(h=ll(c[0],f.width),d=ll(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+d+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,_=void 0,y=void 0;g&&this.canBeInsideText()?(m=n.insideFill,_=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,_=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(m),y=!0)),m=m||"#000",(m!==p.fill||_!==p.stroke||y!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=m,p.stroke=_,p.autoStroke=y,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=vr,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Iv:Av},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ln(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,di(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},W(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(ve(e))for(var n=e,i=ot(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Rh)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Oh)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Rh,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Rh,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!($e(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){ug("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(e,r,n,f),h&&h.useState(e,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vr),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var g=this._textContent,p=this._textGuide;g&&g.useStates(e,r,h),p&&p.useStates(e,r,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vr)}},t.prototype.isSilent=function(){for(var e=this.silent,r=this.parent;!e&&r;){if(r.silent){e=!0;break}r=r.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=$e(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=$e(i,e),o=$e(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];W(r,a),a.textConfig&&(n=n||{},W(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=W({},i?this.textConfig:n.textConfig),W(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Oh.length;f++){var c=Oh[f],h=a&&CR[c];r&&r[c]!=null?h?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var d=this.animators[f],v=d.targetName;d.getLoop()||d.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new ta,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),W(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=vr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new gg(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=$e(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){kh(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){kh(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=kh(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=vr;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),t})();Yr(Ic,Xr);Yr(Ic,ta);function kh(t,e,r,n,i){r=r||{};var a=[];tx(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,g){r.during(g)});for(var h=0;h<a.length;h++){var d=a[h];f&&d.done(f),c&&d.aborted(c),r.force&&d.duration(r.duration),d.start(r.easing)}return a}function Nh(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function AR(t){return ar(t[0])}function IR(t,e,r){if(ar(e[r]))if(ar(t[r])||(t[r]=[]),or(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Nh(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(AR(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Nh(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Nh(a,i,o);a.length=i.length}else t[r]=e[r]}function MR(t,e){return t===e||ar(t)&&ar(e)&&ER(t,e)}function ER(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function tx(t,e,r,n,i,a,o,s){for(var l=ot(n),u=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,d=!ve(a),v=t.animators,g=[],p=0;p<l.length;p++){var m=l[p],_=n[m];if(_!=null&&r[m]!=null&&(d||a[m]))if(ve(_)&&!ar(_)&&!Cc(_)){if(e){s||(r[m]=_,t.updateDuringAnimation(e));continue}tx(t,m,r[m],_,i,a&&a[m],o,s)}else g.push(m);else s||(r[m]=_,t.updateDuringAnimation(e),g.push(m))}var y=g.length;if(!c&&y)for(var b=0;b<v.length;b++){var w=v[b];if(w.targetName===e){var S=w.stopTracks(g);if(S){var x=$e(v,w);v.splice(x,1)}}}if(i.force||(g=dr(g,function(I){return!MR(n[I],r[I])}),y=g.length),y>0||i.force&&!o.length){var C=void 0,T=void 0,D=void 0;if(s){T={},h&&(C={});for(var b=0;b<y;b++){var m=g[b];T[m]=r[m],h?C[m]=n[m]:r[m]=n[m]}}else if(h){D={};for(var b=0;b<y;b++){var m=g[b];D[m]=Xu(r[m]),IR(r,n,m)}}var w=new gg(r,!1,!1,c?dr(v,function(M){return M.targetName===e}):null);w.targetName=e,i.scope&&(w.scope=i.scope),h&&C&&w.whenWithKeys(0,C,g),D&&w.whenWithKeys(0,D,g),w.whenWithKeys(u??500,s?T:n,g).delay(f||0),t.addAnimator(w,e),o.push(w)}}var yt=(function(t){le(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=$e(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=$e(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new Oe(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(Oe.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(Ic);yt.prototype.type="group";/*!
|
|
39
|
+
* ZRender, a high performance 2d drawing library.
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
42
|
+
* All rights reserved.
|
|
43
|
+
*
|
|
44
|
+
* LICENSE
|
|
45
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
46
|
+
*/var Zu={},rx={};function PR(t){delete rx[t]}function LR(t){if(!t)return!1;if(typeof t=="string")return Pf(t,1)<Dv;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Pf(e[i].color,1);return r/=n,r<Dv}return!1}var RR=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new ZL,o=n.renderer||"canvas";Zu[o]||(o=ot(Zu)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Zu[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!be.node&&!be.worker&&!l?new SR(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?be.touchEventsSupported:!!f,h=44,d;c&&(d=Ce(n.pointerSize,h)),this.handler=new F1(a,s,u,s.root,d),this.animation=new pR({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=LR(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=lo();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=lo();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof yt&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,PR(this.id))},t})();function Yy(t,e){var r=new RR(E1(),t,e);return rx[r.id]=r,r}function OR(t,e){Zu[t]=e}var Xy=1e-4,nx=20;function kR(t){return t.replace(/^\s+|\s+$/g,"")}function ba(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}function _t(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return ue(t)?kR(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function ix(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),nx),t=(+t).toFixed(e),+t}function Ky(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return NR(t)}function NR(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function BR(t,e){var r=Math.max(Ky(t),Ky(e)),n=t+e;return r>nx?n:ix(n,r)}var jy=9007199254740991;function ax(t){var e=Math.PI*2;return(t%e+e)%e}function Rf(t){return t>-Xy&&t<Xy}var FR=/^(?:(\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 Mc(t){if(t instanceof Date)return t;if(ue(t)){var e=FR.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function Of(t){var e=parseFloat(t);return e==t&&(e!==0||!ue(t)||t.indexOf("x")<=0)?e:NaN}function VR(t){return!isNaN(Of(t))}function ox(){return Math.round(Math.random()*9)}function sx(t,e){return e===0?t:sx(e,t%e)}function qy(t,e){return t==null?e:e==null?t:t*e/sx(t,e)}function Jt(t){throw new Error(t)}var lx="series\0",zR="\0_ec_\0";function wt(t){return t instanceof Array?t:t==null?[]:[t]}function Mv(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Zy=["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 kl(t){return ve(t)&&!te(t)&&!(t instanceof Date)?t.value:t}function HR(t){return ve(t)&&!(t instanceof Array)}function $R(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=we();P(e,function(l,u){if(!ve(l)){e[u]=null;return}});var s=GR(t,o,r);return(n||i)&&UR(s,t,o,e),n&&WR(s,e),n||i?YR(s,e,i):a&&XR(s,e),KR(s),s}function GR(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||ul(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function UR(t,e,r,n){P(n,function(i,a){if(!(!i||i.id==null)){var o=Bs(i.id),s=r.get(o);if(s!=null){var l=t[s];Wr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function WR(t,e){P(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!ul(r)&&!ul(a)&&ux("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function YR(t,e,r){P(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||ul(i.existing)||i.existing&&n.id!=null&&!ux("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function XR(t,e){P(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function KR(t){var e=we();P(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),P(t,function(r){var n=r.newOption;Wr(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),P(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(ve(a)){if(o.name=a.name!=null?Bs(a.name):i?i.name:lx+n,i)o.id=Bs(i.id);else if(a.id!=null)o.id=Bs(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function ux(t,e,r){var n=nr(e[t],null),i=nr(r[t],null);return n!=null&&i!=null&&n===i}function Bs(t){return nr(t,"")}function nr(t,e){return t==null?e:ue(t)?t:st(t)||cv(t)?t+"":e}function yg(t){var e=t.name;return!!(e&&e.indexOf(lx))}function ul(t){return t&&t.id!=null&&Bs(t.id).indexOf(zR)===0}function jR(t,e,r){P(t,function(n){var i=n.newOption;ve(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=qR(e,i,n.existing,r))})}function qR(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Nl(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return te(e.dataIndex)?ke(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return te(e.name)?ke(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function dt(){var t="__ec_inner_"+ZR++;return function(e){return e[t]||(e[t]={})}}var ZR=ox();function Bh(t,e,r){var n=_g(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=Bl(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function _g(t,e){var r;if(ue(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=we(),a={},o=!1;return P(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&$e(e.includeMainTypes,f)<0)){o=o||!!f;var h=i.get(f)||i.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ra={useDefault:!0,enableAll:!1,enableNone:!1};function Bl(t,e,r,n){n=n||ra;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}return i==="none"||i===!1?(Wr(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Wr(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s)}function fx(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function JR(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function QR(t){return t==="auto"?be.domSupported?"html":"richText":t||"html"}var e2=".",Ri="___EC__COMPONENT__CONTAINER___",cx="___EC__EXTENDED_CLASS___";function on(t){var e={main:"",sub:""};if(t){var r=t.split(e2);e.main=r[0]||"",e.sub=r[1]||""}return e}function t2(t){Wr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function r2(t){return!!(t&&t[cx])}function bg(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return n2(n)?i=(function(a){le(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},gL(i,this)),W(i.prototype,r),i[cx]=!0,i.extend=this.extend,i.superCall=o2,i.superApply=s2,i.superClass=n,i}}function n2(t){return Re(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function hx(t,e){t.extend=e.extend}var i2=Math.round(Math.random()*10);function a2(t){var e=["__\0is_clz",i2++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function o2(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function s2(t,e,r){return this.superClass.prototype[e].apply(t,r)}function wg(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){t2(i),n.prototype.type=i;var a=on(i);if(!a.sub)e[a.main]=n;else if(a.sub!==Ri){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[Ri]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=on(n),a=[],o=e[i.main];return o&&o[Ri]?P(o,function(s,l){l!==Ri&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=on(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return P(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=on(n),a=e[i.main];return a&&a[Ri]};function r(n){var i=e[n.main];return(!i||!i[Ri])&&(i=e[n.main]={},i[Ri]=!0),i}}function Io(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&$e(i,l)>=0||a&&$e(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var l2=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],u2=Io(l2),f2=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return u2(this,e,r)},t})(),Ev=new Ol(50);function c2(t){if(typeof t=="string"){var e=Ev.get(t);return e&&e.image}else return t}function dx(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Ev.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Ec(e)&&a.pending.push(o)):(e=No.loadImage(t,Jy,Jy),e.__zrImageSrc=t,Ev.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Jy(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Ec(t){return t&&t.width&&t.height}var Fh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function h2(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
47
|
+
`);a=vx(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)px(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
|
48
|
+
`),t.isTruncated=s}function vx(t,e,r,n){n=n||{};var i=W({},n);i.font=e,r=Ce(r,"..."),i.maxIterations=Ce(n.maxIterations,2);var a=i.minChar=Ce(n.minChar,0);i.cnCharWidth=_r("国",e);var o=i.ascCharWidth=_r("a",e);i.placeholder=Ce(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<a&&s>=o;l++)s-=o;var u=_r(r,e);return u>s&&(r="",u=0),s=t-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function px(t,e,r){var n=r.containerWidth,i=r.font,a=r.contentWidth;if(!n){t.textLine="",t.isTruncated=!1;return}var o=_r(e,i);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?d2(e,a,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=_r(e,i)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function d2(t,e,r,n){for(var i=0,a=0,o=t.length;a<o&&i<e;a++){var s=t.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function v2(t,e){t!=null&&(t+="");var r=e.overflow,n=e.padding,i=e.font,a=r==="truncate",o=mg(i),s=Ce(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=!1,c=e.width,h;c!=null&&(r==="break"||r==="breakAll")?h=t?gx(t,e.font,c,r==="breakAll",0).lines:[]:h=t?t.split(`
|
|
49
|
+
`):[];var d=h.length*s,v=Ce(e.height,d);if(d>v&&u){var g=Math.floor(v/s);f=f||h.length>g,h=h.slice(0,g)}if(t&&a&&c!=null)for(var p=vx(c,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},_=0;_<h.length;_++)px(m,h[_],p),h[_]=m.textLine,f=f||m.isTruncated;for(var y=v,b=0,_=0;_<h.length;_++)b=Math.max(_r(h[_],i),b);c==null&&(c=b);var w=b;return n&&(y+=n[0]+n[2],w+=n[1]+n[3],c+=n[1]+n[3]),l&&(w=c),{lines:h,height:v,outerWidth:w,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:d,width:c,isTruncated:f}}var p2=(function(){function t(){}return t})(),Qy=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),g2=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function m2(t,e){var r=new g2;if(t!=null&&(t+=""),!t)return r;for(var n=e.width,i=e.height,a=e.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Fh.lastIndex=0,l;(l=Fh.exec(t))!=null;){var u=l.index;u>s&&Vh(r,t.substring(s,u),e,o),Vh(r,l[2],e,o,l[1]),s=Fh.lastIndex}s<t.length&&Vh(r,t.substring(s,t.length),e,o);var f=[],c=0,h=0,d=e.padding,v=a==="truncate",g=e.lineOverflow==="truncate",p={};function m(J,oe,K){J.width=oe,J.lineHeight=K,c+=K,h=Math.max(h,oe)}e:for(var _=0;_<r.lines.length;_++){for(var y=r.lines[_],b=0,w=0,S=0;S<y.tokens.length;S++){var x=y.tokens[S],C=x.styleName&&e.rich[x.styleName]||{},T=x.textPadding=C.padding,D=T?T[1]+T[3]:0,I=x.font=C.font||e.font;x.contentHeight=mg(I);var M=Ce(C.height,x.contentHeight);if(x.innerHeight=M,T&&(M+=T[0]+T[2]),x.height=M,x.lineHeight=ua(C.lineHeight,e.lineHeight,M),x.align=C&&C.align||e.align,x.verticalAlign=C&&C.verticalAlign||"middle",g&&i!=null&&c+x.lineHeight>i){var O=r.lines.length;S>0?(y.tokens=y.tokens.slice(0,S),m(y,w,b),r.lines=r.lines.slice(0,_+1)):r.lines=r.lines.slice(0,_),r.isTruncated=r.isTruncated||r.lines.length<O;break e}var R=C.width,V=R==null||R==="auto";if(typeof R=="string"&&R.charAt(R.length-1)==="%")x.percentWidth=R,f.push(x),x.contentWidth=_r(x.text,I);else{if(V){var N=C.backgroundColor,B=N&&N.image;B&&(B=c2(B),Ec(B)&&(x.width=Math.max(x.width,B.width*M/B.height)))}var F=v&&n!=null?n-w:null;F!=null&&F<x.width?!V||F<D?(x.text="",x.width=x.contentWidth=0):(h2(p,x.text,F-D,I,e.ellipsis,{minChar:e.truncateMinChar}),x.text=p.text,r.isTruncated=r.isTruncated||p.isTruncated,x.width=x.contentWidth=_r(x.text,I)):x.contentWidth=_r(x.text,I)}x.width+=D,w+=x.width,C&&(b=Math.max(b,x.lineHeight))}m(y,w,b)}r.outerWidth=r.width=Ce(n,h),r.outerHeight=r.height=Ce(i,c),r.contentHeight=c,r.contentWidth=h,d&&(r.outerWidth+=d[1]+d[3],r.outerHeight+=d[0]+d[2]);for(var _=0;_<f.length;_++){var x=f[_],G=x.percentWidth;x.width=parseInt(G,10)/100*r.width}return r}function Vh(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(n){var h=o.padding,d=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var v=ll(o.width,n.width)+d;s.length>0&&v+n.accumWidth>n.width&&(f=e.split(`
|
|
50
|
+
`),u=!0),n.accumWidth=v}else{var g=gx(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+d,c=g.linesWidths,f=g.lines}}else f=e.split(`
|
|
51
|
+
`);for(var p=0;p<f.length;p++){var m=f[p],_=new p2;if(_.styleName=i,_.text=m,_.isLineHolder=!m&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[p]:_r(m,l),!p&&!u){var y=(s[s.length-1]||(s[0]=new Qy)).tokens,b=y.length;b===1&&y[0].isLineHolder?y[0]=_:(m||!b||a)&&y.push(_)}else s.push(new Qy([_]))}}function y2(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var _2=Bo(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function b2(t){return y2(t)?!!_2[t]:!0}function gx(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<t.length;c++){var h=t.charAt(c);if(h===`
|
|
52
|
+
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=_r(h,e),v=n?!1:!b2(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Pv="__zr_style_"+Math.round(Math.random()*10),ha={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Pc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ha[Pv]=!0;var e0=["z","z2","invisible"],w2=["invisible"],Vo=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=ot(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&S2(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Oe(0,0,0,0)),n?Oe.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Oe(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:W(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ys,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ys)},e.prototype.styleUpdated=function(){this.__dirty&=~ys},e.prototype.createStyle=function(r){return Dc(ha,r)},e.prototype.useStyle=function(r){r[Pv]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[Pv]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,e0)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=ot(f),h=0;h<c.length;h++){var d=c[h];d in u&&(u[d]=u[d],this.style[d]=f[d])}for(var v=ot(u),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?w2:e0,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return W(r,n),r},e.prototype.getAnimationStyleProps=function(){return Pc},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=vr|ys})(),e})(Ic),zh=new Oe(0,0,0,0),Hh=new Oe(0,0,0,0);function S2(t,e,r){return zh.copy(t.getBoundingRect()),t.transform&&zh.applyTransform(t.transform),Hh.width=e,Hh.height=r,!zh.intersect(Hh)}var Qt=Math.min,er=Math.max,$h=Math.sin,Gh=Math.cos,Oi=Math.PI*2,pu=Aa(),gu=Aa(),mu=Aa();function x2(t,e,r){if(t.length!==0){for(var n=t[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],i=Qt(i,n[0]),a=er(a,n[0]),o=Qt(o,n[1]),s=er(s,n[1]);e[0]=i,e[1]=o,r[0]=a,r[1]=s}}function t0(t,e,r,n,i,a){i[0]=Qt(t,r),i[1]=Qt(e,n),a[0]=er(t,r),a[1]=er(e,n)}var r0=[],n0=[];function T2(t,e,r,n,i,a,o,s,l,u){var f=U1,c=Ut,h=f(t,r,i,o,r0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var v=c(t,r,i,o,r0[d]);l[0]=Qt(v,l[0]),u[0]=er(v,u[0])}h=f(e,n,a,s,n0);for(var d=0;d<h;d++){var g=c(e,n,a,s,n0[d]);l[1]=Qt(g,l[1]),u[1]=er(g,u[1])}l[0]=Qt(t,l[0]),u[0]=er(t,u[0]),l[0]=Qt(o,l[0]),u[0]=er(o,u[0]),l[1]=Qt(e,l[1]),u[1]=er(e,u[1]),l[1]=Qt(s,l[1]),u[1]=er(s,u[1])}function C2(t,e,r,n,i,a,o,s){var l=W1,u=Wt,f=er(Qt(l(t,r,i),1),0),c=er(Qt(l(e,n,a),1),0),h=u(t,r,i,f),d=u(e,n,a,c);o[0]=Qt(t,i,h),o[1]=Qt(e,a,d),s[0]=er(t,i,h),s[1]=er(e,a,d)}function D2(t,e,r,n,i,a,o,s,l){var u=oo,f=so,c=Math.abs(i-a);if(c%Oi<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(pu[0]=Gh(i)*r+t,pu[1]=$h(i)*n+e,gu[0]=Gh(a)*r+t,gu[1]=$h(a)*n+e,u(s,pu,gu),f(l,pu,gu),i=i%Oi,i<0&&(i=i+Oi),a=a%Oi,a<0&&(a=a+Oi),i>a&&!o?a+=Oi:i<a&&o&&(i+=Oi),o){var h=a;a=i,i=h}for(var d=0;d<a;d+=Math.PI/2)d>i&&(mu[0]=Gh(d)*r+t,mu[1]=$h(d)*n+e,u(s,mu,s),f(l,mu,l))}var Ve={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ki=[],Ni=[],qr=[],Hn=[],Zr=[],Jr=[],Uh=Math.min,Wh=Math.max,Bi=Math.cos,Fi=Math.sin,mn=Math.abs,Lv=Math.PI,jn=Lv*2,Yh=typeof Float32Array<"u",Zo=[];function Xh(t){var e=Math.round(t/Lv*1e8)/1e8;return e%2*Lv}function A2(t,e){var r=Xh(t[0]);r<0&&(r+=jn);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=jn?i=r+jn:e&&r-i>=jn?i=r-jn:!e&&r>i?i=r+(jn-Xh(r-i)):e&&r<i&&(i=r-(jn-Xh(i-r))),t[0]=r,t[1]=i}var Mo=(function(){function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=mn(n/Lf/e)||0,this._uy=mn(n/Lf/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ve.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=mn(e-this._xi),i=mn(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Ve.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(Ve.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(Ve.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Zo[0]=i,Zo[1]=a,A2(Zo,o),i=Zo[0],a=Zo[1];var s=a-i;return this.addData(Ve.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Bi(a)*n+e,this._yi=Fi(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(Ve.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ve.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&Yh&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();Yh&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=e[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Yh&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){qr[0]=qr[1]=Zr[0]=Zr[1]=Number.MAX_VALUE,Hn[0]=Hn[1]=Jr[0]=Jr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case Ve.M:r=i=e[o++],n=a=e[o++],Zr[0]=i,Zr[1]=a,Jr[0]=i,Jr[1]=a;break;case Ve.L:t0(r,n,e[o],e[o+1],Zr,Jr),r=e[o++],n=e[o++];break;case Ve.C:T2(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Zr,Jr),r=e[o++],n=e[o++];break;case Ve.Q:C2(r,n,e[o++],e[o++],e[o],e[o+1],Zr,Jr),r=e[o++],n=e[o++];break;case Ve.A:var u=e[o++],f=e[o++],c=e[o++],h=e[o++],d=e[o++],v=e[o++]+d;o+=1;var g=!e[o++];l&&(i=Bi(d)*c+u,a=Fi(d)*h+f),D2(u,f,c,h,d,v,g,Zr,Jr),r=Bi(v)*c+u,n=Fi(v)*h+f;break;case Ve.R:i=r=e[o++],a=n=e[o++];var p=e[o++],m=e[o++];t0(i,a,i+p,a+m,Zr,Jr);break;case Ve.Z:r=i,n=a;break}oo(qr,qr,Zr),so(Hn,Hn,Jr)}return o===0&&(qr[0]=qr[1]=Hn[0]=Hn[1]=0),new Oe(qr[0],qr[1],Hn[0]-qr[0],Hn[1]-qr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,h=0;h<r;){var d=e[h++],v=h===1;v&&(a=e[h],o=e[h+1],s=a,l=o);var g=-1;switch(d){case Ve.M:a=s=e[h++],o=l=e[h++];break;case Ve.L:{var p=e[h++],m=e[h++],_=p-a,y=m-o;(mn(_)>n||mn(y)>i||h===r-1)&&(g=Math.sqrt(_*_+y*y),a=p,o=m);break}case Ve.C:{var b=e[h++],w=e[h++],p=e[h++],m=e[h++],S=e[h++],x=e[h++];g=QL(a,o,b,w,p,m,S,x,10),a=S,o=x;break}case Ve.Q:{var b=e[h++],w=e[h++],p=e[h++],m=e[h++];g=rR(a,o,b,w,p,m,10),a=p,o=m;break}case Ve.A:var C=e[h++],T=e[h++],D=e[h++],I=e[h++],M=e[h++],O=e[h++],R=O+M;h+=1,v&&(s=Bi(M)*D+C,l=Fi(M)*I+T),g=Wh(D,I)*Uh(jn,Math.abs(O)),a=Bi(R)*D+C,o=Fi(R)*I+T;break;case Ve.R:{s=a=e[h++],l=o=e[h++];var V=e[h++],N=e[h++];g=V*2+N*2;break}case Ve.Z:{var _=s-a,y=l-o;g=Math.sqrt(_*_+y*y),a=s,o=l;break}}g>=0&&(u[c++]=g,f+=g)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,d=r<1,v,g,p=0,m=0,_,y=0,b,w;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,_=r*g,!_)))e:for(var S=0;S<o;){var x=n[S++],C=S===1;switch(C&&(u=n[S],f=n[S+1],s=u,l=f),x!==Ve.L&&y>0&&(e.lineTo(b,w),y=0),x){case Ve.M:s=u=n[S++],l=f=n[S++],e.moveTo(u,f);break;case Ve.L:{c=n[S++],h=n[S++];var T=mn(c-u),D=mn(h-f);if(T>i||D>a){if(d){var I=v[m++];if(p+I>_){var M=(_-p)/I;e.lineTo(u*(1-M)+c*M,f*(1-M)+h*M);break e}p+=I}e.lineTo(c,h),u=c,f=h,y=0}else{var O=T*T+D*D;O>y&&(b=c,w=h,y=O)}break}case Ve.C:{var R=n[S++],V=n[S++],N=n[S++],B=n[S++],F=n[S++],G=n[S++];if(d){var I=v[m++];if(p+I>_){var M=(_-p)/I;Mf(u,R,N,F,M,ki),Mf(f,V,B,G,M,Ni),e.bezierCurveTo(ki[1],Ni[1],ki[2],Ni[2],ki[3],Ni[3]);break e}p+=I}e.bezierCurveTo(R,V,N,B,F,G),u=F,f=G;break}case Ve.Q:{var R=n[S++],V=n[S++],N=n[S++],B=n[S++];if(d){var I=v[m++];if(p+I>_){var M=(_-p)/I;ol(u,R,N,M,ki),ol(f,V,B,M,Ni),e.quadraticCurveTo(ki[1],Ni[1],ki[2],Ni[2]);break e}p+=I}e.quadraticCurveTo(R,V,N,B),u=N,f=B;break}case Ve.A:var J=n[S++],oe=n[S++],K=n[S++],Te=n[S++],Ge=n[S++],ze=n[S++],De=n[S++],ut=!n[S++],ye=K>Te?K:Te,ee=mn(K-Te)>.001,me=Ge+ze,q=!1;if(d){var I=v[m++];p+I>_&&(me=Ge+ze*(_-p)/I,q=!0),p+=I}if(ee&&e.ellipse?e.ellipse(J,oe,K,Te,De,Ge,me,ut):e.arc(J,oe,ye,Ge,me,ut),q)break e;C&&(s=Bi(Ge)*K+J,l=Fi(Ge)*Te+oe),u=Bi(me)*K+J,f=Fi(me)*Te+oe;break;case Ve.R:s=u=n[S],l=f=n[S+1],c=n[S++],h=n[S++];var ne=n[S++],A=n[S++];if(d){var I=v[m++];if(p+I>_){var E=_-p;e.moveTo(c,h),e.lineTo(c+Uh(E,ne),h),E-=ne,E>0&&e.lineTo(c+ne,h+Uh(E,A)),E-=A,E>0&&e.lineTo(c+Wh(ne-E,0),h+A),E-=ne,E>0&&e.lineTo(c,h+Wh(A-E,0));break e}p+=I}e.rect(c,h,ne,A);break;case Ve.Z:if(d){var I=v[m++];if(p+I>_){var M=(_-p)/I;e.lineTo(u*(1-M)+s*M,f*(1-M)+l*M);break e}p+=I}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=Ve,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function Fa(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function I2(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>i+c&&u>o+c||u<t-c&&u<r-c&&u<i-c&&u<o-c)return!1;var h=JL(t,e,r,n,i,a,o,s,u,f);return h<=c/2}function M2(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=tR(t,e,r,n,i,a,s,l);return f<=u/2}var i0=Math.PI*2;function yu(t){return t%=i0,t<0&&(t+=i0),t}var Jo=Math.PI*2;function E2(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%Jo<1e-4)return!0;if(a){var c=n;n=yu(i),i=yu(c)}else n=yu(n),i=yu(i);n>i&&(i+=Jo);var h=Math.atan2(l,s);return h<0&&(h+=Jo),h>=n&&h<=i||h+Jo>=n&&h+Jo<=i}function Vi(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var $n=Mo.CMD,zi=Math.PI*2,P2=1e-4;function L2(t,e){return Math.abs(t-e)<P2}var Vt=[-1,-1,-1],Ar=[-1,-1];function R2(){var t=Ar[0];Ar[0]=Ar[1],Ar[1]=t}function O2(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=G1(e,n,a,s,u,Vt);if(f===0)return 0;for(var c=0,h=-1,d=void 0,v=void 0,g=0;g<f;g++){var p=Vt[g],m=p===0||p===1?.5:1,_=Ut(t,r,i,o,p);_<l||(h<0&&(h=U1(e,n,a,s,Ar),Ar[1]<Ar[0]&&h>1&&R2(),d=Ut(e,n,a,s,Ar[0]),h>1&&(v=Ut(e,n,a,s,Ar[1]))),h===2?p<Ar[0]?c+=d<e?m:-m:p<Ar[1]?c+=v<d?m:-m:c+=s<v?m:-m:p<Ar[0]?c+=d<e?m:-m:c+=s<d?m:-m)}return c}function k2(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=eR(e,n,a,s,Vt);if(l===0)return 0;var u=W1(e,n,a);if(u>=0&&u<=1){for(var f=0,c=Wt(e,n,a,u),h=0;h<l;h++){var d=Vt[h]===0||Vt[h]===1?.5:1,v=Wt(t,r,i,Vt[h]);v<o||(Vt[h]<u?f+=c<e?d:-d:f+=a<c?d:-d)}return f}else{var d=Vt[0]===0||Vt[0]===1?.5:1,v=Wt(t,r,i,Vt[0]);return v<o?0:a<e?d:-d}}function N2(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Vt[0]=-l,Vt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=zi-1e-4){n=0,i=zi;var f=a?1:-1;return o>=Vt[0]+t&&o<=Vt[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=zi,i+=zi);for(var h=0,d=0;d<2;d++){var v=Vt[d];if(v+t>o){var g=Math.atan2(s,v),f=a?1:-1;g<0&&(g=zi+g),(g>=n&&g<=i||g+zi>=n&&g+zi<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),h+=f)}}return h}function mx(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,h,d,v=0;v<o;){var g=a[v++],p=v===1;switch(g===$n.M&&v>1&&(r||(s+=Vi(l,u,f,c,n,i))),p&&(l=a[v],u=a[v+1],f=l,c=u),g){case $n.M:f=a[v++],c=a[v++],l=f,u=c;break;case $n.L:if(r){if(Fa(l,u,a[v],a[v+1],e,n,i))return!0}else s+=Vi(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case $n.C:if(r){if(I2(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=O2(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case $n.Q:if(r){if(M2(l,u,a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=k2(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case $n.A:var m=a[v++],_=a[v++],y=a[v++],b=a[v++],w=a[v++],S=a[v++];v+=1;var x=!!(1-a[v++]);h=Math.cos(w)*y+m,d=Math.sin(w)*b+_,p?(f=h,c=d):s+=Vi(l,u,h,d,n,i);var C=(n-m)*b/y+m;if(r){if(E2(m,_,b,w,w+S,x,e,C,i))return!0}else s+=N2(m,_,b,w,w+S,x,C,i);l=Math.cos(w+S)*y+m,u=Math.sin(w+S)*b+_;break;case $n.R:f=l=a[v++],c=u=a[v++];var T=a[v++],D=a[v++];if(h=f+T,d=c+D,r){if(Fa(f,c,h,c,e,n,i)||Fa(h,c,h,d,e,n,i)||Fa(h,d,f,d,e,n,i)||Fa(f,d,f,c,e,n,i))return!0}else s+=Vi(h,c,h,d,n,i),s+=Vi(f,d,f,c,n,i);break;case $n.Z:if(r){if(Fa(l,u,f,c,e,n,i))return!0}else s+=Vi(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!L2(u,c)&&(s+=Vi(l,u,f,c,n,i)||0),s!==0}function B2(t,e,r){return mx(t,0,!1,e,r)}function F2(t,e,r,n){return mx(t,e,!0,r,n)}var yx=rt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ha),V2={style:rt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Pc.style)},Kh=sl.concat(["invisible","culling","z","z2","zlevel","parent"]),Qe=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Kh.length;++s)i[Kh[s]]=this[Kh[s]];i.__dirty|=vr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=ot(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?W(this.style,s):this.useStyle(s):o==="shape"?W(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(ue(r)){var n=Pf(r,0);return n>.5?Av:n>.2?xR:Iv}else if(r)return Iv}return Av},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(ue(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Pf(r,0)<Dv;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~to},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Mo(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&to)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),F2(s,l/u,r,n)))return!0}if(this.hasFill())return B2(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=to,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:W(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&to)},e.prototype.createStyle=function(r){return Dc(yx,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=W({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=W({},i.shape),W(u,n.shape)):(u=W({},a?this.shape:i.shape),W(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=W({},this.shape);for(var f={},c=ot(u),h=0;h<c.length;h++){var d=c[h];typeof u[d]=="object"?this.shape[d]=u[d]:f[d]=u[d]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return V2},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){le(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Ae(r.style)},o.prototype.getDefaultShape=function(){return Ae(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=vr|ys|to})(),e})(Vo),z2=rt({strokeFirst:!0,font:ya,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},yx),kf=(function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return Dc(z2,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Q1(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(Vo);kf.prototype.type="tspan";var H2=rt({x:0,y:0},ha),$2={style:rt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Pc.style)};function G2(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var xi=(function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Dc(H2,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=G2(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return $2},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Oe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Vo);xi.prototype.type="image";function U2(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var uo=Math.round;function _x(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(uo(n*2)===uo(i*2)&&(t.x1=t.x2=na(n,s,!0)),uo(a*2)===uo(o*2)&&(t.y1=t.y2=na(a,s,!0))),t}}function bx(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=na(n,s,!0),t.y=na(i,s,!0),t.width=Math.max(na(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(na(i+o,s,!1)-t.y,o===0?0:1)),t}}function na(t,e,r){if(!e)return t;var n=uo(t*2);return(n+uo(e))%2===0?n/2:(n+(r?1:-1))/2}var W2=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),Y2={},Rt=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new W2},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=bx(Y2,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?U2(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Qe);Rt.prototype.type="rect";var a0={fill:"#000"},o0=2,X2={style:rt({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},Pc.style)},kt=(function(t){le(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=a0,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,J2(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Oe(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||a0},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return W(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=ot(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},W(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return X2},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||ya,i=r.padding,a=d0(r),o=v2(a,r),s=jh(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,d=o.lineHeight,v=this._defaultStyle;this.isTruncated=!!o.isTruncated;var g=r.x||0,p=r.y||0,m=r.align||v.align||"left",_=r.verticalAlign||v.verticalAlign||"top",y=g,b=ro(p,o.contentHeight,_);if(s||i){var w=bs(g,f,m),S=ro(p,u,_);s&&this._renderBackground(r,r,w,S,f,u)}b+=d/2,i&&(y=h0(g,m,i),_==="top"?b+=i[0]:_==="bottom"&&(b-=i[2]));for(var x=0,C=!1,T=c0("fill"in r?r.fill:(C=!0,v.fill)),D=f0("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(x=o0,v.stroke):null),I=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),O=o.calculatedLineHeight,R=0;R<h.length;R++){var V=this._getOrCreateChild(kf),N=V.createStyle();V.useStyle(N),N.text=h[R],N.x=y,N.y=b,N.textAlign=m,N.textBaseline="middle",N.opacity=r.opacity,N.strokeFirst=!0,I&&(N.shadowBlur=r.textShadowBlur||0,N.shadowColor=r.textShadowColor||"transparent",N.shadowOffsetX=r.textShadowOffsetX||0,N.shadowOffsetY=r.textShadowOffsetY||0),N.stroke=D,N.fill=T,D&&(N.lineWidth=r.lineWidth||x,N.lineDash=r.lineDash,N.lineDashOffset=r.lineDashOffset||0),N.font=n,l0(N,r),b+=d,M&&V.setBoundingRect(new Oe(bs(N.x,c,N.textAlign),ro(N.y,O,N.textBaseline),c,O))}},e.prototype._updateRichTexts=function(){var r=this.style,n=d0(r),i=m2(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,h=r.align||c.align,d=r.verticalAlign||c.verticalAlign;this.isTruncated=!!i.isTruncated;var v=bs(u,o,h),g=ro(f,s,d),p=v,m=g;l&&(p+=l[3],m+=l[0]);var _=p+a;jh(r)&&this._renderBackground(r,r,v,g,o,s);for(var y=!!r.backgroundColor,b=0;b<i.lines.length;b++){for(var w=i.lines[b],S=w.tokens,x=S.length,C=w.lineHeight,T=w.width,D=0,I=p,M=_,O=x-1,R=void 0;D<x&&(R=S[D],!R.align||R.align==="left");)this._placeToken(R,r,C,m,I,"left",y),T-=R.width,I+=R.width,D++;for(;O>=0&&(R=S[O],R.align==="right");)this._placeToken(R,r,C,m,M,"right",y),T-=R.width,M-=R.width,O--;for(I+=(a-(I-p)-(_-M)-T)/2;D<=O;)R=S[D],this._placeToken(R,r,C,m,I+R.width/2,"center",y),I+=R.width,D++;m+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&jh(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var d=!!u.backgroundColor,v=r.textPadding;v&&(o=h0(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(kf),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,_=!1,y=0,b=c0("fill"in u?u.fill:"fill"in n?n.fill:(_=!0,m.fill)),w=f0("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!m.autoStroke||_)?(y=o0,m.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,S&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||ya,p.opacity=ua(u.opacity,n.opacity,1),l0(p,u),w&&(p.lineWidth=ua(u.lineWidth,n.lineWidth,y),p.lineDash=Ce(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),b&&(p.fill=b);var x=r.contentWidth,C=r.contentHeight;g.setBoundingRect(new Oe(bs(p.x,x,p.textAlign),ro(p.y,C,p.textBaseline),x,C))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,d=r.borderRadius,v=this,g,p;if(h||r.lineHeight||u&&f){g=this._getOrCreateChild(Rt),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=d,g.dirtyShape()}if(h){var _=g.style;_.fill=l||null,_.fillOpacity=Ce(r.fillOpacity,1)}else if(c){p=this._getOrCreateChild(xi),p.onload=function(){v.dirtyStyle()};var y=p.style;y.image=l.image,y.x=i,y.y=a,y.width=o,y.height=s}if(u&&f){var _=g.style;_.lineWidth=u,_.stroke=f,_.strokeOpacity=Ce(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var b=(g||p).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=ua(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return Z2(r)&&(n=[r.fontStyle,r.fontWeight,q2(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&an(n)||r.textFont||r.font},e})(Vo),K2={left:!0,right:1,center:1},j2={top:1,bottom:1,middle:1},s0=["fontStyle","fontWeight","fontSize","fontFamily"];function q2(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?og+"px":t+"px"}function l0(t,e){for(var r=0;r<s0.length;r++){var n=s0[r],i=e[n];i!=null&&(t[n]=i)}}function Z2(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function J2(t){return u0(t),P(t.rich,u0),t}function u0(t){if(t){t.font=kt.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||K2[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||j2[r]?r:"top";var n=t.padding;n&&(t.padding=cg(t.padding))}}function f0(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function c0(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function h0(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function d0(t){var e=t.text;return e!=null&&(e+=""),e}function jh(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Fe=dt(),Q2=function(t,e,r,n){if(n){var i=Fe(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Fe(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},v0=1,p0={},Sx=dt(),Sg=dt(),xx=0,xg=1,Tg=2,fn=["emphasis","blur","select"],g0=["normal","emphasis","blur","select"],Fl=10,eO=9,da="highlight",Ju="downplay",Fs="select",Qu="unselect",Vs="toggleSelect";function Va(t){return t!=null&&t!=="none"}function Lc(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Tx(t){Lc(t,"emphasis",Tg)}function Cx(t){t.hoverState===Tg&&Lc(t,"normal",xx)}function Cg(t){Lc(t,"blur",xg)}function Dx(t){t.hoverState===xg&&Lc(t,"normal",xx)}function tO(t){t.selected=!0}function rO(t){t.selected=!1}function m0(t,e,r){e(t,r)}function Nn(t,e,r){m0(t,e,r),t.isGroup&&t.traverse(function(n){m0(n,e,r)})}function nO(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function iO(t,e,r,n){var i=r&&$e(r,"select")>=0,a=!1;if(t instanceof Qe){var o=Sx(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Va(s)||Va(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=W({},n),u=W({},u),u.fill=s):!Va(u.fill)&&Va(s)?(a=!0,n=W({},n),u=W({},u),u.fill=ky(s)):!Va(u.stroke)&&Va(l)&&(a||(n=W({},n),u=W({},u)),u.stroke=ky(l)),n.style=u}}if(n&&n.z2==null){a||(n=W({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??Fl)}return n}function aO(t,e,r){if(r&&r.z2==null){r=W({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??eO)}return r}function oO(t,e,r){var n=$e(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:nO(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=W({},r),o=W({opacity:n?i:a.opacity*.1},o),r.style=o),r}function qh(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return iO(this,t,e,r);if(t==="blur")return oO(this,t,r);if(t==="select")return aO(this,t,r)}return r}function Rv(t){t.stateProxy=qh;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=qh),r&&(r.stateProxy=qh)}function y0(t,e){!Ex(t,e)&&!t.__highByOuter&&Nn(t,Tx)}function _0(t,e){!Ex(t,e)&&!t.__highByOuter&&Nn(t,Cx)}function fl(t,e){t.__highByOuter|=1<<(e||0),Nn(t,Tx)}function cl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Nn(t,Cx)}function sO(t){Nn(t,Cg)}function Ax(t){Nn(t,Dx)}function Ix(t){Nn(t,tO)}function Mx(t){Nn(t,rO)}function Ex(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Px(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Sg(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Dx(u)}),s&&r.push(a)),o.isBlured=!1}),P(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Ov(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&Ax(h)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||e==="series"&&f)){var d=n.getViewOfSeriesModel(u);if(d.group.traverse(function(p){p.__highByOuter&&f&&e==="self"||Cg(p)}),ar(e))a(u.getData(),e);else if(ve(e))for(var v=ot(e),g=0;g<v.length;g++)a(u.getData(v[g]),e[v[g]]);l.push(u),Sg(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function kv(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Sg(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Cg(a)})}}}function lO(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Nl(i,e);a=(te(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=Fe(o);Ov(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Ov(n,f,c,r)}}}function Dg(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(Fe(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function uO(t,e,r){var n=Fe(t),i=Dg(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&kv(n.componentMainType,n.componentIndex,r),P(a,function(s){return y0(s,e)})):(Ov(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&kv(n.componentMainType,n.componentIndex,r),y0(t,e))}function fO(t,e,r){Px(r);var n=Fe(t),i=Dg(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?P(i,function(a){return _0(a,e)}):_0(t,e)}function cO(t,e,r){if(Fv(e)){var n=e.dataType,i=t.getData(n),a=Nl(i,e);te(a)||(a=[a]),t[e.type===Vs?"toggleSelect":e.type===Fs?"select":"unselect"](a,n)}}function b0(t){var e=t.getAllData();P(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?Ix(a):Mx(a)})})}function hO(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();P(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Nv(t,e,r){fo(t,!0),Nn(t,Rv),Bv(t,e,r)}function dO(t){fo(t,!1)}function Ag(t,e,r,n){n?dO(t):Nv(t,e,r)}function Bv(t,e,r){var n=Fe(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}function fo(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function hl(t){return!!(t&&t.__highDownDispatcher)}function vO(t){var e=p0[t];return e==null&&v0<=32&&(e=p0[t]=v0++),e}function Fv(t){var e=t.type;return e===Fs||e===Qu||e===Vs}function w0(t){var e=t.type;return e===da||e===Ju}function pO(t){var e=Sx(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var za=Mo.CMD,gO=[[],[],[]],S0=Math.sqrt,mO=Math.atan2;function yO(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=za.M,c=za.C,h=za.L,d=za.R,v=za.A,g=za.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case g:a=2;break;case v:var p=e[4],m=e[5],_=S0(e[0]*e[0]+e[1]*e[1]),y=S0(e[2]*e[2]+e[3]*e[3]),b=mO(-e[1]/y,e[0]/_);r[o]*=_,r[o++]+=p,r[o]*=y,r[o++]+=m,r[o++]*=_,r[o++]*=y,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case d:u[0]=r[o++],u[1]=r[o++],yr(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],yr(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var w=gO[l];w[0]=r[o++],w[1]=r[o++],yr(w,w,e),r[s++]=w[0],r[s++]=w[1]}}t.increaseVersion()}}var Zh=Math.sqrt,_u=Math.sin,bu=Math.cos,Qo=Math.PI;function x0(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Vv(t,e){return(t[0]*e[0]+t[1]*e[1])/(x0(t)*x0(e))}function T0(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Vv(t,e))}function C0(t,e,r,n,i,a,o,s,l,u,f){var c=l*(Qo/180),h=bu(c)*(t-r)/2+_u(c)*(e-n)/2,d=-1*_u(c)*(t-r)/2+bu(c)*(e-n)/2,v=h*h/(o*o)+d*d/(s*s);v>1&&(o*=Zh(v),s*=Zh(v));var g=(i===a?-1:1)*Zh((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,p=g*o*d/s,m=g*-s*h/o,_=(t+r)/2+bu(c)*p-_u(c)*m,y=(e+n)/2+_u(c)*p+bu(c)*m,b=T0([1,0],[(h-p)/o,(d-m)/s]),w=[(h-p)/o,(d-m)/s],S=[(-1*h-p)/o,(-1*d-m)/s],x=T0(w,S);if(Vv(w,S)<=-1&&(x=Qo),Vv(w,S)>=1&&(x=0),x<0){var C=Math.round(x/Qo*1e6)/1e6;x=Qo*2+C%2*Qo}f.addData(u,_,y,o,s,b,x,c,a)}var _O=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,bO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function wO(t){var e=new Mo;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Mo.CMD,l=t.match(_O);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,d=f.match(bO)||[],v=d.length,g=0;g<v;g++)d[g]=parseFloat(d[g]);for(var p=0;p<v;){var m=void 0,_=void 0,y=void 0,b=void 0,w=void 0,S=void 0,x=void 0,C=r,T=n,D=void 0,I=void 0;switch(c){case"l":r+=d[p++],n+=d[p++],h=s.L,e.addData(h,r,n);break;case"L":r=d[p++],n=d[p++],h=s.L,e.addData(h,r,n);break;case"m":r+=d[p++],n+=d[p++],h=s.M,e.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=d[p++],n=d[p++],h=s.M,e.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=d[p++],h=s.L,e.addData(h,r,n);break;case"H":r=d[p++],h=s.L,e.addData(h,r,n);break;case"v":n+=d[p++],h=s.L,e.addData(h,r,n);break;case"V":n=d[p++],h=s.L,e.addData(h,r,n);break;case"C":h=s.C,e.addData(h,d[p++],d[p++],d[p++],d[p++],d[p++],d[p++]),r=d[p-2],n=d[p-1];break;case"c":h=s.C,e.addData(h,d[p++]+r,d[p++]+n,d[p++]+r,d[p++]+n,d[p++]+r,d[p++]+n),r+=d[p-2],n+=d[p-1];break;case"S":m=r,_=n,D=e.len(),I=e.data,o===s.C&&(m+=r-I[D-4],_+=n-I[D-3]),h=s.C,C=d[p++],T=d[p++],r=d[p++],n=d[p++],e.addData(h,m,_,C,T,r,n);break;case"s":m=r,_=n,D=e.len(),I=e.data,o===s.C&&(m+=r-I[D-4],_+=n-I[D-3]),h=s.C,C=r+d[p++],T=n+d[p++],r+=d[p++],n+=d[p++],e.addData(h,m,_,C,T,r,n);break;case"Q":C=d[p++],T=d[p++],r=d[p++],n=d[p++],h=s.Q,e.addData(h,C,T,r,n);break;case"q":C=d[p++]+r,T=d[p++]+n,r+=d[p++],n+=d[p++],h=s.Q,e.addData(h,C,T,r,n);break;case"T":m=r,_=n,D=e.len(),I=e.data,o===s.Q&&(m+=r-I[D-4],_+=n-I[D-3]),r=d[p++],n=d[p++],h=s.Q,e.addData(h,m,_,r,n);break;case"t":m=r,_=n,D=e.len(),I=e.data,o===s.Q&&(m+=r-I[D-4],_+=n-I[D-3]),r+=d[p++],n+=d[p++],h=s.Q,e.addData(h,m,_,r,n);break;case"A":y=d[p++],b=d[p++],w=d[p++],S=d[p++],x=d[p++],C=r,T=n,r=d[p++],n=d[p++],h=s.A,C0(C,T,r,n,S,x,y,b,w,h,e);break;case"a":y=d[p++],b=d[p++],w=d[p++],S=d[p++],x=d[p++],C=r,T=n,r+=d[p++],n+=d[p++],h=s.A,C0(C,T,r,n,S,x,y,b,w,h,e);break}}(c==="z"||c==="Z")&&(h=s.Z,e.addData(h),r=i,n=a),o=h}return e.toStatic(),e}var Lx=(function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(Qe);function Rx(t){return t.setData!=null}function Ox(t,e){var r=wO(t),n=W({},e);return n.buildPath=function(i){if(Rx(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){yO(r,i),this.dirtyShape()},n}function SO(t,e){return new Lx(Ox(t,e))}function xO(t,e){var r=Ox(t,e),n=(function(i){le(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(Lx);return n}function TO(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Qe(e);return o.createPathProxy(),o.buildPath=function(s){if(Rx(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var CO=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),Rc=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new CO},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(Qe);Rc.prototype.type="circle";var DO=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),Ig=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new DO},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(Qe);Ig.prototype.type="ellipse";var kx=Math.PI,Jh=kx*2,Hi=Math.sin,Ha=Math.cos,AO=Math.acos,Dt=Math.atan2,D0=Math.abs,zs=Math.sqrt,ws=Math.max,Qr=Math.min,Nr=1e-4;function IO(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<Nr))return h=(f*(e-a)-c*(t-i))/h,[t+h*l,e+h*u]}function wu(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/zs(s*s+l*l),f=u*l,c=-u*s,h=t+f,d=e+c,v=r+f,g=n+c,p=(h+v)/2,m=(d+g)/2,_=v-h,y=g-d,b=_*_+y*y,w=i-a,S=h*g-v*d,x=(y<0?-1:1)*zs(ws(0,w*w*b-S*S)),C=(S*y-_*x)/b,T=(-S*_-y*x)/b,D=(S*y+_*x)/b,I=(-S*_+y*x)/b,M=C-p,O=T-m,R=D-p,V=I-m;return M*M+O*O>R*R+V*V&&(C=D,T=I),{cx:C,cy:T,x0:-f,y0:-c,x1:C*(i/w-1),y1:T*(i/w-1)}}function MO(t){var e;if(te(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function EO(t,e){var r,n=ws(e.r,0),i=ws(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,h=!!e.clockwise,d=D0(u-l),v=d>Jh&&d%Jh;if(v>Nr&&(d=v),!(n>Nr))t.moveTo(f,c);else if(d>Jh-Nr)t.moveTo(f+n*Ha(l),c+n*Hi(l)),t.arc(f,c,n,l,u,!h),i>Nr&&(t.moveTo(f+i*Ha(u),c+i*Hi(u)),t.arc(f,c,i,u,l,h));else{var g=void 0,p=void 0,m=void 0,_=void 0,y=void 0,b=void 0,w=void 0,S=void 0,x=void 0,C=void 0,T=void 0,D=void 0,I=void 0,M=void 0,O=void 0,R=void 0,V=n*Ha(l),N=n*Hi(l),B=i*Ha(u),F=i*Hi(u),G=d>Nr;if(G){var J=e.cornerRadius;J&&(r=MO(J),g=r[0],p=r[1],m=r[2],_=r[3]);var oe=D0(n-i)/2;if(y=Qr(oe,m),b=Qr(oe,_),w=Qr(oe,g),S=Qr(oe,p),T=x=ws(y,b),D=C=ws(w,S),(x>Nr||C>Nr)&&(I=n*Ha(u),M=n*Hi(u),O=i*Ha(l),R=i*Hi(l),d<kx)){var K=IO(V,N,O,R,I,M,B,F);if(K){var Te=V-K[0],Ge=N-K[1],ze=I-K[0],De=M-K[1],ut=1/Hi(AO((Te*ze+Ge*De)/(zs(Te*Te+Ge*Ge)*zs(ze*ze+De*De)))/2),ye=zs(K[0]*K[0]+K[1]*K[1]);T=Qr(x,(n-ye)/(ut+1)),D=Qr(C,(i-ye)/(ut-1))}}}if(!G)t.moveTo(f+V,c+N);else if(T>Nr){var ee=Qr(m,T),me=Qr(_,T),q=wu(O,R,V,N,n,ee,h),ne=wu(I,M,B,F,n,me,h);t.moveTo(f+q.cx+q.x0,c+q.cy+q.y0),T<x&&ee===me?t.arc(f+q.cx,c+q.cy,T,Dt(q.y0,q.x0),Dt(ne.y0,ne.x0),!h):(ee>0&&t.arc(f+q.cx,c+q.cy,ee,Dt(q.y0,q.x0),Dt(q.y1,q.x1),!h),t.arc(f,c,n,Dt(q.cy+q.y1,q.cx+q.x1),Dt(ne.cy+ne.y1,ne.cx+ne.x1),!h),me>0&&t.arc(f+ne.cx,c+ne.cy,me,Dt(ne.y1,ne.x1),Dt(ne.y0,ne.x0),!h))}else t.moveTo(f+V,c+N),t.arc(f,c,n,l,u,!h);if(!(i>Nr)||!G)t.lineTo(f+B,c+F);else if(D>Nr){var ee=Qr(g,D),me=Qr(p,D),q=wu(B,F,I,M,i,-me,h),ne=wu(V,N,O,R,i,-ee,h);t.lineTo(f+q.cx+q.x0,c+q.cy+q.y0),D<C&&ee===me?t.arc(f+q.cx,c+q.cy,D,Dt(q.y0,q.x0),Dt(ne.y0,ne.x0),!h):(me>0&&t.arc(f+q.cx,c+q.cy,me,Dt(q.y0,q.x0),Dt(q.y1,q.x1),!h),t.arc(f,c,i,Dt(q.cy+q.y1,q.cx+q.x1),Dt(ne.cy+ne.y1,ne.cx+ne.x1),h),ee>0&&t.arc(f+ne.cx,c+ne.cy,ee,Dt(ne.y1,ne.x1),Dt(ne.y0,ne.x0),!h))}else t.lineTo(f+B,c+F),t.arc(f,c,i,u,l,h)}t.closePath()}}}var PO=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),Mg=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new PO},e.prototype.buildPath=function(r,n){EO(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Qe);Mg.prototype.type="sector";var LO=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),Eg=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new LO},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(Qe);Eg.prototype.type="ring";function RO(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,d=t.length;h<d;h++)oo(f,f,t[h]),so(c,c,t[h]);oo(f,f,n[0]),so(c,c,n[1])}for(var h=0,d=t.length;h<d;h++){var v=t[h];if(r)l=t[h?h-1:d-1],u=t[(h+1)%d];else if(h===0||h===d-1){i.push(Cn(t[h]));continue}else l=t[h-1],u=t[h+1];ea(a,u,l),Wu(a,a,e);var g=pv(v,l),p=pv(v,u),m=g+p;m!==0&&(g/=m,p/=m),Wu(o,a,-g),Wu(s,a,p);var _=yy([],v,o),y=yy([],v,s);n&&(so(_,_,f),oo(_,_,c),so(y,y,f),oo(y,y,c)),i.push(_),i.push(y)}return r&&i.push(i.shift()),i}function Nx(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=RO(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var OO=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Oc=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new OO},e.prototype.buildPath=function(r,n){Nx(r,n,!0)},e})(Qe);Oc.prototype.type="polygon";var kO=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),Pg=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kO},e.prototype.buildPath=function(r,n){Nx(r,n,!1)},e})(Qe);Pg.prototype.type="polyline";var NO={},BO=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Ia=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new BO},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=_x(NO,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(Qe);Ia.prototype.type="line";var Kt=[],FO=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function A0(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?Ey:Ut)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Ey:Ut)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Py:Wt)(t.x1,t.cpx1,t.x2,e),(r?Py:Wt)(t.y1,t.cpy1,t.y2,e)]}var kc=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new FO},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),f==null||c==null?(h<1&&(ol(i,l,o,h,Kt),l=Kt[1],o=Kt[2],ol(a,u,s,h,Kt),u=Kt[1],s=Kt[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(Mf(i,l,f,o,h,Kt),l=Kt[1],f=Kt[2],o=Kt[3],Mf(a,u,c,s,h,Kt),u=Kt[1],c=Kt[2],s=Kt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return A0(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=A0(this.shape,r,!0);return Fo(n,n)},e})(Qe);kc.prototype.type="bezier-curve";var VO=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Nc=(function(t){le(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new VO},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},e})(Qe);Nc.prototype.type="arc";var zO=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Qe.prototype.getBoundingRect.call(this)},e})(Qe),Bx=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),HO=(function(t){le(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(Bx),$O=(function(t){le(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(Bx),$i=[0,0],Gi=[0,0],Su=new Ye,xu=new Ye,Nf=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ye;for(var n=0;n<2;n++)this._axes[n]=new Ye;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);Ye.sub(i[0],n[1],n[0]),Ye.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r){var n=!0,i=!r;return Su.set(1/0,1/0),xu.set(0,0),!this._intersectCheckOneSide(this,e,Su,xu,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,Su,xu,i,-1)&&(n=!1,i)||i||Ye.copy(r,n?Su:xu),n},t.prototype._intersectCheckOneSide=function(e,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,$i),this._getProjMinMaxOnAxis(l,r._corners,Gi),$i[1]<Gi[0]||$i[0]>Gi[1]){if(s=!1,a)return s;var f=Math.abs(Gi[0]-$i[1]),c=Math.abs($i[0]-Gi[1]);Math.min(f,c)>i.len()&&(f<c?Ye.scale(i,u,-f*o):Ye.scale(i,u,c*o))}else if(n){var f=Math.abs(Gi[0]-$i[1]),c=Math.abs($i[0]-Gi[1]);Math.min(f,c)<n.len()&&(f<c?Ye.scale(n,u,f*o):Ye.scale(n,u,-c*o))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},t})(),GO=[],UO=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Oe(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(GO)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(Vo),WO=dt();function YO(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=Ce(n.duration,200),f=Ce(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),Re(c)&&(c=c(r,i)),Re(u)&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function Lg(t,e,r,n,i,a,o){var s=!1,l;Re(i)?(o=a,a=i,i=null):ve(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=YO(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,d=f.easing,v={duration:c,delay:h||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ti(t,e,r,n,i,a){Lg("update",t,e,r,n,i,a)}function Rg(t,e,r,n,i,a){Lg("enter",t,e,r,n,i,a)}function Hs(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Bf(t,e,r,n,i,a){Hs(t)||Lg("leave",t,e,r,n,i,a)}function I0(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),Bf(t,{style:{opacity:0}},e,r,n)}function XO(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||I0(i,e,r,n)}):I0(t,e,r,n)}function KO(t){WO(t).oldStyle=t.style}var Ff=Math.max,Vf=Math.min,zv={};function jO(t){return Qe.extend(t)}var qO=xO;function ZO(t,e){return qO(t,e)}function Kr(t,e){zv[t]=e}function JO(t){if(zv.hasOwnProperty(t))return zv[t]}function Og(t,e,r,n){var i=SO(t,e);return r&&(n==="center"&&(r=Vx(r,i.getBoundingRect())),zx(i,r)),i}function Fx(t,e,r){var n=new xi({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(Vx(e,a))}}});return n}function Vx(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var QO=TO;function zx(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function kg(t,e){return _x(t,t,{lineWidth:e}),t}function ek(t){return bx(t.shape,t.shape,t.style),t}var tk=na;function rk(t,e){for(var r=dg([]);t&&t!==e;)wo(r,t.getLocalTransform(),r),t=t.parent;return r}function Ng(t,e,r){return e&&!ar(e)&&(e=ta.getLocalTransform(e)),r&&(e=pg([],e)),yr([],t,e)}function nk(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=Ng(a,e,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function M0(t){return!t.isGroup}function ik(t){return t.shape!=null}function ak(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){M0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ik(o)&&(s.shape=W({},o.shape)),s}var a=n(t);e.traverse(function(o){if(M0(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ti(o,l,r,Fe(o).dataIndex)}}})}function ok(t,e){return ke(t,function(r){var n=r[0];n=Ff(n,e.x),n=Vf(n,e.x+e.width);var i=r[1];return i=Ff(i,e.y),i=Vf(i,e.y+e.height),[n,i]})}function sk(t,e){var r=Ff(t.x,e.x),n=Vf(t.x+t.width,e.x+e.width),i=Ff(t.y,e.y),a=Vf(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Bg(t,e,r){var n=W({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),rt(i,r),new xi(n)):Og(t.replace("path://",""),n,r,"center")}function lk(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Hx(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Hx(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,h=Qh(f,c,l,u);if(uk(h))return!1;var d=t-i,v=e-a,g=Qh(d,v,l,u)/h;if(g<0||g>1)return!1;var p=Qh(d,v,f,c)/h;return!(p<0||p>1)}function Qh(t,e,r,n){return t*n-r*e}function uk(t){return t<=1e-6&&t>=-1e-6}function Bc(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=ue(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&P(ot(l),function(f){_a(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Fe(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:rt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function E0(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Fc(t,e){if(t)if(te(t))for(var r=0;r<t.length;r++)E0(t[r],e);else E0(t,e)}Kr("circle",Rc);Kr("ellipse",Ig);Kr("sector",Mg);Kr("ring",Eg);Kr("polygon",Oc);Kr("polyline",Pg);Kr("rect",Rt);Kr("line",Ia);Kr("bezierCurve",kc);Kr("arc",Nc);const fk=Object.freeze(Object.defineProperty({__proto__:null,Arc:Nc,BezierCurve:kc,BoundingRect:Oe,Circle:Rc,CompoundPath:zO,Ellipse:Ig,Group:yt,Image:xi,IncrementalDisplayable:UO,Line:Ia,LinearGradient:HO,OrientedBoundingRect:Nf,Path:Qe,Point:Ye,Polygon:Oc,Polyline:Pg,RadialGradient:$O,Rect:Rt,Ring:Eg,Sector:Mg,Text:kt,applyTransform:Ng,clipPointsByRect:ok,clipRectByRect:sk,createIcon:Bg,extendPath:ZO,extendShape:jO,getShapeClass:JO,getTransform:rk,groupTransition:ak,initProps:Rg,isElementRemoved:Hs,lineLineIntersect:Hx,linePolygonIntersect:lk,makeImage:Fx,makePath:Og,mergePath:QO,registerShape:Kr,removeElement:Bf,removeElementWithFadeOut:XO,resizePath:zx,setTooltipConfig:Bc,subPixelOptimize:tk,subPixelOptimizeLine:kg,subPixelOptimizeRect:ek,transformDirection:nk,traverseElements:Fc,updateProps:Ti},Symbol.toStringTag,{value:"Module"}));var Vc={};function ck(t,e){for(var r=0;r<fn.length;r++){var n=fn[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function P0(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Re(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<fn.length;u++){var f=fn[u],c=e[f];l[f]=Ce(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function zc(t,e,r,n){r=r||Vc;for(var i=t instanceof kt,a=!1,o=0;o<g0.length;o++){var s=e[g0[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new kt,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=P0(r,e),f=e.normal,c=!!f.getShallow("show"),h=cn(f,n,r,!1,!i);h.text=u.normal,i||t.setTextConfig(L0(f,r,!1));for(var o=0;o<fn.length;o++){var d=fn[o],s=e[d];if(s){var v=l.ensureState(d),g=!!Ce(s.getShallow("show"),c);if(g!==c&&(v.ignore=!g),v.style=cn(s,n,r,!0,!i),v.style.text=u[d],!i){var p=t.ensureState(d);p.textConfig=L0(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),r.enableTextSetter&&(pk(l).setLabelText=function(m){var _=P0(r,e,m);ck(l,_)})}else l&&(l.ignore=!0);t.dirty()}function Vl(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<fn.length;n++){var i=fn[n];r[i]=t.getModel([i,e])}return r}function cn(t,e,r,n,i){var a={};return hk(a,t,r,n,i),e&&W(a,e),a}function L0(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=Ce(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",n}function hk(t,e,r,n,i){r=r||Vc;var a=e.ecModel,o=a&&a.option.textStyle,s=dk(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);N0(l[u]={},f,o,r,n,i,!1,!0)}}l&&(t.rich=l);var c=e.get("overflow");c&&(t.overflow=c);var h=e.get("minMargin");h!=null&&(t.margin=h),N0(t,e,o,r,n,i,!0,!1)}function dk(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Vc).rich;if(r){e=e||{};for(var n=ot(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var R0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],O0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],k0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function N0(t,e,r,n,i,a,o,s){r=!i&&r||Vc;var l=n&&n.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),c=Ce(e.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(t.fill=u),f!=null&&(t.stroke=f);var h=Ce(e.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(t.lineWidth=h);var d=Ce(e.getShallow("textBorderType"),r.textBorderType);d!=null&&(t.lineDash=d);var v=Ce(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(t.lineDashOffset=v),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(t.opacity=c),!i&&!a&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var g=0;g<R0.length;g++){var p=R0[g],m=Ce(e.getShallow(p),r[p]);m!=null&&(t[p]=m)}for(var g=0;g<O0.length;g++){var p=O0[g],m=e.getShallow(p);m!=null&&(t[p]=m)}if(t.verticalAlign==null){var _=e.getShallow("baseline");_!=null&&(t.verticalAlign=_)}if(!o||!n.disableBox){for(var g=0;g<k0.length;g++){var p=k0[g],m=e.getShallow(p);m!=null&&(t[p]=m)}var y=e.getShallow("borderType");y!=null&&(t.borderDash=y),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor=l)}}function vk(t,e){var r=e&&e.getModel("textStyle");return an([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var pk=dt(),gk=["textStyle","color"],ed=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],td=new kt,mk=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(gk):null)},t.prototype.getFont=function(){return vk({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ed.length;n++)r[ed[n]]=this.getShallow(ed[n]);return td.useStyle(r),td.update(),td.getBoundingRect()},t})(),$x=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],yk=Io($x),_k=(function(){function t(){}return t.prototype.getLineStyle=function(e){return yk(this,e)},t})(),Gx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],bk=Io(Gx),wk=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return bk(this,e,r)},t})(),Ze=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){at(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Ae(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!be.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();bg(Ze);a2(Ze);Yr(Ze,_k);Yr(Ze,wk);Yr(Ze,f2);Yr(Ze,mk);var Sk=Math.round(Math.random()*10);function Hc(t){return[t||"",Sk++].join("_")}function xk(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=on(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=on(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function Tk(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(P(a,function(_){h[_]=!0});c.length;){var d=c.pop(),v=f[d],g=!!h[d];g&&(s.call(l,d,v.originalDeps.slice()),delete h[d]),P(v.successor,g?m:p)}P(h,function(){var _="";throw new Error(_)});function p(_){f[_].entryCount--,f[_].entryCount===0&&c.push(_)}function m(_){h[_]=!0,p(_)}};function r(a){var o={},s=[];return P(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),P(c,function(h){$e(u.predecessor,h)<0&&u.predecessor.push(h);var d=n(o,h);$e(d.successor,h)<0&&d.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return P(a,function(l){$e(o,l)>=0&&s.push(l)}),s}}function Ck(t,e){return at(at({},t,!0),e,!0)}const Dk={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Ak={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var zf="ZH",Fg="EN",xo=Fg,ef={},Vg={},Ux=be.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||xo).toUpperCase();return t.indexOf(zf)>-1?zf:xo})():xo;function Wx(t,e){t=t.toUpperCase(),Vg[t]=new Ze(e),ef[t]=e}function Ik(t){if(ue(t)){var e=ef[t.toUpperCase()]||{};return t===zf||t===Fg?Ae(e):at(Ae(e),Ae(ef[xo]),!1)}else return at(Ae(t),Ae(ef[xo]),!1)}function Mk(t){return Vg[t]}function Ek(){return Vg[xo]}Wx(Fg,Dk);Wx(zf,Ak);function Gn(t,e){return t+="","0000".substr(0,e-t.length)+t}function Yx(t,e,r,n){var i=Mc(t),a=i[Pk(r)](),o=i[Lk(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Rk(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[Ok(r)](),c=(f-1)%12+1,h=i[kk(r)](),d=i[Nk(r)](),v=i[Bk(r)](),g=f>=12?"pm":"am",p=g.toUpperCase(),m=n instanceof Ze?n:Mk(Ux)||Ek(),_=m.getModel("time"),y=_.get("month"),b=_.get("monthAbbr"),w=_.get("dayOfWeek"),S=_.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Gn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Gn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Gn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Gn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Gn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Gn(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Gn(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Gn(v,3)).replace(/{S}/g,v+"")}function Pk(t){return t?"getUTCFullYear":"getFullYear"}function Lk(t){return t?"getUTCMonth":"getMonth"}function Rk(t){return t?"getUTCDate":"getDate"}function Ok(t){return t?"getUTCHours":"getHours"}function kk(t){return t?"getUTCMinutes":"getMinutes"}function Nk(t){return t?"getUTCSeconds":"getSeconds"}function Bk(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Xx(t){if(!VR(t))return ue(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Kx(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var zl=cg;function Hv(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&an(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Mc(t):t;if(isNaN(+l)){if(s)return"-"}else return Yx(l,n,r)}if(e==="ordinal")return cv(t)?i(t):st(t)&&a(t)?t+"":"-";var u=Of(t);return a(u)?Xx(u):cv(t)?i(t):typeof t=="boolean"?t+"":"-"}var B0=["a","b","c","d","e","f","g"],rd=function(t,e){return"{"+t+(e??"")+"}"};function jx(t,e,r){te(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=B0[a];t=t.replace(rd(o),rd(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(rd(B0[l],s),r?Gt(u):u)}return t}function Fk(t,e){var r=ue(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Gt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Gt(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function dl(t,e){return e=e||"transparent",ue(t)?t:ve(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function $v(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var tf=P,Vk=["left","right","top","bottom","width","height"],Tu=[["width","left","right"],["height","top","bottom"]];function zg(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),h=c&&c.getBoundingRect(),d,v;if(t==="horizontal"){var g=f.width+(h?-h.x+f.x:0);d=a+g,d>n||l.newline?(a=0,d=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(h?-h.y+f.y:0);v=o+p,v>i||l.newline?(a+=s+r,o=0,v=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=d+r:o=v+r)})}var $s=zg;it(zg,"vertical");it(zg,"horizontal");function zk(t,e,r){var n=e.width,i=e.height,a=_t(t.left,n),o=_t(t.top,i),s=_t(t.right,n),l=_t(t.bottom,i);return(isNaN(a)||isNaN(parseFloat(t.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),r=zl(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function wa(t,e,r){r=zl(r||0);var n=e.width,i=e.height,a=_t(t.left,n),o=_t(t.top,i),s=_t(t.right,n),l=_t(t.bottom,i),u=_t(t.width,n),f=_t(t.height,i),c=r[2]+r[0],h=r[1]+r[3],d=t.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),d!=null&&(isNaN(u)&&isNaN(f)&&(d>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=d*f),isNaN(f)&&(f=u/d)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var v=new Oe(a+r[3],o+r[0],u,f);return v.margin=r,v}function Hk(t,e,r,n,i,a){a=a||t,a.x=t.x,a.y=t.y;var o;if(o=t.getBoundingRect(),t.needLocalTransform()){var s=t.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=wa(rt({width:o.width,height:o.height},e),r,n),u=l.x-o.x,f=l.y-o.y;return a.x+=u,a.y+=f,a===t&&t.markRedraw(),!0}function Hf(t){var e=t.layoutMode||t.constructor.layoutMode;return ve(e)?e:e?{type:e}:null}function vl(t,e,r){var n=r&&r.ignoreSize;!te(n)&&(n=[n,n]);var i=o(Tu[0],0),a=o(Tu[1],1);u(Tu[0],t,i),u(Tu[1],t,a);function o(f,c){var h={},d=0,v={},g=0,p=2;if(tf(f,function(y){v[y]=t[y]}),tf(f,function(y){s(e,y)&&(h[y]=v[y]=e[y]),l(h,y)&&d++,l(v,y)&&g++}),n[c])return l(e,f[1])?v[f[2]]=null:l(e,f[2])&&(v[f[1]]=null),v;if(g===p||!d)return v;if(d>=p)return h;for(var m=0;m<f.length;m++){var _=f[m];if(!s(h,_)&&s(t,_)){h[_]=t[_];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){tf(f,function(d){c[d]=h[d]})}}function Hg(t){return $k({},t)}function $k(t,e){return e&&t&&tf(Vk,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var Gk=dt(),We=(function(t){le(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=Hc("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Hf(this),a=i?Hg(r):{},o=n.getTheme();at(r,o.get(this.mainType)),at(r,this.getDefaultOption()),i&&vl(r,a,i)},e.prototype.mergeOption=function(r,n){at(this.option,r,!0);var i=Hf(this);i&&vl(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!r2(r))return r.defaultOption;var n=Gk(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=at(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Bl(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Ze);hx(We,Ze);wg(We);xk(We);Tk(We,Uk);function Uk(t){var e=[];return P(We.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=ke(e,function(r){return on(r).main}),t!=="dataset"&&$e(e,"dataset")<=0&&e.unshift("dataset"),e}var qx="";typeof navigator<"u"&&(qx=navigator.platform||"");var $a="rgba(0, 0, 0, 0.2)";const Wk={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$a,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$a,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$a,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$a,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$a,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$a,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qx.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 Zx=we(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Rr="original",sr="arrayRows",vn="objectRows",Bn="keyedColumns",vi="typedArray",Jx="unknown",Dn="column",zo="row",cr={Must:1,Might:2,Not:3},Qx=dt();function Yk(t){Qx(t).datasetMap=we()}function Xk(t,e,r){var n={},i=eT(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=Qx(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),P(t,function(g,p){var m=ve(g)?g:t[p]={name:g};m.type==="ordinal"&&f==null&&(f=p,c=v(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});P(t,function(g,p){var m=g.name,_=v(g);if(f==null){var y=h.valueWayDim;d(n[m],y,_),d(o,y,_),h.valueWayDim+=_}else if(f===p)d(n[m],0,_),d(a,0,_);else{var y=h.categoryWayDim;d(n[m],y,_),d(o,y,_),h.categoryWayDim+=_}});function d(g,p,m){for(var _=0;_<m;_++)g.push(p+_)}function v(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function eT(t){var e=t.get("data",!0);if(!e)return Bl(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ra).models[0]}function Kk(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Bl(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ra).models}function tT(t,e){return jk(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function jk(t,e,r,n,i,a){var o,s=5;if(or(t))return cr.Not;var l,u;if(n){var f=n[a];ve(f)?(l=f.name,u=f.type):ue(f)&&(l=f)}if(u!=null)return u==="ordinal"?cr.Must:cr.Not;if(e===sr){var c=t;if(r===zo){for(var h=c[a],d=0;d<(h||[]).length&&d<s;d++)if((o=b(h[i+d]))!=null)return o}else for(var d=0;d<c.length&&d<s;d++){var v=c[i+d];if(v&&(o=b(v[a]))!=null)return o}}else if(e===vn){var g=t;if(!l)return cr.Not;for(var d=0;d<g.length&&d<s;d++){var p=g[d];if(p&&(o=b(p[l]))!=null)return o}}else if(e===Bn){var m=t;if(!l)return cr.Not;var h=m[l];if(!h||or(h))return cr.Not;for(var d=0;d<h.length&&d<s;d++)if((o=b(h[d]))!=null)return o}else if(e===Rr)for(var _=t,d=0;d<_.length&&d<s;d++){var p=_[d],y=kl(p);if(!te(y))return cr.Not;if((o=b(y[a]))!=null)return o}function b(w){var S=ue(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return S?cr.Might:cr.Not;if(S&&w!=="-")return cr.Must}return cr.Not}var qk=we();function Zk(t,e,r){var n=qk.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var F0=dt(),Jk=dt(),$g=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=wt(this.get("color",!0)),a=this.get("colorLayer",!0);return rT(this,F0,i,a,e,r,n)},t.prototype.clearColorPalette=function(){tN(this,F0)},t})();function Qk(t,e,r,n){var i=wt(t.get(["aria","decal","decals"]));return rT(t,Jk,i,null,e,r,n)}function eN(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function rT(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:eN(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function tN(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Cu,es,V0,z0="\0_ec_inner",rN=1,Gg=(function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ze(a),this._locale=new Ze(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=G0(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,G0(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?V0(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&P(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=we(),u=n&&n.replaceMergeMainTypeMap;Yk(this),P(r,function(c,h){c!=null&&(We.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?Ae(c):at(i[h],c,!0))}),u&&u.each(function(c,h){We.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),We.topologicalTravel(s,We.getAllClassMainTypes(),f,this);function f(c){var h=Zk(this,c,wt(r[c])),d=a.get(c),v=d?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=$R(d,h,v);jR(g,c,We),i[c]=null,a.set(c,null),o.set(c,0);var p=[],m=[],_=0,y;P(g,function(b,w){var S=b.existing,x=b.newOption;if(!x)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=c==="series",T=We.getClass(c,b.keyInfo.subType,!C);if(!T)return;if(c==="tooltip"){if(y)return;y=!0}if(S&&S.constructor===T)S.name=b.keyInfo.name,S.mergeOption(x,this),S.optionUpdated(x,!1);else{var D=W({componentIndex:w},b.keyInfo);S=new T(x,this,this,D),W(S,D),b.brandNew&&(S.__requireNewView=!0),S.init(x,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),m.push(S),_++):(p.push(void 0),m.push(void 0))},this),i[c]=p,a.set(c,m),o.set(c,_),c==="series"&&Cu(this)}this._seriesIndices||Cu(this)},e.prototype.getOption=function(){var r=Ae(this.option);return P(r,function(n,i){if(We.hasClass(i)){for(var a=wt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ul(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[z0],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],P(wt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=H0("id",a,s):o!=null?l=H0("name",o,s):l=dr(s,function(u){return!!u}),$0(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):dr(this._componentsMap.get(i),function(u){return!!u});return l($0(o,r));function s(u){var f=i+"Index",c=i+"Id",h=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:i,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?dr(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Re(r)){var o=n,s=r;a.each(function(c,h){for(var d=0;c&&d<c.length;d++){var v=c[d];v&&s.call(o,h,v,v.componentIndex)}})}else for(var l=ue(r)?a.get(r):ve(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=nr(r,null);return dr(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return dr(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return dr(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){es(this),P(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){P(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){es(this),P(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return P(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return es(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){es(this);var i=[];P(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=we(i)},e.prototype.restoreData=function(r){Cu(this);var n=this._componentsMap,i=[];n.each(function(a,o){We.hasClass(o)&&i.push(o)}),We.topologicalTravel(i,We.getAllClassMainTypes(),function(a){P(n.get(a),function(o){o&&(a!=="series"||!nN(o,r))&&o.restoreData()})})},e.internalField=(function(){Cu=function(r){var n=r._seriesIndices=[];P(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=we(n)},es=function(r){},V0=function(r,n){r.option={},r.option[z0]=rN,r._componentsMap=we({series:[]}),r._componentsCount=we();var i=n.aria;ve(i)&&i.enabled==null&&(i.enabled=!0),iN(n,r._theme.option),at(n,Wk,!1),r._mergeOption(n,null)}})(),e})(Ze);function nN(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function iN(t,e){var r=t.color&&!t.colorLayer;P(e,function(n,i){i==="colorLayer"&&r||We.hasClass(i)||(typeof n=="object"?t[i]=t[i]?at(t[i],n,!1):Ae(n):t[i]==null&&(t[i]=n))})}function H0(t,e,r){if(te(e)){var n=we();return P(e,function(a){if(a!=null){var o=nr(a,null);o!=null&&n.set(a,!0)}}),dr(r,function(a){return a&&n.get(a[t])})}else{var i=nr(e,null);return dr(r,function(a){return a&&i!=null&&a[t]===i})}}function $0(t,e){return e.hasOwnProperty("subType")?dr(t,function(r){return r&&r.subType===e.subType}):t}function G0(t){var e=we();return t&&P(wt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Yr(Gg,$g);var aN=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],nT=(function(){function t(e){P(aN,function(r){this[r]=Le(e[r],e)},this)}return t})(),nd={},$c=(function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];P(nd,function(i,a){var o=i.create(e,r);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){P(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){nd[e]=r},t.get=function(e){return nd[e]},t})(),oN=/^(min|max)?(.+)$/,sN=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(P(wt(e.series),function(o){o&&o.data&&or(o.data)&&hv(o.data)}),P(wt(e.dataset),function(o){o&&o.source&&or(o.source)&&hv(o.source)})),e=Ae(e);var i=this._optionBackup,a=lN(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Ae(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=Ae(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)uN(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!cN(o,this._currentMediaIndices)&&(s=ke(o,function(f){return Ae(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function lN(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&te(u)&&P(u,function(d){d&&d.option&&(d.query?n.push(d):i||(i=d))}),h(a),P(l,function(d){return h(d)}),P(n,function(d){return h(d.option)});function h(d){P(e,function(v){v(d,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function uN(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return P(t,function(a,o){var s=o.match(oN);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();fN(n[u],a,l)||(i=!1)}}),i}function fN(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function cN(t,e){return t.join(",")===e.join(",")}var kr=P,pl=ve,U0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function id(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=U0.length;r<n;r++){var i=U0[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?at(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?at(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Et(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,rt(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Ss(t){Et(t,"itemStyle"),Et(t,"lineStyle"),Et(t,"areaStyle"),Et(t,"label"),Et(t,"labelLine"),Et(t,"upperLabel"),Et(t,"edgeLabel")}function ct(t,e){var r=pl(t)&&t[e],n=pl(r)&&r.textStyle;if(n)for(var i=0,a=Zy.length;i<a;i++){var o=Zy[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Dr(t){t&&(Ss(t),ct(t,"label"),t.emphasis&&ct(t.emphasis,"label"))}function hN(t){if(pl(t)){id(t),Ss(t),ct(t,"label"),ct(t,"upperLabel"),ct(t,"edgeLabel"),t.emphasis&&(ct(t.emphasis,"label"),ct(t.emphasis,"upperLabel"),ct(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(id(e),Dr(e));var r=t.markLine;r&&(id(r),Dr(r));var n=t.markArea;n&&Dr(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!or(a))for(var o=0;o<a.length;o++)Dr(a[o]);P(t.categories,function(u){Ss(u)})}if(i&&!or(i))for(var o=0;o<i.length;o++)Dr(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Dr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)te(l[o])?(Dr(l[o][0]),Dr(l[o][1])):Dr(l[o]);t.type==="gauge"?(ct(t,"axisLabel"),ct(t,"title"),ct(t,"detail")):t.type==="treemap"?(Et(t.breadcrumb,"itemStyle"),P(t.levels,function(u){Ss(u)})):t.type==="tree"&&Ss(t.leaves)}}function yn(t){return te(t)?t:t?[t]:[]}function W0(t){return(te(t)?t[0]:t)||{}}function dN(t,e){kr(yn(t.series),function(n){pl(n)&&hN(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),kr(r,function(n){kr(yn(t[n]),function(i){i&&(ct(i,"axisLabel"),ct(i.axisPointer,"label"))})}),kr(yn(t.parallel),function(n){var i=n&&n.parallelAxisDefault;ct(i,"axisLabel"),ct(i&&i.axisPointer,"label")}),kr(yn(t.calendar),function(n){Et(n,"itemStyle"),ct(n,"dayLabel"),ct(n,"monthLabel"),ct(n,"yearLabel")}),kr(yn(t.radar),function(n){ct(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),kr(yn(t.geo),function(n){pl(n)&&(Dr(n),kr(yn(n.regions),function(i){Dr(i)}))}),kr(yn(t.timeline),function(n){Dr(n),Et(n,"label"),Et(n,"itemStyle"),Et(n,"controlStyle",!0);var i=n.data;te(i)&&P(i,function(a){ve(a)&&(Et(a,"label"),Et(a,"itemStyle"))})}),kr(yn(t.toolbox),function(n){Et(n,"iconStyle"),kr(n.feature,function(i){Et(i,"iconStyle")})}),ct(W0(t.axisPointer),"label"),ct(W0(t.tooltip).axisPointer,"label")}function vN(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function pN(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function Y0(t){t&&P(gN,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var gN=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],mN=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ad=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ts(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<ad.length;r++){var n=ad[r][1],i=ad[r][0];e[n]!=null&&(e[i]=e[n])}}function X0(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function K0(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function yN(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function iT(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&iT(t[r].children,e)}function aT(t,e){dN(t,e),t.series=wt(t.series),P(t.series,function(r){if(ve(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),X0(r.label);var i=r.data;if(i&&!or(i))for(var a=0;a<i.length;a++)X0(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=vN(r,"pointer.color");o!=null&&pN(r,"itemStyle.color",o)}else if(n==="bar"){ts(r),ts(r.backgroundStyle),ts(r.emphasis);var i=r.data;if(i&&!or(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(ts(i[a]),ts(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),K0(r),iT(r.data,K0)}else n==="graph"||n==="sankey"?yN(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&rt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Y0(r)}}),t.dataRange&&(t.visualMap=t.dataRange),P(mN,function(r){var n=t[r];n&&(te(n)||(n=[n]),P(n,function(i){Y0(i)}))})}function _N(t){var e=we();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(bN)}function bN(t){P(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return i;var d,v;s?v=o.getRawIndex(c):d=o.get(e.stackedByDimension,c);for(var g=NaN,p=r-1;p>=0;p--){var m=t[p];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,d)),v>=0){var _=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&h>=0&&_>0||l==="samesign"&&h<=0&&_<0){h=BR(h,_),g=_;break}}}return n[0]=h,n[1]=g,n})})}var Gc=(function(){function t(e){this.data=e.data||(e.sourceFormat===Bn?{}:[]),this.sourceFormat=e.sourceFormat||Jx,this.seriesLayoutBy=e.seriesLayoutBy||Dn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&tT(this,n)===cr.Must&&(i.type="ordinal")}}return t})();function Ug(t){return t instanceof Gc}function Gv(t,e,r){r=r||oT(t);var n=e.seriesLayoutBy,i=SN(t,r,n,e.sourceHeader,e.dimensions),a=new Gc({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Ae(e)});return a}function Wg(t){return new Gc({data:t,sourceFormat:or(t)?vi:Rr})}function wN(t){return new Gc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Ae(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function oT(t){var e=Jx;if(or(t))e=vi;else if(te(t)){t.length===0&&(e=sr);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(te(i)||or(i)){e=sr;break}else if(ve(i)){e=vn;break}}}}else if(ve(t)){for(var a in t)if(_a(t,a)&&ar(t[a])){e=Bn;break}}return e}function SN(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:j0(i),startIndex:o,dimensionsDetectedCount:a};if(e===sr){var s=t;n==="auto"||n==null?q0(function(u){u!=null&&u!=="-"&&(ue(u)?o==null&&(o=1):o=0)},r,s,10):o=st(n)?n:n?1:0,!i&&o===1&&(i=[],q0(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===zo?s.length:s[0]?s[0].length:null}else if(e===vn)i||(i=xN(t));else if(e===Bn)i||(i=[],P(t,function(u,f){i.push(f)}));else if(e===Rr){var l=kl(t[0]);a=te(l)&&l.length||1}return{startIndex:o,dimensionsDefine:j0(i),dimensionsDetectedCount:a}}function xN(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ot(r)}function j0(t){if(t){var e=we();return ke(t,function(r,n){r=ve(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function q0(t,e,r,n){if(e===zo)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function sT(t){var e=t.sourceFormat;return e===vn||e===Bn}var Ui,Wi,Yi,Z0,J0,lT=(function(){function t(e,r){var n=Ug(e)?e:Wg(e);this._source=n;var i=this._data=n.data;n.sourceFormat===vi&&(this._offset=0,this._dimSize=r,this._data=i),J0(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;J0=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,d=Z0[Yg(u,f)];if(W(o,d),u===vi)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=uT(u,f);o.getItem=Le(v,null,s,c,h);var g=fT(u,f);o.count=Le(g,null,s,c,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var d=u[h],v=d[0]==null?1/0:d[0],g=d[1]==null?-1/0:d[1],p=s-o,m=l[h],_=0;_<p;_++){var y=f[_*c+h];m[o+_]=y,y<v&&(v=y),y>g&&(g=y)}d[0]=v,d[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Z0=(e={},e[sr+"_"+Dn]={pure:!0,appendData:a},e[sr+"_"+zo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[vn]={pure:!0,appendData:a},e[Bn]={pure:!0,appendData:function(o){var s=this._data;P(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Rr]={appendData:a},e[vi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),Q0=function(t,e,r,n){return t[n]},TN=(Ui={},Ui[sr+"_"+Dn]=function(t,e,r,n){return t[n+e]},Ui[sr+"_"+zo]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Ui[vn]=Q0,Ui[Bn]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=t[s];a[o]=l?l[n]:null}return a},Ui[Rr]=Q0,Ui);function uT(t,e){var r=TN[Yg(t,e)];return r}var e_=function(t,e,r){return t.length},CN=(Wi={},Wi[sr+"_"+Dn]=function(t,e,r){return Math.max(0,t.length-e)},Wi[sr+"_"+zo]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Wi[vn]=e_,Wi[Bn]=function(t,e,r){var n=r[0].name,i=t[n];return i?i.length:0},Wi[Rr]=e_,Wi);function fT(t,e){var r=CN[Yg(t,e)];return r}var od=function(t,e,r){return t[e]},DN=(Yi={},Yi[sr]=od,Yi[vn]=function(t,e,r){return t[r]},Yi[Bn]=od,Yi[Rr]=function(t,e,r){var n=kl(t);return n instanceof Array?n[e]:n},Yi[vi]=od,Yi);function cT(t){var e=DN[t];return e}function Yg(t,e){return t===sr?t+"_"+e:t}function Eo(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return cT(a)(n,o,s)}else{var l=n;return a===Rr&&(l=kl(n)),l}}}}var AN=/\{@(.+?)\}/g,IN=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",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:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&te(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Re(a))return l.status=r,l.dimensionIndex=i,a(l);if(ue(a)){var f=jx(a,l);return f.replace(AN,function(c,h){var d=h.length,v=h;v.charAt(0)==="["&&v.charAt(d-1)==="]"&&(v=+v.slice(1,d-1));var g=Eo(s,e,v);if(o&&te(o.interpolatedValue)){var p=s.getDimensionIndex(v);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return Eo(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function t_(t){var e,r;return ve(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Gs(t){return new MN(t)}var MN=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(_){return!(_>=1)&&(_=1),_}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||d<v)){var g=this._progress;if(te(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],d,v,l,u);else this._doProgress(g,d,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){r_.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:r_.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),te(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),r_=(function(){var t,e,r,n,i,a={reset:function(l,u,f,c){e=l,t=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}})();function rf(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!st(t)&&t!=null&&t!=="-"&&(t=+Mc(t)),t==null||t===""?NaN:Number(t))}we({number:function(t){return parseFloat(t)},time:function(t){return+Mc(t)},trim:function(t){return ue(t)?an(t):t}});var EN=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=st(e)?e:Of(e),i=st(r)?r:Of(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=ue(e),l=ue(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})(),PN=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return rf(e,r)},t})();function LN(t,e){var r=new PN,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Dn&&Jt(o);var s=[],l={},u=t.dimensionsDefine;if(u)P(u,function(g,p){var m=g.name,_={index:p,name:m,displayName:g.displayName};if(s.push(_),m!=null){var y="";_a(l,m)&&Jt(y),l[m]=_}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=uT(i,Dn);e.__isBuiltIn&&(r.getRawDataItem=function(g){return c(n,a,s,g)},r.getRawData=Le(RN,null,t)),r.cloneRawData=Le(ON,null,t);var h=fT(i,Dn);r.count=Le(h,null,n,a,s);var d=cT(i);r.retrieveValue=function(g,p){var m=c(n,a,s,g);return v(m,p)};var v=r.retrieveValueFromItem=function(g,p){if(g!=null){var m=s[p];if(m)return d(g,p,m.name)}};return r.getDimensionInfo=Le(kN,null,s,l),r.cloneAllDimensionInfo=Le(NN,null,s),r}function RN(t){var e=t.sourceFormat;if(!Xg(e)){var r="";Jt(r)}return t.data}function ON(t){var e=t.sourceFormat,r=t.data;if(!Xg(e)){var n="";Jt(n)}if(e===sr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===vn){for(var i=[],a=0,o=r.length;a<o;a++)i.push(W({},r[a]));return i}}function kN(t,e,r){if(r!=null){if(st(r)||!isNaN(r)&&!_a(e,r))return t[r];if(_a(e,r))return e[r]}}function NN(t){return Ae(t)}var hT=we();function BN(t){t=Ae(t);var e=t.type,r="";e||Jt(r);var n=e.split(":");n.length!==2&&Jt(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,hT.set(e,t)}function FN(t,e,r){var n=wt(t),i=n.length,a="";i||Jt(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=VN(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function VN(t,e,r,n){var i="";e.length||Jt(i),ve(t)||Jt(i);var a=t.type,o=hT.get(a);o||Jt(i);var s=ke(e,function(u){return LN(u,o)}),l=wt(o.transform({upstream:s[0],upstreamList:s,config:Ae(t.config)}));return ke(l,function(u,f){var c="";ve(u)||Jt(c),u.data||Jt(c);var h=oT(u.data);Xg(h)||Jt(c);var d,v=e[0];if(v&&f===0&&!u.dimensions){var g=v.startIndex;g&&(u.data=v.data.slice(0,g).concat(u.data)),d={seriesLayoutBy:Dn,sourceHeader:g,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:Dn,sourceHeader:0,dimensions:u.dimensions};return Gv(u.data,d,null)})}function Xg(t){return t===sr||t===vn}var Uc="undefined",zN=typeof Uint32Array===Uc?Array:Uint32Array,HN=typeof Uint16Array===Uc?Array:Uint16Array,dT=typeof Int32Array===Uc?Array:Int32Array,n_=typeof Float64Array===Uc?Array:Float64Array,vT={float:n_,int:dT,ordinal:Array,number:Array,time:n_},sd;function Ga(t){return t>65535?zN:HN}function Ua(){return[1/0,-1/0]}function $N(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function i_(t,e,r,n,i){var a=vT[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var Uv=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=we()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=sd[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],sT(i),this._dimensions=ke(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new vT[r||"float"](this._rawCount),this._rawExtent[a]=Ua(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Ua());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];i_(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var d=h-s,v=0;v<a;v++){var f=i[v],g=sd.arrayRows.call(this,e[d]||c,f.property,d,v);n[v][h]=g;var p=o[v];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ke(o,function(_){return _.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Ua()),i_(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var h=[],d=e;d<r;d++){h=i.getItem(d,h);for(var v=0;v<s;v++){var g=a[v],p=this._dimValueGetter(h,u[v],d,v);g[d]=p;var m=l[v];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var h=this.getRawIndex(f),d=r-a[h],v=Math.abs(d);v<=n&&((v<s||v===s&&d>=0&&l<0)&&(s=v,l=d,u=0),d===l&&(o[u++]=f))}return o.length=u,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=Ga(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Ga(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,h=0;h<i;h++){var d=void 0,v=n.getRawIndex(h);if(l===0)d=r(h);else if(l===1){var g=c[f][v];d=r(g,h)}else{for(var p=0;p<l;p++)s[p]=c[e[p]][v];s[p]=h,d=r.apply(null,s)}d&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=ot(e),a=i.length;if(!a)return this;var o=r.count(),s=Ga(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],h=e[f][1],d=r._chunks,v=!1;if(!r._indices){var g=0;if(a===1){for(var p=d[i[0]],m=0;m<n;m++){var _=p[m];(_>=c&&_<=h||isNaN(_))&&(l[u++]=g),g++}v=!0}else if(a===2){for(var p=d[i[0]],y=d[i[1]],b=e[i[1]][0],w=e[i[1]][1],m=0;m<n;m++){var _=p[m],S=y[m];(_>=c&&_<=h||isNaN(_))&&(S>=b&&S<=w||isNaN(S))&&(l[u++]=g),g++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var x=r.getRawIndex(m),_=d[i[0]][x];(_>=c&&_<=h||isNaN(_))&&(l[u++]=x)}else for(var m=0;m<o;m++){for(var C=!0,x=r.getRawIndex(m),T=0;T<a;T++){var D=i[T],_=d[D][x];(_<e[D][0]||_>e[D][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Ua();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),d=0;d<o;d++)l[d]=i[r[d]][h];l[o]=c;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var g=r[f],p=v[f],m=u[g],_=i[g];_&&(_[h]=p),p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,d=new(Ga(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;v<o-1;v+=l){for(var g=Math.min(v+l,o-1),p=Math.min(v+l*2,o),m=(p+g)/2,_=0,y=g;y<p;y++){var b=this.getRawIndex(y),w=a[b];isNaN(w)||(_+=w)}_/=p-g;var S=v,x=Math.min(v+l,o),C=v-1,T=a[u];f=-1,h=S;for(var D=-1,I=0,y=S;y<x;y++){var b=this.getRawIndex(y),w=a[b];if(isNaN(w)){I++,D<0&&(D=b);continue}c=Math.abs((C-m)*(w-T)-(C-y)*(_-T)),c>f&&(f=c,h=b)}I>0&&I<x-S&&(d[s++]=Math.min(D,h),h=Math.max(D,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(o-1),n._count=s,n._indices=d,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(Ga(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,h=o[this.getRawIndex(c)],d=f,v=o[this.getRawIndex(d)],g=a;f+a>s&&(g=s-f);for(var p=0;p<g;p++){var m=this.getRawIndex(f+p),_=o[m];_<h&&(h=_,c=f+p),_>v&&(v=_,d=f+p)}var y=this.getRawIndex(c),b=this.getRawIndex(d);c<d?(l[u++]=y,l[u++]=b):(l[u++]=b,l[u++]=y)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=Ua(),h=new(Ga(this._rawCount))(Math.ceil(f/l)),d=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(v+g);s[g]=u[p]}var m=n(s),_=this.getRawIndex(Math.min(v+i(s,m)||0,f-1));u[_]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=_}return a._count=d,a._indices=h,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=Ua();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&Bo(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?$N(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Ae(this._extent),e._rawExtent=Ae(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return rf(r[a],this._dimensions[a])}sd={arrayRows:e,objectRows:function(r,n,i,a){return rf(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return rf(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),GN=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Du(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=or(s)?vi:Rr,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=Ce(c.seriesLayoutBy,h.seriesLayoutBy)||null,v=Ce(c.sourceHeader,h.sourceHeader),g=Ce(c.dimensions,h.dimensions),p=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||g;i=p?[Gv(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:g},l)]:[]}else{var m=e;if(n){var _=this._applyTransform(r);i=_.sourceList,a=_.upstreamSignList}else{var y=m.get("source",!0);i=[Gv(y,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&a_(a)}var o,s=[],l=[];return P(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&a_(c),s.push(f),l.push(u._getVersionSign())}),n?o=FN(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[wN(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Du(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new Uv,s.initData(new lT(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Du(e)){var r=eT(e);return r?[r.getSourceManager()]:[]}else return ke(Kk(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Du(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function Du(t){return t.mainType==="series"}function a_(t){throw new Error(t)}var UN="line-height:1";function pT(t){var e=t.lineHeight;return e==null?UN:"line-height:"+Gt(e+"")+"px"}function gT(t,e){var r=t.color||"#6e7079",n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||"#464646",o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Gt(n+"")+"px;color:"+Gt(r)+";font-weight:"+Gt(i+""),valueStyle:"font-size:"+Gt(o+"")+"px;color:"+Gt(a)+";font-weight:"+Gt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var WN=[0,10,20,30],YN=["",`
|
|
53
|
+
`,`
|
|
54
|
+
|
|
55
|
+
`,`
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
`];function Sa(t,e){return e.type=t,e}function Wv(t){return t.type==="section"}function mT(t){return Wv(t)?XN:KN}function yT(t){if(Wv(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return P(t.blocks,function(i){var a=yT(i);a>=e&&(e=a+ +(n&&(!a||Wv(i)&&!i.noHeader)))}),e}return 0}function XN(t,e,r,n){var i=e.noHeader,a=jN(yT(e)),o=[],s=e.blocks||[];Wr(!s||te(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(_a(u,l)){var f=new EN(u[l],null);s.sort(function(g,p){return f.evaluate(g.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}P(s,function(g,p){var m=e.valueFormatter,_=mT(g)(m?W(W({},t),{valueFormatter:m}):t,g,p>0?a.html:0,n);_!=null&&o.push(_)});var c=t.renderMode==="richText"?o.join(a.richText):Yv(n,o.join(""),i?r:a.html);if(i)return c;var h=Hv(e.header,"ordinal",t.useUTC),d=gT(n,t.renderMode).nameStyle,v=pT(n);return t.renderMode==="richText"?_T(t,h,d)+a.richText+c:Yv(n,'<div style="'+d+";"+v+';">'+Gt(h)+"</div>"+c,r)}function KN(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(b){return b=te(b)?b:[b],ke(b,function(w,S){return Hv(w,te(d)?d[S]:d,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),h=a?"":Hv(l,"ordinal",u),d=e.valueType,v=o?[]:f(e.value,e.dataIndex),g=!s||!a,p=!s&&a,m=gT(n,i),_=m.nameStyle,y=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":_T(t,h,_))+(o?"":JN(t,v,g,p,y)):Yv(n,(s?"":c)+(a?"":qN(h,!s,_))+(o?"":ZN(v,g,p,y)),r)}}function o_(t,e,r,n,i,a){if(t){var o=mT(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function jN(t){return{html:WN[t],richText:YN[t]}}function Yv(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=pT(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function qN(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Gt(t)+"</span>"}function ZN(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=te(t)?t:[t],'<span style="'+a+";"+n+'">'+ke(t,function(o){return Gt(o)}).join(" ")+"</span>"}function _T(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function JN(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(te(e)?e.join(" "):e,a)}function QN(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return dl(n)}function bT(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var ld=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=ox()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=Fk({color:r,type:e,renderMode:n,markerId:i});return ue(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};te(r)?P(r,function(a){return W(n,a)}):W(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function wT(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=te(s),u=QN(e,r),f,c,h,d;if(o>1||l&&!o){var v=eB(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);d=f=Eo(i,r,a[0]),c=g.type}else d=f=l?s[0]:s;var p=yg(e),m=p&&e.name||"",_=i.getName(r),y=n?m:_;return Sa("section",{header:m,noHeader:n||!p,sortParam:d,blocks:[Sa("nameValue",{markerType:"item",markerColor:u,name:y,noName:!an(y),value:f,valueType:c,dataIndex:r})].concat(h||[])})}function eB(t,e,r,n,i){var a=e.getData(),o=Bo(t,function(c,h,d){var v=a.getDimensionInfo(d);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?P(n,function(c){f(Eo(a,r,c),c)}):P(t,f);function f(c,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(Sa("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:c,valueType:d.type})):(s.push(c),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Un=dt();function Au(t,e){return t.getName(e)||t.getId(e)}var tB="__universalTransitionEnabled",Rn=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Gs({count:nB,reset:iB}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Un(this).sourceManager=new GN(this);a.prepareSource();var o=this.getInitialData(r,i);l_(o,this),this.dataTask.context.data=o,Un(this).dataBeforeProcessed=o,s_(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Hf(this),a=i?Hg(r):{},o=this.subType;We.hasClass(o)&&(o+="Series"),at(r,n.getTheme().get(this.subType)),at(r,this.getDefaultOption()),Mv(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&vl(r,a,i)},e.prototype.mergeOption=function(r,n){r=at(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Hf(this);i&&vl(this.option,r,i);var a=Un(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);l_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Un(this).dataBeforeProcessed=o,s_(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!or(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Mv(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Xv(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Un(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Xv(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Un(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return we(r)},e.prototype.getSourceManager=function(){return Un(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Un(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.formatTooltip=function(r,n,i){return wT({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(be.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=$g.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Au(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=ot(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Au(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[tB])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ve(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=Au(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var d=n[l-1],h=Au(r,d);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(d),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return We.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(We);Yr(Rn,IN);Yr(Rn,$g);hx(Rn,We);function s_(t){var e=t.name;yg(t)||(t.name=rB(t)||e)}function rB(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return P(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function nB(t){return t.model.getRawData().count()}function iB(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),aB}function aB(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function l_(t,e){P(xL(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,it(oB,e))})}function oB(t,e){var r=Xv(t);return r&&r.setOutputEnd((e||this).count()),e}function Xv(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var hn=(function(){function t(){this.group=new yt,this.uid=Hc("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();bg(hn);wg(hn);function sB(){var t=dt();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var ST=dt(),lB=sB(),An=(function(){function t(){this.group=new yt,this.uid=Hc("viewChart"),this.renderTask=Gs({plan:uB,reset:fB}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&f_(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&f_(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Fc(this.group,e)},t.markUpdateMethod=function(e,r){ST(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function u_(t,e,r){t&&hl(t)&&(e==="emphasis"?fl:cl)(t,r)}function f_(t,e,r){var n=Nl(t,e),i=e&&e.highlightKey!=null?vO(e.highlightKey):null;n!=null?P(wt(n),function(a){u_(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){u_(a,r,i)})}bg(An);wg(An);function uB(t){return lB(t.model)}function fB(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&ST(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),cB[l]}var cB={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},$f="\0__throttleOriginMethod",c_="\0__throttleRate",h_="\0__throttleType";function xT(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var h=function(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];n=new Date().getTime(),l=this,u=d;var g=f||e,p=f||r;f=null,s=n-(p?i:a)-g,clearTimeout(o),p?o=setTimeout(c,g):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){f=d},h}function TT(t,e,r,n){var i=t[e];if(i){var a=i[$f]||i,o=i[h_],s=i[c_];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=xT(a,r,n==="debounce"),i[$f]=a,i[h_]=n,i[c_]=r}return i}}function Kv(t,e){var r=t[e];r&&r[$f]&&(r.clear&&r.clear(),t[e]=r[$f])}var d_=dt(),v_={itemStyle:Io(Gx,!0),lineStyle:Io($x,!0)},hB={lineStyle:"stroke",itemStyle:"fill"};function CT(t,e){var r=t.visualStyleMapper||v_[e];return r||(console.warn("Unknown style type '"+e+"'."),v_.itemStyle)}function DT(t,e){var r=t.visualDrawType||hB[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var dB={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=CT(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=DT(t,n),u=o[l],f=Re(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Re(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Re(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var g=t.getDataParams(v),p=W({},o);p[l]=f(g),d.setItemVisual(v,"style",p)}}}},rs=new Ze,vB={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=CT(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){rs.option=l[n];var u=i(rs),f=o.ensureUniqueItemVisual(s,"style");W(f,u),rs.option.decal&&(o.setItemVisual(s,"decal",rs.option.decal),rs.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},pB={performRawSeries:!0,overallReset:function(t){var e=we();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),d_(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=d_(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=DT(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},Iu=Math.PI;function gB(t,e){e=e||{},rt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new yt,n=new Rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new kt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Rt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Nc({shape:{startAngle:-Iu/2,endAngle:-Iu/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Iu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Iu*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var AT=(function(){function t(e,r,n,i){this._stageTaskMap=we(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=we();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;P(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Wr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;P(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var d,v=h.agentStubMap;v.each(function(p){s(i,p)&&(p.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);v.each(function(p){p.perform(g)}),h.perform(g)&&(a=!0)}else c&&c.each(function(p,m){s(i,p)&&p.dirty();var _=o.getPerformArgs(p,i.block);_.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(_)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=we(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,d=s.set(h,o&&o.get(h)||Gs({plan:wB,reset:SB,count:TB}));d.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,d)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Gs({reset:mB});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=we(),u=e.seriesType,f=e.getTargetSeries,c=!0,h=!1,d="";Wr(!e.createOnAllSeries,d),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,P(n.getSeries(),v));function v(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(h=!0,Gs({reset:yB,onDirty:bB})));m.context={model:g,overallProgress:c},m.agent=o,m.__block=c,a._pipe(g,m)}h&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return Re(e)&&(e={overallReset:e,seriesType:CB(e)}),e.uid=Hc("stageHandler"),r&&(e.visualType=r),e},t})();function mB(t){t.overallReset(t.ecModel,t.api,t.payload)}function yB(t){return t.overallProgress&&_B}function _B(){this.agent.dirty(),this.getDownstream().dirty()}function bB(){this.agent&&this.agent.dirty()}function wB(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function SB(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=wt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ke(e,function(r,n){return IT(n)}):xB}var xB=IT(0);function IT(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function TB(t){return t.data.count()}function CB(t){Gf=null;try{t(gl,MT)}catch{}return Gf}var gl={},MT={},Gf;ET(gl,Gg);ET(MT,nT);gl.eachSeriesByType=gl.eachRawSeriesByType=function(t){Gf=t};gl.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Gf=t.subType)};function ET(t,e){for(var r in e.prototype)t[r]=mt}var p_=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const DB={color:p_,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],p_]};var It="#B9B8CE",g_="#100C2A",Mu=function(){return{axisLine:{lineStyle:{color:It}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},m_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],PT={darkMode:!0,color:m_,backgroundColor:g_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:It},pageTextStyle:{color:It}},textStyle:{color:It},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:It}},dataZoom:{borderColor:"#71708A",textStyle:{color:It},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:It}},timeline:{lineStyle:{color:It},label:{color:It},controlStyle:{color:It,borderColor:It}},calendar:{itemStyle:{color:g_},dayLabel:{color:It},monthLabel:{color:It},yearLabel:{color:It}},timeAxis:Mu(),logAxis:Mu(),valueAxis:Mu(),categoryAxis:Mu(),line:{symbol:"circle"},graph:{color:m_},gauge:{title:{color:It},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:It},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};PT.categoryAxis.splitLine.show=!1;var AB=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(ue(e)){var a=on(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};P(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,h,d,v){return c[d]==null||h[v||d]===c[d]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),jv=["symbol","symbolSize","symbolRotate","symbolOffset"],y_=jv.concat(["symbolKeepAspect"]),IB={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<jv.length;o++){var s=jv[o],l=t.get(s);Re(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(W({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=ot(i);function f(c,h){for(var d=t.getRawValue(h),v=t.getDataParams(h),g=0;g<u.length;g++){var p=u[g];c.setItemVisual(h,p,i[p](d,v))}}return{dataEach:a?f:null}}},MB={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<y_.length;s++){var l=y_[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function EB(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function PB(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Wa(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=Nl(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:te(h)?c.getName(h[0]):c.getName(h),selected:ue(l)?l:W({},l)})}})}function LB(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Wa("map","selectchanged",e,i,n),Wa("pie","selectchanged",e,i,n)):n.fromAction==="select"?(Wa("map","selected",e,i,n),Wa("pie","selected",e,i,n)):n.fromAction==="unselect"&&(Wa("map","unselected",e,i,n),Wa("pie","unselected",e,i,n))})}function xs(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var RB=Math.round(Math.random()*9),OB=typeof Object.defineProperty=="function",kB=(function(){function t(){this._id="__ec_inner_"+RB++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return OB?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),NB=Qe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),BB=Qe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),FB=Qe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),d=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*d,l+s+h*d,r,n-v,r,n),t.bezierCurveTo(r,n-v,r-f+c*d,l+s+h*d,r-f,l+s),t.closePath()}}),VB=Qe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),zB={line:Ia,rect:Rt,roundRect:Rt,square:Rt,circle:Rc,diamond:BB,pin:FB,arrow:VB,triangle:NB},HB={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},qv={};P(zB,function(t,e){qv[e]=new t});var $B=Qe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=ex(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=qv[n];i||(n="rect",i=qv[n]),HB[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function GB(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Hl(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=Fx(t.slice(8),new Oe(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Og(t.slice(7),{},new Oe(e,r,n,i),o?"center":"cover"):l=new $B({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=GB,a&&l.setColor(a),l}function Kg(t){return te(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Wc(t,e){if(t!=null)return te(t)||(t=[t,t]),[_t(t[0],e[0])||0,_t(Ce(t[1],t[0]),e[1])||0]}function ia(t){return isFinite(t)}function UB(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=ia(n)?n:0,i=ia(i)?i:1,a=ia(a)?a:0,o=ia(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function WB(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=ia(o)?o:.5,s=ia(s)?s:.5,l=l>=0&&ia(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Zv(t,e,r){for(var n=e.type==="radial"?WB(t,e,r):UB(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function YB(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Eu(t){return parseInt(t,10)}function Pu(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||Eu(s[n])||Eu(t.style[n]))-(Eu(s[a])||0)-(Eu(s[o])||0)|0}function XB(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:st(t)?[t]:te(t)?t:null}function LT(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&XB(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=ke(r,function(a){return a/i}),n/=i)}return[r,n]}var KB=new Mo(!0);function Uf(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function __(t){return typeof t=="string"&&t!=="none"}function Wf(t){var e=t.fill;return e!=null&&e!=="none"}function b_(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function w_(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Jv(t,e,r){var n=dx(e.image,e.__image,r);if(Ec(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*TL),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function jB(t,e,r,n){var i,a=Uf(r),o=Wf(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||KB,c=e.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,g=a&&!!d.colorStops,p=o&&!!h.image,m=a&&!!d.image,_=void 0,y=void 0,b=void 0,w=void 0,S=void 0;(v||g)&&(S=e.getBoundingRect()),v&&(_=c?Zv(t,h,S):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(y=c?Zv(t,d,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=y),p&&(b=c||!e.__canvasFillPattern?Jv(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),m&&(w=c||!e.__canvasStrokePattern?Jv(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),v?t.fillStyle=_:p&&(b?t.fillStyle=b:o=!1),g?t.strokeStyle=y:m&&(w?t.strokeStyle=w:a=!1)}var x=e.getGlobalScale();f.setScale(x[0],x[1],e.segmentIgnoreThreshold);var C,T;t.setLineDash&&r.lineDash&&(i=LT(e),C=i[0],T=i[1]);var D=!0;(u||c&to)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),D=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(t,l?s:1),C&&(t.setLineDash(C),t.lineDashOffset=T),n||(r.strokeFirst?(a&&w_(t,r),o&&b_(t,r)):(o&&b_(t,r),a&&w_(t,r))),C&&t.setLineDash([])}function qB(t,e,r){var n=e.__image=dx(r.image,e.__image,e,e.onload);if(!(!n||!Ec(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;t.drawImage(n,u,f,c,h,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function ZB(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||ya,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=LT(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Uf(r)&&t.strokeText(i,r.x,r.y),Wf(r)&&t.fillText(i,r.x,r.y)):(Wf(r)&&t.fillText(i,r.x,r.y),Uf(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var S_=["shadowBlur","shadowOffsetX","shadowOffsetY"],x_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function RT(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){rr(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?ha.opacity:o}(n||e.blend!==r.blend)&&(a||(rr(t,i),a=!0),t.globalCompositeOperation=e.blend||ha.blend);for(var s=0;s<S_.length;s++){var l=S_[s];(n||e[l]!==r[l])&&(a||(rr(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(rr(t,i),a=!0),t.shadowColor=e.shadowColor||ha.shadowColor),a}function T_(t,e,r,n,i){var a=ml(e,i.inHover),o=n?null:r&&ml(r,i.inHover)||{};if(a===o)return!1;var s=RT(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(rr(t,i),s=!0),__(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(rr(t,i),s=!0),__(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(rr(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(rr(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<x_.length;f++){var c=x_[f],h=c[0];(n||a[h]!==o[h])&&(s||(rr(t,i),s=!0),t[h]=a[h]||c[1])}return s}function JB(t,e,r,n,i){return RT(t,ml(e,i.inHover),r&&ml(r,i.inHover),n,i)}function OT(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function QB(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),OT(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function eF(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var C_=1,D_=2,A_=3,I_=4;function tF(t){var e=Wf(t),r=Uf(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function rr(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function ml(t,e){return e&&t.__hoverStyle||t.style}function kT(t,e){aa(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function aa(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~vr,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||YB(a,o))&&(o&&o.length&&(rr(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(rr(t,r),t.save(),QB(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof Qe&&e.autoBatch&&tF(e.style);s||eF(i,u.transform)?(rr(t,r),OT(t,e)):f||rr(t,r);var c=ml(e,r.inHover);e instanceof Qe?(r.lastDrawType!==C_&&(l=!0,r.lastDrawType=C_),T_(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),jB(t,e,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):e instanceof kf?(r.lastDrawType!==A_&&(l=!0,r.lastDrawType=A_),T_(t,e,u,l,r),ZB(t,e,c)):e instanceof xi?(r.lastDrawType!==D_&&(l=!0,r.lastDrawType=D_),JB(t,e,u,l,r),qB(t,e,c)):e.getTemporalDisplayables&&(r.lastDrawType!==I_&&(l=!0,r.lastDrawType=I_),rF(t,e,r)),f&&n&&rr(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function rF(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),aa(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),aa(t,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var ud=new kB,M_=new Ol(100),E_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Qv(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&ud.delete(t);var a=ud.get(t);if(a)return a;var o=rt(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,ud.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<E_.length;++h){var d=o[E_[h]];if(d!=null&&!te(d)&&!ue(d)&&!st(d)&&typeof d!="boolean"){c=!1;break}f.push(d)}var v;if(c){v=f.join(",")+(i?"-svg":"");var g=M_.get(v);g&&(i?u.svgElement=g:u.image=g)}var p=BT(o.dashArrayX),m=nF(o.dashArrayY),_=NT(o.symbol),y=iF(p),b=FT(m),w=!i&&No.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=T(),C;w&&(w.width=x.width*r,w.height=x.height*r,C=w.getContext("2d")),D(),c&&M_.put(v,w||S),u.image=w,u.svgElement=S,u.svgWidth=x.width,u.svgHeight=x.height;function T(){for(var I=1,M=0,O=y.length;M<O;++M)I=qy(I,y[M]);for(var R=1,M=0,O=_.length;M<O;++M)R=qy(R,_[M].length);I*=R;var V=b*y.length*_.length;return{width:Math.max(1,Math.min(I,o.maxTileWidth)),height:Math.max(1,Math.min(V,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,w.width,w.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,w.width,w.height)));for(var I=0,M=0;M<m.length;++M)I+=m[M];if(I<=0)return;for(var O=-b,R=0,V=0,N=0;O<x.height;){if(R%2===0){for(var B=V/2%_.length,F=0,G=0,J=0;F<x.width*2;){for(var oe=0,M=0;M<p[N].length;++M)oe+=p[N][M];if(oe<=0)break;if(G%2===0){var K=(1-o.symbolSize)*.5,Te=F+p[N][G]*K,Ge=O+m[R]*K,ze=p[N][G]*o.symbolSize,De=m[R]*o.symbolSize,ut=J/2%_[B].length;ye(Te,Ge,ze,De,_[B][ut])}F+=p[N][G],++J,++G,G===p[N].length&&(G=0)}++N,N===p.length&&(N=0)}O+=m[R],++V,++R,R===m.length&&(R=0)}function ye(ee,me,q,ne,A){var E=i?1:r,k=Hl(A,ee*E,me*E,q*E,ne*E,o.color,o.symbolKeepAspect);if(i){var H=n.painter.renderOneToVNode(k);H&&S.children.push(H)}else kT(C,k)}}}}function NT(t){if(!t||t.length===0)return[["rect"]];if(ue(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!ue(t[r])){e=!1;break}if(e)return NT([t]);for(var n=[],r=0;r<t.length;++r)ue(t[r])?n.push([t[r]]):n.push(t[r]);return n}function BT(t){if(!t||t.length===0)return[[0,0]];if(st(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!st(t[n])){r=!1;break}if(r)return BT([t]);for(var i=[],n=0;n<t.length;++n)if(st(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=ke(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function nF(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(st(t)){var e=Math.ceil(t);return[e,e]}var r=ke(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function iF(t){return ke(t,function(e){return FT(e)})}function FT(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function aF(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Qv(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Qv(i,e)}}})}var Fr=new Xr,VT={};function oF(t,e){VT[t]=e}function sF(t){return VT[t]}var lF=1,uF=800,fF=900,cF=1e3,hF=2e3,dF=5e3,zT=1e3,vF=1100,jg=2e3,HT=3e3,pF=4e3,Yc=4500,gF=4600,mF=5e3,yF=6e3,$T=7e3,_F={PROCESSOR:{FILTER:cF,SERIES_FILTER:uF,STATISTIC:dF},VISUAL:{LAYOUT:zT,PROGRESSIVE_LAYOUT:vF,GLOBAL:jg,CHART:HT,POST_CHART_LAYOUT:gF,COMPONENT:pF,BRUSH:mF,CHART_ITEM:Yc,ARIA:yF,DECAL:$T}},At="__flagInMainProcess",jt="__pendingUpdate",fd="__needsUpdateStatus",P_=/^[a-zA-Z0-9_]+$/,cd="__connectUpdateStatus",L_=0,bF=1,wF=2;function GT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return WT(this,t,e)}}function UT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return WT(this,t,e)}}function WT(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Xr.prototype[e].apply(t,r)}var YT=(function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Xr),XT=YT.prototype;XT.on=UT("on");XT.off=UT("off");var Ya,hd,Lu,Wn,dd,vd,pd,ns,is,R_,O_,gd,k_,Ru,N_,KT,Sr,B_,jT=(function(t){le(e,t);function e(r,n,i){var a=t.call(this,new AB)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},ue(n)&&(n=qT[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr;var u=a._zr=Yy(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Ce(i.useDirtyRect,l),useCoarsePointer:Ce(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=xT(Le(u.flush,u),17),n=Ae(n),n&&aT(n,!0),a._theme=n,a._locale=Ik(i.locale||Ux),a._coordSysMgr=new $c;var f=a._api=N_(a);function c(h,d){return h.__prio-d.__prio}return Yu(Xf,c),Yu(ep,c),a._scheduler=new AT(a,f,ep,Xf),a._messageCenter=new YT,a._initEvents(),a.resize=Le(a.resize,a),u.animation.on("frame",a._onframe,a),R_(u,a),O_(u,a),hv(a),a}return e.prototype._onframe=function(){if(!this._disposed){B_(this);var r=this._scheduler;if(this[jt]){var n=this[jt].silent;this[At]=!0;try{Ya(this),Wn.update.call(this,null,this[jt].updateParams)}catch(l){throw this[At]=!1,this[jt]=null,l}this._zr.flush(),this[At]=!1,this[jt]=null,ns.call(this,n),is.call(this,n)}else if(r.unfinished){var i=lF,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),vd(this,a),r.performVisualTasks(a),Ru(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[At]){if(this._disposed){this.id;return}var a,o,s;if(ve(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[At]=!0,!this._model||n){var l=new sN(this._api),u=this._theme,f=this._model=new Gg;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},tp);var c={seriesTransition:s,optionChanged:!0};if(i)this[jt]={silent:a,updateParams:c},this[At]=!1,this.getZr().wakeUp();else{try{Ya(this),Wn.update.call(this,null,c)}catch(h){throw this[jt]=null,this[At]=!1,h}this._ssr||this._zr.flush(),this[jt]=null,this[At]=!1,ns.call(this,a),is.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||be.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(be.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return P(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;P(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return P(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(F_[i]){var l=s,u=s,f=-s,c=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();P(Ws,function(y,b){if(y.group===i){var w=n?y.getZr().painter.getSvgDom().innerHTML:y.renderToCanvas(Ae(r)),S=y.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),c=o(S.bottom,c),h.push({dom:w,left:S.left,top:S.top})}}),l*=d,u*=d,f*=d,c*=d;var v=f-l,g=c-u,p=No.createCanvas(),m=Yy(p,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:g}),n){var _="";return P(h,function(y){var b=y.left-l,w=y.top-u;_+='<g transform="translate('+b+","+w+')">'+y.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Rt({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),P(h,function(y){var b=new xi({style:{x:y.left*d-l,y:y.top*d-u,image:y.dom}});m.add(b)}),m.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return dd(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return dd(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Bh(i,r);return P(o,function(s,l){l.indexOf("Models")>=0&&P(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Bh(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?EB(s,l,n):PB(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;P(SF,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&xs(s,function(v){var g=Fe(v);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=W({},g.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:d},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),P(Us,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),P(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),LB(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&fx(this.getDom(),Zg,"");var n=this,i=n._api,a=n._model;P(n._componentsViews,function(o){o.dispose(a,i)}),P(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ws[n.id]},e.prototype.resize=function(r){if(!this[At]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[jt]&&(a==null&&(a=this[jt].silent),i=!0,this[jt]=null),this[At]=!0;try{i&&Ya(this),Wn.update.call(this,{type:"resize",animation:W({duration:0},r&&r.animation)})}catch(o){throw this[At]=!1,o}this[At]=!1,ns.call(this,a),is.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(ve(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!rp[r]){var i=rp[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=W({},r);return n.type=Us[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(ve(n)||(n={silent:!!n}),!!Yf[r.type]&&this._model){if(this[At]){this._pendingActions.push(r);return}var i=n.silent;pd.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&be.browser.weChat&&this._throttledZrFlush(),ns.call(this,i),is.call(this,i)}},e.prototype.updateLabelLayout=function(){Fr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Ya=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),hd(c,!0),hd(c,!1),h.plan()},hd=function(c,h){for(var d=c._model,v=c._scheduler,g=h?c._componentsViews:c._chartsViews,p=h?c._componentsMap:c._chartsMap,m=c._zr,_=c._api,y=0;y<g.length;y++)g[y].__alive=!1;h?d.eachComponent(function(S,x){S!=="series"&&b(x)}):d.eachSeries(b);function b(S){var x=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,T=!x&&p[C];if(!T){var D=on(S.type),I=h?hn.getClass(D.main,D.sub):An.getClass(D.sub);T=new I,T.init(d,_),p[C]=T,g.push(T),m.add(T.group)}S.__viewId=T.__id=C,T.__alive=!0,T.__model=S,T.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!h&&v.prepareView(T,S,d,_)}for(var y=0;y<g.length;){var w=g[y];w.__alive?y++:(!h&&w.renderTask.dispose(),m.remove(w.group),w.dispose(d,_),g.splice(y,1),p[w.__id]===w&&delete p[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Lu=function(c,h,d,v,g){var p=c._model;if(p.setUpdatePayload(d),!v){P([].concat(c._componentsViews).concat(c._chartsViews),w);return}var m={};m[v+"Id"]=d[v+"Id"],m[v+"Index"]=d[v+"Index"],m[v+"Name"]=d[v+"Name"];var _={mainType:v,query:m};g&&(_.subType=g);var y=d.excludeSeriesId,b;y!=null&&(b=we(),P(wt(y),function(S){var x=nr(S,null);x!=null&&b.set(x,!0)})),p&&p.eachComponent(_,function(S){var x=b&&b.get(S.id)!=null;if(!x)if(w0(d))if(S instanceof Rn)d.type===da&&!d.notBlur&&!S.get(["emphasis","disabled"])&&lO(S,d,c._api);else{var C=Dg(S.mainType,S.componentIndex,d.name,c._api),T=C.focusSelf,D=C.dispatchers;d.type===da&&T&&!d.notBlur&&kv(S.mainType,S.componentIndex,c._api),D&&P(D,function(I){d.type===da?fl(I):cl(I)})}else Fv(d)&&S instanceof Rn&&(cO(S,d,c._api),b0(S),Sr(c))},c),p&&p.eachComponent(_,function(S){var x=b&&b.get(S.id)!=null;x||w(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function w(S){S&&S.__alive&&S[h]&&S[h](S.__model,p,c._api,d)}},Wn={prepareAndUpdate:function(c){Ya(this),Wn.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var d=this._model,v=this._api,g=this._zr,p=this._coordSysMgr,m=this._scheduler;if(d){d.setUpdatePayload(c),m.restoreData(d,c),m.performSeriesTasks(d),p.create(d,v),m.performDataProcessorTasks(d,c),vd(this,d),p.update(d,v),r(d),m.performVisualTasks(d,c),gd(this,d,v,c,h);var _=d.get("backgroundColor")||"transparent",y=d.get("darkMode");g.setBackgroundColor(_),y!=null&&y!=="auto"&&g.setDarkMode(y),Fr.trigger("afterupdate",d,v)}},updateTransform:function(c){var h=this,d=this._model,v=this._api;if(d){d.setUpdatePayload(c);var g=[];d.eachComponent(function(m,_){if(m!=="series"){var y=h.getViewOfComponentModel(_);if(y&&y.__alive)if(y.updateTransform){var b=y.updateTransform(_,d,v,c);b&&b.update&&g.push(y)}else g.push(y)}});var p=we();d.eachSeries(function(m){var _=h._chartsMap[m.__viewId];if(_.updateTransform){var y=_.updateTransform(m,d,v,c);y&&y.update&&p.set(m.uid,1)}else p.set(m.uid,1)}),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0,dirtyMap:p}),Ru(this,d,v,c,{},p),Fr.trigger("afterupdate",d,v)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),An.markUpdateMethod(c,"updateView"),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),gd(this,h,this._api,c,{}),Fr.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,d=this._model;d&&(d.setUpdatePayload(c),d.eachSeries(function(v){v.getData().clearAllVisual()}),An.markUpdateMethod(c,"updateVisual"),r(d),this._scheduler.performVisualTasks(d,c,{visualType:"visual",setDirty:!0}),d.eachComponent(function(v,g){if(v!=="series"){var p=h.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,d,h._api,c)}}),d.eachSeries(function(v){var g=h._chartsMap[v.__viewId];g.updateVisual(v,d,h._api,c)}),Fr.trigger("afterupdate",d,this._api))},updateLayout:function(c){Wn.update.call(this,c)}},dd=function(c,h,d,v){if(c._disposed){c.id;return}for(var g=c._model,p=c._coordSysMgr.getCoordinateSystems(),m,_=Bh(g,d),y=0;y<p.length;y++){var b=p[y];if(b[h]&&(m=b[h](g,_,v))!=null)return m}},vd=function(c,h){var d=c._chartsMap,v=c._scheduler;h.eachSeries(function(g){v.updateStreamModes(g,d[g.__viewId])})},pd=function(c,h){var d=this,v=this.getModel(),g=c.type,p=c.escapeConnect,m=Yf[g],_=m.actionInfo,y=(_.update||"update").split(":"),b=y.pop(),w=y[0]!=null&&on(y[0]);this[At]=!0;var S=[c],x=!1;c.batch&&(x=!0,S=ke(c.batch,function(R){return R=rt(W({},R),c),R.batch=null,R}));var C=[],T,D=Fv(c),I=w0(c);if(I&&Px(this._api),P(S,function(R){if(T=m.action(R,d._model,d._api),T=T||W({},R),T.type=_.event||T.type,C.push(T),I){var V=_g(c),N=V.queryOptionMap,B=V.mainTypeSpecified,F=B?N.keys()[0]:"series";Lu(d,b,R,F),Sr(d)}else D?(Lu(d,b,R,"series"),Sr(d)):w&&Lu(d,b,R,w.main,w.sub)}),b!=="none"&&!I&&!D&&!w)try{this[jt]?(Ya(this),Wn.update.call(this,c),this[jt]=null):Wn[b].call(this,c)}catch(R){throw this[At]=!1,R}if(x?T={type:_.event||g,escapeConnect:p,batch:C}:T=C[0],this[At]=!1,!h){var M=this._messageCenter;if(M.trigger(T.type,T),D){var O={type:"selectchanged",escapeConnect:p,selected:hO(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};M.trigger(O.type,O)}}},ns=function(c){for(var h=this._pendingActions;h.length;){var d=h.shift();pd.call(this,d,c)}},is=function(c){!c&&this.trigger("updated")},R_=function(c,h){c.on("rendered",function(d){h.trigger("rendered",d),c.animation.isFinished()&&!h[jt]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},O_=function(c,h){c.on("mouseover",function(d){var v=d.target,g=xs(v,hl);g&&(uO(g,d,h._api),Sr(h))}).on("mouseout",function(d){var v=d.target,g=xs(v,hl);g&&(fO(g,d,h._api),Sr(h))}).on("click",function(d){var v=d.target,g=xs(v,function(_){return Fe(_).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",m=Fe(g);h._api.dispatchAction({type:p,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],d=[],v=!1;if(c.eachComponent(function(_,y){var b=y.get("zlevel")||0,w=y.get("z")||0,S=y.getZLevelKey();v=v||!!S,(_==="series"?d:h).push({zlevel:b,z:w,idx:y.componentIndex,type:_,key:S})}),v){var g=h.concat(d),p,m;Yu(g,function(_,y){return _.zlevel===y.zlevel?_.z-y.z:_.zlevel-y.zlevel}),P(g,function(_){var y=c.getComponent(_.type,_.idx),b=_.zlevel,w=_.key;p!=null&&(b=Math.max(p,b)),w?(b===p&&w!==m&&b++,m=w):m&&(b===p&&b++,m=""),p=b,y.setZLevel(b)})}}gd=function(c,h,d,v,g){n(h),k_(c,h,d,v,g),P(c._chartsViews,function(p){p.__alive=!1}),Ru(c,h,d,v,g),P(c._chartsViews,function(p){p.__alive||p.remove(h,d)})},k_=function(c,h,d,v,g,p){P(p||c._componentsViews,function(m){var _=m.__model;u(_,m),m.render(_,h,d,v),s(_,m),f(_,m)})},Ru=function(c,h,d,v,g,p){var m=c._scheduler;g=W(g||{},{updatedSeries:h.getSeries()}),Fr.trigger("series:beforeupdate",h,d,g);var _=!1;h.eachSeries(function(y){var b=c._chartsMap[y.__viewId];b.__alive=!0;var w=b.renderTask;m.updatePayload(w,v),u(y,b),p&&p.get(y.uid)&&w.dirty(),w.perform(m.getPerformArgs(w))&&(_=!0),b.group.silent=!!y.get("silent"),o(y,b),b0(y)}),m.unfinished=_||m.unfinished,Fr.trigger("series:layoutlabels",h,d,g),Fr.trigger("series:transition",h,d,g),h.eachSeries(function(y){var b=c._chartsMap[y.__viewId];s(y,b),f(y,b)}),a(c,h),Fr.trigger("series:afterupdate",h,d,g)},Sr=function(c){c[fd]=!0,c.getZr().wakeUp()},B_=function(c){c[fd]&&(c.getZr().storage.traverse(function(h){Hs(h)||i(h)}),c[fd]=!1)};function i(c){for(var h=[],d=c.currentStates,v=0;v<d.length;v++){var g=d[v];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}c.selected&&c.states.select&&h.push("select"),c.hoverState===Tg&&c.states.emphasis?h.push("emphasis"):c.hoverState===xg&&c.states.blur&&h.push("blur"),c.useStates(h)}function a(c,h){var d=c._zr,v=d.storage,g=0;v.traverse(function(p){p.isGroup||g++}),g>h.get("hoverLayerThreshold")&&!be.node&&!be.worker&&h.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=c._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var d=c.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(c,h){if(!c.preventAutoZ){var d=c.get("z")||0,v=c.get("zlevel")||0;h.eachRendered(function(g){return l(g,d,v,-1/0),!0})}}function l(c,h,d,v){var g=c.getTextContent(),p=c.getTextGuideLine(),m=c.isGroup;if(m)for(var _=c.childrenRef(),y=0;y<_.length;y++)v=Math.max(l(_[y],h,d,v),v);else c.z=h,c.zlevel=d,v=Math.max(c.z2,v);if(g&&(g.z=h,g.zlevel=d,isFinite(v)&&(g.z2=v+2)),p){var b=c.textGuideLineConfig;p.z=h,p.zlevel=d,isFinite(v)&&(p.z2=v+(b&&b.showAbove?1:-1))}return v}function u(c,h){h.eachRendered(function(d){if(!Hs(d)){var v=d.getTextContent(),g=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function f(c,h){var d=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),g=d.get("duration"),p=g>0?{duration:g,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Hs(m))return;if(m instanceof Qe&&pO(m),m.__dirty){var _=m.prevStates;_&&m.useStates(_)}if(v){m.stateTransition=p;var y=m.getTextContent(),b=m.getTextGuideLine();y&&(y.stateTransition=p),b&&(b.stateTransition=p)}m.__dirty&&i(m)}})}N_=function(c){return new((function(h){le(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);v=v.parent}},d.prototype.enterEmphasis=function(v,g){fl(v,g),Sr(c)},d.prototype.leaveEmphasis=function(v,g){cl(v,g),Sr(c)},d.prototype.enterBlur=function(v){sO(v),Sr(c)},d.prototype.leaveBlur=function(v){Ax(v),Sr(c)},d.prototype.enterSelect=function(v){Ix(v),Sr(c)},d.prototype.leaveSelect=function(v){Mx(v),Sr(c)},d.prototype.getModel=function(){return c.getModel()},d.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},d})(nT))(c)},KT=function(c){function h(d,v){for(var g=0;g<d.length;g++){var p=d[g];p[cd]=v}}P(Us,function(d,v){c._messageCenter.on(v,function(g){if(F_[c.group]&&c[cd]!==L_){if(g&&g.escapeConnect)return;var p=c.makeActionFromEvent(g),m=[];P(Ws,function(_){_!==c&&_.group===c.group&&m.push(_)}),h(m,L_),P(m,function(_){_[cd]!==bF&&_.dispatchAction(p)}),h(m,wF)}})})}})(),e})(Xr),qg=jT.prototype;qg.on=GT("on");qg.off=GT("off");qg.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var SF=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Yf={},Us={},ep=[],tp=[],Xf=[],qT={},rp={},Ws={},F_={},xF=+new Date-0,Zg="_echarts_instance_";function TF(t,e,r){{var n=CF(t);if(n)return n}var i=new jT(t,e,r);return i.id="ec_"+xF++,Ws[i.id]=i,fx(t,Zg,i.id),KT(i),Fr.trigger("afterinit",i),i}function CF(t){return Ws[JR(t,Zg)]}function ZT(t,e){qT[t]=e}function JT(t){$e(tp,t)<0&&tp.push(t)}function QT(t,e){Qg(ep,t,e,hF)}function DF(t){Jg("afterinit",t)}function AF(t){Jg("afterupdate",t)}function Jg(t,e){Fr.on(t,e)}function Ma(t,e,r){Re(e)&&(r=e,e="");var n=ve(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!Us[e]&&(Wr(P_.test(n)&&P_.test(e)),Yf[n]||(Yf[n]={action:r,actionInfo:t}),Us[e]=n)}function IF(t,e){$c.register(t,e)}function MF(t,e){Qg(Xf,t,e,zT,"layout")}function Ea(t,e){Qg(Xf,t,e,HT,"visual")}var V_=[];function Qg(t,e,r,n,i){if((Re(e)||ve(e))&&(r=e,e=n),!($e(V_,r)>=0)){V_.push(r);var a=AT.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function eC(t,e){rp[t]=e}function EF(t,e,r){var n=sF("registerMap");n&&n(t,e,r)}var PF=BN;Ea(jg,dB);Ea(Yc,vB);Ea(Yc,pB);Ea(jg,IB);Ea(Yc,MB);Ea($T,aF);JT(aT);QT(fF,_N);eC("default",gB);Ma({type:da,event:da,update:da},mt);Ma({type:Ju,event:Ju,update:Ju},mt);Ma({type:Fs,event:Fs,update:Fs},mt);Ma({type:Qu,event:Qu,update:Qu},mt);Ma({type:Vs,event:Vs,update:Vs},mt);ZT("light",DB);ZT("dark",PT);function as(t){return t==null?0:t.length||1}function z_(t){return t}var tC=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||z_,this._newKeyGetter=i||z_,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=as(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=as(u),h=as(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=as(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=as(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),LF=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function RF(t,e){var r={},n=r.encode={},i=we(),a=[],o=[],s={};P(t.dimensions,function(h){var d=t.getDimensionInfo(h),v=d.coordDim;if(v){var g=d.coordDimIndex;md(n,v)[g]=h,d.isExtraCoord||(i.set(v,1),kF(d.type)&&(a[0]=h),md(s,v)[g]=t.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(h)}Zx.each(function(p,m){var _=md(n,m),y=d.otherDims[m];y!=null&&y!==!1&&(_[y]=d.name)})});var l=[],u={};i.each(function(h,d){var v=n[d];u[d]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=ke(l,function(h){return t.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new LF(s,e),r}function md(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function OF(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function kF(t){return!(t==="ordinal"||t==="time")}var nf=(function(){function t(e){this.otherDims={},e!=null&&W(this,e)}return t})(),NF=dt(),BF={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},rC=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=aC(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Ce(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=sT(this.source),n=!oC(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=BF[u]||"f",f&&(i+=f.uid),i+="$"}var d=this.source,v=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function nC(t){return t instanceof rC}function iC(t){for(var e=we(),r=0;r<(t||[]).length;r++){var n=t[r],i=ve(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function aC(t){var e=NF(t);return e.dimNameMap||(e.dimNameMap=iC(t.dimensionsDefine))}function oC(t){return t>30}var os=ve,Yn=ke,FF=typeof Int32Array>"u"?Array:Int32Array,VF="e\0\0",H_=-1,zF=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],HF=["_approximateExtent"],$_,Ou,ss,ls,yd,us,_d,yl=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;nC(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=ue(c)?new nf({name:c}):c instanceof nf?c:new nf(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var v=h.otherDims=h.otherDims||{};o.push(d),a[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),i&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=we();P(o,function(p){g.set(a[p].storeDimIndex,p)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(st(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof Uv&&(a=e),!a){var o=this.dimensions,s=Ug(e)||ar(e)?new lT(e,o.length):e;a=new Uv;var l=Yn(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=RF(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&_d(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==vi&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Rr;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&HR(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=nr(h,null));var d=c.id;o[f]==null&&d!=null&&(o[f]=nr(d,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)_d(this,f);$_(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){os(e)?W(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=ss(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return Ou(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return te(e)?i.getValues(Yn(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?H_:i},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){Re(e)&&(n=r,r=e,e=[]);var i=n||this,a=Yn(ls(e),this._getStoreDimIndex,this);this._store.each(a,i?Le(r,i):r)},t.prototype.filterSelf=function(e,r,n){Re(e)&&(n=r,r=e,e=[]);var i=n||this,a=Yn(ls(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Le(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=ot(e);return P(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){Re(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=Yn(ls(e),this._getStoreDimIndex,this),s=us(this);return s._store=this._store.map(o,a?Le(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=Yn(ls(e),this._getStoreDimIndex,this);this._store.modify(o,a?Le(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=us(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=us(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=us(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Ze(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new tC(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Ou(e,n)},function(n){return Ou(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},os(e)?W(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),te(a)?a=a.slice():os(a)&&(a=W({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,os(r)?W(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){os(e)?W(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?W(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;Q2(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){P(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Yn(this.dimensions,this._getDimInfo,this),this.hostModel)),yd(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];Re(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(fg(arguments)))})},t.internalField=(function(){$_=function(e){var r=e._invertedIndicesMap;P(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new FF(o.categories.length);for(var l=0;l<n.length;l++)n[l]=H_;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},ss=function(e,r,n){return nr(e._getCategory(r,n),null)},Ou=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=ss(e,e._idDimIdx,r)),n==null&&(n=VF+r),n},ls=function(e){return te(e)||(e=e!=null?[e]:[]),e},us=function(e){var r=new t(e._schema?e._schema:Yn(e.dimensions,e._getDimInfo,e),e.hostModel);return yd(r,e),r},yd=function(e,r){P(zF.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,P(HF,function(n){e[n]=Ae(r[n])}),e._calculationInfo=W({},r._calculationInfo)},_d=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=ss(e,a,r)),l==null&&o!=null&&(i[r]=l=ss(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}})(),t})();function em(t,e){Ug(t)||(t=Wg(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=we(),a=[],o=GF(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&oC(o),l=n===t.dimensionsDefine,u=l?aC(t):iC(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=we(f),h=new dT(o),d=0;d<h.length;d++)h[d]=-1;function v(T){var D=h[T];if(D<0){var I=n[T],M=ve(I)?I:{name:I},O=new nf,R=M.name;R!=null&&u.get(R)!=null&&(O.name=O.displayName=R),M.type!=null&&(O.type=M.type),M.displayName!=null&&(O.displayName=M.displayName);var V=a.length;return h[T]=V,O.storeDimIndex=T,a.push(O),O}return a[D]}if(!s)for(var d=0;d<o;d++)v(d);c.each(function(T,D){var I=wt(T).slice();if(I.length===1&&!ue(I[0])&&I[0]<0){c.set(D,!1);return}var M=c.set(D,[]);P(I,function(O,R){var V=ue(O)?u.get(O):O;V!=null&&V<o&&(M[R]=V,p(v(V),D,R))})});var g=0;P(r,function(T){var D,I,M,O;if(ue(T))D=T,O={};else{O=T,D=O.name;var R=O.ordinalMeta;O.ordinalMeta=null,O=W({},O),O.ordinalMeta=R,I=O.dimsDef,M=O.otherDims,O.name=O.coordDim=O.coordDimIndex=O.dimsDef=O.otherDims=null}var V=c.get(D);if(V!==!1){if(V=wt(V),!V.length)for(var N=0;N<(I&&I.length||1);N++){for(;g<o&&v(g).coordDim!=null;)g++;g<o&&V.push(g++)}P(V,function(B,F){var G=v(B);if(l&&O.type!=null&&(G.type=O.type),p(rt(G,O),D,F),G.name==null&&I){var J=I[F];!ve(J)&&(J={name:J}),G.name=G.displayName=J.name,G.defaultTooltip=J.defaultTooltip}M&&rt(G.otherDims,M)})}});function p(T,D,I){Zx.get(D)!=null?T.otherDims[D]=I:(T.coordDim=D,T.coordDimIndex=I,i.set(D,!0))}var m=e.generateCoord,_=e.generateCoordCount,y=_!=null;_=m?_||1:0;var b=m||"value";function w(T){T.name==null&&(T.name=T.coordDim)}if(s)P(a,function(T){w(T)}),a.sort(function(T,D){return T.storeDimIndex-D.storeDimIndex});else for(var S=0;S<o;S++){var x=v(S),C=x.coordDim;C==null&&(x.coordDim=UF(b,i,y),x.coordDimIndex=0,(!m||_<=0)&&(x.isExtraCoord=!0),_--),w(x),x.type==null&&(tT(t,S)===cr.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return $F(a),new rC({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function $F(t){for(var e=we(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function GF(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return P(e,function(a){var o;ve(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function UF(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var WF=(function(){function t(e){this.coordSysDims=[],this.axisMap=we(),this.categoryAxisMap=we(),this.coordSysName=e}return t})();function YF(t){var e=t.get("coordinateSystem"),r=new WF(e),n=XF[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var XF={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",ra).models[0],a=t.getReferringComponents("yAxis",ra).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Xa(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Xa(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",ra).models[0];e.coordSysDims=["single"],r.set("single",i),Xa(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",ra).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Xa(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Xa(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();P(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Xa(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Xa(t){return t.get("type")==="category"}function KF(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;jF(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,h;if(P(a,function(_,y){ue(_)&&(a[y]=_={name:_}),l&&!_.isExtraCoord&&(!n&&!u&&_.ordinalMeta&&(u=_),!f&&_.type!=="ordinal"&&_.type!=="time"&&(!i||i===_.coordDim)&&(f=_))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,v=f.type,g=0;P(a,function(_){_.coordDim===d&&g++});var p={name:c,coordDim:d,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(h,v),m.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(a.push(p),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function jF(t){return!nC(t.schema)}function qF(t,e){var r=t.get("coordinateSystem"),n=$c.get(r),i;return e&&e.coordSysDims&&(i=ke(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=OF(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function ZF(t,e,r){var n,i;return r&&P(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function JF(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;t?(a=!0,i=Wg(t)):(i=n.getSource(),a=i.sourceFormat===Rr);var o=YF(e),s=qF(e,o),l=r.useEncodeDefaulter,u=Re(l)?l:l?it(Xk,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=em(i,f),h=ZF(c.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(c),v=KF(e,{schema:c,store:d}),g=new yl(c,e);g.setCalculationInfo(v);var p=h!=null&&QF(i)?function(m,_,y,b){return b===h?y:this.defaultDimValueGetter(m,_,y,b)}:null;return g.hasItemOption=!1,g.initData(a?i:d,null,p),g}function QF(t){if(t.sourceFormat===Rr){var e=eV(t.data||[]);return!te(kl(e))}}function eV(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}function sC(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function tV(t){var e=t.get("interval");return e??"auto"}function rV(t){return t.type==="category"&&tV(t.getLabelModel())===0}var G_=[],nV={registerPreprocessor:JT,registerProcessor:QT,registerPostInit:DF,registerPostUpdate:AF,registerUpdateLifecycle:Jg,registerAction:Ma,registerCoordinateSystem:IF,registerLayout:MF,registerVisual:Ea,registerTransform:PF,registerLoading:eC,registerMap:EF,registerImpl:oF,PRIORITY:_F,ComponentModel:We,ComponentView:hn,SeriesModel:Rn,ChartView:An,registerComponentModel:function(t){We.registerClass(t)},registerComponentView:function(t){hn.registerClass(t)},registerSeriesModel:function(t){Rn.registerClass(t)},registerChartView:function(t){An.registerClass(t)},registerSubTypeDefaulter:function(t,e){We.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){OR(t,e)}};function Po(t){if(te(t)){P(t,function(e){Po(e)});return}$e(G_,t)>=0||(G_.push(t),Re(t)&&(t={install:t}),t.install(nV))}function iV(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Nf(o,a):null;e.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return e}function aV(t){var e=[];t.sort(function(g,p){return p.priority-g.priority});var r=new Oe(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;i<t.length;i++){var a=t[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,h=!1,d=0;d<e.length;d++){var v=e[d];if(r.intersect(v.rect)){if(o&&v.axisAligned){h=!0;break}if(v.obb||(v.obb=new Nf(v.localRect,v.transform)),c||(c=new Nf(s,l)),c.intersect(v.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}function U_(t,e,r){r=r||{};var n=t.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,v=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));v[h.onZero]=Math.max(Math.min(g,v[1]),v[0])}a.position=[u==="y"?v[h[l]]:c[0],u==="x"?v[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?v[h[s]]-v[h.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),bi(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}var ii=Math.PI,va=(function(){function t(e,r){this.group=new yt,this.opt=r,this.axisModel=e,rt(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new yt({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!W_[e]},t.prototype.add=function(e){W_[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var i=ax(r-e),a,o;return Rf(i)?(o=n>0?"top":"bottom",a="center"):Rf(i-ii)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<ii?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),W_={axisLine:function(t,e,r,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(yr(s,s,o),yr(l,l,o));var f=W({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Ia({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});kg(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var h=e.get(["axisLine","symbol"]);if(h!=null){var d=e.get(["axisLine","symbolSize"]);ue(h)&&(h=[h,h]),(ue(d)||st(d))&&(d=[d,d]);var v=Wc(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],p=d[1];P([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,_){if(h[_]!=="none"&&h[_]!=null){var y=Hl(h[_],-g/2,-p/2,g,p,f.stroke,!0),b=m.r+m.offset,w=u?l:s;y.attr({rotation:m.rotate,x:w[0]+b*Math.cos(t.rotation),y:w[1]-b*Math.sin(t.rotation),silent:!0,z2:11}),r.add(y)}})}}},axisTickLabel:function(t,e,r,n){var i=lV(r,n,e,t),a=fV(r,n,e,t);if(sV(e,a,i),uV(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=iV(ke(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));aV(o)}},axisName:function(t,e,r,n){var i=bi(t.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,X_(a)?t.labelOffset+o*l:0],h,d=e.get("nameRotate");d!=null&&(d=d*ii/180);var v;X_(a)?h=va.innerTextLayout(t.rotation,d??t.rotation,o):(h=oV(t.rotation,a,d||0,u),v=t.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),p=e.get("nameTruncate",!0)||{},m=p.ellipsis,_=bi(t.nameTruncateMaxWidth,p.maxWidth,v),y=new kt({x:c[0],y:c[1],rotation:h.rotation,silent:va.isLabelSilent(e),style:cn(s,{text:i,font:g,overflow:"truncate",width:_,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Bc({el:y,componentModel:e,itemName:i}),y.__fullText=i,y.anid="name",e.get("triggerEvent")){var b=va.makeAxisEventDataBase(e);b.targetType="axisName",b.name=i,Fe(y).eventData=b}n.add(y),y.updateTransform(),r.add(y),y.decomposeTransform()}}};function oV(t,e,r,n){var i=ax(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Rf(i-ii/2)?(o=l?"bottom":"top",a="center"):Rf(i-ii*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<ii*1.5&&i>ii/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function sV(t,e,r){if(!rV(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=r[0],f=r[1],c=r[r.length-1],h=r[r.length-2];n===!1?(xr(a),xr(u)):Y_(a,o)&&(n?(xr(o),xr(f)):(xr(a),xr(u))),i===!1?(xr(s),xr(c)):Y_(l,s)&&(i?(xr(l),xr(h)):(xr(s),xr(c)))}}function xr(t){t&&(t.ignore=!0)}function Y_(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=dg([]);return vg(i,i,-t.rotation),r.applyTransform(wo([],i,t.getLocalTransform())),n.applyTransform(wo([],i,e.getLocalTransform())),r.intersect(n)}}function X_(t){return t==="middle"||t==="center"}function lC(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(yr(o,o,e),yr(s,s,e));var f=new Ia({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});kg(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f)}return a}function lV(t,e,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=lC(u,e.transform,l,rt(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}}function uV(t,e,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=rt(s.getLineStyle(),rt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=lC(o[f],e.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)t.add(c[h])}}function fV(t,e,r,n){var i=r.axis,a=bi(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(bi(n.labelRotate,o.get("rotate"))||0)*ii/180,f=va.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),h=[],d=va.isLabelSilent(r),v=r.get("triggerEvent");return P(l,function(g,p){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,_=g.formattedLabel,y=g.rawLabel,b=o;if(c&&c[m]){var w=c[m];ve(w)&&w.textStyle&&(b=new Ze(w.textStyle,o,r.ecModel))}var S=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(m),C=b.getShallow("align",!0)||f.textAlign,T=Ce(b.getShallow("alignMinLabel",!0),C),D=Ce(b.getShallow("alignMaxLabel",!0),C),I=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||f.textVerticalAlign,M=Ce(b.getShallow("verticalAlignMinLabel",!0),I),O=Ce(b.getShallow("verticalAlignMaxLabel",!0),I),R=new kt({x,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:d,z2:10+(g.level||0),style:cn(b,{text:_,align:p===0?T:p===l.length-1?D:C,verticalAlign:p===0?M:p===l.length-1?O:I,fill:Re(S)?S(i.type==="category"?y:i.type==="value"?m+"":m,p):S})});if(R.anid="label_"+m,Bc({el:R,componentModel:r,itemName:_,formatterParamsExtra:{isTruncated:function(){return R.isTruncated},value:y,tickIndex:p}}),v){var V=va.makeAxisEventDataBase(r);V.targetType="axisLabel",V.value=y,V.tickIndex=p,i.type==="category"&&(V.dataIndex=m),Fe(R).eventData=V}e.add(R),R.updateTransform(),h.push(R),t.add(R),R.decomposeTransform()}),h}}function cV(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return hV(r,t,e),r.seriesInvolved&&vV(r,t),r}function hV(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];P(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=_l(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(P(s.getAxes(),it(g,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",d=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&P(v.baseAxes,it(g,d?"cross":!0,h)),d&&P(v.otherAxes,it(g,"cross",!1))}function g(p,m,_){var y=_.model.getModel("axisPointer",i),b=y.get("show");if(!(!b||b==="auto"&&!p&&!np(y))){m==null&&(m=y.get("triggerTooltip")),y=p?dV(_,c,i,e,p,m):y;var w=y.get("snap"),S=y.get("triggerEmphasis"),x=_l(_.model),C=m||w||_.type==="category",T=t.axesInfo[x]={key:x,axis:_,coordSys:s,axisPointerModel:y,triggerTooltip:m,triggerEmphasis:S,involveSeries:C,snap:w,useHandle:np(y),seriesModels:[],linkGroup:null};u[x]=T,t.seriesInvolved=t.seriesInvolved||C;var D=pV(a,_);if(D!=null){var I=o[D]||(o[D]={axesInfo:{}});I.axesInfo[x]=T,I.mapper=a[D].mapper,T.linkGroup=I}}}})}function dV(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};P(s,function(h){l[h]=Ae(o.get(h))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&rt(u,c.textStyle)}}return t.model.getModel("axisPointer",new Ze(l,r,n))}function vV(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||P(t.coordSysAxesInfo[_l(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function pV(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(bd(a[n+"AxisId"],r.id)||bd(a[n+"AxisIndex"],r.componentIndex)||bd(a[n+"AxisName"],r.name))return i}}function bd(t,e){return t==="all"||te(t)&&$e(t,e)>=0||t===e}function gV(t){var e=tm(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=np(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function tm(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[_l(t)]}function mV(t){var e=tm(t);return e&&e.axisPointerModel}function np(t){return!!t.get(["handle","show"])}function _l(t){return t.type+"||"+t.id}var K_={},yV=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&gV(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=mV(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){K_[r]=n},e.getAxisPointerClass=function(r){return r&&K_[r]},e.type="axis",e})(hn),Ji=dt(),j_=Ae,wd=Le,_V=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new yt,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var h=it(q_,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}J_(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=tm(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=Ji(e).pointerEl=new fk[a.type](j_(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=Ji(e).labelEl=new kt(j_(r.label));e.add(a),Z_(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=Ji(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=Ji(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Z_(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Bg(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ac(u.event)},onmousedown:wd(this._onHandleDragMove,this,0,0),drift:wd(this._onHandleDragMove,this),ondragend:wd(this._onHandleDragEnd,this)}),n.add(i)),J_(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");te(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,TT(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){q_(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Sd(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Sd(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Sd(i)),Ji(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Kv(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function q_(t,e,r,n){uC(Ji(r).lastProp,n)||(Ji(r).lastProp=n,e?Ti(r,n,t):(r.stopAnimation(),r.attr(n)))}function uC(t,e){if(ve(t)&&ve(e)){var r=!0;return P(e,function(n,i){r=r&&uC(t[i],n)}),!!r}else return t===e}function Z_(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Sd(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function J_(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function bV(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function wV(t,e,r,n,i){var a=r.get("value"),o=fC(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=zl(s.get("padding")||0),u=s.getFont(),f=Q1(o,u),c=i.position,h=f.width+l[1]+l[3],d=f.height+l[0]+l[2],v=i.align;v==="right"&&(c[0]-=h),v==="center"&&(c[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(c[1]-=d),g==="middle"&&(c[1]-=d/2),SV(c,h,d,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:cn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function SV(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function fC(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:sC(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};P(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),ue(o)?a=o.replace("{value}",a):Re(o)&&(a=o(s))}return a}function cC(t,e,r){var n=fi();return vg(n,n,r.rotation),al(n,n,r.position),Ng([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function xV(t,e,r,n,i,a){var o=va.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),wV(e,n,i,a,{position:cC(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function TV(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function CV(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var DV=(function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=Q_(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=bV(a),d=AV[u](s,c,f);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=U_(l.model,i);xV(n,r,v,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=U_(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=cC(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Q_(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,d=[h,h];d[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[f]}},e})(_V);function Q_(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var AV={line:function(t,e,r){var n=TV([e,r[0]],[e,r[1]],eb(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:CV([e-n/2,r[0]],[n,i],eb(t))}}};function eb(t){return t.dim==="x"?0:1}var IV=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e})(We),Tn=dt(),MV=P;function hC(t,e,r){if(!be.node){var n=e.getZr();Tn(n).records||(Tn(n).records={}),EV(n,e);var i=Tn(n).records[t]||(Tn(n).records[t]={});i.handler=r}}function EV(t,e){if(Tn(t).initialized)return;Tn(t).initialized=!0,r("click",it(tb,"click")),r("mousemove",it(tb,"mousemove")),r("globalout",LV);function r(n,i){t.on(n,function(a){var o=RV(e);MV(Tn(t).records,function(s){s&&i(s,a,o.dispatchAction)}),PV(o.pendings,e)})}}function PV(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function LV(t,e,r){t.handler("leave",null,r)}function tb(t,e,r,n){e.handler(t,r,n)}function RV(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function ip(t,e){if(!be.node){var r=e.getZr(),n=(Tn(r).records||{})[t];n&&(Tn(r).records[t]=null)}}var OV=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";hC("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){ip("axisPointer",n)},e.prototype.dispose=function(r,n){ip("axisPointer",n)},e.type="axisPointer",e})(hn);function dC(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Nl(a,t);if(o==null||o<0||te(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,d=c==="x"||c==="radius"?1:0,v=a.mapDimension(h),g=[];g[d]=a.get(v,o),g[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(ke(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var rb=dt();function kV(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Le(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){af(i)&&(i=dC({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=af(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||af(i),h={},d={},v={list:[],map:{}},g={showPointer:it(BV,d),showTooltip:it(FV,v)};P(s.coordSysMap,function(m,_){var y=l||m.containPoint(i);P(s.coordSysAxesInfo[_],function(b,w){var S=b.axis,x=$V(u,b);if(!c&&y&&(!u||x)){var C=x&&x.value;C==null&&!l&&(C=S.pointToData(i)),C!=null&&nb(b,C,g,!1,h)}})});var p={};return P(f,function(m,_){var y=m.linkGroup;y&&!d[_]&&P(y.axesInfo,function(b,w){var S=d[w];if(b!==m&&S){var x=S.value;y.mapper&&(x=m.axis.scale.parse(y.mapper(x,ib(b),ib(m)))),p[m.key]=x}})}),P(p,function(m,_){nb(f[_],m,g,!0,h)}),VV(d,f,h),zV(v,i,t,o),HV(f,o,r),h}}function nb(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=NV(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&W(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function NV(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return P(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(f,t,r);h=d.dataIndices,c=d.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],t,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var v=t-c,g=Math.abs(v);g<=o&&((g<o||v>=0&&s<0)&&(o=g,s=v,i=c,a.length=0),P(h,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function BV(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function FV(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=_l(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function VV(t,e,r){var n=r.axesInfo=[];P(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function zV(t,e,r,n){if(af(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function HV(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=rb(n)[i]||{},o=rb(n)[i]={};P(t,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&P(c.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=h})});var s=[],l=[];P(a,function(u,f){!o[f]&&l.push(u)}),P(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $V(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function ib(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function af(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function GV(t){yV.registerAxisPointerClass("CartesianAxisPointer",DV),t.registerComponentModel(IV),t.registerComponentView(OV),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!te(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=cV(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},kV)}var ab=yr,vC=(function(t){le(e,t);function e(r){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ta,n._rawTransformable=new ta,n.name=r,n}return e.prototype.setBoundingRect=function(r,n,i,a){return this._rect=new Oe(r,n,i,a),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(r,n,i,a){this._transformTo(r,n,i,a),this._viewRect=new Oe(r,n,i,a)},e.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Oe(r,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(r,n){r&&(this._center=[_t(r[0],n.getWidth()),_t(r[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,i=r.y+r.height/2;return[n,i]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=yr([],a,r),i=yr([],i,r),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),k1(this.transform||(this.transform=[]),n.transform||fi()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],pg(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,i=new ta;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},e.prototype.dataToPoint=function(r,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?ab(i,r,a):Bt(i,r)},e.prototype.pointToData=function(r){var n=this.invTransform;return n?ab([],r,n):[r[0],r[1]]},e.prototype.convertToPixel=function(r,n,i){var a=ob(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(r,n,i){var a=ob(n);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},e.dimensions=["x","y"],e})(ta);function ob(t){var e=t.seriesModel;return e?e.coordinateSystem:null}function sb(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function UV(t,e,r,n){var i=t.getZoom(),a=t.getCenter(),o=e.zoom,s=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(sb(t,s),n)),o!=null){t.scaleX*=o,t.scaleY*=o;var l=(e.originX-t.x)*(o-1),u=(e.originY-t.y)*(o-1);t.x-=l,t.y-=u,t.updateTransform(),t.setCenter(sb(t,s),n),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var lb="\0_ec_interaction_mutex";function ub(t,e){return!!WV(t)[e]}function WV(t){return t[lb]||(t[lb]={})}Ma({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},mt);var pC=(function(t){le(e,t);function e(r){var n=t.call(this)||this;n._zr=r;var i=Le(n._mousedownHandler,n),a=Le(n._mousemoveHandler,n),o=Le(n._mouseupHandler,n),s=Le(n._mousewheelHandler,n),l=Le(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=rt(Ae(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",i),r.on("mousemove",a),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",i),r.off("mousemove",a),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(r){this.pointerChecker=r},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(r){if(!Sy(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this.pointerChecker&&this.pointerChecker(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!of("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||ub(this._zr,"globalPan"))){var n=r.offsetX,i=r.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Ac(r.event),gC(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(r){Sy(r)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(r){var n=of("zoomOnMouseWheel",r,this._opt),i=of("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;xd(this,"zoom","zoomOnMouseWheel",r,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(a),h=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);xd(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(r){if(!ub(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;xd(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e})(Xr);function xd(t,e,r,n,i){t.pointerChecker&&t.pointerChecker(n,i.originX,i.originY)&&(Ac(n.event),gC(t,e,r,n,i))}function gC(t,e,r,n,i){i.isAvailableBehavior=Le(of,null,r,n),t.trigger(e,i)}function of(t,e,r){var n=r[t];return!t||n&&(!ue(n)||e.event[n+"Key"])}function YV(t,e,r){var n=t.target;n.x+=e,n.y+=r,n.dirty()}function XV(t,e,r,n){var i=t.target,a=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var KV={axisPointer:1,tooltip:1,brush:1};function jV(t,e,r){var n=e.getComponentByElement(t.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!KV.hasOwnProperty(n.mainType)&&i&&i.model!==r}function qV(t,e){var r=zl(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Rt({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var ZV=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e})(We);function mC(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function yC(t){if(be.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var _C=yC(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),JV=yC(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function bC(t,e){if(!t)return e;e=Kx(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function QV(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var ez=bC(JV,"transition"),rm=bC(_C,"transform"),tz="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(be.transform3dSupported?"will-change:transform;":"");function rz(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function nz(t,e,r){if(!ue(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=dl(e);var a=rz(r),o=Math.max(Math.round(i)*1.5,6),s="",l=rm+":",u;$e(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+d+"px";var v=e+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function iz(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,i="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,i+=be.transformSupported?","+rm+n:",left"+n+",top"+n),ez+":"+i}function fb(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!be.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=be.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+rm+":"+o+";":[["top",0],["left",0],[_C,o]]}function az(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=Ce(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),P(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function oz(t,e,r){var n=[],i=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),f=t.getModel("textStyle"),c=bT(t,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&i&&n.push(iz(i,r)),a&&n.push("background-color:"+a),P(["width","color","radius"],function(d){var v="border-"+d,g=Kx(v),p=t.get(g);p!=null&&n.push(v+":"+p+(d==="color"?"":"px"))}),n.push(az(f)),c!=null&&n.push("padding:"+zl(c).join("px ")+"px"),n.join(";")+";"}function cb(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&PL(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var sz=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,be.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(ue(a)?document.querySelector(a):il(a)?a:Re(a)&&a(e.getDom()));cb(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Cr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=QV(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=tz+oz(e,!this._firstShow,this._longHide)+fb(a[0],a[1],!0)+("border-color:"+dl(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ue(a)&&n.get("trigger")==="item"&&!mC(n)&&(s=nz(n,i,a)),ue(e))o.innerHTML=e+s;else if(e){o.innerHTML="",te(e)||(e=[e]);for(var l=0;l<e.length;l++)il(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(cb(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=fb(n[0],n[1]);P(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;r.visibility="hidden",r.opacity="0",be.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Le(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t})(),lz=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),db(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;ve(e)&&Jt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new kt({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:bT(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),P(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),P(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=hb(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;db(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=qn(a.borderWidth||0),s=hb(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Le(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function qn(t){return Math.max(0,t)}function hb(t){var e=qn(t.shadowBlur||0),r=qn(t.shadowOffsetX||0),n=qn(t.shadowOffsetY||0);return{left:qn(e-r),right:qn(e+r),top:qn(e-n),bottom:qn(e+n)}}function db(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var uz=new Rt({shape:{x:-1,y:-1,width:2,height:2}}),fz=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(be.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=QR(i.get("renderMode"));this._tooltipContent=a==="richText"?new lz(n):new sz(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(be.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?TT(this,"_updatePosition",50,"fixRate"):Kv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");hC("itemTooltip",this._api,Le(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||be.node||!i.getDom())){var o=vb(a,i);this._ticket="";var s=a.dataByCoordSys,l=vz(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=uz;f.x=a.x,f.y=a.y,f.update(),Fe(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=dC(a,n),h=c.point[0],d=c.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(vb(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=fs([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Fe(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;xs(i,function(f){if(Fe(f).dataIndex!=null)return l=f,!0;if(Fe(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Le(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=fs([n.tooltipOption],a),l=this._renderMode,u=[],f=Sa("section",{blocks:[],noHeader:!0}),c=[],h=new ld;P(r,function(_){P(_.dataByAxis,function(y){var b=i.getComponent(y.axisDim+"Axis",y.axisIndex),w=y.value;if(!(!b||w==null)){var S=fC(w,b.axis,i,y.seriesDataIndices,y.valueLabelOpt),x=Sa("section",{header:S,noHeader:!an(S),sortBlocks:!0,blocks:[]});f.blocks.push(x),P(y.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,I=T.getDataParams(D);if(!(I.dataIndex<0)){I.axisDim=y.axisDim,I.axisIndex=y.axisIndex,I.axisType=y.axisType,I.axisId=y.axisId,I.axisValue=sC(b.axis,{value:w}),I.axisValueLabel=S,I.marker=h.makeTooltipMarker("item",dl(I.color),l);var M=t_(T.formatTooltip(D,!0,null)),O=M.frag;if(O){var R=fs([T],a).get("valueFormatter");x.blocks.push(R?W({valueFormatter:R},O):O)}M.text&&c.push(M.text),u.push(I)}})}})}),f.blocks.reverse(),c.reverse();var d=n.position,v=s.get("order"),g=o_(f,h,l,v,i.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var p=l==="richText"?`
|
|
59
|
+
|
|
60
|
+
`:"<br/>",m=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],d,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Fe(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),d=this._renderMode,v=r.positionDefault,g=fs([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(f,c),_=new ld;m.marker=_.makeTooltipMarker("item",dl(m.color),d);var y=t_(u.formatTooltip(f,!1,c)),b=g.get("order"),w=g.get("valueFormatter"),S=y.frag,x=S?o_(w?W({valueFormatter:w},S):S,_,d,b,a.get("useUTC"),g.get("textStyle")):y.text,C="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,x,m,C,r.offsetX,r.offsetY,r.position,r.target,_)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Fe(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ue(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=Ae(l),l.content=Gt(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var d=r.positionDefault,v=fs(c,this._tooltipModel,d?{position:d}:null),g=v.get("content"),p=Math.random()+"",m=new ld;this._showOrMove(v,function(){var _=Ae(v.get("formatterParams")||{});this._showTooltipContent(v,g,_,p,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=v.color;if(h)if(ue(h)){var p=r.ecModel.get("useUTC"),m=te(i)?i[0]:i,_=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,_&&(d=Yx(m.axisValue,d,p)),d=jx(d,i,!0)}else if(Re(h)){var y=Le(function(b,w){b===this._ticket&&(c.setContent(w,f,r,g,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,d=h(i,a,y)}else d=h;c.setContent(d,f,r,g,l),c.show(r,g),this._updatePosition(r,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||te(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!te(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Re(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),te(n))i=_t(n[0],u),a=_t(n[1],f);else if(ve(n)){var g=n;g.width=c[0],g.height=c[1];var p=wa(g,{width:u,height:f});i=p.x,a=p.y,h=null,d=null}else if(ue(n)&&l){var m=dz(n,v,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=cz(i,a,o,u,f,h?null:20,d?null:20);i=m[0],a=m[1]}if(h&&(i-=pb(h)?c[0]/2:h==="right"?c[0]:0),d&&(a-=pb(d)?c[1]/2:d==="bottom"?c[1]:0),mC(r)){var m=hz(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&P(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&P(u,function(h,d){var v=c[d]||{},g=h.seriesDataIndices||[],p=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&g.length===p.length,o&&P(g,function(m,_){var y=p[_];o=o&&m.seriesIndex===y.seriesIndex&&m.dataIndex===y.dataIndex}),a&&P(h.seriesDataIndices,function(m){var _=m.seriesIndex,y=n[_],b=a[_];y&&b&&b.data!==y.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){be.node||!n.getDom()||(Kv(this,"_updatePosition"),this._tooltipContent.dispose(),ip("itemTooltip",n))},e.type="tooltip",e})(hn);function fs(t,e,r){var n=e.ecModel,i;r?(i=new Ze(r,n,n),i=new Ze(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Ze&&(o=o.get("tooltip",!0)),ue(o)&&(o={formatter:o}),o&&(i=new Ze(o,i,n)))}return i}function vb(t,e){return t.dispatchAction||Le(e.dispatchAction,e)}function cz(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function hz(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function dz(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function pb(t){return t==="center"||t==="middle"}function vz(t,e,r){var n=_g(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Bl(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=Fe(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function wC(t){Po(GV),t.registerComponentModel(ZV),t.registerComponentView(fz),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt)}var bl=P,pz=ve,Kf=-1,nm=(function(){function t(e){var r=e.mappingMethod,n=e.type,i=this.option=Ae(e);this.type=n,this.mappingMethod=r,this._normalizeData=yz[r];var a=t.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(Td(i),gz(i)):r==="category"?i.categories?mz(i):Td(i,!0):(Wr(r!=="linear"||i.dataExtent),Td(i))}return t.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},t.prototype.getNormalizer=function(){return Le(this._normalizeData,this)},t.listVisualTypes=function(){return ot(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,r,n){ve(e)?P(e,r,n):r.call(n,e)},t.mapVisual=function(e,r,n){var i,a=te(e)?[]:ve(e)?{}:(i=!0,null);return t.eachVisual(e,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},t.retrieveVisuals=function(e){var r={},n;return e&&bl(t.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(r[a]=e[a],n=!0)}),n?r:null},t.prepareVisualTypes=function(e){if(te(e))e=e.slice();else if(pz(e)){var r=[];bl(e,function(n,i){r.push(i)}),e=r}else return[];return e.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},t.findPieceIndex=function(e,r,n){for(var i,a=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===e||ue(l)&&l===e+"")return o;n&&h(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Nu(c[1],e,f[1]))return o}else if(f[1]===1/0){if(Nu(c[0],f[0],e))return o}else if(Nu(c[0],f[0],e)&&Nu(c[1],e,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return e===1/0?r.length-1:e===-1/0?0:i;function h(d,v){var g=Math.abs(d-e);g<a&&(a=g,i=v)}},t.visualHandlers={color:{applyVisual:cs("color"),getColorMapper:function(){var e=this.option;return Le(e.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),Ts.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=Ch(r,e.parsedVisual,i),a?i:di(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return di(Ch(e,this.option.parsedVisual),"rgba")},category:Ts,piecewise:function(e,r){var n=op.call(this,r);return n==null&&(n=di(Ch(e,this.option.parsedVisual),"rgba")),n},fixed:Ki}},colorHue:ku(function(e,r){return Ns(e,r)}),colorSaturation:ku(function(e,r){return Ns(e,null,r)}),colorLightness:ku(function(e,r){return Ns(e,null,null,r)}),colorAlpha:ku(function(e,r){return j1(e,r)}),decal:{applyVisual:cs("decal"),_normalizedToVisual:{linear:null,category:Ts,piecewise:null,fixed:null}},opacity:{applyVisual:cs("opacity"),_normalizedToVisual:ap([0,1])},liftZ:{applyVisual:cs("liftZ"),_normalizedToVisual:{linear:Ki,category:Ki,piecewise:Ki,fixed:Ki}},symbol:{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:gb,category:Ts,piecewise:function(e,r){var n=op.call(this,r);return n==null&&(n=gb.call(this,e)),n},fixed:Ki}},symbolSize:{applyVisual:cs("symbolSize"),_normalizedToVisual:ap([0,1])}},t})();function gz(t){var e=t.pieceList;t.hasSpecialVisual=!1,P(e,function(r,n){r.originIndex=n,r.visual!=null&&(t.hasSpecialVisual=!0)})}function mz(t){var e=t.categories,r=t.categoryMap={},n=t.visual;if(bl(e,function(o,s){r[o]=s}),!te(n)){var i=[];ve(n)?bl(n,function(o,s){var l=r[s];i[l??Kf]=o}):i[Kf]=n,n=SC(t,i)}for(var a=e.length-1;a>=0;a--)n[a]==null&&(delete r[e[a]],e.pop())}function Td(t,e){var r=t.visual,n=[];ve(r)?bl(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(t.type)&&(n[1]=n[0]),SC(t,n)}function ku(t){return{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("color",t(r("color"),i))},_normalizedToVisual:ap([0,1])}}function gb(t){var e=this.option.visual;return e[Math.round(ba(t,[0,1],[0,e.length-1],!0))]||{}}function cs(t){return function(e,r,n){n(t,this.mapValueToVisual(e))}}function Ts(t){var e=this.option.visual;return e[this.option.loop&&t!==Kf?t%e.length:t]}function Ki(){return this.option.visual[0]}function ap(t){return{linear:function(e){return ba(e,t,this.option.visual,!0)},category:Ts,piecewise:function(e,r){var n=op.call(this,r);return n==null&&(n=ba(e,t,this.option.visual,!0)),n},fixed:Ki}}function op(t){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var n=nm.findPieceIndex(t,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function SC(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=ke(e,function(r){var n=ln(r);return n||[0,0,0,1]})),e}var yz={linear:function(t){return ba(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,r=nm.findPieceIndex(t,e,!0);if(r!=null)return ba(r,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??Kf},fixed:mt};function Nu(t,e,r){return t?e<=r:e<r}var _z=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e})(We),bz=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Ce(r.get("textBaseline"),r.get("textVerticalAlign")),f=new kt({style:cn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),d=new kt({style:cn(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!v&&!p,d.silent=!g&&!p,v&&f.on("click",function(){$v(v,"_"+r.get("target"))}),g&&d.on("click",function(){$v(g,"_"+r.get("subtarget"))}),Fe(f).eventData=Fe(d).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(d);var m=a.getBoundingRect(),_=r.getBoxLayoutParams();_.width=m.width,_.height=m.height;var y=wa(_,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?y.x+=y.width:l==="center"&&(y.x+=y.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?y.y+=y.height:u==="middle"&&(y.y+=y.height/2),u=u||"top"),a.x=y.x,a.y=y.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),d.setStyle(b),m=a.getBoundingRect();var w=y.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var x=new Rt({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(x)}},e.type="title",e})(hn);function xC(t){t.registerComponentModel(_z),t.registerComponentView(bz)}function wz(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Eo(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Eo(t,e,r[o]));return a.join(" ")}}var Sz=(function(t){le(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Hl(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=xz,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){fl(this.childAt(0))},e.prototype.downplay=function(){cl(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(d):Ti(h,d,s,n),KO(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!f){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Rg(h,d,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,h,d,v,g,p,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,d=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var _=a&&a.itemModel?a.itemModel:r.getItemModel(n),y=_.getModel("emphasis");u=y.getModel("itemStyle").getItemStyle(),c=_.getModel(["select","itemStyle"]).getItemStyle(),f=_.getModel(["blur","itemStyle"]).getItemStyle(),h=y.get("focus"),d=y.get("blurScope"),v=y.get("disabled"),g=Vl(_),p=y.getShallow("scale"),m=_.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var w=Wc(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),m&&s.attr("cursor",m);var S=r.getItemVisual(n,"style"),x=S.fill;if(s instanceof xi){var C=s.style;s.useStyle(W({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(W({},S)):s.useStyle(S),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=r.getItemVisual(n,"liftZ"),D=this._z2;T!=null?D==null&&(this._z2=s.z2,s.z2+=T):D!=null&&(s.z2=D,this._z2=null);var I=o&&o.useNameLabel;zc(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:M,inheritColor:x,defaultOpacity:S.opacity});function M(V){return I?r.getName(V):wz(r,V)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var O=s.ensureState("emphasis");O.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var R=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;O.scaleX=this._sizeX*R,O.scaleY=this._sizeY*R,this.setSymbolScale(1),Ag(this,h,d,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Fe(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Bf(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Bf(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return Kg(r.getItemVisual(n,"symbolSize"))},e})(yt);function xz(t,e){this.parent.drift(t,e)}function Cd(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function mb(t){return t!=null&&!ve(t)&&(t={isIgnore:t}),t||{}}function yb(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Vl(e),cursorStyle:e.get("cursor")}}var Tz=(function(){function t(e){this.group=new yt,this._SymbolCtor=e||Sz}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=mb(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=yb(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var h=f(c);if(Cd(e,h,c,r)){var d=new o(e,c,l,u);d.setPosition(h),e.setItemGraphicEl(c,d),n.add(d)}}).update(function(c,h){var d=a.getItemGraphicEl(h),v=f(c);if(!Cd(e,v,c,r)){n.remove(d);return}var g=e.getItemVisual(c,"symbol")||"circle",p=d&&d.getSymbolType&&d.getSymbolType();if(!d||p&&p!==g)n.remove(d),d=new o(e,c,l,u),d.setPosition(v);else{d.updateData(e,c,l,u);var m={x:v[0],y:v[1]};s?d.attr(m):Ti(d,m,i)}n.add(d),e.setItemGraphicEl(c,d)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=yb(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=mb(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(Cd(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){Fc(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})(),_b=Ia.prototype,Dd=kc.prototype,TC=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();(function(t){le(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(TC);function Ad(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var Cz=(function(t){le(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new TC},e.prototype.buildPath=function(r,n){Ad(n)?_b.buildPath.call(this,r,n):Dd.buildPath.call(this,r,n)},e.prototype.pointAt=function(r){return Ad(this.shape)?_b.pointAt.call(this,r):Dd.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var n=this.shape,i=Ad(n)?[n.x2-n.x1,n.y2-n.y1]:Dd.tangentAt.call(this,r);return Fo(i,i)},e})(Qe),Id=["fromSymbol","toSymbol"];function bb(t){return"_"+t+"Type"}function wb(t,e,r){var n=e.getItemVisual(r,t);if(!n||n==="none")return n;var i=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Kg(i),u=Wc(o||0,l);return n+l+u+(a||"")+(s||"")}function Sb(t,e,r){var n=e.getItemVisual(r,t);if(!(!n||n==="none")){var i=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Kg(i),u=Wc(o||0,l),f=Hl(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=t,f}}function Dz(t){var e=new Cz({name:"line",subPixelOptimize:!0});return sp(e.shape,t),e}function sp(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var r=e[2];r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}var Az=(function(t){le(e,t);function e(r,n,i){var a=t.call(this)||this;return a._createLine(r,n,i),a}return e.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=Dz(o);s.shape.percent=0,Rg(s,{shape:{percent:1}},a,n),this.add(s),P(Id,function(l){var u=Sb(l,r,n);this.add(u),this[bb(l)]=wb(l,r,n)},this),this._updateCommonStl(r,n,i)},e.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};sp(l.shape,s),Ti(o,l,a,n),P(Id,function(u){var f=wb(u,r,n),c=bb(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=Sb(u,r,n);this.add(h)}this[c]=f},this),this._updateCommonStl(r,n,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,h=i&&i.focus,d=i&&i.blurScope;if(!i||r.hasItemOption){var v=r.getItemModel(n),g=v.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),c=g.get("disabled"),h=g.get("focus"),d=g.get("blurScope"),f=Vl(v)}var p=r.getItemVisual(n,"style"),m=p.stroke;o.useStyle(p),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,P(Id,function(S){var x=this.childOfName(S);if(x){x.setColor(m),x.style.opacity=p.opacity;for(var C=0;C<fn.length;C++){var T=fn[C],D=o.getState(T);if(D){var I=D.style||{},M=x.ensureState(T),O=M.style||(M.style={});I.stroke!=null&&(O[x.__isEmptyBrush?"stroke":"fill"]=I.stroke),I.opacity!=null&&(O.opacity=I.opacity)}}x.markRedraw()}},this);var _=a.getRawValue(n);zc(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(S,x){return a.getFormattedLabel(S,x,r.dataType)}},inheritColor:m||"#000",defaultOpacity:p.opacity,defaultText:(_==null?r.getName(n):isFinite(_)?ix(_):_)+""});var y=this.getTextContent();if(y){var b=f.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=b.get("position")||"middle";var w=b.get("distance");te(w)||(w=[w,w]),y.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),Ag(this,h,d,c)},e.prototype.highlight=function(){fl(this)},e.prototype.downplay=function(){cl(this)},e.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},e.prototype.setLinePoints=function(r){var n=this.childOfName("line");sp(n.shape,r),n.dirty()},e.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=ea([],c,f);Fo(h,h);function d(D,I){var M=D.__specifiedRotation;if(M==null){var O=l.tangentAt(I);D.attr("rotation",(I===1?-1:1)*Math.PI/2-Math.atan2(O[1],O[0]))}else D.attr("rotation",M)}if(n&&(n.setPosition(f),d(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(c),d(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,g=void 0,p=a.__labelDistance,m=p[0]*o,_=p[1]*o,y=u/2,b=l.tangentAt(y),w=[b[1],-b[0]],S=l.pointAt(y);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var x=b[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(b[1],b[0]);c[0]<f[0]&&(C=Math.PI+C),a.rotation=C}var T=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-_,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=_,g="top";break;default:T=0,g="middle"}switch(a.__position){case"end":a.x=h[0]*m+c[0],a.y=h[1]*_+c[1],v=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*m+f[0],a.y=-h[1]*_+f[1],v=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*x+f[0],a.y=f[1]+T,v=b[0]<0?"right":"left",a.originX=-m*x,a.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=S[0],a.y=S[1]+T,v="center",a.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*x+c[0],a.y=c[1]+T,v=b[0]>=0?"right":"left",a.originX=m*x,a.originY=-T;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||v})}},e})(yt),Iz=(function(){function t(e){this.group=new yt,this._LineCtor=e||Az}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var o=xb(e);e.diff(a).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(a,e,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,n){r.updateLayout(e,n)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xb(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r){this._progressiveEls=[];function n(s){!s.isGroup&&!Mz(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=r.getItemLayout(i);if(Md(a)){var o=new this._LineCtor(r,i,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){Fc(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,r,n){var i=e.getItemLayout(r);if(Md(i)){var a=new this._LineCtor(e,r,n);e.setItemGraphicEl(r,a),this.group.add(a)}},t.prototype._doUpdate=function(e,r,n,i,a){var o=e.getItemGraphicEl(n);if(!Md(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},t})();function Mz(t){return t.animators&&t.animators.length>0}function xb(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Vl(e)}}function Tb(t){return isNaN(t[0])||isNaN(t[1])}function Md(t){return t&&!Tb(t[0])&&!Tb(t[1])}var Ez=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},lp=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),te(n)&&P(n,function(a,o){ue(a)&&(a={type:a}),n[o]=at(a,Ez(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&yg(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=we(),s=ke(a,function(l){return(ue(l)||st(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ze(l,this,this.ecModel))},this);this._data=dr(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;P(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;P(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;P(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&$e(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e})(We),Ka=it,up=P,Bu=yt,CC=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Bu),this.group.add(this._selectorGroup=new Bu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),d=wa(f,c,h),v=this.layoutInner(r,o,d,a,l,u),g=wa(rt({width:v.width,height:v.height},f),c,h);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=qV(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=we(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),up(n.getData(),function(d,v){var g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
61
|
+
`)){var p=new Bu;p.newline=!0,u.add(p);return}var m=i.getSeriesByName(g)[0];if(!f.get(g))if(m){var _=m.getData(),y=_.getVisual("legendLineStyle")||{},b=_.getVisual("legendIcon"),w=_.getVisual("style"),S=this._createItem(m,g,v,d,n,r,y,w,b,c,a);S.on("click",Ka(Cb,g,null,a,h)).on("mouseover",Ka(fp,m.name,null,a,h)).on("mouseout",Ka(cp,m.name,null,a,h)),i.ssr&&S.eachChild(function(x){var C=Fe(x);C.seriesIndex=m.seriesIndex,C.dataIndex=v,C.ssrType="legend"}),f.set(g,!0)}else i.eachRawSeries(function(x){if(!f.get(g)&&x.legendVisualProvider){var C=x.legendVisualProvider;if(!C.containName(g))return;var T=C.indexOfName(g),D=C.getItemVisual(T,"style"),I=C.getItemVisual(T,"legendIcon"),M=ln(D.fill);M&&M[3]===0&&(M[3]=.2,D=W(W({},D),{fill:di(M,"rgba")}));var O=this._createItem(x,g,v,d,n,r,{},D,I,c,a);O.on("click",Ka(Cb,null,g,a,h)).on("mouseover",Ka(fp,null,g,a,h)).on("mouseout",Ka(cp,null,g,a,h)),i.ssr&&O.eachChild(function(R){var V=Fe(R);V.seriesIndex=x.seriesIndex,V.dataIndex=v,V.ssrType="legend"}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();up(r,function(u){var f=u.type,c=new kt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);zc(c,{normal:h,emphasis:d},{defaultText:u.title}),Nv(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,h){var d=r.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),m=a.get("symbolRotate"),_=a.get("symbolKeepAspect"),y=a.get("icon");f=y||f||"roundRect";var b=Pz(f,a,l,u,d,p,h),w=new Bu,S=a.getModel("textStyle");if(Re(r.getLegendIcon)&&(!y||y==="inherit"))w.add(r.getLegendIcon({itemWidth:v,itemHeight:g,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:_}));else{var x=y==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;w.add(Lz({itemWidth:v,itemHeight:g,icon:f,iconRotate:x,itemStyle:b.itemStyle,symbolKeepAspect:_}))}var C=s==="left"?v+5:-5,T=s,D=o.get("formatter"),I=n;ue(D)&&D?I=D.replace("{name}",n??""):Re(D)&&(I=D(n));var M=p?S.getTextColor():a.get("inactiveColor");w.add(new kt({style:cn(S,{text:I,x:C,y:g/2,fill:M,align:T,verticalAlign:"middle"},{inheritColor:M})}));var O=new Rt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),R=a.getModel("tooltip");return R.get("show")&&Bc({el:O,componentModel:o,itemName:n,itemTooltipOption:R.option}),w.add(O),w.eachChild(function(V){V.silent=!0}),O.silent=!c,this.getContentGroup().add(w),Nv(w),w.__legendDataIndex=i,w},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();$s(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){$s("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",_=g===0?"y":"x";s==="end"?d[g]+=f[p]+v:c[g]+=h[p]+v,d[1-g]+=f[m]/2-h[m]/2,u.x=d[0],u.y=d[1],l.x=c[0],l.y=c[1];var y={x:0,y:0};return y[p]=f[p]+v+h[p],y[m]=Math.max(f[m],h[m]),y[_]=Math.min(0,h[_]+d[1-g]),y}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(hn);function Pz(t,e,r,n,i,a,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),up(p,function(_,y){p[y]==="inherit"&&(p[y]=m[y])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Qv(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=e.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=e.get("inactiveBorderWidth"),g=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function Lz(t){var e=t.icon||"roundRect",r=Hl(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function Cb(t,e,r,n){cp(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),fp(t,e,r,n)}function DC(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function fp(t,e,r,n){DC(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function cp(t,e,r,n){DC(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function Rz(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function hs(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),Db(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){P(i,function(l,u){s[l?"select":"unSelect"](u)}),Db(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function Db(t,e){var r=e||{};return P(t.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
62
|
+
`||i==="")){var a=t.isSelected(i);_a(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function Oz(t){t.registerAction("legendToggleSelect","legendselectchanged",it(hs,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",it(hs,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",it(hs,"inverseSelect")),t.registerAction("legendSelect","legendselected",it(hs,"select")),t.registerAction("legendUnSelect","legendunselected",it(hs,"unSelect"))}function AC(t){t.registerComponentModel(lp),t.registerComponentView(CC),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Rz),t.registerSubTypeDefaulter("legend",function(){return"plain"}),Oz(t)}var kz=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=Hg(r);t.prototype.init.call(this,r,n,i),Ab(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),Ab(this,this.option,r)},e.type="legend.scroll",e.defaultOption=Ck(lp.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e})(lp);function Ab(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,vl(e,r,{type:"box",ignoreSize:!!i})}var Ib=yt,Ed=["width","height"],Pd=["x","y"],Nz=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Ib),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Ib)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=te(c)?c:[c,c];v("pagePrev",0);var d=n.getModel("pageTextStyle");f.add(new kt({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,p){var m=g+"DataIndex",_=Bg(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:Le(u._pageGo,u,m,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});_.name=g,f.add(_)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Ed[u],c=Pd[u],h=Ed[1-u],d=Pd[1-u];o&&$s("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],m=Ae(i);o&&(m[f]=i[f]-g[f]-v);var _=this._layoutContentAndController(r,a,m,u,f,h,d,c);if(o){if(s==="end")p[u]+=_[f]+v;else{var y=g[f]+v;p[u]-=y,_[c]-=y}_[f]+=g[f]+v,p[1-u]+=_[d]+_[h]/2-g[h]/2,_[h]=Math.max(_[h],g[h]),_[d]=Math.min(_[d],g[d]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return _},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;$s(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),$s("horizontal",h,r.get("pageButtonItemGap",!0));var d=f.getBoundingRect(),v=h.getBoundingRect(),g=this._showController=d[o]>i[o],p=[-d.x,-d.y];n||(p[a]=f[u]);var m=[0,0],_=[-v.x,-v.y],y=Ce(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var b=r.get("pageButtonPosition",!0);b==="end"?_[a]+=i[o]-v[o]:m[a]+=v[o]+y}_[1-a]+=d[s]/2-v[s]/2,f.setPosition(p),c.setPosition(m),h.setPosition(_);var w={x:0,y:0};if(w[o]=g?i[o]:d[o],w[s]=Math.max(d[s],v[s]),w[l]=Math.min(0,v[l]+_[1-a]),c.__rectSize=i[o],g){var S={x:0,y:0};S[o]=Math.max(i[o]-v[o]-y,0),S[s]=w[s],c.setClipPath(new Rt({shape:S})),c.__rectSize=S[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Ti(f,{x:x.contentPosition[0],y:x.contentPosition[1]},g?r:null),this._updatePageInfoView(r,x),w},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;P(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,d=i.childOfName(f);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",ue(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Ed[o],l=Pd[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var g=b(c);v.contentPosition[o]=-g.s;for(var p=u+1,m=g,_=g,y=null;p<=h;++p)y=b(f[p]),(!y&&_.e>m.s+a||y&&!w(y,m.s))&&(_.i>m.i?m=_:m=y,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),_=y;for(var p=u-1,m=g,_=g,y=null;p>=-1;--p)y=b(f[p]),(!y||!w(_,y.s))&&m.i<_.i&&(_=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=y;return v;function b(S){if(S){var x=S.getBoundingRect(),C=x[l]+S[l];return{s:C,e:C+x[s],i:S.__legendDataIndex}}}function w(S,x){return S.e>=x&&S.s<=x+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e})(CC);function Bz(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function Fz(t){Po(AC),t.registerComponentModel(kz),t.registerComponentView(Nz),Bz(t)}function Vz(t){Po(AC),Po(Fz)}var zz=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t})(),Pr=dt();function IC(t){var e=t.mainData,r=t.datas;r||(r={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,MC(e,r,t),P(r,function(n){P(e.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,it(Hz,t))})}),e.wrapMethod("cloneShallow",it(Gz,t)),P(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,it($z,t))}),Wr(r[e.dataType]===e)}function Hz(t,e){if(Yz(this)){var r=W({},Pr(this).datas);r[this.dataType]=e,MC(e,r,t)}else im(e,this.dataType,Pr(this).mainData,t);return e}function $z(t,e){return t.struct&&t.struct.update(),e}function Gz(t,e){return P(Pr(e).datas,function(r,n){r!==e&&im(r.cloneShallow(),n,e,t)}),e}function Uz(t){var e=Pr(this).mainData;return t==null||e==null?e:Pr(e).datas[t]}function Wz(){var t=Pr(this).mainData;return t==null?[{data:t}]:ke(ot(Pr(t).datas),function(e){return{type:e,data:Pr(t).datas[e]}})}function Yz(t){return Pr(t).mainData===t}function MC(t,e,r){Pr(t).datas={},P(e,function(n,i){im(n,i,t,r)})}function im(t,e,r,n){Pr(r).datas[e]=t,Pr(t).mainData=r,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=Uz,t.getLinkedDataAll=Wz}var Xz=(function(){function t(e,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=r}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,r,n){Re(e)&&(n=r,r=e,e=null),e=e||{},ue(e)&&(e={order:e});var i=e.order||"preorder",a=this[e.attr||"children"],o;i==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(e,r,n);i==="postorder"&&r.call(n,this)},t.prototype.updateDepthAndHeight=function(e){var r=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>r&&(r=i.height)}this.height=r+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].getNodeById(e);if(a)return a}},t.prototype.contains=function(e){if(e===this)return!0;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].contains(e);if(a)return a}},t.prototype.getAncestors=function(e){for(var r=[],n=e?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},t.prototype.getAncestorsIndices=function(){for(var e=[],r=this;r;)e.push(r.dataIndex),r=r.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(r){e.push(r.dataIndex)}),e},t.prototype.getValue=function(e){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,r)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,r)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,r=0;r<e.length;++r)if(e[r]===this)return r;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var r=e.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t})(),Kz=(function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,r,n){this.root.eachNode(e,r,n)},t.prototype.getNodeByDataIndex=function(e){var r=this.data.getRawIndex(e);return this._nodes[r]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,r=this._nodes,n=0,i=r.length;n<i;n++)r[n].dataIndex=-1;for(var n=0,i=e.count();n<i;n++)r[e.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,r,n){var i=new t(r),a=[],o=1;s(e);function s(f,c){var h=f.value;o=Math.max(o,te(h)?h.length:1),a.push(f);var d=new Xz(nr(f.name,""),i);c?jz(d,c):i.root=d,i._nodes.push(d);var v=f.children;if(v)for(var g=0;g<v.length;g++)s(v[g],d)}i.root.updateDepthAndHeight(0);var l=em(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new yl(l,r);return u.initData(a),n&&n(u),IC({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t})();function jz(t,e){var r=e.children;t.parentNode!==e&&(r.push(t),t.parentNode=e)}function am(t,e,r){if(t&&$e(e,t.type)>=0){var n=r.getData().tree.root,i=t.targetNode;if(ue(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=t.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function EC(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function PC(t,e){var r=EC(t);return $e(r,e)>=0}function LC(t,e){for(var r=[];t;){var n=t.dataIndex;r.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return r.reverse(),r}var Mb=["treemapZoomToNode","treemapRender","treemapMove"];function qz(t){for(var e=0;e<Mb.length;e++)t.registerAction({type:Mb[e],update:"updateView"},mt);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=am(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=PC(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function Zz(t){var e=t.getData(),r=e.tree,n={};r.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=Qk(t.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var Jz=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventUsingHoverLayer=!0,r}return e.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};RC(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new Ze({itemStyle:o},this,n);a=r.levels=Qz(a,n);var l=ke(a||[],function(c){return new Ze(c,s,n)},this),u=Kz.createTree(i,this,f);function f(c){c.wrapMethod("getItemModel",function(h,d){var v=u.getNodeByDataIndex(d),g=v?l[v.depth]:null;return h.parentModel=g||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Sa("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=LC(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},W(this.layoutInfo,r)},e.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=we(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){Zz(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(Rn);function RC(t){var e=0;P(t.children,function(n){RC(n);var i=n.value;te(i)&&(i=i[0]),e+=i});var r=t.value;te(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),te(t.value)?t.value[0]=r:t.value=r}function Qz(t,e){var r=wt(e.get("color")),n=wt(e.get(["aria","decal","decals"]));if(r){t=t||[];var i,a;P(t,function(s){var l=new Ze(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(a=!0)});var o=t[0]||(t[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),t}}var e5=8,Eb=8,Ld=5,t5=(function(){function t(e){this.group=new yt,e.add(this.group)}return t.prototype.render=function(e,r,n,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(e,c,s,l,u,f,i),Hk(o,c.pos,c.box)}},t.prototype._prepare=function(e,r,n){for(var i=e;i;i=i.parentNode){var a=nr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+e5*2,r.emptyItemWidth);r.totalWidth+=s+Eb,r.renderList.push({node:i,text:a,width:s})}},t.prototype._renderContent=function(e,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,f=e.get(["breadcrumb","height"]),c=zk(r.pos,r.box),h=r.totalWidth,d=r.renderList,v=i.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var p=d[g],m=p.node,_=p.width,y=p.text;h>c.width&&(h-=_-u,_=u,y=null);var b=new Oc({shape:{points:r5(l,0,_,f,g===d.length-1,g===0)},style:rt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new kt({style:cn(a,{text:y})}),textConfig:{position:"inside"},z2:Fl*1e4,onclick:it(s,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=cn(o,{text:y}),b.ensureState("emphasis").style=v,Ag(b,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(b),n5(b,e,m),l+=_+Eb}},t.prototype.remove=function(){this.group.removeAll()},t})();function r5(t,e,r,n,i,a){var o=[[i?t:t-Ld,e],[t+r,e],[t+r,e+n],[i?t:t-Ld,e+n]];return!a&&o.splice(2,0,[t+r+Ld,e+n/2]),!i&&o.push([t,e+n/2]),o}function n5(t,e,r){Fe(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&LC(r,e)}}var i5=(function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,r,n,i,a){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:r,duration:n,delay:i,easing:a}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,r=this._storage.length,n=function(){r--,r<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t})();function a5(){return new i5}var hp=yt,Pb=Rt,Lb=3,Rb="label",Ob="upperLabel",o5=Fl*10,s5=Fl*2,l5=Fl*3,ji=Io([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),kb=function(t){var e=ji(t);return e.stroke=e.fill=e.lineWidth=null,e},jf=dt(),u5=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._state="ready",r._storage=ds(),r}return e.prototype.render=function(r,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!($e(o,r)<0)){this.seriesModel=r,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=am(a,s,r),u=a&&a.type,f=r.layoutInfo,c=!this._oldTree,h=this._storage,d=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,v=this._giveContainerGroup(f),g=r.get("animation"),p=this._doRender(v,r,d);g&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,p,r,d):p.renderFinally(),this._resetController(i),this._renderBreadcrumb(r,i,l)}},e.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new hp,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},e.prototype._doRender=function(r,n,i){var a=n.getData().tree,o=this._oldTree,s=ds(),l=ds(),u=this._storage,f=[];function c(_,y,b,w){return f5(n,l,u,i,s,f,_,y,b,w)}g(a.root?[a.root]:[],o&&o.root?[o.root]:[],r,a===o||!o,0);var h=p(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var d=this.seriesModel.layoutInfo,v=a.root.getLayout();v.width===d.width&&v.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:m};function g(_,y,b,w,S){w?(y=_,P(_,function(T,D){!T.isRemoved()&&C(D,D)})):new tC(y,_,x,x).add(C).update(C).remove(it(C,null)).execute();function x(T){return T.getId()}function C(T,D){var I=T!=null?_[T]:null,M=D!=null?y[D]:null,O=c(I,M,b,S);O&&g(I&&I.viewChildren||[],M&&M.viewChildren||[],O,w,S+1)}}function p(_){var y=ds();return _&&P(_,function(b,w){var S=y[w];P(b,function(x){x&&(S.push(x),jf(x).willDelete=!0)})}),y}function m(){P(h,function(_){P(_,function(y){y.parent&&y.parent.remove(y)})}),P(f,function(_){_.invisible=!0,_.dirty()})}},e.prototype._doAnimation=function(r,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(Re(o)?0:o)||0,u=(Re(s)?null:s)||"cubicOut",f=a5();P(n.willDeleteEls,function(c,h){P(c,function(d,v){if(!d.invisible){var g=d.parent,p,m=jf(g);if(a&&a.direction==="drillDown")p=g===a.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var _=0,y=0;m.willDelete||(_=m.nodeWidth/2,y=m.nodeHeight/2),p=h==="nodeGroup"?{x:_,y,style:{opacity:0}}:{shape:{x:_,y,width:0,height:0},style:{opacity:0}}}p&&f.add(d,p,l,0,u)}})}),P(this._storage,function(c,h){P(c,function(d,v){var g=n.lastsForAnimation[h][v],p={};g&&(d instanceof yt?g.oldX!=null&&(p.x=d.x,p.y=d.y,d.x=g.oldX,d.y=g.oldY):(g.oldShape&&(p.shape=W({},d.shape),d.setShape(g.oldShape)),g.fadein?(d.setStyle("opacity",0),p.style={opacity:1}):d.style.opacity!==1&&(p.style={opacity:1})),f.add(d,p,l,0,u))})},this),this._state="animating",f.finished(Le(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(r){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new pC(r.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",Le(this._onPan,this)),n.on("zoom",Le(this._onZoom,this)));var a=new Oe(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},e.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},e.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>Lb||Math.abs(r.dy)>Lb)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Oe(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var c=f.zoom=f.zoom||1;if(c*=a,u){var h=u.min||0,d=u.max||1/0;c=Math.max(Math.min(d,c),h)}var v=c/f.zoom;f.zoom=c;var g=this.seriesModel.layoutInfo;n-=g.x,i-=g.y;var p=fi();al(p,p,[-n,-i]),N1(p,p,[v,v]),al(p,p,[n,i]),l.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&$v(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new t5(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(PC(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ds(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e})(An);function ds(){return{nodeGroup:[],background:[],content:[]}}function f5(t,e,r,n,i,a,o,s,l,u){if(!o)return;var f=o.getLayout(),c=t.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var d=f.width,v=f.height,g=f.borderWidth,p=f.invisible,m=o.getRawIndex(),_=s&&s.getRawIndex(),y=o.viewChildren,b=f.upperHeight,w=y&&y.length,S=h.getModel("itemStyle"),x=h.getModel(["emphasis","itemStyle"]),C=h.getModel(["blur","itemStyle"]),T=h.getModel(["select","itemStyle"]),D=S.get("borderRadius")||0,I=ze("nodeGroup",hp);if(!I)return;if(l.add(I),I.x=f.x||0,I.y=f.y||0,I.markRedraw(),jf(I).nodeWidth=d,jf(I).nodeHeight=v,f.isAboveViewRoot)return I;var M=ze("background",Pb,u,s5);M&&J(I,M,w&&f.upperLabelHeight);var O=h.getModel("emphasis"),R=O.get("focus"),V=O.get("blurScope"),N=O.get("disabled"),B=R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():R;if(w)hl(I)&&fo(I,!1),M&&(fo(M,!N),c.setItemGraphicEl(o.dataIndex,M),Bv(M,B,V));else{var F=ze("content",Pb,u,l5);F&&oe(I,F),M.disableMorphing=!0,M&&hl(M)&&fo(M,!1),fo(I,!N),c.setItemGraphicEl(o.dataIndex,I);var G=h.getShallow("cursor");G&&F.attr("cursor",G),Bv(I,B,V)}return I;function J(ye,ee,me){var q=Fe(ee);if(q.dataIndex=o.dataIndex,q.seriesIndex=t.seriesIndex,ee.setShape({x:0,y:0,width:d,height:v,r:D}),p)K(ee);else{ee.invisible=!1;var ne=o.getVisual("style"),A=ne.stroke,E=kb(S);E.fill=A;var k=ji(x);k.fill=x.get("borderColor");var H=ji(C);H.fill=C.get("borderColor");var z=ji(T);if(z.fill=T.get("borderColor"),me){var $=d-2*g;Te(ee,A,ne.opacity,{x:g,y:0,width:$,height:b})}else ee.removeTextContent();ee.setStyle(E),ee.ensureState("emphasis").style=k,ee.ensureState("blur").style=H,ee.ensureState("select").style=z,Rv(ee)}ye.add(ee)}function oe(ye,ee){var me=Fe(ee);me.dataIndex=o.dataIndex,me.seriesIndex=t.seriesIndex;var q=Math.max(d-2*g,0),ne=Math.max(v-2*g,0);if(ee.culling=!0,ee.setShape({x:g,y:g,width:q,height:ne,r:D}),p)K(ee);else{ee.invisible=!1;var A=o.getVisual("style"),E=A.fill,k=kb(S);k.fill=E,k.decal=A.decal;var H=ji(x),z=ji(C),$=ji(T);Te(ee,E,A.opacity,null),ee.setStyle(k),ee.ensureState("emphasis").style=H,ee.ensureState("blur").style=z,ee.ensureState("select").style=$,Rv(ee)}ye.add(ee)}function K(ye){!ye.invisible&&a.push(ye)}function Te(ye,ee,me,q){var ne=h.getModel(q?Ob:Rb),A=nr(h.get("name"),null),E=ne.getShallow("show");zc(ye,Vl(h,q?Ob:Rb),{defaultText:E?A:null,inheritColor:ee,defaultOpacity:me,labelFetcher:t,labelDataIndex:o.dataIndex});var k=ye.getTextContent();if(k){var H=k.style,z=cg(H.padding||0);q&&(ye.setTextConfig({layoutRect:q}),k.disableLabelLayout=!0),k.beforeUpdate=function(){var j=Math.max((q?q.width:ye.shape.width)-z[1]-z[3],0),Y=Math.max((q?q.height:ye.shape.height)-z[0]-z[2],0);(H.width!==j||H.height!==Y)&&k.setStyle({width:j,height:Y})},H.truncateMinChar=2,H.lineOverflow="truncate",Ge(H,q,f);var $=k.getState("emphasis");Ge($?$.style:null,q,f)}}function Ge(ye,ee,me){var q=ye?ye.text:null;if(!ee&&me.isLeafRoot&&q!=null){var ne=t.get("drillDownIcon",!0);ye.text=ne?ne+" "+q:q}}function ze(ye,ee,me,q){var ne=_!=null&&r[ye][_],A=i[ye];return ne?(r[ye][_]=null,De(A,ne)):p||(ne=new ee,ne instanceof Vo&&(ne.z2=c5(me,q)),ut(A,ne)),e[ye][m]=ne}function De(ye,ee){var me=ye[m]={};ee instanceof hp?(me.oldX=ee.x,me.oldY=ee.y):me.oldShape=W({},ee.shape)}function ut(ye,ee){var me=ye[m]={},q=o.parentNode,ne=ee instanceof yt;if(q&&(!n||n.direction==="drillDown")){var A=0,E=0,k=i.background[q.getRawIndex()];!n&&k&&k.oldShape&&(A=k.oldShape.width,E=k.oldShape.height),ne?(me.oldX=0,me.oldY=E):me.oldShape={x:A,y:E,width:0,height:0}}me.fadein=!ne}}function c5(t,e){return t*o5+e}var h5="itemStyle",OC=dt();const d5={seriesType:"treemap",reset:function(t){var e=t.getData().tree,r=e.root;r.isRemoved()||kC(r,{},t.getViewRoot().getAncestors(),t)}};function kC(t,e,r,n){var i=t.getModel(),a=t.getLayout(),o=t.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(h5),l=v5(s,e,n),u=o.ensureUniqueItemVisual(t.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=Nb(l),f=p5(c,h)),u.stroke=f;var d=t.viewChildren;if(!d||!d.length)h=Nb(l),u.fill=h;else{var v=g5(t,i,a,s,l,d);P(d,function(g,p){if(g.depth>=r.length||g===r[g.depth]){var m=m5(i,l,g,p,v,n);kC(g,m,r,n)}})}}}function v5(t,e,r){var n=W({},e),i=r.designatedVisualItemStyle;return P(["color","colorAlpha","colorSaturation"],function(a){i[a]=e[a];var o=t.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function Nb(t){var e=Rd(t,"color");if(e){var r=Rd(t,"colorAlpha"),n=Rd(t,"colorSaturation");return n&&(e=Ns(e,null,null,n)),r&&(e=j1(e,r)),e}}function p5(t,e){return e!=null?Ns(e,null,null,t):null}function Rd(t,e){var r=t[e];if(r!=null&&r!=="none")return r}function g5(t,e,r,n,i,a){if(!(!a||!a.length)){var o=Od(e,"color")||i.color!=null&&i.color!=="none"&&(Od(e,"colorAlpha")||Od(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new nm(c);return OC(h).drColorMappingBy=f,h}}}function Od(t,e){var r=t.get(e);return te(r)&&r.length?{name:e,range:r}:null}function m5(t,e,r,n,i,a){var o=W({},e);if(i){var s=i.type,l=s==="color"&&OC(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(t.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var wl=Math.max,qf=Math.min,Bb=bi,om=P,NC=["itemStyle","borderWidth"],y5=["itemStyle","gapWidth"],_5=["upperLabel","show"],b5=["upperLabel","height"];const w5={seriesType:"treemap",reset:function(t,e,r,n){var i=r.getWidth(),a=r.getHeight(),o=t.option,s=wa(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=_t(Bb(s.width,l[0]),i),f=_t(Bb(s.height,l[1]),a),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],d=am(n,h,t),v=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,g=t.getViewRoot(),p=EC(g);if(c!=="treemapMove"){var m=c==="treemapZoomToNode"?A5(t,d,g,u,f):v?[v.width,v.height]:[u,f],_=o.sort;_&&_!=="asc"&&_!=="desc"&&(_="desc");var y={squareRatio:o.squareRatio,sort:_,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(b),BC(g,y,!1,0),b=g.getLayout(),om(p,function(S,x){var C=(p[x+1]||g).getValue();S.setLayout(W({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var w=t.getData().tree.root;w.setLayout(I5(s,v,d),!0),t.setLayoutInfo(s),FC(w,new Oe(-s.x,-s.y,i,a),p,g,0)}};function BC(t,e,r,n){var i,a;if(!t.isRemoved()){var o=t.getLayout();i=o.width,a=o.height;var s=t.getModel(),l=s.get(NC),u=s.get(y5)/2,f=VC(s),c=Math.max(l,f),h=l-u,d=c-u;t.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),i=wl(i-2*h,0),a=wl(a-h-d,0);var v=i*a,g=S5(t,s,v,e,r,n);if(g.length){var p={x:h,y:d,width:i,height:a},m=qf(i,a),_=1/0,y=[];y.area=0;for(var b=0,w=g.length;b<w;){var S=g[b];y.push(S),y.area+=S.getLayout().area;var x=D5(y,m,e.squareRatio);x<=_?(b++,_=x):(y.area-=y.pop().getLayout().area,Fb(y,m,p,u,!1),m=qf(p.width,p.height),y.length=y.area=0,_=1/0)}if(y.length&&Fb(y,m,p,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&v<C&&(r=!0)}for(var b=0,w=g.length;b<w;b++)BC(g[b],e,r,n+1)}}}function S5(t,e,r,n,i,a){var o=t.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return t.viewChildren=[];o=dr(o,function(d){return!d.isRemoved()}),T5(o,s);var u=C5(e,o,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=x5(e,r,u.sum,s,o),u.sum===0)return t.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var h=o[f].getValue()/u.sum*r;o[f].setLayout({area:h})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function x5(t,e,r,n,i){if(!n)return r;for(var a=t.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*e<a&&(s=l,r-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),r}function T5(t,e){return e&&t.sort(function(r,n){var i=e==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return i===0?e==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:i}),t}function C5(t,e,r){for(var n=0,i=0,a=e.length;i<a;i++)n+=e[i].getValue();var o=t.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&r?(s=[e[e.length-1].getValue(),e[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],om(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function D5(t,e,r){for(var n=0,i=1/0,a=0,o=void 0,s=t.length;a<s;a++)o=t[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=t.area*t.area,u=e*e*r;return l?wl(u*n/l,l/(u*i)):1/0}function Fb(t,e,r,n,i){var a=e===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],f=e?t.area/e:0;(i||f>r[l[o]])&&(f=r[l[o]]);for(var c=0,h=t.length;c<h;c++){var d=t[c],v={},g=f?d.getLayout().area/f:0,p=v[l[o]]=wl(f-2*n,0),m=r[s[a]]+r[l[a]]-u,_=c===h-1||m<g?m:g,y=v[l[a]]=wl(_-2*n,0);v[s[o]]=r[s[o]]+qf(n,p/2),v[s[a]]=u+qf(n,y/2),u+=_,d.setLayout(v,!0)}r[s[o]]+=f,r[l[o]]-=f}function A5(t,e,r,n,i){var a=(e||{}).node,o=[n,i];if(!a||a===r)return o;for(var s,l=n*i,u=l*t.option.zoomToNodeRatio;s=a.parentNode;){for(var f=0,c=s.children,h=0,d=c.length;h<d;h++)f+=c[h].getValue();var v=a.getValue();if(v===0)return o;u*=f/v;var g=s.getModel(),p=g.get(NC),m=Math.max(p,VC(g));u+=4*p*p+(3*p+m)*Math.pow(u,.5),u>jy&&(u=jy),a=s}u<l&&(u=l);var _=Math.pow(u/l,.5);return[n*_,i*_]}function I5(t,e,r){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!r)return n;var i=r.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function FC(t,e,r,n,i){var a=t.getLayout(),o=r[i],s=o&&o===t;if(!(o&&!s||i===r.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new Oe(e.x-a.x,e.y-a.y,e.width,e.height);om(t.viewChildren||[],function(u){FC(u,l,r,n,i+1)})}}function VC(t){return t.get(_5)?t.get(b5):0}function zC(t){t.registerSeriesModel(Jz),t.registerChartView(u5),t.registerVisual(d5),t.registerLayout(w5),qz(t)}function M5(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){st(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function E5(t){var e={};t.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&n.setItemVisual(o,f[c],h)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){ue(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),f=i.ensureUniqueItemVisual(o,"style");W(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)i.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function Fu(t){return t instanceof Array||(t=[t,t]),t}function P5(t){t.eachSeriesByType("graph",function(e){var r=e.getGraph(),n=e.getEdgeData(),i=Fu(e.get("edgeSymbol")),a=Fu(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=Fu(s.getShallow("symbol",!0)),f=Fu(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(W(h,c),h.stroke){case"source":{var d=l.node1.getVisual("style");h.stroke=d&&d.fill;break}case"target":{var d=l.node2.getVisual("style");h.stroke=d&&d.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var dp="-->",Xc=function(t){return t.get("autoCurveness")||null},HC=function(t,e){var r=Xc(t),n=20,i=[];if(st(r))n=r;else if(te(r)){t.__curvenessList=r;return}e>n&&(n=e);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));t.__curvenessList=i},Sl=function(t,e,r){var n=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[r.uid,n,i].join(dp)},$C=function(t){var e=t.split(dp);return[e[0],e[2],e[1]].join(dp)},L5=function(t,e){var r=Sl(t.node1,t.node2,e);return e.__edgeMap[r]},R5=function(t,e){var r=vp(Sl(t.node1,t.node2,e),e),n=vp(Sl(t.node2,t.node1,e),e);return r+n},vp=function(t,e){var r=e.__edgeMap;return r[t]?r[t].length:0};function O5(t){Xc(t)&&(t.__curvenessList=[],t.__edgeMap={},HC(t))}function k5(t,e,r,n){if(Xc(r)){var i=Sl(t,e,r),a=r.__edgeMap,o=a[$C(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function sm(t,e,r,n){var i=Xc(e),a=te(i);if(!i)return null;var o=L5(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=R5(t,e);HC(e,u),t.lineStyle=t.lineStyle||{};var f=Sl(t.node1,t.node2,e),c=e.__curvenessList,h=a||u%2?0:1;if(o.isForward)return c[h+s];var d=$C(f),v=vp(d,e),g=c[s+v+h];return n?a?i&&i[0]===0?(v+h)%2?g:-g:((v%2?0:1)+h)%2?g:-g:(v+h)%2?g:-g:c[s+v+h]}function GC(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view")){var r=t.getGraph();r.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),lm(r,t)}}function lm(t,e){t.eachEdge(function(r,n){var i=ua(r.getModel().get(["lineStyle","curveness"]),-sm(r,e,n,!0),0),a=Cn(r.node1.getLayout()),o=Cn(r.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),r.setLayout(s)})}function N5(t,e){t.eachSeriesByType("graph",function(r){var n=r.get("layout"),i=r.coordinateSystem;if(i&&i.type!=="view"){var a=r.getData(),o=[];P(i.dimensions,function(h){o=o.concat(a.mapDimensionsAll(h))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=a.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}lm(a.graph,r)}else(!n||n==="none")&&GC(r)})}function Cs(t){var e=t.coordinateSystem;if(e.type!=="view")return 1;var r=t.option.nodeScaleRatio,n=e.scaleX,i=e.getZoom(),a=(i-1)*r+1;return a/n}function Ds(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Vb=Math.PI,kd=[];function um(t,e,r,n){var i=t.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=t.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,f=Math.min(a.width,a.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(r){var h=i.pointToData(n),d=h[0],v=h[1],g=[d-l,v-u];Fo(g,g),Wu(g,g,f),r.setLayout([l+g[0],u+g[1]],!0);var p=t.get(["circular","rotateLabel"]);UC(r,p,l,u)}B5[e](t,s,o,f,l,u,c),s.eachEdge(function(m,_){var y=ua(m.getModel().get(["lineStyle","curveness"]),sm(m,t,_),0),b=Cn(m.node1.getLayout()),w=Cn(m.node2.getLayout()),S,x=(b[0]+w[0])/2,C=(b[1]+w[1])/2;+y&&(y*=3,S=[l*y+x*(1-y),u*y+C*(1-y)]),m.setLayout([b,w,S])})}}}var B5={value:function(t,e,r,n,i,a,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=h})},symbolSize:function(t,e,r,n,i,a,o){var s=0;kd.length=o;var l=Cs(t);e.eachNode(function(c){var h=Ds(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var d=Math.asin(h/2/n);isNaN(d)&&(d=Vb/2),kd[c.dataIndex]=d,s+=d*2});var u=(2*Vb-s)/o/2,f=0;e.eachNode(function(c){var h=u+kd[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+i,n*Math.sin(f)+a]),f+=h})}};function UC(t,e,r,n){var i=t.getGraphicEl();if(i){var a=t.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var f=l[0]<r;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");W(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function F5(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&um(e,"symbolSize")})}var ja=dv;function V5(t,e,r){for(var n=t,i=e,a=r.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=Aa(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=Cn(c.p),c.edges=null}var h=r.friction==null?.6:r.friction,d=h,v,g;return{warmUp:function(){d=h*.8},setFixed:function(p){n[p].fixed=!0},setUnfixed:function(p){n[p].fixed=!1},beforeStep:function(p){v=p},afterStep:function(p){g=p},step:function(p){v&&v(n,i);for(var m=[],_=n.length,y=0;y<i.length;y++){var b=i[y];if(!b.ignoreForceLayout){var w=b.n1,S=b.n2;ea(m,S.p,w.p);var x=vv(m)-b.d,C=S.w/(w.w+S.w);isNaN(C)&&(C=0),Fo(m,m),!w.fixed&&ja(w.p,w.p,m,C*x*d),!S.fixed&&ja(S.p,S.p,m,-(1-C)*x*d)}}for(var y=0;y<_;y++){var T=n[y];T.fixed||(ea(m,l,T.p),ja(T.p,T.p,m,u*d))}for(var y=0;y<_;y++)for(var w=n[y],D=y+1;D<_;D++){var S=n[D];ea(m,S.p,w.p);var x=vv(m);x===0&&(CL(m,Math.random()-.5,Math.random()-.5),x=1);var I=(w.rep+S.rep)/x/x;!w.fixed&&ja(w.pp,w.pp,m,I),!S.fixed&&ja(S.pp,S.pp,m,-I)}for(var M=[],y=0;y<_;y++){var T=n[y];T.fixed||(ea(M,T.p,T.pp),ja(T.p,T.p,M,d),Bt(T.pp,T.p))}d=d*.992;var O=d<.01;g&&g(n,i,O),p&&p(O)}}}function z5(t){t.eachSeriesByType("graph",function(e){var r=e.coordinateSystem;if(!(r&&r.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},i=e.getGraph(),a=i.data,o=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?a.each(function(y){var b=a.getId(y);a.setItemLayout(y,n[b]||[NaN,NaN])}):!l||l==="none"?GC(e):l==="circular"&&um(e,"value");var u=a.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),d=te(c)?c:[c,c],v=te(h)?h:[h,h];v=[v[1],v[0]];var g=a.mapArray("value",function(y,b){var w=a.getItemLayout(b),S=ba(y,u,d);return isNaN(S)&&(S=(d[0]+d[1])/2),{w:S,rep:S,fixed:a.getItemModel(b).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),p=o.mapArray("value",function(y,b){var w=i.getEdgeByIndex(b),S=ba(y,f,v);isNaN(S)&&(S=(v[0]+v[1])/2);var x=w.getModel(),C=ua(w.getModel().get(["lineStyle","curveness"]),-sm(w,e,b,!0),0);return{n1:g[w.node1.dataIndex],n2:g[w.node2.dataIndex],d:S,curveness:C,ignoreForceLayout:x.get("ignoreForceLayout")}}),m=r.getBoundingRect(),_=V5(g,p,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});_.beforeStep(function(y,b){for(var w=0,S=y.length;w<S;w++)y[w].fixed&&Bt(y[w].p,i.getNodeByIndex(w).getLayout())}),_.afterStep(function(y,b,w){for(var S=0,x=y.length;S<x;S++)y[S].fixed||i.getNodeByIndex(S).setLayout(y[S].p),n[a.getId(S)]=y[S].p;for(var S=0,x=b.length;S<x;S++){var C=b[S],T=i.getEdgeByIndex(S),D=C.n1.p,I=C.n2.p,M=T.getLayout();M=M?M.slice():[],M[0]=M[0]||[],M[1]=M[1]||[],Bt(M[0],D),Bt(M[1],I),+C.curveness&&(M[2]=[(D[0]+I[0])/2-(D[1]-I[1])*C.curveness,(D[1]+I[1])/2-(I[0]-D[0])*C.curveness]),T.setLayout(M)}}),e.forceLayout=_,e.preservedPoints=n,_.step()}else e.forceLayout=null})}function H5(t,e,r){var n=W(t.getBoxLayoutParams(),{aspect:r});return wa(n,{width:e.getWidth(),height:e.getHeight()})}function $5(t,e){var r=[];return t.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(p){var m=a.getItemModel(p);return[+m.get("x"),+m.get("y")]}),s=[],l=[];x2(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=H5(n,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],d=f.width,v=f.height,g=n.coordinateSystem=new vC;g.zoomLimit=n.get("scaleLimit"),g.setBoundingRect(s[0],s[1],c,h),g.setViewRect(f.x,f.y,d,v),g.setCenter(n.get("center"),e),g.setZoom(n.get("zoom")),r.push(g)}}),r}var Nd=[],Bd=[],Fd=[],qa=Wt,Vd=fa,zb=Math.abs;function Hb(t,e,r){for(var n=t[0],i=t[1],a=t[2],o=1/0,s,l=r*r,u=.1,f=.1;f<=.9;f+=.1){Nd[0]=qa(n[0],i[0],a[0],f),Nd[1]=qa(n[1],i[1],a[1],f);var c=zb(Vd(Nd,e)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var d=s+u;Bd[0]=qa(n[0],i[0],a[0],s),Bd[1]=qa(n[1],i[1],a[1],s),Fd[0]=qa(n[0],i[0],a[0],d),Fd[1]=qa(n[1],i[1],a[1],d);var c=Vd(Bd,e)-l;if(zb(c)<.01)break;var v=Vd(Fd,e)-l;u/=2,c<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function zd(t,e){var r=[],n=ol,i=[[],[],[]],a=[[],[]],o=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[Cn(u[0]),Cn(u[1])],u[2]&&u.__original.push(Cn(u[2])));var h=u.__original;if(u[2]!=null){if(Bt(i[0],h[0]),Bt(i[1],h[2]),Bt(i[2],h[1]),f&&f!=="none"){var d=Ds(s.node1),v=Hb(i,h[0],d*e);n(i[0][0],i[1][0],i[2][0],v,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],v,r),i[0][1]=r[3],i[1][1]=r[4]}if(c&&c!=="none"){var d=Ds(s.node2),v=Hb(i,h[1],d*e);n(i[0][0],i[1][0],i[2][0],v,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],v,r),i[1][1]=r[1],i[2][1]=r[2]}Bt(u[0],i[0]),Bt(u[1],i[2]),Bt(u[2],i[1])}else{if(Bt(a[0],h[0]),Bt(a[1],h[1]),ea(o,a[1],a[0]),Fo(o,o),f&&f!=="none"){var d=Ds(s.node1);dv(a[0],a[0],o,d*e)}if(c&&c!=="none"){var d=Ds(s.node2);dv(a[1],a[1],o,-d*e)}Bt(u[0],a[0]),Bt(u[1],a[1])}})}function $b(t){return t.type==="view"}var G5=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){var i=new Tz,a=new Iz,o=this.group;this._controller=new pC(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},e.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if($b(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Ti(u,f,r)}zd(r.getGraph(),Cs(r));var c=r.getData();s.updateData(c);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var d=r.forceLayout,v=r.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,v);var g=r.get("layout");c.graph.eachNode(function(y){var b=y.dataIndex,w=y.getGraphicEl(),S=y.getModel();if(w){w.off("drag").off("dragend");var x=S.get("draggable");x&&w.on("drag",function(T){switch(g){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,v),d.setFixed(b),c.setItemLayout(b,[w.x,w.y]);break;case"circular":c.setItemLayout(b,[w.x,w.y]),y.setLayout({fixed:!0},!0),um(r,"symbolSize",y,[T.offsetX,T.offsetY]),a.updateLayout(r);break;case"none":default:c.setItemLayout(b,[w.x,w.y]),lm(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),w.setDraggable(x,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(Fe(w).focus=y.getAdjacentDataIndices())}}),c.graph.eachEdge(function(y){var b=y.getGraphicEl(),w=y.getModel().get(["emphasis","focus"]);b&&w==="adjacency"&&(Fe(b).focus={edge:[y.dataIndex],node:[y.node1.dataIndex,y.node2.dataIndex]})});var p=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(y){UC(y,p,m,_)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},e.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!jV(u,i,r)}),!$b(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){YV(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){XV(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),zd(r.getGraph(),Cs(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=Cs(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},e.prototype.updateLayout=function(r){zd(r.getGraph(),Cs(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e})(An);function Za(t){return"_EC_"+t}var U5=(function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,r){e=e==null?""+r:""+e;var n=this._nodesMap;if(!n[Za(e)]){var i=new qi(e,r);return i.hostGraph=this,this.nodes.push(i),n[Za(e)]=i,i}},t.prototype.getNodeByIndex=function(e){var r=this.data.getRawIndex(e);return this.nodes[r]},t.prototype.getNodeById=function(e){return this._nodesMap[Za(e)]},t.prototype.addEdge=function(e,r,n){var i=this._nodesMap,a=this._edgesMap;if(st(e)&&(e=this.nodes[e]),st(r)&&(r=this.nodes[r]),e instanceof qi||(e=i[Za(e)]),r instanceof qi||(r=i[Za(r)]),!(!e||!r)){var o=e.id+"-"+r.id,s=new WC(e,r,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),r.inEdges.push(s)),e.edges.push(s),e!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},t.prototype.getEdgeByIndex=function(e){var r=this.edgeData.getRawIndex(e);return this.edges[r]},t.prototype.getEdge=function(e,r){e instanceof qi&&(e=e.id),r instanceof qi&&(r=r.id);var n=this._edgesMap;return this._directed?n[e+"-"+r]:n[e+"-"+r]||n[r+"-"+e]},t.prototype.eachNode=function(e,r){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&e.call(r,n[a],a)},t.prototype.eachEdge=function(e,r){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(r,n[a],a)},t.prototype.breadthFirstTraverse=function(e,r,n,i){if(r instanceof qi||(r=this._nodesMap[Za(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(e.call(i,c,l))return;s.push(c),c.__visited=!0}}}},t.prototype.update=function(){for(var e=this.data,r=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)n[e.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=i[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=r.count();a<o;a++)i[r.getRawIndex(a)].dataIndex=a},t.prototype.clone=function(){for(var e=new t(this._directed),r=this.nodes,n=this.edges,i=0;i<r.length;i++)e.addNode(r[i].id,r[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},t})(),qi=(function(){function t(e,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=r??-1}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},t.prototype.getTrajectoryDataIndices=function(){for(var e=we(),r=we(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var f=o[s];s++,r.set(f.dataIndex,!0);for(var u=0;u<f.outEdges.length;u++)e.set(f.outEdges[u].dataIndex,!0),o.push(f.outEdges[u].node2)}}}return{edge:e.keys(),node:r.keys()}},t})(),WC=(function(){function t(e,r,n){this.dataIndex=-1,this.node1=e,this.node2=r,this.dataIndex=n??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var e=we(),r=we();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:e.keys(),node:r.keys()}},t})();function YC(t,e){return{getValue:function(r){var n=this[t][e];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[t][e].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Yr(qi,YC("hostGraph","data"));Yr(WC,YC("hostGraph","edgeData"));function W5(t,e,r,n,i){for(var a=new U5(n),o=0;o<t.length;o++)a.addNode(bi(t[o].id,t[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],c=f.source,h=f.target;a.addEdge(c,h,u)&&(l.push(f),s.push(bi(nr(f.id,null),c+" > "+h)),u++)}var d=r.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=JF(t,r);else{var g=$c.get(d),p=g?g.dimensions||[]:[];$e(p,"value")<0&&p.concat(["value"]);var m=em(t,{coordDimensions:p,encodeDefine:r.getEncode()}).dimensions;v=new yl(m,r),v.initData(t)}var _=new yl(["value"],r);return _.initData(l,s),i&&i(v,_),IC({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var Y5=(function(t){le(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new zz(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(r){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Mv(r,"edgeLabel",["show"])},e.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){O5(this);var s=W5(a,i,this,!0,l);return P(s.edges,function(u){k5(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(v){var g=o._categoriesModels,p=v.getShallow("category"),m=g[p];return m&&(m.parentModel=v.parentModel,v.parentModel=m),v});var c=Ze.prototype.getModel;function h(v,g){var p=c.call(this,v,g);return p.resolveParentPath=d,p}f.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=h,v});function d(v){if(v&&(v[0]==="label"||v[1]==="label")){var g=v.slice();return v[0]==="label"?g[0]="edgeLabel":v[1]==="label"&&(g[1]="edgeLabel"),g}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Sa("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=wT({series:this,dataIndex:r,multipleSeries:n});return c},e.prototype._updateCategoriesData=function(){var r=ke(this.option.categories||[],function(i){return i.value!=null?i:W({value:0},i)}),n=new yl(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(Rn),X5={type:"graphRoam",event:"graphRoam",update:"none"};function K5(t){t.registerChartView(G5),t.registerSeriesModel(Y5),t.registerProcessor(M5),t.registerVisual(E5),t.registerVisual(P5),t.registerLayout(N5),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,F5),t.registerLayout(z5),t.registerCoordinateSystem("graphView",{dimensions:vC.dimensions,create:$5}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},mt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},mt),t.registerAction(X5,function(e,r,n){r.eachComponent({mainType:"series",query:e},function(i){var a=i.coordinateSystem,o=UV(a,e,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Gb(t,e,r){var n=No.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}var Hd=(function(t){le(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Lf,typeof r=="string"?o=Gb(r,n,i):ve(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(R1(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Gb("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Oe(0,0,0,0);function f(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var y=new Oe(0,0,0,0);y.copy(_),o.push(y)}else{for(var b=!1,w=1/0,S=0,x=0;x<o.length;++x){var C=o[x];if(C.intersect(_)){var T=new Oe(0,0,0,0);T.copy(C),T.union(_),o[x]=T,b=!0;break}else if(l){u.copy(_),u.union(C);var D=_.width*_.height,I=C.width*C.height,M=u.width*u.height,O=M-D-I;O<w&&(w=O,S=x)}}if(l&&(o[S].union(_),b=!0),!b){var y=new Oe(0,0,0,0);y.copy(_),o.push(y)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=r[c];if(h){var d=h.shouldBePainted(i,a,!0,!0),v=h.__isRendered&&(h.__dirty&vr||!d)?h.getPrevPaintRect():null;v&&f(v);var g=d&&(h.__dirty&vr||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],d=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&f(v)}}var p;do{p=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var m=c+1;m<o.length;)o[c].intersect(o[m])?(p=!0,o[c].union(o[m]),o.splice(m,1)):m++;c++}}while(p);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var d=this.domBack;function v(g,p,m,_){if(o.clearRect(g,p,m,_),n&&n!=="transparent"){var y=void 0;if(Cc(n)){var b=n.global||n.__width===m&&n.__height===_;y=b&&n.__canvasGradient||Zv(o,n,{x:0,y:0,width:m,height:_}),n.__canvasGradient=y,n.__width=m,n.__height=_}else yL(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,y=Jv(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=y||n,o.fillRect(g,p,m,_),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(d,g,p,m,_),o.restore())}!i||u?v(0,0,s,l):i.length&&P(i,function(g){v(g.x*c,g.y*c,g.width*c,g.height*c)})},e})(Xr),Ub=1e5,Xi=314159,Vu=.01,j5=.001;function q5(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function Z5(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var J5=(function(){function t(e,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=W({},n||{}),this.dpr=n.devicePixelRatio||Lf,this._singleCanvas=a,this.root=e;var o=e.style;o&&(R1(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=e,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var d=new Hd(f,this,this.dpr);d.__builtin__=!0,d.initContext(),l[Xi]=d,d.zlevel=Xi,s.push(Xi),this._domRoot=e}else{this._width=Pu(e,0,n),this._height=Pu(e,1,n);var u=this._domRoot=Z5(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Ub)),a||(a=n.ctx,a.save()),aa(a,s,i,o===r-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(Ub)},t.prototype.paintOne=function(e,r){kT(e,r)},t.prototype._paintList=function(e,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Af(function(){l._paintList(e,r,n,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Xi).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,c=!1,h=function(g){var p=a[g],m=p.ctx,_=o&&p.createRepaintRects(e,r,d._width,d._height),y=n?p.__startIndex:p.__drawIndex,b=!n&&p.incremental&&Date.now,w=b&&Date.now(),S=p.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,S,_);else if(y===p.__startIndex){var x=e[y];(!x.incremental||!x.notClear||n)&&p.clear(!1,S,_)}y===-1&&(console.error("For some unknown reason. drawIndex is -1"),y=p.__startIndex);var C,T=function(O){var R={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=y;C<p.__endIndex;C++){var V=e[C];if(V.__inHover&&(c=!0),i._doPaintEl(V,p,o,O,R,C===p.__endIndex-1),b){var N=Date.now()-w;if(N>15)break}}R.prevElClipPaths&&m.restore()};if(_)if(_.length===0)C=p.__endIndex;else for(var D=d.dpr,I=0;I<_.length;++I){var M=_[I];m.save(),m.beginPath(),m.rect(M.x*D,M.y*D,M.width*D,M.height*D),m.clip(),T(M),m.restore()}else m.save(),T(),m.restore();p.__drawIndex=C,p.__drawIndex<p.__endIndex&&(f=!1)},d=this,v=0;v<a.length;v++)h(v);return be.wxa&&P(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:c}},t.prototype._doPaintEl=function(e,r,n,i,a,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(aa(s,e,a,o),e.setPrevPaintRect(l))}else aa(s,e,a,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Xi);var n=this._layers[e];return n||(n=new Hd("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?at(n,this._layerConfig[e],!0):this._layerConfig[e-Vu]&&at(n,this._layerConfig[e-Vu],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&q5(r)){if(a>0&&e>i[0]){for(l=0;l<a-1&&!(i[l]<e&&i[l+1]>e);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(r,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(r,o,a)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(r,o,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(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 a=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+j5,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Vu:0),this._needsManuallyCompositing),f.__builtin__||ug("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&vr&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,P(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?at(n[e],r,!0):n[e]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+Vu){var o=this._layers[a];at(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,i=r[e];i&&(i.dom.parentNode.removeChild(i.dom),delete r[e],n.splice($e(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),r!=null&&(i.height=r),e=Pu(a,0,i),r=Pu(a,1,i),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(Xi).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Xi].dom;var r=new Hd("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];aa(n,f,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function XC(t){t.registerPainter("canvas",J5)}const Q5={indigo:{300:"#A5B4FC",400:"#818CF8",500:"#6366F1",600:"#4F46E5",700:"#4338CA",800:"#3730A3",900:"#312E81",950:"#1A1B2C"},violet:{300:"#C4B5FD",400:"#A78BFA",500:"#8B5CF6",600:"#7C3AED",700:"#6D28D9",800:"#5B21B6",900:"#4C1D95",950:"#2E1065"},purple:{300:"#D8B4FE",400:"#C084FC",500:"#A855F7",600:"#9333EA",700:"#7E22CE",800:"#6B21A8",900:"#581C87",950:"#3B0764"},fuchsia:{300:"#F9A8D4",400:"#F472B6",500:"#EC4899",600:"#DB2777",700:"#BE185D",800:"#9D174D",900:"#831843",950:"#500724"},pink:{300:"#F9A8D4",400:"#F472B6",500:"#EC4899",600:"#DB2777",700:"#BE185D",800:"#9D174D",900:"#831843",950:"#500724"},rose:{300:"#FDA4AF",400:"#FB7185",500:"#F43F5E",600:"#E11D48",700:"#BE123C",800:"#9F1239",900:"#881337",950:"#4C0519"},orange:{300:"#FDBA74",400:"#FB923C",500:"#F97316",600:"#EA580C",700:"#C2410C",800:"#9A3412",900:"#7C2D12",950:"#431407"},amber:{300:"#FCD34D",400:"#FBBF24",500:"#F59E0B",600:"#D97706",700:"#B45309",800:"#92400E",900:"#78350F",950:"#451A03"},yellow:{300:"#FDE047",400:"#FACC15",500:"#EAB308",600:"#CA8A04",700:"#A16207",800:"#854D0E",900:"#713F12",950:"#362F0F"},lime:{300:"#BFE4A5",400:"#9FE673",500:"#84CC16",600:"#65A30D",700:"#4D7C0F",800:"#3F6212",900:"#365314",950:"#1A2E05"},green:{300:"#86E4A8",400:"#4ADE80",500:"#22C55E",600:"#16A34A",700:"#15803D",800:"#145C30",900:"#14532B",950:"#052E16"},emerald:{300:"#6EE7B7",400:"#34D399",500:"#10B981",600:"#059669",700:"#047857",800:"#065F46",900:"#064E3B",950:"#022C22"},teal:{300:"#5EEAD4",400:"#2DD4BF",500:"#14B8A6",600:"#0D9488",700:"#0F766E",800:"#115E59",900:"#134E4A",950:"#042F2D"},cyan:{300:"#67E8F9",400:"#22D3EE",500:"#06B6D4",600:"#0891B2",700:"#0E7490",800:"#155E75",900:"#164E63",950:"#083344"},sky:{300:"#7DD5FE",400:"#38BDF8",500:"#0EA5E9",600:"#0284C7",700:"#0369A1",800:"#075985",900:"#0C4A6E",950:"#082F49"}},pp=Object.values(Q5).map(t=>Object.values(t)),As=pp.map(t=>t[2]),eH={blue:{300:"#93C5FD",400:"#60A5FA",500:"#3B82F6",600:"#2563EB",700:"#1D4ED8",800:"#1E40AF",900:"#1E3A8A",950:"#172554"}},sf=Object.values(eH.blue),tH=sf[2];function Ja(t,e){const{length:r}=t,n=Math.floor(e/r)%2===1?r-2:0;return t[n+(n===0?1:-1)*(e%t.length)]}function KC(t,e,r){Po(e);const n=$r();function i(){n.value?.resize()}return lr(()=>{n.value=TF(t.value),r(n.value),window.addEventListener("resize",i)}),Si(()=>{window.removeEventListener("resize",i),n.value?.dispose()}),n}function Zi(t,e){return ce({get:()=>t.value[e],set:r=>{t.value={...t.value,[e]:r}}})}const rH=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},nH={},iH={type:"button",class:"flex flex-shrink-0 cursor-pointer items-center justify-center gap-1 border border-blue-600 rounded-md border-solid bg-blue-600 px-2 py-1 c-white transition-colors active:bg-blue-800 hover:bg-blue-700"};function aH(t,e){return Q(),nt("button",iH,[Me(t.$slots,"default")])}const fm=rH(nH,[["render",aH]]),jC=he({__name:"BaseSwitch",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=br(t,"modelValue");return(r,n)=>(Q(),ge(L(AP),{modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=i=>e.value=i),class:"relative h-[20px] w-[32px] flex border border-stone-300 rounded-full shadow-sm data-[state=checked]:border-blue-600 data-[state=checked]:bg-blue-600 data-[state=unchecked]:bg-stone-300"},{default:ae(()=>[re(L(IP),{class:"my-auto h-3.5 w-3.5 translate-x-0.5 rounded-full bg-white transition-transform will-change-transform data-[state=checked]:translate-x-full"})]),_:1},8,["modelValue"]))}}),oH={role:"menu",class:"border border-gray-300 border-solid text-sm shadow-md dark:border-gray-700"},sH=["onClick"],qC=he({__name:"BaseContextMenu",props:ir({x:{},y:{},items:{}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=br(t,"modelValue"),{escape:r}=rL();Ne(r,()=>{e.value&&=!1});const n=cc("root");HP(n,()=>{e.value=!1});function i(a){e.value=!1,a.onClick()}return(a,o)=>e.value?(Q(),nt("div",{key:0,ref_key:"root",ref:n,class:"fixed",style:On({left:`${a.x}px`,top:`${a.y}px`})},[xe("ul",oH,[(Q(!0),nt(et,null,Oo(a.items,s=>(Q(),nt("li",{key:s.label,role:"menuitem",class:"cursor-pointer bg-white px-2 py-1 dark:bg-gray-800 hover:bg-blue-700 dark:c-white hover:c-white",onClick:l=>i(s)},zt(s.label),9,sH))),128))])],4)):sn("",!0)}}),ZC=Symbol("nested"),Kc=he({__name:"OptionItem",props:{title:{}},setup(t){const e=si(ZC,!1);return(r,n)=>(Q(),nt("div",{class:un(["flex justify-between p-2 c-gray-900 dark:c-white",{"border-b border-solid border-gray-300 dark:border-gray-700":!L(e)}])},[mr(zt(r.title)+" ",1),Me(r.$slots,"default")],2))}}),lH=["value","step"],zu=he({__name:"NumberOption",props:ir({title:{},step:{},fixed:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,r=br(t,"modelValue");function n(){r.value+=e.step??1}function i(){r.value-=e.step??1}const a=fe(!1);return zr("wheel",o=>{a.value&&(o.deltaY<0?n():i())},{passive:!1}),(o,s)=>(Q(),ge(Kc,{title:o.title},{default:ae(()=>[xe("div",{class:"flex items-stretch border-1 border-gray-300 rounded border-solid dark:border-gray-700",onMouseenter:s[1]||(s[1]=l=>a.value=!0),onMouseleave:s[2]||(s[2]=l=>a.value=!1)},[xe("button",{class:"w-[24px] flex items-center justify-center border-r border-gray-300 border-solid dark:border-gray-700",onClick:i},s[3]||(s[3]=[xe("span",{class:"i-mdi:minus block"},null,-1)])),xe("input",{class:"max-w-[70px] appearance-none text-center dark:bg-gray-700 focus:outline-none",value:r.value.toFixed(e.fixed??0),step:o.step,onUpdate:s[0]||(s[0]=l=>r.value=Number.parseFloat(l.target.value))},null,40,lH),xe("button",{class:"w-[24px] flex items-center justify-center border-l border-gray-300 border-solid dark:border-gray-700",onClick:n},s[4]||(s[4]=[xe("span",{class:"i-mdi:plus block"},null,-1)]))],32)]),_:1},8,["title"]))}}),uH=["value"],fH=he({__name:"DropdownOption",props:ir({options:{},title:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=br(t,"modelValue");return(r,n)=>(Q(),ge(Kc,{title:r.title},{default:ae(()=>[uc(xe("select",{"onUpdate:modelValue":n[0]||(n[0]=i=>e.value=i),class:"border-none bg-transparent capitalize focus:outline-none"},[(Q(!0),nt(et,null,Oo(r.options,i=>(Q(),nt("option",{key:i,value:i,class:"capitalize"},zt(i),9,uH))),128))],512),[[Pl,e.value]])]),_:1},8,["title"]))}}),cm=he({__name:"OptionGroup",props:{title:{}},setup(t){return vc(ZC,!0),(e,r)=>(Q(),ge(L(JM),{type:"single",collapsible:!0},{default:ae(()=>[re(L(iE),{value:"1"},{default:ae(()=>[re(L(fE),null,{default:ae(()=>[re(L(hE),{class:"group w-full flex items-center justify-between border-gray-300 border-solid p-2 c-gray-900 data-[state=closed]:border-b dark:border-gray-700 hover:bg-gray-200 dark:c-white dark:hover-bg-gray-600"},{default:ae(()=>[xe("div",null,zt(e.title),1),r[0]||(r[0]=xe("span",{class:"i-mdi:chevron-down group-data-[state=open]:rotate-180"},null,-1))]),_:1,__:[0]})]),_:1}),re(L(uE),{class:"border-b border-gray-300 border-solid dark:border-gray-700"},{default:ae(()=>[Me(e.$slots,"default")]),_:3})]),_:3})]),_:3}))}});function JC(t,e,r,n=!0){let i=n?[...t]:t,a=n?e.map(([o,s])=>[o,s]):e;for(const o of[...r].sort((s,l)=>l-s))a=a.filter(([s,l])=>s!==o&&l!==o),i=i.filter((s,l)=>l!==o),a.forEach(s=>{s[0]>o&&(s[0]-=1),s[1]>o&&(s[1]-=1)});return{nodes:i,edges:a}}function cH(t,e,r,n){let i=0;do{i=0;const a=[];for(let s=0;s<t.length;s+=1){const l=[];for(let u=0;u<e.length;u+=1)e[u][0]===s&&l.push(e[u][1]);l.length===0&&!xl(t[s],r,n)&&a.push(s)}i=a.length;const o=JC(t,e,a);t=o.nodes,e=o.edges}while(i);return{nodes:t,edges:e}}const pr={Rendered:"rendered",Minified:"minified",Compressed:"compressed"};function hH(t){return`${t[0].toUpperCase()+t.slice(1)} size`}function hm(t){const e=[];return t.chunks.every(r=>r.minifiedLength!==-1)&&e.push(pr.Minified),e.push(pr.Rendered),t.chunks.every(r=>r.compressedLength!==-1)&&e.push(pr.Compressed),e}function dH(t,e,r){const n=e.chunks.find(i=>i.fileName===t);if(n)switch(r){case pr.Rendered:return n.modules.reduce((i,a)=>i+a.renderedLength,0);case pr.Minified:return n.minifiedLength;case pr.Compressed:return n.compressedLength;default:throw new Error(`Unexpected metric value: ${r}`)}}function dm(t){return t<1024?`${Math.ceil(t)} B`:t<1024*1024?`${(t/1024).toFixed(2)} KB`:`${(t/1024/1024).toFixed(2)} MB`}function xl(t,e,r){const n=typeof t=="string"?e.moduleFileNames.indexOf(t):t;if(n!==-1){for(const i of e.chunks)for(const a of i.modules)if(a.fileNameIndex===n){if(r===pr.Rendered)return a.renderedLength;const o=dH(i.fileName,e,pr.Rendered),s=a.renderedLength/o;if(r===pr.Minified)return i.minifiedLength*s;if(r===pr.Compressed)return i.compressedLength*s}}}function Ys(t){return t.startsWith("node_modules")}function QC(t,e){const r=typeof t=="string"?e.moduleFileNames.indexOf(t):t;for(const n of e.chunks)for(const i of n.modules)if(i.fileNameIndex===r)return i.virtual??!1;return!1}function gp(t){if(!Ys(t))return"";if(t.startsWith("node_modules/.pnpm")){const n=t.split("/");return n[4].startsWith("@")?`${n[4]}/${n[5]}`:n[4]}const e=t.split("/"),r=e.lastIndexOf("node_modules");return e[r+1].startsWith("@")?`${e[r+1]}/${e[r+2]}`:e[r+1]}function eD(t,e,r){const n=[[e]];for(;n.length;){const i=n.shift(),a=i[i.length-1];if(a===r)return i;for(const o of t)o[0]===a&&!i.includes(o[1])&&n.push([...i,o[1]])}}function mp(t,e,r=0){for(const n of t)mp(n.children,e,r+1),e(n,r)}const vH=he({inheritAttrs:!1,__name:"TreeMapView",props:ir({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:ir(["updateView"],["update:options"]),setup(t,{emit:e}){const r=t,n=e,i=br(t,"options"),a=ag(),o=fe(),s=fe(!1),l=fe({x:0,y:0});function u(){const v=o.value;if(!v)return;const g=new Set;v.moduleIndex&&g.add(v.moduleIndex);function p(m){m.children.forEach(_=>p(_)),m.moduleIndex&&g.add(m.moduleIndex)}p(v),i.value={...i.value,hiddenModules:[...i.value.hiddenModules,...Array.from(g)]}}function f(){const v=o.value;if(!v)return;const g=v.moduleIndex;if(g==null)return;const m=eD(r.stats.importGraph.edges,0,g);if(!m)return;const _=r.stats.moduleFileNames.map((y,b)=>b).filter(y=>!m.includes(y));n("updateView","graph",{hiddenModules:_})}const c=cc("main"),h=KC(c,[xC,wC,Vz,K5,XC,zC],v=>{v.on("contextmenu",m=>{m.event.event.preventDefault();const _=m.event.event;l.value={x:_.clientX,y:_.clientY},s.value=!0,o.value=m.data});const g={show:!0,textBorderColor:"black",textBorderWidth:0,height:30};function p(){return{upperLabel:{...g,color:"white"},itemStyle:{textColor:"black",borderWidth:8,gapWidth:4}}}v.setOption({color:As,tooltip:{formatter(m){const{value:_}=m,{treePathInfo:y}=m,b=[];for(let D=1;D<y.length;D+=1)b.push(y[D].name);const w=[];w.push(`<div class="tooltip-title">${Gt(b.length===1?b:b.slice(1).join("/"))}</div>`,`${hH(i.value.metric)}: ${Xx((_/1024).toFixed(2))} KB`);const S=b.slice(1).join("/"),x=r.stats.moduleFileNames.findIndex(D=>D===S);x>=0&&w.push(`<div>Module index: ${x}</div>`);const T=(x>=0?r.stats.importGraph.edges.filter(([D,I])=>I===x):[]).map(D=>r.stats.moduleFileNames[D[0]]);return T.length&&(w.push('<div class="mt-2">Imported by:</div>',"<ul>"),T.length>8?(w.push(...T.slice(0,7).map(D=>`<li>${D}</li>`)),w.push(`and ${T.length-8} more`)):w.push(...T.map(D=>`<li>${D}</li>`)),w.push("</ul>")),w.join("")}},series:[{name:"Chunks",type:"treemap",label:{show:!0,formatter:"{b}"},upperLabel:g,levels:[{itemStyle:{gapWidth:8}},...Array.from({length:30}).map(p)],data:d.value}]})});Yt(()=>{h.value?.setOption({series:[{itemStyle:{borderColor:a.value?"#111827":"#ffffff"}}]})});const d=ce(()=>{const v=[];for(let g=0;g<r.stats.chunks.length;g+=1){const p=r.stats.chunks[g],m=pp[g%pp.length];if(i.value.hiddenChunks.includes(p.fileName))continue;const _={value:0,name:p.fileName,path:p.fileName,children:[],upperLabel:{backgroundColor:m[0]},itemStyle:{color:m[0],borderColor:m[0]}};v.push(_);for(const y of p.modules){const b=y.fileNameIndex;if(i.value.hiddenModules.includes(b))continue;const w=r.stats.moduleFileNames[y.fileNameIndex].split("/");let S=_;for(let x=0;x<w.length;x+=1){const C=S.children.find(T=>T.name===w[x]);if(C)S=C;else{const T={name:w[x],path:w[x],value:xl(y.fileNameIndex,r.stats,i.value.metric)??0,children:[],moduleIndex:b,upperLabel:{backgroundColor:Ys(w[0])?Ja(m,x+1):Ja(sf,x)},itemStyle:{color:Ys(w[0])?Ja(m,x+1):Ja(sf,x),borderColor:Ys(w[0])?Ja(m,x+1):Ja(sf,x)}};S.children.push(T),S=T}}}}return mp(v,g=>{g.children.length&&(g.value=g.children.reduce((p,m)=>p+m.value,0))}),i.value.compact&&mp(v,g=>{g.children.length===1&&(g.path=`${g.path}/${g.children[0].path}`,g.name=`${g.name}/${g.children[0].name}`,g.children=g.children[0].children)}),v});return Ne(d,()=>{h.value?.setOption({series:[{data:d.value}]})}),lr(()=>{Ot(()=>window.dispatchEvent(new Event("resize")))}),(v,g)=>(Q(),nt(et,null,[xe("div",{ref_key:"main",ref:c,class:un(v.$attrs.class)},null,2),re(L(qC),{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=p=>s.value=p),x:l.value.x,y:l.value.y,items:[{label:"Hide",onClick:u},{label:"Show import path",onClick:f}]},null,8,["modelValue","x","y","items"])],64))}}),tD=he({__name:"MetricOption",props:ir({stats:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,r=br(t,"modelValue"),n=[pr.Rendered,pr.Minified,pr.Compressed],i=hm(e.stats).sort((a,o)=>n.indexOf(a)-n.indexOf(o));return(a,o)=>(Q(),ge(L(fH),{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value=s),title:"Stats",options:L(i)},null,8,["modelValue","options"]))}});function co(t,e,r=0,n,i="pre"){for(const a of t)i==="pre"&&e(a,r),a.children&&(n?.(a)||co(a.children,e,r+1,n,i)),i==="post"&&e(a,r)}function yp(t,e){t.sort(e);for(const r of t)r.children&&yp(r.children,e)}const pH=he({props:{data:{type:Object,required:!0}},emits:["toggle","toggle-visibility","hover","context-menu"],setup(t,{emit:e}){return()=>{const r=[];return co(t.data,(n,i)=>{r.push(Ft("li",{role:"treeitem",ariaLevel:i+1,onClick(){e("toggle",n)},onContextmenu(a){a.preventDefault(),e("context-menu",{node:n,event:a})},class:"flex items-center cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-700 overflow-hidden py-1"},[Ft("div",{class:n.visible?"i-mdi:eye-outline flex-none":"i-mdi:eye-off-outline flex-none opacity-50",onClick(a){a.stopPropagation(),e("toggle-visibility",n)},style:{marginRight:`${i?i*12:4}px`}}),n.children?Ft("div",{class:`${n.collapsed?"i-mdi:chevron-right":"i-mdi:chevron-down"} flex-none`}):Ft("div",{class:"flex-none w-4 h-4"}),n.icons?.map(a=>Ft("div",{class:`inline-block flex-none ${a} mr-1`})),Ft("div",{class:"flex-1-1 min-w-0 truncate text-sm",title:n.title},n.title),n.query&&Ft("div",{class:"flex-none ml-1 i-mdi:help",title:n.query}),typeof n.size=="number"&&Ft("div",{class:"flex-none ml-auto text-sm"},dm(n.size))]))},0,n=>!!n.collapsed,"pre"),Ft("ul",{role:"tree",class:"c-gray-900 dark:c-white"},r)}}});function gH(t){const[e,r]=t.substring(t.lastIndexOf("/")).split("?");return r?[e,r]:[e]}const Wb={js:"i-vscode-icons:file-type-js-official",mjs:"i-vscode-icons:file-type-js-official",cjs:"i-vscode-icons:file-type-js-official",ts:"i-vscode-icons:file-type-typescript-official",mts:"i-vscode-icons:file-type-typescript-official",cts:"i-vscode-icons:file-type-typescript-official",vue:"i-vscode-icons:file-type-vue",jsx:"i-vscode-icons:file-type-reactjs",tsx:"i-vscode-icons:file-type-reactts",css:"i-vscode-icons:file-type-css",scss:"i-vscode-icons:file-type-sass",sass:"i-vscode-icons:file-type-sass",less:"i-vscode-icons:file-type-less",svg:"i-vscode-icons:file-type-svg",html:"i-vscode-icons:file-type-html"};function mH(t,e){const r=[],{fileName:n}=t;if(!n)return r;if(QC(n,e))return r.push("i-vscode-icons:file-type-vite"),r;const[i,a]=gH(n),o=i.substring(i.lastIndexOf(".")+1),s=Wb[o];if(s&&r.push(s),typeof a=="string"&&a?.startsWith("vue")){const l=/lang\.([a-z]+)/gm.exec(a)?.[1],u=Wb[l??""];u&&r.push(u)}return r}function yH(t,e){const r=[];for(const n of t){const i=n.split("/");let a=r;for(let o=0;o<i.length;o+=1){const s=a.find(l=>l.title===i[o]);if(s)a=s.children;else{const l={title:i[o],visible:!0};if(o!==i.length-1)l.children=[],l.collapsed=!0,l.icons=["i-vscode-icons:default-folder"];else{const u=i[o].indexOf("?");u!==-1&&(l.query=i[o].substring(u+1)),l.title=l.title.substring(0,u!==-1?u:void 0),l.fileName=n,l.icons=mH(l,e)}a.push(l),a=l.children}}}return r}const _H={class:"flex justify-between p-1"},bH={class:"c-gray-900 dark:c-white"},rD=he({__name:"ModuleFilter",props:ir({stats:{},modules:{}},{options:{required:!0},optionsModifiers:{}}),emits:ir(["updateView"],["update:options"]),setup(t,{emit:e}){const r=t,n=e,i=br(t,"options");function a(_,y){y?i.value={...i.value,hiddenModules:i.value.hiddenModules.filter(b=>!_.includes(b))}:i.value={...i.value,hiddenModules:[...i.value.hiddenModules,..._]}}const o=ce(()=>{const _=[];if(r.modules==="bundled")for(const y of r.stats.chunks)for(const b of y.modules)_.push(r.stats.moduleFileNames[b.fileNameIndex]);else _.push(...r.stats.moduleFileNames);return _});function s(){i.value.hiddenModules.length===0?i.value={...i.value,hiddenModules:o.value.map(_=>r.stats.moduleFileNames.indexOf(_))}:i.value={...i.value,hiddenModules:[]}}const l=r.modules==="all"?r.stats.moduleFileNames.length:r.stats.chunks.reduce((_,y)=>_+y.modules.length,0),u=fe(yH(o.value,r.stats));Ne(()=>i.value.metric,_=>{co(u.value,y=>{y.fileName&&(y.size=xl(y.fileName,r.stats,_)??0),y.children&&(y.size=y.children?.reduce((b,w)=>b+(w.size??0),0)??0)},0,void 0,"post")},{immediate:!0}),Ne(()=>i.value.hiddenModules,_=>{co(u.value,y=>{const b=y.fileName?r.stats.moduleFileNames.indexOf(y.fileName):-1;_.includes(b)?y.visible=!1:b!==-1&&(y.visible=!0)}),co(u.value,y=>{y.children&&(y.visible=!y.children.every(b=>b.visible===!1))},0,void 0,"post")},{immediate:!0});const f=fe("size");Ne(f,_=>{_==="size"?yp(u.value,(y,b)=>(b.size??0)-(y.size??0)):_==="name"&&yp(u.value,(y,b)=>y.title.localeCompare(b.title))},{immediate:!0});function c(_){if(_.visible=!_.visible,_.fileName!=null&&a([r.stats.moduleFileNames.indexOf(_.fileName)],_.visible),_.children){const y=[];co(_.children,b=>{b.visible=_.visible,b.fileName&&y.push(r.stats.moduleFileNames.indexOf(b.fileName))}),a(y,_.visible)}}const h=fe(),d=fe(!1),v=fe({x:0,y:0});function g(_){const{event:y,node:b}=_;v.value.x=y.clientX,v.value.y=y.clientY,h.value=b,d.value=!0}function p(){h.value&&c(h.value)}function m(){const _=h.value;if(!_)return;const{fileName:y}=_;if(y==null)return;const b=r.stats.moduleFileNames.indexOf(y),S=eD(r.stats.importGraph.edges,0,b);if(!S)return;const x=r.stats.moduleFileNames.map((C,T)=>T).filter(C=>!S.includes(C));n("updateView","graph",{hiddenModules:x})}return(_,y)=>(Q(),ge(L(cm),{title:`Visible modules (${L(l)-i.value.hiddenModules.length}/${L(l)})`},{default:ae(()=>[xe("div",_H,[re(L(fm),{onClick:s},{default:ae(()=>y[3]||(y[3]=[mr(" Toggle all ")])),_:1,__:[3]}),xe("label",bH,[y[5]||(y[5]=mr(" Sort by ")),uc(xe("select",{"onUpdate:modelValue":y[0]||(y[0]=b=>f.value=b),class:"border-none bg-transparent capitalize focus:outline-none"},y[4]||(y[4]=[xe("option",{value:"name"},"Name",-1),xe("option",{value:"size"},"Size",-1)]),512),[[Pl,f.value]])])]),re(pH,{data:u.value,onToggle:y[1]||(y[1]=b=>b.collapsed=!b.collapsed),onToggleVisibility:c,onContextMenu:g},null,8,["data"]),re(L(qC),{modelValue:d.value,"onUpdate:modelValue":y[2]||(y[2]=b=>d.value=b),x:v.value.x,y:v.value.y,items:[{label:"Toggle visibility",onClick:p},{label:"Show import path",onClick:m}]},null,8,["modelValue","x","y","items"])]),_:1},8,["title"]))}}),wH={class:"c-gray-900 dark:c-white"},SH={class:"flex justify-between p-1"},xH={class:"overflow-auto p-1"},TH=["title","onClick"],CH=["checked","onChange"],DH={class:"min-w-0 flex-shrink-1 flex-grow-1 truncate"},AH={class:"ml-auto whitespace-nowrap"},IH=he({__name:"ChunkFilter",props:ir({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:["update:options"],setup(t){const e=t,r=br(t,"options");function n(l,u){u?r.value={...r.value,hiddenChunks:r.value.hiddenChunks.filter(f=>f!==l.fileName)}:r.value={...r.value,hiddenChunks:[...r.value.hiddenChunks,l.fileName]}}function i(){r.value.hiddenChunks.length===0?r.value={...r.value,hiddenChunks:e.stats.chunks.map(l=>l.fileName)}:r.value={...r.value,hiddenChunks:[]}}function a(l){return l.modules.reduce((u,f)=>u+f.renderedLength,0)}const o=fe(""),s=ce(()=>o.value==="size-asc"?e.stats.chunks.toSorted((l,u)=>a(l)-a(u)):o.value==="size-desc"?e.stats.chunks.toSorted((l,u)=>a(u)-a(l)):o.value==="name-asc"?e.stats.chunks.toSorted((l,u)=>l.fileName.localeCompare(u.fileName)):o.value==="name-desc"?e.stats.chunks.toSorted((l,u)=>u.fileName.localeCompare(l.fileName)):e.stats.chunks);return(l,u)=>(Q(),nt("div",wH,[xe("div",SH,[re(L(fm),{onClick:i},{default:ae(()=>u[1]||(u[1]=[mr(" Toggle all ")])),_:1,__:[1]}),xe("label",null,[u[3]||(u[3]=mr(" Sort by ")),uc(xe("select",{"onUpdate:modelValue":u[0]||(u[0]=f=>o.value=f),class:"border-none bg-transparent capitalize focus:outline-none"},u[2]||(u[2]=[yS('<option value="">-</option><option value="name-asc">Name asc</option><option value="name-desc">Name desc</option><option value="size-asc">Size asc</option><option value="size-desc">Size desc</option>',5)]),512),[[Pl,o.value]])])]),xe("div",xH,[(Q(!0),nt(et,null,Oo(s.value,f=>(Q(),nt("div",{key:f.fileName,class:"flex cursor-pointer gap-1 hover:bg-gray-300 dark:hover:bg-gray-700",title:f.fileName,onClick:c=>n(f,r.value.hiddenChunks.includes(f.fileName))},[xe("input",{type:"checkbox",checked:!r.value.hiddenChunks.includes(f.fileName),onChange:c=>n(f,c.target.checked)},null,40,CH),xe("div",DH,zt(f.fileName),1),xe("div",AH,zt(L(dm)(a(f))),1)],8,TH))),128))])]))}}),MH=he({__name:"TreeMapViewOptions",props:ir({stats:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:ir(["updateView"],["update:modelValue"]),setup(t,{emit:e}){const r=e,n=br(t,"modelValue"),i=ce({get:()=>n.value.compact,set:s=>{n.value={...n.value,compact:s}}}),a=Zi(n,"metric");function o(s,l){r("updateView",s,l)}return(s,l)=>(Q(),nt("div",null,[re(L(tD),{modelValue:L(a),"onUpdate:modelValue":l[0]||(l[0]=u=>qe(a)?a.value=u:null),stats:s.stats},null,8,["modelValue","stats"]),re(L(Kc),{title:"Compact"},{default:ae(()=>[re(L(jC),{modelValue:i.value,"onUpdate:modelValue":l[1]||(l[1]=u=>i.value=u)},null,8,["modelValue"])]),_:1}),re(L(cm),{title:`Visible chunks (${s.stats.chunks.length-n.value.hiddenChunks.length}/${s.stats.chunks.length})`},{default:ae(()=>[re(IH,{options:n.value,"onUpdate:options":l[2]||(l[2]=u=>n.value=u),stats:s.stats},null,8,["options","stats"])]),_:1},8,["title"]),re(L(rD),{options:n.value,"onUpdate:options":l[3]||(l[3]=u=>n.value=u),stats:s.stats,modules:"bundled",onUpdateView:o},null,8,["options","stats"])]))}});function EH(t){return{metric:hm(t)[0],compact:!0,hiddenModules:[],hiddenChunks:[]}}const Yb={ViewComponent:vH,OptionsComponent:MH,optionsFactory:t=>EH(t)};function PH(t,e,r){return Math.min(Math.max(t,e),r)}const LH=[void 0,"arrow"],RH="#e7000b",OH=he({__name:"GraphView",props:ir({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:["update:options"],setup(t){const e=t,r=br(t,"options"),n=cc("main"),i=KC(n,[xC,wC,zC,XC],c=>{c.on("contextmenu",h=>{h.event.event.preventDefault(),r.value={...r.value,hiddenModules:[...r.value.hiddenModules,h.data.id]}}),c.setOption({color:As,title:{text:"Dependencies",top:20,left:0},animationDurationUpdate:1500,animationEasingUpdate:"quinticInOut",series:[{type:"graph",layout:"force",force:{friction:r.value.forceFriction,repulsion:r.value.forceRepulsion,edgeLength:r.value.forceEdgeLength,gravity:r.value.forceGravity},emphasis:{focus:"adjacency",label:{position:"right",show:!0}},label:{show:!1,formatter(h){const d=h.data.name;return`${d}
|
|
63
|
+
${dm(xl(d,e.stats,r.value.metric)??0)}`}},roam:!0,lineStyle:{width:.5,opacity:.7}}]}),c.setOption(f.value)});Ne(r,(c,h)=>{i.value&&(c.forceEdgeLength===h.forceEdgeLength&&c.forceFriction===h.forceFriction&&c.forceEdgeLength===h.forceEdgeLength&&c.forceGravity===h.forceGravity||i.value.setOption({series:[{force:{friction:c.forceFriction,repulsion:c.forceRepulsion,edgeLength:c.forceEdgeLength,gravity:c.forceGravity}}]}))});const a=ce(()=>r.value.metric),o=ce(c=>{if(c?.length!==r.value.hiddenModules.length)return r.value.hiddenModules;for(let h=0;h<c.length;h+=1)if(c[h]!==r.value.hiddenModules[h])return r.value.hiddenModules;return c}),s=ce(()=>r.value.compact),l=[tH,...As],u=ag();Yt(()=>{if(i.value){const c=u.value?"#ffffff":"#111827";i.value.setOption({title:{textStyle:{color:c}},legend:{textStyle:{color:c}},label:{color:c}})}});const f=ce(()=>{let{edges:c}=e.stats.importGraph,h=e.stats.moduleFileNames;if(s.value){const g=cH(h,c,e.stats,a.value);c=g.edges,h=g.nodes}if(o.value.length){const g=JC(h,c,o.value);c=g.edges,h=g.nodes}const d=new Set;for(const g of h){const p=gp(g);p&&d.add(p)}const v=Array.from(d);return{legend:{data:[{name:"src",itemStyle:{color:l[0]}},...v.map((g,p)=>({name:g,itemStyle:{color:l[p+1]}}))],top:50,left:0,icon:"circle",orient:"vertical",type:"scroll",inactiveColor:"#333"},series:[{categories:[{name:"src",itemStyle:{color:l[0]}},...v.map((g,p)=>({name:g,itemStyle:{color:As[p+1]}}))],edges:c.map(g=>({source:g[0],target:g[1],symbol:LH})),data:h.map((g,p)=>{const m=e.stats.entryPoints.includes(g),_=xl(g,e.stats,a.value)??0,y=v.findIndex(w=>w===gp(g))+1;let b;return m?b=RH:_===0&&(b="#ffffff"),{category:y,id:p,name:g,symbolSize:PH(_/1024,12,75),itemStyle:{borderColor:_===0?l[y%As.length]:void 0,color:b},emphasis:{label:{show:!0}}}})}]}});return Ne(f,c=>{i.value?.setOption(c)}),(c,h)=>(Q(),nt("div",{ref_key:"main",ref:n},null,512))}}),kH=he({__name:"GraphViewOptions",props:ir({stats:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=br(t,"modelValue"),r=Zi(e,"forceRepulsion"),n=Zi(e,"forceEdgeLength"),i=Zi(e,"forceFriction"),a=Zi(e,"forceGravity"),o=Zi(e,"compact"),s=Zi(e,"metric");return(l,u)=>(Q(),nt("div",null,[re(L(tD),{modelValue:L(s),"onUpdate:modelValue":u[0]||(u[0]=f=>qe(s)?s.value=f:null),stats:l.stats},null,8,["modelValue","stats"]),re(L(Kc),{title:"Compact"},{default:ae(()=>[re(L(jC),{modelValue:L(o),"onUpdate:modelValue":u[1]||(u[1]=f=>qe(o)?o.value=f:null)},null,8,["modelValue"])]),_:1}),re(L(rD),{options:e.value,"onUpdate:options":u[2]||(u[2]=f=>e.value=f),stats:l.stats,modules:"all"},null,8,["options","stats"]),re(L(cm),{title:"Force layout"},{default:ae(()=>[re(L(zu),{modelValue:L(r),"onUpdate:modelValue":u[3]||(u[3]=f=>qe(r)?r.value=f:null),title:"Repulsion"},null,8,["modelValue"]),re(L(zu),{modelValue:L(n),"onUpdate:modelValue":u[4]||(u[4]=f=>qe(n)?n.value=f:null),title:"Edge length"},null,8,["modelValue"]),re(L(zu),{modelValue:L(i),"onUpdate:modelValue":u[5]||(u[5]=f=>qe(i)?i.value=f:null),title:"Friction",step:.01,fixed:2},null,8,["modelValue"]),re(L(zu),{modelValue:L(a),"onUpdate:modelValue":u[6]||(u[6]=f=>qe(a)?a.value=f:null),title:"Gravity",step:.01,fixed:2},null,8,["modelValue"])]),_:1})]))}});function NH(t){const e=t.moduleFileNames.reduce((r,n,i)=>((Ys(n)||QC(n,t))&&r.push(i),r),[]);return{metric:hm(t)[0],forceRepulsion:50,forceGravity:.1,forceEdgeLength:30,forceFriction:.6,compact:!1,hiddenModules:e}}const BH={ViewComponent:OH,OptionsComponent:kH,optionsFactory:t=>NH(t)};function FH(t){const e=t.chunks.length,r=t.moduleFileNames.length;let n=0;for(const o of t.chunks)for(const s of o.modules)s.virtual&&(n+=1);const i=new Map;for(const o of t.moduleFileNames){const s=gp(o);if(!s)continue;const l=o.lastIndexOf(`node_modules/${s}`),u=i.get(s);u?u.indices.includes(l)||u.indices.push(l):i.set(s,{indices:[l]})}const a=[];for(const[o,s]of i)s.indices.length>1&&a.push({name:o,count:s.indices.length});return{numberOfModules:r,numberOfVirtualModules:n,numberOfChunks:e,numberOfDependencies:i.size,duplicatedDependencies:a,hasWarnings:a.length>0}}const VH={key:0,class:"i-mdi:warning-outline"},zH={key:1,class:"i-mdi:info"},HH={class:"flex items-center gap-1"},$H={key:0},GH=he({__name:"OverviewModal",props:{stats:{}},setup(t){const r=FH(t.stats);return(n,i)=>(Q(),ge(L(vE),null,{default:ae(()=>[re(L(KE),{"as-child":""},{default:ae(()=>[re(L(fm),{class:un(n.$attrs.class)},{default:ae(()=>[L(r).hasWarnings?(Q(),nt("span",VH)):(Q(),nt("span",zH)),i[0]||(i[0]=mr(" Report "))]),_:1,__:[0]},8,["class"]),Me(n.$slots,"default")]),_:3}),re(L(QE),null,{default:ae(()=>[re(L(WE),{class:"fixed inset-0 z-30 bg-gray-200 opacity-75 dark:bg-gray-700"}),re(L(BE),{class:"fixed left-[50%] top-[50%] z-30 max-h-[85vh] max-w-[450px] w-[90vw] translate-x-[-50%] translate-y-[-50%] rounded bg-white c-gray-900 dark:bg-gray-800 dark:c-white"},{default:ae(()=>[re(L(XE),{class:"flex justify-center px-4 py-2"},{default:ae(()=>i[1]||(i[1]=[mr(" Report ")])),_:1,__:[1]}),re(L(FE),{class:"px-4 py-2"},{default:ae(()=>[xe("div",null,"Number of chunks: "+zt(L(r).numberOfChunks),1),xe("div",null," Number of modules: "+zt(L(r).numberOfModules)+" ("+zt(L(r).numberOfVirtualModules)+" virtual) ",1),xe("div",null,"Number of dependencies: "+zt(L(r).numberOfDependencies),1),xe("div",HH," Duplicated dependencies: "+zt(L(r).duplicatedDependencies.length),1),L(r).duplicatedDependencies.length>0?(Q(),nt("ul",$H,[(Q(!0),nt(et,null,Oo(L(r).duplicatedDependencies,a=>(Q(),nt("li",{key:a.name,class:"flex items-center gap-1"},[i[2]||(i[2]=xe("div",{class:"i-mdi:alert-circle-outline c-yellow-500"},null,-1)),mr(" "+zt(a.name)+" - "+zt(a.count)+" versions ",1)]))),128))])):sn("",!0)]),_:1}),re(L(pE),{class:"absolute right-2 top-3"},{default:ae(()=>i[3]||(i[3]=[xe("div",{class:"i-mdi:close"},null,-1)])),_:1,__:[3]})]),_:1})]),_:1})]),_:3}))}}),UH={class:"flex flex-shrink-0 overflow-hidden bg-gray-100 text-sm -mx-2 -mt-2 dark:bg-gray-800"},Xb="w-1/2 flex cursor-pointer items-center justify-center py-2.5 gap-1 dark:c-gray-600 c-gray-400",Kb="w-1/2 flex cursor-pointer items-center justify-center py-2.5 gap-1 bg-gray-200 dark:bg-gray-600 dark:c-white c-gray-900",WH=he({__name:"ViewToggle",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=br(t,"modelValue");return(r,n)=>(Q(),nt("div",UH,[xe("button",{type:"button",class:un(e.value==="treemap"?Kb:Xb),onClick:n[0]||(n[0]=i=>e.value="treemap")},n[2]||(n[2]=[xe("span",{class:"i-mdi-chart-tree"},null,-1),mr(" Tree Map ")]),2),xe("button",{type:"button",class:un(e.value==="graph"?Kb:Xb),onClick:n[1]||(n[1]=i=>e.value="graph")},n[3]||(n[3]=[xe("span",{class:"i-mdi-graph"},null,-1),mr(" Graph ")]),2)]))}}),YH={class:"h-screen w-screen flex bg-white dark:bg-gray-900"},XH={class:"h-full flex flex-col overflow-auto bg-white p-2 dark:bg-gray-900"},KH=he({__name:"App",setup(t){const e=ag();function r(){e.value=!e.value}const n=$r();try{const u=JSON.parse(window.BUNDLE_STATS??"");n.value=u}catch{fetch("stats.json").then(f=>f.json()).then(f=>{n.value=f})}const i=fe("treemap"),a=ce(()=>i.value==="treemap"?Yb:i.value==="graph"?BH:Yb),o=fe();Ne(n,()=>{n.value&&(o.value=a.value.optionsFactory(n.value))},{immediate:!0}),Ne(a,u=>{o.value=u.optionsFactory(n.value)});function s(u,f){i.value=u,Ot(()=>{o.value={...o.value,...f}})}function l(){window.dispatchEvent(new Event("resize"))}return(u,f)=>(Q(),nt("div",YH,[xe("button",{class:"i-mdi:lightbulb-night-outline absolute right-2 top-2 z-20 h-7 w-7 c-gray-900 dark:c-white",onClick:r}),re(L(SP),{direction:"horizontal"},{default:ae(()=>[re(L(hy),{"default-size":20},{default:ae(()=>[xe("div",XH,[re(WH,{modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=c=>i.value=c)},null,8,["modelValue"]),n.value&&o.value?(Q(),ge(L(a).OptionsComponent,{key:0,modelValue:o.value,"onUpdate:modelValue":f[1]||(f[1]=c=>o.value=c),stats:n.value,onUpdateView:s},null,8,["modelValue","stats"])):sn("",!0),n.value?(Q(),ge(L(GH),{key:1,stats:n.value,class:"mt-auto"},null,8,["stats"])):sn("",!0)])]),_:1}),re(L(TP),{class:"w-1.5 bg-gray-200 transition-colors dark:bg-gray-700 hover:bg-gray-600 dark:hover:bg-gray-500"}),re(L(hy),{class:"flex",onResize:l},{default:ae(()=>[n.value?(Q(),ge(L(a).ViewComponent,{key:0,options:o.value,"onUpdate:options":f[2]||(f[2]=c=>o.value=c),stats:n.value,class:"flex-shrink-1 flex-grow-1",onUpdateView:s},null,8,["options","stats"])):sn("",!0)]),_:1})]),_:1})]))}});Tf(KH).mount("#app");
|