(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{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{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{("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{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)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>>1,o=N(d[i]);oh&&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;gN(e)-N(t))),y=0;ynull==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;he.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;te.__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{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;r1)for(let r=0;r!!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;n0)||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{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-1,i[1]=n<0||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;abt(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{for(let u=l;u{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{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{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;fd?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=ef)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{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;el.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;a6&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>1,e[n[s]]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;f0?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;nt(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!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?`${e}`: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{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(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.lengthJ(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;en=>{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!!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{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;ng(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{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=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=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;n0)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;t0;)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;i0&&(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-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-1&&e%1==0&&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-1&&e%1==0&&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-1&&e%1==0&&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 "'+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;ro[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;w0?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=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=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]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,c0: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();i0?"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:n0?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=e&&(0===t?0:i[t-1][0]).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]=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;a0){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=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){r=i;break}}return i>=0&&i=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;M0&&(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=0;l--)if(i[l]<=t)break;l=Math.min(l,o-2)}else{for(var l=r;lt)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;o0){e.moveTo(n[o++],n[o++]);for(var a=1;a0){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;l0)for(var c=i[l++],d=i[l++],h=1;h0){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]=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]=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].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 "+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=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=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;ai)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;y0?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=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=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;oi[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(;i0;r--)if(!f(n[r-1]))break;for(;o "))},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"+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;d0&&(d?"scale"!==h:"transition"!==f)){for(var v=r.getItemLayout(0),m=1;isNaN(v.startAngle)&&m=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;rl+a)break;if(e[r].y+=i,r>t&&r+1e[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-n0&&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=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=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;g0?"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"+r.map(i,(function(n,i){var o=t.get(t.mapDimension(n.dim),e);return s(n.name+" : "+o)})).join("
")},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=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=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;bd-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;l0;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;u0&&(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(++ra&&(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)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;ar&&(r=l,a=s)}for(var u=0;ur&&(r=u),i.push(u)}for(var c=0;cr&&(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;hw.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=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=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;ty.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=0;l--){var u=o["asc"===i?a-l-1:l].getValue();u/n*ts[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;ao&&(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;fs&&(c=s),a=r}c=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&&lc[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=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=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]),at[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;pm?"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;ff[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&&r0?"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;lt[0][1]&&(t[0][1]=r[0]),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;gi[1]&&(i[1]=t[1])}))})),i[1]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;sr[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;r0?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;r0?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=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=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;ai.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=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=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.spans&&(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=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=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=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+="
"),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;os)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=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=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=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;a1?"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='',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="
"):(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]=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;ae[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[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","≥"][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;ll[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=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;d40&&(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.timea.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&&ti.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;o1?(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>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=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;co*(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=la)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;ln[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=0&&e.call(t,n[o],o)},u.eachEdge=function(e,t){for(var n=this.edges,i=n.length,o=0;o=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=0&&n.node2.dataIndex>=0}));for(o=0,r=i.length;o=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=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=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;nx[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;pM[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=0&&t=0&&ts&&(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=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&ne))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=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=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=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=u&&y<=c||isNaN(y))&&(a[s++]=I)}else for(m=0;me[k][1])&&(A=!1)}A&&(a[s++]=this.getRawIndex(m))}return sw[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;pu-p&&(s=u-p,a.length=s);for(var g=0;gd[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&&st&&(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=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;n0&&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+=''+e.dom+""})),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;ut.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;l0&&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;n0&&(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&&ti&&(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=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)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=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)=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:"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":"\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":"
":"",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;it)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=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;it&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n1)"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[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]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;ro[0]&&h0)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[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>>1;e[o][1]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&&cr&&(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=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||g1&&i>0?s:a}};return r;function a(){return t=e?null:r=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':'':{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];r1)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&&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;i0){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(ud&&(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=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=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=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:t1?"series.multiple.prefix":"series.single.prefix";s+=p(g(f),{seriesCount:r}),t.eachSeries((function(e,t){if(t1?"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>2]|=e[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[i>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=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{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{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=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=nW;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;nc.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{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{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,`${e.value}`);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(++i1))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=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,++it||!r&&ot?(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.valuen.top,r.transform=i<0?-i:0}else r.fixed=e-s.valuer.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=c0;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=0&&e{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;eA.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?ua)&&(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{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{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{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=on&&(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=(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{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=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{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"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{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.lengthMath.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({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;t1&&(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(nt.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(n1&&("*"===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{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=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;oe&&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;aS(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;ni.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=0&&n.splice(i,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,n=0;n15)break}}a.__drawIndex=m,a.__drawIndex0&&e>i[0]){for(s=0;se)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;i0?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=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=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),n=0;n.5?t:e}function h(e,t,n,i,o){var r=e.length;if(1===o)for(var a=0;ao;if(r)e.length=o;else for(var a=i;a=0;n--)if(P[n]<=t)break;n=Math.min(n,b-2)}else{for(n=U;nt)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;en||h+da&&(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||de+h&&c>n+h&&c>r+h&&c>s+h||ct+s&&a>i+s||ae+s&&r>n+s||rt&&u>i&&u>r&&u>s||u1&&y(),h=c.cubicAt(t,i,r,s,m[0]),g>1&&(f=c.cubicAt(t,i,r,s,m[1]))),2===g?_t&&s>i&&s>r||s=0&&u<=1){for(var d=0,h=c.quadraticAt(t,i,r,u),f=0;fn||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;m1&&(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)t+c&&u>i+c&&u>a+c||ue+c&&l>n+c&&l>r+c||lf&&(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=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;rd)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;pr&&O(n,e.substring(r,a)),O(n,i[2],i[1]),r=p.lastIndex}rm)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&&Rt&&r>i||ro?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=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.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;a1&&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;nt.length&&(this._expandData(),t=this.data);for(var n=0;n0&&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&&fl||d>0&&vu||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(;bf)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;ll||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=a&&d+1>=s){for(var h=[],f=0;f=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+11e-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:rr&&(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&&el||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=0&&b=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=0&&x>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<=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=0)o++;return o-t}function r(e,t,n){n--;while(t>>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(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{s=o+1;while(ls&&(l=s);var u=a;a=o-l,l=o-u}a++;while(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(ls&&(l=s);var u=a;a=o-l,l=o-u}else{s=i-o;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}a++;while(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])break;p(e)}}function f(){while(u>1){var e=u-2;e>0&&o[e-1]=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=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=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=0;d--)e[v+d]=e[g+d];e[p]=c[f]}else for(g=p-(u-1),d=0;dh&&(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;a1e-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;u0},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=11?function(){var t,n=this.__clipPaths,i=this.style;if(n)for(var r=0;r=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;uu&&(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;sn-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;$=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;p0&&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;d3&&(o=t.call(o,1));for(var a=n.length,s=0;s4&&(o=t.call(o,1,o.length-1));for(var a=o[o.length-1],s=n.length,l=0;la||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=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(/>\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=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;LN){for(;E0){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;i255?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;i0;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]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')}}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=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.01?U&&(H+=270/k):Math.abs(j-R)<1e-4?U&&HV?A-=270/k:A+=270/k:U&&jR?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;qX&&(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>>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