duoops 0.1.6 → 0.1.9
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 +0 -55
- package/dist/commands/ask.d.ts +4 -1
- package/dist/commands/ask.js +35 -4
- package/dist/commands/config.d.ts +10 -0
- package/dist/commands/config.js +47 -0
- package/dist/commands/portal.js +7 -5
- package/dist/lib/ai/agent.d.ts +6 -2
- package/dist/lib/ai/agent.js +50 -57
- package/dist/lib/ai/prompt-library.d.ts +13 -0
- package/dist/lib/ai/prompt-library.js +335 -0
- package/dist/lib/ai/tools/gitlab.d.ts +4 -0
- package/dist/lib/ai/tools/gitlab.js +162 -11
- package/dist/lib/ai/tools/measure.js +7 -3
- package/dist/lib/ai/tools/types.d.ts +3 -0
- package/dist/lib/ai/tools/types.js +1 -0
- package/dist/portal/assets/MetricsDashboard-Bnj-jtu6.js +27 -0
- package/dist/portal/assets/index-B1SGDQNX.css +1 -0
- package/dist/portal/assets/index-Bk8OVV7a.js +106 -0
- package/dist/portal/assets/{index-B6bzT1Vv.js → index-C54ZhVUo.js} +1 -1
- package/dist/portal/index.html +2 -2
- package/oclif.manifest.json +47 -3
- package/package.json +1 -1
- package/templates/duoops-measure-component.yml +7 -4
- package/dist/portal/assets/MetricsDashboard-DIsoz4Sl.js +0 -71
- package/dist/portal/assets/index-BP8FwWqA.css +0 -1
- package/dist/portal/assets/index-DkVG3jel.js +0 -70
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import{S as g1,p as Vv,r as Ht,s as Ff,a as _a,n as zf,i as Hf,b as Uv,t as m1,c as bo,f as y1,d as _1,e as Wv,g as oy,h as dt,j as sy,u as b1,k as eo,l as S1,m as x1,o as w1,q as E,R as T1,P as C1,O as M1,C as D1,T as A1,v as L1,w as R1,X as I1,B as ly,Z as P1,A as E1,G as O1,L as k1}from"./index-Bk8OVV7a.js";var N1=class extends g1{constructor(t,e){super(),this.options=e,this.#r=t,this.#i=null,this.#n=Vv(),this.bindMethods(),this.setOptions(e)}#r;#e=void 0;#d=void 0;#t=void 0;#o;#f;#n;#i;#p;#c;#h;#s;#l;#a;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),jv(this.#e,this.options)?this.#u():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Gf(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Gf(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#S(),this.#e.removeObserver(this)}setOptions(t){const e=this.options,r=this.#e;if(this.options=this.#r.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ht(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#e.setOptions(this.options),e._defaulted&&!Ff(this.options,e)&&this.#r.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const n=this.hasListeners();n&&Yv(this.#e,r,this.options,e)&&this.#u(),this.updateResult(),n&&(this.#e!==r||Ht(this.options.enabled,this.#e)!==Ht(e.enabled,this.#e)||_a(this.options.staleTime,this.#e)!==_a(e.staleTime,this.#e))&&this.#g();const i=this.#m();n&&(this.#e!==r||Ht(this.options.enabled,this.#e)!==Ht(e.enabled,this.#e)||i!==this.#a)&&this.#y(i)}getOptimisticResult(t){const e=this.#r.getQueryCache().build(this.#r,t),r=this.createResult(e,t);return F1(this,r)&&(this.#t=r,this.#f=this.options,this.#o=this.#e.state),r}getCurrentResult(){return this.#t}trackResult(t,e){return new Proxy(t,{get:(r,n)=>(this.trackProp(n),e?.(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#n.status==="pending"&&this.#n.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,n))})}trackProp(t){this.#v.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#r.defaultQueryOptions(t),r=this.#r.getQueryCache().build(this.#r,e);return r.fetch().then(()=>this.createResult(r,e))}fetch(t){return this.#u({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#t))}#u(t){this.#x();let e=this.#e.fetch(this.options,t);return t?.throwOnError||(e=e.catch(zf)),e}#g(){this.#b();const t=_a(this.options.staleTime,this.#e);if(Hf||this.#t.isStale||!Uv(t))return;const r=m1(this.#t.dataUpdatedAt,t)+1;this.#s=bo.setTimeout(()=>{this.#t.isStale||this.updateResult()},r)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(t){this.#S(),this.#a=t,!(Hf||Ht(this.options.enabled,this.#e)===!1||!Uv(this.#a)||this.#a===0)&&(this.#l=bo.setInterval(()=>{(this.options.refetchIntervalInBackground||y1.isFocused())&&this.#u()},this.#a))}#_(){this.#g(),this.#y(this.#m())}#b(){this.#s&&(bo.clearTimeout(this.#s),this.#s=void 0)}#S(){this.#l&&(bo.clearInterval(this.#l),this.#l=void 0)}createResult(t,e){const r=this.#e,n=this.options,i=this.#t,a=this.#o,o=this.#f,l=t!==r?t.state:this.#d,{state:u}=t;let f={...u},c=!1,v;if(e._optimisticResults){const T=this.hasListeners(),D=!T&&jv(t,e),A=T&&Yv(t,r,e,n);(D||A)&&(f={...f,..._1(u.data,t.options)}),e._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:d,status:g}=f;v=f.data;let p=!1;if(e.placeholderData!==void 0&&v===void 0&&g==="pending"){let T;i?.isPlaceholderData&&e.placeholderData===o?.placeholderData?(T=i.data,p=!0):T=typeof e.placeholderData=="function"?e.placeholderData(this.#h?.state.data,this.#h):e.placeholderData,T!==void 0&&(g="success",v=Wv(i?.data,T,e),c=!0)}if(e.select&&v!==void 0&&!p)if(i&&v===a?.data&&e.select===this.#p)v=this.#c;else try{this.#p=e.select,v=e.select(v),v=Wv(i?.data,v,e),this.#c=v,this.#i=null}catch(T){this.#i=T}this.#i&&(h=this.#i,v=this.#c,d=Date.now(),g="error");const m=f.fetchStatus==="fetching",y=g==="pending",_=g==="error",b=y&&m,S=v!==void 0,w={status:g,fetchStatus:f.fetchStatus,isPending:y,isSuccess:g==="success",isError:_,isInitialLoading:b,isLoading:b,data:v,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:d,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:_&&!S,isPaused:f.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:_&&S,isStale:hh(t,e),refetch:this.refetch,promise:this.#n,isEnabled:Ht(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=w.data!==void 0,D=w.status==="error"&&!T,A=L=>{D?L.reject(w.error):T&&L.resolve(w.data)},M=()=>{const L=this.#n=w.promise=Vv();A(L)},I=this.#n;switch(I.status){case"pending":t.queryHash===r.queryHash&&A(I);break;case"fulfilled":(D||w.data!==I.value)&&M();break;case"rejected":(!D||w.error!==I.reason)&&M();break}}return w}updateResult(){const t=this.#t,e=this.createResult(this.#e,this.options);if(this.#o=this.#e.state,this.#f=this.options,this.#o.data!==void 0&&(this.#h=this.#e),Ff(e,t))return;this.#t=e;const r=()=>{if(!t)return!0;const{notifyOnChangeProps:n}=this.options,i=typeof n=="function"?n():n;if(i==="all"||!i&&!this.#v.size)return!0;const a=new Set(i??this.#v);return this.options.throwOnError&&a.add("error"),Object.keys(this.#t).some(o=>{const s=o;return this.#t[s]!==t[s]&&a.has(s)})};this.#w({listeners:r()})}#x(){const t=this.#r.getQueryCache().build(this.#r,this.options);if(t===this.#e)return;const e=this.#e;this.#e=t,this.#d=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#w(t){oy.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#t)}),this.#r.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function B1(t,e){return Ht(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function jv(t,e){return B1(t,e)||t.state.data!==void 0&&Gf(t,e,e.refetchOnMount)}function Gf(t,e,r){if(Ht(e.enabled,t)!==!1&&_a(e.staleTime,t)!=="static"){const n=typeof r=="function"?r(t):r;return n==="always"||n!==!1&&hh(t,e)}return!1}function Yv(t,e,r,n){return(t!==e||Ht(n.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&hh(t,r)}function hh(t,e){return Ht(e.enabled,t)!==!1&&t.isStaleByTime(_a(e.staleTime,t))}function F1(t,e){return!Ff(t.getCurrentResult(),e)}var uy=dt.createContext(!1),z1=()=>dt.useContext(uy);uy.Provider;function H1(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var G1=dt.createContext(H1()),V1=()=>dt.useContext(G1),U1=(t,e,r)=>{const n=r?.state.error&&typeof t.throwOnError=="function"?sy(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||n)&&(e.isReset()||(t.retryOnMount=!1))},W1=t=>{dt.useEffect(()=>{t.clearReset()},[t])},j1=({result:t,errorResetBoundary:e,throwOnError:r,query:n,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&n&&(i&&t.data===void 0||sy(r,[t.error,n])),Y1=t=>{if(t.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=t.staleTime;t.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},$1=(t,e)=>t.isLoading&&t.isFetching&&!e,q1=(t,e)=>t?.suspense&&e.isPending,$v=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function X1(t,e,r){const n=z1(),i=V1(),a=b1(),o=a.defaultQueryOptions(t);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);const s=a.getQueryCache().get(o.queryHash);o._optimisticResults=n?"isRestoring":"optimistic",Y1(o),U1(o,i,s),W1(i);const l=!a.getQueryCache().get(o.queryHash),[u]=dt.useState(()=>new e(a,o)),f=u.getOptimisticResult(o),c=!n&&t.subscribed!==!1;if(dt.useSyncExternalStore(dt.useCallback(v=>{const h=c?u.subscribe(oy.batchCalls(v)):zf;return u.updateResult(),h},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),dt.useEffect(()=>{u.setOptions(o)},[o,u]),q1(o,f))throw $v(o,u,i);if(j1({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,f),o.experimental_prefetchInRender&&!Hf&&$1(f,n)&&(l?$v(o,u,i):s?.promise)?.catch(zf).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?f:u.trackResult(f)}function Z1(t,e){return X1(t,N1)}const K1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],qv=eo("clock",K1);const Q1=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],J1=eo("cpu",Q1);const ex=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],tx=eo("map-pin",ex);const rx=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],nx=eo("server",rx);const ix=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ax=eo("user",ix);function fy(t,e){return function(){return t.apply(e,arguments)}}const{toString:ox}=Object.prototype,{getPrototypeOf:vh}=Object,{iterator:Tl,toStringTag:cy}=Symbol,Cl=(t=>e=>{const r=ox.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),jt=t=>(t=t.toLowerCase(),e=>Cl(e)===t),Ml=t=>e=>typeof e===t,{isArray:Ei}=Array,xi=Ml("undefined");function to(t){return t!==null&&!xi(t)&&t.constructor!==null&&!xi(t.constructor)&&st(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const hy=jt("ArrayBuffer");function sx(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&hy(t.buffer),e}const lx=Ml("string"),st=Ml("function"),vy=Ml("number"),ro=t=>t!==null&&typeof t=="object",ux=t=>t===!0||t===!1,ds=t=>{if(Cl(t)!=="object")return!1;const e=vh(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(cy in t)&&!(Tl in t)},fx=t=>{if(!ro(t)||to(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},cx=jt("Date"),hx=jt("File"),vx=jt("Blob"),dx=jt("FileList"),px=t=>ro(t)&&st(t.pipe),gx=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||st(t.append)&&((e=Cl(t))==="formdata"||e==="object"&&st(t.toString)&&t.toString()==="[object FormData]"))},mx=jt("URLSearchParams"),[yx,_x,bx,Sx]=["ReadableStream","Request","Response","Headers"].map(jt),xx=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function no(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),Ei(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(to(t))return;const a=r?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let s;for(n=0;n<o;n++)s=a[n],e.call(null,t[s],s,t)}}function dy(t,e){if(to(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const Rn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,py=t=>!xi(t)&&t!==Rn;function Vf(){const{caseless:t,skipUndefined:e}=py(this)&&this||{},r={},n=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const o=t&&dy(r,a)||a;ds(r[o])&&ds(i)?r[o]=Vf(r[o],i):ds(i)?r[o]=Vf({},i):Ei(i)?r[o]=i.slice():(!e||!xi(i))&&(r[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&no(arguments[i],n);return r}const Tx=(t,e,r,{allOwnKeys:n}={})=>(no(e,(i,a)=>{r&&st(i)?Object.defineProperty(t,a,{value:fy(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Cx=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Mx=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Dx=(t,e,r,n)=>{let i,a,o;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!n||n(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=r!==!1&&vh(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Ax=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},Lx=t=>{if(!t)return null;if(Ei(t))return t;let e=t.length;if(!vy(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Rx=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&vh(Uint8Array)),Ix=(t,e)=>{const n=(t&&t[Tl]).call(t);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},Px=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Ex=jt("HTMLFormElement"),Ox=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),Xv=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),kx=jt("RegExp"),gy=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};no(r,(i,a)=>{let o;(o=e(i,a,t))!==!1&&(n[a]=o||i)}),Object.defineProperties(t,n)},Nx=t=>{gy(t,(e,r)=>{if(st(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(st(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Bx=(t,e)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Ei(t)?n(t):n(String(t).split(e)),r},Fx=()=>{},zx=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Hx(t){return!!(t&&st(t.append)&&t[cy]==="FormData"&&t[Tl])}const Gx=t=>{const e=new Array(10),r=(n,i)=>{if(ro(n)){if(e.indexOf(n)>=0)return;if(to(n))return n;if(!("toJSON"in n)){e[i]=n;const a=Ei(n)?[]:{};return no(n,(o,s)=>{const l=r(o,i+1);!xi(l)&&(a[s]=l)}),e[i]=void 0,a}}return n};return r(t,0)},Vx=jt("AsyncFunction"),Ux=t=>t&&(ro(t)||st(t))&&st(t.then)&&st(t.catch),my=((t,e)=>t?setImmediate:e?((r,n)=>(Rn.addEventListener("message",({source:i,data:a})=>{i===Rn&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Rn.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",st(Rn.postMessage)),Wx=typeof queueMicrotask<"u"?queueMicrotask.bind(Rn):typeof process<"u"&&process.nextTick||my,jx=t=>t!=null&&st(t[Tl]),P={isArray:Ei,isArrayBuffer:hy,isBuffer:to,isFormData:gx,isArrayBufferView:sx,isString:lx,isNumber:vy,isBoolean:ux,isObject:ro,isPlainObject:ds,isEmptyObject:fx,isReadableStream:yx,isRequest:_x,isResponse:bx,isHeaders:Sx,isUndefined:xi,isDate:cx,isFile:hx,isBlob:vx,isRegExp:kx,isFunction:st,isStream:px,isURLSearchParams:mx,isTypedArray:Rx,isFileList:dx,forEach:no,merge:Vf,extend:Tx,trim:xx,stripBOM:Cx,inherits:Mx,toFlatObject:Dx,kindOf:Cl,kindOfTest:jt,endsWith:Ax,toArray:Lx,forEachEntry:Ix,matchAll:Px,isHTMLForm:Ex,hasOwnProperty:Xv,hasOwnProp:Xv,reduceDescriptors:gy,freezeMethods:Nx,toObjectSet:Bx,toCamelCase:Ox,noop:Fx,toFiniteNumber:zx,findKey:dy,global:Rn,isContextDefined:py,isSpecCompliantForm:Hx,toJSONObject:Gx,isAsyncFn:Vx,isThenable:Ux,setImmediate:my,asap:Wx,isIterable:jx};let K=class yy extends Error{static from(e,r,n,i,a,o){const s=new yy(e.message,r||e.code,n,i,a);return s.cause=e,s.name=e.name,o&&Object.assign(s,o),s}constructor(e,r,n,i,a){super(e),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:P.toJSONObject(this.config),code:this.code,status:this.status}}};K.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";K.ERR_BAD_OPTION="ERR_BAD_OPTION";K.ECONNABORTED="ECONNABORTED";K.ETIMEDOUT="ETIMEDOUT";K.ERR_NETWORK="ERR_NETWORK";K.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";K.ERR_DEPRECATED="ERR_DEPRECATED";K.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";K.ERR_BAD_REQUEST="ERR_BAD_REQUEST";K.ERR_CANCELED="ERR_CANCELED";K.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";K.ERR_INVALID_URL="ERR_INVALID_URL";const Yx=null;function Uf(t){return P.isPlainObject(t)||P.isArray(t)}function _y(t){return P.endsWith(t,"[]")?t.slice(0,-2):t}function Zv(t,e,r){return t?t.concat(e).map(function(i,a){return i=_y(i),!r&&a?"["+i+"]":i}).join(r?".":""):e}function $x(t){return P.isArray(t)&&!t.some(Uf)}const qx=P.toFlatObject(P,{},null,function(e){return/^is[A-Z]/.test(e)});function Dl(t,e,r){if(!P.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=P.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!P.isUndefined(p[g])});const n=r.metaTokens,i=r.visitor||f,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(e);if(!P.isFunction(i))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(P.isDate(d))return d.toISOString();if(P.isBoolean(d))return d.toString();if(!l&&P.isBlob(d))throw new K("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(d)||P.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,g,p){let m=d;if(d&&!p&&typeof d=="object"){if(P.endsWith(g,"{}"))g=n?g:g.slice(0,-2),d=JSON.stringify(d);else if(P.isArray(d)&&$x(d)||(P.isFileList(d)||P.endsWith(g,"[]"))&&(m=P.toArray(d)))return g=_y(g),m.forEach(function(_,b){!(P.isUndefined(_)||_===null)&&e.append(o===!0?Zv([g],b,a):o===null?g:g+"[]",u(_))}),!1}return Uf(d)?!0:(e.append(Zv(p,g,a),u(d)),!1)}const c=[],v=Object.assign(qx,{defaultVisitor:f,convertValue:u,isVisitable:Uf});function h(d,g){if(!P.isUndefined(d)){if(c.indexOf(d)!==-1)throw Error("Circular reference detected in "+g.join("."));c.push(d),P.forEach(d,function(m,y){(!(P.isUndefined(m)||m===null)&&i.call(e,m,P.isString(y)?y.trim():y,g,v))===!0&&h(m,g?g.concat(y):[y])}),c.pop()}}if(!P.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Kv(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function dh(t,e){this._pairs=[],t&&Dl(t,this,e)}const by=dh.prototype;by.append=function(e,r){this._pairs.push([e,r])};by.toString=function(e){const r=e?function(n){return e.call(this,n,Kv)}:Kv;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Xx(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Sy(t,e,r){if(!e)return t;const n=r&&r.encode||Xx,i=P.isFunction(r)?{serialize:r}:r,a=i&&i.serialize;let o;if(a?o=a(e,i):o=P.isURLSearchParams(e)?e.toString():new dh(e,i).toString(n),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Qv{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){P.forEach(this.handlers,function(n){n!==null&&e(n)})}}const ph={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Zx=typeof URLSearchParams<"u"?URLSearchParams:dh,Kx=typeof FormData<"u"?FormData:null,Qx=typeof Blob<"u"?Blob:null,Jx={isBrowser:!0,classes:{URLSearchParams:Zx,FormData:Kx,Blob:Qx},protocols:["http","https","file","blob","url","data"]},gh=typeof window<"u"&&typeof document<"u",Wf=typeof navigator=="object"&&navigator||void 0,ew=gh&&(!Wf||["ReactNative","NativeScript","NS"].indexOf(Wf.product)<0),tw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rw=gh&&window.location.href||"http://localhost",nw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gh,hasStandardBrowserEnv:ew,hasStandardBrowserWebWorkerEnv:tw,navigator:Wf,origin:rw},Symbol.toStringTag,{value:"Module"})),Ve={...nw,...Jx};function iw(t,e){return Dl(t,new Ve.classes.URLSearchParams,{visitor:function(r,n,i,a){return Ve.isNode&&P.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}function aw(t){return P.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ow(t){const e={},r=Object.keys(t);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],e[a]=t[a];return e}function xy(t){function e(r,n,i,a){let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&P.isArray(i)?i.length:o,l?(P.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!P.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],a)&&P.isArray(i[o])&&(i[o]=ow(i[o])),!s)}if(P.isFormData(t)&&P.isFunction(t.entries)){const r={};return P.forEachEntry(t,(n,i)=>{e(aw(n),i,r,0)}),r}return null}function sw(t,e,r){if(P.isString(t))try{return(e||JSON.parse)(t),P.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const io={transitional:ph,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=P.isObject(e);if(a&&P.isHTMLForm(e)&&(e=new FormData(e)),P.isFormData(e))return i?JSON.stringify(xy(e)):e;if(P.isArrayBuffer(e)||P.isBuffer(e)||P.isStream(e)||P.isFile(e)||P.isBlob(e)||P.isReadableStream(e))return e;if(P.isArrayBufferView(e))return e.buffer;if(P.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return iw(e,this.formSerializer).toString();if((s=P.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Dl(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),sw(e)):e}],transformResponse:[function(e){const r=this.transitional||io.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(P.isResponse(e)||P.isReadableStream(e))return e;if(e&&P.isString(e)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch"],t=>{io.headers[t]={}});const lw=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uw=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
2
|
+
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||e[r]&&lw[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Jv=Symbol("internals");function Fi(t){return t&&String(t).trim().toLowerCase()}function ps(t){return t===!1||t==null?t:P.isArray(t)?t.map(ps):String(t)}function fw(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const cw=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function uu(t,e,r,n,i){if(P.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!P.isString(e)){if(P.isString(n))return e.indexOf(n)!==-1;if(P.isRegExp(n))return n.test(e)}}function hw(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function vw(t,e){const r=P.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,a,o){return this[n].call(this,e,i,a,o)},configurable:!0})})}let lt=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function a(s,l,u){const f=Fi(l);if(!f)throw new Error("header name must be a non-empty string");const c=P.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=ps(s))}const o=(s,l)=>P.forEach(s,(u,f)=>a(u,f,l));if(P.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(P.isString(e)&&(e=e.trim())&&!cw(e))o(uw(e),r);else if(P.isObject(e)&&P.isIterable(e)){let s={},l,u;for(const f of e){if(!P.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[u=f[0]]=(l=s[u])?P.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}o(s,r)}else e!=null&&a(r,e,n);return this}get(e,r){if(e=Fi(e),e){const n=P.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return fw(i);if(P.isFunction(r))return r.call(this,i,n);if(P.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Fi(e),e){const n=P.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||uu(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function a(o){if(o=Fi(o),o){const s=P.findKey(n,o);s&&(!r||uu(n,n[s],s,r))&&(delete n[s],i=!0)}}return P.isArray(e)?e.forEach(a):a(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!e||uu(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const r=this,n={};return P.forEach(this,(i,a)=>{const o=P.findKey(n,a);if(o){r[o]=ps(i),delete r[a];return}const s=e?hw(a):String(a).trim();s!==a&&delete r[a],r[s]=ps(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return P.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&P.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[Jv]=this[Jv]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Fi(o);n[s]||(vw(i,o),n[s]=!0)}return P.isArray(e)?e.forEach(a):a(e),this}};lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(lt.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});P.freezeMethods(lt);function fu(t,e){const r=this||io,n=e||r,i=lt.from(n.headers);let a=n.data;return P.forEach(t,function(s){a=s.call(r,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function wy(t){return!!(t&&t.__CANCEL__)}let ao=class extends K{constructor(e,r,n){super(e??"canceled",K.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ty(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function dw(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function pw(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),f=n[a];o||(o=u),r[i]=l,n[i]=u;let c=a,v=0;for(;c!==i;)v+=r[c++],c=c%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o<e)return;const h=f&&u-f;return h?Math.round(v*1e3/h):void 0}}function gw(t,e){let r=0,n=1e3/e,i,a;const o=(u,f=Date.now())=>{r=f,i=null,a&&(clearTimeout(a),a=null),t(...u)};return[(...u)=>{const f=Date.now(),c=f-r;c>=n?o(u,f):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-c)))},()=>i&&o(i)]}const ks=(t,e,r=3)=>{let n=0;const i=pw(50,250);return gw(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),f=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(c)},r)},ed=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},td=t=>(...e)=>P.asap(()=>t(...e)),mw=Ve.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Ve.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,yw=Ve.hasStandardBrowserEnv?{write(t,e,r,n,i,a,o){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];P.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),P.isString(n)&&s.push(`path=${n}`),P.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),P.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function _w(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function bw(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Cy(t,e,r){let n=!_w(e);return t&&(n||r==!1)?bw(t,e):e}const rd=t=>t instanceof lt?{...t}:t;function Wn(t,e){e=e||{};const r={};function n(u,f,c,v){return P.isPlainObject(u)&&P.isPlainObject(f)?P.merge.call({caseless:v},u,f):P.isPlainObject(f)?P.merge({},f):P.isArray(f)?f.slice():f}function i(u,f,c,v){if(P.isUndefined(f)){if(!P.isUndefined(u))return n(void 0,u,c,v)}else return n(u,f,c,v)}function a(u,f){if(!P.isUndefined(f))return n(void 0,f)}function o(u,f){if(P.isUndefined(f)){if(!P.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function s(u,f,c){if(c in e)return n(u,f);if(c in t)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,f,c)=>i(rd(u),rd(f),c,!0)};return P.forEach(Object.keys({...t,...e}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const c=P.hasOwnProp(l,f)?l[f]:i,v=c(t[f],e[f],f);P.isUndefined(v)&&c!==s||(r[f]=v)}),r}const My=t=>{const e=Wn({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=e;if(e.headers=o=lt.from(o),e.url=Sy(Cy(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),P.isFormData(r)){if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(P.isFunction(r.getHeaders)){const l=r.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([f,c])=>{u.includes(f.toLowerCase())&&o.set(f,c)})}}if(Ve.hasStandardBrowserEnv&&(n&&P.isFunction(n)&&(n=n(e)),n||n!==!1&&mw(e.url))){const l=i&&a&&yw.read(a);l&&o.set(i,l)}return e},Sw=typeof XMLHttpRequest<"u",xw=Sw&&function(t){return new Promise(function(r,n){const i=My(t);let a=i.data;const o=lt.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,f,c,v,h,d;function g(){h&&h(),d&&d(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let p=new XMLHttpRequest;p.open(i.method.toUpperCase(),i.url,!0),p.timeout=i.timeout;function m(){if(!p)return;const _=lt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:_,config:t,request:p};Ty(function(w){r(w),g()},function(w){n(w),g()},S),p=null}"onloadend"in p?p.onloadend=m:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(m)},p.onabort=function(){p&&(n(new K("Request aborted",K.ECONNABORTED,t,p)),p=null)},p.onerror=function(b){const S=b&&b.message?b.message:"Network Error",x=new K(S,K.ERR_NETWORK,t,p);x.event=b||null,n(x),p=null},p.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||ph;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),n(new K(b,S.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,t,p)),p=null},a===void 0&&o.setContentType(null),"setRequestHeader"in p&&P.forEach(o.toJSON(),function(b,S){p.setRequestHeader(S,b)}),P.isUndefined(i.withCredentials)||(p.withCredentials=!!i.withCredentials),s&&s!=="json"&&(p.responseType=i.responseType),u&&([v,d]=ks(u,!0),p.addEventListener("progress",v)),l&&p.upload&&([c,h]=ks(l),p.upload.addEventListener("progress",c),p.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(f=_=>{p&&(n(!_||_.type?new ao(null,t,p):_),p.abort(),p=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const y=dw(i.url);if(y&&Ve.protocols.indexOf(y)===-1){n(new K("Unsupported protocol "+y+":",K.ERR_BAD_REQUEST,t));return}p.send(a||null)})},ww=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const f=u instanceof Error?u:this.reason;n.abort(f instanceof K?f:new ao(f instanceof Error?f.message:f))}};let o=e&&setTimeout(()=>{o=null,a(new K(`timeout of ${e}ms exceeded`,K.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),t=null)};t.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>P.asap(s),l}},Tw=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},Cw=async function*(t,e){for await(const r of Mw(t))yield*Tw(r,e)},Mw=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},nd=(t,e,r,n)=>{const i=Cw(t,e);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await i.next();if(u){s(),l.close();return}let c=f.byteLength;if(r){let v=a+=c;r(v)}l.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},id=64*1024,{isFunction:So}=P,Dw=(({Request:t,Response:e})=>({Request:t,Response:e}))(P.global),{ReadableStream:ad,TextEncoder:od}=P.global,sd=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Aw=t=>{t=P.merge.call({skipUndefined:!0},Dw,t);const{fetch:e,Request:r,Response:n}=t,i=e?So(e):typeof fetch=="function",a=So(r),o=So(n);if(!i)return!1;const s=i&&So(ad),l=i&&(typeof od=="function"?(d=>g=>d.encode(g))(new od):async d=>new Uint8Array(await new r(d).arrayBuffer())),u=a&&s&&sd(()=>{let d=!1;const g=new r(Ve.origin,{body:new ad,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!g}),f=o&&s&&sd(()=>P.isReadableStream(new n("").body)),c={stream:f&&(d=>d.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!c[d]&&(c[d]=(g,p)=>{let m=g&&g[d];if(m)return m.call(g);throw new K(`Response type '${d}' is not supported`,K.ERR_NOT_SUPPORT,p)})});const v=async d=>{if(d==null)return 0;if(P.isBlob(d))return d.size;if(P.isSpecCompliantForm(d))return(await new r(Ve.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(P.isArrayBufferView(d)||P.isArrayBuffer(d))return d.byteLength;if(P.isURLSearchParams(d)&&(d=d+""),P.isString(d))return(await l(d)).byteLength},h=async(d,g)=>{const p=P.toFiniteNumber(d.getContentLength());return p??v(g)};return async d=>{let{url:g,method:p,data:m,signal:y,cancelToken:_,timeout:b,onDownloadProgress:S,onUploadProgress:x,responseType:w,headers:T,withCredentials:D="same-origin",fetchOptions:A}=My(d),M=e||fetch;w=w?(w+"").toLowerCase():"text";let I=ww([y,_&&_.toAbortSignal()],b),L=null;const R=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let O;try{if(x&&u&&p!=="get"&&p!=="head"&&(O=await h(T,m))!==0){let z=new r(g,{method:"POST",body:m,duplex:"half"}),F;if(P.isFormData(m)&&(F=z.headers.get("content-type"))&&T.setContentType(F),z.body){const[Q,ue]=ed(O,ks(td(x)));m=nd(z.body,id,Q,ue)}}P.isString(D)||(D=D?"include":"omit");const k=a&&"credentials"in r.prototype,j={...A,signal:I,method:p.toUpperCase(),headers:T.normalize().toJSON(),body:m,duplex:"half",credentials:k?D:void 0};L=a&&new r(g,j);let N=await(a?M(L,A):M(g,j));const H=f&&(w==="stream"||w==="response");if(f&&(S||H&&R)){const z={};["status","statusText","headers"].forEach(Ie=>{z[Ie]=N[Ie]});const F=P.toFiniteNumber(N.headers.get("content-length")),[Q,ue]=S&&ed(F,ks(td(S),!0))||[];N=new n(nd(N.body,id,Q,()=>{ue&&ue(),R&&R()}),z)}w=w||"text";let W=await c[P.findKey(c,w)||"text"](N,d);return!H&&R&&R(),await new Promise((z,F)=>{Ty(z,F,{data:W,headers:lt.from(N.headers),status:N.status,statusText:N.statusText,config:d,request:L})})}catch(k){throw R&&R(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,d,L,k&&k.response),{cause:k.cause||k}):K.from(k,k&&k.code,d,L,k&&k.response)}}},Lw=new Map,Dy=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,a=[n,i,r];let o=a.length,s=o,l,u,f=Lw;for(;s--;)l=a[s],u=f.get(l),u===void 0&&f.set(l,u=s?new Map:Aw(e)),f=u;return u};Dy();const mh={http:Yx,xhr:xw,fetch:{get:Dy}};P.forEach(mh,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ld=t=>`- ${t}`,Rw=t=>P.isFunction(t)||t===null||t===!1;function Iw(t,e){t=P.isArray(t)?t:[t];const{length:r}=t;let n,i;const a={};for(let o=0;o<r;o++){n=t[o];let s;if(i=n,!Rw(n)&&(i=mh[(s=String(n)).toLowerCase()],i===void 0))throw new K(`Unknown adapter '${s}'`);if(i&&(P.isFunction(i)||(i=i.get(e))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
|
|
4
|
+
`+o.map(ld).join(`
|
|
5
|
+
`):" "+ld(o[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const Ay={getAdapter:Iw,adapters:mh};function cu(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ao(null,t)}function ud(t){return cu(t),t.headers=lt.from(t.headers),t.data=fu.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ay.getAdapter(t.adapter||io.adapter,t)(t).then(function(n){return cu(t),n.data=fu.call(t,t.transformResponse,n),n.headers=lt.from(n.headers),n},function(n){return wy(n)||(cu(t),n&&n.response&&(n.response.data=fu.call(t,t.transformResponse,n.response),n.response.headers=lt.from(n.response.headers))),Promise.reject(n)})}const Ly="1.13.5",Al={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Al[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const fd={};Al.transitional=function(e,r,n){function i(a,o){return"[Axios v"+Ly+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(e===!1)throw new K(i(o," has been removed"+(r?" in "+r:"")),K.ERR_DEPRECATED);return r&&!fd[o]&&(fd[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,s):!0}};Al.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Pw(t,e,r){if(typeof t!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const a=n[i],o=e[a];if(o){const s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new K("option "+a+" must be "+l,K.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new K("Unknown option "+a,K.ERR_BAD_OPTION)}}const gs={assertOptions:Pw,validators:Al},bt=gs.validators;let Nn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Qv,response:new Qv}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
|
+
`+a):n.stack=a}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Wn(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&gs.assertOptions(n,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean),legacyInterceptorReqResOrdering:bt.transitional(bt.boolean)},!1),i!=null&&(P.isFunction(i)?r.paramsSerializer={serialize:i}:gs.assertOptions(i,{encode:bt.function,serialize:bt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),gs.assertOptions(r,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&P.merge(a.common,a[r.method]);a&&P.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),r.headers=lt.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(r)===!1)return;l=l&&g.synchronous;const p=r.transitional||ph;p&&p.legacyInterceptorReqResOrdering?s.unshift(g.fulfilled,g.rejected):s.push(g.fulfilled,g.rejected)});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let f,c=0,v;if(!l){const d=[ud.bind(this),void 0];for(d.unshift(...s),d.push(...u),v=d.length,f=Promise.resolve(r);c<v;)f=f.then(d[c++],d[c++]);return f}v=s.length;let h=r;for(;c<v;){const d=s[c++],g=s[c++];try{h=d(h)}catch(p){g.call(this,p);break}}try{f=ud.call(this,h)}catch(d){return Promise.reject(d)}for(c=0,v=u.length;c<v;)f=f.then(u[c++],u[c++]);return f}getUri(e){e=Wn(this.defaults,e);const r=Cy(e.baseURL,e.url,e.allowAbsoluteUrls);return Sy(r,e.params,e.paramsSerializer)}};P.forEach(["delete","get","head","options"],function(e){Nn.prototype[e]=function(r,n){return this.request(Wn(n||{},{method:e,url:r,data:(n||{}).data}))}});P.forEach(["post","put","patch"],function(e){function r(n){return function(a,o,s){return this.request(Wn(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Nn.prototype[e]=r(),Nn.prototype[e+"Form"]=r(!0)});let Ew=class Ry{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},e(function(a,o,s){n.reason||(n.reason=new ao(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new Ry(function(i){e=i}),cancel:e}}};function Ow(t){return function(r){return t.apply(null,r)}}function kw(t){return P.isObject(t)&&t.isAxiosError===!0}const jf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(jf).forEach(([t,e])=>{jf[e]=t});function Iy(t){const e=new Nn(t),r=fy(Nn.prototype.request,e);return P.extend(r,Nn.prototype,e,{allOwnKeys:!0}),P.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return Iy(Wn(t,i))},r}const Le=Iy(io);Le.Axios=Nn;Le.CanceledError=ao;Le.CancelToken=Ew;Le.isCancel=wy;Le.VERSION=Ly;Le.toFormData=Dl;Le.AxiosError=K;Le.Cancel=Le.CanceledError;Le.all=function(e){return Promise.all(e)};Le.spread=Ow;Le.isAxiosError=kw;Le.mergeConfig=Wn;Le.AxiosHeaders=lt;Le.formToJSON=t=>xy(P.isHTMLForm(t)?new FormData(t):t);Le.getAdapter=Ay.getAdapter;Le.HttpStatusCode=jf;Le.default=Le;const{Axios:cN,AxiosError:hN,CanceledError:vN,isCancel:dN,CancelToken:pN,VERSION:gN,all:mN,Cancel:yN,isAxiosError:_N,spread:bN,toFormData:SN,AxiosHeaders:xN,HttpStatusCode:wN,formToJSON:TN,getAdapter:CN,mergeConfig:MN}=Le;var Yf=function(t,e){return Yf=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])},Yf(t,e)};function G(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Yf(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var $f=function(){return $f=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},$f.apply(this,arguments)};function Nw(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function Bw(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function Fw(t,e){return function(r,n){e(r,n,t)}}function zw(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Hw(t,e,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(f){try{u(n.next(f))}catch(c){o(c)}}function l(f){try{u(n.throw(f))}catch(c){o(c)}}function u(f){f.done?a(f.value):i(f.value).then(s,l)}u((n=n.apply(t,e||[])).next())})}function Gw(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(f){return l([u,f])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(f){u=[6,f],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var yh=Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]});function Vw(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&yh(e,t,r)}function qf(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Py(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function Uw(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Py(arguments[e]));return t}function Ww(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}function jw(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||e)}function Ia(t){return this instanceof Ia?(this.v=t,this):new Ia(t)}function Yw(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(v){n[v]&&(i[v]=function(h){return new Promise(function(d,g){a.push([v,h,d,g])>1||s(v,h)})})}function s(v,h){try{l(n[v](h))}catch(d){c(a[0][3],d)}}function l(v){v.value instanceof Ia?Promise.resolve(v.value.v).then(u,f):c(a[0][2],v)}function u(v){s("next",v)}function f(v){s("throw",v)}function c(v,h){v(h),a.shift(),a.length&&s(a[0][0],a[0][1])}}function $w(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,a){e[i]=t[i]?function(o){return(r=!r)?{value:Ia(t[i](o)),done:i==="return"}:a?a(o):o}:a}}function qw(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof qf=="function"?qf(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=t[a]&&function(o){return new Promise(function(s,l){o=t[a](o),i(s,l,o.done,o.value)})}}function i(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function Xw(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var Zw=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e};function Kw(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yh(e,t,r);return Zw(e,t),e}function Qw(t){return t&&t.__esModule?t:{default:t}}function Jw(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function eT(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}const tT=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return $f},__asyncDelegator:$w,__asyncGenerator:Yw,__asyncValues:qw,__await:Ia,__awaiter:Hw,__classPrivateFieldGet:Jw,__classPrivateFieldSet:eT,__createBinding:yh,__decorate:Bw,__exportStar:Vw,__extends:G,__generator:Gw,__importDefault:Qw,__importStar:Kw,__makeTemplateObject:Xw,__metadata:zw,__param:Fw,__read:Py,__rest:Nw,__spread:Uw,__spreadArray:jw,__spreadArrays:Ww,__values:qf},Symbol.toStringTag,{value:"Module"}));var _h=12,rT="sans-serif",Kr=_h+"px "+rT,nT=20,iT=100,aT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function oT(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)-nT)/iT;e[n]=i}return e}var sT=oT(aT),Pt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=Pt.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Kr),t.measureText(r);r=r||"",n=n||Kr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||_h,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=sT[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}};function Ey(t){for(var e in Pt)t[e]&&(Pt[e]=t[e])}var Oy=lr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),ky=lr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Oi=Object.prototype.toString,Ll=Array.prototype,lT=Ll.forEach,uT=Ll.filter,bh=Ll.slice,fT=Ll.map,cd=(function(){}).constructor,xo=cd?cd.prototype:null,Sh="__proto__",cT=2311;function xh(){return cT++}function Rl(){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=Oi.call(t);if(r==="[object Array]"){if(!_i(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=ae(t[n])}}else if(ky[r]){if(!_i(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(!Oy[r]&&!_i(t)&&!wi(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Sh&&(e[o]=ae(t[o]))}return e}function le(t,e,r){if(!$(e)||!$(t))return r?ae(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==Sh){var i=t[n],a=e[n];$(a)&&$(i)&&!U(a)&&!U(i)&&!wi(a)&&!wi(i)&&!Xf(a)&&!Xf(i)&&!_i(a)&&!_i(i)?le(i,a,r):(r||!(n in t))&&(t[n]=ae(e[n]))}return t}function hT(t,e){for(var r=t[0],n=1,i=t.length;n<i;n++)r=le(r,t[n],e);return r}function B(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Sh&&(t[r]=e[r]);return t}function de(t,e,r){for(var n=be(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var vT=Pt.createCanvas;function se(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 wh(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 Et(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"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else de(t,e,r)}function tt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function C(t,e,r){if(t&&e)if(t.forEach&&t.forEach===lT)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 q(t,e,r){if(!t)return[];if(!e)return Il(t);if(t.map&&t.map===fT)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 lr(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 Ae(t,e,r){if(!t)return[];if(!e)return Il(t);if(t.filter&&t.filter===uT)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 Ny(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function be(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 dT(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(bh.call(arguments)))}}var ve=xo&&ne(xo.bind)?xo.call.bind(xo.bind):dT;function xe(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(bh.call(arguments)))}}function U(t){return Array.isArray?Array.isArray(t):Oi.call(t)==="[object Array]"}function ne(t){return typeof t=="function"}function Y(t){return typeof t=="string"}function Ns(t){return Oi.call(t)==="[object String]"}function ge(t){return typeof t=="number"}function $(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Xf(t){return!!Oy[Oi.call(t)]}function rt(t){return!!ky[Oi.call(t)]}function wi(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function oo(t){return t.colorStops!=null}function By(t){return t.image!=null}function pT(t){return Oi.call(t)==="[object RegExp]"}function Ti(t){return t!==t}function Pa(){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 Z(t,e){return t??e}function Yr(t,e,r){return t??e??r}function Il(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return bh.apply(t,e)}function Pl(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 ur(t,e){if(!t)throw new Error(e)}function Gt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Fy="__ec_primitive__";function Bs(t){t[Fy]=!0}function _i(t){return t[Fy]}var gT=(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 be(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),zy=typeof Map=="function";function mT(){return zy?new Map:new gT}var Hy=(function(){function t(e){var r=U(e);this.data=mT();var n=this;e instanceof t?e.each(i):e&&C(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 zy?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function ie(t){return new Hy(t)}function Gy(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 so(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&B(r,e),r}function Th(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function It(t,e){return t.hasOwnProperty(e)}function Qe(){}var Vy=180/Math.PI,yT=Number.EPSILON||Math.pow(2,-52);const _T=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:yT,HashMap:Hy,RADIAN_TO_DEGREE:Vy,assert:ur,bind:ve,clone:ae,concatArray:Gy,createCanvas:vT,createHashMap:ie,createObject:so,curry:xe,defaults:de,disableUserSelect:Th,each:C,eqNaN:Ti,extend:B,filter:Ae,find:Ny,guid:xh,hasOwn:It,indexOf:se,inherits:wh,isArray:U,isArrayLike:tt,isBuiltInObject:Xf,isDom:wi,isFunction:ne,isGradientObject:oo,isImagePatternObject:By,isNumber:ge,isObject:$,isPrimitive:_i,isRegExp:pT,isString:Y,isStringSafe:Ns,isTypedArray:rt,keys:be,logError:Rl,map:q,merge:le,mergeAll:hT,mixin:Et,noop:Qe,normalizeCssArray:Pl,reduce:lr,retrieve:Pa,retrieve2:Z,retrieve3:Yr,setAsPrimitive:Bs,slice:Il,trim:Gt},Symbol.toStringTag,{value:"Module"}));var bT=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),ST=(function(){function t(){this.browser=new bT,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})(),ee=new ST;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ee.wxa=!0,ee.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ee.worker=!0:!ee.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ee.node=!0,ee.svgSupported=!0):xT(navigator.userAgent,ee);function xT(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);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var wT=".",on="___EC__COMPONENT__CONTAINER___",Uy="___EC__EXTENDED_CLASS___";function tr(t){var e={main:"",sub:""};if(t){var r=t.split(wT);e.main=r[0]||"",e.sub=r[1]||""}return e}function TT(t){ur(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function CT(t){return!!(t&&t[Uy])}function Ch(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return MT(n)?i=(function(a){G(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},wh(i,this)),B(i.prototype,r),i[Uy]=!0,i.extend=this.extend,i.superCall=LT,i.superApply=RT,i.superClass=n,i}}function MT(t){return ne(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Wy(t,e){t.extend=e.extend}var DT=Math.round(Math.random()*10);function AT(t){var e=["__\0is_clz",DT++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function LT(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 RT(t,e,r){return this.superClass.prototype[e].apply(t,r)}function El(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){TT(i),n.prototype.type=i;var a=tr(i);if(!a.sub)e[a.main]=n;else if(a.sub!==on){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[on]&&(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=tr(n),a=[],o=e[i.main];return o&&o[on]?C(o,function(s,l){l!==on&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=tr(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return C(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=tr(n),a=e[i.main];return a&&a[on]};function r(n){var i=e[n.main];return(!i||!i[on])&&(i=e[n.main]={},i[on]=!0),i}}function Ea(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&&se(i,l)>=0||a&&se(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var IT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],PT=Ea(IT),ET=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return PT(this,e,r)},t})(),jy=(function(){function t(e){this.value=e}return t})(),OT=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new jy(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})(),Ci=(function(){function t(e){this._list=new OT,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 jy(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})(),Zf=new Ci(50);function kT(t){if(typeof t=="string"){var e=Zf.get(t);return e&&e.image}else return t}function Yy(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Zf.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Ol(e)&&a.pending.push(o)):(e=Pt.loadImage(t,hd,hd),e.__zrImageSrc=t,Zf.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function hd(){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 Ol(t){return t&&t.width&&t.height}function Vt(){return[1,0,0,1,0,0]}function lo(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function kl(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 Bn(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 Fs(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 Nl(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 $y(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 Yn(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}function NT(t){var e=Vt();return kl(e,t),e}const BT=Object.freeze(Object.defineProperty({__proto__:null,clone:NT,copy:kl,create:Vt,identity:lo,invert:Yn,mul:Bn,rotate:Nl,scale:$y,translate:Fs},Symbol.toStringTag,{value:"Module"}));var re=(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})(),In=Math.min,pi=Math.max,Kf=Math.abs,vd=["x","y"],FT=["width","height"],sn=new re,ln=new re,un=new re,fn=new re,ht=qy(),fa=ht.minTv,Qf=ht.maxTv,ba=[0,0],te=(function(){function t(e,r,n,i){t.set(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=In(e.x,this.x),n=In(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=pi(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=pi(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=Vt();return Fs(a,a,[-r.x,-r.y]),$y(a,a,[n,i]),Fs(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&re.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(zT,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set(HT,r.x,r.y,r.width,r.height));var s=!!n;ht.reset(i,s);var l=ht.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,v=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,g=r.y+l,p=r.y+r.height-l;if(u>f||c>v||h>d||g>p)return!1;var m=!(f<h||d<u||v<g||p<c);return(s||a)&&(ba[0]=1/0,ba[1]=0,dd(u,f,h,d,0,s,a,o),dd(c,v,g,p,1,s,a,o),s&&re.copy(n,m?ht.useDir?ht.dirMinTv:fa:Qf)),m},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},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){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},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}sn.x=un.x=r.x,sn.y=fn.y=r.y,ln.x=fn.x=r.x+r.width,ln.y=un.y=r.y+r.height,sn.transform(n),fn.transform(n),ln.transform(n),un.transform(n),e.x=In(sn.x,ln.x,un.x,fn.x),e.y=In(sn.y,ln.y,un.y,fn.y);var l=pi(sn.x,ln.x,un.x,fn.x),u=pi(sn.y,ln.y,un.y,fn.y);e.width=l-e.x,e.height=u-e.y},t})(),zT=new te(0,0,0,0),HT=new te(0,0,0,0);function dd(t,e,r,n,i,a,o,s){var l=Kf(e-r),u=Kf(n-t),f=In(l,u),c=vd[i],v=vd[1-i],h=FT[i];e<r||n<t?l<u?(a&&(Qf[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(Qf[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=pi(t,r),o[h]=In(e,n)-o[c]),a&&(f<ba[0]||ht.useDir)&&(ba[0]=In(f,ba[0]),(l<u||!ht.bidirectional)&&(fa[c]=l,fa[v]=0,ht.useDir&&ht.calcDirMTV()),(l>=u||!ht.bidirectional)&&(fa[c]=-u,fa[v]=0,ht.useDir&&ht.calcDirMTV())))}function qy(){var t=0,e=new re,r=new re,n={minTv:new re,maxTv:new re,useDir:!1,dirMinTv:new re,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=pi(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return Kf(a)<1e-10}return n}function nr(t){wo||(wo=new Ci(100)),t=t||Kr;var e=wo.get(t);return e||(e={font:t,strWidthCache:new Ci(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Pt.measureText("国",t).width,asciiCharWidth:Pt.measureText("a",t).width},wo.put(t,e)),e}var wo;function GT(t){if(!(hu>=pd)){t=t||Kr;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=Pt.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?hu=pd:i>2&&hu++,e}}var hu=0,pd=5;function Xy(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=GT(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function ir(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=Pt.measureText(e,t.font).width,r.put(e,n)),n}function gd(t,e,r,n){var i=ir(nr(e),t),a=Bl(e),o=Mi(0,i,r),s=Fn(0,a,n),l=new te(o,s,i,a);return l}function Zy(t,e,r,n){var i=((t||"")+"").split(`
|
|
7
|
+
`),a=i.length;if(a===1)return gd(i[0],e,r,n);for(var o=new te(0,0,0,0),s=0;s<i.length;s++){var l=gd(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function Mi(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function Fn(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function Bl(t){return nr(t).stWideCharWidth}function Qr(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function zs(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+=Qr(n[0],r.width),u+=Qr(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 vu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function VT(t,e,r,n,i){var a={};return Ky(a,t,e,r,n,i),a.text}function Ky(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
8
|
+
`);a=Qy(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Jy(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
|
9
|
+
`),t.isTruncated=s}function Qy(t,e,r,n){n=n||{};var i=B({},n);r=Z(r,"..."),i.maxIterations=Z(n.maxIterations,2);var a=i.minChar=Z(n.minChar,0),o=i.fontMeasureInfo=nr(e),s=o.asciiCharWidth;i.placeholder=Z(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=ir(o,r);return f>l&&(r="",f=0),l=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=t,i}function Jy(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=ir(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?UT(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=ir(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function UT(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=Xy(r,t.charCodeAt(i));return i}function WT(t,e,r,n){var i=Mh(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=Bl(u),v=Z(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,g=e.width;g==null&&r!=null&&(g=r-s);var p=e.height;p==null&&n!=null&&(p=n-l);var m;g!=null&&(a==="break"||a==="breakAll")?m=i?e0(i,e.font,g,a==="breakAll",0).lines:[]:m=i?i.split(`
|
|
10
|
+
`):[];var y=m.length*v;if(p==null&&(p=y),y>p&&h){var _=Math.floor(p/v);d=d||m.length>_,m=m.slice(0,_),y=m.length*v}if(i&&f&&g!=null)for(var b=Qy(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},x=0;x<m.length;x++)Jy(S,m[x],b),m[x]=S.textLine,d=d||S.isTruncated;for(var w=p,T=0,D=nr(u),x=0;x<m.length;x++)T=Math.max(ir(D,m[x]),T);g==null&&(g=T);var A=g;return w+=l,A+=s,{lines:m,height:p,outerWidth:A,outerHeight:w,lineHeight:v,calculatedLineHeight:c,contentWidth:T,contentHeight:y,width:g,isTruncated:d}}var jT=(function(){function t(){}return t})(),md=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),YT=(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 $T(t,e,r,n,i){var a=new YT,o=Mh(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&n!=null&&(c=n-u);for(var v=e.overflow,h=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=vu.lastIndex=0,g;(g=vu.exec(o))!=null;){var p=g.index;p>d&&du(a,o.substring(d,p),e,h),du(a,g[2],e,h,g[1]),d=vu.lastIndex}d<o.length&&du(a,o.substring(d,o.length),e,h);var m=[],y=0,_=0,b=v==="truncate",S=e.lineOverflow==="truncate",x={};function w(ct,Ye,ze){ct.width=Ye,ct.lineHeight=ze,y+=ze,_=Math.max(_,Ye)}e:for(var T=0;T<a.lines.length;T++){for(var D=a.lines[T],A=0,M=0,I=0;I<D.tokens.length;I++){var L=D.tokens[I],R=L.styleName&&e.rich[L.styleName]||{},O=L.textPadding=R.padding,k=O?O[1]+O[3]:0,j=L.font=R.font||e.font;L.contentHeight=Bl(j);var N=Z(R.height,L.contentHeight);if(L.innerHeight=N,O&&(N+=O[0]+O[2]),L.height=N,L.lineHeight=Yr(R.lineHeight,e.lineHeight,N),L.align=R&&R.align||i,L.verticalAlign=R&&R.verticalAlign||"middle",S&&c!=null&&y+L.lineHeight>c){var H=a.lines.length;I>0?(D.tokens=D.tokens.slice(0,I),w(D,M,A),a.lines=a.lines.slice(0,T+1)):a.lines=a.lines.slice(0,T),a.isTruncated=a.isTruncated||a.lines.length<H;break e}var W=R.width,z=W==null||W==="auto";if(typeof W=="string"&&W.charAt(W.length-1)==="%")L.percentWidth=W,m.push(L),L.contentWidth=ir(nr(j),L.text);else{if(z){var F=R.backgroundColor,Q=F&&F.image;Q&&(Q=kT(Q),Ol(Q)&&(L.width=Math.max(L.width,Q.width*N/Q.height)))}var ue=b&&f!=null?f-M:null;ue!=null&&ue<L.width?!z||ue<k?(L.text="",L.width=L.contentWidth=0):(Ky(x,L.text,ue-k,j,e.ellipsis,{minChar:e.truncateMinChar}),L.text=x.text,a.isTruncated=a.isTruncated||x.isTruncated,L.width=L.contentWidth=ir(nr(j),L.text)):L.contentWidth=ir(nr(j),L.text)}L.width+=k,M+=L.width,R&&(A=Math.max(A,L.lineHeight))}w(D,M,A)}a.outerWidth=a.width=Z(f,_),a.outerHeight=a.height=Z(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var T=0;T<m.length;T++){var L=m[T],Ie=L.percentWidth;L.width=parseInt(Ie,10)/100*a.width}return a}function du(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 v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Qr(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
|
|
11
|
+
`),u=!0),n.accumWidth=d}else{var g=e0(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+h,c=g.linesWidths,f=g.lines}}f||(f=e.split(`
|
|
12
|
+
`));for(var p=nr(l),m=0;m<f.length;m++){var y=f[m],_=new jT;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[m]:ir(p,y),!m&&!u){var b=(s[s.length-1]||(s[0]=new md)).tokens,S=b.length;S===1&&b[0].isLineHolder?b[0]=_:(y||!S||a)&&b.push(_)}else s.push(new md([_]))}}function qT(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var XT=lr(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function ZT(t){return qT(t)?!!XT[t]:!0}function e0(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=nr(e),v=0;v<t.length;v++){var h=t.charAt(v);if(h===`
|
|
13
|
+
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Xy(c,h.charCodeAt(0)),g=n?!1:!ZT(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(g?(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)):g?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,g?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function yd(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;te.set(_d,Mi(r,o,i),Fn(n,s,a),o,s),te.intersect(e,_d,null,bd);var l=bd.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Mi(l.x,l.width,i,!0),t.baseY=Fn(l.y,l.height,a,!0)}}var _d=new te(0,0,0,0),bd={outIntersectRect:{},clamp:!0};function Mh(t){return t!=null?t+="":t=""}function KT(t){var e=Mh(t.text),r=t.font,n=ir(nr(r),e),i=Bl(r);return Jf(t,n,i,null)}function Jf(t,e,r,n){var i=new te(Mi(t.x||0,e,t.textAlign),Fn(t.y||0,r,t.textBaseline),e,r),a=n??(t0(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function t0(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}function $n(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function QT(t,e){return t[0]=e[0],t[1]=e[1],t}function r0(t){return[t[0],t[1]]}function JT(t,e,r){return t[0]=e,t[1]=r,t}function ec(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function eC(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function n0(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Dh(t){return Math.sqrt(Ah(t))}var tC=Dh;function Ah(t){return t[0]*t[0]+t[1]*t[1]}var rC=Ah;function nC(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function iC(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function aC(t,e){return t[0]*e[0]+t[1]*e[1]}function ms(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function i0(t,e){var r=Dh(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Hs(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Gs=Hs;function a0(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var zn=a0;function oC(t,e){return t[0]=-e[0],t[1]=-e[1],t}function ys(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function Je(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 zr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Hr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}const sC=Object.freeze(Object.defineProperty({__proto__:null,add:ec,applyTransform:Je,clone:r0,copy:QT,create:$n,dist:Gs,distSquare:zn,distance:Hs,distanceSquare:a0,div:iC,dot:aC,len:Dh,lenSquare:Ah,length:tC,lengthSquare:rC,lerp:ys,max:Hr,min:zr,mul:nC,negate:oC,normalize:i0,scale:ms,scaleAndAdd:eC,set:JT,sub:n0},Symbol.toStringTag,{value:"Module"}));var Sd=lo,xd=5e-5;function cn(t){return t>xd||t<-xd}var hn=[],Kn=[],pu=Vt(),gu=Math.abs,Lh=(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 cn(this.rotation)||cn(this.x)||cn(this.y)||cn(this.scaleX-1)||cn(this.scaleY-1)||cn(this.skewX)||cn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(Sd(n),this.invTransform=null);return}n=n||Vt(),r?this.getLocalTransform(n):Sd(n),e&&(r?Bn(n,e,n):kl(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(hn);var n=hn[0]<0?-1:1,i=hn[1]<0?-1:1,a=((hn[0]-n)*r+n)/hn[0]||0,o=((hn[1]-i)*r+i)/hn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Vt(),Yn(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||Vt(),Bn(Kn,e.invTransform,r),r=Kn);var n=this.originX,i=this.originY;(n||i)&&(pu[4]=n,pu[5]=i,Bn(Kn,r,pu),Kn[4]-=n,Kn[5]-=i,r=Kn),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&&Je(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&Je(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&gu(e[0]-1)>1e-10&&gu(e[3]-1)>1e-10?Math.sqrt(gu(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){tc(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,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,g=i+l;r[4]=-d*a-v*g*o,r[5]=-g*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,u&&Nl(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})(),Oa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function tc(t,e){for(var r=0;r<Oa.length;r++){var n=Oa[r];t[n]=e[n]}}var Sa={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-Sa.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?Sa.bounceIn(t*2)*.5:Sa.bounceOut(t*2-1)*.5+.5}},To=Math.pow,$r=Math.sqrt,Vs=1e-8,o0=1e-4,wd=$r(3),Co=1/3,Jt=$n(),Mt=$n(),bi=$n();function Gr(t){return t>-Vs&&t<Vs}function s0(t){return t>Vs||t<-Vs}function Ze(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 Td(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function l0(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,v=l*l-3*s*u,h=0;if(Gr(f)&&Gr(c))if(Gr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var g=c*c-4*f*v;if(Gr(g)){var p=c/f,d=-s/o+p,m=-p/2;d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m)}else if(g>0){var y=$r(g),_=f*s+1.5*o*(-c+y),b=f*s+1.5*o*(-c-y);_<0?_=-To(-_,Co):_=To(_,Co),b<0?b=-To(-b,Co):b=To(b,Co);var d=(-s-(_+b))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var S=(2*f*s-3*o*c)/(2*$r(f*f*f)),x=Math.acos(S)/3,w=$r(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),m=(-s+w*(T+wd*Math.sin(x)))/(3*o),D=(-s+w*(T-wd*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m),D>=0&&D<=1&&(a[h++]=D)}}return h}function u0(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(Gr(o)){if(s0(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Gr(f))i[0]=-a/(2*o);else if(f>0){var c=$r(f),u=(-a+c)/(2*o),v=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Us(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 lC(t,e,r,n,i,a,o,s,l,u,f){var c,v=.005,h=1/0,d,g,p,m;Jt[0]=l,Jt[1]=u;for(var y=0;y<1;y+=.05)Mt[0]=Ze(t,r,i,o,y),Mt[1]=Ze(e,n,a,s,y),p=zn(Jt,Mt),p<h&&(c=y,h=p);h=1/0;for(var _=0;_<32&&!(v<o0);_++)d=c-v,g=c+v,Mt[0]=Ze(t,r,i,o,d),Mt[1]=Ze(e,n,a,s,d),p=zn(Mt,Jt),d>=0&&p<h?(c=d,h=p):(bi[0]=Ze(t,r,i,o,g),bi[1]=Ze(e,n,a,s,g),m=zn(bi,Jt),g<=1&&m<h?(c=g,h=m):v*=.5);return $r(h)}function uC(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,g=Ze(t,r,i,o,d),p=Ze(e,n,a,s,d),m=g-u,y=p-f;c+=Math.sqrt(m*m+y*y),u=g,f=p}return c}function it(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Cd(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function fC(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Gr(a)){if(s0(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Gr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=$r(f),u=(-o+c)/(2*a),v=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function f0(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Ws(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 cC(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Jt[0]=o,Jt[1]=s;for(var v=0;v<1;v+=.05){Mt[0]=it(t,r,i,v),Mt[1]=it(e,n,a,v);var h=zn(Jt,Mt);h<c&&(u=v,c=h)}c=1/0;for(var d=0;d<32&&!(f<o0);d++){var g=u-f,p=u+f;Mt[0]=it(t,r,i,g),Mt[1]=it(e,n,a,g);var h=zn(Mt,Jt);if(g>=0&&h<c)u=g,c=h;else{bi[0]=it(t,r,i,p),bi[1]=it(e,n,a,p);var m=zn(bi,Jt);p<=1&&m<c?(u=p,c=m):f*=.5}}return $r(c)}function hC(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=it(t,r,i,v),d=it(e,n,a,v),g=h-s,p=d-l;u+=Math.sqrt(g*g+p*p),s=h,l=d}return u}var vC=/cubic-bezier\(([0-9,\.e ]+)\)/;function c0(t){var e=t&&vC.exec(t);if(e){var r=e[1].split(","),n=+Gt(r[0]),i=+Gt(r[1]),a=+Gt(r[2]),o=+Gt(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:l0(0,n,a,1,l,s)&&Ze(0,i,o,1,s[0])}}}var dC=(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||Qe,this.ondestroy=e.ondestroy||Qe,this.onrestart=e.onrestart||Qe,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=ne(e)?e:Sa[e]||c0(e)},t})(),Md={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 Ut(t){return t=Math.round(t),t<0?0:t>255?255:t}function pC(t){return t=Math.round(t),t<0?0:t>360?360:t}function ka(t){return t<0?0:t>1?1:t}function _s(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ut(parseFloat(e)/100*255):Ut(parseInt(e,10))}function qr(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ka(parseFloat(e)/100):ka(parseFloat(e))}function mu(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 Vr(t,e,r){return t+(e-t)*r}function xt(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function rc(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var h0=new Ci(20),Mo=null;function Qn(t,e){Mo&&rc(Mo,e),Mo=h0.put(t,Mo||e.slice())}function gt(t,e){if(t){e=e||[];var r=h0.get(t);if(r)return rc(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Md)return rc(e,Md[n]),Qn(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)){xt(e,0,0,0,1);return}return xt(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),Qn(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){xt(e,0,0,0,1);return}return xt(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Qn(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?xt(e,+u[0],+u[1],+u[2],1):xt(e,0,0,0,1);f=qr(u.pop());case"rgb":if(u.length>=3)return xt(e,_s(u[0]),_s(u[1]),_s(u[2]),u.length===3?f:qr(u[3])),Qn(t,e),e;xt(e,0,0,0,1);return;case"hsla":if(u.length!==4){xt(e,0,0,0,1);return}return u[3]=qr(u[3]),nc(u,e),Qn(t,e),e;case"hsl":if(u.length!==3){xt(e,0,0,0,1);return}return nc(u,e),Qn(t,e),e;default:return}}xt(e,0,0,0,1)}}function nc(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=qr(t[1]),i=qr(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],xt(e,Ut(mu(o,a,r+1/3)*255),Ut(mu(o,a,r)*255),Ut(mu(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function gC(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,v=((a-n)/6+o/2)/o;e===a?l=v-c:r===a?l=1/3+f-v:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function ic(t,e){var r=gt(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return rn(r,r.length===4?"rgba":"rgb")}}function mC(t){var e=gt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function v0(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]=Ut(Vr(o[0],s[0],l)),r[1]=Ut(Vr(o[1],s[1],l)),r[2]=Ut(Vr(o[2],s[2],l)),r[3]=ka(Vr(o[3],s[3],l)),r}}var yC=v0;function d0(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=gt(e[i]),s=gt(e[a]),l=n-i,u=rn([Ut(Vr(o[0],s[0],l)),Ut(Vr(o[1],s[1],l)),Ut(Vr(o[2],s[2],l)),ka(Vr(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var _C=d0;function js(t,e,r,n){var i=gt(t);if(t)return i=gC(i),e!=null&&(i[0]=pC(ne(e)?e(i[0]):e)),r!=null&&(i[1]=qr(ne(r)?r(i[1]):r)),n!=null&&(i[2]=qr(ne(n)?n(i[2]):n)),rn(nc(i),"rgba")}function bC(t,e){var r=gt(t);if(r&&e!=null)return r[3]=ka(e),rn(r,"rgba")}function rn(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 Na(t,e){var r=gt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function SC(){return rn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Dd=new Ci(100);function ac(t){if(Y(t)){var e=Dd.get(t);return e||(e=ic(t,-.1),Dd.put(t,e)),e}else if(oo(t)){var r=B({},t);return r.colorStops=q(t.colorStops,function(n){return{offset:n.offset,color:ic(n.color,-.1)}}),r}return t}const xC=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:v0,fastMapToColor:yC,lerp:d0,lift:ic,liftColor:ac,lum:Na,mapToColor:_C,modifyAlpha:bC,modifyHSL:js,parse:gt,parseCssFloat:qr,parseCssInt:_s,random:SC,stringify:rn,toHex:mC},Symbol.toStringTag,{value:"Module"}));function wC(t){return t.type==="linear"}function TC(t){return t.type==="radial"}(function(){return ee.hasGlobalWindow&&ne(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 oc=Array.prototype.slice;function Sr(t,e,r){return(e-t)*r+t}function yu(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=Sr(e[a],r[a],n);return t}function CC(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]=Sr(e[o][s],r[o][s],n)}return t}function Do(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function Ad(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 MC(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 DC(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]:oc.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 bs(t){if(tt(t)){var e=t.length;if(tt(t[0])){for(var r=[],n=0;n<e;n++)r.push(oc.call(t[n]));return r}return oc.call(t)}return t}function Ss(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 AC(t){return tt(t&&t[0])?2:1}var Ao=0,xs=1,p0=2,ca=3,sc=4,lc=5,Ld=6;function Rd(t){return t===sc||t===lc}function Lo(t){return t===xs||t===p0}var zi=[0,0,0,0],LC=(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=Ld,l=r;if(tt(r)){var u=AC(r);s=u,(u===1&&!ge(r[0])||u===2&&!ge(r[0][0]))&&(o=!0)}else if(ge(r)&&!Ti(r))s=Ao;else if(Y(r))if(!isNaN(+r))s=Ao;else{var f=gt(r);f&&(l=f,s=ca)}else if(oo(r)){var c=B({},l);c.colorStops=q(r.colorStops,function(h){return{offset:h.offset,color:gt(h.color)}}),wC(r)?s=sc:TC(r)&&(s=lc),l=c}a===0?this.valType=s:(s!==this.valType||s===Ld)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ne(n)?n:Sa[n]||c0(n)),i.push(v),v},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=Lo(i),u=Rd(i),f=0;f<a;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?DC(v,h,i):u&&MC(v.colorStops,h.colorStops))}if(!s&&i!==lc&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Ao?n[f].additiveValue=n[f].value-d:i===ca?n[f].additiveValue=Do([],n[f].value,d,-1):Lo(i)&&(n[f].additiveValue=i===xs?Do([],n[f].value,d,-1):Ad([],n[f].value,d,-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===ca,f,c=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=v(c+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-h.percent,m=p===0?1:v((r-h.percent)/p,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?zi:e[l];if((Lo(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:d.rawValue;else if(Lo(a))a===xs?yu(y,h[i],d[i],m):CC(y,h[i],d[i],m);else if(Rd(a)){var _=h[i],b=d[i],S=a===sc;e[l]={type:S?"linear":"radial",x:Sr(_.x,b.x,m),y:Sr(_.y,b.y,m),colorStops:q(_.colorStops,function(w,T){var D=b.colorStops[T];return{offset:Sr(w.offset,D.offset,m),color:Ss(yu([],w.color,D.color,m))}}),global:b.global},S?(e[l].x2=Sr(_.x2,b.x2,m),e[l].y2=Sr(_.y2,b.y2,m)):e[l].r=Sr(_.r,b.r,m)}else if(u)yu(y,h[i],d[i],m),n||(e[l]=Ss(y));else{var x=Sr(h[i],d[i],m);n?this._additiveValue=x:e[l]=x}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ao?e[n]=e[n]+i:r===ca?(gt(e[n],zi),Do(zi,zi,i,1),e[n]=Ss(zi)):r===xs?Do(e[n],e[n],i,1):r===p0&&Ad(e[n],e[n],i,1)},t})(),Rh=(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){Rl("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,be(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 LC(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,f.valType===ca&&u&&(u=Ss(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,bs(u),i),this._trackKeys.push(s)}l.addKeyframe(e,bs(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 v=new dC({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,h);var m=r._onframeCbs;if(m)for(var p=0;p<m.length;p++)m[p](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.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 q(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]=bs(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||be(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})(),hr=(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})(),g0=1;ee.hasGlobalWindow&&(g0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ys=g0,uc=.4,fc="#333",cc="#ccc",RC="#eee",vt=1,ha=2,di=4,_u="__zr_normal__",bu=Oa.concat(["ignore"]),IC=lr(Oa,function(t,e){return t[e]=!0,t},{ignore:!1}),Jn={},PC=new te(0,0,0,0),Ro=[],Fl=(function(){function t(e){this.id=xh(),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;a.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,v=void 0;if((c||f)&&(v=PC,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Jn,n,v):zs(Jn,n,v),a.x=Jn.x,a.y=Jn.y,o=Jn.align,s=Jn.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,g=void 0;h==="center"?(d=v.width*.5,g=v.height*.5):(d=Qr(h[0],v.width),g=Qr(h[1],v.height)),u=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+g+(i?0:v.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new te(0,0,0,0);a.getLocalTransform(Ro),Yn(Ro,Ro),te.copy(y,v),y.applyTransform(Ro)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,b=void 0,S=void 0,x=void 0;_&&this.canBeInsideText()?(b=n.insideFill,S=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(b),x=!0)):(b=n.outsideFill,S=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(b),x=!0)),b=b||"#000",(b!==m.fill||S!==m.stroke||x!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=b,m.stroke=S,m.autoStroke=x,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=vt,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()?cc:fc},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&>(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,rn(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||{},B(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($(e))for(var n=e,i=be(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!==_u)){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,bu)},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(_u,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===_u,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(se(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){Rl("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,v=this._textGuide;return c&&c.useState(e,r,n,f),v&&v.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&=~vt),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],v=!!(c&&c.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(e,r,v),p&&p.useStates(e,r,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vt)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},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=se(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=se(i,e),o=se(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];B(r,a),a.textConfig&&(n=n||{},B(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=B({},i?this.textConfig:n.textConfig),B(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<bu.length;f++){var c=bu[f],v=a&&IC[c];r&&r[c]!=null?v?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]: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 Lh,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),B(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|=vt;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 Rh(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=se(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){Su(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Su(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=Su(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.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=vt;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})();Et(Fl,hr);Et(Fl,Lh);function Su(t,e,r,n,i){r=r||{};var a=[];m0(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(d,g){r.during(g)});for(var v=0;v<a.length;v++){var h=a[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function xu(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function EC(t){return tt(t[0])}function OC(t,e,r){if(tt(e[r]))if(tt(t[r])||(t[r]=[]),rt(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),xu(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(EC(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?xu(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else xu(a,i,o);a.length=i.length}else t[r]=e[r]}function kC(t,e){return t===e||tt(t)&&tt(e)&&NC(t,e)}function NC(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 m0(t,e,r,n,i,a,o,s){for(var l=be(n),u=i.duration,f=i.delay,c=i.additive,v=i.setToFinal,h=!$(a),d=t.animators,g=[],p=0;p<l.length;p++){var m=l[p],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if($(y)&&!tt(y)&&!oo(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}m0(t,m,r[m],y,i,a&&a[m],o,s)}else g.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!c&&_)for(var b=0;b<d.length;b++){var S=d[b];if(S.targetName===e){var x=S.stopTracks(g);if(x){var w=se(d,S);d.splice(w,1)}}}if(i.force||(g=Ae(g,function(M){return!kC(n[M],r[M])}),_=g.length),_>0||i.force&&!o.length){var T=void 0,D=void 0,A=void 0;if(s){D={},v&&(T={});for(var b=0;b<_;b++){var m=g[b];D[m]=r[m],v?T[m]=n[m]:r[m]=n[m]}}else if(v){A={};for(var b=0;b<_;b++){var m=g[b];A[m]=bs(r[m]),OC(r,n,m)}}var S=new Rh(r,!1,!1,c?Ae(d,function(I){return I.targetName===e}):null);S.targetName=e,i.scope&&(S.scope=i.scope),v&&T&&S.whenWithKeys(0,T,g),A&&S.whenWithKeys(0,A,g),S.whenWithKeys(u??500,s?D:n,g).delay(f||0),t.addAnimator(S,e),o.push(S)}}var hc="__zr_style_"+Math.round(Math.random()*10),Hn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},zl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Hn[hc]=!0;var Id=["z","z2","invisible"],BC=["invisible"],uo=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=be(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&&FC(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){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 te(0,0,0,0)),n?te.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 te(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:B(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ha,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ha)},e.prototype.styleUpdated=function(){this.__dirty&=~ha},e.prototype.createStyle=function(r){return so(Hn,r)},e.prototype.useStyle=function(r){r[hc]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[hc]},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,Id)},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=be(f),v=0;v<c.length;v++){var h=c[v];h in u&&(u[h]=u[h],this.style[h]=f[h])}for(var d=be(u),v=0;v<d.length;v++){var h=d[v];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?BC:Id,v=0;v<g.length;v++){var h=g[v];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},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 B(r,n),r},e.prototype.getAnimationStyleProps=function(){return zl},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=vt|ha})(),e})(Fl),wu=new te(0,0,0,0),Tu=new te(0,0,0,0);function FC(t,e,r){return wu.copy(t.getBoundingRect()),t.transform&&wu.applyTransform(t.transform),Tu.width=e,Tu.height=r,!wu.intersect(Tu)}var Dt=Math.min,At=Math.max,Cu=Math.sin,Mu=Math.cos,vn=Math.PI*2,Io=$n(),Po=$n(),Eo=$n();function Pd(t,e,r,n,i,a){i[0]=Dt(t,r),i[1]=Dt(e,n),a[0]=At(t,r),a[1]=At(e,n)}var Ed=[],Od=[];function zC(t,e,r,n,i,a,o,s,l,u){var f=u0,c=Ze,v=f(t,r,i,o,Ed);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(t,r,i,o,Ed[h]);l[0]=Dt(d,l[0]),u[0]=At(d,u[0])}v=f(e,n,a,s,Od);for(var h=0;h<v;h++){var g=c(e,n,a,s,Od[h]);l[1]=Dt(g,l[1]),u[1]=At(g,u[1])}l[0]=Dt(t,l[0]),u[0]=At(t,u[0]),l[0]=Dt(o,l[0]),u[0]=At(o,u[0]),l[1]=Dt(e,l[1]),u[1]=At(e,u[1]),l[1]=Dt(s,l[1]),u[1]=At(s,u[1])}function HC(t,e,r,n,i,a,o,s){var l=f0,u=it,f=At(Dt(l(t,r,i),1),0),c=At(Dt(l(e,n,a),1),0),v=u(t,r,i,f),h=u(e,n,a,c);o[0]=Dt(t,i,v),o[1]=Dt(e,a,h),s[0]=At(t,i,v),s[1]=At(e,a,h)}function GC(t,e,r,n,i,a,o,s,l){var u=zr,f=Hr,c=Math.abs(i-a);if(c%vn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Io[0]=Mu(i)*r+t,Io[1]=Cu(i)*n+e,Po[0]=Mu(a)*r+t,Po[1]=Cu(a)*n+e,u(s,Io,Po),f(l,Io,Po),i=i%vn,i<0&&(i=i+vn),a=a%vn,a<0&&(a=a+vn),i>a&&!o?a+=vn:i<a&&o&&(i+=vn),o){var v=a;a=i,i=v}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Eo[0]=Mu(h)*r+t,Eo[1]=Cu(h)*n+e,u(s,Eo,s),f(l,Eo,l))}var he={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},dn=[],pn=[],qt=[],Ir=[],Xt=[],Zt=[],Du=Math.min,Au=Math.max,gn=Math.cos,mn=Math.sin,dr=Math.abs,vc=Math.PI,Nr=vc*2,Lu=typeof Float32Array<"u",Hi=[];function Ru(t){var e=Math.round(t/vc*1e8)/1e8;return e%2*vc}function y0(t,e){var r=Ru(t[0]);r<0&&(r+=Nr);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Nr?i=r+Nr:e&&r-i>=Nr?i=r-Nr:!e&&r>i?i=r+(Nr-Ru(r-i)):e&&r<i&&(i=r-(Nr-Ru(i-r))),t[0]=r,t[1]=i}var Di=(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=dr(n/Ys/e)||0,this._uy=dr(n/Ys/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(he.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=dr(e-this._xi),i=dr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(he.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(he.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(he.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(),Hi[0]=i,Hi[1]=a,y0(Hi,o),i=Hi[0],a=Hi[1];var s=a-i;return this.addData(he.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=gn(a)*n+e,this._yi=mn(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(he.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(he.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){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Lu&&(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){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(Lu&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[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,Lu&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){qt[0]=qt[1]=Xt[0]=Xt[1]=Number.MAX_VALUE,Ir[0]=Ir[1]=Zt[0]=Zt[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 he.M:r=i=e[o++],n=a=e[o++],Xt[0]=i,Xt[1]=a,Zt[0]=i,Zt[1]=a;break;case he.L:Pd(r,n,e[o],e[o+1],Xt,Zt),r=e[o++],n=e[o++];break;case he.C:zC(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Xt,Zt),r=e[o++],n=e[o++];break;case he.Q:HC(r,n,e[o++],e[o++],e[o],e[o+1],Xt,Zt),r=e[o++],n=e[o++];break;case he.A:var u=e[o++],f=e[o++],c=e[o++],v=e[o++],h=e[o++],d=e[o++]+h;o+=1;var g=!e[o++];l&&(i=gn(h)*c+u,a=mn(h)*v+f),GC(u,f,c,v,h,d,g,Xt,Zt),r=gn(d)*c+u,n=mn(d)*v+f;break;case he.R:i=r=e[o++],a=n=e[o++];var p=e[o++],m=e[o++];Pd(i,a,i+p,a+m,Xt,Zt);break;case he.Z:r=i,n=a;break}zr(qt,qt,Xt),Hr(Ir,Ir,Zt)}return o===0&&(qt[0]=qt[1]=Ir[0]=Ir[1]=0),new te(qt[0],qt[1],Ir[0]-qt[0],Ir[1]-qt[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,v=0;v<r;){var h=e[v++],d=v===1;d&&(a=e[v],o=e[v+1],s=a,l=o);var g=-1;switch(h){case he.M:a=s=e[v++],o=l=e[v++];break;case he.L:{var p=e[v++],m=e[v++],y=p-a,_=m-o;(dr(y)>n||dr(_)>i||v===r-1)&&(g=Math.sqrt(y*y+_*_),a=p,o=m);break}case he.C:{var b=e[v++],S=e[v++],p=e[v++],m=e[v++],x=e[v++],w=e[v++];g=uC(a,o,b,S,p,m,x,w,10),a=x,o=w;break}case he.Q:{var b=e[v++],S=e[v++],p=e[v++],m=e[v++];g=hC(a,o,b,S,p,m,10),a=p,o=m;break}case he.A:var T=e[v++],D=e[v++],A=e[v++],M=e[v++],I=e[v++],L=e[v++],R=L+I;v+=1,d&&(s=gn(I)*A+T,l=mn(I)*M+D),g=Au(A,M)*Du(Nr,Math.abs(L)),a=gn(R)*A+T,o=mn(R)*M+D;break;case he.R:{s=a=e[v++],l=o=e[v++];var O=e[v++],k=e[v++];g=O*2+k*2;break}case he.Z:{var y=s-a,_=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,v,h=r<1,d,g,p=0,m=0,y,_=0,b,S;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=r*g,!y)))e:for(var x=0;x<o;){var w=n[x++],T=x===1;switch(T&&(u=n[x],f=n[x+1],s=u,l=f),w!==he.L&&_>0&&(e.lineTo(b,S),_=0),w){case he.M:s=u=n[x++],l=f=n[x++],e.moveTo(u,f);break;case he.L:{c=n[x++],v=n[x++];var D=dr(c-u),A=dr(v-f);if(D>i||A>a){if(h){var M=d[m++];if(p+M>y){var I=(y-p)/M;e.lineTo(u*(1-I)+c*I,f*(1-I)+v*I);break e}p+=M}e.lineTo(c,v),u=c,f=v,_=0}else{var L=D*D+A*A;L>_&&(b=c,S=v,_=L)}break}case he.C:{var R=n[x++],O=n[x++],k=n[x++],j=n[x++],N=n[x++],H=n[x++];if(h){var M=d[m++];if(p+M>y){var I=(y-p)/M;Us(u,R,k,N,I,dn),Us(f,O,j,H,I,pn),e.bezierCurveTo(dn[1],pn[1],dn[2],pn[2],dn[3],pn[3]);break e}p+=M}e.bezierCurveTo(R,O,k,j,N,H),u=N,f=H;break}case he.Q:{var R=n[x++],O=n[x++],k=n[x++],j=n[x++];if(h){var M=d[m++];if(p+M>y){var I=(y-p)/M;Ws(u,R,k,I,dn),Ws(f,O,j,I,pn),e.quadraticCurveTo(dn[1],pn[1],dn[2],pn[2]);break e}p+=M}e.quadraticCurveTo(R,O,k,j),u=k,f=j;break}case he.A:var W=n[x++],z=n[x++],F=n[x++],Q=n[x++],ue=n[x++],Ie=n[x++],ct=n[x++],Ye=!n[x++],ze=F>Q?F:Q,Ne=dr(F-Q)>.001,Me=ue+Ie,J=!1;if(h){var M=d[m++];p+M>y&&(Me=ue+Ie*(y-p)/M,J=!0),p+=M}if(Ne&&e.ellipse?e.ellipse(W,z,F,Q,ct,ue,Me,Ye):e.arc(W,z,ze,ue,Me,Ye),J)break e;T&&(s=gn(ue)*F+W,l=mn(ue)*Q+z),u=gn(Me)*F+W,f=mn(Me)*Q+z;break;case he.R:s=u=n[x],l=f=n[x+1],c=n[x++],v=n[x++];var oe=n[x++],$t=n[x++];if(h){var M=d[m++];if(p+M>y){var Pe=y-p;e.moveTo(c,v),e.lineTo(c+Du(Pe,oe),v),Pe-=oe,Pe>0&&e.lineTo(c+oe,v+Du(Pe,$t)),Pe-=$t,Pe>0&&e.lineTo(c+Au(oe-Pe,0),v+$t),Pe-=oe,Pe>0&&e.lineTo(c,v+Au($t-Pe,0));break e}p+=M}e.rect(c,v,oe,$t);break;case he.Z:if(h){var M=d[m++];if(p+M>y){var I=(y-p)/M;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break e}p+=M}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.prototype.canSave=function(){return!!this._saveData},t.CMD=he,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function ei(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 VC(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 v=lC(t,e,r,n,i,a,o,s,u,f);return v<=c/2}function UC(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=cC(t,e,r,n,i,a,s,l);return f<=u/2}var kd=Math.PI*2;function Oo(t){return t%=kd,t<0&&(t+=kd),t}var Gi=Math.PI*2;function WC(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)%Gi<1e-4)return!0;if(a){var c=n;n=Oo(i),i=Oo(c)}else n=Oo(n),i=Oo(i);n>i&&(i+=Gi);var v=Math.atan2(l,s);return v<0&&(v+=Gi),v>=n&&v<=i||v+Gi>=n&&v+Gi<=i}function xr(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 Pr=Di.CMD,yn=Math.PI*2,jC=1e-4;function YC(t,e){return Math.abs(t-e)<jC}var $e=[-1,-1,-1],Ct=[-1,-1];function $C(){var t=Ct[0];Ct[0]=Ct[1],Ct[1]=t}function qC(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=l0(e,n,a,s,u,$e);if(f===0)return 0;for(var c=0,v=-1,h=void 0,d=void 0,g=0;g<f;g++){var p=$e[g],m=p===0||p===1?.5:1,y=Ze(t,r,i,o,p);y<l||(v<0&&(v=u0(e,n,a,s,Ct),Ct[1]<Ct[0]&&v>1&&$C(),h=Ze(e,n,a,s,Ct[0]),v>1&&(d=Ze(e,n,a,s,Ct[1]))),v===2?p<Ct[0]?c+=h<e?m:-m:p<Ct[1]?c+=d<h?m:-m:c+=s<d?m:-m:p<Ct[0]?c+=h<e?m:-m:c+=s<h?m:-m)}return c}function XC(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=fC(e,n,a,s,$e);if(l===0)return 0;var u=f0(e,n,a);if(u>=0&&u<=1){for(var f=0,c=it(e,n,a,u),v=0;v<l;v++){var h=$e[v]===0||$e[v]===1?.5:1,d=it(t,r,i,$e[v]);d<o||($e[v]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=$e[0]===0||$e[0]===1?.5:1,d=it(t,r,i,$e[0]);return d<o?0:a<e?h:-h}}function ZC(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);$e[0]=-l,$e[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=yn-1e-4){n=0,i=yn;var f=a?1:-1;return o>=$e[0]+t&&o<=$e[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=yn,i+=yn);for(var v=0,h=0;h<2;h++){var d=$e[h];if(d+t>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=yn+g),(g>=n&&g<=i||g+yn>=n&&g+yn<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),v+=f)}}return v}function _0(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,v,h,d=0;d<o;){var g=a[d++],p=d===1;switch(g===Pr.M&&d>1&&(r||(s+=xr(l,u,f,c,n,i))),p&&(l=a[d],u=a[d+1],f=l,c=u),g){case Pr.M:f=a[d++],c=a[d++],l=f,u=c;break;case Pr.L:if(r){if(ei(l,u,a[d],a[d+1],e,n,i))return!0}else s+=xr(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pr.C:if(r){if(VC(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=qC(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pr.Q:if(r){if(UC(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=XC(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pr.A:var m=a[d++],y=a[d++],_=a[d++],b=a[d++],S=a[d++],x=a[d++];d+=1;var w=!!(1-a[d++]);v=Math.cos(S)*_+m,h=Math.sin(S)*b+y,p?(f=v,c=h):s+=xr(l,u,v,h,n,i);var T=(n-m)*b/_+m;if(r){if(WC(m,y,b,S,S+x,w,e,T,i))return!0}else s+=ZC(m,y,b,S,S+x,w,T,i);l=Math.cos(S+x)*_+m,u=Math.sin(S+x)*b+y;break;case Pr.R:f=l=a[d++],c=u=a[d++];var D=a[d++],A=a[d++];if(v=f+D,h=c+A,r){if(ei(f,c,v,c,e,n,i)||ei(v,c,v,h,e,n,i)||ei(v,h,f,h,e,n,i)||ei(f,h,f,c,e,n,i))return!0}else s+=xr(v,c,v,h,n,i),s+=xr(f,h,f,c,n,i);break;case Pr.Z:if(r){if(ei(l,u,f,c,e,n,i))return!0}else s+=xr(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!YC(u,c)&&(s+=xr(l,u,f,c,n,i)||0),s!==0}function KC(t,e,r){return _0(t,0,!1,e,r)}function QC(t,e,r,n){return _0(t,e,!0,r,n)}var b0=de({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Hn),JC={style:de({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},zl.style)},Iu=Oa.concat(["invisible","culling","z","z2","zlevel","parent"]),pe=(function(t){G(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<Iu.length;++s)i[Iu[s]]=this[Iu[s]];i.__dirty|=vt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=be(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?B(this.style,s):this.useStyle(s):o==="shape"?B(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(Y(r)){var n=Na(r,0);return n>.5?fc:n>.2?RC:cc}else if(r)return cc}return fc},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Y(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Na(r,0)<uc;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~di},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 Di(!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&di)&&(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)),QC(s,l/u,r,n)))return!0}if(this.hasFill())return KC(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=di,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:B(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&di)},e.prototype.createStyle=function(r){return so(b0,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=B({},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=B({},i.shape),B(u,n.shape)):(u=B({},a?this.shape:i.shape),B(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=B({},this.shape);for(var f={},c=be(u),v=0;v<c.length;v++){var h=c[v];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}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 JC},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){G(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=vt|ha|di})(),e})(uo),eM=de({strokeFirst:!0,font:Kr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},b0),$s=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return t0(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return so(eM,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=KT(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(uo);$s.prototype.type="tspan";var tM=de({x:0,y:0},Hn),rM={style:de({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},zl.style)};function nM(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Mr=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return so(tM,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=nM(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 rM},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new te(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(uo);Mr.prototype.type="image";function iM(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 gi=Math.round;function S0(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&&(gi(n*2)===gi(i*2)&&(t.x1=t.x2=Pn(n,s,!0)),gi(a*2)===gi(o*2)&&(t.y1=t.y2=Pn(a,s,!0))),t}}function x0(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=Pn(n,s,!0),t.y=Pn(i,s,!0),t.width=Math.max(Pn(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Pn(i+o,s,!1)-t.y,o===0?0:1)),t}}function Pn(t,e,r){if(!e)return t;var n=gi(t*2);return(n+gi(e))%2===0?n/2:(n+(r?1:-1))/2}var aM=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),oM={},Ce=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new aM},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=x0(oM,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?iM(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(pe);Ce.prototype.type="rect";var Nd={fill:"#000"},Bd=2,Kt={},sM={style:de({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},zl.style)},We=(function(t){G(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Nd,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,hM(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 te(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||Nd},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return B(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=be(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},B(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return sM},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||Kr,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";yd(Kt,a.overflowRect,o,s,l,u),o=Kt.baseX,s=Kt.baseY;var f=Wd(r),c=WT(f,r,Kt.outerWidth,Kt.outerHeight),v=Pu(r),h=!!r.backgroundColor,d=c.outerHeight,g=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Fn(s,c.contentHeight,u);if(v||i){var b=Mi(o,g,l),S=Fn(s,d,u);v&&this._renderBackground(r,r,b,S,g,d)}_+=m/2,i&&(y=Ud(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var x=0,w=!1,T=!1,D=Vd("fill"in r?r.fill:(T=!0,a.fill)),A=Gd("stroke"in r?r.stroke:!h&&(!a.autoStroke||T)?(x=Bd,w=!0,a.stroke):null),M=r.textShadowBlur>0,I=0;I<p.length;I++){var L=this._getOrCreateChild($s),R=L.createStyle();L.useStyle(R),R.text=p[I],R.x=y,R.y=_,R.textAlign=l,R.textBaseline="middle",R.opacity=r.opacity,R.strokeFirst=!0,M&&(R.shadowBlur=r.textShadowBlur||0,R.shadowColor=r.textShadowColor||"transparent",R.shadowOffsetX=r.textShadowOffsetX||0,R.shadowOffsetY=r.textShadowOffsetY||0),R.stroke=A,R.fill=D,A&&(R.lineWidth=r.lineWidth||x,R.lineDash=r.lineDash,R.lineDashOffset=r.lineDashOffset||0),R.font=n,zd(R,r),_+=m,L.setBoundingRect(Jf(R,c.contentWidth,c.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;yd(Kt,n.overflowRect,o,s,i,a),o=Kt.baseX,s=Kt.baseY;var l=Wd(r),u=$T(l,r,Kt.outerWidth,Kt.outerHeight,i),f=u.width,c=u.outerWidth,v=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Mi(o,c,i),g=Fn(s,v,a),p=d,m=g;h&&(p+=h[3],m+=h[0]);var y=p+f;Pu(r)&&this._renderBackground(r,r,d,g,c,v);for(var _=!!r.backgroundColor,b=0;b<u.lines.length;b++){for(var S=u.lines[b],x=S.tokens,w=x.length,T=S.lineHeight,D=S.width,A=0,M=p,I=y,L=w-1,R=void 0;A<w&&(R=x[A],!R.align||R.align==="left");)this._placeToken(R,r,T,m,M,"left",_),D-=R.width,M+=R.width,A++;for(;L>=0&&(R=x[L],R.align==="right");)this._placeToken(R,r,T,m,I,"right",_),D-=R.width,I-=R.width,L--;for(M+=(f-(M-p)-(y-I)-D)/2;A<=L;)R=x[A],this._placeToken(R,r,T,m,M+R.width/2,"center",_),M+=R.width,A++;m+=T}},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 v=!r.isLineHolder&&Pu(u);v&&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 h=!!u.backgroundColor,d=r.textPadding;d&&(o=Ud(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild($s),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,b=!1,S=Vd("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),x=Gd("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=Bd,b=!0,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,w&&(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||Kr,p.opacity=Yr(u.opacity,n.opacity,1),zd(p,u),x&&(p.lineWidth=Yr(u.lineWidth,n.lineWidth,_),p.lineDash=Z(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=x),S&&(p.fill=S),g.setBoundingRect(Jf(p,r.contentWidth,r.contentHeight,b?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this,g,p;if(v||r.lineHeight||u&&f){g=this._getOrCreateChild(Ce),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=h,g.dirtyShape()}if(v){var y=g.style;y.fill=l||null,y.fillOpacity=Z(r.fillOpacity,1)}else if(c){p=this._getOrCreateChild(Mr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=g.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Z(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.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=Yr(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return cM(r)&&(n=[r.fontStyle,r.fontWeight,fM(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Gt(n)||r.textFont||r.font},e})(uo),lM={left:!0,right:1,center:1},uM={top:1,bottom:1,middle:1},Fd=["fontStyle","fontWeight","fontSize","fontFamily"];function fM(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?_h+"px":t+"px"}function zd(t,e){for(var r=0;r<Fd.length;r++){var n=Fd[r],i=e[n];i!=null&&(t[n]=i)}}function cM(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function hM(t){return Hd(t),C(t.rich,Hd),t}function Hd(t){if(t){t.font=We.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||lM[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||uM[r]?r:"top";var n=t.padding;n&&(t.padding=Pl(t.padding))}}function Gd(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Vd(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Ud(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Wd(t){var e=t.text;return e!=null&&(e+=""),e}function Pu(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var jd=1e-4,w0=20;function vM(t){return t.replace(/^\s+|\s+$/g,"")}var Ba=Math.min,pt=Math.max,rr=Math.abs;function qs(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}var _e=dM;function dM(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return dc(t,e,r)}function dc(t,e,r){return Y(t)?vM(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function Ue(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),w0),t=(+t).toFixed(e),r?t:+t}function pM(t){return t.sort(function(e,r){return e-r}),t}function Ai(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 T0(t)}function T0(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 C0(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(rr(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function gM(t,e,r){if(!t[e])return 0;var n=M0(t,r);return n[e]||0}function M0(t,e){var r=lr(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=q(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=q(i,function(h){return Math.floor(h)}),s=lr(o,function(h,d){return h+d},0),l=q(i,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return q(o,function(h){return h/n})}function mM(t,e){var r=Math.max(Ai(t),Ai(e)),n=t+e;return r>w0?n:Ue(n,r)}var yM=9007199254740991;function Ih(t){var e=Math.PI*2;return(t%e+e)%e}function Fa(t){return t>-jd&&t<jd}var _M=/^(?:(\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 Dr(t){if(t instanceof Date)return t;if(Y(t)){var e=_M.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 D0(t){return Math.pow(10,Hl(t))}function Hl(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Ph(t,e){var r=Hl(t),n=Math.pow(10,r),i=t/n,a;return e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function bM(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function SM(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var i=t[n].interval,a=t[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-r),e=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function za(t){var e=parseFloat(t);return e==t&&(e!==0||!Y(t)||t.indexOf("x")<=0)?e:NaN}function A0(t){return!isNaN(za(t))}function L0(){return Math.round(Math.random()*9)}function R0(t,e){return e===0?t:R0(e,t%e)}function Yd(t,e){return t==null?e:e==null?t:t*e/R0(t,e)}var xM="[ECharts] ",wM=typeof console<"u"&&console.warn&&console.log;function TM(t,e,r){wM&&console[t](xM+e)}function I0(t,e){TM("error",t)}function at(t){throw new Error(t)}var P0="series\0",CM="\0_ec_\0";function et(t){return t instanceof Array?t:t==null?[]:[t]}function pc(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 $d=["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 fo(t){return $(t)&&!U(t)&&!(t instanceof Date)?t.value:t}function MM(t){return $(t)&&!(t instanceof Array)}function DM(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=ie();C(e,function(l,u){if(!$(l)){e[u]=null;return}});var s=AM(t,o,r);return(n||i)&&LM(s,t,o,e),n&&RM(s,e),n||i?IM(s,e,i):a&&PM(s,e),EM(s),s}function AM(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"||Ha(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function LM(t,e,r,n){C(n,function(i,a){if(!(!i||i.id==null)){var o=xa(i.id),s=r.get(o);if(s!=null){var l=t[s];ur(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function RM(t,e){C(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)&&!Ha(r)&&!Ha(a)&&E0("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function IM(t,e,r){C(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||Ha(i.existing)||i.existing&&n.id!=null&&!E0("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function PM(t,e){C(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function EM(t){var e=ie();C(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),C(t,function(r){var n=r.newOption;ur(!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={})}),C(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if($(a)){if(o.name=a.name!=null?xa(a.name):i?i.name:P0+n,i)o.id=xa(i.id);else if(a.id!=null)o.id=xa(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 E0(t,e,r){var n=ar(e[t],null),i=ar(r[t],null);return n!=null&&i!=null&&n===i}function xa(t){return ar(t,"")}function ar(t,e){return t==null?e:Y(t)?t:ge(t)||Ns(t)?t+"":e}function Eh(t){var e=t.name;return!!(e&&e.indexOf(P0))}function Ha(t){return t&&t.id!=null&&xa(t.id).indexOf(CM)===0}function OM(t,e,r){C(t,function(n){var i=n.newOption;$(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=kM(e,i,n.existing,r))})}function kM(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function co(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return U(e.dataIndex)?q(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return U(e.name)?q(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Se(){var t="__ec_inner_"+NM++;return function(e){return e[t]||(e[t]={})}}var NM=L0();function Eu(t,e,r){var n=Oh(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=ho(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 Oh(t,e){var r;if(Y(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=ie(),a={},o=!1;return C(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&&se(e.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Lt={useDefault:!0,enableAll:!1,enableNone:!1};function ho(t,e,r,n){n=n||Lt;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}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function O0(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function BM(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function FM(t){return t==="auto"?ee.domSupported?"html":"richText":t||"html"}var ce=Se(),zM=function(t,e,r,n){if(n){var i=ce(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ce(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},qd=1,Xd={},k0=Se(),kh=Se(),N0=0,Nh=1,Bh=2,fr=["emphasis","blur","select"],Xs=["normal","emphasis","blur","select"],HM=10,GM=9,Gn="highlight",ws="downplay",Zs="select",gc="unselect",Ks="toggleSelect",Fh="selectchanged";function ti(t){return t!=null&&t!=="none"}function Gl(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function B0(t){Gl(t,"emphasis",Bh)}function F0(t){t.hoverState===Bh&&Gl(t,"normal",N0)}function zh(t){Gl(t,"blur",Nh)}function z0(t){t.hoverState===Nh&&Gl(t,"normal",N0)}function VM(t){t.selected=!0}function UM(t){t.selected=!1}function Zd(t,e,r){e(t,r)}function Ar(t,e,r){Zd(t,e,r),t.isGroup&&t.traverse(function(n){Zd(n,e,r)})}function WM(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 jM(t,e,r,n){var i=r&&se(r,"select")>=0,a=!1;if(t instanceof pe){var o=k0(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ti(s)||ti(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=B({},n),u=B({},u),u.fill=s):!ti(u.fill)&&ti(s)?(a=!0,n=B({},n),u=B({},u),u.fill=ac(s)):!ti(u.stroke)&&ti(l)&&(a||(n=B({},n),u=B({},u)),u.stroke=ac(l)),n.style=u}}if(n&&n.z2==null){a||(n=B({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??HM)}return n}function YM(t,e,r){if(r&&r.z2==null){r=B({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??GM)}return r}function $M(t,e,r){var n=se(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:WM(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=B({},r),o=B({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ou(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return jM(this,t,e,r);if(t==="blur")return $M(this,t,r);if(t==="select")return YM(this,t,r)}return r}function qM(t){t.stateProxy=Ou;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Ou),r&&(r.stateProxy=Ou)}function Kd(t,e){!U0(t,e)&&!t.__highByOuter&&Ar(t,B0)}function Qd(t,e){!U0(t,e)&&!t.__highByOuter&&Ar(t,F0)}function Qs(t,e){t.__highByOuter|=1<<(e||0),Ar(t,B0)}function Js(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Ar(t,F0)}function XM(t){Ar(t,zh)}function H0(t){Ar(t,z0)}function G0(t){Ar(t,VM)}function V0(t){Ar(t,UM)}function U0(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function W0(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=kh(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){z0(u)}),s&&r.push(a)),o.isBlured=!1}),C(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function mc(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&H0(v)}}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 v=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||e==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(p){p.__highByOuter&&f&&e==="self"||zh(p)}),tt(e))a(u.getData(),e);else if($(e))for(var d=be(e),g=0;g<d.length;g++)a(u.getData(d[g]),e[d[g]]);l.push(u),kh(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 yc(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){kh(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){zh(a)})}}}function ZM(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=co(i,e);a=(U(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=ce(o);mc(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&mc(n,f,c,r)}}}function Hh(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(ce(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function KM(t,e,r){var n=ce(t),i=Hh(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&yc(n.componentMainType,n.componentIndex,r),C(a,function(s){return Kd(s,e)})):(mc(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&yc(n.componentMainType,n.componentIndex,r),Kd(t,e))}function QM(t,e,r){W0(r);var n=ce(t),i=Hh(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?C(i,function(a){return Qd(a,e)}):Qd(t,e)}function JM(t,e,r){if(bc(e)){var n=e.dataType,i=t.getData(n),a=co(i,e);U(a)||(a=[a]),t[e.type===Ks?"toggleSelect":e.type===Zs?"select":"unselect"](a,n)}}function Jd(t){var e=t.getAllData();C(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?G0(a):V0(a)})})}function eD(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();C(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 el(t,e,r){Y0(t,!0),Ar(t,qM),rD(t,e,r)}function tD(t){Y0(t,!1)}function Gh(t,e,r,n){n?tD(t):el(t,e,r)}function rD(t,e,r){var n=ce(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var ep=["emphasis","blur","select"],nD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function j0(t,e,r,n){r=r||"itemStyle";for(var i=0;i<ep.length;i++){var a=ep[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[nD[r]]()}}function Y0(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 _c(t){return!!(t&&t.__highDownDispatcher)}function iD(t){var e=Xd[t];return e==null&&qd<=32&&(e=Xd[t]=qd++),e}function bc(t){var e=t.type;return e===Zs||e===gc||e===Ks}function tp(t){var e=t.type;return e===Gn||e===ws}function aD(t){var e=k0(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 ri=Di.CMD,oD=[[],[],[]],rp=Math.sqrt,sD=Math.atan2;function lD(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=ri.M,c=ri.C,v=ri.L,h=ri.R,d=ri.A,g=ri.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case c:a=3;break;case g:a=2;break;case d:var p=e[4],m=e[5],y=rp(e[0]*e[0]+e[1]*e[1]),_=rp(e[2]*e[2]+e[3]*e[3]),b=sD(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=p,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Je(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Je(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=oD[l];S[0]=r[o++],S[1]=r[o++],Je(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var ku=Math.sqrt,ko=Math.sin,No=Math.cos,Vi=Math.PI;function np(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Sc(t,e){return(t[0]*e[0]+t[1]*e[1])/(np(t)*np(e))}function ip(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Sc(t,e))}function ap(t,e,r,n,i,a,o,s,l,u,f){var c=l*(Vi/180),v=No(c)*(t-r)/2+ko(c)*(e-n)/2,h=-1*ko(c)*(t-r)/2+No(c)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=ku(d),s*=ku(d));var g=(i===a?-1:1)*ku((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,p=g*o*h/s,m=g*-s*v/o,y=(t+r)/2+No(c)*p-ko(c)*m,_=(e+n)/2+ko(c)*p+No(c)*m,b=ip([1,0],[(v-p)/o,(h-m)/s]),S=[(v-p)/o,(h-m)/s],x=[(-1*v-p)/o,(-1*h-m)/s],w=ip(S,x);if(Sc(S,x)<=-1&&(w=Vi),Sc(S,x)>=1&&(w=0),w<0){var T=Math.round(w/Vi*1e6)/1e6;w=Vi*2+T%2*Vi}f.addData(u,y,_,o,s,b,w,c,a)}var uD=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,fD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function cD(t){var e=new Di;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Di.CMD,l=t.match(uD);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(fD)||[],d=h.length,g=0;g<d;g++)h[g]=parseFloat(h[g]);for(var p=0;p<d;){var m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,x=void 0,w=void 0,T=r,D=n,A=void 0,M=void 0;switch(c){case"l":r+=h[p++],n+=h[p++],v=s.L,e.addData(v,r,n);break;case"L":r=h[p++],n=h[p++],v=s.L,e.addData(v,r,n);break;case"m":r+=h[p++],n+=h[p++],v=s.M,e.addData(v,r,n),i=r,a=n,c="l";break;case"M":r=h[p++],n=h[p++],v=s.M,e.addData(v,r,n),i=r,a=n,c="L";break;case"h":r+=h[p++],v=s.L,e.addData(v,r,n);break;case"H":r=h[p++],v=s.L,e.addData(v,r,n);break;case"v":n+=h[p++],v=s.L,e.addData(v,r,n);break;case"V":n=h[p++],v=s.L,e.addData(v,r,n);break;case"C":v=s.C,e.addData(v,h[p++],h[p++],h[p++],h[p++],h[p++],h[p++]),r=h[p-2],n=h[p-1];break;case"c":v=s.C,e.addData(v,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n),r+=h[p-2],n+=h[p-1];break;case"S":m=r,y=n,A=e.len(),M=e.data,o===s.C&&(m+=r-M[A-4],y+=n-M[A-3]),v=s.C,T=h[p++],D=h[p++],r=h[p++],n=h[p++],e.addData(v,m,y,T,D,r,n);break;case"s":m=r,y=n,A=e.len(),M=e.data,o===s.C&&(m+=r-M[A-4],y+=n-M[A-3]),v=s.C,T=r+h[p++],D=n+h[p++],r+=h[p++],n+=h[p++],e.addData(v,m,y,T,D,r,n);break;case"Q":T=h[p++],D=h[p++],r=h[p++],n=h[p++],v=s.Q,e.addData(v,T,D,r,n);break;case"q":T=h[p++]+r,D=h[p++]+n,r+=h[p++],n+=h[p++],v=s.Q,e.addData(v,T,D,r,n);break;case"T":m=r,y=n,A=e.len(),M=e.data,o===s.Q&&(m+=r-M[A-4],y+=n-M[A-3]),r=h[p++],n=h[p++],v=s.Q,e.addData(v,m,y,r,n);break;case"t":m=r,y=n,A=e.len(),M=e.data,o===s.Q&&(m+=r-M[A-4],y+=n-M[A-3]),r+=h[p++],n+=h[p++],v=s.Q,e.addData(v,m,y,r,n);break;case"A":_=h[p++],b=h[p++],S=h[p++],x=h[p++],w=h[p++],T=r,D=n,r=h[p++],n=h[p++],v=s.A,ap(T,D,r,n,x,w,_,b,S,v,e);break;case"a":_=h[p++],b=h[p++],S=h[p++],x=h[p++],w=h[p++],T=r,D=n,r+=h[p++],n+=h[p++],v=s.A,ap(T,D,r,n,x,w,_,b,S,v,e);break}}(c==="z"||c==="Z")&&(v=s.Z,e.addData(v),r=i,n=a),o=v}return e.toStatic(),e}var $0=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(pe);function q0(t){return t.setData!=null}function X0(t,e){var r=cD(t),n=B({},e);return n.buildPath=function(i){var a=q0(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){lD(r,i),this.dirtyShape()},n}function hD(t,e){return new $0(X0(t,e))}function vD(t,e){var r=X0(t,e),n=(function(i){G(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})($0);return n}function dD(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 pe(e);return o.createPathProxy(),o.buildPath=function(s){if(q0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var ke=(function(t){G(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=se(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=se(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 te(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?(te.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(Fl);ke.prototype.type="group";var pD=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),vo=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new pD},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})(pe);vo.prototype.type="circle";var gD=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),Vl=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new gD},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})(pe);Vl.prototype.type="ellipse";var Z0=Math.PI,Nu=Z0*2,_n=Math.sin,ni=Math.cos,mD=Math.acos,He=Math.atan2,op=Math.abs,wa=Math.sqrt,va=Math.max,Qt=Math.min,Bt=1e-4;function yD(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=c*l-f*u;if(!(v*v<Bt))return v=(f*(e-a)-c*(t-i))/v,[t+v*l,e+v*u]}function Bo(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/wa(s*s+l*l),f=u*l,c=-u*s,v=t+f,h=e+c,d=r+f,g=n+c,p=(v+d)/2,m=(h+g)/2,y=d-v,_=g-h,b=y*y+_*_,S=i-a,x=v*g-d*h,w=(_<0?-1:1)*wa(va(0,S*S*b-x*x)),T=(x*_-y*w)/b,D=(-x*y-_*w)/b,A=(x*_+y*w)/b,M=(-x*y+_*w)/b,I=T-p,L=D-m,R=A-p,O=M-m;return I*I+L*L>R*R+O*O&&(T=A,D=M),{cx:T,cy:D,x0:-f,y0:-c,x1:T*(i/S-1),y1:D*(i/S-1)}}function _D(t){var e;if(U(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 bD(t,e){var r,n=va(e.r,0),i=va(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,v=!!e.clockwise,h=op(u-l),d=h>Nu&&h%Nu;if(d>Bt&&(h=d),!(n>Bt))t.moveTo(f,c);else if(h>Nu-Bt)t.moveTo(f+n*ni(l),c+n*_n(l)),t.arc(f,c,n,l,u,!v),i>Bt&&(t.moveTo(f+i*ni(u),c+i*_n(u)),t.arc(f,c,i,u,l,v));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,x=void 0,w=void 0,T=void 0,D=void 0,A=void 0,M=void 0,I=void 0,L=void 0,R=void 0,O=n*ni(l),k=n*_n(l),j=i*ni(u),N=i*_n(u),H=h>Bt;if(H){var W=e.cornerRadius;W&&(r=_D(W),g=r[0],p=r[1],m=r[2],y=r[3]);var z=op(n-i)/2;if(_=Qt(z,m),b=Qt(z,y),S=Qt(z,g),x=Qt(z,p),D=w=va(_,b),A=T=va(S,x),(w>Bt||T>Bt)&&(M=n*ni(u),I=n*_n(u),L=i*ni(l),R=i*_n(l),h<Z0)){var F=yD(O,k,L,R,M,I,j,N);if(F){var Q=O-F[0],ue=k-F[1],Ie=M-F[0],ct=I-F[1],Ye=1/_n(mD((Q*Ie+ue*ct)/(wa(Q*Q+ue*ue)*wa(Ie*Ie+ct*ct)))/2),ze=wa(F[0]*F[0]+F[1]*F[1]);D=Qt(w,(n-ze)/(Ye+1)),A=Qt(T,(i-ze)/(Ye-1))}}}if(!H)t.moveTo(f+O,c+k);else if(D>Bt){var Ne=Qt(m,D),Me=Qt(y,D),J=Bo(L,R,O,k,n,Ne,v),oe=Bo(M,I,j,N,n,Me,v);t.moveTo(f+J.cx+J.x0,c+J.cy+J.y0),D<w&&Ne===Me?t.arc(f+J.cx,c+J.cy,D,He(J.y0,J.x0),He(oe.y0,oe.x0),!v):(Ne>0&&t.arc(f+J.cx,c+J.cy,Ne,He(J.y0,J.x0),He(J.y1,J.x1),!v),t.arc(f,c,n,He(J.cy+J.y1,J.cx+J.x1),He(oe.cy+oe.y1,oe.cx+oe.x1),!v),Me>0&&t.arc(f+oe.cx,c+oe.cy,Me,He(oe.y1,oe.x1),He(oe.y0,oe.x0),!v))}else t.moveTo(f+O,c+k),t.arc(f,c,n,l,u,!v);if(!(i>Bt)||!H)t.lineTo(f+j,c+N);else if(A>Bt){var Ne=Qt(g,A),Me=Qt(p,A),J=Bo(j,N,M,I,i,-Me,v),oe=Bo(O,k,L,R,i,-Ne,v);t.lineTo(f+J.cx+J.x0,c+J.cy+J.y0),A<T&&Ne===Me?t.arc(f+J.cx,c+J.cy,A,He(J.y0,J.x0),He(oe.y0,oe.x0),!v):(Me>0&&t.arc(f+J.cx,c+J.cy,Me,He(J.y0,J.x0),He(J.y1,J.x1),!v),t.arc(f,c,i,He(J.cy+J.y1,J.cx+J.x1),He(oe.cy+oe.y1,oe.cx+oe.x1),v),Ne>0&&t.arc(f+oe.cx,c+oe.cy,Ne,He(oe.y1,oe.x1),He(oe.y0,oe.x0),!v))}else t.lineTo(f+j,c+N),t.arc(f,c,i,u,l,v)}t.closePath()}}}var SD=(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})(),Lr=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new SD},e.prototype.buildPath=function(r,n){bD(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(pe);Lr.prototype.type="sector";var xD=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),Ul=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new xD},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})(pe);Ul.prototype.type="ring";function wD(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 v=0,h=t.length;v<h;v++)zr(f,f,t[v]),Hr(c,c,t[v]);zr(f,f,n[0]),Hr(c,c,n[1])}for(var v=0,h=t.length;v<h;v++){var d=t[v];if(r)l=t[v?v-1:h-1],u=t[(v+1)%h];else if(v===0||v===h-1){i.push(r0(t[v]));continue}else l=t[v-1],u=t[v+1];n0(a,u,l),ms(a,a,e);var g=Hs(d,l),p=Hs(d,u),m=g+p;m!==0&&(g/=m,p/=m),ms(o,a,-g),ms(s,a,p);var y=ec([],d,o),_=ec([],d,s);n&&(Hr(y,y,f),zr(y,y,c),Hr(_,_,f),zr(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function K0(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=wD(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 TD=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Wl=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new TD},e.prototype.buildPath=function(r,n){K0(r,n,!0)},e})(pe);Wl.prototype.type="polygon";var CD=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),ki=(function(t){G(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 CD},e.prototype.buildPath=function(r,n){K0(r,n,!1)},e})(pe);ki.prototype.type="polyline";var MD={},DD=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Cr=(function(t){G(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 DD},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=S0(MD,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})(pe);Cr.prototype.type="line";var nt=[],AD=(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 sp(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?Td:Ze)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Td:Ze)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Cd:it)(t.x1,t.cpx1,t.x2,e),(r?Cd:it)(t.y1,t.cpy1,t.y2,e)]}var jl=(function(t){G(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 AD},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,v=n.percent;v!==0&&(r.moveTo(i,a),f==null||c==null?(v<1&&(Ws(i,l,o,v,nt),l=nt[1],o=nt[2],Ws(a,u,s,v,nt),u=nt[1],s=nt[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(Us(i,l,f,o,v,nt),l=nt[1],f=nt[2],o=nt[3],Us(a,u,c,s,v,nt),u=nt[1],c=nt[2],s=nt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return sp(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=sp(this.shape,r,!0);return i0(n,n)},e})(pe);jl.prototype.type="bezier-curve";var LD=(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})(),po=(function(t){G(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 LD},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})(pe);po.prototype.type="arc";var Q0=(function(t){G(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),pe.prototype.getBoundingRect.call(this)},e})(pe),J0=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),e_=(function(t){G(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})(J0),t_=(function(t){G(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})(J0),Bu=Math.min,RD=Math.max,Fo=Math.abs,bn=[0,0],Sn=[0,0],Oe=qy(),zo=Oe.minTv,Ho=Oe.maxTv,r_=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new re;for(var n=0;n<2;n++)this._axes[n]=new re;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);re.sub(i[0],n[1],n[0]),re.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,n){var i=!0,a=!r;return r&&re.set(r,0,0),Oe.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!Oe.negativeSize&&re.copy(r,i?Oe.useDir?Oe.dirMinTv:zo:Ho),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,bn),e._getProjMinMaxOnAxis(o,r._corners,Sn),Oe.negativeSize||bn[1]<Sn[0]||bn[0]>Sn[1]){if(a=!1,Oe.negativeSize||n)return a;var l=Fo(Sn[0]-bn[1]),u=Fo(bn[0]-Sn[1]);Bu(l,u)>Ho.len()&&(l<u?re.scale(Ho,s,-l*i):re.scale(Ho,s,u*i))}else if(!n){var l=Fo(Sn[0]-bn[1]),u=Fo(bn[0]-Sn[1]);(Oe.useDir||Bu(l,u)<zo.len())&&((l<u||!Oe.bidirectional)&&(re.scale(zo,s,l*i),Oe.useDir&&Oe.calcDirMTV()),(l>=u||!Oe.bidirectional)&&(re.scale(zo,s,-u*i),Oe.useDir&&Oe.calcDirMTV()))}}return a},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=Bu(f,s),l=RD(f,l)}n[0]=s+Oe.touchThreshold,n[1]=l-Oe.touchThreshold,Oe.negativeSize=n[1]<n[0]},t})(),ID=[],n_=(function(t){G(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 te(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(ID)),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})(uo),PD=Se();function ED(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=Z(n.duration,200),f=Z(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)),ne(c)&&(c=c(r,i)),ne(u)&&(u=u(r));var v={duration:u||0,delay:c,easing:f};return v}else return null}function Vh(t,e,r,n,i,a,o){var s=!1,l;ne(i)?(o=a,a=i,i=null):$(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=ED(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function ut(t,e,r,n,i,a){Vh("update",t,e,r,n,i,a)}function or(t,e,r,n,i,a){Vh("enter",t,e,r,n,i,a)}function Ta(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 tl(t,e,r,n,i,a){Ta(t)||Vh("leave",t,e,r,n,i,a)}function lp(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),tl(t,{style:{opacity:0}},e,r,n)}function Ca(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||lp(i,e,r,n)}):lp(t,e,r,n)}function Uh(t){PD(t).oldStyle=t.style}var xc={},Fr=["x","y"],Li=["width","height"];function i_(t){return pe.extend(t)}var OD=vD;function a_(t,e){return OD(t,e)}function Ot(t,e){xc[t]=e}function o_(t){if(xc.hasOwnProperty(t))return xc[t]}function Yl(t,e,r,n){var i=hD(t,e);return r&&(n==="center"&&(r=s_(r,i.getBoundingRect())),jh(i,r)),i}function Wh(t,e,r){var n=new Mr({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(s_(e,a))}}});return n}function s_(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 l_=dD;function jh(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Ga(t,e){return S0(t,t,{lineWidth:e}),t}function kD(t,e){return x0(t,t,e),t}var ND=Pn;function u_(t,e){for(var r=lo([]);t&&t!==e;)Bn(r,t.getLocalTransform(),r),t=t.parent;return r}function Yh(t,e,r){return e&&!tt(e)&&(e=Lh.getLocalTransform(e)),r&&(e=Yn([],e)),Je([],t,e)}function BD(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:rr(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:rr(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=Yh(a,e,r),rr(a[0])>rr(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function up(t){return!t.isGroup}function FD(t){return t.shape!=null}function f_(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){up(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return FD(o)&&(s.shape=ae(o.shape)),s}var a=n(t);e.traverse(function(o){if(up(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),ut(o,l,r,ce(o).dataIndex)}}})}function c_(t,e){return q(t,function(r){var n=r[0];n=pt(n,e.x),n=Ba(n,e.x+e.width);var i=r[1];return i=pt(i,e.y),i=Ba(i,e.y+e.height),[n,i]})}function h_(t,e){var r=pt(t.x,e.x),n=Ba(t.x+t.width,e.x+e.width),i=pt(t.y,e.y),a=Ba(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 $l(t,e,r){var n=B({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),de(i,r),new Mr(n)):Yl(t.replace("path://",""),n,r,"center")}function zD(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(v_(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function v_(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=Fu(f,c,l,u);if(HD(v))return!1;var h=t-i,d=e-a,g=Fu(h,d,l,u)/v;if(g<0||g>1)return!1;var p=Fu(h,d,f,c)/v;return!(p<0||p>1)}function Fu(t,e,r,n){return t*n-r*e}function HD(t){return t<=1e-6&&t>=-1e-6}function rl(t,e,r,n,i){return e==null||(ge(e)?me[0]=me[1]=me[2]=me[3]=e:(me[0]=e[0],me[1]=e[1],me[2]=e[2],me[3]=e[3]),n&&(me[0]=pt(0,me[0]),me[1]=pt(0,me[1]),me[2]=pt(0,me[2]),me[3]=pt(0,me[3])),r&&(me[0]=-me[0],me[1]=-me[1],me[2]=-me[2],me[3]=-me[3]),fp(t,me,"x","width",3,1,i&&i[0]||0),fp(t,me,"y","height",0,2,i&&i[1]||0)),t}var me=[0,0,0,0];function fp(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=pt(0,Ba(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:rr(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function ql(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=Y(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&&C(be(l),function(f){It(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ce(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:de({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function wc(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Xl(t,e){if(t)if(U(t))for(var r=0;r<t.length;r++)wc(t[r],e);else wc(t,e)}function $h(t){return!t||rr(t[1])<Go&&rr(t[2])<Go||rr(t[0])<Go&&rr(t[3])<Go}var Go=1e-5;function Va(t,e){return t?te.copy(t,e):e.clone()}function qh(t,e){return e?kl(t||Vt(),e):void 0}function d_(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function GD(t){var e=-1/0,r=1/0;wc(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function p_(t,e,r){g_(t,e,r,-1/0)}function g_(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=pt(g_(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=pt(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}Ot("circle",vo);Ot("ellipse",Vl);Ot("sector",Lr);Ot("ring",Ul);Ot("polygon",Wl);Ot("polyline",ki);Ot("rect",Ce);Ot("line",Cr);Ot("bezierCurve",jl);Ot("arc",po);const VD=Object.freeze(Object.defineProperty({__proto__:null,Arc:po,BezierCurve:jl,BoundingRect:te,Circle:vo,CompoundPath:Q0,Ellipse:Vl,Group:ke,Image:Mr,IncrementalDisplayable:n_,Line:Cr,LinearGradient:e_,OrientedBoundingRect:r_,Path:pe,Point:re,Polygon:Wl,Polyline:ki,RadialGradient:t_,Rect:Ce,Ring:Ul,Sector:Lr,Text:We,WH:Li,XY:Fr,applyTransform:Yh,calcZ2Range:GD,clipPointsByRect:c_,clipRectByRect:h_,createIcon:$l,ensureCopyRect:Va,ensureCopyTransform:qh,expandOrShrinkRect:rl,extendPath:a_,extendShape:i_,getShapeClass:o_,getTransform:u_,groupTransition:f_,initProps:or,isBoundingRectAxisAligned:$h,isElementRemoved:Ta,lineLineIntersect:v_,linePolygonIntersect:zD,makeImage:Wh,makePath:Yl,mergePath:l_,registerShape:Ot,removeElement:tl,removeElementWithFadeOut:Ca,resizePath:jh,retrieveZInfo:d_,setTooltipConfig:ql,subPixelOptimize:ND,subPixelOptimizeLine:Ga,subPixelOptimizeRect:kD,transformDirection:BD,traverseElements:Xl,traverseUpdateZ:p_,updateProps:ut},Symbol.toStringTag,{value:"Module"}));var Zl={};function UD(t,e){for(var r=0;r<fr.length;r++){var n=fr[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 cp(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=ne(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<fr.length;u++){var f=fr[u],c=e[f];l[f]=Z(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Kl(t,e,r,n){r=r||Zl;for(var i=t instanceof We,a=!1,o=0;o<Xs.length;o++){var s=e[Xs[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new We,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=cp(r,e),f=e.normal,c=!!f.getShallow("show"),v=jn(f,n,r,!1,!i);v.text=u.normal,i||t.setTextConfig(hp(f,r,!1));for(var o=0;o<fr.length;o++){var h=fr[o],s=e[h];if(s){var d=l.ensureState(h),g=!!Z(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=jn(s,n,r,!0,!i),d.style.text=u[h],!i){var p=t.ensureState(h);p.textConfig=hp(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),r.enableTextSetter&&(Xh(l).setLabelText=function(m){var y=cp(r,e,m);UD(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Ql(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<fr.length;n++){var i=fr[n];r[i]=t.getModel([i,e])}return r}function jn(t,e,r,n,i){var a={};return WD(a,t,r,n,i),e&&B(a,e),a}function hp(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=Z(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",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function WD(t,e,r,n,i){r=r||Zl;var a=e.ecModel,o=a&&a.option.textStyle,s=jD(e),l;if(s){l={};var u="richInheritPlainLabel",f=Z(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=e.getModel(["rich",c]);gp(l[c]={},v,o,e,f,r,n,i,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var g=t,p=e.get("minMargin");if(p!=null)p=ge(p)?p/2:0,g.margin=[p,p,p,p],g.__marginType=mi.minMargin;else{var m=e.get("textMargin");m!=null&&(g.margin=Pl(m),g.__marginType=mi.textMargin)}gp(t,e,o,null,null,r,n,i,!0,!1)}function jD(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Zl).rich;if(r){e=e||{};for(var n=be(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var vp=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],dp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],pp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gp(t,e,r,n,i,a,o,s,l,u){r=!o&&r||Zl;var f=a&&a.inheritColor,c=e.getShallow("color"),v=e.getShallow("textBorderColor"),h=Z(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(c=c||r.color,v=v||r.textBorderColor),c!=null&&(t.fill=c),v!=null&&(t.stroke=v);var d=Z(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var g=Z(e.getShallow("textBorderType"),r.textBorderType);g!=null&&(t.lineDash=g);var p=Z(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(t.lineDashOffset=p),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<vp.length;m++){var y=vp[m],_=i!==!1&&n?Yr(e.getShallow(y),n.getShallow(y),r[y]):Z(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<dp.length;m++){var y=dp[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(t.verticalAlign=b)}if(!l||!a.disableBox){for(var m=0;m<pp.length;m++){var y=pp[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function YD(t,e){var r=e&&e.getModel("textStyle");return Gt([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 Xh=Se();function $D(t,e,r,n){if(t){var i=Xh(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}var mi={minMargin:1,textMargin:2},qD=["textStyle","color"],zu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Hu=new We,XD=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(qD):null)},t.prototype.getFont=function(){return YD({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<zu.length;n++)r[zu[n]]=this.getShallow(zu[n]);return Hu.useStyle(r),Hu.update(),Hu.getBoundingRect()},t})(),m_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ZD=Ea(m_),KD=(function(){function t(){}return t.prototype.getLineStyle=function(e){return ZD(this,e)},t})(),y_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],QD=Ea(y_),JD=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return QD(this,e,r)},t})(),ye=(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){le(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(!ee.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})();Ch(ye);AT(ye);Et(ye,KD);Et(ye,JD);Et(ye,ET);Et(ye,XD);function Ui(t){return t==null?0:t.length||1}function mp(t){return t}var eA=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||mp,this._newKeyGetter=i||mp,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=Ui(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=Ui(u),v=Ui(f);if(c>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);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=Ui(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=Ui(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),__=ie(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),_t="original",je="arrayRows",kt="objectRows",Yt="keyedColumns",Xr="typedArray",b_="unknown",sr="column",qn="row",Be={Must:1,Might:2,Not:3},S_=Se();function tA(t){S_(t).datasetMap=ie()}function rA(t,e,r){var n={},i=Zh(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=S_(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),C(t,function(g,p){var m=$(g)?g:t[p]={name:g};m.type==="ordinal"&&f==null&&(f=p,c=d(m)),n[m.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});C(t,function(g,p){var m=g.name,y=d(g);if(f==null){var _=v.valueWayDim;h(n[m],_,y),h(o,_,y),v.valueWayDim+=y}else if(f===p)h(n[m],0,y),h(a,0,y);else{var _=v.categoryWayDim;h(n[m],_,y),h(o,_,y),v.categoryWayDim+=y}});function h(g,p,m){for(var y=0;y<m;y++)g.push(p+y)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function nA(t,e,r){var n={},i=Zh(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===kt||a===Yt)&&C(o,function(f,c){($(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var g=w_(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);v.push(g);var p=g===Be.Not;if(p&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!p&&v[f.n]===Be.Not)&&(f.n=h),m(f)&&v[f.n]!==Be.Not)return f;p||(g===Be.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(c)?c:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Zh(t){var e=t.get("data",!0);if(!e)return ho(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Lt).models[0]}function iA(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:ho(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Lt).models}function x_(t,e){return w_(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function w_(t,e,r,n,i,a){var o,s=5;if(rt(t))return Be.Not;var l,u;if(n){var f=n[a];$(f)?(l=f.name,u=f.type):Y(f)&&(l=f)}if(u!=null)return u==="ordinal"?Be.Must:Be.Not;if(e===je){var c=t;if(r===qn){for(var v=c[a],h=0;h<(v||[]).length&&h<s;h++)if((o=b(v[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[i+h];if(d&&(o=b(d[a]))!=null)return o}}else if(e===kt){var g=t;if(!l)return Be.Not;for(var h=0;h<g.length&&h<s;h++){var p=g[h];if(p&&(o=b(p[l]))!=null)return o}}else if(e===Yt){var m=t;if(!l)return Be.Not;var v=m[l];if(!v||rt(v))return Be.Not;for(var h=0;h<v.length&&h<s;h++)if((o=b(v[h]))!=null)return o}else if(e===_t)for(var y=t,h=0;h<y.length&&h<s;h++){var p=y[h],_=fo(p);if(!U(_))return Be.Not;if((o=b(_[a]))!=null)return o}function b(S){var x=Y(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return x?Be.Might:Be.Not;if(x&&S!=="-")return Be.Must}return Be.Not}var Jl=(function(){function t(e){this.data=e.data||(e.sourceFormat===Yt?{}:[]),this.sourceFormat=e.sourceFormat||b_,this.seriesLayoutBy=e.seriesLayoutBy||sr,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&&x_(this,n)===Be.Must&&(i.type="ordinal")}}return t})();function Kh(t){return t instanceof Jl}function Tc(t,e,r){r=r||C_(t);var n=e.seriesLayoutBy,i=oA(t,r,n,e.sourceHeader,e.dimensions),a=new Jl({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:ae(e)});return a}function T_(t){return new Jl({data:t,sourceFormat:rt(t)?Xr:_t})}function aA(t){return new Jl({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:ae(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function C_(t){var e=b_;if(rt(t))e=Xr;else if(U(t)){t.length===0&&(e=je);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(U(i)||rt(i)){e=je;break}else if($(i)){e=kt;break}}}}else if($(t)){for(var a in t)if(It(t,a)&&tt(t[a])){e=Yt;break}}return e}function oA(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:yp(i),startIndex:o,dimensionsDetectedCount:a};if(e===je){var s=t;n==="auto"||n==null?_p(function(u){u!=null&&u!=="-"&&(Y(u)?o==null&&(o=1):o=0)},r,s,10):o=ge(n)?n:n?1:0,!i&&o===1&&(i=[],_p(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===qn?s.length:s[0]?s[0].length:null}else if(e===kt)i||(i=sA(t));else if(e===Yt)i||(i=[],C(t,function(u,f){i.push(f)}));else if(e===_t){var l=fo(t[0]);a=U(l)&&l.length||1}return{startIndex:o,dimensionsDefine:yp(i),dimensionsDetectedCount:a}}function sA(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return be(r)}function yp(t){if(t){var e=ie();return q(t,function(r,n){r=$(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 _p(t,e,r,n){if(e===qn)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 M_(t){var e=t.sourceFormat;return e===kt||e===Yt}var xn,wn,Tn,Cn,bp,Sp,D_=(function(){function t(e,r){var n=Kh(e)?e:T_(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===Xr&&(this._offset=0,this._dimSize=r,this._data=i),Sp(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;Sp=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine,h=bp[Qh(u,f)];if(B(o,h),u===Xr)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=A_(u,f);o.getItem=ve(d,null,s,c,v);var g=L_(u,f);o.count=ve(g,null,s,c,v)}};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,v=0;v<c;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],g=h[1]==null?-1/0:h[1],p=s-o,m=l[v],y=0;y<p;y++){var _=f[y*c+v];m[o+y]=_,_<d&&(d=_),_>g&&(g=_)}h[0]=d,h[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};bp=(e={},e[je+"_"+sr]={pure:!0,appendData:a},e[je+"_"+qn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[kt]={pure:!0,appendData:a},e[Yt]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[_t]={appendData:a},e[Xr]={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})(),Vo=function(t){U(t)||I0("series.data or dataset.source must be an array.")};xn={},xn[je+"_"+sr]=Vo,xn[je+"_"+qn]=Vo,xn[kt]=Vo,xn[Yt]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&I0("dimension name must not be null/undefined.")}},xn[_t]=Vo;var xp=function(t,e,r,n){return t[n]},lA=(wn={},wn[je+"_"+sr]=function(t,e,r,n){return t[n+e]},wn[je+"_"+qn]=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},wn[kt]=xp,wn[Yt]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},wn[_t]=xp,wn);function A_(t,e){var r=lA[Qh(t,e)];return r}var wp=function(t,e,r){return t.length},uA=(Tn={},Tn[je+"_"+sr]=function(t,e,r){return Math.max(0,t.length-e)},Tn[je+"_"+qn]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Tn[kt]=wp,Tn[Yt]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},Tn[_t]=wp,Tn);function L_(t,e){var r=uA[Qh(t,e)];return r}var Gu=function(t,e,r){return t[e]},fA=(Cn={},Cn[je]=Gu,Cn[kt]=function(t,e,r){return t[r]},Cn[Yt]=Gu,Cn[_t]=function(t,e,r){var n=fo(t);return n instanceof Array?n[e]:n},Cn[Xr]=Gu,Cn);function R_(t){var e=fA[t];return e}function Qh(t,e){return t===je?t+"_"+e:t}function Ri(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 R_(a)(n,o,s)}else{var l=n;return a===_t&&(l=fo(n)),l}}}}var cA=(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 hA(t,e){var r={},n=r.encode={},i=ie(),a=[],o=[],s={};C(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var g=h.coordDimIndex;Vu(n,d)[g]=v,h.isExtraCoord||(i.set(d,1),dA(h.type)&&(a[0]=v),Vu(s,d)[g]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}__.each(function(p,m){var y=Vu(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=q(l,function(v){return t.getDimensionInfo(v).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 cA(s,e),r}function Vu(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function vA(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function dA(t){return!(t==="ordinal"||t==="time")}var Ts=(function(){function t(e){this.otherDims={},e!=null&&B(this,e)}return t})();function Cs(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!ge(t)&&t!=null&&t!=="-"&&(t=+Dr(t)),t==null||t===""?NaN:Number(t))}ie({number:function(t){return parseFloat(t)},time:function(t){return+Dr(t)},trim:function(t){return Y(t)?Gt(t):t}});var pA=(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=ge(e)?e:za(e),i=ge(r)?r:za(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Y(e),l=Y(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})(),eu="undefined",gA=typeof Uint32Array===eu?Array:Uint32Array,mA=typeof Uint16Array===eu?Array:Uint16Array,I_=typeof Int32Array===eu?Array:Int32Array,Tp=typeof Float64Array===eu?Array:Float64Array,P_={float:Tp,int:I_,ordinal:Array,number:Array,time:Tp},Uu;function ii(t){return t>65535?gA:mA}function ai(){return[1/0,-1/0]}function yA(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Cp(t,e,r,n,i){var a=P_[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 Cc=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ie()}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=Uu[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],M_(i),this._dimensions=q(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 P_[r||"float"](this._rawCount),this._rawExtent[a]=ai(),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]=ai());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];Cp(n,u,f.type,l,!0)}for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<a;d++){var f=i[d],g=Uu.arrayRows.call(this,e[h]||c,f.property,h,d);n[d][v]=g;var p=o[d];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=q(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=ai()),Cp(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var v=[],h=e;h<r;h++){v=i.getItem(h,v);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(v,u[d],h,d);g[h]=p;var m=l[d];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.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=ii(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=ii(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,v=0;v<i;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var g=c[f][d];h=r(g,v)}else{for(var p=0;p<l;p++)s[p]=c[e[p]][d];s[p]=v,h=r.apply(null,s)}h&&(o[u++]=d)}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=be(e),a=i.length;if(!a)return this;var o=r.count(),s=ii(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],v=e[f][1],h=r._chunks,d=!1;if(!r._indices){var g=0;if(a===1){for(var p=h[i[0]],m=0;m<n;m++){var y=p[m];(y>=c&&y<=v||isNaN(y))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var p=h[i[0]],_=h[i[1]],b=e[i[1]][0],S=e[i[1]][1],m=0;m<n;m++){var y=p[m],x=_[m];(y>=c&&y<=v||isNaN(y))&&(x>=b&&x<=S||isNaN(x))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var w=r.getRawIndex(m),y=h[i[0]][w];(y>=c&&y<=v||isNaN(y))&&(l[u++]=w)}else for(var m=0;m<o;m++){for(var T=!0,w=r.getRawIndex(m),D=0;D<a;D++){var A=i[D],y=h[A][w];(y<e[A][0]||y>e[A][1])&&(T=!1)}T&&(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]]=ai();for(var c=0;c<s;c++){for(var v=e.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var g=r[f],p=d[f],m=u[g],y=i[g];y&&(y[v]=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,v,h=new(ii(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var g=Math.min(d+l,o-1),p=Math.min(d+l*2,o),m=(p+g)/2,y=0,_=g;_<p;_++){var b=this.getRawIndex(_),S=a[b];isNaN(S)||(y+=S)}y/=p-g;var x=d,w=Math.min(d+l,o),T=d-1,D=a[u];f=-1,v=x;for(var A=-1,M=0,_=x;_<w;_++){var b=this.getRawIndex(_),S=a[b];if(isNaN(S)){M++,A<0&&(A=b);continue}c=Math.abs((T-m)*(S-D)-(T-_)*(y-D)),c>f&&(f=c,v=b)}M>0&&M<w-x&&(h[s++]=Math.min(A,v),v=Math.max(A,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,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(ii(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],g=a;f+a>s&&(g=s-f);for(var p=0;p<g;p++){var m=this.getRawIndex(f+p),y=o[m];y<v&&(v=y,c=f+p),y>d&&(d=y,h=f+p)}var _=this.getRawIndex(c),b=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=b):(l[u++]=b,l[u++]=_)}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]=ai(),v=new(ii(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(d+g);s[g]=u[p]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),v[h++]=y}return a._count=h,a._indices=v,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=ai();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&&lr(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?yA(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 Cs(r[a],this._dimensions[a])}Uu={arrayRows:e,objectRows:function(r,n,i,a){return Cs(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Cs(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),_A=Se(),bA={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},E_=(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=N_(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Z(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=M_(this.source),n=!B_(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 v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.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+=bA[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},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 O_(t){return t instanceof E_}function k_(t){for(var e=ie(),r=0;r<(t||[]).length;r++){var n=t[r],i=$(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function N_(t){var e=_A(t);return e.dimNameMap||(e.dimNameMap=k_(t.dimensionsDefine))}function B_(t){return t>30}var Wi=$,Er=q,SA=typeof Int32Array>"u"?Array:Int32Array,xA="e\0\0",Mp=-1,wA=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],TA=["_approximateExtent"],Dp,Uo,ji,Yi,Wu,$i,ju,Jh=(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;O_(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],v=Y(c)?new Ts({name:c}):c instanceof Ts?c:new Ts(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),a[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]);var g=f;ge(v.storeDimIndex)&&(g=v.storeDimIndex),d.itemName===0&&(this._nameDimIdx=g),d.itemId===0&&(this._idDimIdx=g),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ie();C(o,function(m){p.set(a[m].storeDimIndex,m)})}}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(ge(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 Cc&&(a=e),!a){var o=this.dimensions,s=Kh(e)||tt(e)?new D_(e,o.length):e;a=new Cc;var l=Er(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=hA(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&&ju(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!==Xr&&!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===_t;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&MM(c)&&(this.hasItemOption=!0),c){var v=c.name;a[f]==null&&v!=null&&(a[f]=ar(v,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=ar(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)ju(this,f);Dp(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){Wi(e)?B(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=ji(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 Uo(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 U(e)?i.getValues(Er(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)?Mp:i},t.prototype.each=function(e,r,n){ne(e)&&(n=r,r=e,e=[]);var i=n||this,a=Er(Yi(e),this._getStoreDimIndex,this);this._store.each(a,i?ve(r,i):r)},t.prototype.filterSelf=function(e,r,n){ne(e)&&(n=r,r=e,e=[]);var i=n||this,a=Er(Yi(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?ve(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=be(e);return C(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){ne(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=Er(Yi(e),this._getStoreDimIndex,this),s=$i(this);return s._store=this._store.map(o,a?ve(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=Er(Yi(e),this._getStoreDimIndex,this);this._store.modify(o,a?ve(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=$i(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=$i(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=$i(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 ye(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new eA(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Uo(e,n)},function(n){return Uo(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||{},Wi(e)?B(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),U(a)?a=a.slice():Wi(a)&&(a=B({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Wi(r)?B(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Wi(e)?B(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?B(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;zM(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){C(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:Er(this.dimensions,this._getDimInfo,this),this.hostModel)),Wu(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ne(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Il(arguments)))})},t.internalField=(function(){Dp=function(e){var r=e._invertedIndicesMap;C(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new SA(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Mp;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},ji=function(e,r,n){return ar(e._getCategory(r,n),null)},Uo=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=ji(e,e._idDimIdx,r)),n==null&&(n=xA+r),n},Yi=function(e){return U(e)||(e=e!=null?[e]:[]),e},$i=function(e){var r=new t(e._schema?e._schema:Er(e.dimensions,e._getDimInfo,e),e.hostModel);return Wu(r,e),r},Wu=function(e,r){C(wA.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,C(TA,function(n){e[n]=ae(r[n])}),e._calculationInfo=B({},r._calculationInfo)},ju=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=ji(e,a,r)),l==null&&o!=null&&(i[r]=l=ji(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 CA(t,e){return ev(t,e).dimensions}function ev(t,e){Kh(t)||(t=T_(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=ie(),a=[],o=DA(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&B_(o),l=n===t.dimensionsDefine,u=l?N_(t):k_(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=ie(f),v=new I_(o),h=0;h<v.length;h++)v[h]=-1;function d(D){var A=v[D];if(A<0){var M=n[D],I=$(M)?M:{name:M},L=new Ts,R=I.name;R!=null&&u.get(R)!=null&&(L.name=L.displayName=R),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var O=a.length;return v[D]=O,L.storeDimIndex=D,a.push(L),L}return a[A]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(D,A){var M=et(D).slice();if(M.length===1&&!Y(M[0])&&M[0]<0){c.set(A,!1);return}var I=c.set(A,[]);C(M,function(L,R){var O=Y(L)?u.get(L):L;O!=null&&O<o&&(I[R]=O,p(d(O),A,R))})});var g=0;C(r,function(D){var A,M,I,L;if(Y(D))A=D,L={};else{L=D,A=L.name;var R=L.ordinalMeta;L.ordinalMeta=null,L=B({},L),L.ordinalMeta=R,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var O=c.get(A);if(O!==!1){if(O=et(O),!O.length)for(var k=0;k<(M&&M.length||1);k++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&O.push(g++)}C(O,function(j,N){var H=d(j);if(l&&L.type!=null&&(H.type=L.type),p(de(H,L),A,N),H.name==null&&M){var W=M[N];!$(W)&&(W={name:W}),H.name=H.displayName=W.name,H.defaultTooltip=W.defaultTooltip}I&&de(H.otherDims,I)})}});function p(D,A,M){__.get(A)!=null?D.otherDims[A]=M:(D.coordDim=A,D.coordDimIndex=M,i.set(A,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||"value";function S(D){D.name==null&&(D.name=D.coordDim)}if(s)C(a,function(D){S(D)}),a.sort(function(D,A){return D.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),T=w.coordDim;T==null&&(w.coordDim=AA(b,i,_),w.coordDimIndex=0,(!m||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(x_(t,x)===Be.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return MA(a),new E_({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function MA(t){for(var e=ie(),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 DA(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return C(e,function(a){var o;$(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function AA(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 Ms={},Yu={},tu=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Ms),this._normalMasterList=n(Yu);function n(i,a){var o=[];return C(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){C(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Ms[e]=r;return}Yu[e]=r},t.get=function(e){return Yu[e]||Ms[e]},t})();function LA(t){return!!Ms[t]}var Mc={coord:1,coord2:2};function RA(t){F_.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var F_=ie();function IA(t){var e=t.getShallow("coord",!0),r=Mc.coord;if(e==null){var n=F_.get(t.type);n&&n.getCoord2&&(r=Mc.coord2,e=n.getCoord2(t))}return{coord:e,from:r}}var wr={none:0,dataCoordSys:1,boxCoordSys:2};function PA(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=wr.none;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=wr.dataCoordSys,a||(i=wr.none)):n==="box"&&(i=wr.boxCoordSys,!a&&!LA(r)&&(i=wr.none))}return{coordSysType:r,kind:i}}function EA(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=PA(e),o=a.kind,s=a.coordSysType;if(i&&o!==wr.dataCoordSys&&(o=wr.dataCoordSys,s=r),o===wr.none||s!==r)return!1;var l=n(r,e);return l?(o===wr.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var OA=(function(){function t(e){this.coordSysDims=[],this.axisMap=ie(),this.categoryAxisMap=ie(),this.coordSysName=e}return t})();function kA(t){var e=t.get("coordinateSystem"),r=new OA(e),n=NA[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var NA={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Lt).models[0],a=t.getReferringComponents("yAxis",Lt).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),oi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),oi(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Lt).models[0];e.coordSysDims=["single"],r.set("single",i),oi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Lt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),oi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),oi(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();C(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),oi(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Lt).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function oi(t){return t.get("type")==="category"}function z_(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;BA(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,v;if(C(a,function(y,_){Y(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,g=0;C(a,function(y){y.coordDim===h&&g++});var p={name:c,coordDim:h,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:v,coordDim:v,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),m.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(a.push(p),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function BA(t){return!O_(t.schema)}function Ua(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function H_(t,e){return Ua(t,e)?t.getCalculationInfo("stackResultDimension"):e}function FA(t,e){var r=t.get("coordinateSystem"),n=tu.get(r),i;return e&&e.coordSysDims&&(i=q(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=vA(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function zA(t,e,r){var n,i;return r&&C(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 ru(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===_t;var o=kA(e),s=FA(e,o),l=r.useEncodeDefaulter,u=ne(l)?l:l?xe(rA,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=ev(i,f),v=zA(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=z_(e,{schema:c,store:h}),g=new Jh(c,e);g.setCalculationInfo(d);var p=v!=null&&HA(i)?function(m,y,_,b){return b===v?_:this.defaultDimValueGetter(m,y,_,b)}:null;return g.hasItemOption=!1,g.initData(a?i:h,null,p),g}function HA(t){if(t.sourceFormat===_t){var e=GA(t.data||[]);return!U(fo(e))}}function GA(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var VA=Math.round(Math.random()*10);function nu(t){return[t||"",VA++].join("_")}function UA(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=tr(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=tr(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function WA(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,v={};for(C(a,function(y){v[y]=!0});c.length;){var h=c.pop(),d=f[h],g=!!v[h];g&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),C(d.successor,g?m:p)}C(v,function(){var y="";throw new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){v[y]=!0,p(y)}};function r(a){var o={},s=[];return C(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),C(c,function(v){se(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);se(h.successor,v)<0&&h.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 C(a,function(l){se(o,l)>=0&&s.push(l)}),s}}function G_(t,e){return le(le({},t,!0),e,!0)}var jA=Math.log(2);function Dc(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)/jA);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&i||(c+=(h%2?-1:1)*t[r][v]*Dc(t,e-1,f,u,i|d,a),h++)}return a[o]=c,c}function Ap(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=Dc(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)*Dc(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 nl="___zrEVENTSAVED",$u=[];function YA(t,e,r,n,i){return Ac($u,e,n,i,!0)&&Ac(t,r,$u[0],$u[1])}function $A(t,e){t&&r(t),e&&r(e);function r(n){var i=n[nl];i&&(i.clearMarkers&&i.clearMarkers(),delete n[nl])}}function Ac(t,e,r,n,i){if(e.getBoundingClientRect&&ee.domSupported&&!V_(e)){var a=e[nl]||(e[nl]={}),o=qA(e,a),s=XA(o,a,i);if(s)return s(t,r,n),!0}return!1}function qA(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 e.clearMarkers=function(){C(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function XA(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,v=f.left,h=f.top;o.push(v,h),l=l&&a&&v===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?Ap(s,o):Ap(o,s))}function V_(t){return t.nodeName.toUpperCase()==="CANVAS"}var ZA=/([&<>"'])/g,KA={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ke(t){return t==null?"":(t+"").replace(ZA,function(e,r){return KA[r]})}const QA={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:". "}}}},JA={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 il="ZH",tv="EN",Si=tv,Ds={},rv={},U_=ee.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Si).toUpperCase();return t.indexOf(il)>-1?il:Si})():Si;function nv(t,e){t=t.toUpperCase(),rv[t]=new ye(e),Ds[t]=e}function eL(t){if(Y(t)){var e=Ds[t.toUpperCase()]||{};return t===il||t===tv?ae(e):le(ae(e),ae(Ds[Si]),!1)}else return le(ae(t),ae(Ds[Si]),!1)}function tL(t){return rv[t]}function rL(){return rv[Si]}nv(tv,QA);nv(il,JA);var nL=null;function al(){return nL}var iv=1e3,av=iv*60,Ma=av*60,Rt=Ma*24,Lp=Rt*365,iL={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},As={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},aL="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Wo="{yyyy}-{MM}-{dd}",Rp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Wo,hour:Wo+" "+As.hour,minute:Wo+" "+As.minute,second:Wo+" "+As.second,millisecond:aL},Vn=["year","month","day","hour","minute","second","millisecond"],oL=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function sL(t){return!Y(t)&&!ne(t)?lL(t):t}function lL(t){t=t||{};var e={},r=!0;return C(Vn,function(n){r&&(r=t[n]==null)}),C(Vn,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=Vn[s],u=$(a)&&!U(a)?a[l]:a,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):Y(u)?(o=u,f=[o]):(o==null?o=As[n]:iL[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function qe(t,e){return t+="","0000".substr(0,e-t.length)+t}function Da(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function uL(t){return t===Da(t)}function fL(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function go(t,e,r,n){var i=Dr(t),a=i[W_(r)](),o=i[ov(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[sv(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[lv(r)](),c=(f-1)%12+1,v=i[uv(r)](),h=i[fv(r)](),d=i[cv(r)](),g=f>=12?"pm":"am",p=g.toUpperCase(),m=n instanceof ye?n:tL(n||U_)||rL(),y=m.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),S=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,qe(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,qe(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,qe(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,qe(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,qe(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,qe(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,qe(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,qe(d,3)).replace(/{S}/g,d+"")}function cL(t,e,r,n,i){var a=null;if(Y(r))a=r;else if(ne(r)){var o={time:t.time,level:t.time.level},s=al();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=ol(t.value,i);a=r[f][f][0]}}return go(new Date(t.value),a,i,n)}function ol(t,e){var r=Dr(t),n=r[ov(e)]()+1,i=r[sv(e)](),a=r[lv(e)](),o=r[uv(e)](),s=r[fv(e)](),l=r[cv(e)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&a===0,h=v&&i===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function sl(t,e,r){switch(e){case"year":t[j_(r)](0);case"month":t[Y_(r)](1);case"day":t[$_(r)](0);case"hour":t[q_(r)](0);case"minute":t[X_(r)](0);case"second":t[Z_(r)](0)}return t}function W_(t){return t?"getUTCFullYear":"getFullYear"}function ov(t){return t?"getUTCMonth":"getMonth"}function sv(t){return t?"getUTCDate":"getDate"}function lv(t){return t?"getUTCHours":"getHours"}function uv(t){return t?"getUTCMinutes":"getMinutes"}function fv(t){return t?"getUTCSeconds":"getSeconds"}function cv(t){return t?"getUTCMilliseconds":"getMilliseconds"}function hL(t){return t?"setUTCFullYear":"setFullYear"}function j_(t){return t?"setUTCMonth":"setMonth"}function Y_(t){return t?"setUTCDate":"setDate"}function $_(t){return t?"setUTCHours":"setHours"}function q_(t){return t?"setUTCMinutes":"setMinutes"}function X_(t){return t?"setUTCSeconds":"setSeconds"}function Z_(t){return t?"setUTCMilliseconds":"setMilliseconds"}function vL(t,e,r,n,i,a,o,s){var l=new We({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function hv(t){if(!A0(t))return Y(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function vv(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 mo=Pl;function Lc(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Gt(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?Dr(t):t;if(isNaN(+l)){if(s)return"-"}else return go(l,n,r)}if(e==="ordinal")return Ns(t)?i(t):ge(t)&&a(t)?t+"":"-";var u=za(t);return a(u)?hv(u):Ns(t)?i(t):typeof t=="boolean"?t+"":"-"}var Ip=["a","b","c","d","e","f","g"],qu=function(t,e){return"{"+t+(e??"")+"}"};function dv(t,e,r){U(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Ip[a];t=t.replace(qu(o),qu(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(qu(Ip[l],s),r?Ke(u):u)}return t}function K_(t,e){var r=Y(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:'+Ke(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ke(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,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
|
|
14
|
+
yyyy`);var n=Dr(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return t=t.replace("MM",qe(o,2)).replace("M",o).replace("yyyy",a).replace("yy",qe(a%100+"",2)).replace("dd",qe(s,2)).replace("d",s).replace("hh",qe(l,2)).replace("h",l).replace("mm",qe(u,2)).replace("m",u).replace("ss",qe(f,2)).replace("s",f).replace("SSS",qe(c,3)),t}function pL(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Wa(t,e){return e=e||"transparent",Y(t)?t:$(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Ls=C,gL=["left","right","top","bottom","width","height"],jo=[["width","left","right"],["height","top","bottom"]];function pv(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),v=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var g=f.width+(v?-v.x+f.x:0);h=a+g,h>n||l.newline?(a=0,h=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(v?-v.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}var Aa=pv;xe(pv,"vertical");xe(pv,"horizontal");function mL(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function yL(t,e){var r=gv(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===da.point)a=r.refPoint,i=Jr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=U(o)?o:[o,o];i=Jr(n,r.refContainer),a=r.boxCoordFrom===Mc.coord2?r.refPoint:[_e(s[0],i.width)+i.x,_e(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function _L(t,e){var r=yL(t,e),n=r.viewRect,i=r.center,a=t.get("radius");U(a)||(a=[0,a]);var o=_e(n.width,e.getWidth()),s=_e(n.height,e.getHeight()),l=Math.min(o,s),u=_e(a[0],l/2),f=_e(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function Jr(t,e,r){r=mo(r||0);var n=e.width,i=e.height,a=_e(t.left,n),o=_e(t.top,i),s=_e(t.right,n),l=_e(t.bottom,i),u=_e(t.width,n),f=_e(t.height,i),c=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-v),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-v;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-v-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new te((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var da={rect:1,point:2};function gv(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=IA(t),u=l.coord,f=l.from;if(o.dataToLayout){a=da.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=da.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=da.rect),a===da.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function ja(t){var e=t.layoutMode||t.constructor.layoutMode;return $(e)?e:e?{type:e}:null}function en(t,e,r){var n=r&&r.ignoreSize;!U(n)&&(n=[n,n]);var i=o(jo[0],0),a=o(jo[1],1);l(jo[0],t,i),l(jo[1],t,a);function o(u,f){var c={},v=0,h={},d=0,g=2;if(Ls(u,function(y){h[y]=t[y]}),Ls(u,function(y){It(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&v++,s(h,y)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===g||!v)return h;if(v>=g)return c;for(var p=0;p<u.length;p++){var m=u[p];if(!It(c,m)&&It(t,m)){c[m]=t[m];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Ls(u,function(v){f[v]=c[v]})}}function yo(t){return bL({},t)}function bL(t,e){return e&&t&&Ls(gL,function(r){It(e,r)&&(t[r]=e[r])}),t}var SL=Se(),fe=(function(t){G(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=nu("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=ja(this),a=i?yo(r):{},o=n.getTheme();le(r,o.get(this.mainType)),le(r,this.getDefaultOption()),i&&en(r,a,i)},e.prototype.mergeOption=function(r,n){le(this.option,r,!0);var i=ja(this);i&&en(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!CT(r))return r.defaultOption;var n=SL(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=le(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ho(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return mL(this,!1)},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})(ye);Wy(fe,ye);El(fe);UA(fe);WA(fe,xL);function xL(t){var e=[];return C(fe.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=q(e,function(r){return tr(r).main}),t!=="dataset"&&se(e,"dataset")<=0&&e.unshift("dataset"),e}var Pp=Se();Se();var mv=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=et(this.get("color",!0)),a=this.get("colorLayer",!0);return TL(this,Pp,i,a,e,r,n)},t.prototype.clearColorPalette=function(){CL(this,Pp)},t})();function wL(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 TL(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:wL(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 CL(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var ML=/\{@(.+?)\}/g,DL=(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,v=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.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&&U(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ne(a))return l.status=r,l.dimensionIndex=i,a(l);if(Y(a)){var f=dv(a,l);return f.replace(ML,function(c,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var g=Ri(s,e,d);if(o&&U(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return Ri(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function Ep(t){var e,r;return $(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function La(t){return new AL(t)}var AL=(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(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var g=this._progress;if(U(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],h,d,l,u);else this._doProgress(g,h,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;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){Op.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Op.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),U(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})(),Op=(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}})(),LL=(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 Cs(e,r)},t})();function RL(t,e){var r=new LL,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==sr&&at(o);var s=[],l={},u=t.dimensionsDefine;if(u)C(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";It(l,m)&&at(_),l[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=A_(i,sr);e.__isBuiltIn&&(r.getRawDataItem=function(g){return c(n,a,s,g)},r.getRawData=ve(IL,null,t)),r.cloneRawData=ve(PL,null,t);var v=L_(i,sr);r.count=ve(v,null,n,a,s);var h=R_(i);r.retrieveValue=function(g,p){var m=c(n,a,s,g);return d(m,p)};var d=r.retrieveValueFromItem=function(g,p){if(g!=null){var m=s[p];if(m)return h(g,p,m.name)}};return r.getDimensionInfo=ve(EL,null,s,l),r.cloneAllDimensionInfo=ve(OL,null,s),r}function IL(t){var e=t.sourceFormat;if(!yv(e)){var r="";at(r)}return t.data}function PL(t){var e=t.sourceFormat,r=t.data;if(!yv(e)){var n="";at(n)}if(e===je){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===kt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(B({},r[a]));return i}}function EL(t,e,r){if(r!=null){if(ge(r)||!isNaN(r)&&!It(e,r))return t[r];if(It(e,r))return e[r]}}function OL(t){return ae(t)}var Q_=ie();function kL(t){t=ae(t);var e=t.type,r="";e||at(r);var n=e.split(":");n.length!==2&&at(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,Q_.set(e,t)}function NL(t,e,r){var n=et(t),i=n.length,a="";i||at(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=BL(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function BL(t,e,r,n){var i="";e.length||at(i),$(t)||at(i);var a=t.type,o=Q_.get(a);o||at(i);var s=q(e,function(u){return RL(u,o)}),l=et(o.transform({upstream:s[0],upstreamList:s,config:ae(t.config)}));return q(l,function(u,f){var c="";$(u)||at(c),u.data||at(c);var v=C_(u.data);yv(v)||at(c);var h,d=e[0];if(d&&f===0&&!u.dimensions){var g=d.startIndex;g&&(u.data=d.data.slice(0,g).concat(u.data)),h={seriesLayoutBy:sr,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:sr,sourceHeader:0,dimensions:u.dimensions};return Tc(u.data,h,null)})}function yv(t){return t===je||t===kt}var FL=(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(Yo(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=rt(s)?Xr:_t,a=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=Z(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=Z(c.sourceHeader,v.sourceHeader),g=Z(c.dimensions,v.dimensions),p=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||g;i=p?[Tc(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:g},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Tc(_,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&&kp(a)}var o,s=[],l=[];return C(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&kp(c),s.push(f),l.push(u._getVersionSign())}),n?o=NL(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[aA(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];Yo(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new Cc,s.initData(new D_(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Yo(e)){var r=Zh(e);return r?[r.getSourceManager()]:[]}else return q(iA(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Yo(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 Yo(t){return t.mainType==="series"}function kp(t){throw new Error(t)}var X={color:{},darkColor:{},size:{}},we=X.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};B(we,{primary:we.neutral80,secondary:we.neutral70,tertiary:we.neutral60,quaternary:we.neutral50,disabled:we.neutral20,border:we.neutral30,borderTint:we.neutral20,borderShade:we.neutral40,background:we.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:we.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:we.neutral70,axisLineTint:we.neutral40,axisTick:we.neutral70,axisTickMinor:we.neutral60,axisLabel:we.neutral70,axisSplitLine:we.neutral15,axisMinorSplitLine:we.neutral05});for(var Mn in we)if(we.hasOwnProperty(Mn)){var Np=we[Mn];Mn==="theme"?X.darkColor.theme=we.theme.slice():Mn==="highlight"?X.darkColor.highlight="rgba(255,231,130,0.4)":Mn.indexOf("accent")===0?X.darkColor[Mn]=js(Np,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):X.darkColor[Mn]=js(Np,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}X.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var zL="line-height:1";function J_(t){var e=t.lineHeight;return e==null?zL:"line-height:"+Ke(e+"")+"px"}function eb(t,e){var r=t.color||X.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||X.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ke(n+"")+"px;color:"+Ke(r)+";font-weight:"+Ke(i+""),valueStyle:"font-size:"+Ke(o+"")+"px;color:"+Ke(a)+";font-weight:"+Ke(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var HL=[0,10,20,30],GL=["",`
|
|
15
|
+
`,`
|
|
16
|
+
|
|
17
|
+
`,`
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
`];function Ya(t,e){return e.type=t,e}function Rc(t){return t.type==="section"}function tb(t){return Rc(t)?VL:UL}function rb(t){if(Rc(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return C(t.blocks,function(i){var a=rb(i);a>=e&&(e=a+ +(n&&(!a||Rc(i)&&!i.noHeader)))}),e}return 0}function VL(t,e,r,n){var i=e.noHeader,a=WL(rb(e)),o=[],s=e.blocks||[];ur(!s||U(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(It(u,l)){var f=new pA(u[l],null);s.sort(function(g,p){return f.evaluate(g.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(g,p){var m=e.valueFormatter,y=tb(g)(m?B(B({},t),{valueFormatter:m}):t,g,p>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Ic(n,o.join(""),i?r:a.html);if(i)return c;var v=Lc(e.header,"ordinal",t.useUTC),h=eb(n,t.renderMode).nameStyle,d=J_(n);return t.renderMode==="richText"?nb(t,v,h)+a.richText+c:Ic(n,'<div style="'+h+";"+d+';">'+Ke(v)+"</div>"+c,r)}function UL(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=U(b)?b:[b],q(b,function(S,x){return Lc(S,U(h)?h[x]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||X.color.secondary,i),v=a?"":Lc(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.dataIndex),g=!s||!a,p=!s&&a,m=eb(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":nb(t,v,y))+(o?"":$L(t,d,g,p,_)):Ic(n,(s?"":c)+(a?"":jL(v,!s,y))+(o?"":YL(d,g,p,_)),r)}}function Bp(t,e,r,n,i,a){if(t){var o=tb(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function WL(t){return{html:HL[t],richText:GL[t]}}function Ic(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=J_(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function jL(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Ke(t)+"</span>"}function YL(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=U(t)?t:[t],'<span style="'+a+";"+n+'">'+q(t,function(o){return Ke(o)}).join(" ")+"</span>"}function nb(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function $L(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(U(e)?e.join(" "):e,a)}function qL(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Wa(n)}function ib(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Xu=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=L0()}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=K_({color:r,type:e,renderMode:n,markerId:i});return Y(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};U(r)?C(r,function(a){return B(n,a)}):B(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function XL(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=U(s),u=qL(e,r),f,c,v,h;if(o>1||l&&!o){var d=ZL(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);h=f=Ri(i,r,a[0]),c=g.type}else h=f=l?s[0]:s;var p=Eh(e),m=p&&e.name||"",y=i.getName(r),_=n?m:y;return Ya("section",{header:m,noHeader:n||!p,sortParam:h,blocks:[Ya("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Gt(_),value:f,valueType:c,dataIndex:r})].concat(v||[])})}function ZL(t,e,r,n,i){var a=e.getData(),o=lr(t,function(c,v,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?C(n,function(c){f(Ri(a,r,c),c)}):C(t,f);function f(c,v){var h=a.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(Ya("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Or=Se();function $o(t,e){return t.getName(e)||t.getId(e)}var KL="__universalTransitionEnabled",ft=(function(t){G(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=La({count:JL,reset:e2}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Or(this).sourceManager=new FL(this);a.prepareSource();var o=this.getInitialData(r,i);zp(o,this),this.dataTask.context.data=o,Or(this).dataBeforeProcessed=o,Fp(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=ja(this),a=i?yo(r):{},o=this.subType;fe.hasClass(o)&&(o+="Series"),le(r,n.getTheme().get(this.subType)),le(r,this.getDefaultOption()),pc(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&en(r,a,i)},e.prototype.mergeOption=function(r,n){r=le(this.option,r,!0),this.fillDataTextStyle(r.data);var i=ja(this);i&&en(this.option,r,i);var a=Or(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);zp(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Or(this).dataBeforeProcessed=o,Fp(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!rt(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&pc(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=Pc(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Or(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=Pc(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Or(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ie(r)},e.prototype.getSourceManager=function(){return Or(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Or(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.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);var f=[],c=1/0,v=-1,h=0;return o.each(n,function(d,g){var p=l.dataToCoord(d),m=u-p,y=Math.abs(m);y<=a&&((y<c||y===c&&m>=0&&v<0)&&(c=y,v=m,h=0),m===v&&(f[h++]=g))}),f.length=h,f},e.prototype.formatTooltip=function(r,n,i){return XL({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ee.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=mv.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=$o(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=be(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[$o(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[KL])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"){$(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],v=$o(r,c);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],v=$o(r,h);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(h),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 fe.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})(fe);Et(ft,DL);Et(ft,mv);Wy(ft,fe);function Fp(t){var e=t.name;Eh(t)||(t.name=QL(t)||e)}function QL(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return C(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function JL(t){return t.model.getRawData().count()}function e2(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),t2}function t2(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function zp(t,e){C(Gy(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,xe(r2,e))})}function r2(t,e){var r=Pc(t);return r&&r.setOutputEnd((e||this).count()),e}function Pc(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 n2=pe.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()}}),i2=pe.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()}}),a2=pe.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),v=Math.cos(u),h=o*.6,d=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*h,l+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,l+s+v*h,r-f,l+s),t.closePath()}}),o2=pe.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()}}),s2={line:Cr,rect:Ce,roundRect:Ce,square:Ce,circle:vo,diamond:i2,pin:a2,arrow:o2,triangle:n2},l2={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}},Ec={};C(s2,function(t,e){Ec[e]=new t});var u2=pe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=zs(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=Ec[n];i||(n="rect",i=Ec[n]),l2[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function f2(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||X.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ni(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=Wh(t.slice(8),new te(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Yl(t.slice(7),{},new te(e,r,n,i),o?"center":"cover"):l=new u2({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=f2,a&&l.setColor(a),l}function c2(t){return U(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function ab(t,e){if(t!=null)return U(t)||(t=[t,t]),[_e(t[0],e[0])||0,_e(Z(t[1],t[0]),e[1])||0]}function ob(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Ri(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Ri(t,e,r[o]));return a.join(" ")}}function h2(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!U(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var v2=(function(t){G(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,s){this.removeAll();var l=Ni(r,-1,-1,2,2,null,s);l.attr({z2:Z(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=d2,this._symbolType=r,this.add(l)},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(){Qs(this.childAt(0))},e.prototype.downplay=function(){Js(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=e.getSymbolZ2(r,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):ut(h,d,s,n),Uh(h)}if(this._updateCommon(r,n,l,i,a),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,or(h,d,s,n)}}c&&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,v,h,d,g,p,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,v=a.focus,h=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),g=Ql(y),p=_.getShallow("scale"),m=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=ab(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var x=r.getItemVisual(n,"style"),w=x.fill;if(s instanceof Mr){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Kl(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(O){return M?r.getName(O):ob(r,O)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.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;L.scaleX=this._sizeX*R,L.scaleY=this._sizeY*R,this.setSymbolScale(1),Gh(this,v,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ce(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&tl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();tl(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return c2(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(ke);function d2(t,e){this.parent.drift(t,e)}function Zu(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 Hp(t){return t!=null&&!$(t)&&(t={isIgnore:t}),t||{}}function Gp(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:Ql(e),cursorStyle:e.get("cursor")}}var p2=(function(){function t(e){this.group=new ke,this._SymbolCtor=e||v2}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Hp(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Gp(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var v=f(c);if(Zu(e,v,c,r)){var h=new o(e,c,l,u);h.setPosition(v),e.setItemGraphicEl(c,h),n.add(h)}}).update(function(c,v){var h=a.getItemGraphicEl(v),d=f(c);if(!Zu(e,d,c,r)){n.remove(h);return}var g=e.getItemVisual(c,"symbol")||"circle",p=h&&h.getSymbolType&&h.getSymbolType();if(!h||p&&p!==g)n.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var m={x:d[0],y:d[1]};s?h.attr(m):ut(h,m,i)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var v=a.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},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=Gp(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=Hp(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(Zu(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){Xl(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})(),sb=typeof Float32Array<"u",g2=sb?Float32Array:Array;function Rs(t){return U(t)?sb?new Float32Array(t):t:new g2(t)}function _v(){var t=Se();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 lb=Se(),m2=_v(),mt=(function(){function t(){this.group=new ke,this.uid=nu("viewChart"),this.renderTask=La({plan:y2,reset:_2}),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&&Up(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&Up(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){Xl(this.group,e)},t.markUpdateMethod=function(e,r){lb(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Vp(t,e,r){t&&_c(t)&&(e==="emphasis"?Qs:Js)(t,r)}function Up(t,e,r){var n=co(t,e),i=e&&e.highlightKey!=null?iD(e.highlightKey):null;n!=null?C(et(n),function(a){Vp(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){Vp(a,r,i)})}Ch(mt);El(mt);function y2(t){return m2(t.model)}function _2(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&lb(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),b2[l]}var b2={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)}}};function S2(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Ce({shape:{x:o,y:s,width:l,height:u}});return c}function x2(t,e,r){var n=t.getArea(),i=Ue(n.r0,1),a=Ue(n.r,1),o=new Lr({shape:{cx:Ue(t.cx,1),cy:Ue(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});return o}function w2(t,e,r,n,i){if(t){if(t.type==="polar")return x2(t);if(t.type==="cartesian2d")return S2(t,e,r)}else return null;return null}function ub(t,e){return t.type===e}function fb(t,e){return{seriesType:t,plan:_v(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=a.large;if(i){var s=q(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Ua(n,s[0])&&(s[0]=u),Ua(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var g=h.end-h.start,p=o&&Rs(g*l),m=[],y=[],_=h.start,b=0;_<h.end;_++){var S=void 0;if(l===1){var x=f.get(c,_);S=i.dataToPoint(x,null,y)}else m[0]=f.get(c,_),m[1]=f.get(v,_),S=i.dataToPoint(m,null,y);o?(p[b++]=S[0],p[b++]=S[1]):d.setItemLayout(_,S.slice())}o&&d.setLayout("points",p)}}}}}}var T2={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},C2=function(t){return Math.round(t.length/2)};function M2(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var d=void 0;Y(a)?d=T2[a]:ne(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,d,C2))}}}}}var D2="__ec_stack_";function cb(t){return t.get("stack")||D2+t.seriesIndex}function bv(t){return t.dim+t.index}function hb(t,e){var r=[];return e.eachSeriesByType(t,function(n){db(n)&&r.push(n)}),r}function A2(t){var e={};C(t,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),v=f.dim+"_"+f.index,h=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),g=0,p=d.count();g<p;++g){var m=d.get(h,g);e[v]?e[v].push(m):e[v]=[m]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function vb(t){var e=A2(t),r=[];return C(t,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),v=Math.abs(c[1]-c[0]);s=u?f/v*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=_e(n.get("barWidth"),s),g=_e(n.get("barMaxWidth"),s),p=_e(n.get("barMinWidth")||(pb(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:y,defaultBarGap:_,axisKey:bv(a),stackId:cb(n)})}),L2(r)}function L2(t){var e={};C(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var v=n.barMinWidth;v&&(l[u].minWidth=v);var h=n.barGap;h!=null&&(s.gap=h);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return C(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=be(a).length;s=Math.max(35-l*4,15)+"%"}var u=_e(s,o),f=_e(n.gap,1),c=n.remainedWidth,v=n.autoWidthCount,h=(c-u)/(v+(v-1)*f);h=Math.max(h,0),C(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,c-=b+f*b,v--}else{var b=h;y&&y<b&&(b=Math.min(y,c)),_&&_>b&&(b=_),b!==h&&(m.width=b,c-=b+f*b,v--)}}),h=(c-u)/(v+(v-1)*f),h=Math.max(h,0);var d=0,g;C(a,function(m,y){m.width||(m.width=h),g=m,d+=m.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;C(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:p,width:m.width},p+=m.width*(1+f)})}),r}function R2(t,e,r){if(t&&e){var n=t[bv(e)];return n}}function I2(t,e){var r=hb(t,e),n=vb(r);C(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=cb(i),u=n[bv(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function P2(t){return{seriesType:t,plan:_v(),reset:function(e){if(db(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Ua(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),h=E2(i,a),d=pb(e),g=e.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var S=_.count,x=d&&Rs(S*3),w=d&&l&&Rs(S*3),T=d&&Rs(S),D=n.master.getRect(),A=v?D.width:D.height,M,I=b.getStore(),L=0;(M=_.next())!=null;){var R=I.get(c?p:o,M),O=I.get(s,M),k=h,j=void 0;c&&(j=+R-I.get(o,M));var N=void 0,H=void 0,W=void 0,z=void 0;if(v){var F=n.dataToPoint([R,O]);if(c){var Q=n.dataToPoint([j,O]);k=Q[0]}N=k,H=F[1]+y,W=F[0]-k,z=m,Math.abs(W)<g&&(W=(W<0?-1:1)*g)}else{var F=n.dataToPoint([O,R]);if(c){var Q=n.dataToPoint([O,j]);k=Q[1]}N=F[0]+y,H=k,W=m,z=F[1]-k,Math.abs(z)<g&&(z=(z<=0?-1:1)*g)}d?(x[L]=N,x[L+1]=H,x[L+2]=v?W:z,w&&(w[L]=v?D.x:N,w[L+1]=v?H:D.y,w[L+2]=A),T[M]=M):b.setItemLayout(M,{x:N,y:H,width:W,height:z}),L+=3}d&&b.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:v})}}}}}}function db(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function pb(t){return t.pipelineContext&&t.pipelineContext.large}function E2(t,e){var r=e.model.get("startValue");return r||(r=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?r>0?r:1:r))}var Oc=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return ru(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)C(a.getAxes(),function(v,h){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),g=v.getTickModel().get("alignWithLabel"),p=o[h],m=n[h]==="x1"||n[h]==="y1";if(m&&!g&&(p+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,b=1,S=0;S<d.length;S++){var x=d[S].coord,w=S===d.length-1?d[S-1].tickValue+b:d[S].tickValue;if(w===p){_=x;break}else if(w<p)y=x;else if(y!=null&&w>p){_=(x+y)/2;break}S===1&&(b=w-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ft);ft.registerClass(Oc);var O2=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return ru(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=G_(Oc.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:X.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Oc),ll="\0__throttleOriginMethod",Wp="\0__throttleRate",jp="\0__throttleType";function iu(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 v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;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 v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function gb(t,e,r,n){var i=t[e];if(i){var a=i[ll]||i,o=i[jp],s=i[Wp];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=iu(a,r,n==="debounce"),i[ll]=a,i[jp]=n,i[Wp]=r}return i}}function kc(t,e){var r=t[e];r&&r[ll]&&(r.clear&&r.clear(),t[e]=r[ll])}var k2=(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}return t})(),Yp=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new k2},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,v=n.clockwise,h=Math.PI*2,d=v?c-f<h:f-c<h;d||(f=c-(v?h:-h));var g=Math.cos(f),p=Math.sin(f),m=Math.cos(c),y=Math.sin(c);d?(r.moveTo(g*o+i,p*o+a),r.arc(g*u+i,p*u+a,l,-Math.PI+f,f,!v)):r.moveTo(g*s+i,p*s+a),r.arc(i,a,s,f,c,!v),r.arc(m*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!v),o!==0&&r.arc(i,a,o,c,f,v)},e})(pe);function N2(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return zs(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,v=u.r,h=u.r0,d=(v+h)/2,g=u.startAngle,p=u.endAngle,m=(g+p)/2,y=r?Math.abs(v-h)/2:0,_=Math.cos,b=Math.sin,S=f+v*_(g),x=c+v*b(g),w="left",T="top";switch(s){case"startArc":S=f+(h-l)*_(m),x=c+(h-l)*b(m),w="center",T="top";break;case"insideStartArc":S=f+(h+l)*_(m),x=c+(h+l)*b(m),w="center",T="bottom";break;case"startAngle":S=f+d*_(g)+qo(g,l+y,!1),x=c+d*b(g)+Xo(g,l+y,!1),w="right",T="middle";break;case"insideStartAngle":S=f+d*_(g)+qo(g,-l+y,!1),x=c+d*b(g)+Xo(g,-l+y,!1),w="left",T="middle";break;case"middle":S=f+d*_(m),x=c+d*b(m),w="center",T="middle";break;case"endArc":S=f+(v+l)*_(m),x=c+(v+l)*b(m),w="center",T="bottom";break;case"insideEndArc":S=f+(v-l)*_(m),x=c+(v-l)*b(m),w="center",T="top";break;case"endAngle":S=f+d*_(p)+qo(p,l+y,!0),x=c+d*b(p)+Xo(p,l+y,!0),w="left",T="middle";break;case"insideEndAngle":S=f+d*_(p)+qo(p,-l+y,!0),x=c+d*b(p)+Xo(p,-l+y,!0),w="right",T="middle";break;default:return zs(n,i,a)}return n=n||{},n.x=S,n.y=x,n.align=w,n.verticalAlign=T,n}}function B2(t,e,r,n){if(ge(n)){t.setTextConfig({rotation:n});return}else if(U(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function qo(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Xo(t,e,r){return e*Math.cos(t)*(r?1:-1)}function pa(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;U(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:q(n,function(a){return Qr(a,i)})}}var Ku=Math.max,Qu=Math.min;function F2(t,e){var r=t.getArea&&t.getArea();if(ub(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var z2=(function(t){G(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){Xl(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,h=H2(r,u);h&&this._enableRealtimeSort(h,s,i);var d=r.get("clip",!0)||h,g=F2(u,s);o.removeClipPath();var p=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],S=this._backgroundEls,x=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function T(M){var I=Zo[u.type](s,M);if(!I)return null;var L=$2(u,c,I);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),b[M]=L,L}s.diff(l).add(function(M){var I=s.getItemModel(M),L=Zo[u.type](s,M,I);if(L&&(m&&T(M),!(!s.hasValue(M)||!Kp[u.type](L)))){var R=!1;d&&(R=$p[u.type](g,L));var O=qp[u.type](r,s,M,L,c,v,f.model,!1,p);h&&(O.forceLabelAnimation=!0),Qp(O,s,M,I,L,r,c,u.type==="polar"),x?O.attr({shape:L}):h?Xp(h,v,O,L,M,c,!1,!1):or(O,{shape:L},r,M),s.setItemGraphicEl(M,O),o.add(O),O.ignore=R}}).update(function(M,I){var L=s.getItemModel(M),R=Zo[u.type](s,M,L);if(R){if(m){var O=void 0;S.length===0?O=T(I):(O=S[I],O.useStyle(y.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",_):O.setShape("cornerRadius",_),b[M]=O);var k=Zo[u.type](s,M),j=yb(c,k,u);ut(O,{shape:j},v,M)}var N=l.getItemGraphicEl(I);if(!s.hasValue(M)||!Kp[u.type](R)){o.remove(N);return}var H=!1;d&&(H=$p[u.type](g,R),H&&o.remove(N));var W=N&&(N.type==="sector"&&p||N.type==="sausage"&&!p);if(W&&(N&&Ca(N,r,I),N=null),N?Uh(N):N=qp[u.type](r,s,M,R,c,v,f.model,!0,p),h&&(N.forceLabelAnimation=!0),w){var z=N.getTextContent();if(z){var F=Xh(z);F.prevValue!=null&&(F.prevValue=F.value)}}else Qp(N,s,M,L,R,r,c,u.type==="polar");x?N.attr({shape:R}):h?Xp(h,v,N,R,M,c,!0,w):ut(N,{shape:R},r,M,null),s.setItemGraphicEl(M,N),N.ignore=H,o.add(N)}}).remove(function(M){var I=l.getItemGraphicEl(M);I&&Ca(I,r,M)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new ke);D.removeAll();for(var A=0;A<b.length;++A)D.add(b[A]);o.add(D),this._backgroundEls=b,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),eg(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),eg(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&w2(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:q(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ca(a,r,ce(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(mt),$p={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=Ku(e.x,t.x),s=Qu(e.x+e.width,i),l=Ku(e.y,t.y),u=Qu(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>i?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=Qu(e.r,t.r),a=Ku(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},qp={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new Ce({shape:B({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?Yp:Lr,f=new u({shape:n,z2:1});f.name="item";var c=mb(i);if(f.calculateTextPosition=N2(c,{isRoundCap:u===Yp}),a){var v=f.shape,h=i?"r":"endAngle",d={};v[h]=i?n.r0:n.startAngle,d[h]=n[h],(s?ut:or)(f,{shape:d},a)}return f}};function H2(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function Xp(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?ut:or)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?ut:or)(r,{shape:u},f,i)}function Zp(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var G2=["x","y","width","height"],V2=["cx","cy","r","startAngle","endAngle"],Kp={cartesian2d:function(t){return!Zp(t,G2)},polar:function(t){return!Zp(t,V2)}},Zo={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?W2(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function U2(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function mb(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function Qp(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=pa(n.getModel("itemStyle"),f,!0);B(f,c),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var v=n.getShallow("cursor");v&&t.attr("cursor",v);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Ql(n);Kl(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:ob(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=t.getTextContent();if(s&&g){var p=n.get(["label","position"]);t.textConfig.inside=p==="middle"?!0:null,B2(t,p==="outside"?h:p,mb(o),n.get(["label","rotate"]))}$D(g,d,a.getRawValue(r),function(y){return h2(e,y)});var m=n.getModel(["emphasis"]);Gh(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),j0(t,n),U2(i)&&(t.style.fill="none",t.style.stroke="none",C(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function W2(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var j2=(function(){function t(){}return t})(),Jp=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new j2},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(pe);function eg(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new Jp({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),r&&r.push(f)}var c=new Jp({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(i.getVisual("style")),c.style.stroke=null,ce(c).seriesIndex=t.seriesIndex,t.get("silent")||(c.on("mousedown",tg),c.on("mousemove",tg)),r&&r.push(c)}var tg=iu(function(t){var e=this,r=Y2(e,t.offsetX,t.offsetY);ce(e).dataIndex=r>=0?r:null},30,!1);function Y2(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function yb(t,e,r){if(ub(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function $2(t,e,r){var n=t.type==="polar"?Lr:Ce;return new n({shape:yb(e,r,t),silent:!0,z2:0})}function q2(t){t.registerChartView(z2),t.registerSeriesModel(O2),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,xe(I2,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,P2("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,M2("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}function X2(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}C([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=B({},i),o.dispatchAction(B(i,{type:n[1],seriesIndex:r(a,i)}))})})}function si(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(),v=co(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:U(v)?c.getName(v[0]):c.getName(v),selected:Y(l)?l:B({},l)})}})}function Z2(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(si("map","selectchanged",e,i,n),si("pie","selectchanged",e,i,n)):n.fromAction==="select"?(si("map","selected",e,i,n),si("pie","selected",e,i,n)):n.fromAction==="unselect"&&(si("map","unselected",e,i,n),si("pie","unselected",e,i,n))})}var rg=Math.PI*2,Ko=Math.PI/180;function K2(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=_L(n,r),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,v=-n.get("startAngle")*Ko,h=n.get("endAngle"),d=n.get("padAngle")*Ko;h=h==="auto"?v-rg:-h*Ko;var g=n.get("minAngle")*Ko,p=g+d,m=0;i.each(a,function(j){!isNaN(j)&&m++});var y=i.getSum(a),_=Math.PI/(y||m)*2,b=n.get("clockwise"),S=n.get("roseType"),x=n.get("stillShowZeroSum"),w=i.getDataExtent(a);w[0]=0;var T=b?1:-1,D=[v,h],A=T*d/2;y0(D,!b),v=D[0],h=D[1];var M=_b(n);M.startAngle=v,M.endAngle=h,M.clockwise=b,M.cx=s,M.cy=l,M.r=u,M.r0=f;var I=Math.abs(h-v),L=I,R=0,O=v;if(i.setLayout({viewRect:c,r:u}),i.each(a,function(j,N){var H;if(isNaN(j)){i.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:s,cy:l,r0:f,r:S?NaN:u});return}S!=="area"?H=y===0&&x?_:j*_:H=I/m,H<p?(H=p,L-=p):R+=j;var W=O+T*H,z=0,F=0;d>H?(z=O+T*H/2,F=z):(z=O+A,F=W-A),i.setItemLayout(N,{angle:H,startAngle:z,endAngle:F,clockwise:b,cx:s,cy:l,r0:f,r:S?qs(j,w,[f,u]):u}),O=W}),L<rg&&m)if(L<=.001){var k=I/m;i.each(a,function(j,N){if(!isNaN(j)){var H=i.getItemLayout(N);H.angle=k;var W=0,z=0;k<d?(W=v+T*(N+1/2)*k,z=W):(W=v+T*N*k+A,z=v+T*(N+1)*k-A),H.startAngle=W,H.endAngle=z}})}else _=L/R,O=v,i.each(a,function(j,N){if(!isNaN(j)){var H=i.getItemLayout(N),W=H.angle===p?p:j*_,z=0,F=0;W<d?(z=O+T*W/2,F=z):(z=O+A,F=O+T*W-A),H.startAngle=z,H.endAngle=F,O+=T*W}})})}var _b=Se();function Q2(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function bb(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,c=n-e,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;d*=v;var g=o[0]=t+d*f,p=o[1]=e+d*c;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}var Ur=new re,Te=new re,Fe=new re,Wr=new re,er=new re,ul=[],Xe=new re;function J2(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ur.fromArray(t[0]),Te.fromArray(t[1]),Fe.fromArray(t[2]),re.sub(Wr,Ur,Te),re.sub(er,Fe,Te);var r=Wr.len(),n=er.len();if(!(r<.001||n<.001)){Wr.scale(1/r),er.scale(1/n);var i=Wr.dot(er),a=Math.cos(e);if(a<i){var o=bb(Te.x,Te.y,Fe.x,Fe.y,Ur.x,Ur.y,ul);Xe.fromArray(ul),Xe.scaleAndAdd(er,o/Math.tan(Math.PI-e));var s=Fe.x!==Te.x?(Xe.x-Te.x)/(Fe.x-Te.x):(Xe.y-Te.y)/(Fe.y-Te.y);if(isNaN(s))return;s<0?re.copy(Xe,Te):s>1&&re.copy(Xe,Fe),Xe.toArray(t[1])}}}}function eR(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Ur.fromArray(t[0]),Te.fromArray(t[1]),Fe.fromArray(t[2]),re.sub(Wr,Te,Ur),re.sub(er,Fe,Te);var n=Wr.len(),i=er.len();if(!(n<.001||i<.001)){Wr.scale(1/n),er.scale(1/i);var a=Wr.dot(e),o=Math.cos(r);if(a<o){var s=bb(Te.x,Te.y,Fe.x,Fe.y,Ur.x,Ur.y,ul);Xe.fromArray(ul);var l=Math.PI/2,u=Math.acos(er.dot(e)),f=l+u-r;if(f>=l)re.copy(Xe,Fe);else{Xe.scaleAndAdd(er,s/Math.tan(Math.PI/2-f));var c=Fe.x!==Te.x?(Xe.x-Te.x)/(Fe.x-Te.x):(Xe.y-Te.y)/(Fe.y-Te.y);if(isNaN(c))return;c<0?re.copy(Xe,Te):c>1&&re.copy(Xe,Fe)}Xe.toArray(t[1])}}}}function Ju(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function tR(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Gs(n[0],n[1]),a=Gs(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=ys([],n[1],n[0],o/i),l=ys([],n[1],n[2],o/a),u=ys([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function rR(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<Xs.length;l++){var u=Xs[l],f=e[u],c=u==="normal";if(f){var v=f.get("show"),h=c?s:Z(i.states[u]&&i.states[u].ignore,s);if(h||!Z(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&Ju(n,!0,u,f);continue}n||(n=new ki,t.setTextGuideLine(n),!c&&(s||!o)&&Ju(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Ju(n,!1,u,f)}}if(n){de(n.style,r),n.style.fill=null;var g=a.get("showAbove"),p=t.textGuideLineConfig=t.textGuideLineConfig||{};p.showAbove=g||!1,n.buildPath=tR}}function nR(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<fr.length;n++){var i=fr[n];r[i]=t.getModel([i,e])}return r}var ng=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],iR=1,fl=2,Sb=iR|fl;function cl(t,e,r){r=r||Sb,e?t.dirty|=r:t.dirty&=~r}function xb(t,e){return e=e||Sb,t.dirty==null||!!(t.dirty&e)}function tn(t){if(t)return xb(t)&&wb(t,t.label,t),t}function wb(t,e,r){var n=e.getComputedTransform();t.transform=qh(t.transform,n);var i=t.localRect=Va(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=mi.textMargin);for(var c=0;c<4;c++)ef[c]=f===mi.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===mi.textMargin&&rl(i,ef,!1,!1);var v=t.rect=Va(t.rect,i);return n&&v.applyTransform(n),f===mi.minMargin&&rl(v,ef,!1,!1),t.axisAligned=$h(n),(t.label=t.label||{}).ignore=e.ignore,cl(t,!1),cl(t,!0,fl),t}var ef=[0,0,0,0];function aR(t,e,r){return t.transform=qh(t.transform,r),t.localRect=Va(t.localRect,e),t.rect=Va(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=$h(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function oR(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function ig(t,e){for(var r=0;r<ng.length;r++){var n=ng[r];t[n]==null&&(t[n]=e[n])}return tn(t)}function ag(t){var e=t.obb;return(!e||xb(t,fl))&&(t.obb=e=e||new r_,e.fromBoundingRect(t.localRect,t.transform),cl(t,!1,fl)),e}function sR(t,e,r,n,i){var a=t.length,o=Fr[e],s=Li[e];if(a<2)return!1;t.sort(function(w,T){return w.rect[o]-T.rect[o]});for(var l=0,u,f=!1,c=0;c<a;c++){var v=t[c],h=v.rect;u=h[o]-l,u<0&&(h[o]-=u,v.label[o]-=u,f=!0),l=h[o]+h[s]}var d=t[0],g=t[a-1],p,m;y(),p<0&&S(-p,.8),m<0&&S(m,.8),y(),_(p,m,1),_(m,p,-1),y(),p<0&&x(-p),m<0&&x(m);function y(){p=d.rect[o]-r,m=n-g.rect[o]-g.rect[s]}function _(w,T,D){if(w<0){var A=Math.min(T,-w);if(A>0){b(A*D,0,a);var M=A+w;M<0&&S(-M*D,1)}else S(-w*D,1)}}function b(w,T,D){w!==0&&(f=!0);for(var A=T;A<D;A++){var M=t[A],I=M.rect;I[o]+=w,M.label[o]+=w}}function S(w,T){for(var D=[],A=0,M=1;M<a;M++){var I=t[M-1].rect,L=Math.max(t[M].rect[o]-I[o]-I[s],0);D.push(L),A+=L}if(A){var R=Math.min(Math.abs(w)/A,T);if(w>0)for(var M=0;M<a-1;M++){var O=D[M]*R;b(O,0,M+1)}else for(var M=a-1;M>0;M--){var O=D[M-1]*R;b(-O,M,a)}}}function x(w){var T=w<0?-1:1;w=Math.abs(w);for(var D=Math.ceil(w/(a-1)),A=0;A<a-1;A++)if(T>0?b(D,0,A+1):b(-D,a-A-1,a),w-=D,w<=0)return}return f}function lR(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=tn(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(Sv(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function Sv(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:ag(t).intersect(ag(e),r,n)}var uR=Math.PI/180;function og(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(g){for(var p=g.rB,m=p*p,y=0;y<g.list.length;y++){var _=g.list[y],b=Math.abs(_.label.y-r),S=n+_.len,x=S*S,w=Math.sqrt(Math.abs((1-b*b/m)*x)),T=e+(w+_.len2)*i,D=T-_.label.x,A=_.targetTextWidth-D*i;Tb(_,A,!0),_.label.x=T}}function c(g){for(var p={list:[],maxY:0},m={list:[],maxY:0},y=0;y<g.length;y++)if(g[y].labelAlignTo==="none"){var _=g[y],b=_.label.y>r?m:p,S=Math.abs(_.label.y-r);if(S>=b.maxY){var x=_.label.x-e-_.len2*i,w=n+_.len,T=Math.abs(x)<w?Math.sqrt(S*S/(1-x*x/w/w)):w;b.rB=T,b.maxY=S}b.list.push(_)}f(p),f(m)}for(var v=t.length,h=0;h<v;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}sR(t,1,l,l+o)&&c(t)}function fR(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<t.length;v++){var h=t[v].label;tf(t[v])||(h.x<e?(f=Math.min(f,h.x),l.push(t[v])):(c=Math.max(c,h.x),u.push(t[v])))}for(var v=0;v<t.length;v++){var d=t[v];if(!tf(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,g=d.linePoints,p=void 0;d.labelAlignTo==="edge"?h.x<e?p=g[2][0]-d.labelDistance-o-d.edgeDistance:p=o+i-d.edgeDistance-g[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?p=f-o-d.bleedMargin:p=o+i-c-d.bleedMargin:h.x<e?p=h.x-o-d.bleedMargin:p=o+i-h.x-d.bleedMargin,d.targetTextWidth=p,Tb(d,p,!1)}}og(u,e,r,n,1,i,a,o,s,c),og(l,e,r,n,-1,i,a,o,s,f);for(var v=0;v<t.length;v++){var d=t[v];if(!tf(d)&&d.linePoints){var h=d.label,g=d.linePoints,m=d.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,b=h.style.backgroundColor?0:_,S=d.rect.width+b,x=g[1][0]-g[2][0];m?h.x<e?g[2][0]=o+d.edgeDistance+S+d.labelDistance:g[2][0]=o+i-d.edgeDistance-S-d.labelDistance:(h.x<e?g[2][0]=h.x+d.labelDistance:g[2][0]=h.x-d.labelDistance,g[1][0]=g[2][0]+x),g[1][1]=g[2][1]=h.y}}}function Tb(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,h=e<f?v:r?v>t.unconstrainedWidth?null:v:null;n.setStyle("width",h)}Cb(a,n)}}}function Cb(t,e){sg.rect=t,wb(sg,e,cR)}var cR={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},sg={};function tf(t){return t.position==="center"}function hR(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*uR,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,D=w.getTextContent(),A=w.getTextGuideLine(),M=e.getItemModel(x),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),R=I.get("distanceToLabelLine"),O=I.get("alignTo"),k=_e(I.get("edgeDistance"),u),j=I.get("bleedMargin");j==null&&(j=Math.min(u,v)>200?10:2);var N=M.getModel("labelLine"),H=N.get("length");H=_e(H,u);var W=N.get("length2");if(W=_e(W,u),Math.abs(T.endAngle-T.startAngle)<o){C(D.states,h),D.ignore=!0,A&&(C(A.states,h),A.ignore=!0);return}if(d(D)){var z=(T.startAngle+T.endAngle)/2,F=Math.cos(z),Q=Math.sin(z),ue,Ie,ct,Ye;n=T.cx,i=T.cy;var ze=L==="inside"||L==="inner";if(L==="center")ue=T.cx,Ie=T.cy,Ye="center";else{var Ne=(ze?(T.r+T.r0)/2*F:T.r*F)+n,Me=(ze?(T.r+T.r0)/2*Q:T.r*Q)+i;if(ue=Ne+F*3,Ie=Me+Q*3,!ze){var J=Ne+F*(H+l-T.r),oe=Me+Q*(H+l-T.r),$t=J+(F<0?-1:1)*W,Pe=oe;O==="edge"?ue=F<0?f+k:f+u-k:ue=$t+(F<0?-R:R),Ie=Pe,ct=[[Ne,Me],[J,oe],[$t,Pe]]}Ye=ze?"center":O==="edge"?F>0?"right":"left":F>0?"left":"right"}var Rr=Math.PI,vr=0,Bi=I.get("rotate");if(ge(Bi))vr=Bi*(Rr/180);else if(L==="center")vr=0;else if(Bi==="radial"||Bi===!0){var d1=F<0?-z+Rr:-z;vr=d1}else if(Bi==="tangential"&&L!=="outside"&&L!=="outer"){var Zn=Math.atan2(F,Q);Zn<0&&(Zn=Rr*2+Zn);var p1=Q>0;p1&&(Zn=Rr+Zn),vr=Zn-Rr}if(a=!!vr,D.x=ue,D.y=Ie,D.rotation=vr,D.setStyle({verticalAlign:"middle"}),ze){D.setStyle({align:Ye});var lu=D.states.select;lu&&(lu.x+=D.x,lu.y+=D.y)}else{var su=new te(0,0,0,0);Cb(su,D),r.push({label:D,labelLine:A,position:L,len:H,len2:W,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new re(F,Q),linePoints:ct,textAlign:Ye,labelDistance:R,labelAlignTo:O,edgeDistance:k,bleedMargin:j,rect:su,unconstrainedWidth:su.width,labelStyleWidth:D.style.width})}w.setTextConfig({inside:ze})}}),!a&&t.get("avoidLabelOverlap")&&fR(r,n,i,l,u,v,f,c);for(var g=0;g<r.length;g++){var p=r[g],m=p.label,y=p.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:p.textAlign}),_&&(C(m.states,h),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(y){var S=p.linePoints;_||!S?(C(y.states,h),y.ignore=!0):(J2(S,p.minTurnAngle),eR(S,p.surfaceNormal,p.maxSurfaceAngle),y.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new re(S[0][0],S[0][1])})}}}var vR=(function(t){G(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new We;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=B(pa(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(or(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):v==="scale"?(o.shape.r=f.r0,or(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),or(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,ut(o,{shape:{endAngle:f.endAngle}},s,n))}else Uh(o),ut(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),j0(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(h)*d,p=Math.sin(h)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=B({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},pa(u.getModel("itemStyle"),f)),B(o.ensureState("select"),{x:g,y:p,shape:pa(l.getModel(["select","itemStyle"]),f)}),B(o.ensureState("blur"),{shape:pa(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&B(y.ensureState("select"),{x:g,y:p}),B(_.ensureState("select"),{x:g,y:p}),Gh(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Kl(a,Ql(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ki,this.setTextGuideLine(h)),rR(this,nR(o),{stroke:u,opacity:Yr(s.get(["lineStyle","opacity"]),f,1)})}},e})(Lr),dR=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=_b(r),h=new Lr({shape:ae(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var g=new vR(o,d,u);o.setItemGraphicEl(d,g),l.add(g)}).update(function(d,g){var p=s.getItemGraphicEl(g);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var g=s.getItemGraphicEl(d);Ca(g,r,d)}).execute(),hR(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e})(mt);function pR(t,e,r){e=U(e)&&{coordDimensions:e}||B({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=ev(n,e).dimensions,a=new Jh(i,t);return a.initData(n,r),a}var gR=(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})(),mR=Se(),Mb=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new gR(ve(this.getData,this),ve(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return pR(this,{coordDimensions:["value"],encodeDefaulter:xe(nA,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=mR(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=M0(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){pc(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(ft);RA({fullType:Mb.type,getCoord2:function(t){return t.getShallow("center")}});function yR(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ge(o)&&!isNaN(o)&&o<0)})}}}function _R(t){t.registerChartView(dR),t.registerSeriesModel(Mb),X2("pie",t.registerAction),t.registerLayout(xe(K2,"pie")),t.registerProcessor(Q2("pie")),t.registerProcessor(yR("pie"))}var li=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),bR=(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 li(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 li(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 li(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new li(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new li(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new li(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),SR=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rf=[],xR=ee.browser.firefox&&+ee.browser.version.split(".")[0]<39;function Nc(t,e,r,n){return r=r||{},n?lg(t,e,r):xR&&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):lg(t,e,r),r}function lg(t,e,r){if(ee.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(V_(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Ac(rf,t,n,i)){r.zrX=rf[0],r.zrY=rf[1];return}}r.zrX=r.zrY=0}function xv(t){return t||window.event}function wt(t,e,r){if(e=xv(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&&Nc(t,o,e,r)}else{Nc(t,e,e,r);var a=wR(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&SR.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function wR(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 TR(t,e,r,n){t.addEventListener(e,r,n)}function CR(t,e,r,n){t.removeEventListener(e,r,n)}var Db=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},MR=(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=Nc(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 nf)if(nf.hasOwnProperty(r)){var n=nf[r](this._track,e);if(n)return n}},t})();function ug(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function DR(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var nf={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=ug(n)/ug(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=DR(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},Ab="silent";function AR(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:LR}}function LR(){Db(this.event)}var RR=(function(t){G(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})(hr),qi=(function(){function t(e,r){this.x=e,this.y=r}return t})(),IR=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],af=new te(0,0,0,0),Lb=(function(t){G(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new qi(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new RR,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new bR(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(C(IR,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=Rb(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 qi(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 qi(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=AR(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 qi(r,n);if(fg(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new te(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var v=a[c];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(af.copy(v.getBoundingRect()),v.transform&&af.applyTransform(v.transform),af.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=h)for(var m=0;m<g;m+=d){var y=r+p*Math.cos(m),_=n+p*Math.sin(m);if(fg(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new MR);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 qi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(hr);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Lb.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=Rb(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||Gs(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function PR(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.ignoreHostSilent?null:s:n.parent}return i?Ab:!0}return!1}function fg(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=PR(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==Ab)){e.target=o;break}}}function Rb(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var Ib=32,Xi=7;function ER(t){for(var e=0;t>=Ib;)e|=t&1,t>>=1;return t+e}function cg(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++;OR(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function OR(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function hg(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 of(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 sf(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 kR(t,e){var r=Xi,n,i,a=0,o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var d=n[h],g=i[h],p=n[h+1],m=i[h+1];i[h]=g+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=sf(t[p],t,d,g,0,e);d+=y,g-=y,g!==0&&(m=of(t[d+g-1],t,p,m,m-1,e),m!==0&&(g<=m?c(d,g,p,m):v(d,g,p,m)))}function c(h,d,g,p){var m=0;for(m=0;m<d;m++)o[m]=t[h+m];var y=0,_=g,b=h;if(t[b++]=t[_++],--p===0){for(m=0;m<d;m++)t[b+m]=o[y+m];return}if(d===1){for(m=0;m<p;m++)t[b+m]=t[_+m];t[b+p]=o[y];return}for(var S=r,x,w,T;;){x=0,w=0,T=!1;do if(e(t[_],o[y])<0){if(t[b++]=t[_++],w++,x=0,--p===0){T=!0;break}}else if(t[b++]=o[y++],x++,w=0,--d===1){T=!0;break}while((x|w)<S);if(T)break;do{if(x=sf(t[_],o,y,d,0,e),x!==0){for(m=0;m<x;m++)t[b+m]=o[y+m];if(b+=x,y+=x,d-=x,d<=1){T=!0;break}}if(t[b++]=t[_++],--p===0){T=!0;break}if(w=of(o[y],t,_,p,0,e),w!==0){for(m=0;m<w;m++)t[b+m]=t[_+m];if(b+=w,_+=w,p-=w,p===0){T=!0;break}}if(t[b++]=o[y++],--d===1){T=!0;break}S--}while(x>=Xi||w>=Xi);if(T)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(m=0;m<p;m++)t[b+m]=t[_+m];t[b+p]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)t[b+m]=o[y+m]}}function v(h,d,g,p){var m=0;for(m=0;m<p;m++)o[m]=t[g+m];var y=h+d-1,_=p-1,b=g+p-1,S=0,x=0;if(t[b--]=t[y--],--d===0){for(S=b-(p-1),m=0;m<p;m++)t[S+m]=o[m];return}if(p===1){for(b-=d,y-=d,x=b+1,S=y+1,m=d-1;m>=0;m--)t[x+m]=t[S+m];t[b]=o[_];return}for(var w=r;;){var T=0,D=0,A=!1;do if(e(o[_],t[y])<0){if(t[b--]=t[y--],T++,D=0,--d===0){A=!0;break}}else if(t[b--]=o[_--],D++,T=0,--p===1){A=!0;break}while((T|D)<w);if(A)break;do{if(T=d-sf(o[_],t,h,d,d-1,e),T!==0){for(b-=T,y-=T,d-=T,x=b+1,S=y+1,m=T-1;m>=0;m--)t[x+m]=t[S+m];if(d===0){A=!0;break}}if(t[b--]=o[_--],--p===1){A=!0;break}if(D=p-of(t[y],o,0,p,p-1,e),D!==0){for(b-=D,_-=D,p-=D,x=b+1,S=_+1,m=0;m<D;m++)t[x+m]=o[S+m];if(p<=1){A=!0;break}}if(t[b--]=t[y--],--d===0){A=!0;break}w--}while(T>=Xi||D>=Xi);if(A)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),p===1){for(b-=d,y-=d,x=b+1,S=y+1,m=d-1;m>=0;m--)t[x+m]=t[S+m];t[b]=o[_]}else{if(p===0)throw new Error;for(S=b-(p-1),m=0;m<p;m++)t[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Is(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<Ib){a=cg(t,r,n,e),hg(t,r,n,r+a,e);return}var o=kR(t,e),s=ER(i);do{if(a=cg(t,r,n,e),a<s){var l=i;l>s&&(l=s),hg(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 vg=!1;function lf(){vg||(vg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function dg(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var NR=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=dg}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,Is(n,dg)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),v=0;v<c.length;v++){var h=c[v];e.__dirty&&(h.__dirty|=vt),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(lf(),d.z=0),isNaN(d.z2)&&(lf(),d.z2=0),isNaN(d.zlevel)&&(lf(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var g=e.getDecalElement&&e.getDecalElement();g&&this._updateAndAddDisplayable(g,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,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=se(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})(),hl;hl=ee.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function yi(){return new Date().getTime()}var BR=(function(t){G(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=yi()-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&&(hl(n),!r._paused&&r.update())}hl(n)},e.prototype.start=function(){this._running||(this._time=yi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=yi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=yi()-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 Rh(r,n.loop);return this.addAnimator(i),i},e})(hr),FR=300,uf=ee.domSupported,ff=(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=q(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),pg={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},gg=!1;function Bc(t){var e=t.pointerType;return e==="pen"||e==="touch"}function zR(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 cf(t){t&&(t.zrByTouch=!0)}function HR(t,e){return wt(t.dom,new GR(t,e),!0)}function Pb(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 GR=(function(){function t(e,r){this.stopPropagation=Qe,this.stopImmediatePropagation=Qe,this.preventDefault=Qe,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Ft={mousedown:function(t){t=wt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=wt(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=wt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=wt(this.dom,t);var e=t.toElement||t.relatedTarget;Pb(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){gg=!0,t=wt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){gg||(t=wt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=wt(this.dom,t),cf(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ft.mousemove.call(this,t),Ft.mousedown.call(this,t)},touchmove:function(t){t=wt(this.dom,t),cf(t),this.handler.processGesture(t,"change"),Ft.mousemove.call(this,t)},touchend:function(t){t=wt(this.dom,t),cf(t),this.handler.processGesture(t,"end"),Ft.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<FR&&Ft.click.call(this,t)},pointerdown:function(t){Ft.mousedown.call(this,t)},pointermove:function(t){Bc(t)||Ft.mousemove.call(this,t)},pointerup:function(t){Ft.mouseup.call(this,t)},pointerout:function(t){Bc(t)||Ft.mouseout.call(this,t)}};C(["click","dblclick","contextmenu"],function(t){Ft[t]=function(e){e=wt(this.dom,e),this.trigger(t,e)}});var Fc={pointermove:function(t){Bc(t)||Fc.mousemove.call(this,t)},pointerup:function(t){Fc.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 VR(t,e){var r=e.domHandlers;ee.pointerEventsSupported?C(ff.pointer,function(n){Ps(e,n,function(i){r[n].call(t,i)})}):(ee.touchEventsSupported&&C(ff.touch,function(n){Ps(e,n,function(i){r[n].call(t,i),zR(e)})}),C(ff.mouse,function(n){Ps(e,n,function(i){i=xv(i),e.touching||r[n].call(t,i)})}))}function UR(t,e){ee.pointerEventsSupported?C(pg.pointer,r):ee.touchEventsSupported||C(pg.mouse,r);function r(n){function i(a){a=xv(a),Pb(t,a.target)||(a=HR(t,a),e.domHandlers[n].call(t,a))}Ps(e,n,i,{capture:!0})}}function Ps(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,TR(t.domTarget,e,r,n)}function hf(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&CR(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var mg=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),WR=(function(t){G(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 mg(r,Ft),uf&&(i._globalHandlerScope=new mg(document,Fc)),VR(i,i._localHandlerScope),i}return e.prototype.dispose=function(){hf(this._localHandlerScope),uf&&hf(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,uf&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?UR(this,n):hf(n)}},e})(hr);var Es={},En={};function jR(t){delete En[t]}function YR(t){if(!t)return!1;if(typeof t=="string")return Na(t,1)<uc;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Na(e[i].color,1);return r/=n,r<uc}return!1}var $R=(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 NR,o=n.renderer||"canvas";Es[o]||(o=be(Es)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Es[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ee.node&&!ee.worker&&!l?new WR(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?ee.touchEventsSupported:!!f,v=44,h;c&&(h=Z(n.pointerSize,v)),this.handler=new Lb(a,s,u,s.root,h),this.animation=new BR({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=YR(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=yi();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=yi();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 ke&&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,jR(this.id))},t})();function zc(t,e){var r=new $R(xh(),t,e);return En[r.id]=r,r}function qR(t){t.dispose()}function XR(){for(var t in En)En.hasOwnProperty(t)&&En[t].dispose();En={}}function ZR(t){return En[t]}function Eb(t,e){Es[t]=e}var Hc;function KR(t){if(typeof Hc=="function")return Hc(t)}function Ob(t){Hc=t}var QR="6.0.0";const JR=Object.freeze(Object.defineProperty({__proto__:null,dispose:qR,disposeAll:XR,getElementSSRData:KR,getInstance:ZR,init:zc,registerPainter:Eb,registerSSRDataGetter:Ob,version:QR},Symbol.toStringTag,{value:"Module"}));var kb="";typeof navigator<"u"&&(kb=navigator.platform||"");var ui="rgba(0, 0, 0, 0.2)",Nb=X.color.theme[0],eI=js(Nb,null,null,.9);const tI={darkMode:"auto",colorBy:"series",color:X.color.theme,gradientColor:[eI,Nb],aria:{decal:{decals:[{color:ui,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ui,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ui,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ui,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ui,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ui,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:kb.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 rI=ie();function nI(t,e,r){var n=rI.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var Qo,Zi,yg,_g="\0_ec_inner",iI=1,wv=(function(t){G(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 ye(a),this._locale=new ye(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=xg(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,xg(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"?yg(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&&C(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=ie(),u=n&&n.replaceMergeMainTypeMap;tA(this),C(r,function(c,v){c!=null&&(fe.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?ae(c):le(i[v],c,!0))}),u&&u.each(function(c,v){fe.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),fe.topologicalTravel(s,fe.getAllClassMainTypes(),f,this);function f(c){var v=nI(this,c,et(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=DM(h,v,d);OM(g,c,fe),i[c]=null,a.set(c,null),o.set(c,0);var p=[],m=[],y=0,_;C(g,function(b,S){var x=b.existing,w=b.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",D=fe.getClass(c,b.keyInfo.subType,!T);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=b.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var A=B({componentIndex:S},b.keyInfo);x=new D(w,this,this,A),B(x,A),b.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(p.push(x.option),m.push(x),y++):(p.push(void 0),m.push(void 0))},this),i[c]=p,a.set(c,m),o.set(c,y),c==="series"&&Qo(this)}this._seriesIndices||Qo(this)},e.prototype.getOption=function(){var r=ae(this.option);return C(r,function(n,i){if(fe.hasClass(i)){for(var a=et(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ha(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[_g],r},e.prototype.setTheme=function(r){this._theme=new ye(r),this._resetOption("recreate",null)},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=[],C(et(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=bg("id",a,s):o!=null?l=bg("name",o,s):l=Ae(s,function(u){return!!u}),Sg(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Ae(this._componentsMap.get(i),function(u){return!!u});return l(Sg(o,r));function s(u){var f=i+"Index",c=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[c],name:u[v]}:null}function l(u){return r.filter?Ae(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(ne(r)){var o=n,s=r;a.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=Y(r)?a.get(r):$(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=ar(r,null);return Ae(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 Ae(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Ae(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Zi(this),C(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){C(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Zi(this),C(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 C(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Zi(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Zi(this);var i=[];C(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=ie(i)},e.prototype.restoreData=function(r){Qo(this);var n=this._componentsMap,i=[];n.each(function(a,o){fe.hasClass(o)&&i.push(o)}),fe.topologicalTravel(i,fe.getAllClassMainTypes(),function(a){C(n.get(a),function(o){o&&(a!=="series"||!aI(o,r))&&o.restoreData()})})},e.internalField=(function(){Qo=function(r){var n=r._seriesIndices=[];C(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=ie(n)},Zi=function(r){},yg=function(r,n){r.option={},r.option[_g]=iI,r._componentsMap=ie({series:[]}),r._componentsCount=ie();var i=n.aria;$(i)&&i.enabled==null&&(i.enabled=!0),oI(n,r._theme.option),le(n,tI,!1),r._mergeOption(n,null)}})(),e})(ye);function aI(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 oI(t,e){var r=t.color&&!t.colorLayer;C(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||fe.hasClass(i)||(typeof n=="object"?t[i]=t[i]?le(t[i],n,!1):ae(n):t[i]==null&&(t[i]=n))})}function bg(t,e,r){if(U(e)){var n=ie();return C(e,function(a){if(a!=null){var o=ar(a,null);o!=null&&n.set(a,!0)}}),Ae(r,function(a){return a&&n.get(a[t])})}else{var i=ar(e,null);return Ae(r,function(a){return a&&i!=null&&a[t]===i})}}function Sg(t,e){return e.hasOwnProperty("subType")?Ae(t,function(r){return r&&r.subType===e.subType}):t}function xg(t){var e=ie();return t&&C(et(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Et(wv,mv);var sI=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Bb=(function(){function t(e){C(sI,function(r){this[r]=ve(e[r],e)},this)}return t})(),lI=/^(min|max)?(.+)$/,uI=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(C(et(e.series),function(o){o&&o.data&&rt(o.data)&&Bs(o.data)}),C(et(e.dataset),function(o){o&&o.source&&rt(o.source)&&Bs(o.source)})),e=ae(e);var i=this._optionBackup,a=fI(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++)cI(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!vI(o,this._currentMediaIndices)&&(s=q(o,function(f){return ae(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function fI(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&&U(u)&&C(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),v(a),C(l,function(h){return v(h)}),C(n,function(h){return v(h.option)});function v(h){C(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function cI(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return C(t,function(a,o){var s=o.match(lI);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();hI(n[u],a,l)||(i=!1)}}),i}function hI(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function vI(t,e){return t.join(",")===e.join(",")}var Nt=C,$a=$,wg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vf(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=wg.length;r<n;r++){var i=wg[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?le(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?le(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Ge(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,de(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 ga(t){Ge(t,"itemStyle"),Ge(t,"lineStyle"),Ge(t,"areaStyle"),Ge(t,"label"),Ge(t,"labelLine"),Ge(t,"upperLabel"),Ge(t,"edgeLabel")}function De(t,e){var r=$a(t)&&t[e],n=$a(r)&&r.textStyle;if(n)for(var i=0,a=$d.length;i<a;i++){var o=$d[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Tt(t){t&&(ga(t),De(t,"label"),t.emphasis&&De(t.emphasis,"label"))}function dI(t){if($a(t)){vf(t),ga(t),De(t,"label"),De(t,"upperLabel"),De(t,"edgeLabel"),t.emphasis&&(De(t.emphasis,"label"),De(t.emphasis,"upperLabel"),De(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(vf(e),Tt(e));var r=t.markLine;r&&(vf(r),Tt(r));var n=t.markArea;n&&Tt(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!rt(a))for(var o=0;o<a.length;o++)Tt(a[o]);C(t.categories,function(u){ga(u)})}if(i&&!rt(i))for(var o=0;o<i.length;o++)Tt(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Tt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)U(l[o])?(Tt(l[o][0]),Tt(l[o][1])):Tt(l[o]);t.type==="gauge"?(De(t,"axisLabel"),De(t,"title"),De(t,"detail")):t.type==="treemap"?(Ge(t.breadcrumb,"itemStyle"),C(t.levels,function(u){ga(u)})):t.type==="tree"&&ga(t.leaves)}}function pr(t){return U(t)?t:t?[t]:[]}function Tg(t){return(U(t)?t[0]:t)||{}}function pI(t,e){Nt(pr(t.series),function(n){$a(n)&&dI(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Nt(r,function(n){Nt(pr(t[n]),function(i){i&&(De(i,"axisLabel"),De(i.axisPointer,"label"))})}),Nt(pr(t.parallel),function(n){var i=n&&n.parallelAxisDefault;De(i,"axisLabel"),De(i&&i.axisPointer,"label")}),Nt(pr(t.calendar),function(n){Ge(n,"itemStyle"),De(n,"dayLabel"),De(n,"monthLabel"),De(n,"yearLabel")}),Nt(pr(t.radar),function(n){De(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)}),Nt(pr(t.geo),function(n){$a(n)&&(Tt(n),Nt(pr(n.regions),function(i){Tt(i)}))}),Nt(pr(t.timeline),function(n){Tt(n),Ge(n,"label"),Ge(n,"itemStyle"),Ge(n,"controlStyle",!0);var i=n.data;U(i)&&C(i,function(a){$(a)&&(Ge(a,"label"),Ge(a,"itemStyle"))})}),Nt(pr(t.toolbox),function(n){Ge(n,"iconStyle"),Nt(n.feature,function(i){Ge(i,"iconStyle")})}),De(Tg(t.axisPointer),"label"),De(Tg(t.tooltip).axisPointer,"label")}function gI(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 mI(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 Cg(t){t&&C(yI,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var yI=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],_I=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],df=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ki(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<df.length;r++){var n=df[r][1],i=df[r][0];e[n]!=null&&(e[i]=e[n])}}function Mg(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Dg(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function bI(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Fb(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Fb(t[r].children,e)}function zb(t,e){pI(t,e),t.series=et(t.series),C(t.series,function(r){if($(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),Mg(r.label);var i=r.data;if(i&&!rt(i))for(var a=0;a<i.length;a++)Mg(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=gI(r,"pointer.color");o!=null&&mI(r,"itemStyle.color",o)}else if(n==="bar"){Ki(r),Ki(r.backgroundStyle),Ki(r.emphasis);var i=r.data;if(i&&!rt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Ki(i[a]),Ki(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)),Dg(r),Fb(r.data,Dg)}else n==="graph"||n==="sankey"?bI(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&de(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Cg(r)}}),t.dataRange&&(t.visualMap=t.dataRange),C(_I,function(r){var n=t[r];n&&(U(n)||(n=[n]),C(n,function(i){Cg(i)}))})}function SI(t){var e=ie();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.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),C(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),xI(r)}})}function xI(t){C(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 v=o.get(e.stackedDimension,c);if(isNaN(v))return i;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var g=NaN,p=r-1;p>=0;p--){var m=t[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=mM(v,y),g=y;break}}}return n[0]=v,n[1]=g,n})})}var yt=(function(){function t(){this.group=new ke,this.uid=nu("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})();Ch(yt);El(yt);var Ag=Se(),Lg={itemStyle:Ea(y_,!0),lineStyle:Ea(m_,!0)},wI={lineStyle:"stroke",itemStyle:"fill"};function Hb(t,e){var r=t.visualStyleMapper||Lg[e];return r||(console.warn("Unknown style type '"+e+"'."),Lg.itemStyle)}function Gb(t,e){var r=t.visualDrawType||wI[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var TI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=Hb(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Gb(t,n),u=o[l],f=ne(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ne(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ne(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var g=t.getDataParams(d),p=B({},o);p[l]=f(g),h.setItemVisual(d,"style",p)}}}},Qi=new ye,CI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=Hb(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Qi.option=l[n];var u=i(Qi),f=o.ensureUniqueItemVisual(s,"style");B(f,u),Qi.option.decal&&(o.setItemVisual(s,"decal",Qi.option.decal),Qi.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},MI={performRawSeries:!0,overallReset:function(t){var e=ie();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)),Ag(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Ag(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Gb(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 v=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},Jo=Math.PI;function DI(t,e){e=e||{},de(e,{text:"loading",textColor:X.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:X.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ke,n=new Ce({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new We({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 Ce({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 po({shape:{startAngle:-Jo/2,endAngle:-Jo/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:Jo*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jo*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 Vb=(function(){function t(e,r,n,i){this._stageTaskMap=ie(),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=ie();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;C(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";ur(!(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;C(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var g=o.getPerformArgs(v,i.block);d.each(function(p){p.perform(g)}),v.perform(g)&&(a=!0)}else c&&c.each(function(p,m){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(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=ie(),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 v=c.uid,h=s.set(v,o&&o.get(v)||La({plan:PI,reset:EI,count:kI}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||La({reset:AI});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ie(),u=e.seriesType,f=e.getTargetSeries,c=!0,v=!1,h="";ur(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,C(n.getSeries(),d));function d(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(v=!0,La({reset:LI,onDirty:II})));m.context={model:g,overallProgress:c},m.agent=o,m.__block=c,a._pipe(g,m)}v&&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 ne(e)&&(e={overallReset:e,seriesType:NI(e)}),e.uid=nu("stageHandler"),r&&(e.visualType=r),e},t})();function AI(t){t.overallReset(t.ecModel,t.api,t.payload)}function LI(t){return t.overallProgress&&RI}function RI(){this.agent.dirty(),this.getDownstream().dirty()}function II(){this.agent&&this.agent.dirty()}function PI(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function EI(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=et(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?q(e,function(r,n){return Ub(n)}):OI}var OI=Ub(0);function Ub(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 kI(t){return t.data.count()}function NI(t){vl=null;try{t(qa,Wb)}catch{}return vl}var qa={},Wb={},vl;jb(qa,wv);jb(Wb,Bb);qa.eachSeriesByType=qa.eachRawSeriesByType=function(t){vl=t};qa.eachComponent=function(t){t.mainType==="series"&&t.subType&&(vl=t.subType)};function jb(t,e){for(var r in e.prototype)t[r]=Qe}var V=X.darkColor,BI=V.background,Ji=function(){return{axisLine:{lineStyle:{color:V.axisLine}},splitLine:{lineStyle:{color:V.axisSplitLine}},splitArea:{areaStyle:{color:[V.backgroundTint,V.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:V.axisMinorSplitLine}},axisLabel:{color:V.axisLabel},axisName:{}}},Rg={label:{color:V.secondary},itemStyle:{borderColor:V.borderTint},dividerLineStyle:{color:V.border}},Yb={darkMode:!0,color:V.theme,backgroundColor:BI,axisPointer:{lineStyle:{color:V.border},crossStyle:{color:V.borderShade},label:{color:V.tertiary}},legend:{textStyle:{color:V.secondary},pageTextStyle:{color:V.tertiary}},textStyle:{color:V.secondary},title:{textStyle:{color:V.primary},subtextStyle:{color:V.quaternary}},toolbox:{iconStyle:{borderColor:V.accent50}},tooltip:{backgroundColor:V.neutral20,defaultBorderColor:V.border,textStyle:{color:V.tertiary}},dataZoom:{borderColor:V.accent10,textStyle:{color:V.tertiary},brushStyle:{color:V.backgroundTint},handleStyle:{color:V.neutral00,borderColor:V.accent20},moveHandleStyle:{color:V.accent40},emphasis:{handleStyle:{borderColor:V.accent50}},dataBackground:{lineStyle:{color:V.accent30},areaStyle:{color:V.accent20}},selectedDataBackground:{lineStyle:{color:V.accent50},areaStyle:{color:V.accent30}}},visualMap:{textStyle:{color:V.secondary},handleStyle:{borderColor:V.neutral30}},timeline:{lineStyle:{color:V.accent10},label:{color:V.tertiary},controlStyle:{color:V.accent30,borderColor:V.accent30}},calendar:{itemStyle:{color:V.neutral00,borderColor:V.neutral20},dayLabel:{color:V.tertiary},monthLabel:{color:V.secondary},yearLabel:{color:V.secondary}},matrix:{x:Rg,y:Rg,backgroundColor:{borderColor:V.axisLine},body:{itemStyle:{borderColor:V.borderTint}}},timeAxis:Ji(),logAxis:Ji(),valueAxis:Ji(),categoryAxis:Ji(),line:{symbol:"circle"},graph:{color:V.theme},gauge:{title:{color:V.secondary},axisLine:{lineStyle:{color:[[1,V.neutral05]]}},axisLabel:{color:V.axisLabel},detail:{color:V.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:V.background}},radar:(function(){var t=Ji();return t.axisName={color:V.axisLabel},t.axisLine.lineStyle.color=V.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:V.neutral20,textStyle:{color:V.secondary}},emphasis:{itemStyle:{color:V.neutral30}}}},sunburst:{itemStyle:{borderColor:V.background}},map:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},label:{color:V.tertiary},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}}},geo:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{color:V.highlight}}}};Yb.categoryAxis.splitLine.show=!1;var FI=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(Y(e)){var a=tr(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[v.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,v,h,d){return c[h]==null||v[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),Gc=["symbol","symbolSize","symbolRotate","symbolOffset"],Ig=Gc.concat(["symbolKeepAspect"]),zI={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<Gc.length;o++){var s=Gc[o],l=t.get(s);ne(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(B({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=be(i);function f(c,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),g=0;g<u.length;g++){var p=u[g];c.setItemVisual(v,p,i[p](h,d))}}return{dataEach:a?f:null}}},HI={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<Ig.length;s++){var l=Ig[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function GI(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 VI(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 ma(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var UI=Math.round(Math.random()*9),WI=typeof Object.defineProperty=="function",jI=(function(){function t(){this._id="__ec_inner_"+UI++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return WI?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})();function On(t){return isFinite(t)}function YI(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=On(n)?n:0,i=On(i)?i:1,a=On(a)?a:0,o=On(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function $I(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=On(o)?o:.5,s=On(s)?s:.5,l=l>=0&&On(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Vc(t,e,r){for(var n=e.type==="radial"?$I(t,e,r):YI(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function qI(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 es(t){return parseInt(t,10)}function ts(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]||es(s[n])||es(t.style[n]))-(es(s[a])||0)-(es(s[o])||0)|0}function XI(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:ge(t)?[t]:U(t)?t:null}function $b(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&XI(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=q(r,function(a){return a/i}),n/=i)}return[r,n]}var ZI=new Di(!0);function dl(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Pg(t){return typeof t=="string"&&t!=="none"}function pl(t){var e=t.fill;return e!=null&&e!=="none"}function Eg(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 Og(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 Uc(t,e,r){var n=Yy(e.image,e.__image,r);if(Ol(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)*Vy),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function KI(t,e,r,n){var i,a=dl(r),o=pl(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||ZI,c=e.__dirty;if(!n){var v=r.fill,h=r.stroke,d=o&&!!v.colorStops,g=a&&!!h.colorStops,p=o&&!!v.image,m=a&&!!h.image,y=void 0,_=void 0,b=void 0,S=void 0,x=void 0;(d||g)&&(x=e.getBoundingRect()),d&&(y=c?Vc(t,v,x):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(_=c?Vc(t,h,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),p&&(b=c||!e.__canvasFillPattern?Uc(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=b),m&&(S=c||!e.__canvasStrokePattern?Uc(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?t.fillStyle=y:p&&(b?t.fillStyle=b:o=!1),g?t.strokeStyle=_:m&&(S?t.strokeStyle=S:a=!1)}var w=e.getGlobalScale();f.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,D;t.setLineDash&&r.lineDash&&(i=$b(e),T=i[0],D=i[1]);var A=!0;(u||c&di)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),A=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),A&&f.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=D),n||(r.strokeFirst?(a&&Og(t,r),o&&Eg(t,r)):(o&&Eg(t,r),a&&Og(t,r))),T&&t.setLineDash([])}function QI(t,e,r){var n=e.__image=Yy(r.image,e.__image,e,e.onload);if(!(!n||!Ol(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,v=s-f;t.drawImage(n,u,f,c,v,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function JI(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Kr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=$b(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(dl(r)&&t.strokeText(i,r.x,r.y),pl(r)&&t.fillText(i,r.x,r.y)):(pl(r)&&t.fillText(i,r.x,r.y),dl(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var kg=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ng=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function qb(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){ot(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Hn.opacity:o}(n||e.blend!==r.blend)&&(a||(ot(t,i),a=!0),t.globalCompositeOperation=e.blend||Hn.blend);for(var s=0;s<kg.length;s++){var l=kg[s];(n||e[l]!==r[l])&&(a||(ot(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(ot(t,i),a=!0),t.shadowColor=e.shadowColor||Hn.shadowColor),a}function Bg(t,e,r,n,i){var a=Xa(e,i.inHover),o=n?null:r&&Xa(r,i.inHover)||{};if(a===o)return!1;var s=qb(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ot(t,i),s=!0),Pg(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ot(t,i),s=!0),Pg(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ot(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||(ot(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<Ng.length;f++){var c=Ng[f],v=c[0];(n||a[v]!==o[v])&&(s||(ot(t,i),s=!0),t[v]=a[v]||c[1])}return s}function eP(t,e,r,n,i){return qb(t,Xa(e,i.inHover),r&&Xa(r,i.inHover),n,i)}function Xb(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 tP(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),Xb(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function rP(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 Fg=1,zg=2,Hg=3,Gg=4;function nP(t){var e=pl(t),r=dl(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 ot(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Xa(t,e){return e&&t.__hoverStyle||t.style}function Tv(t,e){kn(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function kn(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~vt,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||qI(a,o))&&(o&&o.length&&(ot(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(ot(t,r),t.save(),tP(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 pe&&e.autoBatch&&nP(e.style);s||rP(i,u.transform)?(ot(t,r),Xb(t,e)):f||ot(t,r);var c=Xa(e,r.inHover);e instanceof pe?(r.lastDrawType!==Fg&&(l=!0,r.lastDrawType=Fg),Bg(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),KI(t,e,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):e instanceof $s?(r.lastDrawType!==Hg&&(l=!0,r.lastDrawType=Hg),Bg(t,e,u,l,r),JI(t,e,c)):e instanceof Mr?(r.lastDrawType!==zg&&(l=!0,r.lastDrawType=zg),eP(t,e,u,l,r),QI(t,e,c)):e.getTemporalDisplayables&&(r.lastDrawType!==Gg&&(l=!0,r.lastDrawType=Gg),iP(t,e,r)),f&&n&&ot(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function iP(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(),kn(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(),kn(t,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var pf=new jI,Vg=new Ci(100),Ug=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Wc(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&pf.delete(t);var a=pf.get(t);if(a)return a;var o=de(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,pf.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,v=0;v<Ug.length;++v){var h=o[Ug[v]];if(h!=null&&!U(h)&&!Y(h)&&!ge(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var g=Vg.get(d);g&&(i?u.svgElement=g:u.image=g)}var p=Kb(o.dashArrayX),m=aP(o.dashArrayY),y=Zb(o.symbol),_=oP(p),b=Qb(m),S=!i&&Pt.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=D(),T;S&&(S.width=w.width*r,S.height=w.height*r,T=S.getContext("2d")),A(),c&&Vg.put(d,S||x),u.image=S,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function D(){for(var M=1,I=0,L=_.length;I<L;++I)M=Yd(M,_[I]);for(var R=1,I=0,L=y.length;I<L;++I)R=Yd(R,y[I].length);M*=R;var O=b*_.length*y.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(O,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,S.width,S.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,S.width,S.height)));for(var M=0,I=0;I<m.length;++I)M+=m[I];if(M<=0)return;for(var L=-b,R=0,O=0,k=0;L<w.height;){if(R%2===0){for(var j=O/2%y.length,N=0,H=0,W=0;N<w.width*2;){for(var z=0,I=0;I<p[k].length;++I)z+=p[k][I];if(z<=0)break;if(H%2===0){var F=(1-o.symbolSize)*.5,Q=N+p[k][H]*F,ue=L+m[R]*F,Ie=p[k][H]*o.symbolSize,ct=m[R]*o.symbolSize,Ye=W/2%y[j].length;ze(Q,ue,Ie,ct,y[j][Ye])}N+=p[k][H],++W,++H,H===p[k].length&&(H=0)}++k,k===p.length&&(k=0)}L+=m[R],++O,++R,R===m.length&&(R=0)}function ze(Ne,Me,J,oe,$t){var Pe=i?1:r,Rr=Ni($t,Ne*Pe,Me*Pe,J*Pe,oe*Pe,o.color,o.symbolKeepAspect);if(i){var vr=n.painter.renderOneToVNode(Rr);vr&&x.children.push(vr)}else Tv(T,Rr)}}}}function Zb(t){if(!t||t.length===0)return[["rect"]];if(Y(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!Y(t[r])){e=!1;break}if(e)return Zb([t]);for(var n=[],r=0;r<t.length;++r)Y(t[r])?n.push([t[r]]):n.push(t[r]);return n}function Kb(t){if(!t||t.length===0)return[[0,0]];if(ge(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!ge(t[n])){r=!1;break}if(r)return Kb([t]);for(var i=[],n=0;n<t.length;++n)if(ge(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=q(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function aP(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(ge(t)){var e=Math.ceil(t);return[e,e]}var r=q(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function oP(t){return q(t,function(e){return Qb(e)})}function Qb(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function sP(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=Wc(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Wc(i,e)}}})}var zt=new hr,Jb={};function lP(t,e){Jb[t]=e}function eS(t){return Jb[t]}var uP="6.0.0",fP={zrender:"6.0.0"},cP=1,hP=800,vP=900,dP=1e3,pP=2e3,gP=5e3,tS=1e3,mP=1100,Cv=2e3,rS=3e3,yP=4e3,au=4500,_P=4600,bP=5e3,SP=6e3,nS=7e3,iS={PROCESSOR:{FILTER:dP,SERIES_FILTER:hP,STATISTIC:gP},VISUAL:{LAYOUT:tS,PROGRESSIVE_LAYOUT:mP,GLOBAL:Cv,CHART:rS,POST_CHART_LAYOUT:_P,COMPONENT:yP,BRUSH:bP,CHART_ITEM:au,ARIA:SP,DECAL:nS}},Re="__flagInMainProcess",rs="__mainProcessVersion",Ee="__pendingUpdate",gf="__needsUpdateStatus",Wg=/^[a-zA-Z0-9_]+$/,mf="__connectUpdateStatus",jg=0,xP=1,wP=2;function aS(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return sS(this,t,e)}}function oS(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return sS(this,t,e)}}function sS(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),hr.prototype[e].apply(t,r)}var lS=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(hr),uS=lS.prototype;uS.on=oS("on");uS.off=oS("off");var Dn,yf,ns,gr,is,_f,bf,fi,ci,Yg,$g,Sf,qg,as,Xg,fS,St,Zg,hi,gl=(function(t){G(e,t);function e(r,n,i){var a=t.call(this,new FI)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r;var o="canvas",s="auto",l=!1;a[rs]=1,i.ssr&&Ob(function(v){var h=ce(v),d=h.dataIndex;if(d!=null){var g=ie();return g.set("series_index",h.seriesIndex),g.set("data_index",d),h.ssrType&&g.set("ssr_type",h.ssrType),g}});var u=a._zr=zc(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Z(i.useDirtyRect,l),useCoarsePointer:Z(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=iu(ve(u.flush,u),17),a._updateTheme(n),a._locale=eL(i.locale||U_),a._coordSysMgr=new tu;var f=a._api=Xg(a);function c(v,h){return v.__prio-h.__prio}return Is(yl,c),Is($c,c),a._scheduler=new Vb(a,f,$c,yl),a._messageCenter=new lS,a._initEvents(),a.resize=ve(a.resize,a),u.animation.on("frame",a._onframe,a),Yg(u,a),$g(u,a),Bs(a),a}return e.prototype._onframe=function(){if(!this._disposed){Zg(this);var r=this._scheduler;if(this[Ee]){var n=this[Ee].silent;this[Re]=!0,hi(this);try{Dn(this),gr.update.call(this,null,this[Ee].updateParams)}catch(l){throw this[Re]=!1,this[Ee]=null,l}this._zr.flush(),this[Re]=!1,this[Ee]=null,fi.call(this,n),ci.call(this,n)}else if(r.unfinished){var i=cP,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),_f(this,a),r.performVisualTasks(a),as(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[Re]){if(this._disposed){this.id;return}var a,o,s;if($(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Re]=!0,hi(this),!this._model||n){var l=new uI(this._api),u=this._theme,f=this._model=new wv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},qc);var c={seriesTransition:s,optionChanged:!0};if(i)this[Ee]={silent:a,updateParams:c},this[Re]=!1,this.getZr().wakeUp();else{try{Dn(this),gr.update.call(this,null,c)}catch(v){throw this[Ee]=null,this[Re]=!1,v}this._ssr||this._zr.flush(),this[Ee]=null,this[Re]=!1,fi.call(this,a),ci.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[Re]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[Ee]&&(a==null&&(a=this[Ee].silent),o=this[Ee].updateParams,this[Ee]=null),this[Re]=!0,hi(this);try{this._updateTheme(r),i.setTheme(this._theme),Dn(this),gr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Re]=!1,s}this[Re]=!1,fi.call(this,a),ci.call(this,a)}}},e.prototype._updateTheme=function(r){Y(r)&&(r=cS[r]),r&&(r=ae(r),r&&zb(r,!0),this._theme=r)},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||ee.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(){var r=this._zr,n=r.storage.getDisplayList();return C(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;C(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 C(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(_l[i]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();C(Un,function(_,b){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ae(r)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),f=o(x.right,f),c=o(x.bottom,c),v.push({dom:S,left:x.left,top:x.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,g=c-u,p=Pt.createCanvas(),m=zc(p,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:g}),n){var y="";return C(v,function(_){var b=_.left-l,S=_.top-u;y+='<g transform="translate('+b+","+S+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Ce({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),C(v,function(_){var b=new Mr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return is(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return is(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return is(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Eu(i,r);return C(o,function(s,l){l.indexOf("Models")>=0&&C(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=Eu(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?GI(s,l,n):VI(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;C(TP,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&ma(l,function(g){var p=ce(g);if(p&&p.dataIndex!=null){var m=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return u=m&&m.getDataParams(p.dataIndex,p.dataType,l)||{},!0}else if(p.eventData)return u=B({},p.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;C(Yc,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),Z2(n,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&&O0(this.getDom(),Dv,"");var n=this,i=n._api,a=n._model;C(n._componentsViews,function(o){o.dispose(a,i)}),C(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 Un[n.id]},e.prototype.resize=function(r){if(!this[Re]){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[Ee]&&(a==null&&(a=this[Ee].silent),i=!0,this[Ee]=null),this[Re]=!0,hi(this);try{i&&Dn(this),gr.update.call(this,{type:"resize",animation:B({duration:0},r&&r.animation)})}catch(o){throw this[Re]=!1,o}this[Re]=!1,fi.call(this,a),ci.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if($(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Xc[r]){var i=Xc[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=B({},r);return n.type=jc[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if($(n)||(n={silent:!!n}),!!ml[r.type]&&this._model){if(this[Re]){this._pendingActions.push(r);return}var i=n.silent;bf.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ee.browser.weChat&&this._throttledZrFlush(),fi.call(this,i),ci.call(this,i)}},e.prototype.updateLabelLayout=function(){zt.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(){Dn=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),yf(c,!0),yf(c,!1),v.plan()},yf=function(c,v){for(var h=c._model,d=c._scheduler,g=v?c._componentsViews:c._chartsViews,p=v?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<g.length;_++)g[_].__alive=!1;v?h.eachComponent(function(x,w){x!=="series"&&b(w)}):h.eachSeries(b);function b(x){var w=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,D=!w&&p[T];if(!D){var A=tr(x.type),M=v?yt.getClass(A.main,A.sub):mt.getClass(A.sub);D=new M,D.init(h,y),p[T]=D,g.push(D),m.add(D.group)}x.__viewId=D.__id=T,D.__alive=!0,D.__model=x,D.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!v&&d.prepareView(D,x,h,y)}for(var _=0;_<g.length;){var S=g[_];S.__alive?_++:(!v&&S.renderTask.dispose(),m.remove(S.group),S.dispose(h,y),g.splice(_,1),p[S.__id]===S&&delete p[S.__id],S.__id=S.group.__ecComponentInfo=null)}},ns=function(c,v,h,d,g){var p=c._model;if(p.setUpdatePayload(h),!d){C([].concat(c._componentsViews).concat(c._chartsViews),S);return}var m={};m[d+"Id"]=h[d+"Id"],m[d+"Index"]=h[d+"Index"],m[d+"Name"]=h[d+"Name"];var y={mainType:d,query:m};g&&(y.subType=g);var _=h.excludeSeriesId,b;_!=null&&(b=ie(),C(et(_),function(x){var w=ar(x,null);w!=null&&b.set(w,!0)})),p&&p.eachComponent(y,function(x){var w=b&&b.get(x.id)!=null;if(!w)if(tp(h))if(x instanceof ft)h.type===Gn&&!h.notBlur&&!x.get(["emphasis","disabled"])&&ZM(x,h,c._api);else{var T=Hh(x.mainType,x.componentIndex,h.name,c._api),D=T.focusSelf,A=T.dispatchers;h.type===Gn&&D&&!h.notBlur&&yc(x.mainType,x.componentIndex,c._api),A&&C(A,function(M){h.type===Gn?Qs(M):Js(M)})}else bc(h)&&x instanceof ft&&(JM(x,h,c._api),Jd(x),St(c))},c),p&&p.eachComponent(y,function(x){var w=b&&b.get(x.id)!=null;w||S(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function S(x){x&&x.__alive&&x[v]&&x[v](x.__model,p,c._api,h)}},gr={prepareAndUpdate:function(c){Dn(this),gr.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,v){var h=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(c),m.restoreData(h,c),m.performSeriesTasks(h),p.create(h,d),m.performDataProcessorTasks(h,c),_f(this,h),p.update(h,d),n(h),m.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";g.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),Sf(this,h,d,c,v),zt.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=this._model,d=this._api;if(h){h.setUpdatePayload(c);var g=[];h.eachComponent(function(m,y){if(m!=="series"){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,h,d,c);b&&b.update&&g.push(_)}else g.push(_)}});var p=ie();h.eachSeries(function(m){var y=v._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,h,d,c);_&&_.update&&p.set(m.uid,1)}else p.set(m.uid,1)}),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:p}),as(this,h,d,c,{},p),zt.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),mt.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),Sf(this,v,this._api,c,{}),zt.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),mt.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,g){if(d!=="series"){var p=v.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,h,v._api,c)}}),h.eachSeries(function(d){var g=v._chartsMap[d.__viewId];g.updateVisual(d,h,v._api,c)}),zt.trigger("afterupdate",h,this._api))},updateLayout:function(c){gr.update.call(this,c)}};function r(c,v,h,d,g){if(c._disposed){c.id;return}for(var p=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=Eu(p,h),b=0;b<m.length;b++){var S=m[b];if(S[v]&&(y=S[v](p,_,d,g))!=null)return y}}is=r,_f=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(g){d.updateStreamModes(g,h[g.__viewId])})},bf=function(c,v){var h=this,d=this.getModel(),g=c.type,p=c.escapeConnect,m=ml[g],y=(m.update||"update").split(":"),_=y.pop(),b=y[0]!=null&&tr(y[0]);this[Re]=!0,hi(this);var S=[c],x=!1;c.batch&&(x=!0,S=q(c.batch,function(k){return k=de(B({},k),c),k.batch=null,k}));var w=[],T,D=[],A=m.nonRefinedEventType,M=bc(c),I=tp(c);if(I&&W0(this._api),C(S,function(k){var j=m.action(k,d,h._api);if(m.refineEvent?D.push(j):T=j,T=T||B({},k),T.type=A,w.push(T),I){var N=Oh(c),H=N.queryOptionMap,W=N.mainTypeSpecified,z=W?H.keys()[0]:"series";ns(h,_,k,z),St(h)}else M?(ns(h,_,k,"series"),St(h)):b&&ns(h,_,k,b.main,b.sub)}),_!=="none"&&!I&&!M&&!b)try{this[Ee]?(Dn(this),gr.update.call(this,c),this[Ee]=null):gr[_].call(this,c)}catch(k){throw this[Re]=!1,k}if(x?T={type:A,escapeConnect:p,batch:w}:T=w[0],this[Re]=!1,!v){var L=void 0;if(m.refineEvent){var R=m.refineEvent(D,c,d,this._api).eventContent;ur($(R)),L=de({type:m.refinedEventType},R),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var O=this._messageCenter;O.trigger(T.type,T),L&&O.trigger(L.type,L)}},fi=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();bf.call(this,h,c)}},ci=function(c){!c&&this.trigger("updated")},Yg=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[Ee]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},$g=function(c,v){c.on("mouseover",function(h){var d=h.target,g=ma(d,_c);g&&(KM(g,h,v._api),St(v))}).on("mouseout",function(h){var d=h.target,g=ma(d,_c);g&&(QM(g,h,v._api),St(v))}).on("click",function(h){var d=h.target,g=ma(d,function(y){return ce(y).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",m=ce(g);v._api.dispatchAction({type:p,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function i(c){var v=[],h=[],d=!1;if(c.eachComponent(function(y,_){var b=_.get("zlevel")||0,S=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(y==="series"?h:v).push({zlevel:b,z:S,idx:_.componentIndex,type:y,key:x})}),d){var g=v.concat(h),p,m;Is(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),C(g,function(y){var _=c.getComponent(y.type,y.idx),b=y.zlevel,S=y.key;p!=null&&(b=Math.max(p,b)),S?(b===p&&S!==m&&b++,m=S):m&&(b===p&&b++,m=""),p=b,_.setZLevel(b)})}}Sf=function(c,v,h,d,g){i(v),qg(c,v,h,d,g),C(c._chartsViews,function(p){p.__alive=!1}),as(c,v,h,d,g),C(c._chartsViews,function(p){p.__alive||p.remove(v,h)})},qg=function(c,v,h,d,g,p){C(p||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,v,h,d),l(y,m),f(y,m)})},as=function(c,v,h,d,g,p){var m=c._scheduler;g=B(g||{},{updatedSeries:v.getSeries()}),zt.trigger("series:beforeupdate",v,h,g);var y=!1;v.eachSeries(function(_){var b=c._chartsMap[_.__viewId];b.__alive=!0;var S=b.renderTask;m.updatePayload(S,d),u(_,b),p&&p.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),b.group.silent=!!_.get("silent"),s(_,b),Jd(_)}),m.unfinished=y||m.unfinished,zt.trigger("series:layoutlabels",v,h,g),zt.trigger("series:transition",v,h,g),v.eachSeries(function(_){var b=c._chartsMap[_.__viewId];l(_,b),f(_,b)}),o(c,v),zt.trigger("series:afterupdate",v,h,g)},St=function(c){c[gf]=!0,c.getZr().wakeUp()},hi=function(c){c[rs]=(c[rs]+1)%1e3},Zg=function(c){c[gf]&&(c.getZr().storage.traverse(function(v){Ta(v)||a(v)}),c[gf]=!1)};function a(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var g=h[d];g==="emphasis"||g==="blur"||g==="select"||v.push(g)}c.selected&&c.states.select&&v.push("select"),c.hoverState===Bh&&c.states.emphasis?v.push("emphasis"):c.hoverState===Nh&&c.states.blur&&v.push("blur"),c.useStates(v)}function o(c,v){var h=c._zr,d=h.storage,g=0;d.traverse(function(p){p.isGroup||g++}),g>v.get("hoverLayerThreshold")&&!ee.node&&!ee.worker&&v.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=c._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=d_(c);v.eachRendered(function(d){return p_(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!Ta(h)){var d=h.getTextContent(),g=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),g=h.get("duration"),p=g>0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ta(m))return;if(m instanceof pe&&aD(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=p;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}m.__dirty&&a(m)}})}Xg=function(c){return new((function(v){G(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);d=d.parent}},h.prototype.enterEmphasis=function(d,g){Qs(d,g),St(c)},h.prototype.leaveEmphasis=function(d,g){Js(d,g),St(c)},h.prototype.enterBlur=function(d){XM(d),St(c)},h.prototype.leaveBlur=function(d){H0(d),St(c)},h.prototype.enterSelect=function(d){G0(d),St(c)},h.prototype.leaveSelect=function(d){V0(d),St(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getMainProcessVersion=function(){return c[rs]},h})(Bb))(c)},fS=function(c){function v(h,d){for(var g=0;g<h.length;g++){var p=h[g];p[mf]=d}}C(jc,function(h,d){c._messageCenter.on(d,function(g){if(_l[c.group]&&c[mf]!==jg){if(g&&g.escapeConnect)return;var p=c.makeActionFromEvent(g),m=[];C(Un,function(y){y!==c&&y.group===c.group&&m.push(y)}),v(m,jg),C(m,function(y){y[mf]!==xP&&y.dispatchAction(p)}),v(m,wP)}})})}})(),e})(hr),Mv=gl.prototype;Mv.on=aS("on");Mv.off=aS("off");Mv.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 TP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var ml={},jc={},Yc={},$c=[],qc=[],yl=[],cS={},Xc={},Un={},_l={},CP=+new Date-0,MP=+new Date-0,Dv="_echarts_instance_";function DP(t,e,r){var n=!(r&&r.ssr);if(n){var i=Av(t);if(i)return i}var a=new gl(t,e,r);return a.id="ec_"+CP++,Un[a.id]=a,n&&O0(t,Dv,a.id),fS(a),zt.trigger("afterinit",a),a}function AP(t){if(U(t)){var e=t;t=null,C(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+MP++,C(e,function(r){r.group=t})}return _l[t]=!0,t}function hS(t){_l[t]=!1}var LP=hS;function RP(t){Y(t)?t=Un[t]:t instanceof gl||(t=Av(t)),t instanceof gl&&!t.isDisposed()&&t.dispose()}function Av(t){return Un[BM(t,Dv)]}function IP(t){return Un[t]}function Lv(t,e){cS[t]=e}function Rv(t){se(qc,t)<0&&qc.push(t)}function Iv(t,e){Pv($c,t,e,pP)}function vS(t){ou("afterinit",t)}function dS(t){ou("afterupdate",t)}function ou(t,e){zt.on(t,e)}function Xn(t,e,r){var n,i,a,o,s;ne(e)&&(r=e,e=""),$(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;ml[n]||(ur(Wg.test(n)&&Wg.test(i)),a&&ur(i!==n),ml[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},Yc[i]=1,a&&s&&(Yc[u]=1),jc[u]=n)}function pS(t,e){tu.register(t,e)}function PP(t){var e=tu.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function EP(t,e){}function gS(t,e){Pv(yl,t,e,tS,"layout")}function nn(t,e){Pv(yl,t,e,rS,"visual")}var Kg=[];function Pv(t,e,r,n,i){if((ne(e)||$(e))&&(r=e,e=n),!(se(Kg,r)>=0)){Kg.push(r);var a=Vb.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function Ev(t,e){Xc[t]=e}function OP(t){Ey({createCanvas:t})}function mS(t,e,r){var n=eS("registerMap");n&&n(t,e,r)}function kP(t){var e=eS("getMap");return e&&e(t)}var yS=kL;nn(Cv,TI);nn(au,CI);nn(au,MI);nn(Cv,zI);nn(au,HI);nn(nS,sP);Rv(zb);Iv(vP,SI);Ev("default",DI);Xn({type:Gn,event:Gn,update:Gn},Qe);Xn({type:ws,event:ws,update:ws},Qe);Xn({type:Zs,event:Fh,update:Zs,action:Qe,refineEvent:Ov,publishNonRefinedEvent:!0});Xn({type:gc,event:Fh,update:gc,action:Qe,refineEvent:Ov,publishNonRefinedEvent:!0});Xn({type:Ks,event:Fh,update:Ks,action:Qe,refineEvent:Ov,publishNonRefinedEvent:!0});function Ov(t,e,r,n){return{eventContent:{selected:eD(r),isFromClick:e.isFromClick||!1}}}Lv("default",{});Lv("dark",Yb);var NP={},Qg=[],BP={registerPreprocessor:Rv,registerProcessor:Iv,registerPostInit:vS,registerPostUpdate:dS,registerUpdateLifecycle:ou,registerAction:Xn,registerCoordinateSystem:pS,registerLayout:gS,registerVisual:nn,registerTransform:yS,registerLoading:Ev,registerMap:mS,registerImpl:lP,PRIORITY:iS,ComponentModel:fe,ComponentView:yt,SeriesModel:ft,ChartView:mt,registerComponentModel:function(t){fe.registerClass(t)},registerComponentView:function(t){yt.registerClass(t)},registerSeriesModel:function(t){ft.registerClass(t)},registerChartView:function(t){mt.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){fe.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Eb(t,e)}};function cr(t){if(U(t)){C(t,function(e){cr(e)});return}se(Qg,t)>=0||(Qg.push(t),ne(t)&&(t={install:t}),t.install(BP))}var FP=(function(t){G(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.getInitialData=function(r,n){return ru(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:X.color.primary}},universalTransition:{divideShape:"clone"}},e})(ft),_S=4,zP=(function(){function t(){}return t})(),HP=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new zP},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<_S,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var v=i[c++],h=i[c++];isNaN(v)||isNaN(h)||f&&!f.contain(v,h)||(s.x=v-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,v=a[f+1]-l/2;if(r>=c&&n>=v&&r<=c+s&&n<=v+l)return u}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,v=0;v<i.length;){var h=i[v++],d=i[v++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new te(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e})(pe),GP=(function(){function t(){this.group=new ke}return t.prototype.updateData=function(e,r){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;r=new Float32Array(r.buffer,a,i)}n.setShape("points",r),n.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n){var i=this._newAdded[0],a=r.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new HP({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=Ni(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<_S;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ce(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),VP=(function(t){G(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=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=fb("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new GP:new p2,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(mt),bS={left:0,right:0,top:0,bottom:0},bl=["25%","25%"],UP=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=yo(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&en(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&en(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:bS,outerBoundsContain:"all",outerBoundsClampWidth:bl[0],outerBoundsClampHeight:bl[1],backgroundColor:X.color.transparent,borderWidth:1,borderColor:X.color.neutral30},e})(fe),SS=(function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t})(),Zc=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Lt).models[0]},e.type="cartesian2dAxis",e})(fe);Et(Zc,SS);var xS={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:X.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:X.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:X.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[X.color.backgroundTint,X.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:X.color.neutral00,borderColor:X.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},WP=le({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},xS),kv=le({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:X.color.axisMinorSplitLine,width:1}}},xS),jP=le({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},kv),YP=de({logBase:10},kv);const $P={category:WP,value:kv,time:jP,log:YP};var qP=0,Kc=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++qP,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&q(n,XP);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Y(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ie(this.categories))},t})();function XP(t){return $(t)&&t.value!=null?t.value:t+""}var ZP={value:1,category:1,time:1,log:1},KP=null;function QP(){return KP}function Jg(t,e,r,n){C(ZP,function(i,a){var o=le(le({},$P[a],!0),n,!0),s=(function(l){G(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=ja(this),h=v?yo(f):{},d=c.getTheme();le(f,d.get(a+"Axis")),le(f,this.getDefaultOption()),f.type=em(f),v&&en(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Kc.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",em)}function em(t){return t.type||(t.data?"category":"value")}function Qc(t){return t.type==="interval"||t.type==="log"}function JP(t,e,r,n,i){var a={},o=a.interval=Ph(e/r,!0);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=Za(o),l=a.niceTickExtent=[Ue(Math.ceil(t[0]/o)*o,s),Ue(Math.floor(t[1]/o)*o,s)];return eE(l,t),a}function xf(t){var e=Math.pow(10,Hl(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ue(r*e)}function Za(t){return Ai(t)+2}function tm(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function eE(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),tm(t,0,e),tm(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Nv(t,e){return t>=e[0]&&t<=e[1]}var tE=(function(){function t(){this.normalize=rm,this.scale=nm}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=ve(e.normalize,e),this.scale=ve(e.scale,e)):(this.normalize=rm,this.scale=nm)},t})();function rm(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function nm(t,e){return t*(e[1]-e[0])+e[0]}function Jc(t,e,r){var n=Math.log(t);return[Math.log(r?e[0]:Math.max(0,e[0]))/n,Math.log(r?e[1]:Math.max(0,e[1]))/n]}var an=(function(){function t(e){this._calculator=new tE,this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var r=this._extent;this._innerSetExtent(e[0]<r[0]?e[0]:r[0],e[1]>r[1]?e[1]:r[1])},t.prototype.unionExtentFromData=function(e,r){this._innerUnionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){this._innerSetExtent(e,r)},t.prototype._innerSetExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(e){},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();El(an);var wS=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Kc({})),U(i)&&(i=new Kc({categories:q(i,function(a){return $(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:Y(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return Nv(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},e.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(an);an.registerClass(wS);var kr=Ue,Ii=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.contain=function(r){return Nv(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Za(r)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=al(),l=[];if(!n)return l;r.breakTicks;var u=1e4;i[0]<a[0]&&(r.expandToNicedExtent?l.push({value:kr(a[0]-n,o)}):l.push({value:i[0]}));for(var f=function(d,g){return Math.round((g-d)/n)},c=a[0];c<=a[1];){if(l.push({value:c}),c=kr(c+n,o),this._brkCtx){var v=this._brkCtx.calcNiceTickMultiple(c,f);v>=0&&(c=kr(c+v*n,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var h=l.length?l[l.length-1].value:a[1];return i[1]>h&&(r.expandToNicedExtent?l.push({value:kr(h+n,o)}):l.push({value:i[1]})),r.breakTicks,l},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,f=[],c=s.value-l.value,v=c/r,h=Za(v);u<r-1;){var d=kr(l.value+(u+1)*v,h);d>a[0]&&d<a[1]&&f.push(d),u++}var g=al();g&&g.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(p){return p},this._interval,a),i.push(f)}}return i},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Ai(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=kr(r.value,i,!0);return hv(a)},e.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=JP(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=kr(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=kr(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e})(an);an.registerClass(Ii);var rE=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},TS=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return go(r.value,Rp[fL(Da(this._minLevelUnit))]||Rp.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return cL(r,n,i,o,a)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=[];if(!n)return a;var o=this.getSetting("useUTC"),s=ol(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=fE(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(l);var u=ol(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=Vn.length-1,c=0;return C(a,function(v){f=Math.min(f,se(Vn,v.time.upperTimeUnit)),c=Math.max(c,v.time.level)}),a},e.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=Rt,n[1]+=Rt),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Rt}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=os.length,s=Math.min(rE(os,this._approxInterval,0,o),o-1);this._interval=os[s][1],this._intervalPrecision=Za(this._interval),this._minLevelUnit=os[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return ge(r)?r:+Dr(r)},e.prototype.contain=function(r){return Nv(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.type="time",e})(Ii),os=[["second",iv],["minute",av],["hour",Ma],["quarter-day",Ma*6],["half-day",Ma*12],["day",Rt*1.2],["half-week",Rt*3.5],["week",Rt*7],["month",Rt*31],["quarter",Rt*95],["half-year",Lp/2],["year",Lp]];function nE(t,e,r,n){return sl(new Date(e),t,n).getTime()===sl(new Date(r),t,n).getTime()}function iE(t,e){return t/=Rt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function aE(t){var e=30*Rt;return t/=e,t>6?6:t>3?3:t>2?2:1}function oE(t){return t/=Ma,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function im(t,e){return t/=e?av:iv,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function sE(t){return Ph(t,!0)}function lE(t,e,r){var n=Math.max(0,se(Vn,e)-1);return sl(new Date(t),Vn[n],r).getTime()}function uE(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function fE(t,e,r,n,i,a){var o=1e4,s=oL,l=0;function u(L,R,O,k,j,N,H){for(var W=uE(j,L),z=R,F=new Date(z);z<O&&z<=n[1]&&(H.push({value:z}),!(l++>o));)if(F[j](F[k]()+L),z=F.getTime(),a){var Q=a.calcNiceTickMultiple(z,W);Q>0&&(F[j](F[k]()+Q*L),z=F.getTime())}H.push({value:z,notAdd:!0})}function f(L,R,O){var k=[],j=!R.length;if(!nE(Da(L),n[0],n[1],r)){j&&(R=[{value:lE(n[0],L,r)},{value:n[1]}]);for(var N=0;N<R.length-1;N++){var H=R[N].value,W=R[N+1].value;if(H!==W){var z=void 0,F=void 0,Q=void 0,ue=!1;switch(L){case"year":z=Math.max(1,Math.round(e/Rt/365)),F=W_(r),Q=hL(r);break;case"half-year":case"quarter":case"month":z=aE(e),F=ov(r),Q=j_(r);break;case"week":case"half-week":case"day":z=iE(e),F=sv(r),Q=Y_(r),ue=!0;break;case"half-day":case"quarter-day":case"hour":z=oE(e),F=lv(r),Q=$_(r);break;case"minute":z=im(e,!0),F=uv(r),Q=q_(r);break;case"second":z=im(e,!1),F=fv(r),Q=X_(r);break;case"millisecond":z=sE(e),F=cv(r),Q=Z_(r);break}W>=n[0]&&H<=n[1]&&u(z,H,W,F,Q,ue,k),L==="year"&&O.length>1&&N===0&&O.unshift({value:O[0].value-z})}}for(var N=0;N<k.length;N++)O.push(k[N])}}for(var c=[],v=[],h=0,d=0,g=0;g<s.length;++g){var p=Da(s[g]);if(uL(s[g])){f(s[g],c[c.length-1]||[],v);var m=s[g+1]?Da(s[g+1]):null;if(p!==m){if(v.length){d=h,v.sort(function(L,R){return L.value-R.value});for(var y=[],_=0;_<v.length;++_){var b=v[_].value;(_===0||v[_-1].value!==b)&&(y.push(v[_]),b>=n[0]&&b<=n[1]&&h++)}var S=i/e;if(h>S*1.5&&d>S/1.5||(c.push(y),h>S||t===s[g]))break}v=[]}}}for(var x=Ae(q(c,function(L){return Ae(L,function(R){return R.value>=n[0]&&R.value<=n[1]&&!R.notAdd})}),function(L){return L.length>0}),w=[],T=x.length-1,g=0;g<x.length;++g)for(var D=x[g],A=0;A<D.length;++A){var M=ol(D[A].value,r);w.push({value:D[A].value,time:{level:T-g,upperTimeUnit:M,lowerTimeUnit:M}})}w.sort(function(L,R){return L.value-R.value});for(var I=[],g=0;g<w.length;++g)(g===0||w[g].value!==w[g-1].value)&&I.push(w[g]);return I}an.registerClass(TS);var eh=Ue,cE=Math.floor,hE=Math.ceil,ss=Math.pow,ls=Math.log,CS=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ii,r}return e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=t.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),q(a,function(s){var l=s.value,u=null,f=ss(o,l);l===n[0]&&this._fixMin?u=i[0]:l===n[1]&&this._fixMax&&(u=i[1]);var c;return u!=null&&(f=wf(f,u)),{value:f,break:c}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=Jc(this.base,[r,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=ss(r,n[0]),n[1]=ss(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=wf(n[0],i[0])),this._fixMax&&(n[1]=wf(n[1],i[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=Jc(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=D0(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[eh(hE(n[0]/a)*a),eh(cE(n[1]/a)*a)];this._interval=a,this._intervalPrecision=Za(a),this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){t.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.contain=function(r){return r=ls(r)/ls(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=ls(r)/ls(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),ss(this.base,r)},e.prototype.setBreaksFromOption=function(r){},e.type="log",e})(Ii);function wf(t,e){return eh(t,Ai(e))}an.registerClass(CS);var vE=(function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;ne(o)?this._modelMinNum=us(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=us(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(ne(s)?this._modelMaxNum=us(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=us(e,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=U(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Qr(u[0],1),Qr(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?i?0:NaN:r-a[0]*o),l==null&&(l=e?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Ti(s)||Ti(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},t.prototype.modifyDataMinMax=function(e,r){this[pE[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=dE[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t})(),dE={min:"_determinedMin",max:"_determinedMax"},pE={min:"_dataMin",max:"_dataMax"};function gE(t,e,r){var n=t.rawExtentInfo;return n||(n=new vE(t,e,r),t.rawExtentInfo=n,n)}function us(t,e){return e==null?null:Ti(e)?NaN:t.parse(e)}function MS(t,e){var r=t.type,n=gE(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=hb("bar",o),l=!1;if(C(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=vb(s),f=mE(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function mE(t,e,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=R2(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;C(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;C(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,c=1-(s+l)/a,v=f/c-f;return e+=v*(l/u),t-=v*(s/u),{min:t,max:e}}function th(t,e){var r=e,n=MS(t,r),i=n.extent,a=r.get("splitNumber");t instanceof CS&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setBreaksFromOption(LS(r)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function DS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new wS({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new TS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(an.getClass(e)||Ii)}}function yE(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function _o(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=sL(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(Y(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(ne(e)){if(t.type==="category")return function(i,a){return e(Sl(t,i),i.value-t.scale.getExtent()[0],null)};var n=al();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Sl(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Sl(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function Bv(t){var e=t.get("interval");return e??"auto"}function AS(t){return t.type==="category"&&Bv(t.getLabelModel())===0}function _E(t,e){var r={};return C(t.mapDimensionsAll(e),function(n){r[H_(t,n)]=!0}),be(r)}function Pi(t){return t==="middle"||t==="center"}function Ka(t){return t.getShallow("show")}function LS(t){var e=t.get("breaks",!0);e==null}var bE=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return q(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ae(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),rh=["x","y"];function am(t){return(t.type==="interval"||t.type==="time")&&!t.hasBreaks()}var SE=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=rh,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!am(r)||!am(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-i[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=Yn([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new te(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Je(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return Je(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new te(a,o,s,l)},e})(bE),xE=Se(),Ra=Se(),Wt={estimate:1,determine:2};function xl(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function RS(t,e){var r=q(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function wE(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=_o(t),i=t.scale.getExtent(),a=RS(t,r),o=Ae(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:q(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:t.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return t.type==="category"?CE(t,e):DE(t)}function TE(t,e,r){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent(),a=RS(t,n);return{ticks:Ae(a,function(o){return o>=i[0]&&o<=i[1]})}}return t.type==="category"?ME(t,e):{ticks:q(t.scale.getTicks(r),function(o){return o.value})}}function CE(t,e){var r=t.getLabelModel(),n=IS(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function IS(t,e,r){var n=LE(t),i=Bv(e),a=r.kind===Wt.estimate;if(!a){var o=ES(n,i);if(o)return o}var s,l;ne(i)?s=NS(t,i):(l=i==="auto"?RE(t,r):i,s=kS(t,l));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return nh(n,i,u),!0}):nh(n,i,u),u}function ME(t,e){var r=AE(t),n=Bv(e),i=ES(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ne(n))a=NS(t,n,!0);else if(n==="auto"){var s=IS(t,t.getLabelModel(),xl(Wt.determine));o=s.labelCategoryInterval,a=q(s.labels,function(l){return l.tickValue})}else o=n,a=kS(t,o,!0);return nh(r,n,{ticks:a,tickCategoryInterval:o})}function DE(t){var e=t.scale.getTicks(),r=_o(t);return{labels:q(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var AE=PS("axisTick"),LE=PS("axisLabel");function PS(t){return function(r){return Ra(r)[t]||(Ra(r)[t]={list:[]})}}function ES(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function nh(t,e,r){return t.list.push({key:e,value:r}),r}function RE(t,e){if(e.kind===Wt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Ra(t).autoInterval=r,!0}),r}var n=Ra(t).autoInterval;return n??(Ra(t).autoInterval=t.calculateCategoryInterval(e))}function IE(t,e){var r=e.kind,n=EE(t),i=_o(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(v*Math.cos(a)),d=Math.abs(v*Math.sin(a)),g=0,p=0;c<=s[1];c+=u){var m=0,y=0,_=Zy(i({value:c}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,g=Math.max(g,m,7),p=Math.max(p,y,7)}var b=g/h,S=p/d;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var x=Math.max(0,Math.floor(Math.min(b,S)));if(r===Wt.estimate)return e.out.noPxChangeTryDetermine.push(ve(PE,null,t,x,l)),x;var w=OS(t,x,l);return w??x}function PE(t,e,r){return OS(t,e,r)==null}function OS(t,e,r){var n=xE(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function EE(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function kS(t,e,r){var n=_o(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=AS(t),v=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;v&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);h&&d-l!==a[1]&&g(a[1]);function g(p){var m={value:p};s.push(r?p:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:p,time:void 0,break:void 0})}return s}function NS(t,e,r){var n=t.scale,i=_o(t),a=[];return C(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var om=[0,1],BS=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return C0(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(i.parse(e)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),sm(n,i.count())),qs(e,om,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),sm(n,i.count()));var a=qs(e,n,om,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=TE(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=n.ticks,a=q(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return OE(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=q(n,function(a){return q(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||xl(Wt.determine),wE(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(e){return e=e||xl(Wt.determine),IE(this,e)},t})();function sm(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function OE(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],e[0].onBand=!0,o=e[1]={coord:a[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;C(e,function(h){h.coord-=u/2,h.onBand=!0});var f=t.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s,tickValue:f[1]+1,onBand:!0},e.push(o)}var c=a[0]>a[1];v(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&v(a[0],e[0].coord)&&e.unshift({coord:a[0],onBand:!0}),v(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&v(o.coord,a[1])&&e.push({coord:a[1],onBand:!0});function v(h,d){return h=Ue(h),d=Ue(d),c?h>d:h<d}}var kE=(function(t){G(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(BS),NE="expandAxisBreak",jr=Math.PI,BE=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],FE=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Qa=Se(),FS=Se(),zS=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function zE(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=Fv(t.axisName)&&Pi(t.nameLocation);C(n,function(d){var g=tn(d);if(!(!g||g.label.ignore)){o.push(g);var p=a.transGroup;l&&(p.transform?Yn(ea,p.transform):lo(ea),g.transform&&Bn(ea,ea,g.transform),te.copy(fs,g.localRect),fs.applyTransform(ea),s?s.union(fs):te.copy(s=new te(0,0,0,0),fs))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,g){return Math.abs(d.label[u]-f)-Math.abs(g.label[u]-f)}),l&&s){var c=i.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new te(v,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ea=Vt(),fs=new te(0,0,0,0),HS=function(t,e,r,n,i,a){if(Pi(t.nameLocation)){var o=a.stOccupiedRect;o&&GS(aR({},o,a.transGroup.transform),n,i)}else VS(a.labelInfoList,a.dirVec,n,i)};function GS(t,e,r){var n=new re;Sv(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&oR(e,n)}function VS(t,e,r,n){for(var i=re.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||GS(s,r,n)}}var Zr=(function(){function t(e,r,n,i){this.group=new ke,this._axisModel=e,this._api=r,this._local={},this._shared=i||new zS(HS),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=Z(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Z(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Z(e.nameDirection,1),tickDirection:Z(e.tickDirection,1),labelDirection:Z(e.labelDirection,1),labelOffset:Z(e.labelOffset,0),silent:Z(e.silent,!0),axisName:i,nameLocation:Yr(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Fv(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new ke({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new re(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),C(HE,function(i){e[i]&&GE[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=Ih(r-e),a,o;return Fa(i)?(o=n>0?"top":"bottom",a="center"):Fa(i-jr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<jr?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})(),HE=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],GE={axisLine:function(t,e,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(Je(f,f,u),Je(c,c,u));var h=B({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())QP().buildAxisBreakLine(n,i,a,d);else{var g=new Cr(B({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));Ga(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var p=n.get(["axisLine","symbol"]);if(p!=null){var m=n.get(["axisLine","symbolSize"]);Y(p)&&(p=[p,p]),(Y(m)||ge(m))&&(m=[m,m]);var y=ab(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],b=m[1];C([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(S,x){if(p[x]!=="none"&&p[x]!=null){var w=Ni(p[x],-_/2,-b/2,_,b,h.stroke,!0),T=S.r+S.offset,D=v?c:f;w.attr({rotation:S.rotate,x:D[0]+T*Math.cos(t.rotation),y:D[1]-T*Math.sin(t.rotation),silent:!0,z2:11}),i.add(w)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var l=um(e,i,s);l&&lm(t,e,r,n,i,a,o,Wt.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var l=um(e,i,s);l&&lm(t,e,r,n,i,a,o,Wt.determine);var u=jE(t,i,a,n);WE(t,e.labelLayoutList,u),YE(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(Fv(u)){var f=t.nameLocation,c=t.nameDirection,v=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),g=n.axis.inverse?-1:1,p=new re(0,0),m=new re(0,0);f==="start"?(p.x=d[0]-g*h,m.x=-g):f==="end"?(p.x=d[1]+g*h,m.x=g):(p.x=(d[0]+d[1])/2,p.y=t.labelOffset+c*h,m.y=c);var y=Vt();m.transform(Nl(y,y,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*jr/180);var b,S;Pi(f)?b=Zr.innerTextLayout(t.rotation,_??t.rotation,c):(b=VE(t.rotation,f,_||0,d),S=t.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var x=v.getFont(),w=n.get("nameTruncate",!0)||{},T=w.ellipsis,D=Pa(t.raw.nameTruncateMaxWidth,w.maxWidth,S),A=s.nameMarginLevel||0,M=new We({x:p.x,y:p.y,rotation:b.rotation,silent:Zr.isLabelSilent(n),style:jn(v,{text:u,font:x,overflow:"truncate",width:D,ellipsis:T,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||b.textAlign,verticalAlign:v.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(ql({el:M,componentModel:n,itemName:u}),M.__fullText=u,M.anid="name",n.get("triggerEvent")){var I=Zr.makeAxisEventDataBase(n);I.targetType="axisName",I.name=u,ce(M).eventData=I}a.add(M),M.updateTransform(),e.nameEl=M;var L=l.nameLayout=tn({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:Pi(f)?BE[A]:FE[A]});if(l.nameLocation=f,i.add(M),M.decomposeTransform(),t.shouldNameMoveOverlap&&L){var R=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,L,m,R)}}}};function lm(t,e,r,n,i,a,o,s){WS(e)||$E(t,e,i,s,n,o);var l=e.labelLayoutList;qE(t,n,l,a),t.rotation;var u=t.optionHideOverlap;UE(n,l,u),u&&lR(Ae(l,function(f){return f&&!f.label.ignore})),zE(t,r,n,l)}function VE(t,e,r,n){var i=Ih(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Fa(i-jr/2)?(o=l?"bottom":"top",a="center"):Fa(i-jr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<jr*1.5&&i>jr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function UE(t,e,r){if(AS(t.axis))return;function n(s,l,u){var f=tn(e[l]),c=tn(e[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){ya(f.label);return}if(c.suggestIgnore){ya(c.label);return}var v=.1;if(!r){var h=[0,0,0,0];f=ig({marginForce:h},f),c=ig({marginForce:h},c)}Sv(f,c,null,{touchThreshold:v})&&ya(s?c.label:f.label)}}var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(i,0,1),n(a,o-1,o-2)}function WE(t,e,r){t.showMinorTicks||C(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=FS(a),s=Qa(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){ya(a);return}}})}function ya(t){t&&(t.ignore=!0)}function US(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&&(Je(o,o,e),Je(s,s,e));var f=new Cr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ga(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f);var c=FS(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function jE(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),f=US(u,r.transform,l,de(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function YE(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=de(l.getLineStyle(),de(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=US(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<v.length;h++)e.add(v[h])}}function um(t,e,r){if(WS(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),ih(t,null,null,null))}return!0}function $E(t,e,r,n,i,a){var o=i.axis,s=Pa(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new ke;r.add(l);var u=xl(n);if(!s||o.scale.isBlank()){ih(e,[],l,u);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(u),v=(Pa(t.raw.labelRotate,f.get("rotate"))||0)*jr/180,h=Zr.innerTextLayout(t.rotation,v,t.labelDirection),d=i.getCategories&&i.getCategories(!0),g=[],p=i.get("triggerEvent"),m=1/0,y=-1/0;C(c,function(b,S){var x,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(b.tickValue):b.tickValue,T=b.formattedLabel,D=b.rawLabel,A=f;if(d&&d[w]){var M=d[w];$(M)&&M.textStyle&&(A=new ye(M.textStyle,f,i.ecModel))}var I=A.getTextColor()||i.get(["axisLine","lineStyle","color"]),L=A.getShallow("align",!0)||h.textAlign,R=Z(A.getShallow("alignMinLabel",!0),L),O=Z(A.getShallow("alignMaxLabel",!0),L),k=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,j=Z(A.getShallow("verticalAlignMinLabel",!0),k),N=Z(A.getShallow("verticalAlignMaxLabel",!0),k),H=10+(((x=b.time)===null||x===void 0?void 0:x.level)||0);m=Math.min(m,H),y=Math.max(y,H);var W=new We({x:0,y:0,rotation:0,silent:Zr.isLabelSilent(i),z2:H,style:jn(A,{text:T,align:S===0?R:S===c.length-1?O:L,verticalAlign:S===0?j:S===c.length-1?N:k,fill:ne(I)?I(o.type==="category"?D:o.type==="value"?w+"":w,S):I})});W.anid="label_"+w;var z=Qa(W);if(z.break=b.break,z.tickValue=w,z.layoutRotation=h.rotation,ql({el:W,componentModel:i,itemName:T,formatterParamsExtra:{isTruncated:function(){return W.isTruncated},value:D,tickIndex:S}}),p){var F=Zr.makeAxisEventDataBase(i);F.targetType="axisLabel",F.value=D,F.tickIndex=S,b.break&&(F.break={start:b.break.parsedBreak.vmin,end:b.break.parsedBreak.vmax}),o.type==="category"&&(F.dataIndex=w),ce(W).eventData=F,b.break&&ZE(i,a,W,b.break)}g.push(W),l.add(W)});var _=q(g,function(b){return{label:b,priority:Qa(b).break?b.z2+(y-m+1):b.z2,defaultAttr:{ignore:b.ignore}}});ih(e,_,l,u)}function WS(t){return!!t.labelLayoutList}function ih(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function qE(t,e,r,n){var i=e.get(["axisLabel","margin"]);C(r,function(a,o){var s=tn(a);if(s){var l=s.label,u=Qa(l);s.suggestIgnore=l.ignore,l.ignore=!1,tc(mr,XE),mr.x=e.axis.dataToCoord(u.tickValue),mr.y=t.labelOffset+t.labelDirection*i,mr.rotation=u.layoutRotation,n.add(mr),mr.updateTransform(),n.remove(mr),mr.decomposeTransform(),tc(l,mr),l.markRedraw(),cl(s,!0),tn(s)}})}var mr=new Ce,XE=new Ce;function Fv(t){return!!t}function ZE(t,e,r,n){r.on("click",function(i){var a={type:NE,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function wl(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,v=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}i.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Pa(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function KE(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function fm(t){var e={xAxisModel:null,yAxisModel:null};return C(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Lt).models[0];e[n]=a}),e}function QE(t,e,r,n,i,a){for(var o=wl(t,r),s=!1,l=!1,u=0;u<e.length;u++)Qc(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Zr(r,n,o,i)}function JE(t,e,r){var n=wl(e,r);t.updateCfg(n)}function eO(t,e,r){var n=Ii.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,{expandToNicedExtent:!0}),o=i.length-1,s=n.getInterval.call(r),l=MS(t,e),u=l.extent,f=l.fixMin,c=l.fixMax;t.type==="log"&&(u=Jc(t.base,u,!0)),t.setBreaksFromOption(LS(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(t);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var h=n.getInterval.call(t),d=u[0],g=u[1];if(f&&c)h=(g-d)/o;else if(f)for(g=u[0]+h*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)h=xf(h),g=u[0]+h*o;else if(c)for(d=u[1]-h*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)h=xf(h),d=u[1]-h*o;else{var p=t.getTicks().length-1;p>o&&(h=xf(h));var m=h*o;g=Math.ceil(u[1]/h)*h,d=Ue(g-m),d<0&&u[0]>=0?(d=0,g=Ue(m)):g>0&&u[1]<=0&&(g=0,d=-Ue(m))}var y=(i[0].value-a[0].value)/s,_=(i[o].value-a[o].value)/s;n.setExtent.call(t,d+h*y,g+h*_),n.setInterval.call(t,h),(y||_)&&n.setNiceExtent.call(t,d+h,g-h)}var cm=[[3,1],[0,2]],tO=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=rh,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=be(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var v=+l[c],h=o[v],d=h.model,g=h.scale;Qc(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(th(g,d),Qc(g)&&(s=h))}f.length&&(s||(s=f.pop(),th(s.scale,s.model)),C(f,function(p){eO(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};C(n.x,function(o){hm(n,"y",o,a)}),C(n.y,function(o){hm(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=gv(e,r),a=this._rect=Jr(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(jS(o,a),!n){var u=nO(a,s,o,l,r),f=void 0;if(l)f=pm(a.clone(),"axisLabel",null,a,o,u,i);else{var c=iO(e,a,i),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=pm(v,h,d,a,o,u,i))}YS(a,o,Wt.determine,null,f,i)}C(this._coordsList,function(g){g.calcAffineTransform()})},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}$(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",Lt).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Lt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,se(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,C(s.x,function(f,c){C(s.y,function(v,h){var d="x"+c+"y"+h,g=new SE(d);g.master=i,g.model=e,i._coordsMap[d]=g,i._coordsList.push(g),g.addAxis(f),g.addAxis(v)})});function u(f){return function(c,v){if(Tf(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=new kE(f,DS(c),[0,0],c.get("type"),h),g=d.type==="category";d.onBand=g&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=v,a._axesList.push(d),s[f][v]=d,l[f]++}}}},t.prototype._updateScale=function(e,r){C(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(KE(i)){var a=fm(i),o=a.xAxisModel,s=a.yAxisModel;if(!Tf(o,r)||!Tf(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(i,a){C(_E(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return C(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);se(r,a)<0&&r.push(a),se(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(i){EA({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=fm(i),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),n},t.dimensions=rh,t})();function Tf(t,e){return t.getCoordSysModel()===e}function hm(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)vm(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&vm(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function vm(t){return t&&t.type!=="category"&&t.type!=="time"&&yE(t)}function rO(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function jS(t,e){C(t.x,function(r){return dm(r,e.x,e.width)}),C(t.y,function(r){return dm(r,e.y,e.height)})}function dm(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),rO(t,e)}function pm(t,e,r,n,i,a,o){YS(n,i,Wt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=Ny(s,function(v){return v>0})==null;return rl(n,s,!0,!0,r),jS(i,n),l;function u(v){C(i[Fr[v]],function(h){if(Ka(h.model)){var d=a.ensureRecord(h.model),g=d.labelInfoList;if(g)for(var p=0;p<g.length;p++){var m=g[p],y=h.scale.normalize(Qa(m.label).tickValue);y=v===1?1-y:y,f(m.rect,v,y),f(m.rect,1-v,NaN)}var _=d.nameLayout;if(_){var y=Pi(d.nameLocation)?.5:NaN;f(_.rect,v,y),f(_.rect,1-v,NaN)}}})}function f(v,h,d){var g=t[Fr[h]]-v[Fr[h]],p=v[Li[h]]+v[Fr[h]]-(t[Li[h]]+t[Fr[h]]);g=c(g,1-d),p=c(p,d);var m=cm[h][0],y=cm[h][1];s[m]=pt(s[m],g),s[y]=pt(s[y],p)}function c(v,h){return v>0&&!Ti(h)&&h>1e-4&&(v/=h),v}}function nO(t,e,r,n,i){var a=new zS(aO);return C(r,function(o){return C(o,function(s){if(Ka(s.model)){var l=!n;s.axisBuilder=QE(t,e,s.model,i,a,l)}})}),a}function YS(t,e,r,n,i,a){var o=r===Wt.determine;C(e,function(u){return C(u,function(f){Ka(f.model)&&(JE(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Fr[1-u]]=t[Li[u]]<=a.refContainer[Li[u]]*.5?0:1-u===1?2:1}C(e,function(u,f){return C(u,function(c){Ka(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function iO(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=Jr(t.get("outerBounds",!0)||bS,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||se(["all","axisLabel"],a)<0?o="all":o=a;var s=[dc(Z(t.get("outerBoundsClampWidth",!0),bl[0]),e.width),dc(Z(t.get("outerBoundsClampHeight",!0),bl[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var aO=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";HS(t,e,r,n,i,a),Pi(t.nameLocation)||C(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&VS(s.labelInfoList,s.dirVec,n,i)})};function oO(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return sO(r,t,e),r.seriesInvolved&&uO(r,t),r}function sO(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];C(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ja(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(C(s.getAxes(),xe(g,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&C(d.baseAxes,xe(g,h?"cross":!0,v)),h&&C(d.otherAxes,xe(g,"cross",!1))}function g(p,m,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!p&&!ah(_))){m==null&&(m=_.get("triggerTooltip")),_=p?lO(y,c,i,e,p,m):_;var S=_.get("snap"),x=_.get("triggerEmphasis"),w=Ja(y.model),T=m||S||y.type==="category",D=t.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:x,involveSeries:T,snap:S,useHandle:ah(_),seriesModels:[],linkGroup:null};u[w]=D,t.seriesInvolved=t.seriesInvolved||T;var A=fO(a,y);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[w]=D,M.mapper=a[A].mapper,D.linkGroup=M}}}})}function lO(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(v){l[v]=ae(o.get(v))}),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&&de(u,c.textStyle)}}return t.model.getModel("axisPointer",new ye(l,r,n))}function uO(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||C(t.coordSysAxesInfo[Ja(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 fO(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(Cf(a[n+"AxisId"],r.id)||Cf(a[n+"AxisIndex"],r.componentIndex)||Cf(a[n+"AxisName"],r.name))return i}}function Cf(t,e){return t==="all"||U(t)&&se(t,e)>=0||t===e}function cO(t){var e=zv(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=ah(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 zv(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Ja(t)]}function hO(t){var e=zv(t);return e&&e.axisPointerModel}function ah(t){return!!t.get(["handle","show"])}function Ja(t){return t.type+"||"+t.id}var gm={},$S=(function(t){G(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&&cO(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=hO(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){gm[r]=n},e.getAxisPointerClass=function(r){return r&&gm[r]},e.type="axis",e})(yt),oh=Se();function vO(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=oh(t).splitAreaColors,v=ie(),h=0;if(c)for(var d=0;d<u.length;d++){var g=c.get(u[d].tickValue);if(g!=null){h=(g+(f-1)*d)%f;break}}var p=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=U(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,b=void 0,S=void 0,x=void 0;i.isHorizontal()?(_=p,b=l.y,S=y-_,x=l.height,p=_+S):(_=l.x,b=p,S=l.width,x=y-b,p=b+x);var w=u[d-1].tickValue;w!=null&&v.set(w,h),e.add(new Ce({anid:w!=null?"area_"+w:null,shape:{x:_,y:b,width:S,height:x},style:de({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%f}oh(t).splitAreaColors=v}}}function dO(t){oh(t).splitAreaColors=null}var pO=["splitArea","splitLine","minorSplitLine","breakArea"],qS=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ke,this.group.add(this._axisGroup),!!Ka(r)){this._axisGroup.add(r.axis.axisBuilder.group),C(pO,function(l){r.get([l,"show"])&&gO[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||f_(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){dO(this)},e.type="cartesianAxis",e})($S),gO={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=U(l)?l:[l];for(var c=n.coordinateSystem.getRect(),v=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],p=[],m=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var b=d[y].tickValue;v?(g[0]=_,g[1]=c.y,p[0]=_,p[1]=c.y+c.height):(g[0]=c.x,g[1]=_,p[0]=c.x+c.width,p[1]=_);var S=h++%l.length,x=new Cr({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:p[0],y2:p[1]},style:de({stroke:l[S]},m),silent:!0});Ga(x.shape,m.lineWidth),e.add(x)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],v=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var g=0;g<f[d].length;g++){var p=a.toGlobalCoord(f[d][g].coord);u?(c[0]=p,c[1]=l.y,v[0]=p,v[1]=l.y+l.height):(c[0]=l.x,c[1]=p,v[0]=l.x+l.width,v[1]=p);var m=new Cr({anid:"minor_line_"+f[d][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:h,silent:!0});Ga(m.shape,h.lineWidth),e.add(m)}},splitArea:function(t,e,r,n,i){vO(t,e,r,n)},breakArea:function(t,e,r,n,i){r.axis.scale}},XS=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(qS),mO=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=XS.type,r}return e.type="yAxis",e})(qS),yO=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ce({shape:r.coordinateSystem.getRect(),style:de({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(yt),mm={offset:0};function ZS(t){t.registerComponentView(yO),t.registerComponentModel(UP),t.registerCoordinateSystem("cartesian2d",tO),Jg(t,"x",Zc,mm),Jg(t,"y",Zc,mm),t.registerComponentView(XS),t.registerComponentView(mO),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function _O(t){cr(ZS),t.registerSeriesModel(FP),t.registerChartView(VP),t.registerLayout(fb("scatter"))}var bO=1e-8;function ym(t,e){return Math.abs(t-e)<bO}function _m(t,e,r){var n=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];n+=xr(i[0],i[1],o[0],o[1],e,r),i=o}var s=t[0];return(!ym(i[0],s[0])||!ym(i[1],s[1]))&&(n+=xr(i[0],i[1],s[0],s[1],e,r)),n!==0}var SO=[];function Mf(t,e){for(var r=0;r<t.length;r++)Je(t[r],t[r],e)}function bm(t,e,r,n){for(var i=0;i<t.length;i++){var a=t[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(zr(e,e,a),Hr(r,r,a))}}function xO(t){for(var e=0,r=0,n=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],f=a*u-l*o;e+=f,r+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}var KS=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})(),Sm=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})(),xm=(function(){function t(e){this.type="linestring",this.points=e}return t})(),wO=(function(t){G(e,t);function e(r,n,i){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return xO(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return C(o,function(s){s.type==="polygon"?bm(s.exterior,i,a,r):C(s.points,function(l){bm(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new te(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(_m(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(_m(u[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new te(r,n,i,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var v=f[c];v.type==="polygon"?(Mf(v.exterior,u),C(v.interiors,function(h){Mf(h,u)})):C(v.points,function(h){Mf(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(KS);(function(t){G(e,t);function e(r,n){var i=t.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=lo(SO),o=r;o&&!o.isGeoSVGGraphicRoot;)Bn(a,o.getLocalTransform(),a),o=o.parent;return Yn(a,a),Je(i,i,a),i},e})(KS);function TO(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var n=e.features;return C(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=QS(s,o,r);break;case"Polygon":Df(s,o,r);break;case"MultiLineString":Df(s,o,r);break;case"MultiPolygon":C(s,function(l,u){return Df(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function Df(t,e,r){for(var n=0;n<t.length;n++)t[n]=QS(t[n],e[n],r)}function QS(t,e,r){for(var n=[],i=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function wm(t,e){return t=TO(t),q(Ae(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Sm(o[0],o.slice(1)));break;case"MultiPolygon":C(i.coordinates,function(l){l[0]&&a.push(new Sm(l[0],l.slice(1)))});break;case"LineString":a.push(new xm([i.coordinates]));break;case"MultiLineString":a.push(new xm(i.coordinates))}var s=new wO(n[e||"name"],a,n.cp);return s.properties=n,s})}var Ln=Se(),Tm=ae,Af=ve,CO=(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 ke,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var v=xe(Cm,r,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}Dm(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=zv(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=Ln(e).pointerEl=new VD[a.type](Tm(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=Ln(e).labelEl=new We(Tm(r.label));e.add(a),Mm(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=Ln(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=Ln(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Mm(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=$l(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Db(u.event)},onmousedown:Af(this._onHandleDragMove,this,0,0),drift:Af(this._onHandleDragMove,this),ondragend:Af(this._onHandleDragEnd,this)}),n.add(i)),Dm(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");U(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,gb(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Cm(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Lf(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(Lf(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Lf(i)),Ln(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),kc(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 Cm(t,e,r,n){JS(Ln(r).lastProp,n)||(Ln(r).lastProp=n,e?ut(r,n,t):(r.stopAnimation(),r.attr(n)))}function JS(t,e){if($(t)&&$(e)){var r=!0;return C(e,function(n,i){r=r&&JS(t[i],n)}),!!r}else return t===e}function Mm(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Lf(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Dm(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 MO(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 DO(t,e,r,n,i){var a=r.get("value"),o=e1(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=mo(s.get("padding")||0),u=s.getFont(),f=Zy(o,u),c=i.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var g=i.verticalAlign;g==="bottom"&&(c[1]-=h),g==="middle"&&(c[1]-=h/2),AO(c,v,h,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:jn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function AO(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 e1(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:Sl(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Y(o)?a=o.replace("{value}",a):ne(o)&&(a=o(s))}return a}function t1(t,e,r){var n=Vt();return Nl(n,n,r.rotation),Fs(n,n,r.position),Yh([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function LO(t,e,r,n,i,a){var o=Zr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),DO(e,n,i,a,{position:t1(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function RO(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function IO(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var PO=(function(t){G(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=Am(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=MO(a),h=EO[u](s,c,f);h.style=v,r.graphicKey=h.type,r.pointer=h}var d=wl(l.getRect(),i);LO(n,r,d,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=wl(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=t1(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=Am(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 v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(CO);function Am(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var EO={line:function(t,e,r){var n=RO([e,r[0]],[e,r[1]],Lm(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:IO([e-n/2,r[0]],[n,i],Lm(t))}}};function Lm(t){return t.dim==="x"?0:1}var OO=(function(t){G(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:X.color.border,width:1,type:"dashed"},shadowStyle:{color:X.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:X.color.neutral00,padding:[5,7,5,7],backgroundColor:X.color.accent60,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:X.color.accent40,throttle:40}},e})(fe),Tr=Se(),kO=C;function r1(t,e,r){if(!ee.node){var n=e.getZr();Tr(n).records||(Tr(n).records={}),NO(n,e);var i=Tr(n).records[t]||(Tr(n).records[t]={});i.handler=r}}function NO(t,e){if(Tr(t).initialized)return;Tr(t).initialized=!0,r("click",xe(Rm,"click")),r("mousemove",xe(Rm,"mousemove")),r("globalout",FO);function r(n,i){t.on(n,function(a){var o=zO(e);kO(Tr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),BO(o.pendings,e)})}}function BO(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 FO(t,e,r){t.handler("leave",null,r)}function Rm(t,e,r,n){e.handler(t,r,n)}function zO(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 sh(t,e){if(!ee.node){var r=e.getZr(),n=(Tr(r).records||{})[t];n&&(Tr(r).records[t]=null)}}var HO=(function(t){G(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";r1("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){sh("axisPointer",n)},e.prototype.dispose=function(r,n){sh("axisPointer",n)},e.type="axisPointer",e})(yt);function n1(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=co(a,t);if(o==null||o<0||U(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,v=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(v),g=[];g[h]=a.get(d,o),g[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(q(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 Im=Se();function GO(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||ve(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Os(i)&&(i=n1({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Os(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Os(i),v={},h={},d={list:[],map:{}},g={showPointer:xe(UO,h),showTooltip:xe(WO,d)};C(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);C(s.coordSysAxesInfo[y],function(b,S){var x=b.axis,w=qO(u,b);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(i)),T!=null&&Pm(b,T,g,!1,v)}})});var p={};return C(f,function(m,y){var _=m.linkGroup;_&&!h[y]&&C(_.axesInfo,function(b,S){var x=h[S];if(b!==m&&x){var w=x.value;_.mapper&&(w=m.axis.scale.parse(_.mapper(w,Em(b),Em(m)))),p[m.key]=w}})}),C(p,function(m,y){Pm(f[y],m,g,!0,v)}),jO(h,f,v),YO(d,i,t,o),$O(f,o,r),v}}function Pm(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=VO(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function VO(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(!(c==null||!isFinite(c))){var d=t-c,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,i=c,a.length=0),C(v,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function UO(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function WO(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=Ja(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 jO(t,e,r){var n=r.axesInfo=[];C(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 YO(t,e,r,n){if(Os(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 $O(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Im(n)[i]||{},o=Im(n)[i]={};C(t,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&C(c.seriesDataIndices,function(v){var h=v.seriesIndex+" | "+v.dataIndex;o[h]=v})});var s=[],l=[];C(a,function(u,f){!o[f]&&l.push(u)}),C(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 qO(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 Em(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 Os(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function i1(t){$S.registerAxisPointerClass("CartesianAxisPointer",PO),t.registerComponentModel(OO),t.registerComponentView(HO),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!U(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=oO(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},GO)}function XO(t){cr(ZS),cr(i1)}function ZO(t,e){var r=mo(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new Ce({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});return i}var KO=(function(t){G(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,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:X.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:X.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:X.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:X.color.tertiary,fontSize:14}},e})(fe);function a1(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function o1(t){if(ee.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var s1=o1(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),QO=o1(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function l1(t,e){if(!t)return e;e=vv(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function JO(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var ek=l1(QO,"transition"),Hv=l1(s1,"transform"),tk="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ee.transform3dSupported?"will-change:transform;":"");function rk(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function nk(t,e,r){if(!Y(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=Wa(e);var a=rk(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Hv+":",u;se(["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,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function ik(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(ee.transformSupported?""+Hv+i:",left"+i+",top"+i)),ek+":"+a}function Om(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ee.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ee.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Hv+":"+o+";":[["top",0],["left",0],[s1,o]]}function ak(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=Z(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),C(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function ok(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),v=ib(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+h),e&&a>0&&i.push(ik(a,r,n)),o&&i.push("background-color:"+o),C(["width","color","radius"],function(d){var g="border-"+d,p=vv(g),m=t.get(p);m!=null&&i.push(g+":"+m+(d==="color"?"":"px"))}),i.push(ak(c)),v!=null&&i.push("padding:"+mo(v).join("px ")+"px"),i.join(";")+";"}function km(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&YA(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 sk=(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,ee.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&&(Y(a)?document.querySelector(a):wi(a)?a:ne(a)&&a(e.getDom()));km(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();wt(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=JO(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._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,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=tk+ok(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Om(a[0],a[1],!0)+("border-color:"+Wa(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(Y(a)&&n.get("trigger")==="item"&&!a1(n)&&(s=nk(n,i,a)),Y(e))o.innerHTML=e+s;else if(e){o.innerHTML="",U(e)||(e=[e]);for(var l=0;l<e.length;l++)wi(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(km(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Om(n[0],n[1]);C(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;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",ee.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(ve(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._zr;$A(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),lk=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Bm(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;$(e)&&at(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new We({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ib(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),C(["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=Nm(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;Bm(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Br(a.borderWidth||0),s=Nm(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(ve(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Br(t){return Math.max(0,t)}function Nm(t){var e=Br(t.shadowBlur||0),r=Br(t.shadowOffsetX||0),n=Br(t.shadowOffsetY||0);return{left:Br(e-r),right:Br(e+r),top:Br(e-n),bottom:Br(e+n)}}function Bm(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var uk=new Ce({shape:{x:-1,y:-1,width:2,height:2}}),fk=(function(t){G(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(!(ee.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=FM(i.get("renderMode"));this._tooltipContent=a==="richText"?new lk(n):new sk(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(ee.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")?gb(this,"_updatePosition",50,"fixRate"):kc(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");r1("itemTooltip",this._api,ve(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||ee.node||!i.getDom())){var o=Fm(a,i);this._ticket="";var s=a.dataByCoordSys,l=dk(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=uk;f.x=a.x,f.y=a.y,f.update(),ce(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=n1(a,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,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(Fm(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=ta([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=ce(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ma(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ce(f).dataIndex!=null?l=f:ce(f).tooltipConfig!=null&&(u=f))},!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=ve(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=ta([n.tooltipOption],a),l=this._renderMode,u=[],f=Ya("section",{blocks:[],noHeader:!0}),c=[],v=new Xu;C(r,function(y){C(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!b||S==null)){var x=e1(S,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Ya("section",{header:x,noHeader:!Gt(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),C(_.seriesDataIndices,function(T){var D=i.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=D.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Sl(b.axis,{value:S}),M.axisValueLabel=x,M.marker=v.makeTooltipMarker("item",Wa(M.color),l);var I=Ep(D.formatTooltip(A,!0,null)),L=I.frag;if(L){var R=ta([D],a).get("valueFormatter");w.blocks.push(R?B({valueFormatter:R},L):L)}I.text&&c.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),g=Bp(f,v,l,d,i.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var p=l==="richText"?`
|
|
21
|
+
|
|
22
|
+
`:"<br/>",m=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ce(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,g=ta([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(f,c),y=new Xu;m.marker=y.makeTooltipMarker("item",Wa(m.color),h);var _=Ep(u.formatTooltip(f,!1,c)),b=g.get("order"),S=g.get("valueFormatter"),x=_.frag,w=x?Bp(S?B({valueFormatter:S},x):x,y,h,b,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,w,m,T,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=ce(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=ae(l),l.content=Ke(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=r.positionDefault,d=ta(c,this._tooltipModel,h?{position:h}:null),g=d.get("content"),p=Math.random()+"",m=new Xu;this._showOrMove(d,function(){var y=ae(d.get("formatterParams")||{});this._showTooltipContent(d,g,y,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 v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),g=d.color;if(v)if(Y(v)){var p=r.ecModel.get("useUTC"),m=U(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=v,y&&(h=go(m.axisValue,h,p)),h=dv(h,i,!0)}else if(ne(v)){var _=ve(function(b,S){b===this._ticket&&(c.setContent(S,f,r,g,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=v(i,a,_)}else h=v;c.setContent(h,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,o){if(i==="axis"||U(n))return{color:a||o};if(!U(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(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ne(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),U(n))i=_e(n[0],u),a=_e(n[1],f);else if($(n)){var g=n;g.width=c[0],g.height=c[1];var p=Jr(g,{width:u,height:f});i=p.x,a=p.y,v=null,h=null}else if(Y(n)&&l){var m=vk(n,d,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=ck(i,a,o,u,f,v?null:20,h?null:20);i=m[0],a=m[1]}if(v&&(i-=zm(v)?c[0]/2:v==="right"?c[0]:0),h&&(a-=zm(h)?c[1]/2:h==="bottom"?c[1]:0),a1(r)){var m=hk(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&&C(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&C(u,function(v,h){var d=c[h]||{},g=v.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&g.length===p.length,o&&C(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&C(v.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.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){ee.node||!n.getDom()||(kc(this,"_updatePosition"),this._tooltipContent.dispose(),sh("itemTooltip",n))},e.type="tooltip",e})(yt);function ta(t,e,r){var n=e.ecModel,i;r?(i=new ye(r,n,n),i=new ye(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof ye&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(i=new ye(o,i,n)))}return i}function Fm(t,e){return t.dispatchAction||ve(e.dispatchAction,e)}function ck(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 hk(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 vk(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 zm(t){return t==="center"||t==="middle"}function dk(t,e,r){var n=Oh(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ho(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=ce(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function pk(t){cr(i1),t.registerComponentModel(KO),t.registerComponentView(fk),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Qe),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Qe)}var gk=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"])}},lh=(function(t){G(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"]),U(n)&&C(n,function(a,o){Y(a)&&(a={type:a}),n[o]=le(a,gk(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,v=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Eh(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ie(),s=q(a,function(l){return(Y(l)||ge(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ye(l,this,this.ecModel))},this);this._data=Ae(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;C(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;C(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;C(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])&&se(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",bottom:X.size.m,align:"auto",backgroundColor:X.color.transparent,borderColor:X.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:X.color.disabled,inactiveBorderColor:X.color.disabled,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:X.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:X.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:X.color.tertiary,borderWidth:1,borderColor:X.color.border},emphasis:{selectorLabel:{show:!0,color:X.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(fe),vi=xe,uh=C,cs=ke,u1=(function(t){G(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 cs),this.group.add(this._selectorGroup=new cs),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=gv(r,i).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=Jr(c,f,v),d=this.layoutInner(r,o,h,a,l,u),g=Jr(de({width:d.width,height:d.height},c),f,v);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ZO(d,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=ie(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),uh(n.getData(),function(d,g){var p=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
23
|
+
`)){var y=new cs;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!f.get(m))if(_){var b=_.getData(),S=b.getVisual("legendLineStyle")||{},x=b.getVisual("legendIcon"),w=b.getVisual("style"),T=this._createItem(_,m,g,d,n,r,S,w,x,c,a);T.on("click",vi(Hm,m,null,a,h)).on("mouseover",vi(fh,_.name,null,a,h)).on("mouseout",vi(ch,_.name,null,a,h)),i.ssr&&T.eachChild(function(D){var A=ce(D);A.seriesIndex=_.seriesIndex,A.dataIndex=g,A.ssrType="legend"}),v&&T.eachChild(function(D){p.packEventData(D,n,_,g,m)}),f.set(m,!0)}else i.eachRawSeries(function(D){var A=this;if(!f.get(m)&&D.legendVisualProvider){var M=D.legendVisualProvider;if(!M.containName(m))return;var I=M.indexOfName(m),L=M.getItemVisual(I,"style"),R=M.getItemVisual(I,"legendIcon"),O=gt(L.fill);O&&O[3]===0&&(O[3]=.2,L=B(B({},L),{fill:rn(O,"rgba")}));var k=this._createItem(D,m,g,d,n,r,{},L,R,c,a);k.on("click",vi(Hm,null,m,a,h)).on("mouseover",vi(fh,null,m,a,h)).on("mouseout",vi(ch,null,m,a,h)),i.ssr&&k.eachChild(function(j){var N=ce(j);N.seriesIndex=D.seriesIndex,N.dataIndex=g,N.ssrType="legend"}),v&&k.eachChild(function(j){A.packEventData(j,n,D,g,m)}),f.set(m,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};ce(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();uh(r,function(u){var f=u.type,c=new We({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 v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Kl(c,{normal:v,emphasis:h},{defaultText:u.title}),el(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=mk(f,a,l,u,h,p,v),S=new cs,x=a.getModel("textStyle");if(ne(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;S.add(yk({itemWidth:d,itemHeight:g,icon:f,iconRotate:w,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,A=o.get("formatter"),M=n;Y(A)&&A?M=A.replace("{name}",n??""):ne(A)&&(M=A(n));var I=p?x.getTextColor():a.get("inactiveColor");S.add(new We({style:jn(x,{text:M,x:T,y:g/2,fill:I,align:D,verticalAlign:"middle"},{inheritColor:I})}));var L=new Ce({shape:S.getBoundingRect(),style:{fill:"transparent"}}),R=a.getModel("tooltip");return R.get("show")&&ql({el:L,componentModel:o,itemName:n,itemTooltipOption:R.option}),S.add(L),S.eachChild(function(O){O.silent=!0}),L.silent=!c,this.getContentGroup().add(S),el(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Aa(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){Aa("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?h[g]+=f[p]+d:c[g]+=v[p]+d,h[1-g]+=f[m]/2-v[m]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[p]=f[p]+d+v[p],_[m]=Math.max(f[m],v[m]),_[y]=Math.min(0,v[y]+h[1-g]),_}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})(yt);function mk(t,e,r,n,i,a,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),uh(p,function(y,_){p[_]==="inherit"&&(p[_]=m[_])})}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:Wc(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 v=e.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),g=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function yk(t){var e=t.icon||"roundRect",r=Ni(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=X.color.neutral00,r.style.lineWidth=2),r}function Hm(t,e,r,n){ch(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),fh(t,e,r,n)}function f1(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 fh(t,e,r,n){f1(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function ch(t,e,r,n){f1(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function _k(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 ra(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),Gm(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){C(i,function(l,u){s[l?"select":"unSelect"](u)}),Gm(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function Gm(t,e){var r=e||{};return C(t.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
24
|
+
`||i==="")){var a=t.isSelected(i);It(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function bk(t){t.registerAction("legendToggleSelect","legendselectchanged",xe(ra,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",xe(ra,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",xe(ra,"inverseSelect")),t.registerAction("legendSelect","legendselected",xe(ra,"select")),t.registerAction("legendUnSelect","legendunselected",xe(ra,"unSelect"))}function c1(t){t.registerComponentModel(lh),t.registerComponentView(u1),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,_k),t.registerSubTypeDefaulter("legend",function(){return"plain"}),bk(t)}var Sk=(function(t){G(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=yo(r);t.prototype.init.call(this,r,n,i),Vm(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),Vm(this,this.option,r)},e.type="legend.scroll",e.defaultOption=G_(lh.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:X.color.accent50,pageIconInactiveColor:X.color.accent10,pageIconSize:15,pageTextStyle:{color:X.color.tertiary},animationDurationUpdate:800}),e})(lh);function Vm(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,en(e,r,{type:"box",ignoreSize:!!i})}var Um=ke,Rf=["width","height"],If=["x","y"],xk=(function(t){G(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 Um),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Um)},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),v=U(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new We({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var m=g+"DataIndex",y=$l(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:ve(u._pageGo,u,m,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=g,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Rf[u],c=If[u],v=Rf[1-u],h=If[1-u];o&&Aa("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],m=ae(i);o&&(m[f]=i[f]-g[f]-d);var y=this._layoutContentAndController(r,a,m,u,f,v,h,c);if(o){if(s==="end")p[u]+=y[f]+d;else{var _=g[f]+d;p[u]-=_,y[c]-=_}y[f]+=g[f]+d,p[1-u]+=y[h]+y[v]/2-g[v]/2,y[v]=Math.max(y[v],g[v]),y[h]=Math.min(y[h],g[h]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;Aa(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Aa("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),g=this._showController=h[o]>i[o],p=[-h.x,-h.y];n||(p[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=Z(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(p),c.setPosition(m),v.setPosition(y);var S={x:0,y:0};if(S[o]=g?i[o]:h[o],S[s]=Math.max(h[s],d[s]),S[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],g){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=S[s],c.setClipPath(new Ce({shape:x})),c.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&ut(f,{x:w.contentPosition[0],y:w.contentPosition[1]},g?r:null),this._updatePageInfoView(r,w),S},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;C(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"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",Y(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=Rf[o],l=If[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var g=b(c);d.contentPosition[o]=-g.s;for(var p=u+1,m=g,y=g,_=null;p<=v;++p)_=b(f[p]),(!_&&y.e>m.s+a||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var p=u-1,m=g,y=g,_=null;p>=-1;--p)_=b(f[p]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function b(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function S(x,w){return x.e>=w&&x.s<=w+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})(u1);function wk(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 Tk(t){cr(c1),t.registerComponentModel(Sk),t.registerComponentView(xk),wk(t)}function Ck(t){cr(c1),cr(Tk)}function Mk(t){return ru(null,t)}var Dk={isDimensionStacked:Ua,enableDataStack:z_,getStackedDimension:H_};function Ak(t,e){var r=e;e instanceof ye||(r=new ye(e));var n=DS(r);return n.setExtent(t[0],t[1]),th(n,r),n}function Lk(t){Et(t,SS)}function Rk(t,e){return e=e||{},jn(t,null,null,e.state!=="normal")}const Ik=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:CA,createList:Mk,createScale:Ak,createSymbol:Ni,createTextStyle:Rk,dataStack:Dk,enableHoverEmphasis:el,getECData:ce,getLayoutRect:Jr,mixinAxisModelCommonMethods:Lk},Symbol.toStringTag,{value:"Module"})),Pk=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:yM,asc:pM,getPercentWithPrecision:gM,getPixelPrecision:C0,getPrecision:Ai,getPrecisionSafe:T0,isNumeric:A0,isRadianAroundZero:Fa,linearMap:qs,nice:Ph,numericToNumber:za,parseDate:Dr,parsePercent:_e,quantile:bM,quantity:D0,quantityExponent:Hl,reformIntervals:SM,remRadian:Ih,round:Ue},Symbol.toStringTag,{value:"Module"})),Ek=Object.freeze(Object.defineProperty({__proto__:null,format:go,parse:Dr,roundTime:sl},Symbol.toStringTag,{value:"Module"})),Ok=Object.freeze(Object.defineProperty({__proto__:null,Arc:po,BezierCurve:jl,BoundingRect:te,Circle:vo,CompoundPath:Q0,Ellipse:Vl,Group:ke,Image:Mr,IncrementalDisplayable:n_,Line:Cr,LinearGradient:e_,Polygon:Wl,Polyline:ki,RadialGradient:t_,Rect:Ce,Ring:Ul,Sector:Lr,Text:We,clipPointsByRect:c_,clipRectByRect:h_,createIcon:$l,extendPath:a_,extendShape:i_,getShapeClass:o_,getTransform:u_,initProps:or,makeImage:Wh,makePath:Yl,mergePath:l_,registerShape:Ot,resizePath:jh,updateProps:ut},Symbol.toStringTag,{value:"Module"})),kk=Object.freeze(Object.defineProperty({__proto__:null,addCommas:hv,capitalFirst:pL,encodeHTML:Ke,formatTime:dL,formatTpl:dv,getTextRect:vL,getTooltipMarker:K_,normalizeCssArray:mo,toCamelCase:vv,truncateText:VT},Symbol.toStringTag,{value:"Module"})),Nk=Object.freeze(Object.defineProperty({__proto__:null,bind:ve,clone:ae,curry:xe,defaults:de,each:C,extend:B,filter:Ae,indexOf:se,inherits:wh,isArray:U,isFunction:ne,isObject:$,isString:Y,map:q,merge:le,reduce:lr},Symbol.toStringTag,{value:"Module"}));function Bk(t){var e=fe.extend(t);return fe.registerClass(e),e}function Fk(t){var e=yt.extend(t);return yt.registerClass(e),e}function zk(t){var e=ft.extend(t);return ft.registerClass(e),e}function Hk(t){var e=mt.extend(t);return mt.registerClass(e),e}const Pf=Object.freeze(Object.defineProperty({__proto__:null,Axis:BS,ChartView:mt,ComponentModel:fe,ComponentView:yt,List:Jh,Model:ye,PRIORITY:iS,SeriesModel:ft,color:xC,connect:AP,dataTool:NP,dependencies:fP,disConnect:LP,disconnect:hS,dispose:RP,env:ee,extendChartView:Hk,extendComponentModel:Bk,extendComponentView:Fk,extendSeriesModel:zk,format:kk,getCoordinateSystemDimensions:PP,getInstanceByDom:Av,getInstanceById:IP,getMap:kP,graphic:Ok,helper:Ik,init:DP,innerDrawElementOnCanvas:Tv,matrix:BT,number:Pk,parseGeoJSON:wm,parseGeoJson:wm,registerAction:Xn,registerCoordinateSystem:pS,registerCustomSeries:EP,registerLayout:gS,registerLoading:Ev,registerLocale:nv,registerMap:mS,registerPostInit:vS,registerPostUpdate:dS,registerPreprocessor:Rv,registerProcessor:Iv,registerTheme:Lv,registerTransform:yS,registerUpdateLifecycle:ou,registerVisual:nn,setCanvasCreator:OP,setPlatformAPI:Ey,throttle:iu,time:Ek,use:cr,util:Nk,vector:sC,version:uP,zrUtil:_T,zrender:JR},Symbol.toStringTag,{value:"Module"}));function Wm(t,e,r){var n=Pt.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 Ef=(function(t){G(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||Ys,typeof r=="string"?o=Wm(r,n,i):$(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Th(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=Wm("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 te(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new te(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,S=1/0,x=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(y)){var D=new te(0,0,0,0);D.copy(T),D.union(y),o[w]=D,b=!0;break}else if(l){u.copy(y),u.union(T);var A=y.width*y.height,M=T.width*T.height,I=u.width*u.height,L=I-A-M;L<S&&(S=L,x=w)}}if(l&&(o[x].union(y),b=!0),!b){var _=new te(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var v=r[c];if(v){var h=v.shouldBePainted(i,a,!0,!0),d=v.__isRendered&&(v.__dirty&vt||!h)?v.getPrevPaintRect():null;d&&f(d);var g=h&&(v.__dirty&vt||!v.__isRendered)?v.getPaintRect():null;g&&f(g)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var v=n[c],h=v&&v.shouldBePainted(i,a,!0,!0);if(v&&(!h||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}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,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function d(g,p,m,y){if(o.clearRect(g,p,m,y),n&&n!=="transparent"){var _=void 0;if(oo(n)){var b=n.global||n.__width===m&&n.__height===y;_=b&&n.__canvasGradient||Vc(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else By(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Uc(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,g,p,m,y),o.restore())}!i||u?d(0,0,s,l):i.length&&C(i,function(g){d(g.x*c,g.y*c,g.width*c,g.height*c)})},e})(hr),jm=1e5,An=314159,hs=.01,Gk=.001;function Vk(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function Uk(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 Wk=(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=B({},n||{}),this.dpr=n.devicePixelRatio||Ys,this._singleCanvas=a,this.root=e;var o=e.style;o&&(Th(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=e,c=f.width,v=f.height;n.width!=null&&(c=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=v*this.dpr,this._width=c,this._height=v;var h=new Ef(f,this,this.dpr);h.__builtin__=!0,h.initContext(),l[An]=h,h.zlevel=An,s.push(An),this._domRoot=e}else{this._width=ts(e,0,n),this._height=ts(e,1,n);var u=this._domRoot=Uk(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(jm)),a||(a=n.ctx,a.save()),kn(a,s,i,o===r-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(jm)},t.prototype.paintOne=function(e,r){Tv(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;hl(function(){l._paintList(e,r,n,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(An).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,v=function(g){var p=a[g],m=p.ctx,y=o&&p.createRepaintRects(e,r,h._width,h._height),_=n?p.__startIndex:p.__drawIndex,b=!n&&p.incremental&&Date.now,S=b&&Date.now(),x=p.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,x,y);else if(_===p.__startIndex){var w=e[_];(!w.incremental||!w.notClear||n)&&p.clear(!1,x,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,D=function(L){var R={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<p.__endIndex;T++){var O=e[T];if(O.__inHover&&(c=!0),i._doPaintEl(O,p,o,L,R,T===p.__endIndex-1),b){var k=Date.now()-S;if(k>15)break}}R.prevElClipPaths&&m.restore()};if(y)if(y.length===0)T=p.__endIndex;else for(var A=h.dpr,M=0;M<y.length;++M){var I=y[M];m.save(),m.beginPath(),m.rect(I.x*A,I.y*A,I.width*A,I.height*A),m.clip(),D(I),m.restore()}else m.save(),D(),m.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},h=this,d=0;d<a.length;d++)v(d);return ee.wxa&&C(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))&&(kn(s,e,a,o),e.setPrevPaintRect(l))}else kn(s,e,a,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=An);var n=this._layers[e];return n||(n=new Ef("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?le(n,this._layerConfig[e],!0):this._layerConfig[e-hs]&&le(n,this._layerConfig[e-hs],!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]&&Vk(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,v){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+Gk,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?hs:0),this._needsManuallyCompositing),f.__builtin__||Rl("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&vt&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,v){!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,C(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?le(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+hs){var o=this._layers[a];le(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(se(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=ts(a,0,i),r=ts(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(An).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[An].dom;var r=new Ef("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];kn(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 jk(t){t.registerPainter("canvas",Wk)}var vs={};const h1=S1(tT);var yr={},_r={},Of={},Ym;function Yk(){return Ym||(Ym=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=1;t.default=function(){return"".concat(e++)}})(Of)),Of}var na={},ia={},kf={},$m;function v1(){return $m||($m=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var a=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];clearTimeout(i),i=setTimeout(function(){r.apply(a,s)},n)}}})(kf)),kf}var br={},qm;function Gv(){return qm||(qm=1,Object.defineProperty(br,"__esModule",{value:!0}),br.SizeSensorId=br.SensorTabIndex=br.SensorClassName=void 0,br.SizeSensorId="size-sensor-id",br.SensorClassName="size-sensor-object",br.SensorTabIndex="-1"),br}var Xm;function $k(){if(Xm)return ia;Xm=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.createSensor=void 0;var t=r(v1()),e=Gv();function r(n){return n&&n.__esModule?n:{default:n}}return ia.createSensor=function(i,a){var o=void 0,s=[],l=function(){getComputedStyle(i).position==="static"&&(i.style.position="relative");var d=document.createElement("object");return d.onload=function(){d.contentDocument.defaultView.addEventListener("resize",u),u()},d.style.display="block",d.style.position="absolute",d.style.top="0",d.style.left="0",d.style.height="100%",d.style.width="100%",d.style.overflow="hidden",d.style.pointerEvents="none",d.style.zIndex="-1",d.style.opacity="0",d.setAttribute("class",e.SensorClassName),d.setAttribute("tabindex",e.SensorTabIndex),d.type="text/html",i.appendChild(d),d.data="about:blank",d},u=(0,t.default)(function(){s.forEach(function(h){h(i)})}),f=function(d){o||(o=l()),s.indexOf(d)===-1&&s.push(d)},c=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",u),o.parentNode.removeChild(o),i.removeAttribute(e.SizeSensorId),o=void 0,s=[],a&&a())},v=function(d){var g=s.indexOf(d);g!==-1&&s.splice(g,1),s.length===0&&o&&c()};return{element:i,bind:f,destroy:c,unbind:v}},ia}var aa={},Zm;function qk(){if(Zm)return aa;Zm=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.createSensor=void 0;var t=Gv(),e=r(v1());function r(n){return n&&n.__esModule?n:{default:n}}return aa.createSensor=function(i,a){var o=void 0,s=[],l=(0,e.default)(function(){s.forEach(function(h){h(i)})}),u=function(){var d=new ResizeObserver(l);return d.observe(i),l(),d},f=function(d){o||(o=u()),s.indexOf(d)===-1&&s.push(d)},c=function(){o&&o.disconnect(),s=[],o=void 0,i.removeAttribute(t.SizeSensorId),a&&a()},v=function(d){var g=s.indexOf(d);g!==-1&&s.splice(g,1),s.length===0&&o&&c()};return{element:i,bind:f,destroy:c,unbind:v}},aa}var Km;function Xk(){if(Km)return na;Km=1,Object.defineProperty(na,"__esModule",{value:!0}),na.createSensor=void 0;var t=$k(),e=qk();return na.createSensor=typeof ResizeObserver<"u"?e.createSensor:t.createSensor,na}var Qm;function Zk(){if(Qm)return _r;Qm=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.removeSensor=_r.getSensor=_r.Sensors=void 0;var t=n(Yk()),e=Xk(),r=Gv();function n(o){return o&&o.__esModule?o:{default:o}}var i=_r.Sensors={};function a(o){o&&i[o]&&delete i[o]}return _r.getSensor=function(s){var l=s.getAttribute(r.SizeSensorId);if(l&&i[l])return i[l];var u=(0,t.default)();s.setAttribute(r.SizeSensorId,u);var f=(0,e.createSensor)(s,function(){return a(u)});return i[u]=f,f},_r.removeSensor=function(s){var l=s.element.getAttribute(r.SizeSensorId);s.destroy(),a(l)},_r}var Jm;function Kk(){if(Jm)return yr;Jm=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.ver=yr.clear=yr.bind=void 0;var t=Zk();return yr.bind=function(r,n){var i=(0,t.getSensor)(r);return i.bind(n),function(){i.unbind(n)}},yr.clear=function(r){var n=(0,t.getSensor)(r);(0,t.removeSensor)(n)},yr.ver="1.0.3",yr}var oa={},ey;function Qk(){if(ey)return oa;ey=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.pick=void 0;function t(e,r){var n={};return r.forEach(function(i){n[i]=e[i]}),n}return oa.pick=t,oa}var sa={},ty;function Jk(){if(ty)return sa;ty=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.isFunction=void 0;function t(e){return typeof e=="function"}return sa.isFunction=t,sa}var la={},ry;function eN(){if(ry)return la;ry=1,Object.defineProperty(la,"__esModule",{value:!0}),la.isString=void 0;function t(e){return typeof e=="string"}return la.isString=t,la}var ua={},Nf,ny;function tN(){return ny||(ny=1,Nf=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}),Nf}var iy;function rN(){if(iy)return ua;iy=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.isEqual=void 0;var t=h1,e=t.__importDefault(tN());return ua.isEqual=e.default,ua}var ay;function nN(){if(ay)return vs;ay=1,Object.defineProperty(vs,"__esModule",{value:!0});var t=h1,e=t.__importStar(x1()),r=Kk(),n=Qk(),i=Jk(),a=eN(),o=rN(),s=(function(l){t.__extends(u,l);function u(f){var c=l.call(this,f)||this;return c.echarts=f.echarts,c.ele=null,c.isInitialResize=!0,c.eventHandlerRefs={},c}return u.prototype.componentDidMount=function(){this.renderNewEcharts()},u.prototype.componentDidUpdate=function(f){var c=this.props.shouldSetOption;if(!((0,i.isFunction)(c)&&!c(f,this.props))){if(!(0,o.isEqual)(f.theme,this.props.theme)||!(0,o.isEqual)(f.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var v=this.getEchartsInstance();(0,o.isEqual)(f.onEvents,this.props.onEvents)||(this.unbindEvents(v),this.bindEvents(v,this.props.onEvents));var h=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];(0,o.isEqual)((0,n.pick)(this.props,h),(0,n.pick)(f,h))||this.updateEChartsOption(),(!(0,o.isEqual)(f.style,this.props.style)||!(0,o.isEqual)(f.className,this.props.className))&&this.resize()}},u.prototype.componentWillUnmount=function(){this.dispose()},u.prototype.initEchartsInstance=function(){return t.__awaiter(this,void 0,void 0,function(){var f=this;return t.__generator(this,function(c){return[2,new Promise(function(v){f.echarts.init(f.ele,f.props.theme,f.props.opts);var h=f.getEchartsInstance();h.on("finished",function(){var d=f.ele.clientWidth,g=f.ele.clientHeight;f.echarts.dispose(f.ele);var p=t.__assign({width:d,height:g},f.props.opts);v(f.echarts.init(f.ele,f.props.theme,p))})})]})})},u.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},u.prototype.dispose=function(){if(this.ele){try{(0,r.clear)(this.ele)}catch(f){console.warn(f)}this.echarts.dispose(this.ele)}},u.prototype.renderNewEcharts=function(){return t.__awaiter(this,void 0,void 0,function(){var f,c,v,h,d,g,p=this;return t.__generator(this,function(m){switch(m.label){case 0:return f=this.props,c=f.onEvents,v=f.onChartReady,h=f.autoResize,d=h===void 0?!0:h,[4,this.initEchartsInstance()];case 1:return m.sent(),g=this.updateEChartsOption(),this.bindEvents(g,c||{}),(0,i.isFunction)(v)&&v(g),this.ele&&d&&(0,r.bind)(this.ele,function(){p.resize()}),[2]}})})},u.prototype.bindEvents=function(f,c){var v=this,h=function(g,p){if((0,a.isString)(g)&&(0,i.isFunction)(p)){var m=function(y){p(y,f)};f.on(g,m),v.eventHandlerRefs[g]=m}};for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&h(d,c[d])},u.prototype.unbindEvents=function(f){for(var c=0,v=Object.entries(this.eventHandlerRefs);c<v.length;c++){var h=v[c],d=h[0],g=h[1];f.off(d,g)}this.eventHandlerRefs={}},u.prototype.updateEChartsOption=function(){var f=this.props,c=f.option,v=f.notMerge,h=v===void 0?!1:v,d=f.replaceMerge,g=d===void 0?null:d,p=f.lazyUpdate,m=p===void 0?!1:p,y=f.showLoading,_=f.loadingOption,b=_===void 0?null:_,S=this.getEchartsInstance();return S.setOption(c,{notMerge:h,replaceMerge:g,lazyUpdate:m}),y?S.showLoading(b):S.hideLoading(),S},u.prototype.resize=function(){var f=this.getEchartsInstance();if(!this.isInitialResize)try{f.resize({width:"auto",height:"auto"})}catch(c){console.warn(c)}this.isInitialResize=!1},u.prototype.render=function(){var f=this,c=this.props,v=c.style,h=c.className,d=h===void 0?"":h;c.echarts,c.option,c.theme,c.notMerge,c.replaceMerge,c.lazyUpdate,c.showLoading,c.loadingOption,c.opts,c.onChartReady,c.onEvents,c.shouldSetOption,c.autoResize;var g=t.__rest(c,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),p=t.__assign({height:300},v);return e.default.createElement("div",t.__assign({ref:function(m){f.ele=m},style:p,className:"echarts-for-react ".concat(d)},g))},u})(e.PureComponent);return vs.default=s,vs}var iN=nN();const aN=w1(iN);function oN({job:t,onClose:e}){return t?E.jsx(T1,{open:!!t,onOpenChange:r=>!r&&e(),children:E.jsxs(C1,{children:[E.jsx(M1,{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 animate-in fade-in duration-200"}),E.jsxs(D1,{className:"fixed right-0 top-0 h-full w-full max-w-md bg-zinc-950 border-l border-zinc-800 p-6 z-50 animate-in slide-in-from-right duration-300 shadow-2xl flex flex-col",children:[E.jsxs("div",{className:"flex items-center justify-between mb-8",children:[E.jsxs(A1,{className:"text-lg font-semibold text-zinc-100 flex items-center gap-2",children:[E.jsx(L1,{className:"w-5 h-5 text-blue-500"}),"Job Details"]}),E.jsx(R1,{className:"text-zinc-400 hover:text-zinc-100 transition-colors",children:E.jsx(I1,{className:"w-5 h-5"})})]}),E.jsxs("div",{className:"flex-1 space-y-8 overflow-y-auto pr-2",children:[E.jsxs("div",{className:"space-y-1",children:[E.jsx("h2",{className:"text-2xl font-bold text-zinc-100",children:t.gitlab_job_name||`Job ${t.gitlab_job_id}`}),E.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-sm font-mono",children:[E.jsxs("span",{children:["ID: ",t.gitlab_job_id]}),E.jsx("span",{children:"•"}),E.jsxs("span",{className:"flex items-center gap-1",children:[E.jsx(qv,{className:"w-3 h-3"}),new Date(t.ingested_at.value).toLocaleString()]})]})]}),E.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[E.jsxs("div",{className:"bg-zinc-900/50 border border-zinc-800 rounded-lg p-4 space-y-1",children:[E.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-xs uppercase tracking-wider font-medium",children:[E.jsx(ly,{className:"w-3 h-3"}),"Emissions"]}),E.jsxs("div",{className:"text-2xl font-mono text-zinc-100 font-medium",children:[t.total_emissions_g.toFixed(2)," ",E.jsx("span",{className:"text-sm text-zinc-500",children:"gCO2e"})]})]}),E.jsxs("div",{className:"bg-zinc-900/50 border border-zinc-800 rounded-lg p-4 space-y-1",children:[E.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-xs uppercase tracking-wider font-medium",children:[E.jsx(P1,{className:"w-3 h-3"}),"Energy"]}),E.jsxs("div",{className:"text-2xl font-mono text-zinc-100 font-medium",children:[(t.energy_kwh*1e3).toFixed(2)," ",E.jsx("span",{className:"text-sm text-zinc-500",children:"Wh"})]})]})]}),E.jsxs("div",{className:"space-y-4",children:[E.jsx("h3",{className:"text-sm font-medium text-zinc-400 uppercase tracking-wider",children:"Resource Utilization"}),E.jsxs("div",{className:"bg-zinc-900/30 border border-zinc-800 rounded-lg p-4 space-y-4",children:[E.jsxs("div",{className:"space-y-2",children:[E.jsxs("div",{className:"flex justify-between text-sm",children:[E.jsxs("span",{className:"flex items-center gap-2 text-zinc-300",children:[E.jsx(J1,{className:"w-4 h-4 text-zinc-500"})," CPU Usage"]}),E.jsxs("span",{className:"font-mono text-zinc-100",children:[(t.cpu_utilization_avg*100).toFixed(1),"%"]})]}),E.jsx("div",{className:"h-1.5 w-full bg-zinc-800 rounded-full overflow-hidden",children:E.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-500",style:{width:`${t.cpu_utilization_avg*100}%`}})})]}),E.jsxs("div",{className:"space-y-2",children:[E.jsxs("div",{className:"flex justify-between text-sm",children:[E.jsxs("span",{className:"flex items-center gap-2 text-zinc-300",children:[E.jsx(E1,{className:"w-4 h-4 text-zinc-500"})," RAM Usage"]}),E.jsxs("span",{className:"font-mono text-zinc-100",children:[(t.ram_utilization_avg*100).toFixed(1),"%"]})]}),E.jsx("div",{className:"h-1.5 w-full bg-zinc-800 rounded-full overflow-hidden",children:E.jsx("div",{className:"h-full bg-purple-500 rounded-full transition-all duration-500",style:{width:`${t.ram_utilization_avg*100}%`}})})]})]})]}),E.jsxs("div",{className:"space-y-4",children:[E.jsx("h3",{className:"text-sm font-medium text-zinc-400 uppercase tracking-wider",children:"Environment Details"}),E.jsxs("div",{className:"space-y-3 text-sm",children:[E.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-zinc-800/50",children:[E.jsxs("span",{className:"text-zinc-500 flex items-center gap-2",children:[E.jsx(nx,{className:"w-4 h-4"})," Machine Type"]}),E.jsx("span",{className:"font-mono text-zinc-300 bg-zinc-900 px-2 py-0.5 rounded border border-zinc-800",children:t.machine_type})]}),E.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-zinc-800/50",children:[E.jsxs("span",{className:"text-zinc-500 flex items-center gap-2",children:[E.jsx(tx,{className:"w-4 h-4"})," Region"]}),E.jsx("span",{className:"text-zinc-300",children:t.region||"us-central1"})]}),E.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-zinc-800/50",children:[E.jsxs("span",{className:"text-zinc-500 flex items-center gap-2",children:[E.jsx(ax,{className:"w-4 h-4"})," Triggered By"]}),E.jsx("span",{className:"text-zinc-300",children:t.gitlab_user_name||"Unknown User"})]}),E.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-zinc-800/50",children:[E.jsxs("span",{className:"text-zinc-500 flex items-center gap-2",children:[E.jsx(qv,{className:"w-4 h-4"})," Duration"]}),E.jsxs("span",{className:"font-mono text-zinc-300",children:[t.runtime_seconds?.toFixed(1),"s"]})]})]})]}),E.jsx("div",{className:"pt-4",children:E.jsxs("a",{href:`https://gitlab.com/projects/${t.gitlab_project_id}/jobs/${t.gitlab_job_id}`,target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center justify-center gap-2 bg-zinc-100 hover:bg-zinc-200 text-zinc-950 font-medium py-2.5 rounded-md transition-colors",children:[E.jsx(O1,{className:"w-5 h-5"}),"View Job on GitLab"]})})]})]})]})}):null}cr([q2,_R,_O,XO,Ck,pk,jk]);const Bf=aN;function DN({activeProjectId:t}){const[e,r]=dt.useState(null),{data:n,isLoading:i,error:a}=Z1({queryKey:["metrics",t],queryFn:async()=>{const h=t?{projectId:t}:{};return(await Le.get("/api/metrics",{params:h})).data}}),s={click:h=>{if(!n)return;let d;if(h.seriesType==="scatter")d=h.data[2];else if(h.seriesType==="bar"){const g=h.name.match(/Job (\d+)/);g&&(d=parseInt(g[1]))}if(d){const g=n.find(p=>p.gitlab_job_id===d);g&&r(g)}}},l=dt.useMemo(()=>{if(!n||n.length===0)return{};const h=[...n].reverse();return{tooltip:{trigger:"axis",backgroundColor:"#18181b",borderColor:"#27272a",textStyle:{color:"#e4e4e7"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:h.map(d=>`Job ${d.gitlab_job_id}`),axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#71717a"}},yAxis:{type:"value",splitLine:{lineStyle:{color:"#27272a"}},axisLabel:{color:"#71717a",formatter:"{value} g"}},series:[{name:"Emissions",type:"bar",data:h.map(d=>d.total_emissions_g),itemStyle:{color:"#3b82f6",borderRadius:[4,4,0,0]},barMaxWidth:50,cursor:"pointer"}]}},[n]),u=dt.useMemo(()=>{if(!n||n.length===0)return{};const h={};n.forEach(g=>{h[g.machine_type]=(h[g.machine_type]||0)+g.total_emissions_g});const d=Object.entries(h).map(([g,p])=>({name:g,value:parseFloat(p.toFixed(2))}));return{tooltip:{trigger:"item",backgroundColor:"#18181b",borderColor:"#27272a",textStyle:{color:"#e4e4e7"},formatter:"{b}: {c}g ({d}%)"},legend:{top:"5%",left:"center",textStyle:{color:"#a1a1aa"}},series:[{name:"Emissions by Machine Type",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#09090b",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:20,fontWeight:"bold",color:"#fff"}},labelLine:{show:!1},data:d}]}},[n]),f=dt.useMemo(()=>!n||n.length===0?{}:{tooltip:{backgroundColor:"#18181b",borderColor:"#27272a",textStyle:{color:"#e4e4e7"},formatter:h=>{const[d,g,p,m]=h.data;return`Job ${p}<br/>
|
|
25
|
+
Runtime: ${d}s<br/>
|
|
26
|
+
Emissions: ${g}g<br/>
|
|
27
|
+
Type: ${m}`}},grid:{left:"8%",right:"8%",bottom:"8%",containLabel:!0},xAxis:{name:"Runtime (s)",nameTextStyle:{color:"#71717a"},splitLine:{lineStyle:{color:"#27272a"}},axisLabel:{color:"#71717a"}},yAxis:{name:"Emissions (g)",nameTextStyle:{color:"#71717a"},splitLine:{lineStyle:{color:"#27272a"}},axisLabel:{color:"#71717a"}},series:[{symbolSize:10,data:n.map(h=>[h.runtime_seconds||0,h.total_emissions_g,h.gitlab_job_id,h.machine_type]),type:"scatter",itemStyle:{color:"#10b981"},cursor:"pointer"}]},[n]),c=n?.reduce((h,d)=>h+d.total_emissions_g,0)||0,v=n?.length?c/n.length:0;return E.jsxs("div",{className:"p-6 space-y-6 max-w-6xl mx-auto",children:[E.jsx(oN,{job:e,onClose:()=>r(null)}),i&&E.jsx("div",{className:"flex justify-center py-12",children:E.jsx(k1,{className:"w-8 h-8 text-zinc-600 animate-spin"})}),a&&E.jsxs("div",{className:"p-4 bg-red-900/20 border border-red-900/50 rounded-lg text-red-200 text-sm",children:["Failed to load metrics: ",String(a)]}),n&&n.length>0&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[E.jsxs("div",{className:"p-4 bg-zinc-900/50 border border-zinc-800 rounded-lg",children:[E.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[E.jsx(ly,{className:"w-3 h-3 text-zinc-500"}),E.jsx("h3",{className:"text-xs text-zinc-500 uppercase tracking-wider",children:"Total Emissions"})]}),E.jsxs("p",{className:"text-2xl font-mono font-medium text-zinc-100",children:[c.toFixed(2)," gCO2e"]})]}),E.jsxs("div",{className:"p-4 bg-zinc-900/50 border border-zinc-800 rounded-lg",children:[E.jsx("h3",{className:"text-xs text-zinc-500 uppercase tracking-wider mb-1",children:"Avg per Job"}),E.jsxs("p",{className:"text-2xl font-mono font-medium text-zinc-100",children:[v.toFixed(2)," gCO2e"]})]}),E.jsxs("div",{className:"p-4 bg-zinc-900/50 border border-zinc-800 rounded-lg",children:[E.jsx("h3",{className:"text-xs text-zinc-500 uppercase tracking-wider mb-1",children:"Jobs Analyzed"}),E.jsx("p",{className:"text-2xl font-mono font-medium text-zinc-100",children:n.length})]})]}),E.jsxs("div",{className:"space-y-2",children:[E.jsx("h3",{className:"text-sm font-medium text-zinc-400",children:"Emissions History"}),E.jsx("div",{className:"h-80 w-full bg-zinc-900/30 border border-zinc-800 rounded-lg p-4",children:E.jsx(Bf,{echarts:Pf,option:l,style:{height:"100%",width:"100%"},theme:"dark",onEvents:s})})]}),E.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[E.jsxs("div",{className:"space-y-2",children:[E.jsx("h3",{className:"text-sm font-medium text-zinc-400",children:"Emissions by Machine Type"}),E.jsx("div",{className:"h-80 w-full bg-zinc-900/30 border border-zinc-800 rounded-lg p-4",children:E.jsx(Bf,{echarts:Pf,option:u,style:{height:"100%",width:"100%"},theme:"dark",onEvents:s})})]}),E.jsxs("div",{className:"space-y-2",children:[E.jsx("h3",{className:"text-sm font-medium text-zinc-400",children:"Runtime vs Emissions"}),E.jsx("div",{className:"h-80 w-full bg-zinc-900/30 border border-zinc-800 rounded-lg p-4",children:E.jsx(Bf,{echarts:Pf,option:f,style:{height:"100%",width:"100%"},theme:"dark",onEvents:s})})]})]}),E.jsxs("div",{className:"space-y-2",children:[E.jsx("h3",{className:"text-sm font-medium text-zinc-400",children:"Top Carbon-Intensive Jobs"}),E.jsx("div",{className:"w-full bg-zinc-900/30 border border-zinc-800 rounded-lg overflow-hidden",children:E.jsx("div",{className:"overflow-x-auto",children:E.jsxs("table",{className:"w-full text-sm text-left",children:[E.jsx("thead",{className:"text-xs text-zinc-400 uppercase bg-zinc-900/50 border-b border-zinc-800",children:E.jsxs("tr",{children:[E.jsx("th",{className:"px-6 py-3 font-medium",children:"Job ID"}),E.jsx("th",{className:"px-6 py-3 font-medium",children:"Machine Type"}),E.jsx("th",{className:"px-6 py-3 font-medium text-right",children:"Runtime (s)"}),E.jsx("th",{className:"px-6 py-3 font-medium text-right",children:"Energy (Wh)"}),E.jsx("th",{className:"px-6 py-3 font-medium text-right",children:"Emissions (gCO2e)"})]})}),E.jsx("tbody",{children:n.sort((h,d)=>d.total_emissions_g-h.total_emissions_g).slice(0,10).map(h=>E.jsxs("tr",{className:"border-b border-zinc-800/50 hover:bg-zinc-800/20 transition-colors cursor-pointer",onClick:()=>r(h),children:[E.jsx("td",{className:"px-6 py-3 font-mono text-zinc-300",children:h.gitlab_job_id}),E.jsx("td",{className:"px-6 py-3 text-zinc-400",children:E.jsx("span",{className:"px-2 py-0.5 rounded bg-zinc-800 text-xs border border-zinc-700",children:h.machine_type})}),E.jsx("td",{className:"px-6 py-3 text-right font-mono text-zinc-400",children:h.runtime_seconds?.toFixed(1)||"-"}),E.jsx("td",{className:"px-6 py-3 text-right font-mono text-zinc-400",children:(h.energy_kwh*1e3).toFixed(2)}),E.jsx("td",{className:"px-6 py-3 text-right font-mono text-blue-400 font-medium",children:h.total_emissions_g.toFixed(2)})]},h.gitlab_job_id))})]})})})]})]}),n&&n.length===0&&!i&&E.jsx("div",{className:"text-center py-12 text-zinc-500",children:"No metrics found for this project. Have you run a pipeline with the measurement component?"})]})}export{DN as MetricsDashboard};
|