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-57451653.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{_ as __extends,G as Gradient,L as LinearGradient}from"./LinearGradient-99afdd31.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-2b23ea72.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(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);lMath.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;lo[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;Stypeof 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{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{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;vr(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(;xl||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 oo<.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{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&&Vs}function k(V){return r===void 0?s:s===void 0||Math.abs(r-V){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&&KO==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=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))}}};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=0)S=v*r.length;else for(var x=0;x>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;v1&&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=!(hO&&(O=V,NO&&(O=z,F=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;k4)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=0;)l++;return l-t}function reverseRun(o,t,r){for(r--;t>>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;x0;)v=x,x=(x<<1)+1,x<=0&&(x=S);x>S&&(x=S),v+=l,x+=l}else{for(S=l+1;xS&&(x=S);var T=v;v=l-x,x=l-T}for(v++;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;xS&&(x=S);var T=v;v=l-x,x=l-T}else{for(S=s-l;x=0;)v=x,x=(x<<1)+1,x<=0&&(x=S);x>S&&(x=S),v+=l,x+=l}for(v++;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])break;C(D)}}function T(){for(;h>1;){var D=h-2;D>0&&l[D-1]=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=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)=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=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;FS&&(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;s0&&(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=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&&oEPSILON$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=0&&k=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=0&&D=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;hs?t:o,h=Math.min(r,s),v=l[h-1]||{color:[0,0,0,0],offset:0},S=h;Sv;if(S)s.length=v;else for(var x=h;x=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=0&&!(v[C].percent<=r);C--);C=w(C,S-2)}else{for(C=M;Cr);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;v0&&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;s0)){this._started=1;for(var r=this,s=[],l=this._maxTime||0,h=0;h1){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.__lastTouchMomentEPSILON$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=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;h0},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;x0,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=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=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;v0&&r.during&&h[0].during(function(O,N){r.during(N)});for(var w=0;w0||l.force&&!v.length){var X=void 0,K=void 0,J=void 0;if(S){K={},w&&(X={});for(var z=0;z=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;l0&&(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;r0){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]});ST&&(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=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=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=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;hD&&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;kS&&pushTokens(r,o.substring(S,T),t,v),pushTokens(r,x[2],t,v,x[1]),S=STYLE_REG.lastIndex}Sl){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&&oe0&&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=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;Mr: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;l1e-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:ll&&(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&&r0&&(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;sC.length&&(this._expandData(),C=this.data);for(var M=0;M0&&(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;r11&&(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;vs||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;Y0&&(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||vo+S&&h>r+S||ht+M&&C>s+M&&C>h+M&&C>S+M||Co+M&&T>r+M&&T>l+M&&T>v+M||Tt+T&&x>s+T&&x>h+T||xo+T&&S>r+T&&S>l+T||Sr||C+Tl&&(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||hl?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)t&&T>s&&T>h&&T>S||T1&&swapExtrema(),D=cubicAt(t,s,h,S,extrema[0]),w>1&&(O=cubicAt(t,s,h,S,extrema[1]))),w===2?kt&&S>s&&S>h||S=0&&T<=1){for(var C=0,M=quadraticAt(t,s,h,T),w=0;wr||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&&N1&&(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.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)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;w0},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;r0,ee=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),te=v.calculatedLineHeight,ne=0;ne=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=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;M0){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;l1&&(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;Tne*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),De){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),K0&&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),J0&&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=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;Sextent2[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()&&(C0){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;tMath.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];h1)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=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=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':'';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=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;Bt)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=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=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;sN&&(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=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||D1&&s>0?S:v}};return h;function v(){return t=o?null:xl?-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;C65535?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;Tk[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;CF[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=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,s=r[t];if(s!=null&&st)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=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=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=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=M&&B<=w||isNaN(B))&&(x[T++]=W)}else for(var F=0;Ft[J][1])&&(X=!1)}X&&(x[T++]=r.getRawIndex(F))}return TF[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;OC&&(C=M,w=z)}q>0&&qC-O&&(x=C-O,S.length=x);for(var N=0;NM[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();hx&&(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=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;r1||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('
'+encodeHTML(w)+"
"+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='
',s="margin: "+t+"px 0 0";return'
'+o+r+"
"}function wrapInlineNameHTML(o,t,r){var s=t?"margin-left:2px":"";return''+encodeHTML(o)+""}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],''+map$2(o,function(v){return encodeHTML(v)}).join("  ")+""}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;lthis.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=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;C0&&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=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;h0&&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=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;h0)?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;S0&&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+=''+V.dom+""}),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;Vw.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;V0?{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=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;v1){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;S1&&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;D1)for(var S=0;S30}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=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;C0},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;x1&&(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;D0&&(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;tr[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&&vs&&(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=0&&r=0&&r=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[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]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;vh[0]&&D0&&(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&&Bz&&(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)>>1;o[l][1]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]();se1&&ae===0&&ee.unshift({value:ee[0].value-se})}}for(var ae=0;ae=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;D0;)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]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;Co[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)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>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,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;r40&&(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:D0){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(h1&&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=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;C0&&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;q0)for(var ee=0;ee0;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;q0?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=S)}}for(var M=this.__startIndex;M15)break}}ne.prevElClipPaths&&F.restore()};if(B)if(B.length===0)X=k.__endIndex;else for(var J=D.dpr,q=0;q0&&t>l[0]){for(x=0;xt);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;l0?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-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=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;h0?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=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||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=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=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(;vt){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(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;vs)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=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;t0&&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;zt&&(t=o[r]);return isFinite(t)?t:NaN},min:function(o){for(var t=1/0,r=0;r10&&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-CMath.PI/2&&CS)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=Sl?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;r0?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=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=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,eer?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)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)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;N0){for(var C=v.getItemLayout(0),M=1;isNaN(C&&C.startAngle)&&M=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;kT[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;l0?"top":"bottom",h="center"):isRadianAroundZero(l-PI)?(v=s>0?"bottom":"top",h="center"):(v="middle",l>0&&l0?"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",lPI/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=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]),v3?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=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:th&&(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;vs.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;s0&&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=0){!v&&(v=s[o]={});for(var D=keys(h),C=0;C=0)){var w=o.getAnimationStyleProps(),D=w?w.style:null;if(D){!h&&(h=s.style={});for(var O=keys(r),T=0;TS)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=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=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=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;hv[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='',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=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=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;ho[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-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'
'}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=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"?` `:"
",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=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;sl[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=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;ls[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;Cs[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]=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;xr[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;qv[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=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;S0: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","≥"][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:["page-size-change","page-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("page-size-change",K)})(X),onCurrentChange:X=>(K=>{Vue.unref(N).currentPage=K,s("page-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="";window._iconfont_svg_string_2208059='',function(o){var r=(r=document.getElementsByTagName("script"))[r.length-1],t=r.getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var s,l,h,v,S,x=function(M,w){w.parentNode.insertBefore(M,w)};if(t&&!o.__iconfont__svg__cssinject__){o.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(M){console&&console.log(M)}}s=function(){var M,w=document.createElement("div");w.innerHTML=o._iconfont_svg_string_2208059,(w=w.getElementsByTagName("svg")[0])&&(w.setAttribute("aria-hidden","true"),w.style.position="absolute",w.style.width=0,w.style.height=0,w.style.overflow="hidden",w=w,(M=document.body).firstChild?x(w,M.firstChild):M.appendChild(w))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(s,0):(l=function(){document.removeEventListener("DOMContentLoaded",l,!1),s()},document.addEventListener("DOMContentLoaded",l,!1)):document.attachEvent&&(h=s,v=o.document,S=!1,C(),v.onreadystatechange=function(){v.readyState=="complete"&&(v.onreadystatechange=null,T())})}function T(){S||(S=!0,h())}function C(){try{v.documentElement.doScroll("left")}catch{return void setTimeout(C,50)}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";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 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{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-pure-iconfont-tabs",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;r1)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;i1&&(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;S1/(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);S1&&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;C1&&(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;Sqe;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();ZQ?(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,Aew)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 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=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)?(?!\?)/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-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();