var uC=Object.defineProperty;var rg=Object.getOwnPropertySymbols;var fC=Object.prototype.hasOwnProperty,cC=Object.prototype.propertyIsEnumerable;var Zi=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),hC=t=>{throw TypeError(t)};var ng=(t,e,r)=>e in t?uC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Yn=(t,e)=>{for(var r in e||(e={}))fC.call(e,r)&&ng(t,r,e[r]);if(rg)for(var r of rg(e))cC.call(e,r)&&ng(t,r,e[r]);return t};var ur=(t,e,r)=>new Promise((n,i)=>{var a=l=>{try{s(r.next(l))}catch(u){i(u)}},o=l=>{try{s(r.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((r=r.apply(t,e)).next())}),$n=function(t,e){this[0]=t,this[1]=e},$f=(t,e,r)=>{var n=(s,l,u,f)=>{try{var c=r[s](l),v=(l=c.value)instanceof $n,h=c.done;Promise.resolve(v?l[0]:l).then(d=>v?n(s==="return"?s:"next",l[1]?{done:d.done,value:d.value}:d,u,f):u({value:d,done:h})).catch(d=>n("throw",d,u,f))}catch(d){f(d)}},i=(s,l,u,f)=>o[s]=c=>(l=new Promise((v,h,d)=>(d=()=>n(s,c,v,h),a?a.then(d):d())),f=()=>a===u&&(a=0),a=u=l.then(f,f),l),a,o={};return r=r.apply(t,e),o[Zi("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},Xf=t=>{var e=t[Zi("asyncIterator")],r=!1,n,i={};return e==null?(e=t[Zi("iterator")](),n=a=>i[a]=o=>e[a](o)):(e=e.call(t),n=a=>i[a]=o=>{if(r){if(r=!1,a==="throw")throw o;return o}return r=!0,{done:!1,value:new $n(new Promise(s=>{var l=e[a](o);l instanceof Object||hC("Object expected"),s(l)}),1)}}),i[Zi("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=a=>{throw a},"return"in e&&n("return"),i},ig=(t,e,r)=>(e=t[Zi("asyncIterator")])?e.call(t):(t=t[Zi("iterator")](),e={},r=(n,i)=>(i=t[n])&&(e[n]=a=>new Promise((o,s,l)=>(a=i.call(t,a),l=a.done,Promise.resolve(a.value).then(u=>o({value:u,done:l}),s)))),r("next"),r("return"),e);import{defineComponent as hd,ref as Pa,onMounted as vC,computed as Bt,getCurrentInstance as dC,h as eu,inject as yr,reactive as vd,watch as dd,effectScope as e1,markRaw as t1,hasInjectionContext as pC,isRef as tu,isReactive as r1,toRaw as gC,getCurrentScope as mC,onScopeDispose as yC,nextTick as n1,toRefs as _C,onUnmounted as SC,onDeactivated as bC,onActivated as wC,shallowRef as TC,unref as Mo,shallowReactive as xC,provide as qf}from"/luci-static/quickstart/card-runtime-v1.js";function i1(t,e){return function(){return t.apply(e,arguments)}}const{toString:CC}=Object.prototype,{getPrototypeOf:en}=Object,{iterator:us,toStringTag:a1}=Symbol,tn=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),o1=t=>typeof t=="string"&&(t==="__proto__"||t==="constructor"||t==="prototype"),ef=(t,e,r)=>t===Object.prototype||!r&&e===null,AC=t=>{if(!Object.isExtensible(t))return!1;const e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&e.push(...Object.getOwnPropertySymbols(t)),e.every(r=>{if(o1(r))return!1;const n=Object.getOwnPropertyDescriptor(t,r);return!!n&&n.configurable&&n.writable===!0})},pd=(t,e)=>{let r=t;const n=[];for(;r!=null;){if(n.indexOf(r)!==-1)return!1;n.push(r);const i=en(r);if(ef(r,i,r===t))return!1;if(tn(r,e))return!0;r=i}return!1},DC=(t,e)=>t!=null&&pd(t,e)?t[e]:void 0,EC=t=>{if(t==null||typeof t!="object"&&typeof t!="function")return t;const e=en(t);if(e===null&&AC(t))return t;const r=Object.create(null),n=Object.create(null),i=[];let a=t;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);const o=a===t?e:en(a);if(ef(a,o,a===t))break;const s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(const l of s)o1(l)||tn(n,l)||(r[l]=t[l],n[l]=!0);a=o}return r},gd=(t=>e=>{const r=CC.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ir=t=>(t=t.toLowerCase(),e=>gd(e)===t),tf=t=>e=>typeof e===t,{isArray:Ii}=Array,Li=tf("undefined");function Wa(t){return t!==null&&!Li(t)&&t.constructor!==null&&!Li(t.constructor)&&Rt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const s1=ir("ArrayBuffer");function RC(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&s1(t.buffer),e}const MC=tf("string"),Rt=tf("function"),PC=tf("number"),Ya=t=>t!==null&&typeof t=="object",IC=t=>t===!0||t===!1,Cl=t=>{if(!Ya(t))return!1;const e=en(t);return(e===null||e===Object.prototype||en(e)===null)&&(ef(t,e,!0)||!tn(t,a1)&&!tn(t,us))},LC=t=>{if(!Ya(t)||Wa(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},OC=ir("Date"),kC=ir("File"),NC=t=>!!(t&&typeof t.uri!="undefined"),BC=t=>t&&typeof t.getParts!="undefined",FC=ir("Blob"),zC=ir("FileList"),HC=ir("Set"),UC=t=>Ya(t)&&Rt(t.pipe);function VC(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const ag=VC(),og=typeof ag.FormData!="undefined"?ag.FormData:void 0,GC=t=>{if(!t)return!1;if(og&&t instanceof og)return!0;const e=en(t);if(!e||e===Object.prototype||!Rt(t.append))return!1;const r=gd(t);return r==="formdata"||r==="object"&&Rt(t.toString)&&t.toString()==="[object FormData]"},WC=ir("URLSearchParams"),[YC,$C,XC,qC]=["ReadableStream","Request","Response","Headers"].map(ir),jC=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fs(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t=="undefined")return;let n,i;if(typeof t!="object"&&(t=[t]),Ii(t))for(n=0,i=t.length;n0;)if(i=r[n],e===i.toLowerCase())return i;return null}const yi=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,l1=t=>!Li(t)&&t!==yi;function Oh(...t){const{caseless:e,skipUndefined:r}=l1(this)&&this||{},n={},i=e?Object.create(null):null,a=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let l=s;if(i&&typeof s=="string"){const f=s.toLowerCase(),c=i[f];c!==void 0&&tn(n,c)?l=c:i[f]=s}const u=tn(n,l)?n[l]:void 0;Cl(u)&&Cl(o)?n[l]=Oh(u,o):Cl(o)?n[l]=Oh({},o):Ii(o)?n[l]=o.slice():(!r||!Li(o))&&(n[l]=o)};for(let o=0,s=t.length;o(fs(e,(i,a)=>{r&&Rt(i)?Object.defineProperty(t,a,{__proto__:null,value:i1(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),QC=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),JC=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},eA=(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&&en(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},tA=(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},rA=t=>{if(!t)return null;if(Ii(t))return t;let e=t.length;if(!Number.isSafeInteger(e)||e<0||e>4294967295)return null;const r=new Set,n=new Set;let i=t;for(;i!=null&&r.size{const l=+s;Number.isInteger(l)&&l>=0&&l0;)a[e]=t[e];return a},nA=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&en(Uint8Array)),iA=(t,e)=>{const n=(t&&t[us]).call(t);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},aA=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},oA=ir("HTMLFormElement"),sA=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),{propertyIsEnumerable:lA}=Object.prototype,uA=ir("RegExp"),u1=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};fs(r,(i,a)=>{let o;(o=e(i,a,t))!==!1&&(n[a]=o||i)}),Object.defineProperties(t,n)},fA=t=>{u1(t,(e,r)=>{if(Rt(t)&&["arguments","caller","callee"].includes(r))return!1;const n=t[r];if(Rt(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+"'")})}})},cA=(t,e)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Ii(t)?n(t):n(String(t).split(e)),r},hA=()=>{},vA=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function dA(t){return!!(t&&Rt(t.append)&&t[a1]==="FormData"&&t[us])}const pA=t=>{const e=new WeakSet,r=n=>{if(Ya(n)){if(e.has(n))return;if(Wa(n))return n;if(!("toJSON"in n)){e.add(n);let i;if(HC(n)){i=[];for(const a of n){const o=r(a);!Li(o)&&i.push(o)}}else i=Ii(n)?[]:{},fs(n,(a,o)=>{const s=r(a);!Li(s)&&(i[o]=s)});return e.delete(n),i}}return n};return r(t)},gA=ir("AsyncFunction"),mA=t=>t&&(Ya(t)||Rt(t))&&Rt(t.then)&&Rt(t.catch),f1=((t,e)=>t?setImmediate:e?((r,n)=>(yi.addEventListener("message",({source:i,data:a})=>{i===yi&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),yi.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Rt(yi.postMessage)),yA=typeof queueMicrotask!="undefined"?queueMicrotask.bind(yi):typeof process!="undefined"&&process.nextTick||f1,c1=t=>t!=null&&Rt(t[us]),_A=t=>t!=null&&pd(t,us)&&c1(t),E={isArray:Ii,isArrayBuffer:s1,isBuffer:Wa,isFormData:GC,isArrayBufferView:RC,isString:MC,isNumber:PC,isBoolean:IC,isObject:Ya,isPlainObject:Cl,isEmptyObject:LC,isReadableStream:YC,isRequest:$C,isResponse:XC,isHeaders:qC,isUndefined:Li,isDate:OC,isFile:kC,isReactNativeBlob:NC,isReactNative:BC,isBlob:FC,isRegExp:uA,isFunction:Rt,isStream:UC,isURLSearchParams:WC,isTypedArray:nA,isFileList:zC,forEach:fs,merge:Oh,extend:KC,trim:jC,stripBOM:QC,inherits:JC,toFlatObject:eA,kindOf:gd,kindOfTest:ir,endsWith:tA,toArray:rA,forEachEntry:iA,matchAll:aA,isHTMLForm:oA,hasOwnProperty:tn,hasOwnProp:tn,hasOwnInPrototypeChain:pd,getSafeProp:DC,toSafeFlatObject:EC,reduceDescriptors:u1,freezeMethods:fA,toObjectSet:cA,toCamelCase:sA,noop:hA,toFiniteNumber:vA,findKey:ZC,global:yi,isContextDefined:l1,isSpecCompliantForm:dA,toJSONObject:pA,isAsyncFn:gA,isThenable:mA,setImmediate:f1,asap:yA,isIterable:c1,isSafeIterable:_A},SA=E.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"]),bA=t=>{const e=Object.create(null);let r,n,i;return t&&t.split(` `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim();const s=E.hasOwnProp(e,r);!r||s&&E.hasOwnProp(SA,r)||(r==="set-cookie"?s?e[r].push(n):e[r]=[n]:e[r]=s?e[r]+", "+n:n)}),e};function wA(t){let e=0,r=t.length;for(;ee;){const n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}const TA=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),xA=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function md(t,e){return E.isArray(t)?t.map(r=>md(r,e)):wA(String(t).replace(e,""))}const CA=t=>md(t,TA),AA=t=>md(t,xA);function h1(t){const e=Object.create(null);return E.forEach(t.toJSON(),(r,n)=>{e[n]=AA(r)}),e}const sg=Symbol("internals");function Za(t){return t&&String(t).trim().toLowerCase()}function Al(t){return t===!1||t==null?t:E.isArray(t)?t.map(Al):CA(String(t))}function DA(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 EA=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function jf(t){let e=0,r=t.length;for(;ee;){const n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}function RA(t){const e=t.length-1;if(e<1||t.charCodeAt(0)!==34||t.charCodeAt(e)!==34)return t;let r="";for(let n=1;n=e))return t;r+=t[n]}return r}function MA(t){const e=Object.create(null),r=String(t);let n=0,i=!1,a=!1;function o(s){const l=jf(r.slice(n,s)),u=l.indexOf("=");if(u<1)return;const f=jf(l.slice(0,u));if(!EA.test(f))return;const c=f.toLowerCase();if(c==="__proto__"||c==="constructor"||c==="prototype")return;const v=jf(l.slice(u+1));e[c]=RA(v)}for(let s=0;s/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()),IA="__Proto__",lg=t=>t==="__proto__"?IA:t;function Zf(t,e,r,n,i){if(E.isFunction(n))return n.call(t,e,r);if(i&&(e=r),!!E.isString(e)){if(E.isString(n))return e.indexOf(n)!==-1;if(E.isRegExp(n))return n.test(e)}}function LA(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function OA(t,e){const r=E.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{__proto__:null,value:function(i,a,o){return this[n].call(this,e,i,a,o)},configurable:!0})})}let je=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function a(s,l,u){const f=Za(l);if(!f)return;const c=E.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[lg(c||l)]=Al(s))}const o=(s,l)=>E.forEach(s,(u,f)=>a(u,f,l));if(E.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(E.isString(e)&&(e=e.trim())&&!PA(e))o(bA(e),r);else if(E.isObject(e)&&E.isSafeIterable(e)){let s=Object.create(null),l,u;for(const f of e){if(!E.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],E.hasOwnProp(s,u)?(l=s[u],s[u]=E.isArray(l)?[...l,f[1]]:[l,f[1]]):s[u]=f[1]}o(s,r)}else e!=null&&a(r,e,n);return this}get(e,r){if(e=Za(e),e){const n=E.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return DA(i);if(E.isFunction(r))return r.call(this,i,n);if(E.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Za(e),e){const n=E.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Zf(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function a(o){if(o=Za(o),o){const s=E.findKey(n,o);s&&(!r||Zf(n,n[s],s,r))&&(delete n[s],i=!0)}}return E.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||Zf(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const r=this,n=Object.create(null);return E.forEach(this,(i,a)=>{const o=E.findKey(n,a);if(o){r[o]=Al(i),delete r[a];return}const s=lg(e?LA(a):String(a).trim());s!==a&&delete r[a],r[s]=Al(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return E.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&E.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(` `)}getSetCookie(){const e=this.get("set-cookie");return E.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return MA(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[sg]=this[sg]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Za(o);n[s]||(OA(i,o),n[s]=!0)}return E.isArray(e)?e.forEach(a):a(e),this}};je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(je.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});E.freezeMethods(je);const ru="[REDACTED ****]";function kA(t){if(E.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(E.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function NA(t,e){const r=new Set(e.map(a=>String(a).toLowerCase())),n=[],i=a=>{if(a===null||typeof a!="object"||E.isBuffer(a))return a;if(n.indexOf(a)!==-1)return;a instanceof je&&(a=a.toJSON()),n.push(a);let o;if(E.isArray(a))o=[],a.forEach((s,l)=>{const u=i(s);E.isUndefined(u)||(o[l]=u)});else{if(!E.isPlainObject(a)&&kA(a))return n.pop(),a;o=Object.create(null);for(const[s,l]of Object.entries(a)){const u=r.has(s.toLowerCase())?ru:i(l);E.isUndefined(u)||(o[s]=u)}}return n.pop(),o};return i(t)}function ug(t){try{return String(t)}catch(e){return""}}function BA(t){return t.errors.map(r=>{try{return r&&r.message?ug(r.message):ug(r)}catch(n){return""}}).filter(Boolean).join("; ")||t.name||"AggregateError"}const FA=` Caused by: `,kh=Symbol("causeStack");function zA(t,e){const r=E.hasOwnProp(t,kh)&&t[kh];return r&&e.endsWith(r)?e.length-r.length:-1}function HA(t,e){try{const r=e&&e.stack;if(typeof r!="string"||!r)return;const n=t.stack;if(typeof n!="string"||!n)return;const i=FA+r;t.stack=n+i,Object.defineProperty(t,kh,{__proto__:null,value:i})}catch(r){}}let V=class v1 extends Error{static from(e,r,n,i,a,o){let s=e.message;!s&&E.isArray(e.errors)&&e.errors.length&&(s=BA(e));const l=new v1(s,r||e.code,n,i,a);return Object.defineProperty(l,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),l.name=e.name,HA(l,e),e.status!=null&&l.status==null&&(l.status=e.status),o&&Object.assign(l,o),l}constructor(e,r,n,i,a){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),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(){const e=this.config,r=e&&E.hasOwnProp(e,"redact")?e.redact:void 0,n=E.isArray(r)&&r.length>0?NA(e,r):E.toJSONObject(e);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:n,code:this.code,status:this.status}}};V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";V.ERR_BAD_OPTION="ERR_BAD_OPTION";V.ECONNABORTED="ECONNABORTED";V.ETIMEDOUT="ETIMEDOUT";V.ECONNREFUSED="ECONNREFUSED";V.ERR_NETWORK="ERR_NETWORK";V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";V.ERR_DEPRECATED="ERR_DEPRECATED";V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";V.ERR_BAD_REQUEST="ERR_BAD_REQUEST";V.ERR_CANCELED="ERR_CANCELED";V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";V.ERR_INVALID_URL="ERR_INVALID_URL";V.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const UA=null,d1=100;function Nh(t){return E.isPlainObject(t)||E.isArray(t)}function p1(t){return E.endsWith(t,"[]")?t.slice(0,-2):t}function Kf(t,e,r){return t?t.concat(e).map(function(i,a){return i=p1(i),!r&&a?"["+i+"]":i}).join(r?".":""):e}function VA(t){return E.isArray(t)&&!t.some(Nh)}const GA=E.toFlatObject(E,{},null,function(e){return/^is[A-Z]/.test(e)});function rf(t,e,r){if(!E.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(y,_)=>{const S=E.getSafeProp(r,y);return E.isUndefined(S)?_:S},i=n("metaTokens",!0),a=n("visitor")||p,o=n("dots",!1),s=n("indexes",!1),l=n("Blob")||typeof Blob!="undefined"&&Blob,u=n("maxDepth",d1),f=l&&E.isSpecCompliantForm(e),c=[];if(!E.isFunction(a))throw new TypeError("visitor must be a function");function v(y){if(y===null)return"";if(E.isDate(y))return y.toISOString();if(E.isBoolean(y))return y.toString();if(!f&&E.isBlob(y))throw new V("Blob is not supported. Use a Buffer instead.");if(E.isArrayBuffer(y)||E.isTypedArray(y)){if(f&&typeof l=="function")return new l([y]);throw new V("Blob is not supported. Use a Buffer instead.",V.ERR_NOT_SUPPORT)}return y}function h(y){if(y>u)throw new V("Object is too deeply nested ("+y+" levels). Max depth: "+u,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function d(y,_){if(u===1/0)return JSON.stringify(y);const S=[];return JSON.stringify(y,function(w,T){if(!E.isObject(T))return T;for(;S.length&&S[S.length-1]!==this;)S.pop();return S.push(T),h(_+S.length-1),T})}function p(y,_,S){let b=y;if(E.isReactNative(e)&&E.isReactNativeBlob(y))return e.append(Kf(S,_,o),v(y)),!1;if(y&&!S&&typeof y=="object"){if(E.endsWith(_,"{}"))_=i?_:_.slice(0,-2),y=d(y,1);else if(E.isArray(y)&&VA(y)||(E.isFileList(y)||E.endsWith(_,"[]"))&&(b=E.toArray(y)))return _=p1(_),b.forEach(function(T,C){!(E.isUndefined(T)||T===null)&&e.append(s===!0?Kf([_],C,o):s===null?_:_+"[]",v(T))}),!1}return Nh(y)?!0:(e.append(Kf(S,_,o),v(y)),!1)}const m=Object.assign(GA,{defaultVisitor:p,convertValue:v,isVisitable:Nh});function g(y,_,S=0){if(!E.isUndefined(y)){if(h(S),c.indexOf(y)!==-1)throw new Error("Circular reference detected in "+_.join("."));c.push(y),E.forEach(y,function(w,T){(!(E.isUndefined(w)||w===null)&&a.call(e,w,E.isString(T)?T.trim():T,_,m))===!0&&g(w,_?_.concat(T):[T],S+1)}),c.pop()}}if(!E.isObject(t))throw new TypeError("data must be an object");return g(t),e}function fg(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function yd(t,e){this._pairs=[],t&&rf(t,this,e)}const g1=yd.prototype;g1.append=function(e,r){this._pairs.push([e,r])};g1.toString=function(e){const r=e?n=>e.call(this,n,fg):fg;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function WA(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function m1(t,e,r){if(!e)return t;t=t||"";const n=E.isFunction(r)?{serialize:r}:r,i=E.getSafeProp(n,"encode")||WA,a=E.getSafeProp(n,"serialize");let o;if(a?o=a(e,n):o=E.isURLSearchParams(e)?e.toString():new yd(e,n).toString(i),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}const Ka=Symbol("internals");function y1(t){return t?t.length:0}function cg(t){if(t)for(;t.length&&t[t.length-1]===null;)t.pop()}function YA(t){return typeof t=="string"&&t!==""&&String(Number(t))===t?Number(t):t}function Qa(t,e){const r=t.handlers,n=y1(r);r!==e.handlersRef?(e.handlersRef=r,e.handlerEntries.clear()):n!==e.handlersLength&&(n?e.handlerEntries.forEach(function(a,o){r[a.index]!==a.handler&&e.handlerEntries.delete(o)}):e.handlerEntries.clear()),e.handlersLength=n}class hg{constructor(){this.handlers=[],this[Ka]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,r,n){const i={fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},a=this[Ka];this.handlers==null&&(this.handlers=[]),Qa(this,a);const o=a.nextId++;return this.handlers.push(i),a.handlerEntries.set(o,{handler:i,index:this.handlers.length-1}),a.handlersLength=this.handlers.length,o}eject(e){const r=this[Ka];Qa(this,r);const n=YA(e),i=r.handlerEntries.get(n);if(i){if(r.handlerEntries.delete(n),this.handlers[i.index]!==i.handler)return;this.handlers[i.index]=null,r.iterationDepth||(cg(this.handlers),r.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Qa(this,this[Ka]))}forEach(e){const r=this[Ka];Qa(this,r),r.iterationDepth++;try{E.forEach(this.handlers,function(i){i!==null&&e(i)})}finally{--r.iterationDepth||(Qa(this,r),cg(this.handlers),r.handlersLength=y1(this.handlers))}}}const _d={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0,encodeBasicAuthUsername:!1},$A=typeof URLSearchParams!="undefined"?URLSearchParams:yd,XA=typeof FormData!="undefined"?FormData:null,qA=typeof Blob!="undefined"?Blob:null,jA={isBrowser:!0,classes:{URLSearchParams:$A,FormData:XA,Blob:qA},protocols:["http","https","file","blob","url","data"]},Sd=typeof window!="undefined"&&typeof document!="undefined",Bh=typeof navigator=="object"&&navigator||void 0,ZA=Sd&&(!Bh||["ReactNative","NativeScript","NS"].indexOf(Bh.product)<0),KA=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QA=Sd&&window.location.href||"http://localhost",JA=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sd,hasStandardBrowserEnv:ZA,hasStandardBrowserWebWorkerEnv:KA,navigator:Bh,origin:QA},Symbol.toStringTag,{value:"Module"})),Ye=Yn(Yn({},JA),jA);function eD(t,e){return rf(t,new Ye.classes.URLSearchParams,Yn({visitor:function(r,n,i,a){return Ye.isNode&&E.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}const vg=d1;function _1(t){if(t>vg)throw new V("FormData field is too deeply nested ("+t+" levels). Max depth: "+vg,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function tD(t){const e=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;(n=r.exec(t))!==null;)_1(e.length),e.push(n[0]==="[]"?"":n[1]||n[0]);return e}function S1(t){const e={},r=Object.keys(t);let n;const i=r.length;let a;for(n=0;nr!==String(n))?S1(t):t}function rD(t){const e=[t];for(;e.length;){const r=e.pop();Object.keys(r).forEach(n=>{const i=r[n]=b1(r[n]);(E.isArray(i)||E.isPlainObject(i))&&e.push(i)})}return t}function w1(t){function e(r,n,i,a){_1(a);let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&E.isArray(i)?i.length:o,l?(E.hasOwnProp(i,o)?(i[o]=b1(i[o]),i[o]=E.isArray(i[o])?i[o].concat(n):[i[o],n]):i[o]=n,!s):((!E.hasOwnProp(i,o)||!E.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],a)&&E.isArray(i[o])&&(i[o]=S1(i[o])),!s)}if(E.isFormData(t)&&E.isFunction(t.entries)){const r={};return E.forEachEntry(t,(n,i)=>{e(tD(n),i,r,0)}),rD(r)}return null}const T1=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Ki=(t,e)=>t!=null&&E.hasOwnProp(t,e)?t[e]:void 0;function nD(t,e,r){if(E.isString(t))try{return(e||JSON.parse)(t),E.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const cs={transitional:_d,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=E.isObject(e);if(a&&E.isHTMLForm(e)&&(e=new FormData(e)),E.isFormData(e))return i?JSON.stringify(w1(e)):e;if(E.isArrayBuffer(e)||E.isBuffer(e)||E.isStream(e)||E.isFile(e)||E.isBlob(e)||E.isReadableStream(e))return e;if(E.isArrayBufferView(e))return e.buffer;if(E.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){const l=Ki(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return eD(e,l).toString();if((s=E.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=Ki(this,"env"),f=u&&u.FormData;return rf(s?{"files[]":e}:e,f&&new f,l)}}return a||i?(r.setContentType("application/json",!1),nD(e)):e}],transformResponse:[function(e){const r=Ki(this,"transitional")||cs.transitional,n=r&&r.forcedJSONParsing,i=Ki(this,"responseType"),a=i==="json";if(E.isResponse(e)||E.isReadableStream(e))return e;if(e&&E.isString(e)&&(n&&!i||a)){const s=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e,Ki(this,"parseReviver"))}catch(l){if(s)throw l.name==="SyntaxError"?V.from(l,V.ERR_BAD_RESPONSE,this,null,Ki(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ye.classes.FormData,Blob:Ye.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(T1,t=>{cs.headers[t]={}});function Qf(t,e){const r=this||cs,n=e||r,i=je.from(n.headers);let a=n.data;return E.forEach(t,function(s){a=s.call(r,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function x1(t){return!!(t&&t.__CANCEL__)}let hs=class extends V{constructor(e,r,n){super(e==null?"canceled":e,V.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function C1(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new V("Request failed with status code "+r.status,r.status>=400&&r.status<500?V.ERR_BAD_REQUEST:V.ERR_BAD_RESPONSE,r.config,r.request,r))}const iD=/[\t\n\r]/g;function A1(t){if(typeof t!="string")return t;let e=0;for(;e{try{return decodeURIComponent(t)}catch(e){return t}},D1=Ye.hasStandardBrowserEnv?{write(t,e,r,n,i,a,o){if(typeof document=="undefined")return;const s=[`${t}=${encodeURIComponent(e)}`];E.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),E.isString(n)&&s.push(`path=${n}`),E.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),E.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(t){if(typeof document=="undefined")return null;const e=document.cookie;if(!e)return null;const r=e.split(";");for(let n=0;n{r=c,i=null,a&&(clearTimeout(a),a=null),t(...f)};return[(...f)=>{const c=Date.now(),v=c-r;v>=n?o(f,c):(i=f,a||(a=setTimeout(()=>{a=null,o(i)},n-v)))},()=>i&&o(i),(...f)=>o(f)]}const nu=(t,e,r=3)=>{let n=0;const i=aD(50,250);return oD(a=>{if(!a||!E.isNumber(a.loaded))return;const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=Math.max(0,s!=null?Math.min(o,s):o),u=Math.max(0,l-n),f=i(u);n=Math.max(n,l);const c={loaded:l,total:s,progress:s?l/s:void 0,bytes:u,rate:f||void 0,estimated:f&&s?(s-l)/f:void 0,event:a,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(c)},r)},pg=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},gg=(t,e=E.asap)=>(...r)=>e(()=>t(...r)),sD=Ye.hasStandardBrowserEnv?(t=>e=>(e=new URL(e,document.baseURI||Ye.origin),t.protocol===e.protocol&&t.host===e.host&&t.port===e.port))(new URL(Ye.origin)):()=>!0;function lD(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function uD(t,e){if(!e)return t;let r=t.length;for(;r>0&&t.charCodeAt(r-1)===47;)r--;return t.slice(0,r)+"/"+e.replace(/^\/+/,"")}const fD=/^https?:(?!\/\/)/i;function cD(t){return t&&t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,r,n="")=>`${r}${n}${ru}`)}function hD(t){const e=t.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ru}@`),r=e.indexOf("#"),i=(r===-1?e:e.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ru}`);return r===-1?i:`${i}#${cD(e.slice(r+1))}`}function mg(t,e){if(typeof t=="string"){const r=A1(t);if(fD.test(r))throw new V(`Invalid URL ${JSON.stringify(hD(r))}: missing "//" after protocol`,V.ERR_INVALID_URL,e)}}function E1(t,e,r,n){mg(e,n);let i=!lD(e);return t&&(i||r===!1)?(mg(t,n),uD(t,e)):e}function vD(t){const e=[{value:t}],r=new WeakSet,n=new WeakSet;for(;e.length;){const{value:i,done:a}=e.pop();if(!E.isPlainObject(i)&&!E.isArray(i))continue;if(a){r.delete(i);continue}if(r.has(i))throw new V("Circular reference detected in params",V.ERR_BAD_OPTION_VALUE);if(n.has(i))continue;n.add(i),r.add(i),e.push({value:i,done:!0});const o=Object.keys(i);Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertySymbols(i).forEach(s=>{const l=Object.getOwnPropertyDescriptor(i,s);l&&l.enumerable&&o.push(s)}),o.forEach(s=>{if(s==="__proto__"||s==="constructor"||s==="prototype"){const l=Object.getOwnPropertyDescriptor(i,s);l&&E.hasOwnProp(l,"value")&&e.push({value:l.value})}else e.push({value:i[s]})})}}const yg=t=>t instanceof je?Yn({},t):t,Fh=t=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(t).concat(Object.getOwnPropertySymbols(t).filter(e=>{const r=Object.getOwnPropertyDescriptor(t,e);return r&&r.enumerable})):Object.keys(t);function dD(t,e){const r=[],n=new WeakMap,i={};function a(s,l){if(!E.isPlainObject(l))return E.isArray(l)?l.slice():l;const u=E.isPlainObject(s)?s:i;let f=n.get(l);if(f||(f=new WeakMap,n.set(l,f)),f.has(u))return f.get(u);const c={};return f.set(u,c),r.push({base:u,source:l,result:c}),c}const o=E.isUndefined(e)?a(void 0,t):a(t,e);for(;r.length;){const{base:s,source:l,result:u}=r.pop(),f=new Set(Fh(s)),c=new Set(Fh(l));new Set([...f,...c]).forEach(h=>{if(h==="__proto__"||h==="constructor"||h==="prototype")return;const d=c.has(h),p=d?l[h]:void 0,m=(!d||E.isPlainObject(p))&&f.has(h)?s[h]:void 0;u[h]=d?a(m,p):a(void 0,m)})}return vD(o),o}function Nn(t,e,r,n){return E.isPlainObject(t)&&E.isPlainObject(e)?E.merge.call({caseless:n},t,e):E.isPlainObject(e)?E.merge({},e):E.isArray(e)?e.slice():e}function R1(t,e,r,n){if(E.isUndefined(e)){if(!E.isUndefined(t))return Nn(void 0,t,r,n)}else return Nn(t,e,r,n)}function ec(t,e){if(!E.isUndefined(e))return Nn(void 0,e)}function Oe(t,e){if(E.isUndefined(e)){if(!E.isUndefined(t))return Nn(void 0,t)}else return Nn(void 0,e)}function pD(t,e,r){const n=E.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!E.isUndefined(n))if(E.isPlainObject(n)){if(E.hasOwnProp(n,r))return n[r]}else return;const i=E.hasOwnProp(t,"transitional")?t.transitional:void 0;if(E.isPlainObject(i)&&E.hasOwnProp(i,r))return i[r]}function zh(t,e,r,n,i){if(E.hasOwnProp(i,r))return Nn(t,e);if(E.hasOwnProp(n,r))return Nn(void 0,t)}function gD(t,e,r){return R1(yg(t),yg(e),r,!0)}const mD=Object.freeze({__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),_g={url:ec,method:ec,data:ec,baseURL:Oe,transformRequest:Oe,transformResponse:Oe,params:dD,paramsSerializer:Oe,timeout:Oe,timeoutErrorMessage:Oe,withCredentials:Oe,withXSRFToken:Oe,adapter:Oe,responseType:Oe,xsrfCookieName:Oe,xsrfHeaderName:Oe,onUploadProgress:Oe,onDownloadProgress:Oe,decompress:Oe,maxContentLength:Oe,maxBodyLength:Oe,beforeRedirect:Oe,transport:Oe,httpAgent:Oe,httpsAgent:Oe,cancelToken:Oe,socketPath:Oe,allowedSocketPaths:Oe,responseEncoding:Oe,validateStatus:zh,headers:gD};function Oi(t,e){t=t||{},e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",mD);const n=Fh(Yn(Yn({},t),e));for(let i=0,a=n.length;i{yD.includes(n.toLowerCase())&&t.set(n,i)})}const Sg=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),SD=t=>D1.read(t);function M1(t,e=SD){const r=Oi({},t),n=h=>E.hasOwnProp(r,h)?r[h]:void 0,i=n("data");let a=n("withXSRFToken");const o=n("xsrfHeaderName"),s=n("xsrfCookieName");let l=n("headers");const u=n("auth"),f=n("baseURL"),c=n("allowAbsoluteUrls"),v=n("url");if(r.headers=l=je.from(l),r.url=m1(E1(f,v,c,r),n("params"),n("paramsSerializer")),u){const h=E.getSafeProp(u,"username")||"",d=E.getSafeProp(u,"password")||"",p=n("transitional"),m=p&&E.hasOwnProp(p,"encodeBasicAuthUsername")&&p.encodeBasicAuthUsername===!0;try{l.set("Authorization","Basic "+btoa((m?Sg(h):h)+":"+(d?Sg(d):"")))}catch(g){throw V.from(g,V.ERR_BAD_OPTION_VALUE,t)}}if(E.isFormData(i)){const h=E.getSafeProp(i,"getHeaders");Ye.hasStandardBrowserEnv||Ye.hasStandardBrowserWebWorkerEnv||E.isReactNative(i)?l.setContentType(void 0):E.isFunction(h)&&_D(l,h.call(i),n("formDataHeaderPolicy"))}if(Ye.hasStandardBrowserEnv&&(E.isFunction(a)&&(a=a(r)),a===!0||a==null&&sD(r.url))){const d=o&&s&&e(s);d&&l.set(o,d)}return r}const bD=typeof XMLHttpRequest!="undefined",wD=bD&&function(t){return new Promise(function(r,n){let i;try{const C=Ye.hasStandardBrowserEnv&&typeof window!="undefined"&&window.cookieStore;i=C&&E.isFunction(C.get)}catch(C){}let a;const o=M1(t,i?C=>(a=C,null):void 0);let s=o.data;const l=je.from(o.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:c}=o,v,h,d,p,m,g,y;function _(){clearTimeout(h);try{m&&m()}catch(C){setTimeout(()=>{throw C})}try{g&&g()}catch(C){setTimeout(()=>{throw C})}S&&(p&&S.removeEventListener("progress",p),S.upload&&(d&&S.upload.removeEventListener("progress",d),m&&S.upload.removeEventListener("loadend",m))),o.cancelToken&&o.cancelToken.unsubscribe(v),o.signal&&o.signal.removeEventListener("abort",v)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function b(C){if(!S)return;if(S.status===0&&(Jf(A1(o.url))||Jf(Ye.origin))!=="file"&&!(S.responseURL&&S.responseURL.startsWith("file:"))){n(new V("Request aborted",V.ECONNABORTED,t,S)),_(),S=null;return}try{C?y&&y(C):g&&g()}catch(P){setTimeout(()=>{throw P})}if(!S)return;const x=je.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),D={data:!u||u==="text"||u==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:x,config:t,request:S};C1(function(M){r(M),_()},function(M){n(M),_()},D),S=null}if("onloadend"in S?S.onloadend=b:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(b)},S.onabort=function(){S&&(n(new V("Request aborted",V.ECONNABORTED,t,S)),_(),S=null)},S.onerror=function(x){const A=x&&x.message?x.message:"Network Error",D=new V(A,V.ERR_NETWORK,t,S);D.event=x||null,n(D),_(),S=null},S.ontimeout=function(){if(!S)return;let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||_d;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),n(new V(x,A.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,t,S)),_(),S=null},s===void 0&&l.setContentType(null),E.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),u&&u!=="json"&&(S.responseType=o.responseType),c&&([p,g,y]=nu(c,!0),S.addEventListener("progress",p)),f&&S.upload&&([d,m]=nu(f),S.upload.addEventListener("progress",d),S.upload.addEventListener("loadend",m)),o.cancelToken||o.signal){if(v=C=>{if(!S)return;n(!C||C.type?new hs(null,t,S):C);const x=S;_(),S=null,x.abort()},o.cancelToken&&o.cancelToken.subscribe(v),!S)return;o.signal&&(o.signal.aborted?v():o.signal.addEventListener("abort",v))}if(!S)return;const w=Jf(o.url);if(w&&!Ye.protocols.includes(w)){n(new V("Unsupported protocol "+w+":",V.ERR_BAD_REQUEST,t)),_();return}const T=()=>{S&&("setRequestHeader"in S&&E.forEach(h1(l),function(x,A){S.setRequestHeader(A,x)}),S.send(s||null))};if(a){const C=typeof performance!="undefined"&&E.isFunction(performance.now)?()=>performance.now():Date.now,x=S.timeout>0?C()+Number(S.timeout):void 0,A=()=>{if(!S)return;const D=S;D.ontimeout(),D.abort()};if(x!==void 0){const D=()=>{const P=x-C();P>0?h=setTimeout(D,Math.min(P,2147483647)):A()};D()}D1.readAsync(a).then(D=>{if(S){if(x!==void 0&&C()>=x){A();return}if(D){const P=E.hasOwnProp(o,"xsrfHeaderName")&&o.xsrfHeaderName;l.set(P,D)}T()}}).catch(D=>{S&&(n(V.from(D,null,t,S)),_(),S=null)})}else T()})},TD=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const r=new AbortController;let n=!1;const i=function(l){if(!n){n=!0,o();const u=l instanceof Error?l:this.reason;r.abort(u instanceof V?u:new hs(u instanceof Error?u.message:u))}};let a=e&&setTimeout(()=>{a=null,i(new V(`timeout of ${e}ms exceeded`,V.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(l=>{const u=E.getSafeProp(l,"unsubscribe");E.isFunction(u)?u.call(l,i):l.removeEventListener("abort",i)}),t=null)};t.forEach(l=>{if(!n){if(l.aborted){i.call(l);return}l.addEventListener("abort",i,{once:!0})}});const{signal:s}=r;return s.unsubscribe=()=>E.asap(o),s},xD=function*(t,e){let r=t.byteLength;if(r{const i=CD(t,e);let a=0,o,s=u=>{o||(o=!0,n&&n(u))};return new ReadableStream({pull(u){return ur(this,null,function*(){try{const{done:f,value:c}=yield i.next();if(f){s(),u.close();return}let v=c.byteLength;if(r){let h=a+=v;r(h)}u.enqueue(new Uint8Array(c))}catch(f){throw s(f),f}})},cancel(u){return s(u),i.return()}},{highWaterMark:2})},_n=`\r `,wg=t=>String(t).replace(/\r\n|\r|\n/g,_n),Tg=t=>String(t).replace(/[\r\n"]/g,e=>e==="\r"?"%0D":e===` `?"%0A":"%22"),Ja=(t,e)=>{let r=0;for(let n=0;n=55296&&i<=56319&&t.charCodeAt(n+1)>=56320&&t.charCodeAt(n+1)<=57343?(r+=4,n++):r+=3}return r};class Dl extends TypeError{constructor(e,r){super(e),this.name="FormDataError",this.reason=r}}function DD(t,e,r,n,i){if(!E.isFunction(e))throw new Dl("Blob is not supported","blob");if(!E.isString(i)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(i)||/ $/.test(i))throw new Dl("Invalid multipart boundary","boundary");const a="--"+i+"--"+_n;let o=a.length;const s=[],l=f=>{if(o+f>r)throw n()};l(0);for(const[f,c]of t){const v=E.isString(c),h=v?Ja(c,!0):c.size;if(!Number.isFinite(h)||h<0)throw new Dl("Unsupported FormData part size","part");l(h+Ja(f,!0)+(!v&&c.name?Ja(c.name,!1):0)+(!v&&c.type?Ja(c.type,!1):0));let d="--"+i+_n+'Content-Disposition: form-data; name="'+Tg(wg(f))+'"';v||(d+='; filename="'+Tg(E.isString(c.name)?c.name:"blob")+'"'+_n+"Content-Type: "+String(c.type||"application/octet-stream").replace(/[\r\n]/g,"")),d+=_n+_n;const p=Ja(d,!1)+h+_n.length;l(p),o+=p,s.push({header:d,value:c,isString:v})}const u=[];for(const f of s)u.push(f.header,f.isString?wg(f.value):f.value,_n);return u.push(a),new e(u,{type:"multipart/form-data; boundary="+i})}function ED(t,e,r,n,i){if(!E.isFunction(e))throw new V("Blob is not supported",V.ERR_NOT_SUPPORT);if(i===void 0)if(E.isFunction(Ye.generateString))i="axios-"+Ye.generateString(36,"0123456789abcdef");else{const a=E.global.crypto;if(!a||!E.isFunction(a.getRandomValues))throw new V("Random byte generation is not supported",V.ERR_NOT_SUPPORT);const o=new Uint8Array(18);a.getRandomValues(o),i="axios-"+Array.from(o,s=>("0"+s.toString(16)).slice(-2)).join("")}try{return DD(t,e,r,n,i)}catch(a){if(a instanceof Dl){const o=a.reason==="boundary"?V.ERR_BAD_OPTION_VALUE:V.ERR_BAD_REQUEST;throw new V(a.message,o)}throw a}}const xg=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,P1=(t,e,r)=>e+2t<=57?t-48:(t&223)-55,RD=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===47||t===45||t===95,MD=t=>t===9||t===10||t===12||t===13||t===32,PD=t=>{const e=Math.floor(t/4),r=t%4;return e*3+(r===2?1:r===3?2:0)},ID=t=>{const e=t.length;let r=0;return e>0&&t.charCodeAt(e-1)===61&&(r++,e>1&&t.charCodeAt(e-2)===61&&r++),Math.floor((e-r)*3/4)},LD=t=>{const e=t.length;let r=0,n=0,i=!1;for(let a=0;a0){i=!0;continue}r++}}return i||n>2||n>0&&(r+n)%4!==0||r%4===1?ID(t):PD(r)},OD=(t,e,r)=>{if(!t||typeof t!="string"||!/^data:/i.test(t))return 0;const n=t.indexOf(",");if(n<0)return 0;const i=t.slice(5,n),a=t.slice(n+1);if(r.test(i))return e(a);let s=0;for(let l=0,u=a.length;l=55296&&f<=56319&&l+1=56320&&c<=57343?(s+=4,l++):s+=3}else s+=3}return s};function kD(t){const e=typeof t=="string"?t.indexOf("#"):-1;return OD(e===-1?t:t.slice(0,e),LD,/; *base64[\t\n\f\r ]*$/i)}const bd="1.21.0",Ag=64*1024,Dg={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Ms}=E,ND=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),Eg=t=>{if(!E.isString(t))return t;try{return decodeURIComponent(t)}catch(e){return t}},Ps=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},BD=t=>{const e=t.indexOf("://");let r=t;return e!==-1&&(r=r.slice(e+3)),r.includes("@")||r.includes(":")},FD=t=>{const e=E.global!==void 0&&E.global!==null?E.global:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=E.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response,Blob:e.Blob},t);const i=E.hasOwnProp(t,"fetch")?t.fetch:void 0,{Request:a,Response:o,Blob:s}=t,l=i?Ms(i):typeof fetch=="function",u=Ms(a),f=Ms(o);if(!l)return!1;const c=l&&Ms(r),v=l&&(typeof n=="function"?(_=>S=>_.encode(S))(new n):_=>ur(null,null,function*(){return new Uint8Array(yield new a(_).arrayBuffer())})),h=u&&c&&Ps(()=>{let _=!1;const S=new a(Ye.origin,{body:new r,method:"POST",get duplex(){return _=!0,"half"}}),b=S.headers.has("Content-Type");return S.body!=null&&S.body.cancel(),_&&!b}),d=f&&c&&Ps(()=>E.isReadableStream(new o("").body)),p=Object.assign(Object.create(null),Dg);u&&!Ps(()=>new a(Ye.origin,p))&&(delete p.cache,Ps(()=>new a(Ye.origin,p))||(p.cache=Dg.cache));const m={stream:d&&(_=>_.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(_=>{!m[_]&&(m[_]=(S,b)=>{let w=S&&S[_];if(w)return w.call(S);throw new V(`Response type '${_}' is not supported`,V.ERR_NOT_SUPPORT,b)})});const g=_=>ur(null,null,function*(){if(_==null)return 0;if(E.isBlob(_))return _.size;if(E.isArrayBufferView(_)||E.isArrayBuffer(_))return _.byteLength;if(E.isURLSearchParams(_)&&(_=_+""),E.isString(_))return(yield v(_)).byteLength}),y=(_,S)=>ur(null,null,function*(){const b=E.toFiniteNumber(_.getContentLength());return b==null?g(S):b});return _=>ur(null,null,function*(){let{url:S,method:b,data:w,signal:T,cancelToken:C,timeout:x,onDownloadProgress:A,onUploadProgress:D,responseType:P,headers:M,withCredentials:I="same-origin",fetchOptions:k,maxContentLength:O,maxBodyLength:N,maxRedirects:U}=M1(_);const W=E.isNumber(O)&&O>-1,X=E.isNumber(N)&&N>-1,Q=F=>E.hasOwnProp(_,F)?_[F]:void 0;let J=i||fetch;P=P?(P+"").toLowerCase():"text";let j=TD([T,C&&C.toAbortSignal()],x),z=null;const re=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let se,L=null,Y=null;const B=()=>new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,_,z);try{let F;const H=Q("auth");if(H){const pe=E.getSafeProp(H,"username")||"",st=E.getSafeProp(H,"password")||"";F={username:pe,password:st}}let Z;if(BD(S)){if(Z=new URL(S,Ye.origin),!F&&(Z.username||Z.password)){const pe=Eg(Z.username),st=Eg(Z.password);F={username:pe,password:st}}(Z.username||Z.password)&&(Z.username="",Z.password="",S=Z.href)}if(F&&(M.delete("authorization"),M.set("Authorization","Basic "+btoa(ND((F.username||"")+":"+(F.password||""))))),W&&Z&&Z.protocol==="data:"&&kD(Z.href)>O)throw new V("maxContentLength size of "+O+" exceeded",V.ERR_BAD_RESPONSE,_,z);const ue=E.isSpecCompliantForm(w)&&je.from(Q("headers")).getContentType();let ee;if(E.isString(ue)&&/^multipart\/form-data(?:\s*;|$)/i.test(ue.trim())){const pe=je.parseParameters(ue);E.hasOwnProp(pe,"boundary")&&(ee=pe.boundary)}if(E.isSpecCompliantForm(w)&&b!=="get"&&b!=="head"&&(X||D&&h||ee!==void 0)&&(w=ED(w,s,X?N:1/0,B,ee),M.setContentType(ee===void 0?w.type:ue),se=w.size),X&&b!=="get"&&b!=="head"){const pe=yield g(w);if(typeof pe=="number"&&isFinite(pe)&&(se=pe,pe>N))throw B()}const ye=X&&(E.isReadableStream(w)||E.isStream(w)),Qe=(pe,st,ji)=>bg(pe,Ag,Wn=>{if(X&&Wn>N)throw L=B();st&&st(Wn)},ji);if(h&&b!=="get"&&b!=="head"&&(D||ye)){if(se=se==null?yield y(M,w):se,se!==0||ye){let pe=new a(S,{method:"POST",body:w,duplex:"half"}),st;if(E.isFormData(w)&&(st=pe.headers.get("content-type"))&&M.setContentType(st),pe.body){const[ji,Wn]=D&&pg(se,nu(gg(D)))||[];w=Qe(pe.body,ji,Wn)}}}else if(ye&&!u&&c&&b!=="get"&&b!=="head")w=Qe(w);else if(ye&&u&&!h&&b!=="get"&&b!=="head")throw new V("Stream request bodies are not supported by the current fetch implementation",V.ERR_NOT_SUPPORT,_,z);E.isString(I)||(I=I?"include":"omit");const ke=u&&"credentials"in a.prototype;if(E.isFormData(w)){const pe=M.getContentType();pe&&/^multipart\/form-data/i.test(pe)&&!/boundary=/i.test(pe)&&M.delete("content-type")}M.set("User-Agent","axios/"+bd,!1);const Ot=k==null?k:Object.assign(Object.create(null),k);Ot&&(delete Ot.body,delete Ot.headers,delete Ot.method,delete Ot.signal,delete Ot.duplex,delete Ot.credentials);const ot=Object.assign(Object.create(null),Ot,{signal:j,method:b.toUpperCase(),headers:h1(M.normalize()),body:w,duplex:"half",credentials:ke?I:void 0});u&&(E.forEach(p,(pe,st)=>{ot[st]===void 0&&(ot[st]=pe)}),ot.signal===void 0&&(ot.signal=null),ot.body===void 0&&(ot.body=null)),U===0&&(ot.redirect="manual",Ot&&(Ot.redirect="manual")),z=u&&new a(S,ot);let lr=yield u?J(z,Ot):J(S,ot);const qi=je.from(lr.headers);if(W){const pe=E.toFiniteNumber(qi.getContentLength());if(pe!=null&&pe>O)throw new V("maxContentLength size of "+O+" exceeded",V.ERR_BAD_RESPONSE,_,z)}const Gn=d&&(P==="stream"||P==="response");if(d&&lr.body&&(A||W||Gn&&re)){const pe={};["status","statusText","headers"].forEach(ja=>{pe[ja]=lr[ja]});const st=E.toFiniteNumber(qi.getContentLength()),[ji,Wn]=A&&pg(st,nu(gg(A),!0))||[];let tg=0;const lC=ja=>{if(W&&(tg=ja,tg>O))throw Y=new V("maxContentLength size of "+O+" exceeded",V.ERR_BAD_RESPONSE,_,z);ji&&ji(ja)};lr=new o(bg(lr.body,Ag,lC,()=>{Wn&&Wn(),re&&re()}),pe)}P=P||"text";let Gr=yield m[E.findKey(m,P)||"text"](lr,_);if(W&&!d&&!Gn){let pe;if(Gr!=null&&(typeof Gr.byteLength=="number"?pe=Gr.byteLength:typeof Gr.size=="number"?pe=Gr.size:typeof Gr=="string"&&(pe=typeof n=="function"?new n().encode(Gr).byteLength:Gr.length)),typeof pe=="number"&&pe>O)throw new V("maxContentLength size of "+O+" exceeded",V.ERR_BAD_RESPONSE,_,z)}return!Gn&&re&&re(),yield new Promise((pe,st)=>{C1(pe,st,{data:Gr,headers:je.from(lr.headers),status:lr.status,statusText:lr.statusText,config:_,request:z})})}catch(F){if(re&&re(),j&&j.aborted&&j.reason instanceof V){const H=j.reason;throw H.config=_,z&&(H.request=z),F!==H&&Object.defineProperty(H,"cause",{__proto__:null,value:F,writable:!0,enumerable:!1,configurable:!0}),H}if(L)throw z&&!L.request&&(L.request=z),L;if(Y)throw Y;if(F instanceof V)throw z&&!F.request&&(F.request=z),F;if(F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)){const H=new V("Network Error",V.ERR_NETWORK,_,z,F&&F.response);throw Object.defineProperty(H,"cause",{__proto__:null,value:F.cause||F,writable:!0,enumerable:!1,configurable:!0}),H}throw V.from(F,F&&F.code,_,z,F&&F.response)}})},zD=new Map,I1=t=>{const e=Object.create(null),r=t&&E.hasOwnProp(t,"env")&&t.env;["fetch","Request","Response","Blob"].forEach(h=>{r&&E.hasOwnProp(r,h)&&(e[h]=r[h])});const{fetch:n,Request:i,Response:a,Blob:o}=e,s=[i,a,n,o];let l=s.length,u=l,f,c,v=zD;for(;u--;)f=s[u],c=v.get(f),c===void 0&&v.set(f,c=u?new Map:FD(e)),v=c;return c};I1();const wd={http:UA,xhr:wD,fetch:{get:I1}};E.forEach(wd,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch(r){}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Rg=t=>`- ${t}`,HD=t=>E.isFunction(t)||t===null||t===!1;function UD(t,e){t=E.isArray(t)?t:[t];const{length:r}=t;let n,i;const a={};for(let o=0;o`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since : `+o.map(Rg).join(` `):" "+Rg(o[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+s,V.ERR_NOT_SUPPORT)}return i}const L1={getAdapter:UD,adapters:wd};function tc(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new hs(null,t)}function Mg(t){return Math.max(0,Date.now()-t)}function rc(t){const e=E.toSafeFlatObject(t);tc(e),e.headers=je.from(E.getSafeProp(e,"headers")),e.data=Qf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const r=L1.getAdapter(e.adapter||cs.adapter,e),n=Date.now();return r(e).then(function(a){tc(e),a.duration=Mg(n),e.response=a;try{a.data=Qf.call(e,e.transformResponse,a)}finally{delete e.response}return a.headers=je.from(a.headers),a},function(a){if(!x1(a)&&(tc(e),a&&a.response)){a.response.duration=Mg(n),e.response=a.response;try{a.response.data=Qf.call(e,e.transformResponse,a.response)}finally{delete e.response}a.response.headers=je.from(a.response.headers)}return Promise.reject(a)})}const nf={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{nf[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Pg={};nf.transitional=function(e,r,n){function i(a,o){return"[Axios v"+bd+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(e===!1)throw new V(i(o," has been removed"+(r?" in "+r:"")),V.ERR_DEPRECATED);return r&&!Pg[o]&&(Pg[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}};nf.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function VD(t,e,r){if(typeof t!="object"||t===null)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const a=n[i],o=Object.prototype.hasOwnProperty.call(e,a)?e[a]:void 0;if(o){const s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new V("option "+a+" must be "+l,V.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new V("Unknown option "+a,V.ERR_BAD_OPTION)}}const El={assertOptions:VD,validators:nf},Je=El.validators,nc=t=>{if(t==null||E.isPlainObject(t)||t instanceof je)return!0;try{return E.isObject(t)&&E.getSafeProp(t,Symbol.toStringTag)==="AxiosHeaders"&&["toJSON","set","get","has","delete","clear","normalize","concat","toString",Symbol.iterator].every(e=>E.isFunction(E.getSafeProp(t,e)))}catch(e){return!1}};let Ci=class{constructor(e){this.defaults=e||{},this.interceptors={request:new hg,response:new hg}}request(e,r){return ur(this,null,function*(){try{return yield this._request(e,r)}catch(n){if(n instanceof Error)try{let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack;let o="";if(typeof a=="string"){const s=a.indexOf(` `);o=s===-1?"":a.slice(s+1)}if(!n.stack)n.stack=o;else if(o){const s=o.indexOf(` `),l=s===-1?-1:o.indexOf(` `,s+1),u=l===-1?o:o.slice(l+1),f=String(n.stack),c=zA(n,f),v=c===-1?f:f.slice(0,c),h=c===-1?"":f.slice(c);v.endsWith(u)||(n.stack=v+` `+o+h)}}catch(i){}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Oi(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&El.assertOptions(n,{silentJSONParsing:Je.transitional(Je.boolean),forcedJSONParsing:Je.transitional(Je.boolean),clarifyTimeoutError:Je.transitional(Je.boolean),legacyInterceptorReqResOrdering:Je.transitional(Je.boolean),advertiseZstdAcceptEncoding:Je.transitional(Je.boolean),validateStatusUndefinedResolves:Je.transitional(Je.boolean),encodeBasicAuthUsername:Je.transitional(Je.boolean)},!1),i!=null&&(E.isFunction(i)?r.paramsSerializer={serialize:i}:El.assertOptions(i,{encode:Je.function,serialize:Je.function},!0)),r.allowAbsoluteUrls!==void 0||(E.hasOwnProp(this.defaults,"allowAbsoluteUrls")&&this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),El.assertOptions(r,{baseUrl:Je.spelling("baseURL"),withXsrfToken:Je.spelling("withXSRFToken")},!0),r.method=(E.getSafeProp(r,"method")||E.getSafeProp(this.defaults,"method")||"get").toLowerCase();const o=E.getSafeProp(a,"common"),s=E.getSafeProp(a,r.method),l=a&&E.merge(nc(o)?o:void 0,nc(s)?s:void 0);a&&E.forEach(T1.concat("common"),m=>{nc(E.getSafeProp(a,m))&&delete a[m]}),r.headers=je.concat(l,a);const u=[];let f=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(r)===!1)return;f=f&&g.synchronous;const y=r.transitional||_d;y&&y.legacyInterceptorReqResOrdering?u.unshift(g.fulfilled,g.rejected):u.push(g.fulfilled,g.rejected)});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let v,h=0,d;if(!f){const m=[rc.bind(this),void 0];for(m.unshift(...u),m.push(...c),d=m.length,v=Promise.resolve(r);hrc.call(this,p)))}catch(_){v=Promise.reject(_)}break}}if(!v)try{v=rc.call(this,p)}catch(m){v=Promise.reject(m)}for(h=0,d=c.length;h{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 hs(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 O1(function(i){e=i}),cancel:e}}};function WD(t){return function(r){return t.apply(null,r)}}function YD(t){return E.isObject(t)&&t.isAxiosError===!0}const Rl={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rl).forEach(([t,e])=>{Rl[e]===void 0&&(Rl[e]=t)});function k1(t){const e=new Ci(t),r=i1(Ci.prototype.request,e);return E.extend(r,Ci.prototype,e,{allOwnKeys:!0}),E.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return k1(Oi(t,i))},r}const $e=k1(cs);$e.Axios=Ci;$e.CanceledError=hs;$e.CancelToken=GD;$e.isCancel=x1;$e.VERSION=bd;$e.toFormData=rf;$e.AxiosError=V;$e.Cancel=$e.CanceledError;$e.all=function(e){return Promise.all(e)};$e.spread=WD;$e.isAxiosError=YD;$e.mergeConfig=Oi;$e.AxiosHeaders=je;$e.formToJSON=t=>w1(E.isHTMLForm(t)?new FormData(t):t);$e.getAdapter=L1.getAdapter;$e.HttpStatusCode=Rl;$e.default=$e;const{Axios:oH,AxiosError:sH,CanceledError:lH,isCancel:uH,CancelToken:fH,VERSION:cH,all:hH,Cancel:vH,isAxiosError:dH,spread:pH,toFormData:gH,AxiosHeaders:mH,HttpStatusCode:yH,formToJSON:_H,getAdapter:SH,mergeConfig:bH,create:wH}=$e;var iu=function(){return iu=Object.assign||function(e){for(var r,n=1,i=arguments.length;n":">",'"':""","'":"'"};function v(d,p){for(var m=p.split($D).filter(function(g){return g});m.length;)d=d[m.shift()];return d}function h(d,p,m){try{f=v(d,p)}catch(y){}if(f==null){if(m)return h(m.ctx,p,m.parent);console.warn("Cannot evaluate expression: ".concat(p)),f=p}var g=f.toString();return n?g:g.replace(/[&<>"']/g,function(y){return c[y]})}return h(r,u,i)});return o}};vs.INTERPOLATION_RE=N1;vs.INTERPOLATION_PREFIX="%{";var Ig={getTranslationIndex:function(t,e){switch(e=Number(e),e=typeof e=="number"&&isNaN(e)?1:e,t.length>2&&t!=="pt_BR"&&(t=t.split("_")[0]),t){case"ay":case"bo":case"cgg":case"dz":case"fa":case"id":case"ja":case"jbo":case"ka":case"kk":case"km":case"ko":case"ky":case"lo":case"ms":case"my":case"sah":case"su":case"th":case"tt":case"ug":case"vi":case"wo":case"zh":return 0;case"is":return e%10!==1||e%100===11?1:0;case"jv":return e!==0?1:0;case"mk":return e===1||e%10===1?0:1;case"ach":case"ak":case"am":case"arn":case"br":case"fil":case"fr":case"gun":case"ln":case"mfe":case"mg":case"mi":case"oc":case"pt_BR":case"tg":case"ti":case"tr":case"uz":case"wa":return e>1?1:0;case"lv":return e%10===1&&e%100!==11?0:e!==0?1:2;case"lt":return e%10===1&&e%100!==11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"mnk":return e===0?0:e===1?1:2;case"ro":return e===1?0:e===0||e%100>0&&e%100<20?1:2;case"pl":return e===1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return e===1?0:e>=2&&e<=4?1:2;case"csb":return e===1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"sl":return e%100===1?0:e%100===2?1:e%100===3||e%100===4?2:3;case"mt":return e===1?0:e===0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"gd":return e===1||e===11?0:e===2||e===12?1:e>2&&e<20?2:3;case"cy":return e===1?0:e===2?1:e!==8&&e!==11?2:3;case"kw":return e===1?0:e===2?1:e===3?2:3;case"ga":return e===1?0:e===2?1:e>2&&e<7?2:e>6&&e<11?3:4;case"ar":return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5;default:return e!==1?1:0}}},Td=function(t){return{getTranslation:function(e,r,n,i,a,o,s){r===void 0&&(r=1),n===void 0&&(n=null),i===void 0&&(i=null),s===void 0&&(s=!1),a===void 0&&(a=t.current);var l=function(g,y){return y?t.interpolate(g,y,s):g};if(e=e.trim(),!e)return"";var u=a?t.silent||t.muted.indexOf(a)!==-1:!1,f=i&&Ig.getTranslationIndex(a,r)>0?i:e,c=t.translations,v=c[a]||c[a.split("_")[0]];if(!v)return u||console.warn("No translations found for ".concat(a)),l(f,o);var h=function(g){var y=Ig.getTranslationIndex(a,r);if(g.length===1&&r===1&&(y=0),!g[y])throw new Error(e+" "+y+" "+t.current+" "+r);return l(g[y],o)},d=function(){if(!u){var g="Untranslated ".concat(a," key found: ").concat(e);n&&(g+=" (with context: ".concat(n,")")),console.warn(g)}return l(f,o)},p=function(g,y){if(y===void 0&&(y=null),g instanceof Object){if(Array.isArray(g))return h(g);var _=y!=null?y:"",S=g[_];return p(S)}return y||!g?d():l(g,o)},m=v[e];return p(m,n)},gettext:function(e,r,n){return n===void 0&&(n=!1),this.getTranslation(e,void 0,void 0,void 0,void 0,r,n)},pgettext:function(e,r,n,i){return i===void 0&&(i=!1),this.getTranslation(r,1,e,void 0,void 0,n,i)},ngettext:function(e,r,n,i,a){return a===void 0&&(a=!1),this.getTranslation(e,n,null,r,void 0,i,a)},npgettext:function(e,r,n,i,a,o){return o===void 0&&(o=!1),this.getTranslation(r,i,e,n,void 0,a,o)}}},Hh=Symbol("GETTEXT");function qD(t){return t.replace(/\r?\n|\r/,"").replace(/\s\s+/g," ").trim()}function Lg(t){var e={};return Object.keys(t).forEach(function(r){var n=t[r],i={};Object.keys(n).forEach(function(a){i[qD(a)]=n[a]}),e[r]=i}),e}var jD=function(){var t=yr(Hh,null);if(!t)throw new Error("Failed to inject gettext. Make sure vue3-gettext is set up properly.");return t},Og=hd({name:"translate",props:{tag:{type:String,default:"span"},translateN:{type:Number,default:null},translatePlural:{type:String,default:null},translateContext:{type:String,default:null},translateParams:{type:Object,default:null},translateComment:{type:String,default:null}},setup:function(t,e){var r,n,i,a=t.translateN!==void 0&&t.translatePlural!==void 0;if(!a&&(t.translateN||t.translatePlural))throw new Error("`translate-n` and `translate-plural` attributes must be used together: ".concat((i=(n=(r=e.slots).default)===null||n===void 0?void 0:n.call(r)[0])===null||i===void 0?void 0:i.children,"."));var o=Pa(),s=jD(),l=Pa(null);vC(function(){!l.value&&o.value&&(l.value=o.value.innerHTML.trim())});var u=Bt(function(){var f,c=Td(s).getTranslation(l.value,t.translateN,t.translateContext,a?t.translatePlural:null,s.current);return vs(s)(c,t.translateParams,void 0,(f=dC())===null||f===void 0?void 0:f.parent)});return function(){return l.value?eu(t.tag,{ref:o,innerHTML:u.value}):eu(t.tag,{ref:o},e.slots.default?e.slots.default():"")}}}),ZD=function(t,e,r,n){var i,a=n.props||{},o=e.dataset.msgid,s=a["translate-context"],l=a["translate-n"],u=a["translate-plural"],f=l!==void 0&&u!==void 0,c=a["render-html"]==="true";if(!f&&(l||u))throw new Error("`translate-n` and `translate-plural` attributes must be used together:"+o+".");!t.silent&&a["translate-params"]&&console.warn("`translate-params` is required as an expression for v-translate directive. Please change to `v-translate='params'`: ".concat(o));var v=Td(t).getTranslation(o,l,s,f?u:null,t.current),h=Object.assign((i=r.instance)!==null&&i!==void 0?i:{},r.value),d=vs(t)(v,h,c,null);e.innerHTML=d};function kg(t){var e=function(r,n,i){r.dataset.currentLanguage=t.current,ZD(t,r,n,i)};return{beforeMount:function(r,n,i){r.dataset.msgid||(r.dataset.msgid=r.innerHTML),dd(t,function(){e(r,n,i)}),e(r,n,i)},updated:function(r,n,i){e(r,n,i)}}}var Ng={availableLanguages:{en:"English"},defaultLanguage:"en",mutedLanguages:[],silent:!1,translations:{},setGlobalProperties:!0,provideDirective:!0,provideComponent:!0};function TH(t){t===void 0&&(t={}),Object.keys(t).forEach(function(o){if(Object.keys(Ng).indexOf(o)===-1)throw new Error("".concat(o," is an invalid option for the translate plugin."))});var e=iu(iu({},Ng),t),r=Pa(Lg(e.translations)),n=vd({available:e.availableLanguages,muted:e.mutedLanguages,silent:e.silent,translations:Bt({get:function(){return r.value},set:function(o){r.value=Lg(o)}}),current:e.defaultLanguage,install:function(o){if(o[Hh]=n,o.provide(Hh,n),e.setGlobalProperties){var s=o.config.globalProperties;s.$gettext=n.$gettext,s.$pgettext=n.$pgettext,s.$ngettext=n.$ngettext,s.$npgettext=n.$npgettext,s.$gettextInterpolate=n.interpolate,s.$language=n}e.provideDirective&&o.directive("translate",kg(n)),e.provideComponent&&o.component("translate",Og)}}),i=Td(n),a=vs(n);return n.$gettext=i.gettext.bind(i),n.$pgettext=i.pgettext.bind(i),n.$ngettext=i.ngettext.bind(i),n.$npgettext=i.npgettext.bind(i),n.interpolate=a.bind(a),n.directive=kg(n),n.component=Og,n}let B1;const af=t=>B1=t,F1=Symbol();function Uh(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Po;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Po||(Po={}));function xH(){const t=e1(!0),e=t.run(()=>Pa({}));let r=[],n=[];const i=t1({install(a){af(i),i._a=a,a.provide(F1,i),a.config.globalProperties.$pinia=i,n.forEach(o=>r.push(o)),n=[]},use(a){return this._a?r.push(a):n.push(a),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return i}const z1=()=>{};function Bg(t,e,r,n=z1){t.push(e);const i=()=>{const a=t.indexOf(e);a>-1&&(t.splice(a,1),n())};return!r&&mC()&&yC(i),i}function Qi(t,...e){t.slice().forEach(r=>{r(...e)})}const KD=t=>t(),Fg=Symbol(),ic=Symbol();function Vh(t,e){t instanceof Map&&e instanceof Map?e.forEach((r,n)=>t.set(n,r)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],i=t[r];Uh(i)&&Uh(n)&&t.hasOwnProperty(r)&&!tu(n)&&!r1(n)?t[r]=Vh(i,n):t[r]=n}return t}const QD=Symbol();function JD(t){return!Uh(t)||!t.hasOwnProperty(QD)}const{assign:Sn}=Object;function eE(t){return!!(tu(t)&&t.effect)}function tE(t,e,r,n){const{state:i,actions:a,getters:o}=e,s=r.state.value[t];let l;function u(){s||(r.state.value[t]=i?i():{});const f=_C(r.state.value[t]);return Sn(f,a,Object.keys(o||{}).reduce((c,v)=>(c[v]=t1(Bt(()=>{af(r);const h=r._s.get(t);return o[v].call(h,h)})),c),{}))}return l=H1(t,u,e,r,n,!0),l}function H1(t,e,r={},n,i,a){let o;const s=Sn({actions:{}},r),l={deep:!0};let u,f,c=[],v=[],h;const d=n.state.value[t];!a&&!d&&(n.state.value[t]={}),Pa({});let p;function m(C){let x;u=f=!1,typeof C=="function"?(C(n.state.value[t]),x={type:Po.patchFunction,storeId:t,events:h}):(Vh(n.state.value[t],C),x={type:Po.patchObject,payload:C,storeId:t,events:h});const A=p=Symbol();n1().then(()=>{p===A&&(u=!0)}),f=!0,Qi(c,x,n.state.value[t])}const g=a?function(){const{state:x}=r,A=x?x():{};this.$patch(D=>{Sn(D,A)})}:z1;function y(){o.stop(),c=[],v=[],n._s.delete(t)}const _=(C,x="")=>{if(Fg in C)return C[ic]=x,C;const A=function(){af(n);const D=Array.from(arguments),P=[],M=[];function I(N){P.push(N)}function k(N){M.push(N)}Qi(v,{args:D,name:A[ic],store:b,after:I,onError:k});let O;try{O=C.apply(this&&this.$id===t?this:b,D)}catch(N){throw Qi(M,N),N}return O instanceof Promise?O.then(N=>(Qi(P,N),N)).catch(N=>(Qi(M,N),Promise.reject(N))):(Qi(P,O),O)};return A[Fg]=!0,A[ic]=x,A},S={_p:n,$id:t,$onAction:Bg.bind(null,v),$patch:m,$reset:g,$subscribe(C,x={}){const A=Bg(c,C,x.detached,()=>D()),D=o.run(()=>dd(()=>n.state.value[t],P=>{(x.flush==="sync"?f:u)&&C({storeId:t,type:Po.direct,events:h},P)},Sn({},l,x)));return A},$dispose:y},b=vd(S);n._s.set(t,b);const T=(n._a&&n._a.runWithContext||KD)(()=>n._e.run(()=>(o=e1()).run(()=>e({action:_}))));for(const C in T){const x=T[C];if(tu(x)&&!eE(x)||r1(x))a||(d&&JD(x)&&(tu(x)?x.value=d[C]:Vh(x,d[C])),n.state.value[t][C]=x);else if(typeof x=="function"){const A=_(x,C);T[C]=A,s.actions[C]=x}}return Sn(b,T),Sn(gC(b),T),Object.defineProperty(b,"$state",{get:()=>n.state.value[t],set:C=>{m(x=>{Sn(x,C)})}}),n._p.forEach(C=>{Sn(b,o.run(()=>C({store:b,app:n._a,pinia:n,options:s})))}),d&&a&&r.hydrate&&r.hydrate(b.$state,d),u=!0,f=!0,b}function CH(t,e,r){let n,i;const a=typeof e=="function";typeof t=="string"?(n=t,i=a?r:e):(i=t,n=t.id);function o(s,l){const u=pC();return s=s||(u?yr(F1,null):null),s&&af(s),s=B1,s._s.has(n)||(a?H1(n,e,i,s):tE(n,i,s)),s._s.get(n)}return o.$id=n,o}const pa=typeof document!="undefined";function U1(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function rE(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&U1(t.default)}const Ce=Object.assign;function ac(t,e){const r={};for(const n in e){const i=e[n];r[n]=_r(i)?i.map(t):t(i)}return r}const Io=()=>{},_r=Array.isArray;function zg(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}const V1=/#/g,nE=/&/g,iE=/\//g,aE=/=/g,oE=/\?/g,G1=/\+/g,sE=/%5B/g,lE=/%5D/g,W1=/%5E/g,uE=/%60/g,Y1=/%7B/g,fE=/%7C/g,$1=/%7D/g,cE=/%20/g;function xd(t){return t==null?"":encodeURI(""+t).replace(fE,"|").replace(sE,"[").replace(lE,"]")}function hE(t){return xd(t).replace(Y1,"{").replace($1,"}").replace(W1,"^")}function Gh(t){return xd(t).replace(G1,"%2B").replace(cE,"+").replace(V1,"%23").replace(nE,"%26").replace(uE,"`").replace(Y1,"{").replace($1,"}").replace(W1,"^")}function vE(t){return Gh(t).replace(aE,"%3D")}function dE(t){return xd(t).replace(V1,"%23").replace(oE,"%3F")}function pE(t){return dE(t).replace(iE,"%2F")}function Go(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch(e){}return""+t}const gE=/\/$/,mE=t=>t.replace(gE,"");function oc(t,e,r="/"){let n,i={},a="",o="";const s=e.indexOf("#");let l=e.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(n=e.slice(0,l),a=e.slice(l,s>0?s:e.length),i=t(a.slice(1))),s>=0&&(n=n||e.slice(0,s),o=e.slice(s,e.length)),n=bE(n!=null?n:e,r),{fullPath:n+a+o,path:n,query:i,hash:Go(o)}}function yE(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function Hg(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function _E(t,e,r){const n=e.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Ia(e.matched[n],r.matched[i])&&X1(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function Ia(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function X1(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var r in t)if(!SE(t[r],e[r]))return!1;return!0}function SE(t,e){return _r(t)?Ug(t,e):_r(e)?Ug(e,t):(t==null?void 0:t.valueOf())===(e==null?void 0:e.valueOf())}function Ug(t,e){return _r(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function bE(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=r.length-1,o,s;for(o=0;o1&&a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const cn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Wh=(function(t){return t.pop="pop",t.push="push",t})({}),sc=(function(t){return t.back="back",t.forward="forward",t.unknown="",t})({});function wE(t){if(!t)if(pa){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),mE(t)}const TE=/^[^#]+#/;function xE(t,e){return t.replace(TE,"#")+e}function CE(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const of=()=>({left:window.scrollX,top:window.scrollY});function AE(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;e=CE(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Vg(t,e){return(history.state?history.state.position-e:-1)+t}const Yh=new Map;function DE(t,e){Yh.set(t,e)}function EE(t){const e=Yh.get(t);return Yh.delete(t),e}function RE(t){return typeof t=="string"||t&&typeof t=="object"}function q1(t){return typeof t=="string"||typeof t=="symbol"}let Be=(function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t})({});const j1=Symbol("");Be.MATCHER_NOT_FOUND+"",Be.NAVIGATION_GUARD_REDIRECT+"",Be.NAVIGATION_ABORTED+"",Be.NAVIGATION_CANCELLED+"",Be.NAVIGATION_DUPLICATED+"";function La(t,e){return Ce(new Error,{type:t,[j1]:!0},e)}function Wr(t,e){return t instanceof Error&&j1 in t&&(e==null||!!(t.type&e))}const ME=["params","query","hash"];function PE(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const r of ME)r in t&&(e[r]=t[r]);return JSON.stringify(e,null,2)}function IE(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let n=0;ni&&Gh(i)):[n&&Gh(n)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+r,i!=null&&(e+="="+i))})}return e}function LE(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=_r(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const Cd=Symbol(""),Wg=Symbol(""),sf=Symbol(""),Ad=Symbol(""),$h=Symbol("");function eo(){let t=[];function e(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function Z1(t,e,r){const n=()=>{t[e].delete(r)};SC(n),bC(n),wC(()=>{t[e].add(r)}),t[e].add(r)}function AH(t){const e=yr(Cd,{}).value;e&&Z1(e,"leaveGuards",t)}function DH(t){const e=yr(Cd,{}).value;e&&Z1(e,"updateGuards",t)}function Tn(t,e,r,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=v=>{v===!1?l(La(Be.NAVIGATION_ABORTED,{from:r,to:e})):v instanceof Error?l(v):RE(v)?l(La(Be.NAVIGATION_GUARD_REDIRECT,{from:e,to:v})):(o&&n.enterCallbacks[i]===o&&typeof v=="function"&&o.push(v),s())},f=a(()=>t.call(n&&n.instances[i],e,r,u));let c=Promise.resolve(f);t.length<3&&(c=c.then(u)),c.catch(v=>l(v))})}function lc(t,e,r,n,i=a=>a()){const a=[];for(const o of t)for(const s in o.components){let l=o.components[s];if(!(e!=="beforeRouteEnter"&&!o.instances[s]))if(U1(l)){const u=(l.__vccOpts||l)[e];u&&a.push(Tn(u,r,n,o,s,i))}else{let u=l();a.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const c=rE(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const v=(c.__vccOpts||c)[e];return v&&Tn(v,r,n,o,s,i)()}))}}return a}function OE(t,e){const r=[],n=[],i=[],a=Math.max(e.matched.length,t.matched.length);for(let o=0;oIa(u,s))?n.push(s):r.push(s));const l=t.matched[o];l&&(e.matched.find(u=>Ia(u,l))||i.push(l))}return[r,n,i]}let kE=()=>location.protocol+"//"+location.host;function K1(t,e){const{pathname:r,search:n,hash:i}=e,a=t.indexOf("#");if(a>-1){let o=i.includes(t.slice(a))?t.slice(a).length:1,s=i.slice(o);return s[0]!=="/"&&(s="/"+s),Hg(s,"")}return Hg(r,t)+n+i}function NE(t,e,r,n){let i=[],a=[],o=null;const s=({state:v})=>{const h=K1(t,location),d=r.value,p=e.value;let m=0;if(v){if(r.value=h,e.value=v,o&&o===d){o=null;return}m=p?v.position-p.position:0}else n(h);i.forEach(g=>{g(r.value,d,{delta:m,type:Wh.pop,direction:m?m>0?sc.forward:sc.back:sc.unknown})})};function l(){o=r.value}function u(v){i.push(v);const h=()=>{const d=i.indexOf(v);d>-1&&i.splice(d,1)};return a.push(h),h}function f(){if(document.visibilityState==="hidden"){const{history:v}=window;if(!v.state)return;v.replaceState(Ce({},v.state,{scroll:of()}),"")}}function c(){for(const v of a)v();a=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:l,listen:u,destroy:c}}function Yg(t,e,r,n=!1,i=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:i?of():null}}function BE(t){const{history:e,location:r}=window,n={value:K1(t,r)},i={value:e.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=t.indexOf("#"),v=c>-1?(r.host&&document.querySelector("base")?t:t.slice(c))+l:kE()+t+l;try{e[f?"replaceState":"pushState"](u,"",v),i.value=u}catch(h){console.error(h),r[f?"replace":"assign"](v)}}function o(l,u){a(l,Ce({},e.state,Yg(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),n.value=l}function s(l,u){const f=Ce({},i.value,e.state,{forward:l,scroll:of()});a(f.current,f,!0),a(l,Ce({},Yg(n.value,l,null),{position:f.position+1},u),!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function EH(t){t=wE(t);const e=BE(t),r=NE(t,e.state,e.location,e.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=Ce({location:"",base:t,go:n,createHref:xE.bind(null,t)},e,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}let _i=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.Group=2]="Group",t})({});var Xe=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.ParamRegExp=2]="ParamRegExp",t[t.ParamRegExpEnd=3]="ParamRegExpEnd",t[t.EscapeNext=4]="EscapeNext",t})(Xe||{});const FE={type:_i.Static,value:""},zE=/[a-zA-Z0-9_]/;function HE(t){if(!t)return[[]];if(t==="/")return[[FE]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${r})/"${u}": ${h}`)}let r=Xe.Static,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(r===Xe.Static?a.push({type:_i.Static,value:u}):r===Xe.Param||r===Xe.ParamRegExp||r===Xe.ParamRegExpEnd?(a.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:_i.Param,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function v(){u+=l}for(;se.length?e.length===1&&e[0]===dt.Static+dt.Segment?1:-1:0}function Q1(t,e){let r=0;const n=t.score,i=e.score;for(;r0&&e[e.length-1]<0}const YE={strict:!1,end:!0,sensitive:!1};function $E(t,e,r){const n=GE(HE(t.path),r),i=Ce(n,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function XE(t,e){const r=[],n=new Map;e=zg(YE,e);function i(c){return n.get(c)}function a(c,v,h){const d=!h,p=jg(c);p.aliasOf=h&&h.record;const m=zg(e,c),g=[p];if("alias"in c){const S=typeof c.alias=="string"?[c.alias]:c.alias;for(const b of S)g.push(jg(Ce({},p,{components:h?h.record.components:p.components,path:b,aliasOf:h?h.record:p})))}let y,_;for(const S of g){const{path:b}=S;if(v&&b[0]!=="/"){const w=v.record.path,T=w[w.length-1]==="/"?"":"/";S.path=v.record.path+(b&&T+b)}if(y=$E(S,v,m),h?h.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),d&&c.name&&!Zg(y)&&o(c.name)),J1(y)&&l(y),p.children){const w=p.children;for(let T=0;T{o(_)}:Io}function o(c){if(q1(c)){const v=n.get(c);v&&(n.delete(c),r.splice(r.indexOf(v),1),v.children.forEach(o),v.alias.forEach(o))}else{const v=r.indexOf(c);v>-1&&(r.splice(v,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return r}function l(c){const v=ZE(c,r);r.splice(v,0,c),c.record.name&&!Zg(c)&&n.set(c.record.name,c)}function u(c,v){let h,d={},p,m;if("name"in c&&c.name){if(h=n.get(c.name),!h)throw La(Be.MATCHER_NOT_FOUND,{location:c});m=h.record.name,d=Ce(qg(v.params,h.keys.filter(_=>!_.optional).concat(h.parent?h.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&qg(c.params,h.keys.map(_=>_.name))),p=h.stringify(d)}else if(c.path!=null)p=c.path,h=r.find(_=>_.re.test(p)),h&&(d=h.parse(p),m=h.record.name);else{if(h=v.name?n.get(v.name):r.find(_=>_.re.test(v.path)),!h)throw La(Be.MATCHER_NOT_FOUND,{location:c,currentLocation:v});m=h.record.name,d=Ce({},v.params,c.params),p=h.stringify(d)}const g=[];let y=h;for(;y;)g.unshift(y.record),y=y.parent;return{name:m,path:p,params:d,matched:g,meta:jE(g)}}t.forEach(c=>a(c));function f(){r.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:s,getRecordMatcher:i}}function qg(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function jg(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:qE(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function qE(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function Zg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function jE(t){return t.reduce((e,r)=>Ce(e,r.meta),{})}function ZE(t,e){let r=0,n=e.length;for(;r!==n;){const a=r+n>>1;Q1(t,e[a])<0?n=a:r=a+1}const i=KE(t);return i&&(n=e.lastIndexOf(i,n-1)),n}function KE(t){let e=t;for(;e=e.parent;)if(J1(e)&&Q1(t,e)===0)return e}function J1({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function Kg(t){const e=yr(sf),r=yr(Ad),n=Bt(()=>{const l=Mo(t.to);return e.resolve(l)}),i=Bt(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=r.matched;if(!f||!c.length)return-1;const v=c.findIndex(Ia.bind(null,f));if(v>-1)return v;const h=Qg(l[u-2]);return u>1&&Qg(f)===h&&c[c.length-1].path!==h?c.findIndex(Ia.bind(null,l[u-2])):v}),a=Bt(()=>i.value>-1&&rR(r.params,n.value.params)),o=Bt(()=>i.value>-1&&i.value===r.matched.length-1&&X1(r.params,n.value.params));function s(l={}){if(tR(l)){const u=e[Mo(t.replace)?"replace":"push"](Mo(t.to)).catch(Io);return t.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:Bt(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function QE(t){return t.length===1?t[0]:t}const JE=hd({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Kg,setup(t,{slots:e}){const r=vd(Kg(t)),{options:n}=yr(sf),i=Bt(()=>({[Jg(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[Jg(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=e.default&&QE(e.default(r));return t.custom?a:eu("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),eR=JE;function tR(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function rR(t,e){for(const r in e){const n=e[r],i=t[r];if(typeof n=="string"){if(n!==i)return!1}else if(!_r(i)||i.length!==n.length||n.some((a,o)=>a.valueOf()!==i[o].valueOf()))return!1}return!0}function Qg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Jg=(t,e,r)=>t!=null?t:e!=null?e:r,nR=hd({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=yr($h),i=Bt(()=>t.route||n.value),a=yr(Wg,0),o=Bt(()=>{let u=Mo(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=Bt(()=>i.value.matched[o.value]);qf(Wg,Bt(()=>o.value+1)),qf(Cd,s),qf($h,i);const l=Pa();return dd(()=>[l.value,s.value,t.name],([u,f,c],[v,h,d])=>{f&&(f.instances[c]=u,h&&h!==f&&u&&u===v&&(f.leaveGuards.size||(f.leaveGuards=h.leaveGuards),f.updateGuards.size||(f.updateGuards=h.updateGuards))),u&&f&&(!h||!Ia(f,h)||!v)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=t.name,c=s.value,v=c&&c.components[f];if(!v)return em(r.default,{Component:v,route:u});const h=c.props[f],d=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=eu(v,Ce({},d,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return em(r.default,{Component:m,route:u})||m}}});function em(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const iR=nR;function RH(t){const e=XE(t.routes,t),r=t.parseQuery||IE,n=t.stringifyQuery||Gg,i=t.history,a=eo(),o=eo(),s=eo(),l=TC(cn);let u=cn;pa&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=ac.bind(null,L=>""+L),c=ac.bind(null,pE),v=ac.bind(null,Go);function h(L,Y){let B,F;return q1(L)?(B=e.getRecordMatcher(L),F=Y):F=L,e.addRoute(F,B)}function d(L){const Y=e.getRecordMatcher(L);Y&&e.removeRoute(Y)}function p(){return e.getRoutes().map(L=>L.record)}function m(L){return!!e.getRecordMatcher(L)}function g(L,Y){if(Y=Ce({},Y||l.value),typeof L=="string"){const ee=oc(r,L,Y.path),ye=e.resolve({path:ee.path},Y),Qe=i.createHref(ee.fullPath);return Ce(ee,ye,{params:v(ye.params),hash:Go(ee.hash),redirectedFrom:void 0,href:Qe})}let B;if(L.path!=null)B=Ce({},L,{path:oc(r,L.path,Y.path).path});else{const ee=Ce({},L.params);for(const ye in ee)ee[ye]==null&&delete ee[ye];B=Ce({},L,{params:c(ee)}),Y.params=c(Y.params)}const F=e.resolve(B,Y),H=L.hash||"";F.params=f(v(F.params));const Z=yE(n,Ce({},L,{hash:hE(H),path:F.path})),ue=i.createHref(Z);return Ce({fullPath:Z,hash:H,query:n===Gg?LE(L.query):L.query||{}},F,{redirectedFrom:void 0,href:ue})}function y(L){return typeof L=="string"?oc(r,L,l.value.path):Ce({},L)}function _(L,Y){if(u!==L)return La(Be.NAVIGATION_CANCELLED,{from:Y,to:L})}function S(L){return T(L)}function b(L){return S(Ce(y(L),{replace:!0}))}function w(L,Y){const B=L.matched[L.matched.length-1];if(B&&B.redirect){const{redirect:F}=B;let H=typeof F=="function"?F(L,Y):F;return typeof H=="string"&&(H=H.includes("?")||H.includes("#")?H=y(H):{path:H},H.params={}),Ce({query:L.query,hash:L.hash,params:H.path!=null?{}:L.params},H)}}function T(L,Y){const B=u=g(L),F=l.value,H=L.state,Z=L.force,ue=L.replace===!0,ee=w(B,F);if(ee)return T(Ce(y(ee),{state:typeof ee=="object"?Ce({},H,ee.state):H,force:Z,replace:ue}),Y||B);const ye=B;ye.redirectedFrom=Y;let Qe;return!Z&&_E(n,F,B)&&(Qe=La(Be.NAVIGATION_DUPLICATED,{to:ye,from:F}),Q(F,F,!0,!1)),(Qe?Promise.resolve(Qe):A(ye,F)).catch(ke=>Wr(ke)?Wr(ke,Be.NAVIGATION_GUARD_REDIRECT)?ke:X(ke):U(ke,ye,F)).then(ke=>{if(ke){if(Wr(ke,Be.NAVIGATION_GUARD_REDIRECT))return T(Ce({replace:ue},y(ke.to),{state:typeof ke.to=="object"?Ce({},H,ke.to.state):H,force:Z}),Y||ye)}else ke=P(ye,F,!0,ue,H);return D(ye,F,ke),ke})}function C(L,Y){const B=_(L,Y);return B?Promise.reject(B):Promise.resolve()}function x(L){const Y=z.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(L):L()}function A(L,Y){let B;const[F,H,Z]=OE(L,Y);B=lc(F.reverse(),"beforeRouteLeave",L,Y);for(const ee of F)ee.leaveGuards.forEach(ye=>{B.push(Tn(ye,L,Y))});const ue=C.bind(null,L,Y);return B.push(ue),se(B).then(()=>{B=[];for(const ee of a.list())B.push(Tn(ee,L,Y));return B.push(ue),se(B)}).then(()=>{B=lc(H,"beforeRouteUpdate",L,Y);for(const ee of H)ee.updateGuards.forEach(ye=>{B.push(Tn(ye,L,Y))});return B.push(ue),se(B)}).then(()=>{B=[];for(const ee of Z)if(ee.beforeEnter)if(_r(ee.beforeEnter))for(const ye of ee.beforeEnter)B.push(Tn(ye,L,Y));else B.push(Tn(ee.beforeEnter,L,Y));return B.push(ue),se(B)}).then(()=>(L.matched.forEach(ee=>ee.enterCallbacks={}),B=lc(Z,"beforeRouteEnter",L,Y,x),B.push(ue),se(B))).then(()=>{B=[];for(const ee of o.list())B.push(Tn(ee,L,Y));return B.push(ue),se(B)}).catch(ee=>Wr(ee,Be.NAVIGATION_CANCELLED)?ee:Promise.reject(ee))}function D(L,Y,B){s.list().forEach(F=>x(()=>F(L,Y,B)))}function P(L,Y,B,F,H){const Z=_(L,Y);if(Z)return Z;const ue=Y===cn,ee=pa?history.state:{};B&&(F||ue?i.replace(L.fullPath,Ce({scroll:ue&&ee&&ee.scroll},H)):i.push(L.fullPath,H)),l.value=L,Q(L,Y,B,ue),X()}let M;function I(){M||(M=i.listen((L,Y,B)=>{if(!re.listening)return;const F=g(L),H=w(F,re.currentRoute.value);if(H){T(Ce(H,{replace:!0,force:!0}),F).catch(Io);return}u=F;const Z=l.value;pa&&DE(Vg(Z.fullPath,B.delta),of()),A(F,Z).catch(ue=>Wr(ue,Be.NAVIGATION_ABORTED|Be.NAVIGATION_CANCELLED)?ue:Wr(ue,Be.NAVIGATION_GUARD_REDIRECT)?(T(Ce(y(ue.to),{force:!0}),F).then(ee=>{Wr(ee,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&!B.delta&&B.type===Wh.pop&&i.go(-1,!1)}).catch(Io),Promise.reject()):(B.delta&&i.go(-B.delta,!1),U(ue,F,Z))).then(ue=>{ue=ue||P(F,Z,!1),ue&&(B.delta&&!Wr(ue,Be.NAVIGATION_CANCELLED)?i.go(-B.delta,!1):B.type===Wh.pop&&Wr(ue,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),D(F,Z,ue)}).catch(Io)}))}let k=eo(),O=eo(),N;function U(L,Y,B){X(L);const F=O.list();return F.length?F.forEach(H=>H(L,Y,B)):console.error(L),Promise.reject(L)}function W(){return N&&l.value!==cn?Promise.resolve():new Promise((L,Y)=>{k.add([L,Y])})}function X(L){return N||(N=!L,I(),k.list().forEach(([Y,B])=>L?B(L):Y()),k.reset()),L}function Q(L,Y,B,F){const{scrollBehavior:H}=t;if(!pa||!H)return Promise.resolve();const Z=!B&&EE(Vg(L.fullPath,0))||(F||!B)&&history.state&&history.state.scroll||null;return n1().then(()=>H(L,Y,Z)).then(ue=>ue&&AE(ue)).catch(ue=>U(ue,L,Y))}const J=L=>i.go(L);let j;const z=new Set,re={currentRoute:l,listening:!0,addRoute:h,removeRoute:d,clearRoutes:e.clearRoutes,hasRoute:m,getRoutes:p,resolve:g,options:t,push:S,replace:b,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:W,install(L){L.component("RouterLink",eR),L.component("RouterView",iR),L.config.globalProperties.$router=re,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>Mo(l)}),pa&&!j&&l.value===cn&&(j=!0,S(i.location).catch(F=>{}));const Y={};for(const F in cn)Object.defineProperty(Y,F,{get:()=>l.value[F],enumerable:!0});L.provide(sf,re),L.provide(Ad,xC(Y)),L.provide($h,l);const B=L.unmount;z.add(L),L.unmount=function(){z.delete(L),z.size<1&&(u=cn,M&&M(),M=null,l.value=cn,j=!1,N=!1),B()}}};function se(L){return L.reduce((Y,B)=>Y.then(()=>x(B)),Promise.resolve())}return re}function MH(){return yr(sf)}function PH(t){return yr(Ad)}var Xh=function(t,e){return Xh=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])},Xh(t,e)};function q(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var aR=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),oR=(function(){function t(){this.browser=new aR,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!="undefined"}return t})(),ve=new oR;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ve.wxa=!0,ve.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?ve.worker=!0:!ve.hasGlobalWindow||"Deno"in window||typeof navigator!="undefined"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ve.node=!0,ve.svgSupported=!0):sR(navigator.userAgent,ve);function sR(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!="undefined",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!="undefined";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 Dd=12,lR="sans-serif",Bn=Dd+"px "+lR,uR=20,fR=100,cR="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function hR(t){var e={};if(typeof JSON=="undefined")return e;for(var r=0;r=0)s=o*r.length;else for(var l=0;l=mR&&(uc=0),uc++}function uf(){for(var t=[],e=0;e>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(){R(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function HR(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?rm(s,o):rm(o,s))}function pS(t){return t.nodeName.toUpperCase()==="CANVAS"}var UR=/([&<>"'])/g,VR={"&":"&","<":"<",">":">",'"':""","'":"'"};function yt(t){return t==null?"":(t+"").replace(UR,function(e,r){return VR[r]})}var GR=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cc=[],WR=ve.browser.firefox&&+ve.browser.version.split(".")[0]<39;function Qh(t,e,r,n){return r=r||{},n?nm(t,e,r):WR&&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):nm(t,e,r),r}function nm(t,e,r){if(ve.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(pS(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Kh(cc,t,n,i)){r.zrX=cc[0],r.zrY=cc[1];return}}r.zrX=r.zrY=0}function kd(t){return t||window.event}function Gt(t,e,r){if(e=kd(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&&Qh(t,o,e,r)}else{Qh(t,e,e,r);var a=YR(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&GR.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function YR(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 $R(t,e,r,n){t.addEventListener(e,r,n)}function XR(t,e,r,n){t.removeEventListener(e,r,n)}var gS=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},qR=(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;o1&&n&&n.length>1){var a=im(n)/im(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=jR(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Jt(){return[1,0,0,1,0,0]}function Gi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function gs(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 Di(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 uu(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 hf(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 mS(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 Hn(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 ZR(t){var e=Jt();return gs(e,t),e}const KR=Object.freeze(Object.defineProperty({__proto__:null,clone:ZR,copy:gs,create:Jt,identity:Gi,invert:Hn,mul:Di,rotate:hf,scale:mS,translate:uu},Symbol.toStringTag,{value:"Module"}));var he=(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})(),Si=Math.min,ya=Math.max,Jh=Math.abs,am=["x","y"],QR=["width","height"],Xn=new he,qn=new he,jn=new he,Zn=new he,Nt=yS(),wo=Nt.minTv,ev=Nt.maxTv,Lo=[0,0],le=(function(){function t(e,r,n,i){vc(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=Si(e.x,this.x),n=Si(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ya(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ya(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){return JR(Jt(),this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&he.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=vc(eM,e.x,e.y,e.width,e.height)),r instanceof t||(r=vc(tM,r.x,r.y,r.width,r.height));var s=!!n;Nt.reset(i,s);var l=Nt.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,p=r.y+l,m=r.y+r.height-l;if(u>f||c>v||h>d||p>m)return!1;var g=!(f=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){om(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?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},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&&om(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}Xn.x=jn.x=r.x,Xn.y=Zn.y=r.y,qn.x=Zn.x=r.x+r.width,qn.y=jn.y=r.y+r.height,Xn.transform(n),Zn.transform(n),qn.transform(n),jn.transform(n),e.x=Si(Xn.x,qn.x,jn.x,Zn.x),e.y=Si(Xn.y,qn.y,jn.y,Zn.y);var l=ya(Xn.x,qn.x,jn.x,Zn.x),u=ya(Xn.y,qn.y,jn.y,Zn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,n){var i=n.width/r.width,a=n.height/r.height;return e=Gi(e||[]),uu(e,e,Ml(dc,-r.x,-r.y)),mS(e,e,Ml(dc,i,a)),uu(e,e,Ml(dc,n.x,n.y)),e},t})();le.create;var vc=le.set,om=le.copy,JR=le.calculateTransform;le.applyTransform;le.contain;var eM=new le(0,0,0,0),tM=new le(0,0,0,0),dc=[];function sm(t,e,r,n,i,a,o,s){var l=Jh(e-r),u=Jh(n-t),f=Si(l,u),c=am[i],v=am[1-i],h=QR[i];e=u||!Nt.bidirectional)&&(wo[c]=-u,wo[v]=0,Nt.useDir&&Nt.calcDirMTV())))}function yS(){var t=0,e=new he,r=new he,n={minTv:new he,maxTv:new he,useDir:!1,dirMinTv:new he,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=ya(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()=0;c--){var v=a[c];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(pc.copy(v.getBoundingRect()),v.transform&&pc.applyTransform(v.transform),pc.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function oM(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?_S:!0}return!1}function lm(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=oM(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==_S)){e.target=o;break}}}function bS(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var wS=32,ro=7;function sM(t){for(var e=0;t>=wS;)e|=t&1,t>>=1;return t+e}function um(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i=0;)i++;return i-e}function lM(t,e,r){for(r--;e>>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 gc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function mc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function uM(t,e){var r=ro,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])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=ro||T>=ro);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(g=0;g=0;g--)t[w+g]=t[b+g];t[S]=o[_];return}for(var T=r;;){var C=0,x=0,A=!1;do if(e(o[_],t[y])<0){if(t[S--]=t[y--],C++,x=0,--d===0){A=!0;break}}else if(t[S--]=o[_--],x++,C=0,--m===1){A=!0;break}while((C|x)=0;g--)t[w+g]=t[b+g];if(d===0){A=!0;break}}if(t[S--]=o[_--],--m===1){A=!0;break}if(x=m-gc(t[y],o,0,m,m-1,e),x!==0){for(S-=x,_-=x,m-=x,w=S+1,b=_+1,g=0;g=ro||x>=ro);if(A)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),m===1){for(S-=d,y-=d,w=S+1,b=y+1,g=d-1;g>=0;g--)t[w+g]=t[b+g];t[S]=o[_]}else{if(m===0)throw new Error;for(b=S-(m-1),g=0;gs&&(l=s),fm(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 Et=1,To=2,ga=4,cm=!1;function yc(){cm||(cm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hm(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var fM=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hm}return t.prototype.traverse=function(e,r){for(var n=0;n=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})(),fu;fu=ve.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Oo={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-Oo.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?Oo.bounceIn(t*2)*.5:Oo.bounceOut(t*2-1)*.5+.5}},Ls=Math.pow,Pn=Math.sqrt,cu=1e-8,TS=1e-4,vm=Pn(3),Os=1/3,Er=Vi(),$t=Vi(),xa=Vi();function Dn(t){return t>-cu&&tcu||t<-cu}function qe(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 dm(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function hu(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(Dn(f)&&Dn(c))if(Dn(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var p=c*c-4*f*v;if(Dn(p)){var m=c/f,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g)}else if(p>0){var y=Pn(p),_=f*s+1.5*o*(-c+y),S=f*s+1.5*o*(-c-y);_<0?_=-Ls(-_,Os):_=Ls(_,Os),S<0?S=-Ls(-S,Os):S=Ls(S,Os);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*Pn(f*f*f)),w=Math.acos(b)/3,T=Pn(f),C=Math.cos(w),d=(-s-2*T*C)/(3*o),g=(-s+T*(C+vm*Math.sin(w)))/(3*o),x=(-s+T*(C-vm*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g),x>=0&&x<=1&&(a[h++]=x)}}return h}function CS(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(Dn(o)){if(xS(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Dn(f))i[0]=-a/(2*o);else if(f>0){var c=Pn(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 vu(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 AS(t,e,r,n,i,a,o,s,l,u,f){var c,v=.005,h=1/0,d,p,m,g;Er[0]=l,Er[1]=u;for(var y=0;y<1;y+=.05)$t[0]=qe(t,r,i,o,y),$t[1]=qe(e,n,a,s,y),m=Ai(Er,$t),m=0&&m=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Dn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Pn(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 DS(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function du(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 ES(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Er[0]=o,Er[1]=s;for(var v=0;v<1;v+=.05){$t[0]=ft(t,r,i,v),$t[1]=ft(e,n,a,v);var h=Ai(Er,$t);h=0&&h=1?1:hu(0,n,a,1,l,s)&&qe(0,i,o,1,s[0])}}}var pM=(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||at,this.ondestroy=e.ondestroy||at,this.onrestart=e.onrestart||at,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=fe(e)?e:Oo[e]||RS(e)},t})(),MS=(function(){function t(e){this.value=e}return t})(),gM=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new MS(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})(),Na=(function(){function t(e){this._list=new gM,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 MS(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})(),gm={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 gr(t){return t=Math.round(t),t<0?0:t>255?255:t}function mM(t){return t=Math.round(t),t<0?0:t>360?360:t}function $o(t){return t<0?0:t>1?1:t}function Ol(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?gr(parseFloat(e)/100*255):gr(parseInt(e,10))}function In(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?$o(parseFloat(e)/100):$o(parseFloat(e))}function _c(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 En(t,e,r){return t+(e-t)*r}function Ut(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function tv(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var PS=new Na(20),ks=null;function ea(t,e){ks&&tv(ks,e),ks=PS.put(t,ks||e.slice())}function Ft(t,e){if(t){e=e||[];var r=PS.get(t);if(r)return tv(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in gm)return tv(e,gm[n]),ea(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)){Ut(e,0,0,0,1);return}return Ut(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),ea(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ut(e,0,0,0,1);return}return Ut(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ea(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?Ut(e,+u[0],+u[1],+u[2],1):Ut(e,0,0,0,1);f=In(u.pop());case"rgb":if(u.length>=3)return Ut(e,Ol(u[0]),Ol(u[1]),Ol(u[2]),u.length===3?f:In(u[3])),ea(t,e),e;Ut(e,0,0,0,1);return;case"hsla":if(u.length!==4){Ut(e,0,0,0,1);return}return u[3]=In(u[3]),rv(u,e),ea(t,e),e;case"hsl":if(u.length!==3){Ut(e,0,0,0,1);return}return rv(u,e),ea(t,e),e;default:return}}Ut(e,0,0,0,1)}}function rv(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=In(t[1]),i=In(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Ut(e,gr(_c(o,a,r+1/3)*255),gr(_c(o,a,r)*255),gr(_c(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function yM(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 nv(t,e){var r=Ft(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 Un(r,r.length===4?"rgba":"rgb")}}function _M(t){var e=Ft(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function IS(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]=gr(En(o[0],s[0],l)),r[1]=gr(En(o[1],s[1],l)),r[2]=gr(En(o[2],s[2],l)),r[3]=$o(En(o[3],s[3],l)),r}}var SM=IS;function Nd(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=Ft(e[i]),s=Ft(e[a]),l=n-i,u=Un([gr(En(o[0],s[0],l)),gr(En(o[1],s[1],l)),gr(En(o[2],s[2],l)),$o(En(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var bM=Nd;function pu(t,e,r,n){var i=Ft(t);if(t)return i=yM(i),e!=null&&(i[0]=mM(fe(e)?e(i[0]):e)),r!=null&&(i[1]=In(fe(r)?r(i[1]):r)),n!=null&&(i[2]=In(fe(n)?n(i[2]):n)),Un(rv(i),"rgba")}function wM(t,e){var r=Ft(t);if(r&&e!=null)return r[3]=$o(e),Un(r,"rgba")}function Un(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 Xo(t,e){var r=Ft(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function TM(){return Un([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var mm=new Na(100);function iv(t){if(te(t)){var e=mm.get(t);return e||(e=nv(t,-.1),mm.put(t,e)),e}else if(ds(t)){var r=G({},t);return r.colorStops=oe(t.colorStops,function(n){return{offset:n.offset,color:nv(n.color,-.1)}}),r}return t}const xM=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:IS,fastMapToColor:SM,lerp:Nd,lift:nv,liftColor:iv,lum:Xo,mapToColor:bM,modifyAlpha:wM,modifyHSL:pu,parse:Ft,parseCssFloat:In,parseCssInt:Ol,random:TM,stringify:Un,toHex:_M},Symbol.toStringTag,{value:"Module"}));function CM(t){return t.type==="linear"}function AM(t){return t.type==="radial"}(function(){return typeof Buffer!="undefined"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var av=Array.prototype.slice;function jr(t,e,r){return(e-t)*r+t}function Sc(t,e,r,n){for(var i=e.length,a=0;an?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=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=_m,l=r;if(Tt(r)){var u=MM(r);s=u,(u===1&&!Re(r[0])||u===2&&!Re(r[0][0]))&&(o=!0)}else if(Re(r)&&!ka(r))s=Bs;else if(te(r))if(!isNaN(+r))s=Bs;else{var f=Ft(r);f&&(l=f,s=xo)}else if(ds(r)){var c=G({},l);c.colorStops=oe(r.colorStops,function(h){return{offset:h.offset,color:Ft(h.color)}}),CM(r)?s=ov:AM(r)&&(s=sv),l=c}a===0?this.valType=s:(s!==this.valType||s===_m)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=fe(n)?n:Oo[n]||RS(n)),i.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,m){return p.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Fs(i),u=Sm(i),f=0;f=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;fr);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var m=d.percent-h.percent,g=m===0?1:v((r-h.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:u?no:e[l];if((Fs(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:d.rawValue;else if(Fs(a))a===Bl?Sc(y,h[i],d[i],g):DM(y,h[i],d[i],g);else if(Sm(a)){var _=h[i],S=d[i],b=a===ov;e[l]={type:b?"linear":"radial",x:jr(_.x,S.x,g),y:jr(_.y,S.y,g),colorStops:oe(_.colorStops,function(T,C){var x=S.colorStops[C];return{offset:jr(T.offset,x.offset,g),color:Nl(Sc([],T.color,x.color,g))}}),global:S.global},b?(e[l].x2=jr(_.x2,S.x2,g),e[l].y2=jr(_.y2,S.y2,g)):e[l].r=jr(_.r,S.r,g)}else if(u)Sc(y,h[i],d[i],g),n||(e[l]=Nl(y));else{var w=jr(h[i],d[i],g);n?this._additiveValue=w:e[l]=w}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Bs?e[n]=e[n]+i:r===xo?(Ft(e[n],no),Ns(no,no,i,1),e[n]=Nl(no)):r===Bl?Ns(e[n],e[n],i,1):r===LS&&ym(e[n],e[n],i,1)},t})(),Bd=(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){uf("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,Pe(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,kl(u),i),this._trackKeys.push(s)}l.addKeyframe(e,kl(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;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function _a(){return new Date().getTime()}var IM=(function(t){q(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=_a()-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&&(fu(n),!r._paused&&r.update())}fu(n)},e.prototype.start=function(){this._running||(this._time=_a(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=_a(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=_a()-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 Bd(r,n.loop);return this.addAnimator(i),i},e})(Ur),LM=300,bc=ve.domSupported,wc=(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=oe(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),bm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wm=!1;function lv(t){var e=t.pointerType;return e==="pen"||e==="touch"}function OM(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 Tc(t){t&&(t.zrByTouch=!0)}function kM(t,e){return Gt(t.dom,new NM(t,e),!0)}function OS(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 NM=(function(){function t(e,r){this.stopPropagation=at,this.stopImmediatePropagation=at,this.preventDefault=at,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),hr={mousedown:function(t){t=Gt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Gt(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=Gt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Gt(this.dom,t);var e=t.toElement||t.relatedTarget;OS(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){wm=!0,t=Gt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){wm||(t=Gt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Gt(this.dom,t),Tc(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),hr.mousemove.call(this,t),hr.mousedown.call(this,t)},touchmove:function(t){t=Gt(this.dom,t),Tc(t),this.handler.processGesture(t,"change"),hr.mousemove.call(this,t)},touchend:function(t){t=Gt(this.dom,t),Tc(t),this.handler.processGesture(t,"end"),hr.mouseup.call(this,t),+new Date-+this.__lastTouchMomentCm||t<-Cm}var Qn=[],ta=[],Cc=Jt(),Ac=Math.abs,Xa=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return UM(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 Kn(this.rotation)||Kn(this.x)||Kn(this.y)||Kn(this.scaleX-1)||Kn(this.scaleY-1)||Kn(this.skewX)||Kn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(xm(n),this.invTransform=null);return}n=n||Jt(),r?this.getLocalTransform(n):xm(n),e&&(r?Di(n,e,n):gs(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Jt(),Hn(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Qn);var n=Qn[0]<0?-1:1,i=Qn[1]<0?-1:1,a=((Qn[0]-n)*r+n)/Qn[0]||0,o=((Qn[1]-i)*r+i)/Qn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},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||Jt(),Di(ta,e.invTransform,r),r=ta);var n=this.originX,i=this.originY;(n||i)&&(Cc[4]=n,Cc[5]=i,Di(ta,r,Cc),ta[4]-=n,ta[5]-=i,r=ta),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&&bt(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&bt(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Ac(e[0]-1)>1e-10&&Ac(e[3]-1)>1e-10?Math.sqrt(Ac(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){mu(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,p=i+l;r[4]=-d*a-v*p*o,r[5]=-p*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&&hf(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})(),UM=Xa.getLocalTransform,vf=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mu(t,e){return nS(t,e,vf)}function Ir(t){zs||(zs=new Na(100)),t=t||Bn;var e=zs.get(t);return e||(e={font:t,strWidthCache:new Na(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:it.measureText("国",t).width,asciiCharWidth:it.measureText("a",t).width},zs.put(t,e)),e}var zs;function VM(t){if(!(Dc>=Am)){t=t||Bn;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=it.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Dc=Am:i>2&&Dc++,e}}var Dc=0,Am=5;function NS(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=VM(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Lr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=it.measureText(e,t.font).width,r.put(e,n)),n}function Dm(t,e,r,n){var i=Lr(Ir(e),t),a=df(e),o=Ba(0,i,r),s=Ei(0,a,n),l=new le(o,s,i,a);return l}function BS(t,e,r,n){var i=((t||"")+"").split(` `),a=i.length;if(a===1)return Dm(i[0],e,r,n);for(var o=new le(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function FS(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+=ki(n[0],r.width),u+=ki(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 Ec="__zr_normal__",Rc=vf.concat(["ignore"]),GM=kr(vf,function(t,e){return t[e]=!0,t},{ignore:!1}),ra={},WM=new le(0,0,0,0),Hs=[],zl=0,pf=1,gf=(function(){function t(e){this.id=Md(),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=WM,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ra,n,v):FS(ra,n,v),a.x=ra.x,a.y=ra.y,o=ra.align,s=ra.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=ki(h[0],v.width),p=ki(h[1],v.height)),u=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+p+(i?0:v.y)}}n.rotation!=null&&(a.rotation=n.rotation);var m=n.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new le(0,0,0,0);a.getLocalTransform(Hs),Hn(Hs,Hs),le.copy(y,v),y.applyTransform(Hs)}else g.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==g.fill||b!==g.stroke||w!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=S,g.stroke=b,g.autoStroke=w,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Et,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()?hv:cv},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Ft(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,Un(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||{},G(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(ie(e))for(var n=e,i=Pe(n),a=0;a0},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(Ec,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Ec,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ge(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){uf("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=Em(this,f,u,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,Mm(this,n,l),l);var v=this._textGuide;return f&&f.useState(e,r,n,!!c),v&&v.useState(e,r,n,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=zl,this.__dirty&=~Et),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=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=ge(i,e),o=ge(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=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;o0&&r.during&&a[0].during(function(d,p){r.during(p)});for(var v=0;v0||i.force&&!o.length){var C=void 0,x=void 0,A=void 0;if(s){x={},v&&(C={});for(var S=0;S<_;S++){var g=p[S];x[g]=r[g],v?C[g]=n[g]:r[g]=n[g]}}else if(v){A={};for(var S=0;S<_;S++){var g=p[S];A[g]=kl(r[g]),$M(r,n,g)}}var b=new Bd(r,!1,!1,c?ze(d,function(P){return P.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),v&&C&&b.whenWithKeys(0,C,p),A&&b.whenWithKeys(0,A,p),b.whenWithKeys(u==null?500:u,s?x:n,p).delay(f||0),t.addAnimator(b,e),o.push(b)}}function Em(t,e,r,n){return!(r&&r.hoverLayer||n)||Rm(t)||e&&Rm(e)?zl:pf}function Rm(t){return t.type==="text"||t.type==="tspan"}function Mm(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var rt=(function(t){q(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=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=ge(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=ge(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;i0&&(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._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},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;r0){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 He=sP;function sP(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 pv(t,e,r)}function pv(t,e,r){return te(t)?lP(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function lP(t){return!!iP(t).match(/%$/)}function _e(t,e,r){return isNaN(e)?r?""+t:+t:(e=It(Ee(0,e),yu),t=(+t).toFixed(e),r?t:+t)}function uP(t,e,r){return e==null&&(e=10),_e(t,e,r)}function Fd(t){return t.sort(function(e,r){return e-r}),t}function Kr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Br(t*e)/e===t)return r}return VS(t)}function VS(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 Ee(0,o-n)}function fP(t,e){var r=rn(Ni(t[1]-t[0])/qo),n=Br(Ni(Ze(e[1]-e[0]))/qo),i=It(Ee(-r+n,0),yu);return isFinite(i)?i:yu}function cP(t,e,r){var n=Ze(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=Ni(2*Ze(r||1)*Ze(n))/qo,a=Ni(Ze(e))/qo,o=Ee(0,ms(-i+a));return isFinite(o)||(o=NaN),o}function hP(t,e,r){if(!t[e])return 0;var n=GS(t,r);return n[e]||0}function GS(t,e){var r=kr(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Wi(10,e),i=oe(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=oe(i,function(h){return rn(h)}),s=kr(o,function(h,d){return h+d},0),l=oe(i,function(h,d){return h-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return oe(o,function(h){return h/n})}function vP(t,e){var r=Ee(Kr(t),Kr(e)),n=t+e;return r>yu?n:_e(n,r)}var gv=Wi(2,53)-1;function zd(t){var e=aP*2;return(t%e+e)%e}function jo(t){return t>-Pm&&t=10&&e++,e}var WS=2;function yf(t,e){var r=mf(t),n=Wi(10,r),i=t/n,a;return e===WS?a=1: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,_e(t,-r)}function pP(t,e){var r=(t.length-1)*e+1,n=rn(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function gP(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;nt[1]&&(t[1]=e))}function JS(t,e){nn(e)&&et[1]&&(t[1]=e)}function kP(t,e){Fa(e[0],e[1])&&(e[0]t[1]&&(t[1]=e[1]))}function nn(t){return t!=null&&isFinite(t)}function Fa(t,e){return nn(t)&&nn(e)&&t<=e}function NP(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function BP(t){Fa(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Gd(t,e,r){var n=ce(),i=0;R(t,function(a){var o=e(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(t[i++]=a),n.set(o,s+1)}),r||(t.length=i)}function FP(t){return t.value+""}function zP(t){return t+""}function HP(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function UP(t,e){return{seriesType:t,overallReset:e}}function Wd(t){return{overallReset:t}}var VP=".",Jn="___EC__COMPONENT__CONTAINER___",tb="___EC__EXTENDED_CLASS___";function Mr(t){var e={main:"",sub:""};if(t){var r=t.split(VP);e.main=r[0]||"",e.sub=r[1]||""}return e}function GP(t){Nr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function WP(t){return!!(t&&t[tb])}function Yd(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return YP(n)?i=(function(a){q(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Pd(i,this)),G(i.prototype,r),i[tb]=!0,i.extend=this.extend,i.superCall=qP,i.superApply=jP,i.superClass=n,i}}function YP(t){return fe(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function rb(t,e){t.extend=e.extend}var $P=Math.round(Math.random()*10);function XP(t){var e=["__\0is_clz",$P++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function qP(t,e){for(var r=[],n=2;n=0||a&&ge(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var ZP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],KP=Qo(ZP),QP=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return KP(this,e,r)},t})(),_v=new Na(50);function JP(t){if(typeof t=="string"){var e=_v.get(t);return e&&e.image}else return t}function nb(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=_v.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Sf(e)&&a.pending.push(o)):(e=it.loadImage(t,km,km),e.__zrImageSrc=t,_v.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function km(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=s;u++)l-=s;var f=Lr(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 ob(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=Lr(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?tI(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Lr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function tI(t,e,r){for(var n=0,i=0,a=t.length;im&&h){var _=Math.floor(m/v);d=d||g.length>_,g=g.slice(0,_),y=g.length*v}if(i&&f&&p!=null)for(var S=ab(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;wd&&Oc(a,o.substring(d,m),e,h),Oc(a,p[2],e,h,p[1]),d=Lc.lastIndex}dc){var W=a.lines.length;P>0?(x.tokens=x.tokens.slice(0,P),T(x,D,A),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length0&&d+n.accumWidth>n.width&&(f=e.split(` `),u=!0),n.accumWidth=d}else{var p=sb(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}f||(f=e.split(` `));for(var m=Ir(l),g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var sI=kr(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function lI(t){return oI(t)?!!sI[t]:!0}function sb(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=Ir(e),v=0;vr:i+f+d>r){f?(s||l)&&(p?(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)):p?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,p?(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 Bm(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;le.set(Fm,Ba(r,o,i),Ei(n,s,a),o,s),le.intersect(e,Fm,null,zm);var l=zm.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Ba(l.x,l.width,i,!0),t.baseY=Ei(l.y,l.height,a,!0)}}var Fm=new le(0,0,0,0),zm={outIntersectRect:{},clamp:!0};function $d(t){return t!=null?t+="":t=""}function uI(t){var e=$d(t.text),r=t.font,n=Lr(Ir(r),e),i=df(r);return Sv(t,n,i,null)}function Sv(t,e,r,n){var i=new le(Ba(t.x||0,e,t.textAlign),Ei(t.y||0,r,t.textBaseline),e,r),a=n!=null?n:lb(t)?t.lineWidth:0;return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function lb(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var bv="__zr_style_"+Math.round(Math.random()*10),Ri={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},bf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ri[bv]=!0;var Hm=["z","z2","invisible"],fI=["invisible"],Ss=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Pe(r),i=0;i1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Us[0]=Fc(i)*r+t,Us[1]=Bc(i)*n+e,Vs[0]=Fc(a)*r+t,Vs[1]=Bc(a)*n+e,u(s,Us,Vs),f(l,Us,Vs),i=i%ei,i<0&&(i=i+ei),a=a%ei,a<0&&(a=a+ei),i>a&&!o?a+=ei:ii&&(Gs[0]=Fc(h)*r+t,Gs[1]=Bc(h)*n+e,u(s,Gs,s),f(l,Gs,l))}var xe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ti=[],ri=[],Tr=[],hn=[],xr=[],Cr=[],zc=Math.min,Hc=Math.max,ni=Math.cos,ii=Math.sin,Yr=Math.abs,wv=Math.PI,bn=wv*2,Uc=typeof Float32Array!="undefined",io=[];function Vc(t){var e=Math.round(t/wv*1e8)/1e8;return e%2*wv}function ub(t,e){var r=Vc(t[0]);r<0&&(r+=bn);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=bn?i=r+bn:e&&r-i>=bn?i=r-bn:!e&&r>i?i=r+(bn-Vc(r-i)):e&&r0&&(this._ux=Yr(n/gu/e)||0,this._uy=Yr(n/gu/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(xe.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=Yr(e-this._xi),i=Yr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(xe.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(xe.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(xe.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(),io[0]=i,io[1]=a,ub(io,o),i=io[0],a=io[1];var s=a-i;return this.addData(xe.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=ni(a)*n+e,this._yi=ii(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(xe.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(xe.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)&&Uc&&(this.data=new Float32Array(r));for(var n=0;n0&&o))for(var s=0;sf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(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;r11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Tr[0]=Tr[1]=xr[0]=xr[1]=Number.MAX_VALUE,hn[0]=hn[1]=Cr[0]=Cr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Yr(_)>i||v===r-1)&&(p=Math.sqrt(y*y+_*_),a=m,o=g);break}case xe.C:{var S=e[v++],b=e[v++],m=e[v++],g=e[v++],w=e[v++],T=e[v++];p=cM(a,o,S,b,m,g,w,T,10),a=w,o=T;break}case xe.Q:{var S=e[v++],b=e[v++],m=e[v++],g=e[v++];p=vM(a,o,S,b,m,g,10),a=m,o=g;break}case xe.A:var C=e[v++],x=e[v++],A=e[v++],D=e[v++],P=e[v++],M=e[v++],I=M+P;v+=1,d&&(s=ni(P)*A+C,l=ii(P)*D+x),p=Hc(A,D)*zc(bn,Math.abs(M)),a=ni(I)*A+C,o=ii(I)*D+x;break;case xe.R:{s=a=e[v++],l=o=e[v++];var k=e[v++],O=e[v++];p=k*2+O*2;break}case xe.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}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,p,m=0,g=0,y,_=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var w=0;w0&&(e.lineTo(S,b),_=0),T){case xe.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case xe.L:{c=n[w++],v=n[w++];var x=Yr(c-u),A=Yr(v-f);if(x>i||A>a){if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;e.lineTo(u*(1-P)+c*P,f*(1-P)+v*P);break e}m+=D}e.lineTo(c,v),u=c,f=v,_=0}else{var M=x*x+A*A;M>_&&(S=c,b=v,_=M)}break}case xe.C:{var I=n[w++],k=n[w++],O=n[w++],N=n[w++],U=n[w++],W=n[w++];if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;vu(u,I,O,U,P,ti),vu(f,k,N,W,P,ri),e.bezierCurveTo(ti[1],ri[1],ti[2],ri[2],ti[3],ri[3]);break e}m+=D}e.bezierCurveTo(I,k,O,N,U,W),u=U,f=W;break}case xe.Q:{var I=n[w++],k=n[w++],O=n[w++],N=n[w++];if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;du(u,I,O,P,ti),du(f,k,N,P,ri),e.quadraticCurveTo(ti[1],ri[1],ti[2],ri[2]);break e}m+=D}e.quadraticCurveTo(I,k,O,N),u=O,f=N;break}case xe.A:var X=n[w++],Q=n[w++],J=n[w++],j=n[w++],z=n[w++],re=n[w++],se=n[w++],L=!n[w++],Y=J>j?J:j,B=Yr(J-j)>.001,F=z+re,H=!1;if(h){var D=d[g++];m+D>y&&(F=z+re*(y-m)/D,H=!0),m+=D}if(B&&e.ellipse?e.ellipse(X,Q,J,j,se,z,F,L):e.arc(X,Q,Y,z,F,L),H)break e;C&&(s=ni(z)*J+X,l=ii(z)*j+Q),u=ni(F)*J+X,f=ii(F)*j+Q;break;case xe.R:s=u=n[w],l=f=n[w+1],c=n[w++],v=n[w++];var Z=n[w++],ue=n[w++];if(h){var D=d[g++];if(m+D>y){var ee=y-m;e.moveTo(c,v),e.lineTo(c+zc(ee,Z),v),ee-=Z,ee>0&&e.lineTo(c+Z,v+zc(ee,ue)),ee-=ue,ee>0&&e.lineTo(c+Hc(Z-ee,0),v+ue),ee-=Z,ee>0&&e.lineTo(c,v+Hc(ue-ee,0));break e}m+=D}e.rect(c,v,Z,ue);break;case xe.Z:if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;e.lineTo(u*(1-P)+s*P,f*(1-P)+l*P);break e}m+=D}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=xe,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function na(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||ot+s&&a>r+s||ae+c&&f>n+c&&f>a+c&&f>s+c||ft+c&&u>r+c&&u>i+c&&u>o+c||ue+u&&l>n+u&&l>a+u||lt+u&&s>r+u&&s>i+u||sr||f+ui&&(i+=ao);var v=Math.atan2(l,s);return v<0&&(v+=ao),v>=n&&v<=i||v+ao>=n&&v+ao<=i}function Zr(t,e,r,n,i,a){if(a>e&&a>n||ai?s:0}var vn=Fn.CMD,ai=Math.PI*2,yI=1e-4;function _I(t,e){return Math.abs(t-e)e&&u>n&&u>a&&u>s||u1&&SI(),h=qe(e,n,a,s,Yt[0]),v>1&&(d=qe(e,n,a,s,Yt[1]))),v===2?me&&s>n&&s>a||s=0&&u<=1){for(var f=0,c=ft(e,n,a,u),v=0;vr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);pt[0]=-l,pt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=ai-1e-4){n=0,i=ai;var f=a?1:-1;return o>=pt[0]+t&&o<=pt[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=ai,i+=ai);for(var v=0,h=0;h<2;h++){var d=pt[h];if(d+t>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=ai+p),(p>=n&&p<=i||p+ai>=n&&p+ai<=i)&&(p>Math.PI/2&&p1&&(r||(s+=Zr(l,u,f,c,n,i))),m&&(l=a[d],u=a[d+1],f=l,c=u),p){case vn.M:f=a[d++],c=a[d++],l=f,u=c;break;case vn.L:if(r){if(na(l,u,a[d],a[d+1],e,n,i))return!0}else s+=Zr(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case vn.C:if(r){if(pI(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=bI(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 vn.Q:if(r){if(gI(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=wI(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case vn.A:var g=a[d++],y=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var T=!!(1-a[d++]);v=Math.cos(b)*_+g,h=Math.sin(b)*S+y,m?(f=v,c=h):s+=Zr(l,u,v,h,n,i);var C=(n-g)*S/_+g;if(r){if(mI(g,y,S,b,b+w,T,e,C,i))return!0}else s+=TI(g,y,S,b,b+w,T,C,i);l=Math.cos(b+w)*_+g,u=Math.sin(b+w)*S+y;break;case vn.R:f=l=a[d++],c=u=a[d++];var x=a[d++],A=a[d++];if(v=f+x,h=c+A,r){if(na(f,c,v,c,e,n,i)||na(v,c,v,h,e,n,i)||na(v,h,f,h,e,n,i)||na(f,h,f,c,e,n,i))return!0}else s+=Zr(v,c,v,h,n,i),s+=Zr(f,h,f,c,n,i);break;case vn.Z:if(r){if(na(l,u,f,c,e,n,i))return!0}else s+=Zr(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!_I(u,c)&&(s+=Zr(l,u,f,c,n,i)||0),s!==0}function xI(t,e,r){return fb(t,0,!1,e,r)}function CI(t,e,r,n){return fb(t,e,!0,r,n)}var cb=Te({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ri),AI={style:Te({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},bf.style)},Gc=vf.concat(["invisible","culling","z","z2","zlevel","parent"]),Me=(function(t){q(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.5?cv:n>.2?HM:hv}else if(r)return hv}return cv},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(te(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Xo(r,0)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&ga)&&(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==null?4:f)}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)),CI(s,l/u,r,n)))return!0}if(this.hasFill())return xI(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=ga,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:G(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&ga)},e.prototype.createStyle=function(r){return ps(cb,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=G({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){if(t.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==pf){var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=G({},i.shape),G(u,n.shape)):(u=G({},a?this.shape:i.shape),G(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=G({},this.shape);for(var f={},c=Pe(u),v=0;vi&&(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),t.closePath()}var Sa=Math.round;function hb(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&&(Sa(n*2)===Sa(i*2)&&(t.x1=t.x2=wi(n,s,!0)),Sa(a*2)===Sa(o*2)&&(t.y1=t.y2=wi(a,s,!0))),t}}function vb(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=wi(n,s,!0),t.y=wi(i,s,!0),t.width=Math.max(wi(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(wi(i+o,s,!1)-t.y,o===0?0:1)),t}}function wi(t,e,r){if(!e)return t;var n=Sa(t*2);return(n+Sa(e))%2===0?n/2:(n+(r?1:-1))/2}var II=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),LI={},Ge=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new II},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=vb(LI,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?PI(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Me);Ge.prototype.type="rect";var Ym={fill:"#000"},$m=2,Ar={},OI={style:Te({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},bf.style)},Ke=(function(t){q(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ym,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;r0,P=0;P=0&&(I=w[M],I.align==="right");)this._placeToken(I,r,C,g,P,"right",_),x-=I.width,P-=I.width,M--;for(D+=(f-(D-m)-(y-P)-x)/2;A<=M;)I=w[A],this._placeToken(I,r,C,g,D+I.width/2,"center",_),D+=I.width,A++;g+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var v=!r.isLineHolder&&Wc(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=Qm(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(Su),m=p.createStyle();p.useStyle(m);var g=this._defaultStyle,y=!1,_=0,S=!1,b=Km("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,g.fill)),w=Zm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!g.autoStroke||y)?(_=$m,S=!0,g.stroke):null),T=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,T&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||Bn,m.opacity=Mn(u.opacity,n.opacity,1),qm(m,u),w&&(m.lineWidth=Mn(u.lineWidth,n.lineWidth,_),m.lineDash=ne(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=w),b&&(m.fill=b),p.setBoundingRect(Sv(m,r.contentWidth,r.contentHeight,S?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,p,m;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(Ge),p.useStyle(p.createStyle()),p.style.fill=null;var g=p.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=h,p.dirtyShape()}if(v){var y=p.style;y.fill=l||null,y.fillOpacity=ne(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(un),m.onload=function(){d.dirtyStyle()};var _=m.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=ne(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(p||m).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Mn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return FI(r)&&(n=[r.fontStyle,r.fontWeight,BI(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&dr(n)||r.textFont||r.font},e})(Ss),kI={left:!0,right:1,center:1},NI={top:1,bottom:1,middle:1},Xm=["fontStyle","fontWeight","fontSize","fontFamily"];function BI(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Dd+"px":t+"px"}function qm(t,e){for(var r=0;r=0,a=!1;if(t instanceof Me){var o=yb(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ia(s)||ia(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=G({},n),u=G({},u),u.fill=s):!ia(u.fill)&&ia(s)?(a=!0,n=G({},n),u=G({},u),u.fill=iv(s)):!ia(u.stroke)&&ia(l)&&(a||(n=G({},n),u=G({},u)),u.stroke=iv(l)),n.style=u}}if(n&&n.z2==null){a||(n=G({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f!=null?f:GI)}return n}function jI(t,e,r){if(r&&r.z2==null){r=G({},r);var n=t.z2SelectLift;r.z2=t.z2+(n!=null?n:WI)}return r}function ZI(t,e,r){var n=ge(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:XI(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=G({},r),o=G({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Yc(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return qI(this,t,e,r);if(t==="blur")return ZI(this,t,r);if(t==="select")return jI(this,t,r)}return r}function KI(t){t.stateProxy=Yc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Yc),r&&(r.stateProxy=Yc)}function i0(t,e){!Cb(t,e)&&!t.__highByOuter&&fn(t,_b)}function a0(t,e){!Cb(t,e)&&!t.__highByOuter&&fn(t,Sb)}function xu(t,e){t.__highByOuter|=1<<(e||0),fn(t,_b)}function Cu(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&fn(t,Sb)}function QI(t){fn(t,Zd)}function wb(t){fn(t,bb)}function Tb(t){fn(t,YI)}function xb(t){fn(t,$I)}function Cb(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Ab(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Xd(a),s=VI(t,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){bb(u)}),l&&r.push(a)),o.isBlured=!1}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function xv(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Au(t,e,r){Db(t,!0),fn(t,KI),aL(t,e,r)}function iL(t){Db(t,!1)}function Du(t,e,r,n){n?iL(t):Au(t,e,r)}function aL(t,e,r){var n=me(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var s0=["emphasis","blur","select"],oL={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Av(t,e,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=$c(d),s*=$c(d));var p=(i===a?-1:1)*$c((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,m=p*o*h/s,g=p*-s*v/o,y=(t+r)/2+Ys(c)*m-Ws(c)*g,_=(e+n)/2+Ws(c)*m+Ys(c)*g,S=c0([1,0],[(v-m)/o,(h-g)/s]),b=[(v-m)/o,(h-g)/s],w=[(-1*v-m)/o,(-1*h-g)/s],T=c0(b,w);if(Rv(b,w)<=-1&&(T=oo),Rv(b,w)>=1&&(T=0),T<0){var C=Math.round(T/oo*1e6)/1e6;T=oo*2+C%2*oo}f.addData(u,y,_,o,s,S,T,c,a)}var hL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,vL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function dL(t){var e=new Fn;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Fn.CMD,l=t.match(hL);if(!l)return e;for(var u=0;uI*I+k*k&&(C=A,x=D),{cx:C,cy:x,x0:-f,y0:-c,x1:C*(i/b-1),y1:x*(i/b-1)}}function wL(t){var e;if(K(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 TL(t,e){var r,n=Co(e.r,0),i=Co(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=v0(u-l),d=h>Xc&&h%Xc;if(d>cr&&(h=d),!(n>cr))t.moveTo(f,c);else if(h>Xc-cr)t.moveTo(f+n*oa(l),c+n*oi(l)),t.arc(f,c,n,l,u,!v),i>cr&&(t.moveTo(f+i*oa(u),c+i*oi(u)),t.arc(f,c,i,u,l,v));else{var p=void 0,m=void 0,g=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,x=void 0,A=void 0,D=void 0,P=void 0,M=void 0,I=void 0,k=n*oa(l),O=n*oi(l),N=i*oa(u),U=i*oi(u),W=h>cr;if(W){var X=e.cornerRadius;X&&(r=wL(X),p=r[0],m=r[1],g=r[2],y=r[3]);var Q=v0(n-i)/2;if(_=Dr(Q,g),S=Dr(Q,y),b=Dr(Q,p),w=Dr(Q,m),x=T=Co(_,S),A=C=Co(b,w),(T>cr||C>cr)&&(D=n*oa(u),P=n*oi(u),M=i*oa(l),I=i*oi(l),hcr){var B=Dr(g,x),F=Dr(y,x),H=$s(M,I,k,O,n,B,v),Z=$s(D,P,N,U,n,F,v);t.moveTo(f+H.cx+H.x0,c+H.cy+H.y0),x0&&t.arc(f+H.cx,c+H.cy,B,lt(H.y0,H.x0),lt(H.y1,H.x1),!v),t.arc(f,c,n,lt(H.cy+H.y1,H.cx+H.x1),lt(Z.cy+Z.y1,Z.cx+Z.x1),!v),F>0&&t.arc(f+Z.cx,c+Z.cy,F,lt(Z.y1,Z.x1),lt(Z.y0,Z.x0),!v))}else t.moveTo(f+k,c+O),t.arc(f,c,n,l,u,!v);if(!(i>cr)||!W)t.lineTo(f+N,c+U);else if(A>cr){var B=Dr(p,A),F=Dr(m,A),H=$s(N,U,D,P,i,-F,v),Z=$s(k,O,M,I,i,-B,v);t.lineTo(f+H.cx+H.x0,c+H.cy+H.y0),A0&&t.arc(f+H.cx,c+H.cy,F,lt(H.y0,H.x0),lt(H.y1,H.x1),!v),t.arc(f,c,i,lt(H.cy+H.y1,H.cx+H.x1),lt(Z.cy+Z.y1,Z.cx+Z.x1),v),B>0&&t.arc(f+Z.cx,c+Z.cy,B,lt(Z.y1,Z.x1),lt(Z.y0,Z.x0),!v))}else t.lineTo(f+N,c+U),t.arc(f,c,i,u,l,v)}t.closePath()}}}var xL=(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})(),$i=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new xL},e.prototype.buildPath=function(r,n){TL(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Me);$i.prototype.type="sector";var CL=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),Af=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new CL},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})(Me);Af.prototype.type="ring";function AL(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=2){if(n){var a=AL(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;sli[1]){if(a=!1,tt.negativeSize||n)return a;var l=Xs(li[0]-si[1]),u=Xs(si[0]-li[1]);qc(l,u)>js.len()&&(l=u||!tt.bidirectional)&&(he.scale(qs,s,-u*i),tt.useDir&&tt.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;u0){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 Lt(t,e,r,n,i,a){Jd("update",t,e,r,n,i,a)}function er(t,e,r,n,i,a){Jd("enter",t,e,r,n,i,a)}function Ca(t){if(!t.__zr)return!0;for(var e=0;eZe(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function g0(t){return!t.isGroup}function WL(t){return t.shape!=null}function jb(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){g0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return WL(o)&&(s.shape=de(o.shape)),s}var a=n(t);e.traverse(function(o){if(g0(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Lt(o,l,r,me(o).dataIndex)}}})}function Zb(t,e){return oe(t,function(r){var n=r[0];n=Ee(n,e.x),n=It(n,e.x+e.width);var i=r[1];return i=Ee(i,e.y),i=It(i,e.y+e.height),[n,i]})}function Kb(t,e){var r=Ee(t.x,e.x),n=It(t.x+t.width,e.x+e.width),i=Ee(t.y,e.y),a=It(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 Mf(t,e,r){var n=G({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),Te(i,r),new un(n)):Rf(t.replace("path://",""),n,r,"center")}function YL(t,e,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var m=jc(h,d,f,c)/v;return!(m<0||m>1)}function jc(t,e,r,n){return t*n-r*e}function $L(t){return t<=1e-6&&t>=-1e-6}function Ru(t,e,r,n,i){return e==null||(Re(e)?Ie[0]=Ie[1]=Ie[2]=Ie[3]=e:(Ie[0]=e[0],Ie[1]=e[1],Ie[2]=e[2],Ie[3]=e[3]),n&&(Ie[0]=Ee(0,Ie[0]),Ie[1]=Ee(0,Ie[1]),Ie[2]=Ee(0,Ie[2]),Ie[3]=Ee(0,Ie[3])),r&&(Ie[0]=-Ie[0],Ie[1]=-Ie[1],Ie[2]=-Ie[2],Ie[3]=-Ie[3]),m0(t,Ie,"x","width",3,1,i&&i[0]||0),m0(t,Ie,"y","height",0,2,i&&i[1]||0)),t}var Ie=[0,0,0,0];function m0(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=Ee(0,It(o,l)),t[n]=0?-e[i]:e[a]>=0?l+e[a]:Ze(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function Pf(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=te(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&&R(Pe(l),function(f){Mt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=me(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Te({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Pv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function ip(t,e){if(t)if(K(t))for(var r=0;re&&(e=o),oe&&(r=e=0),{min:r,max:e}}function ew(t,e,r){tw(t,e,r,-1/0)}function tw(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=0&&s.push(l)}),s}}function c2(t,e){return be(be({},t,!0),e,!0)}const h2={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:". "}}}},v2={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 Mu="ZH",sp="EN",Aa=sp,Gl={},lp={},aw=ve.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Aa).toUpperCase();return t.indexOf(Mu)>-1?Mu:Aa})():Aa;function up(t,e){t=t.toUpperCase(),lp[t]=new Le(e),Gl[t]=e}function d2(t){if(te(t)){var e=Gl[t.toUpperCase()]||{};return t===Mu||t===sp?de(e):be(de(e),de(Gl[Aa]),!1)}else return be(de(t),de(Gl[Aa]),!1)}function p2(t){return lp[t]}function g2(){return lp[Aa]}up(sp,h2);up(Mu,v2);var m2=null;function St(){return m2}function ow(t,e){var r=St(),n=e.breakOption,i=e.breakParsed;return!i&&r&&(i=r.parseAxisBreakOption(n,t)),i}function Pu(t){var e=t.brk;return e?e.breaks:[]}function Iu(t){var e=t.brk;return e?e.hasBreaks():!1}var fp=1e3,cp=fp*60,Bo=cp*60,Kt=Bo*24,T0=Kt*365,y2={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})/},Wl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},_2="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Ks="{yyyy}-{MM}-{dd}",x0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ks,hour:Ks+" "+Wl.hour,minute:Ks+" "+Wl.minute,second:Ks+" "+Wl.second,millisecond:_2},kt=["year","month","day","hour","minute","second","millisecond"],S2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function b2(t){return!te(t)&&!fe(t)?w2(t):t}function w2(t){t=t||{};var e={},r=!0;return R(kt,function(n){r&&(r=t[n]==null)}),R(kt,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=kt[s],u=ie(a)&&!K(a)?a[l]:a,f=void 0;K(u)?(f=u.slice(),o=f[0]||""):te(u)?(o=u,f=[o]):(o==null?o=Wl[n]:y2[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function gt(t,e){return t+="","0000".substr(0,e-t.length)+t}function Fo(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 T2(t){return t===Fo(t)}function x2(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function xs(t,e,r,n){var i=ln(t),a=i[sw(r)](),o=i[hp(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[vp(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[dp(r)](),c=(f-1)%12+1,v=i[pp(r)](),h=i[gp(r)](),d=i[mp(r)](),p=f>=12?"pm":"am",m=p.toUpperCase(),g=n instanceof Le?n:p2(n||aw)||g2(),y=g.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,gt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,gt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,gt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,gt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,gt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,gt(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,gt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,gt(d,3)).replace(/{S}/g,d+"")}function C2(t,e,r,n,i){var a=null;if(te(r))a=r;else if(fe(r)){var o={time:t.time,level:t.time?t.time.level:0},s=St();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=Da(t.value,i);a=r[f][f][0]}}return xs(new Date(t.value),a,i,n)}function Da(t,e){var r=ln(t),n=r[hp(e)]()+1,i=r[vp(e)](),a=r[dp(e)](),o=r[pp(e)](),s=r[gp(e)](),l=r[mp(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 Lu(t,e,r){switch(e){case"year":t[lw(r)](0);case"month":t[uw(r)](1);case"day":t[fw(r)](0);case"hour":t[cw(r)](0);case"minute":t[hw(r)](0);case"second":t[vw(r)](0)}return t}function sw(t){return t?"getUTCFullYear":"getFullYear"}function hp(t){return t?"getUTCMonth":"getMonth"}function vp(t){return t?"getUTCDate":"getDate"}function dp(t){return t?"getUTCHours":"getHours"}function pp(t){return t?"getUTCMinutes":"getMinutes"}function gp(t){return t?"getUTCSeconds":"getSeconds"}function mp(t){return t?"getUTCMilliseconds":"getMilliseconds"}function A2(t){return t?"setUTCFullYear":"setFullYear"}function lw(t){return t?"setUTCMonth":"setMonth"}function uw(t){return t?"setUTCDate":"setDate"}function fw(t){return t?"setUTCHours":"setHours"}function cw(t){return t?"setUTCMinutes":"setMinutes"}function hw(t){return t?"setUTCSeconds":"setSeconds"}function vw(t){return t?"setUTCMilliseconds":"setMilliseconds"}function D2(t,e,r,n,i,a,o,s){var l=new Ke({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function yp(t){if(!YS(t))return te(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function _p(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 Cs=cf;function Lv(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&dr(f)?f:"-"}function a(f){return Fr(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?ln(t):t;if(isNaN(+l)){if(s)return"-"}else return xs(l,n,r)}if(e==="ordinal")return au(t)?i(t):Re(t)&&a(t)?t+"":"-";var u=Zo(t);return a(u)?yp(u):au(t)?i(t):typeof t=="boolean"?t+"":"-"}var C0=["a","b","c","d","e","f","g"],Qc=function(t,e){return"{"+t+(e==null?"":e)+"}"};function Sp(t,e,r){K(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a':'';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 E2(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd yyyy`);var n=ln(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",gt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",gt(a%100+"",2)).replace("dd",gt(s,2)).replace("d",s).replace("hh",gt(l,2)).replace("h",l).replace("mm",gt(u,2)).replace("m",u).replace("ss",gt(f,2)).replace("s",f).replace("SSS",gt(c,3)),t}function R2(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Fi(t,e){return e=e||"transparent",te(t)?t:ie(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function A0(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Yl={},Jc={},Bf=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Yl),this._normalMasterList=n(Jc);function n(i,a){var o=[];return R(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){R(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"){Yl[e]=r;return}Jc[e]=r},t.get=function(e){return Jc[e]||Yl[e]},t})();function M2(t){return!!Yl[t]}var P2=1,pw=2;function I2(t){gw.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var gw=ce();function mw(t){var e=t.getShallow("coord",!0),r=P2;if(e==null){var n=gw.get(t.type);n&&n.getCoord2&&(r=pw,e=n.getCoord2(t))}return{coord:e,from:r}}var Ea=0,$l=1,L2=2;function O2(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=Ea;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=$l,a||(i=Ea)):n==="box"&&(i=L2,!a&&!M2(r)&&(i=Ea))}return{coordSysType:r,kind:i}}function k2(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=O2(e),o=a.kind,s=a.coordSysType;if(i&&o!==$l&&(o=$l,s=r),o===Ea||s!==r)return Ea;var l=n(r,e);return l?(o===$l?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):Ea}var Xl=R,N2=["left","right","top","bottom","width","height"],Qs=[["width","left","right"],["height","top","bottom"]];function bp(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 p=f.width+(v?-v.x+f.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(v?-v.y+f.y:0);d=o+m,d>i||l.newline?(a+=s+r,o=0,d=m,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 zo=bp;Ue(bp,"vertical");Ue(bp,"horizontal");function B2(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 F2(t,e){var r=Ff(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===Do.point)a=r.refPoint,i=sn(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=K(o)?o:[o,o];i=sn(n,r.refContainer),a=r.boxCoordFrom===pw?r.refPoint:[He(s[0],i.width)+i.x,He(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function z2(t,e){var r=F2(t,e),n=r.viewRect,i=r.center,a=t.get("radius");K(a)||(a=[0,a]);var o=He(n.width,e.getWidth()),s=He(n.height,e.getHeight()),l=Math.min(o,s),u=He(a[0],l/2),f=He(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function sn(t,e,r){r=Cs(r||0);var n=e.width,i=e.height,a=He(t.left,n),o=He(t.top,i),s=He(t.right,n),l=He(t.bottom,i),u=He(t.width,n),f=He(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 le((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var Do={rect:1,point:2};function Ff(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=mw(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Do.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Do.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=Do.rect),a===Do.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 ts(t){var e=t.layoutMode||t.constructor.layoutMode;return ie(e)?e:e?{type:e}:null}function zn(t,e,r){var n=r&&r.ignoreSize;!K(n)&&(n=[n,n]);var i=o(Qs[0],0),a=o(Qs[1],1);l(Qs[0],t,i),l(Qs[1],t,a);function o(u,f){var c={},v=0,h={},d=0,p=2;if(Xl(u,function(y){h[y]=t[y]}),Xl(u,function(y){Mt(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===p||!v)return h;if(v>=p)return c;for(var m=0;m=0;l--)s=be(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return _s(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return B2(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})(Le);rb(Se,Le);_f(Se);u2(Se);f2(Se,V2);function V2(t){var e=[];return R(Se.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=oe(e,function(r){return Mr(r).main}),t!=="dataset"&&ge(e,"dataset")<=0&&e.unshift("dataset"),e}var ae={color:{},darkColor:{},size:{}},Ne=ae.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)"};G(Ne,{primary:Ne.neutral80,secondary:Ne.neutral70,tertiary:Ne.neutral60,quaternary:Ne.neutral50,disabled:Ne.neutral20,border:Ne.neutral30,borderTint:Ne.neutral20,borderShade:Ne.neutral40,background:Ne.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ne.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ne.neutral70,axisLineTint:Ne.neutral40,axisTick:Ne.neutral70,axisTickMinor:Ne.neutral60,axisLabel:Ne.neutral70,axisSplitLine:Ne.neutral15,axisMinorSplitLine:Ne.neutral05});for(var ui in Ne)if(Ne.hasOwnProperty(ui)){var D0=Ne[ui];ui==="theme"?ae.darkColor.theme=Ne.theme.slice():ui==="highlight"?ae.darkColor.highlight="rgba(255,231,130,0.4)":ui.indexOf("accent")===0?ae.darkColor[ui]=pu(D0,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):ae.darkColor[ui]=pu(D0,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}ae.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var yw="";typeof navigator!="undefined"&&(yw=navigator.platform||"");var sa="rgba(0, 0, 0, 0.2)",_w=ae.color.theme[0],G2=pu(_w,null,null,.9);const Sw={darkMode:"auto",colorBy:"series",color:ae.color.theme,gradientColor:[G2,_w],aria:{decal:{decals:[{color:sa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sa,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sa,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:yw.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 nt={Must:1,Might:2,Not:3},bw=we();function W2(t){bw(t).datasetMap=ce()}function Y2(t,e,r){var n={},i=wp(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=bw(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),R(t,function(p,m){var g=ie(p)?p:t[m]={name:p};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),n[g.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});R(t,function(p,m){var g=p.name,y=d(p);if(f==null){var _=v.valueWayDim;h(n[g],_,y),h(o,_,y),v.valueWayDim+=y}else if(f===m)h(n[g],0,y),h(a,0,y);else{var _=v.categoryWayDim;h(n[g],_,y),h(o,_,y),v.categoryWayDim+=y}});function h(p,m,g){for(var y=0;ye)return t[n];return t[r-1]}function K2(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:Z2(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 Q2(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Js,so,R0,M0="\0_ec_inner",J2=1,xp=(function(t){q(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 Le(a),this._locale=new Le(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=L0(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,L0(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"?R0(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&&R(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=ce(),u=n&&n.replaceMergeMainTypeMap;W2(this),R(r,function(c,v){c!=null&&(Se.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?de(c):be(i[v],c,!0))}),u&&u.each(function(c,v){Se.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Se.topologicalTravel(s,Se.getAllClassMainTypes(),f,this);function f(c){var v=j2(this,c,wt(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=wP(h,v,d);RP(p,c,Se),i[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_;R(p,function(S,b){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",x=Se.getClass(c,S.keyInfo.subType,!C);if(!x)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===x)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var A=G({componentIndex:b},S.keyInfo);w=new x(T,this,this,A),G(w,A),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),i[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Js(this)}this._seriesIndices||Js(this)},e.prototype.getOption=function(){var r=de(this.option);return R(r,function(n,i){if(Se.hasClass(i)){for(var a=wt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ko(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[M0],r},e.prototype.setTheme=function(r){this._theme=new Le(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=e:r==="max"?t<=e:t===e}function sO(t,e){return t.join(",")===e.join(",")}var fr=R,rs=ie,O0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function eh(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=O0.length;r0?r[o-1].seriesModel:null)}),mO(r)}})}function mO(t){R(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 p=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.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=vP(v,y),p=y;break}}}return n[0]=v,n[1]=p,n})})}var zf=(function(){function t(e){this.data=e.data||(e.sourceFormat===br?{}:[]),this.sourceFormat=e.sourceFormat||gb,this.seriesLayoutBy=e.seriesLayoutBy||mr,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;np&&(p=_)}h[0]=d,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};U0=(e={},e[ht+"_"+mr]={pure:!0,appendData:a},e[ht+"_"+Yi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[or]={pure:!0,appendData:a},e[br]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[zt]={appendData:a},e[Ln]={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=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return Ha(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function Y0(t){var e,r;return ie(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ho(t){return new AO(t)}var AO=(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||h1&&n>0?s:o}};return a;function o(){return e=t?null:li?-this._resultLT:0},t})();function EO(t){var e="",r=-1/0,n=-1/0,i=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,n=t.ge),t.l!=null&&(e+="L"+t.l,i=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:n,l:i,le:a}}function RO(t,e){return e>t.g&&e>=t.ge&&e65535?zO:HO}function UO(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function q0(t,e,r,n,i){var a=kw[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;um[1]&&(m[1]=p)}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=oe(o,function(y){return y.property}),f=0;fg[1]&&(g[1]=m)}}!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=0&&r=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&ne)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=c&&y<=v||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var m=h[i[0]],_=h[i[1]],S=e[i[1]][0],b=e[i[1]][1],g=0;g=c&&y<=v||isNaN(y))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var g=0;g=c&&y<=v||isNaN(y))&&(l[u++]=T)}else for(var g=0;ge[A][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(g))}return ug[1]&&(g[1]=m)}}}},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(la(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;df&&(f=c,v=S)}D>0&&Ds&&(p=s-f);for(var m=0;md&&(d=y,h=f+m)}var _=this.getRawIndex(c),S=this.getRawIndex(h);cf-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=g),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();ah&&(h=m))}return l[f]=[v,h]},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=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 ql(r[a],this._dimensions[a])}nh={arrayRows:e,objectRows:function(r,n,i,a){return ql(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return ql(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),Nw=(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(tl(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=xt(s)?Ln:zt,a=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=ne(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=ne(c.sourceHeader,v.sourceHeader),p=ne(c.dimensions,v.dimensions),m=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=m?[Ov(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var g=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);i=[Ov(_,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&&Z0(a)}var o,s=[],l=[];return R(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&Z0(c),s.push(f),l.push(u._getVersionSign())}),n?o=BO(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[yO(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!t.noHeader;return R(t.blocks,function(i){var a=Hw(i);a>=e&&(e=a+ +(n&&(!a||Nv(i)&&!i.noHeader)))}),e}return 0}function YO(t,e,r,n){var i=e.noHeader,a=XO(Hw(e)),o=[],s=e.blocks||[];Nr(!s||K(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Mt(u,l)){var f=new DO(u[l],null);s.sort(function(p,m){return f.evaluate(p.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(p,m){var g=e.valueFormatter,y=zw(p)(g?G(G({},t),{valueFormatter:g}):t,p,m>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Bv(n,o.join(""),i?r:a.html);if(i)return c;var v=Lv(e.header,"ordinal",t.useUTC),h=Fw(n,t.renderMode).nameStyle,d=Bw(n);return t.renderMode==="richText"?Uw(t,v,h)+a.richText+c:Bv(n,'
'+yt(v)+"
"+c,r)}function $O(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(S){return S=K(S)?S:[S],oe(S,function(b,w){return Lv(b,K(h)?h[w]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ae.color.secondary,i),v=a?"":Lv(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),p=!s||!a,m=!s&&a,g=Fw(n,i),y=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":c)+(a?"":Uw(t,v,y))+(o?"":ZO(t,d,p,m,_)):Bv(n,(s?"":c)+(a?"":qO(v,!s,y))+(o?"":jO(d,p,m,_)),r)}}function K0(t,e,r,n,i,a){if(t){var o=zw(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function XO(t){return{html:GO[t],richText:WO[t]}}function Bv(t,e,r){var n='
',i="margin: "+r+"px 0 0",a=Bw(t);return'
'+e+n+"
"}function qO(t,e,r){var n=e?"margin-left:2px":"";return''+yt(t)+""}function jO(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=K(t)?t:[t],''+oe(t,function(o){return yt(o)}).join("  ")+""}function Uw(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function ZO(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(K(e)?e.join(" "):e,a)}function KO(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Fi(n)}function Vw(t,e){var r=t.get("padding");return r!=null?r:e==="richText"?[8,10]:10}var ih=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=$S()}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=dw({color:r,type:e,renderMode:n,markerId:i});return te(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};K(r)?R(r,function(a){return G(n,a)}):G(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function QO(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=K(s),u=KO(e,r),f,c,v,h;if(o>1||l&&!o){var d=JO(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=Ha(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var m=Ud(e),g=m&&e.name||"",y=i.getName(r),_=n?g:y;return ns("section",{header:g,noHeader:n||!m,sortParam:h,blocks:[ns("nameValue",{markerType:"item",markerColor:u,name:_,noName:!dr(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(r)})].concat(v||[])})}function JO(t,e,r,n,i){var a=e.getData(),o=kr(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?R(n,function(c){f(Ha(a,r,c),c)}):R(t,f);function f(c,v){var h=a.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(ns("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 dn=we();function rl(t,e){return t.getName(e)||t.getId(e)}var ek="__universalTransitionEnabled",nr=(function(t){q(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=Ho({count:rk,reset:nk}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=dn(this).sourceManager=new Nw(this);a.prepareSource();var o=this.getInitialData(r,i);J0(o,this),this.dataTask.context.data=o,dn(this).dataBeforeProcessed=o,Q0(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=ts(this),a=i?As(r):{},o=this.subType;Se.hasClass(o)&&(o+="Series"),be(r,n.getTheme().get(this.subType)),be(r,this.getDefaultOption()),mv(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&zn(r,a,i)},e.prototype.mergeOption=function(r,n){r=be(this.option,r,!0),this.fillDataTextStyle(r.data);var i=ts(this);i&&zn(this.option,r,i);var a=dn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);J0(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,dn(this).dataBeforeProcessed=o,Q0(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!xt(r))for(var n=["show"],i=0;i=0&&v<0)&&(c=b,v=S,h=0),S===v&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,n,i){return QO({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ve.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=Tp.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=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[rl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[ek])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"){ie(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(r,n)}},e.registerClass=function(r){return Se.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})(Se);ar(nr,CO);ar(nr,Tp);rb(nr,Se);function Q0(t){var e=t.name;Ud(t)||(t.name=tk(t)||e)}function tk(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return R(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function rk(t){return t.model.getRawData().count()}function nk(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),ik}function ik(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function J0(t,e){R(uS(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ue(ak,e))})}function ak(t,e){var r=Fv(t);return r&&r.setOutputEnd((e||this).count()),e}function Fv(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 Ct=(function(){function t(){this.group=new rt,this.uid=Nf("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})();Yd(Ct);_f(Ct);function Gw(){var t=we();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 Ww=we(),ok=Gw(),Pt=(function(){function t(){this.group=new rt,this.uid=Nf("viewChart"),this.renderTask=Ho({plan:sk,reset:lk}),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&&ty(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&ty(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.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){ip(this.group,e)},t.markUpdateMethod=function(e,r){Ww(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function ey(t,e,r){t&&Dv(t)&&(e==="emphasis"?xu:Cu)(t,r)}function ty(t,e,r){var n=Bi(t,e),i=e&&e.highlightKey!=null?sL(e.highlightKey):null;n!=null?R(wt(n),function(a){ey(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){ey(a,r,i)})}Yd(Pt);_f(Pt);function sk(t){return ok(t.model)}function lk(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&Ww(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),uk[l]}var uk={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)}}},Ou="\0__throttleOriginMethod",ry="\0__throttleRate",ny="\0__throttleType";function Ep(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=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 Yw(t,e,r,n){var i=t[e];if(i){var a=i[Ou]||i,o=i[ny],s=i[ry];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Ep(a,r,n==="debounce"),i[Ou]=a,i[ny]=n,i[ry]=r}return i}}function zv(t,e){var r=t[e];r&&r[Ou]&&(r.clear&&r.clear(),t[e]=r[Ou])}var iy=we(),ay={itemStyle:Qo(iw,!0),lineStyle:Qo(nw,!0)},fk={lineStyle:"stroke",itemStyle:"fill"};function $w(t,e){var r=t.visualStyleMapper||ay[e];return r||(console.warn("Unknown style type '"+e+"'."),ay.itemStyle)}function Xw(t,e){var r=t.visualDrawType||fk[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var ck={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=$w(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Xw(t,n),u=o[l],f=fe(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"||fe(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||fe(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 p=t.getDataParams(d),m=G({},o);m[l]=f(p),h.setItemVisual(d,"style",m)}}}},uo=new Le,hk={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=$w(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){uo.option=l[n];var u=i(uo),f=o.ensureUniqueItemVisual(s,"style");G(f,u),uo.option.decal&&(o.setItemVisual(s,"decal",uo.option.decal),uo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},vk={performRawSeries:!0,overallReset:function(t){var e=ce();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();iy(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=iy(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Xw(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)}})}})}},nl=Math.PI;function dk(t,e){e=e||{},Te(e,{text:"loading",textColor:ae.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ae.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new rt,n=new Ge({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Ke({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 Ge({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 Ts({shape:{startAngle:-nl/2,endAngle:-nl/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:nl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:nl*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 qw=(function(){function t(e,r,n,i){this._stageTaskMap=ce(),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.__preparePipelineContext?e.__preparePipelineContext(r,n):HP(e,r,n);e.pipelineContext=n.context=i},t.prototype.restorePipelines=function(e,r){var n=this,i=n._pipelineMap=ce();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;R(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Nr(!(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;R(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(m){s(i,m)&&(m.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(m){m.perform(p)}),v.perform(p)&&(a=!0)}else c&&c.each(function(m,g){s(i,m)&&m.dirty();var y=o.getPerformArgs(m,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.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=ce(),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)||Ho({plan:_k,reset:Sk,count:wk}));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||Ho({reset:pk});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ce(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,v=!1,h="";Nr(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):R(n.getSeries(),d);function d(p){var m=p.uid,g=l.set(m,s&&s.get(m)||(v=!0,Ho({reset:gk,onDirty:yk})));g.context={model:p,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(p,g)}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 fe(e)&&(e={overallReset:e,seriesType:Tk(e)}),e.uid=Nf("stageHandler"),r&&(e.visualType=r),e},t})();function pk(t){t.overallReset(t.ecModel,t.api,t.payload)}function gk(t){return t.dirtyOnOverallProgress&&mk}function mk(){this.agent.dirty(),this.getDownstream().dirty()}function yk(){this.agent&&this.agent.dirty()}function _k(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Sk(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=wt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?oe(e,function(r,n){return jw(n)}):bk}var bk=jw(0);function jw(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a0&&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})(),Hv=["symbol","symbolSize","symbolRotate","symbolOffset"],ly=Hv.concat(["symbolKeepAspect"]),Ck={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=0&&Ti(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Vv(t,e,r){for(var n=e.type==="radial"?Xk(t,e,r):$k(t,e,r),i=e.colorStops,a=0;a0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Re(t)?[t]:K(t)?t:null}function rT(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&jk(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=oe(r,function(a){return a/i}),n/=i)}return[r,n]}var Zk=new Fn(!0);function Nu(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function uy(t){return typeof t=="string"&&t!=="none"}function Bu(t){var e=t.fill;return e!=null&&e!=="none"}function fy(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 cy(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 Gv(t,e,r){var n=nb(e.image,e.__image,r);if(Sf(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)*fS),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function Kk(t,e,r,n,i){var a,o=Nu(r),s=Bu(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||Zk,v=e.__dirty;if(!n){var h=r.fill,d=r.stroke,p=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0;(p||m)&&(T=e.getBoundingRect()),p&&(_=v?Vv(t,h,T):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(S=v?Vv(t,d,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),g&&(b=v||!e.__canvasFillPattern?Gv(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(w=v||!e.__canvasStrokePattern?Gv(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?t.fillStyle=_:g&&(b?t.fillStyle=b:s=!1),m?t.strokeStyle=S:y&&(w?t.strokeStyle=w:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var x,A;t.setLineDash&&r.lineDash&&(a=rT(e),x=a[0],A=a[1]);var D=!0;(f||v&ga)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),D=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(t,u?l:1),x&&(t.setLineDash(x),t.lineDashOffset=A),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&cy(t,r),s&&fy(t,r)):(s&&fy(t,r),o&&cy(t,r)),x&&t.setLineDash([])}function Qk(t,e,r){var n=e.__image=nb(r.image,e.__image,e,e.onload);if(!(!n||!Sf(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 Jk(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Bn,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=rT(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Nu(r)&&t.strokeText(i,r.x,r.y),Bu(r)&&t.fillText(i,r.x,r.y)):(Bu(r)&&t.fillText(i,r.x,r.y),Nu(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var hy=["shadowBlur","shadowOffsetX","shadowOffsetY"],vy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function nT(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){_t(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Ri.opacity:o}(n||e.blend!==r.blend)&&(a||(_t(t,i),a=!0),t.globalCompositeOperation=e.blend||Ri.blend);for(var s=0;s0&&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[We]){if(this._disposed){this.id;return}var a,o,s;if(ie(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[We]=!0,ha(this),!this._model||n){var l=new nO(this._api),u=this._theme,f=this._model=new xp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},qv);var c={seriesTransition:s,optionChanged:!0};if(i)this[et]={silent:a,updateParams:c},this[We]=!1,this.getZr().wakeUp();else{try{di(this),Xr.update.call(this,null,c)}catch(v){throw this[et]=null,this[We]=!1,v}this._ssr||this._zr.flush(),this[et]=null,this[We]=!1,fa.call(this,a),ca.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[We]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[et]&&(a==null&&(a=this[et].silent),o=this[et].updateParams,this[et]=null),this[We]=!0,ha(this);try{this._updateTheme(r),i.setTheme(this._theme),di(this),Xr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[We]=!1,s}this[We]=!1,fa.call(this,a),ca.call(this,a)}}},e.prototype._updateTheme=function(r){te(r)&&(r=yT[r]),r&&(r=de(r),r&&Cw(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||ve.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 R(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;R(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 R(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(Uu[i]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();R(Pi,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(de(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),v.push({dom:b,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,m=it.createCanvas(),g=vv(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:p}),n){var y="";return R(v,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Ge({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),R(v,function(_){var S=new un({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return ll(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return ll(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return ll(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Ic(i,r);return R(o,function(s,l){l.indexOf("Models")>=0&&R(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=Ic(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?Dk(s,l,n):Ek(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;R(xN,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&Ro(l,function(p){var m=me(p);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=G({},m.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;R($v,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),Mk(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&&KS(this.getDom(),Lp,"");var n=this,i=n._api,a=n._model;R(n._componentsViews,function(o){o.dispose(a,i)}),R(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 Pi[n.id]},e.prototype.resize=function(r){if(!this[We]){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[et]&&(a==null&&(a=this[et].silent),i=!0,this[et]=null),this[We]=!0,ha(this);try{i&&di(this),Xr.update.call(this,{type:"resize",animation:G({duration:0},r&&r.animation)})}catch(o){throw this[We]=!1,o}this[We]=!1,fa.call(this,a),ca.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(ie(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!jv[r]){var i=jv[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=G({},r);return n.type=Yv[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(ie(n)||(n={silent:!!n}),!!zu[r.type]&&this._model){if(this[We]){this._pendingActions.push(r);return}var i=n.silent;fh.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ve.browser.weChat&&this._throttledZrFlush(),fa.call(this,i),ca.call(this,i)}},e.prototype.updateLabelLayout=function(){Vt.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(){di=function(c){Ik(c._model);var v=c._scheduler;v.restorePipelines(c._zr,c._model),v.prepareStageTasks(),lh(c,!0),lh(c,!1),v.plan()},lh=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,m=v?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_ne(v.get("hoverLayerThreshold"),Sw.hoverLayerThreshold)&&!ve.node&&!ve.worker;(c._usingTHL||m)&&(v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==ep&&(S.hoverLayer=m?Vb:Ub)})}}),c._usingTHL=m)}}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=Jb(c);v.eachRendered(function(d){return ew(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!Ca(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.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(),p=h.get("duration"),m=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Ca(g))return;if(g instanceof Me&&lL(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}g.__dirty&&a(g)}})}Dy=function(c){return new((function(v){q(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 p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){xu(d,p),Ht(c)},h.prototype.leaveEmphasis=function(d,p){Cu(d,p),Ht(c)},h.prototype.enterBlur=function(d){QI(d),Ht(c)},h.prototype.leaveBlur=function(d){wb(d),Ht(c)},h.prototype.enterSelect=function(d){Tb(d),Ht(c)},h.prototype.leaveSelect=function(d){xb(d),Ht(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.getECUpdateCycleVersion=function(){return c[ol]},h.prototype.usingTHL=function(){return c._usingTHL},h})(mb))(c)},mT=function(c){function v(h,d){for(var p=0;p=0)){Ry.push(r);var o=qw.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o)}}function zp(t,e){jv[t]=e}function LN(t){eS({createCanvas:t})}function CT(t,e,r){var n=eT("registerMap");n&&n(t,e,r)}function ON(t){var e=eT("getMap");return e&&e(t)}var AT=NO;Vn(Pp,ck);Vn(Hf,hk);Vn(Hf,vk);Vn(Pp,Ck);Vn(Hf,Ak);Vn(fT,sN);Np(Cw);Bp(vN,pO);zp("default",dk);Xi({type:Mi,event:Mi,update:Mi},at);Xi({type:Ul,event:Ul,update:Ul},at);Xi({type:wu,event:jd,update:wu,action:at,refineEvent:Hp,publishNonRefinedEvent:!0});Xi({type:Tv,event:jd,update:Tv,action:at,refineEvent:Hp,publishNonRefinedEvent:!0});Xi({type:Tu,event:jd,update:Tu,action:at,refineEvent:Hp,publishNonRefinedEvent:!0});function Hp(t,e,r,n){return{eventContent:{selected:nL(r),isFromClick:e.isFromClick||!1}}}kp("default",{});kp("dark",Qw);var kN={};function co(t){return t==null?0:t.length||1}function My(t){return t}var NN=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||My,this._newKeyGetter=i||My,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;o1){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;s1&&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;h1)for(var s=0;s30}var ho=ie,pn=oe,GN=typeof Int32Array=="undefined"?Array:Int32Array,WN="e\0\0",Py=-1,YN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$N=["_approximateExtent"],Iy,fl,vo,po,vh,go,dh,Vp=(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;ET(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=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===zt;if(l&&!i.pure)for(var u=[],f=e;f0},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),K(a)?a=a.slice():ho(a)&&(a=G({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,ho(r)?G(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ho(e)?G(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?G(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;HI(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){R(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:pn(this.dimensions,this._getDimInfo,this),this.hostModel)),vh(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];fe(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(ff(arguments)))})},t.internalField=(function(){Iy=function(e){var r=e._invertedIndicesMap;R(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new GN(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[r]=l}}})(),t})();function XN(t,e){return Gp(t,e).dimensions}function Gp(t,e){Cp(t)||(t=Aw(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=ce(),a=[],o=qN(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&MT(o),l=n===t.dimensionsDefine,u=l?RT(t):Up(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=ce(f),v=new Ow(o),h=0;h0&&(x.name=x.name+(A-1))}),new DT({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function qN(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return R(e,function(a){var o;ie(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function jN(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 ZN=(function(){function t(e){this.coordSysDims=[],this.axisMap=ce(),this.categoryAxisMap=ce(),this.coordSysName=e}return t})();function KN(t){var e=t.get("coordinateSystem"),r=new ZN(e),n=QN[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var QN={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Zt).models[0],a=t.getReferringComponents("yAxis",Zt).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),va(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),va(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Zt).models[0];e.coordSysDims=["single"],r.set("single",i),va(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Zt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),va(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),va(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();R(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),va(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Zt).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 va(t){return t.get("type")==="category"}function PT(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;JN(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,v,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(R(a,function(S,b){te(S)&&(a[b]=S={name:S}),d(S)||(h=!1)}),R(a,function(S,b){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,m=f.type,g=0;R(a,function(S){S.coordDim===p&&g++});var y={name:c,coordDim:p,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:v,coordDim:v,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(v,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function JN(t){return!ET(t.schema)}function Ua(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function IT(t,e){return Ua(t,e)?t.getCalculationInfo("stackResultDimension"):e}function eB(t,e){var r=t.get("coordinateSystem"),n=Bf.get(r),i;return e&&e.coordSysDims&&(i=oe(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=zN(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function tB(t,e,r){var n,i;return r&&R(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 LT(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===zt;var o=KN(e),s=eB(e,o),l=r.useEncodeDefaulter,u=fe(l)?l:l?Ue(Y2,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Gp(i,f),v=tB(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=PT(e,{schema:c,store:h}),p=new Vp(c,e);p.setCalculationInfo(d);var m=v!=null&&rB(i)?function(g,y,_,S){return S===v?_:this.defaultDimValueGetter(g,y,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,m),p}function rB(t){if(t.sourceFormat===zt){var e=nB(t.data||[]);return!K(ys(e))}}function nB(t){for(var e=0;e=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Qt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){Ly(this._extents,Qt,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[Qt].slice()),Ly(n,t,e,r)},freeze:function(){}};function Ly(t,e,r,n){Fa(r,n)&&(t[e][0]=r,t[e][1]=n)}function FT(t){return Wu(t)||Va(t)}function Wu(t){return t.type==="interval"}function Yp(t){return t.type==="time"}function Va(t){return t.type==="log"}function Vr(t){return t.type==="ordinal"}function fB(t){var e=mf(t),r=Wi(10,e),n=Br(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,_e(n*r,-e)}function Hi(t){return Kr(t)+2}function cl(t,e){return Ni(t)/Ni(e)}function ph(t,e,r){var n=r&&r.lookup;if(n){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&l(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var UT=(function(t){q(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,NT(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new Zv({})),K(i)&&(i=new Zv({categories:oe(i,function(o){return ie(o)?o.value:o})})),n._ordinalMeta=i;var a=Wp(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,BT(n),n}return e.parse=function(r){return r==null?r=NaN:te(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Br(r),r},e.prototype.getTicks=function(){var r=[];return HT(this,0,function(n){r.push(n)}),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=It(s,n.length);o=0&&r=0&&r=0&&ro[0]&&po[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(m>d)break;p=It(p,o[1]),m===d&&(p=o[1])}if(c.push({value:p}),p=_e(p+i,s),u){var g=u.calcNiceTickMultiple(p,h);g>=0&&(p=_e(p+g*i,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>v)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?_e(y+i,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},n.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return Xp(this,r,Pu(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Kr(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=_e(r.value,i,!0);return yp(a)},e.type="interval",e})(wr);wr.registerClass(Ma);var hB=function(t,e,r,n){for(;r>>1;t[i][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function dB(t){var e=30*Kt;return t/=e,t>6?6:t>3?3:t>2?2:1}function pB(t){return t/=Bo,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Oy(t,e){return t/=e?cp:fp,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function gB(t){return Ee(yf(t,!0),1)}function mB(t,e,r){var n=Math.max(0,ge(kt,e)-1);return Lu(new Date(t),kt[n],r).getTime()}function yB(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 _B(t,e,r,n,i,a){var o=3e3,s=S2,l=0;function u(O,N,U,W,X,Q,J){for(var j=yB(X,O),z=N,re=new Date(z);zo));)if(re[X](re[W]()+O),z=re.getTime(),a){var se=a.calcNiceTickMultiple(z,j);se>0&&(re[X](re[W]()+se*O),z=re.getTime())}J.push({value:z,notAdd:z>n[1]})}function f(O,N,U){var W=[],X=!N.length;if(!GT(Fo(O),n[0],n[1],r)){X&&(N=[{value:mB(n[0],O,r)},{value:n[1]}]);for(var Q=0;Q=n[0]&&J<=n[1]&&u(z,J,j,re,se,L,W),O==="year"&&U.length>1&&Q===0&&U.unshift({value:U[0].value-z})}}for(var Q=0;Q=n[0]&&S<=n[1]&&h++)}var b=i/e;if(h>b*1.5&&d>b/1.5||(c.push(y),h>b||t===s[p]))break}v=[]}}}for(var w=ze(oe(c,function(O){return ze(O,function(N){return N.value>=n[0]&&N.value<=n[1]&&!N.notAdd})}),function(O){return O.length>0}),T=w.length-1,C=[],p=0;pn[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!M||M.values&&(a=s);var l=hl.length,u=Math.min(hB(hl,a,0,l),l-1),f=hl[u][1],c=hl[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};wr.registerClass(VT);var vl=0,dl=1,bB=2,WT=(function(t){q(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=Ma.parse,n.base=r.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[vl]=i[dl]=a[vl]=a[dl]=NaN,NT(n,e.mapperMethods);var s=St(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},bB,u),n.powStub=new Ma({breakParsed:u.original}),n.intervalStub=new Ma({breakParsed:u.transformed}),BT(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=St(),o=this.intervalStub,s=o.getExtent(),l=i.getExtent(),u={lookup:{from:s,to:l}};return oe(o.getTicks(r||{}),function(f){var c=f.value,v=ph(c,n,u),h;if(a){var d=a.getTicksBreakOutwardTransform(this,f,Pu(i),this._lookup);d&&(h=d.vBreak,v=d.tickVal)}return{value:v,break:h}},this)},e.prototype.getMinorTicks=function(r){return Xp(this,r,Pu(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(cl(r,this.base))},scale:function(r){return ph(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=cl(r,this.base),n&&n.depth===Vu?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return ky.depth=i,Ny.lookup=this._lookup,ph(i===Vu?r:this.intervalStub.transformOut(r,ky),this.base,Ny)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(Qt,r,n)},setExtent2:function(r,n,i){if(!(!Fa(n,i)||n<=0||i<=0)){var a=By,o=By;if(r===Qt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[vl]=n,a[dl]=i);var l=this.base;this.intervalStub.setExtent2(r,o[vl]=cl(n,l),o[dl]=cl(i,l))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return Fa(n[0],n[1])&&Fr(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e})(wr);wr.registerClass(WT);var ky={},Ny={},By=[],YT={value:1,category:1,time:1,log:1},$T=we();function XT(t){var e=t.get("type");return(e==null||!Mt(YT,e)&&!wr.getClass(e))&&(e="value"),e}function qT(t,e,r){var n=St(),i;switch(n&&(i=jT(t,e,r)),e){case"category":return new UT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Xt()});case"time":return new VT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new WT({logBase:t.get("logBase"),breakOption:i});case"value":return new Ma({breakOption:i});default:return new(wr.getClass(e)||Ma)({})}}function wB(t,e,r){var n=t.getExtentUnsafe(Qt,null),i=n[0],a=n[1];return Fa(i,a)?i===e||a===e?xB:ie?TB:Kv:Kv}var TB=1,xB=2,Kv=3;function CB(t){$T(t).noOnMyZero=!0}function AB(t){return $T(t).noOnMyZero}function Gf(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=b2(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(te(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a!=null?a:"");return o};if(fe(e)){if(t.type==="category")return function(i,a){return e(Yu(t,i),i.value-t.scale.getExtent()[0],null)};var n=St();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Yu(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Yu(t,e){var r=t.scale;return Vr(r)?r.getLabel(e):e.value}function qp(t){var e=t.get("interval");return e==null?"auto":e}function DB(t){return t.type==="category"&&qp(t.getLabelModel())===0}function EB(t,e){var r={};return R(t.mapDimensionsAll(e),function(n){r[IT(t,n)]=!0}),Pe(r)}function Ga(t){return t==="middle"||t==="center"}function ss(t){return t.getShallow("show")}function jT(t,e,r){var n=t.get("breaks",!0);if(n!=null)return!St()||!r||!RB(e)?void 0:n}function RB(t){return t!=="category"}function ZT(t,e,r,n,i,a){var o=Va(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var l=t.powStub,u={depth:Vu},f=t.transformOut(n[0],u),c=t.transformOut(n[1],u),v=cB(r,n);e[0]&&!v[0]&&(f=i[0]),e[1]&&!v[1]&&(c=i[1]),l.setExtent(f,c)}s.setConfig(a)}function Es(t,e){return Vr(t)?t.getRawOrdinalNumber(e.value):e.value}function KT(t,e){return Vr(t)&&!!e.get("boundaryGap")}var QT=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),Fy="|&",Rs=we(),MB=-2;we();function PB(t,e){var r=t.model,n=Rs(Ds(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function IB(t,e){return JT(PB(t,e))}function LB(t,e){var r=[];return OB(t.model.ecModel,function(n){for(var i=0;i0&&c[1]>0&&!v[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!v[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var b=mo(e,r.get("startValue",!0)),w=b!=null;!Fr(b)&&i&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Fr(b)&&(w||!y||_)&&(bc[1]&&!v[1]&&(c[1]=b,v[1]=!0));var T=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:_,tggAxInv:S,ctnShp:a};Vy(T,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),Vy(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function Vy(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),BP(e))}function mo(t,e){return e==null?null:ka(e)?NaN:t.parse(e)}function HB(t,e){var r;if(Vr(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),r=K(n)?n:[n,n]}return[Gy(r[0]),Gy(r[1])]}function Gy(t){return ki(typeof t=="boolean"?0:t,1)||0}function rx(t){var e=BB(t.scale);return e.extent||(e.extent=Xt()),e}function UB(t,e){rx(t).dimIdxInCoord=e.get(t.dim)}function VB(t,e){var r=t.scale,n=t.model,i=t.dim;r.rawExtentInfo||GB(r,t,i,n,e)}function GB(t,e,r,n,i){var a=rx(e),o=a.extent,s=!1;kB(e,function(f){if(f.boxCoordinateSystem){var c=mw(f).coord,v=a.dimIdxInCoord;if(v>=0){if(K(c)){var h=c[v];h!=null&&!K(h)&&yv(o,t.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=t.getFilter?t.getFilter():null;R(EB(d,r),function(m){kP(o,d.getApproximateExtent(m,p))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=YB(t,e,n),u=new tx(t,n,o,s,l);nx(t,u,i),a.extent=null}function WB(t,e){var r=t.scale;nx(r,new tx(r,t.model,e,!1,!1),zB)}function nx(t,e,r){t.rawExtentInfo=e,e.from=r}var ix=ce();function ax(t,e,r,n,i){t.rawExtentInfo||WB({scale:t,model:e},i||Xt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function YB(t,e,r){var n=KT(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return ex(e,function(o){a=!!ix.get(o)||a}),a}function $B(t,e,r,n){if(r.ctnShp){var i;if(ex(t,function(s){var l=ix.get(s);if(l){var u=l(t,n);u&&(i=i||[0,0],JS(i,u[0]),eb(i,u[1]),CB(t))}}),!!i){var a=e.getExtent();if(Vr(e))t.onBand||e.setExtent2(as,It(a[0],a[0]+i[0]),Ee(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=It(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=Ee(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&e.setExtent2(as,o[0],o[1])}}}}function Wy(t,e){var r=Va(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=zT(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=r?qB(n,e):XB(n,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Hi(c)),i[0]||(s[0]=_e(rn(s[0]/f)*f,u)),i[1]||(s[1]=_e(ms(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),ZT(t,i,o,s,a,l)}function XB(t,e){var r=$p(e.splitNumber,5),n=Vf(t),i=e.minInterval,a=e.maxInterval,o=yf(n/r,!0);i!=null&&oa&&(o=a);var s=Hi(o),l=t.getExtent(),u=[_e(ms(l[0]/o)*o,s),_e(rn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function qB(t,e){var r=$p(e.splitNumber,10),n=t.getExtent(),i=Vf(t),a=Ee(Hd(i),1),o=r/i*a;o<=.5&&(a*=10);var s=Hi(a),l=[_e(ms(n[0]/a)*a,s),_e(rn(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Yy(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;ox(e,r,n,i,null)}function ox(t,e,r,n,i){var a=ax(t,e,n,r,i),o=Wu(t)||Yp(t);jB(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&n&&$B(r,t,a,n)}function jB(t,e){ZB[t.type](t,e)}var ZB={interval:Wy,log:Wy,time:SB,ordinal:at};function KB(t){return LT(null,t)}var QB={isDimensionStacked:Ua,enableDataStack:PT,getStackedDimension:IT};function JB(t,e){var r=e;e instanceof Le||(r=new Le(e));var n=XT(r),i=qT(r,n,!1);return t[1]=0||($y.push(t),fe(t)&&(t={install:t}),t.install(n5))}var i5=1e-8;function Xy(t,e){return Math.abs(t-e)i&&(n=o,i=l)}if(n)return o5(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 R(o,function(s){s.type==="polygon"?jy(s.exterior,i,a,r):R(s.points,function(l){jy(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 le(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>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 Qy(t,e){return t=l5(t),oe(ze(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 Zy(o[0],o.slice(1)));break;case"MultiPolygon":R(i.coordinates,function(l){l[0]&&a.push(new Zy(l[0],l.slice(1)))});break;case"LineString":a.push(new Ky([i.coordinates]));break;case"MultiLineString":a.push(new Ky(i.coordinates))}var s=new s5(n[e||"name"],a,n.cp);return s.properties=n,s})}const u5=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:gv,asc:Fd,getPercentWithPrecision:hP,getPixelPrecision:fP,getPrecision:Kr,getPrecisionSafe:VS,isNumeric:YS,isRadianAroundZero:jo,linearMap:_u,nice:yf,numericToNumber:Zo,parseDate:ln,parsePercent:He,quantile:pP,quantity:Hd,quantityExponent:mf,reformIntervals:gP,remRadian:zd,round:uP},Symbol.toStringTag,{value:"Module"})),f5=Object.freeze(Object.defineProperty({__proto__:null,format:xs,parse:ln,roundTime:Lu},Symbol.toStringTag,{value:"Module"})),c5=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ts,BezierCurve:Ef,BoundingRect:le,Circle:ws,CompoundPath:Lb,Ellipse:Cf,Group:rt,Image:un,IncrementalDisplayable:Fb,Line:an,LinearGradient:Qd,Polygon:Df,Polyline:qa,RadialGradient:kb,Rect:Ge,Ring:Af,Sector:$i,Text:Ke,clipPointsByRect:Zb,clipRectByRect:Kb,createIcon:Mf,extendPath:Wb,extendShape:Gb,getShapeClass:Yb,getTransform:qb,initProps:er,makeImage:tp,makePath:Rf,mergePath:Xb,registerShape:sr,resizePath:rp,updateProps:Lt},Symbol.toStringTag,{value:"Module"})),h5=Object.freeze(Object.defineProperty({__proto__:null,addCommas:yp,capitalFirst:R2,encodeHTML:yt,formatTime:E2,formatTpl:Sp,getTextRect:D2,getTooltipMarker:dw,normalizeCssArray:Cs,toCamelCase:_p,truncateText:eI},Symbol.toStringTag,{value:"Module"})),v5=Object.freeze(Object.defineProperty({__proto__:null,bind:Ae,clone:de,curry:Ue,defaults:Te,each:R,extend:G,filter:ze,indexOf:ge,inherits:Pd,isArray:K,isFunction:fe,isObject:ie,isString:te,map:oe,merge:be,reduce:kr},Symbol.toStringTag,{value:"Module"}));var d5=we(),Uo=we(),Sr={estimate:1,determine:2};function $u(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function p5(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:oe(ux(r,n),function(i,a){return{formattedLabel:Gf(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?m5(t,e):_5(t)}function g5(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:ux(i,n)}:t.type==="category"?y5(t,e):{ticks:n.getTicks(r)}}function ux(t,e){var r=e.getExtent(),n=[];return R(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),Gd(n,zP,null),Fd(n),oe(n,function(i){return{value:i}})}function m5(t,e){var r=t.getLabelModel(),n=fx(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function fx(t,e,r){var n=b5(t),i=qp(e),a=r.kind===Sr.estimate;if(!a){var o=hx(n,i);if(o)return o}var s,l;fe(i)?s=Xu(t,i,!1):(l=i==="auto"?w5(t,r):i,s=Xu(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return Qv(n,i,u),!0}):Qv(n,i,u),u}function y5(t,e){var r=S5(t),n=qp(e),i=hx(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),fe(n))a=Xu(t,n,!0);else if(n==="auto"){var s=fx(t,t.getLabelModel(),$u(Sr.determine));o=s.labelCategoryInterval,a=oe(s.labels,function(l){return l.tick})}else o=n,a=Xu(t,o,!0);return Qv(r,n,{ticks:a,tickCategoryInterval:o})}function _5(t){var e=t.scale.getTicks(),r=Gf(t);return{labels:oe(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}var S5=cx("axisTick"),b5=cx("axisLabel");function cx(t){return function(r){return Uo(r)[t]||(Uo(r)[t]={list:[]})}}function hx(t,e){for(var r=0;rf&&(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)),p=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=BS(i({value:c}),n.font,"center","top");g=_.width*1.3,y=_.height*1.3,p=Math.max(p,g,7),m=Math.max(m,y,7)}var S=p/h,b=m/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(S,b)));if(r===Sr.estimate)return e.out.noPxChangeTryDetermine.push(Ae(x5,null,t,w,l)),w;var T=vx(t,w,l);return T!=null?T:w}function x5(t,e,r){return vx(t,e,r)==null}function vx(t,e,r){var n=d5(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 C5(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 Xu(t,e,r){var n=Gf(t),i=t.scale,a=[],o=fe(e);return HT(i,o?0:e,function(s,l){var u=i.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),a}var A5=.8;function Wf(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=sB(n);Fr(o)||(o=NaN);var s=t.getExtent(),l=Ze(s[1]-s[0]);return Vr(n)?D5(r,t,o,l):i&&E5(r,t,o,l,i),a!=null&&(r.w=Fr(r.w)?Ee(a,r.w):a),r}function D5(t,e,r,n){var i=e.onBand,a=r+(i?1:0);a===0&&(a=1),t.w=n/a,!i&&r&&n&&(t.w2=t.w*r/n)}function E5(t,e,r,n,i){var a=!1,o=-1/0;R(i.key?[IB(e,i.key)]:LB(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===MB&&(a=!0))}),Fr(r)&&r>0&&Fr(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*A5,t.w2=t.w*r/n)}var Jy=[0,1],dx=(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.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return e=n.normalize(n.parse(e)),_u(e,Jy,e_(this),r)},t.prototype.coordToData=function(e,r){var n=_u(e,e_(this),Jy,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=g5(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=oe(n.ticks,function(s){return{coord:this.dataToCoord(Es(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=R5(this,i,a);return oe(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(Vr(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=oe(n,function(a){return oe(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||$u(Sr.determine),p5(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(){return Wf(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||$u(Sr.determine),T5(this,e)},t})();function e_(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],n=r/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function R5(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=Wf(t).w;if(!i)return!1;R(e,function(s){s.coord-=i/2});var a=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}function M5(t){var e=Se.extend(t);return Se.registerClass(e),e}function P5(t){var e=Ct.extend(t);return Ct.registerClass(e),e}function I5(t){var e=nr.extend(t);return nr.registerClass(e),e}function L5(t){var e=Pt.extend(t);return Pt.registerClass(e),e}var yo=Math.PI*2,pi=Fn.CMD,O5=["top","right","bottom","left"];function k5(t,e,r,n,i){var a=r.width,o=r.height;switch(t){case"top":n.set(r.x+a/2,r.y-e),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+e),i.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+e,r.y+o/2),i.set(1,0);break}}function N5(t,e,r,n,i,a,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+t,c=s*r+e;if(Math.abs(n-i)%yo<1e-4)return l[0]=f,l[1]=c,u-r;if(a){var v=n;n=Qr(i),i=Qr(v)}else n=Qr(n),i=Qr(i);n>i&&(i+=yo);var h=Math.atan2(s,o);if(h<0&&(h+=yo),h>=n&&h<=i||h+yo>=n&&h+yo<=i)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(n)+t,p=r*Math.sin(n)+e,m=r*Math.cos(i)+t,g=r*Math.sin(i)+e,y=(d-o)*(d-o)+(p-s)*(p-s),_=(m-o)*(m-o)+(g-s)*(g-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(_))}function qu(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;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=t+d*f,m=o[1]=e+d*c;return Math.sqrt((p-i)*(p-i)+(m-a)*(m-a))}function px(t,e,r,n,i,a,o){r<0&&(t=t+r,r=-r),n<0&&(e=e+n,n=-n);var s=t+r,l=e+n,u=o[0]=Math.min(Math.max(i,t),s),f=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var vr=[];function B5(t,e,r){var n=px(e.x,e.y,e.width,e.height,t.x,t.y,vr);return r.set(vr[0],vr[1]),n}function F5(t,e,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=e.data,c=t.x,v=t.y,h=0;h0){e=e/180*Math.PI,pr.fromArray(t[0]),De.fromArray(t[1]),Fe.fromArray(t[2]),he.sub(Pr,pr,De),he.sub(Rr,Fe,De);var r=Pr.len(),n=Rr.len();if(!(r<.001||n<.001)){Pr.scale(1/r),Rr.scale(1/n);var i=Pr.dot(Rr),a=Math.cos(e);if(a1&&he.copy(mt,Fe),mt.toArray(t[1])}}}}function z5(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,pr.fromArray(t[0]),De.fromArray(t[1]),Fe.fromArray(t[2]),he.sub(Pr,De,pr),he.sub(Rr,Fe,De);var n=Pr.len(),i=Rr.len();if(!(n<.001||i<.001)){Pr.scale(1/n),Rr.scale(1/i);var a=Pr.dot(e),o=Math.cos(r);if(a=l)he.copy(mt,Fe);else{mt.scaleAndAdd(Rr,s/Math.tan(Math.PI/2-f));var c=Fe.x!==De.x?(mt.x-De.x)/(Fe.x-De.x):(mt.y-De.y)/(Fe.y-De.y);if(isNaN(c))return;c<0?he.copy(mt,De):c>1&&he.copy(mt,Fe)}mt.toArray(t[1])}}}}function yh(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?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function H5(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=su(n[0],n[1]),a=su(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=Il([],n[1],n[0],o/i),l=Il([],n[1],n[2],o/a),u=Il([],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;f0){S(A*x,0,a);var D=A+T;D<0&&b(-D*x,1)}else b(-T*x,1)}}function S(T,C,x){T!==0&&(f=!0);for(var A=C;A0)for(var D=0;D0;D--){var k=x[D-1]*I;S(-k,D,a)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var x=Math.ceil(T/(a-1)),A=0;A0?S(x,0,A+1):S(-x,a-A-1,a),T-=x,T<=0)return}return f}function W5(t){for(var e=0;e=0&&n.attr(a.oldLayoutSelect),ge(v,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Lt(n,u,r,l)}else if(n.attr(u),!kf(n).valueAnimation){var c=ne(n.style.opacity,1);n.style.opacity=0,er(n,{style:{opacity:c}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};pl(h,u,gl),pl(h,n.states.select,gl)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};pl(d,u,gl),pl(d,n.states.emphasis,gl)}t2(n,l,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=X5(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Lt(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,er(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},t})(),bh=we();function j5(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var i=bh(r).labelManager;i||(i=bh(r).labelManager=new q5),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var i=bh(r).labelManager;R(n.updatedSeries,function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function Z5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function K5(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch(a){}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var ml={};function a_(t,e,r){var n=it.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}function wh(t){return!t.__cursors.get(Bb)}function o_(t){var e=t.__cursors.get(Bb);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var xx=(function(t){q(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.zlevel=0,a.zlevel2=Vl,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;i=i||gu,typeof r=="string"?o=a_(r,n,i):ie(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Id(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.afterBrush=function(){this.__prevIdx=o_(this)},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=a_("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 le(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var b=new le(0,0,0,0);b.copy(S),o.push(b)}else{for(var w=!1,T=1/0,C=0,x=0;x=s)}}for(var c=o_(this),v=c.startIdx;v=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=n._opts.useDirtyRect&&!wh(a)?a.createRepaintRects(e,r,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?n._backgroundColor:null;a.clear(!1,f,s)}yl(a,function(c){var v=n._paintPerCursor(a,c,e,s,u);i=i&&v})}},_l),ve.wxa&&ut(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),i},t.prototype._paintPerCursor=function(e,r,n,i,a){var o=e.ctx;if(i)if(!i.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,n,i,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=wh(e),u=l&&it.getTime(),f=r.drawIdx,c=r.notClearIdx,v=c>=0?Math.min(c,f):f;v15){v++;break}}}}Ra(s,o),r.drawIdx=Math.max(v,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,n){r=r||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(e=gi,r=0);var a=Ch(this._i,e)[r];return a||(a=l_("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&be(a,this._layerConfig[e],!0),(n||i&&e!==gi)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,n,i){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][n])&&J5(e)){for(var f=s.length,c=0;c0&&(u=Ch(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:n}),Ch(a,r)[n]=e,!i&&!e.virtual)if(u){var v=u.dom;v.nextSibling?l.insertBefore(e.dom,v.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return ut(this._i,function(n,i){e.call(r,n,i)})},t.prototype.eachBuiltinLayer=function(e,r){return ut(this._i,function(n,i){e.call(r,n,i)},Vo)},t.prototype.eachOtherLayer=function(e,r){return ut(this._i,function(n,i){e.call(r,n,i)},td)},t.prototype.getLayers=function(){var e={};return ut(this._i,function(r,n,i){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var n=this;if(n._singleCanvas)for(var i=1;i=0;_--){var S=y.get(g[_]);if(!S.used)m.__dirty=!0,y.removeKey(g[_]),g.splice(_,1);else{var b=S.endIdxNew;(wh(m)?b=0;i--){var a=r[i];if(a.zl===e){var o=n[e][a.zl2];if(o.__builtin__)continue;if(r.splice(i,1),n[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},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;e!=null&&(i.width=e),r!=null&&(i.height=r),e=al(a,0,i),r=al(a,1,i),n.style.display="",(this._width!==e||r!==this._height)&&(n.style.width=e+"px",n.style.height=r+"px",ut(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(gi).resize(e,r)}return this},t.prototype.clearLayer=function(e){R(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[gi][0].dom;var r=new xx("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;ut(this._i,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,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l{const s=a();return s.axisTick={show:!0},s})(),axisPointer:{lineStyle:{color:"#B9BEC9"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{backgroundColor:"auto",color:"#fff"},handle:{color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2}},brush:{brushStyle:{color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},defaultOutOfBrushColor:"#ddd"},calendar:{splitLine:{lineStyle:{color:"#000"}},itemStyle:{borderColor:"#ccc"},dayLabel:{margin:"50%",color:"#000"},monthLabel:{margin:5,color:"#000"},yearLabel:{margin:30,color:"#ccc"}},dataZoom:{borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleStyle:{color:"#D2DBEE",opacity:.7},textStyle:{color:"#6E7079"},brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7",opacity:.7}},defaultLocationEdgeGap:7},geo:{defaultItemStyleColor:"#eee",label:{color:"#000"},itemStyle:{borderColor:"#444"},emphasis:{label:{color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}}},grid:{left:"10%",top:60,bottom:70,borderColor:"#ccc"},legend:{top:0,bottom:null,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",itemGap:10,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",lineStyle:{inactiveColor:"#ccc"},textStyle:{color:"#333"},selectorLabel:{color:"#666",borderColor:"#666"},emphasis:{selectorLabel:{color:"#eee",backgroundColor:"#666"}},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageTextStyle:{color:"#333"}},radar:(()=>{const s=a();return s.radius="75%",s.axisName={color:"#bbb"},s.axisLine.lineStyle.color="#bbb",s})(),timeline:{padding:5,borderColor:"#ccc",lineStyle:{color:"#DAE1F5"},label:{color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)"},controlStyle:{playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}}},title:{left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",textStyle:{color:"#464646"},subtextStyle:{color:"#6E7079"}},toolbox:{borderColor:"#ccc",padding:5,itemGap:8,iconStyle:{borderColor:"#666"},emphasis:{iconStyle:{borderColor:"#3E98C5"}}},tooltip:{axisPointer:{crossStyle:{color:"#999"}},textStyle:{color:"#666"},backgroundColor:"#fff",borderWidth:1,defaultBorderColor:"#fff"},visualMap:{color:[o[2],o[1],o[0]],inactive:["rgba(0,0,0,0)"],indicatorStyle:{shadowColor:"rgba(0,0,0,0.2)"},backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",padding:5,textStyle:{color:"#333"}}})})})(ml)),ml}cF();var Dx={left:0,right:0,top:0,bottom:0},Qu=["25%","25%"],Zl="cartesian2d",hF=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=As(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&zn(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&zn(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:Dx,outerBoundsContain:"all",outerBoundsClampWidth:Qu[0],outerBoundsClampHeight:Qu[1],backgroundColor:ae.color.transparent,borderWidth:1,borderColor:ae.color.neutral30},e})(Se),rd=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Zt).models[0]},e.type="cartesian2dAxis",e})(Se);ar(rd,QT);var Ex={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:"auto",onZeroAxisIndex:null,lineStyle:{color:ae.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:ae.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:ae.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[ae.color.backgroundTint,ae.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:ae.color.neutral00,borderColor:ae.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},vF=be({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Ex),Zp=be({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:ae.color.axisMinorSplitLine,width:1}}},Ex),dF=be({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Zp),pF=Te({logBase:10},Zp);const gF={category:vF,value:Zp,time:dF,log:pF};var mF=null;function Yf(){return mF}function f_(t,e,r,n){R(YT,function(i,a){var o=be(be({},gF[a],!0),n,!0),s=(function(l){q(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=ts(this),h=v?As(f):{},d=c.getTheme();be(f,d.get(a+"Axis")),be(f,this.getDefaultOption()),f.type=c_(f),v&&zn(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Zv.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){var c=Yf();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",c_)}function c_(t){return t.type||(t.data?"category":"value")}var yF=(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 oe(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ze(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})(),Kl=["x","y"];function h_(t){return(t.type==="interval"||t.type==="time")&&!Iu(t)}var _F=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Zl,r.dimensions=Kl,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!h_(r)||!h_(n))){var i=Gu(r,null),a=Gu(n,null),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=Hn([],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 le(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 bt(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 bt(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 le(a,o,s,l)},e})(yF),SF=(function(t){q(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})(dx),bF="expandAxisBreak",Rn=Math.PI,wF=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],TF=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ui=we(),Rx=we(),Mx=(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 xF(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=Kp(t.axisName)&&Ga(t.nameLocation);R(n,function(d){var p=Hr(d);if(!(!p||p.label.ignore)){o.push(p);var m=a.transGroup;l&&(m.transform?Hn(_o,m.transform):Gi(_o),p.transform&&Di(_o,_o,p.transform),le.copy(Sl,p.localRect),Sl.applyTransform(_o),s?s.union(Sl):le.copy(s=new le(0,0,0,0),Sl))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.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 le(v,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var _o=Jt(),Sl=new le(0,0,0,0),Px=function(t,e,r,n,i,a){if(Ga(t.nameLocation)){var o=a.stOccupiedRect;o&&Ix(V5({},o,a.transGroup.transform),n,i)}else Lx(a.labelInfoList,a.dirVec,n,i)};function Ix(t,e,r){var n=new he;jp(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&G5(e,n)}function Lx(t,e,r,n){for(var i=he.dot(n,e)>=0,a=0,o=t.length;a0?"top":"bottom",a="center"):jo(i-Rn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"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})(),CF=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],AF={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&&(bt(f,f,u),bt(c,c,u));var h=G({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&Iu(n.axis.scale))Yf().buildAxisBreakLine(n,i,a,d);else{var p=new an(G({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));Jo(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var m=n.get(["axisLine","symbol"]);if(m!=null){var g=n.get(["axisLine","symbolSize"]);te(m)&&(m=[m,m]),(te(g)||Re(g))&&(g=[g,g]);var y=tT(n.get(["axisLine","symbolOffset"])||0,g),_=g[0],S=g[1];R([{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(b,w){if(m[w]!=="none"&&m[w]!=null){var T=zi(m[w],-_/2,-S/2,_,S,h.stroke,!0),C=b.r+b.offset,x=v?c:f;T.attr({rotation:b.rotate,x:x[0]+C*Math.cos(t.rotation),y:x[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var l=d_(e,i,s);l&&v_(t,e,r,n,i,a,o,Sr.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var l=d_(e,i,s);l&&v_(t,e,r,n,i,a,o,Sr.determine);var u=MF(t,i,a,n);RF(t,e.labelLayoutList,u),PF(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(Kp(u)){var f=t.nameLocation,c=t.nameDirection,v=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,m=new he(0,0),g=new he(0,0);f==="start"?(m.x=d[0]-p*h,g.x=-p):f==="end"?(m.x=d[1]+p*h,g.x=p):(m.x=(d[0]+d[1])/2,m.y=t.labelOffset+c*h,g.y=c);var y=Jt();g.transform(hf(y,y,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Rn/180);var S,b;Ga(f)?S=On.innerTextLayout(t.rotation,_!=null?_:t.rotation,c):(S=DF(t.rotation,f,_||0,d),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=v.getFont(),T=n.get("nameTruncate",!0)||{},C=T.ellipsis,x=Wo(t.raw.nameTruncateMaxWidth,T.maxWidth,b),A=s.nameMarginLevel||0,D=new Ke({x:m.x,y:m.y,rotation:S.rotation,silent:On.isLabelSilent(n),style:on(v,{text:u,font:w,overflow:"truncate",width:x,ellipsis:C,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Pf({el:D,componentModel:n,itemName:u}),D.__fullText=u,D.anid="name",n.get("triggerEvent")){var P=On.makeAxisEventDataBase(n);P.targetType="axisName",P.name=u,me(D).eventData=P}a.add(D),D.updateTransform(),e.nameEl=D;var M=l.nameLayout=Hr({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Ga(f)?wF[A]:TF[A]});if(l.nameLocation=f,i.add(D),D.decomposeTransform(),t.shouldNameMoveOverlap&&M){var I=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,M,g,I)}}}};function v_(t,e,r,n,i,a,o,s){kx(e)||IF(t,e,i,s,n,o);var l=e.labelLayoutList;LF(t,n,l,a),NF(n,t.rotation,l);var u=t.optionHideOverlap;EF(n,l,u),u&&Tx(ze(l,function(f){return f&&!f.label.ignore})),xF(t,r,n,l)}function DF(t,e,r,n){var i=zd(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return jo(i-Rn/2)?(o=l?"bottom":"top",a="center"):jo(i-Rn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iRn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function EF(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(DB(n))return;function a(u,f,c){var v=Hr(e[f]),h=Hr(e[c]),d=n.scale;if(!(!v||!h)){if(u==null){if(!r&&i)return;var p=Ui(v.label).labelInfo.tick;if(Yp(d)&&p.notNice||Vr(d)&&p.offInterval){ma(v.label);return}}if(u===!1||v.suggestIgnore){ma(v.label);return}if(h.suggestIgnore){ma(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];v=Jv({marginForce:g},v),h=Jv({marginForce:g},h)}jp(v,h,null,{touchThreshold:m})&&ma(u?h.label:v.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function RF(t,e,r){t.showMinorTicks||R(e,function(n){if(n&&n.label.ignore)for(var i=0;i=T[1])return!0})):S[1]?(x=T[1],I(function(){if(U(),M=_e(P-A*d,D),k(),C<=T[0])return!0})):I(function(){M=_e(ms(T[0]/A)*A,D),P=_e(rn(T[1]/A)*A,D);var J=Br((P-M)/A);if(J<=d){var j=d-J,z=void 0,re=i.incl0||a;if(re&&T[0]===0)z=[0,j];else if(re&&T[1]===0)z=[j,0];else{var se=rn(j/2);z=j%2===0?[se,se]:C+x=T[1])return!0}})}ZT(r,S,w,[C,x],b,{interval:A,intervalCount:d,intervalPrecision:D,niceExtent:[M,P]})}var p_=[[3,1],[0,2]],UF=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Kl,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;R(this._axesList,function(o){VB(o,FB);var s=o.scale;Vr(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=Pe(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Yy(f)}R(l,function(c){GF(c,c.__alignTo)?Yy(c):HF(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};R(n.x,function(o){g_(n,"y",o,a)}),R(n.y,function(o){g_(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=Ff(e,r),a=this._rect=sn(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Nx(o,a),!n){var u=YF(a,s,o,l,r),f=void 0;if(l)f=S_(a.clone(),"axisLabel",null,a,o,u,i);else{var c=$F(e,a,i),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=S_(v,h,d,a,o,u,i))}Bx(a,o,Sr.determine,null,f,i),R(this._coordsList,function(p){p.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]}ie(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i=0;i--){var a=t[+e[i]];FT(a.scale)&&jT(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&R(n,function(o){o.__alignTo=r})}function GF(t,e){return Iu(t.scale)||Iu(e.scale)||e.scale.getTicks().length<2}function WF(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 Nx(t,e){R(t.x,function(r){return __(r,e.x,e.width)}),R(t.y,function(r){return __(r,e.y,e.height)})}function __(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),WF(t,e)}function S_(t,e,r,n,i,a,o){Bx(n,i,Sr.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=iS(s,function(v){return v>0})==null;return Ru(n,s,!0,!0,r),Nx(i,n),l;function u(v){R(i[xn[v]],function(h){if(ss(h.model)){var d=a.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var m=0;m0&&!ka(h)&&h>1e-4&&(v/=h),v}}function YF(t,e,r,n,i){var a=new Mx(XF);return R(r,function(o){return R(o,function(s){if(ss(s.model)){var l=!n;s.axisBuilder=FF(t,e,s.model,i,a,l)}})}),a}function Bx(t,e,r,n,i,a){var o=r===Sr.determine;R(e,function(u){return R(u,function(f){ss(f.model)&&(zF(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[xn[1-u]]=t[za[u]]<=a.refContainer[za[u]]*.5?0:1-u===1?2:1}R(e,function(u,f){return R(u,function(c){ss(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function $F(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=sn(t.get("outerBounds",!0)||Dx,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||ge(["all","axisLabel"],a)<0?o="all":o=a;var s=[pv(ne(t.get("outerBoundsClampWidth",!0),Qu[0]),e.width),pv(ne(t.get("outerBoundsClampHeight",!0),Qu[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var XF=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";Px(t,e,r,n,i,a),Ga(t.nameLocation)||R(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Lx(s.labelInfoList,s.dirVec,n,i)})};function qF(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return jF(r,t,e),r.seriesInvolved&&KF(r,t),r}function jF(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];R(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ls(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(R(s.getAxes(),Ue(p,!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)&&R(d.baseAxes,Ue(p,h?"cross":!0,v)),h&&R(d.otherAxes,Ue(p,"cross",!1))}function p(m,g,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!m&&!id(_))){g==null&&(g=_.get("triggerTooltip")),_=m?ZF(y,c,i,e,m,g):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),T=ls(y.model),C=g||b||y.type==="category",x=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:w,involveSeries:C,snap:b,useHandle:id(_),seriesModels:[],linkGroup:null};u[T]=x,t.seriesInvolved=t.seriesInvolved||C;var A=QF(a,y);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[T]=x,D.mapper=a[A].mapper,x.linkGroup=D}}}})}function ZF(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};R(s,function(v){l[v]=de(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!=null?f:!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&Te(u,c.textStyle)}}return t.model.getModel("axisPointer",new Le(l,r,n))}function KF(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||R(t.coordSysAxesInfo[ls(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 QF(t,e){for(var r=e.model,n=e.dim,i=0;i=0||t===e}function JF(t){var e=Qp(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=id(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=Qp(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=mi(e).pointerEl=new KL[a.type](T_(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=mi(e).labelEl=new Ke(T_(r.label));e.add(a),C_(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=mi(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=mi(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),C_(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=Mf(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){gS(u.event)},onmousedown:Dh(this._onHandleDragMove,this,0,0),drift:Dh(this._onHandleDragMove,this),ondragend:Dh(this._onHandleDragEnd,this)}),n.add(i)),A_(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");K(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Yw(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){x_(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Eh(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(Eh(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Eh(i)),mi(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),zv(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 x_(t,e,r,n){Ux(mi(r).lastProp,n)||(mi(r).lastProp=n,e?Lt(r,n,t):(r.stopAnimation(),r.attr(n)))}function Ux(t,e){if(ie(t)&&ie(e)){var r=!0;return R(e,function(n,i){r=r&&Ux(t[i],n)}),!!r}else return t===e}function C_(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Eh(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function A_(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 uz(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 fz(t,e,r,n,i){var a=r.get("value"),o=Vx(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Cs(s.get("padding")||0),u=s.getFont(),f=BS(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 p=i.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),cz(c,v,h,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:on(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function cz(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 Vx(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:Yu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};R(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),te(o)?a=o.replace("{value}",a):fe(o)&&(a=o(s))}return a}function Gx(t,e,r){var n=Jt();return hf(n,n,r.rotation),uu(n,n,r.position),np([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function hz(t,e,r,n,i,a){var o=On.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),fz(e,n,i,a,{position:Gx(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function vz(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function dz(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function pz(t,e,r){return Wf(t,{fromStat:{sers:oe(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function gz(t,e,r){return[Ee(It(e[0],e[1]),t-r/2),It(t+r/2,Ee(e[0],e[1]))]}var mz=(function(t){q(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=s.getGlobalExtent(),c=D_(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=uz(a),d=yz[u](s,v,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=Ju(l.getRect(),i);hz(n,r,p,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=Ju(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Gx(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=D_(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=It(l[1],c[f]),c[f]=Ee(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})(lz);function D_(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var yz={line:function(t,e,r,n){var i=vz([e,n[0]],[e,n[1]],E_(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=pz(t,i,a),s=n[1]-n[0],l=gz(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:dz([u,n[0]],[f-u,s],E_(t))}}};function E_(t){return t.dim==="x"?0:1}var _z=(function(t){q(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:ae.color.border,width:1,type:"dashed"},shadowStyle:{color:ae.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ae.color.neutral00,padding:[5,7,5,7],backgroundColor:ae.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:ae.color.accent40,throttle:40}},e})(Se),Jr=we(),Sz=R;function Wx(t,e,r){if(!ve.node){var n=e.getZr();Jr(n).records||(Jr(n).records={}),bz(n,e);var i=Jr(n).records[t]||(Jr(n).records[t]={});i.handler=r}}function bz(t,e){if(Jr(t).initialized)return;Jr(t).initialized=!0,r("click",Ue(Rh,"click")),r("mousemove",Ue(Rh,"mousemove")),r("mousewheel",Ue(Rh,"mousewheel")),r("globalout",Tz);function r(n,i){t.on(n,function(a){var o=xz(e);Sz(Jr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),wz(o.pendings,e)})}}function wz(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 Tz(t,e,r){t.handler("leave",null,r)}function Rh(t,e,r,n){e.handler(t,r,n)}function xz(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 od(t,e){if(!ve.node){var r=e.getZr(),n=(Jr(r).records||{})[t];n&&(Jr(r).records[t]=null)}}var Cz=(function(t){q(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|mousewheel";Wx("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){od("axisPointer",n)},e.prototype.dispose=function(r,n){od("axisPointer",n)},e.type="axisPointer",e})(Ct);function Yx(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Bi(a,t);if(o==null||o<0||K(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),p=[];p[h]=a.get(d,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(oe(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var R_=we();function Az(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Ae(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Ql(i)&&(i=Yx({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Ql(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Ql(i),v={},h={},d={list:[],map:{}},p={showPointer:Ue(Ez,h),showTooltip:Ue(Rz,d)};R(s.coordSysMap,function(g,y){var _=l||g.containPoint(i);R(s.coordSysAxesInfo[y],function(S,b){var w=S.axis,T=Lz(u,S);if(!c&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&M_(S,C,p,!1,v)}})});var m={};return R(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&R(_.axesInfo,function(S,b){var w=h[b];if(S!==g&&w){var T=w.value;_.mapper&&(T=g.axis.scale.parse(_.mapper(T,P_(S),P_(g)))),m[g.key]=T}})}),R(m,function(g,y){M_(f[y],g,p,!0,v)}),Mz(h,f,v),Pz(d,i,t,o),Iz(f,o,r),v}}function M_(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=Dz(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&G(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function Dz(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return R(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(Fr(c)){var d=t-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,i=c,a.length=0),R(v,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function Ez(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function Rz(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=ls(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 Mz(t,e,r){var n=r.axesInfo=[];R(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 Pz(t,e,r,n){if(Ql(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 Iz(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=R_(n)[i]||{},o=R_(n)[i]={};R(t,function(f,c){var v=f.axisPointerModel.option;v.status==="show"&&f.triggerEmphasis&&R(v.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}R(a,function(f,c){!o[c]&&l.push(u(f))}),R(o,function(f,c){!a[c]&&s.push(u(f))}),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 Lz(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 P_(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 Ql(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function $x(t){Fx.registerAxisPointerClass("CartesianAxisPointer",mz),t.registerComponentModel(_z),t.registerComponentView(Cz),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!K(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=qF(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Az)}function IH(t){zr(sz),zr($x)}var Oz=typeof Float32Array!==bs?Float32Array:void 0;function wa(t){return kz({ctor:Oz},t).arr}function kz(t,e){var r=t.arr,n=t.ctor;if(e>gv&&(e=gv),!r||t.typed&&r.length-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;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function Yz(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?",":"")+(ve.transformSupported?""+Jp+i:",left"+i+",top"+i)),Uz+":"+a}function I_(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ve.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ve.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Jp+":"+o+";":[["top",0],["left",0],[jx,o]]}function $z(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=ne(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),R(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function Xz(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=Vw(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+h),e&&a>0&&i.push(Yz(a,r,n)),o&&i.push("background-color:"+o),R(["width","color","radius"],function(d){var p="border-"+d,m=_p(p),g=t.get(m);g!=null&&i.push(p+":"+g+(d==="color"?"":"px"))}),i.push($z(c)),v!=null&&i.push("padding:"+Cs(v).join("px ")+"px"),i.join(";")+";"}function L_(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&BR(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 qz=(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,ve.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&&(te(a)?document.querySelector(a):Oa(a)?a:fe(a)&&a(e.getDom()));L_(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();Gt(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=Hz(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=Vz+Xz(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+I_(a[0],a[1],!0)+("border-color:"+Fi(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(te(a)&&n.get("trigger")==="item"&&!Xx(n)&&(s=Wz(n,i,a)),te(e))o.innerHTML=e+s;else if(e){o.innerHTML="",K(e)||(e=[e]);for(var l=0;l=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(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),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||ve.node||!i.getDom())){var o=N_(a,i);this._ticket="";var s=a.dataByCoordSys,l=t3(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=Zz;f.x=a.x,f.y=a.y,f.update(),me(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=Yx(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,this._cbParamsList=null,a.from!==this.uid&&this._hide(N_(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=So([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=me(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Ro(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(me(f).dataIndex!=null?l=f:me(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._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Ae(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=So([n.tooltipOption],a),l=this._renderMode,u=[],f=ns("section",{blocks:[],noHeader:!0}),c=[],v=new ih;R(r,function(y){R(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,w=S.axis,T=w.scale.parse(b);if(!(!S||b==null)){var C=Vx(b,w,i,_.seriesDataIndices,_.valueLabelOpt),x=ns("section",{header:C,noHeader:!dr(C),sortBlocks:!0,blocks:[]});f.blocks.push(x),R(_.seriesDataIndices,function(A){var D=i.getSeriesByIndex(A.seriesIndex),P=A.dataIndexInside,M=D.getDataParams(P);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Yu(S.axis,{value:T}),M.axisValueLabel=C,M.marker=v.makeTooltipMarker("item",Fi(M.color),l);var I=Y0(D.formatTooltip(P,!0,null)),k=I.frag;if(k){var O=So([D],a).get("valueFormatter");x.blocks.push(O?G({valueFormatter:O},k):k)}I.text&&c.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),p=K0(f,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var m=l==="richText"?` `:"
",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=me(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,p=So([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new ih;g.marker=y.makeTooltipMarker("item",Fi(g.color),h);var _=Y0(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),w=_.frag,T=w?K0(b?G({valueFormatter:b},w):w,y,h,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,g,C,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=me(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(te(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=de(l),l.content=yt(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=So(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),m=Math.random()+"",g=new ih;this._showOrMove(d,function(){var y=de(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,m,r.offsetX,r.offsetY,r.position,n,g)}),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)),p=d.color;if(v)if(te(v)){var m=r.ecModel.get("useUTC"),g=K(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=v,y&&(h=xs(g.axisValue,h,m)),h=Sp(h,i,!0)}else if(fe(v)){var _=Ae(function(S,b){S===this._ticket&&(c.setContent(b,f,r,p,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,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||K(n))return{color:a||o};if(!K(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),fe(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),K(n))i=He(n[0],u),a=He(n[1],f);else if(ie(n)){var p=n;p.width=c[0],p.height=c[1];var m=sn(p,{width:u,height:f});i=m.x,a=m.y,v=null,h=null}else if(te(n)&&l){var g=e3(n,d,c,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=Qz(i,a,o,u,f,v?null:20,h?null:20);i=g[0],a=g[1]}if(v&&(i-=B_(v)?c[0]/2:v==="right"?c[0]:0),h&&(a-=B_(h)?c[1]/2:h==="bottom"?c[1]:0),Xx(r)){var g=Jz(i,a,o,u,f);i=g[0],a=g[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&&R(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&R(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===m.length,o&&R(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&R(v.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ve.node||!n.getDom()||(zv(this,"_updatePosition"),this._tooltipContent.dispose(),od("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Ct);function So(t,e,r){var n=e.ecModel,i;r?(i=new Le(r,n,n),i=new Le(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Le&&(o=o.get("tooltip",!0)),te(o)&&(o={formatter:o}),o&&(i=new Le(o,i,n)))}return i}function N_(t,e){return t.dispatchAction||Ae(e.dispatchAction,e)}function Qz(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 Jz(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 e3(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 B_(t){return t==="center"||t==="middle"}function t3(t,e,r){var n=Vd(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=_s(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=me(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function LH(t){zr($x),t.registerComponentModel(Fz),t.registerComponentView(Kz),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},at),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},at)}var r3=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:ae.size.m,backgroundColor:ae.color.transparent,borderColor:ae.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:ae.color.primary},subtextStyle:{fontSize:12,color:ae.color.quaternary}},e})(Se),n3=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ne(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ke({style:on(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Ke({style:on(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),m=r.get("triggerEvent",!0);f.silent=!d&&!m,h.silent=!p&&!m,d&&f.on("click",function(){A0(d,"_"+r.get("target"))}),p&&h.on("click",function(){A0(p,"_"+r.get("subtarget"))}),me(f).eventData=me(h).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(h);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Ff(r,i),S=sn(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),g=a.getBoundingRect();var w=S.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var C=new Ge({shape:{x:g.x-w[3],y:g.y-w[0],width:g.width+w[1]+w[3],height:g.height+w[0]+w[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(C)}},e.type="title",e})(Ct);function OH(t){t.registerComponentModel(r3),t.registerComponentView(n3)}function Kx(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Ha(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(e[a])}return n.join(" ")}var eg=(function(t){q(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=zi(r,-1,-1,2,2,null,s);l.attr({z2:ne(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=a3,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(){xu(this.childAt(0))},e.prototype.downplay=function(){Cu(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):Lt(h,d,s,n),Hb(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,er(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,p,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,v=a.focus,h=a.blurScope,p=a.labelStatesModels,m=a.hoverScale,g=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"),p=Of(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=tT(r.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var w=r.getItemVisual(n,"style"),T=w.fill;if(s instanceof un){var C=s.style;s.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(G({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var x=r.getItemVisual(n,"liftZ"),A=this._z2;x!=null?A==null&&(this._z2=s.z2,s.z2+=x):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;Lf(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:P,inheritColor:T,defaultOpacity:w.opacity});function P(k){return D?r.getName(k):Kx(r,k)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var I=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),Du(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=me(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Eu(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Eu(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return Yk(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(rt);function a3(t,e){this.parent.drift(t,e)}function bl(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function F_(t){return t!=null&&!ie(t)&&(t={isIgnore:t}),t||{}}function z_(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:Of(e),cursorStyle:e.get("cursor")}}function H_(t,e,r,n,i,a,o){var s=new t(e,r,n,i);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var o3=(function(){function t(e){this.group=new rt,this._SymbolCtor=e||eg}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=F_(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=z_(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);bl(e,v,c,r)&&H_(o,e,c,l,u,v,n)}).update(function(c,v){var h=a.getItemGraphicEl(v),d=f(c);if(!bl(e,d,c,r)){n.remove(h);return}var p=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==p)n.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?h.attr(g):Lt(h,g,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(e){var r=this._data;if(r)for(var n=this,i=r.getStore(),a=0,o=i.count();a=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:ae.size.m,align:"auto",backgroundColor:ae.color.transparent,borderColor:ae.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:ae.color.disabled,inactiveBorderColor:ae.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:ae.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:ae.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:ae.color.tertiary,borderWidth:1,borderColor:ae.color.border},emphasis:{selectorLabel:{show:!0,color:ae.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Se),da=Ue,ld=R,wl=rt,Qx=(function(t){q(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 wl),this.group.add(this._selectorGroup=new wl),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=Ff(r,i).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=sn(c,f,v),d=this.layoutInner(r,o,h,a,l,u),p=sn(Te({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Bz(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=ce(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),ld(n.getData(),function(d,p){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===` `)){var y=new wl;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(g)[0];if(!f.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),T=S.getVisual("style"),C=this._createItem(_,g,p,d,n,r,b,T,w,c,a);C.on("click",da(U_,g,null,a,h)).on("mouseover",da(ud,_.name,null,a,h)).on("mouseout",da(fd,_.name,null,a,h)),i.ssr&&C.eachChild(function(x){var A=me(x);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),v&&C.eachChild(function(x){m.packEventData(x,n,_,p,g)}),f.set(g,!0)}else i.eachRawSeries(function(x){var A=this;if(!f.get(g)&&x.legendVisualProvider){var D=x.legendVisualProvider;if(!D.containName(g))return;var P=D.indexOfName(g),M=D.getItemVisual(P,"style"),I=D.getItemVisual(P,"legendIcon"),k=Ft(M.fill);k&&k[3]===0&&(k[3]=.2,M=G(G({},M),{fill:Un(k,"rgba")}));var O=this._createItem(x,g,p,d,n,r,{},M,I,c,a);O.on("click",da(U_,null,g,a,h)).on("mouseover",da(ud,null,g,a,h)).on("mouseout",da(fd,null,g,a,h)),i.ssr&&O.eachChild(function(N){var U=me(N);U.seriesIndex=x.seriesIndex,U.dataIndex=p,U.ssrType="legend"}),v&&O.eachChild(function(N){A.packEventData(N,n,x,p,g)}),f.set(g,!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};me(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();ld(r,function(u){var f=u.type,c=new Ke({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"]);Lf(c,{normal:v,emphasis:h},{defaultText:u.title}),Au(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=u3(f,a,l,u,h,m,v),b=new wl,w=a.getModel("textStyle");if(fe(r.getLegendIcon)&&(!_||_==="inherit"))b.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;b.add(f3({itemWidth:d,itemHeight:p,icon:f,iconRotate:T,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,x=s,A=o.get("formatter"),D=n;te(A)&&A?D=A.replace("{name}",n!=null?n:""):fe(A)&&(D=A(n));var P=m?w.getTextColor():a.get("inactiveColor");b.add(new Ke({style:on(w,{text:D,x:C,y:p/2,fill:P,align:x,verticalAlign:"middle"},{inheritColor:P})}));var M=new Ge({shape:b.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&Pf({el:M,componentModel:o,itemName:n,itemTooltipOption:I.option}),b.add(M),b.eachChild(function(k){k.silent=!0}),M.silent=!c,this.getContentGroup().add(b),Au(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();zo(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){zo("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,m=p===0?"width":"height",g=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=f[m]+d:c[p]+=v[m]+d,h[1-p]+=f[g]/2-v[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+d+v[m],_[g]=Math.max(f[g],v[g]),_[y]=Math.min(0,v[y]+h[1-p]),_}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})(Ct);function u3(t,e,r,n,i,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),ld(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}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:Wv(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"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?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 f3(t){var e=t.icon||"roundRect",r=zi(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=ae.color.neutral00,r.style.lineWidth=2),r}function U_(t,e,r,n){fd(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t!=null?t:e}),ud(t,e,r,n)}function ud(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function fd(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function bo(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),V_(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){R(i,function(l,u){s[l?"select":"unSelect"](u)}),V_(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function V_(t,e){var r=e||{};return R(t.getData(),function(n){var i=n.get("name");if(!(i===` `||i==="")){var a=t.isSelected(i);Mt(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function c3(t){t.registerAction("legendToggleSelect","legendselectchanged",Ue(bo,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ue(bo,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ue(bo,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ue(bo,"select")),t.registerAction("legendUnSelect","legendunselected",Ue(bo,"unSelect"))}var h3=Wd(v3);function v3(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;ni[o],m=[-h.x,-h.y];n||(m[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=ne(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(m),c.setPosition(g),v.setPosition(y);var b={x:0,y:0};if(b[o]=p?i[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=b[s],c.setClipPath(new Ge({shape:w})),c.__rectSize=w[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Lt(f,{x:T.contentPosition[0],y:T.contentPosition[1]},p?r:null),this._updatePageInfoView(r,T),b},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;R(["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",te(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=Mh[o],l=Ph[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 p=S(c);d.contentPosition[o]=-p.s;for(var m=u+1,g=p,y=p,_=null;m<=v;++m)_=S(f[m]),(!_&&y.e>g.s+a||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=p,y=p,_=null;m>=-1;--m)_=S(f[m]),(!_||!b(y,_.s))&&g.i=T&&w.s<=T+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!=null?n:a},e.type="legend.scroll",e})(Qx);function g3(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 m3(t){zr(Jx),t.registerComponentModel(d3),t.registerComponentView(p3),g3(t)}function kH(t){zr(Jx),zr(m3)}var y3=(function(t){q(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){return LT(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new rt,i=zi("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=zi(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=ae.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(nr);function eC(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=_3(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=oe(t.dimensions,function(d){return e.mapDimension(d)}),v=!1,h=e.getCalculationInfo("stackResultDimension");return Ua(e,c[0])&&(v=!0,c[0]=h),Ua(e,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function _3(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:Re(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function tC(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function tr(t,e){return!isFinite(t)||!isFinite(e)}function S3(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function b3(t,e,r,n,i,a,o,s){for(var l=S3(t,e),u=[],f=[],c=[],v=[],h=[],d=[],p=[],m=eC(i,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_=i||p<0)break;if(tr(g,y)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,v=y;else{var _=g-u,S=y-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var b=p+a,w=e[b*2],T=e[b*2+1];w===g&&T===y&&m=n||tr(w,T))h=g,d=y;else{A=w-u,D=T-f;var I=g-u,k=w-g,O=y-f,N=T-y,U=void 0,W=void 0;if(s==="x"){U=Math.abs(I),W=Math.abs(k);var X=A>0?1:-1;h=g-X*U*o,d=y,P=g+X*W*o,M=y}else if(s==="y"){U=Math.abs(O),W=Math.abs(N);var Q=D>0?1:-1;h=g,d=y-Q*U*o,P=g,M=y+Q*W*o}else U=Math.sqrt(I*I+O*O),W=Math.sqrt(k*k+N*N),x=W/(W+U),h=g-A*o*(1-x),d=y-D*o*(1-x),P=g+A*o*x,M=y+D*o*x,P=gn(P,mn(w,g)),M=gn(M,mn(T,y)),P=mn(P,gn(w,g)),M=mn(M,gn(T,y)),A=P-g,D=M-y,h=g-A*U/W,d=y-D*U/W,h=gn(h,mn(u,g)),d=gn(d,mn(f,y)),h=mn(h,gn(u,g)),d=mn(d,gn(f,y)),A=g-h,D=y-d,P=g+A*W/U,M=y+D*W/U}t.bezierCurveTo(c,v,h,d,g,y),c=P,v=M}else t.lineTo(g,y)}u=g,f=y,p+=a}return m}var rC=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),w3=(function(t){q(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:ae.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new rC},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&tr(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],p=a[c++],m=a[c++],g=a[c++],y=a[c++];var b=u?hu(s,h,p,g,r,f):hu(l,d,m,y,r,f);if(b>0)for(var w=0;w=0){var S=u?qe(l,d,m,y,T):qe(s,h,p,g,T);return u?[r,S]:[S,r]}}s=g,l=y;break}}},e})(Me),T3=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(rC),x3=(function(t){q(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new T3},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&tr(i[s*2-2],i[s*2-1]);s--);for(;oe){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function R3(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=oe(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=E3(u,i==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,m=v[h-1].coord+d,g=m-p;if(g<.001)return"transparent";R(v,function(_){_.offset=(_.coord-p)/g}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var y=new Qd(0,0,0,0,v,!0);return y[i]=p,y[i+"2"]=m,y}}}function M3(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&P3(a,e))){var o=e.mapDimension(a.dim),s={};return R(a.getViewLabels(),function(l){l.tick.offInterval||(s[Es(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function P3(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function I3(t){for(var e=t.length/2;e>0&&tr(t[e*2-2],t[e*2-1]);e--);return e-1}function j_(t,e){return[t[e*2],t[e*2+1]]}function L3(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function nC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var W=d.getState("emphasis").style;W.lineWidth=+d.style.lineWidth+1}me(d).seriesIndex=r.seriesIndex,Du(d,O,N,U);var X=q_(r.get("smooth")),Q=r.get("smoothMonotone");if(d.setShape({smooth:X,smoothMonotone:Q,connectNulls:T}),p){var J=s.getCalculationInfo("stackedOnSeries"),j=0;p.useStyle(Te(u.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),J&&(j=q_(J.get("smooth"))),p.setShape({smooth:X,stackedOnSmooth:j,smoothMonotone:Q,connectNulls:T}),Av(p,r,"areaStyle"),me(p).seriesIndex=r.seriesIndex,Du(p,O,N,U)}var z=this._changePolyState;s.eachItemGraphicEl(function(B){B&&(B.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_;var re=r.get("triggerEvent"),se=r.get("triggerLineEvent"),L=se===!0||re===!0||re==="line",Y=se===!0||re===!0||re==="area";this.packEventData(r,d,L),p&&this.packEventData(r,p,Y)},e.prototype.packEventData=function(r,n,i){me(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Bi(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(tr(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=r.get("zlevel")||0,h=r.get("z")||0;u=new eg(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Pt.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Bi(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Pt.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;n0(this._polyline,r),n&&n0(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new w3({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new x3({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");fe(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=fe(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var p=h;if(p){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(m);a?(g=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,y=S.r,_=b[0])}else{var w=i;a?(g=w.x,y=w.x+w.width,_=h.x):(g=w.y+w.height,y=w.y,_=h.y)}var T=y===g?0:(_-g)/(y-g);l&&(T=1-T);var C=fe(c)?c(d):f*T+v,x=p.getSymbolPath(),A=x.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),x.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(nC(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ke({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=I3(l);f>=0&&(Lf(s,Of(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?i3(o,h):Kx(o,c)},enableTextSetter:!0},O3(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),v=i.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=n.shape,S=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(y?-1:1),w=(g?0:-p)*(y?-1:1),T=g?"x":"y",C=L3(c,S,T),x=C.range,A=x[1]-x[0],D=void 0;if(A>=1){if(A>1&&!h){var P=j_(c,x[0]);u.attr({x:P[0]+b,y:P[1]+w}),o&&(D=v.getRawValue(x[0]))}else{var P=f.getPointOn(S,T);P&&u.attr({x:P[0]+b,y:P[1]+w});var M=v.getRawValue(x[0]),I=v.getRawValue(x[1]);o&&(D=QS(i,d,M,I,C.t))}a.lastFrameIndex=x[0]}else{var k=r===1||a.lastFrameIndex>0?x[0]:0,P=j_(c,k);o&&(D=v.getRawValue(k)),u.attr({x:P[0]+b,y:P[1]+w})}if(o){var O=kf(u);typeof O.setLabelText=="function"&&O.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,v=b3(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,m=v.stackedOnNext;if(o&&(d=yn(v.stackedOnCurrent,v.current,i,o,l),h=yn(v.current,null,i,o,l),m=yn(v.stackedOnNext,v.next,i,o,l),p=yn(v.next,null,i,o,l)),X_(h,p)>3e3||f&&X_(d,m)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=v.current,u.shape.points=h;var g={shape:{points:p}};v.current!==h&&(g.shape.__points=v.next),u.stopAnimation(),Lt(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Lt(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=r.getItemGraphicEl(_[S].idx1);w&&y.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;Ce&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r10&&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;te(a)?d=B3[a]:fe(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,d,F3))}}}}}function NH(t){t.registerChartView(k3),t.registerSeriesModel(y3),t.registerLayout(N3("line")),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,z3("line"))}function Tl(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;K(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:oe(n,function(a){return ki(a,i)})}}function H3(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=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})(),kn="pie",V3=we(),iC=(function(t){q(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){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new U3(Ae(this.getData,this),Ae(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Nz(this,{coordDimensions:["value"],encodeDefaulter:Ue($2,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=V3(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=GS(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){mv(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."+kn,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})(nr);I2({fullType:iC.type,getCoord2:function(t){return t.getShallow("center")}});var G3=Math.PI/180;function Z_(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(p){for(var m=p.rB,g=m*m,y=0;yr?g:m,b=Math.abs(_.label.y-r);if(b>=S.maxY){var w=_.label.x-e-_.len2*i,T=n+_.len,C=Math.abs(w)t.unconstrainedWidth?null:v:null;n.setStyle("width",h)}oC(a,n)}}}function oC(t,e){K_.rect=t,bx(K_,e,Y3)}var Y3={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},K_={};function Lh(t){return t.position==="center"}function $3(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*G3,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),C=T.shape,x=T.getTextContent(),A=T.getTextGuideLine(),D=e.getItemModel(w),P=D.getModel("label"),M=P.get("position")||D.get(["emphasis","label","position"]),I=P.get("distanceToLabelLine"),k=P.get("alignTo"),O=He(P.get("edgeDistance"),u),N=P.get("bleedMargin");N==null&&(N=Math.min(u,v)>200?10:2);var U=D.getModel("labelLine"),W=U.get("length");W=He(W,u);var X=U.get("length2");if(X=He(X,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":J>0?"left":"right"}var ye=Math.PI,Qe=0,ke=P.get("rotate");if(Re(ke))Qe=ke*(ye/180);else if(M==="center")Qe=0;else if(ke==="radial"||ke===!0){var Ot=J<0?-Q+ye:-Q;Qe=Ot}else if(ke==="tangential"||ke==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var ot=Math.atan2(J,j);ot<0&&(ot=ye*2+ot);var lr=j>0;lr&&ke!=="tangential-noflip"&&(ot=ye+ot),Qe=ot-ye}if(a=!!Qe,x.x=z,x.y=re,x.rotation=Qe,x.setStyle({verticalAlign:"middle"}),Y){x.setStyle({align:L});var Gn=x.states.select;Gn&&(Gn.x+=x.x,Gn.y+=x.y)}else{var qi=new le(0,0,0,0);oC(qi,x),r.push({label:x,labelLine:A,position:M,len:W,len2:X,minTurnAngle:U.get("minTurnAngle"),maxSurfaceAngle:U.get("maxSurfaceAngle"),surfaceNormal:new he(J,j),linePoints:se,textAlign:L,labelDistance:I,labelAlignTo:k,edgeDistance:O,bleedMargin:N,rect:qi,unconstrainedWidth:qi.width,labelStyleWidth:x.style.width})}T.setTextConfig({inside:Y})}}),!a&&t.get("avoidLabelOverlap")&&W3(r,n,i,l,u,v,f,c);for(var p=0;pU?(X=I+T*U/2,Q=X):(X=I+x,Q=W-x),n.setItemLayout(N,{angle:U,startAngle:X,endAngle:Q,clockwise:_,cx:o,cy:s,r0:u,r:S?_u(O,w,[u,l]):l}),I=W}),P0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=a.r0}},e.type=kn,e})(Pt);function K3(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!(Re(o)&&!isNaN(o)&&o<0)})}}}function BH(t){t.registerChartView(Z3),t.registerSeriesModel(iC),Rk(kn,t.registerAction),t.registerLayout(X3),t.registerProcessor(H3(kn)),t.registerProcessor(K3(kn))}var Jl={exports:{}},Q3=Jl.exports,J_;function J3(){return J_||(J_=1,(function(t){(function(e){const r="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${r}\\.${r}\\.${r}\\.${r}$`,"i"),threeOctet:new RegExp(`^${r}\\.${r}\\.${r}$`,"i"),twoOctet:new RegExp(`^${r}\\.${r}$`,"i"),longValue:new RegExp(`^${r}$`,"i")},i=new RegExp("^0[0-7]+$","i"),a=new RegExp("^0x[a-f0-9]+$","i"),o="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",l={zoneIndex:new RegExp(o,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${o})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${r}\\.${r}\\.${r}\\.${r}(${o})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${r}\\.${r}\\.${r}\\.${r}(${o})?$`,"i")};function u(d,p){if(d.indexOf("::")!==d.lastIndexOf("::"))return null;let m=0,g=-1,y=(d.match(l.zoneIndex)||[])[0],_,S;for(y&&(y=y.substring(1),d=d.replace(/%.+$/,""));(g=d.indexOf(":",g+1))>=0;)m++;if(d.substr(0,2)==="::"&&m--,d.substr(-2,2)==="::"&&m--,m>=p)return null;for(S=p-m,_=":";S--;)_+="0:";return d=d.replace("::",_),d[0]===":"&&(d=d.slice(1)),d[d.length-1]===":"&&(d=d.slice(0,-1)),p=(function(){const b=d.split(":"),w=[];for(let T=0;T4?NaN:parseInt(b[T],16));return w})(),{parts:p,zoneId:y}}function f(d,p,m,g){if(d.length!==p.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let y=0,_;for(;g>0;){if(_=m-g,_<0&&(_=0),d[y]>>_!==p[y]>>_)return!1;g-=m,y+=1}return!0}function c(d){if(a.test(d))return parseInt(d,16);if(d[0]==="0"&&!isNaN(parseInt(d[1],10))){if(i.test(d))return parseInt(d,8);throw new Error(`ipaddr: cannot parse ${d} as octal`)}return parseInt(d,10)}function v(d,p){for(;d.length=0;y-=1)if(_=this.octets[y],_ in g){if(S=g[_],m&&S!==0)return null;S!==8&&(m=!0),p+=S}else return null;return 32-p},d.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){return this.octets.slice(0)},d.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},d.prototype.toNormalizedString=function(){return this.toString()},d.prototype.toString=function(){return this.octets.join(".")},d})(),h.IPv4.broadcastAddressFromCIDR=function(d){try{const p=this.parseCIDR(d),m=p[0].toByteArray(),g=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[];let _=0;for(;_<4;)y.push(parseInt(m[_],10)|parseInt(g[_],10)^255),_++;return new this(y)}catch(p){throw new Error("ipaddr: the address does not have IPv4 CIDR format",{cause:p})}},h.IPv4.isIPv4=function(d){return this.parser(d)!==null},h.IPv4.isValid=function(d){try{return new this(this.parser(d)),!0}catch(p){return!1}},h.IPv4.isValidCIDR=function(d){try{return this.parseCIDR(d),!0}catch(p){return!1}},h.IPv4.isValidFourPartDecimal=function(d){return!!(h.IPv4.isValid(d)&&d.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.isValidCIDRFourPartDecimal=function(d){const p=d.match(/^(.+)\/(\d+)$/);return!h.IPv4.isValidCIDR(d)||!p?!1:h.IPv4.isValidFourPartDecimal(p[1])},h.IPv4.networkAddressFromCIDR=function(d){let p,m,g,y,_;try{for(p=this.parseCIDR(d),g=p[0].toByteArray(),_=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[],m=0;m<4;)y.push(parseInt(g[m],10)&parseInt(_[m],10)),m++;return new this(y)}catch(S){throw new Error("ipaddr: the address does not have IPv4 CIDR format",{cause:S})}},h.IPv4.parse=function(d){const p=this.parser(d);if(p===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(p)},h.IPv4.parseCIDR=function(d){let p;if(p=d.match(/^(.+)\/(\d+)$/)){const m=parseInt(p[2]);if(m>=0&&m<=32){const g=[this.parse(p[1]),m];return Object.defineProperty(g,"toString",{value:function(){return this.join("/")}}),g}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(d){let p,m,g;if(p=d.match(n.fourOctet))return(function(){const y=p.slice(1,6),_=[];for(let S=0;S4294967295||g<0)throw new Error("ipaddr: address outside defined range");return(function(){const y=[];let _;for(_=0;_<=24;_+=8)y.push(g>>_&255);return y})().reverse()}else return(p=d.match(n.twoOctet))?(function(){const y=p.slice(1,4),_=[];if(g=c(y[1]),g>16777215||g<0)throw new Error("ipaddr: address outside defined range");return _.push(c(y[0])),_.push(g>>16&255),_.push(g>>8&255),_.push(g&255),_})():(p=d.match(n.threeOctet))?(function(){const y=p.slice(1,5),_=[];if(g=c(y[2]),g>65535||g<0)throw new Error("ipaddr: address outside defined range");return _.push(c(y[0])),_.push(c(y[1])),_.push(g>>8&255),_.push(g&255),_})():null},h.IPv4.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),Number.isNaN(d)||d<0||d>32)throw new Error("ipaddr: invalid IPv4 prefix length");const p=[0,0,0,0];let m=0;const g=Math.floor(d/8);for(;m=0;S-=1)if(y=this.parts[S],y in g){if(_=g[y],m&&_!==0)return null;_!==16&&(m=!0),p+=_}else return null;return 128-p},d.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){let p;const m=[],g=this.parts;for(let y=0;y>8),m.push(p&255);return m},d.prototype.toFixedLengthString=function(){const p=(function(){const g=[];for(let y=0;y>8,m&255,g>>8,g&255])},d.prototype.toNormalizedString=function(){const p=(function(){const g=[];for(let y=0;yb&&(b=T,_=w.index,S=w[0].length)}return S<0?y+m:`${y.substring(0,_)}::${y.substring(_+S)}${m}`},d.prototype.toString=function(){return this.toRFC5952String()},d})(),h.IPv6.broadcastAddressFromCIDR=function(d){try{const p=this.parseCIDR(d),m=p[0].toByteArray(),g=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[];let _=0;for(;_<16;)y.push(parseInt(m[_],10)|parseInt(g[_],10)^255),_++;return new this(y)}catch(p){throw new Error("ipaddr: the address does not have IPv6 CIDR format",{cause:p})}},h.IPv6.isIPv6=function(d){return this.parser(d)!==null},h.IPv6.isValid=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{const p=this.parser(d);return new this(p.parts,p.zoneId),!0}catch(p){return!1}},h.IPv6.isValidCIDR=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{return this.parseCIDR(d),!0}catch(p){return!1}},h.IPv6.networkAddressFromCIDR=function(d){let p,m,g,y,_;try{for(p=this.parseCIDR(d),g=p[0].toByteArray(),_=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[],m=0;m<16;)y.push(parseInt(g[m],10)&parseInt(_[m],10)),m++;return new this(y)}catch(S){throw new Error("ipaddr: the address does not have IPv6 CIDR format",{cause:S})}},h.IPv6.parse=function(d){const p=this.parser(d);if(p===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(p.parts,p.zoneId)},h.IPv6.parseCIDR=function(d){let p,m,g;if((m=d.match(/^(.+)\/(\d+)$/))&&(p=parseInt(m[2]),p>=0&&p<=128))return g=[this.parse(m[1]),p],Object.defineProperty(g,"toString",{value:function(){return this.join("/")}}),g;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(d){let p,m,g,y,_,S;if(g=d.match(l.deprecatedTransitional))return this.parser(`::ffff:${g[1]}`);if(l.native.test(d))return u(d,8);if((g=d.match(l.transitional))&&(S=g[6]||"",p=g[1],g[1].endsWith("::")||(p=p.slice(0,-1)),p=u(p+S,6),p&&p.parts)){for(_=[parseInt(g[2]),parseInt(g[3]),parseInt(g[4]),parseInt(g[5])],m=0;m<_.length;m++)if(y=_[m],!(0<=y&&y<=255))return null;return p.parts.push(_[0]<<8|_[1]),p.parts.push(_[2]<<8|_[3]),{parts:p.parts,zoneId:p.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),Number.isNaN(d)||d<0||d>128)throw new Error("ipaddr: invalid IPv6 prefix length");const p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let m=0;const g=Math.floor(d/8);for(;m