(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],[,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet"],i=["lanDebug","router","worklet"],o="undefined"!==typeof globalThis?globalThis:function(){return this}(),a=["w","x"].join(""),s=o[a],l=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function u(t){return(!l||1154!==l.scene||!i.includes(t))&&(r.indexOf(t)>-1||"function"===typeof s[t])}function c(){var t={};for(var e in s)u(e)&&(t[e]=s[e]);return t}o[a]=c();var f=o[a];e.default=f},function(t,e,n){"use strict";(function(t,r){var i=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.createApp=jn,e.createComponent=qn,e.createPage=Xn,e.createPlugin=Kn,e.createSubpackageApp=Zn,e.default=void 0;var o,a=i(n(5)),s=i(n(11)),l=i(n(15)),u=i(n(18)),c=i(n(13)),f=n(22),p=i(n(25));function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e-1},t.prototype.uniIDHasPermission=function(t){var e=m(),n=e.permission;return this.uniIDHasRole("admin")||n.indexOf(t)>-1},t.prototype.uniIDTokenValid=function(){var t=m(),e=t.tokenExpired;return e>Date.now()}}o="function"!==typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!v.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var x=Object.prototype.toString,b=Object.prototype.hasOwnProperty;function w(t){return"function"===typeof t}function S(t){return"string"===typeof t}function A(t){return null!==t&&"object"===(0,c.default)(t)}function M(t){return"[object Object]"===x.call(t)}function T(t,e){return b.call(t,e)}function C(){}function I(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var k=/-(\w)/g,O=I((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))}));function P(t){var e={};return M(t)&&Object.keys(t).sort().forEach((function(n){e[n]=t[n]})),Object.keys(e)?e:t}var D=["invoke","success","fail","complete","returnValue"],E={},L={};function B(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?R(n):n}function R(t){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(t[n])){var r=e[n];e[n]=function(i){W(t[n],i,e).then((function(t){return w(r)&&r(t)||t}))}}})),e}function G(t,e){var n=[];Array.isArray(E.returnValue)&&n.push.apply(n,(0,u.default)(E.returnValue));var r=L[t];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,u.default)(r.returnValue)),n.forEach((function(t){e=t(e)||e})),e}function Y(t){var e=Object.create(null);Object.keys(E).forEach((function(t){"returnValue"!==t&&(e[t]=E[t].slice())}));var n=L[t];return n&&Object.keys(n).forEach((function(t){"returnValue"!==t&&(e[t]=(e[t]||[]).concat(n[t]))})),e}function Q(t,e,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),o=1;o-1?gt:t.indexOf("-hant")>-1||Tt(t,["-tw","-hk","-mo","-cht"])?vt:gt;var n=Ct(t,[yt,mt,_t]);return n||void 0}}function kt(){if(w(getApp)){var e=getApp({allowDefault:!0});if(e&&e.$vm)return e.$vm.$locale}return It(t.getSystemInfoSync().language)||yt}function Ot(t){var e=!!w(getApp)&&getApp();if(!e)return!1;var n=e.$vm.$locale;return n!==t&&(e.$vm.$locale=t,Pt.forEach((function(e){return e({locale:t})})),!0)}var Pt=[];function Dt(t){-1===Pt.indexOf(t)&&Pt.push(t)}"undefined"!==typeof r&&(r.getLocale=kt);var Et={promiseInterceptor:X},Lt=Object.freeze({__proto__:null,upx2px:ht,getLocale:kt,setLocale:Ot,onLocaleChange:Dt,addInterceptor:F,removeInterceptor:V,interceptors:Et});function Bt(t){var e=getCurrentPages(),n=e.length;while(n--){var r=e[n];if(r.$page&&r.$page.fullPath===t)return n}return-1}var Rt,Nt={name:function(t){return"back"===t.exists&&t.delta?"navigateBack":"redirectTo"},args:function(t){if("back"===t.exists&&t.url){var e=Bt(t.url);if(-1!==e){var n=getCurrentPages().length-1-e;n>0&&(t.delta=n)}}}},jt={args:function(t){var e=parseInt(t.current);if(!isNaN(e)){var n=t.urls;if(Array.isArray(n)){var r=n.length;if(r)return e<0?e=0:e>=r&&(e=r-1),e>0?(t.current=n[e],t.urls=n.filter((function(t,r){return!(r2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(M(e)){var o=!0===i?e:{};for(var a in w(n)&&(n=n(e,o)||{}),e)if(T(n,a)){var s=n[a];w(s)&&(s=s(e[a],e,o)),s?S(s)?o[s]=e[a]:M(s)&&(o[s.name?s.name:a]=s.value):console.warn("The '".concat(t,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==re.indexOf(a)?w(e[a])&&(o[a]=ie(t,e[a],r)):i||(o[a]=e[a]);return o}return w(e)&&(e=ie(t,e,r)),e}function ae(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return w(te.returnValue)&&(e=te.returnValue(t,e)),oe(t,e,n,{},r)}function se(e,n){if(T(te,e)){var r=te[e];return r?function(n,i){var o=r;w(r)&&(o=r(n)),n=oe(e,n,o.args,o.returnValue);var a=[n];"undefined"!==typeof i&&a.push(i),w(o.name)?e=o.name(n):S(o.name)&&(e=o.name);var s=t[e].apply(t,a);return nt(e)?ae(e,s,o.returnValue,et(e)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(e,"'."))}}return n}var le=Object.create(null),ue=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function ce(t){return function(e){var n=e.fail,r=e.complete,i={errMsg:"".concat(t,":fail method '").concat(t,"' not supported")};w(n)&&n(i),w(r)&&r(i)}}ue.forEach((function(t){le[t]=ce(t)}));var fe={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function pe(t){var e=t.service,n=t.success,r=t.fail,i=t.complete,o=!1;fe[e]?(o={errMsg:"getProvider:ok",service:e,provider:fe[e]},w(n)&&n(o)):(o={errMsg:"getProvider:fail service not found"},w(r)&&r(o)),w(i)&&i(o)}var he=Object.freeze({__proto__:null,getProvider:pe}),de=function(){var t;return function(){return t||(t=new p.default),t}}();function ge(t,e,n){return t[e].apply(t,n)}function ve(){return ge(de(),"$on",Array.prototype.slice.call(arguments))}function ye(){return ge(de(),"$off",Array.prototype.slice.call(arguments))}function me(){return ge(de(),"$once",Array.prototype.slice.call(arguments))}function _e(){return ge(de(),"$emit",Array.prototype.slice.call(arguments))}var xe,be,we,Se=Object.freeze({__proto__:null,$on:ve,$off:ye,$once:me,$emit:_e});function Ae(t){return function(){try{return t.apply(t,arguments)}catch(e){console.error(e)}}}function Me(t){var e={};for(var n in t){var r=t[n];w(r)&&(e[n]=Ae(r),delete t[n])}return e}function Te(t){try{return JSON.parse(t)}catch(e){}return t}function Ce(t){if("enabled"===t.type)we=!0;else if("clientId"===t.type)xe=t.cid,be=t.errMsg,ke(xe,t.errMsg);else if("pushMsg"===t.type)for(var e={type:"receive",data:Te(t.message)},n=0;n-1&&Pe.splice(e,1)}else Pe.length=0},Le=t.getAppBaseInfo&&t.getAppBaseInfo();Le||(Le=t.getSystemInfoSync());var Be=Le?Le.host:null,Re=Be&&"SAAASDK"===Be.env?t.miniapp.shareVideoMessage:t.shareVideoMessage,Ne=Object.freeze({__proto__:null,shareVideoMessage:Re,getPushClientId:Oe,onPushMessage:De,offPushMessage:Ee,invokePushCallback:Ce}),je=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function ze(t,e){for(var n,r=t.$children,i=r.length-1;i>=0;i--){var o=r[i];if(o.$scope._$vueId===e)return o}for(var a=r.length-1;a>=0;a--)if(n=ze(r[a],e),n)return n}function Fe(t){return Behavior(t)}function Ve(){return!!this.route}function He(t){this.triggerEvent("__l",t)}function Ue(t,e,n){var r=t.selectAllComponents(e)||[];r.forEach((function(t){var r=t.dataset.ref;n[r]=t.$vm||Qe(t),"scoped"===t.dataset.vueGeneric&&t.selectAllComponents(".scoped-ref").forEach((function(t){Ue(t,e,n)}))}))}function We(t,e){var n=(0,l.default)(Set,(0,u.default)(Object.keys(t))),r=Object.keys(e);return r.forEach((function(r){var i=t[r],o=e[r];Array.isArray(i)&&Array.isArray(o)&&i.length===o.length&&o.every((function(t){return i.includes(t)}))||(t[r]=o,n.delete(r))})),n.forEach((function(e){delete t[e]})),t}function $e(t){var e=t.$scope,n={};Object.defineProperty(t,"$refs",{get:function(){var t={};Ue(e,".vue-ref",t);var r=e.selectAllComponents(".vue-ref-in-for")||[];return r.forEach((function(e){var n=e.dataset.ref;t[n]||(t[n]=[]),t[n].push(e.$vm||Qe(e))})),We(n,t)}})}function Ge(t){var e,n=t.detail||t.value,r=n.vuePid,i=n.vueOptions;r&&(e=ze(this.$vm,r)),e||(e=this.$vm),i.parent=e}function Ye(t){var e="__v_isMPComponent";return Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:!0}),t}function Qe(t){var e="__ob__",n="__v_skip";return A(t)&&Object.isExtensible(t)&&Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:(0,s.default)({},n,!0)}),t}var Xe=/_(.*)_worklet_factory_/;function qe(t,e){e&&Object.keys(e).forEach((function(n){var r=n.match(Xe);if(r){var i=r[1];t[n]=e[n],t[i]=e[i]}}))}var Ze=Page,Ke=Component,Je=/:/g,tn=I((function(t){return O(t.replace(Je,"-"))}));function en(t){var e=t.triggerEvent,n=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return nn("onLoad",t),Ze(t)},Page.after=Ze.after,Component=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return nn("created",t),Ke(t)});var rn=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function on(t,e){var n=t.$mp[t.mpType];e.forEach((function(e){T(n,e)&&(t[e]=n[e])}))}function an(t,e){if(!e)return!0;if(p.default.options&&Array.isArray(p.default.options[t]))return!0;if(e=e.default||e,w(e))return!!w(e.extendOptions[t])||!!(e.super&&e.super.options&&Array.isArray(e.super.options[t]));if(w(e[t])||Array.isArray(e[t]))return!0;var n=e.mixins;return Array.isArray(n)?!!n.find((function(e){return an(t,e)})):void 0}function sn(t,e,n){e.forEach((function(e){an(e,n)&&(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}))}function ln(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];un(e).forEach((function(e){return cn(t,e,n)}))}function un(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&Object.keys(t).forEach((function(n){0===n.indexOf("on")&&w(t[n])&&e.push(n)})),e}function cn(t,e,n){-1!==n.indexOf(e)||T(t,e)||(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}function fn(t,e){var n;return e=e.default||e,n=w(e)?e:t.extend(e),e=n.options,[n,e]}function pn(t,e){if(Array.isArray(e)&&e.length){var n=Object.create(null);e.forEach((function(t){n[t]=!0})),t.$scopedSlots=t.$slots=n}}function hn(t,e){t=(t||"").split(",");var n=t.length;1===n?e._$vueId=t[0]:2===n&&(e._$vueId=t[0],e._$vuePid=t[1])}function dn(t,e){var n=t.data||{},r=t.methods||{};if("function"===typeof n)try{n=n.call(e)}catch(i){Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"gupiao_weixin_uniapp",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return M(n)||(n={}),Object.keys(r).forEach((function(t){-1!==e.__lifecycle_hooks__.indexOf(t)||T(n,t)||(n[t]=r[t])})),n}var gn=[String,Number,Boolean,Object,Array,null];function vn(t){return function(e,n){this.$vm&&(this.$vm[t]=e)}}function yn(t,e){var n=t.behaviors,r=t.extends,i=t.mixins,o=t.props;o||(t.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(t){a.push(t.replace("uni://","wx".concat("://"))),"uni://form-field"===t&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),M(r)&&r.props&&a.push(e({properties:_n(r.props,!0)})),Array.isArray(i)&&i.forEach((function(t){M(t)&&t.props&&a.push(e({properties:_n(t.props,!0)}))})),a}function mn(t,e,n,r){return Array.isArray(e)&&1===e.length?e[0]:e}function _n(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return e||(r.vueId={type:String,value:""},n.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(t,e){var n=Object.create(null);t.forEach((function(t){n[t]=!0})),this.setData({$slots:n})}}),Array.isArray(t)?t.forEach((function(t){r[t]={type:null,observer:vn(t)}})):M(t)&&Object.keys(t).forEach((function(e){var n=t[e];if(M(n)){var i=n.default;w(i)&&(i=i()),n.type=mn(e,n.type),r[e]={type:-1!==gn.indexOf(n.type)?n.type:null,value:i,observer:vn(e)}}else{var o=mn(e,n);r[e]={type:-1!==gn.indexOf(o)?o:null,observer:vn(e)}}})),r}function xn(t){try{t.mp=JSON.parse(JSON.stringify(t))}catch(e){}return t.stopPropagation=C,t.preventDefault=C,t.target=t.target||{},T(t,"detail")||(t.detail={}),T(t,"markerId")&&(t.detail="object"===(0,c.default)(t.detail)?t.detail:{},t.detail.markerId=t.markerId),M(t.detail)&&(t.target=Object.assign({},t.target,t.detail)),t}function bn(t,e){var n=t;return e.forEach((function(e){var r=e[0],i=e[2];if(r||"undefined"!==typeof i){var o,a=e[1],s=e[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):t.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(e){return t.__get_value(a,e)===i})):M(o)?n=Object.keys(o).find((function(e){return t.__get_value(a,o[e])===i})):console.error("v-for 暂不支持循环数据:",o):n=o[i],s&&(n=t.__get_value(s,n))}})),n}function wn(t,e,n,r){var i={};return Array.isArray(e)&&e.length&&e.forEach((function(e,o){"string"===typeof e?e?"$event"===e?i["$"+o]=n:"arguments"===e?i["$"+o]=n.detail&&n.detail.__args__||r:0===e.indexOf("$event.")?i["$"+o]=t.__get_value(e.replace("$event.",""),n):i["$"+o]=t.__get_value(e):i["$"+o]=t:i["$"+o]=bn(t,e)})),i}function Sn(t){for(var e={},n=1;n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=!1,s=M(e.detail)&&e.detail.__args__||[e.detail];if(i&&(a=e.currentTarget&&e.currentTarget.dataset&&"wx"===e.currentTarget.dataset.comType,!n.length))return a?[e]:s;var l=wn(t,r,e,s),u=[];return n.forEach((function(t){"$event"===t?"__set_model"!==o||i?i&&!a?u.push(s[0]):u.push(e):u.push(e.target.value):Array.isArray(t)&&"o"===t[0]?u.push(Sn(t)):"string"===typeof t&&T(l,t)?u.push(l[t]):u.push(t)})),u}var Mn="~",Tn="^";function Cn(t,e){return t===e||"regionchange"===e&&("begin"===t||"end"===t)}function In(t){var e=t.$parent;while(e&&e.$parent&&(e.$options.generic||e.$parent.$options.generic||e.$scope._$vuePid))e=e.$parent;return e&&e.$parent}function kn(t){var e=this;t=xn(t);var n=(t.currentTarget||t.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var i=t.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s=r.charAt(0)===Tn;r=s?r.slice(1):r;var l=r.charAt(0)===Mn;r=l?r.slice(1):r,a&&Cn(i,r)&&a.forEach((function(n){var r=n[0];if(r){var i=e.$vm;if(i.$options.generic&&(i=In(i)||i),"$emit"===r)return void i.$emit.apply(i,An(e.$vm,t,n[1],n[2],s,r));var a=i[r];if(!w(a)){var u="page"===e.$vm.mpType?"Page":"Component",c=e.route||e.is;throw new Error("".concat(u,' "').concat(c,'" does not have a method "').concat(r,'"'))}if(l){if(a.once)return;a.once=!0}var f=An(e.$vm,t,n[1],n[2],s,r);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(f=f.concat([,,,,,,,,,,t])),o.push(a.apply(i,f))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var On={},Pn=[];function Dn(t){if(t){var e=On[t];return delete On[t],e}return Pn.shift()}var En=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Ln(){p.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var t=p.default.prototype.__call_hook;p.default.prototype.__call_hook=function(e,n){return"onLoad"===e&&n&&n.__id__&&(this.__eventChannel__=Dn(n.__id__),delete n.__id__),t.call(this,e,n)}}function Bn(){var t={},e={};function n(t){var e=this.$options.propsData.vueId;if(e){var n=e.split(",")[0];t(n)}}p.default.prototype.$hasSSP=function(n){var r=t[n];return r||(e[n]=this,this.$on("hook:destroyed",(function(){delete e[n]}))),r},p.default.prototype.$getSSP=function(e,n,r){var i=t[e];if(i){var o=i[n]||[];return r?o:o[0]}},p.default.prototype.$setSSP=function(e,r){var i=0;return n.call(this,(function(n){var o=t[n],a=o[e]=o[e]||[];a.push(r),i=a.length-1})),i},p.default.prototype.$initSSP=function(){n.call(this,(function(e){t[e]={}}))},p.default.prototype.$callSSP=function(){n.call(this,(function(t){e[t]&&e[t].$forceUpdate()}))},p.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete t[r],delete e[r])}})}function Rn(e,n){var r=n.mocks,i=n.initRefs;Ln(),Bn(),e.$options.store&&(p.default.prototype.$store=e.$options.store),_(p.default),p.default.prototype.mpHost="mp-weixin",p.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var t=getApp();t.$vm&&t.$vm.$i18n&&(this._i18n=t.$vm.$i18n)}"app"!==this.mpType&&(i(this),on(this,r))}}});var o={onLaunch:function(n){this.$vm||(t.canIUse&&!t.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=e,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",n),this.$vm.__call_hook("onLaunch",n))}};o.globalData=e.$options.globalData||{};var a=e.$options.methods;return a&&Object.keys(a).forEach((function(t){o[t]=a[t]})),At(p.default,e,It(t.getSystemInfoSync().language)||yt),sn(o,En),ln(o,e.$options),o}function Nn(t){return Rn(t,{mocks:je,initRefs:$e})}function jn(t){return App(Nn(t)),t}var zn=/[!'()*]/g,Fn=function(t){return"%"+t.charCodeAt(0).toString(16)},Vn=/%2C/g,Hn=function(t){return encodeURIComponent(t).replace(zn,Fn).replace(Vn,",")};function Un(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hn,n=t?Object.keys(t).map((function(n){var r=t[n];if(void 0===r)return"";if(null===r)return e(n);if(Array.isArray(r)){var i=[];return r.forEach((function(t){void 0!==t&&(null===t?i.push(e(n)):i.push(e(n)+"="+e(t)))})),i.join("&")}return e(n)+"="+e(r)})).filter((function(t){return t.length>0})).join("&"):null;return n?"?".concat(n):""}function Wn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isPage,r=e.initRelation,i=arguments.length>2?arguments[2]:void 0,o=fn(p.default,t),s=(0,a.default)(o,2),l=s[0],u=s[1],c=d({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(c,u["mp-weixin"].options);var f={options:c,data:dn(u,p.default.prototype),behaviors:yn(u,Fe),properties:_n(u.props,!1,u.__file,c),lifetimes:{attached:function(){var t=this.properties,e={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:t};hn(t.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:e}),this.$vm=new l(e),pn(this.$vm,t.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(t){this.$vm&&this.$vm.__call_hook("onPageShow",t)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(t){this.$vm&&this.$vm.__call_hook("onPageResize",t)}},methods:{__l:Ge,__e:kn}};return u.externalClasses&&(f.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(t){f.methods[t]=function(e){return this.$vm[t](e)}})),i?[f,u,l]:n?f:[f,l]}function $n(t,e){return Wn(t,{isPage:Ve,initRelation:He},e)}var Gn=["onShow","onHide","onUnload"];function Yn(t){var e=$n(t,!0),n=(0,a.default)(e,2),r=n[0],i=n[1];return sn(r.methods,Gn,i),r.methods.onLoad=function(t){this.options=t;var e=Object.assign({},t);delete e.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Un(e)},this.$vm.$mp.query=t,this.$vm.__call_hook("onLoad",t)},ln(r.methods,t,["onReady"]),qe(r.methods,i.methods),r}function Qn(t){return Yn(t)}function Xn(t){return Component(Qn(t))}function qn(t){return Component($n(t))}function Zn(e){var n=Nn(e),r=getApp({allowDefault:!0});e.$scope=r;var i=r.globalData;if(i&&Object.keys(n.globalData).forEach((function(t){T(i,t)||(i[t]=n.globalData[t])})),Object.keys(n).forEach((function(t){T(r,t)||(r[t]=n[t])})),w(n.onShow)&&t.onAppShow&&t.onAppShow((function(){for(var t=arguments.length,n=new Array(t),r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:c;if(!e)return[t];var r=this._caches[t];return r||(r=d(t,n),this._caches[t]=r),g(r,e)}}]),t}();e.Formatter=f;var p=/^(?:\d)+/,h=/^(?:\w)+/;function d(t,e){var n=(0,o.default)(e,2),r=n[0],i=n[1],a=[],s=0,l="";while(s-1?v:t.indexOf("-hant")>-1||A(t,["-tw","-hk","-mo","-cht"])?y:v;var n=[m,_,x];e&&Object.keys(e).length>0&&(n=Object.keys(e));var r=M(t,n);return r||void 0}}var C=function(){function t(e){var n=e.locale,r=e.fallbackLocale,i=e.messages,o=e.watcher,s=e.formater;(0,a.default)(this,t),this.locale=m,this.fallbackLocale=m,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||S,this.messages=i||{},this.setLocale(n||m),o&&this.watchLocale(o)}return(0,s.default)(t,[{key:"setLocale",value:function(t){var e=this,n=this.locale;this.locale=T(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(t){t(e.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(t){var e=this,n=this.watchers.push(t)-1;return function(){e.watchers.splice(n,1)}}},{key:"add",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[t];r?n?Object.assign(r,e):Object.keys(e).forEach((function(t){w(r,t)||(r[t]=e[t])})):this.messages[t]=e}},{key:"f",value:function(t,e,n){return this.formater.interpolate(t,e,n).join("")}},{key:"t",value:function(t,e,n){var r=this.message;return"string"===typeof e?(e=T(e,this.messages),e&&(r=this.messages[e])):n=e,w(r,t)?this.formater.interpolate(r[t],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}]),t}();function I(t,e){t.$watchLocale?t.$watchLocale((function(t){e.setLocale(t)})):t.$watch((function(){return t.$locale}),(function(t){e.setLocale(t)}))}function k(){return"undefined"!==typeof t&&t.getLocale?t.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():m}function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof t){var i=[e,t];t=i[0],e=i[1]}"string"!==typeof t&&(t=k()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||m);var o=new C({locale:t,fallbackLocale:n,messages:e,watcher:r}),a=function(t,e){if("function"!==typeof getApp)a=function(t,e){return o.t(t,e)};else{var n=!1;a=function(t,e){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,I(r,o))),o.t(t,e)}}return a(t,e)};return{i18n:o,f:function(t,e,n){return o.f(t,e,n)},t:function(t,e){return a(t,e)},add:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(t,e,n)},watch:function(t){return o.watchLocale(t)},getLocale:function(){return o.getLocale()},setLocale:function(t){return o.setLocale(t)}}}e.I18n=C;var P,D=function(t){return"string"===typeof t};function E(t,e){return P||(P=new f),F(t,(function(t,n){var r=t[n];return D(r)?!!R(r,e)||void 0:E(r,e)}))}function L(t,e,n){return P||(P=new f),F(t,(function(t,r){var i=t[r];D(i)?R(i,n)&&(t[r]=N(i,e,n)):L(i,e,n)})),t}function B(t,e){var n=e.locale,r=e.locales,i=e.delimiters;if(!R(t,i))return t;P||(P=new f);var o=[];Object.keys(r).forEach((function(t){t!==n&&o.push({locale:t,values:r[t]})})),o.unshift({locale:n,values:r[n]});try{return JSON.stringify(z(JSON.parse(t),o,i),null,2)}catch(a){}return t}function R(t,e){return t.indexOf(e[0])>-1}function N(t,e,n){return P.interpolate(t,e,n).join("")}function j(t,e,n,r){var i=t[e];if(D(i)){if(R(i,r)&&(t[e]=N(i,n[0].values,r),n.length>1)){var o=t[e+"Locales"]={};n.forEach((function(t){o[t.locale]=N(i,t.values,r)}))}}else z(i,n,r)}function z(t,e,n){return F(t,(function(t,r){j(t,r,e,n)})),t}function F(t,e){if(Array.isArray(t)){for(var n=0;n-1}))):e}}function H(t){var e=[],n=t.split("-");while(n.length)e.push(n.join("-")),n.pop();return e}e.isString=D}).call(this,n(2)["default"],n(3))},function(t,e){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},function(t,e,n){var r=n(12);function i(t,e){for(var n=0;n=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function g(t){return null==t?"":Array.isArray(t)||f(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function y(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function S(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var A=/-(\w)/g,M=S((function(t){return t.replace(A,(function(t,e){return e?e.toUpperCase():""}))})),T=S((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,I=S((function(t){return t.replace(C,"-$1").toLowerCase()}));function k(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function O(t,e){return t.bind(e)}var P=Function.prototype.bind?O:k;function D(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function E(t,e){for(var n in e)t[n]=e[n];return t}function L(t){for(var e={},n=0;n0),rt=(tt&&tt.indexOf("android"),tt&&/iphone|ipad|ipod|ios/.test(tt)||"ios"===J),it=(tt&&/chrome\/\d+/.test(tt),tt&&/phantomjs/.test(tt),tt&&tt.match(/firefox\/(\d+)/),{}.watch);if(Z)try{var ot={};Object.defineProperty(ot,"passive",{get:function(){}}),window.addEventListener("test-passive",null,ot)}catch(zi){}var at=function(){return void 0===X&&(X=!Z&&!K&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),X},st=Z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"===typeof t&&/native code/.test(t.toString())}var ut,ct="undefined"!==typeof Symbol&<(Symbol)&&"undefined"!==typeof Reflect&<(Reflect.ownKeys);ut="undefined"!==typeof Set&<(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ft=B,pt=B,ht=B,dt=B,gt="undefined"!==typeof console,vt=/(?:^|[-_])(\w)/g,yt=function(t){return t.replace(vt,(function(t){return t.toUpperCase()})).replace(/[-_]/g,"")};ft=function(t,e){var n=e?ht(e):"";U.warnHandler?U.warnHandler.call(null,t,e,n):gt&&!U.silent&&console.error("[Vue warn]: "+t+n)},pt=function(t,e){gt&&!U.silent&&console.warn("[Vue tip]: "+t+(e?ht(e):""))},dt=function(t,e){if(t.$root===t)return t.$options&&t.$options.__file?""+t.$options.__file:"";var n="function"===typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t,r=n.name||n._componentTag,i=n.__file;if(!r&&i){var o=i.match(/([^/\\]+)\.vue$/);r=o&&o[1]}return(r?"<"+yt(r)+">":"")+(i&&!1!==e?" at "+i:"")};var mt=function(t,e){var n="";while(e)e%2===1&&(n+=t),e>1&&(t+=t),e>>=1;return n};ht=function(t){if(t._isVue&&t.$parent){var e=[],n=0;while(t&&"PageBody"!==t.$options.name){if(e.length>0){var r=e[e.length-1];if(r.constructor===t.constructor){n++,t=t.$parent;continue}n>0&&(e[e.length-1]=[r,n],n=0)}!t.$options.isReserved&&e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map((function(t,e){return""+(0===e?"---\x3e ":mt(" ",5+2*e))+(Array.isArray(t)?dt(t[0])+"... ("+t[1]+" recursive calls)":dt(t))})).join("\n")}return"\n\n(found in "+dt(t)+")"};var _t=0,xt=function(){this.id=_t++,this.subs=[]};function bt(t){xt.SharedObject.targetStack.push(t),xt.SharedObject.target=t,xt.target=t}function wt(){xt.SharedObject.targetStack.pop(),xt.SharedObject.target=xt.SharedObject.targetStack[xt.SharedObject.targetStack.length-1],xt.target=xt.SharedObject.target}xt.prototype.addSub=function(t){this.subs.push(t)},xt.prototype.removeSub=function(t){x(this.subs,t)},xt.prototype.depend=function(){xt.SharedObject.target&&xt.SharedObject.target.addDep(this)},xt.prototype.notify=function(){var t=this.subs.slice();U.async||t.sort((function(t,e){return t.id-e.id}));for(var e=0,n=t.length;e-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===I(t)){var l=ce(String,i.type);(l<0||s0&&(a=Ze(a,(e||"")+"_"+n),qe(a[0])&&qe(u)&&(c[l]=Tt(u.text+a[0].text),a.shift()),c.push.apply(c,a)):s(a)?qe(u)?c[l]=Tt(u.text+a):""!==a&&c.push(Tt(a)):qe(a)&&qe(u)?c[l]=Tt(u.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),c.push(a)));return c}function Ke(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Je(t){var e=tn(t.$options.inject,t);e&&(Et(!1),Object.keys(e).forEach((function(n){jt(t,n,e[n],(function(){ft('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+n+'"',t)}))})),Et(!0))}function tn(t,e){if(t){for(var n=Object.create(null),r=ct?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=on(e,l,t[l]))}else i={};for(var u in e)u in i||(i[u]=an(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),G(i,"$stable",a),G(i,"$key",s),G(i,"$hasNormal",o),i}function on(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Xe(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function an(t,e){return function(){return t[e]}}function sn(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r.",t),a=new St(U.parsePlatformTagName(e),n,r,void 0,void 0,t)):a=n&&n.pre||!i(u=ne(t.$options,"components",e))?new St(e,n,r,void 0,void 0,t):In(u,n,t,r,e)):a=In(e,n,t,r);return Array.isArray(a)?a:i(a)?(i(l)&&Nn(a,l),i(n)&&jn(n),a):Mt()}function Nn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var a=0,s=t.children.length;a1?D(r):r;for(var i=D(arguments,1),o='event handler for "'+t+'"',a=0,s=r.length;adocument.createEvent("Event").timeStamp&&(_r=function(){return xr.now()})}function br(){var t,e;for(_r(),vr=!0,fr.sort((function(t,e){return t.id-e.id})),yr=0;yrcr)){ft("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}var n=pr.slice(),r=fr.slice();mr(),Ar(n),wr(r),st&&U.devtools&&st.emit("flush")}function wr(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&ur(r,"updated")}}function Sr(t){t._inactive=!1,pr.push(t)}function Ar(t){for(var e=0;eyr&&fr[n].id>t.id)n--;fr.splice(n+1,0,t)}else fr.push(t);if(!gr){if(gr=!0,!U.async)return void br();Ie(br)}}}var Tr=0,Cr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Tr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ut,this.newDepIds=new ut,this.expression=e.toString(),"function"===typeof e?this.getter=e:(this.getter=Q(e),this.getter||(this.getter=B,ft('Failed watching path: "'+e+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',t))),this.value=this.lazy?void 0:this.get()};Cr.prototype.get=function(){var t;bt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(zi){if(!this.user)throw zi;ge(zi,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ze(t),wt(),this.cleanupDeps()}return t},Cr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Cr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Cr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Mr(this)},Cr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(zi){ge(zi,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Cr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Cr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},Cr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||x(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var Ir={enumerable:!0,configurable:!0,get:B,set:B};function kr(t,e,n){Ir.get=function(){return this[e][n]},Ir.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Ir)}function Or(t){t._watchers=[];var e=t.$options;e.props&&Pr(t,e.props),e.methods&&zr(t,e.methods),e.data?Dr(t):Nt(t._data={},!0),e.computed&&Br(t,e.computed),e.watch&&e.watch!==it&&Fr(t,e.watch)}function Pr(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Et(!1);var a=function(a){i.push(a);var s=re(a,e,n,t),l=I(a);(_(l)||U.isReservedAttr(l))&&ft('"'+l+'" is a reserved attribute and cannot be used as component prop.',t),jt(r,a,s,(function(){if(!o&&!er){if("mp-baidu"===t.mpHost||"mp-kuaishou"===t.mpHost||"mp-xhs"===t.mpHost)return;if("value"===a&&Array.isArray(t.$options.behaviors)&&-1!==t.$options.behaviors.indexOf("uni://form-field"))return;if(t._getFormData)return;var e=t.$parent;while(e){if(e.__next_tick_pending)return;e=e.$parent}ft("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+a+'"',t)}})),a in t||kr(t,"_props",a)};for(var s in e)a(s);Et(!0)}function Dr(t){var e=t.$options.data;e=t._data="function"===typeof e?Er(e,t):e||{},f(e)||(e={},ft("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));var n=Object.keys(e),r=t.$options.props,i=t.$options.methods,o=n.length;while(o--){var a=n[o];i&&w(i,a)&&ft('Method "'+a+'" has already been defined as a data property.',t),r&&w(r,a)?ft('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',t):$(a)||kr(t,"_data",a)}Nt(e,!0)}function Er(t,e){bt();try{return t.call(e,e)}catch(zi){return ge(zi,e,"data()"),{}}finally{wt()}}var Lr={lazy:!0};function Br(t,e){var n=t._computedWatchers=Object.create(null),r=at();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;null==a&&ft('Getter is missing for computed property "'+i+'".',t),r||(n[i]=new Cr(t,a||B,B,Lr)),i in t?i in t.$data?ft('The computed property "'+i+'" is already defined in data.',t):t.$options.props&&i in t.$options.props&&ft('The computed property "'+i+'" is already defined as a prop.',t):Rr(t,i,o)}}function Rr(t,e,n){var r=!at();"function"===typeof n?(Ir.get=r?Nr(e):jr(n),Ir.set=B):(Ir.get=n.get?r&&!1!==n.cache?Nr(e):jr(n.get):B,Ir.set=n.set||B),Ir.set===B&&(Ir.set=function(){ft('Computed property "'+e+'" was assigned to but it has no setter.',this)}),Object.defineProperty(t,e,Ir)}function Nr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),xt.SharedObject.target&&e.depend(),e.value}}function jr(t){return function(){return t.call(this,this)}}function zr(t,e){var n=t.$options.props;for(var r in e)"function"!==typeof e[r]&&ft('Method "'+r+'" has type "'+typeof e[r]+'" in the component definition. Did you reference the function correctly?',t),n&&w(n,r)&&ft('Method "'+r+'" has already been defined as a prop.',t),r in t&&$(r)&&ft('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),t[r]="function"!==typeof e[r]?B:P(e[r],t)}function Fr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=D(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function qr(t){t.mixin=function(t){return this.options=ee(this.options,t),this}}function Zr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;o&&qt(o);var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=ee(n.options,t),a["super"]=n,a.options.props&&Kr(a),a.options.computed&&Jr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,V.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=E({},a.options),i[r]=a,a}}function Kr(t){var e=t.options.props;for(var n in e)kr(t.prototype,"_props",n)}function Jr(t){var e=t.options.computed;for(var n in e)Rr(t.prototype,n,e[n])}function ti(t){V.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&qt(t),"component"===e&&f(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function ei(t){return t&&(t.Ctor.options.name||t.tag)}function ni(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!p(t)&&t.test(e)}function ri(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=ei(a.componentOptions);s&&!e(s)&&ii(n,o,r,i)}}}function ii(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,x(n,e)}Wr(Qr),Hr(Qr),Jn(Qr),ir(Qr),Hn(Qr);var oi=[String,RegExp,Array],ai={name:"keep-alive",abstract:!0,props:{include:oi,exclude:oi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)ii(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){ri(t,(function(t){return ni(e,t)}))})),this.$watch("exclude",(function(e){ri(t,(function(t){return!ni(e,t)}))}))},render:function(){var t=this.$slots.default,e=Yn(t),n=e&&e.componentOptions;if(n){var r=ei(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!ni(o,r))||a&&r&&ni(a,r))return e;var s=this,l=s.cache,u=s.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;l[c]?(e.componentInstance=l[c].componentInstance,x(u,c),u.push(c)):(l[c]=e,u.push(c),this.max&&u.length>parseInt(this.max)&&ii(l,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},si={KeepAlive:ai};function li(t){var e={get:function(){return U},set:function(){ft("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(t,"config",e),t.util={warn:ft,extend:E,mergeOptions:ee,defineReactive:jt},t.set=zt,t.delete=Ft,t.nextTick=Ie,t.observable=function(t){return Nt(t),t},t.options=Object.create(null),V.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,E(t.options.components,si),Xr(t),qr(t),Zr(t),ti(t)}li(Qr),Object.defineProperty(Qr.prototype,"$isServer",{get:at}),Object.defineProperty(Qr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Qr,"FunctionalRenderContext",{value:wn}),Qr.version="2.6.11";var ui="[object Array]",ci="[object Object]",fi="[object Null]",pi="[object Undefined]";function hi(t,e){var n={};return di(t,e),vi(t,e,"",n),n}function di(t,e){if(t!==e){var n=mi(t),r=mi(e);if(n==ci&&r==ci){if(Object.keys(t).length>=Object.keys(e).length)for(var i in e){var o=t[i];void 0===o?t[i]=null:di(o,e[i])}}else n==ui&&r==ui&&t.length>=e.length&&e.forEach((function(e,n){di(t[n],e)}))}}function gi(t,e){return t!==fi&&t!==pi||e!==fi&&e!==pi}function vi(t,e,n,r){if(t!==e){var i=mi(t),o=mi(e);if(i==ci)if(o!=ci||Object.keys(t).length1&&(e[n[0].trim()]=n[1].trim())}})),e}));function Ei(t){return Array.isArray(t)?L(t):"string"===typeof t?Di(t):t}var Li=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Bi(t,e){var n=e.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?t[r]:Bi(t[r],n.slice(1).join("."))}function Ri(t){t.config.errorHandler=function(e,n,r){t.util.warn("Error in "+r+': "'+e.toString()+'"',n),console.error(e);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(e)};var e=t.prototype.$emit;t.prototype.$emit=function(t){if(this.$scope&&t){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,t,{__args__:D(arguments,1)})}catch(r){}}return e.apply(this,arguments)},t.prototype.$nextTick=function(t){return bi(this,t)},Li.forEach((function(e){t.prototype[e]=function(t){return this.$scope&&this.$scope[e]?this.$scope[e](t):"undefined"!==typeof my?"createSelectorQuery"===e?my.createSelectorQuery(t):"createIntersectionObserver"===e?my.createIntersectionObserver(t):void 0:void 0}})),t.prototype.__init_provide=Ke,t.prototype.__init_injections=Je,t.prototype.__call_hook=function(t,e){var n=this;bt();var r,i=n.$options[t],o=t+" hook";if(i)for(var a=0,s=i.length;a0&&void 0!==arguments[0]?arguments[0]:"url",n=this[t];n&&e[this.linkType]({url:n})},$uGetRect:function(t,n){var r=this;return new Promise((function(i){e.createSelectorQuery().in(r)[n?"selectAll":"select"](t).boundingClientRect((function(t){n&&Array.isArray(t)&&t.length&&i(t),!n&&t&&i(t)})).exec()}))},getParentData:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent={}),this.parent=e.$u.$parent.call(this,n),this.parent.children&&-1===this.parent.children.indexOf(this)&&this.parent.children.push(this),this.parent&&this.parentData&&Object.keys(this.parentData).map((function(e){t.parentData[e]=t.parent[e]}))},preventEvent:function(t){t&&"function"===typeof t.stopPropagation&&t.stopPropagation()},noop:function(t){this.preventEvent(t)}},onReachBottom:function(){e.$emit("uOnReachBottom")},beforeDestroy:function(){var t=this;if(this.parent&&e.$u.test.array(this.parent.children)){var n=this.parent.children;n.map((function(e,r){e===t&&n.splice(r,1)}))}}}}).call(this,n(2)["default"])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={options:{virtualHost:!0}};e.default=r},function(t,e,n){"use strict";var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(37)),o=i.default;e.default=o},function(t,e,n){"use strict";var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(11)),o=r(n(23)),a=r(n(24)),s=r(n(38)),l=r(n(46)),u=r(n(47)),c=r(n(48)),f=n(41),p=r(n(49));function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};(0,o.default)(this,t),(0,f.isPlainObject)(e)||(e={},console.warn("设置全局参数必须接收一个Object")),this.config=(0,p.default)(d(d({},c.default),e)),this.interceptors={request:new l.default,response:new l.default}}return(0,a.default)(t,[{key:"setConfig",value:function(t){this.config=t(this.config)}},{key:"middleware",value:function(t){t=(0,u.default)(this.config,t);var e=[s.default,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n}},{key:"request",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.middleware(t)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.middleware(d({url:t,method:"GET"},e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(d({url:t,data:e,method:"POST"},n))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(d({url:t,data:e,method:"PUT"},n))}},{key:"delete",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(d({url:t,data:e,method:"DELETE"},n))}},{key:"connect",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(d({url:t,data:e,method:"CONNECT"},n))}},{key:"head",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(d({url:t,data:e,method:"HEAD"},n))}},{key:"options",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(d({url:t,data:e,method:"OPTIONS"},n))}},{key:"trace",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(d({url:t,data:e,method:"TRACE"},n))}},{key:"upload",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.url=t,e.method="UPLOAD",this.middleware(e)}},{key:"download",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.url=t,e.method="DOWNLOAD",this.middleware(e)}}]),t}();e.default=g},function(t,e,n){"use strict";var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(39)),o=function(t){return(0,i.default)(t)};e.default=o},function(t,e,n){"use strict";(function(t){var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(11)),o=r(n(40)),a=r(n(42)),s=r(n(45)),l=n(41);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.method||t.method||"GET",r={baseURL:t.baseURL||"",method:n,url:e.url||"",params:e.params||{},custom:s(s({},t.custom||{}),e.custom||{}),header:(0,o.deepMerge)(t.header||{},e.header||{})},i=["getTask","validateStatus"];if(r=s(s({},r),l(i,t,e)),"DOWNLOAD"===n);else if("UPLOAD"===n){delete r.header["content-type"],delete r.header["Content-Type"];var a=["filePath","name","formData"];a.forEach((function(t){(0,o.isUndefined)(e[t])||(r[t]=e[t])}))}else{var u=["data","timeout","dataType","responseType"];r=s(s({},r),l(u,t,e))}return r};e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,validateStatus:function(t){return t>=200&&t<300}};e.default=r},function(t,e,n){"use strict";(function(t){var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(13)),o=function(){function e(t,e){return null!=e&&t instanceof e}var n,r,o;try{n=Map}catch(p){n=function(){}}try{r=Set}catch(p){r=function(){}}try{o=Promise}catch(p){o=function(){}}function a(s,l,u,c,p){"object"===(0,i.default)(l)&&(u=l.depth,c=l.prototype,p=l.includeNonEnumerable,l=l.circular);var h=[],d=[],g="undefined"!=typeof t;function v(s,u){if(null===s)return null;if(0===u)return s;var y,m;if("object"!=(0,i.default)(s))return s;if(e(s,n))y=new n;else if(e(s,r))y=new r;else if(e(s,o))y=new o((function(t,e){s.then((function(e){t(v(e,u-1))}),(function(t){e(v(t,u-1))}))}));else if(a.__isArray(s))y=[];else if(a.__isRegExp(s))y=new RegExp(s.source,f(s)),s.lastIndex&&(y.lastIndex=s.lastIndex);else if(a.__isDate(s))y=new Date(s.getTime());else{if(g&&t.isBuffer(s))return t.from?y=t.from(s):(y=new t(s.length),s.copy(y)),y;e(s,Error)?y=Object.create(s):"undefined"==typeof c?(m=Object.getPrototypeOf(s),y=Object.create(m)):(y=Object.create(c),m=c)}if(l){var _=h.indexOf(s);if(-1!=_)return d[_];h.push(s),d.push(y)}for(var x in e(s,n)&&s.forEach((function(t,e){var n=v(e,u-1),r=v(t,u-1);y.set(n,r)})),e(s,r)&&s.forEach((function(t){var e=v(t,u-1);y.add(e)})),s){var b=Object.getOwnPropertyDescriptor(s,x);b&&(y[x]=v(s[x],u-1));try{var w=Object.getOwnPropertyDescriptor(s,x);if("undefined"===w.set)continue;y[x]=v(s[x],u-1)}catch(I){if(I instanceof TypeError)continue;if(I instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(s);for(x=0;x * @license MIT */ var r=n(51),i=n(52),o=n(53);function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),u.alloc(+t)}function x(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return q(t).length;e=(""+e).toLowerCase(),r=!0}}function b(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return D(this,e,n);case"ascii":return B(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return P(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function w(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function S(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:A(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):A(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function A(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var f=!0,p=0;pi&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return L(r)}e.Buffer=u,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return p(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return M(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return I(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function L(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var n="",r=0;while(rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function U(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(t,e,n,r,o){return o||U(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function $(t,e,n,r,o){return o||U(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e0&&(i*=256))r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||z(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||z(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||z(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||z(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||z(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var r=this[t],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||z(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||z(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||z(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||z(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||z(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||z(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||z(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||z(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||z(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a=0&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return W(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return W(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return $(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return $(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function J(t){return r.toByteArray(Y(t))}function tt(t,e,n,r){for(var i=0;i=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n(3))},function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=p,e.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function f(t,e,n){return 3*(e+n)/4-n}function p(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(f(t,a,s)),c=0,p=s>0?a-4:a;for(n=0;n>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function h(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,n){for(var r,i=[],o=e;ol?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,f=n?i-1:0,p=n?-1:1,h=t[e+f];for(f+=p,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+t[e+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+f],f+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+f>=1?p/l:p*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*l-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=d,s/=256,i-=8);for(a=a<0;t[n+h]=255&a,h+=d,a/=256,u-=8);t[n+h-d]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";(function(t){var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(55)),o=r(n(57)),a=r(n(23)),s=r(n(24)),l=function(){function e(){(0,a.default)(this,e),this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}return(0,s.default)(e,[{key:"addRootPath",value:function(t){return"/"===t[0]?t:"/".concat(t)}},{key:"mixinParam",value:function(e,n){e=e&&this.addRootPath(e);var r="";return/.*\/.*\?.*=.*/.test(e)?(r=t.$u.queryParams(n,!1),e+"&".concat(r)):(r=t.$u.queryParams(n),e+r)}},{key:"route",value:function(){var e=(0,o.default)(i.default.mark((function e(){var n,r,o,a,s=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=s.length>0&&void 0!==s[0]?s[0]:{},r=s.length>1&&void 0!==s[1]?s[1]:{},o={},"string"===typeof n?(o.url=this.mixinParam(n,r),o.type="navigateTo"):(o=t.$u.deepMerge(this.config,n),o.url=this.mixinParam(n.url,n.params)),o.url!==t.$u.page()){e.next=6;break}return e.abrupt("return");case 6:if(r.intercept&&(this.config.intercept=r.intercept),o.params=r,o=t.$u.deepMerge(this.config,o),"function"!==typeof t.$u.routeIntercept){e.next=16;break}return e.next=12,new Promise((function(e,n){t.$u.routeIntercept(o,e)}));case 12:a=e.sent,a&&this.openPage(o),e.next=17;break;case 16:this.openPage(o);case 17:case"end":return e.stop()}}),e,this)})));function n(){return e.apply(this,arguments)}return n}()},{key:"openPage",value:function(e){var n=e.url,r=(e.type,e.delta),i=e.animationType,o=e.animationDuration;"navigateTo"!=e.type&&"to"!=e.type||t.navigateTo({url:n,animationType:i,animationDuration:o}),"redirectTo"!=e.type&&"redirect"!=e.type||t.redirectTo({url:n}),"switchTab"!=e.type&&"tab"!=e.type||t.switchTab({url:n}),"reLaunch"!=e.type&&"launch"!=e.type||t.reLaunch({url:n}),"navigateBack"!=e.type&&"back"!=e.type||t.navigateBack({delta:r})}}]),e}(),u=(new l).route;e.default=u}).call(this,n(2)["default"])},function(t,e,n){var r=n(56)();t.exports=r},function(t,e,n){var r=n(13)["default"];function i(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(P){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new I(r||[]);return a(o,"_invoke",{value:A(t,n,s)}),o}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=p;var d={};function g(){}function v(){}function y(){}var m={};f(m,l,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(k([])));x&&x!==n&&o.call(x,l)&&(m=x);var b=y.prototype=g.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(i,a,s,l){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==r(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(f).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}))}l(u.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function A(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=h(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function M(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,M(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=h(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function k(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,l,"next",t)}function l(t){n(a,i,o,s,l,"throw",t)}s(void 0)}))}}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},function(t,e,n){"use strict";function r(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=i(t,!1),a=r[0],s=r[1],l=r[2],u=i(e,!1),c=u[0],f=u[1],p=u[2],h=(c-a)/n,d=(f-s)/n,g=(p-l)/n,v=[],y=0;y1&&void 0!==arguments[1])||arguments[1],n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(t=String(t).toLowerCase(),t&&n.test(t)){if(4===t.length){for(var r="#",i=1;i<4;i+=1)r+=t.slice(i,i+1).concat(t.slice(i,i+1));t=r}for(var o=[],a=1;a<7;a+=2)o.push(parseInt("0x".concat(t.slice(a,a+2))));return e?"rgb(".concat(o[0],",").concat(o[1],",").concat(o[2],")"):o}if(/^(rgb|RGB)/.test(t)){var s=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return s.map((function(t){return Number(t)}))}return t}function o(t){var e=t,n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(e)){for(var r=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),i="#",o=0;o=0}function x(t,e){return t>=e[0]&&t<=e[1]}function b(t,e){return t.length>=e[0]&&t.length<=e[1]}function w(t){var e=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return e.test(t)}function S(t){switch((0,i.default)(t)){case"undefined":return!0;case"string":if(0==t.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!t)return!0;break;case"number":if(0===t||isNaN(t))return!0;break;case"object":if(null===t||0===t.length)return!0;for(var e in t)return!1;return!0}return!1}function A(t){if("string"===typeof t)try{var e=JSON.parse(t);return!("object"!==(0,i.default)(e)||!e)}catch(n){return!1}return!1}function M(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function T(t){return"[object Object]"===Object.prototype.toString.call(t)}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(e,"}$")).test(t)}function I(t){return"function"===typeof t}function k(t){return T(t)&&I(t.then)&&I(t.catch)}function O(t){var e=t.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return n.test(e)}function P(t){var e=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return e.test(t)}function D(t){return t&&"[object RegExp]"===Object.prototype.toString.call(t)}var E={email:o,mobile:a,url:s,date:l,dateISO:u,number:c,digits:p,idCard:h,carNo:d,amount:g,chinese:v,letter:y,enOrNum:m,contains:_,range:x,rangeLength:b,empty:S,isEmpty:S,jsonString:A,landline:w,object:T,array:M,code:C,func:I,promise:k,video:P,image:O,regExp:D,string:f};e.default=E},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=null;function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==r&&clearTimeout(r),n){var i=!r;r=setTimeout((function(){r=null}),e),i&&"function"===typeof t&&t()}else r=setTimeout((function(){"function"===typeof t&&t()}),e)}var o=i;e.default=o},function(t,e,n){"use strict";var r;function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n?r||(r=!0,"function"===typeof t&&t(),setTimeout((function(){r=!1}),e)):r||(r=!0,setTimeout((function(){r=!1,"function"===typeof t&&t()}),e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i;e.default=o},function(t,e,n){"use strict";(function(t){var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(5)),o=r(n(13)),a=r(n(59)),s=n(63);function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(t,Math.min(e,Number(n)))}function u(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a.default.number(e)?n?"".concat(e,"px"):Number(e):/(rpx|upx)$/.test(e)?n?"".concat(t.upx2px(parseInt(e)),"px"):Number(t.upx2px(parseInt(e))):n?"".concat(parseInt(e),"px"):parseInt(e)}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30;return new Promise((function(e){setTimeout((function(){e()}),t)}))}function f(){return t.getSystemInfoSync().platform.toLowerCase()}function p(){return t.getSystemInfoSync()}function h(t,e){if(t>=0&&e>0&&e>=t){var n=e-t+1;return Math.floor(Math.random()*n+t)}return 0}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(n=n||r.length,t)for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:void 0,e=this.$parent;while(e){if(!e.$options||e.$options.name===t)return e;e=e.$parent}return!1}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object";if(a.default.empty(t)||"object"===(0,o.default)(t)&&"object"===e||"string"===e&&"string"===typeof t)return t;if("object"===e){t=A(t);for(var n=t.split(";"),r={},i=0;i0&&void 0!==arguments[0]?arguments[0]:"auto",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!==(e=null===(n=t)||void 0===n||null===(r=n.$u)||void 0===r||null===(i=r.config)||void 0===i?void 0:i.unit)&&void 0!==e?e:"px";return o=String(o),a.default.number(o)?"".concat(o).concat(s):o}function m(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null===t||"object"!==(0,o.default)(t))return t;if(n.has(t))return n.get(t);if(t instanceof Date)e=new Date(t.getTime());else if(t instanceof RegExp)e=new RegExp(t);else if(t instanceof Map)e=new Map(Array.from(t,(function(t){var e=(0,i.default)(t,2),r=e[0],o=e[1];return[r,m(o,n)]})));else if(t instanceof Set)e=new Set(Array.from(t,(function(t){return m(t,n)})));else if(Array.isArray(t))e=t.map((function(t){return m(t,n)}));else if("[object Object]"===Object.prototype.toString.call(t)){e=Object.create(Object.getPrototypeOf(t)),n.set(t,e);for(var r=0,a=Object.entries(t);r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=m(t),"object"!==(0,o.default)(t)||null===t||"object"!==(0,o.default)(e)||null===e)return t;var n=Array.isArray(t)?t.slice():Object.assign({},t);for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],a=n[r];i instanceof Date?n[r]=new Date(i):i instanceof RegExp?n[r]=new RegExp(i):i instanceof Map?n[r]=new Map(i):i instanceof Set?n[r]=new Set(i):"object"===(0,o.default)(i)&&null!==i?n[r]=_(a,i):n[r]=i}return n}function x(t){console.error("uView提示:".concat(t))}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.sort((function(){return Math.random()-.5}))}function w(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t=e?/^\d{10}$/.test(null===e||void 0===e?void 0:e.toString().trim())?new Date(1e3*e):"string"===typeof e&&/^\d+$/.test(e.trim())?new Date(Number(e)):"string"===typeof e&&e.includes("-")&&!e.includes("T")?new Date(e.replace(/-/g,"/")):new Date(e):new Date;var r={y:t.getFullYear().toString(),m:(t.getMonth()+1).toString().padStart(2,"0"),d:t.getDate().toString().padStart(2,"0"),h:t.getHours().toString().padStart(2,"0"),M:t.getMinutes().toString().padStart(2,"0"),s:t.getSeconds().toString().padStart(2,"0")};for(var o in r){var a=new RegExp("".concat(o,"+")).exec(n)||[],s=(0,i.default)(a,1),l=s[0];if(l){var u="y"===o&&2===l.length?2:0;n=n.replace(l,r[o].slice(u))}}return n}function S(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";null==t&&(t=Number(new Date)),t=parseInt(t),10==t.toString().length&&(t*=1e3);var n=(new Date).getTime()-t;n=parseInt(n/1e3);var r="";switch(!0){case n<300:r="刚刚";break;case n>=300&&n<3600:r="".concat(parseInt(n/60),"分钟前");break;case n>=3600&&n<86400:r="".concat(parseInt(n/3600),"小时前");break;case n>=86400&&n<2592e3:r="".concat(parseInt(n/86400),"天前");break;default:r=!1===e?n>=2592e3&&n<31536e3?"".concat(parseInt(n/2592e3),"个月前"):"".concat(parseInt(n/31536e3),"年前"):w(t,e)}return r}function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return t=String(t),"both"==e?t.replace(/^\s+|\s+$/g,""):"left"==e?t.replace(/^\s*/,""):"right"==e?t.replace(/(\s*$)/g,""):"all"==e?t.replace(/\s+/g,""):t}function M(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",r=e?"?":"",i=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");var o=function(e){var r=t[e];if(["",void 0,null].indexOf(r)>=0)return"continue";if(r.constructor===Array)switch(n){case"indices":for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:2e3;t.showToast({title:String(e),icon:"none",duration:n})}function C(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(t)&&(t="success");var n="";switch(t){case"primary":n="info-circle";break;case"info":n="info-circle";break;case"error":n="close-circle";break;case"warning":n="error-circle";break;case"success":n="checkmark-circle";break;default:n="checkmark-circle"}return e&&(n+="-fill"),n}function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";t="".concat(t).replace(/[^0-9+-Ee.]/g,"");var i=isFinite(+t)?+t:0,o=isFinite(+e)?Math.abs(e):0,a="undefined"===typeof r?",":r,l="undefined"===typeof n?".":n,u="";u=(o?(0,s.round)(i,o)+"":"".concat(Math.round(i))).split(".");var c=/(-?\d+)(\d{3})/;while(c.test(u[0]))u[0]=u[0].replace(c,"$1".concat(a,"$2"));return(u[1]||"").length1&&void 0!==arguments[1])||arguments[1],n=parseInt(t);return e?/s$/.test(t)?t:"".concat(t,t>30?"ms":"s"):/ms$/.test(t)?n:/s$/.test(t)?n>30?n:1e3*n:n}function O(t){return"00".concat(t).slice(-2)}function P(e,n){var r=t.$u.$parent.call(e,"u-form-item"),i=t.$u.$parent.call(e,"u-form");r&&i&&i.validateField(r.prop,(function(){}),n)}function D(t,e){if(t){if("string"!==typeof e||""===e)return"";if(-1!==e.indexOf(".")){for(var n=e.split("."),r=t[n[0]]||{},i=1;i1){var i=n[0];e[i]&&"object"===(0,o.default)(e[i])||(e[i]={});n.shift();t(e[i],n,r)}else e[n[0]]=r};if("string"!==typeof e||""===e);else if(-1!==e.indexOf(".")){var i=e.split(".");r(t,i,n)}else t[e]=n}}function L(){var t,e,n=getCurrentPages();return"/".concat(null!==(t=null===(e=n[n.length-1])||void 0===e?void 0:e.route)&&void 0!==t?t:"")}function B(){var t=getCurrentPages();return t}function R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=getCurrentPages(),n=e.length;return e[n-1+t]}function N(e){var n=e.props,r=void 0===n?{}:n,i=e.config,o=void 0===i?{}:i,a=e.color,s=void 0===a?{}:a,l=e.zIndex,u=void 0===l?{}:l,c=t.$u.deepMerge;t.$u.config=c(t.$u.config,o),t.$u.props=c(t.$u.props,r),t.$u.color=c(t.$u.color,s),t.$u.zIndex=c(t.$u.zIndex,u)}String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var n=this;if(n.length>=t)return String(n);var r=t-n.length,i=Math.ceil(r/e.length);while(i>>=1)e+=e,1===i&&(e+=e);return e.slice(0,r)+n});var j={range:l,getPx:u,sleep:c,os:f,sys:p,random:h,guid:d,$parent:g,addStyle:v,addUnit:y,deepClone:m,deepMerge:_,error:x,randomArray:b,timeFormat:w,timeFrom:S,trim:A,queryParams:M,toast:T,type2icon:C,priceFormat:I,getDuration:k,padZero:O,formValidate:P,getProperty:D,setProperty:E,page:L,pages:B,getHistoryPage:R,setConfig:N};e.default=j}).call(this,n(2)["default"])},function(t,e,n){"use strict";var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.divide=d,e.enableBoundaryChecking=v,e.minus=h,e.plus=p,e.round=g,e.times=f;var i=r(n(64)),o=!0;function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return+parseFloat(Number(t).toPrecision(e))}function s(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function l(t){if(-1===t.toString().indexOf("e"))return Number(t.toString().replace(".",""));var e=s(t);return e>0?a(Number(t)*Math.pow(10,e)):Number(t)}function u(t){o&&(t>Number.MAX_SAFE_INTEGER||t2)return c(e,f);var r=e[0],i=e[1],o=l(r),a=l(i),p=s(r)+s(i),h=o*a;return u(h),h/Math.pow(10,p)}function p(){for(var t=arguments.length,e=new Array(t),n=0;n2)return c(e,p);var r=e[0],i=e[1],o=Math.pow(10,Math.max(s(r),s(i)));return(f(r,o)+f(i,o))/o}function h(){for(var t=arguments.length,e=new Array(t),n=0;n2)return c(e,h);var r=e[0],i=e[1],o=Math.pow(10,Math.max(s(r),s(i)));return(f(r,o)-f(i,o))/o}function d(){for(var t=arguments.length,e=new Array(t),n=0;n2)return c(e,d);var r=e[0],i=e[1],o=l(r),p=l(i);return u(o),u(p),f(o/p,a(Math.pow(10,s(i)-s(r))))}function g(t,e){var n=Math.pow(10,e),r=d(Math.round(Math.abs(f(t,n))),n);return t<0&&0!==r&&(r=f(r,-1)),r}function v(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o=t}var y={times:f,plus:p,minus:h,divide:d,round:g,enableBoundaryChecking:v};e.default=y},function(t,e,n){var r=n(6),i=n(20),o=n(8),a=n(10);function s(t){return r(t)||i(t)||o(t)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r="2.0.36";console.log("\n %c uView V".concat(r," %c https://uviewui.com/ \n\n"),"color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;");var i={v:r,version:r,type:["primary","success","info","error","warning"],color:{"u-primary":"#2979ff","u-warning":"#ff9900","u-success":"#19be6b","u-error":"#fa3534","u-info":"#909399","u-main-color":"#303133","u-content-color":"#606266","u-tips-color":"#909399","u-light-color":"#c0c4cc"},unit:"px"};e.default=i},function(t,e,n){"use strict";var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(11)),o=r(n(65)),a=r(n(67)),s=r(n(68)),l=r(n(69)),u=r(n(70)),c=r(n(71)),f=r(n(72)),p=r(n(73)),h=r(n(74)),d=r(n(75)),g=r(n(76)),v=r(n(77)),y=r(n(78)),m=r(n(79)),_=r(n(80)),x=r(n(81)),b=r(n(82)),w=r(n(83)),S=r(n(84)),A=r(n(85)),M=r(n(86)),T=r(n(87)),C=r(n(88)),I=r(n(89)),k=r(n(90)),O=r(n(91)),P=r(n(92)),D=r(n(93)),E=r(n(94)),L=r(n(95)),B=r(n(96)),R=r(n(97)),N=r(n(98)),j=r(n(99)),z=r(n(100)),F=r(n(101)),V=r(n(102)),H=r(n(103)),U=r(n(104)),W=r(n(105)),$=r(n(106)),G=r(n(107)),Y=r(n(108)),Q=r(n(109)),X=r(n(110)),q=r(n(111)),Z=r(n(112)),K=r(n(113)),J=r(n(115)),tt=r(n(116)),et=r(n(117)),nt=r(n(118)),rt=r(n(119)),it=r(n(120)),ot=r(n(121)),at=r(n(122)),st=r(n(123)),lt=r(n(124)),ut=r(n(125)),ct=r(n(126)),ft=r(n(127)),pt=r(n(128)),ht=r(n(129)),dt=r(n(130)),gt=r(n(131)),vt=r(n(132)),yt=r(n(133)),mt=r(n(134)),_t=r(n(135)),xt=r(n(136)),bt=r(n(137)),wt=r(n(138)),St=r(n(139)),At=r(n(140)),Mt=r(n(141)),Tt=r(n(142)),Ct=r(n(143)),It=r(n(144)),kt=r(n(145)),Ot=r(n(146)),Pt=r(n(147)),Dt=r(n(148)),Et=r(n(149)),Lt=r(n(150)),Bt=r(n(151)),Rt=r(n(152)),Nt=r(n(153)),jt=r(n(154)),zt=r(n(155));function Ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vt(t){for(var e=1;e=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},i=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){i.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){i.emit("vuex:action",t,e)}),{prepend:!0}))}function a(t,e){return t.filter(e)[0]}function s(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=a(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=s(t[n],e)})),r}function l(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function u(t){return null!==t&&"object"===typeof t}function c(t){return t&&"function"===typeof t.then}function f(t,e){if(!t)throw new Error("[vuex] "+e)}function p(t,e){return function(){return t(e)}}var h=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(t,e){this._children[t]=e},h.prototype.removeChild=function(t){delete this._children[t]},h.prototype.getChild=function(t){return this._children[t]},h.prototype.hasChild=function(t){return t in this._children},h.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},h.prototype.forEachChild=function(t){l(this._children,t)},h.prototype.forEachGetter=function(t){this._rawModule.getters&&l(this._rawModule.getters,t)},h.prototype.forEachAction=function(t){this._rawModule.actions&&l(this._rawModule.actions,t)},h.prototype.forEachMutation=function(t){this._rawModule.mutations&&l(this._rawModule.mutations,t)},Object.defineProperties(h.prototype,d);var g=function(t){this.register([],t,!1)};function v(t,e,n){if(b(t,n),e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");v(t.concat(r),e.getChild(r),n.modules[r])}}g.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},g.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},g.prototype.update=function(t){v([],this.root,t)},g.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0),b(t,e);var i=new h(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&l(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},g.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r?r.runtime&&e.removeChild(n):console.warn("[vuex] trying to unregister module '"+n+"', which is not registered")},g.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var y,m={assert:function(t){return"function"===typeof t},expected:"function"},_={assert:function(t){return"function"===typeof t||"object"===typeof t&&"function"===typeof t.handler},expected:'function or object with "handler" function'},x={getters:m,mutations:m,actions:_};function b(t,e){Object.keys(x).forEach((function(n){if(e[n]){var r=x[n];l(e[n],(function(e,i){f(r.assert(e),w(t,n,i,e,r.expected))}))}}))}function w(t,e,n,r,i){var o=e+" should be "+i+' but "'+e+"."+n+'"';return t.length>0&&(o+=' in module "'+t.join(".")+'"'),o+=" is "+JSON.stringify(r)+".",o}var S=function t(e){var n=this;void 0===e&&(e={}),!y&&"undefined"!==typeof window&&window.Vue&&N(window.Vue),f(y,"must call Vue.use(Vuex) before creating a store instance."),f("undefined"!==typeof Promise,"vuex requires a Promise polyfill in this browser."),f(this instanceof t,"store must be called with the new operator.");var r=e.plugins;void 0===r&&(r=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new y,this._makeLocalGettersCache=Object.create(null);var a=this,s=this,l=s.dispatch,u=s.commit;this.dispatch=function(t,e){return l.call(a,t,e)},this.commit=function(t,e,n){return u.call(a,t,e,n)},this.strict=i;var c=this._modules.root.state;I(this,c,[],this._modules.root),C(this,c),r.forEach((function(t){return t(n)}));var p=void 0!==e.devtools?e.devtools:y.config.devtools;p&&o(this)},A={state:{configurable:!0}};function M(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function T(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;I(t,n,[],t._modules.root,!0),C(t,n,e)}function C(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};l(i,(function(e,n){o[n]=p(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=y.config.silent;y.config.silent=!0,t._vm=new y({data:{$$state:e},computed:o}),y.config.silent=a,t.strict&&L(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),y.nextTick((function(){return r.$destroy()})))}function I(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+n.join("/")),t._modulesNamespaceMap[a]=r),!o&&!i){var s=B(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+n.join(".")+'"'),y.set(s,l,r.state)}))}var u=r.context=k(t,a,n);r.forEachMutation((function(e,n){var r=a+n;P(t,r,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;D(t,r,i,u)})),r.forEachGetter((function(e,n){var r=a+n;E(t,r,e,u)})),r.forEachChild((function(r,o){I(t,e,n.concat(o),r,i)}))}function k(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=R(n,r,i),a=o.payload,s=o.options,l=o.type;if(s&&s.root||(l=e+l,t._actions[l]))return t.dispatch(l,a);console.error("[vuex] unknown local action type: "+o.type+", global type: "+l)},commit:r?t.commit:function(n,r,i){var o=R(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l,t._mutations[l])?t.commit(l,a,s):console.error("[vuex] unknown local mutation type: "+o.type+", global type: "+l)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return O(t,e)}},state:{get:function(){return B(t.state,n)}}}),i}function O(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function P(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function D(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return c(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function E(t,e,n,r){t._wrappedGetters[e]?console.error("[vuex] duplicate getter key: "+e):t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}function L(t){t._vm.$watch((function(){return this._data.$$state}),(function(){f(t._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,sync:!0})}function B(t,e){return e.reduce((function(t,e){return t[e]}),t)}function R(t,e,n){return u(t)&&t.type&&(n=e,e=t,t=t.type),f("string"===typeof t,"expects string as the type, but found "+typeof t+"."),{type:t,payload:e,options:n}}function N(t){y&&t===y?console.error("[vuex] already installed. Vue.use(Vuex) should be called only once."):(y=t,n(y))}A.state.get=function(){return this._vm._data.$$state},A.state.set=function(t){f(!1,"use store.replaceState() to explicit replace store state.")},S.prototype.commit=function(t,e,n){var r=this,i=R(t,e,n),o=i.type,a=i.payload,s=i.options,l={type:o,payload:a},u=this._mutations[o];u?(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(l,r.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+o+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+o)},S.prototype.dispatch=function(t,e){var n=this,r=R(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){console.warn("[vuex] error in before action subscribers: "),console.error(u)}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){console.warn("[vuex] error in after action subscribers: "),console.error(u)}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(u){console.warn("[vuex] error in error action subscribers: "),console.error(u)}e(t)}))}))}console.error("[vuex] unknown action type: "+i)},S.prototype.subscribe=function(t,e){return M(t,this._subscribers,e)},S.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return M(n,this._actionSubscribers,e)},S.prototype.watch=function(t,e,n){var r=this;return f("function"===typeof t,"store.watch only accepts a function."),this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},S.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},S.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),f(Array.isArray(t),"module path must be a string or an Array."),f(t.length>0,"cannot register the root module by using registerModule."),this._modules.register(t,e),I(this,this.state,t,this._modules.get(t),n.preserveState),C(this,this.state)},S.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),f(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit((function(){var n=B(e.state,t.slice(0,-1));y.delete(n,t[t.length-1])})),T(this)},S.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),f(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)},S.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),T(this,!0)},S.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(S.prototype,A);var j=$((function(t,e){var n={};return W(e)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),U(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=G(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),z=$((function(t,e){var n={};return W(e)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),U(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=G(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),F=$((function(t,e){var n={};return W(e)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),U(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||G(this.$store,"mapGetters",t)){if(i in this.$store.getters)return this.$store.getters[i];console.error("[vuex] unknown getter: "+i)}},n[r].vuex=!0})),n})),V=$((function(t,e){var n={};return W(e)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),U(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=G(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),H=function(t){return{mapState:j.bind(null,t),mapGetters:F.bind(null,t),mapMutations:z.bind(null,t),mapActions:V.bind(null,t)}};function U(t){return W(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function W(t){return Array.isArray(t)||u(t)}function $(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function G(t,e,n){var r=t._modulesNamespaceMap[n];return r||console.error("[vuex] module namespace not found in "+e+"(): "+n),r}function Y(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var f=s(t.state);"undefined"!==typeof c&&(l&&t.subscribe((function(t,o){var a=s(o);if(n(t,f,a)){var l=q(),u=i(t),p="mutation "+t.type+l;Q(c,p,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),X(c)}f=a})),u&&t.subscribeAction((function(t,n){if(o(t,n)){var r=q(),i=a(t),s="action "+t.type+r;Q(c,s,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),X(c)}})))}}function Q(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function X(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function q(){var t=new Date;return" @ "+K(t.getHours(),2)+":"+K(t.getMinutes(),2)+":"+K(t.getSeconds(),2)+"."+K(t.getMilliseconds(),3)}function Z(t,e){return new Array(e+1).join(t)}function K(t,e){return Z("0",e-t.toString().length)+t}var J={Store:S,install:N,version:"3.6.2",mapState:j,mapMutations:z,mapGetters:F,mapActions:V,createNamespacedHelpers:H,createLogger:Y};t.exports=J}).call(this,n(3))},function(t,e,n){"use strict";(function(t){var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=c,e.default=void 0,e.get=s,e.remove=u,e.set=l;var i=r(n(161));function o(t){return"".concat(i.default.prefix).concat(t)}function a(t){return"".concat(i.default.prefix).concat(t,"_exptime")}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t.getStorageSync(o(e)),i=Number(t.getStorageSync(a(e)));return(!i||i>(new Date).getTime())&&r||n}function l(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t.setStorageSync(o(e),n),r>0?t.setStorageSync(a(e),(new Date).getTime()+1e3*r):t.removeStorageSync(a(e))}function u(e){t.removeStorageSync(o(e)),t.removeStorageSync(a(e))}function c(){t.clearStorageSync()}var f={get:s,set:l,remove:u,clear:c};e.default=f}).call(this,n(2)["default"])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={server:"https://gupiao.365rise.top/ssdmn-gupiao-api",appKey:"bc097852a77d4ee9ce3435e0948d0e5e",prefix:"yyq_"};e.default=r},function(t,e,n){"use strict";(function(t){var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.get=f,e.post=p,e.request=c,e.upload=h;r(n(11)),r(n(163));var i=r(n(158)),o=r(n(161)),a=r(n(160)),s=n(167);n(178);function l(t){return t?404===t.statusCode?{code:404,data:"",msg:"请求失败,接口不存在"}:[200,304].includes(t.statusCode)?t.data:{code:t.statusCode||400,data:"",msg:t.statusText||"解析失败,数据异常"}:{code:500,data:"",msg:"请求失败,接口异常"}}function u(e){switch(e.code){case 200:case 204:return e.data;case 401:(0,s.toast)("登录信息已过期,请重新登录",(function(){i.default.commit("removeUserInfo"),t.reLaunch({url:"/pages/index/index"})}));break;case 403:(0,s.toast)("请求失败,暂无权限");break;case 426:(0,s.toast)("当前接口需要升级");break;default:(0,s.toast)(e.msg||"发生了一个未知错误");break}}function c(e,n,r,s){var c={"ssdmn-token":a.default.get("token")};return"POST"===r&&(c["Content-Type"]="application/json; charset=UTF-8"),s&&t.showLoading({title:"UPLOAD"===r?"上传中...":"加载中...",mask:!0}),new Promise((function(a,s){"UPLOAD"===r?(c["Content-Type"]="application/x-www-form-urlencoded",t.uploadFile({header:c,url:"".concat(o.default.server).concat(e),name:"file",files:Array.isArray(n)?n:null,filePath:Array.isArray(n)?null:n,success:function(t){i.default.commit("setApiError",""),a(u(JSON.parse(l(t))))},fail:function(t){i.default.commit("setApiError",null===t||void 0===t?void 0:t.errMsg),s(t)},complete:function(r){var i;console.log({PATH:e,DATA:null===(i=r.data)||void 0===i?void 0:i.data,REQ:{server:"".concat(o.default.server).concat(e),params:n,STRING:JSON.stringify(n)},RES:r}),t.stopPullDownRefresh(),t.hideLoading()}})):t.request({method:r,header:c,url:"".concat(o.default.server).concat(e),data:n,timeout:3e4,success:function(t){i.default.commit("setApiError",""),a(u(l(t)))},fail:function(t){i.default.commit("setApiError",null===t||void 0===t?void 0:t.errMsg),s(t)},complete:function(r){var i;console.log({PATH:e,DATA:null===(i=r.data)||void 0===i?void 0:i.data,REQ:{server:"".concat(o.default.server).concat(e),params:n,STRING:JSON.stringify(n)},RES:r}),t.stopPullDownRefresh(),t.hideLoading()}})}))}function f(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return c(t,e,"GET",n)}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return c(t,e,"POST",n)}function h(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return c(t,e,"UPLOAD",n)}var d={request:c,get:f,post:p,upload:h};e.default=d}).call(this,n(2)["default"])},function(t,e,n){(function(){var e=n(164),r=n(165).utf8,i=n(166),o=n(165).bin,a=function t(n,a){n.constructor==String?n=a&&"binary"===a.encoding?o.stringToBytes(n):r.stringToBytes(n):i(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||n.constructor===Uint8Array||(n=n.toString());for(var s=e.bytesToWords(n),l=8*n.length,u=1732584193,c=-271733879,f=-1732584194,p=271733878,h=0;h>>24)|4278255360&(s[h]<<24|s[h]>>>8);s[l>>>5]|=128<>>9<<4)]=l;var d=t._ff,g=t._gg,v=t._hh,y=t._ii;for(h=0;h>>0,c=c+_>>>0,f=f+x>>>0,p=p+b>>>0}return e.endian([u,c,f,p])};a._ff=function(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+(i>>>0)+a;return(s<>>32-o)+e},a._gg=function(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+(i>>>0)+a;return(s<>>32-o)+e},a._hh=function(t,e,n,r,i,o,a){var s=t+(e^n^r)+(i>>>0)+a;return(s<>>32-o)+e},a._ii=function(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+(i>>>0)+a;return(s<>>32-o)+e},a._blocksize=16,a._digestsize=16,t.exports=function(t,n){if(void 0===t||null===t)throw new Error("Illegal argument "+t);var r=e.wordsToBytes(a(t,n));return n&&n.asBytes?r:n&&n.asString?o.bytesToString(r):e.bytesToHex(r)}})()},function(t,e){(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],n=0,r=0;n>>5]|=t[n]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},bytesToHex:function(t){for(var e=[],n=0;n>>4).toString(16)),e.push((15&t[n]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],n=0;n>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r>>6-2*i);return n}};t.exports=n})()},function(t,e){var n={utf8:{stringToBytes:function(t){return n.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(n.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n * @license MIT */ t.exports=function(t){return null!=t&&(n(t)||r(t)||!!t._isBuffer)}},function(t,e,n){"use strict";(function(t){var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.addZero=p,e.beforeTime=g,e.checkPermission=w,e.fixTime=h,e.parentPage=l,e.payment=x,e.previewImage=m,e.safeHTML=u,e.safeNum=c,e.sec2minute=y,e.showPayment=_,e.throttle=v,e.timEmit=b,e.time=f,e.timeObj=d,e.toast=s;var i=r(n(55)),o=r(n(57)),a=r(n(168));r(n(158));function s(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e&&(t.hideToast(),t.showToast({icon:"none",title:e,duration:2e3,position:"bottom",success:function(){n&&n()}}))}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,e=getCurrentPages(),n=e[e.length-t];return n?n.$vm:null}function u(t){return(0,a.default)(t,{whiteList:{},stripIgnoreTag:!0,stripIgnoreTagBody:["script"]})}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:999999,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"100万+";return Number(t)>e?n:t}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD";return this.$dayjs.unix(t).format(e)}function p(t){return t=Number(t),t<10?"0".concat(t):t.toString()}function h(t){return 10===t.toString().length&&(t*=1e3),t}function d(t){var e=new Date(h(t));return isNaN(e)?{}:{year:e.getFullYear(),month:p(e.getMonth()+1),day:p(e.getDate()),hour:p(e.getHours()),minute:p(e.getMinutes())}}function g(t){if(!t)return"刚刚";t=h(t);var e=(Date.now()-t)/1e3;if(e<60)return"刚刚";if(e<3600)return"".concat(Math.floor(e/60),"分钟前");if(e<86400)return"".concat(Math.floor(e/3600),"小时前");if(e<=2592e3)return"".concat(Math.floor(e/86400),"天前");if(e>2592e3){var n=d(t);return"".concat(n.year,"-").concat(n.month,"-").concat(n.day)}}function v(t,e){var n=0,r=null;return function(){for(var i=this,o=arguments.length,a=new Array(o),s=0;se?(clearTimeout(r),r=null,n=Date.now(),t.apply(this,a)):r||(r=setTimeout((function(){t.apply(i,a)}),e))}}function y(t){return[parseInt(t/60%60),parseInt(t%60)].join(":").replace(/\b(\d)\b/g,"0$1")}function m(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];r&&t.previewImage({current:e||0,urls:n})}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=[{id:1,name:"微信"},{id:2,name:"支付宝"}];"ios"===t.getSystemInfoSync().platform&&n.unshift({id:99,name:"应用内购"}),t.showActionSheet({title:"请选择支付方式",itemList:this._.values(this._.mapValues(n,"name")),success:function(t){return e(n[t.tapIndex].id)}})}function x(e){var n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},o=this._.isNumber(e.type)?{97:"vcoinspay",98:"balancepay",99:"appleiap",1:"wxpay",2:"alipay"}[e.type]:e.type,a=function(e,n){t.getProvider({service:"payment",success:function(r){if(!r.provider.includes(e))return s("无效的支付方式"),i();s("正在发起支付..."),t.requestPayment({provider:e,orderInfo:n,success:function(t){console.log("支付成功",t),t&&i(t)},fail:function(t){console.log("支付失败",t),s("支付失败"),i()}})},fail:function(t){console.log("支付发起失败",t),s("支付发起失败"),i()}})};return o?"appleiap"===o?a(o,{quantity:1,productid:"test123",username:"".concat(null===(n=this.userinfo)||void 0===n?void 0:n.member_id,"|").concat(null===(r=this.userinfo)||void 0===r?void 0:r.nickname),manualFinishTransaction:!1}):void this.$api.post("/".concat(o),{attach:e.attach,order_sn:e.order_sn}).then((function(t){if(t){if(["balancepay","vcoinspay"].includes(o))return i(t);1===t.state&&a(o,t.datas)}else i()})):(s("无效的支付方式"),i())}function b(t,e){return s("注意!请勿在非APP平台使用TIM"),this.$tim[t](e)}function w(t,e){return S.apply(this,arguments)}function S(){return S=(0,o.default)(i.default.mark((function e(n,r){var o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=t.getSystemInfoSync(),a=o.platform,"android"!==a){e.next=6;break}return e.next=4,this.$permission.requestAndroidPermission("android.permission.".concat(n));case 4:e.t0=e.sent,s=1===e.t0;case 6:return"ios"===a&&(s=this.$permission.judgeIosPermission(r)),e.abrupt("return",s);case 8:case"end":return e.stop()}}),e,this)}))),S.apply(this,arguments)}}).call(this,n(2)["default"])},function(t,e,n){var r=n(169),i=n(176),o=n(177);function a(t,e){var n=new o(e);return n.process(t)}function s(){return"undefined"!==typeof self&&"undefined"!==typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope}e=t.exports=a,e.filterXSS=a,e.FilterXSS=o,function(){for(var t in r)e[t]=r[t];for(var n in i)e[n]=i[n]}(),"undefined"!==typeof window&&(window.filterXSS=t.exports),s()&&(self.filterXSS=t.exports)},function(t,e,n){var r=n(170).FilterCSS,i=n(170).getDefaultWhiteList,o=n(175);function a(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var s=new r;function l(t,e,n){}function u(t,e,n){}function c(t,e,n){}function f(t,e,n){}function p(t){return t.replace(d,"<").replace(g,">")}function h(t,e,n,r){if(n=k(n),"href"===e||"src"===e){if(n=o.trim(n),"#"===n)return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===e){if(b.lastIndex=0,b.test(n))return""}else if("style"===e){if(w.lastIndex=0,w.test(n))return"";if(S.lastIndex=0,S.test(n)&&(b.lastIndex=0,b.test(n)))return"";!1!==r&&(r=r||s,n=r.process(n))}return n=O(n),n}var d=//g,v=/"/g,y=/"/g,m=/&#([a-zA-Z0-9]*);?/gim,_=/:?/gim,x=/&newline;?/gim,b=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,w=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,S=/u\s*r\s*l\s*\(.*/gi;function A(t){return t.replace(v,""")}function M(t){return t.replace(y,'"')}function T(t){return t.replace(m,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function C(t){return t.replace(_,":").replace(x," ")}function I(t){for(var e="",n=0,r=t.length;n"===h||u===c-1){r+=n(t.slice(a,s)),p=t.slice(s,u+1),f=i(p),r+=e(s,r.length,f,p,o(p)),a=u+1,s=!1;continue}if('"'===h||"'"===h){var d=1,g=t.charAt(u-d);while(""===g.trim()||"="===g){if("="===g){l=h;continue t}g=t.charAt(u-++d)}}}else if(h===l){l=!1;continue}}return a0;e--){var n=t[e];if(" "!==n)return"="===n?e:-1}}function p(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}function h(t){return p(t)?t.substr(1,t.length-2):t}e.parseTag=a,e.parseAttr=l},function(t,e,n){var r=n(170).FilterCSS,i=n(169),o=n(176),a=o.parseTag,s=o.parseAttr,l=n(175);function u(t){return void 0===t||null===t}function c(t){var e=l.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};t=l.trim(t.slice(e+1,-1));var n="/"===t[t.length-1];return n&&(t=l.trim(t.slice(0,-1))),{html:t,closing:n}}function f(t){var e={};for(var n in t)e[n]=t[n];return e}function p(t){var e={};for(var n in t)Array.isArray(t[n])?e[n.toLowerCase()]=t[n].map((function(t){return t.toLowerCase()})):e[n.toLowerCase()]=t[n];return e}function h(t){t=f(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=i.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=p(t.whiteList||t.allowList):t.whiteList=i.whiteList,t.onTag=t.onTag||i.onTag,t.onTagAttr=t.onTagAttr||i.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||i.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||i.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||i.safeAttrValue,t.escapeHtml=t.escapeHtml||i.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new r(t.css))}h.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,n=e.options,r=n.whiteList,o=n.onTag,f=n.onIgnoreTag,p=n.onTagAttr,h=n.onIgnoreTagAttr,d=n.safeAttrValue,g=n.escapeHtml,v=e.cssFilter;n.stripBlankChar&&(t=i.stripBlankChar(t)),n.allowCommentTag||(t=i.stripCommentTag(t));var y=!1;n.stripIgnoreTagBody&&(y=i.StripTagBody(n.stripIgnoreTagBody,f),f=y.onIgnoreTag);var m=a(t,(function(t,e,n,i,a){var y={sourcePosition:t,position:e,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(r,n)},m=o(n,i,y);if(!u(m))return m;if(y.isWhite){if(y.isClosing)return"";var _=c(i),x=r[n],b=s(_.html,(function(t,e){var r=-1!==l.indexOf(x,t),i=p(n,t,e,r);return u(i)?r?(e=d(n,t,e,v),e?t+'="'+e+'"':t):(i=h(n,t,e,r),u(i)?void 0:i):i}));return i="<"+n,b&&(i+=" "+b),_.closing&&(i+=" /"),i+=">",i}return m=f(n,i,y),u(m)?g(i):m}),g);return y&&(m=y.remove(m)),m},t.exports=h},function(t,e,n){"use strict";var r=n(179),i=n(193),o=n(192);t.exports={formats:o,parse:i,stringify:r}},function(t,e,n){"use strict";var r=n(180),i=n(191),o=n(192),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},l=Array.isArray,u=String.prototype.split,c=Array.prototype.push,f=function(t,e){c.apply(t,l(e)?e:[e])},p=Date.prototype.toISOString,h=o["default"],d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},g=function(t){return"string"===typeof t||"number"===typeof t||"boolean"===typeof t||"symbol"===typeof t||"bigint"===typeof t},v={},y=function t(e,n,o,a,s,c,p,h,y,m,_,x,b,w,S,A){var M=e,T=A,C=0,I=!1;while(void 0!==(T=T.get(v))&&!I){var k=T.get(e);if(C+=1,"undefined"!==typeof k){if(k===C)throw new RangeError("Cyclic object value");I=!0}"undefined"===typeof T.get(v)&&(C=0)}if("function"===typeof h?M=h(n,M):M instanceof Date?M=_(M):"comma"===o&&l(M)&&(M=i.maybeMap(M,(function(t){return t instanceof Date?_(t):t}))),null===M){if(s)return p&&!w?p(n,d.encoder,S,"key",x):n;M=""}if(g(M)||i.isBuffer(M)){if(p){var O=w?n:p(n,d.encoder,S,"key",x);if("comma"===o&&w){for(var P=u.call(String(M),","),D="",E=0;E0?M.join(",")||null:void 0}];else if(l(h))L=h;else{var R=Object.keys(M);L=y?R.sort(y):R}for(var N=a&&l(M)&&1===M.length?n+"[]":n,j=0;j0?x+_:""}},function(t,e,n){"use strict";var r=n(181),i=n(187),o=n(189),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),p=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),d=i("Map.prototype.has",!0),g=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},v=function(t,e){var n=g(t,e);return n&&n.value},y=function(t,e,n){var r=g(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},m=function(t,e){return!!g(t,e)};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+o(t))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(t)return u(t,r)}else if(l){if(e)return p(e,r)}else if(n)return v(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(t)return f(t,r)}else if(l){if(e)return d(e,r)}else if(n)return m(n,r);return!1},set:function(r,i){s&&r&&("object"===typeof r||"function"===typeof r)?(t||(t=new s),c(t,r,i)):l?(e||(e=new l),h(e,r,i)):(n||(n={key:{},next:null}),y(n,r,i))}};return r}},function(t,e,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(k){l=null}var u=function(){throw new a},c=l?function(){try{return u}catch(t){try{return l(arguments,"callee").get}catch(e){return u}}}():u,f=n(182)(),p=Object.getPrototypeOf||function(t){return t.__proto__},h={},d="undefined"===typeof Uint8Array?r:p(Uint8Array),g={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?p(p([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},v=function t(e){var n;if("%AsyncFunction%"===e)n=s("async function () {}");else if("%GeneratorFunction%"===e)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=s("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(n=p(i.prototype))}return g[e]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=n(184),_=n(186),x=m.call(Function.call,Array.prototype.concat),b=m.call(Function.apply,Array.prototype.splice),w=m.call(Function.call,String.prototype.replace),S=m.call(Function.call,String.prototype.slice),A=m.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,C=function(t){var e=S(t,0,1),n=S(t,-1);if("%"===e&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return w(t,M,(function(t,e,n,i){r[r.length]=n?w(i,T,"$1"):e||t})),r},I=function(t,e){var n,r=t;if(_(y,r)&&(n=y[r],r="%"+n[0]+"%"),_(g,r)){var o=g[r];if(o===h&&(o=v(r)),"undefined"===typeof o&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=C(t),r=n.length>0?n[0]:"",o=I("%"+r+"%",e),s=o.name,u=o.value,c=!1,f=o.alias;f&&(r=f[0],b(n,x([0,1],f)));for(var p=1,h=!0;p=n.length){var m=l(u,d);h=!!m,u=h&&"get"in m&&!("originalValue"in m.get)?m.get:u[d]}else h=_(u,d),u=u[d];h&&!c&&(g[s]=u)}}return u}},function(t,e,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(183);t.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},function(t,e,n){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(e in t[e]=r,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},function(t,e,n){"use strict";var r=n(185);t.exports=Function.prototype.bind||r},function(t,e,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";t.exports=function(t){var e=this;if("function"!==typeof e||o.call(e)!==a)throw new TypeError(r+e);for(var n,s=i.call(arguments,1),l=function(){if(this instanceof n){var r=e.apply(this,s.concat(i.call(arguments)));return Object(r)===r?r:this}return e.apply(t,s.concat(i.call(arguments)))},u=Math.max(0,e.length-s.length),c=[],f=0;f-1?i(n):n}},function(t,e,n){"use strict";var r=n(184),i=n(181),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(p){u=null}t.exports=function(t){var e=s(r,a,arguments);if(l&&u){var n=l(e,"length");n.configurable&&u(e,"length",{value:1+c(0,t.length-(arguments.length-1))})}return e};var f=function(){return s(r,o,arguments)};u?u(t.exports,"apply",{value:f}):t.exports.apply=f},function(t,e,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"===typeof l.get?l.get:null,c=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype,p=f?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype,d=h?WeakSet.prototype.has:null,g="function"===typeof WeakRef&&WeakRef.prototype,v=g?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,m=Object.prototype.toString,_=Function.prototype.toString,x=String.prototype.match,b=String.prototype.slice,w=String.prototype.replace,S=String.prototype.toUpperCase,A=String.prototype.toLowerCase,M=RegExp.prototype.test,T=Array.prototype.concat,C=Array.prototype.join,I=Array.prototype.slice,k=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"===typeof Symbol&&"object"===typeof Symbol.iterator,L="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===E||"symbol")?Symbol.toStringTag:null,B=Object.prototype.propertyIsEnumerable,R=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function N(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||M.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var r=t<0?-k(-t):k(t);if(r!==t){var i=String(r),o=b.call(e,i.length+1);return w.call(i,n,"$&_")+"."+w.call(w.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(e,n,"$&_")}var j=n(190),z=j.custom,F=q(z)?z:null;function V(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function H(t){return w.call(String(t),/"/g,""")}function U(t){return"[object Array]"===tt(t)&&(!L||!("object"===typeof t&&L in t))}function W(t){return"[object Date]"===tt(t)&&(!L||!("object"===typeof t&&L in t))}function $(t){return"[object RegExp]"===tt(t)&&(!L||!("object"===typeof t&&L in t))}function G(t){return"[object Error]"===tt(t)&&(!L||!("object"===typeof t&&L in t))}function Y(t){return"[object String]"===tt(t)&&(!L||!("object"===typeof t&&L in t))}function Q(t){return"[object Number]"===tt(t)&&(!L||!("object"===typeof t&&L in t))}function X(t){return"[object Boolean]"===tt(t)&&(!L||!("object"===typeof t&&L in t))}function q(t){if(E)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!D)return!1;try{return D.call(t),!0}catch(e){}return!1}function Z(t){if(!t||"object"!==typeof t||!O)return!1;try{return O.call(t),!0}catch(e){}return!1}t.exports=function t(e,n,r,i){var s=n||{};if(J(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!J(s,"customInspect")||s.customInspect;if("boolean"!==typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(s,"numericSeparator")&&"boolean"!==typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=s.numericSeparator;if("undefined"===typeof e)return"undefined";if(null===e)return"null";if("boolean"===typeof e)return e?"true":"false";if("string"===typeof e)return ut(e,s);if("number"===typeof e){if(0===e)return 1/0/e>0?"0":"-0";var p=String(e);return f?N(e,p):p}if("bigint"===typeof e){var h=String(e)+"n";return f?N(e,h):h}var d="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof r&&(r=0),r>=d&&d>0&&"object"===typeof e)return U(e)?"[Array]":"[Object]";var g=gt(s,r);if("undefined"===typeof i)i=[];else if(nt(i,e)>=0)return"[Circular]";function v(e,n,o){if(n&&(i=I.call(i),i.push(n)),o){var a={depth:s.depth};return J(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,r+1,i)}return t(e,s,r+1,i)}if("function"===typeof e&&!$(e)){var m=et(e),_=yt(e,v);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(_.length>0?" { "+C.call(_,", ")+" }":"")}if(q(e)){var x=E?w.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(e);return"object"!==typeof e||E?x:ft(x)}if(lt(e)){for(var S="<"+A.call(String(e.nodeName)),M=e.attributes||[],k=0;k",S}if(U(e)){if(0===e.length)return"[]";var P=yt(e,v);return g&&!dt(P)?"["+vt(P,g)+"]":"[ "+C.call(P,", ")+" ]"}if(G(e)){var z=yt(e,v);return"cause"in Error.prototype||!("cause"in e)||B.call(e,"cause")?0===z.length?"["+String(e)+"]":"{ ["+String(e)+"] "+C.call(z,", ")+" }":"{ ["+String(e)+"] "+C.call(T.call("[cause]: "+v(e.cause),z),", ")+" }"}if("object"===typeof e&&l){if(F&&"function"===typeof e[F]&&j)return j(e,{depth:d-r});if("symbol"!==l&&"function"===typeof e.inspect)return e.inspect()}if(rt(e)){var K=[];return a.call(e,(function(t,n){K.push(v(n,e,!0)+" => "+v(t,e))})),ht("Map",o.call(e),K,g)}if(at(e)){var ct=[];return c.call(e,(function(t){ct.push(v(t,e))})),ht("Set",u.call(e),ct,g)}if(it(e))return pt("WeakMap");if(st(e))return pt("WeakSet");if(ot(e))return pt("WeakRef");if(Q(e))return ft(v(Number(e)));if(Z(e))return ft(v(O.call(e)));if(X(e))return ft(y.call(e));if(Y(e))return ft(v(String(e)));if(!W(e)&&!$(e)){var mt=yt(e,v),_t=R?R(e)===Object.prototype:e instanceof Object||e.constructor===Object,xt=e instanceof Object?"":"null prototype",bt=!_t&&L&&Object(e)===e&&L in e?b.call(tt(e),8,-1):xt?"Object":"",wt=_t||"function"!==typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"",St=wt+(bt||xt?"["+C.call(T.call([],bt||[],xt||[]),": ")+"] ":"");return 0===mt.length?St+"{}":g?St+"{"+vt(mt,g)+"}":St+"{ "+C.call(mt,", ")+" }"}return String(e)};var K=Object.prototype.hasOwnProperty||function(t){return t in this};function J(t,e){return K.call(t,e)}function tt(t){return m.call(t)}function et(t){if(t.name)return t.name;var e=x.call(_.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function nt(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ut(b.call(t,0,e.maxStringLength),e)+r}var i=w.call(w.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ct);return V(i,"single",e)}function ct(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+S.call(e.toString(16))}function ft(t){return"Object("+t+")"}function pt(t){return t+" { ? }"}function ht(t,e,n,r){var i=r?vt(n,r):C.call(n,", ");return t+" ("+e+") {"+i+"}"}function dt(t){for(var e=0;e=0)return!1;return!0}function gt(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;n=C.call(Array(t.indent+1)," ")}return{base:n,prev:C.call(Array(e+1),n)}}function vt(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+C.call(t,","+n)+"\n"+e.prev}function yt(t,e){var n=U(t),r=[];if(n){r.length=t.length;for(var i=0;i1){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},h=function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r-1?t.split(","):t},u="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",f=function(t,e){var n,f={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,h=e.parameterLimit===1/0?void 0:e.parameterLimit,d=p.split(e.delimiter,h),g=-1,v=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(m=o(m)?[m]:m),i.call(f,y)?f[y]=r.combine(f[y],m):f[y]=m}return f},p=function(t,e,n,r){for(var i=r?e:l(e,n),o=t.length-1;o>=0;--o){var a,s=t[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[],a[c]=i):"__proto__"!==u&&(a[u]=i):a={0:i}}i=a}return i},h=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(o),u=l?o.slice(0,l.index):o,c=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}var f=0;while(n.depth>0&&null!==(l=s.exec(o))&&f18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}function i(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;nr;r++)e[r]=u(t[r])}}else if(K_[n]){if(!Y(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(r=0,i=t.length;i>r;r++)e[r]=t[r]}}}else if(!Z_[n]&&!Y(t)&&!L(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==sx&&(e[a]=u(t[a]));return e}function c(t,e,n){if(!P(e)||!P(t))return n?u(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==sx){var i=t[r],o=e[r];!P(o)||!P(i)||T(o)||T(i)||L(o)||L(i)||D(o)||D(i)||Y(o)||Y(i)?!n&&r in t||(t[r]=u(e[r])):c(i,o,n)}return t}function f(t,e){for(var n=t[0],r=1,i=t.length;i>r;r++)n=c(n,t[r],e);return n}function p(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==sx&&(t[n]=e[n]);return t}function h(t,e,n){for(var r=S(e),i=0;in;n++)if(t[n]===e)return n}return-1}function g(t,e){function n(){}var r=t.prototype;for(var i in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function v(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;ir;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function _(t,e,n){if(!t)return[];if(!e)return H(t);if(t.map&&t.map===ix)return t.map(e,n);for(var r=[],i=0,o=t.length;o>i;i++)r.push(e.call(n,t[i],i,t));return r}function x(t,e,n,r){if(t&&e){for(var i=0,o=t.length;o>i;i++)n=e.call(r,n,t[i],i,t);return n}}function b(t,e,n){if(!t)return[];if(!e)return H(t);if(t.filter&&t.filter===nx)return t.filter(e,n);for(var r=[],i=0,o=t.length;o>i;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function w(t,e,n){if(t&&e)for(var r=0,i=t.length;i>r;r++)if(e.call(n,t[r],r,t))return t[r]}function S(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function A(t,e){for(var n=[],r=2;rn;n++)if(null!=t[n])return t[n]}function F(t,e){return null!=t?t:e}function V(t,e,n){return null!=t?t:null!=e?e:n}function H(t){for(var e=[],n=1;np;p++){var d=1<a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*wt(n,7,0===a?1:0,1<o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function Ct(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var c=t[u].getBoundingClientRect(),f=2*u,p=c.left,h=c.top;a.push(p,h),l=l&&o&&p===o[f]&&h===o[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?St(s,a):St(a,s))}function It(t){return"CANVAS"===t.nodeName.toUpperCase()}function kt(t){return null==t?"":(t+"").replace(Ix,(function(t,e){return kx[e]}))}function Ot(t,e,n,r){return n=n||{},r?Pt(t,e,n):Dx&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Pt(t,e,n),n}function Pt(t,e,n){if(H_.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(It(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(Mt(Px,t,r,i))return n.zrX=Px[0],void(n.zrY=Px[1])}n.zrX=n.zrY=0}function Dt(t){return t||window.event}function Et(t,e,n){if(e=Dt(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&Ot(t,o,e,n)}else{Ot(t,e,e,n);var a=Lt(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&Ox.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Lt(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=Math.abs(0!==r?r:n),o=r>0?-1:0>r?1:n>0?-1:1;return 3*i*o}function Bt(t,e,n,r){t.addEventListener(e,n,r)}function Rt(t,e,n,r){t.removeEventListener(e,n,r)}function Nt(t){return 2===t.which||3===t.which}function jt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function zt(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Ft(){return[1,0,0,1,0,0]}function Vt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ht(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ut(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Wt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function $t(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*u,t[1]=-r*u+a*c,t[2]=i*c+s*u,t[3]=-i*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function Gt(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Yt(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function Qt(t){var e=Ft();return Ht(e,t),e}function Xt(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:qt}}function qt(){Ex(this.event)}function Zt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||Yx}return!1}function Kt(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=Zt(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==Yx)){e.target=a;break}}}function Jt(t,e,n){var r=t.painter;return 0>e||e>r.getWidth()||0>n||n>r.getHeight()}function te(t){for(var e=0;t>=tb;)e|=1&t,t>>=1;return t+e}function ee(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;n>i&&r(t[i],t[i-1])<0;)i++;ne(t,e,i)}else for(;n>i&&r(t[i],t[i-1])>=0;)i++;return i-e}function ne(t,e,n){for(n--;n>e;){var r=t[e];t[e++]=t[n],t[n--]=r}}function re(t,e,n,r,i){for(r===e&&r++;n>r;r++){for(var o,a=t[r],s=e,l=r;l>s;)o=s+l>>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function ie(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;s>l&&o(t,e[n+i+l])>0;)a=l,l=1+(l<<1),0>=l&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;s>l&&o(t,e[n+i-l])<=0;)a=l,l=1+(l<<1),0>=l&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;l>a;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function oe(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;s>l&&o(t,e[n+i-l])<0;)a=l,l=1+(l<<1),0>=l&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;s>l&&o(t,e[n+i+l])>=0;)a=l,l=1+(l<<1),0>=l&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;l>a;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function ae(t,e){function n(t,e){l[f]=t,u[f]=e,f+=1}function r(){for(;f>1;){var t=f-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]u[t+1])break;o(t)}}function i(){for(;f>1;){var t=f-2;t>0&&u[t-1]=i?a(r,i,o,c):s(r,i,o,c)))}function a(n,r,i,o){var a=0;for(a=0;r>a;a++)p[a]=t[n+a];var s=0,l=i,u=n;if(t[u++]=t[l++],0!==--o){if(1===r){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var f,h,d,g=c;;){f=0,h=0,d=!1;do{if(e(t[l],p[s])<0){if(t[u++]=t[l++],h++,f=0,0===--o){d=!0;break}}else if(t[u++]=p[s++],f++,h=0,1===--r){d=!0;break}}while(g>(f|h));if(d)break;do{if(f=oe(t[l],p,s,r,0,e),0!==f){for(a=0;f>a;a++)t[u+a]=p[s+a];if(u+=f,s+=f,r-=f,1>=r){d=!0;break}}if(t[u++]=t[l++],0===--o){d=!0;break}if(h=ie(p[s],t,l,o,0,e),0!==h){for(a=0;h>a;a++)t[u+a]=t[l+a];if(u+=h,l+=h,o-=h,0===o){d=!0;break}}if(t[u++]=p[s++],1===--r){d=!0;break}g--}while(f>=eb||h>=eb);if(d)break;0>g&&(g=0),g+=2}if(c=g,1>c&&(c=1),1===r){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===r)throw new Error;for(a=0;r>a;a++)t[u+a]=p[s+a]}}else for(a=0;r>a;a++)t[u+a]=p[s+a]}function s(n,r,i,o){var a=0;for(a=0;o>a;a++)p[a]=t[i+a];var s=n+r-1,l=o-1,u=i+o-1,f=0,h=0;if(t[u--]=t[s--],0!==--r){if(1===o){for(u-=r,s-=r,h=u+1,f=s+1,a=r-1;a>=0;a--)t[h+a]=t[f+a];return void(t[u]=p[l])}for(var d=c;;){var g=0,v=0,y=!1;do{if(e(p[l],t[s])<0){if(t[u--]=t[s--],g++,v=0,0===--r){y=!0;break}}else if(t[u--]=p[l--],v++,g=0,1===--o){y=!0;break}}while(d>(g|v));if(y)break;do{if(g=r-oe(p[l],t,n,r,r-1,e),0!==g){for(u-=g,s-=g,r-=g,h=u+1,f=s+1,a=g-1;a>=0;a--)t[h+a]=t[f+a];if(0===r){y=!0;break}}if(t[u--]=p[l--],1===--o){y=!0;break}if(v=o-ie(t[s],p,0,o,o-1,e),0!==v){for(u-=v,l-=v,o-=v,h=u+1,f=l+1,a=0;v>a;a++)t[h+a]=p[f+a];if(1>=o){y=!0;break}}if(t[u--]=t[s--],0===--r){y=!0;break}d--}while(g>=eb||v>=eb);if(y)break;0>d&&(d=0),d+=2}if(c=d,1>c&&(c=1),1===o){for(u-=r,s-=r,h=u+1,f=s+1,a=r-1;a>=0;a--)t[h+a]=t[f+a];t[u]=p[l]}else{if(0===o)throw new Error;for(f=u-(o-1),a=0;o>a;a++)t[f+a]=p[a]}}else for(f=u-(o-1),a=0;o>a;a++)t[f+a]=p[a]}var l,u,c=eb,f=0,p=[];return l=[],u=[],{mergeRuns:r,forceMergeRuns:i,pushRun:n}}function se(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(2>i)){var o=0;if(tb>i)return o=ee(t,n,r,e),void re(t,n,r,n+o,e);var a=ae(t,e),s=te(i);do{if(o=ee(t,n,r,e),s>o){var l=i;l>s&&(l=s),re(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}function le(){ob||(ob=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ue(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function ce(t){return t>-fb&&fb>t}function fe(t){return t>fb||-fb>t}function pe(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function he(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function de(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,f=s*l-9*a*u,p=l*l-3*s*u,h=0;if(ce(c)&&ce(f))if(ce(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[h++]=d)}else{var g=f*f-4*c*p;if(ce(g)){var v=f/c,y=(d=-s/a+v,-v/2);d>=0&&1>=d&&(o[h++]=d),y>=0&&1>=y&&(o[h++]=y)}else if(g>0){var m=cb(g),_=c*s+1.5*a*(-f+m),x=c*s+1.5*a*(-f-m);_=0>_?-ub(-_,db):ub(_,db),x=0>x?-ub(-x,db):ub(x,db);d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[h++]=d)}else{var b=(2*c*s-3*a*f)/(2*cb(c*c*c)),w=Math.acos(b)/3,S=cb(c),A=Math.cos(w),M=(d=(-s-2*S*A)/(3*a),y=(-s+S*(A+hb*Math.sin(w)))/(3*a),(-s+S*(A-hb*Math.sin(w)))/(3*a));d>=0&&1>=d&&(o[h++]=d),y>=0&&1>=y&&(o[h++]=y),M>=0&&1>=M&&(o[h++]=M)}}return h}function ge(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(ce(a)){if(fe(o)){var u=-s/o;u>=0&&1>=u&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(ce(c))i[0]=-o/(2*a);else if(c>0){var f=cb(c),p=(u=(-o+f)/(2*a),(-o-f)/(2*a));u>=0&&1>=u&&(i[l++]=u),p>=0&&1>=p&&(i[l++]=p)}}return l}function ve(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,f=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function ye(t,e,n,r,i,o,a,s,l,u,c){var f,p,h,d,g,v=.005,y=1/0;gb[0]=l,gb[1]=u;for(var m=0;1>m;m+=.05)vb[0]=pe(t,n,i,a,m),vb[1]=pe(e,r,o,s,m),d=xx(gb,vb),y>d&&(f=m,y=d);y=1/0;for(var _=0;32>_&&!(pb>v);_++)p=f-v,h=f+v,vb[0]=pe(t,n,i,a,p),vb[1]=pe(e,r,o,s,p),d=xx(vb,gb),p>=0&&y>d?(f=p,y=d):(yb[0]=pe(t,n,i,a,h),yb[1]=pe(e,r,o,s,h),g=xx(yb,gb),1>=h&&y>g?(f=h,y=g):v*=.5);return c&&(c[0]=pe(t,n,i,a,f),c[1]=pe(e,r,o,s,f)),cb(y)}function me(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,f=0,p=1/l,h=1;l>=h;h++){var d=h*p,g=pe(t,n,i,a,d),v=pe(e,r,o,s,d),y=g-u,m=v-c;f+=Math.sqrt(y*y+m*m),u=g,c=v}return f}function _e(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function xe(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function be(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(ce(o)){if(fe(a)){var u=-s/a;u>=0&&1>=u&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(ce(c)){u=-a/(2*o);u>=0&&1>=u&&(i[l++]=u)}else if(c>0){var f=cb(c),p=(u=(-a+f)/(2*o),(-a-f)/(2*o));u>=0&&1>=u&&(i[l++]=u),p>=0&&1>=p&&(i[l++]=p)}}return l}function we(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function Se(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Ae(t,e,n,r,i,o,a,s,l){var u,c=.005,f=1/0;gb[0]=a,gb[1]=s;for(var p=0;1>p;p+=.05){vb[0]=_e(t,n,i,p),vb[1]=_e(e,r,o,p);var h=xx(gb,vb);f>h&&(u=p,f=h)}f=1/0;for(var d=0;32>d&&!(pb>c);d++){var g=u-c,v=u+c;vb[0]=_e(t,n,i,g),vb[1]=_e(e,r,o,g);h=xx(vb,gb);if(g>=0&&f>h)u=g,f=h;else{yb[0]=_e(t,n,i,v),yb[1]=_e(e,r,o,v);var y=xx(yb,gb);1>=v&&f>y?(u=v,f=y):c*=.5}}return l&&(l[0]=_e(t,n,i,u),l[1]=_e(e,r,o,u)),cb(f)}function Me(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,f=1;a>=f;f++){var p=f*c,h=_e(t,n,i,p),d=_e(e,r,o,p),g=h-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=h,l=d}return u}function Te(t){var e=t&&mb.exec(t);if(e){var n=e[1].split(","),r=+$(n[0]),i=+$(n[1]),o=+$(n[2]),a=+$(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:de(0,r,o,1,t,s)&&pe(0,i,a,1,s[0])}}}function Ce(t){return t=Math.round(t),0>t?0:t>255?255:t}function Ie(t){return t=Math.round(t),0>t?0:t>360?360:t}function ke(t){return 0>t?0:t>1?1:t}function Oe(t){var e=t;return Ce(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Pe(t){var e=t;return ke(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function De(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function Ee(t,e,n){return t+(e-t)*n}function Le(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Be(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Re(t,e){Mb&&Be(Mb,e),Mb=Ab.put(t,Mb||e.slice())}function Ne(t,e){if(t){e=e||[];var n=Ab.get(t);if(n)return Be(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in Sb)return Be(e,Sb[r]),Re(t,e),e;var i=r.length;if("#"!==r.charAt(0)){var o=r.indexOf("("),a=r.indexOf(")");if(-1!==o&&a+1===i){var s=r.substr(0,o),l=r.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?Le(e,+l[0],+l[1],+l[2],1):Le(e,0,0,0,1);u=Pe(l.pop());case"rgb":return l.length>=3?(Le(e,Oe(l[0]),Oe(l[1]),Oe(l[2]),3===l.length?u:Pe(l[3])),Re(t,e),e):void Le(e,0,0,0,1);case"hsla":return 4!==l.length?void Le(e,0,0,0,1):(l[3]=Pe(l[3]),je(l,e),Re(t,e),e);case"hsl":return 3!==l.length?void Le(e,0,0,0,1):(je(l,e),Re(t,e),e);default:return}}Le(e,0,0,0,1)}else{if(4===i||5===i){var c=parseInt(r.slice(1,4),16);return c>=0&&4095>=c?(Le(e,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===i?parseInt(r.slice(4),16)/15:1),Re(t,e),e):void Le(e,0,0,0,1)}if(7===i||9===i){c=parseInt(r.slice(1,7),16);return c>=0&&16777215>=c?(Le(e,(16711680&c)>>16,(65280&c)>>8,255&c,9===i?parseInt(r.slice(7),16)/255:1),Re(t,e),e):void Le(e,0,0,0,1)}}}}function je(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Pe(t[1]),i=Pe(t[2]),o=.5>=i?i*(r+1):i+r-i*r,a=2*i-o;return e=e||[],Le(e,Ce(255*De(a,o,n+1/3)),Ce(255*De(a,o,n)),Ce(255*De(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function ze(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,f=((s-i)/6+l/2)/l,p=((s-o)/6+l/2)/l;r===s?e=p-f:i===s?e=1/3+c-p:o===s&&(e=2/3+f-c),0>e&&(e+=1),e>1&&(e-=1)}var h=[360*e,n,u];return null!=t[3]&&h.push(t[3]),h}}function Fe(t,e){var n=Ne(t);if(n){for(var r=0;3>r;r++)n[r]=0>e?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Ge(n,4===n.length?"rgba":"rgb")}}function Ve(t){var e=Ne(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function He(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=Ce(Ee(a[0],s[0],l)),n[1]=Ce(Ee(a[1],s[1],l)),n[2]=Ce(Ee(a[2],s[2],l)),n[3]=ke(Ee(a[3],s[3],l)),n}}function Ue(t,e,n){if(e&&e.length&&t>=0&&1>=t){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=Ne(e[i]),s=Ne(e[o]),l=r-i,u=Ge([Ce(Ee(a[0],s[0],l)),Ce(Ee(a[1],s[1],l)),Ce(Ee(a[2],s[2],l)),ke(Ee(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function We(t,e,n,r){var i=Ne(t);return t?(i=ze(i),null!=e&&(i[0]=Ie(e)),null!=n&&(i[1]=Pe(n)),null!=r&&(i[2]=Pe(r)),Ge(je(i),"rgba")):void 0}function $e(t,e){var n=Ne(t);return n&&null!=e?(n[3]=ke(e),Ge(n,"rgba")):void 0}function Ge(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function Ye(t,e){var n=Ne(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Qe(){return Ge([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}function Xe(t){return"linear"===t.type}function qe(t){return"radial"===t.type}function Ze(t,e,n){return(e-t)*n+t}function Ke(t,e,n,r){for(var i=e.length,o=0;i>o;o++)t[o]=Ze(e[o],n[o],r);return t}function Je(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;i>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=Ze(e[a][s],n[a][s],r)}return t}function tn(t,e,n,r){for(var i=e.length,o=0;i>o;o++)t[o]=e[o]+n[o]*r;return t}function en(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;i>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function nn(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;a>l;l++)r.push(1===n?i[l]:kb.call(i[l]))}var u=r[0]&&r[0].length;for(l=0;lc;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function on(t){if(y(t)){var e=t.length;if(y(t[0])){for(var n=[],r=0;e>r;r++)n.push(kb.call(t[r]));return n}return kb.call(t)}return t}function an(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function sn(t){return y(t&&t[0])?2:1}function ln(t){return t===Lb||t===Bb}function un(t){return t===Pb||t===Db}function cn(){return(new Date).getTime()}function fn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function pn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function hn(t){t&&(t.zrByTouch=!0)}function dn(t,e){return Et(t.dom,new Gb(t,e),!0)}function gn(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}function vn(t,e){var n=e.domHandlers;H_.pointerEventsSupported?m(Ub.pointer,(function(r){mn(e,r,(function(e){n[r].call(t,e)}))})):(H_.touchEventsSupported&&m(Ub.touch,(function(r){mn(e,r,(function(i){n[r].call(t,i),pn(e)}))})),m(Ub.mouse,(function(r){mn(e,r,(function(i){i=Dt(i),e.touching||n[r].call(t,i)}))})))}function yn(t,e){function n(n){function r(r){r=Dt(r),gn(t,r.target)||(r=dn(t,r),e.domHandlers[n].call(t,r))}mn(e,n,r,{capture:!0})}H_.pointerEventsSupported?m(Wb.pointer,n):H_.touchEventsSupported||m(Wb.mouse,n)}function mn(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,Bt(t.domTarget,e,n,r)}function _n(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Rt(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function xn(t){return t>iw||-iw>t}function bn(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function kn(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=In(r[0],n.width),u+=In(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+a,u+=s,f="middle";break;case"top":l+=a/2,u-=i,c="center",f="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=a-i,u+=s,c="right",f="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,f="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",f="bottom"}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}function On(t,e,n,r,i){n=n||{};var o=[];Rn(t,"",t,e,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,0>=a&&(s?l&&l():u&&u())},f=function(){a--,0>=a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;pr;r++)t[r]=e[r]}function Dn(t){return y(t[0])}function En(t,e,n){if(y(e[n]))if(y(t[n])||(t[n]=[]),E(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Pn(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(Dn(i))for(var s=i[0].length,l=0;a>l;l++)o[l]?Pn(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Pn(o,i,a);o.length=i.length}else t[n]=e[n]}function Ln(t,e){return t===e||y(t)&&y(e)&&Bn(t,e)}function Bn(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;n>r;r++)if(t[r]!==e[r])return!1;return!0}function Rn(t,e,n,r,i,o,a,s){for(var l=S(r),u=i.duration,c=i.delay,f=i.additive,p=i.setToFinal,h=!P(o),g=t.animators,v=[],m=0;m0||i.force&&!a.length){var I=void 0,k=void 0,O=void 0;if(s){k={},p&&(I={});for(A=0;w>A;A++){_=v[A];k[_]=n[_],p?I[_]=r[_]:n[_]=r[_]}}else if(p){O={};for(A=0;w>A;A++){_=v[A];O[_]=on(n[_]),En(n,r,_)}}M=new zb(n,!1,!1,f?b(g,(function(t){return t.targetName===e})):null);M.targetName=e,i.scope&&(M.scope=i.scope),p&&I&&M.whenWithKeys(0,I,v),O&&M.whenWithKeys(0,O,v),M.whenWithKeys(null==u?500:u,s?k:r,v).delay(c||0),t.addAnimator(M,e),a.push(M)}}function Nn(t){delete xw[t]}function jn(t){if(!t)return!1;if("string"==typeof t)return Ye(t,1)i;i++)n+=Ye(e[i].color,1);return n/=r,Jb>n}return!1}function zn(t,e){var n=new bw(a(),t,e);return xw[n.id]=n,n}function Fn(t){t.dispose()}function Vn(){for(var t in xw)xw.hasOwnProperty(t)&&xw[t].dispose();xw={}}function Hn(t){return xw[t]}function Un(t,e){_w[t]=e}function Wn(t){return t.replace(/^\s+|\s+$/g,"")}function $n(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(i>=t)return a;if(t>=o)return s}else{if(t>=i)return a;if(o>=t)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Gn(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return I(t)?Wn(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Yn(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Mw),t=(+t).toFixed(e),n?t:+t}function Qn(t){return t.sort((function(t,e){return t-e})),t}function Xn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(Math.round(t*e)/e===t)return n;return qn(t)}function qn(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=0>o?0:i-1-o;return Math.max(0,a-r)}function Zn(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function Kn(t,e,n){if(!t[e])return 0;var r=Jn(t,n);return r[e]||0}function Jn(t,e){var n=x(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var r=Math.pow(10,e),i=_(t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,a=_(i,(function(t){return Math.floor(t)})),s=x(a,(function(t,e){return t+e}),0),l=_(i,(function(t,e){return t-a[e]}));o>s;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,p=l.length;p>f;++f)l[f]>u&&(u=l[f],c=f);++a[c],l[c]=0,++s}return _(a,(function(t){return t/r}))}function tr(t,e){var n=Math.max(Xn(t),Xn(e)),r=t+e;return n>Mw?r:Yn(r,n)}function er(t){var e=2*Math.PI;return(t%e+e)%e}function nr(t){return t>-Aw&&Aw>t}function rr(t){if(t instanceof Date)return t;if(I(t)){var e=Cw.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?NaN:Math.round(t))}function ir(t){return Math.pow(10,or(t))}function or(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ar(t,e){var n,r=or(t),i=Math.pow(10,r),o=t/i;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*i,r>=-20?+t.toFixed(0>r?-r:0):t}function sr(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function lr(t){function e(t,n,r){return t.interval[r]s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-r),n=o[s],r=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t}function ur(t){var e=parseFloat(t);return e==t&&(0!==e||!I(t)||t.indexOf("x")<=0)?e:NaN}function cr(t){return!isNaN(ur(t))}function fr(){return Math.round(9*Math.random())}function pr(t,e){return 0===e?t:pr(e,t%e)}function hr(t,e){return null==t?e:null==e?t:t*e/pr(t,e)}function dr(t){throw new Error(t)}function gr(t,e,n){return(e-t)*n+t}function vr(t){return t instanceof Array?t:null==t?[]:[t]}function yr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;i>r;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function mr(t){return!P(t)||T(t)||t instanceof Date?t:t.value}function _r(t){return P(t)&&!(t instanceof Array)}function xr(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=X();m(e,(function(t,n){return P(t)?void 0:void(e[n]=null)}));var s=br(t,a,n);return(r||i)&&wr(s,t,a,e),r&&Sr(s,e),r||i?Ar(s,e,i):o&&Mr(s,e),Tr(s),s}function br(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;ir;r++){var o=kr(t[r].seriesId,null);if(null==o)return;for(var a=vr(t[r].dataIndex),s=n&&n[o],l=0,u=a.length;u>l;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function r(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var o=r(t[i],!0);o.length&&n.push({seriesId:i,dataIndex:o})}return n}var i={},o={};return n(t||[],i),n(e||[],o,i),[r(i),r(o)]}function Br(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?T(e.dataIndex)?_(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?T(e.name)?_(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function Rr(){var t="__ec_inner_"+Pw++;return function(e){return e[t]||(e[t]={})}}function Nr(t,e,n){var r=jr(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each((function(e,r){var i=zr(t,r,e,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}function jr(t,e){var n;if(I(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=X(),o={},a=!1;return m(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&d(e.includeMainTypes,s)<0)){a=a||!!s;var u=i.get(s)||i.set(s,{});u[l]=t}}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}function zr(t,e,n,r){r=r||Dw;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||!1===i?(W(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(W(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function Fr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Vr(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Hr(t){return"auto"===t?H_.domSupported?"html":"richText":t||"html"}function Ur(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(O(r)){var a=gr(n||0,r,i);return Yn(a,o?Math.max(Xn(n||0),Xn(r)):e)}if(I(r))return 1>i?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;c>f;++f){var p=t.getDimensionInfo(f);if(p&&"ordinal"===p.type)s[f]=(1>i&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,d=u[f];a=gr(h,d,i);s[f]=Yn(a,o?Math.max(Xn(h),Xn(d)):e)}}return s}function Wr(t){var e={main:"",sub:""};if(t){var n=t.split(Lw);e.main=n[0]||"",e.sub=n[1]||""}return e}function $r(t){W(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Gr(t){return!(!t||!t[Rw])}function Yr(t){t.$constructor=t,t.extend=function(t){var n,r=this;return Qr(r)?n=function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n}(r):(n=function(){(t.$constructor||r).apply(this,arguments)},g(n,this)),p(n.prototype,t),n[Rw]=!0,n.extend=this.extend,n.superCall=Zr,n.superApply=Kr,n.superClass=r,n}}function Qr(t){return C(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Xr(t,e){t.extend=e.extend}function qr(t){var e=["__\0is_clz",Nw++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Zr(t,e){for(var n=[],r=2;r=0||i&&d(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function ei(t){if("string"==typeof t){var e=Vw.get(t);return e&&e.image}return t}function ni(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Vw.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!ii(e)&&o.pending.push(a)):(e=q_.loadImage(t,ri,ri),e.__zrImageSrc=t,Vw.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function ri(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;ea;a++)o[a]=si(o[a],i);return o.join("\n")}function ai(t,e,n,r){r=r||{};var i=p({},r);i.font=e,n=F(n,"..."),i.maxIterations=F(r.maxIterations,2);var o=i.minChar=F(r.minChar,0);i.cnCharWidth=wn("国",e);var a=i.ascCharWidth=wn("a",e);i.placeholder=F(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=wn(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function si(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=wn(t,r);if(n>=o)return t;for(var a=0;;a++){if(i>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?li(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=wn(t,r)}return""===t&&(t=e.placeholder),t}function li(t,e,n,r){for(var i=0,o=0,a=t.length;a>o&&e>i;o++){var s=t.charCodeAt(o);i+=s>=0&&127>=s?n:r}return o}function ui(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=Cn(o),l=F(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,f=e.width;n=null==f||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?di(t,e.font,f,"breakAll"===r,0).lines:[];var p=n.length*l,h=F(e.height,p);if(p>h&&c){var d=Math.floor(h/l);n=n.slice(0,d)}if(t&&a&&null!=f)for(var g=ai(f,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;vu&&fi(r,t.substring(u,c),e,l),fi(r,i[2],e,l,i[1]),u=Hw.lastIndex}ua){b>0?(m.tokens=m.tokens.slice(0,b),n(m,x,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break t}var I=S.width,k=null==I||"auto"===I;if("string"==typeof I&&"%"===I.charAt(I.length-1))w.percentWidth=I,f.push(w),w.contentWidth=wn(w.text,T);else{if(k){var O=S.backgroundColor,P=O&&O.image;P&&(P=ei(P),ii(P)&&(w.width=Math.max(w.width,P.width*C/P.height)))}var D=g&&null!=o?o-x:null;null!=D&&DD?(w.text="",w.width=w.contentWidth=0):(w.text=oi(w.text,D-M,T,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=wn(w.text,T)):w.contentWidth=wn(w.text,T)}w.width+=M,x+=w.width,S&&(_=Math.max(_,w.lineHeight))}n(m,x,_)}r.outerWidth=r.width=F(o,h),r.outerHeight=r.height=F(a,p),r.contentHeight=p,r.contentWidth=h,d&&(r.outerWidth+=d[1]+d[3],r.outerHeight+=d[0]+d[2]);for(y=0;y0&&d+r.accumWidth>r.width&&(o=e.split("\n"),f=!0),r.accumWidth=d}else{var g=di(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=32&&591>=e||e>=880&&4351>=e||e>=4608&&5119>=e||e>=7680&&8303>=e}function hi(t){return!pi(t)||!!Gw[t]}function di(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;fn:i+c+h>n)?c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=p,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=h)):d?(o.push(l),a.push(u),l=p,u=h):(o.push(p),a.push(h)):(c+=h,d?(l+=p,u+=h):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function gi(t,e,n){return Jw.copy(t.getBoundingRect()),t.transform&&Jw.applyTransform(t.transform),tS.width=e,tS.height=n,!Jw.intersect(tS)}function vi(t,e,n,r,i,o){i[0]=eS(t,n),i[1]=eS(e,r),o[0]=nS(t,n),o[1]=nS(e,r)}function yi(t,e,n,r,i,o,a,s,l,u){var c=ge,f=pe,p=c(t,n,i,a,uS);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;p>h;h++){var d=f(t,n,i,a,uS[h]);l[0]=eS(d,l[0]),u[0]=nS(d,u[0])}p=c(e,r,o,s,cS);for(h=0;p>h;h++){var g=f(e,r,o,s,cS[h]);l[1]=eS(g,l[1]),u[1]=nS(g,u[1])}l[0]=eS(t,l[0]),u[0]=nS(t,u[0]),l[0]=eS(a,l[0]),u[0]=nS(a,u[0]),l[1]=eS(e,l[1]),u[1]=nS(e,u[1]),l[1]=eS(s,l[1]),u[1]=nS(s,u[1])}function mi(t,e,n,r,i,o,a,s){var l=we,u=_e,c=nS(eS(l(t,n,i),1),0),f=nS(eS(l(e,r,o),1),0),p=u(t,n,i,c),h=u(e,r,o,f);a[0]=eS(t,i,p),a[1]=eS(e,o,h),s[0]=nS(t,i,p),s[1]=nS(e,o,h)}function _i(t,e,n,r,i,o,a,s,l){var u=xt,c=bt,f=Math.abs(i-o);if(1e-4>f%oS&&f>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(aS[0]=iS(i)*n+t,aS[1]=rS(i)*r+e,sS[0]=iS(o)*n+t,sS[1]=rS(o)*r+e,u(s,aS,sS),c(l,aS,sS),i%=oS,0>i&&(i+=oS),o%=oS,0>o&&(o+=oS),i>o&&!a?o+=oS:o>i&&a&&(i+=oS),a){var p=o;o=i,i=p}for(var h=0;o>h;h+=Math.PI/2)h>i&&(lS[0]=iS(h)*n+t,lS[1]=rS(h)*r+e,u(s,lS,s),c(l,lS,l))}function xi(t){var e=Math.round(t/SS*1e8)/1e8;return e%2*SS}function bi(t,e){var n=xi(t[0]);0>n&&(n+=AS);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=AS?i=n+AS:e&&n-i>=AS?i=n-AS:!e&&n>i?i=n+(AS-xi(n-i)):e&&i>n&&(i=n-(AS-xi(i-n))),t[0]=n,t[1]=i}function wi(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||e-s>a&&r-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);var c=l*o-a+u,f=c*c/(l*l+1);return s/2*s/2>=f}function Si(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var f=l;if(c>e+f&&c>r+f&&c>o+f&&c>s+f||e-f>c&&r-f>c&&o-f>c&&s-f>c||u>t+f&&u>n+f&&u>i+f&&u>a+f||t-f>u&&n-f>u&&i-f>u&&a-f>u)return!1;var p=ye(t,e,n,r,i,o,a,s,u,c,null);return f/2>=p}function Ai(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||e-u>l&&r-u>l&&o-u>l||s>t+u&&s>n+u&&s>i+u||t-u>s&&n-u>s&&i-u>s)return!1;var c=Ae(t,e,n,r,i,o,s,l,null);return u/2>=c}function Mi(t){return t%=IS,0>t&&(t+=IS),t}function Ti(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||n>c+u)return!1;if(Math.abs(r-i)%kS<1e-4)return!0;if(o){var f=r;r=Mi(i),i=Mi(f)}else r=Mi(r),i=Mi(i);r>i&&(i+=kS);var p=Math.atan2(l,s);return 0>p&&(p+=kS),p>=r&&i>=p||p+kS>=r&&i>=p+kS}function Ci(t,e,n,r,i,o){if(o>e&&o>r||e>o&&r>o)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=e>r?1:-1;(1===a||0===a)&&(s=e>r?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}function Ii(t,e){return Math.abs(t-e)e&&u>r&&u>o&&u>s||e>u&&r>u&&o>u&&s>u)return 0;var c=de(e,r,o,s,u,ES);if(0===c)return 0;for(var f=0,p=-1,h=void 0,d=void 0,g=0;c>g;g++){var v=ES[g],y=0===v||1===v?.5:1,m=pe(t,n,i,a,v);l>m||(0>p&&(p=ge(e,r,o,s,LS),LS[1]1&&ki(),h=pe(e,r,o,s,LS[0]),p>1&&(d=pe(e,r,o,s,LS[1]))),f+=2===p?vh?y:-y:vd?y:-y:d>s?y:-y:vh?y:-y:h>s?y:-y)}return f}function Pi(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||e>s&&r>s&&o>s)return 0;var l=be(e,r,o,s,ES);if(0===l)return 0;var u=we(e,r,o);if(u>=0&&1>=u){for(var c=0,f=_e(e,r,o,u),p=0;l>p;p++){var h=0===ES[p]||1===ES[p]?.5:1,d=_e(t,n,i,ES[p]);a>d||(c+=ES[p]f?h:-h:f>o?h:-h)}return c}h=0===ES[0]||1===ES[0]?.5:1,d=_e(t,n,i,ES[0]);return a>d?0:e>o?h:-h}function Di(t,e,n,r,i,o,a,s){if(s-=e,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);ES[0]=-l,ES[1]=l;var u=Math.abs(r-i);if(1e-4>u)return 0;if(u>=PS-1e-4){r=0,i=PS;var c=o?1:-1;return a>=ES[0]+t&&a<=ES[1]+t?c:0}if(r>i){var f=r;r=i,i=f}0>r&&(r+=PS,i+=PS);for(var p=0,h=0;2>h;h++){var d=ES[h];if(d+t>a){var g=Math.atan2(s,d);c=o?1:-1;0>g&&(g=PS+g),(g>=r&&i>=g||g+PS>=r&&i>=g+PS)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function Ei(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,c=0,f=0,p=0,h=0,d=0;l>d;){var g=s[d++],v=1===d;switch(g===OS.M&&d>1&&(n||(u+=Ci(c,f,p,h,r,i))),v&&(c=s[d],f=s[d+1],p=c,h=f),g){case OS.M:p=s[d++],h=s[d++],c=p,f=h;break;case OS.L:if(n){if(wi(c,f,s[d],s[d+1],e,r,i))return!0}else u+=Ci(c,f,s[d],s[d+1],r,i)||0;c=s[d++],f=s[d++];break;case OS.C:if(n){if(Si(c,f,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=Oi(c,f,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],r,i)||0;c=s[d++],f=s[d++];break;case OS.Q:if(n){if(Ai(c,f,s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=Pi(c,f,s[d++],s[d++],s[d],s[d+1],r,i)||0;c=s[d++],f=s[d++];break;case OS.A:var y=s[d++],m=s[d++],_=s[d++],x=s[d++],b=s[d++],w=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(b)*_+y,a=Math.sin(b)*x+m,v?(p=o,h=a):u+=Ci(c,f,o,a,r,i);var A=(r-y)*x/_+y;if(n){if(Ti(y,m,x,b,b+w,S,e,A,i))return!0}else u+=Di(y,m,x,b,b+w,S,A,i);c=Math.cos(b+w)*_+y,f=Math.sin(b+w)*x+m;break;case OS.R:p=c=s[d++],h=f=s[d++];var M=s[d++],T=s[d++];if(o=p+M,a=h+T,n){if(wi(p,h,o,h,e,r,i)||wi(o,h,o,a,e,r,i)||wi(o,a,p,a,e,r,i)||wi(p,a,p,h,e,r,i))return!0}else u+=Ci(o,h,o,a,r,i),u+=Ci(p,a,p,h,r,i);break;case OS.Z:if(n){if(wi(c,f,p,h,e,r,i))return!0}else u+=Ci(c,f,p,h,r,i);c=p,f=h}}return n||Ii(f,h)||(u+=Ci(c,f,p,h,r,i)||0),0!==u}function Li(t,e,n){return Ei(t,0,!1,e,n)}function Bi(t,e,n,r){return Ei(t,e,!0,n,r)}function Ri(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function Ni(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,f=e.r;0>u&&(s+=u,u=-u),0>c&&(l+=c,c=-c),"number"==typeof f?n=r=i=o=f:f instanceof Array?1===f.length?n=r=i=o=f[0]:2===f.length?(n=i=f[0],r=o=f[1]):3===f.length?(n=f[0],r=o=f[1],i=f[2]):(n=f[0],r=f[1],i=f[2],o=f[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}function ji(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(WS(2*r)===WS(2*i)&&(t.x1=t.x2=Fi(r,s,!0)),WS(2*o)===WS(2*a)&&(t.y1=t.y2=Fi(o,s,!0)),t):t}}function zi(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Fi(r,s,!0),t.y=Fi(i,s,!0),t.width=Math.max(Fi(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Fi(i+a,s,!1)-t.y,0===a?0:1),t):t}}function Fi(t,e,n){if(!e)return t;var r=WS(2*t);return(r+WS(e))%2===0?r/2:(r+(n?1:-1))/2}function Vi(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?U_+"px":t+"px":t}function Hi(t,e){for(var n=0;n=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Yi(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Qi(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Xi(t){var e=t.text;return null!=e&&(e+=""),e}function qi(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Zi(t){return null!=t&&"none"!==t}function Ki(t){if(I(t)){var e=_A.get(t);return e||(e=Fe(t,-.1),_A.put(t,e)),e}if(B(t)){var n=p({},t);return n.colorStops=_(t.colorStops,(function(t){return{offset:t.offset,color:Fe(t.color,-.1)}})),n}return t}function Ji(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function to(t){Ji(t,"emphasis",uA)}function eo(t){t.hoverState===uA&&Ji(t,"normal",sA)}function no(t){Ji(t,"blur",lA)}function ro(t){t.hoverState===lA&&Ji(t,"normal",sA)}function io(t){t.selected=!0}function oo(t){t.selected=!1}function ao(t,e,n){e(t,n)}function so(t,e,n){ao(t,e,n),t.isGroup&&t.traverse((function(t){ao(t,e,n)}))}function lo(t,e){switch(e){case"emphasis":t.hoverState=uA;break;case"normal":t.hoverState=sA;break;case"blur":t.hoverState=lA;break;case"select":t.selected=!0}}function uo(t,e,n,r){for(var i=t.style,o={},a=0;a=0,o=!1;if(t instanceof jS){var a=oA(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Zi(s)||Zi(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=p({},r),u=p({},u),u.fill=s):!Zi(u.fill)&&Zi(s)?(o=!0,r=p({},r),u=p({},u),u.fill=Ki(s)):!Zi(u.stroke)&&Zi(l)&&(o||(r=p({},r),u=p({},u)),u.stroke=Ki(l)),r.style=u}}if(r&&null==r.z2){o||(r=p({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:pA)}return r}function fo(t,e,n){if(n&&null==n.z2){n=p({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:hA)}return n}function po(t,e,n){var r=d(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:uo(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=p({},n),a=p({opacity:r?i:.1*o.opacity},a),n.style=a),n}function ho(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return co(this,t,e,n);if("blur"===t)return po(this,t,n);if("select"===t)return fo(this,t,n)}return n}function go(t){t.stateProxy=ho;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ho),n&&(n.stateProxy=ho)}function vo(t,e){!Ao(t,e)&&!t.__highByOuter&&so(t,to)}function yo(t,e){!Ao(t,e)&&!t.__highByOuter&&so(t,eo)}function mo(t,e){t.__highByOuter|=1<<(e||0),so(t,to)}function _o(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&so(t,eo)}function xo(t){so(t,no)}function bo(t){so(t,ro)}function wo(t){so(t,io)}function So(t){so(t,oo)}function Ao(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Mo(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=aA(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){ro(t)})),a&&n.push(i)),o.isBlured=!1})),m(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function To(t,e,n,r){function i(t,e){for(var n=0;nl;)a=i.getItemGraphicEl(l++);if(a){var u=eA(a);To(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);null!=c&&To(r,c,f,n)}}}function ko(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Bo(t,e,n){Fo(t,!0),so(t,go),jo(t,e,n)}function Ro(t){Fo(t,!1)}function No(t,e,n,r){r?Ro(t):Bo(t,e,n)}function jo(t,e,n){var r=eA(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}function zo(t,e,n,r){n=n||"itemStyle";for(var i=0;i=rA&&(e=iA[t]=rA++),e}function Uo(t){var e=t.type;return e===vA||e===yA||e===mA}function Wo(t){var e=t.type;return e===dA||e===gA}function $o(t){var e=oA(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}function Go(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=wA.M,f=wA.C,p=wA.L,h=wA.R,d=wA.A,g=wA.Q;for(i=0,o=0;u>i;){switch(n=l[i++],o=i,r=0,n){case c:r=1;break;case p:r=1;break;case f:r=3;break;case g:r=2;break;case d:var v=e[4],y=e[5],m=AA(e[0]*e[0]+e[1]*e[1]),_=AA(e[2]*e[2]+e[3]*e[3]),x=MA(-e[1]/_,e[0]/m);l[i]*=m,l[i++]+=v,l[i]*=_,l[i++]+=y,l[i++]*=m,l[i++]*=_,l[i++]+=x,l[i++]+=x,i+=2,o=i;break;case h:s[0]=l[i++],s[1]=l[i++],_t(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],_t(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;r>a;a++){var b=SA[a];b[0]=l[i++],b[1]=l[i++],_t(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}function Yo(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Qo(t,e){return(t[0]*e[0]+t[1]*e[1])/(Yo(t)*Yo(e))}function Xo(t,e){return(t[0]*e[1]1&&(a*=TA(d),s*=TA(d));var g=(i===o?-1:1)*TA((a*a*s*s-a*a*h*h-s*s*p*p)/(a*a*h*h+s*s*p*p))||0,v=g*a*h/s,y=g*-s*p/a,m=(t+n)/2+IA(f)*v-CA(f)*y,_=(e+r)/2+CA(f)*v+IA(f)*y,x=Xo([1,0],[(p-v)/a,(h-y)/s]),b=[(p-v)/a,(h-y)/s],w=[(-1*p-v)/a,(-1*h-y)/s],S=Xo(b,w);if(Qo(b,w)<=-1&&(S=kA),Qo(b,w)>=1&&(S=0),0>S){var A=Math.round(S/kA*1e6)/1e6;S=2*kA+A%2*kA}c.addData(u,m,_,a,s,x,S,f,o)}function Zo(t){var e=new CS;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=CS.CMD,l=t.match(OA);if(!l)return e;for(var u=0;ug;g++)h[g]=parseFloat(h[g]);for(var v=0;d>v;){var y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,A=r,M=i,T=void 0,C=void 0;switch(f){case"l":r+=h[v++],i+=h[v++],p=s.L,e.addData(p,r,i);break;case"L":r=h[v++],i=h[v++],p=s.L,e.addData(p,r,i);break;case"m":r+=h[v++],i+=h[v++],p=s.M,e.addData(p,r,i),o=r,a=i,f="l";break;case"M":r=h[v++],i=h[v++],p=s.M,e.addData(p,r,i),o=r,a=i,f="L";break;case"h":r+=h[v++],p=s.L,e.addData(p,r,i);break;case"H":r=h[v++],p=s.L,e.addData(p,r,i);break;case"v":i+=h[v++],p=s.L,e.addData(p,r,i);break;case"V":i=h[v++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,h[v++],h[v++],h[v++],h[v++],h[v++],h[v++]),r=h[v-2],i=h[v-1];break;case"c":p=s.C,e.addData(p,h[v++]+r,h[v++]+i,h[v++]+r,h[v++]+i,h[v++]+r,h[v++]+i),r+=h[v-2],i+=h[v-1];break;case"S":y=r,m=i,T=e.len(),C=e.data,n===s.C&&(y+=r-C[T-4],m+=i-C[T-3]),p=s.C,A=h[v++],M=h[v++],r=h[v++],i=h[v++],e.addData(p,y,m,A,M,r,i);break;case"s":y=r,m=i,T=e.len(),C=e.data,n===s.C&&(y+=r-C[T-4],m+=i-C[T-3]),p=s.C,A=r+h[v++],M=i+h[v++],r+=h[v++],i+=h[v++],e.addData(p,y,m,A,M,r,i);break;case"Q":A=h[v++],M=h[v++],r=h[v++],i=h[v++],p=s.Q,e.addData(p,A,M,r,i);break;case"q":A=h[v++]+r,M=h[v++]+i,r+=h[v++],i+=h[v++],p=s.Q,e.addData(p,A,M,r,i);break;case"T":y=r,m=i,T=e.len(),C=e.data,n===s.Q&&(y+=r-C[T-4],m+=i-C[T-3]),r=h[v++],i=h[v++],p=s.Q,e.addData(p,y,m,r,i);break;case"t":y=r,m=i,T=e.len(),C=e.data,n===s.Q&&(y+=r-C[T-4],m+=i-C[T-3]),r+=h[v++],i+=h[v++],p=s.Q,e.addData(p,y,m,r,i);break;case"A":_=h[v++],x=h[v++],b=h[v++],w=h[v++],S=h[v++],A=r,M=i,r=h[v++],i=h[v++],p=s.A,qo(A,M,r,i,w,S,_,x,b,p,e);break;case"a":_=h[v++],x=h[v++],b=h[v++],w=h[v++],S=h[v++],A=r,M=i,r+=h[v++],i+=h[v++],p=s.A,qo(A,M,r,i,w,S,_,x,b,p,e)}}("z"===f||"Z"===f)&&(p=s.Z,e.addData(p),r=o,i=a),n=p}return e.toStatic(),e}function Ko(t){return null!=t.setData}function Jo(t,e){var n=Zo(t),r=p({},e);return r.buildPath=function(t){if(Ko(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){Go(n,t),this.dirtyShape()},r}function ta(t,e){return new DA(Jo(t,e))}function ea(t,n){var r=Jo(t,n),i=function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=r.applyTransform,n.buildPath=r.buildPath,n}return e(n,t),n}(DA);return i}function na(t,e){for(var n=[],r=t.length,i=0;r>i;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new jS(e);return a.createPathProxy(),a.buildPath=function(t){if(Ko(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function ra(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,f=s-o,p=f*l-c*u;return YA>p*p?void 0:(p=(c*(e-o)-f*(t-i))/p,[t+p*l,e+p*u])}function ia(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/WA(s*s+l*l),c=u*l,f=-u*s,p=t+c,h=e+f,d=n+c,g=r+f,v=(p+d)/2,y=(h+g)/2,m=d-p,_=g-h,x=m*m+_*_,b=i-o,w=p*g-d*h,S=(0>_?-1:1)*WA($A(0,b*b*x-w*w)),A=(w*_-m*S)/x,M=(-w*m-_*S)/x,T=(w*_+m*S)/x,C=(-w*m+_*S)/x,I=A-v,k=M-y,O=T-v,P=C-y;return I*I+k*k>O*O+P*P&&(A=T,M=C),{cx:A,cy:M,x0:-c,y0:-f,x1:A*(i/b-1),y1:M*(i/b-1)}}function oa(t){var e;if(T(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function aa(t,e){var n,r=$A(e.r,0),i=$A(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,f=e.cy,p=!!e.clockwise,h=UA(u-l),d=h>jA&&h%jA;if(d>YA&&(h=d),r>YA)if(h>jA-YA)t.moveTo(c+r*FA(l),f+r*zA(l)),t.arc(c,f,r,l,u,!p),i>YA&&(t.moveTo(c+i*FA(u),f+i*zA(u)),t.arc(c,f,i,u,l,p));else{var g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,A=void 0,M=void 0,T=void 0,C=void 0,I=void 0,k=void 0,O=void 0,P=r*FA(l),D=r*zA(l),E=i*FA(u),L=i*zA(u),B=h>YA;if(B){var R=e.cornerRadius;R&&(n=oa(R),g=n[0],v=n[1],y=n[2],m=n[3]);var N=UA(r-i)/2;if(_=GA(N,y),x=GA(N,m),b=GA(N,g),w=GA(N,v),M=S=$A(_,x),T=A=$A(b,w),(S>YA||A>YA)&&(C=r*FA(u),I=r*zA(u),k=i*FA(l),O=i*zA(l),NA>h)){var j=ra(P,D,k,O,C,I,E,L);if(j){var z=P-j[0],F=D-j[1],V=C-j[0],H=I-j[1],U=1/zA(VA((z*V+F*H)/(WA(z*z+F*F)*WA(V*V+H*H)))/2),W=WA(j[0]*j[0]+j[1]*j[1]);M=GA(S,(r-W)/(U+1)),T=GA(A,(i-W)/(U-1))}}}if(B)if(M>YA){var $=GA(y,M),G=GA(m,M),Y=ia(k,O,P,D,r,$,p),Q=ia(C,I,E,L,r,G,p);t.moveTo(c+Y.cx+Y.x0,f+Y.cy+Y.y0),S>M&&$===G?t.arc(c+Y.cx,f+Y.cy,M,HA(Y.y0,Y.x0),HA(Q.y0,Q.x0),!p):($>0&&t.arc(c+Y.cx,f+Y.cy,$,HA(Y.y0,Y.x0),HA(Y.y1,Y.x1),!p),t.arc(c,f,r,HA(Y.cy+Y.y1,Y.cx+Y.x1),HA(Q.cy+Q.y1,Q.cx+Q.x1),!p),G>0&&t.arc(c+Q.cx,f+Q.cy,G,HA(Q.y1,Q.x1),HA(Q.y0,Q.x0),!p))}else t.moveTo(c+P,f+D),t.arc(c,f,r,l,u,!p);else t.moveTo(c+P,f+D);if(i>YA&&B)if(T>YA){$=GA(g,T),G=GA(v,T),Y=ia(E,L,C,I,i,-G,p),Q=ia(P,D,k,O,i,-$,p);t.lineTo(c+Y.cx+Y.x0,f+Y.cy+Y.y0),A>T&&$===G?t.arc(c+Y.cx,f+Y.cy,T,HA(Y.y0,Y.x0),HA(Q.y0,Q.x0),!p):(G>0&&t.arc(c+Y.cx,f+Y.cy,G,HA(Y.y0,Y.x0),HA(Y.y1,Y.x1),!p),t.arc(c,f,i,HA(Y.cy+Y.y1,Y.cx+Y.x1),HA(Q.cy+Q.y1,Q.cx+Q.x1),p),$>0&&t.arc(c+Q.cx,f+Q.cy,$,HA(Q.y1,Q.x1),HA(Q.y0,Q.x0),!p))}else t.lineTo(c+E,f+L),t.arc(c,f,i,u,l,p);else t.lineTo(c+E,f+L)}else t.moveTo(c,f);t.closePath()}}}function sa(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],f=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,h=t.length;h>p;p++)xt(a,a,t[p]),bt(s,s,t[p]);xt(a,a,r[0]),bt(s,s,r[1])}for(p=0,h=t.length;h>p;p++){var d=t[p];if(n)i=t[p?p-1:h-1],o=t[(p+1)%h];else{if(0===p||p===h-1){l.push(rt(t[p]));continue}i=t[p-1],o=t[p+1]}st(u,o,i),ht(u,u,e);var g=gt(d,i),v=gt(d,o),y=g+v;0!==y&&(g/=y,v/=y),ht(c,u,-g),ht(f,u,v);var m=ot([],d,c),_=ot([],d,f);r&&(bt(m,m,a),xt(m,m,s),bt(_,_,a),xt(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function la(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=sa(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var f=i.length;f>s;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}function ua(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?he:pe)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?he:pe)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?xe:_e)(t.x1,t.cpx1,t.x2,e),(n?xe:_e)(t.y1,t.cpy1,t.y2,e)]}function ca(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,c=void 0,f=void 0;r?(u=F(r.duration,200),c=F(r.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(f=o.delay)),C(f)&&(f=f(n,i)),C(u)&&(u=u(n));var p={duration:u||0,delay:f,easing:c};return p}return null}function fa(t,e,n,r,i,o,a){var s,l=!1;C(i)?(a=o,o=i,i=null):P(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=ca(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var f=c.duration,p=c.delay,h=c.easing,d={duration:f,delay:p||0,easing:h,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function pa(t,e,n,r,i,o){fa("update",t,e,n,r,i,o)}function ha(t,e,n,r,i,o){fa("enter",t,e,n,r,i,o)}function da(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Da(t){return!t.isGroup}function Ea(t){return null!=t.shape}function La(t,e,n){function r(t){var e={};return t.traverse((function(t){Da(t)&&t.anid&&(e[t.anid]=t)})),e}function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Ea(t)&&(e.shape=p({},t.shape)),e}if(t&&e){var o=r(t);e.traverse((function(t){if(Da(t)&&t.anid){var e=o[t.anid];if(e){var r=i(t);t.attr(i(e)),pa(t,r,n,eA(t).dataIndex)}}}))}}function Ba(t,e){return _(t,(function(t){var n=t[0];n=wM(n,e.x),n=SM(n,e.x+e.width);var r=t[1];return r=wM(r,e.y),r=SM(r,e.y+e.height),[n,r]}))}function Ra(t,e){var n=wM(t.x,e.x),r=SM(t.x+t.width,e.x+e.width),i=wM(t.y,e.y),o=SM(t.y+t.height,e.y+e.height);return r>=n&&o>=i?{x:n,y:i,width:r-n,height:o-i}:void 0}function Na(t,e,n){var r=p({rectHover:!0},e),i=r.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(i.image=t.slice(8),h(i,n),new US(r)):Sa(t.replace("path://",""),r,n,"center"):void 0}function ja(t,e,n,r,i){for(var o=0,a=i[i.length-1];og||g>1)return!1;var v=Fa(h,d,c,f)/p;return!(0>v||v>1)}function Fa(t,e,n,r){return t*r-n*e}function Va(t){return 1e-6>=t&&t>=-1e-6}function Ha(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=I(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&m(S(l),(function(t){J(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=eA(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:h({content:r,formatterParams:s},i)}}function Ua(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Wa(t,e){if(t)if(T(t))for(var n=0;n=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function a(t){c[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,c={};for(m(t,(function(t){c[t]=!0}));u.length;){var f=u.pop(),p=l[f],h=!!c[f];h&&(r.call(i,f,p.originalDeps.slice()),delete c[f]),m(p.successor,h?a:o)}m(c,(function(){var t="";throw new Error(t)}))}}}function as(t,e){return c(c({},t,!0),e,!0)}function ss(t,e){t=t.toUpperCase(),KM[t]=new WM(e),ZM[t]=e}function ls(t){if(I(t)){var e=ZM[t.toUpperCase()]||{};return t===QM||t===XM?u(e):c(u(e),u(ZM[qM]),!1)}return c(u(t),u(ZM[qM]),!1)}function us(t){return KM[t]}function cs(){return KM[qM]}function fs(t,e){return t+="","0000".substr(0,e-t.length)+t}function ps(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function hs(t){return t===ps(t)}function ds(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function gs(t,e,n,r){var i=rr(t),o=i[_s(n)](),a=i[xs(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[bs(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[ws(n)](),f=(c-1)%12+1,p=i[Ss(n)](),h=i[As(n)](),d=i[Ms(n)](),g=r instanceof WM?r:us(r||JM)||cs(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),_=v.get("dayOfWeek"),x=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,fs(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,fs(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,fs(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,fs(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,fs(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,fs(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,fs(d,3)).replace(/{S}/g,d+"")}function vs(t,e,n,r,i){var o=null;if(I(n))o=n;else if(C(n))o=n(t.value,e,{level:t.level});else{var a=p({},oT);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(T(o)){var f=null==t.level?0:t.level>=0?t.level:o.length+t.level;f=Math.min(f,o.length-1),o=o[f]}}return gs(new Date(t.value),o,i,r)}function ys(t,e){var n=rr(t),r=n[xs(e)]()+1,i=n[bs(e)](),o=n[ws(e)](),a=n[Ss(e)](),s=n[As(e)](),l=n[Ms(e)](),u=0===l,c=u&&0===s,f=c&&0===a,p=f&&0===o,h=p&&1===i,d=h&&1===r;return d?"year":h?"month":p?"day":f?"hour":c?"minute":u?"second":"millisecond"}function ms(t,e,n){var r=O(t)?rr(t):t;switch(e=e||ys(t,n)){case"year":return r[_s(n)]();case"half-year":return r[xs(n)]()>=6?1:0;case"quarter":return Math.floor((r[xs(n)]()+1)/4);case"month":return r[xs(n)]();case"day":return r[bs(n)]();case"half-day":return r[ws(n)]()/24;case"hour":return r[ws(n)]();case"minute":return r[Ss(n)]();case"second":return r[As(n)]();case"millisecond":return r[Ms(n)]()}}function _s(t){return t?"getUTCFullYear":"getFullYear"}function xs(t){return t?"getUTCMonth":"getMonth"}function bs(t){return t?"getUTCDate":"getDate"}function ws(t){return t?"getUTCHours":"getHours"}function Ss(t){return t?"getUTCMinutes":"getMinutes"}function As(t){return t?"getUTCSeconds":"getSeconds"}function Ms(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Ts(t){return t?"setUTCFullYear":"setFullYear"}function Cs(t){return t?"setUTCMonth":"setMonth"}function Is(t){return t?"setUTCDate":"setDate"}function ks(t){return t?"setUTCHours":"setHours"}function Os(t){return t?"setUTCMinutes":"setMinutes"}function Ps(t){return t?"setUTCSeconds":"setSeconds"}function Ds(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Es(t,e,n,r,i,o,a,s){var l=new ZS({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Ls(t){if(!cr(t))return I(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Bs(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function Rs(t,e,n){function r(t){return t&&$(t)?t:"-"}function i(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",a="time"===e,s=t instanceof Date;if(a||s){var l=a?rr(t):t;if(!isNaN(+l))return gs(l,o,n);if(s)return"-"}if("ordinal"===e)return k(t)?r(t):O(t)&&i(t)?t+"":"-";var u=ur(t);return i(u)?Ls(u):k(t)?r(t):"boolean"==typeof t?t+"":"-"}function Ns(t,e,n){T(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;os;s++)for(var l=0;l':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function zs(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var r=rr(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),f=r[i+"Milliseconds"]();return t.replace("MM",fs(a,2)).replace("M",a).replace("yyyy",o).replace("yy",fs(o%100+"",2)).replace("dd",fs(s,2)).replace("d",s).replace("hh",fs(l,2)).replace("h",l).replace("mm",fs(u,2)).replace("m",u).replace("ss",fs(c,2)).replace("s",c).replace("SSS",fs(f,3))}function Fs(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Vs(t,e){return e=e||"transparent",I(t)?t:P(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Hs(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,f,p=l.getBoundingRect(),h=e.childAt(u+1),d=h&&h.getBoundingRect();if("horizontal"===t){var g=p.width+(d?-d.x+p.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(d?-d.y+p.y:0);f=a+v,f>i||l.newline?(o+=s+n,a=0,f=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=f+n)}))}function Us(t,e,n){n=cT(n||0);var r=e.width,i=e.height,o=Gn(t.left,r),a=Gn(t.top,i),s=Gn(t.right,r),l=Gn(t.bottom,i),u=Gn(t.width,r),c=Gn(t.height,i),f=n[2]+n[0],p=n[1]+n[3],h=t.aspect;switch(isNaN(u)&&(u=r-s-p-o),isNaN(c)&&(c=i-l-f-a),null!=h&&(isNaN(u)&&isNaN(c)&&(h>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=r-s-u-p),isNaN(a)&&(a=i-l-c-f),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-p}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-f}o=o||0,a=a||0,isNaN(u)&&(u=r-p-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var d=new Gx(o+n[3],a+n[0],u,c);return d.margin=n,d}function Ws(t,e,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(o=o||t,o.x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Gx(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();a=a.clone(),a.applyTransform(c)}var f=Us(h({width:a.width,height:a.height},e),n,r),p=s?f.x-a.x:0,d=l?f.y-a.y:0;return"raw"===u?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===t&&t.markRedraw(),!0}function $s(t){var e=t.layoutMode||t.constructor.layoutMode;return P(e)?e:e?{type:e}:null}function Gs(t,e,n){function r(n,r){var a={},l=0,u={},c=0,f=2;if(hT(n,(function(e){u[e]=t[e]})),hT(n,(function(t){i(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&c++})),s[r])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(c!==f&&l){if(l>=f)return a;for(var p=0;pr;r++)t.push(e+r)}function i(t){var e=t.dimsDef;return e?e.length:1}var o={},a=Ks(e);if(!a||!t)return o;var s,l,u=[],c=[],f=e.ecModel,p=LT(f).datasetMap,h=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),m(t,(function(e,n){var r=P(e)?e:t[n]={name:e};"ordinal"===r.type&&null==s&&(s=n,l=i(r)),o[r.name]=[]}));var d=p.get(h)||p.set(h,{categoryWayDim:l,valueWayDim:0});return m(t,(function(t,e){var n=t.name,a=i(t);if(null==s){var l=d.valueWayDim;r(o[n],l,a),r(c,l,a),d.valueWayDim+=a}else if(s===e)r(o[n],0,a),r(u,0,a);else{l=d.categoryWayDim;r(o[n],l,a),r(c,l,a),d.categoryWayDim+=a}})),u.length&&(o.itemName=u),c.length&&(o.seriesName=c),o}function Ks(t){var e=t.get("data",!0);return e?void 0:zr(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Dw).models[0]}function Js(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?zr(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Dw).models:[]}function tl(t,e){return el(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function el(t,e,n,r,i,o){function a(t){var e=I(t);return null!=t&&isFinite(t)&&""!==t?e?ET.Might:ET.Not:e&&"-"!==t?ET.Must:void 0}var s,l,u,c=5;if(E(t))return ET.Not;if(r){var f=r[o];P(f)?(l=f.name,u=f.type):I(f)&&(l=f)}if(null!=u)return"ordinal"===u?ET.Must:ET.Not;if(e===TT){var p=t;if(n===DT){for(var h=p[o],d=0;d<(h||[]).length&&c>d;d++)if(null!=(s=a(h[i+d])))return s}else for(d=0;dd;d++){var g=p[i+d];if(g&&null!=(s=a(g[o])))return s}}else if(e===CT){var v=t;if(!l)return ET.Not;for(d=0;dd;d++){var y=v[d];if(y&&null!=(s=a(y[l])))return s}}else if(e===IT){var m=t;if(!l)return ET.Not;h=m[l];if(!h||E(h))return ET.Not;for(d=0;dd;d++)if(null!=(s=a(h[d])))return s}else if(e===MT){var _=t;for(d=0;d<_.length&&c>d;d++){y=_[d];var x=mr(y);if(!T(x))return ET.Not;if(null!=(s=a(x[o])))return s}}return ET.Not}function nl(t,e,n){var r=BT.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}function rl(t,e){for(var n=t.length,r=0;n>r;r++)if(t[r].length>e)return t[r];return t[n-1]}function il(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?rl(r,a):n;if(c=c||n,c&&c.length){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function ol(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function al(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}function sl(t,e){var n=t.color&&!t.colorLayer;m(e,(function(e,r){"colorLayer"===r&&n||mT.hasClass(r)||("object"==l(e)?t[r]=t[r]?c(t[r],e,!1):u(e):null==t[r]&&(t[r]=e))}))}function ll(t,e,n){if(T(e)){var r=X();return m(e,(function(t){if(null!=t){var e=kr(t,null);null!=e&&r.set(t,!0)}})),b(n,(function(e){return e&&r.get(e[t])}))}var i=kr(e,null);return b(n,(function(e){return e&&null!=i&&e[t]===i}))}function ul(t,e){return e.hasOwnProperty("subType")?b(t,(function(t){return t&&t.subType===e.subType})):t}function cl(t){var e=X();return t&&m(vr(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}function fl(t,e,n){function r(t){m(e,(function(e){e(t,n)}))}var i,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,c=t.media,f=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((p||f)&&(t.options=t.media=null),o=t),f&&T(c)&&m(c,(function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})),r(o),m(u,(function(t){return r(t)})),m(a,(function(t){return r(t.option)})),{baseOption:o,timelineOptions:u||[],mediaDefault:i,mediaList:a}}function pl(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return m(t,(function(t,e){var n=e.match(ZT);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();hl(r[a],t,o)||(i=!1)}})),i}function hl(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function dl(t,e){return t.join(",")===e.join(",")}function gl(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=eC.length;r>n;n++){var i=eC[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?c(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?c(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function vl(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,h(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function yl(t){vl(t,"itemStyle"),vl(t,"lineStyle"),vl(t,"areaStyle"),vl(t,"label"),vl(t,"labelLine"),vl(t,"upperLabel"),vl(t,"edgeLabel")}function ml(t,e){var n=tC(t)&&t[e],r=tC(n)&&n.textStyle;if(r)for(var i=0,o=Ow.length;o>i;i++){var a=Ow[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function _l(t){t&&(yl(t),ml(t,"label"),t.emphasis&&ml(t.emphasis,"label"))}function xl(t){if(tC(t)){gl(t),yl(t),ml(t,"label"),ml(t,"upperLabel"),ml(t,"edgeLabel"),t.emphasis&&(ml(t.emphasis,"label"),ml(t.emphasis,"upperLabel"),ml(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(gl(e),_l(e));var n=t.markLine;n&&(gl(n),_l(n));var r=t.markArea;r&&_l(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!E(o))for(var a=0;a=0;g--){var v=t[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,f)),p>=0){var y=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&y>0||"negative"===l&&0>y||"samesign"===l&&h>=0&&y>0||"samesign"===l&&0>=h&&0>y){h=tr(h,y),d=y;break}}}return r[0]=h,r[1]=d,r}))}))}function Bl(t){return t instanceof oC}function Rl(t,e,n){n=n||zl(t);var r=e.seriesLayoutBy,i=Fl(t,n,r,e.sourceHeader,e.dimensions),o=new oC({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:u(e)});return o}function Nl(t){return new oC({data:t,sourceFormat:E(t)?kT:MT})}function jl(t){return new oC({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:u(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function zl(t){var e=OT;if(E(t))e=kT;else if(T(t)){0===t.length&&(e=TT);for(var n=0,r=t.length;r>n;n++){var i=t[n];if(null!=i){if(T(i)){e=TT;break}if(P(i)){e=CT;break}}}}else if(P(t))for(var o in t)if(J(t,o)&&y(t[o])){e=IT;break}return e}function Fl(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:Hl(i),startIndex:a,dimensionsDetectedCount:o};if(e===TT){var s=t;"auto"===r||null==r?Ul((function(t){null!=t&&"-"!==t&&(I(t)?null==a&&(a=1):a=0)}),n,s,10):a=O(r)?r:r?1:0,i||1!==a||(i=[],Ul((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===DT?s.length:s[0]?s[0].length:null}else if(e===CT)i||(i=Vl(t));else if(e===IT)i||(i=[],m(t,(function(t,e){i.push(e)})));else if(e===MT){var l=mr(t[0]);o=T(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Hl(i),dimensionsDetectedCount:o}}function Vl(t){for(var e,n=0;ni;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;ii;i++)t(o[i],i)}}function Wl(t){var e=t.sourceFormat;return e===CT||e===IT}function $l(t,e){var n=lC[Ql(t,e)];return n}function Gl(t,e){var n=cC[Ql(t,e)];return n}function Yl(t){var e=pC[t];return e}function Ql(t,e){return t===TT?t+"_"+e:t}function Xl(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return Yl(o)(r,a,s)}var l=r;return o===MT&&(l=mr(r)),l}}}function ql(t){var e,n;return P(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Zl(t){return new gC(t)}function Kl(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||O(t)||null==t||"-"===t||(t=+rr(t)),null==t||""===t?NaN:+t)}function Jl(t,e){var n=new _C,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==PT&&dr(a);var s=[],l={},u=t.dimensionsDefine;if(u)m(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";J(l,n)&&dr(i),l[n]=r}}));else for(var c=0;co;o++)i.push(n[o].slice());return i}if(e===CT){for(i=[],o=0,a=n.length;a>o;o++)i.push(p({},n[o]));return i}}function nu(t,e,n){return null!=n?O(n)||!isNaN(n)&&!J(e,n)?t[n]:J(e,n)?e[n]:void 0:void 0}function ru(t){return u(t)}function iu(t){t=u(t);var e=t.type,n="";e||dr(n);var r=e.split(":");2!==r.length&&dr(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,xC.set(e,t)}function ou(t,e,n){var r=vr(t),i=r.length,o="";i||dr(o);for(var a=0,s=i;s>a;a++){var l=r[a];e=au(l,e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function au(t,e){var n="";e.length||dr(n),P(t)||dr(n);var r=t.type,i=xC.get(r);i||dr(n);var o=_(e,(function(t){return Jl(t,i)})),a=vr(i.transform({upstream:o[0],upstreamList:o,config:u(t.config)}));return _(a,(function(t,n){var r="";P(t)||dr(r),t.data||dr(r);var i=zl(t.data);su(i)||dr(r);var o,a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),o={seriesLayoutBy:PT,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:PT,sourceHeader:0,dimensions:t.dimensions};return Rl(t.data,o,null)}))}function su(t){return t===TT||t===CT}function lu(t){return t>65535?wC:SC}function uu(){return[1/0,-1/0]}function cu(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function fu(t,e,n,r,i){var o=TC[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}function pu(t){var e=t.option.transform;e&&G(t.option.transform)}function hu(t){return"series"===t.mainType}function du(t){throw new Error(t)}function gu(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+kt(r+"")+"px;color:"+kt(n)+";font-weight:"+kt(i+""),valueStyle:"font-size:"+kt(a+"")+"px;color:"+kt(o)+";font-weight:"+kt(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function vu(t,e){return e.type=t,e}function yu(t){return"section"===t.type}function mu(t){return yu(t)?xu:bu}function _u(t){if(yu(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return m(t.blocks,(function(t){var n=_u(t);n>=e&&(e=n+ +(r&&(!n||yu(t)&&!t.noHeader)))})),e}return 0}function xu(t,e,n,r){var i=e.noHeader,o=Su(_u(e)),a=[],s=e.blocks||[];W(!s||T(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var c=new mC(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}m(s,(function(n,i){var s=e.valueFormatter,l=mu(n)(s?p(p({},t),{valueFormatter:s}):t,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var f="richText"===t.renderMode?a.join(o.richText):Au(a.join(""),i?n:o.html);if(i)return f;var h=Rs(e.header,"ordinal",t.useUTC),d=gu(r,t.renderMode).nameStyle;return"richText"===t.renderMode?Cu(t,h,d)+o.richText+f:Au('
'+kt(h)+"
"+f,n)}function bu(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=T(t)?t:[t],_(t,(function(t,e){return Rs(t,T(h)?h[e]:h,u)}))};if(!o||!a){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),p=o?"":Rs(l,"ordinal",u),h=e.valueType,d=a?[]:c(e.value),g=!s||!o,v=!s&&o,y=gu(r,i),m=y.nameStyle,x=y.valueStyle;return"richText"===i?(s?"":f)+(o?"":Cu(t,p,m))+(a?"":Iu(t,d,g,v,x)):Au((s?"":f)+(o?"":Mu(p,!s,m))+(a?"":Tu(d,g,v,x)),n)}}function wu(t,e,n,r,i,o){if(t){var a=mu(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function Su(t){return{html:OC[t],richText:PC[t]}}function Au(t,e){var n='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function Mu(t,e,n){var r=e?"margin-left:2px":"";return''+kt(t)+""}function Tu(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=T(t)?t:[t],''+_(t,(function(t){return kt(t)})).join("  ")+""}function Cu(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Iu(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(T(e)?e.join(" "):e,o)}function ku(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Vs(r)}function Ou(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}function Pu(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,f=o.getRawValue(a),p=T(f),h=ku(o,a);if(c>1||p&&!c){var d=Du(f,o,a,u,h);e=d.inlineValues,n=d.inlineValueTypes,r=d.blocks,i=d.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=Xl(l,a,u[0]),n=g.type}else i=e=p?f[0]:f;var v=Or(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return vu("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[vu("nameValue",{markerType:"item",markerColor:h,name:_,noName:!$(_),value:e,valueType:n})].concat(r||[])})}function Du(t,e,n,r,i){function o(t,e){var n=a.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(s?c.push(vu("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}var a=e.getData(),s=x(t,(function(t,e,n){var r=a.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),l=[],u=[],c=[];return r.length?m(r,(function(t){o(Xl(a,n,t),t)})):m(t,o),{inlineValues:l,inlineValueTypes:u,blocks:c}}function Eu(t,e){return t.getName(e)||t.getId(e)}function Lu(t){var e=t.name;Or(t)||(t.name=Bu(t)||e)}function Bu(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return m(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Ru(t){return t.model.getRawData().count()}function Nu(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),ju}function ju(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function zu(t,e){m(q(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,M(Fu,e))}))}function Fu(t,e){var n=Vu(t);return n&&n.setOutputEnd((e||this).count()),e}function Vu(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}function Hu(){var t=Rr();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}function Uu(t,e,n){t&&Vo(t)&&("emphasis"===e?mo:_o)(t,n)}function Wu(t,e,n){var r=Br(t,e),i=e&&null!=e.highlightKey?Ho(e.highlightKey):null;null!=r?m(vr(r),(function(e){Uu(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){Uu(t,n,i)}))}function $u(t){return jC(t.model)}function Gu(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&NC(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),VC[l]}function Yu(t,e,n){function r(){c=(new Date).getTime(),f=null,t.apply(a,s||[])}var i,o,a,s,l,u=0,c=0,f=null;e=e||0;var p=function(){for(var t=[],p=0;p=0?r():f=setTimeout(r,-o),u=i};return p.clear=function(){f&&(clearTimeout(f),f=null)},p.debounceNextCall=function(t){l=t},p}function Qu(t,e,n,r){var i=t[e];if(i){var o=i[HC]||i,a=i[WC],s=i[UC];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=Yu(o,n,"debounce"===r),i[HC]=o,i[WC]=r,i[UC]=n}return i}}function Xu(t,e){var n=t[e];n&&n[HC]&&(n.clear&&n.clear(),t[e]=n[HC])}function qu(t,e){var n=t.visualStyleMapper||GC[e];return n||(console.warn("Unknown style type '"+e+"'."),GC.itemStyle)}function Zu(t,e){var n=t.visualDrawType||YC[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}function Ku(t,e){e=e||{},h(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new mw,r=new YS({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new ZS({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new YS({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new uM({shape:{startAngle:-KC/2,endAngle:-KC/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*KC/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*KC/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}function Ju(t){t.overallReset(t.ecModel,t.api,t.payload)}function tc(t){return t.overallProgress&&ec}function ec(){this.agent.dirty(),this.getDownstream().dirty()}function nc(){this.agent&&this.agent.dirty()}function rc(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function ic(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=vr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?_(e,(function(t,e){return oc(e)})):tI}function oc(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o=0&&_c(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function wc(t,e,n){for(var r="radial"===e.type?bc(t,e,n):xc(t,e,n),i=e.colorStops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:O(t)?[t]:T(t)?t:null:null}function Cc(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Tc(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=_(n,(function(t){return t/i})),r/=i)}return[n,r]}function Ic(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function kc(t){return"string"==typeof t&&"none"!==t}function Oc(t){var e=t.fill;return null!=e&&"none"!==e}function Pc(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Dc(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Ec(t,e,n){var r=ni(e.image,e.__image,n);if(ii(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*gx),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function Lc(t,e,n,r){var i,o=Ic(n),a=Oc(n),s=n.strokePercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||TI,f=e.__dirty;if(!r){var p=n.fill,h=n.stroke,d=a&&!!p.colorStops,g=o&&!!h.colorStops,v=a&&!!p.image,y=o&&!!h.image,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(d||g)&&(w=e.getBoundingRect()),d&&(m=f?wc(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=f?wc(t,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=f||!e.__canvasFillPattern?Ec(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(b=f||!e.__canvasStrokePattern?Ec(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=m:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:y&&(b?t.strokeStyle=b:o=!1)}var S,A,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=Cc(e),S=i[0],A=i[1]);var T=!0;(u||f&ib)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=A),r||(n.strokeFirst?(o&&Dc(t,n),a&&Pc(t,n)):(a&&Pc(t,n),o&&Dc(t,n))),S&&t.setLineDash([])}function Bc(t,e,n){var r=e.__image=ni(n.image,e.__image,e,e.onload);if(r&&ii(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var f=a-u,p=s-c;t.drawImage(r,u,c,f,p,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function Rc(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||$_,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=Cc(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Ic(n)&&t.strokeText(i,n.x,n.y),Oc(n)&&t.fillText(i,n.x,n.y)):(Oc(n)&&t.fillText(i,n.x,n.y),Ic(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}function Nc(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){Wc(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Qw.opacity:a}(r||e.blend!==n.blend)&&(o||(Wc(t,i),o=!0),t.globalCompositeOperation=e.blend||Qw.blend);for(var s=0;so;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Yc(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;c>u;u++){l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Yc(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function Xc(t,e){function n(t){function e(){for(var t=1,e=0,n=y.length;n>e;++e)t=hr(t,y[e]);var r=1;for(e=0,n=v.length;n>e;++e)r=hr(r,v[e].length);t*=r;var i=m*y.length*v.length;return{width:Math.max(1,Math.min(t,s.maxTileWidth)),height:Math.max(1,Math.min(i,s.maxTileHeight))}}function n(){function t(t,e,n,a,l){var u=o?1:r,c=vc(l,t*u,e*u,n*u,a*u,s.color,s.symbolKeepAspect);if(o){var f=i.painter.renderOneToVNode(c);f&&x.children.push(f)}else Gc(h,c)}h&&(h.clearRect(0,0,_.width,_.height),s.backgroundColor&&(h.fillStyle=s.backgroundColor,h.fillRect(0,0,_.width,_.height)));for(var e=0,n=0;n=e))for(var a=-m,l=0,u=0,c=0;a=S)break;if(y%2===0){var A=.5*(1-s.symbolSize),M=p+d[c][y]*A,T=a+g[l]*A,C=d[c][y]*s.symbolSize,I=g[l]*s.symbolSize,k=w/2%v[f].length;t(M,T,C,I,v[f][k])}p+=d[c][y],++w,++y,y===d[c].length&&(y=0)}++c,c===d.length&&(c=0)}a+=g[l],++u,++l,l===g.length&&(l=0)}}for(var a=[r],l=!0,u=0;u=0)){Yk.push(n);var o=JC.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Tf(t,e){Fk[t]=e}function Cf(t){o({createCanvas:t})}function If(t,e,n){var r=rf("registerMap");r&&r(t,e,n)}function kf(t){var e=rf("getMap");return e&&e(t)}function Of(t){return null==t?0:t.length||1}function Pf(t){return t}function Df(t,e){var n={},r=n.encode={},i=X(),o=[],a=[],s={};m(t.dimensions,(function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){var u=n.coordDimIndex;Ef(r,l)[u]=e,n.isExtraCoord||(i.set(l,1),Bf(n.type)&&(o[0]=e),Ef(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}AT.each((function(t,e){var i=Ef(r,e),o=n.otherDims[e];null!=o&&!1!==o&&(i[o]=n.name)}))}));var l=[],u={};i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=_(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var f=r.tooltip;return f&&f.length?a=f.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new iO(s,e),n}function Ef(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Lf(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Bf(t){return!("ordinal"===t||"time"===t)}function Rf(t){return t instanceof lO}function Nf(t){for(var e=X(),n=0;n<(t||[]).length;n++){var r=t[n],i=P(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function jf(t){var e=aO(t);return e.dimNameMap||(e.dimNameMap=Nf(t.dimensionsDefine))}function zf(t){return t>30}function Ff(t,e){return Vf(t,e).dimensions}function Vf(t,e){function n(t){var e=y[t];if(0>e){var n=a[t],r=P(n)?n:{name:n},i=new oO,o=r.name;null!=o&&null!=d.get(o)&&(i.name=i.displayName=o),null!=r.type&&(i.type=r.type),null!=r.displayName&&(i.displayName=r.displayName);var s=l.length;return y[t]=s,i.storeDimIndex=t,l.push(i),i}return l[e]}function r(t,e,n){null!=AT.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function i(t){null==t.name&&(t.name=t.coordDim)}Bl(t)||(t=Nl(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=X(),l=[],u=Uf(t,o,a,e.dimensionsCount),c=e.canOmitUnusedDimensions&&zf(u),f=a===t.dimensionsDefine,d=f?jf(t):Nf(a),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,u));for(var v=X(g),y=new AC(u),_=0;__;_++)n(_);v.each((function(t,e){var i=vr(t).slice();if(1===i.length&&!I(i[0])&&i[0]<0)v.set(e,!1);else{var o=v.set(e,[]);m(i,(function(t,i){var a=I(t)?d.get(t):t;null!=a&&u>a&&(o[i]=a,r(n(a),e,i))}))}}));var x=0;m(o,(function(t){var e,i,o,a;if(I(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=p({},a),a.ordinalMeta=s,i=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var l=v.get(e);if(!1!==l){if(l=vr(l),!l.length)for(var c=0;c<(i&&i.length||1);c++){for(;u>x&&null!=n(x).coordDim;)x++;u>x&&l.push(x++)}m(l,(function(t,s){var l=n(t);if(f&&null!=a.type&&(l.type=a.type),r(h(l,a),e,s),null==l.name&&i){var u=i[s];!P(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&h(l.otherDims,o)}))}}));var b=e.generateCoord,w=e.generateCoordCount,S=null!=w;w=b?w||1:0;var A=b||"value";if(c)m(l,(function(t){i(t)})),l.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var M=0;u>M;M++){var T=n(M),C=T.coordDim;null==C&&(T.coordDim=Wf(A,s,S),T.coordDimIndex=0,(!b||0>=w)&&(T.isExtraCoord=!0),w--),i(T),null!=T.type||tl(t,M)!==ET.Must&&(!T.isExtraCoord||null==T.otherDims.itemName&&null==T.otherDims.seriesName)||(T.type="ordinal")}return Hf(l),new lO({source:t,dimensions:l,fullDimensionCount:u,dimensionOmitted:c})}function Hf(t){for(var e=X(),n=0;n0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function Uf(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return m(e,(function(t){var e;P(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function Wf(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}function $f(t){var e=t.get("coordinateSystem"),n=new yO(e),r=mO[e];return r?(r(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function Gf(t){return"category"===t.get("type")}function Yf(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;Qf(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,c,f,p=!(!t||!t.get("stack"));if(m(r,(function(t,e){I(t)&&(r[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,f="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,d=u.type,g=0;m(r,(function(t){t.coordDim===h&&g++}));var v={name:c,coordDim:h,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(f,d),y.storeDimIndex=o.ensureCalculationDimension(c,d)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:f,stackResultDimension:c}}function Qf(t){return!Rf(t.schema)}function Xf(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function qf(t,e){return Xf(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Zf(t,e){var n,r=t.get("coordinateSystem"),i=qT.get(r);return e&&e.coordSysDims&&(n=_(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=Lf(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function Kf(t,e,n){var r,i;return n&&m(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function Jf(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Nl(t)):(r=i.getSource(),o=r.sourceFormat===MT);var a=$f(e),s=Zf(e,a),l=n.useEncodeDefaulter,u=C(l)?l:l?M(Zs,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=Vf(r,c),p=Kf(f.dimensions,n.createInvertedIndices,a),h=o?null:i.getSharedDataStore(f),d=Yf(e,{schema:f,store:h}),g=new vO(f,e);g.setCalculationInfo(d);var v=null!=p&&tp(r)?function(t,e,n,r){return r===p?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:h,null,v),g}function tp(t){if(t.sourceFormat===MT){var e=ep(t.data||[]);return!T(mr(e))}}function ep(t){for(var e=0;ea&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=ap(a),l=i.niceTickExtent=[Yn(Math.ceil(t[0]/a)*a,s),Yn(Math.floor(t[1]/a)*a,s)];return lp(l,t),i}function op(t){var e=Math.pow(10,or(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Yn(n*e)}function ap(t){return Xn(t)+2}function sp(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function lp(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),sp(t,0,e),sp(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function up(t,e){return t>=e[0]&&t<=e[1]}function cp(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function fp(t,e){return t*(e[1]-e[0])+e[0]}function pp(t){return T(t)?MO?new Float32Array(t):t:new TO(t)}function hp(t){return t.get("stack")||CO+t.seriesIndex}function dp(t){return t.dim+t.index}function gp(t,e){var n=[];return e.eachSeriesByType(t,(function(t){wp(t)&&n.push(t)})),n}function vp(t){var e={};m(t,(function(t){var n=t.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=t.getData(),o=r.dim+"_"+r.index,a=i.getDimensionIndex(i.mapDimension(r.dim)),s=i.getStore(),l=0,u=s.count();u>l;++l){var c=s.get(a,l);e[o]?e[o].push(c):e[o]=[c]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort((function(t,e){return t-e}));for(var o=null,a=1;a0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function yp(t){var e=vp(t),n=[];return m(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),f=Math.abs(c[1]-c[0]);r=l?u/f*l:u}else{var p=t.getData();r=Math.abs(a[1]-a[0])/p.count()}var h=Gn(t.get("barWidth"),r),d=Gn(t.get("barMaxWidth"),r),g=Gn(t.get("barMinWidth")||(Sp(t)?.5:1),r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:h,barMaxWidth:d,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:dp(o),stackId:hp(t)})})),mp(n)}function mp(t){var e={};m(t,(function(t){var n=t.axisKey,r=t.bandWidth,i=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=i.stacks;e[n]=i;var a=t.stackId;o[a]||i.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(i.remainedWidth,s),i.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var c=t.barGap;null!=c&&(i.gap=c);var f=t.barCategoryGap;null!=f&&(i.categoryGap=f)}));var n={};return m(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=S(r).length;o=Math.max(35-4*a,15)+"%"}var s=Gn(o,i),l=Gn(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),m(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{r=f;e&&r>e&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==f&&(t.width=r,u-=r+l*r,c--)}})),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var p,h=0;m(r,(function(t){t.width||(t.width=f),p=t,h+=t.width*(1+l)})),p&&(h-=p.width*l);var d=-h/2;m(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:d,width:t.width},d+=t.width*(1+l)}))})),n}function _p(t,e,n){if(t&&e){var r=t[dp(e)];return null!=r&&null!=n?r[hp(n)]:r}}function xp(t,e){var n=gp(t,e),r=yp(n);m(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=hp(t),a=r[dp(i)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function bp(t){return{seriesType:t,plan:Hu(),reset:function(t){if(wp(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=Xf(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),p=Ap(r,i),h=Sp(t),d=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,l=h&&pp(3*i),u=h&&s&&pp(3*i),m=h&&pp(i),_=n.master.getRect(),x=f?_.width:_.height,b=e.getStore(),w=0;null!=(r=t.next());){var S=b.get(c?g:o,r),A=b.get(a,r),M=p,T=void 0;c&&(T=+S-b.get(o,r));var C=void 0,I=void 0,k=void 0,O=void 0;if(f){var P=n.dataToPoint([S,A]);if(c){var D=n.dataToPoint([T,A]);M=D[0]}C=M,I=P[1]+y,k=P[0]-M,O=v,Math.abs(k)k?-1:1)*d)}else{P=n.dataToPoint([A,S]);if(c){D=n.dataToPoint([A,T]);M=D[1]}C=P[0]+y,I=M,k=v,O=P[1]-M,Math.abs(O)=O?-1:1)*d)}h?(l[w]=C,l[w+1]=I,l[w+2]=f?k:O,u&&(u[w]=f?_.x:C,u[w+1]=f?I:_.y,u[w+2]=x),m[r]=r):e.setItemLayout(r,{x:C,y:I,width:k,height:O}),w+=3}h&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:f})}}}}}}function wp(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Sp(t){return t.pipelineContext&&t.pipelineContext.large}function Ap(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}function Mp(t,e,n,r){var i=rr(e),o=rr(n),a=function(t){return ms(i,t,r)===ms(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},f=function(){return c()&&a("minute")},p=function(){return f()&&a("second")},h=function(){return p()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return p();case"millisecond":return h()}}function Tp(t){return t/=rT,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Cp(t){var e=30*rT;return t/=e,t>6?6:t>3?3:t>2?2:1}function Ip(t){return t/=nT,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function kp(t,e){return t/=e?eT:tT,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Op(t){return ar(t,!0)}function Pp(t,e,n){var r=new Date(t);switch(ps(e)){case"year":case"month":r[Cs(n)](0);case"day":r[Is(n)](1);case"hour":r[ks(n)](0);case"minute":r[Os(n)](0);case"second":r[Ps(n)](0),r[Ds(n)](0)}return r.getTime()}function Dp(t,e,n,r){function i(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,c=l[i]();n>u&&u<=r[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function o(t,o,a){var s=[],l=!o.length;if(!Mp(ps(t),r[0],r[1],n)){l&&(o=[{value:Pp(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u1&&0===u&&a.unshift({value:a[0].value-p})}}for(u=0;u=r[0]&&m<=r[1]&&f++)}var x=(r[1]-r[0])/e;if(f>1.5*x&&p>x/1.5)break;if(u.push(v),f>x||t===s[h])break}c=[]}}}var w=b(_(u,(function(t){return b(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),S=[],A=w.length-1;for(h=0;h0&&r>0||0>n&&0>r)}function Vp(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):I(e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):C(e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(Hp(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Hp(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Up(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof wO?i=n.count():(r=n.getTicks(),i=r.length);var a,s=t.getLabelModel(),l=Vp(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;i>c;c+=u){var f=r?r[c]:{value:o[0]+c},p=l(f,c),h=s.getTextRect(p),d=Wp(h,s.get("rotate")||0);a?a.union(d):a=d}return a}}function Wp(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new Gx(t.x,t.y,o,a);return s}function $p(t){var e=t.get("interval");return null==e?"auto":e}function Gp(t){return"category"===t.type&&0===$p(t.getLabelModel())}function Yp(t,e){var n={};return m(t.mapDimensionsAll(e),(function(e){n[qf(t,e)]=!0})),S(n)}function Qp(t,e,n){e&&m(Yp(e,n),(function(n){var r=e.getApproximateExtent(n);r[0]t[1]&&(t[1]=r[1])}))}function Xp(t){return Jf(null,t)}function qp(t,e){var n=e;e instanceof WM||(n=new WM(e));var r=zp(n);return r.setExtent(t[0],t[1]),jp(r,n),r}function Zp(t){v(t,UO)}function Kp(t,e){return e=e||{},Xa(t,null,null,"normal"!==e.state)}function Jp(t){return T(t)?void m(t,(function(t){Jp(t)})):void(d(GO,t)>=0||(GO.push(t),C(t)&&(t={install:t}),t.install(YO)))}function th(t,e){return Math.abs(t-e)s;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}function oh(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return m(r,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=sh(i,r,n);break;case"Polygon":ah(i,r,n);break;case"MultiLineString":ah(i,r,n);break;case"MultiPolygon":m(i,(function(t,e){return ah(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}function ah(t,e,n){for(var r=0;r>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function lh(t,e){return t=oh(t),_(b(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new ZO(o[0],o.slice(1)));break;case"MultiPolygon":m(r.coordinates,(function(t){t[0]&&i.push(new ZO(t[0],t.slice(1)))}));break;case"LineString":i.push(new KO([r.coordinates]));break;case"MultiLineString":i.push(new KO(r.coordinates))}var a=new JO(n[e||"name"],i,n.cp);return a.properties=n,a}))}function uh(t){return"category"===t.type?fh(t):dh(t)}function ch(t,e){return"category"===t.type?hh(t,e):{ticks:_(t.scale.getTicks(),(function(t){return t.value}))}}function fh(t){var e=t.getLabelModel(),n=ph(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function ph(t,e){var n,r,i=gh(t,"labels"),o=$p(e),a=vh(i,o);return a||(C(o)?n=wh(t,o):(r="auto"===o?mh(t):o,n=bh(t,r)),yh(i,o,{labels:n,labelCategoryInterval:r}))}function hh(t,e){var n,r,i=gh(t,"ticks"),o=$p(e),a=vh(i,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(n=[]),C(o))n=wh(t,o,!0);else if("auto"===o){var s=ph(t,t.getLabelModel());r=s.labelCategoryInterval,n=_(s.labels,(function(t){return t.tickValue}))}else r=o,n=bh(t,r,!0);return yh(i,o,{ticks:n,tickCategoryInterval:r})}function dh(t){var e=t.scale.getTicks(),n=Vp(t);return{labels:_(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function gh(t,e){return oP(t)[e]||(oP(t)[e]=[])}function vh(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),p=0,h=0;l<=o[1];l+=s){var d=0,g=0,v=An(n({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,p=Math.max(p,d,7),h=Math.max(h,g,7)}var y=p/c,m=h/f;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=oP(t.model),b=t.getExtent(),w=x.lastAutoInterval,S=x.lastTickCount;return null!=w&&null!=S&&Math.abs(w-_)<=1&&Math.abs(S-a)<=1&&w>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=w:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}function xh(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function bh(t,e,n){function r(t){var e={value:t};l.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}var i=Vp(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=a[0],f=o.count();0!==c&&u>1&&f/u>2&&(c=Math.round(Math.ceil(c/u)*u));var p=Gp(t),h=s.get("showMinLabel")||p,d=s.get("showMaxLabel")||p;h&&c!==a[0]&&r(a[0]);for(var g=c;g<=a[1];g+=u)r(g);return d&&g-u!==a[1]&&r(a[1]),l}function wh(t,e,n){var r=t.scale,i=Vp(t),o=[];return m(r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}function Sh(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function Ah(t,e,n,r){function i(t,e){return t=Yn(t),e=Yn(e),p?t>e:e>t}var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,c=(e[o-1].coord-e[0].coord)/u;m(e,(function(t){t.coord-=c/2}));var f=t.scale.getExtent();s=1+f[1]-e[o-1].tickValue,a={coord:e[o-1].coord+c*s},e.push(a)}var p=l[0]>l[1];i(e[0].coord,l[0])&&(r?e[0].coord=l[0]:e.shift()),r&&i(l[0],e[0].coord)&&e.unshift({coord:l[0]}),i(l[1],a.coord)&&(r?a.coord=l[1]:e.pop()),r&&i(a.coord,l[1])&&e.push({coord:l[1]})}}function Mh(t){var e=mT.extend(t);return mT.registerClass(e),e}function Th(t){var e=RC.extend(t);return RC.registerClass(e),e}function Ch(t){var e=BC.extend(t);return BC.registerClass(e),e}function Ih(t){var e=zC.extend(t);return zC.registerClass(e),e}function kh(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0)}}function Oh(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+t,f=s*n+e;if(Math.abs(r-i)%lP<1e-4)return l[0]=c,l[1]=f,u-n;if(o){var p=r;r=Mi(i),i=Mi(p)}else r=Mi(r),i=Mi(i);r>i&&(i+=lP);var h=Math.atan2(s,a);if(0>h&&(h+=lP),h>=r&&i>=h||h+lP>=r&&i>=h+lP)return l[0]=c,l[1]=f,u-n;var d=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(y-s)*(y-s);return _>m?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(_))}function Ph(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,f=r-e,p=Math.sqrt(c*c+f*f);c/=p,f/=p;var h=l*c+u*f,d=h/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var g=a[0]=t+d*c,v=a[1]=e+d*f;return Math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function Dh(t,e,n,r,i,o,a){0>n&&(t+=n,n=-n),0>r&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}function Eh(t,e,n){var r=Dh(e.x,e.y,e.width,e.height,t.x,t.y,fP);return n.set(fP[0],fP[1]),r}function Lh(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=e.data,f=t.x,p=t.y,h=0;h=h&&(s=r,l=i);var S=(f-v)*_/m+v;g=Oh(v,y,_,x,x+b,w,S,p,fP),o=Math.cos(x+b)*m+v,a=Math.sin(x+b)*_+y;break;case uP.R:s=o=c[h++],l=a=c[h++];var A=c[h++],M=c[h++];g=Dh(s,l,A,M,f,p,fP);break;case uP.Z:g=Ph(o,a,s,l,f,p,fP,!0),o=s,a=l}u>g&&(u=g,n.set(fP[0],fP[1]))}return u}function Bh(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||cP,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),f=c&&Yt([],c),p=e.get("length2")||0;u&&dP.copy(u);for(var h=0;hv&&(l=v,hP.transform(c),dP.transform(c),dP.toArray(o[0]),hP.toArray(o[1]),pP.toArray(o[2]))}Rh(o,e.get("minTurnAngle")),n.setShape({points:o})}}}function Rh(t,e){if(180>=e&&e>0){e=e/180*Math.PI,pP.fromArray(t[0]),hP.fromArray(t[1]),dP.fromArray(t[2]),Nx.sub(gP,pP,hP),Nx.sub(vP,dP,hP);var n=gP.len(),r=vP.len();if(!(.001>n||.001>r)){gP.scale(1/n),vP.scale(1/r);var i=gP.dot(vP),o=Math.cos(e);if(i>o){var a=Ph(hP.x,hP.y,dP.x,dP.y,pP.x,pP.y,yP,!1);mP.fromArray(yP),mP.scaleAndAdd(vP,a/Math.tan(Math.PI-e));var s=dP.x!==hP.x?(mP.x-hP.x)/(dP.x-hP.x):(mP.y-hP.y)/(dP.y-hP.y);if(isNaN(s))return;0>s?Nx.copy(mP,hP):s>1&&Nx.copy(mP,dP),mP.toArray(t[1])}}}}function Nh(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function jh(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=_x(r[0],r[1]),o=_x(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=mt([],r[1],r[0],a/i),l=mt([],r[1],r[2],a/o),u=mt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;ct){var r=Math.min(e,-t);if(r>0){l(r*n,0,f);var i=r+t;0>i&&u(-i*n,1)}else u(-t*n,1)}}function l(n,r,i){0!==n&&(d=!0);for(var o=r;i>o;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function u(r,i){for(var o=[],a=0,s=1;f>s;s++){var u=t[s-1].rect,c=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(c),a+=c}if(a){var p=Math.min(Math.abs(r)/a,i);if(r>0)for(s=0;f-1>s;s++){var h=o[s]*p;l(h,0,s+1)}else for(s=f-1;s>0;s--){h=o[s-1]*p;l(-h,s,f)}}}function c(t){var e=0>t?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(f-1)),r=0;f-1>r;r++)if(e>0?l(n,0,r+1):l(-n,f-r-1,f),t-=n,0>=t)return}var f=t.length;if(!(2>f)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var p,h=0,d=!1,g=[],v=0,y=0;f>y;y++){var m=t[y],_=m.rect;p=_[e]-h,0>p&&(_[e]-=p,m.label[e]-=p,d=!0);var x=Math.max(-p,0);g.push(x),v+=x,h=_[e]+_[n]}v>0&&o&&l(-v/f,0,f);var b,w,S=t[0],A=t[f-1];return a(),0>b&&u(-b,.8),0>w&&u(w,.8),a(),s(b,w,1),s(w,b,-1),a(),0>b&&c(-b),0>w&&c(w),d}}function Uh(t,e,n,r){return Hh(t,"x","width",e,n,r)}function Wh(t,e,n,r){return Hh(t,"y","height",e,n,r)}function $h(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort((function(t,e){return e.priority-t.priority}));for(var r=new Gx(0,0,0,0),i=0;i10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),f=Math.abs(u[1]-u[0])*(c||1),p=Math.round(a/f);if(isFinite(p)&&p>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/p));var h=void 0;I(i)?h=LP[i]:C(i)&&(h=i),h&&t.setData(r.downSample(r.mapDimension(l.dim),1/p,h,BP))}}}}}function nd(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var f=new YS({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),d=p.inverse;h?(d&&(f.shape.x+=l),f.shape.width=0):(d||(f.shape.y+=u),f.shape.height=0);var g=C(i)?function(t){i(t,f)}:null;ha(f,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return f}function rd(t,e,n){var r=t.getArea(),i=Yn(r.r0,1),o=Yn(r.r,1),a=new XA({shape:{cx:Yn(t.cx,1),cy:Yn(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=r.startAngle:a.shape.r=i,ha(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function id(t,e,n,r,i){return t?"polar"===t.type?rd(t,e,n):"cartesian2d"===t.type?nd(t,e,n,r,i):null:null}function od(t,e){return t.type===e}function ad(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Xl(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a=0&&r.push(e[o])}return r.join(" ")}function ld(t,e){e=e||{};var n=e.isRoundCap;return function(e,r,i){var o=r.position;if(!o||o instanceof Array)return kn(e,r,i);var a=t(o),s=null!=r.distance?r.distance:5,l=this.shape,u=l.cx,c=l.cy,f=l.r,p=l.r0,h=(f+p)/2,d=l.startAngle,g=l.endAngle,v=(d+g)/2,y=n?Math.abs(f-p)/2:0,m=Math.cos,_=Math.sin,x=u+f*m(d),b=c+f*_(d),w="left",S="top";switch(a){case"startArc":x=u+(p-s)*m(v),b=c+(p-s)*_(v),w="center",S="top";break;case"insideStartArc":x=u+(p+s)*m(v),b=c+(p+s)*_(v),w="center",S="bottom";break;case"startAngle":x=u+h*m(d)+cd(d,s+y,!1),b=c+h*_(d)+fd(d,s+y,!1),w="right",S="middle";break;case"insideStartAngle":x=u+h*m(d)+cd(d,-s+y,!1),b=c+h*_(d)+fd(d,-s+y,!1),w="left",S="middle";break;case"middle":x=u+h*m(v),b=c+h*_(v),w="center",S="middle";break;case"endArc":x=u+(f+s)*m(v),b=c+(f+s)*_(v),w="center",S="bottom";break;case"insideEndArc":x=u+(f-s)*m(v),b=c+(f-s)*_(v),w="center",S="top";break;case"endAngle":x=u+h*m(g)+cd(g,s+y,!0),b=c+h*_(g)+fd(g,s+y,!0),w="left",S="middle";break;case"insideEndAngle":x=u+h*m(g)+cd(g,-s+y,!0),b=c+h*_(g)+fd(g,-s+y,!0),w="right",S="middle";break;default:return kn(e,r,i)}return e=e||{},e.x=x,e.y=b,e.align=w,e.verticalAlign=S,e}}function ud(t,e,n,r){if(O(r))t.setTextConfig({rotation:r});else if(T(e))t.setTextConfig({rotation:0});else{var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function cd(t,e,n){return e*Math.sin(t)*(n?-1:1)}function fd(t,e,n){return e*Math.cos(t)*(n?1:-1)}function pd(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;T(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:_(r,(function(t){return In(t,i)}))}}function hd(t,e){var n=t.getArea&&t.getArea();if(od(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}function dd(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();return n&&"category"===r.type&&"cartesian2d"===e.type?{baseAxis:r,otherAxis:e.getOtherAxis(r)}:void 0}function gd(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?pa:ha)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?pa:ha)(n,{shape:u},c,i)}function vd(t,e){for(var n=0;n=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=Qa(r);Ya(t,g,{labelFetcher:o,labelDataIndex:n,defaultText:ad(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var v=t.getTextContent();if(s&&v){var y=r.get(["label","position"]);t.textConfig.inside="middle"===y||null,ud(t,"outside"===y?d:y,md(a),r.get(["label","rotate"]))}es(v,g,o.getRawValue(n),(function(t){return sd(e,t)}));var _=r.getModel(["emphasis"]);No(t,_.get("focus"),_.get("blurScope"),_.get("disabled")),zo(t,r),yd(i)&&(t.style.fill="none",t.style.stroke="none",m(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function xd(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}function bd(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new qP({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var f=new qP({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=o,f.largeDataIndices=a,f.barWidth=s,e.add(f),f.useStyle(i.getVisual("style")),eA(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",ZP),f.on("mousemove",ZP)),n&&n.push(f)}function wd(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=o.length/3;f>c;c++){var p=3*c;if(l[r]=u,l[i]=o[p+2],s[r]=o[p+r],s[i]=o[p+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function Sd(t,e,n){if(od(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}i=n.getArea();var o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function Ad(t,e,n){var r="polar"===t.type?XA:YS;return new r({shape:Sd(e,n,t),silent:!0,z2:0})}function Md(t){t.registerChartView(HP),t.registerSeriesModel(NP),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,M(xp,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bp("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ed("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}function Td(t,e){this.parent.drift(t,e)}function Cd(t,e,n,r){return!(!e||isNaN(e[0])||isNaN(e[1])||r.isIgnore&&r.isIgnore(n)||r.clipShape&&!r.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(n,"symbol"))}function Id(t){return null==t||P(t)||(t={isIgnore:t}),t||{}}function kd(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Qa(e),cursorStyle:e.get("cursor")}}function Od(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=Pd(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,f=_(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,h=e.getCalculationInfo("stackResultDimension");return Xf(e,f[0])&&(p=!0,f[0]=h),Xf(e,f[1])&&(p=!0,f[1]=h),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Pd(t,e){var n=0,r=t.scale.getExtent();return"start"===e?n=r[0]:"end"===e?n=r[1]:O(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function Dd(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function Ed(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function Ld(t,e,n,r,i,o,a){for(var s=Ed(t,e),l=[],u=[],c=[],f=[],p=[],h=[],d=[],g=Od(i,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],m=0;mv;v++){var y=e[2*g],m=e[2*g+1];if(g>=i||0>g)break;if(Bd(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),f=y,p=m;else{var _=y-u,x=m-c;if(.5>_*_+x*x){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===y&&S===m&&r>v;)v++,b+=o,g+=o,w=e[2*b],S=e[2*b+1],y=e[2*g],m=e[2*g+1],_=y-u,x=m-c;var A=v+1;if(l)for(;Bd(w,S)&&r>A;)A++,b+=o,w=e[2*b],S=e[2*b+1];var M=.5,T=0,C=0,I=void 0,k=void 0;if(A>=r||Bd(w,S))h=y,d=m;else{T=w-u,C=S-c;var O=y-u,P=w-y,D=m-c,E=S-m,L=void 0,B=void 0;if("x"===s){L=Math.abs(O),B=Math.abs(P);var R=T>0?1:-1;h=y-R*L*a,d=m,I=y+R*B*a,k=m}else if("y"===s){L=Math.abs(D),B=Math.abs(E);var N=C>0?1:-1;h=y,d=m-N*L*a,I=y,k=m+N*B*a}else L=Math.sqrt(O*O+D*D),B=Math.sqrt(P*P+E*E),M=B/(B+L),h=y-T*a*(1-M),d=m-C*a*(1-M),I=y+T*a*M,k=m+C*a*M,I=eD(I,nD(w,y)),k=eD(k,nD(S,m)),I=nD(I,eD(w,y)),k=nD(k,eD(S,m)),T=I-y,C=k-m,h=y-T*L/B,d=m-C*L/B,h=eD(h,nD(u,y)),d=eD(d,nD(c,m)),h=nD(h,eD(u,y)),d=nD(d,eD(c,m)),T=y-h,C=m-d,I=y+T*B/L,k=m+C*B/L}t.bezierCurveTo(f,p,h,d,y,m),f=I,p=k}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}function Nd(t,e){if(t.length===e.length){for(var n=0;no;o++){var a=Dd(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}function Hd(t,e,n,r){var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],f=[];if(r){for(s=0;ss;s++){var l=t[s],u=l.coord;if(0>u)r=l;else{if(u>e){i?o.push(n(i,l,e)):r&&o.push(n(r,l,0),n(r,l,e));break}r&&(o.push(n(r,l,0)),r=null),o.push(l),i=l}}return o}function Wd(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=_(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var p=Ud(u,"x"===i?n.getWidth():n.getHeight()),h=p.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,g=p[0].coord-d,v=p[h-1].coord+d,y=v-g;if(.001>y)return"transparent";m(p,(function(t){t.offset=(t.coord-g)/y})),p.push({offset:h?p[h-1].offset:.5,color:f[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:f[0]||"transparent"});var x=new pM(0,0,0,0,p,!0);return x[i]=g,x[i+"2"]=v,x}}}function $d(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!Gd(o,e))){var a=e.mapDimension(o.dim),s={};return m(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Gd(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;i>a;a+=o)if(1.5*JP.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}function Yd(t,e){return isNaN(t)||isNaN(e)}function Qd(t){for(var e=t.length/2;e>0&&Yd(t[2*e-2],t[2*e-1]);e--);return e-1}function Xd(t,e){return[t[2*e],t[2*e+1]]}function qd(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;o>u;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a]))if(0!==u){if(e>=r&&i>=e||r>=e&&e>=i){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}function Zd(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(r=n.get(["itemStyle","borderColorDoji"]));var i=n.getModel("itemStyle").getItemStyle(lD);e.useStyle(i),e.style.fill=null,e.style.stroke=r}function lg(t,e,n){e=T(e)&&{coordDimensions:e}||p({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Vf(r,e).dimensions,o=new vO(i,t);return o.initData(r,n),o}function ug(t){t&&T(t.series)&&m(t.series,(function(t){P(t)&&"k"===t.type&&(t.type="candlestick")}))}function cg(t,e,n,r,i,o){return n>r?-1:r>n?1:o?0:e>0?t.get(i,e-1)<=r?1:-1:1}function fg(t,e){var n,r=t.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Gn(F(t.get("barMaxWidth"),i),i),a=Gn(F(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?Gn(s,i):Math.max(Math.min(i/2,o),a)}function pg(t){t.registerChartView(uD),t.registerSeriesModel(gD),t.registerPreprocessor(ug),t.registerVisual(bD),t.registerLayout(wD)}function hg(t,n,r,i){m(PD,(function(o,a){var s=c(c({},OD[a],!0),i,!0),l=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n+"Axis."+a,e}return e(r,t),r.prototype.mergeDefaultAndTheme=function(t,e){var n=$s(this),r=n?Ys(t):{},i=e.getTheme();c(t,i.get(a+"Axis")),c(t,this.getDefaultOption()),t.type=dg(t),n&&Gs(t,r,n)},r.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=bO.createByAxisModel(this))},r.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},r.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},r.type=n+"Axis."+a,r.defaultOption=s,r}(r);t.registerComponentModel(l)})),t.registerSubTypeDefaulter(n+"Axis",dg)}function dg(t){return t.type||(t.data?"category":"value")}function gg(t){return"interval"===t.type||"time"===t.type}function vg(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,d="x"===u?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[p.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[p[l]]:f[0],"x"===u?d[p[l]]:f[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?d[p[s]]-d[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),z(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function yg(t){return"cartesian2d"===t.get("coordinateSystem")}function mg(t){var e={xAxisModel:null,yAxisModel:null};return m(e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,Dw).models[0];e[r]=o})),e}function _g(t,e,n){var r=AO.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=Rp(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if("log"===t.type){var p=RD(t.base);u=[RD(u[0])/p,RD(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var h=r.getExtent.call(t);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var d=r.getInterval.call(t),g=u[0],v=u[1];if(c&&f)d=(v-g)/a;else if(c)for(v=u[0]+d*a;vu[0]&&isFinite(g)&&isFinite(u[0]);)d=op(d),g=u[1]-d*a;else{var y=t.getTicks().length-1;y>a&&(d=op(d));var m=d*a;v=Math.ceil(u[1]/d)*d,g=Yn(v-m),0>g&&u[0]>=0?(g=0,v=Yn(m)):v>0&&u[1]<=0&&(v=0,g=-Yn(m))}var _=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+d*_,v+d*x),r.setInterval.call(t,d),(_||x)&&r.setNiceExtent.call(t,g+d,v-d)}function xg(t,e){return t.getCoordSysModel()===e}function bg(t,e,n,r){function i(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=n.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)wg(a[u])&&(o=a[u]);else for(var c in a)if(a.hasOwnProperty(c)&&wg(a[c])&&!r[i(a[c])]){o=a[c];break}o&&(r[i(o)]=!0)}}function wg(t){return t&&"category"!==t.type&&"time"!==t.type&&Fp(t)}function Sg(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}function Ag(t,e,n,r){var i,o,a=er(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return nr(a-jD/2)?(o=l?"bottom":"top",i="center"):nr(a-1.5*jD)?(o=l?"top":"bottom",i="center"):(o="middle",i=1.5*jD>a&&a>jD/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Mg(t,e,n){if(!Gp(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],f=n[n.length-1],p=n[n.length-2];!1===r?(Tg(o),Tg(u)):Cg(o,a)&&(r?(Tg(a),Tg(c)):(Tg(o),Tg(u))),!1===i?(Tg(s),Tg(f)):Cg(l,s)&&(i?(Tg(l),Tg(p)):(Tg(s),Tg(f)))}}function Tg(t){t&&(t.ignore=!0)}function Cg(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=Vt([]);return $t(i,i,-t.rotation),n.applyTransform(Ut([],i,t.getLocalTransform())),r.applyTransform(Ut([],i,e.getLocalTransform())),n.intersect(r)}}function Ig(t){return"middle"===t||"center"===t}function kg(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||t===e}function zg(t){var e=Fg(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=Hg(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0?2:0),eE(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",f=l.getShallow("decal");u.decal=f&&"inherit"!==f?Xc(f,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===h.stroke&&(h.stroke=r.fill),!o){var d=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===d?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Xg(t){var e=t.icon||"roundRect",n=vc(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function qg(t,e,n,r){Jg(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Kg(t,e,n,r)}function Zg(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;i>r&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function Kg(t,e,n,r){Zg(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function Jg(t,e,n,r){Zg(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function tv(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;na||T(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,p=u.dim,h="x"===f||"radius"===f?1:0,d=o.mapDimension(p),g=[];g[h]=o.get(d,a),g[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(_(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}function Ov(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||cx(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Fv(i)&&(i=kv({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Fv(i),u=o.axesInfo,c=s.axesInfo,f="leave"===r||Fv(i),p={},h={},d={list:[],map:{}},g={showPointer:M(Ev,h),showTooltip:M(Lv,d)};m(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);m(s.coordSysAxesInfo[e],(function(t){var e=t.axis,r=jv(u,t);if(!f&&n&&(!u||r)){var o=r&&r.value;null!=o||l||(o=e.pointToData(i)),null!=o&&Pv(t,o,g,!1,p)}}))}));var v={};return m(c,(function(t,e){var n=t.linkGroup;n&&!h[e]&&m(n.axesInfo,(function(e,r){var i=h[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,zv(e),zv(t)))),v[t.key]=o}}))})),m(v,(function(t,e){Pv(c[e],t,g,!0,p)})),Bv(h,c,p),Rv(d,i,t,a),Nv(c,a,n),p}}function Pv(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a=Dv(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&p(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}}function Dv(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return m(e.seriesModels,(function(e){var l,u,c=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(c,t,n);u=f.dataIndices,l=f.nestestValue}else{if(u=e.getData().indicesOfNearest(c[0],t,"category"===n.type?.5:null),!u.length)return;l=e.getData().get(c[0],u[0])}if(null!=l&&isFinite(l)){var p=t-l,h=Math.abs(p);a>=h&&((a>h||p>=0&&0>s)&&(a=h,s=p,i=l,o.length=0),m(u,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function Ev(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function Lv(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=Ug(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Bv(t,e,n){var r=n.axesInfo=[];m(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function Rv(t,e,n,r){if(!Fv(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function Nv(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=_E(r)[i]||{},a=_E(r)[i]={};m(t,(function(t){var e=t.axisPointerModel.option;"show"===e.status&&m(e.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];m(o,(function(t,e){!a[e]&&l.push(t)})),m(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function jv(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function zv(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function Fv(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Vv(t){HD.registerAxisPointerClass("CartesianAxisPointer",hE),t.registerComponentModel(gE),t.registerComponentView(mE),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!T(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Eg(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ov)}function Hv(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Uv(t){if(H_.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;r>n;n++)if(t[n]in e)return t[n]}function Wv(t,e){if(!t)return e;e=Bs(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function $v(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}function Gv(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function Yv(t,e,n){if(!I(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=Vs(e);var o,a=Gv(n),s=Math.max(1.5*Math.round(i),6),l="",u=AE+":";d(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,f=s+i,p=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(100*((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-f)/2))/100;l+=";"+a+":-"+h+"px";var g=e+" solid "+i+"px;",v=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'
'}function Qv(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=H_.transformSupported?","+AE+r:",left"+r+",top"+r),SE+":"+i}function Xv(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!H_.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=H_.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+AE+":"+a+";":[["top",0],["left",0],[bE,a]]}function qv(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),m(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function Zv(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=Ou(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+p),e&&i&&r.push(Qv(i,n)),o&&r.push("background-color:"+o),m(["width","color","radius"],(function(e){var n="border-"+e,i=Bs(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(qv(c)),null!=f&&r.push("padding:"+cT(f).join("px ")+"px"),r.join(";")+";"}function Kv(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&At(t,a,document.body,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Jv(t){return Math.max(0,t)}function ty(t){var e=Jv(t.shadowBlur||0),n=Jv(t.shadowOffsetX||0),r=Jv(t.shadowOffsetY||0);return{left:Jv(e-n),right:Jv(e+n),top:Jv(e-r),bottom:Jv(e+r)}}function ey(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ny(t,e,n){var r,i=e.ecModel;n?(r=new WM(n,i,i),r=new WM(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof WM&&(a=a.get("tooltip",!0)),I(a)&&(a={formatter:a}),a&&(r=new WM(a,r,i)))}return r}function ry(t,e){return t.dispatchAction||cx(e.dispatchAction,e)}function iy(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function oy(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function ay(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function sy(t){return"center"===t||"middle"===t}function ly(t,e,n){var r=jr(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=zr(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=eA(e).tooltipConfig;return n&&n.name===t.name?(s=e,!0):void 0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}function uy(t){Jp(Vv),t.registerComponentModel(xE),t.registerComponentView(kE),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},tt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},tt)}function cy(t,e){if(!t)return!1;for(var n=T(t)?t:[t],r=0;r=0&&(a[o]=+a[o].toFixed(p)),[a,f]}function gy(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!hy(e)&&!T(e.coord)&&T(i)){var o=vy(e,n,r,t);if(e=u(e),e.type&&EE[e.type]&&o.baseAxis&&o.valueAxis){var a=d(i,o.baseAxis.dim),s=d(i,o.valueAxis.dim),l=EE[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&T(i))for(var c=e.coord,f=0;2>f;f++)EE[c[f]]&&(c[f]=xy(n,n.mapDimension(i[f]),c[f]));else e.coord=[];return e}}function vy(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(yy(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function yy(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function my(t,e){return!(t&&t.containData&&e.coord&&!py(e))||t.containData(e.coord)}function _y(t,e){return t?function(t,n,r,i){var o=2>i?t.coord&&t.coord[i]:t.value;return Kl(o,e[i])}:function(t,n,r,i){return Kl(t.value,e[i])}}function xy(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}function by(t,e,n){var r=e.coordinateSystem;t.each((function(i){var o,a=t.getItemModel(i),s=Gn(a.get("x"),n.getWidth()),l=Gn(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)}))}function wy(t,e,n){var r;r=t?_(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return p(p({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new vO(r,n),o=_(n.get("data"),M(gy,e));t&&(o=b(o,M(my,t)));var a=_y(!!t,r);return i.initData(o,null,a),i}function Sy(t){t.registerComponentModel(DE),t.registerComponentView(RE),t.registerPreprocessor((function(t){cy(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}function Ay(t){var e=t.get("coordinateSystem");return d(jE,e)>=0}function My(t){return t+"Axis"}function Ty(t,e){function n(t){!u.get(t.uid)&&i(t)&&(r(t),a=!0)}function r(t){u.set(t.uid,!0),l.push(t),o(t)}function i(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=s.get(t);r&&r[n]&&(e=!0)})),e}function o(t){t.eachTargetAxis((function(t,e){(s.get(t)||s.set(t,[]))[e]=!0}))}var a,s=X(),l=[],u=X();t.eachComponent({mainType:"dataZoom",query:e},(function(t){u.get(t.uid)||r(t)}));do{a=!1,t.eachComponent("dataZoom",n)}while(a);return l}function Cy(t){var e=t.ecModel,n={infoList:[],infoMap:X()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(My(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}function Iy(t){var e={};return m(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}function ky(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=Py(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=Py(s,[0,a]),i=o=Py(s,[i,o]),r=0}e[0]=Py(e[0],n),e[1]=Py(e[1],n);var l=Oy(e,r);e[r]+=t;var u,c=i||0,f=n.slice();return l.sign<0?f[0]+=c:f[1]-=c,e[r]=Py(e[r],f),u=Oy(e,r),null!=i&&(u.sign!==l.sign||u.spano&&(e[1-r]=e[r]+u.sign*o),e}function Oy(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:0>n?1:e?-1:1}}function Py(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}function Dy(t,e,n){var r=By(t);r[e]=n}function Ey(t,e,n){var r=By(t),i=r[e];i===n&&(r[e]=null)}function Ly(t,e){return!!By(t)[e]}function By(t){return t[UE]||(t[UE]={})}function Ry(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(Ex(r.event),Ny(t,e,n,r,i))}function Ny(t,e,n,r,i){i.isAvailableBehavior=cx(jy,null,n,r),t.trigger(e,i)}function jy(t,e,n){var r=n[t];return!t||r&&(!I(r)||e.event[r+"Key"])}function zy(t,e,n){$E(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function Fy(t,e){for(var n=$E(t).coordSysRecordMap,r=n.keys(),i=0;ir[n+e]&&(e=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Gy(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=$E(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=X());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=Cy(t);m(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,Hy(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=X());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),r.each((function(t){var e,n=t.controller,i=t.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(e=i.get(o))}if(e){var a=$y(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Qu(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else Vy(r,t)}))}))}function Yy(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,r,i);return ky(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}function Qy(t,e,n){var r=[1/0,-1/0];XE(n,(function(t){Qp(r,t.getData(),e)}));var i=t.getAxisModel(),o=Lp(i.axis.scale,i,r).calculate();return[o.min,o.max]}function Xy(t){t.registerAction("dataZoom",(function(t,e){var n=Ty(e,t);m(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}function qy(t){JE||(JE=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,KE),Xy(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Zy(t){qy(t),t.registerComponentModel(VE),t.registerComponentView(GE),Gy(t)}function Ky(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function Jy(t){return"vertical"===t?"ns-resize":"ew-resize"}function tm(t){t.registerComponentModel(tL),t.registerComponentView(fL),qy(t)}function em(){Jp(Zy),Jp(tm)}function nm(t,e){var n=vr(t?t.brush:[]);if(n.length){var r=[];m(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))}));var i=t&&t.toolbox;T(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),rm(s),e&&!s.length&&s.push.apply(s,pL)}}function rm(t){var e={};m(t,(function(t){e[t]=1})),t.length=0,m(e,(function(e,n){t.push(n)}))}function im(t,e){var n=CL[e.brushType].createCover(t,e);return n.__brushOption=e,sm(n,e),t.group.add(n),n}function om(t,e){var n=um(e);return n.endCreating&&(n.endCreating(t,e),sm(e,e.__brushOption)),e}function am(t,e){var n=e.__brushOption;um(e).updateCoverShape(t,e,n.range,n)}function sm(t,e){var n=e.z;null==n&&(n=yL),t.traverse((function(t){t.z=n,t.z2=n}))}function lm(t,e){um(e).updateCommon(t,e),am(t,e)}function um(t){return CL[t.__brushOption.brushType]}function cm(t,e,n){var r=t._panels;if(!r)return hL;var i,o=t._transform;return m(r,(function(t){t.isTargetByCursor(e,n,o)&&(i=t)})),i}function fm(t,e){var n=t._panels;if(!n)return hL;var r=e.__brushOption.panelId;return null!=r?n[r]:hL}function pm(t){var e=t._covers,n=e.length;return m(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function hm(t,e){var n=_(t._covers,(function(t){var e=t.__brushOption,n=u(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function dm(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1],a=vL(i*i+o*o,.5);return a>mL}function gm(t){var e=t.length-1;return 0>e&&(e=0),[t[0],t[e]]}function vm(t,e,n,r){var i=new mw;return i.add(new YS({name:"main",style:xm(n),silent:!0,draggable:!0,cursor:"move",drift:M(Mm,t,e,i,["n","s","w","e"]),ondragend:M(hm,e,{isEnd:!0})})),m(r,(function(n){i.add(new YS({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:M(Mm,t,e,i,n),ondragend:M(hm,e,{isEnd:!0})}))})),i}function ym(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=gL(i,_L),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],f=n[1][1],p=c-o+i/2,h=f-o+i/2,d=c-a,g=f-s,v=d+i,y=g+i;_m(t,e,"main",a,s,d,g),r.transformable&&(_m(t,e,"w",l,u,o,y),_m(t,e,"e",p,u,o,y),_m(t,e,"n",l,u,v,o),_m(t,e,"s",l,h,v,o),_m(t,e,"nw",l,u,o,o),_m(t,e,"ne",p,u,o,o),_m(t,e,"sw",l,h,o,o),_m(t,e,"se",p,h,o,o))}function mm(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(xm(n)),i.attr({silent:!r,cursor:r?"move":"default"}),m([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?Sm(t,n[0]):Am(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?wL[o]+"-resize":null})}))}function _m(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape(km(Im(t,e,[[r,i],[r+o,i+a]])))}function xm(t){return h({strokeNoScale:!0},t.brushStyle)}function bm(t,e,n,r){var i=[dL(t,n),dL(e,r)],o=[gL(t,n),gL(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function wm(t){return ka(t.group)}function Sm(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Pa(n[e],wm(t));return r[i]}function Am(t,e){var n=[Sm(t,e[0]),Sm(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function Mm(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=Cm(e,i,o);m(r,(function(t){var e=bL[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(bm(s[0][0],s[1][0],s[0][1],s[1][1])),lm(e,n),hm(e,{isEnd:!1})}function Tm(t,e,n,r){var i=e.__brushOption.range,o=Cm(t,n,r);m(i,(function(t){t[0]+=o[0],t[1]+=o[1]})),lm(t,e),hm(t,{isEnd:!1})}function Cm(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function Im(t,e,n){var r=fm(t,e);return r&&r!==hL?r.clipPath(n,t._transform):u(n)}function km(t){var e=dL(t[0][0],t[1][0]),n=dL(t[0][1],t[1][1]),r=gL(t[0][0],t[1][0]),i=gL(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function Om(t,e,n){if(t._brushType&&!Rm(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=cm(t,e,n);if(!t._dragging)for(var a=0;ae||e>r.getWidth()||0>n||n>r.getHeight()}function Nm(t){return{createCover:function(e,n){return vm({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=gm(e),r=dL(n[0][t],n[1][t]),i=gL(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var o,a=fm(e,n);if(a!==hL&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),ym(e,n,l,i)},updateCommon:mm,contain:Dm}}function jm(t){var e=t.pieceList;t.hasSpecialVisual=!1,m(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function zm(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(IL(e,(function(t,e){n[t]=e})),!T(r)){var i=[];P(r)?IL(r,(function(t,e){var r=n[e];i[null!=r?r:OL]=t})):i[OL]=r,r=Qm(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}function Fm(t,e){var n=t.visual,r=[];P(n)?IL(n,(function(t){r.push(t)})):null!=n&&r.push(n);var i={color:1,symbol:1};e||1!==r.length||i.hasOwnProperty(t.type)||(r[1]=r[0]),Qm(t,r)}function Vm(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:Gm([0,1])}}function Hm(t){var e=this.option.visual;return e[Math.round($n(t,[0,1],[0,e.length-1],!0))]||{}}function Um(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function Wm(t){var e=this.option.visual;return e[this.option.loop&&t!==OL?t%e.length:t]}function $m(){return this.option.visual[0]}function Gm(t){return{linear:function(e){return $n(e,t,this.option.visual,!0)},category:Wm,piecewise:function(e,n){var r=Ym.call(this,n);return null==r&&(r=$n(e,t,this.option.visual,!0)),r},fixed:$m}}function Ym(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=PL.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function Qm(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=_(e,(function(t){var e=Ne(t);return e||[0,0,0,1]}))),e}function Xm(t,e,n){return t?n>=e:n>e}function qm(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function Zm(t,e,n){function r(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}var i={};return EL(e,(function(e){var o=i[e]=r();EL(t[e],(function(t,r){if(PL.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new PL(i),"opacity"===r&&(i=u(i),i.type="colorAlpha",o.__hidden.__alphaForOpacity=new PL(i))}}))})),i}function Km(t,e,n){var r;m(n,(function(t){e.hasOwnProperty(t)&&qm(e[t])&&(r=!0)})),r&&m(n,(function(n){e.hasOwnProperty(n)&&qm(e[n])?t[n]=u(e[n]):delete t[n]}))}function Jm(t,e,n,r,i,o){function a(t){return uc(n,u,t)}function s(t,e){fc(n,u,t,e)}function l(t,l){u=null==o?t:l;var f=n.getRawDataItem(u);if(!f||!1!==f.visualMap)for(var p=r.call(i,t),h=e[p],d=c[p],g=0,v=d.length;v>g;g++){var y=d[g];h[y]&&h[y].applyVisual(t,a,s)}}var u,c={};m(t,(function(t){var n=PL.prepareVisualTypes(e[t]);c[t]=n})),null==o?n.each(l):n.each([o],l)}function t_(t,e,n,r){var i={};return m(t,(function(t){var n=PL.prepareVisualTypes(e[t]);i[t]=n})),{progress:function(t,o){function a(t){return uc(o,u,t)}function s(t,e){fc(o,u,t,e)}var l;null!=r&&(l=o.getDimensionIndex(r));for(var u,c=o.getStore();null!=(u=t.next());){var f=o.getRawDataItem(u);if(!f||!1!==f.visualMap)for(var p=null!=r?c.get(l,u):u,h=n(p),d=e[h],g=i[h],v=0,y=g.length;y>v;v++){var m=g[v];d[m]&&d[m].applyVisual(p,a,s)}}}}}function e_(t){var e=t.brushType,n={point:function(r){return LL[e].point(r,n,t)},rect:function(r){return LL[e].rect(r,n,t)}};return n}function n_(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range,o=e[t];return r_(o,i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]t[1]&&t.reverse(),t}function c_(t,e){return Nr(t,e,{includeMainTypes:RL})}function f_(t,e,n,r){var i=n.getAxis(["x","y"][t]),o=u_(_([0,1],(function(t){return e?i.coordToData(i.toLocalCoord(r[t]),!0):i.toGlobalCoord(i.dataToCoord(r[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}function p_(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function h_(t,e){var n=d_(t),r=d_(e),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function d_(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}function g_(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new NL(e.option,t);n.setInputRanges(e.areas,t)}))}function v_(t,e,n){var r,i,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),g_(t),t.eachComponent({mainType:"brush"},(function(e,n){function a(t){return"all"===d||!!g[t]}function s(t){return!!t.length}function l(t,e){var n=t.coordinateSystem;x=x||n.hasAxisBrushed(),a(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(v[e]=1)}))}function c(n,r,i){if(n.brushSelector&&!x_(e,r)&&(m(b,(function(r){e.brushTargetManager.controlSeries(r,n,t)&&i.push(r),x=x||s(i)})),a(r)&&s(i))){var o=n.getData();o.each((function(t){__(n,i,o,t)&&(v[t]=1)}))}}var f={brushId:e.id,brushIndex:n,brushName:e.name,areas:u(e.areas),selected:[]};o.push(f);var p=e.option,d=p.brushLink,g=[],v=[],y=[],x=!1;n||(r=p.throttleType,i=p.throttleDelay);var b=_(e.areas,(function(t){var e=GL[t.brushType],n=h({boundingRect:e?e(t):void 0},t);return n.selectors=e_(n),n})),w=Zm(e.option,UL,(function(t){t.mappingMethod="fixed"}));T(d)&&m(d,(function(t){g[t]=1})),t.eachSeries((function(t,e){var n=y[e]=[];"parallel"===t.subType?l(t,e):c(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};f.selected.push(n);var r=y[e],i=t.getData(),o=a(e)?function(t){return v[t]?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return __(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(a(e)?x:s(r))&&Jm(UL,w,i,o)}))})),y_(e,r,i,o,n)}function y_(t,e,n,r,i){if(i){var o=t.getZr();if(!o[$L]){o[WL]||(o[WL]=m_);var a=Qu(o,WL,n,e);a(t,r)}}}function m_(t,e){if(!t.isDisposed()){var n=t.getZr();n[$L]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[$L]=!1}}function __(t,e,n,r){for(var i=0,o=e.length;o>i;i++){var a=e[i];if(t.brushSelector(r,n,a.selectors,a))return!0}}function x_(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(T(n)?d(n,e)<0:e!==n)}function b_(t){return new Gx(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function w_(t,e){return c({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new WM(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function S_(t){t.registerComponentView(YL),t.registerComponentModel(XL),t.registerPreprocessor(nm),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,v_),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},tt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},tt)}function A_(t,e,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,o=n[0],a=[],s=0;r>=s&&oc;c++)u[cB[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][a],p=Us(u,o,r.padding);return s[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*o[f[1]]?0:1]}function T_(t,e){return m(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}function C_(t,e,n,r){return new JA({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Ex(t.event)},ondragend:r})}function I_(t,e,n){var r=gB/2,i=t.get("hoverLinkDataSize");return i&&(r=fB(i,e,n,!0)/2),r}function k_(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function O_(t){return"vertical"===t?"ns-resize":"ew-resize"}function P_(t,e,n,r){function i(t){return l[t]}function o(t,e){l[t]=e}for(var a=e.targetVisuals[r],s=PL.prepareVisualTypes(a),l={color:cc(t.getData(),"color")},u=0,c=s.length;c>u;u++){var f=s[u],p=a["opacity"===f?"__alphaForOpacity":f];p&&p.applyVisual(n,i,o)}return l.color}function D_(t){var e=t&&t.visualMap;T(e)||(e=e?[e]:[]),bB(e,(function(t){if(t){E_(t,"splitList")&&!E_(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&T(e)&&bB(e,(function(t){P(t)&&(E_(t,"start")&&!E_(t,"min")&&(t.min=t.start),E_(t,"end")&&!E_(t,"max")&&(t.max=t.end))}))}}))}function E_(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}function L_(t){wB||(wB=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(mB,_B),m(xB,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(D_))}function B_(t){t.registerComponentModel(lB),t.registerComponentView(yB),L_(t)}function R_(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}function N_(t){t.registerComponentModel(SB),t.registerComponentView(MB),L_(t)}function j_(){Jp(B_),Jp(N_)}var z_=function(t,e){return(z_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},F_=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),V_=function(){function t(){this.browser=new F_,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="undefined"!=typeof window}return t}(),H_=new V_;"object"==("undefined"===typeof r?"undefined":l(r))&&"function"==typeof r.getSystemInfoSync?(H_.wxa=!0,H_.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?H_.worker=!0:"undefined"==typeof navigator?(H_.node=!0,H_.svgSupported=!0):n(navigator.userAgent,H_);var U_=12,W_="sans-serif",$_=U_+"px "+W_,G_=20,Y_=100,Q_="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N",X_=i(Q_),q_={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var i=q_.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==r&&(e=t.font=r||$_),t.measureText(n);n=n||"",r=r||$_;var o=/(\d+)px/.exec(r),a=o&&+o[1]||U_,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;li;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;ns;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;nl;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),Mx=Math.log(2),Tx="___zrEVENTSAVED",Cx=[],Ix=/([&<>"'])/g,kx={"&":"&","<":"<",">":">",'"':""","'":"'"},Ox=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Px=[],Dx=H_.browser.firefox&&+H_.browser.version.split(".")[0]<39,Ex=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Lx=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;a>o;o++){var s=r[o],l=Ot(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in Bx)if(Bx.hasOwnProperty(e)){var n=Bx[e](this._track,t);if(n)return n}},t}(),Bx={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=jt(r)/jt(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=zt(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},Rx=(Object.freeze||Object)({create:Ft,identity:Vt,copy:Ht,mul:Ut,translate:Wt,rotate:$t,scale:Gt,invert:Yt,clone:Qt}),Nx=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),jx=Math.min,zx=Math.max,Fx=new Nx,Vx=new Nx,Hx=new Nx,Ux=new Nx,Wx=new Nx,$x=new Nx,Gx=function(){function t(t,e,n,r){0>n&&(t+=n,n=-n),0>r&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=jx(t.x,this.x),n=jx(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?zx(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?zx(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=Ft();return Wt(i,i,[-e.x,-e.y]),Gt(i,i,[n,r]),Wt(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,p=!(l>o||i>u||c>s||a>f);if(n){var h=1/0,d=0,g=Math.abs(o-l),v=Math.abs(u-i),y=Math.abs(s-c),m=Math.abs(f-a),_=Math.min(g,v),x=Math.min(y,m);l>o||i>u?_>d&&(d=_,v>g?Nx.set($x,-g,0):Nx.set($x,v,0)):h>_&&(h=_,v>g?Nx.set(Wx,g,0):Nx.set(Wx,-v,0)),c>s||a>f?x>d&&(d=x,m>y?Nx.set($x,0,-y):Nx.set($x,0,m)):h>_&&(h=_,m>y?Nx.set(Wx,0,y):Nx.set(Wx,0,-m))}return n&&Nx.copy(n,p?Wx:$x),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Fx.x=Hx.x=n.x,Fx.y=Ux.y=n.y,Vx.x=Ux.x=n.x+n.width,Vx.y=Hx.y=n.y+n.height,Fx.transform(r),Ux.transform(r),Vx.transform(r),Hx.transform(r),e.x=jx(Fx.x,Vx.x,Hx.x,Ux.x),e.y=jx(Fx.y,Vx.y,Hx.y,Ux.y);var l=zx(Fx.x,Vx.x,Hx.x,Ux.x),u=zx(Fx.y,Vx.y,Hx.y,Ux.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Yx="silent",Qx=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(Ax),Xx=function(){function t(t,e){this.x=t,this.y=e}return t}(),qx=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Zx=new Gx(0,0,0,0),Kx=function(t){function n(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new Xx(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Qx,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new Sx(a),a}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(m(qx,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=Jt(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new Xx(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new Xx(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){for(var i="on"+e,o=Xt(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},n.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new Xx(t,e);if(Kt(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Gx(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Zx.copy(c.getBoundingRect()),c.transform&&Zx.applyTransform(c.transform),Zx.intersect(l)&&o.push(c))}if(o.length)for(var f=4,p=Math.PI/12,h=2*Math.PI,d=0;s>d;d+=f)for(var g=0;h>g;g+=p){var v=t+d*Math.cos(g),y=e+d*Math.sin(g);if(Kt(o,i,v,y,n),i.target)return i}}return i},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Lx);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new Xx;o.target=r.target,this.dispatchToElement(o,i,r.event)}},n}(Ax);m(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Kx.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Jt(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||_x(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var Jx,tb=32,eb=7,nb=1,rb=2,ib=4,ob=!1,ab=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ue}return t.prototype.traverse=function(t,e){for(var n=0;nr;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,se(n,ue)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var i=r,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s0&&(u.__clipPaths=[]),isNaN(u.z)&&(le(),u.z=0),isNaN(u.z2)&&(le(),u.z2=0),isNaN(u.zlevel)&&(le(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var r=d(this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();Jx=H_.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var sb=Jx,lb={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/r):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-lb.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*lb.bounceIn(2*t):.5*lb.bounceOut(2*t-1)+.5}},ub=Math.pow,cb=Math.sqrt,fb=1e-8,pb=1e-4,hb=cb(3),db=1/3,gb=et(),vb=et(),yb=et(),mb=/cubic-bezier\(([0-9,\.e ]+)\)/,_b=function(){function t(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||tt,this.ondestroy=t.ondestroy||tt,this.onrestart=t.onrestart||tt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;0>i&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=C(t)?t:lb[t]||Te(t)},t}(),xb=function(){function t(t){this.value=t}return t}(),bb=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new xb(t);return this.insertEntry(e),e},t.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),wb=function(){function t(t){this._list=new bb,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new xb(e),a.key=t,n.insertEntry(a),r[t]=a}return i},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Sb={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]},Ab=new wb(20),Mb=null,Tb=He,Cb=Ue,Ib=(Object.freeze||Object)({parse:Ne,lift:Fe,toHex:Ve,fastLerp:He,fastMapToColor:Tb,lerp:Ue,mapToColor:Cb,modifyHSL:We,modifyAlpha:$e,stringify:Ge,lum:Ye,random:Qe}),kb=(function(){H_.hasGlobalWindow&&C(window.btoa)}(),Array.prototype.slice),Ob=0,Pb=1,Db=2,Eb=3,Lb=4,Bb=5,Rb=6,Nb=[0,0,0,0],jb=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=Rb,s=e;if(y(e)){var l=sn(e);a=l,(1===l&&!O(e[0])||2===l&&!O(e[0][0]))&&(o=!0)}else if(O(e)&&!j(e))a=Ob;else if(I(e))if(isNaN(+e)){var u=Ne(e);u&&(s=u,a=Eb)}else a=Ob;else if(B(e)){var c=p({},s);c.colorStops=_(e.colorStops,(function(t){return{offset:t.offset,color:Ne(t.color)}})),Xe(e)?a=Lb:qe(e)&&(a=Bb),s=c}0===i?this.valType=a:(a!==this.valType||a===Rb)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:s,rawValue:e,percent:0};return n&&(f.easing=n,f.easingFunc=C(n)?n:lb[n]||Te(n)),r.push(f),f},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=un(r),l=ln(r),u=0;i>u;u++){var c=n[u],f=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==i-1?rn(f,p,r):l&&nn(f.colorStops,p.colorStops))}if(!a&&r!==Bb&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var h=n[0].value;for(u=0;i>u;u++)r===Ob?n[u].additiveValue=n[u].value-h:r===Eb?n[u].additiveValue=tn([],n[u].value,h,-1):un(r)&&(n[u].additiveValue=r===Pb?tn([],n[u].value,h,-1):en([],n[u].value,h,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,f=s===Eb,p=this._lastFr,h=Math.min;if(1===u)r=i=l[0];else{if(0>e)n=0;else if(e=0&&!(l[n].percent<=e);n--);n=h(n,u-2)}else{for(n=p;u>n&&!(l[n].percent>e);n++);n=h(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:h((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:f?Nb:t[c];if(!un(s)&&!f||y||(y=this._additiveValue=[]),this.discrete)t[c]=1>v?r.rawValue:i.rawValue;else if(un(s))s===Pb?Ke(y,r[a],i[a],v):Je(y,r[a],i[a],v);else if(ln(s)){var m=r[a],x=i[a],b=s===Lb;t[c]={type:b?"linear":"radial",x:Ze(m.x,x.x,v),y:Ze(m.y,x.y,v),colorStops:_(m.colorStops,(function(t,e){var n=x.colorStops[e];return{offset:Ze(t.offset,n.offset,v),color:an(Ke([],t.color,n.color,v))}})),global:x.global},b?(t[c].x2=Ze(m.x2,x.x2,v),t[c].y2=Ze(m.y2,x.y2,v)):t[c].r=Ze(m.r,x.r,v)}else if(f)Ke(y,r[a],i[a],v),o||(t[c]=an(y));else{var w=Ze(r[a],i[a],v);o?this._additiveValue=w:t[c]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===Ob?t[n]=t[n]+r:e===Eb?(Ne(t[n],Nb),tn(Nb,Nb,r,1),t[n]=an(Nb)):e===Pb?tn(t[n],t[n],r,1):e===Db&&en(t[n],t[n],r,1)},t}(),zb=function(){function t(t,e,n,r){return this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?void s("Can' use additive animation on looped animation."):(this._additiveAnimators=r,void(this._allowDiscrete=n))}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,S(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,on(l),r),this._trackKeys.push(a)}s.addKeyframe(t,on(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),Fb=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=cn()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){function t(){e._running&&(sb(t),!e._paused&&e.update())}var e=this;this._running=!0,sb(t)},n.prototype.start=function(){this._running||(this._time=cn(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=cn(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=cn()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new zb(t,e.loop);return this.addAnimator(n),n},n}(Ax),Vb=300,Hb=H_.domSupported,Ub=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=_(t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),Wb={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},$b=!1,Gb=function(){function t(t,e){this.stopPropagation=tt,this.stopImmediatePropagation=tt,this.preventDefault=tt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Yb={mousedown:function(t){t=Et(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Et(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Et(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Et(this.dom,t);var e=t.toElement||t.relatedTarget;gn(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){$b=!0,t=Et(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){$b||(t=Et(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Et(this.dom,t),hn(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Yb.mousemove.call(this,t),Yb.mousedown.call(this,t)},touchmove:function(t){t=Et(this.dom,t),hn(t),this.handler.processGesture(t,"change"),Yb.mousemove.call(this,t)},touchend:function(t){t=Et(this.dom,t),hn(t),this.handler.processGesture(t,"end"),Yb.mouseup.call(this,t),+new Date-+this.__lastTouchMoment1e-10&&lw(t[3]-1)>1e-10?Math.sqrt(lw(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){bn(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,f=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var h=n+a,d=r+s;e[4]=-h*i-f*d*o,e[5]=-d*o-p*h*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=p*i,e[2]=f*o,l&&$t(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),cw=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],fw={},pw="__zr_normal__",hw=cw.concat(["ignore"]),dw=x(cw,(function(t,e){return t[e]=!0,t}),{ignore:!1}),gw={},vw=new Gx(0,0,0,0),yw=function(){function t(t){this.id=a(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=vw;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(gw,n,u):kn(gw,n,u),i.x=gw.x,i.y=gw.y,o=gw.align,a=gw.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var f=void 0,p=void 0;"center"===c?(f=.5*u.width,p=.5*u.height):(f=In(c[0],u.width),p=In(c[1],u.height)),l=!0,i.originX=-i.x+f+(r?0:u.x),i.originY=-i.y+p+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],l||(i.originX=-h[0],i.originY=-h[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,(null==v||"auto"===v)&&(v=this.getInsideTextFill()),(null==y||"auto"===y)&&(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,(null==v||"auto"===v)&&(v=this.getOutsideFill()),(null==y||"auto"===y)&&(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",(v!==g.fill||y!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=nb,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ew:tw},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&Ne(t);e||(e=[255,255,255,1]);for(var n=e[3],r=this.__zr.isDarkMode(),i=0;3>i;i++)e[i]=e[i]*n+(r?0:255)*(1-n);return e[3]=1,Ge(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},p(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(P(t))for(var n=t,r=S(n),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(pw,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===pw,o=this.hasState();if(o||!i){var a=this.currentStates,l=this.stateTransition;if(!(d(a,t)>=0)||!e&&1!==a.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i)return void s("State "+t+" not exists.");i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,p=this._textGuide;return f&&f.useState(t,e,n,c),p&&p.useState(t,e,n,c),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nb),u}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;o>s;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],f=!!(c&&c.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(r),h=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&h&&h.duration>0,h);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,f),g&&g.useStates(t,e,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nb)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=d(r,t),o=d(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;r>o;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){On(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){On(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=On(this,e,n,r),o=0;o=0&&(n.splice(r,0,t),this._doAdd(t))}return this},n.prototype.replace=function(t,e){var n=d(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,r=d(n,t);return 0>r||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0&&(this._ux=wS(n/Kb/t)||0,this._uy=wS(n/Kb/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(fS.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=wS(t-this._xi),r=wS(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(fS.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(fS.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(fS.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),TS[0]=r,TS[1]=i,bi(TS,o),r=TS[0],i=TS[1];var a=i-r;return this.addData(fS.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=xS(i)*n+t,this._yi=bS(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(fS.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(fS.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!MS||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;e>i;i++)n+=t[i].len();MS&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;e>i;i++)for(var o=t[i].data,a=0;at.length&&(this._expandData(),t=this.data);for(var e=0;e0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){dS[0]=dS[1]=vS[0]=vS[1]=Number.MAX_VALUE,gS[0]=gS[1]=yS[0]=yS[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;tf;){var p=t[f++],h=1===f;h&&(i=t[f],o=t[f+1],a=i,s=o);var d=-1;switch(p){case fS.M:i=a=t[f++],o=s=t[f++];break;case fS.L:var g=t[f++],v=t[f++],y=g-i,m=v-o;(wS(y)>n||wS(m)>r||f===e-1)&&(d=Math.sqrt(y*y+m*m),i=g,o=v);break;case fS.C:var _=t[f++],x=t[f++],b=(g=t[f++],v=t[f++],t[f++]),w=t[f++];d=me(i,o,_,x,g,v,b,w,10),i=b,o=w;break;case fS.Q:_=t[f++],x=t[f++],g=t[f++],v=t[f++];d=Me(i,o,_,x,g,v,10),i=g,o=v;break;case fS.A:var S=t[f++],A=t[f++],M=t[f++],T=t[f++],C=t[f++],I=t[f++],k=I+C;f+=1,t[f++],h&&(a=xS(C)*M+S,s=bS(C)*T+A),d=_S(M,T)*mS(AS,Math.abs(I)),i=xS(k)*M+S,o=bS(k)*T+A;break;case fS.R:a=i=t[f++],s=o=t[f++];var O=t[f++],P=t[f++];d=2*O+2*P;break;case fS.Z:y=a-i,m=s-o;d=Math.sqrt(y*y+m*m),i=a,o=s}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,f,p,h=this.data,d=this._ux,g=this._uy,v=this._len,y=1>e,m=0,_=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u))t:for(var b=0;v>b;){var w=h[b++],S=1===b;switch(S&&(i=h[b],o=h[b+1],n=i,r=o),w!==fS.L&&x>0&&(t.lineTo(f,p),x=0),w){case fS.M:n=i=h[b++],r=o=h[b++],t.moveTo(i,o);break;case fS.L:a=h[b++],s=h[b++];var A=wS(a-i),M=wS(s-o);if(A>d||M>g){if(y){var T=l[_++];if(m+T>c){var C=(c-m)/T;t.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break t}m+=T}t.lineTo(a,s),i=a,o=s,x=0}else{var I=A*A+M*M;I>x&&(f=a,p=s,x=I)}break;case fS.C:var k=h[b++],O=h[b++],P=h[b++],D=h[b++],E=h[b++],L=h[b++];if(y){T=l[_++];if(m+T>c){C=(c-m)/T;ve(i,k,P,E,C,pS),ve(o,O,D,L,C,hS),t.bezierCurveTo(pS[1],hS[1],pS[2],hS[2],pS[3],hS[3]);break t}m+=T}t.bezierCurveTo(k,O,P,D,E,L),i=E,o=L;break;case fS.Q:k=h[b++],O=h[b++],P=h[b++],D=h[b++];if(y){T=l[_++];if(m+T>c){C=(c-m)/T;Se(i,k,P,C,pS),Se(o,O,D,C,hS),t.quadraticCurveTo(pS[1],hS[1],pS[2],hS[2]);break t}m+=T}t.quadraticCurveTo(k,O,P,D),i=P,o=D;break;case fS.A:var B=h[b++],R=h[b++],N=h[b++],j=h[b++],z=h[b++],F=h[b++],V=h[b++],H=!h[b++],U=N>j?N:j,W=wS(N-j)>.001,$=z+F,G=!1;if(y){T=l[_++];m+T>c&&($=z+F*(c-m)/T,G=!0),m+=T}if(W&&t.ellipse?t.ellipse(B,R,N,j,V,z,$,H):t.arc(B,R,U,z,$,H),G)break t;S&&(n=xS(z)*N+B,r=bS(z)*j+R),i=xS($)*N+B,o=bS($)*j+R;break;case fS.R:n=i=h[b],r=o=h[b+1],a=h[b++],s=h[b++];var Y=h[b++],Q=h[b++];if(y){T=l[_++];if(m+T>c){var X=c-m;t.moveTo(a,s),t.lineTo(a+mS(X,Y),s),X-=Y,X>0&&t.lineTo(a+Y,s+mS(X,Q)),X-=Q,X>0&&t.lineTo(a+_S(Y-X,0),s+Q),X-=Y,X>0&&t.lineTo(a,s+_S(Q-X,0));break t}m+=T}t.rect(a,s,Y,Q);break;case fS.Z:if(y){T=l[_++];if(m+T>c){C=(c-m)/T;t.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break t}m+=T}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=fS,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),IS=2*Math.PI,kS=2*Math.PI,OS=CS.CMD,PS=2*Math.PI,DS=1e-4,ES=[-1,-1,-1],LS=[-1,-1],BS=h({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Qw),RS={style:h({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xw.style)},NS=cw.concat(["invisible","culling","z","z2","zlevel","parent"]),jS=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new n;i.buildPath===n.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?tw:e>.2?nw:ew}if(t)return ew}return tw},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(I(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Ye(t,0)0))},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&ib)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Bi(o,a/s,t,e)))return!0}if(this.hasFill())return Li(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=ib,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:p(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&ib)},n.prototype.createStyle=function(t){return Z(BS,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=p({},this.shape))},n.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,u=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=p({},r.shape),p(s,n.shape)):(s=p({},i?this.shape:r.shape),p(s,n.shape)):u&&(s=r.shape),s)if(o){this.shape=p({},this.shape);for(var c={},f=S(s),h=0;h0},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.createStyle=function(t){return Z(zS,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=An(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},n.initDefaultProps=function(){var t=n.prototype;t.dirtyRectTolerance=10}(),n}(Kw);FS.prototype.type="tspan";var VS=h({x:0,y:0},Qw),HS={style:h({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Xw.style)},US=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return Z(VS,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=Ri(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},n.prototype.getWidth=function(){return this._getSize("width")},n.prototype.getHeight=function(){return this._getSize("height")},n.prototype.getAnimationStyleProps=function(){return HS},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Gx(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(Kw);US.prototype.type="image";var WS=Math.round,$S=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),GS={},YS=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new $S},n.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=zi(GS,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?Ni(t,e):t.rect(n,r,i,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(jS);YS.prototype.type="rect";var QS={fill:"#000"},XS=2,qS={style:h({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},Xw.style)},ZS=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=QS,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,I=0;IA&&(I=x[A],!I.align||"left"===I.align);)this._placeToken(I,t,w,g,M,"left",y),S-=I.width,M+=I.width,A++;for(;C>=0&&(I=x[C],"right"===I.align);)this._placeToken(I,t,w,g,T,"right",y),S-=I.width,T-=I.width,C--;for(M+=(r-(M-d)-(v-T)-S)/2;C>=A;)I=x[A],this._placeToken(I,t,w,g,M+I.width/2,"center",y),M+=I.width,A++;g+=w}},n.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var c=!t.isLineHolder&&qi(s);c&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var f=!!s.backgroundColor,p=t.textPadding;p&&(i=Qi(i,o,p),u-=t.height/2-p[0]-t.innerHeight/2);var h=this._getOrCreateChild(FS),d=h.createStyle();h.useStyle(d);var g=this._defaultStyle,v=!1,y=0,m=Yi("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),_=Gi("stroke"in s?s.stroke:"stroke"in e?e.stroke:f||a||g.autoStroke&&!v?null:(y=XS,g.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||$_,d.opacity=V(s.opacity,e.opacity,1),Hi(d,s),_&&(d.lineWidth=V(s.lineWidth,e.lineWidth,y),d.lineDash=F(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=_),m&&(d.fill=m);var b=t.contentWidth,w=t.contentHeight;h.setBoundingRect(new Gx(Mn(d.x,b,d.textAlign),Tn(d.y,w,d.textBaseline),b,w))},n.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,f=l&&l.image,p=l&&!f,h=t.borderRadius,d=this;if(p||t.lineHeight||u&&c){a=this._getOrCreateChild(YS),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=h,a.dirtyShape()}if(p){var v=a.style;v.fill=l||null,v.fillOpacity=F(t.fillOpacity,1)}else if(f){s=this._getOrCreateChild(US),s.onload=function(){d.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=F(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=V(t.opacity,e.opacity,1)},n.makeFont=function(t){var e="";return Ui(t)&&(e=[t.fontStyle,t.fontWeight,Vi(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&$(e)||t.textFont||t.font},n}(Kw),KS={left:!0,right:1,center:1},JS={top:1,bottom:1,middle:1},tA=["fontStyle","fontWeight","fontSize","fontFamily"],eA=Rr(),nA=function(t,e,n,r){if(r){var i=eA(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,"group"===r.type&&r.traverse((function(r){var i=eA(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e}))}},rA=1,iA={},oA=Rr(),aA=Rr(),sA=0,lA=1,uA=2,cA=["emphasis","blur","select"],fA=["normal","emphasis","blur","select"],pA=10,hA=9,dA="highlight",gA="downplay",vA="select",yA="unselect",mA="toggleSelect",_A=new wb(100),xA=["emphasis","blur","select"],bA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},wA=CS.CMD,SA=[[],[],[]],AA=Math.sqrt,MA=Math.atan2,TA=Math.sqrt,CA=Math.sin,IA=Math.cos,kA=Math.PI,OA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,PA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,DA=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(){},n}(jS),EA=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),LA=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new EA},n.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},n}(jS);LA.prototype.type="circle";var BA=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),RA=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new BA},n.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},n}(jS);RA.prototype.type="ellipse";var NA=Math.PI,jA=2*NA,zA=Math.sin,FA=Math.cos,VA=Math.acos,HA=Math.atan2,UA=Math.abs,WA=Math.sqrt,$A=Math.max,GA=Math.min,YA=1e-4,QA=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),XA=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new QA},n.prototype.buildPath=function(t,e){aa(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(jS);XA.prototype.type="sector";var qA=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),ZA=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new qA},n.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},n}(jS);ZA.prototype.type="ring";var KA=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),JA=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new KA},n.prototype.buildPath=function(t,e){la(t,e,!0)},n}(jS);JA.prototype.type="polygon";var tM=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),eM=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new tM},n.prototype.buildPath=function(t,e){la(t,e,!1)},n}(jS);eM.prototype.type="polyline";var nM={},rM=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),iM=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new rM},n.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=ji(nM,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),1>s&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},n.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},n}(jS);iM.prototype.type="line";var oM=[],aM=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),sM=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new aM},n.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(1>c&&(Se(n,a,i,c,oM),a=oM[1],i=oM[2],Se(r,s,o,c,oM),s=oM[1],o=oM[2]),t.quadraticCurveTo(a,s,i,o)):(1>c&&(ve(n,a,l,i,c,oM),a=oM[1],l=oM[2],i=oM[3],ve(r,s,u,o,c,oM),s=oM[1],u=oM[2],o=oM[3]),t.bezierCurveTo(a,s,l,u,i,o)))},n.prototype.pointAt=function(t){return ua(this.shape,t,!1)},n.prototype.tangentAt=function(t){var e=ua(this.shape,t,!0);return dt(e,e)},n}(jS);sM.prototype.type="bezier-curve";var lM=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),uM=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new lM},n.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},n}(jS);uM.prototype.type="arc";var cM=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(n,t),n.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;nn;n++)this._corners[n]=new Nx;for(n=0;2>n;n++)this._axes[n]=new Nx;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;4>l;l++)n[l].transform(e);Nx.sub(r[0],n[1],n[0]),Nx.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;2>l;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return vM.set(1/0,1/0),yM.set(0,0),!this._intersectCheckOneSide(this,t,vM,yM,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,vM,yM,r,-1)&&(n=!1,r)||r||Nx.copy(e,n?vM:yM),n},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,dM),this._getProjMinMaxOnAxis(s,e._corners,gM),dM[1]gM[1]){if(a=!1,i)return a;var u=Math.abs(gM[0]-dM[1]),c=Math.abs(dM[0]-gM[1]);Math.min(u,c)>r.len()&&(c>u?Nx.scale(r,l,-u*o):Nx.scale(r,l,c*o))}else if(n){u=Math.abs(gM[0]-dM[1]),c=Math.abs(dM[0]-gM[1]);Math.min(u,c)u?Nx.scale(n,l,u*o):Nx.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l-1?QM:qM}():qM;ss(XM,GM),ss(QM,YM);var tT=1e3,eT=60*tT,nT=60*eT,rT=24*nT,iT=365*rT,oT={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}"},aT="{yyyy}-{MM}-{dd}",sT={year:"{yyyy}",month:"{yyyy}-{MM}",day:aT,hour:aT+" "+oT.hour,minute:aT+" "+oT.minute,second:aT+" "+oT.second,millisecond:oT.none},lT=["year","month","day","hour","minute","second","millisecond"],uT=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],cT=U,fT=["a","b","c","d","e","f","g"],pT=function(t,e){return"{"+t+(null==e?"":e)+"}"},hT=m,dT=["left","right","top","bottom","width","height"],gT=[["width","left","right"],["height","top","bottom"]],vT=Hs,yT=(M(Hs,"vertical"),M(Hs,"horizontal"),Rr()),mT=function(t){function n(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=rs("ec_cpt_model"),i}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=$s(this),r=n?Ys(t):{},i=e.getTheme();c(t,i.get(this.mainType)),c(t,this.getDefaultOption()),n&&Gs(t,r,n)},n.prototype.mergeOption=function(t){c(this.option,t,!0);var e=$s(this);e&&Gs(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!Gr(t))return t.defaultOption;var e=yT(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=c(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return zr(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(WM);Xr(mT,WM),Jr(mT),is(mT),os(mT,Xs);var _T="";"undefined"!=typeof navigator&&(_T=navigator.platform||"");var xT,bT,wT="rgba(0, 0, 0, 0.2)",ST={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:wT,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wT,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wT,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wT,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wT,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wT,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_T.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},AT=X(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),MT="original",TT="arrayRows",CT="objectRows",IT="keyedColumns",kT="typedArray",OT="unknown",PT="column",DT="row",ET={Must:1,Might:2,Not:3},LT=Rr(),BT=X(),RT=Rr(),NT=(Rr(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=vr(this.get("color",!0)),i=this.get("colorLayer",!0);return il(this,RT,r,i,t,e,n)},t.prototype.clearColorPalette=function(){ol(this,RT)},t}()),jT="\0_ec_inner",zT=1,FT=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new WM(r),this._locale=new WM(i),this._optionManager=o},n.prototype.setOption=function(t,e,n){var r=cl(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},n.prototype.resetOption=function(t,e){return this._resetOption(t,cl(e))},n.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):bT(this,i),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&m(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){function n(e){var n=nl(this,e,vr(t[e])),a=i.get(e),s=a?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=xr(a,n,s);Dr(u,e,mT),r[e]=null,i.set(e,null),o.set(e,0);var c,f=[],h=[],d=0;m(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=mT.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=p({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),p(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(f.push(r.option),h.push(r),d++):(f.push(void 0),h.push(void 0))}),this),r[e]=f,i.set(e,h),o.set(e,d),"series"===e&&xT(this)}var r=this.option,i=this._componentsMap,o=this._componentsCount,a=[],s=X(),l=e&&e.replaceMergeMainTypeMap;qs(this),m(t,(function(t,e){null!=t&&(mT.hasClass(e)?e&&(a.push(e),s.set(e,!0)):r[e]=null==r[e]?u(t):c(r[e],t,!0))})),l&&l.each((function(t,e){mT.hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))})),mT.topologicalTravel(a,mT.getAllClassMainTypes(),n,this),this._seriesIndices||xT(this)},n.prototype.getOption=function(){var t=u(this.option);return m(t,(function(e,n){if(mT.hasClass(n)){for(var r=vr(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Pr(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[jT],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;ia;a++)pl(n[a].query,t,e)&&i.push(a);return!i.length&&r&&(i=[-1]),i.length&&!dl(i,this._currentMediaIndices)&&(o=_(i,(function(t){return u(-1===t?r.option:n[t].option)}))),this._currentMediaIndices=i,o},t}(),JT=m,tC=P,eC=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],nC=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],rC=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],iC=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],oC=function(){function t(t){this.data=t.data||(t.sourceFormat===IT?{}:[]),this.sourceFormat=t.sourceFormat||OT,this.seriesLayoutBy=t.seriesLayoutBy||PT,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;no;o++)e[o]=n[i+o];return e},r=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,f=n[a],p=0;c>p;p++){var h=i[p*o+a];f[t+p]=h,l>h&&(l=h),h>u&&(u=h)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};e={},e[TT+"_"+PT]={pure:!0,appendData:t},e[TT+"_"+DT]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[CT]={pure:!0,appendData:t},e[IT]={pure:!0,appendData:function(t){var e=this._data;m(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},e[MT]={appendData:t},e[kT]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},WT=e}(),t}(),sC=function(t,e,n,r){return t[r]},lC=(VT={},VT[TT+"_"+PT]=function(t,e,n,r){return t[r+e]},VT[TT+"_"+DT]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return Xl(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),gC=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n,r=this._upstream,i=t&&t.skip;if(this._dirty&&r){var o=this.context;o.data=o.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(n=this._plan(this.context));var a,s=e(this._modBy),l=this._modDataCount||0,u=e(t&&t.modBy),c=t&&t.modDataCount||0;(s!==u||l!==c)&&(n="reset"),(this._dirty||"reset"===n)&&(this._dirty=!1,a=this._doReset(i)),this._modBy=u,this._modDataCount=c;var f=t&&t.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,h=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!i&&(a||h>p)){var d=this._progress;if(T(d))for(var g=0;gr?r++:null}function e(){var t=r%a*i+Math.ceil(r/a),e=r>=n?null:o>t?t:r;return r++,e}var n,r,i,o,a,s={reset:function(l,u,c,f){r=l,n=u,i=c,o=f,a=Math.ceil(o/i),s.next=i>1&&o>0?e:t}};return s}(),yC=(X({number:function(t){return parseFloat(t)},time:function(t){return+rr(t)},trim:function(t){return I(t)?$(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),mC=(function(){function t(t,e){if(!O(e)){var n="";dr(n)}this._opFn=yC[t],this._rvalFloat=ur(e)}t.prototype.evaluate=function(t){return O(t)?this._opFn(t,this._rvalFloat):this._opFn(ur(t),this._rvalFloat)}}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=O(t)?t:ur(t),r=O(e)?e:ur(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=I(t),s=I(e);a&&(n=s?t:0),s&&(r=a?e:0)}return r>n?this._resultLT:n>r?-this._resultLT:0},t}()),_C=(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=l(e),this._rvalFloat=ur(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=l(t);n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=ur(t)===this._rvalFloat)}return this._isEQ?e:!e}}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return Kl(t,e)},t}()),xC=X(),bC="undefined",wC=("undefined"===typeof Uint32Array?"undefined":l(Uint32Array))===bC?Array:Uint32Array,SC=("undefined"===typeof Uint16Array?"undefined":l(Uint16Array))===bC?Array:Uint16Array,AC=("undefined"===typeof Int32Array?"undefined":l(Int32Array))===bC?Array:Int32Array,MC=("undefined"===typeof Float64Array?"undefined":l(Float64Array))===bC?Array:Float64Array,TC={float:MC,int:AC,ordinal:Array,number:Array,time:MC},CC=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=X()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=GT[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Wl(r),this._dimensions=_(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new TC[e||"float"](this._rawCount),this._rawExtent[i]=uu(),i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=uu());for(var s=i[t],l=o;a>l;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),r>n&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;i>l;l++){var u=r[l];fu(n,l,u.type,s,!0)}for(var c=[],f=a;s>f;f++)for(var p=f-a,h=0;i>h;h++){u=r[h];var d=GT.arrayRows.call(this,t[p]||c,u.property,p,h);n[h][f]=d;var g=o[h];dg[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=_(o,(function(t){return t.property})),u=0;a>u;u++){var c=o[u];s[u]||(s[u]=uu()),fu(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var f=[],p=t;e>p;p++){f=r.getItem(p,f);for(var h=0;a>h;h++){var d=i[h],g=this._dimValueGetter(f,l[h],p,h);d[p]=g;var v=s[h];gv[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&ei;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&er;r++){var o=this.get(t,r);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n=r;){var o=(r+i)/2|0;if(e[o]t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();c>u;u++){var f=this.getRawIndex(u),p=e-i[f],h=Math.abs(p);n>=h&&((a>h||h===a&&p>=0&&0>s)&&(a=h,s=p,l=0),p===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;r>i;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{n=lu(this._rawCount);t=new n(this.count());for(i=0;if;f++){var p=void 0,h=n.getRawIndex(f);if(0===s)p=e(f);else if(1===s){var d=c[u][h];p=e(d,f)}else{for(var g=0;s>g;g++)a[g]=c[t[g]][h];a[g]=f,p=e.apply(null,a)}p&&(o[l++]=h)}return r>l&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=S(t),i=r.length;if(!i)return this;var o=e.count(),a=lu(e._rawCount),s=new a(o),l=0,u=r[0],c=t[u][0],f=t[u][1],p=e._chunks,h=!1;if(!e._indices){var d=0;if(1===i){for(var g=p[r[0]],v=0;n>v;v++){var y=g[v];(y>=c&&f>=y||isNaN(y))&&(s[l++]=d),d++}h=!0}else if(2===i){g=p[r[0]];var m=p[r[1]],_=t[r[1]][0],x=t[r[1]][1];for(v=0;n>v;v++){y=g[v];var b=m[v];(y>=c&&f>=y||isNaN(y))&&(b>=_&&x>=b||isNaN(b))&&(s[l++]=d),d++}h=!0}}if(!h)if(1===i)for(v=0;o>v;v++){var w=e.getRawIndex(v);y=p[r[0]][w];(y>=c&&f>=y||isNaN(y))&&(s[l++]=w)}else for(v=0;o>v;v++){for(var A=!0,M=(w=e.getRawIndex(v),0);i>M;M++){var T=r[M];y=p[T][w];(yt[T][1])&&(A=!1)}A&&(s[l++]=e.getRawIndex(v))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],u=t._rawExtent,c=0;cf;f++){for(var p=t.getRawIndex(f),h=0;o>h;h++)s[h]=r[e[h]][p];s[o]=f;var d=n&&n.apply(null,s);if(null!=d){"object"!=l(d)&&(i[0]=d,d=i);for(c=0;cy[1]&&(y[1]=v)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),f=this.getRawIndex(0),p=new(lu(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));p[u++]=f;for(var h=1;l-1>h;h+=c){for(var d=Math.min(h+c,l-1),g=Math.min(h+2*c,l),v=(g+d)/2,y=0,m=d;g>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(y+=x)}y/=g-d;var b=h,w=Math.min(h+c,l),S=h-1,A=s[f];n=-1,i=b;var M=-1,T=0;for(m=b;w>m;m++){_=this.getRawIndex(m),x=s[_];isNaN(x)?(T++,0>M&&(M=_)):(r=Math.abs((S-v)*(x-A)-(S-m)*(y-A)),r>n&&(n=r,i=_))}T>0&&w-b>T&&(p[u++]=Math.min(M,i),i=Math.max(M,i)),p[u++]=i,f=i}return p[u++]=this.getRawIndex(l-1),o._count=u,o._indices=p,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=uu(),f=new(lu(this._rawCount))(Math.ceil(u/s)),p=0,h=0;u>h;h+=s){s>u-h&&(s=u-h,a.length=s);for(var d=0;s>d;d++){var g=this.getRawIndex(h+d);a[d]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(h+r(a,v)||0,u-1));l[y]=v,vc[1]&&(c[1]=v),f[p++]=y}return i._count=p,i._indices=f,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();o>i;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];n>s;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=uu();if(!e)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();r=n;for(var a=r[0],s=r[1],l=0;i>l;l++){var u=this.getRawIndex(l),c=e[u];a>c&&(a=c),c>s&&(s=c)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;ir;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Kl(t[r],this._dimensions[r])}GT={arrayRows:t,objectRows:function(t,e,n,r){return Kl(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Kl(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),IC=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(hu(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=E(a)?kT:MT,e=[];var c=this._getSourceMetaRawOption()||{},f=l&&l.metaRawOption||{},p=F(c.seriesLayoutBy,f.seriesLayoutBy)||null,h=F(c.sourceHeader,f.sourceHeader),d=F(c.dimensions,f.dimensions),g=p!==f.seriesLayoutBy||!!h!=!!f.sourceHeader||d;t=g?[Rl(a,{seriesLayoutBy:p,sourceHeader:h,dimensions:d},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{var m=v.get("source",!0);t=[Rl(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),r=e.get("fromTransformResult",!0);if(null!=r){var i="";1!==t.length&&du(i)}var o,a=[],s=[];return m(t,(function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||du(n),a.push(e),s.push(t._getVersionSign())})),n?o=ou(n,a,{datasetIndex:e.componentIndex}):null!=r&&(o=[jl(a[0])]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;ethis.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=NT.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(i)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[Eu(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this[LC])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){P(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;a>l;l++){var u=e[l],c=Eu(t,u);s[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(u)}}else if("single"===o||!0===o){var f=e[a-1];c=Eu(t,f);i.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(r={},r[c]=t.getRawIndex(f),r)}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return mT.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),n}(mT);v(BC,dC),v(BC,NT),Xr(BC,mT);var RC=function(){function t(){this.group=new mw,this.uid=rs("viewComponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.toggleBlurSeries=function(){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Yr(RC),Jr(RC);var NC=Rr(),jC=Hu(),zC=function(){function t(){this.group=new mw,this.uid=rs("viewChart"),this.renderTask=Zl({plan:$u,reset:Gu}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&Wu(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&Wu(i,r,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){Wa(this.group,t)},t.markUpdateMethod=function(t,e){NC(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();Yr(zC,["dispose"]),Jr(zC);var FC,VC={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},HC="\0__throttleOriginMethod",UC="\0__throttleRate",WC="\0__throttleType",$C=Rr(),GC={itemStyle:ti(VM,!0),lineStyle:ti(jM,!0)},YC={lineStyle:"stroke",itemStyle:"fill"},QC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=qu(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Zu(t,r),u=a[l],c=C(u)?u:null,f="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||f){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=h,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||C(a.fill)?h:a.fill,a.stroke="auto"===a.stroke||C(a.stroke)?h:a.stroke}return n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c?(n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=p({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}):void 0}},XC=new WM,qC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=qu(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){XC.option=n[r];var a=i(XC),s=t.ensureUniqueItemVisual(e,"style");p(s,a),XC.option.decal&&(t.setItemVisual(e,"decal",XC.option.decal),XC.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},ZC={performRawSeries:!0,overallReset:function(t){var e=X();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),$C(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=$C(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Zu(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",f=n.count();u[s]=e.getColorFromPalette(c,o,f)}}))}}))}},KC=Math.PI,JC=function(){function t(t,e,n,r){this._stageTaskMap=X(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=X();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;m(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";W(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){function i(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}r=r||{};var o=!1,a=this;m(t,(function(t){if(!r.visualType||r.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var c,f=u.agentStubMap;f.each((function(t){i(r,t)&&(t.dirty(),c=!0)})),c&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each((function(t){t.perform(p)})),u.perform(p)&&(o=!0)}else l&&l.each((function(s){i(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){function i(e){var i=e.uid,l=s.set(i,a&&a.get(i)||Zl({plan:rc,reset:ic,count:ac}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=X(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(i):l?n.eachRawSeriesByType(l,i):u&&u(n,r).each(i)},t.prototype._createOverallStageTask=function(t,e,n,r){function i(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(p=!0,Zl({reset:tc,onDirty:nc})));n.context={model:t,overallProgress:f},n.agent=a,n.__block=f,o._pipe(t,n)}var o=this,a=e.overallTask=e.overallTask||Zl({reset:Ju});a.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=X(),u=t.seriesType,c=t.getTargetSeries,f=!0,p=!1,h="";W(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,i):c?c(n,r).each(i):(f=!1,m(n.getSeries(),i)),p&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return C(t)&&(t={overallReset:t,seriesType:sc(t)}),t.uid=rs("stageHandler"),e&&(t.visualType=e),t},t}(),tI=oc(0),eI={},nI={};lc(eI,FT),lc(nI,QT),eI.eachSeriesByType=eI.eachRawSeriesByType=function(t){FC=t},eI.eachComponent=function(t){"series"===t.mainType&&t.subType&&(FC=t.subType)};var rI=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],iI={color:rI,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],rI]},oI="#B9B8CE",aI="#100C2A",sI=function(){return{axisLine:{lineStyle:{color:oI}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},lI=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],uI={darkMode:!0,color:lI,backgroundColor:aI,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:oI}},textStyle:{color:oI},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:oI}},dataZoom:{borderColor:"#71708A",textStyle:{color:oI},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:oI}},timeline:{lineStyle:{color:oI},label:{color:oI},controlStyle:{color:oI,borderColor:oI}},calendar:{itemStyle:{color:aI},dayLabel:{color:oI},monthLabel:{color:oI},yearLabel:{color:oI}},timeAxis:sI(),logAxis:sI(),valueAxis:sI(),categoryAxis:sI(),line:{symbol:"circle"},graph:{color:lI},gauge:{title:{color:oI},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:oI},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};uI.categoryAxis.splitLine.show=!1;var cI=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(I(t)){var i=Wr(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};m(t,(function(t,i){for(var s=!1,l=0;l0&&c===i.length-u.length){var f=i.slice(0,c);"data"!==f&&(e.mainType=f,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){function n(t,e,n,r){return null==t[n]||e[r||n]===t[n]}var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,a,"mainType")&&n(l,a,"subType")&&n(l,a,"index","componentIndex")&&n(l,a,"name")&&n(l,a,"id")&&n(u,o,"name")&&n(u,o,"dataIndex")&&n(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),fI=["symbol","symbolSize","symbolRotate","symbolOffset"],pI=fI.concat(["symbolKeepAspect"]),hI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(e,n){for(var r=t.getRawValue(n),i=t.getDataParams(n),a=0;a0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.isSSR=function(){return this._ssr},n.prototype.setOption=function(t,e,n){if(!this[rk]&&!this._disposed){var r,i,o;if(P(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[rk]=!0,!this._model||e){var a=new KT(this._api),s=this._theme,l=this._model=new FT;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},Nk);var u={seriesTransition:o,optionChanged:!0};if(n)this[ik]={silent:r,updateParams:u},this[rk]=!1,this.getZr().wakeUp();else{try{hk(this),vk.update.call(this,null,u)}catch(p){throw this[ik]=null,this[rk]=!1,p}this._ssr||this._zr.flush(),this[ik]=null,this[rk]=!1,xk.call(this,r),bk.call(this,r)}}},n.prototype.setTheme=function(){},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||H_.hasGlobalWindow&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},n.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},n.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},n.prototype.getSvgDataURL=function(){if(H_.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return m(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;m(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return m(r,(function(t){t.group.ignore=!1})),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(Hk[n]){var a=o,s=o,l=-o,c=-o,f=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();m(Vk,(function(o){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(u(t)),h=o.getDom().getBoundingClientRect();a=r(h.left,a),s=r(h.top,s),l=i(h.right,l),c=i(h.bottom,c),f.push({dom:p,left:h.left,top:h.top})}})),a*=p,s*=p,l*=p,c*=p;var h=l-a,d=c-s,g=q_.createCanvas(),v=zn(g,{renderer:e?"svg":"canvas"});if(v.resize({width:h,height:d}),e){var y="";return m(f,(function(t){var e=t.left-a,n=t.top-s;y+=''+t.dom+""})),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new YS({shape:{x:0,y:0,width:h,height:d},style:{fill:t.connectedBackgroundColor}})),m(f,(function(t){var e=new US({style:{x:t.left*p-a,y:t.top*p-s,image:t.dom}});v.add(e)})),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},n.prototype.convertToPixel=function(t,e){return yk(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return yk(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=Nr(r,t);return m(i,(function(t,r){r.indexOf("Models")>=0&&m(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}}),this)}),this),!!n}},n.prototype.getVisual=function(t,e){var n=this._model,r=Nr(n,t,{defaultMainType:"series"}),i=r.seriesModel,o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?uc(o,a,e):cc(o,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t=this;m(Ek,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&dc(o,(function(t){var e=eA(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(r=p({},e.eventData),!0):void 0}),!0),r){var s=r.componentType,l=r.componentIndex;("markLine"===s||"markPoint"===s||"markArea"===s)&&(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),m(Bk,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),m(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),hc(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this.getDom();t&&Fr(this.getDom(),$k,"");var e=this,n=e._api,r=e._model;m(e._componentsViews,(function(t){t.dispose(r,n)})),m(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Vk[e.id]}},n.prototype.resize=function(t){if(!this[rk]&&!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[ik]&&(null==r&&(r=this[ik].silent),n=!0,this[ik]=null),this[rk]=!0;try{n&&hk(this),vk.update.call(this,{type:"resize",animation:p({duration:0},t&&t.animation)})}catch(o){throw this[rk]=!1,o}this[rk]=!1,xk.call(this,r),bk.call(this,r)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(P(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Fk[t])){var n=Fk[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},n.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=p({},t);return e.type=Bk[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(P(e)||(e={silent:!!e}),Lk[t.type]&&this._model)){if(this[rk])return void this._pendingActions.push(t);var n=e.silent;_k.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&H_.browser.weChat&&this._throttledZrFlush(),xk.call(this,n),bk.call(this,n)}},n.prototype.updateLabelLayout=function(){RI.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function n(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);se(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),m(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function r(t){for(var e=[],n=t.currentStates,r=0;re.get("hoverLayerThreshold")&&!H_.node&&!H_.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function o(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function a(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return s(t,n,r,-1/0),!0}))}}function s(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var l=t.childrenRef(),u=0;u0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(da(t))return;if(t instanceof jS&&$o(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&r(t)}}))}hk=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),dk(t,!0),dk(t,!1),e.plan()},dk=function(t,e){function n(t){var n=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!n&&a[u];if(!c){var f=Wr(t.type),p=e?RC.getClass(f.main,f.sub):zC.getClass(f.sub);c=new p,c.init(r,l),a[u]=c,o.push(c),s.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,r,l)}for(var r=t._model,i=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a1&&1===f)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&f>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===f)this._update&&this._update(u,l),r[s]=null;else if(c>1&&f>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var p=0;c>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n1)for(var a=0;o>a;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;oo;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var f=this.getSourceDimension(o);f&&(s=e?f.name:null,l=f.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=sO[l]||"f",u&&(r+=u.uid),r+="$"}var p=this.source,h=[p.seriesLayoutBy,p.startIndex,r].join("$$");return{dimensions:i,hash:h}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;ea;a++){var s=a-r;this._nameList[a]=e[s],o&&eO(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===MT;if(s&&!r.pure)for(var l=[],u=t;e>u;u++){var c=r.getItem(u,l);if(!this.hasItemOption&&_r(c)&&(this.hasItemOption=!0),c){var f=c.name;null==i[u]&&null!=f&&(i[u]=kr(f,null));var p=c.id;null==o[u]&&null!=p&&(o[u]=kr(p,null))}}if(this._shouldMakeIdFromName())for(u=t;e>u;u++)eO(this,u);Xk(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){uO(t)?p(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=Zk(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return qk(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];return r?n.get(r.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];return r?n.getByRawIndex(r.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return T(t)?r.getValues(cO(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;r>n;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],r=n[e];return null==r||isNaN(r)?hO:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){C(t)&&(n=e,e=t,t=[]);var r=n||this,i=cO(Kk(t),this._getStoreDimIndex,this);this._store.each(i,r?cx(e,r):e)},t.prototype.filterSelf=function(t,e,n){C(t)&&(n=e,e=t,t=[]);var r=n||this,i=cO(Kk(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?cx(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=S(t),i=[];return m(r,(function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){C(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=cO(Kk(t),this._getStoreDimIndex,this),a=tO(this);return a._store=this._store.map(o,i?cx(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this,o=cO(Kk(t),this._getStoreDimIndex,this);this._store.modify(o,i?cx(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=tO(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=tO(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new WM(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new rO(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return qk(t,e)}),(function(t){return qk(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},uO(t)?p(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),T(i)?i=i.slice():uO(i)&&(i=p({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,uO(e)?p(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){uO(t)?p(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?p(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;nA(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){m(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:cO(this.dimensions,this._getDimInfo,this),this.hostModel)),Jk(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];C(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(H(arguments)))})},t.internalField=function(){Xk=function(t){var e=t._invertedIndicesMap;m(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new fO(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),yO=function(){function t(t){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=t}return t}(),mO={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Dw).models[0],o=t.getReferringComponents("yAxis",Dw).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Gf(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Gf(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Dw).models[0];e.coordSysDims=["single"],n.set("single",i),Gf(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Dw).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Gf(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Gf(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();m(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Gf(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}},_O=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Jr(_O);var xO=0,bO=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++xO}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&_(r,np);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!I(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},t}(),wO=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new bO({})),T(r)&&(r=new bO({categories:_(r,(function(t){return P(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return null==t?NaN:I(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return t=this.parse(t),up(t,this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),cp(t,this._extent)},n.prototype.scale=function(t){return t=Math.round(fp(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(){},n.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>i;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;o>i;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},n.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t=0&&t=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.calcNiceTicks=function(){},n.prototype.calcNiceExtent=function(){},n.type="ordinal",n}(_O);_O.registerClass(wO);var SO=Yn,AO=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return up(t,this._extent)},n.prototype.normalize=function(t){return cp(t,this._extent)},n.prototype.scale=function(t){return fp(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ap(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[];var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&o.push(t?{value:SO(l+e,i)}:{value:n[1]}),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;is;){var f=SO(a.value+(s+1)*c);f>r[0]&&fi&&(i=-i,r.reverse());var o=ip(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=SO(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=SO(Math.ceil(e[1]/i)*i))},n.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},n.type="interval",n}(_O);_O.registerClass(AO);var MO="undefined"!=typeof Float32Array,TO=MO?Float32Array:Array,CO="__ec_stack_",IO=function(t,e,n,r){for(;r>n;){var i=n+r>>>1;t[i][1]n&&(this._approxInterval=n);var o=OO.length,a=Math.min(IO(OO,this._approxInterval,0,o),o-1);this._interval=OO[a][1],this._minLevelUnit=OO[Math.max(a-1,0)][0]},n.prototype.parse=function(t){return O(t)?t:+rr(t)},n.prototype.contain=function(t){return up(this.parse(t),this._extent)},n.prototype.normalize=function(t){return cp(this.parse(t),this._extent)},n.prototype.scale=function(t){return fp(t,this._extent)},n.type="time",n}(AO),OO=[["second",tT],["minute",eT],["hour",nT],["quarter-day",6*nT],["half-day",12*nT],["day",1.2*rT],["half-week",3.5*rT],["week",7*rT],["month",31*rT],["quarter",95*rT],["half-year",iT/2],["year",iT]];_O.registerClass(kO);var PO=_O.prototype,DO=AO.prototype,EO=Yn,LO=Math.floor,BO=Math.ceil,RO=Math.pow,NO=Math.log,jO=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new AO,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),i=DO.getTicks.call(this,t);return _(i,(function(t){var e=t.value,i=Yn(RO(this.base,e));return i=e===n[0]&&this._fixMin?Ep(i,r[0]):i,i=e===n[1]&&this._fixMax?Ep(i,r[1]):i,{value:i}}),this)},n.prototype.setExtent=function(t,e){var n=NO(this.base);t=NO(Math.max(0,t))/n,e=NO(Math.max(0,e))/n,DO.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=PO.getExtent.call(this);e[0]=RO(t,e[0]),e[1]=RO(t,e[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(e[0]=Ep(e[0],r[0])),this._fixMax&&(e[1]=Ep(e[1],r[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=NO(t[0])/NO(e),t[1]=NO(t[1])/NO(e),PO.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var r=ir(n),i=t/n*r;for(.5>=i&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[Yn(BO(e[0]/r)*r),Yn(LO(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},n.prototype.calcNiceExtent=function(t){DO.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return t=NO(t)/NO(this.base),up(t,this._extent)},n.prototype.normalize=function(t){return t=NO(t)/NO(this.base),cp(t,this._extent)},n.prototype.scale=function(t){return t=fp(t,this._extent),RO(this.base,t)},n.type="log",n}(_O),zO=jO.prototype;zO.getMinorTicks=DO.getMinorTicks,zO.getLabel=DO.getLabel,_O.registerClass(jO);var FO=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var f=this._determinedMin,p=this._determinedMax;return null!=f&&(a=f,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[HO[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=VO[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),VO={min:"_determinedMin",max:"_determinedMax"},HO={min:"_dataMin",max:"_dataMax"},UO=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),WO={isDimensionStacked:Xf,enableDataStack:Yf,getStackedDimension:qf},$O=(Object.freeze||Object)({createList:Xp,getLayoutRect:Us,dataStack:WO,createScale:qp,mixinAxisModelCommonMethods:Zp,getECData:eA,createTextStyle:Kp,createDimensions:Ff,createSymbol:vc,enableHoverEmphasis:Bo}),GO=[],YO={registerPreprocessor:gf,registerProcessor:vf,registerPostInit:yf,registerPostUpdate:mf,registerUpdateLifecycle:_f,registerAction:xf,registerCoordinateSystem:bf,registerLayout:Sf,registerVisual:Af,registerTransform:Qk,registerLoading:Tf,registerMap:If,registerImpl:nf,PRIORITY:nk,ComponentModel:mT,ComponentView:RC,SeriesModel:BC,ChartView:zC,registerComponentModel:function(t){mT.registerClass(t)},registerComponentView:function(t){RC.registerClass(t)},registerSeriesModel:function(t){BC.registerClass(t)},registerChartView:function(t){zC.registerClass(t)},registerSubTypeDefaulter:function(t,e){mT.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Un(t,e)}},QO=1e-8,XO=[],qO=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),ZO=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),KO=function(){function t(t){this.type="linestring",this.points=t}return t}(),JO=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return e(n,t),n.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;rn&&(t=i,n=a)}if(t)return ih(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},n.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return m(i,(function(e){"polygon"===e.type?rh(e.exterior,n,r,t):m(e.points,(function(e){rh(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new Gx(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},n.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;i>r;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(eh(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(eh(s[l],t[0],t[1]))continue t;return!0}}}return!1},n.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Gx(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u=n&&r>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Zn(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),Sh(n,r.count())),$n(t,aP,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),Sh(n,r.count()));var i=$n(t,n,aP,e);return this.scale.scale(i)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=ch(this,e),r=n.ticks,i=_(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return Ah(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&100>e||(e=5);var n=this.scale.getMinorTicks(e),r=_(n,(function(t){return _(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return uh(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return _h(this)},t}(),lP=2*Math.PI,uP=CS.CMD,cP=["top","right","bottom","left"],fP=[],pP=new Nx,hP=new Nx,dP=new Nx,gP=new Nx,vP=new Nx,yP=[],mP=new Nx,_P=["align","verticalAlign","width","height","fontSize"],xP=new uw,bP=Rr(),wP=Rr(),SP=["x","y","rotation"],AP=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var o=r.style,a=r.__hostTarget,s=a.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();Gx.applyTransform(u,u,l),l?xP.setLocalTransform(l):(xP.x=xP.y=xP.rotation=xP.originX=xP.originY=0,xP.scaleX=xP.scaleY=1);var c,f=r.__hostTarget;if(f){c=f.getBoundingRect().plain();var p=f.getComputedTransform();Gx.applyTransform(c,c,p)}var h=c&&f.getTextGuideLine();this._labelList.push({label:r,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:h&&h.ignore,x:xP.x,y:xP.y,scaleX:xP.scaleX,scaleY:xP.scaleY,rotation:xP.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(C(r)||S(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=eA(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){function e(t,e){return function(){Bh(t,e)}}for(var n=t.getWidth(),r=t.getHeight(),i=0;i=0&&n.attr(i.oldLayoutSelect),d(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),pa(n,l,e,s)}else if(n.attr(l),!EM(n).valueAnimation){var f=F(n.style.opacity,1);n.style.opacity=0,ha(n,{style:{opacity:f}},e,s)}if(i.oldLayout=l,n.states.select){var p=i.oldLayoutSelect={};Qh(p,l,SP),Qh(p,n.states.select,SP)}if(n.states.emphasis){var h=i.oldLayoutEmphasis={};Qh(h,l,SP),Qh(h,n.states.emphasis,SP)}ns(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=wP(r),o=i.oldLayout;var g={points:r.shape.points};o?(r.attr({shape:o}),pa(r,{shape:g},e)):(r.setShape(g),r.style.strokePercent=0,ha(r,{style:{strokePercent:1}},e)),i.oldLayout=g}},t}(),MP=Rr();Jp(Xh);var TP=function(t){function n(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Kb,"string"==typeof e?i=qh(e,n,r):P(e)&&(i=e,e=i.id),o.id=e,o.dom=i;var a=i.style;return a&&(K(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return e(n,t),n.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},n.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},n.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},n.prototype.setUnpainted=function(){this.__firstTimePaint=!0},n.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=qh("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},n.prototype.createRepaintRects=function(t,e,n,r){function i(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Gx(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;ug&&(r=g,i=u)}}if(s&&(o[i].union(t),n=!0),!n){e=new Gx(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new Gx(0,0,0,0),u=this.__startIndex;uo;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(CP)),r||(r=n.ctx,r.save()),Yc(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(CP)},t.prototype.paintOne=function(t,e){Gc(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;sb((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(IP).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a15)break}}n.prevElClipPaths&&l.restore()};if(f)if(0===f.length)m=s.__endIndex;else for(var x=p.dpr,b=0;b0&&t>r[0]){for(s=0;i-1>s&&!(r[s]t);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r0?kP:0),this._needsManuallyCompositing),c.__builtin__||s("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.__drawIndex=c.incremental?-1:o,e(o),a=c),r.__dirty&nb&&!r.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,m(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?c(n[t],e,!0):n[t]=e;for(var r=0;rs;s++){var u=a[s];Yc(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),DP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new IC(this),pu(this)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),pu(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type="dataset",n.defaultOption={seriesLayoutBy:PT},n}(mT),EP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.type="dataset",n}(RC);Jp([Jh,td]),Jp(Xh);var LP={average:function(t){for(var e=0,n=0,r=0;re&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;nh)l=p;else if(null!=l&&h>a){u=(p+l)/2;break}1===f&&(c=h-r[0].tickValue)}null==u&&(l?l&&(u=r[r.length-1].coord):u=r[0].coord),o[n]=t.toGlobalCoord(u)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},n.type="series.__base_bar__",n.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},n}(BC);BC.registerClass(RP);var NP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(){return Jf(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},n.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},n.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},n.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},n.type="series.bar",n.dependencies=["grid","polar"],n.defaultOption=as(RP.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}),n}(RP),jP=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),zP=function(t){function n(e){var n=t.call(this,e)||this;return n.type="sausage",n}return e(n,t),n.prototype.getDefaultShape=function(){return new jP},n.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,f=2*Math.PI,p=c?f>u-l:f>l-u;p||(l=u-(c?f:-f));var h=Math.cos(l),d=Math.sin(l),g=Math.cos(u),v=Math.sin(u);p?(t.moveTo(h*i+n,d*i+r),t.arc(h*s+n,d*s+r,a,-Math.PI+l,l,!c)):t.moveTo(h*o+n,d*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},n}(jS),FP=Math.max,VP=Math.min,HP=function(t){function n(){var e=t.call(this)||this;return e.type=n.type,e._isFirstFrame=!0,e}return e(n,t),n.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},n.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},n.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},n.prototype.eachRendered=function(t){Wa(this._progressiveEls||this.group,t)},n.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},n.prototype._renderNormal=function(t,e,n,r){function i(t){var e=QP[u.type](s,t),n=Ad(u,o,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===u.type?n.setShape("r",m):n.setShape("cornerRadius",m),_[t]=n,n}var o,a=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis();"cartesian2d"===u.type?o=c.isHorizontal():"polar"===u.type&&(o="angle"===c.dim);var f=t.isAnimationEnabled()?t:null,p=dd(t,u);p&&this._enableRealtimeSort(p,s,n);var h=t.get("clip",!0)||p,d=hd(u,s);a.removeClipPath();var g=t.get("roundCap",!0),v=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),m=y.get("borderRadius")||0,_=[],x=this._backgroundEls,b=r&&r.isInitSort,w=r&&"changeAxisOrder"===r.type;s.diff(l).add((function(e){var n=s.getItemModel(e),r=QP[u.type](s,e,n);if(v&&i(e),s.hasValue(e)&&YP[u.type](r)){var l=!1;h&&(l=UP[u.type](d,r));var y=WP[u.type](t,s,e,r,o,f,c.model,!1,g);p&&(y.forceLabelAnimation=!0),_d(y,s,e,n,r,t,o,"polar"===u.type),b?y.attr({shape:r}):p?gd(p,f,y,r,e,o,!1,!1):ha(y,{shape:r},t,e),s.setItemGraphicEl(e,y),a.add(y),y.ignore=l}})).update((function(e,n){var r=s.getItemModel(e),S=QP[u.type](s,e,r);if(v){var A=void 0;0===x.length?A=i(n):(A=x[n],A.useStyle(y.getItemStyle()),"cartesian2d"===u.type?A.setShape("r",m):A.setShape("cornerRadius",m),_[e]=A);var M=QP[u.type](s,e),T=Sd(o,M,u);pa(A,{shape:T},f,e)}var C=l.getItemGraphicEl(n);if(s.hasValue(e)&&YP[u.type](S)){var I=!1;if(h&&(I=UP[u.type](d,S),I&&a.remove(C)),C?ma(C):C=WP[u.type](t,s,e,S,o,f,c.model,!!C,g),p&&(C.forceLabelAnimation=!0),w){var k=C.getTextContent();if(k){var O=EM(k);null!=O.prevValue&&(O.prevValue=O.value)}}else _d(C,s,e,r,S,t,o,"polar"===u.type);b?C.attr({shape:S}):p?gd(p,f,C,S,e,o,!0,w):pa(C,{shape:S},t,e,null),s.setItemGraphicEl(e,C),C.ignore=I,a.add(C)}else a.remove(C)})).remove((function(e){var n=l.getItemGraphicEl(e);n&&ya(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new mw);S.removeAll();for(var A=0;A<_.length;++A)S.add(_[A]);a.add(S),this._backgroundEls=_,this._data=s},n.prototype._renderLarge=function(t){this._clear(),bd(t,this.group),this._updateLargeClip(t)},n.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),bd(e,this.group,this._progressiveEls,!0)},n.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&id(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},n.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},n.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),(function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})})),r.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:_(r,(function(t){return t.ordinalNumber}))}},n.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;s>a;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=0>l?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},n.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);o>=i;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},n.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},n.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},n.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},n.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},n.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},n.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){ya(e,t,eA(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},n.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},n.type="bar",n}(zC),UP={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;0>n&&(e.x+=e.width,e.width=-e.width),0>r&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=FP(e.x,t.x),s=VP(e.x+e.width,i),l=FP(e.y,t.y),u=VP(e.y+e.height,o),c=a>s,f=l>u;return e.x=c&&a>i?s:a,e.y=f&&l>o?u:l,e.width=c?0:s-a,e.height=f?0:u-l,0>n&&(e.x+=e.width,e.width=-e.width),0>r&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(0>n){var r=e.r;e.r=e.r0,e.r0=r}var i=VP(e.r,t.r),o=FP(e.r0,t.r0);e.r=i,e.r0=o;var a=0>i-o;if(0>n){r=e.r;e.r=e.r0,e.r0=r}return a}},WP={cartesian2d:function(t,e,n,r,i,o){var a=new YS({shape:p({},r),z2:1});if(a.__dataIndex=n,a.name="item",o){var s=a.shape,l=i?"height":"width";s[l]=0}return a},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?zP:XA,c=new u({shape:r,z2:1});c.name="item";var f=md(i);if(c.calculateTextPosition=ld(f,{isRoundCap:u===zP}),o){var p=c.shape,h=i?"r":"endAngle",d={};p[h]=i?r.r0:r.startAngle,d[h]=r[h],(s?pa:ha)(c,{shape:d},o)}return c}},$P=["x","y","width","height"],GP=["cx","cy","r","startAngle","endAngle"],YP={cartesian2d:function(t){return!vd(t,$P)},polar:function(t){return!vd(t,GP)}},QP={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?xd(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}},XP=function(){function t(){}return t}(),qP=function(t){function n(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return e(n,t),n.prototype.getDefaultShape=function(){return new XP},n.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);Jp(Md);var KP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.getInitialData=function(){return Jf(null,this,{useEncodeDefaulter:!0})},n.prototype.getLegendIcon=function(t){var e=new mw,n=vc("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=vc(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},n.type="series.line",n.dependencies=["grid","polar"],n.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},n}(BC),JP=function(t){function n(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return e(n,t),n.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=vc(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=Td,this._symbolType=t,this.add(o)},n.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},n.prototype.getSymbolType=function(){return this._symbolType},n.prototype.getSymbolPath=function(){return this.childAt(0)},n.prototype.highlight=function(){mo(this.childAt(0))},n.prototype.downplay=function(){_o(this.childAt(0))},n.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},n.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},n.prototype.updateData=function(t,e,r,i){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=n.getSymbolSize(t,e),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,c)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):pa(f,p,a,e),ma(f)}if(this._updateCommon(t,e,s,r,i),l){f=this.childAt(0);if(!u){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,ha(f,p,a,e)}}u&&this.childAt(0).stopAnimation("leave")},n.prototype._updateCommon=function(t,e,n,r,i){function o(e){return C?t.getName(e):ad(t,e)}var a,s,l,u,c,f,h,d,g,v=this.childAt(0),y=t.hostModel;if(r&&(a=r.emphasisItemStyle,s=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,c=r.blurScope,h=r.labelStatesModels,d=r.hoverScale,g=r.cursorStyle,f=r.emphasisDisabled),!r||t.hasItemOption){var m=r&&r.itemModel?r.itemModel:t.getItemModel(e),_=m.getModel("emphasis");a=_.getModel("itemStyle").getItemStyle(),l=m.getModel(["select","itemStyle"]).getItemStyle(),s=m.getModel(["blur","itemStyle"]).getItemStyle(),u=_.get("focus"),c=_.get("blurScope"),f=_.get("disabled"),h=Qa(m),d=_.getShallow("scale"),g=m.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");v.attr("rotation",(x||0)*Math.PI/180||0);var b=mc(t.getItemVisual(e,"symbolOffset"),n);b&&(v.x=b[0],v.y=b[1]),g&&v.attr("cursor",g);var w=t.getItemVisual(e,"style"),S=w.fill;if(v instanceof US){var A=v.style;v.useStyle(p({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},w))}else v.useStyle(v.__isEmptyBrush?p({},w):w),v.style.decal=null,v.setColor(S,i&&i.symbolInnerColor),v.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),T=this._z2;null!=M?null==T&&(this._z2=v.z2,v.z2+=M):null!=T&&(v.z2=T,this._z2=null);var C=i&&i.useNameLabel;Ya(v,h,{labelFetcher:y,labelDataIndex:e,defaultText:o,inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=v.ensureState("emphasis");I.style=a,v.ensureState("select").style=l,v.ensureState("blur").style=s;var k=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;I.scaleX=this._sizeX*k,I.scaleY=this._sizeY*k,this.setSymbolScale(1),No(this,u,c,f)},n.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},n.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=eA(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&ga(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();ga(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},n.getSymbolSize=function(t,e){return yc(t.getItemVisual(e,"symbolSize"))},n}(mw),tD=function(){function t(t){this.group=new mw,this._SymbolCtor=t||JP}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Id(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=kd(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);if(Cd(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,f){var p=i.getItemGraphicEl(f),h=u(c);if(Cd(t,h,c,e)){var d=t.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==d)n.remove(p),p=new o(t,c,s,l),p.setPosition(h);else{p.updateData(t,c,s,l);var v={x:h[0],y:h[1]};a?p.attr(v):pa(p,v,r)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=kd(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Id(n);for(var i=t.start;i0&&Bd(n[2*i-2],n[2*i-1]);i--);for(;i>r&&Bd(n[2*r],n[2*r+1]);r++);}for(;i>r;)r+=Rd(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},n.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path,o=i.data,a=CS.CMD,s="x"===e,l=[],u=0;u=y&&y>=0){var m=s?(p-r)*y+r:(f-n)*y+n;return s?[t,m]:[m,t]}n=f,r=p;break;case a.C:f=o[u++],p=o[u++],h=o[u++],d=o[u++],g=o[u++],v=o[u++];var _=s?de(n,f,h,g,t,l):de(r,p,d,v,t,l);if(_>0)for(var x=0;_>x;x++){var b=l[x];if(1>=b&&b>=0){m=s?pe(r,p,d,v,b):pe(n,f,h,g,b);return s?[t,m]:[m,t]}}n=g,r=v}}},n}(jS),oD=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(rD),aD=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return e(n,t),n.prototype.getDefaultShape=function(){return new oD},n.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Bd(n[2*o-2],n[2*o-1]);o--);for(;o>i&&Bd(n[2*i],n[2*i+1]);i++);}for(;o>i;){var s=Rd(t,n,i,o,o,1,e.smooth,a,e.connectNulls);Rd(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},n}(jS),sD=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(){var t=new mw,e=new tD;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},n.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,f=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,v=this._lineGroup,y=!e.ssr&&t.isAnimationEnabled(),m=!l.isEmpty(),_=l.get("origin"),x=Od(i,a,_),b=m&&Vd(i,a,x),w=t.get("showSymbol"),S=t.get("connectNulls"),A=w&&!c&&$d(t,a,i),M=this._data;M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))})),w||p.remove(),o.add(v);var T,C=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(T=i.getArea(),null!=T.width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var I=Wd(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&f.type===i.type&&C===this._step){m&&!g?g=this._newPolygon(u,b):g&&!m&&(v.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Vs(I));var k=v.getClipPath();if(k){var O=Kd(this,i,!1,t);ha(k,{shape:O.shape},t)}else v.setClipPath(Kd(this,i,!0,t));w&&p.updateData(a,{isIgnore:A,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Nd(this._stackedOnPoints,b)&&Nd(this._points,u)||(y?this._doUpdateAnimation(a,b,i,n,C,_,S):(C&&(u=Hd(u,i,C,S),b&&(b=Hd(b,i,C,S))),d.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:b})))}else w&&p.updateData(a,{isIgnore:A,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,i,T),C&&(u=Hd(u,i,C,S),b&&(b=Hd(b,i,C,S))),d=this._newPolyline(u),m?g=this._newPolygon(u,b):g&&(v.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Vs(I)),v.setClipPath(Kd(this,i,!0,t));var P=t.getModel("emphasis"),D=P.get("focus"),E=P.get("blurScope"),L=P.get("disabled");if(d.useStyle(h(s.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),zo(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}eA(d).seriesIndex=t.seriesIndex,No(d,D,E,L);var R=Fd(t.get("smooth")),N=t.get("smoothMonotone");if(d.setShape({smooth:R,smoothMonotone:N,connectNulls:S}),g){var j=a.getCalculationInfo("stackedOnSeries"),z=0;g.useStyle(h(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),j&&(z=Fd(j.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:z,smoothMonotone:N,connectNulls:S}),zo(g,t,"areaStyle"),eA(g).seriesIndex=t.seriesIndex,No(g,D,E,L)}var F=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=F)})),this._polyline.onHoverStateChange=F,this._data=a,this._coordSys=i,this._stackedOnPoints=b,this._points=u,this._step=C,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},n.prototype.packEventData=function(t,e){eA(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},n.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=Br(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,f=t.get("z")||0;s=new JP(i,o),s.x=l,s.y=u,s.setZ(c,f);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=f,p.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else zC.prototype.highlight.call(this,t,e,n,r)},n.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=Br(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else zC.prototype.downplay.call(this,t,e,n,r)},n.prototype._changePolyState=function(t){var e=this._polygon;lo(this._polyline,t),e&&lo(e,t)},n.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new iD({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},n.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new aD({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");C(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=C(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var f=[t.x,t.y],p=void 0,h=void 0,d=void 0;if(n)if(i){var g=n,v=e.pointToCoord(f);r?(p=g.startAngle,h=g.endAngle,d=-v[1]/180*Math.PI):(p=g.r0,h=g.r,d=v[0])}else{var y=n;r?(p=y.x,h=y.x+y.width,d=t.x):(p=y.y+y.height,h=y.y,d=t.y)}var m=h===p?0:(d-p)/(h-p);a&&(m=1-m);var _=C(u)?u(o):l*m+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},n.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(Zd(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new ZS({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=Qd(a);l>=0&&(Ya(o,Qa(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?sd(i,n):ad(i,t)},enableTextSetter:!0},Jd(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},n.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,f=c.get("connectNulls"),p=o.get("precision"),h=o.get("distance")||0,d=a.getBaseAxis(),g=d.isHorizontal(),v=d.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,_=(g?h:0)*(v?-1:1),x=(g?0:-h)*(v?-1:1),b=g?"x":"y",w=qd(u,m,b),S=w.range,A=S[1]-S[0],M=void 0;if(A>=1){if(A>1&&!f){var T=Xd(u,S[0]);s.attr({x:T[0]+_,y:T[1]+x}),i&&(M=c.getRawValue(S[0]))}else{T=l.getPointOn(m,b);T&&s.attr({x:T[0]+_,y:T[1]+x});var C=c.getRawValue(S[0]),I=c.getRawValue(S[1]);i&&(M=Ur(n,p,C,I,w.t))}r.lastFrameIndex=S[0]}else{var k=1===t||r.lastFrameIndex>0?S[0]:0;T=Xd(u,k);i&&(M=c.getRawValue(k)),s.attr({x:T[0]+_,y:T[1]+x})}i&&EM(s).setLabelText(M)}},n.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=Ld(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),f=c.current,p=c.stackedOnCurrent,h=c.next,d=c.stackedOnNext;if(i&&(f=Hd(c.current,n,i,a),p=Hd(c.stackedOnCurrent,n,i,a),h=Hd(c.next,n,i,a),d=Hd(c.stackedOnNext,n,i,a)),zd(f,h)>3e3||l&&zd(p,d)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:d})));s.shape.__points=c.current,s.shape.points=f;var g={shape:{points:h}};c.current!==f&&(g.shape.__points=c.next),s.stopAnimation(),pa(s,g,u),l&&(l.setShape({points:f,stackedOnPoints:p}),l.stopAnimation(),pa(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;m0?_D:xD)}function r(t,e){return e.get(0===t?mD:t>0?vD:yD)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(t,e){for(var i;null!=(i=t.next());){var o=e.getItemModel(i),a=e.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill;var l=e.ensureUniqueItemVisual(i,"style");p(l,s)}}}}}},wD={seriesType:"candlestick",plan:Hu(),reset:function(t){function e(t,e){function n(t,e){var n=[];return n[a]=e,n[s]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:r.dataToPoint(n)}function i(t,e,n){var r=e.slice(),i=e.slice();r[a]=CM(r[a]+o/2,1,!1),i[a]=CM(i[a]-o/2,1,!0),n?t.push(r,i):t.push(i,r)}function l(t,e,r){var i=n(t,r),l=n(e,r);return i[a]-=o/2,l[a]-=o/2,{x:i[0],y:i[1],width:s?o:l[0]-i[0],height:s?l[1]-i[1]:o}}function c(t){return t[a]=CM(t[a],1),t}for(var g,v=e.getStore();null!=(g=t.next());){var y=v.get(u,g),m=v.get(f,g),_=v.get(p,g),x=v.get(h,g),b=v.get(d,g),w=Math.min(m,_),S=Math.max(m,_),A=n(w,y),M=n(S,y),T=n(x,y),C=n(b,y),I=[];i(I,M,0),i(I,A,1),I.push(c(C),c(M),c(T),c(A));var k=e.getItemModel(g),O=!!k.get(["itemStyle","borderColorDoji"]);e.setItemLayout(g,{sign:cg(v,g,m,_,p,O),initBaseline:m>_?M[s]:A[s],ends:I,brushRect:l(x,b,y)})}}function n(e,n){for(var i,o,l=pp(4*e.count),c=0,g=[],v=[],y=n.getStore(),m=!!t.get(["itemStyle","borderColorDoji"]);null!=(o=e.next());){var _=y.get(u,o),x=y.get(f,o),b=y.get(p,o),w=y.get(h,o),S=y.get(d,o);isNaN(_)||isNaN(w)||isNaN(S)?(l[c++]=NaN,c+=3):(l[c++]=cg(y,o,x,b,p,m),g[a]=_,g[s]=w,i=r.dataToPoint(g,null,v),l[c++]=i?i[0]:NaN,l[c++]=i?i[1]:NaN,g[s]=S,i=r.dataToPoint(g,null,v),l[c++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}var r=t.coordinateSystem,i=t.getData(),o=fg(t,i),a=0,s=1,l=["x","y"],u=i.getDimensionIndex(i.mapDimension(l[a])),c=_(i.mapDimensionsAll(l[s]),i.getDimensionIndex,i),f=c[0],p=c[1],h=c[2],d=c[3];return i.setLayout({candleWidth:o,isSimpleBox:1.3>=o}),0>u||c.length<4?void 0:{progress:t.pipelineContext.large?n:e}}};Jp(pg);var SD=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type="grid",n.dependencies=["xAxis","yAxis"],n.layoutMode="box",n.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"},n}(mT),AD=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Dw).models[0]},n.type="cartesian2dAxis",n}(mT);v(AD,UO);var MD={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)"]}}},TD=c({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},MD),CD=c({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}}},MD),ID=c({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},CD),kD=h({logBase:10},CD),OD={category:TD,value:CD,time:ID,log:kD},PD={value:1,category:1,time:1,log:1},DD=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return _(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),b(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),ED=["x","y"],LD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ED,e}return e(n,t),n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(gg(t)&&gg(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,f=i[1]-r[0]*u,p=this._transform=[l,0,0,u,c,f];this._invTransform=Yt([],p)}}},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},n.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},n.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},n.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new Gx(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},n.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return _t(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},n.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},n.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return _t(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},n.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},n.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new Gx(n,r,i,o)},n}(DD),BD=function(t){function n(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return e(n,t),n.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},n.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},n.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},n.prototype.setCategorySortInfo=function(t){return"category"===this.type&&(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},n}(sP),RD=Math.log,ND=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ED,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){function n(t){var e,n=S(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;rp(u)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(jp(u,l),rp(u)&&(e=s))}i.length&&(e||(e=i.pop(),jp(e.scale,e.model)),m(i,(function(t){_g(t.scale,t.model,e.scale)})))}}var r=this._axesMap;this._updateScale(t,this.model),n(r.x),n(r.y);var i={};m(r.x,(function(t){bg(r,"y",t,i)})),m(r.y,(function(t){bg(r,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){function r(){m(s,(function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),Sg(t,e?a.x:a.y)}))}var i=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=Us(i,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;r(),o&&(m(s,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=Up(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);a[n]-=e[n]+r,"top"===t.position?a.y+=e.height+r:"left"===t.position&&(a.x+=e.width+r)}}})),r()),m(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];return null!=n?n[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}P(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r0?"top":"bottom",r="center"):nr(o-jD)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&jD>o?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),FD={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(_t(s,s,a),_t(l,l,a));var c=p({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new iM({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Ca(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var h=e.get(["axisLine","symbol"]);if(null!=h){var d=e.get(["axisLine","symbolSize"]);I(h)&&(h=[h,h]),(I(d)||O(d))&&(d=[d,d]);var g=mc(e.get(["axisLine","symbolOffset"])||0,d),v=d[0],y=d[1];m([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==h[r]&&null!=h[r]){var i=vc(h[r],-v/2,-y/2,v,y,c.stroke,!0),o=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=Og(n,r,e,t),o=Dg(n,r,e,t);if(Mg(e,o,i),Pg(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=Vh(_(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));$h(a)}},axisName:function(t,e,n,r){var i=z(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,f=e.axis.getExtent(),p=f[0]>f[1]?-1:1,h=["start"===s?f[0]-p*c:"end"===s?f[1]+p*c:(f[0]+f[1])/2,Ig(s)?t.labelOffset+l*c:0],d=e.get("nameRotate");null!=d&&(d=d*jD/180),Ig(s)?o=zD.innerTextLayout(t.rotation,null!=d?d:t.rotation,l):(o=Ag(t.rotation,s,d||0,f),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=z(t.nameTruncateMaxWidth,v.maxWidth,a),_=new ZS({x:h[0],y:h[1],rotation:o.rotation,silent:zD.isLabelSilent(e),style:Xa(u,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ha({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var x=zD.makeAxisEventDataBase(e);x.targetType="axisName",x.name=i,eA(_).eventData=x}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}},VD={},HD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(e,n,r){this.axisPointerClass&&zg(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},n.prototype.updateAxisPointer=function(t,e,n){this._doUpdateAxisPointerClass(t,n,!1)},n.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},n.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},n.prototype._doUpdateAxisPointerClass=function(t,e,r){var i=n.getAxisPointerClass(this.axisPointerClass);if(i){var o=Vg(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,e,r):this._disposeAxisPointer(e)}},n.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},n.registerAxisPointerClass=function(t,e){VD[t]=e},n.getAxisPointerClass=function(t){return t&&VD[t]},n.type="axis",n}(RC),UD=Rr(),WD=["axisLine","axisTickLabel","axisName"],$D=["splitArea","splitLine","minorSplitLine"],GD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass="CartesianAxisPointer",e}return e(n,t),n.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new mw,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=vg(a,e),l=new zD(e,p({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),n=0;n=0},n.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},n.type="legend.plain",n.dependencies=["series"],n.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}},n}(mT),tE=M,eE=m,nE=mw,rE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!1,e}return e(n,t),n.prototype.init=function(){this.group.add(this._contentGroup=new nE),this.group.add(this._selectorGroup=new nE),this._isFirstRender=!0},n.prototype.getContentGroup=function(){return this._contentGroup},n.prototype.getSelectorGroup=function(){return this._selectorGroup},n.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),f=Us(l,u,c),p=this.layoutInner(t,i,f,r,a,s),d=Us(h({width:p.width,height:p.height},l),u,c);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Yg(p,t))}},n.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},n.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=X(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),eE(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var f=new nE;return f.newline=!0,void s.add(f)}var h=n.getSeriesByName(a)[0];if(!l.get(a))if(h){var d=h.getData(),g=d.getVisual("legendLineStyle")||{},v=d.getVisual("legendIcon"),y=d.getVisual("style"),m=this._createItem(h,a,o,i,e,t,g,y,v,u,r);m.on("click",tE(qg,a,null,r,c)).on("mouseover",tE(Kg,h.name,null,r,c)).on("mouseout",tE(Jg,h.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var f=s.indexOfName(a),h=s.getItemVisual(f,"style"),d=s.getItemVisual(f,"legendIcon"),g=Ne(h.fill);g&&0===g[3]&&(g[3]=.2,h=p(p({},h),{fill:Ge(g,"rgba")}));var v=this._createItem(n,a,o,i,e,t,{},h,d,u,r);v.on("click",tE(qg,null,a,r,c)).on("mouseover",tE(Kg,null,a,r,c)).on("mouseout",tE(Jg,null,a,r,c)),l.set(a,!0)}}),this)}),this),i&&this._createSelector(i,e,r,o,a)},n.prototype._createSelector=function(t,e,n){var r=this.getSelectorGroup();eE(t,(function(t){var i=t.type,o=new ZS({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});r.add(o);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Ya(o,{normal:a,emphasis:s},{defaultText:t.title}),Bo(o)}))},n.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var f=t.visualDrawType,p=i.get("itemWidth"),h=i.get("itemHeight"),d=i.isSelected(e),g=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),y=r.get("icon");l=y||l||"roundRect";var m=Qg(l,r,a,s,f,d,c),_=new nE,x=r.getModel("textStyle");if(!C(t.getLegendIcon)||y&&"inherit"!==y){var b="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(Xg({itemWidth:p,itemHeight:h,icon:l,iconRotate:b,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}))}else _.add(t.getLegendIcon({itemWidth:p,itemHeight:h,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}));var w="left"===o?p+5:-5,S=o,A=i.get("formatter"),M=e;I(A)&&A?M=A.replace("{name}",null!=e?e:""):C(A)&&(M=A(e));var T=r.get("inactiveColor");_.add(new ZS({style:Xa(x,{text:M,x:w,y:h/2,fill:d?x.getTextColor():T,align:S,verticalAlign:"middle"})}));var k=new YS({shape:_.getBoundingRect(),invisible:!0}),O=r.getModel("tooltip");return O.get("show")&&Ha({el:k,componentModel:i,itemName:e,itemTooltipOption:O.option}),_.add(k),_.eachChild((function(t){t.silent=!0})),k.silent=!u,this.getContentGroup().add(_),Bo(_),_.__legendDataIndex=n,_},n.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();vT(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){vT("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),f=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),h=t.getOrient().index,d=0===h?"width":"height",g=0===h?"height":"width",v=0===h?"y":"x";"end"===o?f[h]+=l[d]+p:u[h]+=c[d]+p,f[1-h]+=l[g]/2-c[g]/2,s.x=f[0],s.y=f[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[d]=l[d]+p+c[d],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+f[1-h]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},n.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},n.type="legend.plain",n}(RC),iE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},n.prototype.init=function(e,n,r){var i=Ys(e);t.prototype.init.call(this,e,n,r),iv(this,e,i)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),iv(this,this.option,e)},n.type="legend.scroll",n.defaultOption=as(JD.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),n}(JD),oE=mw,aE=["width","height"],sE=["x","y"],lE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!0,e._currentIndex=0,e}return e(n,t),n.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new oE),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new oE)},n.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},n.prototype.renderInner=function(e,n,r,i,o,a,s){function l(t,e){var r=t+"DataIndex",o=Na(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:cx(u._pageGo,u,r,n,i)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,c.add(o)}var u=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var c=this._controllerGroup,f=n.get("pageIconSize",!0),p=T(f)?f:[f,f];l("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new ZS({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),l("pageNext",1)},n.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=aE[s],c=sE[s],f=aE[1-s],p=sE[1-s];i&&vT("horizontal",a,t.get("selectorItemGap",!0));var h=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),g=[-d.x,-d.y],v=u(n);i&&(v[l]=n[l]-d[l]-h);var y=this._layoutContentAndController(t,r,v,s,l,f,p,c);if(i){if("end"===o)g[s]+=y[l]+h;else{var m=d[l]+h;g[s]-=m,y[c]-=m}y[l]+=d[l]+h,g[1-s]+=y[p]+y[f]/2-d[f]/2,y[f]=Math.max(y[f],d[f]),y[p]=Math.min(y[p],d[p]+g[1-s]),a.x=g[0],a.y=g[1],a.markRedraw()}return y},n.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;vT(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),vT("horizontal",c,t.get("pageButtonItemGap",!0));var f=l.getBoundingRect(),p=c.getBoundingRect(),h=this._showController=f[i]>n[i],d=[-f.x,-f.y];e||(d[r]=l[s]);var g=[0,0],v=[-p.x,-p.y],y=F(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(h){var m=t.get("pageButtonPosition",!0);"end"===m?v[r]+=n[i]-p[i]:g[r]+=p[i]+y}v[1-r]+=f[o]/2-p[o]/2,l.setPosition(d),u.setPosition(g),c.setPosition(v);var _={x:0,y:0};if(_[i]=h?n[i]:f[i],_[o]=Math.max(f[o],p[o]),_[a]=Math.min(0,p[a]+v[1-r]),u.__rectSize=n[i],h){var x={x:0,y:0};x[i]=Math.max(n[i]-p[i]-y,0),x[o]=_[o],u.setClipPath(new YS({shape:x})),u.__rectSize=x[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(t);return null!=b.pageIndex&&pa(l,{x:b.contentPosition[0],y:b.contentPosition[1]},h?t:null),this._updatePageInfoView(t,b),_},n.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},n.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;m(["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",I(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},n.prototype._getPageInfo=function(t){function e(t){if(t){var e=t.getBoundingRect(),n=e[l]+t[l];return{s:n,e:n+e[s],i:t.__legendDataIndex}}}function n(t,e){return t.e>=e&&t.s<=e+o}var r=t.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=aE[a],l=sE[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],p=c.length,h=p?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var g=e(f);d.contentPosition[a]=-g.s;for(var v=u+1,y=g,m=g,_=null;p>=v;++v)_=e(c[v]),(!_&&m.e>y.s+o||_&&!n(_,y.s))&&(y=m.i>y.i?m:_,y&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(v=u-1,y=g,m=g,_=null;v>=-1;--v)_=e(c[v]),_&&n(m,_.s)||!(y.ia)return!0;if(o){var s=Fg(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var n=e.pointer;if(n){var r=uE(t).pointerEl=new IM[n.type](cE(e.pointer));t.add(r)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=uE(t).labelEl=new ZS(cE(e.label));t.add(i),uv(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=uE(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=uE(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),uv(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Na(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ex(t.event)},onmousedown:fE(this._onHandleDragMove,this,0,0),drift:fE(this._onHandleDragMove,this),ondragend:fE(this._onHandleDragEnd,this)}),r.add(i)),fv(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");T(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Qu(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){sv(this._axisPointerModel,!e&&this._moveAnimation,this._handle,cv(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(cv(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(cv(r)),uE(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Xu(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}(),hE=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=xv(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=pv(r),f=dE[s](o,u,l);f.style=c,t.graphicKey=f.type,t.pointer=f}var p=vg(a.model,n);yv(e,t,p,n,r,i)},n.prototype.getHandleTransform=function(t,e,n){var r=vg(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=vv(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n){var r=n.axis,i=r.grid,o=r.getGlobalExtent(!0),a=xv(i,r).getOtherAxis(r).getGlobalExtent(),s="x"===r.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,c=[u,u];c[s]=l[s];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:c,tooltipOption:f[s]}},n}(pE),dE={line:function(t,e,n){var r=mv([e,n[0]],[e,n[1]],bv(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:_v([e-r/2,n[0]],[r,i],bv(t))}}},gE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="axisPointer",n.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}},n}(mT),vE=Rr(),yE=m,mE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";wv("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},n.prototype.remove=function(t,e){Iv("axisPointer",e)},n.prototype.dispose=function(t,e){Iv("axisPointer",e)},n.type="axisPointer",n}(RC),_E=Rr(),xE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="tooltip",n.dependencies=["axisPointer"],n.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}},n}(mT),bE=Uv(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),wE=Uv(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),SE=Wv(wE,"transition"),AE=Wv(bE,"transform"),ME="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(H_.transform3dSupported?"will-change:transform;":""),TE=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,H_.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Kv(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();Et(n,t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=$v(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=ME+Zv(t,!this._firstShow,this._longHide)+Xv(i[0],i[1],!0)+"border-color:"+Vs(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(I(i)&&"item"===n.get("trigger")&&!Hv(n)&&(a=Yv(n,r,i)),I(t))o.innerHTML=t+a;else if(t){o.innerHTML="",T(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},n.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},n.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!H_.node&&n.getDom()){var i=ry(r,n);this._ticket="";var o=r.dataByCoordSys,a=ly(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=IE;l.x=r.x,l.y=r.y,l.update(),eA(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=kv(r,e),c=u.point[0],f=u.point[1];null!=c&&null!=f&&this._tryShow({offsetX:c,offsetY:f,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},n.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(ry(r,n))},n.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),u=ny([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},n.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a;this._lastDataByCoordSys=null,dc(n,(function(t){return null!=eA(t).dataIndex?(o=t,!0):null!=eA(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},n.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=cx(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},n.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=ny([e.tooltipOption],r),a=this._renderMode,s=[],l=vu("section",{blocks:[],noHeader:!0}),u=[],c=new DC;m(t,(function(t){m(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=gv(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),f=vu("section",{header:o,noHeader:!$(o),sortBlocks:!0,blocks:[]});l.blocks.push(f),m(t.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,g=h.getDataParams(d);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Hp(e.axis,{value:i}),g.axisValueLabel=o,g.marker=c.makeTooltipMarker("item",Vs(g.color),a);var v=ql(h.formatTooltip(d,!0,null)),y=v.frag;if(y){var m=ny([h],r).get("valueFormatter");f.blocks.push(m?p({valueFormatter:m},y):y)}v.text&&u.push(v.text),s.push(g)}}))}}))})),l.blocks.reverse(),u.reverse();var f=e.position,h=o.get("order"),d=wu(l,c,a,h,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var g="richText"===a?"\n\n":"
",v=u.join(g);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,f,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+"",i[0],i[1],f,null,c)}))},n.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=eA(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),f=this._renderMode,h=t.positionDefault,d=ny([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),g=d.get("trigger");if(null==g||"item"===g){var v=s.getDataParams(l,u),y=new DC;v.marker=y.makeTooltipMarker("item",Vs(v.color),f);var m=ql(s.formatTooltip(l,!1,u)),_=d.get("order"),x=d.get("valueFormatter"),b=m.frag,w=b?wu(x?p({valueFormatter:x},b):b,y,f,_,r.get("useUTC"),d.get("textStyle")):m.text,S="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,w,v,S,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},n.prototype._showComponentItemTooltip=function(t,e,n){var r=eA(e),i=r.tooltipConfig,o=i.option||{};if(I(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var c=t.positionDefault,f=ny(s,this._tooltipModel,c?{position:c}:null),p=f.get("content"),h=Math.random()+"",d=new DC;this._showOrMove(f,(function(){var n=u(f.get("formatterParams")||{});this._showTooltipContent(f,p,n,h,t.offsetX,t.offsetY,t.position,e,d)})),n({type:"showTip",from:this.uid})},n.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var f=e,p=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),h=p.color;if(c)if(I(c)){var d=t.ecModel.get("useUTC"),g=T(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;f=c,v&&(f=gs(g.axisValue,f,d)),f=Ns(f,n,!0)}else if(C(c)){var y=cx((function(e,r){e===this._ticket&&(u.setContent(r,l,t,h,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,f=c(n,r,y)}else f=c;u.setContent(f,l,t,h,a),u.show(t,h),this._updatePosition(t,a,i,o,u,n,s)}},n.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||T(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:T(e)?void 0:{color:r||e.color||e.borderColor}},n.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),f=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),C(e)&&(e=e([n,r],o,i.el,p,{viewSize:[s,l],contentSize:u.slice()})),T(e))n=Gn(e[0],s),r=Gn(e[1],l);else if(P(e)){var h=e;h.width=u[0],h.height=u[1];var d=Us(h,{width:s,height:l});n=d.x,r=d.y,c=null,f=null}else if(I(e)&&a){var g=ay(e,p,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=iy(n,r,i,s,l,c?null:20,f?null:20);n=g[0],r=g[1]}if(c&&(n-=sy(c)?u[0]/2:"right"===c?u[0]:0),f&&(r-=sy(f)?u[1]/2:"bottom"===f?u[1]:0),Hv(t)){g=oy(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},n.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&m(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&m(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,i&&m(a,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&m(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},n.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},n.prototype.dispose=function(t,e){!H_.node&&e.getDom()&&(Xu(this,"_updatePosition"),this._tooltipContent.dispose(),Iv("itemTooltip",e))},n.type="tooltip",n}(RC);Jp(uy);var OE=Rr(),PE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.createdBySelf=!1,e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},n.prototype.isAnimationEnabled=function(){if(H_.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},n.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},n.prototype._mergeOption=function(t,e,n,r){var i=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=OE(t)[i];return n&&n.data?(o?o._mergeOption(n,e,!0):(r&&fy(n),m(n.data,(function(t){t instanceof Array?(fy(t[0]),fy(t[1])):fy(t)})),o=this.createMarkerModelFromSeries(n,this,e),p(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),void(OE(t)[i]=o)):void(OE(t)[i]=null)}),this)},n.prototype.formatTooltip=function(t){var e=this.getData(),n=this.getRawValue(t),r=e.getName(t);return vu("section",{header:this.name,blocks:[vu("nameValue",{name:r,value:n,noName:!r,noValue:null==n})]})},n.prototype.getData=function(){return this._data},n.prototype.setData=function(t){this._data=t},n.getMarkerModelFromSeries=function(t,e){return OE(t)[e]},n.type="marker",n.dependencies=["series","grid","polar","geo"],n}(mT);v(PE,dC.prototype);var DE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createMarkerModelFromSeries=function(t,e,r){return new n(t,e,r)},n.type="markPoint",n.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},n}(PE),EE={min:M(dy,"min"),max:M(dy,"max"),average:M(dy,"average"),median:M(dy,"median")},LE=Rr(),BE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){this.markerGroupMap=X()},n.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){LE(t).keep=!1})),e.eachSeries((function(t){var i=PE.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!LE(t).keep&&r.group.remove(t.group)}))},n.prototype.markKeep=function(t){LE(t).keep=!0},n.prototype.toggleBlurSeries=function(t,e){var n=this;m(t,(function(t){var r=PE.getMarkerModelFromSeries(t,n.type);if(r){var i=r.getData();i.eachItemGraphicEl((function(t){t&&(e?xo(t):bo(t))}))}}))},n.type="marker",n}(RC),RE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=PE.getMarkerModelFromSeries(t,"markPoint");e&&(by(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},n.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new tD),u=wy(i,t,e);e.setData(u),by(e.getData(),t,r),u.each((function(t){var n=u.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(C(r)||C(i)||C(o)||C(s)){var c=e.getRawValue(t),f=e.getDataParams(t);C(r)&&(r=r(c,f)),C(i)&&(i=i(c,f)),C(o)&&(o=o(c,f)),C(s)&&(s=s(c,f))}var p=n.getModel("itemStyle").getItemStyle(),h=cc(a,"color");p.fill||(p.fill=h),u.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){eA(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},n.type="markPoint",n}(BE);Jp(Sy);var NE=["x","y","radius","angle","single"],jE=["cartesian2d","polar","singleAxis"],zE=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),FE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return e(n,t),n.prototype.init=function(t,e,n){var r=Iy(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},n.prototype.mergeOption=function(t){var e=Iy(t);c(this.option,t,!0),c(this.settledOption,e,!0),this._doInit(e)},n.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;m([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},n.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=X(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},n.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return m(NE,(function(n){var r=this.getReferringComponents(My(n),Ew);if(r.specified){e=!0;var i=new zE;m(r.models,(function(t){i.add(t.componentIndex)})),t.set(n,i)}}),this),e},n.prototype._fillAutoTargetAxisByOrient=function(t,e){function n(e,n){var r=e[0];if(r){var o=new zE;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Dw).models[0];a&&m(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Dw).models[0]&&o.add(t.componentIndex)}))}}}var r=this.ecModel,i=!0;if(i){var o="vertical"===e?"y":"x",a=r.findComponents({mainType:o+"Axis"});n(a,o)}if(i){a=r.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});n(a,"single")}i&&m(NE,(function(e){if(i){var n=r.findComponents({mainType:My(e),filter:function(t){return"category"===t.get("type",!0)}});if(n[0]){var o=new zE;o.add(n[0].componentIndex),t.set(e,o),i=!1}}}),this)},n.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},n.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},n.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");m([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},n.prototype.noTarget=function(){return this._noTarget},n.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(My(e),n))}),this),t},n.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){m(n.indexList,(function(n){t.call(e,r,n)}))}))},n.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);return n?n.__dzAxisProxy:void 0},n.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);return n&&n.indexMap[e]?this.ecModel.getComponent(My(t),e):void 0},n.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;m([["start","startValue"],["end","endValue"]],(function(r){(null!=t[r[0]]||null!=t[r[1]])&&(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},n.prototype.setCalculatedRange=function(t){var e=this.option;m(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},n.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},n.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},n.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;Ry(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);Ry(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},n.prototype._pinchHandler=function(t){if(!Ly(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;Ry(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},n}(Ax),$E=Rr(),GE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return e(n,t),n.prototype.render=function(e,n,r){return t.prototype.render.apply(this,arguments),e.noTarget()?void this._clear():(this.range=e.getPercentRange(),void zy(r,e,{pan:cx(YE.pan,this),zoom:cx(YE.zoom,this),scrollMove:cx(YE.scrollMove,this)}))},n.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},n.prototype._clear=function(){Fy(this.api,this.dataZoomModel),this.range=null},n.type="dataZoom.inside",n}(HE),YE={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=QE[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return ky(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:Yy((function(t,e,n,r,i,o){var a=QE[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:Yy((function(t,e,n,r,i,o){var a=QE[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))},QE={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},XE=m,qE=Qn,ZE=function(){function t(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(Ay(e)){var n=My(this._dimName),r=e.getReferringComponents(n,Dw).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return u(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){function e(t,e,n,r,i){var a=i?"Span":"ValueSpan";ky(0,t,n,"all",c["min"+a],c["max"+a]);for(var s=0;2>s;s++)e[s]=$n(t[s],n,r,!0),i&&(e[s]=o.parse(e[s]))}var n,r=this._dataExtent,i=this.getAxisModel(),o=i.axis.scale,a=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];XE(["start","end"],(function(e,i){var c=t[e],f=t[e+"Value"];"percent"===a[i]?(null==c&&(c=s[i]),f=o.parse($n(c,s,r))):(n=!0,f=null==f?r[i]:o.parse(f),c=$n(f,r,s)),u[i]=null==f||isNaN(f)?r[i]:f,l[i]=null==c||isNaN(c)?s[i]:c})),qE(u),qE(l);var c=this._minMaxSpan;return n?e(u,l,r,s,!1):e(l,u,s,r,!0),{valueWindow:u,percentWindow:l}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Qy(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t){function e(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;"none"!==i&&XE(r,(function(t){var r=t.getData(),a=r.mapDimensionsAll(n);if(a.length){if("weakFilter"===i){var s=r.getStore(),l=_(a,(function(t){return r.getDimensionIndex(t)}),r);r.filterSelf((function(t){for(var e,n,r,i=0;io[1];if(c&&!f&&!p)return!0;c&&(r=!0),f&&(e=!0),p&&(n=!0)}return r&&e&&n}))}else XE(a,(function(n){if("empty"===i)t.setData(r=r.map(n,(function(t){return e(t)?t:NaN})));else{var a={};a[n]=o,r.selectRange(a)}}));XE(a,(function(t){r.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;XE(["min","max"],(function(r){var i=e.get(r+"Span"),o=e.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=$n(n[0]+o,n,[0,100],!0):null!=i&&(o=$n(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var r=Zn(n,[0,500]);r=Math.min(r,20);var i=t.axis.scale.rawExtentInfo;0!==e[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==e[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},t}(),KE={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(My(r),i);e(r,i,o,n)}))}))}e((function(t,e,n){n.__dzAxisProxy=null}));var n=[];e((function(e,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new ZE(e,r,o,t),n.push(i.__dzAxisProxy))}));var r=X();return m(n,(function(t){m(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),r=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},JE=!1,tL=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="dataZoom.slider",n.layoutMode="box",n.defaultOption=as(FE.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"}}}),n}(FE),eL=YS,nL=7,rL=1,iL=30,oL=7,aL="horizontal",sL="vertical",lL=5,uL=["line","bar","candlestick","scatter"],cL={easing:"cubicOut",duration:100,delay:0},fL=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._displayables={},e}return e(n,t),n.prototype.init=function(t,e){this.api=e,this._onBrush=cx(this._onBrush,this),this._onBrushEnd=cx(this._onBrushEnd,this)},n.prototype.render=function(e,n,r,i){return t.prototype.render.apply(this,arguments),Qu(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1===e.get("show")?void this.group.removeAll():e.noTarget()?(this._clear(),void this.group.removeAll()):(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),void this._updateView())},n.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},n.prototype._clear=function(){Xu(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},n.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new mw;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},n.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),r=n?oL:0,i=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===aL?{right:o.width-i.x-i.width,top:o.height-iL-nL-r,width:i.width,height:iL}:{right:nL,top:i.y,width:iL,height:i.height},s=Ys(t.option);m(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var l=Us(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===sL&&this._size.reverse()},n.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==aL||i?n===aL&&i?{scaleY:a?1:-1,scaleX:-1}:n!==sL||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},n.prototype._getViewExtent=function(){return[0,this._size[0]]},n.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,r=t.get("brushSelect");n.add(new eL({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new eL({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:cx(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},n.prototype._renderDataShadow=function(){function t(t){var e=x.getModel(t?"selectedDataBackground":"dataBackground"),n=new mw,r=new JA({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new eM({shape:{points:u},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var n=this._size,r=this._shadowSize||[],i=e.series,o=i.getRawData(),a=i.getShadowDim&&i.getShadowDim(),s=a&&o.getDimensionInfo(a)?i.getShadowDim():e.otherDim;if(null!=s){var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||n[0]!==r[0]||n[1]!==r[1]){var c=o.getDataExtent(s),f=.3*(c[1]-c[0]);c=[c[0]-f,c[1]+f];var p,h=[0,n[1]],d=[0,n[0]],g=[[n[0],0],[0,0]],v=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]);o.each([s],(function(t,e){if(_>0&&e%_)m+=y;else{var n=null==t||isNaN(t)||""===t,r=n?0:$n(t,c,h,!0);n&&!p&&e?(g.push([g[g.length-1][0],0]),v.push([v[v.length-1][0],0])):!n&&p&&(g.push([m,0]),v.push([m,0])),g.push([m,r]),v.push([m,r]),m+=y,p=n}})),l=this._shadowPolygonPts=g,u=this._shadowPolylinePts=v}this._shadowData=o,this._shadowDim=s,this._shadowSize=[n[0],n[1]];for(var x=this.dataZoomModel,b=0;3>b;b++){var w=t(1===b);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}},n.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(i,o){var a=t.getAxisProxy(i,o).getTargetSeriesModels();m(a,(function(t){if(!(n||!0!==e&&d(uL,t.get("type"))<0)){var a,s=r.getComponent(My(i),o).axis,l=Ky(i),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},n.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],r=e.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new eL({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new eL({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:rL,fill:"rgba(0,0,0,0)"}})),m([0,1],(function(e){var o=a.get("handleIcon");!AI[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=vc(o,-1,0,2,2,null,!0);s.attr({cursor:Jy(this._orient),draggable:!0,drift:cx(this._onDragMove,this,e),ondragend:cx(this._onDragEnd,this),onmouseover:cx(this._showDataInfo,this,!0),onmouseout:cx(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Gn(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Bo(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[e]=s);var f=a.getModel("textStyle");t.add(r[e]=new ZS({silent:!0,invisible:!0,style:Xa(f,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:f.getTextColor(),font:f.getFont()}),z2:10}))}),this);var f=c;if(u){var p=Gn(a.get("moveHandleSize"),o[1]),h=e.moveHandle=new YS({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),d=.8*p,g=e.moveHandleIcon=vc(a.get("moveHandleIcon"),-d/2,-d/2,d,d,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,h.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));f=e.moveZone=new YS({invisible:!0,shape:{y:o[1]-v,height:p+v}}),f.on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),i.add(h),i.add(g),i.add(f)}f.attr({draggable:!0,cursor:Jy(this._orient),drift:cx(this._onDragMove,this,"all"),ondragstart:cx(this._showDataInfo,this,!0),ondragend:cx(this._onDragEnd,this),onmouseover:cx(this._showDataInfo,this,!0),onmouseout:cx(this._showDataInfo,this,!1)})},n.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[$n(t[0],[0,100],e,!0),$n(t[1],[0,100],e,!0)]},n.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];ky(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?$n(o.minSpan,a,i,!0):null,null!=o.maxSpan?$n(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=Qn([$n(r[0],i,a,!0),$n(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},n.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,r=Qn(n.slice()),i=this._size;m([0,1],(function(t){var r=e.handles[t],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:i[1]/2-o/2})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},n.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Nx(e,n),this._brushing=!0,this._brushStartTime=+new Date},n.prototype._onBrushEnd=function(){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var e=t.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(e.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=Qn([$n(e.x,r,i,!0),$n(e.x+e.width,r,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)}}}},n.prototype._onBrush=function(t){this._brushing&&(Ex(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},n.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new eL({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},n.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?cL:null,start:e[0],end:e[1]})},n.prototype._findCoordRect=function(){var t,e=Cy(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var r=this.api.getWidth(),i=this.api.getHeight();t={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return t},n.type="dataZoom.slider",n}(HE);Jp(em);var pL=["rect","polygon","keep","clear"],hL=!0,dL=Math.min,gL=Math.max,vL=Math.pow,yL=1e4,mL=6,_L=6,xL="globalPan",bL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},wL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},SL={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},AL=0,ML=function(t){function n(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new mw,n._uid="brushController_"+AL++,m(TL,(function(t,e){this._handlers[e]=cx(t,this)}),n),n}return e(n,t),n.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},n.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||Dy(e,xL,this._uid),m(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=c(u(SL),t,!0)},n.prototype._doDisableBrush=function(){var t=this._zr;Ey(t,xL,this._uid),m(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},n.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};m(t,(function(t){e[t.panelId]=u(t)}))}else this._panels=null;return this},n.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},n.prototype.updateCovers=function(t){function e(t,e){return(null!=t.id?t.id:o+e)+"-"+t.brushType}function n(t,n){return e(t.__brushOption,n)}function r(e,n){var r=t[e];if(null!=n&&a[n]===f)s[e]=a[n];else{var i=s[e]=null!=n?(a[n].__brushOption=r,a[n]):om(l,im(l,r));lm(l,i)}}function i(t){a[t]!==f&&l.group.remove(a[t])}t=_(t,(function(t){return c(u(SL),t,!0)}));var o="\0-brush-index-",a=this._covers,s=this._covers=[],l=this,f=this._creatingCover;return new rO(a,t,n,e).add(r).update(r).remove(i).execute(),this},n.prototype.unmount=function(){return this.enableBrush(!1),pm(this),this._zr.remove(this.group),this},n.prototype.dispose=function(){this.unmount(),this.off()},n}(Ax),TL={mousedown:function(t){if(this._dragging)Bm(this,t);else if(!t.target||!t.target.draggable){Pm(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=cm(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(Om(this,t,r),this._dragging){Pm(t);var i=Em(this,t,r,!1);i&&hm(this,i)}},mouseup:function(t){Bm(this,t)}},CL={lineX:Nm(0),lineY:Nm(1),rect:{createCover:function(t,e){function n(t){return t}return vm({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=gm(t);return bm(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){ym(t,e,n,r)},updateCommon:mm,contain:Dm},polygon:{createCover:function(t,e){var n=new mw;return n.add(new eM({name:"main",style:xm(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new JA({name:"main",draggable:!0,drift:M(Tm,t,e),ondragend:M(hm,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n){e.childAt(0).setShape({points:Im(t,e,n)})},updateCommon:mm,contain:Dm}},IL=m,kL=P,OL=-1,PL=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=u(e);this.type=r,this.mappingMethod=n,this._normalizeData=DL[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(Fm(i),jm(i)):"category"===n?i.categories?zm(i):Fm(i,!0):(W("linear"!==n||i.dataExtent),Fm(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return cx(this._normalizeData,this)},t.listVisualTypes=function(){return S(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){P(t)?m(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=T(e)?[]:P(e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(r,t,e);i?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,r={};return e&&IL(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(T(t))t=t.slice();else{if(!kL(t))return[];var e=[];IL(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){function r(e,n){var r=Math.abs(e-t);o>r&&(o=r,i=n)}for(var i,o=1/0,a=0,s=e.length;s>a;a++){var l=e[a].value;if(null!=l){if(l===t||I(l)&&l===t+"")return a;n&&r(l,a)}}for(a=0,s=e.length;s>a;a++){var u=e[a],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Xm(f[1],t,c[1]))return a}else if(1/0===c[1]){if(Xm(f[0],c[0],t))return a}else if(Xm(f[0],c[0],t)&&Xm(f[1],t,c[1]))return a;n&&r(c[0],a),n&&r(c[1],a)}}return n?1/0===t?e.length-1:t===-1/0?0:i:void 0},t.visualHandlers={color:{applyVisual:Um("color"),getColorMapper:function(){var t=this.option;return cx("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),Wm.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=He(e,t.parsedVisual,r),i?r:Ge(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ge(He(t,this.option.parsedVisual),"rgba")},category:Wm,piecewise:function(t,e){var n=Ym.call(this,e);return null==n&&(n=Ge(He(t,this.option.parsedVisual),"rgba")),n},fixed:$m}},colorHue:Vm((function(t,e){return We(t,e)})),colorSaturation:Vm((function(t,e){return We(t,null,e)})),colorLightness:Vm((function(t,e){return We(t,null,null,e)})),colorAlpha:Vm((function(t,e){return $e(t,e)})),decal:{applyVisual:Um("decal"),_normalizedToVisual:{linear:null,category:Wm,piecewise:null,fixed:null}},opacity:{applyVisual:Um("opacity"),_normalizedToVisual:Gm([0,1])},liftZ:{applyVisual:Um("liftZ"),_normalizedToVisual:{linear:$m,category:$m,piecewise:$m,fixed:$m}},symbol:{applyVisual:function(t,e,n){var r=this.mapValueToVisual(t);n("symbol",r)},_normalizedToVisual:{linear:Hm,category:Wm,piecewise:function(t,e){var n=Ym.call(this,e);return null==n&&(n=Hm.call(this,t)),n},fixed:$m}},symbolSize:{applyVisual:Um("symbolSize"),_normalizedToVisual:Gm([0,1])}},t}(),DL={linear:function(t){return $n(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=PL.findPieceIndex(t,e,!0);return null!=n?$n(n,[0,e.length-1],[0,1],!0):void 0},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?OL:e},fixed:tt},EL=m,LL={lineX:n_(0),lineY:n_(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&eh(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,o=t.y,a=t.width,s=t.height,l=r[0];return!!(eh(r,i,o)||eh(r,i+a,o)||eh(r,i,o+s)||eh(r,i+a,o+s)||Gx.create(t).contain(l[0],l[1])||ja(i,o,i+a,o,r)||ja(i,o,i,o+s,r)||ja(i+a,o,i+a,o+s,r)||ja(i,o+s,i+a,o+s,r))||void 0}}},BL={axisPointer:1,tooltip:1,brush:1},RL=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],NL=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=c_(e,t);m(jL,(function(t,e){(!n||!n.include||d(n.include,e)>=0)&&t(i,r._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=VL[t.brushType](0,n,e);t.__rangeOffset={offset:HL[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){m(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&m(r.coordSyses,(function(r){var i=VL[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){m(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var r=VL[t.brushType](0,n.coordSys,t.coordRange),i=t.__rangeOffset;t.range=i?HL[t.brushType](r.values,i.offset,h_(r.xyMinMax,i.xyMinMax)):r.values}}),this)},t.prototype.makePanelOpts=function(t,e){return _(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:o_(r),isTargetByCursor:s_(r,t,n.coordSysModel),getLinearBrushOtherExtent:a_(r)}}))},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&d(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=c_(e,t),i=0;i=0||d(r,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:FL.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){m(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:FL.geo})}))}},zL=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],FL={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(ka(t)),e}},VL={lineX:M(f_,0),lineY:M(f_,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[u_([i[0],o[0]]),u_([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=_(n,(function(n){var o=t?e.pointToData(n,r):e.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}));return{values:o,xyMinMax:i}}},HL={lineX:M(p_,0),lineY:M(p_,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return _(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}},UL=["inBrush","outOfBrush"],WL="__ecBrushSelect",$L="__ecInBrushSelectEvent",GL={rect:function(t){return b_(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;i>r;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&b_(e)}},YL=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new ML(e.getZr())).on("brush",cx(this._onBrush,this)).mount()},n.prototype.render=function(t,e,n,r){this.model=t,this._updateController(t,e,n,r)},n.prototype.updateTransform=function(t,e,n,r){g_(e),this._updateController(t,e,n,r)},n.prototype.updateVisual=function(t,e,n,r){this.updateTransform(t,e,n,r)},n.prototype.updateView=function(t,e,n,r){this._updateController(t,e,n,r)},n.prototype._updateController=function(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},n.prototype.dispose=function(){this._brushController.dispose()},n.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:u(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:u(n),$from:e})},n.type="brush",n}(RC),QL="#ddd",XL=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.areas=[],e.brushOption={},e}return e(n,t),n.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Km(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:QL},r.hasOwnProperty("liftZ")||(r.liftZ=5)},n.prototype.setAreas=function(t){t&&(this.areas=_(t,(function(t){return w_(this.option,t)}),this))},n.prototype.setBrushOption=function(t){this.brushOption=w_(this.option,t),this.brushType=this.brushOption.brushType},n.type="brush",n.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],n.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},n}(mT),qL=function(){function t(){}return t}(),ZL=["rect","polygon","lineX","lineY","keep","clear"];!function(t){function n(){return null!==t&&t.apply(this,arguments)||this}e(n,t),n.prototype.render=function(t,e){var n,r,i;e.eachComponent({mainType:"brush"},(function(t){n=t.brushType,r=t.brushOption.brushMode||"single",i=i||!!t.areas.length})),this._brushType=n,this._brushMode=r,m(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?i:e===n)?"emphasis":"normal")}))},n.prototype.updateView=function(t,e,n){this.render(t,e,n)},n.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return m(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},n.prototype.onclick=function(t,e,n){var r=this._brushType,i=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},n.getDefaultOption=function(t){var e={show:!0,type:ZL.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e}}(qL),Jp(S_);var KL={get:function(t,e,n){var r=u((JL[t]||{})[e]);return n&&T(r)?r[r.length-1]:r}},JL={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]}},tB=PL.mapVisual,eB=PL.eachVisual,nB=T,rB=m,iB=Qn,oB=$n,aB=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Km(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},n.prototype.resetVisual=function(t){var e=this.stateList;t=cx(t,this),this.controllerVisuals=Zm(this.option.controller,e,t),this.targetVisuals=Zm(this.option.target,e,t)},n.prototype.getItemSymbol=function(){return null},n.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=vr(t),e},n.prototype.eachTargetSeries=function(t,e){m(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},n.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},n.prototype.formatValueText=function(t,e,n){function r(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(a,20))}var i,o=this.option,a=o.precision,s=this.dataBound,l=o.formatter;n=n||["<",">"],T(t)&&(t=t.slice(),i=!0);var u=e?t:i?[r(t[0]),r(t[1])]:r(t);return I(l)?l.replace("{value}",i?u[0]:u).replace("{value2}",i?u[1]:u):C(l)?i?l(t[0],t[1]):l(t):i?t[0]===s[0]?n[0]+" "+u[1]:t[1]===s[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u},n.prototype.resetExtent=function(){var t=this.option,e=iB([t.min,t.max]);this._dataExtent=e},n.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},n.prototype.getExtent=function(){return this._dataExtent.slice()},n.prototype.completeVisualOption=function(){function t(t){nB(i.color)&&!t.inRange&&(t.inRange={color:i.color.slice().reverse()}),t.inRange=t.inRange||{color:r.get("gradientColor")}}function e(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},rB(r,(function(t,e){if(PL.isValidType(e)){var n=KL.get(e,"inactive",l);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function n(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),o=i||"roundRect";rB(this.stateList,(function(i){var a=this.itemSize,s=t[i];s||(s=t[i]={color:l?r:[r]}),null==s.symbol&&(s.symbol=e&&u(e)||(l?o:[o])),null==s.symbolSize&&(s.symbolSize=n&&u(n)||(l?a[0]:[a[0],a[0]])),s.symbol=tB(s.symbol,(function(t){return"none"===t?o:t}));var c=s.symbolSize;if(null!=c){var f=-1/0;eB(c,(function(t){t>f&&(f=t)})),s.symbolSize=tB(c,(function(t){return oB(t,[0,f],[0,a[0]],!0)}))}}),this)}var r=this.ecModel,i=this.option,o={inRange:i.inRange,outOfRange:i.outOfRange},a=i.target||(i.target={}),s=i.controller||(i.controller={});c(a,o),c(s,o);var l=this.isCategory();t.call(this,a),t.call(this,s),e.call(this,a,"inRange","outOfRange"),n.call(this,s)},n.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},n.prototype.isCategory=function(){return!!this.option.categories},n.prototype.setSelected=function(){},n.prototype.getSelected=function(){return null},n.prototype.getValueState=function(){return null},n.prototype.getVisualMeta=function(){return null},n.type="visualMap",n.dependencies=["series"],n.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"}},n}(mT),sB=[20,140],lB=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},n.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=sB[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=sB[1])},n.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):T(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},n.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),m(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},n.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},n.prototype.getSelected=function(){var t=this.getExtent(),e=Qn((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},n.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},n.prototype.getVisualMeta=function(t){function e(e,n){i.push({value:e,color:t(e,n)})}for(var n=A_(this,"outOfRange",this.getExtent()),r=A_(this,"inRange",this.option.range.slice()),i=[],o=0,a=0,s=r.length,l=n.length;l>a&&(!r.length||n[a]<=r[0]);a++)n[a]o;o++,u=0)u&&i.length&&e(r[o],"outOfRange"),e(r[o],"inRange");for(u=1;l>a;a++)(!r.length||r[r.length-1]o;o++){var a=t[0]+i*o;if(a>t[1])break;r.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return r.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),r},n.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},n.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new mw("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},n.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();pB([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=fB(t[l],[0,a[1]],s,!0),f=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=f/a[0],u.x=a[0]-f/2;var p=Oa(n.handleLabelPoints[l],ka(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},n.prototype._showIndicator=function(t,e,n){var r=this.visualMapModel,i=r.getExtent(),o=r.itemSize,a=[0,o[1]],s=this._shapes,l=s.indicator;if(l){l.attr("invisible",!1);var u={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",u),f=this.getControllerVisual(t,"symbolSize"),p=fB(t,i,a,!0),h=o[0]-f/2,d={x:l.x,y:l.y};l.y=p,l.x=h;var g=Oa(s.indicatorLabelPoint,ka(l,this.group)),v=s.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",s.mainGroup),m=this._orient,_="horizontal"===m;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:_?y:"middle",align:_?"center":y});var x={x:h,y:p,style:{fill:c}},b={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};l.x=d.x,l.y=d.y,l.animateTo(x,w),v.animateTo(b,w)}else l.attr(x),v.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var A=0;Ai[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):1/0===u[1]?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,f=[];(e||k_(n))&&(f=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=Lr(c,f);this._dispatchHighDown("downplay",T_(p[0],n)),this._dispatchHighDown("highlight",T_(p[1],n))}},n.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(dc(t.target,(function(t){var n=eA(t);return null!=n.dataIndex?(e=n,!0):void 0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(e.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},n.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n=0&&(i.dimension=o,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}],bB=m,wB=!1,SB=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._pieceList=[],e}return e(n,t),n.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],AB[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=u(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=_(this._pieceList,(function(t){return t=u(t),"inRange"!==e&&(t.visual=null),t})))}))},n.prototype.completeVisualOption=function(){function e(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}var n=this.option,r={},i=PL.listVisualTypes(),o=this.isCategory();m(n.pieces,(function(t){m(i,(function(e){t.hasOwnProperty(e)&&(r[e]=1)}))})),m(r,(function(t,r){var i=!1;m(this.stateList,(function(t){i=i||e(n,t,r)||e(n.target,t,r)}),this),!i&&m(this.stateList,(function(t){(n[t]||(n[t]={}))[r]=KL.get(r,"inRange"===t?"active":"inactive",o)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},n.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,m(r,(function(t){var e=this.getSelectedMapKey(t);i.hasOwnProperty(e)||(i[e]=!0)}),this),"single"===n.selectedMode){var o=!1;m(r,(function(t){var e=this.getSelectedMapKey(t);i[e]&&(o?i[e]=!1:o=!0)}),this)}},n.prototype.getItemSymbol=function(){return this.get("itemSymbol")},n.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},n.prototype.getPieceList=function(){return this._pieceList},n.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},n.prototype.setSelected=function(t){this.option.selected=u(t)},n.prototype.getValueState=function(t){var e=PL.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},n.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(e,r){var o=PL.findPieceIndex(e,n);o===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),this),e},n.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&1/0===n[1]?0:(n[0]+n[1])/2}return e},n.prototype.getVisualMeta=function(t){function e(e,o){var a=i.getRepresentValue({interval:e});o||(o=i.getValueState(a));var s=t(a,o);e[0]===-1/0?r[0]=s:1/0===e[1]?r[1]=s:n.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var n=[],r=["",""],i=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),a=o[o.length-1].interval[1],1/0!==a&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return m(o,(function(t){var n=t.interval;n&&(n[0]>s&&e([s,n[0]],"outOfRange"),e(n.slice()),s=n[1])}),this),{stops:n,outerColors:r}}},n.type="visualMap.piecewise",n.defaultOption=as(aB.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}),n}(aB),AB={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&5>n;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];i>a;s+=o,a++){var l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),lr(t),m(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;m(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),R_(e,t)},pieces:function(t){var e=this.option;m(e.pieces,(function(e,n){P(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var i=r.value=e.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;2>c;c++){for(var f=[["gte","gt","min"],["lte","lt","max"]][c],p=0;3>p&&null==o[c];p++)o[c]=e[f[p]],a[c]=s[p],u[c]=2===p;null==o[c]&&(o[c]=l[c])}u[0]&&1/0===o[1]&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=PL.retrieveVisuals(e),t.push(r)}),this),R_(e,t),lr(t),m(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}},MB=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=z(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),m(l.viewPieceList,(function(r){var l=r.piece,u=new mw;u.onclick=cx(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var f=e.getRepresentValue(l);if(this._createItemSymbol(u,f,[0,0,s[0],s[1]]),c){var p=this.visualMapModel.getValueState(f);u.add(new ZS({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),vT(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},n.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:T_(r.findTargetDataIndices(e),r)})}},n.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return M_(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},n.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new mw,a=this.visualMapModel.textStyleModel;o.add(new ZS({style:Xa(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},n.prototype._getViewData=function(){var t=this.visualMapModel,e=_(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},n.prototype._createItemSymbol=function(t,e,n){t.add(vc(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},n.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=n.selectedMode;if(r){var i=u(n.selected),o=e.getSelectedMapKey(t);"single"===r||!0===r?(i[o]=!0,m(i,(function(t,e){i[e]=e===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},n.type="visualMap.piecewise",n}(uB);Jp(j_),t.version=jI,t.dependencies=zI,t.PRIORITY=nk,t.init=lf,t.connect=uf,t.disConnect=cf,t.disconnect=Gk,t.dispose=ff,t.getInstanceByDom=pf,t.getInstanceById=hf,t.registerTheme=df,t.registerPreprocessor=gf,t.registerProcessor=vf,t.registerPostInit=yf,t.registerPostUpdate=mf,t.registerUpdateLifecycle=_f,t.registerAction=xf,t.registerCoordinateSystem=bf,t.getCoordinateSystemDimensions=wf,t.registerLayout=Sf,t.registerVisual=Af,t.registerLoading=Tf,t.setCanvasCreator=Cf,t.registerMap=If,t.getMap=kf,t.registerTransform=Qk,t.dataTool=nO,t.registerLocale=ss,t.zrender=Sw,t.matrix=Rx,t.vector=bx,t.zrUtil=vx,t.color=Ib,t.helper=$O,t.number=tP,t.time=eP,t.graphic=nP,t.format=rP,t.util=iP,t.List=vO,t.ComponentModel=mT,t.ComponentView=RC,t.SeriesModel=BC,t.ChartView=zC,t.extendComponentModel=Mh,t.extendComponentView=Th,t.extendSeriesModel=Ch,t.extendChartView=Ih,t.throttle=Yu,t.use=Jp,t.setPlatformAPI=o,t.parseGeoJSON=lh,t.parseGeoJson=lh,t.env=H_,t.Model=WM,t.Axis=sP,t.innerDrawElementOnCanvas=Gc}))}).call(this,n(1)["default"],n(50).Buffer)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{value:{type:[String,Number],default:t.$u.props.input.value},type:{type:String,default:t.$u.props.input.type},fixed:{type:Boolean,default:t.$u.props.input.fixed},disabled:{type:Boolean,default:t.$u.props.input.disabled},disabledColor:{type:String,default:t.$u.props.input.disabledColor},clearable:{type:Boolean,default:t.$u.props.input.clearable},password:{type:Boolean,default:t.$u.props.input.password},maxlength:{type:[String,Number],default:t.$u.props.input.maxlength},placeholder:{type:String,default:t.$u.props.input.placeholder},placeholderClass:{type:String,default:t.$u.props.input.placeholderClass},placeholderStyle:{type:[String,Object],default:t.$u.props.input.placeholderStyle},showWordLimit:{type:Boolean,default:t.$u.props.input.showWordLimit},confirmType:{type:String,default:t.$u.props.input.confirmType},confirmHold:{type:Boolean,default:t.$u.props.input.confirmHold},holdKeyboard:{type:Boolean,default:t.$u.props.input.holdKeyboard},focus:{type:Boolean,default:t.$u.props.input.focus},autoBlur:{type:Boolean,default:t.$u.props.input.autoBlur},disableDefaultPadding:{type:Boolean,default:t.$u.props.input.disableDefaultPadding},cursor:{type:[String,Number],default:t.$u.props.input.cursor},cursorSpacing:{type:[String,Number],default:t.$u.props.input.cursorSpacing},selectionStart:{type:[String,Number],default:t.$u.props.input.selectionStart},selectionEnd:{type:[String,Number],default:t.$u.props.input.selectionEnd},adjustPosition:{type:Boolean,default:t.$u.props.input.adjustPosition},inputAlign:{type:String,default:t.$u.props.input.inputAlign},fontSize:{type:[String,Number],default:t.$u.props.input.fontSize},color:{type:String,default:t.$u.props.input.color},prefixIcon:{type:String,default:t.$u.props.input.prefixIcon},prefixIconStyle:{type:[String,Object],default:t.$u.props.input.prefixIconStyle},suffixIcon:{type:String,default:t.$u.props.input.suffixIcon},suffixIconStyle:{type:[String,Object],default:t.$u.props.input.suffixIconStyle},border:{type:String,default:t.$u.props.input.border},readonly:{type:Boolean,default:t.$u.props.input.readonly},shape:{type:String,default:t.$u.props.input.shape},formatter:{type:[Function,null],default:t.$u.props.input.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}};e.default=n}).call(this,n(2)["default"])},,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={"uicon-level":"","uicon-column-line":"","uicon-checkbox-mark":"","uicon-folder":"","uicon-movie":"","uicon-star-fill":"","uicon-star":"","uicon-phone-fill":"","uicon-phone":"","uicon-apple-fill":"","uicon-chrome-circle-fill":"","uicon-backspace":"","uicon-attach":"","uicon-cut":"","uicon-empty-car":"","uicon-empty-coupon":"","uicon-empty-address":"","uicon-empty-favor":"","uicon-empty-permission":"","uicon-empty-news":"","uicon-empty-search":"","uicon-github-circle-fill":"","uicon-rmb":"","uicon-person-delete-fill":"","uicon-reload":"","uicon-order":"","uicon-server-man":"","uicon-search":"","uicon-fingerprint":"","uicon-more-dot-fill":"","uicon-scan":"","uicon-share-square":"","uicon-map":"","uicon-map-fill":"","uicon-tags":"","uicon-tags-fill":"","uicon-bookmark-fill":"","uicon-bookmark":"","uicon-eye":"","uicon-eye-fill":"","uicon-mic":"","uicon-mic-off":"","uicon-calendar":"","uicon-calendar-fill":"","uicon-trash":"","uicon-trash-fill":"","uicon-play-left":"","uicon-play-right":"","uicon-minus":"","uicon-plus":"","uicon-info":"","uicon-info-circle":"","uicon-info-circle-fill":"","uicon-question":"","uicon-error":"","uicon-close":"","uicon-checkmark":"","uicon-android-circle-fill":"","uicon-android-fill":"","uicon-ie":"","uicon-IE-circle-fill":"","uicon-google":"","uicon-google-circle-fill":"","uicon-setting-fill":"","uicon-setting":"","uicon-minus-square-fill":"","uicon-plus-square-fill":"","uicon-heart":"","uicon-heart-fill":"","uicon-camera":"","uicon-camera-fill":"","uicon-more-circle":"","uicon-more-circle-fill":"","uicon-chat":"","uicon-chat-fill":"","uicon-bag-fill":"","uicon-bag":"","uicon-error-circle-fill":"","uicon-error-circle":"","uicon-close-circle":"","uicon-close-circle-fill":"","uicon-checkmark-circle":"","uicon-checkmark-circle-fill":"","uicon-question-circle-fill":"","uicon-question-circle":"","uicon-share":"","uicon-share-fill":"","uicon-shopping-cart":"","uicon-shopping-cart-fill":"","uicon-bell":"","uicon-bell-fill":"","uicon-list":"","uicon-list-dot":"","uicon-zhihu":"","uicon-zhihu-circle-fill":"","uicon-zhifubao":"","uicon-zhifubao-circle-fill":"","uicon-weixin-circle-fill":"","uicon-weixin-fill":"","uicon-twitter-circle-fill":"","uicon-twitter":"","uicon-taobao-circle-fill":"","uicon-taobao":"","uicon-weibo-circle-fill":"","uicon-weibo":"","uicon-qq-fill":"","uicon-qq-circle-fill":"","uicon-moments-circel-fill":"","uicon-moments":"","uicon-qzone":"","uicon-qzone-circle-fill":"","uicon-baidu-circle-fill":"","uicon-baidu":"","uicon-facebook-circle-fill":"","uicon-facebook":"","uicon-car":"","uicon-car-fill":"","uicon-warning-fill":"","uicon-warning":"","uicon-clock-fill":"","uicon-clock":"","uicon-edit-pen":"","uicon-edit-pen-fill":"","uicon-email":"","uicon-email-fill":"","uicon-minus-circle":"","uicon-minus-circle-fill":"","uicon-plus-circle":"","uicon-plus-circle-fill":"","uicon-file-text":"","uicon-file-text-fill":"","uicon-pushpin":"","uicon-pushpin-fill":"","uicon-grid":"","uicon-grid-fill":"","uicon-play-circle":"","uicon-play-circle-fill":"","uicon-pause-circle-fill":"","uicon-pause":"","uicon-pause-circle":"","uicon-eye-off":"","uicon-eye-off-outline":"","uicon-gift-fill":"","uicon-gift":"","uicon-rmb-circle-fill":"","uicon-rmb-circle":"","uicon-kefu-ermai":"","uicon-server-fill":"","uicon-coupon-fill":"","uicon-coupon":"","uicon-integral":"","uicon-integral-fill":"","uicon-home-fill":"","uicon-home":"","uicon-hourglass-half-fill":"","uicon-hourglass":"","uicon-account":"","uicon-plus-people-fill":"","uicon-minus-people-fill":"","uicon-account-fill":"","uicon-thumb-down-fill":"","uicon-thumb-down":"","uicon-thumb-up":"","uicon-thumb-up-fill":"","uicon-lock-fill":"","uicon-lock-open":"","uicon-lock-opened-fill":"","uicon-lock":"","uicon-red-packet-fill":"","uicon-photo-fill":"","uicon-photo":"","uicon-volume-off-fill":"","uicon-volume-off":"","uicon-volume-fill":"","uicon-volume":"","uicon-red-packet":"","uicon-download":"","uicon-arrow-up-fill":"","uicon-arrow-down-fill":"","uicon-play-left-fill":"","uicon-play-right-fill":"","uicon-rewind-left-fill":"","uicon-rewind-right-fill":"","uicon-arrow-downward":"","uicon-arrow-leftward":"","uicon-arrow-rightward":"","uicon-arrow-upward":"","uicon-arrow-down":"","uicon-arrow-right":"","uicon-arrow-left":"","uicon-arrow-up":"","uicon-skip-back-left":"","uicon-skip-forward-right":"","uicon-rewind-right":"","uicon-rewind-left":"","uicon-arrow-right-double":"","uicon-arrow-left-double":"","uicon-wifi-off":"","uicon-wifi":"","uicon-empty-data":"","uicon-empty-history":"","uicon-empty-list":"","uicon-empty-page":"","uicon-empty-order":"","uicon-man":"","uicon-woman":"","uicon-man-add":"","uicon-man-add-fill":"","uicon-man-delete":"","uicon-man-delete-fill":"","uicon-zh":"","uicon-en":""};e.default=r},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{name:{type:String,default:t.$u.props.icon.name},color:{type:String,default:t.$u.props.icon.color},size:{type:[String,Number],default:t.$u.props.icon.size},bold:{type:Boolean,default:t.$u.props.icon.bold},index:{type:[String,Number],default:t.$u.props.icon.index},hoverClass:{type:String,default:t.$u.props.icon.hoverClass},customPrefix:{type:String,default:t.$u.props.icon.customPrefix},label:{type:[String,Number],default:t.$u.props.icon.label},labelPos:{type:String,default:t.$u.props.icon.labelPos},labelSize:{type:[String,Number],default:t.$u.props.icon.labelSize},labelColor:{type:String,default:t.$u.props.icon.labelColor},space:{type:[String,Number],default:t.$u.props.icon.space},imgMode:{type:String,default:t.$u.props.icon.imgMode},width:{type:[String,Number],default:t.$u.props.icon.width},height:{type:[String,Number],default:t.$u.props.icon.height},top:{type:[String,Number],default:t.$u.props.icon.top},stop:{type:Boolean,default:t.$u.props.icon.stop}}};e.default=n}).call(this,n(2)["default"])},,,,,,,,function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{show:{type:Boolean,default:t.$u.props.loadingIcon.show},color:{type:String,default:t.$u.props.loadingIcon.color},textColor:{type:String,default:t.$u.props.loadingIcon.textColor},vertical:{type:Boolean,default:t.$u.props.loadingIcon.vertical},mode:{type:String,default:t.$u.props.loadingIcon.mode},size:{type:[String,Number],default:t.$u.props.loadingIcon.size},textSize:{type:[String,Number],default:t.$u.props.loadingIcon.textSize},text:{type:[String,Number],default:t.$u.props.loadingIcon.text},timingFunction:{type:String,default:t.$u.props.loadingIcon.timingFunction},duration:{type:[String,Number],default:t.$u.props.loadingIcon.duration},inactiveColor:{type:String,default:t.$u.props.loadingIcon.inactiveColor}}};e.default=n}).call(this,n(2)["default"])},,,,,,,,function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{show:{type:Boolean,default:t.$u.props.picker.show},showToolbar:{type:Boolean,default:t.$u.props.picker.showToolbar},title:{type:String,default:t.$u.props.picker.title},columns:{type:Array,default:t.$u.props.picker.columns},loading:{type:Boolean,default:t.$u.props.picker.loading},itemHeight:{type:[String,Number],default:t.$u.props.picker.itemHeight},cancelText:{type:String,default:t.$u.props.picker.cancelText},confirmText:{type:String,default:t.$u.props.picker.confirmText},cancelColor:{type:String,default:t.$u.props.picker.cancelColor},confirmColor:{type:String,default:t.$u.props.picker.confirmColor},visibleItemCount:{type:[String,Number],default:t.$u.props.picker.visibleItemCount},keyName:{type:String,default:t.$u.props.picker.keyName},closeOnClickOverlay:{type:Boolean,default:t.$u.props.picker.closeOnClickOverlay},defaultIndex:{type:Array,default:t.$u.props.picker.defaultIndex},immediateChange:{type:Boolean,default:t.$u.props.picker.immediateChange}}};e.default=n}).call(this,n(2)["default"])},,,,,,,,function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{loadingText:{type:[String,Number],default:t.$u.props.loadingPage.loadingText},image:{type:String,default:t.$u.props.loadingPage.image},loadingMode:{type:String,default:t.$u.props.loadingPage.loadingMode},loading:{type:Boolean,default:t.$u.props.loadingPage.loading},bgColor:{type:String,default:t.$u.props.loadingPage.bgColor},color:{type:String,default:t.$u.props.loadingPage.color},fontSize:{type:[String,Number],default:t.$u.props.loadingPage.fontSize},iconSize:{type:[String,Number],default:t.$u.props.loadingPage.fontSize},loadingColor:{type:String,default:t.$u.props.loadingPage.loadingColor}}};e.default=n}).call(this,n(2)["default"])},,,,,,,,function(t,e,n){"use strict";(function(t){var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.Canvas=void 0,e.dispatch=d,e.setCanvasCreator=g;var i=r(n(18)),o=r(n(13)),a=r(n(23)),s=r(n(24)),l={},u=/([\d\.]+)px/,c=function(){function t(){(0,a.default)(this,t),this.__events={}}return(0,s.default)(t,[{key:"on",value:function(t,e){if(t&&e){var n=this.__events[t]||[];n.push(e),this.__events[t]=n}}},{key:"emit",value:function(t,e){var n=this;if(t.constructor===Object&&(e=t,t=e&&e.type),t){var r=this.__events[t];r&&r.length&&r.forEach((function(t){t.call(n,e)}))}}},{key:"off",value:function(t,e){var n=this.__events,r=n[t];if(r&&r.length)if(e)for(var i=0,o=r.length;i3&&void 0!==arguments[3]?arguments[3]:{};(0,a.default)(this,e),l[n.canvasId]={ctx:t},this.canvasId=n.canvasId,this.chart=null,this.isNew=r,this.tagName="canvas",this.canvasNode=i,this.com=n,r||this._initStyle(t),this._initEvent(),this._ee=new c}return(0,s.default)(e,[{key:"getContext",value:function(t){if("2d"===t)return this.ctx}},{key:"setChart",value:function(t){this.chart=t}},{key:"createOffscreenCanvas",value:function(e){if(!this.children){this.com.isOffscreenCanvas=!0,this.com.offscreenWidth=e.width||300,this.com.offscreenHeight=e.height||300;var n=this.com,r=this.com.offscreenCanvasId,i=t.createCanvasContext(r,this.com);this._initStyle(i),this.children=new p(i,n,r)}return this.children}},{key:"appendChild",value:function(t){console.log("child",t)}},{key:"dispatchEvent",value:function(t,e){return"object"==(0,o.default)(t)?this._ee.emit(t.type,t):this._ee.emit(t,e),!0}},{key:"attachEvent",value:function(){}},{key:"detachEvent",value:function(){}},{key:"addEventListener",value:function(t,e){this._ee.on(t,e)}},{key:"removeEventListener",value:function(t,e){this._ee.off(t,e)}},{key:"_initCanvas",value:function(t,e){t.util.getContext=function(){return e},t.util.$override("measureText",(function(t,n){return e.font=n||"12px sans-serif",e.measureText(t,n)}))}},{key:"_initStyle",value:function(t,e){var n=["fillStyle","strokeStyle","fontSize","globalAlpha","opacity","textAlign","textBaseline","shadow","lineWidth","lineCap","lineJoin","lineDash","miterLimit","font"];if(n.forEach((function(e){Object.defineProperty(t,e,{set:function(n){if("font"===e&&u.test(n)){var r=u.exec(n);t.setFontSize(r[1])}else"opacity"!==e?("fillStyle"!==e&&"strokeStyle"!==e||"none"!==n&&null!==n)&&t["set"+e.charAt(0).toUpperCase()+e.slice(1)](n):t.setGlobalAlpha(n)}})})),this.isNew||e||(t.uniDrawImage=t.drawImage,t.drawImage=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&t.charCodeAt(n)<128?e++:e+=2;return e};t.measureText=function(t,e){var n=12;return e&&(n=parseInt(e.match(/([\d\.]+)px/)[1])),n/=2,{width:r(t)*n}}}}},{key:"_initEvent",value:function(t){var e=this;this.event={};var n=[{wxName:"touchStart",ecName:"mousedown"},{wxName:"touchMove",ecName:"mousemove"},{wxName:"touchEnd",ecName:"mouseup"},{wxName:"touchEnd",ecName:"click"}];n.forEach((function(t){e.event[t.wxName]=function(n){var r=n.touches[0];e.chart.getZr().handler.dispatch(t.ecName,{zrX:"tap"===t.wxName?r.clientX:r.x,zrY:"tap"===t.wxName?r.clientY:r.y})}}))}},{key:"width",get:function(){return this.canvasNode.width||0},set:function(t){this.canvasNode.width=t}},{key:"height",get:function(){return this.canvasNode.height||0},set:function(t){this.canvasNode.height=t}},{key:"ctx",get:function(){return l[this.canvasId]["ctx"]||null}},{key:"chart",get:function(){return l[this.canvasId]["chart"]||null},set:function(t){l[this.canvasId]["chart"]=t}}]),e}();function d(t,e){var n=e.x,r=e.y,i=e.wheelDelta;this.dispatch(t,{zrX:n,zrY:r,zrDelta:i,preventDefault:function(){},stopPropagation:function(){}})}function g(t,e){var n=e.canvas,r=e.node;function i(t,e,n){var i=null;return r&&r.createImage?(i=r.createImage(),i.onload=e.bind(i),i.onerror=n.bind(i),i.src=t,i):(i=new f,i.onload=e.bind(i),i.onerror=n.bind(i),i.src=t,i)}t.registerPreprocessor((function(t){t&&t.series&&(t.series.length>0?t.series.forEach((function(t){t.progressive=0})):"object"===(0,o.default)(t.series)&&(t.series.progressive=0))})),t.setPlatformAPI&&t.setPlatformAPI({loadImage:n.setChart?i:null,createCanvas:function(){return n}})}e.Canvas=h}).call(this,n(2)["default"])},function(t,e,n){"use strict";(function(t){function n(t,e){t=t.split("."),e=e.split(".");var n=Math.max(t.length,e.length);while(t.lengtho)return 1;if(i=e?t:"".concat(Array(e+1-r.length).join(n)).concat(t)},g={s:d,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return"".concat((e<=0?"+":"-")+d(r,2,"0"),":").concat(d(i,2,"0"))},m:function t(e,n){if(e.date()