mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 17:37:24 +08:00
71 lines
978 KiB
JavaScript
71 lines
978 KiB
JavaScript
import{z as zhLocale,e as enLocale,h as hasAuth,s as system$1,p as permission,f as frame$1,t as tabs,r as router,u as useI18n}from"./index-cd980a4b.js";import{_ as _export_sfc}from"./_plugin-vue_export-helper-c27b6911.js";import{s as setupStore}from"./index-5e5694dd.js";import{g as getServerConfig}from"./index-4b83e049.js";import{r as routerArrays}from"./multiTags-d9cd5aad.js";import{e as emitter}from"./mitt-7f99bbc0.js";import{I as IconifyIconOffline,a as IconifyIconOnline,F as FontIcon}from"./index-02c38b19.js";import{c as commonjsGlobal}from"./_commonjsHelpers-042e6b4d.js";import"./index-8c77f9cd.js";import"./hot-cf4dcfeb.js";import"./index-5ecdd2b7.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const h of l)if(h.type==="childList")for(const v of h.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&s(v)}).observe(document,{childList:!0,subtree:!0});function r(l){const h={};return l.integrity&&(h.integrity=l.integrity),l.referrerpolicy&&(h.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?h.credentials="include":l.crossorigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function s(l){if(l.ep)return;l.ep=!0;const h=r(l);fetch(l.href,h)}})();const _sfc_main=Vue.defineComponent({name:"app",components:{[ElementPlus.ElConfigProvider.name]:ElementPlus.ElConfigProvider},computed:{currentLocale(){var o;return((o=this.$storage.locale)==null?void 0:o.locale)==="zh"?zhLocale:enLocale}}});function _sfc_render(o,t,r,s,l,h){const v=Vue.resolveComponent("router-view"),S=Vue.resolveComponent("el-config-provider");return Vue.openBlock(),Vue.createBlock(S,{locale:o.currentLocale},{default:Vue.withCtx(()=>[Vue.createVNode(v)]),_:1},8,["locale"])}const App=_export_sfc(_sfc_main,[["render",_sfc_render]]);var _a$1;const isClient=typeof window<"u",toString=Object.prototype.toString,isNumber$1=o=>typeof o=="number",isString$2=o=>typeof o=="string",isObject$4=o=>toString.call(o)==="[object Object]",noop$1=()=>{};isClient&&((_a$1=window==null?void 0:window.navigator)!=null&&_a$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);VueDemi.isVue3,VueDemi.isVue3,VueDemi.isVue3;function tryOnScopeDispose(o){return VueDemi.getCurrentScope()?(VueDemi.onScopeDispose(o),!0):!1}function tryOnUnmounted(o){VueDemi.getCurrentInstance()&&VueDemi.onUnmounted(o)}function unrefElement(o){var t;const r=VueDemi.unref(o);return(t=r==null?void 0:r.$el)!=null?t:r}const defaultWindow=isClient?window:void 0;function useEventListener(...o){let t,r,s,l;if(isString$2(o[0])?([r,s,l]=o,t=defaultWindow):[t,r,s,l]=o,!t)return noop$1;let h=noop$1;const v=VueDemi.watch(()=>unrefElement(t),x=>{h(),x&&(x.addEventListener(r,s,l),h=()=>{x.removeEventListener(r,s,l),h=noop$1})},{immediate:!0,flush:"post"}),S=()=>{v(),h()};return tryOnScopeDispose(S),S}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};_global[globalKey];function useIntersectionObserver(o,t,r={}){const{root:s,rootMargin:l="0px",threshold:h=.1,window:v=defaultWindow}=r,S=v&&"IntersectionObserver"in v;let x=noop$1;const T=S?VueDemi.watch(()=>({el:unrefElement(o),root:unrefElement(s)}),({el:M,root:w})=>{if(x(),!M)return;const D=new IntersectionObserver(t,{root:w,rootMargin:l,threshold:h});D.observe(M),x=()=>{D.disconnect(),x=noop$1}},{immediate:!0,flush:"post"}):noop$1,C=()=>{x(),T()};return tryOnScopeDispose(C),{isSupported:S,stop:C}}var SwipeDirection;(function(o){o.UP="UP",o.RIGHT="RIGHT",o.DOWN="DOWN",o.LEFT="LEFT",o.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));const defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<"u"?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<"u"?o=>window.requestAnimationFrame(o):o=>setTimeout(()=>o(getCurrentTime()),defaultTimestep);function createRenderStep(o){let t=[],r=[],s=0,l=!1,h=!1;const v=new WeakSet,S={schedule:(x,T=!1,C=!1)=>{const M=C&&l,w=M?t:r;return T&&v.add(x),w.indexOf(x)===-1&&(w.push(x),M&&l&&(s=t.length)),x},cancel:x=>{const T=r.indexOf(x);T!==-1&&r.splice(T,1),v.delete(x)},process:x=>{if(l){h=!0;return}if(l=!0,[t,r]=[r,t],r.length=0,s=t.length,s)for(let T=0;T<s;T++){const C=t[T];C(x),v.has(C)&&(S.schedule(C),o())}l=!1,h&&(h=!1,S.process(x))}};return S}const maxElapsed=40;let useDefaultElapsed=!0,runNextFrame=!1,isProcessing=!1;const frame={delta:0,timestamp:0},stepsOrder=["read","update","preRender","render","postRender"],steps=stepsOrder.reduce((o,t)=>(o[t]=createRenderStep(()=>runNextFrame=!0),o),{}),sync=stepsOrder.reduce((o,t)=>{const r=steps[t];return o[t]=(s,l=!1,h=!1)=>(runNextFrame||startLoop(),r.schedule(s,l,h)),o},{}),cancelSync=stepsOrder.reduce((o,t)=>(o[t]=steps[t].cancel,o),{});stepsOrder.reduce((o,t)=>(o[t]=()=>steps[t].process(frame),o),{});const processStep=o=>steps[o].process(frame),processFrame=o=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min(o-frame.timestamp,maxElapsed),1),frame.timestamp=o,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;function __rest(o,t){var r={};for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&t.indexOf(s)<0&&(r[s]=o[s]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(o);l<s.length;l++)t.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(o,s[l])&&(r[s[l]]=o[s[l]]);return r}var warning=function(){},invariant=function(){};const clamp$2=(o,t,r)=>Math.min(Math.max(r,o),t),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration:o=800,bounce:t=.25,velocity:r=0,mass:s=1}){let l,h;warning(o<=maxDuration*1e3);let v=1-t;v=clamp$2(minDamping,maxDamping,v),o=clamp$2(minDuration,maxDuration,o/1e3),v<1?(l=T=>{const C=T*v,M=C*o,w=C-r,D=calcAngularFreq(T,v),O=Math.exp(-M);return safeMin-w/D*O},h=T=>{const M=T*v*o,w=M*r+r,D=Math.pow(v,2)*Math.pow(T,2)*o,O=Math.exp(-M),N=calcAngularFreq(Math.pow(T,2),v);return(-l(T)+safeMin>0?-1:1)*((w-D)*O)/N}):(l=T=>{const C=Math.exp(-T*o),M=(T-r)*o+1;return-safeMin+C*M},h=T=>{const C=Math.exp(-T*o),M=(r-T)*(o*o);return C*M});const S=5/o,x=approximateRoot(l,h,S);if(o=o*1e3,isNaN(x))return{stiffness:100,damping:10,duration:o};{const T=Math.pow(x,2)*s;return{stiffness:T,damping:v*2*Math.sqrt(s*T),duration:o}}}const rootIterations=12;function approximateRoot(o,t,r){let s=r;for(let l=1;l<rootIterations;l++)s=s-o(s)/t(s);return s}function calcAngularFreq(o,t){return o*Math.sqrt(1-t*t)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(o,t){return t.some(r=>o[r]!==void 0)}function getSpringOptions(o){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},o);if(!isSpringType(o,physicsKeys)&&isSpringType(o,durationKeys)){const r=findSpring(o);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function spring(o){var{from:t=0,to:r=1,restSpeed:s=2,restDelta:l}=o,h=__rest(o,["from","to","restSpeed","restDelta"]);const v={done:!1,value:t};let{stiffness:S,damping:x,mass:T,velocity:C,duration:M,isResolvedFromDuration:w}=getSpringOptions(h),D=zero,O=zero;function N(){const k=C?-(C/1e3):0,F=r-t,B=x/(2*Math.sqrt(S*T)),V=Math.sqrt(S/T)/1e3;if(l===void 0&&(l=Math.min(Math.abs(r-t)/100,.4)),B<1){const z=calcAngularFreq(V,B);D=U=>{const Y=Math.exp(-B*V*U);return r-Y*((k+B*V*F)/z*Math.sin(z*U)+F*Math.cos(z*U))},O=U=>{const Y=Math.exp(-B*V*U);return B*V*Y*(Math.sin(z*U)*(k+B*V*F)/z+F*Math.cos(z*U))-Y*(Math.cos(z*U)*(k+B*V*F)-z*F*Math.sin(z*U))}}else if(B===1)D=z=>r-Math.exp(-V*z)*(F+(k+V*F)*z);else{const z=V*Math.sqrt(B*B-1);D=U=>{const Y=Math.exp(-B*V*U),W=Math.min(z*U,300);return r-Y*((k+B*V*F)*Math.sinh(W)+z*F*Math.cosh(W))/z}}}return N(),{next:k=>{const F=D(k);if(w)v.done=k>=M;else{const B=O(k)*1e3,V=Math.abs(B)<=s,z=Math.abs(r-F)<=l;v.done=V&&z}return v.value=v.done?r:F,v},flipTarget:()=>{C=-C,[t,r]=[r,t],N()}}}spring.needsInterpolation=(o,t)=>typeof o=="string"||typeof t=="string";const zero=o=>0,progress=(o,t,r)=>{const s=t-o;return s===0?1:(r-o)/s},mix=(o,t,r)=>-r*o+r*t+o,clamp$1=(o,t)=>r=>Math.max(Math.min(r,t),o),sanitize=o=>o%1?Number(o.toFixed(5)):o,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString$1(o){return typeof o=="string"}const number$1={test:o=>typeof o=="number",parse:parseFloat,transform:o=>o},alpha=Object.assign(Object.assign({},number$1),{transform:clamp$1(0,1)}),scale$3=Object.assign(Object.assign({},number$1),{default:1}),createUnitType=o=>({test:t=>isString$1(t)&&t.endsWith(o)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${o}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),progressPercentage=Object.assign(Object.assign({},percent),{parse:o=>percent.parse(o)/100,transform:o=>percent.transform(o*100)}),isColorString=(o,t)=>r=>Boolean(isString$1(r)&&singleColorRegex.test(r)&&r.startsWith(o)||t&&Object.prototype.hasOwnProperty.call(r,t)),splitColor=(o,t,r)=>s=>{if(!isString$1(s))return s;const[l,h,v,S]=s.match(floatRegex);return{[o]:parseFloat(l),[t]:parseFloat(h),[r]:parseFloat(v),alpha:S!==void 0?parseFloat(S):1}},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:o,saturation:t,lightness:r,alpha:s=1})=>"hsla("+Math.round(o)+", "+percent.transform(sanitize(t))+", "+percent.transform(sanitize(r))+", "+sanitize(alpha.transform(s))+")"},clampRgbUnit=clamp$1(0,255),rgbUnit=Object.assign(Object.assign({},number$1),{transform:o=>Math.round(clampRgbUnit(o))}),rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:o,green:t,blue:r,alpha:s=1})=>"rgba("+rgbUnit.transform(o)+", "+rgbUnit.transform(t)+", "+rgbUnit.transform(r)+", "+sanitize(alpha.transform(s))+")"};function parseHex(o){let t="",r="",s="",l="";return o.length>5?(t=o.substr(1,2),r=o.substr(3,2),s=o.substr(5,2),l=o.substr(7,2)):(t=o.substr(1,1),r=o.substr(2,1),s=o.substr(3,1),l=o.substr(4,1),t+=t,r+=r,s+=s,l+=l),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(s,16),alpha:l?parseInt(l,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},color$1={test:o=>rgba.test(o)||hex.test(o)||hsla.test(o),parse:o=>rgba.test(o)?rgba.parse(o):hsla.test(o)?hsla.parse(o):hex.parse(o),transform:o=>isString$1(o)?o:o.hasOwnProperty("red")?rgba.transform(o):hsla.transform(o)},colorToken="${c}",numberToken="${n}";function test(o){var t,r,s,l;return isNaN(o)&&isString$1(o)&&((r=(t=o.match(floatRegex))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((l=(s=o.match(colorRegex))===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}function analyse$1(o){typeof o=="number"&&(o=`${o}`);const t=[];let r=0;const s=o.match(colorRegex);s&&(r=s.length,o=o.replace(colorRegex,colorToken),t.push(...s.map(color$1.parse)));const l=o.match(floatRegex);return l&&(o=o.replace(floatRegex,numberToken),t.push(...l.map(number$1.parse))),{values:t,numColors:r,tokenised:o}}function parse$2(o){return analyse$1(o).values}function createTransformer(o){const{values:t,numColors:r,tokenised:s}=analyse$1(o),l=t.length;return h=>{let v=s;for(let S=0;S<l;S++)v=v.replace(S<r?colorToken:numberToken,S<r?color$1.transform(h[S]):sanitize(h[S]));return v}}const convertNumbersToZero=o=>typeof o=="number"?0:o;function getAnimatableNone$1(o){const t=parse$2(o);return createTransformer(o)(t.map(convertNumbersToZero))}const complex={test,parse:parse$2,createTransformer,getAnimatableNone:getAnimatableNone$1},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(o){let[t,r]=o.slice(0,-1).split("(");if(t==="drop-shadow")return o;const[s]=r.match(floatRegex)||[];if(!s)return o;const l=r.replace(s,"");let h=maxDefaults.has(t)?1:0;return s!==r&&(h*=100),t+"("+h+l+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter$1=Object.assign(Object.assign({},complex),{getAnimatableNone:o=>{const t=o.match(functionRegex);return t?t.map(applyDefaultFilter).join(" "):o}});function hueToRgb(o,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?o+(t-o)*6*r:r<1/2?t:r<2/3?o+(t-o)*(2/3-r)*6:o}function hslaToRgba({hue:o,saturation:t,lightness:r,alpha:s}){o/=360,t/=100,r/=100;let l=0,h=0,v=0;if(!t)l=h=v=r;else{const S=r<.5?r*(1+t):r+t-r*t,x=2*r-S;l=hueToRgb(x,S,o+1/3),h=hueToRgb(x,S,o),v=hueToRgb(x,S,o-1/3)}return{red:Math.round(l*255),green:Math.round(h*255),blue:Math.round(v*255),alpha:s}}const mixLinearColor=(o,t,r)=>{const s=o*o,l=t*t;return Math.sqrt(Math.max(0,r*(l-s)+s))},colorTypes=[hex,rgba,hsla],getColorType=o=>colorTypes.find(t=>t.test(o)),mixColor=(o,t)=>{let r=getColorType(o),s=getColorType(t),l=r.parse(o),h=s.parse(t);r===hsla&&(l=hslaToRgba(l),r=rgba),s===hsla&&(h=hslaToRgba(h),s=rgba);const v=Object.assign({},l);return S=>{for(const x in v)x!=="alpha"&&(v[x]=mixLinearColor(l[x],h[x],S));return v.alpha=mix(l.alpha,h.alpha,S),r.transform(v)}},isNum=o=>typeof o=="number",combineFunctions=(o,t)=>r=>t(o(r)),pipe=(...o)=>o.reduce(combineFunctions);function getMixer(o,t){return isNum(o)?r=>mix(o,t,r):color$1.test(o)?mixColor(o,t):mixComplex(o,t)}const mixArray=(o,t)=>{const r=[...o],s=r.length,l=o.map((h,v)=>getMixer(h,t[v]));return h=>{for(let v=0;v<s;v++)r[v]=l[v](h);return r}},mixObject=(o,t)=>{const r=Object.assign(Object.assign({},o),t),s={};for(const l in r)o[l]!==void 0&&t[l]!==void 0&&(s[l]=getMixer(o[l],t[l]));return l=>{for(const h in s)r[h]=s[h](l);return r}};function analyse(o){const t=complex.parse(o),r=t.length;let s=0,l=0,h=0;for(let v=0;v<r;v++)s||typeof t[v]=="number"?s++:t[v].hue!==void 0?h++:l++;return{parsed:t,numNumbers:s,numRGB:l,numHSL:h}}const mixComplex=(o,t)=>{const r=complex.createTransformer(t),s=analyse(o),l=analyse(t);return s.numHSL===l.numHSL&&s.numRGB===l.numRGB&&s.numNumbers>=l.numNumbers?pipe(mixArray(s.parsed,l.parsed),r):v=>`${v>0?t:o}`},mixNumber=(o,t)=>r=>mix(o,t,r);function detectMixerFactory(o){if(typeof o=="number")return mixNumber;if(typeof o=="string")return color$1.test(o)?mixColor:mixComplex;if(Array.isArray(o))return mixArray;if(typeof o=="object")return mixObject}function createMixers(o,t,r){const s=[],l=r||detectMixerFactory(o[0]),h=o.length-1;for(let v=0;v<h;v++){let S=l(o[v],o[v+1]);if(t){const x=Array.isArray(t)?t[v]:t;S=pipe(x,S)}s.push(S)}return s}function fastInterpolate([o,t],[r]){return s=>r(progress(o,t,s))}function slowInterpolate(o,t){const r=o.length,s=r-1;return l=>{let h=0,v=!1;if(l<=o[0]?v=!0:l>=o[s]&&(h=s-1,v=!0),!v){let x=1;for(;x<r&&!(o[x]>l||x===s);x++);h=x-1}const S=progress(o[h],o[h+1],l);return t[h](S)}}function interpolate(o,t,{clamp:r=!0,ease:s,mixer:l}={}){const h=o.length;invariant(h===t.length),invariant(!s||!Array.isArray(s)||s.length===h-1),o[0]>o[h-1]&&(o=[].concat(o),t=[].concat(t),o.reverse(),t.reverse());const v=createMixers(t,s,l),S=h===2?fastInterpolate(o,v):slowInterpolate(o,v);return r?x=>S(clamp$2(o[0],o[h-1],x)):S}const reverseEasing=o=>t=>1-o(1-t),mirrorEasing=o=>t=>t<=.5?o(2*t)/2:(2-o(2*(1-t)))/2,createExpoIn=o=>t=>Math.pow(t,o),createBackIn=o=>t=>t*t*((o+1)*t-o),createAnticipate=o=>{const t=createBackIn(o);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=o=>o,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=o=>1-Math.sin(Math.acos(o)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backIn=createBackIn(DEFAULT_OVERSHOOT_STRENGTH),backOut=reverseEasing(backIn),backInOut=mirrorEasing(backIn),anticipate=createAnticipate(DEFAULT_OVERSHOOT_STRENGTH),ca=4356/361,cb=35442/1805,cc=16061/1805,bounceOut=o=>{if(o===1||o===0)return o;const t=o*o;return o<BOUNCE_FIRST_THRESHOLD?7.5625*t:o<BOUNCE_SECOND_THRESHOLD?9.075*t-9.9*o+3.4:o<BOUNCE_THIRD_THRESHOLD?ca*t-cb*o+cc:10.8*o*o-20.52*o+10.72},bounceIn=reverseEasing(bounceOut),bounceInOut=o=>o<.5?.5*(1-bounceOut(1-o*2)):.5*bounceOut(o*2-1)+.5;function defaultEasing(o,t){return o.map(()=>t||easeInOut).splice(0,o.length-1)}function defaultOffset(o){const t=o.length;return o.map((r,s)=>s!==0?s/(t-1):0)}function convertOffsetToTimes(o,t){return o.map(r=>r*t)}function keyframes$1({from:o=0,to:t=1,ease:r,offset:s,duration:l=300}){const h={done:!1,value:o},v=Array.isArray(t)?t:[o,t],S=convertOffsetToTimes(s&&s.length===v.length?s:defaultOffset(v),l);function x(){return interpolate(S,v,{ease:Array.isArray(r)?r:defaultEasing(v,r)})}let T=x();return{next:C=>(h.value=T(C),h.done=C>=l,h),flipTarget:()=>{v.reverse(),T=x()}}}function decay({velocity:o=0,from:t=0,power:r=.8,timeConstant:s=350,restDelta:l=.5,modifyTarget:h}){const v={done:!1,value:t};let S=r*o;const x=t+S,T=h===void 0?x:h(x);return T!==x&&(S=T-t),{next:C=>{const M=-S*Math.exp(-C/s);return v.done=!(M>l||M<-l),v.value=v.done?T:T+M,v},flipTarget:()=>{}}}const types={keyframes:keyframes$1,spring,decay};function detectAnimationFromOptions(o){if(Array.isArray(o.to))return keyframes$1;if(types[o.type])return types[o.type];const t=new Set(Object.keys(o));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?keyframes$1:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?spring:keyframes$1}function loopElapsed(o,t,r=0){return o-t-r}function reverseElapsed(o,t,r=0,s=!0){return s?loopElapsed(t+-o,t,r):t-(o-t)+r}function hasRepeatDelayElapsed(o,t,r,s){return s?o>=t+r:o<=-r}const framesync=o=>{const t=({delta:r})=>o(r);return{start:()=>sync.update(t,!0),stop:()=>cancelSync.update(t)}};function animate(o){var t,r,{from:s,autoplay:l=!0,driver:h=framesync,elapsed:v=0,repeat:S=0,repeatType:x="loop",repeatDelay:T=0,onPlay:C,onStop:M,onComplete:w,onRepeat:D,onUpdate:O}=o,N=__rest(o,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:k}=N,F,B=0,V=N.duration,z,U=!1,Y=!0,W;const X=detectAnimationFromOptions(N);!((r=(t=X).needsInterpolation)===null||r===void 0)&&r.call(t,s,k)&&(W=interpolate([0,100],[s,k],{clamp:!1}),s=0,k=100);const K=X(Object.assign(Object.assign({},N),{from:s,to:k}));function J(){B++,x==="reverse"?(Y=B%2===0,v=reverseElapsed(v,V,T,Y)):(v=loopElapsed(v,V,T),x==="mirror"&&K.flipTarget()),U=!1,D&&D()}function q(){F.stop(),w&&w()}function ee(ne){if(Y||(ne=-ne),v+=ne,!U){const ae=K.next(Math.max(0,v));z=ae.value,W&&(z=W(z)),U=Y?ae.done:v<=0}O==null||O(z),U&&(B===0&&(V??(V=v)),B<S?hasRepeatDelayElapsed(v,V,T,Y)&&J():q())}function te(){C==null||C(),F=h(ee),F.start()}return l&&te(),{stop:()=>{M==null||M(),F.stop()}}}function velocityPerSecond(o,t){return t?o*(1e3/t):0}function inertia({from:o=0,velocity:t=0,min:r,max:s,power:l=.8,timeConstant:h=750,bounceStiffness:v=500,bounceDamping:S=10,restDelta:x=1,modifyTarget:T,driver:C,onUpdate:M,onComplete:w,onStop:D}){let O;function N(V){return r!==void 0&&V<r||s!==void 0&&V>s}function k(V){return r===void 0?s:s===void 0||Math.abs(r-V)<Math.abs(s-V)?r:s}function F(V){O==null||O.stop(),O=animate(Object.assign(Object.assign({},V),{driver:C,onUpdate:z=>{var U;M==null||M(z),(U=V.onUpdate)===null||U===void 0||U.call(V,z)},onComplete:w,onStop:D}))}function B(V){F(Object.assign({type:"spring",stiffness:v,damping:S,restDelta:x},V))}if(N(o))B({from:o,velocity:t,to:k(o)});else{let V=l*t+o;typeof T<"u"&&(V=T(V));const z=k(V),U=z===r?-1:1;let Y,W;const X=K=>{Y=W,W=K,t=velocityPerSecond(K-Y,getFrameData().delta),(U===1&&K>z||U===-1&&K<z)&&B({from:K,to:z,velocity:t})};F({type:"decay",from:o,velocity:t,timeConstant:h,power:l,restDelta:x,modifyTarget:T,onUpdate:N(V)?X:void 0})}return{stop:()=>O==null?void 0:O.stop()}}const a=(o,t)=>1-3*t+3*o,b=(o,t)=>3*t-6*o,c$2=o=>3*o,calcBezier=(o,t,r)=>((a(t,r)*o+b(t,r))*o+c$2(t))*o,getSlope=(o,t,r)=>3*a(t,r)*o*o+2*b(t,r)*o+c$2(t),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide(o,t,r,s,l){let h,v,S=0;do v=t+(r-t)/2,h=calcBezier(v,s,l)-o,h>0?r=v:t=v;while(Math.abs(h)>subdivisionPrecision&&++S<subdivisionMaxIterations);return v}const newtonIterations=8,newtonMinSlope=.001;function newtonRaphsonIterate(o,t,r,s){for(let l=0;l<newtonIterations;++l){const h=getSlope(t,r,s);if(h===0)return t;const v=calcBezier(t,r,s)-o;t-=v/h}return t}const kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1);function cubicBezier(o,t,r,s){if(o===t&&r===s)return linear;const l=new Float32Array(kSplineTableSize);for(let v=0;v<kSplineTableSize;++v)l[v]=calcBezier(v*kSampleStepSize,o,r);function h(v){let S=0,x=1;const T=kSplineTableSize-1;for(;x!==T&&l[x]<=v;++x)S+=kSampleStepSize;--x;const C=(v-l[x])/(l[x+1]-l[x]),M=S+C*kSampleStepSize,w=getSlope(M,o,r);return w>=newtonMinSlope?newtonRaphsonIterate(v,M,o,r):w===0?M:binarySubdivide(v,S,S+kSampleStepSize,o,r)}return v=>v===0||v===1?v:calcBezier(h(v),t,s)}const motionState={};class SubscriptionManager{constructor(){this.subscriptions=new Set}add(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}notify(t,r,s){if(this.subscriptions.size)for(const l of this.subscriptions)l(t,r,s)}clear(){this.subscriptions.clear()}}const isFloat=o=>!isNaN(parseFloat(o));class MotionValue{constructor(t){this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new SubscriptionManager,this.canTrackVelocity=!1,this.updateAndNotify=r=>{this.prev=this.current,this.current=r;const{delta:s,timestamp:l}=getFrameData();this.lastUpdated!==l&&(this.timeDelta=s,this.lastUpdated=l),sync.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>sync.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{this.canTrackVelocity||(this.canTrackVelocity=isFloat(this.current)),r!==this.lastUpdated&&(this.prev=this.current)},this.prev=this.current=t,this.canTrackVelocity=isFloat(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}set(t){this.updateAndNotify(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{const{stop:s}=t(r);this.stopAnimation=s}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function getMotionValue(o){return new MotionValue(o)}const{isArray:isArray$2}=Array;function useMotionValues(){const o=VueDemi.ref({}),t=s=>{const l=h=>{o.value[h]&&(o.value[h].stop(),o.value[h].destroy(),VueDemi.del(o.value,h))};s?isArray$2(s)?s.forEach(l):l(s):Object.keys(o.value).forEach(l)},r=(s,l,h)=>{if(o.value[s])return o.value[s];const v=getMotionValue(l);return v.onChange(S=>{VueDemi.set(h,s,S)}),VueDemi.set(o.value,s,v),v};return tryOnUnmounted(t),{motionValues:o,get:r,stop:t}}const isKeyframesTarget=o=>Array.isArray(o),underDampedSpring=()=>({type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}),criticallyDampedSpring=o=>({type:"spring",stiffness:550,damping:o===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}),overDampedSpring=o=>({type:"spring",stiffness:550,damping:o===0?100:30,restDelta:.01,restSpeed:10}),linearTween=()=>({type:"keyframes",ease:"linear",duration:300}),keyframes=o=>({type:"keyframes",duration:800,values:o}),defaultTransitions={default:overDampedSpring,x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,backgroundColor:linearTween,color:linearTween,opacity:linearTween},getDefaultTransition=(o,t)=>{let r;return isKeyframesTarget(t)?r=keyframes:r=defaultTransitions[o]||defaultTransitions.default,{to:t,...r(t)}},int={...number$1,transform:Math.round},valueTypes={color:color$1,backgroundColor:color$1,outlineColor:color$1,fill:color$1,stroke:color$1,borderColor:color$1,borderTopColor:color$1,borderRightColor:color$1,borderBottomColor:color$1,borderLeftColor:color$1,borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale:scale$3,scaleX:scale$3,scaleY:scale$3,scaleZ:scale$3,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,filter:filter$1,WebkitFilter:filter$1,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},getValueType=o=>valueTypes[o],getValueAsType=(o,t)=>t&&typeof o=="number"&&t.transform?t.transform(o):o;function getAnimatableNone(o,t){let r=getValueType(o);return r!==filter$1&&(r=complex),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut},easingDefinitionToFunction=o=>{if(Array.isArray(o)){const[t,r,s,l]=o;return cubicBezier(t,r,s,l)}else if(typeof o=="string")return easingLookup[o];return o},isEasingArray=o=>Array.isArray(o)&&typeof o[0]!="number",isAnimatable=(o,t)=>o==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&complex.test(t)&&!t.startsWith("url("));function hydrateKeyframes(o){return Array.isArray(o.to)&&o.to[0]===null&&(o.to=[...o.to],o.to[0]=o.from),o}function convertTransitionToAnimationOptions({ease:o,times:t,delay:r,...s}){const l={...s};return t&&(l.offset=t),o&&(l.ease=isEasingArray(o)?o.map(easingDefinitionToFunction):easingDefinitionToFunction(o)),r&&(l.elapsed=-r),l}function getPopmotionAnimationOptions(o,t,r){return Array.isArray(t.to)&&(o.duration||(o.duration=800)),hydrateKeyframes(t),isTransitionDefined(o)||(o={...o,...getDefaultTransition(r,t.to)}),{...t,...convertTransitionToAnimationOptions(o)}}function isTransitionDefined({delay:o,repeat:t,repeatType:r,repeatDelay:s,from:l,...h}){return!!Object.keys(h).length}function getValueTransition(o,t){return o[t]||o.default||o}function getAnimation(o,t,r,s,l){const h=getValueTransition(s,o);let v=h.from===null||h.from===void 0?t.get():h.from;const S=isAnimatable(o,r);v==="none"&&S&&typeof r=="string"&&(v=getAnimatableNone(o,r));const x=isAnimatable(o,v);function T(M){const w={from:v,to:r,velocity:s.velocity?s.velocity:t.getVelocity(),onUpdate:D=>t.set(D)};return h.type==="inertia"||h.type==="decay"?inertia({...w,...h}):animate({...getPopmotionAnimationOptions(h,w,o),onUpdate:D=>{w.onUpdate(D),h.onUpdate&&h.onUpdate(D)},onComplete:()=>{s.onComplete&&s.onComplete(),l&&l(),M&&M()}})}function C(M){return t.set(r),s.onComplete&&s.onComplete(),l&&l(),M&&M(),{stop:()=>{}}}return!x||!S||h.type===!1?C:T}function useMotionTransitions(){const{motionValues:o,stop:t,get:r}=useMotionValues();return{motionValues:o,stop:t,push:(l,h,v,S={},x)=>{const T=v[l],C=r(l,T,v);if(S&&S.immediate){C.set(h);return}const M=getAnimation(l,C,h,S,x);C.start(M)}}}function useMotionControls(o,t={},{motionValues:r,push:s,stop:l}=useMotionTransitions()){const h=VueDemi.unref(t),v=VueDemi.ref(!1),S=VueDemi.watch(r,w=>{v.value=Object.values(w).filter(D=>D.isAnimating()).length>0},{immediate:!0,deep:!0}),x=w=>{if(!h||!h[w])throw new Error(`The variant ${w} does not exist.`);return h[w]},T=w=>(typeof w=="string"&&(w=x(w)),Promise.all(Object.entries(w).map(([D,O])=>{if(D!=="transition")return new Promise(N=>{s(D,O,o,w.transition||getDefaultTransition(D,w[D]),N)})}).filter(Boolean)));return{isAnimating:v,apply:T,set:w=>{const D=isObject$4(w)?w:x(w);Object.entries(D).forEach(([O,N])=>{O!=="transition"&&s(O,N,o,{immediate:!0})})},stopTransitions:()=>{S(),l()},leave:async w=>{let D;if(h&&(h.leave&&(D=h.leave),!h.leave&&h.initial&&(D=h.initial)),!D){w();return}await T(D),w()}}}const isBrowser=typeof window<"u",supportsPointerEvents=()=>isBrowser&&window.onpointerdown===null,supportsTouchEvents=()=>isBrowser&&window.ontouchstart===null,supportsMouseEvents=()=>isBrowser&&window.onmousedown===null;function registerEventListeners({target:o,state:t,variants:r,apply:s}){const l=VueDemi.unref(r),h=[],v=(...O)=>{const N=useEventListener.apply(null,O);return h.push(N),N},S=VueDemi.ref(!1),x=VueDemi.ref(!1),T=VueDemi.ref(!1),C=VueDemi.computed(()=>{let O=[];return l&&(l.hovered&&(O=[...O,...Object.keys(l.hovered)]),l.tapped&&(O=[...O,...Object.keys(l.tapped)]),l.focused&&(O=[...O,...Object.keys(l.focused)])),O}),M=VueDemi.computed(()=>{const O={};Object.assign(O,t.value),S.value&&l.hovered&&Object.assign(O,l.hovered),x.value&&l.tapped&&Object.assign(O,l.tapped),T.value&&l.focused&&Object.assign(O,l.focused);for(const N in O)C.value.includes(N)||delete O[N];return O});l.hovered&&(v(o,"mouseenter",()=>{S.value=!0}),v(o,"mouseleave",()=>{S.value=!1,x.value=!1}),v(o,"mouseout",()=>{S.value=!1,x.value=!1})),l.tapped&&(supportsMouseEvents()&&(v(o,"mousedown",()=>{x.value=!0}),v(o,"mouseup",()=>{x.value=!1})),supportsPointerEvents()&&(v(o,"pointerdown",()=>{x.value=!0}),v(o,"pointerup",()=>{x.value=!1})),supportsTouchEvents()&&(v(o,"touchstart",()=>{x.value=!0}),v(o,"touchend",()=>{x.value=!1}))),l.focused&&(v(o,"focus",()=>{T.value=!0}),v(o,"blur",()=>{T.value=!1}));const w=VueDemi.watch(M,s);return{stop:()=>{h.forEach(O=>O()),w()}}}function registerLifeCycleHooks({set:o,target:t,variants:r,variant:s}){const l=VueDemi.unref(r);return{stop:VueDemi.watch(()=>t,()=>{l&&(l.initial&&o("initial"),l.enter&&(s.value="enter"))},{immediate:!0,flush:"pre"})}}function registerVariantsSync({state:o,apply:t}){return{stop:VueDemi.watch(o,s=>{s&&t(s)},{immediate:!0})}}function registerVisibilityHooks({target:o,variants:t,variant:r}){const s=VueDemi.unref(t);let l=noop$1;if(s&&(s.visible||s.visibleOnce)){const{stop:h}=useIntersectionObserver(o,([{isIntersecting:v}])=>{s.visible?v?r.value="visible":r.value="initial":s.visibleOnce&&(v?r.value!=="visibleOnce"&&(r.value="visibleOnce"):r.value||(r.value="initial"))});l=h}return{stop:l}}function useMotionFeatures(o,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){const r=VueDemi.ref([]);if(t.lifeCycleHooks){const{stop:l}=registerLifeCycleHooks(o);r.value.push(l)}if(t.syncVariants){const{stop:l}=registerVariantsSync(o);r.value.push(l)}if(t.visibilityHooks){const{stop:l}=registerVisibilityHooks(o);r.value.push(l)}if(t.eventListeners){const{stop:l}=registerEventListeners(o);r.value.push(l)}const s=()=>r.value.forEach(l=>l());return tryOnUnmounted(s),{stop:s}}function reactiveStyle(o={}){const t=VueDemi.reactive({...o}),r=VueDemi.ref({});return VueDemi.watch(t,()=>{const s={};for(const[l,h]of Object.entries(t)){const v=getValueType(l),S=getValueAsType(h,v);s[l]=S}r.value=s},{immediate:!0,deep:!0}),{state:t,style:r}}const transformAxes=["","X","Y","Z"],order=["perspective","translate","scale","rotate","skew"],transformProps=["transformPerspective","x","y","z"];order.forEach(o=>{transformAxes.forEach(t=>{const r=o+t;transformProps.push(r)})});const transformPropSet=new Set(transformProps);function isTransformProp(o){return transformPropSet.has(o)}const transformOriginProps=new Set(["originX","originY","originZ"]);function isTransformOriginProp(o){return transformOriginProps.has(o)}function splitValues(o){const t={},r={};return Object.entries(o).forEach(([s,l])=>{isTransformProp(s)||isTransformOriginProp(s)?t[s]=l:r[s]=l}),{transform:t,style:r}}function useElementStyle(o,t){let r,s;const{state:l,style:h}=reactiveStyle(),v=VueDemi.watch(()=>unrefElement(o),T=>{if(T){s=T;for(const C of Object.keys(valueTypes))T.style[C]===null||T.style[C]===""||isTransformProp(C)||isTransformOriginProp(C)||VueDemi.set(l,C,T.style[C]);r&&Object.entries(r).forEach(([C,M])=>VueDemi.set(T.style,C,M)),t&&t(l)}},{immediate:!0}),S=VueDemi.watch(h,T=>{if(!s){r=T;return}for(const C in T)VueDemi.set(s.style,C,T[C])},{immediate:!0});return{style:l,stop:()=>{s=void 0,r=void 0,v(),S()}}}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform(o={},t=!0){const r=VueDemi.reactive({...o}),s=VueDemi.ref("");return VueDemi.watch(r,l=>{let h="",v=!1;if(t&&(l.x||l.y||l.z)){const S=[l.x||0,l.y||0,l.z||0].map(px.transform).join(",");h+=`translate3d(${S}) `,v=!0}for(const[S,x]of Object.entries(l)){if(t&&(S==="x"||S==="y"||S==="z"))continue;const T=getValueType(S),C=getValueAsType(x,T);h+=`${translateAlias[S]||S}(${C}) `}t&&!v&&(h+="translateZ(0px) "),s.value=h.trim()},{immediate:!0,deep:!0}),{state:r,transform:s}}function parseTransform(o){const t=o.trim().split(/\) |\)/);if(t.length===1)return{};const r=s=>s.endsWith("px")||s.endsWith("deg")?parseFloat(s):isNaN(Number(s))?Number(s):s;return t.reduce((s,l)=>{if(!l)return s;const[h,v]=l.split("("),x=v.split(",").map(C=>r(C.endsWith(")")?C.replace(")",""):C.trim())),T=x.length===1?x[0]:x;return{...s,[h]:T}},{})}function stateFromTransform(o,t){Object.entries(parseTransform(t)).forEach(([r,s])=>{s=parseFloat(s);const l=["x","y","z"];if(r==="translate3d"){if(s===0){l.forEach(h=>{VueDemi.set(o,h,0)});return}s.forEach((h,v)=>{VueDemi.set(o,l[v],h)});return}if(r==="translateX"){VueDemi.set(o,"x",s);return}if(r==="translateY"){VueDemi.set(o,"y",s);return}if(r==="translateZ"){VueDemi.set(o,"z",s);return}VueDemi.set(o,r,s)})}function useElementTransform(o,t){let r,s;const{state:l,transform:h}=reactiveTransform(),v=VueDemi.watch(()=>unrefElement(o),T=>{T&&(s=T,T.style.transform&&stateFromTransform(l,T.style.transform),r&&(T.style.transform=r),t&&t(l))},{immediate:!0}),S=VueDemi.watch(h,T=>{if(!s){r=T;return}s.style.transform=T},{immediate:!0});return{transform:l,stop:()=>{r=void 0,s=void 0,v(),S()}}}function useMotionProperties(o,t){const r=VueDemi.reactive({}),s=M=>{Object.entries(M).forEach(([w,D])=>{VueDemi.set(r,w,D)})},{style:l,stop:h}=useElementStyle(o,s),{transform:v,stop:S}=useElementTransform(o,s),x=VueDemi.watch(r,M=>{Object.entries(M).forEach(([w,D])=>{const O=isTransformProp(w)?v:l;O[w]&&O[w]===D||VueDemi.set(O,w,D)})},{immediate:!0,deep:!0}),T=VueDemi.watch(()=>unrefElement(o),M=>{M&&t&&s(t)},{immediate:!0});return{motionProperties:r,style:l,transform:v,stop:()=>{h(),S(),x(),T()}}}function useMotionVariants(o={}){const t=VueDemi.unref(o),r=VueDemi.ref();return{state:VueDemi.computed(()=>{if(r.value)return t[r.value]}),variant:r}}function useMotion(o,t={},r){const{motionProperties:s,stop:l}=useMotionProperties(o),{variant:h,state:v}=useMotionVariants(t),S=useMotionControls(s,t),x={target:o,variant:h,variants:t,state:v,motionProperties:s,...S,stop:(C=!1)=>{}},{stop:T}=useMotionFeatures(x,r);return x.stop=(C=!1)=>{const M=()=>{x.stopTransitions(),l(),T()};if(!C&&t.value&&t.value.leave){const w=VueDemi.watch(x.isAnimating,D=>{D||(w(),M())})}else M()},tryOnUnmounted(()=>x.stop()),x}const directivePropsKeys=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"],resolveVariants=(o,t)=>{const r=o.props?o.props:o.data&&o.data.attrs?o.data.attrs:{};r&&(r.variants&&isObject$4(r.variants)&&(t.value={...t.value,...r.variants}),directivePropsKeys.forEach(s=>{if(s==="delay"){if(r&&r[s]&&isNumber$1(r[s])){const l=r[s];t&&t.value&&(t.value.enter&&(t.value.enter.transition||(t.value.enter.transition={}),t.value.enter.transition={...t.value.enter.transition,delay:l}),t.value.visible&&(t.value.visible.transition||(t.value.visible.transition={}),t.value.visible.transition={...t.value.visible.transition,delay:l}),t.value.visibleOnce&&(t.value.visibleOnce.transition||(t.value.visibleOnce.transition={}),t.value.visibleOnce.transition={...t.value.visibleOnce.transition,delay:l}))}return}s==="visible-once"&&(s="visibleOnce"),r&&r[s]&&isObject$4(r[s])&&(t.value[s]=r[s])}))},directive=o=>{const t=(s,l,h)=>{const v=l.value&&typeof l.value=="string"?l.value:h.key;v&&motionState[v]&&motionState[v].stop();const S=VueDemi.ref(o||{});typeof l.value=="object"&&(S.value=l.value),resolveVariants(h,S);const x=useMotion(s,S);s.motionInstance=x,v&&VueDemi.set(motionState,v,x)},r=s=>{s.motionInstance&&s.motionInstance.stop()};return{created:t,unmounted:r,bind:t,unbind:r,getSSRProps(s,l){const{initial:h}=s.value||l.props||{};if(!h||Object.keys(h).length===0)return;const{transform:v,style:S}=splitValues(h),{transform:x}=reactiveTransform(v),{style:T}=reactiveStyle(S);return x.value&&(T.value.transform=x.value),{style:T.value}}}},fade={initial:{opacity:0},enter:{opacity:1}},fadeVisible={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce={initial:{opacity:0},visibleOnce:{opacity:1}},pop$1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets={__proto__:null,fade,fadeVisible,fadeVisibleOnce,pop:pop$1,popVisible,popVisibleOnce,rollBottom,rollLeft,rollRight,rollTop,rollVisibleBottom,rollVisibleLeft,rollVisibleRight,rollVisibleTop,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleRight,slideVisibleTop,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop};function slugify(o){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",r="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",s=new RegExp(t.split("").join("|"),"g");return o.toString().replace(/[A-Z]/g,l=>`-${l}`).toLowerCase().replace(/\s+/g,"-").replace(s,l=>r.charAt(t.indexOf(l))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const MotionPlugin={install(o,t){if(o.directive("motion",directive()),!t||t&&!t.excludePresets)for(const r in presets){const s=presets[r];o.directive(`motion-${slugify(r)}`,directive(s))}if(t&&t.directives)for(const r in t.directives){const s=t.directives[r];!s.initial&&__DEV__&&console.warn(`Your directive v-motion-${r} is missing initial variant!`),o.directive(`motion-${r}`,directive(s))}}};/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var extendStatics=function(o,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l])},extendStatics(o,t)};function __extends(o,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(o,t);function r(){this.constructor=o}o.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Browser=function(){function o(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return o}(),Env=function(){function o(){this.browser=new Browser,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return o}(),env=new Env;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(env.wxa=!0,env.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?env.worker=!0:typeof navigator>"u"?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect(o,t){var r=t.browser,s=o.match(/Firefox\/([\d.]+)/),l=o.match(/MSIE\s([\d.]+)/)||o.match(/Trident\/.+?rv:(([\d.]+))/),h=o.match(/Edge?\/([\d.]+)/),v=/micromessenger/i.test(o);s&&(r.firefox=!0,r.version=s[1]),l&&(r.ie=!0,r.version=l[1]),h&&(r.edge=!0,r.version=h[1],r.newEdge=+h[1].split(".")[0]>18),v&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var S=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in S||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in S)&&!("OTransition"in S),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const env$1=env;var DEFAULT_FONT_SIZE=12,DEFAULT_FONT_FAMILY="sans-serif",DEFAULT_FONT=DEFAULT_FONT_SIZE+"px "+DEFAULT_FONT_FAMILY,OFFSET=20,SCALE=100,defaultWidthMapStr="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function getTextWidthMap(o){var t={};if(typeof JSON>"u")return t;for(var r=0;r<o.length;r++){var s=String.fromCharCode(r+32),l=(o.charCodeAt(r)-OFFSET)/SCALE;t[s]=l}return t}var DEFAULT_TEXT_WIDTH_MAP=getTextWidthMap(defaultWidthMapStr),platformApi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var o,t;return function(r,s){if(!o){var l=platformApi.createCanvas();o=l&&l.getContext("2d")}if(o)return t!==s&&(t=o.font=s||DEFAULT_FONT),o.measureText(r);r=r||"",s=s||DEFAULT_FONT;var h=/(\d+)px/.exec(s),v=h&&+h[1]||DEFAULT_FONT_SIZE,S=0;if(s.indexOf("mono")>=0)S=v*r.length;else for(var x=0;x<r.length;x++){var T=DEFAULT_TEXT_WIDTH_MAP[r[x]];S+=T==null?v:T*v}return{width:S}}}(),loadImage:function(o,t,r){var s=new Image;return s.onload=t,s.onerror=r,s.src=o,s}};function setPlatformAPI(o){for(var t in platformApi)o[t]&&(platformApi[t]=o[t])}var BUILTIN_OBJECT=reduce(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(o,t){return o["[object "+t+"]"]=!0,o},{}),TYPED_ARRAY=reduce(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(o,t){return o["[object "+t+"Array]"]=!0,o},{}),objToString=Object.prototype.toString,arrayProto=Array.prototype,nativeForEach=arrayProto.forEach,nativeFilter=arrayProto.filter,nativeSlice=arrayProto.slice,nativeMap=arrayProto.map,ctorFunction=function(){}.constructor,protoFunction=ctorFunction?ctorFunction.prototype:null,protoKey="__proto__",idStart=2311;function guid(){return idStart++}function logError(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];typeof console<"u"&&console.error.apply(console,o)}function clone$3(o){if(o==null||typeof o!="object")return o;var t=o,r=objToString.call(o);if(r==="[object Array]"){if(!isPrimitive(o)){t=[];for(var s=0,l=o.length;s<l;s++)t[s]=clone$3(o[s])}}else if(TYPED_ARRAY[r]){if(!isPrimitive(o)){var h=o.constructor;if(h.from)t=h.from(o);else{t=new h(o.length);for(var s=0,l=o.length;s<l;s++)t[s]=o[s]}}}else if(!BUILTIN_OBJECT[r]&&!isPrimitive(o)&&!isDom(o)){t={};for(var v in o)o.hasOwnProperty(v)&&v!==protoKey&&(t[v]=clone$3(o[v]))}return t}function merge(o,t,r){if(!isObject$3(t)||!isObject$3(o))return r?clone$3(t):o;for(var s in t)if(t.hasOwnProperty(s)&&s!==protoKey){var l=o[s],h=t[s];isObject$3(h)&&isObject$3(l)&&!isArray$1(h)&&!isArray$1(l)&&!isDom(h)&&!isDom(l)&&!isBuiltInObject(h)&&!isBuiltInObject(l)&&!isPrimitive(h)&&!isPrimitive(l)?merge(l,h,r):(r||!(s in o))&&(o[s]=clone$3(t[s]))}return o}function mergeAll(o,t){for(var r=o[0],s=1,l=o.length;s<l;s++)r=merge(r,o[s],t);return r}function extend(o,t){if(Object.assign)Object.assign(o,t);else for(var r in t)t.hasOwnProperty(r)&&r!==protoKey&&(o[r]=t[r]);return o}function defaults(o,t,r){for(var s=keys(t),l=0;l<s.length;l++){var h=s[l];(r?t[h]!=null:o[h]==null)&&(o[h]=t[h])}return o}var createCanvas=platformApi.createCanvas;function indexOf(o,t){if(o){if(o.indexOf)return o.indexOf(t);for(var r=0,s=o.length;r<s;r++)if(o[r]===t)return r}return-1}function inherits(o,t){var r=o.prototype;function s(){}s.prototype=t.prototype,o.prototype=new s;for(var l in r)r.hasOwnProperty(l)&&(o.prototype[l]=r[l]);o.prototype.constructor=o,o.superClass=t}function mixin(o,t,r){if(o="prototype"in o?o.prototype:o,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var s=Object.getOwnPropertyNames(t),l=0;l<s.length;l++){var h=s[l];h!=="constructor"&&(r?t[h]!=null:o[h]==null)&&(o[h]=t[h])}else defaults(o,t,r)}function isArrayLike(o){return!o||typeof o=="string"?!1:typeof o.length=="number"}function each$c(o,t,r){if(o&&t)if(o.forEach&&o.forEach===nativeForEach)o.forEach(t,r);else if(o.length===+o.length)for(var s=0,l=o.length;s<l;s++)t.call(r,o[s],s,o);else for(var h in o)o.hasOwnProperty(h)&&t.call(r,o[h],h,o)}function map$2(o,t,r){if(!o)return[];if(!t)return slice(o);if(o.map&&o.map===nativeMap)return o.map(t,r);for(var s=[],l=0,h=o.length;l<h;l++)s.push(t.call(r,o[l],l,o));return s}function reduce(o,t,r,s){if(o&&t){for(var l=0,h=o.length;l<h;l++)r=t.call(s,r,o[l],l,o);return r}}function filter(o,t,r){if(!o)return[];if(!t)return slice(o);if(o.filter&&o.filter===nativeFilter)return o.filter(t,r);for(var s=[],l=0,h=o.length;l<h;l++)t.call(r,o[l],l,o)&&s.push(o[l]);return s}function find(o,t,r){if(o&&t){for(var s=0,l=o.length;s<l;s++)if(t.call(r,o[s],s,o))return o[s]}}function keys(o){if(!o)return[];if(Object.keys)return Object.keys(o);var t=[];for(var r in o)o.hasOwnProperty(r)&&t.push(r);return t}function bindPolyfill(o,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];return function(){return o.apply(t,r.concat(nativeSlice.call(arguments)))}}var bind$1=protoFunction&&isFunction(protoFunction.bind)?protoFunction.call.bind(protoFunction.bind):bindPolyfill;function curry$1(o){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return o.apply(this,t.concat(nativeSlice.call(arguments)))}}function isArray$1(o){return Array.isArray?Array.isArray(o):objToString.call(o)==="[object Array]"}function isFunction(o){return typeof o=="function"}function isString(o){return typeof o=="string"}function isStringSafe(o){return objToString.call(o)==="[object String]"}function isNumber(o){return typeof o=="number"}function isObject$3(o){var t=typeof o;return t==="function"||!!o&&t==="object"}function isBuiltInObject(o){return!!BUILTIN_OBJECT[objToString.call(o)]}function isTypedArray(o){return!!TYPED_ARRAY[objToString.call(o)]}function isDom(o){return typeof o=="object"&&typeof o.nodeType=="number"&&typeof o.ownerDocument=="object"}function isGradientObject(o){return o.colorStops!=null}function isImagePatternObject(o){return o.image!=null}function isRegExp(o){return objToString.call(o)==="[object RegExp]"}function eqNaN(o){return o!==o}function retrieve(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];for(var r=0,s=o.length;r<s;r++)if(o[r]!=null)return o[r]}function retrieve2(o,t){return o??t}function retrieve3(o,t,r){return o??t??r}function slice(o){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return nativeSlice.apply(o,t)}function normalizeCssArray$1(o){if(typeof o=="number")return[o,o,o,o];var t=o.length;return t===2?[o[0],o[1],o[0],o[1]]:t===3?[o[0],o[1],o[2],o[1]]:o}function assert(o,t){if(!o)throw new Error(t)}function trim$1(o){return o==null?null:typeof o.trim=="function"?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var primitiveKey="__ec_primitive__";function setAsPrimitive(o){o[primitiveKey]=!0}function isPrimitive(o){return o[primitiveKey]}var MapPolyfill=function(){function o(){this.data={}}return o.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},o.prototype.has=function(t){return this.data.hasOwnProperty(t)},o.prototype.get=function(t){return this.data[t]},o.prototype.set=function(t,r){return this.data[t]=r,this},o.prototype.keys=function(){return keys(this.data)},o.prototype.forEach=function(t){var r=this.data;for(var s in r)r.hasOwnProperty(s)&&t(r[s],s)},o}(),isNativeMapSupported=typeof Map=="function";function maybeNativeMap(){return isNativeMapSupported?new Map:new MapPolyfill}var HashMap=function(){function o(t){var r=isArray$1(t);this.data=maybeNativeMap();var s=this;t instanceof o?t.each(l):t&&each$c(t,l);function l(h,v){r?s.set(h,v):s.set(v,h)}}return o.prototype.hasKey=function(t){return this.data.has(t)},o.prototype.get=function(t){return this.data.get(t)},o.prototype.set=function(t,r){return this.data.set(t,r),r},o.prototype.each=function(t,r){this.data.forEach(function(s,l){t.call(r,s,l)})},o.prototype.keys=function(){var t=this.data.keys();return isNativeMapSupported?Array.from(t):t},o.prototype.removeKey=function(t){this.data.delete(t)},o}();function createHashMap(o){return new HashMap(o)}function concatArray(o,t){for(var r=new o.constructor(o.length+t.length),s=0;s<o.length;s++)r[s]=o[s];for(var l=o.length,s=0;s<t.length;s++)r[s+l]=t[s];return r}function createObject(o,t){var r;if(Object.create)r=Object.create(o);else{var s=function(){};s.prototype=o,r=new s}return t&&extend(r,t),r}function disableUserSelect(o){var t=o.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function hasOwn(o,t){return o.hasOwnProperty(t)}function noop(){}var RADIAN_TO_DEGREE=180/Math.PI;const util$1=Object.freeze(Object.defineProperty({__proto__:null,HashMap,RADIAN_TO_DEGREE,assert,bind:bind$1,clone:clone$3,concatArray,createCanvas,createHashMap,createObject,curry:curry$1,defaults,disableUserSelect,each:each$c,eqNaN,extend,filter,find,guid,hasOwn,indexOf,inherits,isArray:isArray$1,isArrayLike,isBuiltInObject,isDom,isFunction,isGradientObject,isImagePatternObject,isNumber,isObject:isObject$3,isPrimitive,isRegExp,isString,isStringSafe,isTypedArray,keys,logError,map:map$2,merge,mergeAll,mixin,noop,normalizeCssArray:normalizeCssArray$1,reduce,retrieve,retrieve2,retrieve3,setAsPrimitive,slice,trim:trim$1},Symbol.toStringTag,{value:"Module"}));function create$1(o,t){return o==null&&(o=0),t==null&&(t=0),[o,t]}function copy$1(o,t){return o[0]=t[0],o[1]=t[1],o}function clone$2(o){return[o[0],o[1]]}function set$1(o,t,r){return o[0]=t,o[1]=r,o}function add(o,t,r){return o[0]=t[0]+r[0],o[1]=t[1]+r[1],o}function scaleAndAdd(o,t,r,s){return o[0]=t[0]+r[0]*s,o[1]=t[1]+r[1]*s,o}function sub(o,t,r){return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o}function len(o){return Math.sqrt(lenSquare(o))}var length=len;function lenSquare(o){return o[0]*o[0]+o[1]*o[1]}var lengthSquare=lenSquare;function mul$1(o,t,r){return o[0]=t[0]*r[0],o[1]=t[1]*r[1],o}function div(o,t,r){return o[0]=t[0]/r[0],o[1]=t[1]/r[1],o}function dot(o,t){return o[0]*t[0]+o[1]*t[1]}function scale$2(o,t,r){return o[0]=t[0]*r,o[1]=t[1]*r,o}function normalize$1(o,t){var r=len(t);return r===0?(o[0]=0,o[1]=0):(o[0]=t[0]/r,o[1]=t[1]/r),o}function distance(o,t){return Math.sqrt((o[0]-t[0])*(o[0]-t[0])+(o[1]-t[1])*(o[1]-t[1]))}var dist$1=distance;function distanceSquare(o,t){return(o[0]-t[0])*(o[0]-t[0])+(o[1]-t[1])*(o[1]-t[1])}var distSquare=distanceSquare;function negate(o,t){return o[0]=-t[0],o[1]=-t[1],o}function lerp$1(o,t,r,s){return o[0]=t[0]+s*(r[0]-t[0]),o[1]=t[1]+s*(r[1]-t[1]),o}function applyTransform$1(o,t,r){var s=t[0],l=t[1];return o[0]=r[0]*s+r[2]*l+r[4],o[1]=r[1]*s+r[3]*l+r[5],o}function min$1(o,t,r){return o[0]=Math.min(t[0],r[0]),o[1]=Math.min(t[1],r[1]),o}function max$1(o,t,r){return o[0]=Math.max(t[0],r[0]),o[1]=Math.max(t[1],r[1]),o}const vector=Object.freeze(Object.defineProperty({__proto__:null,add,applyTransform:applyTransform$1,clone:clone$2,copy:copy$1,create:create$1,dist:dist$1,distSquare,distance,distanceSquare,div,dot,len,lenSquare,length,lengthSquare,lerp:lerp$1,max:max$1,min:min$1,mul:mul$1,negate,normalize:normalize$1,scale:scale$2,scaleAndAdd,set:set$1,sub},Symbol.toStringTag,{value:"Module"}));var Param=function(){function o(t,r){this.target=t,this.topTarget=r&&r.topTarget}return o}(),Draggable=function(){function o(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return o.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Param(r,t),"dragstart",t.event))},o.prototype._drag=function(t){var r=this._draggingTarget;if(r){var s=t.offsetX,l=t.offsetY,h=s-this._x,v=l-this._y;this._x=s,this._y=l,r.drift(h,v,t),this.handler.dispatchToElement(new Param(r,t),"drag",t.event);var S=this.handler.findHover(s,l,r).target,x=this._dropTarget;this._dropTarget=S,r!==S&&(x&&S!==x&&this.handler.dispatchToElement(new Param(x,t),"dragleave",t.event),S&&S!==x&&this.handler.dispatchToElement(new Param(S,t),"dragenter",t.event))}},o.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Param(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Param(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},o}();const Draggable$1=Draggable;var Eventful=function(){function o(t){t&&(this._$eventProcessor=t)}return o.prototype.on=function(t,r,s,l){this._$handlers||(this._$handlers={});var h=this._$handlers;if(typeof r=="function"&&(l=s,s=r,r=null),!s||!t)return this;var v=this._$eventProcessor;r!=null&&v&&v.normalizeQuery&&(r=v.normalizeQuery(r)),h[t]||(h[t]=[]);for(var S=0;S<h[t].length;S++)if(h[t][S].h===s)return this;var x={h:s,query:r,ctx:l||this,callAtLast:s.zrEventfulCallAtLast},T=h[t].length-1,C=h[t][T];return C&&C.callAtLast?h[t].splice(T,0,x):h[t].push(x),this},o.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},o.prototype.off=function(t,r){var s=this._$handlers;if(!s)return this;if(!t)return this._$handlers={},this;if(r){if(s[t]){for(var l=[],h=0,v=s[t].length;h<v;h++)s[t][h].h!==r&&l.push(s[t][h]);s[t]=l}s[t]&&s[t].length===0&&delete s[t]}else delete s[t];return this},o.prototype.trigger=function(t){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(!this._$handlers)return this;var l=this._$handlers[t],h=this._$eventProcessor;if(l)for(var v=r.length,S=l.length,x=0;x<S;x++){var T=l[x];if(!(h&&h.filter&&T.query!=null&&!h.filter(t,T.query)))switch(v){case 0:T.h.call(T.ctx);break;case 1:T.h.call(T.ctx,r[0]);break;case 2:T.h.call(T.ctx,r[0],r[1]);break;default:T.h.apply(T.ctx,r);break}}return h&&h.afterTrigger&&h.afterTrigger(t),this},o.prototype.triggerWithContext=function(t){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(!this._$handlers)return this;var l=this._$handlers[t],h=this._$eventProcessor;if(l)for(var v=r.length,S=r[v-1],x=l.length,T=0;T<x;T++){var C=l[T];if(!(h&&h.filter&&C.query!=null&&!h.filter(t,C.query)))switch(v){case 0:C.h.call(S);break;case 1:C.h.call(S,r[0]);break;case 2:C.h.call(S,r[0],r[1]);break;default:C.h.apply(S,r.slice(1,v-1));break}}return h&&h.afterTrigger&&h.afterTrigger(t),this},o}();const Eventful$1=Eventful;var LN2=Math.log(2);function determinant(o,t,r,s,l,h){var v=s+"-"+l,S=o.length;if(h.hasOwnProperty(v))return h[v];if(t===1){var x=Math.round(Math.log((1<<S)-1&~l)/LN2);return o[r][x]}for(var T=s|1<<r,C=r+1;s&1<<C;)C++;for(var M=0,w=0,D=0;w<S;w++){var O=1<<w;O&l||(M+=(D%2?-1:1)*o[r][w]*determinant(o,t-1,C,T,l|O,h),D++)}return h[v]=M,M}function buildTransformer(o,t){var r=[[o[0],o[1],1,0,0,0,-t[0]*o[0],-t[0]*o[1]],[0,0,0,o[0],o[1],1,-t[1]*o[0],-t[1]*o[1]],[o[2],o[3],1,0,0,0,-t[2]*o[2],-t[2]*o[3]],[0,0,0,o[2],o[3],1,-t[3]*o[2],-t[3]*o[3]],[o[4],o[5],1,0,0,0,-t[4]*o[4],-t[4]*o[5]],[0,0,0,o[4],o[5],1,-t[5]*o[4],-t[5]*o[5]],[o[6],o[7],1,0,0,0,-t[6]*o[6],-t[6]*o[7]],[0,0,0,o[6],o[7],1,-t[7]*o[6],-t[7]*o[7]]],s={},l=determinant(r,8,0,0,0,s);if(l!==0){for(var h=[],v=0;v<8;v++)for(var S=0;S<8;S++)h[S]==null&&(h[S]=0),h[S]+=((v+S)%2?-1:1)*determinant(r,7,v===0?1:0,1<<v,1<<S,s)/l*t[v];return function(x,T,C){var M=T*h[6]+C*h[7]+1;x[0]=(T*h[0]+C*h[1]+h[2])/M,x[1]=(T*h[3]+C*h[4]+h[5])/M}}}var EVENT_SAVED_PROP="___zrEVENTSAVED",_calcOut$1=[];function transformLocalCoord(o,t,r,s,l){return transformCoordWithViewport(_calcOut$1,t,s,l,!0)&&transformCoordWithViewport(o,r,_calcOut$1[0],_calcOut$1[1])}function transformCoordWithViewport(o,t,r,s,l){if(t.getBoundingClientRect&&env$1.domSupported&&!isCanvasEl(t)){var h=t[EVENT_SAVED_PROP]||(t[EVENT_SAVED_PROP]={}),v=prepareCoordMarkers(t,h),S=preparePointerTransformer(v,h,l);if(S)return S(o,r,s),!0}return!1}function prepareCoordMarkers(o,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var s=["left","right"],l=["top","bottom"],h=0;h<4;h++){var v=document.createElement("div"),S=v.style,x=h%2,T=(h>>1)%2;S.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[x]+":0",l[T]+":0",s[1-x]+":auto",l[1-T]+":auto",""].join("!important;"),o.appendChild(v),r.push(v)}return r}function preparePointerTransformer(o,t,r){for(var s=r?"invTrans":"trans",l=t[s],h=t.srcCoords,v=[],S=[],x=!0,T=0;T<4;T++){var C=o[T].getBoundingClientRect(),M=2*T,w=C.left,D=C.top;v.push(w,D),x=x&&h&&w===h[M]&&D===h[M+1],S.push(o[T].offsetLeft,o[T].offsetTop)}return x&&l?l:(t.srcCoords=v,t[s]=r?buildTransformer(S,v):buildTransformer(v,S))}function isCanvasEl(o){return o.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&","<":"<",">":">",'"':""","'":"'"};function encodeHTML(o){return o==null?"":(o+"").replace(replaceReg,function(t,r){return replaceMap[r]})}var MOUSE_EVENT_REG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_calcOut=[],firefoxNotSupportOffsetXY=env$1.browser.firefox&&+env$1.browser.version.split(".")[0]<39;function clientToLocal(o,t,r,s){return r=r||{},s?calculateZrXY(o,t,r):firefoxNotSupportOffsetXY&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):calculateZrXY(o,t,r),r}function calculateZrXY(o,t,r){if(env$1.domSupported&&o.getBoundingClientRect){var s=t.clientX,l=t.clientY;if(isCanvasEl(o)){var h=o.getBoundingClientRect();r.zrX=s-h.left,r.zrY=l-h.top;return}else if(transformCoordWithViewport(_calcOut,o,s,l)){r.zrX=_calcOut[0],r.zrY=_calcOut[1];return}}r.zrX=r.zrY=0}function getNativeEvent(o){return o||window.event}function normalizeEvent(o,t,r){if(t=getNativeEvent(t),t.zrX!=null)return t;var s=t.type,l=s&&s.indexOf("touch")>=0;if(l){var v=s!=="touchend"?t.targetTouches[0]:t.changedTouches[0];v&&clientToLocal(o,v,t,r)}else{clientToLocal(o,t,t,r);var h=getWheelDeltaMayPolyfill(t);t.zrDelta=h?h/120:-(t.detail||0)/3}var S=t.button;return t.which==null&&S!==void 0&&MOUSE_EVENT_REG.test(t.type)&&(t.which=S&1?1:S&2?3:S&4?2:0),t}function getWheelDeltaMayPolyfill(o){var t=o.wheelDelta;if(t)return t;var r=o.deltaX,s=o.deltaY;if(r==null||s==null)return t;var l=Math.abs(s!==0?s:r),h=s>0?-1:s<0?1:r>0?-1:1;return 3*l*h}function addEventListener(o,t,r,s){o.addEventListener(t,r,s)}function removeEventListener(o,t,r,s){o.removeEventListener(t,r,s)}var stop=function(o){o.preventDefault(),o.stopPropagation(),o.cancelBubble=!0};function isMiddleOrRightButtonOnMouseUpDown(o){return o.which===2||o.which===3}var GestureMgr=function(){function o(){this._track=[]}return o.prototype.recognize=function(t,r,s){return this._doTrack(t,r,s),this._recognize(t)},o.prototype.clear=function(){return this._track.length=0,this},o.prototype._doTrack=function(t,r,s){var l=t.touches;if(l){for(var h={points:[],touches:[],target:r,event:t},v=0,S=l.length;v<S;v++){var x=l[v],T=clientToLocal(s,x,{});h.points.push([T.zrX,T.zrY]),h.touches.push(x)}this._track.push(h)}},o.prototype._recognize=function(t){for(var r in recognizers)if(recognizers.hasOwnProperty(r)){var s=recognizers[r](this._track,t);if(s)return s}},o}();function dist(o){var t=o[1][0]-o[0][0],r=o[1][1]-o[0][1];return Math.sqrt(t*t+r*r)}function center(o){return[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]}var recognizers={pinch:function(o,t){var r=o.length;if(r){var s=(o[r-1]||{}).points,l=(o[r-2]||{}).points||s;if(l&&l.length>1&&s&&s.length>1){var h=dist(s)/dist(l);!isFinite(h)&&(h=1),t.pinchScale=h;var v=center(s);return t.pinchX=v[0],t.pinchY=v[1],{type:"pinch",target:o[0].target,event:t}}}}};function create(){return[1,0,0,1,0,0]}function identity(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=1,o[4]=0,o[5]=0,o}function copy(o,t){return o[0]=t[0],o[1]=t[1],o[2]=t[2],o[3]=t[3],o[4]=t[4],o[5]=t[5],o}function mul(o,t,r){var s=t[0]*r[0]+t[2]*r[1],l=t[1]*r[0]+t[3]*r[1],h=t[0]*r[2]+t[2]*r[3],v=t[1]*r[2]+t[3]*r[3],S=t[0]*r[4]+t[2]*r[5]+t[4],x=t[1]*r[4]+t[3]*r[5]+t[5];return o[0]=s,o[1]=l,o[2]=h,o[3]=v,o[4]=S,o[5]=x,o}function translate(o,t,r){return o[0]=t[0],o[1]=t[1],o[2]=t[2],o[3]=t[3],o[4]=t[4]+r[0],o[5]=t[5]+r[1],o}function rotate(o,t,r){var s=t[0],l=t[2],h=t[4],v=t[1],S=t[3],x=t[5],T=Math.sin(r),C=Math.cos(r);return o[0]=s*C+v*T,o[1]=-s*T+v*C,o[2]=l*C+S*T,o[3]=-l*T+C*S,o[4]=C*h+T*x,o[5]=C*x-T*h,o}function scale$1(o,t,r){var s=r[0],l=r[1];return o[0]=t[0]*s,o[1]=t[1]*l,o[2]=t[2]*s,o[3]=t[3]*l,o[4]=t[4]*s,o[5]=t[5]*l,o}function invert(o,t){var r=t[0],s=t[2],l=t[4],h=t[1],v=t[3],S=t[5],x=r*v-h*s;return x?(x=1/x,o[0]=v*x,o[1]=-h*x,o[2]=-s*x,o[3]=r*x,o[4]=(s*S-v*l)*x,o[5]=(h*l-r*S)*x,o):null}function clone$1(o){var t=create();return copy(t,o),t}const matrix=Object.freeze(Object.defineProperty({__proto__:null,clone:clone$1,copy,create,identity,invert,mul,rotate,scale:scale$1,translate},Symbol.toStringTag,{value:"Module"}));var Point=function(){function o(t,r){this.x=t||0,this.y=r||0}return o.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},o.prototype.clone=function(){return new o(this.x,this.y)},o.prototype.set=function(t,r){return this.x=t,this.y=r,this},o.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},o.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},o.prototype.scale=function(t){this.x*=t,this.y*=t},o.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},o.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},o.prototype.dot=function(t){return this.x*t.x+this.y*t.y},o.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},o.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},o.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},o.prototype.distance=function(t){var r=this.x-t.x,s=this.y-t.y;return Math.sqrt(r*r+s*s)},o.prototype.distanceSquare=function(t){var r=this.x-t.x,s=this.y-t.y;return r*r+s*s},o.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},o.prototype.transform=function(t){if(t){var r=this.x,s=this.y;return this.x=t[0]*r+t[2]*s+t[4],this.y=t[1]*r+t[3]*s+t[5],this}},o.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},o.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},o.set=function(t,r,s){t.x=r,t.y=s},o.copy=function(t,r){t.x=r.x,t.y=r.y},o.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},o.lenSquare=function(t){return t.x*t.x+t.y*t.y},o.dot=function(t,r){return t.x*r.x+t.y*r.y},o.add=function(t,r,s){t.x=r.x+s.x,t.y=r.y+s.y},o.sub=function(t,r,s){t.x=r.x-s.x,t.y=r.y-s.y},o.scale=function(t,r,s){t.x=r.x*s,t.y=r.y*s},o.scaleAndAdd=function(t,r,s,l){t.x=r.x+s.x*l,t.y=r.y+s.y*l},o.lerp=function(t,r,s,l){var h=1-l;t.x=h*r.x+l*s.x,t.y=h*r.y+l*s.y},o}();const Point$1=Point;var mathMin$8=Math.min,mathMax$8=Math.max,lt=new Point$1,rb=new Point$1,lb=new Point$1,rt=new Point$1,minTv$1=new Point$1,maxTv$1=new Point$1,BoundingRect=function(){function o(t,r,s,l){s<0&&(t=t+s,s=-s),l<0&&(r=r+l,l=-l),this.x=t,this.y=r,this.width=s,this.height=l}return o.prototype.union=function(t){var r=mathMin$8(t.x,this.x),s=mathMin$8(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(t.y+t.height,this.y+this.height)-s:this.height=t.height,this.x=r,this.y=s},o.prototype.applyTransform=function(t){o.applyTransform(this,this,t)},o.prototype.calculateTransform=function(t){var r=this,s=t.width/r.width,l=t.height/r.height,h=create();return translate(h,h,[-r.x,-r.y]),scale$1(h,h,[s,l]),translate(h,h,[t.x,t.y]),h},o.prototype.intersect=function(t,r){if(!t)return!1;t instanceof o||(t=o.create(t));var s=this,l=s.x,h=s.x+s.width,v=s.y,S=s.y+s.height,x=t.x,T=t.x+t.width,C=t.y,M=t.y+t.height,w=!(h<x||T<l||S<C||M<v);if(r){var D=1/0,O=0,N=Math.abs(h-x),k=Math.abs(T-l),F=Math.abs(S-C),B=Math.abs(M-v),V=Math.min(N,k),z=Math.min(F,B);h<x||T<l?V>O&&(O=V,N<k?Point$1.set(maxTv$1,-N,0):Point$1.set(maxTv$1,k,0)):V<D&&(D=V,N<k?Point$1.set(minTv$1,N,0):Point$1.set(minTv$1,-k,0)),S<C||M<v?z>O&&(O=z,F<B?Point$1.set(maxTv$1,0,-F):Point$1.set(maxTv$1,0,B)):V<D&&(D=V,F<B?Point$1.set(minTv$1,0,F):Point$1.set(minTv$1,0,-B))}return r&&Point$1.copy(r,w?minTv$1:maxTv$1),w},o.prototype.contain=function(t,r){var s=this;return t>=s.x&&t<=s.x+s.width&&r>=s.y&&r<=s.y+s.height},o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height)},o.prototype.copy=function(t){o.copy(this,t)},o.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},o.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},o.prototype.isZero=function(){return this.width===0||this.height===0},o.create=function(t){return new o(t.x,t.y,t.width,t.height)},o.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},o.applyTransform=function(t,r,s){if(!s){t!==r&&o.copy(t,r);return}if(s[1]<1e-5&&s[1]>-1e-5&&s[2]<1e-5&&s[2]>-1e-5){var l=s[0],h=s[3],v=s[4],S=s[5];t.x=r.x*l+v,t.y=r.y*h+S,t.width=r.width*l,t.height=r.height*h,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}lt.x=lb.x=r.x,lt.y=rt.y=r.y,rb.x=rt.x=r.x+r.width,rb.y=lb.y=r.y+r.height,lt.transform(s),rt.transform(s),rb.transform(s),lb.transform(s),t.x=mathMin$8(lt.x,rb.x,lb.x,rt.x),t.y=mathMin$8(lt.y,rb.y,lb.y,rt.y);var x=mathMax$8(lt.x,rb.x,lb.x,rt.x),T=mathMax$8(lt.y,rb.y,lb.y,rt.y);t.width=x-t.x,t.height=T-t.y},o}();const BoundingRect$1=BoundingRect;var SILENT="silent";function makeEventPacket(o,t,r){return{type:o,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Eventful$1),HoveredResult=function(){function o(t,r){this.x=t,this.y=r}return o}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function(o){__extends(t,o);function t(r,s,l,h,v){var S=o.call(this)||this;return S._hovered=new HoveredResult(0,0),S.storage=r,S.painter=s,S.painterRoot=h,S._pointerSize=v,l=l||new EmptyProxy,S.proxy=null,S.setHandlerProxy(l),S._draggingMgr=new Draggable$1(S),S}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(each$c(handlerNames,function(s){r.on&&r.on(s,this[s],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var s=r.zrX,l=r.zrY,h=isOutsideBoundary(this,s,l),v=this._hovered,S=v.target;S&&!S.__zr&&(v=this.findHover(v.x,v.y),S=v.target);var x=this._hovered=h?new HoveredResult(s,l):this.findHover(s,l),T=x.target,C=this.proxy;C.setCursor&&C.setCursor(T?T.cursor:"default"),S&&T!==S&&this.dispatchToElement(v,"mouseout",r),this.dispatchToElement(x,"mousemove",r),T&&T!==S&&this.dispatchToElement(x,"mouseover",r)},t.prototype.mouseout=function(r){var s=r.zrEventControl;s!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),s!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},t.prototype.dispatch=function(r,s){var l=this[r];l&&l.call(this,s)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var s=this.proxy;s.setCursor&&s.setCursor(r)},t.prototype.dispatchToElement=function(r,s,l){r=r||{};var h=r.target;if(!(h&&h.silent)){for(var v="on"+s,S=makeEventPacket(s,r,l);h&&(h[v]&&(S.cancelBubble=!!h[v].call(h,S)),h.trigger(s,S),h=h.__hostTarget?h.__hostTarget:h.parent,!S.cancelBubble););S.cancelBubble||(this.trigger(s,S),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(x){typeof x[v]=="function"&&x[v].call(x,S),x.trigger&&x.trigger(s,S)}))}},t.prototype.findHover=function(r,s,l){var h=this.storage.getDisplayList(),v=new HoveredResult(r,s);if(setHoverTarget(h,v,r,s,l),this._pointerSize&&!v.target){for(var S=[],x=this._pointerSize,T=x/2,C=new BoundingRect$1(r-T,s-T,x,x),M=h.length-1;M>=0;M--){var w=h[M];w!==l&&!w.ignore&&!w.ignoreCoarsePointer&&(!w.parent||!w.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(w.getBoundingRect()),w.transform&&tmpRect$1.applyTransform(w.transform),tmpRect$1.intersect(C)&&S.push(w))}if(S.length)for(var D=4,O=Math.PI/12,N=Math.PI*2,k=0;k<T;k+=D)for(var F=0;F<N;F+=O){var B=r+k*Math.cos(F),V=s+k*Math.sin(F);if(setHoverTarget(S,v,B,V,l),v.target)return v}}return v},t.prototype.processGesture=function(r,s){this._gestureMgr||(this._gestureMgr=new GestureMgr);var l=this._gestureMgr;s==="start"&&l.clear();var h=l.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(s==="end"&&l.clear(),h){var v=h.type;r.gestureEvent=v;var S=new HoveredResult;S.target=h.target,this.dispatchToElement(S,v,h.event)}},t}(Eventful$1);each$c(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(o){Handler.prototype[o]=function(t){var r=t.zrX,s=t.zrY,l=isOutsideBoundary(this,r,s),h,v;if((o!=="mouseup"||!l)&&(h=this.findHover(r,s),v=h.target),o==="mousedown")this._downEl=v,this._downPoint=[t.zrX,t.zrY],this._upEl=v;else if(o==="mouseup")this._upEl=v;else if(o==="click"){if(this._downEl!==this._upEl||!this._downPoint||dist$1(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(h,o,t)}});function isHover(o,t,r){if(o[o.rectHover?"rectContain":"contain"](t,r)){for(var s=o,l=void 0,h=!1;s;){if(s.ignoreClip&&(h=!0),!h){var v=s.getClipPath();if(v&&!v.contain(t,r))return!1;s.silent&&(l=!0)}var S=s.__hostTarget;s=S||s.parent}return l?SILENT:!0}return!1}function setHoverTarget(o,t,r,s,l){for(var h=o.length-1;h>=0;h--){var v=o[h],S=void 0;if(v!==l&&!v.ignore&&(S=isHover(v,r,s))&&(!t.topTarget&&(t.topTarget=v),S!==SILENT)){t.target=v;break}}}function isOutsideBoundary(o,t,r){var s=o.painter;return t<0||t>s.getWidth()||r<0||r>s.getHeight()}const Handler$1=Handler;var DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength(o){for(var t=0;o>=DEFAULT_MIN_MERGE;)t|=o&1,o>>=1;return o+t}function makeAscendingRun(o,t,r,s){var l=t+1;if(l===r)return 1;if(s(o[l++],o[t])<0){for(;l<r&&s(o[l],o[l-1])<0;)l++;reverseRun(o,t,l)}else for(;l<r&&s(o[l],o[l-1])>=0;)l++;return l-t}function reverseRun(o,t,r){for(r--;t<r;){var s=o[t];o[t++]=o[r],o[r--]=s}}function binaryInsertionSort(o,t,r,s,l){for(s===t&&s++;s<r;s++){for(var h=o[s],v=t,S=s,x;v<S;)x=v+S>>>1,l(h,o[x])<0?S=x:v=x+1;var T=s-v;switch(T){case 3:o[v+3]=o[v+2];case 2:o[v+2]=o[v+1];case 1:o[v+1]=o[v];break;default:for(;T>0;)o[v+T]=o[v+T-1],T--}o[v]=h}}function gallopLeft(o,t,r,s,l,h){var v=0,S=0,x=1;if(h(o,t[r+l])>0){for(S=s-l;x<S&&h(o,t[r+l+x])>0;)v=x,x=(x<<1)+1,x<=0&&(x=S);x>S&&(x=S),v+=l,x+=l}else{for(S=l+1;x<S&&h(o,t[r+l-x])<=0;)v=x,x=(x<<1)+1,x<=0&&(x=S);x>S&&(x=S);var T=v;v=l-x,x=l-T}for(v++;v<x;){var C=v+(x-v>>>1);h(o,t[r+C])>0?v=C+1:x=C}return x}function gallopRight(o,t,r,s,l,h){var v=0,S=0,x=1;if(h(o,t[r+l])<0){for(S=l+1;x<S&&h(o,t[r+l-x])<0;)v=x,x=(x<<1)+1,x<=0&&(x=S);x>S&&(x=S);var T=v;v=l-x,x=l-T}else{for(S=s-l;x<S&&h(o,t[r+l+x])>=0;)v=x,x=(x<<1)+1,x<=0&&(x=S);x>S&&(x=S),v+=l,x+=l}for(v++;v<x;){var C=v+(x-v>>>1);h(o,t[r+C])<0?x=C:v=C+1}return x}function TimSort(o,t){var r=DEFAULT_MIN_GALLOPING,s,l,h=0;o.length;var v=[];s=[],l=[];function S(D,O){s[h]=D,l[h]=O,h+=1}function x(){for(;h>1;){var D=h-2;if(D>=1&&l[D-1]<=l[D]+l[D+1]||D>=2&&l[D-2]<=l[D]+l[D-1])l[D-1]<l[D+1]&&D--;else if(l[D]>l[D+1])break;C(D)}}function T(){for(;h>1;){var D=h-2;D>0&&l[D-1]<l[D+1]&&D--,C(D)}}function C(D){var O=s[D],N=l[D],k=s[D+1],F=l[D+1];l[D]=N+F,D===h-3&&(s[D+1]=s[D+2],l[D+1]=l[D+2]),h--;var B=gallopRight(o[k],o,O,N,0,t);O+=B,N-=B,N!==0&&(F=gallopLeft(o[O+N-1],o,k,F,F-1,t),F!==0&&(N<=F?M(O,N,k,F):w(O,N,k,F)))}function M(D,O,N,k){var F=0;for(F=0;F<O;F++)v[F]=o[D+F];var B=0,V=N,z=D;if(o[z++]=o[V++],--k===0){for(F=0;F<O;F++)o[z+F]=v[B+F];return}if(O===1){for(F=0;F<k;F++)o[z+F]=o[V+F];o[z+k]=v[B];return}for(var U=r,Y,W,X;;){Y=0,W=0,X=!1;do if(t(o[V],v[B])<0){if(o[z++]=o[V++],W++,Y=0,--k===0){X=!0;break}}else if(o[z++]=v[B++],Y++,W=0,--O===1){X=!0;break}while((Y|W)<U);if(X)break;do{if(Y=gallopRight(o[V],v,B,O,0,t),Y!==0){for(F=0;F<Y;F++)o[z+F]=v[B+F];if(z+=Y,B+=Y,O-=Y,O<=1){X=!0;break}}if(o[z++]=o[V++],--k===0){X=!0;break}if(W=gallopLeft(v[B],o,V,k,0,t),W!==0){for(F=0;F<W;F++)o[z+F]=o[V+F];if(z+=W,V+=W,k-=W,k===0){X=!0;break}}if(o[z++]=v[B++],--O===1){X=!0;break}U--}while(Y>=DEFAULT_MIN_GALLOPING||W>=DEFAULT_MIN_GALLOPING);if(X)break;U<0&&(U=0),U+=2}if(r=U,r<1&&(r=1),O===1){for(F=0;F<k;F++)o[z+F]=o[V+F];o[z+k]=v[B]}else{if(O===0)throw new Error;for(F=0;F<O;F++)o[z+F]=v[B+F]}}function w(D,O,N,k){var F=0;for(F=0;F<k;F++)v[F]=o[N+F];var B=D+O-1,V=k-1,z=N+k-1,U=0,Y=0;if(o[z--]=o[B--],--O===0){for(U=z-(k-1),F=0;F<k;F++)o[U+F]=v[F];return}if(k===1){for(z-=O,B-=O,Y=z+1,U=B+1,F=O-1;F>=0;F--)o[Y+F]=o[U+F];o[z]=v[V];return}for(var W=r;;){var X=0,K=0,J=!1;do if(t(v[V],o[B])<0){if(o[z--]=o[B--],X++,K=0,--O===0){J=!0;break}}else if(o[z--]=v[V--],K++,X=0,--k===1){J=!0;break}while((X|K)<W);if(J)break;do{if(X=O-gallopRight(v[V],o,D,O,O-1,t),X!==0){for(z-=X,B-=X,O-=X,Y=z+1,U=B+1,F=X-1;F>=0;F--)o[Y+F]=o[U+F];if(O===0){J=!0;break}}if(o[z--]=v[V--],--k===1){J=!0;break}if(K=k-gallopLeft(o[B],v,0,k,k-1,t),K!==0){for(z-=K,V-=K,k-=K,Y=z+1,U=V+1,F=0;F<K;F++)o[Y+F]=v[U+F];if(k<=1){J=!0;break}}if(o[z--]=o[B--],--O===0){J=!0;break}W--}while(X>=DEFAULT_MIN_GALLOPING||K>=DEFAULT_MIN_GALLOPING);if(J)break;W<0&&(W=0),W+=2}if(r=W,r<1&&(r=1),k===1){for(z-=O,B-=O,Y=z+1,U=B+1,F=O-1;F>=0;F--)o[Y+F]=o[U+F];o[z]=v[V]}else{if(k===0)throw new Error;for(U=z-(k-1),F=0;F<k;F++)o[U+F]=v[F]}}return{mergeRuns:x,forceMergeRuns:T,pushRun:S}}function sort(o,t,r,s){r||(r=0),s||(s=o.length);var l=s-r;if(!(l<2)){var h=0;if(l<DEFAULT_MIN_MERGE){h=makeAscendingRun(o,r,s,t),binaryInsertionSort(o,r,s,r+h,t);return}var v=TimSort(o,t),S=minRunLength(l);do{if(h=makeAscendingRun(o,r,s,t),h<S){var x=l;x>S&&(x=S),binaryInsertionSort(o,r,r+x,r+h,t),h=x}v.pushRun(r,h),v.mergeRuns(),l-=h,r+=h}while(l!==0);v.forceMergeRuns()}}var REDRAW_BIT=1,STYLE_CHANGED_BIT=2,SHAPE_CHANGED_BIT=4,invalidZErrorLogged=!1;function logInvalidZError(){invalidZErrorLogged||(invalidZErrorLogged=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function shapeCompareFunc(o,t){return o.zlevel===t.zlevel?o.z===t.z?o.z2-t.z2:o.z-t.z:o.zlevel-t.zlevel}var Storage=function(){function o(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return o.prototype.traverse=function(t,r){for(var s=0;s<this._roots.length;s++)this._roots[s].traverse(t,r)},o.prototype.getDisplayList=function(t,r){r=r||!1;var s=this._displayList;return(t||!s.length)&&this.updateDisplayList(r),s},o.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,s=this._displayList,l=0,h=r.length;l<h;l++)this._updateAndAddDisplayable(r[l],null,t);s.length=this._displayListLen,sort(s,shapeCompareFunc)},o.prototype._updateAndAddDisplayable=function(t,r,s){if(!(t.ignore&&!s)){t.beforeUpdate(),t.update(),t.afterUpdate();var l=t.getClipPath();if(t.ignoreClip)r=null;else if(l){r?r=r.slice():r=[];for(var h=l,v=t;h;)h.parent=v,h.updateTransform(),r.push(h),v=h,h=h.getClipPath()}if(t.childrenRef){for(var S=t.childrenRef(),x=0;x<S.length;x++){var T=S[x];t.__dirty&&(T.__dirty|=REDRAW_BIT),this._updateAndAddDisplayable(T,r,s)}t.__dirty=0}else{var C=t;r&&r.length?C.__clipPaths=r:C.__clipPaths&&C.__clipPaths.length>0&&(C.__clipPaths=[]),isNaN(C.z)&&(logInvalidZError(),C.z=0),isNaN(C.z2)&&(logInvalidZError(),C.z2=0),isNaN(C.zlevel)&&(logInvalidZError(),C.zlevel=0),this._displayList[this._displayListLen++]=C}var M=t.getDecalElement&&t.getDecalElement();M&&this._updateAndAddDisplayable(M,r,s);var w=t.getTextGuideLine();w&&this._updateAndAddDisplayable(w,r,s);var D=t.getTextContent();D&&this._updateAndAddDisplayable(D,r,s)}},o.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},o.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,s=t.length;r<s;r++)this.delRoot(t[r]);return}var l=indexOf(this._roots,t);l>=0&&this._roots.splice(l,1)},o.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},o.prototype.getRoots=function(){return this._roots},o.prototype.dispose=function(){this._displayList=null,this._roots=null},o}();const Storage$1=Storage;var requestAnimationFrame;requestAnimationFrame=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(o){return setTimeout(o,16)};const requestAnimationFrame$1=requestAnimationFrame;var easingFuncs={linear:function(o){return o},quadraticIn:function(o){return o*o},quadraticOut:function(o){return o*(2-o)},quadraticInOut:function(o){return(o*=2)<1?.5*o*o:-.5*(--o*(o-2)-1)},cubicIn:function(o){return o*o*o},cubicOut:function(o){return--o*o*o+1},cubicInOut:function(o){return(o*=2)<1?.5*o*o*o:.5*((o-=2)*o*o+2)},quarticIn:function(o){return o*o*o*o},quarticOut:function(o){return 1- --o*o*o*o},quarticInOut:function(o){return(o*=2)<1?.5*o*o*o*o:-.5*((o-=2)*o*o*o-2)},quinticIn:function(o){return o*o*o*o*o},quinticOut:function(o){return--o*o*o*o*o+1},quinticInOut:function(o){return(o*=2)<1?.5*o*o*o*o*o:.5*((o-=2)*o*o*o*o+2)},sinusoidalIn:function(o){return 1-Math.cos(o*Math.PI/2)},sinusoidalOut:function(o){return Math.sin(o*Math.PI/2)},sinusoidalInOut:function(o){return .5*(1-Math.cos(Math.PI*o))},exponentialIn:function(o){return o===0?0:Math.pow(1024,o-1)},exponentialOut:function(o){return o===1?1:1-Math.pow(2,-10*o)},exponentialInOut:function(o){return o===0?0:o===1?1:(o*=2)<1?.5*Math.pow(1024,o-1):.5*(-Math.pow(2,-10*(o-1))+2)},circularIn:function(o){return 1-Math.sqrt(1-o*o)},circularOut:function(o){return Math.sqrt(1- --o*o)},circularInOut:function(o){return(o*=2)<1?-.5*(Math.sqrt(1-o*o)-1):.5*(Math.sqrt(1-(o-=2)*o)+1)},elasticIn:function(o){var t,r=.1,s=.4;return o===0?0:o===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(o-=1))*Math.sin((o-t)*(2*Math.PI)/s)))},elasticOut:function(o){var t,r=.1,s=.4;return o===0?0:o===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*o)*Math.sin((o-t)*(2*Math.PI)/s)+1)},elasticInOut:function(o){var t,r=.1,s=.4;return o===0?0:o===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),(o*=2)<1?-.5*(r*Math.pow(2,10*(o-=1))*Math.sin((o-t)*(2*Math.PI)/s)):r*Math.pow(2,-10*(o-=1))*Math.sin((o-t)*(2*Math.PI)/s)*.5+1)},backIn:function(o){var t=1.70158;return o*o*((t+1)*o-t)},backOut:function(o){var t=1.70158;return--o*o*((t+1)*o+t)+1},backInOut:function(o){var t=2.5949095;return(o*=2)<1?.5*(o*o*((t+1)*o-t)):.5*((o-=2)*o*((t+1)*o+t)+2)},bounceIn:function(o){return 1-easingFuncs.bounceOut(1-o)},bounceOut:function(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375},bounceInOut:function(o){return o<.5?easingFuncs.bounceIn(o*2)*.5:easingFuncs.bounceOut(o*2-1)*.5+.5}};const easingFuncs$1=easingFuncs;var mathPow$2=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$3=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$1(),_v1=create$1(),_v2=create$1();function isAroundZero(o){return o>-EPSILON$3&&o<EPSILON$3}function isNotAroundZero$1(o){return o>EPSILON$3||o<-EPSILON$3}function cubicAt(o,t,r,s,l){var h=1-l;return h*h*(h*o+3*l*t)+l*l*(l*s+3*h*r)}function cubicDerivativeAt(o,t,r,s,l){var h=1-l;return 3*(((t-o)*h+2*(r-t)*l)*h+(s-r)*l*l)}function cubicRootAt(o,t,r,s,l,h){var v=s+3*(t-r)-o,S=3*(r-t*2+o),x=3*(t-o),T=o-l,C=S*S-3*v*x,M=S*x-9*v*T,w=x*x-3*S*T,D=0;if(isAroundZero(C)&&isAroundZero(M))if(isAroundZero(S))h[0]=0;else{var O=-x/S;O>=0&&O<=1&&(h[D++]=O)}else{var N=M*M-4*C*w;if(isAroundZero(N)){var k=M/C,O=-S/v+k,F=-k/2;O>=0&&O<=1&&(h[D++]=O),F>=0&&F<=1&&(h[D++]=F)}else if(N>0){var B=mathSqrt$3(N),V=C*S+1.5*v*(-M+B),z=C*S+1.5*v*(-M-B);V<0?V=-mathPow$2(-V,ONE_THIRD):V=mathPow$2(V,ONE_THIRD),z<0?z=-mathPow$2(-z,ONE_THIRD):z=mathPow$2(z,ONE_THIRD);var O=(-S-(V+z))/(3*v);O>=0&&O<=1&&(h[D++]=O)}else{var U=(2*C*S-3*v*M)/(2*mathSqrt$3(C*C*C)),Y=Math.acos(U)/3,W=mathSqrt$3(C),X=Math.cos(Y),O=(-S-2*W*X)/(3*v),F=(-S+W*(X+THREE_SQRT*Math.sin(Y)))/(3*v),K=(-S+W*(X-THREE_SQRT*Math.sin(Y)))/(3*v);O>=0&&O<=1&&(h[D++]=O),F>=0&&F<=1&&(h[D++]=F),K>=0&&K<=1&&(h[D++]=K)}}return D}function cubicExtrema(o,t,r,s,l){var h=6*r-12*t+6*o,v=9*t+3*s-3*o-9*r,S=3*t-3*o,x=0;if(isAroundZero(v)){if(isNotAroundZero$1(h)){var T=-S/h;T>=0&&T<=1&&(l[x++]=T)}}else{var C=h*h-4*v*S;if(isAroundZero(C))l[0]=-h/(2*v);else if(C>0){var M=mathSqrt$3(C),T=(-h+M)/(2*v),w=(-h-M)/(2*v);T>=0&&T<=1&&(l[x++]=T),w>=0&&w<=1&&(l[x++]=w)}}return x}function cubicSubdivide(o,t,r,s,l,h){var v=(t-o)*l+o,S=(r-t)*l+t,x=(s-r)*l+r,T=(S-v)*l+v,C=(x-S)*l+S,M=(C-T)*l+T;h[0]=o,h[1]=v,h[2]=T,h[3]=M,h[4]=M,h[5]=C,h[6]=x,h[7]=s}function cubicProjectPoint(o,t,r,s,l,h,v,S,x,T,C){var M,w=.005,D=1/0,O,N,k,F;_v0[0]=x,_v0[1]=T;for(var B=0;B<1;B+=.05)_v1[0]=cubicAt(o,r,l,v,B),_v1[1]=cubicAt(t,s,h,S,B),k=distSquare(_v0,_v1),k<D&&(M=B,D=k);D=1/0;for(var V=0;V<32&&!(w<EPSILON_NUMERIC);V++)O=M-w,N=M+w,_v1[0]=cubicAt(o,r,l,v,O),_v1[1]=cubicAt(t,s,h,S,O),k=distSquare(_v1,_v0),O>=0&&k<D?(M=O,D=k):(_v2[0]=cubicAt(o,r,l,v,N),_v2[1]=cubicAt(t,s,h,S,N),F=distSquare(_v2,_v0),N<=1&&F<D?(M=N,D=F):w*=.5);return C&&(C[0]=cubicAt(o,r,l,v,M),C[1]=cubicAt(t,s,h,S,M)),mathSqrt$3(D)}function cubicLength(o,t,r,s,l,h,v,S,x){for(var T=o,C=t,M=0,w=1/x,D=1;D<=x;D++){var O=D*w,N=cubicAt(o,r,l,v,O),k=cubicAt(t,s,h,S,O),F=N-T,B=k-C;M+=Math.sqrt(F*F+B*B),T=N,C=k}return M}function quadraticAt(o,t,r,s){var l=1-s;return l*(l*o+2*s*t)+s*s*r}function quadraticDerivativeAt(o,t,r,s){return 2*((1-s)*(t-o)+s*(r-t))}function quadraticRootAt(o,t,r,s,l){var h=o-2*t+r,v=2*(t-o),S=o-s,x=0;if(isAroundZero(h)){if(isNotAroundZero$1(v)){var T=-S/v;T>=0&&T<=1&&(l[x++]=T)}}else{var C=v*v-4*h*S;if(isAroundZero(C)){var T=-v/(2*h);T>=0&&T<=1&&(l[x++]=T)}else if(C>0){var M=mathSqrt$3(C),T=(-v+M)/(2*h),w=(-v-M)/(2*h);T>=0&&T<=1&&(l[x++]=T),w>=0&&w<=1&&(l[x++]=w)}}return x}function quadraticExtremum(o,t,r){var s=o+r-2*t;return s===0?.5:(o-t)/s}function quadraticSubdivide(o,t,r,s,l){var h=(t-o)*s+o,v=(r-t)*s+t,S=(v-h)*s+h;l[0]=o,l[1]=h,l[2]=S,l[3]=S,l[4]=v,l[5]=r}function quadraticProjectPoint(o,t,r,s,l,h,v,S,x){var T,C=.005,M=1/0;_v0[0]=v,_v0[1]=S;for(var w=0;w<1;w+=.05){_v1[0]=quadraticAt(o,r,l,w),_v1[1]=quadraticAt(t,s,h,w);var D=distSquare(_v0,_v1);D<M&&(T=w,M=D)}M=1/0;for(var O=0;O<32&&!(C<EPSILON_NUMERIC);O++){var N=T-C,k=T+C;_v1[0]=quadraticAt(o,r,l,N),_v1[1]=quadraticAt(t,s,h,N);var D=distSquare(_v1,_v0);if(N>=0&&D<M)T=N,M=D;else{_v2[0]=quadraticAt(o,r,l,k),_v2[1]=quadraticAt(t,s,h,k);var F=distSquare(_v2,_v0);k<=1&&F<M?(T=k,M=F):C*=.5}}return x&&(x[0]=quadraticAt(o,r,l,T),x[1]=quadraticAt(t,s,h,T)),mathSqrt$3(M)}function quadraticLength(o,t,r,s,l,h,v){for(var S=o,x=t,T=0,C=1/v,M=1;M<=v;M++){var w=M*C,D=quadraticAt(o,r,l,w),O=quadraticAt(t,s,h,w),N=D-S,k=O-x;T+=Math.sqrt(N*N+k*k),S=D,x=O}return T}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc(o){var t=o&®exp.exec(o);if(t){var r=t[1].split(","),s=+trim$1(r[0]),l=+trim$1(r[1]),h=+trim$1(r[2]),v=+trim$1(r[3]);if(isNaN(s+l+h+v))return;var S=[];return function(x){return x<=0?0:x>=1?1:cubicRootAt(0,s,h,1,x,S)&&cubicAt(0,l,v,1,S[0])}}}var Clip=function(){function o(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||noop,this.ondestroy=t.ondestroy||noop,this.onrestart=t.onrestart||noop,t.easing&&this.setEasing(t.easing)}return o.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var s=this._life,l=t-this._startTime-this._pausedTime,h=l/s;h<0&&(h=0),h=Math.min(h,1);var v=this.easingFunc,S=v?v(h):h;if(this.onframe(S),h===1)if(this.loop){var x=l%s;this._startTime=t-x,this._pausedTime=0,this.onrestart()}else return!0;return!1},o.prototype.pause=function(){this._paused=!0},o.prototype.resume=function(){this._paused=!1},o.prototype.setEasing=function(t){this.easing=t,this.easingFunc=isFunction(t)?t:easingFuncs$1[t]||createCubicEasingFunc(t)},o}();const Clip$1=Clip;var Entry=function(){function o(t){this.value=t}return o}(),LinkedList=function(){function o(){this._len=0}return o.prototype.insert=function(t){var r=new Entry(t);return this.insertEntry(r),r},o.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},o.prototype.remove=function(t){var r=t.prev,s=t.next;r?r.next=s:this.head=s,s?s.prev=r:this.tail=r,t.next=t.prev=null,this._len--},o.prototype.len=function(){return this._len},o.prototype.clear=function(){this.head=this.tail=null,this._len=0},o}(),LRU=function(){function o(t){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=t}return o.prototype.put=function(t,r){var s=this._list,l=this._map,h=null;if(l[t]==null){var v=s.len(),S=this._lastRemovedEntry;if(v>=this._maxSize&&v>0){var x=s.head;s.remove(x),delete l[x.key],h=x.value,this._lastRemovedEntry=x}S?S.value=r:S=new Entry(r),S.key=t,s.insertEntry(S),l[t]=S}return h},o.prototype.get=function(t){var r=this._map[t],s=this._list;if(r!=null)return r!==s.tail&&(s.remove(r),s.insertEntry(r)),r.value},o.prototype.clear=function(){this._list.clear(),this._map={}},o.prototype.len=function(){return this._list.len()},o}();const LRU$1=LRU;var kCSSColorTable={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 clampCssByte(o){return o=Math.round(o),o<0?0:o>255?255:o}function clampCssAngle(o){return o=Math.round(o),o<0?0:o>360?360:o}function clampCssFloat(o){return o<0?0:o>1?1:o}function parseCssInt(o){var t=o;return t.length&&t.charAt(t.length-1)==="%"?clampCssByte(parseFloat(t)/100*255):clampCssByte(parseInt(t,10))}function parseCssFloat(o){var t=o;return t.length&&t.charAt(t.length-1)==="%"?clampCssFloat(parseFloat(t)/100):clampCssFloat(parseFloat(t))}function cssHueToRgb(o,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?o+(t-o)*r*6:r*2<1?t:r*3<2?o+(t-o)*(2/3-r)*6:o}function lerpNumber(o,t,r){return o+(t-o)*r}function setRgba(o,t,r,s,l){return o[0]=t,o[1]=r,o[2]=s,o[3]=l,o}function copyRgba(o,t){return o[0]=t[0],o[1]=t[1],o[2]=t[2],o[3]=t[3],o}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache(o,t){lastRemovedArr&©Rgba(lastRemovedArr,t),lastRemovedArr=colorCache.put(o,lastRemovedArr||t.slice())}function parse$1(o,t){if(o){t=t||[];var r=colorCache.get(o);if(r)return copyRgba(t,r);o=o+"";var s=o.replace(/ /g,"").toLowerCase();if(s in kCSSColorTable)return copyRgba(t,kCSSColorTable[s]),putToCache(o,t),t;var l=s.length;if(s.charAt(0)==="#"){if(l===4||l===5){var h=parseInt(s.slice(1,4),16);if(!(h>=0&&h<=4095)){setRgba(t,0,0,0,1);return}return setRgba(t,(h&3840)>>4|(h&3840)>>8,h&240|(h&240)>>4,h&15|(h&15)<<4,l===5?parseInt(s.slice(4),16)/15:1),putToCache(o,t),t}else if(l===7||l===9){var h=parseInt(s.slice(1,7),16);if(!(h>=0&&h<=16777215)){setRgba(t,0,0,0,1);return}return setRgba(t,(h&16711680)>>16,(h&65280)>>8,h&255,l===9?parseInt(s.slice(7),16)/255:1),putToCache(o,t),t}return}var v=s.indexOf("("),S=s.indexOf(")");if(v!==-1&&S+1===l){var x=s.substr(0,v),T=s.substr(v+1,S-(v+1)).split(","),C=1;switch(x){case"rgba":if(T.length!==4)return T.length===3?setRgba(t,+T[0],+T[1],+T[2],1):setRgba(t,0,0,0,1);C=parseCssFloat(T.pop());case"rgb":if(T.length>=3)return setRgba(t,parseCssInt(T[0]),parseCssInt(T[1]),parseCssInt(T[2]),T.length===3?C:parseCssFloat(T[3])),putToCache(o,t),t;setRgba(t,0,0,0,1);return;case"hsla":if(T.length!==4){setRgba(t,0,0,0,1);return}return T[3]=parseCssFloat(T[3]),hsla2rgba(T,t),putToCache(o,t),t;case"hsl":if(T.length!==3){setRgba(t,0,0,0,1);return}return hsla2rgba(T,t),putToCache(o,t),t;default:return}}setRgba(t,0,0,0,1)}}function hsla2rgba(o,t){var r=(parseFloat(o[0])%360+360)%360/360,s=parseCssFloat(o[1]),l=parseCssFloat(o[2]),h=l<=.5?l*(s+1):l+s-l*s,v=l*2-h;return t=t||[],setRgba(t,clampCssByte(cssHueToRgb(v,h,r+1/3)*255),clampCssByte(cssHueToRgb(v,h,r)*255),clampCssByte(cssHueToRgb(v,h,r-1/3)*255),1),o.length===4&&(t[3]=o[3]),t}function rgba2hsla(o){if(o){var t=o[0]/255,r=o[1]/255,s=o[2]/255,l=Math.min(t,r,s),h=Math.max(t,r,s),v=h-l,S=(h+l)/2,x,T;if(v===0)x=0,T=0;else{S<.5?T=v/(h+l):T=v/(2-h-l);var C=((h-t)/6+v/2)/v,M=((h-r)/6+v/2)/v,w=((h-s)/6+v/2)/v;t===h?x=w-M:r===h?x=1/3+C-w:s===h&&(x=2/3+M-C),x<0&&(x+=1),x>1&&(x-=1)}var D=[x*360,T,S];return o[3]!=null&&D.push(o[3]),D}}function lift(o,t){var r=parse$1(o);if(r){for(var s=0;s<3;s++)t<0?r[s]=r[s]*(1-t)|0:r[s]=(255-r[s])*t+r[s]|0,r[s]>255?r[s]=255:r[s]<0&&(r[s]=0);return stringify(r,r.length===4?"rgba":"rgb")}}function toHex(o){var t=parse$1(o);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function fastLerp(o,t,r){if(!(!(t&&t.length)||!(o>=0&&o<=1))){r=r||[];var s=o*(t.length-1),l=Math.floor(s),h=Math.ceil(s),v=t[l],S=t[h],x=s-l;return r[0]=clampCssByte(lerpNumber(v[0],S[0],x)),r[1]=clampCssByte(lerpNumber(v[1],S[1],x)),r[2]=clampCssByte(lerpNumber(v[2],S[2],x)),r[3]=clampCssFloat(lerpNumber(v[3],S[3],x)),r}}var fastMapToColor=fastLerp;function lerp(o,t,r){if(!(!(t&&t.length)||!(o>=0&&o<=1))){var s=o*(t.length-1),l=Math.floor(s),h=Math.ceil(s),v=parse$1(t[l]),S=parse$1(t[h]),x=s-l,T=stringify([clampCssByte(lerpNumber(v[0],S[0],x)),clampCssByte(lerpNumber(v[1],S[1],x)),clampCssByte(lerpNumber(v[2],S[2],x)),clampCssFloat(lerpNumber(v[3],S[3],x))],"rgba");return r?{color:T,leftIndex:l,rightIndex:h,value:s}:T}}var mapToColor=lerp;function modifyHSL(o,t,r,s){var l=parse$1(o);if(o)return l=rgba2hsla(l),t!=null&&(l[0]=clampCssAngle(t)),r!=null&&(l[1]=parseCssFloat(r)),s!=null&&(l[2]=parseCssFloat(s)),stringify(hsla2rgba(l),"rgba")}function modifyAlpha(o,t){var r=parse$1(o);if(r&&t!=null)return r[3]=clampCssFloat(t),stringify(r,"rgba")}function stringify(o,t){if(!(!o||!o.length)){var r=o[0]+","+o[1]+","+o[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+o[3]),t+"("+r+")"}}function lum(o,t){var r=parse$1(o);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function random(){return stringify([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const color=Object.freeze(Object.defineProperty({__proto__:null,fastLerp,fastMapToColor,lerp,lift,lum,mapToColor,modifyAlpha,modifyHSL,parse:parse$1,random,stringify,toHex},Symbol.toStringTag,{value:"Module"}));function isLinearGradient(o){return o.type==="linear"}function isRadialGradient(o){return o.type==="radial"}(function(){return env$1.hasGlobalWindow&&isFunction(window.btoa)?function(o){return window.btoa(unescape(encodeURIComponent(o)))}:typeof Buffer<"u"?function(o){return Buffer.from(o).toString("base64")}:function(o){return null}})();var arraySlice=Array.prototype.slice;function interpolateNumber$1(o,t,r){return(t-o)*r+o}function interpolate1DArray(o,t,r,s){for(var l=t.length,h=0;h<l;h++)o[h]=interpolateNumber$1(t[h],r[h],s);return o}function interpolate2DArray(o,t,r,s){for(var l=t.length,h=l&&t[0].length,v=0;v<l;v++){o[v]||(o[v]=[]);for(var S=0;S<h;S++)o[v][S]=interpolateNumber$1(t[v][S],r[v][S],s)}return o}function add1DArray(o,t,r,s){for(var l=t.length,h=0;h<l;h++)o[h]=t[h]+r[h]*s;return o}function add2DArray(o,t,r,s){for(var l=t.length,h=l&&t[0].length,v=0;v<l;v++){o[v]||(o[v]=[]);for(var S=0;S<h;S++)o[v][S]=t[v][S]+r[v][S]*s}return o}function fillColorStops(o,t){for(var r=o.length,s=t.length,l=r>s?t:o,h=Math.min(r,s),v=l[h-1]||{color:[0,0,0,0],offset:0},S=h;S<Math.max(r,s);S++)l.push({offset:v.offset,color:v.color.slice()})}function fillArray(o,t,r){var s=o,l=t;if(!(!s.push||!l.push)){var h=s.length,v=l.length;if(h!==v){var S=h>v;if(S)s.length=v;else for(var x=h;x<v;x++)s.push(r===1?l[x]:arraySlice.call(l[x]))}for(var T=s[0]&&s[0].length,x=0;x<s.length;x++)if(r===1)isNaN(s[x])&&(s[x]=l[x]);else for(var C=0;C<T;C++)isNaN(s[x][C])&&(s[x][C]=l[x][C])}}function cloneValue(o){if(isArrayLike(o)){var t=o.length;if(isArrayLike(o[0])){for(var r=[],s=0;s<t;s++)r.push(arraySlice.call(o[s]));return r}return arraySlice.call(o)}return o}function rgba2String(o){return o[0]=Math.floor(o[0])||0,o[1]=Math.floor(o[1])||0,o[2]=Math.floor(o[2])||0,o[3]=o[3]==null?1:o[3],"rgba("+o.join(",")+")"}function guessArrayDim(o){return isArrayLike(o&&o[0])?2:1}var VALUE_TYPE_NUMBER=0,VALUE_TYPE_1D_ARRAY=1,VALUE_TYPE_2D_ARRAY=2,VALUE_TYPE_COLOR=3,VALUE_TYPE_LINEAR_GRADIENT=4,VALUE_TYPE_RADIAL_GRADIENT=5,VALUE_TYPE_UNKOWN=6;function isGradientValueType(o){return o===VALUE_TYPE_LINEAR_GRADIENT||o===VALUE_TYPE_RADIAL_GRADIENT}function isArrayValueType(o){return o===VALUE_TYPE_1D_ARRAY||o===VALUE_TYPE_2D_ARRAY}var tmpRgba=[0,0,0,0],Track=function(){function o(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return o.prototype.isFinished=function(){return this._finished},o.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},o.prototype.needsAnimate=function(){return this.keyframes.length>=1},o.prototype.getAdditiveTrack=function(){return this._additiveTrack},o.prototype.addKeyframe=function(t,r,s){this._needsSort=!0;var l=this.keyframes,h=l.length,v=!1,S=VALUE_TYPE_UNKOWN,x=r;if(isArrayLike(r)){var T=guessArrayDim(r);S=T,(T===1&&!isNumber(r[0])||T===2&&!isNumber(r[0][0]))&&(v=!0)}else if(isNumber(r)&&!eqNaN(r))S=VALUE_TYPE_NUMBER;else if(isString(r))if(!isNaN(+r))S=VALUE_TYPE_NUMBER;else{var C=parse$1(r);C&&(x=C,S=VALUE_TYPE_COLOR)}else if(isGradientObject(r)){var M=extend({},x);M.colorStops=map$2(r.colorStops,function(D){return{offset:D.offset,color:parse$1(D.color)}}),isLinearGradient(r)?S=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(r)&&(S=VALUE_TYPE_RADIAL_GRADIENT),x=M}h===0?this.valType=S:(S!==this.valType||S===VALUE_TYPE_UNKOWN)&&(v=!0),this.discrete=this.discrete||v;var w={time:t,value:x,rawValue:r,percent:0};return s&&(w.easing=s,w.easingFunc=isFunction(s)?s:easingFuncs$1[s]||createCubicEasingFunc(s)),l.push(w),w},o.prototype.prepare=function(t,r){var s=this.keyframes;this._needsSort&&s.sort(function(N,k){return N.time-k.time});for(var l=this.valType,h=s.length,v=s[h-1],S=this.discrete,x=isArrayValueType(l),T=isGradientValueType(l),C=0;C<h;C++){var M=s[C],w=M.value,D=v.value;M.percent=M.time/t,S||(x&&C!==h-1?fillArray(w,D,l):T&&fillColorStops(w.colorStops,D.colorStops))}if(!S&&l!==VALUE_TYPE_RADIAL_GRADIENT&&r&&this.needsAnimate()&&r.needsAnimate()&&l===r.valType&&!r._finished){this._additiveTrack=r;for(var O=s[0].value,C=0;C<h;C++)l===VALUE_TYPE_NUMBER?s[C].additiveValue=s[C].value-O:l===VALUE_TYPE_COLOR?s[C].additiveValue=add1DArray([],s[C].value,O,-1):isArrayValueType(l)&&(s[C].additiveValue=l===VALUE_TYPE_1D_ARRAY?add1DArray([],s[C].value,O,-1):add2DArray([],s[C].value,O,-1))}},o.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var s=this._additiveTrack!=null,l=s?"additiveValue":"value",h=this.valType,v=this.keyframes,S=v.length,x=this.propName,T=h===VALUE_TYPE_COLOR,C,M=this._lastFr,w=Math.min,D,O;if(S===1)D=O=v[0];else{if(r<0)C=0;else if(r<this._lastFrP){var N=w(M+1,S-1);for(C=N;C>=0&&!(v[C].percent<=r);C--);C=w(C,S-2)}else{for(C=M;C<S&&!(v[C].percent>r);C++);C=w(C-1,S-2)}O=v[C+1],D=v[C]}if(D&&O){this._lastFr=C,this._lastFrP=r;var k=O.percent-D.percent,F=k===0?1:w((r-D.percent)/k,1);O.easingFunc&&(F=O.easingFunc(F));var B=s?this._additiveValue:T?tmpRgba:t[x];if((isArrayValueType(h)||T)&&!B&&(B=this._additiveValue=[]),this.discrete)t[x]=F<1?D.rawValue:O.rawValue;else if(isArrayValueType(h))h===VALUE_TYPE_1D_ARRAY?interpolate1DArray(B,D[l],O[l],F):interpolate2DArray(B,D[l],O[l],F);else if(isGradientValueType(h)){var V=D[l],z=O[l],U=h===VALUE_TYPE_LINEAR_GRADIENT;t[x]={type:U?"linear":"radial",x:interpolateNumber$1(V.x,z.x,F),y:interpolateNumber$1(V.y,z.y,F),colorStops:map$2(V.colorStops,function(W,X){var K=z.colorStops[X];return{offset:interpolateNumber$1(W.offset,K.offset,F),color:rgba2String(interpolate1DArray([],W.color,K.color,F))}}),global:z.global},U?(t[x].x2=interpolateNumber$1(V.x2,z.x2,F),t[x].y2=interpolateNumber$1(V.y2,z.y2,F)):t[x].r=interpolateNumber$1(V.r,z.r,F)}else if(T)interpolate1DArray(B,D[l],O[l],F),s||(t[x]=rgba2String(B));else{var Y=interpolateNumber$1(D[l],O[l],F);s?this._additiveValue=Y:t[x]=Y}s&&this._addToTarget(t)}}},o.prototype._addToTarget=function(t){var r=this.valType,s=this.propName,l=this._additiveValue;r===VALUE_TYPE_NUMBER?t[s]=t[s]+l:r===VALUE_TYPE_COLOR?(parse$1(t[s],tmpRgba),add1DArray(tmpRgba,tmpRgba,l,1),t[s]=rgba2String(tmpRgba)):r===VALUE_TYPE_1D_ARRAY?add1DArray(t[s],t[s],l,1):r===VALUE_TYPE_2D_ARRAY&&add2DArray(t[s],t[s],l,1)},o}(),Animator=function(){function o(t,r,s,l){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&l){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=l,this._allowDiscrete=s}return o.prototype.getMaxTime=function(){return this._maxTime},o.prototype.getDelay=function(){return this._delay},o.prototype.getLoop=function(){return this._loop},o.prototype.getTarget=function(){return this._target},o.prototype.changeTarget=function(t){this._target=t},o.prototype.when=function(t,r,s){return this.whenWithKeys(t,r,keys(r),s)},o.prototype.whenWithKeys=function(t,r,s,l){for(var h=this._tracks,v=0;v<s.length;v++){var S=s[v],x=h[S];if(!x){x=h[S]=new Track(S);var T=void 0,C=this._getAdditiveTrack(S);if(C){var M=C.keyframes,w=M[M.length-1];T=w&&w.value,C.valType===VALUE_TYPE_COLOR&&T&&(T=rgba2String(T))}else T=this._target[S];if(T==null)continue;t>0&&x.addKeyframe(0,cloneValue(T),l),this._trackKeys.push(S)}x.addKeyframe(t,cloneValue(r[S]),l)}return this._maxTime=Math.max(this._maxTime,t),this},o.prototype.pause=function(){this._clip.pause(),this._paused=!0},o.prototype.resume=function(){this._clip.resume(),this._paused=!1},o.prototype.isPaused=function(){return!!this._paused},o.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},o.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,s=0;s<r;s++)t[s].call(this)},o.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var s=0;s<r.length;s++)r[s].call(this)},o.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,s=0;s<r.length;s++)t[r[s]].setFinished()},o.prototype._getAdditiveTrack=function(t){var r,s=this._additiveAnimators;if(s)for(var l=0;l<s.length;l++){var h=s[l].getTrack(t);h&&(r=h)}return r},o.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,s=[],l=this._maxTime||0,h=0;h<this._trackKeys.length;h++){var v=this._trackKeys[h],S=this._tracks[v],x=this._getAdditiveTrack(v),T=S.keyframes,C=T.length;if(S.prepare(l,x),S.needsAnimate())if(!this._allowDiscrete&&S.discrete){var M=T[C-1];M&&(r._target[S.propName]=M.rawValue),S.setFinished()}else s.push(S)}if(s.length||this._force){var w=new Clip$1({life:l,loop:this._loop,delay:this._delay||0,onframe:function(D){r._started=2;var O=r._additiveAnimators;if(O){for(var N=!1,k=0;k<O.length;k++)if(O[k]._clip){N=!0;break}N||(r._additiveAnimators=null)}for(var k=0;k<s.length;k++)s[k].step(r._target,D);var F=r._onframeCbs;if(F)for(var k=0;k<F.length;k++)F[k](r._target,D)},ondestroy:function(){r._doneCallback()}});this._clip=w,this.animation&&this.animation.addClip(w),t&&w.setEasing(t)}else this._doneCallback();return this}},o.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},o.prototype.delay=function(t){return this._delay=t,this},o.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},o.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},o.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},o.prototype.getClip=function(){return this._clip},o.prototype.getTrack=function(t){return this._tracks[t]},o.prototype.getTracks=function(){var t=this;return map$2(this._trackKeys,function(r){return t._tracks[r]})},o.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var s=this._tracks,l=this._trackKeys,h=0;h<t.length;h++){var v=s[t[h]];v&&!v.isFinished()&&(r?v.step(this._target,1):this._started===1&&v.step(this._target,0),v.setFinished())}for(var S=!0,h=0;h<l.length;h++)if(!s[l[h]].isFinished()){S=!1;break}return S&&this._abortedCallback(),S},o.prototype.saveTo=function(t,r,s){if(t){r=r||this._trackKeys;for(var l=0;l<r.length;l++){var h=r[l],v=this._tracks[h];if(!(!v||v.isFinished())){var S=v.keyframes,x=S[s?0:S.length-1];x&&(t[h]=cloneValue(x.rawValue))}}}},o.prototype.__changeFinalValue=function(t,r){r=r||keys(t);for(var s=0;s<r.length;s++){var l=r[s],h=this._tracks[l];if(h){var v=h.keyframes;if(v.length>1){var S=v.pop();h.addKeyframe(S.time,t[l]),h.prepare(this._maxTime,h.getAdditiveTrack())}}}},o}();const Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function(o){__extends(t,o);function t(r){var s=o.call(this)||this;return s._running=!1,s._time=0,s._pausedTime=0,s._pauseStart=0,s._paused=!1,r=r||{},s.stage=r.stage||{},s}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var s=r.getClip();s&&this.addClip(s)},t.prototype.removeClip=function(r){if(r.animation){var s=r.prev,l=r.next;s?s.next=l:this._head=l,l?l.prev=s:this._tail=s,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var s=r.getClip();s&&this.removeClip(s),r.animation=null},t.prototype.update=function(r){for(var s=getTime()-this._pausedTime,l=s-this._time,h=this._head;h;){var v=h.next,S=h.step(s,l);S&&(h.ondestroy(),this.removeClip(h)),h=v}this._time=s,r||(this.trigger("frame",l),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function s(){r._running&&(requestAnimationFrame$1(s),!r._paused&&r.update())}requestAnimationFrame$1(s)},t.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var s=r.next;r.prev=r.next=r.animation=null,r=s}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,s){s=s||{},this.start();var l=new Animator$1(r,s.loop);return this.addAnimator(l),l},t}(Eventful$1);const Animation$1=Animation;var TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var o=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},s=map$2(o,function(l){var h=l.replace("mouse","pointer");return r.hasOwnProperty(h)?h:l});return{mouse:o,touch:t,pointer:s}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch(o){var t=o.pointerType;return t==="pen"||t==="touch"}function setTouchTimer(o){o.touching=!0,o.touchTimer!=null&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)}function markTouch(o){o&&(o.zrByTouch=!0)}function normalizeGlobalEvent(o,t){return normalizeEvent(o.dom,new FakeGlobalEvent(o,t),!0)}function isLocalEl(o,t){for(var r=t,s=!1;r&&r.nodeType!==9&&!(s=r.domBelongToZr||r!==t&&r===o.painterRoot);)r=r.parentNode;return s}var FakeGlobalEvent=function(){function o(t,r){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return o}(),localDOMHandlers={mousedown:function(o){o=normalizeEvent(this.dom,o),this.__mayPointerCapture=[o.zrX,o.zrY],this.trigger("mousedown",o)},mousemove:function(o){o=normalizeEvent(this.dom,o);var t=this.__mayPointerCapture;t&&(o.zrX!==t[0]||o.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",o)},mouseup:function(o){o=normalizeEvent(this.dom,o),this.__togglePointerCapture(!1),this.trigger("mouseup",o)},mouseout:function(o){o=normalizeEvent(this.dom,o);var t=o.toElement||o.relatedTarget;isLocalEl(this,t)||(this.__pointerCapturing&&(o.zrEventControl="no_globalout"),this.trigger("mouseout",o))},wheel:function(o){wheelEventSupported=!0,o=normalizeEvent(this.dom,o),this.trigger("mousewheel",o)},mousewheel:function(o){wheelEventSupported||(o=normalizeEvent(this.dom,o),this.trigger("mousewheel",o))},touchstart:function(o){o=normalizeEvent(this.dom,o),markTouch(o),this.__lastTouchMoment=new Date,this.handler.processGesture(o,"start"),localDOMHandlers.mousemove.call(this,o),localDOMHandlers.mousedown.call(this,o)},touchmove:function(o){o=normalizeEvent(this.dom,o),markTouch(o),this.handler.processGesture(o,"change"),localDOMHandlers.mousemove.call(this,o)},touchend:function(o){o=normalizeEvent(this.dom,o),markTouch(o),this.handler.processGesture(o,"end"),localDOMHandlers.mouseup.call(this,o),+new Date-+this.__lastTouchMoment<TOUCH_CLICK_DELAY&&localDOMHandlers.click.call(this,o)},pointerdown:function(o){localDOMHandlers.mousedown.call(this,o)},pointermove:function(o){isPointerFromTouch(o)||localDOMHandlers.mousemove.call(this,o)},pointerup:function(o){localDOMHandlers.mouseup.call(this,o)},pointerout:function(o){isPointerFromTouch(o)||localDOMHandlers.mouseout.call(this,o)}};each$c(["click","dblclick","contextmenu"],function(o){localDOMHandlers[o]=function(t){t=normalizeEvent(this.dom,t),this.trigger(o,t)}});var globalDOMHandlers={pointermove:function(o){isPointerFromTouch(o)||globalDOMHandlers.mousemove.call(this,o)},pointerup:function(o){globalDOMHandlers.mouseup.call(this,o)},mousemove:function(o){this.trigger("mousemove",o)},mouseup:function(o){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",o),t&&(o.zrEventControl="only_globalout",this.trigger("mouseout",o))}};function mountLocalDOMEventListeners(o,t){var r=t.domHandlers;env$1.pointerEventsSupported?each$c(localNativeListenerNames.pointer,function(s){mountSingleDOMEventListener(t,s,function(l){r[s].call(o,l)})}):(env$1.touchEventsSupported&&each$c(localNativeListenerNames.touch,function(s){mountSingleDOMEventListener(t,s,function(l){r[s].call(o,l),setTouchTimer(t)})}),each$c(localNativeListenerNames.mouse,function(s){mountSingleDOMEventListener(t,s,function(l){l=getNativeEvent(l),t.touching||r[s].call(o,l)})}))}function mountGlobalDOMEventListeners(o,t){env$1.pointerEventsSupported?each$c(globalNativeListenerNames.pointer,r):env$1.touchEventsSupported||each$c(globalNativeListenerNames.mouse,r);function r(s){function l(h){h=getNativeEvent(h),isLocalEl(o,h.target)||(h=normalizeGlobalEvent(o,h),t.domHandlers[s].call(o,h))}mountSingleDOMEventListener(t,s,l,{capture:!0})}}function mountSingleDOMEventListener(o,t,r,s){o.mounted[t]=r,o.listenerOpts[t]=s,addEventListener(o.domTarget,t,r,s)}function unmountDOMEventListeners(o){var t=o.mounted;for(var r in t)t.hasOwnProperty(r)&&removeEventListener(o.domTarget,r,t[r],o.listenerOpts[r]);o.mounted={}}var DOMHandlerScope=function(){function o(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return o}(),HandlerDomProxy=function(o){__extends(t,o);function t(r,s){var l=o.call(this)||this;return l.__pointerCapturing=!1,l.dom=r,l.painterRoot=s,l._localHandlerScope=new DOMHandlerScope(r,localDOMHandlers),globalEventSupported&&(l._globalHandlerScope=new DOMHandlerScope(document,globalDOMHandlers)),mountLocalDOMEventListeners(l,l._localHandlerScope),l}return t.prototype.dispose=function(){unmountDOMEventListeners(this._localHandlerScope),globalEventSupported&&unmountDOMEventListeners(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,globalEventSupported&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var s=this._globalHandlerScope;r?mountGlobalDOMEventListeners(this,s):unmountDOMEventListeners(s)}},t}(Eventful$1);const HandlerProxy=HandlerDomProxy;var dpr=1;env$1.hasGlobalWindow&&(dpr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var devicePixelRatio=dpr,DARK_MODE_THRESHOLD=.4,DARK_LABEL_COLOR="#333",LIGHT_LABEL_COLOR="#ccc",LIGHTER_LABEL_COLOR="#eee",mIdentity=identity,EPSILON$2=5e-5;function isNotAroundZero(o){return o>EPSILON$2||o<-EPSILON$2}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function o(){}return o.prototype.getLocalTransform=function(t){return o.getLocalTransform(this,t)},o.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},o.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},o.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},o.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},o.prototype.needLocalTransform=function(){return isNotAroundZero(this.rotation)||isNotAroundZero(this.x)||isNotAroundZero(this.y)||isNotAroundZero(this.scaleX-1)||isNotAroundZero(this.scaleY-1)||isNotAroundZero(this.skewX)||isNotAroundZero(this.skewY)},o.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),s=this.transform;if(!(r||t)){s&&mIdentity(s);return}s=s||create(),r?this.getLocalTransform(s):mIdentity(s),t&&(r?mul(s,t,s):copy(s,t)),this.transform=s,this._resolveGlobalScaleRatio(s)},o.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(scaleTmp);var s=scaleTmp[0]<0?-1:1,l=scaleTmp[1]<0?-1:1,h=((scaleTmp[0]-s)*r+s)/scaleTmp[0]||0,v=((scaleTmp[1]-l)*r+l)/scaleTmp[1]||0;t[0]*=h,t[1]*=h,t[2]*=v,t[3]*=v}this.invTransform=this.invTransform||create(),invert(this.invTransform,t)},o.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},o.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],s=t[2]*t[2]+t[3]*t[3],l=Math.atan2(t[1],t[0]),h=Math.PI/2+l-Math.atan2(t[3],t[2]);s=Math.sqrt(s)*Math.cos(h),r=Math.sqrt(r),this.skewX=h,this.skewY=0,this.rotation=-l,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=s,this.originX=0,this.originY=0}},o.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(mul(tmpTransform,t.invTransform,r),r=tmpTransform);var s=this.originX,l=this.originY;(s||l)&&(originTransform[4]=s,originTransform[5]=l,mul(tmpTransform,r,originTransform),tmpTransform[4]-=s,tmpTransform[5]-=l,r=tmpTransform),this.setLocalTransform(r)}},o.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},o.prototype.transformCoordToLocal=function(t,r){var s=[t,r],l=this.invTransform;return l&&applyTransform$1(s,s,l),s},o.prototype.transformCoordToGlobal=function(t,r){var s=[t,r],l=this.transform;return l&&applyTransform$1(s,s,l),s},o.prototype.getLineScale=function(){var t=this.transform;return t&&abs(t[0]-1)>1e-10&&abs(t[3]-1)>1e-10?Math.sqrt(abs(t[0]*t[3]-t[2]*t[1])):1},o.prototype.copyTransform=function(t){copyTransform(this,t)},o.getLocalTransform=function(t,r){r=r||[];var s=t.originX||0,l=t.originY||0,h=t.scaleX,v=t.scaleY,S=t.anchorX,x=t.anchorY,T=t.rotation||0,C=t.x,M=t.y,w=t.skewX?Math.tan(t.skewX):0,D=t.skewY?Math.tan(-t.skewY):0;if(s||l||S||x){var O=s+S,N=l+x;r[4]=-O*h-w*N*v,r[5]=-N*v-D*O*h}else r[4]=r[5]=0;return r[0]=h,r[3]=v,r[1]=D*h,r[2]=w*v,T&&rotate(r,r,T),r[4]+=s+C,r[5]+=l+M,r},o.initDefaultProps=function(){var t=o.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),o}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform(o,t){for(var r=0;r<TRANSFORMABLE_PROPS.length;r++){var s=TRANSFORMABLE_PROPS[r];o[s]=t[s]}}const Transformable$1=Transformable;var textWidthCache={};function getWidth(o,t){t=t||DEFAULT_FONT;var r=textWidthCache[t];r||(r=textWidthCache[t]=new LRU$1(500));var s=r.get(o);return s==null&&(s=platformApi.measureText(o,t).width,r.put(o,s)),s}function innerGetBoundingRect(o,t,r,s){var l=getWidth(o,t),h=getLineHeight(t),v=adjustTextX(0,l,r),S=adjustTextY(0,h,s),x=new BoundingRect$1(v,S,l,h);return x}function getBoundingRect(o,t,r,s){var l=((o||"")+"").split(`
|
||
`),h=l.length;if(h===1)return innerGetBoundingRect(l[0],t,r,s);for(var v=new BoundingRect$1(0,0,0,0),S=0;S<l.length;S++){var x=innerGetBoundingRect(l[S],t,r,s);S===0?v.copy(x):v.union(x)}return v}function adjustTextX(o,t,r){return r==="right"?o-=t:r==="center"&&(o-=t/2),o}function adjustTextY(o,t,r){return r==="middle"?o-=t/2:r==="bottom"&&(o-=t),o}function getLineHeight(o){return getWidth("国",o)}function parsePercent$1(o,t){return typeof o=="string"?o.lastIndexOf("%")>=0?parseFloat(o)/100*t:parseFloat(o):o}function calculateTextPosition(o,t,r){var s=t.position||"inside",l=t.distance!=null?t.distance:5,h=r.height,v=r.width,S=h/2,x=r.x,T=r.y,C="left",M="top";if(s instanceof Array)x+=parsePercent$1(s[0],r.width),T+=parsePercent$1(s[1],r.height),C=null,M=null;else switch(s){case"left":x-=l,T+=S,C="right",M="middle";break;case"right":x+=l+v,T+=S,M="middle";break;case"top":x+=v/2,T-=l,C="center",M="bottom";break;case"bottom":x+=v/2,T+=h+l,C="center";break;case"inside":x+=v/2,T+=S,C="center",M="middle";break;case"insideLeft":x+=l,T+=S,M="middle";break;case"insideRight":x+=v-l,T+=S,C="right",M="middle";break;case"insideTop":x+=v/2,T+=l,C="center";break;case"insideBottom":x+=v/2,T+=h-l,C="center",M="bottom";break;case"insideTopLeft":x+=l,T+=l;break;case"insideTopRight":x+=v-l,T+=l,C="right";break;case"insideBottomLeft":x+=l,T+=h-l,M="bottom";break;case"insideBottomRight":x+=v-l,T+=h-l,C="right",M="bottom";break}return o=o||{},o.x=x,o.y=T,o.align=C,o.verticalAlign=M,o}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function(o,t){return o[t]=!0,o},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element=function(){function o(t){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return o.prototype._init=function(t){this.attr(t)},o.prototype.drift=function(t,r,s){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var l=this.transform;l||(l=this.transform=[1,0,0,1,0,0]),l[4]+=t,l[5]+=r,this.decomposeTransform(),this.markRedraw()},o.prototype.beforeUpdate=function(){},o.prototype.afterUpdate=function(){},o.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},o.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var s=this.textConfig,l=s.local,h=r.innerTransformable,v=void 0,S=void 0,x=!1;h.parent=l?this:null;var T=!1;if(h.copyTransform(r),s.position!=null){var C=tmpBoundingRect;s.layoutRect?C.copy(s.layoutRect):C.copy(this.getBoundingRect()),l||C.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,s,C):calculateTextPosition(tmpTextPosCalcRes,s,C),h.x=tmpTextPosCalcRes.x,h.y=tmpTextPosCalcRes.y,v=tmpTextPosCalcRes.align,S=tmpTextPosCalcRes.verticalAlign;var M=s.origin;if(M&&s.rotation!=null){var w=void 0,D=void 0;M==="center"?(w=C.width*.5,D=C.height*.5):(w=parsePercent$1(M[0],C.width),D=parsePercent$1(M[1],C.height)),T=!0,h.originX=-h.x+w+(l?0:C.x),h.originY=-h.y+D+(l?0:C.y)}}s.rotation!=null&&(h.rotation=s.rotation);var O=s.offset;O&&(h.x+=O[0],h.y+=O[1],T||(h.originX=-O[0],h.originY=-O[1]));var N=s.inside==null?typeof s.position=="string"&&s.position.indexOf("inside")>=0:s.inside,k=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),F=void 0,B=void 0,V=void 0;N&&this.canBeInsideText()?(F=s.insideFill,B=s.insideStroke,(F==null||F==="auto")&&(F=this.getInsideTextFill()),(B==null||B==="auto")&&(B=this.getInsideTextStroke(F),V=!0)):(F=s.outsideFill,B=s.outsideStroke,(F==null||F==="auto")&&(F=this.getOutsideFill()),(B==null||B==="auto")&&(B=this.getOutsideStroke(F),V=!0)),F=F||"#000",(F!==k.fill||B!==k.stroke||V!==k.autoStroke||v!==k.align||S!==k.verticalAlign)&&(x=!0,k.fill=F,k.stroke=B,k.autoStroke=V,k.align=v,k.verticalAlign=S,r.setDefaultTextStyle(k)),r.__dirty|=REDRAW_BIT,x&&r.dirtyStyle(!0)}},o.prototype.canBeInsideText=function(){return!0},o.prototype.getInsideTextFill=function(){return"#fff"},o.prototype.getInsideTextStroke=function(t){return"#000"},o.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},o.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),s=typeof r=="string"&&parse$1(r);s||(s=[255,255,255,1]);for(var l=s[3],h=this.__zr.isDarkMode(),v=0;v<3;v++)s[v]=s[v]*l+(h?0:255)*(1-l);return s[3]=1,stringify(s,"rgba")},o.prototype.traverse=function(t,r){},o.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},extend(this.extra,r)):this[t]=r},o.prototype.hide=function(){this.ignore=!0,this.markRedraw()},o.prototype.show=function(){this.ignore=!1,this.markRedraw()},o.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(isObject$3(t))for(var s=t,l=keys(s),h=0;h<l.length;h++){var v=l[h];this.attrKV(v,t[v])}return this.markRedraw(),this},o.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,s=0;s<this.animators.length;s++){var l=this.animators[s],h=l.__fromStateTransition;if(!(l.getLoop()||h&&h!==PRESERVED_NORMAL_STATE)){var v=l.targetName,S=v?r[v]:r;l.saveTo(S)}}},o.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,PRIMARY_STATES_KEYS$1)},o.prototype._savePrimaryToNormal=function(t,r,s){for(var l=0;l<s.length;l++){var h=s[l];t[h]!=null&&!(h in r)&&(r[h]=this[h])}},o.prototype.hasState=function(){return this.currentStates.length>0},o.prototype.getState=function(t){return this.states[t]},o.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},o.prototype.clearStates=function(t){this.useState(PRESERVED_NORMAL_STATE,!1,t)},o.prototype.useState=function(t,r,s,l){var h=t===PRESERVED_NORMAL_STATE,v=this.hasState();if(!(!v&&h)){var S=this.currentStates,x=this.stateTransition;if(!(indexOf(S,t)>=0&&(r||S.length===1))){var T;if(this.stateProxy&&!h&&(T=this.stateProxy(t)),T||(T=this.states&&this.states[t]),!T&&!h){logError("State "+t+" not exists.");return}h||this.saveCurrentToNormalState(T);var C=!!(T&&T.hoverLayer||l);C&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,T,this._normalState,r,!s&&!this.__inHover&&x&&x.duration>0,x);var M=this._textContent,w=this._textGuide;return M&&M.useState(t,r,s,C),w&&w.useState(t,r,s,C),h?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!C&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),T}}},o.prototype.useStates=function(t,r,s){if(!t.length)this.clearStates();else{var l=[],h=this.currentStates,v=t.length,S=v===h.length;if(S){for(var x=0;x<v;x++)if(t[x]!==h[x]){S=!1;break}}if(S)return;for(var x=0;x<v;x++){var T=t[x],C=void 0;this.stateProxy&&(C=this.stateProxy(T,t)),C||(C=this.states[T]),C&&l.push(C)}var M=l[v-1],w=!!(M&&M.hoverLayer||s);w&&this._toggleHoverLayerFlag(!0);var D=this._mergeStates(l),O=this.stateTransition;this.saveCurrentToNormalState(D),this._applyStateObj(t.join(","),D,this._normalState,!1,!r&&!this.__inHover&&O&&O.duration>0,O);var N=this._textContent,k=this._textGuide;N&&N.useStates(t,r,w),k&&k.useStates(t,r,w),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!w&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},o.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},o.prototype.removeState=function(t){var r=indexOf(this.currentStates,t);if(r>=0){var s=this.currentStates.slice();s.splice(r,1),this.useStates(s)}},o.prototype.replaceState=function(t,r,s){var l=this.currentStates.slice(),h=indexOf(l,t),v=indexOf(l,r)>=0;h>=0?v?l.splice(h,1):l[h]=r:s&&!v&&l.push(r),this.useStates(l)},o.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},o.prototype._mergeStates=function(t){for(var r={},s,l=0;l<t.length;l++){var h=t[l];extend(r,h),h.textConfig&&(s=s||{},extend(s,h.textConfig))}return s&&(r.textConfig=s),r},o.prototype._applyStateObj=function(t,r,s,l,h,v){var S=!(r&&l);r&&r.textConfig?(this.textConfig=extend({},l?this.textConfig:s.textConfig),extend(this.textConfig,r.textConfig)):S&&s.textConfig&&(this.textConfig=s.textConfig);for(var x={},T=!1,C=0;C<PRIMARY_STATES_KEYS$1.length;C++){var M=PRIMARY_STATES_KEYS$1[C],w=h&&DEFAULT_ANIMATABLE_MAP[M];r&&r[M]!=null?w?(T=!0,x[M]=r[M]):this[M]=r[M]:S&&s[M]!=null&&(w?(T=!0,x[M]=s[M]):this[M]=s[M])}if(!h)for(var C=0;C<this.animators.length;C++){var D=this.animators[C],O=D.targetName;D.getLoop()||D.__changeFinalValue(O?(r||s)[O]:r||s)}T&&this._transitionState(t,x,v)},o.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},o.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},o.prototype.getClipPath=function(){return this._clipPath},o.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},o.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},o.prototype.getTextContent=function(){return this._textContent},o.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Transformable$1,this._attachComponent(t),this._textContent=t,this.markRedraw())},o.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),extend(this.textConfig,t),this.markRedraw()},o.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},o.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},o.prototype.getTextGuideLine=function(){return this._textGuide},o.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},o.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},o.prototype.markRedraw=function(){this.__dirty|=REDRAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},o.prototype.dirty=function(){this.markRedraw()},o.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,s=this._textGuide;r&&(r.__inHover=t),s&&(s.__inHover=t)},o.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var s=0;s<r.length;s++)t.animation.addAnimator(r[s]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},o.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var s=0;s<r.length;s++)t.animation.removeAnimator(r[s]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},o.prototype.animate=function(t,r,s){var l=t?this[t]:this,h=new Animator$1(l,r,s);return t&&(h.targetName=t),this.addAnimator(h,t),h},o.prototype.addAnimator=function(t,r){var s=this.__zr,l=this;t.during(function(){l.updateDuringAnimation(r)}).done(function(){var h=l.animators,v=indexOf(h,t);v>=0&&h.splice(v,1)}),this.animators.push(t),s&&s.animation.addAnimator(t),s&&s.wakeUp()},o.prototype.updateDuringAnimation=function(t){this.markRedraw()},o.prototype.stopAnimation=function(t,r){for(var s=this.animators,l=s.length,h=[],v=0;v<l;v++){var S=s[v];!t||t===S.scope?S.stop(r):h.push(S)}return this.animators=h,this},o.prototype.animateTo=function(t,r,s){animateTo(this,t,r,s)},o.prototype.animateFrom=function(t,r,s){animateTo(this,t,r,s,!0)},o.prototype._transitionState=function(t,r,s,l){for(var h=animateTo(this,r,s,l),v=0;v<h.length;v++)h[v].__fromStateTransition=t},o.prototype.getBoundingRect=function(){return null},o.prototype.getPaintRect=function(){return null},o.initDefaultProps=function(){var t=o.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=REDRAW_BIT;function r(s,l,h,v){Object.defineProperty(t,s,{get:function(){if(!this[l]){var x=this[l]=[];S(this,x)}return this[l]},set:function(x){this[h]=x[0],this[v]=x[1],this[l]=x,S(this,x)}});function S(x,T){Object.defineProperty(T,0,{get:function(){return x[h]},set:function(C){x[h]=C}}),Object.defineProperty(T,1,{get:function(){return x[v]},set:function(C){x[v]=C}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),o}();mixin(Element,Eventful$1);mixin(Element,Transformable$1);function animateTo(o,t,r,s,l){r=r||{};var h=[];animateToShallow(o,"",o,t,r,s,h,l);var v=h.length,S=!1,x=r.done,T=r.aborted,C=function(){S=!0,v--,v<=0&&(S?x&&x():T&&T())},M=function(){v--,v<=0&&(S?x&&x():T&&T())};v||x&&x(),h.length>0&&r.during&&h[0].during(function(O,N){r.during(N)});for(var w=0;w<h.length;w++){var D=h[w];C&&D.done(C),M&&D.aborted(M),r.force&&D.duration(r.duration),D.start(r.easing)}return h}function copyArrShallow(o,t,r){for(var s=0;s<r;s++)o[s]=t[s]}function is2DArray(o){return isArrayLike(o[0])}function copyValue(o,t,r){if(isArrayLike(t[r]))if(isArrayLike(o[r])||(o[r]=[]),isTypedArray(t[r])){var s=t[r].length;o[r].length!==s&&(o[r]=new t[r].constructor(s),copyArrShallow(o[r],t[r],s))}else{var l=t[r],h=o[r],v=l.length;if(is2DArray(l))for(var S=l[0].length,x=0;x<v;x++)h[x]?copyArrShallow(h[x],l[x],S):h[x]=Array.prototype.slice.call(l[x]);else copyArrShallow(h,l,v);h.length=l.length}else o[r]=t[r]}function isValueSame(o,t){return o===t||isArrayLike(o)&&isArrayLike(t)&&is1DArraySame(o,t)}function is1DArraySame(o,t){var r=o.length;if(r!==t.length)return!1;for(var s=0;s<r;s++)if(o[s]!==t[s])return!1;return!0}function animateToShallow(o,t,r,s,l,h,v,S){for(var x=keys(s),T=l.duration,C=l.delay,M=l.additive,w=l.setToFinal,D=!isObject$3(h),O=o.animators,N=[],k=0;k<x.length;k++){var F=x[k],B=s[F];if(B!=null&&r[F]!=null&&(D||h[F]))if(isObject$3(B)&&!isArrayLike(B)&&!isGradientObject(B)){if(t){S||(r[F]=B,o.updateDuringAnimation(t));continue}animateToShallow(o,F,r[F],B,l,h&&h[F],v,S)}else N.push(F);else S||(r[F]=B,o.updateDuringAnimation(t),N.push(F))}var V=N.length;if(!M&&V)for(var z=0;z<O.length;z++){var U=O[z];if(U.targetName===t){var Y=U.stopTracks(N);if(Y){var W=indexOf(O,U);O.splice(W,1)}}}if(l.force||(N=filter(N,function(q){return!isValueSame(s[q],r[q])}),V=N.length),V>0||l.force&&!v.length){var X=void 0,K=void 0,J=void 0;if(S){K={},w&&(X={});for(var z=0;z<V;z++){var F=N[z];K[F]=r[F],w?X[F]=s[F]:r[F]=s[F]}}else if(w){J={};for(var z=0;z<V;z++){var F=N[z];J[F]=cloneValue(r[F]),copyValue(r,s,F)}}var U=new Animator$1(r,!1,!1,M?filter(O,function(ee){return ee.targetName===t}):null);U.targetName=t,l.scope&&(U.scope=l.scope),w&&X&&U.whenWithKeys(0,X,N),J&&U.whenWithKeys(0,J,N),U.whenWithKeys(T??500,S?K:s,N).delay(C||0),o.addAnimator(U,t),v.push(U)}}const Element$1=Element;var Group$2=function(o){__extends(t,o);function t(r){var s=o.call(this)||this;return s.isGroup=!0,s._children=[],s.attr(r),s}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var s=this._children,l=0;l<s.length;l++)if(s[l].name===r)return s[l]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,s){if(r&&r!==this&&r.parent!==this&&s&&s.parent===this){var l=this._children,h=l.indexOf(s);h>=0&&(l.splice(h,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,s){var l=indexOf(this._children,r);return l>=0&&this.replaceAt(s,l),this},t.prototype.replaceAt=function(r,s){var l=this._children,h=l[s];if(r&&r!==this&&r.parent!==this&&r!==h){l[s]=r,h.parent=null;var v=this.__zr;v&&h.removeSelfFromZr(v),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var s=this.__zr;s&&s!==r.__zr&&r.addSelfToZr(s),s&&s.refresh()},t.prototype.remove=function(r){var s=this.__zr,l=this._children,h=indexOf(l,r);return h<0?this:(l.splice(h,1),r.parent=null,s&&r.removeSelfFromZr(s),s&&s.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,s=this.__zr,l=0;l<r.length;l++){var h=r[l];s&&h.removeSelfFromZr(s),h.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,s){for(var l=this._children,h=0;h<l.length;h++){var v=l[h];r.call(s,v,h)}return this},t.prototype.traverse=function(r,s){for(var l=0;l<this._children.length;l++){var h=this._children[l],v=r.call(s,h);h.isGroup&&!v&&h.traverse(r,s)}return this},t.prototype.addSelfToZr=function(r){o.prototype.addSelfToZr.call(this,r);for(var s=0;s<this._children.length;s++){var l=this._children[s];l.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){o.prototype.removeSelfFromZr.call(this,r);for(var s=0;s<this._children.length;s++){var l=this._children[s];l.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var s=new BoundingRect$1(0,0,0,0),l=r||this._children,h=[],v=null,S=0;S<l.length;S++){var x=l[S];if(!(x.ignore||x.invisible)){var T=x.getBoundingRect(),C=x.getLocalTransform(h);C?(BoundingRect$1.applyTransform(s,T,C),v=v||s.clone(),v.union(s)):(v=v||T.clone(),v.union(T))}}return v||s},t}(Element$1);Group$2.prototype.type="group";const Group$3=Group$2;/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/var painterCtors={},instances$1={};function delInstance(o){delete instances$1[o]}function isDarkMode(o){if(!o)return!1;if(typeof o=="string")return lum(o,1)<DARK_MODE_THRESHOLD;if(o.colorStops){for(var t=o.colorStops,r=0,s=t.length,l=0;l<s;l++)r+=lum(t[l].color,1);return r/=s,r<DARK_MODE_THRESHOLD}return!1}var ZRender=function(){function o(t,r,s){var l=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,s=s||{},this.dom=r,this.id=t;var h=new Storage$1,v=s.renderer||"canvas";painterCtors[v]||(v=keys(painterCtors)[0]),s.useDirtyRect=s.useDirtyRect==null?!1:s.useDirtyRect;var S=new painterCtors[v](r,h,s,t),x=s.ssr||S.ssrOnly;this.storage=h,this.painter=S;var T=!env$1.node&&!env$1.worker&&!x?new HandlerProxy(S.getViewportRoot(),S.root):null,C=s.useCoarsePointer,M=C==null||C==="auto"?env$1.touchEventsSupported:!!C,w=44,D;M&&(D=retrieve2(s.pointerSize,w)),this.handler=new Handler$1(h,S,T,S.root,D),this.animation=new Animation$1({stage:{update:x?null:function(){return l._flush(!0)}}}),x||this.animation.start()}return o.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},o.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},o.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},o.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=isDarkMode(t)},o.prototype.getBackgroundColor=function(){return this._backgroundColor},o.prototype.setDarkMode=function(t){this._darkMode=t},o.prototype.isDarkMode=function(){return this._darkMode},o.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},o.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},o.prototype.flush=function(){this._flush(!1)},o.prototype._flush=function(t){var r,s=getTime();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var l=getTime();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:l-s})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},o.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},o.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},o.prototype.refreshHover=function(){this._needsRefreshHover=!0},o.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},o.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},o.prototype.clearAnimation=function(){this.animation.clear()},o.prototype.getWidth=function(){return this.painter.getWidth()},o.prototype.getHeight=function(){return this.painter.getHeight()},o.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},o.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},o.prototype.on=function(t,r,s){return this.handler.on(t,r,s),this},o.prototype.off=function(t,r){this.handler.off(t,r)},o.prototype.trigger=function(t,r){this.handler.trigger(t,r)},o.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Group$3&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},o.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,delInstance(this.id)},o}();function init$1(o,t){var r=new ZRender(guid(),o,t);return instances$1[r.id]=r,r}function dispose$1(o){o.dispose()}function disposeAll(){for(var o in instances$1)instances$1.hasOwnProperty(o)&&instances$1[o].dispose();instances$1={}}function getInstance(o){return instances$1[o]}function registerPainter(o,t){painterCtors[o]=t}var version$1="5.4.1";const zrender=Object.freeze(Object.defineProperty({__proto__:null,dispose:dispose$1,disposeAll,getInstance,init:init$1,registerPainter,version:version$1},Symbol.toStringTag,{value:"Module"}));var RADIAN_EPSILON=1e-4,ROUND_SUPPORTED_PRECISION_MAX=20;function _trim(o){return o.replace(/^\s+|\s+$/g,"")}function linearMap$2(o,t,r,s){var l=t[0],h=t[1],v=r[0],S=r[1],x=h-l,T=S-v;if(x===0)return T===0?v:(v+S)/2;if(s)if(x>0){if(o<=l)return v;if(o>=h)return S}else{if(o>=l)return v;if(o<=h)return S}else{if(o===l)return v;if(o===h)return S}return(o-l)/x*T+v}function parsePercent(o,t){switch(o){case"center":case"middle":o="50%";break;case"left":case"top":o="0%";break;case"right":case"bottom":o="100%";break}return isString(o)?_trim(o).match(/%$/)?parseFloat(o)/100*t:parseFloat(o):o==null?NaN:+o}function round$1(o,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),ROUND_SUPPORTED_PRECISION_MAX),o=(+o).toFixed(t),r?o:+o}function asc$2(o){return o.sort(function(t,r){return t-r}),o}function getPrecision(o){if(o=+o,isNaN(o))return 0;if(o>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(o*t)/t===o)return r}return getPrecisionSafe(o)}function getPrecisionSafe(o){var t=o.toString().toLowerCase(),r=t.indexOf("e"),s=r>0?+t.slice(r+1):0,l=r>0?r:t.length,h=t.indexOf("."),v=h<0?0:l-1-h;return Math.max(0,v-s)}function getPixelPrecision(o,t){var r=Math.log,s=Math.LN10,l=Math.floor(r(o[1]-o[0])/s),h=Math.round(r(Math.abs(t[1]-t[0]))/s),v=Math.min(Math.max(-l+h,0),20);return isFinite(v)?v:20}function getPercentWithPrecision(o,t,r){if(!o[t])return 0;var s=getPercentSeats(o,r);return s[t]||0}function getPercentSeats(o,t){var r=reduce(o,function(D,O){return D+(isNaN(O)?0:O)},0);if(r===0)return[];for(var s=Math.pow(10,t),l=map$2(o,function(D){return(isNaN(D)?0:D)/r*s*100}),h=s*100,v=map$2(l,function(D){return Math.floor(D)}),S=reduce(v,function(D,O){return D+O},0),x=map$2(l,function(D,O){return D-v[O]});S<h;){for(var T=Number.NEGATIVE_INFINITY,C=null,M=0,w=x.length;M<w;++M)x[M]>T&&(T=x[M],C=M);++v[C],x[C]=0,++S}return map$2(v,function(D){return D/s})}function addSafe(o,t){var r=Math.max(getPrecision(o),getPrecision(t)),s=o+t;return r>ROUND_SUPPORTED_PRECISION_MAX?s:round$1(s,r)}var MAX_SAFE_INTEGER=9007199254740991;function remRadian(o){var t=Math.PI*2;return(o%t+t)%t}function isRadianAroundZero(o){return o>-RADIAN_EPSILON&&o<RADIAN_EPSILON}var TIME_REG=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function parseDate(o){if(o instanceof Date)return o;if(isString(o)){var t=TIME_REG.exec(o);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(o==null)return new Date(NaN);return new Date(Math.round(o))}function quantity(o){return Math.pow(10,quantityExponent(o))}function quantityExponent(o){if(o===0)return 0;var t=Math.floor(Math.log(o)/Math.LN10);return o/Math.pow(10,t)>=10&&t++,t}function nice(o,t){var r=quantityExponent(o),s=Math.pow(10,r),l=o/s,h;return t?l<1.5?h=1:l<2.5?h=2:l<4?h=3:l<7?h=5:h=10:l<1?h=1:l<2?h=2:l<3?h=3:l<5?h=5:h=10,o=h*s,r>=-20?+o.toFixed(r<0?-r:0):o}function quantile(o,t){var r=(o.length-1)*t+1,s=Math.floor(r),l=+o[s-1],h=r-s;return h?l+h*(o[s]-l):l}function reformIntervals(o){o.sort(function(x,T){return S(x,T,0)?-1:1});for(var t=-1/0,r=1,s=0;s<o.length;){for(var l=o[s].interval,h=o[s].close,v=0;v<2;v++)l[v]<=t&&(l[v]=t,h[v]=v?1:1-r),t=l[v],r=h[v];l[0]===l[1]&&h[0]*h[1]!==1?o.splice(s,1):s++}return o;function S(x,T,C){return x.interval[C]<T.interval[C]||x.interval[C]===T.interval[C]&&(x.close[C]-T.close[C]===(C?-1:1)||!C&&S(x,T,1))}}function numericToNumber(o){var t=parseFloat(o);return t==o&&(t!==0||!isString(o)||o.indexOf("x")<=0)?t:NaN}function isNumeric(o){return!isNaN(numericToNumber(o))}function getRandomIdBase(){return Math.round(Math.random()*9)}function getGreatestCommonDividor(o,t){return t===0?o:getGreatestCommonDividor(t,o%t)}function getLeastCommonMultiple(o,t){return o==null?t:t==null?o:o*t/getGreatestCommonDividor(o,t)}var ECHARTS_PREFIX="[ECharts] ",storedLogs={},hasConsole=typeof console<"u"&&console.warn&&console.log;function outputLog(o,t,r){if(hasConsole){if(r){if(storedLogs[t])return;storedLogs[t]=!0}console[o](ECHARTS_PREFIX+t)}}function warn(o,t){outputLog("warn",o,t)}function throwError(o){throw new Error(o)}function interpolateNumber(o,t,r){return(t-o)*r+o}var DUMMY_COMPONENT_NAME_PREFIX="series\0",INTERNAL_COMPONENT_ID_PREFIX="\0_ec_\0";function normalizeToArray(o){return o instanceof Array?o:o==null?[]:[o]}function defaultEmphasis(o,t,r){if(o){o[t]=o[t]||{},o.emphasis=o.emphasis||{},o.emphasis[t]=o.emphasis[t]||{};for(var s=0,l=r.length;s<l;s++){var h=r[s];!o.emphasis[t].hasOwnProperty(h)&&o[t].hasOwnProperty(h)&&(o.emphasis[t][h]=o[t][h])}}}var TEXT_STYLE_OPTIONS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function getDataItemValue(o){return isObject$3(o)&&!isArray$1(o)&&!(o instanceof Date)?o.value:o}function isDataItemOption(o){return isObject$3(o)&&!(o instanceof Array)}function mappingToExists(o,t,r){var s=r==="normalMerge",l=r==="replaceMerge",h=r==="replaceAll";o=o||[],t=(t||[]).slice();var v=createHashMap();each$c(t,function(x,T){if(!isObject$3(x)){t[T]=null;return}});var S=prepareResult(o,v,r);return(s||l)&&mappingById(S,o,v,t),s&&mappingByName(S,t),s||l?mappingByIndex(S,t,l):h&&mappingInReplaceAllMode(S,t),makeIdAndName(S),S}function prepareResult(o,t,r){var s=[];if(r==="replaceAll")return s;for(var l=0;l<o.length;l++){var h=o[l];h&&h.id!=null&&t.set(h.id,l),s.push({existing:r==="replaceMerge"||isComponentIdInternal(h)?null:h,newOption:null,keyInfo:null,brandNew:null})}return s}function mappingById(o,t,r,s){each$c(s,function(l,h){if(!(!l||l.id==null)){var v=makeComparableKey(l.id),S=r.get(v);if(S!=null){var x=o[S];assert(!x.newOption,'Duplicated option on id "'+v+'".'),x.newOption=l,x.existing=t[S],s[h]=null}}})}function mappingByName(o,t){each$c(t,function(r,s){if(!(!r||r.name==null))for(var l=0;l<o.length;l++){var h=o[l].existing;if(!o[l].newOption&&h&&(h.id==null||r.id==null)&&!isComponentIdInternal(r)&&!isComponentIdInternal(h)&&keyExistAndEqual("name",h,r)){o[l].newOption=r,t[s]=null;return}}})}function mappingByIndex(o,t,r){each$c(t,function(s){if(s){for(var l,h=0;(l=o[h])&&(l.newOption||isComponentIdInternal(l.existing)||l.existing&&s.id!=null&&!keyExistAndEqual("id",s,l.existing));)h++;l?(l.newOption=s,l.brandNew=r):o.push({newOption:s,brandNew:r,existing:null,keyInfo:null}),h++}})}function mappingInReplaceAllMode(o,t){each$c(t,function(r){o.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function makeIdAndName(o){var t=createHashMap();each$c(o,function(r){var s=r.existing;s&&t.set(s.id,r)}),each$c(o,function(r){var s=r.newOption;assert(!s||s.id==null||!t.get(s.id)||t.get(s.id)===r,"id duplicates: "+(s&&s.id)),s&&s.id!=null&&t.set(s.id,r),!r.keyInfo&&(r.keyInfo={})}),each$c(o,function(r,s){var l=r.existing,h=r.newOption,v=r.keyInfo;if(isObject$3(h)){if(v.name=h.name!=null?makeComparableKey(h.name):l?l.name:DUMMY_COMPONENT_NAME_PREFIX+s,l)v.id=makeComparableKey(l.id);else if(h.id!=null)v.id=makeComparableKey(h.id);else{var S=0;do v.id="\0"+v.name+"\0"+S++;while(t.get(v.id))}t.set(v.id,r)}})}function keyExistAndEqual(o,t,r){var s=convertOptionIdName(t[o],null),l=convertOptionIdName(r[o],null);return s!=null&&l!=null&&s===l}function makeComparableKey(o){return convertOptionIdName(o,"")}function convertOptionIdName(o,t){return o==null?t:isString(o)?o:isNumber(o)||isStringSafe(o)?o+"":t}function isNameSpecified(o){var t=o.name;return!!(t&&t.indexOf(DUMMY_COMPONENT_NAME_PREFIX))}function isComponentIdInternal(o){return o&&o.id!=null&&makeComparableKey(o.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX)===0}function makeInternalComponentId(o){return INTERNAL_COMPONENT_ID_PREFIX+o}function setComponentTypeToKeyInfo(o,t,r){each$c(o,function(s){var l=s.newOption;isObject$3(l)&&(s.keyInfo.mainType=t,s.keyInfo.subType=determineSubType(t,l,s.existing,r))})}function determineSubType(o,t,r,s){var l=t.type?t.type:r?r.subType:s.determineSubType(o,t);return l}function compressBatches(o,t){var r={},s={};return l(o||[],r),l(t||[],s,r),[h(r),h(s)];function l(v,S,x){for(var T=0,C=v.length;T<C;T++){var M=convertOptionIdName(v[T].seriesId,null);if(M==null)return;for(var w=normalizeToArray(v[T].dataIndex),D=x&&x[M],O=0,N=w.length;O<N;O++){var k=w[O];D&&D[k]?D[k]=null:(S[M]||(S[M]={}))[k]=1}}}function h(v,S){var x=[];for(var T in v)if(v.hasOwnProperty(T)&&v[T]!=null)if(S)x.push(+T);else{var C=h(v[T],!0);C.length&&x.push({seriesId:T,dataIndex:C})}return x}}function queryDataIndex(o,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return isArray$1(t.dataIndex)?map$2(t.dataIndex,function(r){return o.indexOfRawIndex(r)}):o.indexOfRawIndex(t.dataIndex);if(t.name!=null)return isArray$1(t.name)?map$2(t.name,function(r){return o.indexOfName(r)}):o.indexOfName(t.name)}function makeInner(){var o="__ec_inner_"+innerUniqueIndex++;return function(t){return t[o]||(t[o]={})}}var innerUniqueIndex=getRandomIdBase();function parseFinder$1(o,t,r){var s=preParseFinder(t,r),l=s.mainTypeSpecified,h=s.queryOptionMap,v=s.others,S=v,x=r?r.defaultMainType:null;return!l&&x&&h.set(x,{}),h.each(function(T,C){var M=queryReferringComponents(o,C,T,{useDefault:x===C,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});S[C+"Models"]=M.models,S[C+"Model"]=M.models[0]}),S}function preParseFinder(o,t){var r;if(isString(o)){var s={};s[o+"Index"]=0,r=s}else r=o;var l=createHashMap(),h={},v=!1;return each$c(r,function(S,x){if(x==="dataIndex"||x==="dataIndexInside"){h[x]=S;return}var T=x.match(/^(\w+)(Index|Id|Name)$/)||[],C=T[1],M=(T[2]||"").toLowerCase();if(!(!C||!M||t&&t.includeMainTypes&&indexOf(t.includeMainTypes,C)<0)){v=v||!!C;var w=l.get(C)||l.set(C,{});w[M]=S}}),{mainTypeSpecified:v,queryOptionMap:l,others:h}}var SINGLE_REFERRING={useDefault:!0,enableAll:!1,enableNone:!1},MULTIPLE_REFERRING={useDefault:!1,enableAll:!0,enableNone:!0};function queryReferringComponents(o,t,r,s){s=s||SINGLE_REFERRING;var l=r.index,h=r.id,v=r.name,S={models:null,specified:l!=null||h!=null||v!=null};if(!S.specified){var x=void 0;return S.models=s.useDefault&&(x=o.getComponent(t))?[x]:[],S}return l==="none"||l===!1?(assert(s.enableNone,'`"none"` or `false` is not a valid value on index option.'),S.models=[],S):(l==="all"&&(assert(s.enableAll,'`"all"` is not a valid value on index option.'),l=h=v=null),S.models=o.queryComponents({mainType:t,index:l,id:h,name:v}),S)}function setAttribute(o,t,r){o.setAttribute?o.setAttribute(t,r):o[t]=r}function getAttribute(o,t){return o.getAttribute?o.getAttribute(t):o[t]}function getTooltipRenderMode(o){return o==="auto"?env$1.domSupported?"html":"richText":o||"html"}function interpolateRawValues(o,t,r,s,l){var h=t==null||t==="auto";if(s==null)return s;if(isNumber(s)){var v=interpolateNumber(r||0,s,l);return round$1(v,h?Math.max(getPrecision(r||0),getPrecision(s)):t)}else{if(isString(s))return l<1?r:s;for(var S=[],x=r,T=s,C=Math.max(x?x.length:0,T.length),M=0;M<C;++M){var w=o.getDimensionInfo(M);if(w&&w.type==="ordinal")S[M]=(l<1&&x?x:T)[M];else{var D=x&&x[M]?x[M]:0,O=T[M],v=interpolateNumber(D,O,l);S[M]=round$1(v,h?Math.max(getPrecision(D),getPrecision(O)):t)}}return S}}var TYPE_DELIMITER=".",IS_CONTAINER="___EC__COMPONENT__CONTAINER___",IS_EXTENDED_CLASS="___EC__EXTENDED_CLASS___";function parseClassType(o){var t={main:"",sub:""};if(o){var r=o.split(TYPE_DELIMITER);t.main=r[0]||"",t.sub=r[1]||""}return t}function checkClassType(o){assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(o),'componentType "'+o+'" illegal')}function isExtendedClass(o){return!!(o&&o[IS_EXTENDED_CLASS])}function enableClassExtend(o,t){o.$constructor=o,o.extend=function(r){var s=this,l;return isESClass(s)?l=function(h){__extends(v,h);function v(){return h.apply(this,arguments)||this}return v}(s):(l=function(){(r.$constructor||s).apply(this,arguments)},inherits(l,this)),extend(l.prototype,r),l[IS_EXTENDED_CLASS]=!0,l.extend=this.extend,l.superCall=superCall,l.superApply=superApply,l.superClass=s,l}}function isESClass(o){return isFunction(o)&&/^class\s/.test(Function.prototype.toString.call(o))}function mountExtend(o,t){o.extend=t.extend}var classBase=Math.round(Math.random()*10);function enableClassCheck(o){var t=["__\0is_clz",classBase++].join("_");o.prototype[t]=!0,o.isInstance=function(r){return!!(r&&r[t])}}function superCall(o,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];return this.superClass.prototype[t].apply(o,r)}function superApply(o,t,r){return this.superClass.prototype[t].apply(o,r)}function enableClassManagement(o){var t={};o.registerClass=function(s){var l=s.type||s.prototype.type;if(l){checkClassType(l),s.prototype.type=l;var h=parseClassType(l);if(!h.sub)t[h.main]=s;else if(h.sub!==IS_CONTAINER){var v=r(h);v[h.sub]=s}}return s},o.getClass=function(s,l,h){var v=t[s];if(v&&v[IS_CONTAINER]&&(v=l?v[l]:null),h&&!v)throw new Error(l?"Component "+s+"."+(l||"")+" is used but not imported.":s+".type should be specified.");return v},o.getClassesByMainType=function(s){var l=parseClassType(s),h=[],v=t[l.main];return v&&v[IS_CONTAINER]?each$c(v,function(S,x){x!==IS_CONTAINER&&h.push(S)}):h.push(v),h},o.hasClass=function(s){var l=parseClassType(s);return!!t[l.main]},o.getAllClassMainTypes=function(){var s=[];return each$c(t,function(l,h){s.push(h)}),s},o.hasSubTypes=function(s){var l=parseClassType(s),h=t[l.main];return h&&h[IS_CONTAINER]};function r(s){var l=t[s.main];return(!l||!l[IS_CONTAINER])&&(l=t[s.main]={},l[IS_CONTAINER]=!0),l}}function makeStyleMapper(o,t){for(var r=0;r<o.length;r++)o[r][1]||(o[r][1]=o[r][0]);return t=t||!1,function(s,l,h){for(var v={},S=0;S<o.length;S++){var x=o[S][1];if(!(l&&indexOf(l,x)>=0||h&&indexOf(h,x)<0)){var T=s.getShallow(x,t);T!=null&&(v[o[S][0]]=T)}}return v}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function o(){}return o.prototype.getAreaStyle=function(t,r){return getAreaStyle(this,t,r)},o}(),globalImageCache=new LRU$1(50);function findExistImage(o){if(typeof o=="string"){var t=globalImageCache.get(o);return t&&t.image}else return o}function createOrUpdateImage(o,t,r,s,l){if(o)if(typeof o=="string"){if(t&&t.__zrImageSrc===o||!r)return t;var h=globalImageCache.get(o),v={hostEl:r,cb:s,cbPayload:l};return h?(t=h.image,!isImageReady(t)&&h.pending.push(v)):(t=platformApi.loadImage(o,imageOnLoad,imageOnLoad),t.__zrImageSrc=o,globalImageCache.put(o,t.__cachedImgObj={image:t,pending:[v]})),t}else return o;else return t}function imageOnLoad(){var o=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<o.pending.length;t++){var r=o.pending[t],s=r.cb;s&&s(this,r.cbPayload),r.hostEl.dirty()}o.pending.length=0}function isImageReady(o){return o&&o.width&&o.height}var STYLE_REG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function truncateText(o,t,r,s,l){if(!t)return"";var h=(o+"").split(`
|
||
`);l=prepareTruncateOptions(t,r,s,l);for(var v=0,S=h.length;v<S;v++)h[v]=truncateSingleLine(h[v],l);return h.join(`
|
||
`)}function prepareTruncateOptions(o,t,r,s){s=s||{};var l=extend({},s);l.font=t,r=retrieve2(r,"..."),l.maxIterations=retrieve2(s.maxIterations,2);var h=l.minChar=retrieve2(s.minChar,0);l.cnCharWidth=getWidth("国",t);var v=l.ascCharWidth=getWidth("a",t);l.placeholder=retrieve2(s.placeholder,"");for(var S=o=Math.max(0,o-1),x=0;x<h&&S>=v;x++)S-=v;var T=getWidth(r,t);return T>S&&(r="",T=0),S=o-T,l.ellipsis=r,l.ellipsisWidth=T,l.contentWidth=S,l.containerWidth=o,l}function truncateSingleLine(o,t){var r=t.containerWidth,s=t.font,l=t.contentWidth;if(!r)return"";var h=getWidth(o,s);if(h<=r)return o;for(var v=0;;v++){if(h<=l||v>=t.maxIterations){o+=t.ellipsis;break}var S=v===0?estimateLength(o,l,t.ascCharWidth,t.cnCharWidth):h>0?Math.floor(o.length*l/h):0;o=o.substr(0,S),h=getWidth(o,s)}return o===""&&(o=t.placeholder),o}function estimateLength(o,t,r,s){for(var l=0,h=0,v=o.length;h<v&&l<t;h++){var S=o.charCodeAt(h);l+=0<=S&&S<=127?r:s}return h}function parsePlainText(o,t){o!=null&&(o+="");var r=t.overflow,s=t.padding,l=t.font,h=r==="truncate",v=getLineHeight(l),S=retrieve2(t.lineHeight,v),x=!!t.backgroundColor,T=t.lineOverflow==="truncate",C=t.width,M;C!=null&&(r==="break"||r==="breakAll")?M=o?wrapText(o,t.font,C,r==="breakAll",0).lines:[]:M=o?o.split(`
|
||
`):[];var w=M.length*S,D=retrieve2(t.height,w);if(w>D&&T){var O=Math.floor(D/S);M=M.slice(0,O)}if(o&&h&&C!=null)for(var N=prepareTruncateOptions(C,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),k=0;k<M.length;k++)M[k]=truncateSingleLine(M[k],N);for(var F=D,B=0,k=0;k<M.length;k++)B=Math.max(getWidth(M[k],l),B);C==null&&(C=B);var V=B;return s&&(F+=s[0]+s[2],V+=s[1]+s[3],C+=s[1]+s[3]),x&&(V=C),{lines:M,height:D,outerWidth:V,outerHeight:F,lineHeight:S,calculatedLineHeight:v,contentWidth:B,contentHeight:w,width:C}}var RichTextToken=function(){function o(){}return o}(),RichTextLine=function(){function o(t){this.tokens=[],t&&(this.tokens=t)}return o}(),RichTextContentBlock=function(){function o(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return o}();function parseRichText(o,t){var r=new RichTextContentBlock;if(o!=null&&(o+=""),!o)return r;for(var s=t.width,l=t.height,h=t.overflow,v=(h==="break"||h==="breakAll")&&s!=null?{width:s,accumWidth:0,breakAll:h==="breakAll"}:null,S=STYLE_REG.lastIndex=0,x;(x=STYLE_REG.exec(o))!=null;){var T=x.index;T>S&&pushTokens(r,o.substring(S,T),t,v),pushTokens(r,x[2],t,v,x[1]),S=STYLE_REG.lastIndex}S<o.length&&pushTokens(r,o.substring(S,o.length),t,v);var C=[],M=0,w=0,D=t.padding,O=h==="truncate",N=t.lineOverflow==="truncate";function k(se,le,ye){se.width=le,se.lineHeight=ye,M+=ye,w=Math.max(w,le)}e:for(var F=0;F<r.lines.length;F++){for(var B=r.lines[F],V=0,z=0,U=0;U<B.tokens.length;U++){var Y=B.tokens[U],W=Y.styleName&&t.rich[Y.styleName]||{},X=Y.textPadding=W.padding,K=X?X[1]+X[3]:0,J=Y.font=W.font||t.font;Y.contentHeight=getLineHeight(J);var q=retrieve2(W.height,Y.contentHeight);if(Y.innerHeight=q,X&&(q+=X[0]+X[2]),Y.height=q,Y.lineHeight=retrieve3(W.lineHeight,t.lineHeight,q),Y.align=W&&W.align||t.align,Y.verticalAlign=W&&W.verticalAlign||"middle",N&&l!=null&&M+Y.lineHeight>l){U>0?(B.tokens=B.tokens.slice(0,U),k(B,z,V),r.lines=r.lines.slice(0,F+1)):r.lines=r.lines.slice(0,F);break e}var ee=W.width,te=ee==null||ee==="auto";if(typeof ee=="string"&&ee.charAt(ee.length-1)==="%")Y.percentWidth=ee,C.push(Y),Y.contentWidth=getWidth(Y.text,J);else{if(te){var ne=W.backgroundColor,ae=ne&&ne.image;ae&&(ae=findExistImage(ae),isImageReady(ae)&&(Y.width=Math.max(Y.width,ae.width*q/ae.height)))}var oe=O&&s!=null?s-z:null;oe!=null&&oe<Y.width?!te||oe<K?(Y.text="",Y.width=Y.contentWidth=0):(Y.text=truncateText(Y.text,oe-K,J,t.ellipsis,{minChar:t.truncateMinChar}),Y.width=Y.contentWidth=getWidth(Y.text,J)):Y.contentWidth=getWidth(Y.text,J)}Y.width+=K,z+=Y.width,W&&(V=Math.max(V,Y.lineHeight))}k(B,z,V)}r.outerWidth=r.width=retrieve2(s,w),r.outerHeight=r.height=retrieve2(l,M),r.contentHeight=M,r.contentWidth=w,D&&(r.outerWidth+=D[1]+D[3],r.outerHeight+=D[0]+D[2]);for(var F=0;F<C.length;F++){var Y=C[F],Se=Y.percentWidth;Y.width=parseInt(Se,10)/100*r.width}return r}function pushTokens(o,t,r,s,l){var h=t==="",v=l&&r.rich[l]||{},S=o.lines,x=v.font||r.font,T=!1,C,M;if(s){var w=v.padding,D=w?w[1]+w[3]:0;if(v.width!=null&&v.width!=="auto"){var O=parsePercent$1(v.width,s.width)+D;S.length>0&&O+s.accumWidth>s.width&&(C=t.split(`
|
||
`),T=!0),s.accumWidth=O}else{var N=wrapText(t,x,s.width,s.breakAll,s.accumWidth);s.accumWidth=N.accumWidth+D,M=N.linesWidths,C=N.lines}}else C=t.split(`
|
||
`);for(var k=0;k<C.length;k++){var F=C[k],B=new RichTextToken;if(B.styleName=l,B.text=F,B.isLineHolder=!F&&!h,typeof v.width=="number"?B.width=v.width:B.width=M?M[k]:getWidth(F,x),!k&&!T){var V=(S[S.length-1]||(S[0]=new RichTextLine)).tokens,z=V.length;z===1&&V[0].isLineHolder?V[0]=B:(F||!z||h)&&V.push(B)}else S.push(new RichTextLine([B]))}}function isLatin(o){var t=o.charCodeAt(0);return t>=33&&t<=383}var breakCharMap=reduce(",&?/;] ".split(""),function(o,t){return o[t]=!0,o},{});function isWordBreakChar(o){return isLatin(o)?!!breakCharMap[o]:!0}function wrapText(o,t,r,s,l){for(var h=[],v=[],S="",x="",T=0,C=0,M=0;M<o.length;M++){var w=o.charAt(M);if(w===`
|
||
`){x&&(S+=x,C+=T),h.push(S),v.push(C),S="",x="",T=0,C=0;continue}var D=getWidth(w,t),O=s?!1:!isWordBreakChar(w);if(h.length?C+D>r:l+C+D>r){C?(S||x)&&(O?(S||(S=x,x="",T=0,C=T),h.push(S),v.push(C-T),x+=w,T+=D,S="",C=T):(x&&(S+=x,x="",T=0),h.push(S),v.push(C),S=w,C=D)):O?(h.push(x),v.push(T),x=w,T=D):(h.push(w),v.push(D));continue}C+=D,O?(x+=w,T+=D):(x&&(S+=x,x="",T=0),S+=w)}return!h.length&&!S&&(S=o,x="",T=0),x&&(S+=x),S&&(h.push(S),v.push(C)),h.length===1&&(C+=l),{accumWidth:C,lines:h,linesWidths:v}}var STYLE_MAGIC_KEY="__zr_style_"+Math.round(Math.random()*10),DEFAULT_COMMON_STYLE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},DEFAULT_COMMON_ANIMATION_PROPS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY]=!0;var PRIMARY_STATES_KEYS=["z","z2","invisible"],PRIMARY_STATES_KEYS_IN_HOVER_LAYER=["invisible"],Displayable=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype._init=function(r){for(var s=keys(r),l=0;l<s.length;l++){var h=s[l];h==="style"?this.useStyle(r[h]):o.prototype.attrKV.call(this,h,r[h])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,s,l,h){var v=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&isDisplayableCulled(this,r,s)||v&&!v[0]&&!v[3])return!1;if(l&&this.__clipPaths){for(var S=0;S<this.__clipPaths.length;++S)if(this.__clipPaths[S].isZeroArea())return!1}if(h&&this.parent)for(var x=this.parent;x;){if(x.ignore)return!1;x=x.parent}return!0},t.prototype.contain=function(r,s){return this.rectContain(r,s)},t.prototype.traverse=function(r,s){r.call(s,this)},t.prototype.rectContain=function(r,s){var l=this.transformCoordToLocal(r,s),h=this.getBoundingRect();return h.contain(l[0],l[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var s=this.transform,l=this.getBoundingRect(),h=this.style,v=h.shadowBlur||0,S=h.shadowOffsetX||0,x=h.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new BoundingRect$1(0,0,0,0)),s?BoundingRect$1.applyTransform(r,l,s):r.copy(l),(v||S||x)&&(r.width+=v*2+Math.abs(S),r.height+=v*2+Math.abs(x),r.x=Math.min(r.x,r.x+S-v),r.y=Math.min(r.y,r.y+x-v));var T=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-T),r.y=Math.floor(r.y-T),r.width=Math.ceil(r.width+1+T*2),r.height=Math.ceil(r.height+1+T*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new BoundingRect$1(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,s){r!=="style"?o.prototype.attrKV.call(this,r,s):this.style?this.setStyle(s):this.useStyle(s)},t.prototype.setStyle=function(r,s){return typeof r=="string"?this.style[r]=s:extend(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&STYLE_CHANGED_BIT)},t.prototype.styleUpdated=function(){this.__dirty&=~STYLE_CHANGED_BIT},t.prototype.createStyle=function(r){return createObject(DEFAULT_COMMON_STYLE,r)},t.prototype.useStyle=function(r){r[STYLE_MAGIC_KEY]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[STYLE_MAGIC_KEY]},t.prototype._innerSaveToNormal=function(r){o.prototype._innerSaveToNormal.call(this,r);var s=this._normalState;r.style&&!s.style&&(s.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,s,PRIMARY_STATES_KEYS)},t.prototype._applyStateObj=function(r,s,l,h,v,S){o.prototype._applyStateObj.call(this,r,s,l,h,v,S);var x=!(s&&h),T;if(s&&s.style?v?h?T=s.style:(T=this._mergeStyle(this.createStyle(),l.style),this._mergeStyle(T,s.style)):(T=this._mergeStyle(this.createStyle(),h?this.style:l.style),this._mergeStyle(T,s.style)):x&&(T=l.style),T)if(v){var C=this.style;if(this.style=this.createStyle(x?{}:C),x)for(var M=keys(C),w=0;w<M.length;w++){var D=M[w];D in T&&(T[D]=T[D],this.style[D]=C[D])}for(var O=keys(T),w=0;w<O.length;w++){var D=O[w];this.style[D]=this.style[D]}this._transitionState(r,{style:T},S,this.getAnimationStyleProps())}else this.useStyle(T);for(var N=this.__inHover?PRIMARY_STATES_KEYS_IN_HOVER_LAYER:PRIMARY_STATES_KEYS,w=0;w<N.length;w++){var D=N[w];s&&s[D]!=null?this[D]=s[D]:x&&l[D]!=null&&(this[D]=l[D])}},t.prototype._mergeStates=function(r){for(var s=o.prototype._mergeStates.call(this,r),l,h=0;h<r.length;h++){var v=r[h];v.style&&(l=l||{},this._mergeStyle(l,v.style))}return l&&(s.style=l),s},t.prototype._mergeStyle=function(r,s){return extend(r,s),r},t.prototype.getAnimationStyleProps=function(){return DEFAULT_COMMON_ANIMATION_PROPS},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT}(),t}(Element$1),tmpRect=new BoundingRect$1(0,0,0,0),viewRect=new BoundingRect$1(0,0,0,0);function isDisplayableCulled(o,t,r){return tmpRect.copy(o.getBoundingRect()),o.transform&&tmpRect.applyTransform(o.transform),viewRect.width=t,viewRect.height=r,!tmpRect.intersect(viewRect)}const Displayable$1=Displayable;var mathMin$7=Math.min,mathMax$7=Math.max,mathSin$3=Math.sin,mathCos$3=Math.cos,PI2$6=Math.PI*2,start=create$1(),end=create$1(),extremity=create$1();function fromLine(o,t,r,s,l,h){l[0]=mathMin$7(o,r),l[1]=mathMin$7(t,s),h[0]=mathMax$7(o,r),h[1]=mathMax$7(t,s)}var xDim=[],yDim=[];function fromCubic(o,t,r,s,l,h,v,S,x,T){var C=cubicExtrema,M=cubicAt,w=C(o,r,l,v,xDim);x[0]=1/0,x[1]=1/0,T[0]=-1/0,T[1]=-1/0;for(var D=0;D<w;D++){var O=M(o,r,l,v,xDim[D]);x[0]=mathMin$7(O,x[0]),T[0]=mathMax$7(O,T[0])}w=C(t,s,h,S,yDim);for(var D=0;D<w;D++){var N=M(t,s,h,S,yDim[D]);x[1]=mathMin$7(N,x[1]),T[1]=mathMax$7(N,T[1])}x[0]=mathMin$7(o,x[0]),T[0]=mathMax$7(o,T[0]),x[0]=mathMin$7(v,x[0]),T[0]=mathMax$7(v,T[0]),x[1]=mathMin$7(t,x[1]),T[1]=mathMax$7(t,T[1]),x[1]=mathMin$7(S,x[1]),T[1]=mathMax$7(S,T[1])}function fromQuadratic(o,t,r,s,l,h,v,S){var x=quadraticExtremum,T=quadraticAt,C=mathMax$7(mathMin$7(x(o,r,l),1),0),M=mathMax$7(mathMin$7(x(t,s,h),1),0),w=T(o,r,l,C),D=T(t,s,h,M);v[0]=mathMin$7(o,l,w),v[1]=mathMin$7(t,h,D),S[0]=mathMax$7(o,l,w),S[1]=mathMax$7(t,h,D)}function fromArc(o,t,r,s,l,h,v,S,x){var T=min$1,C=max$1,M=Math.abs(l-h);if(M%PI2$6<1e-4&&M>1e-4){S[0]=o-r,S[1]=t-s,x[0]=o+r,x[1]=t+s;return}if(start[0]=mathCos$3(l)*r+o,start[1]=mathSin$3(l)*s+t,end[0]=mathCos$3(h)*r+o,end[1]=mathSin$3(h)*s+t,T(S,start,end),C(x,start,end),l=l%PI2$6,l<0&&(l=l+PI2$6),h=h%PI2$6,h<0&&(h=h+PI2$6),l>h&&!v?h+=PI2$6:l<h&&v&&(l+=PI2$6),v){var w=h;h=l,l=w}for(var D=0;D<h;D+=Math.PI/2)D>l&&(extremity[0]=mathCos$3(D)*r+o,extremity[1]=mathSin$3(D)*s+t,T(S,extremity,S),C(x,extremity,x))}var CMD$2={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$6=Math.min,mathMax$6=Math.max,mathCos$2=Math.cos,mathSin$2=Math.sin,mathAbs$1=Math.abs,PI$4=Math.PI,PI2$5=PI$4*2,hasTypedArray=typeof Float32Array<"u",tmpAngles=[];function modPI2(o){var t=Math.round(o/PI$4*1e8)/1e8;return t%2*PI$4}function normalizeArcAngles(o,t){var r=modPI2(o[0]);r<0&&(r+=PI2$5);var s=r-o[0],l=o[1];l+=s,!t&&l-r>=PI2$5?l=r+PI2$5:t&&r-l>=PI2$5?l=r-PI2$5:!t&&r>l?l=r+(PI2$5-modPI2(r-l)):t&&r<l&&(l=r-(PI2$5-modPI2(l-r))),o[0]=r,o[1]=l}var PathProxy=function(){function o(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return o.prototype.increaseVersion=function(){this._version++},o.prototype.getVersion=function(){return this._version},o.prototype.setScale=function(t,r,s){s=s||0,s>0&&(this._ux=mathAbs$1(s/devicePixelRatio/t)||0,this._uy=mathAbs$1(s/devicePixelRatio/r)||0)},o.prototype.setDPR=function(t){this.dpr=t},o.prototype.setContext=function(t){this._ctx=t},o.prototype.getContext=function(){return this._ctx},o.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},o.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},o.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(CMD$2.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},o.prototype.lineTo=function(t,r){var s=mathAbs$1(t-this._xi),l=mathAbs$1(r-this._yi),h=s>this._ux||l>this._uy;if(this.addData(CMD$2.L,t,r),this._ctx&&h&&this._ctx.lineTo(t,r),h)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var v=s*s+l*l;v>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=v)}return this},o.prototype.bezierCurveTo=function(t,r,s,l,h,v){return this._drawPendingPt(),this.addData(CMD$2.C,t,r,s,l,h,v),this._ctx&&this._ctx.bezierCurveTo(t,r,s,l,h,v),this._xi=h,this._yi=v,this},o.prototype.quadraticCurveTo=function(t,r,s,l){return this._drawPendingPt(),this.addData(CMD$2.Q,t,r,s,l),this._ctx&&this._ctx.quadraticCurveTo(t,r,s,l),this._xi=s,this._yi=l,this},o.prototype.arc=function(t,r,s,l,h,v){this._drawPendingPt(),tmpAngles[0]=l,tmpAngles[1]=h,normalizeArcAngles(tmpAngles,v),l=tmpAngles[0],h=tmpAngles[1];var S=h-l;return this.addData(CMD$2.A,t,r,s,s,l,S,0,v?0:1),this._ctx&&this._ctx.arc(t,r,s,l,h,v),this._xi=mathCos$2(h)*s+t,this._yi=mathSin$2(h)*s+r,this},o.prototype.arcTo=function(t,r,s,l,h){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,s,l,h),this},o.prototype.rect=function(t,r,s,l){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,s,l),this.addData(CMD$2.R,t,r,s,l),this},o.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var t=this._ctx,r=this._x0,s=this._y0;return t&&t.closePath(),this._xi=r,this._yi=s,this},o.prototype.fill=function(t){t&&t.fill(),this.toStatic()},o.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},o.prototype.len=function(){return this._len},o.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&hasTypedArray&&(this.data=new Float32Array(r));for(var s=0;s<r;s++)this.data[s]=t[s];this._len=r},o.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,s=0,l=this._len,h=0;h<r;h++)s+=t[h].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(l+s));for(var h=0;h<r;h++)for(var v=t[h].data,S=0;S<v.length;S++)this.data[l++]=v[S];this._len=l},o.prototype.addData=function(t,r,s,l,h,v,S,x,T){if(this._saveData){var C=this.data;this._len+arguments.length>C.length&&(this._expandData(),C=this.data);for(var M=0;M<arguments.length;M++)C[this._len++]=arguments[M]}},o.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},o.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},o.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,hasTypedArray&&this._len>11&&(this.data=new Float32Array(t)))}},o.prototype.getBoundingRect=function(){min[0]=min[1]=min2[0]=min2[1]=Number.MAX_VALUE,max[0]=max[1]=max2[0]=max2[1]=-Number.MAX_VALUE;var t=this.data,r=0,s=0,l=0,h=0,v;for(v=0;v<this._len;){var S=t[v++],x=v===1;switch(x&&(r=t[v],s=t[v+1],l=r,h=s),S){case CMD$2.M:r=l=t[v++],s=h=t[v++],min2[0]=l,min2[1]=h,max2[0]=l,max2[1]=h;break;case CMD$2.L:fromLine(r,s,t[v],t[v+1],min2,max2),r=t[v++],s=t[v++];break;case CMD$2.C:fromCubic(r,s,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],min2,max2),r=t[v++],s=t[v++];break;case CMD$2.Q:fromQuadratic(r,s,t[v++],t[v++],t[v],t[v+1],min2,max2),r=t[v++],s=t[v++];break;case CMD$2.A:var T=t[v++],C=t[v++],M=t[v++],w=t[v++],D=t[v++],O=t[v++]+D;v+=1;var N=!t[v++];x&&(l=mathCos$2(D)*M+T,h=mathSin$2(D)*w+C),fromArc(T,C,M,w,D,O,N,min2,max2),r=mathCos$2(O)*M+T,s=mathSin$2(O)*w+C;break;case CMD$2.R:l=r=t[v++],h=s=t[v++];var k=t[v++],F=t[v++];fromLine(l,h,l+k,h+F,min2,max2);break;case CMD$2.Z:r=l,s=h;break}min$1(min,min,min2),max$1(max,max,max2)}return v===0&&(min[0]=min[1]=max[0]=max[1]=0),new BoundingRect$1(min[0],min[1],max[0]-min[0],max[1]-min[1])},o.prototype._calculateLength=function(){var t=this.data,r=this._len,s=this._ux,l=this._uy,h=0,v=0,S=0,x=0;this._pathSegLen||(this._pathSegLen=[]);for(var T=this._pathSegLen,C=0,M=0,w=0;w<r;){var D=t[w++],O=w===1;O&&(h=t[w],v=t[w+1],S=h,x=v);var N=-1;switch(D){case CMD$2.M:h=S=t[w++],v=x=t[w++];break;case CMD$2.L:{var k=t[w++],F=t[w++],B=k-h,V=F-v;(mathAbs$1(B)>s||mathAbs$1(V)>l||w===r-1)&&(N=Math.sqrt(B*B+V*V),h=k,v=F);break}case CMD$2.C:{var z=t[w++],U=t[w++],k=t[w++],F=t[w++],Y=t[w++],W=t[w++];N=cubicLength(h,v,z,U,k,F,Y,W,10),h=Y,v=W;break}case CMD$2.Q:{var z=t[w++],U=t[w++],k=t[w++],F=t[w++];N=quadraticLength(h,v,z,U,k,F,10),h=k,v=F;break}case CMD$2.A:var X=t[w++],K=t[w++],J=t[w++],q=t[w++],ee=t[w++],te=t[w++],ne=te+ee;w+=1,t[w++],O&&(S=mathCos$2(ee)*J+X,x=mathSin$2(ee)*q+K),N=mathMax$6(J,q)*mathMin$6(PI2$5,Math.abs(te)),h=mathCos$2(ne)*J+X,v=mathSin$2(ne)*q+K;break;case CMD$2.R:{S=h=t[w++],x=v=t[w++];var ae=t[w++],oe=t[w++];N=ae*2+oe*2;break}case CMD$2.Z:{var B=S-h,V=x-v;N=Math.sqrt(B*B+V*V),h=S,v=x;break}}N>=0&&(T[M++]=N,C+=N)}return this._pathLen=C,C},o.prototype.rebuildPath=function(t,r){var s=this.data,l=this._ux,h=this._uy,v=this._len,S,x,T,C,M,w,D=r<1,O,N,k=0,F=0,B,V=0,z,U;if(D&&(this._pathSegLen||this._calculateLength(),O=this._pathSegLen,N=this._pathLen,B=r*N,!B))return;e:for(var Y=0;Y<v;){var W=s[Y++],X=Y===1;switch(X&&(T=s[Y],C=s[Y+1],S=T,x=C),W!==CMD$2.L&&V>0&&(t.lineTo(z,U),V=0),W){case CMD$2.M:S=T=s[Y++],x=C=s[Y++],t.moveTo(T,C);break;case CMD$2.L:{M=s[Y++],w=s[Y++];var K=mathAbs$1(M-T),J=mathAbs$1(w-C);if(K>l||J>h){if(D){var q=O[F++];if(k+q>B){var ee=(B-k)/q;t.lineTo(T*(1-ee)+M*ee,C*(1-ee)+w*ee);break e}k+=q}t.lineTo(M,w),T=M,C=w,V=0}else{var te=K*K+J*J;te>V&&(z=M,U=w,V=te)}break}case CMD$2.C:{var ne=s[Y++],ae=s[Y++],oe=s[Y++],Se=s[Y++],se=s[Y++],le=s[Y++];if(D){var q=O[F++];if(k+q>B){var ee=(B-k)/q;cubicSubdivide(T,ne,oe,se,ee,tmpOutX),cubicSubdivide(C,ae,Se,le,ee,tmpOutY),t.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}k+=q}t.bezierCurveTo(ne,ae,oe,Se,se,le),T=se,C=le;break}case CMD$2.Q:{var ne=s[Y++],ae=s[Y++],oe=s[Y++],Se=s[Y++];if(D){var q=O[F++];if(k+q>B){var ee=(B-k)/q;quadraticSubdivide(T,ne,oe,ee,tmpOutX),quadraticSubdivide(C,ae,Se,ee,tmpOutY),t.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}k+=q}t.quadraticCurveTo(ne,ae,oe,Se),T=oe,C=Se;break}case CMD$2.A:var ye=s[Y++],we=s[Y++],Me=s[Y++],Ee=s[Y++],Pe=s[Y++],$e=s[Y++],Ie=s[Y++],Be=!s[Y++],Ne=Me>Ee?Me:Ee,he=mathAbs$1(Me-Ee)>.001,Te=Pe+$e,me=!1;if(D){var q=O[F++];k+q>B&&(Te=Pe+$e*(B-k)/q,me=!0),k+=q}if(he&&t.ellipse?t.ellipse(ye,we,Me,Ee,Ie,Pe,Te,Be):t.arc(ye,we,Ne,Pe,Te,Be),me)break e;X&&(S=mathCos$2(Pe)*Me+ye,x=mathSin$2(Pe)*Ee+we),T=mathCos$2(Te)*Me+ye,C=mathSin$2(Te)*Ee+we;break;case CMD$2.R:S=T=s[Y],x=C=s[Y+1],M=s[Y++],w=s[Y++];var Ce=s[Y++],Fe=s[Y++];if(D){var q=O[F++];if(k+q>B){var Oe=B-k;t.moveTo(M,w),t.lineTo(M+mathMin$6(Oe,Ce),w),Oe-=Ce,Oe>0&&t.lineTo(M+Ce,w+mathMin$6(Oe,Fe)),Oe-=Fe,Oe>0&&t.lineTo(M+mathMax$6(Ce-Oe,0),w+Fe),Oe-=Ce,Oe>0&&t.lineTo(M,w+mathMax$6(Fe-Oe,0));break e}k+=q}t.rect(M,w,Ce,Fe);break;case CMD$2.Z:if(D){var q=O[F++];if(k+q>B){var ee=(B-k)/q;t.lineTo(T*(1-ee)+S*ee,C*(1-ee)+x*ee);break e}k+=q}t.closePath(),T=S,C=x}}},o.prototype.clone=function(){var t=new o,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},o.CMD=CMD$2,o.initDefaultProps=function(){var t=o.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),o}();const PathProxy$1=PathProxy;function containStroke$4(o,t,r,s,l,h,v){if(l===0)return!1;var S=l,x=0,T=o;if(v>t+S&&v>s+S||v<t-S&&v<s-S||h>o+S&&h>r+S||h<o-S&&h<r-S)return!1;if(o!==r)x=(t-s)/(o-r),T=(o*s-r*t)/(o-r);else return Math.abs(h-o)<=S/2;var C=x*h-v+T,M=C*C/(x*x+1);return M<=S/2*S/2}function containStroke$3(o,t,r,s,l,h,v,S,x,T,C){if(x===0)return!1;var M=x;if(C>t+M&&C>s+M&&C>h+M&&C>S+M||C<t-M&&C<s-M&&C<h-M&&C<S-M||T>o+M&&T>r+M&&T>l+M&&T>v+M||T<o-M&&T<r-M&&T<l-M&&T<v-M)return!1;var w=cubicProjectPoint(o,t,r,s,l,h,v,S,T,C,null);return w<=M/2}function containStroke$2(o,t,r,s,l,h,v,S,x){if(v===0)return!1;var T=v;if(x>t+T&&x>s+T&&x>h+T||x<t-T&&x<s-T&&x<h-T||S>o+T&&S>r+T&&S>l+T||S<o-T&&S<r-T&&S<l-T)return!1;var C=quadraticProjectPoint(o,t,r,s,l,h,S,x,null);return C<=T/2}var PI2$4=Math.PI*2;function normalizeRadian(o){return o%=PI2$4,o<0&&(o+=PI2$4),o}var PI2$3=Math.PI*2;function containStroke$1(o,t,r,s,l,h,v,S,x){if(v===0)return!1;var T=v;S-=o,x-=t;var C=Math.sqrt(S*S+x*x);if(C-T>r||C+T<r)return!1;if(Math.abs(s-l)%PI2$3<1e-4)return!0;if(h){var M=s;s=normalizeRadian(l),l=normalizeRadian(M)}else s=normalizeRadian(s),l=normalizeRadian(l);s>l&&(l+=PI2$3);var w=Math.atan2(x,S);return w<0&&(w+=PI2$3),w>=s&&w<=l||w+PI2$3>=s&&w+PI2$3<=l}function windingLine(o,t,r,s,l,h){if(h>t&&h>s||h<t&&h<s||s===t)return 0;var v=(h-t)/(s-t),S=s<t?1:-1;(v===1||v===0)&&(S=s<t?.5:-.5);var x=v*(r-o)+o;return x===l?1/0:x>l?S:0}var CMD$1=PathProxy$1.CMD,PI2$2=Math.PI*2,EPSILON$1=1e-4;function isAroundEqual$1(o,t){return Math.abs(o-t)<EPSILON$1}var roots=[-1,-1,-1],extrema=[-1,-1];function swapExtrema(){var o=extrema[0];extrema[0]=extrema[1],extrema[1]=o}function windingCubic(o,t,r,s,l,h,v,S,x,T){if(T>t&&T>s&&T>h&&T>S||T<t&&T<s&&T<h&&T<S)return 0;var C=cubicRootAt(t,s,h,S,T,roots);if(C===0)return 0;for(var M=0,w=-1,D=void 0,O=void 0,N=0;N<C;N++){var k=roots[N],F=k===0||k===1?.5:1,B=cubicAt(o,r,l,v,k);B<x||(w<0&&(w=cubicExtrema(t,s,h,S,extrema),extrema[1]<extrema[0]&&w>1&&swapExtrema(),D=cubicAt(t,s,h,S,extrema[0]),w>1&&(O=cubicAt(t,s,h,S,extrema[1]))),w===2?k<extrema[0]?M+=D<t?F:-F:k<extrema[1]?M+=O<D?F:-F:M+=S<O?F:-F:k<extrema[0]?M+=D<t?F:-F:M+=S<D?F:-F)}return M}function windingQuadratic(o,t,r,s,l,h,v,S){if(S>t&&S>s&&S>h||S<t&&S<s&&S<h)return 0;var x=quadraticRootAt(t,s,h,S,roots);if(x===0)return 0;var T=quadraticExtremum(t,s,h);if(T>=0&&T<=1){for(var C=0,M=quadraticAt(t,s,h,T),w=0;w<x;w++){var D=roots[w]===0||roots[w]===1?.5:1,O=quadraticAt(o,r,l,roots[w]);O<v||(roots[w]<T?C+=M<t?D:-D:C+=h<M?D:-D)}return C}else{var D=roots[0]===0||roots[0]===1?.5:1,O=quadraticAt(o,r,l,roots[0]);return O<v?0:h<t?D:-D}}function windingArc(o,t,r,s,l,h,v,S){if(S-=t,S>r||S<-r)return 0;var x=Math.sqrt(r*r-S*S);roots[0]=-x,roots[1]=x;var T=Math.abs(s-l);if(T<1e-4)return 0;if(T>=PI2$2-1e-4){s=0,l=PI2$2;var C=h?1:-1;return v>=roots[0]+o&&v<=roots[1]+o?C:0}if(s>l){var M=s;s=l,l=M}s<0&&(s+=PI2$2,l+=PI2$2);for(var w=0,D=0;D<2;D++){var O=roots[D];if(O+o>v){var N=Math.atan2(S,O),C=h?1:-1;N<0&&(N=PI2$2+N),(N>=s&&N<=l||N+PI2$2>=s&&N+PI2$2<=l)&&(N>Math.PI/2&&N<Math.PI*1.5&&(C=-C),w+=C)}}return w}function containPath(o,t,r,s,l){for(var h=o.data,v=o.len(),S=0,x=0,T=0,C=0,M=0,w,D,O=0;O<v;){var N=h[O++],k=O===1;switch(N===CMD$1.M&&O>1&&(r||(S+=windingLine(x,T,C,M,s,l))),k&&(x=h[O],T=h[O+1],C=x,M=T),N){case CMD$1.M:C=h[O++],M=h[O++],x=C,T=M;break;case CMD$1.L:if(r){if(containStroke$4(x,T,h[O],h[O+1],t,s,l))return!0}else S+=windingLine(x,T,h[O],h[O+1],s,l)||0;x=h[O++],T=h[O++];break;case CMD$1.C:if(r){if(containStroke$3(x,T,h[O++],h[O++],h[O++],h[O++],h[O],h[O+1],t,s,l))return!0}else S+=windingCubic(x,T,h[O++],h[O++],h[O++],h[O++],h[O],h[O+1],s,l)||0;x=h[O++],T=h[O++];break;case CMD$1.Q:if(r){if(containStroke$2(x,T,h[O++],h[O++],h[O],h[O+1],t,s,l))return!0}else S+=windingQuadratic(x,T,h[O++],h[O++],h[O],h[O+1],s,l)||0;x=h[O++],T=h[O++];break;case CMD$1.A:var F=h[O++],B=h[O++],V=h[O++],z=h[O++],U=h[O++],Y=h[O++];O+=1;var W=!!(1-h[O++]);w=Math.cos(U)*V+F,D=Math.sin(U)*z+B,k?(C=w,M=D):S+=windingLine(x,T,w,D,s,l);var X=(s-F)*z/V+F;if(r){if(containStroke$1(F,B,z,U,U+Y,W,t,X,l))return!0}else S+=windingArc(F,B,z,U,U+Y,W,X,l);x=Math.cos(U+Y)*V+F,T=Math.sin(U+Y)*z+B;break;case CMD$1.R:C=x=h[O++],M=T=h[O++];var K=h[O++],J=h[O++];if(w=C+K,D=M+J,r){if(containStroke$4(C,M,w,M,t,s,l)||containStroke$4(w,M,w,D,t,s,l)||containStroke$4(w,D,C,D,t,s,l)||containStroke$4(C,D,C,M,t,s,l))return!0}else S+=windingLine(w,M,w,D,s,l),S+=windingLine(C,D,C,M,s,l);break;case CMD$1.Z:if(r){if(containStroke$4(x,T,C,M,t,s,l))return!0}else S+=windingLine(x,T,C,M,s,l);x=C,T=M;break}}return!r&&!isAroundEqual$1(T,M)&&(S+=windingLine(x,T,C,M,s,l)||0),S!==0}function contain$2(o,t,r){return containPath(o,0,!1,t,r)}function containStroke(o,t,r,s){return containPath(o,t,!0,r,s)}var DEFAULT_PATH_STYLE=defaults({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DEFAULT_COMMON_STYLE),DEFAULT_PATH_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},pathCopyParams=TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),Path=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype.update=function(){var r=this;o.prototype.update.call(this);var s=this.style;if(s.decal){var l=this._decalEl=this._decalEl||new t;l.buildPath===t.prototype.buildPath&&(l.buildPath=function(x){r.buildPath(x,r.shape)}),l.silent=!0;var h=l.style;for(var v in s)h[v]!==s[v]&&(h[v]=s[v]);h.fill=s.fill?s.decal:null,h.decal=null,h.shadowColor=null,s.strokeFirst&&(h.stroke=null);for(var S=0;S<pathCopyParams.length;++S)l[pathCopyParams[S]]=this[pathCopyParams[S]];l.__dirty|=REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var s=keys(r);this.shape=this.getDefaultShape();var l=this.getDefaultStyle();l&&this.useStyle(l);for(var h=0;h<s.length;h++){var v=s[h],S=r[v];v==="style"?this.style?extend(this.style,S):this.useStyle(S):v==="shape"?extend(this.shape,S):o.prototype.attrKV.call(this,v,S)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(isString(r)){var s=lum(r,0);return s>.5?DARK_LABEL_COLOR:s>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(r)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},t.prototype.getInsideTextStroke=function(r){var s=this.style.fill;if(isString(s)){var l=this.__zr,h=!!(l&&l.isDarkMode()),v=lum(r,0)<DARK_MODE_THRESHOLD;if(h===v)return s}},t.prototype.buildPath=function(r,s,l){},t.prototype.pathUpdated=function(){this.__dirty&=~SHAPE_CHANGED_BIT},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new PathProxy$1(!1)},t.prototype.hasStroke=function(){var r=this.style,s=r.stroke;return!(s==null||s==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,s=r.fill;return s!=null&&s!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,s=this.style,l=!r;if(l){var h=!1;this.path||(h=!0,this.createPathProxy());var v=this.path;(h||this.__dirty&SHAPE_CHANGED_BIT)&&(v.beginPath(),this.buildPath(v,this.shape,!1),this.pathUpdated()),r=v.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var S=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||l){S.copy(r);var x=s.strokeNoScale?this.getLineScale():1,T=s.lineWidth;if(!this.hasFill()){var C=this.strokeContainThreshold;T=Math.max(T,C??4)}x>1e-10&&(S.width+=T/x,S.height+=T/x,S.x-=T/x/2,S.y-=T/x/2)}return S}return r},t.prototype.contain=function(r,s){var l=this.transformCoordToLocal(r,s),h=this.getBoundingRect(),v=this.style;if(r=l[0],s=l[1],h.contain(r,s)){var S=this.path;if(this.hasStroke()){var x=v.lineWidth,T=v.strokeNoScale?this.getLineScale():1;if(T>1e-10&&(this.hasFill()||(x=Math.max(x,this.strokeContainThreshold)),containStroke(S,x/T,r,s)))return!0}if(this.hasFill())return contain$2(S,r,s)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,s){r==="shape"?this.setShape(s):o.prototype.attrKV.call(this,r,s)},t.prototype.setShape=function(r,s){var l=this.shape;return l||(l=this.shape={}),typeof r=="string"?l[r]=s:extend(l,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},t.prototype.createStyle=function(r){return createObject(DEFAULT_PATH_STYLE,r)},t.prototype._innerSaveToNormal=function(r){o.prototype._innerSaveToNormal.call(this,r);var s=this._normalState;r.shape&&!s.shape&&(s.shape=extend({},this.shape))},t.prototype._applyStateObj=function(r,s,l,h,v,S){o.prototype._applyStateObj.call(this,r,s,l,h,v,S);var x=!(s&&h),T;if(s&&s.shape?v?h?T=s.shape:(T=extend({},l.shape),extend(T,s.shape)):(T=extend({},h?this.shape:l.shape),extend(T,s.shape)):x&&(T=l.shape),T)if(v){this.shape=extend({},this.shape);for(var C={},M=keys(T),w=0;w<M.length;w++){var D=M[w];typeof T[D]=="object"?this.shape[D]=T[D]:C[D]=T[D]}this._transitionState(r,{shape:C},S)}else this.shape=T,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var s=o.prototype._mergeStates.call(this,r),l,h=0;h<r.length;h++){var v=r[h];v.shape&&(l=l||{},this._mergeStyle(l,v.shape))}return l&&(s.shape=l),s},t.prototype.getAnimationStyleProps=function(){return DEFAULT_PATH_ANIMATION_PROPS},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var s=function(h){__extends(v,h);function v(S){var x=h.call(this,S)||this;return r.init&&r.init.call(x,S),x}return v.prototype.getDefaultStyle=function(){return clone$3(r.style)},v.prototype.getDefaultShape=function(){return clone$3(r.shape)},v}(t);for(var l in r)typeof r[l]=="function"&&(s.prototype[l]=r[l]);return s},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT|SHAPE_CHANGED_BIT}(),t}(Displayable$1);const Path$1=Path;var DEFAULT_TSPAN_STYLE=defaults({strokeFirst:!0,font:DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},DEFAULT_PATH_STYLE),TSpan=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,s=r.stroke;return s!=null&&s!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,s=r.fill;return s!=null&&s!=="none"},t.prototype.createStyle=function(r){return createObject(DEFAULT_TSPAN_STYLE,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var s=r.text;s!=null?s+="":s="";var l=getBoundingRect(s,r.font,r.textAlign,r.textBaseline);if(l.x+=r.x||0,l.y+=r.y||0,this.hasStroke()){var h=r.lineWidth;l.x-=h/2,l.y-=h/2,l.width+=h,l.height+=h}this._rect=l}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Displayable$1);TSpan.prototype.type="tspan";const TSpan$1=TSpan;var DEFAULT_IMAGE_STYLE=defaults({x:0,y:0},DEFAULT_COMMON_STYLE),DEFAULT_IMAGE_ANIMATION_PROPS={style:defaults({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)};function isImageLike(o){return!!(o&&typeof o!="string"&&o.width&&o.height)}var ZRImage=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return createObject(DEFAULT_IMAGE_STYLE,r)},t.prototype._getSize=function(r){var s=this.style,l=s[r];if(l!=null)return l;var h=isImageLike(s.image)?s.image:this.__image;if(!h)return 0;var v=r==="width"?"height":"width",S=s[v];return S==null?h[r]:h[r]/h[v]*S},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new BoundingRect$1(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Displayable$1);ZRImage.prototype.type="image";const ZRImage$1=ZRImage;function buildPath$2(o,t){var r=t.x,s=t.y,l=t.width,h=t.height,v=t.r,S,x,T,C;l<0&&(r=r+l,l=-l),h<0&&(s=s+h,h=-h),typeof v=="number"?S=x=T=C=v:v instanceof Array?v.length===1?S=x=T=C=v[0]:v.length===2?(S=T=v[0],x=C=v[1]):v.length===3?(S=v[0],x=C=v[1],T=v[2]):(S=v[0],x=v[1],T=v[2],C=v[3]):S=x=T=C=0;var M;S+x>l&&(M=S+x,S*=l/M,x*=l/M),T+C>l&&(M=T+C,T*=l/M,C*=l/M),x+T>h&&(M=x+T,x*=h/M,T*=h/M),S+C>h&&(M=S+C,S*=h/M,C*=h/M),o.moveTo(r+S,s),o.lineTo(r+l-x,s),x!==0&&o.arc(r+l-x,s+x,x,-Math.PI/2,0),o.lineTo(r+l,s+h-T),T!==0&&o.arc(r+l-T,s+h-T,T,0,Math.PI/2),o.lineTo(r+C,s+h),C!==0&&o.arc(r+C,s+h-C,C,Math.PI/2,Math.PI),o.lineTo(r,s+S),S!==0&&o.arc(r+S,s+S,S,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1(o,t,r){if(t){var s=t.x1,l=t.x2,h=t.y1,v=t.y2;o.x1=s,o.x2=l,o.y1=h,o.y2=v;var S=r&&r.lineWidth;return S&&(round(s*2)===round(l*2)&&(o.x1=o.x2=subPixelOptimize$1(s,S,!0)),round(h*2)===round(v*2)&&(o.y1=o.y2=subPixelOptimize$1(h,S,!0))),o}}function subPixelOptimizeRect$1(o,t,r){if(t){var s=t.x,l=t.y,h=t.width,v=t.height;o.x=s,o.y=l,o.width=h,o.height=v;var S=r&&r.lineWidth;return S&&(o.x=subPixelOptimize$1(s,S,!0),o.y=subPixelOptimize$1(l,S,!0),o.width=Math.max(subPixelOptimize$1(s+h,S,!1)-o.x,h===0?0:1),o.height=Math.max(subPixelOptimize$1(l+v,S,!1)-o.y,v===0?0:1)),o}}function subPixelOptimize$1(o,t,r){if(!t)return o;var s=round(o*2);return(s+round(t))%2===0?s/2:(s+(r?1:-1))/2}var RectShape=function(){function o(){this.x=0,this.y=0,this.width=0,this.height=0}return o}(),subPixelOptimizeOutputShape$1={},Rect$1=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new RectShape},t.prototype.buildPath=function(r,s){var l,h,v,S;if(this.subPixelOptimize){var x=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,s,this.style);l=x.x,h=x.y,v=x.width,S=x.height,x.r=s.r,s=x}else l=s.x,h=s.y,v=s.width,S=s.height;s.r?buildPath$2(r,s):r.rect(l,h,v,S)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Path$1);Rect$1.prototype.type="rect";const Rect$2=Rect$1;var DEFAULT_RICH_TEXT_COLOR={fill:"#000"},DEFAULT_STROKE_LINE_WIDTH=2,DEFAULT_TEXT_ANIMATION_PROPS={style:defaults({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},DEFAULT_COMMON_ANIMATION_PROPS.style)},ZRText=function(o){__extends(t,o);function t(r){var s=o.call(this)||this;return s.type="text",s._children=[],s._defaultStyle=DEFAULT_RICH_TEXT_COLOR,s.attr(r),s}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){o.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var s=this._children[r];s.zlevel=this.zlevel,s.z=this.z,s.z2=this.z2,s.culling=this.culling,s.cursor=this.cursor,s.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):o.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var s=this.innerTransformable;return s?s.getLocalTransform(r):o.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),o.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,normalizeTextStyle(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){o.prototype.addSelfToZr.call(this,r);for(var s=0;s<this._children.length;s++)this._children[s].__zr=r},t.prototype.removeSelfFromZr=function(r){o.prototype.removeSelfFromZr.call(this,r);for(var s=0;s<this._children.length;s++)this._children[s].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new BoundingRect$1(0,0,0,0),s=this._children,l=[],h=null,v=0;v<s.length;v++){var S=s[v],x=S.getBoundingRect(),T=S.getLocalTransform(l);T?(r.copy(x),r.applyTransform(T),h=h||r.clone(),h.union(r)):(h=h||x.clone(),h.union(x))}this._rect=h||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||DEFAULT_RICH_TEXT_COLOR},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,s){if(!s)return r;var l=s.rich,h=r.rich||l&&{};return extend(r,s),l&&h?(this._mergeRich(h,l),r.rich=h):h&&(r.rich=h),r},t.prototype._mergeRich=function(r,s){for(var l=keys(s),h=0;h<l.length;h++){var v=l[h];r[v]=r[v]||{},extend(r[v],s[v])}},t.prototype.getAnimationStyleProps=function(){return DEFAULT_TEXT_ANIMATION_PROPS},t.prototype._getOrCreateChild=function(r){var s=this._children[this._childCursor];return(!s||!(s instanceof r))&&(s=new r),this._children[this._childCursor++]=s,s.__zr=this.__zr,s.parent=this,s},t.prototype._updatePlainTexts=function(){var r=this.style,s=r.font||DEFAULT_FONT,l=r.padding,h=getStyleText(r),v=parsePlainText(h,r),S=needDrawBackground(r),x=!!r.backgroundColor,T=v.outerHeight,C=v.outerWidth,M=v.contentWidth,w=v.lines,D=v.lineHeight,O=this._defaultStyle,N=r.x||0,k=r.y||0,F=r.align||O.align||"left",B=r.verticalAlign||O.verticalAlign||"top",V=N,z=adjustTextY(k,v.contentHeight,B);if(S||l){var U=adjustTextX(N,C,F),Y=adjustTextY(k,T,B);S&&this._renderBackground(r,r,U,Y,C,T)}z+=D/2,l&&(V=getTextXForPadding(N,F,l),B==="top"?z+=l[0]:B==="bottom"&&(z-=l[2]));for(var W=0,X=!1,K=getFill("fill"in r?r.fill:(X=!0,O.fill)),J=getStroke("stroke"in r?r.stroke:!x&&(!O.autoStroke||X)?(W=DEFAULT_STROKE_LINE_WIDTH,O.stroke):null),q=r.textShadowBlur>0,ee=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),te=v.calculatedLineHeight,ne=0;ne<w.length;ne++){var ae=this._getOrCreateChild(TSpan$1),oe=ae.createStyle();ae.useStyle(oe),oe.text=w[ne],oe.x=V,oe.y=z,F&&(oe.textAlign=F),oe.textBaseline="middle",oe.opacity=r.opacity,oe.strokeFirst=!0,q&&(oe.shadowBlur=r.textShadowBlur||0,oe.shadowColor=r.textShadowColor||"transparent",oe.shadowOffsetX=r.textShadowOffsetX||0,oe.shadowOffsetY=r.textShadowOffsetY||0),oe.stroke=J,oe.fill=K,J&&(oe.lineWidth=r.lineWidth||W,oe.lineDash=r.lineDash,oe.lineDashOffset=r.lineDashOffset||0),oe.font=s,setSeparateFont(oe,r),z+=D,ee&&ae.setBoundingRect(new BoundingRect$1(adjustTextX(oe.x,r.width,oe.textAlign),adjustTextY(oe.y,te,oe.textBaseline),M,te))}},t.prototype._updateRichTexts=function(){var r=this.style,s=getStyleText(r),l=parseRichText(s,r),h=l.width,v=l.outerWidth,S=l.outerHeight,x=r.padding,T=r.x||0,C=r.y||0,M=this._defaultStyle,w=r.align||M.align,D=r.verticalAlign||M.verticalAlign,O=adjustTextX(T,v,w),N=adjustTextY(C,S,D),k=O,F=N;x&&(k+=x[3],F+=x[0]);var B=k+h;needDrawBackground(r)&&this._renderBackground(r,r,O,N,v,S);for(var V=!!r.backgroundColor,z=0;z<l.lines.length;z++){for(var U=l.lines[z],Y=U.tokens,W=Y.length,X=U.lineHeight,K=U.width,J=0,q=k,ee=B,te=W-1,ne=void 0;J<W&&(ne=Y[J],!ne.align||ne.align==="left");)this._placeToken(ne,r,X,F,q,"left",V),K-=ne.width,q+=ne.width,J++;for(;te>=0&&(ne=Y[te],ne.align==="right");)this._placeToken(ne,r,X,F,ee,"right",V),K-=ne.width,ee-=ne.width,te--;for(q+=(h-(q-k)-(B-ee)-K)/2;J<=te;)ne=Y[J],this._placeToken(ne,r,X,F,q+ne.width/2,"center",V),q+=ne.width,J++;F+=X}},t.prototype._placeToken=function(r,s,l,h,v,S,x){var T=s.rich[r.styleName]||{};T.text=r.text;var C=r.verticalAlign,M=h+l/2;C==="top"?M=h+r.height/2:C==="bottom"&&(M=h+l-r.height/2);var w=!r.isLineHolder&&needDrawBackground(T);w&&this._renderBackground(T,s,S==="right"?v-r.width:S==="center"?v-r.width/2:v,M-r.height/2,r.width,r.height);var D=!!T.backgroundColor,O=r.textPadding;O&&(v=getTextXForPadding(v,S,O),M-=r.height/2-O[0]-r.innerHeight/2);var N=this._getOrCreateChild(TSpan$1),k=N.createStyle();N.useStyle(k);var F=this._defaultStyle,B=!1,V=0,z=getFill("fill"in T?T.fill:"fill"in s?s.fill:(B=!0,F.fill)),U=getStroke("stroke"in T?T.stroke:"stroke"in s?s.stroke:!D&&!x&&(!F.autoStroke||B)?(V=DEFAULT_STROKE_LINE_WIDTH,F.stroke):null),Y=T.textShadowBlur>0||s.textShadowBlur>0;k.text=r.text,k.x=v,k.y=M,Y&&(k.shadowBlur=T.textShadowBlur||s.textShadowBlur||0,k.shadowColor=T.textShadowColor||s.textShadowColor||"transparent",k.shadowOffsetX=T.textShadowOffsetX||s.textShadowOffsetX||0,k.shadowOffsetY=T.textShadowOffsetY||s.textShadowOffsetY||0),k.textAlign=S,k.textBaseline="middle",k.font=r.font||DEFAULT_FONT,k.opacity=retrieve3(T.opacity,s.opacity,1),setSeparateFont(k,T),U&&(k.lineWidth=retrieve3(T.lineWidth,s.lineWidth,V),k.lineDash=retrieve2(T.lineDash,s.lineDash),k.lineDashOffset=s.lineDashOffset||0,k.stroke=U),z&&(k.fill=z);var W=r.contentWidth,X=r.contentHeight;N.setBoundingRect(new BoundingRect$1(adjustTextX(k.x,W,k.textAlign),adjustTextY(k.y,X,k.textBaseline),W,X))},t.prototype._renderBackground=function(r,s,l,h,v,S){var x=r.backgroundColor,T=r.borderWidth,C=r.borderColor,M=x&&x.image,w=x&&!M,D=r.borderRadius,O=this,N,k;if(w||r.lineHeight||T&&C){N=this._getOrCreateChild(Rect$2),N.useStyle(N.createStyle()),N.style.fill=null;var F=N.shape;F.x=l,F.y=h,F.width=v,F.height=S,F.r=D,N.dirtyShape()}if(w){var B=N.style;B.fill=x||null,B.fillOpacity=retrieve2(r.fillOpacity,1)}else if(M){k=this._getOrCreateChild(ZRImage$1),k.onload=function(){O.dirtyStyle()};var V=k.style;V.image=x.image,V.x=l,V.y=h,V.width=v,V.height=S}if(T&&C){var B=N.style;B.lineWidth=T,B.stroke=C,B.strokeOpacity=retrieve2(r.strokeOpacity,1),B.lineDash=r.borderDash,B.lineDashOffset=r.borderDashOffset||0,N.strokeContainThreshold=0,N.hasFill()&&N.hasStroke()&&(B.strokeFirst=!0,B.lineWidth*=2)}var z=(N||k).style;z.shadowBlur=r.shadowBlur||0,z.shadowColor=r.shadowColor||"transparent",z.shadowOffsetX=r.shadowOffsetX||0,z.shadowOffsetY=r.shadowOffsetY||0,z.opacity=retrieve3(r.opacity,s.opacity,1)},t.makeFont=function(r){var s="";return hasSeparateFont(r)&&(s=[r.fontStyle,r.fontWeight,parseFontSize(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),s&&trim$1(s)||r.textFont||r.font},t}(Displayable$1),VALID_TEXT_ALIGN={left:!0,right:1,center:1},VALID_TEXT_VERTICAL_ALIGN={top:1,bottom:1,middle:1},FONT_PARTS=["fontStyle","fontWeight","fontSize","fontFamily"];function parseFontSize(o){return typeof o=="string"&&(o.indexOf("px")!==-1||o.indexOf("rem")!==-1||o.indexOf("em")!==-1)?o:isNaN(+o)?DEFAULT_FONT_SIZE+"px":o+"px"}function setSeparateFont(o,t){for(var r=0;r<FONT_PARTS.length;r++){var s=FONT_PARTS[r],l=t[s];l!=null&&(o[s]=l)}}function hasSeparateFont(o){return o.fontSize!=null||o.fontFamily||o.fontWeight}function normalizeTextStyle(o){return normalizeStyle(o),each$c(o.rich,normalizeStyle),o}function normalizeStyle(o){if(o){o.font=ZRText.makeFont(o);var t=o.align;t==="middle"&&(t="center"),o.align=t==null||VALID_TEXT_ALIGN[t]?t:"left";var r=o.verticalAlign;r==="center"&&(r="middle"),o.verticalAlign=r==null||VALID_TEXT_VERTICAL_ALIGN[r]?r:"top";var s=o.padding;s&&(o.padding=normalizeCssArray$1(o.padding))}}function getStroke(o,t){return o==null||t<=0||o==="transparent"||o==="none"?null:o.image||o.colorStops?"#000":o}function getFill(o){return o==null||o==="none"?null:o.image||o.colorStops?"#000":o}function getTextXForPadding(o,t,r){return t==="right"?o-r[1]:t==="center"?o+r[3]/2-r[1]/2:o+r[3]}function getStyleText(o){var t=o.text;return t!=null&&(t+=""),t}function needDrawBackground(o){return!!(o.backgroundColor||o.lineHeight||o.borderWidth&&o.borderColor)}const ZRText$1=ZRText;var getECData=makeInner(),setCommonECData=function(o,t,r,s){if(s){var l=getECData(s);l.dataIndex=r,l.dataType=t,l.seriesIndex=o,s.type==="group"&&s.traverse(function(h){var v=getECData(h);v.seriesIndex=o,v.dataIndex=r,v.dataType=t})}},_highlightNextDigit=1,_highlightKeyMap={},getSavedStates=makeInner(),getComponentStates=makeInner(),HOVER_STATE_NORMAL=0,HOVER_STATE_BLUR=1,HOVER_STATE_EMPHASIS=2,SPECIAL_STATES=["emphasis","blur","select"],DISPLAY_STATES=["normal","emphasis","blur","select"],Z2_EMPHASIS_LIFT=10,Z2_SELECT_LIFT=9,HIGHLIGHT_ACTION_TYPE="highlight",DOWNPLAY_ACTION_TYPE="downplay",SELECT_ACTION_TYPE="select",UNSELECT_ACTION_TYPE="unselect",TOGGLE_SELECT_ACTION_TYPE="toggleSelect";function hasFillOrStroke(o){return o!=null&&o!=="none"}var liftedColorCache=new LRU$1(100);function liftColor(o){if(isString(o)){var t=liftedColorCache.get(o);return t||(t=lift(o,-.1),liftedColorCache.put(o,t)),t}else if(isGradientObject(o)){var r=extend({},o);return r.colorStops=map$2(o.colorStops,function(s){return{offset:s.offset,color:lift(s.color,-.1)}}),r}return o}function doChangeHoverState(o,t,r){o.onHoverStateChange&&(o.hoverState||0)!==r&&o.onHoverStateChange(t),o.hoverState=r}function singleEnterEmphasis(o){doChangeHoverState(o,"emphasis",HOVER_STATE_EMPHASIS)}function singleLeaveEmphasis(o){o.hoverState===HOVER_STATE_EMPHASIS&&doChangeHoverState(o,"normal",HOVER_STATE_NORMAL)}function singleEnterBlur(o){doChangeHoverState(o,"blur",HOVER_STATE_BLUR)}function singleLeaveBlur(o){o.hoverState===HOVER_STATE_BLUR&&doChangeHoverState(o,"normal",HOVER_STATE_NORMAL)}function singleEnterSelect(o){o.selected=!0}function singleLeaveSelect(o){o.selected=!1}function updateElementState(o,t,r){t(o,r)}function traverseUpdateState(o,t,r){updateElementState(o,t,r),o.isGroup&&o.traverse(function(s){updateElementState(s,t,r)})}function setStatesFlag(o,t){switch(t){case"emphasis":o.hoverState=HOVER_STATE_EMPHASIS;break;case"normal":o.hoverState=HOVER_STATE_NORMAL;break;case"blur":o.hoverState=HOVER_STATE_BLUR;break;case"select":o.selected=!0}}function getFromStateStyle(o,t,r,s){for(var l=o.style,h={},v=0;v<t.length;v++){var S=t[v],x=l[S];h[S]=x??(s&&s[S])}for(var v=0;v<o.animators.length;v++){var T=o.animators[v];T.__fromStateTransition&&T.__fromStateTransition.indexOf(r)<0&&T.targetName==="style"&&T.saveTo(h,t)}return h}function createEmphasisDefaultState(o,t,r,s){var l=r&&indexOf(r,"select")>=0,h=!1;if(o instanceof Path$1){var v=getSavedStates(o),S=l&&v.selectFill||v.normalFill,x=l&&v.selectStroke||v.normalStroke;if(hasFillOrStroke(S)||hasFillOrStroke(x)){s=s||{};var T=s.style||{};T.fill==="inherit"?(h=!0,s=extend({},s),T=extend({},T),T.fill=S):!hasFillOrStroke(T.fill)&&hasFillOrStroke(S)?(h=!0,s=extend({},s),T=extend({},T),T.fill=liftColor(S)):!hasFillOrStroke(T.stroke)&&hasFillOrStroke(x)&&(h||(s=extend({},s),T=extend({},T)),T.stroke=liftColor(x)),s.style=T}}if(s&&s.z2==null){h||(s=extend({},s));var C=o.z2EmphasisLift;s.z2=o.z2+(C??Z2_EMPHASIS_LIFT)}return s}function createSelectDefaultState(o,t,r){if(r&&r.z2==null){r=extend({},r);var s=o.z2SelectLift;r.z2=o.z2+(s??Z2_SELECT_LIFT)}return r}function createBlurDefaultState(o,t,r){var s=indexOf(o.currentStates,t)>=0,l=o.style.opacity,h=s?null:getFromStateStyle(o,["opacity"],t,{opacity:1});r=r||{};var v=r.style||{};return v.opacity==null&&(r=extend({},r),v=extend({opacity:s?l:h.opacity*.1},v),r.style=v),r}function elementStateProxy(o,t){var r=this.states[o];if(this.style){if(o==="emphasis")return createEmphasisDefaultState(this,o,t,r);if(o==="blur")return createBlurDefaultState(this,o,r);if(o==="select")return createSelectDefaultState(this,o,r)}return r}function setDefaultStateProxy(o){o.stateProxy=elementStateProxy;var t=o.getTextContent(),r=o.getTextGuideLine();t&&(t.stateProxy=elementStateProxy),r&&(r.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver(o,t){!shouldSilent(o,t)&&!o.__highByOuter&&traverseUpdateState(o,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut(o,t){!shouldSilent(o,t)&&!o.__highByOuter&&traverseUpdateState(o,singleLeaveEmphasis)}function enterEmphasis(o,t){o.__highByOuter|=1<<(t||0),traverseUpdateState(o,singleEnterEmphasis)}function leaveEmphasis(o,t){!(o.__highByOuter&=~(1<<(t||0)))&&traverseUpdateState(o,singleLeaveEmphasis)}function enterBlur(o){traverseUpdateState(o,singleEnterBlur)}function leaveBlur(o){traverseUpdateState(o,singleLeaveBlur)}function enterSelect(o){traverseUpdateState(o,singleEnterSelect)}function leaveSelect(o){traverseUpdateState(o,singleLeaveSelect)}function shouldSilent(o,t){return o.__highDownSilentOnTouch&&t.zrByTouch}function allLeaveBlur(o){var t=o.getModel(),r=[],s=[];t.eachComponent(function(l,h){var v=getComponentStates(h),S=l==="series",x=S?o.getViewOfSeriesModel(h):o.getViewOfComponentModel(h);!S&&s.push(x),v.isBlured&&(x.group.traverse(function(T){singleLeaveBlur(T)}),S&&r.push(h)),v.isBlured=!1}),each$c(s,function(l){l&&l.toggleBlurSeries&&l.toggleBlurSeries(r,!1,t)})}function blurSeries(o,t,r,s){var l=s.getModel();r=r||"coordinateSystem";function h(T,C){for(var M=0;M<C.length;M++){var w=T.getItemGraphicEl(C[M]);w&&leaveBlur(w)}}if(o!=null&&!(!t||t==="none")){var v=l.getSeriesByIndex(o),S=v.coordinateSystem;S&&S.master&&(S=S.master);var x=[];l.eachSeries(function(T){var C=v===T,M=T.coordinateSystem;M&&M.master&&(M=M.master);var w=M&&S?M===S:C;if(!(r==="series"&&!C||r==="coordinateSystem"&&!w||t==="series"&&C)){var D=s.getViewOfSeriesModel(T);if(D.group.traverse(function(k){singleEnterBlur(k)}),isArrayLike(t))h(T.getData(),t);else if(isObject$3(t))for(var O=keys(t),N=0;N<O.length;N++)h(T.getData(O[N]),t[O[N]]);x.push(T),getComponentStates(T).isBlured=!0}}),l.eachComponent(function(T,C){if(T!=="series"){var M=s.getViewOfComponentModel(C);M&&M.toggleBlurSeries&&M.toggleBlurSeries(x,!0,l)}})}}function blurComponent(o,t,r){if(!(o==null||t==null)){var s=r.getModel().getComponent(o,t);if(s){getComponentStates(s).isBlured=!0;var l=r.getViewOfComponentModel(s);!l||!l.focusBlurEnabled||l.group.traverse(function(h){singleEnterBlur(h)})}}}function blurSeriesFromHighlightPayload(o,t,r){var s=o.seriesIndex,l=o.getData(t.dataType);if(l){var h=queryDataIndex(l,t);h=(isArray$1(h)?h[0]:h)||0;var v=l.getItemGraphicEl(h);if(!v)for(var S=l.count(),x=0;!v&&x<S;)v=l.getItemGraphicEl(x++);if(v){var T=getECData(v);blurSeries(s,T.focus,T.blurScope,r)}else{var C=o.get(["emphasis","focus"]),M=o.get(["emphasis","blurScope"]);C!=null&&blurSeries(s,C,M,r)}}}function findComponentHighDownDispatchers(o,t,r,s){var l={focusSelf:!1,dispatchers:null};if(o==null||o==="series"||t==null||r==null)return l;var h=s.getModel().getComponent(o,t);if(!h)return l;var v=s.getViewOfComponentModel(h);if(!v||!v.findHighDownDispatchers)return l;for(var S=v.findHighDownDispatchers(r),x,T=0;T<S.length;T++)if(getECData(S[T]).focus==="self"){x=!0;break}return{focusSelf:x,dispatchers:S}}function handleGlobalMouseOverForHighDown(o,t,r){var s=getECData(o),l=findComponentHighDownDispatchers(s.componentMainType,s.componentIndex,s.componentHighDownName,r),h=l.dispatchers,v=l.focusSelf;h?(v&&blurComponent(s.componentMainType,s.componentIndex,r),each$c(h,function(S){return enterEmphasisWhenMouseOver(S,t)})):(blurSeries(s.seriesIndex,s.focus,s.blurScope,r),s.focus==="self"&&blurComponent(s.componentMainType,s.componentIndex,r),enterEmphasisWhenMouseOver(o,t))}function handleGlobalMouseOutForHighDown(o,t,r){allLeaveBlur(r);var s=getECData(o),l=findComponentHighDownDispatchers(s.componentMainType,s.componentIndex,s.componentHighDownName,r).dispatchers;l?each$c(l,function(h){return leaveEmphasisWhenMouseOut(h,t)}):leaveEmphasisWhenMouseOut(o,t)}function toggleSelectionFromPayload(o,t,r){if(isSelectChangePayload(t)){var s=t.dataType,l=o.getData(s),h=queryDataIndex(l,t);isArray$1(h)||(h=[h]),o[t.type===TOGGLE_SELECT_ACTION_TYPE?"toggleSelect":t.type===SELECT_ACTION_TYPE?"select":"unselect"](h,s)}}function updateSeriesElementSelection(o){var t=o.getAllData();each$c(t,function(r){var s=r.data,l=r.type;s.eachItemGraphicEl(function(h,v){o.isSelected(v,l)?enterSelect(h):leaveSelect(h)})})}function getAllSelectedIndices(o){var t=[];return o.eachSeries(function(r){var s=r.getAllData();each$c(s,function(l){l.data;var h=l.type,v=r.getSelectedDataIndices();if(v.length>0){var S={dataIndex:v,seriesIndex:r.seriesIndex};h!=null&&(S.dataType=h),t.push(S)}})}),t}function enableHoverEmphasis(o,t,r){setAsHighDownDispatcher(o,!0),traverseUpdateState(o,setDefaultStateProxy),enableHoverFocus(o,t,r)}function disableHoverEmphasis(o){setAsHighDownDispatcher(o,!1)}function toggleHoverEmphasis(o,t,r,s){s?disableHoverEmphasis(o):enableHoverEmphasis(o,t,r)}function enableHoverFocus(o,t,r){var s=getECData(o);t!=null?(s.focus=t,s.blurScope=r):s.focus&&(s.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel(o,t,r,s){r=r||"itemStyle";for(var l=0;l<OTHER_STATES.length;l++){var h=OTHER_STATES[l],v=t.getModel([h,r]),S=o.ensureState(h);S.style=s?s(v):v[defaultStyleGetterMap[r]]()}}function setAsHighDownDispatcher(o,t){var r=t===!1,s=o;o.highDownSilentOnTouch&&(s.__highDownSilentOnTouch=o.highDownSilentOnTouch),(!r||s.__highDownDispatcher)&&(s.__highByOuter=s.__highByOuter||0,s.__highDownDispatcher=!r)}function isHighDownDispatcher(o){return!!(o&&o.__highDownDispatcher)}function getHighlightDigit(o){var t=_highlightKeyMap[o];return t==null&&_highlightNextDigit<=32&&(t=_highlightKeyMap[o]=_highlightNextDigit++),t}function isSelectChangePayload(o){var t=o.type;return t===SELECT_ACTION_TYPE||t===UNSELECT_ACTION_TYPE||t===TOGGLE_SELECT_ACTION_TYPE}function isHighDownPayload(o){var t=o.type;return t===HIGHLIGHT_ACTION_TYPE||t===DOWNPLAY_ACTION_TYPE}function savePathStates(o){var t=getSavedStates(o);t.normalFill=o.style.fill,t.normalStroke=o.style.stroke;var r=o.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var CMD=PathProxy$1.CMD,points=[[],[],[]],mathSqrt$2=Math.sqrt,mathAtan2=Math.atan2;function transformPath(o,t){if(t){var r=o.data,s=o.len(),l,h,v,S,x,T,C=CMD.M,M=CMD.C,w=CMD.L,D=CMD.R,O=CMD.A,N=CMD.Q;for(v=0,S=0;v<s;){switch(l=r[v++],S=v,h=0,l){case C:h=1;break;case w:h=1;break;case M:h=3;break;case N:h=2;break;case O:var k=t[4],F=t[5],B=mathSqrt$2(t[0]*t[0]+t[1]*t[1]),V=mathSqrt$2(t[2]*t[2]+t[3]*t[3]),z=mathAtan2(-t[1]/V,t[0]/B);r[v]*=B,r[v++]+=k,r[v]*=V,r[v++]+=F,r[v++]*=B,r[v++]*=V,r[v++]+=z,r[v++]+=z,v+=2,S=v;break;case D:T[0]=r[v++],T[1]=r[v++],applyTransform$1(T,T,t),r[S++]=T[0],r[S++]=T[1],T[0]+=r[v++],T[1]+=r[v++],applyTransform$1(T,T,t),r[S++]=T[0],r[S++]=T[1]}for(x=0;x<h;x++){var U=points[x];U[0]=r[v++],U[1]=r[v++],applyTransform$1(U,U,t),r[S++]=U[0],r[S++]=U[1]}}o.increaseVersion()}}var mathSqrt$1=Math.sqrt,mathSin$1=Math.sin,mathCos$1=Math.cos,PI$3=Math.PI;function vMag(o){return Math.sqrt(o[0]*o[0]+o[1]*o[1])}function vRatio(o,t){return(o[0]*t[0]+o[1]*t[1])/(vMag(o)*vMag(t))}function vAngle(o,t){return(o[0]*t[1]<o[1]*t[0]?-1:1)*Math.acos(vRatio(o,t))}function processArc(o,t,r,s,l,h,v,S,x,T,C){var M=x*(PI$3/180),w=mathCos$1(M)*(o-r)/2+mathSin$1(M)*(t-s)/2,D=-1*mathSin$1(M)*(o-r)/2+mathCos$1(M)*(t-s)/2,O=w*w/(v*v)+D*D/(S*S);O>1&&(v*=mathSqrt$1(O),S*=mathSqrt$1(O));var N=(l===h?-1:1)*mathSqrt$1((v*v*(S*S)-v*v*(D*D)-S*S*(w*w))/(v*v*(D*D)+S*S*(w*w)))||0,k=N*v*D/S,F=N*-S*w/v,B=(o+r)/2+mathCos$1(M)*k-mathSin$1(M)*F,V=(t+s)/2+mathSin$1(M)*k+mathCos$1(M)*F,z=vAngle([1,0],[(w-k)/v,(D-F)/S]),U=[(w-k)/v,(D-F)/S],Y=[(-1*w-k)/v,(-1*D-F)/S],W=vAngle(U,Y);if(vRatio(U,Y)<=-1&&(W=PI$3),vRatio(U,Y)>=1&&(W=0),W<0){var X=Math.round(W/PI$3*1e6)/1e6;W=PI$3*2+X%2*PI$3}C.addData(T,B,V,v,S,z,W,M,h)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString(o){var t=new PathProxy$1;if(!o)return t;var r=0,s=0,l=r,h=s,v,S=PathProxy$1.CMD,x=o.match(commandReg);if(!x)return t;for(var T=0;T<x.length;T++){for(var C=x[T],M=C.charAt(0),w=void 0,D=C.match(numberReg)||[],O=D.length,N=0;N<O;N++)D[N]=parseFloat(D[N]);for(var k=0;k<O;){var F=void 0,B=void 0,V=void 0,z=void 0,U=void 0,Y=void 0,W=void 0,X=r,K=s,J=void 0,q=void 0;switch(M){case"l":r+=D[k++],s+=D[k++],w=S.L,t.addData(w,r,s);break;case"L":r=D[k++],s=D[k++],w=S.L,t.addData(w,r,s);break;case"m":r+=D[k++],s+=D[k++],w=S.M,t.addData(w,r,s),l=r,h=s,M="l";break;case"M":r=D[k++],s=D[k++],w=S.M,t.addData(w,r,s),l=r,h=s,M="L";break;case"h":r+=D[k++],w=S.L,t.addData(w,r,s);break;case"H":r=D[k++],w=S.L,t.addData(w,r,s);break;case"v":s+=D[k++],w=S.L,t.addData(w,r,s);break;case"V":s=D[k++],w=S.L,t.addData(w,r,s);break;case"C":w=S.C,t.addData(w,D[k++],D[k++],D[k++],D[k++],D[k++],D[k++]),r=D[k-2],s=D[k-1];break;case"c":w=S.C,t.addData(w,D[k++]+r,D[k++]+s,D[k++]+r,D[k++]+s,D[k++]+r,D[k++]+s),r+=D[k-2],s+=D[k-1];break;case"S":F=r,B=s,J=t.len(),q=t.data,v===S.C&&(F+=r-q[J-4],B+=s-q[J-3]),w=S.C,X=D[k++],K=D[k++],r=D[k++],s=D[k++],t.addData(w,F,B,X,K,r,s);break;case"s":F=r,B=s,J=t.len(),q=t.data,v===S.C&&(F+=r-q[J-4],B+=s-q[J-3]),w=S.C,X=r+D[k++],K=s+D[k++],r+=D[k++],s+=D[k++],t.addData(w,F,B,X,K,r,s);break;case"Q":X=D[k++],K=D[k++],r=D[k++],s=D[k++],w=S.Q,t.addData(w,X,K,r,s);break;case"q":X=D[k++]+r,K=D[k++]+s,r+=D[k++],s+=D[k++],w=S.Q,t.addData(w,X,K,r,s);break;case"T":F=r,B=s,J=t.len(),q=t.data,v===S.Q&&(F+=r-q[J-4],B+=s-q[J-3]),r=D[k++],s=D[k++],w=S.Q,t.addData(w,F,B,r,s);break;case"t":F=r,B=s,J=t.len(),q=t.data,v===S.Q&&(F+=r-q[J-4],B+=s-q[J-3]),r+=D[k++],s+=D[k++],w=S.Q,t.addData(w,F,B,r,s);break;case"A":V=D[k++],z=D[k++],U=D[k++],Y=D[k++],W=D[k++],X=r,K=s,r=D[k++],s=D[k++],w=S.A,processArc(X,K,r,s,Y,W,V,z,U,w,t);break;case"a":V=D[k++],z=D[k++],U=D[k++],Y=D[k++],W=D[k++],X=r,K=s,r+=D[k++],s+=D[k++],w=S.A,processArc(X,K,r,s,Y,W,V,z,U,w,t);break}}(M==="z"||M==="Z")&&(w=S.Z,t.addData(w),r=l,s=h),v=w}return t.toStatic(),t}var SVGPath=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Path$1);function isPathProxy(o){return o.setData!=null}function createPathOptions(o,t){var r=createPathProxyFromString(o),s=extend({},t);return s.buildPath=function(l){if(isPathProxy(l)){l.setData(r.data);var h=l.getContext();h&&l.rebuildPath(h,1)}else{var h=l;r.rebuildPath(h,1)}},s.applyTransform=function(l){transformPath(r,l),this.dirtyShape()},s}function createFromString(o,t){return new SVGPath(createPathOptions(o,t))}function extendFromString(o,t){var r=createPathOptions(o,t),s=function(l){__extends(h,l);function h(v){var S=l.call(this,v)||this;return S.applyTransform=r.applyTransform,S.buildPath=r.buildPath,S}return h}(SVGPath);return s}function mergePath$1(o,t){for(var r=[],s=o.length,l=0;l<s;l++){var h=o[l];r.push(h.getUpdatedPathProxy(!0))}var v=new Path$1(t);return v.createPathProxy(),v.buildPath=function(S){if(isPathProxy(S)){S.appendPath(r);var x=S.getContext();x&&S.rebuildPath(x,1)}},v}var CircleShape=function(){function o(){this.cx=0,this.cy=0,this.r=0}return o}(),Circle=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new CircleShape},t.prototype.buildPath=function(r,s){r.moveTo(s.cx+s.r,s.cy),r.arc(s.cx,s.cy,s.r,0,Math.PI*2)},t}(Path$1);Circle.prototype.type="circle";const Circle$1=Circle;var EllipseShape=function(){function o(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return o}(),Ellipse=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new EllipseShape},t.prototype.buildPath=function(r,s){var l=.5522848,h=s.cx,v=s.cy,S=s.rx,x=s.ry,T=S*l,C=x*l;r.moveTo(h-S,v),r.bezierCurveTo(h-S,v-C,h-T,v-x,h,v-x),r.bezierCurveTo(h+T,v-x,h+S,v-C,h+S,v),r.bezierCurveTo(h+S,v+C,h+T,v+x,h,v+x),r.bezierCurveTo(h-T,v+x,h-S,v+C,h-S,v),r.closePath()},t}(Path$1);Ellipse.prototype.type="ellipse";const Ellipse$1=Ellipse;var PI$2=Math.PI,PI2$1=PI$2*2,mathSin=Math.sin,mathCos=Math.cos,mathACos=Math.acos,mathATan2=Math.atan2,mathAbs=Math.abs,mathSqrt=Math.sqrt,mathMax$5=Math.max,mathMin$5=Math.min,e=1e-4;function intersect(o,t,r,s,l,h,v,S){var x=r-o,T=s-t,C=v-l,M=S-h,w=M*x-C*T;if(!(w*w<e))return w=(C*(t-h)-M*(o-l))/w,[o+w*x,t+w*T]}function computeCornerTangents(o,t,r,s,l,h,v){var S=o-r,x=t-s,T=(v?h:-h)/mathSqrt(S*S+x*x),C=T*x,M=-T*S,w=o+C,D=t+M,O=r+C,N=s+M,k=(w+O)/2,F=(D+N)/2,B=O-w,V=N-D,z=B*B+V*V,U=l-h,Y=w*N-O*D,W=(V<0?-1:1)*mathSqrt(mathMax$5(0,U*U*z-Y*Y)),X=(Y*V-B*W)/z,K=(-Y*B-V*W)/z,J=(Y*V+B*W)/z,q=(-Y*B+V*W)/z,ee=X-k,te=K-F,ne=J-k,ae=q-F;return ee*ee+te*te>ne*ne+ae*ae&&(X=J,K=q),{cx:X,cy:K,x0:-C,y0:-M,x1:X*(l/U-1),y1:K*(l/U-1)}}function normalizeCornerRadius(o){var t;if(isArray$1(o)){var r=o.length;if(!r)return o;r===1?t=[o[0],o[0],0,0]:r===2?t=[o[0],o[0],o[1],o[1]]:r===3?t=o.concat(o[2]):t=o}else t=[o,o,o,o];return t}function buildPath$1(o,t){var r,s=mathMax$5(t.r,0),l=mathMax$5(t.r0||0,0),h=s>0,v=l>0;if(!(!h&&!v)){if(h||(s=l,l=0),l>s){var S=s;s=l,l=S}var x=t.startAngle,T=t.endAngle;if(!(isNaN(x)||isNaN(T))){var C=t.cx,M=t.cy,w=!!t.clockwise,D=mathAbs(T-x),O=D>PI2$1&&D%PI2$1;if(O>e&&(D=O),!(s>e))o.moveTo(C,M);else if(D>PI2$1-e)o.moveTo(C+s*mathCos(x),M+s*mathSin(x)),o.arc(C,M,s,x,T,!w),l>e&&(o.moveTo(C+l*mathCos(T),M+l*mathSin(T)),o.arc(C,M,l,T,x,w));else{var N=void 0,k=void 0,F=void 0,B=void 0,V=void 0,z=void 0,U=void 0,Y=void 0,W=void 0,X=void 0,K=void 0,J=void 0,q=void 0,ee=void 0,te=void 0,ne=void 0,ae=s*mathCos(x),oe=s*mathSin(x),Se=l*mathCos(T),se=l*mathSin(T),le=D>e;if(le){var ye=t.cornerRadius;ye&&(r=normalizeCornerRadius(ye),N=r[0],k=r[1],F=r[2],B=r[3]);var we=mathAbs(s-l)/2;if(V=mathMin$5(we,F),z=mathMin$5(we,B),U=mathMin$5(we,N),Y=mathMin$5(we,k),K=W=mathMax$5(V,z),J=X=mathMax$5(U,Y),(W>e||X>e)&&(q=s*mathCos(T),ee=s*mathSin(T),te=l*mathCos(x),ne=l*mathSin(x),D<PI$2)){var Me=intersect(ae,oe,te,ne,q,ee,Se,se);if(Me){var Ee=ae-Me[0],Pe=oe-Me[1],$e=q-Me[0],Ie=ee-Me[1],Be=1/mathSin(mathACos((Ee*$e+Pe*Ie)/(mathSqrt(Ee*Ee+Pe*Pe)*mathSqrt($e*$e+Ie*Ie)))/2),Ne=mathSqrt(Me[0]*Me[0]+Me[1]*Me[1]);K=mathMin$5(W,(s-Ne)/(Be+1)),J=mathMin$5(X,(l-Ne)/(Be-1))}}}if(!le)o.moveTo(C+ae,M+oe);else if(K>e){var he=mathMin$5(F,K),Te=mathMin$5(B,K),me=computeCornerTangents(te,ne,ae,oe,s,he,w),Ce=computeCornerTangents(q,ee,Se,se,s,Te,w);o.moveTo(C+me.cx+me.x0,M+me.cy+me.y0),K<W&&he===Te?o.arc(C+me.cx,M+me.cy,K,mathATan2(me.y0,me.x0),mathATan2(Ce.y0,Ce.x0),!w):(he>0&&o.arc(C+me.cx,M+me.cy,he,mathATan2(me.y0,me.x0),mathATan2(me.y1,me.x1),!w),o.arc(C,M,s,mathATan2(me.cy+me.y1,me.cx+me.x1),mathATan2(Ce.cy+Ce.y1,Ce.cx+Ce.x1),!w),Te>0&&o.arc(C+Ce.cx,M+Ce.cy,Te,mathATan2(Ce.y1,Ce.x1),mathATan2(Ce.y0,Ce.x0),!w))}else o.moveTo(C+ae,M+oe),o.arc(C,M,s,x,T,!w);if(!(l>e)||!le)o.lineTo(C+Se,M+se);else if(J>e){var he=mathMin$5(N,J),Te=mathMin$5(k,J),me=computeCornerTangents(Se,se,q,ee,l,-Te,w),Ce=computeCornerTangents(ae,oe,te,ne,l,-he,w);o.lineTo(C+me.cx+me.x0,M+me.cy+me.y0),J<X&&he===Te?o.arc(C+me.cx,M+me.cy,J,mathATan2(me.y0,me.x0),mathATan2(Ce.y0,Ce.x0),!w):(Te>0&&o.arc(C+me.cx,M+me.cy,Te,mathATan2(me.y0,me.x0),mathATan2(me.y1,me.x1),!w),o.arc(C,M,l,mathATan2(me.cy+me.y1,me.cx+me.x1),mathATan2(Ce.cy+Ce.y1,Ce.cx+Ce.x1),w),he>0&&o.arc(C+Ce.cx,M+Ce.cy,he,mathATan2(Ce.y1,Ce.x1),mathATan2(Ce.y0,Ce.x0),!w))}else o.lineTo(C+Se,M+se),o.arc(C,M,l,T,x,w)}o.closePath()}}}var SectorShape=function(){function o(){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 o}(),Sector=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new SectorShape},t.prototype.buildPath=function(r,s){buildPath$1(r,s)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Path$1);Sector.prototype.type="sector";const Sector$1=Sector;var RingShape=function(){function o(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return o}(),Ring=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new RingShape},t.prototype.buildPath=function(r,s){var l=s.cx,h=s.cy,v=Math.PI*2;r.moveTo(l+s.r,h),r.arc(l,h,s.r,0,v,!1),r.moveTo(l+s.r0,h),r.arc(l,h,s.r0,0,v,!0)},t}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier(o,t,r,s){var l=[],h=[],v=[],S=[],x,T,C,M;if(s){C=[1/0,1/0],M=[-1/0,-1/0];for(var w=0,D=o.length;w<D;w++)min$1(C,C,o[w]),max$1(M,M,o[w]);min$1(C,C,s[0]),max$1(M,M,s[1])}for(var w=0,D=o.length;w<D;w++){var O=o[w];if(r)x=o[w?w-1:D-1],T=o[(w+1)%D];else if(w===0||w===D-1){l.push(clone$2(o[w]));continue}else x=o[w-1],T=o[w+1];sub(h,T,x),scale$2(h,h,t);var N=distance(O,x),k=distance(O,T),F=N+k;F!==0&&(N/=F,k/=F),scale$2(v,h,-N),scale$2(S,h,k);var B=add([],O,v),V=add([],O,S);s&&(max$1(B,B,C),min$1(B,B,M),max$1(V,V,C),min$1(V,V,M)),l.push(B),l.push(V)}return r&&l.push(l.shift()),l}function buildPath(o,t,r){var s=t.smooth,l=t.points;if(l&&l.length>=2){if(s){var h=smoothBezier(l,s,r,t.smoothConstraint);o.moveTo(l[0][0],l[0][1]);for(var v=l.length,S=0;S<(r?v:v-1);S++){var x=h[S*2],T=h[S*2+1],C=l[(S+1)%v];o.bezierCurveTo(x[0],x[1],T[0],T[1],C[0],C[1])}}else{o.moveTo(l[0][0],l[0][1]);for(var S=1,M=l.length;S<M;S++)o.lineTo(l[S][0],l[S][1])}r&&o.closePath()}}var PolygonShape=function(){function o(){this.points=null,this.smooth=0,this.smoothConstraint=null}return o}(),Polygon=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new PolygonShape},t.prototype.buildPath=function(r,s){buildPath(r,s,!0)},t}(Path$1);Polygon.prototype.type="polygon";const Polygon$1=Polygon;var PolylineShape=function(){function o(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return o}(),Polyline=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new PolylineShape},t.prototype.buildPath=function(r,s){buildPath(r,s,!1)},t}(Path$1);Polyline.prototype.type="polyline";const Polyline$1=Polyline;var subPixelOptimizeOutputShape={},LineShape=function(){function o(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return o}(),Line=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new LineShape},t.prototype.buildPath=function(r,s){var l,h,v,S;if(this.subPixelOptimize){var x=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,s,this.style);l=x.x1,h=x.y1,v=x.x2,S=x.y2}else l=s.x1,h=s.y1,v=s.x2,S=s.y2;var T=s.percent;T!==0&&(r.moveTo(l,h),T<1&&(v=l*(1-T)+v*T,S=h*(1-T)+S*T),r.lineTo(v,S))},t.prototype.pointAt=function(r){var s=this.shape;return[s.x1*(1-r)+s.x2*r,s.y1*(1-r)+s.y2*r]},t}(Path$1);Line.prototype.type="line";const Line$1=Line;var out=[],BezierCurveShape=function(){function o(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return o}();function someVectorAt(o,t,r){var s=o.cpx2,l=o.cpy2;return s!=null||l!=null?[(r?cubicDerivativeAt:cubicAt)(o.x1,o.cpx1,o.cpx2,o.x2,t),(r?cubicDerivativeAt:cubicAt)(o.y1,o.cpy1,o.cpy2,o.y2,t)]:[(r?quadraticDerivativeAt:quadraticAt)(o.x1,o.cpx1,o.x2,t),(r?quadraticDerivativeAt:quadraticAt)(o.y1,o.cpy1,o.y2,t)]}var BezierCurve=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new BezierCurveShape},t.prototype.buildPath=function(r,s){var l=s.x1,h=s.y1,v=s.x2,S=s.y2,x=s.cpx1,T=s.cpy1,C=s.cpx2,M=s.cpy2,w=s.percent;w!==0&&(r.moveTo(l,h),C==null||M==null?(w<1&&(quadraticSubdivide(l,x,v,w,out),x=out[1],v=out[2],quadraticSubdivide(h,T,S,w,out),T=out[1],S=out[2]),r.quadraticCurveTo(x,T,v,S)):(w<1&&(cubicSubdivide(l,x,C,v,w,out),x=out[1],C=out[2],v=out[3],cubicSubdivide(h,T,M,S,w,out),T=out[1],M=out[2],S=out[3]),r.bezierCurveTo(x,T,C,M,v,S)))},t.prototype.pointAt=function(r){return someVectorAt(this.shape,r,!1)},t.prototype.tangentAt=function(r){var s=someVectorAt(this.shape,r,!0);return normalize$1(s,s)},t}(Path$1);BezierCurve.prototype.type="bezier-curve";const BezierCurve$1=BezierCurve;var ArcShape=function(){function o(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return o}(),Arc=function(o){__extends(t,o);function t(r){return o.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ArcShape},t.prototype.buildPath=function(r,s){var l=s.cx,h=s.cy,v=Math.max(s.r,0),S=s.startAngle,x=s.endAngle,T=s.clockwise,C=Math.cos(S),M=Math.sin(S);r.moveTo(C*v+l,M*v+h),r.arc(l,h,v,S,x,!T)},t}(Path$1);Arc.prototype.type="arc";const Arc$1=Arc;var CompoundPath=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,s=this.shapeChanged(),l=0;l<r.length;l++)s=s||r[l].shapeChanged();s&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],s=this.getGlobalScale(),l=0;l<r.length;l++)r[l].path||r[l].createPathProxy(),r[l].path.setScale(s[0],s[1],r[l].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,s){for(var l=s.paths||[],h=0;h<l.length;h++)l[h].buildPath(r,l[h].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],s=0;s<r.length;s++)r[s].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Path$1.prototype.getBoundingRect.call(this)},t}(Path$1);const CompoundPath$1=CompoundPath;var Gradient=function(){function o(t){this.colorStops=t||[]}return o.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},o}();const Gradient$1=Gradient;var LinearGradient=function(o){__extends(t,o);function t(r,s,l,h,v,S){var x=o.call(this,v)||this;return x.x=r??0,x.y=s??0,x.x2=l??1,x.y2=h??0,x.type="linear",x.global=S||!1,x}return t}(Gradient$1);const LinearGradient$1=LinearGradient;var RadialGradient=function(o){__extends(t,o);function t(r,s,l,h,v){var S=o.call(this,h)||this;return S.x=r??.5,S.y=s??.5,S.r=l??.5,S.type="radial",S.global=v||!1,S}return t}(Gradient$1);const RadialGradient$1=RadialGradient;var extent=[0,0],extent2=[0,0],minTv=new Point$1,maxTv=new Point$1,OrientedBoundingRect=function(){function o(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var s=0;s<4;s++)this._corners[s]=new Point$1;for(var s=0;s<2;s++)this._axes[s]=new Point$1;t&&this.fromBoundingRect(t,r)}return o.prototype.fromBoundingRect=function(t,r){var s=this._corners,l=this._axes,h=t.x,v=t.y,S=h+t.width,x=v+t.height;if(s[0].set(h,v),s[1].set(S,v),s[2].set(S,x),s[3].set(h,x),r)for(var T=0;T<4;T++)s[T].transform(r);Point$1.sub(l[0],s[1],s[0]),Point$1.sub(l[1],s[3],s[0]),l[0].normalize(),l[1].normalize();for(var T=0;T<2;T++)this._origin[T]=l[T].dot(s[0])},o.prototype.intersect=function(t,r){var s=!0,l=!r;return minTv.set(1/0,1/0),maxTv.set(0,0),!this._intersectCheckOneSide(this,t,minTv,maxTv,l,1)&&(s=!1,l)||!this._intersectCheckOneSide(t,this,minTv,maxTv,l,-1)&&(s=!1,l)||l||Point$1.copy(r,s?minTv:maxTv),s},o.prototype._intersectCheckOneSide=function(t,r,s,l,h,v){for(var S=!0,x=0;x<2;x++){var T=this._axes[x];if(this._getProjMinMaxOnAxis(x,t._corners,extent),this._getProjMinMaxOnAxis(x,r._corners,extent2),extent[1]<extent2[0]||extent[0]>extent2[1]){if(S=!1,h)return S;var C=Math.abs(extent2[0]-extent[1]),M=Math.abs(extent[0]-extent2[1]);Math.min(C,M)>l.len()&&(C<M?Point$1.scale(l,T,-C*v):Point$1.scale(l,T,M*v))}else if(s){var C=Math.abs(extent2[0]-extent[1]),M=Math.abs(extent[0]-extent2[1]);Math.min(C,M)<s.len()&&(C<M?Point$1.scale(s,T,C*v):Point$1.scale(s,T,-M*v))}}return S},o.prototype._getProjMinMaxOnAxis=function(t,r,s){for(var l=this._axes[t],h=this._origin,v=r[0].dot(l)+h[t],S=v,x=v,T=1;T<r.length;T++){var C=r[T].dot(l)+h[t];S=Math.min(C,S),x=Math.max(C,x)}s[0]=S,s[1]=x},o}();const OrientedBoundingRect$1=OrientedBoundingRect;var m$2=[],IncrementalDisplayable=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,s){r.call(s,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,s){s?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,s){s=s||!1;for(var l=0;l<r.length;l++)this.addDisplayable(r[l],s)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var s=this._cursor;s<this._displayables.length;s++)r&&r(this._displayables[s]);for(var s=0;s<this._temporaryDisplayables.length;s++)r&&r(this._temporaryDisplayables[s])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var s=this._displayables[r];s.parent=this,s.update(),s.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var s=this._temporaryDisplayables[r];s.parent=this,s.update(),s.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new BoundingRect$1(1/0,1/0,-1/0,-1/0),s=0;s<this._displayables.length;s++){var l=this._displayables[s],h=l.getBoundingRect().clone();l.needLocalTransform()&&h.applyTransform(l.getLocalTransform(m$2)),r.union(h)}this._rect=r}return this._rect},t.prototype.contain=function(r,s){var l=this.transformCoordToLocal(r,s),h=this.getBoundingRect();if(h.contain(l[0],l[1]))for(var v=0;v<this._displayables.length;v++){var S=this._displayables[v];if(S.contain(r,s))return!0}return!1},t}(Displayable$1);const IncrementalDisplayable$1=IncrementalDisplayable;var transitionStore=makeInner();function getAnimationConfig(o,t,r,s,l){var h;if(t&&t.ecModel){var v=t.ecModel.getUpdatePayload();h=v&&v.animation}var S=t&&t.isAnimationEnabled(),x=o==="update";if(S){var T=void 0,C=void 0,M=void 0;s?(T=retrieve2(s.duration,200),C=retrieve2(s.easing,"cubicOut"),M=0):(T=t.getShallow(x?"animationDurationUpdate":"animationDuration"),C=t.getShallow(x?"animationEasingUpdate":"animationEasing"),M=t.getShallow(x?"animationDelayUpdate":"animationDelay")),h&&(h.duration!=null&&(T=h.duration),h.easing!=null&&(C=h.easing),h.delay!=null&&(M=h.delay)),isFunction(M)&&(M=M(r,l)),isFunction(T)&&(T=T(r));var w={duration:T||0,delay:M,easing:C};return w}else return null}function animateOrSetProps(o,t,r,s,l,h,v){var S=!1,x;isFunction(l)?(v=h,h=l,l=null):isObject$3(l)&&(h=l.cb,v=l.during,S=l.isFrom,x=l.removeOpt,l=l.dataIndex);var T=o==="leave";T||t.stopAnimation("leave");var C=getAnimationConfig(o,s,l,T?x||{}:null,s&&s.getAnimationDelayParams?s.getAnimationDelayParams(t,l):null);if(C&&C.duration>0){var M=C.duration,w=C.delay,D=C.easing,O={duration:M,delay:w||0,easing:D,done:h,force:!!h||!!v,setToFinal:!T,scope:o,during:v};S?t.animateFrom(r,O):t.animateTo(r,O)}else t.stopAnimation(),!S&&t.attr(r),v&&v(1),h&&h()}function updateProps$1(o,t,r,s,l,h){animateOrSetProps("update",o,t,r,s,l,h)}function initProps(o,t,r,s,l,h){animateOrSetProps("enter",o,t,r,s,l,h)}function isElementRemoved(o){if(!o.__zr)return!0;for(var t=0;t<o.animators.length;t++){var r=o.animators[t];if(r.scope==="leave")return!0}return!1}function removeElement(o,t,r,s,l,h){isElementRemoved(o)||animateOrSetProps("leave",o,t,r,s,l,h)}function fadeOutDisplayable(o,t,r,s){o.removeTextContent(),o.removeTextGuideLine(),removeElement(o,{style:{opacity:0}},t,r,s)}function removeElementWithFadeOut(o,t,r){function s(){o.parent&&o.parent.remove(o)}o.isGroup?o.traverse(function(l){l.isGroup||fadeOutDisplayable(l,t,r,s)}):fadeOutDisplayable(o,t,r,s)}function saveOldStyle(o){transitionStore(o).oldStyle=o.style}var mathMax$4=Math.max,mathMin$4=Math.min,_customShapeMap={};function extendShape(o){return Path$1.extend(o)}var extendPathFromString=extendFromString;function extendPath(o,t){return extendPathFromString(o,t)}function registerShape(o,t){_customShapeMap[o]=t}function getShapeClass(o){if(_customShapeMap.hasOwnProperty(o))return _customShapeMap[o]}function makePath(o,t,r,s){var l=createFromString(o,t);return r&&(s==="center"&&(r=centerGraphic(r,l.getBoundingRect())),resizePath(l,r)),l}function makeImage(o,t,r){var s=new ZRImage$1({style:{image:o,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(l){if(r==="center"){var h={width:l.width,height:l.height};s.setStyle(centerGraphic(t,h))}}});return s}function centerGraphic(o,t){var r=t.width/t.height,s=o.height*r,l;s<=o.width?l=o.height:(s=o.width,l=s/r);var h=o.x+o.width/2,v=o.y+o.height/2;return{x:h-s/2,y:v-l/2,width:s,height:l}}var mergePath=mergePath$1;function resizePath(o,t){if(o.applyTransform){var r=o.getBoundingRect(),s=r.calculateTransform(t);o.applyTransform(s)}}function subPixelOptimizeLine(o,t){return subPixelOptimizeLine$1(o,o,{lineWidth:t}),o}function subPixelOptimizeRect(o){return subPixelOptimizeRect$1(o.shape,o.shape,o.style),o}var subPixelOptimize=subPixelOptimize$1;function getTransform$1(o,t){for(var r=identity([]);o&&o!==t;)mul(r,o.getLocalTransform(),r),o=o.parent;return r}function applyTransform(o,t,r){return t&&!isArrayLike(t)&&(t=Transformable$1.getLocalTransform(t)),r&&(t=invert([],t)),applyTransform$1([],o,t)}function transformDirection(o,t,r){var s=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),l=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),h=[o==="left"?-s:o==="right"?s:0,o==="top"?-l:o==="bottom"?l:0];return h=applyTransform(h,t,r),Math.abs(h[0])>Math.abs(h[1])?h[0]>0?"right":"left":h[1]>0?"bottom":"top"}function isNotGroup(o){return!o.isGroup}function isPath(o){return o.shape!=null}function groupTransition(o,t,r){if(!o||!t)return;function s(v){var S={};return v.traverse(function(x){isNotGroup(x)&&x.anid&&(S[x.anid]=x)}),S}function l(v){var S={x:v.x,y:v.y,rotation:v.rotation};return isPath(v)&&(S.shape=extend({},v.shape)),S}var h=s(o);t.traverse(function(v){if(isNotGroup(v)&&v.anid){var S=h[v.anid];if(S){var x=l(v);v.attr(l(S)),updateProps$1(v,x,r,getECData(v).dataIndex)}}})}function clipPointsByRect(o,t){return map$2(o,function(r){var s=r[0];s=mathMax$4(s,t.x),s=mathMin$4(s,t.x+t.width);var l=r[1];return l=mathMax$4(l,t.y),l=mathMin$4(l,t.y+t.height),[s,l]})}function clipRectByRect(o,t){var r=mathMax$4(o.x,t.x),s=mathMin$4(o.x+o.width,t.x+t.width),l=mathMax$4(o.y,t.y),h=mathMin$4(o.y+o.height,t.y+t.height);if(s>=r&&h>=l)return{x:r,y:l,width:s-r,height:h-l}}function createIcon(o,t,r){var s=extend({rectHover:!0},t),l=s.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},o)return o.indexOf("image://")===0?(l.image=o.slice(8),defaults(l,r),new ZRImage$1(s)):makePath(o.replace("path://",""),s,r,"center")}function linePolygonIntersect(o,t,r,s,l){for(var h=0,v=l[l.length-1];h<l.length;h++){var S=l[h];if(lineLineIntersect(o,t,r,s,S[0],S[1],v[0],v[1]))return!0;v=S}}function lineLineIntersect(o,t,r,s,l,h,v,S){var x=r-o,T=s-t,C=v-l,M=S-h,w=crossProduct2d(C,M,x,T);if(nearZero(w))return!1;var D=o-l,O=t-h,N=crossProduct2d(D,O,x,T)/w;if(N<0||N>1)return!1;var k=crossProduct2d(D,O,C,M)/w;return!(k<0||k>1)}function crossProduct2d(o,t,r,s){return o*s-r*t}function nearZero(o){return o<=1e-6&&o>=-1e-6}function setTooltipConfig(o){var t=o.itemTooltipOption,r=o.componentModel,s=o.itemName,l=isString(t)?{formatter:t}:t,h=r.mainType,v=r.componentIndex,S={componentType:h,name:s,$vars:["name"]};S[h+"Index"]=v;var x=o.formatterParamsExtra;x&&each$c(keys(x),function(C){hasOwn(S,C)||(S[C]=x[C],S.$vars.push(C))});var T=getECData(o.el);T.componentMainType=h,T.componentIndex=v,T.tooltipConfig={name:s,option:defaults({content:s,formatterParams:S},l)}}function traverseElement(o,t){var r;o.isGroup&&(r=t(o)),r||o.traverse(t)}function traverseElements(o,t){if(o)if(isArray$1(o))for(var r=0;r<o.length;r++)traverseElement(o[r],t);else traverseElement(o,t)}registerShape("circle",Circle$1);registerShape("ellipse",Ellipse$1);registerShape("sector",Sector$1);registerShape("ring",Ring$1);registerShape("polygon",Polygon$1);registerShape("polyline",Polyline$1);registerShape("rect",Rect$2);registerShape("line",Line$1);registerShape("bezierCurve",BezierCurve$1);registerShape("arc",Arc$1);const graphic$1=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,OrientedBoundingRect:OrientedBoundingRect$1,Path:Path$1,Point:Point$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,applyTransform,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,groupTransition,initProps,isElementRemoved,lineLineIntersect,linePolygonIntersect,makeImage,makePath,mergePath,registerShape,removeElement,removeElementWithFadeOut,resizePath,setTooltipConfig,subPixelOptimize,subPixelOptimizeLine,subPixelOptimizeRect,transformDirection,traverseElements,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"}));var EMPTY_OBJ={};function setLabelText(o,t){for(var r=0;r<SPECIAL_STATES.length;r++){var s=SPECIAL_STATES[r],l=t[s],h=o.ensureState(s);h.style=h.style||{},h.style.text=l}var v=o.currentStates.slice();o.clearStates(!0),o.setStyle({text:t.normal}),o.useStates(v,!0)}function getLabelText(o,t,r){var s=o.labelFetcher,l=o.labelDataIndex,h=o.labelDimIndex,v=t.normal,S;s&&(S=s.getFormattedLabel(l,"normal",null,h,v&&v.get("formatter"),r!=null?{interpolatedValue:r}:null)),S==null&&(S=isFunction(o.defaultText)?o.defaultText(l,o,r):o.defaultText);for(var x={normal:S},T=0;T<SPECIAL_STATES.length;T++){var C=SPECIAL_STATES[T],M=t[C];x[C]=retrieve2(s?s.getFormattedLabel(l,C,null,h,M&&M.get("formatter")):null,S)}return x}function setLabelStyle(o,t,r,s){r=r||EMPTY_OBJ;for(var l=o instanceof ZRText$1,h=!1,v=0;v<DISPLAY_STATES.length;v++){var S=t[DISPLAY_STATES[v]];if(S&&S.getShallow("show")){h=!0;break}}var x=l?o:o.getTextContent();if(h){l||(x||(x=new ZRText$1,o.setTextContent(x)),o.stateProxy&&(x.stateProxy=o.stateProxy));var T=getLabelText(r,t),C=t.normal,M=!!C.getShallow("show"),w=createTextStyle$1(C,s&&s.normal,r,!1,!l);w.text=T.normal,l||o.setTextConfig(createTextConfig(C,r,!1));for(var v=0;v<SPECIAL_STATES.length;v++){var D=SPECIAL_STATES[v],S=t[D];if(S){var O=x.ensureState(D),N=!!retrieve2(S.getShallow("show"),M);if(N!==M&&(O.ignore=!N),O.style=createTextStyle$1(S,s&&s[D],r,!0,!l),O.style.text=T[D],!l){var k=o.ensureState(D);k.textConfig=createTextConfig(S,r,!0)}}}x.silent=!!C.getShallow("silent"),x.style.x!=null&&(w.x=x.style.x),x.style.y!=null&&(w.y=x.style.y),x.ignore=!M,x.useStyle(w),x.dirty(),r.enableTextSetter&&(labelInner(x).setLabelText=function(F){var B=getLabelText(r,t,F);setLabelText(x,B)})}else x&&(x.ignore=!0);o.dirty()}function getLabelStatesModels(o,t){t=t||"label";for(var r={normal:o.getModel(t)},s=0;s<SPECIAL_STATES.length;s++){var l=SPECIAL_STATES[s];r[l]=o.getModel([l,t])}return r}function createTextStyle$1(o,t,r,s,l){var h={};return setTextStyleCommon(h,o,r,s,l),t&&extend(h,t),h}function createTextConfig(o,t,r){t=t||{};var s={},l,h=o.getShallow("rotate"),v=retrieve2(o.getShallow("distance"),r?null:5),S=o.getShallow("offset");return l=o.getShallow("position")||(r?null:"inside"),l==="outside"&&(l=t.defaultOutsidePosition||"top"),l!=null&&(s.position=l),S!=null&&(s.offset=S),h!=null&&(h*=Math.PI/180,s.rotation=h),v!=null&&(s.distance=v),s.outsideFill=o.get("color")==="inherit"?t.inheritColor||null:"auto",s}function setTextStyleCommon(o,t,r,s,l){r=r||EMPTY_OBJ;var h=t.ecModel,v=h&&h.option.textStyle,S=getRichItemNames(t),x;if(S){x={};for(var T in S)if(S.hasOwnProperty(T)){var C=t.getModel(["rich",T]);setTokenTextStyle(x[T]={},C,v,r,s,l,!1,!0)}}x&&(o.rich=x);var M=t.get("overflow");M&&(o.overflow=M);var w=t.get("minMargin");w!=null&&(o.margin=w),setTokenTextStyle(o,t,v,r,s,l,!0,!1)}function getRichItemNames(o){for(var t;o&&o!==o.ecModel;){var r=(o.option||EMPTY_OBJ).rich;if(r){t=t||{};for(var s=keys(r),l=0;l<s.length;l++){var h=s[l];t[h]=1}}o=o.parentModel}return t}var TEXT_PROPS_WITH_GLOBAL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],TEXT_PROPS_SELF=["align","lineHeight","width","height","tag","verticalAlign"],TEXT_PROPS_BOX=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function setTokenTextStyle(o,t,r,s,l,h,v,S){r=!l&&r||EMPTY_OBJ;var x=s&&s.inheritColor,T=t.getShallow("color"),C=t.getShallow("textBorderColor"),M=retrieve2(t.getShallow("opacity"),r.opacity);(T==="inherit"||T==="auto")&&(x?T=x:T=null),(C==="inherit"||C==="auto")&&(x?C=x:C=null),h||(T=T||r.color,C=C||r.textBorderColor),T!=null&&(o.fill=T),C!=null&&(o.stroke=C);var w=retrieve2(t.getShallow("textBorderWidth"),r.textBorderWidth);w!=null&&(o.lineWidth=w);var D=retrieve2(t.getShallow("textBorderType"),r.textBorderType);D!=null&&(o.lineDash=D);var O=retrieve2(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);O!=null&&(o.lineDashOffset=O),!l&&M==null&&!S&&(M=s&&s.defaultOpacity),M!=null&&(o.opacity=M),!l&&!h&&o.fill==null&&s.inheritColor&&(o.fill=s.inheritColor);for(var N=0;N<TEXT_PROPS_WITH_GLOBAL.length;N++){var k=TEXT_PROPS_WITH_GLOBAL[N],F=retrieve2(t.getShallow(k),r[k]);F!=null&&(o[k]=F)}for(var N=0;N<TEXT_PROPS_SELF.length;N++){var k=TEXT_PROPS_SELF[N],F=t.getShallow(k);F!=null&&(o[k]=F)}if(o.verticalAlign==null){var B=t.getShallow("baseline");B!=null&&(o.verticalAlign=B)}if(!v||!s.disableBox){for(var N=0;N<TEXT_PROPS_BOX.length;N++){var k=TEXT_PROPS_BOX[N],F=t.getShallow(k);F!=null&&(o[k]=F)}var V=t.getShallow("borderType");V!=null&&(o.borderDash=V),(o.backgroundColor==="auto"||o.backgroundColor==="inherit")&&x&&(o.backgroundColor=x),(o.borderColor==="auto"||o.borderColor==="inherit")&&x&&(o.borderColor=x)}}function getFont(o,t){var r=t&&t.getModel("textStyle");return trim$1([o.fontStyle||r&&r.getShallow("fontStyle")||"",o.fontWeight||r&&r.getShallow("fontWeight")||"",(o.fontSize||r&&r.getShallow("fontSize")||12)+"px",o.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var labelInner=makeInner();function setLabelValueAnimation(o,t,r,s){if(o){var l=labelInner(o);l.prevValue=l.value,l.value=r;var h=t.normal;l.valueAnimation=h.get("valueAnimation"),l.valueAnimation&&(l.precision=h.get("precision"),l.defaultInterpolatedText=s,l.statesModels=t)}}var PATH_COLOR=["textStyle","color"],textStyleParams=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],tmpText=new ZRText$1,TextStyleMixin=function(){function o(){}return o.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(PATH_COLOR):null)},o.prototype.getFont=function(){return getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},o.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},s=0;s<textStyleParams.length;s++)r[textStyleParams[s]]=this.getShallow(textStyleParams[s]);return tmpText.useStyle(r),tmpText.update(),tmpText.getBoundingRect()},o}();const TextStyleMixin$1=TextStyleMixin;var LINE_STYLE_KEY_MAP=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],getLineStyle=makeStyleMapper(LINE_STYLE_KEY_MAP),LineStyleMixin=function(){function o(){}return o.prototype.getLineStyle=function(t){return getLineStyle(this,t)},o}(),ITEM_STYLE_KEY_MAP=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],getItemStyle=makeStyleMapper(ITEM_STYLE_KEY_MAP),ItemStyleMixin=function(){function o(){}return o.prototype.getItemStyle=function(t,r){return getItemStyle(this,t,r)},o}(),Model=function(){function o(t,r,s){this.parentModel=r,this.ecModel=s,this.option=t}return o.prototype.init=function(t,r,s){},o.prototype.mergeOption=function(t,r){merge(this.option,t,!0)},o.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},o.prototype.getShallow=function(t,r){var s=this.option,l=s==null?s:s[t];if(l==null&&!r){var h=this.parentModel;h&&(l=h.getShallow(t))}return l},o.prototype.getModel=function(t,r){var s=t!=null,l=s?this.parsePath(t):null,h=s?this._doGet(l):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(l)),new o(h,r,this.ecModel)},o.prototype.isEmpty=function(){return this.option==null},o.prototype.restoreData=function(){},o.prototype.clone=function(){var t=this.constructor;return new t(clone$3(this.option))},o.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},o.prototype.resolveParentPath=function(t){return t},o.prototype.isAnimationEnabled=function(){if(!env$1.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},o.prototype._doGet=function(t,r){var s=this.option;if(!t)return s;for(var l=0;l<t.length&&!(t[l]&&(s=s&&typeof s=="object"?s[t[l]]:null,s==null));l++);return s==null&&r&&(s=r._doGet(this.resolveParentPath(t),r.parentModel)),s},o}();enableClassExtend(Model);enableClassCheck(Model);mixin(Model,LineStyleMixin);mixin(Model,ItemStyleMixin);mixin(Model,AreaStyleMixin);mixin(Model,TextStyleMixin$1);const Model$1=Model;var base=Math.round(Math.random()*10);function getUID(o){return[o||"",base++].join("_")}function enableSubTypeDefaulter(o){var t={};o.registerSubTypeDefaulter=function(r,s){var l=parseClassType(r);t[l.main]=s},o.determineSubType=function(r,s){var l=s.type;if(!l){var h=parseClassType(r).main;o.hasSubTypes(r)&&t[h]&&(l=t[h](s))}return l}}function enableTopologicalTravel(o,t){o.topologicalTravel=function(h,v,S,x){if(!h.length)return;var T=r(v),C=T.graph,M=T.noEntryList,w={};for(each$c(h,function(B){w[B]=!0});M.length;){var D=M.pop(),O=C[D],N=!!w[D];N&&(S.call(x,D,O.originalDeps.slice()),delete w[D]),each$c(O.successor,N?F:k)}each$c(w,function(){var B="";throw new Error(B)});function k(B){C[B].entryCount--,C[B].entryCount===0&&M.push(B)}function F(B){w[B]=!0,k(B)}};function r(h){var v={},S=[];return each$c(h,function(x){var T=s(v,x),C=T.originalDeps=t(x),M=l(C,h);T.entryCount=M.length,T.entryCount===0&&S.push(x),each$c(M,function(w){indexOf(T.predecessor,w)<0&&T.predecessor.push(w);var D=s(v,w);indexOf(D.successor,w)<0&&D.successor.push(x)})}),{graph:v,noEntryList:S}}function s(h,v){return h[v]||(h[v]={predecessor:[],successor:[]}),h[v]}function l(h,v){var S=[];return each$c(h,function(x){indexOf(v,x)>=0&&S.push(x)}),S}}function inheritDefaultOption(o,t){return merge(merge({},o,!0),t,!0)}const langEN={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},langZH={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var LOCALE_ZH="ZH",LOCALE_EN="EN",DEFAULT_LOCALE=LOCALE_EN,localeStorage={},localeModels={},SYSTEM_LANG=env$1.domSupported?function(){var o=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return o.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale(o,t){o=o.toUpperCase(),localeModels[o]=new Model$1(t),localeStorage[o]=t}function createLocaleObject(o){if(isString(o)){var t=localeStorage[o.toUpperCase()]||{};return o===LOCALE_ZH||o===LOCALE_EN?clone$3(t):merge(clone$3(t),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$3(o),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel(o){return localeModels[o]}function getDefaultLocaleModel(){return localeModels[DEFAULT_LOCALE]}registerLocale(LOCALE_EN,langEN);registerLocale(LOCALE_ZH,langZH);var ONE_SECOND=1e3,ONE_MINUTE=ONE_SECOND*60,ONE_HOUR=ONE_MINUTE*60,ONE_DAY=ONE_HOUR*24,ONE_YEAR=ONE_DAY*365,defaultLeveledFormatter={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fullDayFormatter="{yyyy}-{MM}-{dd}",fullLeveledFormatter={year:"{yyyy}",month:"{yyyy}-{MM}",day:fullDayFormatter,hour:fullDayFormatter+" "+defaultLeveledFormatter.hour,minute:fullDayFormatter+" "+defaultLeveledFormatter.minute,second:fullDayFormatter+" "+defaultLeveledFormatter.second,millisecond:defaultLeveledFormatter.none},primaryTimeUnits=["year","month","day","hour","minute","second","millisecond"],timeUnits=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pad(o,t){return o+="","0000".substr(0,t-o.length)+o}function getPrimaryTimeUnit(o){switch(o){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return o}}function isPrimaryTimeUnit(o){return o===getPrimaryTimeUnit(o)}function getDefaultFormatPrecisionOfInterval(o){switch(o){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format$1(o,t,r,s){var l=parseDate(o),h=l[fullYearGetterName(r)](),v=l[monthGetterName(r)]()+1,S=Math.floor((v-1)/3)+1,x=l[dateGetterName(r)](),T=l["get"+(r?"UTC":"")+"Day"](),C=l[hoursGetterName(r)](),M=(C-1)%12+1,w=l[minutesGetterName(r)](),D=l[secondsGetterName(r)](),O=l[millisecondsGetterName(r)](),N=s instanceof Model$1?s:getLocaleModel(s||SYSTEM_LANG)||getDefaultLocaleModel(),k=N.getModel("time"),F=k.get("month"),B=k.get("monthAbbr"),V=k.get("dayOfWeek"),z=k.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,h+"").replace(/{yy}/g,h%100+"").replace(/{Q}/g,S+"").replace(/{MMMM}/g,F[v-1]).replace(/{MMM}/g,B[v-1]).replace(/{MM}/g,pad(v,2)).replace(/{M}/g,v+"").replace(/{dd}/g,pad(x,2)).replace(/{d}/g,x+"").replace(/{eeee}/g,V[T]).replace(/{ee}/g,z[T]).replace(/{e}/g,T+"").replace(/{HH}/g,pad(C,2)).replace(/{H}/g,C+"").replace(/{hh}/g,pad(M+"",2)).replace(/{h}/g,M+"").replace(/{mm}/g,pad(w,2)).replace(/{m}/g,w+"").replace(/{ss}/g,pad(D,2)).replace(/{s}/g,D+"").replace(/{SSS}/g,pad(O,3)).replace(/{S}/g,O+"")}function leveledFormat(o,t,r,s,l){var h=null;if(isString(r))h=r;else if(isFunction(r))h=r(o.value,t,{level:o.level});else{var v=extend({},defaultLeveledFormatter);if(o.level>0)for(var S=0;S<primaryTimeUnits.length;++S)v[primaryTimeUnits[S]]="{primary|"+v[primaryTimeUnits[S]]+"}";var x=r?r.inherit===!1?r:defaults(r,v):v,T=getUnitFromValue(o.value,l);if(x[T])h=x[T];else if(x.inherit){for(var C=timeUnits.indexOf(T),S=C-1;S>=0;--S)if(x[T]){h=x[T];break}h=h||v.none}if(isArray$1(h)){var M=o.level==null?0:o.level>=0?o.level:h.length+o.level;M=Math.min(M,h.length-1),h=h[M]}}return format$1(new Date(o.value),h,l,s)}function getUnitFromValue(o,t){var r=parseDate(o),s=r[monthGetterName(t)]()+1,l=r[dateGetterName(t)](),h=r[hoursGetterName(t)](),v=r[minutesGetterName(t)](),S=r[secondsGetterName(t)](),x=r[millisecondsGetterName(t)](),T=x===0,C=T&&S===0,M=C&&v===0,w=M&&h===0,D=w&&l===1,O=D&&s===1;return O?"year":D?"month":w?"day":M?"hour":C?"minute":T?"second":"millisecond"}function getUnitValue(o,t,r){var s=isNumber(o)?parseDate(o):o;switch(t=t||getUnitFromValue(o,r),t){case"year":return s[fullYearGetterName(r)]();case"half-year":return s[monthGetterName(r)]()>=6?1:0;case"quarter":return Math.floor((s[monthGetterName(r)]()+1)/4);case"month":return s[monthGetterName(r)]();case"day":return s[dateGetterName(r)]();case"half-day":return s[hoursGetterName(r)]()/24;case"hour":return s[hoursGetterName(r)]();case"minute":return s[minutesGetterName(r)]();case"second":return s[secondsGetterName(r)]();case"millisecond":return s[millisecondsGetterName(r)]()}}function fullYearGetterName(o){return o?"getUTCFullYear":"getFullYear"}function monthGetterName(o){return o?"getUTCMonth":"getMonth"}function dateGetterName(o){return o?"getUTCDate":"getDate"}function hoursGetterName(o){return o?"getUTCHours":"getHours"}function minutesGetterName(o){return o?"getUTCMinutes":"getMinutes"}function secondsGetterName(o){return o?"getUTCSeconds":"getSeconds"}function millisecondsGetterName(o){return o?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName(o){return o?"setUTCFullYear":"setFullYear"}function monthSetterName(o){return o?"setUTCMonth":"setMonth"}function dateSetterName(o){return o?"setUTCDate":"setDate"}function hoursSetterName(o){return o?"setUTCHours":"setHours"}function minutesSetterName(o){return o?"setUTCMinutes":"setMinutes"}function secondsSetterName(o){return o?"setUTCSeconds":"setSeconds"}function millisecondsSetterName(o){return o?"setUTCMilliseconds":"setMilliseconds"}function getTextRect(o,t,r,s,l,h,v,S){var x=new ZRText$1({style:{text:o,font:t,align:r,verticalAlign:s,padding:l,rich:h,overflow:v?"truncate":null,lineHeight:S}});return x.getBoundingRect()}function addCommas(o){if(!isNumeric(o))return isString(o)?o:"-";var t=(o+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function toCamelCase(o,t){return o=(o||"").toLowerCase().replace(/-(.)/g,function(r,s){return s.toUpperCase()}),t&&o&&(o=o.charAt(0).toUpperCase()+o.slice(1)),o}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable(o,t,r){var s="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function l(C){return C&&trim$1(C)?C:"-"}function h(C){return!!(C!=null&&!isNaN(C)&&isFinite(C))}var v=t==="time",S=o instanceof Date;if(v||S){var x=v?parseDate(o):o;if(isNaN(+x)){if(S)return"-"}else return format$1(x,s,r)}if(t==="ordinal")return isStringSafe(o)?l(o):isNumber(o)&&h(o)?o+"":"-";var T=numericToNumber(o);return h(T)?addCommas(T):isStringSafe(o)?l(o):typeof o=="boolean"?o+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function(o,t){return"{"+o+(t??"")+"}"};function formatTpl(o,t,r){isArray$1(t)||(t=[t]);var s=t.length;if(!s)return"";for(var l=t[0].$vars||[],h=0;h<l.length;h++){var v=TPL_VAR_ALIAS[h];o=o.replace(wrapVar(v),wrapVar(v,0))}for(var S=0;S<s;S++)for(var x=0;x<l.length;x++){var T=t[S][l[x]];o=o.replace(wrapVar(TPL_VAR_ALIAS[x],S),r?encodeHTML(T):T)}return o}function getTooltipMarker(o,t){var r=isString(o)?{color:o,extraCssText:t}:o||{},s=r.color,l=r.type;t=r.extraCssText;var h=r.renderMode||"html";if(!s)return"";if(h==="html")return l==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+encodeHTML(s)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+encodeHTML(s)+";"+(t||"")+'"></span>';var v=r.markerId||"markerX";return{renderMode:h,content:"{"+v+"|} ",style:l==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:s}:{width:10,height:10,borderRadius:5,backgroundColor:s}}}function formatTime(o,t,r){(o==="week"||o==="month"||o==="quarter"||o==="half-year"||o==="year")&&(o=`MM-dd
|
||
yyyy`);var s=parseDate(t),l=r?"getUTC":"get",h=s[l+"FullYear"](),v=s[l+"Month"]()+1,S=s[l+"Date"](),x=s[l+"Hours"](),T=s[l+"Minutes"](),C=s[l+"Seconds"](),M=s[l+"Milliseconds"]();return o=o.replace("MM",pad(v,2)).replace("M",v).replace("yyyy",h).replace("yy",pad(h%100+"",2)).replace("dd",pad(S,2)).replace("d",S).replace("hh",pad(x,2)).replace("h",x).replace("mm",pad(T,2)).replace("m",T).replace("ss",pad(C,2)).replace("s",C).replace("SSS",pad(M,3)),o}function capitalFirst(o){return o&&o.charAt(0).toUpperCase()+o.substr(1)}function convertToColorString(o,t){return t=t||"transparent",isString(o)?o:isObject$3(o)&&o.colorStops&&(o.colorStops[0]||{}).color||t}function windowOpen(o,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=o}else window.open(o,t)}var each$b=each$c,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout(o,t,r,s,l){var h=0,v=0;s==null&&(s=1/0),l==null&&(l=1/0);var S=0;t.eachChild(function(x,T){var C=x.getBoundingRect(),M=t.childAt(T+1),w=M&&M.getBoundingRect(),D,O;if(o==="horizontal"){var N=C.width+(w?-w.x+C.x:0);D=h+N,D>s||x.newline?(h=0,D=N,v+=S+r,S=C.height):S=Math.max(S,C.height)}else{var k=C.height+(w?-w.y+C.y:0);O=v+k,O>l||x.newline?(h+=S+r,v=0,O=k,S=C.width):S=Math.max(S,C.width)}x.newline||(x.x=h,x.y=v,x.markRedraw(),o==="horizontal"?h=D+r:v=O+r)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect(o,t,r){r=normalizeCssArray(r||0);var s=t.width,l=t.height,h=parsePercent(o.left,s),v=parsePercent(o.top,l),S=parsePercent(o.right,s),x=parsePercent(o.bottom,l),T=parsePercent(o.width,s),C=parsePercent(o.height,l),M=r[2]+r[0],w=r[1]+r[3],D=o.aspect;switch(isNaN(T)&&(T=s-S-w-h),isNaN(C)&&(C=l-x-M-v),D!=null&&(isNaN(T)&&isNaN(C)&&(D>s/l?T=s*.8:C=l*.8),isNaN(T)&&(T=D*C),isNaN(C)&&(C=T/D)),isNaN(h)&&(h=s-S-T-w),isNaN(v)&&(v=l-x-C-M),o.left||o.right){case"center":h=s/2-T/2-r[3];break;case"right":h=s-T-w;break}switch(o.top||o.bottom){case"middle":case"center":v=l/2-C/2-r[0];break;case"bottom":v=l-C-M;break}h=h||0,v=v||0,isNaN(T)&&(T=s-w-h-(S||0)),isNaN(C)&&(C=l-M-v-(x||0));var O=new BoundingRect$1(h+r[3],v+r[0],T,C);return O.margin=r,O}function positionElement(o,t,r,s,l,h){var v=!l||!l.hv||l.hv[0],S=!l||!l.hv||l.hv[1],x=l&&l.boundingMode||"all";if(h=h||o,h.x=o.x,h.y=o.y,!v&&!S)return!1;var T;if(x==="raw")T=o.type==="group"?new BoundingRect$1(0,0,+t.width||0,+t.height||0):o.getBoundingRect();else if(T=o.getBoundingRect(),o.needLocalTransform()){var C=o.getLocalTransform();T=T.clone(),T.applyTransform(C)}var M=getLayoutRect(defaults({width:T.width,height:T.height},t),r,s),w=v?M.x-T.x:0,D=S?M.y-T.y:0;return x==="raw"?(h.x=w,h.y=D):(h.x+=w,h.y+=D),h===o&&o.markRedraw(),!0}function fetchLayoutMode(o){var t=o.layoutMode||o.constructor.layoutMode;return isObject$3(t)?t:t?{type:t}:null}function mergeLayoutParam(o,t,r){var s=r&&r.ignoreSize;!isArray$1(s)&&(s=[s,s]);var l=v(HV_NAMES[0],0),h=v(HV_NAMES[1],1);T(HV_NAMES[0],o,l),T(HV_NAMES[1],o,h);function v(C,M){var w={},D=0,O={},N=0,k=2;if(each$b(C,function(V){O[V]=o[V]}),each$b(C,function(V){S(t,V)&&(w[V]=O[V]=t[V]),x(w,V)&&D++,x(O,V)&&N++}),s[M])return x(t,C[1])?O[C[2]]=null:x(t,C[2])&&(O[C[1]]=null),O;if(N===k||!D)return O;if(D>=k)return w;for(var F=0;F<C.length;F++){var B=C[F];if(!S(w,B)&&S(o,B)){w[B]=o[B];break}}return w}function S(C,M){return C.hasOwnProperty(M)}function x(C,M){return C[M]!=null&&C[M]!=="auto"}function T(C,M,w){each$b(C,function(D){M[D]=w[D]})}}function getLayoutParams(o){return copyLayoutParams({},o)}function copyLayoutParams(o,t){return t&&o&&each$b(LOCATION_PARAMS,function(r){t.hasOwnProperty(r)&&(o[r]=t[r])}),o}var inner$c=makeInner(),ComponentModel=function(o){__extends(t,o);function t(r,s,l){var h=o.call(this,r,s,l)||this;return h.uid=getUID("ec_cpt_model"),h}return t.prototype.init=function(r,s,l){this.mergeDefaultAndTheme(r,l)},t.prototype.mergeDefaultAndTheme=function(r,s){var l=fetchLayoutMode(this),h=l?getLayoutParams(r):{},v=s.getTheme();merge(r,v.get(this.mainType)),merge(r,this.getDefaultOption()),l&&mergeLayoutParam(r,h,l)},t.prototype.mergeOption=function(r,s){merge(this.option,r,!0);var l=fetchLayoutMode(this);l&&mergeLayoutParam(this.option,r,l)},t.prototype.optionUpdated=function(r,s){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!isExtendedClass(r))return r.defaultOption;var s=inner$c(this);if(!s.defaultOption){for(var l=[],h=r;h;){var v=h.prototype.defaultOption;v&&l.push(v),h=h.superClass}for(var S={},x=l.length-1;x>=0;x--)S=merge(S,l[x],!0);s.defaultOption=S}return s.defaultOption},t.prototype.getReferringComponents=function(r,s){var l=r+"Index",h=r+"Id";return queryReferringComponents(this.ecModel,r,{index:this.get(l,!0),id:this.get(h,!0)},s)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies(o){var t=[];return each$c(ComponentModel.getClassesByMainType(o),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=map$2(t,function(r){return parseClassType(r).main}),o!=="dataset"&&indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}const ComponentModel$1=ComponentModel;var platform="";typeof navigator<"u"&&(platform=navigator.platform||"");var decalColor="rgba(0, 0, 0, 0.2)";const globalDefault={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:decalColor,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:decalColor,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:decalColor,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:decalColor,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:decalColor,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:decalColor,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:platform.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 VISUAL_DIMENSIONS=createHashMap(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),SOURCE_FORMAT_ORIGINAL="original",SOURCE_FORMAT_ARRAY_ROWS="arrayRows",SOURCE_FORMAT_OBJECT_ROWS="objectRows",SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",SOURCE_FORMAT_TYPED_ARRAY="typedArray",SOURCE_FORMAT_UNKNOWN="unknown",SERIES_LAYOUT_BY_COLUMN="column",SERIES_LAYOUT_BY_ROW="row",BE_ORDINAL={Must:1,Might:2,Not:3},innerGlobalModel=makeInner();function resetSourceDefaulter(o){innerGlobalModel(o).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys(o,t,r){var s={},l=querySeriesUpstreamDatasetModel(t);if(!l||!o)return s;var h=[],v=[],S=t.ecModel,x=innerGlobalModel(S).datasetMap,T=l.uid+"_"+r.seriesLayoutBy,C,M;o=o.slice(),each$c(o,function(N,k){var F=isObject$3(N)?N:o[k]={name:N};F.type==="ordinal"&&C==null&&(C=k,M=O(F)),s[F.name]=[]});var w=x.get(T)||x.set(T,{categoryWayDim:M,valueWayDim:0});each$c(o,function(N,k){var F=N.name,B=O(N);if(C==null){var V=w.valueWayDim;D(s[F],V,B),D(v,V,B),w.valueWayDim+=B}else if(C===k)D(s[F],0,B),D(h,0,B);else{var V=w.categoryWayDim;D(s[F],V,B),D(v,V,B),w.categoryWayDim+=B}});function D(N,k,F){for(var B=0;B<F;B++)N.push(k+B)}function O(N){var k=N.dimsDef;return k?k.length:1}return h.length&&(s.itemName=h),v.length&&(s.seriesName=v),s}function makeSeriesEncodeForNameBased(o,t,r){var s={},l=querySeriesUpstreamDatasetModel(o);if(!l)return s;var h=t.sourceFormat,v=t.dimensionsDefine,S;(h===SOURCE_FORMAT_OBJECT_ROWS||h===SOURCE_FORMAT_KEYED_COLUMNS)&&each$c(v,function(C,M){(isObject$3(C)?C.name:C)==="name"&&(S=M)});var x=function(){for(var C={},M={},w=[],D=0,O=Math.min(5,r);D<O;D++){var N=doGuessOrdinal(t.data,h,t.seriesLayoutBy,v,t.startIndex,D);w.push(N);var k=N===BE_ORDINAL.Not;if(k&&C.v==null&&D!==S&&(C.v=D),(C.n==null||C.n===C.v||!k&&w[C.n]===BE_ORDINAL.Not)&&(C.n=D),F(C)&&w[C.n]!==BE_ORDINAL.Not)return C;k||(N===BE_ORDINAL.Might&&M.v==null&&D!==S&&(M.v=D),(M.n==null||M.n===M.v)&&(M.n=D))}function F(B){return B.v!=null&&B.n!=null}return F(C)?C:F(M)?M:null}();if(x){s.value=[x.v];var T=S??x.n;s.itemName=[T],s.seriesName=[T]}return s}function querySeriesUpstreamDatasetModel(o){var t=o.get("data",!0);if(!t)return queryReferringComponents(o.ecModel,"dataset",{index:o.get("datasetIndex",!0),id:o.get("datasetId",!0)},SINGLE_REFERRING).models[0]}function queryDatasetUpstreamDatasetModels(o){return!o.get("transform",!0)&&!o.get("fromTransformResult",!0)?[]:queryReferringComponents(o.ecModel,"dataset",{index:o.get("fromDatasetIndex",!0),id:o.get("fromDatasetId",!0)},SINGLE_REFERRING).models}function guessOrdinal(o,t){return doGuessOrdinal(o.data,o.sourceFormat,o.seriesLayoutBy,o.dimensionsDefine,o.startIndex,t)}function doGuessOrdinal(o,t,r,s,l,h){var v,S=5;if(isTypedArray(o))return BE_ORDINAL.Not;var x,T;if(s){var C=s[h];isObject$3(C)?(x=C.name,T=C.type):isString(C)&&(x=C)}if(T!=null)return T==="ordinal"?BE_ORDINAL.Must:BE_ORDINAL.Not;if(t===SOURCE_FORMAT_ARRAY_ROWS){var M=o;if(r===SERIES_LAYOUT_BY_ROW){for(var w=M[h],D=0;D<(w||[]).length&&D<S;D++)if((v=z(w[l+D]))!=null)return v}else for(var D=0;D<M.length&&D<S;D++){var O=M[l+D];if(O&&(v=z(O[h]))!=null)return v}}else if(t===SOURCE_FORMAT_OBJECT_ROWS){var N=o;if(!x)return BE_ORDINAL.Not;for(var D=0;D<N.length&&D<S;D++){var k=N[D];if(k&&(v=z(k[x]))!=null)return v}}else if(t===SOURCE_FORMAT_KEYED_COLUMNS){var F=o;if(!x)return BE_ORDINAL.Not;var w=F[x];if(!w||isTypedArray(w))return BE_ORDINAL.Not;for(var D=0;D<w.length&&D<S;D++)if((v=z(w[D]))!=null)return v}else if(t===SOURCE_FORMAT_ORIGINAL)for(var B=o,D=0;D<B.length&&D<S;D++){var k=B[D],V=getDataItemValue(k);if(!isArray$1(V))return BE_ORDINAL.Not;if((v=z(V[h]))!=null)return v}function z(U){var Y=isString(U);if(U!=null&&isFinite(U)&&U!=="")return Y?BE_ORDINAL.Might:BE_ORDINAL.Not;if(Y&&U!=="-")return BE_ORDINAL.Must}return BE_ORDINAL.Not}var internalOptionCreatorMap=createHashMap();function registerInternalOptionCreator(o,t){assert(internalOptionCreatorMap.get(o)==null&&t),internalOptionCreatorMap.set(o,t)}function concatInternalOptions(o,t,r){var s=internalOptionCreatorMap.get(t);if(!s)return r;var l=s(o);return l?r.concat(l):r}var innerColor=makeInner();makeInner();var PaletteMixin=function(){function o(){}return o.prototype.getColorFromPalette=function(t,r,s){var l=normalizeToArray(this.get("color",!0)),h=this.get("colorLayer",!0);return getFromPalette(this,innerColor,l,h,t,r,s)},o.prototype.clearColorPalette=function(){clearPalette(this,innerColor)},o}();function getNearestPalette(o,t){for(var r=o.length,s=0;s<r;s++)if(o[s].length>t)return o[s];return o[r-1]}function getFromPalette(o,t,r,s,l,h,v){h=h||o;var S=t(h),x=S.paletteIdx||0,T=S.paletteNameMap=S.paletteNameMap||{};if(T.hasOwnProperty(l))return T[l];var C=v==null||!s?r:getNearestPalette(s,v);if(C=C||r,!(!C||!C.length)){var M=C[x];return l&&(T[l]=M),S.paletteIdx=(x+1)%C.length,M}}function clearPalette(o,t){t(o).paletteIdx=0,t(o).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.init=function(r,s,l,h,v,S){h=h||{},this.option=null,this._theme=new Model$1(h),this._locale=new Model$1(v),this._optionManager=S},t.prototype.setOption=function(r,s,l){var h=normalizeSetOptionInput(s);this._optionManager.setOption(r,l,h),this._resetOption(null,h)},t.prototype.resetOption=function(r,s){return this._resetOption(r,normalizeSetOptionInput(s))},t.prototype._resetOption=function(r,s){var l=!1,h=this._optionManager;if(!r||r==="recreate"){var v=h.mountOption(r==="recreate");!this.option||r==="recreate"?initBase(this,v):(this.restoreData(),this._mergeOption(v,s)),l=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var S=h.getTimelineOption(this);S&&(l=!0,this._mergeOption(S,s))}if(!r||r==="recreate"||r==="media"){var x=h.getMediaOption(this);x.length&&each$c(x,function(T){l=!0,this._mergeOption(T,s)},this)}return l},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,s){var l=this.option,h=this._componentsMap,v=this._componentsCount,S=[],x=createHashMap(),T=s&&s.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$c(r,function(M,w){M!=null&&(ComponentModel$1.hasClass(w)?w&&(S.push(w),x.set(w,!0)):l[w]=l[w]==null?clone$3(M):merge(l[w],M,!0))}),T&&T.each(function(M,w){ComponentModel$1.hasClass(w)&&!x.get(w)&&(S.push(w),x.set(w,!0))}),ComponentModel$1.topologicalTravel(S,ComponentModel$1.getAllClassMainTypes(),C,this);function C(M){var w=concatInternalOptions(this,M,normalizeToArray(r[M])),D=h.get(M),O=D?T&&T.get(M)?"replaceMerge":"normalMerge":"replaceAll",N=mappingToExists(D,w,O);setComponentTypeToKeyInfo(N,M,ComponentModel$1),l[M]=null,h.set(M,null),v.set(M,0);var k=[],F=[],B=0,V;each$c(N,function(z,U){var Y=z.existing,W=z.newOption;if(!W)Y&&(Y.mergeOption({},this),Y.optionUpdated({},!1));else{var X=M==="series",K=ComponentModel$1.getClass(M,z.keyInfo.subType,!X);if(!K)return;if(M==="tooltip"){if(V)return;V=!0}if(Y&&Y.constructor===K)Y.name=z.keyInfo.name,Y.mergeOption(W,this),Y.optionUpdated(W,!1);else{var J=extend({componentIndex:U},z.keyInfo);Y=new K(W,this,this,J),extend(Y,J),z.brandNew&&(Y.__requireNewView=!0),Y.init(W,this,this),Y.optionUpdated(null,!0)}}Y?(k.push(Y.option),F.push(Y),B++):(k.push(void 0),F.push(void 0))},this),l[M]=k,h.set(M,F),v.set(M,B),M==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},t.prototype.getOption=function(){var r=clone$3(this.option);return each$c(r,function(s,l){if(ComponentModel$1.hasClass(l)){for(var h=normalizeToArray(s),v=h.length,S=!1,x=v-1;x>=0;x--)h[x]&&!isComponentIdInternal(h[x])?S=!0:(h[x]=null,!S&&v--);h.length=v,r[l]=h}}),delete r[OPTION_INNER_KEY],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,s){var l=this._componentsMap.get(r);if(l){var h=l[s||0];if(h)return h;if(s==null){for(var v=0;v<l.length;v++)if(l[v])return l[v]}}},t.prototype.queryComponents=function(r){var s=r.mainType;if(!s)return[];var l=r.index,h=r.id,v=r.name,S=this._componentsMap.get(s);if(!S||!S.length)return[];var x;return l!=null?(x=[],each$c(normalizeToArray(l),function(T){S[T]&&x.push(S[T])})):h!=null?x=queryByIdOrName("id",h,S):v!=null?x=queryByIdOrName("name",v,S):x=filter(S,function(T){return!!T}),filterBySubType(x,r)},t.prototype.findComponents=function(r){var s=r.query,l=r.mainType,h=S(s),v=h?this.queryComponents(h):filter(this._componentsMap.get(l),function(T){return!!T});return x(filterBySubType(v,r));function S(T){var C=l+"Index",M=l+"Id",w=l+"Name";return T&&(T[C]!=null||T[M]!=null||T[w]!=null)?{mainType:l,index:T[C],id:T[M],name:T[w]}:null}function x(T){return r.filter?filter(T,r.filter):T}},t.prototype.eachComponent=function(r,s,l){var h=this._componentsMap;if(isFunction(r)){var v=s,S=r;h.each(function(M,w){for(var D=0;M&&D<M.length;D++){var O=M[D];O&&S.call(v,w,O,O.componentIndex)}})}else for(var x=isString(r)?h.get(r):isObject$3(r)?this.findComponents(r):null,T=0;x&&T<x.length;T++){var C=x[T];C&&s.call(l,C,C.componentIndex)}},t.prototype.getSeriesByName=function(r){var s=convertOptionIdName(r,null);return filter(this._componentsMap.get("series"),function(l){return!!l&&s!=null&&l.name===s})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return filter(this._componentsMap.get("series"),function(s){return!!s&&s.subType===r})},t.prototype.getSeries=function(){return filter(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,s){assertSeriesInitialized(this),each$c(this._seriesIndices,function(l){var h=this._componentsMap.get("series")[l];r.call(s,h,l)},this)},t.prototype.eachRawSeries=function(r,s){each$c(this._componentsMap.get("series"),function(l){l&&r.call(s,l,l.componentIndex)})},t.prototype.eachSeriesByType=function(r,s,l){assertSeriesInitialized(this),each$c(this._seriesIndices,function(h){var v=this._componentsMap.get("series")[h];v.subType===r&&s.call(l,v,h)},this)},t.prototype.eachRawSeriesByType=function(r,s,l){return each$c(this.getSeriesByType(r),s,l)},t.prototype.isSeriesFiltered=function(r){return assertSeriesInitialized(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,s){assertSeriesInitialized(this);var l=[];each$c(this._seriesIndices,function(h){var v=this._componentsMap.get("series")[h];r.call(s,v,h)&&l.push(h)},this),this._seriesIndices=l,this._seriesIndicesMap=createHashMap(l)},t.prototype.restoreData=function(r){reCreateSeriesIndices(this);var s=this._componentsMap,l=[];s.each(function(h,v){ComponentModel$1.hasClass(v)&&l.push(v)}),ComponentModel$1.topologicalTravel(l,ComponentModel$1.getAllClassMainTypes(),function(h){each$c(s.get(h),function(v){v&&(h!=="series"||!isNotTargetSeries(v,r))&&v.restoreData()})})},t.internalField=function(){reCreateSeriesIndices=function(r){var s=r._seriesIndices=[];each$c(r._componentsMap.get("series"),function(l){l&&s.push(l.componentIndex)}),r._seriesIndicesMap=createHashMap(s)},assertSeriesInitialized=function(r){},initBase=function(r,s){r.option={},r.option[OPTION_INNER_KEY]=OPTION_INNER_VALUE,r._componentsMap=createHashMap({series:[]}),r._componentsCount=createHashMap();var l=s.aria;isObject$3(l)&&l.enabled==null&&(l.enabled=!0),mergeTheme(s,r._theme.option),merge(s,globalDefault,!1),r._mergeOption(s,null)}}(),t}(Model$1);function isNotTargetSeries(o,t){if(t){var r=t.seriesIndex,s=t.seriesId,l=t.seriesName;return r!=null&&o.componentIndex!==r||s!=null&&o.id!==s||l!=null&&o.name!==l}}function mergeTheme(o,t){var r=o.color&&!o.colorLayer;each$c(t,function(s,l){l==="colorLayer"&&r||ComponentModel$1.hasClass(l)||(typeof s=="object"?o[l]=o[l]?merge(o[l],s,!1):clone$3(s):o[l]==null&&(o[l]=s))})}function queryByIdOrName(o,t,r){if(isArray$1(t)){var s=createHashMap();return each$c(t,function(h){if(h!=null){var v=convertOptionIdName(h,null);v!=null&&s.set(h,!0)}}),filter(r,function(h){return h&&s.get(h[o])})}else{var l=convertOptionIdName(t,null);return filter(r,function(h){return h&&l!=null&&h[o]===l})}}function filterBySubType(o,t){return t.hasOwnProperty("subType")?filter(o,function(r){return r&&r.subType===t.subType}):o}function normalizeSetOptionInput(o){var t=createHashMap();return o&&each$c(normalizeToArray(o.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}mixin(GlobalModel,PaletteMixin);const GlobalModel$1=GlobalModel;var availableMethods=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ExtensionAPI=function(){function o(t){each$c(availableMethods,function(r){this[r]=bind$1(t[r],t)},this)}return o}();const ExtensionAPI$1=ExtensionAPI;var coordinateSystemCreators={},CoordinateSystemManager=function(){function o(){this._coordinateSystems=[]}return o.prototype.create=function(t,r){var s=[];each$c(coordinateSystemCreators,function(l,h){var v=l.create(t,r);s=s.concat(v||[])}),this._coordinateSystems=s},o.prototype.update=function(t,r){each$c(this._coordinateSystems,function(s){s.update&&s.update(t,r)})},o.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},o.register=function(t,r){coordinateSystemCreators[t]=r},o.get=function(t){return coordinateSystemCreators[t]},o}();const CoordinateSystem=CoordinateSystemManager;var QUERY_REG=/^(min|max)?(.+)$/,OptionManager=function(){function o(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return o.prototype.setOption=function(t,r,s){t&&(each$c(normalizeToArray(t.series),function(v){v&&v.data&&isTypedArray(v.data)&&setAsPrimitive(v.data)}),each$c(normalizeToArray(t.dataset),function(v){v&&v.source&&isTypedArray(v.source)&&setAsPrimitive(v.source)})),t=clone$3(t);var l=this._optionBackup,h=parseRawOption(t,r,!l);this._newBaseOption=h.baseOption,l?(h.timelineOptions.length&&(l.timelineOptions=h.timelineOptions),h.mediaList.length&&(l.mediaList=h.mediaList),h.mediaDefault&&(l.mediaDefault=h.mediaDefault)):this._optionBackup=h},o.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],clone$3(t?r.baseOption:this._newBaseOption)},o.prototype.getTimelineOption=function(t){var r,s=this._timelineOptions;if(s.length){var l=t.getComponent("timeline");l&&(r=clone$3(s[l.getCurrentIndex()]))}return r},o.prototype.getMediaOption=function(t){var r=this._api.getWidth(),s=this._api.getHeight(),l=this._mediaList,h=this._mediaDefault,v=[],S=[];if(!l.length&&!h)return S;for(var x=0,T=l.length;x<T;x++)applyMediaQuery(l[x].query,r,s)&&v.push(x);return!v.length&&h&&(v=[-1]),v.length&&!indicesEquals(v,this._currentMediaIndices)&&(S=map$2(v,function(C){return clone$3(C===-1?h.option:l[C].option)})),this._currentMediaIndices=v,S},o}();function parseRawOption(o,t,r){var s=[],l,h,v=o.baseOption,S=o.timeline,x=o.options,T=o.media,C=!!o.media,M=!!(x||S||v&&v.timeline);v?(h=v,h.timeline||(h.timeline=S)):((M||C)&&(o.options=o.media=null),h=o),C&&isArray$1(T)&&each$c(T,function(D){D&&D.option&&(D.query?s.push(D):l||(l=D))}),w(h),each$c(x,function(D){return w(D)}),each$c(s,function(D){return w(D.option)});function w(D){each$c(t,function(O){O(D,r)})}return{baseOption:h,timelineOptions:x||[],mediaDefault:l,mediaList:s}}function applyMediaQuery(o,t,r){var s={width:t,height:r,aspectratio:t/r},l=!0;return each$c(o,function(h,v){var S=v.match(QUERY_REG);if(!(!S||!S[1]||!S[2])){var x=S[1],T=S[2].toLowerCase();compare(s[T],h,x)||(l=!1)}}),l}function compare(o,t,r){return r==="min"?o>=t:r==="max"?o<=t:o===t}function indicesEquals(o,t){return o.join(",")===t.join(",")}const OptionManager$1=OptionManager;var each$a=each$c,isObject$2=isObject$3,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle(o){var t=o&&o.itemStyle;if(t)for(var r=0,s=POSSIBLE_STYLES.length;r<s;r++){var l=POSSIBLE_STYLES[r],h=t.normal,v=t.emphasis;h&&h[l]&&(o[l]=o[l]||{},o[l].normal?merge(o[l].normal,h[l]):o[l].normal=h[l],h[l]=null),v&&v[l]&&(o[l]=o[l]||{},o[l].emphasis?merge(o[l].emphasis,v[l]):o[l].emphasis=v[l],v[l]=null)}}function convertNormalEmphasis(o,t,r){if(o&&o[t]&&(o[t].normal||o[t].emphasis)){var s=o[t].normal,l=o[t].emphasis;s&&(r?(o[t].normal=o[t].emphasis=null,defaults(o[t],s)):o[t]=s),l&&(o.emphasis=o.emphasis||{},o.emphasis[t]=l,l.focus&&(o.emphasis.focus=l.focus),l.blurScope&&(o.emphasis.blurScope=l.blurScope))}}function removeEC3NormalStatus(o){convertNormalEmphasis(o,"itemStyle"),convertNormalEmphasis(o,"lineStyle"),convertNormalEmphasis(o,"areaStyle"),convertNormalEmphasis(o,"label"),convertNormalEmphasis(o,"labelLine"),convertNormalEmphasis(o,"upperLabel"),convertNormalEmphasis(o,"edgeLabel")}function compatTextStyle(o,t){var r=isObject$2(o)&&o[t],s=isObject$2(r)&&r.textStyle;if(s)for(var l=0,h=TEXT_STYLE_OPTIONS.length;l<h;l++){var v=TEXT_STYLE_OPTIONS[l];s.hasOwnProperty(v)&&(r[v]=s[v])}}function compatEC3CommonStyles(o){o&&(removeEC3NormalStatus(o),compatTextStyle(o,"label"),o.emphasis&&compatTextStyle(o.emphasis,"label"))}function processSeries(o){if(isObject$2(o)){compatEC2ItemStyle(o),removeEC3NormalStatus(o),compatTextStyle(o,"label"),compatTextStyle(o,"upperLabel"),compatTextStyle(o,"edgeLabel"),o.emphasis&&(compatTextStyle(o.emphasis,"label"),compatTextStyle(o.emphasis,"upperLabel"),compatTextStyle(o.emphasis,"edgeLabel"));var t=o.markPoint;t&&(compatEC2ItemStyle(t),compatEC3CommonStyles(t));var r=o.markLine;r&&(compatEC2ItemStyle(r),compatEC3CommonStyles(r));var s=o.markArea;s&&compatEC3CommonStyles(s);var l=o.data;if(o.type==="graph"){l=l||o.nodes;var h=o.links||o.edges;if(h&&!isTypedArray(h))for(var v=0;v<h.length;v++)compatEC3CommonStyles(h[v]);each$c(o.categories,function(T){removeEC3NormalStatus(T)})}if(l&&!isTypedArray(l))for(var v=0;v<l.length;v++)compatEC3CommonStyles(l[v]);if(t=o.markPoint,t&&t.data)for(var S=t.data,v=0;v<S.length;v++)compatEC3CommonStyles(S[v]);if(r=o.markLine,r&&r.data)for(var x=r.data,v=0;v<x.length;v++)isArray$1(x[v])?(compatEC3CommonStyles(x[v][0]),compatEC3CommonStyles(x[v][1])):compatEC3CommonStyles(x[v]);o.type==="gauge"?(compatTextStyle(o,"axisLabel"),compatTextStyle(o,"title"),compatTextStyle(o,"detail")):o.type==="treemap"?(convertNormalEmphasis(o.breadcrumb,"itemStyle"),each$c(o.levels,function(T){removeEC3NormalStatus(T)})):o.type==="tree"&&removeEC3NormalStatus(o.leaves)}}function toArr(o){return isArray$1(o)?o:o?[o]:[]}function toObj(o){return(isArray$1(o)?o[0]:o)||{}}function globalCompatStyle(o,t){each$a(toArr(o.series),function(s){isObject$2(s)&&processSeries(s)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),each$a(r,function(s){each$a(toArr(o[s]),function(l){l&&(compatTextStyle(l,"axisLabel"),compatTextStyle(l.axisPointer,"label"))})}),each$a(toArr(o.parallel),function(s){var l=s&&s.parallelAxisDefault;compatTextStyle(l,"axisLabel"),compatTextStyle(l&&l.axisPointer,"label")}),each$a(toArr(o.calendar),function(s){convertNormalEmphasis(s,"itemStyle"),compatTextStyle(s,"dayLabel"),compatTextStyle(s,"monthLabel"),compatTextStyle(s,"yearLabel")}),each$a(toArr(o.radar),function(s){compatTextStyle(s,"name"),s.name&&s.axisName==null&&(s.axisName=s.name,delete s.name),s.nameGap!=null&&s.axisNameGap==null&&(s.axisNameGap=s.nameGap,delete s.nameGap)}),each$a(toArr(o.geo),function(s){isObject$2(s)&&(compatEC3CommonStyles(s),each$a(toArr(s.regions),function(l){compatEC3CommonStyles(l)}))}),each$a(toArr(o.timeline),function(s){compatEC3CommonStyles(s),convertNormalEmphasis(s,"label"),convertNormalEmphasis(s,"itemStyle"),convertNormalEmphasis(s,"controlStyle",!0);var l=s.data;isArray$1(l)&&each$c(l,function(h){isObject$3(h)&&(convertNormalEmphasis(h,"label"),convertNormalEmphasis(h,"itemStyle"))})}),each$a(toArr(o.toolbox),function(s){convertNormalEmphasis(s,"iconStyle"),each$a(s.feature,function(l){convertNormalEmphasis(l,"iconStyle")})}),compatTextStyle(toObj(o.axisPointer),"label"),compatTextStyle(toObj(o.tooltip).axisPointer,"label")}function get(o,t){for(var r=t.split(","),s=o,l=0;l<r.length&&(s=s&&s[r[l]],s!=null);l++);return s}function set(o,t,r,s){for(var l=t.split(","),h=o,v,S=0;S<l.length-1;S++)v=l[S],h[v]==null&&(h[v]={}),h=h[v];(s||h[l[S]]==null)&&(h[l[S]]=r)}function compatLayoutProperties(o){o&&each$c(LAYOUT_PROPERTIES,function(t){t[0]in o&&!(t[1]in o)&&(o[t[1]]=o[t[0]])})}var LAYOUT_PROPERTIES=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],COMPATITABLE_COMPONENTS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],BAR_ITEM_STYLE_MAP=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function compatBarItemStyle(o){var t=o&&o.itemStyle;if(t)for(var r=0;r<BAR_ITEM_STYLE_MAP.length;r++){var s=BAR_ITEM_STYLE_MAP[r][1],l=BAR_ITEM_STYLE_MAP[r][0];t[s]!=null&&(t[l]=t[s])}}function compatPieLabel(o){o&&o.alignTo==="edge"&&o.margin!=null&&o.edgeDistance==null&&(o.edgeDistance=o.margin)}function compatSunburstState(o){o&&o.downplay&&!o.blur&&(o.blur=o.downplay)}function compatGraphFocus(o){o&&o.focusNodeAdjacency!=null&&(o.emphasis=o.emphasis||{},o.emphasis.focus==null&&(o.emphasis.focus="adjacency"))}function traverseTree(o,t){if(o)for(var r=0;r<o.length;r++)t(o[r]),o[r]&&traverseTree(o[r].children,t)}function globalBackwardCompat(o,t){globalCompatStyle(o,t),o.series=normalizeToArray(o.series),each$c(o.series,function(r){if(isObject$3(r)){var s=r.type;if(s==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(s==="pie"||s==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),compatPieLabel(r.label);var l=r.data;if(l&&!isTypedArray(l))for(var h=0;h<l.length;h++)compatPieLabel(l[h]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(s==="gauge"){var v=get(r,"pointer.color");v!=null&&set(r,"itemStyle.color",v)}else if(s==="bar"){compatBarItemStyle(r),compatBarItemStyle(r.backgroundStyle),compatBarItemStyle(r.emphasis);var l=r.data;if(l&&!isTypedArray(l))for(var h=0;h<l.length;h++)typeof l[h]=="object"&&(compatBarItemStyle(l[h]),compatBarItemStyle(l[h]&&l[h].emphasis))}else if(s==="sunburst"){var S=r.highlightPolicy;S&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=S)),compatSunburstState(r),traverseTree(r.data,compatSunburstState)}else s==="graph"||s==="sankey"?compatGraphFocus(r):s==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&defaults(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),compatLayoutProperties(r)}}),o.dataRange&&(o.visualMap=o.dataRange),each$c(COMPATITABLE_COMPONENTS,function(r){var s=o[r];s&&(isArray$1(s)||(s=[s]),each$c(s,function(l){compatLayoutProperties(l)}))})}function dataStack$1(o){var t=createHashMap();o.eachSeries(function(r){var s=r.get("stack");if(s){var l=t.get(s)||t.set(s,[]),h=r.getData(),v={stackResultDimension:h.getCalculationInfo("stackResultDimension"),stackedOverDimension:h.getCalculationInfo("stackedOverDimension"),stackedDimension:h.getCalculationInfo("stackedDimension"),stackedByDimension:h.getCalculationInfo("stackedByDimension"),isStackedByIndex:h.getCalculationInfo("isStackedByIndex"),data:h,seriesModel:r};if(!v.stackedDimension||!(v.isStackedByIndex||v.stackedByDimension))return;l.length&&h.setCalculationInfo("stackedOnSeries",l[l.length-1].seriesModel),l.push(v)}}),t.each(calculateStack)}function calculateStack(o){each$c(o,function(t,r){var s=[],l=[NaN,NaN],h=[t.stackResultDimension,t.stackedOverDimension],v=t.data,S=t.isStackedByIndex,x=t.seriesModel.get("stackStrategy")||"samesign";v.modify(h,function(T,C,M){var w=v.get(t.stackedDimension,M);if(isNaN(w))return l;var D,O;S?O=v.getRawIndex(M):D=v.get(t.stackedByDimension,M);for(var N=NaN,k=r-1;k>=0;k--){var F=o[k];if(S||(O=F.data.rawIndexOf(F.stackedByDimension,D)),O>=0){var B=F.data.getByRawIndex(F.stackResultDimension,O);if(x==="all"||x==="positive"&&B>0||x==="negative"&&B<0||x==="samesign"&&w>=0&&B>0||x==="samesign"&&w<=0&&B<0){w=addSafe(w,B),N=B;break}}}return s[0]=w,s[1]=N,s})})}var SourceImpl=function(){function o(t){this.data=t.data||(t.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=t.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=t.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var s=0;s<r.length;s++){var l=r[s];l.type==null&&guessOrdinal(this,s)===BE_ORDINAL.Must&&(l.type="ordinal")}}return o}();function isSourceInstance(o){return o instanceof SourceImpl}function createSource(o,t,r){r=r||detectSourceFormat(o);var s=t.seriesLayoutBy,l=determineSourceDimensions(o,r,s,t.sourceHeader,t.dimensions),h=new SourceImpl({data:o,sourceFormat:r,seriesLayoutBy:s,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.dimensionsDetectedCount,metaRawOption:clone$3(t)});return h}function createSourceFromSeriesDataOption(o){return new SourceImpl({data:o,sourceFormat:isTypedArray(o)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL})}function cloneSourceShallow(o){return new SourceImpl({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:clone$3(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount})}function detectSourceFormat(o){var t=SOURCE_FORMAT_UNKNOWN;if(isTypedArray(o))t=SOURCE_FORMAT_TYPED_ARRAY;else if(isArray$1(o)){o.length===0&&(t=SOURCE_FORMAT_ARRAY_ROWS);for(var r=0,s=o.length;r<s;r++){var l=o[r];if(l!=null){if(isArray$1(l)){t=SOURCE_FORMAT_ARRAY_ROWS;break}else if(isObject$3(l)){t=SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if(isObject$3(o)){for(var h in o)if(hasOwn(o,h)&&isArrayLike(o[h])){t=SOURCE_FORMAT_KEYED_COLUMNS;break}}return t}function determineSourceDimensions(o,t,r,s,l){var h,v;if(!o)return{dimensionsDefine:normalizeDimensionsOption(l),startIndex:v,dimensionsDetectedCount:h};if(t===SOURCE_FORMAT_ARRAY_ROWS){var S=o;s==="auto"||s==null?arrayRowsTravelFirst(function(T){T!=null&&T!=="-"&&(isString(T)?v==null&&(v=1):v=0)},r,S,10):v=isNumber(s)?s:s?1:0,!l&&v===1&&(l=[],arrayRowsTravelFirst(function(T,C){l[C]=T!=null?T+"":""},r,S,1/0)),h=l?l.length:r===SERIES_LAYOUT_BY_ROW?S.length:S[0]?S[0].length:null}else if(t===SOURCE_FORMAT_OBJECT_ROWS)l||(l=objectRowsCollectDimensions(o));else if(t===SOURCE_FORMAT_KEYED_COLUMNS)l||(l=[],each$c(o,function(T,C){l.push(C)}));else if(t===SOURCE_FORMAT_ORIGINAL){var x=getDataItemValue(o[0]);h=isArray$1(x)&&x.length||1}return{startIndex:v,dimensionsDefine:normalizeDimensionsOption(l),dimensionsDetectedCount:h}}function objectRowsCollectDimensions(o){for(var t=0,r;t<o.length&&!(r=o[t++]););if(r){var s=[];return each$c(r,function(l,h){s.push(h)}),s}}function normalizeDimensionsOption(o){if(o){var t=createHashMap();return map$2(o,function(r,s){r=isObject$3(r)?r:{name:r};var l={name:r.name,displayName:r.displayName,type:r.type};if(l.name==null)return l;l.name+="",l.displayName==null&&(l.displayName=l.name);var h=t.get(l.name);return h?l.name+="-"+h.count++:t.set(l.name,{count:1}),l})}}function arrayRowsTravelFirst(o,t,r,s){if(t===SERIES_LAYOUT_BY_ROW)for(var l=0;l<r.length&&l<s;l++)o(r[l]?r[l][0]:null,l);else for(var h=r[0]||[],l=0;l<h.length&&l<s;l++)o(h[l],l)}function shouldRetrieveDataByName(o){var t=o.sourceFormat;return t===SOURCE_FORMAT_OBJECT_ROWS||t===SOURCE_FORMAT_KEYED_COLUMNS}var _a,_b,_c,providerMethods,mountMethods,DefaultDataProvider=function(){function o(t,r){var s=isSourceInstance(t)?t:createSourceFromSeriesDataOption(t);this._source=s;var l=this._data=s.data;s.sourceFormat===SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=r,this._data=l),mountMethods(this,l,s)}return o.prototype.getSource=function(){return this._source},o.prototype.count=function(){return 0},o.prototype.getItem=function(t,r){},o.prototype.appendData=function(t){},o.prototype.clean=function(){},o.protoInitialize=function(){var t=o.prototype;t.pure=!1,t.persistent=!0}(),o.internalField=function(){var t;mountMethods=function(v,S,x){var T=x.sourceFormat,C=x.seriesLayoutBy,M=x.startIndex,w=x.dimensionsDefine,D=providerMethods[getMethodMapKey(T,C)];if(extend(v,D),T===SOURCE_FORMAT_TYPED_ARRAY)v.getItem=r,v.count=l,v.fillStorage=s;else{var O=getRawSourceItemGetter(T,C);v.getItem=bind$1(O,null,S,M,w);var N=getRawSourceDataCounter(T,C);v.count=bind$1(N,null,S,M,w)}};var r=function(v,S){v=v-this._offset,S=S||[];for(var x=this._data,T=this._dimSize,C=T*v,M=0;M<T;M++)S[M]=x[C+M];return S},s=function(v,S,x,T){for(var C=this._data,M=this._dimSize,w=0;w<M;w++){for(var D=T[w],O=D[0]==null?1/0:D[0],N=D[1]==null?-1/0:D[1],k=S-v,F=x[w],B=0;B<k;B++){var V=C[B*M+w];F[v+B]=V,V<O&&(O=V),V>N&&(N=V)}D[0]=O,D[1]=N}},l=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(t={},t[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:h},t[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:h},t[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(v){var S=this._data;each$c(v,function(x,T){for(var C=S[T]||(S[T]=[]),M=0;M<(x||[]).length;M++)C.push(x[M])})}},t[SOURCE_FORMAT_ORIGINAL]={appendData:h},t[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(v){this._data=v},clean:function(){this._offset+=this.count(),this._data=null}},t);function h(v){for(var S=0;S<v.length;S++)this._data.push(v[S])}}(),o}(),getItemSimply=function(o,t,r,s){return o[s]},rawSourceItemGetterMap=(_a={},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function(o,t,r,s){return o[s+t]},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function(o,t,r,s,l){s+=t;for(var h=l||[],v=o,S=0;S<v.length;S++){var x=v[S];h[S]=x?x[s]:null}return h},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function(o,t,r,s,l){for(var h=l||[],v=0;v<r.length;v++){var S=r[v].name,x=o[S];h[v]=x?x[s]:null}return h},_a[SOURCE_FORMAT_ORIGINAL]=getItemSimply,_a);function getRawSourceItemGetter(o,t){var r=rawSourceItemGetterMap[getMethodMapKey(o,t)];return r}var countSimply=function(o,t,r){return o.length},rawSourceDataCounterMap=(_b={},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function(o,t,r){return Math.max(0,o.length-t)},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function(o,t,r){var s=o[0];return s?Math.max(0,s.length-t):0},_b[SOURCE_FORMAT_OBJECT_ROWS]=countSimply,_b[SOURCE_FORMAT_KEYED_COLUMNS]=function(o,t,r){var s=r[0].name,l=o[s];return l?l.length:0},_b[SOURCE_FORMAT_ORIGINAL]=countSimply,_b);function getRawSourceDataCounter(o,t){var r=rawSourceDataCounterMap[getMethodMapKey(o,t)];return r}var getRawValueSimply=function(o,t,r){return o[t]},rawSourceValueGetterMap=(_c={},_c[SOURCE_FORMAT_ARRAY_ROWS]=getRawValueSimply,_c[SOURCE_FORMAT_OBJECT_ROWS]=function(o,t,r){return o[r]},_c[SOURCE_FORMAT_KEYED_COLUMNS]=getRawValueSimply,_c[SOURCE_FORMAT_ORIGINAL]=function(o,t,r){var s=getDataItemValue(o);return s instanceof Array?s[t]:s},_c[SOURCE_FORMAT_TYPED_ARRAY]=getRawValueSimply,_c);function getRawSourceValueGetter(o){var t=rawSourceValueGetterMap[o];return t}function getMethodMapKey(o,t){return o===SOURCE_FORMAT_ARRAY_ROWS?o+"_"+t:o}function retrieveRawValue(o,t,r){if(o){var s=o.getRawDataItem(t);if(s!=null){var l=o.getStore(),h=l.getSource().sourceFormat;if(r!=null){var v=o.getDimensionIndex(r),S=l.getDimensionProperty(v);return getRawSourceValueGetter(h)(s,v,S)}else{var x=s;return h===SOURCE_FORMAT_ORIGINAL&&(x=getDataItemValue(s)),x}}}}var DIMENSION_LABEL_REG=/\{@(.+?)\}/g,DataFormatMixin=function(){function o(){}return o.prototype.getDataParams=function(t,r){var s=this.getData(r),l=this.getRawValue(t,r),h=s.getRawIndex(t),v=s.getName(t),S=s.getRawDataItem(t),x=s.getItemVisual(t,"style"),T=x&&x[s.getItemVisual(t,"drawType")||"fill"],C=x&&x.stroke,M=this.mainType,w=M==="series",D=s.userOutput&&s.userOutput.get();return{componentType:M,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:w?this.subType:null,seriesIndex:this.seriesIndex,seriesId:w?this.id:null,seriesName:w?this.name:null,name:v,dataIndex:h,data:S,dataType:r,value:l,color:T,borderColor:C,dimensionNames:D?D.fullDimensions:null,encode:D?D.encode:null,$vars:["seriesName","name","value"]}},o.prototype.getFormattedLabel=function(t,r,s,l,h,v){r=r||"normal";var S=this.getData(s),x=this.getDataParams(t,s);if(v&&(x.value=v.interpolatedValue),l!=null&&isArray$1(x.value)&&(x.value=x.value[l]),!h){var T=S.getItemModel(t);h=T.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(isFunction(h))return x.status=r,x.dimensionIndex=l,h(x);if(isString(h)){var C=formatTpl(h,x);return C.replace(DIMENSION_LABEL_REG,function(M,w){var D=w.length,O=w;O.charAt(0)==="["&&O.charAt(D-1)==="]"&&(O=+O.slice(1,D-1));var N=retrieveRawValue(S,t,O);if(v&&isArray$1(v.interpolatedValue)){var k=S.getDimensionIndex(O);k>=0&&(N=v.interpolatedValue[k])}return N!=null?N+"":""})}},o.prototype.getRawValue=function(t,r){return retrieveRawValue(this.getData(r),t)},o.prototype.formatTooltip=function(t,r,s){},o}();function normalizeTooltipFormatResult(o){var t,r;return isObject$3(o)?o.type&&(r=o):t=o,{text:t,frag:r}}function createTask(o){return new Task(o)}var Task=function(){function o(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return o.prototype.perform=function(t){var r=this._upstream,s=t&&t.skip;if(this._dirty&&r){var l=this.context;l.data=l.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var h;this._plan&&!s&&(h=this._plan(this.context));var v=C(this._modBy),S=this._modDataCount||0,x=C(t&&t.modBy),T=t&&t.modDataCount||0;(v!==x||S!==T)&&(h="reset");function C(B){return!(B>=1)&&(B=1),B}var M;(this._dirty||h==="reset")&&(this._dirty=!1,M=this._doReset(s)),this._modBy=x,this._modDataCount=T;var w=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var D=this._dueIndex,O=Math.min(w!=null?this._dueIndex+w:1/0,this._dueEnd);if(!s&&(M||D<O)){var N=this._progress;if(isArray$1(N))for(var k=0;k<N.length;k++)this._doProgress(N[k],D,O,x,T);else this._doProgress(N,D,O,x,T)}this._dueIndex=O;var F=this._settedOutputEnd!=null?this._settedOutputEnd:O;this._outputDueEnd=F}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},o.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},o.prototype._doProgress=function(t,r,s,l,h){iterator.reset(r,s,l,h),this._callingProgress=t,this._callingProgress({start:r,end:s,count:s-r,next:iterator.next},this.context)},o.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,s;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(s=r.forceFirstProgress,r=r.progress),isArray$1(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var l=this._downstream;return l&&l.dirty(),s},o.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},o.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},o.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},o.prototype.getUpstream=function(){return this._upstream},o.prototype.getDownstream=function(){return this._downstream},o.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},o}(),iterator=function(){var o,t,r,s,l,h={reset:function(x,T,C,M){t=x,o=T,r=C,s=M,l=Math.ceil(s/r),h.next=r>1&&s>0?S:v}};return h;function v(){return t<o?t++:null}function S(){var x=t%l*r+Math.ceil(t/l),T=t>=o?null:x<s?x:t;return t++,T}}();function parseDataValue(o,t){var r=t&&t.type;return r==="ordinal"?o:(r==="time"&&!isNumber(o)&&o!=null&&o!=="-"&&(o=+parseDate(o)),o==null||o===""?NaN:+o)}createHashMap({number:function(o){return parseFloat(o)},time:function(o){return+parseDate(o)},trim:function(o){return isString(o)?trim$1(o):o}});var SortOrderComparator=function(){function o(t,r){var s=t==="desc";this._resultLT=s?1:-1,r==null&&(r=s?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return o.prototype.evaluate=function(t,r){var s=isNumber(t)?t:numericToNumber(t),l=isNumber(r)?r:numericToNumber(r),h=isNaN(s),v=isNaN(l);if(h&&(s=this._incomparable),v&&(l=this._incomparable),h&&v){var S=isString(t),x=isString(r);S&&(s=x?t:0),x&&(l=S?r:0)}return s<l?this._resultLT:s>l?-this._resultLT:0},o}(),ExternalSource=function(){function o(){}return o.prototype.getRawData=function(){throw new Error("not supported")},o.prototype.getRawDataItem=function(t){throw new Error("not supported")},o.prototype.cloneRawData=function(){},o.prototype.getDimensionInfo=function(t){},o.prototype.cloneAllDimensionInfo=function(){},o.prototype.count=function(){},o.prototype.retrieveValue=function(t,r){},o.prototype.retrieveValueFromItem=function(t,r){},o.prototype.convertValue=function(t,r){return parseDataValue(t,r)},o}();function createExternalSource(o,t){var r=new ExternalSource,s=o.data,l=r.sourceFormat=o.sourceFormat,h=o.startIndex,v="";o.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(v);var S=[],x={},T=o.dimensionsDefine;if(T)each$c(T,function(N,k){var F=N.name,B={index:k,name:F,displayName:N.displayName};if(S.push(B),F!=null){var V="";hasOwn(x,F)&&throwError(V),x[F]=B}});else for(var C=0;C<o.dimensionsDetectedCount;C++)S.push({index:C});var M=getRawSourceItemGetter(l,SERIES_LAYOUT_BY_COLUMN);t.__isBuiltIn&&(r.getRawDataItem=function(N){return M(s,h,S,N)},r.getRawData=bind$1(getRawData,null,o)),r.cloneRawData=bind$1(cloneRawData,null,o);var w=getRawSourceDataCounter(l,SERIES_LAYOUT_BY_COLUMN);r.count=bind$1(w,null,s,h,S);var D=getRawSourceValueGetter(l);r.retrieveValue=function(N,k){var F=M(s,h,S,N);return O(F,k)};var O=r.retrieveValueFromItem=function(N,k){if(N!=null){var F=S[k];if(F)return D(N,k,F.name)}};return r.getDimensionInfo=bind$1(getDimensionInfo,null,S,x),r.cloneAllDimensionInfo=bind$1(cloneAllDimensionInfo,null,S),r}function getRawData(o){var t=o.sourceFormat;if(!isSupportedSourceFormat(t)){var r="";throwError(r)}return o.data}function cloneRawData(o){var t=o.sourceFormat,r=o.data;if(!isSupportedSourceFormat(t)){var s="";throwError(s)}if(t===SOURCE_FORMAT_ARRAY_ROWS){for(var l=[],h=0,v=r.length;h<v;h++)l.push(r[h].slice());return l}else if(t===SOURCE_FORMAT_OBJECT_ROWS){for(var l=[],h=0,v=r.length;h<v;h++)l.push(extend({},r[h]));return l}}function getDimensionInfo(o,t,r){if(r!=null){if(isNumber(r)||!isNaN(r)&&!hasOwn(t,r))return o[r];if(hasOwn(t,r))return t[r]}}function cloneAllDimensionInfo(o){return clone$3(o)}var externalTransformMap=createHashMap();function registerExternalTransform(o){o=clone$3(o);var t=o.type,r="";t||throwError(r);var s=t.split(":");s.length!==2&&throwError(r);var l=!1;s[0]==="echarts"&&(t=s[1],l=!0),o.__isBuiltIn=l,externalTransformMap.set(t,o)}function applyDataTransform(o,t,r){var s=normalizeToArray(o),l=s.length,h="";l||throwError(h);for(var v=0,S=l;v<S;v++){var x=s[v];t=applySingleDataTransform(x,t),v!==S-1&&(t.length=Math.max(t.length,1))}return t}function applySingleDataTransform(o,t,r,s){var l="";t.length||throwError(l),isObject$3(o)||throwError(l);var h=o.type,v=externalTransformMap.get(h);v||throwError(l);var S=map$2(t,function(T){return createExternalSource(T,v)}),x=normalizeToArray(v.transform({upstream:S[0],upstreamList:S,config:clone$3(o.config)}));return map$2(x,function(T,C){var M="";isObject$3(T)||throwError(M),T.data||throwError(M);var w=detectSourceFormat(T.data);isSupportedSourceFormat(w)||throwError(M);var D,O=t[0];if(O&&C===0&&!T.dimensions){var N=O.startIndex;N&&(T.data=O.data.slice(0,N).concat(T.data)),D={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:N,dimensions:O.metaRawOption.dimensions}}else D={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:T.dimensions};return createSource(T.data,D,null)})}function isSupportedSourceFormat(o){return o===SOURCE_FORMAT_ARRAY_ROWS||o===SOURCE_FORMAT_OBJECT_ROWS}var UNDEFINED="undefined",CtorUint32Array=typeof Uint32Array===UNDEFINED?Array:Uint32Array,CtorUint16Array=typeof Uint16Array===UNDEFINED?Array:Uint16Array,CtorInt32Array$1=typeof Int32Array===UNDEFINED?Array:Int32Array,CtorFloat64Array=typeof Float64Array===UNDEFINED?Array:Float64Array,dataCtors={float:CtorFloat64Array,int:CtorInt32Array$1,ordinal:Array,number:Array,time:CtorFloat64Array},defaultDimValueGetters;function getIndicesCtor(o){return o>65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk(o){var t=o.constructor;return t===Array?o.slice():new t(o)}function prepareStore(o,t,r,s,l){var h=dataCtors[r||"float"];if(l){var v=o[t],S=v&&v.length;if(S!==s){for(var x=new h(s),T=0;T<S;T++)x[T]=v[T];o[t]=x}}else o[t]=new h(s)}var DataStore=function(){function o(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=createHashMap()}return o.prototype.initData=function(t,r,s){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var l=t.getSource(),h=this.defaultDimValueGetter=defaultDimValueGetters[l.sourceFormat];this._dimValueGetter=s||h,this._rawExtent=[],shouldRetrieveDataByName(l),this._dimensions=map$2(r,function(v){return{type:v.type,property:v.property}}),this._initDataFromProvider(0,t.count())},o.prototype.getProvider=function(){return this._provider},o.prototype.getSource=function(){return this._provider.getSource()},o.prototype.ensureCalculationDimension=function(t,r){var s=this._calcDimNameToIdx,l=this._dimensions,h=s.get(t);if(h!=null){if(l[h].type===r)return h}else h=l.length;return l[h]={type:r},s.set(t,h),this._chunks[h]=new dataCtors[r||"float"](this._rawCount),this._rawExtent[h]=getInitialExtent(),h},o.prototype.collectOrdinalMeta=function(t,r){var s=this._chunks[t],l=this._dimensions[t],h=this._rawExtent,v=l.ordinalOffset||0,S=s.length;v===0&&(h[t]=getInitialExtent());for(var x=h[t],T=v;T<S;T++){var C=s[T]=r.parseAndCollect(s[T]);isNaN(C)||(x[0]=Math.min(C,x[0]),x[1]=Math.max(C,x[1]))}l.ordinalMeta=r,l.ordinalOffset=S,l.type="ordinal"},o.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],s=r.ordinalMeta;return s},o.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},o.prototype.appendData=function(t){var r=this._provider,s=this.count();r.appendData(t);var l=r.count();return r.persistent||(l+=s),s<l&&this._initDataFromProvider(s,l,!0),[s,l]},o.prototype.appendValues=function(t,r){for(var s=this._chunks,l=this._dimensions,h=l.length,v=this._rawExtent,S=this.count(),x=S+Math.max(t.length,r||0),T=0;T<h;T++){var C=l[T];prepareStore(s,T,C.type,x,!0)}for(var M=[],w=S;w<x;w++)for(var D=w-S,O=0;O<h;O++){var C=l[O],N=defaultDimValueGetters.arrayRows.call(this,t[D]||M,C.property,D,O);s[O][w]=N;var k=v[O];N<k[0]&&(k[0]=N),N>k[1]&&(k[1]=N)}return this._rawCount=this._count=x,{start:S,end:x}},o.prototype._initDataFromProvider=function(t,r,s){for(var l=this._provider,h=this._chunks,v=this._dimensions,S=v.length,x=this._rawExtent,T=map$2(v,function(B){return B.property}),C=0;C<S;C++){var M=v[C];x[C]||(x[C]=getInitialExtent()),prepareStore(h,C,M.type,r,s)}if(l.fillStorage)l.fillStorage(t,r,h,x);else for(var w=[],D=t;D<r;D++){w=l.getItem(D,w);for(var O=0;O<S;O++){var N=h[O],k=this._dimValueGetter(w,T[O],D,O);N[D]=k;var F=x[O];k<F[0]&&(F[0]=k),k>F[1]&&(F[1]=k)}}!l.persistent&&l.clean&&l.clean(),this._rawCount=this._count=r,this._extent=[]},o.prototype.count=function(){return this._count},o.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var s=this._chunks[t];return s?s[this.getRawIndex(r)]:NaN},o.prototype.getValues=function(t,r){var s=[],l=[];if(r==null){r=t,t=[];for(var h=0;h<this._dimensions.length;h++)l.push(h)}else l=t;for(var h=0,v=l.length;h<v;h++)s.push(this.get(l[h],r));return s},o.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var s=this._chunks[t];return s?s[r]:NaN},o.prototype.getSum=function(t){var r=this._chunks[t],s=0;if(r)for(var l=0,h=this.count();l<h;l++){var v=this.get(t,l);isNaN(v)||(s+=v)}return s},o.prototype.getMedian=function(t){var r=[];this.each([t],function(h){isNaN(h)||r.push(h)});var s=r.sort(function(h,v){return h-v}),l=this.count();return l===0?0:l%2===1?s[(l-1)/2]:(s[l/2]+s[l/2-1])/2},o.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,s=r[t];if(s!=null&&s<this._count&&s===t)return t;for(var l=0,h=this._count-1;l<=h;){var v=(l+h)/2|0;if(r[v]<t)l=v+1;else if(r[v]>t)h=v-1;else return v}return-1},o.prototype.indicesOfNearest=function(t,r,s){var l=this._chunks,h=l[t],v=[];if(!h)return v;s==null&&(s=1/0);for(var S=1/0,x=-1,T=0,C=0,M=this.count();C<M;C++){var w=this.getRawIndex(C),D=r-h[w],O=Math.abs(D);O<=s&&((O<S||O===S&&D>=0&&x<0)&&(S=O,x=D,T=0),D===x&&(v[T++]=C))}return v.length=T,v},o.prototype.getIndices=function(){var t,r=this._indices;if(r){var s=r.constructor,l=this._count;if(s===Array){t=new s(l);for(var h=0;h<l;h++)t[h]=r[h]}else t=new s(r.buffer,0,l)}else{var s=getIndicesCtor(this._rawCount);t=new s(this.count());for(var h=0;h<t.length;h++)t[h]=h}return t},o.prototype.filter=function(t,r){if(!this._count)return this;for(var s=this.clone(),l=s.count(),h=getIndicesCtor(s._rawCount),v=new h(l),S=[],x=t.length,T=0,C=t[0],M=s._chunks,w=0;w<l;w++){var D=void 0,O=s.getRawIndex(w);if(x===0)D=r(w);else if(x===1){var N=M[C][O];D=r(N,w)}else{for(var k=0;k<x;k++)S[k]=M[t[k]][O];S[k]=w,D=r.apply(null,S)}D&&(v[T++]=O)}return T<l&&(s._indices=v),s._count=T,s._extent=[],s._updateGetRawIdx(),s},o.prototype.selectRange=function(t){var r=this.clone(),s=r._count;if(!s)return this;var l=keys(t),h=l.length;if(!h)return this;var v=r.count(),S=getIndicesCtor(r._rawCount),x=new S(v),T=0,C=l[0],M=t[C][0],w=t[C][1],D=r._chunks,O=!1;if(!r._indices){var N=0;if(h===1){for(var k=D[l[0]],F=0;F<s;F++){var B=k[F];(B>=M&&B<=w||isNaN(B))&&(x[T++]=N),N++}O=!0}else if(h===2){for(var k=D[l[0]],V=D[l[1]],z=t[l[1]][0],U=t[l[1]][1],F=0;F<s;F++){var B=k[F],Y=V[F];(B>=M&&B<=w||isNaN(B))&&(Y>=z&&Y<=U||isNaN(Y))&&(x[T++]=N),N++}O=!0}}if(!O)if(h===1)for(var F=0;F<v;F++){var W=r.getRawIndex(F),B=D[l[0]][W];(B>=M&&B<=w||isNaN(B))&&(x[T++]=W)}else for(var F=0;F<v;F++){for(var X=!0,W=r.getRawIndex(F),K=0;K<h;K++){var J=l[K],B=D[J][W];(B<t[J][0]||B>t[J][1])&&(X=!1)}X&&(x[T++]=r.getRawIndex(F))}return T<v&&(r._indices=x),r._count=T,r._extent=[],r._updateGetRawIdx(),r},o.prototype.map=function(t,r){var s=this.clone(t);return this._updateDims(s,t,r),s},o.prototype.modify=function(t,r){this._updateDims(this,t,r)},o.prototype._updateDims=function(t,r,s){for(var l=t._chunks,h=[],v=r.length,S=t.count(),x=[],T=t._rawExtent,C=0;C<r.length;C++)T[r[C]]=getInitialExtent();for(var M=0;M<S;M++){for(var w=t.getRawIndex(M),D=0;D<v;D++)x[D]=l[r[D]][w];x[v]=M;var O=s&&s.apply(null,x);if(O!=null){typeof O!="object"&&(h[0]=O,O=h);for(var C=0;C<O.length;C++){var N=r[C],k=O[C],F=T[N],B=l[N];B&&(B[w]=k),k<F[0]&&(F[0]=k),k>F[1]&&(F[1]=k)}}}},o.prototype.lttbDownSample=function(t,r){var s=this.clone([t],!0),l=s._chunks,h=l[t],v=this.count(),S=0,x=Math.floor(1/r),T=this.getRawIndex(0),C,M,w,D=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(v/x)+2)*2,v));D[S++]=T;for(var O=1;O<v-1;O+=x){for(var N=Math.min(O+x,v-1),k=Math.min(O+x*2,v),F=(k+N)/2,B=0,V=N;V<k;V++){var z=this.getRawIndex(V),U=h[z];isNaN(U)||(B+=U)}B/=k-N;var Y=O,W=Math.min(O+x,v),X=O-1,K=h[T];C=-1,w=Y;for(var J=-1,q=0,V=Y;V<W;V++){var z=this.getRawIndex(V),U=h[z];if(isNaN(U)){q++,J<0&&(J=z);continue}M=Math.abs((X-F)*(U-K)-(X-V)*(B-K)),M>C&&(C=M,w=z)}q>0&&q<W-Y&&(D[S++]=Math.min(J,w),w=Math.max(J,w)),D[S++]=w,T=w}return D[S++]=this.getRawIndex(v-1),s._count=S,s._indices=D,s.getRawIndex=this._getRawIdx,s},o.prototype.downSample=function(t,r,s,l){for(var h=this.clone([t],!0),v=h._chunks,S=[],x=Math.floor(1/r),T=v[t],C=this.count(),M=h._rawExtent[t]=getInitialExtent(),w=new(getIndicesCtor(this._rawCount))(Math.ceil(C/x)),D=0,O=0;O<C;O+=x){x>C-O&&(x=C-O,S.length=x);for(var N=0;N<x;N++){var k=this.getRawIndex(O+N);S[N]=T[k]}var F=s(S),B=this.getRawIndex(Math.min(O+l(S,F)||0,C-1));T[B]=F,F<M[0]&&(M[0]=F),F>M[1]&&(M[1]=F),w[D++]=B}return h._count=D,h._indices=w,h._updateGetRawIdx(),h},o.prototype.each=function(t,r){if(this._count)for(var s=t.length,l=this._chunks,h=0,v=this.count();h<v;h++){var S=this.getRawIndex(h);switch(s){case 0:r(h);break;case 1:r(l[t[0]][S],h);break;case 2:r(l[t[0]][S],l[t[1]][S],h);break;default:for(var x=0,T=[];x<s;x++)T[x]=l[t[x]][S];T[x]=h,r.apply(null,T)}}},o.prototype.getDataExtent=function(t){var r=this._chunks[t],s=getInitialExtent();if(!r)return s;var l=this.count(),h=!this._indices,v;if(h)return this._rawExtent[t].slice();if(v=this._extent[t],v)return v.slice();v=s;for(var S=v[0],x=v[1],T=0;T<l;T++){var C=this.getRawIndex(T),M=r[C];M<S&&(S=M),M>x&&(x=M)}return v=[S,x],this._extent[t]=v,v},o.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var s=[],l=this._chunks,h=0;h<l.length;h++)s.push(l[h][r]);return s},o.prototype.clone=function(t,r){var s=new o,l=this._chunks,h=t&&reduce(t,function(S,x){return S[x]=!0,S},{});if(h)for(var v=0;v<l.length;v++)s._chunks[v]=h[v]?cloneChunk(l[v]):l[v];else s._chunks=l;return this._copyCommonProps(s),r||(s._indices=this._cloneIndices()),s._updateGetRawIdx(),s},o.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=clone$3(this._extent),t._rawExtent=clone$3(this._rawExtent)},o.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var s=this._indices.length;r=new t(s);for(var l=0;l<s;l++)r[l]=this._indices[l]}else r=new t(this._indices);return r}return null},o.prototype._getRawIdxIdentity=function(t){return t},o.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},o.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},o.internalField=function(){function t(r,s,l,h){return parseDataValue(r[h],this._dimensions[h])}defaultDimValueGetters={arrayRows:t,objectRows:function(r,s,l,h){return parseDataValue(r[s],this._dimensions[h])},keyedColumns:t,original:function(r,s,l,h){var v=r&&(r.value==null?r:r.value);return parseDataValue(v instanceof Array?v[h]:v,this._dimensions[h])},typedArray:function(r,s,l,h){return r[h]}}}(),o}();const DataStore$1=DataStore;var SourceManager=function(){function o(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return o.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},o.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},o.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},o.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},o.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),s=!!r.length,l,h;if(isSeries(t)){var v=t,S=void 0,x=void 0,T=void 0;if(s){var C=r[0];C.prepareSource(),T=C.getSource(),S=T.data,x=T.sourceFormat,h=[C._getVersionSign()]}else S=v.get("data",!0),x=isTypedArray(S)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,h=[];var M=this._getSourceMetaRawOption()||{},w=T&&T.metaRawOption||{},D=retrieve2(M.seriesLayoutBy,w.seriesLayoutBy)||null,O=retrieve2(M.sourceHeader,w.sourceHeader),N=retrieve2(M.dimensions,w.dimensions),k=D!==w.seriesLayoutBy||!!O!=!!w.sourceHeader||N;l=k?[createSource(S,{seriesLayoutBy:D,sourceHeader:O,dimensions:N},x)]:[]}else{var F=t;if(s){var B=this._applyTransform(r);l=B.sourceList,h=B.upstreamSignList}else{var V=F.get("source",!0);l=[createSource(V,this._getSourceMetaRawOption(),null)],h=[]}}this._setLocalSource(l,h)},o.prototype._applyTransform=function(t){var r=this._sourceHost,s=r.get("transform",!0),l=r.get("fromTransformResult",!0);if(l!=null){var h="";t.length!==1&&doThrow(h)}var v,S=[],x=[];return each$c(t,function(T){T.prepareSource();var C=T.getSource(l||0),M="";l!=null&&!C&&doThrow(M),S.push(C),x.push(T._getVersionSign())}),s?v=applyDataTransform(s,S,{datasetIndex:r.componentIndex}):l!=null&&(v=[cloneSourceShallow(S[0])]),{sourceList:v,upstreamSignList:x}},o.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var s=t[r];if(s._isDirty()||this._upstreamSignList[r]!==s._getVersionSign())return!0}},o.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var s=this._getUpstreamSourceManagers();return s[0]&&s[0].getSource(t)}return r},o.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},o.prototype._innerGetDataStore=function(t,r,s){var l=0,h=this._storeList,v=h[l];v||(v=h[l]={});var S=v[s];if(!S){var x=this._getUpstreamSourceManagers()[0];isSeries(this._sourceHost)&&x?S=x._innerGetDataStore(t,r,s):(S=new DataStore$1,S.initData(new DefaultDataProvider(r,t.length),t)),v[s]=S}return S},o.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(isSeries(t)){var r=querySeriesUpstreamDatasetModel(t);return r?[r.getSourceManager()]:[]}else return map$2(queryDatasetUpstreamDatasetModels(t),function(s){return s.getSourceManager()})},o.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,s,l;if(isSeries(t))r=t.get("seriesLayoutBy",!0),s=t.get("sourceHeader",!0),l=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var h=t;r=h.get("seriesLayoutBy",!0),s=h.get("sourceHeader",!0),l=h.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:s,dimensions:l}},o}();function isSeries(o){return o.mainType==="series"}function doThrow(o){throw new Error(o)}var TOOLTIP_LINE_HEIGHT_CSS="line-height:1";function getTooltipTextStyle(o,t){var r=o.color||"#6e7079",s=o.fontSize||12,l=o.fontWeight||"400",h=o.color||"#464646",v=o.fontSize||14,S=o.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+encodeHTML(s+"")+"px;color:"+encodeHTML(r)+";font-weight:"+encodeHTML(l+""),valueStyle:"font-size:"+encodeHTML(v+"")+"px;color:"+encodeHTML(h)+";font-weight:"+encodeHTML(S+"")}:{nameStyle:{fontSize:s,fill:r,fontWeight:l},valueStyle:{fontSize:v,fill:h,fontWeight:S}}}var HTML_GAPS=[0,10,20,30],RICH_TEXT_GAPS=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function createTooltipMarkup(o,t){return t.type=o,t}function isSectionFragment(o){return o.type==="section"}function getBuilder(o){return isSectionFragment(o)?buildSection:buildNameValue}function getBlockGapLevel(o){if(isSectionFragment(o)){var t=0,r=o.blocks.length,s=r>1||r>0&&!o.noHeader;return each$c(o.blocks,function(l){var h=getBlockGapLevel(l);h>=t&&(t=h+ +(s&&(!h||isSectionFragment(l)&&!l.noHeader)))}),t}return 0}function buildSection(o,t,r,s){var l=t.noHeader,h=getGap(getBlockGapLevel(t)),v=[],S=t.blocks||[];assert(!S||isArray$1(S)),S=S||[];var x=o.orderMode;if(t.sortBlocks&&x){S=S.slice();var T={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(T,x)){var C=new SortOrderComparator(T[x],null);S.sort(function(O,N){return C.evaluate(O.sortParam,N.sortParam)})}else x==="seriesDesc"&&S.reverse()}each$c(S,function(O,N){var k=t.valueFormatter,F=getBuilder(O)(k?extend(extend({},o),{valueFormatter:k}):o,O,N>0?h.html:0,s);F!=null&&v.push(F)});var M=o.renderMode==="richText"?v.join(h.richText):wrapBlockHTML(v.join(""),l?r:h.html);if(l)return M;var w=makeValueReadable(t.header,"ordinal",o.useUTC),D=getTooltipTextStyle(s,o.renderMode).nameStyle;return o.renderMode==="richText"?wrapInlineNameRichText(o,w,D)+h.richText+M:wrapBlockHTML('<div style="'+D+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+encodeHTML(w)+"</div>"+M,r)}function buildNameValue(o,t,r,s){var l=o.renderMode,h=t.noName,v=t.noValue,S=!t.markerType,x=t.name,T=o.useUTC,C=t.valueFormatter||o.valueFormatter||function(z){return z=isArray$1(z)?z:[z],map$2(z,function(U,Y){return makeValueReadable(U,isArray$1(D)?D[Y]:D,T)})};if(!(h&&v)){var M=S?"":o.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",l),w=h?"":makeValueReadable(x,"ordinal",T),D=t.valueType,O=v?[]:C(t.value),N=!S||!h,k=!S&&h,F=getTooltipTextStyle(s,l),B=F.nameStyle,V=F.valueStyle;return l==="richText"?(S?"":M)+(h?"":wrapInlineNameRichText(o,w,B))+(v?"":wrapInlineValueRichText(o,O,N,k,V)):wrapBlockHTML((S?"":M)+(h?"":wrapInlineNameHTML(w,!S,B))+(v?"":wrapInlineValueHTML(O,N,k,V)),r)}}function buildTooltipMarkup(o,t,r,s,l,h){if(o){var v=getBuilder(o),S={useUTC:l,renderMode:r,orderMode:s,markupStyleCreator:t,valueFormatter:o.valueFormatter};return v(S,o,0,h)}}function getGap(o){return{html:HTML_GAPS[o],richText:RICH_TEXT_GAPS[o]}}function wrapBlockHTML(o,t){var r='<div style="clear:both"></div>',s="margin: "+t+"px 0 0";return'<div style="'+s+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+o+r+"</div>"}function wrapInlineNameHTML(o,t,r){var s=t?"margin-left:2px":"";return'<span style="'+r+";"+s+'">'+encodeHTML(o)+"</span>"}function wrapInlineValueHTML(o,t,r,s){var l=r?"10px":"20px",h=t?"float:right;margin-left:"+l:"";return o=isArray$1(o)?o:[o],'<span style="'+h+";"+s+'">'+map$2(o,function(v){return encodeHTML(v)}).join(" ")+"</span>"}function wrapInlineNameRichText(o,t,r){return o.markupStyleCreator.wrapRichTextStyle(t,r)}function wrapInlineValueRichText(o,t,r,s,l){var h=[l],v=s?10:20;return r&&h.push({padding:[0,0,0,v],align:"right"}),o.markupStyleCreator.wrapRichTextStyle(isArray$1(t)?t.join(" "):t,h)}function retrieveVisualColorForTooltipMarker(o,t){var r=o.getData().getItemVisual(t,"style"),s=r[o.visualDrawType];return convertToColorString(s)}function getPaddingFromTooltipModel(o,t){var r=o.get("padding");return r??(t==="richText"?[8,10]:10)}var TooltipMarkupStyleCreator=function(){function o(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return o.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},o.prototype.makeTooltipMarker=function(t,r,s){var l=s==="richText"?this._generateStyleName():null,h=getTooltipMarker({color:r,type:t,renderMode:s,markerId:l});return isString(h)?h:(this.richTextStyles[l]=h.style,h.content)},o.prototype.wrapRichTextStyle=function(t,r){var s={};isArray$1(r)?each$c(r,function(h){return extend(s,h)}):extend(s,r);var l=this._generateStyleName();return this.richTextStyles[l]=s,"{"+l+"|"+t+"}"},o}();function defaultSeriesFormatTooltip(o){var t=o.series,r=o.dataIndex,s=o.multipleSeries,l=t.getData(),h=l.mapDimensionsAll("defaultedTooltip"),v=h.length,S=t.getRawValue(r),x=isArray$1(S),T=retrieveVisualColorForTooltipMarker(t,r),C,M,w,D;if(v>1||x&&!v){var O=formatTooltipArrayValue(S,t,r,h,T);C=O.inlineValues,M=O.inlineValueTypes,w=O.blocks,D=O.inlineValues[0]}else if(v){var N=l.getDimensionInfo(h[0]);D=C=retrieveRawValue(l,r,h[0]),M=N.type}else D=C=x?S[0]:S;var k=isNameSpecified(t),F=k&&t.name||"",B=l.getName(r),V=s?F:B;return createTooltipMarkup("section",{header:F,noHeader:s||!k,sortParam:D,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:T,name:V,noName:!trim$1(V),value:C,valueType:M})].concat(w||[])})}function formatTooltipArrayValue(o,t,r,s,l){var h=t.getData(),v=reduce(o,function(M,w,D){var O=h.getDimensionInfo(D);return M=M||O&&O.tooltip!==!1&&O.displayName!=null},!1),S=[],x=[],T=[];s.length?each$c(s,function(M){C(retrieveRawValue(h,r,M),M)}):each$c(o,C);function C(M,w){var D=h.getDimensionInfo(w);!D||D.otherDims.tooltip===!1||(v?T.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:l,name:D.displayName,value:M,valueType:D.type})):(S.push(M),x.push(D.type)))}return{inlineValues:S,inlineValueTypes:x,blocks:T}}var inner$b=makeInner();function getSelectionKey(o,t){return o.getName(t)||o.getId(t)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,s,l){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,l);var h=inner$b(this).sourceManager=new SourceManager(this);h.prepareSource();var v=this.getInitialData(r,l);wrapData(v,this),this.dataTask.context.data=v,inner$b(this).dataBeforeProcessed=v,autoSeriesName(this),this._initSelectedMapFromData(v)},t.prototype.mergeDefaultAndTheme=function(r,s){var l=fetchLayoutMode(this),h=l?getLayoutParams(r):{},v=this.subType;ComponentModel$1.hasClass(v)&&(v+="Series"),merge(r,s.getTheme().get(this.subType)),merge(r,this.getDefaultOption()),defaultEmphasis(r,"label",["show"]),this.fillDataTextStyle(r.data),l&&mergeLayoutParam(r,h,l)},t.prototype.mergeOption=function(r,s){r=merge(this.option,r,!0),this.fillDataTextStyle(r.data);var l=fetchLayoutMode(this);l&&mergeLayoutParam(this.option,r,l);var h=inner$b(this).sourceManager;h.dirty(),h.prepareSource();var v=this.getInitialData(r,s);wrapData(v,this),this.dataTask.dirty(),this.dataTask.context.data=v,inner$b(this).dataBeforeProcessed=v,autoSeriesName(this),this._initSelectedMapFromData(v)},t.prototype.fillDataTextStyle=function(r){if(r&&!isTypedArray(r))for(var s=["show"],l=0;l<r.length;l++)r[l]&&r[l].label&&defaultEmphasis(r[l],"label",s)},t.prototype.getInitialData=function(r,s){},t.prototype.appendData=function(r){var s=this.getRawData();s.appendData(r.data)},t.prototype.getData=function(r){var s=getCurrentTask(this);if(s){var l=s.context.data;return r==null?l:l.getLinkedData(r)}else return inner$b(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var s=getCurrentTask(this);if(s){var l=s.context;l.outputData=r,s!==this.dataTask&&(l.data=r)}inner$b(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return createHashMap(r)},t.prototype.getSourceManager=function(){return inner$b(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return inner$b(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,s,l){return defaultSeriesFormatTooltip({series:this,dataIndex:r,multipleSeries:s})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(env$1.node&&!(r&&r.ssr))return!1;var s=this.getShallow("animation");return s&&this.getData().count()>this.getShallow("animationThreshold")&&(s=!1),!!s},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,s,l){var h=this.ecModel,v=PaletteMixin.prototype.getColorFromPalette.call(this,r,s,l);return v||(v=h.getColorFromPalette(r,s,l)),v},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,s){this._innerSelect(this.getData(s),r)},t.prototype.unselect=function(r,s){var l=this.option.selectedMap;if(l){var h=this.option.selectedMode,v=this.getData(s);if(h==="series"||l==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var S=0;S<r.length;S++){var x=r[S],T=getSelectionKey(v,x);l[T]=!1,this._selectedDataIndicesMap[T]=-1}}},t.prototype.toggleSelect=function(r,s){for(var l=[],h=0;h<r.length;h++)l[0]=r[h],this.isSelected(r[h],s)?this.unselect(l,s):this.select(l,s)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,s=keys(r),l=[],h=0;h<s.length;h++){var v=r[s[h]];v>=0&&l.push(v)}return l},t.prototype.isSelected=function(r,s){var l=this.option.selectedMap;if(!l)return!1;var h=this.getData(s);return(l==="all"||l[getSelectionKey(h,r)])&&!h.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,s){var l,h,v=this.option,S=v.selectedMode,x=s.length;if(!(!S||!x)){if(S==="series")v.selectedMap="all";else if(S==="multiple"){isObject$3(v.selectedMap)||(v.selectedMap={});for(var T=v.selectedMap,C=0;C<x;C++){var M=s[C],w=getSelectionKey(r,M);T[w]=!0,this._selectedDataIndicesMap[w]=r.getRawIndex(M)}}else if(S==="single"||S===!0){var D=s[x-1],w=getSelectionKey(r,D);v.selectedMap=(l={},l[w]=!0,l),this._selectedDataIndicesMap=(h={},h[w]=r.getRawIndex(D),h)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var s=[];r.hasItemOption&&r.each(function(l){var h=r.getRawDataItem(l);h&&h.selected&&s.push(l)}),s.length>0&&this._innerSelect(r,s)}},t.registerClass=function(r){return ComponentModel$1.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName(o){var t=o.name;isNameSpecified(o)||(o.name=getSeriesAutoName(o)||t)}function getSeriesAutoName(o){var t=o.getRawData(),r=t.mapDimensionsAll("seriesName"),s=[];return each$c(r,function(l){var h=t.getDimensionInfo(l);h.displayName&&s.push(h.displayName)}),s.join(" ")}function dataTaskCount(o){return o.model.getRawData().count()}function dataTaskReset(o){var t=o.model;return t.setData(t.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress(o,t){t.outputData&&o.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wrapData(o,t){each$c(concatArray(o.CHANGABLE_METHODS,o.DOWNSAMPLE_METHODS),function(r){o.wrapMethod(r,curry$1(onDataChange,t))})}function onDataChange(o,t){var r=getCurrentTask(o);return r&&r.setOutputEnd((t||this).count()),t}function getCurrentTask(o){var t=(o.ecModel||{}).scheduler,r=t&&t.getPipeline(o.uid);if(r){var s=r.currentTask;if(s){var l=s.agentStubMap;l&&(s=l.get(o.uid))}return s}}const SeriesModel$1=SeriesModel;var ComponentView=function(){function o(){this.group=new Group$3,this.uid=getUID("viewComponent")}return o.prototype.init=function(t,r){},o.prototype.render=function(t,r,s,l){},o.prototype.dispose=function(t,r){},o.prototype.updateView=function(t,r,s,l){},o.prototype.updateLayout=function(t,r,s,l){},o.prototype.updateVisual=function(t,r,s,l){},o.prototype.toggleBlurSeries=function(t,r,s){},o.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},o}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);const ComponentView$1=ComponentView;function createRenderPlanner(){var o=makeInner();return function(t){var r=o(t),s=t.pipelineContext,l=!!r.large,h=!!r.progressiveRender,v=r.large=!!(s&&s.large),S=r.progressiveRender=!!(s&&s.progressiveRender);return(l!==v||h!==S)&&"reset"}}var inner$a=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function o(){this.group=new Group$3,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return o.prototype.init=function(t,r){},o.prototype.render=function(t,r,s,l){},o.prototype.highlight=function(t,r,s,l){var h=t.getData(l&&l.dataType);h&&toggleHighlight(h,l,"emphasis")},o.prototype.downplay=function(t,r,s,l){var h=t.getData(l&&l.dataType);h&&toggleHighlight(h,l,"normal")},o.prototype.remove=function(t,r){this.group.removeAll()},o.prototype.dispose=function(t,r){},o.prototype.updateView=function(t,r,s,l){this.render(t,r,s,l)},o.prototype.updateLayout=function(t,r,s,l){this.render(t,r,s,l)},o.prototype.updateVisual=function(t,r,s,l){this.render(t,r,s,l)},o.prototype.eachRendered=function(t){traverseElements(this.group,t)},o.markUpdateMethod=function(t,r){inner$a(t).updateMethod=r},o.protoInitialize=function(){var t=o.prototype;t.type="chart"}(),o}();function elSetState(o,t,r){o&&isHighDownDispatcher(o)&&(t==="emphasis"?enterEmphasis:leaveEmphasis)(o,r)}function toggleHighlight(o,t,r){var s=queryDataIndex(o,t),l=t&&t.highlightKey!=null?getHighlightDigit(t.highlightKey):null;s!=null?each$c(normalizeToArray(s),function(h){elSetState(o.getItemGraphicEl(h),r,l)}):o.eachItemGraphicEl(function(h){elSetState(h,r,l)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan(o){return renderPlanner(o.model)}function renderTaskReset(o){var t=o.model,r=o.ecModel,s=o.api,l=o.payload,h=t.pipelineContext.progressiveRender,v=o.view,S=l&&inner$a(l).updateMethod,x=h?"incrementalPrepareRender":S&&v[S]?S:"render";return x!=="render"&&v[x](t,r,s,l),progressMethodMap[x]}var progressMethodMap={incrementalPrepareRender:{progress:function(o,t){t.view.incrementalRender(o,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(o,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ChartView$1=ChartView;var ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle(o,t,r){var s,l=0,h=0,v=null,S,x,T,C;t=t||0;function M(){h=new Date().getTime(),v=null,o.apply(x,T||[])}var w=function(){for(var D=[],O=0;O<arguments.length;O++)D[O]=arguments[O];s=new Date().getTime(),x=this,T=D;var N=C||t,k=C||r;C=null,S=s-(k?l:h)-N,clearTimeout(v),k?v=setTimeout(M,N):S>=0?M():v=setTimeout(M,-S),l=s};return w.clear=function(){v&&(clearTimeout(v),v=null)},w.debounceNextCall=function(D){C=D},w}function createOrUpdate(o,t,r,s){var l=o[t];if(l){var h=l[ORIGIN_METHOD]||l,v=l[THROTTLE_TYPE],S=l[RATE];if(S!==r||v!==s){if(r==null||!s)return o[t]=h;l=o[t]=throttle(h,r,s==="debounce"),l[ORIGIN_METHOD]=h,l[THROTTLE_TYPE]=s,l[RATE]=r}return l}}function clear$1(o,t){var r=o[t];r&&r[ORIGIN_METHOD]&&(r.clear&&r.clear(),o[t]=r[ORIGIN_METHOD])}var inner$9=makeInner(),defaultStyleMappers={itemStyle:makeStyleMapper(ITEM_STYLE_KEY_MAP,!0),lineStyle:makeStyleMapper(LINE_STYLE_KEY_MAP,!0)},defaultColorKey={lineStyle:"stroke",itemStyle:"fill"};function getStyleMapper(o,t){var r=o.visualStyleMapper||defaultStyleMappers[t];return r||(console.warn("Unknown style type '"+t+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey(o,t){var r=o.visualDrawType||defaultColorKey[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var r=o.getData(),s=o.visualStyleAccessPath||"itemStyle",l=o.getModel(s),h=getStyleMapper(o,s),v=h(l),S=l.getShallow("decal");S&&(r.setVisual("decal",S),S.dirty=!0);var x=getDefaultColorKey(o,s),T=v[x],C=isFunction(T)?T:null,M=v.fill==="auto"||v.stroke==="auto";if(!v[x]||C||M){var w=o.getColorFromPalette(o.name,null,t.getSeriesCount());v[x]||(v[x]=w,r.setVisual("colorFromPalette",!0)),v.fill=v.fill==="auto"||isFunction(v.fill)?w:v.fill,v.stroke=v.stroke==="auto"||isFunction(v.stroke)?w:v.stroke}if(r.setVisual("style",v),r.setVisual("drawType",x),!t.isSeriesFiltered(o)&&C)return r.setVisual("colorFromPalette",!1),{dataEach:function(D,O){var N=o.getDataParams(O),k=extend({},v);k[x]=C(N),D.setItemVisual(O,"style",k)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){if(!(o.ignoreStyleOnData||t.isSeriesFiltered(o))){var r=o.getData(),s=o.visualStyleAccessPath||"itemStyle",l=getStyleMapper(o,s),h=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(v,S){var x=v.getRawDataItem(S);if(x&&x[s]){sharedModel.option=x[s];var T=l(sharedModel),C=v.ensureUniqueItemVisual(S,"style");extend(C,T),sharedModel.option.decal&&(v.setItemVisual(S,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),h in T&&v.setItemVisual(S,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function(o){var t=createHashMap();o.eachSeries(function(r){var s=r.getColorBy();if(!r.isColorBySeries()){var l=r.type+"-"+s,h=t.get(l);h||(h={},t.set(l,h)),inner$9(r).scope=h}}),o.eachSeries(function(r){if(!(r.isColorBySeries()||o.isSeriesFiltered(r))){var s=r.getRawData(),l={},h=r.getData(),v=inner$9(r).scope,S=r.visualStyleAccessPath||"itemStyle",x=getDefaultColorKey(r,S);h.each(function(T){var C=h.getRawIndex(T);l[C]=T}),s.each(function(T){var C=l[T],M=h.getItemVisual(C,"colorFromPalette");if(M){var w=h.ensureUniqueItemVisual(C,"style"),D=s.getName(T)||T+"",O=s.count();w[x]=r.getColorFromPalette(D,v,O)}})}})}},PI$1=Math.PI;function defaultLoading(o,t){t=t||{},defaults(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Group$3,s=new Rect$2({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(s);var l=new ZRText$1({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),h=new Rect$2({style:{fill:"none"},textContent:l,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(h);var v;return t.showSpinner&&(v=new Arc$1({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),v.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),v.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),r.add(v)),r.resize=function(){var S=l.getBoundingRect().width,x=t.showSpinner?t.spinnerRadius:0,T=(o.getWidth()-x*2-(t.showSpinner&&S?10:0)-S)/2-(t.showSpinner&&S?0:5+S/2)+(t.showSpinner?0:S/2)+(S?0:x),C=o.getHeight()/2;t.showSpinner&&v.setShape({cx:T,cy:C}),h.setShape({x:T-x,y:C-x,width:x*2,height:x*2}),s.setShape({x:0,y:0,width:o.getWidth(),height:o.getHeight()})},r.resize(),r}var Scheduler=function(){function o(t,r,s,l){this._stageTaskMap=createHashMap(),this.ecInstance=t,this.api=r,s=this._dataProcessorHandlers=s.slice(),l=this._visualHandlers=l.slice(),this._allHandlers=s.concat(l)}return o.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(s){var l=s.overallTask;l&&l.dirty()})},o.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var s=this._pipelineMap.get(t.__pipeline.id),l=s.context,h=!r&&s.progressiveEnabled&&(!l||l.progressiveRender)&&t.__idxInPipeline>s.blockIndex,v=h?s.step:null,S=l&&l.modDataCount,x=S!=null?Math.ceil(S/v):null;return{step:v,modBy:x,modDataCount:S}}},o.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},o.prototype.updateStreamModes=function(t,r){var s=this._pipelineMap.get(t.uid),l=t.getData(),h=l.count(),v=s.progressiveEnabled&&r.incrementalPrepareRender&&h>=s.threshold,S=t.get("large")&&h>=t.get("largeThreshold"),x=t.get("progressiveChunkMode")==="mod"?h:null;t.pipelineContext=s.context={progressiveRender:v,modDataCount:x,large:S}},o.prototype.restorePipelines=function(t){var r=this,s=r._pipelineMap=createHashMap();t.eachSeries(function(l){var h=l.getProgressive(),v=l.uid;s.set(v,{id:v,head:null,tail:null,threshold:l.getProgressiveThreshold(),progressiveEnabled:h&&!(l.preventIncremental&&l.preventIncremental()),blockIndex:-1,step:Math.round(h||700),count:0}),r._pipe(l,l.dataTask)})},o.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),s=this.api;each$c(this._allHandlers,function(l){var h=t.get(l.uid)||t.set(l.uid,{}),v="";assert(!(l.reset&&l.overallReset),v),l.reset&&this._createSeriesStageTask(l,h,r,s),l.overallReset&&this._createOverallStageTask(l,h,r,s)},this)},o.prototype.prepareView=function(t,r,s,l){var h=t.renderTask,v=h.context;v.model=r,v.ecModel=s,v.api=l,h.__block=!t.incrementalPrepareRender,this._pipe(r,h)},o.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},o.prototype.performVisualTasks=function(t,r,s){this._performStageTasks(this._visualHandlers,t,r,s)},o.prototype._performStageTasks=function(t,r,s,l){l=l||{};var h=!1,v=this;each$c(t,function(x,T){if(!(l.visualType&&l.visualType!==x.visualType)){var C=v._stageTaskMap.get(x.uid),M=C.seriesTaskMap,w=C.overallTask;if(w){var D,O=w.agentStubMap;O.each(function(k){S(l,k)&&(k.dirty(),D=!0)}),D&&w.dirty(),v.updatePayload(w,s);var N=v.getPerformArgs(w,l.block);O.each(function(k){k.perform(N)}),w.perform(N)&&(h=!0)}else M&&M.each(function(k,F){S(l,k)&&k.dirty();var B=v.getPerformArgs(k,l.block);B.skip=!x.performRawSeries&&r.isSeriesFiltered(k.context.model),v.updatePayload(k,s),k.perform(B)&&(h=!0)})}});function S(x,T){return x.setDirty&&(!x.dirtyMap||x.dirtyMap.get(T.__pipeline.id))}this.unfinished=h||this.unfinished},o.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(s){r=s.dataTask.perform()||r}),this.unfinished=r||this.unfinished},o.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},o.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},o.prototype._createSeriesStageTask=function(t,r,s,l){var h=this,v=r.seriesTaskMap,S=r.seriesTaskMap=createHashMap(),x=t.seriesType,T=t.getTargetSeries;t.createOnAllSeries?s.eachRawSeries(C):x?s.eachRawSeriesByType(x,C):T&&T(s,l).each(C);function C(M){var w=M.uid,D=S.set(w,v&&v.get(w)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));D.context={model:M,ecModel:s,api:l,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:h},h._pipe(M,D)}},o.prototype._createOverallStageTask=function(t,r,s,l){var h=this,v=r.overallTask=r.overallTask||createTask({reset:overallTaskReset});v.context={ecModel:s,api:l,overallReset:t.overallReset,scheduler:h};var S=v.agentStubMap,x=v.agentStubMap=createHashMap(),T=t.seriesType,C=t.getTargetSeries,M=!0,w=!1,D="";assert(!t.createOnAllSeries,D),T?s.eachRawSeriesByType(T,O):C?C(s,l).each(O):(M=!1,each$c(s.getSeries(),O));function O(N){var k=N.uid,F=x.set(k,S&&S.get(k)||(w=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));F.context={model:N,overallProgress:M},F.agent=v,F.__block=M,h._pipe(N,F)}w&&v.dirty()},o.prototype._pipe=function(t,r){var s=t.uid,l=this._pipelineMap.get(s);!l.head&&(l.head=r),l.tail&&l.tail.pipe(r),l.tail=r,r.__idxInPipeline=l.count++,r.__pipeline=l},o.wrapStageHandler=function(t,r){return isFunction(t)&&(t={overallReset:t,seriesType:detectSeriseType(t)}),t.uid=getUID("stageHandler"),r&&(t.visualType=r),t},o}();function overallTaskReset(o){o.overallReset(o.ecModel,o.api,o.payload)}function stubReset(o){return o.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan(o){return o.plan?o.plan(o.model,o.ecModel,o.api,o.payload):null}function seriesTaskReset(o){o.useClearVisual&&o.data.clearAllVisual();var t=o.resetDefines=normalizeToArray(o.reset(o.model,o.ecModel,o.api,o.payload));return t.length>1?map$2(t,function(r,s){return makeSeriesTaskProgress(s)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress(o){return function(t,r){var s=r.data,l=r.resetDefines[o];if(l&&l.dataEach)for(var h=t.start;h<t.end;h++)l.dataEach(s,h);else l&&l.progress&&l.progress(t,s)}}function seriesTaskCount(o){return o.data.count()}function detectSeriseType(o){seriesType=null;try{o(ecModelMock,apiMock)}catch{}return seriesType}var ecModelMock={},apiMock={},seriesType;mockMethods(ecModelMock,GlobalModel$1);mockMethods(apiMock,ExtensionAPI$1);ecModelMock.eachSeriesByType=ecModelMock.eachRawSeriesByType=function(o){seriesType=o};ecModelMock.eachComponent=function(o){o.mainType==="series"&&o.subType&&(seriesType=o.subType)};function mockMethods(o,t){for(var r in t.prototype)o[r]=noop}const Scheduler$1=Scheduler;var colorAll=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const lightTheme={color:colorAll,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],colorAll]};var contrastColor="#B9B8CE",backgroundColor="#100C2A",axisCommon=function(){return{axisLine:{lineStyle:{color:contrastColor}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},colorPalette=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],theme={darkMode:!0,color:colorPalette,backgroundColor,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:contrastColor}},textStyle:{color:contrastColor},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:contrastColor}},dataZoom:{borderColor:"#71708A",textStyle:{color:contrastColor},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:contrastColor}},timeline:{lineStyle:{color:contrastColor},label:{color:contrastColor},controlStyle:{color:contrastColor,borderColor:contrastColor}},calendar:{itemStyle:{color:backgroundColor},dayLabel:{color:contrastColor},monthLabel:{color:contrastColor},yearLabel:{color:contrastColor}},timeAxis:axisCommon(),logAxis:axisCommon(),valueAxis:axisCommon(),categoryAxis:axisCommon(),line:{symbol:"circle"},graph:{color:colorPalette},gauge:{title:{color:contrastColor},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:contrastColor},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};theme.categoryAxis.splitLine.show=!1;const darkTheme=theme;var ECEventProcessor=function(){function o(){}return o.prototype.normalizeQuery=function(t){var r={},s={},l={};if(isString(t)){var h=parseClassType(t);r.mainType=h.main||null,r.subType=h.sub||null}else{var v=["Index","Name","Id"],S={name:1,dataIndex:1,dataType:1};each$c(t,function(x,T){for(var C=!1,M=0;M<v.length;M++){var w=v[M],D=T.lastIndexOf(w);if(D>0&&D===T.length-w.length){var O=T.slice(0,D);O!=="data"&&(r.mainType=O,r[w.toLowerCase()]=x,C=!0)}}S.hasOwnProperty(T)&&(s[T]=x,C=!0),C||(l[T]=x)})}return{cptQuery:r,dataQuery:s,otherQuery:l}},o.prototype.filter=function(t,r){var s=this.eventInfo;if(!s)return!0;var l=s.targetEl,h=s.packedEvent,v=s.model,S=s.view;if(!v||!S)return!0;var x=r.cptQuery,T=r.dataQuery;return C(x,v,"mainType")&&C(x,v,"subType")&&C(x,v,"index","componentIndex")&&C(x,v,"name")&&C(x,v,"id")&&C(T,h,"name")&&C(T,h,"dataIndex")&&C(T,h,"dataType")&&(!S.filterForExposedEvent||S.filterForExposedEvent(t,r.otherQuery,l,h));function C(M,w,D,O){return M[D]==null||w[O||D]===M[D]}},o.prototype.afterTrigger=function(){this.eventInfo=null},o}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var r=o.getData();if(o.legendIcon&&r.setVisual("legendIcon",o.legendIcon),!o.hasSymbolVisual)return;for(var s={},l={},h=!1,v=0;v<SYMBOL_PROPS_WITH_CB.length;v++){var S=SYMBOL_PROPS_WITH_CB[v],x=o.get(S);isFunction(x)?(h=!0,l[S]=x):s[S]=x}if(s.symbol=s.symbol||o.defaultSymbol,r.setVisual(extend({legendIcon:o.legendIcon||s.symbol,symbolKeepAspect:o.get("symbolKeepAspect")},s)),t.isSeriesFiltered(o))return;var T=keys(l);function C(M,w){for(var D=o.getRawValue(w),O=o.getDataParams(w),N=0;N<T.length;N++){var k=T[N];M.setItemVisual(w,k,l[k](D,O))}}return{dataEach:h?C:null}}},dataSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){if(!o.hasSymbolVisual||t.isSeriesFiltered(o))return;var r=o.getData();function s(l,h){for(var v=l.getItemModel(h),S=0;S<SYMBOL_PROPS.length;S++){var x=SYMBOL_PROPS[S],T=v.getShallow(x,!0);T!=null&&l.setItemVisual(h,x,T)}}return{dataEach:r.hasItemOption?s:null}}};function getItemVisualFromData(o,t,r){switch(r){case"color":var s=o.getItemVisual(t,"style");return s[o.getVisual("drawType")];case"opacity":return o.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getItemVisual(t,r)}}function getVisualFromData(o,t){switch(t){case"color":var r=o.getVisual("style");return r[o.getVisual("drawType")];case"opacity":return o.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getVisual(t)}}function setItemVisualFromData(o,t,r,s){switch(r){case"color":var l=o.ensureUniqueItemVisual(t,"style");l[o.getVisual("drawType")]=s,o.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":o.ensureUniqueItemVisual(t,"style").opacity=s;break;case"symbol":case"symbolSize":case"liftZ":o.setItemVisual(t,r,s);break}}function createLegacyDataSelectAction(o,t){function r(s,l){var h=[];return s.eachComponent({mainType:"series",subType:o,query:l},function(v){h.push(v.seriesIndex)}),h}each$c([[o+"ToggleSelect","toggleSelect"],[o+"Select","select"],[o+"UnSelect","unselect"]],function(s){t(s[0],function(l,h,v){l=extend({},l),v.dispatchAction(extend(l,{type:s[1],seriesIndex:r(h,l)}))})})}function handleSeriesLegacySelectEvents(o,t,r,s,l){var h=o+t;r.isSilent(h)||s.eachComponent({mainType:"series",subType:"pie"},function(v){for(var S=v.seriesIndex,x=v.option.selectedMap,T=l.selected,C=0;C<T.length;C++)if(T[C].seriesIndex===S){var M=v.getData(),w=queryDataIndex(M,l.fromActionPayload);r.trigger(h,{type:h,seriesId:v.id,name:isArray$1(w)?M.getName(w[0]):M.getName(w),selected:isString(x)?x:extend({},x)})}})}function handleLegacySelectEvents(o,t,r){o.on("selectchanged",function(s){var l=r.getModel();s.isFromClick?(handleSeriesLegacySelectEvents("map","selectchanged",t,l,s),handleSeriesLegacySelectEvents("pie","selectchanged",t,l,s)):s.fromAction==="select"?(handleSeriesLegacySelectEvents("map","selected",t,l,s),handleSeriesLegacySelectEvents("pie","selected",t,l,s)):s.fromAction==="unselect"&&(handleSeriesLegacySelectEvents("map","unselected",t,l,s),handleSeriesLegacySelectEvents("pie","unselected",t,l,s))})}function findEventDispatcher(o,t,r){for(var s;o&&!(t(o)&&(s=o,r));)o=o.__hostTarget||o.parent;return s}var wmUniqueIndex=Math.round(Math.random()*9),supportDefineProperty=typeof Object.defineProperty=="function",WeakMap=function(){function o(){this._id="__ec_inner_"+wmUniqueIndex++}return o.prototype.get=function(t){return this._guard(t)[this._id]},o.prototype.set=function(t,r){var s=this._guard(t);return supportDefineProperty?Object.defineProperty(s,this._id,{value:r,enumerable:!1,configurable:!0}):s[this._id]=r,this},o.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},o.prototype.has=function(t){return!!this._guard(t)[this._id]},o.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},o}();const WeakMap$1=WeakMap;var Triangle=Path$1.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(o,t){var r=t.cx,s=t.cy,l=t.width/2,h=t.height/2;o.moveTo(r,s-h),o.lineTo(r+l,s+h),o.lineTo(r-l,s+h),o.closePath()}}),Diamond=Path$1.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(o,t){var r=t.cx,s=t.cy,l=t.width/2,h=t.height/2;o.moveTo(r,s-h),o.lineTo(r+l,s),o.lineTo(r,s+h),o.lineTo(r-l,s),o.closePath()}}),Pin=Path$1.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(o,t){var r=t.x,s=t.y,l=t.width/5*3,h=Math.max(l,t.height),v=l/2,S=v*v/(h-v),x=s-h+v+S,T=Math.asin(S/v),C=Math.cos(T)*v,M=Math.sin(T),w=Math.cos(T),D=v*.6,O=v*.7;o.moveTo(r-C,x+S),o.arc(r,x,v,Math.PI-T,Math.PI*2+T),o.bezierCurveTo(r+C-M*D,x+S+w*D,r,s-O,r,s),o.bezierCurveTo(r,s-O,r-C+M*D,x+S+w*D,r-C,x+S),o.closePath()}}),Arrow=Path$1.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(o,t){var r=t.height,s=t.width,l=t.x,h=t.y,v=s/3*2;o.moveTo(l,h),o.lineTo(l+v,h+r),o.lineTo(l,h+r/4*3),o.lineTo(l-v,h+r),o.lineTo(l,h),o.closePath()}}),symbolCtors={line:Line$1,rect:Rect$2,roundRect:Rect$2,square:Rect$2,circle:Circle$1,diamond:Diamond,pin:Pin,arrow:Arrow,triangle:Triangle},symbolShapeMakers={line:function(o,t,r,s,l){l.x1=o,l.y1=t+s/2,l.x2=o+r,l.y2=t+s/2},rect:function(o,t,r,s,l){l.x=o,l.y=t,l.width=r,l.height=s},roundRect:function(o,t,r,s,l){l.x=o,l.y=t,l.width=r,l.height=s,l.r=Math.min(r,s)/4},square:function(o,t,r,s,l){var h=Math.min(r,s);l.x=o,l.y=t,l.width=h,l.height=h},circle:function(o,t,r,s,l){l.cx=o+r/2,l.cy=t+s/2,l.r=Math.min(r,s)/2},diamond:function(o,t,r,s,l){l.cx=o+r/2,l.cy=t+s/2,l.width=r,l.height=s},pin:function(o,t,r,s,l){l.x=o+r/2,l.y=t+s/2,l.width=r,l.height=s},arrow:function(o,t,r,s,l){l.x=o+r/2,l.y=t+s/2,l.width=r,l.height=s},triangle:function(o,t,r,s,l){l.cx=o+r/2,l.cy=t+s/2,l.width=r,l.height=s}},symbolBuildProxies={};each$c(symbolCtors,function(o,t){symbolBuildProxies[t]=new o});var SymbolClz$1=Path$1.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(o,t,r){var s=calculateTextPosition(o,t,r),l=this.shape;return l&&l.symbolType==="pin"&&t.position==="inside"&&(s.y=r.y+r.height*.4),s},buildPath:function(o,t,r){var s=t.symbolType;if(s!=="none"){var l=symbolBuildProxies[s];l||(s="rect",l=symbolBuildProxies[s]),symbolShapeMakers[s](t.x,t.y,t.width,t.height,l.shape),l.buildPath(o,l.shape,r)}}});function symbolPathSetColor(o,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=o,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=o:r.fill=o,this.markRedraw()}}function createSymbol(o,t,r,s,l,h,v){var S=o.indexOf("empty")===0;S&&(o=o.substr(5,1).toLowerCase()+o.substr(6));var x;return o.indexOf("image://")===0?x=makeImage(o.slice(8),new BoundingRect$1(t,r,s,l),v?"center":"cover"):o.indexOf("path://")===0?x=makePath(o.slice(7),{},new BoundingRect$1(t,r,s,l),v?"center":"cover"):x=new SymbolClz$1({shape:{symbolType:o,x:t,y:r,width:s,height:l}}),x.__isEmptyBrush=S,x.setColor=symbolPathSetColor,h&&x.setColor(h),x}function normalizeSymbolSize(o){return isArray$1(o)||(o=[+o,+o]),[o[0]||0,o[1]||0]}function normalizeSymbolOffset(o,t){if(o!=null)return isArray$1(o)||(o=[o,o]),[parsePercent(o[0],t[0])||0,parsePercent(retrieve2(o[1],o[0]),t[1])||0]}function isSafeNum(o){return isFinite(o)}function createLinearGradient(o,t,r){var s=t.x==null?0:t.x,l=t.x2==null?1:t.x2,h=t.y==null?0:t.y,v=t.y2==null?0:t.y2;t.global||(s=s*r.width+r.x,l=l*r.width+r.x,h=h*r.height+r.y,v=v*r.height+r.y),s=isSafeNum(s)?s:0,l=isSafeNum(l)?l:1,h=isSafeNum(h)?h:0,v=isSafeNum(v)?v:0;var S=o.createLinearGradient(s,h,l,v);return S}function createRadialGradient(o,t,r){var s=r.width,l=r.height,h=Math.min(s,l),v=t.x==null?.5:t.x,S=t.y==null?.5:t.y,x=t.r==null?.5:t.r;t.global||(v=v*s+r.x,S=S*l+r.y,x=x*h),v=isSafeNum(v)?v:.5,S=isSafeNum(S)?S:.5,x=x>=0&&isSafeNum(x)?x:.5;var T=o.createRadialGradient(v,S,0,v,S,x);return T}function getCanvasGradient(o,t,r){for(var s=t.type==="radial"?createRadialGradient(o,t,r):createLinearGradient(o,t,r),l=t.colorStops,h=0;h<l.length;h++)s.addColorStop(l[h].offset,l[h].color);return s}function isClipPathChanged(o,t){if(o===t||!o&&!t)return!1;if(!o||!t||o.length!==t.length)return!0;for(var r=0;r<o.length;r++)if(o[r]!==t[r])return!0;return!1}function parseInt10(o){return parseInt(o,10)}function getSize$1(o,t,r){var s=["width","height"][t],l=["clientWidth","clientHeight"][t],h=["paddingLeft","paddingTop"][t],v=["paddingRight","paddingBottom"][t];if(r[s]!=null&&r[s]!=="auto")return parseFloat(r[s]);var S=document.defaultView.getComputedStyle(o);return(o[l]||parseInt10(S[s])||parseInt10(o.style[s]))-(parseInt10(S[h])||0)-(parseInt10(S[v])||0)|0}function normalizeLineDash(o,t){return!o||o==="solid"||!(t>0)?null:o==="dashed"?[4*t,2*t]:o==="dotted"?[t]:isNumber(o)?[o]:isArray$1(o)?o:null}function getLineDash(o){var t=o.style,r=t.lineDash&&t.lineWidth>0&&normalizeLineDash(t.lineDash,t.lineWidth),s=t.lineDashOffset;if(r){var l=t.strokeNoScale&&o.getLineScale?o.getLineScale():1;l&&l!==1&&(r=map$2(r,function(h){return h/l}),s/=l)}return[r,s]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke(o){var t=o.stroke;return!(t==null||t==="none"||!(o.lineWidth>0))}function isValidStrokeFillStyle(o){return typeof o=="string"&&o!=="none"}function styleHasFill(o){var t=o.fill;return t!=null&&t!=="none"}function doFillPath(o,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=o.globalAlpha;o.globalAlpha=t.fillOpacity*t.opacity,o.fill(),o.globalAlpha=r}else o.fill()}function doStrokePath(o,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=o.globalAlpha;o.globalAlpha=t.strokeOpacity*t.opacity,o.stroke(),o.globalAlpha=r}else o.stroke()}function createCanvasPattern(o,t,r){var s=createOrUpdateImage(t.image,t.__image,r);if(isImageReady(s)){var l=o.createPattern(s,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&l&&l.setTransform){var h=new DOMMatrix;h.translateSelf(t.x||0,t.y||0),h.rotateSelf(0,0,(t.rotation||0)*RADIAN_TO_DEGREE),h.scaleSelf(t.scaleX||1,t.scaleY||1),l.setTransform(h)}return l}}function brushPath(o,t,r,s){var l,h=styleHasStroke(r),v=styleHasFill(r),S=r.strokePercent,x=S<1,T=!t.path;(!t.silent||x)&&T&&t.createPathProxy();var C=t.path||pathProxyForDraw,M=t.__dirty;if(!s){var w=r.fill,D=r.stroke,O=v&&!!w.colorStops,N=h&&!!D.colorStops,k=v&&!!w.image,F=h&&!!D.image,B=void 0,V=void 0,z=void 0,U=void 0,Y=void 0;(O||N)&&(Y=t.getBoundingRect()),O&&(B=M?getCanvasGradient(o,w,Y):t.__canvasFillGradient,t.__canvasFillGradient=B),N&&(V=M?getCanvasGradient(o,D,Y):t.__canvasStrokeGradient,t.__canvasStrokeGradient=V),k&&(z=M||!t.__canvasFillPattern?createCanvasPattern(o,w,t):t.__canvasFillPattern,t.__canvasFillPattern=z),F&&(U=M||!t.__canvasStrokePattern?createCanvasPattern(o,D,t):t.__canvasStrokePattern,t.__canvasStrokePattern=z),O?o.fillStyle=B:k&&(z?o.fillStyle=z:v=!1),N?o.strokeStyle=V:F&&(U?o.strokeStyle=U:h=!1)}var W=t.getGlobalScale();C.setScale(W[0],W[1],t.segmentIgnoreThreshold);var X,K;o.setLineDash&&r.lineDash&&(l=getLineDash(t),X=l[0],K=l[1]);var J=!0;(T||M&SHAPE_CHANGED_BIT)&&(C.setDPR(o.dpr),x?C.setContext(null):(C.setContext(o),J=!1),C.reset(),t.buildPath(C,t.shape,s),C.toStatic(),t.pathUpdated()),J&&C.rebuildPath(o,x?S:1),X&&(o.setLineDash(X),o.lineDashOffset=K),s||(r.strokeFirst?(h&&doStrokePath(o,r),v&&doFillPath(o,r)):(v&&doFillPath(o,r),h&&doStrokePath(o,r))),X&&o.setLineDash([])}function brushImage(o,t,r){var s=t.__image=createOrUpdateImage(r.image,t.__image,t,t.onload);if(!(!s||!isImageReady(s))){var l=r.x||0,h=r.y||0,v=t.getWidth(),S=t.getHeight(),x=s.width/s.height;if(v==null&&S!=null?v=S*x:S==null&&v!=null?S=v/x:v==null&&S==null&&(v=s.width,S=s.height),r.sWidth&&r.sHeight){var T=r.sx||0,C=r.sy||0;o.drawImage(s,T,C,r.sWidth,r.sHeight,l,h,v,S)}else if(r.sx&&r.sy){var T=r.sx,C=r.sy,M=v-T,w=S-C;o.drawImage(s,T,C,M,w,l,h,v,S)}else o.drawImage(s,l,h,v,S)}}function brushText(o,t,r){var s,l=r.text;if(l!=null&&(l+=""),l){o.font=r.font||DEFAULT_FONT,o.textAlign=r.textAlign,o.textBaseline=r.textBaseline;var h=void 0,v=void 0;o.setLineDash&&r.lineDash&&(s=getLineDash(t),h=s[0],v=s[1]),h&&(o.setLineDash(h),o.lineDashOffset=v),r.strokeFirst?(styleHasStroke(r)&&o.strokeText(l,r.x,r.y),styleHasFill(r)&&o.fillText(l,r.x,r.y)):(styleHasFill(r)&&o.fillText(l,r.x,r.y),styleHasStroke(r)&&o.strokeText(l,r.x,r.y)),h&&o.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps(o,t,r,s,l){var h=!1;if(!s&&(r=r||{},t===r))return!1;if(s||t.opacity!==r.opacity){flushPathDrawn(o,l),h=!0;var v=Math.max(Math.min(t.opacity,1),0);o.globalAlpha=isNaN(v)?DEFAULT_COMMON_STYLE.opacity:v}(s||t.blend!==r.blend)&&(h||(flushPathDrawn(o,l),h=!0),o.globalCompositeOperation=t.blend||DEFAULT_COMMON_STYLE.blend);for(var S=0;S<SHADOW_NUMBER_PROPS.length;S++){var x=SHADOW_NUMBER_PROPS[S];(s||t[x]!==r[x])&&(h||(flushPathDrawn(o,l),h=!0),o[x]=o.dpr*(t[x]||0))}return(s||t.shadowColor!==r.shadowColor)&&(h||(flushPathDrawn(o,l),h=!0),o.shadowColor=t.shadowColor||DEFAULT_COMMON_STYLE.shadowColor),h}function bindPathAndTextCommonStyle(o,t,r,s,l){var h=getStyle(t,l.inHover),v=s?null:r&&getStyle(r,l.inHover)||{};if(h===v)return!1;var S=bindCommonProps(o,h,v,s,l);if((s||h.fill!==v.fill)&&(S||(flushPathDrawn(o,l),S=!0),isValidStrokeFillStyle(h.fill)&&(o.fillStyle=h.fill)),(s||h.stroke!==v.stroke)&&(S||(flushPathDrawn(o,l),S=!0),isValidStrokeFillStyle(h.stroke)&&(o.strokeStyle=h.stroke)),(s||h.opacity!==v.opacity)&&(S||(flushPathDrawn(o,l),S=!0),o.globalAlpha=h.opacity==null?1:h.opacity),t.hasStroke()){var x=h.lineWidth,T=x/(h.strokeNoScale&&t.getLineScale?t.getLineScale():1);o.lineWidth!==T&&(S||(flushPathDrawn(o,l),S=!0),o.lineWidth=T)}for(var C=0;C<STROKE_PROPS.length;C++){var M=STROKE_PROPS[C],w=M[0];(s||h[w]!==v[w])&&(S||(flushPathDrawn(o,l),S=!0),o[w]=h[w]||M[1])}return S}function bindImageStyle(o,t,r,s,l){return bindCommonProps(o,getStyle(t,l.inHover),r&&getStyle(r,l.inHover),s,l)}function setContextTransform(o,t){var r=t.transform,s=o.dpr||1;r?o.setTransform(s*r[0],s*r[1],s*r[2],s*r[3],s*r[4],s*r[5]):o.setTransform(s,0,0,s,0,0)}function updateClipStatus(o,t,r){for(var s=!1,l=0;l<o.length;l++){var h=o[l];s=s||h.isZeroArea(),setContextTransform(t,h),t.beginPath(),h.buildPath(t,h.shape),t.clip()}r.allClipped=s}function isTransformChanged(o,t){return o&&t?o[0]!==t[0]||o[1]!==t[1]||o[2]!==t[2]||o[3]!==t[3]||o[4]!==t[4]||o[5]!==t[5]:!(!o&&!t)}var DRAW_TYPE_PATH=1,DRAW_TYPE_IMAGE=2,DRAW_TYPE_TEXT=3,DRAW_TYPE_INCREMENTAL=4;function canPathBatch(o){var t=styleHasFill(o),r=styleHasStroke(o);return!(o.lineDash||!(+t^+r)||t&&typeof o.fill!="string"||r&&typeof o.stroke!="string"||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1)}function flushPathDrawn(o,t){t.batchFill&&o.fill(),t.batchStroke&&o.stroke(),t.batchFill="",t.batchStroke=""}function getStyle(o,t){return t&&o.__hoverStyle||o.style}function brushSingle(o,t){brush(o,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function brush(o,t,r,s){var l=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~REDRAW_BIT,t.__isRendered=!1;return}var h=t.__clipPaths,v=r.prevElClipPaths,S=!1,x=!1;if((!v||isClipPathChanged(h,v))&&(v&&v.length&&(flushPathDrawn(o,r),o.restore(),x=S=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),h&&h.length&&(flushPathDrawn(o,r),o.save(),updateClipStatus(h,o,r),S=!0),r.prevElClipPaths=h),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var T=r.prevEl;T||(x=S=!0);var C=t instanceof Path$1&&t.autoBatch&&canPathBatch(t.style);S||isTransformChanged(l,T.transform)?(flushPathDrawn(o,r),setContextTransform(o,t)):C||flushPathDrawn(o,r);var M=getStyle(t,r.inHover);t instanceof Path$1?(r.lastDrawType!==DRAW_TYPE_PATH&&(x=!0,r.lastDrawType=DRAW_TYPE_PATH),bindPathAndTextCommonStyle(o,t,T,x,r),(!C||!r.batchFill&&!r.batchStroke)&&o.beginPath(),brushPath(o,t,M,C),C&&(r.batchFill=M.fill||"",r.batchStroke=M.stroke||"")):t instanceof TSpan$1?(r.lastDrawType!==DRAW_TYPE_TEXT&&(x=!0,r.lastDrawType=DRAW_TYPE_TEXT),bindPathAndTextCommonStyle(o,t,T,x,r),brushText(o,t,M)):t instanceof ZRImage$1?(r.lastDrawType!==DRAW_TYPE_IMAGE&&(x=!0,r.lastDrawType=DRAW_TYPE_IMAGE),bindImageStyle(o,t,T,x,r),brushImage(o,t,M)):t.getTemporalDisplayables&&(r.lastDrawType!==DRAW_TYPE_INCREMENTAL&&(x=!0,r.lastDrawType=DRAW_TYPE_INCREMENTAL),brushIncremental(o,t,r)),C&&s&&flushPathDrawn(o,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function brushIncremental(o,t,r){var s=t.getDisplayables(),l=t.getTemporalDisplayables();o.save();var h={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},v,S;for(v=t.getCursor(),S=s.length;v<S;v++){var x=s[v];x.beforeBrush&&x.beforeBrush(),x.innerBeforeBrush(),brush(o,x,h,v===S-1),x.innerAfterBrush(),x.afterBrush&&x.afterBrush(),h.prevEl=x}for(var T=0,C=l.length;T<C;T++){var x=l[T];x.beforeBrush&&x.beforeBrush(),x.innerBeforeBrush(),brush(o,x,h,T===C-1),x.innerAfterBrush(),x.afterBrush&&x.afterBrush(),h.prevEl=x}t.clearTemporalDisplayables(),t.notClear=!0,o.restore()}var decalMap=new WeakMap$1,decalCache=new LRU$1(100),decalKeys=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function createOrUpdatePatternFromDecal(o,t){if(o==="none")return null;var r=t.getDevicePixelRatio(),s=t.getZr(),l=s.painter.type==="svg";o.dirty&&decalMap.delete(o);var h=decalMap.get(o);if(h)return h;var v=defaults(o,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});v.backgroundColor==="none"&&(v.backgroundColor=null);var S={repeat:"repeat"};return x(S),S.rotation=v.rotation,S.scaleX=S.scaleY=l?1:1/r,decalMap.set(o,S),o.dirty=!1,S;function x(T){for(var C=[r],M=!0,w=0;w<decalKeys.length;++w){var D=v[decalKeys[w]];if(D!=null&&!isArray$1(D)&&!isString(D)&&!isNumber(D)&&typeof D!="boolean"){M=!1;break}C.push(D)}var O;if(M){O=C.join(",")+(l?"-svg":"");var N=decalCache.get(O);N&&(l?T.svgElement=N:T.image=N)}var k=normalizeDashArrayX(v.dashArrayX),F=normalizeDashArrayY(v.dashArrayY),B=normalizeSymbolArray(v.symbol),V=getLineBlockLengthX(k),z=getLineBlockLengthY(F),U=!l&&platformApi.createCanvas(),Y=l&&{tag:"g",attrs:{},key:"dcl",children:[]},W=K(),X;U&&(U.width=W.width*r,U.height=W.height*r,X=U.getContext("2d")),J(),M&&decalCache.put(O,U||Y),T.image=U,T.svgElement=Y,T.svgWidth=W.width,T.svgHeight=W.height;function K(){for(var q=1,ee=0,te=V.length;ee<te;++ee)q=getLeastCommonMultiple(q,V[ee]);for(var ne=1,ee=0,te=B.length;ee<te;++ee)ne=getLeastCommonMultiple(ne,B[ee].length);q*=ne;var ae=z*V.length*B.length;return{width:Math.max(1,Math.min(q,v.maxTileWidth)),height:Math.max(1,Math.min(ae,v.maxTileHeight))}}function J(){X&&(X.clearRect(0,0,U.width,U.height),v.backgroundColor&&(X.fillStyle=v.backgroundColor,X.fillRect(0,0,U.width,U.height)));for(var q=0,ee=0;ee<F.length;++ee)q+=F[ee];if(q<=0)return;for(var te=-z,ne=0,ae=0,oe=0;te<W.height;){if(ne%2===0){for(var Se=ae/2%B.length,se=0,le=0,ye=0;se<W.width*2;){for(var we=0,ee=0;ee<k[oe].length;++ee)we+=k[oe][ee];if(we<=0)break;if(le%2===0){var Me=(1-v.symbolSize)*.5,Ee=se+k[oe][le]*Me,Pe=te+F[ne]*Me,$e=k[oe][le]*v.symbolSize,Ie=F[ne]*v.symbolSize,Be=ye/2%B[Se].length;Ne(Ee,Pe,$e,Ie,B[Se][Be])}se+=k[oe][le],++ye,++le,le===k[oe].length&&(le=0)}++oe,oe===k.length&&(oe=0)}te+=F[ne],++ae,++ne,ne===F.length&&(ne=0)}function Ne(he,Te,me,Ce,Fe){var Oe=l?1:r,Ve=createSymbol(Fe,he*Oe,Te*Oe,me*Oe,Ce*Oe,v.color,v.symbolKeepAspect);if(l){var Le=s.painter.renderOneToVNode(Ve);Le&&Y.children.push(Le)}else brushSingle(X,Ve)}}}}function normalizeSymbolArray(o){if(!o||o.length===0)return[["rect"]];if(isString(o))return[[o]];for(var t=!0,r=0;r<o.length;++r)if(!isString(o[r])){t=!1;break}if(t)return normalizeSymbolArray([o]);for(var s=[],r=0;r<o.length;++r)isString(o[r])?s.push([o[r]]):s.push(o[r]);return s}function normalizeDashArrayX(o){if(!o||o.length===0)return[[0,0]];if(isNumber(o)){var t=Math.ceil(o);return[[t,t]]}for(var r=!0,s=0;s<o.length;++s)if(!isNumber(o[s])){r=!1;break}if(r)return normalizeDashArrayX([o]);for(var l=[],s=0;s<o.length;++s)if(isNumber(o[s])){var t=Math.ceil(o[s]);l.push([t,t])}else{var t=map$2(o[s],function(S){return Math.ceil(S)});t.length%2===1?l.push(t.concat(t)):l.push(t)}return l}function normalizeDashArrayY(o){if(!o||typeof o=="object"&&o.length===0)return[0,0];if(isNumber(o)){var t=Math.ceil(o);return[t,t]}var r=map$2(o,function(s){return Math.ceil(s)});return o.length%2?r.concat(r):r}function getLineBlockLengthX(o){return map$2(o,function(t){return getLineBlockLengthY(t)})}function getLineBlockLengthY(o){for(var t=0,r=0;r<o.length;++r)t+=o[r];return o.length%2===1?t*2:t}function decalVisual(o,t){o.eachRawSeries(function(r){if(!o.isSeriesFiltered(r)){var s=r.getData();s.hasItemVisual()&&s.each(function(v){var S=s.getItemVisual(v,"decal");if(S){var x=s.ensureUniqueItemVisual(v,"style");x.decal=createOrUpdatePatternFromDecal(S,t)}});var l=s.getVisual("decal");if(l){var h=s.getVisual("style");h.decal=createOrUpdatePatternFromDecal(l,t)}}})}var lifecycle=new Eventful$1;const lifecycle$1=lifecycle;var implsStore={};function registerImpl(o,t){implsStore[o]=t}function getImpl(o){return implsStore[o]}var version="5.4.1",dependencies={zrender:"5.4.1"},TEST_FRAME_REMAIN_TIME=1,PRIORITY_PROCESSOR_SERIES_FILTER=800,PRIORITY_PROCESSOR_DATASTACK=900,PRIORITY_PROCESSOR_FILTER=1e3,PRIORITY_PROCESSOR_DEFAULT=2e3,PRIORITY_PROCESSOR_STATISTIC=5e3,PRIORITY_VISUAL_LAYOUT=1e3,PRIORITY_VISUAL_PROGRESSIVE_LAYOUT=1100,PRIORITY_VISUAL_GLOBAL=2e3,PRIORITY_VISUAL_CHART=3e3,PRIORITY_VISUAL_COMPONENT=4e3,PRIORITY_VISUAL_CHART_DATA_CUSTOM=4500,PRIORITY_VISUAL_POST_CHART_LAYOUT=4600,PRIORITY_VISUAL_BRUSH=5e3,PRIORITY_VISUAL_ARIA=6e3,PRIORITY_VISUAL_DECAL=7e3,PRIORITY={PROCESSOR:{FILTER:PRIORITY_PROCESSOR_FILTER,SERIES_FILTER:PRIORITY_PROCESSOR_SERIES_FILTER,STATISTIC:PRIORITY_PROCESSOR_STATISTIC},VISUAL:{LAYOUT:PRIORITY_VISUAL_LAYOUT,PROGRESSIVE_LAYOUT:PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,GLOBAL:PRIORITY_VISUAL_GLOBAL,CHART:PRIORITY_VISUAL_CHART,POST_CHART_LAYOUT:PRIORITY_VISUAL_POST_CHART_LAYOUT,COMPONENT:PRIORITY_VISUAL_COMPONENT,BRUSH:PRIORITY_VISUAL_BRUSH,CHART_ITEM:PRIORITY_VISUAL_CHART_DATA_CUSTOM,ARIA:PRIORITY_VISUAL_ARIA,DECAL:PRIORITY_VISUAL_DECAL}},IN_MAIN_PROCESS_KEY="__flagInMainProcess",PENDING_UPDATE="__pendingUpdate",STATUS_NEEDS_UPDATE_KEY="__needsUpdateStatus",ACTION_REG=/^[a-zA-Z0-9_]+$/,CONNECT_STATUS_KEY="__connectUpdateStatus",CONNECT_STATUS_PENDING=0,CONNECT_STATUS_UPDATING=1,CONNECT_STATUS_UPDATED=2;function createRegisterEventWithLowercaseECharts(o){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return toLowercaseNameAndCallEventful(this,o,t)}}function createRegisterEventWithLowercaseMessageCenter(o){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return toLowercaseNameAndCallEventful(this,o,t)}}function toLowercaseNameAndCallEventful(o,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Eventful$1.prototype[t].apply(o,r)}var MessageCenter=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t}(Eventful$1),messageCenterProto=MessageCenter.prototype;messageCenterProto.on=createRegisterEventWithLowercaseMessageCenter("on");messageCenterProto.off=createRegisterEventWithLowercaseMessageCenter("off");var prepare,prepareView,updateDirectly,updateMethods,doConvertPixel,updateStreamModes,doDispatchAction,flushPendingActions,triggerUpdatedEvent,bindRenderedEvent,bindMouseEvent,render,renderComponents,renderSeries,createExtensionAPI,enableConnect,markStatusToUpdate,applyChangedStates,ECharts=function(o){__extends(t,o);function t(r,s,l){var h=o.call(this,new ECEventProcessor)||this;h._chartsViews=[],h._chartsMap={},h._componentsViews=[],h._componentsMap={},h._pendingActions=[],l=l||{},isString(s)&&(s=themeStorage[s]),h._dom=r;var v="canvas",S="auto",x=!1,T=h._zr=init$1(r,{renderer:l.renderer||v,devicePixelRatio:l.devicePixelRatio,width:l.width,height:l.height,ssr:l.ssr,useDirtyRect:retrieve2(l.useDirtyRect,x),useCoarsePointer:retrieve2(l.useCoarsePointer,S),pointerSize:l.pointerSize});h._ssr=l.ssr,h._throttledZrFlush=throttle(bind$1(T.flush,T),17),s=clone$3(s),s&&globalBackwardCompat(s,!0),h._theme=s,h._locale=createLocaleObject(l.locale||SYSTEM_LANG),h._coordSysMgr=new CoordinateSystem;var C=h._api=createExtensionAPI(h);function M(w,D){return w.__prio-D.__prio}return sort(visualFuncs,M),sort(dataProcessorFuncs,M),h._scheduler=new Scheduler$1(h,C,dataProcessorFuncs,visualFuncs),h._messageCenter=new MessageCenter,h._initEvents(),h.resize=bind$1(h.resize,h),T.animation.on("frame",h._onframe,h),bindRenderedEvent(T,h),bindMouseEvent(T,h),setAsPrimitive(h),h}return t.prototype._onframe=function(){if(!this._disposed){applyChangedStates(this);var r=this._scheduler;if(this[PENDING_UPDATE]){var s=this[PENDING_UPDATE].silent;this[IN_MAIN_PROCESS_KEY]=!0;try{prepare(this),updateMethods.update.call(this,null,this[PENDING_UPDATE].updateParams)}catch(x){throw this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,x}this._zr.flush(),this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,flushPendingActions.call(this,s),triggerUpdatedEvent.call(this,s)}else if(r.unfinished){var l=TEST_FRAME_REMAIN_TIME,h=this._model,v=this._api;r.unfinished=!1;do{var S=+new Date;r.performSeriesTasks(h),r.performDataProcessorTasks(h),updateStreamModes(this,h),r.performVisualTasks(h),renderSeries(this,this._model,v,"remain",{}),l-=+new Date-S}while(l>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,s,l){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var h,v,S;if(isObject$3(s)&&(l=s.lazyUpdate,h=s.silent,v=s.replaceMerge,S=s.transition,s=s.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||s){var x=new OptionManager$1(this._api),T=this._theme,C=this._model=new GlobalModel$1;C.scheduler=this._scheduler,C.ssr=this._ssr,C.init(null,null,null,T,this._locale,x)}this._model.setOption(r,{replaceMerge:v},optionPreprocessorFuncs);var M={seriesTransition:S,optionChanged:!0};if(l)this[PENDING_UPDATE]={silent:h,updateParams:M},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare(this),updateMethods.update.call(this,null,M)}catch(w){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,w}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,h),triggerUpdatedEvent.call(this,h)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var s=this._zr.painter;return s.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var s=this._zr.painter;return s.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(env$1.svgSupported){var r=this._zr,s=r.storage.getDisplayList();return each$c(s,function(l){l.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var s=r.excludeComponents,l=this._model,h=[],v=this;each$c(s,function(x){l.eachComponent({mainType:x},function(T){var C=v._componentsMap[T.__viewId];C.group.ignore||(h.push(C),C.group.ignore=!0)})});var S=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return each$c(h,function(x){x.group.ignore=!1}),S},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var s=r.type==="svg",l=this.group,h=Math.min,v=Math.max,S=1/0;if(connectedGroups[l]){var x=S,T=S,C=-S,M=-S,w=[],D=r&&r.pixelRatio||this.getDevicePixelRatio();each$c(instances,function(V,z){if(V.group===l){var U=s?V.getZr().painter.getSvgDom().innerHTML:V.renderToCanvas(clone$3(r)),Y=V.getDom().getBoundingClientRect();x=h(Y.left,x),T=h(Y.top,T),C=v(Y.right,C),M=v(Y.bottom,M),w.push({dom:U,left:Y.left,top:Y.top})}}),x*=D,T*=D,C*=D,M*=D;var O=C-x,N=M-T,k=platformApi.createCanvas(),F=init$1(k,{renderer:s?"svg":"canvas"});if(F.resize({width:O,height:N}),s){var B="";return each$c(w,function(V){var z=V.left-x,U=V.top-T;B+='<g transform="translate('+z+","+U+')">'+V.dom+"</g>"}),F.painter.getSvgRoot().innerHTML=B,r.connectedBackgroundColor&&F.painter.setBackgroundColor(r.connectedBackgroundColor),F.refreshImmediately(),F.painter.toDataURL()}else return r.connectedBackgroundColor&&F.add(new Rect$2({shape:{x:0,y:0,width:O,height:N},style:{fill:r.connectedBackgroundColor}})),each$c(w,function(V){var z=new ZRImage$1({style:{x:V.left*D-x,y:V.top*D-T,image:V.dom}});F.add(z)}),F.refreshImmediately(),k.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,s){return doConvertPixel(this,"convertToPixel",r,s)},t.prototype.convertFromPixel=function(r,s){return doConvertPixel(this,"convertFromPixel",r,s)},t.prototype.containPixel=function(r,s){if(this._disposed){this.id;return}var l=this._model,h,v=parseFinder$1(l,r);return each$c(v,function(S,x){x.indexOf("Models")>=0&&each$c(S,function(T){var C=T.coordinateSystem;if(C&&C.containPoint)h=h||!!C.containPoint(s);else if(x==="seriesModels"){var M=this._chartsMap[T.__viewId];M&&M.containPoint&&(h=h||M.containPoint(s,T))}},this)},this),!!h},t.prototype.getVisual=function(r,s){var l=this._model,h=parseFinder$1(l,r,{defaultMainType:"series"}),v=h.seriesModel,S=v.getData(),x=h.hasOwnProperty("dataIndexInside")?h.dataIndexInside:h.hasOwnProperty("dataIndex")?S.indexOfRawIndex(h.dataIndex):null;return x!=null?getItemVisualFromData(S,x,s):getVisualFromData(S,s)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;each$c(MOUSE_EVENT_NAMES,function(s){var l=function(h){var v=r.getModel(),S=h.target,x,T=s==="globalout";if(T?x={}:S&&findEventDispatcher(S,function(O){var N=getECData(O);if(N&&N.dataIndex!=null){var k=N.dataModel||v.getSeriesByIndex(N.seriesIndex);return x=k&&k.getDataParams(N.dataIndex,N.dataType)||{},!0}else if(N.eventData)return x=extend({},N.eventData),!0},!0),x){var C=x.componentType,M=x.componentIndex;(C==="markLine"||C==="markPoint"||C==="markArea")&&(C="series",M=x.seriesIndex);var w=C&&M!=null&&v.getComponent(C,M),D=w&&r[w.mainType==="series"?"_chartsMap":"_componentsMap"][w.__viewId];x.event=h,x.type=s,r._$eventProcessor.eventInfo={targetEl:S,packedEvent:x,model:w,view:D},r.trigger(s,x)}};l.zrEventfulCallAtLast=!0,r._zr.on(s,l,r)}),each$c(eventActionMap,function(s,l){r._messageCenter.on(l,function(h){this.trigger(l,h)},r)}),each$c(["selectchanged"],function(s){r._messageCenter.on(s,function(l){this.trigger(s,l)},r)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var s=this,l=s._api,h=s._model;each$c(s._componentsViews,function(v){v.dispose(h,l)}),each$c(s._chartsViews,function(v){v.dispose(h,l)}),s._zr.dispose(),s._dom=s._model=s._chartsMap=s._componentsMap=s._chartsViews=s._componentsViews=s._scheduler=s._api=s._zr=s._throttledZrFlush=s._theme=s._coordSysMgr=s._messageCenter=null,delete instances[s.id]},t.prototype.resize=function(r){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(r);var s=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!s){var l=s.resetOption("media"),h=r&&r.silent;this[PENDING_UPDATE]&&(h==null&&(h=this[PENDING_UPDATE].silent),l=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{l&&prepare(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},r&&r.animation)})}catch(v){throw this[IN_MAIN_PROCESS_KEY]=!1,v}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,h),triggerUpdatedEvent.call(this,h)}}},t.prototype.showLoading=function(r,s){if(this._disposed){this.id;return}if(isObject$3(r)&&(s=r,r=""),r=r||"default",this.hideLoading(),!!loadingEffects[r]){var l=loadingEffects[r](this._api,s),h=this._zr;this._loadingFX=l,h.add(l)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var s=extend({},r);return s.type=eventActionMap[r.type],s},t.prototype.dispatchAction=function(r,s){if(this._disposed){this.id;return}if(isObject$3(s)||(s={silent:!!s}),!!actions[r.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(r);return}var l=s.silent;doDispatchAction.call(this,r,l);var h=s.flush;h?this._zr.flush():h!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,l),triggerUpdatedEvent.call(this,l)}},t.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var s=r.seriesIndex,l=this.getModel(),h=l.getSeriesByIndex(s);h.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){prepare=function(M){var w=M._scheduler;w.restorePipelines(M._model),w.prepareStageTasks(),prepareView(M,!0),prepareView(M,!1),w.plan()},prepareView=function(M,w){for(var D=M._model,O=M._scheduler,N=w?M._componentsViews:M._chartsViews,k=w?M._componentsMap:M._chartsMap,F=M._zr,B=M._api,V=0;V<N.length;V++)N[V].__alive=!1;w?D.eachComponent(function(Y,W){Y!=="series"&&z(W)}):D.eachSeries(z);function z(Y){var W=Y.__requireNewView;Y.__requireNewView=!1;var X="_ec_"+Y.id+"_"+Y.type,K=!W&&k[X];if(!K){var J=parseClassType(Y.type),q=w?ComponentView$1.getClass(J.main,J.sub):ChartView$1.getClass(J.sub);K=new q,K.init(D,B),k[X]=K,N.push(K),F.add(K.group)}Y.__viewId=K.__id=X,K.__alive=!0,K.__model=Y,K.group.__ecComponentInfo={mainType:Y.mainType,index:Y.componentIndex},!w&&O.prepareView(K,Y,D,B)}for(var V=0;V<N.length;){var U=N[V];U.__alive?V++:(!w&&U.renderTask.dispose(),F.remove(U.group),U.dispose(D,B),N.splice(V,1),k[U.__id]===U&&delete k[U.__id],U.__id=U.group.__ecComponentInfo=null)}},updateDirectly=function(M,w,D,O,N){var k=M._model;if(k.setUpdatePayload(D),!O){each$c([].concat(M._componentsViews).concat(M._chartsViews),U);return}var F={};F[O+"Id"]=D[O+"Id"],F[O+"Index"]=D[O+"Index"],F[O+"Name"]=D[O+"Name"];var B={mainType:O,query:F};N&&(B.subType=N);var V=D.excludeSeriesId,z;V!=null&&(z=createHashMap(),each$c(normalizeToArray(V),function(Y){var W=convertOptionIdName(Y,null);W!=null&&z.set(W,!0)})),k&&k.eachComponent(B,function(Y){var W=z&&z.get(Y.id)!=null;if(!W)if(isHighDownPayload(D))if(Y instanceof SeriesModel$1)D.type===HIGHLIGHT_ACTION_TYPE&&!D.notBlur&&!Y.get(["emphasis","disabled"])&&blurSeriesFromHighlightPayload(Y,D,M._api);else{var X=findComponentHighDownDispatchers(Y.mainType,Y.componentIndex,D.name,M._api),K=X.focusSelf,J=X.dispatchers;D.type===HIGHLIGHT_ACTION_TYPE&&K&&!D.notBlur&&blurComponent(Y.mainType,Y.componentIndex,M._api),J&&each$c(J,function(q){D.type===HIGHLIGHT_ACTION_TYPE?enterEmphasis(q):leaveEmphasis(q)})}else isSelectChangePayload(D)&&Y instanceof SeriesModel$1&&(toggleSelectionFromPayload(Y,D,M._api),updateSeriesElementSelection(Y),markStatusToUpdate(M))},M),k&&k.eachComponent(B,function(Y){var W=z&&z.get(Y.id)!=null;W||U(M[O==="series"?"_chartsMap":"_componentsMap"][Y.__viewId])},M);function U(Y){Y&&Y.__alive&&Y[w]&&Y[w](Y.__model,k,M._api,D)}},updateMethods={prepareAndUpdate:function(M){prepare(this),updateMethods.update.call(this,M,{optionChanged:M.newOption!=null})},update:function(M,w){var D=this._model,O=this._api,N=this._zr,k=this._coordSysMgr,F=this._scheduler;if(D){D.setUpdatePayload(M),F.restoreData(D,M),F.performSeriesTasks(D),k.create(D,O),F.performDataProcessorTasks(D,M),updateStreamModes(this,D),k.update(D,O),r(D),F.performVisualTasks(D,M),render(this,D,O,M,w);var B=D.get("backgroundColor")||"transparent",V=D.get("darkMode");N.setBackgroundColor(B),V!=null&&V!=="auto"&&N.setDarkMode(V),lifecycle$1.trigger("afterupdate",D,O)}},updateTransform:function(M){var w=this,D=this._model,O=this._api;if(D){D.setUpdatePayload(M);var N=[];D.eachComponent(function(F,B){if(F!=="series"){var V=w.getViewOfComponentModel(B);if(V&&V.__alive)if(V.updateTransform){var z=V.updateTransform(B,D,O,M);z&&z.update&&N.push(V)}else N.push(V)}});var k=createHashMap();D.eachSeries(function(F){var B=w._chartsMap[F.__viewId];if(B.updateTransform){var V=B.updateTransform(F,D,O,M);V&&V.update&&k.set(F.uid,1)}else k.set(F.uid,1)}),r(D),this._scheduler.performVisualTasks(D,M,{setDirty:!0,dirtyMap:k}),renderSeries(this,D,O,M,{},k),lifecycle$1.trigger("afterupdate",D,O)}},updateView:function(M){var w=this._model;w&&(w.setUpdatePayload(M),ChartView$1.markUpdateMethod(M,"updateView"),r(w),this._scheduler.performVisualTasks(w,M,{setDirty:!0}),render(this,w,this._api,M,{}),lifecycle$1.trigger("afterupdate",w,this._api))},updateVisual:function(M){var w=this,D=this._model;D&&(D.setUpdatePayload(M),D.eachSeries(function(O){O.getData().clearAllVisual()}),ChartView$1.markUpdateMethod(M,"updateVisual"),r(D),this._scheduler.performVisualTasks(D,M,{visualType:"visual",setDirty:!0}),D.eachComponent(function(O,N){if(O!=="series"){var k=w.getViewOfComponentModel(N);k&&k.__alive&&k.updateVisual(N,D,w._api,M)}}),D.eachSeries(function(O){var N=w._chartsMap[O.__viewId];N.updateVisual(O,D,w._api,M)}),lifecycle$1.trigger("afterupdate",D,this._api))},updateLayout:function(M){updateMethods.update.call(this,M)}},doConvertPixel=function(M,w,D,O){if(M._disposed){M.id;return}for(var N=M._model,k=M._coordSysMgr.getCoordinateSystems(),F,B=parseFinder$1(N,D),V=0;V<k.length;V++){var z=k[V];if(z[w]&&(F=z[w](N,B,O))!=null)return F}},updateStreamModes=function(M,w){var D=M._chartsMap,O=M._scheduler;w.eachSeries(function(N){O.updateStreamModes(N,D[N.__viewId])})},doDispatchAction=function(M,w){var D=this,O=this.getModel(),N=M.type,k=M.escapeConnect,F=actions[N],B=F.actionInfo,V=(B.update||"update").split(":"),z=V.pop(),U=V[0]!=null&&parseClassType(V[0]);this[IN_MAIN_PROCESS_KEY]=!0;var Y=[M],W=!1;M.batch&&(W=!0,Y=map$2(M.batch,function(ne){return ne=defaults(extend({},ne),M),ne.batch=null,ne}));var X=[],K,J=isSelectChangePayload(M),q=isHighDownPayload(M);if(q&&allLeaveBlur(this._api),each$c(Y,function(ne){if(K=F.action(ne,D._model,D._api),K=K||extend({},ne),K.type=B.event||K.type,X.push(K),q){var ae=preParseFinder(M),oe=ae.queryOptionMap,Se=ae.mainTypeSpecified,se=Se?oe.keys()[0]:"series";updateDirectly(D,z,ne,se),markStatusToUpdate(D)}else J?(updateDirectly(D,z,ne,"series"),markStatusToUpdate(D)):U&&updateDirectly(D,z,ne,U.main,U.sub)}),z!=="none"&&!q&&!J&&!U)try{this[PENDING_UPDATE]?(prepare(this),updateMethods.update.call(this,M),this[PENDING_UPDATE]=null):updateMethods[z].call(this,M)}catch(ne){throw this[IN_MAIN_PROCESS_KEY]=!1,ne}if(W?K={type:B.event||N,escapeConnect:k,batch:X}:K=X[0],this[IN_MAIN_PROCESS_KEY]=!1,!w){var ee=this._messageCenter;if(ee.trigger(K.type,K),J){var te={type:"selectchanged",escapeConnect:k,selected:getAllSelectedIndices(O),isFromClick:M.isFromClick||!1,fromAction:M.type,fromActionPayload:M};ee.trigger(te.type,te)}}},flushPendingActions=function(M){for(var w=this._pendingActions;w.length;){var D=w.shift();doDispatchAction.call(this,D,M)}},triggerUpdatedEvent=function(M){!M&&this.trigger("updated")},bindRenderedEvent=function(M,w){M.on("rendered",function(D){w.trigger("rendered",D),M.animation.isFinished()&&!w[PENDING_UPDATE]&&!w._scheduler.unfinished&&!w._pendingActions.length&&w.trigger("finished")})},bindMouseEvent=function(M,w){M.on("mouseover",function(D){var O=D.target,N=findEventDispatcher(O,isHighDownDispatcher);N&&(handleGlobalMouseOverForHighDown(N,D,w._api),markStatusToUpdate(w))}).on("mouseout",function(D){var O=D.target,N=findEventDispatcher(O,isHighDownDispatcher);N&&(handleGlobalMouseOutForHighDown(N,D,w._api),markStatusToUpdate(w))}).on("click",function(D){var O=D.target,N=findEventDispatcher(O,function(B){return getECData(B).dataIndex!=null},!0);if(N){var k=N.selected?"unselect":"select",F=getECData(N);w._api.dispatchAction({type:k,dataType:F.dataType,dataIndexInside:F.dataIndex,seriesIndex:F.seriesIndex,isFromClick:!0})}})};function r(M){M.clearColorPalette(),M.eachSeries(function(w){w.clearColorPalette()})}function s(M){var w=[],D=[],O=!1;if(M.eachComponent(function(B,V){var z=V.get("zlevel")||0,U=V.get("z")||0,Y=V.getZLevelKey();O=O||!!Y,(B==="series"?D:w).push({zlevel:z,z:U,idx:V.componentIndex,type:B,key:Y})}),O){var N=w.concat(D),k,F;sort(N,function(B,V){return B.zlevel===V.zlevel?B.z-V.z:B.zlevel-V.zlevel}),each$c(N,function(B){var V=M.getComponent(B.type,B.idx),z=B.zlevel,U=B.key;k!=null&&(z=Math.max(k,z)),U?(z===k&&U!==F&&z++,F=U):F&&(z===k&&z++,F=""),k=z,V.setZLevel(z)})}}render=function(M,w,D,O,N){s(w),renderComponents(M,w,D,O,N),each$c(M._chartsViews,function(k){k.__alive=!1}),renderSeries(M,w,D,O,N),each$c(M._chartsViews,function(k){k.__alive||k.remove(w,D)})},renderComponents=function(M,w,D,O,N,k){each$c(k||M._componentsViews,function(F){var B=F.__model;T(B,F),F.render(B,w,D,O),S(B,F),C(B,F)})},renderSeries=function(M,w,D,O,N,k){var F=M._scheduler;N=extend(N||{},{updatedSeries:w.getSeries()}),lifecycle$1.trigger("series:beforeupdate",w,D,N);var B=!1;w.eachSeries(function(V){var z=M._chartsMap[V.__viewId];z.__alive=!0;var U=z.renderTask;F.updatePayload(U,O),T(V,z),k&&k.get(V.uid)&&U.dirty(),U.perform(F.getPerformArgs(U))&&(B=!0),z.group.silent=!!V.get("silent"),v(V,z),updateSeriesElementSelection(V)}),F.unfinished=B||F.unfinished,lifecycle$1.trigger("series:layoutlabels",w,D,N),lifecycle$1.trigger("series:transition",w,D,N),w.eachSeries(function(V){var z=M._chartsMap[V.__viewId];S(V,z),C(V,z)}),h(M,w),lifecycle$1.trigger("series:afterupdate",w,D,N)},markStatusToUpdate=function(M){M[STATUS_NEEDS_UPDATE_KEY]=!0,M.getZr().wakeUp()},applyChangedStates=function(M){M[STATUS_NEEDS_UPDATE_KEY]&&(M.getZr().storage.traverse(function(w){isElementRemoved(w)||l(w)}),M[STATUS_NEEDS_UPDATE_KEY]=!1)};function l(M){for(var w=[],D=M.currentStates,O=0;O<D.length;O++){var N=D[O];N==="emphasis"||N==="blur"||N==="select"||w.push(N)}M.selected&&M.states.select&&w.push("select"),M.hoverState===HOVER_STATE_EMPHASIS&&M.states.emphasis?w.push("emphasis"):M.hoverState===HOVER_STATE_BLUR&&M.states.blur&&w.push("blur"),M.useStates(w)}function h(M,w){var D=M._zr,O=D.storage,N=0;O.traverse(function(k){k.isGroup||N++}),N>w.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&w.eachSeries(function(k){if(!k.preventUsingHoverLayer){var F=M._chartsMap[k.__viewId];F.__alive&&F.eachRendered(function(B){B.states.emphasis&&(B.states.emphasis.hoverLayer=!0)})}})}function v(M,w){var D=M.get("blendMode")||null;w.eachRendered(function(O){O.isGroup||(O.style.blend=D)})}function S(M,w){if(!M.preventAutoZ){var D=M.get("z")||0,O=M.get("zlevel")||0;w.eachRendered(function(N){return x(N,D,O,-1/0),!0})}}function x(M,w,D,O){var N=M.getTextContent(),k=M.getTextGuideLine(),F=M.isGroup;if(F)for(var B=M.childrenRef(),V=0;V<B.length;V++)O=Math.max(x(B[V],w,D,O),O);else M.z=w,M.zlevel=D,O=Math.max(M.z2,O);if(N&&(N.z=w,N.zlevel=D,isFinite(O)&&(N.z2=O+2)),k){var z=M.textGuideLineConfig;k.z=w,k.zlevel=D,isFinite(O)&&(k.z2=O+(z&&z.showAbove?1:-1))}return O}function T(M,w){w.eachRendered(function(D){if(!isElementRemoved(D)){var O=D.getTextContent(),N=D.getTextGuideLine();D.stateTransition&&(D.stateTransition=null),O&&O.stateTransition&&(O.stateTransition=null),N&&N.stateTransition&&(N.stateTransition=null),D.hasState()?(D.prevStates=D.currentStates,D.clearStates()):D.prevStates&&(D.prevStates=null)}})}function C(M,w){var D=M.getModel("stateAnimation"),O=M.isAnimationEnabled(),N=D.get("duration"),k=N>0?{duration:N,delay:D.get("delay"),easing:D.get("easing")}:null;w.eachRendered(function(F){if(F.states&&F.states.emphasis){if(isElementRemoved(F))return;if(F instanceof Path$1&&savePathStates(F),F.__dirty){var B=F.prevStates;B&&F.useStates(B)}if(O){F.stateTransition=k;var V=F.getTextContent(),z=F.getTextGuideLine();V&&(V.stateTransition=k),z&&(z.stateTransition=k)}F.__dirty&&l(F)}})}createExtensionAPI=function(M){return new(function(w){__extends(D,w);function D(){return w!==null&&w.apply(this,arguments)||this}return D.prototype.getCoordinateSystems=function(){return M._coordSysMgr.getCoordinateSystems()},D.prototype.getComponentByElement=function(O){for(;O;){var N=O.__ecComponentInfo;if(N!=null)return M._model.getComponent(N.mainType,N.index);O=O.parent}},D.prototype.enterEmphasis=function(O,N){enterEmphasis(O,N),markStatusToUpdate(M)},D.prototype.leaveEmphasis=function(O,N){leaveEmphasis(O,N),markStatusToUpdate(M)},D.prototype.enterBlur=function(O){enterBlur(O),markStatusToUpdate(M)},D.prototype.leaveBlur=function(O){leaveBlur(O),markStatusToUpdate(M)},D.prototype.enterSelect=function(O){enterSelect(O),markStatusToUpdate(M)},D.prototype.leaveSelect=function(O){leaveSelect(O),markStatusToUpdate(M)},D.prototype.getModel=function(){return M.getModel()},D.prototype.getViewOfComponentModel=function(O){return M.getViewOfComponentModel(O)},D.prototype.getViewOfSeriesModel=function(O){return M.getViewOfSeriesModel(O)},D}(ExtensionAPI$1))(M)},enableConnect=function(M){function w(D,O){for(var N=0;N<D.length;N++){var k=D[N];k[CONNECT_STATUS_KEY]=O}}each$c(eventActionMap,function(D,O){M._messageCenter.on(O,function(N){if(connectedGroups[M.group]&&M[CONNECT_STATUS_KEY]!==CONNECT_STATUS_PENDING){if(N&&N.escapeConnect)return;var k=M.makeActionFromEvent(N),F=[];each$c(instances,function(B){B!==M&&B.group===M.group&&F.push(B)}),w(F,CONNECT_STATUS_PENDING),each$c(F,function(B){B[CONNECT_STATUS_KEY]!==CONNECT_STATUS_UPDATING&&B.dispatchAction(k)}),w(F,CONNECT_STATUS_UPDATED)}})})}}(),t}(Eventful$1),echartsProto=ECharts.prototype;echartsProto.on=createRegisterEventWithLowercaseECharts("on");echartsProto.off=createRegisterEventWithLowercaseECharts("off");echartsProto.one=function(o,t,r){var s=this;function l(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];t&&t.apply&&t.apply(this,h),s.off(o,l)}this.on.call(this,o,l,r)};var MOUSE_EVENT_NAMES=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function disposedWarning(o){}var actions={},eventActionMap={},dataProcessorFuncs=[],optionPreprocessorFuncs=[],visualFuncs=[],themeStorage={},loadingEffects={},instances={},connectedGroups={},idBase=+new Date-0,groupIdBase=+new Date-0,DOM_ATTRIBUTE_KEY="_echarts_instance_";function init(o,t,r){var s=!(r&&r.ssr);if(s){var l=getInstanceByDom(o);if(l)return l}var h=new ECharts(o,t,r);return h.id="ec_"+idBase++,instances[h.id]=h,s&&setAttribute(o,DOM_ATTRIBUTE_KEY,h.id),enableConnect(h),lifecycle$1.trigger("afterinit",h),h}function connect(o){if(isArray$1(o)){var t=o;o=null,each$c(t,function(r){r.group!=null&&(o=r.group)}),o=o||"g_"+groupIdBase++,each$c(t,function(r){r.group=o})}return connectedGroups[o]=!0,o}function disConnect(o){connectedGroups[o]=!1}var disconnect=disConnect;function dispose(o){isString(o)?o=instances[o]:o instanceof ECharts||(o=getInstanceByDom(o)),o instanceof ECharts&&!o.isDisposed()&&o.dispose()}function getInstanceByDom(o){return instances[getAttribute(o,DOM_ATTRIBUTE_KEY)]}function getInstanceById(o){return instances[o]}function registerTheme(o,t){themeStorage[o]=t}function registerPreprocessor(o){indexOf(optionPreprocessorFuncs,o)<0&&optionPreprocessorFuncs.push(o)}function registerProcessor(o,t){normalizeRegister(dataProcessorFuncs,o,t,PRIORITY_PROCESSOR_DEFAULT)}function registerPostInit(o){registerUpdateLifecycle("afterinit",o)}function registerPostUpdate(o){registerUpdateLifecycle("afterupdate",o)}function registerUpdateLifecycle(o,t){lifecycle$1.on(o,t)}function registerAction(o,t,r){isFunction(t)&&(r=t,t="");var s=isObject$3(o)?o.type:[o,o={event:t}][0];o.event=(o.event||s).toLowerCase(),t=o.event,!eventActionMap[t]&&(assert(ACTION_REG.test(s)&&ACTION_REG.test(t)),actions[s]||(actions[s]={action:r,actionInfo:o}),eventActionMap[t]=s)}function registerCoordinateSystem(o,t){CoordinateSystem.register(o,t)}function getCoordinateSystemDimensions(o){var t=CoordinateSystem.get(o);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function registerLayout(o,t){normalizeRegister(visualFuncs,o,t,PRIORITY_VISUAL_LAYOUT,"layout")}function registerVisual(o,t){normalizeRegister(visualFuncs,o,t,PRIORITY_VISUAL_CHART,"visual")}var registeredTasks=[];function normalizeRegister(o,t,r,s,l){if((isFunction(t)||isObject$3(t))&&(r=t,t=s),!(indexOf(registeredTasks,r)>=0)){registeredTasks.push(r);var h=Scheduler$1.wrapStageHandler(r,l);h.__prio=t,h.__raw=r,o.push(h)}}function registerLoading(o,t){loadingEffects[o]=t}function setCanvasCreator(o){setPlatformAPI({createCanvas:o})}function registerMap(o,t,r){var s=getImpl("registerMap");s&&s(o,t,r)}function getMap(o){var t=getImpl("getMap");return t&&t(o)}var registerTransform=registerExternalTransform;registerVisual(PRIORITY_VISUAL_GLOBAL,seriesStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataColorPaletteTask);registerVisual(PRIORITY_VISUAL_GLOBAL,seriesSymbolTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataSymbolTask);registerVisual(PRIORITY_VISUAL_DECAL,decalVisual);registerPreprocessor(globalBackwardCompat);registerProcessor(PRIORITY_PROCESSOR_DATASTACK,dataStack$1);registerLoading("default",defaultLoading);registerAction({type:HIGHLIGHT_ACTION_TYPE,event:HIGHLIGHT_ACTION_TYPE,update:HIGHLIGHT_ACTION_TYPE},noop);registerAction({type:DOWNPLAY_ACTION_TYPE,event:DOWNPLAY_ACTION_TYPE,update:DOWNPLAY_ACTION_TYPE},noop);registerAction({type:SELECT_ACTION_TYPE,event:SELECT_ACTION_TYPE,update:SELECT_ACTION_TYPE},noop);registerAction({type:UNSELECT_ACTION_TYPE,event:UNSELECT_ACTION_TYPE,update:UNSELECT_ACTION_TYPE},noop);registerAction({type:TOGGLE_SELECT_ACTION_TYPE,event:TOGGLE_SELECT_ACTION_TYPE,update:TOGGLE_SELECT_ACTION_TYPE},noop);registerTheme("light",lightTheme);registerTheme("dark",darkTheme);var dataTool={};function dataIndexMapValueLength(o){return o==null?0:o.length||1}function defaultKeyGetter(o){return o}var DataDiffer=function(){function o(t,r,s,l,h,v){this._old=t,this._new=r,this._oldKeyGetter=s||defaultKeyGetter,this._newKeyGetter=l||defaultKeyGetter,this.context=h,this._diffModeMultiple=v==="multiple"}return o.prototype.add=function(t){return this._add=t,this},o.prototype.update=function(t){return this._update=t,this},o.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},o.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},o.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},o.prototype.remove=function(t){return this._remove=t,this},o.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},o.prototype._executeOneToOne=function(){var t=this._old,r=this._new,s={},l=new Array(t.length),h=new Array(r.length);this._initIndexMap(t,null,l,"_oldKeyGetter"),this._initIndexMap(r,s,h,"_newKeyGetter");for(var v=0;v<t.length;v++){var S=l[v],x=s[S],T=dataIndexMapValueLength(x);if(T>1){var C=x.shift();x.length===1&&(s[S]=x[0]),this._update&&this._update(C,v)}else T===1?(s[S]=null,this._update&&this._update(x,v)):this._remove&&this._remove(v)}this._performRestAdd(h,s)},o.prototype._executeMultiple=function(){var t=this._old,r=this._new,s={},l={},h=[],v=[];this._initIndexMap(t,s,h,"_oldKeyGetter"),this._initIndexMap(r,l,v,"_newKeyGetter");for(var S=0;S<h.length;S++){var x=h[S],T=s[x],C=l[x],M=dataIndexMapValueLength(T),w=dataIndexMapValueLength(C);if(M>1&&w===1)this._updateManyToOne&&this._updateManyToOne(C,T),l[x]=null;else if(M===1&&w>1)this._updateOneToMany&&this._updateOneToMany(C,T),l[x]=null;else if(M===1&&w===1)this._update&&this._update(C,T),l[x]=null;else if(M>1&&w>1)this._updateManyToMany&&this._updateManyToMany(C,T),l[x]=null;else if(M>1)for(var D=0;D<M;D++)this._remove&&this._remove(T[D]);else this._remove&&this._remove(T)}this._performRestAdd(v,l)},o.prototype._performRestAdd=function(t,r){for(var s=0;s<t.length;s++){var l=t[s],h=r[l],v=dataIndexMapValueLength(h);if(v>1)for(var S=0;S<v;S++)this._add&&this._add(h[S]);else v===1&&this._add&&this._add(h);r[l]=null}},o.prototype._initIndexMap=function(t,r,s,l){for(var h=this._diffModeMultiple,v=0;v<t.length;v++){var S="_ec_"+this[l](t[v],v);if(h||(s[v]=S),!!r){var x=r[S],T=dataIndexMapValueLength(x);T===0?(r[S]=v,h&&s.push(S)):T===1?r[S]=[x,v]:x.push(v)}}},o}();const DataDiffer$1=DataDiffer;var DimensionUserOuput=function(){function o(t,r){this._encode=t,this._schema=r}return o.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},o.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},o}();function summarizeDimensions(o,t){var r={},s=r.encode={},l=createHashMap(),h=[],v=[],S={};each$c(o.dimensions,function(w){var D=o.getDimensionInfo(w),O=D.coordDim;if(O){var N=D.coordDimIndex;getOrCreateEncodeArr(s,O)[N]=w,D.isExtraCoord||(l.set(O,1),mayLabelDimType(D.type)&&(h[0]=w),getOrCreateEncodeArr(S,O)[N]=o.getDimensionIndex(D.name)),D.defaultTooltip&&v.push(w)}VISUAL_DIMENSIONS.each(function(k,F){var B=getOrCreateEncodeArr(s,F),V=D.otherDims[F];V!=null&&V!==!1&&(B[V]=D.name)})});var x=[],T={};l.each(function(w,D){var O=s[D];T[D]=O[0],x=x.concat(O)}),r.dataDimsOnCoord=x,r.dataDimIndicesOnCoord=map$2(x,function(w){return o.getDimensionInfo(w).storeDimIndex}),r.encodeFirstDimNotExtra=T;var C=s.label;C&&C.length&&(h=C.slice());var M=s.tooltip;return M&&M.length?v=M.slice():v.length||(v=h.slice()),s.defaultedLabel=h,s.defaultedTooltip=v,r.userOutput=new DimensionUserOuput(S,t),r}function getOrCreateEncodeArr(o,t){return o.hasOwnProperty(t)||(o[t]=[]),o[t]}function getDimensionTypeByAxis(o){return o==="category"?"ordinal":o==="time"?"time":"float"}function mayLabelDimType(o){return!(o==="ordinal"||o==="time")}var SeriesDimensionDefine=function(){function o(t){this.otherDims={},t!=null&&extend(this,t)}return o}();const SeriesDimensionDefine$1=SeriesDimensionDefine;var inner$8=makeInner(),dimTypeShort={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SeriesDataSchema=function(){function o(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return o.prototype.isDimensionOmitted=function(){return this._dimOmitted},o.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=ensureSourceDimNameMap(this.source)))},o.prototype.getSourceDimensionIndex=function(t){return retrieve2(this._dimNameMap.get(t),-1)},o.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},o.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=shouldRetrieveDataByName(this.source),s=!shouldOmitUnusedDimensions(t),l="",h=[],v=0,S=0;v<t;v++){var x=void 0,T=void 0,C=void 0,M=this.dimensions[S];if(M&&M.storeDimIndex===v)x=r?M.name:null,T=M.type,C=M.ordinalMeta,S++;else{var w=this.getSourceDimension(v);w&&(x=r?w.name:null,T=w.type)}h.push({property:x,type:T,ordinalMeta:C}),r&&x!=null&&(!M||!M.isCalculationCoord)&&(l+=s?x.replace(/\`/g,"`1").replace(/\$/g,"`2"):x),l+="$",l+=dimTypeShort[T]||"f",C&&(l+=C.uid),l+="$"}var D=this.source,O=[D.seriesLayoutBy,D.startIndex,l].join("$$");return{dimensions:h,hash:O}},o.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,s=0;r<this._fullDimCount;r++){var l=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===r)h.isCalculationCoord||(l=h.name),s++;else{var v=this.getSourceDimension(r);v&&(l=v.name)}t.push(l)}return t},o.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},o}();function isSeriesDataSchema(o){return o instanceof SeriesDataSchema}function createDimNameMap(o){for(var t=createHashMap(),r=0;r<(o||[]).length;r++){var s=o[r],l=isObject$3(s)?s.name:s;l!=null&&t.get(l)==null&&t.set(l,r)}return t}function ensureSourceDimNameMap(o){var t=inner$8(o);return t.dimNameMap||(t.dimNameMap=createDimNameMap(o.dimensionsDefine))}function shouldOmitUnusedDimensions(o){return o>30}var isObject$1=isObject$3,map$1=map$2,CtorInt32Array=typeof Int32Array>"u"?Array:Int32Array,ID_PREFIX="e\0\0",INDEX_NOT_FOUND=-1,TRANSFERABLE_PROPERTIES=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CLONE_PROPERTIES=["_approximateExtent"],prepareInvertedIndex,getId,getIdNameFromStore,normalizeDimensions,transferProperties,cloneListForMapAndSample,makeIdFromName,SeriesData=function(){function o(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var s,l=!1;isSeriesDataSchema(t)?(s=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(l=!0,s=t),s=s||["x","y"];for(var h={},v=[],S={},x=!1,T={},C=0;C<s.length;C++){var M=s[C],w=isString(M)?new SeriesDimensionDefine$1({name:M}):M instanceof SeriesDimensionDefine$1?M:new SeriesDimensionDefine$1(M),D=w.name;w.type=w.type||"float",w.coordDim||(w.coordDim=D,w.coordDimIndex=0);var O=w.otherDims=w.otherDims||{};v.push(D),h[D]=w,T[D]!=null&&(x=!0),w.createInvertedIndices&&(S[D]=[]),O.itemName===0&&(this._nameDimIdx=C),O.itemId===0&&(this._idDimIdx=C),l&&(w.storeDimIndex=C)}if(this.dimensions=v,this._dimInfos=h,this._initGetDimensionInfo(x),this.hostModel=r,this._invertedIndicesMap=S,this._dimOmitted){var N=this._dimIdxToName=createHashMap();each$c(v,function(k){N.set(h[k].storeDimIndex,k)})}}return o.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var s=this._dimIdxToName.get(r);if(s!=null)return s;var l=this._schema.getSourceDimension(r);if(l)return l.name},o.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var s=this._getDimInfo(t);return s?s.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},o.prototype._recognizeDimIndex=function(t){if(isNumber(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},o.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},o.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},o.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(s){return r.hasOwnProperty(s)?r[s]:void 0}:function(s){return r[s]}},o.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},o.prototype.mapDimension=function(t,r){var s=this._dimSummary;if(r==null)return s.encodeFirstDimNotExtra[t];var l=s.encode[t];return l?l[r]:null},o.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,s=r.encode[t];return(s||[]).slice()},o.prototype.getStore=function(){return this._store},o.prototype.initData=function(t,r,s){var l=this,h;if(t instanceof DataStore$1&&(h=t),!h){var v=this.dimensions,S=isSourceInstance(t)||isArrayLike(t)?new DefaultDataProvider(t,v.length):t;h=new DataStore$1;var x=map$1(v,function(T){return{type:l._dimInfos[T].type,property:T}});h.initData(S,x,s)}this._store=h,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,h.count()),this._dimSummary=summarizeDimensions(this,this._schema),this.userOutput=this._dimSummary.userOutput},o.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},o.prototype.appendValues=function(t,r){var s=this._store.appendValues(t,r.length),l=s.start,h=s.end,v=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var S=l;S<h;S++){var x=S-l;this._nameList[S]=r[x],v&&makeIdFromName(this,S)}},o.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,s=0;s<r.length;s++){var l=this._dimInfos[r[s]];l.ordinalMeta&&t.collectOrdinalMeta(l.storeDimIndex,l.ordinalMeta)}},o.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==SOURCE_FORMAT_TYPED_ARRAY&&!t.fillStorage},o.prototype._doInit=function(t,r){if(!(t>=r)){var s=this._store,l=s.getProvider();this._updateOrdinalMeta();var h=this._nameList,v=this._idList,S=l.getSource().sourceFormat,x=S===SOURCE_FORMAT_ORIGINAL;if(x&&!l.pure)for(var T=[],C=t;C<r;C++){var M=l.getItem(C,T);if(!this.hasItemOption&&isDataItemOption(M)&&(this.hasItemOption=!0),M){var w=M.name;h[C]==null&&w!=null&&(h[C]=convertOptionIdName(w,null));var D=M.id;v[C]==null&&D!=null&&(v[C]=convertOptionIdName(D,null))}}if(this._shouldMakeIdFromName())for(var C=t;C<r;C++)makeIdFromName(this,C);prepareInvertedIndex(this)}},o.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},o.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},o.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},o.prototype.setCalculationInfo=function(t,r){isObject$1(t)?extend(this._calculationInfo,t):this._calculationInfo[t]=r},o.prototype.getName=function(t){var r=this.getRawIndex(t),s=this._nameList[r];return s==null&&this._nameDimIdx!=null&&(s=getIdNameFromStore(this,this._nameDimIdx,r)),s==null&&(s=""),s},o.prototype._getCategory=function(t,r){var s=this._store.get(t,r),l=this._store.getOrdinalMeta(t);return l?l.categories[s]:s},o.prototype.getId=function(t){return getId(this,this.getRawIndex(t))},o.prototype.count=function(){return this._store.count()},o.prototype.get=function(t,r){var s=this._store,l=this._dimInfos[t];if(l)return s.get(l.storeDimIndex,r)},o.prototype.getByRawIndex=function(t,r){var s=this._store,l=this._dimInfos[t];if(l)return s.getByRawIndex(l.storeDimIndex,r)},o.prototype.getIndices=function(){return this._store.getIndices()},o.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},o.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},o.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},o.prototype.getValues=function(t,r){var s=this,l=this._store;return isArray$1(t)?l.getValues(map$1(t,function(h){return s._getStoreDimIndex(h)}),r):l.getValues(t)},o.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,s=0,l=r.length;s<l;s++)if(isNaN(this._store.get(r[s],t)))return!1;return!0},o.prototype.indexOfName=function(t){for(var r=0,s=this._store.count();r<s;r++)if(this.getName(r)===t)return r;return-1},o.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},o.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},o.prototype.rawIndexOf=function(t,r){var s=t&&this._invertedIndicesMap[t],l=s[r];return l==null||isNaN(l)?INDEX_NOT_FOUND:l},o.prototype.indicesOfNearest=function(t,r,s){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,s)},o.prototype.each=function(t,r,s){isFunction(t)&&(s=r,r=t,t=[]);var l=s||this,h=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);this._store.each(h,l?bind$1(r,l):r)},o.prototype.filterSelf=function(t,r,s){isFunction(t)&&(s=r,r=t,t=[]);var l=s||this,h=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);return this._store=this._store.filter(h,l?bind$1(r,l):r),this},o.prototype.selectRange=function(t){var r=this,s={},l=keys(t);return each$c(l,function(h){var v=r._getStoreDimIndex(h);s[v]=t[h]}),this._store=this._store.selectRange(s),this},o.prototype.mapArray=function(t,r,s){isFunction(t)&&(s=r,r=t,t=[]),s=s||this;var l=[];return this.each(t,function(){l.push(r&&r.apply(this,arguments))},s),l},o.prototype.map=function(t,r,s,l){var h=s||l||this,v=map$1(normalizeDimensions(t),this._getStoreDimIndex,this),S=cloneListForMapAndSample(this);return S._store=this._store.map(v,h?bind$1(r,h):r),S},o.prototype.modify=function(t,r,s,l){var h=s||l||this,v=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);this._store.modify(v,h?bind$1(r,h):r)},o.prototype.downSample=function(t,r,s,l){var h=cloneListForMapAndSample(this);return h._store=this._store.downSample(this._getStoreDimIndex(t),r,s,l),h},o.prototype.lttbDownSample=function(t,r){var s=cloneListForMapAndSample(this);return s._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),s},o.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},o.prototype.getItemModel=function(t){var r=this.hostModel,s=this.getRawDataItem(t);return new Model$1(s,r,r&&r.ecModel)},o.prototype.diff=function(t){var r=this;return new DataDiffer$1(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(s){return getId(t,s)},function(s){return getId(r,s)})},o.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},o.prototype.setVisual=function(t,r){this._visual=this._visual||{},isObject$1(t)?extend(this._visual,t):this._visual[t]=r},o.prototype.getItemVisual=function(t,r){var s=this._itemVisuals[t],l=s&&s[r];return l??this.getVisual(r)},o.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},o.prototype.ensureUniqueItemVisual=function(t,r){var s=this._itemVisuals,l=s[t];l||(l=s[t]={});var h=l[r];return h==null&&(h=this.getVisual(r),isArray$1(h)?h=h.slice():isObject$1(h)&&(h=extend({},h)),l[r]=h),h},o.prototype.setItemVisual=function(t,r,s){var l=this._itemVisuals[t]||{};this._itemVisuals[t]=l,isObject$1(r)?extend(l,r):l[r]=s},o.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},o.prototype.setLayout=function(t,r){isObject$1(t)?extend(this._layout,t):this._layout[t]=r},o.prototype.getLayout=function(t){return this._layout[t]},o.prototype.getItemLayout=function(t){return this._itemLayouts[t]},o.prototype.setItemLayout=function(t,r,s){this._itemLayouts[t]=s?extend(this._itemLayouts[t]||{},r):r},o.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},o.prototype.setItemGraphicEl=function(t,r){var s=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(s,this.dataType,t,r),this._graphicEls[t]=r},o.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},o.prototype.eachItemGraphicEl=function(t,r){each$c(this._graphicEls,function(s,l){s&&t&&t.call(r,s,l)})},o.prototype.cloneShallow=function(t){return t||(t=new o(this._schema?this._schema:map$1(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(t,this),t._store=this._store,t},o.prototype.wrapMethod=function(t,r){var s=this[t];isFunction(s)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var l=s.apply(this,arguments);return r.apply(this,[l].concat(slice(arguments)))})},o.internalField=function(){prepareInvertedIndex=function(t){var r=t._invertedIndicesMap;each$c(r,function(s,l){var h=t._dimInfos[l],v=h.ordinalMeta,S=t._store;if(v){s=r[l]=new CtorInt32Array(v.categories.length);for(var x=0;x<s.length;x++)s[x]=INDEX_NOT_FOUND;for(var x=0;x<S.count();x++)s[S.get(h.storeDimIndex,x)]=x}})},getIdNameFromStore=function(t,r,s){return convertOptionIdName(t._getCategory(r,s),null)},getId=function(t,r){var s=t._idList[r];return s==null&&t._idDimIdx!=null&&(s=getIdNameFromStore(t,t._idDimIdx,r)),s==null&&(s=ID_PREFIX+r),s},normalizeDimensions=function(t){return isArray$1(t)||(t=t!=null?[t]:[]),t},cloneListForMapAndSample=function(t){var r=new o(t._schema?t._schema:map$1(t.dimensions,t._getDimInfo,t),t.hostModel);return transferProperties(r,t),r},transferProperties=function(t,r){each$c(TRANSFERABLE_PROPERTIES.concat(r.__wrappedMethods||[]),function(s){r.hasOwnProperty(s)&&(t[s]=r[s])}),t.__wrappedMethods=r.__wrappedMethods,each$c(CLONE_PROPERTIES,function(s){t[s]=clone$3(r[s])}),t._calculationInfo=extend({},r._calculationInfo)},makeIdFromName=function(t,r){var s=t._nameList,l=t._idList,h=t._nameDimIdx,v=t._idDimIdx,S=s[r],x=l[r];if(S==null&&h!=null&&(s[r]=S=getIdNameFromStore(t,h,r)),x==null&&v!=null&&(l[r]=x=getIdNameFromStore(t,v,r)),x==null&&S!=null){var T=t._nameRepeatCount,C=T[S]=(T[S]||0)+1;x=S,C>1&&(x+="__ec__"+C),l[r]=x}}}(),o}();const SeriesData$1=SeriesData;function createDimensions(o,t){return prepareSeriesDataSchema(o,t).dimensions}function prepareSeriesDataSchema(o,t){isSourceInstance(o)||(o=createSourceFromSeriesDataOption(o)),t=t||{};var r=t.coordDimensions||[],s=t.dimensionsDefine||o.dimensionsDefine||[],l=createHashMap(),h=[],v=getDimCount(o,r,s,t.dimensionsCount),S=t.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(v),x=s===o.dimensionsDefine,T=x?ensureSourceDimNameMap(o):createDimNameMap(s),C=t.encodeDefine;!C&&t.encodeDefaulter&&(C=t.encodeDefaulter(o,v));for(var M=createHashMap(C),w=new CtorInt32Array$1(v),D=0;D<w.length;D++)w[D]=-1;function O(K){var J=w[K];if(J<0){var q=s[K],ee=isObject$3(q)?q:{name:q},te=new SeriesDimensionDefine$1,ne=ee.name;ne!=null&&T.get(ne)!=null&&(te.name=te.displayName=ne),ee.type!=null&&(te.type=ee.type),ee.displayName!=null&&(te.displayName=ee.displayName);var ae=h.length;return w[K]=ae,te.storeDimIndex=K,h.push(te),te}return h[J]}if(!S)for(var D=0;D<v;D++)O(D);M.each(function(K,J){var q=normalizeToArray(K).slice();if(q.length===1&&!isString(q[0])&&q[0]<0){M.set(J,!1);return}var ee=M.set(J,[]);each$c(q,function(te,ne){var ae=isString(te)?T.get(te):te;ae!=null&&ae<v&&(ee[ne]=ae,k(O(ae),J,ne))})});var N=0;each$c(r,function(K){var J,q,ee,te;if(isString(K))J=K,te={};else{te=K,J=te.name;var ne=te.ordinalMeta;te.ordinalMeta=null,te=extend({},te),te.ordinalMeta=ne,q=te.dimsDef,ee=te.otherDims,te.name=te.coordDim=te.coordDimIndex=te.dimsDef=te.otherDims=null}var ae=M.get(J);if(ae!==!1){if(ae=normalizeToArray(ae),!ae.length)for(var oe=0;oe<(q&&q.length||1);oe++){for(;N<v&&O(N).coordDim!=null;)N++;N<v&&ae.push(N++)}each$c(ae,function(Se,se){var le=O(Se);if(x&&te.type!=null&&(le.type=te.type),k(defaults(le,te),J,se),le.name==null&&q){var ye=q[se];!isObject$3(ye)&&(ye={name:ye}),le.name=le.displayName=ye.name,le.defaultTooltip=ye.defaultTooltip}ee&&defaults(le.otherDims,ee)})}});function k(K,J,q){VISUAL_DIMENSIONS.get(J)!=null?K.otherDims[J]=q:(K.coordDim=J,K.coordDimIndex=q,l.set(J,!0))}var F=t.generateCoord,B=t.generateCoordCount,V=B!=null;B=F?B||1:0;var z=F||"value";function U(K){K.name==null&&(K.name=K.coordDim)}if(S)each$c(h,function(K){U(K)}),h.sort(function(K,J){return K.storeDimIndex-J.storeDimIndex});else for(var Y=0;Y<v;Y++){var W=O(Y),X=W.coordDim;X==null&&(W.coordDim=genCoordDimName(z,l,V),W.coordDimIndex=0,(!F||B<=0)&&(W.isExtraCoord=!0),B--),U(W),W.type==null&&(guessOrdinal(o,Y)===BE_ORDINAL.Must||W.isExtraCoord&&(W.otherDims.itemName!=null||W.otherDims.seriesName!=null))&&(W.type="ordinal")}return removeDuplication(h),new SeriesDataSchema({source:o,dimensions:h,fullDimensionCount:v,dimensionOmitted:S})}function removeDuplication(o){for(var t=createHashMap(),r=0;r<o.length;r++){var s=o[r],l=s.name,h=t.get(l)||0;h>0&&(s.name=l+(h-1)),h++,t.set(l,h)}}function getDimCount(o,t,r,s){var l=Math.max(o.dimensionsDetectedCount||1,t.length,r.length,s||0);return each$c(t,function(h){var v;isObject$3(h)&&(v=h.dimsDef)&&(l=Math.max(l,v.length))}),l}function genCoordDimName(o,t,r){if(r||t.hasKey(o)){for(var s=0;t.hasKey(o+s);)s++;o+=s}return t.set(o,!0),o}var CoordSysInfo=function(){function o(t){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=t}return o}();function getCoordSysInfoBySeries(o){var t=o.get("coordinateSystem"),r=new CoordSysInfo(t),s=fetchers[t];if(s)return s(o,r,r.axisMap,r.categoryAxisMap),r}var fetchers={cartesian2d:function(o,t,r,s){var l=o.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],h=o.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];t.coordSysDims=["x","y"],r.set("x",l),r.set("y",h),isCategory(l)&&(s.set("x",l),t.firstCategoryDimIndex=0),isCategory(h)&&(s.set("y",h),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(o,t,r,s){var l=o.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];t.coordSysDims=["single"],r.set("single",l),isCategory(l)&&(s.set("single",l),t.firstCategoryDimIndex=0)},polar:function(o,t,r,s){var l=o.getReferringComponents("polar",SINGLE_REFERRING).models[0],h=l.findAxisModel("radiusAxis"),v=l.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",h),r.set("angle",v),isCategory(h)&&(s.set("radius",h),t.firstCategoryDimIndex=0),isCategory(v)&&(s.set("angle",v),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(o,t,r,s){t.coordSysDims=["lng","lat"]},parallel:function(o,t,r,s){var l=o.ecModel,h=l.getComponent("parallel",o.get("parallelIndex")),v=t.coordSysDims=h.dimensions.slice();each$c(h.parallelAxisIndex,function(S,x){var T=l.getComponent("parallelAxis",S),C=v[x];r.set(C,T),isCategory(T)&&(s.set(C,T),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=x))})}};function isCategory(o){return o.get("type")==="category"}function enableDataStack(o,t,r){r=r||{};var s=r.byIndex,l=r.stackedCoordDimension,h,v,S;isLegacyDimensionsInput(t)?h=t:(v=t.schema,h=v.dimensions,S=t.store);var x=!!(o&&o.get("stack")),T,C,M,w;if(each$c(h,function(B,V){isString(B)&&(h[V]=B={name:B}),x&&!B.isExtraCoord&&(!s&&!T&&B.ordinalMeta&&(T=B),!C&&B.type!=="ordinal"&&B.type!=="time"&&(!l||l===B.coordDim)&&(C=B))}),C&&!s&&!T&&(s=!0),C){M="__\0ecstackresult_"+o.id,w="__\0ecstackedover_"+o.id,T&&(T.createInvertedIndices=!0);var D=C.coordDim,O=C.type,N=0;each$c(h,function(B){B.coordDim===D&&N++});var k={name:M,coordDim:D,coordDimIndex:N,type:O,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:h.length},F={name:w,coordDim:w,coordDimIndex:N+1,type:O,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:h.length+1};v?(S&&(k.storeDimIndex=S.ensureCalculationDimension(w,O),F.storeDimIndex=S.ensureCalculationDimension(M,O)),v.appendCalculationDimension(k),v.appendCalculationDimension(F)):(h.push(k),h.push(F))}return{stackedDimension:C&&C.name,stackedByDimension:T&&T.name,isStackedByIndex:s,stackedOverDimension:w,stackResultDimension:M}}function isLegacyDimensionsInput(o){return!isSeriesDataSchema(o.schema)}function isDimensionStacked(o,t){return!!t&&t===o.getCalculationInfo("stackedDimension")}function getStackedDimension(o,t){return isDimensionStacked(o,t)?o.getCalculationInfo("stackResultDimension"):t}function getCoordSysDimDefs(o,t){var r=o.get("coordinateSystem"),s=CoordinateSystem.get(r),l;return t&&t.coordSysDims&&(l=map$2(t.coordSysDims,function(h){var v={name:h},S=t.axisMap.get(h);if(S){var x=S.get("type");v.type=getDimensionTypeByAxis(x)}return v})),l||(l=s&&(s.getDimensionsInfo?s.getDimensionsInfo():s.dimensions.slice())||["x","y"]),l}function injectOrdinalMeta(o,t,r){var s,l;return r&&each$c(o,function(h,v){var S=h.coordDim,x=r.categoryAxisMap.get(S);x&&(s==null&&(s=v),h.ordinalMeta=x.getOrdinalMeta(),t&&(h.createInvertedIndices=!0)),h.otherDims.itemName!=null&&(l=!0)}),!l&&s!=null&&(o[s].otherDims.itemName=0),s}function createSeriesData(o,t,r){r=r||{};var s=t.getSourceManager(),l,h=!1;o?(h=!0,l=createSourceFromSeriesDataOption(o)):(l=s.getSource(),h=l.sourceFormat===SOURCE_FORMAT_ORIGINAL);var v=getCoordSysInfoBySeries(t),S=getCoordSysDimDefs(t,v),x=r.useEncodeDefaulter,T=isFunction(x)?x:x?curry$1(makeSeriesEncodeForAxisCoordSys,S,t):null,C={coordDimensions:S,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:T,canOmitUnusedDimensions:!h},M=prepareSeriesDataSchema(l,C),w=injectOrdinalMeta(M.dimensions,r.createInvertedIndices,v),D=h?null:s.getSharedDataStore(M),O=enableDataStack(t,{schema:M,store:D}),N=new SeriesData$1(M,t);N.setCalculationInfo(O);var k=w!=null&&isNeedCompleteOrdinalData(l)?function(F,B,V,z){return z===w?V:this.defaultDimValueGetter(F,B,V,z)}:null;return N.hasItemOption=!1,N.initData(h?l:D,null,k),N}function isNeedCompleteOrdinalData(o){if(o.sourceFormat===SOURCE_FORMAT_ORIGINAL){var t=firstDataNotNull(o.data||[]);return!isArray$1(getDataItemValue(t))}}function firstDataNotNull(o){for(var t=0;t<o.length&&o[t]==null;)t++;return o[t]}var Scale=function(){function o(t){this._setting=t||{},this._extent=[1/0,-1/0]}return o.prototype.getSetting=function(t){return this._setting[t]},o.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},o.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.setExtent=function(t,r){var s=this._extent;isNaN(t)||(s[0]=t),isNaN(r)||(s[1]=r)},o.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},o.prototype.isBlank=function(){return this._isBlank},o.prototype.setBlank=function(t){this._isBlank=t},o}();enableClassManagement(Scale);const Scale$1=Scale;var uidBase=0,OrdinalMeta=function(){function o(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++uidBase}return o.createByAxisModel=function(t){var r=t.option,s=r.data,l=s&&map$2(s,getName);return new o({categories:l,needCollect:!l,deduplication:r.dedplication!==!1})},o.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},o.prototype.parseAndCollect=function(t){var r,s=this._needCollect;if(!isString(t)&&!s)return t;if(s&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var l=this._getOrCreateMap();return r=l.get(t),r==null&&(s?(r=this.categories.length,this.categories[r]=t,l.set(t,r)):r=NaN),r},o.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},o}();function getName(o){return isObject$3(o)&&o.value!=null?o.value:o+""}const OrdinalMeta$1=OrdinalMeta;function isIntervalOrLogScale(o){return o.type==="interval"||o.type==="log"}function intervalScaleNiceTicks(o,t,r,s){var l={},h=o[1]-o[0],v=l.interval=nice(h/t,!0);r!=null&&v<r&&(v=l.interval=r),s!=null&&v>s&&(v=l.interval=s);var S=l.intervalPrecision=getIntervalPrecision(v),x=l.niceTickExtent=[round$1(Math.ceil(o[0]/v)*v,S),round$1(Math.floor(o[1]/v)*v,S)];return fixExtent(x,o),l}function increaseInterval(o){var t=Math.pow(10,quantityExponent(o)),r=o/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,round$1(r*t)}function getIntervalPrecision(o){return getPrecision(o)+2}function clamp(o,t,r){o[t]=Math.max(Math.min(o[t],r[1]),r[0])}function fixExtent(o,t){!isFinite(o[0])&&(o[0]=t[0]),!isFinite(o[1])&&(o[1]=t[1]),clamp(o,0,t),clamp(o,1,t),o[0]>o[1]&&(o[0]=o[1])}function contain$1(o,t){return o>=t[0]&&o<=t[1]}function normalize(o,t){return t[1]===t[0]?.5:(o-t[0])/(t[1]-t[0])}function scale(o,t){return o*(t[1]-t[0])+t[0]}var OrdinalScale=function(o){__extends(t,o);function t(r){var s=o.call(this,r)||this;s.type="ordinal";var l=s.getSetting("ordinalMeta");return l||(l=new OrdinalMeta$1({})),isArray$1(l)&&(l=new OrdinalMeta$1({categories:map$2(l,function(h){return isObject$3(h)?h.value:h})})),s._ordinalMeta=l,s._extent=s.getSetting("extent")||[0,l.categories.length-1],s}return t.prototype.parse=function(r){return r==null?NaN:isString(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),contain$1(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),normalize(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(scale(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],s=this._extent,l=s[0];l<=s[1];)r.push({value:l}),l++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var s=r.ordinalNumbers,l=this._ordinalNumbersByTick=[],h=this._ticksByOrdinalNumber=[],v=0,S=this._ordinalMeta.categories.length,x=Math.min(S,s.length);v<x;++v){var T=s[v];l[v]=T,h[T]=v}for(var C=0;v<S;++v){for(;h[C]!=null;)C++;l.push(C),h[C]=v}},t.prototype._getTickNumber=function(r){var s=this._ticksByOrdinalNumber;return s&&r>=0&&r<s.length?s[r]:r},t.prototype.getRawOrdinalNumber=function(r){var s=this._ordinalNumbersByTick;return s&&r>=0&&r<s.length?s[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var s=this.getRawOrdinalNumber(r.value),l=this._ordinalMeta.categories[s];return l==null?"":l+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,s){this.unionExtent(r.getApproximateExtent(s))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Scale$1);Scale$1.registerClass(OrdinalScale);const OrdinalScale$1=OrdinalScale;var roundNumber=round$1,IntervalScale=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return contain$1(r,this._extent)},t.prototype.normalize=function(r){return normalize(r,this._extent)},t.prototype.scale=function(r){return scale(r,this._extent)},t.prototype.setExtent=function(r,s){var l=this._extent;isNaN(r)||(l[0]=parseFloat(r)),isNaN(s)||(l[1]=parseFloat(s))},t.prototype.unionExtent=function(r){var s=this._extent;r[0]<s[0]&&(s[0]=r[0]),r[1]>s[1]&&(s[1]=r[1]),this.setExtent(s[0],s[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(r)},t.prototype.getTicks=function(r){var s=this._interval,l=this._extent,h=this._niceExtent,v=this._intervalPrecision,S=[];if(!s)return S;var x=1e4;l[0]<h[0]&&(r?S.push({value:roundNumber(h[0]-s,v)}):S.push({value:l[0]}));for(var T=h[0];T<=h[1]&&(S.push({value:T}),T=roundNumber(T+s,v),T!==S[S.length-1].value);)if(S.length>x)return[];var C=S.length?S[S.length-1].value:h[1];return l[1]>C&&(r?S.push({value:roundNumber(C+s,v)}):S.push({value:l[1]})),S},t.prototype.getMinorTicks=function(r){for(var s=this.getTicks(!0),l=[],h=this.getExtent(),v=1;v<s.length;v++){for(var S=s[v],x=s[v-1],T=0,C=[],M=S.value-x.value,w=M/r;T<r-1;){var D=roundNumber(x.value+(T+1)*w);D>h[0]&&D<h[1]&&C.push(D),T++}l.push(C)}return l},t.prototype.getLabel=function(r,s){if(r==null)return"";var l=s&&s.precision;l==null?l=getPrecision(r.value)||0:l==="auto"&&(l=this._intervalPrecision);var h=roundNumber(r.value,l,!0);return addCommas(h)},t.prototype.calcNiceTicks=function(r,s,l){r=r||5;var h=this._extent,v=h[1]-h[0];if(isFinite(v)){v<0&&(v=-v,h.reverse());var S=intervalScaleNiceTicks(h,r,s,l);this._intervalPrecision=S.intervalPrecision,this._interval=S.interval,this._niceExtent=S.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var s=this._extent;if(s[0]===s[1])if(s[0]!==0){var l=Math.abs(s[0]);r.fixMax||(s[1]+=l/2),s[0]-=l/2}else s[1]=1;var h=s[1]-s[0];isFinite(h)||(s[0]=0,s[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var v=this._interval;r.fixMin||(s[0]=roundNumber(Math.floor(s[0]/v)*v)),r.fixMax||(s[1]=roundNumber(Math.ceil(s[1]/v)*v))},t.prototype.setNiceExtent=function(r,s){this._niceExtent=[r,s]},t.type="interval",t}(Scale$1);Scale$1.registerClass(IntervalScale);const IntervalScale$1=IntervalScale;var supportFloat32Array=typeof Float32Array<"u",Float32ArrayCtor=supportFloat32Array?Float32Array:Array;function createFloat32Array(o){return isArray$1(o)?supportFloat32Array?new Float32Array(o):o:new Float32ArrayCtor(o)}var STACK_PREFIX="__ec_stack_";function getSeriesStackId(o){return o.get("stack")||STACK_PREFIX+o.seriesIndex}function getAxisKey(o){return o.dim+o.index}function prepareLayoutBarSeries(o,t){var r=[];return t.eachSeriesByType(o,function(s){isOnCartesian(s)&&r.push(s)}),r}function getValueAxesMinGaps(o){var t={};each$c(o,function(x){var T=x.coordinateSystem,C=T.getBaseAxis();if(!(C.type!=="time"&&C.type!=="value"))for(var M=x.getData(),w=C.dim+"_"+C.index,D=M.getDimensionIndex(M.mapDimension(C.dim)),O=M.getStore(),N=0,k=O.count();N<k;++N){var F=O.get(D,N);t[w]?t[w].push(F):t[w]=[F]}});var r={};for(var s in t)if(t.hasOwnProperty(s)){var l=t[s];if(l){l.sort(function(x,T){return x-T});for(var h=null,v=1;v<l.length;++v){var S=l[v]-l[v-1];S>0&&(h=h===null?S:Math.min(h,S))}r[s]=h}}return r}function makeColumnLayout(o){var t=getValueAxesMinGaps(o),r=[];return each$c(o,function(s){var l=s.coordinateSystem,h=l.getBaseAxis(),v=h.getExtent(),S;if(h.type==="category")S=h.getBandWidth();else if(h.type==="value"||h.type==="time"){var x=h.dim+"_"+h.index,T=t[x],C=Math.abs(v[1]-v[0]),M=h.scale.getExtent(),w=Math.abs(M[1]-M[0]);S=T?C/w*T:C}else{var D=s.getData();S=Math.abs(v[1]-v[0])/D.count()}var O=parsePercent(s.get("barWidth"),S),N=parsePercent(s.get("barMaxWidth"),S),k=parsePercent(s.get("barMinWidth")||(isInLargeMode(s)?.5:1),S),F=s.get("barGap"),B=s.get("barCategoryGap");r.push({bandWidth:S,barWidth:O,barMaxWidth:N,barMinWidth:k,barGap:F,barCategoryGap:B,axisKey:getAxisKey(h),stackId:getSeriesStackId(s)})}),doCalBarWidthAndOffset(r)}function doCalBarWidthAndOffset(o){var t={};each$c(o,function(s,l){var h=s.axisKey,v=s.bandWidth,S=t[h]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},x=S.stacks;t[h]=S;var T=s.stackId;x[T]||S.autoWidthCount++,x[T]=x[T]||{width:0,maxWidth:0};var C=s.barWidth;C&&!x[T].width&&(x[T].width=C,C=Math.min(S.remainedWidth,C),S.remainedWidth-=C);var M=s.barMaxWidth;M&&(x[T].maxWidth=M);var w=s.barMinWidth;w&&(x[T].minWidth=w);var D=s.barGap;D!=null&&(S.gap=D);var O=s.barCategoryGap;O!=null&&(S.categoryGap=O)});var r={};return each$c(t,function(s,l){r[l]={};var h=s.stacks,v=s.bandWidth,S=s.categoryGap;if(S==null){var x=keys(h).length;S=Math.max(35-x*4,15)+"%"}var T=parsePercent(S,v),C=parsePercent(s.gap,1),M=s.remainedWidth,w=s.autoWidthCount,D=(M-T)/(w+(w-1)*C);D=Math.max(D,0),each$c(h,function(F){var B=F.maxWidth,V=F.minWidth;if(F.width){var z=F.width;B&&(z=Math.min(z,B)),V&&(z=Math.max(z,V)),F.width=z,M-=z+C*z,w--}else{var z=D;B&&B<z&&(z=Math.min(B,M)),V&&V>z&&(z=V),z!==D&&(F.width=z,M-=z+C*z,w--)}}),D=(M-T)/(w+(w-1)*C),D=Math.max(D,0);var O=0,N;each$c(h,function(F,B){F.width||(F.width=D),N=F,O+=F.width*(1+C)}),N&&(O-=N.width*C);var k=-O/2;each$c(h,function(F,B){r[l][B]=r[l][B]||{bandWidth:v,offset:k,width:F.width},k+=F.width*(1+C)})}),r}function retrieveColumnLayout(o,t,r){if(o&&t){var s=o[getAxisKey(t)];return s!=null&&r!=null?s[getSeriesStackId(r)]:s}}function layout$2(o,t){var r=prepareLayoutBarSeries(o,t),s=makeColumnLayout(r);each$c(r,function(l){var h=l.getData(),v=l.coordinateSystem,S=v.getBaseAxis(),x=getSeriesStackId(l),T=s[getAxisKey(S)][x],C=T.offset,M=T.width;h.setLayout({bandWidth:T.bandWidth,offset:C,size:M})})}function createProgressiveLayout(o){return{seriesType:o,plan:createRenderPlanner(),reset:function(t){if(isOnCartesian(t)){var r=t.getData(),s=t.coordinateSystem,l=s.getBaseAxis(),h=s.getOtherAxis(l),v=r.getDimensionIndex(r.mapDimension(h.dim)),S=r.getDimensionIndex(r.mapDimension(l.dim)),x=t.get("showBackground",!0),T=r.mapDimension(h.dim),C=r.getCalculationInfo("stackResultDimension"),M=isDimensionStacked(r,T)&&!!r.getCalculationInfo("stackedOnSeries"),w=h.isHorizontal(),D=getValueAxisStart(l,h),O=isInLargeMode(t),N=t.get("barMinHeight")||0,k=C&&r.getDimensionIndex(C),F=r.getLayout("size"),B=r.getLayout("offset");return{progress:function(V,z){for(var U=V.count,Y=O&&createFloat32Array(U*3),W=O&&x&&createFloat32Array(U*3),X=O&&createFloat32Array(U),K=s.master.getRect(),J=w?K.width:K.height,q,ee=z.getStore(),te=0;(q=V.next())!=null;){var ne=ee.get(M?k:v,q),ae=ee.get(S,q),oe=D,Se=void 0;M&&(Se=+ne-ee.get(v,q));var se=void 0,le=void 0,ye=void 0,we=void 0;if(w){var Me=s.dataToPoint([ne,ae]);if(M){var Ee=s.dataToPoint([Se,ae]);oe=Ee[0]}se=oe,le=Me[1]+B,ye=Me[0]-oe,we=F,Math.abs(ye)<N&&(ye=(ye<0?-1:1)*N)}else{var Me=s.dataToPoint([ae,ne]);if(M){var Ee=s.dataToPoint([ae,Se]);oe=Ee[1]}se=Me[0]+B,le=oe,ye=F,we=Me[1]-oe,Math.abs(we)<N&&(we=(we<=0?-1:1)*N)}O?(Y[te]=se,Y[te+1]=le,Y[te+2]=w?ye:we,W&&(W[te]=w?K.x:se,W[te+1]=w?le:K.y,W[te+2]=J),X[q]=q):z.setItemLayout(q,{x:se,y:le,width:ye,height:we}),te+=3}O&&z.setLayout({largePoints:Y,largeDataIndices:X,largeBackgroundPoints:W,valueAxisHorizontal:w})}}}}}}function isOnCartesian(o){return o.coordinateSystem&&o.coordinateSystem.type==="cartesian2d"}function isInLargeMode(o){return o.pipelineContext&&o.pipelineContext.large}function getValueAxisStart(o,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var bisect=function(o,t,r,s){for(;r<s;){var l=r+s>>>1;o[l][1]<t?r=l+1:s=l}return r},TimeScale=function(o){__extends(t,o);function t(r){var s=o.call(this,r)||this;return s.type="time",s}return t.prototype.getLabel=function(r){var s=this.getSetting("useUTC");return format$1(r.value,fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))]||fullLeveledFormatter.second,s,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,s,l){var h=this.getSetting("useUTC"),v=this.getSetting("locale");return leveledFormat(r,s,l,v,h)},t.prototype.getTicks=function(){var r=this._interval,s=this._extent,l=[];if(!r)return l;l.push({value:s[0],level:0});var h=this.getSetting("useUTC"),v=getIntervalTicks(this._minLevelUnit,this._approxInterval,h,s);return l=l.concat(v),l.push({value:s[1],level:0}),l},t.prototype.calcNiceExtent=function(r){var s=this._extent;if(s[0]===s[1]&&(s[0]-=ONE_DAY,s[1]+=ONE_DAY),s[1]===-1/0&&s[0]===1/0){var l=new Date;s[1]=+new Date(l.getFullYear(),l.getMonth(),l.getDate()),s[0]=s[1]-ONE_DAY}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,s,l){r=r||10;var h=this._extent,v=h[1]-h[0];this._approxInterval=v/r,s!=null&&this._approxInterval<s&&(this._approxInterval=s),l!=null&&this._approxInterval>l&&(this._approxInterval=l);var S=scaleIntervals.length,x=Math.min(bisect(scaleIntervals,this._approxInterval,0,S),S-1);this._interval=scaleIntervals[x][1],this._minLevelUnit=scaleIntervals[Math.max(x-1,0)][0]},t.prototype.parse=function(r){return isNumber(r)?r:+parseDate(r)},t.prototype.contain=function(r){return contain$1(this.parse(r),this._extent)},t.prototype.normalize=function(r){return normalize(this.parse(r),this._extent)},t.prototype.scale=function(r){return scale(r,this._extent)},t.type="time",t}(IntervalScale$1),scaleIntervals=[["second",ONE_SECOND],["minute",ONE_MINUTE],["hour",ONE_HOUR],["quarter-day",ONE_HOUR*6],["half-day",ONE_HOUR*12],["day",ONE_DAY*1.2],["half-week",ONE_DAY*3.5],["week",ONE_DAY*7],["month",ONE_DAY*31],["quarter",ONE_DAY*95],["half-year",ONE_YEAR/2],["year",ONE_YEAR]];function isUnitValueSame(o,t,r,s){var l=parseDate(t),h=parseDate(r),v=function(O){return getUnitValue(l,O,s)===getUnitValue(h,O,s)},S=function(){return v("year")},x=function(){return S()&&v("month")},T=function(){return x()&&v("day")},C=function(){return T()&&v("hour")},M=function(){return C()&&v("minute")},w=function(){return M()&&v("second")},D=function(){return w()&&v("millisecond")};switch(o){case"year":return S();case"month":return x();case"day":return T();case"hour":return C();case"minute":return M();case"second":return w();case"millisecond":return D()}}function getDateInterval(o,t){return o/=ONE_DAY,o>16?16:o>7.5?7:o>3.5?4:o>1.5?2:1}function getMonthInterval(o){var t=30*ONE_DAY;return o/=t,o>6?6:o>3?3:o>2?2:1}function getHourInterval(o){return o/=ONE_HOUR,o>12?12:o>6?6:o>3.5?4:o>2?2:1}function getMinutesAndSecondsInterval(o,t){return o/=t?ONE_MINUTE:ONE_SECOND,o>30?30:o>20?20:o>15?15:o>10?10:o>5?5:o>2?2:1}function getMillisecondsInterval(o){return nice(o,!0)}function getFirstTimestampOfUnit(o,t,r){var s=new Date(o);switch(getPrimaryTimeUnit(t)){case"year":case"month":s[monthSetterName(r)](0);case"day":s[dateSetterName(r)](1);case"hour":s[hoursSetterName(r)](0);case"minute":s[minutesSetterName(r)](0);case"second":s[secondsSetterName(r)](0),s[millisecondsSetterName(r)](0)}return s.getTime()}function getIntervalTicks(o,t,r,s){var l=1e4,h=timeUnits,v=0;function S(J,q,ee,te,ne,ae,oe){for(var Se=new Date(q),se=q,le=Se[te]();se<ee&&se<=s[1];)oe.push({value:se}),le+=J,Se[ne](le),se=Se.getTime();oe.push({value:se,notAdd:!0})}function x(J,q,ee){var te=[],ne=!q.length;if(!isUnitValueSame(getPrimaryTimeUnit(J),s[0],s[1],r)){ne&&(q=[{value:getFirstTimestampOfUnit(new Date(s[0]),J,r)},{value:s[1]}]);for(var ae=0;ae<q.length-1;ae++){var oe=q[ae].value,Se=q[ae+1].value;if(oe!==Se){var se=void 0,le=void 0,ye=void 0,we=!1;switch(J){case"year":se=Math.max(1,Math.round(t/ONE_DAY/365)),le=fullYearGetterName(r),ye=fullYearSetterName(r);break;case"half-year":case"quarter":case"month":se=getMonthInterval(t),le=monthGetterName(r),ye=monthSetterName(r);break;case"week":case"half-week":case"day":se=getDateInterval(t),le=dateGetterName(r),ye=dateSetterName(r),we=!0;break;case"half-day":case"quarter-day":case"hour":se=getHourInterval(t),le=hoursGetterName(r),ye=hoursSetterName(r);break;case"minute":se=getMinutesAndSecondsInterval(t,!0),le=minutesGetterName(r),ye=minutesSetterName(r);break;case"second":se=getMinutesAndSecondsInterval(t,!1),le=secondsGetterName(r),ye=secondsSetterName(r);break;case"millisecond":se=getMillisecondsInterval(t),le=millisecondsGetterName(r),ye=millisecondsSetterName(r);break}S(se,oe,Se,le,ye,we,te),J==="year"&&ee.length>1&&ae===0&&ee.unshift({value:ee[0].value-se})}}for(var ae=0;ae<te.length;ae++)ee.push(te[ae]);return te}}for(var T=[],C=[],M=0,w=0,D=0;D<h.length&&v++<l;++D){var O=getPrimaryTimeUnit(h[D]);if(isPrimaryTimeUnit(h[D])){x(h[D],T[T.length-1]||[],C);var N=h[D+1]?getPrimaryTimeUnit(h[D+1]):null;if(O!==N){if(C.length){w=M,C.sort(function(J,q){return J.value-q.value});for(var k=[],F=0;F<C.length;++F){var B=C[F].value;(F===0||C[F-1].value!==B)&&(k.push(C[F]),B>=s[0]&&B<=s[1]&&M++)}var V=(s[1]-s[0])/t;if(M>V*1.5&&w>V/1.5||(T.push(k),M>V||o===h[D]))break}C=[]}}}for(var z=filter(map$2(T,function(J){return filter(J,function(q){return q.value>=s[0]&&q.value<=s[1]&&!q.notAdd})}),function(J){return J.length>0}),U=[],Y=z.length-1,D=0;D<z.length;++D)for(var W=z[D],X=0;X<W.length;++X)U.push({value:W[X].value,level:Y-D});U.sort(function(J,q){return J.value-q.value});for(var K=[],D=0;D<U.length;++D)(D===0||U[D].value!==U[D-1].value)&&K.push(U[D]);return K}Scale$1.registerClass(TimeScale);const TimeScale$1=TimeScale;var scaleProto=Scale$1.prototype,intervalScaleProto=IntervalScale$1.prototype,roundingErrorFix=round$1,mathFloor=Math.floor,mathCeil=Math.ceil,mathPow$1=Math.pow,mathLog$1=Math.log,LogScale=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new IntervalScale$1,r._interval=0,r}return t.prototype.getTicks=function(r){var s=this._originalScale,l=this._extent,h=s.getExtent(),v=intervalScaleProto.getTicks.call(this,r);return map$2(v,function(S){var x=S.value,T=round$1(mathPow$1(this.base,x));return T=x===l[0]&&this._fixMin?fixRoundingError(T,h[0]):T,T=x===l[1]&&this._fixMax?fixRoundingError(T,h[1]):T,{value:T}},this)},t.prototype.setExtent=function(r,s){var l=mathLog$1(this.base);r=mathLog$1(Math.max(0,r))/l,s=mathLog$1(Math.max(0,s))/l,intervalScaleProto.setExtent.call(this,r,s)},t.prototype.getExtent=function(){var r=this.base,s=scaleProto.getExtent.call(this);s[0]=mathPow$1(r,s[0]),s[1]=mathPow$1(r,s[1]);var l=this._originalScale,h=l.getExtent();return this._fixMin&&(s[0]=fixRoundingError(s[0],h[0])),this._fixMax&&(s[1]=fixRoundingError(s[1],h[1])),s},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var s=this.base;r[0]=mathLog$1(r[0])/mathLog$1(s),r[1]=mathLog$1(r[1])/mathLog$1(s),scaleProto.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,s){this.unionExtent(r.getApproximateExtent(s))},t.prototype.calcNiceTicks=function(r){r=r||10;var s=this._extent,l=s[1]-s[0];if(!(l===1/0||l<=0)){var h=quantity(l),v=r/l*h;for(v<=.5&&(h*=10);!isNaN(h)&&Math.abs(h)<1&&Math.abs(h)>0;)h*=10;var S=[round$1(mathCeil(s[0]/h)*h),round$1(mathFloor(s[1]/h)*h)];this._interval=h,this._niceExtent=S}},t.prototype.calcNiceExtent=function(r){intervalScaleProto.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=mathLog$1(r)/mathLog$1(this.base),contain$1(r,this._extent)},t.prototype.normalize=function(r){return r=mathLog$1(r)/mathLog$1(this.base),normalize(r,this._extent)},t.prototype.scale=function(r){return r=scale(r,this._extent),mathPow$1(this.base,r)},t.type="log",t}(Scale$1),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError(o,t){return roundingErrorFix(o,getPrecision(t))}Scale$1.registerClass(LogScale);const LogScale$1=LogScale;var ScaleRawExtentInfo=function(){function o(t,r,s){this._prepareParams(t,r,s)}return o.prototype._prepareParams=function(t,r,s){s[1]<s[0]&&(s=[NaN,NaN]),this._dataMin=s[0],this._dataMax=s[1];var l=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var h=this._modelMinRaw=r.get("min",!0);isFunction(h)?this._modelMinNum=parseAxisModelMinMax(t,h({min:s[0],max:s[1]})):h!=="dataMin"&&(this._modelMinNum=parseAxisModelMinMax(t,h));var v=this._modelMaxRaw=r.get("max",!0);if(isFunction(v)?this._modelMaxNum=parseAxisModelMinMax(t,v({min:s[0],max:s[1]})):v!=="dataMax"&&(this._modelMaxNum=parseAxisModelMinMax(t,v)),l)this._axisDataLen=r.getCategories().length;else{var S=r.get("boundaryGap"),x=isArray$1(S)?S:[S||0,S||0];typeof x[0]=="boolean"||typeof x[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[parsePercent$1(x[0],1),parsePercent$1(x[1],1)]}},o.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,s=this._dataMax,l=this._axisDataLen,h=this._boundaryGapInner,v=t?null:s-r||Math.abs(r),S=this._modelMinRaw==="dataMin"?r:this._modelMinNum,x=this._modelMaxRaw==="dataMax"?s:this._modelMaxNum,T=S!=null,C=x!=null;S==null&&(S=t?l?0:NaN:r-h[0]*v),x==null&&(x=t?l?l-1:NaN:s+h[1]*v),(S==null||!isFinite(S))&&(S=NaN),(x==null||!isFinite(x))&&(x=NaN);var M=eqNaN(S)||eqNaN(x)||t&&!l;this._needCrossZero&&(S>0&&x>0&&!T&&(S=0),S<0&&x<0&&!C&&(x=0));var w=this._determinedMin,D=this._determinedMax;return w!=null&&(S=w,T=!0),D!=null&&(x=D,C=!0),{min:S,max:x,minFixed:T,maxFixed:C,isBlank:M}},o.prototype.modifyDataMinMax=function(t,r){this[DATA_MIN_MAX_ATTR[t]]=r},o.prototype.setDeterminedMinMax=function(t,r){var s=DETERMINED_MIN_MAX_ATTR[t];this[s]=r},o.prototype.freeze=function(){this.frozen=!0},o}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo(o,t,r){var s=o.rawExtentInfo;return s||(s=new ScaleRawExtentInfo(o,t,r),o.rawExtentInfo=s,s)}function parseAxisModelMinMax(o,t){return t==null?null:eqNaN(t)?NaN:o.parse(t)}function getScaleExtent(o,t){var r=o.type,s=ensureScaleRawExtentInfo(o,t,o.getExtent()).calculate();o.setBlank(s.isBlank);var l=s.min,h=s.max,v=t.ecModel;if(v&&r==="time"){var S=prepareLayoutBarSeries("bar",v),x=!1;if(each$c(S,function(M){x=x||M.getBaseAxis()===t.axis}),x){var T=makeColumnLayout(S),C=adjustScaleForOverflow(l,h,t,T);l=C.min,h=C.max}}return{extent:[l,h],fixMin:s.minFixed,fixMax:s.maxFixed}}function adjustScaleForOverflow(o,t,r,s){var l=r.axis.getExtent(),h=l[1]-l[0],v=retrieveColumnLayout(s,r.axis);if(v===void 0)return{min:o,max:t};var S=1/0;each$c(v,function(D){S=Math.min(D.offset,S)});var x=-1/0;each$c(v,function(D){x=Math.max(D.offset+D.width,x)}),S=Math.abs(S),x=Math.abs(x);var T=S+x,C=t-o,M=1-(S+x)/h,w=C/M-C;return t+=w*(x/T),o-=w*(S/T),{min:o,max:t}}function niceScaleExtent(o,t){var r=t,s=getScaleExtent(o,r),l=s.extent,h=r.get("splitNumber");o instanceof LogScale$1&&(o.base=r.get("logBase"));var v=o.type,S=r.get("interval"),x=v==="interval"||v==="time";o.setExtent(l[0],l[1]),o.calcNiceExtent({splitNumber:h,fixMin:s.fixMin,fixMax:s.fixMax,minInterval:x?r.get("minInterval"):null,maxInterval:x?r.get("maxInterval"):null}),S!=null&&o.setInterval&&o.setInterval(S)}function createScaleByModel(o,t){if(t=t||o.get("type"),t)switch(t){case"category":return new OrdinalScale$1({ordinalMeta:o.getOrdinalMeta?o.getOrdinalMeta():o.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:o.ecModel.getLocaleModel(),useUTC:o.ecModel.get("useUTC")});default:return new(Scale$1.getClass(t)||IntervalScale$1)}}function ifAxisCrossZero(o){var t=o.scale.getExtent(),r=t[0],s=t[1];return!(r>0&&s>0||r<0&&s<0)}function makeLabelFormatter(o){var t=o.getLabelModel().get("formatter"),r=o.type==="category"?o.scale.getExtent()[0]:null;return o.scale.type==="time"?function(s){return function(l,h){return o.scale.getFormattedLabel(l,h,s)}}(t):isString(t)?function(s){return function(l){var h=o.scale.getLabel(l),v=s.replace("{value}",h??"");return v}}(t):isFunction(t)?function(s){return function(l,h){return r!=null&&(h=l.value-r),s(getAxisRawValue(o,l),h,l.level!=null?{level:l.level}:null)}}(t):function(s){return o.scale.getLabel(s)}}function getAxisRawValue(o,t){return o.type==="category"?o.scale.getLabel(t):t.value}function estimateLabelUnionRect(o){var t=o.model,r=o.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var s,l,h=r.getExtent();r instanceof OrdinalScale$1?l=r.count():(s=r.getTicks(),l=s.length);var v=o.getLabelModel(),S=makeLabelFormatter(o),x,T=1;l>40&&(T=Math.ceil(l/40));for(var C=0;C<l;C+=T){var M=s?s[C]:{value:h[0]+C},w=S(M,C),D=v.getTextRect(w),O=rotateTextRect(D,v.get("rotate")||0);x?x.union(O):x=O}return x}}function rotateTextRect(o,t){var r=t*Math.PI/180,s=o.width,l=o.height,h=s*Math.abs(Math.cos(r))+Math.abs(l*Math.sin(r)),v=s*Math.abs(Math.sin(r))+Math.abs(l*Math.cos(r)),S=new BoundingRect$1(o.x,o.y,h,v);return S}function getOptionCategoryInterval(o){var t=o.get("interval");return t??"auto"}function shouldShowAllLabels(o){return o.type==="category"&&getOptionCategoryInterval(o.getLabelModel())===0}function getDataDimensionsOnAxis(o,t){var r={};return each$c(o.mapDimensionsAll(t),function(s){r[getStackedDimension(o,s)]=!0}),keys(r)}function unionAxisExtentFromData(o,t,r){t&&each$c(getDataDimensionsOnAxis(t,r),function(s){var l=t.getApproximateExtent(s);l[0]<o[0]&&(o[0]=l[0]),l[1]>o[1]&&(o[1]=l[1])})}var AxisModelCommonMixin=function(){function o(){}return o.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},o.prototype.getCoordSysModel=function(){},o}();function createList(o){return createSeriesData(null,o)}var dataStack={isDimensionStacked,enableDataStack,getStackedDimension};function createScale(o,t){var r=t;t instanceof Model$1||(r=new Model$1(t));var s=createScaleByModel(r);return s.setExtent(o[0],o[1]),niceScaleExtent(s,r),s}function mixinAxisModelCommonMethods(o){mixin(o,AxisModelCommonMixin)}function createTextStyle(o,t){return t=t||{},createTextStyle$1(o,null,null,t.state!=="normal")}const helper=Object.freeze(Object.defineProperty({__proto__:null,createDimensions,createList,createScale,createSymbol,createTextStyle,dataStack,enableHoverEmphasis,getECData,getLayoutRect,mixinAxisModelCommonMethods},Symbol.toStringTag,{value:"Module"}));var extensions=[],extensionRegisters={registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,registerLayout,registerVisual,registerTransform,registerLoading,registerMap,registerImpl,PRIORITY,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,SeriesModel:SeriesModel$1,ChartView:ChartView$1,registerComponentModel:function(o){ComponentModel$1.registerClass(o)},registerComponentView:function(o){ComponentView$1.registerClass(o)},registerSeriesModel:function(o){SeriesModel$1.registerClass(o)},registerChartView:function(o){ChartView$1.registerClass(o)},registerSubTypeDefaulter:function(o,t){ComponentModel$1.registerSubTypeDefaulter(o,t)},registerPainter:function(o,t){registerPainter(o,t)}};function use$1(o){if(isArray$1(o)){each$c(o,function(t){use$1(t)});return}indexOf(extensions,o)>=0||(extensions.push(o),isFunction(o)&&(o={install:o}),o.install(extensionRegisters))}var EPSILON=1e-8;function isAroundEqual(o,t){return Math.abs(o-t)<EPSILON}function contain(o,t,r){var s=0,l=o[0];if(!l)return!1;for(var h=1;h<o.length;h++){var v=o[h];s+=windingLine(l[0],l[1],v[0],v[1],t,r),l=v}var S=o[0];return(!isAroundEqual(l[0],S[0])||!isAroundEqual(l[1],S[1]))&&(s+=windingLine(l[0],l[1],S[0],S[1],t,r)),s!==0}var TMP_TRANSFORM=[];function transformPoints(o,t){for(var r=0;r<o.length;r++)applyTransform$1(o[r],o[r],t)}function updateBBoxFromPoints(o,t,r,s){for(var l=0;l<o.length;l++){var h=o[l];s&&(h=s.project(h)),h&&isFinite(h[0])&&isFinite(h[1])&&(min$1(t,t,h),max$1(r,r,h))}}function centroid(o){for(var t=0,r=0,s=0,l=o.length,h=o[l-1][0],v=o[l-1][1],S=0;S<l;S++){var x=o[S][0],T=o[S][1],C=h*T-x*v;t+=C,r+=(h+x)*C,s+=(v+T)*C,h=x,v=T}return t?[r/t/3,s/t/3,t]:[o[0][0]||0,o[0][1]||0]}var Region=function(){function o(t){this.name=t}return o.prototype.setCenter=function(t){this._center=t},o.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},o}(),GeoJSONPolygonGeometry=function(){function o(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return o}(),GeoJSONLineStringGeometry=function(){function o(t){this.type="linestring",this.points=t}return o}(),GeoJSONRegion=function(o){__extends(t,o);function t(r,s,l){var h=o.call(this,r)||this;return h.type="geoJSON",h.geometries=s,h._center=l&&[l[0],l[1]],h}return t.prototype.calcCenter=function(){for(var r=this.geometries,s,l=0,h=0;h<r.length;h++){var v=r[h],S=v.exterior,x=S&&S.length;x>l&&(s=v,l=x)}if(s)return centroid(s.exterior);var T=this.getBoundingRect();return[T.x+T.width/2,T.y+T.height/2]},t.prototype.getBoundingRect=function(r){var s=this._rect;if(s&&!r)return s;var l=[1/0,1/0],h=[-1/0,-1/0],v=this.geometries;return each$c(v,function(S){S.type==="polygon"?updateBBoxFromPoints(S.exterior,l,h,r):each$c(S.points,function(x){updateBBoxFromPoints(x,l,h,r)})}),isFinite(l[0])&&isFinite(l[1])&&isFinite(h[0])&&isFinite(h[1])||(l[0]=l[1]=h[0]=h[1]=0),s=new BoundingRect$1(l[0],l[1],h[0]-l[0],h[1]-l[1]),r||(this._rect=s),s},t.prototype.contain=function(r){var s=this.getBoundingRect(),l=this.geometries;if(!s.contain(r[0],r[1]))return!1;e:for(var h=0,v=l.length;h<v;h++){var S=l[h];if(S.type==="polygon"){var x=S.exterior,T=S.interiors;if(contain(x,r[0],r[1])){for(var C=0;C<(T?T.length:0);C++)if(contain(T[C],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,s,l,h){var v=this.getBoundingRect(),S=v.width/v.height;l?h||(h=l/S):l=S*h;for(var x=new BoundingRect$1(r,s,l,h),T=v.calculateTransform(x),C=this.geometries,M=0;M<C.length;M++){var w=C[M];w.type==="polygon"?(transformPoints(w.exterior,T),each$c(w.interiors,function(D){transformPoints(D,T)})):each$c(w.points,function(D){transformPoints(D,T)})}v=this._rect,v.copy(x),this._center=[v.x+v.width/2,v.y+v.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var s=new t(r,this.geometries,this._center);return s._rect=this._rect,s.transformTo=null,s},t}(Region);(function(o){__extends(t,o);function t(r,s){var l=o.call(this,r)||this;return l.type="geoSVG",l._elOnlyForCalculate=s,l}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,s=r.getBoundingRect(),l=[s.x+s.width/2,s.y+s.height/2],h=identity(TMP_TRANSFORM),v=r;v&&!v.isGeoSVGGraphicRoot;)mul(h,v.getLocalTransform(),h),v=v.parent;return invert(h,h),applyTransform$1(l,l,h),l},t})(Region);function decode(o){if(!o.UTF8Encoding)return o;var t=o,r=t.UTF8Scale;r==null&&(r=1024);var s=t.features;return each$c(s,function(l){var h=l.geometry,v=h.encodeOffsets,S=h.coordinates;if(v)switch(h.type){case"LineString":h.coordinates=decodeRing(S,v,r);break;case"Polygon":decodeRings(S,v,r);break;case"MultiLineString":decodeRings(S,v,r);break;case"MultiPolygon":each$c(S,function(x,T){return decodeRings(x,v[T],r)})}}),t.UTF8Encoding=!1,t}function decodeRings(o,t,r){for(var s=0;s<o.length;s++)o[s]=decodeRing(o[s],t[s],r)}function decodeRing(o,t,r){for(var s=[],l=t[0],h=t[1],v=0;v<o.length;v+=2){var S=o.charCodeAt(v)-64,x=o.charCodeAt(v+1)-64;S=S>>1^-(S&1),x=x>>1^-(x&1),S+=l,x+=h,l=S,h=x,s.push([S/r,x/r])}return s}function parseGeoJSON(o,t){return o=decode(o),map$2(filter(o.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var s=r.properties,l=r.geometry,h=[];switch(l.type){case"Polygon":var v=l.coordinates;h.push(new GeoJSONPolygonGeometry(v[0],v.slice(1)));break;case"MultiPolygon":each$c(l.coordinates,function(x){x[0]&&h.push(new GeoJSONPolygonGeometry(x[0],x.slice(1)))});break;case"LineString":h.push(new GeoJSONLineStringGeometry([l.coordinates]));break;case"MultiLineString":h.push(new GeoJSONLineStringGeometry(l.coordinates))}var S=new GeoJSONRegion(s[t||"name"],h,s.cp);return S.properties=s,S})}const number=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER,asc:asc$2,getPercentWithPrecision,getPixelPrecision,getPrecision,getPrecisionSafe,isNumeric,isRadianAroundZero,linearMap:linearMap$2,nice,numericToNumber,parseDate,quantile,quantity,quantityExponent,reformIntervals,remRadian,round:round$1},Symbol.toStringTag,{value:"Module"})),time=Object.freeze(Object.defineProperty({__proto__:null,format:format$1,parse:parseDate},Symbol.toStringTag,{value:"Module"})),graphic=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,initProps,makeImage,makePath,mergePath,registerShape,resizePath,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"})),format=Object.freeze(Object.defineProperty({__proto__:null,addCommas,capitalFirst,encodeHTML,formatTime,formatTpl,getTextRect,getTooltipMarker,normalizeCssArray,toCamelCase,truncateText},Symbol.toStringTag,{value:"Module"})),util=Object.freeze(Object.defineProperty({__proto__:null,bind:bind$1,clone:clone$3,curry:curry$1,defaults,each:each$c,extend,filter,indexOf,inherits,isArray:isArray$1,isFunction,isObject:isObject$3,isString,map:map$2,merge,reduce},Symbol.toStringTag,{value:"Module"}));var inner$7=makeInner();function createAxisLabels(o){return o.type==="category"?makeCategoryLabels(o):makeRealNumberLabels(o)}function createAxisTicks(o,t){return o.type==="category"?makeCategoryTicks(o,t):{ticks:map$2(o.scale.getTicks(),function(r){return r.value})}}function makeCategoryLabels(o){var t=o.getLabelModel(),r=makeCategoryLabelsActually(o,t);return!t.get("show")||o.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function makeCategoryLabelsActually(o,t){var r=getListCache(o,"labels"),s=getOptionCategoryInterval(t),l=listCacheGet(r,s);if(l)return l;var h,v;return isFunction(s)?h=makeLabelsByCustomizedCategoryInterval(o,s):(v=s==="auto"?makeAutoCategoryInterval(o):s,h=makeLabelsByNumericCategoryInterval(o,v)),listCacheSet(r,s,{labels:h,labelCategoryInterval:v})}function makeCategoryTicks(o,t){var r=getListCache(o,"ticks"),s=getOptionCategoryInterval(t),l=listCacheGet(r,s);if(l)return l;var h,v;if((!t.get("show")||o.scale.isBlank())&&(h=[]),isFunction(s))h=makeLabelsByCustomizedCategoryInterval(o,s,!0);else if(s==="auto"){var S=makeCategoryLabelsActually(o,o.getLabelModel());v=S.labelCategoryInterval,h=map$2(S.labels,function(x){return x.tickValue})}else v=s,h=makeLabelsByNumericCategoryInterval(o,v,!0);return listCacheSet(r,s,{ticks:h,tickCategoryInterval:v})}function makeRealNumberLabels(o){var t=o.scale.getTicks(),r=makeLabelFormatter(o);return{labels:map$2(t,function(s,l){return{level:s.level,formattedLabel:r(s,l),rawLabel:o.scale.getLabel(s),tickValue:s.value}})}}function getListCache(o,t){return inner$7(o)[t]||(inner$7(o)[t]=[])}function listCacheGet(o,t){for(var r=0;r<o.length;r++)if(o[r].key===t)return o[r].value}function listCacheSet(o,t,r){return o.push({key:t,value:r}),r}function makeAutoCategoryInterval(o){var t=inner$7(o).autoInterval;return t??(inner$7(o).autoInterval=o.calculateCategoryInterval())}function calculateCategoryInterval(o){var t=fetchAutoCategoryIntervalCalculationParams(o),r=makeLabelFormatter(o),s=(t.axisRotate-t.labelRotate)/180*Math.PI,l=o.scale,h=l.getExtent(),v=l.count();if(h[1]-h[0]<1)return 0;var S=1;v>40&&(S=Math.max(1,Math.floor(v/40)));for(var x=h[0],T=o.dataToCoord(x+1)-o.dataToCoord(x),C=Math.abs(T*Math.cos(s)),M=Math.abs(T*Math.sin(s)),w=0,D=0;x<=h[1];x+=S){var O=0,N=0,k=getBoundingRect(r({value:x}),t.font,"center","top");O=k.width*1.3,N=k.height*1.3,w=Math.max(w,O,7),D=Math.max(D,N,7)}var F=w/C,B=D/M;isNaN(F)&&(F=1/0),isNaN(B)&&(B=1/0);var V=Math.max(0,Math.floor(Math.min(F,B))),z=inner$7(o.model),U=o.getExtent(),Y=z.lastAutoInterval,W=z.lastTickCount;return Y!=null&&W!=null&&Math.abs(Y-V)<=1&&Math.abs(W-v)<=1&&Y>V&&z.axisExtent0===U[0]&&z.axisExtent1===U[1]?V=Y:(z.lastTickCount=v,z.lastAutoInterval=V,z.axisExtent0=U[0],z.axisExtent1=U[1]),V}function fetchAutoCategoryIntervalCalculationParams(o){var t=o.getLabelModel();return{axisRotate:o.getRotate?o.getRotate():o.isHorizontal&&!o.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function makeLabelsByNumericCategoryInterval(o,t,r){var s=makeLabelFormatter(o),l=o.scale,h=l.getExtent(),v=o.getLabelModel(),S=[],x=Math.max((t||0)+1,1),T=h[0],C=l.count();T!==0&&x>1&&C/x>2&&(T=Math.round(Math.ceil(T/x)*x));var M=shouldShowAllLabels(o),w=v.get("showMinLabel")||M,D=v.get("showMaxLabel")||M;w&&T!==h[0]&&N(h[0]);for(var O=T;O<=h[1];O+=x)N(O);D&&O-x!==h[1]&&N(h[1]);function N(k){var F={value:k};S.push(r?k:{formattedLabel:s(F),rawLabel:l.getLabel(F),tickValue:k})}return S}function makeLabelsByCustomizedCategoryInterval(o,t,r){var s=o.scale,l=makeLabelFormatter(o),h=[];return each$c(s.getTicks(),function(v){var S=s.getLabel(v),x=v.value;t(v.value,S)&&h.push(r?x:{formattedLabel:l(v),rawLabel:S,tickValue:x})}),h}var NORMALIZED_EXTENT=[0,1],Axis=function(){function o(t,r,s){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=s||[0,0]}return o.prototype.contain=function(t){var r=this._extent,s=Math.min(r[0],r[1]),l=Math.max(r[0],r[1]);return t>=s&&t<=l},o.prototype.containData=function(t){return this.scale.contain(t)},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.getPixelPrecision=function(t){return getPixelPrecision(t||this.scale.getExtent(),this._extent)},o.prototype.setExtent=function(t,r){var s=this._extent;s[0]=t,s[1]=r},o.prototype.dataToCoord=function(t,r){var s=this._extent,l=this.scale;return t=l.normalize(t),this.onBand&&l.type==="ordinal"&&(s=s.slice(),fixExtentWithBands(s,l.count())),linearMap$2(t,NORMALIZED_EXTENT,s,r)},o.prototype.coordToData=function(t,r){var s=this._extent,l=this.scale;this.onBand&&l.type==="ordinal"&&(s=s.slice(),fixExtentWithBands(s,l.count()));var h=linearMap$2(t,s,NORMALIZED_EXTENT,r);return this.scale.scale(h)},o.prototype.pointToData=function(t,r){},o.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),s=createAxisTicks(this,r),l=s.ticks,h=map$2(l,function(S){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(S):S),tickValue:S}},this),v=r.get("alignWithLabel");return fixOnBandTicksCoords(this,h,v,t.clamp),h},o.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var s=this.scale.getMinorTicks(r),l=map$2(s,function(h){return map$2(h,function(v){return{coord:this.dataToCoord(v),tickValue:v}},this)},this);return l},o.prototype.getViewLabels=function(){return createAxisLabels(this).labels},o.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},o.prototype.getTickModel=function(){return this.model.getModel("axisTick")},o.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),s=r[1]-r[0]+(this.onBand?1:0);s===0&&(s=1);var l=Math.abs(t[1]-t[0]);return Math.abs(l)/s},o.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},o}();function fixExtentWithBands(o,t){var r=o[1]-o[0],s=t,l=r/s/2;o[0]+=l,o[1]-=l}function fixOnBandTicksCoords(o,t,r,s){var l=t.length;if(!o.onBand||r||!l)return;var h=o.getExtent(),v,S;if(l===1)t[0].coord=h[0],v=t[1]={coord:h[0]};else{var x=t[l-1].tickValue-t[0].tickValue,T=(t[l-1].coord-t[0].coord)/x;each$c(t,function(D){D.coord-=T/2});var C=o.scale.getExtent();S=1+C[1]-t[l-1].tickValue,v={coord:t[l-1].coord+T*S},t.push(v)}var M=h[0]>h[1];w(t[0].coord,h[0])&&(s?t[0].coord=h[0]:t.shift()),s&&w(h[0],t[0].coord)&&t.unshift({coord:h[0]}),w(h[1],v.coord)&&(s?v.coord=h[1]:t.pop()),s&&w(v.coord,h[1])&&t.push({coord:h[1]});function w(D,O){return D=round$1(D),O=round$1(O),M?D>O:D<O}}const Axis$1=Axis;function extendComponentModel(o){var t=ComponentModel$1.extend(o);return ComponentModel$1.registerClass(t),t}function extendComponentView(o){var t=ComponentView$1.extend(o);return ComponentView$1.registerClass(t),t}function extendSeriesModel(o){var t=SeriesModel$1.extend(o);return SeriesModel$1.registerClass(t),t}function extendChartView(o){var t=ChartView$1.extend(o);return ChartView$1.registerClass(t),t}PathProxy$1.CMD;function projectPointToLine(o,t,r,s,l,h,v,S){var x=l-o,T=h-t,C=r-o,M=s-t,w=Math.sqrt(C*C+M*M);C/=w,M/=w;var D=x*C+T*M,O=D/w;S&&(O=Math.min(Math.max(O,0),1)),O*=w;var N=v[0]=o+O*C,k=v[1]=t+O*M;return Math.sqrt((N-l)*(N-l)+(k-h)*(k-h))}var pt0=new Point$1,pt1=new Point$1,pt2=new Point$1,dir=new Point$1,dir2=new Point$1,tmpArr=[],tmpProjPoint=new Point$1;function limitTurnAngle(o,t){if(t<=180&&t>0){t=t/180*Math.PI,pt0.fromArray(o[0]),pt1.fromArray(o[1]),pt2.fromArray(o[2]),Point$1.sub(dir,pt0,pt1),Point$1.sub(dir2,pt2,pt1);var r=dir.len(),s=dir2.len();if(!(r<.001||s<.001)){dir.scale(1/r),dir2.scale(1/s);var l=dir.dot(dir2),h=Math.cos(t);if(h<l){var v=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr),tmpProjPoint.scaleAndAdd(dir2,v/Math.tan(Math.PI-t));var S=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(S))return;S<0?Point$1.copy(tmpProjPoint,pt1):S>1&&Point$1.copy(tmpProjPoint,pt2),tmpProjPoint.toArray(o[1])}}}}function limitSurfaceAngle(o,t,r){if(r<=180&&r>0){r=r/180*Math.PI,pt0.fromArray(o[0]),pt1.fromArray(o[1]),pt2.fromArray(o[2]),Point$1.sub(dir,pt1,pt0),Point$1.sub(dir2,pt2,pt1);var s=dir.len(),l=dir2.len();if(!(s<.001||l<.001)){dir.scale(1/s),dir2.scale(1/l);var h=dir.dot(t),v=Math.cos(r);if(h<v){var S=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr);var x=Math.PI/2,T=Math.acos(dir2.dot(t)),C=x+T-r;if(C>=x)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,S/Math.tan(Math.PI/2-C));var M=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(M))return;M<0?Point$1.copy(tmpProjPoint,pt1):M>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray(o[1])}}}}function setLabelLineState(o,t,r,s){var l=r==="normal",h=l?o:o.ensureState(r);h.ignore=t;var v=s.get("smooth");v&&v===!0&&(v=.3),h.shape=h.shape||{},v>0&&(h.shape.smooth=v);var S=s.getModel("lineStyle").getLineStyle();l?o.useStyle(S):h.style=S}function buildLabelLinePath(o,t){var r=t.smooth,s=t.points;if(s)if(o.moveTo(s[0][0],s[0][1]),r>0&&s.length>=3){var l=dist$1(s[0],s[1]),h=dist$1(s[1],s[2]);if(!l||!h){o.lineTo(s[1][0],s[1][1]),o.lineTo(s[2][0],s[2][1]);return}var v=Math.min(l,h)*r,S=lerp$1([],s[1],s[0],v/l),x=lerp$1([],s[1],s[2],v/h),T=lerp$1([],S,x,.5);o.bezierCurveTo(S[0],S[1],S[0],S[1],T[0],T[1]),o.bezierCurveTo(x[0],x[1],x[0],x[1],s[2][0],s[2][1])}else for(var C=1;C<s.length;C++)o.lineTo(s[C][0],s[C][1])}function setLabelLineStyle(o,t,r){var s=o.getTextGuideLine(),l=o.getTextContent();if(!l){s&&o.removeTextGuideLine();return}for(var h=t.normal,v=h.get("show"),S=l.ignore,x=0;x<DISPLAY_STATES.length;x++){var T=DISPLAY_STATES[x],C=t[T],M=T==="normal";if(C){var w=C.get("show"),D=M?S:retrieve2(l.states[T]&&l.states[T].ignore,S);if(D||!retrieve2(w,v)){var O=M?s:s&&s.states[T];O&&(O.ignore=!0);continue}s||(s=new Polyline$1,o.setTextGuideLine(s),!M&&(S||!v)&&setLabelLineState(s,!0,"normal",t.normal),o.stateProxy&&(s.stateProxy=o.stateProxy)),setLabelLineState(s,!1,T,C)}}if(s){defaults(s.style,r),s.style.fill=null;var N=h.get("showAbove"),k=o.textGuideLineConfig=o.textGuideLineConfig||{};k.showAbove=N||!1,s.buildPath=buildLabelLinePath}}function getLabelLineStatesModels(o,t){t=t||"labelLine";for(var r={normal:o.getModel(t)},s=0;s<SPECIAL_STATES.length;s++){var l=SPECIAL_STATES[s];r[l]=o.getModel([l,t])}return r}function prepareLayoutList(o){for(var t=[],r=0;r<o.length;r++){var s=o[r];if(!s.defaultAttr.ignore){var l=s.label,h=l.getComputedTransform(),v=l.getBoundingRect(),S=!h||h[1]<1e-5&&h[2]<1e-5,x=l.style.margin||0,T=v.clone();T.applyTransform(h),T.x-=x/2,T.y-=x/2,T.width+=x,T.height+=x;var C=S?new OrientedBoundingRect$1(v,h):null;t.push({label:l,labelLine:s.labelLine,rect:T,localRect:v,obb:C,priority:s.priority,defaultAttr:s.defaultAttr,layoutOption:s.computedLayoutOption,axisAligned:S,transform:h})}}return t}function shiftLayout(o,t,r,s,l,h){var v=o.length;if(v<2)return;o.sort(function(X,K){return X.rect[t]-K.rect[t]});for(var S=0,x,T=!1,C=0,M=0;M<v;M++){var w=o[M],D=w.rect;x=D[t]-S,x<0&&(D[t]-=x,w.label[t]-=x,T=!0);var O=Math.max(-x,0);C+=O,S=D[t]+D[r]}C>0&&h&&U(-C/v,0,v);var N=o[0],k=o[v-1],F,B;V(),F<0&&Y(-F,.8),B<0&&Y(B,.8),V(),z(F,B,1),z(B,F,-1),V(),F<0&&W(-F),B<0&&W(B);function V(){F=N.rect[t]-s,B=l-k.rect[t]-k.rect[r]}function z(X,K,J){if(X<0){var q=Math.min(K,-X);if(q>0){U(q*J,0,v);var ee=q+X;ee<0&&Y(-ee*J,1)}else Y(-X*J,1)}}function U(X,K,J){X!==0&&(T=!0);for(var q=K;q<J;q++){var ee=o[q],te=ee.rect;te[t]+=X,ee.label[t]+=X}}function Y(X,K){for(var J=[],q=0,ee=1;ee<v;ee++){var te=o[ee-1].rect,ne=Math.max(o[ee].rect[t]-te[t]-te[r],0);J.push(ne),q+=ne}if(q){var ae=Math.min(Math.abs(X)/q,K);if(X>0)for(var ee=0;ee<v-1;ee++){var oe=J[ee]*ae;U(oe,0,ee+1)}else for(var ee=v-1;ee>0;ee--){var oe=J[ee-1]*ae;U(-oe,ee,v)}}}function W(X){var K=X<0?-1:1;X=Math.abs(X);for(var J=Math.ceil(X/(v-1)),q=0;q<v-1;q++)if(K>0?U(J,0,q+1):U(-J,v-q-1,v),X-=J,X<=0)return}return T}function shiftLayoutOnY(o,t,r,s){return shiftLayout(o,"y","height",t,r,s)}function hideOverlap(o){var t=[];o.sort(function(N,k){return k.priority-N.priority});var r=new BoundingRect$1(0,0,0,0);function s(N){if(!N.ignore){var k=N.ensureState("emphasis");k.ignore==null&&(k.ignore=!1)}N.ignore=!0}for(var l=0;l<o.length;l++){var h=o[l],v=h.axisAligned,S=h.localRect,x=h.transform,T=h.label,C=h.labelLine;r.copy(h.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var M=h.obb,w=!1,D=0;D<t.length;D++){var O=t[D];if(r.intersect(O.rect)){if(v&&O.axisAligned){w=!0;break}if(O.obb||(O.obb=new OrientedBoundingRect$1(O.localRect,O.transform)),M||(M=new OrientedBoundingRect$1(S,x)),M.intersect(O.obb)){w=!0;break}}}w?(s(T),C&&s(C)):(T.attr("ignore",h.defaultAttr.ignore),C&&C.attr("ignore",h.defaultAttr.labelGuideIgnore),t.push(h))}}const echarts=Object.freeze(Object.defineProperty({__proto__:null,Axis:Axis$1,ChartView:ChartView$1,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,List:SeriesData$1,Model:Model$1,PRIORITY,SeriesModel:SeriesModel$1,color,connect,dataTool,dependencies,disConnect,disconnect,dispose,env:env$1,extendChartView,extendComponentModel,extendComponentView,extendSeriesModel,format,getCoordinateSystemDimensions,getInstanceByDom,getInstanceById,getMap,graphic,helper,init,innerDrawElementOnCanvas:brushSingle,matrix,number,parseGeoJSON,parseGeoJson:parseGeoJSON,registerAction,registerCoordinateSystem,registerLayout,registerLoading,registerLocale,registerMap,registerPostInit,registerPostUpdate,registerPreprocessor,registerProcessor,registerTheme,registerTransform,registerUpdateLifecycle,registerVisual,setCanvasCreator,setPlatformAPI,throttle,time,use:use$1,util,vector,version,zrUtil:util$1,zrender},Symbol.toStringTag,{value:"Module"}));function createDom(o,t,r){var s=platformApi.createCanvas(),l=t.getWidth(),h=t.getHeight(),v=s.style;return v&&(v.position="absolute",v.left="0",v.top="0",v.width=l+"px",v.height=h+"px",s.setAttribute("data-zr-dom-id",o)),s.width=l*r,s.height=h*r,s}var Layer=function(o){__extends(t,o);function t(r,s,l){var h=o.call(this)||this;h.motionBlur=!1,h.lastFrameAlpha=.7,h.dpr=1,h.virtual=!1,h.config={},h.incremental=!1,h.zlevel=0,h.maxRepaintRectCount=5,h.__dirty=!0,h.__firstTimePaint=!0,h.__used=!1,h.__drawIndex=0,h.__startIndex=0,h.__endIndex=0,h.__prevStartIndex=null,h.__prevEndIndex=null;var v;l=l||devicePixelRatio,typeof r=="string"?v=createDom(r,s,l):isObject$3(r)&&(v=r,r=v.id),h.id=r,h.dom=v;var S=v.style;return S&&(disableUserSelect(v),v.onselectstart=function(){return!1},S.padding="0",S.margin="0",S.borderWidth="0"),h.painter=s,h.dpr=l,h}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=createDom("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,s,l,h){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var v=[],S=this.maxRepaintRectCount,x=!1,T=new BoundingRect$1(0,0,0,0);function C(B){if(!(!B.isFinite()||B.isZero()))if(v.length===0){var V=new BoundingRect$1(0,0,0,0);V.copy(B),v.push(V)}else{for(var z=!1,U=1/0,Y=0,W=0;W<v.length;++W){var X=v[W];if(X.intersect(B)){var K=new BoundingRect$1(0,0,0,0);K.copy(X),K.union(B),v[W]=K,z=!0;break}else if(x){T.copy(B),T.union(X);var J=B.width*B.height,q=X.width*X.height,ee=T.width*T.height,te=ee-J-q;te<U&&(U=te,Y=W)}}if(x&&(v[Y].union(B),z=!0),!z){var V=new BoundingRect$1(0,0,0,0);V.copy(B),v.push(V)}x||(x=v.length>=S)}}for(var M=this.__startIndex;M<this.__endIndex;++M){var w=r[M];if(w){var D=w.shouldBePainted(l,h,!0,!0),O=w.__isRendered&&(w.__dirty&REDRAW_BIT||!D)?w.getPrevPaintRect():null;O&&C(O);var N=D&&(w.__dirty&REDRAW_BIT||!w.__isRendered)?w.getPaintRect():null;N&&C(N)}}for(var M=this.__prevStartIndex;M<this.__prevEndIndex;++M){var w=s[M],D=w.shouldBePainted(l,h,!0,!0);if(w&&(!D||!w.__zr)&&w.__isRendered){var O=w.getPrevPaintRect();O&&C(O)}}var k;do{k=!1;for(var M=0;M<v.length;){if(v[M].isZero()){v.splice(M,1);continue}for(var F=M+1;F<v.length;)v[M].intersect(v[F])?(k=!0,v[M].union(v[F]),v.splice(F,1)):F++;M++}}while(k);return this._paintRects=v,v},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,s){var l=this.dpr,h=this.dom,v=h.style,S=this.domBack;v&&(v.width=r+"px",v.height=s+"px"),h.width=r*l,h.height=s*l,S&&(S.width=r*l,S.height=s*l,l!==1&&this.ctxBack.scale(l,l))},t.prototype.clear=function(r,s,l){var h=this.dom,v=this.ctx,S=h.width,x=h.height;s=s||this.clearColor;var T=this.motionBlur&&!r,C=this.lastFrameAlpha,M=this.dpr,w=this;T&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(h,0,0,S/M,x/M));var D=this.domBack;function O(N,k,F,B){if(v.clearRect(N,k,F,B),s&&s!=="transparent"){var V=void 0;if(isGradientObject(s)){var z=s.global||s.__width===F&&s.__height===B;V=z&&s.__canvasGradient||getCanvasGradient(v,s,{x:0,y:0,width:F,height:B}),s.__canvasGradient=V,s.__width=F,s.__height=B}else isImagePatternObject(s)&&(s.scaleX=s.scaleX||M,s.scaleY=s.scaleY||M,V=createCanvasPattern(v,s,{dirty:function(){w.setUnpainted(),w.__painter.refresh()}}));v.save(),v.fillStyle=V||s,v.fillRect(N,k,F,B),v.restore()}T&&(v.save(),v.globalAlpha=C,v.drawImage(D,N,k,F,B),v.restore())}!l||T?O(0,0,S,x):l.length&&each$c(l,function(N){O(N.x*M,N.y*M,N.width*M,N.height*M)})},t}(Eventful$1);const Layer$1=Layer;var HOVER_LAYER_ZLEVEL=1e5,CANVAS_ZLEVEL=314159,EL_AFTER_INCREMENTAL_INC=.01,INCREMENTAL_INC=.001;function isLayerValid(o){return o?o.__builtin__?!0:!(typeof o.resize!="function"||typeof o.refresh!="function"):!1}function createRoot(o,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+o+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var CanvasPainter=function(){function o(t,r,s,l){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var h=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=s=extend({},s||{}),this.dpr=s.devicePixelRatio||devicePixelRatio,this._singleCanvas=h,this.root=t;var v=t.style;v&&(disableUserSelect(t),t.innerHTML=""),this.storage=r;var S=this._zlevelList;this._prevDisplayList=[];var x=this._layers;if(h){var C=t,M=C.width,w=C.height;s.width!=null&&(M=s.width),s.height!=null&&(w=s.height),this.dpr=s.devicePixelRatio||1,C.width=M*this.dpr,C.height=w*this.dpr,this._width=M,this._height=w;var D=new Layer$1(C,this,this.dpr);D.__builtin__=!0,D.initContext(),x[CANVAS_ZLEVEL]=D,D.zlevel=CANVAS_ZLEVEL,S.push(CANVAS_ZLEVEL),this._domRoot=t}else{this._width=getSize$1(t,0,s),this._height=getSize$1(t,1,s);var T=this._domRoot=createRoot(this._width,this._height);t.appendChild(T)}}return o.prototype.getType=function(){return"canvas"},o.prototype.isSingleCanvas=function(){return this._singleCanvas},o.prototype.getViewportRoot=function(){return this._domRoot},o.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},o.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),s=this._prevDisplayList,l=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,s,t,this._redrawId);for(var h=0;h<l.length;h++){var v=l[h],S=this._layers[v];if(!S.__builtin__&&S.refresh){var x=h===0?this._backgroundColor:null;S.refresh(x)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},o.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},o.prototype._paintHoverList=function(t){var r=t.length,s=this._hoverlayer;if(s&&s.clear(),!!r){for(var l={inHover:!0,viewWidth:this._width,viewHeight:this._height},h,v=0;v<r;v++){var S=t[v];S.__inHover&&(s||(s=this._hoverlayer=this.getLayer(HOVER_LAYER_ZLEVEL)),h||(h=s.ctx,h.save()),brush(h,S,l,v===r-1))}h&&h.restore()}},o.prototype.getHoverLayer=function(){return this.getLayer(HOVER_LAYER_ZLEVEL)},o.prototype.paintOne=function(t,r){brushSingle(t,r)},o.prototype._paintList=function(t,r,s,l){if(this._redrawId===l){s=s||!1,this._updateLayerStatus(t);var h=this._doPaintList(t,r,s),v=h.finished,S=h.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),S&&this._paintHoverList(t),v)this.eachLayer(function(T){T.afterBrush&&T.afterBrush()});else{var x=this;requestAnimationFrame$1(function(){x._paintList(t,r,s,l)})}}},o.prototype._compositeManually=function(){var t=this.getLayer(CANVAS_ZLEVEL).ctx,r=this._domRoot.width,s=this._domRoot.height;t.clearRect(0,0,r,s),this.eachBuiltinLayer(function(l){l.virtual&&t.drawImage(l.dom,0,0,r,s)})},o.prototype._doPaintList=function(t,r,s){for(var l=this,h=[],v=this._opts.useDirtyRect,S=0;S<this._zlevelList.length;S++){var x=this._zlevelList[S],T=this._layers[x];T.__builtin__&&T!==this._hoverlayer&&(T.__dirty||s)&&h.push(T)}for(var C=!0,M=!1,w=function(N){var k=h[N],F=k.ctx,B=v&&k.createRepaintRects(t,r,D._width,D._height),V=s?k.__startIndex:k.__drawIndex,z=!s&&k.incremental&&Date.now,U=z&&Date.now(),Y=k.zlevel===D._zlevelList[0]?D._backgroundColor:null;if(k.__startIndex===k.__endIndex)k.clear(!1,Y,B);else if(V===k.__startIndex){var W=t[V];(!W.incremental||!W.notClear||s)&&k.clear(!1,Y,B)}V===-1&&(console.error("For some unknown reason. drawIndex is -1"),V=k.__startIndex);var X,K=function(te){var ne={inHover:!1,allClipped:!1,prevEl:null,viewWidth:l._width,viewHeight:l._height};for(X=V;X<k.__endIndex;X++){var ae=t[X];if(ae.__inHover&&(M=!0),l._doPaintEl(ae,k,v,te,ne,X===k.__endIndex-1),z){var oe=Date.now()-U;if(oe>15)break}}ne.prevElClipPaths&&F.restore()};if(B)if(B.length===0)X=k.__endIndex;else for(var J=D.dpr,q=0;q<B.length;++q){var ee=B[q];F.save(),F.beginPath(),F.rect(ee.x*J,ee.y*J,ee.width*J,ee.height*J),F.clip(),K(ee),F.restore()}else F.save(),K(),F.restore();k.__drawIndex=X,k.__drawIndex<k.__endIndex&&(C=!1)},D=this,O=0;O<h.length;O++)w(O);return env$1.wxa&&each$c(this._layers,function(N){N&&N.ctx&&N.ctx.draw&&N.ctx.draw()}),{finished:C,needsRefreshHover:M}},o.prototype._doPaintEl=function(t,r,s,l,h,v){var S=r.ctx;if(s){var x=t.getPaintRect();(!l||x&&x.intersect(l))&&(brush(S,t,h,v),t.setPrevPaintRect(x))}else brush(S,t,h,v)},o.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=CANVAS_ZLEVEL);var s=this._layers[t];return s||(s=new Layer$1("zr_"+t,this,this.dpr),s.zlevel=t,s.__builtin__=!0,this._layerConfig[t]?merge(s,this._layerConfig[t],!0):this._layerConfig[t-EL_AFTER_INCREMENTAL_INC]&&merge(s,this._layerConfig[t-EL_AFTER_INCREMENTAL_INC],!0),r&&(s.virtual=r),this.insertLayer(t,s),s.initContext()),s},o.prototype.insertLayer=function(t,r){var s=this._layers,l=this._zlevelList,h=l.length,v=this._domRoot,S=null,x=-1;if(!s[t]&&isLayerValid(r)){if(h>0&&t>l[0]){for(x=0;x<h-1&&!(l[x]<t&&l[x+1]>t);x++);S=s[l[x]]}if(l.splice(x+1,0,t),s[t]=r,!r.virtual)if(S){var T=S.dom;T.nextSibling?v.insertBefore(r.dom,T.nextSibling):v.appendChild(r.dom)}else v.firstChild?v.insertBefore(r.dom,v.firstChild):v.appendChild(r.dom);r.__painter=this}},o.prototype.eachLayer=function(t,r){for(var s=this._zlevelList,l=0;l<s.length;l++){var h=s[l];t.call(r,this._layers[h],h)}},o.prototype.eachBuiltinLayer=function(t,r){for(var s=this._zlevelList,l=0;l<s.length;l++){var h=s[l],v=this._layers[h];v.__builtin__&&t.call(r,v,h)}},o.prototype.eachOtherLayer=function(t,r){for(var s=this._zlevelList,l=0;l<s.length;l++){var h=s[l],v=this._layers[h];v.__builtin__||t.call(r,v,h)}},o.prototype.getLayers=function(){return this._layers},o.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(M,w){M.__dirty=M.__used=!1});function r(M){h&&(h.__endIndex!==M&&(h.__dirty=!0),h.__endIndex=M)}if(this._singleCanvas)for(var s=1;s<t.length;s++){var l=t[s];if(l.zlevel!==t[s-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var h=null,v=0,S,x;for(x=0;x<t.length;x++){var l=t[x],T=l.zlevel,C=void 0;S!==T&&(S=T,v=0),l.incremental?(C=this.getLayer(T+INCREMENTAL_INC,this._needsManuallyCompositing),C.incremental=!0,v=1):C=this.getLayer(T+(v>0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),C.__builtin__||logError("ZLevel "+T+" has been used by unkown layer "+C.id),C!==h&&(C.__used=!0,C.__startIndex!==x&&(C.__dirty=!0),C.__startIndex=x,C.incremental?C.__drawIndex=-1:C.__drawIndex=x,r(x),h=C),l.__dirty&REDRAW_BIT&&!l.__inHover&&(C.__dirty=!0,C.incremental&&C.__drawIndex<0&&(C.__drawIndex=x))}r(x),this.eachBuiltinLayer(function(M,w){!M.__used&&M.getElementCount()>0&&(M.__dirty=!0,M.__startIndex=M.__endIndex=M.__drawIndex=0),M.__dirty&&M.__drawIndex<0&&(M.__drawIndex=M.__startIndex)})},o.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},o.prototype._clearLayer=function(t){t.clear()},o.prototype.setBackgroundColor=function(t){this._backgroundColor=t,each$c(this._layers,function(r){r.setUnpainted()})},o.prototype.configLayer=function(t,r){if(r){var s=this._layerConfig;s[t]?merge(s[t],r,!0):s[t]=r;for(var l=0;l<this._zlevelList.length;l++){var h=this._zlevelList[l];if(h===t||h===t+EL_AFTER_INCREMENTAL_INC){var v=this._layers[h];merge(v,s[t],!0)}}}},o.prototype.delLayer=function(t){var r=this._layers,s=this._zlevelList,l=r[t];l&&(l.dom.parentNode.removeChild(l.dom),delete r[t],s.splice(indexOf(s,t),1))},o.prototype.resize=function(t,r){if(this._domRoot.style){var s=this._domRoot;s.style.display="none";var l=this._opts,h=this.root;if(t!=null&&(l.width=t),r!=null&&(l.height=r),t=getSize$1(h,0,l),r=getSize$1(h,1,l),s.style.display="",this._width!==t||r!==this._height){s.style.width=t+"px",s.style.height=r+"px";for(var v in this._layers)this._layers.hasOwnProperty(v)&&this._layers[v].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(CANVAS_ZLEVEL).resize(t,r)}return this},o.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},o.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},o.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[CANVAS_ZLEVEL].dom;var r=new Layer$1("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var s=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var l=r.dom.width,h=r.dom.height;this.eachLayer(function(M){M.__builtin__?s.drawImage(M.dom,0,0,l,h):M.renderToCanvas&&(s.save(),M.renderToCanvas(s),s.restore())})}else for(var v={inHover:!1,viewWidth:this._width,viewHeight:this._height},S=this.storage.getDisplayList(!0),x=0,T=S.length;x<T;x++){var C=S[x];brush(s,C,v,x===T-1)}return r.dom},o.prototype.getWidth=function(){return this._width},o.prototype.getHeight=function(){return this._height},o}();const CanvasPainter$1=CanvasPainter;function install$k(o){o.registerPainter("canvas",CanvasPainter$1)}var LineSeriesModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return createSeriesData(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var s=new Group$3,l=createSymbol("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);s.add(l),l.setStyle(r.lineStyle);var h=this.getData().getVisual("symbol"),v=this.getData().getVisual("symbolRotate"),S=h==="none"?"circle":h,x=r.itemHeight*.8,T=createSymbol(S,(r.itemWidth-x)/2,(r.itemHeight-x)/2,x,x,r.itemStyle.fill);s.add(T),T.setStyle(r.itemStyle);var C=r.iconRotate==="inherit"?v:r.iconRotate||0;return T.rotation=C*Math.PI/180,T.setOrigin([r.itemWidth/2,r.itemHeight/2]),S.indexOf("empty")>-1&&(T.style.stroke=T.style.fill,T.style.fill="#fff",T.style.lineWidth=2),s},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(SeriesModel$1);const LineSeries=LineSeriesModel;function getDefaultLabel(o,t){var r=o.mapDimensionsAll("defaultedLabel"),s=r.length;if(s===1){var l=retrieveRawValue(o,t,r[0]);return l!=null?l+"":null}else if(s){for(var h=[],v=0;v<r.length;v++)h.push(retrieveRawValue(o,t,r[v]));return h.join(" ")}}function getDefaultInterpolatedLabel(o,t){var r=o.mapDimensionsAll("defaultedLabel");if(!isArray$1(t))return t+"";for(var s=[],l=0;l<r.length;l++){var h=o.getDimensionIndex(r[l]);h>=0&&s.push(t[h])}return s.join(" ")}var Symbol$1=function(o){__extends(t,o);function t(r,s,l,h){var v=o.call(this)||this;return v.updateData(r,s,l,h),v}return t.prototype._createSymbol=function(r,s,l,h,v){this.removeAll();var S=createSymbol(r,-1,-1,2,2,null,v);S.attr({z2:100,culling:!0,scaleX:h[0]/2,scaleY:h[1]/2}),S.drift=driftSymbol,this._symbolType=r,this.add(S)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){enterEmphasis(this.childAt(0))},t.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},t.prototype.setZ=function(r,s){var l=this.childAt(0);l.zlevel=r,l.z=s},t.prototype.setDraggable=function(r,s){var l=this.childAt(0);l.draggable=r,l.cursor=!s&&r?"move":l.cursor},t.prototype.updateData=function(r,s,l,h){this.silent=!1;var v=r.getItemVisual(s,"symbol")||"circle",S=r.hostModel,x=t.getSymbolSize(r,s),T=v!==this._symbolType,C=h&&h.disableAnimation;if(T){var M=r.getItemVisual(s,"symbolKeepAspect");this._createSymbol(v,r,s,x,M)}else{var w=this.childAt(0);w.silent=!1;var D={scaleX:x[0]/2,scaleY:x[1]/2};C?w.attr(D):updateProps$1(w,D,S,s),saveOldStyle(w)}if(this._updateCommon(r,s,x,l,h),T){var w=this.childAt(0);if(!C){var D={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:w.style.opacity}};w.scaleX=w.scaleY=0,w.style.opacity=0,initProps(w,D,S,s)}}C&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,s,l,h,v){var S=this.childAt(0),x=r.hostModel,T,C,M,w,D,O,N,k,F;if(h&&(T=h.emphasisItemStyle,C=h.blurItemStyle,M=h.selectItemStyle,w=h.focus,D=h.blurScope,N=h.labelStatesModels,k=h.hoverScale,F=h.cursorStyle,O=h.emphasisDisabled),!h||r.hasItemOption){var B=h&&h.itemModel?h.itemModel:r.getItemModel(s),V=B.getModel("emphasis");T=V.getModel("itemStyle").getItemStyle(),M=B.getModel(["select","itemStyle"]).getItemStyle(),C=B.getModel(["blur","itemStyle"]).getItemStyle(),w=V.get("focus"),D=V.get("blurScope"),O=V.get("disabled"),N=getLabelStatesModels(B),k=V.getShallow("scale"),F=B.getShallow("cursor")}var z=r.getItemVisual(s,"symbolRotate");S.attr("rotation",(z||0)*Math.PI/180||0);var U=normalizeSymbolOffset(r.getItemVisual(s,"symbolOffset"),l);U&&(S.x=U[0],S.y=U[1]),F&&S.attr("cursor",F);var Y=r.getItemVisual(s,"style"),W=Y.fill;if(S instanceof ZRImage$1){var X=S.style;S.useStyle(extend({image:X.image,x:X.x,y:X.y,width:X.width,height:X.height},Y))}else S.__isEmptyBrush?S.useStyle(extend({},Y)):S.useStyle(Y),S.style.decal=null,S.setColor(W,v&&v.symbolInnerColor),S.style.strokeNoScale=!0;var K=r.getItemVisual(s,"liftZ"),J=this._z2;K!=null?J==null&&(this._z2=S.z2,S.z2+=K):J!=null&&(S.z2=J,this._z2=null);var q=v&&v.useNameLabel;setLabelStyle(S,N,{labelFetcher:x,labelDataIndex:s,defaultText:ee,inheritColor:W,defaultOpacity:Y.opacity});function ee(ae){return q?r.getName(ae):getDefaultLabel(r,ae)}this._sizeX=l[0]/2,this._sizeY=l[1]/2;var te=S.ensureState("emphasis");te.style=T,S.ensureState("select").style=M,S.ensureState("blur").style=C;var ne=k==null||k===!0?Math.max(1.1,3/this._sizeY):isFinite(k)&&k>0?+k:1;te.scaleX=this._sizeX*ne,te.scaleY=this._sizeY*ne,this.setSymbolScale(1),toggleHoverEmphasis(this,w,D,O)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,s,l){var h=this.childAt(0),v=getECData(this).dataIndex,S=l&&l.animation;if(this.silent=h.silent=!0,l&&l.fadeLabel){var x=h.getTextContent();x&&removeElement(x,{style:{opacity:0}},s,{dataIndex:v,removeOpt:S,cb:function(){h.removeTextContent()}})}else h.removeTextContent();removeElement(h,{style:{opacity:0},scaleX:0,scaleY:0},s,{dataIndex:v,cb:r,removeOpt:S})},t.getSymbolSize=function(r,s){return normalizeSymbolSize(r.getItemVisual(s,"symbolSize"))},t}(Group$3);function driftSymbol(o,t){this.parent.drift(o,t)}const SymbolClz=Symbol$1;function symbolNeedsDraw(o,t,r,s){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(s.isIgnore&&s.isIgnore(r))&&!(s.clipShape&&!s.clipShape.contain(t[0],t[1]))&&o.getItemVisual(r,"symbol")!=="none"}function normalizeUpdateOpt(o){return o!=null&&!isObject$3(o)&&(o={isIgnore:o}),o||{}}function makeSeriesScope(o){var t=o.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:getLabelStatesModels(t),cursorStyle:t.get("cursor")}}var SymbolDraw=function(){function o(t){this.group=new Group$3,this._SymbolCtor=t||SymbolClz}return o.prototype.updateData=function(t,r){this._progressiveEls=null,r=normalizeUpdateOpt(r);var s=this.group,l=t.hostModel,h=this._data,v=this._SymbolCtor,S=r.disableAnimation,x=makeSeriesScope(t),T={disableAnimation:S},C=r.getSymbolPoint||function(M){return t.getItemLayout(M)};h||s.removeAll(),t.diff(h).add(function(M){var w=C(M);if(symbolNeedsDraw(t,w,M,r)){var D=new v(t,M,x,T);D.setPosition(w),t.setItemGraphicEl(M,D),s.add(D)}}).update(function(M,w){var D=h.getItemGraphicEl(w),O=C(M);if(!symbolNeedsDraw(t,O,M,r)){s.remove(D);return}var N=t.getItemVisual(M,"symbol")||"circle",k=D&&D.getSymbolType&&D.getSymbolType();if(!D||k&&k!==N)s.remove(D),D=new v(t,M,x,T),D.setPosition(O);else{D.updateData(t,M,x,T);var F={x:O[0],y:O[1]};S?D.attr(F):updateProps$1(D,F,l)}s.add(D),t.setItemGraphicEl(M,D)}).remove(function(M){var w=h.getItemGraphicEl(M);w&&w.fadeOut(function(){s.remove(w)},l)}).execute(),this._getSymbolPoint=C,this._data=t},o.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(s,l){var h=t._getSymbolPoint(l);s.setPosition(h),s.markRedraw()})},o.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=makeSeriesScope(t),this._data=null,this.group.removeAll()},o.prototype.incrementalUpdate=function(t,r,s){this._progressiveEls=[],s=normalizeUpdateOpt(s);function l(x){x.isGroup||(x.incremental=!0,x.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var v=r.getItemLayout(h);if(symbolNeedsDraw(r,v,h,s)){var S=new this._SymbolCtor(r,h,this._seriesScope);S.traverse(l),S.setPosition(v),this.group.add(S),r.setItemGraphicEl(h,S),this._progressiveEls.push(S)}}},o.prototype.eachRendered=function(t){traverseElements(this._progressiveEls||this.group,t)},o.prototype.remove=function(t){var r=this.group,s=this._data;s&&t?s.eachItemGraphicEl(function(l){l.fadeOut(function(){r.remove(l)},s.hostModel)}):r.removeAll()},o}();const SymbolDraw$1=SymbolDraw;function prepareDataCoordInfo(o,t,r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),h=getValueStart(l,r),v=s.dim,S=l.dim,x=t.mapDimension(S),T=t.mapDimension(v),C=S==="x"||S==="radius"?1:0,M=map$2(o.dimensions,function(O){return t.mapDimension(O)}),w=!1,D=t.getCalculationInfo("stackResultDimension");return isDimensionStacked(t,M[0])&&(w=!0,M[0]=D),isDimensionStacked(t,M[1])&&(w=!0,M[1]=D),{dataDimsForPoint:M,valueStart:h,valueAxisDim:S,baseAxisDim:v,stacked:!!w,valueDim:x,baseDim:T,baseDataOffset:C,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function getValueStart(o,t){var r=0,s=o.scale.getExtent();return t==="start"?r=s[0]:t==="end"?r=s[1]:isNumber(t)&&!isNaN(t)?r=t:s[0]>0?r=s[0]:s[1]<0&&(r=s[1]),r}function getStackedOnPoint(o,t,r,s){var l=NaN;o.stacked&&(l=r.get(r.getCalculationInfo("stackedOverDimension"),s)),isNaN(l)&&(l=o.valueStart);var h=o.baseDataOffset,v=[];return v[h]=r.get(o.baseDim,s),v[1-h]=l,t.dataToPoint(v)}function diffData(o,t){var r=[];return t.diff(o).add(function(s){r.push({cmd:"+",idx:s})}).update(function(s,l){r.push({cmd:"=",idx:l,idx1:s})}).remove(function(s){r.push({cmd:"-",idx:s})}).execute(),r}function lineAnimationDiff(o,t,r,s,l,h,v,S){for(var x=diffData(o,t),T=[],C=[],M=[],w=[],D=[],O=[],N=[],k=prepareDataCoordInfo(l,t,v),F=o.getLayout("points")||[],B=t.getLayout("points")||[],V=0;V<x.length;V++){var z=x[V],U=!0,Y=void 0,W=void 0;switch(z.cmd){case"=":Y=z.idx*2,W=z.idx1*2;var X=F[Y],K=F[Y+1],J=B[W],q=B[W+1];(isNaN(X)||isNaN(K))&&(X=J,K=q),T.push(X,K),C.push(J,q),M.push(r[Y],r[Y+1]),w.push(s[W],s[W+1]),N.push(t.getRawIndex(z.idx1));break;case"+":var ee=z.idx,te=k.dataDimsForPoint,ne=l.dataToPoint([t.get(te[0],ee),t.get(te[1],ee)]);W=ee*2,T.push(ne[0],ne[1]),C.push(B[W],B[W+1]);var ae=getStackedOnPoint(k,l,t,ee);M.push(ae[0],ae[1]),w.push(s[W],s[W+1]),N.push(t.getRawIndex(ee));break;case"-":U=!1}U&&(D.push(z),O.push(O.length))}O.sort(function($e,Ie){return N[$e]-N[Ie]});for(var oe=T.length,Se=createFloat32Array(oe),se=createFloat32Array(oe),le=createFloat32Array(oe),ye=createFloat32Array(oe),we=[],V=0;V<O.length;V++){var Me=O[V],Ee=V*2,Pe=Me*2;Se[Ee]=T[Pe],Se[Ee+1]=T[Pe+1],se[Ee]=C[Pe],se[Ee+1]=C[Pe+1],le[Ee]=M[Pe],le[Ee+1]=M[Pe+1],ye[Ee]=w[Pe],ye[Ee+1]=w[Pe+1],we[V]=D[Me]}return{current:Se,next:se,stackedOnCurrent:le,stackedOnNext:ye,status:we}}var mathMin$3=Math.min,mathMax$3=Math.max;function isPointNull$1(o,t){return isNaN(o)||isNaN(t)}function drawSegment(o,t,r,s,l,h,v,S,x){for(var T,C,M,w,D,O,N=r,k=0;k<s;k++){var F=t[N*2],B=t[N*2+1];if(N>=l||N<0)break;if(isPointNull$1(F,B)){if(x){N+=h;continue}break}if(N===r)o[h>0?"moveTo":"lineTo"](F,B),M=F,w=B;else{var V=F-T,z=B-C;if(V*V+z*z<.5){N+=h;continue}if(v>0){for(var U=N+h,Y=t[U*2],W=t[U*2+1];Y===F&&W===B&&k<s;)k++,U+=h,N+=h,Y=t[U*2],W=t[U*2+1],F=t[N*2],B=t[N*2+1],V=F-T,z=B-C;var X=k+1;if(x)for(;isPointNull$1(Y,W)&&X<s;)X++,U+=h,Y=t[U*2],W=t[U*2+1];var K=.5,J=0,q=0,ee=void 0,te=void 0;if(X>=s||isPointNull$1(Y,W))D=F,O=B;else{J=Y-T,q=W-C;var ne=F-T,ae=Y-F,oe=B-C,Se=W-B,se=void 0,le=void 0;if(S==="x"){se=Math.abs(ne),le=Math.abs(ae);var ye=J>0?1:-1;D=F-ye*se*v,O=B,ee=F+ye*le*v,te=B}else if(S==="y"){se=Math.abs(oe),le=Math.abs(Se);var we=q>0?1:-1;D=F,O=B-we*se*v,ee=F,te=B+we*le*v}else se=Math.sqrt(ne*ne+oe*oe),le=Math.sqrt(ae*ae+Se*Se),K=le/(le+se),D=F-J*v*(1-K),O=B-q*v*(1-K),ee=F+J*v*K,te=B+q*v*K,ee=mathMin$3(ee,mathMax$3(Y,F)),te=mathMin$3(te,mathMax$3(W,B)),ee=mathMax$3(ee,mathMin$3(Y,F)),te=mathMax$3(te,mathMin$3(W,B)),J=ee-F,q=te-B,D=F-J*se/le,O=B-q*se/le,D=mathMin$3(D,mathMax$3(T,F)),O=mathMin$3(O,mathMax$3(C,B)),D=mathMax$3(D,mathMin$3(T,F)),O=mathMax$3(O,mathMin$3(C,B)),J=F-D,q=B-O,ee=F+J*le/se,te=B+q*le/se}o.bezierCurveTo(M,w,D,O,F,B),M=ee,w=te}else o.lineTo(F,B)}T=F,C=B,N+=h}return k}var ECPolylineShape=function(){function o(){this.smooth=0,this.smoothConstraint=!0}return o}(),ECPolyline=function(o){__extends(t,o);function t(r){var s=o.call(this,r)||this;return s.type="ec-polyline",s}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ECPolylineShape},t.prototype.buildPath=function(r,s){var l=s.points,h=0,v=l.length/2;if(s.connectNulls){for(;v>0&&isPointNull$1(l[v*2-2],l[v*2-1]);v--);for(;h<v&&isPointNull$1(l[h*2],l[h*2+1]);h++);}for(;h<v;)h+=drawSegment(r,l,h,v,v,1,s.smooth,s.smoothMonotone,s.connectNulls)+1},t.prototype.getPointOn=function(r,s){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var l=this.path,h=l.data,v=PathProxy$1.CMD,S,x,T=s==="x",C=[],M=0;M<h.length;){var w=h[M++],D=void 0,O=void 0,N=void 0,k=void 0,F=void 0,B=void 0,V=void 0;switch(w){case v.M:S=h[M++],x=h[M++];break;case v.L:if(D=h[M++],O=h[M++],V=T?(r-S)/(D-S):(r-x)/(O-x),V<=1&&V>=0){var z=T?(O-x)*V+x:(D-S)*V+S;return T?[r,z]:[z,r]}S=D,x=O;break;case v.C:D=h[M++],O=h[M++],N=h[M++],k=h[M++],F=h[M++],B=h[M++];var U=T?cubicRootAt(S,D,N,F,r,C):cubicRootAt(x,O,k,B,r,C);if(U>0)for(var Y=0;Y<U;Y++){var W=C[Y];if(W<=1&&W>=0){var z=T?cubicAt(x,O,k,B,W):cubicAt(S,D,N,F,W);return T?[r,z]:[z,r]}}S=F,x=B;break}}},t}(Path$1),ECPolygonShape=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t}(ECPolylineShape),ECPolygon=function(o){__extends(t,o);function t(r){var s=o.call(this,r)||this;return s.type="ec-polygon",s}return t.prototype.getDefaultShape=function(){return new ECPolygonShape},t.prototype.buildPath=function(r,s){var l=s.points,h=s.stackedOnPoints,v=0,S=l.length/2,x=s.smoothMonotone;if(s.connectNulls){for(;S>0&&isPointNull$1(l[S*2-2],l[S*2-1]);S--);for(;v<S&&isPointNull$1(l[v*2],l[v*2+1]);v++);}for(;v<S;){var T=drawSegment(r,l,v,S,S,1,s.smooth,x,s.connectNulls);drawSegment(r,h,v+T-1,T,S,-1,s.stackedOnSmooth,x,s.connectNulls),v+=T+1,r.closePath()}},t}(Path$1);function createGridClipPath(o,t,r,s,l){var h=o.getArea(),v=h.x,S=h.y,x=h.width,T=h.height,C=r.get(["lineStyle","width"])||2;v-=C/2,S-=C/2,x+=C,T+=C,v=Math.floor(v),x=Math.round(x);var M=new Rect$2({shape:{x:v,y:S,width:x,height:T}});if(t){var w=o.getBaseAxis(),D=w.isHorizontal(),O=w.inverse;D?(O&&(M.shape.x+=x),M.shape.width=0):(O||(M.shape.y+=T),M.shape.height=0);var N=isFunction(l)?function(k){l(k,M)}:null;initProps(M,{shape:{width:x,height:T,x:v,y:S}},r,null,s,N)}return M}function createPolarClipPath(o,t,r){var s=o.getArea(),l=round$1(s.r0,1),h=round$1(s.r,1),v=new Sector$1({shape:{cx:round$1(o.cx,1),cy:round$1(o.cy,1),r0:l,r:h,startAngle:s.startAngle,endAngle:s.endAngle,clockwise:s.clockwise}});if(t){var S=o.getBaseAxis().dim==="angle";S?v.shape.endAngle=s.startAngle:v.shape.r=l,initProps(v,{shape:{endAngle:s.endAngle,r:h}},r)}return v}function createClipPath(o,t,r,s,l){if(o){if(o.type==="polar")return createPolarClipPath(o,t,r);if(o.type==="cartesian2d")return createGridClipPath(o,t,r,s,l)}else return null;return null}function isCoordinateSystemType(o,t){return o.type===t}function isPointsSame(o,t){if(o.length===t.length){for(var r=0;r<o.length;r++)if(o[r]!==t[r])return;return!0}}function bboxFromPoints(o){for(var t=1/0,r=1/0,s=-1/0,l=-1/0,h=0;h<o.length;){var v=o[h++],S=o[h++];isNaN(v)||(t=Math.min(v,t),s=Math.max(v,s)),isNaN(S)||(r=Math.min(S,r),l=Math.max(S,l))}return[[t,r],[s,l]]}function getBoundingDiff(o,t){var r=bboxFromPoints(o),s=r[0],l=r[1],h=bboxFromPoints(t),v=h[0],S=h[1];return Math.max(Math.abs(s[0]-v[0]),Math.abs(s[1]-v[1]),Math.abs(l[0]-S[0]),Math.abs(l[1]-S[1]))}function getSmooth(o){return isNumber(o)?o:o?.5:0}function getStackedOnPoints(o,t,r){if(!r.valueDim)return[];for(var s=t.count(),l=createFloat32Array(s*2),h=0;h<s;h++){var v=getStackedOnPoint(r,o,t,h);l[h*2]=v[0],l[h*2+1]=v[1]}return l}function turnPointsIntoStep(o,t,r,s){var l=t.getBaseAxis(),h=l.dim==="x"||l.dim==="radius"?0:1,v=[],S=0,x=[],T=[],C=[],M=[];if(s){for(S=0;S<o.length;S+=2)!isNaN(o[S])&&!isNaN(o[S+1])&&M.push(o[S],o[S+1]);o=M}for(S=0;S<o.length-2;S+=2)switch(C[0]=o[S+2],C[1]=o[S+3],T[0]=o[S],T[1]=o[S+1],v.push(T[0],T[1]),r){case"end":x[h]=C[h],x[1-h]=T[1-h],v.push(x[0],x[1]);break;case"middle":var w=(T[h]+C[h])/2,D=[];x[h]=D[h]=w,x[1-h]=T[1-h],D[1-h]=C[1-h],v.push(x[0],x[1]),v.push(D[0],D[1]);break;default:x[h]=T[h],x[1-h]=C[1-h],v.push(x[0],x[1])}return v.push(o[S++],o[S++]),v}function clipColorStops(o,t){var r=[],s=o.length,l,h;function v(C,M,w){var D=C.coord,O=(w-D)/(M.coord-D),N=lerp(O,[C.color,M.color]);return{coord:w,color:N}}for(var S=0;S<s;S++){var x=o[S],T=x.coord;if(T<0)l=x;else if(T>t){h?r.push(v(h,x,t)):l&&r.push(v(l,x,0),v(l,x,t));break}else l&&(r.push(v(l,x,0)),l=null),r.push(x),h=x}return r}function getVisualGradient(o,t,r){var s=o.getVisual("visualMeta");if(!(!s||!s.length||!o.count())&&t.type==="cartesian2d"){for(var l,h,v=s.length-1;v>=0;v--){var S=o.getDimensionInfo(s[v].dimension);if(l=S&&S.coordDim,l==="x"||l==="y"){h=s[v];break}}if(h){var x=t.getAxis(l),T=map$2(h.stops,function(V){return{coord:x.toGlobalCoord(x.dataToCoord(V.value)),color:V.color}}),C=T.length,M=h.outerColors.slice();C&&T[0].coord>T[C-1].coord&&(T.reverse(),M.reverse());var w=clipColorStops(T,l==="x"?r.getWidth():r.getHeight()),D=w.length;if(!D&&C)return T[0].coord<0?M[1]?M[1]:T[C-1].color:M[0]?M[0]:T[0].color;var O=10,N=w[0].coord-O,k=w[D-1].coord+O,F=k-N;if(F<.001)return"transparent";each$c(w,function(V){V.offset=(V.coord-N)/F}),w.push({offset:D?w[D-1].offset:.5,color:M[1]||"transparent"}),w.unshift({offset:D?w[0].offset:.5,color:M[0]||"transparent"});var B=new LinearGradient$1(0,0,0,0,w,!0);return B[l]=N,B[l+"2"]=k,B}}}function getIsIgnoreFunc(o,t,r){var s=o.get("showAllSymbol"),l=s==="auto";if(!(s&&!l)){var h=r.getAxesByScale("ordinal")[0];if(h&&!(l&&canShowAllSymbolForCategory(h,t))){var v=t.mapDimension(h.dim),S={};return each$c(h.getViewLabels(),function(x){var T=h.scale.getRawOrdinalNumber(x.tickValue);S[T]=1}),function(x){return!S.hasOwnProperty(t.get(v,x))}}}}function canShowAllSymbolForCategory(o,t){var r=o.getExtent(),s=Math.abs(r[1]-r[0])/o.scale.count();isNaN(s)&&(s=0);for(var l=t.count(),h=Math.max(1,Math.round(l/5)),v=0;v<l;v+=h)if(SymbolClz.getSymbolSize(t,v)[o.isHorizontal()?1:0]*1.5>s)return!1;return!0}function isPointNull(o,t){return isNaN(o)||isNaN(t)}function getLastIndexNotNull(o){for(var t=o.length/2;t>0&&isPointNull(o[t*2-2],o[t*2-1]);t--);return t-1}function getPointAtIndex(o,t){return[o[t*2],o[t*2+1]]}function getIndexRange(o,t,r){for(var s=o.length/2,l=r==="x"?0:1,h,v,S=0,x=-1,T=0;T<s;T++)if(v=o[T*2+l],!(isNaN(v)||isNaN(o[T*2+1-l]))){if(T===0){h=v;continue}if(h<=t&&v>=t||h>=t&&v<=t){x=T;break}S=T,h=v}return{range:[S,x],t:(t-h)/(v-h)}}function anyStateShowEndLabel(o){if(o.get(["endLabel","show"]))return!0;for(var t=0;t<SPECIAL_STATES.length;t++)if(o.get([SPECIAL_STATES[t],"endLabel","show"]))return!0;return!1}function createLineClipPath(o,t,r,s){if(isCoordinateSystemType(t,"cartesian2d")){var l=s.getModel("endLabel"),h=l.get("valueAnimation"),v=s.getData(),S={lastFrameIndex:0},x=anyStateShowEndLabel(s)?function(D,O){o._endLabelOnDuring(D,O,v,S,h,l,t)}:null,T=t.getBaseAxis().isHorizontal(),C=createGridClipPath(t,r,s,function(){var D=o._endLabel;D&&r&&S.originalX!=null&&D.attr({x:S.originalX,y:S.originalY})},x);if(!s.get("clip",!0)){var M=C.shape,w=Math.max(M.width,M.height);T?(M.y-=w,M.height+=w*2):(M.x-=w,M.width+=w*2)}return x&&x(1,C),C}else return createPolarClipPath(t,r,s)}function getEndLabelStateSpecified(o,t){var r=t.getBaseAxis(),s=r.isHorizontal(),l=r.inverse,h=s?l?"right":"left":"center",v=s?"middle":l?"top":"bottom";return{normal:{align:o.get("align")||h,verticalAlign:o.get("verticalAlign")||v}}}var LineView=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Group$3,s=new SymbolDraw$1;this.group.add(s.group),this._symbolDraw=s,this._lineGroup=r},t.prototype.render=function(r,s,l){var h=this,v=r.coordinateSystem,S=this.group,x=r.getData(),T=r.getModel("lineStyle"),C=r.getModel("areaStyle"),M=x.getLayout("points")||[],w=v.type==="polar",D=this._coordSys,O=this._symbolDraw,N=this._polyline,k=this._polygon,F=this._lineGroup,B=r.get("animation"),V=!C.isEmpty(),z=C.get("origin"),U=prepareDataCoordInfo(v,x,z),Y=V&&getStackedOnPoints(v,x,U),W=r.get("showSymbol"),X=r.get("connectNulls"),K=W&&!w&&getIsIgnoreFunc(r,x,v),J=this._data;J&&J.eachItemGraphicEl(function(Ie,Be){Ie.__temp&&(S.remove(Ie),J.setItemGraphicEl(Be,null))}),W||O.remove(),S.add(F);var q=w?!1:r.get("step"),ee;v&&v.getArea&&r.get("clip",!0)&&(ee=v.getArea(),ee.width!=null?(ee.x-=.1,ee.y-=.1,ee.width+=.2,ee.height+=.2):ee.r0&&(ee.r0-=.5,ee.r+=.5)),this._clipShapeForSymbol=ee;var te=getVisualGradient(x,v,l)||x.getVisual("style")[x.getVisual("drawType")];if(!(N&&D.type===v.type&&q===this._step))W&&O.updateData(x,{isIgnore:K,clipShape:ee,disableAnimation:!0,getSymbolPoint:function(Ie){return[M[Ie*2],M[Ie*2+1]]}}),B&&this._initSymbolLabelAnimation(x,v,ee),q&&(M=turnPointsIntoStep(M,v,q,X),Y&&(Y=turnPointsIntoStep(Y,v,q,X))),N=this._newPolyline(M),V?k=this._newPolygon(M,Y):k&&(F.remove(k),k=this._polygon=null),w||this._initOrUpdateEndLabel(r,v,convertToColorString(te)),F.setClipPath(createLineClipPath(this,v,!0,r));else{V&&!k?k=this._newPolygon(M,Y):k&&!V&&(F.remove(k),k=this._polygon=null),w||this._initOrUpdateEndLabel(r,v,convertToColorString(te));var ne=F.getClipPath();if(ne){var ae=createLineClipPath(this,v,!1,r);initProps(ne,{shape:ae.shape},r)}else F.setClipPath(createLineClipPath(this,v,!0,r));W&&O.updateData(x,{isIgnore:K,clipShape:ee,disableAnimation:!0,getSymbolPoint:function(Ie){return[M[Ie*2],M[Ie*2+1]]}}),(!isPointsSame(this._stackedOnPoints,Y)||!isPointsSame(this._points,M))&&(B?this._doUpdateAnimation(x,Y,v,l,q,z,X):(q&&(M=turnPointsIntoStep(M,v,q,X),Y&&(Y=turnPointsIntoStep(Y,v,q,X))),N.setShape({points:M}),k&&k.setShape({points:M,stackedOnPoints:Y})))}var oe=r.getModel("emphasis"),Se=oe.get("focus"),se=oe.get("blurScope"),le=oe.get("disabled");if(N.useStyle(defaults(T.getLineStyle(),{fill:"none",stroke:te,lineJoin:"bevel"})),setStatesStylesFromModel(N,r,"lineStyle"),N.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var ye=N.getState("emphasis").style;ye.lineWidth=+N.style.lineWidth+1}getECData(N).seriesIndex=r.seriesIndex,toggleHoverEmphasis(N,Se,se,le);var we=getSmooth(r.get("smooth")),Me=r.get("smoothMonotone");if(N.setShape({smooth:we,smoothMonotone:Me,connectNulls:X}),k){var Ee=x.getCalculationInfo("stackedOnSeries"),Pe=0;k.useStyle(defaults(C.getAreaStyle(),{fill:te,opacity:.7,lineJoin:"bevel",decal:x.getVisual("style").decal})),Ee&&(Pe=getSmooth(Ee.get("smooth"))),k.setShape({smooth:we,stackedOnSmooth:Pe,smoothMonotone:Me,connectNulls:X}),setStatesStylesFromModel(k,r,"areaStyle"),getECData(k).seriesIndex=r.seriesIndex,toggleHoverEmphasis(k,Se,se,le)}var $e=function(Ie){h._changePolyState(Ie)};x.eachItemGraphicEl(function(Ie){Ie&&(Ie.onHoverStateChange=$e)}),this._polyline.onHoverStateChange=$e,this._data=x,this._coordSys=v,this._stackedOnPoints=Y,this._points=M,this._step=q,this._valueOrigin=z,r.get("triggerLineEvent")&&(this.packEventData(r,N),k&&this.packEventData(r,k))},t.prototype.packEventData=function(r,s){getECData(s).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,s,l,h){var v=r.getData(),S=queryDataIndex(v,h);if(this._changePolyState("emphasis"),!(S instanceof Array)&&S!=null&&S>=0){var x=v.getLayout("points"),T=v.getItemGraphicEl(S);if(!T){var C=x[S*2],M=x[S*2+1];if(isNaN(C)||isNaN(M)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(C,M))return;var w=r.get("zlevel")||0,D=r.get("z")||0;T=new SymbolClz(v,S),T.x=C,T.y=M,T.setZ(w,D);var O=T.getSymbolPath().getTextContent();O&&(O.zlevel=w,O.z=D,O.z2=this._polyline.z2+1),T.__temp=!0,v.setItemGraphicEl(S,T),T.stopSymbolAnimation(!0),this.group.add(T)}T.highlight()}else ChartView$1.prototype.highlight.call(this,r,s,l,h)},t.prototype.downplay=function(r,s,l,h){var v=r.getData(),S=queryDataIndex(v,h);if(this._changePolyState("normal"),S!=null&&S>=0){var x=v.getItemGraphicEl(S);x&&(x.__temp?(v.setItemGraphicEl(S,null),this.group.remove(x)):x.downplay())}else ChartView$1.prototype.downplay.call(this,r,s,l,h)},t.prototype._changePolyState=function(r){var s=this._polygon;setStatesFlag(this._polyline,r),s&&setStatesFlag(s,r)},t.prototype._newPolyline=function(r){var s=this._polyline;return s&&this._lineGroup.remove(s),s=new ECPolyline({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(s),this._polyline=s,s},t.prototype._newPolygon=function(r,s){var l=this._polygon;return l&&this._lineGroup.remove(l),l=new ECPolygon({shape:{points:r,stackedOnPoints:s},segmentIgnoreThreshold:2}),this._lineGroup.add(l),this._polygon=l,l},t.prototype._initSymbolLabelAnimation=function(r,s,l){var h,v,S=s.getBaseAxis(),x=S.inverse;s.type==="cartesian2d"?(h=S.isHorizontal(),v=!1):s.type==="polar"&&(h=S.dim==="angle",v=!0);var T=r.hostModel,C=T.get("animationDuration");isFunction(C)&&(C=C(null));var M=T.get("animationDelay")||0,w=isFunction(M)?M(null):M;r.eachItemGraphicEl(function(D,O){var N=D;if(N){var k=[D.x,D.y],F=void 0,B=void 0,V=void 0;if(l)if(v){var z=l,U=s.pointToCoord(k);h?(F=z.startAngle,B=z.endAngle,V=-U[1]/180*Math.PI):(F=z.r0,B=z.r,V=U[0])}else{var Y=l;h?(F=Y.x,B=Y.x+Y.width,V=D.x):(F=Y.y+Y.height,B=Y.y,V=D.y)}var W=B===F?0:(V-F)/(B-F);x&&(W=1-W);var X=isFunction(M)?M(O):C*W+w,K=N.getSymbolPath(),J=K.getTextContent();N.attr({scaleX:0,scaleY:0}),N.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:X}),J&&J.animateFrom({style:{opacity:0}},{duration:300,delay:X}),K.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,s,l){var h=r.getModel("endLabel");if(anyStateShowEndLabel(r)){var v=r.getData(),S=this._polyline,x=v.getLayout("points");if(!x){S.removeTextContent(),this._endLabel=null;return}var T=this._endLabel;T||(T=this._endLabel=new ZRText$1({z2:200}),T.ignoreClip=!0,S.setTextContent(this._endLabel),S.disableLabelAnimation=!0);var C=getLastIndexNotNull(x);C>=0&&(setLabelStyle(S,getLabelStatesModels(r,"endLabel"),{inheritColor:l,labelFetcher:r,labelDataIndex:C,defaultText:function(M,w,D){return D!=null?getDefaultInterpolatedLabel(v,D):getDefaultLabel(v,M)},enableTextSetter:!0},getEndLabelStateSpecified(h,s)),S.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,s,l,h,v,S,x){var T=this._endLabel,C=this._polyline;if(T){r<1&&h.originalX==null&&(h.originalX=T.x,h.originalY=T.y);var M=l.getLayout("points"),w=l.hostModel,D=w.get("connectNulls"),O=S.get("precision"),N=S.get("distance")||0,k=x.getBaseAxis(),F=k.isHorizontal(),B=k.inverse,V=s.shape,z=B?F?V.x:V.y+V.height:F?V.x+V.width:V.y,U=(F?N:0)*(B?-1:1),Y=(F?0:-N)*(B?-1:1),W=F?"x":"y",X=getIndexRange(M,z,W),K=X.range,J=K[1]-K[0],q=void 0;if(J>=1){if(J>1&&!D){var ee=getPointAtIndex(M,K[0]);T.attr({x:ee[0]+U,y:ee[1]+Y}),v&&(q=w.getRawValue(K[0]))}else{var ee=C.getPointOn(z,W);ee&&T.attr({x:ee[0]+U,y:ee[1]+Y});var te=w.getRawValue(K[0]),ne=w.getRawValue(K[1]);v&&(q=interpolateRawValues(l,O,te,ne,X.t))}h.lastFrameIndex=K[0]}else{var ae=r===1||h.lastFrameIndex>0?K[0]:0,ee=getPointAtIndex(M,ae);v&&(q=w.getRawValue(ae)),T.attr({x:ee[0]+U,y:ee[1]+Y})}v&&labelInner(T).setLabelText(q)}},t.prototype._doUpdateAnimation=function(r,s,l,h,v,S,x){var T=this._polyline,C=this._polygon,M=r.hostModel,w=lineAnimationDiff(this._data,r,this._stackedOnPoints,s,this._coordSys,l,this._valueOrigin),D=w.current,O=w.stackedOnCurrent,N=w.next,k=w.stackedOnNext;if(v&&(D=turnPointsIntoStep(w.current,l,v,x),O=turnPointsIntoStep(w.stackedOnCurrent,l,v,x),N=turnPointsIntoStep(w.next,l,v,x),k=turnPointsIntoStep(w.stackedOnNext,l,v,x)),getBoundingDiff(D,N)>3e3||C&&getBoundingDiff(O,k)>3e3){T.stopAnimation(),T.setShape({points:N}),C&&(C.stopAnimation(),C.setShape({points:N,stackedOnPoints:k}));return}T.shape.__points=w.current,T.shape.points=D;var F={shape:{points:N}};w.current!==D&&(F.shape.__points=w.next),T.stopAnimation(),updateProps$1(T,F,M),C&&(C.setShape({points:D,stackedOnPoints:O}),C.stopAnimation(),updateProps$1(C,{shape:{stackedOnPoints:k}},M),T.shape.points!==C.shape.points&&(C.shape.points=T.shape.points));for(var B=[],V=w.status,z=0;z<V.length;z++){var U=V[z].cmd;if(U==="="){var Y=r.getItemGraphicEl(V[z].idx1);Y&&B.push({el:Y,ptIdx:z})}}T.animators&&T.animators.length&&T.animators[0].during(function(){C&&C.dirtyShape();for(var W=T.shape.__points,X=0;X<B.length;X++){var K=B[X].el,J=B[X].ptIdx*2;K.x=W[J],K.y=W[J+1],K.markRedraw()}})},t.prototype.remove=function(r){var s=this.group,l=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),l&&l.eachItemGraphicEl(function(h,v){h.__temp&&(s.remove(h),l.setItemGraphicEl(v,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ChartView$1);const LineView$1=LineView;function pointsLayout(o,t){return{seriesType:o,plan:createRenderPlanner(),reset:function(r){var s=r.getData(),l=r.coordinateSystem,h=r.pipelineContext,v=t||h.large;if(l){var S=map$2(l.dimensions,function(D){return s.mapDimension(D)}).slice(0,2),x=S.length,T=s.getCalculationInfo("stackResultDimension");isDimensionStacked(s,S[0])&&(S[0]=T),isDimensionStacked(s,S[1])&&(S[1]=T);var C=s.getStore(),M=s.getDimensionIndex(S[0]),w=s.getDimensionIndex(S[1]);return x&&{progress:function(D,O){for(var N=D.end-D.start,k=v&&createFloat32Array(N*x),F=[],B=[],V=D.start,z=0;V<D.end;V++){var U=void 0;if(x===1){var Y=C.get(M,V);U=l.dataToPoint(Y,null,B)}else F[0]=C.get(M,V),F[1]=C.get(w,V),U=l.dataToPoint(F,null,B);v?(k[z++]=U[0],k[z++]=U[1]):O.setItemLayout(V,U.slice())}v&&O.setLayout("points",k)}}}}}}var samplers={average:function(o){for(var t=0,r=0,s=0;s<o.length;s++)isNaN(o[s])||(t+=o[s],r++);return r===0?NaN:t/r},sum:function(o){for(var t=0,r=0;r<o.length;r++)t+=o[r]||0;return t},max:function(o){for(var t=-1/0,r=0;r<o.length;r++)o[r]>t&&(t=o[r]);return isFinite(t)?t:NaN},min:function(o){for(var t=1/0,r=0;r<o.length;r++)o[r]<t&&(t=o[r]);return isFinite(t)?t:NaN},nearest:function(o){return o[0]}},indexSampler=function(o){return Math.round(o.length/2)};function dataSample(o){return{seriesType:o,reset:function(t,r,s){var l=t.getData(),h=t.get("sampling"),v=t.coordinateSystem,S=l.count();if(S>10&&v.type==="cartesian2d"&&h){var x=v.getBaseAxis(),T=v.getOtherAxis(x),C=x.getExtent(),M=s.getDevicePixelRatio(),w=Math.abs(C[1]-C[0])*(M||1),D=Math.round(S/w);if(isFinite(D)&&D>1){h==="lttb"&&t.setData(l.lttbDownSample(l.mapDimension(T.dim),1/D));var O=void 0;isString(h)?O=samplers[h]:isFunction(h)&&(O=h),O&&t.setData(l.downSample(l.mapDimension(T.dim),1/D,O,indexSampler))}}}}}function install$j(o){o.registerChartView(LineView$1),o.registerSeriesModel(LineSeries),o.registerLayout(pointsLayout("line",!0)),o.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),s=t.getModel("lineStyle").getLineStyle();s&&!s.stroke&&(s.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",s)}}),o.registerProcessor(o.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,s){return createSeriesData(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,s,l){var h=this.coordinateSystem;if(h&&h.clampData){var v=h.dataToPoint(h.clampData(r));if(l)each$c(h.getAxes(),function(M,w){if(M.type==="category"){var D=M.getTicksCoords(),O=h.clampData(r)[w];s&&(s[w]==="x1"||s[w]==="y1")&&(O+=1),O>D.length-1&&(O=D.length-1),O<0&&(O=0),D[O]&&(v[w]=M.toGlobalCoord(D[O].coord))}});else{var S=this.getData(),x=S.getLayout("offset"),T=S.getLayout("size"),C=h.getBaseAxis().isHorizontal()?0:1;v[C]+=x+T/2}return v}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(SeriesModel$1);SeriesModel$1.registerClass(BaseBarSeriesModel);const BaseBarSeriesModel$1=BaseBarSeriesModel;var BarSeriesModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return createSeriesData(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),s=this.get("largeThreshold");return s>r&&(r=s),r},t.prototype.brushSelector=function(r,s,l){return l.rect(s.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=inheritDefaultOption(BaseBarSeriesModel$1.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(BaseBarSeriesModel$1);const BarSeries=BarSeriesModel;var SausageShape=function(){function o(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return o}(),SausagePath=function(o){__extends(t,o);function t(r){var s=o.call(this,r)||this;return s.type="sausage",s}return t.prototype.getDefaultShape=function(){return new SausageShape},t.prototype.buildPath=function(r,s){var l=s.cx,h=s.cy,v=Math.max(s.r0||0,0),S=Math.max(s.r,0),x=(S-v)*.5,T=v+x,C=s.startAngle,M=s.endAngle,w=s.clockwise,D=Math.PI*2,O=w?M-C<D:C-M<D;O||(C=M-(w?D:-D));var N=Math.cos(C),k=Math.sin(C),F=Math.cos(M),B=Math.sin(M);O?(r.moveTo(N*v+l,k*v+h),r.arc(N*T+l,k*T+h,x,-Math.PI+C,C,!w)):r.moveTo(N*S+l,k*S+h),r.arc(l,h,S,C,M,!w),r.arc(F*T+l,B*T+h,x,M-Math.PI*2,M-Math.PI,!w),v!==0&&r.arc(l,h,v,M,C,w)},t}(Path$1);const Sausage=SausagePath;function createSectorCalculateTextPosition(o,t){t=t||{};var r=t.isRoundCap;return function(s,l,h){var v=l.position;if(!v||v instanceof Array)return calculateTextPosition(s,l,h);var S=o(v),x=l.distance!=null?l.distance:5,T=this.shape,C=T.cx,M=T.cy,w=T.r,D=T.r0,O=(w+D)/2,N=T.startAngle,k=T.endAngle,F=(N+k)/2,B=r?Math.abs(w-D)/2:0,V=Math.cos,z=Math.sin,U=C+w*V(N),Y=M+w*z(N),W="left",X="top";switch(S){case"startArc":U=C+(D-x)*V(F),Y=M+(D-x)*z(F),W="center",X="top";break;case"insideStartArc":U=C+(D+x)*V(F),Y=M+(D+x)*z(F),W="center",X="bottom";break;case"startAngle":U=C+O*V(N)+adjustAngleDistanceX(N,x+B,!1),Y=M+O*z(N)+adjustAngleDistanceY(N,x+B,!1),W="right",X="middle";break;case"insideStartAngle":U=C+O*V(N)+adjustAngleDistanceX(N,-x+B,!1),Y=M+O*z(N)+adjustAngleDistanceY(N,-x+B,!1),W="left",X="middle";break;case"middle":U=C+O*V(F),Y=M+O*z(F),W="center",X="middle";break;case"endArc":U=C+(w+x)*V(F),Y=M+(w+x)*z(F),W="center",X="bottom";break;case"insideEndArc":U=C+(w-x)*V(F),Y=M+(w-x)*z(F),W="center",X="top";break;case"endAngle":U=C+O*V(k)+adjustAngleDistanceX(k,x+B,!0),Y=M+O*z(k)+adjustAngleDistanceY(k,x+B,!0),W="left",X="middle";break;case"insideEndAngle":U=C+O*V(k)+adjustAngleDistanceX(k,-x+B,!0),Y=M+O*z(k)+adjustAngleDistanceY(k,-x+B,!0),W="right",X="middle";break;default:return calculateTextPosition(s,l,h)}return s=s||{},s.x=U,s.y=Y,s.align=W,s.verticalAlign=X,s}}function setSectorTextRotation(o,t,r,s){if(isNumber(s)){o.setTextConfig({rotation:s});return}else if(isArray$1(t)){o.setTextConfig({rotation:0});return}var l=o.shape,h=l.clockwise?l.startAngle:l.endAngle,v=l.clockwise?l.endAngle:l.startAngle,S=(h+v)/2,x,T=r(t);switch(T){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":x=S;break;case"startAngle":case"insideStartAngle":x=h;break;case"endAngle":case"insideEndAngle":x=v;break;default:o.setTextConfig({rotation:0});return}var C=Math.PI*1.5-x;T==="middle"&&C>Math.PI/2&&C<Math.PI*1.5&&(C-=Math.PI),o.setTextConfig({rotation:C})}function adjustAngleDistanceX(o,t,r){return t*Math.sin(o)*(r?-1:1)}function adjustAngleDistanceY(o,t,r){return t*Math.cos(o)*(r?1:-1)}var mathMax$2=Math.max,mathMin$2=Math.min;function getClipArea(o,t){var r=o.getArea&&o.getArea();if(isCoordinateSystemType(o,"cartesian2d")){var s=o.getBaseAxis();if(s.type!=="category"||!s.onBand){var l=t.getLayout("bandWidth");s.isHorizontal()?(r.x-=l,r.width+=l*2):(r.y-=l,r.height+=l*2)}}return r}var BarView=function(o){__extends(t,o);function t(){var r=o.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,s,l,h){this._model=r,this._removeOnRenderedListener(l),this._updateDrawMode(r);var v=r.get("coordinateSystem");(v==="cartesian2d"||v==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,s,l):this._renderNormal(r,s,l,h))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,s){this._progressiveEls=[],this._incrementalRenderLarge(r,s)},t.prototype.eachRendered=function(r){traverseElements(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;(this._isLargeDraw==null||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},t.prototype._renderNormal=function(r,s,l,h){var v=this.group,S=r.getData(),x=this._data,T=r.coordinateSystem,C=T.getBaseAxis(),M;T.type==="cartesian2d"?M=C.isHorizontal():T.type==="polar"&&(M=C.dim==="angle");var w=r.isAnimationEnabled()?r:null,D=shouldRealtimeSort(r,T);D&&this._enableRealtimeSort(D,S,l);var O=r.get("clip",!0)||D,N=getClipArea(T,S);v.removeClipPath();var k=r.get("roundCap",!0),F=r.get("showBackground",!0),B=r.getModel("backgroundStyle"),V=B.get("borderRadius")||0,z=[],U=this._backgroundEls,Y=h&&h.isInitSort,W=h&&h.type==="changeAxisOrder";function X(q){var ee=getLayout[T.type](S,q),te=createBackgroundEl(T,M,ee);return te.useStyle(B.getItemStyle()),T.type==="cartesian2d"&&te.setShape("r",V),z[q]=te,te}S.diff(x).add(function(q){var ee=S.getItemModel(q),te=getLayout[T.type](S,q,ee);if(F&&X(q),!(!S.hasValue(q)||!isValidLayout[T.type](te))){var ne=!1;O&&(ne=clip[T.type](N,te));var ae=elementCreator[T.type](r,S,q,te,M,w,C.model,!1,k);D&&(ae.forceLabelAnimation=!0),updateStyle(ae,S,q,ee,te,r,M,T.type==="polar"),Y?ae.attr({shape:te}):D?updateRealtimeAnimation(D,w,ae,te,q,M,!1,!1):initProps(ae,{shape:te},r,q),S.setItemGraphicEl(q,ae),v.add(ae),ae.ignore=ne}}).update(function(q,ee){var te=S.getItemModel(q),ne=getLayout[T.type](S,q,te);if(F){var ae=void 0;U.length===0?ae=X(ee):(ae=U[ee],ae.useStyle(B.getItemStyle()),T.type==="cartesian2d"&&ae.setShape("r",V),z[q]=ae);var oe=getLayout[T.type](S,q),Se=createBackgroundShape(M,oe,T);updateProps$1(ae,{shape:Se},w,q)}var se=x.getItemGraphicEl(ee);if(!S.hasValue(q)||!isValidLayout[T.type](ne)){v.remove(se);return}var le=!1;if(O&&(le=clip[T.type](N,ne),le&&v.remove(se)),se?saveOldStyle(se):se=elementCreator[T.type](r,S,q,ne,M,w,C.model,!!se,k),D&&(se.forceLabelAnimation=!0),W){var ye=se.getTextContent();if(ye){var we=labelInner(ye);we.prevValue!=null&&(we.prevValue=we.value)}}else updateStyle(se,S,q,te,ne,r,M,T.type==="polar");Y?se.attr({shape:ne}):D?updateRealtimeAnimation(D,w,se,ne,q,M,!0,W):updateProps$1(se,{shape:ne},r,q,null),S.setItemGraphicEl(q,se),se.ignore=le,v.add(se)}).remove(function(q){var ee=x.getItemGraphicEl(q);ee&&removeElementWithFadeOut(ee,r,q)}).execute();var K=this._backgroundGroup||(this._backgroundGroup=new Group$3);K.removeAll();for(var J=0;J<z.length;++J)K.add(z[J]);v.add(K),this._backgroundEls=z,this._data=S},t.prototype._renderLarge=function(r,s,l){this._clear(),createLarge(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,s){this._removeBackground(),createLarge(s,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var s=r.get("clip",!0)&&createClipPath(r.coordinateSystem,!1,r),l=this.group;s?l.setClipPath(s):l.removeClipPath()},t.prototype._enableRealtimeSort=function(r,s,l){var h=this;if(s.count()){var v=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(s,r,l),this._isFirstFrame=!1;else{var S=function(x){var T=s.getItemGraphicEl(x),C=T&&T.shape;return C&&Math.abs(v.isHorizontal()?C.height:C.width)||0};this._onRendered=function(){h._updateSortWithinSameData(s,S,v,l)},l.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,s,l){var h=[];return r.each(r.mapDimension(s.dim),function(v,S){var x=l(S);x=x??NaN,h.push({dataIndex:S,mappedValue:x,ordinalNumber:v})}),h.sort(function(v,S){return S.mappedValue-v.mappedValue}),{ordinalNumbers:map$2(h,function(v){return v.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,s,l){for(var h=l.scale,v=r.mapDimension(l.dim),S=Number.MAX_VALUE,x=0,T=h.getOrdinalMeta().categories.length;x<T;++x){var C=r.rawIndexOf(v,h.getRawOrdinalNumber(x)),M=C<0?Number.MIN_VALUE:s(r.indexOfRawIndex(C));if(M>S)return!0;S=M}return!1},t.prototype._isOrderDifferentInView=function(r,s){for(var l=s.scale,h=l.getExtent(),v=Math.max(0,h[0]),S=Math.min(h[1],l.getOrdinalMeta().categories.length-1);v<=S;++v)if(r.ordinalNumbers[v]!==l.getRawOrdinalNumber(v))return!0},t.prototype._updateSortWithinSameData=function(r,s,l,h){if(this._isOrderChangedWithinSameData(r,s,l)){var v=this._dataSort(r,l,s);this._isOrderDifferentInView(v,l)&&(this._removeOnRenderedListener(h),h.dispatchAction({type:"changeAxisOrder",componentType:l.dim+"Axis",axisId:l.index,sortInfo:v}))}},t.prototype._dispatchInitSort=function(r,s,l){var h=s.baseAxis,v=this._dataSort(r,h,function(S){return r.get(r.mapDimension(s.otherAxis.dim),S)});l.dispatchAction({type:"changeAxisOrder",componentType:h.dim+"Axis",isInitSort:!0,axisId:h.index,sortInfo:v})},t.prototype.remove=function(r,s){this._clear(this._model),this._removeOnRenderedListener(s)},t.prototype.dispose=function(r,s){this._removeOnRenderedListener(s)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var s=this.group,l=this._data;r&&r.isAnimationEnabled()&&l&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],l.eachItemGraphicEl(function(h){removeElementWithFadeOut(h,r,getECData(h).dataIndex)})):s.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ChartView$1),clip={cartesian2d:function(o,t){var r=t.width<0?-1:1,s=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),s<0&&(t.y+=t.height,t.height=-t.height);var l=o.x+o.width,h=o.y+o.height,v=mathMax$2(t.x,o.x),S=mathMin$2(t.x+t.width,l),x=mathMax$2(t.y,o.y),T=mathMin$2(t.y+t.height,h),C=S<v,M=T<x;return t.x=C&&v>l?S:v,t.y=M&&x>h?T:x,t.width=C?0:S-v,t.height=M?0:T-x,r<0&&(t.x+=t.width,t.width=-t.width),s<0&&(t.y+=t.height,t.height=-t.height),C||M},polar:function(o,t){var r=t.r0<=t.r?1:-1;if(r<0){var s=t.r;t.r=t.r0,t.r0=s}var l=mathMin$2(t.r,o.r),h=mathMax$2(t.r0,o.r0);t.r=l,t.r0=h;var v=l-h<0;if(r<0){var s=t.r;t.r=t.r0,t.r0=s}return v}},elementCreator={cartesian2d:function(o,t,r,s,l,h,v,S,x){var T=new Rect$2({shape:extend({},s),z2:1});if(T.__dataIndex=r,T.name="item",h){var C=T.shape,M=l?"height":"width";C[M]=0}return T},polar:function(o,t,r,s,l,h,v,S,x){var T=!l&&x?Sausage:Sector$1,C=new T({shape:s,z2:1});C.name="item";var M=createPolarPositionMapping(l);if(C.calculateTextPosition=createSectorCalculateTextPosition(M,{isRoundCap:T===Sausage}),h){var w=C.shape,D=l?"r":"endAngle",O={};w[D]=l?0:s.startAngle,O[D]=s[D],(S?updateProps$1:initProps)(C,{shape:O},h)}return C}};function shouldRealtimeSort(o,t){var r=o.get("realtimeSort",!0),s=t.getBaseAxis();if(r&&s.type==="category"&&t.type==="cartesian2d")return{baseAxis:s,otherAxis:t.getOtherAxis(s)}}function updateRealtimeAnimation(o,t,r,s,l,h,v,S){var x,T;h?(T={x:s.x,width:s.width},x={y:s.y,height:s.height}):(T={y:s.y,height:s.height},x={x:s.x,width:s.width}),S||(v?updateProps$1:initProps)(r,{shape:x},t,l,null);var C=t?o.baseAxis.model:null;(v?updateProps$1:initProps)(r,{shape:T},C,l)}function checkPropertiesNotValid(o,t){for(var r=0;r<t.length;r++)if(!isFinite(o[t[r]]))return!0;return!1}var rectPropties=["x","y","width","height"],polarPropties=["cx","cy","r","startAngle","endAngle"],isValidLayout={cartesian2d:function(o){return!checkPropertiesNotValid(o,rectPropties)},polar:function(o){return!checkPropertiesNotValid(o,polarPropties)}},getLayout={cartesian2d:function(o,t,r){var s=o.getItemLayout(t),l=r?getLineWidth(r,s):0,h=s.width>0?1:-1,v=s.height>0?1:-1;return{x:s.x+h*l/2,y:s.y+v*l/2,width:s.width-h*l,height:s.height-v*l}},polar:function(o,t,r){var s=o.getItemLayout(t);return{cx:s.cx,cy:s.cy,r0:s.r0,r:s.r,startAngle:s.startAngle,endAngle:s.endAngle,clockwise:s.clockwise}}};function isZeroOnPolar(o){return o.startAngle!=null&&o.endAngle!=null&&o.startAngle===o.endAngle}function createPolarPositionMapping(o){return function(t){var r=t?"Arc":"Angle";return function(s){switch(s){case"start":case"insideStart":case"end":case"insideEnd":return s+r;default:return s}}}(o)}function updateStyle(o,t,r,s,l,h,v,S){var x=t.getItemVisual(r,"style");S||o.setShape("r",s.get(["itemStyle","borderRadius"])||0),o.useStyle(x);var T=s.getShallow("cursor");T&&o.attr("cursor",T);var C=S?v?l.r>=l.r0?"endArc":"startArc":l.endAngle>=l.startAngle?"endAngle":"startAngle":v?l.height>=0?"bottom":"top":l.width>=0?"right":"left",M=getLabelStatesModels(s);setLabelStyle(o,M,{labelFetcher:h,labelDataIndex:r,defaultText:getDefaultLabel(h.getData(),r),inheritColor:x.fill,defaultOpacity:x.opacity,defaultOutsidePosition:C});var w=o.getTextContent();if(S&&w){var D=s.get(["label","position"]);o.textConfig.inside=D==="middle"?!0:null,setSectorTextRotation(o,D==="outside"?C:D,createPolarPositionMapping(v),s.get(["label","rotate"]))}setLabelValueAnimation(w,M,h.getRawValue(r),function(N){return getDefaultInterpolatedLabel(t,N)});var O=s.getModel(["emphasis"]);toggleHoverEmphasis(o,O.get("focus"),O.get("blurScope"),O.get("disabled")),setStatesStylesFromModel(o,s),isZeroOnPolar(l)&&(o.style.fill="none",o.style.stroke="none",each$c(o.states,function(N){N.style&&(N.style.fill=N.style.stroke="none")}))}function getLineWidth(o,t){var r=o.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var s=o.get(["itemStyle","borderWidth"])||0,l=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),h=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(s,l,h)}var LagePathShape=function(){function o(){}return o}(),LargePath=function(o){__extends(t,o);function t(r){var s=o.call(this,r)||this;return s.type="largeBar",s}return t.prototype.getDefaultShape=function(){return new LagePathShape},t.prototype.buildPath=function(r,s){for(var l=s.points,h=this.baseDimIdx,v=1-this.baseDimIdx,S=[],x=[],T=this.barWidth,C=0;C<l.length;C+=3)x[h]=T,x[v]=l[C+2],S[h]=l[C+h],S[v]=l[C+v],r.rect(S[0],S[1],x[0],x[1])},t}(Path$1);function createLarge(o,t,r,s){var l=o.getData(),h=l.getLayout("valueAxisHorizontal")?1:0,v=l.getLayout("largeDataIndices"),S=l.getLayout("size"),x=o.getModel("backgroundStyle"),T=l.getLayout("largeBackgroundPoints");if(T){var C=new LargePath({shape:{points:T},incremental:!!s,silent:!0,z2:0});C.baseDimIdx=h,C.largeDataIndices=v,C.barWidth=S,C.useStyle(x.getItemStyle()),t.add(C),r&&r.push(C)}var M=new LargePath({shape:{points:l.getLayout("largePoints")},incremental:!!s,ignoreCoarsePointer:!0,z2:1});M.baseDimIdx=h,M.largeDataIndices=v,M.barWidth=S,t.add(M),M.useStyle(l.getVisual("style")),getECData(M).seriesIndex=o.seriesIndex,o.get("silent")||(M.on("mousedown",largePathUpdateDataIndex),M.on("mousemove",largePathUpdateDataIndex)),r&&r.push(M)}var largePathUpdateDataIndex=throttle(function(o){var t=this,r=largePathFindDataIndex(t,o.offsetX,o.offsetY);getECData(t).dataIndex=r>=0?r:null},30,!1);function largePathFindDataIndex(o,t,r){for(var s=o.baseDimIdx,l=1-s,h=o.shape.points,v=o.largeDataIndices,S=[],x=[],T=o.barWidth,C=0,M=h.length/3;C<M;C++){var w=C*3;if(x[s]=T,x[l]=h[w+2],S[s]=h[w+s],S[l]=h[w+l],x[l]<0&&(S[l]+=x[l],x[l]=-x[l]),t>=S[0]&&t<=S[0]+x[0]&&r>=S[1]&&r<=S[1]+x[1])return v[C]}return-1}function createBackgroundShape(o,t,r){if(isCoordinateSystemType(r,"cartesian2d")){var s=t,l=r.getArea();return{x:o?s.x:l.x,y:o?l.y:s.y,width:o?s.width:l.width,height:o?l.height:s.height}}else{var l=r.getArea(),h=t;return{cx:l.cx,cy:l.cy,r0:o?l.r0:h.r0,r:o?l.r:h.r,startAngle:o?h.startAngle:0,endAngle:o?h.endAngle:Math.PI*2}}}function createBackgroundEl(o,t,r){var s=o.type==="polar"?Sector$1:Rect$2;return new s({shape:createBackgroundShape(t,r,o),silent:!0,z2:0})}const BarView$1=BarView;function install$i(o){o.registerChartView(BarView$1),o.registerSeriesModel(BarSeries),o.registerLayout(o.PRIORITY.VISUAL.LAYOUT,curry$1(layout$2,"bar")),o.registerLayout(o.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,createProgressiveLayout("bar")),o.registerProcessor(o.PRIORITY.PROCESSOR.STATISTIC,dataSample("bar")),o.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var s=t.componentType||"series";r.eachComponent({mainType:s,query:t},function(l){t.sortInfo&&l.axis.setCategorySortInfo(t.sortInfo)})})}var PI2=Math.PI*2,RADIAN$1=Math.PI/180;function getViewRect(o,t){return getLayoutRect(o.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function getBasicPieLayout(o,t){var r=getViewRect(o,t),s=o.get("center"),l=o.get("radius");isArray$1(l)||(l=[0,l]);var h=parsePercent(r.width,t.getWidth()),v=parsePercent(r.height,t.getHeight()),S=Math.min(h,v),x=parsePercent(l[0],S/2),T=parsePercent(l[1],S/2),C,M,w=o.coordinateSystem;if(w){var D=w.dataToPoint(s);C=D[0]||0,M=D[1]||0}else isArray$1(s)||(s=[s,s]),C=parsePercent(s[0],h)+r.x,M=parsePercent(s[1],v)+r.y;return{cx:C,cy:M,r0:x,r:T}}function pieLayout(o,t,r){t.eachSeriesByType(o,function(s){var l=s.getData(),h=l.mapDimension("value"),v=getViewRect(s,r),S=getBasicPieLayout(s,r),x=S.cx,T=S.cy,C=S.r,M=S.r0,w=-s.get("startAngle")*RADIAN$1,D=s.get("minAngle")*RADIAN$1,O=0;l.each(h,function(J){!isNaN(J)&&O++});var N=l.getSum(h),k=Math.PI/(N||O)*2,F=s.get("clockwise"),B=s.get("roseType"),V=s.get("stillShowZeroSum"),z=l.getDataExtent(h);z[0]=0;var U=PI2,Y=0,W=w,X=F?1:-1;if(l.setLayout({viewRect:v,r:C}),l.each(h,function(J,q){var ee;if(isNaN(J)){l.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:F,cx:x,cy:T,r0:M,r:B?NaN:C});return}B!=="area"?ee=N===0&&V?k:J*k:ee=PI2/O,ee<D?(ee=D,U-=D):Y+=J;var te=W+X*ee;l.setItemLayout(q,{angle:ee,startAngle:W,endAngle:te,clockwise:F,cx:x,cy:T,r0:M,r:B?linearMap$2(J,z,[M,C]):C}),W=te}),U<PI2&&O)if(U<=.001){var K=PI2/O;l.each(h,function(J,q){if(!isNaN(J)){var ee=l.getItemLayout(q);ee.angle=K,ee.startAngle=w+X*q*K,ee.endAngle=w+X*(q+1)*K}})}else k=U/Y,W=w,l.each(h,function(J,q){if(!isNaN(J)){var ee=l.getItemLayout(q),te=ee.angle===D?D:J*k;ee.startAngle=W,ee.endAngle=W+X*te,W+=X*te}})})}function dataFilter(o){return{seriesType:o,reset:function(t,r){var s=r.findComponents({mainType:"legend"});if(!(!s||!s.length)){var l=t.getData();l.filterSelf(function(h){for(var v=l.getName(h),S=0;S<s.length;S++)if(!s[S].isSelected(v))return!1;return!0})}}}}var RADIAN=Math.PI/180;function adjustSingleSide(o,t,r,s,l,h,v,S,x,T){if(o.length<2)return;function C(N){for(var k=N.rB,F=k*k,B=0;B<N.list.length;B++){var V=N.list[B],z=Math.abs(V.label.y-r),U=s+V.len,Y=U*U,W=Math.sqrt((1-Math.abs(z*z/F))*Y),X=t+(W+V.len2)*l,K=X-V.label.x,J=V.targetTextWidth-K*l;constrainTextWidth(V,J,!0),V.label.x=X}}function M(N){for(var k={list:[],maxY:0},F={list:[],maxY:0},B=0;B<N.length;B++)if(N[B].labelAlignTo==="none"){var V=N[B],z=V.label.y>r?F:k,U=Math.abs(V.label.y-r);if(U>=z.maxY){var Y=V.label.x-t-V.len2*l,W=s+V.len,X=Math.abs(Y)<W?Math.sqrt(U*U/(1-Y*Y/W/W)):W;z.rB=X,z.maxY=U}z.list.push(V)}C(k),C(F)}for(var w=o.length,D=0;D<w;D++)if(o[D].position==="outer"&&o[D].labelAlignTo==="labelLine"){var O=o[D].label.x-T;o[D].linePoints[1][0]+=O,o[D].label.x=T}shiftLayoutOnY(o,x,x+v)&&M(o)}function avoidOverlap(o,t,r,s,l,h,v,S){for(var x=[],T=[],C=Number.MAX_VALUE,M=-Number.MAX_VALUE,w=0;w<o.length;w++){var D=o[w].label;isPositionCenter(o[w])||(D.x<t?(C=Math.min(C,D.x),x.push(o[w])):(M=Math.max(M,D.x),T.push(o[w])))}for(var w=0;w<o.length;w++){var O=o[w];if(!isPositionCenter(O)&&O.linePoints){if(O.labelStyleWidth!=null)continue;var D=O.label,N=O.linePoints,k=void 0;O.labelAlignTo==="edge"?D.x<t?k=N[2][0]-O.labelDistance-v-O.edgeDistance:k=v+l-O.edgeDistance-N[2][0]-O.labelDistance:O.labelAlignTo==="labelLine"?D.x<t?k=C-v-O.bleedMargin:k=v+l-M-O.bleedMargin:D.x<t?k=D.x-v-O.bleedMargin:k=v+l-D.x-O.bleedMargin,O.targetTextWidth=k,constrainTextWidth(O,k)}}adjustSingleSide(T,t,r,s,1,l,h,v,S,M),adjustSingleSide(x,t,r,s,-1,l,h,v,S,C);for(var w=0;w<o.length;w++){var O=o[w];if(!isPositionCenter(O)&&O.linePoints){var D=O.label,N=O.linePoints,F=O.labelAlignTo==="edge",B=D.style.padding,V=B?B[1]+B[3]:0,z=D.style.backgroundColor?0:V,U=O.rect.width+z,Y=N[1][0]-N[2][0];F?D.x<t?N[2][0]=v+O.edgeDistance+U+O.labelDistance:N[2][0]=v+l-O.edgeDistance-U-O.labelDistance:(D.x<t?N[2][0]=D.x+O.labelDistance:N[2][0]=D.x-O.labelDistance,N[1][0]=N[2][0]+Y),N[1][1]=N[2][1]=D.y}}}function constrainTextWidth(o,t,r){if(r===void 0&&(r=!1),o.labelStyleWidth==null){var s=o.label,l=s.style,h=o.rect,v=l.backgroundColor,S=l.padding,x=S?S[1]+S[3]:0,T=l.overflow,C=h.width+(v?0:x);if(t<C||r){var M=h.height;if(T&&T.match("break")){s.setStyle("backgroundColor",null),s.setStyle("width",t-x);var w=s.getBoundingRect();s.setStyle("width",Math.ceil(w.width)),s.setStyle("backgroundColor",v)}else{var D=t-x,O=t<C?D:r?D>o.unconstrainedWidth?null:D:null;s.setStyle("width",O)}var N=s.getBoundingRect();h.width=N.width;var k=(s.style.margin||0)+2.1;h.height=N.height+k,h.y-=(h.height-M)/2}}}function isPositionCenter(o){return o.position==="center"}function pieLabelLayout(o){var t=o.getData(),r=[],s,l,h=!1,v=(o.get("minShowLabelAngle")||0)*RADIAN,S=t.getLayout("viewRect"),x=t.getLayout("r"),T=S.width,C=S.x,M=S.y,w=S.height;function D(Y){Y.ignore=!0}function O(Y){if(!Y.ignore)return!0;for(var W in Y.states)if(Y.states[W].ignore===!1)return!0;return!1}t.each(function(Y){var W=t.getItemGraphicEl(Y),X=W.shape,K=W.getTextContent(),J=W.getTextGuideLine(),q=t.getItemModel(Y),ee=q.getModel("label"),te=ee.get("position")||q.get(["emphasis","label","position"]),ne=ee.get("distanceToLabelLine"),ae=ee.get("alignTo"),oe=parsePercent(ee.get("edgeDistance"),T),Se=ee.get("bleedMargin"),se=q.getModel("labelLine"),le=se.get("length");le=parsePercent(le,T);var ye=se.get("length2");if(ye=parsePercent(ye,T),Math.abs(X.endAngle-X.startAngle)<v){each$c(K.states,D),K.ignore=!0,J&&(each$c(J.states,D),J.ignore=!0);return}if(O(K)){var we=(X.startAngle+X.endAngle)/2,Me=Math.cos(we),Ee=Math.sin(we),Pe,$e,Ie,Be;s=X.cx,l=X.cy;var Ne=te==="inside"||te==="inner";if(te==="center")Pe=X.cx,$e=X.cy,Be="center";else{var he=(Ne?(X.r+X.r0)/2*Me:X.r*Me)+s,Te=(Ne?(X.r+X.r0)/2*Ee:X.r*Ee)+l;if(Pe=he+Me*3,$e=Te+Ee*3,!Ne){var me=he+Me*(le+x-X.r),Ce=Te+Ee*(le+x-X.r),Fe=me+(Me<0?-1:1)*ye,Oe=Ce;ae==="edge"?Pe=Me<0?C+oe:C+T-oe:Pe=Fe+(Me<0?-ne:ne),$e=Oe,Ie=[[he,Te],[me,Ce],[Fe,Oe]]}Be=Ne?"center":ae==="edge"?Me>0?"right":"left":Me>0?"left":"right"}var Ve=Math.PI,Le=0,De=ee.get("rotate");if(isNumber(De))Le=De*(Ve/180);else if(te==="center")Le=0;else if(De==="radial"||De===!0){var ze=Me<0?-we+Ve:-we;Le=ze}else if(De==="tangential"&&te!=="outside"&&te!=="outer"){var Ge=Math.atan2(Me,Ee);Ge<0&&(Ge=Ve*2+Ge);var Ue=Ee>0;Ue&&(Ge=Ve+Ge),Le=Ge-Ve}if(h=!!Le,K.x=Pe,K.y=$e,K.rotation=Le,K.setStyle({verticalAlign:"middle"}),Ne){K.setStyle({align:Be});var Xe=K.states.select;Xe&&(Xe.x+=K.x,Xe.y+=K.y)}else{var He=K.getBoundingRect().clone();He.applyTransform(K.getComputedTransform());var We=(K.style.margin||0)+2.1;He.y-=We/2,He.height+=We,r.push({label:K,labelLine:J,position:te,len:le,len2:ye,minTurnAngle:se.get("minTurnAngle"),maxSurfaceAngle:se.get("maxSurfaceAngle"),surfaceNormal:new Point$1(Me,Ee),linePoints:Ie,textAlign:Be,labelDistance:ne,labelAlignTo:ae,edgeDistance:oe,bleedMargin:Se,rect:He,unconstrainedWidth:He.width,labelStyleWidth:K.style.width})}W.setTextConfig({inside:Ne})}}),!h&&o.get("avoidLabelOverlap")&&avoidOverlap(r,s,l,x,T,w,C,M);for(var N=0;N<r.length;N++){var k=r[N],F=k.label,B=k.labelLine,V=isNaN(F.x)||isNaN(F.y);if(F){F.setStyle({align:k.textAlign}),V&&(each$c(F.states,D),F.ignore=!0);var z=F.states.select;z&&(z.x+=F.x,z.y+=F.y)}if(B){var U=k.linePoints;V||!U?(each$c(B.states,D),B.ignore=!0):(limitTurnAngle(U,k.minTurnAngle),limitSurfaceAngle(U,k.surfaceNormal,k.maxSurfaceAngle),B.setShape({points:U}),F.__hostTarget.textGuideLineConfig={anchor:new Point$1(U[0][0],U[0][1])})}}}function getSectorCornerRadius(o,t,r){var s=o.get("borderRadius");if(s==null)return r?{cornerRadius:0}:null;isArray$1(s)||(s=[s,s,s,s]);var l=Math.abs(t.r||0-t.r0||0);return{cornerRadius:map$2(s,function(h){return parsePercent$1(h,l)})}}var PiePiece=function(o){__extends(t,o);function t(r,s,l){var h=o.call(this)||this;h.z2=2;var v=new ZRText$1;return h.setTextContent(v),h.updateData(r,s,l,!0),h}return t.prototype.updateData=function(r,s,l,h){var v=this,S=r.hostModel,x=r.getItemModel(s),T=x.getModel("emphasis"),C=r.getItemLayout(s),M=extend(getSectorCornerRadius(x.getModel("itemStyle"),C,!0),C);if(isNaN(M.startAngle)){v.setShape(M);return}if(h){v.setShape(M);var w=S.getShallow("animationType");S.ecModel.ssr?(initProps(v,{scaleX:0,scaleY:0},S,{dataIndex:s,isFrom:!0}),v.originX=M.cx,v.originY=M.cy):w==="scale"?(v.shape.r=C.r0,initProps(v,{shape:{r:C.r}},S,s)):l!=null?(v.setShape({startAngle:l,endAngle:l}),initProps(v,{shape:{startAngle:C.startAngle,endAngle:C.endAngle}},S,s)):(v.shape.endAngle=C.startAngle,updateProps$1(v,{shape:{endAngle:C.endAngle}},S,s))}else saveOldStyle(v),updateProps$1(v,{shape:M},S,s);v.useStyle(r.getItemVisual(s,"style")),setStatesStylesFromModel(v,x);var D=(C.startAngle+C.endAngle)/2,O=S.get("selectedOffset"),N=Math.cos(D)*O,k=Math.sin(D)*O,F=x.getShallow("cursor");F&&v.attr("cursor",F),this._updateLabel(S,r,s),v.ensureState("emphasis").shape=extend({r:C.r+(T.get("scale")&&T.get("scaleSize")||0)},getSectorCornerRadius(T.getModel("itemStyle"),C)),extend(v.ensureState("select"),{x:N,y:k,shape:getSectorCornerRadius(x.getModel(["select","itemStyle"]),C)}),extend(v.ensureState("blur"),{shape:getSectorCornerRadius(x.getModel(["blur","itemStyle"]),C)});var B=v.getTextGuideLine(),V=v.getTextContent();B&&extend(B.ensureState("select"),{x:N,y:k}),extend(V.ensureState("select"),{x:N,y:k}),toggleHoverEmphasis(this,T.get("focus"),T.get("blurScope"),T.get("disabled"))},t.prototype._updateLabel=function(r,s,l){var h=this,v=s.getItemModel(l),S=v.getModel("labelLine"),x=s.getItemVisual(l,"style"),T=x&&x.fill,C=x&&x.opacity;setLabelStyle(h,getLabelStatesModels(v),{labelFetcher:s.hostModel,labelDataIndex:l,inheritColor:T,defaultOpacity:C,defaultText:r.getFormattedLabel(l,"normal")||s.getName(l)});var M=h.getTextContent();h.setTextConfig({position:null,rotation:null}),M.attr({z2:10});var w=r.get(["label","position"]);if(w!=="outside"&&w!=="outer")h.removeTextGuideLine();else{var D=this.getTextGuideLine();D||(D=new Polyline$1,this.setTextGuideLine(D)),setLabelLineStyle(this,getLabelLineStatesModels(v),{stroke:T,opacity:retrieve3(S.get(["lineStyle","opacity"]),C,1)})}},t}(Sector$1),PieView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,s,l,h){var v=r.getData(),S=this._data,x=this.group,T;if(!S&&v.count()>0){for(var C=v.getItemLayout(0),M=1;isNaN(C&&C.startAngle)&&M<v.count();++M)C=v.getItemLayout(M);C&&(T=C.startAngle)}if(this._emptyCircleSector&&x.remove(this._emptyCircleSector),v.count()===0&&r.get("showEmptyCircle")){var w=new Sector$1({shape:getBasicPieLayout(r,l)});w.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=w,x.add(w)}v.diff(S).add(function(D){var O=new PiePiece(v,D,T);v.setItemGraphicEl(D,O),x.add(O)}).update(function(D,O){var N=S.getItemGraphicEl(O);N.updateData(v,D,T),N.off("click"),x.add(N),v.setItemGraphicEl(D,N)}).remove(function(D){var O=S.getItemGraphicEl(D);removeElementWithFadeOut(O,r,D)}).execute(),pieLabelLayout(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=v)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,s){var l=s.getData(),h=l.getItemLayout(0);if(h){var v=r[0]-h.cx,S=r[1]-h.cy,x=Math.sqrt(v*v+S*S);return x<=h.r&&x>=h.r0}},t.type="pie",t}(ChartView$1);const PieView$1=PieView;function createSeriesDataSimply(o,t,r){t=isArray$1(t)&&{coordDimensions:t}||extend({encodeDefine:o.getEncode()},t);var s=o.getSource(),l=prepareSeriesDataSchema(s,t).dimensions,h=new SeriesData$1(l,o);return h.initData(s,r),h}var LegendVisualProvider=function(){function o(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return o.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},o.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},o.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},o.prototype.getItemVisual=function(t,r){var s=this._getDataWithEncodedVisual();return s.getItemVisual(t,r)},o}();const LegendVisualProvider$1=LegendVisualProvider;var innerData=makeInner(),PieSeriesModel=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.init=function(r){o.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){o.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},t.prototype.getDataParams=function(r){var s=this.getData(),l=innerData(s),h=l.seats;if(!h){var v=[];s.each(s.mapDimension("value"),function(x){v.push(x)}),h=l.seats=getPercentSeats(v,s.hostModel.get("percentPrecision"))}var S=o.prototype.getDataParams.call(this,r);return S.percent=h[r]||0,S.$vars.push("percent"),S},t.prototype._defaultLabelLine=function(r){defaultEmphasis(r,"labelLine",["show"]);var s=r.labelLine,l=r.emphasis.labelLine;s.show=s.show&&r.label.show,l.show=l.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(SeriesModel$1);const PieSeriesModel$1=PieSeriesModel;function negativeDataFilter(o){return{seriesType:o,reset:function(t,r){var s=t.getData();s.filterSelf(function(l){var h=s.mapDimension("value"),v=s.get(h,l);return!(isNumber(v)&&!isNaN(v)&&v<0)})}}}function install$h(o){o.registerChartView(PieView$1),o.registerSeriesModel(PieSeriesModel$1),createLegacyDataSelectAction("pie",o.registerAction),o.registerLayout(curry$1(pieLayout,"pie")),o.registerProcessor(dataFilter("pie")),o.registerProcessor(negativeDataFilter("pie"))}var GridModel=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ComponentModel$1);const GridModel$1=GridModel;var CartesianAxisModel=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",SINGLE_REFERRING).models[0]},t.type="cartesian2dAxis",t}(ComponentModel$1);mixin(CartesianAxisModel,AxisModelCommonMixin);var defaultOption$1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},categoryAxis=merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},defaultOption$1),valueAxis=merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},defaultOption$1),timeAxis=merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},valueAxis),logAxis=defaults({logBase:10},valueAxis);const axisDefault={category:categoryAxis,value:valueAxis,time:timeAxis,log:logAxis};var AXIS_TYPES={value:1,category:1,time:1,log:1};function axisModelCreator(o,t,r,s){each$c(AXIS_TYPES,function(l,h){var v=merge(merge({},axisDefault[h],!0),s,!0),S=function(x){__extends(T,x);function T(){var C=x!==null&&x.apply(this,arguments)||this;return C.type=t+"Axis."+h,C}return T.prototype.mergeDefaultAndTheme=function(C,M){var w=fetchLayoutMode(this),D=w?getLayoutParams(C):{},O=M.getTheme();merge(C,O.get(h+"Axis")),merge(C,this.getDefaultOption()),C.type=getAxisType(C),w&&mergeLayoutParam(C,D,w)},T.prototype.optionUpdated=function(){var C=this.option;C.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},T.prototype.getCategories=function(C){var M=this.option;if(M.type==="category")return C?M.data:this.__ordinalMeta.categories},T.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},T.type=t+"Axis."+h,T.defaultOption=v,T}(r);o.registerComponentModel(S)}),o.registerSubTypeDefaulter(t+"Axis",getAxisType)}function getAxisType(o){return o.type||(o.data?"category":"value")}var Cartesian=function(){function o(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return o.prototype.getAxis=function(t){return this._axes[t]},o.prototype.getAxes=function(){return map$2(this._dimList,function(t){return this._axes[t]},this)},o.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),filter(this.getAxes(),function(r){return r.scale.type===t})},o.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},o}();const Cartesian$1=Cartesian;var cartesian2DDimensions=["x","y"];function canCalculateAffineTransform(o){return o.type==="interval"||o.type==="time"}var Cartesian2D=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=cartesian2DDimensions,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,s=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(r)||!canCalculateAffineTransform(s))){var l=r.getExtent(),h=s.getExtent(),v=this.dataToPoint([l[0],h[0]]),S=this.dataToPoint([l[1],h[1]]),x=l[1]-l[0],T=h[1]-h[0];if(!(!x||!T)){var C=(S[0]-v[0])/x,M=(S[1]-v[1])/T,w=v[0]-l[0]*C,D=v[1]-h[0]*M,O=this._transform=[C,0,0,M,w,D];this._invTransform=invert([],O)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var s=this.getAxis("x"),l=this.getAxis("y");return s.contain(s.toLocalCoord(r[0]))&&l.contain(l.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,s){var l=this.dataToPoint(r),h=this.dataToPoint(s),v=this.getArea(),S=new BoundingRect$1(l[0],l[1],h[0]-l[0],h[1]-l[1]);return v.intersect(S)},t.prototype.dataToPoint=function(r,s,l){l=l||[];var h=r[0],v=r[1];if(this._transform&&h!=null&&isFinite(h)&&v!=null&&isFinite(v))return applyTransform$1(l,r,this._transform);var S=this.getAxis("x"),x=this.getAxis("y");return l[0]=S.toGlobalCoord(S.dataToCoord(h,s)),l[1]=x.toGlobalCoord(x.dataToCoord(v,s)),l},t.prototype.clampData=function(r,s){var l=this.getAxis("x").scale,h=this.getAxis("y").scale,v=l.getExtent(),S=h.getExtent(),x=l.parse(r[0]),T=h.parse(r[1]);return s=s||[],s[0]=Math.min(Math.max(Math.min(v[0],v[1]),x),Math.max(v[0],v[1])),s[1]=Math.min(Math.max(Math.min(S[0],S[1]),T),Math.max(S[0],S[1])),s},t.prototype.pointToData=function(r,s){var l=[];if(this._invTransform)return applyTransform$1(l,r,this._invTransform);var h=this.getAxis("x"),v=this.getAxis("y");return l[0]=h.coordToData(h.toLocalCoord(r[0]),s),l[1]=v.coordToData(v.toLocalCoord(r[1]),s),l},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),s=this.getAxis("y").getGlobalExtent(),l=Math.min(r[0],r[1]),h=Math.min(s[0],s[1]),v=Math.max(r[0],r[1])-l,S=Math.max(s[0],s[1])-h;return new BoundingRect$1(l,h,v,S)},t}(Cartesian$1),Axis2D=function(o){__extends(t,o);function t(r,s,l,h,v){var S=o.call(this,r,s,l)||this;return S.index=0,S.type=h||"value",S.position=v||"bottom",S}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var s=this.getExtent();return s[0]=this.toGlobalCoord(s[0]),s[1]=this.toGlobalCoord(s[1]),r&&s[0]>s[1]&&s.reverse(),s},t.prototype.pointToData=function(r,s){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),s)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Axis$1);const Axis2D$1=Axis2D;function layout$1(o,t,r){r=r||{};var s=o.coordinateSystem,l=t.axis,h={},v=l.getAxesOnZeroOf()[0],S=l.position,x=v?"onZero":S,T=l.dim,C=s.getRect(),M=[C.x,C.x+C.width,C.y,C.y+C.height],w={left:0,right:1,top:0,bottom:1,onZero:2},D=t.get("offset")||0,O=T==="x"?[M[2]-D,M[3]+D]:[M[0]-D,M[1]+D];if(v){var N=v.toGlobalCoord(v.dataToCoord(0));O[w.onZero]=Math.max(Math.min(N,O[1]),O[0])}h.position=[T==="y"?O[w[x]]:M[0],T==="x"?O[w[x]]:M[3]],h.rotation=Math.PI/2*(T==="x"?0:1);var k={top:-1,bottom:1,left:-1,right:1};h.labelDirection=h.tickDirection=h.nameDirection=k[S],h.labelOffset=v?O[w[S]]-O[w.onZero]:0,t.get(["axisTick","inside"])&&(h.tickDirection=-h.tickDirection),retrieve(r.labelInside,t.get(["axisLabel","inside"]))&&(h.labelDirection=-h.labelDirection);var F=t.get(["axisLabel","rotate"]);return h.labelRotate=x==="top"?-F:F,h.z2=1,h}function isCartesian2DSeries(o){return o.get("coordinateSystem")==="cartesian2d"}function findAxisModels(o){var t={xAxisModel:null,yAxisModel:null};return each$c(t,function(r,s){var l=s.replace(/Model$/,""),h=o.getReferringComponents(l,SINGLE_REFERRING).models[0];t[s]=h}),t}var mathLog=Math.log;function alignScaleTicks(o,t,r){var s=IntervalScale$1.prototype,l=s.getTicks.call(r),h=s.getTicks.call(r,!0),v=l.length-1,S=s.getInterval.call(r),x=getScaleExtent(o,t),T=x.extent,C=x.fixMin,M=x.fixMax;if(o.type==="log"){var w=mathLog(o.base);T=[mathLog(T[0])/w,mathLog(T[1])/w]}o.setExtent(T[0],T[1]),o.calcNiceExtent({splitNumber:v,fixMin:C,fixMax:M});var D=s.getExtent.call(o);C&&(T[0]=D[0]),M&&(T[1]=D[1]);var O=s.getInterval.call(o),N=T[0],k=T[1];if(C&&M)O=(k-N)/v;else if(C)for(k=T[0]+O*v;k<T[1]&&isFinite(k)&&isFinite(T[1]);)O=increaseInterval(O),k=T[0]+O*v;else if(M)for(N=T[1]-O*v;N>T[0]&&isFinite(N)&&isFinite(T[0]);)O=increaseInterval(O),N=T[1]-O*v;else{var F=o.getTicks().length-1;F>v&&(O=increaseInterval(O));var B=O*v;k=Math.ceil(T[1]/O)*O,N=round$1(k-B),N<0&&T[0]>=0?(N=0,k=round$1(B)):k>0&&T[1]<=0&&(k=0,N=-round$1(B))}var V=(l[0].value-h[0].value)/S,z=(l[v].value-h[v].value)/S;s.setExtent.call(o,N+O*V,k+O*z),s.setInterval.call(o,O),(V||z)&&s.setNiceExtent.call(o,N+O,k-O)}var Grid=function(){function o(t,r,s){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(t,r,s),this.model=t}return o.prototype.getRect=function(){return this._rect},o.prototype.update=function(t,r){var s=this._axesMap;this._updateScale(t,this.model);function l(v){var S,x=keys(v),T=x.length;if(T){for(var C=[],M=T-1;M>=0;M--){var w=+x[M],D=v[w],O=D.model,N=D.scale;isIntervalOrLogScale(N)&&O.get("alignTicks")&&O.get("interval")==null?C.push(D):(niceScaleExtent(N,O),isIntervalOrLogScale(N)&&(S=D))}C.length&&(S||(S=C.pop(),niceScaleExtent(S.scale,S.model)),each$c(C,function(k){alignScaleTicks(k.scale,k.model,S.scale)}))}}l(s.x),l(s.y);var h={};each$c(s.x,function(v){fixAxisOnZero(s,"y",v,h)}),each$c(s.y,function(v){fixAxisOnZero(s,"x",v,h)}),this.resize(this.model,r)},o.prototype.resize=function(t,r,s){var l=t.getBoxLayoutParams(),h=!s&&t.get("containLabel"),v=getLayoutRect(l,{width:r.getWidth(),height:r.getHeight()});this._rect=v;var S=this._axesList;x(),h&&(each$c(S,function(T){if(!T.model.get(["axisLabel","inside"])){var C=estimateLabelUnionRect(T);if(C){var M=T.isHorizontal()?"height":"width",w=T.model.get(["axisLabel","margin"]);v[M]-=C[M]+w,T.position==="top"?v.y+=C.height+w:T.position==="left"&&(v.x+=C.width+w)}}}),x()),each$c(this._coordsList,function(T){T.calcAffineTransform()});function x(){each$c(S,function(T){var C=T.isHorizontal(),M=C?[0,v.width]:[0,v.height],w=T.inverse?1:0;T.setExtent(M[w],M[1-w]),updateAxisTransform(T,C?v.x:v.y)})}},o.prototype.getAxis=function(t,r){var s=this._axesMap[t];if(s!=null)return s[r||0]},o.prototype.getAxes=function(){return this._axesList.slice()},o.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var s="x"+t+"y"+r;return this._coordsMap[s]}isObject$3(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var l=0,h=this._coordsList;l<h.length;l++)if(h[l].getAxis("x").index===t||h[l].getAxis("y").index===r)return h[l]},o.prototype.getCartesians=function(){return this._coordsList.slice()},o.prototype.convertToPixel=function(t,r,s){var l=this._findConvertTarget(r);return l.cartesian?l.cartesian.dataToPoint(s):l.axis?l.axis.toGlobalCoord(l.axis.dataToCoord(s)):null},o.prototype.convertFromPixel=function(t,r,s){var l=this._findConvertTarget(r);return l.cartesian?l.cartesian.pointToData(s):l.axis?l.axis.coordToData(l.axis.toLocalCoord(s)):null},o.prototype._findConvertTarget=function(t){var r=t.seriesModel,s=t.xAxisModel||r&&r.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],l=t.yAxisModel||r&&r.getReferringComponents("yAxis",SINGLE_REFERRING).models[0],h=t.gridModel,v=this._coordsList,S,x;if(r)S=r.coordinateSystem,indexOf(v,S)<0&&(S=null);else if(s&&l)S=this.getCartesian(s.componentIndex,l.componentIndex);else if(s)x=this.getAxis("x",s.componentIndex);else if(l)x=this.getAxis("y",l.componentIndex);else if(h){var T=h.coordinateSystem;T===this&&(S=this._coordsList[0])}return{cartesian:S,axis:x}},o.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},o.prototype._initCartesian=function(t,r,s){var l=this,h=this,v={left:!1,right:!1,top:!1,bottom:!1},S={x:{},y:{}},x={x:0,y:0};if(r.eachComponent("xAxis",T("x"),this),r.eachComponent("yAxis",T("y"),this),!x.x||!x.y){this._axesMap={},this._axesList=[];return}this._axesMap=S,each$c(S.x,function(C,M){each$c(S.y,function(w,D){var O="x"+M+"y"+D,N=new Cartesian2D(O);N.master=l,N.model=t,l._coordsMap[O]=N,l._coordsList.push(N),N.addAxis(C),N.addAxis(w)})});function T(C){return function(M,w){if(isAxisUsedInTheGrid(M,t)){var D=M.get("position");C==="x"?D!=="top"&&D!=="bottom"&&(D=v.bottom?"top":"bottom"):D!=="left"&&D!=="right"&&(D=v.left?"right":"left"),v[D]=!0;var O=new Axis2D$1(C,createScaleByModel(M),[0,0],M.get("type"),D),N=O.type==="category";O.onBand=N&&M.get("boundaryGap"),O.inverse=M.get("inverse"),M.axis=O,O.model=M,O.grid=h,O.index=w,h._axesList.push(O),S[C][w]=O,x[C]++}}}},o.prototype._updateScale=function(t,r){each$c(this._axesList,function(l){if(l.scale.setExtent(1/0,-1/0),l.type==="category"){var h=l.model.get("categorySortInfo");l.scale.setSortInfo(h)}}),t.eachSeries(function(l){if(isCartesian2DSeries(l)){var h=findAxisModels(l),v=h.xAxisModel,S=h.yAxisModel;if(!isAxisUsedInTheGrid(v,r)||!isAxisUsedInTheGrid(S,r))return;var x=this.getCartesian(v.componentIndex,S.componentIndex),T=l.getData(),C=x.getAxis("x"),M=x.getAxis("y");s(T,C),s(T,M)}},this);function s(l,h){each$c(getDataDimensionsOnAxis(l,h.dim),function(v){h.scale.unionExtentFromData(l,v)})}},o.prototype.getTooltipAxes=function(t){var r=[],s=[];return each$c(this.getCartesians(),function(l){var h=t!=null&&t!=="auto"?l.getAxis(t):l.getBaseAxis(),v=l.getOtherAxis(h);indexOf(r,h)<0&&r.push(h),indexOf(s,v)<0&&s.push(v)}),{baseAxes:r,otherAxes:s}},o.create=function(t,r){var s=[];return t.eachComponent("grid",function(l,h){var v=new o(l,t,r);v.name="grid_"+h,v.resize(l,r,!0),l.coordinateSystem=v,s.push(v)}),t.eachSeries(function(l){if(isCartesian2DSeries(l)){var h=findAxisModels(l),v=h.xAxisModel,S=h.yAxisModel,x=v.getCoordSysModel(),T=x.coordinateSystem;l.coordinateSystem=T.getCartesian(v.componentIndex,S.componentIndex)}}),s},o.dimensions=cartesian2DDimensions,o}();function isAxisUsedInTheGrid(o,t){return o.getCoordSysModel()===t}function fixAxisOnZero(o,t,r,s){r.getAxesOnZeroOf=function(){return h?[h]:[]};var l=o[t],h,v=r.model,S=v.get(["axisLine","onZero"]),x=v.get(["axisLine","onZeroAxisIndex"]);if(!S)return;if(x!=null)canOnZeroToAxis(l[x])&&(h=l[x]);else for(var T in l)if(l.hasOwnProperty(T)&&canOnZeroToAxis(l[T])&&!s[C(l[T])]){h=l[T];break}h&&(s[C(h)]=!0);function C(M){return M.dim+"_"+M.index}}function canOnZeroToAxis(o){return o&&o.type!=="category"&&o.type!=="time"&&ifAxisCrossZero(o)}function updateAxisTransform(o,t){var r=o.getExtent(),s=r[0]+r[1];o.toGlobalCoord=o.dim==="x"?function(l){return l+t}:function(l){return s-l+t},o.toLocalCoord=o.dim==="x"?function(l){return l-t}:function(l){return s-l+t}}const Grid$1=Grid;var PI=Math.PI,AxisBuilder=function(){function o(t,r){this.group=new Group$3,this.opt=r,this.axisModel=t,defaults(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var s=new Group$3({x:r.position[0],y:r.position[1],rotation:r.rotation});s.updateTransform(),this._transformGroup=s}return o.prototype.hasBuilder=function(t){return!!builders[t]},o.prototype.add=function(t){builders[t](this.opt,this.axisModel,this.group,this._transformGroup)},o.prototype.getGroup=function(){return this.group},o.innerTextLayout=function(t,r,s){var l=remRadian(r-t),h,v;return isRadianAroundZero(l)?(v=s>0?"top":"bottom",h="center"):isRadianAroundZero(l-PI)?(v=s>0?"bottom":"top",h="center"):(v="middle",l>0&&l<PI?h=s>0?"right":"left":h=s>0?"left":"right"),{rotation:l,textAlign:h,textVerticalAlign:v}},o.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},o.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},o}(),builders={axisLine:function(o,t,r,s){var l=t.get(["axisLine","show"]);if(l==="auto"&&o.handleAutoShown&&(l=o.handleAutoShown("axisLine")),!!l){var h=t.axis.getExtent(),v=s.transform,S=[h[0],0],x=[h[1],0],T=S[0]>x[0];v&&(applyTransform$1(S,S,v),applyTransform$1(x,x,v));var C=extend({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),M=new Line$1({shape:{x1:S[0],y1:S[1],x2:x[0],y2:x[1]},style:C,strokeContainThreshold:o.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(M.shape,M.style.lineWidth),M.anid="line",r.add(M);var w=t.get(["axisLine","symbol"]);if(w!=null){var D=t.get(["axisLine","symbolSize"]);isString(w)&&(w=[w,w]),(isString(D)||isNumber(D))&&(D=[D,D]);var O=normalizeSymbolOffset(t.get(["axisLine","symbolOffset"])||0,D),N=D[0],k=D[1];each$c([{rotate:o.rotation+Math.PI/2,offset:O[0],r:0},{rotate:o.rotation-Math.PI/2,offset:O[1],r:Math.sqrt((S[0]-x[0])*(S[0]-x[0])+(S[1]-x[1])*(S[1]-x[1]))}],function(F,B){if(w[B]!=="none"&&w[B]!=null){var V=createSymbol(w[B],-N/2,-k/2,N,k,C.stroke,!0),z=F.r+F.offset,U=T?x:S;V.attr({rotation:F.rotate,x:U[0]+z*Math.cos(o.rotation),y:U[1]-z*Math.sin(o.rotation),silent:!0,z2:11}),r.add(V)}})}}},axisTickLabel:function(o,t,r,s){var l=buildAxisMajorTicks(r,s,t,o),h=buildAxisLabel(r,s,t,o);if(fixMinMaxLabelShow(t,h,l),buildAxisMinorTicks(r,s,t,o.tickDirection),t.get(["axisLabel","hideOverlap"])){var v=prepareLayoutList(map$2(h,function(S){return{label:S,priority:S.z2,defaultAttr:{ignore:S.ignore}}}));hideOverlap(v)}},axisName:function(o,t,r,s){var l=retrieve(o.axisName,t.get("name"));if(l){var h=t.get("nameLocation"),v=o.nameDirection,S=t.getModel("nameTextStyle"),x=t.get("nameGap")||0,T=t.axis.getExtent(),C=T[0]>T[1]?-1:1,M=[h==="start"?T[0]-C*x:h==="end"?T[1]+C*x:(T[0]+T[1])/2,isNameLocationCenter(h)?o.labelOffset+v*x:0],w,D=t.get("nameRotate");D!=null&&(D=D*PI/180);var O;isNameLocationCenter(h)?w=AxisBuilder.innerTextLayout(o.rotation,D??o.rotation,v):(w=endTextLayout(o.rotation,h,D||0,T),O=o.axisNameAvailableWidth,O!=null&&(O=Math.abs(O/Math.sin(w.rotation)),!isFinite(O)&&(O=null)));var N=S.getFont(),k=t.get("nameTruncate",!0)||{},F=k.ellipsis,B=retrieve(o.nameTruncateMaxWidth,k.maxWidth,O),V=new ZRText$1({x:M[0],y:M[1],rotation:w.rotation,silent:AxisBuilder.isLabelSilent(t),style:createTextStyle$1(S,{text:l,font:N,overflow:"truncate",width:B,ellipsis:F,fill:S.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:S.get("align")||w.textAlign,verticalAlign:S.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(setTooltipConfig({el:V,componentModel:t,itemName:l}),V.__fullText=l,V.anid="name",t.get("triggerEvent")){var z=AxisBuilder.makeAxisEventDataBase(t);z.targetType="axisName",z.name=l,getECData(V).eventData=z}s.add(V),V.updateTransform(),r.add(V),V.decomposeTransform()}}};function endTextLayout(o,t,r,s){var l=remRadian(r-o),h,v,S=s[0]>s[1],x=t==="start"&&!S||t!=="start"&&S;return isRadianAroundZero(l-PI/2)?(v=x?"bottom":"top",h="center"):isRadianAroundZero(l-PI*1.5)?(v=x?"top":"bottom",h="center"):(v="middle",l<PI*1.5&&l>PI/2?h=x?"left":"right":h=x?"right":"left"),{rotation:l,textAlign:h,textVerticalAlign:v}}function fixMinMaxLabelShow(o,t,r){if(!shouldShowAllLabels(o.axis)){var s=o.get(["axisLabel","showMinLabel"]),l=o.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var h=t[0],v=t[1],S=t[t.length-1],x=t[t.length-2],T=r[0],C=r[1],M=r[r.length-1],w=r[r.length-2];s===!1?(ignoreEl(h),ignoreEl(T)):isTwoLabelOverlapped(h,v)&&(s?(ignoreEl(v),ignoreEl(C)):(ignoreEl(h),ignoreEl(T))),l===!1?(ignoreEl(S),ignoreEl(M)):isTwoLabelOverlapped(x,S)&&(l?(ignoreEl(x),ignoreEl(w)):(ignoreEl(S),ignoreEl(M)))}}function ignoreEl(o){o&&(o.ignore=!0)}function isTwoLabelOverlapped(o,t){var r=o&&o.getBoundingRect().clone(),s=t&&t.getBoundingRect().clone();if(!(!r||!s)){var l=identity([]);return rotate(l,l,-o.rotation),r.applyTransform(mul([],l,o.getLocalTransform())),s.applyTransform(mul([],l,t.getLocalTransform())),r.intersect(s)}}function isNameLocationCenter(o){return o==="middle"||o==="center"}function createTicks(o,t,r,s,l){for(var h=[],v=[],S=[],x=0;x<o.length;x++){var T=o[x].coord;v[0]=T,v[1]=0,S[0]=T,S[1]=r,t&&(applyTransform$1(v,v,t),applyTransform$1(S,S,t));var C=new Line$1({shape:{x1:v[0],y1:v[1],x2:S[0],y2:S[1]},style:s,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(C.shape,C.style.lineWidth),C.anid=l+"_"+o[x].tickValue,h.push(C)}return h}function buildAxisMajorTicks(o,t,r,s){var l=r.axis,h=r.getModel("axisTick"),v=h.get("show");if(v==="auto"&&s.handleAutoShown&&(v=s.handleAutoShown("axisTick")),!(!v||l.scale.isBlank())){for(var S=h.getModel("lineStyle"),x=s.tickDirection*h.get("length"),T=l.getTicksCoords(),C=createTicks(T,t.transform,x,defaults(S.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),M=0;M<C.length;M++)o.add(C[M]);return C}}function buildAxisMinorTicks(o,t,r,s){var l=r.axis,h=r.getModel("minorTick");if(!(!h.get("show")||l.scale.isBlank())){var v=l.getMinorTicksCoords();if(v.length)for(var S=h.getModel("lineStyle"),x=s*h.get("length"),T=defaults(S.getLineStyle(),defaults(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),C=0;C<v.length;C++)for(var M=createTicks(v[C],t.transform,x,T,"minorticks_"+C),w=0;w<M.length;w++)o.add(M[w])}}function buildAxisLabel(o,t,r,s){var l=r.axis,h=retrieve(s.axisLabelShow,r.get(["axisLabel","show"]));if(!(!h||l.scale.isBlank())){var v=r.getModel("axisLabel"),S=v.get("margin"),x=l.getViewLabels(),T=(retrieve(s.labelRotate,v.get("rotate"))||0)*PI/180,C=AxisBuilder.innerTextLayout(s.rotation,T,s.labelDirection),M=r.getCategories&&r.getCategories(!0),w=[],D=AxisBuilder.isLabelSilent(r),O=r.get("triggerEvent");return each$c(x,function(N,k){var F=l.scale.type==="ordinal"?l.scale.getRawOrdinalNumber(N.tickValue):N.tickValue,B=N.formattedLabel,V=N.rawLabel,z=v;if(M&&M[F]){var U=M[F];isObject$3(U)&&U.textStyle&&(z=new Model$1(U.textStyle,v,r.ecModel))}var Y=z.getTextColor()||r.get(["axisLine","lineStyle","color"]),W=l.dataToCoord(F),X=new ZRText$1({x:W,y:s.labelOffset+s.labelDirection*S,rotation:C.rotation,silent:D,z2:10+(N.level||0),style:createTextStyle$1(z,{text:B,align:z.getShallow("align",!0)||C.textAlign,verticalAlign:z.getShallow("verticalAlign",!0)||z.getShallow("baseline",!0)||C.textVerticalAlign,fill:isFunction(Y)?Y(l.type==="category"?V:l.type==="value"?F+"":F,k):Y})});if(X.anid="label_"+F,O){var K=AxisBuilder.makeAxisEventDataBase(r);K.targetType="axisLabel",K.value=V,K.tickIndex=k,l.type==="category"&&(K.dataIndex=F),getECData(X).eventData=K}t.add(X),X.updateTransform(),w.push(X),o.add(X),X.decomposeTransform()}),w}}const AxisBuilder$1=AxisBuilder;function collect(o,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return collectAxesInfo(r,o,t),r.seriesInvolved&&collectSeriesInfo(r,o),r}function collectAxesInfo(o,t,r){var s=t.getComponent("tooltip"),l=t.getComponent("axisPointer"),h=l.get("link",!0)||[],v=[];each$c(r.getCoordinateSystems(),function(S){if(!S.axisPointerEnabled)return;var x=makeKey(S.model),T=o.coordSysAxesInfo[x]={};o.coordSysMap[x]=S;var C=S.model,M=C.getModel("tooltip",s);if(each$c(S.getAxes(),curry$1(N,!1,null)),S.getTooltipAxes&&s&&M.get("show")){var w=M.get("trigger")==="axis",D=M.get(["axisPointer","type"])==="cross",O=S.getTooltipAxes(M.get(["axisPointer","axis"]));(w||D)&&each$c(O.baseAxes,curry$1(N,D?"cross":!0,w)),D&&each$c(O.otherAxes,curry$1(N,"cross",!1))}function N(k,F,B){var V=B.model.getModel("axisPointer",l),z=V.get("show");if(!(!z||z==="auto"&&!k&&!isHandleTrigger(V))){F==null&&(F=V.get("triggerTooltip")),V=k?makeAxisPointerModel(B,M,l,t,k,F):V;var U=V.get("snap"),Y=makeKey(B.model),W=F||U||B.type==="category",X=o.axesInfo[Y]={key:Y,axis:B,coordSys:S,axisPointerModel:V,triggerTooltip:F,involveSeries:W,snap:U,useHandle:isHandleTrigger(V),seriesModels:[],linkGroup:null};T[Y]=X,o.seriesInvolved=o.seriesInvolved||W;var K=getLinkGroupIndex(h,B);if(K!=null){var J=v[K]||(v[K]={axesInfo:{}});J.axesInfo[Y]=X,J.mapper=h[K].mapper,X.linkGroup=J}}}})}function makeAxisPointerModel(o,t,r,s,l,h){var v=t.getModel("axisPointer"),S=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],x={};each$c(S,function(w){x[w]=clone$3(v.get(w))}),x.snap=o.type!=="category"&&!!h,v.get("type")==="cross"&&(x.type="line");var T=x.label||(x.label={});if(T.show==null&&(T.show=!1),l==="cross"){var C=v.get(["label","show"]);if(T.show=C??!0,!h){var M=x.lineStyle=v.get("crossStyle");M&&defaults(T,M.textStyle)}}return o.model.getModel("axisPointer",new Model$1(x,r,s))}function collectSeriesInfo(o,t){t.eachSeries(function(r){var s=r.coordinateSystem,l=r.get(["tooltip","trigger"],!0),h=r.get(["tooltip","show"],!0);!s||l==="none"||l===!1||l==="item"||h===!1||r.get(["axisPointer","show"],!0)===!1||each$c(o.coordSysAxesInfo[makeKey(s.model)],function(v){var S=v.axis;s.getAxis(S.dim)===S&&(v.seriesModels.push(r),v.seriesDataCount==null&&(v.seriesDataCount=0),v.seriesDataCount+=r.getData().count())})})}function getLinkGroupIndex(o,t){for(var r=t.model,s=t.dim,l=0;l<o.length;l++){var h=o[l]||{};if(checkPropInLink(h[s+"AxisId"],r.id)||checkPropInLink(h[s+"AxisIndex"],r.componentIndex)||checkPropInLink(h[s+"AxisName"],r.name))return l}}function checkPropInLink(o,t){return o==="all"||isArray$1(o)&&indexOf(o,t)>=0||o===t}function fixValue(o){var t=getAxisInfo(o);if(t){var r=t.axisPointerModel,s=t.axis.scale,l=r.option,h=r.get("status"),v=r.get("value");v!=null&&(v=s.parse(v));var S=isHandleTrigger(r);h==null&&(l.status=S?"show":"hide");var x=s.getExtent().slice();x[0]>x[1]&&x.reverse(),(v==null||v>x[1])&&(v=x[1]),v<x[0]&&(v=x[0]),l.value=v,S&&(l.status=t.axis.scale.isBlank()?"hide":"show")}}function getAxisInfo(o){var t=(o.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[makeKey(o)]}function getAxisPointerModel(o){var t=getAxisInfo(o);return t&&t.axisPointerModel}function isHandleTrigger(o){return!!o.get(["handle","show"])}function makeKey(o){return o.type+"||"+o.id}var axisPointerClazz={},AxisView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,s,l,h){this.axisPointerClass&&fixValue(r),o.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,l,!0)},t.prototype.updateAxisPointer=function(r,s,l,h){this._doUpdateAxisPointerClass(r,l,!1)},t.prototype.remove=function(r,s){var l=this._axisPointer;l&&l.remove(s)},t.prototype.dispose=function(r,s){this._disposeAxisPointer(s),o.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,s,l){var h=t.getAxisPointerClass(this.axisPointerClass);if(h){var v=getAxisPointerModel(r);v?(this._axisPointer||(this._axisPointer=new h)).render(r,v,s,l):this._disposeAxisPointer(s)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,s){axisPointerClazz[r]=s},t.getAxisPointerClass=function(r){return r&&axisPointerClazz[r]},t.type="axis",t}(ComponentView$1);const AxisView$1=AxisView;var inner$6=makeInner();function rectCoordAxisBuildSplitArea(o,t,r,s){var l=r.axis;if(!l.scale.isBlank()){var h=r.getModel("splitArea"),v=h.getModel("areaStyle"),S=v.get("color"),x=s.coordinateSystem.getRect(),T=l.getTicksCoords({tickModel:h,clamp:!0});if(T.length){var C=S.length,M=inner$6(o).splitAreaColors,w=createHashMap(),D=0;if(M)for(var O=0;O<T.length;O++){var N=M.get(T[O].tickValue);if(N!=null){D=(N+(C-1)*O)%C;break}}var k=l.toGlobalCoord(T[0].coord),F=v.getAreaStyle();S=isArray$1(S)?S:[S];for(var O=1;O<T.length;O++){var B=l.toGlobalCoord(T[O].coord),V=void 0,z=void 0,U=void 0,Y=void 0;l.isHorizontal()?(V=k,z=x.y,U=B-V,Y=x.height,k=V+U):(V=x.x,z=k,U=x.width,Y=B-z,k=z+Y);var W=T[O-1].tickValue;W!=null&&w.set(W,D),t.add(new Rect$2({anid:W!=null?"area_"+W:null,shape:{x:V,y:z,width:U,height:Y},style:defaults({fill:S[D]},F),autoBatch:!0,silent:!0})),D=(D+1)%C}inner$6(o).splitAreaColors=w}}}function rectCoordAxisHandleRemove(o){inner$6(o).splitAreaColors=null}var axisBuilderAttrs=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs=["splitArea","splitLine","minorSplitLine"],CartesianAxisView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,s,l,h){this.group.removeAll();var v=this._axisGroup;if(this._axisGroup=new Group$3,this.group.add(this._axisGroup),!!r.get("show")){var S=r.getCoordSysModel(),x=layout$1(S,r),T=new AxisBuilder$1(r,extend({handleAutoShown:function(M){for(var w=S.coordinateSystem.getCartesians(),D=0;D<w.length;D++)if(isIntervalOrLogScale(w[D].getOtherAxis(r.axis).scale))return!0;return!1}},x));each$c(axisBuilderAttrs,T.add,T),this._axisGroup.add(T.getGroup()),each$c(selfBuilderAttrs,function(M){r.get([M,"show"])&&axisElementBuilders[M](this,this._axisGroup,r,S)},this);var C=h&&h.type==="changeAxisOrder"&&h.isInitSort;C||groupTransition(v,this._axisGroup,r),o.prototype.render.call(this,r,s,l,h)}},t.prototype.remove=function(){rectCoordAxisHandleRemove(this)},t.type="cartesianAxis",t}(AxisView$1),axisElementBuilders={splitLine:function(o,t,r,s){var l=r.axis;if(!l.scale.isBlank()){var h=r.getModel("splitLine"),v=h.getModel("lineStyle"),S=v.get("color");S=isArray$1(S)?S:[S];for(var x=s.coordinateSystem.getRect(),T=l.isHorizontal(),C=0,M=l.getTicksCoords({tickModel:h}),w=[],D=[],O=v.getLineStyle(),N=0;N<M.length;N++){var k=l.toGlobalCoord(M[N].coord);T?(w[0]=k,w[1]=x.y,D[0]=k,D[1]=x.y+x.height):(w[0]=x.x,w[1]=k,D[0]=x.x+x.width,D[1]=k);var F=C++%S.length,B=M[N].tickValue,V=new Line$1({anid:B!=null?"line_"+M[N].tickValue:null,autoBatch:!0,shape:{x1:w[0],y1:w[1],x2:D[0],y2:D[1]},style:defaults({stroke:S[F]},O),silent:!0});subPixelOptimizeLine(V.shape,O.lineWidth),t.add(V)}}},minorSplitLine:function(o,t,r,s){var l=r.axis,h=r.getModel("minorSplitLine"),v=h.getModel("lineStyle"),S=s.coordinateSystem.getRect(),x=l.isHorizontal(),T=l.getMinorTicksCoords();if(T.length)for(var C=[],M=[],w=v.getLineStyle(),D=0;D<T.length;D++)for(var O=0;O<T[D].length;O++){var N=l.toGlobalCoord(T[D][O].coord);x?(C[0]=N,C[1]=S.y,M[0]=N,M[1]=S.y+S.height):(C[0]=S.x,C[1]=N,M[0]=S.x+S.width,M[1]=N);var k=new Line$1({anid:"minor_line_"+T[D][O].tickValue,autoBatch:!0,shape:{x1:C[0],y1:C[1],x2:M[0],y2:M[1]},style:w,silent:!0});subPixelOptimizeLine(k.shape,w.lineWidth),t.add(k)}},splitArea:function(o,t,r,s){rectCoordAxisBuildSplitArea(o,t,r,s)}},CartesianXAxisView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(CartesianAxisView),CartesianYAxisView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=CartesianXAxisView.type,r}return t.type="yAxis",t}(CartesianAxisView),GridView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,s){this.group.removeAll(),r.get("show")&&this.group.add(new Rect$2({shape:r.coordinateSystem.getRect(),style:defaults({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ComponentView$1),extraOption={offset:0};function install$g(o){o.registerComponentView(GridView),o.registerComponentModel(GridModel$1),o.registerCoordinateSystem("cartesian2d",Grid$1),axisModelCreator(o,"x",CartesianAxisModel,extraOption),axisModelCreator(o,"y",CartesianAxisModel,extraOption),o.registerComponentView(CartesianXAxisView),o.registerComponentView(CartesianYAxisView),o.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var ATTR="\0_ec_interaction_mutex";function take(o,t,r){var s=getStore(o);s[t]=r}function release(o,t,r){var s=getStore(o),l=s[t];l===r&&(s[t]=null)}function isTaken(o,t){return!!getStore(o)[t]}function getStore(o){return o[ATTR]||(o[ATTR]={})}registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},noop);var RoamController=function(o){__extends(t,o);function t(r){var s=o.call(this)||this;s._zr=r;var l=bind$1(s._mousedownHandler,s),h=bind$1(s._mousemoveHandler,s),v=bind$1(s._mouseupHandler,s),S=bind$1(s._mousewheelHandler,s),x=bind$1(s._pinchHandler,s);return s.enable=function(T,C){this.disable(),this._opt=defaults(clone$3(C)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),T==null&&(T=!0),(T===!0||T==="move"||T==="pan")&&(r.on("mousedown",l),r.on("mousemove",h),r.on("mouseup",v)),(T===!0||T==="scale"||T==="zoom")&&(r.on("mousewheel",S),r.on("pinch",x))},s.disable=function(){r.off("mousedown",l),r.off("mousemove",h),r.off("mouseup",v),r.off("mousewheel",S),r.off("pinch",x)},s}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!isMiddleOrRightButtonOnMouseUpDown(r)){for(var s=r.target;s;){if(s.draggable)return;s=s.__hostTarget||s.parent}var l=r.offsetX,h=r.offsetY;this.pointerChecker&&this.pointerChecker(r,l,h)&&(this._x=l,this._y=h,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!isAvailableBehavior("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||isTaken(this._zr,"globalPan"))){var s=r.offsetX,l=r.offsetY,h=this._x,v=this._y,S=s-h,x=l-v;this._x=s,this._y=l,this._opt.preventDefaultMouseMove&&stop(r.event),trigger$1(this,"pan","moveOnMouseMove",r,{dx:S,dy:x,oldX:h,oldY:v,newX:s,newY:l,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){isMiddleOrRightButtonOnMouseUpDown(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var s=isAvailableBehavior("zoomOnMouseWheel",r,this._opt),l=isAvailableBehavior("moveOnMouseWheel",r,this._opt),h=r.wheelDelta,v=Math.abs(h),S=r.offsetX,x=r.offsetY;if(!(h===0||!s&&!l)){if(s){var T=v>3?1.4:v>1?1.2:1.1,C=h>0?T:1/T;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",r,{scale:C,originX:S,originY:x,isAvailableBehavior:null})}if(l){var M=Math.abs(h),w=(h>0?1:-1)*(M>3?.4:M>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:w,originX:S,originY:x,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!isTaken(this._zr,"globalPan")){var s=r.pinchScale>1?1.1:1/1.1;checkPointerAndTrigger(this,"zoom",null,r,{scale:s,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Eventful$1);function checkPointerAndTrigger(o,t,r,s,l){o.pointerChecker&&o.pointerChecker(s,l.originX,l.originY)&&(stop(s.event),trigger$1(o,t,r,s,l))}function trigger$1(o,t,r,s,l){l.isAvailableBehavior=bind$1(isAvailableBehavior,null,r,s),o.trigger(t,l)}function isAvailableBehavior(o,t,r){var s=r[o];return!o||s&&(!isString(s)||t.event[s+"Key"])}const RoamController$1=RoamController;var IRRELEVANT_EXCLUDES={axisPointer:1,tooltip:1,brush:1};function onIrrelevantElement(o,t,r){var s=t.getComponentByElement(o.topTarget),l=s&&s.coordinateSystem;return s&&s!==r&&!IRRELEVANT_EXCLUDES.hasOwnProperty(s.mainType)&&l&&l.model!==r}var each$9=each$c,isObject=isObject$3,CATEGORY_DEFAULT_VISUAL_INDEX=-1,VisualMapping=function(){function o(t){var r=t.mappingMethod,s=t.type,l=this.option=clone$3(t);this.type=s,this.mappingMethod=r,this._normalizeData=normalizers[r];var h=o.visualHandlers[s];this.applyVisual=h.applyVisual,this.getColorMapper=h.getColorMapper,this._normalizedToVisual=h._normalizedToVisual[r],r==="piecewise"?(normalizeVisualRange(l),preprocessForPiecewise(l)):r==="category"?l.categories?preprocessForSpecifiedCategory(l):normalizeVisualRange(l,!0):(assert(r!=="linear"||l.dataExtent),normalizeVisualRange(l))}return o.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},o.prototype.getNormalizer=function(){return bind$1(this._normalizeData,this)},o.listVisualTypes=function(){return keys(o.visualHandlers)},o.isValidType=function(t){return o.visualHandlers.hasOwnProperty(t)},o.eachVisual=function(t,r,s){isObject$3(t)?each$c(t,r,s):r.call(s,t)},o.mapVisual=function(t,r,s){var l,h=isArray$1(t)?[]:isObject$3(t)?{}:(l=!0,null);return o.eachVisual(t,function(v,S){var x=r.call(s,v,S);l?h=x:h[S]=x}),h},o.retrieveVisuals=function(t){var r={},s;return t&&each$9(o.visualHandlers,function(l,h){t.hasOwnProperty(h)&&(r[h]=t[h],s=!0)}),s?r:null},o.prepareVisualTypes=function(t){if(isArray$1(t))t=t.slice();else if(isObject(t)){var r=[];each$9(t,function(s,l){r.push(l)}),t=r}else return[];return t.sort(function(s,l){return l==="color"&&s!=="color"&&s.indexOf("color")===0?1:-1}),t},o.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},o.findPieceIndex=function(t,r,s){for(var l,h=1/0,v=0,S=r.length;v<S;v++){var x=r[v].value;if(x!=null){if(x===t||isString(x)&&x===t+"")return v;s&&w(x,v)}}for(var v=0,S=r.length;v<S;v++){var T=r[v],C=T.interval,M=T.close;if(C){if(C[0]===-1/0){if(littleThan(M[1],t,C[1]))return v}else if(C[1]===1/0){if(littleThan(M[0],C[0],t))return v}else if(littleThan(M[0],C[0],t)&&littleThan(M[1],t,C[1]))return v;s&&w(C[0],v),s&&w(C[1],v)}}if(s)return t===1/0?r.length-1:t===-1/0?0:l;function w(D,O){var N=Math.abs(D-t);N<h&&(h=N,l=O)}},o.visualHandlers={color:{applyVisual:makeApplyVisual("color"),getColorMapper:function(){var t=this.option;return bind$1(t.mappingMethod==="category"?function(r,s){return!s&&(r=this._normalizeData(r)),doMapCategory.call(this,r)}:function(r,s,l){var h=!!l;return!s&&(r=this._normalizeData(r)),l=fastLerp(r,t.parsedVisual,l),h?l:stringify(l,"rgba")},this)},_normalizedToVisual:{linear:function(t){return stringify(fastLerp(t,this.option.parsedVisual),"rgba")},category:doMapCategory,piecewise:function(t,r){var s=getSpecifiedVisual.call(this,r);return s==null&&(s=stringify(fastLerp(t,this.option.parsedVisual),"rgba")),s},fixed:doMapFixed}},colorHue:makePartialColorVisualHandler(function(t,r){return modifyHSL(t,r)}),colorSaturation:makePartialColorVisualHandler(function(t,r){return modifyHSL(t,null,r)}),colorLightness:makePartialColorVisualHandler(function(t,r){return modifyHSL(t,null,null,r)}),colorAlpha:makePartialColorVisualHandler(function(t,r){return modifyAlpha(t,r)}),decal:{applyVisual:makeApplyVisual("decal"),_normalizedToVisual:{linear:null,category:doMapCategory,piecewise:null,fixed:null}},opacity:{applyVisual:makeApplyVisual("opacity"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])},liftZ:{applyVisual:makeApplyVisual("liftZ"),_normalizedToVisual:{linear:doMapFixed,category:doMapFixed,piecewise:doMapFixed,fixed:doMapFixed}},symbol:{applyVisual:function(t,r,s){var l=this.mapValueToVisual(t);s("symbol",l)},_normalizedToVisual:{linear:doMapToArray,category:doMapCategory,piecewise:function(t,r){var s=getSpecifiedVisual.call(this,r);return s==null&&(s=doMapToArray.call(this,t)),s},fixed:doMapFixed}},symbolSize:{applyVisual:makeApplyVisual("symbolSize"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])}},o}();function preprocessForPiecewise(o){var t=o.pieceList;o.hasSpecialVisual=!1,each$c(t,function(r,s){r.originIndex=s,r.visual!=null&&(o.hasSpecialVisual=!0)})}function preprocessForSpecifiedCategory(o){var t=o.categories,r=o.categoryMap={},s=o.visual;if(each$9(t,function(v,S){r[v]=S}),!isArray$1(s)){var l=[];isObject$3(s)?each$9(s,function(v,S){var x=r[S];l[x??CATEGORY_DEFAULT_VISUAL_INDEX]=v}):l[CATEGORY_DEFAULT_VISUAL_INDEX]=s,s=setVisualToOption(o,l)}for(var h=t.length-1;h>=0;h--)s[h]==null&&(delete r[t[h]],t.pop())}function normalizeVisualRange(o,t){var r=o.visual,s=[];isObject$3(r)?each$9(r,function(h){s.push(h)}):r!=null&&s.push(r);var l={color:1,symbol:1};!t&&s.length===1&&!l.hasOwnProperty(o.type)&&(s[1]=s[0]),setVisualToOption(o,s)}function makePartialColorVisualHandler(o){return{applyVisual:function(t,r,s){var l=this.mapValueToVisual(t);s("color",o(r("color"),l))},_normalizedToVisual:createNormalizedToNumericVisual([0,1])}}function doMapToArray(o){var t=this.option.visual;return t[Math.round(linearMap$2(o,[0,1],[0,t.length-1],!0))]||{}}function makeApplyVisual(o){return function(t,r,s){s(o,this.mapValueToVisual(t))}}function doMapCategory(o){var t=this.option.visual;return t[this.option.loop&&o!==CATEGORY_DEFAULT_VISUAL_INDEX?o%t.length:o]}function doMapFixed(){return this.option.visual[0]}function createNormalizedToNumericVisual(o){return{linear:function(t){return linearMap$2(t,o,this.option.visual,!0)},category:doMapCategory,piecewise:function(t,r){var s=getSpecifiedVisual.call(this,r);return s==null&&(s=linearMap$2(t,o,this.option.visual,!0)),s},fixed:doMapFixed}}function getSpecifiedVisual(o){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var s=VisualMapping.findPieceIndex(o,r),l=r[s];if(l&&l.visual)return l.visual[this.type]}}function setVisualToOption(o,t){return o.visual=t,o.type==="color"&&(o.parsedVisual=map$2(t,function(r){var s=parse$1(r);return s||[0,0,0,1]})),t}var normalizers={linear:function(o){return linearMap$2(o,this.option.dataExtent,[0,1],!0)},piecewise:function(o){var t=this.option.pieceList,r=VisualMapping.findPieceIndex(o,t,!0);if(r!=null)return linearMap$2(r,[0,t.length-1],[0,1],!0)},category:function(o){var t=this.option.categories?this.option.categoryMap[o]:o;return t??CATEGORY_DEFAULT_VISUAL_INDEX},fixed:noop};function littleThan(o,t,r){return o?t<=r:t<r}const VisualMapping$1=VisualMapping;function sliderMove(o,t,r,s,l,h){o=o||0;var v=r[1]-r[0];if(l!=null&&(l=restrict(l,[0,v])),h!=null&&(h=Math.max(h,l??0)),s==="all"){var S=Math.abs(t[1]-t[0]);S=restrict(S,[0,v]),l=h=restrict(S,[l,h]),s=0}t[0]=restrict(t[0],r),t[1]=restrict(t[1],r);var x=getSpanSign(t,s);t[s]+=o;var T=l||0,C=r.slice();x.sign<0?C[0]+=T:C[1]-=T,t[s]=restrict(t[s],C);var M;return M=getSpanSign(t,s),l!=null&&(M.sign!==x.sign||M.span<l)&&(t[1-s]=t[s]+x.sign*l),M=getSpanSign(t,s),h!=null&&M.span>h&&(t[1-s]=t[s]+M.sign*h),t}function getSpanSign(o,t){var r=o[t]-o[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function restrict(o,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,o))}var BRUSH_PANEL_GLOBAL=!0,mathMin$1=Math.min,mathMax$1=Math.max,mathPow=Math.pow,COVER_Z=1e4,UNSELECT_THRESHOLD=6,MIN_RESIZE_LINE_WIDTH=6,MUTEX_RESOURCE_KEY="globalPan",DIRECTION_MAP={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},CURSOR_MAP={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},DEFAULT_BRUSH_OPT={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},baseUID=0,BrushController=function(o){__extends(t,o);function t(r){var s=o.call(this)||this;return s._track=[],s._covers=[],s._handlers={},s._zr=r,s.group=new Group$3,s._uid="brushController_"+baseUID++,each$c(pointerHandlers,function(l,h){this._handlers[h]=bind$1(l,this)},s),s}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var s=this._zr;this._enableGlobalPan||take(s,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(l,h){s.on(h,l)}),this._brushType=r.brushType,this._brushOption=merge(clone$3(DEFAULT_BRUSH_OPT),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;release(r,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(s,l){r.off(l,s)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var s=this._panels={};each$c(r,function(l){s[l.panelId]=clone$3(l)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var s=this.group;return this._zr.add(s),s.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=s.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=map$2(r,function(w){return merge(clone$3(DEFAULT_BRUSH_OPT),w,!0)});var s="\0-brush-index-",l=this._covers,h=this._covers=[],v=this,S=this._creatingCover;return new DataDiffer$1(l,r,T,x).add(C).update(C).remove(M).execute(),this;function x(w,D){return(w.id!=null?w.id:s+D)+"-"+w.brushType}function T(w,D){return x(w.__brushOption,D)}function C(w,D){var O=r[w];if(D!=null&&l[D]===S)h[w]=l[D];else{var N=h[w]=D!=null?(l[D].__brushOption=O,l[D]):endCreating(v,createCover(v,O));updateCoverAfterCreation(v,N)}}function M(w){l[w]!==S&&v.group.remove(l[w])}},t.prototype.unmount=function(){return this.enableBrush(!1),clearCovers(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Eventful$1);function createCover(o,t){var r=coverRenderers[t.brushType].createCover(o,t);return r.__brushOption=t,updateZ(r,t),o.group.add(r),r}function endCreating(o,t){var r=getCoverRenderer(t);return r.endCreating&&(r.endCreating(o,t),updateZ(t,t.__brushOption)),t}function updateCoverShape(o,t){var r=t.__brushOption;getCoverRenderer(t).updateCoverShape(o,t,r.range,r)}function updateZ(o,t){var r=t.z;r==null&&(r=COVER_Z),o.traverse(function(s){s.z=r,s.z2=r})}function updateCoverAfterCreation(o,t){getCoverRenderer(t).updateCommon(o,t),updateCoverShape(o,t)}function getCoverRenderer(o){return coverRenderers[o.__brushOption.brushType]}function getPanelByPoint(o,t,r){var s=o._panels;if(!s)return BRUSH_PANEL_GLOBAL;var l,h=o._transform;return each$c(s,function(v){v.isTargetByCursor(t,r,h)&&(l=v)}),l}function getPanelByCover(o,t){var r=o._panels;if(!r)return BRUSH_PANEL_GLOBAL;var s=t.__brushOption.panelId;return s!=null?r[s]:BRUSH_PANEL_GLOBAL}function clearCovers(o){var t=o._covers,r=t.length;return each$c(t,function(s){o.group.remove(s)},o),t.length=0,!!r}function trigger(o,t){var r=map$2(o._covers,function(s){var l=s.__brushOption,h=clone$3(l.range);return{brushType:l.brushType,panelId:l.panelId,range:h}});o.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function shouldShowCover(o){var t=o._track;if(!t.length)return!1;var r=t[t.length-1],s=t[0],l=r[0]-s[0],h=r[1]-s[1],v=mathPow(l*l+h*h,.5);return v>UNSELECT_THRESHOLD}function getTrackEnds(o){var t=o.length-1;return t<0&&(t=0),[o[0],o[t]]}function createBaseRectCover(o,t,r,s){var l=new Group$3;return l.add(new Rect$2({name:"main",style:makeStyle(r),silent:!0,draggable:!0,cursor:"move",drift:curry$1(driftRect,o,t,l,["n","s","w","e"]),ondragend:curry$1(trigger,t,{isEnd:!0})})),each$c(s,function(h){l.add(new Rect$2({name:h.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,o,t,l,h),ondragend:curry$1(trigger,t,{isEnd:!0})}))}),l}function updateBaseRect(o,t,r,s){var l=s.brushStyle.lineWidth||0,h=mathMax$1(l,MIN_RESIZE_LINE_WIDTH),v=r[0][0],S=r[1][0],x=v-l/2,T=S-l/2,C=r[0][1],M=r[1][1],w=C-h+l/2,D=M-h+l/2,O=C-v,N=M-S,k=O+l,F=N+l;updateRectShape(o,t,"main",v,S,O,N),s.transformable&&(updateRectShape(o,t,"w",x,T,h,F),updateRectShape(o,t,"e",w,T,h,F),updateRectShape(o,t,"n",x,T,k,h),updateRectShape(o,t,"s",x,D,k,h),updateRectShape(o,t,"nw",x,T,h,h),updateRectShape(o,t,"ne",w,T,h,h),updateRectShape(o,t,"sw",x,D,h,h),updateRectShape(o,t,"se",w,D,h,h))}function updateCommon(o,t){var r=t.__brushOption,s=r.transformable,l=t.childAt(0);l.useStyle(makeStyle(r)),l.attr({silent:!s,cursor:s?"move":"default"}),each$c([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(h){var v=t.childOfName(h.join("")),S=h.length===1?getGlobalDirection1(o,h[0]):getGlobalDirection2(o,h);v&&v.attr({silent:!s,invisible:!s,cursor:s?CURSOR_MAP[S]+"-resize":null})})}function updateRectShape(o,t,r,s,l,h,v){var S=t.childOfName(r);S&&S.setShape(pointsToRect(clipByPanel(o,t,[[s,l],[s+h,l+v]])))}function makeStyle(o){return defaults({strokeNoScale:!0},o.brushStyle)}function formatRectRange(o,t,r,s){var l=[mathMin$1(o,r),mathMin$1(t,s)],h=[mathMax$1(o,r),mathMax$1(t,s)];return[[l[0],h[0]],[l[1],h[1]]]}function getTransform(o){return getTransform$1(o.group)}function getGlobalDirection1(o,t){var r={w:"left",e:"right",n:"top",s:"bottom"},s={left:"w",right:"e",top:"n",bottom:"s"},l=transformDirection(r[t],getTransform(o));return s[l]}function getGlobalDirection2(o,t){var r=[getGlobalDirection1(o,t[0]),getGlobalDirection1(o,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function driftRect(o,t,r,s,l,h){var v=r.__brushOption,S=o.toRectRange(v.range),x=toLocalDelta(t,l,h);each$c(s,function(T){var C=DIRECTION_MAP[T];S[C[0]][C[1]]+=x[C[0]]}),v.range=o.fromRectRange(formatRectRange(S[0][0],S[1][0],S[0][1],S[1][1])),updateCoverAfterCreation(t,r),trigger(t,{isEnd:!1})}function driftPolygon(o,t,r,s){var l=t.__brushOption.range,h=toLocalDelta(o,r,s);each$c(l,function(v){v[0]+=h[0],v[1]+=h[1]}),updateCoverAfterCreation(o,t),trigger(o,{isEnd:!1})}function toLocalDelta(o,t,r){var s=o.group,l=s.transformCoordToLocal(t,r),h=s.transformCoordToLocal(0,0);return[l[0]-h[0],l[1]-h[1]]}function clipByPanel(o,t,r){var s=getPanelByCover(o,t);return s&&s!==BRUSH_PANEL_GLOBAL?s.clipPath(r,o._transform):clone$3(r)}function pointsToRect(o){var t=mathMin$1(o[0][0],o[1][0]),r=mathMin$1(o[0][1],o[1][1]),s=mathMax$1(o[0][0],o[1][0]),l=mathMax$1(o[0][1],o[1][1]);return{x:t,y:r,width:s-t,height:l-r}}function resetCursor(o,t,r){if(!(!o._brushType||isOutsideZrArea(o,t.offsetX,t.offsetY))){var s=o._zr,l=o._covers,h=getPanelByPoint(o,t,r);if(!o._dragging)for(var v=0;v<l.length;v++){var S=l[v].__brushOption;if(h&&(h===BRUSH_PANEL_GLOBAL||S.panelId===h.panelId)&&coverRenderers[S.brushType].contain(l[v],r[0],r[1]))return}h&&s.setCursorStyle("crosshair")}}function preventDefault(o){var t=o.event;t.preventDefault&&t.preventDefault()}function mainShapeContain(o,t,r){return o.childOfName("main").contain(t,r)}function updateCoverByMouse(o,t,r,s){var l=o._creatingCover,h=o._creatingPanel,v=o._brushOption,S;if(o._track.push(r.slice()),shouldShowCover(o)||l){if(h&&!l){v.brushMode==="single"&&clearCovers(o);var x=clone$3(v);x.brushType=determineBrushType(x.brushType,h),x.panelId=h===BRUSH_PANEL_GLOBAL?null:h.panelId,l=o._creatingCover=createCover(o,x),o._covers.push(l)}if(l){var T=coverRenderers[determineBrushType(o._brushType,h)],C=l.__brushOption;C.range=T.getCreatingRange(clipByPanel(o,l,o._track)),s&&(endCreating(o,l),T.updateCommon(o,l)),updateCoverShape(o,l),S={isEnd:s}}}else s&&v.brushMode==="single"&&v.removeOnClick&&getPanelByPoint(o,t,r)&&clearCovers(o)&&(S={isEnd:s,removeOnClick:!0});return S}function determineBrushType(o,t){return o==="auto"?t.defaultBrushType:o}var pointerHandlers={mousedown:function(o){if(this._dragging)handleDragEnd(this,o);else if(!o.target||!o.target.draggable){preventDefault(o);var t=this.group.transformCoordToLocal(o.offsetX,o.offsetY);this._creatingCover=null;var r=this._creatingPanel=getPanelByPoint(this,o,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(o){var t=o.offsetX,r=o.offsetY,s=this.group.transformCoordToLocal(t,r);if(resetCursor(this,o,s),this._dragging){preventDefault(o);var l=updateCoverByMouse(this,o,s,!1);l&&trigger(this,l)}},mouseup:function(o){handleDragEnd(this,o)}};function handleDragEnd(o,t){if(o._dragging){preventDefault(t);var r=t.offsetX,s=t.offsetY,l=o.group.transformCoordToLocal(r,s),h=updateCoverByMouse(o,t,l,!0);o._dragging=!1,o._track=[],o._creatingCover=null,h&&trigger(o,h)}}function isOutsideZrArea(o,t,r){var s=o._zr;return t<0||t>s.getWidth()||r<0||r>s.getHeight()}var coverRenderers={lineX:getLineRenderer(0),lineY:getLineRenderer(1),rect:{createCover:function(o,t){function r(s){return s}return createBaseRectCover({toRectRange:r,fromRectRange:r},o,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(o){var t=getTrackEnds(o);return formatRectRange(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(o,t,r,s){updateBaseRect(o,t,r,s)},updateCommon,contain:mainShapeContain},polygon:{createCover:function(o,t){var r=new Group$3;return r.add(new Polyline$1({name:"main",style:makeStyle(t),silent:!0})),r},getCreatingRange:function(o){return o},endCreating:function(o,t){t.remove(t.childAt(0)),t.add(new Polygon$1({name:"main",draggable:!0,drift:curry$1(driftPolygon,o,t),ondragend:curry$1(trigger,o,{isEnd:!0})}))},updateCoverShape:function(o,t,r,s){t.childAt(0).setShape({points:clipByPanel(o,t,r)})},updateCommon,contain:mainShapeContain}};function getLineRenderer(o){return{createCover:function(t,r){return createBaseRectCover({toRectRange:function(s){var l=[s,[0,100]];return o&&l.reverse(),l},fromRectRange:function(s){return s[o]}},t,r,[[["w"],["e"]],[["n"],["s"]]][o])},getCreatingRange:function(t){var r=getTrackEnds(t),s=mathMin$1(r[0][o],r[1][o]),l=mathMax$1(r[0][o],r[1][o]);return[s,l]},updateCoverShape:function(t,r,s,l){var h,v=getPanelByCover(t,r);if(v!==BRUSH_PANEL_GLOBAL&&v.getLinearBrushOtherExtent)h=v.getLinearBrushOtherExtent(o);else{var S=t._zr;h=[0,[S.getWidth(),S.getHeight()][1-o]]}var x=[s,h];o&&x.reverse(),updateBaseRect(t,r,x,l)},updateCommon,contain:mainShapeContain}}const BrushController$1=BrushController;function makeRectPanelClipPath(o){return o=normalizeRect(o),function(t){return clipPointsByRect(t,o)}}function makeLinearBrushOtherExtent(o,t){return o=normalizeRect(o),function(r){var s=t??r,l=s?o.width:o.height,h=s?o.x:o.y;return[h,h+(l||0)]}}function makeRectIsTargetByCursor(o,t,r){var s=normalizeRect(o);return function(l,h){return s.contain(h[0],h[1])&&!onIrrelevantElement(l,t,r)}}function normalizeRect(o){return BoundingRect$1.create(o)}function isEC4CompatibleStyle(o,t,r,s){return o&&(o.legacy||o.legacy!==!1&&!r&&!s&&t!=="tspan"&&(t==="text"||hasOwn(o,"text")))}function convertFromEC4CompatibleStyle(o,t,r){var s=o,l,h,v;if(t==="text")v=s;else{v={},hasOwn(s,"text")&&(v.text=s.text),hasOwn(s,"rich")&&(v.rich=s.rich),hasOwn(s,"textFill")&&(v.fill=s.textFill),hasOwn(s,"textStroke")&&(v.stroke=s.textStroke),hasOwn(s,"fontFamily")&&(v.fontFamily=s.fontFamily),hasOwn(s,"fontSize")&&(v.fontSize=s.fontSize),hasOwn(s,"fontStyle")&&(v.fontStyle=s.fontStyle),hasOwn(s,"fontWeight")&&(v.fontWeight=s.fontWeight),h={type:"text",style:v,silent:!0},l={};var S=hasOwn(s,"textPosition");r?l.position=S?s.textPosition:"inside":S&&(l.position=s.textPosition),hasOwn(s,"textPosition")&&(l.position=s.textPosition),hasOwn(s,"textOffset")&&(l.offset=s.textOffset),hasOwn(s,"textRotation")&&(l.rotation=s.textRotation),hasOwn(s,"textDistance")&&(l.distance=s.textDistance)}return convertEC4CompatibleRichItem(v,o),each$c(v.rich,function(x){convertEC4CompatibleRichItem(x,x)}),{textConfig:l,textContent:h}}function convertEC4CompatibleRichItem(o,t){t&&(t.font=t.textFont||t.font,hasOwn(t,"textStrokeWidth")&&(o.lineWidth=t.textStrokeWidth),hasOwn(t,"textAlign")&&(o.align=t.textAlign),hasOwn(t,"textVerticalAlign")&&(o.verticalAlign=t.textVerticalAlign),hasOwn(t,"textLineHeight")&&(o.lineHeight=t.textLineHeight),hasOwn(t,"textWidth")&&(o.width=t.textWidth),hasOwn(t,"textHeight")&&(o.height=t.textHeight),hasOwn(t,"textBackgroundColor")&&(o.backgroundColor=t.textBackgroundColor),hasOwn(t,"textPadding")&&(o.padding=t.textPadding),hasOwn(t,"textBorderColor")&&(o.borderColor=t.textBorderColor),hasOwn(t,"textBorderWidth")&&(o.borderWidth=t.textBorderWidth),hasOwn(t,"textBorderRadius")&&(o.borderRadius=t.textBorderRadius),hasOwn(t,"textBoxShadowColor")&&(o.shadowColor=t.textBoxShadowColor),hasOwn(t,"textBoxShadowBlur")&&(o.shadowBlur=t.textBoxShadowBlur),hasOwn(t,"textBoxShadowOffsetX")&&(o.shadowOffsetX=t.textBoxShadowOffsetX),hasOwn(t,"textBoxShadowOffsetY")&&(o.shadowOffsetY=t.textBoxShadowOffsetY))}var LEGACY_TRANSFORM_PROPS_MAP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LEGACY_TRANSFORM_PROPS=keys(LEGACY_TRANSFORM_PROPS_MAP);reduce(TRANSFORMABLE_PROPS,function(o,t){return o[t]=1,o},{});TRANSFORMABLE_PROPS.join(", ");var ELEMENT_ANIMATABLE_PROPS=["","style","shape","extra"],transitionInnerStore=makeInner();function getElementAnimationConfig(o,t,r,s,l){var h=o+"Animation",v=getAnimationConfig(o,s,l)||{},S=transitionInnerStore(t).userDuring;return v.duration>0&&(v.during=S?bind$1(duringCall,{el:t,userDuring:S}):null,v.setToFinal=!0,v.scope=o),extend(v,r[h]),v}function applyUpdateTransition(o,t,r,s){s=s||{};var l=s.dataIndex,h=s.isInit,v=s.clearStyle,S=r.isAnimationEnabled(),x=transitionInnerStore(o),T=t.style;x.userDuring=t.during;var C={},M={};if(prepareTransformAllPropsFinal(o,t,M),prepareShapeOrExtraAllPropsFinal("shape",t,M),prepareShapeOrExtraAllPropsFinal("extra",t,M),!h&&S&&(prepareTransformTransitionFrom(o,t,C),prepareShapeOrExtraTransitionFrom("shape",o,t,C),prepareShapeOrExtraTransitionFrom("extra",o,t,C),prepareStyleTransitionFrom(o,t,T,C)),M.style=T,applyPropsDirectly(o,M,v),applyMiscProps(o,t),S)if(h){var w={};each$c(ELEMENT_ANIMATABLE_PROPS,function(O){var N=O?t[O]:t;N&&N.enterFrom&&(O&&(w[O]=w[O]||{}),extend(O?w[O]:w,N.enterFrom))});var D=getElementAnimationConfig("enter",o,t,r,l);D.duration>0&&o.animateFrom(w,D)}else applyPropsTransition(o,t,l||0,r,C);updateLeaveTo(o,t),T?o.dirty():o.markRedraw()}function updateLeaveTo(o,t){for(var r=transitionInnerStore(o).leaveToProps,s=0;s<ELEMENT_ANIMATABLE_PROPS.length;s++){var l=ELEMENT_ANIMATABLE_PROPS[s],h=l?t[l]:t;h&&h.leaveTo&&(r||(r=transitionInnerStore(o).leaveToProps={}),l&&(r[l]=r[l]||{}),extend(l?r[l]:r,h.leaveTo))}}function applyLeaveTransition(o,t,r,s){if(o){var l=o.parent,h=transitionInnerStore(o).leaveToProps;if(h){var v=getElementAnimationConfig("update",o,t,r,0);v.done=function(){l.remove(o),s&&s()},o.animateTo(h,v)}else l.remove(o),s&&s()}}function isTransitionAll(o){return o==="all"}function applyPropsDirectly(o,t,r){var s=t.style;if(!o.isGroup&&s){if(r){o.useStyle({});for(var l=o.animators,h=0;h<l.length;h++){var v=l[h];v.targetName==="style"&&v.changeTarget(o.style)}}o.setStyle(s)}t&&(t.style=null,t&&o.attr(t),t.style=s)}function applyPropsTransition(o,t,r,s,l){if(l){var h=getElementAnimationConfig("update",o,t,s,r);h.duration>0&&o.animateFrom(l,h)}}function applyMiscProps(o,t){hasOwn(t,"silent")&&(o.silent=t.silent),hasOwn(t,"ignore")&&(o.ignore=t.ignore),o instanceof Displayable$1&&hasOwn(t,"invisible")&&(o.invisible=t.invisible),o instanceof Path$1&&hasOwn(t,"autoBatch")&&(o.autoBatch=t.autoBatch)}var tmpDuringScope={},transitionDuringAPI={setTransform:function(o,t){return tmpDuringScope.el[o]=t,this},getTransform:function(o){return tmpDuringScope.el[o]},setShape:function(o,t){var r=tmpDuringScope.el,s=r.shape||(r.shape={});return s[o]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(o){var t=tmpDuringScope.el.shape;if(t)return t[o]},setStyle:function(o,t){var r=tmpDuringScope.el,s=r.style;return s&&(s[o]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(o){var t=tmpDuringScope.el.style;if(t)return t[o]},setExtra:function(o,t){var r=tmpDuringScope.el.extra||(tmpDuringScope.el.extra={});return r[o]=t,this},getExtra:function(o){var t=tmpDuringScope.el.extra;if(t)return t[o]}};function duringCall(){var o=this,t=o.el;if(t){var r=transitionInnerStore(t).userDuring,s=o.userDuring;if(r!==s){o.el=o.userDuring=null;return}tmpDuringScope.el=t,s(transitionDuringAPI)}}function prepareShapeOrExtraTransitionFrom(o,t,r,s){var l=r[o];if(l){var h=t[o],v;if(h){var S=r.transition,x=l.transition;if(x)if(!v&&(v=s[o]={}),isTransitionAll(x))extend(v,h);else for(var T=normalizeToArray(x),C=0;C<T.length;C++){var M=T[C],w=h[M];v[M]=w}else if(isTransitionAll(S)||indexOf(S,o)>=0){!v&&(v=s[o]={});for(var D=keys(h),C=0;C<D.length;C++){var M=D[C],w=h[M];isNonStyleTransitionEnabled(l[M],w)&&(v[M]=w)}}}}}function prepareShapeOrExtraAllPropsFinal(o,t,r){var s=t[o];if(s)for(var l=r[o]={},h=keys(s),v=0;v<h.length;v++){var S=h[v];l[S]=cloneValue(s[S])}}function prepareTransformTransitionFrom(o,t,r){for(var s=t.transition,l=isTransitionAll(s)?TRANSFORMABLE_PROPS:normalizeToArray(s||[]),h=0;h<l.length;h++){var v=l[h];if(!(v==="style"||v==="shape"||v==="extra")){var S=o[v];r[v]=S}}}function prepareTransformAllPropsFinal(o,t,r){for(var s=0;s<LEGACY_TRANSFORM_PROPS.length;s++){var l=LEGACY_TRANSFORM_PROPS[s],h=LEGACY_TRANSFORM_PROPS_MAP[l],v=t[l];v&&(r[h[0]]=v[0],r[h[1]]=v[1])}for(var s=0;s<TRANSFORMABLE_PROPS.length;s++){var S=TRANSFORMABLE_PROPS[s];t[S]!=null&&(r[S]=t[S])}}function prepareStyleTransitionFrom(o,t,r,s){if(r){var l=o.style,h;if(l){var v=r.transition,S=t.transition;if(v&&!isTransitionAll(v)){var x=normalizeToArray(v);!h&&(h=s.style={});for(var T=0;T<x.length;T++){var C=x[T],M=l[C];h[C]=M}}else if(o.getAnimationStyleProps&&(isTransitionAll(S)||isTransitionAll(v)||indexOf(S,"style")>=0)){var w=o.getAnimationStyleProps(),D=w?w.style:null;if(D){!h&&(h=s.style={});for(var O=keys(r),T=0;T<O.length;T++){var C=O[T];if(D[C]){var M=l[C];h[C]=M}}}}}}}function isNonStyleTransitionEnabled(o,t){return isArrayLike(o)?o!==t:o!=null&&isFinite(o)}var getStateToRestore=makeInner(),KEYFRAME_EXCLUDE_KEYS=["percent","easing","shape","style","extra"];function stopPreviousKeyframeAnimationAndRestore(o){o.stopAnimation("keyframe"),o.attr(getStateToRestore(o))}function applyKeyframeAnimation(o,t,r){if(!(!r.isAnimationEnabled()||!t)){if(isArray$1(t)){each$c(t,function(S){applyKeyframeAnimation(o,S,r)});return}var s=t.keyframes,l=t.duration;if(r&&l==null){var h=getAnimationConfig("enter",r,0);l=h&&h.duration}if(!(!s||!l)){var v=getStateToRestore(o);each$c(ELEMENT_ANIMATABLE_PROPS,function(S){if(!(S&&!o[S])){var x;s.sort(function(T,C){return T.percent-C.percent}),each$c(s,function(T){var C=o.animators,M=S?T[S]:T;if(M){var w=keys(M);if(S||(w=filter(w,function(N){return indexOf(KEYFRAME_EXCLUDE_KEYS,N)<0})),!!w.length){x||(x=o.animate(S,t.loop,!0),x.scope="keyframe");for(var D=0;D<C.length;D++)C[D]!==x&&C[D].targetName===x.targetName&&C[D].stopTracks(w);S&&(v[S]=v[S]||{});var O=S?v[S]:v;each$c(w,function(N){O[N]=((S?o[S]:o)||{})[N]}),x.whenWithKeys(l*T.percent,M,w,T.easing)}}}),x&&x.delay(t.delay||0).duration(l).start(t.easing)}})}}}var inner$5=makeInner(),clone=clone$3,bind=bind$1,BaseAxisPointer=function(){function o(){this._dragging=!1,this.animationThreshold=15}return o.prototype.render=function(t,r,s,l){var h=r.get("value"),v=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=s,!(!l&&this._lastValue===h&&this._lastStatus===v)){this._lastValue=h,this._lastStatus=v;var S=this._group,x=this._handle;if(!v||v==="hide"){S&&S.hide(),x&&x.hide();return}S&&S.show(),x&&x.show();var T={};this.makeElOption(T,h,t,r,s);var C=T.graphicKey;C!==this._lastGraphicKey&&this.clear(s),this._lastGraphicKey=C;var M=this._moveAnimation=this.determineAnimation(t,r);if(!S)S=this._group=new Group$3,this.createPointerEl(S,T,t,r),this.createLabelEl(S,T,t,r),s.getZr().add(S);else{var w=curry$1(updateProps,r,M);this.updatePointerEl(S,T,w),this.updateLabelEl(S,T,w,r)}updateMandatoryProps(S,r,!0),this._renderHandle(h)}},o.prototype.remove=function(t){this.clear(t)},o.prototype.dispose=function(t){this.clear(t)},o.prototype.determineAnimation=function(t,r){var s=r.get("animation"),l=t.axis,h=l.type==="category",v=r.get("snap");if(!v&&!h)return!1;if(s==="auto"||s==null){var S=this.animationThreshold;if(h&&l.getBandWidth()>S)return!0;if(v){var x=getAxisInfo(t).seriesDataCount,T=l.getExtent();return Math.abs(T[0]-T[1])/x>S}return!1}return s===!0},o.prototype.makeElOption=function(t,r,s,l,h){},o.prototype.createPointerEl=function(t,r,s,l){var h=r.pointer;if(h){var v=inner$5(t).pointerEl=new graphic$1[h.type](clone(r.pointer));t.add(v)}},o.prototype.createLabelEl=function(t,r,s,l){if(r.label){var h=inner$5(t).labelEl=new ZRText$1(clone(r.label));t.add(h),updateLabelShowHide(h,l)}},o.prototype.updatePointerEl=function(t,r,s){var l=inner$5(t).pointerEl;l&&r.pointer&&(l.setStyle(r.pointer.style),s(l,{shape:r.pointer.shape}))},o.prototype.updateLabelEl=function(t,r,s,l){var h=inner$5(t).labelEl;h&&(h.setStyle(r.label.style),s(h,{x:r.label.x,y:r.label.y}),updateLabelShowHide(h,l))},o.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,s=this._api.getZr(),l=this._handle,h=r.getModel("handle"),v=r.get("status");if(!h.get("show")||!v||v==="hide"){l&&s.remove(l),this._handle=null;return}var S;this._handle||(S=!0,l=this._handle=createIcon(h.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(T){stop(T.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),s.add(l)),updateMandatoryProps(l,r,!1),l.setStyle(h.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var x=h.get("size");isArray$1(x)||(x=[x,x]),l.scaleX=x[0]/2,l.scaleY=x[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",h.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,S)}},o.prototype._moveHandleToValue=function(t,r){updateProps(this._axisPointerModel,!r&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},o.prototype._onHandleDragMove=function(t,r){var s=this._handle;if(s){this._dragging=!0;var l=this.updateHandleTransform(getHandleTransProps(s),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=l,s.stopAnimation(),s.attr(getHandleTransProps(l)),inner$5(s).lastProp=null,this._doDispatchAxisPointer()}},o.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,s=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:s.axis.dim,axisIndex:s.componentIndex}]})}},o.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},o.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),s=this._group,l=this._handle;r&&s&&(this._lastGraphicKey=null,s&&r.remove(s),l&&r.remove(l),this._group=null,this._handle=null,this._payloadInfo=null),clear$1(this,"_doDispatchAxisPointer")},o.prototype.doClear=function(){},o.prototype.buildLabel=function(t,r,s){return s=s||0,{x:t[s],y:t[1-s],width:r[s],height:r[1-s]}},o}();function updateProps(o,t,r,s){propsEqual(inner$5(r).lastProp,s)||(inner$5(r).lastProp=s,t?updateProps$1(r,s,o):(r.stopAnimation(),r.attr(s)))}function propsEqual(o,t){if(isObject$3(o)&&isObject$3(t)){var r=!0;return each$c(t,function(s,l){r=r&&propsEqual(o[l],s)}),!!r}else return o===t}function updateLabelShowHide(o,t){o[t.get(["label","show"])?"show":"hide"]()}function getHandleTransProps(o){return{x:o.x||0,y:o.y||0,rotation:o.rotation||0}}function updateMandatoryProps(o,t,r){var s=t.get("z"),l=t.get("zlevel");o&&o.traverse(function(h){h.type!=="group"&&(s!=null&&(h.z=s),l!=null&&(h.zlevel=l),h.silent=r)})}const BaseAxisPointer$1=BaseAxisPointer;function buildElStyle(o){var t=o.get("type"),r=o.getModel(t+"Style"),s;return t==="line"?(s=r.getLineStyle(),s.fill=null):t==="shadow"&&(s=r.getAreaStyle(),s.stroke=null),s}function buildLabelElOption(o,t,r,s,l){var h=r.get("value"),v=getValueLabel(h,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),S=r.getModel("label"),x=normalizeCssArray(S.get("padding")||0),T=S.getFont(),C=getBoundingRect(v,T),M=l.position,w=C.width+x[1]+x[3],D=C.height+x[0]+x[2],O=l.align;O==="right"&&(M[0]-=w),O==="center"&&(M[0]-=w/2);var N=l.verticalAlign;N==="bottom"&&(M[1]-=D),N==="middle"&&(M[1]-=D/2),confineInContainer(M,w,D,s);var k=S.get("backgroundColor");(!k||k==="auto")&&(k=t.get(["axisLine","lineStyle","color"])),o.label={x:M[0],y:M[1],style:createTextStyle$1(S,{text:v,font:T,fill:S.getTextColor(),padding:x,backgroundColor:k}),z2:10}}function confineInContainer(o,t,r,s){var l=s.getWidth(),h=s.getHeight();o[0]=Math.min(o[0]+t,l)-t,o[1]=Math.min(o[1]+r,h)-r,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0)}function getValueLabel(o,t,r,s,l){o=t.scale.parse(o);var h=t.scale.getLabel({value:o},{precision:l.precision}),v=l.formatter;if(v){var S={value:getAxisRawValue(t,{value:o}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};each$c(s,function(x){var T=r.getSeriesByIndex(x.seriesIndex),C=x.dataIndexInside,M=T&&T.getDataParams(C);M&&S.seriesData.push(M)}),isString(v)?h=v.replace("{value}",h):isFunction(v)&&(h=v(S))}return h}function getTransformedPosition(o,t,r){var s=create();return rotate(s,s,r.rotation),translate(s,s,r.position),applyTransform([o.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],s)}function buildCartesianSingleLabelElOption(o,t,r,s,l,h){var v=AxisBuilder$1.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=l.get(["label","margin"]),buildLabelElOption(t,s,l,h,{position:getTransformedPosition(s.axis,o,r),align:v.textAlign,verticalAlign:v.textVerticalAlign})}function makeLineShape(o,t,r){return r=r||0,{x1:o[r],y1:o[1-r],x2:t[r],y2:t[1-r]}}function makeRectShape(o,t,r){return r=r||0,{x:o[r],y:o[1-r],width:t[r],height:t[1-r]}}var CartesianAxisPointer=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,s,l,h,v){var S=l.axis,x=S.grid,T=h.get("type"),C=getCartesian(x,S).getOtherAxis(S).getGlobalExtent(),M=S.toGlobalCoord(S.dataToCoord(s,!0));if(T&&T!=="none"){var w=buildElStyle(h),D=pointerShapeBuilder[T](S,M,C);D.style=w,r.graphicKey=D.type,r.pointer=D}var O=layout$1(x.model,l);buildCartesianSingleLabelElOption(s,r,O,l,h,v)},t.prototype.getHandleTransform=function(r,s,l){var h=layout$1(s.axis.grid.model,s,{labelInside:!1});h.labelMargin=l.get(["handle","margin"]);var v=getTransformedPosition(s.axis,r,h);return{x:v[0],y:v[1],rotation:h.rotation+(h.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,s,l,h){var v=l.axis,S=v.grid,x=v.getGlobalExtent(!0),T=getCartesian(S,v).getOtherAxis(v).getGlobalExtent(),C=v.dim==="x"?0:1,M=[r.x,r.y];M[C]+=s[C],M[C]=Math.min(x[1],M[C]),M[C]=Math.max(x[0],M[C]);var w=(T[1]+T[0])/2,D=[w,w];D[C]=M[C];var O=[{verticalAlign:"middle"},{align:"center"}];return{x:M[0],y:M[1],rotation:r.rotation,cursorPoint:D,tooltipOption:O[C]}},t}(BaseAxisPointer$1);function getCartesian(o,t){var r={};return r[t.dim+"AxisIndex"]=t.index,o.getCartesian(r)}var pointerShapeBuilder={line:function(o,t,r){var s=makeLineShape([t,r[0]],[t,r[1]],getAxisDimIndex(o));return{type:"Line",subPixelOptimize:!0,shape:s}},shadow:function(o,t,r){var s=Math.max(1,o.getBandWidth()),l=r[1]-r[0];return{type:"Rect",shape:makeRectShape([t-s/2,r[0]],[s,l],getAxisDimIndex(o))}}};function getAxisDimIndex(o){return o.dim==="x"?0:1}const CartesianAxisPointer$1=CartesianAxisPointer;var AxisPointerModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ComponentModel$1);const AxisPointerModel$1=AxisPointerModel;var inner$4=makeInner(),each$8=each$c;function register(o,t,r){if(!env$1.node){var s=t.getZr();inner$4(s).records||(inner$4(s).records={}),initGlobalListeners(s,t);var l=inner$4(s).records[o]||(inner$4(s).records[o]={});l.handler=r}}function initGlobalListeners(o,t){if(inner$4(o).initialized)return;inner$4(o).initialized=!0,r("click",curry$1(doEnter,"click")),r("mousemove",curry$1(doEnter,"mousemove")),r("globalout",onLeave);function r(s,l){o.on(s,function(h){var v=makeDispatchAction$1(t);each$8(inner$4(o).records,function(S){S&&l(S,h,v.dispatchAction)}),dispatchTooltipFinally(v.pendings,t)})}}function dispatchTooltipFinally(o,t){var r=o.showTip.length,s=o.hideTip.length,l;r?l=o.showTip[r-1]:s&&(l=o.hideTip[s-1]),l&&(l.dispatchAction=null,t.dispatchAction(l))}function onLeave(o,t,r){o.handler("leave",null,r)}function doEnter(o,t,r,s){t.handler(o,r,s)}function makeDispatchAction$1(o){var t={showTip:[],hideTip:[]},r=function(s){var l=t[s.type];l?l.push(s):(s.dispatchAction=r,o.dispatchAction(s))};return{dispatchAction:r,pendings:t}}function unregister(o,t){if(!env$1.node){var r=t.getZr(),s=(inner$4(r).records||{})[o];s&&(inner$4(r).records[o]=null)}}var AxisPointerView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,s,l){var h=s.getComponent("tooltip"),v=r.get("triggerOn")||h&&h.get("triggerOn")||"mousemove|click";register("axisPointer",l,function(S,x,T){v!=="none"&&(S==="leave"||v.indexOf(S)>=0)&&T({type:"updateAxisPointer",currTrigger:S,x:x&&x.offsetX,y:x&&x.offsetY})})},t.prototype.remove=function(r,s){unregister("axisPointer",s)},t.prototype.dispose=function(r,s){unregister("axisPointer",s)},t.type="axisPointer",t}(ComponentView$1);const AxisPointerView$1=AxisPointerView;function findPointFromSeries(o,t){var r=[],s=o.seriesIndex,l;if(s==null||!(l=t.getSeriesByIndex(s)))return{point:[]};var h=l.getData(),v=queryDataIndex(h,o);if(v==null||v<0||isArray$1(v))return{point:[]};var S=h.getItemGraphicEl(v),x=l.coordinateSystem;if(l.getTooltipPosition)r=l.getTooltipPosition(v)||[];else if(x&&x.dataToPoint)if(o.isStacked){var T=x.getBaseAxis(),C=x.getOtherAxis(T),M=C.dim,w=T.dim,D=M==="x"||M==="radius"?1:0,O=h.mapDimension(w),N=[];N[D]=h.get(O,v),N[1-D]=h.get(h.getCalculationInfo("stackResultDimension"),v),r=x.dataToPoint(N)||[]}else r=x.dataToPoint(h.getValues(map$2(x.dimensions,function(F){return h.mapDimension(F)}),v))||[];else if(S){var k=S.getBoundingRect().clone();k.applyTransform(S.transform),r=[k.x+k.width/2,k.y+k.height/2]}return{point:r,el:S}}var inner$3=makeInner();function axisTrigger(o,t,r){var s=o.currTrigger,l=[o.x,o.y],h=o,v=o.dispatchAction||bind$1(r.dispatchAction,r),S=t.getComponent("axisPointer").coordSysAxesInfo;if(S){illegalPoint(l)&&(l=findPointFromSeries({seriesIndex:h.seriesIndex,dataIndex:h.dataIndex},t).point);var x=illegalPoint(l),T=h.axesInfo,C=S.axesInfo,M=s==="leave"||illegalPoint(l),w={},D={},O={list:[],map:{}},N={showPointer:curry$1(showPointer,D),showTooltip:curry$1(showTooltip,O)};each$c(S.coordSysMap,function(F,B){var V=x||F.containPoint(l);each$c(S.coordSysAxesInfo[B],function(z,U){var Y=z.axis,W=findInputAxisInfo(T,z);if(!M&&V&&(!T||W)){var X=W&&W.value;X==null&&!x&&(X=Y.pointToData(l)),X!=null&&processOnAxis(z,X,N,!1,w)}})});var k={};return each$c(C,function(F,B){var V=F.linkGroup;V&&!D[B]&&each$c(V.axesInfo,function(z,U){var Y=D[U];if(z!==F&&Y){var W=Y.value;V.mapper&&(W=F.axis.scale.parse(V.mapper(W,makeMapperParam(z),makeMapperParam(F)))),k[F.key]=W}})}),each$c(k,function(F,B){processOnAxis(C[B],F,N,!0,w)}),updateModelActually(D,C,w),dispatchTooltipActually(O,l,o,v),dispatchHighDownActually(C,v,r),w}}function processOnAxis(o,t,r,s,l){var h=o.axis;if(!(h.scale.isBlank()||!h.containData(t))){if(!o.involveSeries){r.showPointer(o,t);return}var v=buildPayloadsBySeries(t,o),S=v.payloadBatch,x=v.snapToValue;S[0]&&l.seriesIndex==null&&extend(l,S[0]),!s&&o.snap&&h.containData(x)&&x!=null&&(t=x),r.showPointer(o,t,S),r.showTooltip(o,v,x)}}function buildPayloadsBySeries(o,t){var r=t.axis,s=r.dim,l=o,h=[],v=Number.MAX_VALUE,S=-1;return each$c(t.seriesModels,function(x,T){var C=x.getData().mapDimensionsAll(s),M,w;if(x.getAxisTooltipData){var D=x.getAxisTooltipData(C,o,r);w=D.dataIndices,M=D.nestestValue}else{if(w=x.getData().indicesOfNearest(C[0],o,r.type==="category"?.5:null),!w.length)return;M=x.getData().get(C[0],w[0])}if(!(M==null||!isFinite(M))){var O=o-M,N=Math.abs(O);N<=v&&((N<v||O>=0&&S<0)&&(v=N,S=O,l=M,h.length=0),each$c(w,function(k){h.push({seriesIndex:x.seriesIndex,dataIndexInside:k,dataIndex:x.getData().getRawIndex(k)})}))}}),{payloadBatch:h,snapToValue:l}}function showPointer(o,t,r,s){o[t.key]={value:r,payloadBatch:s}}function showTooltip(o,t,r,s){var l=r.payloadBatch,h=t.axis,v=h.model,S=t.axisPointerModel;if(!(!t.triggerTooltip||!l.length)){var x=t.coordSys.model,T=makeKey(x),C=o.map[T];C||(C=o.map[T]={coordSysId:x.id,coordSysIndex:x.componentIndex,coordSysType:x.type,coordSysMainType:x.mainType,dataByAxis:[]},o.list.push(C)),C.dataByAxis.push({axisDim:h.dim,axisIndex:v.componentIndex,axisType:v.type,axisId:v.id,value:s,valueLabelOpt:{precision:S.get(["label","precision"]),formatter:S.get(["label","formatter"])},seriesDataIndices:l.slice()})}}function updateModelActually(o,t,r){var s=r.axesInfo=[];each$c(t,function(l,h){var v=l.axisPointerModel.option,S=o[h];S?(!l.useHandle&&(v.status="show"),v.value=S.value,v.seriesDataIndices=(S.payloadBatch||[]).slice()):!l.useHandle&&(v.status="hide"),v.status==="show"&&s.push({axisDim:l.axis.dim,axisIndex:l.axis.model.componentIndex,value:v.value})})}function dispatchTooltipActually(o,t,r,s){if(illegalPoint(t)||!o.list.length){s({type:"hideTip"});return}var l=((o.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};s({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:l.dataIndexInside,dataIndex:l.dataIndex,seriesIndex:l.seriesIndex,dataByCoordSys:o.list})}function dispatchHighDownActually(o,t,r){var s=r.getZr(),l="axisPointerLastHighlights",h=inner$3(s)[l]||{},v=inner$3(s)[l]={};each$c(o,function(T,C){var M=T.axisPointerModel.option;M.status==="show"&&each$c(M.seriesDataIndices,function(w){var D=w.seriesIndex+" | "+w.dataIndex;v[D]=w})});var S=[],x=[];each$c(h,function(T,C){!v[C]&&x.push(T)}),each$c(v,function(T,C){!h[C]&&S.push(T)}),x.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:x}),S.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:S})}function findInputAxisInfo(o,t){for(var r=0;r<(o||[]).length;r++){var s=o[r];if(t.axis.dim===s.axisDim&&t.axis.model.componentIndex===s.axisIndex)return s}}function makeMapperParam(o){var t=o.axis.model,r={},s=r.axisDim=o.axis.dim;return r.axisIndex=r[s+"AxisIndex"]=t.componentIndex,r.axisName=r[s+"AxisName"]=t.name,r.axisId=r[s+"AxisId"]=t.id,r}function illegalPoint(o){return!o||o[0]==null||isNaN(o[0])||o[1]==null||isNaN(o[1])}function install$f(o){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),o.registerComponentModel(AxisPointerModel$1),o.registerComponentView(AxisPointerView$1),o.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!isArray$1(r)&&(t.axisPointer.link=[r])}}),o.registerProcessor(o.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=collect(t,r)}),o.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$e(o){use$1(install$g),use$1(install$f)}function setKeyInfoToNewElOption(o,t){var r=o.existing;if(t.id=o.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var s=t.parentOption;s?t.parentId=s.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function isSetLoc(o,t){var r;return each$c(t,function(s){o[s]!=null&&o[s]!=="auto"&&(r=!0)}),r}function mergeNewElOptionToExist(o,t,r){var s=extend({},r),l=o[t],h=r.$action||"merge";h==="merge"?l?(merge(l,s,!0),mergeLayoutParam(l,s,{ignoreSize:!0}),copyLayoutParams(r,l),copyTransitionInfo(r,l),copyTransitionInfo(r,l,"shape"),copyTransitionInfo(r,l,"style"),copyTransitionInfo(r,l,"extra"),r.clipPath=l.clipPath):o[t]=s:h==="replace"?o[t]=s:h==="remove"&&l&&(o[t]=null)}var TRANSITION_PROPS_TO_COPY=["transition","enterFrom","leaveTo"],ROOT_TRANSITION_PROPS_TO_COPY=TRANSITION_PROPS_TO_COPY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function copyTransitionInfo(o,t,r){if(r&&(!o[r]&&t[r]&&(o[r]={}),o=o[r],t=t[r]),!(!o||!t))for(var s=r?TRANSITION_PROPS_TO_COPY:ROOT_TRANSITION_PROPS_TO_COPY,l=0;l<s.length;l++){var h=s[l];o[h]==null&&t[h]!=null&&(o[h]=t[h])}}function setLayoutInfoToExist(o,t){if(o&&(o.hv=t.hv=[isSetLoc(t,["left","right"]),isSetLoc(t,["top","bottom"])],o.type==="group")){var r=o,s=t;r.width==null&&(r.width=s.width=0),r.height==null&&(r.height=s.height=0)}}var GraphicComponentModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,s){var l=this.option.elements;this.option.elements=null,o.prototype.mergeOption.call(this,r,s),this.option.elements=l},t.prototype.optionUpdated=function(r,s){var l=this.option,h=(s?l:r).elements,v=l.elements=s?[]:l.elements,S=[];this._flatten(h,S,null);var x=mappingToExists(v,S,"normalMerge"),T=this._elOptionsToUpdate=[];each$c(x,function(C,M){var w=C.newOption;w&&(T.push(w),setKeyInfoToNewElOption(C,w),mergeNewElOptionToExist(v,M,w),setLayoutInfoToExist(v[M],w))},this),l.elements=filter(v,function(C){return C&&delete C.$action,C!=null})},t.prototype._flatten=function(r,s,l){each$c(r,function(h){if(h){l&&(h.parentOption=l),s.push(h);var v=h.children;v&&v.length&&this._flatten(v,s,h),delete h.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(ComponentModel$1),nonShapeGraphicElements={path:null,compoundPath:null,group:Group$3,image:ZRImage$1,text:ZRText$1},inner$2=makeInner(),GraphicComponentView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=createHashMap()},t.prototype.render=function(r,s,l){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,l)},t.prototype._updateElements=function(r){var s=r.useElOptionsToUpdate();if(s){var l=this._elMap,h=this.group,v=r.get("z"),S=r.get("zlevel");each$c(s,function(x){var T=convertOptionIdName(x.id,null),C=T!=null?l.get(T):null,M=convertOptionIdName(x.parentId,null),w=M!=null?l.get(M):h,D=x.type,O=x.style;D==="text"&&O&&x.hv&&x.hv[1]&&(O.textVerticalAlign=O.textBaseline=O.verticalAlign=O.align=null);var N=x.textContent,k=x.textConfig;if(O&&isEC4CompatibleStyle(O,D,!!k,!!N)){var F=convertFromEC4CompatibleStyle(O,D,!0);!k&&F.textConfig&&(k=x.textConfig=F.textConfig),!N&&F.textContent&&(N=F.textContent)}var B=getCleanedElOption(x),V=x.$action||"merge",z=V==="merge",U=V==="replace";if(z){var Y=!C,W=C;Y?W=createEl(T,w,x.type,l):(W&&(inner$2(W).isNew=!1),stopPreviousKeyframeAnimationAndRestore(W)),W&&(applyUpdateTransition(W,B,r,{isInit:Y}),updateCommonAttrs(W,x,v,S))}else if(U){removeEl(C,x,l,r);var X=createEl(T,w,x.type,l);X&&(applyUpdateTransition(X,B,r,{isInit:!0}),updateCommonAttrs(X,x,v,S))}else V==="remove"&&(updateLeaveTo(C,x),removeEl(C,x,l,r));var K=l.get(T);if(K&&N)if(z){var J=K.getTextContent();J?J.attr(N):K.setTextContent(new ZRText$1(N))}else U&&K.setTextContent(new ZRText$1(N));if(K){var q=x.clipPath;if(q){var ee=q.type,te=void 0,Y=!1;if(z){var ne=K.getClipPath();Y=!ne||inner$2(ne).type!==ee,te=Y?newEl(ee):ne}else U&&(Y=!0,te=newEl(ee));K.setClipPath(te),applyUpdateTransition(te,q,r,{isInit:Y}),applyKeyframeAnimation(te,q.keyframeAnimation,r)}var ae=inner$2(K);K.setTextConfig(k),ae.option=x,setEventData(K,r,x),setTooltipConfig({el:K,componentModel:r,itemName:K.name,itemTooltipOption:x.tooltip}),applyKeyframeAnimation(K,x.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,s){for(var l=r.option.elements,h=this.group,v=this._elMap,S=s.getWidth(),x=s.getHeight(),T=["x","y"],C=0;C<l.length;C++){var M=l[C],w=convertOptionIdName(M.id,null),D=w!=null?v.get(w):null;if(!(!D||!D.isGroup)){var O=D.parent,N=O===h,k=inner$2(D),F=inner$2(O);k.width=parsePercent(k.option.width,N?S:F.width)||0,k.height=parsePercent(k.option.height,N?x:F.height)||0}}for(var C=l.length-1;C>=0;C--){var M=l[C],w=convertOptionIdName(M.id,null),D=w!=null?v.get(w):null;if(D){var O=D.parent,F=inner$2(O),B=O===h?{width:S,height:x}:{width:F.width,height:F.height},V={},z=positionElement(D,M,B,null,{hv:M.hv,boundingMode:M.bounding},V);if(!inner$2(D).isNew&&z){for(var U=M.transition,Y={},W=0;W<T.length;W++){var X=T[W],K=V[X];U&&(isTransitionAll(U)||indexOf(U,X)>=0)?Y[X]=K:D[X]=K}updateProps$1(D,Y,r,0)}else D.attr(V)}}},t.prototype._clear=function(){var r=this,s=this._elMap;s.each(function(l){removeEl(l,inner$2(l).option,s,r._lastGraphicModel)}),this._elMap=createHashMap()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ComponentView$1);function newEl(o){var t=hasOwn(nonShapeGraphicElements,o)?nonShapeGraphicElements[o]:getShapeClass(o),r=new t({});return inner$2(r).type=o,r}function createEl(o,t,r,s){var l=newEl(r);return t.add(l),s.set(o,l),inner$2(l).id=o,inner$2(l).isNew=!0,l}function removeEl(o,t,r,s){var l=o&&o.parent;l&&(o.type==="group"&&o.traverse(function(h){removeEl(h,t,r,s)}),applyLeaveTransition(o,t,s),r.removeKey(inner$2(o).id))}function updateCommonAttrs(o,t,r,s){o.isGroup||each$c([["cursor",Displayable$1.prototype.cursor],["zlevel",s||0],["z",r||0],["z2",0]],function(l){var h=l[0];hasOwn(t,h)?o[h]=retrieve2(t[h],l[1]):o[h]==null&&(o[h]=l[1])}),each$c(keys(t),function(l){if(l.indexOf("on")===0){var h=t[l];o[l]=isFunction(h)?h:null}}),hasOwn(t,"draggable")&&(o.draggable=t.draggable),t.name!=null&&(o.name=t.name),t.id!=null&&(o.id=t.id)}function getCleanedElOption(o){return o=extend({},o),each$c(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LOCATION_PARAMS),function(t){delete o[t]}),o}function setEventData(o,t,r){var s=getECData(o).eventData;!o.silent&&!o.ignore&&!s&&(s=getECData(o).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:o.name}),s&&(s.info=r.info)}function install$d(o){o.registerComponentModel(GraphicComponentModel),o.registerComponentView(GraphicComponentView),o.registerPreprocessor(function(t){var r=t.graphic;isArray$1(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var DATA_ZOOM_AXIS_DIMENSIONS=["x","y","radius","angle","single"],SERIES_COORDS=["cartesian2d","polar","singleAxis"];function isCoordSupported(o){var t=o.get("coordinateSystem");return indexOf(SERIES_COORDS,t)>=0}function getAxisMainType(o){return o+"Axis"}function findEffectedDataZooms(o,t){var r=createHashMap(),s=[],l=createHashMap();o.eachComponent({mainType:"dataZoom",query:t},function(C){l.get(C.uid)||S(C)});var h;do h=!1,o.eachComponent("dataZoom",v);while(h);function v(C){!l.get(C.uid)&&x(C)&&(S(C),h=!0)}function S(C){l.set(C.uid,!0),s.push(C),T(C)}function x(C){var M=!1;return C.eachTargetAxis(function(w,D){var O=r.get(w);O&&O[D]&&(M=!0)}),M}function T(C){C.eachTargetAxis(function(M,w){(r.get(M)||r.set(M,[]))[w]=!0})}return s}function collectReferCoordSysModelInfo(o){var t=o.ecModel,r={infoList:[],infoMap:createHashMap()};return o.eachTargetAxis(function(s,l){var h=t.getComponent(getAxisMainType(s),l);if(h){var v=h.getCoordSysModel();if(v){var S=v.uid,x=r.infoMap.get(S);x||(x={model:v,axisModels:[]},r.infoList.push(x),r.infoMap.set(S,x)),x.axisModels.push(h)}}}),r}var DataZoomAxisInfo=function(){function o(){this.indexList=[],this.indexMap=[]}return o.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},o}(),DataZoomModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,s,l){var h=retrieveRawOption(r);this.settledOption=h,this.mergeDefaultAndTheme(r,l),this._doInit(h)},t.prototype.mergeOption=function(r){var s=retrieveRawOption(r);merge(this.option,r,!0),merge(this.settledOption,s,!0),this._doInit(s)},t.prototype._doInit=function(r){var s=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var l=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(h,v){this._rangePropMode[v]==="value"&&(s[h[0]]=l[h[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),s=this._targetAxisInfoMap=createHashMap(),l=this._fillSpecifiedTargetAxis(s);l?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(s,this._orient)),this._noTarget=!0,s.each(function(h){h.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var s=!1;return each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(l){var h=this.getReferringComponents(getAxisMainType(l),MULTIPLE_REFERRING);if(h.specified){s=!0;var v=new DataZoomAxisInfo;each$c(h.models,function(S){v.add(S.componentIndex)}),r.set(l,v)}},this),s},t.prototype._fillAutoTargetAxisByOrient=function(r,s){var l=this.ecModel,h=!0;if(h){var v=s==="vertical"?"y":"x",S=l.findComponents({mainType:v+"Axis"});x(S,v)}if(h){var S=l.findComponents({mainType:"singleAxis",filter:function(C){return C.get("orient",!0)===s}});x(S,"single")}function x(T,C){var M=T[0];if(M){var w=new DataZoomAxisInfo;if(w.add(M.componentIndex),r.set(C,w),h=!1,C==="x"||C==="y"){var D=M.getReferringComponents("grid",SINGLE_REFERRING).models[0];D&&each$c(T,function(O){M.componentIndex!==O.componentIndex&&D===O.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&w.add(O.componentIndex)})}}}h&&each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(T){if(h){var C=l.findComponents({mainType:getAxisMainType(T),filter:function(w){return w.get("type",!0)==="category"}});if(C[0]){var M=new DataZoomAxisInfo;M.add(C[0].componentIndex),r.set(T,M),h=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(s){!r&&(r=s)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var s=this._rangePropMode,l=this.get("rangeMode");each$c([["start","startValue"],["end","endValue"]],function(h,v){var S=r[h[0]]!=null,x=r[h[1]]!=null;S&&!x?s[v]="percent":!S&&x?s[v]="value":l?s[v]=l[v]:S&&(s[v]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(s,l){r==null&&(r=this.ecModel.getComponent(getAxisMainType(s),l))},this),r},t.prototype.eachTargetAxis=function(r,s){this._targetAxisInfoMap.each(function(l,h){each$c(l.indexList,function(v){r.call(s,h,v)})})},t.prototype.getAxisProxy=function(r,s){var l=this.getAxisModel(r,s);if(l)return l.__dzAxisProxy},t.prototype.getAxisModel=function(r,s){var l=this._targetAxisInfoMap.get(r);if(l&&l.indexMap[s])return this.ecModel.getComponent(getAxisMainType(r),s)},t.prototype.setRawRange=function(r){var s=this.option,l=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(h){(r[h[0]]!=null||r[h[1]]!=null)&&(s[h[0]]=l[h[0]]=r[h[0]],s[h[1]]=l[h[1]]=r[h[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var s=this.option;each$c(["start","startValue","end","endValue"],function(l){s[l]=r[l]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,s){if(r==null&&s==null){var l=this.findRepresentativeAxisProxy();if(l)return l.getDataValueWindow()}else return this.getAxisProxy(r,s).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var s,l=this._targetAxisInfoMap.keys(),h=0;h<l.length;h++)for(var v=l[h],S=this._targetAxisInfoMap.get(v),x=0;x<S.indexList.length;x++){var T=this.getAxisProxy(v,S.indexList[x]);if(T.hostedBy(this))return T;s||(s=T)}return s},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(ComponentModel$1);function retrieveRawOption(o){var t={};return each$c(["start","end","startValue","endValue","throttle"],function(r){o.hasOwnProperty(r)&&(t[r]=o[r])}),t}const DataZoomModel$1=DataZoomModel;var SelectDataZoomModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(DataZoomModel$1);const SelectZoomModel=SelectDataZoomModel;var DataZoomView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,s,l,h){this.dataZoomModel=r,this.ecModel=s,this.api=l},t.type="dataZoom",t}(ComponentView$1);const DataZoomView$1=DataZoomView;var SelectDataZoomView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(DataZoomView$1);const SelectZoomView=SelectDataZoomView;var each$7=each$c,asc$1=asc$2,AxisProxy=function(){function o(t,r,s,l){this._dimName=t,this._axisIndex=r,this.ecModel=l,this._dataZoomModel=s}return o.prototype.hostedBy=function(t){return this._dataZoomModel===t},o.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},o.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},o.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(isCoordSupported(r)){var s=getAxisMainType(this._dimName),l=r.getReferringComponents(s,SINGLE_REFERRING).models[0];l&&this._axisIndex===l.componentIndex&&t.push(r)}},this),t},o.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},o.prototype.getMinMaxSpan=function(){return clone$3(this._minMaxSpan)},o.prototype.calculateDataWindow=function(t){var r=this._dataExtent,s=this.getAxisModel(),l=s.axis.scale,h=this._dataZoomModel.getRangePropMode(),v=[0,100],S=[],x=[],T;each$7(["start","end"],function(w,D){var O=t[w],N=t[w+"Value"];h[D]==="percent"?(O==null&&(O=v[D]),N=l.parse(linearMap$2(O,v,r))):(T=!0,N=N==null?r[D]:l.parse(N),O=linearMap$2(N,r,v)),x[D]=N==null||isNaN(N)?r[D]:N,S[D]=O==null||isNaN(O)?v[D]:O}),asc$1(x),asc$1(S);var C=this._minMaxSpan;T?M(x,S,r,v,!1):M(S,x,v,r,!0);function M(w,D,O,N,k){var F=k?"Span":"ValueSpan";sliderMove(0,w,O,"all",C["min"+F],C["max"+F]);for(var B=0;B<2;B++)D[B]=linearMap$2(w[B],O,N,!0),k&&(D[B]=l.parse(D[B]))}return{valueWindow:x,percentWindow:S}},o.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=calculateDataExtent(this,this._dimName,r),this._updateMinMaxSpan();var s=this.calculateDataWindow(t.settledOption);this._valueWindow=s.valueWindow,this._percentWindow=s.percentWindow,this._setAxisModel()}},o.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var s=this._dimName,l=this.getTargetSeriesModels(),h=t.get("filterMode"),v=this._valueWindow;if(h==="none")return;each$7(l,function(x){var T=x.getData(),C=T.mapDimensionsAll(s);if(C.length){if(h==="weakFilter"){var M=T.getStore(),w=map$2(C,function(D){return T.getDimensionIndex(D)},T);T.filterSelf(function(D){for(var O,N,k,F=0;F<C.length;F++){var B=M.get(w[F],D),V=!isNaN(B),z=B<v[0],U=B>v[1];if(V&&!z&&!U)return!0;V&&(k=!0),z&&(O=!0),U&&(N=!0)}return k&&O&&N})}else each$7(C,function(D){if(h==="empty")x.setData(T=T.map(D,function(N){return S(N)?N:NaN}));else{var O={};O[D]=v,T.selectRange(O)}});each$7(C,function(D){T.setApproximateExtent(v,D)})}});function S(x){return x>=v[0]&&x<=v[1]}},o.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,s=this._dataExtent;each$7(["min","max"],function(l){var h=r.get(l+"Span"),v=r.get(l+"ValueSpan");v!=null&&(v=this.getAxisModel().axis.scale.parse(v)),v!=null?h=linearMap$2(s[0]+v,s,[0,100],!0):h!=null&&(v=linearMap$2(h,[0,100],s,!0)-s[0]),t[l+"Span"]=h,t[l+"ValueSpan"]=v},this)},o.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,s=this._valueWindow;if(r){var l=getPixelPrecision(s,[0,500]);l=Math.min(l,20);var h=t.axis.scale.rawExtentInfo;r[0]!==0&&h.setDeterminedMinMax("min",+s[0].toFixed(l)),r[1]!==100&&h.setDeterminedMinMax("max",+s[1].toFixed(l)),h.freeze()}},o}();function calculateDataExtent(o,t,r){var s=[1/0,-1/0];each$7(r,function(v){unionAxisExtentFromData(s,v.getData(),t)});var l=o.getAxisModel(),h=ensureScaleRawExtentInfo(l.axis.scale,l,s).calculate();return[h.min,h.max]}const AxisProxy$1=AxisProxy;var dataZoomProcessor={getTargetSeries:function(o){function t(l){o.eachComponent("dataZoom",function(h){h.eachTargetAxis(function(v,S){var x=o.getComponent(getAxisMainType(v),S);l(v,S,x,h)})})}t(function(l,h,v,S){v.__dzAxisProxy=null});var r=[];t(function(l,h,v,S){v.__dzAxisProxy||(v.__dzAxisProxy=new AxisProxy$1(l,h,S,o),r.push(v.__dzAxisProxy))});var s=createHashMap();return each$c(r,function(l){each$c(l.getTargetSeriesModels(),function(h){s.set(h.uid,h)})}),s},overallReset:function(o,t){o.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(s,l){r.getAxisProxy(s,l).reset(r)}),r.eachTargetAxis(function(s,l){r.getAxisProxy(s,l).filterData(r,t)})}),o.eachComponent("dataZoom",function(r){var s=r.findRepresentativeAxisProxy();if(s){var l=s.getDataPercentWindow(),h=s.getDataValueWindow();r.setCalculatedRange({start:l[0],end:l[1],startValue:h[0],endValue:h[1]})}})}};const dataZoomProcessor$1=dataZoomProcessor;function installDataZoomAction(o){o.registerAction("dataZoom",function(t,r){var s=findEffectedDataZooms(r,t);each$c(s,function(l){l.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var installed$1=!1;function installCommon$1(o){installed$1||(installed$1=!0,o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,dataZoomProcessor$1),installDataZoomAction(o),o.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function install$c(o){o.registerComponentModel(SelectZoomModel),o.registerComponentView(SelectZoomView),installCommon$1(o)}var ToolboxFeature=function(){function o(){}return o}(),features={};function registerFeature(o,t){features[o]=t}function getFeature(o){return features[o]}var ToolboxModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){o.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;each$c(this.option.feature,function(s,l){var h=getFeature(l);h&&(h.getDefaultOption&&(h.defaultOption=h.getDefaultOption(r)),merge(s,h.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ComponentModel$1);const ToolboxModel$1=ToolboxModel;function layout(o,t,r){var s=t.getBoxLayoutParams(),l=t.get("padding"),h={width:r.getWidth(),height:r.getHeight()},v=getLayoutRect(s,h,l);box(t.get("orient"),o,t.get("itemGap"),v.width,v.height),positionElement(o,s,h,l)}function makeBackground(o,t){var r=normalizeCssArray(t.get("padding")),s=t.getItemStyle(["color","opacity"]);return s.fill=t.get("backgroundColor"),o=new Rect$2({shape:{x:o.x-r[3],y:o.y-r[0],width:o.width+r[1]+r[3],height:o.height+r[0]+r[2],r:t.get("borderRadius")},style:s,silent:!0,z2:-1}),o}var ToolboxView=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.render=function(r,s,l,h){var v=this.group;if(v.removeAll(),!r.get("show"))return;var S=+r.get("itemSize"),x=r.get("orient")==="vertical",T=r.get("feature")||{},C=this._features||(this._features={}),M=[];each$c(T,function(O,N){M.push(N)}),new DataDiffer$1(this._featureNames||[],M).add(w).update(w).remove(curry$1(w,null)).execute(),this._featureNames=M;function w(O,N){var k=M[O],F=M[N],B=T[k],V=new Model$1(B,r,r.ecModel),z;if(h&&h.newTitle!=null&&h.featureName===k&&(B.title=h.newTitle),k&&!F){if(isUserFeatureName(k))z={onclick:V.option.onclick,featureName:k};else{var U=getFeature(k);if(!U)return;z=new U}C[k]=z}else if(z=C[F],!z)return;z.uid=getUID("toolbox-feature"),z.model=V,z.ecModel=s,z.api=l;var Y=z instanceof ToolboxFeature;if(!k&&F){Y&&z.dispose&&z.dispose(s,l);return}if(!V.get("show")||Y&&z.unusable){Y&&z.remove&&z.remove(s,l);return}D(V,z,k),V.setIconStatus=function(W,X){var K=this.option,J=this.iconPaths;K.iconStatus=K.iconStatus||{},K.iconStatus[W]=X,J[W]&&(X==="emphasis"?enterEmphasis:leaveEmphasis)(J[W])},z instanceof ToolboxFeature&&z.render&&z.render(V,s,l,h)}function D(O,N,k){var F=O.getModel("iconStyle"),B=O.getModel(["emphasis","iconStyle"]),V=N instanceof ToolboxFeature&&N.getIcons?N.getIcons():O.get("icon"),z=O.get("title")||{},U,Y;isString(V)?(U={},U[k]=V):U=V,isString(z)?(Y={},Y[k]=z):Y=z;var W=O.iconPaths={};each$c(U,function(X,K){var J=createIcon(X,{},{x:-S/2,y:-S/2,width:S,height:S});J.setStyle(F.getItemStyle());var q=J.ensureState("emphasis");q.style=B.getItemStyle();var ee=new ZRText$1({style:{text:Y[K],align:B.get("textAlign"),borderRadius:B.get("textBorderRadius"),padding:B.get("textPadding"),fill:null},ignore:!0});J.setTextContent(ee),setTooltipConfig({el:J,componentModel:r,itemName:K,formatterParamsExtra:{title:Y[K]}}),J.__title=Y[K],J.on("mouseover",function(){var te=B.getItemStyle(),ne=x?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";ee.setStyle({fill:B.get("textFill")||te.fill||te.stroke||"#000",backgroundColor:B.get("textBackgroundColor")}),J.setTextConfig({position:B.get("textPosition")||ne}),ee.ignore=!r.get("showTitle"),l.enterEmphasis(this)}).on("mouseout",function(){O.get(["iconStatus",K])!=="emphasis"&&l.leaveEmphasis(this),ee.hide()}),(O.get(["iconStatus",K])==="emphasis"?enterEmphasis:leaveEmphasis)(J),v.add(J),J.on("click",bind$1(N.onclick,N,s,l,K)),W[K]=J})}layout(v,r,l),v.add(makeBackground(v.getBoundingRect(),r)),x||v.eachChild(function(O){var N=O.__title,k=O.ensureState("emphasis"),F=k.textConfig||(k.textConfig={}),B=O.getTextContent(),V=B&&B.ensureState("emphasis");if(V&&!isFunction(V)&&N){var z=V.style||(V.style={}),U=getBoundingRect(N,ZRText$1.makeFont(z)),Y=O.x+v.x,W=O.y+v.y+S,X=!1;W+U.height>l.getHeight()&&(F.position="top",X=!0);var K=X?-5-U.height:S+10;Y+U.width/2>l.getWidth()?(F.position=["100%",K],z.align="right"):Y-U.width/2<0&&(F.position=[0,K],z.align="left")}})},t.prototype.updateView=function(r,s,l,h){each$c(this._features,function(v){v instanceof ToolboxFeature&&v.updateView&&v.updateView(v.model,s,l,h)})},t.prototype.remove=function(r,s){each$c(this._features,function(l){l instanceof ToolboxFeature&&l.remove&&l.remove(r,s)}),this.group.removeAll()},t.prototype.dispose=function(r,s){each$c(this._features,function(l){l instanceof ToolboxFeature&&l.dispose&&l.dispose(r,s)})},t.type="toolbox",t}(ComponentView$1);function isUserFeatureName(o){return o.indexOf("my")===0}const ToolboxView$1=ToolboxView;var SaveAsImage=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.onclick=function(r,s){var l=this.model,h=l.get("name")||r.get("title.0.text")||"echarts",v=s.getZr().painter.getType()==="svg",S=v?"svg":l.get("type",!0)||"png",x=s.getConnectedDataURL({type:S,backgroundColor:l.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:l.get("connectedBackgroundColor"),excludeComponents:l.get("excludeComponents"),pixelRatio:l.get("pixelRatio")}),T=env$1.browser;if(isFunction(MouseEvent)&&(T.newEdge||!T.ie&&!T.edge)){var C=document.createElement("a");C.download=h+"."+S,C.target="_blank",C.href=x;var M=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});C.dispatchEvent(M)}else if(window.navigator.msSaveOrOpenBlob||v){var w=x.split(","),D=w[0].indexOf("base64")>-1,O=v?decodeURIComponent(w[1]):w[1];D&&(O=window.atob(O));var N=h+"."+S;if(window.navigator.msSaveOrOpenBlob){for(var k=O.length,F=new Uint8Array(k);k--;)F[k]=O.charCodeAt(k);var B=new Blob([F]);window.navigator.msSaveOrOpenBlob(B,N)}else{var V=document.createElement("iframe");document.body.appendChild(V);var z=V.contentWindow,U=z.document;U.open("image/svg+xml","replace"),U.write(O),U.close(),z.focus(),U.execCommand("SaveAs",!0,N),document.body.removeChild(V)}}else{var Y=l.get("lang"),W='<body style="margin:0;"><img src="'+x+'" style="max-width:100%;" title="'+(Y&&Y[0]||"")+'" /></body>',X=window.open();X.document.write(W),X.document.title=h}},t.getDefaultOption=function(r){var s={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return s},t}(ToolboxFeature);const SaveAsImage$1=SaveAsImage;var INNER_STACK_KEYWORD="__ec_magicType_stack__",radioTypes=[["line","bar"],["stack"]],MagicType=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,s=r.get("icon"),l={};return each$c(r.get("type"),function(h){s[h]&&(l[h]=s[h])}),l},t.getDefaultOption=function(r){var s={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return s},t.prototype.onclick=function(r,s,l){var h=this.model,v=h.get(["seriesIndex",l]);if(seriesOptGenreator[l]){var S={series:[]},x=function(M){var w=M.subType,D=M.id,O=seriesOptGenreator[l](w,D,M,h);O&&(defaults(O,M.option),S.series.push(O));var N=M.coordinateSystem;if(N&&N.type==="cartesian2d"&&(l==="line"||l==="bar")){var k=N.getAxesByScale("ordinal")[0];if(k){var F=k.dim,B=F+"Axis",V=M.getReferringComponents(B,SINGLE_REFERRING).models[0],z=V.componentIndex;S[B]=S[B]||[];for(var U=0;U<=z;U++)S[B][z]=S[B][z]||{};S[B][z].boundaryGap=l==="bar"}}};each$c(radioTypes,function(M){indexOf(M,l)>=0&&each$c(M,function(w){h.setIconStatus(w,"normal")})}),h.setIconStatus(l,"emphasis"),r.eachComponent({mainType:"series",query:v==null?null:{seriesIndex:v}},x);var T,C=l;l==="stack"&&(T=merge({stack:h.option.title.tiled,tiled:h.option.title.stack},h.option.title),h.get(["iconStatus",l])!=="emphasis"&&(C="tiled")),s.dispatchAction({type:"changeMagicType",currentType:C,newOption:S,newTitle:T,featureName:"magicType"})}},t}(ToolboxFeature),seriesOptGenreator={line:function(o,t,r,s){if(o==="bar")return merge({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},s.get(["option","line"])||{},!0)},bar:function(o,t,r,s){if(o==="line")return merge({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},s.get(["option","bar"])||{},!0)},stack:function(o,t,r,s){var l=r.get("stack")===INNER_STACK_KEYWORD;if(o==="line"||o==="bar")return s.setIconStatus("stack",l?"normal":"emphasis"),merge({id:t,stack:l?"":INNER_STACK_KEYWORD},s.get(["option","stack"])||{},!0)}};registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(o,t){t.mergeOption(o.newOption)});const MagicType$1=MagicType;var BLOCK_SPLITER=new Array(60).join("-"),ITEM_SPLITER=" ";function groupSeries(o){var t={},r=[],s=[];return o.eachRawSeries(function(l){var h=l.coordinateSystem;if(h&&(h.type==="cartesian2d"||h.type==="polar")){var v=h.getBaseAxis();if(v.type==="category"){var S=v.dim+"_"+v.index;t[S]||(t[S]={categoryAxis:v,valueAxis:h.getOtherAxis(v),series:[]},s.push({axisDim:v.dim,axisIndex:v.index})),t[S].series.push(l)}else r.push(l)}else r.push(l)}),{seriesGroupByCategoryAxis:t,other:r,meta:s}}function assembleSeriesWithCategoryAxis(o){var t=[];return each$c(o,function(r,s){var l=r.categoryAxis,h=r.valueAxis,v=h.dim,S=[" "].concat(map$2(r.series,function(D){return D.name})),x=[l.model.getCategories()];each$c(r.series,function(D){var O=D.getRawData();x.push(D.getRawData().mapArray(O.mapDimension(v),function(N){return N}))});for(var T=[S.join(ITEM_SPLITER)],C=0;C<x[0].length;C++){for(var M=[],w=0;w<x.length;w++)M.push(x[w][C]);T.push(M.join(ITEM_SPLITER))}t.push(T.join(`
|
||
`))}),t.join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`)}function assembleOtherSeries(o){return map$2(o,function(t){var r=t.getRawData(),s=[t.name],l=[];return r.each(r.dimensions,function(){for(var h=arguments.length,v=arguments[h-1],S=r.getName(v),x=0;x<h-1;x++)l[x]=arguments[x];s.push((S?S+ITEM_SPLITER:"")+l.join(ITEM_SPLITER))}),s.join(`
|
||
`)}).join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`)}function getContentFromModel(o){var t=groupSeries(o);return{value:filter([assembleSeriesWithCategoryAxis(t.seriesGroupByCategoryAxis),assembleOtherSeries(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
||
`+BLOCK_SPLITER+`
|
||
|
||
`),meta:t.meta}}function trim(o){return o.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function isTSVFormat(o){var t=o.slice(0,o.indexOf(`
|
||
`));if(t.indexOf(ITEM_SPLITER)>=0)return!0}var itemSplitRegex=new RegExp("["+ITEM_SPLITER+"]+","g");function parseTSVContents(o){for(var t=o.split(/\n+/g),r=trim(t.shift()).split(itemSplitRegex),s=[],l=map$2(r,function(x){return{name:x,data:[]}}),h=0;h<t.length;h++){var v=trim(t[h]).split(itemSplitRegex);s.push(v.shift());for(var S=0;S<v.length;S++)l[S]&&(l[S].data[h]=v[S])}return{series:l,categories:s}}function parseListContents(o){for(var t=o.split(/\n+/g),r=trim(t.shift()),s=[],l=0;l<t.length;l++){var h=trim(t[l]);if(h){var v=h.split(itemSplitRegex),S="",x=void 0,T=!1;isNaN(v[0])?(T=!0,S=v[0],v=v.slice(1),s[l]={name:S,value:[]},x=s[l].value):x=s[l]=[];for(var C=0;C<v.length;C++)x.push(+v[C]);x.length===1&&(T?s[l].value=x[0]:s[l]=x[0])}}return{name:r,data:s}}function parseContents(o,t){var r=o.split(new RegExp(`
|
||
*`+BLOCK_SPLITER+`
|
||
*`,"g")),s={series:[]};return each$c(r,function(l,h){if(isTSVFormat(l)){var v=parseTSVContents(l),S=t[h],x=S.axisDim+"Axis";S&&(s[x]=s[x]||[],s[x][S.axisIndex]={data:v.categories},s.series=s.series.concat(v.series))}else{var v=parseListContents(l);s.series.push(v)}}),s}var DataView=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.onclick=function(r,s){setTimeout(function(){s.dispatchAction({type:"hideTip"})});var l=s.getDom(),h=this.model;this._dom&&l.removeChild(this._dom);var v=document.createElement("div");v.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",v.style.backgroundColor=h.get("backgroundColor")||"#fff";var S=document.createElement("h4"),x=h.get("lang")||[];S.innerHTML=x[0]||h.get("title"),S.style.cssText="margin:10px 20px",S.style.color=h.get("textColor");var T=document.createElement("div"),C=document.createElement("textarea");T.style.cssText="overflow:auto";var M=h.get("optionToContent"),w=h.get("contentToOption"),D=getContentFromModel(r);if(isFunction(M)){var O=M(s.getOption());isString(O)?T.innerHTML=O:isDom(O)&&T.appendChild(O)}else{C.readOnly=h.get("readOnly");var N=C.style;N.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",N.color=h.get("textColor"),N.borderColor=h.get("textareaBorderColor"),N.backgroundColor=h.get("textareaColor"),C.value=D.value,T.appendChild(C)}var k=D.meta,F=document.createElement("div");F.style.cssText="position:absolute;bottom:5px;left:0;right:0";var B="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",V=document.createElement("div"),z=document.createElement("div");B+=";background-color:"+h.get("buttonColor"),B+=";color:"+h.get("buttonTextColor");var U=this;function Y(){l.removeChild(v),U._dom=null}addEventListener(V,"click",Y),addEventListener(z,"click",function(){if(w==null&&M!=null||w!=null&&M==null){Y();return}var W;try{isFunction(w)?W=w(T,s.getOption()):W=parseContents(C.value,k)}catch(X){throw Y(),new Error("Data view format error "+X)}W&&s.dispatchAction({type:"changeDataView",newOption:W}),Y()}),V.innerHTML=x[1],z.innerHTML=x[2],z.style.cssText=V.style.cssText=B,!h.get("readOnly")&&F.appendChild(z),F.appendChild(V),v.appendChild(S),v.appendChild(T),v.appendChild(F),T.style.height=l.clientHeight-80+"px",l.appendChild(v),this._dom=v},t.prototype.remove=function(r,s){this._dom&&s.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,s){this.remove(r,s)},t.getDefaultOption=function(r){var s={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return s},t}(ToolboxFeature);function tryMergeDataOption(o,t){return map$2(o,function(r,s){var l=t&&t[s];if(isObject$3(l)&&!isArray$1(l)){var h=isObject$3(r)&&!isArray$1(r);h||(r={value:r});var v=l.name!=null&&r.name==null;return r=defaults(r,l),v&&delete r.name,r}else return r})}registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(o,t){var r=[];each$c(o.newOption.series,function(s){var l=t.getSeriesByName(s.name)[0];if(!l)r.push(extend({type:"scatter"},s));else{var h=l.get("data");r.push({name:s.name,data:tryMergeDataOption(s.data,h)})}}),t.mergeOption(defaults({series:r},o.newOption))});const DataView$1=DataView;var each$6=each$c,inner$1=makeInner();function push(o,t){var r=getStoreSnapshots(o);each$6(t,function(s,l){for(var h=r.length-1;h>=0;h--){var v=r[h];if(v[l])break}if(h<0){var S=o.queryComponents({mainType:"dataZoom",subType:"select",id:l})[0];if(S){var x=S.getPercentRange();r[0][l]={dataZoomId:l,start:x[0],end:x[1]}}}}),r.push(t)}function pop(o){var t=getStoreSnapshots(o),r=t[t.length-1];t.length>1&&t.pop();var s={};return each$6(r,function(l,h){for(var v=t.length-1;v>=0;v--)if(l=t[v][h],l){s[h]=l;break}}),s}function clear(o){inner$1(o).snapshots=null}function count(o){return getStoreSnapshots(o).length}function getStoreSnapshots(o){var t=inner$1(o);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var RestoreOption=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.onclick=function(r,s){clear(r),s.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var s={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return s},t}(ToolboxFeature);registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(o,t){t.resetOption("recreate")});const Restore=RestoreOption;var INCLUDE_FINDER_MAIN_TYPES=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BrushTargetManager=function(){function o(t,r,s){var l=this;this._targetInfoList=[];var h=parseFinder(r,t);each$c(targetInfoBuilders,function(v,S){(!s||!s.include||indexOf(s.include,S)>=0)&&v(h,l._targetInfoList)})}return o.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(s,l,h){if((s.coordRanges||(s.coordRanges=[])).push(l),!s.coordRange){s.coordRange=l;var v=coordConvert[s.brushType](0,h,l);s.__rangeOffset={offset:diffProcessor[s.brushType](v.values,s.range,[1,1]),xyMinMax:v.xyMinMax}}}),t},o.prototype.matchOutputRanges=function(t,r,s){each$c(t,function(l){var h=this.findTargetInfo(l,r);h&&h!==!0&&each$c(h.coordSyses,function(v){var S=coordConvert[l.brushType](1,v,l.range,!0);s(l,S.values,v,r)})},this)},o.prototype.setInputRanges=function(t,r){each$c(t,function(s){var l=this.findTargetInfo(s,r);if(s.range=s.range||[],l&&l!==!0){s.panelId=l.panelId;var h=coordConvert[s.brushType](0,l.coordSys,s.coordRange),v=s.__rangeOffset;s.range=v?diffProcessor[s.brushType](h.values,v.offset,getScales(h.xyMinMax,v.xyMinMax)):h.values}},this)},o.prototype.makePanelOpts=function(t,r){return map$2(this._targetInfoList,function(s){var l=s.getPanelRect();return{panelId:s.panelId,defaultBrushType:r?r(s):null,clipPath:makeRectPanelClipPath(l),isTargetByCursor:makeRectIsTargetByCursor(l,t,s.coordSysModel),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(l)}})},o.prototype.controlSeries=function(t,r,s){var l=this.findTargetInfo(t,s);return l===!0||l&&indexOf(l.coordSyses,r.coordinateSystem)>=0},o.prototype.findTargetInfo=function(t,r){for(var s=this._targetInfoList,l=parseFinder(r,t),h=0;h<s.length;h++){var v=s[h],S=t.panelId;if(S){if(v.panelId===S)return v}else for(var x=0;x<targetInfoMatchers.length;x++)if(targetInfoMatchers[x](l,v))return v}return!0},o}();function formatMinMax(o){return o[0]>o[1]&&o.reverse(),o}function parseFinder(o,t){return parseFinder$1(o,t,{includeMainTypes:INCLUDE_FINDER_MAIN_TYPES})}var targetInfoBuilders={grid:function(o,t){var r=o.xAxisModels,s=o.yAxisModels,l=o.gridModels,h=createHashMap(),v={},S={};!r&&!s&&!l||(each$c(r,function(x){var T=x.axis.grid.model;h.set(T.id,T),v[T.id]=!0}),each$c(s,function(x){var T=x.axis.grid.model;h.set(T.id,T),S[T.id]=!0}),each$c(l,function(x){h.set(x.id,x),v[x.id]=!0,S[x.id]=!0}),h.each(function(x){var T=x.coordinateSystem,C=[];each$c(T.getCartesians(),function(M,w){(indexOf(r,M.getAxis("x").model)>=0||indexOf(s,M.getAxis("y").model)>=0)&&C.push(M)}),t.push({panelId:"grid--"+x.id,gridModel:x,coordSysModel:x,coordSys:C[0],coordSyses:C,getPanelRect:panelRectBuilders.grid,xAxisDeclared:v[x.id],yAxisDeclared:S[x.id]})}))},geo:function(o,t){each$c(o.geoModels,function(r){var s=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:s,coordSyses:[s],getPanelRect:panelRectBuilders.geo})})}},targetInfoMatchers=[function(o,t){var r=o.xAxisModel,s=o.yAxisModel,l=o.gridModel;return!l&&r&&(l=r.axis.grid.model),!l&&s&&(l=s.axis.grid.model),l&&l===t.gridModel},function(o,t){var r=o.geoModel;return r&&r===t.geoModel}],panelRectBuilders={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var o=this.coordSys,t=o.getBoundingRect().clone();return t.applyTransform(getTransform$1(o)),t}},coordConvert={lineX:curry$1(axisConvert,0),lineY:curry$1(axisConvert,1),rect:function(o,t,r,s){var l=o?t.pointToData([r[0][0],r[1][0]],s):t.dataToPoint([r[0][0],r[1][0]],s),h=o?t.pointToData([r[0][1],r[1][1]],s):t.dataToPoint([r[0][1],r[1][1]],s),v=[formatMinMax([l[0],h[0]]),formatMinMax([l[1],h[1]])];return{values:v,xyMinMax:v}},polygon:function(o,t,r,s){var l=[[1/0,-1/0],[1/0,-1/0]],h=map$2(r,function(v){var S=o?t.pointToData(v,s):t.dataToPoint(v,s);return l[0][0]=Math.min(l[0][0],S[0]),l[1][0]=Math.min(l[1][0],S[1]),l[0][1]=Math.max(l[0][1],S[0]),l[1][1]=Math.max(l[1][1],S[1]),S});return{values:h,xyMinMax:l}}};function axisConvert(o,t,r,s){var l=r.getAxis(["x","y"][o]),h=formatMinMax(map$2([0,1],function(S){return t?l.coordToData(l.toLocalCoord(s[S]),!0):l.toGlobalCoord(l.dataToCoord(s[S]))})),v=[];return v[o]=h,v[1-o]=[NaN,NaN],{values:h,xyMinMax:v}}var diffProcessor={lineX:curry$1(axisDiffProcessor,0),lineY:curry$1(axisDiffProcessor,1),rect:function(o,t,r){return[[o[0][0]-r[0]*t[0][0],o[0][1]-r[0]*t[0][1]],[o[1][0]-r[1]*t[1][0],o[1][1]-r[1]*t[1][1]]]},polygon:function(o,t,r){return map$2(o,function(s,l){return[s[0]-r[0]*t[l][0],s[1]-r[1]*t[l][1]]})}};function axisDiffProcessor(o,t,r,s){return[t[0]-s[o]*r[0],t[1]-s[o]*r[1]]}function getScales(o,t){var r=getSize(o),s=getSize(t),l=[r[0]/s[0],r[1]/s[1]];return isNaN(l[0])&&(l[0]=1),isNaN(l[1])&&(l[1]=1),l}function getSize(o){return o?[o[0][1]-o[0][0],o[1][1]-o[1][0]]:[NaN,NaN]}const BrushTargetManager$1=BrushTargetManager;var each$5=each$c,DATA_ZOOM_ID_BASE=makeInternalComponentId("toolbox-dataZoom_"),DataZoomFeature=function(o){__extends(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.render=function(r,s,l,h){this._brushController||(this._brushController=new BrushController$1(l.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus(r,s,this,h,l),updateBackBtnStatus(r,s)},t.prototype.onclick=function(r,s,l){handlers[l].call(this)},t.prototype.remove=function(r,s){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,s){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var s=r.areas;if(!r.isEnd||!s.length)return;var l={},h=this.ecModel;this._brushController.updateCovers([]);var v=new BrushTargetManager$1(makeAxisFinder(this.model),h,{include:["grid"]});v.matchOutputRanges(s,h,function(T,C,M){if(M.type==="cartesian2d"){var w=T.brushType;w==="rect"?(S("x",M,C[0]),S("y",M,C[1])):S({lineX:"x",lineY:"y"}[w],M,C)}}),push(h,l),this._dispatchZoomAction(l);function S(T,C,M){var w=C.getAxis(T),D=w.model,O=x(T,D,h),N=O.findRepresentativeAxisProxy(D).getMinMaxSpan();(N.minValueSpan!=null||N.maxValueSpan!=null)&&(M=sliderMove(0,M.slice(),w.scale.getExtent(),0,N.minValueSpan,N.maxValueSpan)),O&&(l[O.id]={dataZoomId:O.id,startValue:M[0],endValue:M[1]})}function x(T,C,M){var w;return M.eachComponent({mainType:"dataZoom",subType:"select"},function(D){var O=D.getAxisModel(T,C.componentIndex);O&&(w=D)}),w}},t.prototype._dispatchZoomAction=function(r){var s=[];each$5(r,function(l,h){s.push(clone$3(l))}),s.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:s})},t.getDefaultOption=function(r){var s={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return s},t}(ToolboxFeature),handlers={zoom:function(){var o=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:o})},back:function(){this._dispatchZoomAction(pop(this.ecModel))}};function makeAxisFinder(o){var t={xAxisIndex:o.get("xAxisIndex",!0),yAxisIndex:o.get("yAxisIndex",!0),xAxisId:o.get("xAxisId",!0),yAxisId:o.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function updateBackBtnStatus(o,t){o.setIconStatus("back",count(t)>1?"emphasis":"normal")}function updateZoomBtnStatus(o,t,r,s,l){var h=r._isZoomActive;s&&s.type==="takeGlobalCursor"&&(h=s.key==="dataZoomSelect"?s.dataZoomSelectActive:!1),r._isZoomActive=h,o.setIconStatus("zoom",h?"emphasis":"normal");var v=new BrushTargetManager$1(makeAxisFinder(o),t,{include:["grid"]}),S=v.makePanelOpts(l,function(x){return x.xAxisDeclared&&!x.yAxisDeclared?"lineX":!x.xAxisDeclared&&x.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(S).enableBrush(h&&S.length?{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()}:!1)}registerInternalOptionCreator("dataZoom",function(o){var t=o.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var s=t.getModel(r),l=[],h=makeAxisFinder(s),v=parseFinder$1(o,h);each$5(v.xAxisModels,function(x){return S(x,"xAxis","xAxisIndex")}),each$5(v.yAxisModels,function(x){return S(x,"yAxis","yAxisIndex")});function S(x,T,C){var M=x.componentIndex,w={type:"select",$fromToolbox:!0,filterMode:s.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+T+M};w[C]=M,l.push(w)}return l});const DataZoom=DataZoomFeature;function install$b(o){o.registerComponentModel(ToolboxModel$1),o.registerComponentView(ToolboxView$1),registerFeature("saveAsImage",SaveAsImage$1),registerFeature("magicType",MagicType$1),registerFeature("dataView",DataView$1),registerFeature("dataZoom",DataZoom),registerFeature("restore",Restore),use$1(install$c)}var TooltipModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ComponentModel$1);const TooltipModel$1=TooltipModel;function shouldTooltipConfine(o){var t=o.get("confine");return t!=null?!!t:o.get("renderMode")==="richText"}function testStyle(o){if(env$1.domSupported){for(var t=document.documentElement.style,r=0,s=o.length;r<s;r++)if(o[r]in t)return o[r]}}var TRANSFORM_VENDOR=testStyle(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TRANSITION_VENDOR=testStyle(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function toCSSVendorPrefix(o,t){if(!o)return t;t=toCamelCase(t,!0);var r=o.indexOf(t);return o=r===-1?t:"-"+o.slice(0,r)+"-"+t,o.toLowerCase()}function getComputedStyle$1(o,t){var r=o.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(o);return r?t?r[t]:r:null}var CSS_TRANSITION_VENDOR=toCSSVendorPrefix(TRANSITION_VENDOR,"transition"),CSS_TRANSFORM_VENDOR=toCSSVendorPrefix(TRANSFORM_VENDOR,"transform"),gCssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(env$1.transform3dSupported?"will-change:transform;":"");function mirrorPos(o){return o=o==="left"?"right":o==="right"?"left":o==="top"?"bottom":"top",o}function assembleArrow(o,t,r){if(!isString(r)||r==="inside")return"";var s=o.get("backgroundColor"),l=o.get("borderWidth");t=convertToColorString(t);var h=mirrorPos(r),v=Math.max(Math.round(l)*1.5,6),S="",x=CSS_TRANSFORM_VENDOR+":",T;indexOf(["left","right"],h)>-1?(S+="top:50%",x+="translateY(-50%) rotate("+(T=h==="left"?-225:-45)+"deg)"):(S+="left:50%",x+="translateX(-50%) rotate("+(T=h==="top"?225:45)+"deg)");var C=T*Math.PI/180,M=v+l,w=M*Math.abs(Math.cos(C))+M*Math.abs(Math.sin(C)),D=Math.round(((w-Math.SQRT2*l)/2+Math.SQRT2*l-(w-M)/2)*100)/100;S+=";"+h+":-"+D+"px";var O=t+" solid "+l+"px;",N=["position:absolute;width:"+v+"px;height:"+v+"px;z-index:-1;",S+";"+x+";","border-bottom:"+O,"border-right:"+O,"background-color:"+s+";"];return'<div style="'+N.join("")+'"></div>'}function assembleTransition(o,t){var r="cubic-bezier(0.23,1,0.32,1)",s=" "+o/2+"s "+r,l="opacity"+s+",visibility"+s;return t||(s=" "+o+"s "+r,l+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+s:",left"+s+",top"+s),CSS_TRANSITION_VENDOR+":"+l}function assembleTransform(o,t,r){var s=o.toFixed(0)+"px",l=t.toFixed(0)+"px";if(!env$1.transformSupported)return r?"top:"+l+";left:"+s+";":[["top",l],["left",s]];var h=env$1.transform3dSupported,v="translate"+(h?"3d":"")+"("+s+","+l+(h?",0":"")+")";return r?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+v+";":[["top",0],["left",0],[TRANSFORM_VENDOR,v]]}function assembleFont(o){var t=[],r=o.get("fontSize"),s=o.getTextColor();s&&t.push("color:"+s),t.push("font:"+o.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var l=o.get("textShadowColor"),h=o.get("textShadowBlur")||0,v=o.get("textShadowOffsetX")||0,S=o.get("textShadowOffsetY")||0;return l&&h&&t.push("text-shadow:"+v+"px "+S+"px "+h+"px "+l),each$c(["decoration","align"],function(x){var T=o.get(x);T&&t.push("text-"+x+":"+T)}),t.join(";")}function assembleCssText(o,t,r){var s=[],l=o.get("transitionDuration"),h=o.get("backgroundColor"),v=o.get("shadowBlur"),S=o.get("shadowColor"),x=o.get("shadowOffsetX"),T=o.get("shadowOffsetY"),C=o.getModel("textStyle"),M=getPaddingFromTooltipModel(o,"html"),w=x+"px "+T+"px "+v+"px "+S;return s.push("box-shadow:"+w),t&&l&&s.push(assembleTransition(l,r)),h&&s.push("background-color:"+h),each$c(["width","color","radius"],function(D){var O="border-"+D,N=toCamelCase(O),k=o.get(N);k!=null&&s.push(O+":"+k+(D==="color"?"":"px"))}),s.push(assembleFont(C)),M!=null&&s.push("padding:"+normalizeCssArray(M).join("px ")+"px"),s.join(";")+";"}function makeStyleCoord$1(o,t,r,s,l){var h=t&&t.painter;if(r){var v=h&&h.getViewportRoot();v&&transformLocalCoord(o,v,document.body,s,l)}else{o[0]=s,o[1]=l;var S=h&&h.getViewportRootOffset();S&&(o[0]+=S.offsetLeft,o[1]+=S.offsetTop)}o[2]=o[0]/t.getWidth(),o[3]=o[1]/t.getHeight()}var TooltipHTMLContent=function(){function o(t,r,s){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,env$1.wxa)return null;var l=document.createElement("div");l.domBelongToZr=!0,this.el=l;var h=this._zr=r.getZr(),v=this._appendToBody=s&&s.appendToBody;makeStyleCoord$1(this._styleCoord,h,v,r.getWidth()/2,r.getHeight()/2),v?document.body.appendChild(l):t.appendChild(l),this._container=t;var S=this;l.onmouseenter=function(){S._enterable&&(clearTimeout(S._hideTimeout),S._show=!0),S._inContent=!0},l.onmousemove=function(x){if(x=x||window.event,!S._enterable){var T=h.handler,C=h.painter.getViewportRoot();normalizeEvent(C,x,!0),T.dispatch("mousemove",x)}},l.onmouseleave=function(){S._inContent=!1,S._enterable&&S._show&&S.hideLater(S._hideDelay)}}return o.prototype.update=function(t){var r=this._container,s=getComputedStyle$1(r,"position"),l=r.style;l.position!=="absolute"&&s!=="absolute"&&(l.position="relative");var h=t.get("alwaysShowContent");h&&this._moveIfResized(),this.el.className=t.get("className")||""},o.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var s=this.el,l=s.style,h=this._styleCoord;s.innerHTML?l.cssText=gCssText+assembleCssText(t,!this._firstShow,this._longHide)+assembleTransform(h[0],h[1],!0)+("border-color:"+convertToColorString(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):l.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},o.prototype.setContent=function(t,r,s,l,h){var v=this.el;if(t==null){v.innerHTML="";return}var S="";if(isString(h)&&s.get("trigger")==="item"&&!shouldTooltipConfine(s)&&(S=assembleArrow(s,l,h)),isString(t))v.innerHTML=t+S;else if(t){v.innerHTML="",isArray$1(t)||(t=[t]);for(var x=0;x<t.length;x++)isDom(t[x])&&t[x].parentNode!==v&&v.appendChild(t[x]);if(S&&v.childNodes.length){var T=document.createElement("div");T.innerHTML=S,v.appendChild(T)}}},o.prototype.setEnterable=function(t){this._enterable=t},o.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},o.prototype.moveTo=function(t,r){var s=this._styleCoord;if(makeStyleCoord$1(s,this._zr,this._appendToBody,t,r),s[0]!=null&&s[1]!=null){var l=this.el.style,h=assembleTransform(s[0],s[1]);each$c(h,function(v){l[v[0]]=v[1]})}},o.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},o.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",env$1.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},o.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),t)):this.hide())},o.prototype.isShow=function(){return this._show},o.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},o}();const TooltipHTMLContent$1=TooltipHTMLContent;var TooltipRichContent=function(){function o(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),makeStyleCoord(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return o.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized()},o.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},o.prototype.setContent=function(t,r,s,l,h){var v=this;isObject$3(t)&&throwError(""),this.el&&this._zr.remove(this.el);var S=s.getModel("textStyle");this.el=new ZRText$1({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:l,textShadowColor:S.get("textShadowColor"),fill:s.get(["textStyle","color"]),padding:getPaddingFromTooltipModel(s,"richText"),verticalAlign:"top",align:"left"},z:s.get("z")}),each$c(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(T){v.el.style[T]=s.get(T)}),each$c(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(T){v.el.style[T]=S.get(T)||0}),this._zr.add(this.el);var x=this;this.el.on("mouseover",function(){x._enterable&&(clearTimeout(x._hideTimeout),x._show=!0),x._inContent=!0}),this.el.on("mouseout",function(){x._enterable&&x._show&&x.hideLater(x._hideDelay),x._inContent=!1})},o.prototype.setEnterable=function(t){this._enterable=t},o.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),s=calcShadowOuterSize(t.style);return[r.width+s.left+s.right,r.height+s.top+s.bottom]},o.prototype.moveTo=function(t,r){var s=this.el;if(s){var l=this._styleCoord;makeStyleCoord(l,this._zr,t,r),t=l[0],r=l[1];var h=s.style,v=mathMaxWith0(h.borderWidth||0),S=calcShadowOuterSize(h);s.x=t+v+S.left,s.y=r+v+S.top,s.markRedraw()}},o.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},o.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},o.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),t)):this.hide())},o.prototype.isShow=function(){return this._show},o.prototype.dispose=function(){this._zr.remove(this.el)},o}();function mathMaxWith0(o){return Math.max(0,o)}function calcShadowOuterSize(o){var t=mathMaxWith0(o.shadowBlur||0),r=mathMaxWith0(o.shadowOffsetX||0),s=mathMaxWith0(o.shadowOffsetY||0);return{left:mathMaxWith0(t-r),right:mathMaxWith0(t+r),top:mathMaxWith0(t-s),bottom:mathMaxWith0(t+s)}}function makeStyleCoord(o,t,r,s){o[0]=r,o[1]=s,o[2]=o[0]/t.getWidth(),o[3]=o[1]/t.getHeight()}const TooltipRichContent$1=TooltipRichContent;var proxyRect=new Rect$2({shape:{x:-1,y:-1,width:2,height:2}}),TooltipView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,s){if(!(env$1.node||!s.getDom())){var l=r.getComponent("tooltip"),h=this._renderMode=getTooltipRenderMode(l.get("renderMode"));this._tooltipContent=h==="richText"?new TooltipRichContent$1(s):new TooltipHTMLContent$1(s.getDom(),s,{appendToBody:l.get("appendToBody",!0)})}},t.prototype.render=function(r,s,l){if(!(env$1.node||!l.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=s,this._api=l,this._alwaysShowContent=r.get("alwaysShowContent");var h=this._tooltipContent;h.update(r),h.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?createOrUpdate(this,"_updatePosition",50,"fixRate"):clear$1(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,s=r.get("triggerOn");register("itemTooltip",this._api,bind$1(function(l,h,v){s!=="none"&&(s.indexOf(l)>=0?this._tryShow(h,v):l==="leave"&&this._hide(v))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,s=this._ecModel,l=this._api,h=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&h!=="none"&&h!=="click"){var v=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!l.isDisposed()&&v.manuallyShowTip(r,s,l,{x:v._lastX,y:v._lastY,dataByCoordSys:v._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,s,l,h){if(!(h.from===this.uid||env$1.node||!l.getDom())){var v=makeDispatchAction(h,l);this._ticket="";var S=h.dataByCoordSys,x=findComponentReference(h,s,l);if(x){var T=x.el.getBoundingRect().clone();T.applyTransform(x.el.transform),this._tryShow({offsetX:T.x+T.width/2,offsetY:T.y+T.height/2,target:x.el,position:h.position,positionDefault:"bottom"},v)}else if(h.tooltip&&h.x!=null&&h.y!=null){var C=proxyRect;C.x=h.x,C.y=h.y,C.update(),getECData(C).tooltipConfig={name:null,option:h.tooltip},this._tryShow({offsetX:h.x,offsetY:h.y,target:C},v)}else if(S)this._tryShow({offsetX:h.x,offsetY:h.y,position:h.position,dataByCoordSys:S,tooltipOption:h.tooltipOption},v);else if(h.seriesIndex!=null){if(this._manuallyAxisShowTip(r,s,l,h))return;var M=findPointFromSeries(h,s),w=M.point[0],D=M.point[1];w!=null&&D!=null&&this._tryShow({offsetX:w,offsetY:D,target:M.el,position:h.position,positionDefault:"bottom"},v)}else h.x!=null&&h.y!=null&&(l.dispatchAction({type:"updateAxisPointer",x:h.x,y:h.y}),this._tryShow({offsetX:h.x,offsetY:h.y,position:h.position,target:l.getZr().findHover(h.x,h.y).target},v))}},t.prototype.manuallyHideTip=function(r,s,l,h){var v=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&v.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,h.from!==this.uid&&this._hide(makeDispatchAction(h,l))},t.prototype._manuallyAxisShowTip=function(r,s,l,h){var v=h.seriesIndex,S=h.dataIndex,x=s.getComponent("axisPointer").coordSysAxesInfo;if(!(v==null||S==null||x==null)){var T=s.getSeriesByIndex(v);if(T){var C=T.getData(),M=buildTooltipModel([C.getItemModel(S),T,(T.coordinateSystem||{}).model],this._tooltipModel);if(M.get("trigger")==="axis")return l.dispatchAction({type:"updateAxisPointer",seriesIndex:v,dataIndex:S,position:h.position}),!0}}},t.prototype._tryShow=function(r,s){var l=r.target,h=this._tooltipModel;if(h){this._lastX=r.offsetX,this._lastY=r.offsetY;var v=r.dataByCoordSys;if(v&&v.length)this._showAxisTooltip(v,r);else if(l){this._lastDataByCoordSys=null;var S,x;findEventDispatcher(l,function(T){if(getECData(T).dataIndex!=null)return S=T,!0;if(getECData(T).tooltipConfig!=null)return x=T,!0},!0),S?this._showSeriesItemTooltip(r,S,s):x?this._showComponentItemTooltip(r,x,s):this._hide(s)}else this._lastDataByCoordSys=null,this._hide(s)}},t.prototype._showOrMove=function(r,s){var l=r.get("showDelay");s=bind$1(s,this),clearTimeout(this._showTimout),l>0?this._showTimout=setTimeout(s,l):s()},t.prototype._showAxisTooltip=function(r,s){var l=this._ecModel,h=this._tooltipModel,v=[s.offsetX,s.offsetY],S=buildTooltipModel([s.tooltipOption],h),x=this._renderMode,T=[],C=createTooltipMarkup("section",{blocks:[],noHeader:!0}),M=[],w=new TooltipMarkupStyleCreator;each$c(r,function(B){each$c(B.dataByAxis,function(V){var z=l.getComponent(V.axisDim+"Axis",V.axisIndex),U=V.value;if(!(!z||U==null)){var Y=getValueLabel(U,z.axis,l,V.seriesDataIndices,V.valueLabelOpt),W=createTooltipMarkup("section",{header:Y,noHeader:!trim$1(Y),sortBlocks:!0,blocks:[]});C.blocks.push(W),each$c(V.seriesDataIndices,function(X){var K=l.getSeriesByIndex(X.seriesIndex),J=X.dataIndexInside,q=K.getDataParams(J);if(!(q.dataIndex<0)){q.axisDim=V.axisDim,q.axisIndex=V.axisIndex,q.axisType=V.axisType,q.axisId=V.axisId,q.axisValue=getAxisRawValue(z.axis,{value:U}),q.axisValueLabel=Y,q.marker=w.makeTooltipMarker("item",convertToColorString(q.color),x);var ee=normalizeTooltipFormatResult(K.formatTooltip(J,!0,null)),te=ee.frag;if(te){var ne=buildTooltipModel([K],h).get("valueFormatter");W.blocks.push(ne?extend({valueFormatter:ne},te):te)}ee.text&&M.push(ee.text),T.push(q)}})}})}),C.blocks.reverse(),M.reverse();var D=s.position,O=S.get("order"),N=buildTooltipMarkup(C,w,x,O,l.get("useUTC"),S.get("textStyle"));N&&M.unshift(N);var k=x==="richText"?`
|
||
|
||
`:"<br/>",F=M.join(k);this._showOrMove(S,function(){this._updateContentNotChangedOnAxis(r,T)?this._updatePosition(S,D,v[0],v[1],this._tooltipContent,T):this._showTooltipContent(S,F,T,Math.random()+"",v[0],v[1],D,null,w)})},t.prototype._showSeriesItemTooltip=function(r,s,l){var h=this._ecModel,v=getECData(s),S=v.seriesIndex,x=h.getSeriesByIndex(S),T=v.dataModel||x,C=v.dataIndex,M=v.dataType,w=T.getData(M),D=this._renderMode,O=r.positionDefault,N=buildTooltipModel([w.getItemModel(C),T,x&&(x.coordinateSystem||{}).model],this._tooltipModel,O?{position:O}:null),k=N.get("trigger");if(!(k!=null&&k!=="item")){var F=T.getDataParams(C,M),B=new TooltipMarkupStyleCreator;F.marker=B.makeTooltipMarker("item",convertToColorString(F.color),D);var V=normalizeTooltipFormatResult(T.formatTooltip(C,!1,M)),z=N.get("order"),U=N.get("valueFormatter"),Y=V.frag,W=Y?buildTooltipMarkup(U?extend({valueFormatter:U},Y):Y,B,D,z,h.get("useUTC"),N.get("textStyle")):V.text,X="item_"+T.name+"_"+C;this._showOrMove(N,function(){this._showTooltipContent(N,W,F,X,r.offsetX,r.offsetY,r.position,r.target,B)}),l({type:"showTip",dataIndexInside:C,dataIndex:w.getRawIndex(C),seriesIndex:S,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,s,l){var h=getECData(s),v=h.tooltipConfig,S=v.option||{};if(isString(S)){var x=S;S={content:x,formatter:x}}var T=[S],C=this._ecModel.getComponent(h.componentMainType,h.componentIndex);C&&T.push(C),T.push({formatter:S.content});var M=r.positionDefault,w=buildTooltipModel(T,this._tooltipModel,M?{position:M}:null),D=w.get("content"),O=Math.random()+"",N=new TooltipMarkupStyleCreator;this._showOrMove(w,function(){var k=clone$3(w.get("formatterParams")||{});this._showTooltipContent(w,D,k,O,r.offsetX,r.offsetY,r.position,s,N)}),l({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,s,l,h,v,S,x,T,C){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var M=this._tooltipContent;M.setEnterable(r.get("enterable"));var w=r.get("formatter");x=x||r.get("position");var D=s,O=this._getNearestPoint([v,S],l,r.get("trigger"),r.get("borderColor")),N=O.color;if(w)if(isString(w)){var k=r.ecModel.get("useUTC"),F=isArray$1(l)?l[0]:l,B=F&&F.axisType&&F.axisType.indexOf("time")>=0;D=w,B&&(D=format$1(F.axisValue,D,k)),D=formatTpl(D,l,!0)}else if(isFunction(w)){var V=bind$1(function(z,U){z===this._ticket&&(M.setContent(U,C,r,N,x),this._updatePosition(r,x,v,S,M,l,T))},this);this._ticket=h,D=w(l,h,V)}else D=w;M.setContent(D,C,r,N,x),M.show(r,N),this._updatePosition(r,x,v,S,M,l,T)}},t.prototype._getNearestPoint=function(r,s,l,h){if(l==="axis"||isArray$1(s))return{color:h||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(s))return{color:h||s.color||s.borderColor}},t.prototype._updatePosition=function(r,s,l,h,v,S,x){var T=this._api.getWidth(),C=this._api.getHeight();s=s||r.get("position");var M=v.getSize(),w=r.get("align"),D=r.get("verticalAlign"),O=x&&x.getBoundingRect().clone();if(x&&O.applyTransform(x.transform),isFunction(s)&&(s=s([l,h],S,v.el,O,{viewSize:[T,C],contentSize:M.slice()})),isArray$1(s))l=parsePercent(s[0],T),h=parsePercent(s[1],C);else if(isObject$3(s)){var N=s;N.width=M[0],N.height=M[1];var k=getLayoutRect(N,{width:T,height:C});l=k.x,h=k.y,w=null,D=null}else if(isString(s)&&x){var F=calcTooltipPosition(s,O,M,r.get("borderWidth"));l=F[0],h=F[1]}else{var F=refixTooltipPosition(l,h,v,T,C,w?null:20,D?null:20);l=F[0],h=F[1]}if(w&&(l-=isCenterAlign(w)?M[0]/2:w==="right"?M[0]:0),D&&(h-=isCenterAlign(D)?M[1]/2:D==="bottom"?M[1]:0),shouldTooltipConfine(r)){var F=confineTooltipPosition(l,h,v,T,C);l=F[0],h=F[1]}v.moveTo(l,h)},t.prototype._updateContentNotChangedOnAxis=function(r,s){var l=this._lastDataByCoordSys,h=this._cbParamsList,v=!!l&&l.length===r.length;return v&&each$c(l,function(S,x){var T=S.dataByAxis||[],C=r[x]||{},M=C.dataByAxis||[];v=v&&T.length===M.length,v&&each$c(T,function(w,D){var O=M[D]||{},N=w.seriesDataIndices||[],k=O.seriesDataIndices||[];v=v&&w.value===O.value&&w.axisType===O.axisType&&w.axisId===O.axisId&&N.length===k.length,v&&each$c(N,function(F,B){var V=k[B];v=v&&F.seriesIndex===V.seriesIndex&&F.dataIndex===V.dataIndex}),h&&each$c(w.seriesDataIndices,function(F){var B=F.seriesIndex,V=s[B],z=h[B];V&&z&&z.data!==V.data&&(v=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=s,!!v},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,s){env$1.node||!s.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",s))},t.type="tooltip",t}(ComponentView$1);function buildTooltipModel(o,t,r){var s=t.ecModel,l;r?(l=new Model$1(r,s,s),l=new Model$1(t.option,l,s)):l=t;for(var h=o.length-1;h>=0;h--){var v=o[h];v&&(v instanceof Model$1&&(v=v.get("tooltip",!0)),isString(v)&&(v={formatter:v}),v&&(l=new Model$1(v,l,s)))}return l}function makeDispatchAction(o,t){return o.dispatchAction||bind$1(t.dispatchAction,t)}function refixTooltipPosition(o,t,r,s,l,h,v){var S=r.getSize(),x=S[0],T=S[1];return h!=null&&(o+x+h+2>s?o-=x+h:o+=h),v!=null&&(t+T+v>l?t-=T+v:t+=v),[o,t]}function confineTooltipPosition(o,t,r,s,l){var h=r.getSize(),v=h[0],S=h[1];return o=Math.min(o+v,s)-v,t=Math.min(t+S,l)-S,o=Math.max(o,0),t=Math.max(t,0),[o,t]}function calcTooltipPosition(o,t,r,s){var l=r[0],h=r[1],v=Math.ceil(Math.SQRT2*s)+8,S=0,x=0,T=t.width,C=t.height;switch(o){case"inside":S=t.x+T/2-l/2,x=t.y+C/2-h/2;break;case"top":S=t.x+T/2-l/2,x=t.y-h-v;break;case"bottom":S=t.x+T/2-l/2,x=t.y+C+v;break;case"left":S=t.x-l-v,x=t.y+C/2-h/2;break;case"right":S=t.x+T+v,x=t.y+C/2-h/2}return[S,x]}function isCenterAlign(o){return o==="center"||o==="middle"}function findComponentReference(o,t,r){var s=preParseFinder(o).queryOptionMap,l=s.keys()[0];if(!(!l||l==="series")){var h=queryReferringComponents(t,l,s.get(l),{useDefault:!1,enableAll:!1,enableNone:!1}),v=h.models[0];if(v){var S=r.getViewOfComponentModel(v),x;if(S.group.traverse(function(T){var C=getECData(T).tooltipConfig;if(C&&C.name===o.name)return x=T,!0}),x)return{componentMainType:l,componentIndex:v.componentIndex,el:x}}}}const TooltipView$1=TooltipView;function install$a(o){use$1(install$f),o.registerComponentModel(TooltipModel$1),o.registerComponentView(TooltipView$1),o.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),o.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var each$4=each$c;function hasKeys(o){if(o){for(var t in o)if(o.hasOwnProperty(t))return!0}}function createVisualMappings(o,t,r){var s={};return each$4(t,function(h){var v=s[h]=l();each$4(o[h],function(S,x){if(VisualMapping$1.isValidType(x)){var T={type:x,visual:S};r&&r(T,h),v[x]=new VisualMapping$1(T),x==="opacity"&&(T=clone$3(T),T.type="colorAlpha",v.__hidden.__alphaForOpacity=new VisualMapping$1(T))}})}),s;function l(){var h=function(){};h.prototype.__hidden=h.prototype;var v=new h;return v}}function replaceVisualOption(o,t,r){var s;each$c(r,function(l){t.hasOwnProperty(l)&&hasKeys(t[l])&&(s=!0)}),s&&each$c(r,function(l){t.hasOwnProperty(l)&&hasKeys(t[l])?o[l]=clone$3(t[l]):delete o[l]})}function incrementalApplyVisual(o,t,r,s){var l={};return each$c(o,function(h){var v=VisualMapping$1.prepareVisualTypes(t[h]);l[h]=v}),{progress:function(v,S){var x;s!=null&&(x=S.getDimensionIndex(s));function T(U){return getItemVisualFromData(S,M,U)}function C(U,Y){setItemVisualFromData(S,M,U,Y)}for(var M,w=S.getStore();(M=v.next())!=null;){var D=S.getRawDataItem(M);if(!(D&&D.visualMap===!1))for(var O=s!=null?w.get(x,M):M,N=r(O),k=t[N],F=l[N],B=0,V=F.length;B<V;B++){var z=F[B];k[z]&&k[z].applyVisual(O,T,C)}}}}}var TitleModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ComponentModel$1),TitleView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,s,l){if(this.group.removeAll(),!!r.get("show")){var h=this.group,v=r.getModel("textStyle"),S=r.getModel("subtextStyle"),x=r.get("textAlign"),T=retrieve2(r.get("textBaseline"),r.get("textVerticalAlign")),C=new ZRText$1({style:createTextStyle$1(v,{text:r.get("text"),fill:v.getTextColor()},{disableBox:!0}),z2:10}),M=C.getBoundingRect(),w=r.get("subtext"),D=new ZRText$1({style:createTextStyle$1(S,{text:w,fill:S.getTextColor(),y:M.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),O=r.get("link"),N=r.get("sublink"),k=r.get("triggerEvent",!0);C.silent=!O&&!k,D.silent=!N&&!k,O&&C.on("click",function(){windowOpen(O,"_"+r.get("target"))}),N&&D.on("click",function(){windowOpen(N,"_"+r.get("subtarget"))}),getECData(C).eventData=getECData(D).eventData=k?{componentType:"title",componentIndex:r.componentIndex}:null,h.add(C),w&&h.add(D);var F=h.getBoundingRect(),B=r.getBoxLayoutParams();B.width=F.width,B.height=F.height;var V=getLayoutRect(B,{width:l.getWidth(),height:l.getHeight()},r.get("padding"));x||(x=r.get("left")||r.get("right"),x==="middle"&&(x="center"),x==="right"?V.x+=V.width:x==="center"&&(V.x+=V.width/2)),T||(T=r.get("top")||r.get("bottom"),T==="center"&&(T="middle"),T==="bottom"?V.y+=V.height:T==="middle"&&(V.y+=V.height/2),T=T||"top"),h.x=V.x,h.y=V.y,h.markRedraw();var z={align:x,verticalAlign:T};C.setStyle(z),D.setStyle(z),F=h.getBoundingRect();var U=V.margin,Y=r.getItemStyle(["color","opacity"]);Y.fill=r.get("backgroundColor");var W=new Rect$2({shape:{x:F.x-U[3],y:F.y-U[0],width:F.width+U[1]+U[3],height:F.height+U[0]+U[2],r:r.get("borderRadius")},style:Y,subPixelOptimize:!0,silent:!0});h.add(W)}},t.type="title",t}(ComponentView$1);function install$9(o){o.registerComponentModel(TitleModel),o.registerComponentView(TitleView)}var getDefaultSelectorOptions=function(o,t){if(t==="all")return{type:"all",title:o.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:o.getLocaleModel().get(["legend","selector","inverse"])}},LegendModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,s,l){this.mergeDefaultAndTheme(r,l),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,s){o.prototype.mergeOption.call(this,r,s),this._updateSelector(r)},t.prototype._updateSelector=function(r){var s=r.selector,l=this.ecModel;s===!0&&(s=r.selector=["all","inverse"]),isArray$1(s)&&each$c(s,function(h,v){isString(h)&&(h={type:h}),s[v]=merge(h,getDefaultSelectorOptions(l,h.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var s=!1,l=0;l<r.length;l++){var h=r[l].get("name");if(this.isSelected(h)){this.select(h),s=!0;break}}!s&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var s=[],l=[];r.eachRawSeries(function(x){var T=x.name;l.push(T);var C;if(x.legendVisualProvider){var M=x.legendVisualProvider,w=M.getAllNames();r.isSeriesFiltered(x)||(l=l.concat(w)),w.length?s=s.concat(w):C=!0}else C=!0;C&&isNameSpecified(x)&&s.push(x.name)}),this._availableNames=l;var h=this.get("data")||s,v=createHashMap(),S=map$2(h,function(x){return(isString(x)||isNumber(x))&&(x={name:x}),v.get(x.name)?null:(v.set(x.name,!0),new Model$1(x,this,this.ecModel))},this);this._data=filter(S,function(x){return!!x})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var s=this.option.selected,l=this.get("selectedMode");if(l==="single"){var h=this._data;each$c(h,function(v){s[v.get("name")]=!1})}s[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var s=this.option.selected;s.hasOwnProperty(r)||(s[r]=!0),this[s[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,s=this.option.selected;each$c(r,function(l){s[l.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,s=this.option.selected;each$c(r,function(l){var h=l.get("name",!0);s.hasOwnProperty(h)||(s[h]=!0),s[h]=!s[h]})},t.prototype.isSelected=function(r){var s=this.option.selected;return!(s.hasOwnProperty(r)&&!s[r])&&indexOf(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ComponentModel$1);const LegendModel$1=LegendModel;var curry=curry$1,each$3=each$c,Group$1=Group$3,LegendView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,s,l){var h=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var v=r.get("align"),S=r.get("orient");(!v||v==="auto")&&(v=r.get("left")==="right"&&S==="vertical"?"right":"left");var x=r.get("selector",!0),T=r.get("selectorPosition",!0);x&&(!T||T==="auto")&&(T=S==="horizontal"?"end":"start"),this.renderInner(v,r,s,l,x,S,T);var C=r.getBoxLayoutParams(),M={width:l.getWidth(),height:l.getHeight()},w=r.get("padding"),D=getLayoutRect(C,M,w),O=this.layoutInner(r,v,D,h,x,T),N=getLayoutRect(defaults({width:O.width,height:O.height},C),M,w);this.group.x=N.x-O.x,this.group.y=N.y-O.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(O,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,s,l,h,v,S,x){var T=this.getContentGroup(),C=createHashMap(),M=s.get("selectedMode"),w=[];l.eachRawSeries(function(D){!D.get("legendHoverLink")&&w.push(D.id)}),each$3(s.getData(),function(D,O){var N=D.get("name");if(!this.newlineDisabled&&(N===""||N===`
|
||
`)){var k=new Group$1;k.newline=!0,T.add(k);return}var F=l.getSeriesByName(N)[0];if(!C.get(N))if(F){var B=F.getData(),V=B.getVisual("legendLineStyle")||{},z=B.getVisual("legendIcon"),U=B.getVisual("style"),Y=this._createItem(F,N,O,D,s,r,V,U,z,M,h);Y.on("click",curry(dispatchSelectAction,N,null,h,w)).on("mouseover",curry(dispatchHighlightAction,F.name,null,h,w)).on("mouseout",curry(dispatchDownplayAction,F.name,null,h,w)),C.set(N,!0)}else l.eachRawSeries(function(W){if(!C.get(N)&&W.legendVisualProvider){var X=W.legendVisualProvider;if(!X.containName(N))return;var K=X.indexOfName(N),J=X.getItemVisual(K,"style"),q=X.getItemVisual(K,"legendIcon"),ee=parse$1(J.fill);ee&&ee[3]===0&&(ee[3]=.2,J=extend(extend({},J),{fill:stringify(ee,"rgba")}));var te=this._createItem(W,N,O,D,s,r,{},J,q,M,h);te.on("click",curry(dispatchSelectAction,null,N,h,w)).on("mouseover",curry(dispatchHighlightAction,null,N,h,w)).on("mouseout",curry(dispatchDownplayAction,null,N,h,w)),C.set(N,!0)}},this)},this),v&&this._createSelector(v,s,h,S,x)},t.prototype._createSelector=function(r,s,l,h,v){var S=this.getSelectorGroup();each$3(r,function(T){var C=T.type,M=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){l.dispatchAction({type:C==="all"?"legendAllSelect":"legendInverseSelect"})}});S.add(M);var w=s.getModel("selectorLabel"),D=s.getModel(["emphasis","selectorLabel"]);setLabelStyle(M,{normal:w,emphasis:D},{defaultText:T.title}),enableHoverEmphasis(M)})},t.prototype._createItem=function(r,s,l,h,v,S,x,T,C,M,w){var D=r.visualDrawType,O=v.get("itemWidth"),N=v.get("itemHeight"),k=v.isSelected(s),F=h.get("symbolRotate"),B=h.get("symbolKeepAspect"),V=h.get("icon");C=V||C||"roundRect";var z=getLegendStyle(C,h,x,T,D,k,w),U=new Group$1,Y=h.getModel("textStyle");if(isFunction(r.getLegendIcon)&&(!V||V==="inherit"))U.add(r.getLegendIcon({itemWidth:O,itemHeight:N,icon:C,iconRotate:F,itemStyle:z.itemStyle,lineStyle:z.lineStyle,symbolKeepAspect:B}));else{var W=V==="inherit"&&r.getData().getVisual("symbol")?F==="inherit"?r.getData().getVisual("symbolRotate"):F:0;U.add(getDefaultLegendIcon({itemWidth:O,itemHeight:N,icon:C,iconRotate:W,itemStyle:z.itemStyle,lineStyle:z.lineStyle,symbolKeepAspect:B}))}var X=S==="left"?O+5:-5,K=S,J=v.get("formatter"),q=s;isString(J)&&J?q=J.replace("{name}",s??""):isFunction(J)&&(q=J(s));var ee=h.get("inactiveColor");U.add(new ZRText$1({style:createTextStyle$1(Y,{text:q,x:X,y:N/2,fill:k?Y.getTextColor():ee,align:K,verticalAlign:"middle"})}));var te=new Rect$2({shape:U.getBoundingRect(),invisible:!0}),ne=h.getModel("tooltip");return ne.get("show")&&setTooltipConfig({el:te,componentModel:v,itemName:s,itemTooltipOption:ne.option}),U.add(te),U.eachChild(function(ae){ae.silent=!0}),te.silent=!M,this.getContentGroup().add(U),enableHoverEmphasis(U),U.__legendDataIndex=l,U},t.prototype.layoutInner=function(r,s,l,h,v,S){var x=this.getContentGroup(),T=this.getSelectorGroup();box(r.get("orient"),x,r.get("itemGap"),l.width,l.height);var C=x.getBoundingRect(),M=[-C.x,-C.y];if(T.markRedraw(),x.markRedraw(),v){box("horizontal",T,r.get("selectorItemGap",!0));var w=T.getBoundingRect(),D=[-w.x,-w.y],O=r.get("selectorButtonGap",!0),N=r.getOrient().index,k=N===0?"width":"height",F=N===0?"height":"width",B=N===0?"y":"x";S==="end"?D[N]+=C[k]+O:M[N]+=w[k]+O,D[1-N]+=C[F]/2-w[F]/2,T.x=D[0],T.y=D[1],x.x=M[0],x.y=M[1];var V={x:0,y:0};return V[k]=C[k]+O+w[k],V[F]=Math.max(C[F],w[F]),V[B]=Math.min(0,w[B]+D[1-N]),V}else return x.x=M[0],x.y=M[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ComponentView$1);function getLegendStyle(o,t,r,s,l,h,v){function S(k,F){k.lineWidth==="auto"&&(k.lineWidth=F.lineWidth>0?2:0),each$3(k,function(B,V){k[V]==="inherit"&&(k[V]=F[V])})}var x=t.getModel("itemStyle"),T=x.getItemStyle(),C=o.lastIndexOf("empty",0)===0?"fill":"stroke",M=x.getShallow("decal");T.decal=!M||M==="inherit"?s.decal:createOrUpdatePatternFromDecal(M,v),T.fill==="inherit"&&(T.fill=s[l]),T.stroke==="inherit"&&(T.stroke=s[C]),T.opacity==="inherit"&&(T.opacity=(l==="fill"?s:r).opacity),S(T,s);var w=t.getModel("lineStyle"),D=w.getLineStyle();if(S(D,r),T.fill==="auto"&&(T.fill=s.fill),T.stroke==="auto"&&(T.stroke=s.fill),D.stroke==="auto"&&(D.stroke=s.fill),!h){var O=t.get("inactiveBorderWidth"),N=T[C];T.lineWidth=O==="auto"?s.lineWidth>0&&N?2:0:T.lineWidth,T.fill=t.get("inactiveColor"),T.stroke=t.get("inactiveBorderColor"),D.stroke=w.get("inactiveColor"),D.lineWidth=w.get("inactiveWidth")}return{itemStyle:T,lineStyle:D}}function getDefaultLegendIcon(o){var t=o.icon||"roundRect",r=createSymbol(t,0,0,o.itemWidth,o.itemHeight,o.itemStyle.fill,o.symbolKeepAspect);return r.setStyle(o.itemStyle),r.rotation=(o.iconRotate||0)*Math.PI/180,r.setOrigin([o.itemWidth/2,o.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function dispatchSelectAction(o,t,r,s){dispatchDownplayAction(o,t,r,s),r.dispatchAction({type:"legendToggleSelect",name:o??t}),dispatchHighlightAction(o,t,r,s)}function isUseHoverLayer(o){for(var t=o.getZr().storage.getDisplayList(),r,s=0,l=t.length;s<l&&!(r=t[s].states.emphasis);)s++;return r&&r.hoverLayer}function dispatchHighlightAction(o,t,r,s){isUseHoverLayer(r)||r.dispatchAction({type:"highlight",seriesName:o,name:t,excludeSeriesId:s})}function dispatchDownplayAction(o,t,r,s){isUseHoverLayer(r)||r.dispatchAction({type:"downplay",seriesName:o,name:t,excludeSeriesId:s})}const LegendView$1=LegendView;function legendFilter(o){var t=o.findComponents({mainType:"legend"});t&&t.length&&o.filterSeries(function(r){for(var s=0;s<t.length;s++)if(!t[s].isSelected(r.name))return!1;return!0})}function legendSelectActionHandler(o,t,r){var s={},l=o==="toggleSelected",h;return r.eachComponent("legend",function(v){l&&h!=null?v[h?"select":"unSelect"](t.name):o==="allSelect"||o==="inverseSelect"?v[o]():(v[o](t.name),h=v.isSelected(t.name));var S=v.getData();each$c(S,function(x){var T=x.get("name");if(!(T===`
|
||
`||T==="")){var C=v.isSelected(T);s.hasOwnProperty(T)?s[T]=s[T]&&C:s[T]=C}})}),o==="allSelect"||o==="inverseSelect"?{selected:s}:{name:t.name,selected:s}}function installLegendAction(o){o.registerAction("legendToggleSelect","legendselectchanged",curry$1(legendSelectActionHandler,"toggleSelected")),o.registerAction("legendAllSelect","legendselectall",curry$1(legendSelectActionHandler,"allSelect")),o.registerAction("legendInverseSelect","legendinverseselect",curry$1(legendSelectActionHandler,"inverseSelect")),o.registerAction("legendSelect","legendselected",curry$1(legendSelectActionHandler,"select")),o.registerAction("legendUnSelect","legendunselected",curry$1(legendSelectActionHandler,"unSelect"))}function install$8(o){o.registerComponentModel(LegendModel$1),o.registerComponentView(LegendView$1),o.registerProcessor(o.PRIORITY.PROCESSOR.SERIES_FILTER,legendFilter),o.registerSubTypeDefaulter("legend",function(){return"plain"}),installLegendAction(o)}var ScrollableLegendModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,s,l){var h=getLayoutParams(r);o.prototype.init.call(this,r,s,l),mergeAndNormalizeLayoutParams(this,r,h)},t.prototype.mergeOption=function(r,s){o.prototype.mergeOption.call(this,r,s),mergeAndNormalizeLayoutParams(this,this.option,r)},t.type="legend.scroll",t.defaultOption=inheritDefaultOption(LegendModel$1.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(LegendModel$1);function mergeAndNormalizeLayoutParams(o,t,r){var s=o.getOrient(),l=[1,1];l[s.index]=0,mergeLayoutParam(t,r,{type:"box",ignoreSize:!!l})}const ScrollableLegendModel$1=ScrollableLegendModel;var Group=Group$3,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){o.prototype.init.call(this),this.group.add(this._containerGroup=new Group),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Group)},t.prototype.resetInner=function(){o.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,s,l,h,v,S,x){var T=this;o.prototype.renderInner.call(this,r,s,l,h,v,S,x);var C=this._controllerGroup,M=s.get("pageIconSize",!0),w=isArray$1(M)?M:[M,M];O("pagePrev",0);var D=s.getModel("pageTextStyle");C.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:D.getTextColor(),font:D.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),O("pageNext",1);function O(N,k){var F=N+"DataIndex",B=createIcon(s.get("pageIcons",!0)[s.getOrient().name][k],{onclick:bind$1(T._pageGo,T,F,s,h)},{x:-w[0]/2,y:-w[1]/2,width:w[0],height:w[1]});B.name=N,C.add(B)}},t.prototype.layoutInner=function(r,s,l,h,v,S){var x=this.getSelectorGroup(),T=r.getOrient().index,C=WH[T],M=XY[T],w=WH[1-T],D=XY[1-T];v&&box("horizontal",x,r.get("selectorItemGap",!0));var O=r.get("selectorButtonGap",!0),N=x.getBoundingRect(),k=[-N.x,-N.y],F=clone$3(l);v&&(F[C]=l[C]-N[C]-O);var B=this._layoutContentAndController(r,h,F,T,C,w,D,M);if(v){if(S==="end")k[T]+=B[C]+O;else{var V=N[C]+O;k[T]-=V,B[M]-=V}B[C]+=N[C]+O,k[1-T]+=B[D]+B[w]/2-N[w]/2,B[w]=Math.max(B[w],N[w]),B[D]=Math.min(B[D],N[D]+k[1-T]),x.x=k[0],x.y=k[1],x.markRedraw()}return B},t.prototype._layoutContentAndController=function(r,s,l,h,v,S,x,T){var C=this.getContentGroup(),M=this._containerGroup,w=this._controllerGroup;box(r.get("orient"),C,r.get("itemGap"),h?l.width:null,h?null:l.height),box("horizontal",w,r.get("pageButtonItemGap",!0));var D=C.getBoundingRect(),O=w.getBoundingRect(),N=this._showController=D[v]>l[v],k=[-D.x,-D.y];s||(k[h]=C[T]);var F=[0,0],B=[-O.x,-O.y],V=retrieve2(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(N){var z=r.get("pageButtonPosition",!0);z==="end"?B[h]+=l[v]-O[v]:F[h]+=O[v]+V}B[1-h]+=D[S]/2-O[S]/2,C.setPosition(k),M.setPosition(F),w.setPosition(B);var U={x:0,y:0};if(U[v]=N?l[v]:D[v],U[S]=Math.max(D[S],O[S]),U[x]=Math.min(0,O[x]+B[1-h]),M.__rectSize=l[v],N){var Y={x:0,y:0};Y[v]=Math.max(l[v]-O[v]-V,0),Y[S]=U[S],M.setClipPath(new Rect$2({shape:Y})),M.__rectSize=Y[v]}else w.eachChild(function(X){X.attr({invisible:!0,silent:!0})});var W=this._getPageInfo(r);return W.pageIndex!=null&&updateProps$1(C,{x:W.contentPosition[0],y:W.contentPosition[1]},N?r:null),this._updatePageInfoView(r,W),U},t.prototype._pageGo=function(r,s,l){var h=this._getPageInfo(s)[r];h!=null&&l.dispatchAction({type:"legendScroll",scrollDataIndex:h,legendId:s.id})},t.prototype._updatePageInfoView=function(r,s){var l=this._controllerGroup;each$c(["pagePrev","pageNext"],function(C){var M=C+"DataIndex",w=s[M]!=null,D=l.childOfName(C);D&&(D.setStyle("fill",w?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),D.cursor=w?"pointer":"default")});var h=l.childOfName("pageText"),v=r.get("pageFormatter"),S=s.pageIndex,x=S!=null?S+1:0,T=s.pageCount;h&&v&&h.setStyle("text",isString(v)?v.replace("{current}",x==null?"":x+"").replace("{total}",T==null?"":T+""):v({current:x,total:T}))},t.prototype._getPageInfo=function(r){var s=r.get("scrollDataIndex",!0),l=this.getContentGroup(),h=this._containerGroup.__rectSize,v=r.getOrient().index,S=WH[v],x=XY[v],T=this._findTargetItemIndex(s),C=l.children(),M=C[T],w=C.length,D=w?1:0,O={contentPosition:[l.x,l.y],pageCount:D,pageIndex:D-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!M)return O;var N=z(M);O.contentPosition[v]=-N.s;for(var k=T+1,F=N,B=N,V=null;k<=w;++k)V=z(C[k]),(!V&&B.e>F.s+h||V&&!U(V,F.s))&&(B.i>F.i?F=B:F=V,F&&(O.pageNextDataIndex==null&&(O.pageNextDataIndex=F.i),++O.pageCount)),B=V;for(var k=T-1,F=N,B=N,V=null;k>=-1;--k)V=z(C[k]),(!V||!U(B,V.s))&&F.i<B.i&&(B=F,O.pagePrevDataIndex==null&&(O.pagePrevDataIndex=F.i),++O.pageCount,++O.pageIndex),F=V;return O;function z(Y){if(Y){var W=Y.getBoundingRect(),X=W[x]+Y[x];return{s:X,e:X+W[S],i:Y.__legendDataIndex}}}function U(Y,W){return Y.e>=W&&Y.s<=W+h}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var s,l=this.getContentGroup(),h;return l.eachChild(function(v,S){var x=v.__legendDataIndex;h==null&&x!=null&&(h=S),x===r&&(s=S)}),s??h},t.type="legend.scroll",t}(LegendView$1);const ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction(o){o.registerAction("legendScroll","legendscroll",function(t,r){var s=t.scrollDataIndex;s!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(l){l.setScrollDataIndex(s)})})}function install$7(o){use$1(install$8),o.registerComponentModel(ScrollableLegendModel$1),o.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction(o)}function install$6(o){use$1(install$8),use$1(install$7)}var InsideZoomModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(DataZoomModel$1);const InsideZoomModel$1=InsideZoomModel;var inner=makeInner();function setViewInfoToCoordSysRecord(o,t,r){inner(o).coordSysRecordMap.each(function(s){var l=s.dataZoomInfoMap.get(t.uid);l&&(l.getRange=r)})}function disposeCoordSysRecordIfNeeded(o,t){for(var r=inner(o).coordSysRecordMap,s=r.keys(),l=0;l<s.length;l++){var h=s[l],v=r.get(h),S=v.dataZoomInfoMap;if(S){var x=t.uid,T=S.get(x);T&&(S.removeKey(x),S.keys().length||disposeCoordSysRecord(r,v))}}}function disposeCoordSysRecord(o,t){if(t){o.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function createCoordSysRecord(o,t){var r={model:t,containsPoint:curry$1(containsPoint,t),dispatchAction:curry$1(dispatchAction,o),dataZoomInfoMap:null,controller:null},s=r.controller=new RoamController$1(o.getZr());return each$c(["pan","zoom","scrollMove"],function(l){s.on(l,function(h){var v=[];r.dataZoomInfoMap.each(function(S){if(h.isAvailableBehavior(S.model.option)){var x=(S.getRange||{})[l],T=x&&x(S.dzReferCoordSysInfo,r.model.mainType,r.controller,h);!S.model.get("disabled",!0)&&T&&v.push({dataZoomId:S.model.id,start:T[0],end:T[1]})}}),v.length&&r.dispatchAction(v)})}),r}function dispatchAction(o,t){o.isDisposed()||o.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function containsPoint(o,t,r,s){return o.coordinateSystem.containPoint([r,s])}function mergeControllerParams(o){var t,r="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0;return o.each(function(h){var v=h.model,S=v.get("disabled",!0)?!1:v.get("zoomLock",!0)?"move":!0;s[r+S]>s[r+t]&&(t=S),l=l&&v.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l}}}function installDataZoomRoamProcessor(o){o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,function(t,r){var s=inner(r),l=s.coordSysRecordMap||(s.coordSysRecordMap=createHashMap());l.each(function(h){h.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(h){var v=collectReferCoordSysModelInfo(h);each$c(v.infoList,function(S){var x=S.model.uid,T=l.get(x)||l.set(x,createCoordSysRecord(r,S.model)),C=T.dataZoomInfoMap||(T.dataZoomInfoMap=createHashMap());C.set(h.uid,{dzReferCoordSysInfo:S,model:h,getRange:null})})}),l.each(function(h){var v=h.controller,S,x=h.dataZoomInfoMap;if(x){var T=x.keys()[0];T!=null&&(S=x.get(T))}if(!S){disposeCoordSysRecord(l,h);return}var C=mergeControllerParams(x);v.enable(C.controlType,C.opt),v.setPointerChecker(h.containsPoint),createOrUpdate(h,"dispatchAction",S.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,s,l){if(o.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),setViewInfoToCoordSysRecord(l,r,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(DataZoomView$1),getRangeHandlers={zoom:function(o,t,r,s){var l=this.range,h=l.slice(),v=o.axisModels[0];if(v){var S=getDirectionInfo[t](null,[s.originX,s.originY],v,r,o),x=(S.signal>0?S.pixelStart+S.pixelLength-S.pixel:S.pixel-S.pixelStart)/S.pixelLength*(h[1]-h[0])+h[0],T=Math.max(1/s.scale,0);h[0]=(h[0]-x)*T+x,h[1]=(h[1]-x)*T+x;var C=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,h,[0,100],0,C.minSpan,C.maxSpan),this.range=h,l[0]!==h[0]||l[1]!==h[1])return h}},pan:makeMover(function(o,t,r,s,l,h){var v=getDirectionInfo[s]([h.oldX,h.oldY],[h.newX,h.newY],t,l,r);return v.signal*(o[1]-o[0])*v.pixel/v.pixelLength}),scrollMove:makeMover(function(o,t,r,s,l,h){var v=getDirectionInfo[s]([0,0],[h.scrollDelta,h.scrollDelta],t,l,r);return v.signal*(o[1]-o[0])*h.scrollDelta})};function makeMover(o){return function(t,r,s,l){var h=this.range,v=h.slice(),S=t.axisModels[0];if(S){var x=o(v,S,t,r,s,l);if(sliderMove(x,v,[0,100],"all"),this.range=v,h[0]!==v[0]||h[1]!==v[1])return v}}}var getDirectionInfo={grid:function(o,t,r,s,l){var h=r.axis,v={},S=l.model.coordinateSystem.getRect();return o=o||[0,0],h.dim==="x"?(v.pixel=t[0]-o[0],v.pixelLength=S.width,v.pixelStart=S.x,v.signal=h.inverse?1:-1):(v.pixel=t[1]-o[1],v.pixelLength=S.height,v.pixelStart=S.y,v.signal=h.inverse?-1:1),v},polar:function(o,t,r,s,l){var h=r.axis,v={},S=l.model.coordinateSystem,x=S.getRadiusAxis().getExtent(),T=S.getAngleAxis().getExtent();return o=o?S.pointToCoord(o):[0,0],t=S.pointToCoord(t),r.mainType==="radiusAxis"?(v.pixel=t[0]-o[0],v.pixelLength=x[1]-x[0],v.pixelStart=x[0],v.signal=h.inverse?1:-1):(v.pixel=t[1]-o[1],v.pixelLength=T[1]-T[0],v.pixelStart=T[0],v.signal=h.inverse?-1:1),v},singleAxis:function(o,t,r,s,l){var h=r.axis,v=l.model.coordinateSystem.getRect(),S={};return o=o||[0,0],h.orient==="horizontal"?(S.pixel=t[0]-o[0],S.pixelLength=v.width,S.pixelStart=v.x,S.signal=h.inverse?1:-1):(S.pixel=t[1]-o[1],S.pixelLength=v.height,S.pixelStart=v.y,S.signal=h.inverse?-1:1),S}};const InsideZoomView$1=InsideZoomView;function install$5(o){installCommon$1(o),o.registerComponentModel(InsideZoomModel$1),o.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor(o)}var SliderZoomModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(DataZoomModel$1);const SliderZoomModel$1=SliderZoomModel;var Rect=Rect$2,DEFAULT_LOCATION_EDGE_GAP=7,DEFAULT_FRAME_BORDER_WIDTH=1,DEFAULT_FILLER_SIZE=30,DEFAULT_MOVE_HANDLE_SIZE=7,HORIZONTAL="horizontal",VERTICAL="vertical",LABEL_GAP=5,SHOW_DATA_SHADOW_SERIES_TYPE=["line","bar","candlestick","scatter"],REALTIME_ANIMATION_CONFIG={easing:"cubicOut",duration:100,delay:0},SliderZoomView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,s){this.api=s,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},t.prototype.render=function(r,s,l,h){if(o.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!h||h.type!=="dataZoom"||h.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var s=this._displayables.sliderGroup=new Group$3;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(s),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,s=this.api,l=r.get("brushSelect"),h=l?DEFAULT_MOVE_HANDLE_SIZE:0,v=this._findCoordRect(),S={width:s.getWidth(),height:s.getHeight()},x=this._orient===HORIZONTAL?{right:S.width-v.x-v.width,top:S.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-h,width:v.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:v.y,width:DEFAULT_FILLER_SIZE,height:v.height},T=getLayoutParams(r.option);each$c(["right","top","width","height"],function(M){T[M]==="ph"&&(T[M]=x[M])});var C=getLayoutRect(T,S);this._location={x:C.x,y:C.y},this._size=[C.width,C.height],this._orient===VERTICAL&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,s=this._location,l=this._orient,h=this.dataZoomModel.getFirstTargetAxisModel(),v=h&&h.get("inverse"),S=this._displayables.sliderGroup,x=(this._dataShadowInfo||{}).otherAxisInverse;S.attr(l===HORIZONTAL&&!v?{scaleY:x?1:-1,scaleX:1}:l===HORIZONTAL&&v?{scaleY:x?1:-1,scaleX:-1}:l===VERTICAL&&!v?{scaleY:x?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:x?-1:1,scaleX:-1,rotation:Math.PI/2});var T=r.getBoundingRect([S]);r.x=s.x-T.x,r.y=s.y-T.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,s=this._size,l=this._displayables.sliderGroup,h=r.get("brushSelect");l.add(new Rect({silent:!0,shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var v=new Rect({shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),S=this.api.getZr();h?(v.on("mousedown",this._onBrushStart,this),v.cursor="crosshair",S.on("mousemove",this._onBrush),S.on("mouseup",this._onBrushEnd)):(S.off("mousemove",this._onBrush),S.off("mouseup",this._onBrushEnd)),l.add(v)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var s=this._size,l=this._shadowSize||[],h=r.series,v=h.getRawData(),S=h.getShadowDim&&h.getShadowDim(),x=S&&v.getDimensionInfo(S)?h.getShadowDim():r.otherDim;if(x==null)return;var T=this._shadowPolygonPts,C=this._shadowPolylinePts;if(v!==this._shadowData||x!==this._shadowDim||s[0]!==l[0]||s[1]!==l[1]){var M=v.getDataExtent(x),w=(M[1]-M[0])*.3;M=[M[0]-w,M[1]+w];var D=[0,s[1]],O=[0,s[0]],N=[[s[0],0],[0,0]],k=[],F=O[1]/(v.count()-1),B=0,V=Math.round(v.count()/s[0]),z;v.each([x],function(K,J){if(V>0&&J%V){B+=F;return}var q=K==null||isNaN(K)||K==="",ee=q?0:linearMap$2(K,M,D,!0);q&&!z&&J?(N.push([N[N.length-1][0],0]),k.push([k[k.length-1][0],0])):!q&&z&&(N.push([B,0]),k.push([B,0])),N.push([B,ee]),k.push([B,ee]),B+=F,z=q}),T=this._shadowPolygonPts=N,C=this._shadowPolylinePts=k}this._shadowData=v,this._shadowDim=x,this._shadowSize=[s[0],s[1]];var U=this.dataZoomModel;function Y(K){var J=U.getModel(K?"selectedDataBackground":"dataBackground"),q=new Group$3,ee=new Polygon$1({shape:{points:T},segmentIgnoreThreshold:1,style:J.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),te=new Polyline$1({shape:{points:C},segmentIgnoreThreshold:1,style:J.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return q.add(ee),q.add(te),q}for(var W=0;W<3;W++){var X=Y(W===1);this._displayables.sliderGroup.add(X),this._displayables.dataShadowSegs.push(X)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,s=r.get("showDataShadow");if(s!==!1){var l,h=this.ecModel;return r.eachTargetAxis(function(v,S){var x=r.getAxisProxy(v,S).getTargetSeriesModels();each$c(x,function(T){if(!l&&!(s!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,T.get("type"))<0)){var C=h.getComponent(getAxisMainType(v),S).axis,M=getOtherDim(v),w,D=T.coordinateSystem;M!=null&&D.getOtherAxis&&(w=D.getOtherAxis(C).inverse),M=T.getData().mapDimension(M),l={thisAxis:C,series:T,thisDim:v,otherDim:M,otherAxisInverse:w}}},this)},this),l}},t.prototype._renderHandle=function(){var r=this.group,s=this._displayables,l=s.handles=[null,null],h=s.handleLabels=[null,null],v=this._displayables.sliderGroup,S=this._size,x=this.dataZoomModel,T=this.api,C=x.get("borderRadius")||0,M=x.get("brushSelect"),w=s.filler=new Rect({silent:M,style:{fill:x.get("fillerColor")},textConfig:{position:"inside"}});v.add(w),v.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:S[0],height:S[1],r:C},style:{stroke:x.get("dataBackgroundColor")||x.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$c([0,1],function(V){var z=x.get("handleIcon");!symbolBuildProxies[z]&&z.indexOf("path://")<0&&z.indexOf("image://")<0&&(z="path://"+z);var U=createSymbol(z,-1,0,2,2,null,!0);U.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,V),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var Y=U.getBoundingRect(),W=x.get("handleSize");this._handleHeight=parsePercent(W,this._size[1]),this._handleWidth=Y.width/Y.height*this._handleHeight,U.setStyle(x.getModel("handleStyle").getItemStyle()),U.style.strokeNoScale=!0,U.rectHover=!0,U.ensureState("emphasis").style=x.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(U);var X=x.get("handleColor");X!=null&&(U.style.fill=X),v.add(l[V]=U);var K=x.getModel("textStyle");r.add(h[V]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(K,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:K.getTextColor(),font:K.getFont()}),z2:10}))},this);var D=w;if(M){var O=parsePercent(x.get("moveHandleSize"),S[1]),N=s.moveHandle=new Rect$2({style:x.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:S[1]-.5,height:O}}),k=O*.8,F=s.moveHandleIcon=createSymbol(x.get("moveHandleIcon"),-k/2,-k/2,k,k,"#fff",!0);F.silent=!0,F.y=S[1]+O/2-.5,N.ensureState("emphasis").style=x.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var B=Math.min(S[1]/2,Math.max(O,10));D=s.moveZone=new Rect$2({invisible:!0,shape:{y:S[1]-B,height:O+B}}),D.on("mouseover",function(){T.enterEmphasis(N)}).on("mouseout",function(){T.leaveEmphasis(N)}),v.add(N),v.add(F),v.add(D)}D.attr({draggable:!0,cursor:getCursor$1(this._orient),drift:bind$1(this._onDragMove,this,"all"),ondragstart:bind$1(this._showDataInfo,this,!0),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),s=this._getViewExtent();this._handleEnds=[linearMap$2(r[0],[0,100],s,!0),linearMap$2(r[1],[0,100],s,!0)]},t.prototype._updateInterval=function(r,s){var l=this.dataZoomModel,h=this._handleEnds,v=this._getViewExtent(),S=l.findRepresentativeAxisProxy().getMinMaxSpan(),x=[0,100];sliderMove(s,h,v,l.get("zoomLock")?"all":r,S.minSpan!=null?linearMap$2(S.minSpan,x,v,!0):null,S.maxSpan!=null?linearMap$2(S.maxSpan,x,v,!0):null);var T=this._range,C=this._range=asc$2([linearMap$2(h[0],v,x,!0),linearMap$2(h[1],v,x,!0)]);return!T||T[0]!==C[0]||T[1]!==C[1]},t.prototype._updateView=function(r){var s=this._displayables,l=this._handleEnds,h=asc$2(l.slice()),v=this._size;each$c([0,1],function(D){var O=s.handles[D],N=this._handleHeight;O.attr({scaleX:N/2,scaleY:N/2,x:l[D]+(D?-1:1),y:v[1]/2-N/2})},this),s.filler.setShape({x:h[0],y:0,width:h[1]-h[0],height:v[1]});var S={x:h[0],width:h[1]-h[0]};s.moveHandle&&(s.moveHandle.setShape(S),s.moveZone.setShape(S),s.moveZone.getBoundingRect(),s.moveHandleIcon&&s.moveHandleIcon.attr("x",S.x+S.width/2));for(var x=s.dataShadowSegs,T=[0,h[0],h[1],v[0]],C=0;C<x.length;C++){var M=x[C],w=M.getClipPath();w||(w=new Rect$2,M.setClipPath(w)),w.setShape({x:T[C],y:0,width:T[C+1]-T[C],height:v[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var s=this.dataZoomModel,l=this._displayables,h=l.handleLabels,v=this._orient,S=["",""];if(s.get("showDetail")){var x=s.findRepresentativeAxisProxy();if(x){var T=x.getAxisModel().axis,C=this._range,M=r?x.calculateDataWindow({start:C[0],end:C[1]}).valueWindow:x.getDataValueWindow();S=[this._formatLabel(M[0],T),this._formatLabel(M[1],T)]}}var w=asc$2(this._handleEnds.slice());D.call(this,0),D.call(this,1);function D(O){var N=getTransform$1(l.handles[O].parent,this.group),k=transformDirection(O===0?"right":"left",N),F=this._handleWidth/2+LABEL_GAP,B=applyTransform([w[O]+(O===0?-F:F),this._size[1]/2],N);h[O].setStyle({x:B[0],y:B[1],verticalAlign:v===HORIZONTAL?"middle":k,align:v===HORIZONTAL?k:"center",text:S[O]})}},t.prototype._formatLabel=function(r,s){var l=this.dataZoomModel,h=l.get("labelFormatter"),v=l.get("labelPrecision");(v==null||v==="auto")&&(v=s.getPixelPrecision());var S=r==null||isNaN(r)?"":s.type==="category"||s.type==="time"?s.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(v,20));return isFunction(h)?h(r,S):isString(h)?h.replace("{value}",S):S},t.prototype._showDataInfo=function(r){r=this._dragging||r;var s=this._displayables,l=s.handleLabels;l[0].attr("invisible",!r),l[1].attr("invisible",!r),s.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](s.moveHandle,1)},t.prototype._onDragMove=function(r,s,l,h){this._dragging=!0,stop(h.event);var v=this._displayables.sliderGroup.getLocalTransform(),S=applyTransform([s,l],v,!0),x=this._updateInterval(r,S[0]),T=this.dataZoomModel.get("realtime");this._updateView(!T),x&&T&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var s=this._size,l=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(l[0]<0||l[0]>s[0]||l[1]<0||l[1]>s[1])){var h=this._handleEnds,v=(h[0]+h[1])/2,S=this._updateInterval("all",l[0]-v);this._updateView(),S&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var s=r.offsetX,l=r.offsetY;this._brushStart=new Point$1(s,l),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var s=this._displayables.brushRect;if(this._brushing=!1,!!s){s.attr("ignore",!0);var l=s.shape,h=+new Date;if(!(h-this._brushStartTime<200&&Math.abs(l.width)<5)){var v=this._getViewExtent(),S=[0,100];this._range=asc$2([linearMap$2(l.x,v,S,!0),linearMap$2(l.x+l.width,v,S,!0)]),this._handleEnds=[l.x,l.x+l.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(stop(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,s){var l=this._displayables,h=this.dataZoomModel,v=l.brushRect;v||(v=l.brushRect=new Rect({silent:!0,style:h.getModel("brushStyle").getItemStyle()}),l.sliderGroup.add(v)),v.attr("ignore",!1);var S=this._brushStart,x=this._displayables.sliderGroup,T=x.transformCoordToLocal(r,s),C=x.transformCoordToLocal(S.x,S.y),M=this._size;T[0]=Math.max(Math.min(M[0],T[0]),0),v.setShape({x:C[0],y:0,width:T[0]-C[0],height:M[1]})},t.prototype._dispatchZoomAction=function(r){var s=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?REALTIME_ANIMATION_CONFIG:null,start:s[0],end:s[1]})},t.prototype._findCoordRect=function(){var r,s=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!r&&s.length){var l=s[0].model.coordinateSystem;r=l.getRect&&l.getRect()}if(!r){var h=this.api.getWidth(),v=this.api.getHeight();r={x:h*.2,y:v*.2,width:h*.6,height:v*.6}}return r},t.type="dataZoom.slider",t}(DataZoomView$1);function getOtherDim(o){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[o]}function getCursor$1(o){return o==="vertical"?"ns-resize":"ew-resize"}const SliderZoomView$1=SliderZoomView;function install$4(o){o.registerComponentModel(SliderZoomModel$1),o.registerComponentView(SliderZoomView$1),installCommon$1(o)}function install$3(o){use$1(install$5),use$1(install$4)}var visualDefault={get:function(o,t,r){var s=clone$3((defaultOption[o]||{})[t]);return r&&isArray$1(s)?s[s.length-1]:s}},defaultOption={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const visualDefault$1=visualDefault;var mapVisual=VisualMapping$1.mapVisual,eachVisual=VisualMapping$1.eachVisual,isArray=isArray$1,each$2=each$c,asc=asc$2,linearMap$1=linearMap$2,VisualMapModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,s,l){this.mergeDefaultAndTheme(r,l)},t.prototype.optionUpdated=function(r,s){var l=this.option;!s&&replaceVisualOption(l,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var s=this.stateList;r=bind$1(r,this),this.controllerVisuals=createVisualMappings(this.option.controller,s,r),this.targetVisuals=createVisualMappings(this.option.target,s,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,s=[];return r==null||r==="all"?this.ecModel.eachSeries(function(l,h){s.push(h)}):s=normalizeToArray(r),s},t.prototype.eachTargetSeries=function(r,s){each$c(this.getTargetSeriesIndices(),function(l){var h=this.ecModel.getSeriesByIndex(l);h&&r.call(s,h)},this)},t.prototype.isTargetSeries=function(r){var s=!1;return this.eachTargetSeries(function(l){l===r&&(s=!0)}),s},t.prototype.formatValueText=function(r,s,l){var h=this.option,v=h.precision,S=this.dataBound,x=h.formatter,T;l=l||["<",">"],isArray$1(r)&&(r=r.slice(),T=!0);var C=s?r:T?[M(r[0]),M(r[1])]:M(r);if(isString(x))return x.replace("{value}",T?C[0]:C).replace("{value2}",T?C[1]:C);if(isFunction(x))return T?x(r[0],r[1]):x(r);if(T)return r[0]===S[0]?l[0]+" "+C[1]:r[1]===S[1]?l[1]+" "+C[0]:C[0]+" - "+C[1];return C;function M(w){return w===S[0]?"min":w===S[1]?"max":(+w).toFixed(Math.min(v,20))}},t.prototype.resetExtent=function(){var r=this.option,s=asc([r.min,r.max]);this._dataExtent=s},t.prototype.getDataDimensionIndex=function(r){var s=this.option.dimension;if(s!=null)return r.getDimensionIndex(s);for(var l=r.dimensions,h=l.length-1;h>=0;h--){var v=l[h],S=r.getDimensionInfo(v);if(!S.isCalculationCoord)return S.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,s=this.option,l={inRange:s.inRange,outOfRange:s.outOfRange},h=s.target||(s.target={}),v=s.controller||(s.controller={});merge(h,l),merge(v,l);var S=this.isCategory();x.call(this,h),x.call(this,v),T.call(this,h,"inRange","outOfRange"),C.call(this,v);function x(M){isArray(s.color)&&!M.inRange&&(M.inRange={color:s.color.slice().reverse()}),M.inRange=M.inRange||{color:r.get("gradientColor")}}function T(M,w,D){var O=M[w],N=M[D];O&&!N&&(N=M[D]={},each$2(O,function(k,F){if(VisualMapping$1.isValidType(F)){var B=visualDefault$1.get(F,"inactive",S);B!=null&&(N[F]=B,F==="color"&&!N.hasOwnProperty("opacity")&&!N.hasOwnProperty("colorAlpha")&&(N.opacity=[0,0]))}}))}function C(M){var w=(M.inRange||{}).symbol||(M.outOfRange||{}).symbol,D=(M.inRange||{}).symbolSize||(M.outOfRange||{}).symbolSize,O=this.get("inactiveColor"),N=this.getItemSymbol(),k=N||"roundRect";each$2(this.stateList,function(F){var B=this.itemSize,V=M[F];V||(V=M[F]={color:S?O:[O]}),V.symbol==null&&(V.symbol=w&&clone$3(w)||(S?k:[k])),V.symbolSize==null&&(V.symbolSize=D&&clone$3(D)||(S?B[0]:[B[0],B[0]])),V.symbol=mapVisual(V.symbol,function(Y){return Y==="none"?k:Y});var z=V.symbolSize;if(z!=null){var U=-1/0;eachVisual(z,function(Y){Y>U&&(U=Y)}),V.symbolSize=mapVisual(z,function(Y){return linearMap$1(Y,[0,U],[0,B[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(ComponentModel$1);const VisualMapModel$1=VisualMapModel;var DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,s){o.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(l){l.mappingMethod="linear",l.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){o.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=DEFAULT_BAR_BOUND[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=DEFAULT_BAR_BOUND[1])},t.prototype._resetRange=function(){var r=this.getExtent(),s=this.option.range;!s||s.auto?(r.auto=1,this.option.range=r):isArray$1(s)&&(s[0]>s[1]&&s.reverse(),s[0]=Math.max(s[0],r[0]),s[1]=Math.min(s[1],r[1]))},t.prototype.completeVisualOption=function(){o.prototype.completeVisualOption.apply(this,arguments),each$c(this.stateList,function(r){var s=this.option.controller[r].symbolSize;s&&s[0]!==s[1]&&(s[0]=s[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),s=asc$2((this.get("range")||[]).slice());return s[0]>r[1]&&(s[0]=r[1]),s[1]>r[1]&&(s[1]=r[1]),s[0]<r[0]&&(s[0]=r[0]),s[1]<r[0]&&(s[1]=r[0]),s},t.prototype.getValueState=function(r){var s=this.option.range,l=this.getExtent();return(s[0]<=l[0]||s[0]<=r)&&(s[1]>=l[1]||r<=s[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var s=[];return this.eachTargetSeries(function(l){var h=[],v=l.getData();v.each(this.getDataDimensionIndex(v),function(S,x){r[0]<=S&&S<=r[1]&&h.push(x)},this),s.push({seriesId:l.id,dataIndex:h})},this),s},t.prototype.getVisualMeta=function(r){var s=getColorStopValues(this,"outOfRange",this.getExtent()),l=getColorStopValues(this,"inRange",this.option.range.slice()),h=[];function v(D,O){h.push({value:D,color:r(D,O)})}for(var S=0,x=0,T=l.length,C=s.length;x<C&&(!l.length||s[x]<=l[0]);x++)s[x]<l[S]&&v(s[x],"outOfRange");for(var M=1;S<T;S++,M=0)M&&h.length&&v(l[S],"outOfRange"),v(l[S],"inRange");for(var M=1;x<C;x++)(!l.length||l[l.length-1]<s[x])&&(M&&(h.length&&v(h[h.length-1].value,"outOfRange"),M=0),v(s[x],"outOfRange"));var w=h.length;return{stops:h,outerColors:[w?h[0].color:"transparent",w?h[w-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(VisualMapModel$1);function getColorStopValues(o,t,r){if(r[0]===r[1])return r.slice();for(var s=200,l=(r[1]-r[0])/s,h=r[0],v=[],S=0;S<=s&&h<r[1];S++)v.push(h),h+=l;return v.push(r[1]),v}const ContinuousModel$1=ContinuousModel;var VisualMapView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,s){this.ecModel=r,this.api=s},t.prototype.render=function(r,s,l,h){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,s,l,h)},t.prototype.renderBackground=function(r){var s=this.visualMapModel,l=normalizeCssArray(s.get("padding")||0),h=r.getBoundingRect();r.add(new Rect$2({z2:-1,silent:!0,shape:{x:h.x-l[3],y:h.y-l[0],width:h.width+l[3]+l[1],height:h.height+l[0]+l[2]},style:{fill:s.get("backgroundColor"),stroke:s.get("borderColor"),lineWidth:s.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,s,l){l=l||{};var h=l.forceState,v=this.visualMapModel,S={};if(s==="color"){var x=v.get("contentColor");S.color=x}function T(D){return S[D]}function C(D,O){S[D]=O}var M=v.controllerVisuals[h||v.getValueState(r)],w=VisualMapping$1.prepareVisualTypes(M);return each$c(w,function(D){var O=M[D];l.convertOpacityToAlpha&&D==="opacity"&&(D="colorAlpha",O=M.__alphaForOpacity),VisualMapping$1.dependsOn(D,s)&&O&&O.applyVisual(r,T,C)}),S[s]},t.prototype.positionGroup=function(r){var s=this.visualMapModel,l=this.api;positionElement(r,s.getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()})},t.prototype.doRender=function(r,s,l,h){},t.type="visualMap",t}(ComponentView$1);const VisualMapView$1=VisualMapView;var paramsSet=[["left","right","width"],["top","bottom","height"]];function getItemAlign(o,t,r){var s=o.option,l=s.align;if(l!=null&&l!=="auto")return l;for(var h={width:t.getWidth(),height:t.getHeight()},v=s.orient==="horizontal"?1:0,S=paramsSet[v],x=[0,null,10],T={},C=0;C<3;C++)T[paramsSet[1-v][C]]=x[C],T[S[C]]=C===2?r[0]:s[S[C]];var M=[["x","width",3],["y","height",0]][v],w=getLayoutRect(T,h,s.padding);return S[(w.margin[M[2]]||0)+w[M[0]]+w[M[1]]*.5<h[M[1]]*.5?0:1]}function makeHighDownBatch(o,t){return each$c(o||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),o}var linearMap=linearMap$2,each$1=each$c,mathMin=Math.min,mathMax=Math.max,HOVER_LINK_SIZE=12,HOVER_LINK_OUT=6,ContinuousView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.doRender=function(r,s,l,h){this._api=l,(!h||h.type!=="selectDataRange"||h.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,s=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(s);var l=r.get("text");this._renderEndsText(s,l,0),this._renderEndsText(s,l,1),this._updateView(!0),this.renderBackground(s),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(s)},t.prototype._renderEndsText=function(r,s,l){if(s){var h=s[1-l];h=h!=null?h+"":"";var v=this.visualMapModel,S=v.get("textGap"),x=v.itemSize,T=this._shapes.mainGroup,C=this._applyTransform([x[0]/2,l===0?-S:x[1]+S],T),M=this._applyTransform(l===0?"bottom":"top",T),w=this._orient,D=this.visualMapModel.textStyleModel;this.group.add(new ZRText$1({style:createTextStyle$1(D,{x:C[0],y:C[1],verticalAlign:w==="horizontal"?"middle":M,align:w==="horizontal"?M:"center",text:h})}))}},t.prototype._renderBar=function(r){var s=this.visualMapModel,l=this._shapes,h=s.itemSize,v=this._orient,S=this._useHandle,x=getItemAlign(s,this.api,h),T=l.mainGroup=this._createBarGroup(x),C=new Group$3;T.add(C),C.add(l.outOfRange=createPolygon()),C.add(l.inRange=createPolygon(null,S?getCursor(this._orient):null,bind$1(this._dragHandle,this,"all",!1),bind$1(this._dragHandle,this,"all",!0))),C.setClipPath(new Rect$2({shape:{x:0,y:0,width:h[0],height:h[1],r:3}}));var M=s.textStyleModel.getTextRect("国"),w=mathMax(M.width,M.height);S&&(l.handleThumbs=[],l.handleLabels=[],l.handleLabelPoints=[],this._createHandle(s,T,0,h,w,v),this._createHandle(s,T,1,h,w,v)),this._createIndicator(s,T,h,w,v),r.add(T)},t.prototype._createHandle=function(r,s,l,h,v,S){var x=bind$1(this._dragHandle,this,l,!1),T=bind$1(this._dragHandle,this,l,!0),C=parsePercent$1(r.get("handleSize"),h[0]),M=createSymbol(r.get("handleIcon"),-C/2,-C/2,C,C,null,!0),w=getCursor(this._orient);M.attr({cursor:w,draggable:!0,drift:x,ondragend:T,onmousemove:function(F){stop(F.event)}}),M.x=h[0]/2,M.useStyle(r.getModel("handleStyle").getItemStyle()),M.setStyle({strokeNoScale:!0,strokeFirst:!0}),M.style.lineWidth*=2,M.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),setAsHighDownDispatcher(M,!0),s.add(M);var D=this.visualMapModel.textStyleModel,O=new ZRText$1({cursor:w,draggable:!0,drift:x,onmousemove:function(F){stop(F.event)},ondragend:T,style:createTextStyle$1(D,{x:0,y:0,text:""})});O.ensureState("blur").style={opacity:.1},O.stateTransition={duration:200},this.group.add(O);var N=[C,0],k=this._shapes;k.handleThumbs[l]=M,k.handleLabelPoints[l]=N,k.handleLabels[l]=O},t.prototype._createIndicator=function(r,s,l,h,v){var S=parsePercent$1(r.get("indicatorSize"),l[0]),x=createSymbol(r.get("indicatorIcon"),-S/2,-S/2,S,S,null,!0);x.attr({cursor:"move",invisible:!0,silent:!0,x:l[0]/2});var T=r.getModel("indicatorStyle").getItemStyle();if(x instanceof ZRImage$1){var C=x.style;x.useStyle(extend({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},T))}else x.useStyle(T);s.add(x);var M=this.visualMapModel.textStyleModel,w=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(M,{x:0,y:0,text:""})});this.group.add(w);var D=[(v==="horizontal"?h/2:HOVER_LINK_OUT)+l[0]/2,0],O=this._shapes;O.indicator=x,O.indicatorLabel=w,O.indicatorLabelPoint=D,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,s,l,h){if(this._useHandle){if(this._dragging=!s,!s){var v=this._applyTransform([l,h],this._shapes.mainGroup,!0);this._updateInterval(r,v[1]),this._hideIndicator(),this._updateView()}s===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),s?!this._hovering&&this._clearHoverLinkToSeries():useHoverLinkOnHandle(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,s=this._dataInterval=r.getSelected(),l=r.getExtent(),h=[0,r.itemSize[1]];this._handleEnds=[linearMap(s[0],l,h,!0),linearMap(s[1],l,h,!0)]},t.prototype._updateInterval=function(r,s){s=s||0;var l=this.visualMapModel,h=this._handleEnds,v=[0,l.itemSize[1]];sliderMove(s,h,v,r,0);var S=l.getExtent();this._dataInterval=[linearMap(h[0],v,S,!0),linearMap(h[1],v,S,!0)]},t.prototype._updateView=function(r){var s=this.visualMapModel,l=s.getExtent(),h=this._shapes,v=[0,s.itemSize[1]],S=r?v:this._handleEnds,x=this._createBarVisual(this._dataInterval,l,S,"inRange"),T=this._createBarVisual(l,l,v,"outOfRange");h.inRange.setStyle({fill:x.barColor}).setShape("points",x.barPoints),h.outOfRange.setStyle({fill:T.barColor}).setShape("points",T.barPoints),this._updateHandle(S,x)},t.prototype._createBarVisual=function(r,s,l,h){var v={forceState:h,convertOpacityToAlpha:!0},S=this._makeColorGradient(r,v),x=[this.getControllerVisual(r[0],"symbolSize",v),this.getControllerVisual(r[1],"symbolSize",v)],T=this._createBarPoints(l,x);return{barColor:new LinearGradient$1(0,0,0,1,S),barPoints:T,handlesColor:[S[0].color,S[S.length-1].color]}},t.prototype._makeColorGradient=function(r,s){var l=100,h=[],v=(r[1]-r[0])/l;h.push({color:this.getControllerVisual(r[0],"color",s),offset:0});for(var S=1;S<l;S++){var x=r[0]+v*S;if(x>r[1])break;h.push({color:this.getControllerVisual(x,"color",s),offset:S/l})}return h.push({color:this.getControllerVisual(r[1],"color",s),offset:1}),h},t.prototype._createBarPoints=function(r,s){var l=this.visualMapModel.itemSize;return[[l[0]-s[0],r[0]],[l[0],r[0]],[l[0],r[1]],[l[0]-s[1],r[1]]]},t.prototype._createBarGroup=function(r){var s=this._orient,l=this.visualMapModel.get("inverse");return new Group$3(s==="horizontal"&&!l?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:s==="horizontal"&&l?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:s==="vertical"&&!l?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,s){if(this._useHandle){var l=this._shapes,h=this.visualMapModel,v=l.handleThumbs,S=l.handleLabels,x=h.itemSize,T=h.getExtent();each$1([0,1],function(C){var M=v[C];M.setStyle("fill",s.handlesColor[C]),M.y=r[C];var w=linearMap(r[C],[0,x[1]],T,!0),D=this.getControllerVisual(w,"symbolSize");M.scaleX=M.scaleY=D/x[0],M.x=x[0]-D/2;var O=applyTransform(l.handleLabelPoints[C],getTransform$1(M,this.group));S[C].setStyle({x:O[0],y:O[1],text:h.formatValueText(this._dataInterval[C]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",l.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,s,l,h){var v=this.visualMapModel,S=v.getExtent(),x=v.itemSize,T=[0,x[1]],C=this._shapes,M=C.indicator;if(M){M.attr("invisible",!1);var w={convertOpacityToAlpha:!0},D=this.getControllerVisual(r,"color",w),O=this.getControllerVisual(r,"symbolSize"),N=linearMap(r,S,T,!0),k=x[0]-O/2,F={x:M.x,y:M.y};M.y=N,M.x=k;var B=applyTransform(C.indicatorLabelPoint,getTransform$1(M,this.group)),V=C.indicatorLabel;V.attr("invisible",!1);var z=this._applyTransform("left",C.mainGroup),U=this._orient,Y=U==="horizontal";V.setStyle({text:(l||"")+v.formatValueText(s),verticalAlign:Y?z:"middle",align:Y?"center":z});var W={x:k,y:N,style:{fill:D}},X={style:{x:B[0],y:B[1]}};if(v.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var K={duration:100,easing:"cubicInOut",additive:!0};M.x=F.x,M.y=F.y,M.animateTo(W,K),V.animateTo(X,K)}else M.attr(W),V.attr(X);this._firstShowIndicator=!1;var J=this._shapes.handleLabels;if(J)for(var q=0;q<J.length;q++)this._api.enterBlur(J[q])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(s){if(r._hovering=!0,!r._dragging){var l=r.visualMapModel.itemSize,h=r._applyTransform([s.offsetX,s.offsetY],r._shapes.mainGroup,!0,!0);h[1]=mathMin(mathMax(0,h[1]),l[1]),r._doHoverLinkToSeries(h[1],0<=h[0]&&h[0]<=l[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,s){var l=this.visualMapModel,h=l.itemSize;if(l.option.hoverLink){var v=[0,h[1]],S=l.getExtent();r=mathMin(mathMax(v[0],r),v[1]);var x=getHalfHoverLinkSize(l,S,v),T=[r-x,r+x],C=linearMap(r,v,S,!0),M=[linearMap(T[0],v,S,!0),linearMap(T[1],v,S,!0)];T[0]<v[0]&&(M[0]=-1/0),T[1]>v[1]&&(M[1]=1/0),s&&(M[0]===-1/0?this._showIndicator(C,M[1],"< ",x):M[1]===1/0?this._showIndicator(C,M[0],"> ",x):this._showIndicator(C,C,"≈ ",x));var w=this._hoverLinkDataIndices,D=[];(s||useHoverLinkOnHandle(l))&&(D=this._hoverLinkDataIndices=l.findTargetDataIndices(M));var O=compressBatches(w,D);this._dispatchHighDown("downplay",makeHighDownBatch(O[0],l)),this._dispatchHighDown("highlight",makeHighDownBatch(O[1],l))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var s;if(findEventDispatcher(r.target,function(x){var T=getECData(x);if(T.dataIndex!=null)return s=T,!0},!0),!!s){var l=this.ecModel.getSeriesByIndex(s.seriesIndex),h=this.visualMapModel;if(h.isTargetSeries(l)){var v=l.getData(s.dataType),S=v.getStore().get(h.getDataDimensionIndex(v),s.dataIndex);isNaN(S)||this._showIndicator(S,S)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var s=this._shapes.handleLabels;if(s)for(var l=0;l<s.length;l++)this._api.leaveBlur(s[l])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",makeHighDownBatch(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,s,l,h){var v=getTransform$1(s,h?null:this.group);return isArray$1(r)?applyTransform(r,v,l):transformDirection(r,v,l)},t.prototype._dispatchHighDown=function(r,s){s&&s.length&&this.api.dispatchAction({type:r,batch:s})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(VisualMapView$1);function createPolygon(o,t,r,s){return new Polygon$1({shape:{points:o},draggable:!!r,cursor:t,drift:r,onmousemove:function(l){stop(l.event)},ondragend:s})}function getHalfHoverLinkSize(o,t,r){var s=HOVER_LINK_SIZE/2,l=o.get("hoverLinkDataSize");return l&&(s=linearMap(l,t,r,!0)/2),s}function useHoverLinkOnHandle(o){var t=o.get("hoverLinkOnHandle");return!!(t??o.get("realtime"))}function getCursor(o){return o==="vertical"?"ns-resize":"ew-resize"}const ContinuousView$1=ContinuousView;var visualMapActionInfo={type:"selectDataRange",event:"dataRangeSelected",update:"update"},visualMapActionHander=function(o,t){t.eachComponent({mainType:"visualMap",query:o},function(r){r.setSelected(o.selected)})},visualMapEncodingHandlers=[{createOnAllSeries:!0,reset:function(o,t){var r=[];return t.eachComponent("visualMap",function(s){var l=o.pipelineContext;!s.isTargetSeries(o)||l&&l.large||r.push(incrementalApplyVisual(s.stateList,s.targetVisuals,bind$1(s.getValueState,s),s.getDataDimensionIndex(o.getData())))}),r}},{createOnAllSeries:!0,reset:function(o,t){var r=o.getData(),s=[];t.eachComponent("visualMap",function(l){if(l.isTargetSeries(o)){var h=l.getVisualMeta(bind$1(getColorVisual,null,o,l))||{stops:[],outerColors:[]},v=l.getDataDimensionIndex(r);v>=0&&(h.dimension=v,s.push(h))}}),o.getData().setVisual("visualMeta",s)}}];function getColorVisual(o,t,r,s){for(var l=t.targetVisuals[s],h=VisualMapping$1.prepareVisualTypes(l),v={color:getVisualFromData(o.getData(),"color")},S=0,x=h.length;S<x;S++){var T=h[S],C=l[T==="opacity"?"__alphaForOpacity":T];C&&C.applyVisual(r,M,w)}return v.color;function M(D){return v[D]}function w(D,O){v[D]=O}}var each=each$c;function visualMapPreprocessor(o){var t=o&&o.visualMap;isArray$1(t)||(t=t?[t]:[]),each(t,function(r){if(r){has(r,"splitList")&&!has(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var s=r.pieces;s&&isArray$1(s)&&each(s,function(l){isObject$3(l)&&(has(l,"start")&&!has(l,"min")&&(l.min=l.start),has(l,"end")&&!has(l,"max")&&(l.max=l.end))})}})}function has(o,t){return o&&o.hasOwnProperty&&o.hasOwnProperty(t)}var installed=!1;function installCommon(o){installed||(installed=!0,o.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),o.registerAction(visualMapActionInfo,visualMapActionHander),each$c(visualMapEncodingHandlers,function(t){o.registerVisual(o.PRIORITY.VISUAL.COMPONENT,t)}),o.registerPreprocessor(visualMapPreprocessor))}function install$2(o){o.registerComponentModel(ContinuousModel$1),o.registerComponentView(ContinuousView$1),installCommon(o)}var PiecewiseModel=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,s){o.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var l=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(r,s);var h=this.option.categories;this.resetVisual(function(v,S){l==="categories"?(v.mappingMethod="category",v.categories=clone$3(h)):(v.dataExtent=this.getExtent(),v.mappingMethod="piecewise",v.pieceList=map$2(this._pieceList,function(x){return x=clone$3(x),S!=="inRange"&&(x.visual=null),x}))})},t.prototype.completeVisualOption=function(){var r=this.option,s={},l=VisualMapping$1.listVisualTypes(),h=this.isCategory();each$c(r.pieces,function(S){each$c(l,function(x){S.hasOwnProperty(x)&&(s[x]=1)})}),each$c(s,function(S,x){var T=!1;each$c(this.stateList,function(C){T=T||v(r,C,x)||v(r.target,C,x)},this),!T&&each$c(this.stateList,function(C){(r[C]||(r[C]={}))[x]=visualDefault$1.get(x,C==="inRange"?"active":"inactive",h)})},this);function v(S,x,T){return S&&S[x]&&S[x].hasOwnProperty(T)}o.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,s){var l=this.option,h=this._pieceList,v=(s?l:r).selected||{};if(l.selected=v,each$c(h,function(x,T){var C=this.getSelectedMapKey(x);v.hasOwnProperty(C)||(v[C]=!0)},this),l.selectedMode==="single"){var S=!1;each$c(h,function(x,T){var C=this.getSelectedMapKey(x);v[C]&&(S?v[C]=!1:S=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=clone$3(r)},t.prototype.getValueState=function(r){var s=VisualMapping$1.findPieceIndex(r,this._pieceList);return s!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var s=[],l=this._pieceList;return this.eachTargetSeries(function(h){var v=[],S=h.getData();S.each(this.getDataDimensionIndex(S),function(x,T){var C=VisualMapping$1.findPieceIndex(x,l);C===r&&v.push(T)},this),s.push({seriesId:h.id,dataIndex:v})},this),s},t.prototype.getRepresentValue=function(r){var s;if(this.isCategory())s=r.value;else if(r.value!=null)s=r.value;else{var l=r.interval||[];s=l[0]===-1/0&&l[1]===1/0?0:(l[0]+l[1])/2}return s},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var s=[],l=["",""],h=this;function v(C,M){var w=h.getRepresentValue({interval:C});M||(M=h.getValueState(w));var D=r(w,M);C[0]===-1/0?l[0]=D:C[1]===1/0?l[1]=D:s.push({value:C[0],color:D},{value:C[1],color:D})}var S=this._pieceList.slice();if(!S.length)S.push({interval:[-1/0,1/0]});else{var x=S[0].interval[0];x!==-1/0&&S.unshift({interval:[-1/0,x]}),x=S[S.length-1].interval[1],x!==1/0&&S.push({interval:[x,1/0]})}var T=-1/0;return each$c(S,function(C){var M=C.interval;M&&(M[0]>T&&v([T,M[0]],"outOfRange"),v(M.slice()),T=M[1])},this),{stops:s,outerColors:l}},t.type="visualMap.piecewise",t.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(VisualMapModel$1),resetMethods={splitNumber:function(o){var t=this.option,r=Math.min(t.precision,20),s=this.getExtent(),l=t.splitNumber;l=Math.max(parseInt(l,10),1),t.splitNumber=l;for(var h=(s[1]-s[0])/l;+h.toFixed(r)!==h&&r<5;)r++;t.precision=r,h=+h.toFixed(r),t.minOpen&&o.push({interval:[-1/0,s[0]],close:[0,0]});for(var v=0,S=s[0];v<l;S+=h,v++){var x=v===l-1?s[1]:S+h;o.push({interval:[S,x],close:[1,1]})}t.maxOpen&&o.push({interval:[s[1],1/0],close:[0,0]}),reformIntervals(o),each$c(o,function(T,C){T.index=C,T.text=this.formatValueText(T.interval)},this)},categories:function(o){var t=this.option;each$c(t.categories,function(r){o.push({text:this.formatValueText(r,!0),value:r})},this),normalizeReverse(t,o)},pieces:function(o){var t=this.option;each$c(t.pieces,function(r,s){isObject$3(r)||(r={value:r});var l={text:"",index:s};if(r.label!=null&&(l.text=r.label),r.hasOwnProperty("value")){var h=l.value=r.value;l.interval=[h,h],l.close=[1,1]}else{for(var v=l.interval=[],S=l.close=[0,0],x=[1,0,1],T=[-1/0,1/0],C=[],M=0;M<2;M++){for(var w=[["gte","gt","min"],["lte","lt","max"]][M],D=0;D<3&&v[M]==null;D++)v[M]=r[w[D]],S[M]=x[D],C[M]=D===2;v[M]==null&&(v[M]=T[M])}C[0]&&v[1]===1/0&&(S[0]=0),C[1]&&v[0]===-1/0&&(S[1]=0),v[0]===v[1]&&S[0]&&S[1]&&(l.value=v[0])}l.visual=VisualMapping$1.retrieveVisuals(r),o.push(l)},this),normalizeReverse(t,o),reformIntervals(o),each$c(o,function(r){var s=r.close,l=[["<","≤"][s[1]],[">","≥"][s[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,l)},this)}};function normalizeReverse(o,t){var r=o.inverse;(o.orient==="vertical"?!r:r)&&t.reverse()}const PiecewiseModel$1=PiecewiseModel;var PiecewiseVisualMapView=function(o){__extends(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var s=this.visualMapModel,l=s.get("textGap"),h=s.textStyleModel,v=h.getFont(),S=h.getTextColor(),x=this._getItemAlign(),T=s.itemSize,C=this._getViewData(),M=C.endsText,w=retrieve(s.get("showLabel",!0),!M);M&&this._renderEndsText(r,M[0],T,w,x),each$c(C.viewPieceList,function(D){var O=D.piece,N=new Group$3;N.onclick=bind$1(this._onItemClick,this,O),this._enableHoverLink(N,D.indexInModelPieceList);var k=s.getRepresentValue(O);if(this._createItemSymbol(N,k,[0,0,T[0],T[1]]),w){var F=this.visualMapModel.getValueState(k);N.add(new ZRText$1({style:{x:x==="right"?-l:T[0]+l,y:T[1]/2,text:O.text,verticalAlign:"middle",align:x,font:v,fill:S,opacity:F==="outOfRange"?.5:1}}))}r.add(N)},this),M&&this._renderEndsText(r,M[1],T,w,x),box(s.get("orient"),r,s.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,s){var l=this;r.on("mouseover",function(){return h("highlight")}).on("mouseout",function(){return h("downplay")});var h=function(v){var S=l.visualMapModel;S.option.hoverLink&&l.api.dispatchAction({type:v,batch:makeHighDownBatch(S.findTargetDataIndices(s),S)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,s=r.option;if(s.orient==="vertical")return getItemAlign(r,this.api,r.itemSize);var l=s.align;return(!l||l==="auto")&&(l="left"),l},t.prototype._renderEndsText=function(r,s,l,h,v){if(s){var S=new Group$3,x=this.visualMapModel.textStyleModel;S.add(new ZRText$1({style:createTextStyle$1(x,{x:h?v==="right"?l[0]:0:l[0]/2,y:l[1]/2,verticalAlign:"middle",align:h?v:"center",text:s})})),r.add(S)}},t.prototype._getViewData=function(){var r=this.visualMapModel,s=map$2(r.getPieceList(),function(S,x){return{piece:S,indexInModelPieceList:x}}),l=r.get("text"),h=r.get("orient"),v=r.get("inverse");return(h==="horizontal"?v:!v)?s.reverse():l&&(l=l.slice().reverse()),{viewPieceList:s,endsText:l}},t.prototype._createItemSymbol=function(r,s,l){r.add(createSymbol(this.getControllerVisual(s,"symbol"),l[0],l[1],l[2],l[3],this.getControllerVisual(s,"color")))},t.prototype._onItemClick=function(r){var s=this.visualMapModel,l=s.option,h=l.selectedMode;if(h){var v=clone$3(l.selected),S=s.getSelectedMapKey(r);h==="single"||h===!0?(v[S]=!0,each$c(v,function(x,T){v[T]=T===S})):v[S]=!v[S],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:v})}},t.type="visualMap.piecewise",t}(VisualMapView$1);const PiecewiseView=PiecewiseVisualMapView;function install$1(o){o.registerComponentModel(PiecewiseModel$1),o.registerComponentView(PiecewiseView),installCommon(o)}function install(o){use$1(install$2),use$1(install$1)}const{use}=echarts;use([install$h,install$i,install$j,install$k,install$e,install$9,install$6,install$d,install$b,install$a,install$3,install]);function useEcharts(o){o.config.globalProperties.$echarts=echarts}var p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,j$2=Object.prototype.hasOwnProperty,_$1=(o,t,r)=>t in o?p(o,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[t]=r,P$1=(o,t)=>{for(var r in t)p(o,r,{get:t[r],enumerable:!0})},y=(o,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of u(t))!j$2.call(o,l)&&l!==r&&p(o,l,{get:()=>t[l],enumerable:!(s=d(t,l))||s.enumerable});return o},m$1=(o,t,r)=>(y(o,t,"default"),r&&y(r,t,"default")),f=(o,t,r)=>(_$1(o,typeof t!="symbol"?t+"":t,r),r),c$1={};P$1(c$1,{Vue:()=>Vue});m$1(c$1,Vue);var g=class{static install(o,t){let{nameSpace:r=this._nameSpace,memory:s}=t;return s&&this.clearAll(r,s),new g(o,t)}static clearAll(o,t){Object.keys(t).forEach(r=>{let s=o+r;Object.prototype.hasOwnProperty.call(window.localStorage,s)&&window.localStorage.removeItem(s)})}static get(o){return JSON.parse(window.localStorage.getItem(o))}static set(o,t){t=typeof t=="object"?JSON.stringify(t):t,window.localStorage.setItem(o,t)}static getData(o,t){if(Object.prototype.hasOwnProperty.call(window.localStorage,this._getStaticKey(t,o)))return JSON.parse(window.localStorage.getItem(this._getStaticKey(t,o)))}constructor(o,t){let r=g,{version:s=3,nameSpace:l=r._nameSpace,memory:h}=t,v=T=>l+T,S=s===3?(0,c$1.reactive)(h):h;Object.keys(S).length===0&&console.warn("key cannot be empty"),Object.keys(S).forEach(T=>{let C=S[T];r.set(v(T),C),Reflect.defineProperty(S,T,{get:()=>r.get(v(T)),set:M=>r.set(v(T),M),configurable:!0}),s===2&&o.util.defineReactive(S,T,S[T])});let x=s===3?o.config.globalProperties:o.prototype;Reflect.defineProperty(x,"$storage",{get:()=>S})}},n=g;f(n,"_nameSpace","rs-"),f(n,"_getStaticKey",(o,t)=>`${o??g._nameSpace}${t}`);const nameSpace="responsive-",injectResponsiveStorage=(o,t)=>{const r=Object.assign({locale:n.getData("locale",nameSpace)??{locale:t.Locale??"zh"},layout:n.getData("layout",nameSpace)??{layout:t.Layout??"vertical",theme:t.Theme??"default",darkMode:t.DarkMode??!1,sidebarStatus:t.SidebarStatus??!0,epThemeColor:t.EpThemeColor??"#409EFF"},configure:n.getData("configure",nameSpace)??{grey:t.Grey??!1,weak:t.Weak??!1,hideTabs:t.HideTabs??!1,showLogo:t.ShowLogo??!0,showModel:t.ShowModel??"smart",multiTagsCache:t.MultiTagsCache??!1}},t.MultiTagsCache?{tags:n.getData("tags",nameSpace)??routerArrays}:{});o.use(n,{nameSpace,memory:r})};var ue={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const pe={key:{type:String||Number,default:"0"},columns:{type:Array,default:[]},loading:{type:Boolean,default:!1},loadingConfig:{type:Object,default:()=>{}},alignWhole:{type:String,default:"left"},headerAlign:{type:String,default:""},showOverflowTooltip:{type:Boolean,default:!1},rowHoverBgColor:{type:String,default:""},pagination:{type:Object,default:{total:0,pageSize:5,align:"right",background:!1,pageSizes:[5,10,15,20],layout:"total, sizes, prev, pager, next, jumper"}},paginationSmall:{type:Boolean,default:!1},...ue},P=Vue.defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:o=>()=>Vue.createVNode(Vue.Fragment,null,[o.render(o.params)])}),R=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}));var H=Object.defineProperty,de=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyNames,ce=Object.prototype.hasOwnProperty,_=(o,t)=>{for(var r in t)H(o,r,{get:t[r],enumerable:!0})},A=(o,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of ge(t))!ce.call(o,l)&&l!==r&&H(o,l,{get:()=>t[l],enumerable:!(s=de(t,l))||s.enumerable});return o},I$1=(o,t,r)=>(A(o,t,"default"),r&&A(r,t,"default"));function E(o){return typeof o=="function"}var $={};_($,{Fs:()=>R}),I$1($,R);var c={};_(c,{Vue:()=>Vue}),I$1(c,Vue);var fe=()=>{let o,t=(0,c.ref)(!1),r=()=>{t.value=document.documentElement.classList.contains("dark")};return function(s){(0,c.getCurrentInstance)()&&(0,c.onUnmounted)(s)}(()=>{o.takeRecords(),o.disconnect()}),(0,c.onBeforeMount)(()=>{r(),o=new MutationObserver(r),o.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:t}};const j$1=Vue.defineComponent({name:"PureTable",props:pe,emits:["size-change","current-change"],setup(o,{slots:t,attrs:r,emit:s,expose:l}){const{isDark:h}=fe(),v=Vue.getCurrentInstance();function S(){var Y;return(Y=v==null?void 0:v.proxy)==null?void 0:Y.$refs[`TableRef${o.key}`]}function x(){return S().$refs}Vue.onMounted(()=>{Vue.nextTick(()=>{o.rowHoverBgColor&&x().tableWrapper.style.setProperty("--el-table-row-hover-bg-color",o.rowHoverBgColor,"important")})});const{columns:T,loading:C,loadingConfig:M,alignWhole:w,headerAlign:D,showOverflowTooltip:O,pagination:N}=Vue.toRefs(o);let k=Vue.computed(()=>{if(!Vue.unref(M))return;let{text:Y,spinner:W,svg:X,viewBox:K}=Vue.unref(M);return{"element-loading-text":Y,"element-loading-spinner":W,"element-loading-svg":X,"element-loading-svg-view-box":K}});const F=Vue.computed(()=>{var Y,W;if(Vue.unref(C))return{"element-loading-background":((W=(Y=Vue.unref(M))==null?void 0:Y.background)!=null?W:h.value)?"rgba(0, 0, 0, 0.45)":"rgba(255, 255, 255, 0.45)"}}),B=Vue.computed(()=>{var Y;return Object.assign({width:"100%",margin:"16px 0",display:"flex",justifyContent:Vue.unref(N).align==="left"?"flex-start":Vue.unref(N).align==="center"?"center":"flex-end"},(Y=Vue.unref(N).style)!=null?Y:{})});let V=Vue.unref(N)&&Vue.unref(N).currentPage&&Vue.unref(N).pageSize;const z=(Y,W)=>{const{cellRenderer:X,slot:K,headerRenderer:J,hide:q,children:ee,prop:te,...ne}=Y,ae={default:se=>{var le;return X?Vue.createVNode(P,{render:X,params:Object.assign(se,{index:se.$index,props:o,attrs:r})},null):K?(le=t==null?void 0:t[K])==null?void 0:le.call(t,Object.assign(se,{index:se.$index,props:o,attrs:r})):void 0}};let oe=J?{header:se=>Vue.createVNode(P,{render:J,params:Object.assign(se,{index:se.$index,props:o,attrs:r})},null),...ae}:ae;return E(q)&&q(r)?q(r):((ee==null?void 0:ee.length)>0&&(oe=ee.map(z)),Vue.createVNode(ElementPlus.ElTableColumn,Vue.mergeProps({key:W},ne,{prop:E(te)&&te(W)?te(W):te,align:Y!=null&&Y.align?Y.align:Vue.unref(w),headerAlign:Y!=null&&Y.headerAlign?Y.headerAlign:Vue.unref(D),showOverflowTooltip:Y!=null&&Y.showOverflowTooltip?Y.showOverflowTooltip:Vue.unref(O)}),typeof(Se=oe)=="function"||Object.prototype.toString.call(Se)==="[object Object]"&&!Vue.isVNode(Se)?oe:{default:()=>[oe]}));var Se};l({getTableRef:S,getTableDoms:x});let U=()=>{var Y,W;return Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(ElementPlus.ElTable,Vue.mergeProps(o,r,{ref:`TableRef${o.key}`}),{default:()=>Vue.unref(T).map(z),append:()=>t.append&&t.append(),empty:()=>t.empty&&t.empty()}),V?Vue.createVNode(ElementPlus.ElPagination,Vue.mergeProps(r,{class:"pure-pagination",style:Vue.unref(B)},Vue.unref(N),{small:o!=null&&o.paginationSmall?o==null?void 0:o.paginationSmall:!!Vue.unref(N).small&&Vue.unref(N).small,layout:(Y=Vue.unref(N).layout)!=null?Y:"total, sizes, prev, pager, next, jumper",pageSizes:(W=Vue.unref(N).pageSizes)!=null?W:[5,10,15,20],onSizeChange:X=>(K=>{Vue.unref(N).pageSize=K,s("size-change",K)})(X),onCurrentChange:X=>(K=>{Vue.unref(N).currentPage=K,s("current-change",K)})(X)}),null):null])};return()=>Vue.withDirectives(Vue.createVNode("div",Vue.mergeProps({class:"pure-table",style:"width:100%"},Vue.unref(F),Vue.unref(k)),[U()]),[[Vue.resolveDirective("loading"),Vue.unref(C)]])}}),be=Object.assign(j$1,{install:function(o){o.component(j$1.name,j$1)}}),L={data:{type:Array,default:[]},columns:{type:Array,default:[]},loading:{type:Object,default:()=>({load:!1,text:"Loading...",svg:"",spinner:"",svgViewBox:"",background:""})},align:{type:String,default:"left"},labelAlign:{type:String,default:""},...ElementPlus.ElDescriptions.props},j=Vue.defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:o=>()=>Vue.createVNode(Vue.Fragment,null,[o.render(o.params)])}),m=Vue.defineComponent({name:"PureDescriptions",props:L,setup(o,{slots:t,attrs:r}){const{data:s,columns:l,align:h,labelAlign:v,loading:S}=Vue.toRefs(o),x={title:()=>(t==null?void 0:t.title)&&t.title({props:o,attrs:r})},T={extra:()=>(t==null?void 0:t.extra)&&t.extra({props:o,attrs:r})},C=t!=null&&t.title&&!(t!=null&&t.extra)?x:t!=null&&t.extra&&!(t!=null&&t.title)?T:t!=null&&t.title&&(t!=null&&t.extra)?Object.assign(x,T):null;return()=>{var M;return Vue.withDirectives(Vue.createVNode(ElementPlus.ElDescriptions,Vue.mergeProps(o,r,{"element-loading-text":(M=Vue.unref(S).text)!=null?M:"Loading...","element-loading-svg":Vue.unref(S).svg,"element-loading-spinner":Vue.unref(S).spinner,"element-loading-svg-view-box":Vue.unref(S).svgViewBox,"element-loading-background":Vue.unref(S).background}),{default:()=>[Vue.unref(l).map((w,D)=>{let O=Vue.unref(s).map(V=>V[w==null?void 0:w.prop]);const N={default:()=>{var V;return w!=null&&w.cellRenderer?Vue.createVNode(j,{render:w.cellRenderer,params:{props:o,attrs:r,index:D,value:O[0]}},null):w!=null&&w.slot?(V=t==null?void 0:t[w.slot])==null?void 0:V.call(t,{props:o,attrs:r,index:D,value:O[0]}):Vue.createVNode(Vue.Fragment,null,w!=null&&w.value?[Vue.unref(w.value)]:[O])}},k=w!=null&&w.labelRenderer?{label:()=>Vue.createVNode(j,{render:w.labelRenderer,params:{props:o,attrs:r,index:D,value:O[0]}},null),...N}:N;return F=w==null?void 0:w.hide,typeof F=="function"&&(w!=null&&w.hide(r))?w==null?void 0:w.hide(r):Vue.createVNode(ElementPlus.ElDescriptionsItem,Vue.mergeProps(w,{key:D,align:w.align?w.align:Vue.unref(h),labelAlign:w.labelAlign?w.labelAlign:Vue.unref(v)}),typeof(B=k)=="function"||Object.prototype.toString.call(B)==="[object Object]"&&!Vue.isVNode(B)?k:{default:()=>[k]});var F,B})],...C}),[[Vue.resolveDirective("loading"),Vue.unref(S).load]])}}}),I=Object.assign(m,{install:function(o){o.component(m.name,m)}}),reset="",index$1="",tailwind="",index="";(function(o){var t,r,s,l,h,v='<svg><symbol id="team-icontabs" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" ></path></symbol><symbol id="team-iconlogo" viewBox="0 0 1024 1024"><path d="M410.558481 0.10861C410.558481 211.083075 109.682285 361.860579 109.682285 633.656511c0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527C711.407525 361.751969 410.558481 210.974465 410.558481 0.10861z" fill="#386BF3" ></path><path d="M613.468671 73.664572c0 211.055922-300.876197 361.914883-300.876196 633.547901 0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527c-0.054305-271.633018-300.876197-422.491979-300.876197-633.547901z" fill="#C3D2FB" ></path><path d="M312.592475 707.212473c0-183.713414 137.635722-312.171612 226.72288-441.390078 81.701694 106.111739 172.119322 218.740063 172.119323 367.725506a309.755045 309.755045 0 0 1-291.074166 316.516003 323.114046 323.114046 0 0 1-107.768037-242.851431z" fill="#303F5B" ></path></symbol><symbol id="team-iconxinpin" viewBox="0 0 1024 1024"><path d="M535.7 180.1l-107.9 95.2-145.3 7.2-7.2 145.4-95.2 107.9 95.1 107.8 9.1 143.6 143.5 9 107.9 95.2 107.9-95.2 145.3-7.2 7.2-145.4 95.2-107.8-95.2-107.9-8.9-143.6-143.6-9z" fill="#FFECA0" ></path><path d="M197 356c-0.4 7.6-0.7 15.1-1.1 22.7 2.4-5.9 4.9-11.8 7.3-17.7l-83.4 94.5c-3.9 4.5-7.9 8.9-11.8 13.4-9.4 10.6-9.4 24.7 0 35.4l83.4 94.5c3.9 4.5 7.9 8.9 11.8 13.4-2.4-5.9-4.9-11.8-7.3-17.7 2.6 41.9 5.3 83.9 7.9 125.8 0.4 5.9 0.7 11.9 1.1 17.8 0.9 14.1 10.8 24.1 25 25 41.9 2.6 83.8 5.3 125.8 7.9 5.9 0.4 11.8 0.7 17.8 1.1-5.9-2.4-11.8-4.9-17.7-7.3l94.5 83.4c4.5 3.9 8.9 7.9 13.4 11.8 10.6 9.4 24.7 9.4 35.4 0l94.5-83.4c4.5-3.9 8.9-7.9 13.4-11.8-5.9 2.4-11.8 4.9-17.7 7.3l127.5-6.3c6-0.3 11.9-0.6 17.9-0.9 14-0.7 24.3-10.9 25-25l6.3-127.5c0.3-6 0.6-11.9 0.9-17.9-2.4 5.9-4.9 11.8-7.3 17.7l83.4-94.5c3.9-4.5 7.9-8.9 11.8-13.4 9.4-10.6 9.4-24.7 0-35.4l-83.4-94.5c-3.9-4.5-7.9-8.9-11.8-13.4 2.4 5.9 4.9 11.8 7.3 17.7-2.6-41.9-5.2-83.9-7.8-125.8-0.4-5.9-0.7-11.9-1.1-17.8-0.9-14.1-10.8-24.1-25-25-41.9-2.6-83.9-5.2-125.8-7.9-5.9-0.4-11.9-0.7-17.8-1.1 5.9 2.4 11.8 4.9 17.7 7.3L512.6 125c-4.5-3.9-8.9-7.9-13.4-11.8-10.6-9.4-24.7-9.4-35.4 0l-94.5 83.4c-4.5 3.9-8.9 7.9-13.4 11.8 5.9-2.4 11.8-4.9 17.7-7.3l-127.5 6.3c-6 0.3-11.9 0.6-17.9 0.9-14 0.7-24.3 10.9-25 25-0.7 13.2-1.3 26.5-2 39.7-0.6 13.1 12 25.6 25 25 14.1-0.6 24.3-11 25-25 0.7-13.2 1.3-26.5 2-39.7l-25 25 127.5-6.3c5.9-0.3 11.8-0.5 17.7-0.9 7.8-0.5 13.4-3.5 19-8.3 2.1-1.8 4.2-3.7 6.3-5.5 18.5-16.3 37-32.7 55.5-49 15-13.2 30-26.5 45-39.7h-35.4c31.8 28 63.5 56 95.3 84.1 4.2 3.7 8.3 7.4 12.5 11 5.9 5.1 12.1 7 19.6 7.5 2.9 0.2 5.9 0.4 8.8 0.5 24.5 1.5 49.1 3.1 73.6 4.6 19.8 1.2 39.6 2.5 59.4 3.7l-25-25c2.6 42.3 5.3 84.5 7.9 126.8 0.3 5.5 0.6 11.1 1 16.6 0.6 7.8 3.6 13.5 8.6 19.2 1.9 2.2 3.9 4.4 5.8 6.6 16.3 18.4 32.5 36.9 48.8 55.3 13.1 14.9 26.3 29.8 39.4 44.6v-35.4c-28.2 31.9-56.3 63.8-84.5 95.8-3.5 4-7.2 8-10.6 12.1-5.1 6-7.1 12.4-7.5 19.9-0.2 3-0.3 6.1-0.5 9.1-1.2 24.9-2.5 49.8-3.7 74.7-1 19.8-2 39.5-2.9 59.3l25-25-127.5 6.3c-5.9 0.3-11.8 0.5-17.7 0.9-7.8 0.5-13.4 3.5-19 8.3-2.1 1.8-4.2 3.7-6.3 5.5-18.5 16.3-37 32.7-55.5 49-15 13.2-30 26.5-45 39.7h35.4c-31.8-28-63.5-56.1-95.3-84.1-4.2-3.7-8.3-7.4-12.5-11-5.9-5.1-12.1-7-19.6-7.5-2.9-0.2-5.9-0.4-8.8-0.5-24.5-1.5-49-3.1-73.5-4.6-19.8-1.2-39.6-2.5-59.4-3.7l25 25c-2.7-42.3-5.3-84.5-8-126.8-0.3-5.5-0.6-11.1-1-16.6-0.6-7.8-3.6-13.5-8.6-19.2-1.9-2.2-3.9-4.4-5.8-6.6-16.3-18.4-32.5-36.8-48.8-55.3-13.1-14.9-26.2-29.7-39.4-44.6v35.4c30.2-34.2 60.3-68.4 90.5-102.6 1.5-1.7 3.1-3.5 4.6-5.3 5.3-6.2 7.1-12.7 7.5-20.6 0.3-6.6 0.7-13.2 1-19.9 0.6-13.1-12-25.6-25-25-14.2 0.8-24.4 11.2-25.1 25.2z" fill="#92646E" ></path><path d="M314.7 589v-61-97.4-22.5c-15.5 4.2-31.1 8.4-46.6 12.6 9.5 20.4 19 40.7 28.4 61.1l45.3 97.5c3.5 7.5 7 15 10.4 22.4 4.4 9.5 18.5 14.6 28.2 11.5 10.5-3.4 18.4-12.8 18.4-24.1v-61-97.4-22.5c0-13.1-11.5-25.6-25-25-13.5 0.6-25 11-25 25v180.9c15.5-4.2 31.1-8.4 46.6-12.6-9.5-20.4-19-40.7-28.4-61.1l-45.3-97.5c-3.5-7.5-7-15-10.4-22.4-4.4-9.5-18.5-14.6-28.2-11.5-10.5 3.4-18.4 12.8-18.4 24.1V589c0 13.1 11.5 25.6 25 25 13.5-0.6 25-11 25-25zM521.7 383h-84.2c-13.5 0-25 11.5-25 25v178.9c0 13.5 11.5 25 25 25h84.2c13.1 0 25.6-11.5 25-25-0.6-13.5-11-25-25-25h-84.2l25 25v-60.5V430v-22l-25 25h84.2c13.1 0 25.6-11.5 25-25-0.6-13.6-11-25-25-25z" fill="#4381FF" ></path><path d="M502 469.4c-21.5 0.1-43 0.3-64.5 0-13.1-0.2-25.6 11.6-25 25 0.6 13.7 11 24.8 25 25 21.5 0.3 43 0.1 64.5 0 13.1-0.1 25.6-11.4 25-25-0.6-13.5-11-25.1-25-25zM558.2 408v180.9c0 10.6 7.7 21.7 18.4 24.1 10.9 2.5 22.4-1.7 28.2-11.5 15.6-26.4 31.2-52.8 46.9-79.2 2.2-3.8 4.5-7.6 6.7-11.4h-43.2c15.6 26.4 31.2 52.8 46.9 79.2 2.2 3.8 4.5 7.6 6.7 11.4 5.4 9.2 17.7 14.9 28.2 11.5 10.5-3.4 18.4-12.8 18.4-24.1v-61-97.4V408c0-13.1-11.5-25.6-25-25-13.5 0.6-25 11-25 25v180.9c15.5-4.2 31.1-8.4 46.6-12.6-15.6-26.4-31.2-52.8-46.9-79.2-2.2-3.8-4.5-7.6-6.7-11.4-9.6-16.2-33.6-16.2-43.2 0-15.6 26.4-31.2 52.8-46.9 79.2-2.2 3.8-4.5 7.6-6.7 11.4 15.5 4.2 31.1 8.4 46.6 12.6v-61-97.4V408c0-13.1-11.5-25.6-25-25-13.5 0.6-25 10.9-25 25z" fill="#4381FF" ></path><path d="M295.9 572v-61-97.4-22.5c-15.5 4.2-31.1 8.4-46.6 12.6 9.5 20.4 19 40.7 28.4 61.1l45.3 97.5c3.5 7.5 7 15 10.4 22.4 4.4 9.5 18.5 14.6 28.2 11.5 10.5-3.4 18.4-12.8 18.4-24.1v-61-97.4-22.5c0-13.1-11.5-25.6-25-25-13.5 0.6-25 11-25 25v180.9c15.5-4.2 31.1-8.4 46.6-12.6-9.5-20.4-19-40.7-28.4-61.1l-45.3-97.5c-3.5-7.5-7-15-10.4-22.4-4.4-9.5-18.5-14.6-28.2-11.5-10.5 3.4-18.4 12.8-18.4 24.1V572c0 13.1 11.5 25.6 25 25 13.6-0.6 25-11 25-25zM502.9 365.9h-84.2c-13.5 0-25 11.5-25 25v178.9c0 13.5 11.5 25 25 25h84.2c13.1 0 25.6-11.5 25-25-0.6-13.5-11-25-25-25h-84.2l25 25v-60.5-96.4-22l-25 25h84.2c13.1 0 25.6-11.5 25-25-0.6-13.5-11-25-25-25z" fill="#FF642E" ></path><path d="M483.2 452.4c-21.5 0.1-43 0.3-64.5 0-13.1-0.2-25.6 11.6-25 25 0.6 13.7 11 24.8 25 25 21.5 0.3 43 0.1 64.5 0 13.1-0.1 25.6-11.4 25-25-0.6-13.5-11-25.1-25-25zM539.5 390.9v180.9c0 10.6 7.7 21.7 18.4 24.1 10.9 2.5 22.4-1.7 28.2-11.5 15.6-26.4 31.2-52.8 46.9-79.2 2.2-3.8 4.5-7.6 6.7-11.4h-43.2c15.6 26.4 31.2 52.8 46.9 79.2 2.2 3.8 4.5 7.6 6.7 11.4 5.4 9.2 17.7 14.9 28.2 11.5 10.5-3.4 18.4-12.8 18.4-24.1v-61-97.4-22.5c0-13.1-11.5-25.6-25-25-13.5 0.6-25 11-25 25v180.9c15.5-4.2 31.1-8.4 46.6-12.6-15.6-26.4-31.2-52.8-46.9-79.2-2.2-3.8-4.5-7.6-6.7-11.4-9.6-16.2-33.6-16.2-43.2 0-15.6 26.4-31.2 52.8-46.9 79.2-2.2 3.8-4.5 7.6-6.7 11.4 15.5 4.2 31.1 8.4 46.6 12.6v-61-97.4-22.5c0-13.1-11.5-25.6-25-25-13.6 0.7-25 11-25 25z" fill="#FF642E" ></path></symbol><symbol id="team-iconxinpinrenqiwang" viewBox="0 0 1024 1024"><path d="M460.5 189.8l-37.9 290.6c39.1 23 89.1 48.5 149.3 70.8 62.8 23.3 119.6 36.9 165.6 44.9 145-183.5 167.7-255.3 161.1-245.3-11.9 18.2-70.6 23.2-86.7 17.4-32.2-11.5-60.8-42.7-74.3-92.5-16.9-62.2-49.5-57.5-107.6-24.3-67 38.1-138.2 5-169.5-61.6z" fill="#FFFFFF" ></path><path d="M435.5 189.8c-4.3 32.8-8.6 65.7-12.9 98.5l-20.4 156.3c-1.6 11.9-3.1 23.9-4.7 35.8-1.1 8.4 5.5 17.6 12.4 21.6 79.4 46.5 165.7 81.9 255 104.3 21.8 5.5 43.8 10.1 65.9 14 8.2 1.4 18.6 0.8 24.3-6.4C802.7 553.7 849.2 492 889 426.2c9-14.9 17.7-30 25.2-45.7 2.8-5.8 5.4-11.8 7.8-17.8 1.5-3.8 2.7-8.1 2.6-12.2-0.5-13.7-10.8-25.4-25.1-25.4-9.6 0-17 5.2-22.1 12.9-2.2 3.2 3.8-3.9 1.8-2.4-0.5 0.4-1 0.9-1.4 1.3-1.5 1.7-3.8 1.3 2.9-2.1-1.4 0.7-2.7 1.8-4.1 2.6-1.3 0.7-2.6 1.3-3.8 1.9-3.8 1.9 6.3-2.4 2.2-1-0.7 0.2-1.3 0.5-2 0.7-3.5 1.2-7.1 2.2-10.7 3.1-3.8 0.9-7.7 1.6-11.5 2.3-6.4 1 6.1-0.7-0.4 0.1-1.9 0.2-3.9 0.4-5.8 0.6-7 0.6-14 0.8-21 0.3-2.6-0.2-8-1.6 1.6 0.4-1.2-0.2-2.4-0.4-3.6-0.7-0.8-0.2-1.6-0.4-2.4-0.7-0.9-0.3-1.8-0.7-2.7-1-3.9-1.4 5.8 2.7 1.7 0.7-3.4-1.6-6.7-3.2-9.9-5.1-1.5-0.9-3.1-1.9-4.5-2.9l-3-2.1c-1.6-1.2-4.2-4.2 1.2 0.9-2.7-2.6-5.8-4.9-8.5-7.5-3.4-3.4-6.2-7.5-9.7-10.8 0.2 0.2 3.8 5.1 1.4 1.8-0.7-0.9-1.4-1.9-2-2.8-1.2-1.7-2.4-3.5-3.5-5.3-2.8-4.3-5.3-8.8-7.6-13.4-1-2-2-4.1-3-6.2-0.2-0.5-0.4-0.9-0.6-1.4-1.1-2.5-0.8-1.9 0.7 1.6 0.1-0.4-1.1-2.9-1.2-3-2-5.1-3.7-10.4-5.3-15.6-3.1-10.5-6.4-20.7-11-30.6-7.8-16.5-20.7-29.7-37.9-36-15-5.5-32.3-3.5-47.2 1.2-18.4 5.8-35.1 15.3-51.9 24.4-2.3 1.2-4.5 2.4-6.9 3.5-0.6 0.3-5.3 2.1-1.1 0.6 4.1-1.6-0.5 0.2-1.1 0.4-4.5 1.7-9.1 3.2-13.7 4.4-2.3 0.6-4.5 1.1-6.8 1.5-0.9 0.2-1.8 0.3-2.7 0.5-5.1 0.9 6.4-0.6 1.2-0.2-4.5 0.4-9 0.7-13.5 0.6-2.2 0-4.4-0.1-6.7-0.3-0.9-0.1-1.8-0.2-2.6-0.2-4.9-0.4 5.4 0.9 2.1 0.3-4.5-0.9-9.1-1.6-13.5-2.9-4-1.1-7.9-2.7-11.8-4.1-3.1-1.1 6 2.8 1.7 0.7-0.8-0.4-1.6-0.7-2.4-1.1-2.4-1.2-4.7-2.4-7.1-3.7-3.5-2-6.9-4.2-10.2-6.5-1.1-0.8-2.1-1.7-3.3-2.4 0.3 0.2 4.9 4 1.8 1.4-1.9-1.6-3.9-3.2-5.7-4.9-3.3-3-6.4-6.1-9.3-9.3-1.6-1.7-3.1-3.5-4.6-5.3-0.6-0.7-1.1-1.6-1.8-2.2 5 5 1.3 1.6 0-0.1-5.6-7.8-10.4-16-14.4-24.7-5.6-11.8-23.5-15.9-34.2-9-12.2 7.9-15 21.5-9 34.2 18 37.9 49.7 68.5 89.3 82.7 17.7 6.4 37.7 8.8 56.4 6.6 10.9-1.3 21.6-3.2 32-7 11-4 21.1-9.2 31.2-14.8 7.8-4.3 16.2-9.7 24.7-12.4-0.1 0-6.2 2.5-2.6 1.1 0.9-0.4 1.8-0.7 2.8-1.1 1.6-0.6 3.2-1.2 4.9-1.8 3.3-1.1 6.7-2.1 10.2-2.9 1.6-0.3 3.2-0.5 4.8-0.9-8.7 2.1-3.9 0.5-1.2 0.4 1.3-0.1 2.6-0.1 3.9 0 0.7 0 1.4 0.1 2.1 0.1 3.7 0.1-6.9-1.5-3.4-0.4 1.3 0.4 2.6 0.6 3.9 1 0.5 0.2 1 0.4 1.5 0.5 3.5 1-5.8-2.8-3.4-1.4 1.1 0.6 2.2 1.1 3.2 1.7 0.6 0.4 1.1 0.8 1.7 1.1 2.2 1.3-5.7-4.8-2.4-1.8 1 0.9 2 1.8 2.9 2.7 2.2 2.3 3.3 5.7-0.3-0.8 1.7 3 3.9 5.7 5.5 8.8 0.9 1.7 1.6 3.5 2.5 5.2-3.9-7.5-0.5-1.2 0.3 1.1 1.6 4.5 3 9.2 4.3 13.8 5.8 20.6 14.6 41.1 27.2 58.5 11.8 16.2 25.9 30.5 43.4 40.5 7.3 4.2 15.4 8.3 23.6 10.2 7.3 1.7 15.1 2.3 22.6 2.3 16.7 0.1 34.2-2 50.2-6.7 7.8-2.3 15.8-5.2 22.7-9.5 7.5-4.7 11.2-9.6 16.7-16.2-4 4.8-3.3 5.1-8.5 8.5-3 1.9-8.8 3.6-12.5 3.4-2.1-0.6-4.2-1.1-6.3-1.7-6.7-0.7-11.8-4.2-15.2-10.6-2.1-3.6-3.5-8.5-3.4-12.3 0-0.3 2-9.1 0.5-4.7-0.4 1.2-0.8 2.4-1.3 3.6-0.3 0.7-0.6 1.5-0.9 2.2-1.2 3.1 3.3-7.5 1.8-4.3-0.2 0.5-0.4 1-0.7 1.5-5.9 13.3-12.9 26-20.2 38.6-33.6 58.2-73.5 112.8-114.4 165.9-0.8 1-1.5 2-2.3 2.9-2.7 3.6 0 0 0.5-0.6-1.9 2.5-3.9 5-5.8 7.5-4 5.2-8.1 10.3-12.1 15.4 8.1-2.1 16.2-4.3 24.3-6.4-41.9-7.4-83.2-17.6-123.7-30.5-23.5-7.5-46.6-15.9-69.4-25.2-2.6-1-5.1-2.1-7.7-3.2-5.6-2.3 3.6 1.6 0.1 0l-4.2-1.8c-5.4-2.4-10.9-4.8-16.3-7.2-9.8-4.4-19.5-9.1-29.2-13.8-19.9-9.8-39.4-20.4-58.5-31.6 4.1 7.2 8.3 14.4 12.4 21.6 4.3-32.8 8.6-65.7 12.9-98.5l20.4-156.3c1.6-11.9 3.1-23.9 4.7-35.8 0.8-5.9-3.3-13.7-7.3-17.7-4.3-4.3-11.5-7.6-17.7-7.3-6.5 0.3-13.2 2.4-17.7 7.3-4.6 5.3-6.2 10.8-7.1 17.8z" fill="#FFCB40" ></path><path d="M494.5 451.4c54.1 36 115 62.3 178.3 76.9 12.7 2.9 27.7-3.9 30.8-17.5 2.9-12.8-3.8-27.6-17.5-30.8-15-3.5-29.9-7.6-44.6-12.4-7.3-2.4-14.6-4.9-21.8-7.7-3.9-1.5-7.8-3-11.6-4.5-1.7-0.7-3.3-1.3-4.9-2-4.7-2 4.6 2-1.4-0.6-28.6-12.4-56-27.4-82-44.7-10.9-7.3-28.1-2.5-34.2 9-6.7 12.6-2.7 26.5 8.9 34.3z" fill="#FFCB40" ></path><path d="M209.1 759.6v-82.5-130.9V516c-15.5 4.2-31.1 8.4-46.6 12.6 13 27.5 26 55.1 38.9 82.6 20.5 43.5 41.1 87.1 61.6 130.6 4.8 10.1 9.5 20.2 14.3 30.2 4.5 9.5 18.4 14.7 28.2 11.5 10.5-3.4 18.4-12.8 18.4-24.1v-82.5V546v-30.2c0-13.1-11.5-25.6-25-25-13.5 0.6-25 11-25 25v243.6c15.5-4.2 31.1-8.4 46.6-12.6-13-27.5-26-55.1-38.9-82.6-20.5-43.5-41.1-87.1-61.6-130.6-4.8-10.1-9.5-20.2-14.3-30.2-4.5-9.5-18.4-14.7-28.2-11.5-10.5 3.4-18.4 12.8-18.4 24.1v243.6c0 13.1 11.5 25.6 25 25 13.6-0.6 25-11 25-25zM500.4 491.1H385.6c-13.5 0-25 11.5-25 25v240.7c0 13.5 11.5 25 25 25h114.8c13.1 0 25.6-11.5 25-25-0.6-13.5-11-25-25-25H385.6l25 25v-81.1-129.9-29.7l-25 25h114.8c13.1 0 25.6-11.5 25-25-0.6-13.5-11-25-25-25z" fill="#4381FF" ></path><path d="M473.5 607.3c-29.3 0.2-58.6 0.5-87.9 0-13.1-0.2-25.6 11.6-25 25 0.6 13.7 11 24.8 25 25 29.3 0.5 58.6 0.2 87.9 0 13.1-0.1 25.6-11.4 25-25-0.6-13.5-10.9-25.1-25-25zM559.3 516.1v243.6c0 10.6 7.7 21.7 18.4 24.1 10.9 2.5 22.3-1.7 28.2-11.5 21.3-35.5 42.6-71 64-106.6 3-5.1 6.1-10.1 9.1-15.2h-43.2c21.3 35.5 42.6 71 64 106.6 3 5.1 6.1 10.1 9.1 15.2 5.5 9.1 17.7 14.9 28.2 11.5 10.5-3.4 18.4-12.8 18.4-24.1v-82.5-130.9-30.2c0-13.1-11.5-25.6-25-25-13.5 0.6-25 11-25 25v243.6c15.5-4.2 31.1-8.4 46.6-12.6-21.3-35.5-42.6-71-64-106.6-3-5.1-6.1-10.1-9.1-15.2-9.7-16.2-33.5-16.2-43.2 0-21.3 35.5-42.6 71-64 106.6-3 5.1-6.1 10.1-9.1 15.2 15.5 4.2 31.1 8.4 46.6 12.6v-82.5-130.9-30.2c0-13.1-11.5-25.6-25-25-13.5 0.6-25 11-25 25z" fill="#4381FF" ></path><path d="M185.8 736.7v-82.5-130.9-30.2c-15.5 4.2-31.1 8.4-46.6 12.6 13 27.4 25.9 54.8 38.9 82.3 20.7 43.7 41.4 87.4 62 131.1 4.7 10 9.5 20.1 14.2 30.1 4.5 9.5 18.4 14.7 28.2 11.5 10.5-3.4 18.4-12.8 18.4-24.1v-82.5-130.9V493c0-13.1-11.5-25.6-25-25-13.5 0.6-25 11-25 25v243.6c15.5-4.2 31.1-8.4 46.6-12.6-13-27.4-25.9-54.8-38.9-82.3-20.7-43.7-41.4-87.4-62-131.1-4.7-10-9.5-20.1-14.2-30.1-4.5-9.5-18.4-14.7-28.2-11.5-10.5 3.4-18.4 12.8-18.4 24.1v243.6c0 13.1 11.5 25.6 25 25 13.5-0.6 25-11 25-25zM478.2 468.2H363c-13.5 0-25 11.5-25 25v240.7c0 13.5 11.5 25 25 25h115.2c13.1 0 25.6-11.5 25-25-0.6-13.5-11-25-25-25H363l25 25v-81.1-129.9-29.7l-25 25h115.2c13.1 0 25.6-11.5 25-25-0.6-13.5-11-25-25-25z" fill="#FF642E" ></path><path d="M451.2 584.4c-29.4 0.2-58.9 0.5-88.3 0-13.1-0.2-25.6 11.6-25 25 0.6 13.7 11 24.8 25 25 29.4 0.5 58.9 0.2 88.3 0 13.1-0.1 25.6-11.4 25-25-0.6-13.5-10.9-25-25-25zM537.4 493.2v243.6c0 10.6 7.7 21.7 18.4 24.1 10.9 2.5 22.3-1.7 28.2-11.5 21.4-35.6 42.8-71.1 64.3-106.7 3-5 6-10 9.1-15h-43.2c21.4 35.6 42.8 71.1 64.3 106.7 3 5 6 10 9.1 15 5.5 9.1 17.7 14.9 28.2 11.5 10.5-3.4 18.4-12.8 18.4-24.1v-82.5-130.9-30.2c0-13.1-11.5-25.6-25-25-13.5 0.6-25 11-25 25v243.6c15.5-4.2 31.1-8.4 46.6-12.6-21.4-35.6-42.8-71.1-64.3-106.7-3-5-6-10-9.1-15-9.7-16.2-33.4-16.2-43.2 0-21.4 35.6-42.8 71.1-64.3 106.7-3 5-6 10-9.1 15 15.5 4.2 31.1 8.4 46.6 12.6v-82.5-130.9-30.2c0-13.1-11.5-25.6-25-25-13.5 0.6-25 11-25 25z" fill="#FF642E" ></path><path d="M645.2 832.6h85.2" fill="#FFFFFF" ></path><path d="M645.2 857.6h85.3c13.1 0 25.6-11.5 25-25-0.6-13.5-11-25-25-25h-85.3c-13.1 0-25.6 11.5-25 25 0.6 13.5 11 25 25 25z" fill="#FFCB40" ></path><path d="M557.7 832.6h6.5" fill="#FFFFFF" ></path><path d="M557.7 857.6h6.5c3.4 0.1 6.7-0.6 9.6-2.2 3.1-1 5.8-2.7 8-5.2 2.4-2.3 4.2-4.9 5.2-8 1.6-3 2.3-6.2 2.2-9.6l-0.9-6.6c-1.2-4.2-3.3-7.9-6.4-11-4.9-4.5-10.9-7.3-17.7-7.3h-6.5c-3.4-0.1-6.7 0.6-9.6 2.2-3.1 1-5.8 2.7-8 5.2-2.4 2.3-4.2 4.9-5.2 8-1.6 3-2.3 6.2-2.2 9.6l0.9 6.6c1.2 4.2 3.3 7.9 6.4 11 4.9 4.5 10.9 7.3 17.7 7.3z" fill="#FFCB40" ></path></symbol><symbol id="team-iconexit-fullscreen" viewBox="0 0 1024 1024"><path d="M366.2 181.8c-1-8-10.8-11.4-16.5-5.7l-53.1 53.1L134.2 67c-3.8-3.8-10-3.8-13.7 0L69 118.3c-3.8 3.8-3.8 10 0 13.7l162.4 162.4-53.3 53.3c-5.7 5.7-2.3 15.5 5.7 16.5l194.6 23c6.2 0.7 11.5-4.5 10.8-10.8l-23-194.6z m12.3 453.3l-194.7 23c-8 1-11.4 10.8-5.7 16.5l53.3 53.3L69 890.1c-3.8 3.8-3.8 10 0 13.7l51.5 51.4c3.8 3.8 10 3.8 13.7 0l162.4-162.3 53.1 53.1c5.7 5.7 15.5 2.3 16.5-5.7l23-194.4c0.7-6.3-4.5-11.5-10.7-10.8z m269.4-248l194.7-23c8-1 11.4-10.8 5.7-16.5L795 294.4l162.4-162.3c3.8-3.8 3.8-10 0-13.7L905.9 67c-3.8-3.8-10-3.8-13.7 0L729.7 229.2l-53.1-53.1c-5.7-5.7-15.6-2.3-16.5 5.7l-23 194.5c-0.6 6.3 4.6 11.5 10.8 10.8zM795 727.8l53.3-53.3c5.7-5.7 2.3-15.5-5.7-16.5L648 635c-6.2-0.7-11.5 4.5-10.8 10.8l23 194.6c1 8 10.8 11.4 16.5 5.7l53.1-53.1 162.4 162.3c3.8 3.8 10 3.8 13.7 0l51.5-51.4c3.8-3.8 3.8-10 0-13.7L795 727.8z m0 0" fill="#515151" ></path></symbol><symbol id="team-iconfullscreen" viewBox="0 0 1024 1024"><path d="M229.8 163l55.7-55.7c6-6 2.4-16.2-6-17.2l-203.2-24c-6.5-0.8-12 4.7-11.3 11.3l24 203.2c1 8.4 11.3 11.9 17.2 6l55.4-55.4 169.6 169.4c3.9 3.9 10.4 3.9 14.3 0l53.8-53.6c3.9-3.9 3.9-10.4 0-14.3L229.8 163z m447.3 237.6c3.9 3.9 10.4 3.9 14.3 0L861 231.1l55.4 55.4c6 6 16.2 2.4 17.2-6l24-203c0.8-6.5-4.7-12-11.3-11.3l-203.2 24c-8.4 1-11.9 11.3-6 17.2l55.7 55.7-169.5 169.4c-3.9 3.9-3.9 10.4 0 14.3l53.8 53.8z m256.6 343.9c-1-8.4-11.3-11.9-17.2-6L861 794 691.4 624.5c-3.9-3.9-10.4-3.9-14.3 0l-53.8 53.6c-3.9 3.9-3.9 10.4 0 14.3L792.9 862l-55.7 55.7c-6 6-2.4 16.2 6 17.2l203.2 24c6.5 0.8 12-4.7 11.3-11.3l-24-203.1z m-588.1-120c-3.9-3.9-10.4-3.9-14.3 0L161.7 794l-55.4-55.4c-6-6-16.2-2.4-17.2 6l-24 203c-0.8 6.5 4.7 12.1 11.3 11.3l203.2-24c8.4-1 11.9-11.3 6-17.2l-55.7-55.5 169.6-169.4c3.9-3.9 3.9-10.4 0-14.3l-53.9-54z m0 0" fill="#515151" ></path></symbol></svg>',S=(S=document.getElementsByTagName("script"))[S.length-1].getAttribute("data-injectcss"),x=function(M,w){w.parentNode.insertBefore(M,w)};if(S&&!o.__iconfont__svg__cssinject__){o.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(M){console&&console.log(M)}}function T(){h||(h=!0,s())}function C(){try{l.documentElement.doScroll("left")}catch{return void setTimeout(C,50)}T()}t=function(){var M,w;(w=document.createElement("div")).innerHTML=v,v=null,(M=w.getElementsByTagName("svg")[0])&&(M.setAttribute("aria-hidden","true"),M.style.position="absolute",M.style.width=0,M.style.height=0,M.style.overflow="hidden",w=M,(M=document.body).firstChild?x(w,M.firstChild):M.appendChild(w))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(r=function(){document.removeEventListener("DOMContentLoaded",r,!1),t()},document.addEventListener("DOMContentLoaded",r,!1)):document.attachEvent&&(s=t,l=o.document,h=!1,C(),l.onreadystatechange=function(){l.readyState=="complete"&&(l.onreadystatechange=null,T())})})(window);const iconfont="",auth$1={mounted(o,t){var s;const{value:r}=t;if(r)!hasAuth(r)&&((s=o.parentNode)==null||s.removeChild(o));else throw new Error(`need auths! Like v-auth="['btn.add','btn.edit']"`)}};var collectionUtilsExports={},collectionUtils={get exports(){return collectionUtilsExports},set exports(o){collectionUtilsExports=o}},utils$3=collectionUtils.exports={};utils$3.forEach=function(o,t){for(var r=0;r<o.length;r++){var s=t(o[r]);if(s)return s}};var elementUtils=function(o){var t=o.stateHandler.getState;function r(v){var S=t(v);return S&&!!S.isDetectable}function s(v){t(v).isDetectable=!0}function l(v){return!!t(v).busy}function h(v,S){t(v).busy=!!S}return{isDetectable:r,markAsDetectable:s,isBusy:l,markBusy:h}},listenerHandler=function(o){var t={};function r(v){var S=o.get(v);return S===void 0?[]:t[S]||[]}function s(v,S){var x=o.get(v);t[x]||(t[x]=[]),t[x].push(S)}function l(v,S){for(var x=r(v),T=0,C=x.length;T<C;++T)if(x[T]===S){x.splice(T,1);break}}function h(v){var S=r(v);S&&(S.length=0)}return{get:r,add:s,removeListener:l,removeAllListeners:h}},idGenerator=function(){var o=1;function t(){return o++}return{generate:t}},idHandler=function(o){var t=o.idGenerator,r=o.stateHandler.getState;function s(h){var v=r(h);return v&&v.id!==void 0?v.id:null}function l(h){var v=r(h);if(!v)throw new Error("setId required the element to have a resize detection state.");var S=t.generate();return v.id=S,S}return{get:s,set:l}},reporter=function(o){function t(){}var r={log:t,warn:t,error:t};if(!o&&window.console){var s=function(l,h){l[h]=function(){var S=console[h];if(S.apply)S.apply(console,arguments);else for(var x=0;x<arguments.length;x++)S(arguments[x])}};s(r,"log"),s(r,"warn"),s(r,"error")}return r},browserDetectorExports={},browserDetector$2={get exports(){return browserDetectorExports},set exports(o){browserDetectorExports=o}},detector=browserDetector$2.exports={};detector.isIE=function(o){function t(){var s=navigator.userAgent.toLowerCase();return s.indexOf("msie")!==-1||s.indexOf("trident")!==-1||s.indexOf(" edge/")!==-1}if(!t())return!1;if(!o)return!0;var r=function(){var s,l=3,h=document.createElement("div"),v=h.getElementsByTagName("i");do h.innerHTML="<!--[if gt IE "+ ++l+"]><i></i><![endif]-->";while(v[0]);return l>4?l:s}();return o===r};detector.isLegacyOpera=function(){return!!window.opera};var utilsExports={},utils$2={get exports(){return utilsExports},set exports(o){utilsExports=o}},utils$1=utils$2.exports={};utils$1.getOption=getOption$1;function getOption$1(o,t,r){var s=o[t];return s==null&&r!==void 0?r:s}var utils=utilsExports,batchProcessor=function(t){t=t||{};var r=t.reporter,s=utils.getOption(t,"async",!0),l=utils.getOption(t,"auto",!0);l&&!s&&(r&&r.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),s=!0);var h=Batch(),v,S=!1;function x(O,N){!S&&l&&s&&h.size()===0&&M(),h.add(O,N)}function T(){for(S=!0;h.size();){var O=h;h=Batch(),O.process()}S=!1}function C(O){S||(O===void 0&&(O=s),v&&(w(v),v=null),O?M():T())}function M(){v=D(T)}function w(O){var N=clearTimeout;return N(O)}function D(O){var N=function(k){return setTimeout(k,0)};return N(O)}return{add:x,force:C}};function Batch(){var o={},t=0,r=0,s=0;function l(S,x){x||(x=S,S=0),S>r?r=S:S<s&&(s=S),o[S]||(o[S]=[]),o[S].push(x),t++}function h(){for(var S=s;S<=r;S++)for(var x=o[S],T=0;T<x.length;T++){var C=x[T];C()}}function v(){return t}return{add:l,process:h,size:v}}var prop="_erd";function initState(o){return o[prop]={},getState(o)}function getState(o){return o[prop]}function cleanState(o){delete o[prop]}var stateHandler$1={initState,getState,cleanState},browserDetector$1=browserDetectorExports,object=function(o){o=o||{};var t=o.reporter,r=o.batchProcessor,s=o.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function l(T,C){function M(){C(T)}if(browserDetector$1.isIE(8))s(T).object={proxy:M},T.attachEvent("onresize",M);else{var w=S(T);if(!w)throw new Error("Element is not detectable by this strategy.");w.contentDocument.defaultView.addEventListener("resize",M)}}function h(T){var C=o.important?" !important; ":"; ";return(T.join(C)+C).trim()}function v(T,C,M){M||(M=C,C=T,T=null),T=T||{},T.debug;function w(D,O){var N=h(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),k=!1,F=window.getComputedStyle(D),B=D.offsetWidth,V=D.offsetHeight;s(D).startSize={width:B,height:V};function z(){function U(){if(F.position==="static"){D.style.setProperty("position","relative",T.important?"important":"");var X=function(K,J,q,ee){function te(ae){return ae.replace(/[^-\d\.]/g,"")}var ne=q[ee];ne!=="auto"&&te(ne)!=="0"&&(K.warn("An element that is positioned static has style."+ee+"="+ne+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+ee+" will be set to 0. Element: ",J),J.style.setProperty(ee,"0",T.important?"important":""))};X(t,D,F,"top"),X(t,D,F,"right"),X(t,D,F,"bottom"),X(t,D,F,"left")}}function Y(){k||U();function X(J,q){if(!J.contentDocument){var ee=s(J);ee.checkForObjectDocumentTimeoutId&&window.clearTimeout(ee.checkForObjectDocumentTimeoutId),ee.checkForObjectDocumentTimeoutId=setTimeout(function(){ee.checkForObjectDocumentTimeoutId=0,X(J,q)},100);return}q(J.contentDocument)}var K=this;X(K,function(q){O(D)})}F.position!==""&&(U(),k=!0);var W=document.createElement("object");W.style.cssText=N,W.tabIndex=-1,W.type="text/html",W.setAttribute("aria-hidden","true"),W.onload=Y,browserDetector$1.isIE()||(W.data="about:blank"),s(D)&&(D.appendChild(W),s(D).object=W,browserDetector$1.isIE()&&(W.data="about:blank"))}r?r.add(z):z()}browserDetector$1.isIE(8)?M(C):w(C,M)}function S(T){return s(T).object}function x(T){if(s(T)){var C=S(T);C&&(browserDetector$1.isIE(8)?T.detachEvent("onresize",C.proxy):T.removeChild(C),s(T).checkForObjectDocumentTimeoutId&&window.clearTimeout(s(T).checkForObjectDocumentTimeoutId),delete s(T).object)}}return{makeDetectable:v,addListener:l,uninstall:x}},forEach$1=collectionUtilsExports.forEach,scroll=function(o){o=o||{};var t=o.reporter,r=o.batchProcessor,s=o.stateHandler.getState;o.stateHandler.hasState;var l=o.idHandler;if(!r)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var h=C(),v="erd_scroll_detection_scrollbar_style",S="erd_scroll_detection_container";function x(z){M(z,v,S)}x(window.document);function T(z){var U=o.important?" !important; ":"; ";return(z.join(U)+U).trim()}function C(){var z=500,U=500,Y=document.createElement("div");Y.style.cssText=T(["position: absolute","width: "+z*2+"px","height: "+U*2+"px","visibility: hidden","margin: 0","padding: 0"]);var W=document.createElement("div");W.style.cssText=T(["position: absolute","width: "+z+"px","height: "+U+"px","overflow: scroll","visibility: none","top: "+-z*3+"px","left: "+-U*3+"px","visibility: hidden","margin: 0","padding: 0"]),W.appendChild(Y),document.body.insertBefore(W,document.body.firstChild);var X=z-W.clientWidth,K=U-W.clientHeight;return document.body.removeChild(W),{width:X,height:K}}function M(z,U,Y){function W(q,ee){ee=ee||function(ne){z.head.appendChild(ne)};var te=z.createElement("style");return te.innerHTML=q,te.id=U,ee(te),te}if(!z.getElementById(U)){var X=Y+"_animation",K=Y+"_animation_active",J=`/* Created by the element-resize-detector library. */
|
||
`;J+="."+Y+" > div::-webkit-scrollbar { "+T(["display: none"])+` }
|
||
|
||
`,J+="."+K+" { "+T(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+X,"animation-name: "+X])+` }
|
||
`,J+="@-webkit-keyframes "+X+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
|
||
`,J+="@keyframes "+X+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",W(J)}}function w(z){z.className+=" "+S+"_animation_active"}function D(z,U,Y){if(z.addEventListener)z.addEventListener(U,Y);else if(z.attachEvent)z.attachEvent("on"+U,Y);else return t.error("[scroll] Don't know how to add event listeners.")}function O(z,U,Y){if(z.removeEventListener)z.removeEventListener(U,Y);else if(z.detachEvent)z.detachEvent("on"+U,Y);else return t.error("[scroll] Don't know how to remove event listeners.")}function N(z){return s(z).container.childNodes[0].childNodes[0].childNodes[0]}function k(z){return s(z).container.childNodes[0].childNodes[0].childNodes[1]}function F(z,U){var Y=s(z).listeners;if(!Y.push)throw new Error("Cannot add listener to an element that is not detectable.");s(z).listeners.push(U)}function B(z,U,Y){Y||(Y=U,U=z,z=null),z=z||{};function W(){if(z.debug){var he=Array.prototype.slice.call(arguments);if(he.unshift(l.get(U),"Scroll: "),t.log.apply)t.log.apply(null,he);else for(var Te=0;Te<he.length;Te++)t.log(he[Te])}}function X(he){function Te(me){var Ce=me.getRootNode&&me.getRootNode().contains(me);return me===me.ownerDocument.body||me.ownerDocument.body.contains(me)||Ce}return!Te(he)||window.getComputedStyle(he)===null}function K(he){var Te=s(he).container.childNodes[0],me=window.getComputedStyle(Te);return!me.width||me.width.indexOf("px")===-1}function J(){var he=window.getComputedStyle(U),Te={};return Te.position=he.position,Te.width=U.offsetWidth,Te.height=U.offsetHeight,Te.top=he.top,Te.right=he.right,Te.bottom=he.bottom,Te.left=he.left,Te.widthCSS=he.width,Te.heightCSS=he.height,Te}function q(){var he=J();s(U).startSize={width:he.width,height:he.height},W("Element start size",s(U).startSize)}function ee(){s(U).listeners=[]}function te(){if(W("storeStyle invoked."),!s(U)){W("Aborting because element has been uninstalled");return}var he=J();s(U).style=he}function ne(he,Te,me){s(he).lastWidth=Te,s(he).lastHeight=me}function ae(he){return N(he).childNodes[0]}function oe(){return 2*h.width+1}function Se(){return 2*h.height+1}function se(he){return he+10+oe()}function le(he){return he+10+Se()}function ye(he){return he*2+oe()}function we(he){return he*2+Se()}function Me(he,Te,me){var Ce=N(he),Fe=k(he),Oe=se(Te),Ve=le(me),Le=ye(Te),De=we(me);Ce.scrollLeft=Oe,Ce.scrollTop=Ve,Fe.scrollLeft=Le,Fe.scrollTop=De}function Ee(){var he=s(U).container;if(!he){he=document.createElement("div"),he.className=S,he.style.cssText=T(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),s(U).container=he,w(he),U.appendChild(he);var Te=function(){s(U).onRendered&&s(U).onRendered()};D(he,"animationstart",Te),s(U).onAnimationStart=Te}return he}function Pe(){function he(){var ke=s(U).style;if(ke.position==="static"){U.style.setProperty("position","relative",z.important?"important":"");var Ye=function(je,Ze,st,Ke){function ut(ct){return ct.replace(/[^-\d\.]/g,"")}var Qe=st[Ke];Qe!=="auto"&&ut(Qe)!=="0"&&(je.warn("An element that is positioned static has style."+Ke+"="+Qe+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Ke+" will be set to 0. Element: ",Ze),Ze.style[Ke]=0)};Ye(t,U,ke,"top"),Ye(t,U,ke,"right"),Ye(t,U,ke,"bottom"),Ye(t,U,ke,"left")}}function Te(ke,Ye,je,Ze){return ke=ke?ke+"px":"0",Ye=Ye?Ye+"px":"0",je=je?je+"px":"0",Ze=Ze?Ze+"px":"0",["left: "+ke,"top: "+Ye,"right: "+Ze,"bottom: "+je]}if(W("Injecting elements"),!s(U)){W("Aborting because element has been uninstalled");return}he();var me=s(U).container;me||(me=Ee());var Ce=h.width,Fe=h.height,Oe=T(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),Ve=T(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(Te(-(1+Ce),-(1+Fe),-Fe,-Ce))),Le=T(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),De=T(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),ze=T(["position: absolute","left: 0","top: 0"]),Ge=T(["position: absolute","width: 200%","height: 200%"]),Ue=document.createElement("div"),He=document.createElement("div"),We=document.createElement("div"),Xe=document.createElement("div"),Je=document.createElement("div"),ot=document.createElement("div");Ue.dir="ltr",Ue.style.cssText=Oe,Ue.className=S,He.className=S,He.style.cssText=Ve,We.style.cssText=Le,Xe.style.cssText=ze,Je.style.cssText=De,ot.style.cssText=Ge,We.appendChild(Xe),Je.appendChild(ot),He.appendChild(We),He.appendChild(Je),Ue.appendChild(He),me.appendChild(Ue);function tt(){var ke=s(U);ke&&ke.onExpand?ke.onExpand():W("Aborting expand scroll handler: element has been uninstalled")}function nt(){var ke=s(U);ke&&ke.onShrink?ke.onShrink():W("Aborting shrink scroll handler: element has been uninstalled")}D(We,"scroll",tt),D(Je,"scroll",nt),s(U).onExpandScroll=tt,s(U).onShrinkScroll=nt}function $e(){function he(Le,De,ze){var Ge=ae(Le),Ue=se(De),He=le(ze);Ge.style.setProperty("width",Ue+"px",z.important?"important":""),Ge.style.setProperty("height",He+"px",z.important?"important":"")}function Te(Le){var De=U.offsetWidth,ze=U.offsetHeight,Ge=De!==s(U).lastWidth||ze!==s(U).lastHeight;W("Storing current size",De,ze),ne(U,De,ze),r.add(0,function(){if(Ge){if(!s(U)){W("Aborting because element has been uninstalled");return}if(!me()){W("Aborting because element container has not been initialized");return}if(z.debug){var He=U.offsetWidth,We=U.offsetHeight;(He!==De||We!==ze)&&t.warn(l.get(U),"Scroll: Size changed before updating detector elements.")}he(U,De,ze)}}),r.add(1,function(){if(!s(U)){W("Aborting because element has been uninstalled");return}if(!me()){W("Aborting because element container has not been initialized");return}Me(U,De,ze)}),Ge&&Le&&r.add(2,function(){if(!s(U)){W("Aborting because element has been uninstalled");return}if(!me()){W("Aborting because element container has not been initialized");return}Le()})}function me(){return!!s(U).container}function Ce(){function Le(){return s(U).lastNotifiedWidth===void 0}W("notifyListenersIfNeeded invoked");var De=s(U);if(Le()&&De.lastWidth===De.startSize.width&&De.lastHeight===De.startSize.height)return W("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(De.lastWidth===De.lastNotifiedWidth&&De.lastHeight===De.lastNotifiedHeight)return W("Not notifying: Size already notified");W("Current size not notified, notifying..."),De.lastNotifiedWidth=De.lastWidth,De.lastNotifiedHeight=De.lastHeight,forEach$1(s(U).listeners,function(ze){ze(U)})}function Fe(){if(W("startanimation triggered."),K(U)){W("Ignoring since element is still unrendered...");return}W("Element rendered.");var Le=N(U),De=k(U);(Le.scrollLeft===0||Le.scrollTop===0||De.scrollLeft===0||De.scrollTop===0)&&(W("Scrollbars out of sync. Updating detector elements..."),Te(Ce))}function Oe(){if(W("Scroll detected."),K(U)){W("Scroll event fired while unrendered. Ignoring...");return}Te(Ce)}if(W("registerListenersAndPositionElements invoked."),!s(U)){W("Aborting because element has been uninstalled");return}s(U).onRendered=Fe,s(U).onExpand=Oe,s(U).onShrink=Oe;var Ve=s(U).style;he(U,Ve.width,Ve.height)}function Ie(){if(W("finalizeDomMutation invoked."),!s(U)){W("Aborting because element has been uninstalled");return}var he=s(U).style;ne(U,he.width,he.height),Me(U,he.width,he.height)}function Be(){Y(U)}function Ne(){W("Installing..."),ee(),q(),r.add(0,te),r.add(1,Pe),r.add(2,$e),r.add(3,Ie),r.add(4,Be)}W("Making detectable..."),X(U)?(W("Element is detached"),Ee(),W("Waiting until element is attached..."),s(U).onRendered=function(){W("Element is now attached"),Ne()}):Ne()}function V(z){var U=s(z);U&&(U.onExpandScroll&&O(N(z),"scroll",U.onExpandScroll),U.onShrinkScroll&&O(k(z),"scroll",U.onShrinkScroll),U.onAnimationStart&&O(U.container,"animationstart",U.onAnimationStart),U.container&&z.removeChild(U.container))}return{makeDetectable:B,addListener:F,uninstall:V,initDocument:x}},forEach=collectionUtilsExports.forEach,elementUtilsMaker=elementUtils,listenerHandlerMaker=listenerHandler,idGeneratorMaker=idGenerator,idHandlerMaker=idHandler,reporterMaker=reporter,browserDetector=browserDetectorExports,batchProcessorMaker=batchProcessor,stateHandler=stateHandler$1,objectStrategyMaker=object,scrollStrategyMaker=scroll;function isCollection(o){return Array.isArray(o)||o.length!==void 0}function toArray(o){if(Array.isArray(o))return o;var t=[];return forEach(o,function(r){t.push(r)}),t}function isElement(o){return o&&o.nodeType===1}var elementResizeDetector=function(o){o=o||{};var t;if(o.idHandler)t={get:function(B){return o.idHandler.get(B,!0)},set:o.idHandler.set};else{var r=idGeneratorMaker(),s=idHandlerMaker({idGenerator:r,stateHandler});t=s}var l=o.reporter;if(!l){var h=l===!1;l=reporterMaker(h)}var v=getOption(o,"batchProcessor",batchProcessorMaker({reporter:l})),S={};S.callOnAdd=!!getOption(o,"callOnAdd",!0),S.debug=!!getOption(o,"debug",!1);var x=listenerHandlerMaker(t),T=elementUtilsMaker({stateHandler}),C,M=getOption(o,"strategy","object"),w=getOption(o,"important",!1),D={reporter:l,batchProcessor:v,stateHandler,idHandler:t,important:w};if(M==="scroll"&&(browserDetector.isLegacyOpera()?(l.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),M="object"):browserDetector.isIE(9)&&(l.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),M="object")),M==="scroll")C=scrollStrategyMaker(D);else if(M==="object")C=objectStrategyMaker(D);else throw new Error("Invalid strategy name: "+M);var O={};function N(B,V,z){function U(q){var ee=x.get(q);forEach(ee,function(ne){ne(q)})}function Y(q,ee,te){x.add(ee,te),q&&te(ee)}if(z||(z=V,V=B,B={}),!V)throw new Error("At least one element required.");if(!z)throw new Error("Listener required.");if(isElement(V))V=[V];else if(isCollection(V))V=toArray(V);else return l.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var W=0,X=getOption(B,"callOnAdd",S.callOnAdd),K=getOption(B,"onReady",function(){}),J=getOption(B,"debug",S.debug);forEach(V,function(ee){stateHandler.getState(ee)||(stateHandler.initState(ee),t.set(ee));var te=t.get(ee);if(J&&l.log("Attaching listener to element",te,ee),!T.isDetectable(ee)){if(J&&l.log(te,"Not detectable."),T.isBusy(ee)){J&&l.log(te,"System busy making it detectable"),Y(X,ee,z),O[te]=O[te]||[],O[te].push(function(){W++,W===V.length&&K()});return}return J&&l.log(te,"Making detectable..."),T.markBusy(ee,!0),C.makeDetectable({debug:J,important:w},ee,function(ae){if(J&&l.log(te,"onElementDetectable"),stateHandler.getState(ae)){T.markAsDetectable(ae),T.markBusy(ae,!1),C.addListener(ae,U),Y(X,ae,z);var oe=stateHandler.getState(ae);if(oe&&oe.startSize){var Se=ae.offsetWidth,se=ae.offsetHeight;(oe.startSize.width!==Se||oe.startSize.height!==se)&&U(ae)}O[te]&&forEach(O[te],function(le){le()})}else J&&l.log(te,"Element uninstalled before being detectable.");delete O[te],W++,W===V.length&&K()})}J&&l.log(te,"Already detecable, adding listener."),Y(X,ee,z),W++}),W===V.length&&K()}function k(B){if(!B)return l.error("At least one element is required.");if(isElement(B))B=[B];else if(isCollection(B))B=toArray(B);else return l.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");forEach(B,function(V){x.removeAllListeners(V),C.uninstall(V),stateHandler.cleanState(V)})}function F(B){C.initDocument&&C.initDocument(B)}return{listenTo:N,removeListener:x.removeListener,removeAllListeners:x.removeAllListeners,uninstall:k,initDocument:F}};function getOption(o,t,r){var s=o[t];return s==null&&r!==void 0?r:s}const erd=elementResizeDetector({strategy:"scroll"}),resize={mounted(o,t,r){erd.listenTo(o,s=>{const l=s.offsetWidth,h=s.offsetHeight;t!=null&&t.instance?emitter.emit("resize",{detail:{width:l,height:h}}):r.el.dispatchEvent(new CustomEvent("resize",{detail:{width:l,height:h}}))})},unmounted(o){erd.uninstall(o)}},directives=Object.freeze(Object.defineProperty({__proto__:null,auth:auth$1,resize},Symbol.toStringTag,{value:"Module"})),auth=Vue.defineComponent({name:"Auth",props:{value:{type:void 0,default:[]}},setup(o,{slots:t}){return()=>{var r;return t&&hasAuth(o.value)?Vue.createVNode(Vue.Fragment,null,[(r=t.default)==null?void 0:r.call(t)]):null}}}),Auth=auth,systemRouter={path:"/system",meta:{icon:"setting",title:"menus.hssysManagement",rank:system$1},children:[{path:"/system/user/index",name:"User",meta:{icon:"flUser",title:"menus.hsUser",roles:["admin"]}},{path:"/system/role/index",name:"Role",meta:{icon:"role",title:"menus.hsRole",roles:["admin"]}},{path:"/system/dept/index",name:"Dept",meta:{icon:"dept",title:"menus.hsDept",roles:["admin"]}}]},permissionRouter={path:"/permission",meta:{title:"menus.permission",icon:"lollipop",rank:permission},children:[{path:"/permission/page/index",name:"PermissionPage",meta:{title:"menus.permissionPage",roles:["admin","common"]}},{path:"/permission/button/index",name:"PermissionButton",meta:{title:"menus.permissionButton",roles:["admin","common"],auths:["btn_add","btn_edit","btn_delete"]}}]},frameRouter={path:"/iframe",meta:{icon:"monitor",title:"menus.hsExternalPage",rank:frame$1},children:[{path:"/external",name:"https://yiming_chang.gitee.io/pure-admin-doc",meta:{title:"menus.externalLink",roles:["admin","common"]}},{path:"/iframe/pure",name:"FramePure",meta:{title:"menus.hsPureDocument",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc",roles:["admin","common"]}},{path:"/iframe/ep",name:"FrameEp",meta:{title:"menus.hsEpDocument",frameSrc:"https://element-plus.org/zh-CN/",roles:["admin","common"]}},{path:"/iframe/vue3",name:"FrameVue",meta:{title:"menus.hsVueDocument",frameSrc:"https://cn.vuejs.org/",roles:["admin","common"]}},{path:"/iframe/vite",name:"FrameVite",meta:{title:"menus.hsViteDocument",frameSrc:"https://cn.vitejs.dev/",roles:["admin","common"]}},{path:"/iframe/pinia",name:"FramePinia",meta:{title:"menus.hsPiniaDocument",frameSrc:"https://pinia.vuejs.org/zh/index.html",roles:["admin","common"]}},{path:"/iframe/vue-router",name:"FrameRouter",meta:{title:"menus.hsRouterDocument",frameSrc:"https://router.vuejs.org/zh/",roles:["admin","common"]}},{path:"/iframe/tailwindcss",name:"FrameTailwindcss",meta:{title:"menus.hsTailwindcssDocument",frameSrc:"https://tailwindcss.com/docs/installation",roles:["admin","common"]}}]},tabsRouter={path:"/tabs",meta:{icon:"IF-team-icontabs",title:"menus.hstabs",rank:tabs},children:[{path:"/tabs/index",name:"Tabs",meta:{title:"menus.hstabs",roles:["admin","common"]}},{path:"/tabs/query-detail",name:"TabQueryDetail",meta:{showLink:!1,roles:["admin","common"]}},{path:"/tabs/params-detail/:id",component:"params-detail",name:"TabParamsDetail",meta:{showLink:!1,roles:["admin","common"]}}]},asyncRoutes=[{url:"/getAsyncRoutes",method:"get",response:()=>({success:!0,data:[systemRouter,permissionRouter,frameRouter,tabsRouter]})}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:asyncRoutes},Symbol.toStringTag,{value:"Module"})),list=[{url:"/getCardList",method:"post",response:()=>({success:!0,data:{list:[{index:1,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:2,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:3,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:4,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:5,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:6,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:7,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:8,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:9,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:10,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:11,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:12,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:13,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"云数据库",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:14,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:15,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:16,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:17,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:18,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:19,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:20,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:21,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:22,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:23,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:24,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:25,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:26,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:27,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:28,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:29,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:30,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:31,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:32,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:33,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:34,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:35,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:36,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:37,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:38,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:39,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:40,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:41,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:42,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:43,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:44,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:45,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:46,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:47,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:48,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"}]}})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:list},Symbol.toStringTag,{value:"Module"})),login=[{url:"/login",method:"post",response:({body:o})=>o.username==="admin"?{success:!0,data:{username:"admin",roles:["admin"],accessToken:"eyJhbGciOiJIUzUxMiJ9.admin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.adminRefresh",expires:"2023/10/30 00:00:00"}}:{success:!0,data:{username:"common",roles:["common"],accessToken:"eyJhbGciOiJIUzUxMiJ9.common",refreshToken:"eyJhbGciOiJIUzUxMiJ9.commonRefresh",expires:"2023/10/30 00:00:00"}}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:login},Symbol.toStringTag,{value:"Module"})),mapList=()=>{const o=[];for(let t=0;t<200;t++)o.push({plateNumber:"豫A@natural(11111, 99999)@character('upper')",driver:"@cname()","orientation|1-360":100,"lng|113-114.1-10":1,"lat|34-35.1-10":1});return o},map=[{url:"/getMapInfo",method:"get",response:()=>({success:!0,data:mapList()})}],__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:map},Symbol.toStringTag,{value:"Module"})),refreshToken=[{url:"/refreshToken",method:"post",response:({body:o})=>o.refreshToken?{success:!0,data:{accessToken:"eyJhbGciOiJIUzUxMiJ9.newAdmin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.newAdminRefresh",expires:"2023/10/30 23:59:59"}}:{success:!1,data:{}}}],__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:refreshToken},Symbol.toStringTag,{value:"Module"})),system=[{url:"/role",method:"post",response:()=>({success:!0,data:{list:[{createTime:1609837428e3,updateTime:1645477701e3,creator:"admin",updater:"",deleted:!1,tenantId:1,id:1,name:"超级管理员",code:"super_admin",sort:1,status:0,type:1,remark:"超级管理员",dataScope:1,dataScopeDeptIds:null},{createTime:1609837428e3,updateTime:16454777e5,creator:"admin",updater:"",deleted:!1,tenantId:1,id:2,name:"普通角色",code:"common",sort:2,status:0,type:1,remark:"普通角色",dataScope:2,dataScopeDeptIds:null},{createTime:1609912175e3,updateTime:1647698441e3,creator:"",updater:"1",deleted:!1,tenantId:1,id:101,name:"测试账号",code:"test",sort:0,status:0,type:2,remark:"132",dataScope:1,dataScopeDeptIds:[]}],total:3}})},{url:"/dept",method:"post",response:()=>({success:!0,data:[{name:"杭州总公司",type:1,parentId:0,sort:0,leaderUserId:1,phone:"15888888888",email:"ry@qq.com",status:0,id:100,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"郑州分公司",type:2,parentId:100,sort:1,leaderUserId:104,phone:"15888888888",email:"ry@qq.com",status:0,id:101,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"研发部门",type:3,parentId:101,sort:1,leaderUserId:104,phone:"15888888888",email:"ry@qq.com",status:0,id:103,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"市场部门",type:3,parentId:102,sort:1,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:0,id:108,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"深圳分公司",type:2,parentId:100,sort:2,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:0,id:102,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"市场部门",type:3,parentId:101,sort:2,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:1,id:104,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"财务部门",type:3,parentId:102,sort:2,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:0,id:109,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"测试部门",type:3,parentId:101,sort:3,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:0,id:105,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"财务部门",type:3,parentId:101,sort:4,leaderUserId:103,phone:"15888888888",email:"ry@qq.com",status:1,id:106,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"},{name:"运维部门",type:3,parentId:101,sort:5,leaderUserId:null,phone:"15888888888",email:"ry@qq.com",status:0,id:107,createTime:1609837427e3,remark:"备注、备注、备注、备注、备注、备注、备注"}]})},{url:"/user",method:"post",response:()=>({success:!0,data:{list:[{username:"admin",nickname:"admin",remark:"管理员",deptId:103,postIds:[1],mobile:"15888888888",sex:0,id:1,status:0,createTime:1609837427e3,dept:{id:103,name:"研发部门"}},{username:"pure",nickname:"pure",remark:"不要吓我",deptId:104,postIds:[1],mobile:"15888888888",sex:0,id:100,status:1,createTime:1609981637e3,dept:{id:104,name:"市场部门"}},{username:"小姐姐",nickname:"girl",remark:null,deptId:106,postIds:null,mobile:"15888888888",sex:1,id:103,status:1,createTime:1610553035e3,dept:{id:106,name:"财务部门"}},{username:"小哥哥",nickname:"boy",remark:null,deptId:107,postIds:[],mobile:"15888888888",sex:0,id:104,status:0,createTime:1611166433e3,dept:{id:107,name:"运维部门"}}],total:4}})}],__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:system},Symbol.toStringTag,{value:"Module"}));var mockExports={},mock={get exports(){return mockExports},set exports(o){mockExports=o}};(function(module,exports){(function(t,r){module.exports=r()})(commonjsGlobal,function(){return function(o){var t={};function r(s){if(t[s])return t[s].exports;var l=t[s]={exports:{},id:s,loaded:!1};return o[s].call(l.exports,l,l.exports,r),l.loaded=!0,l.exports}return r.m=o,r.c=t,r.p="",r(0)}([function(o,t,r){var s=r(1),l=r(3),h=r(5),v=r(20),S=r(23),x=r(25),T;typeof window<"u"&&(T=r(27));/*!
|
||
Mock - 模拟请求 & 模拟数据
|
||
https://github.com/nuysoft/Mock
|
||
墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
|
||
*/var C={Handler:s,Random:h,Util:l,XHR:T,RE:v,toJSONSchema:S,valid:x,heredoc:l.heredoc,setup:function(M){return T.setup(M)},_mocked:{}};C.version="1.0.1-beta3",T&&(T.Mock=C),C.mock=function(M,w,D){return arguments.length===1?s.gen(M):(arguments.length===2&&(D=w,w=void 0),T&&(window.XMLHttpRequest=T),C._mocked[M+(w||"")]={rurl:M,rtype:w,template:D},C)},o.exports=C},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(o,t,r){t=t==null?"":t+"",r=r||{},r={path:r.path||[Constant.GUID],templatePath:r.templatePath||[Constant.GUID++],currentContext:r.currentContext,templateCurrentContext:r.templateCurrentContext||o,root:r.root||r.currentContext,templateRoot:r.templateRoot||r.templateCurrentContext||o};var s=Parser.parse(t),l=Util.type(o),h;return Handler[l]?(h=Handler[l]({type:l,template:o,name:t,parsedName:t&&t.replace(Constant.RE_KEY,"$1"),rule:s,context:r}),r.root||(r.root=h),h):o},Handler.extend({array:function(o){var t=[],r,s;if(o.template.length===0)return t;if(o.rule.parameters)if(o.rule.min===1&&o.rule.max===void 0)o.context.path.push(o.name),o.context.templatePath.push(o.name),t=Random.pick(Handler.gen(o.template,void 0,{path:o.context.path,templatePath:o.context.templatePath,currentContext:t,templateCurrentContext:o.template,root:o.context.root||t,templateRoot:o.context.templateRoot||o.template})),o.context.path.pop(),o.context.templatePath.pop();else if(o.rule.parameters[2])o.template.__order_index=o.template.__order_index||0,o.context.path.push(o.name),o.context.templatePath.push(o.name),t=Handler.gen(o.template,void 0,{path:o.context.path,templatePath:o.context.templatePath,currentContext:t,templateCurrentContext:o.template,root:o.context.root||t,templateRoot:o.context.templateRoot||o.template})[o.template.__order_index%o.template.length],o.template.__order_index+=+o.rule.parameters[2],o.context.path.pop(),o.context.templatePath.pop();else for(r=0;r<o.rule.count;r++)for(s=0;s<o.template.length;s++)o.context.path.push(t.length),o.context.templatePath.push(s),t.push(Handler.gen(o.template[s],t.length,{path:o.context.path,templatePath:o.context.templatePath,currentContext:t,templateCurrentContext:o.template,root:o.context.root||t,templateRoot:o.context.templateRoot||o.template})),o.context.path.pop(),o.context.templatePath.pop();else for(r=0;r<o.template.length;r++)o.context.path.push(r),o.context.templatePath.push(r),t.push(Handler.gen(o.template[r],r,{path:o.context.path,templatePath:o.context.templatePath,currentContext:t,templateCurrentContext:o.template,root:o.context.root||t,templateRoot:o.context.templateRoot||o.template})),o.context.path.pop(),o.context.templatePath.pop();return t},object:function(o){var t={},r,s,l,h,v,S;if(o.rule.min!=null)for(r=Util.keys(o.template),r=Random.shuffle(r),r=r.slice(0,o.rule.count),S=0;S<r.length;S++)l=r[S],h=l.replace(Constant.RE_KEY,"$1"),o.context.path.push(h),o.context.templatePath.push(l),t[h]=Handler.gen(o.template[l],l,{path:o.context.path,templatePath:o.context.templatePath,currentContext:t,templateCurrentContext:o.template,root:o.context.root||t,templateRoot:o.context.templateRoot||o.template}),o.context.path.pop(),o.context.templatePath.pop();else{r=[],s=[];for(l in o.template)(typeof o.template[l]=="function"?s:r).push(l);for(r=r.concat(s),S=0;S<r.length;S++)l=r[S],h=l.replace(Constant.RE_KEY,"$1"),o.context.path.push(h),o.context.templatePath.push(l),t[h]=Handler.gen(o.template[l],l,{path:o.context.path,templatePath:o.context.templatePath,currentContext:t,templateCurrentContext:o.template,root:o.context.root||t,templateRoot:o.context.templateRoot||o.template}),o.context.path.pop(),o.context.templatePath.pop(),v=l.match(Constant.RE_KEY),v&&v[2]&&Util.type(o.template[l])==="number"&&(o.template[l]+=parseInt(v[2],10))}return t},number:function(o){var t,r;if(o.rule.decimal){for(o.template+="",r=o.template.split("."),r[0]=o.rule.range?o.rule.count:r[0],r[1]=(r[1]||"").slice(0,o.rule.dcount);r[1].length<o.rule.dcount;)r[1]+=r[1].length<o.rule.dcount-1?Random.character("number"):Random.character("123456789");t=parseFloat(r.join("."),10)}else t=o.rule.range&&!o.rule.parameters[2]?o.rule.count:o.template;return t},boolean:function(o){var t;return t=o.rule.parameters?Random.bool(o.rule.min,o.rule.max,o.template):o.template,t},string:function(o){var t="",r,s,l,h;if(o.template.length){for(o.rule.count==null&&(t+=o.template),r=0;r<o.rule.count;r++)t+=o.template;for(s=t.match(Constant.RE_PLACEHOLDER)||[],r=0;r<s.length;r++){if(l=s[r],/^\\/.test(l)){s.splice(r--,1);continue}if(h=Handler.placeholder(l,o.context.currentContext,o.context.templateCurrentContext,o),s.length===1&&l===t&&typeof h!=typeof t){t=h;break}t=t.replace(l,h)}}else t=o.rule.range?Random.string(o.rule.count):o.template;return t},function:function(o){return o.template.call(o.context.currentContext,o)},regexp:function(o){var t="";o.rule.count==null&&(t+=o.template.source);for(var r=0;r<o.rule.count;r++)t+=o.template.source;return RE.Handler.gen(RE.Parser.parse(t))}}),Handler.extend({_all:function(){var o={};for(var t in Random)o[t.toLowerCase()]=t;return o},placeholder:function(placeholder,obj,templateContext,options){Constant.RE_PLACEHOLDER.exec("");var parts=Constant.RE_PLACEHOLDER.exec(placeholder),key=parts&&parts[1],lkey=key&&key.toLowerCase(),okey=this._all()[lkey],params=parts&&parts[2]||"",pathParts=this.splitPathToArray(key);try{params=eval("(function(){ return [].splice.call(arguments, 0 ) })("+params+")")}catch(o){params=parts[2].split(/,\s*/)}if(obj&&key in obj)return obj[key];if(key.charAt(0)==="/"||pathParts.length>1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i<params.length;i++)Constant.RE_PLACEHOLDER.exec(""),Constant.RE_PLACEHOLDER.test(params[i])&&(params[i]=Handler.placeholder(params[i],obj,templateContext,options));var handle=Random[key]||Random[lkey]||Random[okey];switch(Util.type(handle)){case"array":return Random.pick(handle);case"function":handle.options=options;var re=handle.apply(Random,params);return re===void 0&&(re=""),delete handle.options,re}},getValueByKeyPath:function(o,t){var r=o,s=this.splitPathToArray(o),l=[];o.charAt(0)==="/"?l=[t.context.path[0]].concat(this.normalizePath(s)):s.length>1&&(l=t.context.path.slice(0),l.pop(),l=this.normalizePath(l.concat(s)));try{o=s[s.length-1];for(var h=t.context.root,v=t.context.templateRoot,S=1;S<l.length-1;S++)h=h[l[S]],v=v[l[S]];if(h&&o in h)return h[o];if(v&&typeof v=="object"&&o in v&&r!==v[o])return v[o]=Handler.gen(v[o],o,{currentContext:h,templateCurrentContext:v}),v[o]}catch{}return"@"+s.join("/")},normalizePath:function(o){for(var t=[],r=0;r<o.length;r++)switch(o[r]){case"..":t.pop();break;case".":break;default:t.push(o[r])}return t},splitPathToArray:function(o){var t=o.split(/\/+/);return t[t.length-1]||(t=t.slice(0,-1)),t[0]||(t=t.slice(1)),t}}),module.exports=Handler},function(o,t){o.exports={GUID:1,RE_KEY:/(.+)\|(?:\+(\d+)|([\+\-]?\d+-?[\+\-]?\d*)?(?:\.(\d+-?\d*))?)/,RE_RANGE:/([\+\-]?\d+)-?([\+\-]?\d+)?/,RE_PLACEHOLDER:/\\*@([^@#%&()\?\s]+)(?:\((.*?)\))?/g}},function(o,t){var r={};r.extend=function(){var l=arguments[0]||{},h=1,v=arguments.length,S,x,T,C,M;for(v===1&&(l=this,h=0);h<v;h++)if(S=arguments[h],!!S)for(x in S)T=l[x],C=S[x],l!==C&&C!==void 0&&(r.isArray(C)||r.isObject(C)?(r.isArray(C)&&(M=T&&r.isArray(T)?T:[]),r.isObject(C)&&(M=T&&r.isObject(T)?T:{}),l[x]=r.extend(M,C)):l[x]=C);return l},r.each=function(l,h,v){var S,x;if(this.type(l)==="number")for(S=0;S<l;S++)h(S,S);else if(l.length===+l.length)for(S=0;S<l.length&&h.call(v,l[S],S,l)!==!1;S++);else for(x in l)if(h.call(v,l[x],x,l)===!1)break},r.type=function(l){return l==null?String(l):Object.prototype.toString.call(l).match(/\[object (\w+)\]/)[1].toLowerCase()},r.each("String Object Array RegExp Function".split(" "),function(s){r["is"+s]=function(l){return r.type(l)===s.toLowerCase()}}),r.isObjectOrArray=function(s){return r.isObject(s)||r.isArray(s)},r.isNumeric=function(s){return!isNaN(parseFloat(s))&&isFinite(s)},r.keys=function(s){var l=[];for(var h in s)s.hasOwnProperty(h)&&l.push(h);return l},r.values=function(s){var l=[];for(var h in s)s.hasOwnProperty(h)&&l.push(s[h]);return l},r.heredoc=function(l){return l.toString().replace(/^[^\/]+\/\*!?/,"").replace(/\*\/[^\/]+$/,"").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")},r.noop=function(){},o.exports=r},function(o,t,r){var s=r(2),l=r(5);o.exports={parse:function(h){h=h==null?"":h+"";var v=(h||"").match(s.RE_KEY),S=v&&v[3]&&v[3].match(s.RE_RANGE),x=S&&S[1]&&parseInt(S[1],10),T=S&&S[2]&&parseInt(S[2],10),C=S?S[2]?l.integer(x,T):parseInt(S[1],10):void 0,M=v&&v[4]&&v[4].match(s.RE_RANGE),w=M&&M[1]&&parseInt(M[1],10),D=M&&M[2]&&parseInt(M[2],10),O=M?!M[2]&&parseInt(M[1],10)||l.integer(w,D):void 0,N={parameters:v,range:S,min:x,max:T,count:C,decimal:M,dmin:w,dmax:D,dcount:O};for(var k in N)if(N[k]!=null)return N;return{}}}},function(o,t,r){var s=r(3),l={extend:s.extend};l.extend(r(6)),l.extend(r(7)),l.extend(r(8)),l.extend(r(10)),l.extend(r(13)),l.extend(r(15)),l.extend(r(16)),l.extend(r(17)),l.extend(r(14)),l.extend(r(19)),o.exports=l},function(o,t){o.exports={boolean:function(r,s,l){return l!==void 0?(r=typeof r<"u"&&!isNaN(r)?parseInt(r,10):1,s=typeof s<"u"&&!isNaN(s)?parseInt(s,10):1,Math.random()>1/(r+s)*r?!l:l):Math.random()>=.5},bool:function(r,s,l){return this.boolean(r,s,l)},natural:function(r,s){return r=typeof r<"u"?parseInt(r,10):0,s=typeof s<"u"?parseInt(s,10):9007199254740992,Math.round(Math.random()*(s-r))+r},integer:function(r,s){return r=typeof r<"u"?parseInt(r,10):-9007199254740992,s=typeof s<"u"?parseInt(s,10):9007199254740992,Math.round(Math.random()*(s-r))+r},int:function(r,s){return this.integer(r,s)},float:function(r,s,l,h){l=l===void 0?0:l,l=Math.max(Math.min(l,17),0),h=h===void 0?17:h,h=Math.max(Math.min(h,17),0);for(var v=this.integer(r,s)+".",S=0,x=this.natural(l,h);S<x;S++)v+=S<x-1?this.character("number"):this.character("123456789");return parseFloat(v,10)},character:function(r){var s={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",symbol:"!@#$%^&*()[]"};return s.alpha=s.lower+s.upper,s.undefined=s.lower+s.upper+s.number+s.symbol,r=s[(""+r).toLowerCase()]||r,r.charAt(this.natural(0,r.length-1))},char:function(r){return this.character(r)},string:function(r,s,l){var h;switch(arguments.length){case 0:h=this.natural(3,7);break;case 1:h=r,r=void 0;break;case 2:typeof arguments[0]=="string"?h=s:(h=this.natural(r,s),r=void 0);break;case 3:h=this.natural(s,l);break}for(var v="",S=0;S<h;S++)v+=this.character(r);return v},str:function(){return this.string.apply(this,arguments)},range:function(r,s,l){arguments.length<=1&&(s=r||0,r=0),l=arguments[2]||1,r=+r,s=+s,l=+l;for(var h=Math.max(Math.ceil((s-r)/l),0),v=0,S=new Array(h);v<h;)S[v++]=r,r+=l;return S}}},function(o,t){var r={yyyy:"getFullYear",yy:function(s){return(""+s.getFullYear()).slice(2)},y:"yy",MM:function(s){var l=s.getMonth()+1;return l<10?"0"+l:l},M:function(s){return s.getMonth()+1},dd:function(s){var l=s.getDate();return l<10?"0"+l:l},d:"getDate",HH:function(s){var l=s.getHours();return l<10?"0"+l:l},H:"getHours",hh:function(s){var l=s.getHours()%12;return l<10?"0"+l:l},h:function(s){return s.getHours()%12},mm:function(s){var l=s.getMinutes();return l<10?"0"+l:l},m:"getMinutes",ss:function(s){var l=s.getSeconds();return l<10?"0"+l:l},s:"getSeconds",SS:function(s){var l=s.getMilliseconds();return l<10&&"00"+l||l<100&&"0"+l||l},S:"getMilliseconds",A:function(s){return s.getHours()<12?"AM":"PM"},a:function(s){return s.getHours()<12?"am":"pm"},T:"getTime"};o.exports={_patternLetters:r,_rformat:new RegExp(function(){var s=[];for(var l in r)s.push(l);return"("+s.join("|")+")"}(),"g"),_formatDate:function(s,l){return l.replace(this._rformat,function h(v,S){return typeof r[S]=="function"?r[S](s):r[S]in r?h(v,r[S]):s[r[S]]()})},_randomDate:function(s,l){return s=s===void 0?new Date(0):s,l=l===void 0?new Date:l,new Date(Math.random()*(l.getTime()-s.getTime()))},date:function(s){return s=s||"yyyy-MM-dd",this._formatDate(this._randomDate(),s)},time:function(s){return s=s||"HH:mm:ss",this._formatDate(this._randomDate(),s)},datetime:function(s){return s=s||"yyyy-MM-dd HH:mm:ss",this._formatDate(this._randomDate(),s)},now:function(s,l){arguments.length===1&&(/year|month|day|hour|minute|second|week/.test(s)||(l=s,s="")),s=(s||"").toLowerCase(),l=l||"yyyy-MM-dd HH:mm:ss";var h=new Date;switch(s){case"year":h.setMonth(0);case"month":h.setDate(1);case"week":case"day":h.setHours(0);case"hour":h.setMinutes(0);case"minute":h.setSeconds(0);case"second":h.setMilliseconds(0)}switch(s){case"week":h.setDate(h.getDate()-h.getDay())}return this._formatDate(h,l)}}},function(o,t,r){(function(s){s.exports={_adSize:["300x250","250x250","240x400","336x280","180x150","720x300","468x60","234x60","88x31","120x90","120x60","120x240","125x125","728x90","160x600","120x600","300x600"],_screenSize:["320x200","320x240","640x480","800x480","800x480","1024x600","1024x768","1280x800","1440x900","1920x1200","2560x1600"],_videoSize:["720x480","768x576","1280x720","1920x1080"],image:function(l,h,v,S,x){return arguments.length===4&&(x=S,S=void 0),arguments.length===3&&(x=v,v=void 0),l||(l=this.pick(this._adSize)),h&&~h.indexOf("#")&&(h=h.slice(1)),v&&~v.indexOf("#")&&(v=v.slice(1)),"http://dummyimage.com/"+l+(h?"/"+h:"")+(v?"/"+v:"")+(S?"."+S:"")+(x?"&text="+x:"")},img:function(){return this.image.apply(this,arguments)},_brandColors:{"4ormat":"#fb0a2a","500px":"#02adea","About.me (blue)":"#00405d","About.me (yellow)":"#ffcc33",Addvocate:"#ff6138",Adobe:"#ff0000",Aim:"#fcd20b",Amazon:"#e47911",Android:"#a4c639","Angie's List":"#7fbb00",AOL:"#0060a3",Atlassian:"#003366",Behance:"#053eff","Big Cartel":"#97b538",bitly:"#ee6123",Blogger:"#fc4f08",Boeing:"#0039a6","Booking.com":"#003580",Carbonmade:"#613854",Cheddar:"#ff7243","Code School":"#3d4944",Delicious:"#205cc0",Dell:"#3287c1",Designmoo:"#e54a4f",Deviantart:"#4e6252","Designer News":"#2d72da",Devour:"#fd0001",DEWALT:"#febd17","Disqus (blue)":"#59a3fc","Disqus (orange)":"#db7132",Dribbble:"#ea4c89",Dropbox:"#3d9ae8",Drupal:"#0c76ab",Dunked:"#2a323a",eBay:"#89c507",Ember:"#f05e1b",Engadget:"#00bdf6",Envato:"#528036",Etsy:"#eb6d20",Evernote:"#5ba525","Fab.com":"#dd0017",Facebook:"#3b5998",Firefox:"#e66000","Flickr (blue)":"#0063dc","Flickr (pink)":"#ff0084",Forrst:"#5b9a68",Foursquare:"#25a0ca",Garmin:"#007cc3",GetGlue:"#2d75a2",Gimmebar:"#f70078",GitHub:"#171515","Google Blue":"#0140ca","Google Green":"#16a61e","Google Red":"#dd1812","Google Yellow":"#fcca03","Google+":"#dd4b39",Grooveshark:"#f77f00",Groupon:"#82b548","Hacker News":"#ff6600",HelloWallet:"#0085ca","Heroku (light)":"#c7c5e6","Heroku (dark)":"#6567a5",HootSuite:"#003366",Houzz:"#73ba37",HTML5:"#ec6231",IKEA:"#ffcc33",IMDb:"#f3ce13",Instagram:"#3f729b",Intel:"#0071c5",Intuit:"#365ebf",Kickstarter:"#76cc1e",kippt:"#e03500",Kodery:"#00af81",LastFM:"#c3000d",LinkedIn:"#0e76a8",Livestream:"#cf0005",Lumo:"#576396",Mixpanel:"#a086d3",Meetup:"#e51937",Nokia:"#183693",NVIDIA:"#76b900",Opera:"#cc0f16",Path:"#e41f11","PayPal (dark)":"#1e477a","PayPal (light)":"#3b7bbf",Pinboard:"#0000e6",Pinterest:"#c8232c",PlayStation:"#665cbe",Pocket:"#ee4056",Prezi:"#318bff",Pusha:"#0f71b4",Quora:"#a82400","QUOTE.fm":"#66ceff",Rdio:"#008fd5",Readability:"#9c0000","Red Hat":"#cc0000",Resource:"#7eb400",Rockpack:"#0ba6ab",Roon:"#62b0d9",RSS:"#ee802f",Salesforce:"#1798c1",Samsung:"#0c4da2",Shopify:"#96bf48",Skype:"#00aff0",Snagajob:"#f47a20",Softonic:"#008ace",SoundCloud:"#ff7700","Space Box":"#f86960",Spotify:"#81b71a",Sprint:"#fee100",Squarespace:"#121212",StackOverflow:"#ef8236",Staples:"#cc0000","Status Chart":"#d7584f",Stripe:"#008cdd",StudyBlue:"#00afe1",StumbleUpon:"#f74425","T-Mobile":"#ea0a8e",Technorati:"#40a800","The Next Web":"#ef4423",Treehouse:"#5cb868",Trulia:"#5eab1f",Tumblr:"#34526f","Twitch.tv":"#6441a5",Twitter:"#00acee",TYPO3:"#ff8700",Ubuntu:"#dd4814",Ustream:"#3388ff",Verizon:"#ef1d1d",Vimeo:"#86c9ef",Vine:"#00a478",Virb:"#06afd8","Virgin Media":"#cc0000",Wooga:"#5b009c","WordPress (blue)":"#21759b","WordPress (orange)":"#d54e21","WordPress (grey)":"#464646",Wunderlist:"#2b88d9",XBOX:"#9bc848",XING:"#126567","Yahoo!":"#720e9e",Yandex:"#ffcc00",Yelp:"#c41200",YouTube:"#c4302b",Zalongo:"#5498dc",Zendesk:"#78a300",Zerply:"#9dcc7a",Zootool:"#5e8b1d"},_brandNames:function(){var l=[];for(var h in this._brandColors)l.push(h);return l},dataImage:function(l,h){var v;if(typeof document<"u")v=document.createElement("canvas");else{var S=s.require("canvas");v=new S}var x=v&&v.getContext&&v.getContext("2d");if(!v||!x)return"";l||(l=this.pick(this._adSize)),h=h!==void 0?h:l,l=l.split("x");var T=parseInt(l[0],10),C=parseInt(l[1],10),M=this._brandColors[this.pick(this._brandNames())],w="#FFF",D=14,O="sans-serif";return v.width=T,v.height=C,x.textAlign="center",x.textBaseline="middle",x.fillStyle=M,x.fillRect(0,0,T,C),x.fillStyle=w,x.font="bold "+D+"px "+O,x.fillText(h,T/2,C/2,T),v.toDataURL("image/png")}}}).call(t,r(9)(o))},function(o,t){o.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children=[],r.webpackPolyfill=1),r}},function(o,t,r){var s=r(11),l=r(12);o.exports={color:function(h){return h||l[h]?l[h].nicer:this.hex()},hex:function(){var h=this._goldenRatioColor(),v=s.hsv2rgb(h),S=s.rgb2hex(v[0],v[1],v[2]);return S},rgb:function(){var h=this._goldenRatioColor(),v=s.hsv2rgb(h);return"rgb("+parseInt(v[0],10)+", "+parseInt(v[1],10)+", "+parseInt(v[2],10)+")"},rgba:function(){var h=this._goldenRatioColor(),v=s.hsv2rgb(h);return"rgba("+parseInt(v[0],10)+", "+parseInt(v[1],10)+", "+parseInt(v[2],10)+", "+Math.random().toFixed(2)+")"},hsl:function(){var h=this._goldenRatioColor(),v=s.hsv2hsl(h);return"hsl("+parseInt(v[0],10)+", "+parseInt(v[1],10)+", "+parseInt(v[2],10)+")"},_goldenRatioColor:function(h,v){return this._goldenRatio=.618033988749895,this._hue=this._hue||Math.random(),this._hue+=this._goldenRatio,this._hue%=1,typeof h!="number"&&(h=.5),typeof v!="number"&&(v=.95),[this._hue*360,h*100,v*100]}}},function(o,t){o.exports={rgb2hsl:function(s){var l=s[0]/255,h=s[1]/255,v=s[2]/255,S=Math.min(l,h,v),x=Math.max(l,h,v),T=x-S,C,M,w;return x==S?C=0:l==x?C=(h-v)/T:h==x?C=2+(v-l)/T:v==x&&(C=4+(l-h)/T),C=Math.min(C*60,360),C<0&&(C+=360),w=(S+x)/2,x==S?M=0:w<=.5?M=T/(x+S):M=T/(2-x-S),[C,M*100,w*100]},rgb2hsv:function(s){var l=s[0],h=s[1],v=s[2],S=Math.min(l,h,v),x=Math.max(l,h,v),T=x-S,C,M,w;return x===0?M=0:M=T/x*1e3/10,x==S?C=0:l==x?C=(h-v)/T:h==x?C=2+(v-l)/T:v==x&&(C=4+(l-h)/T),C=Math.min(C*60,360),C<0&&(C+=360),w=x/255*1e3/10,[C,M,w]},hsl2rgb:function(s){var l=s[0]/360,h=s[1]/100,v=s[2]/100,S,x,T,C,M;if(h===0)return M=v*255,[M,M,M];v<.5?x=v*(1+h):x=v+h-v*h,S=2*v-x,C=[0,0,0];for(var w=0;w<3;w++)T=l+1/3*-(w-1),T<0&&T++,T>1&&T--,6*T<1?M=S+(x-S)*6*T:2*T<1?M=x:3*T<2?M=S+(x-S)*(2/3-T)*6:M=S,C[w]=M*255;return C},hsl2hsv:function(s){var l=s[0],h=s[1]/100,v=s[2]/100,S,x;return v*=2,h*=v<=1?v:2-v,x=(v+h)/2,S=2*h/(v+h),[l,S*100,x*100]},hsv2rgb:function(s){var l=s[0]/60,h=s[1]/100,v=s[2]/100,S=Math.floor(l)%6,x=l-Math.floor(l),T=255*v*(1-h),C=255*v*(1-h*x),M=255*v*(1-h*(1-x));switch(v=255*v,S){case 0:return[v,M,T];case 1:return[C,v,T];case 2:return[T,v,M];case 3:return[T,C,v];case 4:return[M,T,v];case 5:return[v,T,C]}},hsv2hsl:function(s){var l=s[0],h=s[1]/100,v=s[2]/100,S,x;return x=(2-h)*v,S=h*v,S/=x<=1?x:2-x,x/=2,[l,S*100,x*100]},rgb2hex:function(r,s,l){return"#"+((256+r<<8|s)<<8|l).toString(16).slice(1)},hex2rgb:function(r){return r="0x"+r.slice(1).replace(r.length>4?r:/./g,"$&$&")|0,[r>>16,r>>8&255,r&255]}}},function(o,t){o.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(o,t,r){var s=r(6),l=r(14);function h(v,S,x,T){return x===void 0?s.natural(v,S):T===void 0?x:s.natural(parseInt(x,10),parseInt(T,10))}o.exports={paragraph:function(v,S){for(var x=h(3,7,v,S),T=[],C=0;C<x;C++)T.push(this.sentence());return T.join(" ")},cparagraph:function(v,S){for(var x=h(3,7,v,S),T=[],C=0;C<x;C++)T.push(this.csentence());return T.join("")},sentence:function(v,S){for(var x=h(12,18,v,S),T=[],C=0;C<x;C++)T.push(this.word());return l.capitalize(T.join(" "))+"."},csentence:function(v,S){for(var x=h(12,18,v,S),T=[],C=0;C<x;C++)T.push(this.cword());return T.join("")+"。"},word:function(v,S){for(var x=h(3,10,v,S),T="",C=0;C<x;C++)T+=s.character("lower");return T},cword:function(v,S,x){var T="的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞",C;switch(arguments.length){case 0:v=T,C=1;break;case 1:typeof arguments[0]=="string"?C=1:(C=v,v=T);break;case 2:typeof arguments[0]=="string"?C=S:(C=this.natural(v,S),v=T);break;case 3:C=this.natural(S,x);break}for(var M="",w=0;w<C;w++)M+=v.charAt(this.natural(0,v.length-1));return M},title:function(v,S){for(var x=h(3,7,v,S),T=[],C=0;C<x;C++)T.push(this.capitalize(this.word()));return T.join(" ")},ctitle:function(v,S){for(var x=h(3,7,v,S),T=[],C=0;C<x;C++)T.push(this.cword());return T.join("")}}},function(o,t,r){var s=r(3);o.exports={capitalize:function(l){return(l+"").charAt(0).toUpperCase()+(l+"").substr(1)},upper:function(l){return(l+"").toUpperCase()},lower:function(l){return(l+"").toLowerCase()},pick:function(h,v,S){return s.isArray(h)?(v===void 0&&(v=1),S===void 0&&(S=v)):(h=[].slice.call(arguments),v=1,S=1),v===1&&S===1?h[this.natural(0,h.length-1)]:this.shuffle(h,v,S)},shuffle:function(h,v,S){h=h||[];for(var x=h.slice(0),T=[],C=0,M=x.length,w=0;w<M;w++)C=this.natural(0,x.length-1),T.push(x[C]),x.splice(C,1);switch(arguments.length){case 0:case 1:return T;case 2:S=v;case 3:return v=parseInt(v,10),S=parseInt(S,10),T.slice(0,this.natural(v,S))}},order:function l(h){l.cache=l.cache||{},arguments.length>1&&(h=[].slice.call(arguments,0));var v=l.options,S=v.context.templatePath.join("."),x=l.cache[S]=l.cache[S]||{index:0,array:h};return x.array[x.index++%x.array.length]}}},function(o,t){o.exports={first:function(){var r=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(r)},last:function(){var r=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(r)},name:function(r){return this.first()+" "+(r?this.first()+" ":"")+this.last()},cfirst:function(){var r="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(r)},clast:function(){var r="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(r)},cname:function(){return this.cfirst()+this.clast()}}},function(o,t){o.exports={url:function(r,s){return(r||this.protocol())+"://"+(s||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(r){return this.word()+"."+(r||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(r){return this.character("lower")+"."+this.word()+"@"+(r||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(o,t,r){var s=r(18),l=["东北","华北","华东","华中","华南","西南","西北"];o.exports={region:function(){return this.pick(l)},province:function(){return this.pick(s).name},city:function(h){var v=this.pick(s),S=this.pick(v.children);return h?[v.name,S.name].join(" "):S.name},county:function(h){var v=this.pick(s),S=this.pick(v.children),x=this.pick(S.children)||{name:"-"};return h?[v.name,S.name,x.name].join(" "):x.name},zip:function(h){for(var v="",S=0;S<(h||6);S++)v+=this.natural(0,9);return v}}},function(o,t){var r={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function s(h){for(var v={},S=0,x;S<h.length;S++)x=h[S],!(!x||!x.id)&&(v[x.id]=x);for(var T=[],C=0;C<h.length;C++)if(x=h[C],!!x){if(x.pid==null&&x.parentId==null){T.push(x);continue}var M=v[x.pid]||v[x.parentId];M&&(M.children||(M.children=[]),M.children.push(x))}return T}var l=function(){var h=[];for(var v in r){var S=v.slice(2,6)==="0000"?void 0:v.slice(4,6)=="00"?v.slice(0,2)+"0000":v.slice(0,4)+"00";h.push({id:v,pid:S,name:r[v]})}return s(h)}();o.exports=l},function(o,t,r){var s=r(18);o.exports={d4:function(){return this.natural(1,4)},d6:function(){return this.natural(1,6)},d8:function(){return this.natural(1,8)},d12:function(){return this.natural(1,12)},d20:function(){return this.natural(1,20)},d100:function(){return this.natural(1,100)},guid:function(){var l="abcdefABCDEF1234567890",h=this.string(l,8)+"-"+this.string(l,4)+"-"+this.string(l,4)+"-"+this.string(l,4)+"-"+this.string(l,12);return h},uuid:function(){return this.guid()},id:function(){var l,h=0,v=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],S=["1","0","X","9","8","7","6","5","4","3","2"];l=this.pick(s).id+this.date("yyyyMMdd")+this.string("number",3);for(var x=0;x<l.length;x++)h+=l[x]*v[x];return l+=S[h%11],l},increment:function(){var l=0;return function(h){return l+=+h||1}}(),inc:function(l){return this.increment(l)}}},function(o,t,r){var s=r(21),l=r(22);o.exports={Parser:s,Handler:l}},function(o,t){function r(z){this.type=z,this.offset=r.offset(),this.text=r.text()}function s(z,U){r.call(this,"alternate"),this.left=z,this.right=U}function l(z){r.call(this,"match"),this.body=z.filter(Boolean)}function h(z,U){r.call(this,z),this.body=U}function v(z){h.call(this,"capture-group"),this.index=V[this.offset]||(V[this.offset]=B++),this.body=z}function S(z,U){r.call(this,"quantified"),this.body=z,this.quantifier=U}function x(z,U){r.call(this,"quantifier"),this.min=z,this.max=U,this.greedy=!0}function T(z,U){r.call(this,"charset"),this.invert=z,this.body=U}function C(z,U){r.call(this,"range"),this.start=z,this.end=U}function M(z){r.call(this,"literal"),this.body=z,this.escaped=this.body!=this.text}function w(z){r.call(this,"unicode"),this.code=z.toUpperCase()}function D(z){r.call(this,"hex"),this.code=z.toUpperCase()}function O(z){r.call(this,"octal"),this.code=z.toUpperCase()}function N(z){r.call(this,"back-reference"),this.code=z.toUpperCase()}function k(z){r.call(this,"control-character"),this.code=z.toUpperCase()}var F=function(){function z(W,X){function K(){this.constructor=W}K.prototype=X.prototype,W.prototype=new K}function U(W,X,K,J,q){function ee(te,ne){function ae(se){function le(ye){return ye.charCodeAt(0).toString(16).toUpperCase()}return se.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(ye){return"\\x0"+le(ye)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(ye){return"\\x"+le(ye)}).replace(/[\u0180-\u0FFF]/g,function(ye){return"\\u0"+le(ye)}).replace(/[\u1080-\uFFFF]/g,function(ye){return"\\u"+le(ye)})}var oe,Se;switch(te.length){case 0:oe="end of input";break;case 1:oe=te[0];break;default:oe=te.slice(0,-1).join(", ")+" or "+te[te.length-1]}return Se=ne?'"'+ae(ne)+'"':"end of input","Expected "+oe+" but "+Se+" found."}this.expected=W,this.found=X,this.offset=K,this.line=J,this.column=q,this.name="SyntaxError",this.message=ee(W,X)}function Y(W){function X(){return W.substring(Ae,Q)}function K(){return Ae}function J(G){function Z(ie,_e,Re){var qe,it;for(qe=_e;Re>qe;qe++)it=W.charAt(qe),it===`
|
||
`?(ie.seenCR||ie.line++,ie.column=1,ie.seenCR=!1):it==="\r"||it==="\u2028"||it==="\u2029"?(ie.line++,ie.column=1,ie.seenCR=!0):(ie.column++,ie.seenCR=!1)}return at!==G&&(at>G&&(at=0,bt={line:1,column:1,seenCR:!1}),Z(bt,at,G),at=G),bt}function q(G){gt>Q||(Q>gt&&(gt=Q,mt=[]),mt.push(G))}function ee(G){var Z=0;for(G.sort();Z<G.length;)G[Z-1]===G[Z]?G.splice(Z,1):Z++}function te(){var G,Z,ie,_e,Re;return G=Q,Z=ne(),Z!==null?(ie=Q,W.charCodeAt(Q)===124?(_e=hr,Q++):(_e=null,ve===0&&q(dr)),_e!==null?(Re=te(),Re!==null?(_e=[_e,Re],ie=_e):(Q=ie,ie=xe)):(Q=ie,ie=xe),ie===null&&(ie=et),ie!==null?(Ae=G,Z=pr(Z,ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe),G}function ne(){var G,Z,ie,_e,Re;if(G=Q,Z=oe(),Z===null&&(Z=et),Z!==null)if(ie=Q,ve++,_e=le(),ve--,_e===null?ie=et:(Q=ie,ie=xe),ie!==null){for(_e=[],Re=se(),Re===null&&(Re=ae());Re!==null;)_e.push(Re),Re=se(),Re===null&&(Re=ae());_e!==null?(Re=Se(),Re===null&&(Re=et),Re!==null?(Ae=G,Z=vr(Z,_e,Re),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe)}else Q=G,G=xe;else Q=G,G=xe;return G}function ae(){var G;return G=he(),G===null&&(G=Oe(),G===null&&(G=Ge())),G}function oe(){var G,Z;return G=Q,W.charCodeAt(Q)===94?(Z=Pt,Q++):(Z=null,ve===0&&q(It)),Z!==null&&(Ae=G,Z=gr()),Z===null&&(Q=G),G=Z,G}function Se(){var G,Z;return G=Q,W.charCodeAt(Q)===36?(Z=mr,Q++):(Z=null,ve===0&&q(yr)),Z!==null&&(Ae=G,Z=_r()),Z===null&&(Q=G),G=Z,G}function se(){var G,Z,ie;return G=Q,Z=ae(),Z!==null?(ie=le(),ie!==null?(Ae=G,Z=Sr(Z,ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe),G}function le(){var G,Z,ie;return ve++,G=Q,Z=ye(),Z!==null?(ie=Be(),ie===null&&(ie=et),ie!==null?(Ae=G,Z=br(Z,ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe),ve--,G===null&&(Z=null,ve===0&&q(xr)),G}function ye(){var G;return G=we(),G===null&&(G=Me(),G===null&&(G=Ee(),G===null&&(G=Pe(),G===null&&(G=$e(),G===null&&(G=Ie()))))),G}function we(){var G,Z,ie,_e,Re,qe;return G=Q,W.charCodeAt(Q)===123?(Z=_t,Q++):(Z=null,ve===0&&q(St)),Z!==null?(ie=Ne(),ie!==null?(W.charCodeAt(Q)===44?(_e=Tr,Q++):(_e=null,ve===0&&q(Ar)),_e!==null?(Re=Ne(),Re!==null?(W.charCodeAt(Q)===125?(qe=Lt,Q++):(qe=null,ve===0&&q(Ot)),qe!==null?(Ae=G,Z=Cr(ie,Re),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe)):(Q=G,G=xe)):(Q=G,G=xe)):(Q=G,G=xe),G}function Me(){var G,Z,ie,_e;return G=Q,W.charCodeAt(Q)===123?(Z=_t,Q++):(Z=null,ve===0&&q(St)),Z!==null?(ie=Ne(),ie!==null?(W.substr(Q,2)===$t?(_e=$t,Q+=2):(_e=null,ve===0&&q(Mr)),_e!==null?(Ae=G,Z=wr(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe)):(Q=G,G=xe),G}function Ee(){var G,Z,ie,_e;return G=Q,W.charCodeAt(Q)===123?(Z=_t,Q++):(Z=null,ve===0&&q(St)),Z!==null?(ie=Ne(),ie!==null?(W.charCodeAt(Q)===125?(_e=Lt,Q++):(_e=null,ve===0&&q(Ot)),_e!==null?(Ae=G,Z=Er(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe)):(Q=G,G=xe),G}function Pe(){var G,Z;return G=Q,W.charCodeAt(Q)===43?(Z=Dr,Q++):(Z=null,ve===0&&q(Rr)),Z!==null&&(Ae=G,Z=Pr()),Z===null&&(Q=G),G=Z,G}function $e(){var G,Z;return G=Q,W.charCodeAt(Q)===42?(Z=Ir,Q++):(Z=null,ve===0&&q(Lr)),Z!==null&&(Ae=G,Z=Or()),Z===null&&(Q=G),G=Z,G}function Ie(){var G,Z;return G=Q,W.charCodeAt(Q)===63?(Z=Nt,Q++):(Z=null,ve===0&&q(kt)),Z!==null&&(Ae=G,Z=$r()),Z===null&&(Q=G),G=Z,G}function Be(){var G;return W.charCodeAt(Q)===63?(G=Nt,Q++):(G=null,ve===0&&q(kt)),G}function Ne(){var G,Z,ie;if(G=Q,Z=[],Ft.test(W.charAt(Q))?(ie=W.charAt(Q),Q++):(ie=null,ve===0&&q(Bt)),ie!==null)for(;ie!==null;)Z.push(ie),Ft.test(W.charAt(Q))?(ie=W.charAt(Q),Q++):(ie=null,ve===0&&q(Bt));else Z=xe;return Z!==null&&(Ae=G,Z=Nr(Z)),Z===null&&(Q=G),G=Z,G}function he(){var G,Z,ie,_e;return G=Q,W.charCodeAt(Q)===40?(Z=kr,Q++):(Z=null,ve===0&&q(Fr)),Z!==null?(ie=Ce(),ie===null&&(ie=Fe(),ie===null&&(ie=me(),ie===null&&(ie=Te()))),ie!==null?(W.charCodeAt(Q)===41?(_e=Br,Q++):(_e=null,ve===0&&q(Vr)),_e!==null?(Ae=G,Z=Hr(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe)):(Q=G,G=xe),G}function Te(){var G,Z;return G=Q,Z=te(),Z!==null&&(Ae=G,Z=zr(Z)),Z===null&&(Q=G),G=Z,G}function me(){var G,Z,ie;return G=Q,W.substr(Q,2)===Vt?(Z=Vt,Q+=2):(Z=null,ve===0&&q(Gr)),Z!==null?(ie=te(),ie!==null?(Ae=G,Z=Ur(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe),G}function Ce(){var G,Z,ie;return G=Q,W.substr(Q,2)===Ht?(Z=Ht,Q+=2):(Z=null,ve===0&&q(Yr)),Z!==null?(ie=te(),ie!==null?(Ae=G,Z=Wr(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe),G}function Fe(){var G,Z,ie;return G=Q,W.substr(Q,2)===zt?(Z=zt,Q+=2):(Z=null,ve===0&&q(Zr)),Z!==null?(ie=te(),ie!==null?(Ae=G,Z=jr(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe),G}function Oe(){var G,Z,ie,_e,Re;if(ve++,G=Q,W.charCodeAt(Q)===91?(Z=qr,Q++):(Z=null,ve===0&&q(Kr)),Z!==null)if(W.charCodeAt(Q)===94?(ie=Pt,Q++):(ie=null,ve===0&&q(It)),ie===null&&(ie=et),ie!==null){for(_e=[],Re=Ve(),Re===null&&(Re=Le());Re!==null;)_e.push(Re),Re=Ve(),Re===null&&(Re=Le());_e!==null?(W.charCodeAt(Q)===93?(Re=Jr,Q++):(Re=null,ve===0&&q(Qr)),Re!==null?(Ae=G,Z=en(ie,_e),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe)}else Q=G,G=xe;else Q=G,G=xe;return ve--,G===null&&(Z=null,ve===0&&q(Xr)),G}function Ve(){var G,Z,ie,_e;return ve++,G=Q,Z=Le(),Z!==null?(W.charCodeAt(Q)===45?(ie=rn,Q++):(ie=null,ve===0&&q(nn)),ie!==null?(_e=Le(),_e!==null?(Ae=G,Z=an(Z,_e),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe)):(Q=G,G=xe),ve--,G===null&&(Z=null,ve===0&&q(tn)),G}function Le(){var G;return ve++,G=ze(),G===null&&(G=De()),ve--,G===null&&ve===0&&q(on),G}function De(){var G,Z;return G=Q,sn.test(W.charAt(Q))?(Z=W.charAt(Q),Q++):(Z=null,ve===0&&q(ln)),Z!==null&&(Ae=G,Z=xt(Z)),Z===null&&(Q=G),G=Z,G}function ze(){var G;return G=Xe(),G===null&&(G=Tt(),G===null&&(G=tt(),G===null&&(G=nt(),G===null&&(G=ke(),G===null&&(G=Ye(),G===null&&(G=je(),G===null&&(G=Ze(),G===null&&(G=st(),G===null&&(G=Ke(),G===null&&(G=ut(),G===null&&(G=Qe(),G===null&&(G=ct(),G===null&&(G=At(),G===null&&(G=Ct(),G===null&&(G=Mt(),G===null&&(G=wt(),G===null&&(G=Et()))))))))))))))))),G}function Ge(){var G;return G=Ue(),G===null&&(G=We(),G===null&&(G=He())),G}function Ue(){var G,Z;return G=Q,W.charCodeAt(Q)===46?(Z=un,Q++):(Z=null,ve===0&&q(cn)),Z!==null&&(Ae=G,Z=fn()),Z===null&&(Q=G),G=Z,G}function He(){var G,Z;return ve++,G=Q,dn.test(W.charAt(Q))?(Z=W.charAt(Q),Q++):(Z=null,ve===0&&q(pn)),Z!==null&&(Ae=G,Z=xt(Z)),Z===null&&(Q=G),G=Z,ve--,G===null&&(Z=null,ve===0&&q(hn)),G}function We(){var G;return G=Je(),G===null&&(G=ot(),G===null&&(G=Tt(),G===null&&(G=tt(),G===null&&(G=nt(),G===null&&(G=ke(),G===null&&(G=Ye(),G===null&&(G=je(),G===null&&(G=Ze(),G===null&&(G=st(),G===null&&(G=Ke(),G===null&&(G=ut(),G===null&&(G=Qe(),G===null&&(G=ct(),G===null&&(G=fr(),G===null&&(G=At(),G===null&&(G=Ct(),G===null&&(G=Mt(),G===null&&(G=wt(),G===null&&(G=Et()))))))))))))))))))),G}function Xe(){var G,Z;return G=Q,W.substr(Q,2)===ht?(Z=ht,Q+=2):(Z=null,ve===0&&q(Gt)),Z!==null&&(Ae=G,Z=vn()),Z===null&&(Q=G),G=Z,G}function Je(){var G,Z;return G=Q,W.substr(Q,2)===ht?(Z=ht,Q+=2):(Z=null,ve===0&&q(Gt)),Z!==null&&(Ae=G,Z=gn()),Z===null&&(Q=G),G=Z,G}function ot(){var G,Z;return G=Q,W.substr(Q,2)===Ut?(Z=Ut,Q+=2):(Z=null,ve===0&&q(mn)),Z!==null&&(Ae=G,Z=yn()),Z===null&&(Q=G),G=Z,G}function tt(){var G,Z;return G=Q,W.substr(Q,2)===Yt?(Z=Yt,Q+=2):(Z=null,ve===0&&q(_n)),Z!==null&&(Ae=G,Z=Sn()),Z===null&&(Q=G),G=Z,G}function nt(){var G,Z;return G=Q,W.substr(Q,2)===Wt?(Z=Wt,Q+=2):(Z=null,ve===0&&q(xn)),Z!==null&&(Ae=G,Z=bn()),Z===null&&(Q=G),G=Z,G}function ke(){var G,Z;return G=Q,W.substr(Q,2)===Zt?(Z=Zt,Q+=2):(Z=null,ve===0&&q(Tn)),Z!==null&&(Ae=G,Z=An()),Z===null&&(Q=G),G=Z,G}function Ye(){var G,Z;return G=Q,W.substr(Q,2)===jt?(Z=jt,Q+=2):(Z=null,ve===0&&q(Cn)),Z!==null&&(Ae=G,Z=Mn()),Z===null&&(Q=G),G=Z,G}function je(){var G,Z;return G=Q,W.substr(Q,2)===Xt?(Z=Xt,Q+=2):(Z=null,ve===0&&q(wn)),Z!==null&&(Ae=G,Z=En()),Z===null&&(Q=G),G=Z,G}function Ze(){var G,Z;return G=Q,W.substr(Q,2)===qt?(Z=qt,Q+=2):(Z=null,ve===0&&q(Dn)),Z!==null&&(Ae=G,Z=Rn()),Z===null&&(Q=G),G=Z,G}function st(){var G,Z;return G=Q,W.substr(Q,2)===Kt?(Z=Kt,Q+=2):(Z=null,ve===0&&q(Pn)),Z!==null&&(Ae=G,Z=In()),Z===null&&(Q=G),G=Z,G}function Ke(){var G,Z;return G=Q,W.substr(Q,2)===Jt?(Z=Jt,Q+=2):(Z=null,ve===0&&q(Ln)),Z!==null&&(Ae=G,Z=On()),Z===null&&(Q=G),G=Z,G}function ut(){var G,Z;return G=Q,W.substr(Q,2)===Qt?(Z=Qt,Q+=2):(Z=null,ve===0&&q($n)),Z!==null&&(Ae=G,Z=Nn()),Z===null&&(Q=G),G=Z,G}function Qe(){var G,Z;return G=Q,W.substr(Q,2)===er?(Z=er,Q+=2):(Z=null,ve===0&&q(kn)),Z!==null&&(Ae=G,Z=Fn()),Z===null&&(Q=G),G=Z,G}function ct(){var G,Z;return G=Q,W.substr(Q,2)===tr?(Z=tr,Q+=2):(Z=null,ve===0&&q(Bn)),Z!==null&&(Ae=G,Z=Vn()),Z===null&&(Q=G),G=Z,G}function Tt(){var G,Z,ie;return G=Q,W.substr(Q,2)===rr?(Z=rr,Q+=2):(Z=null,ve===0&&q(Hn)),Z!==null?(W.length>Q?(ie=W.charAt(Q),Q++):(ie=null,ve===0&&q(nr)),ie!==null?(Ae=G,Z=zn(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe),G}function fr(){var G,Z,ie;return G=Q,W.charCodeAt(Q)===92?(Z=ar,Q++):(Z=null,ve===0&&q(ir)),Z!==null?(Gn.test(W.charAt(Q))?(ie=W.charAt(Q),Q++):(ie=null,ve===0&&q(Un)),ie!==null?(Ae=G,Z=Yn(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe),G}function At(){var G,Z,ie,_e;if(G=Q,W.substr(Q,2)===dt?(Z=dt,Q+=2):(Z=null,ve===0&&q(or)),Z!==null){if(ie=[],sr.test(W.charAt(Q))?(_e=W.charAt(Q),Q++):(_e=null,ve===0&&q(lr)),_e!==null)for(;_e!==null;)ie.push(_e),sr.test(W.charAt(Q))?(_e=W.charAt(Q),Q++):(_e=null,ve===0&&q(lr));else ie=xe;ie!==null?(Ae=G,Z=Wn(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)}else Q=G,G=xe;return G}function Ct(){var G,Z,ie,_e;if(G=Q,W.substr(Q,2)===ur?(Z=ur,Q+=2):(Z=null,ve===0&&q(Zn)),Z!==null){if(ie=[],pt.test(W.charAt(Q))?(_e=W.charAt(Q),Q++):(_e=null,ve===0&&q(vt)),_e!==null)for(;_e!==null;)ie.push(_e),pt.test(W.charAt(Q))?(_e=W.charAt(Q),Q++):(_e=null,ve===0&&q(vt));else ie=xe;ie!==null?(Ae=G,Z=jn(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)}else Q=G,G=xe;return G}function Mt(){var G,Z,ie,_e;if(G=Q,W.substr(Q,2)===cr?(Z=cr,Q+=2):(Z=null,ve===0&&q(Xn)),Z!==null){if(ie=[],pt.test(W.charAt(Q))?(_e=W.charAt(Q),Q++):(_e=null,ve===0&&q(vt)),_e!==null)for(;_e!==null;)ie.push(_e),pt.test(W.charAt(Q))?(_e=W.charAt(Q),Q++):(_e=null,ve===0&&q(vt));else ie=xe;ie!==null?(Ae=G,Z=qn(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)}else Q=G,G=xe;return G}function wt(){var G,Z;return G=Q,W.substr(Q,2)===dt?(Z=dt,Q+=2):(Z=null,ve===0&&q(or)),Z!==null&&(Ae=G,Z=Kn()),Z===null&&(Q=G),G=Z,G}function Et(){var G,Z,ie;return G=Q,W.charCodeAt(Q)===92?(Z=ar,Q++):(Z=null,ve===0&&q(ir)),Z!==null?(W.length>Q?(ie=W.charAt(Q),Q++):(ie=null,ve===0&&q(nr)),ie!==null?(Ae=G,Z=xt(ie),Z===null&&(Q=G),G=Z):(Q=G,G=xe)):(Q=G,G=xe),G}var yt,ft=arguments.length>1?arguments[1]:{},Dt={regexp:te},Rt=te,xe=null,et="",hr="|",dr='"|"',pr=function(G,Z){return Z?new s(G,Z[1]):G},vr=function(G,Z,ie){return new l([G].concat(Z).concat([ie]))},Pt="^",It='"^"',gr=function(){return new r("start")},mr="$",yr='"$"',_r=function(){return new r("end")},Sr=function(G,Z){return new S(G,Z)},xr="Quantifier",br=function(G,Z){return Z&&(G.greedy=!1),G},_t="{",St='"{"',Tr=",",Ar='","',Lt="}",Ot='"}"',Cr=function(G,Z){return new x(G,Z)},$t=",}",Mr='",}"',wr=function(G){return new x(G,1/0)},Er=function(G){return new x(G,G)},Dr="+",Rr='"+"',Pr=function(){return new x(1,1/0)},Ir="*",Lr='"*"',Or=function(){return new x(0,1/0)},Nt="?",kt='"?"',$r=function(){return new x(0,1)},Ft=/^[0-9]/,Bt="[0-9]",Nr=function(G){return+G.join("")},kr="(",Fr='"("',Br=")",Vr='")"',Hr=function(G){return G},zr=function(G){return new v(G)},Vt="?:",Gr='"?:"',Ur=function(G){return new h("non-capture-group",G)},Ht="?=",Yr='"?="',Wr=function(G){return new h("positive-lookahead",G)},zt="?!",Zr='"?!"',jr=function(G){return new h("negative-lookahead",G)},Xr="CharacterSet",qr="[",Kr='"["',Jr="]",Qr='"]"',en=function(G,Z){return new T(!!G,Z)},tn="CharacterRange",rn="-",nn='"-"',an=function(G,Z){return new C(G,Z)},on="Character",sn=/^[^\\\]]/,ln="[^\\\\\\]]",xt=function(G){return new M(G)},un=".",cn='"."',fn=function(){return new r("any-character")},hn="Literal",dn=/^[^|\\\/.[()?+*$\^]/,pn="[^|\\\\\\/.[()?+*$\\^]",ht="\\b",Gt='"\\\\b"',vn=function(){return new r("backspace")},gn=function(){return new r("word-boundary")},Ut="\\B",mn='"\\\\B"',yn=function(){return new r("non-word-boundary")},Yt="\\d",_n='"\\\\d"',Sn=function(){return new r("digit")},Wt="\\D",xn='"\\\\D"',bn=function(){return new r("non-digit")},Zt="\\f",Tn='"\\\\f"',An=function(){return new r("form-feed")},jt="\\n",Cn='"\\\\n"',Mn=function(){return new r("line-feed")},Xt="\\r",wn='"\\\\r"',En=function(){return new r("carriage-return")},qt="\\s",Dn='"\\\\s"',Rn=function(){return new r("white-space")},Kt="\\S",Pn='"\\\\S"',In=function(){return new r("non-white-space")},Jt="\\t",Ln='"\\\\t"',On=function(){return new r("tab")},Qt="\\v",$n='"\\\\v"',Nn=function(){return new r("vertical-tab")},er="\\w",kn='"\\\\w"',Fn=function(){return new r("word")},tr="\\W",Bn='"\\\\W"',Vn=function(){return new r("non-word")},rr="\\c",Hn='"\\\\c"',nr="any character",zn=function(G){return new k(G)},ar="\\",ir='"\\\\"',Gn=/^[1-9]/,Un="[1-9]",Yn=function(G){return new N(G)},dt="\\0",or='"\\\\0"',sr=/^[0-7]/,lr="[0-7]",Wn=function(G){return new O(G.join(""))},ur="\\x",Zn='"\\\\x"',pt=/^[0-9a-fA-F]/,vt="[0-9a-fA-F]",jn=function(G){return new D(G.join(""))},cr="\\u",Xn='"\\\\u"',qn=function(G){return new w(G.join(""))},Kn=function(){return new r("null-character")},Q=0,Ae=0,at=0,bt={line:1,column:1,seenCR:!1},gt=0,mt=[],ve=0;if("startRule"in ft){if(!(ft.startRule in Dt))throw new Error(`Can't start parsing from rule "`+ft.startRule+'".');Rt=Dt[ft.startRule]}if(r.offset=K,r.text=X,yt=Rt(),yt!==null&&Q===W.length)return yt;throw ee(mt),Ae=Math.max(Q,gt),new U(mt,Ae<W.length?W.charAt(Ae):null,Ae,J(Ae).line,J(Ae).column)}return z(U,Error),{SyntaxError:U,parse:Y}}(),B=1,V={};o.exports=F},function(o,t,r){var s=r(3),l=r(5),h={extend:s.extend},v=D(97,122),S=D(65,90),x=D(48,57),T=D(32,47)+D(58,64)+D(91,96)+D(123,126),C=D(32,126),M=` \f
|
||
\r \v \u2028\u2029`,w={"\\w":v+S+x+"_","\\W":T.replace("_",""),"\\s":M,"\\S":function(){for(var O=C,N=0;N<M.length;N++)O=O.replace(M[N],"");return O}(),"\\d":x,"\\D":v+S+T};function D(O,N){for(var k="",F=O;F<=N;F++)k+=String.fromCharCode(F);return k}h.gen=function(O,N,k){return k=k||{guid:1},h[O.type]?h[O.type](O,N,k):h.token(O,N,k)},h.extend({token:function(O,N,k){switch(O.type){case"start":case"end":return"";case"any-character":return l.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return l.pick(x.split(""));case"non-digit":return l.pick((v+S+T).split(""));case"form-feed":break;case"line-feed":return O.body||O.text;case"carriage-return":break;case"white-space":return l.pick(M.split(""));case"non-white-space":return l.pick((v+S+x).split(""));case"tab":break;case"vertical-tab":break;case"word":return l.pick((v+S+x).split(""));case"non-word":return l.pick(T.replace("_","").split(""))}return O.body||O.text},alternate:function(O,N,k){return this.gen(l.boolean()?O.left:O.right,N,k)},match:function(O,N,k){N="";for(var F=0;F<O.body.length;F++)N+=this.gen(O.body[F],N,k);return N},"capture-group":function(O,N,k){return N=this.gen(O.body,N,k),k[k.guid++]=N,N},"non-capture-group":function(O,N,k){return this.gen(O.body,N,k)},"positive-lookahead":function(O,N,k){return this.gen(O.body,N,k)},"negative-lookahead":function(O,N,k){return""},quantified:function(O,N,k){N="";for(var F=this.quantifier(O.quantifier),B=0;B<F;B++)N+=this.gen(O.body,N,k);return N},quantifier:function(O,N,k){var F=Math.max(O.min,0),B=isFinite(O.max)?O.max:F+l.integer(3,7);return l.integer(F,B)},charset:function(O,N,k){if(O.invert)return this["invert-charset"](O,N,k);var F=l.pick(O.body);return this.gen(F,N,k)},"invert-charset":function(O,N,k){for(var F=C,B=0,V;B<O.body.length;B++)switch(V=O.body[B],V.type){case"literal":F=F.replace(V.body,"");break;case"range":for(var z=this.gen(V.start,N,k).charCodeAt(),U=this.gen(V.end,N,k).charCodeAt(),Y=z;Y<=U;Y++)F=F.replace(String.fromCharCode(Y),"");default:var W=w[V.text];if(W)for(var X=0;X<=W.length;X++)F=F.replace(W[X],"")}return l.pick(F.split(""))},range:function(O,N,k){var F=this.gen(O.start,N,k).charCodeAt(),B=this.gen(O.end,N,k).charCodeAt();return String.fromCharCode(l.integer(F,B))},literal:function(O,N,k){return O.escaped?O.body:O.text},unicode:function(O,N,k){return String.fromCharCode(parseInt(O.code,16))},hex:function(O,N,k){return String.fromCharCode(parseInt(O.code,16))},octal:function(O,N,k){return String.fromCharCode(parseInt(O.code,8))},"back-reference":function(O,N,k){return k[O.code]||""},CONTROL_CHARACTER_MAP:function(){for(var O="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),N=`\0 \x07 \b
|
||
\v \f \r \x1B `.split(" "),k={},F=0;F<O.length;F++)k[O[F]]=N[F];return k}(),"control-character":function(O,N,k){return this.CONTROL_CHARACTER_MAP[O.code]}}),o.exports=h},function(o,t,r){o.exports=r(24)},function(o,t,r){var s=r(2),l=r(3),h=r(4);function v(S,x,T){T=T||[];var C={name:typeof x=="string"?x.replace(s.RE_KEY,"$1"):x,template:S,type:l.type(S),rule:h.parse(x)};switch(C.path=T.slice(0),C.path.push(x===void 0?"ROOT":C.name),C.type){case"array":C.items=[],l.each(S,function(M,w){C.items.push(v(M,w,C.path))});break;case"object":C.properties=[],l.each(S,function(M,w){C.properties.push(v(M,w,C.path))});break}return C}o.exports=v},function(o,t,r){o.exports=r(26)},function(o,t,r){var s=r(2),l=r(3),h=r(23);function v(T,C){for(var M=h(T),w=S.diff(M,C),D=0;D<w.length;D++);return w}var S={diff:function(C,M,w){var D=[];return this.name(C,M,w,D)&&this.type(C,M,w,D)&&(this.value(C,M,w,D),this.properties(C,M,w,D),this.items(C,M,w,D)),D},name:function(T,C,M,w){var D=w.length;return x.equal("name",T.path,M+"",T.name+"",w),w.length===D},type:function(T,C,M,w){var D=w.length;switch(T.type){case"string":if(T.template.match(s.RE_PLACEHOLDER))return!0;break;case"array":if(T.rule.parameters&&(T.rule.min!==void 0&&T.rule.max===void 0&&T.rule.count===1||T.rule.parameters[2]))return!0;break;case"function":return!0}return x.equal("type",T.path,l.type(C),T.type,w),w.length===D},value:function(T,C,M,w){var D=w.length,O=T.rule,N=T.type;if(N==="object"||N==="array"||N==="function")return!0;if(!O.parameters){switch(N){case"regexp":return x.match("value",T.path,C,T.template,w),w.length===D;case"string":if(T.template.match(s.RE_PLACEHOLDER))return w.length===D;break}return x.equal("value",T.path,C,T.template,w),w.length===D}var k;switch(N){case"number":var F=(C+"").split(".");F[0]=+F[0],O.min!==void 0&&O.max!==void 0&&(x.greaterThanOrEqualTo("value",T.path,F[0],Math.min(O.min,O.max),w),x.lessThanOrEqualTo("value",T.path,F[0],Math.max(O.min,O.max),w)),O.min!==void 0&&O.max===void 0&&x.equal("value",T.path,F[0],O.min,w,"[value] "+M),O.decimal&&(O.dmin!==void 0&&O.dmax!==void 0&&(x.greaterThanOrEqualTo("value",T.path,F[1].length,O.dmin,w),x.lessThanOrEqualTo("value",T.path,F[1].length,O.dmax,w)),O.dmin!==void 0&&O.dmax===void 0&&x.equal("value",T.path,F[1].length,O.dmin,w));break;case"boolean":break;case"string":k=C.match(new RegExp(T.template,"g")),k=k?k.length:0,O.min!==void 0&&O.max!==void 0&&(x.greaterThanOrEqualTo("repeat count",T.path,k,O.min,w),x.lessThanOrEqualTo("repeat count",T.path,k,O.max,w)),O.min!==void 0&&O.max===void 0&&x.equal("repeat count",T.path,k,O.min,w);break;case"regexp":k=C.match(new RegExp(T.template.source.replace(/^\^|\$$/g,""),"g")),k=k?k.length:0,O.min!==void 0&&O.max!==void 0&&(x.greaterThanOrEqualTo("repeat count",T.path,k,O.min,w),x.lessThanOrEqualTo("repeat count",T.path,k,O.max,w)),O.min!==void 0&&O.max===void 0&&x.equal("repeat count",T.path,k,O.min,w);break}return w.length===D},properties:function(T,C,M,w){var D=w.length,O=T.rule,N=l.keys(C);if(T.properties){if(T.rule.parameters?(O.min!==void 0&&O.max!==void 0&&(x.greaterThanOrEqualTo("properties length",T.path,N.length,Math.min(O.min,O.max),w),x.lessThanOrEqualTo("properties length",T.path,N.length,Math.max(O.min,O.max),w)),O.min!==void 0&&O.max===void 0&&O.count!==1&&x.equal("properties length",T.path,N.length,O.min,w)):x.equal("properties length",T.path,N.length,T.properties.length,w),w.length!==D)return!1;for(var k=0;k<N.length;k++)w.push.apply(w,this.diff(function(){var F;return l.each(T.properties,function(B){B.name===N[k]&&(F=B)}),F||T.properties[k]}(),C[N[k]],N[k]));return w.length===D}},items:function(T,C,M,w){var D=w.length;if(T.items){var O=T.rule;if(!T.rule.parameters)x.equal("items length",T.path,C.length,T.items.length,w);else{if(O.min!==void 0&&O.max!==void 0&&(x.greaterThanOrEqualTo("items",T.path,C.length,Math.min(O.min,O.max)*T.items.length,w,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),x.lessThanOrEqualTo("items",T.path,C.length,Math.max(O.min,O.max)*T.items.length,w,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),O.min!==void 0&&O.max===void 0){if(O.count===1)return w.length===D;x.equal("items length",T.path,C.length,O.min*T.items.length,w)}if(O.parameters[2])return w.length===D}if(w.length!==D)return!1;for(var N=0;N<C.length;N++)w.push.apply(w,this.diff(T.items[N%T.items.length],C[N],N%T.items.length));return w.length===D}}},x={message:function(T){return(T.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",T.type.toUpperCase()).replace("{ltype}",T.type.toLowerCase()).replace("{path}",l.isArray(T.path)&&T.path.join(".")||T.path).replace("{action}",T.action).replace("{expected}",T.expected).replace("{actual}",T.actual)},equal:function(T,C,M,w,D,O){if(M===w)return!0;switch(T){case"type":if(w==="regexp"&&M==="string")return!0;break}var N={path:C,type:T,actual:M,expected:w,action:"is equal to",message:O};return N.message=x.message(N),D.push(N),!1},match:function(T,C,M,w,D,O){if(w.test(M))return!0;var N={path:C,type:T,actual:M,expected:w,action:"matches",message:O};return N.message=x.message(N),D.push(N),!1},notEqual:function(T,C,M,w,D,O){if(M!==w)return!0;var N={path:C,type:T,actual:M,expected:w,action:"is not equal to",message:O};return N.message=x.message(N),D.push(N),!1},greaterThan:function(T,C,M,w,D,O){if(M>w)return!0;var N={path:C,type:T,actual:M,expected:w,action:"is greater than",message:O};return N.message=x.message(N),D.push(N),!1},lessThan:function(T,C,M,w,D,O){if(M<w)return!0;var N={path:C,type:T,actual:M,expected:w,action:"is less to",message:O};return N.message=x.message(N),D.push(N),!1},greaterThanOrEqualTo:function(T,C,M,w,D,O){if(M>=w)return!0;var N={path:C,type:T,actual:M,expected:w,action:"is greater than or equal to",message:O};return N.message=x.message(N),D.push(N),!1},lessThanOrEqualTo:function(T,C,M,w,D,O){if(M<=w)return!0;var N={path:C,type:T,actual:M,expected:w,action:"is less than or equal to",message:O};return N.message=x.message(N),D.push(N),!1}};v.Diff=S,v.Assert=x,o.exports=v},function(o,t,r){o.exports=r(28)},function(o,t,r){var s=r(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(O,N,k,F){var B=document.createEvent("CustomEvent");return B.initCustomEvent(O,N,k,F),B}}var l={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},h="readystatechange loadstart progress abort error load timeout loadend".split(" "),v="timeout withCredentials".split(" "),S="readyState responseURL status statusText responseType response responseText responseXML".split(" "),x={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function T(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}T._settings={timeout:"10-100"},T.setup=function(D){return s.extend(T._settings,D),T._settings},s.extend(T,l),s.extend(T.prototype,l),T.prototype.mock=!0,T.prototype.match=!1,s.extend(T.prototype,{open:function(D,O,N,k,F){var B=this;s.extend(this.custom,{method:D,url:O,async:typeof N=="boolean"?N:!0,username:k,password:F,options:{url:O,type:D}}),this.custom.timeout=function(X){if(typeof X=="number")return X;if(typeof X=="string"&&!~X.indexOf("-"))return parseInt(X,10);if(typeof X=="string"&&~X.indexOf("-")){var K=X.split("-"),J=parseInt(K[0],10),q=parseInt(K[1],10);return Math.round(Math.random()*(q-J))+J}}(T._settings.timeout);var V=M(this.custom.options);function z(X){for(var K=0;K<S.length;K++)try{B[S[K]]=U[S[K]]}catch{}B.dispatchEvent(new Event(X.type))}if(!V){var U=C();this.custom.xhr=U;for(var Y=0;Y<h.length;Y++)U.addEventListener(h[Y],z);k?U.open(D,O,N,k,F):U.open(D,O,N);for(var W=0;W<v.length;W++)try{U[v[W]]=B[v[W]]}catch{}return}this.match=!0,this.custom.template=V,this.readyState=T.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function(D,O){if(!this.match){this.custom.xhr.setRequestHeader(D,O);return}var N=this.custom.requestHeaders;N[D]?N[D]+=","+O:N[D]=O},timeout:0,withCredentials:!1,upload:{},send:function(O){var N=this;if(this.custom.options.body=O,!this.match){this.custom.xhr.send(O);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(k,this.custom.timeout):k();function k(){N.readyState=T.HEADERS_RECEIVED,N.dispatchEvent(new Event("readystatechange")),N.readyState=T.LOADING,N.dispatchEvent(new Event("readystatechange")),N.status=200,N.statusText=x[200],N.response=N.responseText=JSON.stringify(w(N.custom.template,N.custom.options),null,4),N.readyState=T.DONE,N.dispatchEvent(new Event("readystatechange")),N.dispatchEvent(new Event("load")),N.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=T.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),s.extend(T.prototype,{responseURL:"",status:T.UNSENT,statusText:"",getResponseHeader:function(D){return this.match?this.custom.responseHeaders[D.toLowerCase()]:this.custom.xhr.getResponseHeader(D)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var D=this.custom.responseHeaders,O="";for(var N in D)D.hasOwnProperty(N)&&(O+=N+": "+D[N]+`\r
|
||
`);return O},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),s.extend(T.prototype,{addEventListener:function(O,N){var k=this.custom.events;k[O]||(k[O]=[]),k[O].push(N)},removeEventListener:function(O,N){for(var k=this.custom.events[O]||[],F=0;F<k.length;F++)k[F]===N&&k.splice(F--,1)},dispatchEvent:function(O){for(var N=this.custom.events[O.type]||[],k=0;k<N.length;k++)N[k].call(this,O);var F="on"+O.type;this[F]&&this[F](O)}});function C(){var D=function(){var k=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,F=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,B=location.href,V=F.exec(B.toLowerCase())||[];return k.test(V[1])}();return window.ActiveXObject?!D&&O()||N():O();function O(){try{return new window._XMLHttpRequest}catch{}}function N(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function M(D){for(var O in T.Mock._mocked){var N=T.Mock._mocked[O];if((!N.rurl||k(N.rurl,D.url))&&(!N.rtype||k(N.rtype,D.type.toLowerCase())))return N}function k(F,B){if(s.type(F)==="string")return F===B;if(s.type(F)==="regexp")return F.test(B)}}function w(D,O){return s.isFunction(D.template)?D.template(O):T.Mock.mock(D.template)}o.exports=T}])})})(mock);const mockJs=mockExports;function lexer(o){for(var t=[],r=0;r<o.length;){var s=o[r];if(s==="*"||s==="+"||s==="?"){t.push({type:"MODIFIER",index:r,value:o[r++]});continue}if(s==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:o[r++]});continue}if(s==="{"){t.push({type:"OPEN",index:r,value:o[r++]});continue}if(s==="}"){t.push({type:"CLOSE",index:r,value:o[r++]});continue}if(s===":"){for(var l="",h=r+1;h<o.length;){var v=o.charCodeAt(h);if(v>=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122||v===95){l+=o[h++];continue}break}if(!l)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:l}),r=h;continue}if(s==="("){var S=1,x="",h=r+1;if(o[h]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(h));for(;h<o.length;){if(o[h]==="\\"){x+=o[h++]+o[h++];continue}if(o[h]===")"){if(S--,S===0){h++;break}}else if(o[h]==="("&&(S++,o[h+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(h));x+=o[h++]}if(S)throw new TypeError("Unbalanced pattern at ".concat(r));if(!x)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:x}),r=h;continue}t.push({type:"CHAR",index:r,value:o[r++]})}return t.push({type:"END",index:r,value:""}),t}function parse(o,t){t===void 0&&(t={});for(var r=lexer(o),s=t.prefixes,l=s===void 0?"./":s,h="[^".concat(escapeString(t.delimiter||"/#?"),"]+?"),v=[],S=0,x=0,T="",C=function(Y){if(x<r.length&&r[x].type===Y)return r[x++].value},M=function(Y){var W=C(Y);if(W!==void 0)return W;var X=r[x],K=X.type,J=X.index;throw new TypeError("Unexpected ".concat(K," at ").concat(J,", expected ").concat(Y))},w=function(){for(var Y="",W;W=C("CHAR")||C("ESCAPED_CHAR");)Y+=W;return Y};x<r.length;){var D=C("CHAR"),O=C("NAME"),N=C("PATTERN");if(O||N){var k=D||"";l.indexOf(k)===-1&&(T+=k,k=""),T&&(v.push(T),T=""),v.push({name:O||S++,prefix:k,suffix:"",pattern:N||h,modifier:C("MODIFIER")||""});continue}var F=D||C("ESCAPED_CHAR");if(F){T+=F;continue}T&&(v.push(T),T="");var B=C("OPEN");if(B){var k=w(),V=C("NAME")||"",z=C("PATTERN")||"",U=w();M("CLOSE"),v.push({name:V||(z?S++:""),pattern:V&&!z?h:z,prefix:k,suffix:U,modifier:C("MODIFIER")||""});continue}M("END")}return v}function escapeString(o){return o.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags(o){return o&&o.sensitive?"":"i"}function regexpToRegexp(o,t){if(!t)return o;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,s=0,l=r.exec(o.source);l;)t.push({name:l[1]||s++,prefix:"",suffix:"",modifier:"",pattern:""}),l=r.exec(o.source);return o}function arrayToRegexp(o,t,r){var s=o.map(function(l){return pathToRegexp(l,t,r).source});return new RegExp("(?:".concat(s.join("|"),")"),flags(r))}function stringToRegexp(o,t,r){return tokensToRegexp(parse(o,r),t,r)}function tokensToRegexp(o,t,r){r===void 0&&(r={});for(var s=r.strict,l=s===void 0?!1:s,h=r.start,v=h===void 0?!0:h,S=r.end,x=S===void 0?!0:S,T=r.encode,C=T===void 0?function(J){return J}:T,M=r.delimiter,w=M===void 0?"/#?":M,D=r.endsWith,O=D===void 0?"":D,N="[".concat(escapeString(O),"]|$"),k="[".concat(escapeString(w),"]"),F=v?"^":"",B=0,V=o;B<V.length;B++){var z=V[B];if(typeof z=="string")F+=escapeString(C(z));else{var U=escapeString(C(z.prefix)),Y=escapeString(C(z.suffix));if(z.pattern)if(t&&t.push(z),U||Y)if(z.modifier==="+"||z.modifier==="*"){var W=z.modifier==="*"?"?":"";F+="(?:".concat(U,"((?:").concat(z.pattern,")(?:").concat(Y).concat(U,"(?:").concat(z.pattern,"))*)").concat(Y,")").concat(W)}else F+="(?:".concat(U,"(").concat(z.pattern,")").concat(Y,")").concat(z.modifier);else z.modifier==="+"||z.modifier==="*"?F+="((?:".concat(z.pattern,")").concat(z.modifier,")"):F+="(".concat(z.pattern,")").concat(z.modifier);else F+="(?:".concat(U).concat(Y,")").concat(z.modifier)}}if(x)l||(F+="".concat(k,"?")),F+=r.endsWith?"(?=".concat(N,")"):"$";else{var X=o[o.length-1],K=typeof X=="string"?k.indexOf(X[X.length-1])>-1:X===void 0;l||(F+="(?:".concat(k,"(?=").concat(N,"))?")),K||(F+="(?=".concat(k,"|").concat(N,")"))}return new RegExp(F,flags(r))}function pathToRegexp(o,t,r){return o instanceof RegExp?regexpToRegexp(o,t):Array.isArray(o)?arrayToRegexp(o,t,r):stringToRegexp(o,t,r)}const Mock=mockJs;function createProdMockServer(o){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const t={};for(let r in this.custom.requestHeaders)t[r.toString().toLowerCase()]=this.custom.requestHeaders[r];this.custom.options=Object.assign({},this.custom.options,{headers:t})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let t=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&t&&(this.custom.xhr.responseType=t)};for(const{url:t,method:r,response:s,timeout:l}of o)__setupMock__(l),Mock.mock(pathToRegexp(t,void 0,{end:!1}),r||"get",__XHR2ExpressReqWrapper__(s))}function __param2Obj__(o){const t=o.split("?")[1];return t?JSON.parse('{"'+decodeURIComponent(t).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__(o){return function(t){let r=null;if(typeof o=="function"){const{body:s,type:l,url:h,headers:v}=t;let S=s;try{S=JSON.parse(s)}catch{}r=o({method:l,body:S,query:__param2Obj__(h),headers:v})}else r=o;return Mock.mock(r)}}function __setupMock__(o=0){o&&Mock.setup({timeout:o})}const modules=Object.assign({"../mock/asyncRoutes.ts":__vite_glob_0_0,"../mock/list.ts":__vite_glob_0_1,"../mock/login.ts":__vite_glob_0_2,"../mock/map.ts":__vite_glob_0_3,"../mock/refreshToken.ts":__vite_glob_0_4,"../mock/system.ts":__vite_glob_0_5}),mockModules=[];Object.keys(modules).forEach(o=>{mockModules.push(...modules[o].default)});function setupProdMockServer(){createProdMockServer(mockModules)}const app=Vue.createApp(App);Object.keys(directives).forEach(o=>{app.directive(o,directives[o])});app.component("IconifyIconOffline",IconifyIconOffline);app.component("IconifyIconOnline",IconifyIconOnline);app.component("FontIcon",FontIcon);app.component("Auth",Auth);getServerConfig(app).then(async o=>{app.use(router),await router.isReady(),injectResponsiveStorage(app,o),setupStore(app),app.use(MotionPlugin).use(useI18n).use(ElementPlus).use(be).use(I).use(useEcharts),app.mount("#app")});setupProdMockServer();
|