1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| (self["webpackChunkworkorder"]=self["webpackChunkworkorder"]||[]).push([[4998],{31649:function(e,t,n){"use strict";n.d(t,{$E:function(){return v},$d:function(){return s},EL:function(){return d},F1:function(){return R},Ib:function(){return A},NB:function(){return f},OR:function(){return k},OT:function(){return h},Vd:function(){return P},Wn:function(){return a},aM:function(){return B},d1:function(){return l},d9:function(){return V},eo:function(){return L},hk:function(){return I},iP:function(){return C},rP:function(){return O}});var i=n(2262),o=n(66252),r="undefined"!==typeof window;function a(e){return r?requestAnimationFrame(e):-1}function s(e){r&&cancelAnimationFrame(e)}function l(e){a((()=>a(e)))}var u=e=>e===window,c=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),d=e=>{const t=(0,i.SU)(e);if(u(t)){const e=t.innerWidth,n=t.innerHeight;return c(e,n)}return(null==t?void 0:t.getBoundingClientRect)?t.getBoundingClientRect():c(0,0)};function h(e=!1){const t=(0,i.iH)(e),n=(e=!t.value)=>{t.value=e};return[t,n]}function f(e){const t=(0,o.f3)(e,null);if(t){const e=(0,o.FN)(),{link:n,unlink:i,internalChildren:r}=t;n(e),(0,o.Ah)((()=>i(e)));const a=(0,o.Fl)((()=>r.indexOf(e)));return{parent:t,index:a}}return{parent:null,index:(0,i.iH)(-1)}}function p(e){const t=[],n=e=>{Array.isArray(e)&&e.forEach((e=>{var i;(0,o.lA)(e)&&(t.push(e),(null==(i=e.component)?void 0:i.subTree)&&(t.push(e.component.subTree),n(e.component.subTree.children)),e.children&&n(e.children))}))};return n(e),t}function g(e,t,n){const i=p(e.subTree.children);n.sort(((e,t)=>i.indexOf(e.vnode)-i.indexOf(t.vnode)));const o=n.map((e=>e.proxy));t.sort(((e,t)=>{const n=o.indexOf(e),i=o.indexOf(t);return n-i}))}function v(e){const t=(0,i.qj)([]),n=(0,i.qj)([]),r=(0,o.FN)(),a=i=>{const a=e=>{e.proxy&&(n.push(e),t.push(e.proxy),g(r,t,n))},s=e=>{const i=n.indexOf(e);t.splice(i,1),n.splice(i,1)};(0,o.JJ)(e,Object.assign({link:a,unlink:s,children:t,internalChildren:n},i))};return{children:t,linkChildren:a}}var m,y,x=1e3,_=60*x,b=60*_,w=24*b;function S(e){const t=Math.floor(e/w),n=Math.floor(e%w/b),i=Math.floor(e%b/_),o=Math.floor(e%_/x),r=Math.floor(e%x);return{total:e,days:t,hours:n,minutes:i,seconds:o,milliseconds:r}}function M(e,t){return Math.floor(e/1e3)===Math.floor(t/1e3)}function I(e){let t,n,l,u;const c=(0,i.iH)(e.time),d=(0,o.Fl)((()=>S(c.value))),h=()=>{l=!1,s(t)},f=()=>Math.max(n-Date.now(),0),p=t=>{var n,i;c.value=t,null==(n=e.onChange)||n.call(e,d.value),0===t&&(h(),null==(i=e.onFinish)||i.call(e))},g=()=>{t=a((()=>{l&&(p(f()),c.value>0&&g())}))},v=()=>{t=a((()=>{if(l){const e=f();M(e,c.value)&&0!==e||p(e),c.value>0&&v()}}))},m=()=>{r&&(e.millisecond?g():v())},y=()=>{l||(n=Date.now()+c.value,l=!0,m())},x=(t=e.time)=>{h(),c.value=t};return(0,o.Jd)(h),(0,o.dl)((()=>{u&&(l=!0,u=!1,m())})),(0,o.se)((()=>{l&&(h(),u=!0)})),{start:y,pause:h,reset:x,current:d}}function A(e){let t;(0,o.bv)((()=>{e(),(0,o.Y3)((()=>{t=!0}))})),(0,o.dl)((()=>{t&&e()}))}function k(e,t,n={}){if(!r)return;const{target:a=window,passive:s=!1,capture:l=!1}=n;let u;const c=n=>{const o=(0,i.SU)(n);o&&!u&&(o.addEventListener(e,t,{capture:l,passive:s}),u=!0)},d=n=>{const o=(0,i.SU)(n);o&&u&&(o.removeEventListener(e,t,l),u=!1)};(0,o.Ah)((()=>d(a))),(0,o.se)((()=>d(a))),A((()=>c(a))),(0,i.dq)(a)&&(0,o.YP)(a,((e,t)=>{d(t),c(e)}))}function P(e,t,n={}){if(!r)return;const{eventName:o="click"}=n,a=n=>{const o=(0,i.SU)(e);o&&!o.contains(n.target)&&t(n)};k(o,a,{target:document})}function C(){if(!m&&(m=(0,i.iH)(0),y=(0,i.iH)(0),r)){const e=()=>{m.value=window.innerWidth,y.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:m,height:y}}var E,T=/scroll|auto/i,N=r?window:void 0;function D(e){const t=1;return"HTML"!==e.tagName&&"BODY"!==e.tagName&&e.nodeType===t}function O(e,t=N){let n=e;while(n&&n!==t&&D(n)){const{overflowY:e}=window.getComputedStyle(n);if(T.test(e))return n;n=n.parentNode}return t}function L(e,t=N){const n=(0,i.iH)();return(0,o.bv)((()=>{e.value&&(n.value=O(e.value,t))})),n}function V(){if(!E&&(E=(0,i.iH)("visible"),r)){const e=()=>{E.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return E}var R=Symbol("van-field");function B(e){const t=(0,o.f3)(R,null);t&&!t.customValue.value&&(t.customValue.value=e,(0,o.YP)(e,(()=>{t.resetValidation(),t.validateWithTrigger("onChange")})))}},2262:function(e,t,n){"use strict";n.d(t,{Bj:function(){return r},Fl:function(){return Ue},IU:function(){return ke},Jd:function(){return S},PG:function(){return Se},SU:function(){return Be},Um:function(){return _e},WL:function(){return We},X$:function(){return k},X3:function(){return Ae},XI:function(){return Le},Xl:function(){return Pe},dq:function(){return De},iH:function(){return Oe},j:function(){return I},lk:function(){return M},qj:function(){return xe},qq:function(){return x},yT:function(){return Ie}});var i=n(3577);let o;class r{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&o&&(this.parent=o,this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(e){if(this.active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function a(e,t=o){t&&t.active&&t.effects.push(e)}const s=e=>{const t=new Set(e);return t.w=0,t.n=0,t},l=e=>(e.w&p)>0,u=e=>(e.n&p)>0,c=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=p},d=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const o=t[i];l(o)&&!u(o)?o.delete(e):t[n++]=o,o.w&=~p,o.n&=~p}t.length=n}},h=new WeakMap;let f=0,p=1;const g=30;let v;const m=Symbol(""),y=Symbol("");class x{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,a(this,n)}run(){if(!this.active)return this.fn();let e=v,t=b;while(e){if(e===this)return;e=e.parent}try{return this.parent=v,v=this,b=!0,p=1<<++f,f<=g?c(this):_(this),this.fn()}finally{f<=g&&d(this),p=1<<--f,v=this.parent,b=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){v===this?this.deferStop=!0:this.active&&(_(this),this.onStop&&this.onStop(),this.active=!1)}}function _(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let b=!0;const w=[];function S(){w.push(b),b=!1}function M(){const e=w.pop();b=void 0===e||e}function I(e,t,n){if(b&&v){let t=h.get(e);t||h.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=s());const o=void 0;A(i,o)}}function A(e,t){let n=!1;f<=g?u(e)||(e.n|=p,n=!l(e)):n=!e.has(v),n&&(e.add(v),v.deps.push(e))}function k(e,t,n,o,r,a){const l=h.get(e);if(!l)return;let u=[];if("clear"===t)u=[...l.values()];else if("length"===n&&(0,i.kJ)(e))l.forEach(((e,t)=>{("length"===t||t>=o)&&u.push(e)}));else switch(void 0!==n&&u.push(l.get(n)),t){case"add":(0,i.kJ)(e)?(0,i.S0)(n)&&u.push(l.get("length")):(u.push(l.get(m)),(0,i._N)(e)&&u.push(l.get(y)));break;case"delete":(0,i.kJ)(e)||(u.push(l.get(m)),(0,i._N)(e)&&u.push(l.get(y)));break;case"set":(0,i._N)(e)&&u.push(l.get(m));break}if(1===u.length)u[0]&&P(u[0]);else{const e=[];for(const t of u)t&&e.push(...t);P(s(e))}}function P(e,t){for(const n of(0,i.kJ)(e)?e:[...e])(n!==v||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const C=(0,i.fY)("__proto__,__v_isRef,__isVue"),E=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(i.yk)),T=V(),N=V(!1,!0),D=V(!0),O=L();function L(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=ke(this);for(let t=0,o=this.length;t<o;t++)I(n,"get",t+"");const i=n[t](...e);return-1===i||!1===i?n[t](...e.map(ke)):i}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){S();const n=ke(this)[t].apply(this,e);return M(),n}})),e}function V(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?ve:ge:t?pe:fe).get(n))return n;const a=(0,i.kJ)(n);if(!e&&a&&(0,i.RI)(O,o))return Reflect.get(O,o,r);const s=Reflect.get(n,o,r);if((0,i.yk)(o)?E.has(o):C(o))return s;if(e||I(n,"get",o),t)return s;if(De(s)){const e=!a||!(0,i.S0)(o);return e?s.value:s}return(0,i.Kn)(s)?e?be(s):xe(s):s}}const R=z(),B=z(!0);function z(e=!1){return function(t,n,o,r){let a=t[n];if(Me(a)&&De(a)&&!De(o))return!1;if(!e&&!Me(o)&&(Ie(o)||(o=ke(o),a=ke(a)),!(0,i.kJ)(t)&&De(a)&&!De(o)))return a.value=o,!0;const s=(0,i.kJ)(t)&&(0,i.S0)(n)?Number(n)<t.length:(0,i.RI)(t,n),l=Reflect.set(t,n,o,r);return t===ke(r)&&(s?(0,i.aU)(o,a)&&k(t,"set",n,o,a):k(t,"add",n,o)),l}}function W(e,t){const n=(0,i.RI)(e,t),o=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&k(e,"delete",t,void 0,o),r}function F(e,t){const n=Reflect.has(e,t);return(0,i.yk)(t)&&E.has(t)||I(e,"has",t),n}function U(e){return I(e,"iterate",(0,i.kJ)(e)?"length":m),Reflect.ownKeys(e)}const $={get:T,set:R,deleteProperty:W,has:F,ownKeys:U},H={get:D,set(e,t){return!0},deleteProperty(e,t){return!0}},j=(0,i.l7)({},$,{get:N,set:B}),G=e=>e,Y=e=>Reflect.getPrototypeOf(e);function Z(e,t,n=!1,i=!1){e=e["__v_raw"];const o=ke(e),r=ke(t);t!==r&&!n&&I(o,"get",t),!n&&I(o,"get",r);const{has:a}=Y(o),s=i?G:n?Ee:Ce;return a.call(o,t)?s(e.get(t)):a.call(o,r)?s(e.get(r)):void(e!==o&&e.get(t))}function q(e,t=!1){const n=this["__v_raw"],i=ke(n),o=ke(e);return e!==o&&!t&&I(i,"has",e),!t&&I(i,"has",o),e===o?n.has(e):n.has(e)||n.has(o)}function X(e,t=!1){return e=e["__v_raw"],!t&&I(ke(e),"iterate",m),Reflect.get(e,"size",e)}function J(e){e=ke(e);const t=ke(this),n=Y(t),i=n.has.call(t,e);return i||(t.add(e),k(t,"add",e,e)),this}function K(e,t){t=ke(t);const n=ke(this),{has:o,get:r}=Y(n);let a=o.call(n,e);a||(e=ke(e),a=o.call(n,e));const s=r.call(n,e);return n.set(e,t),a?(0,i.aU)(t,s)&&k(n,"set",e,t,s):k(n,"add",e,t),this}function Q(e){const t=ke(this),{has:n,get:i}=Y(t);let o=n.call(t,e);o||(e=ke(e),o=n.call(t,e));const r=i?i.call(t,e):void 0,a=t.delete(e);return o&&k(t,"delete",e,void 0,r),a}function ee(){const e=ke(this),t=0!==e.size,n=void 0,i=e.clear();return t&&k(e,"clear",void 0,void 0,n),i}function te(e,t){return function(n,i){const o=this,r=o["__v_raw"],a=ke(r),s=t?G:e?Ee:Ce;return!e&&I(a,"iterate",m),r.forEach(((e,t)=>n.call(i,s(e),s(t),o)))}}function ne(e,t,n){return function(...o){const r=this["__v_raw"],a=ke(r),s=(0,i._N)(a),l="entries"===e||e===Symbol.iterator&&s,u="keys"===e&&s,c=r[e](...o),d=n?G:t?Ee:Ce;return!t&&I(a,"iterate",u?y:m),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function ie(e){return function(...t){return"delete"!==e&&this}}function oe(){const e={get(e){return Z(this,e)},get size(){return X(this)},has:q,add:J,set:K,delete:Q,clear:ee,forEach:te(!1,!1)},t={get(e){return Z(this,e,!1,!0)},get size(){return X(this)},has:q,add:J,set:K,delete:Q,clear:ee,forEach:te(!1,!0)},n={get(e){return Z(this,e,!0)},get size(){return X(this,!0)},has(e){return q.call(this,e,!0)},add:ie("add"),set:ie("set"),delete:ie("delete"),clear:ie("clear"),forEach:te(!0,!1)},i={get(e){return Z(this,e,!0,!0)},get size(){return X(this,!0)},has(e){return q.call(this,e,!0)},add:ie("add"),set:ie("set"),delete:ie("delete"),clear:ie("clear"),forEach:te(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{e[o]=ne(o,!1,!1),n[o]=ne(o,!0,!1),t[o]=ne(o,!1,!0),i[o]=ne(o,!0,!0)})),[e,n,t,i]}const[re,ae,se,le]=oe();function ue(e,t){const n=t?e?le:se:e?ae:re;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,i.RI)(n,o)&&o in t?n:t,o,r)}const ce={get:ue(!1,!1)},de={get:ue(!1,!0)},he={get:ue(!0,!1)};const fe=new WeakMap,pe=new WeakMap,ge=new WeakMap,ve=new WeakMap;function me(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ye(e){return e["__v_skip"]||!Object.isExtensible(e)?0:me((0,i.W7)(e))}function xe(e){return Me(e)?e:we(e,!1,$,ce,fe)}function _e(e){return we(e,!1,j,de,pe)}function be(e){return we(e,!0,H,he,ge)}function we(e,t,n,o,r){if(!(0,i.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const a=r.get(e);if(a)return a;const s=ye(e);if(0===s)return e;const l=new Proxy(e,2===s?o:n);return r.set(e,l),l}function Se(e){return Me(e)?Se(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Me(e){return!(!e||!e["__v_isReadonly"])}function Ie(e){return!(!e||!e["__v_isShallow"])}function Ae(e){return Se(e)||Me(e)}function ke(e){const t=e&&e["__v_raw"];return t?ke(t):e}function Pe(e){return(0,i.Nj)(e,"__v_skip",!0),e}const Ce=e=>(0,i.Kn)(e)?xe(e):e,Ee=e=>(0,i.Kn)(e)?be(e):e;function Te(e){b&&v&&(e=ke(e),A(e.dep||(e.dep=s())))}function Ne(e,t){e=ke(e),e.dep&&P(e.dep)}function De(e){return!(!e||!0!==e.__v_isRef)}function Oe(e){return Ve(e,!1)}function Le(e){return Ve(e,!0)}function Ve(e,t){return De(e)?e:new Re(e,t)}class Re{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ke(e),this._value=t?e:Ce(e)}get value(){return Te(this),this._value}set value(e){e=this.__v_isShallow?e:ke(e),(0,i.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Ce(e),Ne(this,e))}}function Be(e){return De(e)?e.value:e}const ze={get:(e,t,n)=>Be(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return De(o)&&!De(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function We(e){return Se(e)?e:new Proxy(e,ze)}class Fe{constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new x(e,(()=>{this._dirty||(this._dirty=!0,Ne(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this["__v_isReadonly"]=n}get value(){const e=ke(this);return Te(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ue(e,t,n=!1){let o,r;const a=(0,i.mf)(e);a?(o=e,r=i.dG):(o=e.get,r=e.set);const s=new Fe(o,r,a||!r,n);return s}},66252:function(e,t,n){"use strict";n.d(t,{$d:function(){return a},Ah:function(){return Le},Cn:function(){return F},FN:function(){return On},Fl:function(){return Xn},HY:function(){return jt},JJ:function(){return J},Jd:function(){return Oe},Ko:function(){return Sn},LL:function(){return Ft},Nv:function(){return Mn},Ob:function(){return _e},P$:function(){return ue},Q2:function(){return Ut},Q6:function(){return ge},U2:function(){return de},Uk:function(){return gn},Us:function(){return Mt},WI:function(){return In},Wm:function(){return dn},Xn:function(){return Ne},Y3:function(){return w},Y8:function(){return ae},YP:function(){return te},_:function(){return cn},aZ:function(){return ve},bv:function(){return Te},dD:function(){return W},dG:function(){return bn},dl:function(){return we},f3:function(){return K},h:function(){return Jn},iD:function(){return nn},ic:function(){return De},j4:function(){return on},kq:function(){return mn},lA:function(){return rn},lR:function(){return Vt},m0:function(){return Q},nK:function(){return pe},se:function(){return Se},uE:function(){return vn},up:function(){return zt},w5:function(){return U},wg:function(){return Jt},wy:function(){return vt}});var i=n(2262),o=n(3577);function r(e,t,n,i){let o;try{o=i?e(...i):e()}catch(r){s(r,t,n)}return o}function a(e,t,n,i){if((0,o.mf)(e)){const a=r(e,t,n,i);return a&&(0,o.tI)(a)&&a.catch((e=>{s(e,t,n)})),a}const l=[];for(let o=0;o<e.length;o++)l.push(a(e[o],t,n,i));return l}function s(e,t,n,i=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,a=n;while(i){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,a))return;i=i.parent}const s=t.appContext.config.errorHandler;if(s)return void r(s,null,10,[e,o,a])}l(e,n,o,i)}function l(e,t,n,i=!0){console.error(e)}let u=!1,c=!1;const d=[];let h=0;const f=[];let p=null,g=0;const v=[];let m=null,y=0;const x=Promise.resolve();let _=null,b=null;function w(e){const t=_||x;return e?t.then(this?e.bind(this):e):t}function S(e){let t=h+1,n=d.length;while(t<n){const i=t+n>>>1,o=N(d[i]);o<e?t=i+1:n=i}return t}function M(e){d.length&&d.includes(e,u&&e.allowRecurse?h+1:h)||e===b||(null==e.id?d.push(e):d.splice(S(e.id),0,e),I())}function I(){u||c||(c=!0,_=x.then(D))}function A(e){const t=d.indexOf(e);t>h&&d.splice(t,1)}function k(e,t,n,i){(0,o.kJ)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?i+1:i)||n.push(e),I()}function P(e){k(e,p,f,g)}function C(e){k(e,m,v,y)}function E(e,t=null){if(f.length){for(b=t,p=[...new Set(f)],f.length=0,g=0;g<p.length;g++)p[g]();p=null,g=0,b=null,E(e,t)}}function T(e){if(v.length){const e=[...new Set(v)];if(v.length=0,m)return void m.push(...e);for(m=e,m.sort(((e,t)=>N(e)-N(t))),y=0;y<m.length;y++)m[y]();m=null,y=0}}const N=e=>null==e.id?1/0:e.id;function D(e){c=!1,u=!0,E(e),d.sort(((e,t)=>N(e)-N(t)));o.dG;try{for(h=0;h<d.length;h++){const e=d[h];e&&!1!==e.active&&r(e,null,14)}}finally{h=0,d.length=0,T(e),u=!1,_=null,(d.length||f.length||v.length)&&D(e)}}new Set;new Map;function O(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||o.kT;let r=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in i){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:a}=i[e]||o.kT;a?r=n.map((e=>e.trim())):t&&(r=n.map(o.He))}let u;let c=i[u=(0,o.hR)(t)]||i[u=(0,o.hR)((0,o._A)(t))];!c&&s&&(c=i[u=(0,o.hR)((0,o.rs)(t))]),c&&a(c,e,6,r);const d=i[u+"Once"];if(d){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,a(d,e,6,r)}}function L(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(void 0!==r)return r;const a=e.emits;let s={},l=!1;if(!(0,o.mf)(e)){const i=e=>{const n=L(e,t,!0);n&&(l=!0,(0,o.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return a||l?((0,o.kJ)(a)?a.forEach((e=>s[e]=null)):(0,o.l7)(s,a),i.set(e,s),s):(i.set(e,null),null)}function V(e,t){return!(!e||!(0,o.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,o.RI)(e,(0,o.rs)(t))||(0,o.RI)(e,t))}let R=null,B=null;function z(e){const t=R;return R=e,B=e&&e.type.__scopeId||null,t}function W(e){B=e}function F(){B=null}function U(e,t=R,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&en(-1);const o=z(t),r=e(...n);return z(o),i._d&&en(1),r};return i._n=!0,i._c=!0,i._d=!0,i}function $(e){const{type:t,vnode:n,proxy:i,withProxy:r,props:a,propsOptions:[l],slots:u,attrs:c,emit:d,render:h,renderCache:f,data:p,setupState:g,ctx:v,inheritAttrs:m}=e;let y,x;const _=z(e);try{if(4&n.shapeFlag){const e=r||i;y=yn(h.call(e,e,f,a,g,p,v)),x=c}else{const e=t;0,y=yn(e.length>1?e(a,{attrs:c,slots:u,emit:d}):e(a,null)),x=t.props?c:H(c)}}catch(w){qt.length=0,s(w,e,1),y=dn(Yt)}let b=y;if(x&&!1!==m){const e=Object.keys(x),{shapeFlag:t}=b;e.length&&7&t&&(l&&e.some(o.tR)&&(x=j(x,l)),b=pn(b,x))}return n.dirs&&(b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),y=b,z(_),y}const H=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.F7)(n))&&((t||(t={}))[n]=e[n]);return t},j=(e,t)=>{const n={};for(const i in e)(0,o.tR)(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function G(e,t,n){const{props:i,children:o,component:r}=e,{props:a,children:s,patchFlag:l}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!s||s&&s.$stable)||i!==a&&(i?!a||Y(i,a,u):!!a);if(1024&l)return!0;if(16&l)return i?Y(i,a,u):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==i[n]&&!V(u,n))return!0}}return!1}function Y(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o<i.length;o++){const r=i[o];if(t[r]!==e[r]&&!V(n,r))return!0}return!1}function Z({vnode:e,parent:t},n){while(t&&t.subTree===e)(e=t.vnode).el=n,t=t.parent}const q=e=>e.__isSuspense;function X(e,t){t&&t.pendingBranch?(0,o.kJ)(e)?t.effects.push(...e):t.effects.push(e):C(e)}function J(e,t){if(Dn){let n=Dn.provides;const i=Dn.parent&&Dn.parent.provides;i===n&&(n=Dn.provides=Object.create(i)),n[e]=t}else 0}function K(e,t,n=!1){const i=Dn||R;if(i){const r=null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&(0,o.mf)(t)?t.call(i.proxy):t}else 0}function Q(e,t){return ne(e,null,t)}const ee={};function te(e,t,n){return ne(e,t,n)}function ne(e,t,{immediate:n,deep:s,flush:l,onTrack:u,onTrigger:c}=o.kT){const d=Dn;let h,f,p=!1,g=!1;if((0,i.dq)(e)?(h=()=>e.value,p=(0,i.yT)(e)):(0,i.PG)(e)?(h=()=>e,s=!0):(0,o.kJ)(e)?(g=!0,p=e.some(i.PG),h=()=>e.map((e=>(0,i.dq)(e)?e.value:(0,i.PG)(e)?re(e):(0,o.mf)(e)?r(e,d,2):void 0))):h=(0,o.mf)(e)?t?()=>r(e,d,2):()=>{if(!d||!d.isUnmounted)return f&&f(),a(e,d,3,[v])}:o.dG,t&&s){const e=h;h=()=>re(e())}let v=e=>{f=_.onStop=()=>{r(e,d,4)}};if(Wn)return v=o.dG,t?n&&a(t,d,3,[h(),g?[]:void 0,v]):h(),o.dG;let m=g?[]:ee;const y=()=>{if(_.active)if(t){const e=_.run();(s||p||(g?e.some(((e,t)=>(0,o.aU)(e,m[t]))):(0,o.aU)(e,m)))&&(f&&f(),a(t,d,3,[e,m===ee?void 0:m,v]),m=e)}else _.run()};let x;y.allowRecurse=!!t,x="sync"===l?y:"post"===l?()=>St(y,d&&d.suspense):()=>{!d||d.isMounted?P(y):y()};const _=new i.qq(h,x);return t?n?y():m=_.run():"post"===l?St(_.run.bind(_),d&&d.suspense):_.run(),()=>{_.stop(),d&&d.scope&&(0,o.Od)(d.scope.effects,_)}}function ie(e,t,n){const i=this.proxy,r=(0,o.HD)(e)?e.includes(".")?oe(i,e):()=>i[e]:e.bind(i,i);let a;(0,o.mf)(t)?a=t:(a=t.handler,n=t);const s=Dn;Ln(this);const l=ne(r,a.bind(i),n);return s?Ln(s):Vn(),l}function oe(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function re(e,t){if(!(0,o.Kn)(e)||e["__v_skip"])return e;if(t=t||new Set,t.has(e))return e;if(t.add(e),(0,i.dq)(e))re(e.value,t);else if((0,o.kJ)(e))for(let n=0;n<e.length;n++)re(e[n],t);else if((0,o.DM)(e)||(0,o._N)(e))e.forEach((e=>{re(e,t)}));else if((0,o.PO)(e))for(const n in e)re(e[n],t);return e}function ae(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Te((()=>{e.isMounted=!0})),Oe((()=>{e.isUnmounting=!0})),e}const se=[Function,Array],le={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:se,onEnter:se,onAfterEnter:se,onEnterCancelled:se,onBeforeLeave:se,onLeave:se,onAfterLeave:se,onLeaveCancelled:se,onBeforeAppear:se,onAppear:se,onAfterAppear:se,onAppearCancelled:se},setup(e,{slots:t}){const n=On(),o=ae();let r;return()=>{const a=t.default&&ge(t.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){let e=!1;for(const t of a)if(t.type!==Yt){0,s=t,e=!0;break}}const l=(0,i.IU)(e),{mode:u}=l;if(o.isLeaving)return he(s);const c=fe(s);if(!c)return he(s);const d=de(c,l,o,n);pe(c,d);const h=n.subTree,f=h&&fe(h);let p=!1;const{getTransitionKey:g}=c.type;if(g){const e=g();void 0===r?r=e:e!==r&&(r=e,p=!0)}if(f&&f.type!==Yt&&(!an(c,f)||p)){const e=de(f,l,o,n);if(pe(f,e),"out-in"===u)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},he(s);"in-out"===u&&c.type!==Yt&&(e.delayLeave=(e,t,n)=>{const i=ce(o,f);i[String(f.key)]=f,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return s}}},ue=le;function ce(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function de(e,t,n,i){const{appear:o,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:v,onAppear:m,onAfterAppear:y,onAppearCancelled:x}=t,_=String(e.key),b=ce(n,e),w=(e,t)=>{e&&a(e,i,9,t)},S={mode:r,persisted:s,beforeEnter(t){let i=l;if(!n.isMounted){if(!o)return;i=v||l}t._leaveCb&&t._leaveCb(!0);const r=b[_];r&&an(e,r)&&r.el._leaveCb&&r.el._leaveCb(),w(i,[t])},enter(e){let t=u,i=c,r=d;if(!n.isMounted){if(!o)return;t=m||u,i=y||c,r=x||d}let a=!1;const s=e._enterCb=t=>{a||(a=!0,w(t?r:i,[e]),S.delayedLeave&&S.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,i){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return i();w(h,[t]);let r=!1;const a=t._leaveCb=n=>{r||(r=!0,i(),w(n?g:p,[t]),t._leaveCb=void 0,b[o]===e&&delete b[o])};b[o]=e,f?(f(t,a),f.length<=1&&a()):a()},clone(e){return de(e,t,n,i)}};return S}function he(e){if(ye(e))return e=pn(e),e.children=null,e}function fe(e){return ye(e)?e.children?e.children[0]:void 0:e}function pe(e,t){6&e.shapeFlag&&e.component?pe(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ge(e,t=!1,n){let i=[],o=0;for(let r=0;r<e.length;r++){let a=e[r];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:r);a.type===jt?(128&a.patchFlag&&o++,i=i.concat(ge(a.children,t,s))):(t||a.type!==Yt)&&i.push(null!=s?pn(a,{key:s}):a)}if(o>1)for(let r=0;r<i.length;r++)i[r].patchFlag=-2;return i}function ve(e){return(0,o.mf)(e)?{setup:e,name:e.name}:e}const me=e=>!!e.type.__asyncLoader;const ye=e=>e.type.__isKeepAlive,xe={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=On(),i=n.ctx;if(!i.renderer)return t.default;const r=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:u,m:c,um:d,o:{createElement:h}}}=i,f=h("div");function p(e){Ae(e),d(e,n,l,!0)}function g(e){r.forEach(((t,n)=>{const i=Zn(t.type);!i||e&&e(i)||v(n)}))}function v(e){const t=r.get(e);s&&t.type===s.type?s&&Ae(s):p(t),r.delete(e),a.delete(e)}i.activate=(e,t,n,i,r)=>{const a=e.component;c(e,t,n,0,l),u(a.vnode,e,t,n,a,l,i,e.slotScopeIds,r),St((()=>{a.isDeactivated=!1,a.a&&(0,o.ir)(a.a);const t=e.props&&e.props.onVnodeMounted;t&&wn(t,a.parent,e)}),l)},i.deactivate=e=>{const t=e.component;c(e,f,null,1,l),St((()=>{t.da&&(0,o.ir)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&wn(n,t.parent,e),t.isDeactivated=!0}),l)},te((()=>[e.include,e.exclude]),(([e,t])=>{e&&g((t=>be(e,t))),t&&g((e=>!be(t,e)))}),{flush:"post",deep:!0});let m=null;const y=()=>{null!=m&&r.set(m,ke(n.subTree))};return Te(y),De(y),Oe((()=>{r.forEach((e=>{const{subTree:t,suspense:i}=n,o=ke(t);if(e.type!==o.type)p(e);else{Ae(o);const e=o.component.da;e&&St(e,i)}}))})),()=>{if(m=null,!t.default)return null;const n=t.default(),i=n[0];if(n.length>1)return s=null,n;if(!rn(i)||!(4&i.shapeFlag)&&!(128&i.shapeFlag))return s=null,i;let o=ke(i);const l=o.type,u=Zn(me(o)?o.type.__asyncResolved||{}:l),{include:c,exclude:d,max:h}=e;if(c&&(!u||!be(c,u))||d&&u&&be(d,u))return s=o,i;const f=null==o.key?l:o.key,p=r.get(f);return o.el&&(o=pn(o),128&i.shapeFlag&&(i.ssContent=o)),m=f,p?(o.el=p.el,o.component=p.component,o.transition&&pe(o,o.transition),o.shapeFlag|=512,a.delete(f),a.add(f)):(a.add(f),h&&a.size>parseInt(h,10)&&v(a.values().next().value)),o.shapeFlag|=256,s=o,i}}},_e=xe;function be(e,t){return(0,o.kJ)(e)?e.some((e=>be(e,t))):(0,o.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function we(e,t){Me(e,"a",t)}function Se(e,t){Me(e,"da",t)}function Me(e,t,n=Dn){const i=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Pe(t,i,n),n){let e=n.parent;while(e&&e.parent)ye(e.parent.vnode)&&Ie(i,t,n,e),e=e.parent}}function Ie(e,t,n,i){const r=Pe(t,e,i,!0);Le((()=>{(0,o.Od)(i[t],r)}),n)}function Ae(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function ke(e){return 128&e.shapeFlag?e.ssContent:e}function Pe(e,t,n=Dn,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;(0,i.Jd)(),Ln(n);const r=a(t,n,e,o);return Vn(),(0,i.lk)(),r});return o?r.unshift(s):r.push(s),s}}const Ce=e=>(t,n=Dn)=>(!Wn||"sp"===e)&&Pe(e,t,n),Ee=Ce("bm"),Te=Ce("m"),Ne=Ce("bu"),De=Ce("u"),Oe=Ce("bum"),Le=Ce("um"),Ve=Ce("sp"),Re=Ce("rtg"),Be=Ce("rtc");function ze(e,t=Dn){Pe("ec",e,t)}let We=!0;function Fe(e){const t=je(e),n=e.proxy,r=e.ctx;We=!1,t.beforeCreate&&$e(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:l,watch:u,provide:c,inject:d,created:h,beforeMount:f,mounted:p,beforeUpdate:g,updated:v,activated:m,deactivated:y,beforeDestroy:x,beforeUnmount:_,destroyed:b,unmounted:w,render:S,renderTracked:M,renderTriggered:I,errorCaptured:A,serverPrefetch:k,expose:P,inheritAttrs:C,components:E,directives:T,filters:N}=t,D=null;if(d&&Ue(d,r,D,e.appContext.config.unwrapInjectedRef),l)for(const i in l){const e=l[i];(0,o.mf)(e)&&(r[i]=e.bind(n))}if(a){0;const t=a.call(n,n);0,(0,o.Kn)(t)&&(e.data=(0,i.qj)(t))}if(We=!0,s)for(const i in s){const e=s[i],t=(0,o.mf)(e)?e.bind(n,n):(0,o.mf)(e.get)?e.get.bind(n,n):o.dG;0;const a=!(0,o.mf)(e)&&(0,o.mf)(e.set)?e.set.bind(n):o.dG,l=Xn({get:t,set:a});Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(u)for(const i in u)He(u[i],r,n,i);if(c){const e=(0,o.mf)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{J(t,e[t])}))}function O(e,t){(0,o.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(h&&$e(h,e,"c"),O(Ee,f),O(Te,p),O(Ne,g),O(De,v),O(we,m),O(Se,y),O(ze,A),O(Be,M),O(Re,I),O(Oe,_),O(Le,w),O(Ve,k),(0,o.kJ)(P))if(P.length){const t=e.exposed||(e.exposed={});P.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===o.dG&&(e.render=S),null!=C&&(e.inheritAttrs=C),E&&(e.components=E),T&&(e.directives=T)}function Ue(e,t,n=o.dG,r=!1){(0,o.kJ)(e)&&(e=Xe(e));for(const a in e){const n=e[a];let s;s=(0,o.Kn)(n)?"default"in n?K(n.from||a,n.default,!0):K(n.from||a):K(n),(0,i.dq)(s)&&r?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[a]=s}}function $e(e,t,n){a((0,o.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function He(e,t,n,i){const r=i.includes(".")?oe(n,i):()=>n[i];if((0,o.HD)(e)){const n=t[e];(0,o.mf)(n)&&te(r,n)}else if((0,o.mf)(e))te(r,e.bind(n));else if((0,o.Kn)(e))if((0,o.kJ)(e))e.forEach((e=>He(e,t,n,i)));else{const i=(0,o.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.mf)(i)&&te(r,i,e)}else 0}function je(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,s=r.get(t);let l;return s?l=s:o.length||n||i?(l={},o.length&&o.forEach((e=>Ge(l,e,a,!0))),Ge(l,t,a)):l=t,r.set(t,l),l}function Ge(e,t,n,i=!1){const{mixins:o,extends:r}=t;r&&Ge(e,r,n,!0),o&&o.forEach((t=>Ge(e,t,n,!0)));for(const a in t)if(i&&"expose"===a);else{const i=Ye[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const Ye={data:Ze,props:Ke,emits:Ke,methods:Ke,computed:Ke,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:Ke,directives:Ke,watch:Qe,provide:Ze,inject:qe};function Ze(e,t){return t?e?function(){return(0,o.l7)((0,o.mf)(e)?e.call(this,this):e,(0,o.mf)(t)?t.call(this,this):t)}:t:e}function qe(e,t){return Ke(Xe(e),Xe(t))}function Xe(e){if((0,o.kJ)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Je(e,t){return e?[...new Set([].concat(e,t))]:t}function Ke(e,t){return e?(0,o.l7)((0,o.l7)(Object.create(null),e),t):t}function Qe(e,t){if(!e)return t;if(!t)return e;const n=(0,o.l7)(Object.create(null),e);for(const i in t)n[i]=Je(e[i],t[i]);return n}function et(e,t,n,r=!1){const a={},s={};(0,o.Nj)(s,sn,1),e.propsDefaults=Object.create(null),nt(e,t,a,s);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);n?e.props=r?a:(0,i.Um)(a):e.type.props?e.props=a:e.props=s,e.attrs=s}function tt(e,t,n,r){const{props:a,attrs:s,vnode:{patchFlag:l}}=e,u=(0,i.IU)(a),[c]=e.propsOptions;let d=!1;if(!(r||l>0)||16&l){let i;nt(e,t,a,s)&&(d=!0);for(const r in u)t&&((0,o.RI)(t,r)||(i=(0,o.rs)(r))!==r&&(0,o.RI)(t,i))||(c?!n||void 0===n[r]&&void 0===n[i]||(a[r]=it(c,u,r,void 0,e,!0)):delete a[r]);if(s!==u)for(const e in s)t&&(0,o.RI)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){let r=n[i];if(V(e.emitsOptions,r))continue;const l=t[r];if(c)if((0,o.RI)(s,r))l!==s[r]&&(s[r]=l,d=!0);else{const t=(0,o._A)(r);a[t]=it(c,u,t,l,e,!1)}else l!==s[r]&&(s[r]=l,d=!0)}}d&&(0,i.X$)(e,"set","$attrs")}function nt(e,t,n,r){const[a,s]=e.propsOptions;let l,u=!1;if(t)for(let i in t){if((0,o.Gg)(i))continue;const c=t[i];let d;a&&(0,o.RI)(a,d=(0,o._A)(i))?s&&s.includes(d)?(l||(l={}))[d]=c:n[d]=c:V(e.emitsOptions,i)||i in r&&c===r[i]||(r[i]=c,u=!0)}if(s){const t=(0,i.IU)(n),r=l||o.kT;for(let i=0;i<s.length;i++){const l=s[i];n[l]=it(a,t,l,r[l],e,!(0,o.RI)(r,l))}}return u}function it(e,t,n,i,r,a){const s=e[n];if(null!=s){const e=(0,o.RI)(s,"default");if(e&&void 0===i){const e=s.default;if(s.type!==Function&&(0,o.mf)(e)){const{propsDefaults:o}=r;n in o?i=o[n]:(Ln(r),i=o[n]=e.call(null,t),Vn())}else i=e}s[0]&&(a&&!e?i=!1:!s[1]||""!==i&&i!==(0,o.rs)(n)||(i=!0))}return i}function ot(e,t,n=!1){const i=t.propsCache,r=i.get(e);if(r)return r;const a=e.props,s={},l=[];let u=!1;if(!(0,o.mf)(e)){const i=e=>{u=!0;const[n,i]=ot(e,t,!0);(0,o.l7)(s,n),i&&l.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!a&&!u)return i.set(e,o.Z6),o.Z6;if((0,o.kJ)(a))for(let d=0;d<a.length;d++){0;const e=(0,o._A)(a[d]);rt(e)&&(s[e]=o.kT)}else if(a){0;for(const e in a){const t=(0,o._A)(e);if(rt(t)){const n=a[e],i=s[t]=(0,o.kJ)(n)||(0,o.mf)(n)?{type:n}:n;if(i){const e=lt(Boolean,i.type),n=lt(String,i.type);i[0]=e>-1,i[1]=n<0||e<n,(e>-1||(0,o.RI)(i,"default"))&&l.push(t)}}}}const c=[s,l];return i.set(e,c),c}function rt(e){return"$"!==e[0]}function at(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function st(e,t){return at(e)===at(t)}function lt(e,t){return(0,o.kJ)(t)?t.findIndex((t=>st(t,e))):(0,o.mf)(t)&&st(t,e)?0:-1}const ut=e=>"_"===e[0]||"$stable"===e,ct=e=>(0,o.kJ)(e)?e.map(yn):[yn(e)],dt=(e,t,n)=>{const i=U(((...e)=>ct(t(...e))),n);return i._c=!1,i},ht=(e,t,n)=>{const i=e._ctx;for(const r in e){if(ut(r))continue;const n=e[r];if((0,o.mf)(n))t[r]=dt(r,n,i);else if(null!=n){0;const e=ct(n);t[r]=()=>e}}},ft=(e,t)=>{const n=ct(t);e.slots.default=()=>n},pt=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,i.IU)(t),(0,o.Nj)(t,"_",n)):ht(t,e.slots={})}else e.slots={},t&&ft(e,t);(0,o.Nj)(e.slots,sn,1)},gt=(e,t,n)=>{const{vnode:i,slots:r}=e;let a=!0,s=o.kT;if(32&i.shapeFlag){const e=t._;e?n&&1===e?a=!1:((0,o.l7)(r,t),n||1!==e||delete r._):(a=!t.$stable,ht(t,r)),s=t}else t&&(ft(e,t),s={default:1});if(a)for(const o in r)ut(o)||o in s||delete r[o]};function vt(e,t){const n=R;if(null===n)return e;const i=Yn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[e,n,s,l=o.kT]=t[a];(0,o.mf)(e)&&(e={mounted:e,updated:e}),e.deep&&re(n),r.push({dir:e,instance:i,value:n,oldValue:void 0,arg:s,modifiers:l})}return e}function mt(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let l=0;l<r.length;l++){const u=r[l];s&&(u.oldValue=s[l].value);let c=u.dir[o];c&&((0,i.Jd)(),a(c,n,8,[e.el,u,e,t]),(0,i.lk)())}}function yt(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let xt=0;function _t(e,t){return function(n,i=null){(0,o.mf)(n)||(n=Object.assign({},n)),null==i||(0,o.Kn)(i)||(i=null);const r=yt(),a=new Set;let s=!1;const l=r.app={_uid:xt++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Kn,get config(){return r.config},set config(e){0},use(e,...t){return a.has(e)||(e&&(0,o.mf)(e.install)?(a.add(e),e.install(l,...t)):(0,o.mf)(e)&&(a.add(e),e(l,...t))),l},mixin(e){return r.mixins.includes(e)||r.mixins.push(e),l},component(e,t){return t?(r.components[e]=t,l):r.components[e]},directive(e,t){return t?(r.directives[e]=t,l):r.directives[e]},mount(o,a,u){if(!s){const c=dn(n,i);return c.appContext=r,a&&t?t(c,o):e(c,o,u),s=!0,l._container=o,o.__vue_app__=l,Yn(c.component)||c.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return r.provides[e]=t,l}};return l}}function bt(e,t,n,a,s=!1){if((0,o.kJ)(e))return void e.forEach(((e,i)=>bt(e,t&&((0,o.kJ)(t)?t[i]:t),n,a,s)));if(me(a)&&!s)return;const l=4&a.shapeFlag?Yn(a.component)||a.component.proxy:a.el,u=s?null:l,{i:c,r:d}=e;const h=t&&t.r,f=c.refs===o.kT?c.refs={}:c.refs,p=c.setupState;if(null!=h&&h!==d&&((0,o.HD)(h)?(f[h]=null,(0,o.RI)(p,h)&&(p[h]=null)):(0,i.dq)(h)&&(h.value=null)),(0,o.mf)(d))r(d,c,12,[u,f]);else{const t=(0,o.HD)(d),r=(0,i.dq)(d);if(t||r){const r=()=>{if(e.f){const n=t?f[d]:d.value;s?(0,o.kJ)(n)&&(0,o.Od)(n,l):(0,o.kJ)(n)?n.includes(l)||n.push(l):t?(f[d]=[l],(0,o.RI)(p,d)&&(p[d]=f[d])):(d.value=[l],e.k&&(f[e.k]=d.value))}else t?(f[d]=u,(0,o.RI)(p,d)&&(p[d]=u)):(0,i.dq)(d)&&(d.value=u,e.k&&(f[e.k]=u))};u?(r.id=-1,St(r,n)):r()}else 0}}function wt(){}const St=X;function Mt(e){return It(e)}function It(e,t){wt();const n=(0,o.E9)();n.__VUE__=!0;const{insert:r,remove:a,patchProp:s,createElement:l,createText:u,createComment:c,setText:d,setElementText:h,parentNode:f,nextSibling:p,setScopeId:g=o.dG,cloneNode:v,insertStaticContent:m}=e,y=(e,t,n,i=null,o=null,r=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!an(e,t)&&(i=Q(e),Y(e,o,r,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case Gt:x(e,t,n,i);break;case Yt:_(e,t,n,i);break;case Zt:null==e&&b(t,n,i,a);break;case jt:L(e,t,n,i,o,r,a,s,l);break;default:1&d?I(e,t,n,i,o,r,a,s,l):6&d?V(e,t,n,i,o,r,a,s,l):(64&d||128&d)&&u.process(e,t,n,i,o,r,a,s,l,te)}null!=c&&o&&bt(c,e&&e.ref,r,t||e,!t)},x=(e,t,n,i)=>{if(null==e)r(t.el=u(t.children),n,i);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},_=(e,t,n,i)=>{null==e?r(t.el=c(t.children||""),n,i):t.el=e.el},b=(e,t,n,i)=>{[e.el,e.anchor]=m(e.children,t,n,i,e.el,e.anchor)},w=({el:e,anchor:t},n,i)=>{let o;while(e&&e!==t)o=p(e),r(e,n,i),e=o;r(t,n,i)},S=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=p(e),a(e),e=n;a(t)},I=(e,t,n,i,o,r,a,s,l)=>{a=a||"svg"===t.type,null==e?k(t,n,i,o,r,a,s,l):N(e,t,o,r,a,s,l)},k=(e,t,n,i,a,u,c,d)=>{let f,p;const{type:g,props:m,shapeFlag:y,transition:x,patchFlag:_,dirs:b}=e;if(e.el&&void 0!==v&&-1===_)f=e.el=v(e.el);else{if(f=e.el=l(e.type,u,m&&m.is,m),8&y?h(f,e.children):16&y&&C(e.children,f,null,i,a,u&&"foreignObject"!==g,c,d),b&&mt(e,null,i,"created"),m){for(const t in m)"value"===t||(0,o.Gg)(t)||s(f,t,null,m[t],u,e.children,i,a,K);"value"in m&&s(f,"value",null,m.value),(p=m.onVnodeBeforeMount)&&wn(p,i,e)}P(f,e,e.scopeId,c,i)}b&&mt(e,null,i,"beforeMount");const w=(!a||a&&!a.pendingBranch)&&x&&!x.persisted;w&&x.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||w||b)&&St((()=>{p&&wn(p,i,e),w&&x.enter(f),b&&mt(e,null,i,"mounted")}),a)},P=(e,t,n,i,o)=>{if(n&&g(e,n),i)for(let r=0;r<i.length;r++)g(e,i[r]);if(o){let n=o.subTree;if(t===n){const t=o.vnode;P(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},C=(e,t,n,i,o,r,a,s,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=s?xn(e[u]):yn(e[u]);y(null,l,t,n,i,o,r,a,s)}},N=(e,t,n,i,r,a,l)=>{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:f}=t;c|=16&e.patchFlag;const p=e.props||o.kT,g=t.props||o.kT;let v;n&&At(n,!1),(v=g.onVnodeBeforeUpdate)&&wn(v,n,t,e),f&&mt(t,e,n,"beforeUpdate"),n&&At(n,!0);const m=r&&"foreignObject"!==t.type;if(d?D(e.dynamicChildren,d,u,n,i,m,a):l||F(e,t,u,null,n,i,m,a,!1),c>0){if(16&c)O(u,t,p,g,n,i,r);else if(2&c&&p.class!==g.class&&s(u,"class",null,g.class,r),4&c&&s(u,"style",p.style,g.style,r),8&c){const o=t.dynamicProps;for(let t=0;t<o.length;t++){const a=o[t],l=p[a],c=g[a];c===l&&"value"!==a||s(u,a,l,c,r,e.children,n,i,K)}}1&c&&e.children!==t.children&&h(u,t.children)}else l||null!=d||O(u,t,p,g,n,i,r);((v=g.onVnodeUpdated)||f)&&St((()=>{v&&wn(v,n,t,e),f&&mt(t,e,n,"updated")}),i)},D=(e,t,n,i,o,r,a)=>{for(let s=0;s<t.length;s++){const l=e[s],u=t[s],c=l.el&&(l.type===jt||!an(l,u)||70&l.shapeFlag)?f(l.el):n;y(l,u,c,null,i,o,r,a,!0)}},O=(e,t,n,i,r,a,l)=>{if(n!==i){for(const u in i){if((0,o.Gg)(u))continue;const c=i[u],d=n[u];c!==d&&"value"!==u&&s(e,u,d,c,l,t.children,r,a,K)}if(n!==o.kT)for(const u in n)(0,o.Gg)(u)||u in i||s(e,u,n[u],null,l,t.children,r,a,K);"value"in i&&s(e,"value",n.value,i.value)}},L=(e,t,n,i,o,a,s,l,c)=>{const d=t.el=e?e.el:u(""),h=t.anchor=e?e.anchor:u("");let{patchFlag:f,dynamicChildren:p,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(r(d,n,i),r(h,n,i),C(t.children,n,h,o,a,s,l,c)):f>0&&64&f&&p&&e.dynamicChildren?(D(e.dynamicChildren,p,n,o,a,s,l),(null!=t.key||o&&t===o.subTree)&&kt(e,t,!0)):F(e,t,n,h,o,a,s,l,c)},V=(e,t,n,i,o,r,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,i,a,l):R(t,n,i,o,r,a,l):B(e,t,l)},R=(e,t,n,i,o,r,a)=>{const s=e.component=Nn(e,i,o);if(ye(e)&&(s.ctx.renderer=te),Fn(s),s.asyncDep){if(o&&o.registerDep(s,z),!e.el){const e=s.subTree=dn(Yt);_(null,e,t,n)}}else z(s,e,t,n,o,r,a)},B=(e,t,n)=>{const i=t.component=e.component;if(G(e,t,n)){if(i.asyncDep&&!i.asyncResolved)return void W(i,t,n);i.next=t,A(i.update),i.update()}else t.component=e.component,t.el=e.el,i.vnode=t},z=(e,t,n,r,a,s,l)=>{const u=()=>{if(e.isMounted){let t,{next:n,bu:i,u:r,parent:u,vnode:c}=e,d=n;0,At(e,!1),n?(n.el=c.el,W(e,n,l)):n=c,i&&(0,o.ir)(i),(t=n.props&&n.props.onVnodeBeforeUpdate)&&wn(t,u,n,c),At(e,!0);const h=$(e);0;const p=e.subTree;e.subTree=h,y(p,h,f(p.el),Q(p),e,a,s),n.el=h.el,null===d&&Z(e,h.el),r&&St(r,a),(t=n.props&&n.props.onVnodeUpdated)&&St((()=>wn(t,u,n,c)),a)}else{let i;const{el:l,props:u}=t,{bm:c,m:d,parent:h}=e,f=me(t);if(At(e,!1),c&&(0,o.ir)(c),!f&&(i=u&&u.onVnodeBeforeMount)&&wn(i,h,t),At(e,!0),l&&ie){const n=()=>{e.subTree=$(e),ie(l,e.subTree,e,a,null)};f?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const i=e.subTree=$(e);0,y(null,i,n,r,e,a,s),t.el=i.el}if(d&&St(d,a),!f&&(i=u&&u.onVnodeMounted)){const e=t;St((()=>wn(i,h,e)),a)}256&t.shapeFlag&&e.a&&St(e.a,a),e.isMounted=!0,t=n=r=null}},c=e.effect=new i.qq(u,(()=>M(e.update)),e.scope),d=e.update=c.run.bind(c);d.id=e.uid,At(e,!0),d()},W=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,tt(e,t.props,o,n),gt(e,t.children,n),(0,i.Jd)(),E(void 0,e.update),(0,i.lk)()},F=(e,t,n,i,o,r,a,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:p}=t;if(f>0){if(128&f)return void H(u,d,n,i,o,r,a,s,l);if(256&f)return void U(u,d,n,i,o,r,a,s,l)}8&p?(16&c&&K(u,o,r),d!==u&&h(n,d)):16&c?16&p?H(u,d,n,i,o,r,a,s,l):K(u,o,r,!0):(8&c&&h(n,""),16&p&&C(d,n,i,o,r,a,s,l))},U=(e,t,n,i,r,a,s,l,u)=>{e=e||o.Z6,t=t||o.Z6;const c=e.length,d=t.length,h=Math.min(c,d);let f;for(f=0;f<h;f++){const i=t[f]=u?xn(t[f]):yn(t[f]);y(e[f],i,n,null,r,a,s,l,u)}c>d?K(e,r,a,!0,!1,h):C(t,n,i,r,a,s,l,u,h)},H=(e,t,n,i,r,a,s,l,u)=>{let c=0;const d=t.length;let h=e.length-1,f=d-1;while(c<=h&&c<=f){const i=e[c],o=t[c]=u?xn(t[c]):yn(t[c]);if(!an(i,o))break;y(i,o,n,null,r,a,s,l,u),c++}while(c<=h&&c<=f){const i=e[h],o=t[f]=u?xn(t[f]):yn(t[f]);if(!an(i,o))break;y(i,o,n,null,r,a,s,l,u),h--,f--}if(c>h){if(c<=f){const e=f+1,o=e<d?t[e].el:i;while(c<=f)y(null,t[c]=u?xn(t[c]):yn(t[c]),n,o,r,a,s,l,u),c++}}else if(c>f)while(c<=h)Y(e[c],r,a,!0),c++;else{const p=c,g=c,v=new Map;for(c=g;c<=f;c++){const e=t[c]=u?xn(t[c]):yn(t[c]);null!=e.key&&v.set(e.key,c)}let m,x=0;const _=f-g+1;let b=!1,w=0;const S=new Array(_);for(c=0;c<_;c++)S[c]=0;for(c=p;c<=h;c++){const i=e[c];if(x>=_){Y(i,r,a,!0);continue}let o;if(null!=i.key)o=v.get(i.key);else for(m=g;m<=f;m++)if(0===S[m-g]&&an(i,t[m])){o=m;break}void 0===o?Y(i,r,a,!0):(S[o-g]=c+1,o>=w?w=o:b=!0,y(i,t[o],n,null,r,a,s,l,u),x++)}const M=b?Pt(S):o.Z6;for(m=M.length-1,c=_-1;c>=0;c--){const e=g+c,o=t[e],h=e+1<d?t[e+1].el:i;0===S[c]?y(null,o,n,h,r,a,s,l,u):b&&(m<0||c!==M[m]?j(o,n,h,2):m--)}}},j=(e,t,n,i,o=null)=>{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)return void j(e.component.subTree,t,n,i);if(128&c)return void e.suspense.move(t,n,i);if(64&c)return void s.move(e,t,n,te);if(s===jt){r(a,t,n);for(let e=0;e<u.length;e++)j(u[e],t,n,i);return void r(e.anchor,t,n)}if(s===Zt)return void w(e,t,n);const d=2!==i&&1&c&&l;if(d)if(0===i)l.beforeEnter(a),r(a,t,n),St((()=>l.enter(a)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=l,s=()=>r(a,t,n),u=()=>{e(a,(()=>{s(),o&&o()}))};i?i(a,s,u):u()}else r(a,t,n)},Y=(e,t,n,i=!1,o=!1)=>{const{type:r,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:h}=e;if(null!=s&&bt(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const f=1&c&&h,p=!me(e);let g;if(p&&(g=a&&a.onVnodeBeforeUnmount)&&wn(g,t,e),6&c)J(e.component,n,i);else{if(128&c)return void e.suspense.unmount(n,i);f&&mt(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,o,te,i):u&&(r!==jt||d>0&&64&d)?K(u,t,n,!1,!0):(r===jt&&384&d||!o&&16&c)&&K(l,t,n),i&&q(e)}(p&&(g=a&&a.onVnodeUnmounted)||f)&&St((()=>{g&&wn(g,t,e),f&&mt(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===jt)return void X(n,i);if(t===Zt)return void S(e);const r=()=>{a(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:i}=o,a=()=>t(n,r);i?i(e.el,r,a):a()}else r()},X=(e,t)=>{let n;while(e!==t)n=p(e),a(e),e=n;a(t)},J=(e,t,n)=>{const{bum:i,scope:r,update:a,subTree:s,um:l}=e;i&&(0,o.ir)(i),r.stop(),a&&(a.active=!1,Y(s,e,t,n)),l&&St(l,t),St((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,i=!1,o=!1,r=0)=>{for(let a=r;a<e.length;a++)Y(e[a],t,n,i,o)},Q=e=>6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),ee=(e,t,n)=>{null==e?t._vnode&&Y(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),T(),t._vnode=e},te={p:y,um:Y,m:j,r:q,mt:R,mc:C,pc:F,pbc:D,n:Q,o:e};let ne,ie;return t&&([ne,ie]=t(te)),{render:ee,hydrate:ne,createApp:_t(ee,ne)}}function At({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function kt(e,t,n=!1){const i=e.children,r=t.children;if((0,o.kJ)(i)&&(0,o.kJ)(r))for(let o=0;o<i.length;o++){const e=i[o];let t=r[o];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=r[o]=xn(r[o]),t.el=e.el),n||kt(e,t))}}function Pt(e){const t=e.slice(),n=[0];let i,o,r,a,s;const l=e.length;for(i=0;i<l;i++){const l=e[i];if(0!==l){if(o=n[n.length-1],e[o]<l){t[i]=o,n.push(i);continue}r=0,a=n.length-1;while(r<a)s=r+a>>1,e[n[s]]<l?r=s+1:a=s;l<e[n[r]]&&(r>0&&(t[i]=n[r-1]),n[r]=i)}}r=n.length,a=n[r-1];while(r-- >0)n[r]=a,a=t[a];return n}const Ct=e=>e.__isTeleport,Et=e=>e&&(e.disabled||""===e.disabled),Tt=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,Nt=(e,t)=>{const n=e&&e.to;if((0,o.HD)(n)){if(t){const e=t(n);return e}return null}return n},Dt={__isTeleport:!0,process(e,t,n,i,o,r,a,s,l,u){const{mc:c,pc:d,pbc:h,o:{insert:f,querySelector:p,createText:g,createComment:v}}=u,m=Et(t.props);let{shapeFlag:y,children:x,dynamicChildren:_}=t;if(null==e){const e=t.el=g(""),u=t.anchor=g("");f(e,n,i),f(u,n,i);const d=t.target=Nt(t.props,p),h=t.targetAnchor=g("");d&&(f(h,d),a=a||Tt(d));const v=(e,t)=>{16&y&&c(x,e,t,o,r,a,s,l)};m?v(n,u):d&&v(d,h)}else{t.el=e.el;const i=t.anchor=e.anchor,c=t.target=e.target,f=t.targetAnchor=e.targetAnchor,g=Et(e.props),v=g?n:c,y=g?i:f;if(a=a||Tt(c),_?(h(e.dynamicChildren,_,v,o,r,a,s),kt(e,t,!0)):l||d(e,t,v,y,o,r,a,s,!1),m)g||Ot(t,n,i,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Nt(t.props,p);e&&Ot(t,e,null,u,0)}else g&&Ot(t,c,f,u,1)}},remove(e,t,n,i,{um:o,o:{remove:r}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:h}=e;if(d&&r(c),(a||!Et(h))&&(r(u),16&s))for(let f=0;f<l.length;f++){const e=l[f];o(e,t,n,!0,!!e.dynamicChildren)}},move:Ot,hydrate:Lt};function Ot(e,t,n,{o:{insert:i},m:o},r=2){0===r&&i(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=e,d=2===r;if(d&&i(a,t,n),(!d||Et(c))&&16&l)for(let h=0;h<u.length;h++)o(u[h],t,n,2);d&&i(s,t,n)}function Lt(e,t,n,i,o,r,{o:{nextSibling:a,parentNode:s,querySelector:l}},u){const c=t.target=Nt(t.props,l);if(c){const l=c._lpa||c.firstChild;16&t.shapeFlag&&(Et(t.props)?(t.anchor=u(a(e),t,s(e),n,i,o,r),t.targetAnchor=l):(t.anchor=a(e),t.targetAnchor=u(l,t,c,n,i,o,r)),c._lpa=t.targetAnchor&&a(t.targetAnchor))}return t.anchor&&a(t.anchor)}const Vt=Dt,Rt="components",Bt="directives";function zt(e,t){return $t(Rt,e,!0,t)||e}const Wt=Symbol();function Ft(e){return(0,o.HD)(e)?$t(Rt,e,!1)||e:e||Wt}function Ut(e){return $t(Bt,e)}function $t(e,t,n=!0,i=!1){const r=R||Dn;if(r){const n=r.type;if(e===Rt){const e=Zn(n);if(e&&(e===t||e===(0,o._A)(t)||e===(0,o.kC)((0,o._A)(t))))return n}const a=Ht(r[e]||n[e],t)||Ht(r.appContext[e],t);return!a&&i?n:a}}function Ht(e,t){return e&&(e[t]||e[(0,o._A)(t)]||e[(0,o.kC)((0,o._A)(t))])}const jt=Symbol(void 0),Gt=Symbol(void 0),Yt=Symbol(void 0),Zt=Symbol(void 0),qt=[];let Xt=null;function Jt(e=!1){qt.push(Xt=e?null:[])}function Kt(){qt.pop(),Xt=qt[qt.length-1]||null}let Qt=1;function en(e){Qt+=e}function tn(e){return e.dynamicChildren=Qt>0?Xt||o.Z6:null,Kt(),Qt>0&&Xt&&Xt.push(e),e}function nn(e,t,n,i,o,r){return tn(cn(e,t,n,i,o,r,!0))}function on(e,t,n,i,o){return tn(dn(e,t,n,i,o,!0))}function rn(e){return!!e&&!0===e.__v_isVNode}function an(e,t){return e.type===t.type&&e.key===t.key}const sn="__vInternal",ln=({key:e})=>null!=e?e:null,un=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,o.HD)(e)||(0,i.dq)(e)||(0,o.mf)(e)?{i:R,r:e,k:t,f:!!n}:e:null;function cn(e,t=null,n=null,i=0,r=null,a=(e===jt?0:1),s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ln(t),ref:t&&un(t),scopeId:B,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null};return l?(_n(u,n),128&a&&e.normalize(u)):n&&(u.shapeFlag|=(0,o.HD)(n)?8:16),Qt>0&&!s&&Xt&&(u.patchFlag>0||6&a)&&32!==u.patchFlag&&Xt.push(u),u}const dn=hn;function hn(e,t=null,n=null,r=0,a=null,s=!1){if(e&&e!==Wt||(e=Yt),rn(e)){const i=pn(e,t,!0);return n&&_n(i,n),i}if(qn(e)&&(e=e.__vccOpts),t){t=fn(t);let{class:e,style:n}=t;e&&!(0,o.HD)(e)&&(t.class=(0,o.C_)(e)),(0,o.Kn)(n)&&((0,i.X3)(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),t.style=(0,o.j5)(n))}const l=(0,o.HD)(e)?1:q(e)?128:Ct(e)?64:(0,o.Kn)(e)?4:(0,o.mf)(e)?2:0;return cn(e,t,n,r,a,l,s,!0)}function fn(e){return e?(0,i.X3)(e)||sn in e?(0,o.l7)({},e):e:null}function pn(e,t,n=!1){const{props:i,ref:r,patchFlag:a,children:s}=e,l=t?bn(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ln(l),ref:t&&t.ref?n&&r?(0,o.kJ)(r)?r.concat(un(t)):[r,un(t)]:un(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==jt?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor};return u}function gn(e=" ",t=0){return dn(Gt,null,e,t)}function vn(e,t){const n=dn(Zt,null,e);return n.staticCount=t,n}function mn(e="",t=!1){return t?(Jt(),on(Yt,null,e)):dn(Yt,null,e)}function yn(e){return null==e||"boolean"===typeof e?dn(Yt):(0,o.kJ)(e)?dn(jt,null,e.slice()):"object"===typeof e?xn(e):dn(Gt,null,String(e))}function xn(e){return null===e.el||e.memo?e:pn(e)}function _n(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if((0,o.kJ)(t))n=16;else if("object"===typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),_n(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||sn in t?3===i&&R&&(1===R.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=R}}else(0,o.mf)(t)?(t={default:t,_ctx:R},n=32):(t=String(t),64&i?(n=16,t=[gn(t)]):n=8);e.children=t,e.shapeFlag|=n}function bn(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=(0,o.C_)([t.class,i.class]));else if("style"===e)t.style=(0,o.j5)([t.style,i.style]);else if((0,o.F7)(e)){const n=t[e],r=i[e];!r||n===r||(0,o.kJ)(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=i[e])}return t}function wn(e,t,n,i=null){a(e,t,7,[n,i])}function Sn(e,t,n,i){let r;const a=n&&n[i];if((0,o.kJ)(e)||(0,o.HD)(e)){r=new Array(e.length);for(let n=0,i=e.length;n<i;n++)r[n]=t(e[n],n,void 0,a&&a[n])}else if("number"===typeof e){0,r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,a&&a[n])}else if((0,o.Kn)(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let i=0,o=n.length;i<o;i++){const o=n[i];r[i]=t(e[o],o,i,a&&a[i])}}else r=[];return n&&(n[i]=r),r}function Mn(e,t){for(let n=0;n<t.length;n++){const i=t[n];if((0,o.kJ)(i))for(let t=0;t<i.length;t++)e[i[t].name]=i[t].fn;else i&&(e[i.name]=i.fn)}return e}function In(e,t,n={},i,o){if(R.isCE||R.parent&&me(R.parent)&&R.parent.isCE)return dn("slot","default"===t?null:{name:t},i&&i());let r=e[t];r&&r._c&&(r._d=!1),Jt();const a=r&&An(r(n)),s=on(jt,{key:n.key||`_${t}`},a||(i?i():[]),a&&1===e._?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),r&&r._c&&(r._d=!0),s}function An(e){return e.some((e=>!rn(e)||e.type!==Yt&&!(e.type===jt&&!An(e.children))))?e:null}const kn=e=>e?Rn(e)?Yn(e)||e.proxy:kn(e.parent):null,Pn=(0,o.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>kn(e.parent),$root:e=>kn(e.root),$emit:e=>e.emit,$options:e=>je(e),$forceUpdate:e=>()=>M(e.update),$nextTick:e=>w.bind(e.proxy),$watch:e=>ie.bind(e)}),Cn={get({_:e},t){const{ctx:n,setupState:r,data:a,props:s,accessCache:l,type:u,appContext:c}=e;let d;if("$"!==t[0]){const i=l[t];if(void 0!==i)switch(i){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(r!==o.kT&&(0,o.RI)(r,t))return l[t]=1,r[t];if(a!==o.kT&&(0,o.RI)(a,t))return l[t]=2,a[t];if((d=e.propsOptions[0])&&(0,o.RI)(d,t))return l[t]=3,s[t];if(n!==o.kT&&(0,o.RI)(n,t))return l[t]=4,n[t];We&&(l[t]=0)}}const h=Pn[t];let f,p;return h?("$attrs"===t&&(0,i.j)(e,"get",t),h(e)):(f=u.__cssModules)&&(f=f[t])?f:n!==o.kT&&(0,o.RI)(n,t)?(l[t]=4,n[t]):(p=c.config.globalProperties,(0,o.RI)(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:i,setupState:r,ctx:a}=e;return r!==o.kT&&(0,o.RI)(r,t)?(r[t]=n,!0):i!==o.kT&&(0,o.RI)(i,t)?(i[t]=n,!0):!(0,o.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:a}},s){let l;return!!n[s]||e!==o.kT&&(0,o.RI)(e,s)||t!==o.kT&&(0,o.RI)(t,s)||(l=a[0])&&(0,o.RI)(l,s)||(0,o.RI)(i,s)||(0,o.RI)(Pn,s)||(0,o.RI)(r.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,o.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const En=yt();let Tn=0;function Nn(e,t,n){const r=e.type,a=(t?t.appContext:e.appContext)||En,s={uid:Tn++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new i.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ot(r,a),emitsOptions:L(r,a),emit:null,emitted:null,propsDefaults:o.kT,inheritAttrs:r.inheritAttrs,ctx:o.kT,data:o.kT,props:o.kT,attrs:o.kT,slots:o.kT,refs:o.kT,setupState:o.kT,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=O.bind(null,s),e.ce&&e.ce(s),s}let Dn=null;const On=()=>Dn||R,Ln=e=>{Dn=e,e.scope.on()},Vn=()=>{Dn&&Dn.scope.off(),Dn=null};function Rn(e){return 4&e.vnode.shapeFlag}let Bn,zn,Wn=!1;function Fn(e,t=!1){Wn=t;const{props:n,children:i}=e.vnode,o=Rn(e);et(e,n,o,t),pt(e,i);const r=o?Un(e,t):void 0;return Wn=!1,r}function Un(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,i.Xl)(new Proxy(e.ctx,Cn));const{setup:a}=n;if(a){const n=e.setupContext=a.length>1?Gn(e):null;Ln(e),(0,i.Jd)();const l=r(a,e,0,[e.props,n]);if((0,i.lk)(),Vn(),(0,o.tI)(l)){if(l.then(Vn,Vn),t)return l.then((n=>{$n(e,n,t)})).catch((t=>{s(t,e,0)}));e.asyncDep=l}else $n(e,l,t)}else Hn(e,t)}function $n(e,t,n){(0,o.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Kn)(t)&&(e.setupState=(0,i.WL)(t)),Hn(e,n)}function Hn(e,t,n){const r=e.type;if(!e.render){if(!t&&Bn&&!r.render){const t=r.template;if(t){0;const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:s}=r,l=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:a},i),s);r.render=Bn(t,l)}}e.render=r.render||o.dG,zn&&zn(e)}Ln(e),(0,i.Jd)(),Fe(e),(0,i.lk)(),Vn()}function jn(e){return new Proxy(e.attrs,{get(t,n){return(0,i.j)(e,"get","$attrs"),t[n]}})}function Gn(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=jn(e))},slots:e.slots,emit:e.emit,expose:t}}function Yn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,i.WL)((0,i.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in Pn?Pn[n](e):void 0}}))}function Zn(e){return(0,o.mf)(e)&&e.displayName||e.name}function qn(e){return(0,o.mf)(e)&&"__vccOpts"in e}const Xn=(e,t)=>(0,i.Fl)(e,t,Wn);function Jn(e,t,n){const i=arguments.length;return 2===i?(0,o.Kn)(t)&&!(0,o.kJ)(t)?rn(t)?dn(e,null,[t]):dn(e,t):dn(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&rn(n)&&(n=[n]),dn(e,t,n))}Symbol("");const Kn="3.2.33"},49963:function(e,t,n){"use strict";n.d(t,{D2:function(){return he},F8:function(){return fe},e8:function(){return oe},iM:function(){return ce},nr:function(){return ie},ri:function(){return ye},uT:function(){return R}});var i=n(3577),o=n(66252);n(2262);const r="http://www.w3.org/2000/svg",a="undefined"!==typeof document?document:null,s=a&&a.createElement("template"),l={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t?a.createElementNS(r,e):a.createElement(e,n?{is:n}:void 0);return"select"===e&&i&&null!=i.multiple&&o.setAttribute("multiple",i.multiple),o},createText:e=>a.createTextNode(e),createComment:e=>a.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>a.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,i,o,r){const a=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling)){while(1)if(t.insertBefore(o.cloneNode(!0),n),o===r||!(o=o.nextSibling))break}else{s.innerHTML=i?`<svg>${e}</svg>`:e;const o=s.content;if(i){const e=o.firstChild;while(e.firstChild)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function u(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function c(e,t,n){const o=e.style,r=(0,i.HD)(n);if(n&&!r){for(const e in n)h(o,e,n[e]);if(t&&!(0,i.HD)(t))for(const e in t)null==n[e]&&h(o,e,"")}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}const d=/\s*!important$/;function h(e,t,n){if((0,i.kJ)(n))n.forEach((n=>h(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=g(e,t);d.test(n)?e.setProperty((0,i.rs)(o),n.replace(d,""),"important"):e[o]=n}}const f=["Webkit","Moz","ms"],p={};function g(e,t){const n=p[t];if(n)return n;let o=(0,i._A)(t);if("filter"!==o&&o in e)return p[t]=o;o=(0,i.kC)(o);for(let i=0;i<f.length;i++){const n=f[i]+o;if(n in e)return p[t]=n}return t}const v="http://www.w3.org/1999/xlink";function m(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(v,t.slice(6,t.length)):e.setAttributeNS(v,t,n);else{const o=(0,i.Pq)(t);null==n||o&&!(0,i.yA)(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function y(e,t,n,o,r,a,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,r,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const i=null==n?"":n;return e.value===i&&"OPTION"!==e.tagName||(e.value=i),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=(0,i.yA)(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{e[t]=n}catch(u){0}l&&e.removeAttribute(t)}const[x,_]=(()=>{let e=Date.now,t=!1;if("undefined"!==typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let b=0;const w=Promise.resolve(),S=()=>{b=0},M=()=>b||(w.then(S),b=x());function I(e,t,n,i){e.addEventListener(t,n,i)}function A(e,t,n,i){e.removeEventListener(t,n,i)}function k(e,t,n,i,o=null){const r=e._vei||(e._vei={}),a=r[t];if(i&&a)a.value=i;else{const[n,s]=C(t);if(i){const a=r[t]=E(i,o);I(e,n,a,s)}else a&&(A(e,n,a,s),r[t]=void 0)}}const P=/(?:Once|Passive|Capture)$/;function C(e){let t;if(P.test(e)){let n;t={};while(n=e.match(P))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,i.rs)(e.slice(2)),t]}function E(e,t){const n=e=>{const i=e.timeStamp||x();(_||i>=n.attached-1)&&(0,o.$d)(T(e,n.value),t,5,[e])};return n.value=e,n.attached=M(),n}function T(e,t){if((0,i.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const N=/^on[a-z]/,D=(e,t,n,o,r=!1,a,s,l,d)=>{"class"===t?u(e,o,r):"style"===t?c(e,n,o):(0,i.F7)(t)?(0,i.tR)(t)||k(e,t,n,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):O(e,t,o,r))?y(e,t,o,a,s,l,d):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),m(e,t,o,r))};function O(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&N.test(t)&&(0,i.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!N.test(t)||!(0,i.HD)(n))&&t in e))))}"undefined"!==typeof HTMLElement&&HTMLElement;const L="transition",V="animation",R=(e,{slots:t})=>(0,o.h)(o.P$,F(e),t);R.displayName="Transition";const B={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},z=(R.props=(0,i.l7)({},o.P$.props,B),(e,t=[])=>{(0,i.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)}),W=e=>!!e&&((0,i.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function F(e){const t={};for(const i in e)i in B||(t[i]=e[i]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=s,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=U(r),v=g&&g[0],m=g&&g[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:_,onLeave:b,onLeaveCancelled:w,onBeforeAppear:S=y,onAppear:M=x,onAppearCancelled:I=_}=t,A=(e,t,n)=>{j(e,t?d:l),j(e,t?c:s),n&&n()},k=(e,t)=>{j(e,p),j(e,f),t&&t()},P=e=>(t,n)=>{const i=e?M:x,r=()=>A(t,e,n);z(i,[t,r]),G((()=>{j(t,e?u:a),H(t,e?d:l),W(i)||Z(t,o,v,r)}))};return(0,i.l7)(t,{onBeforeEnter(e){z(y,[e]),H(e,a),H(e,s)},onBeforeAppear(e){z(S,[e]),H(e,u),H(e,c)},onEnter:P(!1),onAppear:P(!0),onLeave(e,t){const n=()=>k(e,t);H(e,h),K(),H(e,f),G((()=>{j(e,h),H(e,p),W(b)||Z(e,o,m,n)})),z(b,[e,n])},onEnterCancelled(e){A(e,!1),z(_,[e])},onAppearCancelled(e){A(e,!0),z(I,[e])},onLeaveCancelled(e){k(e),z(w,[e])}})}function U(e){if(null==e)return null;if((0,i.Kn)(e))return[$(e.enter),$(e.leave)];{const t=$(e);return[t,t]}}function $(e){const t=(0,i.He)(e);return t}function H(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function j(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function G(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Y=0;function Z(e,t,n,i){const o=e._endId=++Y,r=()=>{o===e._endId&&i()};if(n)return setTimeout(r,n);const{type:a,timeout:s,propCount:l}=q(e,t);if(!a)return i();const u=a+"end";let c=0;const d=()=>{e.removeEventListener(u,h),r()},h=t=>{t.target===e&&++c>=l&&d()};setTimeout((()=>{c<l&&d()}),s+1),e.addEventListener(u,h)}function q(e,t){const n=window.getComputedStyle(e),i=e=>(n[e]||"").split(", "),o=i(L+"Delay"),r=i(L+"Duration"),a=X(o,r),s=i(V+"Delay"),l=i(V+"Duration"),u=X(s,l);let c=null,d=0,h=0;t===L?a>0&&(c=L,d=a,h=r.length):t===V?u>0&&(c=V,d=u,h=l.length):(d=Math.max(a,u),c=d>0?a>u?L:V:null,h=c?c===L?r.length:l.length:0);const f=c===L&&/\b(transform|all)(,|$)/.test(n[L+"Property"]);return{type:c,timeout:d,propCount:h,hasTransform:f}}function X(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map(((t,n)=>J(t)+J(e[n]))))}function J(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function K(){return document.body.offsetHeight}new WeakMap,new WeakMap;const Q=e=>{const t=e.props["onUpdate:modelValue"];return(0,i.kJ)(t)?e=>(0,i.ir)(t,e):t};function ee(e){e.target.composing=!0}function te(e){const t=e.target;t.composing&&(t.composing=!1,ne(t,"input"))}function ne(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}const ie={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Q(r);const a=o||r.props&&"number"===r.props.type;I(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n?o=o.trim():a&&(o=(0,i.He)(o)),e._assign(o)})),n&&I(e,"change",(()=>{e.value=e.value.trim()})),t||(I(e,"compositionstart",ee),I(e,"compositionend",te),I(e,"change",te))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},a){if(e._assign=Q(a),e.composing)return;if(document.activeElement===e){if(n)return;if(o&&e.value.trim()===t)return;if((r||"number"===e.type)&&(0,i.He)(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},oe={deep:!0,created(e,t,n){e._assign=Q(n),I(e,"change",(()=>{const t=e._modelValue,n=ae(e),o=e.checked,r=e._assign;if((0,i.kJ)(t)){const e=(0,i.hq)(t,n),a=-1!==e;if(o&&!a)r(t.concat(n));else if(!o&&a){const n=[...t];n.splice(e,1),r(n)}}else if((0,i.DM)(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(se(e,o))}))},mounted:re,beforeUpdate(e,t,n){e._assign=Q(n),re(e,t,n)}};function re(e,{value:t,oldValue:n},o){e._modelValue=t,(0,i.kJ)(t)?e.checked=(0,i.hq)(t,o.props.value)>-1:(0,i.DM)(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=(0,i.WV)(t,se(e,!0)))}function ae(e){return"_value"in e?e._value:e.value}function se(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const le=["ctrl","shift","alt","meta"],ue={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>le.some((n=>e[`${n}Key`]&&!t.includes(n)))},ce=(e,t)=>(n,...i)=>{for(let e=0;e<t.length;e++){const i=ue[t[e]];if(i&&i(n,t))return}return e(n,...i)},de={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},he=(e,t)=>n=>{if(!("key"in n))return;const o=(0,i.rs)(n.key);return t.some((e=>e===o||de[e]===o))?e(n):void 0},fe={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):pe(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!==!n&&(i?t?(i.beforeEnter(e),pe(e,!0),i.enter(e)):i.leave(e,(()=>{pe(e,!1)})):pe(e,t))},beforeUnmount(e,{value:t}){pe(e,t)}};function pe(e,t){e.style.display=t?e._vod:"none"}const ge=(0,i.l7)({patchProp:D},l);let ve;function me(){return ve||(ve=(0,o.Us)(ge))}const ye=(...e)=>{const t=me().createApp(...e);const{mount:n}=t;return t.mount=e=>{const o=xe(e);if(!o)return;const r=t._component;(0,i.mf)(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function xe(e){if((0,i.HD)(e)){const t=document.querySelector(e);return t}return e}},3577:function(e,t,n){"use strict";function i(e,t){const n=Object.create(null),i=e.split(",");for(let o=0;o<i.length;o++)n[i[o]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{C_:function(){return f},DM:function(){return N},E9:function(){return ie},F7:function(){return M},Gg:function(){return H},HD:function(){return L},He:function(){return te},Kn:function(){return R},NO:function(){return w},Nj:function(){return ee},Od:function(){return k},PO:function(){return U},Pq:function(){return s},RI:function(){return C},S0:function(){return $},W7:function(){return F},WV:function(){return g},Z6:function(){return _},_A:function(){return Y},_N:function(){return T},aU:function(){return K},dG:function(){return b},e1:function(){return r},fY:function(){return i},hR:function(){return J},hq:function(){return v},ir:function(){return Q},j5:function(){return u},kC:function(){return X},kJ:function(){return E},kT:function(){return x},l7:function(){return A},mf:function(){return O},rs:function(){return q},tI:function(){return B},tR:function(){return I},yA:function(){return l},yk:function(){return V},zw:function(){return m}});const o="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",r=i(o);const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",s=i(a);function l(e){return!!e||""===e}function u(e){if(E(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=L(i)?h(i):u(i);if(o)for(const e in o)t[e]=o[e]}return t}return L(e)||R(e)?e:void 0}const c=/;(?![^(]*\))/g,d=/:(.+)/;function h(e){const t={};return e.split(c).forEach((e=>{if(e){const n=e.split(d);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function f(e){let t="";if(L(e))t=e;else if(E(e))for(let n=0;n<e.length;n++){const i=f(e[n]);i&&(t+=i+" ")}else if(R(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function p(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=g(e[i],t[i]);return n}function g(e,t){if(e===t)return!0;let n=D(e),i=D(t);if(n||i)return!(!n||!i)&&e.getTime()===t.getTime();if(n=E(e),i=E(t),n||i)return!(!n||!i)&&p(e,t);if(n=R(e),i=R(t),n||i){if(!n||!i)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const n in e){const i=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(i&&!o||!i&&o||!g(e[n],t[n]))return!1}}return String(e)===String(t)}function v(e,t){return e.findIndex((e=>g(e,t)))}const m=e=>L(e)?e:null==e?"":E(e)||R(e)&&(e.toString===z||!O(e.toString))?JSON.stringify(e,y,2):String(e),y=(e,t)=>t&&t.__v_isRef?y(e,t.value):T(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:N(t)?{[`Set(${t.size})`]:[...t.values()]}:!R(t)||E(t)||U(t)?t:String(t),x={},_=[],b=()=>{},w=()=>!1,S=/^on[^a-z]/,M=e=>S.test(e),I=e=>e.startsWith("onUpdate:"),A=Object.assign,k=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},P=Object.prototype.hasOwnProperty,C=(e,t)=>P.call(e,t),E=Array.isArray,T=e=>"[object Map]"===W(e),N=e=>"[object Set]"===W(e),D=e=>e instanceof Date,O=e=>"function"===typeof e,L=e=>"string"===typeof e,V=e=>"symbol"===typeof e,R=e=>null!==e&&"object"===typeof e,B=e=>R(e)&&O(e.then)&&O(e.catch),z=Object.prototype.toString,W=e=>z.call(e),F=e=>W(e).slice(8,-1),U=e=>"[object Object]"===W(e),$=e=>L(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,H=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j=e=>{const t=Object.create(null);return n=>{const i=t[n];return i||(t[n]=e(n))}},G=/-(\w)/g,Y=j((e=>e.replace(G,((e,t)=>t?t.toUpperCase():"")))),Z=/\B([A-Z])/g,q=j((e=>e.replace(Z,"-$1").toLowerCase())),X=j((e=>e.charAt(0).toUpperCase()+e.slice(1))),J=j((e=>e?`on${X(e)}`:"")),K=(e,t)=>!Object.is(e,t),Q=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ee=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},te=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ne;const ie=()=>ne||(ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},9669:function(e,t,n){e.exports=n(51609)},55448:function(e,t,n){"use strict";var i=n(64867),o=n(36026),r=n(4372),a=n(15327),s=n(94097),l=n(84109),u=n(67985),c=n(77874),d=n(82648),h=n(60644),f=n(90205);e.exports=function(e){return new Promise((function(t,n){var p,g=e.data,v=e.headers,m=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}i.isFormData(g)&&i.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+b)}var w=s(e.baseURL,e.url);function S(){if(x){var i="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null,r=m&&"text"!==m&&"json"!==m?x.response:x.responseText,a={data:r,status:x.status,statusText:x.statusText,headers:i,config:e,request:x};o((function(e){t(e),y()}),(function(e){n(e),y()}),a),x=null}}if(x.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=S:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(S)},x.onabort=function(){x&&(n(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,x,x)),x=null},x.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,i.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,x)),x=null},i.isStandardBrowserEnv()){var M=(e.withCredentials||u(w))&&e.xsrfCookieName?r.read(e.xsrfCookieName):void 0;M&&(v[e.xsrfHeaderName]=M)}"setRequestHeader"in x&&i.forEach(v,(function(e,t){"undefined"===typeof g&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),m&&"json"!==m&&(x.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){x&&(n(!e||e&&e.type?new h:e),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),g||(g=null);var I=f(w);I&&-1===["http","https","file"].indexOf(I)?n(new d("Unsupported protocol "+I+":",d.ERR_BAD_REQUEST,e)):x.send(g)}))}},51609:function(e,t,n){"use strict";var i=n(64867),o=n(91849),r=n(30321),a=n(47185),s=n(45546);function l(e){var t=new r(e),n=o(r.prototype.request,t);return i.extend(n,r.prototype,t),i.extend(n,t),n.create=function(t){return l(a(e,t))},n}var u=l(s);u.Axios=r,u.CanceledError=n(60644),u.CancelToken=n(14972),u.isCancel=n(26502),u.VERSION=n(97288).version,u.toFormData=n(47675),u.AxiosError=n(82648),u.Cancel=u.CanceledError,u.all=function(e){return Promise.all(e)},u.spread=n(8713),u.isAxiosError=n(16268),e.exports=u,e.exports["default"]=u},14972:function(e,t,n){"use strict";var i=n(60644);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t<i;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,i=new Promise((function(e){n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e,t=new o((function(t){e=t}));return{token:t,cancel:e}},e.exports=o},60644:function(e,t,n){"use strict";var i=n(82648),o=n(64867);function r(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}o.inherits(r,i,{__CANCEL__:!0}),e.exports=r},26502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:function(e,t,n){"use strict";var i=n(64867),o=n(15327),r=n(80782),a=n(13572),s=n(47185),l=n(94097),u=n(54875),c=u.validators;function d(e){this.defaults=e,this.interceptors={request:new r,response:new r}}d.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var r,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var d=[a,void 0];Array.prototype.unshift.apply(d,i),d=d.concat(l),r=Promise.resolve(t);while(d.length)r=r.then(d.shift(),d.shift());return r}var h=t;while(i.length){var f=i.shift(),p=i.shift();try{h=f(h)}catch(g){p(g);break}}try{r=a(h)}catch(g){return Promise.reject(g)}while(l.length)r=r.then(l.shift(),l.shift());return r},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},82648:function(e,t,n){"use strict";var i=n(64867);function o(e,t,n,i,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}i.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(r,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,s,l){var u=Object.create(r);return i.toFlatObject(e,u,(function(e){return e!==Error.prototype})),o.call(u,e.message,t,n,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=o},80782:function(e,t,n){"use strict";var i=n(64867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},94097:function(e,t,n){"use strict";var i=n(91793),o=n(7303);e.exports=function(e,t){return e&&!i(t)?o(e,t):t}},13572:function(e,t,n){"use strict";var i=n(64867),o=n(18527),r=n(26502),a=n(45546),s=n(60644);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return r(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},47185:function(e,t,n){"use strict";var i=n(64867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function r(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!i.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||r,o=t(e);i.isUndefined(o)&&t!==l||(n[e]=o)})),n}},36026:function(e,t,n){"use strict";var i=n(82648);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},18527:function(e,t,n){"use strict";var i=n(64867),o=n(45546);e.exports=function(e,t,n){var r=this||o;return i.forEach(n,(function(n){e=n.call(r,e,t)})),e}},45546:function(e,t,n){"use strict";var i=n(64867),o=n(16016),r=n(82648),a=n(77874),s=n(47675),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(55448)),e}function d(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}var h={transitional:a,adapter:c(),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=i.isObject(e),a=t&&t["Content-Type"];if((n=i.isFileList(e))||r&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,l&&new l)}return r||"application/json"===a?(u(t,"application/json"),d(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw r.from(s,r.ERR_BAD_RESPONSE,this,null,this.response);throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(91623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){h.headers[e]=i.merge(l)})),e.exports=h},77874:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},97288:function(e){e.exports={version:"0.27.2"}},91849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},15327:function(e,t,n){"use strict";var i=n(64867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(i.isURLSearchParams(t))r=t.toString();else{var a=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),r=a.join("&")}if(r){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var i=n(64867);e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,r,a){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(o)&&s.push("path="+o),i.isString(r)&&s.push("domain="+r),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},16268:function(e,t,n){"use strict";var i=n(64867);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},67985:function(e,t,n){"use strict";var i=n(64867);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=i.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},16016:function(e,t,n){"use strict";var i=n(64867);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},91623:function(e){e.exports=null},84109:function(e,t,n){"use strict";var i=n(64867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,r,a={};return e?(i.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=i.trim(e.substr(0,r)).toLowerCase(),n=i.trim(e.substr(r+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},90205:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},47675:function(e,t,n){"use strict";var i=n(64867);function o(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function r(e,a){if(i.isPlainObject(e)||i.isArray(e)){if(-1!==n.indexOf(e))throw Error("Circular reference detected in "+a);n.push(e),i.forEach(e,(function(e,n){if(!i.isUndefined(e)){var s,l=a?a+"."+n:n;if(e&&!a&&"object"===typeof e)if(i.endsWith(n,"{}"))e=JSON.stringify(e);else if(i.endsWith(n,"[]")&&(s=i.toArray(e)))return void s.forEach((function(e){!i.isUndefined(e)&&t.append(l,o(e))}));r(e,l)}})),n.pop()}else t.append(a,o(e))}return r(e),t}e.exports=o},54875:function(e,t,n){"use strict";var i=n(97288).version,o=n(82648),r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};function s(e,t,n){if("object"!==typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);var i=Object.keys(e),r=i.length;while(r-- >0){var a=i[r],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}}r.transitional=function(e,t,n){function r(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new o(r(i," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[i]&&(a[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={assertOptions:s,validators:r}},64867:function(e,t,n){"use strict";var i=n(91849),o=Object.prototype.toString,r=function(e){return function(t){var n=o.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function a(e){return e=e.toLowerCase(),function(t){return r(t)===e}}function s(e){return Array.isArray(e)}function l(e){return"undefined"===typeof e}function u(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var c=a("ArrayBuffer");function d(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t}function h(e){return"string"===typeof e}function f(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function g(e){if("object"!==r(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var v=a("Date"),m=a("File"),y=a("Blob"),x=a("FileList");function _(e){return"[object Function]"===o.call(e)}function b(e){return p(e)&&_(e.pipe)}function w(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||o.call(e)===t||_(e.toString)&&e.toString()===t)}var S=a("URLSearchParams");function M(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function I(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function A(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),s(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function k(){var e={};function t(t,n){g(e[n])&&g(t)?e[n]=k(e[n],t):g(t)?e[n]=k({},t):s(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)A(arguments[n],t);return e}function P(e,t,n){return A(t,(function(t,o){e[o]=n&&"function"===typeof t?i(t,n):t})),e}function C(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}function E(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function T(e,t,n){var i,o,r,a={};t=t||{};do{i=Object.getOwnPropertyNames(e),o=i.length;while(o-- >0)r=i[o],a[r]||(t[r]=e[r],a[r]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function N(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n}function D(e){if(!e)return null;var t=e.length;if(l(t))return null;var n=new Array(t);while(t-- >0)n[t]=e[t];return n}var O=function(e){return function(t){return e&&t instanceof e}}("undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array));e.exports={isArray:s,isArrayBuffer:c,isBuffer:u,isFormData:w,isArrayBufferView:d,isString:h,isNumber:f,isObject:p,isPlainObject:g,isUndefined:l,isDate:v,isFile:m,isBlob:y,isFunction:_,isStream:b,isURLSearchParams:S,isStandardBrowserEnv:I,forEach:A,merge:k,extend:P,trim:M,stripBOM:C,inherits:E,toFlatObject:T,kindOf:r,kindOfTest:a,endsWith:N,toArray:D,isTypedArray:O,isFileList:x}},12350:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiObj=void 0;var i=n(19468),o=n(83903),r=n(468),a=n(11340),s=n(71321),l=n(14244),u=n(83210),c=n(4079),d=n(39195),h=n(81479),f=n(22674),p=n(51297),g=n(25764),v=n(73234),m=n(52559),y=n(61761),x=n(7452),_=n(74965),b=n(7523),w=n(62222),S=n(3898),M=n(77732),I=n(13089),A=n(34247),k=n(96514),P=n(49219),C=n(1171),E=n(16471),T=n(35559),N=n(10672),D=n(34313),O=n(70791),L=n(65638),V=n(90314),R=n(89091),B=n(92008),z=n(42451),W=n(23738),F=n(3498),U=n(13042),$=n(96141),H=n(43481),j=n(3581),G=n(32406),Y=n(21804),Z=n(3171),q=n(1134),X=n(73484),J=n(18633),K=n(63046),Q=n(90569),ee=n(75210),te=n(46281),ne=n(53307),ie=n(16765),oe=n(19191),re=n(70972),ae=n(51524),se=n(6231),le=n(60901),ue=n(29573),ce=n(3006),de=n(63311),he=n(14409),fe=n(43503),pe=n(67522),ge=n(99387),ve=n(90531),me=n(37237),ye=n(3675),xe=n(73433),_e=n(57266),be=n(25416),we=n(41688),Se=n(38653),Me=n(46630),Ie=n(33765),Ae=n(43121),ke=n(8622),Pe=n(20195),Ce=n(81316),Ee=n(93457),Te=n(20903),Ne=n(5216),De=n(22658),Oe=n(86080),Le=n(51180),Ve=n(63418),Re=n(81171),Be=n(79745),ze=n(81621),We=n(65736),Fe=n(11611),Ue=n(17180),$e=n(34680),He=n(74861),je=n(74345),Ge=n(45267),Ye=n(55791),Ze=n(73736),qe=n(20271),Xe=n(62354),Je=n(22441),Ke=n(74032),Qe=n(63259),et=n(51746),tt=n(79427),nt=n(27129),it=n(74542),ot=n(24158),rt=n(57707),at=n(151),st=n(57748),lt=n(92457),ut=n(58976),ct=n(58228),dt=n(26325),ht=n(68417),ft=n(58211),pt=n(76264),gt=n(55513),vt=n(54696),mt=n(27792),yt=n(16806),xt=n(72117),_t=n(13766),bt=n(61915),wt=n(28540),St=n(73814),Mt=n(39744),It=n(82003),At=n(49216),kt=n(18487),Pt=n(82548),Ct=n(18735),Et=n(11597),Tt=n(72529),Nt=n(58719),Dt=n(84360),Ot=n(72704),Lt=n(15859),Vt=n(59960),Rt=n(74347),Bt=n(70583),zt=n(95654),Wt=n(69924),Ft=n(25602),Ut=n(84971),$t=n(43681),Ht=n(32586),jt=n(29238),Gt=n(50012),Yt=n(18289),Zt=n(74607),qt=n(6436),Xt=n(6177),Jt=n(3013),Kt=n(24597),Qt=n(20663),en=n(86285),tn=n(56886),nn=n(93967),on=n(10940),rn=n(11500),an=n(35508),sn=n(43379),ln=n(29610),un=n(12573),cn=n(19484),dn=n(75917),hn=n(9434),fn=n(12360),pn=n(34218),gn=n(70796),vn=n(12947),mn=n(15955),yn=n(22260),xn=n(64726),_n=n(53886),bn=n(98484),wn=n(20623),Sn=n(83843),Mn=n(2688),In=n(84905),An=n(37676),kn=n(50374),Pn=n(85486),Cn=n(61699),En=n(19285),Tn=n(28095),Nn=n(12517),Dn=n(42533),On=n(56925),Ln=n(29964),Vn=n(87626),Rn=n(43969),Bn=n(89710),zn=n(94714),Wn=n(4419),Fn=n(56257),Un=n(1737),$n=n(78506),Hn=n(6463),jn=n(70907),Gn=n(63741),Yn=n(62093),Zn=n(85279),qn=n(44145),Xn=n(65818),Jn=n(87384),Kn=n(48700);t.apiObj={biz:{ATMBle:{beaconPicker:i.beaconPicker$,detectFace:o.detectFace$,detectFaceFullScreen:r.detectFaceFullScreen$,faceManager:a.faceManager$,punchModePicker:s.punchModePicker$},alipay:{bindAlipay:l.bindAlipay$,openAuth:u.openAuth$,pay:c.pay$},auth:{openAccountPwdLoginPage:d.openAccountPwdLoginPage$,requestAuthInfo:h.requestAuthInfo$},calendar:{chooseDateTime:f.chooseDateTime$,chooseHalfDay:p.chooseHalfDay$,chooseInterval:g.chooseInterval$,chooseOneDay:v.chooseOneDay$},chat:{chooseConversationByCorpId:m.chooseConversationByCorpId$,collectSticker:y.collectSticker$,createSceneGroup:x.createSceneGroup$,getRealmCid:_.getRealmCid$,locationChatMessage:b.locationChatMessage$,openSingleChat:w.openSingleChat$,pickConversation:S.pickConversation$,sendEmotion:M.sendEmotion$,toConversation:I.toConversation$,toConversationByOpenConversationId:A.toConversationByOpenConversationId$},clipboardData:{setData:k.setData$},conference:{createCloudCall:P.createCloudCall$,getCloudCallInfo:C.getCloudCallInfo$,getCloudCallList:E.getCloudCallList$,videoConfCall:T.videoConfCall$},contact:{choose:N.choose$,chooseMobileContacts:D.chooseMobileContacts$,complexPicker:O.complexPicker$,createGroup:L.createGroup$,departmentsPicker:V.departmentsPicker$,externalComplexPicker:R.externalComplexPicker$,externalEditForm:B.externalEditForm$,rolesPicker:z.rolesPicker$,setRule:W.setRule$},cspace:{chooseSpaceDir:F.chooseSpaceDir$,delete:U.delete$,preview:$.preview$,saveFile:H.saveFile$},customContact:{choose:j.choose$,multipleChoose:G.multipleChoose$},ding:{create:Y.create$,post:Z.post$},edu:{finishMiniCourseByRecordId:q.finishMiniCourseByRecordId$,getMiniCourseDraftList:X.getMiniCourseDraftList$,joinClassroom:J.joinClassroom$,makeMiniCourse:K.makeMiniCourse$,newMsgNotificationStatus:Q.newMsgNotificationStatus$,startAuth:ee.startAuth$,tokenFaceImg:te.tokenFaceImg$},event:{notifyWeex:ne.notifyWeex$},intent:{fetchData:ie.fetchData$},iot:{bind:oe.bind$,bindMeetingRoom:re.bindMeetingRoom$,getDeviceProperties:ae.getDeviceProperties$,invokeThingService:se.invokeThingService$,queryMeetingRoomList:le.queryMeetingRoomList$,setDeviceProperties:ue.setDeviceProperties$,unbind:ce.unbind$},live:{startClassRoom:de.startClassRoom$,startUnifiedLive:he.startUnifiedLive$},map:{locate:fe.locate$,search:pe.search$,view:ge.view$},media:{compressVideo:ve.compressVideo$},microApp:{openApp:me.openApp$},navigation:{close:ye.close$,goBack:xe.goBack$,hideBar:_e.hideBar$,navigateToMiniProgram:be.navigateToMiniProgram$,quit:we.quit$,replace:Se.replace$,setIcon:Me.setIcon$,setLeft:Ie.setLeft$,setMenu:Ae.setMenu$,setRight:ke.setRight$,setTitle:Pe.setTitle$},pbp:{componentPunchFromPartner:Ce.componentPunchFromPartner$,startMatchRuleFromPartner:Ee.startMatchRuleFromPartner$,stopMatchRuleFromPartner:Te.stopMatchRuleFromPartner$},realm:{getRealtimeTracingStatus:Ne.getRealtimeTracingStatus$,getUserExclusiveInfo:De.getUserExclusiveInfo$,startRealtimeTracing:Oe.startRealtimeTracing$,stopRealtimeTracing:Le.stopRealtimeTracing$,subscribe:Ve.subscribe$,unsubscribe:Re.unsubscribe$},shortCut:{addShortCut:Be.addShortCut$},store:{closeUnpayOrder:ze.closeUnpayOrder$,createOrder:We.createOrder$,getPayUrl:Fe.getPayUrl$,inquiry:Ue.inquiry$},telephone:{call:$e.call$,checkBizCall:He.checkBizCall$,quickCallList:je.quickCallList$,showCallMenu:Ge.showCallMenu$},user:{checkPassword:Ye.checkPassword$,get:Ze.get$},util:{callComponent:qe.callComponent$,chooseImage:Xe.chooseImage$,chosen:Je.chosen$,clearWebStoreCache:Ke.clearWebStoreCache$,closePreviewImage:Qe.closePreviewImage$,datepicker:et.datepicker$,datetimepicker:tt.datetimepicker$,decrypt:nt.decrypt$,downloadFile:it.downloadFile$,encrypt:ot.encrypt$,getPerfInfo:rt.getPerfInfo$,invokeWorkbench:at.invokeWorkbench$,isEnableGPUAcceleration:st.isEnableGPUAcceleration$,isLocalFileExist:lt.isLocalFileExist$,multiSelect:ut.multiSelect$,open:ct.open$,openLink:dt.openLink$,openLocalFile:ht.openLocalFile$,openModal:ft.openModal$,openSlidePanel:pt.openSlidePanel$,presentWindow:gt.presentWindow$,previewImage:vt.previewImage$,previewVideo:mt.previewVideo$,saveImage:yt.saveImage$,scan:xt.scan$,scanCard:_t.scanCard$,setGPUAcceleration:bt.setGPUAcceleration$,setScreenBrightnessAndKeepOn:wt.setScreenBrightnessAndKeepOn$,setScreenKeepOn:St.setScreenKeepOn$,share:Mt.share$,shareImage:It.shareImage$,startDocSign:At.startDocSign$,systemShare:kt.systemShare$,timepicker:Pt.timepicker$,uploadAttachment:Ct.uploadAttachment$,uploadImage:Et.uploadImage$,uploadImageFromCamera:Tt.uploadImageFromCamera$,ut:Nt.ut$},verify:{openBindIDCard:Dt.openBindIDCard$,startAuth:Ot.startAuth$}},channel:{permission:{requestAuthCode:Lt.requestAuthCode$}},device:{accelerometer:{clearShake:Vt.clearShake$,watchShake:Rt.watchShake$},audio:{download:Bt.download$,onPlayEnd:zt.onPlayEnd$,onRecordEnd:Wt.onRecordEnd$,pause:Ft.pause$,play:Ut.play$,resume:$t.resume$,startRecord:Ht.startRecord$,stop:jt.stop$,stopRecord:Gt.stopRecord$,translateVoice:Yt.translateVoice$},base:{getInterface:Zt.getInterface$,getPhoneInfo:qt.getPhoneInfo$,getUUID:Xt.getUUID$,getWifiStatus:Jt.getWifiStatus$,openSystemSetting:Kt.openSystemSetting$},connection:{getNetworkType:Qt.getNetworkType$},geolocation:{checkPermission:en.checkPermission$,get:tn.get$,start:nn.start$,status:on.status$,stop:rn.stop$},launcher:{checkInstalledApps:an.checkInstalledApps$,launchApp:sn.launchApp$},nfc:{nfcRead:ln.nfcRead$,nfcStop:un.nfcStop$,nfcWrite:cn.nfcWrite$},notification:{actionSheet:dn.actionSheet$,alert:hn.alert$,confirm:fn.confirm$,extendModal:pn.extendModal$,hidePreloader:gn.hidePreloader$,modal:vn.modal$,prompt:mn.prompt$,showPreloader:yn.showPreloader$,toast:xn.toast$,vibrate:_n.vibrate$},screen:{insetAdjust:bn.insetAdjust$,resetView:wn.resetView$,rotateView:Sn.rotateView$}},media:{voiceRecorder:{keepAlive:Mn.keepAlive$,pause:In.pause$,resume:An.resume$,start:kn.start$,stop:Pn.stop$}},net:{bjGovApn:{loginGovNet:Cn.loginGovNet$}},runtime:{message:{fetch:En.fetch$,post:Tn.post$},monitor:{getLoadTime:Nn.getLoadTime$},permission:{requestAuthCode:Dn.requestAuthCode$,requestOperateAuthCode:On.requestOperateAuthCode$}},ui:{input:{plain:Ln.plain$},multitask:{addToFloat:Vn.addToFloat$,removeFromFloat:Rn.removeFromFloat$},nav:{close:Bn.close$,getCurrentId:zn.getCurrentId$,go:Wn.go$,preload:Fn.preload$,recycle:Un.recycle$},progressBar:{setColors:$n.setColors$},pullToRefresh:{disable:Hn.disable$,enable:jn.enable$,stop:Gn.stop$},webViewBounce:{disable:Yn.disable$,enable:Zn.enable$}},util:{domainStorage:{getItem:qn.getItem$,removeItem:Xn.removeItem$,setItem:Jn.setItem$},openTemporary:{getData:Kn.getData$}}}},19468:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.beaconPicker$=void 0;var r=n(95774),a="biz.ATMBle.beaconPicker";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.0.7"},o[r.ENV_ENUM.android]={vs:"5.0.7"},o)),t.beaconPicker$=i,t["default"]=i},83903:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.detectFace$=void 0;var r=n(95774),a="biz.ATMBle.detectFace";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.18"},o[r.ENV_ENUM.android]={vs:"5.1.18"},o)),t.detectFace$=i,t["default"]=i},468:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.detectFaceFullScreen$=void 0;var r=n(95774),a="biz.ATMBle.detectFaceFullScreen";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.18"},o[r.ENV_ENUM.android]={vs:"5.1.18"},o)),t.detectFaceFullScreen$=i,t["default"]=i},11340:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.faceManager$=void 0;var r=n(95774),a="biz.ATMBle.faceManager";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.0.7"},o[r.ENV_ENUM.android]={vs:"5.0.7"},o)),t.faceManager$=i,t["default"]=i},71321:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.punchModePicker$=void 0;var r=n(95774),a="biz.ATMBle.punchModePicker";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.0.7"},o[r.ENV_ENUM.android]={vs:"5.0.7"},o)),t.punchModePicker$=i,t["default"]=i},14244:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.bindAlipay$=void 0;var r=n(95774),a="biz.alipay.bindAlipay";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.3.15"},o[r.ENV_ENUM.android]={vs:"6.3.15"},o)),t.bindAlipay$=i,t["default"]=i},83210:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.openAuth$=void 0;var r=n(95774),a="biz.alipay.openAuth";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.8"},o[r.ENV_ENUM.android]={vs:"5.1.8"},o)),t.openAuth$=i,t["default"]=i},4079:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.pay$=void 0;var r=n(95774),a="biz.alipay.pay";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.pay$=i,t["default"]=i},39195:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.openAccountPwdLoginPage$=void 0;var r=n(95774),a="biz.auth.openAccountPwdLoginPage";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.3.0"},o[r.ENV_ENUM.android]={vs:"6.3.0"},o)),t.openAccountPwdLoginPage$=i,t["default"]=i},81479:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.requestAuthInfo$=void 0;var r=n(95774),a="biz.auth.requestAuthInfo";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.19"},o[r.ENV_ENUM.android]={vs:"5.1.19"},o)),t.requestAuthInfo$=i,t["default"]=i},22674:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseDateTime$=void 0;var r=n(95774),a=n(37179),s="biz.calendar.chooseDateTime";r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},o[r.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},o)),t.chooseDateTime$=i,t["default"]=i},51297:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseHalfDay$=void 0;var r=n(95774),a=n(37179),s="biz.calendar.chooseHalfDay";r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},o[r.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},o)),t.chooseHalfDay$=i,t["default"]=i},25764:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseInterval$=void 0;var r=n(95774),a=n(37179),s="biz.calendar.chooseInterval";r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},o[r.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},o)),t.chooseInterval$=i,t["default"]=i},73234:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseOneDay$=void 0;var r=n(95774),a=n(37179),s="biz.calendar.chooseOneDay";r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},o[r.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:a.addDefaultCorpIdParamsDeal},o)),t.chooseOneDay$=i,t["default"]=i},52559:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseConversationByCorpId$=void 0;var r=n(95774),a=n(37179),s="biz.chat.chooseConversationByCorpId",l=a.genDefaultParamsDealFn({max:50});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"2.6.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.6.0",paramsDeal:l},o[r.ENV_ENUM.pc]={vs:"4.7.11",paramsDeal:l},o)),t.chooseConversationByCorpId$=i,t["default"]=i},61761:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.collectSticker$=void 0;var r=n(95774),a="biz.chat.collectSticker";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.25"},o[r.ENV_ENUM.android]={vs:"4.6.25"},o)),t.collectSticker$=i,t["default"]=i},7452:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.createSceneGroup$=void 0;var r=n(95774),a="biz.chat.createSceneGroup";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.7.17"},o[r.ENV_ENUM.android]={vs:"4.7.17"},o[r.ENV_ENUM.pc]={vs:"4.7.17"},o)),t.createSceneGroup$=i,t["default"]=i},74965:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getRealmCid$=void 0;var r=n(95774),a="biz.chat.getRealmCid";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.7.12"},o[r.ENV_ENUM.android]={vs:"4.7.12"},o[r.ENV_ENUM.pc]={vs:"4.7.12"},o)),t.getRealmCid$=i,t["default"]=i},7523:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.locationChatMessage$=void 0;var r=n(95774),a="biz.chat.locationChatMessage";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.7.6"},o[r.ENV_ENUM.android]={vs:"2.7.6"},o)),t.locationChatMessage$=i,t["default"]=i},62222:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.openSingleChat$=void 0;var r=n(95774),a="biz.chat.openSingleChat";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.4.10"},o[r.ENV_ENUM.android]={vs:"3.4.10"},o)),t.openSingleChat$=i,t["default"]=i},3898:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.pickConversation$=void 0;var r=n(95774),a="biz.chat.pickConversation";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.2"},o[r.ENV_ENUM.android]={vs:"2.4.2"},o[r.ENV_ENUM.pc]={vs:"4.7.9"},o)),t.pickConversation$=i,t["default"]=i},77732:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.sendEmotion$=void 0;var r=n(95774),a="biz.chat.sendEmotion";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.12"},o[r.ENV_ENUM.android]={vs:"4.6.12"},o)),t.sendEmotion$=i,t["default"]=i},13089:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.toConversation$=void 0;var r=n(95774),a="biz.chat.toConversation";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.6.0"},o[r.ENV_ENUM.android]={vs:"2.6.0"},o)),t.toConversation$=i,t["default"]=i},34247:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.toConversationByOpenConversationId$=void 0;var r=n(95774),a="biz.chat.toConversationByOpenConversationId";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.30"},o[r.ENV_ENUM.android]={vs:"5.1.30"},o[r.ENV_ENUM.pc]={vs:"5.1.33"},o)),t.toConversationByOpenConversationId$=i,t["default"]=i},96514:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setData$=void 0;var r=n(95774),a="biz.clipboardData.setData";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.7.0"},o[r.ENV_ENUM.android]={vs:"2.7.0"},o[r.ENV_ENUM.pc]={vs:"4.6.1"},o)),t.setData$=i,t["default"]=i},49219:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.createCloudCall$=void 0;var r=n(95774),a="biz.conference.createCloudCall";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.0.0"},o[r.ENV_ENUM.android]={vs:"6.0.0"},o[r.ENV_ENUM.pc]={vs:"6.0.9"},o)),t.createCloudCall$=i,t["default"]=i},1171:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getCloudCallInfo$=void 0;var r=n(95774),a="biz.conference.getCloudCallInfo";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.0.0"},o[r.ENV_ENUM.android]={vs:"6.0.0"},o[r.ENV_ENUM.pc]={vs:"6.0.9"},o)),t.getCloudCallInfo$=i,t["default"]=i},16471:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getCloudCallList$=void 0;var r=n(95774),a="biz.conference.getCloudCallList";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.0.0"},o[r.ENV_ENUM.android]={vs:"6.0.0"},o[r.ENV_ENUM.pc]={vs:"6.0.9"},o)),t.getCloudCallList$=i,t["default"]=i},35559:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.videoConfCall$=void 0;var r=n(95774),a="biz.conference.videoConfCall";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.0.8"},o[r.ENV_ENUM.android]={vs:"5.0.8"},o[r.ENV_ENUM.pc]={vs:"5.1.28"},o)),t.videoConfCall$=i,t["default"]=i},10672:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.choose$=void 0;var r=n(95774),a=n(37179),s="biz.contact.choose",l=a.genDefaultParamsDealFn({multiple:!0,startWithDepartmentId:0,users:[]});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.choose$=i,t["default"]=i},34313:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseMobileContacts$=void 0;var r=n(95774),a="biz.contact.chooseMobileContacts";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.1"},o[r.ENV_ENUM.android]={vs:"3.1"},o)),t.chooseMobileContacts$=i,t["default"]=i},70791:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.complexPicker$=void 0;var r=n(95774),a="biz.contact.complexPicker";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.9.0"},o[r.ENV_ENUM.android]={vs:"2.9.0"},o[r.ENV_ENUM.pc]={vs:"4.3.5"},o)),t.complexPicker$=i,t["default"]=i},65638:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.createGroup$=void 0;var r=n(95774),a="biz.contact.createGroup";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o[r.ENV_ENUM.pc]={vs:"4.6.1"},o)),t.createGroup$=i,t["default"]=i},90314:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.departmentsPicker$=void 0;var r=n(95774),a="biz.contact.departmentsPicker";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"4.2.5"},o[r.ENV_ENUM.ios]={vs:"3.0"},o[r.ENV_ENUM.android]={vs:"3.0"},o)),t.departmentsPicker$=i,t["default"]=i},89091:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.externalComplexPicker$=void 0;var r=n(95774),a="biz.contact.externalComplexPicker";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.0.0"},o[r.ENV_ENUM.ios]={vs:"3.0"},o[r.ENV_ENUM.android]={vs:"3.0"},o)),t.externalComplexPicker$=i,t["default"]=i},92008:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.externalEditForm$=void 0;var r=n(95774),a="biz.contact.externalEditForm";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.0"},o[r.ENV_ENUM.android]={vs:"3.0"},o)),t.externalEditForm$=i,t["default"]=i},42451:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.rolesPicker$=void 0;var r=n(95774),a="biz.contact.rolesPicker";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.3.16"},o[r.ENV_ENUM.android]={vs:"6.3.16"},o)),t.rolesPicker$=i,t["default"]=i},23738:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setRule$=void 0;var r=n(95774),a="biz.contact.setRule";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.15"},o[r.ENV_ENUM.android]={vs:"2.15"},o)),t.setRule$=i,t["default"]=i},3498:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseSpaceDir$=void 0;var r=n(95774),a="biz.cspace.chooseSpaceDir";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.5.6"},o[r.ENV_ENUM.android]={vs:"3.5.6"},o[r.ENV_ENUM.pc]={vs:"5.1.27"},o)),t.chooseSpaceDir$=i,t["default"]=i},13042:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.delete$=void 0;var r=n(95774),a="biz.cspace.delete";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.5.21"},o[r.ENV_ENUM.android]={vs:"4.5.21"},o[r.ENV_ENUM.pc]={vs:"4.5.21"},o)),t.delete$=i,t["default"]=i},96141:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.preview$=void 0;var r=n(95774),a="biz.cspace.preview";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.0.0"},o[r.ENV_ENUM.ios]={vs:"2.7.0"},o[r.ENV_ENUM.android]={vs:"2.7.0"},o)),t.preview$=i,t["default"]=i},43481:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.saveFile$=void 0;var r=n(95774),a="biz.cspace.saveFile";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.7.6"},o[r.ENV_ENUM.android]={vs:"2.7.6"},o)),t.saveFile$=i,t["default"]=i},3581:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.choose$=void 0;var r=n(95774),a=n(37179),s="biz.customContact.choose",l=a.genDefaultParamsDealFn({isShowCompanyName:!1,max:50});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.pc]={vs:"3.0.0"},o[r.ENV_ENUM.ios]={vs:"2.5.2",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.5.2",paramsDeal:l},o)),t.choose$=i,t["default"]=i},32406:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.multipleChoose$=void 0;var r=n(95774),a=n(37179),s="biz.customContact.multipleChoose",l=a.genDefaultParamsDealFn({isShowCompanyName:!1,max:50});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.pc]={vs:"3.0.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.multipleChoose$=i,t["default"]=i},21804:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.create$=void 0;var r=n(95774),a="biz.ding.create";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.5.1",resultDeal:function(e){return""===e?e={dingCreateResult:!1}:"object"==typeof e&&(e.dingCreateResult=!!e.dingCreateResult),e}},o[r.ENV_ENUM.android]={vs:"3.5.1"},o[r.ENV_ENUM.pc]={vs:"4.5.9"},o)),t.create$=i,t["default"]=i},3171:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.post$=void 0;var r=n(95774),a="biz.ding.post";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.0.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.post$=i,t["default"]=i},1134:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.finishMiniCourseByRecordId$=void 0;var r=n(95774),a="biz.edu.finishMiniCourseByRecordId";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.0.15"},o[r.ENV_ENUM.android]={vs:"6.0.15"},o)),t.finishMiniCourseByRecordId$=i,t["default"]=i},73484:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getMiniCourseDraftList$=void 0;var r=n(95774),a="biz.edu.getMiniCourseDraftList";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.0.15"},o[r.ENV_ENUM.android]={vs:"6.0.15"},o)),t.getMiniCourseDraftList$=i,t["default"]=i},18633:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.joinClassroom$=void 0;var r=n(95774),a="biz.edu.joinClassroom";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.0.15"},o[r.ENV_ENUM.android]={vs:"6.0.15"},o[r.ENV_ENUM.pc]={vs:"6.0.15"},o)),t.joinClassroom$=i,t["default"]=i},63046:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.makeMiniCourse$=void 0;var r=n(95774),a="biz.edu.makeMiniCourse";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.0.15"},o[r.ENV_ENUM.android]={vs:"6.0.15"},o)),t.makeMiniCourse$=i,t["default"]=i},90569:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.newMsgNotificationStatus$=void 0;var r=n(95774),a="biz.edu.newMsgNotificationStatus";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.3.20"},o[r.ENV_ENUM.android]={vs:"6.3.20"},o)),t.newMsgNotificationStatus$=i,t["default"]=i},75210:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.startAuth$=void 0;var r=n(95774),a="biz.edu.startAuth";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.3.20"},o[r.ENV_ENUM.android]={vs:"6.3.20"},o)),t.startAuth$=i,t["default"]=i},46281:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.tokenFaceImg$=void 0;var r=n(95774),a="biz.edu.tokenFaceImg";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.3.20"},o[r.ENV_ENUM.android]={vs:"6.3.20"},o)),t.tokenFaceImg$=i,t["default"]=i},53307:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.notifyWeex$=void 0;var r=n(95774),a="biz.event.notifyWeex";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.5.0"},o)),t.notifyWeex$=i,t["default"]=i},16765:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.fetchData$=void 0;var r=n(95774),a="biz.intent.fetchData";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.7.6"},o[r.ENV_ENUM.android]={vs:"2.7.6"},o)),t.fetchData$=i,t["default"]=i},19191:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.bind$=void 0;var r=n(95774),a="biz.iot.bind";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.34"},o[r.ENV_ENUM.android]={vs:"4.6.34"},o)),t.bind$=i,t["default"]=i},70972:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.bindMeetingRoom$=void 0;var r=n(95774),a="biz.iot.bindMeetingRoom";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.34"},o[r.ENV_ENUM.android]={vs:"4.6.34"},o)),t.bindMeetingRoom$=i,t["default"]=i},51524:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getDeviceProperties$=void 0;var r=n(95774),a="biz.iot.getDeviceProperties";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.42"},o[r.ENV_ENUM.android]={vs:"4.6.42"},o)),t.getDeviceProperties$=i,t["default"]=i},6231:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.invokeThingService$=void 0;var r=n(95774),a="biz.iot.invokeThingService";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.42"},o[r.ENV_ENUM.android]={vs:"4.6.42"},o)),t.invokeThingService$=i,t["default"]=i},60901:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.queryMeetingRoomList$=void 0;var r=n(95774),a="biz.iot.queryMeetingRoomList";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.34"},o[r.ENV_ENUM.android]={vs:"4.6.34"},o)),t.queryMeetingRoomList$=i,t["default"]=i},29573:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setDeviceProperties$=void 0;var r=n(95774),a="biz.iot.setDeviceProperties";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.42"},o[r.ENV_ENUM.android]={vs:"4.6.42"},o)),t.setDeviceProperties$=i,t["default"]=i},3006:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.unbind$=void 0;var r=n(95774),a="biz.iot.unbind";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.34"},o[r.ENV_ENUM.android]={vs:"4.6.34"},o)),t.unbind$=i,t["default"]=i},63311:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.startClassRoom$=void 0;var r=n(95774),a="biz.live.startClassRoom";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"5.1.19"},o)),t.startClassRoom$=i,t["default"]=i},14409:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.startUnifiedLive$=void 0;var r=n(95774),a="biz.live.startUnifiedLive";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"5.1.18"},o)),t.startUnifiedLive$=i,t["default"]=i},43503:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.locate$=void 0;var r=n(95774),a="biz.map.locate";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.locate$=i,t["default"]=i},67522:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.search$=void 0;var r=n(95774),a=n(37179),s="biz.map.search",l=a.genDefaultParamsDealFn({scope:500});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.search$=i,t["default"]=i},99387:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.view$=void 0;var r=n(95774),a="biz.map.view";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.view$=i,t["default"]=i},90531:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.compressVideo$=void 0;var r=n(95774),a="biz.media.compressVideo";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.37"},o[r.ENV_ENUM.android]={vs:"4.6.37"},o)),t.compressVideo$=i,t["default"]=i},37237:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.openApp$=void 0;var r=n(95774),a="biz.microApp.openApp";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.5.6"},o[r.ENV_ENUM.android]={vs:"4.5.6"},o)),t.openApp$=i,t["default"]=i},3675:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.close$=void 0;var r=n(95774),a="biz.navigation.close";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o[r.ENV_ENUM.pc]={vs:"4.3.5"},o)),t.close$=i,t["default"]=i},73433:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.goBack$=void 0;var r=n(95774),a="biz.navigation.goBack";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.6.0"},o[r.ENV_ENUM.android]={vs:"2.6.0"},o)),t.goBack$=i,t["default"]=i},57266:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.hideBar$=void 0;var r=n(95774),a="biz.navigation.hideBar";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.5.6"},o[r.ENV_ENUM.android]={vs:"3.5.6"},o)),t.hideBar$=i,t["default"]=i},25416:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.navigateToMiniProgram$=void 0;var r=n(95774),a="biz.navigation.navigateToMiniProgram";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.31"},o[r.ENV_ENUM.android]={vs:"5.1.31"},o)),t.navigateToMiniProgram$=i,t["default"]=i},41688:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.quit$=void 0;var r=n(95774),a="biz.navigation.quit";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o)),t.quit$=i,t["default"]=i},38653:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.replace$=void 0;var r=n(95774),a="biz.navigation.replace";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.4.6"},o[r.ENV_ENUM.android]={vs:"3.4.6"},o)),t.replace$=i,t["default"]=i},46630:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setIcon$=void 0;var r=n(95774),a=n(37179),s="biz.navigation.setIcon",l=a.genDefaultParamsDealFn({watch:!0,showIcon:!0,iconIndex:1});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.setIcon$=i,t["default"]=i},33765:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setLeft$=void 0;var r=n(95774),a=n(37179),s="biz.navigation.setLeft",l=a.genDefaultParamsDealFn({watch:!0,show:!0,control:!1,showIcon:!0,text:""});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.setLeft$=i,t["default"]=i},43121:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setMenu$=void 0;var r=n(95774),a=n(37179),s="biz.navigation.setMenu";r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"2.6.0",paramsDeal:a.addWatchParamsDeal},o[r.ENV_ENUM.android]={vs:"2.6.0",paramsDeal:a.addWatchParamsDeal},o)),t.setMenu$=i,t["default"]=i},8622:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setRight$=void 0;var r=n(95774),a=n(37179),s="biz.navigation.setRight",l=a.genDefaultParamsDealFn({watch:!0,show:!0,control:!1,showIcon:!0,text:""});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.setRight$=i,t["default"]=i},20195:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setTitle$=void 0;var r=n(95774),a="biz.navigation.setTitle";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.setTitle$=i,t["default"]=i},81316:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.componentPunchFromPartner$=void 0;var r=n(95774),a="biz.pbp.componentPunchFromPartner";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.10"},o[r.ENV_ENUM.android]={vs:"5.1.10"},o)),t.componentPunchFromPartner$=i,t["default"]=i},93457:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.startMatchRuleFromPartner$=void 0;var r=n(95774),a="biz.pbp.startMatchRuleFromPartner";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.10"},o[r.ENV_ENUM.android]={vs:"5.1.10"},o)),t.startMatchRuleFromPartner$=i,t["default"]=i},20903:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.stopMatchRuleFromPartner$=void 0;var r=n(95774),a="biz.pbp.stopMatchRuleFromPartner";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.10"},o[r.ENV_ENUM.android]={vs:"5.1.10"},o)),t.stopMatchRuleFromPartner$=i,t["default"]=i},5216:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getRealtimeTracingStatus$=void 0;var r=n(95774),a="biz.realm.getRealtimeTracingStatus";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.android]={vs:"6.0.13"},o)),t.getRealtimeTracingStatus$=i,t["default"]=i},22658:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getUserExclusiveInfo$=void 0;var r=n(95774),a="biz.realm.getUserExclusiveInfo";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.0.14"},o[r.ENV_ENUM.android]={vs:"6.0.14"},o[r.ENV_ENUM.pc]={vs:"6.0.17"},o)),t.getUserExclusiveInfo$=i,t["default"]=i},86080:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.startRealtimeTracing$=void 0;var r=n(95774),a="biz.realm.startRealtimeTracing";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.android]={vs:"6.0.13"},o)),t.startRealtimeTracing$=i,t["default"]=i},51180:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.stopRealtimeTracing$=void 0;var r=n(95774),a="biz.realm.stopRealtimeTracing";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.android]={vs:"6.0.13"},o)),t.stopRealtimeTracing$=i,t["default"]=i},63418:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe$=void 0;var r=n(95774),a="biz.realm.subscribe";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.7.18"},o[r.ENV_ENUM.android]={vs:"4.7.18"},o)),t.subscribe$=i,t["default"]=i},81171:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.unsubscribe$=void 0;var r=n(95774),a="biz.realm.unsubscribe";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.7.18"},o[r.ENV_ENUM.android]={vs:"4.7.18"},o)),t.unsubscribe$=i,t["default"]=i},79745:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.addShortCut$=void 0;var r=n(95774),a="biz.shortCut.addShortCut";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.android]={vs:"4.7.32"},o)),t.addShortCut$=i,t["default"]=i},81621:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.closeUnpayOrder$=void 0;var r=n(95774),a=n(37179),s="biz.store.closeUnpayOrder";r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},o[r.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},o[r.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:a.genBizStoreParamsDealFn},o)),t.closeUnpayOrder$=i,t["default"]=i},65736:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.createOrder$=void 0;var r=n(95774),a=n(37179),s="biz.store.createOrder";r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},o[r.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},o[r.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:a.genBizStoreParamsDealFn},o)),t.createOrder$=i,t["default"]=i},11611:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getPayUrl$=void 0;var r=n(95774),a=n(37179),s="biz.store.getPayUrl";r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},o[r.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},o[r.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:a.genBizStoreParamsDealFn},o)),t.getPayUrl$=i,t["default"]=i},17180:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.inquiry$=void 0;var r=n(95774),a=n(37179),s="biz.store.inquiry";r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},o[r.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:a.genBizStoreParamsDealFn},o[r.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:a.genBizStoreParamsDealFn},o)),t.inquiry$=i,t["default"]=i},34680:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.call$=void 0;var r=n(95774),a="biz.telephone.call";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.call$=i,t["default"]=i},74861:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.checkBizCall$=void 0;var r=n(95774),a="biz.telephone.checkBizCall";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"4.0.0"},o[r.ENV_ENUM.ios]={vs:"3.5.6"},o[r.ENV_ENUM.android]={vs:"3.5.6"},o)),t.checkBizCall$=i,t["default"]=i},74345:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.quickCallList$=void 0;var r=n(95774),a="biz.telephone.quickCallList";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.5.6"},o[r.ENV_ENUM.ios]={vs:"3.5.6"},o[r.ENV_ENUM.android]={vs:"3.5.6"},o)),t.quickCallList$=i,t["default"]=i},45267:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.showCallMenu$=void 0;var r=n(95774),a="biz.telephone.showCallMenu";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.showCallMenu$=i,t["default"]=i},55791:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.checkPassword$=void 0;var r=n(95774),a="biz.user.checkPassword";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.5.8"},o[r.ENV_ENUM.android]={vs:"4.5.8"},o)),t.checkPassword$=i,t["default"]=i},73736:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.get$=void 0;var r=n(95774),a="biz.user.get";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.0.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.get$=i,t["default"]=i},20271:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.callComponent$=void 0;var r=n(95774),a="biz.util.callComponent";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.3.35"},o[r.ENV_ENUM.android]={vs:"6.3.35"},o[r.ENV_ENUM.pc]={vs:"6.3.35"},o)),t.callComponent$=i,t["default"]=i},62354:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.chooseImage$=void 0;var r=n(95774),a="biz.util.chooseImage";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.1"},o[r.ENV_ENUM.android]={vs:"5.1.1"},o)),t.chooseImage$=i,t["default"]=i},22441:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.chosen$=void 0;var r=n(95774),a="biz.util.chosen";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.chosen$=i,t["default"]=i},74032:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.clearWebStoreCache$=void 0;var r=n(95774),a="biz.util.clearWebStoreCache";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"6.0.22"},o)),t.clearWebStoreCache$=i,t["default"]=i},63259:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.closePreviewImage$=void 0;var r=n(95774),a="biz.util.closePreviewImage";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.0.19"},o[r.ENV_ENUM.android]={vs:"6.0.17"},o)),t.closePreviewImage$=i,t["default"]=i},51746:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.datepicker$=void 0;var r=n(95774),a="biz.util.datepicker";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.datepicker$=i,t["default"]=i},79427:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.datetimepicker$=void 0;var r=n(95774),a="biz.util.datetimepicker";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.datetimepicker$=i,t["default"]=i},27129:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt$=void 0;var r=n(95774),a="biz.util.decrypt";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.0.0"},o[r.ENV_ENUM.ios]={vs:"2.9.1"},o[r.ENV_ENUM.android]={vs:"2.9.1"},o)),t.decrypt$=i,t["default"]=i},74542:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.downloadFile$=void 0;var r=n(95774),a="biz.util.downloadFile";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o)),t.downloadFile$=i,t["default"]=i},24158:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.encrypt$=void 0;var r=n(95774),a="biz.util.encrypt";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.0.0"},o[r.ENV_ENUM.ios]={vs:"2.9.1"},o[r.ENV_ENUM.android]={vs:"2.9.1"},o)),t.encrypt$=i,t["default"]=i},57707:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getPerfInfo$=void 0;var r=n(95774),a="biz.util.getPerfInfo";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.14"},o[r.ENV_ENUM.android]={vs:"5.1.14"},o)),t.getPerfInfo$=i,t["default"]=i},151:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.invokeWorkbench$=void 0;var r=n(95774),a="biz.util.invokeWorkbench";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"6.0.8"},o)),t.invokeWorkbench$=i,t["default"]=i},57748:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.isEnableGPUAcceleration$=void 0;var r=n(95774),a="biz.util.isEnableGPUAcceleration";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"6.0.22"},o)),t.isEnableGPUAcceleration$=i,t["default"]=i},92457:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.isLocalFileExist$=void 0;var r=n(95774),a="biz.util.isLocalFileExist";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o)),t.isLocalFileExist$=i,t["default"]=i},58976:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.multiSelect$=void 0;var r=n(95774),a="biz.util.multiSelect";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.0.0"},o[r.ENV_ENUM.android]={vs:"3.0.0"},o)),t.multiSelect$=i,t["default"]=i},58228:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.open$=void 0;var r=n(95774),a="biz.util.open";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"2.7.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.open$=i,t["default"]=i},26325:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.openLink$=void 0;var r=n(95774),a=n(37179),s="biz.util.openLink",l=a.genDefaultParamsDealFn({credible:!0,showMenuBar:!0});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.pc]={vs:"2.7.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.openLink$=i,t["default"]=i},68417:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.openLocalFile$=void 0;var r=n(95774),a="biz.util.openLocalFile";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o)),t.openLocalFile$=i,t["default"]=i},58211:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.openModal$=void 0;var r=n(95774),a="biz.util.openModal";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o)),t.openModal$=i,t["default"]=i},76264:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.openSlidePanel$=void 0;var r=n(95774),a="biz.util.openSlidePanel";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o)),t.openSlidePanel$=i,t["default"]=i},55513:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.presentWindow$=void 0;var r=n(95774),a="biz.util.presentWindow";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.presentWindow$=i,t["default"]=i},54696:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.previewImage$=void 0;var r=n(95774),a="biz.util.previewImage";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"2.7.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.previewImage$=i,t["default"]=i},27792:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.previewVideo$=void 0;var r=n(95774),a="biz.util.previewVideo";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.3.7"},o[r.ENV_ENUM.android]={vs:"4.3.7"},o[r.ENV_ENUM.pc]={vs:"4.6.33"},o)),t.previewVideo$=i,t["default"]=i},16806:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.saveImage$=void 0;var r=n(95774),a="biz.util.saveImage";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.1"},o[r.ENV_ENUM.android]={vs:"4.1"},o)),t.saveImage$=i,t["default"]=i},72117:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.scan$=void 0;var r=n(95774),a=n(37179),s="biz.util.scan",l=a.genDefaultParamsDealFn({type:"qrCode"});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.scan$=i,t["default"]=i},13766:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.scanCard$=void 0;var r=n(95774),a="biz.util.scanCard";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.scanCard$=i,t["default"]=i},61915:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setGPUAcceleration$=void 0;var r=n(95774),a="biz.util.setGPUAcceleration";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"6.0.22"},o)),t.setGPUAcceleration$=i,t["default"]=i},28540:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setScreenBrightnessAndKeepOn$=void 0;var r=n(95774),a="biz.util.setScreenBrightnessAndKeepOn";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.37"},o[r.ENV_ENUM.android]={vs:"4.3.3"},o)),t.setScreenBrightnessAndKeepOn$=i,t["default"]=i},73814:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setScreenKeepOn$=void 0;var r=n(95774),a="biz.util.setScreenKeepOn";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.26"},o[r.ENV_ENUM.android]={vs:"5.1.26"},o)),t.setScreenKeepOn$=i,t["default"]=i},39744:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.share$=void 0;var r=n(95774),a=n(37179),s="biz.util.share",l=a.genDefaultParamsDealFn({title:"",buttonName:"确定"});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.pc]={vs:"4.6.37",paramsDeal:l},o)),t.share$=i,t["default"]=i},82003:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.shareImage$=void 0;var r=n(95774),a="biz.util.shareImage";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.1"},o[r.ENV_ENUM.android]={vs:"4.1"},o)),t.shareImage$=i,t["default"]=i},49216:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.startDocSign$=void 0;var r=n(95774),a="biz.util.startDocSign";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.android]={vs:"4.6.33"},o)),t.startDocSign$=i,t["default"]=i},18487:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.systemShare$=void 0;var r=n(95774),a="biz.util.systemShare";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.5.11"},o[r.ENV_ENUM.android]={vs:"4.5.11"},o)),t.systemShare$=i,t["default"]=i},82548:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.timepicker$=void 0;var r=n(95774),a="biz.util.timepicker";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.timepicker$=i,t["default"]=i},18735:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.uploadAttachment$=void 0;var r=n(95774),a="biz.util.uploadAttachment";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.0.0"},o[r.ENV_ENUM.ios]={vs:"2.7.0"},o[r.ENV_ENUM.android]={vs:"2.7.0"},o)),t.uploadAttachment$=i,t["default"]=i},11597:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.uploadImage$=void 0;var r=n(95774),a=n(37179),s="biz.util.uploadImage",l=a.genDefaultParamsDealFn({multiple:!1});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.uploadImage$=i,t["default"]=i},72529:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.uploadImageFromCamera$=void 0;var r=n(95774),a="biz.util.uploadImageFromCamera";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.uploadImageFromCamera$=i,t["default"]=i},58719:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ut$=void 0;var r=n(95774),a="biz.util.ut",s=function(e){var t=Object.assign({},e),n=t.value,i=[];if(n&&"object"==typeof n){for(var o in n)void 0!==n[o]&&i.push(o+"="+n[o]);n=i.join(",")}return t.value=n||"",t};r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.5.0",paramsDeal:s},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:function(e){var t=Object.assign({},e),n=t.value;return n&&"object"==typeof n&&(n=JSON.stringify(n)),t.value=n,t}},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:s},o)),t.ut$=i,t["default"]=i},84360:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.openBindIDCard$=void 0;var r=n(95774),a="biz.verify.openBindIDCard";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.5.21"},o[r.ENV_ENUM.android]={vs:"4.5.21"},o)),t.openBindIDCard$=i,t["default"]=i},72704:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.startAuth$=void 0;var r=n(95774),a="biz.verify.startAuth";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.5.21"},o[r.ENV_ENUM.android]={vs:"4.5.21"},o)),t.startAuth$=i,t["default"]=i},15859:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.requestAuthCode$=void 0;var r=n(95774),a="channel.permission.requestAuthCode";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.0.0"},o[r.ENV_ENUM.android]={vs:"3.0.0"},o)),t.requestAuthCode$=i,t["default"]=i},59960:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.clearShake$=void 0;var r=n(95774),a="device.accelerometer.clearShake";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.clearShake$=i,t["default"]=i},74347:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.watchShake$=void 0;var r=n(95774),a=n(37179),s="device.accelerometer.watchShake";r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:function(e){return a.forceChangeParamsDealFn({sensitivity:3.2})(a.addWatchParamsDeal(e))}},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:a.addWatchParamsDeal},o)),t.watchShake$=i,t["default"]=i},70583:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.download$=void 0;var r=n(95774),a="device.audio.download";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.download$=i,t["default"]=i},95654:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.onPlayEnd$=void 0;var r=n(95774),a="device.audio.onPlayEnd";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.onPlayEnd$=i,t["default"]=i},69924:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.onRecordEnd$=void 0;var r=n(95774),a="device.audio.onRecordEnd";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.onRecordEnd$=i,t["default"]=i},25602:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.pause$=void 0;var r=n(95774),a="device.audio.pause";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.pause$=i,t["default"]=i},84971:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.play$=void 0;var r=n(95774),a="device.audio.play";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.play$=i,t["default"]=i},43681:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.resume$=void 0;var r=n(95774),a="device.audio.resume";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.resume$=i,t["default"]=i},32586:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.startRecord$=void 0;var r=n(95774),a="device.audio.startRecord";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.startRecord$=i,t["default"]=i},29238:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.stop$=void 0;var r=n(95774),a="device.audio.stop";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.stop$=i,t["default"]=i},50012:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.stopRecord$=void 0;var r=n(95774),a="device.audio.stopRecord";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.stopRecord$=i,t["default"]=i},18289:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.translateVoice$=void 0;var r=n(95774),a="device.audio.translateVoice";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.8.0"},o[r.ENV_ENUM.android]={vs:"2.8.0"},o)),t.translateVoice$=i,t["default"]=i},74607:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getInterface$=void 0;var r=n(95774),a="device.base.getInterface";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.getInterface$=i,t["default"]=i},6436:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getPhoneInfo$=void 0;var r=n(95774),a="device.base.getPhoneInfo";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.5.0"},o[r.ENV_ENUM.android]={vs:"3.5.0"},o)),t.getPhoneInfo$=i,t["default"]=i},6177:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getUUID$=void 0;var r=n(95774),a="device.base.getUUID";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o[r.ENV_ENUM.pc]={vs:"4.7.6"},o)),t.getUUID$=i,t["default"]=i},3013:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getWifiStatus$=void 0;var r=n(95774),a="device.base.getWifiStatus";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.11.0"},o[r.ENV_ENUM.android]={vs:"2.11.0"},o)),t.getWifiStatus$=i,t["default"]=i},24597:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.openSystemSetting$=void 0;var r=n(95774),a="device.base.openSystemSetting";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.android]={vs:"6.0.27"},o[r.ENV_ENUM.ios]={vs:"6.3.15"},o)),t.openSystemSetting$=i,t["default"]=i},20663:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getNetworkType$=void 0;var r=n(95774),a="device.connection.getNetworkType";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.getNetworkType$=i,t["default"]=i},86285:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.checkPermission$=void 0;var r=n(95774),a="device.geolocation.checkPermission";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.android]={vs:"4.5.0"},o)),t.checkPermission$=i,t["default"]=i},56886:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.get$=void 0;var r=n(95774),a="device.geolocation.get";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.get$=i,t["default"]=i},93967:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.start$=void 0;var r=n(95774),a="device.geolocation.start";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.4.7"},o[r.ENV_ENUM.android]={vs:"3.4.7"},o)),t.start$=i,t["default"]=i},10940:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.status$=void 0;var r=n(95774),a="device.geolocation.status";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.4.8"},o[r.ENV_ENUM.android]={vs:"3.4.8"},o)),t.status$=i,t["default"]=i},11500:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.stop$=void 0;var r=n(95774),a="device.geolocation.stop";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"3.4.7"},o[r.ENV_ENUM.android]={vs:"3.4.7"},o)),t.stop$=i,t["default"]=i},35508:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.checkInstalledApps$=void 0;var r=n(95774),a="device.launcher.checkInstalledApps";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.checkInstalledApps$=i,t["default"]=i},43379:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.launchApp$=void 0;var r=n(95774),a="device.launcher.launchApp";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.launchApp$=i,t["default"]=i},29610:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.nfcRead$=void 0;var r=n(95774),a="device.nfc.nfcRead";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.11.0"},o[r.ENV_ENUM.android]={vs:"2.11.0"},o)),t.nfcRead$=i,t["default"]=i},12573:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.nfcStop$=void 0;var r=n(95774),a="device.nfc.nfcStop";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.3.9"},o[r.ENV_ENUM.android]={vs:"4.3.9"},o)),t.nfcStop$=i,t["default"]=i},19484:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.nfcWrite$=void 0;var r=n(95774),a="device.nfc.nfcWrite";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.11.0"},o[r.ENV_ENUM.android]={vs:"2.11.0"},o)),t.nfcWrite$=i,t["default"]=i},75917:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.actionSheet$=void 0;var r=n(95774),a="device.notification.actionSheet";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.0.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.actionSheet$=i,t["default"]=i},9434:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.alert$=void 0;var r=n(95774),a=n(37179),s="device.notification.alert",l=a.genDefaultParamsDealFn({title:"",buttonName:"确定"});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.alert$=i,t["default"]=i},12360:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.confirm$=void 0;var r=n(95774),a=n(37179),s="device.notification.confirm",l=a.genDefaultParamsDealFn({title:"",buttonLabels:["确定","取消"]});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.confirm$=i,t["default"]=i},34218:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.extendModal$=void 0;var r=n(95774),a="device.notification.extendModal";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.5.0"},o[r.ENV_ENUM.android]={vs:"2.5.0"},o)),t.extendModal$=i,t["default"]=i},70796:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.hidePreloader$=void 0;var r=n(95774),a="device.notification.hidePreloader";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.hidePreloader$=i,t["default"]=i},12947:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.modal$=void 0;var r=n(95774),a="device.notification.modal";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"4.2.5"},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.modal$=i,t["default"]=i},15955:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.prompt$=void 0;var r=n(95774),a=n(37179),s="device.notification.prompt",l=a.genDefaultParamsDealFn({title:"",buttonLabels:["确定","取消"]});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.pc]={vs:"2.7.0"},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.prompt$=i,t["default"]=i},22260:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.showPreloader$=void 0;var r=n(95774),a=n(37179),s="device.notification.showPreloader",l=a.genDefaultParamsDealFn({text:"加载中...",showIcon:!0});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.showPreloader$=i,t["default"]=i},64726:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.toast$=void 0;var r=n(95774),a=n(37179),s="device.notification.toast",l=a.genDefaultParamsDealFn({text:"toast",duration:3,delay:0});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.pc]={vs:"2.5.0",paramsDeal:function(e){return e.icon&&!e.type&&("success"===e.icon?e.type="success":"error"===e.icon&&(e.type="error")),e}},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.toast$=i,t["default"]=i},53886:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.vibrate$=void 0;var r=n(95774),a=n(37179),s="device.notification.vibrate",l=a.genDefaultParamsDealFn({duration:300});r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:l},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:l},o)),t.vibrate$=i,t["default"]=i},98484:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.insetAdjust$=void 0;var r=n(95774),a="device.screen.insetAdjust";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"4.6.18"},o)),t.insetAdjust$=i,t["default"]=i},20623:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.resetView$=void 0;var r=n(95774),a="device.screen.resetView";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.android]={vs:"4.0.0"},o[r.ENV_ENUM.ios]={vs:"4.0.0"},o)),t.resetView$=i,t["default"]=i},83843:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.rotateView$=void 0;var r=n(95774),a="device.screen.rotateView";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.android]={vs:"4.0.0"},o[r.ENV_ENUM.ios]={vs:"4.0.0"},o)),t.rotateView$=i,t["default"]=i},2688:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.keepAlive$=void 0;var r=n(95774),a="media.voiceRecorder.keepAlive";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.12"},o[r.ENV_ENUM.android]={vs:"5.1.12"},o[r.ENV_ENUM.pc]={vs:"5.1.12"},o)),t.keepAlive$=i,t["default"]=i},84905:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.pause$=void 0;var r=n(95774),a="media.voiceRecorder.pause";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.12"},o[r.ENV_ENUM.android]={vs:"5.1.12"},o[r.ENV_ENUM.pc]={vs:"5.1.12"},o)),t.pause$=i,t["default"]=i},37676:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.resume$=void 0;var r=n(95774),a="media.voiceRecorder.resume";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.12"},o[r.ENV_ENUM.android]={vs:"5.1.12"},o[r.ENV_ENUM.pc]={vs:"5.1.12"},o)),t.resume$=i,t["default"]=i},50374:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.start$=void 0;var r=n(95774),a="media.voiceRecorder.start";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.12"},o[r.ENV_ENUM.android]={vs:"5.1.12"},o[r.ENV_ENUM.pc]={vs:"5.1.12"},o)),t.start$=i,t["default"]=i},85486:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.stop$=void 0;var r=n(95774),a="media.voiceRecorder.stop";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"5.1.12"},o[r.ENV_ENUM.android]={vs:"5.1.12"},o[r.ENV_ENUM.pc]={vs:"5.1.12"},o)),t.stop$=i,t["default"]=i},61699:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.loginGovNet$=void 0;var r=n(95774),a="net.bjGovApn.loginGovNet";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.android]={vs:"4.5.16"},o)),t.loginGovNet$=i,t["default"]=i},19285:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.fetch$=void 0;var r=n(95774),a="runtime.message.fetch";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.6.0"},o[r.ENV_ENUM.android]={vs:"2.6.0"},o)),t.fetch$=i,t["default"]=i},28095:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.post$=void 0;var r=n(95774),a="runtime.message.post";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.6.0"},o[r.ENV_ENUM.android]={vs:"2.6.0"},o)),t.post$=i,t["default"]=i},12517:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getLoadTime$=void 0;var r=n(95774),a="runtime.monitor.getLoadTime";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.0.10"},o[r.ENV_ENUM.android]={vs:"6.0.10"},o)),t.getLoadTime$=i,t["default"]=i},42533:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.requestAuthCode$=void 0;var r=n(95774),a="runtime.permission.requestAuthCode",s=function(e){return Object.assign(e,{url:location.href.split("#")[0]})};r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.0.0",paramsDeal:s},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.requestAuthCode$=i,t["default"]=i},56925:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.requestOperateAuthCode$=void 0;var r=n(95774),a="runtime.permission.requestOperateAuthCode",s=function(e){return Object.assign(e,{url:location.href.split("#")[0]})};r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.pc]={vs:"3.3.0",paramsDeal:s},o[r.ENV_ENUM.ios]={vs:"3.3.0"},o[r.ENV_ENUM.android]={vs:"3.3.0"},o)),t.requestOperateAuthCode$=i,t["default"]=i},29964:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.plain$=void 0;var r=n(95774),a="ui.input.plain";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.plain$=i,t["default"]=i},87626:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.addToFloat$=void 0;var r=n(95774),a="ui.multitask.addToFloat";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.5.0"},o[r.ENV_ENUM.android]={vs:"6.5.0"},o)),t.addToFloat$=i,t["default"]=i},43969:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.removeFromFloat$=void 0;var r=n(95774),a="ui.multitask.removeFromFloat";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.5.0"},o[r.ENV_ENUM.android]={vs:"6.5.0"},o)),t.removeFromFloat$=i,t["default"]=i},89710:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.close$=void 0;var r=n(95774),a="ui.nav.close";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.6.0"},o[r.ENV_ENUM.android]={vs:"2.6.0"},o)),t.close$=i,t["default"]=i},94714:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentId$=void 0;var r=n(95774),a="ui.nav.getCurrentId";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.6.0"},o[r.ENV_ENUM.android]={vs:"2.6.0"},o)),t.getCurrentId$=i,t["default"]=i},4419:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.go$=void 0;var r=n(95774),a="ui.nav.go";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.6.0"},o[r.ENV_ENUM.android]={vs:"2.6.0"},o)),t.go$=i,t["default"]=i},56257:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.preload$=void 0;var r=n(95774),a="ui.nav.preload";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.6.0"},o[r.ENV_ENUM.android]={vs:"2.6.0"},o)),t.preload$=i,t["default"]=i},1737:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.recycle$=void 0;var r=n(95774),a="ui.nav.recycle";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.6.0"},o[r.ENV_ENUM.android]={vs:"2.6.0"},o)),t.recycle$=i,t["default"]=i},78506:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setColors$=void 0;var r=n(95774),a="ui.progressBar.setColors";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.setColors$=i,t["default"]=i},6463:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.disable$=void 0;var r=n(95774),a="ui.pullToRefresh.disable";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.disable$=i,t["default"]=i},70907:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(s,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.enable$=void 0;var r=n(95774),a=n(37179),s="ui.pullToRefresh.enable";r.ddSdk.setAPI(s,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:a.addWatchParamsDeal},o[r.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:a.addWatchParamsDeal},o)),t.enable$=i,t["default"]=i},63741:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.stop$=void 0;var r=n(95774),a="ui.pullToRefresh.stop";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.stop$=i,t["default"]=i},62093:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.disable$=void 0;var r=n(95774),a="ui.webViewBounce.disable";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.disable$=i,t["default"]=i},85279:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.enable$=void 0;var r=n(95774),a="ui.webViewBounce.enable";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.4.0"},o[r.ENV_ENUM.android]={vs:"2.4.0"},o)),t.enable$=i,t["default"]=i},44145:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getItem$=void 0;var r=n(95774),a="util.domainStorage.getItem";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.9.0"},o[r.ENV_ENUM.android]={vs:"2.9.0"},o[r.ENV_ENUM.pc]={vs:"4.6.29"},o)),t.getItem$=i,t["default"]=i},65818:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.removeItem$=void 0;var r=n(95774),a="util.domainStorage.removeItem";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.9.0"},o[r.ENV_ENUM.android]={vs:"2.9.0"},o[r.ENV_ENUM.pc]={vs:"4.6.29"},o)),t.removeItem$=i,t["default"]=i},87384:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.setItem$=void 0;var r=n(95774),a="util.domainStorage.setItem";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"2.9.0"},o[r.ENV_ENUM.android]={vs:"2.9.0"},o[r.ENV_ENUM.pc]={vs:"4.6.9"},o)),t.setItem$=i,t["default"]=i},48700:function(e,t,n){"use strict";function i(e){return r.ddSdk.invokeAPI(a,e)}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.getData$=void 0;var r=n(95774),a="util.openTemporary.getData";r.ddSdk.setAPI(a,(o={},o[r.ENV_ENUM.ios]={vs:"6.3.15"},o[r.ENV_ENUM.android]={vs:"6.3.15"},o)),t.getData$=i,t["default"]=i},43642:function(e,t,n){"use strict";var i=n(95774),o=n(16195),r=Object.assign({},o,i.ddSdk.getExportSdk());e.exports=r},25946:function(e,t,n){"use strict";var i=n(43642);n(28343),e.exports=i},56369:function(e,t,n){"use strict";var i=n(25946),o=n(12350),r=Object.assign(i,o.apiObj);e.exports=r},37179:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.genBizStoreParamsDealFn=t.genBoolResultDealFn=t.forceChangeParamsDealFn=t.genDefaultParamsDealFn=t.addDefaultCorpIdParamsDeal=t.addWatchParamsDeal=void 0,t.addWatchParamsDeal=function(e){var t=Object.assign({},e);return t.watch=!0,t},t.addDefaultCorpIdParamsDeal=function(e){var t=Object.assign({},e);return t.corpId="corpId",t},t.genDefaultParamsDealFn=function(e){var t=Object.assign({},e);return function(e){return Object.assign({},t,e)}},t.forceChangeParamsDealFn=function(e){var t=Object.assign({},e);return function(e){return Object.assign(e,t)}},t.genBoolResultDealFn=function(e){return function(t){var n=Object.assign({},t);return e.forEach((function(e){void 0!==n[e]&&(n[e]=!!n[e])})),n}},t.genBizStoreParamsDealFn=function(e){var t=Object.assign({},e);return"string"!=typeof t.params?(t.params=JSON.stringify(t),t):t}},79011:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){return new Promise((function(n,i){dd.dtBridge({m:e,args:t,onSuccess:function(e){"function"==typeof t.onSuccess&&t.onSuccess(e),n(e)},onFail:function(e){"function"==typeof t.onFail&&t.onFail(e),i(e)}})}))};t["default"]=n},33903:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.h5AndroidbridgeInit=void 0,t.h5AndroidbridgeInit=function(){return n||(n=new Promise((function(e,t){var n=function(){try{window.WebViewJavascriptBridgeAndroid=window.nuva&&window.nuva.require(),e({})}catch(e){t(e)}};window.nuva&&(void 0===window.nuva.isReady||window.nuva.isReady)?n():(document.addEventListener("runtimeready",(function(){n()}),!1),document.addEventListener("runtimefailed",(function(e){var n=e&&e.detail||{errorCode:"2",errorMessage:"unknown nuvajs bootstrap error"};t(n)}),!1))}))),n};var i=function(e,i){return n||(n=t.h5AndroidbridgeInit()),n.then((function(){return new Promise((function(t,n){var o=e.split("."),r=o.pop()||"",a=o.join("."),s=function(e){"function"==typeof i.onSuccess&&i.onSuccess(e),t(e)},l=function(e){"function"==typeof i.onFail&&i.onFail(e),n(e)};"function"==typeof window.WebViewJavascriptBridgeAndroid&&window.WebViewJavascriptBridgeAndroid(s,l,a,r,i)}))}))};t["default"]=i},21022:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.off=t.on=void 0;var n=["resume","pause","online","offline","backbutton","goBack","pullToRefresh","message","recycle","restore","drawer","tab","navHelpIcon","navRightButton","navMenu","navTitle","appLinkResponse","internalPageLinkResponse","networkEvent","hostTaskEvent","deviceOrientationChanged","autoCheckIn","deviceFound","hostCheckIn","screenshot","becomeActive","keepAlive","navTitleClick","sharePage","wxNotify","editNoteCommand","updateStyle","qrscanCommonNotify","__message__","dtChannelEvent","livePlayerEventPlay","livePlayerEventPause","livePlayerEventEnded","livePlayerEventError","navActions","attendEvents"],i="dtBizBridgeEvent",o="__eventTypeList__",r=function(){return"undefined"==typeof WeakMap?void 0:new WeakMap}(),a=function(e,t){if(r){var n=r.get(t);return void 0===n?(n=function(e){var i=e.detail;if(i.namespace&&i.eventName){var r=i.namespace+"."+i.eventName;n&&-1!==n[o].indexOf(r)&&t(i.data)}},n[o]=[e],r.set(t,n)):-1===n[o].indexOf(e)&&n[o].push(e),n}},s=function(e,t){if(r){var n=r.get(t);return n&&-1!==n[o].indexOf(e)&&n[o].splice(n[o].indexOf(e),1),n&&n[o].length<=1?n:void 0}};t.on=function(e,t){if(-1!==n.indexOf(e))document.addEventListener(e,t);else{var o=a(e,t);o?document.addEventListener(i,o):console.log("bind event : "+e+" need WeakMap support , current environment doesnot")}},t.off=function(e,t){if(-1!==n.indexOf(e))document.removeEventListener(e,t);else{var o=s(e,t);o&&document.removeEventListener(i,o)}}},14917:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.h5IosBridgeInit=void 0,t.h5IosBridgeInit=function(){return n||(n=new Promise((function(e,t){if("undefined"!=typeof WebViewJavascriptBridge){try{WebViewJavascriptBridge.init((function(e,t){}))}catch(e){return t()}return e({})}document.addEventListener("WebViewJavascriptBridgeReady",(function(){if("undefined"==typeof WebViewJavascriptBridge)return t();try{WebViewJavascriptBridge.init((function(e,t){}))}catch(e){return t()}return e({})}),!1)}))),n};var i=function(e,i){return n||(n=t.h5IosBridgeInit()),n.then((function(){var t=Object.assign({},i);return new Promise((function(n,i){if(!0===t.watch){var o=t.onSuccess;delete t.onSuccess,"undefined"!=typeof WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler(e,(function(e,t){"function"==typeof o&&o.call(null,e),t&&t({errorCode:"0",errorMessage:"success"})}))}void 0!==window.WebViewJavascriptBridge&&window.WebViewJavascriptBridge.callHandler(e,Object.assign({},t),(function(e){var o=e||{};"0"===o.errorCode?("function"==typeof t.onSuccess&&t.onSuccess.call(null,o.result),n(o.result)):("-1"===o.errorCode&&"function"==typeof t.onCancel?t.onCancel.call(null,o.result,o.errorCode):"function"==typeof t.onFail&&t.onFail.call(null,o.result,o.errorCode),i(o.result))}))}))}))};t["default"]=i},46001:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.h5PcBridgeInit=void 0,t.h5PcBridgeInit=function(){return Promise.resolve(n(31507))};var i=function(e,t){return new Promise((function(i,o){return n(31507).invokeAPI(e,t).result.then((function(e){return"function"==typeof t.onSuccess&&t.onSuccess.call(null,e),i(e)}),(function(e){return"function"==typeof t.onFail&&t.onFail.call(null,e),o(e)}))}))};t["default"]=i},37602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.off=t.on=void 0,t.on=function(e,t){n(31507).addEventListener(e,t)},t.off=function(e,t){n(31507).removeEventListener(e,t)}},91684:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){},i=function(e,t){return new Promise((function(i,o){var r=t.onSuccess||n,a=t.onFail||n;if(delete t.onSuccess,delete t.onFail,AlipayJSBridge){var s=e.split("."),l=s.pop()||"",u=s.join(".");AlipayJSBridge.call.apply(null,["webDdExec",{serviceName:u,actionName:l,args:t},function(e){var t={},n=e.content;if(n)try{t=JSON.parse(n)}catch(e){console.error("parse dt api result error",n,e)}e.success?(r.apply(null,[t]),i(t)):(a.apply(null,[t]),o(t))}])}else{var c=new Error("Fatal error, cannot find bridge ,current env is WebView in MiniApp");a(c),o(c)}}))};t["default"]=i},24702:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.androidWeexBridge=t.iosWeexBridge=t.requireModule=void 0;var n=1,i="0";t.requireModule=function(e){return"undefined"!=typeof __weex_require__?__weex_require__("@weex-module/"+e):"undefined"!=typeof weex?weex.requireModule(e):void 0},t.iosWeexBridge=function(){return Promise.resolve((function(e,n){return new Promise((function(o,r){var a=t.requireModule("nuvajs-exec"),s=e.split("."),l=s.pop(),u=s.join(".");a.exec({plugin:u,action:l,args:n},(function(e){e&&e.errorCode===i?("function"==typeof n.onSuccess&&n.onSuccess(e.result),o(e.result)):("function"==typeof n.onFail&&n.onFail(e.result),r(e.result))}))}))}))},t.androidWeexBridge=function(){return Promise.resolve((function(e,i){return new Promise((function(o,r){var a=t.requireModule("nuvajs-exec"),s=e.split("."),l=s.pop(),u=s.join(".");a.exec({plugin:u,action:l,args:i},(function(e){var t={};try{if(e&&e.__message__)if("object"==typeof e.__message__)t=e.__message__;else try{t=JSON.parse(e.__message__)}catch(i){"string"==typeof e.__message__&&(t=e.__message__)}}catch(e){}e&&parseInt(e.__status__+"",10)===n?("function"==typeof i.onSuccess&&i.onSuccess(t),o(t)):("function"==typeof i.onFail&&i.onFail(t),r(t))}))}))}))}},51445:function(e,t,n){"use strict";var i=this;Object.defineProperty(t,"__esModule",{value:!0}),t.off=t.on=void 0;var o=n(24702);t.on=function(e,t){o.requireModule("globalEvent").addEventListener(e,(function(e){var n={preventDefault:function(){throw new Error("does not support preventDefault")},detail:e};t.call(i,n)}))},t.off=function(e,t){o.requireModule("globalEvent").removeEventListener(e,t)}},95774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ddSdk=void 0;var i=n(74716),o=n(56336),r=n(74716);Object.defineProperty(t,"ENV_ENUM",{enumerable:!0,get:function(){return r.ENV_ENUM}}),Object.defineProperty(t,"ENV_ENUM_SUB",{enumerable:!0,get:function(){return r.ENV_ENUM_SUB}});var a=n(74888);n(33666),t.ddSdk=new a.Sdk(i.getENV(),o.log)},74716:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getENV=t.getUA=void 0;var i=n(74888),o=n(74888);Object.defineProperty(t,"ENV_ENUM",{enumerable:!0,get:function(){return o.ENV_ENUM}}),Object.defineProperty(t,"APP_TYPE",{enumerable:!0,get:function(){return o.APP_TYPE}}),Object.defineProperty(t,"ENV_ENUM_SUB",{enumerable:!0,get:function(){return o.ENV_ENUM_SUB}});var r,a=n(34766),s=function(){try{if("undefined"!=typeof window&&void 0!==window.top)return window.top.__dingtalk_jsapi_top_platfrom_config__}catch(e){return}};!function(e){e.singlePage="singlePage",e.miniApp="miniApp",e.miniWidget="miniWidget"}(r||(r={})),t.getUA=function(){var e="";try{"undefined"!=typeof navigator&&(e=navigator&&(navigator.userAgent||navigator.swuserAgent)||"")}catch(t){e=""}return e},t.getENV=function(){var e=t.getUA(),n=/iPhone|iPad|iPod|iOS/i.test(e),o=/Android/i.test(e),l=(/Nebula/i.test(e),/DingTalk/i.test(e)),u=/dd-web/i.test(e),c="object"==typeof nuva,d="object"==typeof dd&&"function"==typeof dd.dtBridge,h=d&&n||c&&n,f=l||a.default.isDingTalk,p=n&&f||a.default.isWeexiOS||h,g=o&&f||a.default.isWeexAndroid,v=d,m=u,y=i.APP_TYPE.WEB;if(m)y=i.APP_TYPE.WEBVIEW_IN_MINIAPP;else if(v)y=i.APP_TYPE.MINI_APP;else if(a.default.isWeexiOS||a.default.isWeexAndroid)try{var x=weex.config.ddWeexEnv;y=x===r.miniWidget?i.APP_TYPE.WEEX_WIDGET:i.APP_TYPE.WEEX}catch(e){y=i.APP_TYPE.WEEX}var _,b,w="*",S=e.match(/AliApp\(\w+\/([a-zA-Z0-9.-]+)\)/);null===S&&(S=e.match(/DingTalk\/([a-zA-Z0-9.-]+)/)),S&&S[1]&&(b=S[1]);var M="";"undefined"!=typeof name&&(M=name);var I=s();try{I&&"undefined"!=typeof window&&void 0!==window.top&&window.top!==window&&(M=top.name)}catch(e){}if(M)try{var A=JSON.parse(M);A.hostVersion&&(b=A.hostVersion),w=A.language||navigator.language||"*",_=A.containerId}catch(e){}var k=!!_;k&&!b&&(S=e.match(/DingTalk\(([a-zA-Z0-9\.-]+)\)/))&&S[1]&&(b=S[1]);var P,C=i.ENV_ENUM_SUB.noSub;return(P=p?i.ENV_ENUM.ios:g?i.ENV_ENUM.android:k?i.ENV_ENUM.pc:I&&I.platform?I.platform:i.ENV_ENUM.notInDingTalk)===i.ENV_ENUM.pc&&(C=e.indexOf("Macintosh; Intel Mac OS")>-1?i.ENV_ENUM_SUB.mac:i.ENV_ENUM_SUB.win),{platform:P,platformSub:C,version:b,appType:y,language:w}}},56336:function(e,t){"use strict";function n(e){return e="00"+e,e.substring(e.length-2,e.length)}var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.log=void 0,t.log=function(e){console.log.apply(console,i([n(e.time.getHours())+":"+n(e.time.getMinutes())+":"+n(e.time.getSeconds())],e.text))}},16195:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.language=t.compareVersion=t.other=t.pc=t.android=t.ios=void 0;var i=n(74716),o=i.getENV();t.ios=o.platform===i.ENV_ENUM.ios,t.android=o.platform===i.ENV_ENUM.android,t.pc=o.platform===i.ENV_ENUM.pc,t.other=o.platform===i.ENV_ENUM.notInDingTalk,t.compareVersion=function(e,t,n){function i(e){return parseInt(e,10)||0}if("string"!=typeof e||"string"!=typeof t)return!1;for(var o,r,a=e.split("-")[0].split(".").map(i),s=t.split("-")[0].split(".").map(i);o===r&&s.length>0;)o=a.shift(),r=s.shift();return n?(r||0)>=(o||0):(r||0)>(o||0)},t.language=o.language,t.version=o.version},38510:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FRAMEWORK=t.PLATFORM=t.RUNTIME=void 0,t.RUNTIME={WEB:"Web",WEEX:"Weex",UNKNOWN:"Unknown"},t.PLATFORM={MAC:"Mac",WINDOWS:"Windows",IOS:"iOS",ANDROID:"Android",IPAD:"iPad",BROWSER:"Browser",UNKNOWN:"Unknown"},t.FRAMEWORK={VUE:"Vue",RAX:"Rax",UNKNOWN:"Unknown"}},46593:function(e,t,n){"use strict";function i(e,t,n){var i="Web"===n.platform,r="iOS"===n.platform,a="android"===n.platform,s=a||r,l=function(){return i?window.navigator.userAgent.toLowerCase():""}(),u=function(){var e={};if(i){var t=window.name;try{var n=JSON.parse(t);e.containerId=n.containerId,e.version=n.hostVersion,e.language=n.language||"*"}catch(e){}}return e}(),c=function(){return s?"DingTalk"===n.appName||"com.alibaba.android.rimet"===n.appName:l.indexOf("dingtalk")>-1||!!u.containerId}(),d=function(){if(i){if(u.version)return u.version;var e=l.match(/aliapp\(\w+\/([a-zA-Z0-9.-]+)\)/);return null===e&&(e=l.match(/dingtalk\/([a-zA-Z0-9.-]+)/)),e&&e[1]||"Unknown"}return n.appVersion}(),h=!!u.containerId,f=/iphone|ipod|ios/.test(l),p=/ipad/.test(l),g=l.indexOf("android")>-1,v=l.indexOf("mac")>-1&&h,m=l.indexOf("win")>-1&&h,y=!v&&!m&&h,x=h,_="";return _=c?f||r?o.PLATFORM.IOS:g||a?o.PLATFORM.ANDROID:p?o.PLATFORM.IPAD:v?o.PLATFORM.MAC:m?o.PLATFORM.WINDOWS:y?o.PLATFORM.BROWSER:o.PLATFORM.UNKNOWN:o.PLATFORM.UNKNOWN,{isDingTalk:c,isWebiOS:f,isWebAndroid:g,isWeexiOS:r,isWeexAndroid:a,isDingTalkPCMac:v,isDingTalkPCWeb:y,isDingTalkPCWindows:m,isDingTalkPC:x,runtime:e,framework:t,platform:_,version:d,isWeex:s}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(38510);t["default"]=i},34766:function(e,t,n){"use strict";function i(){var e={};switch(u){case a.FRAMEWORK.VUE:var t=weex.config,n=t.env;e.platform=n.platform,a.RUNTIME.WEEX===l&&(e.appVersion=n.appVersion,e.appName=n.appName);break;case a.FRAMEWORK.RAX:a.RUNTIME.WEEX===l&&(e.platform=navigator.platform,e.appName=navigator.appName,e.appVersion=navigator.appVersion);break;case a.FRAMEWORK.UNKNOWN:a.RUNTIME.WEB===l&&(e.platform=a.RUNTIME.WEB),a.RUNTIME.UNKNOWN===l&&(e.platform=a.RUNTIME.UNKNOWN)}return e}Object.defineProperty(t,"__esModule",{value:!0});var o=n(52175),r=n(46593),a=n(38510),s=o.default().split("."),l=s[0],u=s[1],c=i(),d=r.default(l,u,c);t["default"]=d},52175:function(e,t){"use strict";function n(e,t){for(var n=e.length,i=0,o=!0;i<n;i++)try{if(!(e[i]in t)){o=!1;break}}catch(e){o=!1;break}return o}function i(){return o&&r?n(u,weex)?"Web.Vue":"Web.Unknown":!o&&r?n(u,weex)?"Weex.Vue":"Weex.Unknown":o&&a&&!r?n(s,window)?"Weex.Rax":"Weex.Unknown":o&&n(l,window)?"Web.Unknown":"Unknown.Unknown"}Object.defineProperty(t,"__esModule",{value:!0});var o="undefined"!=typeof window,r="undefined"!=typeof weex,a="undefined"!=typeof callNative,s=["__weex_config__","__weex_options__","__weex_require__"],l=["localStorage","location","navigator","XMLHttpRequest"],u=["config","requireModule","document"];t["default"]=i},31507:function(e){!function(t,n){e.exports=n()}(0,(function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=721)}({199:function(e,t,n){"use strict";var i=n(201);e.exports=i},201:function(e,t,n){"use strict";var i=n(203),o=n(204),r=n(202),a=n(205),s=new r,l=!1,u="",c=null,d={},h=/{.*}/;try{var f=window.name.match(h);if(f&&f[0])d=JSON.parse(f[0])}catch(e){d={}}d.hostOrigin&&".dingtalk.com"===d.hostOrigin.split(":")[1].slice(0-".dingtalk.com".length)&&d.containerId&&(l=!0,u=d.hostOrigin,c=d.containerId);var p={},g=new Promise((function(e,t){p._resolve=e,p._reject=t})),v={},m=null;window.top!==window?(m=window.top,p._resolve()):"object"==typeof dingtalk&&"object"==typeof dingtalk.platform&&"function"==typeof dingtalk.platform.invokeAPI&&(m=window,p._resolve()),v[a.SYS_INIT]=function(e){m=e.frameWindow,p._resolve(),e.respond({})},window.addEventListener("message",(function(e){var t=e.data,n=e.origin;if(n===u)if("response"===t.type&&t.msgId){var i=t.msgId,r=s.getMsyById(i);r&&r.methodName!==a.SYS_EVENT&&r.receiveResponse(t.body,!t.success)}else if("event"===t.type&&t.msgId){i=t.msgId,r=s.getMsyById(i);r&&r.receiveEvent(t.eventName,t.body)}else if("request"===t.type&&t.msgId){r=new o(e.source,n,t);v[r.methodName]&&v[r.methodName](r)}})),t.invokeAPI=function(e,t){var n=new i(c,e,t);return l&&g.then((function(){m&&m.postMessage(n.getPayload(),u),s.addPending(n)})),n};var y=null;t.addEventListener=function(e,n){y||(y=t.invokeAPI(a.SYS_EVENT,{})),y.addEventListener(e,n)},t.removeEventListener=function(e,t){y&&y.removeEventListener(e,t)}},202:function(e,t,n){"use strict";var i=function(){this.pendingMsgs={}};i.prototype.addPending=function(e){this.pendingMsgs[e.id]=e;var t=function(){delete this.pendingMsgs[e.id],e.removeEventListener("_finish",t)}.bind(this);e.addEventListener("_finish",t)},i.prototype.getMsyById=function(e){return this.pendingMsgs[e]},e.exports=i},203:function(e,t,n){"use strict";var i=n(716),o=n(715),r=0,a=Math.floor(1e3*Math.random()),s=function(){return 1e3*(1e3*a+Math.floor(1e3*Math.random()))+ ++r%1e3},l={code:408,reason:"timeout"},u={TIMEOUT:"_timeout",FINISH:"_finish"},c={timeout:-1},d=function(e,t,n,i){this.id=s(),this.methodName=t,this.containerId=e,this.option=o({},c,i);n=n||{};this._p={},this.result=new Promise(function(e,t){this._p._resolve=e,this._p._reject=t}.bind(this)),this.callbacks={},this.plainMsg=this._handleMsg(n),this._eventsHandle={},this._timeoutTimer=null,this._initTimeout(),this.isFinish=!1};d.prototype._initTimeout=function(){this._clearTimeout(),this.option.timeout>0&&(this._timeoutTimer=setTimeout(function(){this.receiveEvent(u.TIMEOUT),this.receiveResponse(l,!0)}.bind(this),this.option.timeout))},d.prototype._clearTimeout=function(){clearTimeout(this._timeoutTimer)},d.prototype._handleMsg=function(e){var t={};return Object.keys(e).forEach(function(n){var o=e[n];"function"==typeof o&&"on"===n.slice(0,2)?this.callbacks[n]=o:t[n]=i(o)}.bind(this)),t},d.prototype.getPayload=function(){return{msgId:this.id,containerId:this.containerId,methodName:this.methodName,body:this.plainMsg,type:"request"}},d.prototype.receiveEvent=function(e,t){if(this.isFinish&&e!==u.FINISH)return!1;e!==u.FINISH&&e!==u.TIMEOUT&&this._initTimeout(),Array.isArray(this._eventsHandle[e])&&this._eventsHandle[e].forEach((function(e){try{e(t)}catch(e){console.error(t)}}));var n="on"+e.charAt(0).toUpperCase()+e.slice(1);return this.callbacks[n]&&this.callbacks[n](t),!0},d.prototype.addEventListener=function(e,t){if(!e||"function"!=typeof t)throw"eventName is null or handle is not a function, addEventListener fail";Array.isArray(this._eventsHandle[e])||(this._eventsHandle[e]=[]),this._eventsHandle[e].push(t)},d.prototype.removeEventListener=function(e,t){if(!e||!t)throw"eventName is null or handle is null, invoke removeEventListener fail";if(Array.isArray(this._eventsHandle[e])){var n=this._eventsHandle[e].indexOf(t);-1!==n&&this._eventsHandle[e].splice(n,1)}},d.prototype.receiveResponse=function(e,t){if(!0===this.isFinish)return!1;this._clearTimeout();t=!!t;return t?this._p._reject(e):this._p._resolve(e),setTimeout(function(){this.receiveEvent(u.FINISH)}.bind(this),0),this.isFinish=!0,!0},e.exports=d},204:function(e,t,n){"use strict";var i=function(e,t,n){if(this._msgId=n.msgId,this.frameWindow=e,this.methodName=n.methodName,this.clientOrigin=t,this.containerId=n.containerId,this.params=n.body,!this._msgId)throw"msgId not exist";if(!this.frameWindow)throw"frameWindow not exist";if(!this.methodName)throw"methodName not exits";if(!this.clientOrigin)throw"clientOrigin not exist";this.hasResponded=!1};i.prototype.respond=function(e,t){t=!!t;if(!0!==this.hasResponded){var n={type:"response",success:!t,body:e,msgId:this._msgId};this.frameWindow.postMessage(n,this.clientOrigin),this.hasResponded=!0}},i.prototype.emit=function(e,t){var n={type:"event",eventName:e,body:t,msgId:this._msgId};this.frameWindow.postMessage(n,this.clientOrigin)},e.exports=i},205:function(e,t,n){"use strict";e.exports={SYS_EVENT:"SYS_openAPIContainerInitEvent",SYS_INIT:"SYS_openAPIContainerInit"}},4:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},714:function(e,t,n){(function(e,n){function i(e,t){return e.set(t[0],t[1]),e}function o(e,t){return e.add(t),e}function r(e,t){for(var n=-1,i=e.length;++n<i&&!1!==t(e[n],n,e););return e}function a(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}function s(e,t,n,i){var o=-1,r=e.length;for(i&&r&&(n=e[++o]);++o<r;)n=t(n,e[o],o,e);return n}function l(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function u(e){return e&&e.Object===Object?e:null}function c(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function d(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function h(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function f(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function p(){this.__data__=Dt?Dt(null):{}}function g(e){return this.has(e)&&delete this.__data__[e]}function v(e){var t=this.__data__;if(Dt){var n=t[e];return n===Pe?void 0:n}return vt.call(t,e)?t[e]:void 0}function m(e){var t=this.__data__;return Dt?void 0!==t[e]:vt.call(t,e)}function y(e,t){return this.__data__[e]=Dt&&void 0===t?Pe:t,this}function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function _(){this.__data__=[]}function b(e){var t=this.__data__,n=B(t,e);return!(n<0||(n==t.length-1?t.pop():It.call(t,n,1),0))}function w(e){var t=this.__data__,n=B(t,e);return n<0?void 0:t[n][1]}function S(e){return B(this.__data__,e)>-1}function M(e,t){var n=this.__data__,i=B(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function A(){this.__data__={hash:new f,map:new(Ct||x),string:new f}}function k(e){return ie(this,e).delete(e)}function P(e){return ie(this,e).get(e)}function C(e){return ie(this,e).has(e)}function E(e,t){return ie(this,e).set(e,t),this}function T(e){this.__data__=new x(e)}function N(){this.__data__=new x}function D(e){return this.__data__.delete(e)}function O(e){return this.__data__.get(e)}function L(e){return this.__data__.has(e)}function V(e,t){var n=this.__data__;return n instanceof x&&n.__data__.length==ke&&(n=this.__data__=new I(n.__data__)),n.set(e,t),this}function R(e,t,n){var i=e[t];vt.call(e,t)&&ve(i,n)&&(void 0!==n||t in e)||(e[t]=n)}function B(e,t){for(var n=e.length;n--;)if(ve(e[n][0],t))return n;return-1}function z(e,t){return e&&ee(t,Ae(t),e)}function W(e,t,n,i,o,a,s){var l;if(i&&(l=a?i(e,o,a,s):i(e)),void 0!==l)return l;if(!we(e))return e;var u=Ut(e);if(u){if(l=le(e),!t)return Q(e,l)}else{var d=se(e),h=d==De||d==Oe;if($t(e))return j(e,t);if(d==Re||d==Ee||h&&!a){if(c(e))return a?e:{};if(l=ue(h?{}:e),!t)return te(e,z(l,e))}else{if(!it[d])return a?e:{};l=ce(e,d,W,t)}}s||(s=new T);var f=s.get(e);if(f)return f;if(s.set(e,l),!u)var p=n?ne(e):Ae(e);return r(p||e,(function(o,r){p&&(r=o,o=e[r]),R(l,r,W(o,t,n,i,r,e,s))})),l}function F(e){return we(e)?St(e):{}}function U(e,t,n){var i=t(e);return Ut(e)?i:a(i,n(e))}function $(e,t){return vt.call(e,t)||"object"==typeof e&&t in e&&null===re(e)}function H(e){return kt(Object(e))}function j(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function G(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t}function Y(e,t){var n=t?G(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Z(e,t,n){return s(t?n(d(e),!0):d(e),i,new e.constructor)}function q(e){var t=new e.constructor(e.source,et.exec(e));return t.lastIndex=e.lastIndex,t}function X(e,t,n){return s(t?n(h(e),!0):h(e),o,new e.constructor)}function J(e){return Wt?Object(Wt.call(e)):{}}function K(e,t){var n=t?G(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Q(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}function ee(e,t,n,i){n||(n={});for(var o=-1,r=t.length;++o<r;){var a=t[o];R(n,a,i?i(n[a],e[a],a,n,e):e[a])}return n}function te(e,t){return ee(e,ae(e),t)}function ne(e){return U(e,Ae,ae)}function ie(e,t){var n=e.__data__;return fe(t)?n["string"==typeof t?"string":"hash"]:n.map}function oe(e,t){var n=e[t];return Me(n)?n:void 0}function re(e){return At(Object(e))}function ae(e){return wt(Object(e))}function se(e){return mt.call(e)}function le(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&vt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ue(e){return"function"!=typeof e.constructor||pe(e)?{}:F(re(e))}function ce(e,t,n,i){var o=e.constructor;switch(t){case Ue:return G(e);case Te:case Ne:return new o(+e);case $e:return Y(e,i);case He:case je:case Ge:case Ye:case Ze:case qe:case Xe:case Je:case Ke:return K(e,i);case Le:return Z(e,i,n);case Ve:case We:return new o(e);case Be:return q(e);case ze:return X(e,i,n);case Fe:return J(e)}}function de(e){var t=e?e.length:void 0;return be(t)&&(Ut(e)||Ie(e)||me(e))?l(t,String):null}function he(e,t){return!!(t=null==t?Ce:t)&&("number"==typeof e||nt.test(e))&&e>-1&&e%1==0&&e<t}function fe(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function pe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||pt)}function ge(e){if(null!=e){try{return gt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ve(e,t){return e===t||e!==e&&t!==t}function me(e){return xe(e)&&vt.call(e,"callee")&&(!Mt.call(e,"callee")||mt.call(e)==Ee)}function ye(e){return null!=e&&be(Ft(e))&&!_e(e)}function xe(e){return Se(e)&&ye(e)}function _e(e){var t=we(e)?mt.call(e):"";return t==De||t==Oe}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ce}function we(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Se(e){return!!e&&"object"==typeof e}function Me(e){return!!we(e)&&(_e(e)||c(e)?yt:tt).test(ge(e))}function Ie(e){return"string"==typeof e||!Ut(e)&&Se(e)&&mt.call(e)==We}function Ae(e){var t=pe(e);if(!t&&!ye(e))return H(e);var n=de(e),i=!!n,o=n||[],r=o.length;for(var a in e)!$(e,a)||i&&("length"==a||he(a,r))||t&&"constructor"==a||o.push(a);return o}var ke=200,Pe="__lodash_hash_undefined__",Ce=9007199254740991,Ee="[object Arguments]",Te="[object Boolean]",Ne="[object Date]",De="[object Function]",Oe="[object GeneratorFunction]",Le="[object Map]",Ve="[object Number]",Re="[object Object]",Be="[object RegExp]",ze="[object Set]",We="[object String]",Fe="[object Symbol]",Ue="[object ArrayBuffer]",$e="[object DataView]",He="[object Float32Array]",je="[object Float64Array]",Ge="[object Int8Array]",Ye="[object Int16Array]",Ze="[object Int32Array]",qe="[object Uint8Array]",Xe="[object Uint8ClampedArray]",Je="[object Uint16Array]",Ke="[object Uint32Array]",Qe=/[\\^$.*+?()[\]{}|]/g,et=/\w*$/,tt=/^\[object .+?Constructor\]$/,nt=/^(?:0|[1-9]\d*)$/,it={};it[Ee]=it["[object Array]"]=it[Ue]=it[$e]=it[Te]=it[Ne]=it[He]=it[je]=it[Ge]=it[Ye]=it[Ze]=it[Le]=it[Ve]=it[Re]=it[Be]=it[ze]=it[We]=it[Fe]=it[qe]=it[Xe]=it[Je]=it[Ke]=!0,it["[object Error]"]=it[De]=it["[object WeakMap]"]=!1;var ot={function:!0,object:!0},rt=ot[typeof t]&&t&&!t.nodeType?t:void 0,at=ot[typeof e]&&e&&!e.nodeType?e:void 0,st=at&&at.exports===rt?rt:void 0,lt=u(rt&&at&&"object"==typeof n&&n),ut=u(ot[typeof self]&&self),ct=u(ot[typeof window]&&window),dt=u(ot[typeof this]&&this),ht=lt||ct!==(dt&&dt.window)&&ct||ut||dt||Function("return this")(),ft=Array.prototype,pt=Object.prototype,gt=Function.prototype.toString,vt=pt.hasOwnProperty,mt=pt.toString,yt=RegExp("^"+gt.call(vt).replace(Qe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=st?ht.Buffer:void 0,_t=ht.Symbol,bt=ht.Uint8Array,wt=Object.getOwnPropertySymbols,St=Object.create,Mt=pt.propertyIsEnumerable,It=ft.splice,At=Object.getPrototypeOf,kt=Object.keys,Pt=oe(ht,"DataView"),Ct=oe(ht,"Map"),Et=oe(ht,"Promise"),Tt=oe(ht,"Set"),Nt=oe(ht,"WeakMap"),Dt=oe(Object,"create"),Ot=ge(Pt),Lt=ge(Ct),Vt=ge(Et),Rt=ge(Tt),Bt=ge(Nt),zt=_t?_t.prototype:void 0,Wt=zt?zt.valueOf:void 0;f.prototype.clear=p,f.prototype.delete=g,f.prototype.get=v,f.prototype.has=m,f.prototype.set=y,x.prototype.clear=_,x.prototype.delete=b,x.prototype.get=w,x.prototype.has=S,x.prototype.set=M,I.prototype.clear=A,I.prototype.delete=k,I.prototype.get=P,I.prototype.has=C,I.prototype.set=E,T.prototype.clear=N,T.prototype.delete=D,T.prototype.get=O,T.prototype.has=L,T.prototype.set=V;var Ft=function(e){return function(e){return null==e?void 0:e.length}}();wt||(ae=function(){return[]}),(Pt&&se(new Pt(new ArrayBuffer(1)))!=$e||Ct&&se(new Ct)!=Le||Et&&"[object Promise]"!=se(Et.resolve())||Tt&&se(new Tt)!=ze||Nt&&"[object WeakMap]"!=se(new Nt))&&(se=function(e){var t=mt.call(e),n=t==Re?e.constructor:void 0,i=n?ge(n):void 0;if(i)switch(i){case Ot:return $e;case Lt:return Le;case Vt:return"[object Promise]";case Rt:return ze;case Bt:return"[object WeakMap]"}return t});var Ut=Array.isArray,$t=xt?function(e){return e instanceof xt}:function(e){return function(){return!1}}();e.exports=W}).call(t,n(719)(e),n(4))},715:function(e,t,n){function i(e,t,n){var i=e[t];_.call(e,t)&&l(i,n)&&(void 0!==n||t in e)||(e[t]=n)}function o(e,t,n,o){n||(n={});for(var r=-1,a=t.length;++r<a;){var s=t[r];i(n,s,o?o(n[s],e[s],s,n,e):e[s])}return n}function r(e,t){return!!(t=null==t?g:t)&&("number"==typeof e||y.test(e))&&e>-1&&e%1==0&&e<t}function a(e,t,n){if(!h(n))return!1;var i=typeof t;return!!("number"==i?u(n)&&r(t,n.length):"string"==i&&t in n)&&l(n[t],e)}function s(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||x)}function l(e,t){return e===t||e!==e&&t!==t}function u(e){return null!=e&&d(M(e))&&!c(e)}function c(e){var t=h(e)?b.call(e):"";return t==v||t==m}function d(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=g}function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var f=n(717),p=n(718),g=9007199254740991,v="[object Function]",m="[object GeneratorFunction]",y=/^(?:0|[1-9]\d*)$/,x=Object.prototype,_=x.hasOwnProperty,b=x.toString,w=x.propertyIsEnumerable,S=!w.call({valueOf:1},"valueOf"),M=function(e){return function(e){return null==e?void 0:e.length}}(),I=function(e){return p((function(t,n){var i=-1,o=n.length,r=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,s&&a(n[0],n[1],s)&&(r=o<3?void 0:r,o=1),t=Object(t);++i<o;){var l=n[i];l&&e(t,l)}return t}))}((function(e,t){if(S||s(t)||u(t))o(t,f(t),e);else for(var n in t)_.call(t,n)&&i(e,n,t[n])}));e.exports=I},716:function(e,t,n){function i(e){return o(e,!0,!0)}var o=n(714);e.exports=i},717:function(e,t){function n(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function i(e,t){var i=I(e)||s(e)?n(e.length,String):[],o=i.length,a=!!o;for(var l in e)!t&&!b.call(e,l)||a&&("length"==l||r(l,o))||i.push(l);return i}function o(e){if(!a(e))return M(e);var t=[];for(var n in Object(e))b.call(e,n)&&"constructor"!=n&&t.push(n);return t}function r(e,t){return!!(t=null==t?g:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_)}function s(e){return u(e)&&b.call(e,"callee")&&(!S.call(e,"callee")||w.call(e)==v)}function l(e){return null!=e&&d(e.length)&&!c(e)}function u(e){return f(e)&&l(e)}function c(e){var t=h(e)?w.call(e):"";return t==m||t==y}function d(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=g}function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function f(e){return!!e&&"object"==typeof e}function p(e){return l(e)?i(e):o(e)}var g=9007199254740991,v="[object Arguments]",m="[object Function]",y="[object GeneratorFunction]",x=/^(?:0|[1-9]\d*)$/,_=Object.prototype,b=_.hasOwnProperty,w=_.toString,S=_.propertyIsEnumerable,M=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),I=Array.isArray;e.exports=p},718:function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function i(e,t){return t=S(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,r=S(i.length-t,0),a=Array(r);++o<r;)a[o]=i[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=i[o];return s[t]=a,n(e,this,s)}}function o(e,t){if("function"!=typeof e)throw new TypeError(d);return t=void 0===t?t:u(t),i(e,t)}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function a(e){return!!e&&"object"==typeof e}function s(e){return"symbol"==typeof e||a(e)&&w.call(e)==g}function l(e){return e?(e=c(e))===h||e===-h?(e<0?-1:1)*f:e===e?e:0:0===e?e:0}function u(e){var t=l(e),n=t%1;return t===t?n?t-n:t:0}function c(e){if("number"==typeof e)return e;if(s(e))return p;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(v,"");var n=y.test(e);return n||x.test(e)?_(e.slice(2),n?2:8):m.test(e)?p:+e}var d="Expected a function",h=1/0,f=17976931348623157e292,p=NaN,g="[object Symbol]",v=/^\s+|\s+$/g,m=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,x=/^0o[0-7]+$/i,_=parseInt,b=Object.prototype,w=b.toString,S=Math.max;e.exports=o},719:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},721:function(e,t,n){e.exports=n(199)}})}))},73480:function(e,t,n){"function"!=typeof Promise&&n(61107)},33666:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(73480),n(57793),n(85434)},57793:function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},writable:!0,configurable:!0})},85434:function(){Object.keys||(Object.keys=function(e){if(e!==Object(e))throw new TypeError("Object.keys called on a non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n})},74888:function(e,t,n){"use strict";function i(e,t){var n=e&&e.vs;return"object"==typeof n&&(n=n[t.platformSub]),n}Object.defineProperty(t,"__esModule",{value:!0}),t.Sdk=t.LogLevel=t.APP_TYPE=t.isFunction=t.compareVersion=t.ENV_ENUM_SUB=t.ENV_ENUM=void 0;var o=n(70864);Object.defineProperty(t,"APP_TYPE",{enumerable:!0,get:function(){return o.APP_TYPE}}),Object.defineProperty(t,"LogLevel",{enumerable:!0,get:function(){return o.LogLevel}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return o.isFunction}}),Object.defineProperty(t,"compareVersion",{enumerable:!0,get:function(){return o.compareVersion}}),Object.defineProperty(t,"ENV_ENUM",{enumerable:!0,get:function(){return o.ENV_ENUM}}),Object.defineProperty(t,"ENV_ENUM_SUB",{enumerable:!0,get:function(){return o.ENV_ENUM_SUB}});var r=function(){function e(e,t){var n=this;this.configJsApiList=[],this.hadConfig=!1,this.p={},this.config$=new Promise((function(e,t){n.p.reject=t,n.p.resolve=e})),this.logQueue=[],this.devConfig={debug:!1},this.platformConfigMap={},this.invokeAPIConfigMapByMethod={},this.isBridgeDrity=!0,this.getExportSdk=function(){return n.exportSdk},this.setAPI=function(e,t){n.invokeAPIConfigMapByMethod[e]=t},this.setPlatform=function(e){n.isBridgeDrity=!0,n.platformConfigMap[e.platform]=e,e.platform===n.env.platform&&e.bridgeInit().catch((function(e){n.customLog(o.LogLevel.WARNING,["auto bridgeInit error",e||""])}))},this.getPlatformConfigMap=function(){return n.platformConfigMap},this.deleteApiConfig=function(e,t){var i=n.invokeAPIConfigMapByMethod[e];i&&delete i[t]},this.invokeAPI=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=!0),n.customLog(o.LogLevel.INFO,['==> "'+e+'" params: ',t]);var a=+new Date,s=a+"_"+Math.floor(1e3*Math.random());if(n.devConfig.onBeforeInvokeAPI)try{n.devConfig.onBeforeInvokeAPI({invokeId:s,method:e,params:t,startTime:a})}catch(e){n.customLog(o.LogLevel.ERROR,["call Hook:onBeforeInvokeAPI failed, reason:",e])}return!1===n.devConfig.isAuthApi&&(r=!1),n.bridgeInitFn().then((function(l){var u=n.invokeAPIConfigMapByMethod[e],c=n.devConfig.forceEnableDealApiFnMap&&n.devConfig.forceEnableDealApiFnMap[e]&&!0===n.devConfig.forceEnableDealApiFnMap[e](t),d=!c&&(!0===n.devConfig.isDisableDeal||n.devConfig.disbaleDealApiWhiteList&&-1!==n.devConfig.disbaleDealApiWhiteList.indexOf(e));if(u||!r){var h;if(u&&(h=u[n.env.platform]),h||!r){var f={};f=!d&&h&&h.paramsDeal&&o.isFunction(h.paramsDeal)?h.paramsDeal(t):Object.assign({},t);var p=function(e){return!d&&h&&h.resultDeal&&o.isFunction(h.resultDeal)?h.resultDeal(e):e};if(o.isFunction(f.onSuccess)){var g=f.onSuccess;f.onSuccess=function(e){g(p(e))}}return l(e,f).then(p,(function(t){var a=n.hadConfig&&void 0===n.isReady&&-1!==n.configJsApiList.indexOf(e),s="object"==typeof t&&"string"==typeof t.errorCode&&t.errorCode===o.ERROR_CODE.no_permission,u="object"==typeof t&&"string"==typeof t.errorCode&&t.errorCode===o.ERROR_CODE.cancel,c=i(h,n.env),d=c&&n.env.version&&o.compareVersion(n.env.version,c),g=(n.env.platform===o.ENV_ENUM.ios||n.env.platform===o.ENV_ENUM.android)&&a&&s,v=n.env.platform===o.ENV_ENUM.pc&&a&&(d&&!u&&r||s);return g||v?n.config$.then((function(){return l(e,f).then(p)})):Promise.reject(t)})).then((function(i){if(n.devConfig.onAfterInvokeAPI)try{n.devConfig.onAfterInvokeAPI({invokeId:s,method:e,params:t,payload:i,isSuccess:!0,startTime:a,duration:+new Date-a})}catch(e){n.customLog(o.LogLevel.ERROR,["call Hook:onAfterInvokeAPI failed, reason:",e])}return n.customLog(o.LogLevel.INFO,['<== "'+e+'" success result: ',i]),i}),(function(i){if(n.devConfig.onAfterInvokeAPI)try{n.devConfig.onAfterInvokeAPI({invokeId:s,method:e,params:t,payload:i,startTime:a,duration:+new Date-a,isSuccess:!1})}catch(i){n.customLog(o.LogLevel.ERROR,["call Hook:onAfterInvokeAPI failed, reason:",i])}return n.customLog(o.LogLevel.WARNING,['<== "'+e+'" fail result: ',i]),Promise.reject(i)}))}var v='"'+e+'" do not support the current platform ('+n.env.platform+")";return n.customLog(o.LogLevel.ERROR,[v]),Promise.reject({errorCode:o.ERROR_CODE.jsapi_internal_error,errorMessage:v})}v="This API method is not configured for the platform ("+n.env.platform+")";return n.customLog(o.LogLevel.ERROR,[v]),Promise.reject({errorCode:o.ERROR_CODE.jsapi_internal_error,errorMessage:v})}))},this.isLogQueueTimeout=!1,this.customLog=function(e,t){var i={level:e,text:t,time:new Date};!0===n.devConfig.debug?n.customLogInstance(i):n.isLogQueueTimeout||(n.logQueueTimer||(n.logQueueTimer=setTimeout((function(){n.isLogQueueTimeout=!0,n.logQueue=[]}),1e4)),n.logQueue.push(i),n.logQueue.length>10&&(n.logQueue=n.logQueue.slice(n.logQueue.length-10)))},this.clearLogQueue=function(){n.logQueue.forEach((function(e){n.customLogInstance(e)})),n.logQueue=[]},this.customLogInstance=t,this.env=e,this.bridgeInitFn=function(){if(n.bridgeInitFnPromise&&!n.isBridgeDrity)return n.bridgeInitFnPromise;n.isBridgeDrity=!1;var t=n.platformConfigMap[e.platform];if(t)n.bridgeInitFnPromise=t.bridgeInit().catch((function(e){return n.customLog(o.LogLevel.ERROR,["\b\b\b\b\bJsBridge initialization fails, jsapi will not work"]),Promise.reject(e)}));else{var i="Do not support the current environment:"+e.platform;n.customLog(o.LogLevel.WARNING,[i]),n.bridgeInitFnPromise=Promise.reject(new Error(i))}return n.bridgeInitFnPromise};var r=function(e){void 0===e&&(e={}),n.devConfig=Object.assign(n.devConfig,e),!0===e.debug&&n.clearLogQueue(),e.extraPlatform&&n.setPlatform(e.extraPlatform)};this.exportSdk={config:function(t){void 0===t&&(t={});var i=!0;Object.keys(t).forEach((function(e){-1===["debug","usePromise"].indexOf(e)&&(i=!1)})),i?(n.customLog(o.LogLevel.WARNING,["This is a deprecated feature, recommend use dd.devConfig"]),r(t)):n.hadConfig?n.customLog(o.LogLevel.WARNING,["Config has been executed"]):(t.jsApiList&&(n.configJsApiList=t.jsApiList),n.hadConfig=!0,n.bridgeInitFn().then((function(i){var o=n.platformConfigMap[e.platform],r=t;o.authParamsDeal&&(r=o.authParamsDeal(r)),i(o.authMethod,r).then((function(e){n.isReady=!0,n.p.resolve(e)})).catch((function(e){n.isReady=!1,n.p.reject(e)}))}),(function(e){n.customLog(o.LogLevel.ERROR,['\b\b\b\b\bJsBridge initialization failed and "dd.config" failed to call']),n.p.reject(e)})))},devConfig:r,ready:function(e){!1===n.hadConfig?(n.customLog(o.LogLevel.WARNING,["You don 't use a dd.config, so you don't need to wrap dd.ready, recommend remove dd.ready"]),n.bridgeInitFn().then((function(){e()}))):n.config$.then((function(t){e()}))},error:function(e){n.config$.catch((function(t){e(t)}))},on:function(t,i){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.on(t,i)}))},off:function(t,i){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.off(t,i)}))},env:e,checkJsApi:function(t){void 0===t&&(t={});var r={};return t.jsApiList&&t.jsApiList.forEach((function(t){var a=n.invokeAPIConfigMapByMethod[t];if(a){var s=a[e.platform],l=i(s,e);l&&e.version&&o.compareVersion(e.version,l)&&(r[t]=!0)}r[t]||(r[t]=!1)})),Promise.resolve(r)},_invoke:function(e,t){return void 0===t&&(t={}),n.invokeAPI(e,t,!1)}}}return e}();t.Sdk=r},70864:function(e,t){"use strict";function n(e){return"function"==typeof e}function i(e,t){function n(e){return parseInt(e,10)||0}for(var i=e.split(".").map(n),o=t.split(".").map(n),r=0;r<i.length;r++){if(void 0===o[r])return!1;if(i[r]<o[r])return!1;if(i[r]>o[r])return!0}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=t.APP_TYPE=t.ENV_ENUM_SUB=t.ENV_ENUM=t.ERROR_CODE=t.compareVersion=t.isFunction=void 0,t.isFunction=n,t.compareVersion=i,function(e){e.cancel="-1",e.not_exist="1",e.no_permission="7",e.jsapi_internal_error="22"}(t.ERROR_CODE||(t.ERROR_CODE={})),function(e){e.pc="pc",e.android="android",e.ios="ios",e.notInDingTalk="notInDingTalk"}(t.ENV_ENUM||(t.ENV_ENUM={})),function(e){e.mac="mac",e.win="win",e.noSub="noSub"}(t.ENV_ENUM_SUB||(t.ENV_ENUM_SUB={})),function(e){e.WEB="WEB",e.MINI_APP="MINI_APP",e.WEEX="WEEX",e.WEBVIEW_IN_MINIAPP="WEBVIEW_IN_MINIAPP",e.WEEX_WIDGET="WEEX_WIDGET"}(t.APP_TYPE||(t.APP_TYPE={})),function(e){e[e.INFO=1]="INFO",e[e.WARNING=2]="WARNING",e[e.ERROR=3]="ERROR"}(t.LogLevel||(t.LogLevel={}))},72840:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(95774),o=n(74716),r=n(74888),a=n(79011),s=n(91684),l=n(33903),u=n(24702),c=n(21022),d=n(51445);i.ddSdk.setPlatform({platform:o.ENV_ENUM.android,bridgeInit:function(){var e=o.getENV();return e.appType===r.APP_TYPE.MINI_APP?Promise.resolve(a.default):e.appType===r.APP_TYPE.WEBVIEW_IN_MINIAPP?Promise.resolve(s.default):e.appType===r.APP_TYPE.WEEX?u.androidWeexBridge():l.h5AndroidbridgeInit().then((function(){return l.default}))},authMethod:"runtime.permission.requestJsApis",event:{on:function(e,t){var n=o.getENV();switch(n.appType){case r.APP_TYPE.WEB:case r.APP_TYPE.WEBVIEW_IN_MINIAPP:c.on(e,t);break;case r.APP_TYPE.WEEX:d.on(e,t);break;default:throw new Error("Not support global event in the platfrom: "+n.appType)}},off:function(e,t){var n=o.getENV();switch(n.appType){case r.APP_TYPE.WEB:case r.APP_TYPE.WEBVIEW_IN_MINIAPP:c.off(e,t);break;case r.APP_TYPE.WEEX:d.off(e,t);break;default:throw new Error("Not support global event in the platfrom: "+n.appType)}}}})},28343:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(40561),n(72840),n(31257)},31257:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(95774),o=n(74716),r=n(74888),a=n(79011),s=n(91684),l=n(14917),u=n(24702),c=n(21022),d=n(51445);i.ddSdk.setPlatform({platform:o.ENV_ENUM.ios,bridgeInit:function(){var e=o.getENV();return e.appType===r.APP_TYPE.MINI_APP?Promise.resolve(a.default):e.appType===r.APP_TYPE.WEBVIEW_IN_MINIAPP?Promise.resolve(s.default):e.appType===r.APP_TYPE.WEEX?u.iosWeexBridge():l.h5IosBridgeInit().then((function(){return l.default}))},authMethod:"runtime.permission.requestJsApis",event:{on:function(e,t){var n=o.getENV();switch(n.appType){case r.APP_TYPE.WEB:case r.APP_TYPE.WEBVIEW_IN_MINIAPP:c.on(e,t);break;case r.APP_TYPE.WEEX:d.on(e,t);break;default:throw new Error("Not support global event in the platfrom: "+n.appType)}},off:function(e,t){var n=o.getENV();switch(n.appType){case r.APP_TYPE.WEB:case r.APP_TYPE.WEBVIEW_IN_MINIAPP:c.off(e,t);break;case r.APP_TYPE.WEEX:d.off(e,t);break;default:throw new Error("Not support global event in the platfrom: "+n.appType)}}}})},40561:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(95774),o=n(74716),r=n(46001),a=n(79011),s=n(74888),l=n(37602);i.ddSdk.setPlatform({platform:o.ENV_ENUM.pc,bridgeInit:function(){switch(o.getENV().appType){case s.APP_TYPE.MINI_APP:return Promise.resolve(a.default);default:return r.h5PcBridgeInit().then((function(){return r.default}))}},authMethod:"config",authParamsDeal:function(e){var t=Object.assign({},e);return t.url=window.location.href.split("#")[0],t},event:{on:function(e,t){if(o.getENV().appType===s.APP_TYPE.WEB)return l.on(e,t)},off:function(e,t){if(o.getENV().appType===s.APP_TYPE.WEB)return l.off(e,t)}}})},70596:function(e,t,n){var i=n(70492);(function(){for(var e in i){if(null==i||!i.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=i[e]}})();var o=n(34151);(function(){for(var e in o){if(null==o||!o.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=o[e]}})(),n(81768),n(46295),n(40451),n(94859),n(42213),n(48927),n(10064),n(81052),n(17831),n(44553),n(27539),n(66614),n(28571),n(90474),n(31978),n(83760),n(52755),n(64771),n(40055),n(59314),n(90110),n(13594),n(81741),n(82601),n(49225),n(48807),n(84066),n(75781),n(58362),n(78644),n(76093),n(83062),n(52528),n(17817),n(21865),n(56913),n(74482),n(34563),n(35598),n(77139),n(78511),n(53665),n(68569),n(32620),n(88067),n(23084),n(56720),n(62227),n(31663)},95899:function(e,t,n){var i=n(33051),o={};function r(){this._coordinateSystems=[]}r.prototype={constructor:r,create:function(e,t){var n=[];i.each(o,(function(i,o){var r=i.create(e,t);n=n.concat(r||[])})),this._coordinateSystems=n},update:function(e,t){i.each(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},r.register=function(e,t){o[e]=t},r.get=function(e){return o[e]};var a=r;e.exports=a},59935:function(e,t,n){var i=n(33051),o=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function r(e){i.each(o,(function(t){this[t]=i.bind(e[t],e)}),this)}var a=r;e.exports=a},75324:function(e,t,n){var i=n(70492),o=n(33051);function r(e,t){o.each(t,(function(t){t.update="updateView",i.registerAction(t,(function(n,i){var o={};return i.eachComponent({mainType:"series",subType:e,query:n},(function(e){e[t.method]&&e[t.method](n.name,n.dataIndex);var i=e.getData();i.each((function(t){var n=i.getName(t);o[n]=e.isSelected(n)||!1}))})),{name:n.name,selected:o,seriesId:n.seriesId}}))}))}e.exports=r},28401:function(e,t,n){var i=n(70492),o=n(33051),r=n(60553),a=r.updateCenterAndZoom;i.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){var i=t.coordinateSystem;if("geo"===i.type){var r=a(i,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom),"series"===n&&o.each(t.seriesGroup,(function(e){e.setCenter(r.center),e.setZoom(r.zoom)}))}}))}))},60553:function(e,t){function n(e,t,n){var i=e.getZoom(),o=e.getCenter(),r=t.zoom,a=e.dataToPoint(o);if(null!=t.dx&&null!=t.dy){a[0]-=t.dx,a[1]-=t.dy;o=e.pointToData(a);e.setCenter(o)}if(null!=r){if(n){var s=n.min||0,l=n.max||1/0;r=Math.max(Math.min(i*r,l),s)/i}e.scale[0]*=r,e.scale[1]*=r;var u=e.position,c=(t.originX-u[0])*(r-1),d=(t.originY-u[1])*(r-1);u[0]-=c,u[1]-=d,e.updateTransform();o=e.pointToData(a);e.setCenter(o),e.setZoom(r*i)}return{center:e.getCenter(),zoom:e.getZoom()}}t.updateCenterAndZoom=n},40451:function(e,t,n){var i=n(70492),o=n(33051),r=n(79093),a=r.layout,s=r.largeLayout;n(77532),n(90791),n(33207),n(84617),i.registerLayout(i.PRIORITY.VISUAL.LAYOUT,o.curry(a,"bar")),i.registerLayout(i.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),i.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}})},90791:function(e,t,n){var i=n(489),o=i.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},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}}});e.exports=o},33207:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(70492)),r=n(33051),a=n(51177),s=n(7905),l=s.setLabel,u=n(4272),c=n(98378),d=n(10712),h=n(8524),f=n(270),p=f.throttle,g=n(22963),v=g.createClipPath,m=n(39529),y=["itemStyle","barBorderWidth"],x=[0,0];function _(e,t){var n=e.getArea&&e.getArea();if("cartesian2d"===e.type){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var o=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=o,n.width+=2*o):(n.y-=o,n.height+=2*o)}}return n}r.extend(u.prototype,c);var b=o.extendChartView({type:"bar",render:function(e,t,n){this._updateDrawMode(e);var i=e.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n)),this.group},incrementalPrepareRender:function(e,t,n){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,n,i){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e,t,n){var i,o=this.group,r=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=e.get("clip",!0),f=_(l,r);o.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),v=e.getModel("backgroundStyle"),m=v.get("barBorderRadius")||0,y=[],x=this._backgroundEls||[];r.diff(s).add((function(t){var n=r.getItemModel(t),a=P[l.type](r,t,n);if(g){var s=P[l.type](r,t),u=z(l,i,s);u.useStyle(v.getBarItemStyle()),"cartesian2d"===l.type&&u.setShape("r",m),y[t]=u}if(r.hasValue(t)){if(d){var h=M[l.type](f,a);if(h)return void o.remove(x)}var x=I[l.type](t,a,i,c,!1,p);r.setItemGraphicEl(t,x),o.add(x),E(x,r,t,n,a,e,i,"polar"===l.type)}})).update((function(t,n){var u=r.getItemModel(t),h=P[l.type](r,t,u);if(g){var _=x[n];_.useStyle(v.getBarItemStyle()),"cartesian2d"===l.type&&_.setShape("r",m),y[t]=_;var b=P[l.type](r,t),w=B(i,b,l);a.updateProps(_,{shape:w},c,t)}var S=s.getItemGraphicEl(n);if(r.hasValue(t)){if(d){var A=M[l.type](f,h);if(A)return void o.remove(S)}S?a.updateProps(S,{shape:h},c,t):S=I[l.type](t,h,i,c,!0,p),r.setItemGraphicEl(t,S),o.add(S),E(S,r,t,u,h,e,i,"polar"===l.type)}else o.remove(S)})).remove((function(e){var t=s.getItemGraphicEl(e);"cartesian2d"===l.type?t&&A(e,c,t):t&&k(e,c,t)})).execute();var b=this._backgroundGroup||(this._backgroundGroup=new h);b.removeAll();for(var w=0;w<y.length;++w)b.add(y[w]);o.add(b),this._backgroundEls=y,this._data=r},_renderLarge:function(e,t,n){this._clear(),D(e,this.group);var i=e.get("clip",!0)?v(e.coordinateSystem,!1,e):null;i?this.group.setClipPath(i):this.group.removeClipPath()},_incrementalRenderLarge:function(e,t){this._removeBackground(),D(t,this.group,!0)},dispose:r.noop,remove:function(e){this._clear(e)},_clear:function(e){var t=this.group,n=this._data;e&&e.get("animation")&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){"sector"===t.type?k(t.dataIndex,e,t):A(t.dataIndex,e,t)}))):t.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),w=Math.max,S=Math.min,M={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var o=w(t.x,e.x),r=S(t.x+t.width,e.x+e.width),a=w(t.y,e.y),s=S(t.y+t.height,e.y+e.height);t.x=o,t.y=a,t.width=r-o,t.height=s-a;var l=t.width<0||t.height<0;return n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),l},polar:function(e){return!1}},I={cartesian2d:function(e,t,n,i,o){var s=new a.Rect({shape:r.extend({},t),z2:1});if(s.name="item",i){var l=s.shape,u=n?"height":"width",c={};l[u]=0,c[u]=t[u],a[o?"updateProps":"initProps"](s,{shape:c},i,e)}return s},polar:function(e,t,n,i,o,s){var l=t.startAngle<t.endAngle,u=!n&&s?m:a.Sector,c=new u({shape:r.defaults({clockwise:l},t),z2:1});if(c.name="item",i){var d=c.shape,h=n?"r":"endAngle",f={};d[h]=n?0:t.startAngle,f[h]=t[h],a[o?"updateProps":"initProps"](c,{shape:f},i,e)}return c}};function A(e,t,n){n.style.text=null,a.updateProps(n,{shape:{width:0}},t,e,(function(){n.parent&&n.parent.remove(n)}))}function k(e,t,n){n.style.text=null,a.updateProps(n,{shape:{r:n.shape.r0}},t,e,(function(){n.parent&&n.parent.remove(n)}))}var P={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),o=n?T(n,i):0,r=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+r*o/2,y:i.y+a*o/2,width:i.width-r*o,height:i.height-a*o}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function C(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function E(e,t,n,i,o,s,u,c){var d=t.getItemVisual(n,"color"),h=t.getItemVisual(n,"opacity"),f=t.getVisual("borderColor"),p=i.getModel("itemStyle"),g=i.getModel("emphasis.itemStyle").getBarItemStyle();c||e.setShape("r",p.get("barBorderRadius")||0),e.useStyle(r.defaults({stroke:C(o)?"none":f,fill:C(o)?"none":d,opacity:h},p.getBarItemStyle()));var v=i.getShallow("cursor");v&&e.attr("cursor",v);var m=u?o.height>0?"bottom":"top":o.width>0?"left":"right";c||l(e.style,g,i,d,s,n,m),C(o)&&(g.fill=g.stroke="none"),a.setHoverStyle(e,g)}function T(e,t){var n=e.get(y)||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,o)}var N=d.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var n=t.points,i=this.__startPoint,o=this.__baseDimIdx,r=0;r<n.length;r+=2)i[o]=n[r+o],e.moveTo(i[0],i[1]),e.lineTo(n[r],n[r+1])}});function D(e,t,n){var i=e.getData(),o=[],r=i.getLayout("valueAxisHorizontal")?1:0;o[1-r]=i.getLayout("valueAxisStart");var a=i.getLayout("largeDataIndices"),s=i.getLayout("barWidth"),l=e.getModel("backgroundStyle"),u=e.get("showBackground",!0);if(u){var c=i.getLayout("largeBackgroundPoints"),d=[];d[1-r]=i.getLayout("backgroundStart");var h=new N({shape:{points:c},incremental:!!n,__startPoint:d,__baseDimIdx:r,__largeDataIndices:a,__barWidth:s,silent:!0,z2:0});R(h,l,i),t.add(h)}var f=new N({shape:{points:i.getLayout("largePoints")},incremental:!!n,__startPoint:o,__baseDimIdx:r,__largeDataIndices:a,__barWidth:s});t.add(f),V(f,e,i),f.seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",O),f.on("mousemove",O))}var O=p((function(e){var t=this,n=L(t,e.offsetX,e.offsetY);t.dataIndex=n>=0?n:null}),30,!1);function L(e,t,n){var i=e.__baseDimIdx,o=1-i,r=e.shape.points,a=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[o];x[0]=t,x[1]=n;for(var u=x[i],c=x[1-i],d=u-s,h=u+s,f=0,p=r.length/2;f<p;f++){var g=2*f,v=r[g+i],m=r[g+o];if(v>=d&&v<=h&&(l<=m?c>=l&&c<=m:c>=m&&c<=l))return a[f]}return-1}function V(e,t,n){var i=n.getVisual("borderColor")||n.getVisual("color"),o=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(o),e.style.fill=null,e.style.stroke=i,e.style.lineWidth=n.getLayout("barWidth")}function R(e,t,n){var i=t.get("borderColor")||t.get("color"),o=t.getItemStyle(["color","borderColor"]);e.useStyle(o),e.style.fill=null,e.style.stroke=i,e.style.lineWidth=n.getLayout("barWidth")}function B(e,t,n){var i,o="polar"===n.type;return i=o?n.getArea():n.grid.getRect(),o?{cx:i.cx,cy:i.cy,r0:e?i.r0:t.r0,r:e?i.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:i.x,y:e?i.y:t.y,width:e?t.width:i.width,height:e?i.height:t.height}}function z(e,t,n){var i="polar"===e.type?a.Sector:a.Rect;return new i({shape:B(t,n,e),silent:!0,z2:0})}e.exports=b},489:function(e,t,n){var i=n(93321),o=n(40488),r=i.extend({type:"series.__base_bar__",getInitialData:function(e,t){return o(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var n=t.dataToPoint(t.clampData(e)),i=this.getData(),o=i.getLayout("offset"),r=i.getLayout("size"),a=t.getBaseAxis().isHorizontal()?0:1;return n[a]+=o+r/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});e.exports=r},77346:function(e,t,n){var i=n(489),o=i.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(e){return e.stack=null,o.superApply(this,"getInitialData",arguments)}}),r=o;e.exports=r},25874:function(e,t,n){var i=n(70492),o=n(33051),r=n(51177),a=n(41525),s=a.createSymbol,l=n(85669),u=l.parsePercent,c=l.isNumeric,d=n(7905),h=d.setLabel,f=["itemStyle","borderWidth"],p=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],g=new r.Circle,v=i.extendChartView({type:"pictorialBar",render:function(e,t,n){var i=this.group,o=e.getData(),r=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=!!s.isHorizontal(),u=a.grid.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:p[+l],categoryDim:p[1-l]};return o.diff(r).add((function(e){if(o.hasValue(e)){var t=P(o,e),n=m(o,e,t,c),r=N(o,c,n);o.setItemGraphicEl(e,r),i.add(r),B(r,c,n)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(o.hasValue(e)){var a=P(o,e),s=m(o,e,a,c),l=L(o,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),o.setItemGraphicEl(e,null),n=null),n?D(n,c,s):n=N(o,c,s,!0),o.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),B(n,c,s)}else i.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&O(r,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=o,this.group},dispose:o.noop,remove:function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){O(i,t.dataIndex,e,t)})):n.removeAll()}});function m(e,t,n,i){var r=e.getItemLayout(t),a=n.get("symbolRepeat"),s=n.get("symbolClip"),l=n.get("symbolPosition")||"start",c=n.get("symbolRotate"),d=(c||0)*Math.PI/180||0,h=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),p={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",color:e.getItemVisual(t,"color"),symbolClip:s,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:d,animationModel:f?n:null,hoverAnimation:f&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};y(n,a,r,i,p),_(e,t,r,a,s,p.boundingLength,p.pxSign,h,i,p),b(n,p.symbolScale,d,i,p);var g=p.symbolSize,v=n.get("symbolOffset");return o.isArray(v)&&(v=[u(v[0],g[0]),u(v[1],g[1])]),w(n,g,r,a,s,v,l,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function y(e,t,n,i,r){var a,s=i.valueDim,l=e.get("symbolBoundingData"),u=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),d=1-+(n[s.wh]<=0);if(o.isArray(l)){var h=[x(u,l[0])-c,x(u,l[1])-c];h[1]<h[0]&&h.reverse(),a=h[d]}else a=null!=l?x(u,l)-c:t?i.coordSysExtent[s.index][d]-c:n[s.wh];r.boundingLength=a,t&&(r.repeatCutLength=n[s.wh]),r.pxSign=a>0?1:a<0?-1:0}function x(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function _(e,t,n,i,r,a,s,l,c,d){var h=c.valueDim,f=c.categoryDim,p=Math.abs(n[f.wh]),g=e.getItemVisual(t,"symbolSize");o.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[f.index]=u(g[f.index],p),g[h.index]=u(g[h.index],i?p:Math.abs(a)),d.symbolSize=g;var v=d.symbolScale=[g[0]/l,g[1]/l];v[h.index]*=(c.isHorizontal?-1:1)*s}function b(e,t,n,i,o){var r=e.get(f)||0;r&&(g.attr({scale:t.slice(),rotation:n}),g.updateTransform(),r/=g.getLineScale(),r*=t[i.valueDim.index]),o.valueLineWidth=r}function w(e,t,n,i,r,a,s,l,d,h,f,p){var g=f.categoryDim,v=f.valueDim,m=p.pxSign,y=Math.max(t[v.index]+l,0),x=y;if(i){var _=Math.abs(d),b=o.retrieve(e.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=u(b,t[v.index]);var S=Math.max(y+2*b,0),M=w?0:2*b,I=c(i),A=I?i:z((_+M)/S),k=_-A*y;b=k/2/(w?A:A-1),S=y+2*b,M=w?0:2*b,I||"fixed"===i||(A=h?z((Math.abs(h)+M)/S):0),x=A*S-M,p.repeatTimes=A,p.symbolMargin=b}var P=m*(x/2),C=p.pathPosition=[];C[g.index]=n[g.wh]/2,C[v.index]="start"===s?P:"end"===s?d-P:d/2,a&&(C[0]+=a[0],C[1]+=a[1]);var E=p.bundlePosition=[];E[g.index]=n[g.xy],E[v.index]=n[v.xy];var T=p.barRectShape=o.extend({},n);T[v.wh]=m*Math.max(Math.abs(n[v.wh]),Math.abs(C[v.index]+P)),T[g.wh]=n[g.wh];var N=p.clipShape={};N[g.xy]=-n[g.xy],N[g.wh]=f.ecSize[g.wh],N[v.xy]=0,N[v.wh]=n[v.wh]}function S(e){var t=e.symbolPatternSize,n=s(e.symbolType,-t/2,-t/2,t,t,e.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function M(e,t,n,i){var o=e.__pictorialBundle,r=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,d=r[t.valueDim.index]+a+2*n.symbolMargin;for(V(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?R(e,null,p(c),n,i):R(e,null,{scale:[0,0]},n,i,(function(){o.remove(e)})),T(e,n),c++}));c<u;c++){var h=S(n);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,o.add(h);var f=p(c);R(h,{position:f.position,scale:[0,0]},{scale:f.scale,rotation:f.rotation},n,i),h.on("mouseover",g).on("mouseout",v),T(h,n)}function p(e){var t=s.slice(),i=n.pxSign,o=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(o=u-1-e),t[l.index]=d*(o-u/2+.5)+s[l.index],{position:t,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){V(e,(function(e){e.trigger("emphasis")}))}function v(){V(e,(function(e){e.trigger("normal")}))}}function I(e,t,n,i){var o=e.__pictorialBundle,r=e.__pictorialMainPath;function a(){this.trigger("emphasis")}function s(){this.trigger("normal")}r?R(r,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(r=e.__pictorialMainPath=S(n),o.add(r),R(r,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),r.on("mouseover",a).on("mouseout",s)),T(r,n)}function A(e,t,n){var i=o.extend({},t.barRectShape),a=e.__pictorialBarRect;a?R(a,null,{shape:i},t,n):(a=e.__pictorialBarRect=new r.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(a))}function k(e,t,n,i){if(n.symbolClip){var a=e.__pictorialClipPath,s=o.extend({},n.clipShape),l=t.valueDim,u=n.animationModel,c=n.dataIndex;if(a)r.updateProps(a,{shape:s},u,c);else{s[l.wh]=0,a=new r.Rect({shape:s}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var d={};d[l.wh]=n.clipShape[l.wh],r[i?"updateProps":"initProps"](a,{shape:d},u,c)}}}function P(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=C,n.isAnimationEnabled=E,n}function C(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function E(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function T(e,t){e.off("emphasis").off("normal");var n=t.symbolScale.slice();t.hoverAnimation&&e.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function N(e,t,n,i){var o=new r.Group,a=new r.Group;return o.add(a),o.__pictorialBundle=a,a.attr("position",n.bundlePosition.slice()),n.symbolRepeat?M(o,t,n):I(o,t,n),A(o,n,i),k(o,t,n,i),o.__pictorialShapeStr=L(e,n),o.__pictorialSymbolMeta=n,o}function D(e,t,n){var i=n.animationModel,o=n.dataIndex,a=e.__pictorialBundle;r.updateProps(a,{position:n.bundlePosition.slice()},i,o),n.symbolRepeat?M(e,t,n,!0):I(e,t,n,!0),A(e,n,!0),k(e,t,n,!0)}function O(e,t,n,i){var a=i.__pictorialBarRect;a&&(a.style.text=null);var s=[];V(i,(function(e){s.push(e)})),i.__pictorialMainPath&&s.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),o.each(s,(function(e){r.updateProps(e,{scale:[0,0]},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function L(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function V(e,t,n){o.each(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function R(e,t,n,i,o,a){t&&e.attr(t),i.symbolClip&&!o?n&&e.attr(n):n&&r[o?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,a)}function B(e,t,n){var i=n.color,a=n.dataIndex,s=n.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),u=s.getModel("emphasis.itemStyle").getItemStyle(),c=s.getShallow("cursor");V(e,(function(e){e.setColor(i),e.setStyle(o.defaults({fill:i,opacity:n.opacity},l)),r.setHoverStyle(e,u),c&&(e.cursor=c),e.z2=n.z2}));var d={},f=t.valueDim.posDesc[+(n.boundingLength>0)],p=e.__pictorialBarRect;h(p.style,d,s,i,t.seriesModel,a,f),r.setHoverStyle(p,d)}function z(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var W=v;e.exports=W},98378:function(e,t,n){var i=n(59066),o=i([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getBarItemStyle:function(e){var t=o(this,e);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(t.lineDash=n)}return t}};e.exports=r},7905:function(e,t,n){var i=n(51177),o=n(33140),r=o.getDefaultLabel;function a(e,t,n,o,a,l,u){var c=n.getModel("label"),d=n.getModel("emphasis.label");i.setLabelStyle(e,t,c,d,{labelFetcher:a,labelDataIndex:l,defaultText:r(a.getData(),l),isRectText:!0,autoColor:o}),s(e),s(t)}function s(e,t){"outside"===e.textPosition&&(e.textPosition=t)}t.setLabel=a},31978:function(e,t,n){var i=n(70492);n(57932),n(6010);var o=n(82655),r=n(42274);i.registerVisual(o),i.registerLayout(r)},57932:function(e,t,n){var i=n(33051),o=n(93321),r=n(4993),a=r.seriesModelMixin,s=o.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});i.mixin(s,a,!0);var l=s;e.exports=l},6010:function(e,t,n){var i=n(33051),o=n(75797),r=n(51177),a=n(10712),s=["itemStyle"],l=["emphasis","itemStyle"],u=o.extend({type:"boxplot",render:function(e,t,n){var i=e.getData(),o=this.group,r=this._data;this._data||o.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(r).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=d(t,i,e,a,!0);i.setItemGraphicEl(e,n),o.add(n)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?h(s,n,i,e):n=d(s,i,e,a),o.add(n),i.setItemGraphicEl(e,n)}else o.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&o.remove(t)})).execute(),this._data=i},remove:function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},dispose:i.noop}),c=a.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])}});function d(e,t,n,i,o){var r=e.ends,a=new c({shape:{points:o?f(r,i,e):r}});return h(e,a,t,n,o),a}function h(e,t,n,i,o){var a=n.hostModel,u=r[o?"initProps":"updateProps"];u(t,{shape:{points:e.ends}},a,i);var c=n.getItemModel(i),d=c.getModel(s),h=n.getItemVisual(i,"color"),f=d.getItemStyle(["borderColor"]);f.stroke=h,f.strokeNoScale=!0,t.useStyle(f),t.z2=100;var p=c.getModel(l).getItemStyle();r.setHoverStyle(t,p)}function f(e,t,n){return i.map(e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var p=u;e.exports=p},42274:function(e,t,n){var i=n(33051),o=n(85669),r=o.parsePercent,a=i.each;function s(e){var t=l(e);a(t,(function(e){var t=e.seriesModels;t.length&&(u(e),a(t,(function(t,n){c(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function l(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var o=e.getBaseAxis(),r=i.indexOf(n,o);r<0&&(r=n.length,n[r]=o,t[r]={axis:o,seriesModels:[]}),t[r].seriesModels.push(e)})),t}function u(e){var t,n,o=e.axis,s=e.seriesModels,l=s.length,u=e.boxWidthList=[],c=e.boxOffsetList=[],d=[];if("category"===o.type)n=o.getBandWidth();else{var h=0;a(s,(function(e){h=Math.max(h,e.getData().count())})),t=o.getExtent(),Math.abs(t[1]-t[0])}a(s,(function(e){var t=e.get("boxWidth");i.isArray(t)||(t=[t,t]),d.push([r(t[0],n)||0,r(t[1],n)||0])}));var f=.8*n-2,p=f/l*.3,g=(f-p*(l-1))/l,v=g/2-f/2;a(s,(function(e,t){c.push(v),v+=p+g,u.push(Math.min(Math.max(g,d[t][0]),d[t][1]))}))}function c(e,t,n){var i=e.coordinateSystem,o=e.getData(),r=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],u=o.mapDimension(l[a]),c=o.mapDimension(l[s],!0);if(!(null==u||c.length<5))for(var d=0;d<o.count();d++){var h=o.get(u,d),f=x(h,c[2],d),p=x(h,c[0],d),g=x(h,c[1],d),v=x(h,c[3],d),m=x(h,c[4],d),y=[];_(y,g,0),_(y,v,1),y.push(p,g,m,v),b(y,p),b(y,m),b(y,f),o.setItemLayout(d,{initBaseline:f[s],ends:y})}function x(e,n,r){var l,u=o.get(n,r),c=[];return c[a]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c),l[a]+=t),l}function _(e,t,n){var i=t.slice(),o=t.slice();i[a]+=r,o[a]-=r,n?e.push(i,o):e.push(o,i)}function b(e,t){var n=t.slice(),i=t.slice();n[a]-=r,i[a]+=r,e.push(n,i)}}e.exports=s},82655:function(e){var t=["itemStyle","borderColor"];function n(e,n){var i=e.get("color");e.eachRawSeriesByType("boxplot",(function(n){var o=i[n.seriesIndex%i.length],r=n.getData();r.setVisual({legendSymbol:"roundRect",color:n.get(t)||o}),e.isSeriesFiltered(n)||r.each((function(e){var n=r.getItemModel(e);r.setItemVisual(e,{color:n.get(t,!0)})}))}))}e.exports=n},83760:function(e,t,n){var i=n(70492);n(27125),n(54835);var o=n(34470),r=n(45506),a=n(57018);i.registerPreprocessor(o),i.registerVisual(r),i.registerLayout(a)},27125:function(e,t,n){var i=n(33051),o=n(93321),r=n(4993),a=r.seriesModelMixin,s=o.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)}});i.mixin(s,a,!0);var l=s;e.exports=l},54835:function(e,t,n){var i=n(33051),o=n(75797),r=n(51177),a=n(10712),s=n(22963),l=s.createClipPath,u=["itemStyle"],c=["emphasis","itemStyle"],d=["color","color0","borderColor","borderColor0"],h=o.extend({type:"candlestick",render:function(e,t,n){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},incrementalPrepareRender:function(e,t,n){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,n,i){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e){var t=e.getData(),n=this._data,i=this.group,o=t.getLayout("isSimpleBox"),a=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var s,u=t.getItemLayout(n);if(a&&g(l,u))return;s=p(u,n,!0),r.initProps(s,{shape:{points:u.ends}},e,n),v(s,t,n,o),i.add(s),t.setItemGraphicEl(n,s)}})).update((function(s,u){var c=n.getItemGraphicEl(u);if(t.hasValue(s)){var d=t.getItemLayout(s);a&&g(l,d)?i.remove(c):(c?r.updateProps(c,{shape:{points:d.ends}},e,s):c=p(d,s),v(c,t,s,o),i.add(c),t.setItemGraphicEl(s,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},_renderLarge:function(e){this._clear(),x(e,this.group);var t=e.get("clip",!0)?l(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},_incrementalRenderNormal:function(e,t){var n,i=t.getData(),o=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var r,a=i.getItemLayout(n);r=p(a,n),v(r,i,n,o),r.incremental=!0,this.group.add(r)}},_incrementalRenderLarge:function(e,t){x(t,this.group,!0)},remove:function(e){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:i.noop}),f=a.extend({type:"normalCandlestickBox",shape:{},buildPath:function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))}});function p(e,t,n){var i=e.ends;return new f({shape:{points:n?m(i,e):i},z2:100})}function g(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function v(e,t,n,i){var o=t.getItemModel(n),a=o.getModel(u),s=t.getItemVisual(n,"color"),l=t.getItemVisual(n,"borderColor")||s,h=a.getItemStyle(d);e.useStyle(h),e.style.strokeNoScale=!0,e.style.fill=s,e.style.stroke=l,e.__simpleBox=i;var f=o.getModel(c).getItemStyle();r.setHoverStyle(e,f)}function m(e,t){return i.map(e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var y=a.extend({type:"largeCandlestickBox",shape:{},buildPath:function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];e.moveTo(o,n[i++]),e.lineTo(o,n[i++])}else i+=3}});function x(e,t,n){var i=e.getData(),o=i.getLayout("largePoints"),r=new y({shape:{points:o},__sign:1});t.add(r);var a=new y({shape:{points:o},__sign:-1});t.add(a),_(1,r,e,i),_(-1,a,e,i),n&&(r.incremental=!0,a.incremental=!0)}function _(e,t,n,i){var o=e>0?"P":"N",r=i.getVisual("borderColor"+o)||i.getVisual("color"+o),a=n.getModel(u).getItemStyle(d);t.useStyle(a),t.style.fill=null,t.style.stroke=r}var b=h;e.exports=b},57018:function(e,t,n){var i=n(51177),o=i.subPixelOptimize,r=n(95682),a=n(85669),s=a.parsePercent,l=n(33051),u=l.retrieve2,c="undefined"!==typeof Float32Array?Float32Array:Array,d={seriesType:"candlestick",plan:r(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=f(e,n),r=0,a=1,s=["x","y"],l=n.mapDimension(s[r]),u=n.mapDimension(s[a],!0),d=u[0],p=u[1],g=u[2],v=u[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==l||u.length<4))return{progress:e.pipelineContext.large?y:m};function m(e,n){var s;while(null!=(s=e.next())){var u=n.get(l,s),c=n.get(d,s),f=n.get(p,s),m=n.get(g,s),y=n.get(v,s),x=Math.min(c,f),_=Math.max(c,f),b=A(x,u),w=A(_,u),S=A(m,u),M=A(y,u),I=[];k(I,w,0),k(I,b,1),I.push(C(M),C(w),C(S),C(b)),n.setItemLayout(s,{sign:h(n,s,c,f,p),initBaseline:c>f?w[a]:b[a],ends:I,brushRect:P(m,y,u)})}function A(e,n){var i=[];return i[r]=n,i[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function k(e,t,n){var a=t.slice(),s=t.slice();a[r]=o(a[r]+i/2,1,!1),s[r]=o(s[r]-i/2,1,!0),n?e.push(a,s):e.push(s,a)}function P(e,t,n){var o=A(e,n),s=A(t,n);return o[r]-=i/2,s[r]-=i/2,{x:o[0],y:o[1],width:a?i:s[0]-o[0],height:a?s[1]-o[1]:i}}function C(e){return e[r]=o(e[r],1),e}}function y(e,n){var i,o,s=new c(4*e.count),u=0,f=[],m=[];while(null!=(o=e.next())){var y=n.get(l,o),x=n.get(d,o),_=n.get(p,o),b=n.get(g,o),w=n.get(v,o);isNaN(y)||isNaN(b)||isNaN(w)?(s[u++]=NaN,u+=3):(s[u++]=h(n,o,x,_,p),f[r]=y,f[a]=b,i=t.dataToPoint(f,null,m),s[u++]=i?i[0]:NaN,s[u++]=i?i[1]:NaN,f[a]=w,i=t.dataToPoint(f,null,m),s[u++]=i?i[1]:NaN)}n.setLayout("largePoints",s)}}};function h(e,t,n,i,o){var r;return r=n>i?-1:n<i?1:t>0?e.get(o,t-1)<=i?1:-1:1,r}function f(e,t){var n,i=e.getBaseAxis(),o="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),r=s(u(e.get("barMaxWidth"),o),o),a=s(u(e.get("barMinWidth"),1),o),l=e.get("barWidth");return null!=l?s(l,o):Math.max(Math.min(o/2,r),a)}e.exports=d},45506:function(e,t,n){var i=n(95682),o=["itemStyle","borderColor"],r=["itemStyle","borderColor0"],a=["itemStyle","color"],s=["itemStyle","color0"],l={seriesType:"candlestick",plan:i(),performRawSeries:!0,reset:function(e,t){var n=e.getData();if(n.setVisual({legendSymbol:"roundRect",colorP:u(1,e),colorN:u(-1,e),borderColorP:c(1,e),borderColorN:c(-1,e)}),!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:l}}function l(e,t){var n;while(null!=(n=e.next())){var i=t.getItemModel(n),o=t.getItemLayout(n).sign;t.setItemVisual(n,{color:u(o,i),borderColor:c(o,i)})}}function u(e,t){return t.get(e>0?a:s)}function c(e,t){return t.get(e>0?o:r)}}};e.exports=l},34470:function(e,t,n){var i=n(33051);function o(e){e&&i.isArray(e.series)&&i.each(e.series,(function(e){i.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}e.exports=o},81741:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=n(51177),a=n(33140),s=a.getDefaultLabel,l=n(40488),u=n(79093),c=u.getLayoutOnAxis,d=n(4130),h=n(93321),f=n(4272),p=n(75797),g=n(22963),v=g.createClipPath,m=n(7409),y=n(55389),x=n(50878),_=n(54649),b=n(64888),w=r.CACHED_LABEL_STYLE_PROPERTIES,S=["itemStyle"],M=["emphasis","itemStyle"],I=["label"],A=["emphasis","label"],k="e\0\0",P={cartesian2d:m,geo:y,singleAxis:x,polar:_,calendar:b};function C(e){var t,n=e.type;if("path"===n){var i=e.shape,o=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,a=$(i);t=r.makePath(a,null,o,i.layout||"center"),t.__customPathData=a}else if("image"===n)t=new r.Image({}),t.__customImagePath=e.style.image;else if("text"===n)t=new r.Text({}),t.__customText=e.style.text;else if("group"===n)t=new r.Group;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var s=r.getShapeClass(n);t=new s}return t.__customGraphicType=n,t.name=e.name,t}function E(e,t,n,i,a,s,l){var u={},c=n.style||{};if(n.shape&&(u.shape=o.clone(n.shape)),n.position&&(u.position=n.position.slice()),n.scale&&(u.scale=n.scale.slice()),n.origin&&(u.origin=n.origin.slice()),n.rotation&&(u.rotation=n.rotation),"image"===e.type&&n.style){var d=u.style={};o.each(["x","y","width","height"],(function(t){T(t,d,c,e.style,s)}))}if("text"===e.type&&n.style){d=u.style={};o.each(["x","y"],(function(t){T(t,d,c,e.style,s)})),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke)}if("group"!==e.type&&(e.useStyle(c),s)){e.style.opacity=0;var h=c.opacity;null==h&&(h=1),r.initProps(e,{style:{opacity:h}},i,t)}s?e.attr(u):r.updateProps(e,u,i,t),n.hasOwnProperty("z2")&&e.attr("z2",n.z2||0),n.hasOwnProperty("silent")&&e.attr("silent",n.silent),n.hasOwnProperty("invisible")&&e.attr("invisible",n.invisible),n.hasOwnProperty("ignore")&&e.attr("ignore",n.ignore),n.hasOwnProperty("info")&&e.attr("info",n.info);var f=n.styleEmphasis;r.setElementHoverStyle(e,f),l&&r.setAsHighDownDispatcher(e,!1!==f)}function T(e,t,n,i,o){null==n[e]||o||(t[e]=n[e],n[e]=i[e])}function N(e,t,n,i){var a=e.get("renderItem"),l=e.coordinateSystem,u={};l&&(u=l.prepareCustoms?l.prepareCustoms():P[l.type](l));var d,h,f,p,g,v=o.defaults({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:_,style:b,styleEmphasis:w,visual:k,barLayout:C,currentSeriesIndices:E,font:T},u.api||{}),m={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:u.coordSys,dataInsideLength:t.count(),encode:D(e.getData())},y=!0;return function(e,n){return d=e,y=!0,a&&a(o.defaults({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},m),v)};function x(e){null==e&&(e=d),y&&(h=t.getItemModel(e),f=h.getModel(I),p=h.getModel(A),g=t.getItemVisual(e,"color"),y=!1)}function _(e,n){return null==n&&(n=d),t.get(t.getDimension(e||0),n)}function b(n,i){null==i&&(i=d),x(i);var a=h.getModel(S).getItemStyle();null!=g&&(a.fill=g);var l=t.getItemVisual(i,"opacity");null!=l&&(a.opacity=l);var u=n?W(n,f):f;return r.setTextStyle(a,u,null,{autoColor:g,isRectText:!0}),a.text=u.getShallow("show")?o.retrieve2(e.getFormattedLabel(i,"normal"),s(t,i)):null,n&&F(a,n),a}function w(n,i){null==i&&(i=d),x(i);var a=h.getModel(M).getItemStyle(),l=n?W(n,p):p;return r.setTextStyle(a,l,null,{isRectText:!0},!0),a.text=l.getShallow("show")?o.retrieve3(e.getFormattedLabel(i,"emphasis"),e.getFormattedLabel(i,"normal"),s(t,i)):null,n&&F(a,n),a}function k(e,n){return null==n&&(n=d),t.getItemVisual(n,e)}function C(e){if(l.getBaseAxis){var t=l.getBaseAxis();return c(o.defaults({axis:t},e),i)}}function E(){return n.getCurrentSeriesIndices()}function T(e){return r.getFont(e,n)}}function D(e){var t={};return o.each(e.dimensions,(function(n,i){var o=e.getDimensionInfo(n);if(!o.isExtraCoord){var r=o.coordDim,a=t[r]=t[r]||[];a[o.coordDimIndex]=i}})),t}function O(e,t,n,i,o,r){return e=L(e,t,n,i,o,r,!0),e&&r.setItemGraphicEl(t,e),e}function L(e,t,n,i,o,r,a){var s=!n;n=n||{};var l=n.type,u=n.shape,c=n.style;if(e&&(s||null!=l&&l!==e.__customGraphicType||"path"===l&&H(u)&&$(u)!==e.__customPathData||"image"===l&&j(c,"image")&&c.image!==e.__customImagePath||"text"===l&&j(u,"text")&&c.text!==e.__customText)&&(o.remove(e),e=null),!s){var d=!e;return!e&&(e=C(n)),E(e,t,n,i,r,d,a),"group"===l&&V(e,t,n,i,r),o.add(e),e}}function V(e,t,n,i,o){var r=n.children,a=r?r.length:0,s=n.$mergeChildren,l="byName"===s||n.diffChildrenByName,u=!1===s;if(a||l||u)if(l)R({oldChildren:e.children()||[],newChildren:r||[],dataIndex:t,animatableModel:i,group:e,data:o});else{u&&e.removeAll();for(var c=0;c<a;c++)r[c]&&L(e.childAt(c),t,r[c],i,e,o)}}function R(e){new d(e.oldChildren,e.newChildren,B,B,e).add(z).update(z).remove(U).execute()}function B(e,t){var n=e&&e.name;return null!=n?n:k+t}function z(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,o=null!=t?n.oldChildren[t]:null;L(o,n.dataIndex,i,n.animatableModel,n.group,n.data)}function W(e,t){var n=new f({},t);return o.each(w,(function(t,i){e.hasOwnProperty(t)&&(n.option[i]=e[t])})),n}function F(e,t){for(var n in t)!t.hasOwnProperty(n)&&w.hasOwnProperty(n)||(e[n]=t[n])}function U(e){var t=this.context,n=t.oldChildren[e];n&&t.group.remove(n)}function $(e){return e&&(e.pathData||e.d)}function H(e){return e&&(e.hasOwnProperty("pathData")||e.hasOwnProperty("d"))}function j(e,t){return e&&e.hasOwnProperty(t)}h.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(e,t){return l(this.getSource(),this)},getDataParams:function(e,t,n){var i=h.prototype.getDataParams.apply(this,arguments);return n&&(i.info=n.info),i}}),p.extend({type:"custom",_data:null,render:function(e,t,n,i){var o=this._data,r=e.getData(),a=this.group,s=N(e,r,t,n);r.diff(o).add((function(t){O(null,t,s(t,i),e,a,r)})).update((function(t,n){var l=o.getItemGraphicEl(n);O(l,t,s(t,i),e,a,r)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&a.remove(t)})).execute();var l=e.get("clip",!0)?v(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=r},incrementalPrepareRender:function(e,t,n){this.group.removeAll(),this._data=null},incrementalRender:function(e,t,n,i,o){var r=t.getData(),a=N(t,r,n,i);function s(e){e.isGroup||(e.incremental=!0,e.useHoverLayer=!0)}for(var l=e.start;l<e.end;l++){var u=O(null,l,a(l,o),t,this.group,r);u.traverse(s)}},dispose:o.noop,filterForExposedEvent:function(e,t,n,i){var o=t.element;if(null==o||n.name===o)return!0;while((n=n.parent)&&n!==this.group)if(n.name===o)return!0;return!1}})},52755:function(e,t,n){var i=n(70492);n(6344),n(11243);var o=n(34586),r=n(21149);i.registerVisual(o("effectScatter","circle")),i.registerLayout(r("effectScatter"))},6344:function(e,t,n){var i=n(40488),o=n(93321),r=o.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,t){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});e.exports=r},11243:function(e,t,n){var i=n(70492),o=n(68162),r=n(53036),a=n(32892),s=n(21149),l=i.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new o(r)},render:function(e,t,n){var i=e.getData(),o=this._symbolDraw;o.updateData(i),this.group.add(o.group)},updateTransform:function(e,t,n){var i=e.getData();this.group.dirty();var o=s().reset(e);o.progress&&o.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=a.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}});e.exports=l},66614:function(e,t,n){var i=n(70492);n(51711),n(54260);var o=n(69274),r=n(95378),a=n(22528);i.registerVisual(o("funnel")),i.registerLayout(r),i.registerProcessor(a("funnel"))},51711:function(e,t,n){var i=n(70492),o=n(33051),r=n(23263),a=n(32234),s=a.defaultEmphasis,l=n(61772),u=l.makeSeriesEncodeForNameBased,c=n(72019),d=i.extendSeriesModel({type:"series.funnel",init:function(e){d.superApply(this,"init",arguments),this.legendVisualProvider=new c(o.bind(this.getData,this),o.bind(this.getRawData,this)),this._defaultLabelLine(e)},getInitialData:function(e,t){return r(this,{coordDimensions:["value"],encodeDefaulter:o.curry(u,this)})},_defaultLabelLine:function(e){s(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},getDataParams:function(e){var t=this.getData(),n=d.superCall(this,"getDataParams",e),i=t.mapDimension("value"),o=t.getSum(i);return n.percent=o?+(t.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),h=d;e.exports=h},54260:function(e,t,n){var i=n(51177),o=n(33051),r=n(75797);function a(e,t){i.Group.call(this);var n=new i.Polygon,o=new i.Polyline,r=new i.Text;this.add(n),this.add(o),this.add(r),this.highDownOnUpdate=function(e,t){"emphasis"===t?(o.ignore=o.hoverIgnore,r.ignore=r.hoverIgnore):(o.ignore=o.normalIgnore,r.ignore=r.normalIgnore)},this.updateData(e,t,!0)}var s=a.prototype,l=["itemStyle","opacity"];s.updateData=function(e,t,n){var r=this.childAt(0),a=e.hostModel,s=e.getItemModel(t),u=e.getItemLayout(t),c=e.getItemModel(t).get(l);c=null==c?1:c,r.useStyle({}),n?(r.setShape({points:u.points}),r.setStyle({opacity:0}),i.initProps(r,{style:{opacity:c}},a,t)):i.updateProps(r,{style:{opacity:c},shape:{points:u.points}},a,t);var d=s.getModel("itemStyle"),h=e.getItemVisual(t,"color");r.setStyle(o.defaults({lineJoin:"round",fill:h},d.getItemStyle(["opacity"]))),r.hoverStyle=d.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),i.setHoverStyle(this)},s._updateLabel=function(e,t){var n=this.childAt(1),o=this.childAt(2),r=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"color");i.updateProps(n,{shape:{points:l.linePoints||l.linePoints}},r,t),i.updateProps(o,{style:{x:l.x,y:l.y}},r,t),o.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var c=a.getModel("label"),d=a.getModel("emphasis.label"),h=a.getModel("labelLine"),f=a.getModel("emphasis.labelLine");u=e.getItemVisual(t,"color");i.setLabelStyle(o.style,o.hoverStyle={},c,d,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),o.ignore=o.normalIgnore=!c.get("show"),o.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!f.get("show"),n.setStyle({stroke:u}),n.setStyle(h.getModel("lineStyle").getLineStyle()),n.hoverStyle=f.getModel("lineStyle").getLineStyle()},o.inherits(a,i.Group);var u=r.extend({type:"funnel",render:function(e,t,n){var i=e.getData(),o=this._data,r=this.group;i.diff(o).add((function(e){var t=new a(i,e);i.setItemGraphicEl(e,t),r.add(t)})).update((function(e,t){var n=o.getItemGraphicEl(t);n.updateData(i,e),r.add(n),i.setItemGraphicEl(e,n)})).remove((function(e){var t=o.getItemGraphicEl(e);r.remove(t)})).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),c=u;e.exports=c},95378:function(e,t,n){var i=n(76172),o=n(85669),r=o.parsePercent,a=o.linearMap;function s(e,t){return i.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function l(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),o=[],r="ascending"===t,a=0,s=e.count();a<s;a++)o[a]=a;return"function"===typeof t?o.sort(t):"none"!==t&&o.sort((function(e,t){return r?i[e]-i[t]:i[t]-i[e]})),o}function u(e){e.each((function(t){var n,i,o,r,a=e.getItemModel(t),s=a.getModel("label"),l=s.get("position"),u=a.getModel("labelLine"),c=e.getItemLayout(t),d=c.points,h="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(h)"insideLeft"===l?(i=(d[0][0]+d[3][0])/2+5,o=(d[0][1]+d[3][1])/2,n="left"):"insideRight"===l?(i=(d[1][0]+d[2][0])/2-5,o=(d[1][1]+d[2][1])/2,n="right"):(i=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,o=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,n="center"),r=[[i,o],[i,o]];else{var f,p,g,v=u.get("length");"left"===l?(f=(d[3][0]+d[0][0])/2,p=(d[3][1]+d[0][1])/2,g=f-v,i=g-5,n="right"):"right"===l?(f=(d[1][0]+d[2][0])/2,p=(d[1][1]+d[2][1])/2,g=f+v,i=g+5,n="left"):"rightTop"===l?(f=d[1][0],p=d[1][1],g=f+v,i=g+5,n="top"):"rightBottom"===l?(f=d[2][0],p=d[2][1],g=f+v,i=g+5,n="bottom"):"leftTop"===l?(f=d[0][0],p=d[1][1],g=f-v,i=g-5,n="right"):"leftBottom"===l?(f=d[3][0],p=d[2][1],g=f-v,i=g-5,n="right"):(f=(d[1][0]+d[2][0])/2,p=(d[1][1]+d[2][1])/2,g=f+v,i=g+5,n="left");var m=p;r=[[f,p],[g,m]],o=m}c.label={linePoints:r,x:i,y:o,verticalAlign:"middle",textAlign:n,inside:h}}))}function c(e,t,n){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),o=e.get("sort"),c=s(e,t),d=l(n,o),h=[r(e.get("minSize"),c.width),r(e.get("maxSize"),c.width)],f=n.getDataExtent(i),p=e.get("min"),g=e.get("max");null==p&&(p=Math.min(f[0],0)),null==g&&(g=f[1]);var v=e.get("funnelAlign"),m=e.get("gap"),y=(c.height-m*(n.count()-1))/n.count(),x=c.y,_=function(e,t){var o,r=n.get(i,e)||0,s=a(r,[p,g],h,!0);switch(v){case"left":o=c.x;break;case"center":o=c.x+(c.width-s)/2;break;case"right":o=c.x+c.width-s;break}return[[o,t],[o+s,t]]};"ascending"===o&&(y=-y,m=-m,x+=c.height,d=d.reverse());for(var b=0;b<d.length;b++){var w=d[b],S=d[b+1],M=n.getItemModel(w),I=M.get("itemStyle.height");null==I?I=y:(I=r(I,c.height),"ascending"===o&&(I=-I));var A=_(w,x),k=_(S,x+I);x+=I+m,n.setItemLayout(w,{points:A.concat(k.slice().reverse())})}u(n)}))}e.exports=c},27539:function(e,t,n){n(37860),n(72826)},37860:function(e,t,n){var i=n(23263),o=n(93321),r=o.extend({type:"series.gauge",getInitialData:function(e,t){return i(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),a=r;e.exports=a},72826:function(e,t,n){var i=n(30931),o=n(51177),r=n(75797),a=n(85669),s=a.parsePercent,l=a.round,u=a.linearMap;function c(e,t){var n=e.get("center"),i=t.getWidth(),o=t.getHeight(),r=Math.min(i,o),a=s(n[0],t.getWidth()),l=s(n[1],t.getHeight()),u=s(e.get("radius"),r/2);return{cx:a,cy:l,r:u}}function d(e,t){return t&&("string"===typeof t?e=t.replace("{value}",null!=e?e:""):"function"===typeof t&&(e=t(e))),e}var h=2*Math.PI,f=r.extend({type:"gauge",render:function(e,t,n){this.group.removeAll();var i=e.get("axisLine.lineStyle.color"),o=c(e,n);this._renderMain(e,t,n,i,o)},dispose:function(){},_renderMain:function(e,t,n,i,r){for(var a=this.group,s=e.getModel("axisLine"),l=s.getModel("lineStyle"),u=e.get("clockwise"),c=-e.get("startAngle")/180*Math.PI,d=-e.get("endAngle")/180*Math.PI,f=(d-c)%h,p=c,g=l.get("width"),v=s.get("show"),m=0;v&&m<i.length;m++){var y=Math.min(Math.max(i[m][0],0),1),x=(d=c+f*y,new o.Sector({shape:{startAngle:p,endAngle:d,cx:r.cx,cy:r.cy,clockwise:u,r0:r.r-g,r:r.r},silent:!0}));x.setStyle({fill:i[m][1]}),x.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),a.add(x),p=d}var _=function(e){if(e<=0)return i[0][1];for(var t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};if(!u){var b=c;c=d,d=b}this._renderTicks(e,t,n,_,r,c,d,u),this._renderPointer(e,t,n,_,r,c,d,u),this._renderTitle(e,t,n,_,r),this._renderDetail(e,t,n,_,r)},_renderTicks:function(e,t,n,i,r,a,u,c){for(var h=this.group,f=r.cx,p=r.cy,g=r.r,v=+e.get("min"),m=+e.get("max"),y=e.getModel("splitLine"),x=e.getModel("axisTick"),_=e.getModel("axisLabel"),b=e.get("splitNumber"),w=x.get("splitNumber"),S=s(y.get("length"),g),M=s(x.get("length"),g),I=a,A=(u-a)/b,k=A/w,P=y.getModel("lineStyle").getLineStyle(),C=x.getModel("lineStyle").getLineStyle(),E=0;E<=b;E++){var T=Math.cos(I),N=Math.sin(I);if(y.get("show")){var D=new o.Line({shape:{x1:T*g+f,y1:N*g+p,x2:T*(g-S)+f,y2:N*(g-S)+p},style:P,silent:!0});"auto"===P.stroke&&D.setStyle({stroke:i(E/b)}),h.add(D)}if(_.get("show")){var O=d(l(E/b*(m-v)+v),_.get("formatter")),L=_.get("distance"),V=i(E/b);h.add(new o.Text({style:o.setTextStyle({},_,{text:O,x:T*(g-S-L)+f,y:N*(g-S-L)+p,textVerticalAlign:N<-.4?"top":N>.4?"bottom":"middle",textAlign:T<-.4?"left":T>.4?"right":"center"},{autoColor:V}),silent:!0}))}if(x.get("show")&&E!==b){for(var R=0;R<=w;R++){T=Math.cos(I),N=Math.sin(I);var B=new o.Line({shape:{x1:T*g+f,y1:N*g+p,x2:T*(g-M)+f,y2:N*(g-M)+p},silent:!0,style:C});"auto"===C.stroke&&B.setStyle({stroke:i((E+R/w)/b)}),h.add(B),I+=k}I-=k}else I+=A}},_renderPointer:function(e,t,n,r,a,l,c,d){var h=this.group,f=this._data;if(e.get("pointer.show")){var p=[+e.get("min"),+e.get("max")],g=[l,c],v=e.getData(),m=v.mapDimension("value");v.diff(f).add((function(t){var n=new i({shape:{angle:l}});o.initProps(n,{shape:{angle:u(v.get(m,t),p,g,!0)}},e),h.add(n),v.setItemGraphicEl(t,n)})).update((function(t,n){var i=f.getItemGraphicEl(n);o.updateProps(i,{shape:{angle:u(v.get(m,t),p,g,!0)}},e),h.add(i),v.setItemGraphicEl(t,i)})).remove((function(e){var t=f.getItemGraphicEl(e);h.remove(t)})).execute(),v.eachItemGraphicEl((function(e,t){var n=v.getItemModel(t),i=n.getModel("pointer");e.setShape({x:a.cx,y:a.cy,width:s(i.get("width"),a.r),r:s(i.get("length"),a.r)}),e.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",r(u(v.get(m,t),p,[0,1],!0))),o.setHoverStyle(e,n.getModel("emphasis.itemStyle").getItemStyle())})),this._data=v}else f&&f.eachItemGraphicEl((function(e){h.remove(e)}))},_renderTitle:function(e,t,n,i,r){var a=e.getData(),l=a.mapDimension("value"),c=e.getModel("title");if(c.get("show")){var d=c.get("offsetCenter"),h=r.cx+s(d[0],r.r),f=r.cy+s(d[1],r.r),p=+e.get("min"),g=+e.get("max"),v=e.getData().get(l,0),m=i(u(v,[p,g],[0,1],!0));this.group.add(new o.Text({silent:!0,style:o.setTextStyle({},c,{x:h,y:f,text:a.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(e,t,n,i,r){var a=e.getModel("detail"),l=+e.get("min"),c=+e.get("max");if(a.get("show")){var h=a.get("offsetCenter"),f=r.cx+s(h[0],r.r),p=r.cy+s(h[1],r.r),g=s(a.get("width"),r.r),v=s(a.get("height"),r.r),m=e.getData(),y=m.get(m.mapDimension("value"),0),x=i(u(y,[l,c],[0,1],!0));this.group.add(new o.Text({silent:!0,style:o.setTextStyle({},a,{x:f,y:p,text:d(y,a.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(v)?null:v,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}}),p=f;e.exports=p},30931:function(e,t,n){var i=n(10712),o=i.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var n=Math.cos,i=Math.sin,o=t.r,r=t.width,a=t.angle,s=t.x-n(a)*r*(r>=o/3?1:2),l=t.y-i(a)*r*(r>=o/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*r,t.y+i(a)*r),e.lineTo(t.x+n(t.angle)*o,t.y+i(t.angle)*o),e.lineTo(t.x-n(a)*r,t.y-i(a)*r),e.lineTo(s,l)}});e.exports=o},44553:function(e,t,n){var i=n(70492);n(55269),n(39107),n(89562);var o=n(60548),r=n(34586),a=n(19918),s=n(86733),l=n(41241),u=n(36846),c=n(6921),d=n(53081);i.registerProcessor(o),i.registerVisual(r("graph","circle",null)),i.registerVisual(a),i.registerVisual(s),i.registerLayout(l),i.registerLayout(i.PRIORITY.VISUAL.POST_CHART_LAYOUT,u),i.registerLayout(c),i.registerCoordinateSystem("graphView",{create:d})},55269:function(e,t,n){var i=n(70492),o=n(87587),r=n(33051),a=n(32234),s=a.defaultEmphasis,l=n(4272),u=n(78988),c=u.encodeHTML,d=n(19638),h=n(72019),f=i.extendSeriesModel({type:"series.graph",init:function(e){f.superApply(this,"init",arguments);var t=this;function n(){return t._categoriesData}this.legendVisualProvider=new h(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){f.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){f.superApply(this,"mergeDefaultAndTheme",arguments),s(e,["edgeLabel"],["show"])},getInitialData:function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n)return d(i,n,this,!0,r).data;function r(e,n){e.wrapMethod("getItemModel",(function(e){var t=o._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var i=o.getModel("edgeLabel"),r=new l({label:i.option},i.parentModel,t),a=o.getModel("emphasis.edgeLabel"),s=new l({emphasis:{label:a.option}},a.parentModel,t);function u(e){return e=this.parsePath(e),e&&"label"===e[0]?r:e&&"emphasis"===e[0]&&"label"===e[1]?s:this.parentModel}n.wrapMethod("getItemModel",(function(e){return e.customizeGetParent(u),e}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(e,n),r=i.graph.getEdgeByIndex(e),a=i.getName(r.node1.dataIndex),s=i.getName(r.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),l=c(l.join(" > ")),o.value&&(l+=" : "+c(o.value)),l}return f.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=r.map(this.option.categories||[],(function(e){return null!=e.value?e:r.extend({value:0},e)})),t=new o(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e,!0)}))},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return f.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),p=f;e.exports=p},39107:function(e,t,n){var i=n(70492),o=n(33051),r=n(68162),a=n(47145),s=n(9176),l=n(31194),u=n(61485),c=u.onIrrelevantElement,d=n(51177),h=n(13328),f=n(47181),p=f.getNodeGlobalScale,g="__focusNodeAdjacency",v="__unfocusNodeAdjacency",m=["itemStyle","opacity"],y=["lineStyle","opacity"];function x(e,t){var n=e.getVisual("opacity");return null!=n?n:e.getModel().get(t)}function _(e,t,n){var i=e.getGraphicEl(),o=x(e,t);null!=n&&(null==o&&(o=1),o*=n),i.downplay&&i.downplay(),i.traverse((function(e){if(!e.isGroup){var t=e.lineLabelOriginalOpacity;null!=t&&null==n||(t=o),e.setStyle("opacity",t)}}))}function b(e,t){var n=x(e,t),i=e.getGraphicEl();i.traverse((function(e){!e.isGroup&&e.setStyle("opacity",n)})),i.highlight&&i.highlight()}var w=i.extendChartView({type:"graph",init:function(e,t){var n=new r,i=new a,o=this.group;this._controller=new s(t.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(e,t,n){var i=this,o=e.coordinateSystem;this._model=e;var r=this._symbolDraw,a=this._lineDraw,s=this.group;if("view"===o.type){var l={position:o.position,scale:o.scale};this._firstRender?s.attr(l):d.updateProps(s,l,e)}h(e.getGraph(),p(e));var u=e.getData();r.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var f=e.forceLayout,m=e.get("force.layoutAnimation");f&&this._startForceLayoutIteration(f,m),u.eachItemGraphicEl((function(t,o){var r=u.getItemModel(o);t.off("drag").off("dragend");var a=r.get("draggable");a&&t.on("drag",(function(){f&&(f.warmUp(),!this._layouting&&this._startForceLayoutIteration(f,m),f.setFixed(o),u.setItemLayout(o,t.position))}),this).on("dragend",(function(){f&&f.setUnfixed(o)}),this),t.setDraggable(a&&f),t[g]&&t.off("mouseover",t[g]),t[v]&&t.off("mouseout",t[v]),r.get("focusNodeAdjacency")&&(t.on("mouseover",t[g]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t[v]=function(){i._dispatchUnfocus(n)}))}),this),u.graph.eachEdge((function(t){var o=t.getGraphicEl();o[g]&&o.off("mouseover",o[g]),o[v]&&o.off("mouseout",o[v]),t.getModel().get("focusNodeAdjacency")&&(o.on("mouseover",o[g]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),o.on("mouseout",o[v]=function(){i._dispatchUnfocus(n)}))}));var y="circular"===e.get("layout")&&e.get("circular.rotateLabel"),x=u.getLayout("cx"),_=u.getLayout("cy");u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),i=n.get("label.rotate")||0,o=e.getSymbolPath();if(y){var r=u.getItemLayout(t),a=Math.atan2(r[1]-_,r[0]-x);a<0&&(a=2*Math.PI+a);var s=r[0]<x;s&&(a-=Math.PI);var l=s?"left":"right";d.modifyLabelStyle(o,{textRotation:-a,textPosition:l,textOrigin:"center"},{textPosition:l})}else d.modifyLabelStyle(o,{textRotation:i*=Math.PI/180})})),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(e,t){var n=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){n._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:n._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,n,i){var r=e.getData(),a=r.graph,s=i.dataIndex,l=i.edgeDataIndex,u=a.getNodeByIndex(s),c=a.getEdgeByIndex(l);(u||c)&&(a.eachNode((function(e){_(e,m,.1)})),a.eachEdge((function(e){_(e,y,.1)})),u&&(b(u,m),o.each(u.edges,(function(e){e.dataIndex<0||(b(e,y),b(e.node1,m),b(e.node2,m))}))),c&&(b(c,y),b(c.node1,m),b(c.node2,m)))},unfocusNodeAdjacency:function(e,t,n,i){var o=e.getData().graph;o.eachNode((function(e){_(e,m)})),o.eachEdge((function(e){_(e,y)}))},_startForceLayoutIteration:function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},_updateController:function(e,t,n){var i=this._controller,o=this._controllerHost,r=this.group;i.setPointerChecker((function(t,i,o){var a=r.getBoundingRect();return a.applyTransform(r.transform),a.contain(i,o)&&!c(t,n,e)})),"view"===e.coordinateSystem.type?(i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){l.updateViewOnPan(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){l.updateViewOnZoom(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(),h(e.getGraph(),p(e)),this._lineDraw.updateLayout()}),this)):i.disable()},_updateNodeAndLinkScale:function(){var e=this._model,t=e.getData(),n=p(e),i=[n,n];t.eachItemGraphicEl((function(e,t){e.attr("scale",i)}))},updateLayout:function(e){h(e.getGraph(),p(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});e.exports=w},13328:function(e,t,n){var i=n(18554),o=n(45280),r=n(47181),a=r.getSymbolSize,s=[],l=[],u=[],c=i.quadraticAt,d=o.distSquare,h=Math.abs;function f(e,t,n){for(var i,o=e[0],r=e[1],a=e[2],f=1/0,p=n*n,g=.1,v=.1;v<=.9;v+=.1){s[0]=c(o[0],r[0],a[0],v),s[1]=c(o[1],r[1],a[1],v);var m=h(d(s,t)-p);m<f&&(f=m,i=v)}for(var y=0;y<32;y++){var x=i+g;l[0]=c(o[0],r[0],a[0],i),l[1]=c(o[1],r[1],a[1],i),u[0]=c(o[0],r[0],a[0],x),u[1]=c(o[1],r[1],a[1],x);m=d(l,t)-p;if(h(m)<.01)break;var _=d(u,t)-p;g/=2,m<0?_>=0?i+=g:i-=g:_>=0?i-=g:i+=g}return i}function p(e,t){var n=[],r=i.quadraticSubdivide,s=[[],[],[]],l=[[],[]],u=[];t/=2,e.eachEdge((function(e,i){var c=e.getLayout(),d=e.getVisual("fromSymbol"),h=e.getVisual("toSymbol");c.__original||(c.__original=[o.clone(c[0]),o.clone(c[1])],c[2]&&c.__original.push(o.clone(c[2])));var p=c.__original;if(null!=c[2]){if(o.copy(s[0],p[0]),o.copy(s[1],p[2]),o.copy(s[2],p[1]),d&&"none"!==d){var g=a(e.node1),v=f(s,p[0],g*t);r(s[0][0],s[1][0],s[2][0],v,n),s[0][0]=n[3],s[1][0]=n[4],r(s[0][1],s[1][1],s[2][1],v,n),s[0][1]=n[3],s[1][1]=n[4]}if(h&&"none"!==h){g=a(e.node2),v=f(s,p[1],g*t);r(s[0][0],s[1][0],s[2][0],v,n),s[1][0]=n[1],s[2][0]=n[2],r(s[0][1],s[1][1],s[2][1],v,n),s[1][1]=n[1],s[2][1]=n[2]}o.copy(c[0],s[0]),o.copy(c[1],s[2]),o.copy(c[2],s[1])}else{if(o.copy(l[0],p[0]),o.copy(l[1],p[1]),o.sub(u,l[1],l[0]),o.normalize(u,u),d&&"none"!==d){g=a(e.node1);o.scaleAndAdd(l[0],l[0],u,g*t)}if(h&&"none"!==h){g=a(e.node2);o.scaleAndAdd(l[1],l[1],u,-g*t)}o.copy(c[0],l[0]),o.copy(c[1],l[1])}}))}e.exports=p},60548:function(e){function t(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),o=i.data,r=n.mapArray(n.getName);o.filterSelf((function(e){var n=o.getItemModel(e),i=n.getShallow("category");if(null!=i){"number"===typeof i&&(i=r[i]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(i))return!1}return!0}))}),this)}e.exports=t},19918:function(e){function t(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),o={};n.each((function(i){var r=n.getName(i);o["ec-"+r]=i;var a=n.getItemModel(i),s=a.get("itemStyle.color")||e.getColorFromPalette(r,t);n.setItemVisual(i,"color",s);for(var l=["opacity","symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e),r=t.getShallow("category");if(null!=r){"string"===typeof r&&(r=o["ec-"+r]);for(var a=["color","opacity","symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)null==i.getItemVisual(e,a[s],!0)&&i.setItemVisual(e,a[s],n.getItemVisual(r,a[s]))}}))}))}e.exports=t},36846:function(e,t,n){var i=n(22663),o=i.circularLayout;function r(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&o(e,"symbolSize")}))}e.exports=r},22663:function(e,t,n){var i=n(45280),o=n(47181),r=o.getSymbolSize,a=o.getNodeGlobalScale,s=Math.PI,l=[];function u(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var o=n.getBoundingRect(),r=e.getData(),a=r.graph,s=o.width/2+o.x,l=o.height/2+o.y,u=Math.min(o.width,o.height)/2,d=r.count();r.setLayout({cx:s,cy:l}),d&&(c[t](e,n,a,r,u,s,l,d),a.eachEdge((function(e){var t,n=e.getModel().get("lineStyle.curveness")||0,o=i.clone(e.node1.getLayout()),r=i.clone(e.node2.getLayout()),a=(o[0]+r[0])/2,u=(o[1]+r[1])/2;+n&&(n*=3,t=[s*n+a*(1-n),l*n+u*(1-n)]),e.setLayout([o,r,t])})))}}var c={value:function(e,t,n,i,o,r,a,s){var l=0,u=i.getSum("value"),c=2*Math.PI/(u||s);n.eachNode((function(e){var t=e.getValue("value"),n=c*(u?t:1)/2;l+=n,e.setLayout([o*Math.cos(l)+r,o*Math.sin(l)+a]),l+=n}))},symbolSize:function(e,t,n,i,o,u,c,d){var h=0;l.length=d;var f=a(e);n.eachNode((function(e){var t=r(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=f;var n=Math.asin(t/2/o);isNaN(n)&&(n=s/2),l[e.dataIndex]=n,h+=2*n}));var p=(2*s-h)/d/2,g=0;n.eachNode((function(e){var t=p+l[e.dataIndex];g+=t,e.setLayout([o*Math.cos(g)+u,o*Math.sin(g)+c]),g+=t}))}};t.circularLayout=u},53081:function(e,t,n){var i=n(23845),o=n(76172),r=o.getLayoutRect,a=n(3726);function s(e,t,n){var i=e.getBoxLayoutParams();return i.aspect=n,r(i,{width:t.getWidth(),height:t.getHeight()})}function l(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var o=e.get("coordinateSystem");if(!o||"view"===o){var r=e.getData(),l=r.mapArray((function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.get("y")]})),u=[],c=[];a.fromPoints(l,u,c),c[0]-u[0]===0&&(c[0]+=1,u[0]-=1),c[1]-u[1]===0&&(c[1]+=1,u[1]-=1);var d=(c[0]-u[0])/(c[1]-u[1]),h=s(e,t,d);isNaN(d)&&(u=[h.x,h.y],c=[h.x+h.width,h.y+h.height]);var f=c[0]-u[0],p=c[1]-u[1],g=h.width,v=h.height,m=e.coordinateSystem=new i;m.zoomLimit=e.get("scaleLimit"),m.setBoundingRect(u[0],u[1],f,p),m.setViewRect(h.x,h.y,g,v),m.setCenter(e.get("center")),m.setZoom(e.get("zoom")),n.push(m)}})),n}e.exports=l},86733:function(e){function t(e){return e instanceof Array||(e=[e,e]),e}function n(e){e.eachSeriesByType("graph",(function(e){var n=e.getGraph(),i=e.getEdgeData(),o=t(e.get("edgeSymbol")),r=t(e.get("edgeSymbolSize")),a="lineStyle.color".split("."),s="lineStyle.opacity".split(".");i.setVisual("fromSymbol",o&&o[0]),i.setVisual("toSymbol",o&&o[1]),i.setVisual("fromSymbolSize",r&&r[0]),i.setVisual("toSymbolSize",r&&r[1]),i.setVisual("color",e.get(a)),i.setVisual("opacity",e.get(s)),i.each((function(e){var o=i.getItemModel(e),r=n.getEdgeByIndex(e),l=t(o.getShallow("symbol",!0)),u=t(o.getShallow("symbolSize",!0)),c=o.get(a),d=o.get(s);switch(c){case"source":c=r.node1.getVisual("color");break;case"target":c=r.node2.getVisual("color");break}l[0]&&r.setVisual("fromSymbol",l[0]),l[1]&&r.setVisual("toSymbol",l[1]),u[0]&&r.setVisual("fromSymbolSize",u[0]),u[1]&&r.setVisual("toSymbolSize",u[1]),r.setVisual("color",c),r.setVisual("opacity",d)}))}))}e.exports=n},33586:function(e,t,n){var i=n(45280),o=i.scaleAndAdd;function r(e,t,n){for(var r=n.rect,a=r.width,s=r.height,l=[r.x+a/2,r.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<e.length;c++){var d=e[c];d.p||(d.p=i.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=i.clone(d.p),d.edges=null}var h=null==n.friction?.6:n.friction,f=h;return{warmUp:function(){f=.8*h},setFixed:function(t){e[t].fixed=!0},setUnfixed:function(t){e[t].fixed=!1},step:function(n){for(var r=[],a=e.length,s=0;s<t.length;s++){var c=t[s];if(!c.ignoreForceLayout){var d=c.n1,h=c.n2;i.sub(r,h.p,d.p);var p=i.len(r)-c.d,g=h.w/(d.w+h.w);isNaN(g)&&(g=0),i.normalize(r,r),!d.fixed&&o(d.p,d.p,r,g*p*f),!h.fixed&&o(h.p,h.p,r,-(1-g)*p*f)}}for(s=0;s<a;s++){var v=e[s];v.fixed||(i.sub(r,l,v.p),o(v.p,v.p,r,u*f))}for(s=0;s<a;s++){d=e[s];for(var m=s+1;m<a;m++){h=e[m];i.sub(r,h.p,d.p);p=i.len(r);0===p&&(i.set(r,Math.random()-.5,Math.random()-.5),p=1);var y=(d.rep+h.rep)/p/p;!d.fixed&&o(d.pp,d.pp,r,y),!h.fixed&&o(h.pp,h.pp,r,-y)}}var x=[];for(s=0;s<a;s++){v=e[s];v.fixed||(i.sub(x,v.p,v.pp),o(v.p,v.p,x,f),i.copy(v.pp,v.p))}f*=.992,n&&n(e,t,f<.01)}}}t.forceLayout=r},6921:function(e,t,n){var i=n(33586),o=i.forceLayout,r=n(74107),a=r.simpleLayout,s=n(22663),l=s.circularLayout,u=n(85669),c=u.linearMap,d=n(45280),h=n(33051);function f(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),r=i.data,s=i.edgeData,u=e.getModel("force"),f=u.get("initLayout");e.preservedPoints?r.each((function(e){var t=r.getId(e);r.setItemLayout(e,n[t]||[NaN,NaN])})):f&&"none"!==f?"circular"===f&&l(e,"value"):a(e);var p=r.getDataExtent("value"),g=s.getDataExtent("value"),v=u.get("repulsion"),m=u.get("edgeLength");h.isArray(v)||(v=[v,v]),h.isArray(m)||(m=[m,m]),m=[m[1],m[0]];var y=r.mapArray("value",(function(e,t){var n=r.getItemLayout(t),i=c(e,p,v);return isNaN(i)&&(i=(v[0]+v[1])/2),{w:i,rep:i,fixed:r.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),x=s.mapArray("value",(function(e,t){var n=i.getEdgeByIndex(t),o=c(e,g,m);isNaN(o)&&(o=(m[0]+m[1])/2);var r=n.getModel();return{n1:y[n.node1.dataIndex],n2:y[n.node2.dataIndex],d:o,curveness:r.get("lineStyle.curveness")||0,ignoreForceLayout:r.get("ignoreForceLayout")}})),_=(t=e.coordinateSystem,t.getBoundingRect()),b=o(y,x,{rect:_,gravity:u.get("gravity"),friction:u.get("friction")}),w=b.step;b.step=function(e){for(var t=0,o=y.length;t<o;t++)y[t].fixed&&d.copy(y[t].p,i.getNodeByIndex(t).getLayout());w((function(t,o,a){for(var s=0,l=t.length;s<l;s++)t[s].fixed||i.getNodeByIndex(s).setLayout(t[s].p),n[r.getId(s)]=t[s].p;for(s=0,l=o.length;s<l;s++){var u=o[s],c=i.getEdgeByIndex(s),h=u.n1.p,f=u.n2.p,p=c.getLayout();p=p?p.slice():[],p[0]=p[0]||[],p[1]=p[1]||[],d.copy(p[0],h),d.copy(p[1],f),+u.curveness&&(p[2]=[(h[0]+f[0])/2-(h[1]-f[1])*u.curveness,(h[1]+f[1])/2-(f[0]-h[0])*u.curveness]),c.setLayout(p)}e&&e(a)}))},e.forceLayout=b,e.preservedPoints=n,b.step()}else e.forceLayout=null}))}e.exports=f},89562:function(e,t,n){var i=n(70492),o=n(60553),r=o.updateCenterAndZoom;n(35540);var a={type:"graphRoam",event:"graphRoam",update:"none"};i.registerAction(a,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var n=t.coordinateSystem,i=r(n,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))},47181:function(e,t){function n(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scale,o=i&&i[0]||1,r=t.getZoom(),a=(r-1)*n+1;return a/o}function i(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}t.getNodeGlobalScale=n,t.getSymbolSize=i},41241:function(e,t,n){var i=n(33051),o=i.each,r=n(74107),a=r.simpleLayout,s=r.simpleLayoutEdge;function l(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];o(n.dimensions,(function(e){r=r.concat(i.mapDimension(e,!0))}));for(var l=0;l<i.count();l++){for(var u=[],c=!1,d=0;d<r.length;d++){var h=i.get(r[d],l);isNaN(h)||(c=!0),u.push(h)}c?i.setItemLayout(l,n.dataToPoint(u)):i.setItemLayout(l,[NaN,NaN])}s(i.graph)}else t&&"none"!==t||a(e)}))}e.exports=l},74107:function(e,t,n){var i=n(45280);function o(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),r(n)}}function r(e){e.eachEdge((function(e){var t=e.getModel().get("lineStyle.curveness")||0,n=i.clone(e.node1.getLayout()),o=i.clone(e.node2.getLayout()),r=[n,o];+t&&r.push([(n[0]+o[0])/2-(n[1]-o[1])*t,(n[1]+o[1])/2-(o[0]-n[0])*t]),e.setLayout(r)}))}t.simpleLayout=o,t.simpleLayoutEdge=r},40055:function(e,t,n){n(72404),n(55883)},93189:function(e,t,n){var i=n(33051),o=256;function r(){var e=i.createCanvas();this.canvas=e,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}r.prototype={update:function(e,t,n,i,r,a){var s=this._getBrush(),l=this._getGradient(e,r,"inRange"),u=this._getGradient(e,r,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,h=d.getContext("2d"),f=e.length;d.width=t,d.height=n;for(var p=0;p<f;++p){var g=e[p],v=g[0],m=g[1],y=g[2],x=i(y);h.globalAlpha=x,h.drawImage(s,v-c,m-c)}if(!d.width||!d.height)return d;var _=h.getImageData(0,0,d.width,d.height),b=_.data,w=0,S=b.length,M=this.minOpacity,I=this.maxOpacity,A=I-M;while(w<S){x=b[w+3]/256;var k=4*Math.floor(x*(o-1));if(x>0){var P=a(x)?l:u;x>0&&(x=x*A+M),b[w++]=P[k],b[w++]=P[k+1],b[w++]=P[k+2],b[w++]=P[k+3]*x*256}else w+=4}return h.putImageData(_,0,0),d},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=i.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var o=e.getContext("2d");return o.clearRect(0,0,n,n),o.shadowOffsetX=n,o.shadowBlur=this.blurSize,o.shadowColor="#000",o.beginPath(),o.arc(-t,t,this.pointSize,0,2*Math.PI,!0),o.closePath(),o.fill(),e},_getGradient:function(e,t,n){for(var i=this._gradientPixels,o=i[n]||(i[n]=new Uint8ClampedArray(1024)),r=[0,0,0,0],a=0,s=0;s<256;s++)t[n](s/255,!0,r),o[a++]=r[0],o[a++]=r[1],o[a++]=r[2],o[a++]=r[3];return o}};var a=r;e.exports=a},72404:function(e,t,n){var i=n(93321),o=n(40488),r=n(95899),a=i.extend({type:"series.heatmap",getInitialData:function(e,t){return o(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var e=r.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});e.exports=a},55883:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(70492)),r=n(51177),a=n(93189),s=n(33051);function l(e,t,n){var i=e[1]-e[0];t=s.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var o=t.length,r=0;return function(e){for(var i=r;i<o;i++){var a=t[i].interval;if(a[0]<=e&&e<=a[1]){r=i;break}}if(i===o)for(i=r-1;i>=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){r=i;break}}return i>=0&&i<o&&n[i]}}function u(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function c(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var d=o.extendChartView({type:"heatmap",render:function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var o=e.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):c(o)&&this._renderOnGeo(o,e,i,n)},incrementalPrepareRender:function(e,t,n){this.group.removeAll()},incrementalRender:function(e,t,n,i){var o=t.coordinateSystem;o&&this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,n,i,o){var a,l,u=e.coordinateSystem;if("cartesian2d"===u.type){var c=u.getAxis("x"),d=u.getAxis("y");a=c.getBandWidth(),l=d.getBandWidth()}for(var h=this.group,f=e.getData(),p="itemStyle",g="emphasis.itemStyle",v="label",m="emphasis.label",y=e.getModel(p).getItemStyle(["color"]),x=e.getModel(g).getItemStyle(),_=e.getModel(v),b=e.getModel(m),w=u.type,S="cartesian2d"===w?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],M=n;M<i;M++){var I;if("cartesian2d"===w){if(isNaN(f.get(S[2],M)))continue;var A=u.dataToPoint([f.get(S[0],M),f.get(S[1],M)]);I=new r.Rect({shape:{x:Math.floor(Math.round(A[0])-a/2),y:Math.floor(Math.round(A[1])-l/2),width:Math.ceil(a),height:Math.ceil(l)},style:{fill:f.getItemVisual(M,"color"),opacity:f.getItemVisual(M,"opacity")}})}else{if(isNaN(f.get(S[1],M)))continue;I=new r.Rect({z2:1,shape:u.dataToRect([f.get(S[0],M)]).contentShape,style:{fill:f.getItemVisual(M,"color"),opacity:f.getItemVisual(M,"opacity")}})}var k=f.getItemModel(M);f.hasItemOption&&(y=k.getModel(p).getItemStyle(["color"]),x=k.getModel(g).getItemStyle(),_=k.getModel(v),b=k.getModel(m));var P=e.getRawValue(M),C="-";P&&null!=P[2]&&(C=P[2]),r.setLabelStyle(y,x,_,b,{labelFetcher:e,labelDataIndex:M,defaultText:C,isRectText:!0}),I.setStyle(y),r.setHoverStyle(I,f.hasItemOption?x:s.extend({},x)),I.incremental=o,o&&(I.useHoverLayer=!0),h.add(I),f.setItemGraphicEl(M,I)}},_renderOnGeo:function(e,t,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,c=t.getData(),d=this._hmLayer||this._hmLayer||new a;d.blurSize=t.get("blurSize"),d.pointSize=t.get("pointSize"),d.minOpacity=t.get("minOpacity"),d.maxOpacity=t.get("maxOpacity");var h=e.getViewRect().clone(),f=e.getRoamTransform();h.applyTransform(f);var p=Math.max(h.x,0),g=Math.max(h.y,0),v=Math.min(h.width+h.x,i.getWidth()),m=Math.min(h.height+h.y,i.getHeight()),y=v-p,x=m-g,_=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],b=c.mapArray(_,(function(t,n,i){var o=e.dataToPoint([t,n]);return o[0]-=p,o[1]-=g,o.push(i),o})),w=n.getExtent(),S="visualMap.continuous"===n.type?u(w,n.option.range):l(w,n.getPieceList(),n.option.selected);d.update(b,y,x,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var M=new r.Image({style:{width:y,height:x,x:p,y:g,image:d.canvas},silent:!0});this.group.add(M)},dispose:function(){}});e.exports=d},99895:function(e,t,n){var i=n(51177),o=n(77159),r=n(33051),a=n(41525),s=a.createSymbol,l=n(45280),u=n(18554);function c(e,t,n){i.Group.call(this),this.add(this.createLine(e,t,n)),this._updateEffectSymbol(e,t)}var d=c.prototype;d.createLine=function(e,t,n){return new o(e,t,n)},d._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),i=n.getModel("effect"),o=i.get("symbolSize"),a=i.get("symbol");r.isArray(o)||(o=[o,o]);var l=i.get("color")||e.getItemVisual(t,"color"),u=this.childAt(1);this._symbolType!==a&&(this.remove(u),u=s(a,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(i.getItemStyle(["color"])),u.attr("scale",o),u.setColor(l),u.attr("scale",o),this._symbolType=a,this._symbolScale=o,this._updateEffectAnimation(e,i,t))},d._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var o=this,a=e.getItemLayout(n),s=1e3*t.get("period"),l=t.get("loop"),u=t.get("constantSpeed"),c=r.retrieve(t.get("delay"),(function(t){return t/e.count()*s/3})),d="function"===typeof c;if(i.ignore=!0,this.updateAnimationPoints(i,a),u>0&&(s=this.getLineLength(i)/u*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var h=c;d&&(h=c(n)),i.__t>0&&(h=-s*i.__t),i.__t=0;var f=i.animate("",l).when(s,{__t:1}).delay(h).during((function(){o.updateSymbolPosition(i)}));l||f.done((function(){o.remove(i)})),f.start()}this._period=s,this._loop=l}},d.getLineLength=function(e){return l.dist(e.__p1,e.__cp1)+l.dist(e.__cp1,e.__p2)},d.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},d.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},d.updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t,r=e.position,a=[r[0],r[1]],s=u.quadraticAt,c=u.quadraticDerivativeAt;r[0]=s(t[0],i[0],n[0],o),r[1]=s(t[1],i[1],n[1],o);var d=c(t[0],i[0],n[0],o),h=c(t[1],i[1],n[1],o);if(e.rotation=-Math.atan2(h,d)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==e.__lastT&&e.__lastT<e.__t){var f=1.05*l.dist(a,r);e.attr("scale",[e.scale[0],f]),1===o&&(r[0]=a[0]+(r[0]-a[0])/2,r[1]=a[1]+(r[1]-a[1])/2)}else if(1===e.__lastT){f=2*l.dist(t,r);e.attr("scale",[e.scale[0],f])}else e.attr("scale",this._symbolScale);e.__lastT=e.__t,e.ignore=!1},d.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},r.inherits(c,i.Group);var h=c;e.exports=h},69121:function(e,t,n){var i=n(30146),o=n(33051),r=n(99895),a=n(45280);function s(e,t,n){r.call(this,e,t,n),this._lastFrame=0,this._lastFramePercent=0}var l=s.prototype;l.createLine=function(e,t,n){return new i(e,t,n)},l.updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,o=1;o<t.length;o++){var r=t[o-1],s=t[o];i+=a.dist(r,s),n.push(i)}if(0!==i){for(o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}},l.getLineLength=function(e){return this._length},l.updateSymbolPosition=function(e){var t=e.__t,n=this._points,i=this._offsets,o=n.length;if(i){var r=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(r+1,o-1);for(l=s;l>=0;l--)if(i[l]<=t)break;l=Math.min(l,o-2)}else{for(var l=r;l<o;l++)if(i[l]>t)break;l=Math.min(l-1,o-2)}a.lerp(e.position,n[l],n[l+1],(t-i[l])/(i[l+1]-i[l]));var u=n[l+1][0]-n[l][0],c=n[l+1][1]-n[l][1];e.rotation=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=t,e.ignore=!1}},o.inherits(s,r);var u=s;e.exports=u},53036:function(e,t,n){var i=n(33051),o=n(41525),r=o.createSymbol,a=n(51177),s=a.Group,l=n(85669),u=l.parsePercent,c=n(66351),d=3;function h(e){return i.isArray(e)||(e=[+e,+e]),e}function f(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}function p(e,t){s.call(this);var n=new c(e,t),i=new s;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(e,t)}var g=p.prototype;g.stopEffectAnimation=function(){this.childAt(1).removeAll()},g.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=this.childAt(1),o=0;o<d;o++){var a=r(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-o/d*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(a)}f(i,e)},g.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],o=0;o<i.length;o++){var r=i[o];if(t[r]!==e[r])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}f(n,e)},g.highlight=function(){this.trigger("emphasis")},g.downplay=function(){this.trigger("normal")},g.updateData=function(e,t){var n=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),o=e.getItemModel(t),r=e.getItemVisual(t,"symbol"),a=h(e.getItemVisual(t,"symbolSize")),s=e.getItemVisual(t,"color");i.attr("scale",a),i.traverse((function(e){e.attr({fill:s})}));var l=o.getShallow("symbolOffset");if(l){var c=i.position;c[0]=u(l[0],a[0]),c[1]=u(l[1],a[1])}var d=e.getItemVisual(t,"symbolRotate");i.rotation=(d||0)*Math.PI/180||0;var f={};if(f.showEffectOn=n.get("showEffectOn"),f.rippleScale=o.get("rippleEffect.scale"),f.brushType=o.get("rippleEffect.brushType"),f.period=1e3*o.get("rippleEffect.period"),f.effectOffset=t/e.count(),f.z=o.getShallow("z")||0,f.zlevel=o.getShallow("zlevel")||0,f.symbolType=r,f.color=s,f.rippleEffectColor=o.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===f.showEffectOn)this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f;else{this._effectCfg=null,this.stopEffectAnimation();var p=this.childAt(0),g=function(){p.highlight(),"render"!==f.showEffectOn&&this.startEffectAnimation(f)},v=function(){p.downplay(),"render"!==f.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",g,this).on("mouseout",v,this).on("emphasis",g,this).on("normal",v,this)}this._effectCfg=f},g.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},i.inherits(p,s);var v=p;e.exports=v},34148:function(e,t,n){var i=n(51177),o=n(91754),r=n(33640),a=n(25674),s=i.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(e,t){var n=t.segs,i=t.curveness;if(t.polyline)for(var o=0;o<n.length;){var r=n[o++];if(r>0){e.moveTo(n[o++],n[o++]);for(var a=1;a<r;a++)e.lineTo(n[o++],n[o++])}}else for(o=0;o<n.length;){var s=n[o++],l=n[o++],u=n[o++],c=n[o++];if(e.moveTo(s,l),i>0){var d=(s+u)/2-(l-c)*i,h=(l+c)/2-(u-s)*i;e.quadraticCurveTo(d,h,u,c)}else e.lineTo(u,c)}},findDataIndex:function(e,t){var n=this.shape,i=n.segs,o=n.curveness;if(n.polyline)for(var s=0,l=0;l<i.length;){var u=i[l++];if(u>0)for(var c=i[l++],d=i[l++],h=1;h<u;h++){var f=i[l++],p=i[l++];if(r.containStroke(c,d,f,p))return s}s++}else for(s=0,l=0;l<i.length;){c=i[l++],d=i[l++],f=i[l++],p=i[l++];if(o>0){var g=(c+f)/2-(d-p)*o,v=(d+p)/2-(f-c)*o;if(a.containStroke(c,d,g,v,f,p))return s}else if(r.containStroke(c,d,f,p))return s;s++}return-1}});function l(){this.group=new i.Group}var u=l.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(e){this.group.removeAll();var t=new s({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},u.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(e,t){var n=new s;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o=t.getVisual("color");o&&e.setStyle("stroke",o),e.setStyle("fill"),n||(e.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(e.dataIndex=n+e.__startIndex)})))},u._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var c=l;e.exports=c},48066:function(e,t,n){var i=n(51177),o=n(41525),r=o.createSymbol,a=n(91754),s=4,l=i.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(e,t){var n=t.points,i=t.size,o=this.symbolProxy,r=o.shape,a=e.getContext?e.getContext():e,l=a&&i[0]<s;if(!l)for(var u=0;u<n.length;){var c=n[u++],d=n[u++];isNaN(c)||isNaN(d)||(this.softClipShape&&!this.softClipShape.contain(c,d)||(r.x=c-i[0]/2,r.y=d-i[1]/2,r.width=i[0],r.height=i[1],o.buildPath(e,r,!0)))}},afterBrush:function(e){var t=this.shape,n=t.points,i=t.size,o=i[0]<s;if(o){this.setTransform(e);for(var r=0;r<n.length;){var a=n[r++],l=n[r++];isNaN(a)||isNaN(l)||(this.softClipShape&&!this.softClipShape.contain(a,l)||e.fillRect(a-i[0]/2,l-i[1]/2,i[0],i[1]))}this.restoreTransform(e)}},findDataIndex:function(e,t){for(var n=this.shape,i=n.points,o=n.size,r=Math.max(o[0],4),a=Math.max(o[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-r/2,c=i[l+1]-a/2;if(e>=u&&t>=c&&e<=u+r&&t<=c+a)return s}return-1}});function u(){this.group=new i.Group}var c=u.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(e,t){this.group.removeAll();var n=new l({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},c.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("symbolPoints");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t)}))}},c.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(e,t,n){var i;this._incremental?(i=new l,this._incremental.addDisplayable(i,!0)):(i=new l({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(i,t,!!this._incremental,n)},c._setCommon=function(e,t,n,i){var o=t.hostModel;i=i||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=i.clipShape||null,e.symbolProxy=r(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var l=e.shape.size[0]<s;e.useStyle(o.getModel("itemStyle").getItemStyle(l?["color","shadowBlur","shadowColor"]:["color"]));var u=t.getVisual("color");u&&e.setColor(u),n||(e.seriesIndex=o.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>=0&&(e.dataIndex=n+(e.startIndex||0))})))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var d=u;e.exports=d},77159:function(e,t,n){var i=n(33051),o=n(45280),r=n(41525),a=n(93290),s=n(51177),l=n(85669),u=l.round,c=["fromSymbol","toSymbol"];function d(e){return"_"+e+"Type"}function h(e,t,n){var o=t.getItemVisual(n,"color"),a=t.getItemVisual(n,e),s=t.getItemVisual(n,e+"Size");if(a&&"none"!==a){i.isArray(s)||(s=[s,s]);var l=r.createSymbol(a,-s[0]/2,-s[1]/2,s[0],s[1],o);return l.name=e,l}}function f(e){var t=new a({name:"line",subPixelOptimize:!0});return p(t.shape,e),t}function p(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}function g(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.childOfName("label");if(t||n||!i.ignore){var r=1,a=this.parent;while(a)a.scale&&(r/=a.scale[0]),a=a.parent;var s=e.childOfName("line");if(this.__dirty||s.__dirty){var l=s.shape.percent,u=s.pointAt(0),c=s.pointAt(l),d=o.sub([],c,u);if(o.normalize(d,d),t){t.attr("position",u);var h=s.tangentAt(0);t.attr("rotation",Math.PI/2-Math.atan2(h[1],h[0])),t.attr("scale",[r*l,r*l])}if(n){n.attr("position",c);h=s.tangentAt(1);n.attr("rotation",-Math.PI/2-Math.atan2(h[1],h[0])),n.attr("scale",[r*l,r*l])}if(!i.ignore){var f,p,g,v;i.attr("position",c);var m=i.__labelDistance,y=m[0]*r,x=m[1]*r,_=l/2,b=(h=s.tangentAt(_),[h[1],-h[0]]),w=s.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var S,M=h[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var I=-Math.atan2(h[1],h[0]);c[0]<u[0]&&(I=Math.PI+I),i.attr("rotation",I)}switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-x,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=x,g="top";break;default:S=0,g="middle"}switch(i.__position){case"end":f=[d[0]*y+c[0],d[1]*x+c[1]],p=d[0]>.8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":f=[-d[0]*y+u[0],-d[1]*x+u[1]],p=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f=[y*M+u[0],u[1]+S],p=h[0]<0?"right":"left",v=[-y*M,-S];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f=[w[0],w[1]+S],p="center",v=[0,-S];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f=[-y*M+c[0],c[1]+S],p=h[0]>=0?"right":"left",v=[y*M,-S];break}i.attr({style:{textVerticalAlign:i.__verticalAlign||g,textAlign:i.__textAlign||p},position:f,scale:[r,r],origin:v})}}}}function v(e,t,n){s.Group.call(this),this._createLine(e,t,n)}var m=v.prototype;m.beforeUpdate=g,m._createLine=function(e,t,n){var o=e.hostModel,r=e.getItemLayout(t),a=f(r);a.shape.percent=0,s.initProps(a,{shape:{percent:1}},o,t),this.add(a);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),i.each(c,(function(n){var i=h(n,e,t);this.add(i),this[d(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},m.updateData=function(e,t,n){var o=e.hostModel,r=this.childOfName("line"),a=e.getItemLayout(t),l={shape:{}};p(l.shape,a),s.updateProps(r,l,o,t),i.each(c,(function(n){var i=e.getItemVisual(t,n),o=d(n);if(this[o]!==i){this.remove(this.childOfName(n));var r=h(n,e,t);this.add(r)}this[o]=i}),this),this._updateCommonStl(e,t,n)},m._updateCommonStl=function(e,t,n){var o=e.hostModel,r=this.childOfName("line"),a=n&&n.lineStyle,l=n&&n.hoverLineStyle,d=n&&n.labelModel,h=n&&n.hoverLabelModel;if(!n||e.hasItemOption){var f=e.getItemModel(t);a=f.getModel("lineStyle").getLineStyle(),l=f.getModel("emphasis.lineStyle").getLineStyle(),d=f.getModel("label"),h=f.getModel("emphasis.label")}var p=e.getItemVisual(t,"color"),g=i.retrieve3(e.getItemVisual(t,"opacity"),a.opacity,1);r.useStyle(i.defaults({strokeNoScale:!0,fill:"none",stroke:p,opacity:g},a)),r.hoverStyle=l,i.each(c,(function(e){var t=this.childOfName(e);t&&(t.setColor(p),t.setStyle({opacity:g}))}),this);var v,m,y=d.getShallow("show"),x=h.getShallow("show"),_=this.childOfName("label");if((y||x)&&(v=p||"#000",m=o.getFormattedLabel(t,"normal",e.dataType),null==m)){var b=o.getRawValue(t);m=null==b?e.getName(t):isFinite(b)?u(b):b}var w=y?m:null,S=x?i.retrieve2(o.getFormattedLabel(t,"emphasis",e.dataType),m):null,M=_.style;if(null!=w||null!=S){s.setTextStyle(_.style,d,{text:w},{autoColor:v}),_.__textAlign=M.textAlign,_.__verticalAlign=M.textVerticalAlign,_.__position=d.get("position")||"middle";var I=d.get("distance");i.isArray(I)||(I=[I,I]),_.__labelDistance=I}_.hoverStyle=null!=S?{text:S,textFill:h.getTextColor(!0),fontStyle:h.getShallow("fontStyle"),fontWeight:h.getShallow("fontWeight"),fontSize:h.getShallow("fontSize"),fontFamily:h.getShallow("fontFamily")}:{text:null},_.ignore=!y&&!x,s.setHoverStyle(this)},m.highlight=function(){this.trigger("emphasis")},m.downplay=function(){this.trigger("normal")},m.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},m.setLinePoints=function(e){var t=this.childOfName("line");p(t.shape,e),t.dirty()},i.inherits(v,s.Group);var y=v;e.exports=y},47145:function(e,t,n){var i=n(51177),o=n(77159);function r(e){this._ctor=e||o,this.group=new i.Group}var a=r.prototype;function s(e,t,n,i){var o=t.getItemLayout(n);if(h(o)){var r=new e._ctor(t,n,i);t.setItemGraphicEl(n,r),e.group.add(r)}}function l(e,t,n,i,o,r){var a=t.getItemGraphicEl(i);h(n.getItemLayout(o))?(a?a.updateData(n,o,r):a=new e._ctor(n,o,r),n.setItemGraphicEl(o,a),e.group.add(a)):e.group.remove(a)}function u(e){return e.animators&&e.animators.length>0}function c(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function d(e){return isNaN(e[0])||isNaN(e[1])}function h(e){return!d(e[0])&&!d(e[1])}a.isPersistent=function(){return!0},a.updateData=function(e){var t=this,n=t.group,i=t._lineData;t._lineData=e,i||n.removeAll();var o=c(e);e.diff(i).add((function(n){s(t,e,n,o)})).update((function(n,r){l(t,i,e,r,n,o)})).remove((function(e){n.remove(i.getItemGraphicEl(e))})).execute()},a.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},a.incrementalPrepareUpdate=function(e){this._seriesScope=c(e),this._lineData=null,this.group.removeAll()},a.incrementalUpdate=function(e,t){function n(e){e.isGroup||u(e)||(e.incremental=e.useHoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(h(o)){var r=new this._ctor(t,i,this._seriesScope);r.traverse(n),this.group.add(r),t.setItemGraphicEl(i,r)}}},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var f=r;e.exports=f},93290:function(e,t,n){var i=n(51177),o=n(45280),r=i.Line.prototype,a=i.BezierCurve.prototype;function s(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var l=i.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){this[s(t)?"_buildPathLine":"_buildPathCurve"](e,t)},_buildPathLine:r.buildPath,_buildPathCurve:a.buildPath,pointAt:function(e){return this[s(this.shape)?"_pointAtLine":"_pointAtCurve"](e)},_pointAtLine:r.pointAt,_pointAtCurve:a.pointAt,tangentAt:function(e){var t=this.shape,n=s(t)?[t.x2-t.x1,t.y2-t.y1]:this._tangentAtCurve(e);return o.normalize(n,n)},_tangentAtCurve:a.tangentAt});e.exports=l},30146:function(e,t,n){var i=n(51177),o=n(33051);function r(e,t,n){i.Group.call(this),this._createPolyline(e,t,n)}var a=r.prototype;a._createPolyline=function(e,t,n){var o=e.getItemLayout(t),r=new i.Polyline({shape:{points:o}});this.add(r),this._updateCommonStl(e,t,n)},a.updateData=function(e,t,n){var o=e.hostModel,r=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};i.updateProps(r,a,o,t),this._updateCommonStl(e,t,n)},a._updateCommonStl=function(e,t,n){var r=this.childAt(0),a=e.getItemModel(t),s=e.getItemVisual(t,"color"),l=n&&n.lineStyle,u=n&&n.hoverLineStyle;n&&!e.hasItemOption||(l=a.getModel("lineStyle").getLineStyle(),u=a.getModel("emphasis.lineStyle").getLineStyle()),r.useStyle(o.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),r.hoverStyle=u,i.setHoverStyle(this)},a.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},o.inherits(r,i.Group);var s=r;e.exports=s},66351:function(e,t,n){var i=n(33051),o=n(41525),r=o.createSymbol,a=n(51177),s=n(85669),l=s.parsePercent,u=n(33140),c=u.getDefaultLabel;function d(e,t,n){a.Group.call(this),this.updateData(e,t,n)}var h=d.prototype,f=d.getSymbolSize=function(e,t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};function p(e){return[e[0]/2,e[1]/2]}function g(e,t){this.parent.drift(e,t)}h._createSymbol=function(e,t,n,i,o){this.removeAll();var a=t.getItemVisual(n,"color"),s=r(e,-1,-1,2,2,a,o);s.attr({z2:100,culling:!0,scale:p(i)}),s.drift=g,this._symbolType=e,this.add(s)},h.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},h.getSymbolPath=function(){return this.childAt(0)},h.getScale=function(){return this.childAt(0).scale},h.highlight=function(){this.childAt(0).trigger("emphasis")},h.downplay=function(){this.childAt(0).trigger("normal")},h.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},h.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},h.updateData=function(e,t,n){this.silent=!1;var i=e.getItemVisual(t,"symbol")||"circle",o=e.hostModel,r=f(e,t),s=i!==this._symbolType;if(s){var l=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(i,e,t,r,l)}else{var u=this.childAt(0);u.silent=!1,a.updateProps(u,{scale:p(r)},o,t)}if(this._updateCommon(e,t,r,n),s){u=this.childAt(0);var c=n&&n.fadeIn,d={scale:u.scale.slice()};c&&(d.style={opacity:u.style.opacity}),u.scale=[0,0],c&&(u.style.opacity=0),a.initProps(u,d,o,t)}this._seriesModel=o};var v=["itemStyle"],m=["emphasis","itemStyle"],y=["label"],x=["emphasis","label"];function _(e,t){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===t){var n=this.__symbolOriginalScale,i=n[1]/n[0],o={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*i)]};this.animateTo(o,400,"elasticOut")}else"normal"===t&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}h._updateCommon=function(e,t,n,o){var r=this.childAt(0),s=e.hostModel,u=e.getItemVisual(t,"color");"image"!==r.type?r.useStyle({strokeNoScale:!0}):r.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var d=o&&o.itemStyle,h=o&&o.hoverItemStyle,f=o&&o.symbolOffset,g=o&&o.labelModel,b=o&&o.hoverLabelModel,w=o&&o.hoverAnimation,S=o&&o.cursorStyle;if(!o||e.hasItemOption){var M=o&&o.itemModel?o.itemModel:e.getItemModel(t);d=M.getModel(v).getItemStyle(["color"]),h=M.getModel(m).getItemStyle(),f=M.getShallow("symbolOffset"),g=M.getModel(y),b=M.getModel(x),w=M.getShallow("hoverAnimation"),S=M.getShallow("cursor")}else h=i.extend({},h);var I=r.style,A=e.getItemVisual(t,"symbolRotate");r.attr("rotation",(A||0)*Math.PI/180||0),f&&r.attr("position",[l(f[0],n[0]),l(f[1],n[1])]),S&&r.attr("cursor",S),r.setColor(u,o&&o.symbolInnerColor),r.setStyle(d);var k=e.getItemVisual(t,"opacity");null!=k&&(I.opacity=k);var P=e.getItemVisual(t,"liftZ"),C=r.__z2Origin;null!=P?null==C&&(r.__z2Origin=r.z2,r.z2+=P):null!=C&&(r.z2=C,r.__z2Origin=null);var E=o&&o.useNameLabel;function T(t,n){return E?e.getName(t):c(e,t)}a.setLabelStyle(I,h,g,b,{labelFetcher:s,labelDataIndex:t,defaultText:T,isRectText:!0,autoColor:u}),r.__symbolOriginalScale=p(n),r.hoverStyle=h,r.highDownOnUpdate=w&&s.isAnimationEnabled()?_:null,a.setHoverStyle(r)},h.fadeOut=function(e,t){var n=this.childAt(0);this.silent=n.silent=!0,(!t||!t.keepLabel)&&(n.style.text=null),a.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},i.inherits(d,a.Group);var b=d;e.exports=b},68162:function(e,t,n){var i=n(51177),o=n(66351),r=n(33051),a=r.isObject;function s(e){this.group=new i.Group,this._symbolCtor=e||o}var l=s.prototype;function u(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function c(e){return null==e||a(e)||(e={isIgnore:e}),e||{}}function d(e){var t=e.hostModel;return{itemStyle:t.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:t.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label"),cursorStyle:t.get("cursor")}}l.updateData=function(e,t){t=c(t);var n=this.group,o=e.hostModel,r=this._data,a=this._symbolCtor,s=d(e);r||n.removeAll(),e.diff(r).add((function(i){var o=e.getItemLayout(i);if(u(e,o,i,t)){var r=new a(e,i,s);r.attr("position",o),e.setItemGraphicEl(i,r),n.add(r)}})).update((function(l,c){var d=r.getItemGraphicEl(c),h=e.getItemLayout(l);u(e,h,l,t)?(d?(d.updateData(e,l,s),i.updateProps(d,{position:h},o)):(d=new a(e,l),d.attr("position",h)),n.add(d),e.setItemGraphicEl(l,d)):n.remove(d)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}))})).execute(),this._data=e},l.isPersistent=function(){return!0},l.updateLayout=function(){var e=this._data;e&&e.eachItemGraphicEl((function(t,n){var i=e.getItemLayout(n);t.attr("position",i)}))},l.incrementalPrepareUpdate=function(e){this._seriesScope=d(e),this._data=null,this.group.removeAll()},l.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}n=c(n);for(var o=e.start;o<e.end;o++){var r=t.getItemLayout(o);if(u(t,r,o,n)){var a=new this._symbolCtor(t,o,this._seriesScope);a.traverse(i),a.attr("position",r),this.group.add(a),t.setItemGraphicEl(o,a)}}},l.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}))})):t.removeAll()};var h=s;e.exports=h},22963:function(e,t,n){var i=n(51177),o=n(85669),r=o.round;function a(e,t,n){var o=e.getArea(),r=e.getBaseAxis().isHorizontal(),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 d=new i.Rect({shape:{x:a,y:s,width:l,height:u}});return t&&(d.shape[r?"width":"height"]=0,i.initProps(d,{shape:{width:l,height:u}},n)),d}function s(e,t,n){var o=e.getArea(),a=new i.Sector({shape:{cx:r(e.cx,1),cy:r(e.cy,1),r0:r(o.r0,1),r:r(o.r,1),startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}});return t&&(a.shape.endAngle=o.startAngle,i.initProps(a,{shape:{endAngle:o.endAngle}},n)),a}function l(e,t,n){return e?"polar"===e.type?s(e,t,n):"cartesian2d"===e.type?a(e,t,n):null:null}t.createGridClipPath=a,t.createPolarClipPath=s,t.createClipPath=l},19638:function(e,t,n){var i=n(33051),o=n(87587),r=n(85446),a=n(63978),s=n(55623),l=n(95899),u=n(40488);function c(e,t,n,c,d){for(var h=new r(c),f=0;f<e.length;f++)h.addNode(i.retrieve(e[f].id,e[f].name,f),f);var p=[],g=[],v=0;for(f=0;f<t.length;f++){var m=t[f],y=m.source,x=m.target;h.addEdge(y,x,v)&&(g.push(m),p.push(i.retrieve(m.id,y+" > "+x)),v++)}var _,b=n.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)_=u(e,n);else{var w=l.get(b),S=w&&"view"!==w.type&&w.dimensions||[];i.indexOf(S,"value")<0&&S.concat(["value"]);var M=s(e,{coordDimensions:S});_=new o(M,n),_.initData(e)}var I=new o(["value"],n);return I.initData(g,p),d&&d(_,I),a({mainData:_,struct:h,structAttr:"graph",datas:{node:_,edge:I},datasAttr:{node:"data",edge:"edgeData"}}),h.update(),h}e.exports=c},40488:function(e,t,n){var i=n(33051),o=n(87587),r=n(55623),a=n(93819),s=a.SOURCE_FORMAT_ORIGINAL,l=n(10381),u=l.getDimensionTypeByAxis,c=n(32234),d=c.getDataItemValue,h=n(95899),f=n(32702),p=f.getCoordSysInfoBySeries,g=n(99574),v=n(99936),m=v.enableDataStack,y=n(61772),x=y.makeSeriesEncodeForAxisCoordSys;function _(e,t,n){n=n||{},g.isInstance(e)||(e=g.seriesDataToSource(e));var a,s=t.get("coordinateSystem"),l=h.get(s),c=p(t);c&&(a=i.map(c.coordSysDims,(function(e){var t={name:e},n=c.axisMap.get(e);if(n){var i=n.get("type");t.type=u(i)}return t}))),a||(a=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]);var d,f,v=r(e,{coordDimensions:a,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?i.curry(x,a,t):null});c&&i.each(v,(function(e,t){var n=e.coordDim,i=c.categoryAxisMap.get(n);i&&(null==d&&(d=t),e.ordinalMeta=i.getOrdinalMeta()),null!=e.otherDims.itemName&&(f=!0)})),f||null==d||(v[d].otherDims.itemName=0);var y=m(t,v),_=new o(v,t);_.setCalculationInfo(y);var w=null!=d&&b(e)?function(e,t,n,i){return i===d?n:this.defaultDimValueGetter(e,t,n,i)}:null;return _.hasItemOption=!1,_.initData(e,null,w),_}function b(e){if(e.sourceFormat===s){var t=w(e.data||[]);return null!=t&&!i.isArray(d(t))}}function w(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var S=_;e.exports=S},23263:function(e,t,n){var i=n(55623),o=n(87587),r=n(33051),a=r.extend,s=r.isArray;function l(e,t,n){t=s(t)&&{coordDimensions:t}||a({},t);var r=e.getSource(),l=i(r,t),u=new o(l,e);return u.initData(r,n),u}e.exports=l},95682:function(e,t,n){var i=n(32234),o=i.makeInner;function r(){var e=o();return function(t){var n=e(t),i=t.pipelineContext,o=n.large,r=n.progressiveRender,a=n.large=i&&i.large,s=n.progressiveRender=i&&i.progressiveRender;return!!(o^a||r^s)&&"reset"}}e.exports=r},35540:function(e,t,n){var i=n(70492);i.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),i.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},33140:function(e,t,n){var i=n(68540),o=i.retrieveRawValue;function r(e,t){var n=e.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return o(e,t,n[0]);if(i){for(var r=[],a=0;a<n.length;a++){var s=o(e,t,n[a]);r.push(s)}return r.join(" ")}}t.getDefaultLabel=r},68833:function(e,t,n){var i=n(33051);function o(e,t,n){if(e&&i.indexOf(t,e.type)>=0){var o=n.getData().tree.root,r=e.targetNode;if("string"===typeof r&&(r=o.getNodeById(r)),r&&o.contains(r))return{node:r};var a=e.targetNodeId;if(null!=a&&(r=o.getNodeById(a)))return{node:r}}}function r(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function a(e,t){var n=r(e);return i.indexOf(n,t)>=0}function s(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}t.retrieveTargetInfo=o,t.getPathToRoot=r,t.aboveViewRoot=a,t.wrapTreePathInfo=s},4993:function(e,t,n){var i=n(23263),o=n(33051),r=n(10381),a=r.getDimensionTypeByAxis,s=n(61772),l=s.makeSeriesEncodeForAxisCoordSys,u={_baseAxisDim:null,getInitialData:function(e,t){var n,r,s=t.getComponent("xAxis",this.get("xAxisIndex")),u=t.getComponent("yAxis",this.get("yAxisIndex")),c=s.get("type"),d=u.get("type");"category"===c?(e.layout="horizontal",n=s.getOrdinalMeta(),r=!0):"category"===d?(e.layout="vertical",n=u.getOrdinalMeta(),r=!0):e.layout=e.layout||"horizontal";var h=["x","y"],f="horizontal"===e.layout?0:1,p=this._baseAxisDim=h[f],g=h[1-f],v=[s,u],m=v[f].get("type"),y=v[1-f].get("type"),x=e.data;if(x&&r){var _=[];o.each(x,(function(e,t){var n;e.value&&o.isArray(e.value)?(n=e.value.slice(),e.value.unshift(t)):o.isArray(e)?(n=e.slice(),e.unshift(t)):n=e,_.push(n)})),e.data=_}var b=this.defaultValueDimensions,w=[{name:p,type:a(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:a(y),dimsDef:b.slice()}];return i(this,{coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:o.curry(l,w,this)})},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}};t.seriesModelMixin=u},46295:function(e,t,n){var i=n(70492);n(39790),n(81950);var o=n(34586),r=n(21149),a=n(64088);n(84617),i.registerVisual(o("line","circle","line")),i.registerLayout(r("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,a("line"))},39790:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(40488)),r=n(93321),a=r.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return o(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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}});e.exports=a},81950:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=n(3726),a=r.fromPoints,s=n(68162),l=n(66351),u=n(21068),c=n(51177),d=n(32234),h=n(30633),f=h.Polyline,p=h.Polygon,g=n(75797),v=n(89385),m=v.prepareDataCoordInfo,y=v.getStackedOnPoint,x=n(22963),_=x.createGridClipPath,b=x.createPolarClipPath;function w(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++){var i=e[n],o=t[n];if(i[0]!==o[0]||i[1]!==o[1])return}return!0}}function S(e,t){var n=[],i=[],o=[],r=[];return a(e,n,i),a(t,o,r),Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-r[0]),Math.abs(i[1]-r[1]))}function M(e){return"number"===typeof e?e:e?.5:0}function I(e,t,n){if(!n.valueDim)return[];for(var i=[],o=0,r=t.count();o<r;o++)i.push(y(n,e,t,o));return i}function A(e,t,n){for(var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,r=[],a=0;a<e.length-1;a++){var s=e[a+1],l=e[a];r.push(l);var u=[];switch(n){case"end":u[o]=s[o],u[1-o]=l[1-o],r.push(u);break;case"middle":var c=(l[o]+s[o])/2,d=[];u[o]=d[o]=c,u[1-o]=l[1-o],d[1-o]=s[1-o],r.push(u),r.push(d);break;default:u[o]=l[o],u[1-o]=s[1-o],r.push(u)}}return e[a]&&r.push(e[a]),r}function k(e,t){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var i,r,a=n.length-1;a>=0;a--){var s=n[a].dimension,l=e.dimensions[s],u=e.getDimensionInfo(l);if(i=u&&u.coordDim,"x"===i||"y"===i){r=n[a];break}}if(r){var d=t.getAxis(i),h=o.map(r.stops,(function(e){return{coord:d.toGlobalCoord(d.dataToCoord(e.value)),color:e.color}})),f=h.length,p=r.outerColors.slice();f&&h[0].coord>h[f-1].coord&&(h.reverse(),p.reverse());var g=10,v=h[0].coord-g,m=h[f-1].coord+g,y=m-v;if(y<.001)return"transparent";o.each(h,(function(e){e.offset=(e.coord-v)/y})),h.push({offset:f?h[f-1].offset:.5,color:p[1]||"transparent"}),h.unshift({offset:f?h[0].offset:.5,color:p[0]||"transparent"});var x=new c.LinearGradient(0,0,0,0,h,!0);return x[i]=v,x[i+"2"]=m,x}}}function P(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var a=n.getAxesByScale("ordinal")[0];if(a&&(!r||!C(a,t))){var s=t.mapDimension(a.dim),l={};return o.each(a.getViewLabels(),(function(e){l[e.tickValue]=1})),function(e){return!l.hasOwnProperty(t.get(s,e))}}}}function C(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var o=t.count(),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*l.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}function E(e,t,n){if("cartesian2d"===e.type){var i=e.getBaseAxis().isHorizontal(),o=_(e,t,n);if(!n.get("clip",!0)){var r=o.shape,a=Math.max(r.width,r.height);i?(r.y-=a,r.height+=2*a):(r.x-=a,r.width+=2*a)}return o}return b(e,t,n)}var T=g.extend({type:"line",init:function(){var e=new c.Group,t=new s;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,n){var i=e.coordinateSystem,r=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.mapArray(a.getItemLayout),c="polar"===i.type,d=this._coordSys,h=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,v=e.get("animation"),y=!l.isEmpty(),x=l.get("origin"),_=m(i,a,x),b=I(i,a,_),S=e.get("showSymbol"),C=S&&!c&&P(e,a,i),T=this._data;T&&T.eachItemGraphicEl((function(e,t){e.__temp&&(r.remove(e),T.setItemGraphicEl(t,null))})),S||h.remove(),r.add(g);var N,D=!c&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(N=i.getArea(),null!=N.width?(N.x-=.1,N.y-=.1,N.width+=.2,N.height+=.2):N.r0&&(N.r0-=.5,N.r1+=.5)),this._clipShapeForSymbol=N,f&&d.type===i.type&&D===this._step?(y&&!p?p=this._newPolygon(u,b,i,v):p&&!y&&(g.remove(p),p=this._polygon=null),g.setClipPath(E(i,!1,e)),S&&h.updateData(a,{isIgnore:C,clipShape:N}),a.eachItemGraphicEl((function(e){e.stopAnimation(!0)})),w(this._stackedOnPoints,b)&&w(this._points,u)||(v?this._updateAnimation(a,b,i,n,D,x):(D&&(u=A(u,i,D),b=A(b,i,D)),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:b})))):(S&&h.updateData(a,{isIgnore:C,clipShape:N}),D&&(u=A(u,i,D),b=A(b,i,D)),f=this._newPolyline(u,i,v),y&&(p=this._newPolygon(u,b,i,v)),g.setClipPath(E(i,!0,e)));var O=k(a,i)||a.getVisual("color");f.useStyle(o.defaults(s.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"}));var L=e.get("smooth");if(L=M(e.get("smooth")),f.setShape({smooth:L,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),p){var V=a.getCalculationInfo("stackedOnSeries"),R=0;p.useStyle(o.defaults(l.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel"})),V&&(R=M(V.get("smooth"))),p.setShape({smooth:L,stackedOnSmooth:R,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=a,this._coordSys=i,this._stackedOnPoints=b,this._points=u,this._step=D,this._valueOrigin=x},dispose:function(){},highlight:function(e,t,n,i){var o=e.getData(),r=d.queryDataIndex(o,i);if(!(r instanceof Array)&&null!=r&&r>=0){var a=o.getItemGraphicEl(r);if(!a){var s=o.getItemLayout(r);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;a=new l(o,r),a.position=s,a.setZ(e.get("zlevel"),e.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,o.setItemGraphicEl(r,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else g.prototype.highlight.call(this,e,t,n,i)},downplay:function(e,t,n,i){var o=e.getData(),r=d.queryDataIndex(o,i);if(null!=r&&r>=0){var a=o.getItemGraphicEl(r);a&&(a.__temp?(o.setItemGraphicEl(r,null),this.group.remove(a)):a.downplay())}else g.prototype.downplay.call(this,e,t,n,i)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new f({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new p({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(e,t,n,i,o,r){var a=this._polyline,s=this._polygon,l=e.hostModel,d=u(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,r),h=d.current,f=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(o&&(h=A(d.current,n,o),f=A(d.stackedOnCurrent,n,o),p=A(d.next,n,o),g=A(d.stackedOnNext,n,o)),S(h,p)>3e3||s&&S(f,g)>3e3)return a.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:g}));a.shape.__points=d.current,a.shape.points=h,c.updateProps(a,{shape:{points:p}},l),s&&(s.setShape({points:h,stackedOnPoints:f}),c.updateProps(s,{shape:{points:p,stackedOnPoints:g}},l));for(var v=[],m=d.status,y=0;y<m.length;y++){var x=m[y].cmd;if("="===x){var _=e.getItemGraphicEl(m[y].idx1);_&&v.push({el:_,ptIdx:y})}}a.animators&&a.animators.length&&a.animators[0].during((function(){for(var e=0;e<v.length;e++){var t=v[e].el;t.attr("position",a.shape.__points[v[e].ptIdx])}}))},remove:function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});e.exports=T},89385:function(e,t,n){var i=n(99936),o=i.isDimensionStacked,r=n(33051),a=r.map;function s(e,t,n){var i,r=e.getBaseAxis(),s=e.getOtherAxis(r),u=l(s,n),c=r.dim,d=s.dim,h=t.mapDimension(d),f=t.mapDimension(c),p="x"===d||"radius"===d?1:0,g=a(e.dimensions,(function(e){return t.mapDimension(e)})),v=t.getCalculationInfo("stackResultDimension");return(i|=o(t,g[0]))&&(g[0]=v),(i|=o(t,g[1]))&&(g[1]=v),{dataDimsForPoint:g,valueStart:u,valueAxisDim:d,baseAxisDim:c,stacked:!!i,valueDim:h,baseDim:f,baseDataOffset:p,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function l(e,t){var n=0,i=e.scale.getExtent();return"start"===t?n=i[0]:"end"===t?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function u(e,t,n,i){var o=NaN;e.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=e.valueStart);var r=e.baseDataOffset,a=[];return a[r]=n.get(e.baseDim,i),a[1-r]=o,t.dataToPoint(a)}t.prepareDataCoordInfo=s,t.getStackedOnPoint=u},21068:function(e,t,n){var i=n(89385),o=i.prepareDataCoordInfo,r=i.getStackedOnPoint;function a(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function s(e,t,n,i,s,l,u,c){for(var d=a(e,t),h=[],f=[],p=[],g=[],v=[],m=[],y=[],x=o(s,t,u),_=o(l,e,c),b=0;b<d.length;b++){var w=d[b],S=!0;switch(w.cmd){case"=":var M=e.getItemLayout(w.idx),I=t.getItemLayout(w.idx1);(isNaN(M[0])||isNaN(M[1]))&&(M=I.slice()),h.push(M),f.push(I),p.push(n[w.idx]),g.push(i[w.idx1]),y.push(t.getRawIndex(w.idx1));break;case"+":var A=w.idx;h.push(s.dataToPoint([t.get(x.dataDimsForPoint[0],A),t.get(x.dataDimsForPoint[1],A)])),f.push(t.getItemLayout(A).slice()),p.push(r(x,s,t,A)),g.push(i[A]),y.push(t.getRawIndex(A));break;case"-":A=w.idx;var k=e.getRawIndex(A);k!==A?(h.push(e.getItemLayout(A)),f.push(l.dataToPoint([e.get(_.dataDimsForPoint[0],A),e.get(_.dataDimsForPoint[1],A)])),p.push(n[A]),g.push(r(_,l,e,A)),y.push(k)):S=!1}S&&(v.push(w),m.push(m.length))}m.sort((function(e,t){return y[e]-y[t]}));var P=[],C=[],E=[],T=[],N=[];for(b=0;b<m.length;b++){A=m[b];P[b]=h[A],C[b]=f[A],E[b]=p[A],T[b]=g[A],N[b]=v[A]}return{current:P,next:C,stackedOnCurrent:E,stackedOnNext:T,status:N}}e.exports=s},30633:function(e,t,n){var i=n(10712),o=n(45280),r=n(60873),a=o.min,s=o.max,l=o.scaleAndAdd,u=o.copy,c=[],d=[],h=[];function f(e){return isNaN(e[0])||isNaN(e[1])}function p(e,t,n,i,o,r,a,s,l,u,c){return"none"!==u&&u?g.apply(this,arguments):v.apply(this,arguments)}function g(e,t,n,i,o,r,a,s,l,c,p){for(var g=0,v=n,m=0;m<i;m++){var y=t[v];if(v>=o||v<0)break;if(f(y)){if(p){v+=r;continue}break}if(v===n)e[r>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var x=t[g],_="y"===c?1:0,b=(y[_]-x[_])*l;u(d,x),d[_]=x[_]+b,u(h,y),h[_]=y[_]-b,e.bezierCurveTo(d[0],d[1],h[0],h[1],y[0],y[1])}else e.lineTo(y[0],y[1]);g=v,v+=r}return m}function v(e,t,n,i,r,p,g,v,m,y,x){for(var _=0,b=n,w=0;w<i;w++){var S=t[b];if(b>=r||b<0)break;if(f(S)){if(x){b+=p;continue}break}if(b===n)e[p>0?"moveTo":"lineTo"](S[0],S[1]),u(d,S);else if(m>0){var M=b+p,I=t[M];if(x)while(I&&f(t[M]))M+=p,I=t[M];var A=.5,k=t[_];I=t[M];if(!I||f(I))u(h,S);else{var P,C;if(f(I)&&!x&&(I=S),o.sub(c,I,k),"x"===y||"y"===y){var E="x"===y?0:1;P=Math.abs(S[E]-k[E]),C=Math.abs(S[E]-I[E])}else P=o.dist(S,k),C=o.dist(S,I);A=C/(C+P),l(h,S,c,-m*(1-A))}a(d,d,v),s(d,d,g),a(h,h,v),s(h,h,g),e.bezierCurveTo(d[0],d[1],h[0],h[1],S[0],S[1]),l(d,S,c,m*A)}else e.lineTo(S[0],S[1]);_=b,b+=p}return w}function m(e,t){var n=[1/0,1/0],i=[-1/0,-1/0];if(t)for(var o=0;o<e.length;o++){var r=e[o];r[0]<n[0]&&(n[0]=r[0]),r[1]<n[1]&&(n[1]=r[1]),r[0]>i[0]&&(i[0]=r[0]),r[1]>i[1]&&(i[1]=r[1])}return{min:t?n:i,max:t?i:n}}var y=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:r(i.prototype.brush),buildPath:function(e,t){var n=t.points,i=0,o=n.length,r=m(n,t.smoothConstraint);if(t.connectNulls){for(;o>0;o--)if(!f(n[o-1]))break;for(;i<o;i++)if(!f(n[i]))break}while(i<o)i+=p(e,n,i,o,o,1,r.min,r.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),x=i.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:r(i.prototype.brush),buildPath:function(e,t){var n=t.points,i=t.stackedOnPoints,o=0,r=n.length,a=t.smoothMonotone,s=m(n,t.smoothConstraint),l=m(i,t.smoothConstraint);if(t.connectNulls){for(;r>0;r--)if(!f(n[r-1]))break;for(;o<r;o++)if(!f(n[o]))break}while(o<r){var u=p(e,n,o,r,r,1,s.min,s.max,t.smooth,a,t.connectNulls);p(e,i,o+u-1,u,r,-1,l.min,l.max,t.stackedOnSmooth,a,t.connectNulls),o+=u+1,e.closePath()}}});t.Polyline=y,t.Polygon=x},64771:function(e,t,n){var i=n(70492);n(40142),n(68192);var o=n(43850),r=n(62503);i.registerLayout(o),i.registerVisual(r)},40142:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(93321)),r=n(87587),a=n(33051),s=a.concatArray,l=a.mergeAll,u=a.map,c=n(78988),d=c.encodeHTML,h=(n(95899),"undefined"===typeof Uint32Array?Array:Uint32Array),f="undefined"===typeof Float64Array?Array:Float64Array;function p(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=u(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),l([n,e[0],e[1]])})))}var g=o.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(e){e.data=e.data||[],p(e);var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),g.superApply(this,"init",arguments)},mergeOption:function(e){if(e.data=e.data||[],p(e),e.data){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count))}g.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=s(this._flatCoords,t.flatCoords),this._flatCoordsOffset=s(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],o=0;o<i;o++)t[o]=t[o]||[],t[o][0]=this._flatCoords[n+2*o],t[o][1]=this._flatCoords[n+2*o+1];return i}var r=this._getCoordsFromItemModel(e);for(o=0;o<r.length;o++)t[o]=t[o]||[],t[o][0]=r[o][0],t[o][1]=r[o][1];return r.length},_processFlatCoordsArray:function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"===typeof e[0]){for(var n=e.length,i=new h(n),o=new f(n),r=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];i[a++]=r+t,i[a++]=u;for(var c=0;c<u;c++){var d=e[l++],p=e[l++];o[r++]=d,o[r++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:o,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},getInitialData:function(e,t){var n=new r(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,o){if(e instanceof Array)return NaN;n.hasItemOption=!0;var r=e.value;return null!=r?r instanceof Array?r[o]:r:void 0})),n},formatTooltip:function(e){var t=this.getData(),n=t.getItemModel(e),i=n.get("name");if(i)return i;var o=n.get("fromName"),r=n.get("toName"),a=[];return null!=o&&a.push(o),null!=r&&a.push(r),d(a.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),v=g;e.exports=v},68192:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(70492)),r=n(47145),a=n(99895),s=n(77159),l=n(30146),u=n(69121),c=n(34148),d=n(43850),h=n(22963),f=h.createClipPath,p=o.extendChartView({type:"lines",init:function(){},render:function(e,t,n){var i=e.getData(),o=this._updateLineDraw(i,e),r=e.get("zlevel"),a=e.get("effect.trailLength"),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a&&(l||s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),o.updateData(i);var u=e.get("clip",!0)&&f(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},incrementalPrepareRender:function(e,t,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var r=d.reset(e);r.progress&&r.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(e,t){var n=this._lineDraw,i=this._showEffect(t),o=!!t.get("polyline"),d=t.pipelineContext,h=d.large;return n&&i===this._hasEffet&&o===this._isPolyline&&h===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=h?new c:new r(o?i?u:l:i?a:s),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=h,this.group.removeAll()),this.group.add(n.group),n},_showEffect:function(e){return!!e.get("effect.show")},_clearLayer:function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});e.exports=p},43850:function(e,t,n){var i=n(95682),o={seriesType:"lines",plan:i(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),i=e.pipelineContext.large;function o(o,r){var a=[];if(i){var s,l=o.end-o.start;if(n){for(var u=0,c=o.start;c<o.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var d=0,h=[];for(c=o.start;c<o.end;c++){var f=e.getLineCoords(c,a);n&&(s[d++]=f);for(var p=0;p<f;p++)h=t.dataToPoint(a[p],!1,h),s[d++]=h[0],s[d++]=h[1]}r.setLayout("linesPoints",s)}else for(c=o.start;c<o.end;c++){var g=r.getItemModel(c),v=(f=e.getLineCoords(c,a),[]);if(n)for(var m=0;m<f;m++)v.push(t.dataToPoint(a[m]));else{v[0]=t.dataToPoint(a[0]),v[1]=t.dataToPoint(a[1]);var y=g.get("lineStyle.curveness");+y&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*y,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*y])}r.setItemLayout(c,v)}}return{progress:o}}};e.exports=o},62503:function(e){function t(e){return e instanceof Array||(e=[e,e]),e}var n="lineStyle.opacity".split("."),i={seriesType:"lines",reset:function(e,i,o){var r=t(e.get("symbol")),a=t(e.get("symbolSize")),s=e.getData();function l(e,i){var o=e.getItemModel(i),r=t(o.getShallow("symbol",!0)),a=t(o.getShallow("symbolSize",!0)),s=o.get(n);r[0]&&e.setItemVisual(i,"fromSymbol",r[0]),r[1]&&e.setItemVisual(i,"toSymbol",r[1]),a[0]&&e.setItemVisual(i,"fromSymbolSize",a[0]),a[1]&&e.setItemVisual(i,"toSymbolSize",a[1]),e.setItemVisual(i,"opacity",s)}return s.setVisual("fromSymbol",r&&r[0]),s.setVisual("toSymbol",r&&r[1]),s.setVisual("fromSymbolSize",a&&a[0]),s.setVisual("toSymbolSize",a&&a[1]),s.setVisual("opacity",e.get(n)),{dataEach:s.hasItemOption?l:null}}};e.exports=i},10064:function(e,t,n){var i=n(70492);n(42980),n(5249),n(28401),n(18958);var o=n(34804),r=n(80685),a=n(31293),s=n(87949),l=n(75324);i.registerLayout(o),i.registerVisual(r),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,a),i.registerPreprocessor(s),l("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},42980:function(e,t,n){var i=n(33051),o=n(23263),r=n(93321),a=n(78988),s=a.encodeHTML,l=a.addCommas,u=n(1501),c=n(68540),d=c.retrieveRawAttr,h=n(11194),f=n(61772),p=f.makeSeriesEncodeForNameBased,g=r.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=o(this,{coordDimensions:["value"],encodeDefaulter:i.curry(p,this)}),n=t.mapDimension("value"),r=i.createHashMap(),a=[],s=[],l=0,u=t.count();l<u;l++){var c=t.getName(l);r.set(c,!0),a.push({name:c,value:t.get(n,l),selected:d(t,l,"selected")})}var f=h.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return i.each(f.regions,(function(e){var t=e.name;r.get(t)||(a.push({name:t}),s.push(t))})),this.updateSelectedMap(a),t.appendValues([],s),t},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e){for(var t=this.getData(),n=l(this.getRawValue(e)),i=t.getName(e),o=this.seriesGroup,r=[],a=0;a<o.length;a++){var u=o[a].originalData.indexOfName(i),c=t.mapDimension("value");isNaN(o[a].originalData.get(c,u))||r.push(s(o[a].name))}return r.join(", ")+"<br />"+s(i+" : "+n)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});i.mixin(g,u);var v=g;e.exports=v},5249:function(e,t,n){var i=n(70492),o=n(33051),r=n(51177),a=n(44121),s="__seriesMapHighDown",l="__seriesMapCallKey",u=i.extendChartView({type:"map",render:function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){r=this._mapDraw;r&&o.add(r.group)}else if(e.needsDrawMap){var r=this._mapDraw||new a(n,!0);o.add(r.group),r.draw(e,t,n,this,i),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,n){var i=e.originalData,a=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var u=i.getItemLayout(n);if(u&&u.point){var h=u.point,f=u.offset,p=new r.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:h[0]+9*f,cy:h[1],r:3},silent:!0,z2:8+(f?0:r.Z2_EMPHASIS_LIFT+1)});if(!f){var g=e.mainSeries.getData(),v=i.getName(n),m=g.indexOfName(v),y=i.getItemModel(n),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(m),w=o.retrieve2(e.getFormattedLabel(m,"normal"),v),S=o.retrieve2(e.getFormattedLabel(m,"emphasis"),w),M=b[s],I=Math.random();if(!M){M=b[s]={};var A=o.curry(c,!0),k=o.curry(c,!1);b.on("mouseover",A).on("mouseout",k).on("emphasis",A).on("normal",k)}b[l]=I,o.extend(M,{recordVersion:I,circle:p,labelModel:x,hoverLabelModel:_,emphasisText:S,normalText:w}),d(M,!1)}a.add(p)}}}))}});function c(e){var t=this[s];t&&t.recordVersion===this[l]&&d(t,e)}function d(e,t){var n=e.circle,i=e.labelModel,o=e.hoverLabelModel,a=e.emphasisText,s=e.normalText;t?(n.style.extendFrom(r.setTextStyle({},o,{text:o.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=r.Z2_EMPHASIS_LIFT):(r.setTextStyle(n.style,i,{text:i.get("show")?s:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}e.exports=u},87949:function(e,t,n){var i=n(33051);function o(e){var t=[];i.each(e.series,(function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,i.defaults(e,e.mapLocation))}))}e.exports=o},31293:function(e,t,n){var i=n(33051);function o(e,t){var n={};return i.each(e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var o="ec-"+e.getName(i);n[o]=n[o]||[],isNaN(t)||n[o].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,o){for(var r,a="ec-"+e[0].getName(o),s=0,l=1/0,u=-1/0,c=n[a].length,d=0;d<c;d++)l=Math.min(l,n[a][d]),u=Math.max(u,n[a][d]),s+=n[a][d];return r="min"===t?l:"max"===t?u:"average"===t?s/c:s,0===c?NaN:r}))}function r(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),i.each(t,(function(e,t){for(var n=o(i.map(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=0===r&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]}))}e.exports=r},34804:function(e,t,n){var i=n(33051);function o(e){var t={};e.eachSeriesByType("map",(function(n){var o=n.getMapType();if(!n.getHostGeoModel()&&!t[o]){var r={};i.each(n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var o=i.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=r[o]||0,l=n.dataToPoint(a.center);r[o]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var a=n.getData();a.each((function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!r[t],a.setItemLayout(e,n)})),t[o]=!0}}))}e.exports=o},80685:function(e){function t(e){e.eachSeriesByType("map",(function(e){var t=e.get("color"),n=e.getModel("itemStyle"),i=n.get("areaColor"),o=n.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:i,color:o})}))}e.exports=t},28571:function(e,t,n){var i=n(70492);n(75781),n(20710),n(6335);var o=n(75608);i.registerVisual(o)},20710:function(e,t,n){var i=n(33051),o=i.each,r=i.createHashMap,a=n(93321),s=n(40488),l=a.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var n=this.getSource();return u(n,this),s(n,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,o){e===t&&i.push(n.getRawIndex(o))})),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function u(e,t){if(!e.encodeDefine){var n=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(n){var i=e.encodeDefine=r();o(n.dimensions,(function(e){var t=c(e);i.set(e,t)}))}}}function c(e){return+e.replace("dim","")}e.exports=l},6335:function(e,t,n){var i=n(51177),o=n(75797),r=.3,a=o.extend({type:"parallel",init:function(){this._dataGroup=new i.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,n,o){var r=this._dataGroup,a=e.getData(),h=this._data,f=e.coordinateSystem,p=f.dimensions,g=c(e);function v(e){var t=u(a,r,e,p,f);d(t,a,e,g)}function m(t,n){var r=h.getItemGraphicEl(n),s=l(a,t,p,f);a.setItemGraphicEl(t,r);var u=o&&!1===o.animation?null:e;i.updateProps(r,{shape:{points:s}},u,t),d(r,a,t,g)}function y(e){var t=h.getItemGraphicEl(e);r.remove(t)}if(a.diff(h).add(v).update(m).remove(y).execute(),!this._initialized){this._initialized=!0;var x=s(f,e,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(x)}this._data=a},incrementalPrepareRender:function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,n){for(var i=t.getData(),o=t.coordinateSystem,r=o.dimensions,a=c(t),s=e.start;s<e.end;s++){var l=u(i,this._dataGroup,s,r,o);l.incremental=!0,d(l,i,s,a)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function s(e,t,n){var o=e.model,r=e.getRect(),a=new i.Rect({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),s="horizontal"===o.get("layout")?"width":"height";return a.setShape(s,0),i.initProps(a,{shape:{width:r.width,height:r.height}},t,n),a}function l(e,t,n,i){for(var o=[],r=0;r<n.length;r++){var a=n[r],s=e.get(e.mapDimension(a),t);h(s,i.getAxis(a).type)||o.push(i.dataToPoint(s,a))}return o}function u(e,t,n,o,r){var a=l(e,n,o,r),s=new i.Polyline({shape:{points:a},silent:!0,z2:10});return t.add(s),e.setItemGraphicEl(n,s),s}function c(e){var t=e.get("smooth",!0);return!0===t&&(t=r),{lineStyle:e.getModel("lineStyle").getLineStyle(),smooth:null!=t?t:r}}function d(e,t,n,i){var o=i.lineStyle;if(t.hasItemOption){var r=t.getItemModel(n).getModel("lineStyle");o=r.getLineStyle()}e.useStyle(o);var a=e.style;a.fill=null,a.stroke=t.getItemVisual(n,"color"),a.opacity=t.getItemVisual(n,"opacity"),i.smooth&&(e.shape.smooth=i.smooth)}function h(e,t){return"category"===t?null==e:null==e||isNaN(e)}var f=a;e.exports=f},75608:function(e){var t=["lineStyle","normal","opacity"],n={seriesType:"parallel",reset:function(e,n,i){var o=e.getModel("itemStyle"),r=e.getModel("lineStyle"),a=n.get("color"),s=r.get("color")||o.get("color")||a[e.seriesIndex%a.length],l=e.get("inactiveOpacity"),u=e.get("activeOpacity"),c=e.getModel("lineStyle").getLineStyle(),d=e.coordinateSystem,h=e.getData(),f={normal:c.opacity,active:u,inactive:l};function p(e,n){d.eachActiveState(n,(function(e,i){var o=f[e];if("normal"===e&&n.hasItemOption){var r=n.getItemModel(i).get(t,!0);null!=r&&(o=r)}n.setItemVisual(i,"opacity",o)}),e.start,e.end)}return h.setVisual("color",s),{progress:p}}};e.exports=n},59314:function(e,t,n){var i=n(70492),o=n(33051);n(77532),n(77346),n(25874);var r=n(79093),a=r.layout,s=n(34586);n(84617),i.registerLayout(o.curry(a,"pictorialBar")),i.registerVisual(s("pictorialBar","roundRect"))},94859:function(e,t,n){var i=n(70492),o=n(33051);n(52702),n(42471);var r=n(75324),a=n(69274),s=n(63798),l=n(22528);r("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisual(a("pie")),i.registerLayout(o.curry(s,"pie")),i.registerProcessor(l("pie"))},52702:function(e,t,n){var i=n(70492),o=n(23263),r=n(33051),a=n(32234),s=n(85669),l=s.getPercentWithPrecision,u=n(1501),c=n(68540),d=c.retrieveRawAttr,h=n(61772),f=h.makeSeriesEncodeForNameBased,p=n(72019),g=i.extendSeriesModel({type:"series.pie",init:function(e){g.superApply(this,"init",arguments),this.legendVisualProvider=new p(r.bind(this.getData,this),r.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){g.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,t){return o(this,{coordDimensions:["value"],encodeDefaulter:r.curry(f,this)})},_createSelectableList:function(){for(var e=this.getRawData(),t=e.mapDimension("value"),n=[],i=0,o=e.count();i<o;i++)n.push({name:e.getName(i),value:e.get(t,i),selected:d(e,i,"selected")});return n},getDataParams:function(e){var t=this.getData(),n=g.superCall(this,"getDataParams",e),i=[];return t.each(t.mapDimension("value"),(function(e){i.push(e)})),n.percent=l(i,e,t.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(e){a.defaultEmphasis(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});r.mixin(g,u);var v=g;e.exports=v},42471:function(e,t,n){var i=n(33051),o=n(51177),r=n(75797);function a(e,t,n,i){var o=t.getData(),r=this.dataIndex,a=o.getName(r),l=t.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:e,name:a,seriesId:t.id}),o.each((function(e){s(o.getItemGraphicEl(e),o.getItemLayout(e),t.isSelected(o.getName(e)),l,n)}))}function s(e,t,n,i,o){var r=(t.startAngle+t.endAngle)/2,a=Math.cos(r),s=Math.sin(r),l=n?i:0,u=[a*l,s*l];o?e.animate().when(200,{position:u}).start("bounceOut"):e.attr("position",u)}function l(e,t){o.Group.call(this);var n=new o.Sector({z2:2}),i=new o.Polyline,r=new o.Text;this.add(n),this.add(i),this.add(r),this.updateData(e,t,!0)}var u=l.prototype;u.updateData=function(e,t,n){var r=this.childAt(0),a=this.childAt(1),l=this.childAt(2),u=e.hostModel,c=e.getItemModel(t),d=e.getItemLayout(t),h=i.extend({},d);h.label=null;var f=u.getShallow("animationTypeUpdate");if(n){r.setShape(h);var p=u.getShallow("animationType");"scale"===p?(r.shape.r=d.r0,o.initProps(r,{shape:{r:d.r}},u,t)):(r.shape.endAngle=d.startAngle,o.updateProps(r,{shape:{endAngle:d.endAngle}},u,t))}else"expansion"===f?r.setShape(h):o.updateProps(r,{shape:h},u,t);var g=e.getItemVisual(t,"color");r.useStyle(i.defaults({lineJoin:"bevel",fill:g},c.getModel("itemStyle").getItemStyle())),r.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var v=c.getShallow("cursor");v&&r.attr("cursor",v),s(this,e.getItemLayout(t),u.isSelected(e.getName(t)),u.get("selectedOffset"),u.get("animation"));var m=!n&&"transition"===f;this._updateLabel(e,t,m),this.highDownOnUpdate=u.get("silent")?null:function(e,t){var n=u.isAnimationEnabled()&&c.get("hoverAnimation");"emphasis"===t?(a.ignore=a.hoverIgnore,l.ignore=l.hoverIgnore,n&&(r.stopAnimation(!0),r.animateTo({shape:{r:d.r+u.get("hoverOffset")}},300,"elasticOut"))):(a.ignore=a.normalIgnore,l.ignore=l.normalIgnore,n&&(r.stopAnimation(!0),r.animateTo({shape:{r:d.r}},300,"elasticOut")))},o.setHoverStyle(this)},u._updateLabel=function(e,t,n){var i=this.childAt(1),r=this.childAt(2),a=e.hostModel,s=e.getItemModel(t),l=e.getItemLayout(t),u=l.label,c=e.getItemVisual(t,"color");if(!u||isNaN(u.x)||isNaN(u.y))r.ignore=r.normalIgnore=r.hoverIgnore=i.ignore=i.normalIgnore=i.hoverIgnore=!0;else{var d={points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]},h={x:u.x,y:u.y};n?(o.updateProps(i,{shape:d},a,t),o.updateProps(r,{style:h},a,t)):(i.attr({shape:d}),r.attr({style:h})),r.attr({rotation:u.rotation,origin:[u.x,u.y],z2:10});var f=s.getModel("label"),p=s.getModel("emphasis.label"),g=s.getModel("labelLine"),v=s.getModel("emphasis.labelLine");c=e.getItemVisual(t,"color");o.setLabelStyle(r.style,r.hoverStyle={},f,p,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:u.text,autoColor:c,useInsideStyle:!!u.inside},{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),r.ignore=r.normalIgnore=!f.get("show"),r.hoverIgnore=!p.get("show"),i.ignore=i.normalIgnore=!g.get("show"),i.hoverIgnore=!v.get("show"),i.setStyle({stroke:c,opacity:e.getItemVisual(t,"opacity")}),i.setStyle(g.getModel("lineStyle").getLineStyle()),i.hoverStyle=v.getModel("lineStyle").getLineStyle();var m=g.get("smooth");m&&!0===m&&(m=.4),i.setShape({smooth:m})}},i.inherits(l,o.Group);var c=r.extend({type:"pie",init:function(){var e=new o.Group;this._sectorGroup=e},render:function(e,t,n,o){if(!o||o.from!==this.uid){var r=e.getData(),s=this._data,u=this.group,c=t.get("animation"),d=!s,h=e.get("animationType"),f=e.get("animationTypeUpdate"),p=i.curry(a,this.uid,e,c,n),g=e.get("selectedMode");if(r.diff(s).add((function(e){var t=new l(r,e);d&&"scale"!==h&&t.eachChild((function(e){e.stopAnimation(!0)})),g&&t.on("click",p),r.setItemGraphicEl(e,t),u.add(t)})).update((function(e,t){var n=s.getItemGraphicEl(t);d||"transition"===f||n.eachChild((function(e){e.stopAnimation(!0)})),n.updateData(r,e),n.off("click"),g&&n.on("click",p),u.add(n),r.setItemGraphicEl(e,n)})).remove((function(e){var t=s.getItemGraphicEl(e);u.remove(t)})).execute(),c&&r.count()>0&&(d?"scale"!==h:"transition"!==f)){for(var v=r.getItemLayout(0),m=1;isNaN(v.startAngle)&&m<r.count();++m)v=r.getItemLayout(m);var y=Math.max(n.getWidth(),n.getHeight())/2,x=i.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(v.cx,v.cy,y,v.startAngle,v.clockwise,x,e,d))}else u.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(e,t,n,i,r,a,s,l){var u=new o.Sector({shape:{cx:e,cy:t,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}}),c=l?o.initProps:o.updateProps;return c(u,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},s,a),u},containPoint:function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,r=e[1]-i.cy,a=Math.sqrt(o*o+r*r);return a<=i.r&&a>=i.r0}}}),d=c;e.exports=d},17659:function(e,t,n){var i=n(80423),o=n(85669),r=o.parsePercent,a=Math.PI/180;function s(e,t,n,i,o,r,a,s,l,u){function c(t,n,i,o){for(var r=t;r<n;r++){if(e[r].y+i>l+a)break;if(e[r].y+=i,r>t&&r+1<n&&e[r+1].y>e[r].y+e[r].height)return void d(r,i/2)}d(n-1,i/2)}function d(t,n){for(var i=t;i>=0;i--){if(e[i].y-n<l)break;if(e[i].y-=n,i>0&&e[i].y>e[i-1].y+e[i-1].height)break}}function h(e,t,n,i,o,r){for(var a=t?Number.MAX_VALUE:0,s=0,l=e.length;s<l;s++)if("none"===e[s].labelAlignTo){var u=Math.abs(e[s].y-i),c=e[s].len,d=e[s].len2,h=u<o+c?Math.sqrt((o+c+d)*(o+c+d)-u*u):Math.abs(e[s].x-n);t&&h>=a&&(h=a-10),!t&&h<=a&&(h=a+10),e[s].x=n+h*r,a=h}}e.sort((function(e,t){return e.y-t.y}));for(var f,p=0,g=e.length,v=[],m=[],y=0;y<g;y++){if("outer"===e[y].position&&"labelLine"===e[y].labelAlignTo){var x=e[y].x-u;e[y].linePoints[1][0]+=x,e[y].x=u}f=e[y].y-p,f<0&&c(y,g,-f,o),p=e[y].y+e[y].height}a-p<0&&d(g-1,p-a);for(y=0;y<g;y++)e[y].y>=n?m.push(e[y]):v.push(e[y]);h(v,!1,t,n,i,o),h(m,!0,t,n,i,o)}function l(e,t,n,o,r,a,l,c){for(var d=[],h=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<e.length;g++)u(e[g])||(e[g].x<t?(f=Math.min(f,e[g].x),d.push(e[g])):(p=Math.max(p,e[g].x),h.push(e[g])));s(h,t,n,o,1,r,a,l,c,p),s(d,t,n,o,-1,r,a,l,c,f);for(g=0;g<e.length;g++){var v=e[g];if(!u(v)){var m=v.linePoints;if(m){var y,x="edge"===v.labelAlignTo,_=v.textRect.width;y=x?v.x<t?m[2][0]-v.labelDistance-l-v.labelMargin:l+r-v.labelMargin-m[2][0]-v.labelDistance:v.x<t?v.x-l-v.bleedMargin:l+r-v.x-v.bleedMargin,y<v.textRect.width&&(v.text=i.truncateText(v.text,y,v.font),"edge"===v.labelAlignTo&&(_=i.getWidth(v.text,v.font)));var b=m[1][0]-m[2][0];x?v.x<t?m[2][0]=l+v.labelMargin+_+v.labelDistance:m[2][0]=l+r-v.labelMargin-_-v.labelDistance:(v.x<t?m[2][0]=v.x+v.labelDistance:m[2][0]=v.x-v.labelDistance,m[1][0]=m[2][0]+b),m[1][1]=m[2][1]=v.y}}}}function u(e){return"center"===e.position}function c(e,t,n,o,s,u){var c,d,h=e.getData(),f=[],p=!1,g=(e.get("minShowLabelAngle")||0)*a;h.each((function(o){var a=h.getItemLayout(o),l=h.getItemModel(o),u=l.getModel("label"),v=u.get("position")||l.get("emphasis.label.position"),m=u.get("distanceToLabelLine"),y=u.get("alignTo"),x=r(u.get("margin"),n),_=u.get("bleedMargin"),b=u.getFont(),w=l.getModel("labelLine"),S=w.get("length");S=r(S,n);var M=w.get("length2");if(M=r(M,n),!(a.angle<g)){var I,A,k,P,C=(a.startAngle+a.endAngle)/2,E=Math.cos(C),T=Math.sin(C);c=a.cx,d=a.cy;var N,D=e.getFormattedLabel(o,"normal")||h.getName(o),O=i.getBoundingRect(D,b,P,"top"),L="inside"===v||"inner"===v;if("center"===v)I=a.cx,A=a.cy,P="center";else{var V=(L?(a.r+a.r0)/2*E:a.r*E)+c,R=(L?(a.r+a.r0)/2*T:a.r*T)+d;if(I=V+3*E,A=R+3*T,!L){var B=V+E*(S+t-a.r),z=R+T*(S+t-a.r),W=B+(E<0?-1:1)*M,F=z;I="edge"===y?E<0?s+x:s+n-x:W+(E<0?-m:m),A=F,k=[[V,R],[B,z],[W,F]]}P=L?"center":"edge"===y?E>0?"right":"left":E>0?"left":"right"}var U=u.get("rotate");N="number"===typeof U?U*(Math.PI/180):U?E<0?-C+Math.PI:-C:0,p=!!N,a.label={x:I,y:A,position:v,height:O.height,len:S,len2:M,linePoints:k,textAlign:P,verticalAlign:"middle",rotation:N,inside:L,labelDistance:m,labelAlignTo:y,labelMargin:x,bleedMargin:_,textRect:O,text:D,font:b},L||f.push(a.label)}})),!p&&e.get("avoidLabelOverlap")&&l(f,c,d,t,n,o,s,u)}e.exports=c},63798:function(e,t,n){var i=n(85669),o=i.parsePercent,r=i.linearMap,a=n(76172),s=n(17659),l=n(33051),u=2*Math.PI,c=Math.PI/180;function d(e,t){return a.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function h(e,t,n,i){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),a=d(e,n),h=e.get("center"),f=e.get("radius");l.isArray(f)||(f=[0,f]),l.isArray(h)||(h=[h,h]);var p=o(a.width,n.getWidth()),g=o(a.height,n.getHeight()),v=Math.min(p,g),m=o(h[0],p)+a.x,y=o(h[1],g)+a.y,x=o(f[0],v/2),_=o(f[1],v/2),b=-e.get("startAngle")*c,w=e.get("minAngle")*c,S=0;t.each(i,(function(e){!isNaN(e)&&S++}));var M=t.getSum(i),I=Math.PI/(M||S)*2,A=e.get("clockwise"),k=e.get("roseType"),P=e.get("stillShowZeroSum"),C=t.getDataExtent(i);C[0]=0;var E=u,T=0,N=b,D=A?1:-1;if(t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:A,cx:m,cy:y,r0:x,r:k?NaN:_,viewRect:a});else{i="area"!==k?0===M&&P?I:e*I:u/S,i<w?(i=w,E-=w):T+=e;var o=N+D*i;t.setItemLayout(n,{angle:i,startAngle:N,endAngle:o,clockwise:A,cx:m,cy:y,r0:x,r:k?r(e,C,[x,_]):_,viewRect:a}),N=o}})),E<u&&S)if(E<=.001){var O=u/S;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=O,i.startAngle=b+D*n*O,i.endAngle=b+D*(n+1)*O}}))}else I=E/T,N=b,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),o=i.angle===w?w:e*I;i.startAngle=N,i.endAngle=N+D*o,N+=D*o}}));s(e,_,a.width,a.height,a.x,a.y)}))}e.exports=h},48927:function(e,t,n){var i=n(70492);n(22881),n(57345),n(36158);var o=n(69274),r=n(34586),a=n(34263),s=n(22528),l=n(17144);i.registerVisual(o("radar")),i.registerVisual(r("radar","circle")),i.registerLayout(a),i.registerProcessor(s("radar")),i.registerPreprocessor(l)},57345:function(e,t,n){var i=n(93321),o=n(23263),r=n(33051),a=n(78988),s=a.encodeHTML,l=n(72019),u=i.extend({type:"series.radar",dependencies:["radar"],init:function(e){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(r.bind(this.getData,this),r.bind(this.getRawData,this))},getInitialData:function(e,t){return o(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e){var t=this.getData(),n=this.coordinateSystem,i=n.getIndicatorAxes(),o=this.getData().getName(e);return s(""===o?this.name:o)+"<br/>"+r.map(i,(function(n,i){var o=t.get(t.mapDimension(n.dim),e);return s(n.name+" : "+o)})).join("<br />")},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(r.map(n.dimensions,(function(e){return t.mapDimension(e)})),e,!0),o=0,a=i.length;o<a;o++)if(!isNaN(i[o])){var s=n.getIndicatorAxes();return n.coordToPoint(s[o].dataToCoord(i[o]),o)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),c=u;e.exports=c},36158:function(e,t,n){var i=n(70492),o=n(51177),r=n(33051),a=n(41525);function s(e){return r.isArray(e)||(e=[+e,+e]),e}var l=i.extendChartView({type:"radar",render:function(e,t,n){var i=e.coordinateSystem,l=this.group,u=e.getData(),c=this._data;function d(e,t){var n=e.getItemVisual(t,"symbol")||"circle",i=e.getItemVisual(t,"color");if("none"!==n){var o=s(e.getItemVisual(t,"symbolSize")),r=a.createSymbol(n,-1,-1,2,2,i);return r.attr({style:{strokeNoScale:!0},z2:100,scale:[o[0]/2,o[1]/2]}),r}}function h(t,n,i,r,a,s){i.removeAll();for(var l=0;l<n.length-1;l++){var u=d(r,a);u&&(u.__dimIdx=l,t[l]?(u.attr("position",t[l]),o[s?"initProps":"updateProps"](u,{position:n[l]},e,a)):u.attr("position",n[l]),i.add(u))}}function f(e){return r.map(e,(function(e){return[i.cx,i.cy]}))}u.diff(c).add((function(t){var n=u.getItemLayout(t);if(n){var i=new o.Polygon,r=new o.Polyline,a={shape:{points:n}};i.shape.points=f(n),r.shape.points=f(n),o.initProps(i,a,e,t),o.initProps(r,a,e,t);var s=new o.Group,l=new o.Group;s.add(r),s.add(i),s.add(l),h(r.shape.points,n,l,u,t,!0),u.setItemGraphicEl(t,s)}})).update((function(t,n){var i=c.getItemGraphicEl(n),r=i.childAt(0),a=i.childAt(1),s=i.childAt(2),l={shape:{points:u.getItemLayout(t)}};l.shape.points&&(h(r.shape.points,l.shape.points,s,u,t,!1),o.updateProps(r,l,e),o.updateProps(a,l,e),u.setItemGraphicEl(t,i))})).remove((function(e){l.remove(c.getItemGraphicEl(e))})).execute(),u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),i=e.childAt(0),a=e.childAt(1),s=e.childAt(2),c=u.getItemVisual(t,"color");l.add(e),i.useStyle(r.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),i.hoverStyle=n.getModel("emphasis.lineStyle").getLineStyle();var d=n.getModel("areaStyle"),h=n.getModel("emphasis.areaStyle"),f=d.isEmpty()&&d.parentModel.isEmpty(),p=h.isEmpty()&&h.parentModel.isEmpty();p=p&&f,a.ignore=f,a.useStyle(r.defaults(d.getAreaStyle(),{fill:c,opacity:.7})),a.hoverStyle=h.getAreaStyle();var g=n.getModel("itemStyle").getItemStyle(["color"]),v=n.getModel("emphasis.itemStyle").getItemStyle(),m=n.getModel("label"),y=n.getModel("emphasis.label");s.eachChild((function(e){e.setStyle(g),e.hoverStyle=r.clone(v);var n=u.get(u.dimensions[e.__dimIdx],t);(null==n||isNaN(n))&&(n=""),o.setLabelStyle(e.style,e.hoverStyle,m,y,{labelFetcher:u.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:n,autoColor:c,isRectText:!0})})),e.highDownOnUpdate=function(e,t){a.attr("ignore","emphasis"===t?p:f)},o.setHoverStyle(e)})),this._data=u},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});e.exports=l},17144:function(e,t,n){var i=n(33051);function o(e){var t=e.polar;if(t){i.isArray(t)||(t=[t]);var n=[];i.each(t,(function(t,o){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],i.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}i.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}e.exports=o},34263:function(e,t,n){var i=n(33051);function o(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],o=e.coordinateSystem;if(o){var s=o.getIndicatorAxes();i.each(s,(function(e,i){t.each(t.mapDimension(s[i].dim),(function(e,t){n[t]=n[t]||[];var s=o.dataToPoint(e,i);n[t][i]=r(s)?s:a(o)}))})),t.each((function(e){var s=i.find(n[e],(function(e){return r(e)}))||a(o);n[e].push(s.slice()),t.setItemLayout(e,n[e])}))}}))}function r(e){return!isNaN(e[0])&&!isNaN(e[1])}function a(e){return[e.cx,e.cy]}e.exports=o},90474:function(e,t,n){var i=n(70492);n(55341),n(42978),n(37655);var o=n(55776),r=n(66028);i.registerLayout(o),i.registerVisual(r)},55341:function(e,t,n){var i=n(93321),o=n(19638),r=n(78988),a=r.encodeHTML,s=n(4272),l=n(38175),u=(l.__DEV__,i.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(e,t){for(var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels,a=this.levelModels={},l=0;l<r.length;l++)null!=r[l].depth&&r[l].depth>=0&&(a[r[l].depth]=new s(r[l],this,t));if(i&&n){var u=o(i,n,this,!0,c);return u.data}function c(e,t){e.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var n=this.parentModel,i=n.getData().getItemLayout(t).depth,o=n.levelModels[i];return o||this.parentModel})),e})),t.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(t),o=i.node1.getLayout().depth,r=n.levelModels[o];return r||this.parentModel})),e}))}},setNodePosition:function(e,t){var n=this.option.data[e];n.localX=t[0],n.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,n){if("edge"===n){var i=this.getDataParams(e,n),o=i.data,r=o.source+" -- "+o.target;return i.value&&(r+=" : "+i.value),a(r)}if("node"===n){var s=this.getGraph().getNodeByIndex(e),l=s.getLayout().value,c=this.getDataParams(e,n).data.name;if(l)r=c+" : "+l;return a(r)}return u.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},getDataParams:function(e,t){var n=u.superCall(this,"getDataParams",e,t);if(null==n.value&&"node"===t){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),c=u;e.exports=c},42978:function(e,t,n){var i=n(51177),o=n(70492),r=n(33051),a=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],u=["emphasis","lineStyle","opacity"];function c(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function d(e,t,n){var i=e.getGraphicEl(),o=c(e,t);null!=n&&(null==o&&(o=1),o*=n),i.downplay&&i.downplay(),i.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",o)}))}function h(e,t){var n=c(e,t),i=e.getGraphicEl();i.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",n)})),i.highlight&&i.highlight()}var f=i.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),p=o.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,n){var o=this,r=e.getGraph(),a=this.group,s=e.layoutInfo,l=s.width,u=s.height,c=e.getData(),d=e.getData("edge"),h=e.get("orient");this._model=e,a.removeAll(),a.attr("position",[s.x,s.y]),r.eachEdge((function(t){var n=new f;n.dataIndex=t.dataIndex,n.seriesIndex=e.seriesIndex,n.dataType="edge";var o,r,s,c,p,g,v,m,y=t.getModel("lineStyle"),x=y.get("curveness"),_=t.node1.getLayout(),b=t.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=t.node2.getLayout(),I=t.node2.getModel(),A=I.get("localX"),k=I.get("localY"),P=t.getLayout();switch(n.shape.extent=Math.max(1,P.dy),n.shape.orient=h,"vertical"===h?(o=(null!=w?w*l:_.x)+P.sy,r=(null!=S?S*u:_.y)+_.dy,s=(null!=A?A*l:M.x)+P.ty,c=null!=k?k*u:M.y,p=o,g=r*(1-x)+c*x,v=s,m=r*x+c*(1-x)):(o=(null!=w?w*l:_.x)+_.dx,r=(null!=S?S*u:_.y)+P.sy,s=null!=A?A*l:M.x,c=(null!=k?k*u:M.y)+P.ty,p=o*(1-x)+s*x,g=r,v=o*x+s*(1-x),m=c),n.setShape({x1:o,y1:r,x2:s,y2:c,cpx1:p,cpy1:g,cpx2:v,cpy2:m}),n.setStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color");break;case"target":n.style.fill=t.node2.getVisual("color");break}i.setHoverStyle(n,t.getModel("emphasis.lineStyle").getItemStyle()),a.add(n),d.setItemGraphicEl(t.dataIndex,n)})),r.eachNode((function(t){var n=t.getLayout(),o=t.getModel(),r=o.get("localX"),s=o.get("localY"),d=o.getModel("label"),h=o.getModel("emphasis.label"),f=new i.Rect({shape:{x:null!=r?r*l:n.x,y:null!=s?s*u:n.y,width:n.dx,height:n.dy},style:o.getModel("itemStyle").getItemStyle()}),p=t.getModel("emphasis.itemStyle").getItemStyle();i.setLabelStyle(f.style,p,d,h,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),f.setStyle("fill",t.getVisual("color")),i.setHoverStyle(f,p),a.add(f),c.setItemGraphicEl(t.dataIndex,f),f.dataType="node"})),c.eachItemGraphicEl((function(t,i){var r=c.getItemModel(i);r.get("draggable")&&(t.drift=function(t,r){o._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=r,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(i),localX:this.shape.x/l,localY:this.shape.y/u})},t.ondragend=function(){o._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),r.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){o._focusAdjacencyDisabled||(o._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){o._focusAdjacencyDisabled||o._dispatchUnfocus(n)}))})),d.eachItemGraphicEl((function(t,i){var r=d.getItemModel(i);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),r.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){o._focusAdjacencyDisabled||(o._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){o._focusAdjacencyDisabled||o._dispatchUnfocus(n)}))})),!this._data&&e.get("animation")&&a.setClipPath(g(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,n,i){var o=e.getData(),c=o.graph,f=i.dataIndex,p=o.getItemModel(f),g=i.edgeDataIndex;if(null!=f||null!=g){var v=c.getNodeByIndex(f),m=c.getEdgeByIndex(g);if(c.eachNode((function(e){d(e,a,.1)})),c.eachEdge((function(e){d(e,l,.1)})),v){h(v,s);var y=p.get("focusNodeAdjacency");"outEdges"===y?r.each(v.outEdges,(function(e){e.dataIndex<0||(h(e,u),h(e.node2,s))})):"inEdges"===y?r.each(v.inEdges,(function(e){e.dataIndex<0||(h(e,u),h(e.node1,s))})):"allEdges"===y&&r.each(v.edges,(function(e){e.dataIndex<0||(h(e,u),e.node1!==v&&h(e.node1,s),e.node2!==v&&h(e.node2,s))}))}m&&(h(m,u),h(m.node1,s),h(m.node2,s))}},unfocusNodeAdjacency:function(e,t,n,i){var o=e.getGraph();o.eachNode((function(e){d(e,a)})),o.eachEdge((function(e){d(e,l)}))}});function g(e,t,n){var o=new i.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return i.initProps(o,{shape:{width:e.width+20}},t,n),o}e.exports=p},37655:function(e,t,n){var i=n(70492);n(35540),i.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},55776:function(e,t,n){var i=n(76172),o=n(33051),r=n(32234),a=r.groupData;function s(e,t,n){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=l(e,t);e.layoutInfo=r;var a=r.width,s=r.height,d=e.getGraph(),h=d.nodes,f=d.edges;c(h);var p=o.filter(h,(function(e){return 0===e.getLayout().value})),g=0!==p.length?0:e.get("layoutIterations"),v=e.get("orient"),m=e.get("nodeAlign");u(h,f,n,i,a,s,g,v,m)}))}function l(e,t){return i.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u(e,t,n,i,o,r,a,s,l){d(e,t,n,o,r,s,l),v(e,t,r,o,i,a,s),C(e,s)}function c(e){o.each(e,(function(e){var t=k(e.outEdges,A),n=k(e.inEdges,A),i=e.getValue()||0,o=Math.max(t,n,i);e.setLayout({value:o},!0)}))}function d(e,t,n,i,o,r,a){for(var s=[],l=[],u=[],c=[],d=0,h=0,p=0;p<t.length;p++)s[p]=1;for(p=0;p<e.length;p++)l[p]=e[p].inEdges.length,0===l[p]&&u.push(e[p]);var v=-1;while(u.length){for(var m=0;m<u.length;m++){var y=u[m],x=y.hostGraph.data.getRawDataItem(y.dataIndex),_=null!=x.depth&&x.depth>=0;_&&x.depth>v&&(v=x.depth),y.setLayout({depth:_?x.depth:d},!0),"vertical"===r?y.setLayout({dy:n},!0):y.setLayout({dx:n},!0);for(var b=0;b<y.outEdges.length;b++){var w=y.outEdges[b],S=t.indexOf(w);s[S]=0;var M=w.node2,I=e.indexOf(M);0===--l[I]&&c.indexOf(M)<0&&c.push(M)}}++d,u=c,c=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var A=v>d-1?v:d-1;a&&"left"!==a&&f(e,a,r,A);h="vertical"===r?(o-n)/A:(i-n)/A;g(e,h,r)}function h(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function f(e,t,n,i){if("right"===t){var r=[],a=e,s=0;while(a.length){for(var l=0;l<a.length;l++){var u=a[l];u.setLayout({skNodeHeight:s},!0);for(var c=0;c<u.inEdges.length;c++){var d=u.inEdges[c];r.indexOf(d.node1)<0&&r.push(d.node1)}}a=r,r=[],++s}o.each(e,(function(e){h(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&p(e,i)}function p(e,t){o.each(e,(function(e){h(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function g(e,t,n){o.each(e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}function v(e,t,n,i,o,r,a){var s=m(e,a);y(s,t,n,i,o,a),x(s,o,n,i,a);for(var l=1;r>0;r--)l*=.99,_(s,l,a),x(s,o,n,i,a),P(s,l,a),x(s,o,n,i,a)}function m(e,t){var n=[],i="vertical"===t?"y":"x",r=a(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),o.each(r.keys,(function(e){n.push(r.buckets.get(e))})),n}function y(e,t,n,i,r,a){var s=1/0;o.each(e,(function(e){var t=e.length,l=0;o.each(e,(function(e){l+=e.getLayout().value}));var u="vertical"===a?(i-(t-1)*r)/l:(n-(t-1)*r)/l;u<s&&(s=u)})),o.each(e,(function(e){o.each(e,(function(e,t){var n=e.getLayout().value*s;"vertical"===a?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),o.each(t,(function(e){var t=+e.getValue()*s;e.setLayout({dy:t},!0)}))}function x(e,t,n,i,r){var a="vertical"===r?"x":"y";o.each(e,(function(e){var o,s,l;e.sort((function(e,t){return e.getLayout()[a]-t.getLayout()[a]}));for(var u=0,c=e.length,d="vertical"===r?"dx":"dy",h=0;h<c;h++)s=e[h],l=u-s.getLayout()[a],l>0&&(o=s.getLayout()[a]+l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]+s.getLayout()[d]+t;var f="vertical"===r?i:n;if(l=u-t-f,l>0)for(o=s.getLayout()[a]-l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o,h=c-2;h>=0;--h)s=e[h],l=s.getLayout()[a]+s.getLayout()[d]+t-u,l>0&&(o=s.getLayout()[a]-l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]}))}function _(e,t,n){o.each(e.slice().reverse(),(function(e){o.each(e,(function(e){if(e.outEdges.length){var i=k(e.outEdges,b,n)/k(e.outEdges,A,n);if(isNaN(i)){var o=e.outEdges.length;i=o?k(e.outEdges,w,n)/o:0}if("vertical"===n){var r=e.getLayout().x+(i-I(e,n))*t;e.setLayout({x:r},!0)}else{var a=e.getLayout().y+(i-I(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function b(e,t){return I(e.node2,t)*e.getValue()}function w(e,t){return I(e.node2,t)}function S(e,t){return I(e.node1,t)*e.getValue()}function M(e,t){return I(e.node1,t)}function I(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function A(e){return e.getValue()}function k(e,t,n){var i=0,o=e.length,r=-1;while(++r<o){var a=+t.call(e,e[r],n);isNaN(a)||(i+=a)}return i}function P(e,t,n){o.each(e,(function(e){o.each(e,(function(e){if(e.inEdges.length){var i=k(e.inEdges,S,n)/k(e.inEdges,A,n);if(isNaN(i)){var o=e.inEdges.length;i=o?k(e.inEdges,M,n)/o:0}if("vertical"===n){var r=e.getLayout().x+(i-I(e,n))*t;e.setLayout({x:r},!0)}else{var a=e.getLayout().y+(i-I(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function C(e,t){var n="vertical"===t?"x":"y";o.each(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),o.each(e,(function(e){var t=0,n=0;o.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),o.each(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}e.exports=s},66028:function(e,t,n){var i=n(59937),o=n(33051);function r(e,t){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes;if(n.length){var r=1/0,a=-1/0;o.each(n,(function(e){var t=e.getLayout().value;t<r&&(r=t),t>a&&(a=t)})),o.each(n,(function(t){var n=new i({type:"color",mappingMethod:"linear",dataExtent:[r,a],visual:e.get("color")}),o=n.mapValueToVisual(t.getLayout().value),s=t.getModel().get("itemStyle.color");null!=s?t.setVisual("color",s):t.setVisual("color",o)}))}}))}e.exports=r},42213:function(e,t,n){var i=n(70492);n(517),n(79002);var o=n(34586),r=n(21149);n(84617),i.registerVisual(o("scatter","circle")),i.registerLayout(r("scatter"))},517:function(e,t,n){var i=n(40488),o=n(93321),r=o.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});e.exports=r},79002:function(e,t,n){var i=n(70492),o=n(68162),r=n(48066),a=n(21149);i.extendChartView({type:"scatter",render:function(e,t,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},incrementalPrepareRender:function(e,t,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=a().reset(e);o.progress&&o.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_getClipShape:function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},_updateSymbolDraw:function(e,t){var n=this._symbolDraw,i=t.pipelineContext,a=i.large;return n&&a===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=a?new r:new o,this._isLargeDraw=a,this.group.removeAll()),this.group.add(n.group),n},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},13594:function(e,t,n){var i=n(70492),o=n(33051);n(12906),n(25787),n(74026);var r=n(69274),a=n(23509),s=n(22528);i.registerVisual(o.curry(r,"sunburst")),i.registerLayout(o.curry(a,"sunburst")),i.registerProcessor(o.curry(s,"sunburst"))},54313:function(e,t,n){var i=n(33051),o=n(51177),r={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},a=2,s=4;function l(e,t,n){o.Group.call(this);var i=new o.Sector({z2:a});i.seriesIndex=t.seriesIndex;var r=new o.Text({z2:s,silent:e.getModel("label").get("silent")});function l(){r.ignore=r.hoverIgnore}function u(){r.ignore=r.normalIgnore}this.add(i),this.add(r),this.updateData(!0,e,"normal",t,n),this.on("emphasis",l).on("normal",u).on("mouseover",l).on("mouseout",u)}var u=l.prototype;u.updateData=function(e,t,n,r,a){this.node=t,t.piece=this,r=r||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=t.dataIndex;var l=t.getModel(),u=t.getLayout(),c=i.extend({},u);c.label=null;var h=d(t,r,a);p(t,r,h);var f,g=l.getModel("itemStyle").getItemStyle();if("normal"===n)f=g;else{var v=l.getModel(n+".itemStyle").getItemStyle();f=i.merge(v,g)}f=i.defaults({lineJoin:"bevel",fill:f.fill||h},f),e?(s.setShape(c),s.shape.r=u.r0,o.updateProps(s,{shape:{r:u.r}},r,t.dataIndex),s.useStyle(f)):"object"===typeof f.fill&&f.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(o.updateProps(s,{shape:c},r),s.useStyle(f)):o.updateProps(s,{shape:c,style:f},r),this._updateLabel(r,h,n);var m=l.getShallow("cursor");if(m&&s.attr("cursor",m),e){var y=r.getShallow("highlightPolicy");this._initEvents(s,t,r,y)}this._seriesModel=r||this._seriesModel,this._ecModel=a||this._ecModel,o.setHoverStyle(this)},u.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode((function(n){n.piece&&(t.node===n?n.piece.updateData(!1,n,"emphasis"):f(n,t.node,e)?n.piece.childAt(0).trigger("highlight"):e!==r.NONE&&n.piece.childAt(0).trigger("downplay"))}))},u.onNormal=function(){this.node.hostTree.root.eachNode((function(e){e.piece&&e.piece.updateData(!1,e,"normal")}))},u.onHighlight=function(){this.updateData(!1,this.node,"highlight")},u.onDownplay=function(){this.updateData(!1,this.node,"downplay")},u._updateLabel=function(e,t,n){var r=this.node.getModel(),a=r.getModel("label"),s="normal"===n||"emphasis"===n?a:r.getModel(n+".label"),l=r.getModel("emphasis.label"),u=i.retrieve(e.getFormattedLabel(this.node.dataIndex,n,null,null,"label"),this.node.name);!1===I("show")&&(u="");var c=this.node.getLayout(),d=s.get("minAngle");null==d&&(d=a.get("minAngle")),d=d/180*Math.PI;var h=c.endAngle-c.startAngle;null!=d&&Math.abs(h)<d&&(u="");var f=this.childAt(1);o.setLabelStyle(f.style,f.hoverStyle||{},a,l,{defaultText:s.getShallow("show")?u:null,autoColor:t,useInsideStyle:!0});var p,g=(c.startAngle+c.endAngle)/2,v=Math.cos(g),m=Math.sin(g),y=I("position"),x=I("distance")||0,_=I("align");"outside"===y?(p=c.r+x,_=g>Math.PI/2?"right":"left"):_&&"center"!==_?"left"===_?(p=c.r0+x,g>Math.PI/2&&(_="right")):"right"===_&&(p=c.r-x,g>Math.PI/2&&(_="left")):(p=(c.r+c.r0)/2,_="center"),f.attr("style",{text:u,textAlign:_,textVerticalAlign:I("verticalAlign")||"middle",opacity:I("opacity")});var b=p*v+c.cx,w=p*m+c.cy;f.attr("position",[b,w]);var S=I("rotate"),M=0;function I(e){var t=s.get(e);return null==t?a.get(e):t}"radial"===S?(M=-g,M<-Math.PI/2&&(M+=Math.PI)):"tangential"===S?(M=Math.PI/2-g,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):"number"===typeof S&&(M=S*Math.PI/180),f.attr("rotation",M)},u._initEvents=function(e,t,n,i){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var o=this,r=function(){o.onEmphasis(i)},a=function(){o.onNormal()},s=function(){o.onDownplay()},l=function(){o.onHighlight()};n.isAnimationEnabled()&&e.on("mouseover",r).on("mouseout",a).on("emphasis",r).on("normal",a).on("downplay",s).on("highlight",l)},i.inherits(l,o.Group);var c=l;function d(e,t,n){var i=e.getVisual("color"),o=e.getVisual("visualMeta");o&&0!==o.length||(i=null);var r=e.getModel("itemStyle").get("color");if(r)return r;if(i)return i;if(0===e.depth)return n.option.color[0];var a=n.option.color.length;return r=n.option.color[h(e)%a],r}function h(e){var t=e;while(t.depth>1)t=t.parentNode;var n=e.getAncestors()[0];return i.indexOf(n.children,t)}function f(e,t,n){return n!==r.NONE&&(n===r.SELF?e===t:n===r.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t))}function p(e,t,n){var i=t.getData();i.setItemVisual(e.dataIndex,"color",n)}e.exports=c},12906:function(e,t,n){var i=n(33051),o=n(93321),r=n(9327),a=n(68833),s=a.wrapTreePathInfo,l=o.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var n={name:e.name,children:e.data};u(n);var i=e.levels||[],o={};return o.levels=i,r.createTree(n,this,o).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=o.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=s(n,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function u(e){var t=0;i.each(e.children,(function(e){u(e);var n=e.value;i.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;i.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),i.isArray(e.value)?e.value[0]=n:e.value=n}e.exports=l},25787:function(e,t,n){var i=n(33051),o=n(75797),r=n(54313),a=n(4130),s=n(78988),l=s.windowOpen,u="sunburstRootToNode",c=o.extend({type:"sunburst",init:function(){},render:function(e,t,n,o){var s=this;this.seriesModel=e,this.api=n,this.ecModel=t;var l=e.getData(),u=l.tree.root,c=e.getViewRoot(),d=this.group,h=e.get("renderLabelForZeroData"),f=[];c.eachNode((function(e){f.push(e)}));var p=this._oldChildren||[];if(m(f,p),_(u,c),o&&o.highlight&&o.highlight.piece){var g=e.getShallow("highlightPolicy");o.highlight.piece.onEmphasis(g)}else if(o&&o.unhighlight){var v=this.virtualPiece;!v&&u.children.length&&(v=u.children[0].piece),v&&v.onNormal()}function m(e,t){function n(e){return e.getId()}function o(n,i){var o=null==n?null:e[n],r=null==i?null:t[i];y(o,r)}0===e.length&&0===t.length||new a(t,e,n,n).add(o).update(o).remove(i.curry(o,null)).execute()}function y(n,i){if(h||!n||n.getValue()||(n=null),n!==u&&i!==u)if(i&&i.piece)n?(i.piece.updateData(!1,n,"normal",e,t),l.setItemGraphicEl(n.dataIndex,i.piece)):x(i);else if(n){var o=new r(n,e,t);d.add(o),l.setItemGraphicEl(n.dataIndex,o)}}function x(e){e&&e.piece&&(d.remove(e.piece),e.piece=null)}function _(n,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,n,"normal",e,t):(s.virtualPiece=new r(n,e,t),d.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var o=function(e){s._rootToNode(i.parentNode)};i.piece._onclickEvent=o,s.virtualPiece.on("click",o)}else s.virtualPiece&&(d.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=f},dispose:function(){},_initEvents:function(){var e=this,t=function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===t.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)e._rootToNode(i);else if("link"===o){var r=i.getModel(),a=r.get("link");if(a){var s=r.get("target",!0)||"_blank";l(a,s)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:u,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,r=e[1]-i.cy,a=Math.sqrt(o*o+r*r);return a<=i.r&&a>=i.r0}}}),d=c;e.exports=d},74026:function(e,t,n){var i=n(70492),o=n(68833),r="sunburstRootToNode";i.registerAction({type:r,update:"updateView"},(function(e,t){function n(t,n){var i=o.retrieveTargetInfo(e,[r],t);if(i){var a=t.getViewRoot();a&&(e.direction=o.aboveViewRoot(a,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}));var a="sunburstHighlight";i.registerAction({type:a,update:"updateView"},(function(e,t){function n(t,n){var i=o.retrieveTargetInfo(e,[a],t);i&&(e.highlight=i.node)}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}));var s="sunburstUnhighlight";i.registerAction({type:s,update:"updateView"},(function(e,t){function n(t,n){e.unhighlight=!0}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}))},23509:function(e,t,n){var i=n(85669),o=i.parsePercent,r=n(33051),a=Math.PI/180;function s(e,t,n,i){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");r.isArray(i)||(i=[0,i]),r.isArray(t)||(t=[t,t]);var s=n.getWidth(),u=n.getHeight(),c=Math.min(s,u),d=o(t[0],s),h=o(t[1],u),f=o(i[0],c/2),p=o(i[1],c/2),g=-e.get("startAngle")*a,v=e.get("minAngle")*a,m=e.getData().tree.root,y=e.getViewRoot(),x=y.depth,_=e.get("sort");null!=_&&l(y,_);var b=0;r.each(y.children,(function(e){!isNaN(e.getValue())&&b++}));var w=y.getValue(),S=Math.PI/(w||b)*2,M=y.depth>0,I=y.height-(M?-1:1),A=(p-f)/(I||1),k=e.get("clockwise"),P=e.get("stillShowZeroSum"),C=k?1:-1,E=function(e,t){if(e){var n=t;if(e!==m){var i=e.getValue(),a=0===w&&P?S:i*S;a<v&&(a=v),n=t+C*a;var s=e.depth-x-(M?-1:1),l=f+A*s,u=f+A*(s+1),p=e.getModel();null!=p.get("r0")&&(l=o(p.get("r0"),c/2)),null!=p.get("r")&&(u=o(p.get("r"),c/2)),e.setLayout({angle:a,startAngle:t,endAngle:n,clockwise:k,cx:d,cy:h,r0:l,r:u})}if(e.children&&e.children.length){var g=0;r.each(e.children,(function(e){g+=E(e,t+g)}))}return n-t}};if(M){var T=f,N=f+A,D=2*Math.PI;m.setLayout({angle:D,startAngle:g,endAngle:g+D,clockwise:k,cx:d,cy:h,r0:T,r:N})}E(y,g)}))}function l(e,t){var n=e.children||[];e.children=u(n,t),n.length&&r.each(e.children,(function(e){l(e,t)}))}function u(e,t){if("function"===typeof t)return e.sort(t);var n="asc"===t;return e.sort((function(e,t){var i=(e.getValue()-t.getValue())*(n?1:-1);return 0===i?(e.dataIndex-t.dataIndex)*(n?-1:1):i}))}e.exports=s},90110:function(e,t,n){var i=n(70492);n(84066),n(16140),n(78244);var o=n(21330),r=n(9496),a=n(22528);i.registerLayout(o),i.registerVisual(r),i.registerProcessor(a("themeRiver"))},16140:function(e,t,n){var i=n(93321),o=n(55623),r=n(10381),a=r.getDimensionTypeByAxis,s=n(87587),l=n(33051),u=n(32234),c=u.groupData,d=n(78988),h=d.encodeHTML,f=n(72019),p=2,g=i.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){g.superApply(this,"init",arguments),this.legendVisualProvider=new f(l.bind(this.getData,this),l.bind(this.getRawData,this))},fixData:function(e){var t=e.length,n=c(e,(function(e){return e[2]})),i=[];n.buckets.each((function(e,t){i.push({name:t,dataList:e})}));for(var o=i.length,r=-1,a=-1,s=0;s<o;++s){var l=i[s].dataList.length;l>r&&(r=l,a=s)}for(var u=0;u<o;++u)if(u!==a)for(var d=i[u].name,h=0;h<r;++h){for(var f=i[a].dataList[h][0],p=i[u].dataList.length,g=-1,v=0;v<p;++v){var m=i[u].dataList[v][0];if(m===f){g=v;break}}-1===g&&(e[t]=[],e[t][0]=f,e[t][1]=0,e[t][2]=d,t++)}return e},getInitialData:function(e,t){for(var n=t.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],i=n.get("type"),r=l.filter(e.data,(function(e){return void 0!==e[2]})),u=this.fixData(r||[]),c=[],d=this.nameMap=l.createHashMap(),h=0,f=0;f<u.length;++f)c.push(u[f][p]),d.get(u[f][p])||(d.set(u[f][p],h),h++);var g=o(u,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:a(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),v=new s(g,this);return v.initData(u),v},getLayerSeries:function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var o=e.mapDimension("single"),r=c(n,(function(t){return e.get("name",t)})),a=[];return r.buckets.each((function(t,n){t.sort((function(t,n){return e.get(o,t)-e.get(o,n)})),a.push({name:n,indices:t})})),a},getAxisTooltipData:function(e,t,n){l.isArray(e)||(e=e?[e]:[]);for(var i,o=this.getData(),r=this.getLayerSeries(),a=[],s=r.length,u=0;u<s;++u){for(var c=Number.MAX_VALUE,d=-1,h=r[u].indices.length,f=0;f<h;++f){var p=o.get(e[0],r[u].indices[f]),g=Math.abs(p-t);g<=c&&(i=p,c=g,d=r[u].indices[f])}a.push(d)}return{dataIndices:a,nestestValue:i}},formatTooltip:function(e){var t=this.getData(),n=t.getName(e),i=t.get(t.mapDimension("value"),e);return(isNaN(i)||null==i)&&(i="-"),h(n+" : "+i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),v=g;e.exports=v},78244:function(e,t,n){var i=n(70492),o=n(30633),r=o.Polygon,a=n(51177),s=n(33051),l=s.bind,u=s.extend,c=n(4130),d=i.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(e,t,n){var i=e.getData(),o=this.group,s=e.getLayerSeries(),d=i.getLayout("layoutInfo"),f=d.rect,p=d.boundaryGap;function g(e){return e.name}o.attr("position",[0,f.y+p[0]]);var v=new c(this._layersSeries||[],s,g,g),m={};function y(t,n,l){var c=this._layers;if("remove"!==t){for(var d,f,p,g=[],v=[],y=s[n].indices,x=0;x<y.length;x++){var _=i.getItemLayout(y[x]),b=_.x,w=_.y0,S=_.y;g.push([b,w]),v.push([b,w+S]),d=i.getItemVisual(y[x],"color")}var M=i.getItemLayout(y[0]),I=i.getItemModel(y[x-1]),A=I.getModel("label"),k=A.get("margin");if("add"===t){var P=m[n]=new a.Group;f=new r({shape:{points:g,stackedOnPoints:v,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),p=new a.Text({style:{x:M.x-k,y:M.y0+M.y/2}}),P.add(f),P.add(p),o.add(P),f.setClipPath(h(f.getBoundingRect(),e,(function(){f.removeClipPath()})))}else{P=c[l];f=P.childAt(0),p=P.childAt(1),o.add(P),m[n]=P,a.updateProps(f,{shape:{points:g,stackedOnPoints:v}},e),a.updateProps(p,{style:{x:M.x-k,y:M.y0+M.y/2}},e)}var C=I.getModel("emphasis.itemStyle"),E=I.getModel("itemStyle");a.setTextStyle(p.style,A,{text:A.get("show")?e.getFormattedLabel(y[x-1],"normal")||i.getName(y[x-1]):null,textVerticalAlign:"middle"}),f.setStyle(u({fill:d},E.getItemStyle(["color"]))),a.setHoverStyle(f,C.getItemStyle())}else o.remove(c[n])}v.add(l(y,this,"add")).update(l(y,this,"update")).remove(l(y,this,"remove")).execute(),this._layersSeries=s,this._layers=m},dispose:function(){}});function h(e,t,n){var i=new a.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return a.initProps(i,{shape:{width:e.width+20,height:e.height+20}},t,n),i}e.exports=d},21330:function(e,t,n){var i=n(33051),o=n(85669);function r(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var s=e.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,"horizontal"===l.orient){s[0]=o.parsePercent(s[0],r.height),s[1]=o.parsePercent(s[1],r.height);var u=r.height-s[0]-s[1];a(t,e,u)}else{s[0]=o.parsePercent(s[0],r.width),s[1]=o.parsePercent(s[1],r.width);var c=r.width-s[0]-s[1];a(t,e,c)}t.setLayout("layoutInfo",i)}))}function a(e,t,n){if(e.count())for(var o,r=t.coordinateSystem,a=t.getLayerSeries(),l=e.mapDimension("single"),u=e.mapDimension("value"),c=i.map(a,(function(t){return i.map(t.indices,(function(t){var n=r.dataToPoint(e.get(l,t));return n[1]=e.get(u,t),n}))})),d=s(c),h=d.y0,f=n/d.max,p=a.length,g=a[0].indices.length,v=0;v<g;++v){o=h[v]*f,e.setItemLayout(a[0].indices[v],{layerIndex:0,x:c[0][v][0],y0:o,y:c[0][v][1]*f});for(var m=1;m<p;++m)o+=c[m-1][v][1]*f,e.setItemLayout(a[m].indices[v],{layerIndex:m,x:c[m][v][0],y0:o,y:c[m][v][1]*f})}}function s(e){for(var t=e.length,n=e[0].length,i=[],o=[],r=0,a={},s=0;s<n;++s){for(var l=0,u=0;l<t;++l)u+=e[l][s][1];u>r&&(r=u),i.push(u)}for(var c=0;c<n;++c)o[c]=(r-i[c])/2;r=0;for(var d=0;d<n;++d){var h=i[d]+o[d];h>r&&(r=h)}return a.y0=o,a.max=r,a}e.exports=r},9496:function(e,t,n){var i=n(33051),o=i.createHashMap;function r(e){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.getRawData(),i=e.get("color"),r=o();t.each((function(e){r.set(t.getRawIndex(e),e)})),n.each((function(o){var a=n.getName(o),s=i[(e.nameMap.get(a)-1)%i.length];n.setItemVisual(o,"color",s);var l=r.get(o);null!=l&&t.setItemVisual(l,"color",s)}))}))}e.exports=r},81052:function(e,t,n){var i=n(70492);n(97908),n(37732),n(1969);var o=n(34586),r=n(92961);i.registerVisual(o("tree","circle")),i.registerLayout(r)},97908:function(e,t,n){var i=n(93321),o=n(9327),r=n(78988),a=r.encodeHTML,s=n(4272),l=i.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new s(n,this,this.ecModel),r=o.createTree(t,this,{},a);function a(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n.children.length&&n.isExpand||(e.parentModel=i),e}))}var l=0;r.eachNode("preorder",(function(e){e.depth>l&&(l=e.depth)}));var u=e.expandAndCollapse,c=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=c})),r.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){var t=this.getData().tree,n=t.root.children[0],i=t.getNodeByDataIndex(e),o=i.getValue(),r=i.name;while(i&&i!==n)r=i.parentNode.name+"."+r,i=i.parentNode;return a(r+(isNaN(o)||null==o?"":" : "+o))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});e.exports=l},37732:function(e,t,n){var i=n(33051),o=n(51177),r=n(66351),a=n(69387),s=a.radialCoordinate,l=n(70492),u=n(3726),c=n(23845),d=n(31194),h=n(9176),f=n(61485),p=f.onIrrelevantElement,g=n(38175),v=(g.__DEV__,n(85669)),m=v.parsePercent,y=o.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.childPoints,i=n.length,o=t.parentPoint,r=n[0],a=n[i-1];if(1===i)return e.moveTo(o[0],o[1]),void e.lineTo(r[0],r[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=m(t.forkPosition,1),d=[];d[l]=o[l],d[u]=o[u]+(a[u]-o[u])*c,e.moveTo(o[0],o[1]),e.lineTo(d[0],d[1]),e.moveTo(r[0],r[1]),d[l]=r[l],e.lineTo(d[0],d[1]),d[l]=a[l],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var h=1;h<i-1;h++){var f=n[h];e.moveTo(f[0],f[1]),d[l]=f[l],e.lineTo(d[0],d[1])}}}),x=l.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new o.Group,this._controller=new h(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(e,t,n,i){var o=e.getData(),r=e.layoutInfo,a=this._mainGroup,s=e.get("layout");"radial"===s?a.attr("position",[r.x+r.width/2,r.y+r.height/2]):a.attr("position",[r.x,r.y]),this._updateViewCoordSys(e,r,s),this._updateController(e,t,n);var l=this._data,u={expandAndCollapse:e.get("expandAndCollapse"),layout:s,edgeShape:e.get("edgeShape"),edgeForkPosition:e.get("edgeForkPosition"),orient:e.getOrient(),curvature:e.get("lineStyle.curveness"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};o.diff(l).add((function(t){_(o,t)&&w(o,t,null,a,e,u)})).update((function(t,n){var i=l.getItemGraphicEl(n);_(o,t)?w(o,t,i,a,e,u):i&&M(l,n,i,a,e,u)})).remove((function(t){var n=l.getItemGraphicEl(t);n&&M(l,t,n,a,e,u)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===u.expandAndCollapse&&o.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=o},_updateViewCoordSys:function(e){var t=e.getData(),n=[];t.each((function(e){var i=t.getItemLayout(e);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])}));var i=[],o=[];u.fromPoints(n,i,o);var r=this._min,a=this._max;o[0]-i[0]===0&&(i[0]=r?r[0]:i[0]-1,o[0]=a?a[0]:o[0]+1),o[1]-i[1]===0&&(i[1]=r?r[1]:i[1]-1,o[1]=a?a[1]:o[1]+1);var s=e.coordinateSystem=new c;s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this.group.attr({position:s.position,scale:s.scale}),this._viewCoordSys=s,this._min=i,this._max=o},_updateController:function(e,t,n){var i=this._controller,o=this._controllerHost,r=this.group;i.setPointerChecker((function(t,i,o){var a=r.getBoundingRect();return a.applyTransform(r.transform),a.contain(i,o)&&!p(t,n,e)})),i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){d.updateViewOnPan(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}),this).on("zoom",(function(t){d.updateViewOnZoom(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(e)}),this)},_updateNodeAndLinkScale:function(e){var t=e.getData(),n=this._getNodeGlobalScale(e),i=[n,n];t.eachItemGraphicEl((function(e,t){e.attr("scale",i)}))},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scale,o=i&&i[0]||1,r=t.getZoom(),a=(r-1)*n+1;return a/o},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function _(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==e.getItemVisual(t,"symbol")}function b(e,t,n){return n.itemModel=t,n.itemStyle=t.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=t.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=t.getModel("lineStyle").getLineStyle(),n.labelModel=t.getModel("label"),n.hoverLabelModel=t.getModel("emphasis.label"),!1===e.isExpand&&0!==e.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function w(e,t,n,i,a,s){var l=!n,u=e.tree.getNodeByDataIndex(t),c=u.getModel(),d=(s=b(u,c,s),e.tree.root),h=u.parentNode===d?u:u.parentNode||u,f=e.getItemGraphicEl(h.dataIndex),p=h.getLayout(),g=f?{x:f.position[0],y:f.position[1],rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,v=u.getLayout();l?(n=new r(e,t,s),n.attr("position",[g.x,g.y])):n.updateData(e,t,s),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=v.rawX,n.__radialRawY=v.rawY,i.add(n),e.setItemGraphicEl(t,n),o.updateProps(n,{position:[v.x,v.y]},a);var m=n.getSymbolPath();if("radial"===s.layout){var y,x,_=d.children[0],w=_.getLayout(),M=_.children.length;if(v.x===w.x&&!0===u.isExpand){var I={};I.x=(_.children[0].getLayout().x+_.children[M-1].getLayout().x)/2,I.y=(_.children[0].getLayout().y+_.children[M-1].getLayout().y)/2,y=Math.atan2(I.y-w.y,I.x-w.x),y<0&&(y=2*Math.PI+y),x=I.x<w.x,x&&(y-=Math.PI)}else y=Math.atan2(v.y-w.y,v.x-w.x),y<0&&(y=2*Math.PI+y),0===u.children.length||0!==u.children.length&&!1===u.isExpand?(x=v.x<w.x,x&&(y-=Math.PI)):(x=v.x>w.x,x||(y-=Math.PI));var A=x?"left":"right",k=s.labelModel.get("rotate"),P=k*(Math.PI/180);m.setStyle({textPosition:s.labelModel.get("position")||A,textRotation:null==k?-y:P,textOrigin:"center",verticalAlign:"middle"})}S(a,u,d,n,g,p,v,i,s)}function S(e,t,n,r,a,s,l,u,c){var d=c.edgeShape,h=r.__edge;if("curve"===d)t.parentNode&&t.parentNode!==n&&(h||(h=r.__edge=new o.BezierCurve({shape:I(c,a,a),style:i.defaults({opacity:0,strokeNoScale:!0},c.lineStyle)})),o.updateProps(h,{shape:I(c,s,l),style:{opacity:1}},e));else if("polyline"===d&&"orthogonal"===c.layout&&t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var f=t.children,p=[],g=0;g<f.length;g++){var v=f[g].getLayout();p.push([v.x,v.y])}h||(h=r.__edge=new y({shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]],orient:c.orient,forkPosition:c.edgeForkPosition},style:i.defaults({opacity:0,strokeNoScale:!0},c.lineStyle)})),o.updateProps(h,{shape:{parentPoint:[l.x,l.y],childPoints:p},style:{opacity:1}},e)}u.add(h)}function M(e,t,n,i,r,a){var s,l=e.tree.getNodeByDataIndex(t),u=e.tree.root,c=l.getModel(),d=(a=b(l,c,a),l.parentNode===u?l:l.parentNode||l),h=a.edgeShape;while(s=d.getLayout(),null==s)d=d.parentNode===u?d:d.parentNode||d;o.updateProps(n,{position:[s.x+1,s.y+1]},r,(function(){i.remove(n),e.setItemGraphicEl(t,null)})),n.fadeOut(null,{keepLabel:!0});var f=e.getItemGraphicEl(d.dataIndex),p=f.__edge,g=n.__edge||(!1===d.isExpand||1===d.children.length?p:void 0);h=a.edgeShape;g&&("curve"===h?o.updateProps(g,{shape:I(a,s,s),style:{opacity:0}},r,(function(){i.remove(g)})):"polyline"===h&&"orthogonal"===a.layout&&o.updateProps(g,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,(function(){i.remove(g)})))}function I(e,t,n){var i,o,r,a,l,u,c,d,h=e.orient;if("radial"===e.layout){l=t.rawX,c=t.rawY,u=n.rawX,d=n.rawY;var f=s(l,c),p=s(l,c+(d-c)*e.curvature),g=s(u,d+(c-d)*e.curvature),v=s(u,d);return{x1:f.x,y1:f.y,x2:v.x,y2:v.y,cpx1:p.x,cpy1:p.y,cpx2:g.x,cpy2:g.y}}return l=t.x,c=t.y,u=n.x,d=n.y,"LR"!==h&&"RL"!==h||(i=l+(u-l)*e.curvature,o=c,r=u+(l-u)*e.curvature,a=d),"TB"!==h&&"BT"!==h||(i=l,o=c+(d-c)*e.curvature,r=u,a=d+(c-d)*e.curvature),{x1:l,y1:c,x2:u,y2:d,cpx1:i,cpy1:o,cpx2:r,cpy2:a}}e.exports=x},69387:function(e,t,n){var i=n(76172);function o(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var t,n,i=[e];while(t=i.pop())if(n=t.children,t.isExpand&&n.length)for(var o=n.length,r=o-1;r>=0;r--){var a=n[r];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(a)}}function r(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,o=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){c(e);var r=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(e.hierNode.prelim=o.hierNode.prelim+t(e,o),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else o&&(e.hierNode.prelim=o.hierNode.prelim+t(e,o));e.parentNode.hierNode.defaultAncestor=d(e,o,e.parentNode.hierNode.defaultAncestor||i[0],t)}function a(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function s(e){return arguments.length?e:v}function l(e,t){var n={};return e-=Math.PI/2,n.x=t*Math.cos(e),n.y=t*Math.sin(e),n}function u(e,t){return i.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e){var t=e.children,n=t.length,i=0,o=0;while(--n>=0){var r=t[n];r.hierNode.prelim+=i,r.hierNode.modifier+=i,o+=r.hierNode.change,i+=r.hierNode.shift+o}}function d(e,t,n,i){if(t){var o=e,r=e,a=r.parentNode.children[0],s=t,l=o.hierNode.modifier,u=r.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;while(s=h(s),r=f(r),s&&r){o=h(o),a=f(a),o.hierNode.ancestor=e;var v=s.hierNode.prelim+d-r.hierNode.prelim-u+i(s,r);v>0&&(g(p(s,e,n),e,v),u+=v,l+=v),d+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=o.hierNode.modifier,c+=a.hierNode.modifier}s&&!h(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=d-l),r&&!f(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-c,n=e)}return n}function h(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function f(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function p(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function g(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function v(e,t){return e.parentNode===t.parentNode?1:2}t.init=o,t.firstWalk=r,t.secondWalk=a,t.separation=s,t.radialCoordinate=l,t.getViewRect=u},55128:function(e,t){function n(e,t,n){var i,o=[e],r=[];while(i=o.pop())if(r.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)o.push(a[s])}while(i=r.pop())t(i,n)}function i(e,t){var n,i=[e];while(n=i.pop())if(t(n),n.isExpand){var o=n.children;if(o.length)for(var r=o.length-1;r>=0;r--)i.push(o[r])}}t.eachAfter=n,t.eachBefore=i},1969:function(e,t,n){var i=n(70492),o=n(60553),r=o.updateCenterAndZoom;i.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand}))})),i.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=t.coordinateSystem,i=r(n,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))},92961:function(e,t,n){var i=n(55128),o=i.eachAfter,r=i.eachBefore,a=n(69387),s=a.init,l=a.firstWalk,u=a.secondWalk,c=a.separation,d=a.radialCoordinate,h=a.getViewRect;function f(e,t){e.eachSeriesByType("tree",(function(e){p(e,t)}))}function p(e,t){var n=h(e,t);e.layoutInfo=n;var i=e.get("layout"),a=0,f=0,p=null;"radial"===i?(a=2*Math.PI,f=Math.min(n.height,n.width)/2,p=c((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(a=n.width,f=n.height,p=c());var g=e.getData().tree.root,v=g.children[0];if(v){s(g),o(v,l,p),g.hierNode.modifier=-v.hierNode.prelim,r(v,u);var m=v,y=v,x=v;r(v,(function(e){var t=e.getLayout().x;t<m.getLayout().x&&(m=e),t>y.getLayout().x&&(y=e),e.depth>x.depth&&(x=e)}));var _=m===y?1:p(m,y)/2,b=_-m.getLayout().x,w=0,S=0,M=0,I=0;if("radial"===i)w=a/(y.getLayout().x+_+b),S=f/(x.depth-1||1),r(v,(function(e){M=(e.getLayout().x+b)*w,I=(e.depth-1)*S;var t=d(M,I);e.setLayout({x:t.x,y:t.y,rawX:M,rawY:I},!0)}));else{var A=e.getOrient();"RL"===A||"LR"===A?(S=f/(y.getLayout().x+_+b),w=a/(x.depth-1||1),r(v,(function(e){I=(e.getLayout().x+b)*S,M="LR"===A?(e.depth-1)*w:a-(e.depth-1)*w,e.setLayout({x:M,y:I},!0)}))):"TB"!==A&&"BT"!==A||(w=a/(y.getLayout().x+_+b),S=f/(x.depth-1||1),r(v,(function(e){M=(e.getLayout().x+b)*w,I="TB"===A?(e.depth-1)*S:f-(e.depth-1)*S,e.setLayout({x:M,y:I},!0)})))}}}e.exports=f},17831:function(e,t,n){var i=n(70492);n(37670),n(45255),n(93663);var o=n(46188),r=n(29605);i.registerVisual(o),i.registerLayout(r)},2711:function(e,t,n){var i=n(51177),o=n(76172),r=n(33051),a=n(68833),s=a.wrapTreePathInfo,l=8,u=8,c=5;function d(e){this.group=new i.Group,e.add(this.group)}function h(e,t,n,i,o,r){var a=[[o?e:e-c,t],[e+n,t],[e+n,t+i],[o?e:e-c,t+i]];return!r&&a.splice(2,0,[e+n+c,t+i/2]),!o&&a.push([e,t+i/2]),a}function f(e,t,n){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&s(n,t)}}d.prototype={constructor:d,render:function(e,t,n,i){var r=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),r.get("show")&&n){var s=r.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,s,l,i),o.positionElement(a,u.pos,u.box)}},_prepare:function(e,t,n){for(var i=e;i;i=i.parentNode){var o=i.getModel().get("name"),r=n.getTextRect(o),a=Math.max(r.width+2*l,t.emptyItemWidth);t.totalWidth+=a+u,t.renderList.push({node:i,text:o,width:a})}},_renderContent:function(e,t,n,a,s){for(var l=0,c=t.emptyItemWidth,d=e.get("breadcrumb.height"),p=o.getAvailableSize(t.pos,t.box),g=t.totalWidth,v=t.renderList,m=v.length-1;m>=0;m--){var y=v[m],x=y.node,_=y.width,b=y.text;g>p.width&&(g-=_-c,_=c,b=null);var w=new i.Polygon({shape:{points:h(l,0,_,d,m===v.length-1,0===m)},style:r.defaults(n.getItemStyle(),{lineJoin:"bevel",text:b,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:r.curry(s,x)});this.group.add(w),f(w,e,x),l+=_+u}},remove:function(){this.group.removeAll()}};var p=d;e.exports=p},37670:function(e,t,n){var i=n(33051),o=n(93321),r=n(9327),a=n(4272),s=n(78988),l=s.encodeHTML,u=s.addCommas,c=n(68833),d=c.wrapTreePathInfo,h=o.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var n={name:e.name,children:e.data};f(n);var o=e.levels||[];o=e.levels=p(o,t);var s=i.map(o||[],(function(e){return new a(e,this,t)}),this),l=r.createTree(n,this,null,u);function u(e){e.wrapMethod("getItemModel",(function(e,t){var n=l.getNodeByDataIndex(t),i=s[n.depth];return i&&(e.parentModel=i),e}))}return l.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),n=this.getRawValue(e),o=i.isArray(n)?u(n[0]):u(n),r=t.getName(e);return l(r+": "+o)},getDataParams:function(e){var t=o.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=d(n,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},i.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=i.createHashMap(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function f(e){var t=0;i.each(e.children,(function(e){f(e);var n=e.value;i.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;i.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),i.isArray(e.value)?e.value[0]=n:e.value=n}function p(e,t){var n=t.get("color");if(n){var o;if(e=e||[],i.each(e,(function(e){var t=new a(e),n=t.get("color");(t.get("itemStyle.color")||n&&"none"!==n)&&(o=!0)})),!o){var r=e[0]||(e[0]={});r.color=n.slice()}return e}}e.exports=h},45255:function(e,t,n){var i=n(70492),o=n(33051),r=n(51177),a=n(4130),s=n(68833),l=n(2711),u=n(9176),c=n(60479),d=n(32892),h=n(34584),f=n(59066),p=n(78988),g=p.windowOpen,v=o.bind,m=r.Group,y=r.Rect,x=o.each,_=3,b=["label"],w=["emphasis","label"],S=["upperLabel"],M=["emphasis","upperLabel"],I=10,A=1,k=2,P=f([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C=function(e){var t=P(e);return t.stroke=t.fill=t.lineWidth=null,t},E=i.extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=T(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,n,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(o.indexOf(r,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var a=["treemapZoomToNode","treemapRootToNode"],l=s.retrieveTargetInfo(i,a,e),u=i&&i.type,c=e.layoutInfo,d=!this._oldTree,h=this._storage,f="treemapRootToNode"===u&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(c),g=this._doRender(p,e,f);d||u&&"treemapZoomToNode"!==u&&"treemapRootToNode"!==u?g.renderFinally():this._doAnimation(p,g,e,f),this._resetController(n),this._renderBreadcrumb(e,n,l)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new m,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,n){var i=t.getData().tree,r=this._oldTree,s=T(),l=T(),u=this._storage,c=[],d=o.curry(N,t,l,u,n,s,c);f(i.root?[i.root]:[],r&&r.root?[r.root]:[],e,i===r||!r,0);var h=p(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:h,renderFinally:g};function f(e,t,n,i,r){function s(e){return e.getId()}function l(o,a){var s=null!=o?e[o]:null,l=null!=a?t[a]:null,u=d(s,l,n,r);u&&f(s&&s.viewChildren||[],l&&l.viewChildren||[],u,i,r+1)}i?(t=e,x(e,(function(e,t){!e.isRemoved()&&l(t,t)}))):new a(t,e,s,s).add(l).update(l).remove(o.curry(l,null)).execute()}function p(e){var t=T();return e&&x(e,(function(e,n){var i=t[n];x(e,(function(e){e&&(i.push(e),e.__tmWillDelete=1)}))})),t}function g(){x(h,(function(e){x(e,(function(e){e.parent&&e.parent.remove(e)}))})),x(c,(function(e){e.invisible=!0,e.dirty()}))}},_doAnimation:function(e,t,n,i){if(n.get("animation")){var r=n.get("animationDurationUpdate"),a=n.get("animationEasing"),s=h.createWrap();x(t.willDeleteEls,(function(e,t){x(e,(function(e,n){if(!e.invisible){var o,l=e.parent;if(i&&"drillDown"===i.direction)o=l===i.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),o="nodeGroup"===t?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}o&&s.add(e,o,r,a)}}))})),x(this._storage,(function(e,n){x(e,(function(e,i){var l=t.lastsForAnimation[n][i],u={};l&&("nodeGroup"===n?l.old&&(u.position=e.position.slice(),e.attr("position",l.old)):(l.old&&(u.shape=o.extend({},e.shape),e.setShape(l.old)),l.fadein?(e.setStyle("opacity",0),u.style={opacity:1}):1!==e.style.opacity&&(u.style={opacity:1})),s.add(e,u,r,a))}))}),this),this._state="animating",s.done(v((function(){this._state="ready",t.renderFinally()}),this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new u(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",v(this._onPan,this)),t.on("zoom",v(this._onZoom,this)));var n=new c(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,i){return n.contain(t,i)}))},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){if("animating"!==this._state&&(Math.abs(e.dx)>_||Math.abs(e.dy)>_)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},_onZoom:function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var r=new c(o.x,o.y,o.width,o.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=d.create();d.translate(s,s,[-t,-n]),d.scale(s,s,[e.scale,e.scale]),d.translate(s,s,[t,n]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(e){e.on("click",(function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var n=this.findTarget(e.offsetX,e.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===t)this._zoomToNode(n);else if("link"===t){var o=i.hostTree.data.getItemModel(i.dataIndex),r=o.get("link",!0),a=o.get("target",!0)||"blank";r&&g(r,a)}}}}}),this)},_renderBreadcrumb:function(e,t,n){function i(t){"animating"!==this._state&&(s.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(e,t,n.node,v(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=T(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var o=this._storage.background[i.getRawIndex()];if(o){var r=o.transformCoordToLocal(e,t),a=o.shape;if(!(a.x<=r[0]&&r[0]<=a.x+a.width&&a.y<=r[1]&&r[1]<=a.y+a.height))return!1;n={node:i,offsetX:r[0],offsetY:r[1]}}}),this),n}});function T(){return{nodeGroup:[],background:[],content:[]}}function N(e,t,n,i,a,s,l,u,c,d){if(l){var h=l.getLayout(),f=e.getData();if(f.setItemGraphicEl(l.dataIndex,null),h&&h.isInView){var p=h.width,g=h.height,v=h.borderWidth,x=h.invisible,_=l.getRawIndex(),I=u&&u.getRawIndex(),E=l.viewChildren,T=h.upperHeight,N=E&&E.length,O=l.getModel("itemStyle"),L=l.getModel("emphasis.itemStyle"),V=j("nodeGroup",m);if(V){if(c.add(V),V.attr("position",[h.x||0,h.y||0]),V.__tmNodeWidth=p,V.__tmNodeHeight=g,h.isAboveViewRoot)return V;var R=l.getModel(),B=j("background",y,d,A);if(B&&W(V,B,N&&h.upperLabelHeight),N)r.isHighDownDispatcher(V)&&r.setAsHighDownDispatcher(V,!1),B&&(r.setAsHighDownDispatcher(B,!0),f.setItemGraphicEl(l.dataIndex,B));else{var z=j("content",y,d,k);z&&F(V,z),B&&r.isHighDownDispatcher(B)&&r.setAsHighDownDispatcher(B,!1),r.setAsHighDownDispatcher(V,!0),f.setItemGraphicEl(l.dataIndex,V)}return V}}}function W(t,n,i){if(n.dataIndex=l.dataIndex,n.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:g}),x)U(n);else{n.invisible=!1;var o=l.getVisual("borderColor",!0),a=L.get("borderColor"),s=C(O);s.fill=o;var u=P(L);if(u.fill=a,i){var c=p-2*v;$(s,u,o,c,T,{x:v,y:0,width:c,height:T})}else s.text=u.text=null;n.setStyle(s),r.setElementHoverStyle(n,u)}t.add(n)}function F(t,n){n.dataIndex=l.dataIndex,n.seriesIndex=e.seriesIndex;var i=Math.max(p-2*v,0),o=Math.max(g-2*v,0);if(n.culling=!0,n.setShape({x:v,y:v,width:i,height:o}),x)U(n);else{n.invisible=!1;var a=l.getVisual("color",!0),s=C(O);s.fill=a;var u=P(L);$(s,u,a,i,o),n.setStyle(s),r.setElementHoverStyle(n,u)}t.add(n)}function U(e){!e.invisible&&s.push(e)}function $(t,n,i,a,s,u){var c=R.get("name"),d=R.getModel(u?S:b),f=R.getModel(u?M:w),p=d.getShallow("show");r.setLabelStyle(t,n,d,f,{defaultText:p?c:null,autoColor:i,isRectText:!0,labelFetcher:e,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),H(t,u,h),H(n,u,h),u&&(t.textRect=o.clone(u)),t.truncate=p&&d.get("ellipsis")?{outerWidth:a,outerHeight:s,minChar:2}:null}function H(t,n,i){var o=t.text;if(!n&&i.isLeafRoot&&null!=o){var r=e.get("drillDownIcon",!0);t.text=r?r+" "+o:o}}function j(e,i,o,r){var s=null!=I&&n[e][I],l=a[e];return s?(n[e][I]=null,G(l,s,e)):x||(s=new i({z:D(o,r)}),s.__tmDepth=o,s.__tmStorageName=e,Y(l,s,e)),t[e][_]=s}function G(e,t,n){var i=e[_]={};i.old="nodeGroup"===n?t.position.slice():o.extend({},t.shape)}function Y(e,t,n){var o=e[_]={},r=l.parentNode;if(r&&(!i||"drillDown"===i.direction)){var s=0,u=0,c=a.background[r.getRawIndex()];!i&&c&&c.old&&(s=c.old.width,u=c.old.height),o.old="nodeGroup"===n?[0,u]:{x:s,y:u,width:0,height:0}}o.fadein="nodeGroup"!==n}}function D(e,t){var n=e*I+t;return(n-1)/n}e.exports=E},93663:function(e,t,n){for(var i=n(70492),o=n(68833),r=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<a.length;s++)i.registerAction({type:a[s],update:"updateView"},r);i.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var i=["treemapZoomToNode","treemapRootToNode"],r=o.retrieveTargetInfo(e,i,t);if(r){var a=t.getViewRoot();a&&(e.direction=o.aboveViewRoot(a,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))},29605:function(e,t,n){var i=n(33051),o=n(60479),r=n(85669),a=r.parsePercent,s=r.MAX_SAFE_INTEGER,l=n(76172),u=n(68833),c=Math.max,d=Math.min,h=i.retrieve,f=i.each,p=["itemStyle","borderWidth"],g=["itemStyle","gapWidth"],v=["upperLabel","show"],m=["upperLabel","height"],y={seriesType:"treemap",reset:function(e,t,n,r){var s=n.getWidth(),c=n.getHeight(),d=e.option,p=l.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),g=d.size||[],v=a(h(p.width,g[0]),s),m=a(h(p.height,g[1]),c),y=r&&r.type,_=["treemapZoomToNode","treemapRootToNode"],b=u.retrieveTargetInfo(r,_,e),w="treemapRender"===y||"treemapMove"===y?r.rootRect:null,S=e.getViewRoot(),M=u.getPathToRoot(S);if("treemapMove"!==y){var I="treemapZoomToNode"===y?A(e,b,S,v,m):w?[w.width,w.height]:[v,m],C=d.sort;C&&"asc"!==C&&"desc"!==C&&(C="desc");var E={squareRatio:d.squareRatio,sort:C,leafDepth:d.leafDepth};S.hostTree.clearLayouts();var T={x:0,y:0,width:I[0],height:I[1],area:I[0]*I[1]};S.setLayout(T),x(S,E,!1,0);T=S.getLayout();f(M,(function(e,t){var n=(M[t+1]||S).getValue();e.setLayout(i.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},T))}))}var N=e.getData().tree.root;N.setLayout(k(p,w,b),!0),e.setLayoutInfo(p),P(N,new o(-p.x,-p.y,s,c),M,S,0)}};function x(e,t,n,i){var o,r;if(!e.isRemoved()){var a=e.getLayout();o=a.width,r=a.height;var s=e.getModel(),l=s.get(p),u=s.get(g)/2,h=C(s),f=Math.max(l,h),v=l-u,m=f-u;s=e.getModel();e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:h},!0),o=c(o-2*v,0),r=c(r-v-m,0);var y=o*r,b=_(e,s,y,t,n,i);if(b.length){var w={x:v,y:m,width:o,height:r},S=d(o,r),A=1/0,k=[];k.area=0;for(var P=0,E=b.length;P<E;){var T=b[P];k.push(T),k.area+=T.getLayout().area;var N=M(k,S,t.squareRatio);N<=A?(P++,A=N):(k.area-=k.pop().getLayout().area,I(k,S,w,u,!1),S=d(w.width,w.height),k.length=k.area=0,A=1/0)}if(k.length&&I(k,S,w,u,!0),!n){var D=s.get("childrenVisibleMin");null!=D&&y<D&&(n=!0)}for(P=0,E=b.length;P<E;P++)x(b[P],t,n,i+1)}}}function _(e,t,n,o,r,a){var s=e.children||[],l=o.sort;"asc"!==l&&"desc"!==l&&(l=null);var u=null!=o.leafDepth&&o.leafDepth<=a;if(r&&!u)return e.viewChildren=[];s=i.filter(s,(function(e){return!e.isRemoved()})),w(s,l);var c=S(t,s,l);if(0===c.sum)return e.viewChildren=[];if(c.sum=b(t,n,c.sum,l,s),0===c.sum)return e.viewChildren=[];for(var d=0,h=s.length;d<h;d++){var f=s[d].getValue()/c.sum*n;s[d].setLayout({area:f})}return u&&(s.length&&e.setLayout({isLeafRoot:!0},!0),s.length=0),e.viewChildren=s,e.setLayout({dataExtent:c.dataExtent},!0),s}function b(e,t,n,i,o){if(!i)return n;for(var r=e.get("visibleMin"),a=o.length,s=a,l=a-1;l>=0;l--){var u=o["asc"===i?a-l-1:l].getValue();u/n*t<r&&(s=l,n-=u)}return"asc"===i?o.splice(0,a-s):o.splice(s,a-s),n}function w(e,t){return t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i})),e}function S(e,t,n){for(var i=0,o=0,r=t.length;o<r;o++)i+=t[o].getValue();var a=e.get("visualDimension");if(t&&t.length)if("value"===a&&n)s=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&s.reverse();else{var s=[1/0,-1/0];f(t,(function(e){var t=e.getValue(a);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)}))}else s=[NaN,NaN];return{sum:i,dataExtent:s}}function M(e,t,n){for(var i,o=0,r=1/0,a=0,s=e.length;a<s;a++)i=e[a].getLayout().area,i&&(i<r&&(r=i),i>o&&(o=i));var l=e.area*e.area,u=t*t*n;return l?c(u*o/l,l/(u*r)):1/0}function I(e,t,n,i,o){var r=t===n.width?0:1,a=1-r,s=["x","y"],l=["width","height"],u=n[s[r]],h=t?e.area/t:0;(o||h>n[l[a]])&&(h=n[l[a]]);for(var f=0,p=e.length;f<p;f++){var g=e[f],v={},m=h?g.getLayout().area/h:0,y=v[l[a]]=c(h-2*i,0),x=n[s[r]]+n[l[r]]-u,_=f===p-1||x<m?x:m,b=v[l[r]]=c(_-2*i,0);v[s[a]]=n[s[a]]+d(i,y/2),v[s[r]]=u+d(i,b/2),u+=_,g.setLayout(v,!0)}n[s[a]]+=h,n[l[a]]-=h}function A(e,t,n,i,o){var r,a=(t||{}).node,l=[i,o];if(!a||a===n)return l;var u=i*o,c=u*e.option.zoomToNodeRatio;while(r=a.parentNode){for(var d=0,h=r.children,f=0,g=h.length;f<g;f++)d+=h[f].getValue();var v=a.getValue();if(0===v)return l;c*=d/v;var m=r.getModel(),y=m.get(p),x=Math.max(y,C(m,y));c+=4*y*y+(3*y+x)*Math.pow(c,.5),c>s&&(c=s),a=r}c<u&&(c=u);var _=Math.pow(c/u,.5);return[i*_,o*_]}function k(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var o=n.node,r=o.getLayout();if(!r)return i;var a=[r.width/2,r.height/2],s=o;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}function P(e,t,n,i,r){var a=e.getLayout(),s=n[r],l=s&&s===e;if(!(s&&!l||r===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!l&&!t.intersect(a),isAboveViewRoot:l},!0);var u=new o(t.x-a.x,t.y-a.y,t.width,t.height);f(e.viewChildren||[],(function(e){P(e,u,n,i,r+1)}))}}function C(e){return e.get(v)?e.get(m):0}e.exports=y},46188:function(e,t,n){var i=n(59937),o=n(21092),r=n(33051),a=r.isArray,s="itemStyle",l={seriesType:"treemap",reset:function(e,t,n,i){var o=e.getData().tree,a=o.root,l=e.getModel(s);if(!a.isRemoved()){var c=r.map(o.levelModels,(function(e){return e?e.get(s):null}));u(a,{},c,l,e.getViewRoot().getAncestors(),e)}}};function u(e,t,n,i,o,a){var l=e.getModel(),f=e.getLayout();if(f&&!f.invisible&&f.isInView){var g,m=e.getModel(s),y=n[e.depth],x=c(m,t,y,i),_=m.get("borderColor"),b=m.get("borderColorSaturation");null!=b&&(g=d(x,e),_=h(b,g)),e.setVisual("borderColor",_);var w=e.viewChildren;if(w&&w.length){var S=p(e,l,f,m,x,w);r.each(w,(function(e,t){if(e.depth>=o.length||e===o[e.depth]){var r=v(l,x,e,t,S,a);u(e,r,n,i,o,a)}}))}else g=d(x,e),e.setVisual("color",g)}}function c(e,t,n,i){var o=r.extend({},t);return r.each(["color","colorAlpha","colorSaturation"],(function(r){var a=e.get(r,!0);null==a&&n&&(a=n[r]),null==a&&(a=t[r]),null==a&&(a=i.get(r)),null!=a&&(o[r]=a)})),o}function d(e){var t=f(e,"color");if(t){var n=f(e,"colorAlpha"),i=f(e,"colorSaturation");return i&&(t=o.modifyHSL(t,null,null,i)),n&&(t=o.modifyAlpha(t,n)),t}}function h(e,t){return null!=t?o.modifyHSL(t,null,null,e):null}function f(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function p(e,t,n,o,r,a){if(a&&a.length){var s=g(t,"color")||null!=r.color&&"none"!==r.color&&(g(t,"colorAlpha")||g(t,"colorSaturation"));if(s){var l=t.get("visualMin"),u=t.get("visualMax"),c=n.dataExtent.slice();null!=l&&l<c[0]&&(c[0]=l),null!=u&&u>c[1]&&(c[1]=u);var d=t.get("colorMappingBy"),h={type:s.name,dataExtent:c,visual:s.range};"color"!==h.type||"index"!==d&&"id"!==d?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var f=new i(h);return f.__drColorMappingBy=d,f}}}function g(e,t){var n=e.get(t);return a(n)&&n.length?{name:t,range:n}:null}function v(e,t,n,i,o,a){var s=r.extend({},t);if(o){var l=o.type,u="color"===l&&o.__drColorMappingBy,c="index"===u?i:"id"===u?a.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));s[l]=o.mapValueToVisual(c)}return s}e.exports=l},3229:function(e,t,n){n(90580),n(60517)},88791:function(e,t,n){n(54805),n(42567)},52528:function(e,t,n){var i=n(70492),o=n(33051),r=n(18490),a=n(96472);n(16572),n(48253),n(97326),i.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!o.isArray(t)&&(e.axisPointer.link=[t])}})),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=r.collect(e,t)})),i.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},a)},16572:function(e,t,n){var i=n(70492),o=i.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},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}}}),r=o;e.exports=r},48253:function(e,t,n){var i=n(70492),o=n(56996),r=i.extendComponentView({type:"axisPointer",render:function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";o.register("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},remove:function(e,t){o.unregister(t.getZr(),"axisPointer"),r.superApply(this._model,"remove",arguments)},dispose:function(e,t){o.unregister("axisPointer",t),r.superApply(this._model,"dispose",arguments)}}),a=r;e.exports=a},47329:function(e,t,n){var i=n(33051),o=n(34251),r=n(51177),a=n(18490),s=n(61158),l=n(270),u=n(32234),c=u.makeInner,d=c(),h=i.clone,f=i.bind;function p(){}function g(e,t,n,i){v(d(n).lastProp,i)||(d(n).lastProp=i,t?r.updateProps(n,i,e):(n.stopAnimation(),n.attr(i)))}function v(e,t){if(i.isObject(e)&&i.isObject(t)){var n=!0;return i.each(t,(function(t,i){n=n&&v(e[i],t)})),!!n}return e===t}function m(e,t){e[t.get("label.show")?"show":"hide"]()}function y(e){return{position:e.position.slice(),rotation:e.rotation||0}}function x(e,t,n){var i=t.get("z"),o=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=o&&(e.zlevel=o),e.silent=n)}))}p.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,n,o){var a=t.get("value"),s=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,o||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,a,e,t,n);var d=c.graphicKey;d!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=d;var h=this._moveAnimation=this.determineAnimation(e,t);if(l){var f=i.curry(g,t,h);this.updatePointerEl(l,c,f,t),this.updateLabelEl(l,c,f,t)}else l=this._group=new r.Group,this.createPointerEl(l,c,e,t),this.createLabelEl(l,c,e,t),n.getZr().add(l);x(l,t,!0),this._renderHandle(a)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var n=t.get("animation"),i=e.axis,o="category"===i.type,r=t.get("snap");if(!r&&!o)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(r){var l=a.getAxisInfo(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===n},makeElOption:function(e,t,n,i,o){},createPointerEl:function(e,t,n,i){var o=t.pointer;if(o){var a=d(e).pointerEl=new r[o.type](h(t.pointer));e.add(a)}},createLabelEl:function(e,t,n,i){if(t.label){var o=d(e).labelEl=new r.Rect(h(t.label));e.add(o),m(o,i)}},updatePointerEl:function(e,t,n){var i=d(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,n,i){var o=d(e).labelEl;o&&(o.setStyle(t.label.style),n(o,{shape:t.label.shape,position:t.label.position}),m(o,i))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,o=this._api.getZr(),a=this._handle,u=n.getModel("handle"),c=n.get("status");if(!u.get("show")||!c||"hide"===c)return a&&o.remove(a),void(this._handle=null);this._handle||(t=!0,a=this._handle=r.createIcon(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){s.stop(e.event)},onmousedown:f(this._onHandleDragMove,this,0,0),drift:f(this._onHandleDragMove,this),ondragend:f(this._onHandleDragEnd,this)}),o.add(a)),x(a,n,!1);var d=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];a.setStyle(u.getItemStyle(null,d));var h=u.get("size");i.isArray(h)||(h=[h,h]),a.attr("scale",[h[0]/2,h[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){g(this._axisPointerModel,!t&&this._moveAnimation,this._handle,y(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(y(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(y(i)),d(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(e){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}},p.prototype.constructor=p,o.enableClassExtend(p);var _=p;e.exports=_},97326:function(e,t,n){var i=n(47329),o=n(75539),r=n(49069),a=n(11726),s=i.extend({makeElOption:function(e,t,n,i,a){var s=n.axis,c=s.grid,d=i.get("type"),h=l(c,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(t,!0));if(d&&"none"!==d){var p=o.buildElStyle(i),g=u[d](s,f,h);g.style=p,e.graphicKey=g.type,e.pointer=g}var v=r.layout(c.model,n);o.buildCartesianSingleLabelElOption(t,e,v,n,i,a)},getHandleTransform:function(e,t,n){var i=r.layout(t.axis.grid.model,t,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:o.getTransformedPosition(t.axis,e,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,i){var o=n.axis,r=o.grid,a=o.getGlobalExtent(!0),s=l(r,o).getOtherAxis(o).getGlobalExtent(),u="x"===o.dim?0:1,c=e.position;c[u]+=t[u],c[u]=Math.min(a[1],c[u]),c[u]=Math.max(a[0],c[u]);var d=(s[1]+s[0])/2,h=[d,d];h[u]=c[u];var f=[{verticalAlign:"middle"},{align:"center"}];return{position:c,rotation:e.rotation,cursorPoint:h,tooltipOption:f[u]}}});function l(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var u={line:function(e,t,n){var i=o.makeLineShape([t,n[0]],[t,n[1]],c(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:o.makeRectShape([t-i/2,n[0]],[i,r],c(e))}}};function c(e){return"x"===e.dim?0:1}a.registerAxisPointerClass("CartesianAxisPointer",s);var d=s;e.exports=d},72432:function(e,t,n){var i=n(78988),o=n(47329),r=n(51177),a=n(75539),s=n(32892),l=n(58608),u=n(11726),c=o.extend({makeElOption:function(e,t,n,o,r){var s=n.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l,u=s.polar,c=u.getOtherAxis(s),f=c.getExtent();l=s["dataTo"+i.capitalFirst(s.dim)](t);var p=o.get("type");if(p&&"none"!==p){var g=a.buildElStyle(o),v=h[p](s,u,l,f,g);v.style=g,e.graphicKey=v.type,e.pointer=v}var m=o.get("label.margin"),y=d(t,n,o,u,m);a.buildLabelElOption(e,n,o,r,y)}});function d(e,t,n,i,o){var a=t.axis,u=a.dataToCoord(e),c=i.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var d,h,f,p=i.getRadiusAxis().getExtent();if("radius"===a.dim){var g=s.create();s.rotate(g,g,c),s.translate(g,g,[i.cx,i.cy]),d=r.applyTransform([u,-o],g);var v=t.getModel("axisLabel").get("rotate")||0,m=l.innerTextLayout(c,v*Math.PI/180,-1);h=m.textAlign,f=m.textVerticalAlign}else{var y=p[1];d=i.coordToPoint([y+o,u]);var x=i.cx,_=i.cy;h=Math.abs(d[0]-x)/y<.3?"center":d[0]>x?"left":"right",f=Math.abs(d[1]-_)/y<.3?"middle":d[1]>_?"top":"bottom"}return{position:d,align:h,verticalAlign:f}}var h={line:function(e,t,n,i,o){return"angle"===e.dim?{type:"Line",shape:a.makeLineShape(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i,o){var r=Math.max(1,e.getBandWidth()),s=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:a.makeSectorShape(t.cx,t.cy,i[0],i[1],(-n-r/2)*s,(r/2-n)*s)}:{type:"Sector",shape:a.makeSectorShape(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}};u.registerAxisPointerClass("PolarAxisPointer",c);var f=c;e.exports=f},16795:function(e,t,n){var i=n(47329),o=n(75539),r=n(48337),a=n(11726),s=["x","y"],l=["width","height"],u=i.extend({makeElOption:function(e,t,n,i,a){var s=n.axis,l=s.coordinateSystem,u=h(l,1-d(s)),f=l.dataToPoint(t)[0],p=i.get("type");if(p&&"none"!==p){var g=o.buildElStyle(i),v=c[p](s,f,u);v.style=g,e.graphicKey=v.type,e.pointer=v}var m=r.layout(n);o.buildCartesianSingleLabelElOption(t,e,m,n,i,a)},getHandleTransform:function(e,t,n){var i=r.layout(t,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:o.getTransformedPosition(t.axis,e,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,i){var o=n.axis,r=o.coordinateSystem,a=d(o),s=h(r,a),l=e.position;l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=h(r,1-a),c=(u[1]+u[0])/2,f=[c,c];return f[a]=l[a],{position:l,rotation:e.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}}}),c={line:function(e,t,n){var i=o.makeLineShape([t,n[0]],[t,n[1]],d(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:o.makeRectShape([t-i/2,n[0]],[i,r],d(e))}}};function d(e){return e.isHorizontal()?0:1}function h(e,t){var n=e.getRect();return[n[s[t]],n[s[t]]+n[l[t]]]}a.registerAxisPointerClass("SingleAxisPointer",u);var f=u;e.exports=f},96472:function(e,t,n){var i=n(33051),o=n(32234),r=o.makeInner,a=n(18490),s=n(92448),l=i.each,u=i.curry,c=r();function d(e,t,n){var o=e.currTrigger,r=[e.x,e.y],a=e,c=e.dispatchAction||i.bind(n.dispatchAction,n),d=t.getComponent("axisPointer").coordSysAxesInfo;if(d){b(r)&&(r=s({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var f=b(r),w=a.axesInfo,S=d.axesInfo,M="leave"===o||b(r),I={},A={},k={list:[],map:{}},P={showPointer:u(p,A),showTooltip:u(g,k)};l(d.coordSysMap,(function(e,t){var n=f||e.containPoint(r);l(d.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=x(w,e);if(!M&&n&&(!w||o)){var a=o&&o.value;null!=a||f||(a=i.pointToData(r)),null!=a&&h(e,a,P,!1,I)}}))}));var C={};return l(S,(function(e,t){var n=e.linkGroup;n&&!A[t]&&l(n.axesInfo,(function(t,i){var o=A[i];if(t!==e&&o){var r=o.value;n.mapper&&(r=e.axis.scale.parse(n.mapper(r,_(t),_(e)))),C[e.key]=r}}))})),l(C,(function(e,t){h(S[t],e,P,!0,I)})),v(A,S,I),m(k,r,e,c),y(S,c,n),I}}function h(e,t,n,o,r){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t))if(e.involveSeries){var s=f(t,e),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==r.seriesIndex&&i.extend(r,l[0]),!o&&e.snap&&a.containData(u)&&null!=u&&(t=u),n.showPointer(e,t,l,r),n.showTooltip(e,s,u)}else n.showPointer(e,t)}function f(e,t){var n=t.axis,i=n.dim,o=e,r=[],a=Number.MAX_VALUE,s=-1;return l(t.seriesModels,(function(t,u){var c,d,h=t.getData().mapDimension(i,!0);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(h,e,n);d=f.dataIndices,c=f.nestestValue}else{if(d=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null),!d.length)return;c=t.getData().get(h[0],d[0])}if(null!=c&&isFinite(c)){var p=e-c,g=Math.abs(p);g<=a&&((g<a||p>=0&&s<0)&&(a=g,s=p,o=c,r.length=0),l(d,(function(e){r.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:r,snapToValue:o}}function p(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function g(e,t,n,i){var o=n.payloadBatch,r=t.axis,s=r.model,l=t.axisPointerModel;if(t.triggerTooltip&&o.length){var u=t.coordSys.model,c=a.makeKey(u),d=e.map[c];d||(d=e.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(d)),d.dataByAxis.push({axisDim:r.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:o.slice()})}}function v(e,t,n){var i=n.axesInfo=[];l(t,(function(t,n){var o=t.axisPointerModel.option,r=e[n];r?(!t.useHandle&&(o.status="show"),o.value=r.value,o.seriesDataIndices=(r.payloadBatch||[]).slice()):!t.useHandle&&(o.status="hide"),"show"===o.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:o.value})}))}function m(e,t,n,i){if(!b(t)&&e.list.length){var o=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function y(e,t,n){var o=n.getZr(),r="axisPointerLastHighlights",a=c(o)[r]||{},s=c(o)[r]={};l(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&l(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;s[t]=e}))}));var u=[],d=[];i.each(a,(function(e,t){!s[t]&&d.push(e)})),i.each(s,(function(e,t){!a[t]&&u.push(e)})),d.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:d}),u.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:u})}function x(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function _(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function b(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}e.exports=d},92448:function(e,t,n){var i=n(33051),o=n(32234);function r(e,t){var n,r=[],a=e.seriesIndex;if(null==a||!(n=t.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=o.queryDataIndex(s,e);if(null==l||l<0||i.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)r=c.dataToPoint(s.getValues(i.map(c.dimensions,(function(e){return s.mapDimension(e)})),l,!0))||[];else if(u){var d=u.getBoundingRect().clone();d.applyTransform(u.transform),r=[d.x+d.width/2,d.y+d.height/2]}return{point:r,el:u}}e.exports=r},56996:function(e,t,n){var i=n(33051),o=n(66387),r=n(32234),a=r.makeInner,s=a(),l=i.each;function u(e,t,n){if(!o.node){var i=t.getZr();s(i).records||(s(i).records={}),c(i,t);var r=s(i).records[e]||(s(i).records[e]={});r.handler=n}}function c(e,t){function n(n,i){e.on(n,(function(n){var o=p(t);l(s(e).records,(function(e){e&&i(e,n,o.dispatchAction)})),d(o.pendings,t)}))}s(e).initialized||(s(e).initialized=!0,n("click",i.curry(f,"click")),n("mousemove",i.curry(f,"mousemove")),n("globalout",h))}function d(e,t){var n,i=e.showTip.length,o=e.hideTip.length;i?n=e.showTip[i-1]:o&&(n=e.hideTip[o-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function h(e,t,n){e.handler("leave",null,n)}function f(e,t,n,i){t.handler(e,n,i)}function p(e){var t={showTip:[],hideTip:[]},n=function(i){var o=t[i.type];o?o.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function g(e,t){if(!o.node){var n=t.getZr(),i=(s(n).records||{})[e];i&&(s(n).records[e]=null)}}t.register=u,t.unregister=g},18490:function(e,t,n){var i=n(33051),o=n(4272),r=i.each,a=i.curry;function s(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l(n,e,t),n.seriesInvolved&&c(n,e),n}function l(e,t,n){var i=t.getComponent("tooltip"),o=t.getComponent("axisPointer"),s=o.get("link",!0)||[],l=[];r(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var c=m(n.model),h=e.coordSysAxesInfo[c]={};e.coordSysMap[c]=n;var f=n.model,p=f.getModel("tooltip",i);if(r(n.getAxes(),a(_,!1,null)),n.getTooltipAxes&&i&&p.get("show")){var g="axis"===p.get("trigger"),y="cross"===p.get("axisPointer.type"),x=n.getTooltipAxes(p.get("axisPointer.axis"));(g||y)&&r(x.baseAxes,a(_,!y||"cross",g)),y&&r(x.otherAxes,a(_,"cross",!1))}}function _(i,r,a){var c=a.model.getModel("axisPointer",o),f=c.get("show");if(f&&("auto"!==f||i||v(c))){null==r&&(r=c.get("triggerTooltip")),c=i?u(a,p,o,t,i,r):c;var g=c.get("snap"),y=m(a.model),x=r||g||"category"===a.type,_=e.axesInfo[y]={key:y,axis:a,coordSys:n,axisPointerModel:c,triggerTooltip:r,involveSeries:x,snap:g,useHandle:v(c),seriesModels:[]};h[y]=_,e.seriesInvolved|=x;var b=d(s,a);if(null!=b){var w=l[b]||(l[b]={axesInfo:{}});w.axesInfo[y]=_,w.mapper=s[b].mapper,_.linkGroup=w}}}}))}function u(e,t,n,a,s,l){var u=t.getModel("axisPointer"),c={};r(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){c[e]=i.clone(u.get(e))})),c.snap="category"!==e.type&&!!l,"cross"===u.get("type")&&(c.type="line");var d=c.label||(c.label={});if(null==d.show&&(d.show=!1),"cross"===s){var h=u.get("label.show");if(d.show=null==h||h,!l){var f=c.lineStyle=u.get("crossStyle");f&&i.defaults(d,f.textStyle)}}return e.model.getModel("axisPointer",new o(c,n,a))}function c(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get("tooltip.trigger",!0),o=t.get("tooltip.show",!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==o&&!1!==t.get("axisPointer.show",!0)&&r(e.coordSysAxesInfo[m(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}),this)}function d(e,t){for(var n=t.model,i=t.dim,o=0;o<e.length;o++){var r=e[o]||{};if(h(r[i+"AxisId"],n.id)||h(r[i+"AxisIndex"],n.componentIndex)||h(r[i+"AxisName"],n.name))return o}}function h(e,t){return"all"===e||i.isArray(e)&&i.indexOf(e,t)>=0||e===t}function f(e){var t=p(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,o=n.option,r=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=v(n);null==r&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),o.value=a,s&&(o.status=t.axis.scale.isBlank()?"hide":"show")}}function p(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[m(e)]}function g(e){var t=p(e);return t&&t.axisPointerModel}function v(e){return!!e.get("handle.show")}function m(e){return e.type+"||"+e.id}t.collect=s,t.fixValue=f,t.getAxisInfo=p,t.getAxisPointerModel=g,t.makeKey=m},75539:function(e,t,n){var i=n(33051),o=n(51177),r=n(80423),a=n(78988),s=n(32892),l=n(97980),u=n(58608);function c(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function d(e,t,n,i,o){var s=n.get("value"),l=f(s,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),u=n.getModel("label"),c=a.normalizeCssArray(u.get("padding")||0),d=u.getFont(),p=r.getBoundingRect(l,d),g=o.position,v=p.width+c[1]+c[3],m=p.height+c[0]+c[2],y=o.align;"right"===y&&(g[0]-=v),"center"===y&&(g[0]-=v/2);var x=o.verticalAlign;"bottom"===x&&(g[1]-=m),"middle"===x&&(g[1]-=m/2),h(g,v,m,i);var _=u.get("backgroundColor");_&&"auto"!==_||(_=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:v,height:m,r:u.get("borderRadius")},position:g.slice(),style:{text:l,textFont:d,textFill:u.getTextColor(),textPosition:"inside",textPadding:c,fill:_,stroke:u.get("borderColor")||"transparent",lineWidth:u.get("borderWidth")||0,shadowBlur:u.get("shadowBlur"),shadowColor:u.get("shadowColor"),shadowOffsetX:u.get("shadowOffsetX"),shadowOffsetY:u.get("shadowOffsetY")},z2:10}}function h(e,t,n,i){var o=i.getWidth(),r=i.getHeight();e[0]=Math.min(e[0]+t,o)-t,e[1]=Math.min(e[1]+n,r)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function f(e,t,n,o,r){e=t.scale.parse(e);var a=t.scale.getLabel(e,{precision:r.precision}),s=r.formatter;if(s){var u={value:l.getAxisRawValue(t,e),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};i.each(o,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,o=t&&t.getDataParams(i);o&&u.seriesData.push(o)})),i.isString(s)?a=s.replace("{value}",a):i.isFunction(s)&&(a=s(u))}return a}function p(e,t,n){var i=s.create();return s.rotate(i,i,n.rotation),s.translate(i,i,n.position),o.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function g(e,t,n,i,o,r){var a=u.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get("label.margin"),d(t,i,o,r,{position:p(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function v(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function m(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function y(e,t,n,i,o,r){return{cx:e,cy:t,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}t.buildElStyle=c,t.buildLabelElOption=d,t.getValueLabel=f,t.getTransformedPosition=p,t.buildCartesianSingleLabelElOption=g,t.makeLineShape=v,t.makeRectShape=m,t.makeSectorShape=y},60517:function(e,t,n){var i=n(33051),o=n(51177),r=n(4272),a=n(11726),s=n(58608),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function u(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),o=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function c(e){var t=e.getRadiusAxis();return t.inverse?0:1}function d(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var h=a.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,o=n.polar,r=o.getRadiusAxis().getExtent(),a=n.getTicksCoords(),s=n.getMinorTicksCoords(),u=i.map(n.getViewLabels(),(function(e){e=i.clone(e);return e.coord=n.dataToCoord(e.tickValue),e}));d(u),d(a),i.each(l,(function(t){!e.get(t+".show")||n.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,o,a,s,r,u)}),this)}},_axisLine:function(e,t,n,i,r){var a,s=e.getModel("axisLine.lineStyle"),l=c(t),u=l?0:1;a=0===r[u]?new o.Circle({shape:{cx:t.cx,cy:t.cy,r:r[l]},style:s.getLineStyle(),z2:1,silent:!0}):new o.Ring({shape:{cx:t.cx,cy:t.cy,r:r[l],r0:r[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,this.group.add(a)},_axisTick:function(e,t,n,r,a){var s=e.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),d=a[c(t)],h=i.map(n,(function(e){return new o.Line({shape:u(t,[d,d+l],e.coord)})}));this.group.add(o.mergePath(h,{style:i.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_minorTick:function(e,t,n,r,a){if(r.length){for(var s=e.getModel("axisTick"),l=e.getModel("minorTick"),d=(s.get("inside")?-1:1)*l.get("length"),h=a[c(t)],f=[],p=0;p<r.length;p++)for(var g=0;g<r[p].length;g++)f.push(new o.Line({shape:u(t,[h,h+d],r[p][g].coord)}));this.group.add(o.mergePath(f,{style:i.defaults(l.getModel("lineStyle").getLineStyle(),i.defaults(s.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(e,t,n,a,l,u){var d=e.getCategories(!0),h=e.getModel("axisLabel"),f=h.get("margin"),p=e.get("triggerEvent");i.each(u,(function(n,i){var a=h,u=n.tickValue,g=l[c(t)],v=t.coordToPoint([g+f,n.coord]),m=t.cx,y=t.cy,x=Math.abs(v[0]-m)/g<.3?"center":v[0]>m?"left":"right",_=Math.abs(v[1]-y)/g<.3?"middle":v[1]>y?"top":"bottom";d&&d[u]&&d[u].textStyle&&(a=new r(d[u].textStyle,h,h.ecModel));var b=new o.Text({silent:s.isLabelSilent(e)});this.group.add(b),o.setTextStyle(b.style,a,{x:v[0],y:v[1],textFill:a.getTextColor()||e.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:x,textVerticalAlign:_}),p&&(b.eventData=s.makeAxisEventDataBase(e),b.eventData.targetType="axisLabel",b.eventData.value=n.rawLabel)}),this)},_splitLine:function(e,t,n,r,a){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),d=0;c=c instanceof Array?c:[c];for(var h=[],f=0;f<n.length;f++){var p=d++%c.length;h[p]=h[p]||[],h[p].push(new o.Line({shape:u(t,a,n[f].coord)}))}for(f=0;f<h.length;f++)this.group.add(o.mergePath(h[f],{style:i.defaults({stroke:c[f%c.length]},l.getLineStyle()),silent:!0,z:e.get("z")}))},_minorSplitLine:function(e,t,n,i,r){if(i.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],c=0;c<i.length;c++)for(var d=0;d<i[c].length;d++)l.push(new o.Line({shape:u(t,r,i[c][d].coord)}));this.group.add(o.mergePath(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},_splitArea:function(e,t,n,r,a){if(n.length){var s=e.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var d=[],h=Math.PI/180,f=-n[0].coord*h,p=Math.min(a[0],a[1]),g=Math.max(a[0],a[1]),v=e.get("clockwise"),m=1;m<n.length;m++){var y=c++%u.length;d[y]=d[y]||[],d[y].push(new o.Sector({shape:{cx:t.cx,cy:t.cy,r0:p,r:g,startAngle:f,endAngle:-n[m].coord*h,clockwise:v},silent:!0})),f=-n[m].coord*h}for(m=0;m<d.length;m++)this.group.add(o.mergePath(d[m],{style:i.defaults({fill:u[m%u.length]},l.getAreaStyle()),silent:!0}))}}});e.exports=h},58608:function(e,t,n){var i=n(33051),o=i.retrieve,r=i.defaults,a=i.extend,s=i.each,l=n(78988),u=n(51177),c=n(4272),d=n(85669),h=d.isRadianAroundZero,f=d.remRadian,p=n(41525),g=p.createSymbol,v=n(32892),m=n(45280),y=m.applyTransform,x=n(97980),_=x.shouldShowAllLabels,b=Math.PI,w=function(e,t){this.opt=t,this.axisModel=e,r(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var n=new u.Group({position:t.position.slice(),rotation:t.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};w.prototype={constructor:w,hasBuilder:function(e){return!!S[e]},add:function(e){S[e].call(this)},getGroup:function(){return this.group}};var S={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,o=[n[0],0],r=[n[1],0];i&&(y(o,o,i),y(r,r,i));var l=a({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new u.Line({anid:"line",subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:r[0],y2:r[1]},style:l,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1}));var c=t.get("axisLine.symbol"),d=t.get("axisLine.symbolSize"),h=t.get("axisLine.symbolOffset")||0;if("number"===typeof h&&(h=[h,h]),null!=c){"string"===typeof c&&(c=[c,c]),"string"!==typeof d&&"number"!==typeof d||(d=[d,d]);var f=d[0],p=d[1];s([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((o[0]-r[0])*(o[0]-r[0])+(o[1]-r[1])*(o[1]-r[1]))}],(function(t,n){if("none"!==c[n]&&null!=c[n]){var i=g(c[n],-f/2,-p/2,f,p,l.stroke,!0),r=t.r+t.offset,a=[o[0]+r*Math.cos(e.rotation),o[1]-r*Math.sin(e.rotation)];i.attr({rotation:t.rotate,position:a,silent:!0,z2:11}),this.group.add(i)}}),this)}}},axisTickLabel:function(){var e=this.axisModel,t=this.opt,n=D(this,e,t),i=L(this,e,t);P(e,i,n),O(this,e,t)},axisName:function(){var e=this.opt,t=this.axisModel,n=o(e.axisName,t.get("name"));if(n){var i,r,s=t.get("nameLocation"),c=e.nameDirection,d=t.getModel("nameTextStyle"),h=t.get("nameGap")||0,f=this.axisModel.axis.getExtent(),p=f[0]>f[1]?-1:1,g=["start"===s?f[0]-p*h:"end"===s?f[1]+p*h:(f[0]+f[1])/2,T(s)?e.labelOffset+c*h:0],v=t.get("nameRotate");null!=v&&(v=v*b/180),T(s)?i=I(e.rotation,null!=v?v:e.rotation,c):(i=A(e,s,v||0,f),r=e.axisNameAvailableWidth,null!=r&&(r=Math.abs(r/Math.sin(i.rotation)),!isFinite(r)&&(r=null)));var m=d.getFont(),y=t.get("nameTruncate",!0)||{},x=y.ellipsis,_=o(e.nameTruncateMaxWidth,y.maxWidth,r),w=null!=x&&null!=_?l.truncateText(n,_,m,x,{minChar:2,placeholder:y.placeholder}):n,S=t.get("tooltip",!0),P=t.mainType,C={componentType:P,name:n,$vars:["name"]};C[P+"Index"]=t.componentIndex;var E=new u.Text({anid:"name",__fullText:n,__truncatedText:w,position:g,rotation:i.rotation,silent:k(t),z2:1,tooltip:S&&S.show?a({content:n,formatter:function(){return n},formatterParams:C},S):null});u.setTextStyle(E.style,d,{text:w,textFont:m,textFill:d.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:d.get("align")||i.textAlign,textVerticalAlign:d.get("verticalAlign")||i.textVerticalAlign}),t.get("triggerEvent")&&(E.eventData=M(t),E.eventData.targetType="axisName",E.eventData.name=n),this._dumbGroup.add(E),E.updateTransform(),this.group.add(E),E.decomposeTransform()}}},M=w.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},I=w.innerTextLayout=function(e,t,n){var i,o,r=f(t-e);return h(r)?(o=n>0?"top":"bottom",i="center"):h(r-b)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=r>0&&r<b?n>0?"right":"left":n>0?"left":"right"),{rotation:r,textAlign:i,textVerticalAlign:o}};function A(e,t,n,i){var o,r,a=f(n-e.rotation),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return h(a-b/2)?(r=l?"bottom":"top",o="center"):h(a-1.5*b)?(r=l?"top":"bottom",o="center"):(r="middle",o=a<1.5*b&&a>b/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:r}}var k=w.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)};function P(e,t,n){if(!_(e.axis)){var i=e.get("axisLabel.showMinLabel"),o=e.get("axisLabel.showMaxLabel");t=t||[],n=n||[];var r=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],h=n[n.length-2];!1===i?(C(r),C(u)):E(r,a)&&(i?(C(a),C(c)):(C(r),C(u))),!1===o?(C(s),C(d)):E(l,s)&&(o?(C(l),C(h)):(C(s),C(d)))}}function C(e){e&&(e.ignore=!0)}function E(e,t,n){var i=e&&e.getBoundingRect().clone(),o=t&&t.getBoundingRect().clone();if(i&&o){var r=v.identity([]);return v.rotate(r,r,-e.rotation),i.applyTransform(v.mul([],r,e.getLocalTransform())),o.applyTransform(v.mul([],r,t.getLocalTransform())),i.intersect(o)}}function T(e){return"middle"===e||"center"===e}function N(e,t,n,i,o){for(var r=[],a=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,t&&(y(a,a,t),y(s,s,t));var d=new u.Line({anid:o+"_"+e[l].tickValue,subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,silent:!0});r.push(d)}return r}function D(e,t,n){var i=t.axis,o=t.getModel("axisTick");if(o.get("show")&&!i.scale.isBlank()){for(var a=o.getModel("lineStyle"),s=n.tickDirection*o.get("length"),l=i.getTicksCoords(),u=N(l,e._transform,s,r(a.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),"ticks"),c=0;c<u.length;c++)e.group.add(u[c]);return u}}function O(e,t,n){var i=t.axis,o=t.getModel("minorTick");if(o.get("show")&&!i.scale.isBlank()){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),u=r(s.getLineStyle(),r(t.getModel("axisTick").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})),c=0;c<a.length;c++)for(var d=N(a[c],e._transform,l,u,"minorticks_"+c),h=0;h<d.length;h++)e.group.add(d[h])}}function L(e,t,n){var i=t.axis,r=o(n.axisLabelShow,t.get("axisLabel.show"));if(r&&!i.scale.isBlank()){var a=t.getModel("axisLabel"),l=a.get("margin"),d=i.getViewLabels(),h=(o(n.labelRotate,a.get("rotate"))||0)*b/180,f=I(n.rotation,h,n.labelDirection),p=t.getCategories&&t.getCategories(!0),g=[],v=k(t),m=t.get("triggerEvent");return s(d,(function(o,r){var s=o.tickValue,d=o.formattedLabel,h=o.rawLabel,y=a;p&&p[s]&&p[s].textStyle&&(y=new c(p[s].textStyle,a,t.ecModel));var x=y.getTextColor()||t.get("axisLine.lineStyle.color"),_=i.dataToCoord(s),b=[_,n.labelOffset+n.labelDirection*l],w=new u.Text({anid:"label_"+s,position:b,rotation:f.rotation,silent:v,z2:10});u.setTextStyle(w.style,y,{text:d,textAlign:y.getShallow("align",!0)||f.textAlign,textVerticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||f.textVerticalAlign,textFill:"function"===typeof x?x("category"===i.type?h:"value"===i.type?s+"":s,r):x}),m&&(w.eventData=M(t),w.eventData.targetType="axisLabel",w.eventData.value=h),e._dumbGroup.add(w),w.updateTransform(),g.push(w),e.group.add(w),w.decomposeTransform()})),g}}var V=w;e.exports=V},11726:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(70492)),r=n(18490),a=o.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,n,i){this.axisPointerClass&&r.fixValue(e),a.superApply(this,"render",arguments),s(this,e,t,n,i,!0)},updateAxisPointer:function(e,t,n,i,o){s(this,e,t,n,i,!1)},remove:function(e,t){var n=this._axisPointer;n&&n.remove(t),a.superApply(this,"remove",arguments)},dispose:function(e,t){l(this,t),a.superApply(this,"dispose",arguments)}});function s(e,t,n,i,o,s){var u=a.getAxisPointerClass(e.axisPointerClass);if(u){var c=r.getAxisPointerModel(t);c?(e._axisPointer||(e._axisPointer=new u)).render(t,c,i,s):l(e,i)}}function l(e,t,n){var i=e._axisPointer;i&&i.dispose(t,n),e._axisPointer=null}var u=[];a.registerAxisPointerClass=function(e,t){u[e]=t},a.getAxisPointerClass=function(e){return e&&u[e]};var c=a;e.exports=c},42567:function(e,t,n){var i=n(33051),o=n(51177),r=n(58608),a=n(11726),s=n(49069),l=n(77956),u=l.rectCoordAxisBuildSplitArea,c=l.rectCoordAxisHandleRemove,d=["axisLine","axisTickLabel","axisName"],h=["splitArea","splitLine","minorSplitLine"],f=a.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,n,a){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new o.Group,this.group.add(this._axisGroup),e.get("show")){var u=e.getCoordSysModel(),c=s.layout(u,e),p=new r(e,c);i.each(d,p.add,p),this._axisGroup.add(p.getGroup()),i.each(h,(function(t){e.get(t+".show")&&this["_"+t](e,u)}),this),o.groupTransition(l,this._axisGroup,e),f.superCall(this,"render",e,t,n,a)}},remove:function(){c(this)},_splitLine:function(e,t){var n=e.axis;if(!n.scale.isBlank()){var r=e.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=i.isArray(s)?s:[s];for(var l=t.coordinateSystem.getRect(),u=n.isHorizontal(),c=0,d=n.getTicksCoords({tickModel:r}),h=[],f=[],p=a.getLineStyle(),g=0;g<d.length;g++){var v=n.toGlobalCoord(d[g].coord);u?(h[0]=v,h[1]=l.y,f[0]=v,f[1]=l.y+l.height):(h[0]=l.x,h[1]=v,f[0]=l.x+l.width,f[1]=v);var m=c++%s.length,y=d[g].tickValue;this._axisGroup.add(new o.Line({anid:null!=y?"line_"+d[g].tickValue:null,subPixelOptimize:!0,shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:i.defaults({stroke:s[m]},p),silent:!0}))}}},_minorSplitLine:function(e,t){var n=e.axis,i=e.getModel("minorSplitLine"),r=i.getModel("lineStyle"),a=t.coordinateSystem.getRect(),s=n.isHorizontal(),l=n.getMinorTicksCoords();if(l.length)for(var u=[],c=[],d=r.getLineStyle(),h=0;h<l.length;h++)for(var f=0;f<l[h].length;f++){var p=n.toGlobalCoord(l[h][f].coord);s?(u[0]=p,u[1]=a.y,c[0]=p,c[1]=a.y+a.height):(u[0]=a.x,u[1]=p,c[0]=a.x+a.width,c[1]=p),this._axisGroup.add(new o.Line({anid:"minor_line_"+l[h][f].tickValue,subPixelOptimize:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:d,silent:!0}))}},_splitArea:function(e,t){u(this,this._axisGroup,e,t)}});f.extend({type:"xAxis"}),f.extend({type:"yAxis"})},20594:function(e,t,n){var i=n(70492),o=n(33051),r=n(58608),a=n(63448),s=n(9344),l=n(51177),u=["axisLine","axisTickLabel","axisName"],c=i.extendComponentView({type:"parallelAxis",init:function(e,t){c.superApply(this,"init",arguments),(this._brushController=new a(t.getZr())).on("brush",o.bind(this._onBrush,this))},render:function(e,t,n,i){if(!d(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),e.get("show")){var s=f(e,t),c=s.coordinateSystem,h=e.getAreaSelectStyle(),p=h.width,g=e.axis.dim,v=c.getAxisLayout(g),m=o.extend({strokeContainThreshold:p},v),y=new r(e,m);o.each(u,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(m,h,e,s,p,n);var x=i&&!1===i.animation?null:e;l.groupTransition(a,this._axisGroup,x)}}},_refreshBrushController:function(e,t,n,i,o,r){var a=n.axis.getExtent(),u=a[1]-a[0],c=Math.min(30,.1*Math.abs(u)),d=l.BoundingRect.create({x:a[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(d),isTargetByCursor:s.makeRectIsTargetByCursor(d,r,i),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(d,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(h(n))},_onBrush:function(e,t){var n=this.axisModel,i=n.axis,r=o.map(e,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},dispose:function(){this._brushController.dispose()}});function d(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function h(e){var t=e.axis;return o.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function f(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var p=c;e.exports=p},81832:function(e,t,n){var i=n(33051),o=n(51177),r=n(58608),a=n(11726),s=["axisLine","axisTickLabel","axisName"],l=["splitLine","splitArea","minorSplitLine"],u=a.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,o=n.polar,a=o.getAngleAxis(),u=n.getTicksCoords(),d=n.getMinorTicksCoords(),h=a.getExtent()[0],f=n.getExtent(),p=c(o,e,h),g=new r(e,p);i.each(s,g.add,g),this.group.add(g.getGroup()),i.each(l,(function(t){e.get(t+".show")&&!n.scale.isBlank()&&this["_"+t](e,o,h,f,u,d)}),this)}},_splitLine:function(e,t,n,r,a){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var d=[],h=0;h<a.length;h++){var f=c++%u.length;d[f]=d[f]||[],d[f].push(new o.Circle({shape:{cx:t.cx,cy:t.cy,r:a[h].coord}}))}for(h=0;h<d.length;h++)this.group.add(o.mergePath(d[h],{style:i.defaults({stroke:u[h%u.length],fill:null},l.getLineStyle()),silent:!0}))},_minorSplitLine:function(e,t,n,r,a,s){if(s.length){for(var l=e.getModel("minorSplitLine"),u=l.getModel("lineStyle"),c=[],d=0;d<s.length;d++)for(var h=0;h<s[d].length;h++)c.push(new o.Circle({shape:{cx:t.cx,cy:t.cy,r:s[d][h].coord}}));this.group.add(o.mergePath(c,{style:i.defaults({fill:null},u.getLineStyle()),silent:!0}))}},_splitArea:function(e,t,n,r,a){if(a.length){var s=e.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var d=[],h=a[0].coord,f=1;f<a.length;f++){var p=c++%u.length;d[p]=d[p]||[],d[p].push(new o.Sector({shape:{cx:t.cx,cy:t.cy,r0:h,r:a[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=a[f].coord}for(f=0;f<d.length;f++)this.group.add(o.mergePath(d[f],{style:i.defaults({fill:u[f%u.length]},l.getAreaStyle()),silent:!0}))}}});function c(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}e.exports=u},55165:function(e,t,n){var i=n(33051),o=n(58608),r=n(51177),a=n(48337),s=n(11726),l=n(77956),u=l.rectCoordAxisBuildSplitArea,c=l.rectCoordAxisHandleRemove,d=["axisLine","axisTickLabel","axisName"],h=["splitArea","splitLine"],f=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,t,n,s){var l=this.group;l.removeAll();var u=this._axisGroup;this._axisGroup=new r.Group;var c=a.layout(e),p=new o(e,c);i.each(d,p.add,p),l.add(this._axisGroup),l.add(p.getGroup()),i.each(h,(function(t){e.get(t+".show")&&this["_"+t](e)}),this),r.groupTransition(u,this._axisGroup,e),f.superCall(this,"render",e,t,n,s)},remove:function(){c(this)},_splitLine:function(e){var t=e.axis;if(!t.scale.isBlank()){var n=e.getModel("splitLine"),i=n.getModel("lineStyle"),o=i.get("width"),a=i.get("color");a=a instanceof Array?a:[a];for(var s=e.coordinateSystem.getRect(),l=t.isHorizontal(),u=[],c=0,d=t.getTicksCoords({tickModel:n}),h=[],f=[],p=0;p<d.length;++p){var g=t.toGlobalCoord(d[p].coord);l?(h[0]=g,h[1]=s.y,f[0]=g,f[1]=s.y+s.height):(h[0]=s.x,h[1]=g,f[0]=s.x+s.width,f[1]=g);var v=c++%a.length;u[v]=u[v]||[],u[v].push(new r.Line({subPixelOptimize:!0,shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:{lineWidth:o},silent:!0}))}for(p=0;p<u.length;++p)this.group.add(r.mergePath(u[p],{style:{stroke:a[p%a.length],lineDash:i.getLineDash(o),lineWidth:o},silent:!0}))}},_splitArea:function(e){u(this,this._axisGroup,e,e)}}),p=f;e.exports=p},77956:function(e,t,n){var i=n(33051),o=n(51177);function r(e,t,n,r){var a=n.axis;if(!a.scale.isBlank()){var s=n.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=r.coordinateSystem.getRect(),d=a.getTicksCoords({tickModel:s,clamp:!0});if(d.length){var h=u.length,f=e.__splitAreaColors,p=i.createHashMap(),g=0;if(f)for(var v=0;v<d.length;v++){var m=f.get(d[v].tickValue);if(null!=m){g=(m+(h-1)*v)%h;break}}var y=a.toGlobalCoord(d[0].coord),x=l.getAreaStyle();u=i.isArray(u)?u:[u];for(v=1;v<d.length;v++){var _,b,w,S,M=a.toGlobalCoord(d[v].coord);a.isHorizontal()?(_=y,b=c.y,w=M-_,S=c.height,y=_+w):(_=c.x,b=y,w=c.width,S=M-b,y=b+S);var I=d[v-1].tickValue;null!=I&&p.set(I,g),t.add(new o.Rect({anid:null!=I?"area_"+I:null,shape:{x:_,y:b,width:w,height:S},style:i.defaults({fill:u[g]},x),silent:!0})),g=(g+1)%h}e.__splitAreaColors=p}}}function a(e){e.__splitAreaColors=null}t.rectCoordAxisBuildSplitArea=r,t.rectCoordAxisHandleRemove=a},8985:function(e,t,n){var i=n(70492),o={type:"axisAreaSelect",event:"axisAreaSelected"};i.registerAction(o,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),i.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))},17817:function(e,t,n){var i=n(70492),o=n(7832);n(77471),n(22586),n(36793),n(21418),n(2190),i.registerPreprocessor(o)},22586:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(70492)),r=n(33051),a=n(30801),s=n(4272),l=["#ddd"],u=o.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,t){var n=this.option;!t&&a.replaceVisualOption(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:l},i.hasOwnProperty("liftZ")||(i.liftZ=5)},setAreas:function(e){e&&(this.areas=r.map(e,(function(e){return c(this.option,e)}),this))},setBrushOption:function(e){this.brushOption=c(this.option,e),this.brushType=this.brushOption.brushType}});function c(e,t){return r.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new s(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var d=u;e.exports=d},36793:function(e,t,n){var i=n(70492),o=n(33051),r=n(63448),a=n(77471),s=a.layoutCovers,l=i.extendComponentView({type:"brush",init:function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new r(t.getZr())).on("brush",o.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,u.apply(this,arguments)},updateTransform:function(e,t){return s(t),u.apply(this,arguments)},updateView:u,dispose:function(){this._brushController.dispose()},_onBrush:function(e,t){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:o.clone(e),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:o.clone(e),$from:n})}});function u(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}e.exports=l},21418:function(e,t,n){var i=n(70492);i.registerAction({type:"brush",event:"brush"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),i.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),i.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))},7832:function(e,t,n){var i=n(33051),o=["rect","polygon","keep","clear"];function r(e,t){var n=e&&e.brush;if(i.isArray(n)||(n=n?[n]:[]),n.length){var r=[];i.each(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var s=e&&e.toolbox;i.isArray(s)&&(s=s[0]),s||(s={feature:{}},e.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),c=u.type||(u.type=[]);c.push.apply(c,r),a(c),t&&!c.length&&c.push.apply(c,o)}}function a(e){var t={};i.each(e,(function(e){t[e]=1})),e.length=0,i.each(t,(function(t,n){e.push(n)}))}e.exports=r},95170:function(e,t,n){var i=n(40765),o=n(60479),r=n(51177),a=r.linePolygonIntersect,s={lineX:l(0),lineY:l(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&i.contain(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var s=e.x,l=e.y,u=e.width,c=e.height,d=r[0];return!!(i.contain(r,s,l)||i.contain(r,s+u,l)||i.contain(r,s,l+c)||i.contain(r,s+u,l+c)||o.create(e).contain(d[0],d[1])||a(s,l,s+u,l,r)||a(s,l,s,l+c,r)||a(s+u,l,s+u,l+c,r)||a(s,l+c,s+u,l+c,r))||void 0}}};function l(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var o=i.range,r=t[e];return u(r,o)}},rect:function(i,o,r){if(i){var a=r.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),u(s[0],a)||u(s[1],a)||u(a[0],s)||u(a[1],s)}}}}function u(e,t){return t[0]<=e&&e<=t[1]}var c=s;e.exports=c},77471:function(e,t,n){var i=n(70492),o=n(33051),r=n(60479),a=n(30801),s=n(95170),l=n(270),u=n(64562),c=["inBrush","outOfBrush"],d="__ecBrushSelect",h="__ecInBrushSelectEvent",f=i.PRIORITY.VISUAL.BRUSH;function p(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new u(t.option,e);n.setInputRanges(t.areas,e)}))}function g(e,t,n,i,o){if(o){var r=e.getZr();if(!r[h]){r[d]||(r[d]=v);var a=l.createOrUpdate(r,d,n,t);a(e,i)}}}function v(e,t){if(!e.isDisposed()){var n=e.getZr();n[h]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[h]=!1}}function m(e,t,n,i){for(var o=0,r=t.length;o<r;o++){var a=t[o];if(e[a.brushType](i,n,a.selectors,a))return!0}}function y(e){var t=e.brushSelector;if(o.isString(t)){var n=[];return o.each(s,(function(e,i){n[i]=function(n,i,o,r){var a=i.getItemLayout(n);return e[t](a,o,r)}})),n}if(o.isFunction(t)){var i={};return o.each(s,(function(e,n){i[n]=t})),i}return t}function x(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(o.isArray(n)?o.indexOf(n,t)<0:t!==n)}function _(e){var t=e.selectors={};return o.each(s[e.brushType],(function(n,i){t[i]=function(i){return n(i,t,e)}})),e}i.registerLayout(f,(function(e,t,n){e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),p(e)})),i.registerVisual(f,(function(e,t,n){var i,r,s=[];e.eachComponent({mainType:"brush"},(function(t,n){var l={brushId:t.id,brushIndex:n,brushName:t.name,areas:o.clone(t.areas),selected:[]};s.push(l);var u=t.option,d=u.brushLink,h=[],f=[],p=[],g=0;n||(i=u.throttleType,r=u.throttleDelay);var v=o.map(t.areas,(function(e){return _(o.defaults({boundingRect:b[e.brushType](e)},e))})),w=a.createVisualMappings(t.option,c,(function(e){e.mappingMethod="fixed"}));function S(e){return"all"===d||h[e]}function M(e){return!!e.length}function I(e,t){var n=e.coordinateSystem;g|=n.hasAxisBrushed(),S(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(f[t]=1)}))}function A(n,i,r){var a=y(n);if(a&&!x(t,i)&&(o.each(v,(function(i){a[i.brushType]&&t.brushTargetManager.controlSeries(i,n,e)&&r.push(i),g|=M(r)})),S(i)&&M(r))){var s=n.getData();s.each((function(e){m(a,r,s,e)&&(f[e]=1)}))}}o.isArray(d)&&o.each(d,(function(e){h[e]=1})),e.eachSeries((function(e,t){var n=p[t]=[];"parallel"===e.subType?I(e,t,n):A(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};l.selected.push(n);var i=y(e),o=p[t],r=e.getData(),s=S(t)?function(e){return f[e]?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return m(i,o,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(S(t)?g:M(o))&&a.applyVisual(c,w,r,s)}))})),g(t,i,r,s,n)}));var b={lineX:o.noop,lineY:o.noop,rect:function(e){return w(e.range)},polygon:function(e){for(var t,n=e.range,i=0,o=n.length;i<o;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var r=n[i];r[0]<t[0][0]&&(t[0][0]=r[0]),r[0]>t[0][1]&&(t[0][1]=r[0]),r[1]<t[1][0]&&(t[1][0]=r[1]),r[1]>t[1][1]&&(t[1][1]=r[1])}return t&&w(t)}};function w(e){return new r(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}t.layoutCovers=p},58362:function(e,t,n){n(74560),n(91724),n(12733)},12733:function(e,t,n){var i=n(70492),o=n(33051),r=n(51177),a=n(78988),s=n(85669),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},c=i.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(e,t,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,r=o.getRangeInfo(),a=o.getOrient();this._renderDayRect(e,r,i),this._renderLines(e,r,a,i),this._renderYearText(e,r,a,i),this._renderMonthText(e,a,i),this._renderWeekText(e,r,a,i)},_renderDayRect:function(e,t,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),s=i.getCellHeight(),l=t.start.time;l<=t.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToRect([l],!1).tl,c=new r.Rect({shape:{x:u[0],y:u[1],width:a,height:s},cursor:"default",style:o});n.add(c)}},_renderLines:function(e,t,n,i){var o=this,r=e.coordinateSystem,a=e.getModel("splitLine.lineStyle").getLineStyle(),s=e.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){h(u.formatedDate),0===c&&(u=r.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=r.getDateInfo(d)}function h(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);var l=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(l[0]),o._blpoints.push(l[l.length-1]),s&&o._drawSplitline(l,a,i)}h(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},_getEdgesPoints:function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],o="horizontal"===n?0:1;return i[0][o]=i[0][o]-t/2,i[1][o]=i[1][o]+t/2,i},_drawSplitline:function(e,t,n){var i=new r.Polyline({z2:20,shape:{points:e},style:t});n.add(i)},_getLinePointsOfOneWeek:function(e,t,n){var i=e.coordinateSystem;t=i.getDateInfo(t);for(var o=[],r=0;r<7;r++){var a=i.getNextNDay(t.time,r),s=i.dataToRect([a.time],!1);o[2*a.day]=s.tl,o[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return o},_formatterLabel:function(e,t){return"string"===typeof e&&e?a.formatTplSimple(e,t):"function"===typeof e?e(t):t.nameMap},_yearTextPositionControl:function(e,t,n,i,o){t=t.slice();var r=["center","bottom"];"bottom"===i?(t[1]+=o,r=["center","top"]):"left"===i?t[0]-=o:"right"===i?(t[0]+=o,r=["center","top"]):t[1]-=o;var a=0;return"left"!==i&&"right"!==i||(a=Math.PI/2),{rotation:a,position:t,style:{textAlign:r[0],textVerticalAlign:r[1]}}},_renderYearText:function(e,t,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var a=o.get("margin"),s=o.get("position");s||(s="horizontal"!==n?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,c=(l[0][1]+l[1][1])/2,d="horizontal"===n?0:1,h={top:[u,l[d][1]],bottom:[u,l[1-d][1]],left:[l[1-d][0],c],right:[l[d][0],c]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+"-"+t.end.y);var p=o.get("formatter"),g={start:t.start.y,end:t.end.y,nameMap:f},v=this._formatterLabel(p,g),m=new r.Text({z2:30});r.setTextStyle(m.style,o,{text:v}),m.attr(this._yearTextPositionControl(m,h[s],n,s,a)),i.add(m)}},_monthTextPositionControl:function(e,t,n,i,o){var r="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=o,t&&(r="center"),"start"===i&&(a="bottom")):(s+=o,t&&(a="middle"),"start"===i&&(r="right")),{x:s,y:l,textAlign:r,textVerticalAlign:a}},_renderMonthText:function(e,t,n){var i=e.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),s=i.get("margin"),u=i.get("position"),c=i.get("align"),d=[this._tlpoints,this._blpoints];o.isString(a)&&(a=l[a.toUpperCase()]||[]);var h="start"===u?0:1,f="horizontal"===t?0:1;s="start"===u?-s:s;for(var p="center"===c,g=0;g<d[h].length-1;g++){var v=d[h][g].slice(),m=this._firstDayOfMonth[g];if(p){var y=this._firstDayPoints[g];v[f]=(y[f]+d[0][g+1][f])/2}var x=i.get("formatter"),_=a[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:_},w=this._formatterLabel(x,b),S=new r.Text({z2:30});o.extend(r.setTextStyle(S.style,i,{text:w}),this._monthTextPositionControl(v,p,t,u,s)),n.add(S)}}},_weekTextPositionControl:function(e,t,n,i,o){var r="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+i+(u?1:-1)*o[0]/2,r=u?"right":"left"):(l=l+i+(u?1:-1)*o[1]/2,a=u?"bottom":"top"),{x:s,y:l,textAlign:r,textVerticalAlign:a}},_renderWeekText:function(e,t,n,i){var a=e.getModel("dayLabel");if(a.get("show")){var l=e.coordinateSystem,c=a.get("position"),d=a.get("nameMap"),h=a.get("margin"),f=l.getFirstDayOfWeek();o.isString(d)&&(d=u[d.toUpperCase()]||[]);var p=l.getNextNDay(t.end.time,7-t.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];h=s.parsePercent(h,g["horizontal"===n?0:1]),"start"===c&&(p=l.getNextNDay(t.start.time,-(7+t.fweek)).time,h=-h);for(var v=0;v<7;v++){var m=l.getNextNDay(p,v),y=l.dataToRect([m.time],!1).center,x=v;x=Math.abs((v+f)%7);var _=new r.Text({z2:30});o.extend(r.setTextStyle(_.style,a,{text:d[x]}),this._weekTextPositionControl(y,n,c,h,g)),i.add(_)}}}});e.exports=c},53665:function(e,t,n){n(32620),n(68569)},68569:function(e,t,n){n(71264),n(42719),n(12159),n(38036),n(70766),n(2536),n(72078)},60953:function(e,t,n){n(71264),n(42719),n(12159),n(49498),n(66100),n(2536),n(72078)},32620:function(e,t,n){n(71264),n(42719),n(12159),n(3496),n(45578),n(2536),n(72078)},13967:function(e,t,n){var i=n(33051),o=n(85669),r=n(6398),a=n(19233),s=i.each,l=o.asc,u=function(e,t,n,i){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function c(e,t,n){var i=[1/0,-1/0];return s(n,(function(e){var n=e.getData();n&&s(n.mapDimension(t,!0),(function(e){var t=n.getApproximateExtent(e);t[0]<i[0]&&(i[0]=t[0]),t[1]>i[1]&&(i[1]=t[1])}))})),i[1]<i[0]&&(i=[NaN,NaN]),d(e,i),i}function d(e,t){var n=e.getAxisModel(),i=n.getMin(!0),o="category"===n.get("type"),r=o&&n.getCategories().length;null!=i&&"dataMin"!==i&&"function"!==typeof i?t[0]=i:o&&(t[0]=r>0?0:NaN);var a=n.getMax(!0);return null!=a&&"dataMax"!==a&&"function"!==typeof a?t[1]=a:o&&(t[1]=r>0?r-1:NaN),n.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function h(e,t){var n=e.getAxisModel(),i=e._percentWindow,r=e._valueWindow;if(i){var a=o.getPixelPrecision(r,[0,500]);a=Math.min(a,20);var s=t||0===i[0]&&100===i[1];n.setRange(s?null:+r[0].toFixed(a),s?null:+r[1].toFixed(a))}}function f(e){var t=e._minMaxSpan={},n=e._dataZoomModel,i=e._dataExtent;s(["min","max"],(function(r){var a=n.get(r+"Span"),s=n.get(r+"ValueSpan");null!=s&&(s=e.getAxisModel().axis.scale.parse(s)),null!=s?a=o.linearMap(i[0]+s,i,[0,100],!0):null!=a&&(s=o.linearMap(a,[0,100],i,!0)-i[0]),t[r+"Span"]=a,t[r+"ValueSpan"]=s}))}u.prototype={constructor:u,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries((function(n){if(r.isCoordSupported(n.get("coordinateSystem"))){var i=this._dimName,o=t.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(o&&o.componentIndex)&&e.push(n)}}),this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,n,i=this._dimName,o=this.ecModel,r=this.getAxisModel(),a="x"===i||"y"===i;return a?(t="gridIndex",e="x"===i?"y":"x"):(t="polarIndex",e="angle"===i?"radius":"angle"),o.eachComponent(e+"Axis",(function(e){(e.get(t)||0)===(r.get(t)||0)&&(n=e)})),n},getMinMaxSpan:function(){return i.clone(this._minMaxSpan)},calculateDataWindow:function(e){var t,n=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,u=this._dataZoomModel.getRangePropMode(),c=[0,100],d=[],h=[];s(["start","end"],(function(i,a){var s=e[i],l=e[i+"Value"];"percent"===u[a]?(null==s&&(s=c[a]),l=r.parse(o.linearMap(s,c,n))):(t=!0,l=null==l?n[a]:r.parse(l),s=o.linearMap(l,n,c)),h[a]=l,d[a]=s})),l(h),l(d);var f=this._minMaxSpan;function p(e,t,n,i,s){var l=s?"Span":"ValueSpan";a(0,e,n,"all",f["min"+l],f["max"+l]);for(var u=0;u<2;u++)t[u]=o.linearMap(e[u],n,i,!0),s&&(t[u]=r.parse(t[u]))}return t?p(h,d,n,c,!1):p(d,h,c,n,!0),{valueWindow:h,percentWindow:d}},reset:function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=c(this,this._dimName,t),f(this);var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,h(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,h(this,!0))},filterData:function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),o=e.get("filterMode"),r=this._valueWindow;"none"!==o&&s(i,(function(e){var t=e.getData(),i=t.mapDimension(n,!0);i.length&&("weakFilter"===o?t.filterSelf((function(e){for(var n,o,a,s=0;s<i.length;s++){var l=t.get(i[s],e),u=!isNaN(l),c=l<r[0],d=l>r[1];if(u&&!c&&!d)return!0;u&&(a=!0),c&&(n=!0),d&&(o=!0)}return a&&n&&o})):s(i,(function(n){if("empty"===o)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var i={};i[n]=r,t.selectRange(i)}})),s(i,(function(e){t.setApproximateExtent(r,e)})))}))}function a(e){return e>=r[0]&&e<=r[1]}}};var p=u;e.exports=p},42719:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(70492)),r=n(33051),a=n(66387),s=n(32234),l=n(6398),u=n(13967),c=r.each,d=l.eachAxisDim,h=o.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,t,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=f(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this.doInit(i)},mergeOption:function(e){var t=f(e);r.merge(this.option,e,!0),r.merge(this.settledOption,t,!0),this.doInit(t)},doInit:function(e){var t=this.option;a.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),p(this,e);var n=this.settledOption;c([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis((function(t,n,i,o){var r=this.dependentModels[t.axis][n],a=r.__dzAxisProxy||(r.__dzAxisProxy=new u(t.name,n,this,o));e[t.name+"_"+n]=a}),this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();d((function(t){var n=t.axisIndex;e[n]=s.normalizeToArray(e[n])}),this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;d((function(n){null!=e[n.axisIndex]&&(t=!0)}),this);var n=e.orient;return null==n&&t?"orient":t?void 0:(null==n&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),n=this.option,i=this.dependentModels;if(e){var o="vertical"===t?"y":"x";i[o+"Axis"].length?(n[o+"AxisIndex"]=[0],e=!1):c(i.singleAxis,(function(i){e&&i.get("orient",!0)===t&&(n.singleAxisIndex=[i.componentIndex],e=!1)}))}e&&d((function(t){if(e){var i=[],o=this.dependentModels[t.axis];if(o.length&&!i.length)for(var r=0,a=o.length;r<a;r++)"category"===o[r].get("type")&&i.push(r);n[t.axisIndex]=i,i.length&&(e=!1)}}),this),e&&this.ecModel.eachSeries((function(e){this._isSeriesHasAllAxesTypeOf(e,"value")&&d((function(t){var i=n[t.axisIndex],o=e.get(t.axisIndex),a=e.get(t.axisId),s=e.ecModel.queryComponents({mainType:t.axis,index:o,id:a})[0];o=s.componentIndex,r.indexOf(i,o)<0&&i.push(o)}))}),this)},_autoSetOrient:function(){var e;this.eachTargetAxis((function(t){!e&&(e=t.name)}),this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,t){var n=!0;return d((function(i){var o=e.get(i.axisIndex),r=this.dependentModels[i.axis][o];r&&r.get("type")===t||(n=!1)}),this),n},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return d((function(t){if(null==e){var n=this.get(t.axisIndex);n.length&&(e=this.dependentModels[t.axis][n[0]])}}),this),e},eachTargetAxis:function(e,t){var n=this.ecModel;d((function(i){c(this.get(i.axisIndex),(function(o){e.call(t,i,o,this,n)}),this)}),this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var n=this.getAxisProxy(e,t);return n&&n.getAxisModel()},setRawRange:function(e){var t=this.option,n=this.settledOption;c([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),p(this,e)},setCalculatedRange:function(e){var t=this.option;c(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t=this._axisProxies;for(var n in t)if(t.hasOwnProperty(n)&&t[n].hostedBy(this))return t[n];for(var n in t)if(t.hasOwnProperty(n)&&!t[n].hostedBy(this))return t[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function f(e){var t={};return c(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function p(e,t){var n=e._rangePropMode,i=e.get("rangeMode");c([["start","startValue"],["end","endValue"]],(function(e,o){var r=null!=t[e[0]],a=null!=t[e[1]];r&&!a?n[o]="percent":!r&&a?n[o]="value":i?n[o]=i[o]:r&&(n[o]="percent")}))}var g=h;e.exports=g},12159:function(e,t,n){var i=n(33166),o=i.extend({type:"dataZoom",render:function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},getTargetCoordInfo:function(){var e=this.dataZoomModel,t=this.ecModel,n={};function i(e,t,n,i){for(var o,r=0;r<n.length;r++)if(n[r].model===e){o=n[r];break}o||n.push(o={model:e,axisModels:[],coordIndex:i}),o.axisModels.push(t)}return e.eachTargetAxis((function(e,o){var r=t.getComponent(e.axis,o);if(r){var a=r.getCoordSysModel();a&&i(a,r,n[a.mainType]||(n[a.mainType]=[]),a.componentIndex)}}),this),n}});e.exports=o},38036:function(e,t,n){var i=n(42719),o=i.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});e.exports=o},70766:function(e,t,n){var i=n(33051),o=n(12159),r=n(19233),a=n(15992),s=i.bind,l=o.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,n,o){l.superApply(this,"render",arguments),this._range=e.getPercentRange(),i.each(this.getTargetCoordInfo(),(function(t,o){var r=i.map(t,(function(e){return a.generateCoordId(e.model)}));i.each(t,(function(t){var l=t.model,c={};i.each(["pan","zoom","scrollMove"],(function(e){c[e]=s(u[e],this,t,o)}),this),a.register(n,{coordId:a.generateCoordId(l),allCoordIds:r,containsPoint:function(e,t,n){return l.coordinateSystem.containPoint([t,n])},dataZoomId:e.id,dataZoomModel:e,getRange:c})}),this)}),this)},dispose:function(){a.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),u={zoom:function(e,t,n,i){var o=this._range,a=o.slice(),s=e.axisModels[0];if(s){var l=d[t](null,[i.originX,i.originY],s,n,e),u=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/i.scale,0);a[0]=(a[0]-u)*c+u,a[1]=(a[1]-u)*c+u;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return r(0,a,[0,100],0,h.minSpan,h.maxSpan),this._range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}},pan:c((function(e,t,n,i,o,r){var a=d[i]([r.oldX,r.oldY],[r.newX,r.newY],t,o,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:c((function(e,t,n,i,o,r){var a=d[i]([0,0],[r.scrollDelta,r.scrollDelta],t,o,n);return a.signal*(e[1]-e[0])*r.scrollDelta}))};function c(e){return function(t,n,i,o){var a=this._range,s=a.slice(),l=t.axisModels[0];if(l){var u=e(s,l,t,n,i,o);return r(u,s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1]?s:void 0}}}var d={grid:function(e,t,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem.getRect();return e=e||[0,0],"x"===r.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(e,t,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(e,t,n,i,o){var r=n.axis,a=o.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===r.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}},h=l;e.exports=h},49498:function(e,t,n){var i=n(42719),o=i.extend({type:"dataZoom.select"});e.exports=o},66100:function(e,t,n){var i=n(12159),o=i.extend({type:"dataZoom.select"});e.exports=o},3496:function(e,t,n){var i=n(42719),o=i.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),r=o;e.exports=r},45578:function(e,t,n){var i=n(33051),o=n(61158),r=n(51177),a=n(270),s=n(12159),l=n(85669),u=n(76172),c=n(19233),d=r.Rect,h=l.linearMap,f=l.asc,p=i.bind,g=i.each,v=7,m=1,y=30,x="horizontal",_="vertical",b=5,w=["line","bar","candlestick","scatter"],S=s.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,n,i){S.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){S.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){S.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new r.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,n=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},r=this._orient===x?{right:o.width-n.x-n.width,top:o.height-y-v,width:n.width,height:y}:{right:v,top:n.y,width:y,height:n.height},a=u.getLayoutParams(e.option);i.each(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=r[e])}));var s=u.getLayoutRect(a,o,e.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===_&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),r=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==x||o?n===x&&o?{scale:a?[-1,1]:[-1,-1]}:n!==_||o?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=e.getBoundingRect([r]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.barGroup;n.add(new d({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),n.add(new d({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:i.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,n=e.series,o=n.getRawData(),a=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=a){var s=o.getDataExtent(a),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,c=[0,t[1]],d=[0,t[0]],f=[[t[0],0],[0,0]],p=[],g=d[1]/(o.count()-1),v=0,m=Math.round(o.count()/t[0]);o.each([a],(function(e,t){if(m>0&&t%m)v+=g;else{var n=null==e||isNaN(e)||""===e,i=n?0:h(e,s,c,!0);n&&!u&&t?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&u&&(f.push([v,0]),p.push([v,0])),f.push([v,i]),p.push([v,i]),v+=g,u=n}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new r.Polygon({shape:{points:f},style:i.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new r.Polyline({shape:{points:p},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,o=this.ecModel;return e.eachTargetAxis((function(r,a){var s=e.getAxisProxy(r.name,a).getTargetSeriesModels();i.each(s,(function(e){if(!n&&!(!0!==t&&i.indexOf(w,e.get("type"))<0)){var s,l=o.getComponent(r.axis,a).axis,u=M(r.name),c=e.coordinateSystem;null!=u&&c.getOtherAxis&&(s=c.getOtherAxis(l).inverse),u=e.getData().mapDimension(u),n={thisAxis:l,series:e,thisDim:r.name,otherDim:u,otherAxisInverse:s}}}),this)}),this),n}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],n=e.handleLabels=[],i=this._displayables.barGroup,o=this._size,a=this.dataZoomModel;i.add(e.filler=new d({draggable:!0,cursor:I(this._orient),drift:p(this._onDragMove,this,"all"),ondragstart:p(this._showDataInfo,this,!0),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),i.add(new d({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:m,fill:"rgba(0,0,0,0)"}})),g([0,1],(function(e){var o=r.createIcon(a.get("handleIcon"),{cursor:I(this._orient),draggable:!0,drift:p(this._onDragMove,this,e),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=o.getBoundingRect();this._handleHeight=l.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,o.setStyle(a.getModel("handleStyle").getItemStyle());var u=a.get("handleColor");null!=u&&(o.style.fill=u),i.add(t[e]=o);var c=a.textStyleModel;this.group.add(n[e]=new r.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:c.getTextColor(),textFont:c.getFont()},z2:10}))}),this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[h(e[0],[0,100],t,!0),h(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];c(t,i,o,n.get("zoomLock")?"all":e,null!=r.minSpan?h(r.minSpan,a,o,!0):null,null!=r.maxSpan?h(r.maxSpan,a,o,!0):null);var s=this._range,l=this._range=f([h(i[0],o,a,!0),h(i[1],o,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(e){var t=this._displayables,n=this._handleEnds,i=f(n.slice()),o=this._size;g([0,1],(function(e){var i=t.handles[e],r=this._handleHeight;i.attr({scale:[r/2,r/2],position:[n[e],o[1]/2-r/2]})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,a=["",""];if(t.get("showDetail")){var s=t.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,c=e?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var d=f(this._handleEnds.slice());function h(e){var t=r.getTransform(n.handles[e].parent,this.group),s=r.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+b,u=r.applyTransform([d[e]+(0===e?-l:l),this._size[1]/2],t);i[e].setStyle({x:u[0],y:u[1],textVerticalAlign:o===x?"middle":s,textAlign:o===x?s:"center",text:a[e]})}h.call(this,0),h.call(this,1)},_formatLabel:function(e,t){var n=this.dataZoomModel,o=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(r,20));return i.isFunction(o)?o(e,a):i.isString(o)?o.replace("{value}",a):a},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,n,i){this._dragging=!0,o.stop(i.event);var a=this._displayables.barGroup.getLocalTransform(),s=r.applyTransform([t,n],a,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,n=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,r=this._updateInterval("all",n[0]-o);this._updateView(),r&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(g(this.getTargetCoordInfo(),(function(t){if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}})),!e){var t=this.api.getWidth(),n=this.api.getHeight();e={x:.2*t,y:.2*n,width:.6*t,height:.6*n}}return e}});function M(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function I(e){return"vertical"===e?"ns-resize":"ew-resize"}var A=S;e.exports=A},72078:function(e,t,n){var i=n(70492),o=n(33051),r=n(6398);i.registerAction("dataZoom",(function(e,t){var n=r.createLinkedNodesFinder(o.bind(t.eachComponent,t,"dataZoom"),r.eachAxisDim,(function(e,t){return e.get(t.axisIndex)})),i=[];t.eachComponent({mainType:"dataZoom",query:e},(function(e,t){i.push.apply(i,n(e).nodes)})),o.each(i,(function(t,n){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))},2536:function(e,t,n){var i=n(70492),o=n(33051),r=o.createHashMap,a=o.each;i.registerProcessor({getTargetSeries:function(e){var t=r();return e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,n,i){var o=i.getAxisProxy(e.name,n);a(o.getTargetSeriesModels(),(function(e){t.set(e.uid,e)}))}))})),t},modifyOutputEnd:!0,overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,n,i){i.getAxisProxy(e.name,n).reset(i,t)})),e.eachTargetAxis((function(e,n,i){i.getAxisProxy(e.name,n).filterData(i,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy(),n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}))}})},6398:function(e,t,n){var i=n(33051),o=n(78988),r=["x","y","z","radius","angle","single"],a=["cartesian2d","polar","singleAxis"];function s(e){return i.indexOf(a,e)>=0}function l(e,t){e=e.slice();var n=i.map(e,o.capitalFirst);t=(t||[]).slice();var r=i.map(t,o.capitalFirst);return function(o,a){i.each(e,(function(e,i){for(var s={name:e,capital:n[i]},l=0;l<t.length;l++)s[t[l]]=e+r[l];o.call(a,s)}))}}var u=l(r,["axisIndex","axis","index","id"]);function c(e,t,n){return function(n){var i,s={nodes:[],records:{}};if(t((function(e){s.records[e.name]={}})),!n)return s;a(n,s);do{i=!1,e(l)}while(i);function l(e){!o(e,s)&&r(e,s)&&(a(e,s),i=!0)}return s};function o(e,t){return i.indexOf(t.nodes,e)>=0}function r(e,o){var r=!1;return t((function(t){i.each(n(e,t)||[],(function(e){o.records[t.name][e]&&(r=!0)}))})),r}function a(e,o){o.nodes.push(e),t((function(t){i.each(n(e,t)||[],(function(e){o.records[t.name][e]=!0}))}))}}t.isCoordSupported=s,t.createNameEach=l,t.eachAxisDim=u,t.createLinkedNodesFinder=c},29570:function(e,t,n){var i=n(33051),o=i.each,r="\0_ec_hist_store";function a(e,t){var n=c(e);o(t,(function(t,i){for(var o=n.length-1;o>=0;o--){var r=n[o];if(r[i])break}if(o<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function s(e){var t=c(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return o(n,(function(e,n){for(var o=t.length-1;o>=0;o--){e=t[o][n];if(e){i[n]=e;break}}})),i}function l(e){e[r]=null}function u(e){return c(e).length}function c(e){var t=e[r];return t||(t=e[r]=[{}]),t}t.push=a,t.pop=s,t.clear=l,t.count=u},15992:function(e,t,n){var i=n(33051),o=n(9176),r=n(270),a="\0_ec_dataZoom_roams";function s(e,t){var n=c(e),o=t.dataZoomId,a=t.coordId;i.each(n,(function(e,n){var r=e.dataZoomInfos;r[o]&&i.indexOf(t.allCoordIds,a)<0&&(delete r[o],e.count--)})),h(n);var s=n[a];s||(s=n[a]={coordId:a,dataZoomInfos:{},count:0},s.controller=d(e,s),s.dispatchAction=i.curry(f,e)),!s.dataZoomInfos[o]&&s.count++,s.dataZoomInfos[o]=t;var l=p(s.dataZoomInfos);s.controller.enable(l.controlType,l.opt),s.controller.setPointerChecker(t.containsPoint),r.createOrUpdate(s,"dispatchAction",t.dataZoomModel.get("throttle",!0),"fixRate")}function l(e,t){var n=c(e);i.each(n,(function(e){e.controller.dispose();var n=e.dataZoomInfos;n[t]&&(delete n[t],e.count--)})),h(n)}function u(e){return e.type+"\0_"+e.id}function c(e){var t=e.getZr();return t[a]||(t[a]={})}function d(e,t){var n=new o(e.getZr());return i.each(["pan","zoom","scrollMove"],(function(e){n.on(e,(function(n){var o=[];i.each(t.dataZoomInfos,(function(i){if(n.isAvailableBehavior(i.dataZoomModel.option)){var r=(i.getRange||{})[e],a=r&&r(t.controller,n);!i.dataZoomModel.get("disabled",!0)&&a&&o.push({dataZoomId:i.dataZoomId,start:a[0],end:a[1]})}})),o.length&&t.dispatchAction(o)}))})),n}function h(e){i.each(e,(function(t,n){t.count||(t.controller.dispose(),delete e[n])}))}function f(e,t){e.dispatchAction({type:"dataZoom",batch:t})}function p(e){var t,n="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return i.each(e,(function(e){var i=e.dataZoomModel,a=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");o[n+a]>o[n+t]&&(t=a),r&=i.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}t.register=s,t.unregister=l,t.generateCoordId=u},71264:function(e,t,n){var i=n(98071);i.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},81768:function(e,t,n){var i=n(98071),o=n(33166),r=n(61772),a=r.detectSourceFormat,s=n(93819),l=s.SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:l,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){a(this)}}),o.extend({type:"dataset"})},48807:function(e,t,n){var i=n(70492),o=n(33051);function r(e,t){t.update="updateView",i.registerAction(t,(function(t,n){var i={};return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var r=n.coordinateSystem;o.each(r.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}))})),{selected:i,name:t.name}}))}n(39618),n(18958),n(26062),n(28401),r("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),r("select",{type:"geoSelect",event:"geoselected"}),r("unSelect",{type:"geoUnSelect",event:"geounselected"})},26062:function(e,t,n){var i=n(44121),o=n(70492),r=o.extendComponentView({type:"geo",init:function(e,t){var n=new i(t,!0);this._mapDraw=n,this.group.add(n.group)},render:function(e,t,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var o=this._mapDraw;e.get("show")?o.draw(e,t,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});e.exports=r},78644:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(70492)),r=n(33051),a=n(32234),s=n(51177),l=n(76172),u=n(85669),c=u.parsePercent,d={path:null,compoundPath:null,group:s.Group,image:s.Image,text:s.Text};o.registerPreprocessor((function(e){var t=e.graphic;r.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}));var h=o.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,h.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var n=this.option,i=(t?n:e).elements,o=n.elements=t?[]:n.elements,s=[];this._flatten(i,s);var l=a.mappingToExists(o,s);a.makeIdAndName(l);var u=this._elOptionsToUpdate=[];r.each(l,(function(e,t){var n=e.option;n&&(u.push(n),m(e,n),y(o,t,n),x(o[t],n))}),this);for(var c=o.length-1;c>=0;c--)null==o[c]?o.splice(c,1):delete o[c].$action},_flatten:function(e,t,n){r.each(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;"group"===e.type&&i&&this._flatten(i,t,e),delete e.children}}),this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});function f(e,t,n,i){var o=n.type,r=d.hasOwnProperty(o)?d[o]:s.getShapeClass(o),a=new r(n);t.add(a),i.set(e,a),a.__ecGraphicId=e}function p(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse((function(e){p(e,t)})),t.removeKey(e.__ecGraphicId),n.remove(e))}function g(e){return e=r.extend({},e),r.each(["id","parentId","$action","hv","bounding"].concat(l.LOCATION_PARAMS),(function(t){delete e[t]})),e}function v(e,t){var n;return r.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function m(e,t){var n=e.exist;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function y(e,t,n){var i=r.extend({},n),o=e[t],a=n.$action||"merge";"merge"===a?o?(r.merge(o,i,!0),l.mergeLayoutParam(o,i,{ignoreSize:!0}),l.copyLayoutParams(n,o)):e[t]=i:"replace"===a?e[t]=i:"remove"===a&&o&&(e[t]=null)}function x(e,t){e&&(e.hv=t.hv=[v(t,["left","right"]),v(t,["top","bottom"])],"group"===e.type&&(null==e.width&&(e.width=t.width=0),null==e.height&&(e.height=t.height=0)))}function _(e,t,n){var i=e.eventData;e.silent||e.ignore||i||(i=e.eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=e.info)}o.extendComponentView({type:"graphic",init:function(e,t){this._elMap=r.createHashMap(),this._lastGraphicModel},render:function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},_updateElements:function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group;r.each(t,(function(t){var o=t.$action,r=t.id,a=n.get(r),s=t.parentId,l=null!=s?n.get(s):i,u=t.style;"text"===t.type&&u&&(t.hv&&t.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke));var c=g(t);o&&"merge"!==o?"replace"===o?(p(a,n),f(r,l,c,n)):"remove"===o&&p(a,n):a?a.attr(c):f(r,l,c,n);var d=n.get(r);d&&(d.__ecGraphicWidthOption=t.width,d.__ecGraphicHeightOption=t.height,_(d,e,t))}))}},_relocate:function(e,t){for(var n=e.option.elements,i=this.group,o=this._elMap,r=t.getWidth(),a=t.getHeight(),s=0;s<n.length;s++){var u=n[s],d=o.get(u.id);if(d&&d.isGroup){var h=d.parent,f=h===i;d.__ecGraphicWidth=c(d.__ecGraphicWidthOption,f?r:h.__ecGraphicWidth)||0,d.__ecGraphicHeight=c(d.__ecGraphicHeightOption,f?a:h.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){u=n[s],d=o.get(u.id);if(d){h=d.parent;var p=h===i?{width:r,height:a}:{width:h.__ecGraphicWidth,height:h.__ecGraphicHeight};l.positionElement(d,u,p,null,{hv:u.hv,boundingMode:u.bounding})}}},_clear:function(){var e=this._elMap;e.each((function(t){p(t,e)})),this._elMap=r.createHashMap()},dispose:function(){this._clear()}})},82601:function(e,t,n){n(84617),n(97326),n(52528)},84617:function(e,t,n){var i=n(70492),o=n(33051),r=n(51177);n(77532),n(88791),i.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new r.Rect({shape:e.coordinateSystem.getRect(),style:o.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),i.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))},63448:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=n(41502),a=n(51177),s=n(20582),l=n(4130),u=o.curry,c=o.each,d=o.map,h=Math.min,f=Math.max,p=Math.pow,g=1e4,v=6,m=6,y="globalPan",x={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},_={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},b={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},w=0;function S(e){r.call(this),this._zr=e,this.group=new a.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+w++,this._handlers={},c(oe,(function(e,t){this._handlers[t]=o.bind(e,this)}),this)}function M(e,t){var n=e._zr;e._enableGlobalPan||s.take(n,y,e._uid),A(n,e._handlers),e._brushType=t.brushType,e._brushOption=o.merge(o.clone(b),t,!0)}function I(e){var t=e._zr;s.release(t,y,e._uid),k(t,e._handlers),e._brushType=e._brushOption=null}function A(e,t){c(t,(function(t,n){e.on(n,t)}))}function k(e,t){c(t,(function(t,n){e.off(n,t)}))}function P(e,t){var n=se[t.brushType].createCover(e,t);return n.__brushOption=t,T(n,t),e.group.add(n),n}function C(e,t){var n=D(t);return n.endCreating&&(n.endCreating(e,t),T(t,t.__brushOption)),t}function E(e,t){var n=t.__brushOption;D(t).updateCoverShape(e,t,n.range,n)}function T(e,t){var n=t.z;null==n&&(n=g),e.traverse((function(e){e.z=n,e.z2=n}))}function N(e,t){D(t).updateCommon(e,t),E(e,t)}function D(e){return se[e.__brushOption.brushType]}function O(e,t,n){var i,o=e._panels;if(!o)return!0;var r=e._transform;return c(o,(function(e){e.isTargetByCursor(t,n,r)&&(i=e)})),i}function L(e,t){var n=e._panels;if(!n)return!0;var i=t.__brushOption.panelId;return null==i||n[i]}function V(e){var t=e._covers,n=t.length;return c(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function R(e,t){var n=d(e._covers,(function(e){var t=e.__brushOption,n=o.clone(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",n,{isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function B(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],o=n[0]-i[0],r=n[1]-i[1],a=p(o*o+r*r,.5);return a>v}function z(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function W(e,t,n,i){var o=new a.Group;return o.add(new a.Rect({name:"main",style:H(n),silent:!0,draggable:!0,cursor:"move",drift:u(e,t,o,"nswe"),ondragend:u(R,t,{isEnd:!0})})),c(i,(function(n){o.add(new a.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:u(e,t,o,n),ondragend:u(R,t,{isEnd:!0})}))})),o}function F(e,t,n,i){var o=i.brushStyle.lineWidth||0,r=f(o,m),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,c=n[0][1],d=n[1][1],h=c-r+o/2,p=d-r+o/2,g=c-a,v=d-s,y=g+o,x=v+o;$(e,t,"main",a,s,g,v),i.transformable&&($(e,t,"w",l,u,r,x),$(e,t,"e",h,u,r,x),$(e,t,"n",l,u,y,r),$(e,t,"s",l,p,y,r),$(e,t,"nw",l,u,r,r),$(e,t,"ne",h,u,r,r),$(e,t,"sw",l,p,r,r),$(e,t,"se",h,p,r,r))}function U(e,t){var n=t.__brushOption,i=n.transformable,o=t.childAt(0);o.useStyle(H(n)),o.attr({silent:!i,cursor:i?"move":"default"}),c(["w","e","n","s","se","sw","ne","nw"],(function(n){var o=t.childOfName(n),r=Y(e,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?_[r]+"-resize":null})}))}function $(e,t,n,i,o,r,a){var s=t.childOfName(n);s&&s.setShape(K(J(e,t,[[i,o],[i+r,o+a]])))}function H(e){return o.defaults({strokeNoScale:!0},e.brushStyle)}function j(e,t,n,i){var o=[h(e,n),h(t,i)],r=[f(e,n),f(t,i)];return[[o[0],r[0]],[o[1],r[1]]]}function G(e){return a.getTransform(e.group)}function Y(e,t){if(t.length>1){t=t.split("");var n=[Y(e,t[0]),Y(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},o={left:"w",right:"e",top:"n",bottom:"s"};n=a.transformDirection(i[t],G(e));return o[n]}function Z(e,t,n,i,o,r,a,s){var l=i.__brushOption,u=e(l.range),d=X(n,r,a);c(o.split(""),(function(e){var t=x[e];u[t[0]][t[1]]+=d[t[0]]})),l.range=t(j(u[0][0],u[1][0],u[0][1],u[1][1])),N(n,i),R(n,{isEnd:!1})}function q(e,t,n,i,o){var r=t.__brushOption.range,a=X(e,n,i);c(r,(function(e){e[0]+=a[0],e[1]+=a[1]})),N(e,t),R(e,{isEnd:!1})}function X(e,t,n){var i=e.group,o=i.transformCoordToLocal(t,n),r=i.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function J(e,t,n){var i=L(e,t);return i&&!0!==i?i.clipPath(n,e._transform):o.clone(n)}function K(e){var t=h(e[0][0],e[1][0]),n=h(e[0][1],e[1][1]),i=f(e[0][0],e[1][0]),o=f(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:o-n}}function Q(e,t,n){if(e._brushType&&!ae(e,t)){var i=e._zr,o=e._covers,r=O(e,t,n);if(!e._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(!0===r||s.panelId===r.panelId)&&se[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function ee(e){var t=e.event;t.preventDefault&&t.preventDefault()}function te(e,t,n){return e.childOfName("main").contain(t,n)}function ne(e,t,n,i){var r,a=e._creatingCover,s=e._creatingPanel,l=e._brushOption;if(e._track.push(n.slice()),B(e)||a){if(s&&!a){"single"===l.brushMode&&V(e);var u=o.clone(l);u.brushType=ie(u.brushType,s),u.panelId=!0===s?null:s.panelId,a=e._creatingCover=P(e,u),e._covers.push(a)}if(a){var c=se[ie(e._brushType,s)],d=a.__brushOption;d.range=c.getCreatingRange(J(e,a,e._track)),i&&(C(e,a),c.updateCommon(e,a)),E(e,a),r={isEnd:i}}}else i&&"single"===l.brushMode&&l.removeOnClick&&O(e,t,n)&&V(e)&&(r={isEnd:i,removeOnClick:!0});return r}function ie(e,t){return"auto"===e?t.defaultBrushType:e}S.prototype={constructor:S,enableBrush:function(e){return this._brushType&&I(this),e.brushType&&M(this,e),this},setPanels:function(e){if(e&&e.length){var t=this._panels={};o.each(e,(function(e){t[e.panelId]=o.clone(e)}))}else this._panels=null;return this},mount:function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({position:e.position||[0,0],rotation:e.rotation||0,scale:e.scale||[1,1]}),this._transform=t.getLocalTransform(),this},eachCover:function(e,t){c(this._covers,e,t)},updateCovers:function(e){e=o.map(e,(function(e){return o.merge(o.clone(b),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,a=this._creatingCover;return new l(n,e,u,s).add(c).update(c).remove(d).execute(),this;function s(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function u(e,t){return s(e.__brushOption,t)}function c(t,o){var s=e[t];if(null!=o&&n[o]===a)i[t]=n[o];else{var l=i[t]=null!=o?(n[o].__brushOption=s,n[o]):C(r,P(r,s));N(r,l)}}function d(e){n[e]!==a&&r.group.remove(n[e])}},unmount:function(){return this.enableBrush(!1),V(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},o.mixin(S,r);var oe={mousedown:function(e){if(this._dragging)re(this,e);else if(!e.target||!e.target.draggable){ee(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=O(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(Q(this,e,i),this._dragging){ee(e);var o=ne(this,e,i,!1);o&&R(this,o)}},mouseup:function(e){re(this,e)}};function re(e,t){if(e._dragging){ee(t);var n=t.offsetX,i=t.offsetY,o=e.group.transformCoordToLocal(n,i),r=ne(e,t,o,!0);e._dragging=!1,e._track=[],e._creatingCover=null,r&&R(e,r)}}function ae(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var se={lineX:le(0),lineY:le(1),rect:{createCover:function(e,t){return W(u(Z,(function(e){return e}),(function(e){return e})),e,t,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(e){var t=z(e);return j(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){F(e,t,n,i)},updateCommon:U,contain:te},polygon:{createCover:function(e,t){var n=new a.Group;return n.add(new a.Polyline({name:"main",style:H(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new a.Polygon({name:"main",draggable:!0,drift:u(q,e,t),ondragend:u(R,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:J(e,t,n)})},updateCommon:U,contain:te}};function le(e){return{createCover:function(t,n){return W(u(Z,(function(t){var n=[t,[0,100]];return e&&n.reverse(),n}),(function(t){return t[e]})),t,n,[["w","e"],["n","s"]][e])},getCreatingRange:function(t){var n=z(t),i=h(n[0][e],n[1][e]),o=f(n[0][e],n[1][e]);return[i,o]},updateCoverShape:function(t,n,i,o){var r,a=L(t,n);if(!0!==a&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(e,t._transform);else{var s=t._zr;r=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,r];e&&l.reverse(),F(t,n,l,o)},updateCommon:U,contain:te}}var ue=S;e.exports=ue},64562:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=n(51177),a=n(32234),s=n(9344),l=o.each,u=o.indexOf,c=o.curry,d=["dataToPoint","pointToData"],h=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function f(e,t,n){var i=this._targetInfoList=[],o={},r=v(t,e);l(m,(function(e,t){(!n||!n.include||u(n.include,t)>=0)&&e(r,i,o)}))}var p=f.prototype;function g(e){return e[0]>e[1]&&e.reverse(),e}function v(e,t){return a.parseFinder(e,t,{includeMainTypes:h})}p.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=_[e.brushType](0,n,t);e.__rangeOffset={offset:w[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}}))},p.matchOutputRanges=function(e,t,n){l(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&o.each(i.coordSyses,(function(i){var o=_[e.brushType](1,i,e.range);n(e,o.values,i,t)}))}),this)},p.setInputRanges=function(e,t){l(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=_[e.brushType](0,n.coordSys,e.coordRange),o=e.__rangeOffset;e.range=o?w[e.brushType](i.values,o.offset,M(i.xyMinMax,o.xyMinMax)):i.values}}),this)},p.makePanelOpts=function(e,t){return o.map(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t&&t(n),clipPath:s.makeRectPanelClipPath(i),isTargetByCursor:s.makeRectIsTargetByCursor(i,e,n.coordSysModel),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(i)}}))},p.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&u(i.coordSyses,t.coordinateSystem)>=0},p.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=v(t,e),o=0;o<n.length;o++){var r=n[o],a=e.panelId;if(a){if(r.panelId===a)return r}else for(o=0;o<y.length;o++)if(y[o](i,r))return r}return!0};var m={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,a=o.createHashMap(),s={},c={};(n||i||r)&&(l(n,(function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0})),l(i,(function(e){var t=e.axis.grid.model;a.set(t.id,t),c[t.id]=!0})),l(r,(function(e){a.set(e.id,e),s[e.id]=!0,c[e.id]=!0})),a.each((function(e){var o=e.coordinateSystem,r=[];l(o.getCartesians(),(function(e,t){(u(n,e.getAxis("x").model)>=0||u(i,e.getAxis("y").model)>=0)&&r.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:r[0],coordSyses:r,getPanelRect:x.grid,xAxisDeclared:s[e.id],yAxisDeclared:c[e.id]})})))},geo:function(e,t){l(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:x.geo})}))}},y=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,o=e.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],x={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(r.getTransform(e)),t}},_={lineX:c(b,0),lineY:c(b,1),rect:function(e,t,n){var i=t[d[e]]([n[0][0],n[1][0]]),o=t[d[e]]([n[0][1],n[1][1]]),r=[g([i[0],o[0]]),g([i[1],o[1]])];return{values:r,xyMinMax:r}},polygon:function(e,t,n){var i=[[1/0,-1/0],[1/0,-1/0]],r=o.map(n,(function(n){var o=t[d[e]](n);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:r,xyMinMax:i}}};function b(e,t,n,i){var r=n.getAxis(["x","y"][e]),a=g(o.map([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e])):r.toGlobalCoord(r.dataToCoord(i[e]))}))),s=[];return s[e]=a,s[1-e]=[NaN,NaN],{values:a,xyMinMax:s}}var w={lineX:c(S,0),lineY:c(S,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return o.map(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function S(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function M(e,t){var n=I(e),i=I(t),o=[n[0]/i[0],n[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function I(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var A=f;e.exports=A},44121:function(e,t,n){var i=n(33051),o=n(9176),r=n(31194),a=n(61485),s=a.onIrrelevantElement,l=n(51177),u=n(11194),c=n(42151),d=c.getUID,h=n(58023);function f(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function p(e,t,n,o,r){n.off("click"),n.off("mousedown"),t.get("selectedMode")&&(n.on("mousedown",(function(){e._mouseDownFlag=!0})),n.on("click",(function(a){if(e._mouseDownFlag){e._mouseDownFlag=!1;var s=a.target;while(!s.__regions)s=s.parent;if(s){var l={type:("geo"===t.mainType?"geo":"map")+"ToggleSelect",batch:i.map(s.__regions,(function(e){return{name:e.name,from:r.uid}}))};l[t.mainType+"Id"]=t.id,o.dispatchAction(l),g(t,n)}}})))}function g(e,t){t.eachChild((function(t){i.each(t.__regions,(function(n){t.trigger(e.isSelected(n.name)?"emphasis":"normal")}))}))}function v(e,t){var n=new l.Group;this.uid=d("ec_map_draw"),this._controller=new o(e.getZr()),this._controllerHost={target:t?n:null},this.group=n,this._updateGroup=t,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new l.Group),n.add(this._backgroundGroup=new l.Group)}v.prototype={constructor:v,draw:function(e,t,n,o,r){var a="geo"===e.mainType,s=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},(function(t){s||t.getHostGeoModel()!==e||(s=t.getData())}));var u=e.coordinateSystem;this._updateBackground(u);var c,d=this._regionsGroup,v=this.group,m=u.getTransformInfo(),y=!d.childAt(0)||r;if(y)v.transform=m.roamTransform,v.decomposeTransform(),v.dirty();else{var x=new h;x.transform=m.roamTransform,x.decomposeTransform();var _={scale:x.scale,position:x.position};c=x.scale,l.updateProps(v,_,e)}var b=m.rawScale,w=m.rawPosition;d.removeAll();var S=["itemStyle"],M=["emphasis","itemStyle"],I=["label"],A=["emphasis","label"],k=i.createHashMap();i.each(u.regions,(function(t){var n=k.get(t.name)||k.set(t.name,new l.Group),o=new l.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});n.add(o);var r,u=e.getRegionModel(t.name)||e,h=u.getModel(S),p=u.getModel(M),g=f(h),m=f(p),x=u.getModel(I),_=u.getModel(A);if(s){r=s.indexOfName(t.name);var P=s.getItemVisual(r,"color",!0);P&&(g.fill=P)}var C=function(e){return[e[0]*b[0]+w[0],e[1]*b[1]+w[1]]};i.each(t.geometries,(function(e){if("polygon"===e.type){for(var t=[],n=0;n<e.exterior.length;++n)t.push(C(e.exterior[n]));o.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}));for(n=0;n<(e.interiors?e.interiors.length:0);++n){for(var i=e.interiors[n],r=(t=[],0);r<i.length;++r)t.push(C(i[r]));o.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}))}}})),o.setStyle(g),o.style.strokeNoScale=!0,o.culling=!0;var E=x.get("show"),T=_.get("show"),N=s&&isNaN(s.get(s.mapDimension("value"),r)),D=s&&s.getItemLayout(r);if(a||N&&(E||T)||D&&D.showLabel){var O,L=a?t.name:r;(!s||r>=0)&&(O=e);var V=new l.Text({position:C(t.center.slice()),scale:[1/v.scale[0],1/v.scale[1]],z2:10,silent:!0});if(l.setLabelStyle(V.style,V.hoverStyle={},x,_,{labelFetcher:O,labelDataIndex:L,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!y){var R=[1/c[0],1/c[1]];l.updateProps(V,{scale:R},e)}n.add(V)}if(s)s.setItemGraphicEl(r,n);else{u=e.getRegionModel(t.name);o.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:u&&u.option||{}}}var B=n.__regions||(n.__regions=[]);B.push(t),n.highDownSilentOnTouch=!!e.get("selectedMode"),l.setHoverStyle(n,m),d.add(n)})),this._updateController(e,t,n),p(this,e,d,n,o),g(e,d)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&u.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var t=e.map;this._mapName!==t&&i.each(u.makeGraphic(t,this.uid),(function(e){this._backgroundGroup.add(e)}),this),this._mapName=t},_updateController:function(e,t,n){var o=e.coordinateSystem,a=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=o.getZoom(),a.enable(e.get("roam")||!1);var u=e.mainType;function c(){var t={type:"geoRoam",componentType:u};return t[u+"Id"]=e.id,t}a.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,r.updateViewOnPan(l,e.dx,e.dy),n.dispatchAction(i.extend(c(),{dx:e.dx,dy:e.dy}))}),this),a.off("zoom").on("zoom",(function(e){if(this._mouseDownFlag=!1,r.updateViewOnZoom(l,e.scale,e.originX,e.originY),n.dispatchAction(i.extend(c(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var t=this.group.scale;this._regionsGroup.traverse((function(e){"text"===e.type&&e.attr("scale",[1/t[0],1/t[1]])}))}}),this),a.setPointerChecker((function(t,i,r){return o.getViewRectAfterRoam().contain(i,r)&&!s(t,n,e)}))}};var m=v;e.exports=m},9176:function(e,t,n){var i=n(33051),o=n(41502),r=n(61158),a=n(20582);function s(e){this.pointerChecker,this._zr=e,this._opt={};var t=i.bind,n=t(l,this),r=t(u,this),a=t(c,this),s=t(d,this),f=t(h,this);o.call(this),this.setPointerChecker=function(e){this.pointerChecker=e},this.enable=function(t,o){this.disable(),this._opt=i.defaults(i.clone(o)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",n),e.on("mousemove",r),e.on("mouseup",a)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",s),e.on("pinch",f))},this.disable=function(){e.off("mousedown",n),e.off("mousemove",r),e.off("mouseup",a),e.off("mousewheel",s),e.off("pinch",f)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(e){if(!(r.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}}function u(e){if(this._dragging&&g("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!a.isTaken(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,o=this._y,s=t-i,l=n-o;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&r.stop(e.event),p(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:t,newY:n})}}function c(e){r.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function d(e){var t=g("zoomOnMouseWheel",e,this._opt),n=g("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),r=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=o>3?1.4:o>1?1.2:1.1,l=i>0?s:1/s;f(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:r,originY:a})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);f(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:r,originY:a})}}}function h(e){if(!a.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;f(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY})}}function f(e,t,n,i,o){e.pointerChecker&&e.pointerChecker(i,o.originX,o.originY)&&(r.stop(i.event),p(e,t,n,i,o))}function p(e,t,n,o,r){r.isAvailableBehavior=i.bind(g,null,n,o),e.trigger(t,r)}function g(e,t,n){var o=n[e];return!e||o&&(!i.isString(o)||t.event[o+"Key"])}i.mixin(s,o);var v=s;e.exports=v},9344:function(e,t,n){var i=n(60479),o=n(61485),r=o.onIrrelevantElement,a=n(51177);function s(e){return e=c(e),function(t,n){return a.clipPointsByRect(t,e)}}function l(e,t){return e=c(e),function(n){var i=null!=t?t:n,o=i?e.width:e.height,r=i?e.x:e.y;return[r,r+(o||0)]}}function u(e,t,n){return e=c(e),function(i,o,a){return e.contain(o[0],o[1])&&!r(i,t,n)}}function c(e){return i.create(e)}t.makeRectPanelClipPath=s,t.makeLinearBrushOtherExtent=l,t.makeRectIsTargetByCursor=u},61485:function(e,t){var n={axisPointer:1,tooltip:1,brush:1};function i(e,t,i){var o=t.getComponentByElement(e.topTarget),r=o&&o.coordinateSystem;return o&&o!==i&&!n[o.mainType]&&r&&r.model!==i}t.onIrrelevantElement=i},20582:function(e,t,n){var i=n(70492),o="\0_ec_interaction_mutex";function r(e,t,n){var i=l(e);i[t]=n}function a(e,t,n){var i=l(e),o=i[t];o===n&&(i[t]=null)}function s(e,t){return!!l(e)[t]}function l(e){return e[o]||(e[o]={})}i.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),t.take=r,t.release=a,t.isTaken=s},99337:function(e,t,n){var i=n(76172),o=i.getLayoutRect,r=i.box,a=i.positionElement,s=n(78988),l=n(51177);function u(e,t,n){var i=t.getBoxLayoutParams(),s=t.get("padding"),l={width:n.getWidth(),height:n.getHeight()},u=o(i,l,s);r(t.get("orient"),e,t.get("itemGap"),u.width,u.height),a(e,i,l,s)}function c(e,t){var n=s.normalizeCssArray(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");e=new l.Rect({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return e}t.layout=u,t.makeBackground=c},31194:function(e,t){function n(e,t,n){var i=e.target,o=i.position;o[0]+=t,o[1]+=n,i.dirty()}function i(e,t,n,i){var o=e.target,r=e.zoomLimit,a=o.position,s=o.scale,l=e.zoom=e.zoom||1;if(l*=t,r){var u=r.min||0,c=r.max||1/0;l=Math.max(Math.min(c,l),u)}var d=l/e.zoom;e.zoom=l,a[0]-=(n-a[0])*(d-1),a[1]-=(i-a[1])*(d-1),s[0]*=d,s[1]*=d,o.dirty()}t.updateViewOnPan=n,t.updateViewOnZoom=i},1501:function(e,t,n){var i=n(33051),o={updateSelectedMap:function(e){this._targetList=i.isArray(e)?e.slice():[],this._selectTargetMap=i.reduce(e||[],(function(e,t){return e.set(t.name,t),e}),i.createHashMap())},select:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e),i=this.get("selectedMode");"single"===i&&this._selectTargetMap.each((function(e){e.selected=!1})),n&&(n.selected=!0)},unSelect:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);n&&(n.selected=!1)},toggleSelected:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);if(null!=n)return this[n.selected?"unSelect":"select"](e,t),n.selected},isSelected:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);return n&&n.selected}};e.exports=o},19233:function(e){function t(e,t,o,r,a,s){e=e||0;var l=o[1]-o[0];if(null!=a&&(a=i(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===r){var u=Math.abs(t[1]-t[0]);u=i(u,[0,l]),a=s=i(u,[a,s]),r=0}t[0]=i(t[0],o),t[1]=i(t[1],o);var c=n(t,r);t[r]+=e;var d=a||0,h=o.slice();c.sign<0?h[0]+=d:h[1]-=d,t[r]=i(t[r],h);var f=n(t,r);null!=a&&(f.sign!==c.sign||f.span<a)&&(t[1-r]=t[r]+c.sign*a);f=n(t,r);return null!=s&&f.span>s&&(t[1-r]=t[r]+f.sign*s),t}function n(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function i(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}e.exports=t},78511:function(e,t,n){var i=n(70492);n(73650),n(13174),n(13134);var o=n(3391),r=n(98071);i.registerProcessor(i.PRIORITY.PROCESSOR.SERIES_FILTER,o),r.registerSubTypeDefaulter("legend",(function(){return"plain"}))},77139:function(e,t,n){n(78511),n(264),n(33681),n(50444)},73650:function(e,t,n){var i=n(70492),o=n(33051),r=n(4272),a=n(32234),s=a.isNameSpecified,l=n(40292),u=l.legend.selector,c={all:{type:"all",title:o.clone(u.all)},inverse:{type:"inverse",title:o.clone(u.inverse)}},d=i.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},mergeOption:function(e){d.superCall(this,"mergeOption",e),this._updateSelector(e)},_updateSelector:function(e){var t=e.selector;!0===t&&(t=e.selector=["all","inverse"]),o.isArray(t)&&o.each(t,(function(e,n){o.isString(e)&&(e={type:e}),t[n]=o.merge(e,c[e.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},_updateData:function(e){var t=[],n=[];e.eachRawSeries((function(i){var o,r=i.name;if(n.push(r),i.legendVisualProvider){var a=i.legendVisualProvider,l=a.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(l)),l.length?t=t.concat(l):o=!0}else o=!0;o&&s(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,a=o.map(i,(function(e){return"string"!==typeof e&&"number"!==typeof e||(e={name:e}),new r(e,this,this.ecModel)}),this);this._data=a},getData:function(){return this._data},select:function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;o.each(i,(function(e){t[e.get("name")]=!1}))}t[e]=!0},unSelect:function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},toggleSelected:function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},allSelect:function(){var e=this._data,t=this.option.selected;o.each(e,(function(e){t[e.get("name",!0)]=!0}))},inverseSelect:function(){var e=this._data,t=this.option.selected;o.each(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},isSelected:function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&o.indexOf(this._availableNames,e)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,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,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},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}}}),h=d;e.exports=h},13134:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(70492)),r=n(33051),a=n(41525),s=a.createSymbol,l=n(51177),u=n(99337),c=u.makeBackground,d=n(76172),h=r.curry,f=r.each,p=l.Group,g=o.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new p),this._backgroundEl,this.group.add(this._selectorGroup=new p),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var o=e.get("align"),a=e.get("orient");o&&"auto"!==o||(o="right"===e.get("left")&&"vertical"===a?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(o,e,t,n,s,a,l);var u=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},f=e.get("padding"),p=d.getLayoutRect(u,h,f),g=this.layoutInner(e,o,p,i,s,l),v=d.getLayoutRect(r.defaults({width:g.width,height:g.height},u),h,f);this.group.attr("position",[v.x-g.x,v.y-g.y]),this.group.add(this._backgroundEl=c(g,e))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(e,t,n,i,o,a,s){var l=this.getContentGroup(),u=r.createHashMap(),c=t.get("selectedMode"),d=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&d.push(e.id)})),f(t.getData(),(function(o,r){var a=o.get("name");if(this.newlineDisabled||""!==a&&"\n"!==a){var s=n.getSeriesByName(a)[0];if(!u.get(a))if(s){var f=s.getData(),g=f.getVisual("color"),v=f.getVisual("borderColor");"function"===typeof g&&(g=g(s.getDataParams(0))),"function"===typeof v&&(v=v(s.getDataParams(0)));var _=f.getVisual("legendSymbol")||"roundRect",b=f.getVisual("symbol"),w=this._createItem(a,r,o,t,_,b,e,g,v,c);w.on("click",h(m,a,null,i,d)).on("mouseover",h(y,s.name,null,i,d)).on("mouseout",h(x,s.name,null,i,d)),u.set(a,!0)}else n.eachRawSeries((function(n){if(!u.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var l=s.indexOfName(a),f=s.getItemVisual(l,"color"),p=s.getItemVisual(l,"borderColor"),g="roundRect",v=this._createItem(a,r,o,t,g,null,e,f,p,c);v.on("click",h(m,null,a,i,d)).on("mouseover",h(y,null,a,i,d)).on("mouseout",h(x,null,a,i,d)),u.set(a,!0)}}),this)}else l.add(new p({newline:!0}))}),this),o&&this._createSelector(o,t,i,a,s)},_createSelector:function(e,t,n,i,o){var r=this.getSelectorGroup();function a(e){var i=e.type,o=new l.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});r.add(o);var a=t.getModel("selectorLabel"),s=t.getModel("emphasis.selectorLabel");l.setLabelStyle(o.style,o.hoverStyle={},a,s,{defaultText:e.title,isRectText:!1}),l.setHoverStyle(o)}f(e,(function(e){a(e)}))},_createItem:function(e,t,n,i,o,a,u,c,d,h){var f=i.get("itemWidth"),g=i.get("itemHeight"),m=i.get("inactiveColor"),y=i.get("inactiveBorderColor"),x=i.get("symbolKeepAspect"),_=i.getModel("itemStyle"),b=i.isSelected(e),w=new p,S=n.getModel("textStyle"),M=n.get("icon"),I=n.getModel("tooltip"),A=I.parentModel;o=M||o;var k=s(o,0,0,f,g,b?c:m,null==x||x);if(w.add(v(k,o,_,d,y,b)),!M&&a&&(a!==o||"none"===a)){var P=.8*g;"none"===a&&(a="circle");var C=s(a,(f-P)/2,(g-P)/2,P,P,b?c:m,null==x||x);w.add(v(C,a,_,d,y,b))}var E="left"===u?f+5:-5,T=u,N=i.get("formatter"),D=e;"string"===typeof N&&N?D=N.replace("{name}",null!=e?e:""):"function"===typeof N&&(D=N(e)),w.add(new l.Text({style:l.setTextStyle({},S,{text:D,x:E,y:g/2,textFill:b?S.getTextColor():m,textAlign:T,textVerticalAlign:"middle"})}));var O=new l.Rect({shape:w.getBoundingRect(),invisible:!0,tooltip:I.get("show")?r.extend({content:e,formatter:A.get("formatter",!0)||function(){return e},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:e,$vars:["name"]}},I.option):null});return w.add(O),w.eachChild((function(e){e.silent=!0})),O.silent=!h,this.getContentGroup().add(w),l.setHoverStyle(w),w.__legendDataIndex=t,w},layoutInner:function(e,t,n,i,o,r){var a=this.getContentGroup(),s=this.getSelectorGroup();d.box(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(o){d.box("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],f=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=0===p?"width":"height",v=0===p?"height":"width",m=0===p?"y":"x";"end"===r?h[p]+=l[g]+f:u[p]+=c[g]+f,h[1-p]+=l[v]/2-c[v]/2,s.attr("position",h),a.attr("position",u);var y={x:0,y:0};return y[g]=l[g]+f+c[g],y[v]=Math.max(l[v],c[v]),y[m]=Math.min(0,c[m]+h[1-p]),y}return a.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function v(e,t,n,i,o,r){var a;return"line"!==t&&t.indexOf("empty")<0?(a=n.getItemStyle(),e.style.stroke=i,r||(a.stroke=o)):a=n.getItemStyle(["borderWidth","borderColor"]),e.setStyle(a)}function m(e,t,n,i){x(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),y(e,t,n,i)}function y(e,t,n,i){var o=n.getZr().storage.getDisplayList()[0];o&&o.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function x(e,t,n,i){var o=n.getZr().storage.getDisplayList()[0];o&&o.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}e.exports=g},264:function(e,t,n){var i=n(73650),o=n(76172),r=o.mergeLayoutParam,a=o.getLayoutParams,s=i.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},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},init:function(e,t,n,i){var o=a(e);s.superCall(this,"init",e,t,n,i),l(this,e,o)},mergeOption:function(e,t){s.superCall(this,"mergeOption",e,t),l(this,this.option,e)}});function l(e,t,n){var i=e.getOrient(),o=[1,1];o[i.index]=0,r(t,n,{type:"box",ignoreSize:o})}var u=s;e.exports=u},33681:function(e,t,n){var i=n(33051),o=n(51177),r=n(76172),a=n(13134),s=o.Group,l=["width","height"],u=["x","y"],c=a.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,n,r,a,s,l){var u=this;c.superCall(this,"renderInner",e,t,n,r,a,s,l);var d=this._controllerGroup,h=t.get("pageIconSize",!0);i.isArray(h)||(h=[h,h]),p("pagePrev",0);var f=t.getModel("pageTextStyle");function p(e,n){var a=e+"DataIndex",s=o.createIcon(t.get("pageIcons",!0)[t.getOrient().name][n],{onclick:i.bind(u._pageGo,u,a,t,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});s.name=e,d.add(s)}d.add(new o.Text({name:"pageText",style:{textFill:f.getTextColor(),font:f.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),p("pageNext",1)},layoutInner:function(e,t,n,o,a,s){var c=this.getSelectorGroup(),d=e.getOrient().index,h=l[d],f=u[d],p=l[1-d],g=u[1-d];a&&r.box("horizontal",c,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),m=c.getBoundingRect(),y=[-m.x,-m.y],x=i.clone(n);a&&(x[h]=n[h]-m[h]-v);var _=this._layoutContentAndController(e,o,x,d,h,p,g);if(a){if("end"===s)y[d]+=_[h]+v;else{var b=m[h]+v;y[d]-=b,_[f]-=b}_[h]+=m[h]+v,y[1-d]+=_[g]+_[p]/2-m[p]/2,_[p]=Math.max(_[p],m[p]),_[g]=Math.min(_[g],m[g]+y[1-d]),c.attr("position",y)}return _},_layoutContentAndController:function(e,t,n,a,s,l,u){var c=this.getContentGroup(),d=this._containerGroup,h=this._controllerGroup;r.box(e.get("orient"),c,e.get("itemGap"),a?n.width:null,a?null:n.height),r.box("horizontal",h,e.get("pageButtonItemGap",!0));var f=c.getBoundingRect(),p=h.getBoundingRect(),g=this._showController=f[s]>n[s],v=[-f.x,-f.y];t||(v[a]=c.position[a]);var m=[0,0],y=[-p.x,-p.y],x=i.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var _=e.get("pageButtonPosition",!0);"end"===_?y[a]+=n[s]-p[s]:m[a]+=p[s]+x}y[1-a]+=f[l]/2-p[l]/2,c.attr("position",v),d.attr("position",m),h.attr("position",y);var b={x:0,y:0};if(b[s]=g?n[s]:f[s],b[l]=Math.max(f[l],p[l]),b[u]=Math.min(0,p[u]+y[1-a]),d.__rectSize=n[s],g){var w={x:0,y:0};w[s]=Math.max(n[s]-p[s]-x,0),w[l]=b[l],d.setClipPath(new o.Rect({shape:w})),d.__rectSize=w[s]}else h.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var S=this._getPageInfo(e);return null!=S.pageIndex&&o.updateProps(c,{position:S.contentPosition},!!g&&e),this._updatePageInfoView(e,S),b},_pageGo:function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},_updatePageInfoView:function(e,t){var n=this._controllerGroup;i.each(["pagePrev","pageNext"],(function(i){var o=null!=t[i+"DataIndex"],r=n.childOfName(i);r&&(r.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),r.cursor=o?"pointer":"default")}));var o=n.childOfName("pageText"),r=e.get("pageFormatter"),a=t.pageIndex,s=null!=a?a+1:0,l=t.pageCount;o&&r&&o.setStyle("text",i.isString(r)?r.replace("{current}",s).replace("{total}",l):r({current:s,total:l}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,r=l[o],a=u[o],s=this._findTargetItemIndex(t),c=n.children(),d=c[s],h=c.length,f=h?1:0,p={contentPosition:n.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=_(d);p.contentPosition[o]=-g.s;for(var v=s+1,m=g,y=g,x=null;v<=h;++v)x=_(c[v]),(!x&&y.e>m.s+i||x&&!b(x,m.s))&&(m=y.i>m.i?y:x,m&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(v=s-1,m=g,y=g,x=null;v>=-1;--v)x=_(c[v]),x&&b(y,x.s)||!(m.i<y.i)||(y=m,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=x;return p;function _(e){if(e){var t=e.getBoundingRect(),n=t[a]+e.position[o];return{s:n,e:n+t[r],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+i}},_findTargetItemIndex:function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,o){var r=i.__legendDataIndex;null==n&&null!=r&&(n=o),r===e&&(t=o)})),null!=t?t:n}}),d=c;e.exports=d},13174:function(e,t,n){var i=n(70492),o=n(33051);function r(e,t,n){var i,r={},a="toggleSelected"===e;return n.eachComponent("legend",(function(n){a&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name));var s=n.getData();o.each(s,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&i:r[t]=i}}))})),"allSelect"===e||"inverseSelect"===e?{selected:r}:{name:t.name,selected:r}}i.registerAction("legendToggleSelect","legendselectchanged",o.curry(r,"toggleSelected")),i.registerAction("legendAllSelect","legendselectall",o.curry(r,"allSelect")),i.registerAction("legendInverseSelect","legendinverseselect",o.curry(r,"inverseSelect")),i.registerAction("legendSelect","legendselected",o.curry(r,"select")),i.registerAction("legendUnSelect","legendunselected",o.curry(r,"unSelect"))},3391:function(e){function t(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}e.exports=t},50444:function(e,t,n){var i=n(70492);i.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))},35598:function(e,t,n){var i=n(70492);n(85082),n(25663),i.registerPreprocessor((function(e){e.markArea=e.markArea||{}}))},34563:function(e,t,n){var i=n(70492);n(44971),n(13214),i.registerPreprocessor((function(e){e.markLine=e.markLine||{}}))},74482:function(e,t,n){var i=n(70492);n(35869),n(71696),i.registerPreprocessor((function(e){e.markPoint=e.markPoint||{}}))},85082:function(e,t,n){var i=n(8233),o=i.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});e.exports=o},25663:function(e,t,n){var i=n(33051),o=n(21092),r=n(87587),a=n(85669),s=n(51177),l=n(42459),u=n(55597),c=function(e,t,n,o){var r=l.dataTransform(e,o[0]),a=l.dataTransform(e,o[1]),s=i.retrieve,u=r.coord,c=a.coord;u[0]=s(u[0],-1/0),u[1]=s(u[1],-1/0),c[0]=s(c[0],1/0),c[1]=s(c[1],1/0);var d=i.mergeAll([{},r,a]);return d.coord=[r.coord,a.coord],d.x0=r.x,d.y0=r.y,d.x1=a.x,d.y1=a.y,d};function d(e){return!isNaN(e)&&!isFinite(e)}function h(e,t,n,i){var o=1-e;return d(t[o])&&d(n[o])}function f(e,t){var n=t.coord[0],i=t.coord[1];return!("cartesian2d"!==e.type||!n||!i||!h(1,n,i,e)&&!h(0,n,i,e))||(l.dataFilter(e,{coord:n,x:t.x0,y:t.y0})||l.dataFilter(e,{coord:i,x:t.x1,y:t.y1}))}function p(e,t,n,i,o){var r,s=i.coordinateSystem,l=e.getItemModel(t),u=a.parsePercent(l.get(n[0]),o.getWidth()),c=a.parsePercent(l.get(n[1]),o.getHeight());if(isNaN(u)||isNaN(c)){if(i.getMarkerPosition)r=i.getMarkerPosition(e.getValues(n,t));else{var h=e.get(n[0],t),f=e.get(n[1],t),p=[h,f];s.clampData&&s.clampData(p,p),r=s.dataToPoint(p,!0)}if("cartesian2d"===s.type){var g=s.getAxis("x"),v=s.getAxis("y");h=e.get(n[0],t),f=e.get(n[1],t);d(h)?r[0]=g.toGlobalCoord(g.getExtent()["x0"===n[0]?0:1]):d(f)&&(r[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(u)||(r[0]=u),isNaN(c)||(r[1]=c)}else r=[u,c];return r}var g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function v(e,t,n){var o,a,s=["x0","y0","x1","y1"];e?(o=i.map(e&&e.dimensions,(function(e){var n=t.getData(),o=n.getDimensionInfo(n.mapDimension(e))||{};return i.defaults({name:e},o)})),a=new r(i.map(s,(function(e,t){return{name:e,type:o[t%2].type}})),n)):(o=[{name:"value",type:"float"}],a=new r(o,n));var l=i.map(n.get("data"),i.curry(c,t,e,n));e&&(l=i.filter(l,i.curry(f,e)));var u=e?function(e,t,n,i){return e.coord[Math.floor(i/2)][i%2]}:function(e){return e.value};return a.initData(l,null,u),a.hasItemOption=!0,a}u.extend({type:"markArea",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markAreaModel;if(t){var o=t.getData();o.each((function(t){var r=i.map(g,(function(i){return p(o,t,i,e,n)}));o.setItemLayout(t,r);var a=o.getItemGraphicEl(t);a.setShape("points",r)}))}}),this)},renderSeries:function(e,t,n,r){var a=e.coordinateSystem,l=e.id,u=e.getData(),c=this.markerGroupMap,d=c.get(l)||c.set(l,{group:new s.Group});this.group.add(d.group),d.__keep=!0;var h=v(a,e,t);t.setData(h),h.each((function(t){h.setItemLayout(t,i.map(g,(function(n){return p(h,t,n,e,r)}))),h.setItemVisual(t,{color:u.getVisual("color")})})),h.diff(d.__data).add((function(e){var t=new s.Polygon({shape:{points:h.getItemLayout(e)}});h.setItemGraphicEl(e,t),d.group.add(t)})).update((function(e,n){var i=d.__data.getItemGraphicEl(n);s.updateProps(i,{shape:{points:h.getItemLayout(e)}},t,e),d.group.add(i),h.setItemGraphicEl(e,i)})).remove((function(e){var t=d.__data.getItemGraphicEl(e);d.group.remove(t)})).execute(),h.eachItemGraphicEl((function(e,n){var r=h.getItemModel(n),a=r.getModel("label"),l=r.getModel("emphasis.label"),u=h.getItemVisual(n,"color");e.useStyle(i.defaults(r.getModel("itemStyle").getItemStyle(),{fill:o.modifyAlpha(u,.4),stroke:u})),e.hoverStyle=r.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(e.style,e.hoverStyle,a,l,{labelFetcher:t,labelDataIndex:n,defaultText:h.getName(n)||"",isRectText:!0,autoColor:u}),s.setHoverStyle(e,{}),e.dataModel=t})),d.__data=h,d.group.silent=t.get("silent")||e.get("silent")}})},44971:function(e,t,n){var i=n(8233),o=i.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});e.exports=o},13214:function(e,t,n){var i=n(33051),o=n(87587),r=n(85669),a=n(42459),s=n(47145),l=n(55597),u=n(99936),c=u.getStackedDimension,d=function(e,t,n,o){var r=e.getData(),s=o.type;if(!i.isArray(o)&&("min"===s||"max"===s||"average"===s||"median"===s||null!=o.xAxis||null!=o.yAxis)){var l,u;if(null!=o.yAxis||null!=o.xAxis)l=t.getAxis(null!=o.yAxis?"y":"x"),u=i.retrieve(o.yAxis,o.xAxis);else{var d=a.getAxisInfo(o,r,t,e);l=d.valueAxis;var h=c(r,d.valueDataDim);u=a.numCalculate(r,h,s)}var f="x"===l.dim?0:1,p=1-f,g=i.clone(o),v={};g.type=null,g.coord=[],v.coord=[],g.coord[p]=-1/0,v.coord[p]=1/0;var m=n.get("precision");m>=0&&"number"===typeof u&&(u=+u.toFixed(Math.min(m,20))),g.coord[f]=v.coord[f]=u,o=[g,v,{type:s,valueIndex:o.valueIndex,value:u}]}return o=[a.dataTransform(e,o[0]),a.dataTransform(e,o[1]),i.extend({},o[2])],o[2].type=o[2].type||"",i.merge(o[2],o[0]),i.merge(o[2],o[1]),o};function h(e){return!isNaN(e)&&!isFinite(e)}function f(e,t,n,i){var o=1-e,r=i.dimensions[e];return h(t[o])&&h(n[o])&&t[e]===n[e]&&i.getAxis(r).containData(t[e])}function p(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(f(1,n,i,e)||f(0,n,i,e)))return!0}return a.dataFilter(e,t[0])&&a.dataFilter(e,t[1])}function g(e,t,n,i,o){var a,s=i.coordinateSystem,l=e.getItemModel(t),u=r.parsePercent(l.get("x"),o.getWidth()),c=r.parsePercent(l.get("y"),o.getHeight());if(isNaN(u)||isNaN(c)){if(i.getMarkerPosition)a=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var d=s.dimensions,f=e.get(d[0],t),p=e.get(d[1],t);a=s.dataToPoint([f,p])}if("cartesian2d"===s.type){var g=s.getAxis("x"),v=s.getAxis("y");d=s.dimensions;h(e.get(d[0],t))?a[0]=g.toGlobalCoord(g.getExtent()[n?0:1]):h(e.get(d[1],t))&&(a[1]=v.toGlobalCoord(v.getExtent()[n?0:1]))}isNaN(u)||(a[0]=u),isNaN(c)||(a[1]=c)}else a=[u,c];e.setItemLayout(t,a)}var v=l.extend({type:"markLine",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markLineModel;if(t){var i=t.getData(),o=t.__from,r=t.__to;o.each((function(t){g(o,t,!0,e,n),g(r,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[o.getItemLayout(e),r.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},renderSeries:function(e,t,n,o){var r=e.coordinateSystem,a=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(a)||u.set(a,new s);this.group.add(c.group);var d=m(r,e,t),h=d.from,f=d.to,p=d.line;t.__from=h,t.__to=f,t.setData(p);var v=t.get("symbol"),y=t.get("symbolSize");function x(t,n,i){var r=t.getItemModel(n);g(t,n,i,e,o),t.setItemVisual(n,{symbolSize:r.get("symbolSize")||y[i?0:1],symbol:r.get("symbol",!0)||v[i?0:1],color:r.get("itemStyle.color")||l.getVisual("color")})}i.isArray(v)||(v=[v,v]),"number"===typeof y&&(y=[y,y]),d.from.each((function(e){x(h,e,!0),x(f,e,!1)})),p.each((function(e){var t=p.getItemModel(e).get("lineStyle.color");p.setItemVisual(e,{color:t||h.getItemVisual(e,"color")}),p.setItemLayout(e,[h.getItemLayout(e),f.getItemLayout(e)]),p.setItemVisual(e,{fromSymbolSize:h.getItemVisual(e,"symbolSize"),fromSymbol:h.getItemVisual(e,"symbol"),toSymbolSize:f.getItemVisual(e,"symbolSize"),toSymbol:f.getItemVisual(e,"symbol")})})),c.updateData(p),d.line.eachItemGraphicEl((function(e,n){e.traverse((function(e){e.dataModel=t}))})),c.__keep=!0,c.group.silent=t.get("silent")||e.get("silent")}});function m(e,t,n){var r;r=e?i.map(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return i.defaults({name:e},n)})):[{name:"value",type:"float"}];var s=new o(r,n),l=new o(r,n),u=new o([],n),c=i.map(n.get("data"),i.curry(d,t,e,n));e&&(c=i.filter(c,i.curry(p,e)));var h=e?a.dimValueGetter:function(e){return e.value};return s.initData(i.map(c,(function(e){return e[0]})),null,h),l.initData(i.map(c,(function(e){return e[1]})),null,h),u.initData(i.map(c,(function(e){return e[2]}))),u.hasItemOption=!0,{from:s,to:l,line:u}}e.exports=v},35869:function(e,t,n){var i=n(8233),o=i.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});e.exports=o},71696:function(e,t,n){var i=n(33051),o=n(68162),r=n(85669),a=n(87587),s=n(42459),l=n(55597);function u(e,t,n){var i=t.coordinateSystem;e.each((function(o){var a,s=e.getItemModel(o),l=r.parsePercent(s.get("x"),n.getWidth()),u=r.parsePercent(s.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(i){var c=e.get(i.dimensions[0],o),d=e.get(i.dimensions[1],o);a=i.dataToPoint([c,d])}}else a=[l,u];isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u),e.setItemLayout(o,a)}))}var c=l.extend({type:"markPoint",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markPointModel;t&&(u(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(t))}),this)},renderSeries:function(e,t,n,r){var a=e.coordinateSystem,s=e.id,l=e.getData(),c=this.markerGroupMap,h=c.get(s)||c.set(s,new o),f=d(a,e,t);t.setData(f),u(t.getData(),e,r),f.each((function(e){var n=f.getItemModel(e),o=n.getShallow("symbol"),r=n.getShallow("symbolSize"),a=i.isFunction(o),s=i.isFunction(r);if(a||s){var u=t.getRawValue(e),c=t.getDataParams(e);a&&(o=o(u,c)),s&&(r=r(u,c))}f.setItemVisual(e,{symbol:o,symbolSize:r,color:n.get("itemStyle.color")||l.getVisual("color")})})),h.updateData(f),this.group.add(h.group),f.eachItemGraphicEl((function(e){e.traverse((function(e){e.dataModel=t}))})),h.__keep=!0,h.group.silent=t.get("silent")||e.get("silent")}});function d(e,t,n){var o;o=e?i.map(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return i.defaults({name:e},n)})):[{name:"value",type:"float"}];var r=new a(o,n),l=i.map(n.get("data"),i.curry(s.dataTransform,t));return e&&(l=i.filter(l,i.curry(s.dataFilter,e))),r.initData(l,null,e?s.dimValueGetter:function(e){return e.value}),r}e.exports=c},8233:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(70492)),r=n(33051),a=n(66387),s=n(32234),l=n(78988),u=n(61219),c=l.addCommas,d=l.encodeHTML;function h(e){s.defaultEmphasis(e,"label",["show"])}var f=o.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},isAnimationEnabled:function(){if(a.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t){this._mergeOption(e,t,!1,!1)},_mergeOption:function(e,t,n,i){var o=this.constructor,a=this.mainType+"Model";n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),s=e[a];n&&n.data?(s?s._mergeOption(n,t,!0):(i&&h(n),r.each(n.data,(function(e){e instanceof Array?(h(e[0]),h(e[1])):h(e)})),s=new o(n,this,t),r.extend(s,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),s.__hostSeries=e),e[a]=s):e[a]=null}),this)},formatTooltip:function(e){var t=this.getData(),n=this.getRawValue(e),i=r.isArray(n)?r.map(n,c).join(", "):c(n),o=t.getName(e),a=d(this.name);return(null!=n||o)&&(a+="<br />"),o&&(a+=d(o),null!=n&&(a+=" : ")),null!=n&&(a+=d(i)),a},getData:function(){return this._data},setData:function(e){this._data=e}});r.mixin(f,u);var p=f;e.exports=p},55597:function(e,t,n){var i=n(70492),o=n(33051),r=i.extendComponentView({type:"marker",init:function(){this.markerGroupMap=o.createHashMap()},render:function(e,t,n){var i=this.markerGroupMap;i.each((function(e){e.__keep=!1}));var o=this.type+"Model";t.eachSeries((function(e){var i=e[o];i&&this.renderSeries(e,i,t,n)}),this),i.each((function(e){!e.__keep&&this.group.remove(e.group)}),this)},renderSeries:function(){}});e.exports=r},42459:function(e,t,n){var i=n(33051),o=n(85669),r=n(99936),a=r.isDimensionStacked,s=i.indexOf;function l(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function u(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function c(e,t,n,i,r,s){var l=[],u=a(t,i),c=u?t.getCalculationInfo("stackResultDimension"):i,d=y(t,c,e),h=t.indicesOfNearest(c,d)[0];l[r]=t.get(n,h),l[s]=t.get(c,h);var f=t.get(i,h),p=o.getPrecision(t.get(i,h));return p=Math.min(p,20),p>=0&&(l[s]=+l[s].toFixed(p)),[l,f]}var d=i.curry,h={min:d(c,"min"),max:d(c,"max"),average:d(c,"average")};function f(e,t){var n=e.getData(),o=e.coordinateSystem;if(t&&!u(t)&&!i.isArray(t.coord)&&o){var r=o.dimensions,a=p(t,n,o,e);if(t=i.clone(t),t.type&&h[t.type]&&a.baseAxis&&a.valueAxis){var l=s(r,a.baseAxis.dim),c=s(r,a.valueAxis.dim),d=h[t.type](n,a.baseDataDim,a.valueDataDim,l,c);t.coord=d[0],t.value=d[1]}else{for(var f=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],g=0;g<2;g++)h[f[g]]&&(f[g]=y(n,n.mapDimension(r[g]),f[g]));t.coord=f}}return t}function p(e,t,n,i){var o={};return null!=e.valueIndex||null!=e.valueDim?(o.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,o.valueAxis=n.getAxis(g(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim),o.valueDataDim=t.mapDimension(o.valueAxis.dim)),o}function g(e,t){var n=e.getData(),i=n.dimensions;t=n.getDimension(t);for(var o=0;o<i.length;o++){var r=n.getDimensionInfo(i[o]);if(r.name===t)return r.coordDim}}function v(e,t){return!(e&&e.containData&&t.coord&&!l(t))||e.containData(t.coord)}function m(e,t,n,i){return i<2?e.coord&&e.coord[i]:e.value}function y(e,t,n){if("average"===n){var i=0,o=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,o++)})),i/o}return"median"===n?e.getMedian(t):e.getDataExtent(t,!0)["max"===n?1:0]}t.dataTransform=f,t.getAxisInfo=p,t.dataFilter=v,t.dimValueGetter=m,t.numCalculate=y},75781:function(e,t,n){var i=n(70492),o=n(33051),r=n(270),a=n(20769);n(14506),n(20946),n(7849);var s=5;i.extendComponentView({type:"parallel",render:function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},o.each(l,(function(e,t){n.getZr().on(t,this._handlers[t]=o.bind(e,this))}),this)),r.createOrUpdate(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},dispose:function(e,t){o.each(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},_throttledDispatchExpand:function(e){this._dispatchExpand(e)},_dispatchExpand:function(e){e&&this._api.dispatchAction(o.extend({type:"parallelAxisExpand"},e))}});var l={mousedown:function(e){u(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(u(this,"click")&&t){var n=[e.offsetX,e.offsetY],i=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(i>s)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==o.behavior&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&u(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i&&null})}}};function u(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}i.registerPreprocessor(a)},7849:function(e,t,n){n(14506),n(8985),n(20594)},49225:function(e,t,n){var i=n(70492),o=n(33051),r=n(21709);n(90580),n(3229),n(48540),n(52528),n(72432),i.registerLayout(o.curry(r,"bar")),i.extendComponentView({type:"polar"})},22881:function(e,t,n){n(26884),n(48681),n(15229)},15229:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(70492)),r=n(33051),a=n(58608),s=n(51177),l=["axisLine","axisTickLabel","axisName"],u=o.extendComponentView({type:"radar",render:function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=r.map(n,(function(e){var n=new a(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));r.each(i,(function(e){r.each(l,e.add,e),this.group.add(e.getGroup())}),this)},_buildSplitLineAndArea:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),o=e.getModel("splitLine"),a=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=a.getModel("areaStyle"),c=o.get("show"),d=a.get("show"),h=l.get("color"),f=u.get("color");h=r.isArray(h)?h:[h],f=r.isArray(f)?f:[f];var p=[],g=[];if("circle"===i)for(var v=n[0].getTicksCoords(),m=t.cx,y=t.cy,x=0;x<v.length;x++){if(c){var _=P(p,h,x);p[_].push(new s.Circle({shape:{cx:m,cy:y,r:v[x].coord}}))}if(d&&x<v.length-1){_=P(g,f,x);g[_].push(new s.Ring({shape:{cx:m,cy:y,r0:v[x].coord,r:v[x+1].coord}}))}}else{var b,w=r.map(n,(function(e,n){var i=e.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),r.map(i,(function(e){return t.coordToPoint(e.coord,n)}))})),S=[];for(x=0;x<=b;x++){for(var M=[],I=0;I<n.length;I++)M.push(w[I][x]);if(M[0]&&M.push(M[0].slice()),c){_=P(p,h,x);p[_].push(new s.Polyline({shape:{points:M}}))}if(d&&S){_=P(g,f,x-1);g[_].push(new s.Polygon({shape:{points:M.concat(S)}}))}S=M.slice().reverse()}}var A=l.getLineStyle(),k=u.getAreaStyle();r.each(g,(function(e,t){this.group.add(s.mergePath(e,{style:r.defaults({stroke:"none",fill:f[t%f.length]},k),silent:!0}))}),this),r.each(p,(function(e,t){this.group.add(s.mergePath(e,{style:r.defaults({fill:"none",stroke:h[t%h.length]},A),silent:!0}))}),this)}function P(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}}});e.exports=u},48540:function(e,t,n){n(90580),n(81832)},84066:function(e,t,n){var i=n(70492);n(2798),n(55165),n(35203),n(52528),n(16795),i.extendComponentView({type:"single"})},56913:function(e,t,n){var i=n(70492),o=n(28642);n(94015),n(4569),n(13142),n(99032),i.registerPreprocessor(o)},13142:function(e,t,n){var i=n(33051),o=n(84355),r=n(61219),a=o.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});i.mixin(a,r);var s=a;e.exports=s},99032:function(e,t,n){var i=n(33051),o=n(60479),r=n(32892),a=n(51177),s=n(76172),l=n(51640),u=n(22631),c=n(41525),d=c.createSymbol,h=n(97980),f=n(85669),p=n(78988),g=p.encodeHTML,v=i.bind,m=i.each,y=Math.PI,x=l.extend({type:"timeline.slider",init:function(e,t){this.api=t,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,n,i){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var o=this._layout(e,n),r=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(o,e);e.formatTooltip=function(e){return g(s.scale.getLabel(e))},m(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](o,r,s,e)}),this),this._renderAxisLabel(o,a,s,e),this._position(o,e)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(e,t){var n=e.get("label.position"),i=e.get("orient"),o=_(e,t);null==n||"auto"===n?n="horizontal"===i?o.y+o.height/2<t.getHeight()/2?"-":"+":o.x+o.width/2<t.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]);var r,a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:y/2},h="vertical"===i?o.height:o.width,f=e.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,v=p?f.get("itemGap"):0,m=g+v,x=e.get("label.rotate")||0;x=x*y/180;var b=f.get("position",!0),w=p&&f.get("showPlayBtn",!0),S=p&&f.get("showPrevBtn",!0),M=p&&f.get("showNextBtn",!0),I=0,A=h;return"left"===b||"bottom"===b?(w&&(r=[0,0],I+=m),S&&(a=[I,0],I+=m),M&&(s=[A-g,0],A-=m)):(w&&(r=[A-g,0],A-=m),S&&(a=[0,0],I+=m),M&&(s=[A-g,0],A-=m)),l=[I,A],e.get("inverse")&&l.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:d[i],labelRotation:x,labelPosOpt:n,labelAlign:e.get("label.align")||u[i],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||c[i],playPosition:r,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:g,controlGap:v}},_position:function(e,t){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if("vertical"===e.orient){var a=r.create(),s=o.x,l=o.y+o.height;r.translate(a,a,[-s,-l]),r.rotate(a,a,-y/2),r.translate(a,a,[s,l]),o=o.clone(),o.applyTransform(a)}var u=m(o),c=m(n.getBoundingRect()),d=m(i.getBoundingRect()),h=n.position,f=i.position;f[0]=h[0]=u[0][0];var p=e.labelPosOpt;if(isNaN(p)){var g="+"===p?0:1;x(h,c,u,1,g),x(f,d,u,1,1-g)}else{g=p>=0?0:1;x(h,c,u,1,g),f[1]=h[1]+p}function v(e){var t=e.position;e.origin=[u[0][0]-t[0],u[1][0]-t[1]]}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function x(e,t,n,i,o){e[i]+=n[i][o]-t[i][o]}n.attr("position",h),i.attr("position",f),n.rotation=i.rotation=e.rotation,v(n),v(i)},_createAxis:function(e,t){var n=t.getData(),i=t.get("axisType"),o=h.createScaleByModel(t,i);o.getTicks=function(){return n.mapArray(["value"],(function(e){return e}))};var r=n.getDataExtent("value");o.setExtent(r[0],r[1]),o.niceTicks();var a=new u("value",o,e.axisExtent,i);return a.model=t,a},_createGroup:function(e){var t=this["_"+e]=new a.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,n,o){var r=n.getExtent();o.get("lineStyle.show")&&t.add(new a.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:i.extend({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,n,i){var o=i.getData(),r=n.scale.getTicks();m(r,(function(e){var r=n.dataToCoord(e),s=o.getItemModel(e),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),c={position:[r,0],onclick:v(this._changeTimeline,this,e)},d=w(s,l,t,c);a.setHoverStyle(d,u.getItemStyle()),s.get("tooltip")?(d.dataIndex=e,d.dataModel=i):d.dataIndex=d.dataModel=null}),this)},_renderAxisLabel:function(e,t,n,i){var o=n.getLabelModel();if(o.get("show")){var r=i.getData(),s=n.getViewLabels();m(s,(function(i){var o=i.tickValue,s=r.getItemModel(o),l=s.getModel("label"),u=s.getModel("emphasis.label"),c=n.dataToCoord(i.tickValue),d=new a.Text({position:[c,0],rotation:e.labelRotation-e.rotation,onclick:v(this._changeTimeline,this,o),silent:!1});a.setTextStyle(d.style,l,{text:i.formattedLabel,textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(d),a.setHoverStyle(d,a.setTextStyle({},u))}),this)}},_renderControl:function(e,t,n,i){var o=e.controlSize,r=e.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-o/2,o,o],c=i.getPlayState(),d=i.get("inverse",!0);function h(e,n,c,d){if(e){var h={position:e,origin:[o/2,0],rotation:d?-r:0,rectHover:!0,style:s,onclick:c},f=b(i,n,u,h);t.add(f),a.setHoverStyle(f,l)}}h(e.nextBtnPosition,"controlStyle.nextIcon",v(this._changeTimeline,this,d?"-":"+")),h(e.prevBtnPosition,"controlStyle.prevIcon",v(this._changeTimeline,this,d?"+":"-")),h(e.playPosition,"controlStyle."+(c?"stopIcon":"playIcon"),v(this._handlePlayClick,this,!c),!0)},_renderCurrentPointer:function(e,t,n,i){var o=i.getData(),r=i.getCurrentIndex(),a=o.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=v(s._handlePointerDrag,s),e.ondragend=v(s._handlePointerDragend,s),S(e,r,n,i,!0)},onUpdate:function(e){S(e,r,n,i)}};this._currentPointer=w(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,o=f.asc(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var r=this._findNearestTick(n),a=this.model;(t||r!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(r)},_doPlayStop:function(){function e(){var e=this.model;this._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(v(e,this),this.model.get("playInterval")))},_toAxisCoord:function(e){var t=this._mainGroup.getLocalTransform();return a.applyTransform(e,t,!0)},_findNearestTick:function(e){var t,n=this.model.getData(),i=1/0,o=this._axis;return n.each(["value"],(function(n,r){var a=o.dataToCoord(n),s=Math.abs(a-e);s<i&&(i=s,t=r)})),t},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})}});function _(e,t){return s.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function b(e,t,n,r){var s=a.makePath(e.get(t).replace(/^path:\/\//,""),i.clone(r||{}),new o(n[0],n[1],n[2],n[3]),"center");return s}function w(e,t,n,o,r,a){var s=t.get("color");if(r)r.setColor(s),n.add(r),a&&a.onUpdate(r);else{var l=e.get("symbol");r=d(l,-1,-1,2,2,s),r.setStyle("strokeNoScale",!0),n.add(r),a&&a.onCreate(r)}var u=t.getItemStyle(["color","symbol","symbolSize"]);r.setStyle(u),o=i.merge({rectHover:!0,z2:100},o,!0);var c=e.get("symbolSize");c=c instanceof Array?c.slice():[+c,+c],c[0]/=2,c[1]/=2,o.scale=c;var h=e.get("symbolOffset");if(h){var p=o.position=o.position||[0,0];p[0]+=f.parsePercent(h[0],c[0]),p[1]+=f.parsePercent(h[1],c[1])}var g=e.get("symbolRotate");return o.rotation=(g||0)*Math.PI/180||0,r.attr(o),r.updateTransform(),r}function S(e,t,n,i,o){if(!e.dragging){var r=i.getModel("checkpointStyle"),a=n.dataToCoord(i.getData().get(["value"],t));o||!r.get("animation",!0)?e.attr({position:[a,0]}):(e.stopAnimation(!0),e.animateTo({position:[a,0]},r.get("animationDuration",!0),r.get("animationEasing",!0)))}}e.exports=x},22631:function(e,t,n){var i=n(33051),o=n(3245),r=function(e,t,n,i){o.call(this,e,t,n),this.type=i||"value",this.model=null};r.prototype={constructor:r,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},i.inherits(r,o);var a=r;e.exports=a},84355:function(e,t,n){var i=n(33051),o=n(98071),r=n(87587),a=n(32234),s=o.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(e,t,n){this._data,this._names,this.mergeDefaultAndTheme(e,n),this._initData()},mergeOption:function(e){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],n=e.axisType,o=this._names=[];if("category"===n){var s=[];i.each(t,(function(e,t){var n,r=a.getDataItemValue(e);i.isObject(e)?(n=i.clone(e),n.value=t):n=t,s.push(n),i.isString(r)||null!=r&&!isNaN(r)||(r=""),o.push(r+"")})),t=s}var l={category:"ordinal",time:"time"}[n]||"number",u=this._data=new r([{name:"value",type:l}],this);u.initData(t,o)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;e.exports=l},51640:function(e,t,n){var i=n(33166),o=i.extend({type:"timeline"});e.exports=o},28642:function(e,t,n){var i=n(33051);function o(e){var t=e&&e.timeline;i.isArray(t)||(t=t?[t]:[]),i.each(t,(function(e){e&&r(e)}))}function r(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),a(e),s(e,"controlPosition")){var o=e.controlStyle||(e.controlStyle={});s(o,"position")||(o.position=e.controlPosition),"none"!==o.position||s(o,"show")||(o.show=!1,delete o.position),delete e.controlPosition}i.each(e.data||[],(function(e){i.isObject(e)&&!i.isArray(e)&&(!s(e,"value")&&s(e,"name")&&(e.value=e.name),a(e))}))}function a(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),o=e.label||e.label||{},r=o.normal||(o.normal={}),a={normal:1,emphasis:1};i.each(o,(function(e,t){a[t]||s(r,t)||(r[t]=e)})),n.label&&!s(o,"emphasis")&&(o.emphasis=n.label,delete n.label)}function s(e,t){return e.hasOwnProperty(t)}e.exports=o},4569:function(e,t,n){var i=n(70492),o=n(33051);i.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),t.resetOption("timeline"),o.defaults({currentIndex:n.option.currentIndex},e)})),i.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))},94015:function(e,t,n){var i=n(98071);i.registerSubTypeDefaulter("timeline",(function(){return"slider"}))},21865:function(e,t,n){var i=n(33051),o=n(70492),r=n(51177),a=n(76172),s=a.getLayoutRect,l=n(78988),u=l.windowOpen;o.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),o.extendComponentView({type:"title",render:function(e,t,n){if(this.group.removeAll(),e.get("show")){var o=this.group,a=e.getModel("textStyle"),l=e.getModel("subtextStyle"),c=e.get("textAlign"),d=i.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),h=new r.Text({style:r.setTextStyle({},a,{text:e.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),f=h.getBoundingRect(),p=e.get("subtext"),g=new r.Text({style:r.setTextStyle({},l,{text:p,textFill:l.getTextColor(),y:f.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),m=e.get("sublink"),y=e.get("triggerEvent",!0);h.silent=!v&&!y,g.silent=!m&&!y,v&&h.on("click",(function(){u(v,"_"+e.get("target"))})),m&&g.on("click",(function(){u(v,"_"+e.get("subtarget"))})),h.eventData=g.eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,o.add(h),p&&o.add(g);var x=o.getBoundingRect(),_=e.getBoxLayoutParams();_.width=x.width,_.height=x.height;var b=s(_,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));c||(c=e.get("left")||e.get("right"),"middle"===c&&(c="center"),"right"===c?b.x+=b.width:"center"===c&&(b.x+=b.width/2)),d||(d=e.get("top")||e.get("bottom"),"center"===d&&(d="middle"),"bottom"===d?b.y+=b.height:"middle"===d&&(b.y+=b.height/2),d=d||"top"),o.attr("position",[b.x,b.y]);var w={textAlign:c,textVerticalAlign:d};h.setStyle(w),g.setStyle(w),x=o.getBoundingRect();var S=b.margin,M=e.getItemStyle(["color","opacity"]);M.fill=e.get("backgroundColor");var I=new r.Rect({shape:{x:x.x-S[3],y:x.y-S[0],width:x.width+S[1]+S[3],height:x.height+S[0]+S[2],r:e.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});o.add(I)}}})},76093:function(e,t,n){n(76596),n(31895),n(40354),n(34876),n(63795),n(2758),n(9856)},76596:function(e,t,n){var i=n(70492),o=n(33051),r=n(21806),a=i.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){a.superApply(this,"optionUpdated",arguments),o.each(this.option.feature,(function(e,t){var n=r.get(t);n&&o.merge(e,n.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),s=a;e.exports=s},31895:function(e,t,n){var i=n(70492),o=n(33051),r=n(80423),a=n(21806),s=n(51177),l=n(4272),u=n(4130),c=n(99337),d=i.extendComponentView({type:"toolbox",render:function(e,t,n,i){var d=this.group;if(d.removeAll(),e.get("show")){var f=+e.get("itemSize"),p=e.get("feature")||{},g=this._features||(this._features={}),v=[];o.each(p,(function(e,t){v.push(t)})),new u(this._featureNames||[],v).add(m).update(m).remove(o.curry(m,null)).execute(),this._featureNames=v,c.layout(d,e,n),d.add(c.makeBackground(d.getBoundingRect(),e)),d.eachChild((function(e){var t=e.__title,i=e.hoverStyle;if(i&&t){var o=r.getBoundingRect(t,r.makeFont(i)),a=e.position[0]+d.position[0],s=e.position[1]+d.position[1]+f,l=!1;s+o.height>n.getHeight()&&(i.textPosition="top",l=!0);var u=l?-5-o.height:f+8;a+o.width/2>n.getWidth()?(i.textPosition=["100%",u],i.textAlign="right"):a-o.width/2<0&&(i.textPosition=[0,u],i.textAlign="left")}}))}function m(o,r){var s,u=v[o],c=v[r],d=p[u],f=new l(d,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(d.title=i.newTitle),u&&!c){if(h(u))s={model:f,onclick:f.option.onclick,featureName:u};else{var m=a.get(u);if(!m)return;s=new m(f,t,n)}g[u]=s}else{if(s=g[c],!s)return;s.model=f,s.ecModel=t,s.api=n}u||!c?f.get("show")&&!s.unusable?(y(f,s,u),f.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&i[e].trigger(t)},s.render&&s.render(f,t,n,i)):s.remove&&s.remove(t,n):s.dispose&&s.dispose(t,n)}function y(i,r,a){var l=i.getModel("iconStyle"),u=i.getModel("emphasis.iconStyle"),c=r.getIcons?r.getIcons():i.get("icon"),h=i.get("title")||{};if("string"===typeof c){var p=c,g=h;c={},h={},c[a]=p,h[a]=g}var v=i.iconPaths={};o.each(c,(function(a,c){var p=s.createIcon(a,{},{x:-f/2,y:-f/2,width:f,height:f});p.setStyle(l.getItemStyle()),p.hoverStyle=u.getItemStyle(),p.setStyle({text:h[c],textAlign:u.get("textAlign"),textBorderRadius:u.get("textBorderRadius"),textPadding:u.get("textPadding"),textFill:null});var g=e.getModel("tooltip");g&&g.get("show")&&p.attr("tooltip",o.extend({content:h[c],formatter:g.get("formatter",!0)||function(){return h[c]},formatterParams:{componentType:"toolbox",name:c,title:h[c],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),s.setHoverStyle(p),e.get("showTitle")&&(p.__title=h[c],p.on("mouseover",(function(){var t=u.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";p.setStyle({textFill:u.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:u.get("textBackgroundColor"),textPosition:u.get("textPosition")||n})})).on("mouseout",(function(){p.setStyle({textFill:null,textBackgroundColor:null})}))),p.trigger(i.get("iconStatus."+c)||"normal"),d.add(p),p.on("click",o.bind(r.onclick,r,t,n,c)),v[c]=p}))}},updateView:function(e,t,n,i){o.each(this._features,(function(e){e.updateView&&e.updateView(e.model,t,n,i)}))},remove:function(e,t){o.each(this._features,(function(n){n.remove&&n.remove(e,t)})),this.group.removeAll()},dispose:function(e,t){o.each(this._features,(function(n){n.dispose&&n.dispose(e,t)}))}});function h(e){return 0===e.indexOf("my")}e.exports=d},21806:function(e,t){var n={};function i(e,t){n[e]=t}function o(e){return n[e]}t.register=i,t.get=o},2190:function(e,t,n){var i=n(33051),o=n(21806),r=n(40292),a=r.toolbox.brush;function s(e,t,n){this.model=e,this.ecModel=t,this.api=n,this._brushType,this._brushMode}s.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],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:i.clone(a.title)};var l=s.prototype;l.render=l.updateView=function(e,t,n){var o,r,a;t.eachComponent({mainType:"brush"},(function(e){o=e.brushType,r=e.brushOption.brushMode||"single",a|=e.areas.length})),this._brushType=o,this._brushMode=r,i.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?a:t===o)?"emphasis":"normal")}))},l.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return i.each(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},l.onclick=function(e,t,n){var i=this._brushType,o=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},o.register("brush",s);var u=s;e.exports=u},63795:function(e,t,n){var i=n(70492),o=n(33051),r=n(61158),a=n(40292),s=n(21806),l=a.toolbox.dataView,u=new Array(60).join("-"),c="\t";function d(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var o=e.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)n.push(e);else{var r=o.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;t[a]||(t[a]={categoryAxis:r,valueAxis:o.getOtherAxis(r),series:[]},i.push({axisDim:r.dim,axisIndex:r.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function h(e){var t=[];return o.each(e,(function(e,n){var i=e.categoryAxis,r=e.valueAxis,a=r.dim,s=[" "].concat(o.map(e.series,(function(e){return e.name}))),l=[i.model.getCategories()];o.each(e.series,(function(e){l.push(e.getRawData().mapArray(a,(function(e){return e})))}));for(var u=[s.join(c)],d=0;d<l[0].length;d++){for(var h=[],f=0;f<l.length;f++)h.push(l[f][d]);u.push(h.join(c))}t.push(u.join("\n"))})),t.join("\n\n"+u+"\n\n")}function f(e){return o.map(e,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,o=arguments[e-1],r=t.getName(o),a=0;a<e-1;a++)i[a]=arguments[a];n.push((r?r+c:"")+i.join(c))})),n.join("\n")})).join("\n\n"+u+"\n\n")}function p(e){var t=d(e);return{value:o.filter([h(t.seriesGroupByCategoryAxis),f(t.other)],(function(e){return e.replace(/[\n\t\s]/g,"")})).join("\n\n"+u+"\n\n"),meta:t.meta}}function g(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function v(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(c)>=0)return!0}var m=new RegExp("["+c+"]+","g");function y(e){for(var t=e.split(/\n+/g),n=g(t.shift()).split(m),i=[],r=o.map(n,(function(e){return{name:e,data:[]}})),a=0;a<t.length;a++){var s=g(t[a]).split(m);i.push(s.shift());for(var l=0;l<s.length;l++)r[l]&&(r[l].data[a]=s[l])}return{series:r,categories:i}}function x(e){for(var t=e.split(/\n+/g),n=g(t.shift()),i=[],o=0;o<t.length;o++){var r,a=g(t[o]).split(m),s="",l=!1;isNaN(a[0])?(l=!0,s=a[0],a=a.slice(1),i[o]={name:s,value:[]},r=i[o].value):r=i[o]=[];for(var u=0;u<a.length;u++)r.push(+a[u]);1===r.length&&(l?i[o].value=r[0]:i[o]=r[0])}return{name:n,data:i}}function _(e,t){var n=e.split(new RegExp("\n*"+u+"\n*","g")),i={series:[]};return o.each(n,(function(e,n){if(v(e)){var o=y(e),r=t[n],a=r.axisDim+"Axis";r&&(i[a]=i[a]||[],i[a][r.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{o=x(e);i.series.push(o)}})),i}function b(e){this._dom=null,this.model=e}function w(e,t){return o.map(e,(function(e,n){var i=t&&t[n];return o.isObject(i)&&!o.isArray(i)?(o.isObject(e)&&!o.isArray(e)&&(e=e.value),o.defaults({value:e},i)):e}))}b.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:o.clone(l.title),lang:o.clone(l.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},b.prototype.onclick=function(e,t){var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",a.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="display:block;width:100%;overflow:auto;";var d=i.get("optionToContent"),h=i.get("contentToOption"),f=p(e);if("function"===typeof d){var g=d(t.getOption());"string"===typeof g?u.innerHTML=g:o.isDom(g)&&u.appendChild(g)}else u.appendChild(c),c.readOnly=i.get("readOnly"),c.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",c.style.color=i.get("textColor"),c.style.borderColor=i.get("textareaBorderColor"),c.style.backgroundColor=i.get("textareaColor"),c.value=f.value;var v=f.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:0;left:0;right:0;";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),b=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var w=this;function S(){n.removeChild(a),w._dom=null}r.addEventListener(x,"click",S),r.addEventListener(b,"click",(function(){var e;try{e="function"===typeof h?h(u,t.getOption()):_(c.value,v)}catch(n){throw S(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),S()})),x.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=y,x.style.cssText=y,!i.get("readOnly")&&m.appendChild(b),m.appendChild(x),a.appendChild(s),a.appendChild(u),a.appendChild(m),u.style.height=n.clientHeight-80+"px",n.appendChild(a),this._dom=a},b.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},b.prototype.dispose=function(e,t){this.remove(e,t)},s.register("dataView",b),i.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];o.each(e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var r=i.get("data");n.push({name:e.name,data:w(e.data,r)})}else n.push(o.extend({type:"scatter"},e))})),t.mergeOption(o.defaults({series:n},e.newOption))}));var S=b;e.exports=S},2758:function(e,t,n){var i=n(70492),o=n(33051),r=n(63448),a=n(64562),s=n(29570),l=n(19233),u=n(40292),c=n(21806);n(60953);var d=u.toolbox.dataZoom,h=o.each,f="\0_ec_\0toolbox-dataZoom_";function p(e,t,n){(this._brushController=new r(n.getZr())).on("brush",o.bind(this._onBrush,this)).mount(),this._isZoomActive}p.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:o.clone(d.title)};var g=p.prototype;g.render=function(e,t,n,i){this.model=e,this.ecModel=t,this.api=n,x(e,t,this,i,n),y(e,t)},g.onclick=function(e,t,n){v[n].call(this)},g.remove=function(e,t){this._brushController.unmount()},g.dispose=function(e,t){this._brushController.dispose()};var v={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function m(e){var t={};return o.each(["xAxisIndex","yAxisIndex"],(function(n){t[n]=e[n],null==t[n]&&(t[n]="all"),(!1===t[n]||"none"===t[n])&&(t[n]=[])})),t}function y(e,t){e.setIconStatus("back",s.count(t)>1?"emphasis":"normal")}function x(e,t,n,i,o){var r=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(r="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=r,e.setIconStatus("zoom",r?"emphasis":"normal");var s=new a(m(e.option),t,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(o,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!r&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}g._onBrush=function(e,t){if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new a(m(this.model.option),i,{include:["grid"]});o.matchOutputRanges(e,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(r("x",n,t[0]),r("y",n,t[1])):r({lineX:"x",lineY:"y"}[i],n,t)}})),s.push(i,n),this._dispatchZoomAction(n)}function r(e,t,o){var r=t.getAxis(e),a=r.model,s=u(e,a,i),c=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(o=l(0,o.slice(),r.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:o[0],endValue:o[1]})}function u(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var o=n.getAxisModel(e,t.componentIndex);o&&(i=n)})),i}},g._dispatchZoomAction=function(e){var t=[];h(e,(function(e,n){t.push(o.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},c.register("dataZoom",p),i.registerPreprocessor((function(e){if(e){var t=e.dataZoom||(e.dataZoom=[]);o.isArray(t)||(e.dataZoom=t=[t]);var n=e.toolbox;if(n&&(o.isArray(n)&&(n=n[0]),n&&n.feature)){var i=n.feature.dataZoom;r("xAxis",i),r("yAxis",i)}}function r(e,n){if(n){var i=e+"Index",r=n[i];null==r||"all"===r||o.isArray(r)||(r=!1===r||"none"===r?[]:[r]),a(e,(function(a,s){if(null==r||"all"===r||-1!==o.indexOf(r,s)){var l={type:"select",$fromToolbox:!0,filterMode:n.filterMode||"filter",id:f+e+s};l[i]=s,t.push(l)}}))}}function a(t,n){var i=e[t];o.isArray(i)||(i=i?[i]:[]),h(i,n)}}));var _=p;e.exports=_},34876:function(e,t,n){var i=n(70492),o=n(33051),r=n(40292),a=n(21806),s=r.toolbox.magicType,l="__ec_magicType_stack__";function u(e){this.model=e}u.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:o.clone(s.title),option:{},seriesIndex:{}};var c=u.prototype;c.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return o.each(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n};var d={line:function(e,t,n,i){if("bar"===e)return o.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(e,t,n,i){if("line"===e)return o.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===l;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),o.merge({id:t,stack:r?"":l},i.get("option.stack")||{},!0)}},h=[["line","bar"],["stack"]];c.onclick=function(e,t,n){var i=this.model,r=i.get("seriesIndex."+n);if(d[n]){var a,u={series:[]},c=function(t){var r=t.subType,a=t.id,s=d[n](r,a,t,i);s&&(o.defaults(s,t.option),u.series.push(s));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var c=l.getAxesByScale("ordinal")[0];if(c){var h=c.dim,f=h+"Axis",p=e.queryComponents({mainType:f,index:t.get(name+"Index"),id:t.get(name+"Id")})[0],g=p.componentIndex;u[f]=u[f]||[];for(var v=0;v<=g;v++)u[f][g]=u[f][g]||{};u[f][g].boundaryGap="bar"===n}}};if(o.each(h,(function(e){o.indexOf(e,n)>=0&&o.each(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},c),"stack"===n){var f=u.series&&u.series[0]&&u.series[0].stack===l;a=f?o.merge({stack:s.title.tiled},s.title):o.clone(s.title)}t.dispatchAction({type:"changeMagicType",currentType:n,newOption:u,newTitle:a,featureName:"magicType"})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)})),a.register("magicType",u);var f=u;e.exports=f},9856:function(e,t,n){var i=n(70492),o=n(29570),r=n(40292),a=n(21806),s=r.toolbox.restore;function l(e){this.model=e}l.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:s.title};var u=l.prototype;u.onclick=function(e,t,n){o.clear(e),t.dispatchAction({type:"restore",from:this.uid})},a.register("restore",l),i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var c=l;e.exports=c},40354:function(e,t,n){var i=n(66387),o=n(40292),r=n(21806),a=o.toolbox.saveAsImage;function s(e){this.model=e}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:a.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},s.prototype.unusable=!i.canvasSupported;var l=s.prototype;l.onclick=function(e,t){var n=this.model,o=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),a=r?"svg":n.get("type",!0)||"png",s=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||i.browser.ie||i.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(s.split(",")[1]),u=l.length,c=new Uint8Array(u);while(u--)c[u]=l.charCodeAt(u);var d=new Blob([c]);window.navigator.msSaveOrOpenBlob(d,o+"."+a)}else{var h=n.get("lang"),f='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(h&&h[0]||"")+'" /></body>',p=window.open();p.document.write(f)}else{var g=document.createElement("a");g.download=o+"."+a,g.target="_blank",g.href=s;var v=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});g.dispatchEvent(v)}},r.register("saveAsImage",s);var u=s;e.exports=u},83062:function(e,t,n){var i=n(70492);n(52528),n(16470),n(88085),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},36333:function(e,t,n){var i=n(33051),o=n(21092),r=n(61158),a=n(18553),s=n(66387),l=n(78988),u=i.each,c=l.toCamelCase,d=["","-webkit-","-moz-","-o-"],h="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function f(e){var t="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+e+"s "+t+",top "+e+"s "+t;return i.map(d,(function(e){return e+"transition:"+n})).join(";")}function p(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();return i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px"),u(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function g(e){var t=[],n=e.get("transitionDuration"),i=e.get("backgroundColor"),r=e.getModel("textStyle"),a=e.get("padding");return n&&t.push(f(n)),i&&(s.canvasSupported?t.push("background-Color:"+i):(t.push("background-Color:#"+o.toHex(i)),t.push("filter:alpha(opacity=70)"))),u(["width","color","radius"],(function(n){var i="border-"+n,o=c(i),r=e.get(o);null!=r&&t.push(i+":"+r+("color"===n?"":"px"))})),t.push(p(r)),null!=a&&t.push("padding:"+l.normalizeCssArray(a).join("px ")+"px"),t.join(";")+";"}function v(e,t,n,i,o){var r=t&&t.painter;if(n){var s=r&&r.getViewportRoot();s&&a.transformLocalCoord(e,s,document.body,i,o)}else{e[0]=i,e[1]=o;var l=r&&r.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}}function m(e,t,n){if(s.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var o=this._zr=t.getZr(),a=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0],v(this._styleCoord,o,a,t.getWidth()/2,t.getHeight()/2),a?document.body.appendChild(i):e.appendChild(i),this._container=e,this._show=!1,this._hideTimeout;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!l._enterable){var t=o.handler,n=o.painter.getViewportRoot();r.normalizeEvent(n,e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}m.prototype={constructor:m,_enterable:!0,update:function(){var e=this._container,t=e.currentStyle||document.defaultView.getComputedStyle(e),n=e.style;"absolute"!==n.position&&"absolute"!==t.position&&(n.position="relative")},show:function(e){clearTimeout(this._hideTimeout);var t=this.el,n=this._styleCoord;t.style.cssText=h+g(e)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",t.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var n=this._styleCoord;v(n,this._zr,this._appendToBody,e,t);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(e+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),t+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:t}}};var y=m;e.exports=y},16470:function(e,t,n){var i=n(70492),o=i.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});e.exports=o},97634:function(e,t,n){var i=n(33051),o=n(96498);function r(e){this._zr=e.getZr(),this._show=!1,this._hideTimeout}r.prototype={constructor:r,_enterable:!0,update:function(){},show:function(e){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,t,n){this.el&&this._zr.remove(this.el);var i={},r=e,a="{marker",s="|}",l=r.indexOf(a);while(l>=0){var u=r.indexOf(s),c=r.substr(l+a.length,u-l-a.length);c.indexOf("sub")>-1?i["marker"+c]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[c],textOffset:[3,0]}:i["marker"+c]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[c]},r=r.substr(u+1),l=r.indexOf("{marker")}this.el=new o({style:{rich:i,text:e,textLineHeight:20,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding")},z:n.get("z")}),this._zr.add(this.el);var d=this;this.el.on("mouseover",(function(){d._enterable&&(clearTimeout(d._hideTimeout),d._show=!0),d._inContent=!0})),this.el.on("mouseout",(function(){d._enterable&&d._show&&d.hideLater(d._hideDelay),d._inContent=!1}))},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,t){this.el&&this.el.attr("position",[e,t])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var e=this.getSize();return{width:e[0],height:e[1]}}};var a=r;e.exports=a},88085:function(e,t,n){var i=n(70492),o=n(33051),r=n(66387),a=n(36333),s=n(97634),l=n(78988),u=n(85669),c=n(51177),d=n(92448),h=n(76172),f=n(4272),p=n(56996),g=n(97980),v=n(75539),m=n(32234),y=m.getTooltipRenderMode,x=o.bind,_=o.each,b=u.parsePercent,w=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),S=i.extendComponentView({type:"tooltip",init:function(e,t){if(!r.node){var n,i=e.getComponent("tooltip"),o=i.get("renderMode");this._renderMode=y(o),"html"===this._renderMode?(n=new a(t.getDom(),t,{appendToBody:i.get("appendToBody",!0)}),this._newLine="<br/>"):(n=new s(t),this._newLine="\n"),this._tooltipContent=n}},render:function(e,t,n){if(!r.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel,t=e.get("triggerOn");p.register("itemTooltip",this._api,x((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(e,t,n,i){if(i.from!==this.uid&&!r.node){var o=I(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=w;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},o)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var l=d(i,t),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:i.position,target:l.el},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},manuallyHideTip:function(e,t,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(I(i,n))},_manuallyAxisShowTip:function(e,t,n,i){var o=i.seriesIndex,r=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){var s=t.getSeriesByIndex(o);if(s){var l=s.getData();e=M([l.getItemModel(r),s,(s.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}}},_tryShow:function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;o&&o.length?this._showAxisTooltip(o,e):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var n=e.get("showDelay");t=o.bind(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},_showAxisTooltip:function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],a=[],s=[],u=M([t.tooltipOption,i]),c=this._renderMode,d=this._newLine,h={};_(e,(function(e){_(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value,r=[];if(t&&null!=i){var u=v.getValueLabel(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt);o.each(e.seriesDataIndices,(function(a){var l=n.getSeriesByIndex(a.seriesIndex),d=a.dataIndexInside,f=l&&l.getDataParams(d);if(f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=g.getAxisRawValue(t.axis,i),f.axisValueLabel=u,f){s.push(f);var p,v=l.formatTooltip(d,!0,null,c);if(o.isObject(v)){p=v.html;var m=v.markers;o.merge(h,m)}else p=v;r.push(p)}}));var f=u;"html"!==c?a.push(r.join(d)):a.push((f?l.encodeHTML(f)+d:"")+r.join(d))}}))}),this),a.reverse(),a=a.join(this._newLine+this._newLine);var f=t.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(u,f,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(u,a,s,Math.random(),r[0],r[1],f,void 0,h)}))},_showSeriesItemTooltip:function(e,t,n){var i=this._ecModel,r=t.seriesIndex,a=i.getSeriesByIndex(r),s=t.dataModel||a,l=t.dataIndex,u=t.dataType,c=s.getData(u),d=M([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),h=d.get("trigger");if(null==h||"item"===h){var f,p,g=s.getDataParams(l,u),v=s.formatTooltip(l,!1,u,this._renderMode);o.isObject(v)?(f=v.html,p=v.markers):(f=v,p=null);var m="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,f,g,m,e.offsetX,e.offsetY,e.position,e.target,p)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var i=t.tooltip;if("string"===typeof i){var o=i;i={content:o,formatter:o}}var r=new f(i,this._tooltipModel,this._ecModel),a=r.get("content"),s=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,a,r.get("formatterParams")||{},s,e.offsetX,e.offsetY,e.position,t)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,i,o,r,a,s,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent,d=e.get("formatter");a=a||e.get("position");var h=t;if(d&&"string"===typeof d)h=l.formatTpl(d,n,!0);else if("function"===typeof d){var f=x((function(t,i){t===this._ticket&&(c.setContent(i,u,e),this._updatePosition(e,a,o,r,c,n,s))}),this);this._ticket=i,h=d(n,i,f)}c.setContent(h,u,e),c.show(e),this._updatePosition(e,a,o,r,c,n,s)}},_updatePosition:function(e,t,n,i,r,a,s){var l=this._api.getWidth(),u=this._api.getHeight();t=t||e.get("position");var c=r.getSize(),d=e.get("align"),f=e.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"===typeof t&&(t=t([n,i],a,r.el,p,{viewSize:[l,u],contentSize:c.slice()})),o.isArray(t))n=b(t[0],l),i=b(t[1],u);else if(o.isObject(t)){t.width=c[0],t.height=c[1];var g=h.getLayoutRect(t,{width:l,height:u});n=g.x,i=g.y,d=null,f=null}else if("string"===typeof t&&s){var v=P(t,p,c);n=v[0],i=v[1]}else{v=A(n,i,r,l,u,d?null:20,f?null:20);n=v[0],i=v[1]}if(d&&(n-=C(d)?c[0]/2:"right"===d?c[0]:0),f&&(i-=C(f)?c[1]/2:"bottom"===f?c[1]:0),e.get("confine")){v=k(n,i,r,l,u);n=v[0],i=v[1]}r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&_(t,(function(t,i){var o=t.dataByAxis||{},r=e[i]||{},a=r.dataByAxis||[];n&=o.length===a.length,n&&_(o,(function(e,t){var i=a[t]||{},o=e.seriesDataIndices||[],r=i.seriesDataIndices||[];n&=e.value===i.value&&e.axisType===i.axisType&&e.axisId===i.axisId&&o.length===r.length,n&&_(o,(function(e,t){var i=r[t];n&=e.seriesIndex===i.seriesIndex&&e.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){r.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",t))}});function M(e){var t=e.pop();while(e.length){var n=e.pop();n&&(f.isInstance(n)&&(n=n.get("tooltip",!0)),"string"===typeof n&&(n={formatter:n}),t=new f(n,t,t.ecModel))}return t}function I(e,t){return e.dispatchAction||o.bind(t.dispatchAction,t)}function A(e,t,n,i,o,r,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=r&&(e+l+r>i?e-=l+r:e+=r),null!=a&&(t+u+a>o?t-=u+a:t+=a),[e,t]}function k(e,t,n,i,o){var r=n.getOuterSize(),a=r.width,s=r.height;return e=Math.min(e+a,i)-a,t=Math.min(t+s,o)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function P(e,t,n){var i=n[0],o=n[1],r=5,a=0,s=0,l=t.width,u=t.height;switch(e){case"inside":a=t.x+l/2-i/2,s=t.y+u/2-o/2;break;case"top":a=t.x+l/2-i/2,s=t.y-o-r;break;case"bottom":a=t.x+l/2-i/2,s=t.y+u+r;break;case"left":a=t.x-i-r,s=t.y+u/2-o/2;break;case"right":a=t.x+l+r,s=t.y+u/2-o/2}return[a,s]}function C(e){return"center"===e||"middle"===e}e.exports=S},88067:function(e,t,n){n(23084),n(56720)},23084:function(e,t,n){var i=n(70492),o=n(6102);n(60602),n(62207),n(57817),n(61137),n(58376),i.registerPreprocessor(o)},56720:function(e,t,n){var i=n(70492),o=n(6102);n(60602),n(62207),n(52822),n(12229),n(58376),i.registerPreprocessor(o)},57817:function(e,t,n){var i=n(33051),o=n(39276),r=n(85669),a=[20,140],s=o.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(e,t){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var e=this.itemSize;"horizontal"===this._orient&&e.reverse(),(null==e[0]||isNaN(e[0]))&&(e[0]=a[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=a[1])},_resetRange:function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):i.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){o.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)}),this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=r.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},getValueState:function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimension(o),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},getVisualMeta:function(e){var t=l(this,"outOfRange",this.getExtent()),n=l(this,"inRange",this.option.range.slice()),i=[];function o(t,n){i.push({value:t,color:e(t,n)})}for(var r=0,a=0,s=n.length,u=t.length;a<u&&(!n.length||t[a]<=n[0]);a++)t[a]<n[r]&&o(t[a],"outOfRange");for(var c=1;r<s;r++,c=0)c&&i.length&&o(n[r],"outOfRange"),o(n[r],"inRange");for(c=1;a<u;a++)(!n.length||n[n.length-1]<t[a])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(t[a],"outOfRange"));var d=i.length;return{stops:i,outerColors:[d?i[0].color:"transparent",d?i[d-1].color:"transparent"]}}});function l(e,t,n){if(n[0]===n[1])return n.slice();for(var i=200,o=(n[1]-n[0])/i,r=n[0],a=[],s=0;s<=i&&r<n[1];s++)a.push(r),r+=o;return a.push(n[1]),a}var u=s;e.exports=u},61137:function(e,t,n){var i=n(33051),o=n(74438),r=n(61158),a=n(34320),s=n(51177),l=n(85669),u=n(19233),c=n(38380),d=n(32234),h=l.linearMap,f=i.each,p=Math.min,g=Math.max,v=12,m=6,y=a.extend({type:"visualMap.continuous",init:function(){y.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},_renderEndsText:function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var o=this.visualMapModel,r=o.get("textGap"),a=o.itemSize,l=this._shapes.barGroup,u=this._applyTransform([a[0]/2,0===n?-r:a[1]+r],l),c=this._applyTransform(0===n?"bottom":"top",l),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:u[0],y:u[1],textVerticalAlign:"horizontal"===d?"middle":c,textAlign:"horizontal"===d?c:"center",text:i,textFont:h.getFont(),textFill:h.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,n=this._shapes,o=t.itemSize,r=this._orient,a=this._useHandle,s=c.getItemAlign(t,this.api,o),l=n.barGroup=this._createBarGroup(s);l.add(n.outOfRange=x()),l.add(n.inRange=x(null,a?M(this._orient):null,i.bind(this._dragHandle,this,"all",!1),i.bind(this._dragHandle,this,"all",!0)));var u=t.textStyleModel.getTextRect("国"),d=g(u.width,u.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(l,0,o,d,r,s),this._createHandle(l,1,o,d,r,s)),this._createIndicator(l,o,d,r),e.add(l)},_createHandle:function(e,t,n,o,a){var l=i.bind(this._dragHandle,this,t,!1),u=i.bind(this._dragHandle,this,t,!0),c=x(_(t,o),M(this._orient),l,u);c.position[0]=n[0],e.add(c);var d=this.visualMapModel.textStyleModel,h=new s.Text({draggable:!0,drift:l,onmousemove:function(e){r.stop(e.event)},ondragend:u,style:{x:0,y:0,text:"",textFont:d.getFont(),textFill:d.getTextColor()}});this.group.add(h);var f=["horizontal"===a?o/2:1.5*o,"horizontal"===a?0===t?-1.5*o:1.5*o:0===t?-o/2:o/2],p=this._shapes;p.handleThumbs[t]=c,p.handleLabelPoints[t]=f,p.handleLabels[t]=h},_createIndicator:function(e,t,n,i){var o=x([[0,0]],"move");o.position[0]=t[0],o.attr({invisible:!0,silent:!0}),e.add(o);var r=this.visualMapModel.textStyleModel,a=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:r.getFont(),textFill:r.getTextColor()}});this.group.add(a);var l=["horizontal"===i?n/2:m+3,0],u=this._shapes;u.indicator=o,u.indicatorLabel=a,u.indicatorLabelPoint=l},_dragHandle:function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var o=this._applyTransform([n,i],this._shapes.barGroup,!0);this._updateInterval(e,o[1]),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():S(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[h(t[0],n,i,!0),h(t[1],n,i,!0)]},_updateInterval:function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];u(t,i,o,e,0);var r=n.getExtent();this._dataInterval=[h(i[0],o,r,!0),h(i[1],o,r,!0)]},_updateView:function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,o=[0,t.itemSize[1]],r=e?o:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,r,"inRange"),s=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(r,a)},_createBarVisual:function(e,t,n,i){var r={forceState:i,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,r),s=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],l=this._createBarPoints(n,s);return{barColor:new o(0,0,0,1,a),barPoints:l,handlesColor:[a[0].color,a[a.length-1].color]}},_makeColorGradient:function(e,t){var n=100,i=[],o=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var r=1;r<n;r++){var a=e[0]+o*r;if(a>e[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:r/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},_createBarPoints:function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==t||n?"horizontal"===t&&n?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==t||n?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,r=n.handleLabels;f([0,1],(function(a){var l=o[a];l.setStyle("fill",t.handlesColor[a]),l.position[1]=e[a];var u=s.applyTransform(n.handleLabelPoints[a],s.getTransform(l,this.group));r[a].setStyle({x:u[0],y:u[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(e,t,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,l=[0,a[1]],u=h(e,r,l,!0),c=this._shapes,d=c.indicator;if(d){d.position[1]=u,d.attr("invisible",!1),d.setShape("points",b(!!n,i,u,a[1]));var f={convertOpacityToAlpha:!0},p=this.getControllerVisual(e,"color",f);d.setStyle("fill",p);var g=s.applyTransform(c.indicatorLabelPoint,s.getTransform(d,this.group)),v=c.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",c.barGroup),y=this._orient;v.setStyle({text:(n||"")+o.formatValueText(t),textVerticalAlign:"horizontal"===y?m:"middle",textAlign:"horizontal"===y?"center":m,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);i[1]=p(g(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],r=n.getExtent();e=p(g(o[0],e),o[1]);var a=w(n,r,o),s=[e-a,e+a],l=h(e,o,r,!0),u=[h(s[0],o,r,!0),h(s[1],o,r,!0)];s[0]<o[0]&&(u[0]=-1/0),s[1]>o[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var f=this._hoverLinkDataIndices,v=[];(t||S(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var m=d.compressBatches(f,v);this._dispatchHighDown("downplay",c.makeHighDownBatch(m[0],n)),this._dispatchHighDown("highlight",c.makeHighDownBatch(m[1],n))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=t.dataIndex){var i=this.ecModel.getSeriesByIndex(t.seriesIndex);if(n.isTargetSeries(i)){var o=i.getData(t.dataType),r=o.get(n.getDataDimension(o),t.dataIndex,!0);isNaN(r)||this._showIndicator(r,r)}}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.makeHighDownBatch(e,this.visualMapModel)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,n,o){var r=s.getTransform(t,o?null:this.group);return s[i.isArray(e)?"applyTransform":"transformDirection"](e,r,n)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function x(e,t,n,i){return new s.Polygon({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){r.stop(e.event)},ondragend:i})}function _(e,t){return 0===e?[[0,0],[t,0],[t,-t]]:[[0,0],[t,0],[t,t]]}function b(e,t,n,i){return e?[[0,-p(t,g(n,0))],[m,0],[0,p(t,g(i-n,0))]]:[[0,0],[5,-5],[5,5]]}function w(e,t,n){var i=v/2,o=e.get("hoverLinkDataSize");return o&&(i=h(o,t,n,!0)/2),i}function S(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function M(e){return"vertical"===e?"ns-resize":"ew-resize"}var I=y;e.exports=I},52822:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=n(39276),a=n(59937),s=n(82300),l=n(85669),u=l.reformIntervals,c=r.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,t){c.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();d[this._mode].call(this),this._resetSelected(e,t);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===n?(e.mappingMethod="category",e.categories=o.clone(i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=o.map(this._pieceList,(function(e){e=o.clone(e);return"inRange"!==t&&(e.visual=null),e})))}))},completeVisualOption:function(){var e=this.option,t={},n=a.listVisualTypes(),i=this.isCategory();function l(e,t,n){return e&&e[t]&&(o.isObject(e[t])?e[t].hasOwnProperty(n):e[t]===n)}o.each(e.pieces,(function(e){o.each(n,(function(n){e.hasOwnProperty(n)&&(t[n]=1)}))})),o.each(t,(function(t,n){var r=0;o.each(this.stateList,(function(t){r|=l(e,t,n)||l(e.target,t,n)}),this),!r&&o.each(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=s.get(n,"inRange"===t?"active":"inactive",i)}))}),this),r.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,o.each(i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var a=!1;o.each(i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(a?r[n]=!1:a=!0)}),this)}},getSelectedMapKey:function(e){return"categories"===this._mode?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=o.clone(e)},getValueState:function(e){var t=a.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimension(o),(function(t,n){var o=a.findPieceIndex(t,this._pieceList);o===e&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},getVisualMeta:function(e){if(!this.isCategory()){var t=[],n=[],i=this,r=this._pieceList.slice();if(r.length){var a=r[0].interval[0];a!==-1/0&&r.unshift({interval:[-1/0,a]}),a=r[r.length-1].interval[1],a!==1/0&&r.push({interval:[a,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return o.each(r,(function(e){var t=e.interval;t&&(t[0]>s&&l([s,t[0]],"outOfRange"),l(t.slice()),s=t[1])}),this),{stops:t,outerColors:n}}function l(o,r){var a=i.getRepresentValue({interval:o});r||(r=i.getValueState(a));var s=e(a,r);o[0]===-1/0?n[0]=s:o[1]===1/0?n[1]=s:t.push({value:o[0],color:s},{value:o[1],color:s})}}}),d={splitNumber:function(){var e=this.option,t=this._pieceList,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var a=(i[1]-i[0])/r;while(+a.toFixed(n)!==a&&n<5)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var s=0,l=i[0];s<r;l+=a,s++){var c=s===r-1?i[1]:l+a;t.push({interval:[l,c],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),u(t),o.each(t,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(){var e=this.option;o.each(e.categories,(function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})}),this),h(e,this._pieceList)},pieces:function(){var e=this.option,t=this._pieceList;o.each(e.pieces,(function(e,n){o.isObject(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var s=i.interval=[],l=i.close=[0,0],u=[1,0,1],c=[-1/0,1/0],d=[],h=0;h<2;h++){for(var f=[["gte","gt","min"],["lte","lt","max"]][h],p=0;p<3&&null==s[h];p++)s[h]=e[f[p]],l[h]=u[p],d[h]=2===p;null==s[h]&&(s[h]=c[h])}d[0]&&s[1]===1/0&&(l[0]=0),d[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(i.value=s[0])}i.visual=a.retrieveVisuals(e),t.push(i)}),this),h(e,t),u(t),o.each(t,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function h(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var f=c;e.exports=f},12229:function(e,t,n){var i=n(33051),o=n(34320),r=n(51177),a=n(41525),s=a.createSymbol,l=n(76172),u=n(38380),c=o.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),o=t.textStyleModel,a=o.getFont(),s=o.getTextColor(),u=this._getItemAlign(),c=t.itemSize,d=this._getViewData(),h=d.endsText,f=i.retrieve(t.get("showLabel",!0),!h);function p(o){var l=o.piece,d=new r.Group;d.onclick=i.bind(this._onItemClick,this,l),this._enableHoverLink(d,o.indexInModelPieceList);var h=t.getRepresentValue(l);if(this._createItemSymbol(d,h,[0,0,c[0],c[1]]),f){var p=this.visualMapModel.getValueState(h);d.add(new r.Text({style:{x:"right"===u?-n:c[0]+n,y:c[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:u,textFont:a,textFill:s,opacity:"outOfRange"===p?.5:1}}))}e.add(d)}h&&this._renderEndsText(e,h[0],c,f,u),i.each(d.viewPieceList,p,this),h&&this._renderEndsText(e,h[1],c,f,u),l.box(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(e,t){function n(e){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:e,batch:u.makeHighDownBatch(n.findTargetDataIndices(t),n)})}e.on("mouseover",i.bind(n,this,"highlight")).on("mouseout",i.bind(n,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return u.getItemAlign(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(e,t,n,i,o){if(t){var a=new r.Group,s=this.visualMapModel.textStyleModel;a.add(new r.Text({style:{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?o:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),e.add(a)}},_getViewData:function(){var e=this.visualMapModel,t=i.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),o=e.get("orient"),r=e.get("inverse");return("horizontal"===o?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},_createItemSymbol:function(e,t,n){e.add(s(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,n=t.option,o=i.clone(n.selected),r=t.getSelectedMapKey(e);"single"===n.selectedMode?(o[r]=!0,i.each(o,(function(e,t){o[t]=t===r}))):o[r]=!o[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}}),d=c;e.exports=d},39276:function(e,t,n){var i=n(70492),o=n(33051),r=n(66387),a=n(82300),s=n(59937),l=n(30801),u=n(32234),c=n(85669),d=s.mapVisual,h=s.eachVisual,f=o.isArray,p=o.each,g=c.asc,v=c.linearMap,m=o.noop,y=i.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,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,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(e,t,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(e,n)},optionUpdated:function(e,t){var n=this.option;r.canvasSupported||(n.realtime=!1),!t&&l.replaceVisualOption(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(e){var t=this.stateList;e=o.bind(e,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,t,e),this.targetVisuals=l.createVisualMappings(this.option.target,t,e)},getTargetSeriesIndices:function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=u.normalizeToArray(e),t},eachTargetSeries:function(e,t){o.each(this.getTargetSeriesIndices(),(function(n){e.call(t,this.ecModel.getSeriesByIndex(n))}),this)},isTargetSeries:function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},formatValueText:function(e,t,n){var i,r,a=this.option,s=a.precision,l=this.dataBound,u=a.formatter;return n=n||["<",">"],o.isArray(e)&&(e=e.slice(),i=!0),r=t?e:i?[c(e[0]),c(e[1])]:c(e),o.isString(u)?u.replace("{value}",i?r[0]:r).replace("{value2}",i?r[1]:r):o.isFunction(u)?i?u(e[0],e[1]):u(e):i?e[0]===l[0]?n[0]+" "+r[1]:e[1]===l[1]?n[1]+" "+r[0]:r[0]+" - "+r[1]:r;function c(e){return e===l[0]?"min":e===l[1]?"max":(+e).toFixed(Math.min(s,20))}},resetExtent:function(){var e=this.option,t=g([e.min,e.max]);this._dataExtent=t},getDataDimension:function(e){var t=this.option.dimension,n=e.dimensions;if(null!=t||n.length){if(null!=t)return e.getDimension(t);for(var i=e.dimensions,o=i.length-1;o>=0;o--){var r=i[o],a=e.getDimensionInfo(r);if(!a.isCalculationCoord)return r}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});o.merge(i,n),o.merge(r,n);var l=this.isCategory();function u(n){f(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")},p(this.stateList,(function(e){var t=n[e];if(o.isString(t)){var i=a.get(t,"active",l);i?(n[e]={},n[e][t]=i):delete n[e]}}),this)}function c(e,t,n){var i=e[t],o=e[n];i&&!o&&(o=e[n]={},p(i,(function(e,t){if(s.isValidType(t)){var n=a.get(t,"inactive",l);null!=n&&(o[t]=n,"color"!==t||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}})))}function g(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor");p(this.stateList,(function(r){var a=this.itemSize,s=e[r];s||(s=e[r]={color:l?i:[i]}),null==s.symbol&&(s.symbol=t&&o.clone(t)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&o.clone(n)||(l?a[0]:[a[0],a[0]])),s.symbol=d(s.symbol,(function(e){return"none"===e||"square"===e?"roundRect":e}));var u=s.symbolSize;if(null!=u){var c=-1/0;h(u,(function(e){e>c&&(c=e)})),s.symbolSize=d(u,(function(e){return v(e,[0,c],[0,a[0]],!0)}))}}),this)}u.call(this,i),u.call(this,r),c.call(this,i,"inRange","outOfRange"),g.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:m,getValueState:m,getVisualMeta:m}),x=y;e.exports=x},34320:function(e,t,n){var i=n(70492),o=n(33051),r=n(51177),a=n(78988),s=n(76172),l=n(59937),u=i.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(e,t){this.ecModel=e,this.api=t,this.visualMapModel},render:function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(e){var t=this.visualMapModel,n=a.normalizeCssArray(t.get("padding")||0),i=e.getBoundingRect();e.add(new r.Rect({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},getControllerVisual:function(e,t,n){n=n||{};var i=n.forceState,r=this.visualMapModel,a={};if("symbol"===t&&(a.symbol=r.get("itemSymbol")),"color"===t){var s=r.get("contentColor");a.color=s}function u(e){return a[e]}function c(e,t){a[e]=t}var d=r.controllerVisuals[i||r.getValueState(e)],h=l.prepareVisualTypes(d);return o.each(h,(function(i){var o=d[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",o=d.__alphaForOpacity),l.dependsOn(i,t)&&o&&o.applyVisual(e,u,c)})),a[t]},positionGroup:function(e){var t=this.visualMapModel,n=this.api;s.positionElement(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:o.noop});e.exports=u},38380:function(e,t,n){var i=n(33051),o=n(76172),r=o.getLayoutRect;function a(e,t,n){var i=e.option,o=i.align;if(null!=o&&"auto"!==o)return o;for(var a={width:t.getWidth(),height:t.getHeight()},s="horizontal"===i.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],d={},h=0;h<3;h++)d[l[1-s][h]]=c[h],d[u[h]]=2===h?n[0]:i[u[h]];var f=[["x","width",3],["y","height",0]][s],p=r(d,a,i.padding);return u[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*a[f[1]]?0:1]}function s(e,t){return i.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}t.getItemAlign=a,t.makeHighDownBatch=s},6102:function(e,t,n){var i=n(33051),o=i.each;function r(e){var t=e&&e.visualMap;i.isArray(t)||(t=t?[t]:[]),o(t,(function(e){if(e){a(e,"splitList")&&!a(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&i.isArray(t)&&o(t,(function(e){i.isObject(e)&&(a(e,"start")&&!a(e,"min")&&(e.min=e.start),a(e,"end")&&!a(e,"max")&&(e.max=e.end))}))}}))}function a(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}e.exports=r},60602:function(e,t,n){var i=n(98071);i.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}))},62207:function(e,t,n){var i=n(70492),o=n(33051),r=n(30801),a=n(59937),s=i.PRIORITY.VISUAL.COMPONENT;function l(e,t,n,i){for(var o=t.targetVisuals[i],r=a.prepareVisualTypes(o),s={color:e.getData().getVisual("color")},l=0,u=r.length;l<u;l++){var c=r[l],d=o["opacity"===c?"__alphaForOpacity":c];d&&d.applyVisual(n,h,f)}return s.color;function h(e){return s[e]}function f(e,t){s[e]=t}}i.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i=e.pipelineContext;!t.isTargetSeries(e)||i&&i.large||n.push(r.incrementalApplyVisual(t.stateList,t.targetVisuals,o.bind(t.getValueState,t),t.getDataDimension(e.getData())))})),n}}),i.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(o.bind(l,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimension(n),s=n.getDimensionInfo(a);null!=s&&(r.dimension=s.index,i.push(r))}})),e.getData().setVisual("visualMeta",i)}})},58376:function(e,t,n){var i=n(70492),o={type:"selectDataRange",event:"dataRangeSelected",update:"update"};i.registerAction(o,(function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))}))},38175:function(e,t,n){var i;"undefined"!==typeof window?i=window.__DEV__:"undefined"!==typeof n.g&&(i=n.g.__DEV__),"undefined"===typeof i&&(i=!0);var o=i;t.__DEV__=o},3245:function(e,t,n){var i=n(33051),o=i.each,r=i.map,a=n(85669),s=a.linearMap,l=a.getPixelPrecision,u=a.round,c=n(58958),d=c.createAxisTicks,h=c.createAxisLabels,f=c.calculateCategoryInterval,p=[0,1],g=function(e,t,n){this.dim=e,this.scale=t,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function v(e,t){var n=e[1]-e[0],i=t,o=n/i/2;e[0]+=o,e[1]-=o}function m(e,t,n,i){var r=t.length;if(e.onBand&&!n&&r){var a,s,l=e.getExtent();if(1===r)t[0].coord=l[0],a=t[1]={coord:l[0]};else{var c=t[r-1].tickValue-t[0].tickValue,d=(t[r-1].coord-t[0].coord)/c;o(t,(function(e){e.coord-=d/2}));var h=e.scale.getExtent();s=1+h[1]-t[r-1].tickValue,a={coord:t[r-1].coord+d*s},t.push(a)}var f=l[0]>l[1];p(t[0].coord,l[0])&&(i?t[0].coord=l[0]:t.shift()),i&&p(l[0],t[0].coord)&&t.unshift({coord:l[0]}),p(l[1],a.coord)&&(i?a.coord=l[1]:t.pop()),i&&p(a.coord,l[1])&&t.push({coord:l[1]})}function p(e,t){return e=u(e),t=u(t),f?e>t:e<t}}g.prototype={constructor:g,contain:function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},containData:function(e){return this.scale.contain(e)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(e){return l(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var n=this._extent;n[0]=e,n[1]=t},dataToCoord:function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),v(n,i.count())),s(e,p,n,t)},coordToData:function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),v(n,i.count()));var o=s(e,n,p,t);return this.scale.scale(o)},pointToData:function(e,t){},getTicksCoords:function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=d(this,t),i=n.ticks,o=r(i,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this),a=t.get("alignWithLabel");return m(this,o,a,e.clamp),o},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=r(n,(function(e){return r(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},getViewLabels:function(){return h(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return f(this)}};var y=g;e.exports=y},23845:function(e,t,n){var i=n(33051),o=n(45280),r=n(32892),a=n(60479),s=n(58023),l=o.applyTransform;function u(){s.call(this)}function c(e){this.name=e,this.zoomLimit,s.call(this),this._roamTransformable=new u,this._rawTransformable=new u,this._center,this._zoom}function d(e,t,n,i){var o=n.seriesModel,r=o?o.coordinateSystem:null;return r===this?r[e](i):null}i.mixin(u,s),c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,n,i){return this._rect=new a(e,t,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,n,i){this.transformTo(e,t,n,i),this._viewRect=new a(e,t,n,i)},transformTo:function(e,t,n,i){var o=this.getBoundingRect(),r=this._rawTransformable;r.transform=o.calculateTransform(new a(e,t,n,i)),r.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},setZoom:function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},getDefaultCenter:function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=o.applyTransform([],i,e),n=o.applyTransform([],n,e),t.origin=i,t.position=[n[0]-i[0],n[1]-i[1]],t.scale=[r,r],this._updateTransform()},_updateTransform:function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),r.copy(this.transform||(this.transform=[]),t.transform||r.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],r.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var e=this._roamTransformable.transform,t=this._rawTransformable;return{roamTransform:e?i.slice(e):r.create(),rawScale:i.slice(t.scale),rawPosition:i.slice(t.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?l(n,e,i):o.copy(n,e)},pointToData:function(e){var t=this.invTransform;return t?l([],e,t):[e[0],e[1]]},convertToPixel:i.curry(d,"dataToPoint"),convertFromPixel:i.curry(d,"pointToData"),containPoint:function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])}},i.mixin(c,s);var h=c;e.exports=h},66484:function(e,t,n){var i=n(33051),o={show:!0,zlevel: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:"#333",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:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},r={};r.categoryAxis=i.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},o),r.valueAxis=i.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},o),r.timeAxis=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},r.valueAxis),r.logAxis=i.defaults({scale:!0,logBase:10},r.valueAxis);var a=r;e.exports=a},97980:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=n(85043),a=n(70103),s=n(60379),l=n(85669),u=n(79093),c=u.prepareLayoutBarSeries,d=u.makeColumnLayout,h=u.retrieveColumnLayout,f=n(60479);function p(e,t){var n,i,r,a=e.type,s=t.getMin(),u=t.getMax(),h=e.getExtent();"ordinal"===a?n=t.getCategories().length:(i=t.get("boundaryGap"),o.isArray(i)||(i=[i||0,i||0]),"boolean"===typeof i[0]&&(i=[0,0]),i[0]=l.parsePercent(i[0],1),i[1]=l.parsePercent(i[1],1),r=h[1]-h[0]||Math.abs(h[0])),"dataMin"===s?s=h[0]:"function"===typeof s&&(s=s({min:h[0],max:h[1]})),"dataMax"===u?u=h[1]:"function"===typeof u&&(u=u({min:h[0],max:h[1]}));var f=null!=s,p=null!=u;null==s&&(s="ordinal"===a?n?0:NaN:h[0]-i[0]*r),null==u&&(u="ordinal"===a?n?n-1:NaN:h[1]+i[1]*r),(null==s||!isFinite(s))&&(s=NaN),(null==u||!isFinite(u))&&(u=NaN),e.setBlank(o.eqNaN(s)||o.eqNaN(u)||"ordinal"===a&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(s>0&&u>0&&!f&&(s=0),s<0&&u<0&&!p&&(u=0));var v=t.ecModel;if(v&&"time"===a){var m,y=c("bar",v);if(o.each(y,(function(e){m|=e.getBaseAxis()===t.axis})),m){var x=d(y),_=g(s,u,t,x);s=_.min,u=_.max}}return{extent:[s,u],fixMin:f,fixMax:p}}function g(e,t,n,i){var r=n.axis.getExtent(),a=r[1]-r[0],s=h(i,n.axis);if(void 0===s)return{min:e,max:t};var l=1/0;o.each(s,(function(e){l=Math.min(e.offset,l)}));var u=-1/0;o.each(s,(function(e){u=Math.max(e.offset+e.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,d=t-e,f=1-(l+u)/a,p=d/f-d;return t+=p*(u/c),e-=p*(l/c),{min:e,max:t}}function v(e,t){var n=p(e,t),i=n.extent,o=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var r=e.type;e.setExtent(i[0],i[1]),e.niceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===r||"time"===r?t.get("minInterval"):null,maxInterval:"interval"===r||"time"===r?t.get("maxInterval"):null});var a=t.get("interval");null!=a&&e.setInterval&&e.setInterval(a)}function m(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new r(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(s.getClass(t)||a).create(e)}}function y(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function x(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"string"===typeof t?(t=function(t){return function(n){return n=e.scale.getLabel(n),t.replace("{value}",null!=n?n:"")}}(t),t):"function"===typeof t?function(i,o){return null!=n&&(o=i-n),t(_(e,i),o)}:function(t){return e.scale.getLabel(t)}}function _(e,t){return"category"===e.type?e.scale.getLabel(t):t}function b(e){var t=e.model,n=e.scale;if(t.get("axisLabel.show")&&!n.isBlank()){var i,o,r="category"===e.type,a=n.getExtent();r?o=n.count():(i=n.getTicks(),o=i.length);var s,l=e.getLabelModel(),u=x(e),c=1;o>40&&(c=Math.ceil(o/40));for(var d=0;d<o;d+=c){var h=i?i[d]:a[0]+d,f=u(h),p=l.getTextRect(f),g=w(p,l.get("rotate")||0);s?s.union(g):s=g}return s}}function w(e,t){var n=t*Math.PI/180,i=e.plain(),o=i.width,r=i.height,a=o*Math.cos(n)+r*Math.sin(n),s=o*Math.sin(n)+r*Math.cos(n),l=new f(i.x,i.y,a,s);return l}function S(e){var t=e.get("interval");return null==t?"auto":t}function M(e){return"category"===e.type&&0===S(e.getLabelModel())}n(61618),n(76304),t.getScaleExtent=p,t.niceScaleExtent=v,t.createScaleByModel=m,t.ifAxisCrossZero=y,t.makeLabelFormatter=x,t.getAxisRawValue=_,t.estimateLabelUnionRect=b,t.getOptionCategoryInterval=S,t.shouldShowAllLabels=M},16650:function(e,t,n){var i=n(33051),o={getMin:function(e){var t=this.option,n=e||null==t.rangeStart?t.min:t.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!==typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(e){var t=this.option,n=e||null==t.rangeEnd?t.max:t.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!==typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var e=this.option;return null==e.rangeStart&&null==e.rangeEnd&&!e.scale},getCoordSysModel:i.noop,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};e.exports=o},21293:function(e,t,n){var i=n(33051),o=n(66484),r=n(98071),a=n(76172),s=a.getLayoutParams,l=a.mergeLayoutParam,u=n(51401),c=["value","category","time","log"];function d(e,t,n,a){i.each(c,(function(r){t.extend({type:e+"Axis."+r,mergeDefaultAndTheme:function(t,o){var a=this.layoutMode,u=a?s(t):{},c=o.getTheme();i.merge(t,c.get(r+"Axis")),i.merge(t,this.getDefaultOption()),t.type=n(e,t),a&&l(t,u,a)},optionUpdated:function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=u.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:i.mergeAll([{},o[r+"Axis"],a],!0)})})),r.registerSubTypeDefaulter(e+"Axis",i.curry(n,e))}e.exports=d},58958:function(e,t,n){var i=n(33051),o=n(80423),r=n(32234),a=r.makeInner,s=n(97980),l=s.makeLabelFormatter,u=s.getOptionCategoryInterval,c=s.shouldShowAllLabels,d=a();function h(e){return"category"===e.type?p(e):m(e)}function f(e,t){return"category"===e.type?v(e,t):{ticks:e.scale.getTicks()}}function p(e){var t=e.getLabelModel(),n=g(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function g(e,t){var n,o,r=y(e,"labels"),a=u(t),s=x(r,a);return s||(i.isFunction(a)?n=I(e,a):(o="auto"===a?b(e):a,n=M(e,o)),_(r,a,{labels:n,labelCategoryInterval:o}))}function v(e,t){var n,o,r=y(e,"ticks"),a=u(t),s=x(r,a);if(s)return s;if(t.get("show")&&!e.scale.isBlank()||(n=[]),i.isFunction(a))n=I(e,a,!0);else if("auto"===a){var l=g(e,e.getLabelModel());o=l.labelCategoryInterval,n=i.map(l.labels,(function(e){return e.tickValue}))}else o=a,n=M(e,o,!0);return _(r,a,{ticks:n,tickCategoryInterval:o})}function m(e){var t=e.scale.getTicks(),n=l(e);return{labels:i.map(t,(function(t,i){return{formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t}}))}}function y(e,t){return d(e)[t]||(d(e)[t]=[])}function x(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function _(e,t,n){return e.push({key:t,value:n}),n}function b(e){var t=d(e).autoInterval;return null!=t?t:d(e).autoInterval=e.calculateCategoryInterval()}function w(e){var t=S(e),n=l(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,a=r.getExtent(),s=r.count();if(a[1]-a[0]<1)return 0;var u=1;s>40&&(u=Math.max(1,Math.floor(s/40)));for(var c=a[0],h=e.dataToCoord(c+1)-e.dataToCoord(c),f=Math.abs(h*Math.cos(i)),p=Math.abs(h*Math.sin(i)),g=0,v=0;c<=a[1];c+=u){var m=0,y=0,x=o.getBoundingRect(n(c),t.font,"center","top");m=1.3*x.width,y=1.3*x.height,g=Math.max(g,m,7),v=Math.max(v,y,7)}var _=g/f,b=v/p;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(_,b))),M=d(e.model),I=e.getExtent(),A=M.lastAutoInterval,k=M.lastTickCount;return null!=A&&null!=k&&Math.abs(A-w)<=1&&Math.abs(k-s)<=1&&A>w&&M.axisExtend0===I[0]&&M.axisExtend1===I[1]?w=A:(M.lastTickCount=s,M.lastAutoInterval=w,M.axisExtend0=I[0],M.axisExtend1=I[1]),w}function S(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function M(e,t,n){var i=l(e),o=e.scale,r=o.getExtent(),a=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),d=r[0],h=o.count();0!==d&&u>1&&h/u>2&&(d=Math.round(Math.ceil(d/u)*u));var f=c(e),p=a.get("showMinLabel")||f,g=a.get("showMaxLabel")||f;p&&d!==r[0]&&m(r[0]);for(var v=d;v<=r[1];v+=u)m(v);function m(e){s.push(n?e:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:e})}return g&&v-u!==r[1]&&m(r[1]),s}function I(e,t,n){var o=e.scale,r=l(e),a=[];return i.each(o.getTicks(),(function(e){var i=o.getLabel(e);t(e,i)&&a.push(n?e:{formattedLabel:r(e),rawLabel:i,tickValue:e})})),a}t.createAxisLabels=h,t.createAxisTicks=f,t.calculateCategoryInterval=w},74560:function(e,t,n){var i=n(33051),o=n(76172),r=n(85669),a=n(95899),s=864e5;function l(e,t,n){this._model=e}function u(e,t,n,i){var o=n.calendarModel,r=n.seriesModel,a=o?o.coordinateSystem:r?r.coordinateSystem:null;return a===this?a[e](i):null}l.prototype={constructor:l,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(e){e=r.parseDate(e);var t=e.getFullYear(),n=e.getMonth()+1;n=n<10?"0"+n:n;var i=e.getDate();i=i<10?"0"+i:i;var o=e.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:t,m:n,d:i,day:o,time:e.getTime(),formatedDate:t+"-"+n+"-"+i,date:e}},getNextNDay:function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},update:function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],a=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[n,7]:[7,n];i.each([0,1],(function(e){d(a,e)&&(s[r[e]]=a[e]*l[e])}));var u={width:t.getWidth(),height:t.getHeight()},c=this._rect=o.getLayoutRect(s,u);function d(e,t){return null!=e[t]&&"auto"!==e[t]}i.each([0,1],(function(e){d(a,e)||(a[e]=c[r[e]]/l[e])})),this._sw=a[0],this._sh=a[1]},dataToPoint:function(e,t){i.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),o=this._rangeInfo,r=n.formatedDate;if(t&&!(n.time>=o.start.time&&n.time<o.end.time+s))return[NaN,NaN];var a=n.day,l=this._getRangeInfo([o.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]:[this._rect.x+l*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},pointToData:function(e){var t=this.pointToDate(e);return t&&t.time},dataToRect:function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},pointToDate:function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},convertToPixel:i.curry(u,"dataToPoint"),convertFromPixel:i.curry(u,"pointToData"),_initRangeOption:function(){var e=this._model.get("range"),t=e;if(i.isArray(t)&&1===t.length&&(t=t[0]),/^\d{4}$/.test(t)&&(e=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)){var n=this.getDateInfo(t),o=n.date;o.setMonth(o.getMonth()+1);var r=this.getNextNDay(o,-1);e=[n.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(e=[t,t]);var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},_getRangeInfo:function(e){var t;e=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],e[0].time>e[1].time&&(t=!0,e.reverse());var n=Math.floor(e[1].time/s)-Math.floor(e[0].time/s)+1,i=new Date(e[0].time),o=i.getDate(),r=e[1].date.getDate();i.setDate(o+n-1);var a=i.getDate();if(a!==r){var l=i.getTime()-e[1].time>0?1:-1;while((a=i.getDate())!==r&&(i.getTime()-e[1].time)*l>0)n-=l,i.setDate(a-l)}var u=Math.floor((n+e[0].day+6)/7),c=t?1-u:u-1;return t&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:u,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},_getDateByWeeksAndDay:function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return!1;var o=7*(e-1)-i.fweek+t,r=new Date(i.start.time);return r.setDate(i.start.d+o),this.getDateInfo(r)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(e,t){var n=[];return e.eachComponent("calendar",(function(i){var o=new l(i,e,t);n.push(o),i.coordinateSystem=o})),e.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("calendarIndex")||0])})),n},a.register("calendar",l);var c=l;e.exports=c},91724:function(e,t,n){var i=n(33051),o=n(98071),r=n(76172),a=r.getLayoutParams,s=r.sizeCalculable,l=r.mergeLayoutParam,u=o.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(e,t,n,i){var o=a(e);u.superApply(this,"init",arguments),c(e,o)},mergeOption:function(e,t){u.superApply(this,"mergeOption",arguments),c(this.option,e)}});function c(e,t){var n=e.cellSize;i.isArray(n)?1===n.length&&(n[1]=n[0]):n=e.cellSize=[n,n];var o=i.map([0,1],(function(e){return s(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));l(e,t,{type:"box",ignoreSize:o})}var d=u;e.exports=d},64888:function(e){function t(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}e.exports=t},57760:function(e,t,n){var i=n(33051),o=n(3245),r=function(e,t,n,i,r){o.call(this,e,t,n),this.type=i||"value",this.position=r||"bottom"};r.prototype={constructor:r,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},i.inherits(r,o);var a=r;e.exports=a},54805:function(e,t,n){var i=n(33051),o=n(98071),r=n(21293),a=n(16650),s=o.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(e,t){return t.type||(t.data?"category":"value")}i.merge(s.prototype,a);var u={offset:0};r("x",s,l,u),r("y",s,l,u);var c=s;e.exports=c},53907:function(e,t,n){var i=n(33051);function o(e){return this._axes[e]}var r=function(e){this._axes={},this._dimList=[],this.name=e||""};r.prototype={constructor:r,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return i.map(this._dimList,o,this)},getAxesByScale:function(e){return e=e.toLowerCase(),i.filter(this.getAxes(),(function(t){return t.scale.type===e}))},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var n=this._dimList,i=e instanceof Array?[]:{},o=0;o<n.length;o++){var r=n[o],a=this._axes[r];i[r]=a[t](e[r])}return i}};var a=r;e.exports=a},81096:function(e,t,n){var i=n(33051),o=n(60479),r=n(53907);function a(e){r.call(this,e)}a.prototype={constructor:a,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,t,n){var i=this.getAxis("x"),o=this.getAxis("y");return n=n||[],n[0]=i.toGlobalCoord(i.dataToCoord(e[0])),n[1]=o.toGlobalCoord(o.dataToCoord(e[1])),n},clampData:function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(o[0],o[1]),a),Math.max(o[0],o[1])),t[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),t},pointToData:function(e,t){var n=this.getAxis("x"),i=this.getAxis("y");return t=t||[],t[0]=n.coordToData(n.toLocalCoord(e[0])),t[1]=i.coordToData(i.toLocalCoord(e[1])),t},getOtherAxis:function(e){return this.getAxis("x"===e.dim?"y":"x")},getArea:function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-n,a=Math.max(t[0],t[1])-i,s=new o(n,i,r,a);return s}},i.inherits(a,r);var s=a;e.exports=s},77532:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=o.isObject,a=o.each,s=o.map,l=o.indexOf,u=(o.retrieve,n(76172)),c=u.getLayoutRect,d=n(97980),h=d.createScaleByModel,f=d.ifAxisCrossZero,p=d.niceScaleExtent,g=d.estimateLabelUnionRect,v=n(81096),m=n(57760),y=n(95899),x=n(99936),_=x.getStackedDimension;function b(e,t,n){return e.getCoordSysModel()===t}function w(e,t,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,n),this.model=e}n(33927);var S=w.prototype;function M(e,t,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=e[t],a=n.model,s=a.get("axisLine.onZero"),l=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)I(r[l])&&(o=r[l]);else for(var u in r)if(r.hasOwnProperty(u)&&I(r[u])&&!i[c(r[u])]){o=r[u];break}o&&(i[c(o)]=!0)}function c(e){return e.dim+"_"+e.index}}function I(e){return e&&"category"!==e.type&&"time"!==e.type&&f(e)}function A(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}S.type="grid",S.axisPointerEnabled=!0,S.getRect=function(){return this._rect},S.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),a(n.x,(function(e){p(e.scale,e.model)})),a(n.y,(function(e){p(e.scale,e.model)}));var i={};a(n.x,(function(e){M(n,"y",e,i)})),a(n.y,(function(e){M(n,"x",e,i)})),this.resize(this.model,t)},S.resize=function(e,t,n){var i=c(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=i;var o=this._axesList;function r(){a(o,(function(e){var t=e.isHorizontal(),n=t?[0,i.width]:[0,i.height],o=e.inverse?1:0;e.setExtent(n[o],n[1-o]),A(e,t?i.x:i.y)}))}r(),!n&&e.get("containLabel")&&(a(o,(function(e){if(!e.model.get("axisLabel.inside")){var t=g(e);if(t){var n=e.isHorizontal()?"height":"width",o=e.model.get("axisLabel.margin");i[n]-=t[n]+o,"top"===e.position?i.y+=t.height+o:"left"===e.position&&(i.x+=t.width+o)}}})),r())},S.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n){if(null==t)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[t]}},S.getAxes=function(){return this._axesList.slice()},S.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}r(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===e||o[i].getAxis("y").index===t)return o[i]},S.getCartesians=function(){return this._coordsList.slice()},S.convertToPixel=function(e,t,n){var i=this._findConvertTarget(e,t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},S.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(e,t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},S._findConvertTarget=function(e,t){var n,i,o=t.seriesModel,r=t.xAxisModel||o&&o.getReferringComponents("xAxis")[0],a=t.yAxisModel||o&&o.getReferringComponents("yAxis")[0],s=t.gridModel,u=this._coordsList;if(o)n=o.coordinateSystem,l(u,n)<0&&(n=null);else if(r&&a)n=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)i=this.getAxis("x",r.componentIndex);else if(a)i=this.getAxis("y",a.componentIndex);else if(s){var c=s.coordinateSystem;c===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},S.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},S._initCartesian=function(e,t,n){var i={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},r={x:0,y:0};if(t.eachComponent("xAxis",s("x"),this),t.eachComponent("yAxis",s("y"),this),!r.x||!r.y)return this._axesMap={},void(this._axesList=[]);function s(n){return function(a,s){if(b(a,e,t)){var l=a.get("position");"x"===n?"top"!==l&&"bottom"!==l&&(l=i.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=i.left?"right":"left"),i[l]=!0;var u=new m(n,h(a),[0,0],a.get("type"),l),c="category"===u.type;u.onBand=c&&a.get("boundaryGap"),u.inverse=a.get("inverse"),a.axis=u,u.model=a,u.grid=this,u.index=s,this._axesList.push(u),o[n][s]=u,r[n]++}}}this._axesMap=o,a(o.x,(function(t,n){a(o.y,(function(i,o){var r="x"+n+"y"+o,a=new v(r);a.grid=this,a.model=e,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)}),this)}),this)},S._updateScale=function(e,t){function n(e,t,n){a(e.mapDimension(t.dim,!0),(function(n){t.scale.unionExtentFromData(e,_(e,n))}))}a(this._axesList,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeries((function(i){if(C(i)){var o=P(i,e),r=o[0],a=o[1];if(!b(r,t,e)||!b(a,t,e))return;var s=this.getCartesian(r.componentIndex,a.componentIndex),l=i.getData(),u=s.getAxis("x"),c=s.getAxis("y");"list"===l.type&&(n(l,u,i),n(l,c,i))}}),this)},S.getTooltipAxes=function(e){var t=[],n=[];return a(this.getCartesians(),(function(i){var o=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),r=i.getOtherAxis(o);l(t,o)<0&&t.push(o),l(n,r)<0&&n.push(r)})),{baseAxes:t,otherAxes:n}};var k=["xAxis","yAxis"];function P(e,t){return s(k,(function(t){var n=e.getReferringComponents(t)[0];return n}))}function C(e){return"cartesian2d"===e.get("coordinateSystem")}w.create=function(e,t){var n=[];return e.eachComponent("grid",(function(i,o){var r=new w(i,e,t);r.name="grid_"+o,r.resize(i,t,!0),i.coordinateSystem=r,n.push(r)})),e.eachSeries((function(t){if(C(t)){var n=P(t,e),i=n[0],o=n[1],r=i.getCoordSysModel(),a=r.coordinateSystem;t.coordinateSystem=a.getCartesian(i.componentIndex,o.componentIndex)}})),n},w.dimensions=w.prototype.dimensions=v.prototype.dimensions,y.register("cartesian2d",w);var E=w;e.exports=E},33927:function(e,t,n){n(54805);var i=n(98071),o=i.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});e.exports=o},49069:function(e,t,n){var i=n(33051);function o(e,t,n){n=n||{};var o=e.coordinateSystem,r=t.axis,a={},s=r.getAxesOnZeroOf()[0],l=r.position,u=s?"onZero":l,c=r.dim,d=o.getRect(),h=[d.x,d.x+d.width,d.y,d.y+d.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,g="x"===c?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));g[f.onZero]=Math.max(Math.min(v,g[1]),g[0])}a.position=["y"===c?g[f[u]]:h[0],"x"===c?g[f[u]]:h[3]],a.rotation=Math.PI/2*("x"===c?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[l],a.labelOffset=s?g[f[l]]-g[f.onZero]:0,t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),i.retrieve(n.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var y=t.get("axisLabel.rotate");return a.labelRotate="top"===u?-y:y,a.z2=1,a}t.layout=o},7409:function(e,t,n){var i=n(33051);function o(e,t){return t=t||[0,0],i.map(["x","y"],(function(n,i){var o=this.getAxis(n),r=t[i],a=e[i]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a))}),this)}function r(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:i.bind(o,e)}}}e.exports=r},61418:function(e,t,n){var i=n(33051),o=n(60479),r=n(23845),a=n(11194);function s(e,t,n,i){r.call(this,e),this.map=t;var o=a.load(t,n);this._nameCoordMap=o.nameCoordMap,this._regionsMap=o.regionsMap,this._invertLongitute=null==i||i,this.regions=o.regions,this._rect=o.boundingRect}function l(e,t,n,i){var o=n.geoModel,r=n.seriesModel,a=o?o.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[e](i):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return!0;return!1},transformTo:function(e,t,n,i){var r=this.getBoundingRect(),a=this._invertLongitute;r=r.clone(),a&&(r.y=-r.y-r.height);var s=this._rawTransformable;if(s.transform=r.calculateTransform(new o(e,t,n,i)),s.decomposeTransform(),a){var l=s.scale;l[1]=-l[1]}s.updateTransform(),this._updateTransform()},getRegion:function(e){return this._regionsMap.get(e)},getRegionByCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return t[n]},addGeoCoord:function(e,t){this._nameCoordMap.set(e,t)},getGeoCoord:function(e){return this._nameCoordMap.get(e)},getBoundingRect:function(){return this._rect},dataToPoint:function(e,t,n){if("string"===typeof e&&(e=this.getGeoCoord(e)),e)return r.prototype.dataToPoint.call(this,e,t,n)},convertToPixel:i.curry(l,"dataToPoint"),convertFromPixel:i.curry(l,"pointToData")},i.mixin(s,r);var u=s;e.exports=u},39618:function(e,t,n){var i=n(33051),o=n(32234),r=n(98071),a=n(4272),s=n(1501),l=n(18958),u=r.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){r.prototype.init.apply(this,arguments),o.defaultEmphasis(e,"label",["show"])},optionUpdated:function(){var e=this.option,t=this;e.regions=l.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=i.reduce(e.regions||[],(function(e,n){return n.name&&e.set(n.name,new a(n,t)),e}),i.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(e){return this._optionModelMap.get(e)||new a(null,this,this.ecModel)},getFormattedLabel:function(e,t){var n=this.getRegionModel(e),i=n.get("label"+("normal"===t?".":t+".")+"formatter"),o={name:e};return"function"===typeof i?(o.status=t,i(o)):"string"===typeof i?i.replace("{a}",null!=e?e:""):void 0},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});i.mixin(u,s);var c=u;e.exports=c},64215:function(e,t,n){var i=n(60479),o=n(3726),r=n(45280),a=n(40765);function s(e,t,n){if(this.name=e,this.geometries=t,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,n=[t,t],a=[-t,-t],s=[],l=[],u=this.geometries,c=0;c<u.length;c++)if("polygon"===u[c].type){var d=u[c].exterior;o.fromPoints(d,s,l),r.min(n,n,s),r.max(a,a,l)}return 0===c&&(n[0]=n[1]=a[0]=a[1]=0),this._rect=new i(n[0],n[1],a[0]-n[0],a[1]-n[1])},contain:function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,o=n.length;i<o;i++)if("polygon"===n[i].type){var r=n[i].exterior,s=n[i].interiors;if(a.contain(r,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(a.contain(s[l]))continue e;return!0}}return!1},transformTo:function(e,t,n,o){var a=this.getBoundingRect(),s=a.width/a.height;n?o||(o=n/s):n=s*o;for(var l=new i(e,t,n,o),u=a.calculateTransform(l),c=this.geometries,d=0;d<c.length;d++)if("polygon"===c[d].type){for(var h=c[d].exterior,f=c[d].interiors,p=0;p<h.length;p++)r.applyTransform(h[p],h[p],u);for(var g=0;g<(f?f.length:0);g++)for(p=0;p<f[g].length;p++)r.applyTransform(f[g][p],f[g][p],u)}a=this._rect,a.copy(l),this.center=[a.x+a.width/2,a.y+a.height/2]},cloneShallow:function(e){null==e&&(e=this.name);var t=new s(e,this.geometries,this.center);return t._rect=this._rect,t.transformTo=null,t}};var l=s;e.exports=l},85911:function(e){var t=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function n(e,n){"china"===e&&"台湾"===n.name&&n.geometries.push({type:"polygon",exterior:t[0]})}e.exports=n},91182:function(e){var t={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function n(e,n){if("world"===e){var i=t[n.name];if(i){var o=n.center;o[0]=i[0],o[1]=i[1]}}}e.exports=n},65330:function(e,t,n){for(var i=n(33051),o=n(64215),r=[126,25],a=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],s=0;s<a.length;s++)for(var l=0;l<a[s].length;l++)a[s][l][0]/=10.5,a[s][l][1]/=-14,a[s][l][0]+=r[0],a[s][l][1]+=r[1];function u(e,t){"china"===e&&t.push(new o("南海诸岛",i.map(a,(function(e){return{type:"polygon",exterior:e}})),r))}e.exports=u},14901:function(e){var t={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function n(e,n){if("china"===e){var i=t[n.name];if(i){var o=n.center;o[0]+=i[0]/10.5,o[1]+=-i[1]/14}}}e.exports=n},18958:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(70492)),r=n(33051),a=n(61418),s=n(76172),l=n(85669),u=n(11194),c=n(26418);function d(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],o=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(o[0])||isNaN(o[1])||this.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1])}var r,a=this.getBoundingRect(),u=e.get("layoutCenter"),c=e.get("layoutSize"),d=t.getWidth(),h=t.getHeight(),f=a.width/a.height*this.aspectScale,p=!1;if(u&&c&&(u=[l.parsePercent(u[0],d),l.parsePercent(u[1],h)],c=l.parsePercent(c,Math.min(d,h)),isNaN(u[0])||isNaN(u[1])||isNaN(c)||(p=!0)),p){var g={};f>1?(g.width=c,g.height=c/f):(g.height=c,g.width=c*f),g.y=u[1]-g.height/2,g.x=u[0]-g.width/2}else r=e.getBoxLayoutParams(),r.aspect=f,g=s.getLayoutRect(r,{width:d,height:h});this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function h(e,t){r.each(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var f={dimensions:a.prototype.dimensions,create:function(e,t){var n=[];e.eachComponent("geo",(function(e,i){var o=e.get("map"),r=e.get("aspectScale"),s=!0,l=c.retrieveMap(o);l&&l[0]&&"svg"===l[0].type?(null==r&&(r=1),s=!1):null==r&&(r=.75);var u=new a(o+i,o,e.get("nameMap"),s);u.aspectScale=r,u.zoomLimit=e.get("scaleLimit"),n.push(u),h(u,e),e.coordinateSystem=u,u.model=e,u.resize=d,u.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),r.each(i,(function(e,i){var o=r.map(e,(function(e){return e.get("nameMap")})),s=new a(i,i,r.mergeAll(o));s.zoomLimit=r.retrieve.apply(null,r.map(e,(function(e){return e.get("scaleLimit")}))),n.push(s),s.resize=d,s.aspectScale=e[0].get("aspectScale"),s.resize(e[0],t),r.each(e,(function(e){e.coordinateSystem=s,h(s,e)}))})),n},getFilledRegions:function(e,t,n){for(var i=(e||[]).slice(),o=r.createHashMap(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);var s=u.load(t,n);return r.each(s.regions,(function(e){var t=e.name;!o.get(t)&&i.push({name:t})})),i}};o.registerCoordinateSystem("geo",f);var p=f;e.exports=p},64325:function(e,t,n){var i=n(33051),o=i.each,r=n(76672),a=n(32234),s=a.makeInner,l=n(65330),u=n(14901),c=n(91182),d=n(85911),h=s(),f={load:function(e,t,n){var i=h(t).parsed;if(i)return i;var a,s=t.specialAreas||{},f=t.geoJSON;try{a=f?r(f,n):[]}catch(g){throw new Error("Invalid geoJson format\n"+g.message)}return l(e,a),o(a,(function(t){var n=t.name;u(e,t),c(e,t),d(e,t);var i=s[n];i&&t.transformTo(i.left,i.top,i.width,i.height)})),h(t).parsed={regions:a,boundingRect:p(a)}}};function p(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return t}e.exports=f},50402:function(e,t,n){var i=n(10003),o=i.parseSVG,r=i.makeViewBoxTransform,a=n(8524),s=n(27304),l=n(33051),u=l.assert,c=l.createHashMap,d=n(60479),h=n(32234),f=h.makeInner,p=f(),g={load:function(e,t){var n=p(t).originRoot;if(n)return{root:n,boundingRect:p(t).boundingRect};var i=v(t);return p(t).originRoot=i.root,p(t).boundingRect=i.boundingRect,i},makeGraphic:function(e,t,n){var i=p(t),o=i.rootMap||(i.rootMap=c()),r=o.get(n);if(r)return r;var a=i.originRoot,s=i.boundingRect;return i.originRootHostKey?r=v(t,s).root:(i.originRootHostKey=n,r=a),o.set(n,r)},removeGraphic:function(e,t,n){var i=p(t),o=i.rootMap;o&&o.removeKey(n),n===i.originRootHostKey&&(i.originRootHostKey=null)}};function v(e,t){var n,i,l=e.svgXML;try{n=l&&o(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=n.root,u(null!=i)}catch(v){throw new Error("Invalid svg format\n"+v.message)}var c=n.width,h=n.height,f=n.viewBoxRect;if(t||(t=null==c||null==h?i.getBoundingRect():new d(0,0,0,0),null!=c&&(t.width=c),null!=h&&(t.height=h)),f){var p=r(f,t.width,t.height),g=i;i=new a,i.add(g),g.scale=p.scale,g.position=p.position}return i.setClipPath(new s({shape:t.plain()})),{root:i,boundingRect:t}}e.exports=g},11194:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=o.each,a=o.createHashMap,s=n(26418),l=n(64325),u=n(50402),c=n(60479),d={geoJSON:l,svg:u},h={load:function(e,t,n){var i,o=[],s=a(),l=a(),u=p(e);return r(u,(function(a){var u=d[a.type].load(e,a,n);r(u.regions,(function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),o.push(e),s.set(n,e),l.set(n,e.center)}));var c=u.boundingRect;c&&(i?i.union(c):i=c.clone())})),{regions:o,regionsMap:s,nameCoordMap:l,boundingRect:i||new c(0,0,0,0)}},makeGraphic:f("makeGraphic"),removeGraphic:f("removeGraphic")};function f(e){return function(t,n){var i=p(t),o=[];return r(i,(function(i){var r=d[i.type][e];r&&o.push(r(t,i,n))})),o}}function p(e){var t=s.retrieveMap(e)||[];return t}e.exports=h},26418:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=o.createHashMap,a=o.isString,s=o.isArray,l=o.each,u=(o.assert,n(10003)),c=u.parseXML,d=r(),h={registerMap:function(e,t,n){var i;return s(t)?i=t:t.svg?i=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(n=t.specialAreas,t=t.geoJson),i=[{type:"geoJSON",source:t,specialAreas:n}]),l(i,(function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON");var n=f[t];n(e)})),d.set(e,i)},retrieveMap:function(e){return d.get(e)}},f={geoJSON:function(e){var t=e.source;e.geoJSON=a(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=c(e.source)}};e.exports=h},76672:function(e,t,n){var i=n(33051),o=n(64215);function r(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);for(var n=e.features,i=0;i<n.length;i++)for(var o=n[i],r=o.geometry,s=r.coordinates,l=r.encodeOffsets,u=0;u<s.length;u++){var c=s[u];if("Polygon"===r.type)s[u]=a(c,l[u],t);else if("MultiPolygon"===r.type)for(var d=0;d<c.length;d++){var h=c[d];c[d]=a(h,l[u][d],t)}}return e.UTF8Encoding=!1,e}function a(e,t,n){for(var i=[],o=t[0],r=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=o,l+=r,o=s,r=l,i.push([s/n,l/n])}return i}function s(e,t){return r(e),i.map(i.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,a=r.coordinates,s=[];"Polygon"===r.type&&s.push({type:"polygon",exterior:a[0],interiors:a.slice(1)}),"MultiPolygon"===r.type&&i.each(a,(function(e){e[0]&&s.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})}));var l=new o(n[t||"name"],s,n.cp);return l.properties=n,l}))}e.exports=s},55389:function(e,t,n){var i=n(33051);function o(e,t){return t=t||[0,0],i.map([0,1],(function(n){var i=t[n],o=e[n]/2,r=[],a=[];return r[n]=i-o,a[n]=i+o,r[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(r)[n]-this.dataToPoint(a)[n])}),this)}function r(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:i.bind(o,e)}}}e.exports=r},53309:function(e,t,n){var i=n(33051),o=n(98071),r=n(59066),a=n(21293),s=n(85669),l=n(16650),u=o.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return r([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var t=this.activeIntervals=i.clone(e);if(t)for(var n=t.length-1;n>=0;n--)s.asc(t[n])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=t.length;i<o;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"}}),c={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function d(e,t){return t.type||(t.data?"category":"value")}i.merge(u.prototype,l),a("parallel",u,d,c);var h=u;e.exports=h},21483:function(e,t,n){var i=n(33051),o=n(32892),r=n(76172),a=n(97980),s=n(95847),l=n(51177),u=n(85669),c=n(19233),d=i.each,h=Math.min,f=Math.max,p=Math.floor,g=Math.ceil,v=u.round,m=Math.PI;function y(e,t,n){this._axesMap=i.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,n)}function x(e,t){return h(f(e,t[0]),t[1])}function _(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function b(e,t){var n,i,o=t.layoutLength,r=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],u=r,c=!0):(n=o-(a-1-e)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}y.prototype={type:"parallel",constructor:y,_init:function(e,t,n){var i=e.dimensions,o=e.parallelAxisIndex;d(i,(function(e,n){var i=o[n],r=t.getComponent("parallelAxis",i),l=this._axesMap.set(e,new s(e,a.createScaleByModel(r),[0,0],r.get("type"),i)),u="category"===l.type;l.onBand=u&&r.get("boundaryGap"),l.inverse=r.get("inverse"),r.axis=l,l.model=r,l.coordinateSystem=r.coordinateSystem=this}),this)},update:function(e,t){this._updateAxesFromSeries(this._model,e)},containPoint:function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,o=t.pixelDimIndex,r=e[1-o],a=e[o];return r>=n&&r<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();d(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),a.niceScaleExtent(t.scale,t.model)}),this)}}),this)},resize:function(e,t){this._rect=r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,n=this._rect,i=["x","y"],o=["width","height"],r=t.get("layout"),a="horizontal"===r?0:1,s=n[o[a]],l=[0,s],u=this.dimensions.length,c=x(t.get("axisExpandWidth"),l),d=x(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,f=t.get("axisExpandWindow");if(f)e=x(f[1]-f[0],l),f[1]=f[0]+e;else{e=x(c*(d-1),l);var m=t.get("axisExpandCenter")||p(u/2);f=[c*m-e/2],f[1]=f[0]+e}var y=(s-e)/(u-d);y<3&&(y=0);var _=[p(v(f[0]/c,1))+1,g(v(f[1]/c,1))-1],b=y/c*f[0];return{layout:r,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[o[1-a]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:y,axisExpandWindow:f,axisCount:u,winInnerIndices:_,axisExpandWindow0Pos:b}},_layoutAxes:function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),d(n,(function(t,n){var a=(i.axisExpandable?b:_)(n,i),s={horizontal:{x:a.position,y:i.axisLength},vertical:{x:0,y:a.position}},l={horizontal:m/2,vertical:0},u=[s[r].x+e.x,s[r].y+e.y],c=l[r],d=o.create();o.rotate(d,d,c),o.translate(d,d,u),this._axesLayout[t]={position:u,rotation:c,transform:d,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(e,t,n,o){null==n&&(n=0),null==o&&(o=e.count());var r=this._axesMap,a=this.dimensions,s=[],l=[];i.each(a,(function(t){s.push(e.mapDimension(t)),l.push(r.get(t).model)}));for(var u=this.hasAxisBrushed(),c=n;c<o;c++){var d;if(u){d="active";for(var h=e.getValues(s,c),f=0,p=a.length;f<p;f++){var g=l[f].getActiveState(h[f]);if("inactive"===g){d="inactive";break}}}else d="normal";t(d,c)}},hasAxisBrushed:function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,o=e.length;i<o;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(e,t){var n=this._axesLayout[t];return l.applyTransform([e,0],n.transform)},getAxisLayout:function(e){return i.clone(this._axesLayout[e])},getSlidedAxisExpandWindow:function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),o=i[1]-i[0],r=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),p=null!=d[0];if(u)p&&u&&s<o*d[0]?(l="jump",a=s-o*d[2]):p&&u&&s>o*(1-d[0])?(l="jump",a=s-o*(1-d[2])):(a=s-o*d[1])>=0&&(a=s-o*(1-d[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?c(a,i,r,"all"):l="none";else{o=i[1]-i[0];var g=r[1]*s/o;i=[f(0,g-o/2)],i[1]=h(r[1],i[0]+o),i[0]=i[1]-o}return{axisExpandWindow:i,behavior:l}}};var w=y;e.exports=w},95847:function(e,t,n){var i=n(33051),o=n(3245),r=function(e,t,n,i,r){o.call(this,e,t,n),this.type=i||"value",this.axisIndex=r};r.prototype={constructor:r,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},i.inherits(r,o);var a=r;e.exports=a},20946:function(e,t,n){var i=n(33051),o=n(98071);n(53309);var r=o.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&i.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},setAxisExpand:function(e){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=i.filter(this.dependentModels.parallelAxis,(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);i.each(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))}});e.exports=r},14506:function(e,t,n){var i=n(21483),o=n(95899);function r(e,t){var n=[];return e.eachComponent("parallel",(function(o,r){var a=new i(o,e,t);a.name="parallel_"+r,a.resize(o,t),o.coordinateSystem=a,a.model=o,n.push(a)})),e.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=n.coordinateSystem}})),n}o.register("parallel",{create:r})},20769:function(e,t,n){var i=n(33051),o=n(32234);function r(e){a(e),s(e)}function a(e){if(!e.parallel){var t=!1;i.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function s(e){var t=o.normalizeToArray(e.parallelAxis);i.each(t,(function(t){if(i.isObject(t)){var n=t.parallelIndex||0,r=o.normalizeToArray(e.parallel)[n];r&&r.parallelAxisDefault&&i.merge(t,r.parallelAxisDefault,!1)}}))}e.exports=r},76656:function(e,t,n){var i=n(33051),o=n(80423),r=n(3245),a=n(32234),s=a.makeInner,l=s();function u(e,t){t=t||[0,360],r.call(this,"angle",e,t),this.type="category"}u.prototype={constructor:u,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToAngle:r.prototype.dataToCoord,angleToData:r.prototype.coordToData,calculateCategoryInterval:function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var a=i[0],s=e.dataToCoord(a+1)-e.dataToCoord(a),u=Math.abs(s),c=o.getBoundingRect(a,t.getFont(),"center","top"),d=Math.max(c.height,7),h=d/u;isNaN(h)&&(h=1/0);var f=Math.max(0,Math.floor(h)),p=l(e.model),g=p.lastAutoInterval,v=p.lastTickCount;return null!=g&&null!=v&&Math.abs(g-f)<=1&&Math.abs(v-r)<=1&&g>f?f=g:(p.lastTickCount=r,p.lastAutoInterval=f),f}},i.inherits(u,r);var c=u;e.exports=c},31696:function(e,t,n){var i=n(33051),o=n(98071),r=n(21293),a=n(16650),s=o.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});i.merge(s.prototype,a);var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function u(e,t){return t.type||(t.data?"category":"value")}r("angle",s,u,l.angle),r("radius",s,u,l.radius)},86934:function(e,t,n){var i=n(25341),o=n(76656),r=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new i,this._angleAxis=new o,this._radiusAxis.polar=this._angleAxis.polar=this};r.prototype={type:"polar",axisPointerEnabled:!0,constructor:r,dimensions:["radius","angle"],model:null,containPoint:function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},dataToPoint:function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},pointToData:function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},pointToCoord:function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),r=Math.min(o[0],o[1]),a=Math.max(o[0],o[1]);i.inverse?r=a-360:a=r+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=l<r?1:-1;while(l<r||l>a)l+=360*u;return[s,l]},coordToPoint:function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,o=-Math.sin(n)*t+this.cy;return[i,o]},getArea:function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*o,endAngle:-i[1]*o,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,o=n*n+i*i,r=this.r,a=this.r0;return o<=r*r&&o>=a*a}}}};var a=r;e.exports=a},46681:function(e,t,n){var i=n(70492);n(31696);var o=i.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});e.exports=o},25341:function(e,t,n){var i=n(33051),o=n(3245);function r(e,t){o.call(this,"radius",e,t),this.type="category"}r.prototype={constructor:r,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToRadius:o.prototype.dataToCoord,radiusToData:o.prototype.coordToData},i.inherits(r,o);var a=r;e.exports=a},90580:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=n(86934),a=n(85669),s=a.parsePercent,l=n(97980),u=l.createScaleByModel,c=l.niceScaleExtent,d=n(95899),h=n(99936),f=h.getStackedDimension;function p(e,t,n){var i=t.get("center"),r=n.getWidth(),a=n.getHeight();e.cx=s(i[0],r),e.cy=s(i[1],a);var l=e.getRadiusAxis(),u=Math.min(r,a)/2,c=t.get("radius");null==c?c=[0,"100%"]:o.isArray(c)||(c=[0,c]),c=[s(c[0],u),s(c[1],u)],l.inverse?l.setExtent(c[1],c[0]):l.setExtent(c[0],c[1])}function g(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();o.each(t.mapDimension("radius",!0),(function(e){r.scale.unionExtentFromData(t,f(t,e))})),o.each(t.mapDimension("angle",!0),(function(e){i.scale.unionExtentFromData(t,f(t,e))}))}})),c(i.scale,i.model),c(r.scale,r.model),"category"===i.type&&!i.onBand){var a=i.getExtent(),s=360/i.scale.count();i.inverse?a[1]+=s:a[1]-=s,i.setExtent(a[0],a[1])}}function v(e,t){if(e.type=t.get("type"),e.scale=u(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),"angleAxis"===t.mainType){e.inverse^=t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}n(46681);var m={dimensions:r.prototype.dimensions,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var o=new r(i);o.update=g;var a=o.getRadiusAxis(),s=o.getAngleAxis(),l=e.findAxisModel("radiusAxis"),u=e.findAxisModel("angleAxis");v(a,l),v(s,u),p(o,e,t),n.push(o),e.coordinateSystem=o,o.model=e})),e.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];t.coordinateSystem=n.coordinateSystem}})),n}};d.register("polar",m)},54649:function(e,t,n){var i=n(33051);function o(e,t){return i.map(["Radius","Angle"],(function(n,i){var o=this["get"+n+"Axis"](),r=t[i],a=e[i]/2,s="dataTo"+n,l="category"===o.type?o.getBandWidth():Math.abs(o[s](r-a)-o[s](r+a));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function r(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:i.bind((function(i){var o=t.dataToRadius(i[0]),r=n.dataToAngle(i[1]),a=e.coordToPoint([o,r]);return a.push(o,r*Math.PI/180),a})),size:i.bind(o,e)}}}e.exports=r},20139:function(e,t,n){var i=n(33051),o=n(3245);function r(e,t,n){o.call(this,e,t,n),this.type="value",this.angle=0,this.name="",this.model}i.inherits(r,o);var a=r;e.exports=a},26884:function(e,t,n){var i=n(33051),o=n(20139),r=n(70103),a=n(85669),s=n(97980),l=s.getScaleExtent,u=s.niceScaleExtent,c=n(95899),d=n(76304);function h(e,t,n){this._model=e,this.dimensions=[],this._indicatorAxes=i.map(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new o(n,"log"===e.get("axisType")?new d:new r);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n),this.cx,this.cy,this.r,this.r0,this.startAngle}h.prototype.getIndicatorAxes=function(){return this._indicatorAxes},h.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},h.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,o=this.cx+e*Math.cos(i),r=this.cy-e*Math.sin(i);return[o,r]},h.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var o,r=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(r-u.angle);c<a&&(o=u,s=l,a=c)}return[s,+(o&&o.coordToData(i))]},h.prototype.resize=function(e,t){var n=e.get("center"),o=t.getWidth(),r=t.getHeight(),s=Math.min(o,r)/2;this.cx=a.parsePercent(n[0],o),this.cy=a.parsePercent(n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var l=e.get("radius");"string"!==typeof l&&"number"!==typeof l||(l=[0,l]),this.r0=a.parsePercent(l[0],s),this.r=a.parsePercent(l[1],s),i.each(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},h.prototype.update=function(e,t){var n=this._indicatorAxes,o=this._model;i.each(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===o){var a=t.getData();i.each(n,(function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))}))}}),this);var r=o.get("splitNumber");function s(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),n=e/t;return 2===n?n=5:n*=2,n*t}i.each(n,(function(e,t){var n=l(e.scale,e.model).extent;u(e.scale,e.model);var i=e.model,o=e.scale,c=i.getMin(),d=i.getMax(),h=o.getInterval();if(null!=c&&null!=d)o.setExtent(+c,+d),o.setInterval((d-c)/r);else if(null!=c){do{p=c+h*r,o.setExtent(+c,p),o.setInterval(h),h=s(h)}while(p<n[1]&&isFinite(p)&&isFinite(n[1]))}else if(null!=d){do{g=d-h*r,o.setExtent(g,+d),o.setInterval(h),h=s(h)}while(g>n[0]&&isFinite(g)&&isFinite(n[0]))}else{var f=o.getTicks().length-1;f>r&&(h=s(h));var p=Math.ceil(n[1]/h)*h,g=a.round(p-h*r);o.setExtent(g,p),o.setInterval(h)}}))},h.dimensions=[],h.create=function(e,t){var n=[];return e.eachComponent("radar",(function(i){var o=new h(i,e,t);n.push(o),i.coordinateSystem=o})),e.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("radarIndex")||0])})),n},c.register("radar",h);var f=h;e.exports=f},48681:function(e,t,n){var i=n(70492),o=n(33051),r=n(66484),a=n(4272),s=n(16650),l=r.valueAxis;function u(e,t){return o.defaults({show:t},e)}var c=i.extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),l=this.get("axisType"),u=this.get("axisLabel"),c=this.get("name"),d=this.get("name.show"),h=this.get("name.formatter"),f=this.get("nameGap"),p=this.get("triggerEvent"),g=o.map(this.get("indicator")||[],(function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var v=c;if(null!=g.color&&(v=o.defaults({color:g.color},c)),g=o.merge(o.clone(g),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisType:l,axisLabel:u,name:g.text,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:p},!1),d||(g.name=""),"string"===typeof h){var m=g.name;g.name=h.replace("{value}",null!=m?m:"")}else"function"===typeof h&&(g.name=h(g.name,g));var y=o.extend(new a(g,null,this.ecModel),s);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return g}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:o.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:u(l.axisLabel,!1),axisTick:u(l.axisTick,!1),axisType:"interval",splitLine:u(l.splitLine,!0),splitArea:u(l.splitArea,!0),indicator:[]}}),d=c;e.exports=d},35203:function(e,t,n){var i=n(33051),o=n(98071),r=n(21293),a=n(16650),s=o.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function u(e,t){return t.type||(t.data?"category":"value")}i.merge(s.prototype,a),r("single",s,u,l);var c=s;e.exports=c},62933:function(e,t,n){var i=n(50465),o=n(97980),r=n(76172),a=r.getLayoutRect,s=n(33051),l=s.each;function u(e,t,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,n),this.model=e}u.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:u,_init:function(e,t,n){var r=this.dimension,a=new i(r,o.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),s="category"===a.type;a.onBand=s&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},update:function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();l(t.mapDimension(this.dimension,!0),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),o.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(e,t){this._rect=a({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],o=t.reverse?1:0;t.setExtent(i[o],i[1-o]),this._updateAxisTransform(t,n?e.x:e.y)},_updateAxisTransform:function(e,t){var n=e.getExtent(),i=n[0]+n[1],o=e.isHorizontal();e.toGlobalCoord=o?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=o?function(e){return e-t}:function(e){return i-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[o]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-o]=0===o?n.y+n.height/2:n.x+n.width/2,i}};var c=u;e.exports=c},50465:function(e,t,n){var i=n(33051),o=n(3245),r=function(e,t,n,i,r){o.call(this,e,t,n),this.type=i||"value",this.position=r||"bottom",this.orient=null};r.prototype={constructor:r,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},i.inherits(r,o);var a=r;e.exports=a},50878:function(e,t,n){var i=n(33051);function o(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,o=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}function r(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:i.bind(o,e)}}}e.exports=r},48337:function(e,t,n){var i=n(33051);function o(e,t){t=t||{};var n=e.coordinateSystem,o=e.axis,r={},a=o.position,s=o.orient,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};r.position=["vertical"===s?c.vertical[a]:u[0],"horizontal"===s?c.horizontal[a]:u[3]];var d={horizontal:0,vertical:1};r.rotation=Math.PI/2*d[s];var h={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=h[a],e.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),i.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var f=t.rotate;return null==f&&(f=e.get("axisLabel.rotate")),r.labelRotation="top"===a?-f:f,r.z2=1,r}t.layout=o},2798:function(e,t,n){var i=n(62933),o=n(95899);function r(e,t){var n=[];return e.eachComponent("singleAxis",(function(o,r){var a=new i(o,e,t);a.name="single_"+r,a.resize(o,t),o.coordinateSystem=a,n.push(a)})),e.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=n&&n.coordinateSystem}})),n}o.register("single",{create:r,dimensions:i.prototype.dimensions})},4130:function(e){function t(e){return e}function n(e,n,i,o,r){this._old=e,this._new=n,this._oldKeyGetter=i||t,this._newKeyGetter=o||t,this.context=r}function i(e,t,n,i,o){for(var r=0;r<e.length;r++){var a="_ec_"+o[i](e[r],r),s=t[a];null==s?(n.push(a),t[a]=r):(s.length||(t[a]=s=[s]),s.push(r))}}n.prototype={constructor:n,add:function(e){return this._add=e,this},update:function(e){return this._update=e,this},remove:function(e){return this._remove=e,this},execute:function(){var e=this._old,t=this._new,n={},o={},r=[],a=[];for(i(e,n,r,"_oldKeyGetter",this),i(t,o,a,"_newKeyGetter",this),c=0;c<e.length;c++){var s=r[c],l=o[s];if(null!=l){var u=l.length;u?(1===u&&(o[s]=null),l=l.shift()):o[s]=null,this._update&&this._update(l,c)}else this._remove&&this._remove(c)}for(var c=0;c<a.length;c++){s=a[c];if(o.hasOwnProperty(s)){l=o[s];if(null==l)continue;if(l.length){var d=0;for(u=l.length;d<u;d++)this._add&&this._add(l[d])}else this._add&&this._add(l)}}}};var o=n;e.exports=o},80690:function(e,t,n){var i=n(33051);function o(e){null!=e&&i.extend(this,e),this.otherDims={}}var r=o;e.exports=r},85446:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=n(34251),a=r.enableClassCheck;function s(e){return"_EC_"+e}var l=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},u=l.prototype;function c(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function d(e,t,n){this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}u.type="graph",u.isDirected=function(){return this._directed},u.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[s(e)]){var i=new c(e,t);return i.hostGraph=this,this.nodes.push(i),n[s(e)]=i,i}},u.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},u.getNodeById=function(e){return this._nodesMap[s(e)]},u.addEdge=function(e,t,n){var i=this._nodesMap,o=this._edgesMap;if("number"===typeof e&&(e=this.nodes[e]),"number"===typeof t&&(t=this.nodes[t]),c.isInstance(e)||(e=i[s(e)]),c.isInstance(t)||(t=i[s(t)]),e&&t){var r=e.id+"-"+t.id;if(!o[r]){var a=new d(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),o[r]=a,a}}},u.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},u.getEdge=function(e,t){c.isInstance(e)&&(e=e.id),c.isInstance(t)&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},u.eachNode=function(e,t){for(var n=this.nodes,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&e.call(t,n[o],o)},u.eachEdge=function(e,t){for(var n=this.edges,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&n[o].node1.dataIndex>=0&&n[o].node2.dataIndex>=0&&e.call(t,n[o],o)},u.breadthFirstTraverse=function(e,t,n,i){if(c.isInstance(t)||(t=this._nodesMap[s(t)]),t){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",r=0;r<this.nodes.length;r++)this.nodes[r].__visited=!1;if(!e.call(i,t,null)){var a=[t];while(a.length){var l=a.shift(),u=l[o];for(r=0;r<u.length;r++){var d=u[r],h=d.node1===l?d.node2:d.node1;if(!h.__visited){if(e.call(i,h,l))return;a.push(h),h.__visited=!0}}}}}},u.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,o=0,r=n.length;o<r;o++)n[o].dataIndex=-1;for(o=0,r=e.count();o<r;o++)n[e.getRawIndex(o)].dataIndex=o;t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(o=0,r=i.length;o<r;o++)i[o].dataIndex=-1;for(o=0,r=t.count();o<r;o++)i[t.getRawIndex(o)].dataIndex=o},u.clone=function(){for(var e=new l(this._directed),t=this.nodes,n=this.edges,i=0;i<t.length;i++)e.addNode(t[i].id,t[i].dataIndex);for(i=0;i<n.length;i++){var o=n[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},c.prototype={constructor:c,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}}},d.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}};var h=function(e,t){return{getValue:function(n){var i=this[e][t];return i.get(i.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[e][t].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}};o.mixin(c,h("hostGraph","data")),o.mixin(d,h("hostGraph","edgeData")),l.Node=c,l.Edge=d,a(c),a(d);var f=l;e.exports=f},87587:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=n(4272),a=n(4130),s=n(99574),l=n(68540),u=l.defaultDimValueGetters,c=l.DefaultDataProvider,d=n(10381),h=d.summarizeDimensions,f=n(80690),p=o.isObject,g="undefined",v=-1,m="e\0\0",y={float:typeof Float64Array===g?Array:Float64Array,int:typeof Int32Array===g?Array:Int32Array,ordinal:Array,number:Array,time:Array},x=typeof Uint32Array===g?Array:Uint32Array,_=typeof Int32Array===g?Array:Int32Array,b=typeof Uint16Array===g?Array:Uint16Array;function w(e){return e._rawCount>65535?x:b}function S(e){var t=e.constructor;return t===Array?e.slice():new t(e)}var M=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],I=["_extent","_approximateExtent","_rawExtent"];function A(e,t){o.each(M.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,o.each(I,(function(n){e[n]=o.clone(t[n])})),e._calculationInfo=o.extend(t._calculationInfo)}var k=function(e,t){e=e||["x","y"];for(var n={},i=[],r={},a=0;a<e.length;a++){var s=e[a];o.isString(s)?s=new f({name:s}):s instanceof f||(s=new f(s));var l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0),s.otherDims=s.otherDims||{},i.push(l),n[l]=s,s.index=a,s.createInvertedIndices&&(r[l]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=t,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=h(this),this._invertedIndicesMap=r,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},P=k.prototype;function C(e,t,n,i,o){var r=y[t.type],a=i-1,s=t.name,l=e[s][a];if(l&&l.length<n){for(var u=new r(Math.min(o-a*n,n)),c=0;c<l.length;c++)u[c]=l[c];e[s][a]=u}for(var d=i*n;d<o;d+=n)e[s].push(new r(Math.min(o-d,n)))}function E(e){var t=e._invertedIndicesMap;o.each(t,(function(n,i){var o=e._dimensionInfos[i],r=o.ordinalMeta;if(r){n=t[i]=new _(r.categories.length);for(var a=0;a<n.length;a++)n[a]=v;for(a=0;a<e._count;a++)n[e.get(i,a)]=a}}))}function T(e,t,n){var i;if(null!=t){var o=e._chunkSize,r=Math.floor(n/o),a=n%o,s=e.dimensions[t],l=e._storage[s][r];if(l){i=l[a];var u=e._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(i=u.categories[i])}}return i}function N(e){return e}function D(e){return e<this._count&&e>=0?this._indices[e]:-1}function O(e,t){var n=e._idList[t];return null==n&&(n=T(e,e._idDimIdx,t)),null==n&&(n=m+t),n}function L(e){return o.isArray(e)||(e=[e]),e}function V(e,t){var n=e.dimensions,i=new k(o.map(n,e.getDimensionInfo,e),e.hostModel);A(i,e);for(var r=i._storage={},a=e._storage,s=0;s<n.length;s++){var l=n[s];a[l]&&(o.indexOf(t,l)>=0?(r[l]=R(a[l]),i._rawExtent[l]=B(),i._extent[l]=null):r[l]=a[l])}return i}function R(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=S(e[n]);return t}function B(){return[1/0,-1/0]}P.type="list",P.hasItemOption=!0,P.getDimension=function(e){return"number"!==typeof e&&(isNaN(e)||this._dimensionInfos.hasOwnProperty(e))||(e=this.dimensions[e]),e},P.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},P.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},P.mapDimension=function(e,t){var n=this._dimensionsSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return!0===t?(i||[]).slice():i&&i[t]},P.initData=function(e,t,n){var i=s.isInstance(e)||o.isArrayLike(e);i&&(e=new c(e,this.dimensions.length)),this._rawData=e,this._storage={},this._indices=null,this._nameList=t||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=u[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=u.arrayRows,this._rawExtent={},this._initDataFromProvider(0,e.count()),e.pure&&(this.hasItemOption=!1)},P.getProvider=function(){return this._rawData},P.appendData=function(e){var t=this._rawData,n=this.count();t.appendData(e);var i=t.count();t.persistent||(i+=n),this._initDataFromProvider(n,i)},P.appendValues=function(e,t){for(var n=this._chunkSize,i=this._storage,o=this.dimensions,r=o.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t?t.length:0),u=this._chunkCount,c=0;c<r;c++){var d=o[c];a[d]||(a[d]=B()),i[d]||(i[d]=[]),C(i,this._dimensionInfos[d],n,u,l),this._chunkCount=i[d].length}for(var h=new Array(r),f=s;f<l;f++){for(var p=f-s,g=Math.floor(f/n),v=f%n,m=0;m<r;m++){d=o[m];var y=this._dimValueGetterArrayRows(e[p]||h,d,p,m);i[d][g][v]=y;var x=a[d];y<x[0]&&(x[0]=y),y>x[1]&&(x[1]=y)}t&&(this._nameList[f]=t[p])}this._rawCount=this._count=l,this._extent={},E(this)},P._initDataFromProvider=function(e,t){if(!(e>=t)){for(var n,i=this._chunkSize,o=this._rawData,r=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,d=this._rawExtent,h=this._nameRepeatCount={},f=this._chunkCount,p=0;p<s;p++){var g=a[p];d[g]||(d[g]=B());var v=l[g];0===v.otherDims.itemName&&(n=this._nameDimIdx=p),0===v.otherDims.itemId&&(this._idDimIdx=p),r[g]||(r[g]=[]),C(r,v,i,f,t),this._chunkCount=r[g].length}for(var m=new Array(s),y=e;y<t;y++){m=o.getItem(y,m);for(var x=Math.floor(y/i),_=y%i,b=0;b<s;b++){g=a[b];var w=r[g][x],S=this._dimValueGetter(m,g,y,b);w[_]=S;var M=d[g];S<M[0]&&(M[0]=S),S>M[1]&&(M[1]=S)}if(!o.pure){var I=u[y];if(m&&null==I)if(null!=m.name)u[y]=I=m.name;else if(null!=n){var A=a[n],k=r[A][x];if(k){I=k[_];var P=l[A].ordinalMeta;P&&P.categories.length&&(I=P.categories[I])}}var T=null==m?null:m.id;null==T&&null!=I&&(h[I]=h[I]||0,T=I,h[I]>0&&(T+="__ec__"+h[I]),h[I]++),null!=T&&(c[y]=T)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=t,this._extent={},E(this)}},P.count=function(){return this._count},P.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,n=this._count;if(t===Array){o=new t(n);for(var i=0;i<n;i++)o[i]=e[i]}else o=new t(e.buffer,0,n)}else{t=w(this);var o=new t(this.count());for(i=0;i<o.length;i++)o[i]=i}return o},P.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storage;if(!n[e])return NaN;t=this.getRawIndex(t);var i=Math.floor(t/this._chunkSize),o=t%this._chunkSize,r=n[e][i],a=r[o];return a},P.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._storage[e];if(!n)return NaN;var i=Math.floor(t/this._chunkSize),o=t%this._chunkSize,r=n[i];return r[o]},P._getFast=function(e,t){var n=Math.floor(t/this._chunkSize),i=t%this._chunkSize,o=this._storage[e][n];return o[i]},P.getValues=function(e,t){var n=[];o.isArray(e)||(t=e,e=this.dimensions);for(var i=0,r=e.length;i<r;i++)n.push(this.get(e[i],t));return n},P.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this.get(t[n],e)))return!1;return!0},P.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],n=B();if(!t)return n;var i,o=this.count(),r=!this._indices;if(r)return this._rawExtent[e].slice();if(i=this._extent[e],i)return i.slice();i=n;for(var a=i[0],s=i[1],l=0;l<o;l++){var u=this._getFast(e,this.getRawIndex(l));u<a&&(a=u),u>s&&(s=u)}return i=[a,s],this._extent[e]=i,i},P.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},P.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},P.getCalculationInfo=function(e){return this._calculationInfo[e]},P.setCalculationInfo=function(e,t){p(e)?o.extend(this._calculationInfo,e):this._calculationInfo[e]=t},P.getSum=function(e){var t=this._storage[e],n=0;if(t)for(var i=0,o=this.count();i<o;i++){var r=this.get(e,i);isNaN(r)||(n+=r)}return n},P.getMedian=function(e){var t=[];this.each(e,(function(e,n){isNaN(e)||t.push(e)}));var n=[].concat(t).sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},P.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],i=n[t];return null==i||isNaN(i)?v:i},P.indexOfName=function(e){for(var t=0,n=this.count();t<n;t++)if(this.getName(t)===e)return t;return-1},P.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;var i=0,o=this._count-1;while(i<=o){var r=(i+o)/2|0;if(t[r]<e)i=r+1;else{if(!(t[r]>e))return r;o=r-1}}return-1},P.indicesOfNearest=function(e,t,n){var i=this._storage,o=i[e],r=[];if(!o)return r;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var d=t-this.get(e,u),h=Math.abs(d);h<=n&&((h<a||h===a&&d>=0&&s<0)&&(a=h,s=d,l=0),d===s&&(r[l++]=u))}return r.length=l,r},P.getRawIndex=N,P.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];t.push(this.get(i,e))}return t},P.getName=function(e){var t=this.getRawIndex(e);return this._nameList[t]||T(this,this._nameDimIdx,t)||""},P.getId=function(e){return O(this,this.getRawIndex(e))},P.each=function(e,t,n,i){"use strict";if(this._count){"function"===typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this,e=o.map(L(e),this.getDimension,this);for(var r=e.length,a=0;a<this.count();a++)switch(r){case 0:t.call(n,a);break;case 1:t.call(n,this.get(e[0],a),a);break;case 2:t.call(n,this.get(e[0],a),this.get(e[1],a),a);break;default:for(var s=0,l=[];s<r;s++)l[s]=this.get(e[s],a);l[s]=a,t.apply(n,l)}}},P.filterSelf=function(e,t,n,i){"use strict";if(this._count){"function"===typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this,e=o.map(L(e),this.getDimension,this);for(var r=this.count(),a=w(this),s=new a(r),l=[],u=e.length,c=0,d=e[0],h=0;h<r;h++){var f,p=this.getRawIndex(h);if(0===u)f=t.call(n,h);else if(1===u){var g=this._getFast(d,p);f=t.call(n,g,h)}else{for(var v=0;v<u;v++)l[v]=this._getFast(d,p);l[v]=h,f=t.apply(n,l)}f&&(s[c++]=p)}return c<r&&(this._indices=s),this._count=c,this._extent={},this.getRawIndex=this._indices?D:N,this}},P.selectRange=function(e){"use strict";if(this._count){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var i=t.length;if(i){var o=this.count(),r=w(this),a=new r(o),s=0,l=t[0],u=e[l][0],c=e[l][1],d=!1;if(!this._indices){var h=0;if(1===i){for(var f=this._storage[t[0]],p=0;p<this._chunkCount;p++)for(var g=f[p],v=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;m<v;m++){var y=g[m];(y>=u&&y<=c||isNaN(y))&&(a[s++]=h),h++}d=!0}else if(2===i){f=this._storage[l];var x=this._storage[t[1]],_=e[t[1]][0],b=e[t[1]][1];for(p=0;p<this._chunkCount;p++){g=f[p];var S=x[p];for(v=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;m<v;m++){y=g[m];var M=S[m];(y>=u&&y<=c||isNaN(y))&&(M>=_&&M<=b||isNaN(M))&&(a[s++]=h),h++}}d=!0}}if(!d)if(1===i)for(m=0;m<o;m++){var I=this.getRawIndex(m);y=this._getFast(l,I);(y>=u&&y<=c||isNaN(y))&&(a[s++]=I)}else for(m=0;m<o;m++){var A=!0;for(I=this.getRawIndex(m),p=0;p<i;p++){var k=t[p];y=this._getFast(n,I);(y<e[k][0]||y>e[k][1])&&(A=!1)}A&&(a[s++]=this.getRawIndex(m))}return s<o&&(this._indices=a),this._count=s,this._extent={},this.getRawIndex=this._indices?D:N,this}}},P.mapArray=function(e,t,n,i){"use strict";"function"===typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this;var o=[];return this.each(e,(function(){o.push(t&&t.apply(this,arguments))}),n),o},P.map=function(e,t,n,i){"use strict";n=n||i||this,e=o.map(L(e),this.getDimension,this);var r=V(this,e);r._indices=this._indices,r.getRawIndex=r._indices?D:N;for(var a=r._storage,s=[],l=this._chunkSize,u=e.length,c=this.count(),d=[],h=r._rawExtent,f=0;f<c;f++){for(var p=0;p<u;p++)d[p]=this.get(e[p],f);d[u]=f;var g=t&&t.apply(n,d);if(null!=g){"object"!==typeof g&&(s[0]=g,g=s);for(var v=this.getRawIndex(f),m=Math.floor(v/l),y=v%l,x=0;x<g.length;x++){var _=e[x],b=g[x],w=h[_],S=a[_];S&&(S[m][y]=b),b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}}}return r},P.downSample=function(e,t,n,i){for(var o=V(this,[e]),r=o._storage,a=[],s=Math.floor(1/t),l=r[e],u=this.count(),c=this._chunkSize,d=o._rawExtent[e],h=new(w(this))(u),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var g=0;g<s;g++){var v=this.getRawIndex(p+g),m=Math.floor(v/c),y=v%c;a[g]=l[m][y]}var x=n(a),_=this.getRawIndex(Math.min(p+i(a,x)||0,u-1)),b=Math.floor(_/c),S=_%c;l[b][S]=x,x<d[0]&&(d[0]=x),x>d[1]&&(d[1]=x),h[f++]=_}return o._count=f,o._indices=h,o.getRawIndex=D,o},P.getItemModel=function(e){var t=this.hostModel;return new r(this.getRawDataItem(e),t,t&&t.ecModel)},P.diff=function(e){var t=this;return new a(e?e.getIndices():[],this.getIndices(),(function(t){return O(e,t)}),(function(e){return O(t,e)}))},P.getVisual=function(e){var t=this._visual;return t&&t[e]},P.setVisual=function(e,t){if(p(e))for(var n in e)e.hasOwnProperty(n)&&this.setVisual(n,e[n]);else this._visual=this._visual||{},this._visual[e]=t},P.setLayout=function(e,t){if(p(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},P.getLayout=function(e){return this._layout[e]},P.getItemLayout=function(e){return this._itemLayouts[e]},P.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?o.extend(this._itemLayouts[e]||{},t):t},P.clearItemLayouts=function(){this._itemLayouts.length=0},P.getItemVisual=function(e,t,n){var i=this._itemVisuals[e],o=i&&i[t];return null!=o||n?o:this.getVisual(t)},P.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{},o=this.hasItemVisual;if(this._itemVisuals[e]=i,p(t))for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r],o[r]=!0);else i[t]=n,o[t]=!0},P.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var z=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};P.setItemGraphicEl=function(e,t){var n=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(z,t)),this._graphicEls[e]=t},P.getItemGraphicEl=function(e){return this._graphicEls[e]},P.eachItemGraphicEl=function(e,t){o.each(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},P.cloneShallow=function(e){if(!e){var t=o.map(this.dimensions,this.getDimensionInfo,this);e=new k(t,this.hostModel)}if(e._storage=this._storage,A(e,this),this._indices){var n=this._indices.constructor;e._indices=new n(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?D:N,e},P.wrapMethod=function(e,t){var n=this[e];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(o.slice(arguments)))})},P.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],P.CHANGABLE_METHODS=["filterSelf","selectRange"];var W=k;e.exports=W},51401:function(e,t,n){var i=n(33051),o=i.createHashMap,r=i.isObject,a=i.map;function s(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}s.createByAxisModel=function(e){var t=e.option,n=t.data,i=n&&a(n,c);return new s({categories:i,needCollect:!i,deduplication:!1!==t.dedplication})};var l=s.prototype;function u(e){return e._map||(e._map=o(e.categories))}function c(e){return r(e)&&null!=e.value?e.value:e+""}l.getOrdinal=function(e){return u(this).get(e)},l.parseAndCollect=function(e){var t,n=this._needCollect;if("string"!==typeof e&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=u(this);return t=i.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t};var d=s;e.exports=d},99574:function(e,t,n){var i=n(33051),o=i.createHashMap,r=i.isTypedArray,a=n(34251),s=a.enableClassCheck,l=n(93819),u=l.SOURCE_FORMAT_ORIGINAL,c=l.SERIES_LAYOUT_BY_COLUMN,d=l.SOURCE_FORMAT_UNKNOWN,h=l.SOURCE_FORMAT_TYPED_ARRAY,f=l.SOURCE_FORMAT_KEYED_COLUMNS;function p(e){this.fromDataset=e.fromDataset,this.data=e.data||(e.sourceFormat===f?{}:[]),this.sourceFormat=e.sourceFormat||d,this.seriesLayoutBy=e.seriesLayoutBy||c,this.dimensionsDefine=e.dimensionsDefine,this.encodeDefine=e.encodeDefine&&o(e.encodeDefine),this.startIndex=e.startIndex||0,this.dimensionsDetectCount=e.dimensionsDetectCount}p.seriesDataToSource=function(e){return new p({data:e,sourceFormat:r(e)?h:u,fromDataset:!1})},s(p);var g=p;e.exports=g},9327:function(e,t,n){var i=n(33051),o=n(4272),r=n(63978),a=n(87587),s=n(55623),l=function(e,t){this.name=e||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};function u(e,t){this.root,this.data,this._nodes=[],this.hostModel=e,this.levelModels=i.map(t||[],(function(t){return new o(t,e,e.ecModel)}))}function c(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}l.prototype={constructor:l,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,t,n){"function"===typeof e&&(n=t,t=e,e=null),e=e||{},i.isString(e)&&(e={order:e});var o,r=e.order||"preorder",a=this[e.attr||"children"];"preorder"===r&&(o=t.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},updateDepthAndHeight:function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var o=n[t].getNodeById(e);if(o)return o}},contains:function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var o=n[t].contains(e);if(o)return o}},getAncestors:function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},getValue:function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},setLayout:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex),i=this.getLevelModel();return i?n.getModel(e,i.getModel(e)):n.getModel(e)}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(e){return e!==this&&e.isAncestorOf(this)}},u.prototype={constructor:u,type:"tree",eachNode:function(e,t,n){this.root.eachNode(e,t,n)},getNodeByDataIndex:function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},u.createTree=function(e,t,n,o){var d=new u(t,n&&n.levels),h=[],f=1;function p(e,t){var n=e.value;f=Math.max(f,i.isArray(n)?n.length:1),h.push(e);var o=new l(e.name,d);t?c(o,t):d.root=o,d._nodes.push(o);var r=e.children;if(r)for(var a=0;a<r.length;a++)p(r[a],o)}p(e),d.root.updateDepthAndHeight(0);var g=s(h,{coordDimensions:["value"],dimensionsCount:f}),v=new a(g,t);return v.initData(h),o&&o(v),r({mainData:v,struct:d,structAttr:"tree"}),d.update(),d};var d=u;e.exports=d},34380:function(e,t,n){var i=n(33051),o=i.createHashMap,r=i.each,a=i.isString,s=i.defaults,l=i.extend,u=i.isObject,c=i.clone,d=n(32234),h=d.normalizeToArray,f=n(61772),p=f.guessOrdinal,g=f.BE_ORDINAL,v=n(99574),m=n(10381),y=m.OTHER_DIMENSIONS,x=n(80690);function _(e,t,n){v.isInstance(t)||(t=v.seriesDataToSource(t)),n=n||{},e=(e||[]).slice();for(var i=(n.dimsDef||[]).slice(),d=o(),f=o(),m=[],_=b(t,e,i,n.dimCount),S=0;S<_;S++){var M=i[S]=l({},u(i[S])?i[S]:{name:i[S]}),I=M.name,A=m[S]=new x;null!=I&&null==d.get(I)&&(A.name=A.displayName=I,d.set(I,S)),null!=M.type&&(A.type=M.type),null!=M.displayName&&(A.displayName=M.displayName)}var k=n.encodeDef;!k&&n.encodeDefaulter&&(k=n.encodeDefaulter(t,_)),k=o(k),k.each((function(e,t){if(e=h(e).slice(),1===e.length&&!a(e[0])&&e[0]<0)k.set(t,!1);else{var n=k.set(t,[]);r(e,(function(e,i){a(e)&&(e=d.get(e)),null!=e&&e<_&&(n[i]=e,C(m[e],t,i))}))}}));var P=0;function C(e,t,n){null!=y.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,f.set(t,!0))}r(e,(function(e,t){var n,i,o;if(a(e))n=e,e={};else{n=e.name;var l=e.ordinalMeta;e.ordinalMeta=null,e=c(e),e.ordinalMeta=l,i=e.dimsDef,o=e.otherDims,e.name=e.coordDim=e.coordDimIndex=e.dimsDef=e.otherDims=null}var d=k.get(n);if(!1!==d){d=h(d);if(!d.length)for(var f=0;f<(i&&i.length||1);f++){while(P<m.length&&null!=m[P].coordDim)P++;P<m.length&&d.push(P++)}r(d,(function(t,r){var a=m[t];if(C(s(a,e),n,r),null==a.name&&i){var l=i[r];!u(l)&&(l={name:l}),a.name=a.displayName=l.name,a.defaultTooltip=l.defaultTooltip}o&&s(a.otherDims,o)}))}}));var E=n.generateCoord,T=n.generateCoordCount,N=null!=T;T=E?T||1:0;for(var D=E||"value",O=0;O<_;O++){A=m[O]=m[O]||new x;var L=A.coordDim;null==L&&(A.coordDim=w(D,f,N),A.coordDimIndex=0,(!E||T<=0)&&(A.isExtraCoord=!0),T--),null==A.name&&(A.name=w(A.coordDim,d)),null!=A.type||p(t,O,A.name)!==g.Must&&(!A.isExtraCoord||null==A.otherDims.itemName&&null==A.otherDims.seriesName)||(A.type="ordinal")}return m}function b(e,t,n,i){var o=Math.max(e.dimensionsDetectCount||1,t.length,n.length,i||0);return r(t,(function(e){var t=e.dimsDef;t&&(o=Math.max(o,t.length))})),o}function w(e,t,n){if(n||null!=t.get(e)){var i=0;while(null!=t.get(e+i))i++;e+=i}return t.set(e,!0),e}var S=_;e.exports=S},55623:function(e,t,n){var i=n(34380);function o(e,t){return t=t||{},i(t.coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}e.exports=o},68540:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=(o.isTypedArray,o.extend),a=(o.assert,o.each),s=o.isObject,l=n(32234),u=l.getDataItemValue,c=l.isDataItemOption,d=n(85669),h=d.parseDate,f=n(99574),p=n(93819),g=p.SOURCE_FORMAT_TYPED_ARRAY,v=p.SOURCE_FORMAT_ARRAY_ROWS,m=p.SOURCE_FORMAT_ORIGINAL,y=p.SOURCE_FORMAT_OBJECT_ROWS;function x(e,t){f.isInstance(e)||(e=f.seriesDataToSource(e)),this._source=e;var n=this._data=e.data,i=e.sourceFormat;i===g&&(this._offset=0,this._dimSize=t,this._data=n);var o=b[i===v?i+"_"+e.seriesLayoutBy:i];r(this,o)}var _=x.prototype;_.pure=!1,_.persistent=!0,_.getSource=function(){return this._source};var b={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(e){return this._data[e+this._source.startIndex]},appendData:M},arrayRows_row:{pure:!0,count:function(){var e=this._data[0];return e?Math.max(0,e.length-this._source.startIndex):0},getItem:function(e){e+=this._source.startIndex;for(var t=[],n=this._data,i=0;i<n.length;i++){var o=n[i];t.push(o?o[e]:null)}return t},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:w,getItem:S,appendData:M},keyedColumns:{pure:!0,count:function(){var e=this._source.dimensionsDefine[0].name,t=this._data[e];return t?t.length:0},getItem:function(e){for(var t=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var o=this._data[n[i].name];t.push(o?o[e]:null)}return t},appendData:function(e){var t=this._data;a(e,(function(e,n){for(var i=t[n]||(t[n]=[]),o=0;o<(e||[]).length;o++)i.push(e[o])}))}},original:{count:w,getItem:S,appendData:M},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(e,t){e-=this._offset,t=t||[];for(var n=this._dimSize*e,i=0;i<this._dimSize;i++)t[i]=this._data[n+i];return t},appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}}};function w(){return this._data.length}function S(e){return this._data[e]}function M(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}var I={arrayRows:A,objectRows:function(e,t,n,i){return null!=n?e[i]:e},keyedColumns:A,original:function(e,t,n,i){var o=u(e);return null!=n&&o instanceof Array?o[n]:o},typedArray:A};function A(e,t,n,i){return null!=n?e[n]:e}var k={arrayRows:P,objectRows:function(e,t,n,i){return C(e[t],this._dimensionInfos[t])},keyedColumns:P,original:function(e,t,n,i){var o=e&&(null==e.value?e:e.value);return!this._rawData.pure&&c(e)&&(this.hasItemOption=!0),C(o instanceof Array?o[i]:o,this._dimensionInfos[t])},typedArray:function(e,t,n,i){return e[i]}};function P(e,t,n,i){return C(e[i],this._dimensionInfos[t])}function C(e,t){var n=t&&t.type;if("ordinal"===n){var i=t&&t.ordinalMeta;return i?i.parseAndCollect(e):e}return"time"===n&&"number"!==typeof e&&null!=e&&"-"!==e&&(e=+h(e)),null==e||""===e?NaN:+e}function E(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var o,r,a=e.getProvider().getSource().sourceFormat,s=e.getDimensionInfo(n);return s&&(o=s.name,r=s.index),I[a](i,t,r,o)}}}function T(e,t,n){if(e){var i=e.getProvider().getSource().sourceFormat;if(i===m||i===y){var o=e.getRawDataItem(t);return i!==m||s(o)||(o=null),o?o[n]:void 0}}}t.DefaultDataProvider=x,t.defaultDimValueGetters=k,t.retrieveRawValue=E,t.retrieveRawAttr=T},99936:function(e,t,n){var i=n(33051),o=i.each,r=i.isString;function a(e,t,n){n=n||{};var i,a,s,l,u=n.byIndex,c=n.stackedCoordDimension,d=!(!e||!e.get("stack"));if(o(t,(function(e,n){r(e)&&(t[n]=e={name:e}),d&&!e.isExtraCoord&&(u||i||!e.ordinalMeta||(i=e),a||"ordinal"===e.type||"time"===e.type||c&&c!==e.coordDim||(a=e))})),!a||u||i||(u=!0),a){s="__\0ecstackresult",l="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var h=a.coordDim,f=a.type,p=0;o(t,(function(e){e.coordDim===h&&p++})),t.push({name:s,coordDim:h,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0}),p++,t.push({name:l,coordDim:l,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:i&&i.name,isStackedByIndex:u,stackedOverDimension:l,stackResultDimension:s}}function s(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function l(e,t){return s(e,t)?e.getCalculationInfo("stackResultDimension"):t}t.enableDataStack=a,t.isDimensionStacked=s,t.getStackedDimension=l},10381:function(e,t,n){var i=n(33051),o=i.each,r=i.createHashMap,a=(i.assert,n(38175)),s=(a.__DEV__,r(["tooltip","label","itemName","itemId","seriesName"]));function l(e){var t={},n=t.encode={},i=r(),a=[],l=[],c=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};o(e.dimensions,(function(t){var o=e.getDimensionInfo(t),r=o.coordDim;if(r){var h=o.coordDimIndex;u(n,r)[h]=t,o.isExtraCoord||(i.set(r,1),d(o.type)&&(a[0]=t),u(c.encode,r)[h]=o.index),o.defaultTooltip&&l.push(t)}s.each((function(e,t){var i=u(n,t),r=o.otherDims[t];null!=r&&!1!==r&&(i[r]=o.name)}))}));var h=[],f={};i.each((function(e,t){var i=n[t];f[t]=i[0],h=h.concat(i)})),t.dataDimsOnCoord=h,t.encodeFirstDimNotExtra=f;var p=n.label;p&&p.length&&(a=p.slice());var g=n.tooltip;return g&&g.length?l=g.slice():l.length||(l=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=l,t}function u(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function c(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function d(e){return!("ordinal"===e||"time"===e)}t.OTHER_DIMENSIONS=s,t.summarizeDimensions=l,t.getDimensionTypeByAxis=c},63978:function(e,t,n){var i=n(33051),o=i.each,r="\0__link_datas",a="\0__link_mainData";function s(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,f(t,n,e),o(n,(function(n){o(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,i.curry(l,e))}))})),t.wrapMethod("cloneShallow",i.curry(c,e)),o(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,i.curry(u,e))})),i.assert(n[t.dataType]===t)}function l(e,t){if(h(this)){var n=i.extend({},this[r]);n[this.dataType]=t,f(t,n,e)}else p(t,this.dataType,this[a],e);return t}function u(e,t){return e.struct&&e.struct.update(this),t}function c(e,t){return o(t[r],(function(n,i){n!==t&&p(n.cloneShallow(),i,t,e)})),t}function d(e){var t=this[a];return null==e||null==t?t:t[r][e]}function h(e){return e[a]===e}function f(e,t,n){e[r]={},o(t,(function(t,i){p(t,i,e,n)}))}function p(e,t,n,i){n[r][t]=e,e[a]=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=d}var g=s;e.exports=g},61772:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(32234)),r=o.makeInner,a=o.getDataItemValue,s=n(33051),l=s.createHashMap,u=s.each,c=s.map,d=s.isArray,h=s.isString,f=s.isObject,p=s.isTypedArray,g=s.isArrayLike,v=s.extend,m=(s.assert,n(99574)),y=n(93819),x=y.SOURCE_FORMAT_ORIGINAL,_=y.SOURCE_FORMAT_ARRAY_ROWS,b=y.SOURCE_FORMAT_OBJECT_ROWS,w=y.SOURCE_FORMAT_KEYED_COLUMNS,S=y.SOURCE_FORMAT_UNKNOWN,M=y.SOURCE_FORMAT_TYPED_ARRAY,I=y.SERIES_LAYOUT_BY_ROW,A={Must:1,Might:2,Not:3},k=r();function P(e){var t=e.option.source,n=S;if(p(t))n=M;else if(d(t)){0===t.length&&(n=_);for(var i=0,o=t.length;i<o;i++){var r=t[i];if(null!=r){if(d(r)){n=_;break}if(f(r)){n=b;break}}}}else if(f(t)){for(var a in t)if(t.hasOwnProperty(a)&&g(t[a])){n=w;break}}else if(null!=t)throw new Error("Invalid data");k(e).sourceFormat=n}function C(e){return k(e).source}function E(e){k(e).datasetMap=l()}function T(e){var t=e.option,n=t.data,i=p(n)?M:x,o=!1,r=t.seriesLayoutBy,a=t.sourceHeader,s=t.dimensions,l=B(e);if(l){var u=l.option;n=u.source,i=k(l).sourceFormat,o=!0,r=r||u.seriesLayoutBy,null==a&&(a=u.sourceHeader),s=s||u.dimensions}var c=N(n,i,r,a,s);k(e).source=new m({data:n,fromDataset:o,seriesLayoutBy:r,sourceFormat:i,dimensionsDefine:c.dimensionsDefine,startIndex:c.startIndex,dimensionsDetectCount:c.dimensionsDetectCount,encodeDefine:t.encode})}function N(e,t,n,i,o){if(!e)return{dimensionsDefine:D(o)};var r,s;if(t===_)"auto"===i||null==i?O((function(e){null!=e&&"-"!==e&&(h(e)?null==s&&(s=1):s=0)}),n,e,10):s=i?1:0,o||1!==s||(o=[],O((function(e,t){o[t]=null!=e?e:""}),n,e)),r=o?o.length:n===I?e.length:e[0]?e[0].length:null;else if(t===b)o||(o=L(e));else if(t===w)o||(o=[],u(e,(function(e,t){o.push(t)})));else if(t===x){var l=a(e[0]);r=d(l)&&l.length||1}return{startIndex:s,dimensionsDefine:D(o),dimensionsDetectCount:r}}function D(e){if(e){var t=l();return c(e,(function(e,n){if(e=v({},f(e)?e:{name:e}),null==e.name)return e;e.name+="",null==e.displayName&&(e.displayName=e.name);var i=t.get(e.name);return i?e.name+="-"+i.count++:t.set(e.name,{count:1}),e}))}}function O(e,t,n,i){if(null==i&&(i=1/0),t===I)for(var o=0;o<n.length&&o<i;o++)e(n[o]?n[o][0]:null,o);else{var r=n[0]||[];for(o=0;o<r.length&&o<i;o++)e(r[o],o)}}function L(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t){var i=[];return u(t,(function(e,t){i.push(t)})),i}}function V(e,t,n){var i={},o=B(t);if(!o||!e)return i;var r,a,s=[],l=[],c=t.ecModel,d=k(c).datasetMap,h=o.uid+"_"+n.seriesLayoutBy;e=e.slice(),u(e,(function(t,n){!f(t)&&(e[n]={name:t}),"ordinal"===t.type&&null==r&&(r=n,a=v(e[n])),i[t.name]=[]}));var p=d.get(h)||d.set(h,{categoryWayDim:a,valueWayDim:0});function g(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function v(e){var t=e.dimsDef;return t?t.length:1}return u(e,(function(e,t){var n=e.name,o=v(e);if(null==r){var a=p.valueWayDim;g(i[n],a,o),g(l,a,o),p.valueWayDim+=o}else if(r===t)g(i[n],0,o),g(s,0,o);else{a=p.categoryWayDim;g(i[n],a,o),g(l,a,o),p.categoryWayDim+=o}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function R(e,t,n){var i={},o=B(e);if(!o)return i;var r,a=t.sourceFormat,s=t.dimensionsDefine;a!==b&&a!==w||u(s,(function(e,t){"name"===(f(e)?e.name:e)&&(r=t)}));var l=function(){for(var e={},i={},o=[],l=0,u=Math.min(5,n);l<u;l++){var c=W(t.data,a,t.seriesLayoutBy,s,t.startIndex,l);o.push(c);var d=c===A.Not;if(d&&null==e.v&&l!==r&&(e.v=l),(null==e.n||e.n===e.v||!d&&o[e.n]===A.Not)&&(e.n=l),h(e)&&o[e.n]!==A.Not)return e;d||(c===A.Might&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function h(e){return null!=e.v&&null!=e.n}return h(e)?e:h(i)?i:null}();if(l){i.value=l.v;var c=null!=r?r:l.n;i.itemName=[c],i.seriesName=[c]}return i}function B(e){var t=e.option,n=t.data;if(!n)return e.ecModel.getComponent("dataset",t.datasetIndex||0)}function z(e,t){return W(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function W(e,t,n,i,o,r){var s,l,u,c=5;if(p(e))return A.Not;if(i){var g=i[r];f(g)?(l=g.name,u=g.type):h(g)&&(l=g)}if(null!=u)return"ordinal"===u?A.Must:A.Not;if(t===_)if(n===I){for(var v=e[r],m=0;m<(v||[]).length&&m<c;m++)if(null!=(s=k(v[o+m])))return s}else for(m=0;m<e.length&&m<c;m++){var y=e[o+m];if(y&&null!=(s=k(y[r])))return s}else if(t===b){if(!l)return A.Not;for(m=0;m<e.length&&m<c;m++){var S=e[m];if(S&&null!=(s=k(S[l])))return s}}else if(t===w){if(!l)return A.Not;v=e[l];if(!v||p(v))return A.Not;for(m=0;m<v.length&&m<c;m++)if(null!=(s=k(v[m])))return s}else if(t===x)for(m=0;m<e.length&&m<c;m++){S=e[m];var M=a(S);if(!d(M))return A.Not;if(null!=(s=k(M[r])))return s}function k(e){var t=h(e);return null!=e&&isFinite(e)&&""!==e?t?A.Might:A.Not:t&&"-"!==e?A.Must:void 0}return A.Not}t.BE_ORDINAL=A,t.detectSourceFormat=P,t.getSource=C,t.resetSourceDefaulter=E,t.prepareSource=T,t.makeSeriesEncodeForAxisCoordSys=V,t.makeSeriesEncodeForNameBased=R,t.guessOrdinal=z},93819:function(e,t){var n="original",i="arrayRows",o="objectRows",r="keyedColumns",a="unknown",s="typedArray",l="column",u="row";t.SOURCE_FORMAT_ORIGINAL=n,t.SOURCE_FORMAT_ARRAY_ROWS=i,t.SOURCE_FORMAT_OBJECT_ROWS=o,t.SOURCE_FORMAT_KEYED_COLUMNS=r,t.SOURCE_FORMAT_UNKNOWN=a,t.SOURCE_FORMAT_TYPED_ARRAY=s,t.SERIES_LAYOUT_BY_COLUMN=l,t.SERIES_LAYOUT_BY_ROW=u},70492:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(31931)),r=n(33051),a=n(21092),s=n(66387),l=n(19455),u=n(41502),c=n(17260),d=n(59935),h=n(95899),f=n(43534),p=n(70141),g=n(33809),v=n(98071),m=n(93321),y=n(33166),x=n(75797),_=n(51177),b=n(32234),w=n(270),S=w.throttle,M=n(7141),I=n(13825),A=n(23430),k=n(15532),P=n(29594),C=n(73450);n(81768);var E=n(26418),T=r.assert,N=r.each,D=r.isFunction,O=r.isObject,L=v.parseClassType,V="4.8.0",R={zrender:"4.3.1"},B=1,z=1e3,W=800,F=900,U=5e3,$=1e3,H=1100,j=2e3,G=3e3,Y=3500,Z=4e3,q=5e3,X={PROCESSOR:{FILTER:z,SERIES_FILTER:W,STATISTIC:U},VISUAL:{LAYOUT:$,PROGRESSIVE_LAYOUT:H,GLOBAL:j,CHART:G,POST_CHART_LAYOUT:Y,COMPONENT:Z,BRUSH:q}},J="__flagInMainProcess",K="__optionUpdated",Q=/^[a-zA-Z0-9_]+$/;function ee(e,t){return function(n,i,o){t||!this._disposed?(n=n&&n.toLowerCase(),u.prototype[e].call(this,n,i,o)):_e(this.id)}}function te(){u.call(this)}function ne(e,t,n){n=n||{},"string"===typeof t&&(t=Ne[t]),this.id,this.group,this._dom=e;var i="canvas",a=this._zr=o.init(e,{renderer:n.renderer||i,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=S(r.bind(a.flush,a),17);t=r.clone(t);t&&p(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new h;var s=this._api=Me(this);function c(e,t){return e.__prio-t.__prio}l(Te,c),l(Pe,c),this._scheduler=new k(this,s,Pe,Te),u.call(this,this._ecEventProcessor=new Ie),this._messageCenter=new te,this._initEvents(),this.resize=r.bind(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),he(a,this),r.setAsPrimitive(this)}te.prototype.on=ee("on",!0),te.prototype.off=ee("off",!0),te.prototype.one=ee("one",!0),r.mixin(te,u);var ie=ne.prototype;function oe(e,t,n){if(this._disposed)_e(this.id);else{var i,o=this._model,r=this._coordSysMgr.getCoordinateSystems();t=b.parseFinder(o,t);for(var a=0;a<r.length;a++){var s=r[a];if(s[e]&&null!=(i=s[e](o,t,n)))return i}}}ie._onframe=function(){if(!this._disposed){var e=this._scheduler;if(this[K]){var t=this[K].silent;this[J]=!0,ae(this),re.update.call(this),this[J]=!1,this[K]=!1,ce.call(this,t),de.call(this,t)}else if(e.unfinished){var n=B,i=this._model,o=this._api;e.unfinished=!1;do{var r=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),le(this,i),e.performVisualTasks(i),me(this,this._model,o,"remain"),n-=+new Date-r}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},ie.getDom=function(){return this._dom},ie.getZr=function(){return this._zr},ie.setOption=function(e,t,n){if(this._disposed)_e(this.id);else{var i;if(O(t)&&(n=t.lazyUpdate,i=t.silent,t=t.notMerge),this[J]=!0,!this._model||t){var o=new f(this._api),r=this._theme,a=this._model=new c;a.scheduler=this._scheduler,a.init(null,null,r,o)}this._model.setOption(e,Ce),n?(this[K]={silent:i},this[J]=!1):(ae(this),re.update.call(this),this._zr.flush(),this[K]=!1,this[J]=!1,ce.call(this,i),de.call(this,i))}},ie.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},ie.getModel=function(){return this._model},ie.getOption=function(){return this._model&&this._model.getOption()},ie.getWidth=function(){return this._zr.getWidth()},ie.getHeight=function(){return this._zr.getHeight()},ie.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},ie.getRenderedCanvas=function(e){if(s.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},ie.getSvgDataURL=function(){if(s.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return r.each(t,(function(e){e.stopAnimation(!0)})),e.painter.toDataURL()}},ie.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],o=this;N(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=o._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return N(i,(function(e){e.group.ignore=!1})),r}_e(this.id)},ie.getConnectedDataURL=function(e){if(this._disposed)_e(this.id);else if(s.canvasSupported){var t="svg"===e.type,n=this.group,i=Math.min,a=Math.max,l=1/0;if(Le[n]){var u=l,c=l,d=-l,h=-l,f=[],p=e&&e.pixelRatio||1;r.each(Oe,(function(o,s){if(o.group===n){var l=t?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(r.clone(e)),p=o.getDom().getBoundingClientRect();u=i(p.left,u),c=i(p.top,c),d=a(p.right,d),h=a(p.bottom,h),f.push({dom:l,left:p.left,top:p.top})}})),u*=p,c*=p,d*=p,h*=p;var g=d-u,v=h-c,m=r.createCanvas(),y=o.init(m,{renderer:t?"svg":"canvas"});if(y.resize({width:g,height:v}),t){var x="";return N(f,(function(e){var t=e.left-u,n=e.top-c;x+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=x,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return e.connectedBackgroundColor&&y.add(new _.Rect({shape:{x:0,y:0,width:g,height:v},style:{fill:e.connectedBackgroundColor}})),N(f,(function(e){var t=new _.Image({style:{x:e.left*p-u,y:e.top*p-c,image:e.dom}});y.add(t)})),y.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},ie.convertToPixel=r.curry(oe,"convertToPixel"),ie.convertFromPixel=r.curry(oe,"convertFromPixel"),ie.containPixel=function(e,t){if(!this._disposed){var n,i=this._model;return e=b.parseFinder(i,e),r.each(e,(function(e,i){i.indexOf("Models")>=0&&r.each(e,(function(e){var o=e.coordinateSystem;if(o&&o.containPoint)n|=!!o.containPoint(t);else if("seriesModels"===i){var r=this._chartsMap[e.__viewId];r&&r.containPoint&&(n|=r.containPoint(t,e))}}),this)}),this),!!n}_e(this.id)},ie.getVisual=function(e,t){var n=this._model;e=b.parseFinder(n,e,{defaultMainType:"series"});var i=e.seriesModel,o=i.getData(),r=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?o.indexOfRawIndex(e.dataIndex):null;return null!=r?o.getItemVisual(r,t):o.getVisual(t)},ie.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},ie.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var re={prepareAndUpdate:function(e){ae(this),re.update.call(this,e)},update:function(e){var t=this._model,n=this._api,i=this._zr,o=this._coordSysMgr,r=this._scheduler;if(t){r.restoreData(t,e),r.performSeriesTasks(t),o.create(t,n),r.performDataProcessorTasks(t,e),le(this,t),o.update(t,n),pe(t),r.performVisualTasks(t,e),ge(this,t,n,e);var l=t.get("backgroundColor")||"transparent";if(s.canvasSupported)i.setBackgroundColor(l);else{var u=a.parse(l);l=a.stringify(u,"rgb"),0===u[3]&&(l="transparent")}ye(t,n)}},updateTransform:function(e){var t=this._model,n=this,i=this._api;if(t){var o=[];t.eachComponent((function(r,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,t,i,e);l&&l.update&&o.push(s)}else o.push(s)}));var a=r.createHashMap();t.eachSeries((function(o){var r=n._chartsMap[o.__viewId];if(r.updateTransform){var s=r.updateTransform(o,t,i,e);s&&s.update&&a.set(o.uid,1)}else a.set(o.uid,1)})),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:a}),me(n,t,i,e,a),ye(t,this._api)}},updateView:function(e){var t=this._model;t&&(x.markUpdateMethod(e,"updateView"),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),ge(this,this._model,this._api,e),ye(t,this._api))},updateVisual:function(e){re.update.call(this,e)},updateLayout:function(e){re.update.call(this,e)}};function ae(e){var t=e._model,n=e._scheduler;n.restorePipelines(t),n.prepareStageTasks(),fe(e,"component",t,n),fe(e,"chart",t,n),n.plan()}function se(e,t,n,i,o){var a=e._model;if(i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};o&&(l.subType=o);var u=n.excludeSeriesId;null!=u&&(u=r.createHashMap(b.normalizeToArray(u))),a&&a.eachComponent(l,(function(t){u&&null!=u.get(t.id)||c(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else N(e._componentsViews.concat(e._chartsViews),c);function c(i){i&&i.__alive&&i[t]&&i[t](i.__model,a,e._api,n)}}function le(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))}function ue(e,t){var n=e.type,i=e.escapeConnect,o=Ae[n],a=o.actionInfo,s=(a.update||"update").split(":"),l=s.pop();s=null!=s[0]&&L(s[0]),this[J]=!0;var u=[e],c=!1;e.batch&&(c=!0,u=r.map(e.batch,(function(t){return t=r.defaults(r.extend({},t),e),t.batch=null,t})));var d,h=[],f="highlight"===n||"downplay"===n;N(u,(function(e){d=o.action(e,this._model,this._api),d=d||r.extend({},e),d.type=a.event||d.type,h.push(d),f?se(this,l,e,"series"):s&&se(this,l,e,s.main,s.sub)}),this),"none"===l||f||s||(this[K]?(ae(this),re.update.call(this,e),this[K]=!1):re[l].call(this,e)),d=c?{type:a.event||n,escapeConnect:i,batch:h}:h[0],this[J]=!1,!t&&this._messageCenter.trigger(d.type,d)}function ce(e){var t=this._pendingActions;while(t.length){var n=t.shift();ue.call(this,n,e)}}function de(e){!e&&this.trigger("updated")}function he(e,t){e.on("rendered",(function(){t.trigger("rendered"),!e.animation.isFinished()||t[K]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))}function fe(e,t,n,i){for(var o="component"===t,r=o?e._componentsViews:e._chartsViews,a=o?e._componentsMap:e._chartsMap,s=e._zr,l=e._api,u=0;u<r.length;u++)r[u].__alive=!1;function c(e){var t="_ec_"+e.id+"_"+e.type,u=a[t];if(!u){var c=L(e.type),d=o?y.getClass(c.main,c.sub):x.getClass(c.sub);u=new d,u.init(n,l),a[t]=u,r.push(u),s.add(u.group)}e.__viewId=u.__id=t,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!o&&i.prepareView(u,e,n,l)}o?n.eachComponent((function(e,t){"series"!==e&&c(t)})):n.eachSeries(c);for(u=0;u<r.length;){var d=r[u];d.__alive?u++:(!o&&d.renderTask.dispose(),s.remove(d.group),d.dispose(n,l),r.splice(u,1),delete a[d.__id],d.__id=d.group.__ecComponentInfo=null)}}function pe(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function ge(e,t,n,i){ve(e,t,n,i),N(e._chartsViews,(function(e){e.__alive=!1})),me(e,t,n,i),N(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))}function ve(e,t,n,i,o){N(o||e._componentsViews,(function(e){var o=e.__model;e.render(o,t,n,i),Se(o,e)}))}function me(e,t,n,i,o){var r,a=e._scheduler;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var s=n.renderTask;a.updatePayload(s,i),o&&o.get(t.uid)&&s.dirty(),r|=s.perform(a.getPerformArgs(s)),n.group.silent=!!t.get("silent"),Se(t,n),we(t,n)})),a.unfinished|=r,be(e,t),I(e._zr.dom,t)}function ye(e,t){N(Ee,(function(n){n(e,t)}))}ie.resize=function(e){if(this._disposed)_e(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[J]=!0,n&&ae(this),re.update.call(this),this[J]=!1,ce.call(this,i),de.call(this,i)}}},ie.showLoading=function(e,t){if(this._disposed)_e(this.id);else if(O(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),De[e]){var n=De[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},ie.hideLoading=function(){this._disposed?_e(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},ie.makeActionFromEvent=function(e){var t=r.extend({},e);return t.type=ke[e.type],t},ie.dispatchAction=function(e,t){this._disposed?_e(this.id):(O(t)||(t={silent:!!t}),Ae[e.type]&&this._model&&(this[J]?this._pendingActions.push(e):(ue.call(this,e,t.silent),t.flush?this._zr.flush(!0):!1!==t.flush&&s.browser.weChat&&this._throttledZrFlush(),ce.call(this,t.silent),de.call(this,t.silent))))},ie.appendData=function(e){if(this._disposed)_e(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);i.appendData(e),this._scheduler.unfinished=!0}},ie.on=ee("on",!1),ie.off=ee("off",!1),ie.one=ee("one",!1);var xe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function _e(e){}function be(e,t){var n=e._zr,i=n.storage,o=0;i.traverse((function(e){o++})),o>t.get("hoverLayerThreshold")&&!s.node&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse((function(e){e.useHoverLayer=!0}))}}))}function we(e,t){var n=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||e.style.blend!==n&&e.setStyle("blend",n),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.setStyle("blend",n)}))}))}function Se(e,t){var n=e.get("z"),i=e.get("zlevel");t.group.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=i&&(e.zlevel=i))}))}function Me(e){var t=e._coordSysMgr;return r.extend(new d(e),{getCoordinateSystems:r.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}}})}function Ie(){this.eventInfo}ie._initEvents=function(){N(xe,(function(e){var t=function(t){var n,i=this.getModel(),o=t.target,a="globalout"===e;if(a)n={};else if(o&&null!=o.dataIndex){var s=o.dataModel||i.getSeriesByIndex(o.seriesIndex);n=s&&s.getDataParams(o.dataIndex,o.dataType,o)||{}}else o&&o.eventData&&(n=r.extend({},o.eventData));if(n){var l=n.componentType,u=n.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=n.seriesIndex);var c=l&&null!=u&&i.getComponent(l,u),d=c&&this["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];n.event=t,n.type=e,this._ecEventProcessor.eventInfo={targetEl:o,packedEvent:n,model:c,view:d},this.trigger(e,n)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)}),this),N(ke,(function(e,t){this._messageCenter.on(t,(function(e){this.trigger(t,e)}),this)}),this)},ie.isDisposed=function(){return this._disposed},ie.clear=function(){this._disposed?_e(this.id):this.setOption({series:[]},!0)},ie.dispose=function(){if(this._disposed)_e(this.id);else{this._disposed=!0,b.setAttribute(this.getDom(),Be,"");var e=this._api,t=this._model;N(this._componentsViews,(function(n){n.dispose(t,e)})),N(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),delete Oe[this.id]}},r.mixin(ne,u),Ie.prototype={constructor:Ie,normalizeQuery:function(e){var t={},n={},i={};if(r.isString(e)){var o=L(e);t.mainType=o.main||null,t.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};r.each(e,(function(e,o){for(var r=!1,l=0;l<a.length;l++){var u=a[l],c=o.lastIndexOf(u);if(c>0&&c===o.length-u.length){var d=o.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,r=!0)}}s.hasOwnProperty(o)&&(n[o]=e,r=!0),r||(i[o]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},filter:function(e,t,n){var i=this.eventInfo;if(!i)return!0;var o=i.targetEl,r=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,r,"name")&&c(u,r,"dataIndex")&&c(u,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,o,r));function c(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},afterTrigger:function(){this.eventInfo=null}};var Ae={},ke={},Pe=[],Ce=[],Ee=[],Te=[],Ne={},De={},Oe={},Le={},Ve=new Date-0,Re=new Date-0,Be="_echarts_instance_";function ze(e){var t=0,n=1,i=2,o="__connectUpdateStatus";function r(e,t){for(var n=0;n<e.length;n++){var i=e[n];i[o]=t}}N(ke,(function(a,s){e._messageCenter.on(s,(function(a){if(Le[e.group]&&e[o]!==t){if(a&&a.escapeConnect)return;var s=e.makeActionFromEvent(a),l=[];N(Oe,(function(t){t!==e&&t.group===e.group&&l.push(t)})),r(l,t),N(l,(function(e){e[o]!==n&&e.dispatchAction(s)})),r(l,i)}}))}))}function We(e,t,n){var i=je(e);if(i)return i;var o=new ne(e,t,n);return o.id="ec_"+Ve++,Oe[o.id]=o,b.setAttribute(e,Be,o.id),ze(o),o}function Fe(e){if(r.isArray(e)){var t=e;e=null,N(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+Re++,N(t,(function(t){t.group=e}))}return Le[e]=!0,e}function Ue(e){Le[e]=!1}var $e=Ue;function He(e){"string"===typeof e?e=Oe[e]:e instanceof ne||(e=je(e)),e instanceof ne&&!e.isDisposed()&&e.dispose()}function je(e){return Oe[b.getAttribute(e,Be)]}function Ge(e){return Oe[e]}function Ye(e,t){Ne[e]=t}function Ze(e){Ce.push(e)}function qe(e,t){nt(Pe,e,t,z)}function Xe(e){Ee.push(e)}function Je(e,t,n){"function"===typeof t&&(n=t,t="");var i=O(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,T(Q.test(i)&&Q.test(t)),Ae[i]||(Ae[i]={action:n,actionInfo:e}),ke[t]=i}function Ke(e,t){h.register(e,t)}function Qe(e){var t=h.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function et(e,t){nt(Te,e,t,$,"layout")}function tt(e,t){nt(Te,e,t,G,"visual")}function nt(e,t,n,i,o){(D(t)||O(t))&&(n=t,t=i);var r=k.wrapStageHandler(n,o);return r.__prio=t,r.__raw=n,e.push(r),r}function it(e,t){De[e]=t}function ot(e){return v.extend(e)}function rt(e){return y.extend(e)}function at(e){return m.extend(e)}function st(e){return x.extend(e)}function lt(e){r.$override("createCanvas",e)}function ut(e,t,n){E.registerMap(e,t,n)}function ct(e){var t=E.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}}tt(j,M),Ze(p),qe(F,g),it("default",A),Je({type:"highlight",event:"highlight",update:"highlight"},r.noop),Je({type:"downplay",event:"downplay",update:"downplay"},r.noop),Ye("light",P),Ye("dark",C);var dt={};t.version=V,t.dependencies=R,t.PRIORITY=X,t.init=We,t.connect=Fe,t.disConnect=Ue,t.disconnect=$e,t.dispose=He,t.getInstanceByDom=je,t.getInstanceById=Ge,t.registerTheme=Ye,t.registerPreprocessor=Ze,t.registerProcessor=qe,t.registerPostUpdate=Xe,t.registerAction=Je,t.registerCoordinateSystem=Ke,t.getCoordinateSystemDimensions=Qe,t.registerLayout=et,t.registerVisual=tt,t.registerLoading=it,t.extendComponentModel=ot,t.extendComponentView=rt,t.extendSeriesModel=at,t.extendChartView=st,t.setCanvasCreator=lt,t.registerMap=ut,t.getMap=ct,t.dataTool=dt;var ht=n(34151);(function(){for(var e in ht)ht.hasOwnProperty(e)&&(t[e]=ht[e])})()},34151:function(e,t,n){var i=n(31931);t.zrender=i;var o=n(32892);t.matrix=o;var r=n(45280);t.vector=r;var a=n(33051),s=n(21092);t.color=s;var l=n(51177),u=n(85669);t.number=u;var c=n(78988);t.format=c;var d=n(270);d.throttle;t.throttle=d.throttle;var h=n(28482);t.helper=h;var f=n(76672);t.parseGeoJSON=f;var p=n(87587);t.List=p;var g=n(4272);t.Model=g;var v=n(3245);t.Axis=v;var m=n(66387);t.env=m;var y=f,x={};a.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(e){x[e]=a[e]}));var _={};a.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(e){_[e]=l[e]})),t.parseGeoJson=y,t.util=x,t.graphic=_},28482:function(e,t,n){var i=n(33051),o=n(40488),r=n(97980),a=n(16650),s=n(4272),l=n(76172);l.getLayoutRect;t.getLayoutRect=l.getLayoutRect;var u=n(99936),c=u.enableDataStack,d=u.isDimensionStacked,h=u.getStackedDimension,f=n(34380);t.completeDimensions=f;var p=n(55623);t.createDimensions=p;var g=n(41525);function v(e){return o(e.getSource(),e)}t.createSymbol=g.createSymbol;var m={isDimensionStacked:d,enableDataStack:c,getStackedDimension:h};function y(e,t){var n=t;s.isInstance(t)||(n=new s(t),i.mixin(n,a));var o=r.createScaleByModel(n);return o.setExtent(e[0],e[1]),r.niceScaleExtent(o,n),o}function x(e){i.mixin(e,a)}t.createList=v,t.dataStack=m,t.createScale=y,t.mixinAxisModelCommonMethods=x},40292:function(e){var t={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};e.exports=t},79093:function(e,t,n){var i=n(33051),o=n(85669),r=o.parsePercent,a=n(99936),s=a.isDimensionStacked,l=n(95682),u="__ec_stack_",c=.5,d="undefined"!==typeof Float32Array?Float32Array:Array;function h(e){return e.get("stack")||u+e.seriesIndex}function f(e){return e.dim+e.index}function p(e){var t=[],n=e.axis,o="axis0";if("category"===n.type){for(var r=n.getBandWidth(),a=0;a<e.count;a++)t.push(i.defaults({bandWidth:r,axisKey:o,stackId:u+a},e));var s=y(t),l=[];for(a=0;a<e.count;a++){var c=s[o][u+a];c.offsetCenter=c.offset+c.width/2,l.push(c)}return l}}function g(e,t){var n=[];return t.eachSeriesByType(e,(function(e){w(e)&&!S(e)&&n.push(e)})),n}function v(e){var t={};i.each(e,(function(e){var n=e.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var o=e.getData(),r=i.dim+"_"+i.index,a=o.mapDimension(i.dim),s=0,l=o.count();s<l;++s){var u=o.get(a,s);t[r]?t[r].push(u):t[r]=[u]}}));var n=[];for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];if(r){r.sort((function(e,t){return e-t}));for(var a=null,s=1;s<r.length;++s){var l=r[s]-r[s-1];l>0&&(a=null===a?l:Math.min(a,l))}n[o]=a}}return n}function m(e){var t=v(e),n=[];return i.each(e,(function(e){var i,o=e.coordinateSystem,a=o.getBaseAxis(),s=a.getExtent();if("category"===a.type)i=a.getBandWidth();else if("value"===a.type||"time"===a.type){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(s[1]-s[0]),d=a.scale.getExtent(),p=Math.abs(d[1]-d[0]);i=u?c/p*u:c}else{var g=e.getData();i=Math.abs(s[1]-s[0])/g.count()}var v=r(e.get("barWidth"),i),m=r(e.get("barMaxWidth"),i),y=r(e.get("barMinWidth")||1,i),x=e.get("barGap"),_=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:v,barMaxWidth:m,barMinWidth:y,barGap:x,barCategoryGap:_,axisKey:f(a),stackId:h(e)})})),y(n)}function y(e){var t={};i.each(e,(function(e,n){var i=e.axisKey,o=e.bandWidth,r=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=r.stacks;t[i]=r;var s=e.stackId;a[s]||r.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var d=e.barGap;null!=d&&(r.gap=d);var h=e.barCategoryGap;null!=h&&(r.categoryGap=h)}));var n={};return i.each(t,(function(e,t){n[t]={};var o=e.stacks,a=e.bandWidth,s=r(e.categoryGap,a),l=r(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),i.each(o,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,u-=i+l*i,c--}else{var i=d;t&&t<i&&(i=Math.min(t,u)),n&&n>i&&(i=n),i!==d&&(e.width=i,u-=i+l*i,c--)}})),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var h,f=0;i.each(o,(function(e,t){e.width||(e.width=d),h=e,f+=e.width*(1+l)})),h&&(f-=h.width*l);var p=-f/2;i.each(o,(function(e,i){n[t][i]=n[t][i]||{bandWidth:a,offset:p,width:e.width},p+=e.width*(1+l)}))})),n}function x(e,t,n){if(e&&t){var i=e[f(t)];return null!=i&&null!=n&&(i=i[h(n)]),i}}function _(e,t){var n=g(e,t),o=m(n),r={},a={};i.each(n,(function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),l=h(e),u=o[f(i)][l],c=u.offset,d=u.width,p=n.getOtherAxis(i),g=e.get("barMinHeight")||0;r[l]=r[l]||[],a[l]=a[l]||[],t.setLayout({bandWidth:u.bandWidth,offset:c,size:d});for(var v=t.mapDimension(p.dim),m=t.mapDimension(i.dim),y=s(t,v),x=p.isHorizontal(),_=M(i,p,y),b=0,w=t.count();b<w;b++){var S,I,A,k,P=t.get(v,b),C=t.get(m,b),E=P>=0?"p":"n",T=_;if(y&&(r[l][C]||(r[l][C]={p:_,n:_}),T=r[l][C][E]),x){var N=n.dataToPoint([P,C]);S=T,I=N[1]+c,A=N[0]-_,k=d,Math.abs(A)<g&&(A=(A<0?-1:1)*g),isNaN(A)||y&&(r[l][C][E]+=A)}else{N=n.dataToPoint([C,P]);S=N[0]+c,I=T,A=d,k=N[1]-_,Math.abs(k)<g&&(k=(k<=0?-1:1)*g),isNaN(k)||y&&(r[l][C][E]+=k)}t.setItemLayout(b,{x:S,y:I,width:A,height:k})}}),this)}var b={seriesType:"bar",plan:l(),reset:function(e){if(w(e)&&S(e)){var t=e.getData(),n=e.coordinateSystem,i=n.grid.getRect(),o=n.getBaseAxis(),r=n.getOtherAxis(o),a=t.mapDimension(r.dim),s=t.mapDimension(o.dim),l=r.isHorizontal(),u=l?0:1,h=x(m([e]),o,e).width;return h>c||(h=c),{progress:f}}function f(e,t){var c,f=e.count,p=new d(2*f),g=new d(2*f),v=new d(f),m=[],y=[],x=0,_=0;while(null!=(c=e.next()))y[u]=t.get(a,c),y[1-u]=t.get(s,c),m=n.dataToPoint(y,null,m),g[x]=l?i.x+i.width:m[0],p[x++]=m[0],g[x]=l?m[1]:i.y+i.height,p[x++]=m[1],v[_++]=c;t.setLayout({largePoints:p,largeDataIndices:v,largeBackgroundPoints:g,barWidth:h,valueAxisStart:M(o,r,!1),backgroundStart:l?i.x:i.y,valueAxisHorizontal:l})}}};function w(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function S(e){return e.pipelineContext&&e.pipelineContext.large}function M(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}t.getLayoutOnAxis=p,t.prepareLayoutBarSeries=g,t.makeColumnLayout=m,t.retrieveColumnLayout=x,t.layout=_,t.largeLayout=b},21709:function(e,t,n){var i=n(33051),o=n(85669),r=o.parsePercent,a=n(99936),s=a.isDimensionStacked;function l(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function u(e,t){return t.dim+e.model.componentIndex}function c(e,t,n){var o={},r=d(i.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=u(n,i),c=l(e),d=r[a][c],h=d.offset,f=d.width,p=n.getOtherAxis(i),g=e.coordinateSystem.cx,v=e.coordinateSystem.cy,m=e.get("barMinHeight")||0,y=e.get("barMinAngle")||0;o[c]=o[c]||[];for(var x=t.mapDimension(p.dim),_=t.mapDimension(i.dim),b=s(t,x),w="radius"!==i.dim||!e.get("roundCap",!0),S=p.getExtent()[0],M=0,I=t.count();M<I;M++){var A,k,P,C,E=t.get(x,M),T=t.get(_,M),N=E>=0?"p":"n",D=S;if(b&&(o[c][T]||(o[c][T]={p:S,n:S}),D=o[c][T][N]),"radius"===p.dim){var O=p.dataToRadius(E)-S,L=i.dataToAngle(T);Math.abs(O)<m&&(O=(O<0?-1:1)*m),A=D,k=D+O,P=L-h,C=P-f,b&&(o[c][T][N]=k)}else{var V=p.dataToAngle(E,w)-S,R=i.dataToRadius(T);Math.abs(V)<y&&(V=(V<0?-1:1)*y),A=R+h,k=A+f,P=D,C=D+V,b&&(o[c][T][N]=C)}t.setItemLayout(M,{cx:g,cy:v,r0:A,r:k,startAngle:-P*Math.PI/180,endAngle:-C*Math.PI/180})}}}),this)}function d(e,t){var n={};i.each(e,(function(e,t){var i=e.getData(),o=e.coordinateSystem,a=o.getBaseAxis(),s=u(o,a),c=a.getExtent(),d="category"===a.type?a.getBandWidth():Math.abs(c[1]-c[0])/i.count(),h=n[s]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=h.stacks;n[s]=h;var p=l(e);f[p]||h.autoWidthCount++,f[p]=f[p]||{width:0,maxWidth:0};var g=r(e.get("barWidth"),d),v=r(e.get("barMaxWidth"),d),m=e.get("barGap"),y=e.get("barCategoryGap");g&&!f[p].width&&(g=Math.min(h.remainedWidth,g),f[p].width=g,h.remainedWidth-=g),v&&(f[p].maxWidth=v),null!=m&&(h.gap=m),null!=y&&(h.categoryGap=y)}));var o={};return i.each(n,(function(e,t){o[t]={};var n=e.stacks,a=e.bandWidth,s=r(e.categoryGap,a),l=r(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),i.each(n,(function(e,t){var n=e.maxWidth;n&&n<d&&(n=Math.min(n,u),e.width&&(n=Math.min(n,e.width)),u-=n,e.width=n,c--)})),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var h,f=0;i.each(n,(function(e,t){e.width||(e.width=d),h=e,f+=e.width*(1+l)})),h&&(f-=h.width*l);var p=-f/2;i.each(n,(function(e,n){o[t][n]=o[t][n]||{offset:p,width:e.width},p+=e.width*(1+l)}))})),o}var h=c;e.exports=h},21149:function(e,t,n){var i=n(33051),o=i.map,r=n(95682),a=n(99936),s=a.isDimensionStacked;function l(e){return{seriesType:e,plan:r(),reset:function(e){var t=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,r=i.large;if(n){var a=o(n.dimensions,(function(e){return t.mapDimension(e)})).slice(0,2),l=a.length,u=t.getCalculationInfo("stackResultDimension");return s(t,a[0])&&(a[0]=u),s(t,a[1])&&(a[1]=u),l&&{progress:c}}function c(e,t){for(var i=e.end-e.start,o=r&&new Float32Array(i*l),s=e.start,u=0,c=[],d=[];s<e.end;s++){var h;if(1===l){var f=t.get(a[0],s);h=!isNaN(f)&&n.dataToPoint(f,null,d)}else{f=c[0]=t.get(a[0],s);var p=c[1]=t.get(a[1],s);h=!isNaN(f)&&!isNaN(p)&&n.dataToPoint(c,null,d)}r?(o[u++]=h?h[0]:NaN,o[u++]=h?h[1]:NaN):t.setItemLayout(s,h&&h.slice()||[NaN,NaN])}r&&t.setLayout("symbolPoints",o)}}}}e.exports=l},23430:function(e,t,n){var i=n(33051),o=n(51177),r=n(80423),a=Math.PI;function s(e,t){t=t||{},i.defaults(t,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new o.Group,s=new o.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(s);var l=t.fontSize+" sans-serif",u=new o.Rect({style:{fill:"none",text:t.text,font:l,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});if(n.add(u),t.showSpinner){var c=new o.Arc({shape:{startAngle:-a/2,endAngle:-a/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001});c.animateShape(!0).when(1e3,{endAngle:3*a/2}).start("circularInOut"),c.animateShape(!0).when(1e3,{startAngle:3*a/2}).delay(300).start("circularInOut"),n.add(c)}return n.resize=function(){var n=r.getWidth(t.text,l),i=t.showSpinner?t.spinnerRadius:0,o=(e.getWidth()-2*i-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner?0:n/2),a=e.getHeight()/2;t.showSpinner&&c.setShape({cx:o,cy:a}),u.setShape({x:o-i,y:a-i,width:2*i,height:2*i}),s.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}e.exports=s},98071:function(e,t,n){var i=n(33051),o=n(4272),r=n(42151),a=n(34251),s=a.enableClassManagement,l=a.parseClassType,u=n(32234),c=u.makeInner,d=n(76172),h=n(83047),f=c(),p=o.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,n,i){o.call(this,e,t,n,i),this.uid=r.getUID("ec_cpt_model")},init:function(e,t,n,i){this.mergeDefaultAndTheme(e,n)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,o=n?d.getLayoutParams(e):{},r=t.getTheme();i.merge(e,r.get(this.mainType)),i.merge(e,this.getDefaultOption()),n&&d.mergeLayoutParam(e,o,n)},mergeOption:function(e,t){i.merge(this.option,e,!0);var n=this.layoutMode;n&&d.mergeLayoutParam(this.option,e,n)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=f(this);if(!e.defaultOption){var t=[],n=this.constructor;while(n){var o=n.prototype.defaultOption;o&&t.push(o),n=n.superClass}for(var r={},a=t.length-1;a>=0;a--)r=i.merge(r,t[a],!0);e.defaultOption=r}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});function g(e){var t=[];return i.each(p.getClassesByMainType(e),(function(e){t=t.concat(e.prototype.dependencies||[])})),t=i.map(t,(function(e){return l(e).main})),"dataset"!==e&&i.indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}s(p,{registerWhenExtend:!0}),r.enableSubTypeDefaulter(p),r.enableTopologicalTravel(p,g),i.mixin(p,h);var v=p;e.exports=v},17260:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=o.each,a=o.filter,s=o.map,l=o.isArray,u=o.indexOf,c=o.isObject,d=o.isString,h=o.createHashMap,f=o.assert,p=o.clone,g=o.merge,v=o.extend,m=o.mixin,y=n(32234),x=n(4272),_=n(98071),b=n(22577),w=n(23895),S=n(61772),M=S.resetSourceDefaulter,I="\0_ec_inner",A=x.extend({init:function(e,t,n,i){n=n||{},this.option=null,this._theme=new x(n),this._optionManager=i},setOption:function(e,t){f(!(I in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t=!1,n=this._optionManager;if(!e||"recreate"===e){var i=n.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(i)):C.call(this,i),t=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=n.getTimelineOption(this);o&&(this.mergeOption(o),t=!0)}if(!e||"recreate"===e||"media"===e){var a=n.getMediaOption(this,this._api);a.length&&r(a,(function(e){this.mergeOption(e,t=!0)}),this)}return t},mergeOption:function(e){var t=this.option,n=this._componentsMap,i=[];function o(i,o){var a=y.normalizeToArray(e[i]),s=y.mappingToExists(n.get(i),a);y.makeIdAndName(s),r(s,(function(e,t){var n=e.option;c(n)&&(e.keyInfo.mainType=i,e.keyInfo.subType=T(i,n,e.exist))}));var l=E(n,o);t[i]=[],n.set(i,[]),r(s,(function(e,o){var r=e.exist,a=e.option;if(f(c(a)||r,"Empty component definition"),a){var s=_.getClass(i,e.keyInfo.subType,!0);if(r&&r.constructor===s)r.name=e.keyInfo.name,r.mergeOption(a,this),r.optionUpdated(a,!1);else{var u=v({dependentModels:l,componentIndex:o},e.keyInfo);r=new s(a,this,this,u),v(r,u),r.init(a,this,this,u),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);n.get(i)[o]=r,t[i][o]=r.option}),this),"series"===i&&N(this,n.get("series"))}M(this),r(e,(function(e,n){null!=e&&(_.hasClass(n)?n&&i.push(n):t[n]=null==t[n]?p(e):g(t[n],e,!0))})),_.topologicalTravel(i,_.getAllClassMainTypes(),o,this),this._seriesIndicesMap=h(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var e=p(this.option);return r(e,(function(t,n){if(_.hasClass(n)){t=y.normalizeToArray(t);for(var i=t.length-1;i>=0;i--)y.isIdInner(t[i])&&t.splice(i,1);e[n]=t}})),delete e[I],e},getTheme:function(){return this._theme},getComponent:function(e,t){var n=this._componentsMap.get(e);if(n)return n[t||0]},queryComponents:function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,o=e.id,r=e.name,c=this._componentsMap.get(t);if(!c||!c.length)return[];if(null!=i)l(i)||(i=[i]),n=a(s(i,(function(e){return c[e]})),(function(e){return!!e}));else if(null!=o){var d=l(o);n=a(c,(function(e){return d&&u(o,e.id)>=0||!d&&e.id===o}))}else if(null!=r){var h=l(r);n=a(c,(function(e){return h&&u(r,e.name)>=0||!h&&e.name===r}))}else n=c.slice();return D(n,e)},findComponents:function(e){var t=e.query,n=e.mainType,i=r(t),o=i?this.queryComponents(i):this._componentsMap.get(n);return s(D(o,e));function r(e){var t=n+"Index",i=n+"Id",o=n+"Name";return!e||null==e[t]&&null==e[i]&&null==e[o]?null:{mainType:n,index:e[t],id:e[i],name:e[o]}}function s(t){return e.filter?a(t,e.filter):t}},eachComponent:function(e,t,n){var i=this._componentsMap;if("function"===typeof e)n=t,t=e,i.each((function(e,i){r(e,(function(e,o){t.call(n,i,e,o)}))}));else if(d(e))r(i.get(e),t,n);else if(c(e)){var o=this.findComponents(e);r(o,t,n)}},getSeriesByName:function(e){var t=this._componentsMap.get("series");return a(t,(function(t){return t.name===e}))},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(e){var t=this._componentsMap.get("series");return a(t,(function(t){return t.subType===e}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(e,t){O(this),r(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},eachRawSeries:function(e,t){r(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(e,t,n){O(this),r(this._seriesIndices,(function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&t.call(n,o,i)}),this)},eachRawSeriesByType:function(e,t,n){return r(this.getSeriesByType(e),t,n)},isSeriesFiltered:function(e){return O(this),null==this._seriesIndicesMap.get(e.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){O(this);var n=a(this._componentsMap.get("series"),e,t);N(this,n)},restoreData:function(e){var t=this._componentsMap;N(this,t.get("series"));var n=[];t.each((function(e,t){n.push(t)})),_.topologicalTravel(n,_.getAllClassMainTypes(),(function(n,i){r(t.get(n),(function(t){("series"!==n||!k(t,e))&&t.restoreData()}))}))}});function k(e,t){if(t){var n=t.seiresIndex,i=t.seriesId,o=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=o&&e.name!==o}}function P(e,t){var n=e.color&&!e.colorLayer;r(t,(function(t,i){"colorLayer"===i&&n||_.hasClass(i)||("object"===typeof t?e[i]=e[i]?g(e[i],t,!1):p(t):null==e[i]&&(e[i]=t))}))}function C(e){this.option={},this.option[I]=1,this._componentsMap=h({series:[]}),this._seriesIndices,this._seriesIndicesMap,P(e,this._theme.option),g(e,b,!1),this.mergeOption(e)}function E(e,t){l(t)||(t=t?[t]:[]);var n={};return r(t,(function(t){n[t]=(e.get(t)||[]).slice()})),n}function T(e,t,n){var i=t.type?t.type:n?n.subType:_.determineSubType(e,t);return i}function N(e,t){e._seriesIndicesMap=h(e._seriesIndices=s(t,(function(e){return e.componentIndex}))||[])}function D(e,t){return t.hasOwnProperty("subType")?a(e,(function(e){return e.subType===t.subType})):e}function O(e){}m(A,w);var L=A;e.exports=L},4272:function(e,t,n){var i=n(33051),o=n(66387),r=n(32234),a=r.makeInner,s=n(34251),l=s.enableClassExtend,u=s.enableClassCheck,c=n(77515),d=n(7308),h=n(7501),f=n(89887),p=i.mixin,g=a();function v(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}function m(e,t,n){for(var i=0;i<t.length;i++)if(t[i]&&(e=e&&"object"===typeof e?e[t[i]]:null,null==e))break;return null==e&&n&&(e=n.get(t)),e}function y(e,t){var n=g(e).getParent;return n?n.call(e,t):e.parentModel}v.prototype={constructor:v,init:null,mergeOption:function(e){i.merge(this.option,e,!0)},get:function(e,t){return null==e?this.option:m(this.option,this.parsePath(e),!t&&y(this,e))},getShallow:function(e,t){var n=this.option,i=null==n?n:n[e],o=!t&&y(this,e);return null==i&&o&&(i=o.getShallow(e)),i},getModel:function(e,t){var n,i=null==e?this.option:m(this.option,e=this.parsePath(e));return t=t||(n=y(this,e))&&n.getModel(e),new v(i,t,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var e=this.constructor;return new e(i.clone(this.option))},setReadOnly:function(e){},parsePath:function(e){return"string"===typeof e&&(e=e.split(".")),e},customizeGetParent:function(e){g(this).getParent=e},isAnimationEnabled:function(){if(!o.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},l(v),u(v),p(v,c),p(v,d),p(v,h),p(v,f);var x=v;e.exports=x},43534:function(e,t,n){var i=n(33051),o=n(32234),r=n(98071),a=i.each,s=i.clone,l=i.map,u=i.merge,c=/^(min|max)?(.+)$/;function d(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function h(e,t,n){var o,r,s=[],l=[],u=e.timeline;if(e.baseOption&&(r=e.baseOption),(u||e.options)&&(r=r||{},s=(e.options||[]).slice()),e.media){r=r||{};var c=e.media;a(c,(function(e){e&&e.option&&(e.query?l.push(e):o||(o=e))}))}return r||(r=e),r.timeline||(r.timeline=u),a([r].concat(s).concat(i.map(l,(function(e){return e.option}))),(function(e){a(t,(function(t){t(e,n)}))})),{baseOption:r,timelineOptions:s,mediaDefault:o,mediaList:l}}function f(e,t,n){var o={width:t,height:n,aspectratio:t/n},r=!0;return i.each(e,(function(e,t){var n=t.match(c);if(n&&n[1]&&n[2]){var i=n[1],a=n[2].toLowerCase();p(o[a],e,i)||(r=!1)}})),r}function p(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function g(e,t){return e.join(",")===t.join(",")}function v(e,t){t=t||{},a(t,(function(t,n){if(null!=t){var i=e[n];if(r.hasClass(n)){t=o.normalizeToArray(t),i=o.normalizeToArray(i);var a=o.mappingToExists(i,t);e[n]=l(a,(function(e){return e.option&&e.exist?u(e.exist,e.option,!0):e.exist||e.option}))}else e[n]=u(i,t,!0)}}))}d.prototype={constructor:d,setOption:function(e,t){e&&i.each(o.normalizeToArray(e.series),(function(e){e&&e.data&&i.isTypedArray(e.data)&&i.setAsPrimitive(e.data)})),e=s(e);var n=this._optionBackup,r=h.call(this,e,t,!n);this._newBaseOption=r.baseOption,n?(v(n.baseOption,r.baseOption),r.timelineOptions.length&&(n.timelineOptions=r.timelineOptions),r.mediaList.length&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=l(t.timelineOptions,s),this._mediaList=l(t.mediaList,s),this._mediaDefault=s(t.mediaDefault),this._currentMediaIndices=[],s(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=s(n[i.getCurrentIndex()],!0))}return t},getMediaOption:function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,r=[],a=[];if(!i.length&&!o)return a;for(var u=0,c=i.length;u<c;u++)f(i[u].query,t,n)&&r.push(u);return!r.length&&o&&(r=[-1]),r.length&&!g(r,this._currentMediaIndices)&&(a=l(r,(function(e){return s(-1===e?o.option:i[e].option)}))),this._currentMediaIndices=r,a}};var m=d;e.exports=m},93321:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=n(66387),a=n(78988),s=a.formatTime,l=a.encodeHTML,u=a.addCommas,c=a.getTooltipMarker,d=n(32234),h=n(98071),f=n(23895),p=n(61219),g=n(76172),v=g.getLayoutParams,m=g.mergeLayoutParam,y=n(29449),x=y.createTask,_=n(61772),b=_.prepareSource,w=_.getSource,S=n(68540),M=S.retrieveRawValue,I=d.makeInner(),A=h.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=x({count:C,reset:E}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),b(this);var o=this.getInitialData(e,n);N(o,this),this.dataTask.context.data=o,I(this).dataBeforeProcessed=o,k(this)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?v(e):{},r=this.subType;h.hasClass(r)&&(r+="Series"),o.merge(e,t.getTheme().get(this.subType)),o.merge(e,this.getDefaultOption()),d.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&m(e,i,n)},mergeOption:function(e,t){e=o.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=this.layoutMode;n&&m(this.option,e,n),b(this);var i=this.getInitialData(e,t);N(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,I(this).dataBeforeProcessed=i,k(this)},fillDataTextStyle:function(e){if(e&&!o.isTypedArray(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&d.defaultEmphasis(e[n],"label",t)},getInitialData:function(){},appendData:function(e){var t=this.getRawData();t.appendData(e.data)},getData:function(e){var t=O(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return I(this).data},setData:function(e){var t=O(this);if(t){var n=t.context;n.data!==e&&t.modifyOutputEnd&&t.setOutputEnd(e.count()),n.outputData=e,t!==this.dataTask&&(n.data=e)}I(this).data=e},getSource:function(){return w(this)},getRawData:function(){return I(this).dataBeforeProcessed},getBaseAxis:function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},formatTooltip:function(e,t,n,i){var r=this;i=i||"html";var a="html"===i?"<br/>":"\n",h="richText"===i,f={},p=0;function g(n){var a=o.reduce(n,(function(e,t,n){var i=m.getDimensionInfo(n);return e|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),d=[];function g(e,n){var o=m.getDimensionInfo(n);if(o&&!1!==o.otherDims.tooltip){var g=o.type,v="sub"+r.seriesIndex+"at"+p,y=c({color:w,type:"subItem",renderMode:i,markerId:v}),x="string"===typeof y?y:y.content,_=(a?x+l(o.displayName||"-")+": ":"")+l("ordinal"===g?e+"":"time"===g?t?"":s("yyyy/MM/dd hh:mm:ss",e):u(e));_&&d.push(_),h&&(f[v]=w,++p)}}y.length?o.each(y,(function(t){g(M(m,e,t),t)})):o.each(n,g);var v=a?h?"\n":"<br/>":"",x=v+d.join(v||", ");return{renderMode:i,content:x,style:f}}function v(e){return{renderMode:i,content:l(u(e)),style:f}}var m=this.getData(),y=m.mapDimension("defaultedTooltip",!0),x=y.length,_=this.getRawValue(e),b=o.isArray(_),w=m.getItemVisual(e,"color");o.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=x>1||b&&!x?g(_):v(x?M(m,e,y[0]):b?_[0]:_),I=S.content,A=r.seriesIndex+"at"+p,k=c({color:w,type:"item",renderMode:i,markerId:A});f[A]=w,++p;var P=m.getName(e),C=this.name;d.isNameSpecified(this)||(C=""),C=C?l(C)+(t?": ":a):"";var E="string"===typeof k?k:k.content,T=t?E+C+I:C+E+(P?l(P)+": "+I:I);return{html:T,markers:f}},isAnimationEnabled:function(){if(r.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,n){var i=this.ecModel,o=f.getColorFromPalette.call(this,e,t,n);return o||(o=i.getColorFromPalette(e,t,n)),o},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function k(e){var t=e.name;d.isNameSpecified(e)||(e.name=P(e)||t)}function P(e){var t=e.getRawData(),n=t.mapDimension("seriesName",!0),i=[];return o.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function C(e){return e.model.getRawData().count()}function E(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),T}function T(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function N(e,t){o.each(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,o.curry(D,t))}))}function D(e){var t=O(e);t&&t.setOutputEnd(this.count())}function O(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var o=i.agentStubMap;o&&(i=o.get(e.uid))}return i}}o.mixin(A,p),o.mixin(A,f);var L=A;e.exports=L},22577:function(e){var t="";"undefined"!==typeof navigator&&(t=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};e.exports=n},7308:function(e,t,n){var i=n(59066),o=i([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),r={getAreaStyle:function(e,t){return o(this,e,t)}};e.exports=r},83047:function(e){var t={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};e.exports=t},23895:function(e,t,n){var i=n(32234),o=i.makeInner,r=i.normalizeToArray,a=o();function s(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}var l={clearColorPalette:function(){a(this).colorIdx=0,a(this).colorNameMap={}},getColorFromPalette:function(e,t,n){t=t||this;var i=a(t),o=i.colorIdx||0,l=i.colorNameMap=i.colorNameMap||{};if(l.hasOwnProperty(e))return l[e];var u=r(this.get("color",!0)),c=this.get("colorLayer",!0),d=null!=n&&c?s(c,n):u;if(d=d||u,d&&d.length){var h=d[o];return e&&(l[e]=h),i.colorIdx=(o+1)%d.length,h}}};e.exports=l},61219:function(e,t,n){var i=n(68540),o=i.retrieveRawValue,r=n(78988),a=r.getTooltipMarker,s=r.formatTpl,l=n(32234),u=l.getTooltipRenderMode,c=/\{@(.+?)\}/g,d={getDataParams:function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),o=n.getRawIndex(e),r=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"color"),c=n.getItemVisual(e,"borderColor"),d=this.ecModel.getComponent("tooltip"),h=d&&d.get("renderMode"),f=u(h),p=this.mainType,g="series"===p,v=n.userOutput;return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:r,dataIndex:o,data:s,dataType:t,value:i,color:l,borderColor:c,dimensionNames:v?v.dimensionNames:null,encode:v?v.encode:null,marker:a({color:l,renderMode:f}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,n,i,r){t=t||"normal";var a=this.getData(n),l=a.getItemModel(e),u=this.getDataParams(e,n);null!=i&&u.value instanceof Array&&(u.value=u.value[i]);var d=l.get("normal"===t?[r||"label","formatter"]:[t,r||"label","formatter"]);if("function"===typeof d)return u.status=t,u.dimensionIndex=i,d(u);if("string"===typeof d){var h=s(d,u);return h.replace(c,(function(t,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),o(a,e,n)}))}},getRawValue:function(e,t){return o(this.getData(t),e)},formatTooltip:function(){}};e.exports=d},89887:function(e,t,n){var i=n(59066),o=i([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),r={getItemStyle:function(e,t){var n=o(this,e,t),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}};e.exports=r},77515:function(e,t,n){var i=n(59066),o=i([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getLineStyle:function(e){var t=o(this,e);return t.lineDash=this.getLineDash(t.lineWidth),t},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),n=Math.max(e,2),i=4*e;return"solid"!==t&&null!=t&&("dashed"===t?[i,i]:[n,n])}};e.exports=r},59066:function(e,t,n){var i=n(33051);function o(e){for(var t=0;t<e.length;t++)e[t][1]||(e[t][1]=e[t][0]);return function(t,n,o){for(var r={},a=0;a<e.length;a++){var s=e[a][1];if(!(n&&i.indexOf(n,s)>=0||o&&i.indexOf(o,s)<0)){var l=t.getShallow(s);null!=l&&(r[e[a][0]]=l)}}return r}}e.exports=o},7501:function(e,t,n){var i=n(80423),o=n(51177),r=["textStyle","color"],a={getTextColor:function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(r):null)},getFont:function(){return o.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return i.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};e.exports=a},32702:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=o.createHashMap,a=(o.retrieve,o.each);function s(e){this.coordSysName=e,this.coordSysDims=[],this.axisMap=r(),this.categoryAxisMap=r(),this.firstCategoryDimIndex=null}function l(e){var t=e.get("coordinateSystem"),n=new s(t),i=u[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var u={cartesian2d:function(e,t,n,i){var o=e.getReferringComponents("xAxis")[0],r=e.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",r),c(o)&&(i.set("x",o),t.firstCategoryDimIndex=0),c(r)&&(i.set("y",r),t.firstCategoryDimIndex,t.firstCategoryDimIndex=1)},singleAxis:function(e,t,n,i){var o=e.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],n.set("single",o),c(o)&&(i.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var o=e.getReferringComponents("polar")[0],r=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",a),c(r)&&(i.set("radius",r),t.firstCategoryDimIndex=0),c(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var o=e.ecModel,r=o.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=r.dimensions.slice();a(r.parallelAxisIndex,(function(e,r){var a=o.getComponent("parallelAxis",e),l=s[r];n.set(l,a),c(a)&&null==t.firstCategoryDimIndex&&(i.set(l,a),t.firstCategoryDimIndex=r)}))}};function c(e){return"category"===e.get("type")}t.getCoordSysInfoBySeries=l},70141:function(e,t,n){var i=n(33051),o=i.each,r=i.isArray,a=i.isObject,s=n(4583),l=n(32234),u=l.normalizeToArray;function c(e,t){t=t.split(",");for(var n=e,i=0;i<t.length;i++)if(n=n&&n[t[i]],null==n)break;return n}function d(e,t,n,i){t=t.split(",");for(var o,r=e,a=0;a<t.length-1;a++)o=t[a],null==r[o]&&(r[o]={}),r=r[o];(i||null==r[t[a]])&&(r[t[a]]=n)}function h(e){o(f,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var f=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],p=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function g(e,t){s(e,t),e.series=u(e.series),o(e.series,(function(e){if(a(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t)null!=e.clockWise&&(e.clockwise=e.clockWise);else if("gauge"===t){var n=c(e,"pointer.color");null!=n&&d(e,"itemStyle.color",n)}h(e)}})),e.dataRange&&(e.visualMap=e.dataRange),o(p,(function(t){var n=e[t];n&&(r(n)||(n=[n]),o(n,(function(e){h(e)})))}))}e.exports=g},4583:function(e,t,n){var i=n(33051),o=n(32234),r=i.each,a=i.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(e){var t=e&&e.itemStyle;if(t)for(var n=0,o=s.length;n<o;n++){var r=s[n],a=t.normal,l=t.emphasis;a&&a[r]&&(e[r]=e[r]||{},e[r].normal?i.merge(e[r].normal,a[r]):e[r].normal=a[r],a[r]=null),l&&l[r]&&(e[r]=e[r]||{},e[r].emphasis?i.merge(e[r].emphasis,l[r]):e[r].emphasis=l[r],l[r]=null)}}function u(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var o=e[t].normal,r=e[t].emphasis;o&&(n?(e[t].normal=e[t].emphasis=null,i.defaults(e[t],o)):e[t]=o),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r)}}function c(e){u(e,"itemStyle"),u(e,"lineStyle"),u(e,"areaStyle"),u(e,"label"),u(e,"labelLine"),u(e,"upperLabel"),u(e,"edgeLabel")}function d(e,t){var n=a(e)&&e[t],i=a(n)&&n.textStyle;if(i)for(var r=0,s=o.TEXT_STYLE_OPTIONS.length;r<s;r++){t=o.TEXT_STYLE_OPTIONS[r];i.hasOwnProperty(t)&&(n[t]=i[t])}}function h(e){e&&(c(e),d(e,"label"),e.emphasis&&d(e.emphasis,"label"))}function f(e){if(a(e)){l(e),c(e),d(e,"label"),d(e,"upperLabel"),d(e,"edgeLabel"),e.emphasis&&(d(e.emphasis,"label"),d(e.emphasis,"upperLabel"),d(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(l(t),h(t));var n=e.markLine;n&&(l(n),h(n));var o=e.markArea;o&&h(o);var r=e.data;if("graph"===e.type){r=r||e.nodes;var s=e.links||e.edges;if(s&&!i.isTypedArray(s))for(var f=0;f<s.length;f++)h(s[f]);i.each(e.categories,(function(e){c(e)}))}if(r&&!i.isTypedArray(r))for(f=0;f<r.length;f++)h(r[f]);t=e.markPoint;if(t&&t.data){var p=t.data;for(f=0;f<p.length;f++)h(p[f])}n=e.markLine;if(n&&n.data){var g=n.data;for(f=0;f<g.length;f++)i.isArray(g[f])?(h(g[f][0]),h(g[f][1])):h(g[f])}"gauge"===e.type?(d(e,"axisLabel"),d(e,"title"),d(e,"detail")):"treemap"===e.type?(u(e.breadcrumb,"itemStyle"),i.each(e.levels,(function(e){c(e)}))):"tree"===e.type&&c(e.leaves)}}function p(e){return i.isArray(e)?e:e?[e]:[]}function g(e){return(i.isArray(e)?e[0]:e)||{}}function v(e,t){r(p(e.series),(function(e){a(e)&&f(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),r(n,(function(t){r(p(e[t]),(function(e){e&&(d(e,"axisLabel"),d(e.axisPointer,"label"))}))})),r(p(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;d(t,"axisLabel"),d(t&&t.axisPointer,"label")})),r(p(e.calendar),(function(e){u(e,"itemStyle"),d(e,"dayLabel"),d(e,"monthLabel"),d(e,"yearLabel")})),r(p(e.radar),(function(e){d(e,"name")})),r(p(e.geo),(function(e){a(e)&&(h(e),r(p(e.regions),(function(e){h(e)})))})),r(p(e.timeline),(function(e){h(e),u(e,"label"),u(e,"itemStyle"),u(e,"controlStyle",!0);var t=e.data;i.isArray(t)&&i.each(t,(function(e){i.isObject(e)&&(u(e,"label"),u(e,"itemStyle"))}))})),r(p(e.toolbox),(function(e){u(e,"iconStyle"),r(e.feature,(function(e){u(e,"iconStyle")}))})),d(g(e.axisPointer),"label"),d(g(e.tooltip).axisPointer,"label")}e.exports=v},22528:function(e){function t(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),o=0;o<n.length;o++)if(!n[o].isSelected(t))return!1;return!0}))}}}}e.exports=t},64088:function(e){var t={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},n=function(e,t){return Math.round(e.length/2)};function i(e){return{seriesType:e,modifyOutputEnd:!0,reset:function(e,i,o){var r=e.getData(),a=e.get("sampling"),s=e.coordinateSystem;if("cartesian2d"===s.type&&a){var l,u=s.getBaseAxis(),c=s.getOtherAxis(u),d=u.getExtent(),h=d[1]-d[0],f=Math.round(r.count()/h);if(f>1)"string"===typeof a?l=t[a]:"function"===typeof a&&(l=a),l&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,l,n))}}}}e.exports=i},33809:function(e,t,n){var i=n(33051),o=i.createHashMap,r=i.each;function a(e){var t=o();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),o=e.getData(),r={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(r)}})),t.each(s)}function s(e){r(e,(function(t,n){var i=[],o=[NaN,NaN],r=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=a.map(r,(function(r,l,u){var c,d,h=a.get(t.stackedDimension,u);if(isNaN(h))return o;s?d=a.getRawIndex(u):c=a.get(t.stackedByDimension,u);for(var f=NaN,p=n-1;p>=0;p--){var g=e[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var v=g.data.getByRawIndex(g.stackResultDimension,d);if(h>=0&&v>0||h<=0&&v<0){h+=v,f=v;break}}}return i[0]=h,i[1]=f,i}));a.hostModel.setData(l),t.data=l}))}e.exports=a},70103:function(e,t,n){var i=n(85669),o=n(78988),r=n(60379),a=n(65021),s=i.round,l=r.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),l.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a.getIntervalPrecision(e)},getTicks:function(e){var t=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(!t)return r;var a=1e4;n[0]<i[0]&&(e?r.push(s(i[0]-t,o)):r.push(n[0]));var l=i[0];while(l<=i[1]){if(r.push(l),l=s(l+t,o),l===r[r.length-1])break;if(r.length>a)return[]}var u=r.length?r[r.length-1]:i[1];return n[1]>u&&(e?r.push(s(u+t,o)):r.push(n[1])),r},getMinorTicks:function(e){for(var t=this.getTicks(!0),n=[],o=this.getExtent(),r=1;r<t.length;r++){var a=t[r],s=t[r-1],l=0,u=[],c=a-s,d=c/e;while(l<e-1){var h=i.round(s+(l+1)*d);h>o[0]&&h<o[1]&&u.push(h),l++}n.push(u)}return n},getLabel:function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=i.getPrecisionSafe(e)||0:"auto"===n&&(n=this._intervalPrecision),e=s(e,n,!0),o.addCommas(e)},niceTicks:function(e,t,n){e=e||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var r=a.intervalScaleNiceTicks(i,e,t,n);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},niceExtent:function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(t[0]=s(Math.floor(t[0]/o)*o)),e.fixMax||(t[1]=s(Math.ceil(t[1]/o)*o))}});l.create=function(){return new l};var u=l;e.exports=u},76304:function(e,t,n){var i=n(33051),o=n(60379),r=n(85669),a=n(70103),s=o.prototype,l=a.prototype,u=r.getPrecisionSafe,c=r.round,d=Math.floor,h=Math.ceil,f=Math.pow,p=Math.log,g=o.extend({type:"log",base:10,$constructor:function(){o.apply(this,arguments),this._originalScale=new a},getTicks:function(e){var t=this._originalScale,n=this._extent,o=t.getExtent();return i.map(l.getTicks.call(this,e),(function(e){var i=r.round(f(this.base,e));return i=e===n[0]&&t.__fixMin?v(i,o[0]):i,i=e===n[1]&&t.__fixMax?v(i,o[1]):i,i}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(e){return e=s.scale.call(this,e),f(this.base,e)},setExtent:function(e,t){var n=this.base;e=p(e)/p(n),t=p(t)/p(n),l.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=s.getExtent.call(this);t[0]=f(e,t[0]),t[1]=f(e,t[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(t[0]=v(t[0],i[0])),n.__fixMax&&(t[1]=v(t[1],i[1])),t},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=p(e[0])/p(t),e[1]=p(e[1])/p(t),s.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},niceTicks:function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=r.quantity(n),o=e/n*i;o<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var a=[r.round(h(t[0]/i)*i),r.round(d(t[1]/i)*i)];this._interval=i,this._niceExtent=a}},niceExtent:function(e){l.niceExtent.call(this,e);var t=this._originalScale;t.__fixMin=e.fixMin,t.__fixMax=e.fixMax}});function v(e,t){return c(e,u(t))}i.each(["contain","normalize"],(function(e){g.prototype[e]=function(t){return t=p(t)/p(this.base),s[e].call(this,t)}})),g.create=function(){return new g};var m=g;e.exports=m},85043:function(e,t,n){var i=n(33051),o=n(60379),r=n(51401),a=o.prototype,s=o.extend({type:"ordinal",init:function(e,t){e&&!i.isArray(e)||(e=new r({categories:e})),this._ordinalMeta=e,this._extent=t||[0,e.categories.length-1]},parse:function(e){return"string"===typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},contain:function(e){return e=this.parse(e),a.contain.call(this,e)&&null!=this._ordinalMeta.categories[e]},normalize:function(e){return a.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(a.scale.call(this,e))},getTicks:function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push(n),n++;return e},getLabel:function(e){if(!this.isBlank())return this._ordinalMeta.categories[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:i.noop,niceExtent:i.noop});s.create=function(){return new s};var l=s;e.exports=l},60379:function(e,t,n){var i=n(34251);function o(e){this._setting=e||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}o.prototype.parse=function(e){return e},o.prototype.getSetting=function(e){return this._setting[e]},o.prototype.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},o.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},o.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},o.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},o.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},o.prototype.isBlank=function(){return this._isBlank},o.prototype.setBlank=function(e){this._isBlank=e},o.prototype.getLabel=null,i.enableClassExtend(o),i.enableClassManagement(o,{registerWhenExtend:!0});var r=o;e.exports=r},61618:function(e,t,n){var i=n(33051),o=n(85669),r=n(78988),a=n(65021),s=n(70103),l=s.prototype,u=Math.ceil,c=Math.floor,d=1e3,h=60*d,f=60*h,p=24*f,g=function(e,t,n,i){while(n<i){var o=n+i>>>1;e[o][1]<t?n=o+1:i=o}return n},v=s.extend({type:"time",getLabel:function(e){var t=this._stepLvl,n=new Date(e);return r.formatTime(t[0],n,this.getSetting("useUTC"))},niceExtent:function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=p,t[1]+=p),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-p}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=o.round(c(t[0]/i)*i)),e.fixMax||(t[1]=o.round(u(t[1]/i)*i))},niceTicks:function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0],s=r/e;null!=t&&s<t&&(s=t),null!=n&&s>n&&(s=n);var l=m.length,d=g(m,s,0,l),h=m[Math.min(d,l-1)],f=h[1];if("year"===h[0]){var p=r/f,v=o.nice(p/e,!0);f*=v}var y=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,x=[Math.round(u((i[0]-y)/f)*f+y),Math.round(c((i[1]-y)/f)*f+y)];a.fixExtent(x,i),this._stepLvl=h,this._interval=f,this._niceExtent=x},parse:function(e){return+o.parseDate(e)}});i.each(["contain","normalize"],(function(e){v.prototype[e]=function(t){return l[e].call(this,this.parse(t))}}));var m=[["hh:mm:ss",d],["hh:mm:ss",5*d],["hh:mm:ss",10*d],["hh:mm:ss",15*d],["hh:mm:ss",30*d],["hh:mm\nMM-dd",h],["hh:mm\nMM-dd",5*h],["hh:mm\nMM-dd",10*h],["hh:mm\nMM-dd",15*h],["hh:mm\nMM-dd",30*h],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",2*f],["hh:mm\nMM-dd",6*f],["hh:mm\nMM-dd",12*f],["MM-dd\nyyyy",p],["MM-dd\nyyyy",2*p],["MM-dd\nyyyy",3*p],["MM-dd\nyyyy",4*p],["MM-dd\nyyyy",5*p],["MM-dd\nyyyy",6*p],["week",7*p],["MM-dd\nyyyy",10*p],["week",14*p],["week",21*p],["month",31*p],["week",42*p],["month",62*p],["week",70*p],["quarter",95*p],["month",31*p*4],["month",31*p*5],["half-year",380*p/2],["month",31*p*8],["month",31*p*10],["year",380*p]];v.create=function(e){return new v({useUTC:e.ecModel.get("useUTC")})};var y=v;e.exports=y},65021:function(e,t,n){var i=n(85669),o=i.round;function r(e,t,n,r){var s={},u=e[1]-e[0],c=s.interval=i.nice(u/t,!0);null!=n&&c<n&&(c=s.interval=n),null!=r&&c>r&&(c=s.interval=r);var d=s.intervalPrecision=a(c),h=s.niceTickExtent=[o(Math.ceil(e[0]/c)*c,d),o(Math.floor(e[1]/c)*c,d)];return l(h,e),s}function a(e){return i.getPrecisionSafe(e)+2}function s(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function l(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),s(e,0,t),s(e,1,t),e[0]>e[1]&&(e[0]=e[1])}t.intervalScaleNiceTicks=r,t.getIntervalPrecision=a,t.fixExtent=l},15532:function(e,t,n){var i=n(33051),o=i.each,r=i.map,a=i.isFunction,s=i.createHashMap,l=i.noop,u=n(29449),c=u.createTask,d=n(42151),h=d.getUID,f=n(17260),p=n(59935),g=n(32234),v=g.normalizeToArray;function m(e,t,n,i){this.ecInstance=e,this.api=t,this.unfinished;n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=s()}var y=m.prototype;function x(e,t,n,i,r){var a;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}r=r||{},o(t,(function(t,o){if(!r.visualType||r.visualType===t.visualType){var l=e._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each((function(e){s(r,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),_(c,i);var f=e.getPerformArgs(c,r.block);h.each((function(e){e.perform(f)})),a|=c.perform(f)}else u&&u.each((function(o,l){s(r,o)&&o.dirty();var u=e.getPerformArgs(o,r.block);u.skip=!t.performRawSeries&&n.isSeriesFiltered(o.context.model),_(o,i),a|=o.perform(u)}))}})),e.unfinished|=a}y.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},y.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,o=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,r=o?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/r):null;return{step:r,modBy:s,modDataCount:a}}},y.getPipeline=function(e){return this._pipelineMap.get(e)},y.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),o=i.count(),r=n.progressiveEnabled&&t.incrementalPrepareRender&&o>=n.threshold,a=e.get("large")&&o>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?o:null;e.pipelineContext=n.context={progressiveRender:r,modDataCount:s,large:a}},y.restorePipelines=function(e){var t=this,n=t._pipelineMap=s();e.eachSeries((function(e){var i=e.getProgressive(),o=e.uid;n.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),N(t,e,e.dataTask)}))},y.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),n=this.api;o(this._allHandlers,(function(i){var o=e.get(i.uid)||e.set(i.uid,[]);i.reset&&b(this,i,o,t,n),i.overallReset&&w(this,i,o,t,n)}),this)},y.prepareView=function(e,t,n,i){var o=e.renderTask,r=o.context;r.model=t,r.ecModel=n,r.api=i,o.__block=!e.incrementalPrepareRender,N(this,t,o)},y.performDataProcessorTasks=function(e,t){x(this,this._dataProcessorHandlers,e,t,{block:!0})},y.performVisualTasks=function(e,t,n){x(this,this._visualHandlers,e,t,n)},y.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t|=e.dataTask.perform()})),this.unfinished|=t},y.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))};var _=y.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)};function b(e,t,n,i,o){var r=n.seriesTaskMap||(n.seriesTaskMap=s()),a=t.seriesType,l=t.getTargetSeries;function u(n){var a=n.uid,s=r.get(a)||r.set(a,c({plan:k,reset:P,count:T}));s.context={model:n,ecModel:i,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},N(e,n,s)}t.createOnAllSeries?i.eachRawSeries(u):a?i.eachRawSeriesByType(a,u):l&&l(i,o).each(u);var d=e._pipelineMap;r.each((function(e,t){d.get(t)||(e.dispose(),r.removeKey(t))}))}function w(e,t,n,i,r){var a=n.overallTask=n.overallTask||c({reset:S});a.context={ecModel:i,api:r,overallReset:t.overallReset,scheduler:e};var l=a.agentStubMap=a.agentStubMap||s(),u=t.seriesType,d=t.getTargetSeries,h=!0,f=t.modifyOutputEnd;function p(t){var n=t.uid,i=l.get(n);i||(i=l.set(n,c({reset:M,onDirty:A})),a.dirty()),i.context={model:t,overallProgress:h,modifyOutputEnd:f},i.agent=a,i.__block=h,N(e,t,i)}u?i.eachRawSeriesByType(u,p):d?d(i,r).each(p):(h=!1,o(i.getSeries(),p));var g=e._pipelineMap;l.each((function(e,t){g.get(t)||(e.dispose(),a.dirty(),l.removeKey(t))}))}function S(e){e.overallReset(e.ecModel,e.api,e.payload)}function M(e,t){return e.overallProgress&&I}function I(){this.agent.dirty(),this.getDownstream().dirty()}function A(){this.agent&&this.agent.dirty()}function k(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function P(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=v(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?r(t,(function(e,t){return E(t)})):C}var C=E(0);function E(e){return function(t,n){var i=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var r=t.start;r<t.end;r++)o.dataEach(i,r);else o&&o.progress&&o.progress(t,i)}}function T(e){return e.data.count()}function N(e,t,n){var i=t.uid,o=e._pipelineMap.get(i);!o.head&&(o.head=n),o.tail&&o.tail.pipe(n),o.tail=n,n.__idxInPipeline=o.count++,n.__pipeline=o}function D(e){O=null;try{e(L,V)}catch(t){}return O}m.wrapStageHandler=function(e,t){return a(e)&&(e={overallReset:e,seriesType:D(e)}),e.uid=h("stageHandler"),t&&(e.visualType=t),e};var O,L={},V={};function R(e,t){for(var n in t.prototype)e[n]=l}R(L,f),R(V,p),L.eachSeriesByType=L.eachRawSeriesByType=function(e){O=e},L.eachComponent=function(e){"series"===e.mainType&&e.subType&&(O=e.subType)};var B=m;e.exports=B},29449:function(e,t,n){var i=n(33051),o=(i.assert,i.isArray),r=n(38175);r.__DEV__;function a(e){return new s(e)}function s(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0,this.context}var l=s.prototype;l.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var a,s=f(this._modBy),l=this._modDataCount||0,u=f(e&&e.modBy),h=e&&e.modDataCount||0;function f(e){return!(e>=1)&&(e=1),e}s===u&&l===h||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=d(this,i)),this._modBy=u,this._modDataCount=h;var p=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,v=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(a||g<v)){var m=this._progress;if(o(m))for(var y=0;y<m.length;y++)c(this,m[y],g,v,u,h);else c(this,m,g,v,u,h)}this._dueIndex=v;var x=null!=this._settedOutputEnd?this._settedOutputEnd:v;this._outputDueEnd=x}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var u=function(){var e,t,n,i,o,r={reset:function(l,u,c,d){t=l,e=u,n=c,i=d,o=Math.ceil(i/n),r.next=n>1&&i>0?s:a}};return r;function a(){return t<e?t++:null}function s(){var r=t%o*n+Math.ceil(t/o),a=t>=e?null:r<i?r:t;return t++,a}}();function c(e,t,n,i,o,r){u.reset(n,i,o,r),e._callingProgress=t,e._callingProgress({start:n,end:i,count:i-n,next:u.next},e.context)}function d(e,t){var n,i;e._dueIndex=e._outputDueEnd=e._dueEnd=0,e._settedOutputEnd=null,!t&&e._reset&&(n=e._reset(e.context),n&&n.progress&&(i=n.forceFirstProgress,n=n.progress),o(n)&&!n.length&&(n=null)),e._progress=n,e._modBy=e._modDataCount=null;var r=e._downstream;return r&&r.dirty(),i}l.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},l.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},l.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},l.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},l.getUpstream=function(){return this._upstream},l.getDownstream=function(){return this._downstream},l.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t.createTask=a},73450:function(e){var t="#eee",n=function(){return{axisLine:{lineStyle:{color:t}},axisTick:{lineStyle:{color:t}},axisLabel:{textStyle:{color:t}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:t}}}},i=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],o={color:i,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:t},crossStyle:{color:t},label:{color:"#000"}}},legend:{textStyle:{color:t}},textStyle:{color:t},title:{textStyle:{color:t}},toolbox:{iconStyle:{normal:{borderColor:t}}},dataZoom:{textStyle:{color:t}},visualMap:{textStyle:{color:t}},timeline:{lineStyle:{color:t},itemStyle:{normal:{color:i[1]}},label:{normal:{textStyle:{color:t}}},controlStyle:{normal:{color:t,borderColor:t}}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:i},gauge:{title:{textStyle:{color:t}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};o.categoryAxis.splitLine.show=!1;var r=o;e.exports=r},29594:function(e){var t=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n={color:t,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],t]};e.exports=n},34584:function(e,t,n){var i=n(33051);function o(){var e,t=[],n={};return{add:function(e,o,r,a,s){return i.isString(a)&&(s=a,a=0),!n[e.id]&&(n[e.id]=1,t.push({el:e,target:o,time:r,delay:a,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var i=t.length,o=0,r=t.length;o<r;o++){var a=t[o];a.el.animateTo(a.target,a.time,a.delay,a.easing,s)}return this;function s(){i--,i||(t.length=0,n={},e&&e())}}}}t.createWrap=o},34251:function(e,t,n){var i=n(38175),o=(i.__DEV__,n(33051)),r=".",a="___EC__COMPONENT__CONTAINER___";function s(e){var t={main:"",sub:""};return e&&(e=e.split(r),t.main=e[0]||"",t.sub=e[1]||""),t}function l(e){o.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function u(e,t){e.$constructor=e,e.extend=function(e){var t=this,n=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return o.extend(n.prototype,e),n.extend=this.extend,n.superCall=h,n.superApply=f,o.inherits(n,this),n.superClass=t,n}}var c=0;function d(e){var t=["__\0is_clz",c++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function h(e,t){var n=o.slice(arguments,2);return this.superClass.prototype[t].apply(e,n)}function f(e,t,n){return this.superClass.prototype[t].apply(e,n)}function p(e,t){t=t||{};var n={};function i(e){var t=n[e.main];return t&&t[a]||(t=n[e.main]={},t[a]=!0),t}if(e.registerClass=function(e,t){if(t)if(l(t),t=s(t),t.sub){if(t.sub!==a){var o=i(t);o[t.sub]=e}}else n[t.main]=e;return e},e.getClass=function(e,t,i){var o=n[e];if(o&&o[a]&&(o=t?o[t]:null),i&&!o)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return o},e.getClassesByMainType=function(e){e=s(e);var t=[],i=n[e.main];return i&&i[a]?o.each(i,(function(e,n){n!==a&&t.push(e)})):t.push(i),t},e.hasClass=function(e){return e=s(e),!!n[e.main]},e.getAllClassMainTypes=function(){var e=[];return o.each(n,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){e=s(e);var t=n[e.main];return t&&t[a]},e.parseClassType=s,t.registerWhenExtend){var r=e.extend;r&&(e.extend=function(t){var n=r.call(this,t);return e.registerClass(n,t.type)})}return e}function g(e,t){}t.parseClassType=s,t.enableClassExtend=u,t.enableClassCheck=d,t.enableClassManagement=p,t.setReadOnly=g},42151:function(e,t,n){var i=n(33051),o=n(34251),r=o.parseClassType,a=0;function s(e){return[e||"",a++,Math.random().toFixed(5)].join("_")}function l(e){var t={};return e.registerSubTypeDefaulter=function(e,n){e=r(e),t[e.main]=n},e.determineSubType=function(n,i){var o=i.type;if(!o){var a=r(n).main;e.hasSubTypes(n)&&t[a]&&(o=t[a](i))}return o},e}function u(e,t){function n(e){var n={},a=[];return i.each(e,(function(s){var l=o(n,s),u=l.originalDeps=t(s),c=r(u,e);l.entryCount=c.length,0===l.entryCount&&a.push(s),i.each(c,(function(e){i.indexOf(l.predecessor,e)<0&&l.predecessor.push(e);var t=o(n,e);i.indexOf(t.successor,e)<0&&t.successor.push(s)}))})),{graph:n,noEntryList:a}}function o(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function r(e,t){var n=[];return i.each(e,(function(e){i.indexOf(t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,o,r){if(e.length){var a=n(t),s=a.graph,l=a.noEntryList,u={};i.each(e,(function(e){u[e]=!0}));while(l.length){var c=l.pop(),d=s[c],h=!!u[c];h&&(o.call(r,c,d.originalDeps.slice()),delete u[c]),i.each(d.successor,h?p:f)}i.each(u,(function(){throw new Error("Circle dependency may exists")}))}function f(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function p(e){u[e]=!0,f(e)}}}t.getUID=s,t.enableSubTypeDefaulter=l,t.enableTopologicalTravel=u},78988:function(e,t,n){var i=n(33051),o=n(80423),r=n(85669);function a(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))}function s(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var l=i.normalizeCssArray,u=/([&<>"'])/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function d(e){return null==e?"":(e+"").replace(u,(function(e,t){return c[t]}))}var h=["a","b","c","d","e","f","g"],f=function(e,t){return"{"+e+(null==t?"":t)+"}"};function p(e,t,n){i.isArray(t)||(t=[t]);var o=t.length;if(!o)return"";for(var r=t[0].$vars||[],a=0;a<r.length;a++){var s=h[a];e=e.replace(f(s),f(s,0))}for(var l=0;l<o;l++)for(var u=0;u<r.length;u++){var c=t[l][r[u]];e=e.replace(f(h[u],l),n?d(c):c)}return e}function g(e,t,n){return i.each(t,(function(t,i){e=e.replace("{"+i+"}",n?d(t):t)})),e}function v(e,t){e=i.isString(e)?{color:e,extraCssText:t}:e||{};var n=e.color,o=e.type,r=(t=e.extraCssText,e.renderMode||"html"),a=e.markerId||"X";return n?"html"===r?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+d(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+d(n)+";"+(t||"")+'"></span>':{renderMode:r,content:"{marker"+a+"|} ",style:{color:n}}:""}function m(e,t){return e+="","0000".substr(0,t-e.length)+e}function y(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=r.parseDate(t),o=n?"UTC":"",a=i["get"+o+"FullYear"](),s=i["get"+o+"Month"]()+1,l=i["get"+o+"Date"](),u=i["get"+o+"Hours"](),c=i["get"+o+"Minutes"](),d=i["get"+o+"Seconds"](),h=i["get"+o+"Milliseconds"]();return e=e.replace("MM",m(s,2)).replace("M",s).replace("yyyy",a).replace("yy",a%100).replace("dd",m(l,2)).replace("d",l).replace("hh",m(u,2)).replace("h",u).replace("mm",m(c,2)).replace("m",c).replace("ss",m(d,2)).replace("s",d).replace("SSS",m(h,3)),e}function x(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}var _=o.truncateText;function b(e){return o.getBoundingRect(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)}function w(e,t,n,i,r,a,s,l){return o.getBoundingRect(e,t,n,i,r,l,a,s)}function S(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location=e}else window.open(e,t)}t.addCommas=a,t.toCamelCase=s,t.normalizeCssArray=l,t.encodeHTML=d,t.formatTpl=p,t.formatTplSimple=g,t.getTooltipMarker=v,t.formatTime=y,t.capitalFirst=x,t.truncateText=_,t.getTextBoundingRect=b,t.getTextRect=w,t.windowOpen=S},51177:function(e,t,n){var i=n(33051),o=n(75991),r=n(21092),a=n(32892),s=n(45280),l=n(10712),u=n(58023),c=n(44535);t.Image=c;var d=n(8524);t.Group=d;var h=n(96498);t.Text=h;var f=n(69538);t.Circle=f;var p=n(74520);t.Sector=p;var g=n(85795);t.Ring=g;var v=n(95094);t.Polygon=v;var m=n(62514);t.Polyline=m;var y=n(27304);t.Rect=y;var x=n(22095);t.Line=x;var _=n(54174);t.BezierCurve=_;var b=n(14826);t.Arc=b;var w=n(52776);t.CompoundPath=w;var S=n(74438);t.LinearGradient=S;var M=n(36369);t.RadialGradient=M;var I=n(60479);t.BoundingRect=I;var A=n(91754);t.IncrementalDisplayable=A;var k=n(24111),P=Math.max,C=Math.min,E={},T=1,N={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},D="emphasis",O="normal",L=1,V={},R={};function B(e){return l.extend(e)}function z(e,t){return o.extendFromString(e,t)}function W(e,t){R[e]=t}function F(e){if(R.hasOwnProperty(e))return R[e]}function U(e,t,n,i){var r=o.createFromString(e,t);return n&&("center"===i&&(n=H(n,r.getBoundingRect())),G(r,n)),r}function $(e,t,n){var i=new c({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var o={width:e.width,height:e.height};i.setStyle(H(t,o))}}});return i}function H(e,t){var n,i=t.width/t.height,o=e.height*i;o<=e.width?n=e.height:(o=e.width,n=o/i);var r=e.x+e.width/2,a=e.y+e.height/2;return{x:r-o/2,y:a-n/2,width:o,height:n}}var j=o.mergePath;function G(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function Y(e){return k.subPixelOptimizeLine(e.shape,e.shape,e.style),e}function Z(e){return k.subPixelOptimizeRect(e.shape,e.shape,e.style),e}var q=k.subPixelOptimize;function X(e){return null!=e&&"none"!==e}var J=i.createHashMap(),K=0;function Q(e){if("string"!==typeof e)return e;var t=J.get(e);return t||(t=r.lift(e,-.1),K<1e4&&(J.set(e,t),K++)),t}function ee(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(t){var n=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var i=e.style;for(var o in t)null!=t[o]&&(n[o]=i[o]);n.fill=i.fill,n.stroke=i.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}function te(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var n=e.__zr,i=e.useHoverLayer&&n&&"canvas"===n.painter.type;if(e.__highlighted=i?"layer":"plain",!(e.isGroup||!n&&e.useHoverLayer)){var o=e,r=e.style;i&&(o=n.addHover(e),r=o.style),Me(r),i||ee(o),r.extendFrom(t),ne(r,t,"fill"),ne(r,t,"stroke"),Se(r),i||(e.dirty(!1),e.z2+=T)}}}function ne(e,t,n){!X(t[n])&&X(e[n])&&(e[n]=Q(e[n]))}function ie(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var n=e.style,i=e.__cachedNormalStl;i&&(Me(n),e.setStyle(i),Se(n));var o=e.__cachedNormalZ2;null!=o&&e.z2-o===T&&(e.z2=o)}}function oe(e,t,n){var i,o=O,r=O;e.__highlighted&&(o=D,i=!0),t(e,n),e.__highlighted&&(r=D,i=!0),e.isGroup&&e.traverse((function(e){!e.isGroup&&t(e,n)})),i&&e.__highDownOnUpdate&&e.__highDownOnUpdate(o,r)}function re(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,ie(e),te(e))}function ae(e){!ce(this,e)&&!this.__highByOuter&&oe(this,te)}function se(e){!ce(this,e)&&!this.__highByOuter&&oe(this,ie)}function le(e){this.__highByOuter|=1<<(e||0),oe(this,te)}function ue(e){!(this.__highByOuter&=~(1<<(e||0)))&&oe(this,ie)}function ce(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function de(e,t){he(e,!0),oe(e,re,t)}function he(e,t){var n=!1===t;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!n||e.__highDownDispatcher){var i=n?"off":"on";e[i]("mouseover",ae)[i]("mouseout",se),e[i]("emphasis",le)[i]("normal",ue),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!n}}function fe(e){return!(!e||!e.__highDownDispatcher)}function pe(e){var t=V[e];return null==t&&L<=32&&(t=V[e]=L++),t}function ge(e,t,n,o,r,a,s){r=r||E;var l,u=r.labelFetcher,c=r.labelDataIndex,d=r.labelDimIndex,h=r.labelProp,f=n.getShallow("show"),p=o.getShallow("show");(f||p)&&(u&&(l=u.getFormattedLabel(c,"normal",null,d,h)),null==l&&(l=i.isFunction(r.defaultText)?r.defaultText(c,r):r.defaultText));var g=f?l:null,v=p?i.retrieve2(u?u.getFormattedLabel(c,"emphasis",null,d,h):null,l):null;null==g&&null==v||(me(e,n,a,r),me(t,o,s,r,!0)),e.text=g,t.text=v}function ve(e,t,n){var o=e.style;t&&(Me(o),e.setStyle(t),Se(o)),o=e.__hoverStl,n&&o&&(Me(o),i.extend(o,n),Se(o))}function me(e,t,n,o,r){return xe(e,t,o,r),n&&i.extend(e,n),e}function ye(e,t,n){var i,o={isRectText:!0};!1===n?i=!0:o.autoColor=n,xe(e,t,o,i)}function xe(e,t,n,o){if(n=n||E,n.isRectText){var r;n.getTextPosition?r=n.getTextPosition(t,o):(r=t.getShallow("position")||(o?null:"inside"),"outside"===r&&(r="top")),e.textPosition=r,e.textOffset=t.getShallow("offset");var a=t.getShallow("rotate");null!=a&&(a*=Math.PI/180),e.textRotation=a,e.textDistance=i.retrieve2(t.getShallow("distance"),o?null:5)}var s,l=t.ecModel,u=l&&l.option.textStyle,c=_e(t);if(c)for(var d in s={},c)if(c.hasOwnProperty(d)){var h=t.getModel(["rich",d]);be(s[d]={},h,u,n,o)}return e.rich=s,be(e,t,u,n,o,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),e}function _e(e){var t;while(e&&e!==e.ecModel){var n=(e.option||E).rich;if(n)for(var i in t=t||{},n)n.hasOwnProperty(i)&&(t[i]=1);e=e.parentModel}return t}function be(e,t,n,o,r,a){n=!r&&n||E,e.textFill=we(t.getShallow("color"),o)||n.color,e.textStroke=we(t.getShallow("textBorderColor"),o)||n.textBorderColor,e.textStrokeWidth=i.retrieve2(t.getShallow("textBorderWidth"),n.textBorderWidth),r||(a&&(e.insideRollbackOpt=o,Se(e)),null==e.textFill&&(e.textFill=o.autoColor)),e.fontStyle=t.getShallow("fontStyle")||n.fontStyle,e.fontWeight=t.getShallow("fontWeight")||n.fontWeight,e.fontSize=t.getShallow("fontSize")||n.fontSize,e.fontFamily=t.getShallow("fontFamily")||n.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),a&&o.disableBox||(e.textBackgroundColor=we(t.getShallow("backgroundColor"),o),e.textPadding=t.getShallow("padding"),e.textBorderColor=we(t.getShallow("borderColor"),o),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||n.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||n.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||n.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function we(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function Se(e){var t,n=e.textPosition,i=e.insideRollbackOpt;if(i&&null==e.textFill){var o=i.autoColor,r=i.isRectText,a=i.useInsideStyle,s=!1!==a&&(!0===a||r&&n&&"string"===typeof n&&n.indexOf("inside")>=0),l=!s&&null!=o;(s||l)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),s&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=o,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),l&&(e.textFill=o)}e.insideRollback=t}function Me(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function Ie(e,t){var n=t&&t.getModel("textStyle");return i.trim([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function Ae(e,t,n,i,o,r){"function"===typeof o&&(r=o,o=null);var a=i&&i.isAnimationEnabled();if(a){var s=e?"Update":"",l=i.getShallow("animationDuration"+s),u=i.getShallow("animationEasing"+s),c=i.getShallow("animationDelay"+s);"function"===typeof c&&(c=c(o,i.getAnimationDelayParams?i.getAnimationDelayParams(t,o):null)),"function"===typeof l&&(l=l(o)),l>0?t.animateTo(n,l,c||0,u,r,!!r):(t.stopAnimation(),t.attr(n),r&&r())}else t.stopAnimation(),t.attr(n),r&&r()}function ke(e,t,n,i,o){Ae(!0,e,t,n,i,o)}function Pe(e,t,n,i,o){Ae(!1,e,t,n,i,o)}function Ce(e,t){var n=a.identity([]);while(e&&e!==t)a.mul(n,e.getLocalTransform(),n),e=e.parent;return n}function Ee(e,t,n){return t&&!i.isArrayLike(t)&&(t=u.getLocalTransform(t)),n&&(t=a.invert([],t)),s.applyTransform([],e,t)}function Te(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),o=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),r=["left"===e?-i:"right"===e?i:0,"top"===e?-o:"bottom"===e?o:0];return r=Ee(r,t,n),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function Ne(e,t,n,o){if(e&&t){var r=a(e);t.traverse((function(e){if(!e.isGroup&&e.anid){var t=r[e.anid];if(t){var i=l(e);e.attr(l(t)),ke(e,i,n,e.dataIndex)}}}))}function a(e){var t={};return e.traverse((function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)})),t}function l(e){var t={position:s.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=i.extend({},e.shape)),t}}function De(e,t){return i.map(e,(function(e){var n=e[0];n=P(n,t.x),n=C(n,t.x+t.width);var i=e[1];return i=P(i,t.y),i=C(i,t.y+t.height),[n,i]}))}function Oe(e,t){var n=P(e.x,t.x),i=C(e.x+e.width,t.x+t.width),o=P(e.y,t.y),r=C(e.y+e.height,t.y+t.height);if(i>=n&&r>=o)return{x:n,y:o,width:i-n,height:r-o}}function Le(e,t,n){t=i.extend({rectHover:!0},t);var o=t.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(o.image=e.slice(8),i.defaults(o,n),new c(t)):U(e.replace("path://",""),t,n,"center")}function Ve(e,t,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(Re(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Re(e,t,n,i,o,r,a,s){var l=n-e,u=i-t,c=a-o,d=s-r,h=Be(c,d,l,u);if(ze(h))return!1;var f=e-o,p=t-r,g=Be(f,p,l,u)/h;if(g<0||g>1)return!1;var v=Be(f,p,c,d)/h;return!(v<0||v>1)}function Be(e,t,n,i){return e*i-n*t}function ze(e){return e<=1e-6&&e>=-1e-6}W("circle",f),W("sector",p),W("ring",g),W("polygon",v),W("polyline",m),W("rect",y),W("line",x),W("bezierCurve",_),W("arc",b),t.Z2_EMPHASIS_LIFT=T,t.CACHED_LABEL_STYLE_PROPERTIES=N,t.extendShape=B,t.extendPath=z,t.registerShape=W,t.getShapeClass=F,t.makePath=U,t.makeImage=$,t.mergePath=j,t.resizePath=G,t.subPixelOptimizeLine=Y,t.subPixelOptimizeRect=Z,t.subPixelOptimize=q,t.setElementHoverStyle=re,t.setHoverStyle=de,t.setAsHighDownDispatcher=he,t.isHighDownDispatcher=fe,t.getHighlightDigit=pe,t.setLabelStyle=ge,t.modifyLabelStyle=ve,t.setTextStyle=me,t.setText=ye,t.getFont=Ie,t.updateProps=ke,t.initProps=Pe,t.getTransform=Ce,t.applyTransform=Ee,t.transformDirection=Te,t.groupTransition=Ne,t.clipPointsByRect=De,t.clipRectByRect=Oe,t.createIcon=Le,t.linePolygonIntersect=Ve,t.lineLineIntersect=Re},76172:function(e,t,n){var i=n(33051),o=n(60479),r=n(85669),a=r.parsePercent,s=n(78988),l=i.each,u=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function d(e,t,n,i,o){var r=0,a=0;null==i&&(i=1/0),null==o&&(o=1/0);var s=0;t.eachChild((function(l,u){var c,d,h=l.position,f=l.getBoundingRect(),p=t.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===e){var v=f.width+(g?-g.x+f.x:0);c=r+v,c>i||l.newline?(r=0,c=v,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(g?-g.y+f.y:0);d=a+m,d>o||l.newline?(r+=s+n,a=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(h[0]=r,h[1]=a,"horizontal"===e?r=c+n:a=d+n)}))}var h=d,f=i.curry(d,"vertical"),p=i.curry(d,"horizontal");function g(e,t,n){var i=t.width,o=t.height,r=a(e.x,i),l=a(e.y,o),u=a(e.x2,i),c=a(e.y2,o);return(isNaN(r)||isNaN(parseFloat(e.x)))&&(r=0),(isNaN(u)||isNaN(parseFloat(e.x2)))&&(u=i),(isNaN(l)||isNaN(parseFloat(e.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(e.y2)))&&(c=o),n=s.normalizeCssArray(n||0),{width:Math.max(u-r-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function v(e,t,n){n=s.normalizeCssArray(n||0);var i=t.width,r=t.height,l=a(e.left,i),u=a(e.top,r),c=a(e.right,i),d=a(e.bottom,r),h=a(e.width,i),f=a(e.height,r),p=n[2]+n[0],g=n[1]+n[3],v=e.aspect;switch(isNaN(h)&&(h=i-c-g-l),isNaN(f)&&(f=r-d-p-u),null!=v&&(isNaN(h)&&isNaN(f)&&(v>i/r?h=.8*i:f=.8*r),isNaN(h)&&(h=v*f),isNaN(f)&&(f=h/v)),isNaN(l)&&(l=i-c-h-g),isNaN(u)&&(u=r-d-f-p),e.left||e.right){case"center":l=i/2-h/2-n[3];break;case"right":l=i-h-g;break}switch(e.top||e.bottom){case"middle":case"center":u=r/2-f/2-n[0];break;case"bottom":u=r-f-p;break}l=l||0,u=u||0,isNaN(h)&&(h=i-g-l-(c||0)),isNaN(f)&&(f=r-p-u-(d||0));var m=new o(l+n[3],u+n[0],h,f);return m.margin=n,m}function m(e,t,n,r,a){var s=!a||!a.hv||a.hv[0],l=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===e.type?new o(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(c=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();c=c.clone(),c.applyTransform(d)}t=v(i.defaults({width:c.width,height:c.height},t),n,r);var h=e.position,f=s?t.x-c.x:0,p=l?t.y-c.y:0;e.attr("position","raw"===u?[f,p]:[h[0]+f,h[1]+p])}}function y(e,t){return null!=e[c[t][0]]||null!=e[c[t][1]]&&null!=e[c[t][2]]}function x(e,t,n){!i.isObject(n)&&(n={});var o=n.ignoreSize;!i.isArray(o)&&(o=[o,o]);var r=s(c[0],0),a=s(c[1],1);function s(n,i){var r={},a=0,s={},c=0,h=2;if(l(n,(function(t){s[t]=e[t]})),l(n,(function(e){u(t,e)&&(r[e]=s[e]=t[e]),d(r,e)&&a++,d(s,e)&&c++})),o[i])return d(t,n[1])?s[n[2]]=null:d(t,n[2])&&(s[n[1]]=null),s;if(c!==h&&a){if(a>=h)return r;for(var f=0;f<n.length;f++){var p=n[f];if(!u(r,p)&&u(e,p)){r[p]=e[p];break}}return r}return s}function u(e,t){return e.hasOwnProperty(t)}function d(e,t){return null!=e[t]&&"auto"!==e[t]}function h(e,t,n){l(e,(function(e){t[e]=n[e]}))}h(c[0],e,r),h(c[1],e,a)}function _(e){return b({},e)}function b(e,t){return t&&e&&l(u,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}t.LOCATION_PARAMS=u,t.HV_NAMES=c,t.box=h,t.vbox=f,t.hbox=p,t.getAvailableSize=g,t.getLayoutRect=v,t.positionElement=m,t.sizeCalculable=y,t.mergeLayoutParam=x,t.getLayoutParams=_,t.copyLayoutParams=b},32234:function(e,t,n){var i=n(33051),o=n(66387),r=i.each,a=i.isObject,s=i.isArray,l="series\0";function u(e){return e instanceof Array?e:null==e?[]:[e]}function c(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!e.emphasis[t].hasOwnProperty(r)&&e[t].hasOwnProperty(r)&&(e.emphasis[t][r]=e[t][r])}}}var d=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function h(e){return!a(e)||s(e)||e instanceof Date?e:e.value}function f(e){return a(e)&&!(e instanceof Array)}function p(e,t){t=(t||[]).slice();var n=i.map(e||[],(function(e,t){return{exist:e}}));return r(t,(function(e,i){if(a(e)){for(var o=0;o<n.length;o++)if(!n[o].option&&null!=e.id&&n[o].exist.id===e.id+"")return n[o].option=e,void(t[i]=null);for(o=0;o<n.length;o++){var r=n[o].exist;if(!n[o].option&&(null==r.id||null==e.id)&&null!=e.name&&!m(e)&&!m(r)&&r.name===e.name+"")return n[o].option=e,void(t[i]=null)}}})),r(t,(function(e,t){if(a(e)){for(var i=0;i<n.length;i++){var o=n[i].exist;if(!n[i].option&&!m(o)&&null==e.id){n[i].option=e;break}}i>=n.length&&n.push({option:e})}})),n}function g(e){var t=i.createHashMap();r(e,(function(e,n){var i=e.exist;i&&t.set(i.id,e)})),r(e,(function(e,n){var o=e.option;i.assert(!o||null==o.id||!t.get(o.id)||t.get(o.id)===e,"id duplicates: "+(o&&o.id)),o&&null!=o.id&&t.set(o.id,e),!e.keyInfo&&(e.keyInfo={})})),r(e,(function(e,n){var i=e.exist,o=e.option,r=e.keyInfo;if(a(o)){if(r.name=null!=o.name?o.name+"":i?i.name:l+n,i)r.id=i.id;else if(null!=o.id)r.id=o.id+"";else{var s=0;do{r.id="\0"+r.name+"\0"+s++}while(t.get(r.id))}t.set(r.id,e)}}))}function v(e){var t=e.name;return!(!t||!t.indexOf(l))}function m(e){return a(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}function y(e,t){var n={},i={};return o(e||[],n),o(t||[],i,n),[r(n),r(i)];function o(e,t,n){for(var i=0,o=e.length;i<o;i++)for(var r=e[i].seriesId,a=u(e[i].dataIndex),s=n&&n[r],l=0,c=a.length;l<c;l++){var d=a[l];s&&s[d]?s[d]=null:(t[r]||(t[r]={}))[d]=1}}function r(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var o=r(e[i],!0);o.length&&n.push({seriesId:i,dataIndex:o})}return n}}function x(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?i.isArray(t.dataIndex)?i.map(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?i.isArray(t.name)?i.map(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function _(){var e="__\0ec_inner_"+b+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}}var b=0;function w(e,t,n){if(i.isString(t)){var o={};o[t+"Index"]=0,t=o}var a=n&&n.defaultMainType;!a||S(t,a+"Index")||S(t,a+"Id")||S(t,a+"Name")||(t[a+"Index"]=0);var s={};return r(t,(function(o,r){o=t[r];if("dataIndex"!==r&&"dataIndexInside"!==r){var a=r.match(/^(\w+)(Index|Id|Name)$/)||[],l=a[1],u=(a[2]||"").toLowerCase();if(!(!l||!u||null==o||"index"===u&&"none"===o||n&&n.includeMainTypes&&i.indexOf(n.includeMainTypes,l)<0)){var c={mainType:l};"index"===u&&"all"===o||(c[u]=o);var d=e.queryComponents(c);s[l+"Models"]=d,s[l+"Model"]=d[0]}}else s[r]=o})),s}function S(e,t){return e&&e.hasOwnProperty(t)}function M(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function I(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function A(e){return"auto"===e?o.domSupported?"html":"richText":e||"html"}function k(e,t){var n=i.createHashMap(),o=[];return i.each(e,(function(e){var i=t(e);(n.get(i)||(o.push(i),n.set(i,[]))).push(e)})),{keys:o,buckets:n}}t.normalizeToArray=u,t.defaultEmphasis=c,t.TEXT_STYLE_OPTIONS=d,t.getDataItemValue=h,t.isDataItemOption=f,t.mappingToExists=p,t.makeIdAndName=g,t.isNameSpecified=v,t.isIdInner=m,t.compressBatches=y,t.queryDataIndex=x,t.makeInner=_,t.parseFinder=w,t.setAttribute=M,t.getAttribute=I,t.getTooltipRenderMode=A,t.groupData=k},85669:function(e,t,n){var i=n(33051),o=1e-4;function r(e){return e.replace(/^\s+|\s+$/g,"")}function a(e,t,n,i){var o=t[1]-t[0],r=n[1]-n[0];if(0===o)return 0===r?n[0]:(n[0]+n[1])/2;if(i)if(o>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/o*r+n[0]}function s(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return"string"===typeof e?r(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function l(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function u(e){return e.sort((function(e,t){return e-t})),e}function c(e){if(e=+e,isNaN(e))return 0;var t=1,n=0;while(Math.round(e*t)/t!==e)t*=10,n++;return n}function d(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var i=+t.slice(n+1);return i<0?-i:0}var o=t.indexOf(".");return o<0?0:t.length-1-o}function h(e,t){var n=Math.log,i=Math.LN10,o=Math.floor(n(e[1]-e[0])/i),r=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20}function f(e,t,n){if(!e[t])return 0;var o=i.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===o)return 0;var r=Math.pow(10,n),a=i.map(e,(function(e){return(isNaN(e)?0:e)/o*r*100})),s=100*r,l=i.map(a,(function(e){return Math.floor(e)})),u=i.reduce(l,(function(e,t){return e+t}),0),c=i.map(a,(function(e,t){return e-l[t]}));while(u<s){for(var d=Number.NEGATIVE_INFINITY,h=null,f=0,p=c.length;f<p;++f)c[f]>d&&(d=c[f],h=f);++l[h],c[h]=0,++u}return l[t]/r}var p=9007199254740991;function g(e){var t=2*Math.PI;return(e%t+t)%t}function v(e){return e>-o&&e<o}var m=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function y(e){if(e instanceof Date)return e;if("string"===typeof e){var t=m.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))}function x(e){return Math.pow(10,_(e))}function _(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function b(e,t){var n,i=_(e),o=Math.pow(10,i),r=e/o;return n=t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10,e=n*o,i>=-20?+e.toFixed(i<0?-i:0):e}function w(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),o=+e[i-1],r=n-i;return r?o+r*(e[i]-o):o}function S(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var o=e[i].interval,r=e[i].close,a=0;a<2;a++)o[a]<=t&&(o[a]=t,r[a]=a?1:1-n),t=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!==1?e.splice(i,1):i++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function M(e){return e-parseFloat(e)>=0}t.linearMap=a,t.parsePercent=s,t.round=l,t.asc=u,t.getPrecision=c,t.getPrecisionSafe=d,t.getPixelPrecision=h,t.getPercentWithPrecision=f,t.MAX_SAFE_INTEGER=p,t.remRadian=g,t.isRadianAroundZero=v,t.parseDate=y,t.quantity=x,t.quantityExponent=_,t.nice=b,t.quantile=w,t.reformIntervals=S,t.isNumeric=M},39529:function(e,t,n){var i=n(51177),o=i.extendShape,r=o({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(e,t){var n=t.cx,i=t.cy,o=Math.max(t.r0||0,0),r=Math.max(t.r,0),a=.5*(r-o),s=o+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=Math.cos(l),h=Math.sin(l),f=Math.cos(u),p=Math.sin(u),g=c?u-l<2*Math.PI:l-u<2*Math.PI;g&&(e.moveTo(d*o+n,h*o+i),e.arc(d*s+n,h*s+i,a,-Math.PI+l,l,!c)),e.arc(n,i,r,l,u,!c),e.moveTo(f*r+n,p*r+i),e.arc(f*s+n,p*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==o&&(e.arc(n,i,o,u,l,c),e.moveTo(d*o+n,p*o+i)),e.closePath()}});e.exports=r},41525:function(e,t,n){var i=n(33051),o=n(51177),r=n(60479),a=n(80423),s=a.calculateTextPosition,l=o.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,o=t.width/2,r=t.height/2;e.moveTo(n,i-r),e.lineTo(n+o,i+r),e.lineTo(n-o,i+r),e.closePath()}}),u=o.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,o=t.width/2,r=t.height/2;e.moveTo(n,i-r),e.lineTo(n+o,i),e.lineTo(n,i+r),e.lineTo(n-o,i),e.closePath()}}),c=o.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,o=t.width/5*3,r=Math.max(o,t.height),a=o/2,s=a*a/(r-a),l=i-r+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,d=Math.sin(u),h=Math.cos(u),f=.6*a,p=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*f,l+s+h*f,n,i-p,n,i),e.bezierCurveTo(n,i-p,n-c+d*f,l+s+h*f,n-c,l+s),e.closePath()}}),d=o.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,o=t.x,r=t.y,a=i/3*2;e.moveTo(o,r),e.lineTo(o+a,r+n),e.lineTo(o,r+n/4*3),e.lineTo(o-a,r+n),e.lineTo(o,r),e.closePath()}}),h={line:o.Line,rect:o.Rect,roundRect:o.Rect,square:o.Rect,circle:o.Circle,diamond:u,pin:c,arrow:d,triangle:l},f={line:function(e,t,n,i,o){o.x1=e,o.y1=t+i/2,o.x2=e+n,o.y2=t+i/2},rect:function(e,t,n,i,o){o.x=e,o.y=t,o.width=n,o.height=i},roundRect:function(e,t,n,i,o){o.x=e,o.y=t,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(e,t,n,i,o){var r=Math.min(n,i);o.x=e,o.y=t,o.width=r,o.height=r},circle:function(e,t,n,i,o){o.cx=e+n/2,o.cy=t+i/2,o.r=Math.min(n,i)/2},diamond:function(e,t,n,i,o){o.cx=e+n/2,o.cy=t+i/2,o.width=n,o.height=i},pin:function(e,t,n,i,o){o.x=e+n/2,o.y=t+i/2,o.width=n,o.height=i},arrow:function(e,t,n,i,o){o.x=e+n/2,o.y=t+i/2,o.width=n,o.height=i},triangle:function(e,t,n,i,o){o.cx=e+n/2,o.cy=t+i/2,o.width=n,o.height=i}},p={};i.each(h,(function(e,t){p[t]=new e}));var g=o.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=s(e,t,n),o=this.shape;return o&&"pin"===o.symbolType&&"inside"===t.textPosition&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var o=p[i];o||(i="rect",o=p[i]),f[i](t.x,t.y,t.width,t.height,o.shape),o.buildPath(e,o.shape,n)}}});function v(e,t){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=e:this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff"):(n.fill&&(n.fill=e),n.stroke&&(n.stroke=e)),this.dirty(!1)}}function m(e,t,n,i,a,s,l){var u,c=0===e.indexOf("empty");return c&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),u=0===e.indexOf("image://")?o.makeImage(e.slice(8),new r(t,n,i,a),l?"center":"cover"):0===e.indexOf("path://")?o.makePath(e.slice(7),{},new r(t,n,i,a),l?"center":"cover"):new g({shape:{symbolType:e,x:t,y:n,width:i,height:a}}),u.__isEmptyBrush=c,u.setColor=v,u.setColor(s),u}t.createSymbol=m},270:function(e,t){var n="\0__throttleOriginMethod",i="\0__throttleRate",o="\0__throttleType";function r(e,t,n){var i,o,r,a,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(r,a||[])}t=t||0;var h=function(){i=(new Date).getTime(),r=this,a=arguments;var e=s||t,h=s||n;s=null,o=i-(h?l:u)-e,clearTimeout(c),h?c=setTimeout(d,e):o>=0?d():c=setTimeout(d,-o),l=i};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function a(e,t,a,s){var l=e[t];if(l){var u=l[n]||l,c=l[o],d=l[i];if(d!==a||c!==s){if(null==a||!s)return e[t]=u;l=e[t]=r(u,a,"debounce"===s),l[n]=u,l[o]=s,l[i]=a}return l}}function s(e,t){var i=e[t];i&&i[n]&&(e[t]=i[n])}t.throttle=r,t.createOrUpdate=a,t.clear=s},75797:function(e,t,n){var i=n(33051),o=i.each,r=n(8524),a=n(42151),s=n(34251),l=n(32234),u=n(51177),c=n(29449),d=c.createTask,h=n(95682),f=l.makeInner(),p=h();function g(){this.group=new r,this.uid=a.getUID("viewChart"),this.renderTask=d({plan:x,reset:_}),this.renderTask.context={view:this}}g.prototype={type:"chart",init:function(e,t){},render:function(e,t,n,i){},highlight:function(e,t,n,i){y(e.getData(),i,"emphasis")},downplay:function(e,t,n,i){y(e.getData(),i,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var v=g.prototype;function m(e,t,n){if(e&&(e.trigger(t,n),e.isGroup&&!u.isHighDownDispatcher(e)))for(var i=0,o=e.childCount();i<o;i++)m(e.childAt(i),t,n)}function y(e,t,n){var i=l.queryDataIndex(e,t),r=t&&null!=t.highlightKey?u.getHighlightDigit(t.highlightKey):null;null!=i?o(l.normalizeToArray(i),(function(t){m(e.getItemGraphicEl(t),n,r)})):e.eachItemGraphicEl((function(e){m(e,n,r)}))}function x(e){return p(e.model)}function _(e){var t=e.model,n=e.ecModel,i=e.api,o=e.payload,r=t.pipelineContext.progressiveRender,a=e.view,s=o&&f(o).updateMethod,l=r?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,i,o),b[l]}v.updateView=v.updateLayout=v.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},s.enableClassExtend(g,["dispose"]),s.enableClassManagement(g,{registerWhenExtend:!0}),g.markUpdateMethod=function(e,t){f(e).updateMethod=t};var b={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},w=g;e.exports=w},33166:function(e,t,n){var i=n(8524),o=n(42151),r=n(34251),a=function(){this.group=new i,this.uid=o.getUID("viewComponent")};a.prototype={constructor:a,init:function(e,t){},render:function(e,t,n,i){},dispose:function(){},filterForExposedEvent:null};var s=a.prototype;s.updateView=s.updateLayout=s.updateVisual=function(e,t,n,i){},r.enableClassExtend(a),r.enableClassManagement(a,{registerWhenExtend:!0});var l=a;e.exports=l},72019:function(e){function t(e,t){this.getAllNames=function(){var e=t();return e.mapArray(e.getName)},this.containName=function(e){var n=t();return n.indexOfName(e)>=0},this.indexOfName=function(t){var n=e();return n.indexOfName(t)},this.getItemVisual=function(t,n){var i=e();return i.getItemVisual(t,n)}}var n=t;e.exports=n},59937:function(e,t,n){var i=n(33051),o=n(21092),r=n(85669),a=r.linearMap,s=i.each,l=i.isObject,u=-1,c=function(e){var t=e.mappingMethod,n=e.type,o=this.option=i.clone(e);this.type=n,this.mappingMethod=t,this._normalizeData=S[t];var r=d[n];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._doMap=r._doMap[t],"piecewise"===t?(p(o),h(o)):"category"===t?o.categories?f(o):p(o,!0):(i.assert("linear"!==t||o.dataExtent),p(o))};c.prototype={constructor:c,mapValueToVisual:function(e){var t=this._normalizeData(e);return this._doMap(t,e)},getNormalizer:function(){return i.bind(this._normalizeData,this)}};var d=c.visualHandlers={color:{applyVisual:m("color"),getColorMapper:function(){var e=this.option;return i.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),y.call(this,e)}:function(t,n,i){var r=!!i;return!n&&(t=this._normalizeData(t)),i=o.fastLerp(t,e.parsedVisual,i),r?i:o.stringify(i,"rgba")},this)},_doMap:{linear:function(e){return o.stringify(o.fastLerp(e,this.option.parsedVisual),"rgba")},category:y,piecewise:function(e,t){var n=b.call(this,t);return null==n&&(n=o.stringify(o.fastLerp(e,this.option.parsedVisual),"rgba")),n},fixed:x}},colorHue:g((function(e,t){return o.modifyHSL(e,t)})),colorSaturation:g((function(e,t){return o.modifyHSL(e,null,t)})),colorLightness:g((function(e,t){return o.modifyHSL(e,null,null,t)})),colorAlpha:g((function(e,t){return o.modifyAlpha(e,t)})),opacity:{applyVisual:m("opacity"),_doMap:_([0,1])},liftZ:{applyVisual:m("liftZ"),_doMap:{linear:x,category:x,piecewise:x,fixed:x}},symbol:{applyVisual:function(e,t,n){var o=this.mapValueToVisual(e);if(i.isString(o))n("symbol",o);else if(l(o))for(var r in o)o.hasOwnProperty(r)&&n(r,o[r])},_doMap:{linear:v,category:y,piecewise:function(e,t){var n=b.call(this,t);return null==n&&(n=v.call(this,e)),n},fixed:x}},symbolSize:{applyVisual:m("symbolSize"),_doMap:_([0,1])}};function h(e){var t=e.pieceList;e.hasSpecialVisual=!1,i.each(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function f(e){var t=e.categories,n=e.visual,o=e.categoryMap={};if(s(t,(function(e,t){o[e]=t})),!i.isArray(n)){var r=[];i.isObject(n)?s(n,(function(e,t){var n=o[t];r[null!=n?n:u]=e})):r[u]=n,n=w(e,r)}for(var a=t.length-1;a>=0;a--)null==n[a]&&(delete o[t[a]],t.pop())}function p(e,t){var n=e.visual,o=[];i.isObject(n)?s(n,(function(e){o.push(e)})):null!=n&&o.push(n);var r={color:1,symbol:1};t||1!==o.length||r.hasOwnProperty(e.type)||(o[1]=o[0]),w(e,o)}function g(e){return{applyVisual:function(t,n,i){t=this.mapValueToVisual(t),i("color",e(n("color"),t))},_doMap:_([0,1])}}function v(e){var t=this.option.visual;return t[Math.round(a(e,[0,1],[0,t.length-1],!0))]||{}}function m(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function y(e){var t=this.option.visual;return t[this.option.loop&&e!==u?e%t.length:e]}function x(){return this.option.visual[0]}function _(e){return{linear:function(t){return a(t,e,this.option.visual,!0)},category:y,piecewise:function(t,n){var i=b.call(this,n);return null==i&&(i=a(t,e,this.option.visual,!0)),i},fixed:x}}function b(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=c.findPieceIndex(e,n),o=n[i];if(o&&o.visual)return o.visual[this.type]}}function w(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=i.map(t,(function(e){return o.parse(e)}))),t}var S={linear:function(e){return a(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=c.findPieceIndex(e,t,!0);if(null!=n)return a(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?u:t},fixed:i.noop};function M(e,t,n){return e?t<=n:t<n}c.listVisualTypes=function(){var e=[];return i.each(d,(function(t,n){e.push(n)})),e},c.addVisualHandler=function(e,t){d[e]=t},c.isValidType=function(e){return d.hasOwnProperty(e)},c.eachVisual=function(e,t,n){i.isObject(e)?i.each(e,t,n):t.call(n,e)},c.mapVisual=function(e,t,n){var o,r=i.isArray(e)?[]:i.isObject(e)?{}:(o=!0,null);return c.eachVisual(e,(function(e,i){var a=t.call(n,e,i);o?r=a:r[i]=a})),r},c.retrieveVisuals=function(e){var t,n={};return e&&s(d,(function(i,o){e.hasOwnProperty(o)&&(n[o]=e[o],t=!0)})),t?n:null},c.prepareVisualTypes=function(e){if(l(e)){var t=[];s(e,(function(e,n){t.push(n)})),e=t}else{if(!i.isArray(e))return[];e=e.slice()}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},c.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},c.findPieceIndex=function(e,t,n){for(var i,o=1/0,r=0,a=t.length;r<a;r++){var s=t[r].value;if(null!=s){if(s===e||"string"===typeof s&&s===e+"")return r;n&&d(s,r)}}for(r=0,a=t.length;r<a;r++){var l=t[r],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(M(c[1],e,u[1]))return r}else if(u[1]===1/0){if(M(c[0],u[0],e))return r}else if(M(c[0],u[0],e)&&M(c[1],e,u[1]))return r;n&&d(u[0],r),n&&d(u[1],r)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function d(t,n){var r=Math.abs(t-e);r<o&&(o=r,i=n)}};var I=c;e.exports=I},13825:function(e,t,n){var i=n(33051),o=n(40292),r=n(68540),a=r.retrieveRawValue;function s(e,t){var n=t.getModel("aria");if(n.get("show"))if(n.get("description"))e.setAttribute("aria-label",n.get("description"));else{var r=0;t.eachSeries((function(e,t){++r}),this);var s,l=n.get("data.maxCount")||10,u=n.get("series.maxCount")||10,c=Math.min(r,u);if(!(r<1)){var d=v();s=d?p(g("general.withTitle"),{title:d}):g("general.withoutTitle");var h=[],f=r>1?"series.multiple.prefix":"series.single.prefix";s+=p(g(f),{seriesCount:r}),t.eachSeries((function(e,t){if(t<c){var n,i=e.get("name"),o="series."+(r>1?"multiple":"single")+".";n=g(i?o+"withName":o+"withoutName"),n=p(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:m(e.subType)});var s=e.getData();window.data=s,s.count()>l?n+=p(g("data.partialData"),{displayCnt:l}):n+=g("data.allData");for(var u=[],d=0;d<s.count();d++)if(d<l){var f=s.getName(d),v=a(s,d);u.push(p(g(f?"data.withName":"data.withoutName"),{name:f,value:v}))}n+=u.join(g("data.separator.middle"))+g("data.separator.end"),h.push(n)}})),s+=h.join(g("series.multiple.separator.middle"))+g("series.multiple.separator.end"),e.setAttribute("aria-label",s)}}function p(e,t){if("string"!==typeof e)return e;var n=e;return i.each(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function g(e){var t=n.get(e);if(null==t){for(var i=e.split("."),r=o.aria,a=0;a<i.length;++a)r=r[i[a]];return r}return t}function v(){var e=t.getModel("title").option;return e&&e.length&&(e=e[0]),e&&e.text}function m(e){return o.series.typeNames[e]||"自定义图"}}e.exports=s},69274:function(e,t,n){var i=n(33051),o=i.createHashMap;function r(e){return{getTargetSeries:function(t){var n={},i=o();return t.eachSeriesByType(e,(function(e){e.__paletteScope=n,i.set(e.uid,e)})),i},reset:function(e,t){var n=e.getRawData(),i={},o=e.getData();o.each((function(e){var t=o.getRawIndex(e);i[t]=e})),n.each((function(t){var r,a=i[t],s=null!=a&&o.getItemVisual(a,"color",!0),l=null!=a&&o.getItemVisual(a,"borderColor",!0);if(s&&l||(r=n.getItemModel(t)),!s){var u=r.get("itemStyle.color")||e.getColorFromPalette(n.getName(t)||t+"",e.__paletteScope,n.count());null!=a&&o.setItemVisual(a,"color",u)}if(!l){var c=r.get("itemStyle.borderColor");null!=a&&o.setItemVisual(a,"borderColor",c)}}))}}}e.exports=r},7141:function(e,t,n){var i=n(31797),o=n(33051),r=o.isFunction,a={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),o=(e.visualColorAccessPath||"itemStyle.color").split("."),a=e.get(o),s=!r(a)||a instanceof i?null:a;a&&!s||(a=e.getColorFromPalette(e.name,null,t.getSeriesCount())),n.setVisual("color",a);var l=(e.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),u=e.get(l);if(n.setVisual("borderColor",u),!t.isSeriesFiltered(e)){s&&n.each((function(t){n.setItemVisual(t,"color",s(e.getDataParams(t)))}));var c=function(e,t){var n=e.getItemModel(t),i=n.get(o,!0),r=n.get(l,!0);null!=i&&e.setItemVisual(t,"color",i),null!=r&&e.setItemVisual(t,"borderColor",r)};return{dataEach:n.hasItemOption?c:null}}}};e.exports=a},34586:function(e,t,n){var i=n(33051),o=i.isFunction;function r(e,t,n){return{seriesType:e,performRawSeries:!0,reset:function(e,i,r){var a=e.getData(),s=e.get("symbol"),l=e.get("symbolSize"),u=e.get("symbolKeepAspect"),c=e.get("symbolRotate"),d=o(s),h=o(l),f=o(c),p=d||h||f,g=!d&&s?s:t,v=h?null:l;if(a.setVisual({legendSymbol:n||g,symbol:g,symbolSize:v,symbolKeepAspect:u,symbolRotate:c}),!i.isSeriesFiltered(e))return{dataEach:a.hasItemOption||p?m:null};function m(t,n){if(p){var i=e.getRawValue(n),o=e.getDataParams(n);d&&t.setItemVisual(n,"symbol",s(i,o)),h&&t.setItemVisual(n,"symbolSize",l(i,o)),f&&t.setItemVisual(n,"symbolRotate",c(i,o))}if(t.hasItemOption){var r=t.getItemModel(n),a=r.getShallow("symbol",!0),u=r.getShallow("symbolSize",!0),g=r.getShallow("symbolRotate",!0),v=r.getShallow("symbolKeepAspect",!0);null!=a&&t.setItemVisual(n,"symbol",a),null!=u&&t.setItemVisual(n,"symbolSize",u),null!=g&&t.setItemVisual(n,"symbolRotate",g),null!=v&&t.setItemVisual(n,"symbolKeepAspect",v)}}}}}e.exports=r},82300:function(e,t,n){var i=n(33051),o={get:function(e,t,n){var o=i.clone((r[e]||{})[t]);return n&&i.isArray(o)?o[o.length-1]:o}},r={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]}},a=o;e.exports=a},30801:function(e,t,n){var i=n(33051),o=n(59937),r=i.each;function a(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function s(e,t,n){var a={};return r(t,(function(t){var l=a[t]=s();r(e[t],(function(e,r){if(o.isValidType(r)){var a={type:r,visual:e};n&&n(a,t),l[r]=new o(a),"opacity"===r&&(a=i.clone(a),a.type="colorAlpha",l.__hidden.__alphaForOpacity=new o(a))}}))})),a;function s(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function l(e,t,n){var o;i.each(n,(function(e){t.hasOwnProperty(e)&&a(t[e])&&(o=!0)})),o&&i.each(n,(function(n){t.hasOwnProperty(n)&&a(t[n])?e[n]=i.clone(t[n]):delete e[n]}))}function u(e,t,n,r,a,s){var l,u={};function c(e){return n.getItemVisual(l,e)}function d(e,t){n.setItemVisual(l,e,t)}function h(e,i){l=null==s?e:i;var o=n.getRawDataItem(l);if(!o||!1!==o.visualMap)for(var h=r.call(a,e),f=t[h],p=u[h],g=0,v=p.length;g<v;g++){var m=p[g];f[m]&&f[m].applyVisual(e,c,d)}}i.each(e,(function(e){var n=o.prepareVisualTypes(t[e]);u[e]=n})),null==s?n.each(h):n.each([s],h)}function c(e,t,n,r){var a={};function s(e,i){function o(e){return i.getItemVisual(l,e)}function s(e,t){i.setItemVisual(l,e,t)}var l;null!=r&&(r=i.getDimension(r));while(null!=(l=e.next())){var u=i.getRawDataItem(l);if(!u||!1!==u.visualMap)for(var c=null!=r?i.get(r,l,!0):l,d=n(c),h=t[d],f=a[d],p=0,g=f.length;p<g;p++){var v=f[p];h[v]&&h[v].applyVisual(c,o,s)}}}return i.each(e,(function(e){var n=o.prepareVisualTypes(t[e]);a[e]=n})),{progress:s}}t.createVisualMappings=s,t.replaceVisualOption=l,t.applyVisual=u,t.incrementalApplyVisual=c},93810:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;
| /*
| * [js-sha1]{@link https://github.com/emn178/js-sha1}
| *
| * @version 0.6.0
| * @author Chen, Yi-Cyuan [emn178@gmail.com]
| * @copyright Chen, Yi-Cyuan 2014-2017
| * @license MIT
| */(function(){"use strict";var root="object"===typeof window?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;NODE_JS&&(root=__webpack_require__.g);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(e){return function(t){return new Sha1(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Sha1},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var n=OUTPUT_TYPES[t];e[n]=createOutputMethod(n)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"===typeof e)return crypto.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(void 0===e.length)return method(e);return crypto.createHash("sha1").update(new Buffer(e)).digest("hex")};return nodeMethod};function Sha1(e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Sha1.prototype.update=function(e){if(!this.finalized){var t="string"!==typeof e;t&&e.constructor===root.ArrayBuffer&&(e=new Uint8Array(e));var n,i,o=0,r=e.length||0,a=this.blocks;while(o<r){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),t)for(i=this.start;o<r&&i<64;++o)a[i>>2]|=e[o]<<SHIFT[3&i++];else for(i=this.start;o<r&&i<64;++o)n=e.charCodeAt(o),n<128?a[i>>2]|=n<<SHIFT[3&i++]:n<2048?(a[i>>2]|=(192|n>>6)<<SHIFT[3&i++],a[i>>2]|=(128|63&n)<<SHIFT[3&i++]):n<55296||n>=57344?(a[i>>2]|=(224|n>>12)<<SHIFT[3&i++],a[i>>2]|=(128|n>>6&63)<<SHIFT[3&i++],a[i>>2]|=(128|63&n)<<SHIFT[3&i++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++o)),a[i>>2]|=(240|n>>18)<<SHIFT[3&i++],a[i>>2]|=(128|n>>12&63)<<SHIFT[3&i++],a[i>>2]|=(128|n>>6&63)<<SHIFT[3&i++],a[i>>2]|=(128|63&n)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=a[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var e,t,n,i=this.h0,o=this.h1,r=this.h2,a=this.h3,s=this.h4,l=this.blocks;for(t=16;t<80;++t)n=l[t-3]^l[t-8]^l[t-14]^l[t-16],l[t]=n<<1|n>>>31;for(t=0;t<20;t+=5)e=o&r|~o&a,n=i<<5|i>>>27,s=n+e+s+1518500249+l[t]<<0,o=o<<30|o>>>2,e=i&o|~i&r,n=s<<5|s>>>27,a=n+e+a+1518500249+l[t+1]<<0,i=i<<30|i>>>2,e=s&i|~s&o,n=a<<5|a>>>27,r=n+e+r+1518500249+l[t+2]<<0,s=s<<30|s>>>2,e=a&s|~a&i,n=r<<5|r>>>27,o=n+e+o+1518500249+l[t+3]<<0,a=a<<30|a>>>2,e=r&a|~r&s,n=o<<5|o>>>27,i=n+e+i+1518500249+l[t+4]<<0,r=r<<30|r>>>2;for(;t<40;t+=5)e=o^r^a,n=i<<5|i>>>27,s=n+e+s+1859775393+l[t]<<0,o=o<<30|o>>>2,e=i^o^r,n=s<<5|s>>>27,a=n+e+a+1859775393+l[t+1]<<0,i=i<<30|i>>>2,e=s^i^o,n=a<<5|a>>>27,r=n+e+r+1859775393+l[t+2]<<0,s=s<<30|s>>>2,e=a^s^i,n=r<<5|r>>>27,o=n+e+o+1859775393+l[t+3]<<0,a=a<<30|a>>>2,e=r^a^s,n=o<<5|o>>>27,i=n+e+i+1859775393+l[t+4]<<0,r=r<<30|r>>>2;for(;t<60;t+=5)e=o&r|o&a|r&a,n=i<<5|i>>>27,s=n+e+s-1894007588+l[t]<<0,o=o<<30|o>>>2,e=i&o|i&r|o&r,n=s<<5|s>>>27,a=n+e+a-1894007588+l[t+1]<<0,i=i<<30|i>>>2,e=s&i|s&o|i&o,n=a<<5|a>>>27,r=n+e+r-1894007588+l[t+2]<<0,s=s<<30|s>>>2,e=a&s|a&i|s&i,n=r<<5|r>>>27,o=n+e+o-1894007588+l[t+3]<<0,a=a<<30|a>>>2,e=r&a|r&s|a&s,n=o<<5|o>>>27,i=n+e+i-1894007588+l[t+4]<<0,r=r<<30|r>>>2;for(;t<80;t+=5)e=o^r^a,n=i<<5|i>>>27,s=n+e+s-899497514+l[t]<<0,o=o<<30|o>>>2,e=i^o^r,n=s<<5|s>>>27,a=n+e+a-899497514+l[t+1]<<0,i=i<<30|i>>>2,e=s^i^o,n=a<<5|a>>>27,r=n+e+r-899497514+l[t+2]<<0,s=s<<30|s>>>2,e=a^s^i,n=r<<5|r>>>27,o=n+e+o-899497514+l[t+3]<<0,a=a<<30|a>>>2,e=r^a^s,n=o<<5|o>>>27,i=n+e+i-899497514+l[t+4]<<0,r=r<<30|r>>>2;this.h0=this.h0+i<<0,this.h1=this.h1+o<<0,this.h2=this.h2+r<<0,this.h3=this.h3+a<<0,this.h4=this.h4+s<<0},Sha1.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,o=this.h4;return HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,o=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};var exports=createMethod();COMMON_JS?module.exports=exports:(root.sha1=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},11847:function(){(function(e,t){var n,i=e.document,o=i.documentElement,r=i.querySelector('meta[name="viewport"]'),a=i.querySelector('meta[name="flexible"]'),s=0,l=0,u=t.flexible||(t.flexible={});if(r){console.warn("将根据已有的meta标签来设置缩放比例");var c=r.getAttribute("content").match(/initial\-scale=([\d\.]+)/);c&&(l=parseFloat(c[1]),s=parseInt(1/l))}else if(a){var d=a.getAttribute("content");if(d){var h=d.match(/initial\-dpr=([\d\.]+)/),f=d.match(/maximum\-dpr=([\d\.]+)/);h&&(s=parseFloat(h[1]),l=parseFloat((1/s).toFixed(2))),f&&(s=parseFloat(f[1]),l=parseFloat((1/s).toFixed(2)))}}if(!s&&!l){e.navigator.appVersion.match(/android/gi);var p=e.navigator.appVersion.match(/iphone/gi),g=e.devicePixelRatio;s=p?g>=3&&(!s||s>=3)?3:g>=2&&(!s||s>=2)?2:1:1,l=1/s}if(o.setAttribute("data-dpr",s),!r)if(r=i.createElement("meta"),r.setAttribute("name","viewport"),r.setAttribute("content","initial-scale="+l+", maximum-scale="+l+", minimum-scale="+l+", user-scalable=no"),o.firstElementChild)o.firstElementChild.appendChild(r);else{var v=i.createElement("div");v.appendChild(r),i.write(v.innerHTML)}function m(){var t=o.getBoundingClientRect().width;t/s>540&&(t=540*s);var n=t/10;o.style.fontSize=n+"px",u.rem=e.rem=n}e.addEventListener("resize",(function(){clearTimeout(n),n=setTimeout(m,300)}),!1),e.addEventListener("pageshow",(function(e){e.persisted&&(clearTimeout(n),n=setTimeout(m,300))}),!1),"complete"===i.readyState?i.body.style.fontSize=12*s+"px":i.addEventListener("DOMContentLoaded",(function(e){i.body.style.fontSize=12*s+"px"}),!1),m(),u.dpr=e.dpr=s,u.refreshRem=m,u.rem2px=function(e){var t=parseFloat(e)*this.rem;return"string"===typeof e&&e.match(/rem$/)&&(t+="px"),t},u.px2rem=function(e){var t=parseFloat(e)/this.rem;return"string"===typeof e&&e.match(/px$/)&&(t+="rem"),t}})(window,window["lib"]||(window["lib"]={}))},5110:function(){},61107:function(e,t,n){(function(e,t){t()})(0,(function(){"use strict";var e=setTimeout;function t(){}function i(e,t){return function(){e.apply(t,arguments)}}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function r(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(o){return void s(t.promise,o)}a(t.promise,i)}else(1===e._state?a:s)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void c(i(n,t),e)}e._state=1,e._value=t,l(e)}catch(r){s(e,r)}}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function u(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function c(e,t){var n=!1;try{e((function(e){n||(n=!0,a(t,e))}),(function(e){n||(n=!0,s(t,e))}))}catch(i){if(n)return;n=!0,s(t,i)}}o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,n){var i=new this.constructor(t);return r(this,new u(e,n,i)),i},o.prototype["finally"]=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},o.all=function(e){return new o((function(t,n){if(!e||"undefined"===typeof e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var o=i.length;function r(e,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(t){r(e,t)}),n)}i[e]=a,0===--o&&t(i)}catch(l){n(l)}}for(var a=0;a<i.length;a++)r(a,i[a])}))},o.resolve=function(e){return e&&"object"===typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var i=0,o=e.length;i<o;i++)e[i].then(t,n)}))},o._immediateFn="function"===typeof setImmediate&&function(e){setImmediate(e)}||function(t){e(t,0)},o._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var d=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("unable to locate global object")}();d.Promise||(d.Promise=o)}))},5350:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var i=n(27956),o=n(66252),r=n(17662),a=n(12678),s=n(10903),l=n(31649),u=n(79348),c=n(24976),d=n(180);const[h,f]=(0,r["do"])("action-bar-button"),p=(0,a.l7)({},c.g2,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var g=(0,o.aZ)({name:h,props:p,setup(e,{slots:t}){const n=(0,c.yj)(),{parent:i,index:r}=(0,l.NB)(s.F),a=(0,o.Fl)((()=>{if(i){const e=i.children[r.value-1];return!(e&&"isButton"in e)}})),h=(0,o.Fl)((()=>{if(i){const e=i.children[r.value+1];return!(e&&"isButton"in e)}}));return(0,u.F)({isButton:!0}),()=>{const{type:i,icon:r,text:s,color:l,loading:u,disabled:c}=e;return(0,o.Wm)(d.z,{class:f([i,{last:h.value,first:a.value}]),size:"large",type:i,icon:r,color:l,loading:u,disabled:c,onClick:n},{default:()=>[t.default?t.default():s]})}}});const v=(0,i.n)(g)},10903:function(e,t,n){"use strict";n.d(t,{F:function(){return u},Z:function(){return d}});var i=n(66252),o=n(17662),r=n(94215),a=n(31649);const[s,l]=(0,o["do"])("action-bar"),u=Symbol(s),c={safeAreaInsetBottom:r.J5};var d=(0,i.aZ)({name:s,props:c,setup(e,{slots:t}){const{linkChildren:n}=(0,a.$E)(u);return n(),()=>{var n;return(0,i.Wm)("div",{class:[l(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(n=t.default)?void 0:n.call(t)])}}})},62019:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});var i=n(27956),o=n(10903);const r=(0,i.n)(o.Z)},34903:function(e,t,n){"use strict";n.d(t,{C:function(){return f}});var i=n(27956),o=n(66252),r=n(17662),a=n(94215),s=n(58318),l=n(31481);const[u,c]=(0,r["do"])("badge"),d={dot:Boolean,max:a.Or,tag:(0,a.SQ)("div"),color:String,offset:Array,content:a.Or,showZero:a.J5,position:(0,a.SQ)("top-right")};var h=(0,o.aZ)({name:u,props:d,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:n,showZero:i}=e;return(0,s.Xq)(n)&&""!==n&&(i||0!==n)},i=()=>{const{dot:i,max:o,content:r}=e;if(!i&&n())return t.content?t.content():(0,s.Xq)(o)&&(0,s.kE)(r)&&+r>o?`${o}+`:r},r=(0,o.Fl)((()=>{const n={background:e.color};if(e.offset){const[i,o]=e.offset;t.default?(n.top=(0,l.Nn)(o),n.right="number"===typeof i?(0,l.Nn)(-i):i.startsWith("-")?i.replace("-",""):`-${i}`):(n.marginTop=(0,l.Nn)(o),n.marginLeft=(0,l.Nn)(i))}return n})),a=()=>{if(n()||e.dot)return(0,o.Wm)("div",{class:c([e.position,{dot:e.dot,fixed:!!t.default}]),style:r.value},[i()])};return()=>{if(t.default){const{tag:n}=e;return(0,o.Wm)(n,{class:c("wrapper")},{default:()=>[t.default(),a()]})}return a()}}});const f=(0,i.n)(h)},180:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var i=n(27956),o=n(66252),r=n(17662),a=n(12678),s=n(94215),l=n(10067),u=n(91541),c=n(24976),d=n(38348),h=n(7615);const[f,p]=(0,r["do"])("button"),g=(0,a.l7)({},c.g2,{tag:(0,s.SQ)("button"),text:String,icon:String,type:(0,s.SQ)("default"),size:(0,s.SQ)("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:(0,s.SQ)("button"),loadingSize:s.Or,loadingText:String,loadingType:String,iconPosition:(0,s.SQ)("left")});var v=(0,o.aZ)({name:f,props:g,emits:["click"],setup(e,{emit:t,slots:n}){const i=(0,c.yj)(),r=()=>n.loading?n.loading():(0,o.Wm)(h.g,{size:e.loadingSize,type:e.loadingType,class:p("loading")},null),a=()=>e.loading?r():n.icon?(0,o.Wm)("div",{class:p("icon")},[n.icon()]):e.icon?(0,o.Wm)(d.J,{name:e.icon,class:p("icon"),classPrefix:e.iconPrefix},null):void 0,s=()=>{let t;if(t=e.loading?e.loadingText:n.default?n.default():e.text,t)return(0,o.Wm)("span",{class:p("text")},[t])},f=()=>{const{color:t,plain:n}=e;if(t){const e={color:n?t:"white"};return n||(e.background=t),t.includes("gradient")?e.border=0:e.borderColor=t,e}},g=n=>{e.loading?(0,l.PF)(n):e.disabled||(t("click",n),i())};return()=>{const{tag:t,type:n,size:i,block:r,round:l,plain:c,square:d,loading:h,disabled:v,hairline:m,nativeType:y,iconPosition:x}=e,_=[p([n,i,{plain:c,block:r,round:l,square:d,loading:h,disabled:v,hairline:m}]),{[u._K]:m}];return(0,o.Wm)(t,{type:y,class:_,style:f(),disabled:v,onClick:g},{default:()=>[(0,o.Wm)("div",{class:p("content")},["left"===x&&a(),s(),"right"===x&&a()])]})}}});const m=(0,i.n)(v)},45025:function(e,t,n){"use strict";n.d(t,{S:function(){return o},h:function(){return r}});var i=n(66252);const o=Symbol();function r(e){const t=(0,i.f3)(o,null);t&&(0,i.YP)(t,(t=>{t&&e()}))}},79348:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var i=n(66252),o=n(12678);function r(e){const t=(0,i.FN)();t&&(0,o.l7)(t.proxy,e)}},77311:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var i=n(2262),o=n(66252);function r(e){const t=(0,i.iH)(!1);return(0,o.YP)(e,(e=>{e&&(t.value=e)}),{immediate:!0}),e=>()=>t.value?e():null}},24976:function(e,t,n){"use strict";n.d(t,{BC:function(){return r},g2:function(){return o},yj:function(){return a}});var i=n(66252);const o={to:[String,Object],url:String,replace:Boolean};function r({to:e,url:t,replace:n,$router:i}){e&&i?i[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function a(){const e=(0,i.FN)().proxy;return()=>r(e)}},81493:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});var i=n(2262);function o(e,t){return e>t?"horizontal":t>e?"vertical":""}function r(){const e=(0,i.iH)(0),t=(0,i.iH)(0),n=(0,i.iH)(0),r=(0,i.iH)(0),a=(0,i.iH)(0),s=(0,i.iH)(0),l=(0,i.iH)(""),u=()=>"vertical"===l.value,c=()=>"horizontal"===l.value,d=()=>{n.value=0,r.value=0,a.value=0,s.value=0,l.value=""},h=n=>{d(),e.value=n.touches[0].clientX,t.value=n.touches[0].clientY},f=i=>{const u=i.touches[0];n.value=u.clientX<0?0:u.clientX-e.value,r.value=u.clientY-t.value,a.value=Math.abs(n.value),s.value=Math.abs(r.value);const c=10;(!l.value||a.value<c&&s.value<c)&&(l.value=o(a.value,s.value))};return{move:f,start:h,reset:d,startX:e,startY:t,deltaX:n,deltaY:r,offsetX:a,offsetY:s,direction:l,isVertical:u,isHorizontal:c}}},2348:function(e,t,n){"use strict";n.d(t,{Z:function(){return h},q:function(){return u}});var i=n(66252),o=n(17662),r=n(94215),a=n(31481);const[s,l]=(0,o["do"])("config-provider"),u=Symbol(s),c={tag:(0,r.SQ)("div"),themeVars:Object,iconPrefix:String};function d(e){const t={};return Object.keys(e).forEach((n=>{t[`--van-${(0,a.GL)(n)}`]=e[n]})),t}var h=(0,i.aZ)({name:s,props:c,setup(e,{slots:t}){const n=(0,i.Fl)((()=>{if(e.themeVars)return d(e.themeVars)}));return(0,i.JJ)(u,e),()=>(0,i.Wm)(e.tag,{class:l(),style:n.value},{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t)]}})}})},40162:function(e,t,n){"use strict";n.d(t,{V:function(){return k}});var i=n(66252),o=n(12678),r=n(27956),a=n(10037),s=n(2262),l=n(17662),u=n(94215),c=n(67851),d=n(58318),h=n(91541),f=n(31481),p=n(30695),g=n(95124),v=n(180),m=n(62019),y=n(5350);const[x,_,b]=(0,l["do"])("dialog"),w=(0,o.l7)({},p.W,{title:String,theme:String,width:u.Or,message:[String,Function],callback:Function,allowHtml:Boolean,className:u.Vg,transition:(0,u.SQ)("van-dialog-bounce"),messageAlign:String,closeOnPopstate:u.J5,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showConfirmButton:u.J5,closeOnClickOverlay:Boolean}),S=[...p.m,"transition","closeOnPopstate"];var M=(0,i.aZ)({name:x,props:w,emits:["confirm","cancel","update:show"],setup(e,{emit:t,slots:n}){const r=(0,s.qj)({confirm:!1,cancel:!1}),a=e=>t("update:show",e),l=t=>{var n;a(!1),null==(n=e.callback)||n.call(e,t)},u=n=>()=>{e.show&&(t(n),e.beforeClose?(r[n]=!0,(0,c.I)(e.beforeClose,{args:[n],done(){l(n),r[n]=!1},canceled(){r[n]=!1}})):l(n))},p=u("cancel"),x=u("confirm"),w=()=>{const t=n.title?n.title():e.title;if(t)return(0,i.Wm)("div",{class:_("header",{isolated:!e.message&&!n.default})},[t])},M=t=>{const{message:n,allowHtml:o,messageAlign:r}=e,a=_("message",{"has-title":t,[r]:r}),s=(0,d.mf)(n)?n():n;return o&&"string"===typeof s?(0,i.Wm)("div",{class:a,innerHTML:s},null):(0,i.Wm)("div",{class:a},[s])},I=()=>{if(n.default)return(0,i.Wm)("div",{class:_("content")},[n.default()]);const{title:t,message:o,allowHtml:r}=e;if(o){const e=!(!t&&!n.title);return(0,i.Wm)("div",{key:r?1:0,class:_("content",{isolated:!e})},[M(e)])}},A=()=>(0,i.Wm)("div",{class:[h.k7,_("footer")]},[e.showCancelButton&&(0,i.Wm)(v.z,{size:"large",text:e.cancelButtonText||b("cancel"),class:_("cancel"),style:{color:e.cancelButtonColor},loading:r.cancel,onClick:p},null),e.showConfirmButton&&(0,i.Wm)(v.z,{size:"large",text:e.confirmButtonText||b("confirm"),class:[_("confirm"),{[h.a8]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:r.confirm,onClick:x},null)]),k=()=>(0,i.Wm)(m.o,{class:_("footer")},{default:()=>[e.showCancelButton&&(0,i.Wm)(y.Z,{type:"warning",text:e.cancelButtonText||b("cancel"),class:_("cancel"),color:e.cancelButtonColor,loading:r.cancel,onClick:p},null),e.showConfirmButton&&(0,i.Wm)(y.Z,{type:"danger",text:e.confirmButtonText||b("confirm"),class:_("confirm"),color:e.confirmButtonColor,loading:r.confirm,onClick:x},null)]}),P=()=>n.footer?n.footer():"round-button"===e.theme?k():A();return()=>{const{width:t,title:n,theme:r,message:s,className:l}=e;return(0,i.Wm)(g.G,(0,i.dG)({role:"dialog",class:[_([r]),l],style:{width:(0,f.Nn)(t)},"aria-labelledby":n||s,"onUpdate:show":a},(0,o.ei)(e,S)),{default:()=>[w(),I(),P()]})}}});let I;function A(){const e={setup(){const{state:e,toggle:t}=(0,a.o)();return()=>(0,i.Wm)(M,(0,i.dG)(e,{"onUpdate:show":t}),null)}};({instance:I}=(0,a.H)(e))}function k(e){return o._f?new Promise(((t,n)=>{I||A(),I.open((0,o.l7)({},k.currentOptions,e,{callback:e=>{("confirm"===e?t:n)(e)}}))})):Promise.resolve()}k.defaultOptions={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1},k.currentOptions=(0,o.l7)({},k.defaultOptions),k.alert=k,k.confirm=e=>k((0,o.l7)({showCancelButton:!0},e)),k.close=()=>{I&&I.toggle(!1)},k.setDefaultOptions=e=>{(0,o.l7)(k.currentOptions,e)},k.resetDefaultOptions=()=>{k.currentOptions=(0,o.l7)({},k.defaultOptions)},k.Component=(0,r.n)(M),k.install=e=>{e.use(k.Component),e.config.globalProperties.$dialog=k}},38348:function(e,t,n){"use strict";n.d(t,{J:function(){return g}});var i=n(27956),o=n(66252),r=n(17662),a=n(94215),s=n(31481),l=n(34903),u=n(2348);const[c,d]=(0,r["do"])("icon"),h=e=>null==e?void 0:e.includes("/"),f={dot:Boolean,tag:(0,a.SQ)("i"),name:String,size:a.Or,badge:a.Or,color:String,badgeProps:Object,classPrefix:String};var p=(0,o.aZ)({name:c,props:f,setup(e,{slots:t}){const n=(0,o.f3)(u.q,null),i=(0,o.Fl)((()=>e.classPrefix||(null==n?void 0:n.iconPrefix)||d()));return()=>{const{tag:n,dot:r,name:a,size:u,badge:c,color:f}=e,p=h(a);return(0,o.Wm)(l.C,(0,o.dG)({dot:r,tag:n,class:[i.value,p?"":`${i.value}-${a}`],style:{color:f,fontSize:(0,s.Nn)(u)},content:c},e.badgeProps),{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t),p&&(0,o.Wm)("img",{class:d("image"),src:a},null)]}})}}});const g=(0,i.n)(p)},98922:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Zc}});var i=n(62019),o=n(5350),r=n(27956),a=n(66252),s=n(17662),l=n(12678),u=n(94215),c=n(10903),d=n(31649),h=n(24976),f=n(38348),p=n(34903);const[g,v]=(0,s["do"])("action-bar-icon"),m=(0,l.l7)({},h.g2,{dot:Boolean,text:String,icon:String,color:String,badge:u.Or,iconClass:u.Vg,badgeProps:Object,iconPrefix:String});var y=(0,a.aZ)({name:g,props:m,setup(e,{slots:t}){const n=(0,h.yj)();(0,d.NB)(c.F);const i=()=>{const{dot:n,badge:i,icon:o,color:r,iconClass:s,badgeProps:l,iconPrefix:u}=e;return t.icon?(0,a.Wm)(p.C,(0,a.dG)({dot:n,class:v("icon"),content:i},l),{default:t.icon}):(0,a.Wm)(f.J,{tag:"div",dot:n,name:o,badge:i,color:r,class:[v("icon"),s],badgeProps:l,classPrefix:u},null)};return()=>(0,a.Wm)("div",{role:"button",class:v(),tabindex:0,onClick:n},[i(),t.default?t.default():e.text])}});const x=(0,r.n)(y);var _=n(91541),b=n(95124),w=n(7615),S=n(30695);const[M,I]=(0,s["do"])("action-sheet"),A=(0,l.l7)({},S.W,{title:String,round:u.J5,actions:(0,u.Ce)(),closeIcon:(0,u.SQ)("cross"),closeable:u.J5,cancelText:String,description:String,closeOnPopstate:u.J5,closeOnClickAction:Boolean,safeAreaInsetBottom:u.J5}),k=[...S.m,"round","closeOnPopstate","safeAreaInsetBottom"];var P=(0,a.aZ)({name:M,props:A,emits:["select","cancel","update:show"],setup(e,{slots:t,emit:n}){const i=e=>n("update:show",e),o=()=>{i(!1),n("cancel")},r=()=>{if(e.title)return(0,a.Wm)("div",{class:I("header")},[e.title,e.closeable&&(0,a.Wm)(f.J,{name:e.closeIcon,class:[I("close"),_.e9],onClick:o},null)])},s=()=>{if(t.cancel||e.cancelText)return[(0,a.Wm)("div",{class:I("gap")},null),(0,a.Wm)("button",{type:"button",class:I("cancel"),onClick:o},[t.cancel?t.cancel():e.cancelText])]},u=(e,n)=>e.loading?(0,a.Wm)(w.g,{class:I("loading-icon")},null):t.action?t.action({action:e,index:n}):[(0,a.Wm)("span",{class:I("name")},[e.name]),e.subname&&(0,a.Wm)("div",{class:I("subname")},[e.subname])],c=(t,o)=>{const{color:r,loading:s,callback:l,disabled:c,className:d}=t,h=()=>{c||s||(l&&l(t),e.closeOnClickAction&&i(!1),(0,a.Y3)((()=>n("select",t,o))))};return(0,a.Wm)("button",{type:"button",style:{color:r},class:[I("item",{loading:s,disabled:c}),d],onClick:h},[u(t,o)])},d=()=>{if(e.description||t.description){const n=t.description?t.description():e.description;return(0,a.Wm)("div",{class:I("description")},[n])}};return()=>(0,a.Wm)(b.G,(0,a.dG)({class:I(),position:"bottom","onUpdate:show":i},(0,l.ei)(e,k)),{default:()=>{var n;return[r(),d(),(0,a.Wm)("div",{class:I("content")},[e.actions.map(c),null==(n=t.default)?void 0:n.call(t)]),s()]}})}});const C=(0,r.n)(P);var E=n(49963),T=n(2262),N=n(58318),D=n(79348);function O(e){if(!(0,N.Xq)(e))return e;if(Array.isArray(e))return e.map((e=>O(e)));if((0,N.Kn)(e)){const t={};return Object.keys(e).forEach((n=>{t[n]=O(e[n])})),t}return e}var L=n(31481),V=n(10067),R=n(81493);const B=200,z=300,W=15,[F,U]=(0,s["do"])("picker-column");function $(e){const{transform:t}=window.getComputedStyle(e),n=t.slice(7,t.length-1).split(", ")[5];return Number(n)}const H=Symbol(F),j=e=>(0,N.Kn)(e)&&e.disabled;var G=(0,a.aZ)({name:F,props:{textKey:(0,u.ir)(String),readonly:Boolean,allowHtml:Boolean,className:u.Vg,itemHeight:(0,u.ir)(Number),defaultIndex:(0,u.qM)(0),swipeDuration:(0,u.ir)(u.Or),initialOptions:(0,u.Ce)(),visibleItemCount:(0,u.ir)(u.Or)},emits:["change"],setup(e,{emit:t,slots:n}){let i,o,r,s,l;const u=(0,T.iH)(),c=(0,T.qj)({index:e.defaultIndex,offset:0,duration:0,options:O(e.initialOptions)}),h=(0,R.o)(),f=()=>c.options.length,p=()=>e.itemHeight*(+e.visibleItemCount-1)/2,g=e=>{e=(0,L.uZ)(e,0,f());for(let t=e;t<f();t++)if(!j(c.options[t]))return t;for(let t=e-1;t>=0;t--)if(!j(c.options[t]))return t},v=(n,o)=>{n=g(n)||0;const r=-n*e.itemHeight,a=()=>{n!==c.index&&(c.index=n,o&&t("change",n))};i&&r!==c.offset?l=a:a(),c.offset=r},m=t=>{JSON.stringify(t)!==JSON.stringify(c.options)&&(c.options=O(t),v(e.defaultIndex))},y=t=>{i||e.readonly||(l=null,c.duration=B,v(t,!0))},x=t=>(0,N.Kn)(t)&&e.textKey in t?t[e.textKey]:t,_=t=>(0,L.uZ)(Math.round(-t/e.itemHeight),0,f()-1),b=(t,n)=>{const i=Math.abs(t/n);t=c.offset+i/.003*(t<0?-1:1);const o=_(t);c.duration=+e.swipeDuration,v(o,!0)},w=()=>{i=!1,c.duration=0,l&&(l(),l=null)},S=t=>{if(!e.readonly){if(h.start(t),i){const e=$(u.value);c.offset=Math.min(0,e-p()),o=c.offset}else o=c.offset;c.duration=0,r=Date.now(),s=o,l=null}},M=t=>{if(e.readonly)return;h.move(t),h.isVertical()&&(i=!0,(0,V.PF)(t,!0)),c.offset=(0,L.uZ)(o+h.deltaY.value,-f()*e.itemHeight,e.itemHeight);const n=Date.now();n-r>z&&(r=n,s=c.offset)},I=()=>{if(e.readonly)return;const t=c.offset-s,n=Date.now()-r,o=n<z&&Math.abs(t)>W;if(o)return void b(t,n);const a=_(c.offset);c.duration=B,v(a,!0),setTimeout((()=>{i=!1}),0)},A=()=>{const t={height:`${e.itemHeight}px`};return c.options.map(((i,o)=>{const r=x(i),s=j(i),l={role:"button",style:t,tabindex:s?-1:0,class:U("item",{disabled:s,selected:o===c.index}),onClick:()=>y(o)},u={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:r};return(0,a.Wm)("li",l,[n.option?n.option(i):(0,a.Wm)("div",u,null)])}))},k=e=>{const{options:t}=c;for(let n=0;n<t.length;n++)if(x(t[n])===e)return v(n)},P=()=>c.options[c.index];return v(c.index),(0,d.NB)(H),(0,D.F)({state:c,setIndex:v,getValue:P,setValue:k,setOptions:m,stopMomentum:w}),(0,a.YP)((()=>e.initialOptions),m),(0,a.YP)((()=>e.defaultIndex),(e=>v(e))),()=>(0,a.Wm)("div",{class:[U(),e.className],onTouchstart:S,onTouchmove:M,onTouchend:I,onTouchcancel:I},[(0,a.Wm)("ul",{ref:u,style:{transform:`translate3d(0, ${c.offset+p()}px, 0)`,transitionDuration:`${c.duration}ms`,transitionProperty:c.duration?"all":"none"},class:U("wrapper"),onTransitionend:w},[A()])])}});const[Y,Z,q]=(0,s["do"])("picker"),X={title:String,loading:Boolean,readonly:Boolean,allowHtml:Boolean,itemHeight:(0,u.SI)(44),showToolbar:u.J5,swipeDuration:(0,u.SI)(1e3),visibleItemCount:(0,u.SI)(6),cancelButtonText:String,confirmButtonText:String},J=(0,l.l7)({},X,{columns:(0,u.Ce)(),valueKey:String,defaultIndex:(0,u.SI)(0),toolbarPosition:(0,u.SQ)("top"),columnsFieldNames:Object});var K=(0,a.aZ)({name:Y,props:J,emits:["confirm","cancel","change"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(!1),o=(0,T.iH)([]),{text:r,values:s,children:u}=(0,l.l7)({text:e.valueKey||"text",values:"values",children:"children"},e.columnsFieldNames),{children:c,linkChildren:h}=(0,d.$E)(H);h();const f=(0,a.Fl)((()=>(0,L.LU)(e.itemHeight))),p=(0,a.Fl)((()=>{const t=e.columns[0];if("object"===typeof t){if(u in t)return"cascade";if(s in t)return"object"}return"plain"})),g=()=>{var t;const n=[];let i={[u]:e.columns};while(i&&i[u]){const o=i[u];let r=null!=(t=i.defaultIndex)?t:+e.defaultIndex;while(o[r]&&o[r].disabled){if(!(r<o.length-1)){r=0;break}r++}n.push({[s]:i[u],className:i.className,defaultIndex:r}),i=o[r]}o.value=n},v=()=>{const{columns:t}=e;"plain"===p.value?o.value=[{[s]:t}]:"cascade"===p.value?g():o.value=t,i.value=o.value.some((e=>e[s]&&0!==e[s].length))},m=()=>c.map((e=>e.state.index)),y=(e,t)=>{const n=c[e];n&&(n.setOptions(t),i.value=!0)},x=t=>{let n={[u]:e.columns};const i=m();for(let e=0;e<=t;e++)n=n[u][i[e]];while(n&&n[u])t++,y(t,n[u]),n=n[u][n.defaultIndex||0]},b=e=>c[e],S=e=>{const t=b(e);if(t)return t.getValue()},M=(e,t)=>{const n=b(e);n&&(n.setValue(t),"cascade"===p.value&&x(e))},I=e=>{const t=b(e);if(t)return t.state.index},A=(e,t)=>{const n=b(e);n&&(n.setIndex(t),"cascade"===p.value&&x(e))},k=e=>{const t=b(e);if(t)return t.state.options},P=()=>c.map((e=>e.getValue())),C=e=>{e.forEach(((e,t)=>{M(t,e)}))},E=e=>{e.forEach(((e,t)=>{A(t,e)}))},N=e=>{"plain"===p.value?t(e,S(0),I(0)):t(e,P(),m())},O=e=>{"cascade"===p.value&&x(e),"plain"===p.value?t("change",S(0),I(0)):t("change",P(),e)},R=()=>{c.forEach((e=>e.stopMomentum())),N("confirm")},B=()=>N("cancel"),z=()=>n.title?n.title():e.title?(0,a.Wm)("div",{class:[Z("title"),"van-ellipsis"]},[e.title]):void 0,W=()=>{const t=e.cancelButtonText||q("cancel");return(0,a.Wm)("button",{type:"button",class:[Z("cancel"),_.e9],onClick:B},[n.cancel?n.cancel():t])},F=()=>{const t=e.confirmButtonText||q("confirm");return(0,a.Wm)("button",{type:"button",class:[Z("confirm"),_.e9],onClick:R},[n.confirm?n.confirm():t])},U=()=>{if(e.showToolbar){const e=n.toolbar||n.default;return(0,a.Wm)("div",{class:Z("toolbar")},[e?e():[W(),z(),F()]])}},$=()=>o.value.map(((t,i)=>{var o;return(0,a.Wm)(G,{textKey:r,readonly:e.readonly,allowHtml:e.allowHtml,className:t.className,itemHeight:f.value,defaultIndex:null!=(o=t.defaultIndex)?o:+e.defaultIndex,swipeDuration:e.swipeDuration,initialOptions:t[s],visibleItemCount:e.visibleItemCount,onChange:()=>O(i)},{option:n.option})})),j=e=>{if(i.value){const t={height:`${f.value}px`},n={backgroundSize:`100% ${(e-f.value)/2}px`};return[(0,a.Wm)("div",{class:Z("mask"),style:n},null),(0,a.Wm)("div",{class:[_.pj,Z("frame")],style:t},null)]}},Y=()=>{const t=f.value*+e.visibleItemCount,n={height:`${t}px`};return(0,a.Wm)("div",{class:Z("columns"),style:n,onTouchmove:V.PF},[$(),j(t)])};return(0,a.YP)((()=>e.columns),v,{immediate:!0}),(0,D.F)({confirm:R,getValues:P,setValues:C,getIndexes:m,setIndexes:E,getColumnIndex:I,setColumnIndex:A,getColumnValue:S,setColumnValue:M,getColumnValues:k,setColumnValues:y}),()=>{var t,i;return(0,a.Wm)("div",{class:Z()},["top"===e.toolbarPosition?U():null,e.loading?(0,a.Wm)(w.g,{class:Z("loading")},null):null,null==(t=n["columns-top"])?void 0:t.call(n),Y(),null==(i=n["columns-bottom"])?void 0:i.call(n),"bottom"===e.toolbarPosition?U():null])}}});const Q=(0,r.n)(K);const[ee,te]=(0,s["do"])("area"),ne="000000",ie=["title","cancel","confirm","toolbar","columns-top","columns-bottom"],oe=["title","loading","readonly","itemHeight","swipeDuration","visibleItemCount","cancelButtonText","confirmButtonText"],re=e=>"9"===e[0],ae=(0,l.l7)({},X,{value:String,columnsNum:(0,u.SI)(3),columnsPlaceholder:(0,u.Ce)(),areaList:{type:Object,default:()=>({})},isOverseaCode:{type:Function,default:re}});var se=(0,a.aZ)({name:ee,props:ae,emits:["change","confirm","cancel"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),o=(0,T.qj)({code:e.value,columns:[{values:[]},{values:[]},{values:[]}]}),r=(0,a.Fl)((()=>{const{areaList:t}=e;return{province:t.province_list||{},city:t.city_list||{},county:t.county_list||{}}})),s=(0,a.Fl)((()=>{const{columnsPlaceholder:t}=e;return{province:t[0]||"",city:t[1]||"",county:t[2]||""}})),u=()=>{if(e.columnsPlaceholder.length)return ne;const{county:t,city:n}=r.value,i=Object.keys(t);if(i[0])return i[0];const o=Object.keys(n);return o[0]?o[0]:""},c=(t,n)=>{let i=[];if("province"!==t&&!n)return i;const o=r.value[t];if(i=Object.keys(o).map((e=>({code:e,name:o[e]}))),n&&("city"===t&&e.isOverseaCode(n)&&(n="9"),i=i.filter((e=>0===e.code.indexOf(n)))),s.value[t]&&i.length){let e="";"city"===t?e=ne.slice(2,4):"county"===t&&(e=ne.slice(4,6)),i.unshift({code:n+e,name:s.value[t]})}return i},d=(t,n)=>{let i=n.length;"province"===t&&(i=e.isOverseaCode(n)?1:2),"city"===t&&(i=4),n=n.slice(0,i);const o=c(t,i>2?n.slice(0,i-2):"");for(let e=0;e<o.length;e++)if(o[e].code.slice(0,i)===n)return e;return 0},h=()=>{const t=i.value;if(!t)return;let n=o.code||u();const r=c("province"),a=c("city",n.slice(0,2));t.setColumnValues(0,r),t.setColumnValues(1,a),a.length&&"00"===n.slice(2,4)&&!e.isOverseaCode(n)&&([{code:n}]=a),t.setColumnValues(2,c("county",n.slice(0,4))),t.setIndexes([d("province",n),d("city",n),d("county",n)])},f=t=>t.map(((t,n)=>(t&&(t=O(t),t.code&&t.name!==e.columnsPlaceholder[n]||(t.code="",t.name="")),t))),p=()=>{if(i.value){const e=i.value.getValues().filter(Boolean);return f(e)}return[]},g=()=>{const t=p(),n={code:"",country:"",province:"",city:"",county:""};if(!t.length)return n;const i=t.map((e=>e.name)),o=t.filter((e=>e.code));return n.code=o.length?o[o.length-1].code:"",e.isOverseaCode(n.code)?(n.country=i[1]||"",n.province=i[2]||""):(n.province=i[0]||"",n.city=i[1]||"",n.county=i[2]||""),n},v=(e="")=>{o.code=e,h()},m=(e,n)=>{if(o.code=e[n].code,h(),i.value){const e=f(i.value.getValues());t("change",e,n)}},y=(e,n)=>{h(),t("confirm",f(e),n)},x=(...e)=>t("cancel",...e);return(0,a.bv)(h),(0,a.YP)((()=>e.value),(e=>{o.code=e,h()})),(0,a.YP)((()=>e.areaList),h,{deep:!0}),(0,a.YP)((()=>e.columnsNum),(()=>(0,a.Y3)(h))),(0,D.F)({reset:v,getArea:g,getValues:p}),()=>{const t=o.columns.slice(0,+e.columnsNum);return(0,a.Wm)(Q,(0,a.dG)({ref:i,class:te(),columns:t,columnsFieldNames:{text:"name"},onChange:m,onCancel:x,onConfirm:y},(0,l.ei)(e,oe)),(0,l.ei)(n,ie))}}});const le=(0,r.n)(se);const[ue,ce]=(0,s["do"])("cell"),de={icon:String,size:String,title:u.Or,value:u.Or,label:u.Or,center:Boolean,isLink:Boolean,border:u.J5,required:Boolean,iconPrefix:String,valueClass:u.Vg,labelClass:u.Vg,titleClass:u.Vg,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}},he=(0,l.l7)({},de,h.g2);var fe=(0,a.aZ)({name:ue,props:he,setup(e,{slots:t}){const n=(0,h.yj)(),i=()=>{const n=t.label||(0,N.Xq)(e.label);if(n)return(0,a.Wm)("div",{class:[ce("label"),e.labelClass]},[t.label?t.label():e.label])},o=()=>{if(t.title||(0,N.Xq)(e.title))return(0,a.Wm)("div",{class:[ce("title"),e.titleClass],style:e.titleStyle},[t.title?t.title():(0,a.Wm)("span",null,[e.title]),i()])},r=()=>{const n=t.value||t.default,i=n||(0,N.Xq)(e.value);if(i){const i=t.title||(0,N.Xq)(e.title);return(0,a.Wm)("div",{class:[ce("value",{alone:!i}),e.valueClass]},[n?n():(0,a.Wm)("span",null,[e.value])])}},s=()=>t.icon?t.icon():e.icon?(0,a.Wm)(f.J,{name:e.icon,class:ce("left-icon"),classPrefix:e.iconPrefix},null):void 0,l=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const t=e.arrowDirection?`arrow-${e.arrowDirection}`:"arrow";return(0,a.Wm)(f.J,{name:t,class:ce("right-icon")},null)}};return()=>{var i,u;const{size:c,center:d,border:h,isLink:f,required:p}=e,g=null!=(i=e.clickable)?i:f,v={center:d,required:p,clickable:g,borderless:!h};return c&&(v[c]=!!c),(0,a.Wm)("div",{class:ce(v),role:g?"button":void 0,tabindex:g?0:void 0,onClick:n},[s(),o(),r(),l(),null==(u=t.extra)?void 0:u.call(t)])}}});const pe=(0,r.n)(fe);const[ge,ve]=(0,s["do"])("form"),me={colon:Boolean,disabled:Boolean,readonly:Boolean,showError:Boolean,labelWidth:u.Or,labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,submitOnEnter:u.J5,validateTrigger:(0,u.SQ)("onBlur"),showErrorMessage:u.J5,errorMessageAlign:String};var ye=(0,a.aZ)({name:ge,props:me,emits:["submit","failed"],setup(e,{emit:t,slots:n}){const{children:i,linkChildren:o}=(0,d.$E)(_.WN),r=e=>e?i.filter((t=>e.includes(t.name))):i,s=e=>new Promise(((t,n)=>{const i=[],o=r(e);o.reduce(((e,t)=>e.then((()=>{if(!i.length)return t.validate().then((e=>{e&&i.push(e)}))}))),Promise.resolve()).then((()=>{i.length?n(i):t()}))})),l=e=>new Promise(((t,n)=>{const i=r(e);Promise.all(i.map((e=>e.validate()))).then((e=>{e=e.filter(Boolean),e.length?n(e):t()}))})),u=e=>{const t=i.find((t=>t.name===e));return t?new Promise(((e,n)=>{t.validate().then((t=>{t?n(t):e()}))})):Promise.reject()},c=t=>"string"===typeof t?u(t):e.validateFirst?s(t):l(t),h=e=>{"string"===typeof e&&(e=[e]);const t=r(e);t.forEach((e=>{e.resetValidation()}))},f=(e,t)=>{i.some((n=>n.name===e&&(n.$el.scrollIntoView(t),!0)))},p=()=>i.reduce(((e,t)=>(e[t.name]=t.formValue.value,e)),{}),g=()=>{const n=p();c().then((()=>t("submit",n))).catch((i=>{t("failed",{values:n,errors:i}),e.scrollToError&&i[0].name&&f(i[0].name)}))},v=e=>{(0,V.PF)(e),g()};return o({props:e}),(0,D.F)({submit:g,validate:c,scrollToField:f,resetValidation:h}),()=>{var e;return(0,a.Wm)("form",{class:ve(),onSubmit:v},[null==(e=n.default)?void 0:e.call(n)])}}});const xe=(0,r.n)(ye);function _e(e){return Array.isArray(e)?!e.length:0!==e&&!e}function be(e,t){return(!t.required||!_e(e))&&!(t.pattern&&!t.pattern.test(String(e)))}function we(e,t){return new Promise((n=>{const i=t.validator(e,t);if((0,N.tI)(i))return i.then(n);n(i)}))}function Se(e,t){const{message:n}=t;return(0,N.mf)(n)?n(e,t):n||""}function Me({target:e}){e.composing=!0}function Ie({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function Ae(e,t){const n=(0,V.oD)();e.style.height="auto";let i=e.scrollHeight;if((0,N.Kn)(t)){const{maxHeight:e,minHeight:n}=t;void 0!==e&&(i=Math.min(i,e)),void 0!==n&&(i=Math.max(i,n))}i&&(e.style.height=`${i}px`,(0,V.kn)(n))}function ke(e){return"number"===e?{type:"text",inputmode:"decimal"}:"digit"===e?{type:"tel",inputmode:"numeric"}:{type:e}}function Pe(e){return[...e].length}function Ce(e,t){return[...e].slice(0,t).join("")}let Ee=0;function Te(){const e=(0,a.FN)(),{name:t="unknown"}=(null==e?void 0:e.type)||{};return`${t}-${++Ee}`}const[Ne,De]=(0,s["do"])("field"),Oe={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:u.Or,formatter:Function,clearIcon:(0,u.SQ)("clear"),modelValue:(0,u.SI)(""),inputAlign:String,placeholder:String,autocomplete:String,errorMessage:String,clearTrigger:(0,u.SQ)("focus"),formatTrigger:(0,u.SQ)("onChange"),error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null}},Le=(0,l.l7)({},de,Oe,{rows:u.Or,type:(0,u.SQ)("text"),rules:Array,autosize:[Boolean,Object],labelWidth:u.Or,labelClass:u.Vg,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var Ve=(0,a.aZ)({name:Ne,props:Le,emits:["blur","focus","clear","keypress","click-input","click-left-icon","click-right-icon","update:modelValue"],setup(e,{emit:t,slots:n}){const i=Te(),o=(0,T.qj)({focused:!1,validateFailed:!1,validateMessage:""}),r=(0,T.iH)(),s=(0,T.iH)(),{parent:l}=(0,d.NB)(_.WN),u=()=>{var t;return String(null!=(t=e.modelValue)?t:"")},c=t=>(0,N.Xq)(e[t])?e[t]:l&&(0,N.Xq)(l.props[t])?l.props[t]:void 0,h=(0,a.Fl)((()=>{const t=c("readonly");if(e.clearable&&!t){const t=""!==u(),n="always"===e.clearTrigger||"focus"===e.clearTrigger&&o.focused;return t&&n}return!1})),p=(0,a.Fl)((()=>s.value&&n.input?s.value():e.modelValue)),g=e=>e.reduce(((e,t)=>e.then((()=>{if(o.validateFailed)return;let{value:e}=p;return t.formatter&&(e=t.formatter(e,t)),be(e,t)?t.validator?we(e,t).then((n=>{n&&"string"===typeof n?(o.validateFailed=!0,o.validateMessage=n):!1===n&&(o.validateFailed=!0,o.validateMessage=Se(e,t))})):void 0:(o.validateFailed=!0,void(o.validateMessage=Se(e,t)))}))),Promise.resolve()),v=()=>{o.validateFailed&&(o.validateFailed=!1,o.validateMessage="")},m=(t=e.rules)=>new Promise((n=>{v(),t?g(t).then((()=>{o.validateFailed?n({name:e.name,message:o.validateMessage}):n()})):n()})),y=t=>{if(l&&e.rules){const n=l.props.validateTrigger===t,i=e.rules.filter((e=>e.trigger?e.trigger===t:n));i.length&&m(i)}},x=t=>{const{maxlength:n}=e;if((0,N.Xq)(n)&&Pe(t)>n){const e=u();return e&&Pe(e)===+n?e:Ce(t,+n)}return t},b=(n,i="onChange")=>{if(n=x(n),"number"===e.type||"digit"===e.type){const t="number"===e.type;n=(0,L.uf)(n,t,t)}e.formatter&&i===e.formatTrigger&&(n=e.formatter(n)),r.value&&r.value.value!==n&&(r.value.value=n),n!==e.modelValue&&t("update:modelValue",n)},w=e=>{e.target.composing||b(e.target.value)},S=()=>{var e;return null==(e=r.value)?void 0:e.blur()},M=()=>{var e;return null==(e=r.value)?void 0:e.focus()},I=()=>{const t=r.value;"textarea"===e.type&&e.autosize&&t&&Ae(t,e.autosize)},A=e=>{o.focused=!0,t("focus",e),(0,a.Y3)(I),c("readonly")&&S()},k=e=>{c("readonly")||(o.focused=!1,b(u(),"onBlur"),t("blur",e),y("onBlur"),(0,a.Y3)(I),(0,V.pe)())},P=e=>t("click-input",e),C=e=>t("click-left-icon",e),E=e=>t("click-right-icon",e),O=e=>{(0,V.PF)(e),t("update:modelValue",""),t("clear",e)},R=(0,a.Fl)((()=>"boolean"===typeof e.error?e.error:!!(l&&l.props.showError&&o.validateFailed)||void 0)),B=(0,a.Fl)((()=>{const e=c("labelWidth");if(e)return{width:(0,L.Nn)(e)}})),z=n=>{const i=13;if(n.keyCode===i){const t=l&&l.props.submitOnEnter;t||"textarea"===e.type||(0,V.PF)(n),"search"===e.type&&S()}t("keypress",n)},W=()=>e.id||`${i}-input`,F=()=>{const t=De("control",[c("inputAlign"),{error:R.value,custom:!!n.input,"min-height":"textarea"===e.type&&!e.autosize}]);if(n.input)return(0,a.Wm)("div",{class:t,onClick:P},[n.input()]);const o={id:W(),ref:r,name:e.name,rows:void 0!==e.rows?+e.rows:void 0,class:t,value:e.modelValue,disabled:c("disabled"),readonly:c("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,"aria-labelledby":e.label?`${i}-label`:void 0,onBlur:k,onFocus:A,onInput:w,onClick:P,onChange:Ie,onKeypress:z,onCompositionend:Ie,onCompositionstart:Me};return"textarea"===e.type?(0,a.Wm)("textarea",o,null):(0,a.Wm)("input",(0,a.dG)(ke(e.type),o),null)},U=()=>{const t=n["left-icon"];if(e.leftIcon||t)return(0,a.Wm)("div",{class:De("left-icon"),onClick:C},[t?t():(0,a.Wm)(f.J,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},$=()=>{const t=n["right-icon"];if(e.rightIcon||t)return(0,a.Wm)("div",{class:De("right-icon"),onClick:E},[t?t():(0,a.Wm)(f.J,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},H=()=>{if(e.showWordLimit&&e.maxlength){const t=Pe(u());return(0,a.Wm)("div",{class:De("word-limit")},[(0,a.Wm)("span",{class:De("word-num")},[t]),(0,a.Uk)("/"),e.maxlength])}},j=()=>{if(l&&!1===l.props.showErrorMessage)return;const t=e.errorMessage||o.validateMessage;if(t){const e=n["error-message"],i=c("errorMessageAlign");return(0,a.Wm)("div",{class:De("error-message",i)},[e?e({message:t}):t])}},G=()=>{const t=c("colon")?":":"";return n.label?[n.label(),t]:e.label?(0,a.Wm)("label",{id:`${i}-label`,for:W()},[e.label+t]):void 0},Y=()=>[(0,a.Wm)("div",{class:De("body")},[F(),h.value&&(0,a.Wm)(f.J,{name:e.clearIcon,class:De("clear"),onTouchstart:O},null),$(),n.button&&(0,a.Wm)("div",{class:De("button")},[n.button()])]),H(),j()];return(0,D.F)({blur:S,focus:M,validate:m,formValue:p,resetValidation:v}),(0,a.JJ)(d.F1,{customValue:s,resetValidation:v,validateWithTrigger:y}),(0,a.YP)((()=>e.modelValue),(()=>{b(u()),v(),y("onChange"),(0,a.Y3)(I)})),(0,a.bv)((()=>{b(u(),e.formatTrigger),(0,a.Y3)(I)})),()=>{const t=c("disabled"),i=c("labelAlign"),o=G(),r=U();return(0,a.Wm)(pe,{size:e.size,icon:e.leftIcon,class:De({error:R.value,disabled:t,[`label-${i}`]:i}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:B.value,valueClass:De("value"),titleClass:[De("label",[i,{required:e.required}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:r?()=>r:null,title:o?()=>o:null,value:Y,extra:n.extra})}}});const Re=(0,r.n)(Ve);var Be=n(24530),ze=n(180);const[We,Fe]=(0,s["do"])("switch"),Ue={size:u.Or,loading:Boolean,disabled:Boolean,modelValue:u.Vg,activeColor:String,inactiveColor:String,activeValue:{type:u.Vg,default:!0},inactiveValue:{type:u.Vg,default:!1}};var $e=(0,a.aZ)({name:We,props:Ue,emits:["change","update:modelValue"],setup(e,{emit:t}){const n=()=>e.modelValue===e.activeValue,i=()=>{if(!e.disabled&&!e.loading){const i=n()?e.inactiveValue:e.activeValue;t("update:modelValue",i),t("change",i)}},o=()=>{if(e.loading){const t=n()?e.activeColor:e.inactiveColor;return(0,a.Wm)(w.g,{class:Fe("loading"),color:t},null)}};return(0,d.aM)((()=>e.modelValue)),()=>{const{size:t,loading:r,disabled:s,activeColor:l,inactiveColor:u}=e,c=n(),d={fontSize:(0,L.Nn)(t),backgroundColor:c?l:u};return(0,a.Wm)("div",{role:"switch",class:Fe({on:c,loading:r,disabled:s}),style:d,tabindex:s?void 0:0,"aria-checked":c,onClick:i},[(0,a.Wm)("div",{class:Fe("node")},[o()])])}}});const He=(0,r.n)($e);const[je,Ge]=(0,s["do"])("address-edit-detail"),Ye=(0,s["do"])("address-edit")[2];var Ze=(0,a.aZ)({name:je,props:{show:Boolean,rows:u.Or,value:String,rules:Array,focused:Boolean,maxlength:u.Or,searchResult:Array,showSearchResult:Boolean},emits:["blur","focus","input","select-search"],setup(e,{emit:t}){const n=(0,T.iH)(),i=()=>e.focused&&e.searchResult&&e.showSearchResult,o=e=>{t("select-search",e),t("input",`${e.address||""} ${e.name||""}`.trim())},r=t=>{if(t.name){const n=t.name.replace(e.value,`<span class=${Ge("keyword")}>${e.value}</span>`);return(0,a.Wm)("div",{innerHTML:n},null)}},s=()=>{if(!i())return;const{searchResult:t}=e;return t.map((e=>(0,a.Wm)(pe,{clickable:!0,key:e.name+e.address,icon:"location-o",label:e.address,class:Ge("search-item"),border:!1,onClick:()=>o(e)},{title:()=>r(e)})))},l=e=>t("blur",e),u=e=>t("focus",e),c=e=>t("input",e);return()=>{if(e.show)return(0,a.Wm)(a.HY,null,[(0,a.Wm)(Re,{autosize:!0,clearable:!0,ref:n,class:Ge(),rows:e.rows,type:"textarea",rules:e.rules,label:Ye("addressDetail"),border:!i(),maxlength:e.maxlength,modelValue:e.value,placeholder:Ye("addressDetail"),onBlur:l,onFocus:u,"onUpdate:modelValue":c},null),s()])}}});const[qe,Xe,Je]=(0,s["do"])("address-edit"),Ke={name:"",tel:"",city:"",county:"",country:"",province:"",areaCode:"",isDefault:!1,postalCode:"",addressDetail:""},Qe=e=>/^\d{6}$/.test(e),et={areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showArea:u.J5,showDetail:u.J5,showDelete:Boolean,showPostal:Boolean,disableArea:Boolean,searchResult:Array,telMaxlength:u.Or,showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,detailRows:(0,u.SI)(1),detailMaxlength:(0,u.SI)(200),areaColumnsPlaceholder:(0,u.Ce)(),addressInfo:{type:Object,default:()=>(0,l.l7)({},Ke)},telValidator:{type:Function,default:N.tq},postalValidator:{type:Function,default:Qe}};var tt=(0,a.aZ)({name:qe,props:et,emits:["save","focus","delete","click-area","change-area","change-detail","select-search","change-default"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),o=(0,T.qj)({}),r=(0,T.iH)(!1),s=(0,T.iH)(!1),u=(0,a.Fl)((()=>(0,N.Kn)(e.areaList)&&Object.keys(e.areaList).length)),c=(0,a.Fl)((()=>{const{country:e,province:t,city:n,county:i,areaCode:r}=o;if(r){const o=[e,t,n,i];return t&&t===n&&o.splice(1,1),o.filter(Boolean).join("/")}return""})),d=(0,a.Fl)((()=>{var t;return(null==(t=e.searchResult)?void 0:t.length)&&s.value})),h=()=>{if(i.value){const e=i.value.getArea();e.areaCode=e.code,delete e.code,(0,l.l7)(o,e)}},f=e=>{s.value="addressDetail"===e,t("focus",e)},p=(0,a.Fl)((()=>{const{validator:t,telValidator:n,postalValidator:i}=e,o=(e,n)=>({validator:i=>{if(t){const n=t(e,i);if(n)return n}return!!i||n}});return{name:[o("name",Je("nameEmpty"))],tel:[o("tel",Je("telInvalid")),{validator:n,message:Je("telInvalid")}],areaCode:[o("areaCode",Je("areaEmpty"))],addressDetail:[o("addressDetail",Je("addressEmpty"))],postalCode:[o("addressDetail",Je("postalEmpty")),{validator:i,message:Je("postalEmpty")}]}})),g=()=>t("save",o),v=e=>{o.addressDetail=e,t("change-detail",e)},m=e=>{e=e.filter(Boolean),e.some((e=>!e.code))?(0,Be.F)(Je("areaEmpty")):(r.value=!1,h(),t("change-area",e))},y=()=>t("delete",o),x=()=>{var e;return(null==(e=i.value)?void 0:e.getValues())||[]},_=e=>{o.areaCode=e||"",e&&(0,a.Y3)(h)},w=()=>{setTimeout((()=>{s.value=!1}))},S=e=>{o.addressDetail=e},M=()=>{if(e.showSetDefault){const e={"right-icon":()=>(0,a.Wm)(He,{modelValue:o.isDefault,"onUpdate:modelValue":e=>o.isDefault=e,size:"24",onChange:e=>t("change-default",e)},null)};return(0,a.wy)((0,a.Wm)(pe,{center:!0,title:Je("defaultAddress"),class:Xe("default")},e),[[E.F8,!d.value]])}};return(0,D.F)({getArea:x,setAreaCode:_,setAddressDetail:S}),(0,a.YP)((()=>e.areaList),(()=>_(o.areaCode))),(0,a.YP)((()=>e.addressInfo),(e=>{(0,l.l7)(o,Ke,e),_(e.areaCode)}),{deep:!0,immediate:!0}),()=>{const{disableArea:l}=e;return(0,a.Wm)(xe,{class:Xe(),onSubmit:g},{default:()=>{var h;return[(0,a.Wm)("div",{class:Xe("fields")},[(0,a.Wm)(Re,{modelValue:o.name,"onUpdate:modelValue":e=>o.name=e,clearable:!0,label:Je("name"),rules:p.value.name,placeholder:Je("name"),onFocus:()=>f("name")},null),(0,a.Wm)(Re,{modelValue:o.tel,"onUpdate:modelValue":e=>o.tel=e,clearable:!0,type:"tel",label:Je("tel"),rules:p.value.tel,maxlength:e.telMaxlength,placeholder:Je("tel"),onFocus:()=>f("tel")},null),(0,a.wy)((0,a.Wm)(Re,{readonly:!0,label:Je("area"),"is-link":!l,modelValue:c.value,rules:p.value.areaCode,placeholder:e.areaPlaceholder||Je("area"),onFocus:()=>f("areaCode"),onClick:()=>{t("click-area"),r.value=!l}},null),[[E.F8,e.showArea]]),(0,a.Wm)(Ze,{show:e.showDetail,rows:e.detailRows,rules:p.value.addressDetail,value:o.addressDetail,focused:s.value,maxlength:e.detailMaxlength,searchResult:e.searchResult,showSearchResult:e.showSearchResult,onBlur:w,onFocus:()=>f("addressDetail"),onInput:v,"onSelect-search":e=>t("select-search",e)},null),e.showPostal&&(0,a.wy)((0,a.Wm)(Re,{modelValue:o.postalCode,"onUpdate:modelValue":e=>o.postalCode=e,type:"tel",rules:p.value.postalCode,label:Je("postal"),maxlength:"6",placeholder:Je("postal"),onFocus:()=>f("postalCode")},null),[[E.F8,!d.value]]),null==(h=n.default)?void 0:h.call(n)]),M(),(0,a.wy)((0,a.Wm)("div",{class:Xe("buttons")},[(0,a.Wm)(ze.z,{block:!0,round:!0,type:"danger",text:e.saveButtonText||Je("save"),class:Xe("button"),loading:e.isSaving,nativeType:"submit"},null),e.showDelete&&(0,a.Wm)(ze.z,{block:!0,round:!0,class:Xe("button"),loading:e.isDeleting,text:e.deleteButtonText||Je("delete"),onClick:y},null)]),[[E.F8,!d.value]]),(0,a.Wm)(b.G,{show:r.value,"onUpdate:show":e=>r.value=e,round:!0,teleport:"body",position:"bottom",lazyRender:!1},{default:()=>[(0,a.Wm)(le,{ref:i,value:o.areaCode,loading:!u.value,areaList:e.areaList,columnsPlaceholder:e.areaColumnsPlaceholder,onConfirm:m,onCancel:()=>{r.value=!1}},null)]})]}})}}});const nt=(0,r.n)(tt);const[it,ot]=(0,s["do"])("radio-group"),rt={disabled:Boolean,iconSize:u.Or,direction:String,modelValue:u.Vg,checkedColor:String},at=Symbol(it);var st=(0,a.aZ)({name:it,props:rt,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:i}=(0,d.$E)(at),o=e=>t("update:modelValue",e);return(0,a.YP)((()=>e.modelValue),(e=>t("change",e))),i({props:e,updateValue:o}),(0,d.aM)((()=>e.modelValue)),()=>{var t;return(0,a.Wm)("div",{class:ot([e.direction]),role:"radiogroup"},[null==(t=n.default)?void 0:t.call(n)])}}});const lt=(0,r.n)(st);const[ut,ct]=(0,s["do"])("tag"),dt={size:String,mark:Boolean,show:u.J5,type:(0,u.SQ)("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var ht=(0,a.aZ)({name:ut,props:dt,emits:["close"],setup(e,{slots:t,emit:n}){const i=e=>{e.stopPropagation(),n("close",e)},o=()=>e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},r=()=>{var n;const{type:r,mark:s,plain:l,round:u,size:c,closeable:d}=e,h={mark:s,plain:l,round:u};c&&(h[c]=c);const p=d&&(0,a.Wm)(f.J,{name:"cross",class:[ct("close"),_.e9],onClick:i},null);return(0,a.Wm)("span",{style:o(),class:ct([h,r])},[null==(n=t.default)?void 0:n.call(t),p])};return()=>(0,a.Wm)(E.uT,{name:e.closeable?"van-fade":void 0},{default:()=>[e.show?r():null]})}});const ft=(0,r.n)(ht);const pt={name:u.Vg,shape:(0,u.SQ)("round"),disabled:Boolean,iconSize:u.Or,modelValue:u.Vg,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var gt=(0,a.aZ)({props:(0,l.l7)({},pt,{bem:(0,u.ir)(Function),role:String,parent:Object,checked:Boolean,bindGroup:u.J5}),emits:["click","toggle"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),o=t=>{if(e.parent&&e.bindGroup)return e.parent.props[t]},r=(0,a.Fl)((()=>o("disabled")||e.disabled)),s=(0,a.Fl)((()=>o("direction"))),l=(0,a.Fl)((()=>{const t=e.checkedColor||o("checkedColor");if(t&&e.checked&&!r.value)return{borderColor:t,backgroundColor:t}})),u=n=>{const{target:o}=n,a=i.value,s=a===o||(null==a?void 0:a.contains(o));r.value||!s&&e.labelDisabled||t("toggle"),t("click",n)},c=()=>{const{bem:t,shape:s,checked:u}=e,c=e.iconSize||o("iconSize");return(0,a.Wm)("div",{ref:i,class:t("icon",[s,{disabled:r.value,checked:u}]),style:{fontSize:(0,L.Nn)(c)}},[n.icon?n.icon({checked:u,disabled:r.value}):(0,a.Wm)(f.J,{name:"success",style:l.value},null)])},d=()=>{if(n.default)return(0,a.Wm)("span",{class:e.bem("label",[e.labelPosition,{disabled:r.value}])},[n.default()])};return()=>{const t="left"===e.labelPosition?[d(),c()]:[c(),d()];return(0,a.Wm)("div",{role:e.role,class:e.bem([{disabled:r.value,"label-disabled":e.labelDisabled},s.value]),tabindex:r.value?void 0:0,"aria-checked":e.checked,onClick:u},[t])}}});const[vt,mt]=(0,s["do"])("radio");var yt=(0,a.aZ)({name:vt,props:pt,emits:["update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:i}=(0,d.NB)(at),o=()=>{const t=i?i.props.modelValue:e.modelValue;return t===e.name},r=()=>{i?i.updateValue(e.name):t("update:modelValue",e.name)};return()=>(0,a.Wm)(gt,(0,a.dG)({bem:mt,role:"radio",parent:i,checked:o(),onToggle:r},e),(0,l.ei)(n,["default","icon"]))}});const xt=(0,r.n)(yt);const[_t,bt]=(0,s["do"])("address-item");var wt=(0,a.aZ)({name:_t,props:{address:(0,u.ir)(Object),disabled:Boolean,switchable:Boolean,defaultTagText:String},emits:["edit","click","select"],setup(e,{slots:t,emit:n}){const i=()=>{e.switchable&&n("select"),n("click")},o=()=>(0,a.Wm)(f.J,{name:"edit",class:bt("edit"),onClick:e=>{e.stopPropagation(),n("edit"),n("click")}},null),r=()=>t.tag?t.tag(e.address):e.address.isDefault&&e.defaultTagText?(0,a.Wm)(ft,{type:"danger",round:!0,class:bt("tag")},{default:()=>[e.defaultTagText]}):void 0,s=()=>{const{address:t,disabled:n,switchable:i}=e,o=[(0,a.Wm)("div",{class:bt("name")},[`${t.name} ${t.tel}`,r()]),(0,a.Wm)("div",{class:bt("address")},[t.address])];return i&&!n?(0,a.Wm)(xt,{name:t.id,iconSize:18},{default:()=>[o]}):o};return()=>{var n;const{disabled:r}=e;return(0,a.Wm)("div",{class:bt({disabled:r}),onClick:i},[(0,a.Wm)(pe,{border:!1,valueClass:bt("value")},{value:s,"right-icon":o}),null==(n=t.bottom)?void 0:n.call(t,(0,l.l7)({},e.address,{disabled:r}))])}}});const[St,Mt,It]=(0,s["do"])("address-list"),At={list:(0,u.Ce)(),modelValue:u.Or,switchable:u.J5,disabledText:String,disabledList:(0,u.Ce)(),addButtonText:String,defaultTagText:String};var kt=(0,a.aZ)({name:St,props:At,emits:["add","edit","select","click-item","edit-disabled","select-disabled","update:modelValue"],setup(e,{slots:t,emit:n}){const i=(i,o,r)=>{const s=()=>n(r?"edit-disabled":"edit",i,o),l=()=>n("click-item",i,o),u=()=>{n(r?"select-disabled":"select",i,o),r||n("update:modelValue",i.id)};return(0,a.Wm)(wt,{key:i.id,address:i,disabled:r,switchable:e.switchable,defaultTagText:e.defaultTagText,onEdit:s,onClick:l,onSelect:u},{bottom:t["item-bottom"],tag:t.tag})},o=(e,t)=>{if(e)return e.map(((e,n)=>i(e,n,t)))},r=()=>(0,a.Wm)("div",{class:[Mt("bottom"),"van-safe-area-bottom"]},[(0,a.Wm)(ze.z,{round:!0,block:!0,type:"danger",text:e.addButtonText||It("add"),class:Mt("add"),onClick:()=>n("add")},null)]);return()=>{var n,i;const s=o(e.list),l=o(e.disabledList,!0),u=e.disabledText&&(0,a.Wm)("div",{class:Mt("disabled-text")},[e.disabledText]);return(0,a.Wm)("div",{class:Mt()},[null==(n=t.top)?void 0:n.call(t),(0,a.Wm)(lt,{modelValue:e.modelValue},{default:()=>[s]}),u,l,null==(i=t.default)?void 0:i.call(t),r()])}}});const Pt=(0,r.n)(kt);const[Ct,Et,Tt]=(0,s["do"])("calendar"),Nt=e=>Tt("monthTitle",e.getFullYear(),e.getMonth()+1);function Dt(e,t){const n=e.getFullYear(),i=t.getFullYear();if(n===i){const n=e.getMonth(),i=t.getMonth();return n===i?0:n>i?1:-1}return n>i?1:-1}function Ot(e,t){const n=Dt(e,t);if(0===n){const n=e.getDate(),i=t.getDate();return n===i?0:n>i?1:-1}return n}const Lt=e=>new Date(e),Vt=e=>Array.isArray(e)?e.map(Lt):Lt(e);function Rt(e,t){const n=Lt(e);return n.setDate(n.getDate()+t),n}const Bt=e=>Rt(e,-1),zt=e=>Rt(e,1),Wt=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function Ft(e){const t=e[0].getTime(),n=e[1].getTime();return(n-t)/864e5+1}function Ut(){const e=(0,T.iH)([]),t=[];(0,a.Xn)((()=>{e.value=[]}));const n=n=>(t[n]||(t[n]=t=>{e.value[n]=t}),t[n]);return[e,n]}const $t=(0,l.l7)({},X,{filter:Function,columnsOrder:Array,formatter:{type:Function,default:(e,t)=>t}}),Ht=Object.keys(X);function jt(e,t){if(e<0)return[];const n=Array(e);let i=-1;while(++i<e)n[i]=t(i);return n}function Gt(e){if(!e)return 0;while(Number.isNaN(parseInt(e,10))){if(!(e.length>1))return 0;e=e.slice(1)}return parseInt(e,10)}const Yt=(e,t)=>32-new Date(e,t-1,32).getDate(),Zt=(e,t)=>{const n=["setValues","setIndexes","setColumnIndex","setColumnValue"];return new Proxy(e,{get:(e,i)=>n.includes(i)?(...n)=>{e[i](...n),t()}:e[i]})},qt=e=>{const t=(0,T.iH)(),n=()=>{t.value=(0,d.EL)(e).height};return(0,a.bv)((()=>{(0,a.Y3)(n),setTimeout(n,100)})),t},[Xt]=(0,s["do"])("calendar-day");var Jt=(0,a.aZ)({name:Xt,props:{item:(0,u.ir)(Object),color:String,index:Number,offset:(0,u.qM)(0),rowHeight:String},emits:["click"],setup(e,{emit:t,slots:n}){const i=(0,a.Fl)((()=>{const{item:t,index:n,color:i,offset:o,rowHeight:r}=e,a={height:r};if("placeholder"===t.type)return a.width="100%",a;if(0===n&&(a.marginLeft=100*o/7+"%"),i)switch(t.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":a.background=i;break;case"middle":a.color=i;break}return a})),o=()=>{"disabled"!==e.item.type&&t("click",e.item)},r=()=>{const{topInfo:t}=e.item;if(t||n["top-info"])return(0,a.Wm)("div",{class:Et("top-info")},[n["top-info"]?n["top-info"](e.item):t])},s=()=>{const{bottomInfo:t}=e.item;if(t||n["bottom-info"])return(0,a.Wm)("div",{class:Et("bottom-info")},[n["bottom-info"]?n["bottom-info"](e.item):t])},l=()=>{const{item:t,color:n,rowHeight:i}=e,{type:o,text:l}=t,u=[r(),l,s()];return"selected"===o?(0,a.Wm)("div",{class:Et("selected-day"),style:{width:i,height:i,background:n}},[u]):u};return()=>{const{type:t,className:n}=e.item;return"placeholder"===t?(0,a.Wm)("div",{class:Et("day"),style:i.value},null):(0,a.Wm)("div",{role:"gridcell",style:i.value,class:[Et("day",t),n],tabindex:"disabled"===t?void 0:-1,onClick:o},[l()])}}});const[Kt]=(0,s["do"])("calendar-month"),Qt={date:(0,u.ir)(Date),type:String,color:String,minDate:(0,u.ir)(Date),maxDate:(0,u.ir)(Date),showMark:Boolean,rowHeight:u.Or,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var en=(0,a.aZ)({name:Kt,props:Qt,emits:["click","update-height"],setup(e,{emit:t,slots:n}){const[i,o]=(0,d.OT)(),r=(0,T.iH)(),s=(0,T.iH)(),u=qt(s),c=(0,a.Fl)((()=>Nt(e.date))),h=(0,a.Fl)((()=>(0,L.Nn)(e.rowHeight))),f=(0,a.Fl)((()=>{const t=e.date.getDay();return e.firstDayOfWeek?(t+7-e.firstDayOfWeek)%7:t})),p=(0,a.Fl)((()=>Yt(e.date.getFullYear(),e.date.getMonth()+1))),g=(0,a.Fl)((()=>i.value||!e.lazyRender)),v=()=>c.value,m=t=>{const n=t=>e.currentDate.some((e=>0===Ot(e,t)));if(n(t)){const e=Bt(t),i=zt(t),o=n(e),r=n(i);return o&&r?"multiple-middle":o?"end":r?"start":"multiple-selected"}return""},y=t=>{const[n,i]=e.currentDate;if(!n)return"";const o=Ot(t,n);if(!i)return 0===o?"start":"";const r=Ot(t,i);return e.allowSameDay&&0===o&&0===r?"start-end":0===o?"start":0===r?"end":o>0&&r<0?"middle":""},x=t=>{const{type:n,minDate:i,maxDate:o,currentDate:r}=e;if(Ot(t,i)<0||Ot(t,o)>0)return"disabled";if(null===r)return"";if(Array.isArray(r)){if("multiple"===n)return m(t);if("range"===n)return y(t)}else if("single"===n)return 0===Ot(t,r)?"selected":"";return""},_=t=>{if("range"===e.type){if("start"===t||"end"===t)return Tt(t);if("start-end"===t)return`${Tt("start")}/${Tt("end")}`}},b=()=>{if(e.showMonthTitle)return(0,a.Wm)("div",{class:Et("month-title")},[c.value])},w=()=>{if(e.showMark&&g.value)return(0,a.Wm)("div",{class:Et("month-mark")},[e.date.getMonth()+1])},S=(0,a.Fl)((()=>{const e=Math.ceil((p.value+f.value)/7);return Array(e).fill({type:"placeholder"})})),M=(0,a.Fl)((()=>{const t=[],n=e.date.getFullYear(),i=e.date.getMonth();for(let o=1;o<=p.value;o++){const r=new Date(n,i,o),a=x(r);let s={date:r,type:a,text:o,bottomInfo:_(a)};e.formatter&&(s=e.formatter(s)),t.push(s)}return t})),I=(0,a.Fl)((()=>M.value.filter((e=>"disabled"===e.type)))),A=(e,t)=>{if(r.value){const n=(0,d.EL)(r.value),i=S.value.length,o=Math.ceil((t.getDate()+f.value)/7),a=(o-1)*n.height/i;(0,V.QU)(e,n.top+a+e.scrollTop-(0,d.EL)(e).top)}},k=(i,o)=>(0,a.Wm)(Jt,{item:i,index:o,color:e.color,offset:f.value,rowHeight:h.value,onClick:e=>t("click",e)},(0,l.ei)(n,["top-info","bottom-info"])),P=()=>(0,a.Wm)("div",{ref:r,role:"grid",class:Et("days")},[w(),(g.value?M:S).value.map(k)]);return(0,D.F)({getTitle:v,getHeight:()=>u.value,setVisible:o,scrollToDate:A,disabledDays:I}),()=>(0,a.Wm)("div",{class:Et("month"),ref:s},[b(),P()])}});const[tn]=(0,s["do"])("calendar-header");var nn=(0,a.aZ)({name:tn,props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},emits:["click-subtitle"],setup(e,{slots:t,emit:n}){const i=()=>{if(e.showTitle){const n=e.title||Tt("title"),i=t.title?t.title():n;return(0,a.Wm)("div",{class:Et("header-title")},[i])}},o=e=>n("click-subtitle",e),r=()=>{if(e.showSubtitle){const n=t.subtitle?t.subtitle():e.subtitle;return(0,a.Wm)("div",{class:Et("header-subtitle"),onClick:o},[n])}},s=()=>{const{firstDayOfWeek:t}=e,n=Tt("weekdays"),i=[...n.slice(t,7),...n.slice(0,t)];return(0,a.Wm)("div",{class:Et("weekdays")},[i.map((e=>(0,a.Wm)("span",{class:Et("weekday")},[e])))])};return()=>(0,a.Wm)("div",{class:Et("header")},[i(),r(),s()])}});const on={show:Boolean,type:(0,u.SQ)("single"),title:String,color:String,round:u.J5,readonly:Boolean,poppable:u.J5,maxRange:(0,u.SI)(null),position:(0,u.SQ)("bottom"),teleport:[String,Object],showMark:u.J5,showTitle:u.J5,formatter:Function,rowHeight:u.Or,confirmText:String,rangePrompt:String,lazyRender:u.J5,showConfirm:u.J5,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:u.J5,closeOnPopstate:u.J5,showRangePrompt:u.J5,confirmDisabledText:String,closeOnClickOverlay:u.J5,safeAreaInsetBottom:u.J5,minDate:{type:Date,validator:N.J_,default:Wt},maxDate:{type:Date,validator:N.J_,default:()=>{const e=Wt();return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},firstDayOfWeek:{type:u.Or,default:0,validator:e=>e>=0&&e<=6}};var rn=(0,a.aZ)({name:Ct,props:on,emits:["select","confirm","unselect","month-show","over-range","update:show","click-subtitle"],setup(e,{emit:t,slots:n}){const i=(t,n=e.minDate,i=e.maxDate)=>-1===Ot(t,n)?n:1===Ot(t,i)?i:t,o=(t=e.defaultDate)=>{const{type:n,minDate:o,maxDate:r}=e;if(null===t)return t;const a=Wt();if("range"===n){Array.isArray(t)||(t=[]);const e=i(t[0]||a,o,Bt(r)),n=i(t[1]||a,zt(o));return[e,n]}return"multiple"===n?Array.isArray(t)?t.map((e=>i(e))):[i(a)]:(t&&!Array.isArray(t)||(t=a),i(t))};let r;const s=(0,T.iH)(),u=(0,T.iH)(""),c=(0,T.iH)(o()),[h,f]=Ut(),p=(0,a.Fl)((()=>e.firstDayOfWeek?+e.firstDayOfWeek%7:0)),g=(0,a.Fl)((()=>{const t=[],n=new Date(e.minDate);n.setDate(1);do{t.push(new Date(n)),n.setMonth(n.getMonth()+1)}while(1!==Dt(n,e.maxDate));return t})),v=(0,a.Fl)((()=>{if(c.value){if("range"===e.type)return!c.value[0]||!c.value[1];if("multiple"===e.type)return!c.value.length}return!c.value})),m=()=>{const e=(0,V.cx)(s.value),n=e+r,i=g.value.map(((e,t)=>h.value[t].getHeight())),o=i.reduce(((e,t)=>e+t),0);if(n>o&&e>0)return;let a,l=0;const c=[-1,-1];for(let r=0;r<g.value.length;r++){const o=h.value[r],s=l<=n&&l+i[r]>=e;s&&(c[1]=r,a||(a=o,c[0]=r),h.value[r].showed||(h.value[r].showed=!0,t("month-show",{date:o.date,title:o.getTitle()}))),l+=i[r]}g.value.forEach(((e,t)=>{const n=t>=c[0]-1&&t<=c[1]+1;h.value[t].setVisible(n)})),a&&(u.value=a.getTitle())},y=e=>{(0,d.Wn)((()=>{g.value.some(((t,n)=>0===Dt(t,e)&&(s.value&&h.value[n].scrollToDate(s.value,e),!0))),m()}))},x=()=>{if(!e.poppable||e.show)if(c.value){const t="single"===e.type?c.value:c.value[0];y(t)}else(0,d.Wn)(m)},_=()=>{e.poppable&&!e.show||(0,d.Wn)((()=>{r=Math.floor((0,d.EL)(s).height),x()}))},w=(e=o())=>{c.value=e,x()},S=n=>{const{maxRange:i,rangePrompt:o,showRangePrompt:r}=e;return!(i&&Ft(n)>i)||(r&&(0,Be.F)(o||Tt("rangePrompt",i)),t("over-range"),!1)},M=()=>{var e;return t("confirm",null!=(e=c.value)?e:Vt(c.value))},I=(n,i)=>{const o=e=>{c.value=e,t("select",Vt(e))};if(i&&"range"===e.type){const t=S(n);if(!t)return void o([n[0],Rt(n[0],+e.maxRange-1)])}o(n),i&&!e.showConfirm&&M()},A=(e,t,n)=>{var i;return null==(i=e.find((e=>-1===Ot(t,e.date)&&-1===Ot(e.date,n))))?void 0:i.date},k=(0,a.Fl)((()=>h.value.reduce(((e,t)=>{var n,i;return e.push(...null!=(i=null==(n=t.disabledDays)?void 0:n.value)?i:[]),e}),[]))),P=n=>{if(e.readonly||!n.date)return;const{date:i}=n,{type:o}=e;if("range"===o){if(!c.value)return void I([i]);const[t,n]=c.value;if(t&&!n){const n=Ot(i,t);if(1===n){const e=A(k.value,t,i);if(e){const n=Bt(e);-1===Ot(t,n)?I([t,n]):I([i])}else I([t,i],!0)}else-1===n?I([i]):e.allowSameDay&&I([i,i],!0)}else I([i])}else if("multiple"===o){if(!c.value)return void I([i]);const n=c.value,o=n.findIndex((e=>0===Ot(e,i)));if(-1!==o){const[e]=n.splice(o,1);t("unselect",Lt(e))}else e.maxRange&&n.length>=e.maxRange?(0,Be.F)(e.rangePrompt||Tt("rangePrompt",e.maxRange)):I([...n,i])}else I(i,!0)},C=e=>t("update:show",e),E=(t,i)=>{const o=0!==i||!e.showSubtitle;return(0,a.Wm)(en,(0,a.dG)({ref:f(i),date:t,currentDate:c.value,showMonthTitle:o,firstDayOfWeek:p.value},(0,l.ei)(e,["type","color","minDate","maxDate","showMark","formatter","rowHeight","lazyRender","showSubtitle","allowSameDay"]),{onClick:P}),(0,l.ei)(n,["top-info","bottom-info"]))},N=()=>{if(n.footer)return n.footer();if(e.showConfirm){const t=n["confirm-text"],i=v.value,o=i?e.confirmDisabledText:e.confirmText;return(0,a.Wm)(ze.z,{round:!0,block:!0,type:"danger",color:e.color,class:Et("confirm"),disabled:i,nativeType:"button",onClick:M},{default:()=>[t?t({disabled:i}):o||Tt("confirm")]})}},O=()=>(0,a.Wm)("div",{class:[Et("footer"),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[N()]),L=()=>(0,a.Wm)("div",{class:Et()},[(0,a.Wm)(nn,{title:e.title,subtitle:u.value,showTitle:e.showTitle,showSubtitle:e.showSubtitle,firstDayOfWeek:p.value,"onClick-subtitle":e=>t("click-subtitle",e)},(0,l.ei)(n,["title","subtitle"])),(0,a.Wm)("div",{ref:s,class:Et("body"),onScroll:m},[g.value.map(E)]),O()]);return(0,a.YP)((()=>e.show),_),(0,a.YP)((()=>[e.type,e.minDate,e.maxDate]),(()=>w(o(c.value)))),(0,a.YP)((()=>e.defaultDate),((e=null)=>{c.value=e,x()})),(0,D.F)({reset:w,scrollToDate:y}),(0,d.Ib)(_),()=>e.poppable?(0,a.Wm)(b.G,{show:e.show,class:Et("popup"),round:e.round,position:e.position,closeable:e.showTitle||e.showSubtitle,teleport:e.teleport,closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay,"onUpdate:show":C},{default:L}):L()}});const an=(0,r.n)(rn);const[sn,ln]=(0,s["do"])("image"),un={src:String,alt:String,fit:String,position:String,round:Boolean,width:u.Or,height:u.Or,radius:u.Or,lazyLoad:Boolean,iconSize:u.Or,showError:u.J5,errorIcon:(0,u.SQ)("photo-fail"),iconPrefix:String,showLoading:u.J5,loadingIcon:(0,u.SQ)("photo")};var cn=(0,a.aZ)({name:sn,props:un,emits:["load","error"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(!1),o=(0,T.iH)(!0),r=(0,T.iH)(),{$Lazyload:s}=(0,a.FN)().proxy,u=(0,a.Fl)((()=>{const t={width:(0,L.Nn)(e.width),height:(0,L.Nn)(e.height)};return(0,N.Xq)(e.radius)&&(t.overflow="hidden",t.borderRadius=(0,L.Nn)(e.radius)),t}));(0,a.YP)((()=>e.src),(()=>{i.value=!1,o.value=!0}));const c=e=>{o.value=!1,t("load",e)},d=e=>{i.value=!0,o.value=!1,t("error",e)},h=(t,n,i)=>i?i():(0,a.Wm)(f.J,{name:t,size:e.iconSize,class:n,classPrefix:e.iconPrefix},null),p=()=>o.value&&e.showLoading?(0,a.Wm)("div",{class:ln("loading")},[h(e.loadingIcon,ln("loading-icon"),n.loading)]):i.value&&e.showError?(0,a.Wm)("div",{class:ln("error")},[h(e.errorIcon,ln("error-icon"),n.error)]):void 0,g=()=>{if(i.value||!e.src)return;const t={alt:e.alt,class:ln("img"),style:{objectFit:e.fit,objectPosition:e.position}};return e.lazyLoad?(0,a.wy)((0,a.Wm)("img",(0,a.dG)({ref:r},t),null),[[(0,a.Q2)("lazy"),e.src]]):(0,a.Wm)("img",(0,a.dG)({src:e.src,onLoad:c,onError:d},t),null)},v=({el:e})=>{const t=()=>{e===r.value&&o.value&&c()};r.value?t():(0,a.Y3)(t)},m=({el:e})=>{e!==r.value||i.value||d()};return s&&l._f&&(s.$on("loaded",v),s.$on("error",m),(0,a.Jd)((()=>{s.$off("loaded",v),s.$off("error",m)}))),()=>{var t;return(0,a.Wm)("div",{class:ln({round:e.round}),style:u.value},[g(),p(),null==(t=n.default)?void 0:t.call(n)])}}});const dn=(0,r.n)(cn);const[hn,fn]=(0,s["do"])("card"),pn={tag:String,num:u.Or,desc:String,thumb:String,title:String,price:u.Or,centered:Boolean,lazyLoad:Boolean,currency:(0,u.SQ)("¥"),thumbLink:String,originPrice:u.Or};var gn=(0,a.aZ)({name:hn,props:pn,emits:["click-thumb"],setup(e,{slots:t,emit:n}){const i=()=>t.title?t.title():e.title?(0,a.Wm)("div",{class:[fn("title"),"van-multi-ellipsis--l2"]},[e.title]):void 0,o=()=>{if(t.tag||e.tag)return(0,a.Wm)("div",{class:fn("tag")},[t.tag?t.tag():(0,a.Wm)(ft,{mark:!0,type:"danger"},{default:()=>[e.tag]})])},r=()=>t.thumb?t.thumb():(0,a.Wm)(dn,{src:e.thumb,fit:"cover",width:"100%",height:"100%",lazyLoad:e.lazyLoad},null),s=()=>{if(t.thumb||e.thumb)return(0,a.Wm)("a",{href:e.thumbLink,class:fn("thumb"),onClick:e=>n("click-thumb",e)},[r(),o()])},l=()=>t.desc?t.desc():e.desc?(0,a.Wm)("div",{class:[fn("desc"),"van-ellipsis"]},[e.desc]):void 0,u=()=>{const t=e.price.toString().split(".");return(0,a.Wm)("div",null,[(0,a.Wm)("span",{class:fn("price-currency")},[e.currency]),(0,a.Wm)("span",{class:fn("price-integer")},[t[0]]),(0,a.Uk)("."),(0,a.Wm)("span",{class:fn("price-decimal")},[t[1]])])};return()=>{var n,o,r;const c=t.num||(0,N.Xq)(e.num),d=t.price||(0,N.Xq)(e.price),h=t["origin-price"]||(0,N.Xq)(e.originPrice),f=c||d||h||t.bottom,p=d&&(0,a.Wm)("div",{class:fn("price")},[t.price?t.price():u()]),g=h&&(0,a.Wm)("div",{class:fn("origin-price")},[t["origin-price"]?t["origin-price"]():`${e.currency} ${e.originPrice}`]),v=c&&(0,a.Wm)("div",{class:fn("num")},[t.num?t.num():`x${e.num}`]),m=t.footer&&(0,a.Wm)("div",{class:fn("footer")},[t.footer()]),y=f&&(0,a.Wm)("div",{class:fn("bottom")},[null==(n=t["price-top"])?void 0:n.call(t),p,g,v,null==(o=t.bottom)?void 0:o.call(t)]);return(0,a.Wm)("div",{class:fn()},[(0,a.Wm)("div",{class:fn("header")},[s(),(0,a.Wm)("div",{class:fn("content",{centered:e.centered})},[(0,a.Wm)("div",null,[i(),l(),null==(r=t.tags)?void 0:r.call(t)]),y])]),m])}}});const vn=(0,r.n)(gn);var mn=n(67851);function yn(e,t,n){let i=0;const o=e.scrollLeft,r=0===n?1:Math.round(1e3*n/16);function a(){e.scrollLeft+=(t-o)/r,++i<r&&(0,d.Wn)(a)}a()}function xn(e,t,n,i){let o=(0,V.cx)(e);const r=o<t,a=0===n?1:Math.round(1e3*n/16),s=(t-o)/a;function l(){o+=s,(r&&o>t||!r&&o<t)&&(o=t),(0,V.QU)(e,o),r&&o<t||!r&&o>t?(0,d.Wn)(l):i&&(0,d.Wn)(i)}l()}var _n=n(45025);function bn(e,t){if(!l._f||!window.IntersectionObserver)return;const n=new IntersectionObserver((e=>{t(e[0].intersectionRatio>0)}),{root:document.body}),i=()=>{e.value&&n.observe(e.value)},o=()=>{e.value&&n.unobserve(e.value)};(0,a.se)(o),(0,a.Jd)(o),(0,d.Ib)(i)}const[wn,Sn]=(0,s["do"])("sticky"),Mn={zIndex:u.Or,position:(0,u.SQ)("top"),container:Object,offsetTop:(0,u.SI)(0),offsetBottom:(0,u.SI)(0)};var In=(0,a.aZ)({name:wn,props:Mn,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),o=(0,d.eo)(i),r=(0,T.qj)({fixed:!1,width:0,height:0,transform:0}),s=(0,a.Fl)((()=>(0,L.LU)("top"===e.position?e.offsetTop:e.offsetBottom))),u=(0,a.Fl)((()=>{const{fixed:e,height:t,width:n}=r;if(e)return{width:`${n}px`,height:`${t}px`}})),c=(0,a.Fl)((()=>{if(!r.fixed)return;const t=(0,l.l7)((0,L.As)(e.zIndex),{width:`${r.width}px`,height:`${r.height}px`,[e.position]:`${s.value}px`});return r.transform&&(t.transform=`translate3d(0, ${r.transform}px, 0)`),t})),h=e=>t("scroll",{scrollTop:e,isFixed:r.fixed}),f=()=>{if(!i.value||(0,V.xj)(i))return;const{container:t,position:n}=e,o=(0,d.EL)(i),a=(0,V.cx)(window);if(r.width=o.width,r.height=o.height,"top"===n)if(t){const e=(0,d.EL)(t),n=e.bottom-s.value-r.height;r.fixed=s.value>o.top&&e.bottom>0,r.transform=n<0?n:0}else r.fixed=s.value>o.top;else{const{clientHeight:e}=document.documentElement;if(t){const n=(0,d.EL)(t),i=e-n.top-s.value-r.height;r.fixed=e-s.value<o.bottom&&e>n.top,r.transform=i<0?-i:0}else r.fixed=e-s.value<o.bottom}h(a)};return(0,a.YP)((()=>r.fixed),(e=>t("change",e))),(0,d.OR)("scroll",f,{target:o}),bn(i,f),()=>{var e;return(0,a.Wm)("div",{ref:i,style:u.value},[(0,a.Wm)("div",{class:Sn({fixed:r.fixed}),style:c.value},[null==(e=n.default)?void 0:e.call(n)])])}}});const An=(0,r.n)(In);const[kn,Pn]=(0,s["do"])("tab");var Cn=(0,a.aZ)({name:kn,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:u.Or,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:u.J5},setup(e,{slots:t}){const n=(0,a.Fl)((()=>{const t={},{type:n,color:i,disabled:o,isActive:r,activeColor:a,inactiveColor:s}=e,l="card"===n;i&&l&&(t.borderColor=i,o||(r?t.backgroundColor=i:t.color=i));const u=r?a:s;return u&&(t.color=u),t})),i=()=>{const n=(0,a.Wm)("span",{class:Pn("text",{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||(0,N.Xq)(e.badge)&&""!==e.badge?(0,a.Wm)(p.C,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[n]}):n};return()=>(0,a.Wm)("div",{id:e.id,role:"tab",class:[Pn([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:n.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls},[i()])}});const[En,Tn]=(0,s["do"])("swipe"),Nn={loop:u.J5,width:u.Or,height:u.Or,vertical:Boolean,autoplay:(0,u.SI)(0),duration:(0,u.SI)(500),touchable:u.J5,lazyRender:Boolean,initialSwipe:(0,u.SI)(0),indicatorColor:String,showIndicators:u.J5,stopPropagation:u.J5},Dn=Symbol(En);var On=(0,a.aZ)({name:En,props:Nn,emits:["change"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),o=(0,T.qj)({rect:null,width:0,height:0,offset:0,active:0,swiping:!1}),r=(0,R.o)(),{children:s,linkChildren:l}=(0,d.$E)(Dn),u=(0,a.Fl)((()=>s.length)),c=(0,a.Fl)((()=>o[e.vertical?"height":"width"])),h=(0,a.Fl)((()=>e.vertical?r.deltaY.value:r.deltaX.value)),f=(0,a.Fl)((()=>{if(o.rect){const t=e.vertical?o.rect.height:o.rect.width;return t-c.value*u.value}return 0})),p=(0,a.Fl)((()=>Math.ceil(Math.abs(f.value)/c.value))),g=(0,a.Fl)((()=>u.value*c.value)),v=(0,a.Fl)((()=>(o.active+u.value)%u.value)),m=(0,a.Fl)((()=>{const t=e.vertical?"vertical":"horizontal";return r.direction.value===t})),y=(0,a.Fl)((()=>{const t={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${o.offset}px)`};if(c.value){const n=e.vertical?"height":"width",i=e.vertical?"width":"height";t[n]=`${g.value}px`,t[i]=e[i]?`${e[i]}px`:""}return t})),x=t=>{const{active:n}=o;return t?e.loop?(0,L.uZ)(n+t,-1,u.value):(0,L.uZ)(n+t,0,p.value):n},_=(t,n=0)=>{let i=t*c.value;e.loop||(i=Math.min(i,-f.value));let o=n-i;return e.loop||(o=(0,L.uZ)(o,f.value,0)),o},b=({pace:n=0,offset:i=0,emitChange:r})=>{if(u.value<=1)return;const{active:a}=o,l=x(n),c=_(l,i);if(e.loop){if(s[0]&&c!==f.value){const e=c<f.value;s[0].setOffset(e?g.value:0)}if(s[u.value-1]&&0!==c){const e=c>0;s[u.value-1].setOffset(e?-g.value:0)}}o.active=l,o.offset=c,r&&l!==a&&t("change",v.value)},w=()=>{o.swiping=!0,o.active<=-1?b({pace:u.value}):o.active>=u.value&&b({pace:-u.value})},S=()=>{w(),r.reset(),(0,d.d1)((()=>{o.swiping=!1,b({pace:-1,emitChange:!0})}))},M=()=>{w(),r.reset(),(0,d.d1)((()=>{o.swiping=!1,b({pace:1,emitChange:!0})}))};let I;const A=()=>clearTimeout(I),k=()=>{A(),e.autoplay>0&&u.value>1&&(I=setTimeout((()=>{M(),k()}),+e.autoplay))},P=(t=+e.initialSwipe)=>{if(!i.value)return;const n=()=>{var n,r;if(!(0,V.xj)(i)){const t={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=t,o.width=+(null!=(n=e.width)?n:t.width),o.height=+(null!=(r=e.height)?r:t.height)}u.value&&(t=Math.min(u.value-1,t)),o.active=t,o.swiping=!0,o.offset=_(t),s.forEach((e=>{e.setOffset(0)})),k()};(0,V.xj)(i)?(0,a.Y3)().then(n):n()},C=()=>P(o.active);let E;const N=t=>{e.touchable&&(r.start(t),E=Date.now(),A(),w())},O=t=>{e.touchable&&o.swiping&&(r.move(t),m.value&&((0,V.PF)(t,e.stopPropagation),b({offset:h.value})))},B=()=>{if(!e.touchable||!o.swiping)return;const t=Date.now()-E,n=h.value/t,i=Math.abs(n)>.25||Math.abs(h.value)>c.value/2;if(i&&m.value){const t=e.vertical?r.offsetY.value:r.offsetX.value;let n=0;n=e.loop?t>0?h.value>0?-1:1:0:-Math[h.value>0?"ceil":"floor"](h.value/c.value),b({pace:n,emitChange:!0})}else h.value&&b({pace:0});o.swiping=!1,k()},z=(t,n={})=>{w(),r.reset(),(0,d.d1)((()=>{let i;i=e.loop&&t===u.value?0===o.active?0:t:t%u.value,n.immediate?(0,d.d1)((()=>{o.swiping=!1})):o.swiping=!1,b({pace:i-o.active,emitChange:!0})}))},W=(t,n)=>{const i=n===v.value,o=i?{backgroundColor:e.indicatorColor}:void 0;return(0,a.Wm)("i",{style:o,class:Tn("indicator",{active:i})},null)},F=()=>n.indicator?n.indicator({active:v.value,total:u.value}):e.showIndicators&&u.value>1?(0,a.Wm)("div",{class:Tn("indicators",{vertical:e.vertical})},[Array(u.value).fill("").map(W)]):void 0;return(0,D.F)({prev:S,next:M,state:o,resize:C,swipeTo:z}),l({size:c,props:e,count:u,activeIndicator:v}),(0,a.YP)((()=>e.initialSwipe),(e=>P(+e))),(0,a.YP)(u,(()=>P(o.active))),(0,a.YP)((()=>e.autoplay),k),(0,a.YP)([V.bn,V.uK],C),(0,a.YP)((0,d.d9)(),(e=>{"visible"===e?k():A()})),(0,a.bv)(P),(0,a.dl)((()=>P(o.active))),(0,_n.h)((()=>P(o.active))),(0,a.se)(A),(0,a.Jd)(A),()=>{var t;return(0,a.Wm)("div",{ref:i,class:Tn()},[(0,a.Wm)("div",{style:y.value,class:Tn("track",{vertical:e.vertical}),onTouchstart:N,onTouchmove:O,onTouchend:B,onTouchcancel:B},[null==(t=n.default)?void 0:t.call(n)]),F()])}}});const Ln=(0,r.n)(On);const[Vn,Rn]=(0,s["do"])("tabs");var Bn=(0,a.aZ)({name:Vn,props:{count:(0,u.ir)(Number),inited:Boolean,animated:Boolean,duration:(0,u.ir)(u.Or),swipeable:Boolean,lazyRender:Boolean,currentIndex:(0,u.ir)(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),o=e=>t("change",e),r=()=>{var t;const r=null==(t=n.default)?void 0:t.call(n);return e.animated||e.swipeable?(0,a.Wm)(Ln,{ref:i,loop:!1,class:Rn("track"),duration:1e3*+e.duration,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:o},{default:()=>[r]}):r},s=t=>{const n=i.value;n&&n.state.active!==t&&n.swipeTo(t,{immediate:!e.inited})};return(0,a.YP)((()=>e.currentIndex),s),(0,a.bv)((()=>{s(e.currentIndex)})),()=>(0,a.Wm)("div",{class:Rn("content",{animated:e.animated||e.swipeable})},[r()])}});const[zn,Wn]=(0,s["do"])("tabs"),Fn={type:(0,u.SQ)("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:(0,u.SI)(0),duration:(0,u.SI)(.3),animated:Boolean,ellipsis:u.J5,swipeable:Boolean,scrollspy:Boolean,offsetTop:(0,u.SI)(0),background:String,lazyRender:u.J5,lineWidth:u.Or,lineHeight:u.Or,beforeChange:Function,swipeThreshold:(0,u.SI)(5),titleActiveColor:String,titleInactiveColor:String},Un=Symbol(zn);var $n=(0,a.aZ)({name:zn,props:Fn,emits:["click","change","scroll","disabled","rendered","click-tab","update:active"],setup(e,{emit:t,slots:n}){let i,o,r;const s=(0,T.iH)(),u=(0,T.iH)(),c=(0,T.iH)(),f=Te(),p=(0,d.eo)(s),[g,v]=Ut(),{children:m,linkChildren:y}=(0,d.$E)(Un),x=(0,T.qj)({inited:!1,position:"",lineStyle:{},currentIndex:-1}),b=(0,a.Fl)((()=>m.length>e.swipeThreshold||!e.ellipsis||e.shrink)),w=(0,a.Fl)((()=>({borderColor:e.color,background:e.background}))),S=(e,t)=>{var n;return null!=(n=e.name)?n:t},M=(0,a.Fl)((()=>{const e=m[x.currentIndex];if(e)return S(e,x.currentIndex)})),I=(0,a.Fl)((()=>(0,L.LU)(e.offsetTop))),A=(0,a.Fl)((()=>e.sticky?I.value+i:0)),k=t=>{const n=u.value,i=g.value;if(!b.value||!n||!i||!i[x.currentIndex])return;const o=i[x.currentIndex].$el,r=o.offsetLeft-(n.offsetWidth-o.offsetWidth)/2;yn(n,r,t?0:+e.duration)},P=()=>{const t=x.inited;(0,a.Y3)((()=>{const n=g.value;if(!n||!n[x.currentIndex]||"line"!==e.type||(0,V.xj)(s.value))return;const i=n[x.currentIndex].$el,{lineWidth:o,lineHeight:r}=e,a=i.offsetLeft+i.offsetWidth/2,l={width:(0,L.Nn)(o),backgroundColor:e.color,transform:`translateX(${a}px) translateX(-50%)`};if(t&&(l.transitionDuration=`${e.duration}s`),(0,N.Xq)(r)){const e=(0,L.Nn)(r);l.height=e,l.borderRadius=e}x.lineStyle=l}))},C=e=>{const t=e<x.currentIndex?-1:1;while(e>=0&&e<m.length){if(!m[e].disabled)return e;e+=t}},E=n=>{const i=C(n);if(!(0,N.Xq)(i))return;const o=m[i],r=S(o,i),a=null!==x.currentIndex;x.currentIndex=i,r!==e.active&&(t("update:active",r),a&&t("change",r,o.title))},O=e=>{const t=m.find(((t,n)=>S(t,n)===e)),n=t?m.indexOf(t):0;E(n)},R=(t=!1)=>{if(e.scrollspy){const n=m[x.currentIndex].$el;if(n&&p.value){const i=(0,V.U4)(n,p.value)-A.value;o=!0,xn(p.value,i,t?0:+e.duration,(()=>{o=!1}))}}},B=(n,i,o)=>{const{title:r,disabled:a}=m[i],s=S(m[i],i);a?t("disabled",s,r):((0,mn.I)(e.beforeChange,{args:[s],done:()=>{E(i),R()}}),t("click",s,r),(0,h.BC)(n)),t("click-tab",{name:s,title:r,event:o,disabled:a})},z=e=>{r=e.isFixed,t("scroll",e)},W=e=>{(0,a.Y3)((()=>{O(e),R(!0)}))},F=()=>{for(let e=0;e<m.length;e++){const{top:t}=(0,d.EL)(m[e].$el);if(t>A.value)return 0===e?0:e-1}return m.length-1},U=()=>{if(e.scrollspy&&!o){const e=F();E(e)}},$=()=>m.map(((t,n)=>(0,a.Wm)(Cn,(0,a.dG)({id:`${f}-${n}`,ref:v(n),type:e.type,color:e.color,style:t.titleStyle,class:t.titleClass,shrink:e.shrink,isActive:n===x.currentIndex,controls:t.id,scrollable:b.value,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor,onClick:e=>B(t,n,e)},(0,l.ei)(t,["dot","badge","title","disabled","showZeroBadge"])),{title:t.$slots.title}))),H=()=>{if("line"===e.type&&m.length)return(0,a.Wm)("div",{class:Wn("line"),style:x.lineStyle},null)},j=()=>{var t,i;const{type:o,border:r}=e;return(0,a.Wm)("div",{ref:c,class:[Wn("wrap"),{[_.r5]:"line"===o&&r}]},[(0,a.Wm)("div",{ref:u,role:"tablist",class:Wn("nav",[o,{shrink:e.shrink,complete:b.value}]),style:w.value,"aria-orientation":"horizontal"},[null==(t=n["nav-left"])?void 0:t.call(n),$(),H(),null==(i=n["nav-right"])?void 0:i.call(n)])])};(0,a.YP)([()=>e.color,V.bn],P),(0,a.YP)((()=>e.active),(e=>{e!==M.value&&O(e)})),(0,a.YP)((()=>m.length),(()=>{x.inited&&(O(e.active),P(),(0,a.Y3)((()=>{k(!0)})))})),(0,a.YP)((()=>x.currentIndex),(()=>{k(),P(),r&&!e.scrollspy&&(0,V.kn)(Math.ceil((0,V.U4)(s.value)-I.value))}));const G=()=>{O(e.active),(0,a.Y3)((()=>{x.inited=!0,c.value&&(i=(0,d.EL)(c.value).height),k(!0)}))},Y=(e,n)=>t("rendered",e,n);return(0,D.F)({resize:P,scrollTo:W}),(0,a.dl)(P),(0,_n.h)(P),(0,d.Ib)(G),(0,d.OR)("scroll",U,{target:p}),y({id:f,props:e,setLine:P,onRendered:Y,currentName:M,scrollIntoView:k}),()=>{var t;return(0,a.Wm)("div",{ref:s,class:Wn([e.type])},[e.sticky?(0,a.Wm)(An,{container:s.value,offsetTop:I.value,onScroll:z},{default:()=>{var e;return[j(),null==(e=n["nav-bottom"])?void 0:e.call(n)]}}):[j(),null==(t=n["nav-bottom"])?void 0:t.call(n)],(0,a.Wm)(Bn,{count:m.length,inited:x.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:x.currentIndex,onChange:E},{default:()=>{var e;return[null==(e=n.default)?void 0:e.call(n)]}})])}}});const Hn=Symbol(),jn=()=>(0,a.f3)(Hn,null),[Gn,Yn]=(0,s["do"])("swipe-item");var Zn=(0,a.aZ)({name:Gn,setup(e,{slots:t}){let n;const i=(0,T.qj)({offset:0,inited:!1,mounted:!1}),{parent:o,index:r}=(0,d.NB)(Dn);if(!o)return void 0;const s=(0,a.Fl)((()=>{const e={},{vertical:t}=o.props;return o.size.value&&(e[t?"height":"width"]=`${o.size.value}px`),i.offset&&(e.transform=`translate${t?"Y":"X"}(${i.offset}px)`),e})),l=(0,a.Fl)((()=>{const{loop:e,lazyRender:t}=o.props;if(!t||n)return!0;if(!i.mounted)return!1;const a=o.activeIndicator.value,s=o.count.value-1,l=0===a&&e?s:a-1,u=a===s&&e?0:a+1;return n=r.value===a||r.value===l||r.value===u,n})),u=e=>{i.offset=e};return(0,a.bv)((()=>{(0,a.Y3)((()=>{i.mounted=!0}))})),(0,D.F)({setOffset:u}),()=>{var e;return(0,a.Wm)("div",{class:Yn(),style:s.value},[l.value?null==(e=t.default)?void 0:e.call(t):null])}}});const qn=(0,r.n)(Zn);const[Xn,Jn]=(0,s["do"])("tab"),Kn=(0,l.l7)({},h.g2,{dot:Boolean,name:u.Or,badge:u.Or,title:String,disabled:Boolean,titleClass:u.Vg,titleStyle:[String,Object],showZeroBadge:u.J5});var Qn=(0,a.aZ)({name:Xn,props:Kn,setup(e,{slots:t}){const n=Te(),i=(0,T.iH)(!1),{parent:o,index:r}=(0,d.NB)(Un);if(!o)return void 0;const s=()=>{var t;return null!=(t=e.name)?t:r.value},l=()=>{i.value=!0,o.props.lazyRender&&(0,a.Y3)((()=>{o.onRendered(s(),e.title)}))},u=(0,a.Fl)((()=>{const e=s()===o.currentName.value;return e&&!i.value&&l(),e}));return(0,a.YP)((()=>e.title),(()=>{o.setLine(),o.scrollIntoView()})),(0,a.JJ)(Hn,u),()=>{var e;const s=`${o.id}-${r.value}`,{animated:l,swipeable:c,scrollspy:d,lazyRender:h}=o.props;if(!t.default&&!l)return;const f=d||u.value;if(l||c)return(0,a.Wm)(qn,{id:n,role:"tabpanel",class:Jn("panel-wrapper",{inactive:!u.value}),tabindex:u.value?0:-1,"aria-hidden":!u.value,"aria-labelledby":s},{default:()=>{var e;return[(0,a.Wm)("div",{class:Jn("panel")},[null==(e=t.default)?void 0:e.call(t)])]}});const p=i.value||d||!h,g=p?null==(e=t.default)?void 0:e.call(t):null;return(0,D.F)({id:n}),(0,a.wy)((0,a.Wm)("div",{id:n,role:"tabpanel",class:Jn("panel"),tabindex:f?0:-1,"aria-labelledby":s},[g]),[[E.F8,f]])}}});const ei=(0,r.n)(Qn);const ti=(0,r.n)($n);const[ni,ii,oi]=(0,s["do"])("cascader"),ri={title:String,options:(0,u.Ce)(),closeable:u.J5,swipeable:u.J5,closeIcon:(0,u.SQ)("cross"),showHeader:u.J5,modelValue:u.Or,fieldNames:Object,placeholder:String,activeColor:String};var ai=(0,a.aZ)({name:ni,props:ri,emits:["close","change","finish","click-tab","update:modelValue"],setup(e,{slots:t,emit:n}){const i=(0,T.iH)([]),o=(0,T.iH)(0),{text:r,value:s,children:u}=(0,l.l7)({text:"text",value:"value",children:"children"},e.fieldNames),c=(e,t)=>{for(const n of e){if(n[s]===t)return[n];if(n[u]){const e=c(n[u],t);if(e)return[n,...e]}}},d=()=>{const{options:t,modelValue:n}=e;if(void 0!==n){const e=c(t,n);if(e){let n=t;return i.value=e.map((e=>{const t={options:n,selected:e},i=n.find((t=>t[s]===e[s]));return i&&(n=i[u]),t})),n&&i.value.push({options:n,selected:null}),void(0,a.Y3)((()=>{o.value=i.value.length-1}))}}i.value=[{options:t,selected:null}]},h=(e,t)=>{if(e.disabled)return;if(i.value[t].selected=e,i.value.length>t+1&&(i.value=i.value.slice(0,t+1)),e[u]){const n={options:e[u],selected:null};i.value[t+1]?i.value[t+1]=n:i.value.push(n),(0,a.Y3)((()=>{o.value++}))}const r=i.value.map((e=>e.selected)).filter(Boolean);n("update:modelValue",e[s]);const l={value:e[s],tabIndex:t,selectedOptions:r};n("change",l),e[u]||n("finish",l)},p=()=>n("close"),g=({name:e,title:t})=>n("click-tab",e,t),v=()=>e.showHeader?(0,a.Wm)("div",{class:ii("header")},[(0,a.Wm)("h2",{class:ii("title")},[t.title?t.title():e.title]),e.closeable?(0,a.Wm)(f.J,{name:e.closeIcon,class:[ii("close-icon"),_.e9],onClick:p},null):null]):null,m=(n,i,o)=>{const{disabled:l}=n,u=!(!i||n[s]!==i[s]),c=n.color||(u?e.activeColor:void 0),d=t.option?t.option({option:n,selected:u}):(0,a.Wm)("span",null,[n[r]]);return(0,a.Wm)("li",{role:"menuitemradio",class:[ii("option",{selected:u,disabled:l}),n.className],style:{color:c},tabindex:l?void 0:u?0:-1,"aria-checked":u,"aria-disabled":l||void 0,onClick:()=>h(n,o)},[d,u?(0,a.Wm)(f.J,{name:"success",class:ii("selected-icon")},null):null])},y=(e,t,n)=>(0,a.Wm)("ul",{role:"menu",class:ii("options")},[e.map((e=>m(e,t,n)))]),x=(n,i)=>{const{options:o,selected:s}=n,l=e.placeholder||oi("select"),u=s?s[r]:l;return(0,a.Wm)(ei,{title:u,titleClass:ii("tab",{unselected:!s})},{default:()=>{var e,n;return[null==(e=t["options-top"])?void 0:e.call(t,{tabIndex:i}),y(o,s,i),null==(n=t["options-bottom"])?void 0:n.call(t,{tabIndex:i})]}})},b=()=>(0,a.Wm)(ti,{active:o.value,"onUpdate:active":e=>o.value=e,shrink:!0,animated:!0,class:ii("tabs"),color:e.activeColor,swipeable:e.swipeable,"onClick-tab":g},{default:()=>[i.value.map(x)]});return d(),(0,a.YP)((()=>e.options),d,{deep:!0}),(0,a.YP)((()=>e.modelValue),(e=>{if(void 0!==e){const t=i.value.map((e=>{var t;return null==(t=e.selected)?void 0:t[s]}));if(t.includes(e))return}d()})),()=>(0,a.Wm)("div",{class:ii()},[v(),b()])}});const si=(0,r.n)(ai);const[li,ui]=(0,s["do"])("cell-group"),ci={title:String,inset:Boolean,border:u.J5};var di=(0,a.aZ)({name:li,inheritAttrs:!1,props:ci,setup(e,{slots:t,attrs:n}){const i=()=>{var i;return(0,a.Wm)("div",(0,a.dG)({class:[ui({inset:e.inset}),{[_.r5]:e.border&&!e.inset}]},n),[null==(i=t.default)?void 0:i.call(t)])},o=()=>(0,a.Wm)("div",{class:ui("title",{inset:e.inset})},[t.title?t.title():e.title]);return()=>e.title||t.title?(0,a.Wm)(a.HY,null,[o(),i()]):i()}});const hi=(0,r.n)(di);const[fi,pi]=(0,s["do"])("checkbox-group"),gi={max:u.Or,disabled:Boolean,iconSize:u.Or,direction:String,modelValue:(0,u.Ce)(),checkedColor:String},vi=Symbol(fi);var mi=(0,a.aZ)({name:fi,props:gi,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{children:i,linkChildren:o}=(0,d.$E)(vi),r=e=>t("update:modelValue",e),s=(e={})=>{"boolean"===typeof e&&(e={checked:e});const{checked:t,skipDisabled:n}=e,o=i.filter((e=>!!e.props.bindGroup&&(e.props.disabled&&n?e.checked.value:null!=t?t:!e.checked.value))),a=o.map((e=>e.name));r(a)};return(0,a.YP)((()=>e.modelValue),(e=>t("change",e))),(0,D.F)({toggleAll:s}),(0,d.aM)((()=>e.modelValue)),o({props:e,updateValue:r}),()=>{var t;return(0,a.Wm)("div",{class:pi([e.direction])},[null==(t=n.default)?void 0:t.call(n)])}}});const[yi,xi]=(0,s["do"])("checkbox"),_i=(0,l.l7)({},pt,{bindGroup:u.J5});var bi=(0,a.aZ)({name:yi,props:_i,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:i}=(0,d.NB)(vi),o=t=>{const{name:n}=e,{max:o,modelValue:r}=i.props,a=r.slice();if(t){const t=o&&a.length>=o;t||a.includes(n)||(a.push(n),e.bindGroup&&i.updateValue(a))}else{const t=a.indexOf(n);-1!==t&&(a.splice(t,1),e.bindGroup&&i.updateValue(a))}},r=(0,a.Fl)((()=>i&&e.bindGroup?-1!==i.props.modelValue.indexOf(e.name):!!e.modelValue)),s=(n=!r.value)=>{i&&e.bindGroup?o(n):t("update:modelValue",n)};return(0,a.YP)((()=>e.modelValue),(e=>t("change",e))),(0,D.F)({toggle:s,props:e,checked:r}),(0,d.aM)((()=>e.modelValue)),()=>(0,a.Wm)(gt,(0,a.dG)({bem:xi,role:"checkbox",parent:i,checked:r.value,onToggle:s},e),(0,l.ei)(n,["default","icon"]))}});const wi=(0,r.n)(bi);const Si=(0,r.n)(mi);const[Mi,Ii]=(0,s["do"])("circle");let Ai=0;const ki=e=>Math.min(Math.max(+e,0),100);function Pi(e,t){const n=e?1:0;return`M ${t/2} ${t/2} m 0, -500 a 500, 500 0 1, ${n} 0, 1000 a 500, 500 0 1, ${n} 0, -1000`}const Ci={text:String,size:u.Or,fill:(0,u.SQ)("none"),rate:(0,u.SI)(100),speed:(0,u.SI)(0),color:[String,Object],clockwise:u.J5,layerColor:String,currentRate:(0,u.qM)(0),strokeWidth:(0,u.SI)(40),strokeLinecap:String,startPosition:(0,u.SQ)("top")};var Ei=(0,a.aZ)({name:Mi,props:Ci,emits:["update:currentRate"],setup(e,{emit:t,slots:n}){const i="van-circle-"+Ai++,o=(0,a.Fl)((()=>+e.strokeWidth+1e3)),r=(0,a.Fl)((()=>Pi(e.clockwise,o.value))),s=(0,a.Fl)((()=>{const t={top:0,right:90,bottom:180,left:270},n=t[e.startPosition];if(n)return{transform:`rotate(${n}deg)`}}));(0,a.YP)((()=>e.rate),(n=>{let i;const o=Date.now(),r=e.currentRate,a=ki(n),s=Math.abs(1e3*(r-a)/+e.speed),l=()=>{const e=Date.now(),n=Math.min((e-o)/s,1),u=n*(a-r)+r;t("update:currentRate",ki(parseFloat(u.toFixed(1)))),(a>r?u<a:u>a)&&(i=(0,d.Wn)(l))};e.speed?(i&&(0,d.$d)(i),i=(0,d.Wn)(l)):t("update:currentRate",a)}),{immediate:!0});const l=()=>{const t=3140,{strokeWidth:n,currentRate:o,strokeLinecap:s}=e,l=t*o/100,u=(0,N.Kn)(e.color)?`url(#${i})`:e.color,c={stroke:u,strokeWidth:+n+1+"px",strokeLinecap:s,strokeDasharray:`${l}px ${t}px`};return(0,a.Wm)("path",{d:r.value,style:c,class:Ii("hover"),stroke:u},null)},u=()=>{const t={fill:e.fill,stroke:e.layerColor,strokeWidth:`${e.strokeWidth}px`};return(0,a.Wm)("path",{class:Ii("layer"),style:t,d:r.value},null)},c=()=>{const{color:t}=e;if(!(0,N.Kn)(t))return;const n=Object.keys(t).sort(((e,t)=>parseFloat(e)-parseFloat(t))).map(((e,n)=>(0,a.Wm)("stop",{key:n,offset:e,"stop-color":t[e]},null)));return(0,a.Wm)("defs",null,[(0,a.Wm)("linearGradient",{id:i,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[n])])},h=()=>n.default?n.default():e.text?(0,a.Wm)("div",{class:Ii("text")},[e.text]):void 0;return()=>(0,a.Wm)("div",{class:Ii(),style:(0,L.Xn)(e.size)},[(0,a.Wm)("svg",{viewBox:`0 0 ${o.value} ${o.value}`,style:s.value},[c(),u(),l()]),h()])}});const Ti=(0,r.n)(Ei);const[Ni,Di]=(0,s["do"])("row"),Oi=Symbol(Ni),Li={tag:(0,u.SQ)("div"),wrap:u.J5,align:String,gutter:(0,u.SI)(0),justify:String};var Vi=(0,a.aZ)({name:Ni,props:Li,setup(e,{slots:t}){const{children:n,linkChildren:i}=(0,d.$E)(Oi),o=(0,a.Fl)((()=>{const e=[[]];let t=0;return n.forEach(((n,i)=>{t+=Number(n.span),t>24?(e.push([i]),t-=24):e[e.length-1].push(i)})),e})),r=(0,a.Fl)((()=>{const t=Number(e.gutter),n=[];return t?(o.value.forEach((e=>{const i=t*(e.length-1)/e.length;e.forEach(((e,o)=>{if(0===o)n.push({right:i});else{const o=t-n[e-1].right,r=i-o;n.push({left:o,right:r})}}))})),n):n}));return i({spaces:r}),()=>{const{tag:n,wrap:i,align:o,justify:r}=e;return(0,a.Wm)(n,{class:Di({[`align-${o}`]:o,[`justify-${r}`]:r,nowrap:!i})},{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t)]}})}}});const[Ri,Bi]=(0,s["do"])("col"),zi={tag:(0,u.SQ)("div"),span:(0,u.SI)(0),offset:u.Or};var Wi=(0,a.aZ)({name:Ri,props:zi,setup(e,{slots:t}){const{parent:n,index:i}=(0,d.NB)(Oi),o=(0,a.Fl)((()=>{if(!n)return;const{spaces:e}=n;if(e&&e.value&&e.value[i.value]){const{left:t,right:n}=e.value[i.value];return{paddingLeft:t?`${t}px`:null,paddingRight:n?`${n}px`:null}}}));return()=>{const{tag:n,span:i,offset:r}=e;return(0,a.Wm)(n,{style:o.value,class:Bi({[i]:i,[`offset-${r}`]:r})},{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t)]}})}}});const Fi=(0,r.n)(Wi);const[Ui,$i]=(0,s["do"])("collapse"),Hi=Symbol(Ui),ji={border:u.J5,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var Gi=(0,a.aZ)({name:Ui,props:ji,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:i}=(0,d.$E)(Hi),o=e=>{t("change",e),t("update:modelValue",e)},r=(t,n)=>{const{accordion:i,modelValue:r}=e;o(i?t===r?"":t:n?r.concat(t):r.filter((e=>e!==t)))},s=t=>{const{accordion:n,modelValue:i}=e;return n?i===t:i.includes(t)};return i({toggle:r,isExpanded:s}),()=>{var t;return(0,a.Wm)("div",{class:[$i(),{[_.r5]:e.border}]},[null==(t=n.default)?void 0:t.call(n)])}}});const Yi=(0,r.n)(Gi);var Zi=n(77311);const[qi,Xi]=(0,s["do"])("collapse-item"),Ji=["icon","title","value","label","right-icon"],Ki=(0,l.l7)({},de,{name:u.Or,isLink:u.J5,disabled:Boolean,readonly:Boolean});var Qi=(0,a.aZ)({name:qi,props:Ki,setup(e,{slots:t}){const n=(0,T.iH)(),i=(0,T.iH)(),{parent:o,index:r}=(0,d.NB)(Hi);if(!o)return void 0;const s=(0,a.Fl)((()=>{var t;return null!=(t=e.name)?t:r.value})),u=(0,a.Fl)((()=>o.isExpanded(s.value))),c=(0,T.iH)(u.value),h=(0,Zi.W)(c),f=()=>{u.value?n.value&&(n.value.style.height=""):c.value=!1};(0,a.YP)(u,((e,t)=>{if(null===t)return;e&&(c.value=!0);const o=e?a.Y3:d.Wn;o((()=>{if(!i.value||!n.value)return;const{offsetHeight:t}=i.value;if(t){const i=`${t}px`;n.value.style.height=e?"0":i,(0,d.d1)((()=>{n.value&&(n.value.style.height=e?i:"0")}))}else f()}))}));const p=(e=!u.value)=>{o.toggle(s.value,e)},g=()=>{e.disabled||e.readonly||p()},v=()=>{const{border:n,disabled:i,readonly:o}=e,r=(0,l.ei)(e,Object.keys(de));return o&&(r.isLink=!1),(i||o)&&(r.clickable=!1),(0,a.Wm)(pe,(0,a.dG)({role:"button",class:Xi("title",{disabled:i,expanded:u.value,borderless:!n}),"aria-expanded":String(u.value),onClick:g},r),(0,l.ei)(t,Ji))},m=h((()=>{var e;return(0,a.wy)((0,a.Wm)("div",{ref:n,class:Xi("wrapper"),onTransitionend:f},[(0,a.Wm)("div",{ref:i,class:Xi("content")},[null==(e=t.default)?void 0:e.call(t)])]),[[E.F8,c.value]])}));return(0,D.F)({toggle:p}),()=>(0,a.Wm)("div",{class:[Xi({border:r.value&&e.border})]},[v(),m()])}});const eo=(0,r.n)(Qi);var to=n(2348);const no=(0,r.n)(to.Z);const[io,oo,ro]=(0,s["do"])("contact-card"),ao={tel:String,name:String,type:(0,u.SQ)("add"),addText:String,editable:u.J5};var so=(0,a.aZ)({name:io,props:ao,emits:["click"],setup(e,{emit:t}){const n=n=>{e.editable&&t("click",n)},i=()=>"add"===e.type?e.addText||ro("addContact"):[(0,a.Wm)("div",null,[`${ro("name")}:${e.name}`]),(0,a.Wm)("div",null,[`${ro("tel")}:${e.tel}`])];return()=>(0,a.Wm)(pe,{center:!0,icon:"edit"===e.type?"contact":"add-square",class:oo([e.type]),border:!1,isLink:e.editable,valueClass:oo("value"),onClick:n},{value:i})}});const lo=(0,r.n)(so);const[uo,co,ho]=(0,s["do"])("contact-edit"),fo={tel:"",name:""},po={isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:()=>(0,l.l7)({},fo)},telValidator:{type:Function,default:N.tq}};var go=(0,a.aZ)({name:uo,props:po,emits:["save","delete","change-default"],setup(e,{emit:t}){const n=(0,T.qj)((0,l.l7)({},fo,e.contactInfo)),i=()=>{e.isSaving||t("save",n)},o=()=>t("delete",n),r=()=>(0,a.Wm)("div",{class:co("buttons")},[(0,a.Wm)(ze.z,{block:!0,round:!0,type:"danger",text:ho("save"),class:co("button"),loading:e.isSaving,nativeType:"submit"},null),e.isEdit&&(0,a.Wm)(ze.z,{block:!0,round:!0,text:ho("delete"),class:co("button"),loading:e.isDeleting,onClick:o},null)]),s=()=>(0,a.Wm)(He,{modelValue:n.isDefault,"onUpdate:modelValue":e=>n.isDefault=e,size:24,onChange:e=>t("change-default",e)},null),u=()=>{if(e.showSetDefault)return(0,a.Wm)(pe,{title:e.setDefaultLabel,class:co("switch-cell"),border:!1},{"right-icon":s})};return(0,a.YP)((()=>e.contactInfo),(e=>(0,l.l7)(n,fo,e))),()=>(0,a.Wm)(xe,{class:co(),onSubmit:i},{default:()=>[(0,a.Wm)("div",{class:co("fields")},[(0,a.Wm)(Re,{modelValue:n.name,"onUpdate:modelValue":e=>n.name=e,clearable:!0,label:ho("name"),rules:[{required:!0,message:ho("nameEmpty")}],maxlength:"30",placeholder:ho("name")},null),(0,a.Wm)(Re,{modelValue:n.tel,"onUpdate:modelValue":e=>n.tel=e,clearable:!0,type:"tel",label:ho("tel"),rules:[{validator:e.telValidator,message:ho("telInvalid")}],placeholder:ho("tel")},null)]),u(),r()]})}});const vo=(0,r.n)(go);const[mo,yo,xo]=(0,s["do"])("contact-list"),_o={list:Array,addText:String,modelValue:u.Vg,defaultTagText:String};var bo=(0,a.aZ)({name:mo,props:_o,emits:["add","edit","select","update:modelValue"],setup(e,{emit:t}){const n=(n,i)=>{const o=()=>{t("update:modelValue",n.id),t("select",n,i)},r=()=>(0,a.Wm)(xt,{class:yo("radio"),name:n.id,iconSize:16},null),s=()=>(0,a.Wm)(f.J,{name:"edit",class:yo("edit"),onClick:e=>{e.stopPropagation(),t("edit",n,i)}},null),l=()=>{const t=[`${n.name},${n.tel}`];return n.isDefault&&e.defaultTagText&&t.push((0,a.Wm)(ft,{type:"danger",round:!0,class:yo("item-tag")},{default:()=>[e.defaultTagText]})),t};return(0,a.Wm)(pe,{key:n.id,isLink:!0,center:!0,class:yo("item"),valueClass:yo("item-value"),onClick:o},{icon:s,value:l,"right-icon":r})};return()=>(0,a.Wm)("div",{class:yo()},[(0,a.Wm)(lt,{modelValue:e.modelValue,class:yo("group")},{default:()=>[e.list&&e.list.map(n)]}),(0,a.Wm)("div",{class:[yo("bottom"),"van-safe-area-bottom"]},[(0,a.Wm)(ze.z,{round:!0,block:!0,type:"danger",class:yo("add"),text:e.addText||xo("addContact"),onClick:()=>t("add")},null)])])}});const wo=(0,r.n)(bo);function So(e,t){const{days:n}=t;let{hours:i,minutes:o,seconds:r,milliseconds:a}=t;if(e.includes("DD")?e=e.replace("DD",(0,L.Bd)(n)):i+=24*n,e.includes("HH")?e=e.replace("HH",(0,L.Bd)(i)):o+=60*i,e.includes("mm")?e=e.replace("mm",(0,L.Bd)(o)):r+=60*o,e.includes("ss")?e=e.replace("ss",(0,L.Bd)(r)):a+=1e3*r,e.includes("S")){const t=(0,L.Bd)(a,3);e=e.includes("SSS")?e.replace("SSS",t):e.includes("SS")?e.replace("SS",t.slice(0,2)):e.replace("S",t.charAt(0))}return e}const[Mo,Io]=(0,s["do"])("count-down"),Ao={time:(0,u.SI)(0),format:(0,u.SQ)("HH:mm:ss"),autoStart:u.J5,millisecond:Boolean};var ko=(0,a.aZ)({name:Mo,props:Ao,emits:["change","finish"],setup(e,{emit:t,slots:n}){const{start:i,pause:o,reset:r,current:s}=(0,d.hk)({time:+e.time,millisecond:e.millisecond,onChange:e=>t("change",e),onFinish:()=>t("finish")}),l=(0,a.Fl)((()=>So(e.format,s.value))),u=()=>{r(+e.time),e.autoStart&&i()};return(0,a.YP)((()=>e.time),u,{immediate:!0}),(0,D.F)({start:i,pause:o,reset:u}),()=>(0,a.Wm)("div",{role:"timer",class:Io()},[n.default?n.default(s.value):l.value])}});const Po=(0,r.n)(ko);function Co(e){const t=new Date(1e3*e);return`${t.getFullYear()}.${(0,L.Bd)(t.getMonth()+1)}.${(0,L.Bd)(t.getDate())}`}const Eo=e=>(e/10).toFixed(e%10===0?0:1),To=e=>(e/100).toFixed(e%100===0?0:e%10===0?1:2),[No,Do,Oo]=(0,s["do"])("coupon");var Lo=(0,a.aZ)({name:No,props:{chosen:Boolean,coupon:(0,u.ir)(Object),disabled:Boolean,currency:(0,u.SQ)("¥")},setup(e){const t=(0,a.Fl)((()=>{const{startAt:t,endAt:n}=e.coupon;return`${Co(t)} - ${Co(n)}`})),n=(0,a.Fl)((()=>{const{coupon:t,currency:n}=e;if(t.valueDesc)return[t.valueDesc,(0,a.Wm)("span",null,[t.unitDesc||""])];if(t.denominations){const e=To(t.denominations);return[(0,a.Wm)("span",null,[n]),` ${e}`]}return t.discount?Oo("discount",Eo(t.discount)):""})),i=(0,a.Fl)((()=>{const t=To(e.coupon.originCondition||0);return"0"===t?Oo("unlimited"):Oo("condition",t)}));return()=>{const{chosen:o,coupon:r,disabled:s}=e,l=s&&r.reason||r.description;return(0,a.Wm)("div",{class:Do({disabled:s})},[(0,a.Wm)("div",{class:Do("content")},[(0,a.Wm)("div",{class:Do("head")},[(0,a.Wm)("h2",{class:Do("amount")},[n.value]),(0,a.Wm)("p",{class:Do("condition")},[r.condition||i.value])]),(0,a.Wm)("div",{class:Do("body")},[(0,a.Wm)("p",{class:Do("name")},[r.name]),(0,a.Wm)("p",{class:Do("valid")},[t.value]),!s&&(0,a.Wm)(wi,{class:Do("corner"),modelValue:o},null)])]),l&&(0,a.Wm)("p",{class:Do("description")},[l])])}}});const Vo=(0,r.n)(Lo);const[Ro,Bo,zo]=(0,s["do"])("coupon-cell"),Wo={title:String,border:u.J5,editable:u.J5,coupons:(0,u.Ce)(),currency:(0,u.SQ)("¥"),chosenCoupon:(0,u.SI)(-1)};function Fo({coupons:e,chosenCoupon:t,currency:n}){const i=e[+t];if(i){let e=0;return(0,N.Xq)(i.value)?({value:e}=i):(0,N.Xq)(i.denominations)&&(e=i.denominations),`-${n} ${(e/100).toFixed(2)}`}return 0===e.length?zo("noCoupon"):zo("count",e.length)}var Uo=(0,a.aZ)({name:Ro,props:Wo,setup(e){return()=>{const t=e.coupons[+e.chosenCoupon];return(0,a.Wm)(pe,{class:Bo(),value:Fo(e),title:e.title||zo("title"),border:e.border,isLink:e.editable,valueClass:Bo("value",{selected:t})},null)}}});const $o=(0,r.n)(Uo);const[Ho,jo,Go]=(0,s["do"])("coupon-list"),Yo="https://img.yzcdn.cn/vant/coupon-empty.png",Zo={code:(0,u.SQ)(""),coupons:(0,u.Ce)(),currency:(0,u.SQ)("¥"),showCount:u.J5,emptyImage:(0,u.SQ)(Yo),chosenCoupon:(0,u.qM)(-1),enabledTitle:String,disabledTitle:String,disabledCoupons:(0,u.Ce)(),showExchangeBar:u.J5,showCloseButton:u.J5,closeButtonText:String,inputPlaceholder:String,exchangeMinLength:(0,u.qM)(1),exchangeButtonText:String,displayedCouponIndex:(0,u.qM)(-1),exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean};var qo=(0,a.aZ)({name:Ho,props:Zo,emits:["change","exchange","update:code"],setup(e,{emit:t,slots:n}){const[i,o]=Ut(),r=(0,T.iH)(),s=(0,T.iH)(),l=(0,T.iH)(0),u=(0,T.iH)(0),c=(0,T.iH)(e.code),h=(0,a.Fl)((()=>!e.exchangeButtonLoading&&(e.exchangeButtonDisabled||!c.value||c.value.length<e.exchangeMinLength))),f=()=>{const e=44,t=(0,d.EL)(r).height,n=(0,d.EL)(s).height+e;u.value=(t>n?t:V.uK.value)-n},p=()=>{t("exchange",c.value),e.code||(c.value="")},g=e=>{(0,a.Y3)((()=>{var t;return null==(t=i.value[e])?void 0:t.scrollIntoView()}))},v=()=>(0,a.Wm)("div",{class:jo("empty")},[(0,a.Wm)("img",{src:e.emptyImage},null),(0,a.Wm)("p",null,[Go("noCoupon")])]),m=()=>{if(e.showExchangeBar)return(0,a.Wm)("div",{ref:s,class:jo("exchange-bar")},[(0,a.Wm)(Re,{modelValue:c.value,"onUpdate:modelValue":e=>c.value=e,clearable:!0,border:!1,class:jo("field"),placeholder:e.inputPlaceholder||Go("placeholder"),maxlength:"20"},null),(0,a.Wm)(ze.z,{plain:!0,type:"danger",class:jo("exchange"),text:e.exchangeButtonText||Go("exchange"),loading:e.exchangeButtonLoading,disabled:h.value,onClick:p},null)])},y=()=>{const{coupons:i}=e,r=e.showCount?` (${i.length})`:"",s=(e.enabledTitle||Go("enable"))+r;return(0,a.Wm)(ei,{title:s},{default:()=>{var r;return[(0,a.Wm)("div",{class:jo("list",{"with-bottom":e.showCloseButton}),style:{height:`${u.value}px`}},[i.map(((n,i)=>(0,a.Wm)(Vo,{key:n.id,ref:o(i),coupon:n,chosen:i===e.chosenCoupon,currency:e.currency,onClick:()=>t("change",i)},null))),!i.length&&v(),null==(r=n["list-footer"])?void 0:r.call(n)])]}})},x=()=>{const{disabledCoupons:t}=e,i=e.showCount?` (${t.length})`:"",o=(e.disabledTitle||Go("disabled"))+i;return(0,a.Wm)(ei,{title:o},{default:()=>{var i;return[(0,a.Wm)("div",{class:jo("list",{"with-bottom":e.showCloseButton}),style:{height:`${u.value}px`}},[t.map((t=>(0,a.Wm)(Vo,{disabled:!0,key:t.id,coupon:t,currency:e.currency},null))),!t.length&&v(),null==(i=n["disabled-list-footer"])?void 0:i.call(n)])]}})};return(0,a.YP)((()=>e.code),(e=>{c.value=e})),(0,a.YP)(V.uK,f),(0,a.YP)(c,(e=>t("update:code",e))),(0,a.YP)((()=>e.displayedCouponIndex),g),(0,a.bv)((()=>{f(),g(e.displayedCouponIndex)})),()=>(0,a.Wm)("div",{ref:r,class:jo()},[m(),(0,a.Wm)(ti,{active:l.value,"onUpdate:active":e=>l.value=e,class:jo("tab")},{default:()=>[y(),x()]}),(0,a.Wm)("div",{class:jo("bottom")},[(0,a.wy)((0,a.Wm)(ze.z,{round:!0,block:!0,type:"danger",class:jo("close"),text:e.closeButtonText||Go("close"),onClick:()=>t("change",-1)},null),[[E.F8,e.showCloseButton]])])])}});const Xo=(0,r.n)(qo);const[Jo]=(0,s["do"])("time-picker");var Ko=(0,a.aZ)({name:Jo,props:(0,l.l7)({},$t,{minHour:(0,u.SI)(0),maxHour:(0,u.SI)(23),minMinute:(0,u.SI)(0),maxMinute:(0,u.SI)(59),modelValue:String}),emits:["confirm","cancel","change","update:modelValue"],setup(e,{emit:t,slots:n}){const i=t=>{const{minHour:n,maxHour:i,maxMinute:o,minMinute:r}=e;t||(t=`${(0,L.Bd)(n)}:${(0,L.Bd)(r)}`);let[a,s]=t.split(":");return a=(0,L.Bd)((0,L.uZ)(+a,+n,+i)),s=(0,L.Bd)((0,L.uZ)(+s,+r,+o)),`${a}:${s}`},o=(0,T.iH)(),r=(0,T.iH)(i(e.modelValue)),s=(0,a.Fl)((()=>[{type:"hour",range:[+e.minHour,+e.maxHour]},{type:"minute",range:[+e.minMinute,+e.maxMinute]}])),u=(0,a.Fl)((()=>s.value.map((({type:t,range:n})=>{let i=jt(n[1]-n[0]+1,(e=>(0,L.Bd)(n[0]+e)));return e.filter&&(i=e.filter(t,i)),{type:t,values:i}})))),c=(0,a.Fl)((()=>u.value.map((t=>({values:t.values.map((n=>e.formatter(t.type,n)))}))))),d=()=>{const t=r.value.split(":"),n=[e.formatter("hour",t[0]),e.formatter("minute",t[1])];(0,a.Y3)((()=>{var e;null==(e=o.value)||e.setValues(n)}))},h=()=>{const[e,t]=o.value.getIndexes(),[n,a]=u.value,s=n.values[e]||n.values[0],l=a.values[t]||a.values[0];r.value=i(`${s}:${l}`),d()},f=()=>t("confirm",r.value),p=()=>t("cancel"),g=()=>{h(),(0,a.Y3)((()=>{(0,a.Y3)((()=>t("change",r.value)))}))};return(0,a.bv)((()=>{d(),(0,a.Y3)(h)})),(0,a.YP)(c,d),(0,a.YP)((()=>[e.filter,e.maxHour,e.minMinute,e.maxMinute]),h),(0,a.YP)((()=>e.minHour),(()=>{(0,a.Y3)(h)})),(0,a.YP)(r,(e=>t("update:modelValue",e))),(0,a.YP)((()=>e.modelValue),(e=>{e=i(e),e!==r.value&&(r.value=e,d())})),(0,D.F)({getPicker:()=>o.value&&Zt(o.value,h)}),()=>(0,a.Wm)(Q,(0,a.dG)({ref:o,columns:c.value,onChange:g,onCancel:p,onConfirm:f},(0,l.ei)(e,Ht)),n)}});const Qo=(new Date).getFullYear(),[er]=(0,s["do"])("date-picker");var tr=(0,a.aZ)({name:er,props:(0,l.l7)({},$t,{type:(0,u.SQ)("datetime"),modelValue:Date,minDate:{type:Date,default:()=>new Date(Qo-10,0,1),validator:N.J_},maxDate:{type:Date,default:()=>new Date(Qo+10,11,31),validator:N.J_}}),emits:["confirm","cancel","change","update:modelValue"],setup(e,{emit:t,slots:n}){const i=t=>{if((0,N.J_)(t)){const n=(0,L.uZ)(t.getTime(),e.minDate.getTime(),e.maxDate.getTime());return new Date(n)}},o=(0,T.iH)(),r=(0,T.iH)(i(e.modelValue)),s=(t,n)=>{const i=e[`${t}Date`],o=i.getFullYear();let r=1,a=1,s=0,l=0;return"max"===t&&(r=12,a=Yt(n.getFullYear(),n.getMonth()+1),s=23,l=59),n.getFullYear()===o&&(r=i.getMonth()+1,n.getMonth()+1===r&&(a=i.getDate(),n.getDate()===a&&(s=i.getHours(),n.getHours()===s&&(l=i.getMinutes())))),{[`${t}Year`]:o,[`${t}Month`]:r,[`${t}Date`]:a,[`${t}Hour`]:s,[`${t}Minute`]:l}},u=(0,a.Fl)((()=>{const{maxYear:t,maxDate:n,maxMonth:i,maxHour:o,maxMinute:a}=s("max",r.value||e.minDate),{minYear:l,minDate:u,minMonth:c,minHour:d,minMinute:h}=s("min",r.value||e.minDate);let f=[{type:"year",range:[l,t]},{type:"month",range:[c,i]},{type:"day",range:[u,n]},{type:"hour",range:[d,o]},{type:"minute",range:[h,a]}];switch(e.type){case"date":f=f.slice(0,3);break;case"year-month":f=f.slice(0,2);break;case"month-day":f=f.slice(1,3);break;case"datehour":f=f.slice(0,4);break}if(e.columnsOrder){const t=e.columnsOrder.concat(f.map((e=>e.type)));f.sort(((e,n)=>t.indexOf(e.type)-t.indexOf(n.type)))}return f})),c=(0,a.Fl)((()=>u.value.map((({type:t,range:n})=>{let i=jt(n[1]-n[0]+1,(e=>(0,L.Bd)(n[0]+e)));return e.filter&&(i=e.filter(t,i)),{type:t,values:i}})))),d=(0,a.Fl)((()=>c.value.map((t=>({values:t.values.map((n=>e.formatter(t.type,n)))}))))),h=()=>{const t=r.value||e.minDate,{formatter:n}=e,i=c.value.map((e=>{switch(e.type){case"year":return n("year",`${t.getFullYear()}`);case"month":return n("month",(0,L.Bd)(t.getMonth()+1));case"day":return n("day",(0,L.Bd)(t.getDate()));case"hour":return n("hour",(0,L.Bd)(t.getHours()));case"minute":return n("minute",(0,L.Bd)(t.getMinutes()));default:return""}}));(0,a.Y3)((()=>{var e;null==(e=o.value)||e.setValues(i)}))},f=()=>{const{type:t}=e,n=o.value.getIndexes(),a=e=>{let t=0;c.value.forEach(((n,i)=>{e===n.type&&(t=i)}));const{values:i}=c.value[t];return Gt(i[n[t]])};let s,l,u;"month-day"===t?(s=(r.value||e.minDate).getFullYear(),l=a("month"),u=a("day")):(s=a("year"),l=a("month"),u="year-month"===t?1:a("day"));const d=Yt(s,l);u=u>d?d:u;let h=0,f=0;"datehour"===t&&(h=a("hour")),"datetime"===t&&(h=a("hour"),f=a("minute"));const p=new Date(s,l-1,u,h,f);r.value=i(p)},p=()=>{t("update:modelValue",r.value),t("confirm",r.value)},g=()=>t("cancel"),v=()=>{f(),(0,a.Y3)((()=>{(0,a.Y3)((()=>t("change",r.value)))}))};return(0,a.bv)((()=>{h(),(0,a.Y3)(f)})),(0,a.YP)(d,h),(0,a.YP)(r,((e,n)=>t("update:modelValue",n?e:null))),(0,a.YP)((()=>[e.filter,e.maxDate]),f),(0,a.YP)((()=>e.minDate),(()=>{(0,a.Y3)(f)})),(0,a.YP)((()=>e.modelValue),(e=>{var t;e=i(e),e&&e.valueOf()!==(null==(t=r.value)?void 0:t.valueOf())&&(r.value=e)})),(0,D.F)({getPicker:()=>o.value&&Zt(o.value,f)}),()=>(0,a.Wm)(Q,(0,a.dG)({ref:o,columns:d.value,onChange:v,onCancel:g,onConfirm:p},(0,l.ei)(e,Ht)),n)}});const[nr,ir]=(0,s["do"])("datetime-picker"),or=Object.keys(Ko.props),rr=Object.keys(tr.props),ar=(0,l.l7)({},Ko.props,tr.props,{modelValue:[String,Date]});var sr=(0,a.aZ)({name:nr,props:ar,setup(e,{attrs:t,slots:n}){const i=(0,T.iH)();return(0,D.F)({getPicker:()=>{var e;return null==(e=i.value)?void 0:e.getPicker()}}),()=>{const o="time"===e.type,r=o?Ko:tr,s=(0,l.ei)(e,o?or:rr);return(0,a.Wm)(r,(0,a.dG)({ref:i,class:ir()},s,t),n)}}});const lr=(0,r.n)(sr);var ur=n(40162);const[cr,dr]=(0,s["do"])("divider"),hr={dashed:Boolean,hairline:u.J5,contentPosition:(0,u.SQ)("center")};var fr=(0,a.aZ)({name:cr,props:hr,setup(e,{slots:t}){return()=>{var n;return(0,a.Wm)("div",{role:"separator",class:dr({dashed:e.dashed,hairline:e.hairline,[`content-${e.contentPosition}`]:!!t.default})},[null==(n=t.default)?void 0:n.call(t)])}}});const pr=(0,r.n)(fr);const[gr,vr]=(0,s["do"])("dropdown-menu"),mr={overlay:u.J5,zIndex:u.Or,duration:(0,u.SI)(.2),direction:(0,u.SQ)("down"),activeColor:String,closeOnClickOutside:u.J5,closeOnClickOverlay:u.J5},yr=Symbol(gr);var xr=(0,a.aZ)({name:gr,props:mr,setup(e,{slots:t}){const n=Te(),i=(0,T.iH)(),o=(0,T.iH)(),r=(0,T.iH)(0),{children:s,linkChildren:l}=(0,d.$E)(yr),u=(0,d.eo)(i),c=(0,a.Fl)((()=>s.some((e=>e.state.showWrapper)))),h=(0,a.Fl)((()=>{if(c.value&&(0,N.Xq)(e.zIndex))return{zIndex:+e.zIndex+1}})),f=()=>{e.closeOnClickOutside&&s.forEach((e=>{e.toggle(!1)}))},p=()=>{if(o.value){const t=(0,d.EL)(o);"down"===e.direction?r.value=t.bottom:r.value=V.uK.value-t.top}},g=()=>{c.value&&p()},v=e=>{s.forEach(((t,n)=>{n===e?(p(),t.toggle()):t.state.showPopup&&t.toggle(!1,{immediate:!0})}))},m=(t,i)=>{const{showPopup:o}=t.state,{disabled:r,titleClass:s}=t;return(0,a.Wm)("div",{id:`${n}-${i}`,role:"button",tabindex:r?void 0:0,class:[vr("item",{disabled:r}),{[_.e9]:!r}],onClick:()=>{r||v(i)}},[(0,a.Wm)("span",{class:[vr("title",{down:o===("down"===e.direction),active:o}),s],style:{color:o?e.activeColor:""}},[(0,a.Wm)("div",{class:"van-ellipsis"},[t.renderTitle()])])])};return l({id:n,props:e,offset:r}),(0,d.Vd)(i,f),(0,d.OR)("scroll",g,{target:u}),()=>{var e;return(0,a.Wm)("div",{ref:i,class:vr()},[(0,a.Wm)("div",{ref:o,style:h.value,class:vr("bar",{opened:c.value})},[s.map(m)]),null==(e=t.default)?void 0:e.call(t)])}}});const[_r,br]=(0,s["do"])("dropdown-item"),wr={title:String,options:(0,u.Ce)(),disabled:Boolean,teleport:[String,Object],lazyRender:u.J5,modelValue:u.Vg,titleClass:u.Vg};var Sr=(0,a.aZ)({name:_r,props:wr,emits:["open","opened","close","closed","change","update:modelValue"],setup(e,{emit:t,slots:n}){const i=(0,T.qj)({showPopup:!1,transition:!0,showWrapper:!1}),{parent:o,index:r}=(0,d.NB)(yr);if(!o)return void 0;const s=e=>()=>t(e),l=s("open"),u=s("close"),c=s("opened"),h=()=>{i.showWrapper=!1,t("closed")},p=t=>{e.teleport&&t.stopPropagation()},g=(e=!i.showPopup,t={})=>{e!==i.showPopup&&(i.showPopup=e,i.transition=!t.immediate,e&&(i.showWrapper=!0))},v=()=>{if(n.title)return n.title();if(e.title)return e.title;const t=e.options.find((t=>t.value===e.modelValue));return t?t.text:""},m=n=>{const{activeColor:r}=o.props,s=n.value===e.modelValue,l=()=>{i.showPopup=!1,n.value!==e.modelValue&&(t("update:modelValue",n.value),t("change",n.value))},u=()=>{if(s)return(0,a.Wm)(f.J,{class:br("icon"),color:r,name:"success"},null)};return(0,a.Wm)(pe,{role:"menuitem",key:n.value,icon:n.icon,title:n.text,class:br("option",{active:s}),style:{color:s?r:""},tabindex:s?0:-1,clickable:!0,onClick:l},{value:u})},y=()=>{const{offset:t}=o,{zIndex:s,overlay:d,duration:f,direction:g,closeOnClickOverlay:v}=o.props,y=(0,L.As)(s);return"down"===g?y.top=`${t.value}px`:y.bottom=`${t.value}px`,(0,a.wy)((0,a.Wm)("div",{style:y,class:br([g]),onClick:p},[(0,a.Wm)(b.G,{show:i.showPopup,"onUpdate:show":e=>i.showPopup=e,role:"menu",class:br("content"),overlay:d,position:"down"===g?"top":"bottom",duration:i.transition?f:0,lazyRender:e.lazyRender,overlayStyle:{position:"absolute"},"aria-labelledby":`${o.id}-${r.value}`,closeOnClickOverlay:v,onOpen:l,onClose:u,onOpened:c,onClosed:h},{default:()=>{var t;return[e.options.map(m),null==(t=n.default)?void 0:t.call(n)]}})]),[[E.F8,i.showWrapper]])};return(0,D.F)({state:i,toggle:g,renderTitle:v}),()=>e.teleport?(0,a.Wm)(a.lR,{to:e.teleport},{default:()=>[y()]}):y()}});const Mr=(0,r.n)(Sr);const Ir=(0,r.n)(xr);const Ar="van-empty-network-",kr=(e,t,n)=>(0,a.Wm)("stop",{"stop-color":e,offset:`${t}%`,"stop-opacity":n},null),Pr=(0,a.Wm)("svg",{viewBox:"0 0 160 160"},[(0,a.Wm)("defs",null,[(0,a.Wm)("linearGradient",{id:`${Ar}1`,x1:"64%",y1:"100%",x2:"64%"},[kr("#FFF",0,.5),kr("#F2F3F5",100)]),(0,a.Wm)("linearGradient",{id:`${Ar}2`,x1:"50%",x2:"50%",y2:"84%"},[kr("#EBEDF0",0),kr("#DCDEE0",100,0)]),(0,a.Wm)("linearGradient",{id:`${Ar}3`,x1:"100%",x2:"100%",y2:"100%"},[kr("#EAEDF0",0),kr("#DCDEE0",100)]),(0,a.Wm)("radialGradient",{id:`${Ar}4`,cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[kr("#EBEDF0",0),kr("#FFF",100,0)])]),(0,a.Wm)("g",{fill:"none"},[(0,a.Wm)("g",{opacity:".8"},[(0,a.Wm)("path",{d:"M36 131V53H16v20H2v58h34z",fill:`url(#${Ar}1)`},null),(0,a.Wm)("path",{d:"M123 15h22v14h9v77h-31V15z",fill:`url(#${Ar}1)`},null)]),(0,a.Wm)("path",{fill:`url(#${Ar}4)`,d:"M0 139h160v21H0z"},null),(0,a.Wm)("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:`url(#${Ar}2)`},null),(0,a.Wm)("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[(0,a.Wm)("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:`url(#${Ar}3)`},null),(0,a.Wm)("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:`url(#${Ar}3)`},null),(0,a.Wm)("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:`url(#${Ar}3)`},null),(0,a.Wm)("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:`url(#${Ar}3)`},null)]),(0,a.Wm)("g",{transform:"translate(31 105)"},[(0,a.Wm)("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),(0,a.Wm)("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),(0,a.Wm)("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),[Cr,Er]=(0,s["do"])("empty"),Tr=["error","search","default"],Nr={image:(0,u.SQ)("default"),imageSize:u.Or,description:String};var Dr=(0,a.aZ)({name:Cr,props:Nr,setup(e,{slots:t}){const n=()=>{if(t.image)return t.image();let{image:n}=e;return"network"===n?Pr:(Tr.includes(n)&&(n=`https://img.yzcdn.cn/vant/empty-image-${n}.png`),(0,a.Wm)("img",{src:n},null))},i=()=>{const n=t.description?t.description():e.description;if(n)return(0,a.Wm)("p",{class:Er("description")},[n])},o=()=>{if(t.default)return(0,a.Wm)("div",{class:Er("bottom")},[t.default()])};return()=>(0,a.Wm)("div",{class:Er()},[(0,a.Wm)("div",{class:Er("image"),style:(0,L.Xn)(e.imageSize)},[n()]),i(),o()])}});const Or=(0,r.n)(Dr);const[Lr,Vr]=(0,s["do"])("grid"),Rr={square:Boolean,center:u.J5,border:u.J5,gutter:u.Or,reverse:Boolean,iconSize:u.Or,direction:String,clickable:Boolean,columnNum:(0,u.SI)(4)},Br=Symbol(Lr);var zr=(0,a.aZ)({name:Lr,props:Rr,setup(e,{slots:t}){const{linkChildren:n}=(0,d.$E)(Br);return n({props:e}),()=>{var n;return(0,a.Wm)("div",{style:{paddingLeft:(0,L.Nn)(e.gutter)},class:[Vr(),{[_.k7]:e.border&&!e.gutter}]},[null==(n=t.default)?void 0:n.call(t)])}}});const Wr=(0,r.n)(zr);const[Fr,Ur]=(0,s["do"])("grid-item"),$r=(0,l.l7)({},h.g2,{dot:Boolean,text:String,icon:String,badge:u.Or,iconColor:String,iconPrefix:String,badgeProps:Object});var Hr=(0,a.aZ)({name:Fr,props:$r,setup(e,{slots:t}){const{parent:n,index:i}=(0,d.NB)(Br),o=(0,h.yj)();if(!n)return void 0;const r=(0,a.Fl)((()=>{const{square:e,gutter:t,columnNum:o}=n.props,r=100/+o+"%",a={flexBasis:r};if(e)a.paddingTop=r;else if(t){const e=(0,L.Nn)(t);a.paddingRight=e,i.value>=o&&(a.marginTop=e)}return a})),s=(0,a.Fl)((()=>{const{square:e,gutter:t}=n.props;if(e&&t){const e=(0,L.Nn)(t);return{right:e,bottom:e,height:"auto"}}})),l=()=>t.icon?(0,a.Wm)(p.C,(0,a.dG)({dot:e.dot,content:e.badge},e.badgeProps),{default:t.icon}):e.icon?(0,a.Wm)(f.J,{dot:e.dot,name:e.icon,size:n.props.iconSize,badge:e.badge,class:Ur("icon"),color:e.iconColor,badgeProps:e.badgeProps,classPrefix:e.iconPrefix},null):void 0,u=()=>t.text?t.text():e.text?(0,a.Wm)("span",{class:Ur("text")},[e.text]):void 0,c=()=>t.default?t.default():[l(),u()];return()=>{const{center:e,border:t,square:i,gutter:l,reverse:u,direction:d,clickable:h}=n.props,f=[Ur("content",[d,{center:e,square:i,reverse:u,clickable:h,surround:t&&l}]),{[_.T5]:t}];return(0,a.Wm)("div",{class:[Ur({square:i})],style:r.value},[(0,a.Wm)("div",{role:h?"button":void 0,class:f,style:s.value,tabindex:h?0:void 0,onClick:o},[c()])])}}});const jr=(0,r.n)(Hr);var Gr=n(10037);const Yr=e=>Math.sqrt((e[0].clientX-e[1].clientX)**2+(e[0].clientY-e[1].clientY)**2),Zr=(0,s["do"])("image-preview")[1];var qr=(0,a.aZ)({props:{src:String,show:Boolean,active:Number,minZoom:(0,u.ir)(u.Or),maxZoom:(0,u.ir)(u.Or),rootWidth:(0,u.ir)(Number),rootHeight:(0,u.ir)(Number)},emits:["scale","close"],setup(e,{emit:t}){const n=(0,T.qj)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),i=(0,R.o)(),o=(0,a.Fl)((()=>{const{rootWidth:t,rootHeight:i}=e,o=i/t;return n.imageRatio>o})),r=(0,a.Fl)((()=>{const{scale:e,moveX:t,moveY:i,moving:o,zooming:r}=n,a={transitionDuration:r||o?"0s":".3s"};if(1!==e){const n=t/e,o=i/e;a.transform=`scale(${e}, ${e}) translate(${n}px, ${o}px)`}return a})),s=(0,a.Fl)((()=>{if(n.imageRatio){const{rootWidth:t,rootHeight:i}=e,r=o.value?i/n.imageRatio:t;return Math.max(0,(n.scale*r-t)/2)}return 0})),l=(0,a.Fl)((()=>{if(n.imageRatio){const{rootWidth:t,rootHeight:i}=e,r=o.value?i:t*n.imageRatio;return Math.max(0,(n.scale*r-i)/2)}return 0})),u=i=>{i=(0,L.uZ)(i,+e.minZoom,+e.maxZoom+1),i!==n.scale&&(n.scale=i,t("scale",{scale:i,index:e.active}))},c=()=>{u(1),n.moveX=0,n.moveY=0},d=()=>{const e=n.scale>1?1:2;u(e),n.moveX=0,n.moveY=0};let h,f,p,g,v,m,y;const x=e=>{const{touches:t}=e,{offsetX:o}=i;i.start(e),h=t.length,f=n.moveX,p=n.moveY,y=Date.now(),n.moving=1===h&&1!==n.scale,n.zooming=2===h&&!o.value,n.zooming&&(g=n.scale,v=Yr(e.touches))},_=e=>{const{touches:t}=e;if(i.move(e),(n.moving||n.zooming)&&(0,V.PF)(e,!0),n.moving){const{deltaX:e,deltaY:t}=i,o=e.value+f,r=t.value+p;n.moveX=(0,L.uZ)(o,-s.value,s.value),n.moveY=(0,L.uZ)(r,-l.value,l.value)}if(n.zooming&&2===t.length){const e=Yr(t),n=g*e/v;u(n)}},b=()=>{if(h>1)return;const{offsetX:e,offsetY:n}=i,o=Date.now()-y,r=250,a=5;e.value<a&&n.value<a&&o<r&&(m?(clearTimeout(m),m=null,d()):m=setTimeout((()=>{t("close"),m=null}),r))},S=t=>{let o=!1;(n.moving||n.zooming)&&(o=!0,n.moving&&f===n.moveX&&p===n.moveY&&(o=!1),t.touches.length||(n.zooming&&(n.moveX=(0,L.uZ)(n.moveX,-s.value,s.value),n.moveY=(0,L.uZ)(n.moveY,-l.value,l.value),n.zooming=!1),n.moving=!1,f=0,p=0,g=1,n.scale<1&&c(),n.scale>e.maxZoom&&(n.scale=+e.maxZoom))),(0,V.PF)(t,o),b(),i.reset()},M=e=>{const{naturalWidth:t,naturalHeight:i}=e.target;n.imageRatio=i/t};return(0,a.YP)((()=>e.active),c),(0,a.YP)((()=>e.show),(e=>{e||c()})),()=>{const t={loading:()=>(0,a.Wm)(w.g,{type:"spinner"},null)};return(0,a.Wm)(qn,{class:Zr("swipe-item"),onTouchstart:x,onTouchmove:_,onTouchend:S,onTouchcancel:S},{default:()=>[(0,a.Wm)(dn,{src:e.src,fit:"contain",class:Zr("image",{vertical:o.value}),style:r.value,onLoad:M},t)]})}}});const[Xr,Jr]=(0,s["do"])("image-preview"),Kr=["show","transition","overlayStyle","closeOnPopstate"],Qr={show:Boolean,loop:u.J5,images:(0,u.Ce)(),minZoom:(0,u.SI)(1/3),maxZoom:(0,u.SI)(3),overlay:u.J5,closeable:Boolean,showIndex:u.J5,className:u.Vg,closeIcon:(0,u.SQ)("clear"),transition:String,beforeClose:Function,overlayClass:u.Vg,overlayStyle:Object,swipeDuration:(0,u.SI)(300),startPosition:(0,u.SI)(0),showIndicators:Boolean,closeOnPopstate:u.J5,closeIconPosition:(0,u.SQ)("top-right")};var ea=(0,a.aZ)({name:Xr,props:Qr,emits:["scale","close","closed","change","update:show"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),o=(0,T.qj)({active:0,rootWidth:0,rootHeight:0}),r=()=>{if(i.value){const e=(0,d.EL)(i.value.$el);o.rootWidth=e.width,o.rootHeight=e.height,i.value.resize()}},s=e=>t("scale",e),u=e=>t("update:show",e),c=()=>{(0,mn.I)(e.beforeClose,{args:[o.active],done:()=>u(!1)})},h=e=>{e!==o.active&&(o.active=e,t("change",e))},p=()=>{if(e.showIndex)return(0,a.Wm)("div",{class:Jr("index")},[n.index?n.index({index:o.active}):`${o.active+1} / ${e.images.length}`])},g=()=>{if(n.cover)return(0,a.Wm)("div",{class:Jr("cover")},[n.cover()])},v=()=>(0,a.Wm)(Ln,{ref:i,lazyRender:!0,loop:e.loop,class:Jr("swipe"),duration:e.swipeDuration,initialSwipe:e.startPosition,showIndicators:e.showIndicators,indicatorColor:"white",onChange:h},{default:()=>[e.images.map((t=>(0,a.Wm)(qr,{src:t,show:e.show,active:o.active,maxZoom:e.maxZoom,minZoom:e.minZoom,rootWidth:o.rootWidth,rootHeight:o.rootHeight,onScale:s,onClose:c},null)))]}),m=()=>{if(e.closeable)return(0,a.Wm)(f.J,{role:"button",name:e.closeIcon,class:[Jr("close-icon",e.closeIconPosition),_.e9],onClick:c},null)},y=()=>t("closed"),x=(e,t)=>{var n;return null==(n=i.value)?void 0:n.swipeTo(e,t)};return(0,D.F)({swipeTo:x}),(0,a.bv)(r),(0,a.YP)([V.bn,V.uK],r),(0,a.YP)((()=>e.startPosition),(e=>h(+e))),(0,a.YP)((()=>e.show),(n=>{const{images:i,startPosition:s}=e;n?(h(+s),(0,a.Y3)((()=>{r(),x(+s,{immediate:!0})}))):t("close",{index:o.active,url:i[o.active]})})),()=>(0,a.Wm)(b.G,(0,a.dG)({class:[Jr(),e.className],overlayClass:[Jr("overlay"),e.overlayClass],onClosed:y,"onUpdate:show":u},(0,l.ei)(e,Kr)),{default:()=>[m(),v(),p(),g()]})}});let ta;const na={loop:!0,images:[],maxZoom:3,minZoom:1/3,onScale:void 0,onClose:void 0,onChange:void 0,teleport:"body",className:"",showIndex:!0,closeable:!1,closeIcon:"clear",transition:void 0,beforeClose:void 0,overlayStyle:void 0,overlayClass:void 0,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"};function ia(){({instance:ta}=(0,Gr.H)({setup(){const{state:e,toggle:t}=(0,Gr.o)(),n=()=>{e.images=[]};return()=>(0,a.Wm)(ea,(0,a.dG)(e,{onClosed:n,"onUpdate:show":t}),null)}}))}const oa=(e,t=0)=>{if(l._f)return ta||ia(),e=Array.isArray(e)?{images:e,startPosition:t}:e,ta.open((0,l.l7)({},na,e)),ta};function ra(){const e="A".charCodeAt(0),t=Array(26).fill("").map(((t,n)=>String.fromCharCode(e+n)));return t}oa.Component=(0,r.n)(ea),oa.install=e=>{e.use(oa.Component)};const[aa,sa]=(0,s["do"])("index-bar"),la={sticky:u.J5,zIndex:u.Or,teleport:[String,Object],highlightColor:String,stickyOffsetTop:(0,u.qM)(0),indexList:{type:Array,default:ra}},ua=Symbol(aa);var ca=(0,a.aZ)({name:aa,props:la,emits:["select","change"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),o=(0,T.iH)(""),r=(0,R.o)(),s=(0,d.eo)(i),{children:l,linkChildren:u}=(0,d.$E)(ua);u({props:e});const c=(0,a.Fl)((()=>{if((0,N.Xq)(e.zIndex))return{zIndex:+e.zIndex+1}})),h=(0,a.Fl)((()=>{if(e.highlightColor)return{color:e.highlightColor}})),f=(t,n)=>{for(let i=l.length-1;i>=0;i--){const o=i>0?n[i-1].height:0,r=e.sticky?o+e.stickyOffsetTop:0;if(t+r>=n[i].top)return i}return-1},p=()=>{if((0,V.xj)(i))return;const{sticky:t,indexList:n}=e,r=(0,V.cx)(s.value),a=(0,d.EL)(s),u=l.map((e=>e.getRect(s.value,a))),c=f(r,u);o.value=n[c],t&&l.forEach(((t,n)=>{const{state:i,$el:o}=t;if(n===c||n===c-1){const e=o.getBoundingClientRect();i.left=e.left,i.width=e.width}else i.left=null,i.width=null;if(n===c)i.active=!0,i.top=Math.max(e.stickyOffsetTop,u[n].top-r)+a.top;else if(n===c-1){const e=u[c].top-r;i.active=e>0,i.top=e+a.top-u[n].height}else i.active=!1}))},g=()=>(0,a.Y3)(p);(0,d.OR)("scroll",p,{target:s}),(0,a.bv)(g),(0,a.YP)((()=>e.indexList),g),(0,a.YP)(o,(e=>{e&&t("change",e)}));const v=()=>e.indexList.map((e=>{const t=e===o.value;return(0,a.Wm)("span",{class:sa("index",{active:t}),style:t?h.value:void 0,"data-index":e},[e])})),m=n=>{n=String(n);const i=l.find((e=>String(e.index)===n));i&&(i.$el.scrollIntoView(),e.sticky&&e.stickyOffsetTop&&(0,V.kn)((0,V.oD)()-e.stickyOffsetTop),t("select",i.index))},y=e=>{const{index:t}=e.dataset;t&&m(t)},x=e=>{y(e.target)};let _;const b=e=>{if(r.move(e),r.isVertical()){(0,V.PF)(e);const{clientX:t,clientY:n}=e.touches[0],i=document.elementFromPoint(t,n);if(i){const{index:e}=i.dataset;e&&_!==e&&(_=e,y(i))}}},w=()=>(0,a.Wm)("div",{class:sa("sidebar"),style:c.value,onClick:x,onTouchstart:r.start,onTouchmove:b},[v()]);return(0,D.F)({scrollTo:m}),()=>{var t;return(0,a.Wm)("div",{ref:i,class:sa()},[e.teleport?(0,a.Wm)(a.lR,{to:e.teleport},{default:()=>[w()]}):w(),null==(t=n.default)?void 0:t.call(n)])}}});const[da,ha]=(0,s["do"])("index-anchor"),fa={index:u.Or};var pa=(0,a.aZ)({name:da,props:fa,setup(e,{slots:t}){const n=(0,T.qj)({top:0,left:null,rect:{top:0,height:0},width:null,active:!1}),i=(0,T.iH)(),{parent:o}=(0,d.NB)(ua);if(!o)return void 0;const r=()=>n.active&&o.props.sticky,s=(0,a.Fl)((()=>{const{zIndex:e,highlightColor:t}=o.props;if(r())return(0,l.l7)((0,L.As)(e),{left:n.left?`${n.left}px`:void 0,width:n.width?`${n.width}px`:void 0,transform:n.top?`translate3d(0, ${n.top}px, 0)`:void 0,color:t})})),u=(e,t)=>{const o=(0,d.EL)(i);return n.rect.height=o.height,e===window||e===document.body?n.rect.top=o.top+(0,V.oD)():n.rect.top=o.top+(0,V.cx)(e)-t.top,n.rect};return(0,D.F)({state:n,getRect:u}),()=>{const o=r();return(0,a.Wm)("div",{ref:i,style:{height:o?`${n.rect.height}px`:void 0}},[(0,a.Wm)("div",{style:s.value,class:[ha({sticky:o}),{[_.xe]:o}]},[t.default?t.default():e.index])])}}});const ga=(0,r.n)(pa);const va=(0,r.n)(ca);const[ma,ya,xa]=(0,s["do"])("list"),_a={error:Boolean,offset:(0,u.SI)(300),loading:Boolean,finished:Boolean,errorText:String,direction:(0,u.SQ)("down"),loadingText:String,finishedText:String,immediateCheck:u.J5};var ba=(0,a.aZ)({name:ma,props:_a,emits:["load","update:error","update:loading"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(!1),o=(0,T.iH)(),r=(0,T.iH)(),s=jn(),l=(0,d.eo)(o),u=()=>{(0,a.Y3)((()=>{if(i.value||e.finished||e.error||!1===(null==s?void 0:s.value))return;const{offset:n,direction:a}=e,u=(0,d.EL)(l);if(!u.height||(0,V.xj)(o))return;let c=!1;const h=(0,d.EL)(r);c="up"===a?u.top-h.top<=n:h.bottom-u.bottom<=n,c&&(i.value=!0,t("update:loading",!0),t("load"))}))},c=()=>{if(e.finished){const t=n.finished?n.finished():e.finishedText;if(t)return(0,a.Wm)("div",{class:ya("finished-text")},[t])}},h=()=>{t("update:error",!1),u()},f=()=>{if(e.error){const t=n.error?n.error():e.errorText;if(t)return(0,a.Wm)("div",{role:"button",class:ya("error-text"),tabindex:0,onClick:h},[t])}},p=()=>{if(i.value&&!e.finished)return(0,a.Wm)("div",{class:ya("loading")},[n.loading?n.loading():(0,a.Wm)(w.g,{class:ya("loading-icon")},{default:()=>[e.loadingText||xa("loading")]})])};return(0,a.YP)((()=>[e.loading,e.finished,e.error]),u),s&&(0,a.YP)(s,(e=>{e&&u()})),(0,a.ic)((()=>{i.value=e.loading})),(0,a.bv)((()=>{e.immediateCheck&&u()})),(0,D.F)({check:u}),(0,d.OR)("scroll",u,{target:l}),()=>{var t;const s=null==(t=n.default)?void 0:t.call(n),l=(0,a.Wm)("div",{ref:r,class:ya("placeholder")},null);return(0,a.Wm)("div",{ref:o,role:"feed",class:ya(),"aria-busy":i.value},["down"===e.direction?s:l,p(),c(),f(),"up"===e.direction?s:l])}}});const wa=(0,r.n)(ba);var Sa=n(89530);function Ma(e,t){const n=qt(e);return e=>(0,a.Wm)("div",{class:t("placeholder"),style:{height:n.value?`${n.value}px`:void 0}},[e()])}const[Ia,Aa]=(0,s["do"])("nav-bar"),ka={title:String,fixed:Boolean,zIndex:u.Or,border:u.J5,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean};var Pa=(0,a.aZ)({name:Ia,props:ka,emits:["click-left","click-right"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),o=Ma(i,Aa),r=e=>t("click-left",e),s=e=>t("click-right",e),l=()=>n.left?n.left():[e.leftArrow&&(0,a.Wm)(f.J,{class:Aa("arrow"),name:"arrow-left"},null),e.leftText&&(0,a.Wm)("span",{class:Aa("text")},[e.leftText])],u=()=>n.right?n.right():(0,a.Wm)("span",{class:Aa("text")},[e.rightText]),c=()=>{const{title:t,fixed:o,border:c,zIndex:d}=e,h=(0,L.As)(d),f=e.leftArrow||e.leftText||n.left,p=e.rightText||n.right;return(0,a.Wm)("div",{ref:i,style:h,class:[Aa({fixed:o,"safe-area-inset-top":e.safeAreaInsetTop}),{[_.xe]:c}]},[(0,a.Wm)("div",{class:Aa("content")},[f&&(0,a.Wm)("div",{class:[Aa("left"),_.e9],onClick:r},[l()]),(0,a.Wm)("div",{class:[Aa("title"),"van-ellipsis"]},[n.title?n.title():t]),p&&(0,a.Wm)("div",{class:[Aa("right"),_.e9],onClick:s},[u()])])])};return()=>e.fixed&&e.placeholder?o(c):c()}});const Ca=(0,r.n)(Pa);const[Ea,Ta]=(0,s["do"])("notice-bar"),Na={text:String,mode:String,color:String,delay:(0,u.SI)(1),speed:(0,u.SI)(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};var Da=(0,a.aZ)({name:Ea,props:Na,emits:["close","replay"],setup(e,{emit:t,slots:n}){let i,o=0,r=0;const s=(0,T.iH)(),l=(0,T.iH)(),u=(0,T.qj)({show:!0,offset:0,duration:0}),c=()=>n["left-icon"]?n["left-icon"]():e.leftIcon?(0,a.Wm)(f.J,{class:Ta("left-icon"),name:e.leftIcon},null):void 0,h=()=>"closeable"===e.mode?"cross":"link"===e.mode?"arrow":void 0,p=n=>{"closeable"===e.mode&&(u.show=!1,t("close",n))},g=()=>{if(n["right-icon"])return n["right-icon"]();const e=h();return e?(0,a.Wm)(f.J,{name:e,class:Ta("right-icon"),onClick:p},null):void 0},v=()=>{u.offset=o,u.duration=0,(0,d.Wn)((()=>{(0,d.d1)((()=>{u.offset=-r,u.duration=(r+o)/+e.speed,t("replay")}))}))},m=()=>{const t=!1===e.scrollable&&!e.wrapable,i={transform:u.offset?`translateX(${u.offset}px)`:"",transitionDuration:`${u.duration}s`};return(0,a.Wm)("div",{ref:s,role:"marquee",class:Ta("wrap")},[(0,a.Wm)("div",{ref:l,style:i,class:[Ta("content"),{"van-ellipsis":t}],onTransitionend:v},[n.default?n.default():e.text])])},y=()=>{const{delay:t,speed:n,scrollable:a}=e,c=(0,N.Xq)(t)?1e3*+t:0;o=0,r=0,u.offset=0,u.duration=0,clearTimeout(i),i=setTimeout((()=>{if(!s.value||!l.value||!1===a)return;const e=(0,d.EL)(s).width,t=(0,d.EL)(l).width;(a||t>e)&&(0,d.d1)((()=>{o=e,r=t,u.offset=-r,u.duration=r/+n}))}),c)};return(0,_n.h)(y),(0,d.Ib)(y),(0,d.OR)("pageshow",y),(0,D.F)({reset:y}),(0,a.YP)((()=>[e.text,e.scrollable]),y),()=>{const{color:t,wrapable:n,background:i}=e;return(0,a.wy)((0,a.Wm)("div",{role:"alert",class:Ta({wrapable:n}),style:{color:t,background:i}},[c(),m(),g()]),[[E.F8,u.show]])}}});const Oa=(0,r.n)(Da);const[La,Va]=(0,s["do"])("notify"),Ra=(0,l.l7)({},S.W,{type:(0,u.SQ)("danger"),color:String,message:u.Or,position:(0,u.SQ)("top"),className:u.Vg,background:String,lockScroll:Boolean});var Ba=(0,a.aZ)({name:La,props:Ra,emits:["update:show"],setup(e,{emit:t,slots:n}){const i=e=>t("update:show",e);return()=>(0,a.Wm)(b.G,{show:e.show,class:[Va([e.type]),e.className],style:{color:e.color,background:e.background},overlay:!1,position:e.position,duration:.2,lockScroll:e.lockScroll,"onUpdate:show":i},{default:()=>[n.default?n.default():e.message]})}});let za,Wa;const Fa=e=>(0,N.Kn)(e)?e:{message:e};function Ua(){({instance:Wa}=(0,Gr.H)({setup(){const{state:e,toggle:t}=(0,Gr.o)();return()=>(0,a.Wm)(Ba,(0,a.dG)(e,{"onUpdate:show":t}),null)}}))}function $a(e){if(l._f)return Wa||Ua(),e=(0,l.l7)({},$a.currentOptions,Fa(e)),Wa.open(e),clearTimeout(za),e.duration>0&&(za=window.setTimeout($a.clear,e.duration)),Wa}const Ha=()=>({type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0});$a.clear=()=>{Wa&&Wa.toggle(!1)},$a.currentOptions=Ha(),$a.setDefaultOptions=e=>{(0,l.l7)($a.currentOptions,e)},$a.resetDefaultOptions=()=>{$a.currentOptions=Ha()},$a.Component=(0,r.n)(Ba),$a.install=e=>{e.use($a.Component),e.config.globalProperties.$notify=$a};const[ja,Ga]=(0,s["do"])("key"),Ya=(0,a.Wm)("svg",{class:Ga("collapse-icon"),viewBox:"0 0 30 24"},[(0,a.Wm)("path",{d:"M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",fill:"currentColor"},null)]),Za=(0,a.Wm)("svg",{class:Ga("delete-icon"),viewBox:"0 0 32 22"},[(0,a.Wm)("path",{d:"M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",fill:"currentColor"},null)]);var qa=(0,a.aZ)({name:ja,props:{type:String,text:u.Or,color:String,wider:Boolean,large:Boolean,loading:Boolean},emits:["press"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(!1),o=(0,R.o)(),r=e=>{o.start(e),i.value=!0},s=e=>{o.move(e),o.direction.value&&(i.value=!1)},l=o=>{i.value&&(n.default||(0,V.PF)(o),i.value=!1,t("press",e.text,e.type))},u=()=>{if(e.loading)return(0,a.Wm)(w.g,{class:Ga("loading-icon")},null);const t=n.default?n.default():e.text;switch(e.type){case"delete":return t||Za;case"extra":return t||Ya;default:return t}};return()=>(0,a.Wm)("div",{class:Ga("wrapper",{wider:e.wider}),onTouchstart:r,onTouchmove:s,onTouchend:l,onTouchcancel:l},[(0,a.Wm)("div",{role:"button",tabindex:0,class:Ga([e.color,{large:e.large,active:i.value,delete:"delete"===e.type}])},[u()])])}});const[Xa,Ja]=(0,s["do"])("number-keyboard"),Ka={show:Boolean,title:String,theme:(0,u.SQ)("default"),zIndex:u.Or,teleport:[String,Object],maxlength:(0,u.SI)(1/0),modelValue:(0,u.SQ)(""),transition:u.J5,blurOnClose:u.J5,showDeleteKey:u.J5,randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,hideOnClickOutside:u.J5,safeAreaInsetBottom:u.J5,extraKey:{type:[String,Array],default:""}};var Qa=(0,a.aZ)({name:Xa,props:Ka,emits:["show","hide","blur","input","close","delete","update:modelValue"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),o=()=>{const t=Array(9).fill("").map(((e,t)=>({text:t+1})));return e.randomKeyOrder&&t.sort((()=>Math.random()>.5?1:-1)),t},r=()=>[...o(),{text:e.extraKey,type:"extra"},{text:0},{text:e.showDeleteKey?e.deleteButtonText:"",type:e.showDeleteKey?"delete":""}],s=()=>{const t=o(),{extraKey:n}=e,i=Array.isArray(n)?n:[n];return 1===i.length?t.push({text:0,wider:!0},{text:i[0],type:"extra"}):2===i.length&&t.push({text:i[0],type:"extra"},{text:0},{text:i[1],type:"extra"}),t},l=(0,a.Fl)((()=>"custom"===e.theme?s():r())),u=()=>{e.show&&t("blur")},c=()=>{t("close"),e.blurOnClose&&u()},h=()=>t(e.show?"show":"hide"),f=(n,i)=>{if(""===n)return void("extra"===i&&u());const o=e.modelValue;"delete"===i?(t("delete"),t("update:modelValue",o.slice(0,o.length-1))):"close"===i?c():o.length<e.maxlength&&(t("input",n),t("update:modelValue",o+n))},p=()=>{const{title:t,theme:i,closeButtonText:o}=e,r=n["title-left"],s=o&&"default"===i,l=t||s||r;if(l)return(0,a.Wm)("div",{class:Ja("header")},[r&&(0,a.Wm)("span",{class:Ja("title-left")},[r()]),t&&(0,a.Wm)("h2",{class:Ja("title")},[t]),s&&(0,a.Wm)("button",{type:"button",class:[Ja("close"),_.e9],onClick:c},[o])])},g=()=>l.value.map((e=>{const t={};return"delete"===e.type&&(t.default=n.delete),"extra"===e.type&&(t.default=n["extra-key"]),(0,a.Wm)(qa,{key:e.text,text:e.text,type:e.type,wider:e.wider,color:e.color,onPress:f},t)})),v=()=>{if("custom"===e.theme)return(0,a.Wm)("div",{class:Ja("sidebar")},[e.showDeleteKey&&(0,a.Wm)(qa,{large:!0,text:e.deleteButtonText,type:"delete",onPress:f},{delete:n.delete}),(0,a.Wm)(qa,{large:!0,text:e.closeButtonText,type:"close",color:"blue",loading:e.closeButtonLoading,onPress:f},null)])};return(0,a.YP)((()=>e.show),(n=>{e.transition||t(n?"show":"hide")})),e.hideOnClickOutside&&(0,d.Vd)(i,u,{eventName:"touchstart"}),()=>{const t=p(),n=(0,a.Wm)(E.uT,{name:e.transition?"van-slide-up":""},{default:()=>[(0,a.wy)((0,a.Wm)("div",{ref:i,style:(0,L.As)(e.zIndex),class:Ja({unfit:!e.safeAreaInsetBottom,"with-title":!!t}),onTouchstart:V.UW,onAnimationend:h,onWebkitAnimationEnd:h},[t,(0,a.Wm)("div",{class:Ja("body")},[(0,a.Wm)("div",{class:Ja("keys")},[g()]),v()])]),[[E.F8,e.show]])]});return e.teleport?(0,a.Wm)(a.lR,{to:e.teleport},{default:()=>[n]}):n}}});const es=(0,r.n)(Qa);var ts=n(22912);const[ns,is,os]=(0,s["do"])("pagination"),rs=(e,t,n)=>({number:e,text:t,active:n}),as={mode:(0,u.SQ)("multi"),prevText:String,nextText:String,pageCount:(0,u.SI)(0),modelValue:(0,u.qM)(0),totalItems:(0,u.SI)(0),showPageSize:(0,u.SI)(5),itemsPerPage:(0,u.SI)(10),forceEllipses:Boolean};var ss=(0,a.aZ)({name:ns,props:as,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const i=(0,a.Fl)((()=>{const{pageCount:t,totalItems:n,itemsPerPage:i}=e,o=+t||Math.ceil(+n/+i);return Math.max(1,o)})),o=(0,a.Fl)((()=>{const t=[],n=i.value,o=+e.showPageSize,{modelValue:r,forceEllipses:a}=e;let s=1,l=n;const u=o<n;u&&(s=Math.max(r-Math.floor(o/2),1),l=s+o-1,l>n&&(l=n,s=l-o+1));for(let e=s;e<=l;e++){const n=rs(e,e,e===r);t.push(n)}if(u&&o>0&&a){if(s>1){const e=rs(s-1,"...");t.unshift(e)}if(l<n){const e=rs(l+1,"...");t.push(e)}}return t})),r=(n,o)=>{n=(0,L.uZ)(n,1,i.value),e.modelValue!==n&&(t("update:modelValue",n),o&&t("change",n))};(0,a.m0)((()=>r(e.modelValue)));const s=()=>(0,a.Wm)("li",{class:is("page-desc")},[n.pageDesc?n.pageDesc():`${e.modelValue}/${i.value}`]),l=()=>{const{mode:t,modelValue:i}=e,o=n["prev-text"],s=1===i;return(0,a.Wm)("li",{class:[is("item",{disabled:s,border:"simple"===t,prev:!0}),_._K]},[(0,a.Wm)("button",{type:"button",disabled:s,onClick:()=>r(i-1,!0)},[o?o():e.prevText||os("prev")])])},u=()=>{const{mode:t,modelValue:o}=e,s=n["next-text"],l=o===i.value;return(0,a.Wm)("li",{class:[is("item",{disabled:l,border:"simple"===t,next:!0}),_._K]},[(0,a.Wm)("button",{type:"button",disabled:l,onClick:()=>r(o+1,!0)},[s?s():e.nextText||os("next")])])},c=()=>o.value.map((e=>(0,a.Wm)("li",{class:[is("item",{active:e.active,page:!0}),_._K]},[(0,a.Wm)("button",{type:"button","aria-current":e.active||void 0,onClick:()=>r(e.number,!0)},[n.page?n.page(e):e.text])])));return()=>(0,a.Wm)("nav",{role:"navigation",class:is()},[(0,a.Wm)("ul",{class:is("items")},[l(),"simple"===e.mode?s():c(),u()])])}});const ls=(0,r.n)(ss);const[us,cs]=(0,s["do"])("password-input"),ds={info:String,mask:u.J5,value:(0,u.SQ)(""),gutter:u.Or,length:(0,u.SI)(6),focused:Boolean,errorInfo:String};var hs=(0,a.aZ)({name:us,props:ds,emits:["focus"],setup(e,{emit:t}){const n=e=>{e.stopPropagation(),t("focus",e)},i=()=>{const t=[],{mask:n,value:i,length:o,gutter:r,focused:s}=e;for(let e=0;e<o;e++){const o=i[e],l=0!==e&&!r,u=s&&e===i.length;let c;0!==e&&r&&(c={marginLeft:(0,L.Nn)(r)}),t.push((0,a.Wm)("li",{class:[{[_.a8]:l},cs("item",{focus:u})],style:c},[n?(0,a.Wm)("i",{style:{visibility:o?"visible":"hidden"}},null):o,u&&(0,a.Wm)("div",{class:cs("cursor")},null)]))}return t};return()=>{const t=e.errorInfo||e.info;return(0,a.Wm)("div",{class:cs()},[(0,a.Wm)("ul",{class:[cs("security"),{[_._K]:!e.gutter}],onTouchstart:n},[i()]),t&&(0,a.Wm)("div",{class:cs(e.errorInfo?"error-info":"info")},[t])])}}});const fs=(0,r.n)(hs);function ps(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function gs(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vs(e){var t=gs(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function ms(e){var t=gs(e).Element;return e instanceof t||e instanceof Element}function ys(e){var t=gs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xs(e){if("undefined"===typeof ShadowRoot)return!1;var t=gs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _s(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bs(e){return e!==gs(e)&&ys(e)?_s(e):vs(e)}function ws(e){return e?(e.nodeName||"").toLowerCase():null}function Ss(e){return((ms(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ms(e){return ps(Ss(e)).left+vs(e).scrollLeft}function Is(e){return gs(e).getComputedStyle(e)}function As(e){var t=Is(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function ks(e,t,n){void 0===n&&(n=!1);var i=Ss(t),o=ps(e),r=ys(t),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==ws(t)||As(i))&&(a=bs(t)),ys(t)?(s=ps(t),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Ms(i))),{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function Ps(e){var t=ps(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Cs(e){return"html"===ws(e)?e:e.assignedSlot||e.parentNode||(xs(e)?e.host:null)||Ss(e)}function Es(e){return["html","body","#document"].indexOf(ws(e))>=0?e.ownerDocument.body:ys(e)&&As(e)?e:Es(Cs(e))}function Ts(e,t){var n;void 0===t&&(t=[]);var i=Es(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=gs(i),a=o?[r].concat(r.visualViewport||[],As(i)?i:[]):i,s=t.concat(a);return o?s:s.concat(Ts(Cs(a)))}function Ns(e){return["table","td","th"].indexOf(ws(e))>=0}function Ds(e){return ys(e)&&"fixed"!==Is(e).position?e.offsetParent:null}function Os(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&ys(e)){var i=Is(e);if("fixed"===i.position)return null}var o=Cs(e);while(ys(o)&&["html","body"].indexOf(ws(o))<0){var r=Is(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}function Ls(e){var t=gs(e),n=Ds(e);while(n&&Ns(n)&&"static"===Is(n).position)n=Ds(n);return n&&("html"===ws(n)||"body"===ws(n)&&"static"===Is(n).position)?t:n||Os(e)||t}var Vs="top",Rs="bottom",Bs="right",zs="left",Ws="auto",Fs=[Vs,Rs,Bs,zs],Us="start",$s="end",Hs=[].concat(Fs,[Ws]).reduce((function(e,t){return e.concat([t,t+"-"+Us,t+"-"+$s])}),[]),js="beforeRead",Gs="read",Ys="afterRead",Zs="beforeMain",qs="main",Xs="afterMain",Js="beforeWrite",Ks="write",Qs="afterWrite",el=[js,Gs,Ys,Zs,qs,Xs,Js,Ks,Qs];function tl(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name);var r=[].concat(e.requires||[],e.requiresIfExists||[]);r.forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),i}function nl(e){var t=tl(e);return el.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function il(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function ol(e){return e.split("-")[0]}function rl(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var al=Math.round;function sl(e){return e.split("-")[1]}function ll(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ul(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?ol(o):null,a=o?sl(o):null,s=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Vs:t={x:s,y:n.y-i.height};break;case Rs:t={x:s,y:n.y+n.height};break;case Bs:t={x:n.x+n.width,y:l};break;case zs:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var u=r?ll(r):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case Us:t[u]=t[u]-(n[c]/2-i[c]/2);break;case $s:t[u]=t[u]+(n[c]/2-i[c]/2);break}}return t}var cl={placement:"bottom",modifiers:[],strategy:"absolute"};function dl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function hl(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?cl:o;return function(e,t,n){void 0===n&&(n=r);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},cl,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){c(),o.options=Object.assign({},r,o.options,n),o.scrollParents={reference:ms(e)?Ts(e):e.contextElement?Ts(e.contextElement):[],popper:Ts(t)};var a=nl(rl([].concat(i,o.options.modifiers)));return o.orderedModifiers=a.filter((function(e){return e.enabled})),u(),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(dl(t,n)){o.rects={reference:ks(t,Ls(n),"fixed"===o.options.strategy),popper:Ps(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<o.orderedModifiers.length;i++)if(!0!==o.reset){var r=o.orderedModifiers[i],a=r.fn,u=r.options,c=void 0===u?{}:u,d=r.name;"function"===typeof a&&(o=a({state:o,options:c,name:d,instance:l})||o)}else o.reset=!1,i=-1}}},update:il((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!dl(e,t))return l;function u(){o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"===typeof r){var s=r({state:o,name:t,instance:l,options:i}),u=function(){};a.push(s||u)}}))}function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var fl={passive:!0};function pl(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=void 0===o||o,a=i.resize,s=void 0===a||a,l=gs(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&u.forEach((function(e){e.addEventListener("scroll",n.update,fl)})),s&&l.addEventListener("resize",n.update,fl),function(){r&&u.forEach((function(e){e.removeEventListener("scroll",n.update,fl)})),s&&l.removeEventListener("resize",n.update,fl)}}var gl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pl,data:{}};function vl(e){var t=e.state,n=e.name;t.modifiersData[n]=ul({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ml={name:"popperOffsets",enabled:!0,phase:"read",fn:vl,data:{}},yl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xl(e){var t=e.x,n=e.y,i=window,o=i.devicePixelRatio||1;return{x:al(al(t*o)/o)||0,y:al(al(n*o)/o)||0}}function _l(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.offsets,a=e.position,s=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,c=!0===u?xl(r):"function"===typeof u?u(r):r,d=c.x,h=void 0===d?0:d,f=c.y,p=void 0===f?0:f,g=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),m=zs,y=Vs,x=window;if(l){var _=Ls(n),b="clientHeight",w="clientWidth";_===gs(n)&&(_=Ss(n),"static"!==Is(_).position&&(b="scrollHeight",w="scrollWidth")),o===Vs&&(y=Rs,p-=_[b]-i.height,p*=s?1:-1),o===zs&&(m=Bs,h-=_[w]-i.width,h*=s?1:-1)}var S,M=Object.assign({position:a},l&&yl);return s?Object.assign({},M,(S={},S[y]=v?"0":"",S[m]=g?"0":"",S.transform=(x.devicePixelRatio||1)<2?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",S)):Object.assign({},M,(t={},t[y]=v?p+"px":"",t[m]=g?h+"px":"",t.transform="",t))}function bl(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,l=void 0===s||s,u={placement:ol(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_l(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_l(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var wl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bl,data:{}};function Sl(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];ys(o)&&ws(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))}function Ml(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),a=r.reduce((function(e,t){return e[t]="",e}),{});ys(i)&&ws(i)&&(Object.assign(i.style,a),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}}var Il={name:"applyStyles",enabled:!0,phase:"write",fn:Sl,effect:Ml,requires:["computeStyles"]},Al=[gl,ml,wl,Il],kl=hl({defaultModifiers:Al});function Pl(e,t,n){var i=ol(e),o=[zs,Vs].indexOf(i)>=0?-1:1,r="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*o,[zs,Bs].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}function Cl(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,a=Hs.reduce((function(e,n){return e[n]=Pl(n,t.rects,r),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=a}var El={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Cl};const[Tl,Nl]=(0,s["do"])("popover"),Dl=["show","overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Ol={show:Boolean,theme:(0,u.SQ)("light"),overlay:Boolean,actions:(0,u.Ce)(),trigger:(0,u.SQ)("click"),duration:u.Or,showArrow:u.J5,placement:(0,u.SQ)("bottom"),iconPrefix:String,overlayClass:u.Vg,overlayStyle:Object,closeOnClickAction:u.J5,closeOnClickOverlay:u.J5,closeOnClickOutside:u.J5,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Ll=(0,a.aZ)({name:Tl,props:Ol,emits:["select","touchstart","update:show"],setup(e,{emit:t,slots:n,attrs:i}){let o;const r=(0,T.iH)(),s=(0,T.iH)(),u=()=>r.value&&s.value?kl(r.value,s.value.popupRef.value,{placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},(0,l.l7)({},El,{options:{offset:e.offset}})]}):null,c=()=>{(0,a.Y3)((()=>{e.show&&(o?o.setOptions({placement:e.placement}):o=u())}))},h=e=>t("update:show",e),p=()=>{"click"===e.trigger&&h(!e.show)},g=e=>{e.stopPropagation(),t("touchstart",e)},v=(n,i)=>{n.disabled||(t("select",n,i),e.closeOnClickAction&&h(!1))},m=()=>{!e.closeOnClickOutside||e.overlay&&!e.closeOnClickOverlay||h(!1)},y=(t,i)=>n.action?n.action({action:t,index:i}):[t.icon&&(0,a.Wm)(f.J,{name:t.icon,classPrefix:e.iconPrefix,class:Nl("action-icon")},null),(0,a.Wm)("div",{class:[Nl("action-text"),_.xe]},[t.text])],x=(e,t)=>{const{icon:n,color:i,disabled:o,className:r}=e;return(0,a.Wm)("div",{role:"menuitem",class:[Nl("action",{disabled:o,"with-icon":n}),r],style:{color:i},tabindex:o?void 0:0,"aria-disabled":o||void 0,onClick:()=>v(e,t)},[y(e,t)])};return(0,a.bv)(c),(0,a.Jd)((()=>{o&&(o.destroy(),o=null)})),(0,a.YP)((()=>[e.show,e.placement]),c),(0,d.Vd)(r,m,{eventName:"touchstart"}),()=>{var t;return(0,a.Wm)(a.HY,null,[(0,a.Wm)("span",{ref:r,class:Nl("wrapper"),onClick:p},[null==(t=n.reference)?void 0:t.call(n)]),(0,a.Wm)(b.G,(0,a.dG)({ref:s,class:Nl([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,onTouchstart:g,"onUpdate:show":h},i,(0,l.ei)(e,Dl)),{default:()=>[e.showArrow&&(0,a.Wm)("div",{class:Nl("arrow")},null),(0,a.Wm)("div",{role:"menu",class:Nl("content")},[n.default?n.default():e.actions.map(x)])]})])}}});const Vl=(0,r.n)(Ll);const[Rl,Bl]=(0,s["do"])("progress"),zl={color:String,inactive:Boolean,pivotText:String,textColor:String,showPivot:u.J5,pivotColor:String,trackColor:String,strokeWidth:u.Or,percentage:{type:u.Or,default:0,validator:e=>e>=0&&e<=100}};var Wl=(0,a.aZ)({name:Rl,props:zl,setup(e){const t=(0,a.Fl)((()=>e.inactive?void 0:e.color)),n=()=>{const{textColor:n,pivotText:i,pivotColor:o,percentage:r}=e,s=null!=i?i:`${r}%`;if(e.showPivot&&s){const i={color:n,left:+r+"%",transform:`translate(-${+r}%,-50%)`,background:o||t.value};return(0,a.Wm)("span",{style:i,class:Bl("pivot",{inactive:e.inactive})},[s])}};return()=>{const{trackColor:i,percentage:o,strokeWidth:r}=e,s={background:i,height:(0,L.Nn)(r)},l={width:`${o}%`,background:t.value};return(0,a.Wm)("div",{class:Bl(),style:s},[(0,a.Wm)("span",{class:Bl("portion",{inactive:e.inactive}),style:l},null),n()])}}});const Fl=(0,r.n)(Wl);const[Ul,$l,Hl]=(0,s["do"])("pull-refresh"),jl=50,Gl=["pulling","loosing","success"],Yl={disabled:Boolean,modelValue:Boolean,headHeight:(0,u.SI)(jl),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:u.Or,successDuration:(0,u.SI)(500),animationDuration:(0,u.SI)(300)};var Zl=(0,a.aZ)({name:Ul,props:Yl,emits:["refresh","update:modelValue"],setup(e,{emit:t,slots:n}){let i;const o=(0,T.iH)(),r=(0,d.eo)(o),s=(0,T.qj)({status:"normal",distance:0,duration:0}),l=(0,R.o)(),u=()=>{if(e.headHeight!==jl)return{height:`${e.headHeight}px`}},c=()=>"loading"!==s.status&&"success"!==s.status&&!e.disabled,h=t=>{const n=+(e.pullDistance||e.headHeight);return t>n&&(t=t<2*n?n+(t-n)/2:1.5*n+(t-2*n)/4),Math.round(t)},f=(t,n)=>{const i=+(e.pullDistance||e.headHeight);s.distance=t,s.status=n?"loading":0===t?"normal":t<i?"pulling":"loosing"},p=()=>{const{status:t}=s;return"normal"===t?"":e[`${t}Text`]||Hl(t)},g=()=>{const{status:e,distance:t}=s;if(n[e])return n[e]({distance:t});const i=[];return Gl.includes(e)&&i.push((0,a.Wm)("div",{class:$l("text")},[p()])),"loading"===e&&i.push((0,a.Wm)(w.g,{class:$l("loading")},{default:p})),i},v=()=>{s.status="success",setTimeout((()=>{f(0)}),+e.successDuration)},m=e=>{i=0===(0,V.cx)(r.value),i&&(s.duration=0,l.start(e))},y=e=>{c()&&m(e)},x=e=>{if(c()){i||m(e);const{deltaY:t}=l;l.move(e),i&&t.value>=0&&l.isVertical()&&((0,V.PF)(e),f(h(t.value)))}},_=()=>{i&&l.deltaY.value&&c()&&(s.duration=+e.animationDuration,"loosing"===s.status?(f(+e.headHeight,!0),t("update:modelValue",!0),(0,a.Y3)((()=>t("refresh")))):f(0))};return(0,a.YP)((()=>e.modelValue),(t=>{s.duration=+e.animationDuration,t?f(+e.headHeight,!0):n.success||e.successText?v():f(0,!1)})),()=>{var e;const t={transitionDuration:`${s.duration}ms`,transform:s.distance?`translate3d(0,${s.distance}px, 0)`:""};return(0,a.Wm)("div",{ref:o,class:$l()},[(0,a.Wm)("div",{class:$l("track"),style:t,onTouchstart:y,onTouchmove:x,onTouchend:_,onTouchcancel:_},[(0,a.Wm)("div",{class:$l("head"),style:u()},[g()]),null==(e=n.default)?void 0:e.call(n)])])}}});const ql=(0,r.n)(Zl);const[Xl,Jl]=(0,s["do"])("rate");function Kl(e,t,n,i){if(e>=t)return{status:"full",value:1};if(e+.5>=t&&n&&!i)return{status:"half",value:.5};if(e+1>=t&&n&&i){const n=10**10;return{status:"half",value:Math.round((e-t+1)*n)/n}}return{status:"void",value:0}}const Ql={size:u.Or,icon:(0,u.SQ)("star"),color:String,count:(0,u.SI)(5),gutter:u.Or,readonly:Boolean,disabled:Boolean,voidIcon:(0,u.SQ)("star-o"),allowHalf:Boolean,voidColor:String,touchable:u.J5,iconPrefix:String,modelValue:(0,u.qM)(0),disabledColor:String};var eu=(0,a.aZ)({name:Xl,props:Ql,emits:["change","update:modelValue"],setup(e,{emit:t}){const n=(0,R.o)(),[i,o]=Ut(),r=()=>e.readonly||e.disabled||!e.touchable,s=(0,a.Fl)((()=>Array(+e.count).fill("").map(((t,n)=>Kl(e.modelValue,n+1,e.allowHalf,e.readonly)))));let l;const u=()=>{const t=i.value.map(d.EL);l=[],t.forEach(((t,n)=>{e.allowHalf?l.push({score:n+.5,left:t.left},{score:n+1,left:t.left+t.width/2}):l.push({score:n+1,left:t.left})}))},c=t=>{for(let e=l.length-1;e>0;e--)if(t>l[e].left)return l[e].score;return e.allowHalf?.5:1},h=n=>{e.disabled||e.readonly||n===e.modelValue||(t("update:modelValue",n),t("change",n))},p=e=>{r()||(n.start(e),u())},g=e=>{if(!r()&&(n.move(e),n.isHorizontal())){const{clientX:t}=e.touches[0];(0,V.PF)(e),h(c(t))}},v=(t,n)=>{const{icon:i,size:r,color:s,count:l,gutter:d,voidIcon:p,disabled:g,voidColor:v,allowHalf:m,iconPrefix:y,disabledColor:x}=e,_=n+1,b="full"===t.status,w="void"===t.status,S=m&&t.value>0&&t.value<1;let M;d&&_!==+l&&(M={paddingRight:(0,L.Nn)(d)});const I=e=>{u(),h(m?c(e.clientX):_)};return(0,a.Wm)("div",{key:n,ref:o(n),role:"radio",style:M,class:Jl("item"),tabindex:g?void 0:0,"aria-setsize":l,"aria-posinset":_,"aria-checked":!w,onClick:I},[(0,a.Wm)(f.J,{size:r,name:b?i:p,class:Jl("icon",{disabled:g,full:b}),color:g?x:b?s:v,classPrefix:y},null),S&&(0,a.Wm)(f.J,{size:r,style:{width:t.value+"em"},name:w?p:i,class:Jl("icon",["half",{disabled:g,full:!w}]),color:g?x:w?v:s,classPrefix:y},null)])};return(0,d.aM)((()=>e.modelValue)),()=>(0,a.Wm)("div",{role:"radiogroup",class:Jl({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstart:p,onTouchmove:g},[s.value.map(v)])}});const tu=(0,r.n)(eu);const nu=(0,r.n)(Vi);const[iu,ou,ru]=(0,s["do"])("search"),au=(0,l.l7)({},Oe,{label:String,shape:(0,u.SQ)("square"),leftIcon:(0,u.SQ)("search"),clearable:u.J5,actionText:String,background:String,showAction:Boolean});var su=(0,a.aZ)({name:iu,props:au,emits:["blur","focus","clear","search","cancel","click-input","click-left-icon","click-right-icon","update:modelValue"],setup(e,{emit:t,slots:n,attrs:i}){const o=Te(),r=(0,T.iH)(),s=()=>{n.action||(t("update:modelValue",""),t("cancel"))},u=n=>{const i=13;n.keyCode===i&&((0,V.PF)(n),t("search",e.modelValue))},c=()=>e.id||`${o}-input`,d=()=>{if(n.label||e.label)return(0,a.Wm)("label",{class:ou("label"),for:c()},[n.label?n.label():e.label])},h=()=>{if(e.showAction){const t=e.actionText||ru("cancel");return(0,a.Wm)("div",{class:ou("action"),role:"button",tabindex:0,onClick:s},[n.action?n.action():t])}},f=()=>{var e;return null==(e=r.value)?void 0:e.blur()},p=()=>{var e;return null==(e=r.value)?void 0:e.focus()},g=e=>t("blur",e),v=e=>t("focus",e),m=e=>t("clear",e),y=e=>t("click-input",e),x=e=>t("click-left-icon",e),_=e=>t("click-right-icon",e),b=Object.keys(Oe),w=()=>{const o=(0,l.l7)({},i,(0,l.ei)(e,b),{id:c()}),s=e=>t("update:modelValue",e);return(0,a.Wm)(Re,(0,a.dG)({ref:r,type:"search",class:ou("field"),border:!1,onBlur:g,onFocus:v,onClear:m,onKeypress:u,"onClick-input":y,"onClick-left-icon":x,"onClick-right-icon":_,"onUpdate:modelValue":s},o),(0,l.ei)(n,["left-icon","right-icon"]))};return(0,D.F)({focus:p,blur:f}),()=>{var t;return(0,a.Wm)("div",{class:ou({"show-action":e.showAction}),style:{background:e.background}},[null==(t=n.left)?void 0:t.call(n),(0,a.Wm)("div",{class:ou("content",e.shape)},[d(),w()]),h()])}}});const lu=(0,r.n)(su);const uu=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],cu=[...S.m,"round","closeOnPopstate","safeAreaInsetBottom"];function du(e){return uu.includes(e)?`https://img.yzcdn.cn/vant/share-sheet-${e}.png`:e}const[hu,fu,pu]=(0,s["do"])("share-sheet"),gu=(0,l.l7)({},S.W,{title:String,round:u.J5,options:(0,u.Ce)(),cancelText:String,description:String,closeOnPopstate:u.J5,safeAreaInsetBottom:u.J5});var vu=(0,a.aZ)({name:hu,props:gu,emits:["cancel","select","update:show"],setup(e,{emit:t,slots:n}){const i=e=>t("update:show",e),o=()=>{i(!1),t("cancel")},r=(e,n)=>t("select",e,n),s=()=>{const t=n.title?n.title():e.title,i=n.description?n.description():e.description;if(t||i)return(0,a.Wm)("div",{class:fu("header")},[t&&(0,a.Wm)("h2",{class:fu("title")},[t]),i&&(0,a.Wm)("span",{class:fu("description")},[i])])},u=(e,t)=>{const{name:n,icon:i,className:o,description:s}=e;return(0,a.Wm)("div",{role:"button",tabindex:0,class:[fu("option"),o,_.e9],onClick:()=>r(e,t)},[(0,a.Wm)("img",{src:du(i),class:fu("icon")},null),n&&(0,a.Wm)("span",{class:fu("name")},[n]),s&&(0,a.Wm)("span",{class:fu("option-description")},[s])])},c=(e,t)=>(0,a.Wm)("div",{class:fu("options",{border:t})},[e.map(u)]),d=()=>{const{options:t}=e;return Array.isArray(t[0])?t.map(((e,t)=>c(e,0!==t))):c(t)},h=()=>{var t;const i=null!=(t=e.cancelText)?t:pu("cancel");if(n.cancel||i)return(0,a.Wm)("button",{type:"button",class:fu("cancel"),onClick:o},[n.cancel?n.cancel():i])};return()=>(0,a.Wm)(b.G,(0,a.dG)({class:fu(),position:"bottom","onUpdate:show":i},(0,l.ei)(e,cu)),{default:()=>[s(),d(),h()]})}});const mu=(0,r.n)(vu);const[yu,xu]=(0,s["do"])("sidebar"),_u=Symbol(yu),bu={modelValue:(0,u.SI)(0)};var wu=(0,a.aZ)({name:yu,props:bu,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:i}=(0,d.$E)(_u),o=()=>+e.modelValue,r=e=>{e!==o()&&(t("update:modelValue",e),t("change",e))};return i({getActive:o,setActive:r}),()=>{var e;return(0,a.Wm)("div",{role:"tablist",class:xu()},[null==(e=n.default)?void 0:e.call(n)])}}});const Su=(0,r.n)(wu);const[Mu,Iu]=(0,s["do"])("sidebar-item"),Au=(0,l.l7)({},h.g2,{dot:Boolean,title:String,badge:u.Or,disabled:Boolean,badgeProps:Object});var ku=(0,a.aZ)({name:Mu,props:Au,emits:["click"],setup(e,{emit:t,slots:n}){const i=(0,h.yj)(),{parent:o,index:r}=(0,d.NB)(_u);if(!o)return void 0;const s=()=>{e.disabled||(t("click",r.value),o.setActive(r.value),i())};return()=>{const{dot:t,badge:i,title:l,disabled:u}=e,c=r.value===o.getActive();return(0,a.Wm)("div",{role:"tab",class:Iu({select:c,disabled:u}),tabindex:u?void 0:0,"aria-selected":c,onClick:s},[(0,a.Wm)(p.C,(0,a.dG)({dot:t,class:Iu("text"),content:i},e.badgeProps),{default:()=>[n.title?n.title():l]})])}}});const Pu=(0,r.n)(ku);const[Cu,Eu]=(0,s["do"])("skeleton"),Tu="100%",Nu="60%",Du={row:(0,u.SI)(0),title:Boolean,round:Boolean,avatar:Boolean,loading:u.J5,animate:u.J5,avatarSize:u.Or,titleWidth:u.Or,avatarShape:(0,u.SQ)("round"),rowWidth:{type:[Number,String,Array],default:Tu}};var Ou=(0,a.aZ)({name:Cu,props:Du,setup(e,{slots:t}){const n=()=>{if(e.avatar)return(0,a.Wm)("div",{class:Eu("avatar",e.avatarShape),style:(0,L.Xn)(e.avatarSize)},null)},i=()=>{if(e.title)return(0,a.Wm)("h3",{class:Eu("title"),style:{width:(0,L.Nn)(e.titleWidth)}},null)},o=t=>{const{rowWidth:n}=e;return n===Tu&&t===+e.row-1?Nu:Array.isArray(n)?n[t]:n},r=()=>Array(+e.row).fill("").map(((e,t)=>(0,a.Wm)("div",{class:Eu("row"),style:{width:(0,L.Nn)(o(t))}},null)));return()=>{var o;return e.loading?(0,a.Wm)("div",{class:Eu({animate:e.animate,round:e.round})},[n(),(0,a.Wm)("div",{class:Eu("content")},[i(),r()])]):null==(o=t.default)?void 0:o.call(t)}}});const Lu=(0,r.n)(Ou);const[Vu,Ru]=(0,s["do"])("slider"),Bu={min:(0,u.SI)(0),max:(0,u.SI)(100),step:(0,u.SI)(1),range:Boolean,reverse:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:u.Or,buttonSize:u.Or,activeColor:String,inactiveColor:String,modelValue:{type:[Number,Array],default:0}};var zu=(0,a.aZ)({name:Vu,props:Bu,emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:t,slots:n}){let i,o,r;const s=(0,T.iH)(),l=(0,T.iH)(),u=(0,R.o)(),c=(0,a.Fl)((()=>Number(e.max)-Number(e.min))),h=(0,a.Fl)((()=>{const t=e.vertical?"width":"height";return{background:e.inactiveColor,[t]:(0,L.Nn)(e.barHeight)}})),f=t=>e.range&&Array.isArray(t),p=()=>{const{modelValue:t,min:n}=e;return f(t)?100*(t[1]-t[0])/c.value+"%":100*(t-Number(n))/c.value+"%"},g=()=>{const{modelValue:t,min:n}=e;return f(t)?100*(t[0]-Number(n))/c.value+"%":"0%"},v=(0,a.Fl)((()=>{const t=e.vertical?"height":"width",n={[t]:p(),background:e.activeColor};l.value&&(n.transition="none");const i=()=>e.vertical?e.reverse?"bottom":"top":e.reverse?"right":"left";return n[i()]=g(),n})),m=t=>{const n=+e.min,i=+e.max,o=+e.step;t=(0,L.uZ)(t,n,i);const r=Math.round((t-n)/o)*o;return(0,L.Ft)(n,r)},y=(e,t)=>JSON.stringify(e)===JSON.stringify(t),x=t=>{var n,i;const o=null!=(n=t[0])?n:Number(e.min),r=null!=(i=t[1])?i:Number(e.max);return o>r?[r,o]:[o,r]},_=(n,i)=>{n=f(n)?x(n).map(m):m(n),y(n,e.modelValue)||t("update:modelValue",n),i&&!y(n,r)&&t("change",n)},b=t=>{if(t.stopPropagation(),e.disabled||e.readonly)return;const{min:n,reverse:i,vertical:o,modelValue:r}=e,a=(0,d.EL)(s),l=()=>o?i?a.bottom-t.clientY:t.clientY-a.top:i?a.right-t.clientX:t.clientX-a.left,u=o?a.height:a.width,h=Number(n)+l()/u*c.value;if(f(r)){const[e,t]=r,n=(e+t)/2;_(h<=n?[h,t]:[e,h],!0)}else _(h,!0)},w=t=>{e.disabled||e.readonly||(u.start(t),o=e.modelValue,r=f(o)?o.map(m):m(o),l.value="start")},S=n=>{if(e.disabled||e.readonly)return;"start"===l.value&&t("drag-start",n),(0,V.PF)(n,!0),u.move(n),l.value="dragging";const a=(0,d.EL)(s),h=e.vertical?u.deltaY.value:u.deltaX.value,p=e.vertical?a.height:a.width;let g=h/p*c.value;if(e.reverse&&(g=-g),f(r)){const t=e.reverse?1-i:i;o[t]=r[t]+g}else o=r+g;_(o)},M=n=>{e.disabled||e.readonly||("dragging"===l.value&&(_(o,!0),t("drag-end",n)),l.value="")},I=t=>{if("number"===typeof t){const e=["left","right"];return Ru("button-wrapper",e[t])}return Ru("button-wrapper",e.reverse?"left":"right")},A=(t,i)=>{if("number"===typeof i){const e=n[0===i?"left-button":"right-button"];if(e)return e({value:t})}return n.button?n.button({value:t}):(0,a.Wm)("div",{class:Ru("button"),style:(0,L.Xn)(e.buttonSize)},null)},k=t=>{const n="number"===typeof t?e.modelValue[t]:e.modelValue;return(0,a.Wm)("div",{role:"slider",class:I(t),tabindex:e.disabled?void 0:0,"aria-valuemin":e.min,"aria-valuenow":n,"aria-valuemax":e.max,"aria-disabled":e.disabled||void 0,"aria-readonly":e.readonly||void 0,"aria-orientation":e.vertical?"vertical":"horizontal",onTouchstart:e=>{"number"===typeof t&&(i=t),w(e)},onTouchmove:S,onTouchend:M,onTouchcancel:M,onClick:V.UW},[A(n,t)])};return _(e.modelValue),(0,d.aM)((()=>e.modelValue)),()=>(0,a.Wm)("div",{ref:s,style:h.value,class:Ru({vertical:e.vertical,disabled:e.disabled}),onClick:b},[(0,a.Wm)("div",{class:Ru("bar"),style:v.value},[e.range?[k(0),k(1)]:k()])])}});const Wu=(0,r.n)(zu);const[Fu,Uu]=(0,s["do"])("steps"),$u={active:(0,u.SI)(0),direction:(0,u.SQ)("horizontal"),activeIcon:(0,u.SQ)("checked"),iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String},Hu=Symbol(Fu);var ju=(0,a.aZ)({name:Fu,props:$u,emits:["click-step"],setup(e,{emit:t,slots:n}){const{linkChildren:i}=(0,d.$E)(Hu),o=e=>t("click-step",e);return i({props:e,onClickStep:o}),()=>{var t;return(0,a.Wm)("div",{class:Uu([e.direction])},[(0,a.Wm)("div",{class:Uu("items")},[null==(t=n.default)?void 0:t.call(n)])])}}});const[Gu,Yu]=(0,s["do"])("step");var Zu=(0,a.aZ)({name:Gu,setup(e,{slots:t}){const{parent:n,index:i}=(0,d.NB)(Hu);if(!n)return void 0;const o=n.props,r=()=>{const e=+o.active;return i.value<e?"finish":i.value===e?"process":"waiting"},s=()=>"process"===r(),l=(0,a.Fl)((()=>({background:"finish"===r()?o.activeColor:o.inactiveColor}))),u=(0,a.Fl)((()=>s()?{color:o.activeColor}:"waiting"===r()?{color:o.inactiveColor}:void 0)),c=()=>n.onClickStep(i.value),h=()=>{const{iconPrefix:e,finishIcon:n,activeIcon:i,activeColor:u,inactiveIcon:c}=o;return s()?t["active-icon"]?t["active-icon"]():(0,a.Wm)(f.J,{class:Yu("icon","active"),name:i,color:u,classPrefix:e},null):"finish"===r()&&(n||t["finish-icon"])?t["finish-icon"]?t["finish-icon"]():(0,a.Wm)(f.J,{class:Yu("icon","finish"),name:n,color:u,classPrefix:e},null):t["inactive-icon"]?t["inactive-icon"]():c?(0,a.Wm)(f.J,{class:Yu("icon"),name:c,classPrefix:e},null):(0,a.Wm)("i",{class:Yu("circle"),style:l.value},null)};return()=>{var e;const n=r();return(0,a.Wm)("div",{class:[_.T5,Yu([o.direction,{[n]:n}])]},[(0,a.Wm)("div",{class:Yu("title",{active:s()}),style:u.value,onClick:c},[null==(e=t.default)?void 0:e.call(t)]),(0,a.Wm)("div",{class:Yu("circle-container"),onClick:c},[h()]),(0,a.Wm)("div",{class:Yu("line"),style:l.value},null)])}}});const qu=(0,r.n)(Zu);const[Xu,Ju]=(0,s["do"])("stepper"),Ku=200,Qu=600,ec=(e,t)=>String(e)===String(t),tc={min:(0,u.SI)(1),max:(0,u.SI)(1/0),name:(0,u.SI)(""),step:(0,u.SI)(1),theme:String,integer:Boolean,disabled:Boolean,showPlus:u.J5,showMinus:u.J5,showInput:u.J5,longPress:u.J5,allowEmpty:Boolean,modelValue:u.Or,inputWidth:u.Or,buttonSize:u.Or,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,beforeChange:Function,defaultValue:(0,u.SI)(1),decimalLength:u.Or};var nc=(0,a.aZ)({name:Xu,props:tc,emits:["plus","blur","minus","focus","change","overlimit","update:modelValue"],setup(e,{emit:t}){const n=t=>{const{min:n,max:i,allowEmpty:o,decimalLength:r}=e;return o&&""===t||(t=(0,L.uf)(String(t),!e.integer),t=""===t?0:+t,t=Number.isNaN(t)?+n:t,t=Math.max(Math.min(+i,t),+n),(0,N.Xq)(r)&&(t=t.toFixed(+r))),t},i=()=>{var i;const o=null!=(i=e.modelValue)?i:e.defaultValue,r=n(o);return ec(r,e.modelValue)||t("update:modelValue",r),r};let o;const r=(0,T.iH)(),s=(0,T.iH)(i()),l=(0,a.Fl)((()=>e.disabled||e.disableMinus||s.value<=+e.min)),u=(0,a.Fl)((()=>e.disabled||e.disablePlus||s.value>=+e.max)),c=(0,a.Fl)((()=>({width:(0,L.Nn)(e.inputWidth),height:(0,L.Nn)(e.buttonSize)}))),h=(0,a.Fl)((()=>(0,L.Xn)(e.buttonSize))),f=()=>{const e=n(s.value);ec(e,s.value)||(s.value=e)},p=t=>{e.beforeChange?(0,mn.I)(e.beforeChange,{args:[t],done(){s.value=t}}):s.value=t},g=()=>{if("plus"===o&&u.value||"minus"===o&&l.value)return void t("overlimit",o);const i="minus"===o?-e.step:+e.step,r=n((0,L.Ft)(+s.value,i));p(r),t(o)},v=t=>{const n=t.target,{value:i}=n,{decimalLength:o}=e;let r=(0,L.uf)(String(i),!e.integer);if((0,N.Xq)(o)&&r.includes(".")){const e=r.split(".");r=`${e[0]}.${e[1].slice(0,+o)}`}e.beforeChange?n.value=String(s.value):ec(i,r)||(n.value=r);const a=r===String(+r);p(a?+r:r)},m=n=>{var i;e.disableInput?null==(i=r.value)||i.blur():t("focus",n)},y=e=>{const i=e.target,o=n(i.value);i.value=String(o),s.value=o,(0,a.Y3)((()=>{t("blur",e),(0,V.pe)()}))};let x,b;const w=()=>{b=setTimeout((()=>{g(),w()}),Ku)},S=()=>{e.longPress&&(x=!1,clearTimeout(b),b=setTimeout((()=>{x=!0,g(),w()}),Qu))},M=t=>{e.longPress&&(clearTimeout(b),x&&(0,V.PF)(t))},I=t=>{e.disableInput&&(0,V.PF)(t)},A=e=>({onClick:t=>{(0,V.PF)(t),o=e,g()},onTouchstart:()=>{o=e,S()},onTouchend:M,onTouchcancel:M});return(0,a.YP)((()=>[e.max,e.min,e.integer,e.decimalLength]),f),(0,a.YP)((()=>e.modelValue),(e=>{ec(e,s.value)||(s.value=n(e))})),(0,a.YP)(s,(n=>{t("update:modelValue",n),t("change",n,{name:e.name})})),(0,d.aM)((()=>e.modelValue)),()=>(0,a.Wm)("div",{role:"group",class:Ju([e.theme])},[(0,a.wy)((0,a.Wm)("button",(0,a.dG)({type:"button",style:h.value,class:[Ju("minus",{disabled:l.value}),{[_.e9]:!l.value}],"aria-disabled":l.value||void 0},A("minus")),null),[[E.F8,e.showMinus]]),(0,a.wy)((0,a.Wm)("input",{ref:r,type:e.integer?"tel":"text",role:"spinbutton",class:Ju("input"),value:s.value,style:c.value,disabled:e.disabled,readonly:e.disableInput,inputmode:e.integer?"numeric":"decimal",placeholder:e.placeholder,"aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":s.value,onBlur:y,onInput:v,onFocus:m,onMousedown:I},null),[[E.F8,e.showInput]]),(0,a.wy)((0,a.Wm)("button",(0,a.dG)({type:"button",style:h.value,class:[Ju("plus",{disabled:u.value}),{[_.e9]:!u.value}],"aria-disabled":u.value||void 0},A("plus")),null),[[E.F8,e.showPlus]])])}});const ic=(0,r.n)(nc);const oc=(0,r.n)(ju);const[rc,ac,sc]=(0,s["do"])("submit-bar"),lc={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,currency:(0,u.SQ)("¥"),disabled:Boolean,textAlign:String,buttonText:String,buttonType:(0,u.SQ)("danger"),buttonColor:String,suffixLabel:String,decimalLength:(0,u.SI)(2),safeAreaInsetBottom:u.J5};var uc=(0,a.aZ)({name:rc,props:lc,emits:["submit"],setup(e,{emit:t,slots:n}){const i=()=>{const{price:t,label:n,currency:i,textAlign:o,suffixLabel:r,decimalLength:s}=e;if("number"===typeof t){const e=(t/100).toFixed(+s).split("."),l=s?`.${e[1]}`:"";return(0,a.Wm)("div",{class:ac("text"),style:{textAlign:o}},[(0,a.Wm)("span",null,[n||sc("label")]),(0,a.Wm)("span",{class:ac("price")},[i,(0,a.Wm)("span",{class:ac("price-integer")},[e[0]]),l]),r&&(0,a.Wm)("span",{class:ac("suffix-label")},[r])])}},o=()=>{var t;const{tip:i,tipIcon:o}=e;if(n.tip||i)return(0,a.Wm)("div",{class:ac("tip")},[o&&(0,a.Wm)(f.J,{class:ac("tip-icon"),name:o},null),i&&(0,a.Wm)("span",{class:ac("tip-text")},[i]),null==(t=n.tip)?void 0:t.call(n)])},r=()=>t("submit"),s=()=>n.button?n.button():(0,a.Wm)(ze.z,{round:!0,type:e.buttonType,text:e.buttonText,class:ac("button",e.buttonType),color:e.buttonColor,loading:e.loading,disabled:e.disabled,onClick:r},null);return()=>{var t,r;return(0,a.Wm)("div",{class:[ac(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(t=n.top)?void 0:t.call(n),o(),(0,a.Wm)("div",{class:ac("bar")},[null==(r=n.default)?void 0:r.call(n),i(),s()])])}}});const cc=(0,r.n)(uc);const[dc,hc]=(0,s["do"])("swipe-cell"),fc={name:(0,u.SI)(""),disabled:Boolean,leftWidth:u.Or,rightWidth:u.Or,beforeClose:Function,stopPropagation:Boolean};var pc=(0,a.aZ)({name:dc,props:fc,emits:["open","close","click"],setup(e,{emit:t,slots:n}){let i,o,r;const s=(0,T.iH)(),l=(0,T.iH)(),u=(0,T.iH)(),c=(0,T.qj)({offset:0,dragging:!1}),h=(0,R.o)(),f=e=>e.value?(0,d.EL)(e).width:0,p=(0,a.Fl)((()=>(0,N.Xq)(e.leftWidth)?+e.leftWidth:f(l))),g=(0,a.Fl)((()=>(0,N.Xq)(e.rightWidth)?+e.rightWidth:f(u))),v=n=>{c.offset="left"===n?p.value:-g.value,i||(i=!0,t("open",{name:e.name,position:n}))},m=n=>{c.offset=0,i&&(i=!1,t("close",{name:e.name,position:n}))},y=e=>{const t=Math.abs(c.offset),n=.15,o=i?1-n:n,r="left"===e?p.value:g.value;r&&t>r*o?v(e):m(e)},x=t=>{e.disabled||(r=c.offset,h.start(t))},_=t=>{if(e.disabled)return;const{deltaX:n}=h;if(h.move(t),h.isHorizontal()){o=!0,c.dragging=!0;const a=!i||n.value*r<0;a&&(0,V.PF)(t,e.stopPropagation),c.offset=(0,L.uZ)(n.value+r,-g.value,p.value)}},b=()=>{c.dragging&&(c.dragging=!1,y(c.offset>0?"left":"right"),setTimeout((()=>{o=!1}),0))},w=(n="outside")=>{t("click",n),i&&!o&&(0,mn.I)(e.beforeClose,{args:[{name:e.name,position:n}],done:()=>m(n)})},S=(e,t)=>n=>{t&&n.stopPropagation(),w(e)},M=(e,t)=>{const i=n[e];if(i)return(0,a.Wm)("div",{ref:t,class:hc(e),onClick:S(e,!0)},[i()])};return(0,D.F)({open:v,close:m}),(0,d.Vd)(s,(()=>w("outside")),{eventName:"touchstart"}),()=>{var e;const t={transform:`translate3d(${c.offset}px, 0, 0)`,transitionDuration:c.dragging?"0s":".6s"};return(0,a.Wm)("div",{ref:s,class:hc(),onClick:S("cell"),onTouchstart:x,onTouchmove:_,onTouchend:b,onTouchcancel:b},[(0,a.Wm)("div",{class:hc("wrapper"),style:t},[M("left",l),null==(e=n.default)?void 0:e.call(n),M("right",u)])])}}});const gc=(0,r.n)(pc);const[vc,mc]=(0,s["do"])("tabbar"),yc={route:Boolean,fixed:u.J5,border:u.J5,zIndex:u.Or,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:(0,u.SI)(0),safeAreaInsetBottom:{type:Boolean,default:null}},xc=Symbol(vc);var _c=(0,a.aZ)({name:vc,props:yc,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),{linkChildren:o}=(0,d.$E)(xc),r=Ma(i,mc),s=()=>{var t;return null!=(t=e.safeAreaInsetBottom)?t:e.fixed},l=()=>{var t;const{fixed:o,zIndex:r,border:l}=e;return(0,a.Wm)("div",{ref:i,role:"tablist",style:(0,L.As)(r),class:[mc({fixed:o}),{[_.r5]:l,"van-safe-area-bottom":s()}]},[null==(t=n.default)?void 0:t.call(n)])},u=(n,i)=>{(0,mn.I)(e.beforeChange,{args:[n],done(){t("update:modelValue",n),t("change",n),i()}})};return o({props:e,setActive:u}),()=>e.fixed&&e.placeholder?r(l):l()}});const bc=(0,r.n)(_c);const[wc,Sc]=(0,s["do"])("tabbar-item"),Mc=(0,l.l7)({},h.g2,{dot:Boolean,icon:String,name:u.Or,badge:u.Or,badgeProps:Object,iconPrefix:String});var Ic=(0,a.aZ)({name:wc,props:Mc,emits:["click"],setup(e,{emit:t,slots:n}){const i=(0,h.yj)(),o=(0,a.FN)().proxy,{parent:r,index:s}=(0,d.NB)(xc);if(!r)return void 0;const l=(0,a.Fl)((()=>{var t;const{route:n,modelValue:i}=r.props;if(n&&"$route"in o){const{$route:t}=o,{to:n}=e,i=(0,N.Kn)(n)?n:{path:n};return!!t.matched.find((e=>{const t="path"in i&&i.path===e.path,n="name"in i&&i.name===e.name;return t||n}))}return(null!=(t=e.name)?t:s.value)===i})),u=n=>{var o;l.value||r.setActive(null!=(o=e.name)?o:s.value,i),t("click",n)},c=()=>n.icon?n.icon({active:l.value}):e.icon?(0,a.Wm)(f.J,{name:e.icon,classPrefix:e.iconPrefix},null):void 0;return()=>{var t;const{dot:i,badge:o}=e,{activeColor:s,inactiveColor:d}=r.props,h=l.value?s:d;return(0,a.Wm)("div",{role:"tab",class:Sc({active:l.value}),style:{color:h},tabindex:0,"aria-selected":l.value,onClick:u},[(0,a.Wm)(p.C,(0,a.dG)({dot:i,class:Sc("icon"),content:o},e.badgeProps),{default:c}),(0,a.Wm)("div",{class:Sc("text")},[null==(t=n.default)?void 0:t.call(n,{active:l.value})])])}}});const Ac=(0,r.n)(Ic);const[kc,Pc]=(0,s["do"])("tree-select"),Cc={max:(0,u.SI)(1/0),items:(0,u.Ce)(),height:(0,u.SI)(300),selectedIcon:(0,u.SQ)("success"),mainActiveIndex:(0,u.SI)(0),activeId:{type:[Number,String,Array],default:0}};var Ec=(0,a.aZ)({name:kc,props:Cc,emits:["click-nav","click-item","update:activeId","update:mainActiveIndex"],setup(e,{emit:t,slots:n}){const i=t=>Array.isArray(e.activeId)?e.activeId.includes(t):e.activeId===t,o=n=>{const o=()=>{if(n.disabled)return;let i;if(Array.isArray(e.activeId)){i=e.activeId.slice();const t=i.indexOf(n.id);-1!==t?i.splice(t,1):i.length<e.max&&i.push(n.id)}else i=n.id;t("update:activeId",i),t("click-item",n)};return(0,a.Wm)("div",{key:n.id,class:["van-ellipsis",Pc("item",{active:i(n.id),disabled:n.disabled})],onClick:o},[n.text,i(n.id)&&(0,a.Wm)(f.J,{name:e.selectedIcon,class:Pc("selected")},null)])},r=e=>{t("update:mainActiveIndex",e)},s=e=>t("click-nav",e),l=()=>{const t=e.items.map((e=>(0,a.Wm)(Pu,{dot:e.dot,title:e.text,badge:e.badge,class:[Pc("nav-item"),e.className],disabled:e.disabled,onClick:s},null)));return(0,a.Wm)(Su,{class:Pc("nav"),modelValue:e.mainActiveIndex,onChange:r},{default:()=>[t]})},u=()=>{if(n.content)return n.content();const t=e.items[+e.mainActiveIndex]||{};return t.children?t.children.map(o):void 0};return()=>(0,a.Wm)("div",{class:Pc(),style:{height:(0,L.Nn)(e.height)}},[l(),(0,a.Wm)("div",{class:Pc("content")},[u()])])}});const Tc=(0,r.n)(Ec);const[Nc,Dc,Oc]=(0,s["do"])("uploader"),Lc=e=>Array.isArray(e)?e:[e];function Vc(e,t){return new Promise((n=>{if("file"===t)return void n();const i=new FileReader;i.onload=e=>{n(e.target.result)},"dataUrl"===t?i.readAsDataURL(e):"text"===t&&i.readAsText(e)}))}function Rc(e,t){return Lc(e).some((e=>!!e.file&&((0,N.mf)(t)?t(e.file):e.file.size>t)))}function Bc(e,t){const n=[],i=[];return e.forEach((e=>{Rc(e,t)?i.push(e):n.push(e)})),{valid:n,invalid:i}}const zc=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i,Wc=e=>zc.test(e);function Fc(e){return!!e.isImage||(e.file&&e.file.type?0===e.file.type.indexOf("image"):e.url?Wc(e.url):"string"===typeof e.content&&0===e.content.indexOf("data:image"))}var Uc=(0,a.aZ)({props:{name:u.Or,item:(0,u.ir)(Object),index:Number,imageFit:String,lazyLoad:Boolean,deletable:Boolean,previewSize:u.Or,beforeDelete:Function},emits:["delete","preview"],setup(e,{emit:t,slots:n}){const i=()=>{const{status:t,message:n}=e.item;if("uploading"===t||"failed"===t){const e="failed"===t?(0,a.Wm)(f.J,{name:"close",class:Dc("mask-icon")},null):(0,a.Wm)(w.g,{class:Dc("loading")},null),i=(0,N.Xq)(n)&&""!==n;return(0,a.Wm)("div",{class:Dc("mask")},[e,i&&(0,a.Wm)("div",{class:Dc("mask-message")},[n])])}},o=n=>{const{name:i,item:o,index:r,beforeDelete:a}=e;n.stopPropagation(),(0,mn.I)(a,{args:[o,{name:i,index:r}],done:()=>t("delete")})},r=()=>t("preview"),s=()=>{if(e.deletable&&"uploading"!==e.item.status)return(0,a.Wm)("div",{role:"button",class:Dc("preview-delete"),tabindex:0,"aria-label":Oc("delete"),onClick:o},[(0,a.Wm)(f.J,{name:"cross",class:Dc("preview-delete-icon")},null)])},u=()=>{if(n["preview-cover"]){const{index:t,item:i}=e;return(0,a.Wm)("div",{class:Dc("preview-cover")},[n["preview-cover"]((0,l.l7)({index:t},i))])}},c=()=>{const{item:t}=e;return Fc(t)?(0,a.Wm)(dn,{fit:e.imageFit,src:t.content||t.url,class:Dc("preview-image"),width:e.previewSize,height:e.previewSize,lazyLoad:e.lazyLoad,onClick:r},{default:u}):(0,a.Wm)("div",{class:Dc("file"),style:(0,L.Xn)(e.previewSize)},[(0,a.Wm)(f.J,{class:Dc("file-icon"),name:"description"},null),(0,a.Wm)("div",{class:[Dc("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),u()])};return()=>(0,a.Wm)("div",{class:Dc("preview")},[c(),i(),s()])}});const $c={name:(0,u.SI)(""),accept:(0,u.SQ)("image/*"),capture:String,multiple:Boolean,disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,maxCount:(0,u.SI)(1/0),imageFit:(0,u.SQ)("cover"),resultType:(0,u.SQ)("dataUrl"),uploadIcon:(0,u.SQ)("photograph"),uploadText:String,deletable:u.J5,afterRead:Function,showUpload:u.J5,modelValue:(0,u.Ce)(),beforeRead:Function,beforeDelete:Function,previewSize:u.Or,previewImage:u.J5,previewOptions:Object,previewFullImage:u.J5,maxSize:{type:[Number,String,Function],default:1/0}};var Hc=(0,a.aZ)({name:Nc,props:$c,emits:["delete","oversize","click-upload","close-preview","click-preview","update:modelValue"],setup(e,{emit:t,slots:n}){const i=(0,T.iH)(),o=[],r=(t=e.modelValue.length)=>({name:e.name,index:t}),s=()=>{i.value&&(i.value.value="")},u=n=>{if(s(),Rc(n,e.maxSize)){if(!Array.isArray(n))return void t("oversize",n,r());{const i=Bc(n,e.maxSize);if(n=i.valid,t("oversize",i.invalid,r()),!n.length)return}}n=(0,T.qj)(n),t("update:modelValue",[...e.modelValue,...Lc(n)]),e.afterRead&&e.afterRead(n,r())},c=t=>{const{maxCount:n,modelValue:i,resultType:o}=e;if(Array.isArray(t)){const e=+n-i.length;t.length>e&&(t=t.slice(0,e)),Promise.all(t.map((e=>Vc(e,o)))).then((e=>{const n=t.map(((t,n)=>{const i={file:t,status:"",message:""};return e[n]&&(i.content=e[n]),i}));u(n)}))}else Vc(t,o).then((e=>{const n={file:t,status:"",message:""};e&&(n.content=e),u(n)}))},h=t=>{const{files:n}=t.target;if(e.disabled||!n||!n.length)return;const i=1===n.length?n[0]:[].slice.call(n);if(e.beforeRead){const t=e.beforeRead(i,r());if(!t)return void s();if((0,N.tI)(t))return void t.then((e=>{c(e||i)})).catch(s)}c(i)};let p;const g=()=>t("close-preview"),v=t=>{if(e.previewFullImage){const n=e.modelValue.filter(Fc),i=n.map((e=>(e.file&&!e.url&&(e.url=URL.createObjectURL(e.file),o.push(e.url)),e.url))).filter(Boolean);p=oa((0,l.l7)({images:i,startPosition:n.indexOf(t),onClose:g},e.previewOptions))}},m=()=>{p&&p.close()},y=(n,i)=>{const o=e.modelValue.slice(0);o.splice(i,1),t("update:modelValue",o),t("delete",n,r(i))},x=(i,o)=>{const s=["imageFit","deletable","previewSize","beforeDelete"],u=(0,l.l7)((0,l.ei)(e,s),(0,l.ei)(i,s,!0));return(0,a.Wm)(Uc,(0,a.dG)({item:i,index:o,onClick:()=>t("click-preview",i,r(o)),onDelete:()=>y(i,o),onPreview:()=>v(i)},(0,l.ei)(e,["name","lazyLoad"]),u),{"preview-cover":n["preview-cover"]})},_=()=>{if(e.previewImage)return e.modelValue.map(x)},b=e=>t("click-upload",e),w=()=>{if(e.modelValue.length>=e.maxCount||!e.showUpload)return;const t=e.readonly?null:(0,a.Wm)("input",{ref:i,type:"file",class:Dc("input"),accept:e.accept,capture:e.capture,multiple:e.multiple,disabled:e.disabled,onChange:h},null);return n.default?(0,a.Wm)("div",{class:Dc("input-wrapper"),onClick:b},[n.default(),t]):(0,a.Wm)("div",{class:Dc("upload",{readonly:e.readonly}),style:(0,L.Xn)(e.previewSize),onClick:b},[(0,a.Wm)(f.J,{name:e.uploadIcon,class:Dc("upload-icon")},null),e.uploadText&&(0,a.Wm)("span",{class:Dc("upload-text")},[e.uploadText]),t])},S=()=>{i.value&&!e.disabled&&i.value.click()};return(0,a.Jd)((()=>{o.forEach((e=>URL.revokeObjectURL(e)))})),(0,D.F)({chooseFile:S,closeImagePreview:m}),(0,d.aM)((()=>e.modelValue)),()=>(0,a.Wm)("div",{class:Dc()},[(0,a.Wm)("div",{class:Dc("wrapper",{disabled:e.disabled})},[_(),w()])])}});const jc=(0,r.n)(Hc);const Gc="3.4.3";function Yc(e){const t=[i.o,o.Z,x,C,nt,Pt,le,p.C,ze.z,an,vn,si,pe,hi,wi,Si,Ti,Fi,Yi,eo,no,lo,vo,wo,Po,Vo,$o,Xo,lr,ur.V,pr,Mr,Ir,Or,Re,xe,Wr,jr,f.J,dn,oa,ga,va,wa,w.g,Sa.g,Ca,Oa,$a,es,ts.a,ls,fs,Q,Vl,b.G,Fl,ql,xt,lt,tu,nu,lu,mu,Su,Pu,Lu,Wu,qu,ic,oc,An,cc,Ln,gc,qn,He,ei,bc,Ac,ti,ft,Be.F,Tc,jc];t.forEach((t=>{t.install?e.use(t):t.name&&e.component(t.name,t)}))}var Zc={install:Yc,version:Gc}},7615:function(e,t,n){"use strict";n.d(t,{g:function(){return g}});var i=n(27956),o=n(66252),r=n(17662),a=n(94215),s=n(12678),l=n(31481);const[u,c]=(0,r["do"])("loading"),d=Array(12).fill(null).map(((e,t)=>(0,o.Wm)("i",{class:c("line",String(t+1))},null))),h=(0,o.Wm)("svg",{class:c("circular"),viewBox:"25 25 50 50"},[(0,o.Wm)("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),f={size:a.Or,type:(0,a.SQ)("circular"),color:String,vertical:Boolean,textSize:a.Or,textColor:String};var p=(0,o.aZ)({name:u,props:f,setup(e,{slots:t}){const n=(0,o.Fl)((()=>(0,s.l7)({color:e.color},(0,l.Xn)(e.size)))),i=()=>{var n;if(t.default)return(0,o.Wm)("span",{class:c("text"),style:{fontSize:(0,l.Nn)(e.textSize),color:null!=(n=e.textColor)?n:e.color}},[t.default()])};return()=>{const{type:t,vertical:r}=e;return(0,o.Wm)("div",{class:c([t,{vertical:r}])},[(0,o.Wm)("span",{class:c("spinner",t),style:n.value},["spinner"===t?d:h]),i()])}}});const g=(0,i.n)(p)},89530:function(e,t,n){"use strict";n.d(t,{g:function(){return d},Z:function(){return h}});var i=n(2262),o=n(58318);const{hasOwnProperty:r}=Object.prototype;function a(e,t,n){const i=t[n];(0,o.Xq)(i)&&(r.call(e,n)&&(0,o.Kn)(i)?e[n]=s(Object(e[n]),i):e[n]=i)}function s(e,t){return Object.keys(t).forEach((n=>{a(e,t,n)})),e}var l={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码不正确",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const u=(0,i.iH)("zh-CN"),c=(0,i.qj)({"zh-CN":l}),d={messages(){return c[u.value]},use(e,t){u.value=e,this.add({[e]:t})},add(e={}){s(c,e)}};var h=d},22912:function(e,t,n){"use strict";n.d(t,{a:function(){return m}});var i=n(27956),o=n(66252),r=n(49963),a=n(17662),s=n(94215),l=n(10067),u=n(12678),c=n(31481),d=n(58318),h=n(77311);const[f,p]=(0,a["do"])("overlay"),g={show:Boolean,zIndex:s.Or,duration:s.Or,className:s.Vg,lockScroll:s.J5,lazyRender:s.J5,customStyle:Object};var v=(0,o.aZ)({name:f,props:g,setup(e,{slots:t}){const n=(0,h.W)((()=>e.show||!e.lazyRender)),i=e=>{(0,l.PF)(e,!0)},a=n((()=>{var n;const a=(0,u.l7)((0,c.As)(e.zIndex),e.customStyle);return(0,d.Xq)(e.duration)&&(a.animationDuration=`${e.duration}s`),(0,o.wy)((0,o.Wm)("div",{style:a,class:[p(),e.className],onTouchmove:e.lockScroll?i:u.ZT},[null==(n=t.default)?void 0:n.call(t)]),[[r.F8,e.show]])}));return()=>(0,o.Wm)(r.uT,{name:"van-fade",appear:!0},{default:a})}});const m=(0,i.n)(v)},95124:function(e,t,n){"use strict";n.d(t,{G:function(){return E}});var i=n(27956),o=n(66252),r=n(49963),a=n(2262),s=n(30695),l=n(12678),u=n(94215),c=n(17662),d=n(58318),h=n(67851),f=n(91541),p=n(31649),g=n(79348),v=n(81493),m=n(10067);let y=0;const x="van-overflow-hidden";function _(e,t){const n=(0,v.o)(),i=t=>{n.move(t);const i=n.deltaY.value>0?"10":"01",o=(0,p.rP)(t.target,e.value),{scrollHeight:r,offsetHeight:a,scrollTop:s}=o;let l="11";0===s?l=a>=r?"00":"01":s+a>=r&&(l="10"),"11"===l||!n.isVertical()||parseInt(l,2)&parseInt(i,2)||(0,m.PF)(t,!0)},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",i,{passive:!1}),y||document.body.classList.add(x),y++},a=()=>{y&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",i),y--,y||document.body.classList.remove(x))},s=()=>t()&&r(),l=()=>t()&&a();(0,p.Ib)(s),(0,o.se)(l),(0,o.Jd)(l),(0,o.YP)(t,(e=>{e?r():a()}))}var b=n(77311),w=n(45025),S=n(38348),M=n(22912);const I=(0,l.l7)({},s.W,{round:Boolean,position:(0,u.SQ)("center"),closeIcon:(0,u.SQ)("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:(0,u.SQ)("top-right"),safeAreaInsetBottom:Boolean}),[A,k]=(0,c["do"])("popup");let P=2e3;var C=(0,o.aZ)({name:A,inheritAttrs:!1,props:I,emits:["open","close","opened","closed","update:show","click-overlay","click-close-icon"],setup(e,{emit:t,attrs:n,slots:i}){let s,l;const u=(0,a.iH)(),c=(0,a.iH)(),v=(0,b.W)((()=>e.show||!e.lazyRender)),m=(0,o.Fl)((()=>{const t={zIndex:u.value};if((0,d.Xq)(e.duration)){const n="center"===e.position?"animationDuration":"transitionDuration";t[n]=`${e.duration}s`}return t})),y=()=>{s||(void 0!==e.zIndex&&(P=+e.zIndex),s=!0,u.value=++P,t("open"))},x=()=>{s&&(0,h.I)(e.beforeClose,{done(){s=!1,t("close"),t("update:show",!1)}})},I=n=>{t("click-overlay",n),e.closeOnClickOverlay&&x()},A=()=>{if(e.overlay)return(0,o.Wm)(M.a,{show:e.show,class:e.overlayClass,zIndex:u.value,duration:e.duration,customStyle:e.overlayStyle,onClick:I},{default:i["overlay-content"]})},C=e=>{t("click-close-icon",e),x()},E=()=>{if(e.closeable)return(0,o.Wm)(S.J,{role:"button",tabindex:0,name:e.closeIcon,class:[k("close-icon",e.closeIconPosition),f.e9],classPrefix:e.iconPrefix,onClick:C},null)},T=()=>t("opened"),N=()=>t("closed"),D=v((()=>{var t;const{round:a,position:s,safeAreaInsetBottom:l}=e;return(0,o.wy)((0,o.Wm)("div",(0,o.dG)({ref:c,style:m.value,class:[k({round:a,[s]:s}),{"van-safe-area-bottom":l}]},n),[null==(t=i.default)?void 0:t.call(i),E()]),[[r.F8,e.show]])})),O=()=>{const{position:t,transition:n,transitionAppear:i}=e,a="center"===t?"van-fade":`van-popup-slide-${t}`;return(0,o.Wm)(r.uT,{name:n||a,appear:i,onAfterEnter:T,onAfterLeave:N},{default:D})};return(0,o.YP)((()=>e.show),(e=>{e&&!s&&y(),!e&&s&&(s=!1,t("close"))})),(0,g.F)({popupRef:c}),_(c,(()=>e.show&&e.lockScroll)),(0,p.OR)("popstate",(()=>{e.closeOnPopstate&&(x(),l=!1)})),(0,o.bv)((()=>{e.show&&y()})),(0,o.dl)((()=>{l&&(t("update:show",!0),l=!1)})),(0,o.se)((()=>{e.show&&(x(),l=!0)})),(0,o.JJ)(w.S,(()=>e.show)),()=>e.teleport?(0,o.Wm)(o.lR,{to:e.teleport},{default:()=>[A(),O()]}):(0,o.Wm)(o.HY,null,[A(),O()])}});const E=(0,i.n)(C)},30695:function(e,t,n){"use strict";n.d(t,{W:function(){return o},m:function(){return r}});var i=n(94215);const o={show:Boolean,zIndex:i.Or,overlay:i.J5,duration:i.Or,teleport:[String,Object],lockScroll:i.J5,lazyRender:i.J5,beforeClose:Function,overlayStyle:Object,overlayClass:i.Vg,transitionAppear:Boolean,closeOnClickOverlay:i.J5},r=Object.keys(o)},24530:function(e,t,n){"use strict";n.d(t,{F:function(){return C}});var i=n(66252),o=n(2262),r=n(12678),a=n(58318),s=n(27956),l=n(10037),u=n(17662),c=n(94215);let d=0;function h(e){e?(d||document.body.classList.add("van-toast--unclickable"),d++):d&&(d--,d||document.body.classList.remove("van-toast--unclickable"))}var f=n(38348),p=n(95124),g=n(7615);const[v,m]=(0,u["do"])("toast"),y=["show","overlay","transition","overlayClass","overlayStyle","closeOnClickOverlay"],x={icon:String,show:Boolean,type:(0,c.SQ)("text"),overlay:Boolean,message:c.Or,iconSize:c.Or,duration:(0,c.qM)(2e3),position:(0,c.SQ)("middle"),className:c.Vg,iconPrefix:String,transition:(0,c.SQ)("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:c.Vg,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean};var _=(0,i.aZ)({name:v,props:x,emits:["update:show"],setup(e,{emit:t}){let n,o=!1;const s=()=>{const t=e.show&&e.forbidClick;o!==t&&(o=t,h(o))},l=e=>t("update:show",e),u=()=>{e.closeOnClick&&l(!1)},c=()=>clearTimeout(n),d=()=>{const{icon:t,type:n,iconSize:o,iconPrefix:r,loadingType:a}=e,s=t||"success"===n||"fail"===n;return s?(0,i.Wm)(f.J,{name:t||n,size:o,class:m("icon"),classPrefix:r},null):"loading"===n?(0,i.Wm)(g.g,{class:m("loading"),size:o,type:a},null):void 0},v=()=>{const{type:t,message:n}=e;if((0,a.Xq)(n)&&""!==n)return"html"===t?(0,i.Wm)("div",{class:m("text"),innerHTML:String(n)},null):(0,i.Wm)("div",{class:m("text")},[n])};return(0,i.YP)((()=>[e.show,e.forbidClick]),s),(0,i.YP)((()=>[e.show,e.type,e.message,e.duration]),(()=>{c(),e.show&&e.duration>0&&(n=setTimeout((()=>{l(!1)}),e.duration))})),(0,i.bv)(s),(0,i.Ah)(s),()=>(0,i.Wm)(p.G,(0,i.dG)({class:[m([e.position,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:u,onClosed:c,"onUpdate:show":l},(0,r.ei)(e,y)),{default:()=>[d(),v()]})}});const b={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let w=[],S=!1,M=(0,r.l7)({},b);const I=new Map;function A(e){return(0,a.Kn)(e)?e:{message:e}}function k(){const{instance:e,unmount:t}=(0,l.H)({setup(){const n=(0,o.iH)(""),{open:r,state:a,close:s,toggle:u}=(0,l.o)(),c=()=>{S&&(w=w.filter((t=>t!==e)),t())},d=()=>{const e={onClosed:c,"onUpdate:show":u};return(0,i.Wm)(_,(0,i.dG)(a,e),null)};return(0,i.YP)(n,(e=>{a.message=e})),(0,i.FN)().render=d,{open:r,clear:s,message:n}}});return e}function P(){if(!w.length||S){const e=k();w.push(e)}return w[w.length-1]}function C(e={}){if(!r._f)return{};const t=P(),n=A(e);return t.open((0,r.l7)({},M,I.get(n.type||M.type),n)),t}const E=e=>t=>C((0,r.l7)({type:e},A(t)));function T(e,t){"string"===typeof e?I.set(e,t):(0,r.l7)(M,e)}C.loading=E("loading"),C.success=E("success"),C.fail=E("fail"),C.clear=e=>{var t;w.length&&(e?(w.forEach((e=>{e.clear()})),w=[]):S?null==(t=w.shift())||t.clear():w[0].clear())},C.setDefaultOptions=T,C.resetDefaultOptions=e=>{"string"===typeof e?I.delete(e):(M=(0,r.l7)({},b),I.clear())},C.allowMultiple=(e=!0)=>{S=e},C.install=e=>{e.use((0,s.n)(_)),e.config.globalProperties.$toast=C}},12678:function(e,t,n){"use strict";function i(){}n.d(t,{U2:function(){return a},ZT:function(){return i},_f:function(){return r},ei:function(){return s},l7:function(){return o}});const o=Object.assign,r="undefined"!==typeof window;function a(e,t){const n=t.split(".");let i=e;return n.forEach((e=>{var t;i=null!=(t=i[e])?t:""})),i}function s(e,t,n){return t.reduce(((t,i)=>(n&&void 0===e[i]||(t[i]=e[i]),t)),{})}},91541:function(e,t,n){"use strict";n.d(t,{T5:function(){return i},WN:function(){return d},_K:function(){return s},a8:function(){return r},e9:function(){return c},k7:function(){return o},pj:function(){return u},r5:function(){return l},xe:function(){return a}});const i="van-hairline",o=`${i}--top`,r=`${i}--left`,a=`${i}--bottom`,s=`${i}--surround`,l=`${i}--top-bottom`,u=`${i}-unset--top-bottom`,c="van-haptics-feedback",d=Symbol("van-form")},17662:function(e,t,n){"use strict";n.d(t,{do:function(){return c}});var i=n(12678),o=n(31481),r=n(58318),a=n(89530);function s(e){const t=(0,o._A)(e)+".";return(e,...n)=>{const o=a.Z.messages(),s=(0,i.U2)(o,t+e)||(0,i.U2)(o,e);return(0,r.mf)(s)?s(...n):s}}function l(e,t){return t?"string"===typeof t?` ${e}--${t}`:Array.isArray(t)?t.reduce(((t,n)=>t+l(e,n)),""):Object.keys(t).reduce(((n,i)=>n+(t[i]?l(e,i):"")),""):""}function u(e){return(t,n)=>(t&&"string"!==typeof t&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${l(t,n)}`)}function c(e){const t=`van-${e}`;return[t,u(t),s(t)]}},10067:function(e,t,n){"use strict";n.d(t,{PF:function(){return p},QU:function(){return s},U4:function(){return c},UW:function(){return f},bn:function(){return v},cx:function(){return a},kn:function(){return u},oD:function(){return l},pe:function(){return h},uK:function(){return m},xj:function(){return g}});var i=n(31649),o=n(2262),r=n(58318);function a(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function s(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function l(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function u(e){s(window,e),s(document.body,e)}function c(e,t){if(e===window)return 0;const n=t?a(t):l();return(0,i.EL)(e).top+n}const d=(0,r.gn)();function h(){d&&u(l())}const f=e=>e.stopPropagation();function p(e,t){("boolean"!==typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&f(e)}function g(e){const t=(0,o.SU)(e);if(!t)return!1;const n=window.getComputedStyle(t),i="none"===n.display,r=null===t.offsetParent&&"fixed"!==n.position;return i||r}const{width:v,height:m}=(0,i.iP)()},31481:function(e,t,n){"use strict";n.d(t,{As:function(){return l},Bd:function(){return y},Ft:function(){return w},GL:function(){return m},LU:function(){return p},Nn:function(){return a},Xn:function(){return s},_A:function(){return v},uZ:function(){return x},uf:function(){return b}});var i=n(12678),o=n(10067),r=n(58318);function a(e){if((0,r.Xq)(e))return(0,r.kE)(e)?`${e}px`:String(e)}function s(e){if((0,r.Xq)(e)){const t=a(e);return{width:t,height:t}}}function l(e){const t={};return void 0!==e&&(t.zIndex=+e),t}let u;function c(){if(!u){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;u=parseFloat(t)}return u}function d(e){return e=e.replace(/rem/g,""),+e*c()}function h(e){return e=e.replace(/vw/g,""),+e*o.bn.value/100}function f(e){return e=e.replace(/vh/g,""),+e*o.uK.value/100}function p(e){if("number"===typeof e)return e;if(i._f){if(e.includes("rem"))return d(e);if(e.includes("vw"))return h(e);if(e.includes("vh"))return f(e)}return parseFloat(e)}const g=/-(\w)/g,v=e=>e.replace(g,((e,t)=>t.toUpperCase())),m=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function y(e,t=2){let n=e+"";while(n.length<t)n="0"+n;return n}const x=(e,t,n)=>Math.min(Math.max(e,t),n);function _(e,t,n){const i=e.indexOf(t);return-1===i?e:"-"===t&&0!==i?e.slice(0,i):e.slice(0,i+1)+e.slice(i).replace(n,"")}function b(e,t=!0,n=!0){e=t?_(e,".",/\./g):e.split(".")[0],e=n?_(e,"-",/-/g):e.replace(/-/,"");const i=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(i,"")}function w(e,t){const n=10**10;return Math.round((e+t)*n)/n}},67851:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var i=n(12678),o=n(58318);function r(e,{args:t=[],done:n,canceled:r}){if(e){const a=e.apply(null,t);(0,o.tI)(a)?a.then((e=>{e?n():r&&r()})).catch(i.ZT):a?n():r&&r()}else n()}},10037:function(e,t,n){"use strict";n.d(t,{H:function(){return l},o:function(){return s}});var i=n(2262),o=n(49963),r=n(12678),a=n(79348);function s(){const e=(0,i.qj)({show:!1}),t=t=>{e.show=t},n=n=>{(0,r.l7)(e,n,{transitionAppear:!0}),t(!0)},o=()=>t(!1);return(0,a.F)({open:n,close:o,toggle:t}),{open:n,close:o,state:e,toggle:t}}function l(e){const t=(0,o.ri)(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}},94215:function(e,t,n){"use strict";n.d(t,{Ce:function(){return s},J5:function(){return r},Or:function(){return o},SI:function(){return u},SQ:function(){return c},Vg:function(){return i},ir:function(){return a},qM:function(){return l}});const i=null,o=[Number,String],r={type:Boolean,default:!0},a=e=>({type:e,required:!0}),s=()=>({type:Array,default:()=>[]}),l=e=>({type:Number,default:e}),u=e=>({type:o,default:e}),c=e=>({type:String,default:e})},58318:function(e,t,n){"use strict";n.d(t,{J_:function(){return l},Kn:function(){return a},Xq:function(){return o},gn:function(){return d},kE:function(){return c},mf:function(){return r},tI:function(){return s},tq:function(){return u}});var i=n(12678);const o=e=>void 0!==e&&null!==e,r=e=>"function"===typeof e,a=e=>null!==e&&"object"===typeof e,s=e=>a(e)&&r(e.then)&&r(e.catch),l=e=>"[object Date]"===Object.prototype.toString.call(e)&&!Number.isNaN(e.getTime());function u(e){return e=e.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(e)||/^0[0-9-]{10,13}$/.test(e)}const c=e=>"number"===typeof e||/^\d+(\.\d+)?$/.test(e),d=()=>!!i._f&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())},27956:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var i=n(31481);function o(e){return e.install=t=>{const{name:n}=e;t.component(n,e),t.component((0,i._A)(`-${n}`),e)},e}},83744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n}},42119:function(e,t,n){"use strict";n.d(t,{p7:function(){return nt},r5:function(){return G},tv:function(){return rt},yj:function(){return at}});var i=n(66252),o=n(2262);
| /*!
| * vue-router v4.0.15
| * (c) 2022 Eduardo San Martin Morote
| * @license MIT
| */
| const r="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,a=e=>r?Symbol(e):"_vr_"+e,s=a("rvlm"),l=a("rvd"),u=a("r"),c=a("rl"),d=a("rvl"),h="undefined"!==typeof window;function f(e){return e.__esModule||r&&"Module"===e[Symbol.toStringTag]}const p=Object.assign;function g(e,t){const n={};for(const i in t){const o=t[i];n[i]=Array.isArray(o)?o.map(e):e(o)}return n}const v=()=>{};const m=/\/$/,y=e=>e.replace(m,"");function x(e,t,n="/"){let i,o={},r="",a="";const s=t.indexOf("?"),l=t.indexOf("#",s>-1?s:0);return s>-1&&(i=t.slice(0,s),r=t.slice(s+1,l>-1?l:t.length),o=e(r)),l>-1&&(i=i||t.slice(0,l),a=t.slice(l,t.length)),i=k(null!=i?i:t,n),{fullPath:i+(r&&"?")+r+a,path:i,query:o,hash:a}}function _(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function b(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function w(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&S(t.matched[i],n.matched[o])&&M(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function S(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function M(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!I(e[n],t[n]))return!1;return!0}function I(e,t){return Array.isArray(e)?A(e,t):Array.isArray(t)?A(t,e):e===t}function A(e,t){return Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function k(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let o,r,a=n.length-1;for(o=0;o<i.length;o++)if(r=i[o],1!==a&&"."!==r){if(".."!==r)break;a--}return n.slice(0,a).join("/")+"/"+i.slice(o-(o===i.length?1:0)).join("/")}var P,C;(function(e){e["pop"]="pop",e["push"]="push"})(P||(P={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(C||(C={}));function E(e){if(!e)if(h){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),y(e)}const T=/^[^#]+#/;function N(e,t){return e.replace(T,"#")+t}function D(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const O=()=>({left:window.pageXOffset,top:window.pageYOffset});function L(e){let t;if("el"in e){const n=e.el,i="string"===typeof n&&n.startsWith("#");0;const o="string"===typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=D(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function V(e,t){const n=history.state?history.state.position-t:-1;return n+e}const R=new Map;function B(e,t){R.set(e,t)}function z(e){const t=R.get(e);return R.delete(e),t}let W=()=>location.protocol+"//"+location.host;function F(e,t){const{pathname:n,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let t=o.includes(e.slice(r))?e.slice(r).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),b(n,"")}const a=b(n,e);return a+i+o}function U(e,t,n,i){let o=[],r=[],a=null;const s=({state:r})=>{const s=F(e,location),l=n.value,u=t.value;let c=0;if(r){if(n.value=s,t.value=r,a&&a===l)return void(a=null);c=u?r.position-u.position:0}else i(s);o.forEach((e=>{e(n.value,l,{delta:c,type:P.pop,direction:c?c>0?C.forward:C.back:C.unknown})}))};function l(){a=n.value}function u(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return r.push(t),t}function c(){const{history:e}=window;e.state&&e.replaceState(p({},e.state,{scroll:O()}),"")}function d(){for(const e of r)e();r=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:d}}function $(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?O():null}}function H(e){const{history:t,location:n}=window,i={value:F(e,n)},o={value:t.state};function r(i,r,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+i:W()+e+i;try{t[a?"replaceState":"pushState"](r,"",l),o.value=r}catch(u){console.error(u),n[a?"replace":"assign"](l)}}function a(e,n){const a=p({},t.state,$(o.value.back,e,o.value.forward,!0),n,{position:o.value.position});r(e,a,!0),i.value=e}function s(e,n){const a=p({},o.value,t.state,{forward:e,scroll:O()});r(a.current,a,!0);const s=p({},$(i.value,e,null),{position:a.position+1},n);r(e,s,!1),i.value=e}return o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:o,push:s,replace:a}}function j(e){e=E(e);const t=H(e),n=U(e,t.state,t.location,t.replace);function i(e,t=!0){t||n.pauseListeners(),history.go(e)}const o=p({location:"",base:e,go:i,createHref:N.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function G(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),j(e)}function Y(e){return"string"===typeof e||e&&"object"===typeof e}function Z(e){return"string"===typeof e||"symbol"===typeof e}const q={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},X=a("nf");var J;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(J||(J={}));function K(e,t){return p(new Error,{type:e,[X]:!0},t)}function Q(e,t){return e instanceof Error&&X in e&&(null==t||!!(e.type&t))}const ee="[^/]+?",te={sensitive:!1,strict:!1,start:!0,end:!0},ne=/[.+*?^${}()[\]/\\]/g;function ie(e,t){const n=p({},te,t),i=[];let o=n.start?"^":"";const r=[];for(const c of e){const e=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let t=0;t<c.length;t++){const i=c[t];let a=40+(n.sensitive?.25:0);if(0===i.type)t||(o+="/"),o+=i.value.replace(ne,"\\$&"),a+=40;else if(1===i.type){const{value:e,repeatable:n,optional:s,regexp:l}=i;r.push({name:e,repeatable:n,optional:s});const d=l||ee;if(d!==ee){a+=10;try{new RegExp(`(${d})`)}catch(u){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+u.message)}}let h=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(h=s&&c.length<2?`(?:/${h})`:"/"+h),s&&(h+="?"),o+=h,a+=20,s&&(a+=-8),n&&(a+=-20),".*"===d&&(a+=-50)}e.push(a)}i.push(e)}if(n.strict&&n.end){const e=i.length-1;i[e][i[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function s(e){const t=e.match(a),n={};if(!t)return null;for(let i=1;i<t.length;i++){const e=t[i]||"",o=r[i-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n}function l(t){let n="",i=!1;for(const o of e){i&&n.endsWith("/")||(n+="/"),i=!1;for(const r of o)if(0===r.type)n+=r.value;else if(1===r.type){const{value:a,repeatable:s,optional:l}=r,u=a in t?t[a]:"";if(Array.isArray(u)&&!s)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const c=Array.isArray(u)?u.join("/"):u;if(!c){if(!l)throw new Error(`Missing required param "${a}"`);o.length<2&&e.length>1&&(n.endsWith("/")?n=n.slice(0,-1):i=!0)}n+=c}}return n}return{re:a,score:i,keys:r,parse:s,stringify:l}}function oe(e,t){let n=0;while(n<e.length&&n<t.length){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function re(e,t){let n=0;const i=e.score,o=t.score;while(n<i.length&&n<o.length){const e=oe(i[n],o[n]);if(e)return e;n++}return o.length-i.length}const ae={type:0,value:""},se=/[a-zA-Z0-9_]/;function le(e){if(!e)return[[]];if("/"===e)return[[ae]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${u}": ${e}`)}let n=0,i=n;const o=[];let r;function a(){r&&o.push(r),r=[]}let s,l=0,u="",c="";function d(){u&&(0===n?r.push({type:0,value:u}):1===n||2===n||3===n?(r.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function h(){u+=s}while(l<e.length)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(u&&d(),a()):":"===s?(d(),n=1):h();break;case 4:h(),n=i;break;case 1:"("===s?n=2:se.test(s)?h():(d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==c[c.length-1]?c=c.slice(0,-1)+s:n=3:c+=s;break;case 3:d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,c="";break;default:t("Unknown state");break}else i=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${u}"`),d(),a(),o}function ue(e,t,n){const i=ie(le(e.path),n);const o=p(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf===!t.record.aliasOf&&t.children.push(o),o}function ce(e,t){const n=[],i=new Map;function o(e){return i.get(e)}function r(e,n,i){const o=!i,s=he(e);s.aliasOf=i&&i.record;const u=ve(t,e),c=[s];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)c.push(p({},s,{components:i?i.record.components:s.components,path:e,aliasOf:i?i.record:s}))}let d,h;for(const t of c){const{path:c}=t;if(n&&"/"!==c[0]){const e=n.record.path,i="/"===e[e.length-1]?"":"/";t.path=n.record.path+(c&&i+c)}if(d=ue(t,n,u),i?i.alias.push(d):(h=h||d,h!==d&&h.alias.push(d),o&&e.name&&!pe(d)&&a(e.name)),"children"in s){const e=s.children;for(let t=0;t<e.length;t++)r(e[t],d,i&&i.children[t])}i=i||d,l(d)}return h?()=>{a(h)}:v}function a(e){if(Z(e)){const t=i.get(e);t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function s(){return n}function l(e){let t=0;while(t<n.length&&re(e,n[t])>=0&&(e.record.path!==n[t].record.path||!me(e,n[t])))t++;n.splice(t,0,e),e.record.name&&!pe(e)&&i.set(e.record.name,e)}function u(e,t){let o,r,a,s={};if("name"in e&&e.name){if(o=i.get(e.name),!o)throw K(1,{location:e});a=o.record.name,s=p(de(t.params,o.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params),r=o.stringify(s)}else if("path"in e)r=e.path,o=n.find((e=>e.re.test(r))),o&&(s=o.parse(r),a=o.record.name);else{if(o=t.name?i.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw K(1,{location:e,currentLocation:t});a=o.record.name,s=p({},t.params,e.params),r=o.stringify(s)}const l=[];let u=o;while(u)l.unshift(u.record),u=u.parent;return{name:a,path:r,params:s,matched:l,meta:ge(l)}}return t=ve({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:u,removeRoute:a,getRoutes:s,getRecordMatcher:o}}function de(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function he(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:fe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function fe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="boolean"===typeof n?n:n[i];return t}function pe(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ge(e){return e.reduce(((e,t)=>p(e,t.meta)),{})}function ve(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function me(e,t){return t.children.some((t=>t===e||me(e,t)))}const ye=/#/g,xe=/&/g,_e=/\//g,be=/=/g,we=/\?/g,Se=/\+/g,Me=/%5B/g,Ie=/%5D/g,Ae=/%5E/g,ke=/%60/g,Pe=/%7B/g,Ce=/%7C/g,Ee=/%7D/g,Te=/%20/g;function Ne(e){return encodeURI(""+e).replace(Ce,"|").replace(Me,"[").replace(Ie,"]")}function De(e){return Ne(e).replace(Pe,"{").replace(Ee,"}").replace(Ae,"^")}function Oe(e){return Ne(e).replace(Se,"%2B").replace(Te,"+").replace(ye,"%23").replace(xe,"%26").replace(ke,"`").replace(Pe,"{").replace(Ee,"}").replace(Ae,"^")}function Le(e){return Oe(e).replace(be,"%3D")}function Ve(e){return Ne(e).replace(ye,"%23").replace(we,"%3F")}function Re(e){return null==e?"":Ve(e).replace(_e,"%2F")}function Be(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function ze(e){const t={};if(""===e||"?"===e)return t;const n="?"===e[0],i=(n?e.slice(1):e).split("&");for(let o=0;o<i.length;++o){const e=i[o].replace(Se," "),n=e.indexOf("="),r=Be(n<0?e:e.slice(0,n)),a=n<0?null:Be(e.slice(n+1));if(r in t){let e=t[r];Array.isArray(e)||(e=t[r]=[e]),e.push(a)}else t[r]=a}return t}function We(e){let t="";for(let n in e){const i=e[n];if(n=Le(n),null==i){void 0!==i&&(t+=(t.length?"&":"")+n);continue}const o=Array.isArray(i)?i.map((e=>e&&Oe(e))):[i&&Oe(i)];o.forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Fe(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=Array.isArray(i)?i.map((e=>null==e?null:""+e)):null==i?i:""+i)}return t}function Ue(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function $e(e,t,n,i,o){const r=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise(((a,s)=>{const l=e=>{!1===e?s(K(4,{from:n,to:t})):e instanceof Error?s(e):Y(e)?s(K(2,{from:t,to:e})):(r&&i.enterCallbacks[o]===r&&"function"===typeof e&&r.push(e),a())},u=e.call(i&&i.instances[o],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch((e=>s(e)))}))}function He(e,t,n,i){const o=[];for(const r of e)for(const e in r.components){let a=r.components[e];if("beforeRouteEnter"===t||r.instances[e])if(je(a)){const s=a.__vccOpts||a,l=s[t];l&&o.push($e(l,n,i,r,e))}else{let s=a();0,o.push((()=>s.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${r.path}"`));const a=f(o)?o.default:o;r.components[e]=a;const s=a.__vccOpts||a,l=s[t];return l&&$e(l,n,i,r,e)()}))))}}return o}function je(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function Ge(e){const t=(0,i.f3)(u),n=(0,i.f3)(c),r=(0,i.Fl)((()=>t.resolve((0,o.SU)(e.to)))),a=(0,i.Fl)((()=>{const{matched:e}=r.value,{length:t}=e,i=e[t-1],o=n.matched;if(!i||!o.length)return-1;const a=o.findIndex(S.bind(null,i));if(a>-1)return a;const s=Je(e[t-2]);return t>1&&Je(i)===s&&o[o.length-1].path!==s?o.findIndex(S.bind(null,e[t-2])):a})),s=(0,i.Fl)((()=>a.value>-1&&Xe(n.params,r.value.params))),l=(0,i.Fl)((()=>a.value>-1&&a.value===n.matched.length-1&&M(n.params,r.value.params)));function d(n={}){return qe(n)?t[(0,o.SU)(e.replace)?"replace":"push"]((0,o.SU)(e.to)).catch(v):Promise.resolve()}return{route:r,href:(0,i.Fl)((()=>r.value.href)),isActive:s,isExactActive:l,navigate:d}}const Ye=(0,i.aZ)({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ge,setup(e,{slots:t}){const n=(0,o.qj)(Ge(e)),{options:r}=(0,i.f3)(u),a=(0,i.Fl)((()=>({[Ke(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ke(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:(0,i.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}}),Ze=Ye;function qe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Xe(e,t){for(const n in t){const i=t[n],o=e[n];if("string"===typeof i){if(i!==o)return!1}else if(!Array.isArray(o)||o.length!==i.length||i.some(((e,t)=>e!==o[t])))return!1}return!0}function Je(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ke=(e,t,n)=>null!=e?e:null!=t?t:n,Qe=(0,i.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=(0,i.f3)(d),a=(0,i.Fl)((()=>e.route||r.value)),u=(0,i.f3)(l,0),c=(0,i.Fl)((()=>a.value.matched[u]));(0,i.JJ)(l,u+1),(0,i.JJ)(s,c),(0,i.JJ)(d,a);const h=(0,o.iH)();return(0,i.YP)((()=>[h.value,c.value,e.name]),(([e,t,n],[i,o,r])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&S(t,o)&&i||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=a.value,r=c.value,s=r&&r.components[e.name],l=e.name;if(!s)return et(n.default,{Component:s,route:o});const u=r.props[e.name],d=u?!0===u?o.params:"function"===typeof u?u(o):u:null,f=e=>{e.component.isUnmounted&&(r.instances[l]=null)},g=(0,i.h)(s,p({},d,t,{onVnodeUnmounted:f,ref:h}));return et(n.default,{Component:g,route:o})||g}}});function et(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const tt=Qe;function nt(e){const t=ce(e.routes,e),n=e.parseQuery||ze,r=e.stringifyQuery||We,a=e.history;const s=Ue(),l=Ue(),f=Ue(),m=(0,o.XI)(q);let y=q;h&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const b=g.bind(null,(e=>""+e)),S=g.bind(null,Re),M=g.bind(null,Be);function I(e,n){let i,o;return Z(e)?(i=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,i)}function A(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function k(){return t.getRoutes().map((e=>e.record))}function C(e){return!!t.getRecordMatcher(e)}function E(e,i){if(i=p({},i||m.value),"string"===typeof e){const o=x(n,e,i.path),r=t.resolve({path:o.path},i),s=a.createHref(o.fullPath);return p(o,r,{params:M(r.params),hash:Be(o.hash),redirectedFrom:void 0,href:s})}let o;if("path"in e)o=p({},e,{path:x(n,e.path,i.path).path});else{const t=p({},e.params);for(const e in t)null==t[e]&&delete t[e];o=p({},e,{params:S(e.params)}),i.params=S(i.params)}const s=t.resolve(o,i),l=e.hash||"";s.params=b(M(s.params));const u=_(r,p({},e,{hash:De(l),path:s.path})),c=a.createHref(u);return p({fullPath:u,hash:l,query:r===We?Fe(e.query):e.query||{}},s,{redirectedFrom:void 0,href:c})}function T(e){return"string"===typeof e?x(n,e,m.value.path):p({},e)}function N(e,t){if(y!==e)return K(8,{from:t,to:e})}function D(e){return F(e)}function R(e){return D(p(T(e),{replace:!0}))}function W(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let i="function"===typeof n?n(e):n;return"string"===typeof i&&(i=i.includes("?")||i.includes("#")?i=T(i):{path:i},i.params={}),p({query:e.query,hash:e.hash,params:e.params},i)}}function F(e,t){const n=y=E(e),i=m.value,o=e.state,a=e.force,s=!0===e.replace,l=W(n);if(l)return F(p(T(l),{state:o,force:a,replace:s}),t||n);const u=n;let c;return u.redirectedFrom=t,!a&&w(r,i,n)&&(c=K(16,{to:u,from:i}),oe(i,i,!0,!1)),(c?Promise.resolve(c):$(u,i)).catch((e=>Q(e)?Q(e,2)?e:ie(e):te(e,u,i))).then((e=>{if(e){if(Q(e,2))return F(p(T(e.to),{state:o,force:a,replace:s}),t||u)}else e=j(u,i,!0,s,o);return H(u,i,e),e}))}function U(e,t){const n=N(e,t);return n?Promise.reject(n):Promise.resolve()}function $(e,t){let n;const[i,o,r]=ot(e,t);n=He(i.reverse(),"beforeRouteLeave",e,t);for(const s of i)s.leaveGuards.forEach((i=>{n.push($e(i,e,t))}));const a=U.bind(null,e,t);return n.push(a),it(n).then((()=>{n=[];for(const i of s.list())n.push($e(i,e,t));return n.push(a),it(n)})).then((()=>{n=He(o,"beforeRouteUpdate",e,t);for(const i of o)i.updateGuards.forEach((i=>{n.push($e(i,e,t))}));return n.push(a),it(n)})).then((()=>{n=[];for(const i of e.matched)if(i.beforeEnter&&!t.matched.includes(i))if(Array.isArray(i.beforeEnter))for(const o of i.beforeEnter)n.push($e(o,e,t));else n.push($e(i.beforeEnter,e,t));return n.push(a),it(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=He(r,"beforeRouteEnter",e,t),n.push(a),it(n)))).then((()=>{n=[];for(const i of l.list())n.push($e(i,e,t));return n.push(a),it(n)})).catch((e=>Q(e,8)?e:Promise.reject(e)))}function H(e,t,n){for(const i of f.list())i(e,t,n)}function j(e,t,n,i,o){const r=N(e,t);if(r)return r;const s=t===q,l=h?history.state:{};n&&(i||s?a.replace(e.fullPath,p({scroll:s&&l&&l.scroll},o)):a.push(e.fullPath,o)),m.value=e,oe(e,t,n,s),ie()}let G;function Y(){G||(G=a.listen(((e,t,n)=>{const i=E(e),o=W(i);if(o)return void F(p(o,{replace:!0}),i).catch(v);y=i;const r=m.value;h&&B(V(r.fullPath,n.delta),O()),$(i,r).catch((e=>Q(e,12)?e:Q(e,2)?(F(e.to,i).then((e=>{Q(e,20)&&!n.delta&&n.type===P.pop&&a.go(-1,!1)})).catch(v),Promise.reject()):(n.delta&&a.go(-n.delta,!1),te(e,i,r)))).then((e=>{e=e||j(i,r,!1),e&&(n.delta?a.go(-n.delta,!1):n.type===P.pop&&Q(e,20)&&a.go(-1,!1)),H(i,r,e)})).catch(v)})))}let X,J=Ue(),ee=Ue();function te(e,t,n){ie(e);const i=ee.list();return i.length?i.forEach((i=>i(e,t,n))):console.error(e),Promise.reject(e)}function ne(){return X&&m.value!==q?Promise.resolve():new Promise(((e,t)=>{J.add([e,t])}))}function ie(e){return X||(X=!e,Y(),J.list().forEach((([t,n])=>e?n(e):t())),J.reset()),e}function oe(t,n,o,r){const{scrollBehavior:a}=e;if(!h||!a)return Promise.resolve();const s=!o&&z(V(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return(0,i.Y3)().then((()=>a(t,n,s))).then((e=>e&&L(e))).catch((e=>te(e,t,n)))}const re=e=>a.go(e);let ae;const se=new Set,le={currentRoute:m,addRoute:I,removeRoute:A,hasRoute:C,getRoutes:k,resolve:E,options:e,push:D,replace:R,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:s.add,beforeResolve:l.add,afterEach:f.add,onError:ee.add,isReady:ne,install(e){const t=this;e.component("RouterLink",Ze),e.component("RouterView",tt),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,o.SU)(m)}),h&&!ae&&m.value===q&&(ae=!0,D(a.location).catch((e=>{0})));const n={};for(const o in q)n[o]=(0,i.Fl)((()=>m.value[o]));e.provide(u,t),e.provide(c,(0,o.qj)(n)),e.provide(d,m);const r=e.unmount;se.add(e),e.unmount=function(){se.delete(e),se.size<1&&(y=q,G&&G(),G=null,m.value=q,ae=!1,X=!1),r()}}};return le}function it(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function ot(e,t){const n=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let a=0;a<r;a++){const r=t.matched[a];r&&(e.matched.find((e=>S(e,r)))?i.push(r):n.push(r));const s=e.matched[a];s&&(t.matched.find((e=>S(e,s)))||o.push(s))}return[n,i,o]}function rt(){return(0,i.f3)(u)}function at(){return(0,i.f3)(c)}},33907:function(e,t,n){"use strict";n.d(t,{MT:function(){return te},oR:function(){return m}});var i=n(66252),o=n(2262);function r(){return a().__VUE_DEVTOOLS_GLOBAL_HOOK__}function a(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{}}const s="function"===typeof Proxy,l="devtools-plugin:setup",u="plugin:settings:set";let c,d;function h(){var e;return void 0!==c||("undefined"!==typeof window&&window.performance?(c=!0,d=window.performance):"undefined"!==typeof n.g&&(null===(e=n.g.perf_hooks)||void 0===e?void 0:e.performance)?(c=!0,d=n.g.perf_hooks.performance):c=!1),c}function f(){return h()?d.now():Date.now()}class p{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const a in e.settings){const t=e.settings[a];n[a]=t.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(i),t=JSON.parse(e);Object.assign(o,t)}catch(r){}this.fallbacks={getSettings(){return o},setSettings(e){try{localStorage.setItem(i,JSON.stringify(e))}catch(r){}o=e},now(){return f()}},t&&t.on(u,((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function g(e,t){const n=e,i=a(),o=r(),u=s&&n.enableEarlyProxy;if(!o||!i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&u){const e=u?new p(n,o):null,r=i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[];r.push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit(l,e,t)}
| /*!
| * vuex v4.0.2
| * (c) 2021 Evan You
| * @license MIT
| */
| var v="store";function m(e){return void 0===e&&(e=null),(0,i.f3)(null!==e?e:v)}function y(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function x(e){return null!==e&&"object"===typeof e}function _(e){return e&&"function"===typeof e.then}function b(e,t){return function(){return e(t)}}function w(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function S(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;I(e,n,[],e._modules.root,!0),M(e,n,t)}function M(e,t,n){var i=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,a={};y(r,(function(t,n){a[n]=b(t,e),Object.defineProperty(e.getters,n,{get:function(){return a[n]()},enumerable:!0})})),e._state=(0,o.qj)({data:t}),e.strict&&T(e),i&&n&&e._withCommit((function(){i.data=null}))}function I(e,t,n,i,o){var r=!n.length,a=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!r&&!o){var s=N(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){s[l]=i.state}))}var u=i.context=A(e,a,n);i.forEachMutation((function(t,n){var i=a+n;P(e,i,t,u)})),i.forEachAction((function(t,n){var i=t.root?n:a+n,o=t.handler||t;C(e,i,o,u)})),i.forEachGetter((function(t,n){var i=a+n;E(e,i,t,u)})),i.forEachChild((function(i,r){I(e,t,n.concat(r),i,o)}))}function A(e,t,n){var i=""===t,o={dispatch:i?e.dispatch:function(n,i,o){var r=D(n,i,o),a=r.payload,s=r.options,l=r.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:i?e.commit:function(n,i,o){var r=D(n,i,o),a=r.payload,s=r.options,l=r.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(o,{getters:{get:i?function(){return e.getters}:function(){return k(e,t)}},state:{get:function(){return N(e.state,n)}}}),o}function k(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,i)===t){var r=o.slice(i);Object.defineProperty(n,r,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function P(e,t,n,i){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,i.state,t)}))}function C(e,t,n,i){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return _(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function E(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function T(e){(0,i.YP)((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function N(e,t){return t.reduce((function(e,t){return e[t]}),e)}function D(e,t,n){return x(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var O="vuex bindings",L="vuex:mutations",V="vuex:actions",R="vuex",B=0;function z(e,t){g({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[O]},(function(n){n.addTimelineLayer({id:L,label:"Vuex Mutations",color:W}),n.addTimelineLayer({id:V,label:"Vuex Actions",color:W}),n.addInspector({id:R,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===R)if(n.filter){var i=[];G(i,t._modules.root,n.filter,""),n.rootNodes=i}else n.rootNodes=[j(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===R){var i=n.nodeId;k(t,i),n.state=Y(q(t._modules,i),"root"===i?t.getters:t._makeLocalGettersCache,i)}})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===R){var i=n.nodeId,o=n.path;"root"!==i&&(o=i.split("/").filter(Boolean).concat(o)),t._withCommit((function(){n.set(t._state.data,o,n.state.value)}))}})),t.subscribe((function(e,t){var i={};e.payload&&(i.payload=e.payload),i.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(R),n.sendInspectorState(R),n.addTimelineEvent({layerId:L,event:{time:Date.now(),title:e.type,data:i}})})),t.subscribeAction({before:function(e,t){var i={};e.payload&&(i.payload=e.payload),e._id=B++,e._time=Date.now(),i.state=t,n.addTimelineEvent({layerId:V,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:i}})},after:function(e,t){var i={},o=Date.now()-e._time;i.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(i.payload=e.payload),i.state=t,n.addTimelineEvent({layerId:V,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:i}})}})}))}var W=8702998,F=6710886,U=16777215,$={label:"namespaced",textColor:U,backgroundColor:F};function H(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function j(e,t){return{id:t||"root",label:H(t),tags:e.namespaced?[$]:[],children:Object.keys(e._children).map((function(n){return j(e._children[n],t+n+"/")}))}}function G(e,t,n,i){i.includes(n)&&e.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:t.namespaced?[$]:[]}),Object.keys(t._children).forEach((function(o){G(e,t._children[o],n,i+o+"/")}))}function Y(e,t,n){t="root"===n?t:t[n];var i=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(i.length){var r=Z(t);o.getters=Object.keys(r).map((function(e){return{key:e.endsWith("/")?H(e):e,editable:!1,value:X((function(){return r[e]}))}}))}return o}function Z(e){var t={};return Object.keys(e).forEach((function(n){var i=n.split("/");if(i.length>1){var o=t,r=i.pop();i.forEach((function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value})),o[r]=X((function(){return e[n]}))}else t[n]=X((function(){return e[n]}))})),t}function q(e,t){var n=t.split("/").filter((function(e){return e}));return n.reduce((function(e,i,o){var r=e[i];if(!r)throw new Error('Missing module "'+i+'" for path "'+t+'".');return o===n.length-1?r:r._children}),"root"===t?e:e.root._children)}function X(e){try{return e()}catch(t){return t}}var J=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},K={namespaced:{configurable:!0}};K.namespaced.get=function(){return!!this._rawModule.namespaced},J.prototype.addChild=function(e,t){this._children[e]=t},J.prototype.removeChild=function(e){delete this._children[e]},J.prototype.getChild=function(e){return this._children[e]},J.prototype.hasChild=function(e){return e in this._children},J.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},J.prototype.forEachChild=function(e){y(this._children,e)},J.prototype.forEachGetter=function(e){this._rawModule.getters&&y(this._rawModule.getters,e)},J.prototype.forEachAction=function(e){this._rawModule.actions&&y(this._rawModule.actions,e)},J.prototype.forEachMutation=function(e){this._rawModule.mutations&&y(this._rawModule.mutations,e)},Object.defineProperties(J.prototype,K);var Q=function(e){this.register([],e,!1)};function ee(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;ee(e.concat(i),t.getChild(i),n.modules[i])}}Q.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},Q.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},Q.prototype.update=function(e){ee([],this.root,e)},Q.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var o=new J(t,n);if(0===e.length)this.root=o;else{var r=this.get(e.slice(0,-1));r.addChild(e[e.length-1],o)}t.modules&&y(t.modules,(function(t,o){i.register(e.concat(o),t,n)}))},Q.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},Q.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};function te(e){return new ne(e)}var ne=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1);var o=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Q(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=o;var r=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(e,t){return s.call(r,e,t)},this.commit=function(e,t,n){return l.call(r,e,t,n)},this.strict=i;var u=this._modules.root.state;I(this,u,[],this._modules.root),M(this,u),n.forEach((function(e){return e(t)}))},ie={state:{configurable:!0}};ne.prototype.install=function(e,t){e.provide(t||v,this),e.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&z(e,this)},ie.state.get=function(){return this._state.data},ie.state.set=function(e){0},ne.prototype.commit=function(e,t,n){var i=this,o=D(e,t,n),r=o.type,a=o.payload,s=(o.options,{type:r,payload:a}),l=this._mutations[r];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,i.state)})))},ne.prototype.dispatch=function(e,t){var n=this,i=D(e,t),o=i.type,r=i.payload,a={type:o,payload:r},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(e){return e(r)}))):s[0](r);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},ne.prototype.subscribe=function(e,t){return w(e,this._subscribers,t)},ne.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return w(n,this._actionSubscribers,t)},ne.prototype.watch=function(e,t,n){var o=this;return(0,i.YP)((function(){return e(o.state,o.getters)}),t,Object.assign({},n))},ne.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},ne.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),I(this,this.state,e,this._modules.get(e),n.preserveState),M(this,this.state)},ne.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=N(t.state,e.slice(0,-1));delete n[e[e.length-1]]})),S(this)},ne.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},ne.prototype.hotUpdate=function(e){this._modules.update(e),S(this,!0)},ne.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ne.prototype,ie);ae((function(e,t){var n={};return oe(t).forEach((function(t){var i=t.key,o=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=se(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof o?o.call(this,t,n):t[o]},n[i].vuex=!0})),n})),ae((function(e,t){var n={};return oe(t).forEach((function(t){var i=t.key,o=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var r=se(this.$store,"mapMutations",e);if(!r)return;i=r.context.commit}return"function"===typeof o?o.apply(this,[i].concat(t)):i.apply(this.$store,[o].concat(t))}})),n})),ae((function(e,t){var n={};return oe(t).forEach((function(t){var i=t.key,o=t.val;o=e+o,n[i]=function(){if(!e||se(this.$store,"mapGetters",e))return this.$store.getters[o]},n[i].vuex=!0})),n})),ae((function(e,t){var n={};return oe(t).forEach((function(t){var i=t.key,o=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var r=se(this.$store,"mapActions",e);if(!r)return;i=r.context.dispatch}return"function"===typeof o?o.apply(this,[i].concat(t)):i.apply(this.$store,[o].concat(t))}})),n}));function oe(e){return re(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function re(e){return Array.isArray(e)||x(e)}function ae(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function se(e,t,n){var i=e._modulesNamespaceMap[n];return i}},85823:function(e,t,n){var i=n(78038),o=n(41502),r=n(58023),a=n(7131),s=n(33051),l=function(e){r.call(this,e),o.call(this,e),a.call(this,e),this.id=e.id||i()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){if("position"===e||"scale"===e||"origin"===e){if(t){var n=this[e];n||(n=this[e]=[]),n[0]=t[0],n[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(s.isObject(e))for(var n in e)e.hasOwnProperty(n)&&this.attrKV(n,e[n]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},s.mixin(l,a),s.mixin(l,r),s.mixin(l,o);var u=l;e.exports=u},48173:function(e,t,n){var i=n(33051),o=n(45280),r=n(17780),a=n(41502),s=n(61158),l=n(49399),u="silent";function c(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.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:d}}function d(){s.stop(this.event)}function h(){}h.prototype.dispose=function(){};var f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(e,t,n,i){a.call(this),this.storage=e,this.painter=t,this.painterRoot=i,n=n||new h,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,r.call(this),this.setHandlerProxy(n)};function g(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var i,o=e;while(o){if(o.clipPath&&!o.clipPath.contain(t,n))return!1;o.silent&&(i=!0),o=o.parent}return!i||u}return!1}function v(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(i.each(f,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},mousemove:function(e){var t=e.zrX,n=e.zrY,i=v(this,t,n),o=this._hovered,r=o.target;r&&!r.__zr&&(o=this.findHover(o.x,o.y),r=o.target);var a=this._hovered=i?{x:t,y:n}:this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),r&&s!==r&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==r&&this.dispatchToElement(a,"mouseover",e)},mouseout:function(e){var t=e.zrEventControl,n=e.zrIsToLocalDOM;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&!n&&this.trigger("globalout",{type:"globalout",event:e})},resize:function(e){this._hovered={}},dispatch:function(e,t){var n=this[e];n&&n.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,n){e=e||{};var i=e.target;if(!i||!i.silent){var o="on"+t,r=c(t,e,n);while(i)if(i[o]&&(r.cancelBubble=i[o].call(i,r)),i.trigger(t,r),i=i.parent,r.cancelBubble)break;r.cancelBubble||(this.trigger(t,r),this.painter&&this.painter.eachOtherLayer((function(e){"function"===typeof e[o]&&e[o].call(e,r),e.trigger&&e.trigger(t,r)})))}},findHover:function(e,t,n){for(var i=this.storage.getDisplayList(),o={x:e,y:t},r=i.length-1;r>=0;r--){var a;if(i[r]!==n&&!i[r].ignore&&(a=g(i[r],e,t))&&(!o.topTarget&&(o.topTarget=i[r]),a!==u)){o.target=i[r];break}}return o},processGesture:function(e,t){this._gestureMgr||(this._gestureMgr=new l);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var o=i.type;e.gestureEvent=o,this.dispatchToElement({target:i.target},o,i.event)}}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){p.prototype[e]=function(t){var n,i,r=t.zrX,a=t.zrY,s=v(this,r,a);if("mouseup"===e&&s||(n=this.findHover(r,a),i=n.target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||o.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}})),i.mixin(p,a),i.mixin(p,r);var m=p;e.exports=m},39559:function(e,t,n){var i=n(33051),o=n(4990),r=o.devicePixelRatio,a=n(40342),s=n(31870);function l(){return!1}function u(e,t,n){var o=i.createCanvas(),r=t.getWidth(),a=t.getHeight(),s=o.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=r+"px",s.height=a+"px",o.setAttribute("data-zr-dom-id",e)),o.width=r*n,o.height=a*n,o}var c=function(e,t,n){var o;n=n||r,"string"===typeof e?o=u(e,t,n):i.isObject(e)&&(o=e,e=o.id),this.id=e,this.dom=o;var a=o.style;a&&(o.onselectstart=l,a["-webkit-user-select"]="none",a["user-select"]="none",a["-webkit-touch-callout"]="none",a["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",a["padding"]=0,a["margin"]=0,a["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};c.prototype={constructor:c,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=u("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},resize:function(e,t){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o&&(o.width=e+"px",o.height=t+"px"),i.width=e*n,i.height=t*n,r&&(r.width=e*n,r.height=t*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(e,t){var n,i=this.dom,o=this.ctx,r=i.width,l=i.height,u=(t=t||this.clearColor,this.motionBlur&&!e),c=this.lastFrameAlpha,d=this.dpr;(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,r/d,l/d)),o.clearRect(0,0,r,l),t&&"transparent"!==t)&&(t.colorStops?(n=t.__canvasGradient||a.getGradient(o,t,{x:0,y:0,width:r,height:l}),t.__canvasGradient=n):t.image&&(n=s.prototype.getCanvasPattern.call(t,o)),o.save(),o.fillStyle=n||t,o.fillRect(0,0,r,l),o.restore());if(u){var h=this.domBack;o.save(),o.globalAlpha=c,o.drawImage(h,0,0,r,l),o.restore()}}};var d=c;e.exports=d},19847:function(e,t,n){var i=n(4990),o=i.devicePixelRatio,r=n(33051),a=n(48612),s=n(60479),l=n(19455),u=n(39559),c=n(22795),d=n(44535),h=n(66387),f=1e5,p=314159,g=.01,v=.001;function m(e){return parseInt(e,10)}function y(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}var x=new s(0,0,0,0),_=new s(0,0,0,0);function b(e,t,n){return x.copy(e.getBoundingRect()),e.transform&&x.applyTransform(e.transform),_.width=t,_.height=n,!x.intersect(_)}function w(e,t){if(e===t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function S(e,t){for(var n=0;n<e.length;n++){var i=e[n];i.setTransform(t),t.beginPath(),i.buildPath(t,i.shape),t.clip(),i.restoreTransform(t)}}function M(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var I=function(e,t,n){this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=r.extend({},n||{}),this.dpr=n.devicePixelRatio||o,this._singleCanvas=i,this.root=e;var a=e.style;a&&(a["-webkit-tap-highlight-color"]="transparent",a["-webkit-user-select"]=a["user-select"]=a["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var s=this._zlevelList=[],l=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var c=e.width,d=e.height;null!=n.width&&(c=n.width),null!=n.height&&(d=n.height),this.dpr=n.devicePixelRatio||1,e.width=c*this.dpr,e.height=d*this.dpr,this._width=c,this._height=d;var h=new u(e,this,this.dpr);h.__builtin__=!0,h.initContext(),l[p]=h,h.zlevel=p,s.push(p),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=M(this._width,this._height);e.appendChild(f)}this._hoverlayer=null,this._hoverElements=[]};I.prototype={constructor:I,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(e){var t=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,e,this._redrawId);for(var i=0;i<n.length;i++){var o=n[i],r=this._layers[o];if(!r.__builtin__&&r.refresh){var a=0===i?this._backgroundColor:null;r.refresh(a)}}return this.refreshHover(),this},addHover:function(e,t){if(!e.__hoverMir){var n=new e.constructor({style:e.style,shape:e.shape,z:e.z,z2:e.z2,silent:e.silent});return n.__from=e,e.__hoverMir=n,t&&n.setStyle(t),this._hoverElements.push(n),n}},removeHover:function(e){var t=e.__hoverMir,n=this._hoverElements,i=r.indexOf(n,t);i>=0&&n.splice(i,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,n=0;n<t.length;n++){var i=t[n].__from;i&&(i.__hoverMir=null)}t.length=0},refreshHover:function(){var e=this._hoverElements,t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){l(e,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(f));var i={};n.ctx.save();for(var o=0;o<t;){var r=e[o],a=r.__from;a&&a.__zr?(o++,a.invisible||(r.transform=a.transform,r.invTransform=a.invTransform,r.__clipPaths=a.__clipPaths,this._doPaintEl(r,n,!0,i))):(e.splice(o,1),a.__hoverMir=null,t--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(f)},_paintList:function(e,t,n){if(this._redrawId===n){t=t||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var o=this;c((function(){o._paintList(e,t,n)}))}}},_compositeManually:function(){var e=this.getLayer(p).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)}))},_doPaintList:function(e,t){for(var n=[],i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i],a=this._layers[o];a.__builtin__&&a!==this._hoverlayer&&(a.__dirty||t)&&n.push(a)}for(var s=!0,l=0;l<n.length;l++){a=n[l];var u=a.ctx,c={};u.save();var d=t?a.__startIndex:a.__drawIndex,f=!t&&a.incremental&&Date.now,p=f&&Date.now(),g=a.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(a.__startIndex===a.__endIndex)a.clear(!1,g);else if(d===a.__startIndex){var v=e[d];v.incremental&&v.notClear&&!t||a.clear(!1,g)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=a.__startIndex);for(var m=d;m<a.__endIndex;m++){var y=e[m];if(this._doPaintEl(y,a,t,c),y.__dirty=y.__dirtyText=!1,f){var x=Date.now()-p;if(x>15)break}}a.__drawIndex=m,a.__drawIndex<a.__endIndex&&(s=!1),c.prevElClipPaths&&u.restore(),u.restore()}return h.wxa&&r.each(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),s},_doPaintEl:function(e,t,n,i){var o=t.ctx,r=e.transform;if((t.__dirty||n)&&!e.invisible&&0!==e.style.opacity&&(!r||r[0]||r[3])&&(!e.culling||!b(e,this._width,this._height))){var a=e.__clipPaths,s=i.prevElClipPaths;s&&!w(a,s)||(s&&(o.restore(),i.prevElClipPaths=null,i.prevEl=null),a&&(o.save(),S(a,o),i.prevElClipPaths=a)),e.beforeBrush&&e.beforeBrush(o),e.brush(o,i.prevEl||null),i.prevEl=e,e.afterBrush&&e.afterBrush(o)}},getLayer:function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=p);var n=this._layers[e];return n||(n=new u("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?r.merge(n,this._layerConfig[e],!0):this._layerConfig[e-g]&&r.merge(n,this._layerConfig[e-g],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},insertLayer:function(e,t){var n=this._layers,i=this._zlevelList,o=i.length,r=null,s=-1,l=this._domRoot;if(n[e])a("ZLevel "+e+" has been used already");else if(y(t)){if(o>0&&e>i[0]){for(s=0;s<o-1;s++)if(i[s]<e&&i[s+1]>e)break;r=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(r){var u=r.dom;u.nextSibling?l.insertBefore(t.dom,u.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom)}else a("Layer of zlevel "+e+" is not valid")},eachLayer:function(e,t){var n,i,o=this._zlevelList;for(i=0;i<o.length;i++)n=o[i],e.call(t,this._layers[n],n)},eachBuiltinLayer:function(e,t){var n,i,o,r=this._zlevelList;for(o=0;o<r.length;o++)i=r[o],n=this._layers[i],n.__builtin__&&e.call(t,n,i)},eachOtherLayer:function(e,t){var n,i,o,r=this._zlevelList;for(o=0;o<r.length;o++)i=r[o],n=this._layers[i],n.__builtin__||e.call(t,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(e){function t(e){r&&(r.__endIndex!==e&&(r.__dirty=!0),r.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o,r=null,s=0;for(n=0;n<e.length;n++){i=e[n];var l,u=i.zlevel;o!==u&&(o=u,s=0),i.incremental?(l=this.getLayer(u+v,this._needsManuallyCompositing),l.incremental=!0,s=1):l=this.getLayer(u+(s>0?g:0),this._needsManuallyCompositing),l.__builtin__||a("ZLevel "+u+" has been used by unkown layer "+l.id),l!==r&&(l.__used=!0,l.__startIndex!==n&&(l.__dirty=!0),l.__startIndex=n,l.incremental?l.__drawIndex=-1:l.__drawIndex=n,t(n),r=l),i.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=n))}t(n),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var n=this._layerConfig;n[e]?r.merge(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===e||o===e+g){var a=this._layers[o];r.merge(a,n[e],!0)}}}},delLayer:function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(r.indexOf(n,e),1))},resize:function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);r.each(this._progressiveLayers,(function(n){n.resize(e,t)})),this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(p).resize(e,t)}return this},clearLayer:function(e){var t=this._layers[e];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[p].dom;var t=new u("image",this,e.pixelRatio||this.dpr);if(t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor),e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height,o=t.ctx;this.eachLayer((function(e){e.__builtin__?o.drawImage(e.dom,0,0,n,i):e.renderToCanvas&&(t.ctx.save(),e.renderToCanvas(t.ctx),t.ctx.restore())}))}else for(var r={},a=this.storage.getDisplayList(!0),s=0;s<a.length;s++){var l=a[s];this._doPaintEl(l,t,!0,r)}return t.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],r=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||m(s[n])||m(a.style[n]))-(m(s[o])||0)-(m(s[r])||0)|0},pathToImage:function(e,t){t=t||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),o=e.getBoundingRect(),r=e.style,a=r.shadowBlur*t,s=r.shadowOffsetX*t,l=r.shadowOffsetY*t,u=r.hasStroke()?r.lineWidth:0,c=Math.max(u/2,-s+a),h=Math.max(u/2,s+a),f=Math.max(u/2,-l+a),p=Math.max(u/2,l+a),g=o.width+c+h,v=o.height+f+p;n.width=g*t,n.height=v*t,i.scale(t,t),i.clearRect(0,0,g,v),i.dpr=t;var m={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[c-o.x,f-o.y],e.rotation=0,e.scale=[1,1],e.updateTransform(),e&&e.brush(i);var y=d,x=new y({style:{x:0,y:0,image:n}});return null!=m.position&&(x.position=e.position=m.position),null!=m.rotation&&(x.rotation=e.rotation=m.rotation),null!=m.scale&&(x.scale=e.scale=m.scale),x}};var A=I;e.exports=A},8822:function(e,t,n){var i=n(33051),o=n(66387),r=n(8524),a=n(19455);function s(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},getDisplayList:function(e,t){return t=t||!1,e&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,o.canvasSupported&&a(n,s)},_updateAndAddDisplayable:function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var i=e.clipPath;if(i){t=t?t.slice():[];var o=i,r=e;while(o)o.parent=r,o.updateTransform(),t.push(o),r=o,o=o.clipPath}if(e.isGroup){for(var a=e._children,s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,t,n)}e.__dirty=!1}else e.__clipPaths=t,this._displayList[this._displayListLen++]=e}},addRoot:function(e){e.__storage!==this&&(e instanceof r&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e))},delRoot:function(e){if(null==e){for(var t=0;t<this._roots.length;t++){var n=this._roots[t];n instanceof r&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(e instanceof Array){t=0;for(var o=e.length;t<o;t++)this.delRoot(e[t])}else{var a=i.indexOf(this._roots,e);a>=0&&(this.delFromStorage(e),this._roots.splice(a,1),e instanceof r&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var u=l;e.exports=u},76069:function(e,t,n){var i=n(33051),o=n(61158),r=o.Dispatcher,a=n(22795),s=n(64383),l=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,r.call(this)};l.prototype={constructor:l,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),n=0;n<t.length;n++)this.addClip(t[n])},removeClip:function(e){var t=i.indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),n=0;n<t.length;n++)this.removeClip(t[n]);e.animation=null},_update:function(){for(var e=(new Date).getTime()-this._pausedTime,t=e-this._time,n=this._clips,i=n.length,o=[],r=[],a=0;a<i;a++){var s=n[a],l=s.step(e,t);l&&(o.push(l),r.push(s))}for(a=0;a<i;)n[a]._needsRemove?(n[a]=n[i-1],n.pop(),i--):a++;i=o.length;for(a=0;a<i;a++)r[a].fire(o[a]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var e=this;function t(){e._running&&(a(t),!e._paused&&e._update())}this._running=!0,a(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(e,t){t=t||{};var n=new s(e,t.loop,t.getter,t.setter);return this.addAnimator(n),n}},i.mixin(l,r);var u=l;e.exports=u},64383:function(e,t,n){var i=n(8470),o=n(21092),r=n(33051),a=r.isArrayLike,s=Array.prototype.slice;function l(e,t){return e[t]}function u(e,t,n){e[t]=n}function c(e,t,n){return(t-e)*n+e}function d(e,t,n){return n>.5?t:e}function h(e,t,n,i,o){var r=e.length;if(1===o)for(var a=0;a<r;a++)i[a]=c(e[a],t[a],n);else{var s=r&&e[0].length;for(a=0;a<r;a++)for(var l=0;l<s;l++)i[a][l]=c(e[a][l],t[a][l],n)}}function f(e,t,n){var i=e.length,o=t.length;if(i!==o){var r=i>o;if(r)e.length=o;else for(var a=i;a<o;a++)e.push(1===n?t[a]:s.call(t[a]))}var l=e[0]&&e[0].length;for(a=0;a<e.length;a++)if(1===n)isNaN(e[a])&&(e[a]=t[a]);else for(var u=0;u<l;u++)isNaN(e[a][u])&&(e[a][u]=t[a][u])}function p(e,t,n){if(e===t)return!0;var i=e.length;if(i!==t.length)return!1;if(1===n){for(var o=0;o<i;o++)if(e[o]!==t[o])return!1}else{var r=e[0].length;for(o=0;o<i;o++)for(var a=0;a<r;a++)if(e[o][a]!==t[o][a])return!1}return!0}function g(e,t,n,i,o,r,a,s,l){var u=e.length;if(1===l)for(var c=0;c<u;c++)s[c]=v(e[c],t[c],n[c],i[c],o,r,a);else{var d=e[0].length;for(c=0;c<u;c++)for(var h=0;h<d;h++)s[c][h]=v(e[c][h],t[c][h],n[c][h],i[c][h],o,r,a)}}function v(e,t,n,i,o,r,a){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*a+(-3*(t-n)-2*s-l)*r+s*o+t}function m(e){if(a(e)){var t=e.length;if(a(e[0])){for(var n=[],i=0;i<t;i++)n.push(s.call(e[i]));return n}return s.call(e)}return e}function y(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function x(e){var t=e[e.length-1].value;return a(t&&t[0])?2:1}function _(e,t,n,r,s,l){var u=e._getter,m=e._setter,_="spline"===t,b=r.length;if(b){var w,S=r[0].value,M=a(S),I=!1,A=!1,k=M?x(r):0;r.sort((function(e,t){return e.time-t.time})),w=r[b-1].time;for(var P=[],C=[],E=r[0].value,T=!0,N=0;N<b;N++){P.push(r[N].time/w);var D=r[N].value;if(M&&p(D,E,k)||!M&&D===E||(T=!1),E=D,"string"===typeof D){var O=o.parse(D);O?(D=O,I=!0):A=!0}C.push(D)}if(l||!T){var L=C[b-1];for(N=0;N<b-1;N++)M?f(C[N],L,k):!isNaN(C[N])||isNaN(L)||A||I||(C[N]=L);M&&f(u(e._target,s),L,k);var V,R,B,z,W,F,U=0,$=0;if(I)var H=[0,0,0,0];var j=function(e,t){var n;if(t<0)n=0;else if(t<$){for(V=Math.min(U+1,b-1),n=V;n>=0;n--)if(P[n]<=t)break;n=Math.min(n,b-2)}else{for(n=U;n<b;n++)if(P[n]>t)break;n=Math.min(n-1,b-2)}U=n,$=t;var i=P[n+1]-P[n];if(0!==i)if(R=(t-P[n])/i,_)if(z=C[n],B=C[0===n?n:n-1],W=C[n>b-2?b-1:n+1],F=C[n>b-3?b-1:n+2],M)g(B,z,W,F,R,R*R,R*R*R,u(e,s),k);else{if(I)o=g(B,z,W,F,R,R*R,R*R*R,H,1),o=y(H);else{if(A)return d(z,W,R);o=v(B,z,W,F,R,R*R,R*R*R)}m(e,s,o)}else if(M)h(C[n],C[n+1],R,u(e,s),k);else{var o;if(I)h(C[n],C[n+1],R,H,1),o=y(H);else{if(A)return d(C[n],C[n+1],R);o=c(C[n],C[n+1],R)}m(e,s,o)}},G=new i({target:e._target,life:w,loop:e._loop,delay:e._delay,onframe:j,ondestroy:n});return t&&"spline"!==t&&(G.easing=t),G}}}var b=function(e,t,n,i){this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||l,this._setter=i||u,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(e,t){var n=this._tracks;for(var i in t)if(t.hasOwnProperty(i)){if(!n[i]){n[i]=[];var o=this._getter(this._target,i);if(null==o)continue;0!==e&&n[i].push({time:0,value:m(o)})}n[i].push({time:e,value:t[i]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].pause();this._paused=!0},resume:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,n=0;n<t;n++)e[n].call(this)},start:function(e,t){var n,i=this,o=0,r=function(){o--,o||i._doneCallback()};for(var a in this._tracks)if(this._tracks.hasOwnProperty(a)){var s=_(this,e,r,this._tracks[a],a,t);s&&(this._clipList.push(s),o++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(e,t){l(e,t);for(var n=0;n<i._onframeList.length;n++)i._onframeList[n](e,t)}}return o||this._doneCallback(),this},stop:function(e){for(var t=this._clipList,n=this.animation,i=0;i<t.length;i++){var o=t[i];e&&o.onframe(this._target,1),n&&n.removeClip(o)}t.length=0},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this},getClips:function(){return this._clipList}};var w=b;e.exports=w},8470:function(e,t,n){var i=n(30690);function o(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this._pausedTime=0,this._paused=!1}o.prototype={constructor:o,step:function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused)this._pausedTime+=t;else{var n=(e-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var o=this.easing,r="string"===typeof o?i[o]:o,a="function"===typeof r?r(n):n;return this.fire("frame",a),1===n?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(e,t){e="on"+e,this[e]&&this[e](this._target,t)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var r=o;e.exports=r},30690:function(e){var t={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i))},elasticOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}},n=t;e.exports=n},22795:function(e){var t="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)};e.exports=t},4990:function(e,t){var n=1;"undefined"!==typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var i=0,o=n;t.debugMode=i,t.devicePixelRatio=o},92334:function(e,t,n){var i=n(3266),o=i.normalizeRadian,r=2*Math.PI;function a(e,t,n,i,a,s,l,u,c){if(0===l)return!1;var d=l;u-=e,c-=t;var h=Math.sqrt(u*u+c*c);if(h-d>n||h+d<n)return!1;if(Math.abs(i-a)%r<1e-4)return!0;if(s){var f=i;i=o(a),a=o(f)}else i=o(i),a=o(a);i>a&&(a+=r);var p=Math.atan2(c,u);return p<0&&(p+=r),p>=i&&p<=a||p+r>=i&&p+r<=a}t.containStroke=a},71972:function(e,t,n){var i=n(18554);function o(e,t,n,o,r,a,s,l,u,c,d){if(0===u)return!1;var h=u;if(d>t+h&&d>o+h&&d>a+h&&d>l+h||d<t-h&&d<o-h&&d<a-h&&d<l-h||c>e+h&&c>n+h&&c>r+h&&c>s+h||c<e-h&&c<n-h&&c<r-h&&c<s-h)return!1;var f=i.cubicProjectPoint(e,t,n,o,r,a,s,l,c,d,null);return f<=h/2}t.containStroke=o},33640:function(e,t){function n(e,t,n,i,o,r,a){if(0===o)return!1;var s=o,l=0,u=e;if(a>t+s&&a>i+s||a<t-s&&a<i-s||r>e+s&&r>n+s||r<e-s&&r<n-s)return!1;if(e===n)return Math.abs(r-e)<=s/2;l=(t-i)/(e-n),u=(e*i-n*t)/(e-n);var c=l*r-a+u,d=c*c/(l*l+1);return d<=s/2*s/2}t.containStroke=n},85365:function(e,t,n){var i=n(14014),o=n(33640),r=n(71972),a=n(25674),s=n(92334),l=n(3266),u=l.normalizeRadian,c=n(18554),d=n(47637),h=i.CMD,f=2*Math.PI,p=1e-4;function g(e,t){return Math.abs(e-t)<p}var v=[-1,-1,-1],m=[-1,-1];function y(){var e=m[0];m[0]=m[1],m[1]=e}function x(e,t,n,i,o,r,a,s,l,u){if(u>t&&u>i&&u>r&&u>s||u<t&&u<i&&u<r&&u<s)return 0;var d=c.cubicRootAt(t,i,r,s,u,v);if(0===d)return 0;for(var h,f,p=0,g=-1,x=0;x<d;x++){var _=v[x],b=0===_||1===_?.5:1,w=c.cubicAt(e,n,o,a,_);w<l||(g<0&&(g=c.cubicExtrema(t,i,r,s,m),m[1]<m[0]&&g>1&&y(),h=c.cubicAt(t,i,r,s,m[0]),g>1&&(f=c.cubicAt(t,i,r,s,m[1]))),2===g?_<m[0]?p+=h<t?b:-b:_<m[1]?p+=f<h?b:-b:p+=s<f?b:-b:_<m[0]?p+=h<t?b:-b:p+=s<h?b:-b)}return p}function _(e,t,n,i,o,r,a,s){if(s>t&&s>i&&s>r||s<t&&s<i&&s<r)return 0;var l=c.quadraticRootAt(t,i,r,s,v);if(0===l)return 0;var u=c.quadraticExtremum(t,i,r);if(u>=0&&u<=1){for(var d=0,h=c.quadraticAt(t,i,r,u),f=0;f<l;f++){var p=0===v[f]||1===v[f]?.5:1,g=c.quadraticAt(e,n,o,v[f]);g<a||(v[f]<u?d+=h<t?p:-p:d+=r<h?p:-p)}return d}p=0===v[0]||1===v[0]?.5:1,g=c.quadraticAt(e,n,o,v[0]);return g<a?0:r<t?p:-p}function b(e,t,n,i,o,r,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);v[0]=-l,v[1]=l;var c=Math.abs(i-o);if(c<1e-4)return 0;if(c%f<1e-4){i=0,o=f;var d=r?1:-1;return a>=v[0]+e&&a<=v[1]+e?d:0}if(r){l=i;i=u(o),o=u(l)}else i=u(i),o=u(o);i>o&&(o+=f);for(var h=0,p=0;p<2;p++){var g=v[p];if(g+e>a){var m=Math.atan2(s,g);d=r?1:-1;m<0&&(m=f+m),(m>=i&&m<=o||m+f>=i&&m+f<=o)&&(m>Math.PI/2&&m<1.5*Math.PI&&(d=-d),h+=d)}}return h}function w(e,t,n,i,l){for(var u=0,c=0,f=0,p=0,v=0,m=0;m<e.length;){var y=e[m++];switch(y===h.M&&m>1&&(n||(u+=d(c,f,p,v,i,l))),1===m&&(c=e[m],f=e[m+1],p=c,v=f),y){case h.M:p=e[m++],v=e[m++],c=p,f=v;break;case h.L:if(n){if(o.containStroke(c,f,e[m],e[m+1],t,i,l))return!0}else u+=d(c,f,e[m],e[m+1],i,l)||0;c=e[m++],f=e[m++];break;case h.C:if(n){if(r.containStroke(c,f,e[m++],e[m++],e[m++],e[m++],e[m],e[m+1],t,i,l))return!0}else u+=x(c,f,e[m++],e[m++],e[m++],e[m++],e[m],e[m+1],i,l)||0;c=e[m++],f=e[m++];break;case h.Q:if(n){if(a.containStroke(c,f,e[m++],e[m++],e[m],e[m+1],t,i,l))return!0}else u+=_(c,f,e[m++],e[m++],e[m],e[m+1],i,l)||0;c=e[m++],f=e[m++];break;case h.A:var w=e[m++],S=e[m++],M=e[m++],I=e[m++],A=e[m++],k=e[m++];m+=1;var P=1-e[m++],C=Math.cos(A)*M+w,E=Math.sin(A)*I+S;m>1?u+=d(c,f,C,E,i,l):(p=C,v=E);var T=(i-w)*I/M+w;if(n){if(s.containStroke(w,S,I,A,A+k,P,t,T,l))return!0}else u+=b(w,S,I,A,A+k,P,T,l);c=Math.cos(A+k)*M+w,f=Math.sin(A+k)*I+S;break;case h.R:p=c=e[m++],v=f=e[m++];var N=e[m++],D=e[m++];C=p+N,E=v+D;if(n){if(o.containStroke(p,v,C,v,t,i,l)||o.containStroke(C,v,C,E,t,i,l)||o.containStroke(C,E,p,E,t,i,l)||o.containStroke(p,E,p,v,t,i,l))return!0}else u+=d(C,v,C,E,i,l),u+=d(p,E,p,v,i,l);break;case h.Z:if(n){if(o.containStroke(c,f,p,v,t,i,l))return!0}else u+=d(c,f,p,v,i,l);c=p,f=v;break}}return n||g(f,v)||(u+=d(c,f,p,v,i,l)||0),0!==u}function S(e,t,n){return w(e,0,!1,t,n)}function M(e,t,n,i){return w(e,t,!0,n,i)}t.contain=S,t.containStroke=M},40765:function(e,t,n){var i=n(47637),o=1e-8;function r(e,t){return Math.abs(e-t)<o}function a(e,t,n){var o=0,a=e[0];if(!a)return!1;for(var s=1;s<e.length;s++){var l=e[s];o+=i(a[0],a[1],l[0],l[1],t,n),a=l}var u=e[0];return r(a[0],u[0])&&r(a[1],u[1])||(o+=i(a[0],a[1],u[0],u[1],t,n)),0!==o}t.contain=a},25674:function(e,t,n){var i=n(18554),o=i.quadraticProjectPoint;function r(e,t,n,i,r,a,s,l,u){if(0===s)return!1;var c=s;if(u>t+c&&u>i+c&&u>a+c||u<t-c&&u<i-c&&u<a-c||l>e+c&&l>n+c&&l>r+c||l<e-c&&l<n-c&&l<r-c)return!1;var d=o(e,t,n,i,r,a,l,u,null);return d<=c/2}t.containStroke=r},80423:function(e,t,n){var i=n(60479),o=n(8007),r=n(33051),a=r.getContext,s=r.extend,l=r.retrieve2,u=r.retrieve3,c=r.trim,d={},h=0,f=5e3,p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,g="12px sans-serif",v={};function m(e,t){v[e]=t}function y(e,t){t=t||g;var n=e+":"+t;if(d[n])return d[n];for(var i=(e+"").split("\n"),o=0,r=0,a=i.length;r<a;r++)o=Math.max(T(i[r],t).width,o);return h>f&&(h=0,d={}),h++,d[n]=o,o}function x(e,t,n,i,o,r,a,s){return a?b(e,t,n,i,o,r,a,s):_(e,t,n,i,o,r,s)}function _(e,t,n,o,r,a,s){var l=N(e,t,r,a,s),u=y(e,t);r&&(u+=r[1]+r[3]);var c=l.outerHeight,d=w(0,u,n),h=S(0,c,o),f=new i(d,h,u,c);return f.lineHeight=l.lineHeight,f}function b(e,t,n,o,r,a,s,l){var u=D(e,{rich:s,truncate:l,font:t,textAlign:n,textPadding:r,textLineHeight:a}),c=u.outerWidth,d=u.outerHeight,h=w(0,c,n),f=S(0,d,o);return new i(h,f,c,d)}function w(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function S(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function M(e,t,n){var i=t.textPosition,o=t.textDistance,r=n.x,a=n.y;o=o||0;var s=n.height,l=n.width,u=s/2,c="left",d="top";switch(i){case"left":r-=o,a+=u,c="right",d="middle";break;case"right":r+=o+l,a+=u,d="middle";break;case"top":r+=l/2,a-=o,c="center",d="bottom";break;case"bottom":r+=l/2,a+=s+o,c="center";break;case"inside":r+=l/2,a+=u,c="center",d="middle";break;case"insideLeft":r+=o,a+=u,d="middle";break;case"insideRight":r+=l-o,a+=u,c="right",d="middle";break;case"insideTop":r+=l/2,a+=o,c="center";break;case"insideBottom":r+=l/2,a+=s-o,c="center",d="bottom";break;case"insideTopLeft":r+=o,a+=o;break;case"insideTopRight":r+=l-o,a+=o,c="right";break;case"insideBottomLeft":r+=o,a+=s-o,d="bottom";break;case"insideBottomRight":r+=l-o,a+=s-o,c="right",d="bottom";break}return e=e||{},e.x=r,e.y=a,e.textAlign=c,e.textVerticalAlign=d,e}function I(e,t,n){var i={textPosition:e,textDistance:n};return M({},i,t)}function A(e,t,n,i,o){if(!t)return"";var r=(e+"").split("\n");o=k(t,n,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=P(r[a],o);return r.join("\n")}function k(e,t,n,i){i=s({},i),i.font=t;n=l(n,"...");i.maxIterations=l(i.maxIterations,2);var o=i.minChar=l(i.minChar,0);i.cnCharWidth=y("国",t);var r=i.ascCharWidth=y("a",t);i.placeholder=l(i.placeholder,"");for(var a=e=Math.max(0,e-1),u=0;u<o&&a>=r;u++)a-=r;var c=y(n,t);return c>a&&(n="",c=0),a=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=a,i.containerWidth=e,i}function P(e,t){var n=t.containerWidth,i=t.font,o=t.contentWidth;if(!n)return"";var r=y(e,i);if(r<=n)return e;for(var a=0;;a++){if(r<=o||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?C(e,o,t.ascCharWidth,t.cnCharWidth):r>0?Math.floor(e.length*o/r):0;e=e.substr(0,s),r=y(e,i)}return""===e&&(e=t.placeholder),e}function C(e,t,n,i){for(var o=0,r=0,a=e.length;r<a&&o<t;r++){var s=e.charCodeAt(r);o+=0<=s&&s<=127?n:i}return r}function E(e){return y("国",e)}function T(e,t){return v.measureText(e,t)}function N(e,t,n,i,o){null!=e&&(e+="");var r=l(i,E(t)),a=e?e.split("\n"):[],s=a.length*r,u=s,c=!0;if(n&&(u+=n[0]+n[2]),e&&o){c=!1;var d=o.outerHeight,h=o.outerWidth;if(null!=d&&u>d)e="",a=[];else if(null!=h)for(var f=k(h-(n?n[1]+n[3]:0),t,o.ellipsis,{minChar:o.minChar,placeholder:o.placeholder}),p=0,g=a.length;p<g;p++)a[p]=P(a[p],f)}return{lines:a,height:s,outerHeight:u,lineHeight:r,canCacheByTextString:c}}function D(e,t){var n={lines:[],width:0,height:0};if(null!=e&&(e+=""),!e)return n;var i,r=p.lastIndex=0;while(null!=(i=p.exec(e))){var a=i.index;a>r&&O(n,e.substring(r,a)),O(n,i[2],i[1]),r=p.lastIndex}r<e.length&&O(n,e.substring(r,e.length));var s=n.lines,c=0,d=0,h=[],f=t.textPadding,g=t.truncate,v=g&&g.outerWidth,m=g&&g.outerHeight;f&&(null!=v&&(v-=f[1]+f[3]),null!=m&&(m-=f[0]+f[2]));for(var x=0;x<s.length;x++){for(var _=s[x],b=0,w=0,S=0;S<_.tokens.length;S++){var M=_.tokens[S],I=M.styleName&&t.rich[M.styleName]||{},k=M.textPadding=I.textPadding,P=M.font=I.font||t.font,C=M.textHeight=l(I.textHeight,E(P));if(k&&(C+=k[0]+k[2]),M.height=C,M.lineHeight=u(I.textLineHeight,t.textLineHeight,C),M.textAlign=I&&I.textAlign||t.textAlign,M.textVerticalAlign=I&&I.textVerticalAlign||"middle",null!=m&&c+M.lineHeight>m)return{lines:[],width:0,height:0};M.textWidth=y(M.text,P);var T=I.textWidth,N=null==T||"auto"===T;if("string"===typeof T&&"%"===T.charAt(T.length-1))M.percentWidth=T,h.push(M),T=0;else{if(N){T=M.textWidth;var D=I.textBackgroundColor,L=D&&D.image;L&&(L=o.findExistImage(L),o.isImageReady(L)&&(T=Math.max(T,L.width*C/L.height)))}var V=k?k[1]+k[3]:0;T+=V;var R=null!=v?v-w:null;null!=R&&R<T&&(!N||R<V?(M.text="",M.textWidth=T=0):(M.text=A(M.text,R-V,P,g.ellipsis,{minChar:g.minChar}),M.textWidth=y(M.text,P),T=M.textWidth+V))}w+=M.width=T,I&&(b=Math.max(b,M.lineHeight))}_.width=w,_.lineHeight=b,c+=b,d=Math.max(d,w)}n.outerWidth=n.width=l(t.textWidth,d),n.outerHeight=n.height=l(t.textHeight,c),f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(x=0;x<h.length;x++){M=h[x];var B=M.percentWidth;M.width=parseInt(B,10)/100*d}return n}function O(e,t,n){for(var i=""===t,o=t.split("\n"),r=e.lines,a=0;a<o.length;a++){var s=o[a],l={styleName:n,text:s,isLineHolder:!s&&!i};if(a)r.push({tokens:[l]});else{var u=(r[r.length-1]||(r[0]={tokens:[]})).tokens,c=u.length;1===c&&u[0].isLineHolder?u[0]=l:(s||!c||i)&&u.push(l)}}}function L(e){var t=(e.fontSize||e.fontFamily)&&[e.fontStyle,e.fontWeight,(e.fontSize||12)+"px",e.fontFamily||"sans-serif"].join(" ");return t&&c(t)||e.textFont||e.font}v.measureText=function(e,t){var n=a();return n.font=t||g,n.measureText(e)},t.DEFAULT_FONT=g,t.$override=m,t.getWidth=y,t.getBoundingRect=x,t.adjustTextX=w,t.adjustTextY=S,t.calculateTextPosition=M,t.adjustTextPositionOnRect=I,t.truncateText=A,t.getLineHeight=E,t.measureText=T,t.parsePlainText=N,t.parseRichText=D,t.makeFont=L},3266:function(e,t){var n=2*Math.PI;function i(e){return e%=n,e<0&&(e+=n),e}t.normalizeRadian=i},47637:function(e){function t(e,t,n,i,o,r){if(r>t&&r>i||r<t&&r<i)return 0;if(i===t)return 0;var a=i<t?1:-1,s=(r-t)/(i-t);1!==s&&0!==s||(a=i<t?.5:-.5);var l=s*(n-e)+e;return l===o?1/0:l>o?a:0}e.exports=t},8524:function(e,t,n){var i=n(33051),o=n(85823),r=n(60479),a=function(e){for(var t in e=e||{},o.call(this,e),e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},childCount:function(){return this._children.length},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,n=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof a&&e.addChildrenToStorage(t)),n&&n.refresh()},remove:function(e){var t=this.__zr,n=this.__storage,o=this._children,r=i.indexOf(o,e);return r<0||(o.splice(r,1),e.parent=null,n&&(n.delFromStorage(e),e instanceof a&&e.delChildrenFromStorage(n)),t&&t.refresh()),this},removeAll:function(){var e,t,n=this._children,i=this.__storage;for(t=0;t<n.length;t++)e=n[t],i&&(i.delFromStorage(e),e instanceof a&&e.delChildrenFromStorage(i)),e.parent=null;return n.length=0,this},eachChild:function(e,t){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];e.call(t,o,i)}return this},traverse:function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n];e.call(t,i),"group"===i.type&&i.traverse(e,t)}return this},addChildrenToStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.addToStorage(n),n instanceof a&&n.addChildrenToStorage(e)}},delChildrenFromStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.delFromStorage(n),n instanceof a&&n.delChildrenFromStorage(e)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(e){for(var t=null,n=new r(0,0,0,0),i=e||this._children,o=[],a=0;a<i.length;a++){var s=i[a];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(o);u?(n.copy(l),n.applyTransform(u),t=t||n.clone(),t.union(n)):(t=t||l.clone(),t.union(l))}}return t||n}},i.inherits(a,o);var s=a;e.exports=s},60479:function(e,t,n){var i=n(45280),o=n(32892),r=i.applyTransform,a=Math.min,s=Math.max;function l(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}l.prototype={constructor:l,union:function(e){var t=a(e.x,this.x),n=a(e.y,this.y);this.width=s(e.x+e.width,this.x+this.width)-t,this.height=s(e.y+e.height,this.y+this.height)-n,this.x=t,this.y=n},applyTransform:function(){var e=[],t=[],n=[],i=[];return function(o){if(o){e[0]=n[0]=this.x,e[1]=i[1]=this.y,t[0]=i[0]=this.x+this.width,t[1]=n[1]=this.y+this.height,r(e,e,o),r(t,t,o),r(n,n,o),r(i,i,o),this.x=a(e[0],t[0],n[0],i[0]),this.y=a(e[1],t[1],n[1],i[1]);var l=s(e[0],t[0],n[0],i[0]),u=s(e[1],t[1],n[1],i[1]);this.width=l-this.x,this.height=u-this.y}}}(),calculateTransform:function(e){var t=this,n=e.width/t.width,i=e.height/t.height,r=o.create();return o.translate(r,r,[-t.x,-t.y]),o.scale(r,r,[n,i]),o.translate(r,r,[e.x,e.y]),r},intersect:function(e){if(!e)return!1;e instanceof l||(e=l.create(e));var t=this,n=t.x,i=t.x+t.width,o=t.y,r=t.y+t.height,a=e.x,s=e.x+e.width,u=e.y,c=e.y+e.height;return!(i<a||s<n||r<u||c<o)},contain:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},clone:function(){return new l(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},l.create=function(e){return new l(e.x,e.y,e.width,e.height)};var u=l;e.exports=u},49399:function(e,t,n){var i=n(61158),o=function(){this._track=[]};function r(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function a(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}o.prototype={constructor:o,recognize:function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,n){var o=e.touches;if(o){for(var r={points:[],touches:[],target:t,event:e},a=0,s=o.length;a<s;a++){var l=o[a],u=i.clientToLocal(n,l,{});r.points.push([u.zrX,u.zrY]),r.touches.push(l)}this._track.push(r)}},_recognize:function(e){for(var t in s)if(s.hasOwnProperty(t)){var n=s[t](this._track,e);if(n)return n}}};var s={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,o=(e[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var s=r(i)/r(o);!isFinite(s)&&(s=1),t.pinchScale=s;var l=a(i);return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:e[0].target,event:t}}}}},l=o;e.exports=l},92528:function(e){var t=function(){this.head=null,this.tail=null,this._len=0},n=t.prototype;n.insert=function(e){var t=new i(e);return this.insertEntry(t),t},n.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var i=function(e){this.value=e,this.next,this.prev},o=function(e){this._list=new t,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},r=o.prototype;r.put=function(e,t){var n=this._list,o=this._map,r=null;if(null==o[e]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete o[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new i(t),s.key=e,n.insertEntry(s),o[e]=s}return r},r.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.clear=function(){this._list.clear(),this._map={}};var a=o;e.exports=a},14014:function(e,t,n){var i=n(18554),o=n(45280),r=n(3726),a=n(60479),s=n(4990),l=s.devicePixelRatio,u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],d=[],h=[],f=[],p=Math.min,g=Math.max,v=Math.cos,m=Math.sin,y=Math.sqrt,x=Math.abs,_="undefined"!==typeof Float32Array,b=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};b.prototype={constructor:b,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t,n){n=n||0,this._ux=x(n/l/e)||0,this._uy=x(n/l/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(u.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var n=x(e-this._xi)>this._ux||x(t-this._yi)>this._uy||this._len<5;return this.addData(u.L,e,t),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,n,i,o,r){return this.addData(u.C,e,t,n,i,o,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,n,i,o,r):this._ctx.bezierCurveTo(e,t,n,i,o,r)),this._xi=o,this._yi=r,this},quadraticCurveTo:function(e,t,n,i){return this.addData(u.Q,e,t,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,n,i):this._ctx.quadraticCurveTo(e,t,n,i)),this._xi=n,this._yi=i,this},arc:function(e,t,n,i,o,r){return this.addData(u.A,e,t,n,n,i,o-i,0,r?0:1),this._ctx&&this._ctx.arc(e,t,n,i,o,r),this._xi=v(o)*n+e,this._yi=m(o)*n+t,this},arcTo:function(e,t,n,i,o){return this._ctx&&this._ctx.arcTo(e,t,n,i,o),this},rect:function(e,t,n,i){return this._ctx&&this._ctx.rect(e,t,n,i),this.addData(u.R,e,t,n,i),this},closePath:function(){this.addData(u.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;n<e.length;n++)t+=e[n];this._dashSum=t}return this},setLineDashOffset:function(e){return this._dashOffset=e,this},len:function(){return this._len},setData:function(e){var t=e.length;this.data&&this.data.length===t||!_||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},appendPath:function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,o=0;o<t;o++)n+=e[o].len();_&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(o=0;o<t;o++)for(var r=e[o].data,a=0;a<r.length;a++)this.data[i++]=r[a];this._len=i},addData:function(e){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var n=0;n<arguments.length;n++)t[this._len++]=arguments[n];this._prevCmd=e}},_expandData:function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(e,t){var n,i,o=this._dashSum,r=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=e-l,d=t-u,h=y(c*c+d*d),f=l,v=u,m=a.length;c/=h,d/=h,r<0&&(r=o+r),r%=o,f-=r*c,v-=r*d;while(c>0&&f<=e||c<0&&f>=e||0===c&&(d>0&&v<=t||d<0&&v>=t))i=this._dashIdx,n=a[i],f+=c*n,v+=d*n,this._dashIdx=(i+1)%m,c>0&&f<l||c<0&&f>l||d>0&&v<u||d<0&&v>u||s[i%2?"moveTo":"lineTo"](c>=0?p(f,e):g(f,e),d>=0?p(v,t):g(v,t));c=f-e,d=v-t,this._dashOffset=-y(c*c+d*d)},_dashedBezierTo:function(e,t,n,o,r,a){var s,l,u,c,d,h=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._ctx,v=this._xi,m=this._yi,x=i.cubicAt,_=0,b=this._dashIdx,w=p.length,S=0;for(f<0&&(f=h+f),f%=h,s=0;s<1;s+=.1)l=x(v,e,n,r,s+.1)-x(v,e,n,r,s),u=x(m,t,o,a,s+.1)-x(m,t,o,a,s),_+=y(l*l+u*u);for(;b<w;b++)if(S+=p[b],S>f)break;s=(S-f)/_;while(s<=1)c=x(v,e,n,r,s),d=x(m,t,o,a,s),b%2?g.moveTo(c,d):g.lineTo(c,d),s+=p[b]/_,b=(b+1)%w;b%2!==0&&g.lineTo(r,a),l=r-c,u=a-d,this._dashOffset=-y(l*l+u*u)},_dashedQuadraticTo:function(e,t,n,i){var o=n,r=i;n=(n+2*e)/3,i=(i+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,i,o,r)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,_&&(this.data=new Float32Array(e)))},getBoundingRect:function(){c[0]=c[1]=h[0]=h[1]=Number.MAX_VALUE,d[0]=d[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,i=0,s=0,l=0;l<e.length;){var p=e[l++];switch(1===l&&(t=e[l],n=e[l+1],i=t,s=n),p){case u.M:i=e[l++],s=e[l++],t=i,n=s,h[0]=i,h[1]=s,f[0]=i,f[1]=s;break;case u.L:r.fromLine(t,n,e[l],e[l+1],h,f),t=e[l++],n=e[l++];break;case u.C:r.fromCubic(t,n,e[l++],e[l++],e[l++],e[l++],e[l],e[l+1],h,f),t=e[l++],n=e[l++];break;case u.Q:r.fromQuadratic(t,n,e[l++],e[l++],e[l],e[l+1],h,f),t=e[l++],n=e[l++];break;case u.A:var g=e[l++],y=e[l++],x=e[l++],_=e[l++],b=e[l++],w=e[l++]+b;l+=1;var S=1-e[l++];1===l&&(i=v(b)*x+g,s=m(b)*_+y),r.fromArc(g,y,x,_,b,w,S,h,f),t=v(w)*x+g,n=m(w)*_+y;break;case u.R:i=t=e[l++],s=n=e[l++];var M=e[l++],I=e[l++];r.fromLine(i,s,i+M,s+I,h,f);break;case u.Z:t=i,n=s;break}o.min(c,c,h),o.max(d,d,f)}return 0===l&&(c[0]=c[1]=d[0]=d[1]=0),new a(c[0],c[1],d[0]-c[0],d[1]-c[1])},rebuildPath:function(e){for(var t,n,i,o,r,a,s=this.data,l=this._ux,c=this._uy,d=this._len,h=0;h<d;){var f=s[h++];switch(1===h&&(i=s[h],o=s[h+1],t=i,n=o),f){case u.M:t=i=s[h++],n=o=s[h++],e.moveTo(i,o);break;case u.L:r=s[h++],a=s[h++],(x(r-i)>l||x(a-o)>c||h===d-1)&&(e.lineTo(r,a),i=r,o=a);break;case u.C:e.bezierCurveTo(s[h++],s[h++],s[h++],s[h++],s[h++],s[h++]),i=s[h-2],o=s[h-1];break;case u.Q:e.quadraticCurveTo(s[h++],s[h++],s[h++],s[h++]),i=s[h-2],o=s[h-1];break;case u.A:var p=s[h++],g=s[h++],y=s[h++],_=s[h++],b=s[h++],w=s[h++],S=s[h++],M=s[h++],I=y>_?y:_,A=y>_?1:y/_,k=y>_?_/y:1,P=Math.abs(y-_)>.001,C=b+w;P?(e.translate(p,g),e.rotate(S),e.scale(A,k),e.arc(0,0,I,b,C,1-M),e.scale(1/A,1/k),e.rotate(-S),e.translate(-p,-g)):e.arc(p,g,I,b,C,1-M),1===h&&(t=v(b)*y+p,n=m(b)*_+g),i=v(C)*y+p,o=m(C)*_+g;break;case u.R:t=i=s[h],n=o=s[h+1],e.rect(s[h++],s[h++],s[h++],s[h++]);break;case u.Z:e.closePath(),i=t,o=n}}}},b.CMD=u;var w=b;e.exports=w},39351:function(e){function t(){}function n(e,t,n,i){for(var o=0,r=t.length,a=0,s=0;o<r;o++){var l=t[o];if(l.removed){for(u=[],c=s;c<s+l.count;c++)u.push(c);l.indices=u,s+=l.count}else{for(var u=[],c=a;c<a+l.count;c++)u.push(c);l.indices=u,a+=l.count,l.added||(s+=l.count)}}return t}function i(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.prototype={diff:function(e,t,o){o||(o=function(e,t){return e===t}),this.equals=o;var r=this;e=e.slice(),t=t.slice();var a=t.length,s=e.length,l=1,u=a+s,c=[{newPos:-1,components:[]}],d=this.extractCommon(c[0],t,e,0);if(c[0].newPos+1>=a&&d+1>=s){for(var h=[],f=0;f<t.length;f++)h.push(f);return[{indices:h,count:t.length}]}function p(){for(var o=-1*l;o<=l;o+=2){var u,d=c[o-1],h=c[o+1],f=(h?h.newPos:0)-o;d&&(c[o-1]=void 0);var p=d&&d.newPos+1<a,g=h&&0<=f&&f<s;if(p||g){if(!p||g&&d.newPos<h.newPos?(u=i(h),r.pushComponent(u.components,void 0,!0)):(u=d,u.newPos++,r.pushComponent(u.components,!0,void 0)),f=r.extractCommon(u,t,e,o),u.newPos+1>=a&&f+1>=s)return n(r,u.components,t,e);c[o]=u}else c[o]=void 0}l++}while(l<=u){var g=p();if(g)return g}},pushComponent:function(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,i){var o=t.length,r=n.length,a=e.newPos,s=a-i,l=0;while(a+1<o&&s+1<r&&this.equals(t[a+1],n[s+1]))a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},tokenize:function(e){return e.slice()},join:function(e){return e.slice()}};var o=new t;function r(e,t,n){return o.diff(e,t,n)}e.exports=r},3726:function(e,t,n){var i=n(45280),o=n(18554),r=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,c=i.create(),d=i.create(),h=i.create();function f(e,t,n){if(0!==e.length){var i,o=e[0],s=o[0],l=o[0],u=o[1],c=o[1];for(i=1;i<e.length;i++)o=e[i],s=r(s,o[0]),l=a(l,o[0]),u=r(u,o[1]),c=a(c,o[1]);t[0]=s,t[1]=u,n[0]=l,n[1]=c}}function p(e,t,n,i,o,s){o[0]=r(e,n),o[1]=r(t,i),s[0]=a(e,n),s[1]=a(t,i)}var g=[],v=[];function m(e,t,n,i,s,l,u,c,d,h){var f,p=o.cubicExtrema,m=o.cubicAt,y=p(e,n,s,u,g);for(d[0]=1/0,d[1]=1/0,h[0]=-1/0,h[1]=-1/0,f=0;f<y;f++){var x=m(e,n,s,u,g[f]);d[0]=r(x,d[0]),h[0]=a(x,h[0])}for(y=p(t,i,l,c,v),f=0;f<y;f++){var _=m(t,i,l,c,v[f]);d[1]=r(_,d[1]),h[1]=a(_,h[1])}d[0]=r(e,d[0]),h[0]=a(e,h[0]),d[0]=r(u,d[0]),h[0]=a(u,h[0]),d[1]=r(t,d[1]),h[1]=a(t,h[1]),d[1]=r(c,d[1]),h[1]=a(c,h[1])}function y(e,t,n,i,s,l,u,c){var d=o.quadraticExtremum,h=o.quadraticAt,f=a(r(d(e,n,s),1),0),p=a(r(d(t,i,l),1),0),g=h(e,n,s,f),v=h(t,i,l,p);u[0]=r(e,s,g),u[1]=r(t,l,v),c[0]=a(e,s,g),c[1]=a(t,l,v)}function x(e,t,n,o,r,a,f,p,g){var v=i.min,m=i.max,y=Math.abs(r-a);if(y%u<1e-4&&y>1e-4)return p[0]=e-n,p[1]=t-o,g[0]=e+n,void(g[1]=t+o);if(c[0]=l(r)*n+e,c[1]=s(r)*o+t,d[0]=l(a)*n+e,d[1]=s(a)*o+t,v(p,c,d),m(g,c,d),r%=u,r<0&&(r+=u),a%=u,a<0&&(a+=u),r>a&&!f?a+=u:r<a&&f&&(r+=u),f){var x=a;a=r,r=x}for(var _=0;_<a;_+=Math.PI/2)_>r&&(h[0]=l(_)*n+e,h[1]=s(_)*o+t,v(p,h,p),m(g,h,g))}t.fromPoints=f,t.fromLine=p,t.fromCubic=m,t.fromQuadratic=y,t.fromArc=x},18554:function(e,t,n){var i=n(45280),o=i.create,r=i.distSquare,a=Math.pow,s=Math.sqrt,l=1e-8,u=1e-4,c=s(3),d=1/3,h=o(),f=o(),p=o();function g(e){return e>-l&&e<l}function v(e){return e>l||e<-l}function m(e,t,n,i,o){var r=1-o;return r*r*(r*e+3*o*t)+o*o*(o*i+3*r*n)}function y(e,t,n,i,o){var r=1-o;return 3*(((t-e)*r+2*(n-t)*o)*r+(i-n)*o*o)}function x(e,t,n,i,o,r){var l=i+3*(t-n)-e,u=3*(n-2*t+e),h=3*(t-e),f=e-o,p=u*u-3*l*h,v=u*h-9*l*f,m=h*h-3*u*f,y=0;if(g(p)&&g(v))if(g(u))r[0]=0;else{var x=-h/u;x>=0&&x<=1&&(r[y++]=x)}else{var _=v*v-4*p*m;if(g(_)){var b=v/p,w=(x=-u/l+b,-b/2);x>=0&&x<=1&&(r[y++]=x),w>=0&&w<=1&&(r[y++]=w)}else if(_>0){var S=s(_),M=p*u+1.5*l*(-v+S),I=p*u+1.5*l*(-v-S);M=M<0?-a(-M,d):a(M,d),I=I<0?-a(-I,d):a(I,d);x=(-u-(M+I))/(3*l);x>=0&&x<=1&&(r[y++]=x)}else{var A=(2*p*u-3*l*v)/(2*s(p*p*p)),k=Math.acos(A)/3,P=s(p),C=Math.cos(k),E=(x=(-u-2*P*C)/(3*l),w=(-u+P*(C+c*Math.sin(k)))/(3*l),(-u+P*(C-c*Math.sin(k)))/(3*l));x>=0&&x<=1&&(r[y++]=x),w>=0&&w<=1&&(r[y++]=w),E>=0&&E<=1&&(r[y++]=E)}}return y}function _(e,t,n,i,o){var r=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,l=3*t-3*e,u=0;if(g(a)){if(v(r)){var c=-l/r;c>=0&&c<=1&&(o[u++]=c)}}else{var d=r*r-4*a*l;if(g(d))o[0]=-r/(2*a);else if(d>0){var h=s(d),f=(c=(-r+h)/(2*a),(-r-h)/(2*a));c>=0&&c<=1&&(o[u++]=c),f>=0&&f<=1&&(o[u++]=f)}}return u}function b(e,t,n,i,o,r){var a=(t-e)*o+e,s=(n-t)*o+t,l=(i-n)*o+n,u=(s-a)*o+a,c=(l-s)*o+s,d=(c-u)*o+u;r[0]=e,r[1]=a,r[2]=u,r[3]=d,r[4]=d,r[5]=c,r[6]=l,r[7]=i}function w(e,t,n,i,o,a,l,c,d,g,v){var y,x,_,b,w,S=.005,M=1/0;h[0]=d,h[1]=g;for(var I=0;I<1;I+=.05)f[0]=m(e,n,o,l,I),f[1]=m(t,i,a,c,I),b=r(h,f),b<M&&(y=I,M=b);M=1/0;for(var A=0;A<32;A++){if(S<u)break;x=y-S,_=y+S,f[0]=m(e,n,o,l,x),f[1]=m(t,i,a,c,x),b=r(f,h),x>=0&&b<M?(y=x,M=b):(p[0]=m(e,n,o,l,_),p[1]=m(t,i,a,c,_),w=r(p,h),_<=1&&w<M?(y=_,M=w):S*=.5)}return v&&(v[0]=m(e,n,o,l,y),v[1]=m(t,i,a,c,y)),s(M)}function S(e,t,n,i){var o=1-i;return o*(o*e+2*i*t)+i*i*n}function M(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function I(e,t,n,i,o){var r=e-2*t+n,a=2*(t-e),l=e-i,u=0;if(g(r)){if(v(a)){var c=-l/a;c>=0&&c<=1&&(o[u++]=c)}}else{var d=a*a-4*r*l;if(g(d)){c=-a/(2*r);c>=0&&c<=1&&(o[u++]=c)}else if(d>0){var h=s(d),f=(c=(-a+h)/(2*r),(-a-h)/(2*r));c>=0&&c<=1&&(o[u++]=c),f>=0&&f<=1&&(o[u++]=f)}}return u}function A(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function k(e,t,n,i,o){var r=(t-e)*i+e,a=(n-t)*i+t,s=(a-r)*i+r;o[0]=e,o[1]=r,o[2]=s,o[3]=s,o[4]=a,o[5]=n}function P(e,t,n,i,o,a,l,c,d){var g,v=.005,m=1/0;h[0]=l,h[1]=c;for(var y=0;y<1;y+=.05){f[0]=S(e,n,o,y),f[1]=S(t,i,a,y);var x=r(h,f);x<m&&(g=y,m=x)}m=1/0;for(var _=0;_<32;_++){if(v<u)break;var b=g-v,w=g+v;f[0]=S(e,n,o,b),f[1]=S(t,i,a,b);x=r(f,h);if(b>=0&&x<m)g=b,m=x;else{p[0]=S(e,n,o,w),p[1]=S(t,i,a,w);var M=r(p,h);w<=1&&M<m?(g=w,m=M):v*=.5}}return d&&(d[0]=S(e,n,o,g),d[1]=S(t,i,a,g)),s(m)}t.cubicAt=m,t.cubicDerivativeAt=y,t.cubicRootAt=x,t.cubicExtrema=_,t.cubicSubdivide=b,t.cubicProjectPoint=w,t.quadraticAt=S,t.quadraticDerivativeAt=M,t.quadraticRootAt=I,t.quadraticExtremum=A,t.quadraticSubdivide=k,t.quadraticProjectPoint=P},18553:function(e,t,n){var i=n(66387),o=n(46133),r=o.buildTransformer,a="___zrEVENTSAVED",s=[];function l(e,t,n,i,o){return u(s,t,i,o,!0)&&u(e,n,s[0],s[1])}function u(e,t,n,o,r){if(t.getBoundingClientRect&&i.domSupported&&!h(t)){var s=t[a]||(t[a]={}),l=c(t,s),u=d(l,s,r);if(u)return u(e,n,o),!0}return!1}function c(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function d(e,t,n){for(var i=n?"invTrans":"trans",o=t[i],a=t.srcCoords,s=!0,l=[],u=[],c=0;c<4;c++){var d=e[c].getBoundingClientRect(),h=2*c,f=d.left,p=d.top;l.push(f,p),s=s&&a&&f===a[h]&&p===a[h+1],u.push(e[c].offsetLeft,e[c].offsetTop)}return s&&o?o:(t.srcCoords=l,t[i]=n?r(u,l):r(l,u))}function h(e){return"CANVAS"===e.nodeName.toUpperCase()}t.transformLocalCoord=l,t.transformCoordWithViewport=u,t.isCanvasEl=h},66387:function(e){var t={};t="object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"===typeof document&&"undefined"!==typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"===typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:i(navigator.userAgent);var n=t;function i(e){var t={},n={},i=e.match(/Firefox\/([\d.]+)/),o=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),r=e.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(e);return i&&(n.firefox=!0,n.version=i[1]),o&&(n.ie=!0,n.version=o[1]),r&&(n.edge=!0,n.version=r[1]),a&&(n.weChat=!0),{browser:n,os:t,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!==typeof document}}e.exports=n},61158:function(e,t,n){var i=n(41502);t.Dispatcher=i;var o=n(66387),r=n(18553),a=r.isCanvasEl,s=r.transformCoordWithViewport,l="undefined"!==typeof window&&!!window.addEventListener,u=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function d(e,t,n,i){return n=n||{},i||!o.canvasSupported?h(e,t,n):o.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):h(e,t,n),n}function h(e,t,n){if(o.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(a(e)){var l=e.getBoundingClientRect();return n.zrX=i-l.left,void(n.zrY=r-l.top)}if(s(c,e,i,r))return n.zrX=c[0],void(n.zrY=c[1])}n.zrX=n.zrY=0}function f(e){return e||window.event}function p(e,t,n){if(t=f(t),null!=t.zrX)return t;var i=t.type,o=i&&i.indexOf("touch")>=0;if(o){var r="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];r&&d(e,r,t,n)}else d(e,t,t,n),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var a=t.button;return null==t.which&&void 0!==a&&u.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function g(e,t,n,i){l?e.addEventListener(t,n,i):e.attachEvent("on"+t,n)}function v(e,t,n,i){l?e.removeEventListener(t,n,i):e.detachEvent("on"+t,n)}var m=l?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function y(e){return 2===e.which||3===e.which}function x(e){return e.which>1}t.clientToLocal=d,t.getNativeEvent=f,t.normalizeEvent=p,t.addEventListener=g,t.removeEventListener=v,t.stop=m,t.isMiddleOrRightButtonOnMouseUpDown=y,t.notLeftMouse=x},46133:function(e,t){var n=Math.log(2);function i(e,t,o,r,a,s){var l=r+"-"+a,u=e.length;if(s.hasOwnProperty(l))return s[l];if(1===t){var c=Math.round(Math.log((1<<u)-1&~a)/n);return e[o][c]}var d=r|1<<o,h=o+1;while(r&1<<h)h++;for(var f=0,p=0,g=0;p<u;p++){var v=1<<p;v&a||(f+=(g%2?-1:1)*e[o][p]*i(e,t-1,h,d,a|v,s),g++)}return s[l]=f,f}function o(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],o={},r=i(n,8,0,0,0,o);if(0!==r){for(var a=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*i(n,7,0===s?1:0,1<<s,1<<l,o)/r*t[s];return function(e,t,n){var i=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/i,e[1]=(t*a[3]+n*a[4]+a[5])/i}}}t.buildTransformer=o},78038:function(e){var t=2311;function n(){return t++}e.exports=n},48612:function(e,t,n){var i=n(4990),o=i.debugMode,r=function(){};1===o&&(r=console.error);var a=r;e.exports=a},32892:function(e,t){var n="undefined"===typeof Float32Array?Array:Float32Array;function i(){var e=new n(6);return o(e),e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function a(e,t,n){var i=t[0]*n[0]+t[2]*n[1],o=t[1]*n[0]+t[3]*n[1],r=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=o,e[2]=r,e[3]=a,e[4]=s,e[5]=l,e}function s(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function l(e,t,n){var i=t[0],o=t[2],r=t[4],a=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=i*c+a*u,e[1]=-i*u+a*c,e[2]=o*c+s*u,e[3]=-o*u+c*s,e[4]=c*r+u*l,e[5]=c*l-u*r,e}function u(e,t,n){var i=n[0],o=n[1];return e[0]=t[0]*i,e[1]=t[1]*o,e[2]=t[2]*i,e[3]=t[3]*o,e[4]=t[4]*i,e[5]=t[5]*o,e}function c(e,t){var n=t[0],i=t[2],o=t[4],r=t[1],a=t[3],s=t[5],l=n*a-r*i;return l?(l=1/l,e[0]=a*l,e[1]=-r*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*o)*l,e[5]=(r*o-n*s)*l,e):null}function d(e){var t=i();return r(t,e),t}t.create=i,t.identity=o,t.copy=r,t.mul=a,t.translate=s,t.rotate=l,t.scale=u,t.invert=c,t.clone=d},19455:function(e){var t=32,n=7;function i(e){var n=0;while(e>=t)n|=1&e,e>>=1;return e+n}function o(e,t,n,i){var o=t+1;if(o===n)return 1;if(i(e[o++],e[t])<0){while(o<n&&i(e[o],e[o-1])<0)o++;r(e,t,o)}else while(o<n&&i(e[o],e[o-1])>=0)o++;return o-t}function r(e,t,n){n--;while(t<n){var i=e[t];e[t++]=e[n],e[n--]=i}}function a(e,t,n,i,o){for(i===t&&i++;i<n;i++){var r,a=e[i],s=t,l=i;while(s<l)r=s+l>>>1,o(a,e[r])<0?l=r:s=r+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(u>0)e[s+u]=e[s+u-1],u--}e[s]=a}}function s(e,t,n,i,o,r){var a=0,s=0,l=1;if(r(e,t[n+o])>0){s=i-o;while(l<s&&r(e,t[n+o+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{s=o+1;while(l<s&&r(e,t[n+o-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}a++;while(a<l){var c=a+(l-a>>>1);r(e,t[n+c])>0?a=c+1:l=c}return l}function l(e,t,n,i,o,r){var a=0,s=0,l=1;if(r(e,t[n+o])<0){s=o+1;while(l<s&&r(e,t[n+o-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}else{s=i-o;while(l<s&&r(e,t[n+o+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}a++;while(a<l){var c=a+(l-a>>>1);r(e,t[n+c])<0?l=c:a=c+1}return l}function u(e,t){var i,o,r=n,a=0,u=0;a=e.length;var c=[];function d(e,t){i[u]=e,o[u]=t,u+=1}function h(){while(u>1){var e=u-2;if(e>=1&&o[e-1]<=o[e]+o[e+1]||e>=2&&o[e-2]<=o[e]+o[e-1])o[e-1]<o[e+1]&&e--;else if(o[e]>o[e+1])break;p(e)}}function f(){while(u>1){var e=u-2;e>0&&o[e-1]<o[e+1]&&e--,p(e)}}function p(n){var r=i[n],a=o[n],c=i[n+1],d=o[n+1];o[n]=a+d,n===u-3&&(i[n+1]=i[n+2],o[n+1]=o[n+2]),u--;var h=l(e[c],e,r,a,0,t);r+=h,a-=h,0!==a&&(d=s(e[r+a-1],e,c,d,d-1,t),0!==d&&(a<=d?g(r,a,c,d):v(r,a,c,d)))}function g(i,o,a,u){var d=0;for(d=0;d<o;d++)c[d]=e[i+d];var h=0,f=a,p=i;if(e[p++]=e[f++],0!==--u)if(1!==o){var g,v,m,y=r;while(1){g=0,v=0,m=!1;do{if(t(e[f],c[h])<0){if(e[p++]=e[f++],v++,g=0,0===--u){m=!0;break}}else if(e[p++]=c[h++],g++,v=0,1===--o){m=!0;break}}while((g|v)<y);if(m)break;do{if(g=l(e[f],c,h,o,0,t),0!==g){for(d=0;d<g;d++)e[p+d]=c[h+d];if(p+=g,h+=g,o-=g,o<=1){m=!0;break}}if(e[p++]=e[f++],0===--u){m=!0;break}if(v=s(c[h],e,f,u,0,t),0!==v){for(d=0;d<v;d++)e[p+d]=e[f+d];if(p+=v,f+=v,u-=v,0===u){m=!0;break}}if(e[p++]=c[h++],1===--o){m=!0;break}y--}while(g>=n||v>=n);if(m)break;y<0&&(y=0),y+=2}if(r=y,r<1&&(r=1),1===o){for(d=0;d<u;d++)e[p+d]=e[f+d];e[p+u]=c[h]}else{if(0===o)throw new Error;for(d=0;d<o;d++)e[p+d]=c[h+d]}}else{for(d=0;d<u;d++)e[p+d]=e[f+d];e[p+u]=c[h]}else for(d=0;d<o;d++)e[p+d]=c[h+d]}function v(i,o,a,u){var d=0;for(d=0;d<u;d++)c[d]=e[a+d];var h=i+o-1,f=u-1,p=a+u-1,g=0,v=0;if(e[p--]=e[h--],0!==--o)if(1!==u){var m=r;while(1){var y=0,x=0,_=!1;do{if(t(c[f],e[h])<0){if(e[p--]=e[h--],y++,x=0,0===--o){_=!0;break}}else if(e[p--]=c[f--],x++,y=0,1===--u){_=!0;break}}while((y|x)<m);if(_)break;do{if(y=o-l(c[f],e,i,o,o-1,t),0!==y){for(p-=y,h-=y,o-=y,v=p+1,g=h+1,d=y-1;d>=0;d--)e[v+d]=e[g+d];if(0===o){_=!0;break}}if(e[p--]=c[f--],1===--u){_=!0;break}if(x=u-s(e[h],c,0,u,u-1,t),0!==x){for(p-=x,f-=x,u-=x,v=p+1,g=f+1,d=0;d<x;d++)e[v+d]=c[g+d];if(u<=1){_=!0;break}}if(e[p--]=e[h--],0===--o){_=!0;break}m--}while(y>=n||x>=n);if(_)break;m<0&&(m=0),m+=2}if(r=m,r<1&&(r=1),1===u){for(p-=o,h-=o,v=p+1,g=h+1,d=o-1;d>=0;d--)e[v+d]=e[g+d];e[p]=c[f]}else{if(0===u)throw new Error;for(g=p-(u-1),d=0;d<u;d++)e[g+d]=c[d]}}else{for(p-=o,h-=o,v=p+1,g=h+1,d=o-1;d>=0;d--)e[v+d]=e[g+d];e[p]=c[f]}else for(g=p-(u-1),d=0;d<u;d++)e[g+d]=c[d]}i=[],o=[],this.mergeRuns=h,this.forceMergeRuns=f,this.pushRun=d}function c(e,n,r,s){r||(r=0),s||(s=e.length);var l=s-r;if(!(l<2)){var c=0;if(l<t)return c=o(e,r,s,n),void a(e,r,s,r+c,n);var d=new u(e,n),h=i(l);do{if(c=o(e,r,s,n),c<h){var f=l;f>h&&(f=h),a(e,r,r+f,r+c,n),c=f}d.pushRun(r,c),d.mergeRuns(),l-=c,r+=c}while(0!==l);d.forceMergeRuns()}}e.exports=c},33051:function(e,t){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},i={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},o=Object.prototype.toString,r=Array.prototype,a=r.forEach,s=r.filter,l=r.slice,u=r.map,c=r.reduce,d={};function h(e,t){"createCanvas"===e&&(y=null),d[e]=t}function f(e){if(null==e||"object"!==typeof e)return e;var t=e,r=o.call(e);if("[object Array]"===r){if(!q(e)){t=[];for(var a=0,s=e.length;a<s;a++)t[a]=f(e[a])}}else if(i[r]){if(!q(e)){var l=e.constructor;if(e.constructor.from)t=l.from(e);else{t=new l(e.length);for(a=0,s=e.length;a<s;a++)t[a]=f(e[a])}}}else if(!n[r]&&!q(e)&&!B(e))for(var u in t={},e)e.hasOwnProperty(u)&&(t[u]=f(e[u]));return t}function p(e,t,n){if(!L(t)||!L(e))return n?f(t):e;for(var i in t)if(t.hasOwnProperty(i)){var o=e[i],r=t[i];!L(r)||!L(o)||N(r)||N(o)||B(r)||B(o)||V(r)||V(o)||q(r)||q(o)?!n&&i in e||(e[i]=f(t[i],!0)):p(o,r,n)}return e}function g(e,t){for(var n=e[0],i=1,o=e.length;i<o;i++)n=p(n,e[i],t);return n}function v(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function m(e,t,n){for(var i in t)t.hasOwnProperty(i)&&(n?null!=t[i]:null==e[i])&&(e[i]=t[i]);return e}var y,x=function(){return d.createCanvas()};function _(){return y||(y=x().getContext("2d")),y}function b(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function w(e,t){var n=e.prototype;function i(){}for(var o in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(o)&&(e.prototype[o]=n[o]);e.prototype.constructor=e,e.superClass=t}function S(e,t,n){e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,m(e,t,n)}function M(e){if(e)return"string"!==typeof e&&"number"===typeof e.length}function I(e,t,n){if(e&&t)if(e.forEach&&e.forEach===a)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e);else for(var r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function A(e,t,n){if(e&&t){if(e.map&&e.map===u)return e.map(t,n);for(var i=[],o=0,r=e.length;o<r;o++)i.push(t.call(n,e[o],o,e));return i}}function k(e,t,n,i){if(e&&t){if(e.reduce&&e.reduce===c)return e.reduce(t,n,i);for(var o=0,r=e.length;o<r;o++)n=t.call(i,n,e[o],o,e);return n}}function P(e,t,n){if(e&&t){if(e.filter&&e.filter===s)return e.filter(t,n);for(var i=[],o=0,r=e.length;o<r;o++)t.call(n,e[o],o,e)&&i.push(e[o]);return i}}function C(e,t,n){if(e&&t)for(var i=0,o=e.length;i<o;i++)if(t.call(n,e[i],i,e))return e[i]}function E(e,t){var n=l.call(arguments,2);return function(){return e.apply(t,n.concat(l.call(arguments)))}}function T(e){var t=l.call(arguments,1);return function(){return e.apply(this,t.concat(l.call(arguments)))}}function N(e){return"[object Array]"===o.call(e)}function D(e){return"function"===typeof e}function O(e){return"[object String]"===o.call(e)}function L(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function V(e){return!!n[o.call(e)]}function R(e){return!!i[o.call(e)]}function B(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function z(e){return e!==e}function W(e){for(var t=0,n=arguments.length;t<n;t++)if(null!=arguments[t])return arguments[t]}function F(e,t){return null!=e?e:t}function U(e,t,n){return null!=e?e:null!=t?t:n}function $(){return Function.call.apply(l,arguments)}function H(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function j(e,t){if(!e)throw new Error(t)}function G(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}d.createCanvas=function(){return document.createElement("canvas")};var Y="__ec_primitive__";function Z(e){e[Y]=!0}function q(e){return e[Y]}function X(e){var t=N(e);this.data={};var n=this;function i(e,i){t?n.set(e,i):n.set(i,e)}e instanceof X?e.each(i):e&&I(e,i)}function J(e){return new X(e)}function K(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var o=e.length;for(i=0;i<t.length;i++)n[i+o]=t[i];return n}function Q(){}X.prototype={constructor:X,get:function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},set:function(e,t){return this.data[e]=t},each:function(e,t){for(var n in void 0!==t&&(e=E(e,t)),this.data)this.data.hasOwnProperty(n)&&e(this.data[n],n)},removeKey:function(e){delete this.data[e]}},t.$override=h,t.clone=f,t.merge=p,t.mergeAll=g,t.extend=v,t.defaults=m,t.createCanvas=x,t.getContext=_,t.indexOf=b,t.inherits=w,t.mixin=S,t.isArrayLike=M,t.each=I,t.map=A,t.reduce=k,t.filter=P,t.find=C,t.bind=E,t.curry=T,t.isArray=N,t.isFunction=D,t.isString=O,t.isObject=L,t.isBuiltInObject=V,t.isTypedArray=R,t.isDom=B,t.eqNaN=z,t.retrieve=W,t.retrieve2=F,t.retrieve3=U,t.slice=$,t.normalizeCssArray=H,t.assert=j,t.trim=G,t.setAsPrimitive=Z,t.isPrimitive=q,t.createHashMap=J,t.concatArray=K,t.noop=Q},45280:function(e,t){var n="undefined"===typeof Float32Array?Array:Float32Array;function i(e,t){var i=new n(2);return null==e&&(e=0),null==t&&(t=0),i[0]=e,i[1]=t,i}function o(e,t){return e[0]=t[0],e[1]=t[1],e}function r(e){var t=new n(2);return t[0]=e[0],t[1]=e[1],t}function a(e,t,n){return e[0]=t,e[1]=n,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function l(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function c(e){return Math.sqrt(h(e))}var d=c;function h(e){return e[0]*e[0]+e[1]*e[1]}var f=h;function p(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function g(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function v(e,t){return e[0]*t[0]+e[1]*t[1]}function m(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function y(e,t){var n=c(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function x(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var _=x;function b(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var w=b;function S(e,t){return e[0]=-t[0],e[1]=-t[1],e}function M(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function I(e,t,n){var i=t[0],o=t[1];return e[0]=n[0]*i+n[2]*o+n[4],e[1]=n[1]*i+n[3]*o+n[5],e}function A(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function k(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}t.create=i,t.copy=o,t.clone=r,t.set=a,t.add=s,t.scaleAndAdd=l,t.sub=u,t.len=c,t.length=d,t.lenSquare=h,t.lengthSquare=f,t.mul=p,t.div=g,t.dot=v,t.scale=m,t.normalize=y,t.distance=x,t.dist=_,t.distanceSquare=b,t.distSquare=w,t.negate=S,t.lerp=M,t.applyTransform=I,t.min=A,t.max=k},85546:function(e,t,n){var i=n(61158),o=i.addEventListener,r=i.removeEventListener,a=i.normalizeEvent,s=i.getNativeEvent,l=n(33051),u=n(41502),c=n(66387),d=300,h=c.domSupported,f=function(){var e=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=l.map(e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:i}}(),p={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function g(e){return"mousewheel"===e&&c.browser.firefox?"DOMMouseScroll":e}function v(e){var t=e.pointerType;return"pen"===t||"touch"===t}function m(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function y(e){e&&(e.zrByTouch=!0)}function x(e,t){return a(e.dom,new b(e,t),!0)}function _(e,t){var n=t,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return i}function b(e,t){this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}var w=b.prototype;w.stopPropagation=w.stopImmediatePropagation=w.preventDefault=l.noop;var S={mousedown:function(e){e=a(this.dom,e),this._mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=a(this.dom,e);var t=this._mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||C(this,!0),this.trigger("mousemove",e)},mouseup:function(e){e=a(this.dom,e),C(this,!1),this.trigger("mouseup",e)},mouseout:function(e){e=a(this.dom,e),this._pointerCapturing&&(e.zrEventControl="no_globalout");var t=e.toElement||e.relatedTarget;e.zrIsToLocalDOM=_(this,t),this.trigger("mouseout",e)},touchstart:function(e){e=a(this.dom,e),y(e),this._lastTouchMoment=new Date,this.handler.processGesture(e,"start"),S.mousemove.call(this,e),S.mousedown.call(this,e)},touchmove:function(e){e=a(this.dom,e),y(e),this.handler.processGesture(e,"change"),S.mousemove.call(this,e)},touchend:function(e){e=a(this.dom,e),y(e),this.handler.processGesture(e,"end"),S.mouseup.call(this,e),+new Date-this._lastTouchMoment<d&&S.click.call(this,e)},pointerdown:function(e){S.mousedown.call(this,e)},pointermove:function(e){v(e)||S.mousemove.call(this,e)},pointerup:function(e){S.mouseup.call(this,e)},pointerout:function(e){v(e)||S.mouseout.call(this,e)}};l.each(["click","mousewheel","dblclick","contextmenu"],(function(e){S[e]=function(t){t=a(this.dom,t),this.trigger(e,t)}}));var M={pointermove:function(e){v(e)||M.mousemove.call(this,e)},pointerup:function(e){M.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this._pointerCapturing;C(this,!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function I(e,t){var n=t.domHandlers;c.pointerEventsSupported?l.each(f.pointer,(function(i){k(t,i,(function(t){n[i].call(e,t)}))})):(c.touchEventsSupported&&l.each(f.touch,(function(i){k(t,i,(function(o){n[i].call(e,o),m(t)}))})),l.each(f.mouse,(function(i){k(t,i,(function(o){o=s(o),t.touching||n[i].call(e,o)}))})))}function A(e,t){function n(n){function i(i){i=s(i),_(e,i.target)||(i=x(e,i),t.domHandlers[n].call(e,i))}k(t,n,i,{capture:!0})}c.pointerEventsSupported?l.each(p.pointer,n):c.touchEventsSupported||l.each(p.mouse,n)}function k(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,o(e.domTarget,g(t),n,i)}function P(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&r(e.domTarget,g(n),t[n],e.listenerOpts[n]);e.mounted={}}function C(e,t){if(e._mayPointerCapture=null,h&&e._pointerCapturing^t){e._pointerCapturing=t;var n=e._globalHandlerScope;t?A(e,n):P(n)}}function E(e,t){this.domTarget=e,this.domHandlers=t,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function T(e,t){u.call(this),this.dom=e,this.painterRoot=t,this._localHandlerScope=new E(e,S),h&&(this._globalHandlerScope=new E(document,M)),this._pointerCapturing=!1,this._mayPointerCapture=null,I(this,this._localHandlerScope)}var N=T.prototype;N.dispose=function(){P(this._localHandlerScope),h&&P(this._globalHandlerScope)},N.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},l.mixin(T,u);var D=T;e.exports=D},52776:function(e,t,n){var i=n(10712),o=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,n=0;n<t.length;n++)e=e||t[n].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},buildPath:function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},afterBrush:function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),i.prototype.getBoundingRect.call(this)}});e.exports=o},7719:function(e,t,n){var i=n(33051),o=n(40342),r=n(85823),a=n(41406);function s(e){for(var t in e=e||{},r.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new o(e.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return i.contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?r.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new o(e,this),this.dirty(!1),this},calculateTextPosition:null},i.inherits(s,r),i.mixin(s,a);var l=s;e.exports=l},31797:function(e){var t=function(e){this.colorStops=e||[]};t.prototype={constructor:t,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};var n=t;e.exports=n},44535:function(e,t,n){var i=n(7719),o=n(60479),r=n(33051),a=n(8007);function s(e){i.call(this,e)}s.prototype={constructor:s,type:"image",brush:function(e,t){var n=this.style,i=n.image;n.bind(e,this,t);var o=this._image=a.createOrUpdateImage(i,this._image,this,this.onload);if(o&&a.isImageReady(o)){var r=n.x||0,s=n.y||0,l=n.width,u=n.height,c=o.width/o.height;if(null==l&&null!=u?l=u*c:null==u&&null!=l?u=l/c:null==l&&null==u&&(l=o.width,u=o.height),this.setTransform(e),n.sWidth&&n.sHeight){var d=n.sx||0,h=n.sy||0;e.drawImage(o,d,h,n.sWidth,n.sHeight,r,s,l,u)}else if(n.sx&&n.sy){d=n.sx,h=n.sy;var f=l-d,p=u-h;e.drawImage(o,d,h,f,p,r,s,l,u)}else e.drawImage(o,r,s,l,u);null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new o(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},r.inherits(s,i);var l=s;e.exports=l},91754:function(e,t,n){var i=n(33051),o=i.inherits,r=n(7719),a=n(60479);function s(e){r.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}s.prototype.incremental=!0,s.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},s.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},s.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},s.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},s.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},s.prototype.brush=function(e,t){for(var n=this._cursor;n<this._displayables.length;n++){var i=this._displayables[n];i.beforeBrush&&i.beforeBrush(e),i.brush(e,n===this._cursor?null:this._displayables[n-1]),i.afterBrush&&i.afterBrush(e)}this._cursor=n;for(n=0;n<this._temporaryDisplayables.length;n++){i=this._temporaryDisplayables[n];i.beforeBrush&&i.beforeBrush(e),i.brush(e,0===n?null:this._temporaryDisplayables[n-1]),i.afterBrush&&i.afterBrush(e)}this._temporaryDisplayables=[],this.notClear=!0};var l=[];s.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new a(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(l)),e.union(i)}this._rect=e}return this._rect},s.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var r=this._displayables[o];if(r.contain(e,t))return!0}return!1},o(s,r);var u=s;e.exports=u},74438:function(e,t,n){var i=n(33051),o=n(31797),r=function(e,t,n,i,r,a){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=a||!1,o.call(this,r)};r.prototype={constructor:r},i.inherits(r,o);var a=r;e.exports=a},10712:function(e,t,n){var i=n(7719),o=n(33051),r=n(14014),a=n(85365),s=n(31870),l=s.prototype.getCanvasPattern,u=Math.abs,c=new r(!0);function d(e){i.call(this,e),this.path=null}d.prototype={constructor:d,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(e,t){var n,i=this.style,o=this.path||c,r=i.hasStroke(),a=i.hasFill(),s=i.fill,u=i.stroke,d=a&&!!s.colorStops,h=r&&!!u.colorStops,f=a&&!!s.image,p=r&&!!u.image;(i.bind(e,this,t),this.setTransform(e),this.__dirty)&&(d&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(e,s,n)),h&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(e,u,n)));d?e.fillStyle=this._fillGradient:f&&(e.fillStyle=l.call(s,e)),h?e.strokeStyle=this._strokeGradient:p&&(e.strokeStyle=l.call(u,e));var g=i.lineDash,v=i.lineDashOffset,m=!!e.setLineDash,y=this.getGlobalScale();if(o.setScale(y[0],y[1],this.segmentIgnoreThreshold),this.__dirtyPath||g&&!m&&r?(o.beginPath(e),g&&!m&&(o.setLineDash(g),o.setLineDashOffset(v)),this.buildPath(o,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),a)if(null!=i.fillOpacity){var x=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,o.fill(e),e.globalAlpha=x}else o.fill(e);if(g&&m&&(e.setLineDash(g),e.lineDashOffset=v),r)if(null!=i.strokeOpacity){x=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,o.stroke(e),e.globalAlpha=x}else o.stroke(e);g&&m&&e.setLineDash([]),null!=i.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))},buildPath:function(e,t,n){},createPathProxy:function(){this.path=new r},getBoundingRect:function(){var e=this._rect,t=this.style,n=!e;if(n){var i=this.path;i||(i=this.path=new r),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),e=i.getBoundingRect()}if(this._rect=e,t.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.lineWidth,s=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),s>1e-10&&(o.width+=a/s,o.height+=a/s,o.x-=a/s/2,o.y-=a/s/2)}return o}return e},contain:function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),o=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var r=this.path.data;if(o.hasStroke()){var s=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(o.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),a.containStroke(r,s/l,e,t)))return!0}if(o.hasFill())return a.contain(r,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):i.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var n=this.shape;if(n){if(o.isObject(e))for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);else n[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&u(e[0]-1)>1e-10&&u(e[3]-1)>1e-10?Math.sqrt(u(e[0]*e[3]-e[2]*e[1])):1}},d.extend=function(e){var t=function(t){d.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var n=e.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var o in n)!i.hasOwnProperty(o)&&n.hasOwnProperty(o)&&(i[o]=n[o])}e.init&&e.init.call(this,t)};for(var n in o.inherits(t,d),e)"style"!==n&&"shape"!==n&&(t.prototype[n]=e[n]);return t},o.inherits(d,i);var h=d;e.exports=h},31870:function(e){var t=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};t.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var n=t;e.exports=n},36369:function(e,t,n){var i=n(33051),o=n(31797),r=function(e,t,n,i,r){this.x=null==e?.5:e,this.y=null==t?.5:t,this.r=null==n?.5:n,this.type="radial",this.global=r||!1,o.call(this,i)};r.prototype={constructor:r},i.inherits(r,o);var a=r;e.exports=a},40342:function(e,t,n){var i=n(61260),o=n(71131),r=o.ContextCachedBy,a=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],s=function(e){this.extendFrom(e,!1)};function l(e,t,n){var i=null==t.x?0:t.x,o=null==t.x2?1:t.x2,r=null==t.y?0:t.y,a=null==t.y2?0:t.y2;t.global||(i=i*n.width+n.x,o=o*n.width+n.x,r=r*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,o=isNaN(o)?1:o,r=isNaN(r)?0:r,a=isNaN(a)?0:a;var s=e.createLinearGradient(i,r,o,a);return s}function u(e,t,n){var i=n.width,o=n.height,r=Math.min(i,o),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(a=a*i+n.x,s=s*o+n.y,l*=r);var u=e.createRadialGradient(a,s,0,a,s,l);return u}s.prototype={constructor:s,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,t,n){var o=this,s=n&&n.style,l=!s||e.__attrCachedBy!==r.STYLE_BIND;e.__attrCachedBy=r.STYLE_BIND;for(var u=0;u<a.length;u++){var c=a[u],d=c[0];(l||o[d]!==s[d])&&(e[d]=i(e,d,o[d]||c[1]))}if((l||o.fill!==s.fill)&&(e.fillStyle=o.fill),(l||o.stroke!==s.stroke)&&(e.strokeStyle=o.stroke),(l||o.opacity!==s.opacity)&&(e.globalAlpha=null==o.opacity?1:o.opacity),(l||o.blend!==s.blend)&&(e.globalCompositeOperation=o.blend||"source-over"),this.hasStroke()){var h=o.lineWidth;e.lineWidth=h/(this.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1)}},hasFill:function(){var e=this.fill;return null!=e&&"none"!==e},hasStroke:function(){var e=this.stroke;return null!=e&&"none"!==e&&this.lineWidth>0},extendFrom:function(e,t){if(e)for(var n in e)!e.hasOwnProperty(n)||!0!==t&&(!1===t?this.hasOwnProperty(n):null==e[n])||(this[n]=e[n])},set:function(e,t){"string"===typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,n){for(var i="radial"===t.type?u:l,o=i(e,t,n),r=t.colorStops,a=0;a<r.length;a++)o.addColorStop(r[a].offset,r[a].color);return o}};for(var c=s.prototype,d=0;d<a.length;d++){var h=a[d];h[0]in c||(c[h[0]]=h[1])}s.getGradient=c.getGradient;var f=s;e.exports=f},96498:function(e,t,n){var i=n(7719),o=n(33051),r=n(80423),a=n(98886),s=n(71131),l=s.ContextCachedBy,u=function(e){i.call(this,e)};u.prototype={constructor:u,type:"text",brush:function(e,t){var n=this.style;this.__dirty&&a.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;null!=i&&(i+=""),a.needDrawText(i,n)?(this.setTransform(e),a.renderText(this,e,i,n,null,t),this.restoreTransform(e)):e.__attrCachedBy=l.NONE},getBoundingRect:function(){var e=this.style;if(this.__dirty&&a.normalizeTextStyle(e,!0),!this._rect){var t=e.text;null!=t?t+="":t="";var n=r.getBoundingRect(e.text+"",e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich);if(n.x+=e.x||0,n.y+=e.y||0,a.getStroke(e.textStroke,e.textStrokeWidth)){var i=e.textStrokeWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},o.inherits(u,i);var c=u;e.exports=c},71131:function(e,t){var n={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},i=9;t.ContextCachedBy=n,t.WILL_BE_RESTORED=i},60873:function(e,t,n){var i=n(66387),o=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function r(e){return i.browser.ie&&i.browser.version>=11?function(){var t,n=this.__clipPaths,i=this.style;if(n)for(var r=0;r<n.length;r++){var a=n[r],s=a&&a.shape,l=a&&a.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var u=0;u<o.length;u++)o[u][2]=i[o[u][0]],i[o[u][0]]=o[u][1];t=!0;break}}if(e.apply(this,arguments),t)for(u=0;u<o.length;u++)i[o[u][0]]=o[u][2]}:e}e.exports=r},61260:function(e){var t={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function n(e,n,i){return t.hasOwnProperty(n)?i*e.dpr:i}e.exports=n},8007:function(e,t,n){var i=n(92528),o=new i(50);function r(e){if("string"===typeof e){var t=o.get(e);return t&&t.image}return e}function a(e,t,n,i,r){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var a=o.get(e),u={hostEl:n,cb:i,cbPayload:r};return a?(t=a.image,!l(t)&&a.pending.push(u)):(t=new Image,t.onload=t.onerror=s,o.put(e,t.__cachedImgObj={image:t,pending:[u]}),t.src=t.__zrImageSrc=e),t}return e}return t}function s(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function l(e){return e&&e.width&&e.height}t.findExistImage=r,t.createOrUpdateImage=a,t.isImageReady=l},79209:function(e,t,n){var i=n(31847),o=n(96005);function r(e,t,n){var r=t.points,a=t.smooth;if(r&&r.length>=2){if(a&&"spline"!==a){var s=o(r,a,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var l=r.length,u=0;u<(n?l:l-1);u++){var c=s[2*u],d=s[2*u+1],h=r[(u+1)%l];e.bezierCurveTo(c[0],c[1],d[0],d[1],h[0],h[1])}}else{"spline"===a&&(r=i(r,n)),e.moveTo(r[0][0],r[0][1]);u=1;for(var f=r.length;u<f;u++)e.lineTo(r[u][0],r[u][1])}n&&e.closePath()}}t.buildPath=r},48988:function(e,t){function n(e,t){var n,i,o,r,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof d?n=i=o=r=d:d instanceof Array?1===d.length?n=i=o=r=d[0]:2===d.length?(n=o=d[0],i=r=d[1]):3===d.length?(n=d[0],i=r=d[1],o=d[2]):(n=d[0],i=d[1],o=d[2],r=d[3]):n=i=o=r=0,n+i>u&&(a=n+i,n*=u/a,i*=u/a),o+r>u&&(a=o+r,o*=u/a,r*=u/a),i+o>c&&(a=i+o,i*=c/a,o*=c/a),n+r>c&&(a=n+r,n*=c/a,r*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-i,l),0!==i&&e.arc(s+u-i,l+i,i,-Math.PI/2,0),e.lineTo(s+u,l+c-o),0!==o&&e.arc(s+u-o,l+c-o,o,0,Math.PI/2),e.lineTo(s+r,l+c),0!==r&&e.arc(s+r,l+c-r,r,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}t.buildPath=n},96005:function(e,t,n){var i=n(45280),o=i.min,r=i.max,a=i.scale,s=i.distance,l=i.add,u=i.clone,c=i.sub;function d(e,t,n,i){var d,h,f,p,g=[],v=[],m=[],y=[];if(i){f=[1/0,1/0],p=[-1/0,-1/0];for(var x=0,_=e.length;x<_;x++)o(f,f,e[x]),r(p,p,e[x]);o(f,f,i[0]),r(p,p,i[1])}for(x=0,_=e.length;x<_;x++){var b=e[x];if(n)d=e[x?x-1:_-1],h=e[(x+1)%_];else{if(0===x||x===_-1){g.push(u(e[x]));continue}d=e[x-1],h=e[x+1]}c(v,h,d),a(v,v,t);var w=s(b,d),S=s(b,h),M=w+S;0!==M&&(w/=M,S/=M),a(m,v,-w),a(y,v,S);var I=l([],b,m),A=l([],b,y);i&&(r(I,I,f),o(I,I,p),r(A,A,f),o(A,A,p)),g.push(I),g.push(A)}return n&&g.push(g.shift()),g}e.exports=d},31847:function(e,t,n){var i=n(45280),o=i.distance;function r(e,t,n,i,o,r,a){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*a+(-3*(t-n)-2*s-l)*r+s*o+t}function a(e,t){for(var n=e.length,i=[],a=0,s=1;s<n;s++)a+=o(e[s-1],e[s]);var l=a/2;l=l<n?n:l;for(s=0;s<l;s++){var u,c,d,h=s/(l-1)*(t?n:n-1),f=Math.floor(h),p=h-f,g=e[f%n];t?(u=e[(f-1+n)%n],c=e[(f+1)%n],d=e[(f+2)%n]):(u=e[0===f?f:f-1],c=e[f>n-2?n-1:f+1],d=e[f>n-3?n-1:f+2]);var v=p*p,m=p*v;i.push([r(u[0],g[0],c[0],d[0],p,v,m),r(u[1],g[1],c[1],d[1],p,v,m)])}return i}e.exports=a},24111:function(e,t){var n=Math.round;function i(e,t,i){if(t){var o=t.x1,a=t.x2,s=t.y1,l=t.y2;e.x1=o,e.x2=a,e.y1=s,e.y2=l;var u=i&&i.lineWidth;u&&(n(2*o)===n(2*a)&&(e.x1=e.x2=r(o,u,!0)),n(2*s)===n(2*l)&&(e.y1=e.y2=r(s,u,!0)))}}function o(e,t,n){if(t){var i=t.x,o=t.y,a=t.width,s=t.height;e.x=i,e.y=o,e.width=a,e.height=s;var l=n&&n.lineWidth;l&&(e.x=r(i,l,!0),e.y=r(o,l,!0),e.width=Math.max(r(i+a,l,!1)-e.x,0===a?0:1),e.height=Math.max(r(o+s,l,!1)-e.y,0===s?0:1))}}function r(e,t,i){if(!t)return e;var o=n(2*e);return(o+n(t))%2===0?o/2:(o+(i?1:-1))/2}t.subPixelOptimizeLine=i,t.subPixelOptimizeRect=o,t.subPixelOptimize=r},98886:function(e,t,n){var i=n(33051),o=i.retrieve2,r=i.retrieve3,a=i.each,s=i.normalizeCssArray,l=i.isString,u=i.isObject,c=n(80423),d=n(48988),h=n(8007),f=n(61260),p=n(71131),g=p.ContextCachedBy,v=p.WILL_BE_RESTORED,m=c.DEFAULT_FONT,y={left:1,right:1,center:1},x={top:1,bottom:1,middle:1},_=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},w={};function S(e){return M(e),a(e.rich,M),e}function M(e){if(e){e.font=c.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||y[t]?t:"left";var n=e.textVerticalAlign||e.textBaseline;"center"===n&&(n="middle"),e.textVerticalAlign=null==n||x[n]?n:"top";var i=e.textPadding;i&&(e.textPadding=s(e.textPadding))}}function I(e,t,n,i,o,r){i.rich?k(e,t,n,i,o,r):A(e,t,n,i,o,r)}function A(e,t,n,i,o,r){"use strict";var a,s=T(i),l=!1,u=t.__attrCachedBy===g.PLAIN_TEXT;r!==v?(r&&(a=r.style,l=!s&&u&&a),t.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):u&&(t.__attrCachedBy=g.NONE);var d=i.font||m;l&&d===(a.font||m)||(t.font=d);var h=e.__computedFont;e.__styleFont!==d&&(e.__styleFont=d,h=e.__computedFont=t.font);var p=i.textPadding,y=i.textLineHeight,x=e.__textCotentBlock;x&&!e.__dirtyText||(x=e.__textCotentBlock=c.parsePlainText(n,h,p,y,i.truncate));var b=x.outerHeight,S=x.lines,M=x.lineHeight,I=O(w,e,i,o),A=I.baseX,k=I.baseY,P=I.textAlign||"left",E=I.textVerticalAlign;C(t,i,o,A,k);var D=c.adjustTextY(k,b,E),L=A,B=D;if(s||p){var W=c.getWidth(n,h),F=W;p&&(F+=p[1]+p[3]);var U=c.adjustTextX(A,F,P);s&&N(e,t,i,U,D,F,b),p&&(L=z(A,P,p),B+=p[0])}t.textAlign=P,t.textBaseline="middle",t.globalAlpha=i.opacity||1;for(var $=0;$<_.length;$++){var H=_[$],j=H[0],G=H[1],Y=i[j];l&&Y===a[j]||(t[G]=f(t,G,Y||H[2]))}B+=M/2;var Z=i.textStrokeWidth,q=l?a.textStrokeWidth:null,X=!l||Z!==q,J=!l||X||i.textStroke!==a.textStroke,K=V(i.textStroke,Z),Q=R(i.textFill);if(K&&(X&&(t.lineWidth=Z),J&&(t.strokeStyle=K)),Q&&(l&&i.textFill===a.textFill||(t.fillStyle=Q)),1===S.length)K&&t.strokeText(S[0],L,B),Q&&t.fillText(S[0],L,B);else for($=0;$<S.length;$++)K&&t.strokeText(S[$],L,B),Q&&t.fillText(S[$],L,B),B+=M}function k(e,t,n,i,o,r){r!==v&&(t.__attrCachedBy=g.NONE);var a=e.__textCotentBlock;a&&!e.__dirtyText||(a=e.__textCotentBlock=c.parseRichText(n,i)),P(e,t,a,i,o)}function P(e,t,n,i,o){var r=n.width,a=n.outerWidth,s=n.outerHeight,l=i.textPadding,u=O(w,e,i,o),d=u.baseX,h=u.baseY,f=u.textAlign,p=u.textVerticalAlign;C(t,i,o,d,h);var g=c.adjustTextX(d,a,f),v=c.adjustTextY(h,s,p),m=g,y=v;l&&(m+=l[3],y+=l[0]);var x=m+r;T(i)&&N(e,t,i,g,v,a,s);for(var _=0;_<n.lines.length;_++){var b,S=n.lines[_],M=S.tokens,I=M.length,A=S.lineHeight,k=S.width,P=0,D=m,L=x,V=I-1;while(P<I&&(b=M[P],!b.textAlign||"left"===b.textAlign))E(e,t,b,i,A,y,D,"left"),k-=b.width,D+=b.width,P++;while(V>=0&&(b=M[V],"right"===b.textAlign))E(e,t,b,i,A,y,L,"right"),k-=b.width,L-=b.width,V--;D+=(r-(D-m)-(x-L)-k)/2;while(P<=V)b=M[P],E(e,t,b,i,A,y,D+b.width/2,"center"),D+=b.width,P++;y+=A}}function C(e,t,n,i,o){if(n&&t.textRotation){var r=t.textOrigin;"center"===r?(i=n.width/2+n.x,o=n.height/2+n.y):r&&(i=r[0]+n.x,o=r[1]+n.y),e.translate(i,o),e.rotate(-t.textRotation),e.translate(-i,-o)}}function E(e,t,n,i,a,s,l,u){var c=i.rich[n.styleName]||{};c.text=n.text;var d=n.textVerticalAlign,h=s+a/2;"top"===d?h=s+n.height/2:"bottom"===d&&(h=s+a-n.height/2),!n.isLineHolder&&T(c)&&N(e,t,c,"right"===u?l-n.width:"center"===u?l-n.width/2:l,h-n.height/2,n.width,n.height);var f=n.textPadding;f&&(l=z(l,u,f),h-=n.height/2-f[2]-n.textHeight/2),L(t,"shadowBlur",r(c.textShadowBlur,i.textShadowBlur,0)),L(t,"shadowColor",c.textShadowColor||i.textShadowColor||"transparent"),L(t,"shadowOffsetX",r(c.textShadowOffsetX,i.textShadowOffsetX,0)),L(t,"shadowOffsetY",r(c.textShadowOffsetY,i.textShadowOffsetY,0)),L(t,"textAlign",u),L(t,"textBaseline","middle"),L(t,"font",n.font||m);var p=V(c.textStroke||i.textStroke,v),g=R(c.textFill||i.textFill),v=o(c.textStrokeWidth,i.textStrokeWidth);p&&(L(t,"lineWidth",v),L(t,"strokeStyle",p),t.strokeText(n.text,l,h)),g&&(L(t,"fillStyle",g),t.fillText(n.text,l,h))}function T(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function N(e,t,n,i,o,r,a){var s=n.textBackgroundColor,c=n.textBorderWidth,f=n.textBorderColor,p=l(s);if(L(t,"shadowBlur",n.textBoxShadowBlur||0),L(t,"shadowColor",n.textBoxShadowColor||"transparent"),L(t,"shadowOffsetX",n.textBoxShadowOffsetX||0),L(t,"shadowOffsetY",n.textBoxShadowOffsetY||0),p||c&&f){t.beginPath();var g=n.textBorderRadius;g?d.buildPath(t,{x:i,y:o,width:r,height:a,r:g}):t.rect(i,o,r,a),t.closePath()}if(p)if(L(t,"fillStyle",s),null!=n.fillOpacity){var v=t.globalAlpha;t.globalAlpha=n.fillOpacity*n.opacity,t.fill(),t.globalAlpha=v}else t.fill();else if(u(s)){var m=s.image;m=h.createOrUpdateImage(m,null,e,D,s),m&&h.isImageReady(m)&&t.drawImage(m,i,o,r,a)}if(c&&f)if(L(t,"lineWidth",c),L(t,"strokeStyle",f),null!=n.strokeOpacity){v=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,t.stroke(),t.globalAlpha=v}else t.stroke()}function D(e,t){t.image=e}function O(e,t,n,i){var o=n.x||0,r=n.y||0,a=n.textAlign,s=n.textVerticalAlign;if(i){var l=n.textPosition;if(l instanceof Array)o=i.x+B(l[0],i.width),r=i.y+B(l[1],i.height);else{var u=t&&t.calculateTextPosition?t.calculateTextPosition(b,n,i):c.calculateTextPosition(b,n,i);o=u.x,r=u.y,a=a||u.textAlign,s=s||u.textVerticalAlign}var d=n.textOffset;d&&(o+=d[0],r+=d[1])}return e=e||{},e.baseX=o,e.baseY=r,e.textAlign=a,e.textVerticalAlign=s,e}function L(e,t,n){return e[t]=f(e,t,n),e[t]}function V(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function R(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function B(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function z(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function W(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}t.normalizeTextStyle=S,t.renderText=I,t.getBoxPosition=O,t.getStroke=V,t.getFill=R,t.parsePercent=B,t.needDrawText=W},41406:function(e,t,n){var i=n(98886),o=n(60479),r=n(71131),a=r.WILL_BE_RESTORED,s=new o,l=function(){};l.prototype={constructor:l,drawRectText:function(e,t){var n=this.style;t=n.textRect||t,this.__dirty&&i.normalizeTextStyle(n,!0);var o=n.text;if(null!=o&&(o+=""),i.needDrawText(o,n)){e.save();var r=this.transform;n.transformText?this.setTransform(e):r&&(s.copy(t),s.applyTransform(r),t=s),i.renderText(this,e,o,n,t,a),e.restore()}}};var u=l;e.exports=u},14826:function(e,t,n){var i=n(10712),o=i.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.cx,i=t.cy,o=Math.max(t.r,0),r=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(r),u=Math.sin(r);e.moveTo(l*o+n,u*o+i),e.arc(n,i,o,r,a,!s)}});e.exports=o},54174:function(e,t,n){var i=n(10712),o=n(45280),r=n(18554),a=r.quadraticSubdivide,s=r.cubicSubdivide,l=r.quadraticAt,u=r.cubicAt,c=r.quadraticDerivativeAt,d=r.cubicDerivativeAt,h=[];function f(e,t,n){var i=e.cpx2,o=e.cpy2;return null===i||null===o?[(n?d:u)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?d:u)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?c:l)(e.x1,e.cpx1,e.x2,t),(n?c:l)(e.y1,e.cpy1,e.y2,t)]}var p=i.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.x1,i=t.y1,o=t.x2,r=t.y2,l=t.cpx1,u=t.cpy1,c=t.cpx2,d=t.cpy2,f=t.percent;0!==f&&(e.moveTo(n,i),null==c||null==d?(f<1&&(a(n,l,o,f,h),l=h[1],o=h[2],a(i,u,r,f,h),u=h[1],r=h[2]),e.quadraticCurveTo(l,u,o,r)):(f<1&&(s(n,l,c,o,f,h),l=h[1],c=h[2],o=h[3],s(i,u,d,r,f,h),u=h[1],d=h[2],r=h[3]),e.bezierCurveTo(l,u,c,d,o,r)))},pointAt:function(e){return f(this.shape,e,!1)},tangentAt:function(e){var t=f(this.shape,e,!0);return o.normalize(t,t)}});e.exports=p},69538:function(e,t,n){var i=n(10712),o=i.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}});e.exports=o},92797:function(e,t,n){var i=n(10712),o=i.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(e,t){var n=.5522848,i=t.cx,o=t.cy,r=t.rx,a=t.ry,s=r*n,l=a*n;e.moveTo(i-r,o),e.bezierCurveTo(i-r,o-l,i-s,o-a,i,o-a),e.bezierCurveTo(i+s,o-a,i+r,o-l,i+r,o),e.bezierCurveTo(i+r,o+l,i+s,o+a,i,o+a),e.bezierCurveTo(i-s,o+a,i-r,o+l,i-r,o),e.closePath()}});e.exports=o},22095:function(e,t,n){var i=n(10712),o=n(24111),r=o.subPixelOptimizeLine,a={},s=i.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n,i,o,s;this.subPixelOptimize?(r(a,t,this.style),n=a.x1,i=a.y1,o=a.x2,s=a.y2):(n=t.x1,i=t.y1,o=t.x2,s=t.y2);var l=t.percent;0!==l&&(e.moveTo(n,i),l<1&&(o=n*(1-l)+o*l,s=i*(1-l)+s*l),e.lineTo(o,s))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}});e.exports=s},95094:function(e,t,n){var i=n(10712),o=n(79209),r=i.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){o.buildPath(e,t,!0)}});e.exports=r},62514:function(e,t,n){var i=n(10712),o=n(79209),r=i.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){o.buildPath(e,t,!1)}});e.exports=r},27304:function(e,t,n){var i=n(10712),o=n(48988),r=n(24111),a=r.subPixelOptimizeRect,s={},l=i.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var n,i,r,l;this.subPixelOptimize?(a(s,t,this.style),n=s.x,i=s.y,r=s.width,l=s.height,s.r=t.r,t=s):(n=t.x,i=t.y,r=t.width,l=t.height),t.r?o.buildPath(e,t):e.rect(n,i,r,l),e.closePath()}});e.exports=l},85795:function(e,t,n){var i=n(10712),o=i.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var n=t.cx,i=t.cy,o=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,o,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,o,!0)}});e.exports=o},74520:function(e,t,n){var i=n(10712),o=n(60873),r=i.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:o(i.prototype.brush),buildPath:function(e,t){var n=t.cx,i=t.cy,o=Math.max(t.r0||0,0),r=Math.max(t.r,0),a=t.startAngle,s=t.endAngle,l=t.clockwise,u=Math.cos(a),c=Math.sin(a);e.moveTo(u*o+n,c*o+i),e.lineTo(u*r+n,c*r+i),e.arc(n,i,r,a,s,!l),e.lineTo(Math.cos(s)*o+n,Math.sin(s)*o+i),0!==o&&e.arc(n,i,o,s,a,l),e.closePath()}});e.exports=r},7131:function(e,t,n){var i=n(64383),o=n(48612),r=n(33051),a=r.isString,s=r.isFunction,l=r.isObject,u=r.isArrayLike,c=r.indexOf,d=function(){this.animators=[]};function h(e,t,n,i,o,r,l,u){a(i)?(r=o,o=i,i=0):s(o)?(r=o,o="linear",i=0):s(i)?(r=i,i=0):s(n)?(r=n,n=500):n||(n=500),e.stopAnimation(),f(e,"",e,t,n,i,u);var c=e.animators.slice(),d=c.length;function h(){d--,d||r&&r()}d||r&&r();for(var p=0;p<c.length;p++)c[p].done(h).start(o,l)}function f(e,t,n,i,o,r,a){var s={},c=0;for(var d in i)i.hasOwnProperty(d)&&(null!=n[d]?l(i[d])&&!u(i[d])?f(e,t?t+"."+d:d,n[d],i[d],o,r,a):(a?(s[d]=n[d],p(e,t,d,i[d])):s[d]=i[d],c++):null==i[d]||a||p(e,t,d,i[d]));c>0&&e.animate(t,!1).when(null==o?500:o,s).delay(r||0)}function p(e,t,n,i){if(t){var o={};o[t]={},o[t][n]=i,e.attr(o)}else e.attr(n,i)}d.prototype={constructor:d,animate:function(e,t){var n,r=!1,a=this,s=this.__zr;if(e){var l=e.split("."),u=a;r="shape"===l[0];for(var d=0,h=l.length;d<h;d++)u&&(u=u[l[d]]);u&&(n=u)}else n=a;if(n){var f=a.animators,p=new i(n,t);return p.during((function(e){a.dirty(r)})).done((function(){f.splice(c(f,p),1)})),f.push(p),s&&s.animation.addAnimator(p),p}o('Property "'+e+'" is not existed in element '+a.id)},stopAnimation:function(e){for(var t=this.animators,n=t.length,i=0;i<n;i++)t[i].stop(e);return t.length=0,this},animateTo:function(e,t,n,i,o,r){h(this,e,t,n,i,o,r)},animateFrom:function(e,t,n,i,o,r){h(this,e,t,n,i,o,r,!0)}};var g=d;e.exports=g},17780:function(e){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function n(e,t){return{target:e,topTarget:t&&t.topTarget}}t.prototype={constructor:t,_dragStart:function(e){var t=e.target;while(t&&!t.draggable)t=t.parent;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(n(t,e),"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,o=e.offsetY,r=i-this._x,a=o-this._y;this._x=i,this._y=o,t.drift(r,a,e),this.dispatchToElement(n(t,e),"drag",e.event);var s=this.findHover(i,o,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.dispatchToElement(n(l,e),"dragleave",e.event),s&&s!==l&&this.dispatchToElement(n(s,e),"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(n(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(n(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}};var i=t;e.exports=i},41502:function(e){var t=Array.prototype.slice,n=function(e){this._$handlers={},this._$eventProcessor=e};function i(e,t){var n=e._$eventProcessor;return null!=t&&n&&n.normalizeQuery&&(t=n.normalizeQuery(t)),t}function o(e,t,n,o,r,a){var s=e._$handlers;if("function"===typeof n&&(r=o,o=n,n=null),!o||!t)return e;n=i(e,n),s[t]||(s[t]=[]);for(var l=0;l<s[t].length;l++)if(s[t][l].h===o)return e;var u={h:o,one:a,query:n,ctx:r||e,callAtLast:o.zrEventfulCallAtLast},c=s[t].length-1,d=s[t][c];return d&&d.callAtLast?s[t].splice(c,0,u):s[t].push(u),e}n.prototype={constructor:n,one:function(e,t,n,i){return o(this,e,t,n,i,!0)},on:function(e,t,n,i){return o(this,e,t,n,i,!1)},isSilent:function(e){var t=this._$handlers;return!t[e]||!t[e].length},off:function(e,t){var n=this._$handlers;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],o=0,r=n[e].length;o<r;o++)n[e][o].h!==t&&i.push(n[e][o]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},trigger:function(e){var n=this._$handlers[e],i=this._$eventProcessor;if(n){var o=arguments,r=o.length;r>3&&(o=t.call(o,1));for(var a=n.length,s=0;s<a;){var l=n[s];if(i&&i.filter&&null!=l.query&&!i.filter(e,l.query))s++;else{switch(r){case 1:l.h.call(l.ctx);break;case 2:l.h.call(l.ctx,o[1]);break;case 3:l.h.call(l.ctx,o[1],o[2]);break;default:l.h.apply(l.ctx,o);break}l.one?(n.splice(s,1),a--):s++}}}return i&&i.afterTrigger&&i.afterTrigger(e),this},triggerWithContext:function(e){var n=this._$handlers[e],i=this._$eventProcessor;if(n){var o=arguments,r=o.length;r>4&&(o=t.call(o,1,o.length-1));for(var a=o[o.length-1],s=n.length,l=0;l<s;){var u=n[l];if(i&&i.filter&&null!=u.query&&!i.filter(e,u.query))l++;else{switch(r){case 1:u.h.call(a);break;case 2:u.h.call(a,o[1]);break;case 3:u.h.call(a,o[1],o[2]);break;default:u.h.apply(a,o);break}u.one?(n.splice(l,1),s--):l++}}}return i&&i.afterTrigger&&i.afterTrigger(e),this}};var r=n;e.exports=r},58023:function(e,t,n){var i=n(32892),o=n(45280),r=i.identity,a=5e-5;function s(e){return e>a||e<-a}var l=function(e){e=e||{},e.position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var c=[];u.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),o=this.transform;if(n||t){o=o||i.create(),n?this.getLocalTransform(o):r(o),t&&(n?i.mul(o,e.transform,o):i.copy(o,e.transform)),this.transform=o;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(c);var s=c[0]<0?-1:1,l=c[1]<0?-1:1,u=((c[0]-s)*a+s)/c[0]||0,d=((c[1]-l)*a+l)/c[1]||0;o[0]*=u,o[1]*=u,o[2]*=d,o[3]*=d}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,o)}else o&&r(o)},u.getLocalTransform=function(e){return l.getLocalTransform(this,e)},u.setTransform=function(e){var t=this.transform,n=e.dpr||1;t?e.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):e.setTransform(n,0,0,n,0,0)},u.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var d=[],h=i.create();u.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=this.position,o=this.scale;s(t-1)&&(t=Math.sqrt(t)),s(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),i[0]=e[4],i[1]=e[5],o[0]=t,o[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/t)}},u.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(i.mul(d,e.invTransform,t),t=d);var n=this.origin;n&&(n[0]||n[1])&&(h[4]=n[0],h[5]=n[1],i.mul(d,t,h),d[4]-=n[0],d[5]-=n[1],t=d),this.setLocalTransform(t)}},u.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},u.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&o.applyTransform(n,n,i),n},u.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&o.applyTransform(n,n,i),n},l.getLocalTransform=function(e,t){t=t||[],r(t);var n=e.origin,o=e.scale||[1,1],a=e.rotation||0,s=e.position||[0,0];return n&&(t[4]-=n[0],t[5]-=n[1]),i.scale(t,t,o),a&&i.rotate(t,t,a),n&&(t[4]+=n[0],t[5]+=n[1]),t[4]+=s[0],t[5]+=s[1],t};var f=l;e.exports=f},58331:function(e,t,n){var i=n(62288),o=i.createElement,r=n(33051),a=n(48612),s=n(10712),l=n(44535),u=n(96498),c=n(39351),d=n(51037),h=n(55860),f=n(41472),p=n(37953),g=p.path,v=p.image,m=p.text;function y(e){return parseInt(e,10)}function x(e){return e instanceof s?g:e instanceof l?v:e instanceof u?m:g}function _(e,t){return t&&e&&t.parentNode!==e}function b(e,t,n){if(_(e,t)&&n){var i=n.nextSibling;i?e.insertBefore(t,i):e.appendChild(t)}}function w(e,t){if(_(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function S(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function M(e){return e.__textSvgEl}function I(e){return e.__svgEl}var A=function(e,t,n,i){this.root=e,this.storage=t,this._opts=n=r.extend({},n||{});var a=o("svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=o("g");a.appendChild(s);var l=o("g");a.appendChild(l),this.gradientManager=new d(i,l),this.clipPathManager=new h(i,l),this.shadowManager=new f(i,l);var u=document.createElement("div");u.style.cssText="overflow:hidden;position:relative",this._svgDom=a,this._svgRoot=l,this._backgroundRoot=s,this._viewport=u,e.appendChild(u),u.appendChild(a),this.resize(n.width,n.height),this._visibleList=[]};function k(e){return function(){a('In SVG mode painter not support method "'+e+'"')}}A.prototype={constructor:A,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=o("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var t,n=this._svgRoot,i=this._visibleList,o=e.length,r=[];for(t=0;t<o;t++){var a=e[t],s=x(a),l=I(a)||M(a);a.invisible||(a.__dirty&&(s&&s.brush(a),this.clipPathManager.update(a),a.style&&(this.gradientManager.update(a.style.fill),this.gradientManager.update(a.style.stroke),this.shadowManager.update(l,a)),a.__dirty=!1),r.push(a))}var u,d=c(i,r);for(t=0;t<d.length;t++){var h=d[t];if(h.removed)for(var f=0;f<h.count;f++){a=i[h.indices[f]],l=I(a);var p=M(a);S(n,l),S(n,p)}}for(t=0;t<d.length;t++){h=d[t];if(h.added)for(f=0;f<h.count;f++){a=r[h.indices[f]],l=I(a),p=M(a);u?b(n,l,u):w(n,l),l?b(n,p,l):u?b(n,p,u):w(n,p),b(n,p,l),u=p||l||u,this.gradientManager.addWithoutUpdate(l||p,a),this.shadowManager.addWithoutUpdate(l||p,a),this.clipPathManager.markUsed(a)}else if(!h.removed)for(f=0;f<h.count;f++){a=r[h.indices[f]],l=I(a),p=M(a),l=I(a),p=M(a);this.gradientManager.markUsed(a),this.gradientManager.addWithoutUpdate(l||p,a),this.shadowManager.markUsed(a),this.shadowManager.addWithoutUpdate(l||p,a),this.clipPathManager.markUsed(a),p&&b(n,p,l),u=l||p||u}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=r},_getDefs:function(e){var t=this._svgDom,n=t.getElementsByTagName("defs");if(0===n.length){if(e){n=t.insertBefore(o("defs"),t.firstChild);return n.contains||(n.contains=function(e){var t=n.children;if(!t)return!1;for(var i=t.length-1;i>=0;--i)if(t[i]===e)return!0;return!1}),n}return null}return n[0]},resize:function(e,t){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var o=n.style;o.width=e+"px",o.height=t+"px";var r=this._svgDom;r.setAttribute("width",e),r.setAttribute("height",t)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],r=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||y(s[n])||y(a.style[n]))-(y(s[o])||0)-(y(s[r])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var e=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+e}},r.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(e){A.prototype[e]=k(e)}));var P=A;e.exports=P},62288:function(e,t){var n="http://www.w3.org/2000/svg";function i(e){return document.createElementNS(n,e)}t.createElement=i},37953:function(e,t,n){var i=n(62288),o=i.createElement,r=n(14014),a=n(60479),s=n(32892),l=n(80423),u=n(98886),c=n(96498),d=r.CMD,h=Array.prototype.join,f="none",p=Math.round,g=Math.sin,v=Math.cos,m=Math.PI,y=2*Math.PI,x=180/m,_=1e-4;function b(e){return p(1e4*e)/1e4}function w(e){return e<_&&e>-_}function S(e,t){var n=t?e.textFill:e.fill;return null!=n&&n!==f}function M(e,t){var n=t?e.textStroke:e.stroke;return null!=n&&n!==f}function I(e,t){t&&A(e,"transform","matrix("+h.call(t,",")+")")}function A(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function k(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function P(e,t,n,i){if(S(t,n)){var o=n?t.textFill:t.fill;o="transparent"===o?f:o,A(e,"fill",o),A(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)}else A(e,"fill",f);if(M(t,n)){var r=n?t.textStroke:t.stroke;r="transparent"===r?f:r,A(e,"stroke",r);var a=n?t.textStrokeWidth:t.lineWidth,s=!n&&t.strokeNoScale?i.getLineScale():1;A(e,"stroke-width",a/s),A(e,"paint-order",n?"stroke":"fill"),A(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity);var l=t.lineDash;l?(A(e,"stroke-dasharray",t.lineDash.join(",")),A(e,"stroke-dashoffset",p(t.lineDashOffset||0))):A(e,"stroke-dasharray",""),t.lineCap&&A(e,"stroke-linecap",t.lineCap),t.lineJoin&&A(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&A(e,"stroke-miterlimit",t.miterLimit)}else A(e,"stroke",f)}function C(e){for(var t=[],n=e.data,i=e.len(),o=0;o<i;){var r=n[o++],a="",s=0;switch(r){case d.M:a="M",s=2;break;case d.L:a="L",s=2;break;case d.Q:a="Q",s=4;break;case d.C:a="C",s=6;break;case d.A:var l=n[o++],u=n[o++],c=n[o++],h=n[o++],f=n[o++],_=n[o++],S=n[o++],M=n[o++],I=Math.abs(_),A=w(I-y)||(M?_>=y:-_>=y),k=_>0?_%y:_%y+y,P=!1;P=!!A||!w(I)&&k>=m===!!M;var C=b(l+c*v(f)),E=b(u+h*g(f));A&&(_=M?y-1e-4:1e-4-y,P=!0,9===o&&t.push("M",C,E));var T=b(l+c*v(f+_)),N=b(u+h*g(f+_));t.push("A",b(c),b(h),p(S*x),+P,+M,T,N);break;case d.Z:a="Z";break;case d.R:T=b(n[o++]),N=b(n[o++]);var D=b(n[o++]),O=b(n[o++]);t.push("M",T,N,"L",T+D,N,"L",T+D,N+O,"L",T,N+O,"L",T,N);break}a&&t.push(a);for(var L=0;L<s;L++)t.push(b(n[o++]))}return t.join(" ")}var E={brush:function(e){var t=e.style,n=e.__svgEl;n||(n=o("path"),e.__svgEl=n),e.path||e.createPathProxy();var i=e.path;if(e.__dirtyPath){i.beginPath(),i.subPixelOptimize=!1,e.buildPath(i,e.shape),e.__dirtyPath=!1;var r=C(i);r.indexOf("NaN")<0&&A(n,"d",r)}P(n,t,!1,e),I(n,e.transform),null!=t.text?R(e,e.getBoundingRect()):F(e)}},T={brush:function(e){var t=e.style,n=t.image;if(n instanceof HTMLImageElement){var i=n.src;n=i}if(n){var r=t.x||0,a=t.y||0,s=t.width,l=t.height,u=e.__svgEl;u||(u=o("image"),e.__svgEl=u),n!==e.__imageSrc&&(k(u,"href",n),e.__imageSrc=n),A(u,"width",s),A(u,"height",l),A(u,"x",r),A(u,"y",a),I(u,e.transform),null!=t.text?R(e,e.getBoundingRect()):F(e)}}},N={},D=new a,O={},L=[],V={left:"start",right:"end",center:"middle",middle:"middle"},R=function(e,t){var n=e.style,i=e.transform,r=e instanceof c||n.transformText;e.__dirty&&u.normalizeTextStyle(n,!0);var a=n.text;if(null!=a&&(a+=""),u.needDrawText(a,n)){null==a&&(a=""),!r&&i&&(D.copy(t),D.applyTransform(i),t=D);var s=e.__textSvgEl;s||(s=o("text"),e.__textSvgEl=s);var d=s.style,h=n.font||l.DEFAULT_FONT,f=s.__computedFont;h!==s.__styleFont&&(d.font=s.__styleFont=h,f=s.__computedFont=d.font);var p=n.textPadding,g=n.textLineHeight,v=e.__textCotentBlock;v&&!e.__dirtyText||(v=e.__textCotentBlock=l.parsePlainText(a,f,p,g,n.truncate));var m=v.outerHeight,y=v.lineHeight;u.getBoxPosition(O,e,n,t);var x=O.baseX,_=O.baseY,b=O.textAlign||"left",w=O.textVerticalAlign;B(s,r,i,n,t,x,_);var S=l.adjustTextY(_,m,w),M=x,I=S;p&&(M=z(x,b,p),I+=p[0]),I+=y/2,P(s,n,!0,e);var A=v.canCacheByTextString,k=e.__tspanList||(e.__tspanList=[]),C=k.length;if(A&&e.__canCacheByTextString&&e.__text===a){if(e.__dirtyText&&C)for(var E=0;E<C;++E)W(k[E],b,M,I+E*y)}else{e.__text=a,e.__canCacheByTextString=A;var T=v.lines,N=T.length;for(E=0;E<N;E++){var L=k[E],V=T[E];L?L.__zrText!==V&&(L.innerHTML="",L.appendChild(document.createTextNode(V))):(L=k[E]=o("tspan"),s.appendChild(L),L.appendChild(document.createTextNode(V))),W(L,b,M,I+E*y)}if(C>N){for(;E<C;E++)s.removeChild(k[E]);k.length=N}}}};function B(e,t,n,i,o,r,a){s.identity(L),t&&n&&s.copy(L,n);var l=i.textRotation;if(o&&l){var u=i.textOrigin;"center"===u?(r=o.width/2+o.x,a=o.height/2+o.y):u&&(r=u[0]+o.x,a=u[1]+o.y),L[4]-=r,L[5]-=a,s.rotate(L,L,l),L[4]+=r,L[5]+=a}I(e,L)}function z(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function W(e,t,n,i){A(e,"dominant-baseline","middle"),A(e,"text-anchor",V[t]),A(e,"x",n),A(e,"y",i)}function F(e){e&&e.__textSvgEl&&(e.__textSvgEl.parentNode&&e.__textSvgEl.parentNode.removeChild(e.__textSvgEl),e.__textSvgEl=null,e.__tspanList=[],e.__text=null)}N.drawRectText=R,N.brush=function(e){var t=e.style;null!=t.text?R(e,!1):F(e)},t.path=E,t.image=T,t.text=N},55860:function(e,t,n){var i=n(6740),o=n(33051),r=n(32892);function a(e,t){i.call(this,e,t,"clipPath","__clippath_in_use__")}o.inherits(a,i),a.prototype.update=function(e){var t=this.getSvgElement(e);t&&this.updateDom(t,e.__clipPaths,!1);var n=this.getTextSvgElement(e);n&&this.updateDom(n,e.__clipPaths,!0),this.markUsed(e)},a.prototype.updateDom=function(e,t,n){if(t&&t.length>0){var i,o,a=this.getDefs(!0),s=t[0],l=n?"_textDom":"_dom";s[l]?(o=s[l].getAttribute("id"),i=s[l],a.contains(i)||a.appendChild(i)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",o),a.appendChild(i),s[l]=i);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!n){var c=Array.prototype.slice.call(s.transform);r.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=c}else u.brush(s);var d=this.getSvgElement(s);i.innerHTML="",i.appendChild(d.cloneNode()),e.setAttribute("clip-path","url(#"+o+")"),t.length>1&&this.updateDom(i,t.slice(1),n)}else e&&e.setAttribute("clip-path","none")},a.prototype.markUsed=function(e){var t=this;e.__clipPaths&&o.each(e.__clipPaths,(function(e){e._dom&&i.prototype.markUsed.call(t,e._dom),e._textDom&&i.prototype.markUsed.call(t,e._textDom)}))};var s=a;e.exports=s},6740:function(e,t,n){var i=n(62288),o=i.createElement,r=n(33051),a=n(10712),s=n(44535),l=n(96498),u=n(37953),c=u.path,d=u.image,h=u.text,f="0",p="1";function g(e,t,n,i,o){this._zrId=e,this._svgRoot=t,this._tagNames="string"===typeof n?[n]:n,this._markLabel=i,this._domName=o||"_dom",this.nextId=0}g.prototype.createElement=o,g.prototype.getDefs=function(e){var t=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");return 0===n.length?e?(n=t.insertBefore(this.createElement("defs"),t.firstChild),n.contains||(n.contains=function(e){var t=n.children;if(!t)return!1;for(var i=t.length-1;i>=0;--i)if(t[i]===e)return!0;return!1}),n):null:n[0]},g.prototype.update=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"===typeof t&&t(e);else{var i=this.add(e);i&&(e[this._domName]=i)}}},g.prototype.addDom=function(e){var t=this.getDefs(!0);t.appendChild(e)},g.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},g.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return r.each(this._tagNames,(function(n){var i=e.getElementsByTagName(n);t=t.concat([].slice.call(i))})),t},g.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;r.each(e,(function(e){e[t._markLabel]=f}))},g.prototype.markUsed=function(e){e&&(e[this._markLabel]=p)},g.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),n=this;r.each(t,(function(t){t[n._markLabel]!==p&&e.removeChild(t)}))}},g.prototype.getSvgProxy=function(e){return e instanceof a?c:e instanceof s?d:e instanceof l?h:c},g.prototype.getTextSvgElement=function(e){return e.__textSvgEl},g.prototype.getSvgElement=function(e){return e.__svgEl};var v=g;e.exports=v},51037:function(e,t,n){var i=n(6740),o=n(33051),r=n(48612),a=n(21092);function s(e,t){i.call(this,e,t,["linearGradient","radialGradient"],"__gradient_in_use__")}o.inherits(s,i),s.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;o.each(["fill","stroke"],(function(i){if(t.style[i]&&("linear"===t.style[i].type||"radial"===t.style[i].type)){var o,r=t.style[i],a=n.getDefs(!0);r._dom?(o=r._dom,a.contains(r._dom)||n.addDom(o)):o=n.add(r),n.markUsed(t);var s=o.getAttribute("id");e.setAttribute(i,"url(#"+s+")")}}))}},s.prototype.add=function(e){var t;if("linear"===e.type)t=this.createElement("linearGradient");else{if("radial"!==e.type)return r("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},s.prototype.update=function(e){var t=this;i.prototype.update.call(this,e,(function(){var n=e.type,i=e._dom.tagName;"linear"===n&&"linearGradient"===i||"radial"===n&&"radialGradient"===i?t.updateDom(e,e._dom):(t.removeDom(e),t.add(e))}))},s.prototype.updateDom=function(e,t){if("linear"===e.type)t.setAttribute("x1",e.x),t.setAttribute("y1",e.y),t.setAttribute("x2",e.x2),t.setAttribute("y2",e.y2);else{if("radial"!==e.type)return void r("Illegal gradient type.");t.setAttribute("cx",e.x),t.setAttribute("cy",e.y),t.setAttribute("r",e.r)}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var n=e.colorStops,i=0,o=n.length;i<o;++i){var s=this.createElement("stop");s.setAttribute("offset",100*n[i].offset+"%");var l=n[i].color;if(l.indexOf(!1)){var u=a.parse(l)[3],c=a.toHex(l);s.setAttribute("stop-color","#"+c),s.setAttribute("stop-opacity",u)}else s.setAttribute("stop-color",n[i].color);t.appendChild(s)}e._dom=t},s.prototype.markUsed=function(e){if(e.style){var t=e.style.fill;t&&t._dom&&i.prototype.markUsed.call(this,t._dom),t=e.style.stroke,t&&t._dom&&i.prototype.markUsed.call(this,t._dom)}};var l=s;e.exports=l},41472:function(e,t,n){var i=n(6740),o=n(33051);function r(e,t){i.call(this,e,t,["filter"],"__filter_in_use__","_shadowDom")}function a(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY||e.textShadowBlur||e.textShadowOffsetX||e.textShadowOffsetY)}o.inherits(r,i),r.prototype.addWithoutUpdate=function(e,t){if(t&&a(t.style)){var n;if(t._shadowDom){n=t._shadowDom;var i=this.getDefs(!0);i.contains(t._shadowDom)||this.addDom(n)}else n=this.add(t);this.markUsed(t);var o=n.getAttribute("id");e.style.filter="url(#"+o+")"}},r.prototype.add=function(e){var t=this.createElement("filter");return e._shadowDomId=e._shadowDomId||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-shadow-"+e._shadowDomId),this.updateDom(e,t),this.addDom(t),t},r.prototype.update=function(e,t){var n=t.style;if(a(n)){var o=this;i.prototype.update.call(this,t,(function(){o.updateDom(t,t._shadowDom)}))}else this.remove(e,t)},r.prototype.remove=function(e,t){null!=t._shadowDomId&&(this.removeDom(e),e.style.filter="")},r.prototype.updateDom=function(e,t){var n=t.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var i,o,r,a,s=e.style,l=e.scale&&e.scale[0]||1,u=e.scale&&e.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)i=s.shadowOffsetX||0,o=s.shadowOffsetY||0,r=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(t,s);i=s.textShadowOffsetX||0,o=s.textShadowOffsetY||0,r=s.textShadowBlur,a=s.textShadowColor}n.setAttribute("dx",i/l),n.setAttribute("dy",o/u),n.setAttribute("flood-color",a);var c=r/2/l,d=r/2/u,h=c+" "+d;n.setAttribute("stdDeviation",h),t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width",Math.ceil(r/2*200)+"%"),t.setAttribute("height",Math.ceil(r/2*200)+"%"),t.appendChild(n),e._shadowDom=t},r.prototype.markUsed=function(e){e._shadowDom&&i.prototype.markUsed.call(this,e._shadowDom)};var s=r;e.exports=s},31663:function(e,t,n){n(37953);var i=n(31931),o=i.registerPainter,r=n(58331);o("svg",r)},21092:function(e,t,n){var i=n(92528),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return e=Math.round(e),e<0?0:e>255?255:e}function a(e){return e=Math.round(e),e<0?0:e>360?360:e}function s(e){return e<0?0:e>1?1:e}function l(e){return e.length&&"%"===e.charAt(e.length-1)?r(parseFloat(e)/100*255):r(parseInt(e,10))}function u(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function d(e,t,n){return e+(t-e)*n}function h(e,t,n,i,o){return e[0]=t,e[1]=n,e[2]=i,e[3]=o,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new i(20),g=null;function v(e,t){g&&f(g,t),g=p.put(e,g||t.slice())}function m(e,t){if(e){t=t||[];var n=p.get(e);if(n)return f(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in o)return f(t,o[i]),v(e,t),t;if("#"!==i.charAt(0)){var r=i.indexOf("("),a=i.indexOf(")");if(-1!==r&&a+1===i.length){var s=i.substr(0,r),c=i.substr(r+1,a-(r+1)).split(","),d=1;switch(s){case"rgba":if(4!==c.length)return void h(t,0,0,0,1);d=u(c.pop());case"rgb":return 3!==c.length?void h(t,0,0,0,1):(h(t,l(c[0]),l(c[1]),l(c[2]),d),v(e,t),t);case"hsla":return 4!==c.length?void h(t,0,0,0,1):(c[3]=u(c[3]),y(c,t),v(e,t),t);case"hsl":return 3!==c.length?void h(t,0,0,0,1):(y(c,t),v(e,t),t);default:return}}h(t,0,0,0,1)}else{if(4===i.length){var g=parseInt(i.substr(1),16);return g>=0&&g<=4095?(h(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),v(e,t),t):void h(t,0,0,0,1)}if(7===i.length){g=parseInt(i.substr(1),16);return g>=0&&g<=16777215?(h(t,(16711680&g)>>16,(65280&g)>>8,255&g,1),v(e,t),t):void h(t,0,0,0,1)}}}}function y(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=u(e[1]),o=u(e[2]),a=o<=.5?o*(i+1):o+i-o*i,s=2*o-a;return t=t||[],h(t,r(255*c(s,a,n+1/3)),r(255*c(s,a,n)),r(255*c(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function x(e){if(e){var t,n,i=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(i,o,r),s=Math.max(i,o,r),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l,h=((s-r)/6+l/2)/l;i===s?t=h-d:o===s?t=1/3+c-h:r===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,u];return null!=e[3]&&f.push(e[3]),f}}function _(e,t){var n=m(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:e[i]<0&&(n[i]=0);return P(n,4===n.length?"rgba":"rgb")}}function b(e){var t=m(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function w(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),o=Math.floor(i),a=Math.ceil(i),l=t[o],u=t[a],c=i-o;return n[0]=r(d(l[0],u[0],c)),n[1]=r(d(l[1],u[1],c)),n[2]=r(d(l[2],u[2],c)),n[3]=s(d(l[3],u[3],c)),n}}var S=w;function M(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),o=Math.floor(i),a=Math.ceil(i),l=m(t[o]),u=m(t[a]),c=i-o,h=P([r(d(l[0],u[0],c)),r(d(l[1],u[1],c)),r(d(l[2],u[2],c)),s(d(l[3],u[3],c))],"rgba");return n?{color:h,leftIndex:o,rightIndex:a,value:i}:h}}var I=M;function A(e,t,n,i){if(e=m(e),e)return e=x(e),null!=t&&(e[0]=a(t)),null!=n&&(e[1]=u(n)),null!=i&&(e[2]=u(i)),P(y(e),"rgba")}function k(e,t){if(e=m(e),e&&null!=t)return e[3]=s(t),P(e,"rgba")}function P(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}t.parse=m,t.lift=_,t.toHex=b,t.fastLerp=w,t.fastMapToColor=S,t.lerp=M,t.mapToColor=I,t.modifyHSL=A,t.modifyAlpha=k,t.stringify=P},10003:function(e,t,n){var i=n(8524),o=n(44535),r=n(96498),a=n(69538),s=n(27304),l=n(92797),u=n(22095),c=n(10712),d=n(95094),h=n(62514),f=n(74438),p=n(40342),g=n(32892),v=n(75991),m=v.createFromString,y=n(33051),x=y.isString,_=y.extend,b=y.defaults,w=y.trim,S=y.each,M=/[\s,]+/;function I(e){if(x(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}9===e.nodeType&&(e=e.firstChild);while("svg"!==e.nodeName.toLowerCase()||1!==e.nodeType)e=e.nextSibling;return e}function A(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}A.prototype.parse=function(e,t){t=t||{};var n=I(e);if(!n)throw new Error("Illegal svg");var o=new i;this._root=o;var r=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(l)&&(l=null),D(n,o,null,!0);var u,c,d=n.firstChild;while(d)this._parseNode(d,o),d=d.nextSibling;if(r){var h=w(r).split(M);h.length>=4&&(u={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(u&&null!=a&&null!=l&&(c=W(u,a,l),!t.ignoreViewBox)){var f=o;o=new i,o.add(f),f.scale=c.scale.slice(),f.position=c.position.slice()}return t.ignoreRootClip||null==a||null==l||o.setClipPath(new s({shape:{x:0,y:0,width:a,height:l}})),{root:o,width:a,height:l,viewBoxRect:u,viewBoxTransform:c}},A.prototype._parseNode=function(e,t){var n,i=e.nodeName.toLowerCase();if("defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0),this._isDefine){var o=P[i];if(o){var r=o.call(this,e),a=e.getAttribute("id");a&&(this._defs[a]=r)}}else{o=k[i];o&&(n=o.call(this,e,t),t.add(n))}var s=e.firstChild;while(s)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},A.prototype._parseText=function(e,t){if(1===e.nodeType){var n=e.getAttribute("dx")||0,i=e.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var o=new r({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});E(t,o),D(e,o,this._defs);var a=o.style.fontSize;a&&a<9&&(o.style.fontSize=9,o.scale=o.scale||[1,1],o.scale[0]*=a/9,o.scale[1]*=a/9);var s=o.getBoundingRect();return this._textX+=s.width,t.add(o),o};var k={g:function(e,t){var n=new i;return E(t,n),D(e,n,this._defs),n},rect:function(e,t){var n=new s;return E(t,n),D(e,n,this._defs),n.setShape({x:parseFloat(e.getAttribute("x")||0),y:parseFloat(e.getAttribute("y")||0),width:parseFloat(e.getAttribute("width")||0),height:parseFloat(e.getAttribute("height")||0)}),n},circle:function(e,t){var n=new a;return E(t,n),D(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),n},line:function(e,t){var n=new u;return E(t,n),D(e,n,this._defs),n.setShape({x1:parseFloat(e.getAttribute("x1")||0),y1:parseFloat(e.getAttribute("y1")||0),x2:parseFloat(e.getAttribute("x2")||0),y2:parseFloat(e.getAttribute("y2")||0)}),n},ellipse:function(e,t){var n=new l;return E(t,n),D(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),rx:parseFloat(e.getAttribute("rx")||0),ry:parseFloat(e.getAttribute("ry")||0)}),n},polygon:function(e,t){var n=e.getAttribute("points");n&&(n=T(n));var i=new d({shape:{points:n||[]}});return E(t,i),D(e,i,this._defs),i},polyline:function(e,t){var n=new c;E(t,n),D(e,n,this._defs);var i=e.getAttribute("points");i&&(i=T(i));var o=new h({shape:{points:i||[]}});return o},image:function(e,t){var n=new o;return E(t,n),D(e,n,this._defs),n.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),n},text:function(e,t){var n=e.getAttribute("x")||0,o=e.getAttribute("y")||0,r=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(o)+parseFloat(a);var s=new i;return E(t,s),D(e,s,this._defs),s},tspan:function(e,t){var n=e.getAttribute("x"),o=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=o&&(this._textY=parseFloat(o));var r=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0,s=new i;return E(t,s),D(e,s,this._defs),this._textX+=r,this._textY+=a,s},path:function(e,t){var n=e.getAttribute("d")||"",i=m(n);return E(t,i),D(e,i,this._defs),i}},P={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),n=parseInt(e.getAttribute("y1")||0,10),i=parseInt(e.getAttribute("x2")||10,10),o=parseInt(e.getAttribute("y2")||0,10),r=new f(t,n,i,o);return C(e,r),r},radialgradient:function(e){}};function C(e,t){var n=e.firstChild;while(n){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o=n.getAttribute("stop-color")||"#000000";t.addColorStop(i,o)}n=n.nextSibling}}function E(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),b(t.__inheritedStyle,e.__inheritedStyle))}function T(e){for(var t=w(e).split(M),n=[],i=0;i<t.length;i+=2){var o=parseFloat(t[i]),r=parseFloat(t[i+1]);n.push([o,r])}return n}var N={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function D(e,t,n,i){var o=t.__inheritedStyle||{},r="text"===t.type;if(1===e.nodeType&&(R(e,t),_(o,z(e)),!i))for(var a in N)if(N.hasOwnProperty(a)){var s=e.getAttribute(a);null!=s&&(o[N[a]]=s)}var l=r?"textFill":"fill",u=r?"textStroke":"stroke";t.style=t.style||new p;var c=t.style;null!=o.fill&&c.set(l,L(o.fill,n)),null!=o.stroke&&c.set(u,L(o.stroke,n)),S(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){var t="lineWidth"===e&&r?"textStrokeWidth":e;null!=o[e]&&c.set(t,parseFloat(o[e]))})),o.textBaseline&&"auto"!==o.textBaseline||(o.textBaseline="alphabetic"),"alphabetic"===o.textBaseline&&(o.textBaseline="bottom"),"start"===o.textAlign&&(o.textAlign="left"),"end"===o.textAlign&&(o.textAlign="right"),S(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(e){null!=o[e]&&c.set(e,o[e])})),o.lineDash&&(t.style.lineDash=w(o.lineDash).split(M)),c[u]&&"none"!==c[u]&&(t[u]=!0),t.__inheritedStyle=o}var O=/url\(\s*#(.*?)\)/;function L(e,t){var n=t&&e&&e.match(O);if(n){var i=w(n[1]),o=t[i];return o}return e}var V=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function R(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=null,o=[];n.replace(V,(function(e,t,n){o.push(t,n)}));for(var r=o.length-1;r>0;r-=2){var a=o[r],s=o[r-1];switch(i=i||g.create(),s){case"translate":a=w(a).split(M),g.translate(i,i,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=w(a).split(M),g.scale(i,i,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=w(a).split(M),g.rotate(i,i,parseFloat(a[0]));break;case"skew":a=w(a).split(M),console.warn("Skew transform is not supported yet");break;case"matrix":a=w(a).split(M);i[0]=parseFloat(a[0]),i[1]=parseFloat(a[1]),i[2]=parseFloat(a[2]),i[3]=parseFloat(a[3]),i[4]=parseFloat(a[4]),i[5]=parseFloat(a[5]);break}}t.setLocalTransform(i)}}var B=/([^\s:;]+)\s*:\s*([^:;]+)/g;function z(e){var t=e.getAttribute("style"),n={};if(!t)return n;var i,o={};B.lastIndex=0;while(null!=(i=B.exec(t)))o[i[1]]=i[2];for(var r in N)N.hasOwnProperty(r)&&null!=o[r]&&(n[N[r]]=o[r]);return n}function W(e,t,n){var i=t/e.width,o=n/e.height,r=Math.min(i,o),a=[r,r],s=[-(e.x+e.width/2)*r+t/2,-(e.y+e.height/2)*r+n/2];return{scale:a,position:s}}function F(e,t){var n=new A;return n.parse(e,t)}t.parseXML=I,t.makeViewBoxTransform=W,t.parseSVG=F},75991:function(e,t,n){var i=n(10712),o=n(14014),r=n(35028),a=Math.sqrt,s=Math.sin,l=Math.cos,u=Math.PI,c=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},d=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(c(e)*c(t))},h=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(d(e,t))};function f(e,t,n,i,o,r,c,f,p,g,v){var m=p*(u/180),y=l(m)*(e-n)/2+s(m)*(t-i)/2,x=-1*s(m)*(e-n)/2+l(m)*(t-i)/2,_=y*y/(c*c)+x*x/(f*f);_>1&&(c*=a(_),f*=a(_));var b=(o===r?-1:1)*a((c*c*(f*f)-c*c*(x*x)-f*f*(y*y))/(c*c*(x*x)+f*f*(y*y)))||0,w=b*c*x/f,S=b*-f*y/c,M=(e+n)/2+l(m)*w-s(m)*S,I=(t+i)/2+s(m)*w+l(m)*S,A=h([1,0],[(y-w)/c,(x-S)/f]),k=[(y-w)/c,(x-S)/f],P=[(-1*y-w)/c,(-1*x-S)/f],C=h(k,P);d(k,P)<=-1&&(C=u),d(k,P)>=1&&(C=0),0===r&&C>0&&(C-=2*u),1===r&&C<0&&(C+=2*u),v.addData(g,M,I,c,f,A,C,m,r)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function v(e){if(!e)return new o;for(var t,n=0,i=0,r=n,a=i,s=new o,l=o.CMD,u=e.match(p),c=0;c<u.length;c++){for(var d,h=u[c],v=h.charAt(0),m=h.match(g)||[],y=m.length,x=0;x<y;x++)m[x]=parseFloat(m[x]);var _=0;while(_<y){var b,w,S,M,I,A,k,P=n,C=i;switch(v){case"l":n+=m[_++],i+=m[_++],d=l.L,s.addData(d,n,i);break;case"L":n=m[_++],i=m[_++],d=l.L,s.addData(d,n,i);break;case"m":n+=m[_++],i+=m[_++],d=l.M,s.addData(d,n,i),r=n,a=i,v="l";break;case"M":n=m[_++],i=m[_++],d=l.M,s.addData(d,n,i),r=n,a=i,v="L";break;case"h":n+=m[_++],d=l.L,s.addData(d,n,i);break;case"H":n=m[_++],d=l.L,s.addData(d,n,i);break;case"v":i+=m[_++],d=l.L,s.addData(d,n,i);break;case"V":i=m[_++],d=l.L,s.addData(d,n,i);break;case"C":d=l.C,s.addData(d,m[_++],m[_++],m[_++],m[_++],m[_++],m[_++]),n=m[_-2],i=m[_-1];break;case"c":d=l.C,s.addData(d,m[_++]+n,m[_++]+i,m[_++]+n,m[_++]+i,m[_++]+n,m[_++]+i),n+=m[_-2],i+=m[_-1];break;case"S":b=n,w=i;var E=s.len(),T=s.data;t===l.C&&(b+=n-T[E-4],w+=i-T[E-3]),d=l.C,P=m[_++],C=m[_++],n=m[_++],i=m[_++],s.addData(d,b,w,P,C,n,i);break;case"s":b=n,w=i;E=s.len(),T=s.data;t===l.C&&(b+=n-T[E-4],w+=i-T[E-3]),d=l.C,P=n+m[_++],C=i+m[_++],n+=m[_++],i+=m[_++],s.addData(d,b,w,P,C,n,i);break;case"Q":P=m[_++],C=m[_++],n=m[_++],i=m[_++],d=l.Q,s.addData(d,P,C,n,i);break;case"q":P=m[_++]+n,C=m[_++]+i,n+=m[_++],i+=m[_++],d=l.Q,s.addData(d,P,C,n,i);break;case"T":b=n,w=i;E=s.len(),T=s.data;t===l.Q&&(b+=n-T[E-4],w+=i-T[E-3]),n=m[_++],i=m[_++],d=l.Q,s.addData(d,b,w,n,i);break;case"t":b=n,w=i;E=s.len(),T=s.data;t===l.Q&&(b+=n-T[E-4],w+=i-T[E-3]),n+=m[_++],i+=m[_++],d=l.Q,s.addData(d,b,w,n,i);break;case"A":S=m[_++],M=m[_++],I=m[_++],A=m[_++],k=m[_++],P=n,C=i,n=m[_++],i=m[_++],d=l.A,f(P,C,n,i,A,k,S,M,I,d,s);break;case"a":S=m[_++],M=m[_++],I=m[_++],A=m[_++],k=m[_++],P=n,C=i,n+=m[_++],i+=m[_++],d=l.A,f(P,C,n,i,A,k,S,M,I,d,s);break}}"z"!==v&&"Z"!==v||(d=l.Z,s.addData(d),n=r,i=a),t=d}return s.toStatic(),s}function m(e,t){var n=v(e);return t=t||{},t.buildPath=function(e){if(e.setData){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t)}else{t=e;n.rebuildPath(t)}},t.applyTransform=function(e){r(n,e),this.dirty(!0)},t}function y(e,t){return new i(m(e,t))}function x(e,t){return i.extend(m(e,t))}function _(e,t){for(var n=[],o=e.length,r=0;r<o;r++){var a=e[r];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),n.push(a.path)}var s=new i(t);return s.createPathProxy(),s.buildPath=function(e){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t)},s}t.createFromString=y,t.extendFromString=x,t.mergePath=_},35028:function(e,t,n){var i=n(14014),o=n(45280),r=o.applyTransform,a=i.CMD,s=[[],[],[]],l=Math.sqrt,u=Math.atan2;function c(e,t){var n,i,o,c,d,h=e.data,f=a.M,p=a.C,g=a.L,v=a.R,m=a.A,y=a.Q;for(o=0,c=0;o<h.length;){switch(n=h[o++],c=o,i=0,n){case f:i=1;break;case g:i=1;break;case p:i=3;break;case y:i=2;break;case m:var x=t[4],_=t[5],b=l(t[0]*t[0]+t[1]*t[1]),w=l(t[2]*t[2]+t[3]*t[3]),S=u(-t[1]/w,t[0]/b);h[o]*=b,h[o++]+=x,h[o]*=w,h[o++]+=_,h[o++]*=b,h[o++]*=w,h[o++]+=S,h[o++]+=S,o+=2,c=o;break;case v:M[0]=h[o++],M[1]=h[o++],r(M,M,t),h[c++]=M[0],h[c++]=M[1],M[0]+=h[o++],M[1]+=h[o++],r(M,M,t),h[c++]=M[0],h[c++]=M[1]}for(d=0;d<i;d++){var M=s[d];M[0]=h[o++],M[1]=h[o++],r(M,M,t),h[c++]=M[0],h[c++]=M[1]}}}e.exports=c},85762:function(e,t,n){var i=n(48612),o=n(50381),r=n(33051),a=r.each;function s(e){return parseInt(e,10)}function l(e,t){o.initVML(),this.root=e,this.storage=t;var n=document.createElement("div"),i=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",e.appendChild(n),this._vmlRoot=i,this._vmlViewport=n,this.resize();var r=t.delFromStorage,a=t.addToStorage;t.delFromStorage=function(e){r.call(t,e),e&&e.onRemove&&e.onRemove(i)},t.addToStorage=function(e){e.onAdd&&e.onAdd(i),a.call(t,e)},this._firstPaint=!0}function u(e){return function(){i('In IE8.0 VML mode painter not support method "'+e+'"')}}l.prototype={constructor:l,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var t=this._vmlRoot,n=0;n<e.length;n++){var i=e[n];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(t),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(t),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,t),i.afterBrush&&i.afterBrush())),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(e,t){e=null==e?this._getWidth():e,t=null==t?this._getHeight():t;if(this._width!==e||this._height!==t){this._width=e,this._height=t;var n=this._vmlViewport.style;n.width=e+"px",n.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var e=this.root,t=e.currentStyle;return(e.clientWidth||s(t.width))-s(t.paddingLeft)-s(t.paddingRight)|0},_getHeight:function(){var e=this.root,t=e.currentStyle;return(e.clientHeight||s(t.height))-s(t.paddingTop)-s(t.paddingBottom)|0}},a(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(e){l.prototype[e]=u(e)}));var c=l;e.exports=c},50381:function(e,t,n){var i,o=n(66387),r="urn:schemas-microsoft-com:vml",a="undefined"===typeof window?null:window,s=!1,l=a&&a.document;function u(e){return i(e)}if(l&&!o.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",r),i=function(e){return l.createElement("<zrvml:"+e+' class="zrvml">')}}catch(d){i=function(e){return l.createElement("<"+e+' xmlns="'+r+'" class="zrvml">')}}function c(){if(!s&&l){s=!0;var e=l.styleSheets;e.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}t.doc=l,t.createNode=u,t.initVML=c},91862:function(e,t,n){var i=n(66387),o=n(45280),r=o.applyTransform,a=n(60479),s=n(21092),l=n(80423),u=n(98886),c=n(41406),d=n(7719),h=n(44535),f=n(96498),p=n(10712),g=n(14014),v=n(31797),m=n(50381),y=g.CMD,x=Math.round,_=Math.sqrt,b=Math.abs,w=Math.cos,S=Math.sin,M=Math.max;if(!i.canvasSupported){var I=",",A="progid:DXImageTransform.Microsoft",k=21600,P=k/2,C=1e5,E=1e3,T=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=k+","+k,e.coordorigin="0,0"},N=function(e){return String(e).replace(/&/g,"&").replace(/"/g,""")},D=function(e,t,n){return"rgb("+[e,t,n].join(",")+")"},O=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},L=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},V=function(e,t,n){return(parseFloat(e)||0)*C+(parseFloat(t)||0)*E+n},R=u.parsePercent,B=function(e,t,n){var i=s.parse(t);n=+n,isNaN(n)&&(n=1),i&&(e.color=D(i[0],i[1],i[2]),e.opacity=n*i[3])},z=function(e){var t=s.parse(e);return[D(t[0],t[1],t[2]),t[3]]},W=function(e,t,n){var i=t.fill;if(null!=i)if(i instanceof v){var o,a=0,s=[0,0],l=0,u=1,c=n.getBoundingRect(),d=c.width,h=c.height;if("linear"===i.type){o="gradient";var f=n.transform,p=[i.x*d,i.y*h],g=[i.x2*d,i.y2*h];f&&(r(p,p,f),r(g,g,f));var m=g[0]-p[0],y=g[1]-p[1];a=180*Math.atan2(m,y)/Math.PI,a<0&&(a+=360),a<1e-6&&(a=0)}else{o="gradientradial";p=[i.x*d,i.y*h],f=n.transform;var x=n.scale,_=d,b=h;s=[(p[0]-c.x)/_,(p[1]-c.y)/b],f&&r(p,p,f),_/=x[0]*k,b/=x[1]*k;var w=M(_,b);l=0/w,u=2*i.r/w-l}var S=i.colorStops.slice();S.sort((function(e,t){return e.offset-t.offset}));for(var I=S.length,A=[],P=[],C=0;C<I;C++){var E=S[C],T=z(E.color);P.push(E.offset*u+l+" "+T[0]),0!==C&&C!==I-1||A.push(T)}if(I>=2){var N=A[0][0],D=A[1][0],O=A[0][1]*t.opacity,L=A[1][1]*t.opacity;e.type=o,e.method="none",e.focus="100%",e.angle=a,e.color=N,e.color2=D,e.colors=P.join(","),e.opacity=L,e.opacity2=O}"radial"===o&&(e.focusposition=s.join(","))}else B(e,i,t.opacity)},F=function(e,t){t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof v||B(e,t.stroke,t.opacity)},U=function(e,t,n,i){var o="fill"===t,r=e.getElementsByTagName(t)[0];null!=n[t]&&"none"!==n[t]&&(o||!o&&n.lineWidth)?(e[o?"filled":"stroked"]="true",n[t]instanceof v&&L(e,r),r||(r=m.createNode(t)),o?W(r,n,i):F(r,n),O(e,r)):(e[o?"filled":"stroked"]="false",L(e,r))},$=[[],[],[]],H=function(e,t){var n,i,o,a,s,l,u=y.M,c=y.C,d=y.L,h=y.A,f=y.Q,p=[],g=e.data,v=e.len();for(a=0;a<v;){switch(o=g[a++],i="",n=0,o){case u:i=" m ",n=1,s=g[a++],l=g[a++],$[0][0]=s,$[0][1]=l;break;case d:i=" l ",n=1,s=g[a++],l=g[a++],$[0][0]=s,$[0][1]=l;break;case f:case c:i=" c ",n=3;var m,b,M=g[a++],A=g[a++],C=g[a++],E=g[a++];o===f?(m=C,b=E,C=(C+2*M)/3,E=(E+2*A)/3,M=(s+2*M)/3,A=(l+2*A)/3):(m=g[a++],b=g[a++]),$[0][0]=M,$[0][1]=A,$[1][0]=C,$[1][1]=E,$[2][0]=m,$[2][1]=b,s=m,l=b;break;case h:var T=0,N=0,D=1,O=1,L=0;t&&(T=t[4],N=t[5],D=_(t[0]*t[0]+t[1]*t[1]),O=_(t[2]*t[2]+t[3]*t[3]),L=Math.atan2(-t[1]/O,t[0]/D));var V=g[a++],R=g[a++],B=g[a++],z=g[a++],W=g[a++]+L,F=g[a++]+W+L;a++;var U=g[a++],H=V+w(W)*B,j=R+S(W)*z,G=(M=V+w(F)*B,A=R+S(F)*z,U?" wa ":" at ");Math.abs(H-M)<1e-4&&(Math.abs(F-W)>.01?U&&(H+=270/k):Math.abs(j-R)<1e-4?U&&H<V||!U&&H>V?A-=270/k:A+=270/k:U&&j<R||!U&&j>R?M+=270/k:M-=270/k),p.push(G,x(((V-B)*D+T)*k-P),I,x(((R-z)*O+N)*k-P),I,x(((V+B)*D+T)*k-P),I,x(((R+z)*O+N)*k-P),I,x((H*D+T)*k-P),I,x((j*O+N)*k-P),I,x((M*D+T)*k-P),I,x((A*O+N)*k-P)),s=M,l=A;break;case y.R:var Y=$[0],Z=$[1];Y[0]=g[a++],Y[1]=g[a++],Z[0]=Y[0]+g[a++],Z[1]=Y[1]+g[a++],t&&(r(Y,Y,t),r(Z,Z,t)),Y[0]=x(Y[0]*k-P),Z[0]=x(Z[0]*k-P),Y[1]=x(Y[1]*k-P),Z[1]=x(Z[1]*k-P),p.push(" m ",Y[0],I,Y[1]," l ",Z[0],I,Y[1]," l ",Z[0],I,Z[1]," l ",Y[0],I,Z[1]);break;case y.Z:p.push(" x ")}if(n>0){p.push(i);for(var q=0;q<n;q++){var X=$[q];t&&r(X,X,t),p.push(x(X[0]*k-P),I,x(X[1]*k-P),q<n-1?I:"")}}}return p.join("")};p.prototype.brushVML=function(e){var t=this.style,n=this._vmlEl;n||(n=m.createNode("shape"),T(n),this._vmlEl=n),U(n,"fill",t,this),U(n,"stroke",t,this);var i=this.transform,o=null!=i,r=n.getElementsByTagName("stroke")[0];if(r){var a=t.lineWidth;if(o&&!t.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];a*=_(b(s))}r.weight=a+"px"}var l=this.path||(this.path=new g);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=H(l,this.transform),n.style.zIndex=V(this.zlevel,this.z,this.z2),O(e,n),null!=t.text?this.drawRectText(e,this.getBoundingRect()):this.removeRectText(e)},p.prototype.onRemove=function(e){L(e,this._vmlEl),this.removeRectText(e)},p.prototype.onAdd=function(e){O(e,this._vmlEl),this.appendRectText(e)};var j=function(e){return"object"===typeof e&&e.tagName&&"IMG"===e.tagName.toUpperCase()};h.prototype.brushVML=function(e){var t,n,i=this.style,o=i.image;if(j(o)){var a=o.src;if(a===this._imageSrc)t=this._imageWidth,n=this._imageHeight;else{var s=o.runtimeStyle,l=s.width,u=s.height;s.width="auto",s.height="auto",t=o.width,n=o.height,s.width=l,s.height=u,this._imageSrc=a,this._imageWidth=t,this._imageHeight=n}o=a}else o===this._imageSrc&&(t=this._imageWidth,n=this._imageHeight);if(o){var c=i.x||0,d=i.y||0,h=i.width,f=i.height,p=i.sWidth,g=i.sHeight,v=i.sx||0,y=i.sy||0,b=p&&g,w=this._vmlEl;w||(w=m.doc.createElement("div"),T(w),this._vmlEl=w);var S,k=w.style,P=!1,C=1,E=1;if(this.transform&&(S=this.transform,C=_(S[0]*S[0]+S[1]*S[1]),E=_(S[2]*S[2]+S[3]*S[3]),P=S[1]||S[2]),P){var N=[c,d],D=[c+h,d],L=[c,d+f],R=[c+h,d+f];r(N,N,S),r(D,D,S),r(L,L,S),r(R,R,S);var B=M(N[0],D[0],L[0],R[0]),z=M(N[1],D[1],L[1],R[1]),W=[];W.push("M11=",S[0]/C,I,"M12=",S[2]/E,I,"M21=",S[1]/C,I,"M22=",S[3]/E,I,"Dx=",x(c*C+S[4]),I,"Dy=",x(d*E+S[5])),k.padding="0 "+x(B)+"px "+x(z)+"px 0",k.filter=A+".Matrix("+W.join("")+", SizingMethod=clip)"}else S&&(c=c*C+S[4],d=d*E+S[5]),k.filter="",k.left=x(c)+"px",k.top=x(d)+"px";var F=this._imageEl,U=this._cropEl;F||(F=m.doc.createElement("div"),this._imageEl=F);var $=F.style;if(b){if(t&&n)$.width=x(C*t*h/p)+"px",$.height=x(E*n*f/g)+"px";else{var H=new Image,G=this;H.onload=function(){H.onload=null,t=H.width,n=H.height,$.width=x(C*t*h/p)+"px",$.height=x(E*n*f/g)+"px",G._imageWidth=t,G._imageHeight=n,G._imageSrc=o},H.src=o}U||(U=m.doc.createElement("div"),U.style.overflow="hidden",this._cropEl=U);var Y=U.style;Y.width=x((h+v*h/p)*C),Y.height=x((f+y*f/g)*E),Y.filter=A+".Matrix(Dx="+-v*h/p*C+",Dy="+-y*f/g*E+")",U.parentNode||w.appendChild(U),F.parentNode!==U&&U.appendChild(F)}else $.width=x(C*h)+"px",$.height=x(E*f)+"px",w.appendChild(F),U&&U.parentNode&&(w.removeChild(U),this._cropEl=null);var Z="",q=i.opacity;q<1&&(Z+=".Alpha(opacity="+x(100*q)+") "),Z+=A+".AlphaImageLoader(src="+o+", SizingMethod=scale)",$.filter=Z,w.style.zIndex=V(this.zlevel,this.z,this.z2),O(e,w),null!=i.text&&this.drawRectText(e,this.getBoundingRect())}},h.prototype.onRemove=function(e){L(e,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(e)},h.prototype.onAdd=function(e){O(e,this._vmlEl),this.appendRectText(e)};var G,Y="normal",Z={},q=0,X=100,J=document.createElement("div"),K=function(e){var t=Z[e];if(!t){q>X&&(q=0,Z={});var n,i=J.style;try{i.font=e,n=i.fontFamily.split(",")[0]}catch(o){}t={style:i.fontStyle||Y,variant:i.fontVariant||Y,weight:i.fontWeight||Y,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},Z[e]=t,q++}return t};l.$override("measureText",(function(e,t){var n=m.doc;G||(G=n.createElement("div"),G.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",m.doc.body.appendChild(G));try{G.style.font=t}catch(i){}return G.innerHTML="",G.appendChild(n.createTextNode(e)),{width:G.offsetWidth}}));for(var Q=new a,ee=function(e,t,n,i){var o=this.style;this.__dirty&&u.normalizeTextStyle(o,!0);var a=o.text;if(null!=a&&(a+=""),a){if(o.rich){var s=l.parseRichText(a,o);a=[];for(var c=0;c<s.lines.length;c++){for(var d=s.lines[c].tokens,h=[],f=0;f<d.length;f++)h.push(d[f].text);a.push(h.join(""))}a=a.join("\n")}var p,g,v=o.textAlign,y=o.textVerticalAlign,_=K(o.font),b=_.style+" "+_.variant+" "+_.weight+" "+_.size+'px "'+_.family+'"';n=n||l.getBoundingRect(a,b,v,y,o.textPadding,o.textLineHeight);var w=this.transform;if(w&&!i&&(Q.copy(t),Q.applyTransform(w),t=Q),i)p=t.x,g=t.y;else{var S=o.textPosition;if(S instanceof Array)p=t.x+R(S[0],t.width),g=t.y+R(S[1],t.height),v=v||"left";else{var M=this.calculateTextPosition?this.calculateTextPosition({},o,t):l.calculateTextPosition({},o,t);p=M.x,g=M.y,v=v||M.textAlign,y=y||M.textVerticalAlign}}p=l.adjustTextX(p,n.width,v),g=l.adjustTextY(g,n.height,y),g+=n.height/2;var A,k,P,C=m.createNode,E=this._textVmlEl;E?(P=E.firstChild,A=P.nextSibling,k=A.nextSibling):(E=C("line"),A=C("path"),k=C("textpath"),P=C("skew"),k.style["v-text-align"]="left",T(E),A.textpathok=!0,k.on=!0,E.from="0 0",E.to="1000 0.05",O(E,P),O(E,A),O(E,k),this._textVmlEl=E);var D=[p,g],L=E.style;w&&i?(r(D,D,w),P.on=!0,P.matrix=w[0].toFixed(3)+I+w[2].toFixed(3)+I+w[1].toFixed(3)+I+w[3].toFixed(3)+",0,0",P.offset=(x(D[0])||0)+","+(x(D[1])||0),P.origin="0 0",L.left="0px",L.top="0px"):(P.on=!1,L.left=x(p)+"px",L.top=x(g)+"px"),k.string=N(a);try{k.style.font=b}catch(B){}U(E,"fill",{fill:o.textFill,opacity:o.opacity},this),U(E,"stroke",{stroke:o.textStroke,opacity:o.opacity,lineDash:o.lineDash||null},this),E.style.zIndex=V(this.zlevel,this.z,this.z2),O(e,E)}},te=function(e){L(e,this._textVmlEl),this._textVmlEl=null},ne=function(e){O(e,this._textVmlEl)},ie=[c,d,h,p,f],oe=0;oe<ie.length;oe++){var re=ie[oe].prototype;re.drawRectText=ee,re.removeRectText=te,re.appendRectText=ne}f.prototype.brushVML=function(e){var t=this.style;null!=t.text?this.drawRectText(e,{x:t.x||0,y:t.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(e)},f.prototype.onRemove=function(e){this.removeRectText(e)},f.prototype.onAdd=function(e){this.appendRectText(e)}}},62227:function(e,t,n){n(91862);var i=n(31931),o=i.registerPainter,r=n(85762);o("vml",r)},31931:function(e,t,n){var i=n(78038),o=n(66387),r=n(33051),a=n(48173),s=n(8822),l=n(19847),u=n(76069),c=n(85546),d=!o.canvasSupported,h={canvas:l},f={},p="4.3.1";function g(e,t){var n=new _(i(),e,t);return f[n.id]=n,n}function v(e){if(e)e.dispose();else{for(var t in f)f.hasOwnProperty(t)&&f[t].dispose();f={}}return this}function m(e){return f[e]}function y(e,t){h[e]=t}function x(e){delete f[e]}var _=function(e,t,n){n=n||{},this.dom=t,this.id=e;var i=this,l=new s,f=n.renderer;if(d){if(!h.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&h[f]||(f="canvas");var p=new h[f](t,l,n,e);this.storage=l,this.painter=p;var g=o.node||o.worker?null:new c(p.getViewportRoot(),p.root);this.handler=new a(l,p,g,p.root),this.animation=new u({stage:{update:r.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var v=l.delFromStorage,m=l.addToStorage;l.delFromStorage=function(e){v.call(l,e),e&&e.removeSelfFromZr(i)},l.addToStorage=function(e){m.call(l,e),e.addSelfToZr(i)}};_.prototype={constructor:_,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this._needsRefresh=!0},setBackgroundColor:function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var e;this._needsRefresh&&(e=!0,this.refreshImmediately()),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),e&&this.trigger("rendered")},addHover:function(e,t){if(this.painter.addHover){var n=this.painter.addHover(e,t);return this.refreshHover(),n}},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t){return this.painter.pathToImage(e,t)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},findHover:function(e,t){return this.handler.findHover(e,t)},on:function(e,t,n){this.handler.on(e,t,n)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,x(this.id)}},t.version=p,t.init=g,t.dispose=v,t.getInstance=m,t.registerPainter=y},59391:function(e,t,n){"use strict";function i(e){return{all:e=e||new Map,on:function(t,n){var i=e.get(t);i?i.push(n):e.set(t,[n])},off:function(t,n){var i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var i=e.get(t);i&&i.slice().map((function(e){e(n)})),(i=e.get("*"))&&i.slice().map((function(e){e(t,n)}))}}}n.d(t,{Z:function(){return i}})}}]);
| //# sourceMappingURL=chunk-vendors.3dcbda2d.js.map
|
|