1234567891011 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],i=["lanDebug","router","worklet"],o="undefined"!==typeof globalThis?globalThis:function(){return this}(),a=["w","x"].join(""),s=o[a],u=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function l(e){return(!u||1154!==u.scene||!i.includes(e))&&(r.indexOf(e)>-1||"function"===typeof s[e])}function c(){var e={};for(var t in s)l(t)&&(e[t]=s[t]);return e}o[a]=c();var h=o[a];t.default=h},10:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},11:function(e,t,n){var r=n(12);function i(e,t,n){return t=r(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},12:function(e,t,n){var r=n(13)["default"],i=n(14);function o(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},13:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},14:function(e,t,n){var r=n(13)["default"];function i(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},15:function(e,t,n){var r=n(16),i=n(17);function o(e,t,n){if(i())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var a=new(e.bind.apply(e,o));return n&&r(a,n.prototype),a}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},16:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},17:function(e,t){function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=n=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},172:function(e,t,n){"use strict";(function(e,r,i){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UniCloudError=void 0;var a=o(n(50)),s=o(n(173)),u=o(n(5)),l=o(n(13)),c=o(n(18)),h=o(n(52)),d=o(n(11)),f=o(n(174)),p=o(n(175)),g=o(n(176)),y=o(n(177)),v=o(n(23)),m=o(n(24)),_=o(n(179));function x(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function b(e,t){if(e){if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e){var t=I();return function(){var n,r=(0,g.default)(e);if(t){var i=(0,g.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,p.default)(this,n)}}function I(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function T(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e||"undefined"!=typeof self&&self;var M=T((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,l=e.min(4*u,i);if(u){for(var c=0;c<u;c+=o)this._doProcessBlock(r,c);var h=r.splice(0,u);n.sigBytes-=l}return new a.init(h,l)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=h.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=r.algo={};return r}(Math),n)})),D=M,O=(T((function(e,t){var n;e.exports=(n=D,function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],f=e[t+2],p=e[t+3],g=e[t+4],y=e[t+5],v=e[t+6],m=e[t+7],_=e[t+8],x=e[t+9],b=e[t+10],w=e[t+11],S=e[t+12],k=e[t+13],A=e[t+14],I=e[t+15],C=o[0],T=o[1],M=o[2],D=o[3];C=l(C,T,M,D,a,7,s[0]),D=l(D,C,T,M,u,12,s[1]),M=l(M,D,C,T,f,17,s[2]),T=l(T,M,D,C,p,22,s[3]),C=l(C,T,M,D,g,7,s[4]),D=l(D,C,T,M,y,12,s[5]),M=l(M,D,C,T,v,17,s[6]),T=l(T,M,D,C,m,22,s[7]),C=l(C,T,M,D,_,7,s[8]),D=l(D,C,T,M,x,12,s[9]),M=l(M,D,C,T,b,17,s[10]),T=l(T,M,D,C,w,22,s[11]),C=l(C,T,M,D,S,7,s[12]),D=l(D,C,T,M,k,12,s[13]),M=l(M,D,C,T,A,17,s[14]),C=c(C,T=l(T,M,D,C,I,22,s[15]),M,D,u,5,s[16]),D=c(D,C,T,M,v,9,s[17]),M=c(M,D,C,T,w,14,s[18]),T=c(T,M,D,C,a,20,s[19]),C=c(C,T,M,D,y,5,s[20]),D=c(D,C,T,M,b,9,s[21]),M=c(M,D,C,T,I,14,s[22]),T=c(T,M,D,C,g,20,s[23]),C=c(C,T,M,D,x,5,s[24]),D=c(D,C,T,M,A,9,s[25]),M=c(M,D,C,T,p,14,s[26]),T=c(T,M,D,C,_,20,s[27]),C=c(C,T,M,D,k,5,s[28]),D=c(D,C,T,M,f,9,s[29]),M=c(M,D,C,T,m,14,s[30]),C=h(C,T=c(T,M,D,C,S,20,s[31]),M,D,y,4,s[32]),D=h(D,C,T,M,_,11,s[33]),M=h(M,D,C,T,w,16,s[34]),T=h(T,M,D,C,A,23,s[35]),C=h(C,T,M,D,u,4,s[36]),D=h(D,C,T,M,g,11,s[37]),M=h(M,D,C,T,m,16,s[38]),T=h(T,M,D,C,b,23,s[39]),C=h(C,T,M,D,k,4,s[40]),D=h(D,C,T,M,a,11,s[41]),M=h(M,D,C,T,p,16,s[42]),T=h(T,M,D,C,v,23,s[43]),C=h(C,T,M,D,x,4,s[44]),D=h(D,C,T,M,S,11,s[45]),M=h(M,D,C,T,I,16,s[46]),C=d(C,T=h(T,M,D,C,f,23,s[47]),M,D,a,6,s[48]),D=d(D,C,T,M,m,10,s[49]),M=d(M,D,C,T,A,15,s[50]),T=d(T,M,D,C,y,21,s[51]),C=d(C,T,M,D,S,6,s[52]),D=d(D,C,T,M,p,10,s[53]),M=d(M,D,C,T,b,15,s[54]),T=d(T,M,D,C,u,21,s[55]),C=d(C,T,M,D,_,6,s[56]),D=d(D,C,T,M,I,10,s[57]),M=d(M,D,C,T,v,15,s[58]),T=d(T,M,D,C,k,21,s[59]),C=d(C,T,M,D,g,6,s[60]),D=d(D,C,T,M,w,10,s[61]),M=d(M,D,C,T,f,15,s[62]),T=d(T,M,D,C,x,21,s[63]),o[0]=o[0]+C|0,o[1]=o[1]+T|0,o[2]=o[2]+M|0,o[3]=o[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function c(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5)})),T((function(e,t){var n;e.exports=(n=D,void function(){var e=n,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,u=a.words,l=0;l<n;l++)s[l]^=1549556828,u[l]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}())})),T((function(e,t){e.exports=D.HmacMD5}))),P=T((function(e,t){e.exports=D.enc.Utf8})),L=T((function(e,t){var n;e.exports=(n=D,function(){var e=n,t=e.lib.WordArray;function r(e,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,u=r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=(s|u)<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),E="FUNCTION",R="OBJECT",N="CLIENT_DB",B="pending",F="fulfilled",j="rejected";function z(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function U(e){return"object"===z(e)}function V(e){return"function"==typeof e}function q(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}var $="REJECTED",H="NOT_PENDING",W=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,r=t.retryRule,i=void 0===r?$:r;(0,v.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=i}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case $:return this.status===j;case H:return this.status!==B}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=B,this.promise=this.createPromise().then((function(t){return e.status=F,Promise.resolve(t)}),(function(t){return e.status=j,Promise.reject(t)})),this.promise):this.promise}}]),e}();function G(e){return e&&"string"==typeof e?JSON.parse(e):e}var K=!0,X="mp-weixin",Y=!1,J=G([]),Z="h5"===X?"web":"app-plus"===X?"app":X,Q=G(void 0),ee=G([])||[],te=!0;try{(n(180).default||n(180)).appid}catch(Ti){}var ne={};function re(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=ne,n=e,Object.prototype.hasOwnProperty.call(t,n)||(ne[e]=r),ne[e]}"app"===Z&&(ne=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var ie=["invoke","success","fail","complete"],oe=re("_globalUniCloudInterceptor");function ae(e,t){oe[e]||(oe[e]={}),U(t)&&Object.keys(t).forEach((function(n){ie.indexOf(n)>-1&&function(e,t,n){var r=oe[e][t];r||(r=oe[e][t]=[]),-1===r.indexOf(n)&&V(n)&&r.push(n)}(e,n,t[n])}))}function se(e,t){oe[e]||(oe[e]={}),U(t)?Object.keys(t).forEach((function(n){ie.indexOf(n)>-1&&function(e,t,n){var r=oe[e][t];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,1)}}(e,n,t[n])})):delete oe[e]}function ue(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function le(e,t){return oe[e]&&oe[e][t]||[]}function ce(e){ae("callObject",e)}var he=re("_globalUniCloudListener"),de="response",fe="needLogin",pe="refreshToken",ge="clientdb",ye="cloudfunction",ve="cloudobject";function me(e){return he[e]||(he[e]=[]),he[e]}function _e(e,t){var n=me(e);n.includes(t)||n.push(t)}function xe(e,t){var n=me(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function be(e,t){for(var n=me(e),r=0;r<n.length;r++)(0,n[r])(t)}var we,Se=!1;function ke(){return we||(we=new Promise((function(e){Se&&e(),function t(){if("function"==typeof getCurrentPages){var n=getCurrentPages();n&&n[0]&&(Se=!0,e())}Se||setTimeout((function(){t()}),30)}()})),we)}function Ae(e){var t={};for(var n in e){var r=e[n];V(r)&&(t[n]=q(r))}return t}var Ie=function(e){(0,f.default)(n,e);var t=A(n);function n(e){var r;return(0,v.default)(this,n),r=t.call(this,e.message),r.errMsg=e.message||e.errMsg||"unknown system error",r.code=r.errCode=e.code||e.errCode||"SYSTEM_ERROR",r.errSubject=r.subject=e.subject||e.errSubject,r.cause=e.cause,r.requestId=e.requestId,r}return(0,m.default)(n,[{key:"toJson",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),n}((0,y.default)(Error));t.UniCloudError=Ie;var Ce,Te,Me={request:function(e){return r.request(e)},uploadFile:function(e){return r.uploadFile(e)},setStorageSync:function(e,t){return r.setStorageSync(e,t)},getStorageSync:function(e){return r.getStorageSync(e)},removeStorageSync:function(e){return r.removeStorageSync(e)},clearStorageSync:function(){return r.clearStorageSync()},connectSocket:function(e){return r.connectSocket(e)}};function De(){return{token:Me.getStorageSync("uni_id_token")||Me.getStorageSync("uniIdToken"),tokenExpired:Me.getStorageSync("uni_id_token_expired")}}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&Me.setStorageSync("uni_id_token",t),n&&Me.setStorageSync("uni_id_token_expired",n)}function Pe(){return Ce||(Ce=r.getSystemInfoSync()),Ce}function Le(){var e,t;try{if(r.getLaunchOptionsSync){if(r.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=r.getLaunchOptionsSync(),i=n.scene,o=n.channel;e=o,t=i}}catch(e){}return{channel:e,scene:t}}var Ee={};function Re(){var e=r.getLocale&&r.getLocale()||"en";if(Te)return k(k(k({},Ee),Te),{},{locale:e,LOCALE:e});var t=Pe(),n=t.deviceId,i=t.osName,o=t.uniPlatform,a=t.appId,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(var u in t)Object.hasOwnProperty.call(t,u)&&-1===s.indexOf(u)&&delete t[u];return Te=k(k({PLATFORM:o,OS:i,APPID:a,DEVICEID:n},Le()),t),k(k(k({},Ee),Te),{},{locale:e,LOCALE:e})}var Ne,Be={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),O(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={}),K&&"web"===Z&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){var i=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",o=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return r(new Ie({code:i,message:o,requestId:t}))}var a=e.data;if(a.error)return r(new Ie({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))},toBase64:function(e){return L.stringify(P.parse(e))}},Fe=function(){function e(t){var n=this;(0,v.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Me,this._getAccessTokenPromiseHub=new W({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new Ie({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:H})}return(0,m.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return Be.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Be.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Be.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,h.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(k(k({},this.setupRequest(t)),{},{timeout:e.timeout}))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var l=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):u(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new Ie({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r,i,o,s,u,l,c,h,d,f,p,g,y,v,m,_,x,b,w,S,k;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=t.fileType,o=void 0===i?"image":i,s=t.cloudPathAsRealPath,u=void 0!==s&&s,l=t.onUploadProgress,c=t.config,"string"===z(r)){e.next=3;break}throw new Ie({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){e.next=5;break}throw new Ie({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new Ie({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(h=c&&c.envType||this.config.envType,!(u&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){e.next=10;break}throw new Ie({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:h,filename:u?r.split("/").pop():r,fileId:u?r:void 0});case 12:return d=e.sent.result,f="https://"+d.cdnDomain+"/"+d.ossPath,p=d.securityToken,g=d.accessKeyId,y=d.signature,v=d.host,m=d.ossPath,_=d.id,x=d.policy,b=d.ossCallbackUrl,w={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:g,Signature:y,host:v,id:_,key:m,policy:x,success_action_status:200},p&&(w["x-oss-security-token"]=p),b&&(S=JSON.stringify({callbackUrl:b,callbackBody:JSON.stringify({fileId:_,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),w.callback=Be.toBase64(S)),k={url:"https://"+d.host,formData:w,fileName:"file",name:"file",filePath:n,fileType:o},e.next=27,this.uploadFileToOSS(Object.assign({},k,{onUploadProgress:l}));case 27:if(!b){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:f});case 29:return e.next=31,this.reportOSSUpload({id:_});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:f});case 33:throw new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,n){Array.isArray(t)&&0!==t.length||n(new Ie({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n,r,i=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new Ie({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(r));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}(),je={init:function(e){var t=new Fe(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},ze="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Ne||(Ne={}));var Ue,Ve=function(){},qe=T((function(e,t){var n;e.exports=(n=D,function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),u[i]=n(e.pow(r,1/3)),i++),r++}();var l=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5],h=n[6],d=n[7],f=0;f<64;f++){if(f<16)l[f]=0|e[t+f];else{var p=l[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=l[f-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;l[f]=g+l[f-7]+v+l[f-16]}var m=r&i^r&o^i&o,_=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+u[f]+l[f];d=h,h=c,c=s,s=a+x|0,a=o,o=i,i=r,r=x+(_+m)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+h|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)})),$e=qe,He=T((function(e,t){e.exports=D.HmacSHA256})),We=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new Ie({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};function Ge(e){return void 0===e}function Ke(e){return"[object Null]"===Object.prototype.toString.call(e)}function Xe(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=x(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.isMatch,s=o.genAdapter,u=o.runtime;if(a())return{adapter:s(),runtime:u}}}catch(l){i.e(l)}finally{i.f()}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Ue||(Ue={}));var Ye={adapter:null,runtime:void 0},Je=["anonymousUuidKey"],Ze=function(e){(0,f.default)(n,e);var t=A(n);function n(){var e;return(0,v.default)(this,n),e=t.call(this),Ye.adapter.root.tcbObject||(Ye.adapter.root.tcbObject={}),e}return(0,m.default)(n,[{key:"setItem",value:function(e,t){Ye.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Ye.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Ye.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Ye.adapter.root.tcbObject}}]),n}(Ve);function Qe(e,t){switch(e){case"local":return t.localStorage||new Ze;case"none":return new Ze;default:return t.sessionStorage||new Ze}}var et=function(){function e(t){if((0,v.default)(this,e),!this._storage){this._persistence=Ye.adapter.primaryStorage||t.persistence,this._storage=Qe(this._persistence,Ye.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),o="anonymous_uuid_".concat(t.env),a="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:i,anonymousUuidKey:o,loginTypeKey:a,userInfoKey:s}}}return(0,m.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=Qe(e,Ye.adapter);for(var r in this.keys){var i=this.keys[r];if(!t||!Je.includes(r)){var o=this._storage.getItem(i);Ge(o)||Ke(o)||(n.setItem(i,o),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},i=JSON.stringify(r);try{this._storage.setItem(e,i)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),tt={},nt={};function rt(e){return tt[e]}var it=(0,m.default)((function e(t,n){(0,v.default)(this,e),this.data=n||null,this.name=t})),ot=function(e){(0,f.default)(n,e);var t=A(n);function n(e,r){var i;return(0,v.default)(this,n),i=t.call(this,"error",{error:e,data:r}),i.error=e,i}return(0,m.default)(n)}(it),at=new(function(){function e(){(0,v.default)(this,e),this._listeners={}}return(0,m.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof ot)return console.error(e.error),this;var n="string"==typeof e?new it(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var i,o=this._listeners[r]?(0,c.default)(this._listeners[r]):[],a=x(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.call(this,n)}}catch(u){a.e(u)}finally{a.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function st(e,t){at.on(e,t)}function ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};at.fire(e,t)}function lt(e,t){at.off(e,t)}var ct,ht="loginStateChanged",dt="loginStateExpire",ft="loginTypeChanged",pt="anonymousConverted",gt="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(ct||(ct={}));var yt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],vt={"X-SDK-Version":"1.3.5"};function mt(e,t,n){var r=e[t];e[t]=function(t){var i={},o={};n.forEach((function(n){var r=n.call(e,t),a=r.data,s=r.headers;Object.assign(i,a),Object.assign(o,s)}));var a=t.data;return a&&function(){var e;if(e=a,"[object FormData]"!==Object.prototype.toString.call(e))t.data=k(k({},a),i);else for(var n in i)a.append(n,i[n])}(),t.headers=k(k({},t.headers||{}),o),r.call(e,t)}}function _t(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:k(k({},vt),{},{"x-seqid":e})}}var xt=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,v.default)(this,e),this.config=n,this._reqClass=new Ye.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=rt(this.config.env),this._localCache=(t=this.config.env,nt[t]),mt(this._reqClass,"post",[_t]),mt(this._reqClass,"upload",[_t]),mt(this._reqClass,"download",[_t])}return(0,m.default)(e,[{key:"post",value:function(){var e=(0,h.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upload",value:function(){var e=(0,h.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"download",value:function(){var e=(0,h.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refreshAccessToken",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"_refreshAccessToken",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n,r,i,o,s,u,l,c,h,d,f,p;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,o=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),u=this._cache.getStore(i),u){e.next=5;break}throw new Ie({message:"未登录CloudBase"});case 5:return l={refresh_token:u},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",l);case 8:if(c=e.sent,!c.data.code){e.next=21;break}if(h=c.data.code,"SIGN_PARAM_INVALID"!==h&&"REFRESH_TOKEN_EXPIRED"!==h&&"INVALID_REFRESH_TOKEN"!==h){e.next=20;break}if(this._cache.getStore(o)!==ct.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==h){e.next=19;break}return d=this._cache.getStore(s),f=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:f});case 17:return p=e.sent,e.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:ut(dt),this._cache.removeStore(i);case 20:throw new Ie({code:c.data.code,message:"刷新access token失败:".concat(c.data.code)});case 21:if(!c.data.access_token){e.next=23;break}return e.abrupt("return",(ut(gt),this._cache.setStore(n,c.data.access_token),this._cache.setStore(r,c.data.access_token_expire+Date.now()),{accessToken:c.data.access_token,accessTokenExpire:c.data.access_token_expire}));case 23:c.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,c.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAccessToken",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n,r,i,o,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new Ie({message:"refresh token不存在,登录状态异常"});case 3:if(o=this._cache.getStore(n),s=this._cache.getStore(r),u=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(o,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}u=!1;case 12:return e.abrupt("return",(!o||!s||s<Date.now())&&u?this.refreshAccessToken():{accessToken:o,accessTokenExpire:s});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"request",value:function(){var e=(0,h.default)(a.default.mark((function e(t,n,r){var i,o,s,u,l,c,h,d,f,p,g,y,v,m,_,x;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i="x-tcb-trace_".concat(this.config.env),o="application/x-www-form-urlencoded",s=k({action:t,env:this.config.env,dataVersion:"2019-08-16"},n),-1!==yt.indexOf(t)){e.next=10;break}if(u=this._cache.keys.refreshTokenKey,e.t0=this._cache.getStore(u),!e.t0){e.next=10;break}return e.next=9,this.getAccessToken();case 9:s.access_token=e.sent.accessToken;case 10:if("storage.uploadFile"===t){for(c in l=new FormData,l)l.hasOwnProperty(c)&&void 0!==l[c]&&l.append(c,s[c]);o="multipart/form-data"}else for(h in o="application/json",l={},s)void 0!==s[h]&&(l[h]=s[h]);return d={headers:{"content-type":o}},r&&r.timeout&&(d.timeout=r.timeout),r&&r.onUploadProgress&&(d.onUploadProgress=r.onUploadProgress),f=this._localCache.getStore(i),f&&(d.headers["X-TCB-Trace"]=f),p=n.parse,g=n.inQuery,y=n.search,v={env:this.config.env},p&&(v.parse=!0),g&&(v=k(k({},g),v)),m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),i="";for(var o in n)""===i?!r&&(t+="?"):i+="&",i+="".concat(o,"=").concat(encodeURIComponent(n[o]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(ze,"//tcb-api.tencentcloudapi.com/web",v),y&&(m+=y),e.next=22,this.post(k({url:m,data:l},d));case 22:if(_=e.sent,x=_.header&&_.header["x-tcb-trace"],x&&this._localCache.setStore(i,x),(200===Number(_.status)||200===Number(_.statusCode))&&_.data){e.next=26;break}throw new Ie({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",_);case 27:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"send",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r,i,o,s=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},r=s.length>2&&void 0!==s[2]?s[2]:{},e.next=4,this.request(t,n,k(k({},r),{},{onUploadProgress:n.onUploadProgress}));case 4:if(i=e.sent,"ACCESS_TOKEN_EXPIRED"!==i.data.code||-1!==yt.indexOf(t)){e.next=14;break}return e.next=8,this.refreshAccessToken();case 8:return e.next=10,this.request(t,n,k(k({},r),{},{onUploadProgress:n.onUploadProgress}));case 10:if(o=e.sent,!o.data.code){e.next=13;break}throw new Ie({code:o.data.code,message:o.data.message});case 13:return e.abrupt("return",o.data);case 14:if(!i.data.code){e.next=16;break}throw new Ie({code:i.data.code,message:i.data.message});case 16:return e.abrupt("return",i.data);case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}}]),e}(),bt={};function wt(e){return bt[e]}var St=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=rt(t.env),this._request=wt(t.env)}return(0,m.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),kt=function(){function e(t){if((0,v.default)(this,e),!t)throw new Ie({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=rt(this._envId),this._request=wt(this._envId),this.setUserInfo()}return(0,m.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new Ie({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new Ie({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n,r,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,i=n.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r,i,o,s,u,l,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,i=t.avatarUrl,o=t.province,s=t.country,u=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:o,country:s,city:u});case 8:l=e.sent,c=l.data,this.setLocalUserInfo(c);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refresh",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),At=function(){function e(t){if((0,v.default)(this,e),!t)throw new Ie({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=rt(t);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,o=n.accessTokenExpireKey,a=this._cache.getStore(r),s=this._cache.getStore(i),u=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:u},this.user=new kt(t)}return(0,m.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===ct.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===ct.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===ct.WECHAT||this.loginType===ct.WECHAT_OPEN||this.loginType===ct.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),It=function(e){(0,f.default)(n,e);var t=A(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n,r,i,o,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,r=t.refreshTokenKey,i=this._cache.getStore(n)||void 0,o=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:o});case 8:if(s=e.sent,!s.uuid||!s.refresh_token){e.next=20;break}return this._setAnonymousUUID(s.uuid),this.setRefreshToken(s.refresh_token),e.next=14,this._request.refreshAccessToken();case 14:return ut(ht),ut(ft,{env:this.config.env,loginType:ct.ANONYMOUS,persistence:"local"}),u=new At(this.config.env),e.next=19,u.user.refresh();case 19:return e.abrupt("return",u);case 20:throw new Ie({message:"匿名登录失败"});case 21:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r,i,o,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,o=this._cache.getStore(r),s=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:s,ticket:t});case 7:if(u=e.sent,!u.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(u.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return ut(pt,{env:this.config.env}),ut(ft,{loginType:ct.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:u.refresh_token}});case 16:throw new Ie({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,ct.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(St),Ct=function(e){(0,f.default)(n,e);var t=A(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Ie({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return ut(ht),ut(ft,{env:this.config.env,loginType:ct.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new At(this.config.env));case 15:throw new Ie({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),n}(St),Tt=function(e){(0,f.default)(n,e);var t=A(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,h.default)(a.default.mark((function e(t,n){var r,i,o,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Ie({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=e.sent,o=i.refresh_token,s=i.access_token,u=i.access_token_expire,!o){e.next=22;break}if(this.setRefreshToken(o),!s||!u){e.next=15;break}this.setAccessToken(s,u),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return ut(ht),ut(ft,{env:this.config.env,loginType:ct.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new At(this.config.env));case 22:throw i.code?new Ie({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new Ie({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"activate",value:function(){var e=(0,h.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"resetPasswordWithToken",value:function(){var e=(0,h.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(St),Mt=function(e){(0,f.default)(n,e);var t=A(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,h.default)(a.default.mark((function e(t,n){var r,i,o,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Ie({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:ct.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=e.sent,o=i.refresh_token,s=i.access_token_expire,u=i.access_token,!o){e.next=23;break}if(this.setRefreshToken(o),!u||!s){e.next=16;break}this.setAccessToken(u,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return ut(ht),ut(ft,{env:this.config.env,loginType:ct.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new At(this.config.env));case 23:throw i.code?new Ie({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new Ie({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(St),Dt=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=rt(t.env),this._request=wt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),st(ft,this._onLoginTypeChanged)}return(0,m.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new It(this.config)}},{key:"customAuthProvider",value:function(){return new Ct(this.config)}},{key:"emailAuthProvider",value:function(){return new Tt(this.config)}},{key:"usernameAuthProvider",value:function(){return new Mt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,h.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new It(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,h.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Tt(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new Mt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,h.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new It(this.config)),st(pt,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"signOut",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n,r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==ct.ANONYMOUS){e.next=2;break}throw new Ie({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,o=this._cache.getStore(n),o){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:o});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),ut(ht),ut(ft,{env:this.config.env,loginType:ct.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,h.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,h.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onLoginStateChanged",value:function(e){var t=this;st(ht,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){st(dt,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){st(gt,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){st(pt,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;st(ft,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,h.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new At(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Ie({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,h.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Ct(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:k(k({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,r=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),Ot=function(e,t){t=t||We();var n=wt(this.config.env),r=e.cloudPath,i=e.filePath,o=e.onUploadProgress,a=e.fileType,s=void 0===a?"image":a;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var a=e.data,u=a.url,l=a.authorization,c=a.token,h=a.fileId,d=a.cosFileId,f=e.requestId,p={key:r,signature:l,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":c};n.upload({url:u,data:p,file:i,name:r,fileType:s,onUploadProgress:o}).then((function(e){201===e.statusCode?t(null,{fileID:h,requestId:f}):t(new Ie({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},Pt=function(e,t){t=t||We();var n=wt(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},Lt=function(e,t){var n=e.fileList;if(t=t||We(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,i=x(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var a={fileid_list:n};return wt(this.config.env).send("storage.batchDeleteFile",a).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},Et=function(e,t){var n=e.fileList;t=t||We(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,i=[],o=x(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;"object"==(0,l.default)(a)?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?i.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(u){o.e(u)}finally{o.f()}var s={file_list:i};return wt(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},Rt=function(){var e=(0,h.default)(a.default.mark((function e(t,n){var r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,Et.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",n?n(i):new Promise((function(e){e(i)})));case 6:if(o=wt(this.config.env),s=i.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",o.download({url:s}));case 10:return e.t0=n,e.next=13,o.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),Nt=function(e,t){var n,r=e.name,i=e.data,o=e.query,a=e.parse,s=e.search,u=e.timeout,l=t||We();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new Ie({code:"PARAM_ERROR",message:"函数名不能为空"}));var c={inQuery:o,parse:a,search:s,function_name:r,request_data:n};return wt(this.config.env).send("functions.invokeFunction",c,{timeout:u}).then((function(e){if(e.code)l(null,e);else{var t=e.data.response_data;if(a)l(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),l(null,{result:t,requestId:e.requestId})}catch(e){l(new Ie({message:"response data must be json"}))}}return l.promise})).catch((function(e){l(e)})),l.promise},Bt={timeout:15e3,persistence:"session"},Ft={},jt=function(){function e(t){(0,v.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,m.default)(e,[{key:"init",value:function(t){switch(Ye.adapter||(this.requestClient=new Ye.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=k(k({},Bt),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,r=t||Ye.adapter.primaryStorage||Bt.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;tt[t]=new et(e),nt[t]=new et(k(k({},e),{},{persistence:"local"}))}(this.config),n=this.config,bt[n.env]=new xt(n),this.authObj=new Dt(this.config),this.authObj}},{key:"on",value:function(e,t){return st.apply(this,[e,t])}},{key:"off",value:function(e,t){return lt.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return Nt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return Lt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return Et.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return Rt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return Ot.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return Pt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Ft[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,h.default)(a.default.mark((function e(t,n){var r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=Ft[t],r){e.next=3;break}throw new Ie({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"useAdapters",value:function(e){var t=Xe(e)||{},n=t.adapter,r=t.runtime;n&&(Ye.adapter=n),r&&(Ye.runtime=r)}}]),e}(),zt=new jt;function Ut(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var o in n)""===i?!r&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var Vt=function(){function e(){(0,v.default)(this,e)}return(0,m.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers,i=e.timeout;return new Promise((function(e,o){Me.request({url:Ut("https:",t),data:n,method:"POST",header:r,timeout:i,success:function(t){e(t)},fail:function(e){o(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,i=e.file,o=e.data,a=e.headers,s=e.fileType,u=Me.uploadFile({url:Ut("https:",r),name:"file",formData:Object.assign({},o),filePath:i,fileType:s,header:a,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),qt={setItem:function(e,t){Me.setStorageSync(e,t)},getItem:function(e){return Me.getStorageSync(e)},removeItem:function(e){Me.removeStorageSync(e)},clear:function(){Me.clearStorageSync()}},$t={genAdapter:function(){return{root:{},reqClass:Vt,localStorage:qt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};zt.useAdapters($t);var Ht=zt,Wt=Ht.init;Ht.init=function(e){e.env=e.spaceId;var t=Wt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=Ae(e),r=t.success,i=t.fail,o=t.complete;if(!(r||i||o))return n.call(this,e);n.call(this,e).then((function(e){r&&r(e),o&&o(e)}),(function(e){i&&i(e),o&&o(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Gt=Ht;function Kt(e,t){return Xt.apply(this,arguments)}function Xt(){return Xt=(0,h.default)(a.default.mark((function e(t,n){var r,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="http://".concat(t,":").concat(n,"/system/ping"),e.prev=1,e.next=4,o={url:r,timeout:500},new Promise((function(e,t){Me.request(k(k({},o),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return i=e.sent,e.abrupt("return",!(!i.data||0!==i.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),Xt.apply(this,arguments)}function Yt(e,t){return Jt.apply(this,arguments)}function Jt(){return Jt=(0,h.default)(a.default.mark((function e(t,n){var r,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<t.length)){e.next=11;break}return o=t[i],e.next=5,Kt(o,n);case 5:if(!e.sent){e.next=8;break}return r=o,e.abrupt("break",11);case 8:i++,e.next=1;break;case 11:return e.abrupt("return",{address:r,port:n});case 12:case"end":return e.stop()}}),e)}))),Jt.apply(this,arguments)}var Zt={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"},Qt=function(){function e(t){if((0,v.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),!t.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},t),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=Me}return(0,m.default)(e,[{key:"request",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r,i=this,o=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=!(o.length>1&&void 0!==o[1])||o[1],r=K&&n,!r){e.next=8;break}return e.next=5,this.setupLocalRequest(t);case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=this.setupRequest(t);case 9:return t=e.t0,e.abrupt("return",Promise.resolve().then((function(){return r?i.requestLocal(t):Be.wrappedRequest(t,i.adapter.request)})));case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"requestLocal",value:function(e){var t=this;return new Promise((function(n,r){t.adapter.request(Object.assign(e,{complete:function(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){var t=e.data&&e.data.code||"SYS_ERR",i=e.data&&e.data.message||"request:fail";return r(new Ie({code:t,message:i}))}n({success:!0,result:e.data})}}))}))}},{key:"setupRequest",value:function(e){var t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=Be.sign(t,this.config.clientSecret);var r=Re();n["x-client-info"]=encodeURIComponent(JSON.stringify(r));var i=De(),o=i.token;return n["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"setupLocalRequest",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r,i,o,s,u,l,c,h;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Re(),r=De(),i=r.token,o=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:n,token:i}),s=this.__dev__&&this.__dev__.debugInfo||{},u=s.address,l=s.servePort,e.next=9,Yt(u,l);case 9:return c=e.sent,h=c.address,e.abrupt("return",{url:"http://".concat(h,":").concat(l,"/").concat(Zt[t.method]),method:"POST",data:o,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))});case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}},{key:"getUploadFileOptions",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}},{key:"reportUploadFile",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,i=e.cloudPath,o=e.fileType,a=void 0===o?"image":o,s=e.onUploadProgress;if(!i)throw new Ie({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getUploadFileOptions({cloudPath:i}).then((function(e){var i=e.result,o=i.url,u=i.formData,l=i.name;return t=e.result.fileUrl,new Promise((function(e,t){var i=n.adapter.uploadFile({url:o,formData:u,name:l,filePath:r,fileType:a,success:function(n){n&&n.statusCode<400?e(n):t(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){t(new Ie({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&i&&"function"==typeof i.onProgressUpdate&&i.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((function(){return n.reportUploadFile({cloudPath:i})})).then((function(e){return new Promise((function(n,i){e.success?n({success:!0,filePath:r,fileID:t}):i(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(n).then((function(e){if(e.success)return e.result;throw new Ie({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new Ie({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(r).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new Ie({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),e}(),en={init:function(e){var t=new Qt(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},tn=T((function(e,t){e.exports=D.enc.Hex}));function nn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function rn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,r=t.functionName,i=t.method,o=t.headers,a=t.signHeaderKeys,s=void 0===a?[]:a,l=t.config,c=Date.now(),h=nn(),d=Object.assign({},o,{"x-from-app-id":l.spaceAppId,"x-from-env-id":l.spaceId,"x-to-env-id":l.spaceId,"x-from-instance-id":c,"x-from-function-name":r,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":h,"x-alipay-callid":h,"x-trace-id":h}),f=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),p=e.split("?")||[],g=(0,u.default)(p,2),y=g[0],v=void 0===y?"":y,m=g[1],_=void 0===m?"":m,x=function(e){var t=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),r=$e(e.body).toString(tn),i="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(t,"\n").concat(r,"\n"),o=$e(i).toString(tn),a="HMAC-SHA256\n".concat(e.timestamp,"\n").concat(o,"\n"),s=He(a,e.secretKey).toString(tn);return"HMAC-SHA256 Credential=".concat(e.secretId,", SignedHeaders=").concat(t,", Signature=").concat(s)}({path:v,query:_,method:i,headers:d,timestamp:c,body:JSON.stringify(n),secretId:l.accessKey,secretKey:l.secretKey,signedHeaders:f.sort()});return{url:"".concat(l.endpoint).concat(e),headers:Object.assign({},d,{Authorization:x})}}function on(e){var t=e.url,n=e.data,r=e.method,i=void 0===r?"POST":r,o=e.headers,a=void 0===o?{}:o,s=e.timeout;return new Promise((function(e,r){Me.request({url:t,method:i,data:"object"==(0,l.default)(n)?JSON.stringify(n):n,header:a,dataType:"json",timeout:s,complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var i=t.data||{},o=i.message,s=i.errMsg,u=i.trace_id;return r(new Ie({code:"SYS_ERR",message:o||s||"request:fail",requestId:u||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function an(e,t){var n=e.path,r=e.data,i=e.method,o=void 0===i?"GET":i,a=rn(n,{functionName:"",data:r,method:o,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=a.url,u=a.headers;return on({url:s,data:r,method:o,headers:u}).then((function(e){var t=e.data||{};if(!t.success)throw new Ie({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new Ie({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function sn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new Ie({code:"INVALID_PARAM",message:"fileID不合法"});var r=t.substring(0,n),i=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function un(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var ln=function(){function e(t){(0,v.default)(this,e),this.config=t}return(0,m.default)(e,[{key:"signedURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/ws/function/".concat(e),r=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),i=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:nn(),timestamp:""+Date.now()}),o=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return i[e]?"".concat(e,"=").concat(i[e]):null})).filter(Boolean).join("&"),"host:".concat(r)].join("\n"),a=["HMAC-SHA256",$e(o).toString(tn)].join("\n"),s=He(a,this.config.secretKey).toString(tn),u=Object.keys(i).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(i[e]))})).join("&");return"".concat(this.config.wsEndpoint).concat(n,"?").concat(u,"&signature=").concat(s)}}]),e}(),cn=function(){function e(t){if((0,v.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn"),wsEndpoint:t.wsEndpoint||"wss://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")}),this._websocket=new ln(this.config)}return(0,m.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,r=e.data,i=e.async,o=void 0!==i&&i,a=e.timeout,s="POST",u={"x-to-function-name":n};o&&(u["x-function-invoke-type"]="async");var l=rn("/functions/invokeFunction",{functionName:n,data:r,method:s,headers:u,signHeaderKeys:["x-to-function-name"],config:t}),c=l.url,h=l.headers;return on({url:c,data:r,method:s,headers:h,timeout:a}).then((function(e){var t=0;if(o){var n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new Ie({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((function(e){throw new Ie({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,r=e.fileType,i=e.formData,o=e.onUploadProgress;return new Promise((function(e,a){var s=Me.uploadFile({url:t,filePath:n,fileType:r,formData:i,name:"file",success:function(t){t&&t.statusCode<400?e(t):a(new Ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){a(new Ie({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r,i,o,s,u,l,c,h,d,f;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=void 0===r?"":r,o=t.fileType,s=void 0===o?"image":o,u=t.onUploadProgress,"string"===z(i)){e.next=3;break}throw new Ie({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){e.next=5;break}throw new Ie({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new Ie({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,an({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return l=e.sent,c=l.file_id,h=l.upload_url,d=l.form_data,f=d&&d.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:h,filePath:n,fileType:s,formData:f,onUploadProgress:u}).then((function(){return{fileID:c}})));case 15:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getTempFileURL",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&t(new Ie({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),n.length>50&&t(new Ie({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));var i,o=[],a=x(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;"string"!==z(s)&&t(new Ie({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));var u=sn.call(r,s);o.push({file_id:u,expire:600})}}catch(l){a.e(l)}finally{a.f()}an({path:"/?download_url",data:{file_list:o},method:"POST"},r.config).then((function(t){var n=t.file_list,i=void 0===n?[]:n;e({fileList:i.map((function(e){return{fileID:un.call(r,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"connectWebSocket",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,r=t.query,e.abrupt("return",Me.connectSocket({url:this._websocket.signedURL(n,r),complete:function(){}}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}(),hn={init:function(e){e.provider="alipay";var t=new cn(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function dn(e){var t,n=e.data;t=Re();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var i=De(),o=i.token;o&&(r.uniIdToken=o)}return r}function fn(){return pn.apply(this,arguments)}function pn(){return pn=(0,h.default)(a.default.mark((function e(){var t,n,r,i,o,s,u,l,c=this,h=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=h.length>0&&void 0!==h[0]?h[0]:{},e.next=3,this.__dev__.initLocalNetwork();case 3:return n=this.__dev__,r=n.localAddress,i=n.localPort,o={aliyun:"aliyun",tencent:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],s=this.config.spaceId,u="http://".concat(r,":").concat(i,"/system/check-function"),l="http://".concat(r,":").concat(i,"/cloudfunctions/").concat(t.name),e.abrupt("return",new Promise((function(e,n){Me.request({method:"POST",url:u,data:{name:t.name,platform:Z,provider:o,spaceId:s},timeout:3e3,success:function(t){e(t)},fail:function(){e({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=t||{},r=n.code,i=n.message;return{code:0===r?0:r||"SYS_ERR",message:i||"SYS_ERR"}})).then((function(e){var n=e.code,r=e.message;if(0!==n){switch(n){case"MODULE_ENCRYPTED":console.error("此云函数(".concat(t.name,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":console.error("此云函数(".concat(t.name,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":console.error(r||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":console.error(r||"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下");break;case"SWITCH_TO_CLOUD":break;default:var i="检测本地调试服务出现错误:".concat(r,",请检查网络环境或重启客户端再试");throw console.error(i),new Error(i)}return c._callCloudFunction(t)}return new Promise((function(e,n){var r=dn.call(c,{data:t.data});Me.request({method:"POST",url:l,data:{provider:o,platform:Z,param:r},timeout:t.timeout,success:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.statusCode,i=t.data;return!r||r>=400?n(new Ie({code:i.code||"SYS_ERR",message:i.message||"request:fail"})):e({result:i})},fail:function(e){n(new Ie({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))})));case 5:case"end":return e.stop()}}),e,this)}))),pn.apply(this,arguments)}var gn=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],yn=/[\\^$.*+?()[\]{}|]/g,vn=RegExp(yn.source);function mn(e,t,n){return e.replace(new RegExp((r=t)&&vn.test(r)?r.replace(yn,"\\$&"):r,"g"),n);var r}var _n="none",xn="request",bn="response",wn="both",Sn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.secretType,r=t.uniCloudIns;(0,v.default)(this,e),this.clientType="",this.secretType=n||_n,this.uniCloudIns=r;var i,o=this.uniCloudIns.config,a=o.provider,s=o.spaceId;this.provider=a,this.spaceId=s,this.scopedGlobalCache=(i=this.uniCloudIns,re("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",i.config.spaceId)))}return(0,m.default)(e,[{key:"getSystemInfo",value:function(){return this._systemInfo||(this._systemInfo=Pe()),this._systemInfo}},{key:"appId",get:function(){return this.getSystemInfo().appId}},{key:"deviceId",get:function(){return this.getSystemInfo().deviceId}},{key:"encryptData",value:function(){var e=(0,h.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.secretType===_n?t:this.platformEncryptData(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"decryptResult",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.secretType!==_n){e.next=2;break}return e.abrupt("return",t);case 2:return n=t||{},r=n.errCode,i=n.content,e.abrupt("return",r||!i?t:this.secretType===xn?i:this.platformDecryptResult(t));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"wrapVerifyClientCallFunction",value:function(e){var t=this;return(0,h.default)(a.default.mark((function n(){var r,i,o,s,u,l=arguments;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=l.length>0&&void 0!==l[0]?l[0]:{},i=r.name,o=r.data,s=void 0===o?{}:o,n.next=3,t.prepare();case 3:return n.next=5,t.platformGetSignOption();case 5:return(s=JSON.parse(JSON.stringify(s)))._uniCloudOptions=n.sent,n.next=8,e({name:i,data:s});case 8:if(u=n.sent,n.t0=t.isClientKeyNotFound(u),!n.t0){n.next=19;break}return n.next=13,t.prepare({forceUpdate:!0});case 13:return n.next=15,t.platformGetSignOption();case 15:return s._uniCloudOptions=n.sent,n.next=18,e({name:i,data:s});case 18:u=n.sent;case 19:return n.abrupt("return",u);case 20:case"end":return n.stop()}}),n)})))}},{key:"wrapEncryptDataCallFunction",value:function(e){var t=this;return(0,h.default)(a.default.mark((function n(){var r,i,o,s,u,l,c,h=arguments;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=h.length>0&&void 0!==h[0]?h[0]:{},i=r.name,o=r.data,s=void 0===o?{}:o,n.next=3,t.prepare();case 3:return n.next=5,t.encryptData(s);case 5:return u=n.sent,n.next=8,e({name:i,data:u});case 8:if(l=n.sent,!t.isClientKeyNotFound(l)){n.next=21;break}return n.next=12,t.prepare({forceUpdate:!0});case 12:return n.next=14,t.encryptData(s);case 14:return c=n.sent,n.next=17,t.platformGetSignOption();case 17:return s._uniCloudOptions=n.sent,n.next=20,e({name:i,data:c});case 20:l=n.sent;case 21:return n.next=23,t.decryptResult(l.result);case 23:return l.result=n.sent,n.abrupt("return",l);case 25:case"end":return n.stop()}}),n)})))}}]),e}();
- /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
- function kn(e){return parseInt(e)===e}function An(e){if(!kn(e.length))return!1;for(var t=0;t<e.length;t++)if(!kn(e[t])||e[t]<0||e[t]>255)return!1;return!0}function In(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!An(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(kn(e.length)&&An(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function Cn(e){return new Uint8Array(e)}function Tn(e,t,n,r,i){null==r&&null==i||(e=e.slice?e.slice(r,i):Array.prototype.slice.call(e,r,i)),t.set(e,n)}var Mn,Dn={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n<e.length;){var r=e.charCodeAt(n++);37===r?(t.push(parseInt(e.substr(n,2),16)),n+=2):t.push(r)}return In(t)},fromBytes:function(e){for(var t=[],n=0;n<e.length;){var r=e[n];r<128?(t.push(String.fromCharCode(r)),n++):r>191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},On=(Mn="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},fromBytes:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(Mn[(240&r)>>4]+Mn[15&r])}return t.join("")}}),Pn={16:10,24:12,32:14},Ln=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],En=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Rn=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Nn=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Bn=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Fn=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],jn=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],zn=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Un=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Vn=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],qn=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],$n=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],Hn=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],Wn=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],Gn=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Kn(e){for(var t=[],n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var Xn=function(){function e(t){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:In(t,!0)}),this._prepare()}return(0,m.default)(e,[{key:"_prepare",value:function(){var e=Pn[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var n,r=4*(e+1),i=this.key.length/4,o=Kn(this.key);for(t=0;t<i;t++)n=t>>2,this._Ke[n][t%4]=o[t],this._Kd[e-n][t%4]=o[t];for(var a,s=0,u=i;u<r;){if(a=o[i-1],o[0]^=En[a>>16&255]<<24^En[a>>8&255]<<16^En[255&a]<<8^En[a>>24&255]^Ln[s]<<24,s+=1,8!=i)for(t=1;t<i;t++)o[t]^=o[t-1];else{for(t=1;t<i/2;t++)o[t]^=o[t-1];for(a=o[i/2-1],o[i/2]^=En[255&a]^En[a>>8&255]<<8^En[a>>16&255]<<16^En[a>>24&255]<<24,t=i/2+1;t<i;t++)o[t]^=o[t-1]}for(t=0;t<i&&u<r;)l=u>>2,c=u%4,this._Ke[l][c]=o[t],this._Kd[e-l][c]=o[t++],u++}for(var l=1;l<e;l++)for(var c=0;c<4;c++)a=this._Kd[l][c],this._Kd[l][c]=$n[a>>24&255]^Hn[a>>16&255]^Wn[a>>8&255]^Gn[255&a]}},{key:"encrypt",value:function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=Kn(e),i=0;i<4;i++)r[i]^=this._Ke[0][i];for(var o=1;o<t;o++){for(i=0;i<4;i++)n[i]=Nn[r[i]>>24&255]^Bn[r[(i+1)%4]>>16&255]^Fn[r[(i+2)%4]>>8&255]^jn[255&r[(i+3)%4]]^this._Ke[o][i];r=n.slice()}var a,s=Cn(16);for(i=0;i<4;i++)a=this._Ke[t][i],s[4*i]=255&(En[r[i]>>24&255]^a>>24),s[4*i+1]=255&(En[r[(i+1)%4]>>16&255]^a>>16),s[4*i+2]=255&(En[r[(i+2)%4]>>8&255]^a>>8),s[4*i+3]=255&(En[255&r[(i+3)%4]]^a);return s}},{key:"decrypt",value:function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=Kn(e),i=0;i<4;i++)r[i]^=this._Kd[0][i];for(var o=1;o<t;o++){for(i=0;i<4;i++)n[i]=zn[r[i]>>24&255]^Un[r[(i+3)%4]>>16&255]^Vn[r[(i+2)%4]>>8&255]^qn[255&r[(i+1)%4]]^this._Kd[o][i];r=n.slice()}var a,s=Cn(16);for(i=0;i<4;i++)a=this._Kd[t][i],s[4*i]=255&(Rn[r[i]>>24&255]^a>>24),s[4*i+1]=255&(Rn[r[(i+3)%4]>>16&255]^a>>16),s[4*i+2]=255&(Rn[r[(i+2)%4]>>8&255]^a>>8),s[4*i+3]=255&(Rn[255&r[(i+1)%4]]^a);return s}}]),e}(),Yn=function(){function e(t){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Xn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){if((e=In(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=Cn(e.length),n=Cn(16),r=0;r<e.length;r+=16)Tn(e,n,0,r,r+16),Tn(n=this._aes.encrypt(n),t,r);return t}},{key:"decrypt",value:function(e){if((e=In(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=Cn(e.length),n=Cn(16),r=0;r<e.length;r+=16)Tn(e,n,0,r,r+16),Tn(n=this._aes.decrypt(n),t,r);return t}}]),e}(),Jn=function(){function e(t,n){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=Cn(16);this._lastCipherblock=In(n,!0),this._aes=new Xn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){if((e=In(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=Cn(e.length),n=Cn(16),r=0;r<e.length;r+=16){Tn(e,n,0,r,r+16);for(var i=0;i<16;i++)n[i]^=this._lastCipherblock[i];this._lastCipherblock=this._aes.encrypt(n),Tn(this._lastCipherblock,t,r)}return t}},{key:"decrypt",value:function(e){if((e=In(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=Cn(e.length),n=Cn(16),r=0;r<e.length;r+=16){Tn(e,n,0,r,r+16),n=this._aes.decrypt(n);for(var i=0;i<16;i++)t[r+i]=n[i]^this._lastCipherblock[i];Tn(e,this._lastCipherblock,0,r,r+16)}return t}}]),e}(),Zn=function(){function e(t,n,r){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 size)")}else n=Cn(16);r||(r=1),this.segmentSize=r,this._shiftRegister=In(n,!0),this._aes=new Xn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,n=In(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)n[r+i]^=t[i];Tn(this._shiftRegister,this._shiftRegister,0,this.segmentSize),Tn(n,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n}},{key:"decrypt",value:function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,n=In(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)n[r+i]^=t[i];Tn(this._shiftRegister,this._shiftRegister,0,this.segmentSize),Tn(e,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n}}]),e}(),Qn=function(){function e(t,n){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=Cn(16);this._lastPrecipher=In(n,!0),this._lastPrecipherIndex=16,this._aes=new Xn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){for(var t=In(e,!0),n=0;n<t.length;n++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[n]^=this._lastPrecipher[this._lastPrecipherIndex++];return t}},{key:"decrypt",value:function(e){return this.encrypt(e)}}]),e}(),er=function(){function e(t){if((0,v.default)(this,e),!(this instanceof e))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"==typeof t?(this._counter=Cn(16),this.setValue(t)):this.setBytes(t)}return(0,m.default)(e,[{key:"setValue",value:function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");if(e>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)}},{key:"setBytes",value:function(e){if(16!=(e=In(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e}},{key:"increment",value:function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}}}]),e}(),tr=function(){function e(t,n){if((0,v.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof er||(n=new er(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Xn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){for(var t=In(e,!0),n=0;n<t.length;n++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[n]^=this._remainingCounter[this._remainingCounterIndex++];return t}},{key:"decrypt",value:function(e){return this.encrypt(e)}}]),e}(),nr={AES:Xn,Counter:er,ModeOfOperation:{ecb:Yn,cbc:Jn,cfb:Zn,ofb:Qn,ctr:tr},utils:{hex:On,utf8:Dn},padding:{pkcs7:{pad:function(e){var t=16-(e=In(e,!0)).length%16,n=Cn(e.length+t);Tn(e,n);for(var r=e.length;r<n.length;r++)n[r]=t;return n},strip:function(e){if((e=In(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r<t;r++)if(e[n+r]!==t)throw new Error("PKCS#7 invalid padding byte");var i=Cn(n);return Tn(e,i,0,0,n),i}}},_arrayTest:{coerceArray:In,createArray:Cn,copyArray:Tn}};function rr(e,t,n){var i=new Uint8Array(r.base64ToArrayBuffer(t)),o=nr.utils.utf8.toBytes(n),a=nr.utils.utf8.toBytes(e),s=new nr.ModeOfOperation.cbc(i,o),u=nr.padding.pkcs7.pad(a),l=s.encrypt(u);return r.arrayBufferToBase64(l)}var ir={code:2e4,message:"System error"},or={code:20101,message:"Invalid client"},ar={code:20102,message:"Get encrypt key failed"},sr={10001:"Secure network is not supported on current playground or unimpsdk",10003:"Config missing in current app. If the problem pesist, please contact DCloud.",10009:"Encrypt payload failed",10010:"Decrypt response failed"};function ur(e){var t=e||{},n=t.errSubject,r=t.subject,i=t.errCode,o=t.errMsg,a=t.code,s=t.message,u=t.cause;return new Ie({subject:n||r||"uni-secure-network",code:i||a||ir.code,message:o||s,cause:u})}var lr,cr,hr=null,dr=function(e){(0,f.default)(n,e);var t=A(n);function n(e){var r;return(0,v.default)(this,n),r=t.call(this,e),r.clientType="mp-weixin",r.userEncryptKey=null,r}return(0,m.default)(n,[{key:"isLogin",value:function(){return!!this.scopedGlobalCache.mpWeixinCode||!!this.scopedGlobalCache.mpWeixinOpenid}},{key:"prepare",value:function(){var e=(0,h.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.isLogin()){e.next=7;break}if(this.scopedGlobalCache.initPromise){e.next=3;break}throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");case 3:return e.next=5,this.scopedGlobalCache.initPromise;case 5:if(this.isLogin()){e.next=7;break}throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getUserEncryptKey",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.userEncryptKey){e.next=2;break}return e.abrupt("return",this.userEncryptKey);case 2:if(!hr||!hr.expireTime){e.next=6;break}if(t=Date.now(),!(hr.expireTime-t>0)){e.next=6;break}return e.abrupt("return",(this.userEncryptKey=hr,this.userEncryptKey));case 6:return e.abrupt("return",new Promise((function(e,t){r.getUserCryptoManager().getLatestUserKey({success:function(t){hr=t,n.userEncryptKey=t,e(n.userEncryptKey)},fail:function(e){t(ur(k(k({},ar),{},{cause:e})))}})})));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getWxAppId",value:function(){return i.getAccountInfoSync().miniProgram.appId}},{key:"platformGetSignOption",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n,r,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getUserEncryptKey();case 2:return t=e.sent,n=t.encryptKey,r=t.iv,i=t.version,e.abrupt("return",{verifyClientSign:rr(JSON.stringify({data:JSON.stringify({}),appId:this.appId,deviceId:this.deviceId,wxAppId:this.getWxAppId(),simulator:"devtools"===Pe().platform,timestamp:Date.now()}),n,r),encryptKeyId:i,mpWeixinCode:this.scopedGlobalCache.mpWeixinCode,mpWeixinOpenid:this.scopedGlobalCache.mpWeixinOpenid});case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformEncryptData",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getUserEncryptKey();case 2:return n=e.sent,r=n.encryptKey,i=n.iv,o=n.version,s={secretType:this.secretType,encryptKeyId:o,mpWeixinCode:this.scopedGlobalCache.mpWeixinCode,mpWeixinOpenid:this.scopedGlobalCache.mpWeixinOpenid},e.abrupt("return",this.secretType===bn?{content:t,_uniCloudOptions:s}:{content:rr(JSON.stringify({data:JSON.stringify(t),appId:this.appId,deviceId:this.deviceId,wxAppId:this.getWxAppId(),simulator:"devtools"===Pe().platform,timestamp:Date.now()}),r,i),_uniCloudOptions:s});case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"platformDecryptResult",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.content,e.next=3,this.getUserEncryptKey();case 3:return i=e.sent,o=i.encryptKey,s=i.iv,e.abrupt("return",JSON.parse(function(e,t,n){var i=new Uint8Array(r.base64ToArrayBuffer(e)),o=new Uint8Array(r.base64ToArrayBuffer(t)),a=nr.utils.utf8.toBytes(n),s=new nr.ModeOfOperation.cbc(o,a),u=nr.padding.pkcs7.strip(s.decrypt(i));return nr.utils.utf8.fromBytes(u)}(n,o,s)));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"isClientKeyNotFound",value:function(){return!1}}]),n}(Sn);function fr(e){for(var t=["hasClientKey","encryptGetClientKeyPayload","setClientKey","encrypt","decrypt"],n={},r=function(r){var i=t[r];n[i]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Promise((function(t,r){"function"==typeof e[i]?e[i].apply(e,n.concat([function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.type,i=e.data,o=e.errCode,a=e.errMsg,s=e.errSubject,u=e.message;"success"===n?t(i):r(ur({errCode:o,errMsg:sr[o]||a||u,errSubject:s}))}])):r(ur({message:"请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"}))}))}},i=0;i<t.length;i++)r(i);return n}var pr=function(e){(0,f.default)(n,e);var t=A(n);function n(e){var i;return(0,v.default)(this,n),i=t.call(this,e),i.clientType="app",i.appUtils=k({},fr(r.requireNativePlugin("plus"))),i.systemInfo=lr||(lr=Pe()),i}return(0,m.default)(n,[{key:"hasClientKey",value:function(){var e=(0,h.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.hasClientKey({provider:this.provider,spaceId:this.spaceId});case 2:return this._hasClientKey=e.sent,e.abrupt("return",this._hasClientKey);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAppClientKey",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n,r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encryptGetClientKeyPayload({data:JSON.stringify({})});case 2:return t=e.sent,n=t.data,r=t.key,e.next=7,this.uniCloudIns.callFunction({name:"DCloud-clientDB",data:{redirectTo:"encryption",action:"getAppClientKey",data:n,key:r}});case 7:if(e.t0=e.sent.result,e.t0){e.next=10;break}e.t0={};case 10:if(i=e.t0,0===i.errCode){e.next=13;break}throw function(e){return new Ie({subject:e.errSubject||"uni-secure-network",code:e.errCode||e.code||ir.code,message:e.errMsg||e.message})}(i);case 13:return o=i.clientKey,s=i.key,e.next=16,this.appUtils.setClientKey({provider:this.provider,spaceId:this.spaceId,clientKey:o,key:s});case 16:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"ensureClientKey",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n,r,i=this,o=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},n=t.forceUpdate,r=void 0!==n&&n,e.t1=!0,e.next=4,this.hasClientKey();case 4:if(e.t2=e.sent,e.t0=e.t1!==e.t2,e.t0){e.next=8;break}e.t0=r;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return",(r&&this.scopedGlobalCache.initPromise&&this.scopedGlobalCache.initStatus===B||!r&&this.scopedGlobalCache.initPromise&&this.scopedGlobalCache.initStatus!==j||(this.scopedGlobalCache.initPromise=this.getAppClientKey(),this.scopedGlobalCache.initPromise.then((function(e){i.scopedGlobalCache.initStatus=F})).catch((function(e){throw i.scopedGlobalCache.initStatus=j,e})),this.scopedGlobalCache.initStatus=B),this.scopedGlobalCache.initPromise));case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"prepare",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n,r,i=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.forceUpdate,r=void 0!==n&&n,e.next=3,this.ensureClientKey({forceUpdate:r});case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformGetSignOption",value:function(){var e=(0,h.default)(a.default.mark((function e(){var t,n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encrypt({provider:this.provider,spaceId:this.spaceId,data:JSON.stringify({})});case 2:return t=e.sent,n=t.data,r=t.key,e.abrupt("return",{verifyClientSign:n,encryptKeyId:r});case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformEncryptData",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encrypt({provider:this.provider,spaceId:this.spaceId,data:JSON.stringify(t)});case 2:return n=e.sent,r=n.data,i=n.key,o={secretType:this.secretType,encryptKeyId:i},e.abrupt("return",this.secretType===bn?{content:t,_uniCloudOptions:o}:{content:r,_uniCloudOptions:o});case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"platformDecryptResult",value:function(){var e=(0,h.default)(a.default.mark((function e(t){var n,r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.content,r=t._uniCloudOptions,i=void 0===r?{}:r,o=i.encryptKeyId,e.next=6,this.appUtils.decrypt({provider:this.provider,spaceId:this.spaceId,data:n,key:o});case 6:return s=e.sent,e.abrupt("return",JSON.parse(s.data));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"isClientKeyNotFound",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.result||{};return 70009===t.errCode&&"uni-secure-network"===t.errSubject}}]),n}(Sn);function gr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===xn||t===bn||t===wn}function yr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,r=void 0===n?{}:n;return"app"===Z&&"DCloud-clientDB"===t&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function vr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=e.functionName,i=Pe(),o=i.appId,a=i.uniPlatform,s=i.osName,u=a;"app"===a&&(u=s);var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=J;if(!r)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=r.find((function(e){return e.provider===t&&e.spaceId===n}));return i&&i.config}({provider:t,spaceId:n});if(!l||!l.accessControl||!l.accessControl.enable)return!1;var c=l.accessControl.function||{},h=Object.keys(c);if(0===h.length)return!0;var d=function(e,t){for(var n,r,i,o=0;o<e.length;o++){var a=e[o];a!==t?"*"!==a?a.split(",").map((function(e){return e.trim()})).indexOf(t)>-1&&(r=a):i=a:n=a}return n||r||i}(h,r);if(!d)return!1;if((c[d]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===o&&(e.platform||"").toLowerCase()===u.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(o,", platform: ").concat(u,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),ur(or)}function mr(e){var t=e.functionName,n=e.result,r=e.logPvd;if(K&&this.__dev__.debugLog&&n&&n.requestId){var i=JSON.stringify({spaceId:this.config.spaceId,functionName:t,requestId:n.requestId});console.log("[".concat(r,"-request]").concat(i,"[/").concat(r,"-request]"))}}function _r(e){var t=e.callFunction,n=function(n){var r=this,i=n.name;n.data=dn.call(e,{data:n.data});var o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],a=gr(n),s=yr(n),u=a||s;return t.call(this,n).then((function(e){return e.errCode=0,!u&&mr.call(r,{functionName:i,result:e,logPvd:o}),Promise.resolve(e)}),(function(e){return!u&&mr.call(r,{functionName:i,result:e,logPvd:o}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,i=void 0===r?{}:r,o=e.formatter,a=void 0===o?[]:o,s=0;s<a.length;s++){var u=a[s],l=u.rule,c=u.content,h=u.mode,d=n.match(l);if(d){for(var f=c,p=1;p<d.length;p++)f=mn(f,"{$".concat(p,"}"),d[p]);for(var g in i)f=mn(f,"{".concat(g,"}"),i[g]);return"replace"===h?f:n+f}}return n}({message:"[".concat(n.name,"]: ").concat(e.message),formatter:gn,extraInfo:{functionName:i}})),Promise.reject(e)}))};e.callFunction=function(t){var r,i,o=e.config,a=o.provider,s=o.spaceId,u=t.name;return t.data=t.data||{},K&&e.__dev__.debugInfo&&!e.__dev__.debugInfo.forceRemote&&ee?(e._callCloudFunction||(e._callCloudFunction=n,e._callLocalFunction=fn),r=fn):r=n,r=r.bind(e),i=yr(t)?n.call(e,t):function(e){var t=e.name,n=e.data,r=void 0===n?{}:n;return"mp-weixin"===Z&&"uni-id-co"===t&&"secureNetworkHandshakeByWeixin"===r.method}(t)?r.call(e,t):gr(t)?new cr({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):vr({provider:a,spaceId:s,functionName:u})?new cr({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i.then((function(e){return"undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e}))}}cr="mp-weixin"!==Z&&"app"!==Z?function(){function e(){throw(0,v.default)(this,e),ur({message:"Platform ".concat(Z," is not supported by secure network")})}return(0,m.default)(e)}():Y?"mp-weixin"===Z?dr:pr:function(){function e(){throw(0,v.default)(this,e),ur({message:"Platform ".concat(Z," is not enabled, please check whether secure network module is enabled in your manifest.json")})}return(0,m.default)(e)}();var xr=Symbol("CLIENT_DB_INTERNAL");function br(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=xr,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if("symbol"==(0,l.default)(n))return e[n];if(n in e||"string"!=typeof n){var i=e[n];return"function"==typeof i?i.bind(e):i}return t.get(e,n,r)}})}function wr(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var Sr=["db.Geo","db.command","command.aggregate"];function kr(e,t){return Sr.indexOf("".concat(e,".").concat(t))>-1}function Ar(e){switch(z(e)){case"array":return e.map((function(e){return Ar(e)}));case"object":return e._internalType===xr||Object.keys(e).forEach((function(t){e[t]=Ar(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Ir(e){return e&&e.content&&e.content.$method}var Cr=function(){function e(t,n,r){(0,v.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,m.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:Ar(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=Ir(e),n=Ir(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===Ir(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=Ir(e),n=Ir(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return Tr({$method:e,$param:Ar(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();if(r.$db.push({$method:e,$param:Ar(t)}),K){var i=r.$db.find((function(e){return"collection"===e.$method})),o=i&&i.$param;o&&1===o.length&&"string"==typeof i.$param[0]&&i.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:n,command:r})}}]),e}();function Tr(e,t,n){return br(new Cr(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),kr(r,t)?Tr({$method:t},e,n):function(){return Tr({$method:t,$param:Ar(Array.from(arguments))},e,n)}}})}function Mr(e){var t=e.path,n=e.method;return function(){function e(){(0,v.default)(this,e),this.param=Array.from(arguments)}return(0,m.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,c.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function Dr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return br(new e(t),{get:function(e,t){return kr("db",t)?Tr({$method:t},null,e):function(){return Tr({$method:t,$param:Ar(Array.from(arguments))},null,e)}}})}var Or=function(e){(0,f.default)(n,e);var t=A(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,i=e.multiCommand,o=e.queryList;function a(e,t){if(i&&o)for(var n=0;n<o.length;n++){var r=o[n];r.udb&&"function"==typeof r.udb.setResult&&(t?r.udb.setResult(t):r.udb.setResult(e.result.dataList[n]))}}var s=this,u=this._isJQL?"databaseForJQL":"database";function l(e){return s._callback("error",[e]),ue(le(u,"fail"),e).then((function(){return ue(le(u,"complete"),e)})).then((function(){return a(null,e),be(de,{type:ge,content:e}),Promise.reject(e)}))}var c=ue(le(u,"invoke")),h=this._uniClient;return c.then((function(){return h.callFunction({name:"DCloud-clientDB",type:N,data:{action:n,command:r,multiCommand:i}})})).then((function(e){var n=e.result,r=n.code,i=n.message,o=n.token,c=n.tokenExpired,h=n.systemInfo,d=void 0===h?[]:h;if(d)for(var f=0;f<d.length;f++){var p=d[f],g=p.level,y=p.message,v=p.detail,m=console["app"===Z&&"warn"===g?"error":g]||console.log,_="[System Info]"+y;v&&(_="".concat(_,"\n详细信息:").concat(v)),m(_)}if(r)return l(new Ie({code:r,message:i,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,o&&c&&(Oe({token:o,tokenExpired:c}),t._callbackAuth("refreshToken",[{token:o,tokenExpired:c}]),t._callback("refreshToken",[{token:o,tokenExpired:c}]),be(pe,{token:o,tokenExpired:c}));for(var x=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}],b=function(t){var n=x[t],r=n.prop,i=n.tips;if(r in e.result){var o=e.result[r];Object.defineProperty(e.result,r,{get:function(){return console.warn(i),o}})}},w=0;w<x.length;w++)b(w);return function(e){return ue(le(u,"success"),e).then((function(){return ue(le(u,"complete"),e)})).then((function(){a(e,null);var t=s._parseResult(e);return be(de,{type:ge,content:t}),Promise.resolve(t)}))}(e)}),(function(e){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),l(new Ie({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}]),n}(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n,i=t.isJQL,o=void 0!==i&&i;(0,v.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=re("_globalUniCloudDatabaseCallback")),o||(this.auth=wr(this._authCallBacks)),this._isJQL=o,Object.assign(this,wr(this._dbCallBacks)),this.env=br({},{get:function(e,t){return{$env:t}}}),this.Geo=br({},{get:function(e,t){return Mr({path:["Geo"],method:t})}}),this.serverDate=Mr({path:[],method:"serverDate"}),this.RegExp=Mr({path:[],method:"RegExp"})}return(0,m.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,c.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,c.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}()),Pr="token无效,跳转登录页面",Lr="token过期,跳转登录页面",Er={TOKEN_INVALID_TOKEN_EXPIRED:Lr,TOKEN_INVALID_INVALID_CLIENTID:Pr,TOKEN_INVALID:Pr,TOKEN_INVALID_WRONG_TOKEN:Pr,TOKEN_INVALID_ANONYMOUS_USER:Pr},Rr={"uni-id-token-expired":Lr,"uni-id-check-token-failed":Pr,"uni-id-token-not-exist":Pr,"uni-id-check-device-feature-failed":Pr};function Nr(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function Br(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(Nr(t,e.path)):!1===e.needLogin&&r.push(Nr(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function Fr(e){return e.split("?")[0].replace(/^\//,"")}function jr(){return function(e){var t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){var e=getCurrentPages();return e[e.length-1]}())}function zr(){return Fr(jr())}function Ur(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,r=Fr(e);return n.some((function(e){return e.pagePath===r}))}var Vr,qr=!!_.default.uniIdRouter,$r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,i=void 0===r?[]:r,o=e.uniIdRouter,a=void 0===o?{}:o,s=e.tabBar,u=void 0===s?{}:s,l=a.loginPage,h=a.needLogin,d=void 0===h?[]:h,f=a.resToLogin,p=void 0===f||f,g=Br(n),y=g.needLoginPage,v=g.notNeedLoginPage,m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,i=e.pages,o=void 0===i?[]:i,a=Br(o,r),s=a.needLoginPage,u=a.notNeedLoginPage;t.push.apply(t,(0,c.default)(s)),n.push.apply(n,(0,c.default)(u))})),{needLoginPage:t,notNeedLoginPage:n}}(i),x=m.needLoginPage,b=m.notNeedLoginPage;return{loginPage:l,routerNeedLogin:d,resToLogin:p,needLoginPage:[].concat((0,c.default)(y),(0,c.default)(x)),notNeedLoginPage:[].concat((0,c.default)(v),(0,c.default)(b)),loginPageInTabBar:Ur(l,u)}}(),Hr=$r.loginPage,Wr=$r.routerNeedLogin,Gr=$r.resToLogin,Kr=$r.needLoginPage,Xr=$r.notNeedLoginPage,Yr=$r.loginPageInTabBar;if(Kr.indexOf(Hr)>-1)throw new Error("Login page [".concat(Hr,'] should not be "needLogin", please check your pages.json'));function Jr(e){var t=zr();if("/"===e.charAt(0))return e;var n=e.split("?"),r=(0,u.default)(n,2),i=r[0],o=r[1],a=i.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var l=0;l<a.length;l++){var c=a[l];".."===c?s.pop():"."!==c&&s.push(c)}return""===s[0]&&s.shift(),"/"+s.join("/")+(o?"?"+o:"")}function Zr(e){var t=Fr(Jr(e));return!(Xr.indexOf(t)>-1)&&(Kr.indexOf(t)>-1||Wr.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function Qr(e){var t=e.redirect,n=Fr(t),r=Fr(Hr);return zr()!==r&&n!==r}function ei(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&Qr({redirect:n})){var i=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Hr,n);Yr?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var o={navigateTo:r.navigateTo,redirectTo:r.redirectTo,switchTab:r.switchTab,reLaunch:r.reLaunch};setTimeout((function(){o[t]({url:i})}),0)}}function ti(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=De(),n=t.token,r=t.tokenExpired;if(n){if(r<Date.now()){var i="uni-id-token-expired";e={errCode:i,errMsg:Rr[i]}}}else{var o="uni-id-check-token-failed";e={errCode:o,errMsg:Rr[o]}}return e}();if(Zr(t)&&r){if(r.uniIdRedirectUrl=t,me(fe).length>0)return setTimeout((function(){be(fe,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function ni(){!function(){var e=jr(),t=ti({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&ei({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];r.addInterceptor(n,{invoke:function(e){var t=ti({url:e.url}),r=t.abortLoginPageJump,i=t.autoToLoginPage;return r?e:i?(ei({api:n,redirect:Jr(e.url)}),!1):e}})},n=0;n<e.length;n++)t(n)}function ri(){this.onResponse((function(e){var t=e.type,n=e.content,r=!1;switch(t){case"cloudobject":r=function(e){if("object"!=(0,l.default)(e))return!1;var t=e||{},n=t.errCode;return n in Rr}(n);break;case"clientdb":r=function(e){if("object"!=(0,l.default)(e))return!1;var t=e||{},n=t.errCode;return n in Er}(n)}r&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=me(fe);ke().then((function(){var n=jr();if(n&&Qr({redirect:n}))return t.length>0?be(fe,Object.assign({uniIdRedirectUrl:n},e)):void(Hr&&ei({api:"navigateTo",redirect:n}))}))}(n)}))}function ii(e){!function(e){e.onResponse=function(e){_e(de,e)},e.offResponse=function(e){xe(de,e)}}(e),function(e){e.onNeedLogin=function(e){_e(fe,e)},e.offNeedLogin=function(e){xe(fe,e)},qr&&(re("_globalUniCloudStatus").needLoginInit||(re("_globalUniCloudStatus").needLoginInit=!0,ke().then((function(){ni.call(e)})),Gr&&ri.call(e)))}(e),function(e){e.onRefreshToken=function(e){_e(pe,e)},e.offRefreshToken=function(e){xe(pe,e)}}(e)}var oi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ai=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function si(){var e,t,n=De().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(Vr(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Vr="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!ai.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",o=0;o<e.length;)t=oi.indexOf(e.charAt(o++))<<18|oi.indexOf(e.charAt(o++))<<12|(n=oi.indexOf(e.charAt(o++)))<<6|(r=oi.indexOf(e.charAt(o++))),i+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var ui=T((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,r){var i=r.onChooseFile,o=r.onUploadProgress;return t.then((function(e){if(i){var t=i(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var o=t.tempFiles,a=o.length,s=0;return new Promise((function(n){for(;s<r;)u();function u(){var r=s++;if(r>=a)!o.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var l=o[r];e.uploadFile({provider:l.provider,filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,cloudPathAsRealPath:l.cloudPathAsRealPath,onUploadProgress:function(e){e.index=r,e.tempFile=l,e.tempFilePath=l.path,i&&i(e)}}).then((function(e){l.url=e.fileID,r<a&&u()})).catch((function(e){l.errMsg=e.errMsg||e.message,r<a&&u()}))}}}))}(e,t,5,o)}))}t.initChooseAndUploadFile=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?s(e,function(e){var t=e.count,n=e.sizeType,i=e.sourceType,s=void 0===i?["album","camera"]:i,u=e.extension;return new Promise((function(e,i){r.chooseImage({count:t,sizeType:n,sourceType:s,extension:u,success:function(t){e(a(t,"image"))},fail:function(e){i({errMsg:e.errMsg.replace("chooseImage:fail",o)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,n=e.compressed,i=e.maxDuration,s=e.sourceType,u=void 0===s?["album","camera"]:s,l=e.extension;return new Promise((function(e,s){r.chooseVideo({camera:t,compressed:n,maxDuration:i,sourceType:u,extension:l,success:function(t){var n=t.tempFilePath,r=t.duration,i=t.size,o=t.height,s=t.width;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",o)})}})}))}(t),t):s(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,s){var u=r.chooseFile;if("undefined"!=typeof i&&"function"==typeof i.chooseMessageFile&&(u=i.chooseMessageFile),"function"!=typeof u)return s({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});u({type:"all",count:t,extension:n,success:function(t){e(a(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",o)})}})}))}(t),t)}}})),li=C(ui),ci="manual";function hi(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if(e.loadtime!==ci){for(var r=!1,i=[],o=2;o<t.length;o++)t[o]!==n[o]&&(i.push(t[o]),r=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(r,i)}}))},methods:{onMixinDatacomPropsChange:function(e,t){},mixinDatacomEasyGet:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,i=t.success,o=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,o=n.data,a=n.count;e.getcount&&(e.mixinDatacomPage.count=a),e.mixinDatacomHasMore=o.length<e.pageSize;var s=r?o.length?o[0]:void 0:o;e.mixinDatacomResData=s,i&&i(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,e.mixinDatacomError=t,o&&o(t)})))},mixinDatacomGet:function(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r=r||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var i=r.action||this.action;i&&(n=n.action(i));var o=r.collection||this.collection;n=Array.isArray(o)?(t=n).collection.apply(t,(0,c.default)(o)):n.collection(o);var a=r.where||this.where;a&&Object.keys(a).length&&(n=n.where(a));var s=r.field||this.field;s&&(n=n.field(s));var u=r.foreignKey||this.foreignKey;u&&(n=n.foreignKey(u));var l=r.groupby||this.groupby;l&&(n=n.groupBy(l));var h=r.groupField||this.groupField;h&&(n=n.groupField(h)),!0===(void 0!==r.distinct?r.distinct:this.distinct)&&(n=n.distinct());var d=r.orderby||this.orderby;d&&(n=n.orderBy(d));var f=void 0!==r.pageCurrent?r.pageCurrent:this.mixinDatacomPage.current,p=void 0!==r.pageSize?r.pageSize:this.mixinDatacomPage.size,g=void 0!==r.getcount?r.getcount:this.getcount,y=void 0!==r.gettree?r.gettree:this.gettree,v=void 0!==r.gettreepath?r.gettreepath:this.gettreepath,m={getCount:g},_={limitLevel:void 0!==r.limitlevel?r.limitlevel:this.limitlevel,startWith:void 0!==r.startwith?r.startwith:this.startwith};return y&&(m.getTree=_),v&&(m.getTreePath=_),n=n.skip(p*(f-1)).limit(p).get(m),n}}}}function di(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,l.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var i=n,o=i.customUI,s=i.loadingOptions,u=i.errorOptions,c=i.parseSystemError,d=!o;return new Proxy({},{get:function(i,o){switch(o){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,h.default)(a.default.mark((function e(){var i,o,s,u,l,c,h=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=h.length,o=new Array(i),s=0;s<i;s++)o[s]=h[s];return u=r?r({params:o}):{},e.prev=2,e.next=5,ue(le(n,"invoke"),k({},u));case 5:return e.next=7,t.apply(void 0,o);case 7:return l=e.sent,e.next=10,ue(le(n,"success"),k(k({},u),{},{result:l}));case 10:return e.abrupt("return",l);case 13:return e.prev=13,e.t0=e["catch"](2),c=e.t0,e.next=18,ue(le(n,"fail"),k(k({},u),{},{error:c}));case 18:throw c;case 19:return e.prev=19,e.next=22,ue(le(n,"complete"),k(k({},u),{},c?{error:c}:{result:l}));case 22:return e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[2,13,19,23]])})))}({fn:function(){var i=(0,h.default)(a.default.mark((function i(){var p,g,y,v,m,_,x,b,w,S,A,I,C,T,M,D=arguments;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:for(d&&r.showLoading({title:s.title,mask:s.mask}),g=D.length,y=new Array(g),v=0;v<g;v++)y[v]=D[v];return m={name:t,type:R,data:{method:o,params:y}},"object"==(0,l.default)(n.secretMethods)&&function(e,t){var n=t.data.method,r=e.secretMethods||{},i=r[n]||r["*"];i&&(t.secretType=i)}(n,m),_=!1,i.prev=5,i.next=8,e.callFunction(m);case 8:p=i.sent,i.next=14;break;case 11:i.prev=11,i.t0=i["catch"](5),_=!0,p={result:new Ie(i.t0)};case 14:if(x=p.result||{},b=x.errSubject,w=x.errCode,S=x.errMsg,A=x.newToken,d&&r.hideLoading(),A&&A.token&&A.tokenExpired&&(Oe(A),be(pe,k({},A))),!w){i.next=39;break}if(I=S,!_||!c){i.next=24;break}return i.next=20,c({objectName:t,methodName:o,params:y,errSubject:b,errCode:w,errMsg:S});case 20:if(i.t1=i.sent.errMsg,i.t1){i.next=23;break}i.t1=S;case 23:I=i.t1;case 24:if(!d){i.next=37;break}if("toast"!==u.type){i.next=29;break}r.showToast({title:I,icon:"none"}),i.next=37;break;case 29:if("modal"===u.type){i.next=31;break}throw new Error("Invalid errorOptions.type: ".concat(u.type));case 31:return i.next=33,(0,h.default)(a.default.mark((function e(){var t,n,i,o,s,u,l=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.title,i=t.content,o=t.showCancel,s=t.cancelText,u=t.confirmText,e.abrupt("return",new Promise((function(e,t){r.showModal({title:n,content:i,showCancel:o,cancelText:s,confirmText:u,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:I,showCancel:u.retry,cancelText:"取消",confirmText:u.retry?"重试":"确定"});case 33:if(C=i.sent,T=C.confirm,!u.retry||!T){i.next=37;break}return i.abrupt("return",f.apply(void 0,y));case 37:throw M=new Ie({subject:b,code:w,message:S,requestId:p.requestId}),M.detail=p.result,be(de,{type:ve,content:M}),M;case 39:return i.abrupt("return",(be(de,{type:ve,content:p.result}),p.result));case 40:case"end":return i.stop()}}),i,null,[[5,11]])})));function f(){return i.apply(this,arguments)}return f}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:o,params:n}}})}})}}function fi(e){return re("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function pi(){return gi.apply(this,arguments)}function gi(){return gi=(0,h.default)(a.default.mark((function e(){var t,n,i,o,s,u,l,c=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.openid,i=t.callLoginByWeixin,o=void 0!==i&&i,s=fi(this),"mp-weixin"===Z){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(Z,"`"));case 4:if(!n||!o){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){r.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return u=e.sent,l=this.importObject("uni-id-co",{customUI:!0}),e.next=14,l.secureNetworkHandshakeByWeixin({code:u,callLoginByWeixin:o});case 14:return s.mpWeixinCode=u,e.abrupt("return",{code:u});case 16:case"end":return e.stop()}}),e,this)}))),gi.apply(this,arguments)}function yi(e){return vi.apply(this,arguments)}function vi(){return vi=(0,h.default)(a.default.mark((function e(t){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=fi(this),e.abrupt("return",(n.initPromise||(n.initPromise=pi.call(this,t).then((function(e){return e})).catch((function(e){throw delete n.initPromise,e}))),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),vi.apply(this,arguments)}function mi(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,r=t.callLoginByWeixin,i=void 0!==r&&r;return yi.call(e,{openid:n,callLoginByWeixin:i})}}function _i(e){!function(e){Ee=e}(e)}function xi(e){var t={getSystemInfo:r.getSystemInfo,getPushClientId:r.getPushClientId};return function(n){return new Promise((function(r,i){t[e](k(k({},n),{},{success:function(e){r(e)},fail:function(e){i(e)}}))}))}}var bi=function(e){(0,f.default)(n,e);var t=A(n);function n(){var e;return(0,v.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,m.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([xi("getSystemInfo")(),xi("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,u.default)(t,2),r=n[0];r=void 0===r?{}:r;var i=r.appId,o=n[1];o=void 0===o?{}:o;var a=o.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!a)throw new Error("Invalid push client id");e._appId=i,e._pushClientId=a,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,h.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,r=t.messageId,i=t.message;this._payloadQueue.push({action:n,messageId:r,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,r=e.message;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){r.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){r.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(function(){function e(){(0,v.default)(this,e),this._callback={}}return(0,m.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(t)for(var o=0;o<t.length;o++)t[o].apply(t,r)}}]),e}());function wi(e){return Si.apply(this,arguments)}function Si(){return Si=(0,h.default)(a.default.mark((function e(t){var n,r,i,o,s,u,l,c,h,d,f;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(K){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if("app"===Z&&(n=Pe(),r=n.osName,i=n.osVersion,"ios"===r&&function(e){if(!e||"string"!=typeof e)return 0;var t=e.match(/^(\d+)./);return t&&t[1]?parseInt(t[1]):0}(i)>=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发期间需要,发行后不需要)")),o=t.__dev__,o.debugInfo){e.next=6;break}return e.abrupt("return");case 6:return s=o.debugInfo,u=s.address,l=s.servePort,e.next=11,Yt(u,l);case 11:if(c=e.sent,h=c.address,!h){e.next=15;break}return e.abrupt("return",(o.localAddress=h,void(o.localPort=l)));case 15:if(d=console["app"===Z?"error":"warn"],f="","remote"===o.debugInfo.initialLaunchType?(o.debugInfo.forceRemote=!0,f="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。"):f="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。",f+="\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数","web"===Z&&(f+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===Z.indexOf("mp-")&&(f+="\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),o.debugInfo.forceRemote){e.next=19;break}throw new Error(f);case 19:d(f);case 20:case"end":return e.stop()}}),e)}))),Si.apply(this,arguments)}function ki(e){e._initPromiseHub||(e._initPromiseHub=new W({createPromise:function(){var t,n=Promise.resolve();t=1,n=new Promise((function(e){setTimeout((function(){e()}),t)}));var r=e.auth();return n.then((function(){return r.getLoginState()})).then((function(e){return e?Promise.resolve():r.signInAnonymously()}))}}))}var Ai={tcb:Gt,tencent:Gt,aliyun:je,private:en,dcloud:en,alipay:hn},Ii=new(function(){function e(){(0,v.default)(this,e)}return(0,m.default)(e,[{key:"init",value:function(e){var t={},n=Ai[e.provider];if(!n)throw new Error("未提供正确的provider参数");return t=n.init(e),K&&function(e){if(K){var t={};e.__dev__=t,t.debugLog=K&&("web"===Z&&navigator.userAgent.indexOf("HBuilderX")>0||"app"===Z);var n=Q;n&&!n.code&&(t.debugInfo=n);var r=new W({createPromise:function(){return wi(e)}});t.initLocalNetwork=function(){return r.exec()}}}(t),ki(t),_r(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),function(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var n=Dr(Or,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=Dr(Or,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=si,e.chooseAndUploadFile=li.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return hi(e)}}),e.SSEChannel=bi,e.initSecureNetworkByWeixin=mi(e),e.setCustomClientInfo=_i,e.importObject=di(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var r=this,i=!1;if("callFunction"===t){var o=n&&n.type||E;i=o!==E}var a="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};var u=Ae(n),l=u.success,c=u.fail,h=u.complete,d=s.then((function(){return i?Promise.resolve():ue(le(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return i?Promise.resolve(e):ue(le(t,"success"),e).then((function(){return ue(le(t,"complete"),e)})).then((function(){return a&&be(de,{type:ye,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):ue(le(t,"fail"),e).then((function(){return ue(le(t,"complete"),e)})).then((function(){return be(de,{type:ye,content:e}),Promise.reject(e)}))}));if(!(l||c||h))return d;d.then((function(e){l&&l(e),h&&h(e),a&&be(de,{type:ye,content:e})}),(function(e){c&&c(e),h&&h(e),a&&be(de,{type:ye,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=ee,t={};if(e&&1===e.length)t=e[0],Ii=Ii.init(t),Ii._isDefault=!0;else{var n,r=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":te?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",r.forEach((function(e){Ii[e]=function(){return console.error(n),Promise.reject(new Ie({code:"SYS_ERR",message:n}))}}))}Object.assign(Ii,{get mixinDatacom(){return hi(Ii)}}),ii(Ii),Ii.addInterceptor=ae,Ii.removeInterceptor=se,Ii.interceptObject=ce,K&&"web"===Z&&(window.uniCloud=Ii)})();var Ci=Ii;t.default=Ci}).call(this,n(3),n(2)["default"],n(1)["default"])},173:function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},174:function(e,t,n){var r=n(16);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},175:function(e,t,n){var r=n(13)["default"],i=n(173);function o(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},176:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},177:function(e,t,n){var r=n(176),i=n(16),o=n(178),a=n(15);function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},178:function(e,t){function n(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},179:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"首页"}},{path:"pages/myCenter/index",style:{navigationBarTitleText:"我的",navigationBarBackgroundColor:"#3D90F4",enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"pages/myCenter/personalData/personalData",style:{navigationBarTitleText:"个人资料",enablePullDownRefresh:!1}},{path:"pages/myCenter/updatePassword/updatePassword",style:{navigationBarTitleText:"修改密码",enablePullDownRefresh:!1}},{path:"pages/login/index",style:{navigationBarTitleText:"登录"}},{path:"pages/webview/webview",style:{navigationBarTitleText:""}}],subPackages:[{root:"packageA",pages:[{path:"pages/danger/index",style:{navigationBarTitleText:"隐患管理"}},{path:"pages/industry/index",style:{navigationBarTitleText:"行业管理"}},{path:"pages/disaster/index",style:{navigationBarTitleText:"自然灾害"}},{path:"pages/duty/index",style:{navigationBarTitleText:"应急值守"}},{path:"pages/team/index",style:{navigationBarTitleText:"队伍建设"}},{path:"pages/goods/index",style:{navigationBarTitleText:"物资储备"}},{path:"pages/goods/record",style:{navigationBarTitleText:"出库/入库记录"}},{path:"pages/reporting/index",style:{navigationBarTitleText:"突发事件"}},{path:"pages/camera/index",style:{navigationBarTitleText:"现场视频"}}]}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"智慧创新",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},tabBar:{color:"#7A7E83",selectedColor:"#1296db",borderStyle:"black",backgroundColor:"#ffffff",iconWidth:"24px",list:[{pagePath:"pages/index/index",iconPath:"static/tabbar/index.png",selectedIconPath:"static/tabbar/indexEd.png",text:"首页"},{pagePath:"pages/myCenter/index",iconPath:"static/tabbar/myCenter.png",selectedIconPath:"static/tabbar/myCenterEd.png",text:"我的",style:{navigationBarTitleText:"我的",navigationBarBackgroundColor:"#3D90F4",enablePullDownRefresh:!1,navigationStyle:"custom"}}]},uniIdRouter:{}};t.default=r},18:function(e,t,n){var r=n(19),i=n(20),o=n(8),a=n(21);function s(e){return r(e)||i(e)||o(e)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},180:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={appid:"__UNI__2FEDA34"};t.default=r},188:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fontData=void 0;var r=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];t.fontData=r},19:function(e,t,n){var r=n(9);function i(e){if(Array.isArray(e))return r(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},2:function(e,t,n){"use strict";(function(e,r){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Bn,t.createComponent=Xn,t.createPage=Kn,t.createPlugin=Jn,t.createSubpackageApp=Yn,t.default=void 0;var o,a=i(n(5)),s=i(n(11)),u=i(n(15)),l=i(n(18)),c=i(n(13)),h=n(22),d=i(n(25));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function v(e){return decodeURIComponent(o(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function m(){var t,n=e.getStorageSync("uni_id_token")||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(v(r[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}function _(e){e.prototype.uniIDHasRole=function(e){var t=m(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=m(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=m(),t=e.tokenExpired;return t>Date.now()}}o="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!y.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",o=0;o<e.length;)t=g.indexOf(e.charAt(o++))<<18|g.indexOf(e.charAt(o++))<<12|(n=g.indexOf(e.charAt(o++)))<<6|(r=g.indexOf(e.charAt(o++))),i+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var x=Object.prototype.toString,b=Object.prototype.hasOwnProperty;function w(e){return"function"===typeof e}function S(e){return"string"===typeof e}function k(e){return null!==e&&"object"===(0,c.default)(e)}function A(e){return"[object Object]"===x.call(e)}function I(e,t){return b.call(e,t)}function C(){}function T(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var M=/-(\w)/g,D=T((function(e){return e.replace(M,(function(e,t){return t?t.toUpperCase():""}))}));function O(e){var t={};return A(e)&&Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),Object.keys(t)?t:e}var P=["invoke","success","fail","complete","returnValue"],L={},E={};function R(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?N(n):n}function N(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function B(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function F(e,t){Object.keys(t).forEach((function(n){-1!==P.indexOf(n)&&w(t[n])&&(e[n]=R(e[n],t[n]))}))}function j(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==P.indexOf(n)&&w(t[n])&&B(e[n],t[n])}))}function z(e,t){"string"===typeof e&&A(t)?F(E[e]||(E[e]={}),t):A(e)&&F(L,e)}function U(e,t){"string"===typeof e?A(t)?j(E[e],t):delete E[e]:A(e)&&j(L,e)}function V(e,t){return function(n){return e(n,t)||n}}function q(e){return!!e&&("object"===(0,c.default)(e)||"function"===typeof e)&&"function"===typeof e.then}function $(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];if(r)r=Promise.resolve(V(o,n));else{var a=o(t,n);if(q(a)&&(r=Promise.resolve(a)),!1===a)return{then:function(){}}}}return r||{then:function(e){return e(t)}}}function H(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var r=t[n];t[n]=function(i){$(e[n],i,t).then((function(e){return w(r)&&r(e)||e}))}}})),t}function W(e,t){var n=[];Array.isArray(L.returnValue)&&n.push.apply(n,(0,l.default)(L.returnValue));var r=E[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,l.default)(r.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function G(e){var t=Object.create(null);Object.keys(L).forEach((function(e){"returnValue"!==e&&(t[e]=L[e].slice())}));var n=E[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function K(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=G(e);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=$(a.invoke,n);return s.then((function(n){return t.apply(void 0,[H(G(e),n)].concat(i))}))}return t.apply(void 0,[H(a,n)].concat(i))}return t.apply(void 0,[n].concat(i))}var X={returnValue:function(e){return q(e)?new Promise((function(t,n){e.then((function(e){e[0]?n(e[0]):t(e[1])}))})):e}},Y=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/,J=/^create|Manager$/,Z=["createBLEConnection"],Q=["createBLEConnection","createPushMessage"],ee=/^on|^off/;function te(e){return J.test(e)&&-1===Z.indexOf(e)}function ne(e){return Y.test(e)&&-1===Q.indexOf(e)}function re(e){return ee.test(e)&&"onPush"!==e}function ie(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function oe(e){return!(te(e)||ne(e)||re(e))}function ae(e,t){return oe(e)&&w(t)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return w(n.success)||w(n.fail)||w(n.complete)?W(e,K.apply(void 0,[e,t,n].concat(i))):W(e,ie(new Promise((function(r,o){K.apply(void 0,[e,t,Object.assign({},n,{success:r,fail:o})].concat(i))}))))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))});var se=1e-4,ue=750,le=!1,ce=0,he=0;function de(){var t=e.getSystemInfoSync(),n=t.platform,r=t.pixelRatio,i=t.windowWidth;ce=i,he=r,le="ios"===n}function fe(e,t){if(0===ce&&de(),e=Number(e),0===e)return 0;var n=e/ue*(t||ce);return n<0&&(n=-n),n=Math.floor(n+se),0===n&&(n=1!==he&&le?.5:1),e<0?-n:n}var pe,ge="zh-Hans",ye="zh-Hant",ve="en",me="fr",_e="es",xe={};function be(){if(Ae()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=xe[e],n=__uniConfig.locales[e];t?Object.assign(t,n):xe[e]=n}))}}pe=Te(e.getSystemInfoSync().language)||ve,be();var we=(0,h.initVueI18n)(pe,{}),Se=we.t;we.mixin={beforeCreate:function(){var e=this,t=we.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return Se(e,t)}}},we.setLocale,we.getLocale;function ke(e,t,n){var r=e.observable({locale:n||we.getLocale()}),i=[];t.$watchLocale=function(e){i.push(e)},Object.defineProperty(t,"$locale",{get:function(){return r.locale},set:function(e){r.locale=e,i.forEach((function(t){return t(e)}))}})}function Ae(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}function Ie(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function Ce(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function Te(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return ge;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?ge:e.indexOf("-hant")>-1||Ie(e,["-tw","-hk","-mo","-cht"])?ye:ge;var n=Ce(e,[ve,me,_e]);return n||void 0}}function Me(){if(w(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return Te(e.getSystemInfoSync().language)||ve}function De(e){var t=!!w(getApp)&&getApp();if(!t)return!1;var n=t.$vm.$locale;return n!==e&&(t.$vm.$locale=e,Oe.forEach((function(t){return t({locale:e})})),!0)}var Oe=[];function Pe(e){-1===Oe.indexOf(e)&&Oe.push(e)}"undefined"!==typeof r&&(r.getLocale=Me);var Le={promiseInterceptor:X},Ee=Object.freeze({__proto__:null,upx2px:fe,getLocale:Me,setLocale:De,onLocaleChange:Pe,addInterceptor:z,removeInterceptor:U,interceptors:Le});function Re(e){var t=getCurrentPages(),n=t.length;while(n--){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}var Ne,Be={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=Re(e.url);if(-1!==t){var n=getCurrentPages().length-1-t;n>0&&(e.delta=n)}}}},Fe={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var n=e.urls;if(Array.isArray(n)){var r=n.length;if(r)return t<0?t=0:t>=r&&(t=r-1),t>0?(e.current=n[t],e.urls=n.filter((function(e,r){return!(r<t)||e!==n[t]}))):e.current=n[0],{indicator:!1,loop:!1}}}}},je="__DC_STAT_UUID";function ze(t){Ne=Ne||e.getStorageSync(je),Ne||(Ne=Date.now()+""+Math.floor(1e7*Math.random()),e.setStorage({key:je,data:Ne})),t.deviceId=Ne}function Ue(e){if(e.safeArea){var t=e.safeArea;e.safeAreaInsets={top:t.top,left:t.left,right:e.windowWidth-t.right,bottom:e.screenHeight-t.bottom}}}function Ve(e){var t=e.brand,n=void 0===t?"":t,r=e.model,i=void 0===r?"":r,o=e.system,a=void 0===o?"":o,s=e.language,u=void 0===s?"":s,l=e.theme,c=e.version,h=(e.platform,e.fontSizeSetting),d=e.SDKVersion,f=e.pixelRatio,p=e.deviceOrientation,g={},y="",v="";y=a.split(" ")[0]||"",v=a.split(" ")[1]||"";var m=c,_=qe(e,i),x=$e(n),b=We(e),w=p,S=f,k=d,A=u.replace(/_/g,"-"),I={appId:"__UNI__2FEDA34",appName:"zhcxWXMIniProgram",appVersion:"1.0.0",appVersionCode:"100",appLanguage:He(A),uniCompileVersion:"4.29",uniRuntimeVersion:"4.29",uniPlatform:"mp-weixin",deviceBrand:x,deviceModel:i,deviceType:_,devicePixelRatio:S,deviceOrientation:w,osName:y.toLocaleLowerCase(),osVersion:v,hostTheme:l,hostVersion:m,hostLanguage:A,hostName:b,hostSDKVersion:k,hostFontSizeSetting:h,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0};Object.assign(e,I,g)}function qe(e,t){for(var n=e.deviceType||"phone",r={ipad:"pad",windows:"pc",mac:"pc"},i=Object.keys(r),o=t.toLocaleLowerCase(),a=0;a<i.length;a++){var s=i[a];if(-1!==o.indexOf(s)){n=r[s];break}}return n}function $e(e){var t=e;return t&&(t=e.toLocaleLowerCase()),t}function He(e){return Me?Me():e}function We(e){var t="WeChat",n=e.hostName||t;return e.environment?n=e.environment:e.host&&e.host.env&&(n=e.host.env),n}var Ge={returnValue:function(e){ze(e),Ue(e),Ve(e)}},Ke={args:function(e){"object"===(0,c.default)(e)&&(e.alertText=e.title)}},Xe={returnValue:function(e){var t=e,n=t.version,r=t.language,i=t.SDKVersion,o=t.theme,a=We(e),s=r.replace("_","-");e=O(Object.assign(e,{appId:"__UNI__2FEDA34",appName:"zhcxWXMIniProgram",appVersion:"1.0.0",appVersionCode:"100",appLanguage:He(s),hostVersion:n,hostLanguage:s,hostName:a,hostSDKVersion:i,hostTheme:o}))}},Ye={returnValue:function(e){var t=e,n=t.brand,r=t.model,i=qe(e,r),o=$e(n);ze(e),e=O(Object.assign(e,{deviceType:i,deviceBrand:o,deviceModel:r}))}},Je={returnValue:function(e){Ue(e),e=O(Object.assign(e,{windowTop:0,windowBottom:0}))}},Ze={returnValue:function(e){var t=e.locationReducedAccuracy;e.locationAccuracy="unsupported",!0===t?e.locationAccuracy="reduced":!1===t&&(e.locationAccuracy="full")}},Qe={args:function(e){e.compressedHeight&&!e.compressHeight&&(e.compressHeight=e.compressedHeight),e.compressedWidth&&!e.compressWidth&&(e.compressWidth=e.compressedWidth)}},et={redirectTo:Be,previewImage:Fe,getSystemInfo:Ge,getSystemInfoSync:Ge,showActionSheet:Ke,getAppBaseInfo:Xe,getDeviceInfo:Ye,getWindowInfo:Je,getAppAuthorizeSetting:Ze,compressImage:Qe},tt=["vibrate","preloadPage","unPreloadPage","loadSubPackage"],nt=[],rt=["success","fail","cancel","complete"];function it(e,t,n){return function(r){return t(at(e,r,n))}}function ot(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(A(t)){var o=!0===i?t:{};for(var a in w(n)&&(n=n(t,o)||{}),t)if(I(n,a)){var s=n[a];w(s)&&(s=s(t[a],t,o)),s?S(s)?o[s]=t[a]:A(s)&&(o[s.name?s.name:a]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==rt.indexOf(a)?w(t[a])&&(o[a]=it(e,t[a],r)):i||(o[a]=t[a]);return o}return w(t)&&(t=it(e,t,r)),t}function at(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return w(et.returnValue)&&(t=et.returnValue(e,t)),ot(e,t,n,{},r)}function st(t,n){if(I(et,t)){var r=et[t];return r?function(n,i){var o=r;w(r)&&(o=r(n)),n=ot(t,n,o.args,o.returnValue);var a=[n];"undefined"!==typeof i&&a.push(i),w(o.name)?t=o.name(n):S(o.name)&&(t=o.name);var s=e[t].apply(e,a);return ne(t)?at(t,s,o.returnValue,te(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return n}var ut=Object.create(null),lt=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function ct(e){return function(t){var n=t.fail,r=t.complete,i={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};w(n)&&n(i),w(r)&&r(i)}}lt.forEach((function(e){ut[e]=ct(e)}));var ht={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function dt(e){var t=e.service,n=e.success,r=e.fail,i=e.complete,o=!1;ht[t]?(o={errMsg:"getProvider:ok",service:t,provider:ht[t]},w(n)&&n(o)):(o={errMsg:"getProvider:fail service not found"},w(r)&&r(o)),w(i)&&i(o)}var ft=Object.freeze({__proto__:null,getProvider:dt}),pt=function(){var e;return function(){return e||(e=new d.default),e}}();function gt(e,t,n){return e[t].apply(e,n)}function yt(){return gt(pt(),"$on",Array.prototype.slice.call(arguments))}function vt(){return gt(pt(),"$off",Array.prototype.slice.call(arguments))}function mt(){return gt(pt(),"$once",Array.prototype.slice.call(arguments))}function _t(){return gt(pt(),"$emit",Array.prototype.slice.call(arguments))}var xt,bt,wt,St=Object.freeze({__proto__:null,$on:yt,$off:vt,$once:mt,$emit:_t});function kt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function At(e){var t={};for(var n in e){var r=e[n];w(r)&&(t[n]=kt(r),delete e[n])}return t}function It(e){try{return JSON.parse(e)}catch(t){}return e}function Ct(e){if("enabled"===e.type)wt=!0;else if("clientId"===e.type)xt=e.cid,bt=e.errMsg,Mt(xt,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:It(e.message)},n=0;n<Ot.length;n++){var r=Ot[n];if(r(t),t.stopped)break}else"click"===e.type&&Ot.forEach((function(t){t({type:"click",data:It(e.message)})}))}var Tt=[];function Mt(e,t){Tt.forEach((function(n){n(e,t)})),Tt.length=0}function Dt(e){A(e)||(e={});var t=At(e),n=t.success,r=t.fail,i=t.complete,o=w(n),a=w(r),s=w(i);Promise.resolve().then((function(){"undefined"===typeof wt&&(wt=!1,xt="",bt="uniPush is not enabled"),Tt.push((function(e,t){var u;e?(u={errMsg:"getPushClientId:ok",cid:e},o&&n(u)):(u={errMsg:"getPushClientId:fail"+(t?" "+t:"")},a&&r(u)),s&&i(u)})),"undefined"!==typeof xt&&Mt(xt,bt)}))}var Ot=[],Pt=function(e){-1===Ot.indexOf(e)&&Ot.push(e)},Lt=function(e){if(e){var t=Ot.indexOf(e);t>-1&&Ot.splice(t,1)}else Ot.length=0},Et=e.getAppBaseInfo&&e.getAppBaseInfo();Et||(Et=e.getSystemInfoSync());var Rt=Et?Et.host:null,Nt=Rt&&"SAAASDK"===Rt.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Bt=Object.freeze({__proto__:null,shareVideoMessage:Nt,getPushClientId:Dt,onPushMessage:Pt,offPushMessage:Lt,invokePushCallback:Ct}),Ft=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function jt(e,t){for(var n,r=e.$children,i=r.length-1;i>=0;i--){var o=r[i];if(o.$scope._$vueId===t)return o}for(var a=r.length-1;a>=0;a--)if(n=jt(r[a],t),n)return n}function zt(e){return Behavior(e)}function Ut(){return!!this.route}function Vt(e){this.triggerEvent("__l",e)}function qt(e,t,n){var r=e.selectAllComponents(t)||[];r.forEach((function(e){var r=e.dataset.ref;n[r]=e.$vm||Kt(e),"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){qt(e,t,n)}))}))}function $t(e,t){var n=(0,u.default)(Set,(0,l.default)(Object.keys(e))),r=Object.keys(t);return r.forEach((function(r){var i=e[r],o=t[r];Array.isArray(i)&&Array.isArray(o)&&i.length===o.length&&o.every((function(e){return i.includes(e)}))||(e[r]=o,n.delete(r))})),n.forEach((function(t){delete e[t]})),e}function Ht(e){var t=e.$scope,n={};Object.defineProperty(e,"$refs",{get:function(){var e={};qt(t,".vue-ref",e);var r=t.selectAllComponents(".vue-ref-in-for")||[];return r.forEach((function(t){var n=t.dataset.ref;e[n]||(e[n]=[]),e[n].push(t.$vm||Kt(t))})),$t(n,e)}})}function Wt(e){var t,n=e.detail||e.value,r=n.vuePid,i=n.vueOptions;r&&(t=jt(this.$vm,r)),t||(t=this.$vm),i.parent=t}function Gt(e){var t="__v_isMPComponent";return Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:!0}),e}function Kt(e){var t="__ob__",n="__v_skip";return k(e)&&Object.isExtensible(e)&&Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:(0,s.default)({},n,!0)}),e}var Xt=/_(.*)_worklet_factory_/;function Yt(e,t){t&&Object.keys(t).forEach((function(n){var r=n.match(Xt);if(r){var i=r[1];e[n]=t[n],e[i]=t[i]}}))}var Jt=Page,Zt=Component,Qt=/:/g,en=T((function(e){return D(e.replace(Qt,"-"))}));function tn(e){var t=e.triggerEvent,n=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.$vm||this.dataset&&this.dataset.comType)e=en(e);else{var o=en(e);o!==e&&t.apply(this,[o].concat(r))}return t.apply(this,[e].concat(r))};try{e.triggerEvent=n}catch(r){e._triggerEvent=n}}function nn(e,t,n){var r=t[e];t[e]=function(){if(Gt(this),tn(this),r){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.apply(this,t)}}}Jt.__$wrappered||(Jt.__$wrappered=!0,Page=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return nn("onLoad",e),Jt(e)},Page.after=Jt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return nn("created",e),Zt(e)});var rn=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function on(e,t){var n=e.$mp[e.mpType];t.forEach((function(t){I(n,t)&&(e[t]=n[t])}))}function an(e,t){if(!t)return!0;if(d.default.options&&Array.isArray(d.default.options[e]))return!0;if(t=t.default||t,w(t))return!!w(t.extendOptions[e])||!!(t.super&&t.super.options&&Array.isArray(t.super.options[e]));if(w(t[e])||Array.isArray(t[e]))return!0;var n=t.mixins;return Array.isArray(n)?!!n.find((function(t){return an(e,t)})):void 0}function sn(e,t,n){t.forEach((function(t){an(t,n)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];ln(t).forEach((function(t){return cn(e,t,n)}))}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(n){0===n.indexOf("on")&&w(e[n])&&t.push(n)})),t}function cn(e,t,n){-1!==n.indexOf(t)||I(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function hn(e,t){var n;return t=t.default||t,n=w(t)?t:e.extend(t),t=n.options,[n,t]}function dn(e,t){if(Array.isArray(t)&&t.length){var n=Object.create(null);t.forEach((function(e){n[e]=!0})),e.$scopedSlots=e.$slots=n}}function fn(e,t){e=(e||"").split(",");var n=e.length;1===n?t._$vueId=e[0]:2===n&&(t._$vueId=e[0],t._$vuePid=e[1])}function pn(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(i){Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"zhcxWXMIniProgram",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return A(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||I(n,e)||(n[e]=r[e])})),n}var gn=[String,Number,Boolean,Object,Array,null];function yn(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function vn(e,t){var n=e.behaviors,r=e.extends,i=e.mixins,o=e.props;o||(e.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(e){a.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),A(r)&&r.props&&a.push(t({properties:_n(r.props,!0)})),Array.isArray(i)&&i.forEach((function(e){A(e)&&e.props&&a.push(t({properties:_n(e.props,!0)}))})),a}function mn(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function _n(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return t||(r.vueId={type:String,value:""},n.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(e,t){var n=Object.create(null);e.forEach((function(e){n[e]=!0})),this.setData({$slots:n})}}),Array.isArray(e)?e.forEach((function(e){r[e]={type:null,observer:yn(e)}})):A(e)&&Object.keys(e).forEach((function(t){var n=e[t];if(A(n)){var i=n.default;w(i)&&(i=i()),n.type=mn(t,n.type),r[t]={type:-1!==gn.indexOf(n.type)?n.type:null,value:i,observer:yn(t)}}else{var o=mn(t,n);r[t]={type:-1!==gn.indexOf(o)?o:null,observer:yn(t)}}})),r}function xn(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=C,e.preventDefault=C,e.target=e.target||{},I(e,"detail")||(e.detail={}),I(e,"markerId")&&(e.detail="object"===(0,c.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),A(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function bn(e,t){var n=e;return t.forEach((function(t){var r=t[0],i=t[2];if(r||"undefined"!==typeof i){var o,a=t[1],s=t[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):e.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(t){return e.__get_value(a,t)===i})):A(o)?n=Object.keys(o).find((function(t){return e.__get_value(a,o[t])===i})):console.error("v-for 暂不支持循环数据:",o):n=o[i],s&&(n=e.__get_value(s,n))}})),n}function wn(e,t,n,r){var i={};return Array.isArray(t)&&t.length&&t.forEach((function(t,o){"string"===typeof t?t?"$event"===t?i["$"+o]=n:"arguments"===t?i["$"+o]=n.detail&&n.detail.__args__||r:0===t.indexOf("$event.")?i["$"+o]=e.__get_value(t.replace("$event.",""),n):i["$"+o]=e.__get_value(t):i["$"+o]=e:i["$"+o]=bn(e,t)})),i}function Sn(e){for(var t={},n=1;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t}function kn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=!1,s=A(t.detail)&&t.detail.__args__||[t.detail];if(i&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!n.length))return a?[t]:s;var u=wn(e,r,t,s),l=[];return n.forEach((function(e){"$event"===e?"__set_model"!==o||i?i&&!a?l.push(s[0]):l.push(t):l.push(t.target.value):Array.isArray(e)&&"o"===e[0]?l.push(Sn(e)):"string"===typeof e&&I(u,e)?l.push(u[e]):l.push(e)})),l}var An="~",In="^";function Cn(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}function Tn(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}function Mn(e){var t=this;e=xn(e);var n=(e.currentTarget||e.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var i=e.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s=r.charAt(0)===In;r=s?r.slice(1):r;var u=r.charAt(0)===An;r=u?r.slice(1):r,a&&Cn(i,r)&&a.forEach((function(n){var r=n[0];if(r){var i=t.$vm;if(i.$options.generic&&(i=Tn(i)||i),"$emit"===r)return void i.$emit.apply(i,kn(t.$vm,e,n[1],n[2],s,r));var a=i[r];if(!w(a)){var l="page"===t.$vm.mpType?"Page":"Component",c=t.route||t.is;throw new Error("".concat(l,' "').concat(c,'" does not have a method "').concat(r,'"'))}if(u){if(a.once)return;a.once=!0}var h=kn(t.$vm,e,n[1],n[2],s,r);h=Array.isArray(h)?h:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(h=h.concat([,,,,,,,,,,e])),o.push(a.apply(i,h))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var Dn={};function On(e){var t=Dn[e];return delete Dn[e],t}var Pn=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Ln(){d.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=d.default.prototype.__call_hook;d.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=On(n.__id__),delete n.__id__),e.call(this,t,n)}}function En(){var e={},t={};function n(e){var t=this.$options.propsData.vueId;if(t){var n=t.split(",")[0];e(n)}}d.default.prototype.$hasSSP=function(n){var r=e[n];return r||(t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))),r},d.default.prototype.$getSSP=function(t,n,r){var i=e[t];if(i){var o=i[n]||[];return r?o:o[0]}},d.default.prototype.$setSSP=function(t,r){var i=0;return n.call(this,(function(n){var o=e[n],a=o[t]=o[t]||[];a.push(r),i=a.length-1})),i},d.default.prototype.$initSSP=function(){n.call(this,(function(t){e[t]={}}))},d.default.prototype.$callSSP=function(){n.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},d.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete e[r],delete t[r])}})}function Rn(t,n){var r=n.mocks,i=n.initRefs;Ln(),En(),t.$options.store&&(d.default.prototype.$store=t.$options.store),_(d.default),d.default.prototype.mpHost="mp-weixin",d.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(i(this),on(this,r))}}});var o={onLaunch:function(n){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",n),this.$vm.__call_hook("onLaunch",n))}};o.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(e){o[e]=a[e]})),ke(d.default,t,Te(e.getSystemInfoSync().language)||ve),sn(o,Pn),un(o,t.$options),o}function Nn(e){return Rn(e,{mocks:Ft,initRefs:Ht})}function Bn(e){return App(Nn(e)),e}var Fn=/[!'()*]/g,jn=function(e){return"%"+e.charCodeAt(0).toString(16)},zn=/%2C/g,Un=function(e){return encodeURIComponent(e).replace(Fn,jn).replace(zn,",")};function Vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Un,n=e?Object.keys(e).map((function(n){var r=e[n];if(void 0===r)return"";if(null===r)return t(n);if(Array.isArray(r)){var i=[];return r.forEach((function(e){void 0!==e&&(null===e?i.push(t(n)):i.push(t(n)+"="+t(e)))})),i.join("&")}return t(n)+"="+t(r)})).filter((function(e){return e.length>0})).join("&"):null;return n?"?".concat(n):""}function qn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPage,r=t.initRelation,i=arguments.length>2?arguments[2]:void 0,o=hn(d.default,e),s=(0,a.default)(o,2),u=s[0],l=s[1],c=p({multipleSlots:!0,addGlobalClass:!0},l.options||{});l["mp-weixin"]&&l["mp-weixin"].options&&Object.assign(c,l["mp-weixin"].options);var h={options:c,data:pn(l,d.default.prototype),behaviors:vn(l,zt),properties:_n(l.props,!1,l.__file,c),lifetimes:{attached:function(){var e=this.properties,t={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:e};fn(e.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new u(t),dn(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:Wt,__e:Mn}};return l.externalClasses&&(h.externalClasses=l.externalClasses),Array.isArray(l.wxsCallMethods)&&l.wxsCallMethods.forEach((function(e){h.methods[e]=function(t){return this.$vm[e](t)}})),i?[h,l,u]:n?h:[h,u]}function $n(e,t){return qn(e,{isPage:Ut,initRelation:Vt},t)}var Hn=["onShow","onHide","onUnload"];function Wn(e){var t=$n(e,!0),n=(0,a.default)(t,2),r=n[0],i=n[1];return sn(r.methods,Hn,i),r.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Vn(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},un(r.methods,e,["onReady"]),Yt(r.methods,i.methods),r}function Gn(e){return Wn(e)}function Kn(e){return Component(Gn(e))}function Xn(e){return Component($n(e))}function Yn(t){var n=Nn(t),r=getApp({allowDefault:!0});t.$scope=r;var i=r.globalData;if(i&&Object.keys(n.globalData).forEach((function(e){I(i,e)||(i[e]=n.globalData[e])})),Object.keys(n).forEach((function(e){I(r,e)||(r[e]=n[e])})),w(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onShow",n)})),w(n.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onHide",n)})),w(n.onLaunch)){var o=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",o)}return t}function Jn(t){var n=Nn(t);if(w(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onShow",n)})),w(n.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onHide",n)})),w(n.onLaunch)){var r=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",r)}return t}Hn.push.apply(Hn,rn),tt.forEach((function(e){et[e]=!1})),nt.forEach((function(t){var n=et[t]&&et[t].name?et[t].name:t;e.canIUse(n)||(et[t]=!1)}));var Zn={};"undefined"!==typeof Proxy?Zn=new Proxy({},{get:function(t,n){return I(t,n)?t[n]:Ee[n]?Ee[n]:Bt[n]?ae(n,Bt[n]):ft[n]?ae(n,ft[n]):ut[n]?ae(n,ut[n]):St[n]?St[n]:ae(n,st(n,e[n]))},set:function(e,t,n){return e[t]=n,!0}}):(Object.keys(Ee).forEach((function(e){Zn[e]=Ee[e]})),Object.keys(ut).forEach((function(e){Zn[e]=ae(e,ut[e])})),Object.keys(ft).forEach((function(e){Zn[e]=ae(e,ft[e])})),Object.keys(St).forEach((function(e){Zn[e]=St[e]})),Object.keys(Bt).forEach((function(e){Zn[e]=ae(e,Bt[e])})),Object.keys(e).forEach((function(t){(I(e,t)||I(et,t))&&(Zn[t]=ae(t,st(t,e[t])))}))),e.createApp=Bn,e.createPage=Kn,e.createComponent=Xn,e.createSubpackageApp=Yn,e.createPlugin=Jn;var Qn=Zn,er=Qn;t.default=er}).call(this,n(1)["default"],n(3))},20:function(e,t){function n(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},21:function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},22:function(e,t,n){"use strict";(function(e,r){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0,t.compileI18nJsonStr=R,t.hasI18nJson=L,t.initVueI18n=D,t.isI18nStr=N,t.isString=void 0,t.normalizeLocale=I,t.parseI18nJson=E,t.resolveLocale=U;var o=i(n(5)),a=i(n(23)),s=i(n(24)),u=i(n(13)),l=function(e){return null!==e&&"object"===(0,u.default)(e)},c=["{","}"],h=function(){function e(){(0,a.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if(!t)return[e];var r=this._caches[e];return r||(r=p(e,n),this._caches[e]=r),g(r,t)}}]),e}();t.Formatter=h;var d=/^(?:\d)+/,f=/^(?:\w)+/;function p(e,t){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=[],s=0,u="";while(s<e.length){var l=e[s++];if(l===r){u&&a.push({type:"text",value:u}),u="";var c="";l=e[s++];while(void 0!==l&&l!==i)c+=l,l=e[s++];var h=l===i,p=d.test(c)?"list":h&&f.test(c)?"named":"unknown";a.push({value:c,type:p})}else u+=l}return u&&a.push({type:"text",value:u}),a}function g(e,t){var n=[],r=0,i=Array.isArray(t)?"list":l(t)?"named":"unknown";if("unknown"===i)return n;while(r<e.length){var o=e[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(t[parseInt(o.value,10)]);break;case"named":"named"===i?n.push(t[o.value]):console.warn("Type of token '".concat(o.type,"' and format of value '").concat(i,"' don't match!"));break;case"unknown":console.warn("Detect 'unknown' type of token!");break}r++}return n}var y="zh-Hans";t.LOCALE_ZH_HANS=y;var v="zh-Hant";t.LOCALE_ZH_HANT=v;var m="en";t.LOCALE_EN=m;var _="fr";t.LOCALE_FR=_;var x="es";t.LOCALE_ES=x;var b=Object.prototype.hasOwnProperty,w=function(e,t){return b.call(e,t)},S=new h;function k(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function A(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function I(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return y;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?y:e.indexOf("-hant")>-1||k(e,["-tw","-hk","-mo","-cht"])?v:y;var n=[m,_,x];t&&Object.keys(t).length>0&&(n=Object.keys(t));var r=A(e,n);return r||void 0}}var C=function(){function e(t){var n=t.locale,r=t.fallbackLocale,i=t.messages,o=t.watcher,s=t.formater;(0,a.default)(this,e),this.locale=m,this.fallbackLocale=m,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||S,this.messages=i||{},this.setLocale(n||m),o&&this.watchLocale(o)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=I(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(e){e(t.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}}},{key:"add",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((function(e){w(r,e)||(r[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,n){return this.formater.interpolate(e,t,n).join("")}},{key:"t",value:function(e,t,n){var r=this.message;return"string"===typeof t?(t=I(t,this.messages),t&&(r=this.messages[t])):n=t,w(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function T(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function M(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():m}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var i=[t,e];e=i[0],t=i[1]}"string"!==typeof e&&(e=M()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||m);var o=new C({locale:e,fallbackLocale:n,messages:t,watcher:r}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return o.t(e,t)};else{var n=!1;a=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,T(r,o))),o.t(e,t)}}return a(e,t)};return{i18n:o,f:function(e,t,n){return o.f(e,t,n)},t:function(e,t){return a(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(e,t,n)},watch:function(e){return o.watchLocale(e)},getLocale:function(){return o.getLocale()},setLocale:function(e){return o.setLocale(e)}}}t.I18n=C;var O,P=function(e){return"string"===typeof e};function L(e,t){return O||(O=new h),z(e,(function(e,n){var r=e[n];return P(r)?!!N(r,t)||void 0:L(r,t)}))}function E(e,t,n){return O||(O=new h),z(e,(function(e,r){var i=e[r];P(i)?N(i,n)&&(e[r]=B(i,t,n)):E(i,t,n)})),e}function R(e,t){var n=t.locale,r=t.locales,i=t.delimiters;if(!N(e,i))return e;O||(O=new h);var o=[];Object.keys(r).forEach((function(e){e!==n&&o.push({locale:e,values:r[e]})})),o.unshift({locale:n,values:r[n]});try{return JSON.stringify(j(JSON.parse(e),o,i),null,2)}catch(a){}return e}function N(e,t){return e.indexOf(t[0])>-1}function B(e,t,n){return O.interpolate(e,t,n).join("")}function F(e,t,n,r){var i=e[t];if(P(i)){if(N(i,r)&&(e[t]=B(i,n[0].values,r),n.length>1)){var o=e[t+"Locales"]={};n.forEach((function(e){o[e.locale]=B(i,e.values,r)}))}}else j(i,n,r)}function j(e,t,n){return z(e,(function(e,r){F(e,r,t,n)})),e}function z(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t(e,n))return!0}else if(l(e))for(var r in e)if(t(e,r))return!0;return!1}function U(e){return function(t){return t?(t=I(t)||t,V(t).find((function(t){return e.indexOf(t)>-1}))):t}}function V(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}t.isString=P}).call(this,n(2)["default"],n(3))},23:function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},24:function(e,t,n){var r=n(12);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},25:function(e,t,n){"use strict";n.r(t),function(e){
- /*!
- * Vue.js v2.6.11
- * (c) 2014-2023 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return null!==e&&"object"===typeof e}var l=Object.prototype.toString;function c(e){return l.call(e).slice(8,-1)}function h(e){return"[object Object]"===l.call(e)}function d(e){return"[object RegExp]"===l.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function g(e){return null==e?"":Array.isArray(e)||h(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function y(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var m=v("slot,component",!0),_=v("key,ref,slot,slot-scope,is");function x(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(e,t){return b.call(e,t)}function S(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var k=/-(\w)/g,A=S((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),I=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,T=S((function(e){return e.replace(C,"-$1").toLowerCase()}));function M(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function D(e,t){return e.bind(t)}var O=Function.prototype.bind?D:M;function P(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function L(e,t){for(var n in t)e[n]=t[n];return e}function E(e){for(var t={},n=0;n<e.length;n++)e[n]&&L(t,e[n]);return t}function R(e,t,n){}var N=function(e,t,n){return!1},B=function(e){return e};function F(e,t){if(e===t)return!0;var n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return F(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return F(e[n],t[n])}))}catch(l){return!1}}function j(e,t){for(var n=0;n<e.length;n++)if(F(e[n],t))return n;return-1}function z(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var U=["component","directive","filter"],V=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:N,isReservedAttr:N,isUnknownElement:N,getTagNamespace:R,parsePlatformTagName:B,mustUseProp:N,async:!0,_lifecycleHooks:V},$=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function W(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var G=new RegExp("[^"+$.source+".$_\\d]");function K(e){if(!G.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var X,Y="__proto__"in{},J="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=Z&&WXEnvironment.platform.toLowerCase(),ee=J&&window.navigator.userAgent.toLowerCase(),te=ee&&/msie|trident/.test(ee),ne=(ee&&ee.indexOf("msie 9.0"),ee&&ee.indexOf("edge/")>0),re=(ee&&ee.indexOf("android"),ee&&/iphone|ipad|ipod|ios/.test(ee)||"ios"===Q),ie=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/),{}.watch);if(J)try{var oe={};Object.defineProperty(oe,"passive",{get:function(){}}),window.addEventListener("test-passive",null,oe)}catch(ji){}var ae=function(){return void 0===X&&(X=!J&&!Z&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),X},se=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ue(e){return"function"===typeof e&&/native code/.test(e.toString())}var le,ce="undefined"!==typeof Symbol&&ue(Symbol)&&"undefined"!==typeof Reflect&&ue(Reflect.ownKeys);le="undefined"!==typeof Set&&ue(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var he=R,de=R,fe=R,pe=R,ge="undefined"!==typeof console,ye=/(?:^|[-_])(\w)/g,ve=function(e){return e.replace(ye,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};he=function(e,t){var n=t?fe(t):"";q.warnHandler?q.warnHandler.call(null,e,t,n):ge&&!q.silent&&console.error("[Vue warn]: "+e+n)},de=function(e,t){ge&&!q.silent&&console.warn("[Vue tip]: "+e+(t?fe(t):""))},pe=function(e,t){if(e.$root===e)return e.$options&&e.$options.__file?""+e.$options.__file:"<Root>";var n="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,r=n.name||n._componentTag,i=n.__file;if(!r&&i){var o=i.match(/([^/\\]+)\.vue$/);r=o&&o[1]}return(r?"<"+ve(r)+">":"<Anonymous>")+(i&&!1!==t?" at "+i:"")};var me=function(e,t){var n="";while(t)t%2===1&&(n+=e),t>1&&(e+=e),t>>=1;return n};fe=function(e){if(e._isVue&&e.$parent){var t=[],n=0;while(e&&"PageBody"!==e.$options.name){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}!e.$options.isReserved&&t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,t){return""+(0===t?"---\x3e ":me(" ",5+2*t))+(Array.isArray(e)?pe(e[0])+"... ("+e[1]+" recursive calls)":pe(e))})).join("\n")}return"\n\n(found in "+pe(e)+")"};var _e=0,xe=function(){this.id=_e++,this.subs=[]};function be(e){xe.SharedObject.targetStack.push(e),xe.SharedObject.target=e,xe.target=e}function we(){xe.SharedObject.targetStack.pop(),xe.SharedObject.target=xe.SharedObject.targetStack[xe.SharedObject.targetStack.length-1],xe.target=xe.SharedObject.target}xe.prototype.addSub=function(e){this.subs.push(e)},xe.prototype.removeSub=function(e){x(this.subs,e)},xe.prototype.depend=function(){xe.SharedObject.target&&xe.SharedObject.target.addDep(this)},xe.prototype.notify=function(){var e=this.subs.slice();q.async||e.sort((function(e,t){return e.id-t.id}));for(var t=0,n=e.length;t<n;t++)e[t].update()},xe.SharedObject={},xe.SharedObject.target=null,xe.SharedObject.targetStack=[];var Se=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ke={child:{configurable:!0}};ke.child.get=function(){return this.componentInstance},Object.defineProperties(Se.prototype,ke);var Ae=function(e){void 0===e&&(e="");var t=new Se;return t.text=e,t.isComment=!0,t};function Ie(e){return new Se(void 0,void 0,void 0,String(e))}function Ce(e){var t=new Se(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Te=Array.prototype,Me=Object.create(Te),De=["push","pop","shift","unshift","splice","sort","reverse"];De.forEach((function(e){var t=Te[e];W(Me,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Oe=Object.getOwnPropertyNames(Me),Pe=!0;function Le(e){Pe=e}var Ee=function(e){this.value=e,this.dep=new xe,this.vmCount=0,W(e,"__ob__",this),Array.isArray(e)?(Y?e.push!==e.__proto__.push?Ne(e,Me,Oe):Re(e,Me):Ne(e,Me,Oe),this.observeArray(e)):this.walk(e)};function Re(e,t){e.__proto__=t}function Ne(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];W(e,o,t[o])}}function Be(e,t){var n;if(u(e)&&!(e instanceof Se))return w(e,"__ob__")&&e.__ob__ instanceof Ee?n=e.__ob__:!Pe||ae()||!Array.isArray(e)&&!h(e)||!Object.isExtensible(e)||e._isVue||e.__v_isMPComponent||(n=new Ee(e)),t&&n&&n.vmCount++,n}function Fe(e,t,n,r,i){var o=new xe,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(n=e[t]);var l=!i&&Be(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return xe.SharedObject.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(t)&&Ue(t))),t},set:function(t){var a=s?s.call(e):n;t===a||t!==t&&a!==a||(r&&r(),s&&!u||(u?u.call(e,t):n=t,l=!i&&Be(t),o.notify()))}})}}function je(e,t,n){if((r(e)||s(e))&&he("Cannot set reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&f(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?(he("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):i?(Fe(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function ze(e,t){if((r(e)||s(e))&&he("Cannot delete reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&f(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount?he("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):w(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ue(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ue(t)}Ee.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Fe(e,t[n])},Ee.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Be(e[t])};var Ve=q.optionMergeStrategies;function qe(e,t){if(!t)return e;for(var n,r,i,o=ce?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=e[n],i=t[n],w(e,n)?r!==i&&h(r)&&h(i)&&qe(r,i):je(e,n,i));return e}function $e(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?qe(r,i):i}:t?e?function(){return qe("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function He(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?We(n):n}function We(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Ge(e,t,n,r){var i=Object.create(e||null);return t?(et(r,t,n),L(i,t)):i}Ve.el=Ve.propsData=function(e,t,n,r){return n||he('option "'+r+'" can only be used during instance creation with the `new` keyword.'),Ke(e,t)},Ve.data=function(e,t,n){return n?$e(e,t,n):t&&"function"!==typeof t?(he('The "data" option should be a function that returns a per-instance value in component definitions.',n),e):$e(e,t)},V.forEach((function(e){Ve[e]=He})),U.forEach((function(e){Ve[e+"s"]=Ge})),Ve.watch=function(e,t,n,r){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(et(r,t,n),!e)return t;var i={};for(var o in L(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Ve.props=Ve.methods=Ve.inject=Ve.computed=function(e,t,n,r){if(t&&et(r,t,n),!e)return t;var i=Object.create(null);return L(i,e),t&&L(i,t),i},Ve.provide=$e;var Ke=function(e,t){return void 0===t?e:t};function Xe(e){for(var t in e.components)Ye(t)}function Ye(e){new RegExp("^[a-zA-Z][\\-\\.0-9_"+$.source+"]*$").test(e)||he('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(m(e)||q.isReservedTag(e))&&he("Do not use built-in or reserved HTML elements as component id: "+e)}function Je(e,t){var n=e.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i?(o=A(i),a[o]={type:null}):he("props must be strings when using array syntax.")}else if(h(n))for(var s in n)i=n[s],o=A(s),a[o]=h(i)?i:{type:i};else he('Invalid value for option "props": expected an Array or an Object, but got '+c(n)+".",t);e.props=a}}function Ze(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(h(n))for(var o in n){var a=n[o];r[o]=h(a)?L({from:o},a):{from:a}}else he('Invalid value for option "inject": expected an Array or an Object, but got '+c(n)+".",t)}}function Qe(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function et(e,t,n){h(t)||he('Invalid value for option "'+e+'": expected an Object, but got '+c(t)+".",n)}function tt(e,t,n){if(Xe(t),"function"===typeof t&&(t=t.options),Je(t,n),Ze(t,n),Qe(t),!t._base&&(t.extends&&(e=tt(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=tt(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)w(e,o)||s(o);function s(r){var i=Ve[r]||Ke;a[r]=i(e[r],t[r],n,r)}return a}function nt(e,t,n,r){if("string"===typeof n){var i=e[t];if(w(i,n))return i[n];var o=A(n);if(w(i,o))return i[o];var a=I(o);if(w(i,a))return i[a];var s=i[n]||i[o]||i[a];return r&&!s&&he("Failed to resolve "+t.slice(0,-1)+": "+n,e),s}}function rt(e,t,n,r){var i=t[e],o=!w(n,e),a=n[e],s=ct(Boolean,i.type);if(s>-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===T(e)){var u=ct(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=it(r,i,e);var l=Pe;Le(!0),Be(a),Le(l)}return ot(i,e,a,r,o),a}function it(e,t,n){if(w(t,"default")){var r=t.default;return u(r)&&he('Invalid default value for prop "'+n+'": Props with type Object/Array must use a factory function to return the default value.',e),e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==ut(t.type)?r.call(e):r}}function ot(e,t,n,r,i){if(e.required&&i)he('Missing required prop: "'+t+'"',r);else if(null!=n||e.required){var o=e.type,a=!o||!0===o,s=[];if(o){Array.isArray(o)||(o=[o]);for(var u=0;u<o.length&&!a;u++){var l=st(n,o[u]);s.push(l.expectedType||""),a=l.valid}}if(a){var c=e.validator;c&&(c(n)||he('Invalid prop: custom validator check failed for prop "'+t+'".',r))}else he(ht(t,n,s),r)}}var at=/^(String|Number|Boolean|Function|Symbol)$/;function st(e,t){var n,r=ut(t);if(at.test(r)){var i=typeof e;n=i===r.toLowerCase(),n||"object"!==i||(n=e instanceof t)}else n="Object"===r?h(e):"Array"===r?Array.isArray(e):e instanceof t;return{valid:n,expectedType:r}}function ut(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function lt(e,t){return ut(e)===ut(t)}function ct(e,t){if(!Array.isArray(t))return lt(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(lt(t[n],e))return n;return-1}function ht(e,t,n){var r='Invalid prop: type check failed for prop "'+e+'". Expected '+n.map(I).join(", "),i=n[0],o=c(t),a=dt(t,i),s=dt(t,o);return 1===n.length&&ft(i)&&!pt(i,o)&&(r+=" with value "+a),r+=", got "+o+" ",ft(o)&&(r+="with value "+s+"."),r}function dt(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}function ft(e){var t=["string","number","boolean"];return t.some((function(t){return e.toLowerCase()===t}))}function pt(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];return e.some((function(e){return"boolean"===e.toLowerCase()}))}function gt(e,t,n){be();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,e,t,n);if(a)return}catch(ji){vt(ji,r,"errorCaptured hook")}}}vt(e,t,n)}finally{we()}}function yt(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&p(o)&&!o._handled&&(o.catch((function(e){return gt(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(ji){gt(ji,r,i)}return o}function vt(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(ji){ji!==e&&mt(ji,null,"config.errorHandler")}mt(e,t,n)}function mt(e,t,n){if(he("Error in "+n+': "'+e.toString()+'"',t),!J&&!Z||"undefined"===typeof console)throw e;console.error(e)}var _t,xt,bt=[],wt=!1;function St(){wt=!1;var e=bt.slice(0);bt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ue(Promise)){var kt=Promise.resolve();_t=function(){kt.then(St),re&&setTimeout(R)}}else if(te||"undefined"===typeof MutationObserver||!ue(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())_t="undefined"!==typeof setImmediate&&ue(setImmediate)?function(){setImmediate(St)}:function(){setTimeout(St,0)};else{var At=1,It=new MutationObserver(St),Ct=document.createTextNode(String(At));It.observe(Ct,{characterData:!0}),_t=function(){At=(At+1)%2,Ct.data=String(At)}}function Tt(e,t){var n;if(bt.push((function(){if(e)try{e.call(t)}catch(ji){gt(ji,t,"nextTick")}else n&&n(t)})),wt||(wt=!0,_t()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var Mt=v("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),Dt=function(e,t){he('Property or method "'+t+'" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',e)},Ot=function(e,t){he('Property "'+t+'" must be accessed with "$data.'+t+'" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://vuejs.org/v2/api/#data',e)},Pt="undefined"!==typeof Proxy&&ue(Proxy);if(Pt){var Lt=v("stop,prevent,self,ctrl,shift,alt,meta,exact");q.keyCodes=new Proxy(q.keyCodes,{set:function(e,t,n){return Lt(t)?(he("Avoid overwriting built-in modifier in config.keyCodes: ."+t),!1):(e[t]=n,!0)}})}var Et={has:function(e,t){var n=t in e,r=Mt(t)||"string"===typeof t&&"_"===t.charAt(0)&&!(t in e.$data);return n||r||(t in e.$data?Ot(e,t):Dt(e,t)),n||!r}},Rt={get:function(e,t){return"string"!==typeof t||t in e||(t in e.$data?Ot(e,t):Dt(e,t)),e[t]}};xt=function(e){if(Pt){var t=e.$options,n=t.render&&t.render._withStripped?Rt:Et;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e};var Nt,Bt,Ft=new le;function jt(e){zt(e,Ft),Ft.clear()}function zt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!u(e)||Object.isFrozen(e)||e instanceof Se)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i){n=e.length;while(n--)zt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)zt(e[r[n]],t)}}}var Ut=J&&window.performance;Ut&&Ut.mark&&Ut.measure&&Ut.clearMarks&&Ut.clearMeasures&&(Nt=function(e){return Ut.mark(e)},Bt=function(e,t,n){Ut.measure(e,t,n),Ut.clearMarks(t),Ut.clearMarks(n)});var Vt=S((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function qt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return yt(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)yt(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function $t(e,t,n,i,a,s){var u,l,c,h;for(u in e)l=e[u],c=t[u],h=Vt(u),r(l)?he('Invalid handler for event "'+h.name+'": got '+String(l),s):r(c)?(r(l.fns)&&(l=e[u]=qt(l,s)),o(h.once)&&(l=e[u]=a(h.name,l,h.capture)),n(h.name,l,h.capture,h.passive,h.params)):l!==c&&(c.fns=l,e[u]=c);for(u in t)r(e[u])&&(h=Vt(u),i(h.name,t[u],h.capture))}function Ht(e,t,n,o){var a=t.options.mpOptions&&t.options.mpOptions.properties;if(r(a))return n;var s=t.options.mpOptions.externalClasses||[],u=e.attrs,l=e.props;if(i(u)||i(l))for(var c in a){var h=T(c),d=Gt(n,l,c,h,!0)||Gt(n,u,c,h,!1);d&&n[c]&&-1!==s.indexOf(h)&&o[A(n[c])]&&(n[c]=o[A(n[c])])}return n}function Wt(e,t,n,o){var a=t.options.props;if(r(a))return Ht(e,t,{},o);var s={},u=e.attrs,l=e.props;if(i(u)||i(l))for(var c in a){var h=T(c),d=c.toLowerCase();c!==d&&u&&w(u,d)&&de('Prop "'+d+'" is passed to component '+pe(n||t)+', but the declared prop name is "'+c+'". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "'+h+'" instead of "'+c+'".'),Gt(s,l,c,h,!0)||Gt(s,u,c,h,!1)}return Ht(e,t,s,o)}function Gt(e,t,n,r,o){if(i(t)){if(w(t,n))return e[n]=t[n],o||delete t[n],!0;if(w(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function Kt(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Xt(e){return s(e)?[Ie(e)]:Array.isArray(e)?Jt(e):void 0}function Yt(e){return i(e)&&i(e.text)&&a(e.isComment)}function Jt(e,t){var n,a,u,l,c=[];for(n=0;n<e.length;n++)a=e[n],r(a)||"boolean"===typeof a||(u=c.length-1,l=c[u],Array.isArray(a)?a.length>0&&(a=Jt(a,(t||"")+"_"+n),Yt(a[0])&&Yt(l)&&(c[u]=Ie(l.text+a[0].text),a.shift()),c.push.apply(c,a)):s(a)?Yt(l)?c[u]=Ie(l.text+a):""!==a&&c.push(Ie(a)):Yt(a)&&Yt(l)?c[u]=Ie(l.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),c.push(a)));return c}function Zt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Qt(e){var t=en(e.$options.inject,e);t&&(Le(!1),Object.keys(t).forEach((function(n){Fe(e,n,t[n],(function(){he('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+n+'"',e)}))})),Le(!0))}function en(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from,s=t;while(s){if(s._provided&&w(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var u=e[o].default;n[o]="function"===typeof u?u.call(t):u}else he('Injection "'+o+'" not found',t)}}return n}}function tn(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)o.asyncMeta&&o.asyncMeta.data&&"page"===o.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(o):(n.default||(n.default=[])).push(o);else{var s=a.slot,u=n[s]||(n[s]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var l in n)n[l].every(nn)&&delete n[l];return n}function nn(e){return e.isComment&&!e.asyncFactory||" "===e.text}function rn(e,t,r){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},e)e[u]&&"$"!==u[0]&&(i[u]=on(t,u,e[u]))}else i={};for(var l in t)l in i||(i[l]=an(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),W(i,"$stable",a),W(i,"$key",s),W(i,"$hasNormal",o),i}function on(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Xt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function an(e,t){return function(){return e[t]}}function sn(e,t){var n,r,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r,r,r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r,r,r);else if(u(e))if(ce&&e[Symbol.iterator]){n=[];var l=e[Symbol.iterator](),c=l.next();while(!c.done)n.push(t(c.value,n.length,r,r++)),c=l.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=t(e[s],s,r,r);return i(n)||(n=[]),n._isVList=!0,n}function un(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(u(r)||he("slot v-bind without argument expects an Object",this),n=L(L({},r),n)),i=o(n,this,n._i)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function ln(e){return nt(this.$options,"filters",e,!0)||B}function cn(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function hn(e,t,n,r,i){var o=q.keyCodes[t]||n;return i&&r&&!q.keyCodes[t]?cn(i,r):o?cn(o,e):r?T(r)!==t:void 0}function dn(e,t,n,r,i){if(n)if(u(n)){var o;Array.isArray(n)&&(n=E(n));var a=function(a){if("class"===a||"style"===a||_(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||q.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var u=A(a),l=T(a);if(!(u in o)&&!(l in o)&&(o[a]=n[a],i)){var c=e.on||(e.on={});c["update:"+a]=function(e){n[a]=e}}};for(var s in n)a(s)}else he("v-bind without argument expects an Object or Array value",this);return e}function fn(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),gn(r,"__static__"+e,!1)),r}function pn(e,t,n){return gn(e,"__once__"+t+(n?"_"+n:""),!0),e}function gn(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&yn(e[r],t+"_"+r,n);else yn(e,t,n)}function yn(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function vn(e,t){if(t)if(h(t)){var n=e.on=e.on?L({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else he("v-on without argument expects an Object value",this);return e}function mn(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?mn(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function _n(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r?e[t[n]]=t[n+1]:""!==r&&null!==r&&he("Invalid value for dynamic directive argument (expected string or null): "+r,this)}return e}function xn(e,t){return"string"===typeof e?t+e:e}function bn(e){e._o=pn,e._n=y,e._s=g,e._l=sn,e._t=un,e._q=F,e._i=j,e._m=fn,e._f=ln,e._k=hn,e._b=dn,e._v=Ie,e._e=Ae,e._u=mn,e._g=vn,e._d=_n,e._p=xn}function wn(e,t,r,i,a){var s,u=this,l=a.options;w(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var c=o(l._compiled),h=!c;this.data=e,this.props=t,this.children=r,this.parent=i,this.listeners=e.on||n,this.injections=en(l.inject,i),this.slots=function(){return u.$slots||rn(e.scopedSlots,u.$slots=tn(r,i)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return rn(e.scopedSlots,this.slots())}}),c&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=rn(e.scopedSlots,this.$slots)),l._scopeId?this._c=function(e,t,n,r){var o=Rn(s,e,t,n,r,h);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return Rn(s,e,t,n,r,h)}}function Sn(e,t,r,o,a){var s=e.options,u={},l=s.props;if(i(l))for(var c in l)u[c]=rt(c,l,t||n);else i(r.attrs)&&An(u,r.attrs),i(r.props)&&An(u,r.props);var h=new wn(r,u,a,o,e),d=s.render.call(null,h._c,h);if(d instanceof Se)return kn(d,r,h.parent,s,h);if(Array.isArray(d)){for(var f=Xt(d)||[],p=new Array(f.length),g=0;g<f.length;g++)p[g]=kn(f[g],r,h.parent,s,h);return p}}function kn(e,t,n,r,i){var o=Ce(e);return o.fnContext=n,o.fnOptions=r,(o.devtoolsMeta=o.devtoolsMeta||{}).renderContext=i,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function An(e,t){for(var n in t)e[A(n)]=t[n]}bn(wn.prototype);var In={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;In.prepatch(n,n)}else{var r=e.componentInstance=Mn(e,er);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;or(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(lr(n,"onServiceCreated"),lr(n,"onServiceAttached"),n._isMounted=!0,lr(n,"mounted")),e.data.keepAlive&&(t._isMounted?Sr(n):sr(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?ur(t,!0):t.$destroy())}},Cn=Object.keys(In);function Tn(e,t,n,a,s){if(!r(e)){var l=n.$options._base;if(u(e)&&(e=l.extend(e)),"function"===typeof e){var c;if(r(e.cid)&&(c=e,e=Hn(c,l),void 0===e))return $n(c,t,n,a,s);t=t||{},Wr(e),i(t.model)&&Pn(e.options,t);var h=Wt(t,e,s,n);if(o(e.options.functional))return Sn(e,h,t,n,a);var d=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var f=t.slot;t={},f&&(t.slot=f)}Dn(t);var p=e.options.name||s,g=new Se("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:h,listeners:d,tag:s,children:a},c);return g}he("Invalid Component definition: "+String(e),n)}}function Mn(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function Dn(e){for(var t=e.hook||(e.hook={}),n=0;n<Cn.length;n++){var r=Cn[n],i=t[r],o=In[r];i===o||i&&i._merged||(t[r]=i?On(o,i):o)}}function On(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Pn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[r],s=t.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var Ln=1,En=2;function Rn(e,t,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=En),Nn(e,t,n,r,i)}function Nn(e,t,n,r,o){if(i(n)&&i(n.__ob__))return he("Avoid using observed data object as vnode data: "+JSON.stringify(n)+"\nAlways create fresh vnode data objects in each render!",e),Ae();if(i(n)&&i(n.is)&&(t=n.is),!t)return Ae();var a,u,l;(i(n)&&i(n.key)&&!s(n.key)&&he("Avoid using non-primitive value as key, use string/number value instead.",e),Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===En?r=Xt(r):o===Ln&&(r=Kt(r)),"string"===typeof t)?(u=e.$vnode&&e.$vnode.ns||q.getTagNamespace(t),q.isReservedTag(t)?(i(n)&&i(n.nativeOn)&&he("The .native modifier for v-on is only valid on components but it was used on <"+t+">.",e),a=new Se(q.parsePlatformTagName(t),n,r,void 0,void 0,e)):a=n&&n.pre||!i(l=nt(e.$options,"components",t))?new Se(t,n,r,void 0,void 0,e):Tn(l,n,e,r,t)):a=Tn(t,n,e,r);return Array.isArray(a)?a:i(a)?(i(u)&&Bn(a,u),i(n)&&Fn(n),a):Ae()}function Bn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var a=0,s=e.children.length;a<s;a++){var u=e.children[a];i(u.tag)&&(r(u.ns)||o(n)&&"svg"!==u.tag)&&Bn(u,t,n)}}function Fn(e){u(e.style)&&jt(e.style),u(e.class)&&jt(e.class)}function jn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=tn(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return Rn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Rn(e,t,n,r,i,!0)};var o=r&&r.data;Fe(e,"$attrs",o&&o.attrs||n,(function(){!tr&&he("$attrs is readonly.",e)}),!0),Fe(e,"$listeners",t._parentListeners||n,(function(){!tr&&he("$listeners is readonly.",e)}),!0)}var zn,Un=null;function Vn(e){bn(e.prototype),e.prototype.$nextTick=function(e){return Tt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=rn(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Un=t,e=r.call(t._renderProxy,t.$createElement)}catch(ji){if(gt(ji,t,"render"),t.$options.renderError)try{e=t.$options.renderError.call(t._renderProxy,t.$createElement,ji)}catch(ji){gt(ji,t,"renderError"),e=t._vnode}else e=t._vnode}finally{Un=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof Se||(Array.isArray(e)&&he("Multiple root nodes returned from render function. Render function should return a single root node.",t),e=Ae()),e.parent=i,e}}function qn(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function $n(e,t,n,r,i){var o=Ae();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function Hn(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=Un;if(n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var a=e.owners=[n],s=!0,l=null,c=null;n.$on("hook:destroyed",(function(){return x(a,n)}));var h=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==l&&(clearTimeout(l),l=null),null!==c&&(clearTimeout(c),c=null))},d=z((function(n){e.resolved=qn(n,t),s?a.length=0:h(!0)})),f=z((function(t){he("Failed to resolve async component: "+String(e)+(t?"\nReason: "+t:"")),i(e.errorComp)&&(e.error=!0,h(!0))})),g=e(d,f);return u(g)&&(p(g)?r(e.resolved)&&g.then(d,f):p(g.component)&&(g.component.then(d,f),i(g.error)&&(e.errorComp=qn(g.error,t)),i(g.loading)&&(e.loadingComp=qn(g.loading,t),0===g.delay?e.loading=!0:l=setTimeout((function(){l=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,h(!1))}),g.delay||200)),i(g.timeout)&&(c=setTimeout((function(){c=null,r(e.resolved)&&f("timeout ("+g.timeout+"ms)")}),g.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function Wn(e){return e.isComment&&e.asyncFactory}function Gn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||Wn(n)))return n}}function Kn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Zn(e,t)}function Xn(e,t){zn.$on(e,t)}function Yn(e,t){zn.$off(e,t)}function Jn(e,t){var n=zn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Zn(e,t,n){zn=e,$t(t,n||{},Xn,Yn,Jn,e),zn=void 0}function Qn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(o=a[s],o===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=e.toLowerCase();n!==e&&t._events[n]&&de('Event "'+n+'" is emitted in component '+pe(t)+' but the handler is registered for "'+e+'". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "'+T(e)+'" instead of "'+e+'".');var r=t._events[e];if(r){r=r.length>1?P(r):r;for(var i=P(arguments,1),o='event handler for "'+e+'"',a=0,s=r.length;a<s;a++)yt(r[a],t,i,t,o)}return t}}var er=null,tr=!1;function nr(e){var t=er;return er=e,function(){er=t}}function rr(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function ir(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=nr(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){lr(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||x(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),lr(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function or(e,t,r,i,o){tr=!0;var a=i.data.scopedSlots,s=e.$scopedSlots,u=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),l=!!(o||e.$options._renderChildren||u);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Le(!1);for(var c=e._props,h=e.$options._propKeys||[],d=0;d<h.length;d++){var f=h[d],p=e.$options.props;c[f]=rt(f,p,t,e)}Le(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),r=r||n;var g=e.$options._parentListeners;e.$options._parentListeners=r,Zn(e,r,g),l&&(e.$slots=tn(o,i.context),e.$forceUpdate()),tr=!1}function ar(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function sr(e,t){if(t){if(e._directInactive=!1,ar(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)sr(e.$children[n]);lr(e,"activated")}}function ur(e,t){if((!t||(e._directInactive=!0,!ar(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)ur(e.$children[n]);lr(e,"deactivated")}}function lr(e,t){be();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)yt(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),we()}var cr=100,hr=[],dr=[],fr={},pr={},gr=!1,yr=!1,vr=0;function mr(){vr=hr.length=dr.length=0,fr={},pr={},gr=yr=!1}var _r=Date.now;if(J&&!te){var xr=window.performance;xr&&"function"===typeof xr.now&&_r()>document.createEvent("Event").timeStamp&&(_r=function(){return xr.now()})}function br(){var e,t;for(_r(),yr=!0,hr.sort((function(e,t){return e.id-t.id})),vr=0;vr<hr.length;vr++)if(e=hr[vr],e.before&&e.before(),t=e.id,fr[t]=null,e.run(),null!=fr[t]&&(pr[t]=(pr[t]||0)+1,pr[t]>cr)){he("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var n=dr.slice(),r=hr.slice();mr(),kr(n),wr(r),se&&q.devtools&&se.emit("flush")}function wr(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&lr(r,"updated")}}function Sr(e){e._inactive=!1,dr.push(e)}function kr(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,sr(e[t],!0)}function Ar(e){var t=e.id;if(null==fr[t]){if(fr[t]=!0,yr){var n=hr.length-1;while(n>vr&&hr[n].id>e.id)n--;hr.splice(n+1,0,e)}else hr.push(e);if(!gr){if(gr=!0,!q.async)return void br();Tt(br)}}}var Ir=0,Cr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Ir,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new le,this.newDepIds=new le,this.expression=t.toString(),"function"===typeof t?this.getter=t:(this.getter=K(t),this.getter||(this.getter=R,he('Failed watching path: "'+t+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};Cr.prototype.get=function(){var e;be(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(ji){if(!this.user)throw ji;gt(ji,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&jt(e),we(),this.cleanupDeps()}return e},Cr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Cr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Cr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Ar(this)},Cr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(ji){gt(ji,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Cr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Cr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},Cr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||x(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var Tr={enumerable:!0,configurable:!0,get:R,set:R};function Mr(e,t,n){Tr.get=function(){return this[t][n]},Tr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Tr)}function Dr(e){e._watchers=[];var t=e.$options;t.props&&Or(e,t.props),t.methods&&jr(e,t.methods),t.data?Pr(e):Be(e._data={},!0),t.computed&&Rr(e,t.computed),t.watch&&t.watch!==ie&&zr(e,t.watch)}function Or(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Le(!1);var a=function(a){i.push(a);var s=rt(a,t,n,e),u=T(a);(_(u)||q.isReservedAttr(u))&&he('"'+u+'" is a reserved attribute and cannot be used as component prop.',e),Fe(r,a,s,(function(){if(!o&&!tr){if("mp-baidu"===e.mpHost||"mp-kuaishou"===e.mpHost||"mp-xhs"===e.mpHost)return;if("value"===a&&Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field"))return;if(e._getFormData)return;var t=e.$parent;while(t){if(t.__next_tick_pending)return;t=t.$parent}he("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+a+'"',e)}})),a in e||Mr(e,"_props",a)};for(var s in t)a(s);Le(!0)}function Pr(e){var t=e.$options.data;t=e._data="function"===typeof t?Lr(t,e):t||{},h(t)||(t={},he("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));var n=Object.keys(t),r=e.$options.props,i=e.$options.methods,o=n.length;while(o--){var a=n[o];i&&w(i,a)&&he('Method "'+a+'" has already been defined as a data property.',e),r&&w(r,a)?he('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',e):H(a)||Mr(e,"_data",a)}Be(t,!0)}function Lr(e,t){be();try{return e.call(t,t)}catch(ji){return gt(ji,t,"data()"),{}}finally{we()}}var Er={lazy:!0};function Rr(e,t){var n=e._computedWatchers=Object.create(null),r=ae();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;null==a&&he('Getter is missing for computed property "'+i+'".',e),r||(n[i]=new Cr(e,a||R,R,Er)),i in e?i in e.$data?he('The computed property "'+i+'" is already defined in data.',e):e.$options.props&&i in e.$options.props&&he('The computed property "'+i+'" is already defined as a prop.',e):Nr(e,i,o)}}function Nr(e,t,n){var r=!ae();"function"===typeof n?(Tr.get=r?Br(t):Fr(n),Tr.set=R):(Tr.get=n.get?r&&!1!==n.cache?Br(t):Fr(n.get):R,Tr.set=n.set||R),Tr.set===R&&(Tr.set=function(){he('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,Tr)}function Br(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),xe.SharedObject.target&&t.depend(),t.value}}function Fr(e){return function(){return e.call(this,this)}}function jr(e,t){var n=e.$options.props;for(var r in t)"function"!==typeof t[r]&&he('Method "'+r+'" has type "'+typeof t[r]+'" in the component definition. Did you reference the function correctly?',e),n&&w(n,r)&&he('Method "'+r+'" has already been defined as a prop.',e),r in e&&H(r)&&he('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),e[r]="function"!==typeof t[r]?R:O(t[r],e)}function zr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Ur(e,n,r[i]);else Ur(e,n,r)}}function Ur(e,t,n,r){return h(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function Vr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};t.set=function(){he("Avoid replacing instance root $data. Use nested data properties instead.",this)},n.set=function(){he("$props is readonly.",this)},Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=je,e.prototype.$delete=ze,e.prototype.$watch=function(e,t,n){var r=this;if(h(t))return Ur(r,e,t,n);n=n||{},n.user=!0;var i=new Cr(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(o){gt(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var qr=0;function $r(e){e.prototype._init=function(e){var t,n,r=this;r._uid=qr++,q.performance&&Nt&&(t="vue-perf-start:"+r._uid,n="vue-perf-end:"+r._uid,Nt(t)),r._isVue=!0,e&&e._isComponent?Hr(r,e):r.$options=tt(Wr(r.constructor),e||{},r),xt(r),r._self=r,rr(r),Kn(r),jn(r),lr(r,"beforeCreate"),!r._$fallback&&Qt(r),Dr(r),!r._$fallback&&Zt(r),!r._$fallback&&lr(r,"created"),q.performance&&Nt&&(r._name=pe(r,!1),Nt(n),Bt("vue "+r._name+" init",t,n)),r.$options.el&&r.$mount(r.$options.el)}}function Hr(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Wr(e){var t=e.options;if(e.super){var n=Wr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=Gr(e);i&&L(e.extendOptions,i),t=e.options=tt(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Gr(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function Kr(e){this instanceof Kr||he("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}function Xr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=P(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Yr(e){e.mixin=function(e){return this.options=tt(this.options,e),this}}function Jr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;o&&Ye(o);var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=tt(n.options,e),a["super"]=n,a.options.props&&Zr(a),a.options.computed&&Qr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,U.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=L({},a.options),i[r]=a,a}}function Zr(e){var t=e.options.props;for(var n in t)Mr(e.prototype,"_props",n)}function Qr(e){var t=e.options.computed;for(var n in t)Nr(e.prototype,n,t[n])}function ei(e){U.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&Ye(e),"component"===t&&h(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function ti(e){return e&&(e.Ctor.options.name||e.tag)}function ni(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function ri(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=ti(a.componentOptions);s&&!t(s)&&ii(n,o,r,i)}}}function ii(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,x(n,t)}$r(Kr),Vr(Kr),Qn(Kr),ir(Kr),Vn(Kr);var oi=[String,RegExp,Array],ai={name:"keep-alive",abstract:!0,props:{include:oi,exclude:oi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)ii(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){ri(e,(function(e){return ni(t,e)}))})),this.$watch("exclude",(function(t){ri(e,(function(e){return!ni(t,e)}))}))},render:function(){var e=this.$slots.default,t=Gn(e),n=t&&t.componentOptions;if(n){var r=ti(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!ni(o,r))||a&&r&&ni(a,r))return t;var s=this,u=s.cache,l=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;u[c]?(t.componentInstance=u[c].componentInstance,x(l,c),l.push(c)):(u[c]=t,l.push(c),this.max&&l.length>parseInt(this.max)&&ii(u,l[0],l,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},si={KeepAlive:ai};function ui(e){var t={get:function(){return q},set:function(){he("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:he,extend:L,mergeOptions:tt,defineReactive:Fe},e.set=je,e.delete=ze,e.nextTick=Tt,e.observable=function(e){return Be(e),e},e.options=Object.create(null),U.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,L(e.options.components,si),Xr(e),Yr(e),Jr(e),ei(e)}ui(Kr),Object.defineProperty(Kr.prototype,"$isServer",{get:ae}),Object.defineProperty(Kr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Kr,"FunctionalRenderContext",{value:wn}),Kr.version="2.6.11";var li="[object Array]",ci="[object Object]",hi="[object Null]",di="[object Undefined]";function fi(e,t){var n={};return pi(e,t),yi(e,t,"",n),n}function pi(e,t){if(e!==t){var n=mi(e),r=mi(t);if(n==ci&&r==ci){if(Object.keys(e).length>=Object.keys(t).length)for(var i in t){var o=e[i];void 0===o?e[i]=null:pi(o,t[i])}}else n==li&&r==li&&e.length>=t.length&&t.forEach((function(t,n){pi(e[n],t)}))}}function gi(e,t){return e!==hi&&e!==di||t!==hi&&t!==di}function yi(e,t,n,r){if(e!==t){var i=mi(e),o=mi(t);if(i==ci)if(o!=ci||Object.keys(e).length<Object.keys(t).length)vi(r,n,e);else{var a=function(i){var o=e[i],a=t[i],s=mi(o),u=mi(a);if(s!=li&&s!=ci)o!==t[i]&&gi(s,u)&&vi(r,(""==n?"":n+".")+i,o);else if(s==li)u!=li||o.length<a.length?vi(r,(""==n?"":n+".")+i,o):o.forEach((function(e,t){yi(e,a[t],(""==n?"":n+".")+i+"["+t+"]",r)}));else if(s==ci)if(u!=ci||Object.keys(o).length<Object.keys(a).length)vi(r,(""==n?"":n+".")+i,o);else for(var l in o)yi(o[l],a[l],(""==n?"":n+".")+i+"."+l,r)};for(var s in e)a(s)}else i==li?o!=li||e.length<t.length?vi(r,n,e):e.forEach((function(e,i){yi(e,t[i],n+"["+i+"]",r)})):vi(r,n,e)}}function vi(e,t,n){e[t]=n}function mi(e){return Object.prototype.toString.call(e)}function _i(e){if(e.__next_tick_callbacks&&e.__next_tick_callbacks.length){if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"zhcxWXMIniProgram",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG){var t=e.$scope;console.log("["+ +new Date+"]["+(t.is||t.route)+"]["+e._uid+"]:flushCallbacks["+e.__next_tick_callbacks.length+"]")}var n=e.__next_tick_callbacks.slice(0);e.__next_tick_callbacks.length=0;for(var r=0;r<n.length;r++)n[r]()}}function xi(e){return hr.find((function(t){return e._watcher===t}))}function bi(e,t){if(!e.__next_tick_pending&&!xi(e)){if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"zhcxWXMIniProgram",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG){var n=e.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+e._uid+"]:nextVueTick")}return Tt(t,e)}if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"zhcxWXMIniProgram",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG){var r=e.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+e._uid+"]:nextMPTick")}var i;if(e.__next_tick_callbacks||(e.__next_tick_callbacks=[]),e.__next_tick_callbacks.push((function(){if(t)try{t.call(e)}catch(ji){gt(ji,e,"nextTick")}else i&&i(e)})),!t&&"undefined"!==typeof Promise)return new Promise((function(e){i=e}))}function wi(e,t){return t&&(t._isVue||t.__v_isMPComponent)?{}:t}function Si(e){var t=Object.create(null),n=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));n.reduce((function(t,n){return t[n]=e[n],t}),t);var r=e.__composition_api_state__||e.__secret_vfa_state__,i=r&&r.rawBindings;return i&&Object.keys(i).forEach((function(n){t[n]=e[n]})),Object.assign(t,e.$mp.data||{}),Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field")&&(t["name"]=e.name,t["value"]=e.value),JSON.parse(JSON.stringify(t,wi))}var ki=function(e,t){var n=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,i=Object.create(null);try{i=Si(this)}catch(s){console.error(s)}i.__webviewId__=r.data.__webviewId__;var o=Object.create(null);Object.keys(i).forEach((function(e){o[e]=r.data[e]}));var a=!1===this.$shouldDiffData?i:fi(i,o);Object.keys(a).length?(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"zhcxWXMIniProgram",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+this._uid+"]差量更新",JSON.stringify(a)),this.__next_tick_pending=!0,r.setData(a,(function(){n.__next_tick_pending=!1,_i(n)}))):_i(this)}};function Ai(){}function Ii(e,t,n){if(!e.mpType)return e;"app"===e.mpType&&(e.$options.render=Ai),e.$options.render||(e.$options.render=Ai,e.$options.template&&"#"!==e.$options.template.charAt(0)||e.$options.el||t?he("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",e):he("Failed to mount component: template or render function not defined.",e)),!e._$fallback&&lr(e,"beforeMount");var r=function(){e._update(e._render(),n)};return new Cr(e,r,R,{before:function(){e._isMounted&&!e._isDestroyed&&lr(e,"beforeUpdate")}},!0),n=!1,e}function Ci(e,t){return i(e)||i(t)?Ti(e,Mi(t)):""}function Ti(e,t){return e?t?e+" "+t:e:t||""}function Mi(e){return Array.isArray(e)?Di(e):u(e)?Oi(e):"string"===typeof e?e:""}function Di(e){for(var t,n="",r=0,o=e.length;r<o;r++)i(t=Mi(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Oi(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Pi=S((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Li(e){return Array.isArray(e)?E(e):"string"===typeof e?Pi(e):e}var Ei=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Ri(e,t){var n=t.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?e[r]:Ri(e[r],n.slice(1).join("."))}function Ni(e){e.config.errorHandler=function(t,n,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',n),console.error(t);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,e,{__args__:P(arguments,1)})}catch(r){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return bi(this,e)},Ei.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=Zt,e.prototype.__init_injections=Qt,e.prototype.__call_hook=function(e,t){var n=this;be();var r,i=n.$options[e],o=e+" hook";if(i)for(var a=0,s=i.length;a<s;a++)r=yt(i[a],n,t?[t]:null,n,o);return n._hasHookEvent&&n.$emit("hook:"+e,t),we(),r},e.prototype.__set_model=function(t,n,r,i){Array.isArray(i)&&(-1!==i.indexOf("trim")&&(r=r.trim()),-1!==i.indexOf("number")&&(r=this._n(r))),t||(t=this),e.set(t,n,r)},e.prototype.__set_sync=function(t,n,r){t||(t=this),e.set(t,n,r)},e.prototype.__get_orig=function(e){return h(e)&&e["$orig"]||e},e.prototype.__get_value=function(e,t){return Ri(t||this,e)},e.prototype.__get_class=function(e,t){return Ci(t,e)},e.prototype.__get_style=function(e,t){if(!e&&!t)return"";var n=Li(e),r=t?L(t,n):n;return Object.keys(r).map((function(e){return T(e)+":"+r[e]})).join(";")},e.prototype.__map=function(e,t){var n,r,i,o,a;if(Array.isArray(e)){for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);return n}if(u(e)){for(o=Object.keys(e),n=Object.create(null),r=0,i=o.length;r<i;r++)a=o[r],n[a]=t(e[a],a,r);return n}if("number"===typeof e){for(n=new Array(e),r=0,i=e;r<i;r++)n[r]=t(r,r);return n}return[]}}var Bi=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];function Fi(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==Bi.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;Bi.forEach((function(e){n[e]=r})),e.prototype.__lifecycle_hooks__=Bi}Kr.prototype.__patch__=ki,Kr.prototype.$mount=function(e,t){return Ii(this,e,t)},Fi(Kr),Ni(Kr),t["default"]=Kr}.call(this,n(3))},26:function(e,t){},280:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(50)),o=r(n(174)),a=r(n(175)),s=r(n(176)),u=r(n(52)),l=r(n(23)),c=r(n(24)),h=r(n(13));function d(e){var t=f();return function(){var n,r=(0,s.default)(e);if(t){var i=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var p={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")},g={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=["label"];n.forEach((function(t){void 0===e[t]&&(e[t]="")}));var r=t;for(var i in e){var o=new RegExp("{"+i+"}");r=r.replace(o,e[i])}return r}function v(e,t){return void 0===e||null===e||("string"===typeof e&&!e||(!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length))}var m={integer:function(e){return m.number(e)&&parseInt(e,10)===e},string:function(e){return"string"===typeof e},number:function(e){return!isNaN(e)&&"number"===typeof e},boolean:function(e){return"boolean"===typeof e},float:function(e){return m.number(e)&&!m.integer(e)},array:function(e){return Array.isArray(e)},object:function(e){return"object"===(0,h.default)(e)&&!m.array(e)},date:function(e){return e instanceof Date},timestamp:function(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:function(e){return"string"===typeof e.url},email:function(e){return"string"===typeof e&&!!e.match(p.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(p.url)},pattern:function(e,t){try{return new RegExp(e).test(t)}catch(n){return!1}},method:function(e){return"function"===typeof e},idcard:function(e){return"string"===typeof e&&!!e.match(p.idcard)},"url-https":function(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":function(e){return e.startsWith("://")},"url-web":function(e){return!1}},_=function(){function e(t){(0,l.default)(this,e),this._message=t}return(0,c.default)(e,[{key:"validateRule",value:function(){var e=(0,u.default)(i.default.mark((function e(t,n,r,o,a){var s,u,l,c,h,d,f,p,g;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=null,u=n.rules,l=u.findIndex((function(e){return e.required})),!(l<0)){e.next=8;break}if(null!==r&&void 0!==r){e.next=6;break}return e.abrupt("return",s);case 6:if("string"!==typeof r||r.length){e.next=8;break}return e.abrupt("return",s);case 8:if(c=this._message,void 0!==u){e.next=11;break}return e.abrupt("return",c["default"]);case 11:h=0;case 12:if(!(h<u.length)){e.next=35;break}if(d=u[h],f=this._getValidateType(d),Object.assign(d,{label:n.label||'["'.concat(t,'"]')}),!x[f]){e.next=20;break}if(s=x[f](d,r,c),null==s){e.next=20;break}return e.abrupt("break",35);case 20:if(!d.validateExpr){e.next=26;break}if(p=Date.now(),g=d.validateExpr(r,a,p),!1!==g){e.next=26;break}return s=this._getMessage(d,d.errorMessage||this._message["default"]),e.abrupt("break",35);case 26:if(!d.validateFunction){e.next=32;break}return e.next=29,this.validateFunction(d,r,o,a,f);case 29:if(s=e.sent,null===s){e.next=32;break}return e.abrupt("break",35);case 32:h++,e.next=12;break;case 35:return null!==s&&(s=c.TAG+s),e.abrupt("return",s);case 37:case"end":return e.stop()}}),e,this)})));function t(t,n,r,i,o){return e.apply(this,arguments)}return t}()},{key:"validateFunction",value:function(){var e=(0,u.default)(i.default.mark((function e(t,n,r,o,a){var s,u,l;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=null,e.prev=1,u=null,e.next=5,t.validateFunction(t,n,o||r,(function(e){u=e}));case 5:l=e.sent,(u||"string"===typeof l&&l||!1===l)&&(s=this._getMessage(t,u||l,a)),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),s=this._getMessage(t,e.t0.message,a);case 12:return e.abrupt("return",s);case 13:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t,n,r,i,o){return e.apply(this,arguments)}return t}()},{key:"_getMessage",value:function(e,t,n){return y(e,t||e.errorMessage||this._message[n]||t["default"])}},{key:"_getValidateType",value:function(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}]),e}(),x={required:function(e,t,n){return e.required&&v(t,e.format||(0,h.default)(t))?y(e,e.errorMessage||n.required):null},range:function(e,t,n){for(var r=e.range,i=e.errorMessage,o=new Array(r.length),a=0;a<r.length;a++){var s=r[a];m.object(s)&&void 0!==s.value?o[a]=s.value:o[a]=s}var u=!1;return Array.isArray(t)?u=new Set(t.concat(o)).size===o.length:o.indexOf(t)>-1&&(u=!0),u?null:y(e,i||n["enum"])},rangeNumber:function(e,t,n){if(!m.number(t))return y(e,e.errorMessage||n.pattern.mismatch);var r=e.minimum,i=e.maximum,o=e.exclusiveMinimum,a=e.exclusiveMaximum,s=o?t<=r:t<r,u=a?t>=i:t>i;return void 0!==r&&s?y(e,e.errorMessage||n["number"][o?"exclusiveMinimum":"minimum"]):void 0!==i&&u?y(e,e.errorMessage||n["number"][a?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==i&&(s||u)?y(e,e.errorMessage||n["number"].range):null},rangeLength:function(e,t,n){if(!m.string(t)&&!m.array(t))return y(e,e.errorMessage||n.pattern.mismatch);var r=e.minLength,i=e.maxLength,o=t.length;return void 0!==r&&o<r?y(e,e.errorMessage||n["length"].minLength):void 0!==i&&o>i?y(e,e.errorMessage||n["length"].maxLength):void 0!==r&&void 0!==i&&(o<r||o>i)?y(e,e.errorMessage||n["length"].range):null},pattern:function(e,t,n){return m["pattern"](e.pattern,t)?null:y(e,e.errorMessage||n.pattern.mismatch)},format:function(e,t,n){var r=Object.keys(m),i=g[e.format]?g[e.format]:e.format||e.arrayType;return r.indexOf(i)>-1&&!m[i](t)?y(e,e.errorMessage||n.typeError):null},arrayTypeFormat:function(e,t,n){if(!Array.isArray(t))return y(e,e.errorMessage||n.typeError);for(var r=0;r<t.length;r++){var i=t[r],o=this.format(e,i,n);if(null!==o)return o}return null}},b=function(e){(0,o.default)(n,e);var t=d(n);function n(e,r){var i;return(0,l.default)(this,n),i=t.call(this,n.message),i._schema=e,i._options=r||null,i}return(0,c.default)(n,[{key:"updateSchema",value:function(e){this._schema=e}},{key:"validate",value:function(){var e=(0,u.default)(i.default.mark((function e(t,n){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidate(t,!1,n);case 4:r=e.sent;case 5:return e.abrupt("return",r.length?r[0]:null);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"validateAll",value:function(){var e=(0,u.default)(i.default.mark((function e(t,n){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidate(t,!0,n);case 4:r=e.sent;case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"validateUpdate",value:function(){var e=(0,u.default)(i.default.mark((function e(t,n){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidateUpdate(t,!1,n);case 4:r=e.sent;case 5:return e.abrupt("return",r.length?r[0]:null);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"invokeValidate",value:function(){var e=(0,u.default)(i.default.mark((function e(t,n,r){var o,a,s,u,l;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=[],a=this._schema,e.t0=i.default.keys(a);case 3:if((e.t1=e.t0()).done){e.next=15;break}return s=e.t1.value,u=a[s],e.next=8,this.validateRule(s,u,t[s],t,r);case 8:if(l=e.sent,null==l){e.next=13;break}if(o.push({key:s,errorMessage:l}),n){e.next=13;break}return e.abrupt("break",15);case 13:e.next=3;break;case 15:return e.abrupt("return",o);case 16:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"invokeValidateUpdate",value:function(){var e=(0,u.default)(i.default.mark((function e(t,n,r){var o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=[],e.t0=i.default.keys(t);case 2:if((e.t1=e.t0()).done){e.next=13;break}return a=e.t1.value,e.next=6,this.validateRule(a,this._schema[a],t[a],t,r);case 6:if(s=e.sent,null==s){e.next=11;break}if(o.push({key:a,errorMessage:s}),n){e.next=11;break}return e.abrupt("break",13);case 11:e.next=2;break;case 13:return e.abrupt("return",o);case 14:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_checkFieldInSchema",value:function(e){var t=Object.keys(e),r=Object.keys(this._schema);if(new Set(t.concat(r)).size===r.length)return"";var i=t.filter((function(e){return r.indexOf(e)<0})),o=y({field:JSON.stringify(i)},n.message.TAG+n.message["defaultInvalid"]);return[{key:"invalid",errorMessage:o}]}}]),n}(_);function w(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}}b.message=new w;var S=b;t.default=S},281:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.typeFilter=t.type=t.setDataValue=t.realName=t.rawData=t.objSet=t.objGet=t.name2arr=t.isRequiredField=t.isRealName=t.isNumber=t.isEqual=t.isBoolean=t.getValue=t.getDataValueType=t.getDataValue=t.deepCopy=void 0;var i=r(n(13)),o=function(e){return JSON.parse(JSON.stringify(e))};t.deepCopy=o;var a=function(e){return"int"===e||"double"===e||"number"===e||"timestamp"===e};t.typeFilter=a;var s=function(e,t,n){var r=n.find((function(e){return e.format&&a(e.format)})),i=n.find((function(e){return e.format&&"boolean"===e.format||"bool"===e.format}));return r&&(t=t||0===t?m(Number(t))?Number(t):t:null),i&&(t=!!_(t)&&t),t};t.getValue=s;var u=function(e,t,n){return t[e]=n,n||""};t.setDataValue=u;var l=function(e,t){return v(t,e)};t.getDataValue=l;var c=function(e,t){var n=l(e,t);return{type:b(n),value:n}};t.getDataValueType=c;var h=function(e){var t=y(e);if("object"===(0,i.default)(t)&&Array.isArray(t)&&t.length>1){var n=t.reduce((function(e,t){return e+"#".concat(t)}),"_formdata_");return n}return t[0]||e};t.realName=h;var d=function(e){var t=/^_formdata_#*/;return t.test(e)};t.isRealName=d;var f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e)),n={};for(var r in t){var i=p(r);g(n,i,t[r])}return n};t.rawData=f;var p=function(e){var t=e.replace("_formdata_#","");return t=t.split("#").map((function(e){return m(e)?Number(e):e})),t};t.name2arr=p;var g=function(e,t,n){return"object"!==(0,i.default)(e)||y(t).reduce((function(e,t,r,i){return r===i.length-1?(e[t]=n,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(i[r+1])?[]:{}),e[t])}),e),e};function y(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}t.objSet=g;var v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined",r=y(t),i=r.reduce((function(e,t){return(e||{})[t]}),e);return i&&void 0===i?n:i};t.objGet=v;var m=function(e){return!isNaN(Number(e))};t.isNumber=m;var _=function(e){return"boolean"===typeof e};t.isBoolean=_;var x=function(e){for(var t=!1,n=0;n<e.length;n++){var r=e[n];if(r.required){t=!0;break}}return t};t.isRequiredField=x;var b=function(e){var t={};return"Boolean Number String Function Array Date RegExp Object Error".split(" ").map((function(e,n){t["[object "+e+"]"]=e.toLowerCase()})),null==e?e+"":"object"===(0,i.default)(e)||"function"===typeof e?t[Object.prototype.toString.call(e)]||"object":(0,i.default)(e)};t.type=b;var w=function(e,t){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;var n=toString.call(e),r=toString.call(t);if(n!==r)return!1;switch(n){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}if("[object Object]"==n){var i=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(i.length!=o.length)return!1;for(var a=0;a<i.length;a++){var s=i[a];if(e[s]!==t[s])return!1}return!0}return"[object Array]"==n?e.toString()==t.toString():void 0};t.isEqual=w},296:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(297)),o=r(n(298)),a=r(n(299)),s={en:i.default,"zh-Hans":o.default,"zh-Hant":a.default};t.default=s},297:function(e){e.exports=JSON.parse('{"uni-search-bar.cancel":"cancel","uni-search-bar.placeholder":"Search enter content"}')},298:function(e){e.exports=JSON.parse('{"uni-search-bar.cancel":"取消","uni-search-bar.placeholder":"请输入搜索内容"}')},299:function(e){e.exports=JSON.parse('{"uni-search-bar.cancel":"取消","uni-search-bar.placeholder":"請輸入搜索內容"}')},3:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},312:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={},i=null;r={data:function(){return{is_show:"none"}},watch:{show:function(e){this.is_show=this.show}},created:function(){this.swipeaction=this.getSwipeAction(),this.swipeaction&&Array.isArray(this.swipeaction.children)&&this.swipeaction.children.push(this)},mounted:function(){this.is_show=this.show},methods:{closeSwipe:function(e){this.autoClose&&this.swipeaction&&this.swipeaction.closeOther(this)},change:function(e){this.$emit("change",e.open),this.is_show!==e.open&&(this.is_show=e.open)},appTouchStart:function(e){if(!i){var t=e.changedTouches[0].clientX;this.clientX=t,this.timestamp=(new Date).getTime()}},appTouchEnd:function(e,t,n,r){if(!i){var o=e.changedTouches[0].clientX,a=Math.abs(this.clientX-o),s=(new Date).getTime()-this.timestamp;a<40&&s<300&&this.$emit("click",{content:n,index:t,position:r})}},onClickForPC:function(e,t,n){}}};var o=r;t.default=o},313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={},i=r;t.default=i},314:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={},i=r;t.default=i},32:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s,u,l){var c,h="function"===typeof e?e.options:e;if(u){h.components||(h.components={});var d=Object.prototype.hasOwnProperty;for(var f in u)d.call(u,f)&&!d.call(h.components,f)&&(h.components[f]=u[f])}if(l&&("function"===typeof l.beforeCreate&&(l.beforeCreate=[l.beforeCreate]),(l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(h.mixins||(h.mixins=[])).push(l)),t&&(h.render=t,h.staticRenderFns=n,h._compiled=!0),r&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},h._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(h.functional){h._injectStyles=c;var p=h.render;h.render=function(e,t){return c.call(t),p(e,t)}}else{var g=h.beforeCreate;h.beforeCreate=g?[].concat(g,c):[c]}return{exports:e,options:h}}n.r(t),n.d(t,"default",(function(){return r}))},33:function(e,t,n){(function(e){var t=n(13);e.addInterceptor({returnValue:function(e){return!e||"object"!==t(e)&&"function"!==typeof e||"function"!==typeof e.then?e:new Promise((function(t,n){e.then((function(e){return e?e[0]?n(e[0]):t(e[1]):t(e)}))}))}})}).call(this,n(2)["default"])},4:function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},441:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(23)),o=r(n(24)),a=function(){function e(t,n,r,o){(0,i.default)(this,e),this.ctx=t,this.canvasId=n,this.chart=null,this.isNew=r,r?this.canvasNode=o:this._initStyle(t),this._initEvent()}return(0,o.default)(e,[{key:"addEventListener",value:function(){}},{key:"getContext",value:function(e){if("2d"===e)return this.ctx}},{key:"setChart",value:function(e){this.chart=e}},{key:"attachEvent",value:function(){}},{key:"detachEvent",value:function(){}},{key:"_initCanvas",value:function(e,t){e.util.getContext=function(){return t},e.util.$override("measureText",(function(e,n){return t.font=n||"12px sans-serif",t.measureText(e)}))}},{key:"_initStyle",value:function(e){var t=arguments,n=["fillStyle","strokeStyle","globalAlpha","textAlign","textBaseAlign","shadow","lineWidth","lineCap","lineJoin","lineDash","miterLimit","fontSize"];n.forEach((function(t){Object.defineProperty(e,t,{set:function(n){("fillStyle"!==t&&"strokeStyle"!==t||"none"!==n&&null!==n)&&e["set"+t.charAt(0).toUpperCase()+t.slice(1)](n)}})})),e.createRadialGradient=function(){return e.createCircularGradient(t)}}},{key:"_initEvent",value:function(){var e=this;this.event={};var t=[{wxName:"touchStart",ecName:"mousedown"},{wxName:"touchMove",ecName:"mousemove"},{wxName:"touchEnd",ecName:"mouseup"},{wxName:"touchEnd",ecName:"click"}];t.forEach((function(t){e.event[t.wxName]=function(n){var r=n.touches[0];e.chart.getZr().handler.dispatch(t.ecName,{zrX:"tap"===t.wxName?r.clientX:r.x,zrY:"tap"===t.wxName?r.clientY:r.y})}}))}},{key:"width",get:function(){return this.canvasNode?this.canvasNode.width:0},set:function(e){this.canvasNode&&(this.canvasNode.width=e)}},{key:"height",get:function(){return this.canvasNode?this.canvasNode.height:0},set:function(e){this.canvasNode&&(this.canvasNode.height=e)}}]),e}();t.default=a},45:function(e,t,n){(function(r){var i,o,a,s=n(13);!function(n,r){"object"==s(t)&&"undefined"!=typeof e?r(t):(o=[t],i=r,a="function"===typeof i?i.apply(t,o):i,void 0===a||(e.exports=a))}(0,(function(e){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,n)};function n(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},o=new function(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==("undefined"===typeof r?"undefined":s(r))&&"function"==typeof r.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?o.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(o.node=!0,o.svgSupported=!0):(w=navigator.userAgent,Ue=(ke=o).browser,O=w.match(/Firefox\/([\d.]+)/),y=w.match(/MSIE\s([\d.]+)/)||w.match(/Trident\/.+?rv:(([\d.]+))/),b=w.match(/Edge?\/([\d.]+)/),w=/micromessenger/i.test(w),O&&(Ue.firefox=!0,Ue.version=O[1]),y&&(Ue.ie=!0,Ue.version=y[1]),b&&(Ue.edge=!0,Ue.version=b[1],Ue.newEdge=18<+b[1].split(".")[0]),w&&(Ue.weChat=!0),ke.svgSupported="undefined"!=typeof SVGRect,ke.touchEventsSupported="ontouchstart"in window&&!Ue.ie&&!Ue.edge,ke.pointerEventsSupported="onpointerdown"in window&&(Ue.edge||Ue.ie&&11<=+Ue.version),ke.domSupported="undefined"!=typeof document,O=document.documentElement.style,ke.transform3dSupported=(Ue.ie&&"transition"in O||Ue.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in O)&&!("OTransition"in O),ke.transformSupported=ke.transform3dSupported||Ue.ie&&9<=+Ue.version);var a,u,l="12px sans-serif",c=function(e){var t={};if("undefined"!=typeof JSON)for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),h={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(a||(n=h.createCanvas(),a=n&&n.getContext("2d")),a)return u!==t&&(u=a.font=t||l),a.measureText(e);e=e||"",t=t||l;var n=/((?:\d+)?\.?\d*)px/.exec(t),r=n&&+n[1]||12,i=0;if(0<=t.indexOf("mono"))i=r*e.length;else for(var o=0;o<e.length;o++){var s=c[e[o]];i+=null==s?r:s*r}return{width:i}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function d(e){for(var t in h)e[t]&&(h[t]=e[t])}var f=F(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),p=F(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),g=Object.prototype.toString,y=Array.prototype,v=y.forEach,m=y.filter,_=y.slice,x=y.map,b=function(){}.constructor,w=b?b.prototype:null,S="__proto__",k=2311;function A(){return k++}function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function C(e){if(null==e||"object"!=s(e))return e;var t=e,n=g.call(e);if("[object Array]"===n){if(!he(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=C(e[r])}}else if(p[n]){if(!he(e)){var o=e.constructor;if(o.from)t=o.from(e);else for(t=new o(e.length),r=0,i=e.length;r<i;r++)t[r]=e[r]}}else if(!f[n]&&!he(e)&&!J(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==S&&(t[a]=C(e[a]));return t}function T(e,t,n){if(!K(t)||!K(e))return n?C(t):e;for(var r in t){var i,o;t.hasOwnProperty(r)&&r!==S&&(i=e[r],!K(o=t[r])||!K(i)||q(o)||q(i)||J(o)||J(i)||X(o)||X(i)||he(o)||he(i)?!n&&r in e||(e[r]=C(t[r])):T(i,o,n))}return e}function M(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==S&&(e[n]=t[n]);return e}function D(e,t,n){for(var r=z(t),i=0;i<r.length;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}var O=h.createCanvas;function P(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function L(e,t){var n,r=e.prototype;function i(){}for(n in i.prototype=t.prototype,e.prototype=new i,r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);(e.prototype.constructor=e).superClass=t}function E(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else D(e,t,n)}function R(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function N(e,t,n){if(e&&t)if(e.forEach&&e.forEach===v)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function B(e,t,n){if(!e)return[];if(!t)return oe(e);if(e.map&&e.map===x)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function F(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function j(e,t,n){if(!e)return[];if(!t)return oe(e);if(e.filter&&e.filter===m)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function z(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t,n=[];for(t in e)e.hasOwnProperty(t)&&n.push(t);return n}var U=w&&$(w.bind)?w.call.bind(w.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(_.call(arguments)))}};function V(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(_.call(arguments)))}}function q(e){return Array.isArray?Array.isArray(e):"[object Array]"===g.call(e)}function $(e){return"function"==typeof e}function H(e){return"string"==typeof e}function W(e){return"[object String]"===g.call(e)}function G(e){return"number"==typeof e}function K(e){var t=s(e);return"function"==t||!!e&&"object"==t}function X(e){return!!f[g.call(e)]}function Y(e){return!!p[g.call(e)]}function J(e){return"object"==s(e)&&"number"==typeof e.nodeType&&"object"==s(e.ownerDocument)}function Z(e){return null!=e.colorStops}function Q(e){return null!=e.image}function ee(e){return"[object RegExp]"===g.call(e)}function te(e){return e!=e}function ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function re(e,t){return null!=e?e:t}function ie(e,t,n){return null!=e?e:null!=t?t:n}function oe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return _.apply(e,t)}function ae(e){var t;return"number"==typeof e?[e,e,e,e]:2===(t=e.length)?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function se(e,t){if(!e)throw new Error(t)}function ue(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var le="__ec_primitive__";function ce(e){e[le]=!0}function he(e){return e[le]}fe.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},fe.prototype.has=function(e){return this.data.hasOwnProperty(e)},fe.prototype.get=function(e){return this.data[e]},fe.prototype.set=function(e,t){return this.data[e]=t,this},fe.prototype.keys=function(){return z(this.data)},fe.prototype.forEach=function(e){var t,n=this.data;for(t in n)n.hasOwnProperty(t)&&e(n[t],t)};var de=fe;function fe(){this.data={}}var pe="function"==typeof Map;ye.prototype.hasKey=function(e){return this.data.has(e)},ye.prototype.get=function(e){return this.data.get(e)},ye.prototype.set=function(e,t){return this.data.set(e,t),t},ye.prototype.each=function(e,t){this.data.forEach((function(n,r){e.call(t,n,r)}))},ye.prototype.keys=function(){var e=this.data.keys();return pe?Array.from(e):e},ye.prototype.removeKey=function(e){this.data.delete(e)};var ge=ye;function ye(e){var t=q(e),n=(this.data=new(pe?Map:de),this);function r(e,r){t?n.set(e,r):n.set(r,e)}e instanceof ye?e.each(r):e&&N(e,r)}function ve(e){return new ge(e)}function me(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function _e(e,t){var n;e=Object.create?Object.create(e):((n=function(){}).prototype=e,new n);return t&&M(e,t),e}function xe(e){e=e.style,e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function be(e,t){return e.hasOwnProperty(t)}function we(){}var Se=180/Math.PI,ke=Object.freeze({__proto__:null,HashMap:ge,RADIAN_TO_DEGREE:Se,assert:se,bind:U,clone:C,concatArray:me,createCanvas:O,createHashMap:ve,createObject:_e,curry:V,defaults:D,disableUserSelect:xe,each:N,eqNaN:te,extend:M,filter:j,find:function(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]},guid:A,hasOwn:be,indexOf:P,inherits:L,isArray:q,isArrayLike:R,isBuiltInObject:X,isDom:J,isFunction:$,isGradientObject:Z,isImagePatternObject:Q,isNumber:G,isObject:K,isPrimitive:he,isRegExp:ee,isString:H,isStringSafe:W,isTypedArray:Y,keys:z,logError:I,map:B,merge:T,mergeAll:function(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=T(n,e[r],t);return n},mixin:E,noop:we,normalizeCssArray:ae,reduce:F,retrieve:ne,retrieve2:re,retrieve3:ie,setAsPrimitive:ce,slice:oe,trim:ue});function Ae(e,t){return[e=null==e?0:e,t=null==t?0:t]}function Ie(e){return[e[0],e[1]]}function Ce(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Te(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Me(e){return Math.sqrt(De(e))}function De(e){return e[0]*e[0]+e[1]*e[1]}function Oe(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Pe(e,t){var n=Me(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Le(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ee=Le;function Re(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ne=Re;function Be(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Fe(e,t,n){var r=t[0];t=t[1];return e[0]=n[0]*r+n[2]*t+n[4],e[1]=n[1]*r+n[3]*t+n[5],e}function je(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function ze(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Ue=Object.freeze({__proto__:null,add:Ce,applyTransform:Fe,clone:Ie,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e},create:Ae,dist:Ee,distSquare:Ne,distance:Le,distanceSquare:Re,div:function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]},len:Me,lenSquare:De,length:Me,lengthSquare:De,lerp:Be,max:ze,min:je,mul:function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e},negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e},normalize:Pe,scale:Oe,scaleAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e},set:function(e,t,n){return e[0]=t,e[1]=n,e},sub:Te}),Ve=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},qe=($e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&((this._draggingTarget=t).dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ve(t,e),"dragstart",e.event))},$e.prototype._drag=function(e){var t,n,r,i,o=this._draggingTarget;o&&(t=e.offsetX,n=e.offsetY,r=t-this._x,i=n-this._y,this._x=t,this._y=n,o.drift(r,i,e),this.handler.dispatchToElement(new Ve(o,e),"drag",e.event),r=this.handler.findHover(t,n,o).target,i=this._dropTarget,o!==(this._dropTarget=r))&&(i&&r!==i&&this.handler.dispatchToElement(new Ve(i,e),"dragleave",e.event),r)&&r!==i&&this.handler.dispatchToElement(new Ve(r,e),"dragenter",e.event)},$e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ve(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ve(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},$e);function $e(e){(this.handler=e).on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}We.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),n&&e){var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;o={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},t=i[e].length-1,r=i[e][t],r&&r.callAtLast?i[e].splice(t,0,o):i[e].push(o)}return this},We.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},We.prototype.off=function(e,t){var n=this._$handlers;if(n)if(e)if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];else this._$handlers={};return this},We.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(this._$handlers){var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var u=r[s];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t)}}i&&i.afterTrigger&&i.afterTrigger(e)}return this},We.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(this._$handlers){var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=t[o-1],s=r.length,u=0;u<s;u++){var l=r[u];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(o){case 0:l.h.call(a);break;case 1:l.h.call(a,t[0]);break;case 2:l.h.call(a,t[0],t[1]);break;default:l.h.apply(a,t.slice(1,o-1))}}i&&i.afterTrigger&&i.afterTrigger(e)}return this};var He=We;function We(e){e&&(this._$eventProcessor=e)}var Ge=Math.log(2);function Ke(e,t,n,r,i,o){var a,s=r+"-"+i,u=e.length;if(o.hasOwnProperty(s))return o[s];if(1===t)return a=Math.round(Math.log((1<<u)-1&~i)/Ge),e[n][a];for(var l=r|1<<n,c=n+1;r&1<<c;)c++;for(var h=0,d=0,f=0;d<u;d++){var p=1<<d;p&i||(h+=(f%2?-1:1)*e[n][d]*Ke(e,t-1,c,l,i|p,o),f++)}return o[s]=h}function Xe(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Ke(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Ke(n,7,0===a?1:0,1<<a,1<<s,r)/i*t[a];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}var Ye="___zrEVENTSAVED";function Je(e,t,n,r,i){if(t.getBoundingClientRect&&o.domSupported&&!Ze(t)){var a=t[Ye]||(t[Ye]={});t=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],u=!0,l=0;l<4;l++){var c=e[l].getBoundingClientRect(),h=2*l,d=c.left;c=c.top;a.push(d,c),u=u&&o&&d===o[h]&&c===o[1+h],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&i?i:(t.srcCoords=a,t[r]=n?Xe(s,a):Xe(a,s))}(function(e,t){var n=t.markers;if(!n){n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,u=o%2,l=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[u]+":0",i[l]+":0",r[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}}return n}(t,a),a,i);if(t)return t(e,n,r),1}}function Ze(e){return"CANVAS"===e.nodeName.toUpperCase()}var Qe=/([&<>"'])/g,et={"&":"&","<":"<",">":">",'"':""","'":"'"};function tt(e){return null==e?"":(e+"").replace(Qe,(function(e,t){return et[t]}))}var nt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rt=[],it=o.browser.firefox&&+o.browser.version.split(".")[0]<39;function ot(e,t,n,r){return n=n||{},r?at(e,t,n):it&&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):at(e,t,n),n}function at(e,t,n){if(o.domSupported&&e.getBoundingClientRect){var r,i=t.clientX;t=t.clientY;if(Ze(e))return r=e.getBoundingClientRect(),n.zrX=i-r.left,void(n.zrY=t-r.top);if(Je(rt,e,i,t))return n.zrX=rt[0],void(n.zrY=rt[1])}n.zrX=n.zrY=0}function st(e){return e||window.event}function ut(e,t,n){var r;return null==(t=st(t)).zrX&&((r=t.type)&&0<=r.indexOf("touch")?(r=("touchend"!==r?t.targetTouches:t.changedTouches)[0])&&ot(e,r,t,n):(ot(e,t,t,n),r=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX;e=e.deltaY;return null!=n&&null!=e?3*(0!==e?Math.abs(e):Math.abs(n))*(0<e||!(e<0)&&0<n?-1:1):t}(t),t.zrDelta=r?r/120:-(t.detail||0)/3),e=t.button,null==t.which&&void 0!==e&&nt.test(t.type))&&(t.which=1&e?1:2&e?3:4&e?2:0),t}var lt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},ct=(ht.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},ht.prototype.clear=function(){return this._track.length=0,this},ht.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o<a;o++){var s=r[o],u=ot(n,s,{});i.points.push([u.zrX,u.zrY]),i.touches.push(s)}this._track.push(i)}},ht.prototype._recognize=function(e){for(var t in ft)if(ft.hasOwnProperty(t)&&(t=ft[t](this._track,e),t))return t},ht);function ht(){this._track=[]}function dt(e){var t=e[1][0]-e[0][0];e=e[1][1]-e[0][1];return Math.sqrt(t*t+e*e)}var ft={pinch:function(e,t){var n,r=e.length;if(r)return n=(e[r-1]||{}).points,(r=(e[r-2]||{}).points||n)&&1<r.length&&n&&1<n.length?(r=dt(n)/dt(r),isFinite(r)||(r=1),t.pinchScale=r,r=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],t.pinchX=r[0],t.pinchY=r[1],{type:"pinch",target:e[0].target,event:t}):void 0}};function pt(){return[1,0,0,1,0,0]}function gt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function yt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function vt(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4];n=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=n,e}function mt(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function _t(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],u=t[3],l=(t=t[5],Math.sin(n));n=Math.cos(n);return e[0]=i*n+s*l,e[1]=-i*l+s*n,e[2]=o*n+u*l,e[3]=-o*l+n*u,e[4]=n*(a-r[0])+l*(t-r[1])+r[0],e[5]=n*(t-r[1])-l*(a-r[0])+r[1],e}function xt(e,t,n){var r=n[0];n=n[1];return e[0]=t[0]*r,e[1]=t[1]*n,e[2]=t[2]*r,e[3]=t[3]*n,e[4]=t[4]*r,e[5]=t[5]*n,e}function bt(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=(t=t[5],n*a-o*r);return s?(e[0]=a*(s=1/s),e[1]=-o*s,e[2]=-r*s,e[3]=n*s,e[4]=(r*t-a*i)*s,e[5]=(o*i-n*t)*s,e):null}var wt=Object.freeze({__proto__:null,clone:function(e){var t=pt();return yt(t,e),t},copy:yt,create:pt,identity:gt,invert:bt,mul:vt,rotate:_t,scale:xt,translate:mt}),St=(kt.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},kt.prototype.clone=function(){return new kt(this.x,this.y)},kt.prototype.set=function(e,t){return this.x=e,this.y=t,this},kt.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},kt.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},kt.prototype.scale=function(e){this.x*=e,this.y*=e},kt.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},kt.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},kt.prototype.dot=function(e){return this.x*e.x+this.y*e.y},kt.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},kt.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},kt.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},kt.prototype.distance=function(e){var t=this.x-e.x;e=this.y-e.y;return Math.sqrt(t*t+e*e)},kt.prototype.distanceSquare=function(e){var t=this.x-e.x;e=this.y-e.y;return t*t+e*e},kt.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},kt.prototype.transform=function(e){var t,n;if(e)return t=this.x,n=this.y,this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this},kt.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},kt.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},kt.set=function(e,t,n){e.x=t,e.y=n},kt.copy=function(e,t){e.x=t.x,e.y=t.y},kt.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},kt.lenSquare=function(e){return e.x*e.x+e.y*e.y},kt.dot=function(e,t){return e.x*t.x+e.y*t.y},kt.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},kt.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},kt.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},kt.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},kt.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},kt);function kt(e,t){this.x=e||0,this.y=t||0}var At=Math.min,It=Math.max,Ct=new St,Tt=new St,Mt=new St,Dt=new St,Ot=new St,Pt=new St,Lt=(Et.prototype.union=function(e){var t=At(e.x,this.x),n=At(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=It(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=It(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},Et.prototype.applyTransform=function(e){Et.applyTransform(this,this,e)},Et.prototype.calculateTransform=function(e){var t=e.width/this.width,n=e.height/this.height,r=pt();return mt(r,r,[-this.x,-this.y]),xt(r,r,[t,n]),mt(r,r,[e.x,e.y]),r},Et.prototype.intersect=function(e,t){if(!e)return!1;e instanceof Et||(e=Et.create(e));var n,r,i,o,a,s,u,l,c=this,h=c.x,d=c.x+c.width,f=c.y,p=(c=c.y+c.height,e.x),g=e.x+e.width,y=e.y,v=(e=e.y+e.height,!(d<p||g<h||c<y||e<f));return t&&(n=1/0,r=0,i=Math.abs(d-p),o=Math.abs(g-h),a=Math.abs(c-y),s=Math.abs(e-f),u=Math.min(i,o),l=Math.min(a,s),d<p||g<h?r<u&&(r=u,i<o?St.set(Pt,-i,0):St.set(Pt,o,0)):u<n&&(n=u,i<o?St.set(Ot,i,0):St.set(Ot,-o,0)),c<y||e<f?r<l&&(r=l,a<s?St.set(Pt,0,-a):St.set(Pt,0,s)):u<n&&(n=u,a<s?St.set(Ot,0,a):St.set(Ot,0,-s))),t&&St.copy(t,v?Ot:Pt),v},Et.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},Et.prototype.clone=function(){return new Et(this.x,this.y,this.width,this.height)},Et.prototype.copy=function(e){Et.copy(this,e)},Et.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Et.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Et.prototype.isZero=function(){return 0===this.width||0===this.height},Et.create=function(e){return new Et(e.x,e.y,e.width,e.height)},Et.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},Et.applyTransform=function(e,t,n){var r,i,o,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(r=n[0],i=n[3],o=n[4],a=n[5],e.x=t.x*r+o,e.y=t.y*i+a,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height)):(Ct.x=Mt.x=t.x,Ct.y=Dt.y=t.y,Tt.x=Dt.x=t.x+t.width,Tt.y=Mt.y=t.y+t.height,Ct.transform(n),Dt.transform(n),Tt.transform(n),Mt.transform(n),e.x=At(Ct.x,Tt.x,Mt.x,Dt.x),e.y=At(Ct.y,Tt.y,Mt.y,Dt.y),o=It(Ct.x,Tt.x,Mt.x,Dt.x),a=It(Ct.y,Tt.y,Mt.y,Dt.y),e.width=o-e.x,e.height=a-e.y):e!==t&&Et.copy(e,t)},Et);function Et(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}var Rt="silent";function Nt(){lt(this.event)}n(jt,Bt=He),jt.prototype.dispose=function(){},jt.prototype.setCursor=function(){};var Bt,Ft=jt;function jt(){var e=null!==Bt&&Bt.apply(this,arguments)||this;return e.handler=null,e}var zt,Ut=function(e,t){this.x=e,this.y=t},Vt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],qt=new Lt(0,0,0,0),$t=(n(Ht,zt=He),Ht.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(N(Vt,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},Ht.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Gt(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target),r=this._hovered=r?new Ut(t,n):this.findHover(t,n),t=r.target,n=this.proxy;n.setCursor&&n.setCursor(t?t.cursor:"default"),o&&t!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(r,"mousemove",e),t&&t!==o&&this.dispatchToElement(r,"mouseover",e)},Ht.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},Ht.prototype.resize=function(){this._hovered=new Ut(0,0)},Ht.prototype.dispatch=function(e,t){e=this[e],e&&e.call(this,t)},Ht.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},Ht.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},Ht.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o={type:t,event:n,target:(e=e).target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Nt};r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget||r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},Ht.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Ut(e,t);if(Wt(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,u=new Lt(e-s,t-s,a,a),l=r.length-1;0<=l;l--){var c=r[l];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(qt.copy(c.getBoundingRect()),c.transform&&qt.applyTransform(c.transform),qt.intersect(u)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,f=0;f<s;f+=4)for(var p=0;p<d;p+=h)if(Wt(o,i,e+f*Math.cos(p),t+f*Math.sin(p),n),i.target)return i}return i},Ht.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new ct);var n=this._gestureMgr,r=("start"===t&&n.clear(),n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom));"end"===t&&n.clear(),r&&(t=r.type,e.gestureEvent=t,(n=new Ut).target=r.target,this.dispatchToElement(n,t,r.event))},Ht);function Ht(e,t,n,r,i){var o=zt.call(this)||this;return o._hovered=new Ut(0,0),o.storage=e,o.painter=t,o.painterRoot=r,o._pointerSize=i,n=n||new Ft,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new qe(o),o}function Wt(e,t,n,r,i){for(var o=e.length-1;0<=o;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=function(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(!(o=!!r.ignoreClip||o)){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0),a=r.__hostTarget,r=a||r.parent}return!i||Rt}return!1}(a,n,r))&&(t.topTarget||(t.topTarget=a),s!==Rt)){t.target=a;break}}}function Gt(e,t,n){return e=e.painter,t<0||t>e.getWidth()||n<0||n>e.getHeight()}N(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){$t.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=Gt(this,i,o);if("mouseup"===e&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||4<Ee(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var Kt=32,Xt=7;function Yt(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;var o=e,a=t,s=i;for(s--;a<s;){var u=o[a];o[a++]=o[s],o[s--]=u}}else for(;i<n&&0<=r(e[i],e[i-1]);)i++;return i-t}function Jt(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o,a=e[r],s=t,u=r;s<u;)i(a,e[o=s+u>>>1])<0?u=o:s=1+o;var l=r-s;switch(l){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:for(;0<l;)e[s+l]=e[s+l-1],l--}e[s]=a}}function Zt(e,t,n,r,i,o){var a=0,s=0,u=1;if(0<o(e,t[n+i])){for(s=r-i;u<s&&0<o(e,t[n+i+u]);)(u=1+((a=u)<<1))<=0&&(u=s);s<u&&(u=s),a+=i,u+=i}else{for(s=i+1;u<s&&o(e,t[n+i-u])<=0;)(u=1+((a=u)<<1))<=0&&(u=s);r=a,a=i-(u=s<u?s:u),u=i-r}for(a++;a<u;){var l=a+(u-a>>>1);0<o(e,t[n+l])?a=l+1:u=l}return u}function Qt(e,t,n,r,i,o){var a=0,s=0,u=1;if(o(e,t[n+i])<0){for(s=i+1;u<s&&o(e,t[n+i-u])<0;)(u=1+((a=u)<<1))<=0&&(u=s);var l=a;a=i-(u=s<u?s:u),u=i-l}else{for(s=r-i;u<s&&0<=o(e,t[n+i+u]);)(u=1+((a=u)<<1))<=0&&(u=s);s<u&&(u=s),a+=i,u+=i}for(a++;a<u;){var c=a+(u-a>>>1);o(e,t[n+c])<0?u=c:a=c+1}return u}function en(e,t){var n,r,i=Xt,o=0,a=[];function s(s){var u=n[s],l=r[s],c=n[s+1],h=r[s+1];r[s]=l+h,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--,s=Qt(e[c],e,u,l,0,t);if(u+=s,0!=(l-=s)&&0!==(h=Zt(e[u+l-1],e,c,h,h-1,t)))if(l<=h){var d=u,f=l,p=(s=c,h),g=0;for(g=0;g<f;g++)a[g]=e[d+g];var y=0,v=s,m=d;if(e[m++]=e[v++],0==--p)for(g=0;g<f;g++)e[m+g]=a[y+g];else if(1===f){for(g=0;g<p;g++)e[m+g]=e[v+g];e[m+p]=a[y]}else{for(var _,x,b,w=i;;){x=_=0,b=!1;do{if(t(e[v],a[y])<0){if(e[m++]=e[v++],x++,(_=0)==--p){b=!0;break}}else if(e[m++]=a[y++],_++,x=0,1==--f){b=!0;break}}while((_|x)<w);if(b)break;do{if(0!==(_=Qt(e[v],a,y,f,0,t))){for(g=0;g<_;g++)e[m+g]=a[y+g];if(m+=_,y+=_,(f-=_)<=1){b=!0;break}}if(e[m++]=e[v++],0==--p){b=!0;break}if(0!==(x=Zt(a[y],e,v,p,0,t))){for(g=0;g<x;g++)e[m+g]=e[v+g];if(m+=x,v+=x,0===(p-=x)){b=!0;break}}if(e[m++]=a[y++],1==--f){b=!0;break}}while(w--,Xt<=_||Xt<=x);if(b)break;w<0&&(w=0),w+=2}if((i=w)<1&&(i=1),1===f){for(g=0;g<p;g++)e[m+g]=e[v+g];e[m+p]=a[y]}else{if(0===f)throw new Error;for(g=0;g<f;g++)e[m+g]=a[y+g]}}}else{var S=u,k=l,A=c,I=h,C=0;for(C=0;C<I;C++)a[C]=e[A+C];var T=S+k-1,M=I-1,D=A+I-1,O=0,P=0;if(e[D--]=e[T--],0==--k)for(O=D-(I-1),C=0;C<I;C++)e[O+C]=a[C];else if(1===I){for(P=1+(D-=k),O=1+(T-=k),C=k-1;0<=C;C--)e[P+C]=e[O+C];e[D]=a[M]}else{for(var L=i;;){var E=0,R=0,N=!1;do{if(t(a[M],e[T])<0){if(e[D--]=e[T--],E++,(R=0)==--k){N=!0;break}}else if(e[D--]=a[M--],R++,E=0,1==--I){N=!0;break}}while((E|R)<L);if(N)break;do{if(0!==(E=k-Qt(a[M],e,S,k,k-1,t))){for(k-=E,P=1+(D-=E),O=1+(T-=E),C=E-1;0<=C;C--)e[P+C]=e[O+C];if(0===k){N=!0;break}}if(e[D--]=a[M--],1==--I){N=!0;break}if(0!==(R=I-Zt(e[T],a,0,I,I-1,t))){for(I-=R,P=1+(D-=R),O=1+(M-=R),C=0;C<R;C++)e[P+C]=a[O+C];if(I<=1){N=!0;break}}if(e[D--]=e[T--],0==--k){N=!0;break}}while(L--,Xt<=E||Xt<=R);if(N)break;L<0&&(L=0),L+=2}if((i=L)<1&&(i=1),1===I){for(P=1+(D-=k),O=1+(T-=k),C=k-1;0<=C;C--)e[P+C]=e[O+C];e[D]=a[M]}else{if(0===I)throw new Error;for(O=D-(I-1),C=0;C<I;C++)e[O+C]=a[C]}}}}return n=[],r=[],{mergeRuns:function(){for(;1<o;){var e=o-2;if(1<=e&&r[e-1]<=r[e]+r[e+1]||2<=e&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;1<o;){var e=o-2;0<e&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[o]=e,r[o]=t,o+=1}}}function tn(e,t,n,r){var i=(r=r||e.length)-(n=n||0);if(!(i<2)){var o=0;if(i<Kt)Jt(e,n,r,n+(o=Yt(e,n,r,t)),t);else{var a,s=en(e,t),u=function(e){for(var t=0;Kt<=e;)t|=1&e,e>>=1;return e+t}(i);do{}while((o=Yt(e,n,r,t))<u&&(Jt(e,n,n+(a=u<(a=i)?u:i),n+o,t),o=a),s.pushRun(n,o),s.mergeRuns(),n+=o,0!==(i-=o));s.forceMergeRuns()}}}var nn=1,rn=4,on=!1;function an(){on||(on=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}ln.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},ln.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},ln.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,tn(n,sn)},ln.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),i=(o=i).getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var u=a[s];e.__dirty&&(u.__dirty|=nn),this._updateAndAddDisplayable(u,t,n)}e.__dirty=0}else r=e,t&&t.length?r.__clipPaths=t:r.__clipPaths&&0<r.__clipPaths.length&&(r.__clipPaths=[]),isNaN(r.z)&&(an(),r.z=0),isNaN(r.z2)&&(an(),r.z2=0),isNaN(r.zlevel)&&(an(),r.zlevel=0),this._displayList[this._displayListLen++]=r;r=e.getDecalElement&&e.getDecalElement(),r&&this._updateAndAddDisplayable(r,t,n),r=e.getTextGuideLine(),r&&this._updateAndAddDisplayable(r,t,n),r=e.getTextContent(),r&&this._updateAndAddDisplayable(r,t,n)}},ln.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},ln.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=P(this._roots,e);0<=r&&this._roots.splice(r,1)}},ln.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},ln.prototype.getRoots=function(){return this._roots},ln.prototype.dispose=function(){this._displayList=null,this._roots=null};var un=ln;function ln(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sn}var cn=o.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},hn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(t=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*--e)*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(t=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(t=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*--e)*Math.sin((e-t)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--e)*Math.sin((e-t)*(2*Math.PI)/.4)*.5+1)},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((1+t)*e-t)*.5:.5*((e-=2)*e*((1+t)*e+t)+2)},bounceIn:function(e){return 1-hn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*hn.bounceIn(2*e):.5*hn.bounceOut(2*e-1)+.5}},dn=Math.pow,fn=Math.sqrt,pn=1e-8,gn=fn(3),yn=1/3,vn=Ae(),mn=Ae(),_n=Ae();function xn(e){return-pn<e&&e<pn}function bn(e){return pn<e||e<-pn}function wn(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function Sn(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function kn(e,t,n,r,i,o){r=r+3*(t-n)-e,n=3*(n-2*t+e),t=3*(t-e),e-=i,i=n*n-3*r*t;var a,s,u=n*t-9*r*e,l=(e=t*t-3*n*e,0);return xn(i)&&xn(u)?xn(n)?o[0]=0:0<=(a=-t/n)&&a<=1&&(o[l++]=a):xn(t=u*u-4*i*e)?(s=-(e=u/i)/2,0<=(a=-n/r+e)&&a<=1&&(o[l++]=a),0<=s&&s<=1&&(o[l++]=s)):0<t?(t=i*n+1.5*r*(-u-(e=fn(t))),0<=(a=(-n-((e=(e=i*n+1.5*r*(-u+e))<0?-dn(-e,yn):dn(e,yn))+(t=t<0?-dn(-t,yn):dn(t,yn))))/(3*r))&&a<=1&&(o[l++]=a)):(e=(2*i*n-3*r*u)/(2*fn(i*i*i)),t=Math.acos(e)/3,a=(-n-2*(u=fn(i))*(e=Math.cos(t)))/(3*r),s=(-n+u*(e+gn*Math.sin(t)))/(3*r),i=(-n+u*(e-gn*Math.sin(t)))/(3*r),0<=a&&a<=1&&(o[l++]=a),0<=s&&s<=1&&(o[l++]=s),0<=i&&i<=1&&(o[l++]=i)),l}function An(e,t,n,r,i){var o,a=6*n-12*t+6*e;r=9*t+3*r-3*e-9*n,n=3*t-3*e,t=0;return xn(r)?bn(a)&&0<=(o=-n/a)&&o<=1&&(i[t++]=o):xn(e=a*a-4*r*n)?i[0]=-a/(2*r):0<e&&(e=(-a-(n=fn(e)))/(2*r),0<=(o=(-a+n)/(2*r))&&o<=1&&(i[t++]=o),0<=e)&&e<=1&&(i[t++]=e),t}function In(e,t,n,r,i,o){var a=(t-e)*i+e,s=(t=(n-t)*i+t,n=(r-n)*i+n,(t-a)*i+a);t=(n-t)*i+t,i=(t-s)*i+s;o[0]=e,o[1]=a,o[2]=s,o[3]=i,o[4]=i,o[5]=t,o[6]=n,o[7]=r}function Cn(e,t,n,r,i,o,a,s,u,l,c){var h,d,f,p,g=.005,y=1/0;vn[0]=u,vn[1]=l;for(var v=0;v<1;v+=.05)mn[0]=wn(e,n,i,a,v),mn[1]=wn(t,r,o,s,v),(f=Ne(vn,mn))<y&&(h=v,y=f);y=1/0;for(var m=0;m<32&&!(g<1e-4);m++)d=h+g,mn[0]=wn(e,n,i,a,p=h-g),mn[1]=wn(t,r,o,s,p),f=Ne(mn,vn),0<=p&&f<y?(h=p,y=f):(_n[0]=wn(e,n,i,a,d),_n[1]=wn(t,r,o,s,d),p=Ne(_n,vn),d<=1&&p<y?(h=d,y=p):g*=.5);return c&&(c[0]=wn(e,n,i,a,h),c[1]=wn(t,r,o,s,h)),fn(y)}function Tn(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Mn(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Dn(e,t,n){return n=e+n-2*t,0==n?.5:(e-t)/n}function On(e,t,n,r,i){var o=(t-e)*r+e;t=(n-t)*r+t,r=(t-o)*r+o;i[0]=e,i[1]=o,i[2]=r,i[3]=r,i[4]=t,i[5]=n}function Pn(e,t,n,r,i,o,a,s,u){var l,c=.005,h=1/0;vn[0]=a,vn[1]=s;for(var d=0;d<1;d+=.05)mn[0]=Tn(e,n,i,d),mn[1]=Tn(t,r,o,d),(y=Ne(vn,mn))<h&&(l=d,h=y);h=1/0;for(var f=0;f<32&&!(c<1e-4);f++){var p=l-c,g=l+c,y=(mn[0]=Tn(e,n,i,p),mn[1]=Tn(t,r,o,p),Ne(mn,vn));0<=p&&y<h?(l=p,h=y):(_n[0]=Tn(e,n,i,g),_n[1]=Tn(t,r,o,g),p=Ne(_n,vn),g<=1&&p<h?(l=g,h=p):c*=.5)}return u&&(u[0]=Tn(e,n,i,l),u[1]=Tn(t,r,o,l)),fn(h)}var Ln=/cubic-bezier\(([0-9,\.e ]+)\)/;function En(e){if(e=e&&Ln.exec(e),e){e=e[1].split(",");var t,n=+ue(e[0]),r=+ue(e[1]),i=+ue(e[2]),o=+ue(e[3]);if(!isNaN(n+r+i+o))return t=[],function(e){return e<=0?0:1<=e?1:kn(0,n,i,1,e,t)&&wn(0,r,o,1,t[0])}}}Nn.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n,o=(i<0&&(i=0),i=Math.min(i,1),this.easingFunc);o=o?o(i):i;if(this.onframe(o),1===i){if(!this.loop)return!0;this._startTime=e-r%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},Nn.prototype.pause=function(){this._paused=!0},Nn.prototype.resume=function(){this._paused=!1},Nn.prototype.setEasing=function(e){this.easing=e,this.easingFunc=$(e)?e:hn[e]||En(e)};var Rn=Nn;function Nn(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||we,this.ondestroy=e.ondestroy||we,this.onrestart=e.onrestart||we,e.easing&&this.setEasing(e.easing)}var Bn=function(e){this.value=e},Fn=(jn.prototype.insert=function(e){return e=new Bn(e),this.insertEntry(e),e},jn.prototype.insertEntry=function(e){this.head?((this.tail.next=e).prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},jn.prototype.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--},jn.prototype.len=function(){return this._len},jn.prototype.clear=function(){this.head=this.tail=null,this._len=0},jn);function jn(){this._len=0}Un.prototype.put=function(e,t){var n,r,i=this._list,o=this._map,a=null;return null==o[e]&&(r=i.len(),n=this._lastRemovedEntry,r>=this._maxSize&&0<r&&(r=i.head,i.remove(r),delete o[r.key],a=r.value,this._lastRemovedEntry=r),n?n.value=t:n=new Bn(t),n.key=e,i.insertEntry(n),o[e]=n),a},Un.prototype.get=function(e){e=this._map[e];var t=this._list;if(null!=e)return e!==t.tail&&(t.remove(e),t.insertEntry(e)),e.value},Un.prototype.clear=function(){this._list.clear(),this._map={}},Un.prototype.len=function(){return this._list.len()};var zn=Un;function Un(e){this._list=new Fn,this._maxSize=10,this._map={},this._maxSize=e}var Vn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function qn(e){return(e=Math.round(e))<0?0:255<e?255:e}function $n(e){return e<0?0:1<e?1:e}function Hn(e){return e.length&&"%"===e.charAt(e.length-1)?qn(parseFloat(e)/100*255):qn(parseInt(e,10))}function Wn(e){return e.length&&"%"===e.charAt(e.length-1)?$n(parseFloat(e)/100):$n(parseFloat(e))}function Gn(e,t,n){return n<0?n+=1:1<n&&--n,6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function Kn(e,t,n){return e+(t-e)*n}function Xn(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Yn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Jn=new zn(20),Zn=null;function Qn(e,t){Zn&&Yn(Zn,t),Zn=Jn.put(e,Zn||t.slice())}function er(e,t){if(e){t=t||[];var n=Jn.get(e);if(n)return Yn(t,n);if(n=(e+="").replace(/ /g,"").toLowerCase(),n in Vn)return Yn(t,Vn[n]),Qn(e,t),t;var r=n.length;if("#"===n.charAt(0))return 4===r||5===r?0<=(i=parseInt(n.slice(1,4),16))&&i<=4095?(Xn(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===r?parseInt(n.slice(4),16)/15:1),Qn(e,t),t):void Xn(t,0,0,0,1):7===r||9===r?0<=(i=parseInt(n.slice(1,7),16))&&i<=16777215?(Xn(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===r?parseInt(n.slice(7),16)/255:1),Qn(e,t),t):void Xn(t,0,0,0,1):void 0;var i=n.indexOf("("),o=n.indexOf(")");if(-1!==i&&o+1===r){r=n.substr(0,i);var a=n.substr(i+1,o-(i+1)).split(","),s=1;switch(r){case"rgba":if(4!==a.length)return 3===a.length?Xn(t,+a[0],+a[1],+a[2],1):Xn(t,0,0,0,1);s=Wn(a.pop());case"rgb":return 3<=a.length?(Xn(t,Hn(a[0]),Hn(a[1]),Hn(a[2]),3===a.length?s:Wn(a[3])),Qn(e,t),t):void Xn(t,0,0,0,1);case"hsla":return 4!==a.length?void Xn(t,0,0,0,1):(a[3]=Wn(a[3]),tr(a,t),Qn(e,t),t);case"hsl":return 3!==a.length?void Xn(t,0,0,0,1):(tr(a,t),Qn(e,t),t);default:return}}Xn(t,0,0,0,1)}}function tr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Wn(e[1]),i=Wn(e[2]);r=i<=.5?i*(r+1):i+r-i*r,i=2*i-r;return Xn(t=t||[],qn(255*Gn(i,r,n+1/3)),qn(255*Gn(i,r,n)),qn(255*Gn(i,r,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function nr(e,t){var n=er(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,255<n[r]?n[r]=255:n[r]<0&&(n[r]=0);return sr(n,4===n.length?"rgba":"rgb")}}function rr(e,t,n){var r,i,o;if(t&&t.length&&0<=e&&e<=1)return n=n||[],e*=t.length-1,r=Math.floor(e),o=Math.ceil(e),i=t[r],t=t[o],n[0]=qn(Kn(i[0],t[0],o=e-r)),n[1]=qn(Kn(i[1],t[1],o)),n[2]=qn(Kn(i[2],t[2],o)),n[3]=$n(Kn(i[3],t[3],o)),n}var ir=rr;function or(e,t,n){var r,i,o,a;if(t&&t.length&&0<=e&&e<=1)return e*=t.length-1,r=Math.floor(e),i=Math.ceil(e),a=er(t[r]),t=er(t[i]),a=sr([qn(Kn(a[0],t[0],o=e-r)),qn(Kn(a[1],t[1],o)),qn(Kn(a[2],t[2],o)),$n(Kn(a[3],t[3],o))],"rgba"),n?{color:a,leftIndex:r,rightIndex:i,value:e}:a}var ar=or;function sr(e,t){var n;if(e&&e.length)return n=e[0]+","+e[1]+","+e[2],"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}function ur(e,t){return e=er(e),e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var lr=new zn(100);function cr(e){var t;return H(e)?((t=lr.get(e))||(t=nr(e,-.1),lr.put(e,t)),t):Z(e)?((t=M({},e)).colorStops=B(e.colorStops,(function(e){return{offset:e.offset,color:nr(e.color,-.1)}})),t):e}ir=Object.freeze({__proto__:null,fastLerp:rr,fastMapToColor:ir,lerp:or,lift:nr,liftColor:cr,lum:ur,mapToColor:ar,modifyAlpha:function(e,t){if((e=er(e))&&null!=t)return e[3]=$n(t),sr(e,"rgba")},modifyHSL:function(e,t,n,r){var i=er(e);if(e)return i=function(e){var t,n,r,i,o,a,s,u,l,c;if(e)return c=e[0]/255,t=e[1]/255,n=e[2]/255,s=Math.min(c,t,n),i=((r=Math.max(c,t,n))+s)/2,0==(l=r-s)?a=o=0:(a=i<.5?l/(r+s):l/(2-r-s),s=((r-c)/6+l/2)/l,u=((r-t)/6+l/2)/l,l=((r-n)/6+l/2)/l,c===r?o=l-u:t===r?o=1/3+s-l:n===r&&(o=2/3+u-s),o<0&&(o+=1),1<o&&--o),c=[360*o,a,i],null!=e[3]&&c.push(e[3]),c}(i),null!=t&&(i[0]=(e=t,(e=Math.round(e))<0?0:360<e?360:e)),null!=n&&(i[1]=Wn(n)),null!=r&&(i[2]=Wn(r)),sr(tr(i),"rgba")},parse:er,random:function(){return sr([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:sr,toHex:function(e){if(e=er(e))return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}}),o.hasGlobalWindow&&$(window.btoa);var hr=Array.prototype.slice;function dr(e,t,n){return(t-e)*n+e}function fr(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=dr(t[o],n[o],r);return e}function pr(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function gr(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function yr(e){if(R(e)){var t=e.length;if(R(e[0])){for(var n=[],r=0;r<t;r++)n.push(hr.call(e[r]));return n}return hr.call(e)}return e}function vr(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function mr(e){return 4===e||5===e}function _r(e){return 1===e||2===e}var xr=[0,0,0,0],br=(wr.prototype.isFinished=function(){return this._finished},wr.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},wr.prototype.needsAnimate=function(){return 1<=this.keyframes.length},wr.prototype.getAdditiveTrack=function(){return this._additiveTrack},wr.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r,i=this.keyframes,o=i.length,a=!1,s=6,u=t,l=(R(t)?(1==(s=r=R((r=t)&&r[0])?2:1)&&!G(t[0])||2==r&&!G(t[0][0]))&&(a=!0):G(t)&&!te(t)?s=0:H(t)?isNaN(+t)?(r=er(t))&&(u=r,s=3):s=0:Z(t)&&((l=M({},u)).colorStops=B(t.colorStops,(function(e){return{offset:e.offset,color:er(e.color)}})),"linear"===t.type?s=4:"radial"===t.type&&(s=5),u=l),0===o?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:e,value:u,rawValue:t,percent:0});return n&&(l.easing=n,l.easingFunc=$(n)?n:hn[n]||En(n)),i.push(l),l},wr.prototype.prepare=function(e,t){for(var n=this.keyframes,r=(this._needsSort&&n.sort((function(e,t){return e.time-t.time})),this.valType),i=n.length,o=n[i-1],a=this.discrete,s=_r(r),u=mr(r),l=0;l<i;l++){var c=n[l],h=c.value,d=o.value;if(c.percent=c.time/e,!a)if(s&&l!==i-1){x=_=m=v=y=g=p=f=c=void 0;var f=d,p=r,g=c=h,y=f;if(g.push&&y.push){c=g.length;var v=y.length;if(c!==v)if(v<c)g.length=v;else for(var m=c;m<v;m++)g.push(1===p?y[m]:hr.call(y[m]));var _=g[0]&&g[0].length;for(m=0;m<g.length;m++)if(1===p)isNaN(g[m])&&(g[m]=y[m]);else for(var x=0;x<_;x++)isNaN(g[m][x])&&(g[m][x]=y[m][x])}}else if(u){A=k=S=w=b=c=f=void 0;f=h.colorStops,c=d.colorStops;for(var b=f.length,w=c.length,S=w<b?c:f,k=(c=Math.min(b,w),S[c-1]||{color:[0,0,0,0],offset:0}),A=c;A<Math.max(b,w);A++)S.push({offset:k.offset,color:k.color.slice()})}}if(!a&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var I=n[0].value;for(l=0;l<i;l++)0===r?n[l].additiveValue=n[l].value-I:3===r?n[l].additiveValue=pr([],n[l].value,I,-1):_r(r)&&(n[l].additiveValue=(1===r?pr:gr)([],n[l].value,I,-1))}},wr.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o,a=null!=this._additiveTrack,s=a?"additiveValue":"value",u=this.valType,l=this.keyframes,c=l.length,h=this.propName,d=3===u,f=this._lastFr,p=Math.min;if(1===c)n=r=l[0];else{if(t<0)g=0;else if(t<this._lastFrP){for(var g=p(f+1,c-1);0<=g&&!(l[g].percent<=t);g--);g=p(g,c-2)}else{for(g=f;g<c&&!(l[g].percent>t);g++);g=p(g-1,c-2)}r=l[g+1],n=l[g]}n&&r&&(this._lastFr=g,this._lastFrP=t,f=r.percent-n.percent,i=0==f?1:p((t-n.percent)/f,1),r.easingFunc&&(i=r.easingFunc(i)),p=a?this._additiveValue:d?xr:e[h],(_r(u)||d)&&(p=p||(this._additiveValue=[])),this.discrete?e[h]=(i<1?n:r).rawValue:_r(u)?(1===u?fr:function(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=dr(t[a][s],n[a][s],r)}})(p,n[s],r[s],i):mr(u)?(f=n[s],o=r[s],e[h]={type:(u=4===u)?"linear":"radial",x:dr(f.x,o.x,i),y:dr(f.y,o.y,i),colorStops:B(f.colorStops,(function(e,t){return t=o.colorStops[t],{offset:dr(e.offset,t.offset,i),color:vr(fr([],e.color,t.color,i))}})),global:o.global},u?(e[h].x2=dr(f.x2,o.x2,i),e[h].y2=dr(f.y2,o.y2,i)):e[h].r=dr(f.r,o.r,i)):d?(fr(p,n[s],r[s],i),a||(e[h]=vr(p))):(u=dr(n[s],r[s],i),a?this._additiveValue=u:e[h]=u),a)&&this._addToTarget(e)}},wr.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(er(e[n],xr),pr(xr,xr,r,1),e[n]=vr(xr)):1===t?pr(e[n],e[n],r,1):2===t&&gr(e[n],e[n],r,1)},wr);function wr(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}kr.prototype.getMaxTime=function(){return this._maxTime},kr.prototype.getDelay=function(){return this._delay},kr.prototype.getLoop=function(){return this._loop},kr.prototype.getTarget=function(){return this._target},kr.prototype.changeTarget=function(e){this._target=e},kr.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,z(t),n)},kr.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o];if(!(u=i[a])){var s,u=i[a]=new br(a),l=void 0,c=this._getAdditiveTrack(a);if(c?(l=(s=(s=c.keyframes)[s.length-1])&&s.value,3===c.valType&&(l=l&&vr(l))):l=this._target[a],null==l)continue;0<e&&u.addKeyframe(0,yr(l),r),this._trackKeys.push(a)}u.addKeyframe(e,yr(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},kr.prototype.pause=function(){this._clip.pause(),this._paused=!0},kr.prototype.resume=function(){this._clip.resume(),this._paused=!1},kr.prototype.isPaused=function(){return!!this._paused},kr.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},kr.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},kr.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},kr.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},kr.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},kr.prototype.start=function(e){if(!(0<this._started)){this._started=1;for(var t,n=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],u=(a=this._getAdditiveTrack(a),s.keyframes),l=u.length;s.prepare(i,a),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((a=u[l-1])&&(n._target[s.propName]=a.rawValue),s.setFinished()):r.push(s))}return r.length||this._force?(t=new Rn({life:i,loop:this._loop,delay:this._delay||0,onframe:function(e){n._started=2;var t=n._additiveAnimators;if(t){for(var i=!1,o=0;o<t.length;o++)if(t[o]._clip){i=!0;break}i||(n._additiveAnimators=null)}for(o=0;o<r.length;o++)r[o].step(n._target,e);var a=n._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](n._target,e)},ondestroy:function(){n._doneCallback()}}),this._clip=t,this.animation&&this.animation.addClip(t),e&&t.setEasing(e)):this._doneCallback(),this}},kr.prototype.stop=function(e){var t;this._clip&&(t=this._clip,e&&t.onframe(1),this._abortedCallback())},kr.prototype.delay=function(e){return this._delay=e,this},kr.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},kr.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},kr.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},kr.prototype.getClip=function(){return this._clip},kr.prototype.getTrack=function(e){return this._tracks[e]},kr.prototype.getTracks=function(){var e=this;return B(this._trackKeys,(function(t){return e._tracks[t]}))},kr.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},kr.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];o&&!o.isFinished()&&(o=(o=o.keyframes)[n?0:o.length-1])&&(e[i]=yr(o.rawValue))}}},kr.prototype.__changeFinalValue=function(e,t){t=t||z(e);for(var n=0;n<t.length;n++){var r,i=t[n],o=this._tracks[i];o&&1<(r=o.keyframes).length&&(r=r.pop(),o.addKeyframe(r.time,e[i]),o.prepare(this._maxTime,o.getAdditiveTrack()))}};var Sr=kr;function kr(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,(this._loop=t)&&r?I("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}function Ar(){return(new Date).getTime()}n(Tr,Ir=He),Tr.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?((this._tail.next=e).prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},Tr.prototype.addAnimator=function(e){e.animation=this,e=e.getClip(),e&&this.addClip(e)},Tr.prototype.removeClip=function(e){var t,n;e.animation&&(t=e.prev,n=e.next,t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null)},Tr.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},Tr.prototype.update=function(e){for(var t=Ar()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r=(r.step(t,n)&&(r.ondestroy(),this.removeClip(r)),i)}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},Tr.prototype._startLoop=function(){var e=this;this._running=!0,cn((function t(){e._running&&(cn(t),e._paused||e.update())}))},Tr.prototype.start=function(){this._running||(this._time=Ar(),this._pausedTime=0,this._startLoop())},Tr.prototype.stop=function(){this._running=!1},Tr.prototype.pause=function(){this._paused||(this._pauseStart=Ar(),this._paused=!0)},Tr.prototype.resume=function(){this._paused&&(this._pausedTime+=Ar()-this._pauseStart,this._paused=!1)},Tr.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},Tr.prototype.isFinished=function(){return null==this._head},Tr.prototype.animate=function(e,t){return t=t||{},this.start(),e=new Sr(e,t.loop),this.addAnimator(e),e};var Ir,Cr=Tr;function Tr(e){var t=Ir.call(this)||this;return t._running=!1,t._time=0,t._pausedTime=0,t._pauseStart=0,t._paused=!1,t.stage=(e=e||{}).stage||{},t}var Mr,Dr=o.domSupported,Or=(Mr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:ar=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:B(ar,(function(e){var t=e.replace("mouse","pointer");return Mr.hasOwnProperty(t)?t:e}))}),Pr=["mousemove","mouseup"],Lr=["pointermove","pointerup"],Er=!1;function Rr(e){return e=e.pointerType,"pen"===e||"touch"===e}function Nr(e){e&&(e.zrByTouch=!0)}function Br(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Fr=function(e,t){this.stopPropagation=we,this.stopImmediatePropagation=we,this.preventDefault=we,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},jr={mousedown:function(e){e=ut(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ut(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ut(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){Br(this,(e=ut(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Er=!0,e=ut(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Er||(e=ut(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){Nr(e=ut(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),jr.mousemove.call(this,e),jr.mousedown.call(this,e)},touchmove:function(e){Nr(e=ut(this.dom,e)),this.handler.processGesture(e,"change"),jr.mousemove.call(this,e)},touchend:function(e){Nr(e=ut(this.dom,e)),this.handler.processGesture(e,"end"),jr.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&jr.click.call(this,e)},pointerdown:function(e){jr.mousedown.call(this,e)},pointermove:function(e){Rr(e)||jr.mousemove.call(this,e)},pointerup:function(e){jr.mouseup.call(this,e)},pointerout:function(e){Rr(e)||jr.mouseout.call(this,e)}},zr=(N(["click","dblclick","contextmenu"],(function(e){jr[e]=function(t){t=ut(this.dom,t),this.trigger(e,t)}})),{pointermove:function(e){Rr(e)||zr.mousemove.call(this,e)},pointerup:function(e){zr.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}});function Ur(e,t){var n=t.domHandlers;o.pointerEventsSupported?N(Or.pointer,(function(r){qr(t,r,(function(t){n[r].call(e,t)}))})):(o.touchEventsSupported&&N(Or.touch,(function(r){qr(t,r,(function(i){var o;n[r].call(e,i),(o=t).touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout((function(){o.touching=!1,o.touchTimer=null}),700)}))})),N(Or.mouse,(function(r){qr(t,r,(function(i){i=st(i),t.touching||n[r].call(e,i)}))})))}function Vr(e,t){function n(n){qr(t,n,(function(r){var i;r=st(r),Br(e,r.target)||(i=r,r=ut(e.dom,new Fr(e,i),!0),t.domHandlers[n].call(e,r))}),{capture:!0})}o.pointerEventsSupported?N(Lr,n):o.touchEventsSupported||N(Pr,n)}function qr(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,e.domTarget.addEventListener(t,n,r)}function $r(e){var t,n,r,i,o,a=e.mounted;for(t in a)a.hasOwnProperty(t)&&(n=e.domTarget,i=a[r=t],o=e.listenerOpts[t],n.removeEventListener(r,i,o));e.mounted={}}var Hr,Wr=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},Gr=(n(Kr,Hr=He),Kr.prototype.dispose=function(){$r(this._localHandlerScope),Dr&&$r(this._globalHandlerScope)},Kr.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},Kr.prototype.__togglePointerCapture=function(e){var t;this.__mayPointerCapture=null,Dr&&+this.__pointerCapturing^+e&&(this.__pointerCapturing=e,t=this._globalHandlerScope,e?Vr(this,t):$r(t))},Kr);function Kr(e,t){var n=Hr.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=t,n._localHandlerScope=new Wr(e,jr),Dr&&(n._globalHandlerScope=new Wr(document,zr)),Ur(n,n._localHandlerScope),n}ar=1;var Xr=ar=o.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):ar,Yr="#333",Jr="#ccc",Zr=gt;function Qr(e){return 5e-5<e||e<-5e-5}var ei=[],ti=[],ni=pt(),ri=Math.abs,ii=(oi.prototype.getLocalTransform=function(e){return oi.getLocalTransform(this,e)},oi.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},oi.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},oi.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},oi.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},oi.prototype.needLocalTransform=function(){return Qr(this.rotation)||Qr(this.x)||Qr(this.y)||Qr(this.scaleX-1)||Qr(this.scaleY-1)||Qr(this.skewX)||Qr(this.skewY)},oi.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||pt(),t?this.getLocalTransform(n):Zr(n),e&&(t?vt(n,e,n):yt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Zr(n),this.invTransform=null)},oi.prototype._resolveGlobalScaleRatio=function(e){var t,n,r=this.globalScaleRatio;null!=r&&1!==r&&(this.getGlobalScale(ei),n=((ei[1]-(n=ei[1]<0?-1:1))*r+n)/ei[1]||0,e[0]*=r=((ei[0]-(t=ei[0]<0?-1:1))*r+t)/ei[0]||0,e[1]*=r,e[2]*=n,e[3]*=n),this.invTransform=this.invTransform||pt(),bt(this.invTransform,e)},oi.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},oi.prototype.setLocalTransform=function(e){var t,n,r,i;e&&(i=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],t=Math.atan2(e[1],e[0]),n=Math.PI/2+t-Math.atan2(e[3],e[2]),r=Math.sqrt(r)*Math.cos(n),i=Math.sqrt(i),this.skewX=n,this.skewY=0,this.rotation=-t,this.x=+e[4],this.y=+e[5],this.scaleX=i,this.scaleY=r,this.originX=0,this.originY=0)},oi.prototype.decomposeTransform=function(){var e,t,n;this.transform&&(t=this.parent,e=this.transform,t&&t.transform&&(t.invTransform=t.invTransform||pt(),vt(ti,t.invTransform,e),e=ti),t=this.originX,n=this.originY,(t||n)&&(ni[4]=t,ni[5]=n,vt(ti,e,ni),ti[4]-=t,ti[5]-=n,e=ti),this.setLocalTransform(e))},oi.prototype.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[0]=1,e[1]=1),e},oi.prototype.transformCoordToLocal=function(e,t){return e=[e,t],t=this.invTransform,t&&Fe(e,e,t),e},oi.prototype.transformCoordToGlobal=function(e,t){return e=[e,t],t=this.transform,t&&Fe(e,e,t),e},oi.prototype.getLineScale=function(){var e=this.transform;return e&&1e-10<ri(e[0]-1)&&1e-10<ri(e[3]-1)?Math.sqrt(ri(e[0]*e[3]-e[2]*e[1])):1},oi.prototype.copyTransform=function(e){for(var t=this,n=e,r=0;r<ai.length;r++){var i=ai[r];t[i]=n[i]}},oi.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,u=e.rotation||0,l=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0;e=e.skewY?Math.tan(-e.skewY):0;return n||r||a||s?(t[4]=-(a=n+a)*i-h*(s=r+s)*o,t[5]=-s*o-e*a*i):t[4]=t[5]=0,t[0]=i,t[3]=o,t[1]=e*i,t[2]=h*o,u&&_t(t,t,u),t[4]+=n+l,t[5]+=r+c,t},oi.initDefaultProps=((ar=oi.prototype).scaleX=ar.scaleY=ar.globalScaleRatio=1,void(ar.x=ar.y=ar.originX=ar.originY=ar.skewX=ar.skewY=ar.rotation=ar.anchorX=ar.anchorY=0)),oi);function oi(){}var ai=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],si={};function ui(e,t){var n=si[t=t||l],r=(n=n||(si[t]=new zn(500))).get(e);return null==r&&(r=h.measureText(e,t).width,n.put(e,r)),r}function li(e,t,n,r){return e=ui(e,t),t=fi(t),n=hi(0,e,n),r=di(0,t,r),new Lt(n,r,e,t)}function ci(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return li(i[0],t,n,r);for(var o=new Lt(0,0,0,0),a=0;a<i.length;a++){var s=li(i[a],t,n,r);0===a?o.copy(s):o.union(s)}return o}function hi(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function di(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function fi(e){return ui("国",e)}function pi(e,t){return"string"==typeof e?0<=e.lastIndexOf("%")?parseFloat(e)/100*t:parseFloat(e):e}function gi(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,u=n.x,l=n.y,c="left",h="top";if(r instanceof Array)u+=pi(r[0],n.width),l+=pi(r[1],n.height),h=c=null;else switch(r){case"left":u-=i,l+=s,c="right",h="middle";break;case"right":u+=i+a,l+=s,h="middle";break;case"top":u+=a/2,l-=i,c="center",h="bottom";break;case"bottom":u+=a/2,l+=o+i,c="center";break;case"inside":u+=a/2,l+=s,c="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=a-i,l+=s,c="right",h="middle";break;case"insideTop":u+=a/2,l+=i,c="center";break;case"insideBottom":u+=a/2,l+=o-i,c="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=a-i,l+=i,c="right";break;case"insideBottomLeft":u+=i,l+=o-i,h="bottom";break;case"insideBottomRight":u+=a-i,l+=o-i,c="right",h="bottom"}return(e=e||{}).x=u,e.y=l,e.align=c,e.verticalAlign=h,e}var yi,vi="__zr_normal__",mi=ai.concat(["ignore"]),_i=F(ai,(function(e,t){return e[t]=!0,e}),{ignore:!1}),xi={},bi=new Lt(0,0,0,0);wi.prototype._init=function(e){this.attr(e)},wi.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;(r=r||(this.transform=[1,0,0,1,0,0]))[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},wi.prototype.beforeUpdate=function(){},wi.prototype.afterUpdate=function(){},wi.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},wi.prototype.updateInnerText=function(e){var t,n,r,i,o,a,s,u,l,c,h=this._textContent;!h||h.ignore&&!e||(this.textConfig||(this.textConfig={}),u=(e=this.textConfig).local,r=n=void 0,i=!1,(t=h.innerTransformable).parent=u?this:null,c=!1,t.copyTransform(h),null!=e.position&&(l=bi,e.layoutRect?l.copy(e.layoutRect):l.copy(this.getBoundingRect()),u||l.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(xi,e,l):gi(xi,e,l),t.x=xi.x,t.y=xi.y,n=xi.align,r=xi.verticalAlign,o=e.origin)&&null!=e.rotation&&(s=a=void 0,s="center"===o?(a=.5*l.width,.5*l.height):(a=pi(o[0],l.width),pi(o[1],l.height)),c=!0,t.originX=-t.x+a+(u?0:l.x),t.originY=-t.y+s+(u?0:l.y)),null!=e.rotation&&(t.rotation=e.rotation),(o=e.offset)&&(t.x+=o[0],t.y+=o[1],c||(t.originX=-o[0],t.originY=-o[1])),a=null==e.inside?"string"==typeof e.position&&0<=e.position.indexOf("inside"):e.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),c=l=u=void 0,a&&this.canBeInsideText()?(u=e.insideFill,l=e.insideStroke,null!=u&&"auto"!==u||(u=this.getInsideTextFill()),null!=l&&"auto"!==l||(l=this.getInsideTextStroke(u),c=!0)):(u=e.outsideFill,l=e.outsideStroke,null!=u&&"auto"!==u||(u=this.getOutsideFill()),null!=l&&"auto"!==l||(l=this.getOutsideStroke(u),c=!0)),(u=u||"#000")===s.fill&&l===s.stroke&&c===s.autoStroke&&n===s.align&&r===s.verticalAlign||(i=!0,s.fill=u,s.stroke=l,s.autoStroke=c,s.align=n,s.verticalAlign=r,h.setDefaultTextStyle(s)),h.__dirty|=nn,i&&h.dirtyStyle(!0))},wi.prototype.canBeInsideText=function(){return!0},wi.prototype.getInsideTextFill=function(){return"#fff"},wi.prototype.getInsideTextStroke=function(e){return"#000"},wi.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Jr:Yr},wi.prototype.getOutsideStroke=function(e){for(var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&er(t),r=(n=n||[255,255,255,1])[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,sr(n,"rgba")},wi.prototype.traverse=function(e,t){},wi.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},M(this.extra,t)):this[e]=t},wi.prototype.hide=function(){this.ignore=!0,this.markRedraw()},wi.prototype.show=function(){this.ignore=!1,this.markRedraw()},wi.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(K(e))for(var n=z(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},wi.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;r.getLoop()||i&&i!==vi||(i=(i=r.targetName)?t[i]:t,r.saveTo(i))}},wi.prototype._innerSaveToNormal=function(e){var t=(t=this._normalState)||(this._normalState={});e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,mi)},wi.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},wi.prototype.hasState=function(){return 0<this.currentStates.length},wi.prototype.getState=function(e){return this.states[e]},wi.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},wi.prototype.clearStates=function(e){this.useState(vi,!1,e)},wi.prototype.useState=function(e,t,n,r){var i=e===vi,o=this.hasState();if(o||!i){o=this.currentStates;var a,s=this.stateTransition;if(!(0<=P(o,e))||!t&&1!==o.length){if((a=(a=this.stateProxy&&!i?this.stateProxy(e):a)||this.states&&this.states[e])||i)return i||this.saveCurrentToNormalState(a),(o=!!(a&&a.hoverLayer||r))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,a,this._normalState,t,!n&&!this.__inHover&&s&&0<s.duration,s),r=this._textContent,s=this._textGuide,r&&r.useState(e,t,n,o),s&&s.useState(e,t,n,o),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!o&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nn),a;I("State "+e+" not exists.")}}},wi.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(e[s]!==i[s]){a=!1;break}if(!a){for(s=0;s<o;s++){var u=e[s],l=void 0;(l=(l=this.stateProxy?this.stateProxy(u,e):l)||this.states[u])&&r.push(l)}var c=r[o-1],h=(c=!!(c&&c.hoverLayer||n),n=(c&&this._toggleHoverLayerFlag(!0),this._mergeStates(r)),this.stateTransition);n=(this.saveCurrentToNormalState(n),this._applyStateObj(e.join(","),n,this._normalState,!1,!t&&!this.__inHover&&h&&0<h.duration,h),this._textContent),h=this._textGuide;n&&n.useStates(e,t,c),h&&h.useStates(e,t,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~nn)}}else this.clearStates()},wi.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},wi.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},wi.prototype.removeState=function(e){var t;e=P(this.currentStates,e);0<=e&&((t=this.currentStates.slice()).splice(e,1),this.useStates(t))},wi.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=(e=P(r,e),0<=P(r,t));0<=e?i?r.splice(e,1):r[e]=t:n&&!i&&r.push(t),this.useStates(r)},wi.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},wi.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];M(n,i),i.textConfig&&M(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},wi.prototype._applyStateObj=function(e,t,n,r,i,o){for(var a=!(t&&r),s=(t&&t.textConfig?(this.textConfig=M({},(r?this:n).textConfig),M(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),u=!1,l=0;l<mi.length;l++){var c=mi[l],h=i&&_i[c];t&&null!=t[c]?h?(u=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(h?(u=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(l=0;l<this.animators.length;l++){var d=this.animators[l],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(t||n)[f]:t||n)}u&&this._transitionState(e,s,o)},wi.prototype._attachComponent=function(e){var t;e.__zr&&!e.__hostTarget||e!==this&&((t=this.__zr)&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this)},wi.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},wi.prototype.getClipPath=function(){return this._clipPath},wi.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},wi.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},wi.prototype.getTextContent=function(){return this._textContent},wi.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new ii,this._attachComponent(e),this._textContent=e,this.markRedraw())},wi.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),M(this.textConfig,e),this.markRedraw()},wi.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},wi.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},wi.prototype.getTextGuideLine=function(){return this._textGuide},wi.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},wi.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},wi.prototype.markRedraw=function(){this.__dirty|=nn;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},wi.prototype.dirty=function(){this.markRedraw()},wi.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},wi.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},wi.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},wi.prototype.animate=function(e,t,n){var r=e?this[e]:this;r=new Sr(r,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},wi.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=P(t,e);0<=n&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},wi.prototype.updateDuringAnimation=function(e){this.markRedraw()},wi.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},wi.prototype.animateTo=function(e,t,n){ki(this,e,t,n)},wi.prototype.animateFrom=function(e,t,n){ki(this,e,t,n,!0)},wi.prototype._transitionState=function(e,t,n,r){for(var i=ki(this,t,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=e},wi.prototype.getBoundingRect=function(){return null},wi.prototype.getPaintRect=function(){return null},wi.initDefaultProps=((yi=wi.prototype).type="element",yi.name="",yi.ignore=yi.silent=yi.isGroup=yi.draggable=yi.dragging=yi.ignoreClip=yi.__inHover=!1,yi.__dirty=nn,void(Object.defineProperty&&(Si("position","_legacyPos","x","y"),Si("scale","_legacyScale","scaleX","scaleY"),Si("origin","_legacyOrigin","originX","originY")))),ar=wi;function wi(e){this.id=k++,this.animators=[],this.currentStates=[],this.states={},this._init(e)}function Si(e,t,n,r){function i(e,t){Object.defineProperty(t,0,{get:function(){return e[n]},set:function(t){e[n]=t}}),Object.defineProperty(t,1,{get:function(){return e[r]},set:function(t){e[r]=t}})}Object.defineProperty(yi,e,{get:function(){var e;return this[t]||(e=this[t]=[],i(this,e)),this[t]},set:function(e){this[n]=e[0],this[r]=e[1],this[t]=e,i(this,e)}})}function ki(e,t,n,r,i){function o(){l=!0,--u<=0&&(l?c&&c():h&&h())}function a(){--u<=0&&(l?c&&c():h&&h())}var s=[],u=(function e(t,n,r,i,o,a,s,u){for(var l=z(i),c=o.duration,h=o.delay,d=o.additive,f=o.setToFinal,p=!K(a),g=t.animators,y=[],v=0;v<l.length;v++){var m=l[v],_=i[m];null!=_&&null!=r[m]&&(p||a[m])?!K(_)||R(_)||Z(_)?y.push(m):n?u||(r[m]=_,t.updateDuringAnimation(n)):e(t,m,r[m],_,o,a&&a[m],s,u):u||(r[m]=_,t.updateDuringAnimation(n),y.push(m))}var x=y.length;if(!d&&x)for(var b,w=0;w<g.length;w++)(S=g[w]).targetName===n&&S.stopTracks(y)&&(b=P(g,S),g.splice(b,1));if(o.force||(y=j(y,(function(e){return!Ci(i[e],r[e])})),x=y.length),0<x||o.force&&!s.length){var S,k=void 0,A=void 0,I=void 0;if(u)for(A={},f&&(k={}),w=0;w<x;w++)m=y[w],A[m]=r[m],f?k[m]=i[m]:r[m]=i[m];else if(f)for(I={},w=0;w<x;w++)m=y[w],I[m]=yr(r[m]),Ii(r,i,m);(S=new Sr(r,!1,!1,d?j(g,(function(e){return e.targetName===n})):null)).targetName=n,o.scope&&(S.scope=o.scope),f&&k&&S.whenWithKeys(0,k,y),I&&S.whenWithKeys(0,I,y),S.whenWithKeys(null==c?500:c,u?A:i,y).delay(h||0),t.addAnimator(S,n),s.push(S)}}(e,"",e,t,n=n||{},r,s,i),s.length),l=!1,c=n.done,h=n.aborted;u||c&&c(),0<s.length&&n.during&&s[0].during((function(e,t){n.during(t)}));for(var d=0;d<s.length;d++){var f=s[d];f.done(o),f.aborted(a),n.force&&f.duration(n.duration),f.start(n.easing)}return s}function Ai(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ii(e,t,n){if(R(t[n]))if(R(e[n])||(e[n]=[]),Y(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Ai(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(R(i[0]))for(var s=i[0].length,u=0;u<a;u++)o[u]?Ai(o[u],i[u],s):o[u]=Array.prototype.slice.call(i[u]);else Ai(o,i,a);o.length=i.length}else e[n]=t[n]}function Ci(e,t){return e===t||R(e)&&R(t)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(e,t)}E(ar,He),E(ar,ii),n(Di,Ti=ar),Di.prototype.childrenRef=function(){return this._children},Di.prototype.children=function(){return this._children.slice()},Di.prototype.childAt=function(e){return this._children[e]},Di.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},Di.prototype.childCount=function(){return this._children.length},Di.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},Di.prototype.addBefore=function(e,t){var n;return e&&e!==this&&e.parent!==this&&t&&t.parent===this&&0<=(t=(n=this._children).indexOf(t))&&(n.splice(t,0,e),this._doAdd(e)),this},Di.prototype.replace=function(e,t){return e=P(this._children,e),0<=e&&this.replaceAt(t,e),this},Di.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];return e&&e!==this&&e.parent!==this&&e!==r&&(n[t]=e,r.parent=null,(n=this.__zr)&&r.removeSelfFromZr(n),this._doAdd(e)),this},Di.prototype._doAdd=function(e){e.parent&&e.parent.remove(e);var t=(e.parent=this).__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},Di.prototype.remove=function(e){var t=this.__zr,n=this._children,r=P(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},Di.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},Di.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},Di.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},Di.prototype.addSelfToZr=function(e){Ti.prototype.addSelfToZr.call(this,e);for(var t=0;t<this._children.length;t++)this._children[t].addSelfToZr(e)},Di.prototype.removeSelfFromZr=function(e){Ti.prototype.removeSelfFromZr.call(this,e);for(var t=0;t<this._children.length;t++)this._children[t].removeSelfFromZr(e)},Di.prototype.getBoundingRect=function(e){for(var t=new Lt(0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var a,s=n[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(r))?(Lt.applyTransform(t,a,s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a))}return i||t};var Ti,Mi=Di;function Di(e){var t=Ti.call(this)||this;return t.isGroup=!0,t._children=[],t.attr(e),t}Mi.prototype.type="group";var Oi={},Pi={};Ri.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},Ri.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},Ri.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},Ri.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(e){if("string"==typeof e)return ur(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=ur(t[i].color,1);return(n/=r)<.4}}return!1}(e))},Ri.prototype.getBackgroundColor=function(){return this._backgroundColor},Ri.prototype.setDarkMode=function(e){this._darkMode=e},Ri.prototype.isDarkMode=function(){return this._darkMode},Ri.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},Ri.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},Ri.prototype.flush=function(){this._disposed||this._flush(!1)},Ri.prototype._flush=function(e){var t,n=Ar();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),e=Ar();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:e-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},Ri.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},Ri.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Ri.prototype.refreshHover=function(){this._needsRefreshHover=!0},Ri.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Ri.prototype.resize=function(e){this._disposed||(this.painter.resize((e=e||{}).width,e.height),this.handler.resize())},Ri.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Ri.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Ri.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Ri.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},Ri.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},Ri.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},Ri.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},Ri.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},Ri.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Mi&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},Ri.prototype.dispose=function(){var e;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,e=this.id,delete Pi[e])};var Li,Ei=Ri;function Ri(e,t,n){var r,i=this,a=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e,new un),s=n.renderer||"canvas",u=(s=(Oi[s]||(s=z(Oi)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new Oi[s](t,a,n,e)),t=n.ssr||s.ssrOnly,e=(this.storage=a,this.painter=s,o.node||o.worker||t?null:new Gr(s.getViewportRoot(),s.root)),n.useCoarsePointer);(null==u||"auto"===u?o.touchEventsSupported:!!u)&&(r=re(n.pointerSize,44)),this.handler=new $t(a,s,e,s.root,r),this.animation=new Cr({stage:{update:t?null:function(){return i._flush(!0)}}}),t||this.animation.start()}function Ni(e,t){return e=new Ei(k++,e,t),Pi[e.id]=e}function Bi(e,t){Oi[e]=t}function Fi(e){Li=e}var ji=Object.freeze({__proto__:null,dispose:function(e){e.dispose()},disposeAll:function(){for(var e in Pi)Pi.hasOwnProperty(e)&&Pi[e].dispose();Pi={}},getElementSSRData:function(e){if("function"==typeof Li)return Li(e)},getInstance:function(e){return Pi[e]},init:Ni,registerPainter:Bi,registerSSRDataGetter:Fi,version:"5.6.0"}),zi=20;function Ui(e,t,n,r){var i=t[0],o=(t=t[1],n[0]),a=(n=n[1],t-i),s=n-o;if(0==a)return 0==s?o:(o+n)/2;if(r)if(0<a){if(e<=i)return o;if(t<=e)return n}else{if(i<=e)return o;if(e<=t)return n}else{if(e===i)return o;if(e===t)return n}return(e-i)/a*s+o}function Vi(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return H(e)?e.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function qi(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),zi),e=(+e).toFixed(t),n?e:+e}function $i(e){if(e=+e,isNaN(e))return 0;if(1e-14<e)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return Hi(e)}function Hi(e){e=e.toString().toLowerCase();var t=e.indexOf("e"),n=0<t?+e.slice(t+1):0;t=0<t?t:e.length,e=e.indexOf(".");return Math.max(0,(e<0?0:t-1-e)-n)}function Wi(e,t){var n=Math.log,r=Math.LN10;e=Math.floor(n(e[1]-e[0])/r),n=Math.round(n(Math.abs(t[1]-t[0]))/r),t=Math.min(Math.max(-e+n,0),20);return isFinite(t)?t:20}function Gi(e,t){var n=F(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];for(var r=Math.pow(10,t),i=(t=B(e,(function(e){return(isNaN(e)?0:e)/n*r*100})),100*r),o=B(t,(function(e){return Math.floor(e)})),a=F(o,(function(e,t){return e+t}),0),s=B(t,(function(e,t){return e-o[t]}));a<i;){for(var u=Number.NEGATIVE_INFINITY,l=null,c=0,h=s.length;c<h;++c)s[c]>u&&(u=s[c],l=c);++o[l],s[l]=0,++a}return B(o,(function(e){return e/r}))}function Ki(e){var t=2*Math.PI;return(e%t+t)%t}function Xi(e){return-1e-4<e&&e<1e-4}var Yi=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ji(e){var t,n;return e instanceof Date?e:H(e)?(t=Yi.exec(e))?t[8]?(n=+t[4]||0,"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))):new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0):new Date(NaN):null==e?new Date(NaN):new Date(Math.round(e))}function Zi(e){return Math.pow(10,Qi(e))}function Qi(e){var t;return 0===e?0:(t=Math.floor(Math.log(e)/Math.LN10),10<=e/Math.pow(10,t)&&t++,t)}function eo(e,t){var n=Qi(e),r=Math.pow(10,n),i=e/r;t=t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10;return e=t*r,-20<=n?+e.toFixed(n<0?-n:0):e}function to(e){var t=parseFloat(e);return t==e&&(0!==t||!H(e)||e.indexOf("x")<=0)?t:NaN}function no(e){return!isNaN(to(e))}function ro(e,t){return null==e?t:null==t?e:e*t/function e(t,n){return 0===n?t:e(n,t%n)}(e,t)}function io(e){throw new Error(e)}function oo(e,t,n){return(t-e)*n+e}var ao="series\0";function so(e){return e instanceof Array?e:null==e?[]:[e]}function uo(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var lo=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function co(e){return!K(e)||q(e)||e instanceof Date?e:e.value}function ho(e,t,n){var r,i,o,a,s,u,l,c,h,d,f="normalMerge"===n,p="replaceMerge"===n,g="replaceAll"===n,y=(e=e||[],t=(t||[]).slice(),ve());N(t,(function(e,n){K(e)||(t[n]=null)})),n=function(e,t,n){var r=[];if("replaceAll"!==n)for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||vo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(e,y,n);return(f||p)&&(r=n,i=e,o=y,N(a=t,(function(e,t){var n,s,u;e&&null!=e.id&&(n=po(e.id),null!=(s=o.get(n)))&&(se(!(u=r[s]).newOption,'Duplicated option on id "'+n+'".'),u.newOption=e,u.existing=i[s],a[t]=null)}))),f&&(s=n,N(u=t,(function(e,t){if(e&&null!=e.name)for(var n=0;n<s.length;n++){var r=s[n].existing;if(!s[n].newOption&&r&&(null==r.id||null==e.id)&&!vo(e)&&!vo(r)&&fo("name",r,e))return s[n].newOption=e,void(u[t]=null)}}))),f||p?(c=n,h=p,N(t,(function(e){if(e){for(var t,n=0;(t=c[n])&&(t.newOption||vo(t.existing)||t.existing&&null!=e.id&&!fo("id",e,t.existing));)n++;t?(t.newOption=e,t.brandNew=h):c.push({newOption:e,brandNew:h,existing:null,keyInfo:null}),n++}}))):g&&(l=n,N(t,(function(e){l.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))),e=n,d=ve(),N(e,(function(e){var t=e.existing;t&&d.set(t.id,e)})),N(e,(function(e){var t=e.newOption;se(!t||null==t.id||!d.get(t.id)||d.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&d.set(t.id,e),e.keyInfo||(e.keyInfo={})})),N(e,(function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(K(r)){if(i.name=null!=r.name?po(r.name):n?n.name:ao+t,n)i.id=po(n.id);else if(null!=r.id)i.id=po(r.id);else for(var o=0;i.id="\0"+i.name+"\0"+o++,d.get(i.id););d.set(i.id,e)}})),n}function fo(e,t,n){return t=go(t[e],null),n=go(n[e],null),null!=t&&null!=n&&t===n}function po(e){return go(e,"")}function go(e,t){return null==e?t:H(e)?e:G(e)||W(e)?e+"":t}function yo(e){return e=e.name,!(!e||!e.indexOf(ao))}function vo(e){return e&&null!=e.id&&0===po(e.id).indexOf("\0_ec_\0")}function mo(e,t,n){N(e,(function(e){var r,i,o=e.newOption;K(o)&&(e.keyInfo.mainType=t,e.keyInfo.subType=(r=t,o=o,e=e.existing,i=n,o.type||(e?e.subType:i.determineSubType(r,o))))}))}function _o(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?q(t.dataIndex)?B(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?q(t.name)?B(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function xo(){var e="__ec_inner_"+bo++;return function(t){return t[e]||(t[e]={})}}var bo=Math.round(9*Math.random());function wo(e,t,n){t=So(t,n);var r=t.mainTypeSpecified,i=t.queryOptionMap,o=t.others,a=n?n.defaultMainType:null;return!r&&a&&i.set(a,{}),i.each((function(t,r){t=Ao(e,r,t,{useDefault:a===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone}),o[r+"Models"]=t.models,o[r+"Model"]=t.models[0]})),o}function So(e,t){var n=H(e)?((n={})[e+"Index"]=0,n):e,r=ve(),i={},o=!1;return N(n,(function(e,n){var a;"dataIndex"===n||"dataIndexInside"===n?i[n]=e:(a=(n=n.match(/^(\w+)(Index|Id|Name)$/)||[])[1],n=(n[2]||"").toLowerCase(),!a||!n||t&&t.includeMainTypes&&P(t.includeMainTypes,a)<0||(o=o||!!a,(r.get(a)||r.set(a,{}))[n]=e))})),{mainTypeSpecified:o,queryOptionMap:r,others:i}}var ko={useDefault:!0,enableAll:!1,enableNone:!1};function Ao(e,t,n,r){r=r||ko;var i=n.index,o=n.id,a=(n=n.name,{models:null,specified:null!=i||null!=o||null!=n});return a.specified?"none"===i||!1===i?(se(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===i&&(se(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=n=null),a.models=e.queryComponents({mainType:t,index:i,id:o,name:n})):(i=void 0,a.models=r.useDefault&&(i=e.getComponent(t))?[i]:[]),a}function Io(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Co(e,t,n,r,i){var o=null==t||"auto"===t;if(null==r)return r;if(G(r))return qi(d=oo(n||0,r,i),o?Math.max($i(n||0),$i(r)):t);if(H(r))return i<1?n:r;for(var a=[],s=n,u=r,l=Math.max(s?s.length:0,u.length),c=0;c<l;++c){var h,d,f=e.getDimensionInfo(c);f&&"ordinal"===f.type?a[c]=(i<1&&s?s:u)[c]:(d=oo(f=s&&s[c]?s[c]:0,h=u[c],i),a[c]=qi(d,o?Math.max($i(f),$i(h)):t))}return a}var To=".",Mo="___EC__COMPONENT__CONTAINER___",Do="___EC__EXTENDED_CLASS___";function Oo(e){var t={main:"",sub:""};return e&&(e=e.split(To),t.main=e[0]||"",t.sub=e[1]||""),t}function Po(e){(e.$constructor=e).extend=function(e){var t,r,i,o=this;function a(){return r.apply(this,arguments)||this}return $(i=o)&&/^class\s/.test(Function.prototype.toString.call(i))?(n(a,r=o),t=a):L(t=function(){(e.$constructor||o).apply(this,arguments)},this),M(t.prototype,e),t[Do]=!0,t.extend=this.extend,t.superCall=Ro,t.superApply=No,t.superClass=o,t}}function Lo(e,t){e.extend=t.extend}var Eo=Math.round(10*Math.random());function Ro(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function No(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Bo(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;return r&&(se(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),(n=Oo(e.prototype.type=r)).sub?n.sub!==Mo&&((function(e){var n=t[e.main];return n&&n[Mo]||(n=t[e.main]={___EC__COMPONENT__CONTAINER___:!0}),n}(n))[n.sub]=e):t[n.main]=e),e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Mo]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){e=Oo(e);var n=[];e=t[e.main];return e&&e[Mo]?N(e,(function(e,t){t!==Mo&&n.push(e)})):n.push(e),n},e.hasClass=function(e){return e=Oo(e),!!t[e.main]},e.getAllClassMainTypes=function(){var e=[];return N(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){return e=Oo(e),e=t[e.main],e&&e[Mo]}}function Fo(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];r&&0<=P(r,s)||i&&P(i,s)<0||null!=(s=n.getShallow(s,t))&&(o[e[a][0]]=s)}return o}}var jo=Fo([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),zo=(Uo.prototype.getAreaStyle=function(e,t){return jo(this,e,t)},Uo);function Uo(){}var Vo=new zn(50);function qo(e,t,n,r,i){return e?"string"==typeof e?(t&&t.__zrImageSrc===e||!n||(n={hostEl:n,cb:r,cbPayload:i},(r=Vo.get(e))?Ho(t=r.image)||r.pending.push(n):((t=h.loadImage(e,$o,$o)).__zrImageSrc=e,Vo.put(e,t.__cachedImgObj={image:t,pending:[n]}))),t):e:t}function $o(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Ho(e){return e&&e.width&&e.height}var Wo=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Go(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=Ko(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Xo(o[a],i);return o.join("\n")}function Ko(e,t,n,r){for(var i=M({},r=r||{}),o=(i.font=t,n=re(n,"..."),i.maxIterations=re(r.maxIterations,2),i.minChar=re(r.minChar,0)),a=(i.cnCharWidth=ui("国",t),i.ascCharWidth=ui("a",t)),s=(i.placeholder=re(r.placeholder,""),e=Math.max(0,e-1)),u=0;u<o&&a<=s;u++)s-=a;return r=ui(n,t),s<r&&(n="",r=0),s=e-r,i.ellipsis=n,i.ellipsisWidth=r,i.contentWidth=s,i.containerWidth=e,i}function Xo(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=ui(e,r);if(!(o<=n)){for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?function(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}(e,i,t.ascCharWidth,t.cnCharWidth):0<o?Math.floor(e.length*i/o):0;o=ui(e=e.substr(0,s),r)}""===e&&(e=t.placeholder)}return e}var Yo=function(){},Jo=function(e){this.tokens=[],e&&(this.tokens=e)},Zo=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Qo(e,t){var n=new Zo;if(null!=e&&(e+=""),e){for(var r,i=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},u=Wo.lastIndex=0;null!=(r=Wo.exec(e));){var l=r.index;u<l&&ea(n,e.substring(u,l),t,s),ea(n,r[2],t,s,r[1]),u=Wo.lastIndex}u<e.length&&ea(n,e.substring(u,e.length),t,s);var c,h=[],d=0,f=0,p=t.padding,g="truncate"===a,y="truncate"===t.lineOverflow;e:for(var v=0;v<n.lines.length;v++){for(var m=n.lines[v],_=0,x=0,b=0;b<m.tokens.length;b++){var w=(M=m.tokens[b]).styleName&&t.rich[M.styleName]||{},S=M.textPadding=w.padding,k=S?S[1]+S[3]:0,A=M.font=w.font||t.font,I=(M.contentHeight=fi(A),re(w.height,M.contentHeight));if(M.innerHeight=I,S&&(I+=S[0]+S[2]),M.height=I,M.lineHeight=ie(w.lineHeight,t.lineHeight,I),M.align=w&&w.align||t.align,M.verticalAlign=w&&w.verticalAlign||"middle",y&&null!=o&&d+M.lineHeight>o){0<b?(m.tokens=m.tokens.slice(0,b),O(m,x,_),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break e}S=w.width;var C,T=null==S||"auto"===S;"string"==typeof S&&"%"===S.charAt(S.length-1)?(M.percentWidth=S,h.push(M),M.contentWidth=ui(M.text,A)):(T&&(S=(S=w.backgroundColor)&&S.image)&&(C=void 0,Ho(S="string"==typeof(c=S)?(C=Vo.get(c))&&C.image:c))&&(M.width=Math.max(M.width,S.width*I/S.height)),null!=(C=g&&null!=i?i-x:null)&&C<M.width?!T||C<k?(M.text="",M.width=M.contentWidth=0):(M.text=Go(M.text,C-k,A,t.ellipsis,{minChar:t.truncateMinChar}),M.width=M.contentWidth=ui(M.text,A)):M.contentWidth=ui(M.text,A)),M.width+=k,x+=M.width,w&&(_=Math.max(_,M.lineHeight))}O(m,x,_)}for(n.outerWidth=n.width=re(i,f),n.outerHeight=n.height=re(o,d),n.contentHeight=d,n.contentWidth=f,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]),v=0;v<h.length;v++){var M,D=(M=h[v]).percentWidth;M.width=parseInt(D,10)/100*n.width}}return n;function O(e,t,n){e.width=t,e.lineHeight=n,d+=n,f=Math.max(f,t)}}function ea(e,t,n,r,i){var o,a,s=""===t,u=i&&n.rich[i]||{},l=e.lines,c=u.font||n.font,h=!1;r?(n=(e=u.padding)?e[1]+e[3]:0,null!=u.width&&"auto"!==u.width?(e=pi(u.width,r.width)+n,0<l.length&&e+r.accumWidth>r.width&&(o=t.split("\n"),h=!0),r.accumWidth=e):(e=na(t,c,r.width,r.breakAll,r.accumWidth),r.accumWidth=e.accumWidth+n,a=e.linesWidths,o=e.lines)):o=t.split("\n");for(var d=0;d<o.length;d++){var f,p,g=o[d],y=new Yo;y.styleName=i,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof u.width?y.width=u.width:y.width=a?a[d]:ui(g,c),d||h?l.push(new Jo([y])):1===(p=(f=(l[l.length-1]||(l[0]=new Jo)).tokens).length)&&f[0].isLineHolder?f[0]=y:!g&&p&&!s||f.push(y)}}var ta=F(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function na(e,t,n,r,i){for(var o,a=[],s=[],u="",l="",c=0,h=0,d=0;d<e.length;d++){var f,p,g=e.charAt(d);"\n"===g?(l&&(u+=l,h+=c),a.push(u),s.push(h),l=u="",h=c=0):(f=ui(g,t),p=!(r||(p=void 0,!(32<=(p=(p=o=g).charCodeAt(0))&&p<=591||880<=p&&p<=4351||4608<=p&&p<=5119||7680<=p&&p<=8303))||ta[o]),(a.length?n<h+f:n<i+h+f)?h?(u||l)&&(h=p?(u||(u=l,l="",h=c=0),a.push(u),s.push(h-c),l+=g,u="",c+=f):(l&&(u+=l,l="",c=0),a.push(u),s.push(h),u=g,f)):p?(a.push(l),s.push(c),l=g,c=f):(a.push(g),s.push(f)):(h+=f,p?(l+=g,c+=f):(l&&(u+=l,l="",c=0),u+=g)))}return a.length||u||(u=e,l="",c=0),l&&(u+=l),u&&(a.push(u),s.push(h)),1===a.length&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}var ra,ia="__zr_style_"+Math.round(10*Math.random()),oa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},aa={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},sa=(oa[ia]=!0,["z","z2","invisible"]),ua=["invisible"];n(la,ra=ar),la.prototype._init=function(e){for(var t=z(e),n=0;n<t.length;n++){var r=t[n];"style"===r?this.useStyle(e[r]):ra.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},la.prototype.beforeBrush=function(){},la.prototype.afterBrush=function(){},la.prototype.innerBeforeBrush=function(){},la.prototype.innerAfterBrush=function(){},la.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){return ca.copy(e.getBoundingRect()),e.transform&&ca.applyTransform(e.transform),ha.width=t,ha.height=n,!ca.intersect(ha)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},la.prototype.contain=function(e,t){return this.rectContain(e,t)},la.prototype.traverse=function(e,t){e.call(t,this)},la.prototype.rectContain=function(e,t){return e=this.transformCoordToLocal(e,t),this.getBoundingRect().contain(e[0],e[1])},la.prototype.getPaintRect=function(){var e,t,n,r,i,o=this._paintRect;return this._paintRect&&!this.__dirty||(i=this.transform,e=this.getBoundingRect(),t=(r=this.style).shadowBlur||0,n=r.shadowOffsetX||0,r=r.shadowOffsetY||0,o=this._paintRect||(this._paintRect=new Lt(0,0,0,0)),i?Lt.applyTransform(o,e,i):o.copy(e),(t||n||r)&&(o.width+=2*t+Math.abs(n),o.height+=2*t+Math.abs(r),o.x=Math.min(o.x,o.x+n-t),o.y=Math.min(o.y,o.y+r-t)),i=this.dirtyRectTolerance,o.isZero())||(o.x=Math.floor(o.x-i),o.y=Math.floor(o.y-i),o.width=Math.ceil(o.width+1+2*i),o.height=Math.ceil(o.height+1+2*i)),o},la.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Lt(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},la.prototype.getPrevPaintRect=function(){return this._prevPaintRect},la.prototype.animateStyle=function(e){return this.animate("style",e)},la.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},la.prototype.attrKV=function(e,t){"style"!==e?ra.prototype.attrKV.call(this,e,t):this.style?this.setStyle(t):this.useStyle(t)},la.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:M(this.style,e),this.dirtyStyle(),this},la.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},la.prototype.dirty=function(){this.dirtyStyle()},la.prototype.styleChanged=function(){return!!(2&this.__dirty)},la.prototype.styleUpdated=function(){this.__dirty&=-3},la.prototype.createStyle=function(e){return _e(oa,e)},la.prototype.useStyle=function(e){e[ia]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},la.prototype.isStyleObject=function(e){return e[ia]},la.prototype._innerSaveToNormal=function(e){ra.prototype._innerSaveToNormal.call(this,e);var t=this._normalState;e.style&&!t.style&&(t.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,t,sa)},la.prototype._applyStateObj=function(e,t,n,r,i,o){ra.prototype._applyStateObj.call(this,e,t,n,r,i,o);var a,s=!(t&&r);if(t&&t.style?i?r?a=t.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,t.style)):(a=this._mergeStyle(this.createStyle(),(r?this:n).style),this._mergeStyle(a,t.style)):s&&(a=n.style),a)if(i){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var l=z(u),c=0;c<l.length;c++)(d=l[c])in a&&(a[d]=a[d],this.style[d]=u[d]);var h=z(a);for(c=0;c<h.length;c++){var d=h[c];this.style[d]=this.style[d]}this._transitionState(e,{style:a},o,this.getAnimationStyleProps())}else this.useStyle(a);var f=this.__inHover?ua:sa;for(c=0;c<f.length;c++)d=f[c],t&&null!=t[d]?this[d]=t[d]:s&&null!=n[d]&&(this[d]=n[d])},la.prototype._mergeStates=function(e){for(var t,n=ra.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var i=e[r];i.style&&this._mergeStyle(t=t||{},i.style)}return t&&(n.style=t),n},la.prototype._mergeStyle=function(e,t){return M(e,t),e},la.prototype.getAnimationStyleProps=function(){return aa},la.initDefaultProps=((ar=la.prototype).type="displayable",ar.invisible=!1,ar.z=0,ar.z2=0,ar.zlevel=0,ar.culling=!1,ar.cursor="pointer",ar.rectHover=!1,ar.incremental=!1,ar._rect=null,ar.dirtyRectTolerance=0,void(ar.__dirty=2|nn)),ar=la;function la(e){return ra.call(this,e)||this}var ca=new Lt(0,0,0,0),ha=new Lt(0,0,0,0),da=Math.min,fa=Math.max,pa=Math.sin,ga=Math.cos,ya=2*Math.PI,va=Ae(),ma=Ae(),_a=Ae();function xa(e,t,n,r,i,o){i[0]=da(e,n),i[1]=da(t,r),o[0]=fa(e,n),o[1]=fa(t,r)}var ba=[],wa=[],Sa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ka=[],Aa=[],Ia=[],Ca=[],Ta=[],Ma=[],Da=Math.min,Oa=Math.max,Pa=Math.cos,La=Math.sin,Ea=Math.abs,Ra=Math.PI,Na=2*Ra,Ba="undefined"!=typeof Float32Array,Fa=[];function ja(e){return Math.round(e/Ra*1e8)/1e8%2*Ra}function za(e,t){var n=ja(e[0]),r=(n<0&&(n+=Na),n-e[0]),i=e[1];i+=r,!t&&Na<=i-n?i=n+Na:t&&Na<=n-i?i=n-Na:!t&&i<n?i=n+(Na-ja(n-i)):t&&n<i&&(i=n-(Na-ja(i-n))),e[0]=n,e[1]=i}Va.prototype.increaseVersion=function(){this._version++},Va.prototype.getVersion=function(){return this._version},Va.prototype.setScale=function(e,t,n){0<(n=n||0)&&(this._ux=Ea(n/Xr/e)||0,this._uy=Ea(n/Xr/t)||0)},Va.prototype.setDPR=function(e){this.dpr=e},Va.prototype.setContext=function(e){this._ctx=e},Va.prototype.getContext=function(){return this._ctx},Va.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},Va.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},Va.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Sa.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},Va.prototype.lineTo=function(e,t){var n=Ea(e-this._xi),r=Ea(t-this._yi),i=n>this._ux||r>this._uy;return this.addData(Sa.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i?(this._xi=e,this._yi=t,this._pendingPtDist=0):(i=n*n+r*r)>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=i),this},Va.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(Sa.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},Va.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Sa.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},Va.prototype.arc=function(e,t,n,r,i,o){return this._drawPendingPt(),Fa[0]=r,Fa[1]=i,za(Fa,o),this.addData(Sa.A,e,t,n,n,r=Fa[0],(i=Fa[1])-r,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=Pa(i)*n+e,this._yi=La(i)*n+t,this},Va.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},Va.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Sa.R,e,t,n,r),this},Va.prototype.closePath=function(){this._drawPendingPt(),this.addData(Sa.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},Va.prototype.fill=function(e){e&&e.fill(),this.toStatic()},Va.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},Va.prototype.len=function(){return this._len},Va.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!Ba||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},Va.prototype.appendPath=function(e){for(var t=(e=e instanceof Array?e:[e]).length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();for(Ba&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n)),i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},Va.prototype.addData=function(e,t,n,r,i,o,a,s,u){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var c=0;c<arguments.length;c++)l[this._len++]=arguments[c]}},Va.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},Va.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},Va.prototype.toStatic=function(){var e;this._saveData&&(this._drawPendingPt(),(e=this.data)instanceof Array)&&(e.length=this._len,Ba)&&11<this._len&&(this.data=new Float32Array(e))},Va.prototype.getBoundingRect=function(){Ia[0]=Ia[1]=Ta[0]=Ta[1]=Number.MAX_VALUE,Ca[0]=Ca[1]=Ma[0]=Ma[1]=-Number.MAX_VALUE;for(var e,t=this.data,n=0,r=0,i=0,o=0,a=0;a<this._len;){var s=t[a++],u=1===a;switch(u&&(i=n=t[a],o=r=t[a+1]),s){case Sa.M:n=i=t[a++],r=o=t[a++],Ta[0]=i,Ta[1]=o,Ma[0]=i,Ma[1]=o;break;case Sa.L:xa(n,r,t[a],t[a+1],Ta,Ma),n=t[a++],r=t[a++];break;case Sa.C:k=S=w=b=x=_=m=v=y=g=p=f=d=h=c=l=void 0;var l=n,c=r,h=t[a++],d=t[a++],f=t[a++],p=t[a++],g=t[a],y=t[a+1],v=Ta,m=Ma,_=An,x=wn,b=_(l,h,f,g,ba);v[0]=1/0,v[1]=1/0,m[0]=-1/0,m[1]=-1/0;for(var w=0;w<b;w++){var S=x(l,h,f,g,ba[w]);v[0]=da(S,v[0]),m[0]=fa(S,m[0])}for(b=_(c,d,p,y,wa),w=0;w<b;w++){var k=x(c,d,p,y,wa[w]);v[1]=da(k,v[1]),m[1]=fa(k,m[1])}v[0]=da(l,v[0]),m[0]=fa(l,m[0]),v[0]=da(g,v[0]),m[0]=fa(g,m[0]),v[1]=da(c,v[1]),m[1]=fa(c,m[1]),v[1]=da(y,v[1]),m[1]=fa(y,m[1]),n=t[a++],r=t[a++];break;case Sa.Q:_=n,j=r,O=t[a++],C=t[a++],D=t[a],A=t[a+1],M=Ta,P=Ma,e=T=e=I=void 0,I=Tn,e=fa(da((T=Dn)(_,O,D),1),0),T=fa(da(T(j,C,A),1),0),O=I(_,O,D,e),e=I(j,C,A,T),M[0]=da(_,D,O),M[1]=da(j,A,e),P[0]=fa(_,D,O),P[1]=fa(j,A,e),n=t[a++],r=t[a++];break;case Sa.A:var A,I=t[a++],C=t[a++],T=t[a++],M=t[a++],D=t[a++],O=t[a++]+D,P=(a+=1,!t[a++]),L=(u&&(i=Pa(D)*T+I,o=La(D)*M+C),$=A=q=V=U=z=j=F=B=N=R=E=L=void 0,I),E=C,R=T,N=M,B=D,F=O,j=P,z=Ta,U=Ma,V=je,q=ze;if((A=Math.abs(B-F))%ya<1e-4&&1e-4<A)z[0]=L-R,z[1]=E-N,U[0]=L+R,U[1]=E+N;else{va[0]=ga(B)*R+L,va[1]=pa(B)*N+E,ma[0]=ga(F)*R+L,ma[1]=pa(F)*N+E,V(z,va,ma),q(U,va,ma),(B%=ya)<0&&(B+=ya),(F%=ya)<0&&(F+=ya),F<B&&!j?F+=ya:B<F&&j&&(B+=ya),j&&(A=F,F=B,B=A);for(var $=0;$<F;$+=Math.PI/2)B<$&&(_a[0]=ga($)*R+L,_a[1]=pa($)*N+E,V(z,_a,z),q(U,_a,U))}n=Pa(O)*T+I,r=La(O)*M+C;break;case Sa.R:xa(i=n=t[a++],o=r=t[a++],i+t[a++],o+t[a++],Ta,Ma);break;case Sa.Z:n=i,r=o}je(Ia,Ia,Ta),ze(Ca,Ca,Ma)}return 0===a&&(Ia[0]=Ia[1]=Ca[0]=Ca[1]=0),new Lt(Ia[0],Ia[1],Ca[0]-Ia[0],Ca[1]-Ia[1])},Va.prototype._calculateLength=function(){for(var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0,u=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),l=0,c=0,h=0;h<t;){var d=e[h++],f=1===h,p=(f&&(a=i=e[h],s=o=e[h+1]),-1);switch(d){case Sa.M:i=a=e[h++],o=s=e[h++];break;case Sa.L:var g=e[h++],y=(_=e[h++])-o;(Ea(C=g-i)>n||Ea(y)>r||h===t-1)&&(p=Math.sqrt(C*C+y*y),i=g,o=_);break;case Sa.C:var v=e[h++],m=e[h++],_=(g=e[h++],e[h++]),x=e[h++],b=e[h++];p=function(e,t,n,r,i,o,a,s,u){for(var l=e,c=t,h=0,d=1/u,f=1;f<=u;f++){var p=f*d,g=wn(e,n,i,a,p),y=(p=wn(t,r,o,s,p),g-l),v=p-c;h+=Math.sqrt(y*y+v*v),l=g,c=p}return h}(i,o,v,m,g,_,x,b,10),i=x,o=b;break;case Sa.Q:p=function(e,t,n,r,i,o,a){for(var s=e,u=t,l=0,c=1/a,h=1;h<=a;h++){var d=h*c,f=Tn(e,n,i,d),p=(d=Tn(t,r,o,d),f-s),g=d-u;l+=Math.sqrt(p*p+g*g),s=f,u=d}return l}(i,o,v=e[h++],m=e[h++],g=e[h++],_=e[h++],10),i=g,o=_;break;case Sa.A:x=e[h++],b=e[h++];var w=e[h++],S=e[h++],k=e[h++],A=e[h++],I=A+k;h+=1,f&&(a=Pa(k)*w+x,s=La(k)*S+b),p=Oa(w,S)*Da(Na,Math.abs(A)),i=Pa(I)*w+x,o=La(I)*S+b;break;case Sa.R:a=i=e[h++],s=o=e[h++],p=2*e[h++]+2*e[h++];break;case Sa.Z:var C=a-i;y=s-o;p=Math.sqrt(C*C+y*y),i=a,o=s}0<=p&&(l+=u[c++]=p)}return this._pathLen=l},Va.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,u,l,c=this.data,h=this._ux,d=this._uy,f=this._len,p=t<1,g=0,y=0,v=0;if(!p||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=t*this._pathLen))e:for(var m=0;m<f;){var _=c[m++],x=1===m;switch(x&&(n=i=c[m],r=o=c[m+1]),_!==Sa.L&&0<v&&(e.lineTo(u,l),v=0),_){case Sa.M:n=i=c[m++],r=o=c[m++],e.moveTo(i,o);break;case Sa.L:var b=c[m++],w=c[m++],S=Ea(b-i),k=Ea(w-o);if(h<S||d<k){if(p){if(s<g+(V=a[y++])){var A=(s-g)/V;e.lineTo(i*(1-A)+b*A,o*(1-A)+w*A);break e}g+=V}e.lineTo(b,w),i=b,o=w,v=0}else S=S*S+k*k,v<S&&(u=b,l=w,v=S);break;case Sa.C:var I=c[m++],C=c[m++],T=c[m++],M=c[m++];k=c[m++],S=c[m++];if(p){if(s<g+(V=a[y++])){In(i,I,T,k,A=(s-g)/V,ka),In(o,C,M,S,A,Aa),e.bezierCurveTo(ka[1],Aa[1],ka[2],Aa[2],ka[3],Aa[3]);break e}g+=V}e.bezierCurveTo(I,C,T,M,k,S),i=k,o=S;break;case Sa.Q:if(I=c[m++],C=c[m++],T=c[m++],M=c[m++],p){if(s<g+(V=a[y++])){On(i,I,T,A=(s-g)/V,ka),On(o,C,M,A,Aa),e.quadraticCurveTo(ka[1],Aa[1],ka[2],Aa[2]);break e}g+=V}e.quadraticCurveTo(I,C,T,M),i=T,o=M;break;case Sa.A:var D=c[m++],O=c[m++],P=c[m++],L=c[m++],E=c[m++],R=c[m++],N=c[m++],B=!c[m++],F=L<P?P:L,j=.001<Ea(P-L),z=E+R,U=!1;if(p&&(s<g+(V=a[y++])&&(z=E+R*(s-g)/V,U=!0),g+=V),j&&e.ellipse?e.ellipse(D,O,P,L,N,E,z,B):e.arc(D,O,F,E,z,B),U)break e;x&&(n=Pa(E)*P+D,r=La(E)*L+O),i=Pa(z)*P+D,o=La(z)*L+O;break;case Sa.R:n=i=c[m],r=o=c[m+1],b=c[m++],w=c[m++];var V;R=c[m++],j=c[m++];if(p){if(s<g+(V=a[y++])){N=s-g,e.moveTo(b,w),e.lineTo(b+Da(N,R),w),0<(N-=R)&&e.lineTo(b+R,w+Da(N,j)),0<(N-=j)&&e.lineTo(b+Oa(R-N,0),w+j),0<(N-=R)&&e.lineTo(b,w+Oa(j-N,0));break e}g+=V}e.rect(b,w,R,j);break;case Sa.Z:if(p){if(s<g+(V=a[y++])){A=(s-g)/V,e.lineTo(i*(1-A)+n*A,o*(1-A)+r*A);break e}g+=V}e.closePath(),i=n,o=r}}},Va.prototype.clone=function(){var e=new Va,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},Va.CMD=Sa,Va.initDefaultProps=((il=Va.prototype)._saveData=!0,il._ux=0,il._uy=0,il._pendingPtDist=0,void(il._version=0));var Ua=Va;function Va(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}function qa(e,t,n,r,i,o,a){var s;if(0!==i)return s=0,!(t+(i=i)<a&&r+i<a||a<t-i&&a<r-i||e+i<o&&n+i<o||o<e-i&&o<n-i)&&(e===n?Math.abs(o-e)<=i/2:(o=(s=(t-r)/(e-n))*o-a+(e*r-n*t)/(e-n))*o/(s*s+1)<=i/2*i/2)}var $a=2*Math.PI;function Ha(e){return(e%=$a)<0&&(e+=$a),e}var Wa=2*Math.PI;function Ga(e,t,n,r,i,o){return t<o&&r<o||o<t&&o<r||r===t?0:(n=(o=(o-t)/(r-t))*(n-e)+e)===i?1/0:i<n?1!=o&&0!=o?r<t?1:-1:r<t?.5:-.5:0}var Ka=Ua.CMD,Xa=2*Math.PI,Ya=1e-4,Ja=[-1,-1,-1],Za=[-1,-1];function Qa(e,t,n,r,i,o,a,s,u,l){if(t<l&&r<l&&o<l&&s<l||l<t&&l<r&&l<o&&l<s)return 0;var c=kn(t,r,o,s,l,Ja);if(0===c)return 0;for(var h,d=0,f=-1,p=void 0,g=void 0,y=0;y<c;y++){var v=Ja[y],m=0===v||1===v?.5:1;wn(e,n,i,a,v)<u||(f<0&&(f=An(t,r,o,s,Za),Za[1]<Za[0]&&1<f&&(h=void 0,h=Za[0],Za[0]=Za[1],Za[1]=h),p=wn(t,r,o,s,Za[0]),1<f)&&(g=wn(t,r,o,s,Za[1])),2===f?v<Za[0]?d+=p<t?m:-m:v<Za[1]?d+=g<p?m:-m:d+=s<g?m:-m:v<Za[0]?d+=p<t?m:-m:d+=s<p?m:-m)}return d}function es(e,t,n,r,i,o,a,s){if(t<s&&r<s&&o<s||s<t&&s<r&&s<o)return 0;h=Ja,c=(u=t)-2*(l=r)+(c=o),l=2*(l-u),u-=s=s,s=0,xn(c)?bn(l)&&0<=(d=-u/l)&&d<=1&&(h[s++]=d):xn(u=l*l-4*c*u)?0<=(d=-l/(2*c))&&d<=1&&(h[s++]=d):0<u&&(f=(-l-(u=fn(u)))/(2*c),0<=(d=(-l+u)/(2*c))&&d<=1&&(h[s++]=d),0<=f)&&f<=1&&(h[s++]=f);var u,l,c,h,d,f,p=s;if(0===p)return 0;var g=Dn(t,r,o);if(0<=g&&g<=1){for(var y=0,v=Tn(t,r,o,g),m=0;m<p;m++){var _=0===Ja[m]||1===Ja[m]?.5:1;Tn(e,n,i,Ja[m])<a||(Ja[m]<g?y+=v<t?_:-_:y+=o<v?_:-_)}return y}return _=0===Ja[0]||1===Ja[0]?.5:1,Tn(e,n,i,Ja[0])<a?0:o<t?_:-_}function ts(e,t,n,r,i){for(var o,a=e.data,s=e.len(),u=0,l=0,c=0,h=0,d=0,f=0;f<s;){var p=a[f++],g=1===f;switch(p===Ka.M&&1<f&&(n||(u+=Ga(l,c,h,d,r,i))),g&&(h=l=a[f],d=c=a[f+1]),p){case Ka.M:l=h=a[f++],c=d=a[f++];break;case Ka.L:if(n){if(qa(l,c,a[f],a[f+1],t,r,i))return!0}else u+=Ga(l,c,a[f],a[f+1],r,i)||0;l=a[f++],c=a[f++];break;case Ka.C:if(n){if(function(e,t,n,r,i,o,a,s,u,l,c){if(0!==u)return!(t+(u=u)<c&&r+u<c&&o+u<c&&s+u<c||c<t-u&&c<r-u&&c<o-u&&c<s-u||e+u<l&&n+u<l&&i+u<l&&a+u<l||l<e-u&&l<n-u&&l<i-u&&l<a-u)&&Cn(e,t,n,r,i,o,a,s,l,c,null)<=u/2}(l,c,a[f++],a[f++],a[f++],a[f++],a[f],a[f+1],t,r,i))return!0}else u+=Qa(l,c,a[f++],a[f++],a[f++],a[f++],a[f],a[f+1],r,i)||0;l=a[f++],c=a[f++];break;case Ka.Q:if(n){if(function(e,t,n,r,i,o,a,s,u){if(0!==a)return!(t+(a=a)<u&&r+a<u&&o+a<u||u<t-a&&u<r-a&&u<o-a||e+a<s&&n+a<s&&i+a<s||s<e-a&&s<n-a&&s<i-a)&&Pn(e,t,n,r,i,o,s,u,null)<=a/2}(l,c,a[f++],a[f++],a[f],a[f+1],t,r,i))return!0}else u+=es(l,c,a[f++],a[f++],a[f],a[f+1],r,i)||0;l=a[f++],c=a[f++];break;case Ka.A:var y=a[f++],v=a[f++],m=a[f++],_=a[f++],x=a[f++],b=a[f++],w=(f+=1,!!(1-a[f++])),S=Math.cos(x)*m+y,k=Math.sin(x)*_+v,A=(g?(h=S,d=k):u+=Ga(l,c,S,k,r,i),(r-y)*_/m+y);if(n){if(function(e,t,n,r,i,o,a,s,u){if(0!==a)return a=a,s-=e,u-=t,!(n<(e=Math.sqrt(s*s+u*u))-a||e+a<n)&&(Math.abs(r-i)%Wa<1e-4||((i=o?(t=r,r=Ha(i),Ha(t)):(r=Ha(r),Ha(i)))<r&&(i+=Wa),(e=Math.atan2(u,s))<0&&(e+=Wa),r<=e&&e<=i)||r<=e+Wa&&e+Wa<=i)}(y,v,_,x,x+b,w,t,A,i))return!0}else u+=function(e,t,n,r,i,o,a,s){if(n<(s-=t)||s<-n)return 0;t=Math.sqrt(n*n-s*s);if(Ja[0]=-t,Ja[1]=t,(n=Math.abs(r-i))<1e-4)return 0;if(Xa-1e-4<=n)return i=Xa,c=o?1:-1,a>=Ja[r=0]+e&&a<=Ja[1]+e?c:0;i<r&&(t=r,r=i,i=t),r<0&&(r+=Xa,i+=Xa);for(var u=0,l=0;l<2;l++){var c,h=Ja[l];a<h+e&&(c=o?1:-1,r<=(h=(h=Math.atan2(s,h))<0?Xa+h:h)&&h<=i||r<=h+Xa&&h+Xa<=i)&&(u+=c=h>Math.PI/2&&h<1.5*Math.PI?-c:c)}return u}(y,v,_,x,x+b,w,A,i);l=Math.cos(x+b)*m+y,c=Math.sin(x+b)*_+v;break;case Ka.R:if(h=l=a[f++],d=c=a[f++],S=h+a[f++],k=d+a[f++],n){if(qa(h,d,S,d,t,r,i)||qa(S,d,S,k,t,r,i)||qa(S,k,h,k,t,r,i)||qa(h,k,h,d,t,r,i))return!0}else u=(u+=Ga(S,d,S,k,r,i))+Ga(h,k,h,d,r,i);break;case Ka.Z:if(n){if(qa(l,c,h,d,t,r,i))return!0}else u+=Ga(l,c,h,d,r,i);l=h,c=d}}return n||(e=c,o=d,Math.abs(e-o)<Ya)||(u+=Ga(l,c,h,d,r,i)||0),0!==u}var ns,rs=D({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oa),is={style:D({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},aa.style)},os=ai.concat(["invisible","culling","z","z2","zlevel","parent"]),as=(n(ss,ns=ar),ss.prototype.update=function(){var e=this,t=(ns.prototype.update.call(this),this.style);if(t.decal){var n,r=this._decalEl=this._decalEl||new ss,i=(r.buildPath===ss.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0,r.style);for(n in t)i[n]!==t[n]&&(i[n]=t[n]);i.fill=t.fill?t.decal:null,i.decal=null,i.shadowColor=null,t.strokeFirst&&(i.stroke=null);for(var o=0;o<os.length;++o)r[os[o]]=this[os[o]];r.__dirty|=nn}else this._decalEl&&(this._decalEl=null)},ss.prototype.getDecalElement=function(){return this._decalEl},ss.prototype._init=function(e){var t=z(e),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var r=0;r<t.length;r++){var i=t[r],o=e[i];"style"===i?this.style?M(this.style,o):this.useStyle(o):"shape"===i?M(this.shape,o):ns.prototype.attrKV.call(this,i,o)}this.style||this.useStyle({})},ss.prototype.getDefaultStyle=function(){return null},ss.prototype.getDefaultShape=function(){return{}},ss.prototype.canBeInsideText=function(){return this.hasFill()},ss.prototype.getInsideTextFill=function(){var e,t=this.style.fill;if("none"!==t){if(H(t))return.5<(e=ur(t,0))?Yr:.2<e?"#eee":Jr;if(t)return Jr}return Yr},ss.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(H(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())==ur(e,0)<.4)return t}},ss.prototype.buildPath=function(e,t,n){},ss.prototype.pathUpdated=function(){this.__dirty&=~rn},ss.prototype.getUpdatedPathProxy=function(e){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},ss.prototype.createPathProxy=function(){this.path=new Ua(!1)},ss.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(0<e.lineWidth))},ss.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},ss.prototype.getBoundingRect=function(){var e,t,n=this._rect,r=this.style,i=!n;return i&&(e=!1,this.path||(e=!0,this.createPathProxy()),t=this.path,(e||this.__dirty&rn)&&(t.beginPath(),this.buildPath(t,this.shape,!1),this.pathUpdated()),n=t.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(e=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||i)&&(e.copy(n),t=r.strokeNoScale?this.getLineScale():1,i=r.lineWidth,this.hasFill()||(r=this.strokeContainThreshold,i=Math.max(i,null==r?4:r)),1e-10<t)&&(e.width+=i/t,e.height+=i/t,e.x-=i/t/2,e.y-=i/t/2),e):n},ss.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){if(n=this.path,this.hasStroke()&&(r=i.lineWidth,i=i.strokeNoScale?this.getLineScale():1,1e-10<i&&(this.hasFill()||(r=Math.max(r,this.strokeContainThreshold)),ts(n,r/i,!0,e,t))))return!0;if(this.hasFill())return ts(n,0,!1,e,t)}return!1},ss.prototype.dirtyShape=function(){this.__dirty|=rn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},ss.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},ss.prototype.animateShape=function(e){return this.animate("shape",e)},ss.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},ss.prototype.attrKV=function(e,t){"shape"===e?this.setShape(t):ns.prototype.attrKV.call(this,e,t)},ss.prototype.setShape=function(e,t){var n=(n=this.shape)||(this.shape={});return"string"==typeof e?n[e]=t:M(n,e),this.dirtyShape(),this},ss.prototype.shapeChanged=function(){return!!(this.__dirty&rn)},ss.prototype.createStyle=function(e){return _e(rs,e)},ss.prototype._innerSaveToNormal=function(e){ns.prototype._innerSaveToNormal.call(this,e);var t=this._normalState;e.shape&&!t.shape&&(t.shape=M({},this.shape))},ss.prototype._applyStateObj=function(e,t,n,r,i,o){ns.prototype._applyStateObj.call(this,e,t,n,r,i,o);var a,u=!(t&&r);if(t&&t.shape?i?r?a=t.shape:(a=M({},n.shape),M(a,t.shape)):(a=M({},(r?this:n).shape),M(a,t.shape)):u&&(a=n.shape),a)if(i){this.shape=M({},this.shape);for(var l={},c=z(a),h=0;h<c.length;h++){var d=c[h];"object"==s(a[d])?this.shape[d]=a[d]:l[d]=a[d]}this._transitionState(e,{shape:l},o)}else this.shape=a,this.dirtyShape()},ss.prototype._mergeStates=function(e){for(var t,n=ns.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var i=e[r];i.shape&&this._mergeStyle(t=t||{},i.shape)}return t&&(n.shape=t),n},ss.prototype.getAnimationStyleProps=function(){return is},ss.prototype.isZeroArea=function(){return!1},ss.extend=function(e){n(o,t=ss),o.prototype.getDefaultStyle=function(){return C(e.style)},o.prototype.getDefaultShape=function(){return C(e.shape)};var t,r,i=o;function o(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}for(r in e)"function"==typeof e[r]&&(i.prototype[r]=e[r]);return i},ss.initDefaultProps=((il=ss.prototype).type="path",il.strokeContainThreshold=5,il.segmentIgnoreThreshold=0,il.subPixelOptimize=!1,il.autoBatch=!1,void(il.__dirty=2|nn|rn)),ss);function ss(e){return ns.call(this,e)||this}var us,ls=D({strokeFirst:!0,font:l,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},rs),cs=(n(hs,us=ar),hs.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&0<e.lineWidth},hs.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},hs.prototype.createStyle=function(e){return _e(ls,e)},hs.prototype.setBoundingRect=function(e){this._rect=e},hs.prototype.getBoundingRect=function(){var e,t=this.style;return this._rect||(null!=(e=t.text)?e+="":e="",(e=ci(e,t.font,t.textAlign,t.textBaseline)).x+=t.x||0,e.y+=t.y||0,this.hasStroke()&&(t=t.lineWidth,e.x-=t/2,e.y-=t/2,e.width+=t,e.height+=t),this._rect=e),this._rect},hs.initDefaultProps=void(hs.prototype.dirtyRectTolerance=10),hs);function hs(){return null!==us&&us.apply(this,arguments)||this}cs.prototype.type="tspan";var ds=D({x:0,y:0},oa),fs={style:D({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},aa.style)};n(ys,ps=ar),ys.prototype.createStyle=function(e){return _e(ds,e)},ys.prototype._getSize=function(e){var t,n=this.style,r=n[e];return null!=r?r:(r=(r=n.image)&&"string"!=typeof r&&r.width&&r.height?n.image:this.__image)?null==(t=n[n="width"===e?"height":"width"])?r[e]:r[e]/r[n]*t:0},ys.prototype.getWidth=function(){return this._getSize("width")},ys.prototype.getHeight=function(){return this._getSize("height")},ys.prototype.getAnimationStyleProps=function(){return fs},ys.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Lt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect};var ps,gs=ys;function ys(){return null!==ps&&ps.apply(this,arguments)||this}gs.prototype.type="image";var vs=Math.round;function ms(e,t,n){var r,i,o;if(t)return r=t.x1,i=t.x2,o=t.y1,t=t.y2,e.x1=r,e.x2=i,e.y1=o,e.y2=t,(n=n&&n.lineWidth)&&(vs(2*r)===vs(2*i)&&(e.x1=e.x2=_s(r,n,!0)),vs(2*o)===vs(2*t))&&(e.y1=e.y2=_s(o,n,!0)),e}function _s(e,t,n){var r;return t?((r=vs(2*e))+vs(t))%2==0?r/2:(r+(n?1:-1))/2:e}var xs,bs=function(){this.x=0,this.y=0,this.width=0,this.height=0},ws={},Ss=(n(ks,xs=as),ks.prototype.getDefaultShape=function(){return new bs},ks.prototype.buildPath=function(e,t){var n,r,i,o,a,s,u,l,c,h,d,f,p,g;this.subPixelOptimize?(n=(a=function(e,t,n){var r,i,o;if(t)return r=t.x,i=t.y,o=t.width,t=t.height,e.x=r,e.y=i,e.width=o,e.height=t,(n=n&&n.lineWidth)&&(e.x=_s(r,n,!0),e.y=_s(i,n,!0),e.width=Math.max(_s(r+o,n,!1)-e.x,0===o?0:1),e.height=Math.max(_s(i+t,n,!1)-e.y,0===t?0:1)),e}(ws,t,this.style)).x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a):(n=t.x,r=t.y,i=t.width,o=t.height),t.r?(a=e,d=(t=t).x,f=t.y,p=t.width,g=t.height,t=t.r,p<0&&(d+=p,p=-p),g<0&&(f+=g,g=-g),"number"==typeof t?s=u=l=c=t:t instanceof Array?1===t.length?s=u=l=c=t[0]:2===t.length?(s=l=t[0],u=c=t[1]):3===t.length?(s=t[0],u=c=t[1],l=t[2]):(s=t[0],u=t[1],l=t[2],c=t[3]):s=u=l=c=0,p<s+u&&(s*=p/(h=s+u),u*=p/h),p<l+c&&(l*=p/(h=l+c),c*=p/h),g<u+l&&(u*=g/(h=u+l),l*=g/h),g<s+c&&(s*=g/(h=s+c),c*=g/h),a.moveTo(d+s,f),a.lineTo(d+p-u,f),0!==u&&a.arc(d+p-u,f+u,u,-Math.PI/2,0),a.lineTo(d+p,f+g-l),0!==l&&a.arc(d+p-l,f+g-l,l,0,Math.PI/2),a.lineTo(d+c,f+g),0!==c&&a.arc(d+c,f+g-c,c,Math.PI/2,Math.PI),a.lineTo(d,f+s),0!==s&&a.arc(d+s,f+s,s,Math.PI,1.5*Math.PI)):e.rect(n,r,i,o)},ks.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},ks);function ks(e){return xs.call(this,e)||this}Ss.prototype.type="rect";var As,Is={fill:"#000"},Cs={style:D({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},aa.style)},Ts=(n(Ms,As=ar),Ms.prototype.childrenRef=function(){return this._children},Ms.prototype.update=function(){As.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var t=this._children[e];t.zlevel=this.zlevel,t.z=this.z,t.z2=this.z2,t.culling=this.culling,t.cursor=this.cursor,t.invisible=this.invisible}},Ms.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):As.prototype.updateTransform.call(this)},Ms.prototype.getLocalTransform=function(e){var t=this.innerTransformable;return t?t.getLocalTransform(e):As.prototype.getLocalTransform.call(this,e)},Ms.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),As.prototype.getComputedTransform.call(this)},Ms.prototype._updateSubTexts=function(){var e;this._childCursor=0,Es(e=this.style),N(e.rich,Es),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Ms.prototype.addSelfToZr=function(e){As.prototype.addSelfToZr.call(this,e);for(var t=0;t<this._children.length;t++)this._children[t].__zr=e},Ms.prototype.removeSelfFromZr=function(e){As.prototype.removeSelfFromZr.call(this,e);for(var t=0;t<this._children.length;t++)this._children[t].__zr=null},Ms.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Lt(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect();o=o.getLocalTransform(n);o?(e.copy(a),e.applyTransform(o),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a)}this._rect=r||e}return this._rect},Ms.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Is},Ms.prototype.setTextContent=function(e){},Ms.prototype._mergeStyle=function(e,t){var n,r;return t&&(n=t.rich,r=e.rich||n&&{},M(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r)),e},Ms.prototype._mergeRich=function(e,t){for(var n=z(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},M(e[i],t[i])}},Ms.prototype.getAnimationStyleProps=function(){return Cs},Ms.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),(this._children[this._childCursor++]=t).__zr=this.__zr,t.parent=this,t},Ms.prototype._updatePlainTexts=function(){for(var e,t=this.style,n=t.font||l,r=t.padding,i=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,o=t.font,a="truncate"===r,s=fi(o),u=re(t.lineHeight,s),l=!!t.backgroundColor,c="truncate"===t.lineOverflow,h=t.width,d=(r=(n=null==h||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?na(e,t.font,h,"breakAll"===r,0).lines:[]).length*u,re(t.height,r));if(d<r&&c&&(c=Math.floor(d/u),n=n.slice(0,c)),e&&a&&null!=h)for(var f=Ko(h,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<n.length;p++)n[p]=Xo(n[p],f);c=d;var g=0;for(p=0;p<n.length;p++)g=Math.max(ui(n[p],o),g);return null==h&&(h=g),e=g,i&&(c+=i[0]+i[2],e+=i[1]+i[3],h+=i[1]+i[3]),{lines:n,height:d,outerWidth:e=l?h:e,outerHeight:c,lineHeight:u,calculatedLineHeight:s,contentWidth:g,contentHeight:r,width:h}}(Fs(t),t),o=js(t),a=!!t.backgroundColor,s=i.outerHeight,u=i.outerWidth,c=i.contentWidth,h=i.lines,d=i.lineHeight,f=this._defaultStyle,p=t.x||0,g=t.y||0,y=t.align||f.align||"left",v=t.verticalAlign||f.verticalAlign||"top",m=p,_=di(g,i.contentHeight,v),x=((o||r)&&(e=hi(p,u,y),g=di(g,s,v),o)&&this._renderBackground(t,t,e,g,u,s),_+=d/2,r&&(m=Bs(p,y,r),"top"===v?_+=r[0]:"bottom"===v&&(_-=r[2])),0),b=(o=!1,Ns(("fill"in t?t:(o=!0,f)).fill)),w=(Rs("stroke"in t?t.stroke:a||f.autoStroke&&!o?null:(x=2,f.stroke))),S=0<t.textShadowBlur,k=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),A=i.calculatedLineHeight,I=0;I<h.length;I++){var C=this._getOrCreateChild(cs),T=C.createStyle();C.useStyle(T),T.text=h[I],T.x=m,T.y=_,y&&(T.textAlign=y),T.textBaseline="middle",T.opacity=t.opacity,T.strokeFirst=!0,S&&(T.shadowBlur=t.textShadowBlur||0,T.shadowColor=t.textShadowColor||"transparent",T.shadowOffsetX=t.textShadowOffsetX||0,T.shadowOffsetY=t.textShadowOffsetY||0),T.stroke=w,T.fill=b,w&&(T.lineWidth=t.lineWidth||x,T.lineDash=t.lineDash,T.lineDashOffset=t.lineDashOffset||0),T.font=n,Ls(T,t),_+=d,k&&C.setBoundingRect(new Lt(hi(T.x,t.width,T.textAlign),di(T.y,A,T.textBaseline),c,A))}},Ms.prototype._updateRichTexts=function(){for(var e=this.style,t=Qo(Fs(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,o=e.padding,a=e.x||0,s=e.y||0,u=this._defaultStyle,l=e.align||u.align,c=(u=e.verticalAlign||u.verticalAlign,a=hi(a,r,l),l=di(s,i,u),a),h=l,d=(o&&(c+=o[3],h+=o[0]),c+n),f=(js(e)&&this._renderBackground(e,e,a,l,r,i),!!e.backgroundColor),p=0;p<t.lines.length;p++){for(var g=t.lines[p],y=g.tokens,v=y.length,m=g.lineHeight,_=g.width,x=0,b=c,w=d,S=v-1,k=void 0;x<v&&(!(k=y[x]).align||"left"===k.align);)this._placeToken(k,e,m,h,b,"left",f),_-=k.width,b+=k.width,x++;for(;0<=S&&"right"===(k=y[S]).align;)this._placeToken(k,e,m,h,w,"right",f),_-=k.width,w-=k.width,S--;for(b+=(n-(b-c)-(d-w)-_)/2;x<=S;)k=y[x],this._placeToken(k,e,m,h,b+k.width/2,"center",f),b+=k.width,x++;h+=m}},Ms.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{},u=(s.text=e.text,e.verticalAlign),c=r+n/2;"top"===u?c=r+e.height/2:"bottom"===u&&(c=r+n-e.height/2),!e.isLineHolder&&js(s)&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,c-e.height/2,e.width,e.height);u=!!s.backgroundColor,r=e.textPadding,r&&(i=Bs(i,o,r),c-=e.height/2-r[0]-e.innerHeight/2),n=this._getOrCreateChild(cs),r=n.createStyle();var h=(n.useStyle(r),this._defaultStyle),d=!1,f=0,p=Ns(("fill"in s?s:"fill"in t?t:(d=!0,h)).fill);u=Rs("stroke"in s?s.stroke:"stroke"in t?t.stroke:u||a||h.autoStroke&&!d?null:(f=2,h.stroke)),a=0<s.textShadowBlur||0<t.textShadowBlur,r.text=e.text,r.x=i,r.y=c,a&&(r.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,r.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",r.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,r.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),r.textAlign=o,r.textBaseline="middle",r.font=e.font||l,r.opacity=ie(s.opacity,t.opacity,1),Ls(r,s),u&&(r.lineWidth=ie(s.lineWidth,t.lineWidth,f),r.lineDash=re(s.lineDash,t.lineDash),r.lineDashOffset=t.lineDashOffset||0,r.stroke=u),p&&(r.fill=p),d=e.contentWidth,h=e.contentHeight;n.setBoundingRect(new Lt(hi(r.x,d,r.textAlign),di(r.y,h,r.textBaseline),d,h))},Ms.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,u,l,c=e.backgroundColor,h=e.borderWidth,d=e.borderColor,f=c&&c.image,p=c&&!f,g=e.borderRadius,y=this;(p||e.lineHeight||h&&d)&&((a=this._getOrCreateChild(Ss)).useStyle(a.createStyle()),a.style.fill=null,(u=a.shape).x=n,u.y=r,u.width=i,u.height=o,u.r=g,a.dirtyShape()),p?((l=a.style).fill=c||null,l.fillOpacity=re(e.fillOpacity,1)):f&&((s=this._getOrCreateChild(gs)).onload=function(){y.dirtyStyle()},(u=s.style).image=c.image,u.x=n,u.y=r,u.width=i,u.height=o),h&&d&&((l=a.style).lineWidth=h,l.stroke=d,l.strokeOpacity=re(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2),g=(a||s).style;g.shadowBlur=e.shadowBlur||0,g.shadowColor=e.shadowColor||"transparent",g.shadowOffsetX=e.shadowOffsetX||0,g.shadowOffsetY=e.shadowOffsetY||0,g.opacity=ie(e.opacity,t.opacity,1)},Ms.makeFont=function(e){var t,n="";return(n=null!=(t=e).fontSize||t.fontFamily||t.fontWeight?[e.fontStyle,e.fontWeight,"string"!=typeof(t=e.fontSize)||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t,e.fontFamily||"sans-serif"].join(" "):n)&&ue(n)||e.textFont||e.font},Ms);function Ms(e){var t=As.call(this)||this;return t.type="text",t._children=[],t._defaultStyle=Is,t.attr(e),t}var Ds={left:!0,right:1,center:1},Os={top:1,bottom:1,middle:1},Ps=["fontStyle","fontWeight","fontSize","fontFamily"];function Ls(e,t){for(var n=0;n<Ps.length;n++){var r=Ps[n],i=t[r];null!=i&&(e[r]=i)}}function Es(e){var t;e&&(e.font=Ts.makeFont(e),t=e.align,e.align=null==(t="middle"===t?"center":t)||Ds[t]?t:"left",t=e.verticalAlign,e.verticalAlign=null==(t="center"===t?"middle":t)||Os[t]?t:"top",e.padding)&&(e.padding=ae(e.padding))}function Rs(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function Ns(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function Bs(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function Fs(e){return e=e.text,null!=e&&(e+=""),e}function js(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var zs=xo(),Us=1,Vs={},qs=xo(),$s=xo(),Hs=0,Ws=1,Gs=2,Ks=["emphasis","blur","select"],Xs=["normal","emphasis","blur","select"],Ys="highlight",Js="downplay",Zs="select",Qs="unselect",eu="toggleSelect";function tu(e){return null!=e&&"none"!==e}function nu(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function ru(e){nu(e,"emphasis",Gs)}function iu(e){e.hoverState===Gs&&nu(e,"normal",Hs)}function ou(e){nu(e,"blur",Ws)}function au(e){e.hoverState===Ws&&nu(e,"normal",Hs)}function su(e){e.selected=!0}function uu(e){e.selected=!1}function lu(e,t,n){t(e,n)}function cu(e,t,n){lu(e,t,n),e.isGroup&&e.traverse((function(e){lu(e,t,n)}))}function hu(e,t){switch(t){case"emphasis":e.hoverState=Gs;break;case"normal":e.hoverState=Hs;break;case"blur":e.hoverState=Ws;break;case"select":e.selected=!0}}function du(e,t,n){var r=0<=P(e.currentStates,t),i=e.style.opacity;e=r?null:function(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],u=i[s];o[s]=null==u?r&&r[s]:u}for(a=0;a<e.animators.length;a++){var l=e.animators[a];l.__fromStateTransition&&l.__fromStateTransition.indexOf(n)<0&&"style"===l.targetName&&l.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),t=(n=n||{}).style||{};return null==t.opacity&&(n=M({},n),t=M({opacity:r?i:.1*e.opacity},t),n.style=t),n}function fu(e,t){var n,r,i,o,a,s=this.states[e];if(this.style){if("emphasis"===e)return n=this,r=s,t=(t=t)&&0<=P(t,"select"),a=!1,n instanceof as&&(i=qs(n),o=t&&i.selectFill||i.normalFill,t=t&&i.selectStroke||i.normalStroke,tu(o)||tu(t))&&("inherit"===(i=(r=r||{}).style||{}).fill?(a=!0,r=M({},r),(i=M({},i)).fill=o):!tu(i.fill)&&tu(o)?(a=!0,r=M({},r),(i=M({},i)).fill=cr(o)):!tu(i.stroke)&&tu(t)&&(a||(r=M({},r),i=M({},i)),i.stroke=cr(t)),r.style=i),r&&null==r.z2&&(a||(r=M({},r)),o=n.z2EmphasisLift,r.z2=n.z2+(null!=o?o:10)),r;if("blur"===e)return du(this,e,s);if("select"===e)return t=this,(i=s)&&null==i.z2&&(i=M({},i),a=t.z2SelectLift,i.z2=t.z2+(null!=a?a:9)),i}return s}function pu(e){e.stateProxy=fu;var t=e.getTextContent();e=e.getTextGuideLine();t&&(t.stateProxy=fu),e&&(e.stateProxy=fu)}function gu(e,t){wu(e,t)||e.__highByOuter||cu(e,ru)}function yu(e,t){wu(e,t)||e.__highByOuter||cu(e,iu)}function vu(e,t){e.__highByOuter|=1<<(t||0),cu(e,ru)}function mu(e,t){(e.__highByOuter&=~(1<<(t||0)))||cu(e,iu)}function _u(e){cu(e,au)}function xu(e){cu(e,su)}function bu(e){cu(e,uu)}function wu(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Su(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var o=$s(i),a=(t="series"===t,t?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i));t||r.push(a),o.isBlured&&(a.group.traverse((function(e){au(e)})),t)&&n.push(i),o.isBlured=!1})),N(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function ku(e,t,n,r){var i,o,a,s=r.getModel();function u(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&_u(r)}}n=n||"coordinateSystem",null!=e&&t&&"none"!==t&&(i=s.getSeriesByIndex(e),(o=i.coordinateSystem)&&o.master&&(o=o.master),a=[],s.eachSeries((function(e){var s=i===e,l=e.coordinateSystem;l=(l=l&&l.master?l.master:l)&&o?l===o:s;if(!("series"===n&&!s||"coordinateSystem"===n&&!l||"series"===t&&s)){if(r.getViewOfSeriesModel(e).group.traverse((function(e){e.__highByOuter&&s&&"self"===t||ou(e)})),R(t))u(e.getData(),t);else if(K(t))for(var c=z(t),h=0;h<c.length;h++)u(e.getData(c[h]),t[c[h]]);a.push(e),$s(e).isBlured=!0}})),s.eachComponent((function(e,t){"series"!==e&&(e=r.getViewOfComponentModel(t))&&e.toggleBlurSeries&&e.toggleBlurSeries(a,!0,s)})))}function Au(e,t,n){var r;null!=e&&null!=t&&(e=n.getModel().getComponent(e,t))&&($s(e).isBlured=!0,r=n.getViewOfComponentModel(e))&&r.focusBlurEnabled&&r.group.traverse((function(e){ou(e)}))}function Iu(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;if(e=r.getModel().getComponent(e,t),!e)return i;if(t=r.getViewOfComponentModel(e),!t||!t.findHighDownDispatchers)return i;for(var o,a=t.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===zs(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function Cu(e){N(e.getAllData(),(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){(e.isSelected(n,r)?xu:bu)(t)}))}))}function Tu(e,t,n){Lu(e,!0),cu(e,pu),e=zs(e),null!=t?(e.focus=t,e.blurScope=n):e.focus&&(e.focus=null)}function Mu(e,t,n,r){r?Lu(e,!1):Tu(e,t,n)}var Du=["emphasis","blur","select"],Ou={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Pu(e,t,n,r){n=n||"itemStyle";for(var i=0;i<Du.length;i++){var o=Du[i],a=t.getModel([o,n]);e.ensureState(o).style=r?r(a):a[Ou[n]]()}}function Lu(e,t){t=!1===t;var n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),t&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function Eu(e){return!(!e||!e.__highDownDispatcher)}function Ru(e){return e=e.type,e===Zs||e===Qs||e===eu}function Nu(e){return e=e.type,e===Ys||e===Js}var Bu=Ua.CMD,Fu=[[],[],[]],ju=Math.sqrt,zu=Math.atan2,Uu=Math.sqrt,Vu=Math.sin,qu=Math.cos,$u=Math.PI;function Hu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Wu(e,t){return(e[0]*t[0]+e[1]*t[1])/(Hu(e)*Hu(t))}function Gu(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Wu(e,t))}function Ku(e,t,n,r,i,o,a,s,u,l,c){u*=$u/180;var h=qu(u)*(e-n)/2+Vu(u)*(t-r)/2,d=-1*Vu(u)*(e-n)/2+qu(u)*(t-r)/2,f=h*h/(a*a)+d*d/(s*s);1<f&&(a*=Uu(f),s*=Uu(f)),f=(i===o?-1:1)*Uu((a*a*(s*s)-a*a*(d*d)-s*s*(h*h))/(a*a*(d*d)+s*s*(h*h)))||0,i=f*a*d/s,f=f*-s*h/a,e=(e+n)/2+qu(u)*i-Vu(u)*f,n=(t+r)/2+Vu(u)*i+qu(u)*f,t=Gu([1,0],[(h-i)/a,(d-f)/s]),r=[(h-i)/a,(d-f)/s],h=[(-1*h-i)/a,(-1*d-f)/s],i=Gu(r,h);Wu(r,h)<=-1&&(i=$u),(i=1<=Wu(r,h)?0:i)<0&&(d=Math.round(i/$u*1e6)/1e6,i=2*$u+d%2*$u),c.addData(l,e,n,a,s,t,i,u,o)}var Xu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Yu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;n(Qu,Ju=as),Qu.prototype.applyTransform=function(e){};var Ju,Zu=Qu;function Qu(){return null!==Ju&&Ju.apply(this,arguments)||this}function el(e){return null!=e.setData}function tl(e,t){var n=function(e){var t=new Ua;if(e){var n,r=0,i=0,o=r,a=i,s=Ua.CMD,u=e.match(Xu);if(u){for(var l=0;l<u.length;l++){for(var c=u[l],h=c.charAt(0),d=void 0,f=c.match(Yu)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var y=0;y<p;){var v=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,k=r,A=i,I=void 0,C=void 0;switch(h){case"l":r+=f[y++],i+=f[y++],d=s.L,t.addData(d,r,i);break;case"L":r=f[y++],i=f[y++],d=s.L,t.addData(d,r,i);break;case"m":r+=f[y++],i+=f[y++],d=s.M,t.addData(d,r,i),o=r,a=i,h="l";break;case"M":r=f[y++],i=f[y++],d=s.M,t.addData(d,r,i),o=r,a=i,h="L";break;case"h":r+=f[y++],d=s.L,t.addData(d,r,i);break;case"H":r=f[y++],d=s.L,t.addData(d,r,i);break;case"v":i+=f[y++],d=s.L,t.addData(d,r,i);break;case"V":i=f[y++],d=s.L,t.addData(d,r,i);break;case"C":d=s.C,t.addData(d,f[y++],f[y++],f[y++],f[y++],f[y++],f[y++]),r=f[y-2],i=f[y-1];break;case"c":d=s.C,t.addData(d,f[y++]+r,f[y++]+i,f[y++]+r,f[y++]+i,f[y++]+r,f[y++]+i),r+=f[y-2],i+=f[y-1];break;case"S":v=r,m=i,I=t.len(),C=t.data,n===s.C&&(v+=r-C[I-4],m+=i-C[I-3]),d=s.C,k=f[y++],A=f[y++],r=f[y++],i=f[y++],t.addData(d,v,m,k,A,r,i);break;case"s":v=r,m=i,I=t.len(),C=t.data,n===s.C&&(v+=r-C[I-4],m+=i-C[I-3]),d=s.C,k=r+f[y++],A=i+f[y++],r+=f[y++],i+=f[y++],t.addData(d,v,m,k,A,r,i);break;case"Q":k=f[y++],A=f[y++],r=f[y++],i=f[y++],d=s.Q,t.addData(d,k,A,r,i);break;case"q":k=f[y++]+r,A=f[y++]+i,r+=f[y++],i+=f[y++],d=s.Q,t.addData(d,k,A,r,i);break;case"T":v=r,m=i,I=t.len(),C=t.data,n===s.Q&&(v+=r-C[I-4],m+=i-C[I-3]),r=f[y++],i=f[y++],d=s.Q,t.addData(d,v,m,r,i);break;case"t":v=r,m=i,I=t.len(),C=t.data,n===s.Q&&(v+=r-C[I-4],m+=i-C[I-3]),r+=f[y++],i+=f[y++],d=s.Q,t.addData(d,v,m,r,i);break;case"A":_=f[y++],x=f[y++],b=f[y++],w=f[y++],S=f[y++],Ku(k=r,A=i,r=f[y++],i=f[y++],w,S,_,x,b,d=s.A,t);break;case"a":_=f[y++],x=f[y++],b=f[y++],w=f[y++],S=f[y++],Ku(k=r,A=i,r+=f[y++],i+=f[y++],w,S,_,x,b,d=s.A,t)}}"z"!==h&&"Z"!==h||(d=s.Z,t.addData(d),r=o,i=a),n=d}t.toStatic()}}return t}(e);e=M({},t);return e.buildPath=function(e){var t;el(e)?(e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)):n.rebuildPath(t=e,1)},e.applyTransform=function(e){var t=n,r=e;if(r){for(var i,o,a,s,u=t.data,l=t.len(),c=Bu.M,h=Bu.C,d=Bu.L,f=Bu.R,p=Bu.A,g=Bu.Q,y=0,v=0;y<l;){switch(i=u[y++],v=y,o=0,i){case c:case d:o=1;break;case h:o=3;break;case g:o=2;break;case p:var m=r[4],_=r[5],x=ju(r[0]*r[0]+r[1]*r[1]),b=ju(r[2]*r[2]+r[3]*r[3]),w=zu(-r[1]/b,r[0]/x);u[y]*=x,u[y++]+=m,u[y]*=b,u[y++]+=_,u[y++]*=x,u[y++]*=b,u[y++]+=w,u[y++]+=w,v=y+=2;break;case f:s[0]=u[y++],s[1]=u[y++],Fe(s,s,r),u[v++]=s[0],u[v++]=s[1],s[0]+=u[y++],s[1]+=u[y++],Fe(s,s,r),u[v++]=s[0],u[v++]=s[1]}for(a=0;a<o;a++){var S=Fu[a];S[0]=u[y++],S[1]=u[y++],Fe(S,S,r),u[v++]=S[0],u[v++]=S[1]}}t.increaseVersion()}this.dirtyShape()},e}var nl,rl=function(){this.cx=0,this.cy=0,this.r=0},il=(n(ol,nl=as),ol.prototype.getDefaultShape=function(){return new rl},ol.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},ol);function ol(e){return nl.call(this,e)||this}il.prototype.type="circle";var al,sl=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},ul=(n(ll,al=as),ll.prototype.getDefaultShape=function(){return new sl},ll.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=t.rx,o=(t=t.ry,.5522848*i),a=.5522848*t;e.moveTo(n-i,r),e.bezierCurveTo(n-i,r-a,n-o,r-t,n,r-t),e.bezierCurveTo(n+o,r-t,n+i,r-a,n+i,r),e.bezierCurveTo(n+i,r+a,n+o,r+t,n,r+t),e.bezierCurveTo(n-o,r+t,n-i,r+a,n-i,r),e.closePath()},ll);function ll(e){return al.call(this,e)||this}ul.prototype.type="ellipse";var cl=Math.PI,hl=2*cl,dl=Math.sin,fl=Math.cos,pl=Math.acos,gl=Math.atan2,yl=Math.abs,vl=Math.sqrt,ml=Math.max,_l=Math.min,xl=1e-4;function bl(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a=(a?o:-o)/vl(s*s+u*u),u=a*u,a=-a*s,s=e+u,e=t+a,t=n+u,n=r+a,r=(s+t)/2,(e+n)/2),c=t-s,h=n-e,d=c*c+h*h,f=(o=i-o,s=s*n-t*e,n=(h<0?-1:1)*vl(ml(0,o*o*d-s*s)),t=(s*h-c*n)/d,e=(-s*c-h*n)/d,(s*h+c*n)/d);s=(-s*c+h*n)/d,c=t-r,h=e-l,n=f-r,d=s-l;return n*n+d*d<c*c+h*h&&(t=f,e=s),{cx:t,cy:e,x0:-u,y0:-a,x1:t*(i/o-1),y1:e*(i/o-1)}}function wl(e,t){var n,r,i,o,a,s,u,l,c,h,d,f,p,g,y,v,m,_,x,b,w,S,k,A,I,C,T,M,D,O,P=ml(t.r,0),L=ml(t.r0||0,0),E=0<P;(E||0<L)&&(E||(P=L,L=0),P<L&&(E=P,P=L,L=E),E=t.startAngle,n=t.endAngle,isNaN(E)||isNaN(n)||(r=t.cx,i=t.cy,o=!!t.clockwise,v=yl(n-E),xl<(a=hl<v&&v%hl)&&(v=a),xl<P?hl-xl<v?(e.moveTo(r+P*fl(E),i+P*dl(E)),e.arc(r,i,P,E,n,!o),xl<L&&(e.moveTo(r+L*fl(n),i+L*dl(n)),e.arc(r,i,L,n,E,o))):(S=w=b=x=_=m=h=c=C=I=A=k=l=u=s=a=void 0,d=P*fl(E),f=P*dl(E),p=L*fl(n),g=L*dl(n),(y=xl<v)&&((t=t.cornerRadius)&&(a=(t=function(e){if(q(e)){var t=e.length;if(!t)return e;t=1===t?[e[0],e[0],0,0]:2===t?[e[0],e[0],e[1],e[1]]:3===t?e.concat(e[2]):e}else t=[e,e,e,e];return t}(t))[0],s=t[1],u=t[2],l=t[3]),t=yl(P-L)/2,k=_l(t,u),A=_l(t,l),I=_l(t,a),C=_l(t,s),m=c=ml(k,A),_=h=ml(I,C),xl<c||xl<h)&&(x=P*fl(n),b=P*dl(n),w=L*fl(E),S=L*dl(E),v<cl)&&(t=function(e,t,n,r,i,o,a,s){var u=(s-=o)*(n-=e)-(a-=i)*(r-=t);if(!(u*u<xl))return[e+(u=(a*(t-o)-s*(e-i))/u)*n,t+u*r]}(d,f,w,S,x,b,p,g))&&(k=d-t[0],A=f-t[1],I=x-t[0],C=b-t[1],v=1/dl(pl((k*I+A*C)/(vl(k*k+A*A)*vl(I*I+C*C)))/2),k=vl(t[0]*t[0]+t[1]*t[1]),m=_l(c,(P-k)/(1+v)),_=_l(h,(L-k)/(v-1))),y?xl<m?(T=_l(u,m),M=_l(l,m),D=bl(w,S,d,f,P,T,o),O=bl(x,b,p,g,P,M,o),e.moveTo(r+D.cx+D.x0,i+D.cy+D.y0),m<c&&T===M?e.arc(r+D.cx,i+D.cy,m,gl(D.y0,D.x0),gl(O.y0,O.x0),!o):(0<T&&e.arc(r+D.cx,i+D.cy,T,gl(D.y0,D.x0),gl(D.y1,D.x1),!o),e.arc(r,i,P,gl(D.cy+D.y1,D.cx+D.x1),gl(O.cy+O.y1,O.cx+O.x1),!o),0<M&&e.arc(r+O.cx,i+O.cy,M,gl(O.y1,O.x1),gl(O.y0,O.x0),!o))):(e.moveTo(r+d,i+f),e.arc(r,i,P,E,n,!o)):e.moveTo(r+d,i+f),xl<L&&y?xl<_?(T=_l(a,_),D=bl(p,g,x,b,L,-(M=_l(s,_)),o),O=bl(d,f,w,S,L,-T,o),e.lineTo(r+D.cx+D.x0,i+D.cy+D.y0),_<h&&T===M?e.arc(r+D.cx,i+D.cy,_,gl(D.y0,D.x0),gl(O.y0,O.x0),!o):(0<M&&e.arc(r+D.cx,i+D.cy,M,gl(D.y0,D.x0),gl(D.y1,D.x1),!o),e.arc(r,i,L,gl(D.cy+D.y1,D.cx+D.x1),gl(O.cy+O.y1,O.cx+O.x1),o),0<T&&e.arc(r+O.cx,i+O.cy,T,gl(O.y1,O.x1),gl(O.y0,O.x0),!o))):(e.lineTo(r+p,i+g),e.arc(r,i,L,n,E,o)):e.lineTo(r+p,i+g)):e.moveTo(r,i),e.closePath()))}var Sl,kl=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Al=(n(Il,Sl=as),Il.prototype.getDefaultShape=function(){return new kl},Il.prototype.buildPath=function(e,t){wl(e,t)},Il.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Il);function Il(e){return Sl.call(this,e)||this}Al.prototype.type="sector";var Cl,Tl=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Ml=(n(Dl,Cl=as),Dl.prototype.getDefaultShape=function(){return new Tl},Dl.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},Dl);function Dl(e){return Cl.call(this,e)||this}function Ol(e,t,n){var r=t.smooth,i=t.points;if(i&&2<=i.length){if(r)for(var o=function(e,t,n,r){var i,o,a=[],s=[],u=[],l=[];if(r){for(var c=[1/0,1/0],h=[-1/0,-1/0],d=0,f=e.length;d<f;d++)je(c,c,e[d]),ze(h,h,e[d]);je(c,c,r[0]),ze(h,h,r[1])}for(d=0,f=e.length;d<f;d++){var p=e[d];if(n)i=e[d?d-1:f-1],o=e[(d+1)%f];else{if(0===d||d===f-1){a.push(Ie(e[d]));continue}i=e[d-1],o=e[d+1]}Te(s,o,i),Oe(s,s,t);var g=Le(p,i),y=Le(p,o),v=g+y;v=(0!==v&&(g/=v,y/=v),Oe(u,s,-g),Oe(l,s,y),Ce([],p,u)),g=Ce([],p,l);r&&(ze(v,v,c),je(v,v,h),ze(g,g,c),je(g,g,h)),a.push(v),a.push(g)}return n&&a.push(a.shift()),a}(i,r,n,t.smoothConstraint),a=(e.moveTo(i[0][0],i[0][1]),i.length),s=0;s<(n?a:a-1);s++){var u=o[2*s],l=o[2*s+1],c=i[(s+1)%a];e.bezierCurveTo(u[0],u[1],l[0],l[1],c[0],c[1])}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}Ml.prototype.type="ring";var Pl,Ll=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},El=(n(Rl,Pl=as),Rl.prototype.getDefaultShape=function(){return new Ll},Rl.prototype.buildPath=function(e,t){Ol(e,t,!0)},Rl);function Rl(e){return Pl.call(this,e)||this}El.prototype.type="polygon";var Nl,Bl=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Fl=(n(jl,Nl=as),jl.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},jl.prototype.getDefaultShape=function(){return new Bl},jl.prototype.buildPath=function(e,t){Ol(e,t,!1)},jl);function jl(e){return Nl.call(this,e)||this}Fl.prototype.type="polyline";var zl,Ul={},Vl=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},ql=(n($l,zl=as),$l.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},$l.prototype.getDefaultShape=function(){return new Vl},$l.prototype.buildPath=function(e,t){o=(this.subPixelOptimize?(n=(o=ms(Ul,t,this.style)).x1,r=o.y1,i=o.x2,o):(n=t.x1,r=t.y1,i=t.x2,t)).y2;var n,r,i,o;t=t.percent;0!==t&&(e.moveTo(n,r),t<1&&(i=n*(1-t)+i*t,o=r*(1-t)+o*t),e.lineTo(i,o))},$l.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},$l);function $l(e){return zl.call(this,e)||this}ql.prototype.type="line";var Hl=[],Wl=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Gl(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?Sn:wn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Sn:wn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Mn:Tn)(e.x1,e.cpx1,e.x2,t),(n?Mn:Tn)(e.y1,e.cpy1,e.y2,t)]}n(Yl,Kl=as),Yl.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Yl.prototype.getDefaultShape=function(){return new Wl},Yl.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,u=t.cpx2,l=t.cpy2;t=t.percent;0!==t&&(e.moveTo(n,r),null==u||null==l?(t<1&&(On(n,a,i,t,Hl),a=Hl[1],i=Hl[2],On(r,s,o,t,Hl),s=Hl[1],o=Hl[2]),e.quadraticCurveTo(a,s,i,o)):(t<1&&(In(n,a,u,i,t,Hl),a=Hl[1],u=Hl[2],i=Hl[3],In(r,s,l,o,t,Hl),s=Hl[1],l=Hl[2],o=Hl[3]),e.bezierCurveTo(a,s,u,l,i,o)))},Yl.prototype.pointAt=function(e){return Gl(this.shape,e,!1)},Yl.prototype.tangentAt=function(e){return e=Gl(this.shape,e,!0),Pe(e,e)};var Kl,Xl=Yl;function Yl(e){return Kl.call(this,e)||this}Xl.prototype.type="bezier-curve";var Jl,Zl=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Ql=(n(ec,Jl=as),ec.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},ec.prototype.getDefaultShape=function(){return new Zl},ec.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=(t=t.clockwise,Math.cos(o)),u=Math.sin(o);e.moveTo(s*i+n,u*i+r),e.arc(n,r,i,o,a,!t)},ec);function ec(e){return Jl.call(this,e)||this}Ql.prototype.type="arc",n(rc,tc=as),rc.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},rc.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},rc.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},rc.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},rc.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),as.prototype.getBoundingRect.call(this)};var tc,nc=rc;function rc(){var e=null!==tc&&tc.apply(this,arguments)||this;return e.type="compound",e}oc.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})};var ic=oc;function oc(e){this.colorStops=e||[]}n(uc,ac=ic);var ac,sc=uc;function uc(e,t,n,r,i,o){return i=ac.call(this,i)||this,i.x=null==e?0:e,i.y=null==t?0:t,i.x2=null==n?1:n,i.y2=null==r?0:r,i.type="linear",i.global=o||!1,i}n(cc,lc=ic);var lc;ic=cc;function cc(e,t,n,r,i){return r=lc.call(this,r)||this,r.x=null==e?.5:e,r.y=null==t?.5:t,r.r=null==n?.5:n,r.type="radial",r.global=i||!1,r}var hc=[0,0],dc=[0,0],fc=new St,pc=new St,gc=(yc.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,o=e.y,a=i+e.width;e=o+e.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,e),n[3].set(i,e),t)for(var s=0;s<4;s++)n[s].transform(t);for(St.sub(r[0],n[1],n[0]),St.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize(),s=0;s<2;s++)this._origin[s]=r[s].dot(n[0])},yc.prototype.intersect=function(e,t){var n=!0,r=!t;return fc.set(1/0,1/0),pc.set(0,0),!this._intersectCheckOneSide(this,e,fc,pc,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,fc,pc,r,-1)&&(n=!1,r)||r||St.copy(t,n?fc:pc),n},yc.prototype._intersectCheckOneSide=function(e,t,n,r,i,o){for(var a=!0,s=0;s<2;s++){var u=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,hc),this._getProjMinMaxOnAxis(s,t._corners,dc),hc[1]<dc[0]||dc[1]<hc[0]){if(a=!1,i)return a;var l=Math.abs(dc[0]-hc[1]),c=Math.abs(hc[0]-dc[1]);Math.min(l,c)>r.len()&&(l<c?St.scale(r,u,-l*o):St.scale(r,u,c*o))}else n&&(l=Math.abs(dc[0]-hc[1]),c=Math.abs(hc[0]-dc[1]),Math.min(l,c)<n.len())&&(l<c?St.scale(n,u,l*o):St.scale(n,u,-c*o))}return a},yc.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,u=1;u<t.length;u++){var l=t[u].dot(r)+i[e];a=Math.min(l,a),s=Math.max(l,s)}n[0]=a,n[1]=s},yc);function yc(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new St;for(n=0;n<2;n++)this._axes[n]=new St;e&&this.fromBoundingRect(e,t)}var vc,mc=[];n(_c,vc=ar),_c.prototype.traverse=function(e,t){e.call(t,this)},_c.prototype.useStyle=function(){this.style={}},_c.prototype.getCursor=function(){return this._cursor},_c.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},_c.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},_c.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},_c.prototype.addDisplayable=function(e,t){(t?this._temporaryDisplayables:this._displayables).push(e),this.markRedraw()},_c.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},_c.prototype.getDisplayables=function(){return this._displayables},_c.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},_c.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},_c.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++)(t=this._displayables[e]).parent=this,t.update(),t.parent=null;var t;for(e=0;e<this._temporaryDisplayables.length;e++)(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null},_c.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Lt(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(mc)),e.union(r)}this._rect=e}return this._rect},_c.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0;return!1},ar=_c;function _c(){var e=null!==vc&&vc.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}var xc=xo();function bc(e,t,n,r,i,o,a){var s,u,l,c,h,d,f=!1,p=($(i)?(a=o,o=i,i=null):K(i)&&(o=i.cb,a=i.during,f=i.isFrom,u=i.removeOpt,i=i.dataIndex),"leave"===e),g=(p||t.stopAnimation("leave"),d=e,s=i,u=p?u||{}:null,r=(g=r)&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null,g&&g.ecModel&&(l=(l=g.ecModel.getUpdatePayload())&&l.animation),d="update"===d,g&&g.isAnimationEnabled()?(h=c=i=void 0,h=u?(i=re(u.duration,200),c=re(u.easing,"cubicOut"),0):(i=g.getShallow(d?"animationDurationUpdate":"animationDuration"),c=g.getShallow(d?"animationEasingUpdate":"animationEasing"),g.getShallow(d?"animationDelayUpdate":"animationDelay")),$(h=l&&(null!=l.duration&&(i=l.duration),null!=l.easing&&(c=l.easing),null!=l.delay)?l.delay:h)&&(h=h(s,r)),{duration:(i=$(i)?i(s):i)||0,delay:h,easing:c}):null);g&&0<g.duration?(d={duration:g.duration,delay:g.delay||0,easing:g.easing,done:o,force:!!o||!!a,setToFinal:!p,scope:e,during:a},f?t.animateFrom(n,d):t.animateTo(n,d)):(t.stopAnimation(),f||t.attr(n),a&&a(1),o&&o())}function wc(e,t,n,r,i,o){bc("update",e,t,n,r,i,o)}function Sc(e,t,n,r,i,o){bc("enter",e,t,n,r,i,o)}function kc(e){if(!e.__zr)return 1;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return 1}function Ac(e,t,n,r,i,o){kc(e)||bc("leave",e,t,n,r,i,o)}function Ic(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Ac(e,{style:{opacity:0}},t,n,r)}function Cc(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||Ic(e,t,n,r)})):Ic(e,t,n,r)}function Tc(e){xc(e).oldStyle=e.style}var Mc=Math.max,Dc=Math.min,Oc={},Pc=function(e,t){var r,i=tl(e,t);function o(e){return e=r.call(this,e)||this,e.applyTransform=i.applyTransform,e.buildPath=i.buildPath,e}return n(o,r=Zu),o};function Lc(e,t){Oc[e]=t}function Ec(e,t,n,r){return e=new Zu(tl(e,t)),n&&("center"===r&&(n=Nc(n,e.getBoundingRect())),Fc(e,n)),e}function Rc(e,t,n){var r=new gs({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){"center"===n&&(e={width:e.width,height:e.height},r.setStyle(Nc(t,e)))}});return r}function Nc(e,t){t=t.width/t.height;var n=e.height*t;t=n<=e.width?e.height:(n=e.width)/t;return{x:e.x+e.width/2-n/2,y:e.y+e.height/2-t/2,width:n,height:t}}function Bc(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}return(t=new as(t)).createPathProxy(),t.buildPath=function(e){var t;el(e)&&(e.appendPath(n),t=e.getContext())&&e.rebuildPath(t,1)},t}function Fc(e,t){e.applyTransform&&(t=e.getBoundingRect().calculateTransform(t),e.applyTransform(t))}function jc(e,t){ms(e,e,{lineWidth:t})}function zc(e){return!e.isGroup}function Uc(e,t,n){t=M({rectHover:!0},t);var r=t.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),D(r,n),new gs(t)):Ec(e.replace("path://",""),t,n,"center")}function Vc(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=(t=H(t)?{formatter:t}:t,n.mainType),o=(n=n.componentIndex,{componentType:i,name:r,$vars:["name"]}),a=(o[i+"Index"]=n,e.formatterParamsExtra);a&&N(z(a),(function(e){be(o,e)||(o[e]=a[e],o.$vars.push(e))})),e=zs(e.el);e.componentMainType=i,e.componentIndex=n,e.tooltipConfig={name:r,option:D({content:r,encodeHTMLContent:!0,formatterParams:o},t)}}function qc(e,t){var n;(n=e.isGroup?t(e):n)||e.traverse(t)}function $c(e,t){if(e)if(q(e))for(var n=0;n<e.length;n++)qc(e[n],t);else qc(e,t)}Lc("circle",il),Lc("ellipse",ul),Lc("sector",Al),Lc("ring",Ml),Lc("polygon",El),Lc("polyline",Fl),Lc("rect",Ss),Lc("line",ql),Lc("bezierCurve",Xl),Lc("arc",Ql);var Hc={};function Wc(e,t){for(var n=0;n<Ks.length;n++){var r=Ks[n],i=t[r];r=e.ensureState(r);r.style=r.style||{},r.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Gc(e,t,n){for(var r,i=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal,u={normal:r=null==(r=i?i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):r)?$(e.defaultText)?e.defaultText(o,e,n):e.defaultText:r},l=0;l<Ks.length;l++){var c=Ks[l],h=t[c];u[c]=re(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return u}function Kc(e,t,n,r){n=n||Hc;for(var i=e instanceof Ts,o=!1,a=0;a<Xs.length;a++)if((d=t[Xs[a]])&&d.getShallow("show")){o=!0;break}var s=i?e:e.getTextContent();if(o){i||(s||(s=new Ts,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var u=Gc(n,t),l=t.normal,c=!!l.getShallow("show"),h=Yc(l,r&&r.normal,n,!1,!i);for(h.text=u.normal,i||e.setTextConfig(Jc(l,n,!1)),a=0;a<Ks.length;a++){var d,f,p,g=Ks[a];(d=t[g])&&(f=s.ensureState(g),(p=!!re(d.getShallow("show"),c))!=c&&(f.ignore=!p),f.style=Yc(d,r&&r[g],n,!0,!i),f.style.text=u[g],i||(e.ensureState(g).textConfig=Jc(d,n,!0)))}s.silent=!!l.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(nh(s).setLabelText=function(e){e=Gc(n,t,e),Wc(s,e)})}else s&&(s.ignore=!0);e.dirty()}function Xc(e,t){for(var n={normal:e.getModel(t=t||"label")},r=0;r<Ks.length;r++){var i=Ks[r];n[i]=e.getModel([i,t])}return n}function Yc(e,t,n,r,i){var o,a={},s=a,u=e,l=n,c=r,h=i;l=l||Hc;e=u.ecModel;var d,f=e&&e.option.textStyle,p=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Hc).rich;if(n){t=t||{};for(var r=z(n),i=0;i<r.length;i++){var o=r[i];t[o]=1}}e=e.parentModel}return t}(u);if(p)for(var g in d={},p)p.hasOwnProperty(g)&&(o=u.getModel(["rich",g]),th(d[g]={},o,f,l,c,h,!1,!0));return d&&(s.rich=d),(e=u.get("overflow"))&&(s.overflow=e),null!=(e=u.get("minMargin"))&&(s.margin=e),th(s,u,f,l,c,h,!0,!1),t&&M(a,t),a}function Jc(e,t,n){t=t||{};var r={},i=e.getShallow("rotate"),o=re(e.getShallow("distance"),n?null:5),a=e.getShallow("offset");n=e.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?t.defaultOutsidePosition||"top":n)&&(r.position=n),null!=a&&(r.offset=a),null!=i&&(i*=Math.PI/180,r.rotation=i),null!=o&&(r.distance=o),r.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",r}var Zc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Qc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],eh=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function th(e,t,n,r,i,o,a,s){n=!i&&n||Hc;var u=r&&r.inheritColor,l=t.getShallow("color"),c=t.getShallow("textBorderColor"),h=re(t.getShallow("opacity"),n.opacity);"inherit"!==l&&"auto"!==l||(l=u||null),"inherit"!==c&&"auto"!==c||(c=u||null),o||(l=l||n.color,c=c||n.textBorderColor),null!=l&&(e.fill=l),null!=c&&(e.stroke=c),l=re(t.getShallow("textBorderWidth"),n.textBorderWidth),null!=l&&(e.lineWidth=l),c=re(t.getShallow("textBorderType"),n.textBorderType),null!=c&&(e.lineDash=c),l=re(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=l&&(e.lineDashOffset=l),null!=(h=i||null!=h||s?h:r&&r.defaultOpacity)&&(e.opacity=h),i||o||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var d=0;d<Zc.length;d++){var f=Zc[d];null!=(p=re(t.getShallow(f),n[f]))&&(e[f]=p)}for(d=0;d<Qc.length;d++)f=Qc[d],null!=(p=t.getShallow(f))&&(e[f]=p);if(null==e.verticalAlign&&null!=(c=t.getShallow("baseline"))&&(e.verticalAlign=c),!a||!r.disableBox){for(d=0;d<eh.length;d++){var p;f=eh[d];null!=(p=t.getShallow(f))&&(e[f]=p)}l=t.getShallow("borderType"),null!=l&&(e.borderDash=l),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!u||(e.backgroundColor=u),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!u||(e.borderColor=u)}}var nh=xo();function rh(e,t,n,r,i){var o,a,s,u=nh(e);u.valueAnimation&&u.prevValue!==u.value&&(o=u.defaultInterpolatedText,a=re(u.interpolatedValue,u.prevValue),s=u.value,e.percent=0,(null==u.prevValue?Sc:wc)(e,{percent:1},r,t,null,(function(r){var l=Co(n,u.precision,a,s,r);u.interpolatedValue=1===r?null:l,r=Gc({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+""},u.statesModels,l);Wc(e,r)})))}var ih=["textStyle","color"],oh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ah=new Ts,sh=(uh.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(ih):null)},uh.prototype.getFont=function(){return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},t=(t=this.ecModel)&&t.getModel("textStyle"),ue([e.fontStyle||t&&t.getShallow("fontStyle")||"",e.fontWeight||t&&t.getShallow("fontWeight")||"",(e.fontSize||t&&t.getShallow("fontSize")||12)+"px",e.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "));var e,t},uh.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<oh.length;n++)t[oh[n]]=this.getShallow(oh[n]);return ah.useStyle(t),ah.update(),ah.getBoundingRect()},uh);function uh(){}var lh=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ch=Fo(lh),hh=(dh.prototype.getLineStyle=function(e){return ch(this,e)},dh);function dh(){}var fh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ph=Fo(fh),gh=(yh.prototype.getItemStyle=function(e,t){return ph(this,e,t)},yh);function yh(){}_h.prototype.init=function(e,t,n){},_h.prototype.mergeOption=function(e,t){T(this.option,e,!0)},_h.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},_h.prototype.getShallow=function(e,t){var n=this.option;n=null==n?n:n[e];return null!=n||t||(t=this.parentModel)&&(n=t.getShallow(e)),n},_h.prototype.getModel=function(e,t){var n=null!=e;e=n?this.parsePath(e):null;return new _h(n?this._doGet(e):this.option,t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(e)),this.ecModel)},_h.prototype.isEmpty=function(){return null==this.option},_h.prototype.restoreData=function(){},_h.prototype.clone=function(){return new this.constructor(C(this.option))},_h.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},_h.prototype.resolveParentPath=function(e){return e},_h.prototype.isAnimationEnabled=function(){if(!o.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},_h.prototype._doGet=function(e,t){var n=this.option;if(e){for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"==s(n)?n[e[r]]:null));r++);null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel))}return n};var vh,mh=_h;function _h(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}Po(mh),Rh=mh,vh=["__\0is_clz",Eo++].join("_"),Rh.prototype[vh]=!0,Rh.isInstance=function(e){return!(!e||!e[vh])},E(mh,hh),E(mh,gh),E(mh,zo),E(mh,sh);var xh=Math.round(10*Math.random());function bh(e){return[e||"",xh++].join("_")}function wh(e,t){return T(T({},e,!0),t,!0)}var Sh="ZH",kh="EN",Ah=kh,Ih={},Ch={},Th=o.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ah).toUpperCase().indexOf(Sh)?Sh:Ah;function Mh(e,t){e=e.toUpperCase(),Ch[e]=new mh(t),Ih[e]=t}Mh(kh,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Mh(Sh,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Dh=1e3,Oh=60*Dh,Ph=60*Oh,Lh=24*Ph,Eh=(Eo=365*Lh,{year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"}),Rh="{yyyy}-{MM}-{dd}",Nh={year:"{yyyy}",month:"{yyyy}-{MM}",day:Rh,hour:Rh+" "+Eh.hour,minute:Rh+" "+Eh.minute,second:Rh+" "+Eh.second,millisecond:Eh.none},Bh=["year","month","day","hour","minute","second","millisecond"],Fh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function jh(e,t){return"0000".substr(0,t-(e+="").length)+e}function zh(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Uh(e,t,n,r){e=Ji(e);var i=e[$h(n)](),o=e[Hh(n)]()+1,a=Math.floor((o-1)/3)+1,s=e[Wh(n)](),u=e["get"+(n?"UTC":"")+"Day"](),l=e[Gh(n)](),c=(l-1)%12+1,h=e[Kh(n)](),d=e[Xh(n)](),f=(e=e[Yh(n)](),n=12<=l?"pm":"am",n.toUpperCase()),p=(r=(r instanceof mh?r:Ch[r||Th]||Ch[Ah]).getModel("time"),r.get("month")),g=r.get("monthAbbr"),y=r.get("dayOfWeek");r=r.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,n+"").replace(/{A}/g,f+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,jh(i%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,p[o-1]).replace(/{MMM}/g,g[o-1]).replace(/{MM}/g,jh(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,jh(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[u]).replace(/{ee}/g,r[u]).replace(/{e}/g,u+"").replace(/{HH}/g,jh(l,2)).replace(/{H}/g,l+"").replace(/{hh}/g,jh(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,jh(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,jh(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,jh(e,3)).replace(/{S}/g,e+"")}function Vh(e,t){e=Ji(e);var n=e[Hh(t)]()+1,r=e[Wh(t)](),i=e[Gh(t)](),o=e[Kh(t)](),a=e[Xh(t)]();e=0===e[Yh(t)](),t=e&&0===a,a=t&&0===o,o=a&&0===i,i=o&&1===r;return i&&1===n?"year":i?"month":o?"day":a?"hour":t?"minute":e?"second":"millisecond"}function qh(e,t,n){var r=G(e)?Ji(e):e;switch(t=t||Vh(e,n)){case"year":return r[$h(n)]();case"half-year":return 6<=r[Hh(n)]()?1:0;case"quarter":return Math.floor((r[Hh(n)]()+1)/4);case"month":return r[Hh(n)]();case"day":return r[Wh(n)]();case"half-day":return r[Gh(n)]()/24;case"hour":return r[Gh(n)]();case"minute":return r[Kh(n)]();case"second":return r[Xh(n)]();case"millisecond":return r[Yh(n)]()}}function $h(e){return e?"getUTCFullYear":"getFullYear"}function Hh(e){return e?"getUTCMonth":"getMonth"}function Wh(e){return e?"getUTCDate":"getDate"}function Gh(e){return e?"getUTCHours":"getHours"}function Kh(e){return e?"getUTCMinutes":"getMinutes"}function Xh(e){return e?"getUTCSeconds":"getSeconds"}function Yh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Jh(e){return e?"setUTCMonth":"setMonth"}function Zh(e){return e?"setUTCDate":"setDate"}function Qh(e){return e?"setUTCHours":"setHours"}function ed(e){return e?"setUTCMinutes":"setMinutes"}function td(e){return e?"setUTCSeconds":"setSeconds"}function nd(e){return e?"setUTCMilliseconds":"setMilliseconds"}function rd(e){var t;return no(e)?(t=(e+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<t.length?"."+t[1]:""):H(e)?e:"-"}function id(e,t){return"{"+e+(null==t?"":t)+"}"}var od=ae,ad=["a","b","c","d","e","f","g"];function sd(e,t,n){var r=(t=q(t)?t:[t]).length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=ad[o];e=e.replace(id(a),id(a,0))}for(var s=0;s<r;s++)for(var u=0;u<i.length;u++){var l=t[s][i[u]];e=e.replace(id(ad[u],s),n?tt(l):l)}return e}function ud(e,t){return t=t||"transparent",H(e)?e:K(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function ld(e,t){var n;"_blank"===t||"blank"===t?((n=window.open()).opener=null,n.location.href=e):window.open(e,t)}var cd=N,hd=["left","right","top","bottom","width","height"],dd=[["width","left","right"],["height","top","bottom"]];function fd(e,t,n,r,i){var o=0,a=0,s=(null==r&&(r=1/0),null==i&&(i=1/0),0);t.eachChild((function(u,l){var c,h,d,f=u.getBoundingRect();l=t.childAt(l+1),l=l&&l.getBoundingRect();s="horizontal"===e?(h=f.width+(l?-l.x+f.x:0),r<(c=o+h)||u.newline?(o=0,c=h,a+=s+n,f.height):Math.max(s,f.height)):(h=f.height+(l?-l.y+f.y:0),i<(d=a+h)||u.newline?(o+=s+n,a=0,d=h,f.width):Math.max(s,f.width)),u.newline||(u.x=o,u.y=a,u.markRedraw(),"horizontal"===e?o=c+n:a=d+n)}))}var pd=fd;function gd(e,t,n){n=od(n||0);var r=t.width,i=t.height,o=Vi(e.left,r),a=Vi(e.top,i),s=(t=Vi(e.right,r),Vi(e.bottom,i)),u=Vi(e.width,r),l=Vi(e.height,i),c=n[2]+n[0],h=n[1]+n[3],d=e.aspect;switch(isNaN(u)&&(u=r-t-h-o),isNaN(l)&&(l=i-s-c-a),null!=d&&(isNaN(u)&&isNaN(l)&&(r/i<d?u=.8*r:l=.8*i),isNaN(u)&&(u=d*l),isNaN(l))&&(l=u/d),isNaN(o)&&(o=r-t-u-h),isNaN(a)&&(a=i-s-l-c),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-h}switch(e.top||e.bottom){case"middle":case"center":a=i/2-l/2-n[0];break;case"bottom":a=i-l-c}return o=o||0,a=a||0,isNaN(u)&&(u=r-h-o-(t||0)),isNaN(l)&&(l=i-c-a-(s||0)),d=new Lt(o+n[3],a+n[0],u,l),d.margin=n,d}function yd(e){return e=e.layoutMode||e.constructor.layoutMode,K(e)?e:e?{type:e}:null}function vd(e,t,n){var r=n&&n.ignoreSize,i=(n=(q(r)||(r=[r,r]),o(dd[0],0)),o(dd[1],1));function o(n,i){var o={},u=0,l={},c=0;if(cd(n,(function(t){l[t]=e[t]})),cd(n,(function(e){a(t,e)&&(o[e]=l[e]=t[e]),s(o,e)&&u++,s(l,e)&&c++})),r[i])s(t,n[1])?l[n[2]]=null:s(t,n[2])&&(l[n[1]]=null);else if(2!==c&&u){if(!(2<=u))for(var h=0;h<n.length;h++){var d=n[h];if(!a(o,d)&&a(e,d)){o[d]=e[d];break}}return o}return l}function a(e,t){return e.hasOwnProperty(t)}function s(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){cd(e,(function(e){t[e]=n[e]}))}u(dd[0],e,n),u(dd[1],e,i)}function md(e){return t={},(n=e)&&t&&cd(hd,(function(e){n.hasOwnProperty(e)&&(t[e]=n[e])})),t;var t,n}V(fd,"vertical"),V(fd,"horizontal");var _d,xd,bd,wd,Sd=xo(),kd=(n(Ad,_d=mh),Ad.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},Ad.prototype.mergeDefaultAndTheme=function(e,t){var n=yd(this),r=n?md(e):{};T(e,t.getTheme().get(this.mainType)),T(e,this.getDefaultOption()),n&&vd(e,r,n)},Ad.prototype.mergeOption=function(e,t){T(this.option,e,!0);var n=yd(this);n&&vd(this.option,e,n)},Ad.prototype.optionUpdated=function(e,t){},Ad.prototype.getDefaultOption=function(){var e=this.constructor;if(!(t=e)||!t[Do])return e.defaultOption;var t=Sd(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;0<=a;a--)o=T(o,n[a],!0);t.defaultOption=o}return t.defaultOption},Ad.prototype.getReferringComponents=function(e,t){var n=e+"Id";return Ao(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(n,!0)},t)},Ad.prototype.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")}},Ad.prototype.getZLevelKey=function(){return""},Ad.prototype.setZLevel=function(e){this.option.zlevel=e},Ad.protoInitialize=((hh=Ad.prototype).type="component",hh.id="",hh.name="",hh.mainType="",hh.subType="",void(hh.componentIndex=0)),Ad);function Ad(e,t,n){return e=_d.call(this,e,t,n)||this,e.uid=bh("ec_cpt_model"),e}function Id(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}Lo(kd,mh),Bo(kd),bd={},(xd=kd).registerSubTypeDefaulter=function(e,t){e=Oo(e),bd[e.main]=t},xd.determineSubType=function(e,t){var n,r=t.type;return r||(n=Oo(e).main,xd.hasSubTypes(e)&&bd[n]&&(r=bd[n](t))),r},wd=function(e){var t=[];return N(kd.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=B(t,(function(e){return Oo(e).main})),"dataset"!==e&&P(t,"dataset")<=0&&t.unshift("dataset"),t},kd.topologicalTravel=function(e,t,n,r){if(e.length){o={},a=[],N(i=t,(function(e){var t,n,r=Id(o,e),s=r.originalDeps=wd(e);t=i,n=[],N(s,(function(e){0<=P(t,e)&&n.push(e)})),s=n;r.entryCount=s.length,0===r.entryCount&&a.push(e),N(s,(function(t){P(r.predecessor,t)<0&&r.predecessor.push(t);var n=Id(o,t);P(n.successor,t)<0&&n.successor.push(e)}))}));t={graph:o,noEntryList:a};var i,o,a,s=t.graph,u=t.noEntryList,l={};for(N(e,(function(e){l[e]=!0}));u.length;){var c=u.pop(),h=s[c],d=!!l[c];d&&(n.call(r,c,h.originalDeps.slice()),delete l[c]),N(h.successor,d?p:f)}N(l,(function(){throw new Error("")}))}function f(e){s[e].entryCount--,0===s[e].entryCount&&u.push(e)}function p(e){l[e]=!0,f(e)}};gh="","undefined"!=typeof navigator&&(gh=navigator.platform||""),zo="rgba(0, 0, 0, 0.2)";var Cd={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gh.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Td=ve(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Md="original",Dd="arrayRows",Od="objectRows",Pd="keyedColumns",Ld="typedArray",Ed="unknown",Rd="column",Nd="row",Bd={Must:1,Might:2,Not:3},Fd=xo();function jd(e,t,n){var r,i,o,a,s,u={},l=Ud(t);return l&&e&&(r=[],i=[],t=t.ecModel,t=Fd(t).datasetMap,l=l.uid+"_"+n.seriesLayoutBy,N(e=e.slice(),(function(t,n){t=K(t)?t:e[n]={name:t},"ordinal"===t.type&&null==o&&(o=n,a=h(t)),u[t.name]=[]})),s=t.get(l)||t.set(l,{categoryWayDim:a,valueWayDim:0}),N(e,(function(e,t){var n,a=e.name;e=h(e);null==o?(n=s.valueWayDim,c(u[a],n,e),c(i,n,e),s.valueWayDim+=e):o===t?(c(u[a],0,e),c(r,0,e)):(n=s.categoryWayDim,c(u[a],n,e),c(i,n,e),s.categoryWayDim+=e)})),r.length&&(u.itemName=r),i.length)&&(u.seriesName=i),u;function c(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function h(e){return e=e.dimsDef,e?e.length:1}}function zd(e,t,n){var r,i,o,a={};return Ud(e)&&(r=t.sourceFormat,i=t.dimensionsDefine,r!==Od&&r!==Pd||N(i,(function(e,t){"name"===(K(e)?e.name:e)&&(o=t)})),e=function(){for(var e={},a={},s=[],u=0,l=Math.min(5,n);u<l;u++){var c=qd(t.data,r,t.seriesLayoutBy,i,t.startIndex,u),h=(s.push(c),c===Bd.Not);if(h&&null==e.v&&u!==o&&(e.v=u),null!=e.n&&e.n!==e.v&&(h||s[e.n]!==Bd.Not)||(e.n=u),d(e)&&s[e.n]!==Bd.Not)return e;h||(c===Bd.Might&&null==a.v&&u!==o&&(a.v=u),null!=a.n&&a.n!==a.v)||(a.n=u)}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(a)?a:null}())&&(a.value=[e.v],e=null!=o?o:e.n,a.itemName=[e],a.seriesName=[e]),a}function Ud(e){if(!e.get("data",!0))return Ao(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ko).models[0]}function Vd(e,t){return qd(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function qd(e,t,n,r,i,o){var a,s,u;if(!Y(e)){if(r&&(K(r=r[o])?(s=r.name,u=r.type):H(r)&&(s=r)),null!=u)return"ordinal"===u?Bd.Must:Bd.Not;if(t===Dd){var l=e;if(n===Nd){for(var c=l[o],h=0;h<(c||[]).length&&h<5;h++)if(null!=(a=v(c[i+h])))return a}else for(h=0;h<l.length&&h<5;h++){var d=l[i+h];if(d&&null!=(a=v(d[o])))return a}}else if(t===Od){var f=e;if(!s)return Bd.Not;for(h=0;h<f.length&&h<5;h++)if((g=f[h])&&null!=(a=v(g[s])))return a}else if(t===Pd){if(!s)return Bd.Not;if(!(c=e[s])||Y(c))return Bd.Not;for(h=0;h<c.length&&h<5;h++)if(null!=(a=v(c[h])))return a}else if(t===Md){var p=e;for(h=0;h<p.length&&h<5;h++){var g,y=co(g=p[h]);if(!q(y))return Bd.Not;if(null!=(a=v(y[o])))return a}}}return Bd.Not;function v(e){var t=H(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?Bd.Might:Bd.Not:t&&"-"!==e?Bd.Must:void 0}}var $d,Hd,Wd,Gd=ve(),Kd=xo(),Xd=(xo(),Yd.prototype.getColorFromPalette=function(e,t,n){var r=so(this.get("color",!0)),i=this.get("colorLayer",!0),o=this,a=Kd;return a=a(t=t||o),o=a.paletteIdx||0,(t=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(e)?t[e]:(i=(i=null!=n&&i?Jd(i,n):r)||r)&&i.length?(n=i[o],e&&(t[e]=n),a.paletteIdx=(o+1)%i.length,n):void 0},Yd.prototype.clearColorPalette=function(){var e,t;(t=Kd)(e=this).paletteIdx=0,t(e).paletteNameMap={}},Yd);function Yd(){}function Jd(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}var Zd,Qd="\0_ec_inner",ef=(n(tf,Zd=mh),tf.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new mh(r),this._locale=new mh(i),this._optionManager=o},tf.prototype.setOption=function(e,t,n){t=of(t),this._optionManager.setOption(e,n,t),this._resetOption(null,t)},tf.prototype.resetOption=function(e,t){return this._resetOption(e,of(t))},tf.prototype._resetOption=function(e,t){var n,r=!1,i=this._optionManager;return e&&"recreate"!==e||(n=i.mountOption("recreate"===e),this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(n,t)):Wd(this,n),r=!0),"timeline"!==e&&"media"!==e||this.restoreData(),e&&"recreate"!==e&&"timeline"!==e||(n=i.getTimelineOption(this))&&(r=!0,this._mergeOption(n,t)),e&&"recreate"!==e&&"media"!==e||(n=i.getMediaOption(this)).length&&N(n,(function(e){r=!0,this._mergeOption(e,t)}),this),r},tf.prototype.mergeOption=function(e){this._mergeOption(e,null)},tf.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=ve(),s=t&&t.replaceMergeMainTypeMap;Fd(this).datasetMap=ve(),N(e,(function(e,t){null!=e&&(kd.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?C(e):T(n[t],e,!0))})),s&&s.each((function(e,t){kd.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),kd.topologicalTravel(o,kd.getAllClassMainTypes(),(function(t){var o,a=function(e,t,n){return(t=(t=Gd.get(t))&&t(e))?n.concat(t):n}(this,t,so(e[t])),u=r.get(t),l=u?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=(u=ho(u,a,l),mo(u,t,kd),n[t]=null,r.set(t,null),i.set(t,0),[]),h=[],d=0;N(u,(function(e,n){var r=e.existing,i=e.newOption;if(i){var a=kd.getClass(t,e.keyInfo.subType,!("series"===t));if(!a)return;if("tooltip"===t){if(o)return;o=!0}r&&r.constructor===a?(r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1)):(n=M({componentIndex:n},e.keyInfo),M(r=new a(i,this,this,n),n),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0))}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(c.push(r.option),h.push(r),d++):(c.push(void 0),h.push(void 0))}),this),n[t]=c,r.set(t,h),i.set(t,d),"series"===t&&$d(this)}),this),this._seriesIndices||$d(this)},tf.prototype.getOption=function(){var e=C(this.option);return N(e,(function(t,n){if(kd.hasClass(n)){for(var r=so(t),i=r.length,o=!1,a=i-1;0<=a;a--)r[a]&&!vo(r[a])?o=!0:(r[a]=null,o||i--);r.length=i,e[n]=r}})),delete e[Qd],e},tf.prototype.getTheme=function(){return this._theme},tf.prototype.getLocaleModel=function(){return this._locale},tf.prototype.setUpdatePayload=function(e){this._payload=e},tf.prototype.getUpdatePayload=function(){return this._payload},tf.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){if(e=n[t||0],e)return e;if(null==t)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},tf.prototype.queryComponents=function(e){var t,n,r,i,o,a=e.mainType;return a&&(t=e.index,n=e.id,r=e.name,i=this._componentsMap.get(a))&&i.length?(null!=t?(o=[],N(so(t),(function(e){i[e]&&o.push(i[e])}))):o=null!=n?nf("id",n,i):null!=r?nf("name",r,i):j(i,(function(e){return!!e})),rf(o,e)):[]},tf.prototype.findComponents=function(e){var t,n=e.query,r=e.mainType,i=(i=r+"Index",o=r+"Id",t=r+"Name",!(n=n)||null==n[i]&&null==n[o]&&null==n[t]?null:{mainType:r,index:n[i],id:n[o],name:n[t]}),o=i?this.queryComponents(i):j(this._componentsMap.get(r),(function(e){return!!e}));return n=rf(o,e),e.filter?j(n,e.filter):n},tf.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if($(e)){var i=t,o=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}}))}else for(var a=H(e)?r.get(e):K(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var u=a[s];u&&t.call(n,u,u.componentIndex)}},tf.prototype.getSeriesByName=function(e){var t=go(e,null);return j(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},tf.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},tf.prototype.getSeriesByType=function(e){return j(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},tf.prototype.getSeries=function(){return j(this._componentsMap.get("series"),(function(e){return!!e}))},tf.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},tf.prototype.eachSeries=function(e,t){Hd(this),N(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},tf.prototype.eachRawSeries=function(e,t){N(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},tf.prototype.eachSeriesByType=function(e,t,n){Hd(this),N(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},tf.prototype.eachRawSeriesByType=function(e,t,n){return N(this.getSeriesByType(e),t,n)},tf.prototype.isSeriesFiltered=function(e){return Hd(this),null==this._seriesIndicesMap.get(e.componentIndex)},tf.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},tf.prototype.filterSeries=function(e,t){Hd(this);var n=[];N(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=ve(n)},tf.prototype.restoreData=function(e){$d(this);var t=this._componentsMap,n=[];t.each((function(e,t){kd.hasClass(t)&&n.push(t)})),kd.topologicalTravel(n,kd.getAllClassMainTypes(),(function(n){N(t.get(n),(function(t){!t||"series"===n&&function(e,t){var n,r;if(t)return n=t.seriesIndex,r=t.seriesId,t=t.seriesName,null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=t&&e.name!==t}(t,e)||t.restoreData()}))}))},tf.internalField=($d=function(e){var t=e._seriesIndices=[];N(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=ve(t)},Hd=function(e){},void(Wd=function(e,t){e.option={},e.option[Qd]=1,e._componentsMap=ve({series:[]}),e._componentsCount=ve();var n,r,i=t.aria;K(i)&&null==i.enabled&&(i.enabled=!0),n=t,i=e._theme.option,r=n.color&&!n.colorLayer,N(i,(function(e,t){"colorLayer"===t&&r||kd.hasClass(t)||("object"==s(e)?n[t]=n[t]?T(n[t],e,!1):C(e):null==n[t]&&(n[t]=e))})),T(t,Cd,!1),e._mergeOption(t,null)})),tf);function tf(){return null!==Zd&&Zd.apply(this,arguments)||this}function nf(e,t,n){var r,i;return q(t)?(r=ve(),N(t,(function(e){null!=e&&null!=go(e,null)&&r.set(e,!0)})),j(n,(function(t){return t&&r.get(t[e])}))):(i=go(t,null),j(n,(function(t){return t&&null!=i&&t[e]===i})))}function rf(e,t){return t.hasOwnProperty("subType")?j(e,(function(e){return e&&e.subType===t.subType})):e}function of(e){var t=ve();return e&&N(so(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}function af(e){N(sf,(function(t){this[t]=U(e[t],e)}),this)}E(ef,Xd);var sf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],uf={},lf=(cf.prototype.create=function(e,t){var n=[];N(uf,(function(r,i){r=r.create(e,t),n=n.concat(r||[])})),this._coordinateSystems=n},cf.prototype.update=function(e,t){N(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},cf.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},cf.register=function(e,t){uf[e]=t},cf.get=function(e){return uf[e]},cf);function cf(){this._coordinateSystems=[]}var hf=/^(min|max)?(.+)$/,df=(ff.prototype.setOption=function(e,t,n){e&&(N(so(e.series),(function(e){e&&e.data&&Y(e.data)&&ce(e.data)})),N(so(e.dataset),(function(e){e&&e.source&&Y(e.source)&&ce(e.source)}))),e=C(e);var r=this._optionBackup;e=function(e,t,n){var r,i,o=[],a=e.baseOption,s=e.timeline,u=e.options,l=e.media,c=!!e.media,h=!!(u||s||a&&a.timeline);function d(e){N(t,(function(t){t(e,n)}))}return a?(i=a).timeline||(i.timeline=s):((h||c)&&(e.options=e.media=null),i=e),c&&q(l)&&N(l,(function(e){e&&e.option&&(e.query?o.push(e):r=r||e)})),d(i),N(u,d),N(o,(function(e){return d(e.option)})),{baseOption:i,timelineOptions:u||[],mediaDefault:r,mediaList:o}}(e,t,!r);this._newBaseOption=e.baseOption,r?(e.timelineOptions.length&&(r.timelineOptions=e.timelineOptions),e.mediaList.length&&(r.mediaList=e.mediaList),e.mediaDefault&&(r.mediaDefault=e.mediaDefault)):this._optionBackup=e},ff.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],C(e?t.baseOption:this._newBaseOption)},ff.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;return n.length&&(e=e.getComponent("timeline"))?C(n[e.getCurrentIndex()]):t},ff.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,o=[],a=[];if(r.length||i){for(var s,u,l=0,c=r.length;l<c;l++)!function(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return N(e,(function(e,t){var n;t=t.match(hf);t&&t[1]&&t[2]&&(n=t[1],t=t[2].toLowerCase(),t=r[t],e=e,("min"===(n=n)?e<=t:"max"===n?t<=e:t===e)||(i=!1))})),i}(r[l].query,t,n)||o.push(l);(o=!o.length&&i?[-1]:o).length&&(s=o,u=this._currentMediaIndices,s.join(",")!==u.join(","))&&(a=B(o,(function(e){return C((-1===e?i:r[e]).option)}))),this._currentMediaIndices=o}return a},ff);function ff(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}var pf=N,gf=K,yf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vf(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=yf.length;n<r;n++){var i=yf[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?T(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?T(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function mf(e,t,n){var r,i;e&&e[t]&&(e[t].normal||e[t].emphasis)&&(r=e[t].normal,i=e[t].emphasis,r&&(n?(e[t].normal=e[t].emphasis=null,D(e[t],r)):e[t]=r),i)&&(e.emphasis=e.emphasis||{},(e.emphasis[t]=i).focus&&(e.emphasis.focus=i.focus),i.blurScope)&&(e.emphasis.blurScope=i.blurScope)}function _f(e){mf(e,"itemStyle"),mf(e,"lineStyle"),mf(e,"areaStyle"),mf(e,"label"),mf(e,"labelLine"),mf(e,"upperLabel"),mf(e,"edgeLabel")}function xf(e,t){var n=gf(e)&&e[t],r=gf(n)&&n.textStyle;if(r)for(var i=0,o=lo.length;i<o;i++){var a=lo[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function bf(e){e&&(_f(e),xf(e,"label"),e.emphasis)&&xf(e.emphasis,"label")}function wf(e){return q(e)?e:e?[e]:[]}function Sf(e){return(q(e)?e[0]:e)||{}}function kf(e,t){pf(wf(e.series),(function(e){if(gf(e)&&gf(e)){vf(e),_f(e),xf(e,"label"),xf(e,"upperLabel"),xf(e,"edgeLabel"),e.emphasis&&(xf(e.emphasis,"label"),xf(e.emphasis,"upperLabel"),xf(e.emphasis,"edgeLabel"));var t=e.markPoint,n=(t&&(vf(t),bf(t)),e.markLine),r=(n&&(vf(n),bf(n)),e.markArea),i=(r&&bf(r),e.data);if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!Y(o))for(var a=0;a<o.length;a++)bf(o[a]);N(e.categories,(function(e){_f(e)}))}if(i&&!Y(i))for(a=0;a<i.length;a++)bf(i[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)bf(s[a])}if((n=e.markLine)&&n.data){var u=n.data;for(a=0;a<u.length;a++)q(u[a])?(bf(u[a][0]),bf(u[a][1])):bf(u[a])}"gauge"===e.type?(xf(e,"axisLabel"),xf(e,"title"),xf(e,"detail")):"treemap"===e.type?(mf(e.breadcrumb,"itemStyle"),N(e.levels,(function(e){_f(e)}))):"tree"===e.type&&_f(e.leaves)}}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),pf(n,(function(t){pf(wf(e[t]),(function(e){e&&(xf(e,"axisLabel"),xf(e.axisPointer,"label"))}))})),pf(wf(e.parallel),(function(e){e=e&&e.parallelAxisDefault,xf(e,"axisLabel"),xf(e&&e.axisPointer,"label")})),pf(wf(e.calendar),(function(e){mf(e,"itemStyle"),xf(e,"dayLabel"),xf(e,"monthLabel"),xf(e,"yearLabel")})),pf(wf(e.radar),(function(e){xf(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),pf(wf(e.geo),(function(e){gf(e)&&(bf(e),pf(wf(e.regions),(function(e){bf(e)})))})),pf(wf(e.timeline),(function(e){bf(e),mf(e,"label"),mf(e,"itemStyle"),mf(e,"controlStyle",!0),e=e.data,q(e)&&N(e,(function(e){K(e)&&(mf(e,"label"),mf(e,"itemStyle"))}))})),pf(wf(e.toolbox),(function(e){mf(e,"iconStyle"),pf(e.feature,(function(e){mf(e,"iconStyle")}))})),xf(Sf(e.axisPointer),"label"),xf(Sf(e.tooltip).axisPointer,"label")}function Af(e){e&&N(If,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var If=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Cf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Tf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Mf(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Tf.length;n++){var r=Tf[n][1],i=Tf[n][0];null!=t[r]&&(t[i]=t[r])}}function Df(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function Of(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Pf(e,t){kf(e,t),e.series=so(e.series),N(e.series,(function(e){if(K(e)){var t,n=e.type;if("line"===n)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=e.clockWise&&(e.clockwise=e.clockWise),Df(e.label),(t=e.data)&&!Y(t))for(var r=0;r<t.length;r++)Df(t[r]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset)}else if("gauge"===n){var i=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");if(null!=i){for(var o,a=e,u="itemStyle.color",l=void 0,c=u.split(","),h=a,d=0;d<c.length-1;d++)null==h[o=c[d]]&&(h[o]={}),h=h[o];!l&&null!=h[c[d]]||(h[c[d]]=i)}}else if("bar"===n){if(Mf(e),Mf(e.backgroundStyle),Mf(e.emphasis),(t=e.data)&&!Y(t))for(r=0;r<t.length;r++)"object"==s(t[r])&&(Mf(t[r]),Mf(t[r]&&t[r].emphasis))}else"sunburst"===n?((u=e.highlightPolicy)&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=u)),Of(e),function e(t,n){if(t)for(var r=0;r<t.length;r++)n(t[r]),t[r]&&e(t[r].children,n)}(e.data,Of)):"graph"===n||"sankey"===n?(a=e)&&null!=a.focusNodeAdjacency&&(a.emphasis=a.emphasis||{},null==a.emphasis.focus)&&(a.emphasis.focus="adjacency"):"map"===n&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation)&&D(e,e.mapLocation);null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis)&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation),Af(e)}})),e.dataRange&&(e.visualMap=e.dataRange),N(Cf,(function(t){t=e[t],t&&N(t=q(t)?t:[t],(function(e){Af(e)}))}))}function Lf(e){N(e,(function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,l,c){var h,d,f=a.get(t.stackedDimension,c);if(isNaN(f))return i;s?d=a.getRawIndex(c):h=a.get(t.stackedByDimension,c);for(var p,g,y,v=NaN,m=n-1;0<=m;m--){var _=e[m];if(0<=(d=s?d:_.data.rawIndexOf(_.stackedByDimension,h))&&(_=_.data.getByRawIndex(_.stackResultDimension,d),"all"===u||"positive"===u&&0<_||"negative"===u&&_<0||"samesign"===u&&0<=f&&0<_||"samesign"===u&&f<=0&&_<0)){p=f,g=_,y=void 0,y=Math.max($i(p),$i(g)),p+=g,f=zi<y?p:qi(p,y),v=_;break}}return r[0]=f,r[1]=v,r}))}))}var Ef,Rf,Nf=function(e){this.data=e.data||(e.sourceFormat===Pd?{}:[]),this.sourceFormat=e.sourceFormat||Ed,this.seriesLayoutBy=e.seriesLayoutBy||Rd,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&Vd(this,n)===Bd.Must&&(r.type="ordinal")}};function Bf(e){return e instanceof Nf}function Ff(e,t,n){n=n||zf(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var o,a,s;return e?(t===Dd?(s=e,"auto"===r||null==r?Vf((function(e){null!=e&&"-"!==e&&(H(e)?null==a&&(a=1):a=0)}),n,s,10):a=G(r)?r:r?1:0,i||1!==a||(i=[],Vf((function(e,t){i[t]=null!=e?e+"":""}),n,s,1/0)),o=i?i.length:n===Nd?s.length:s[0]?s[0].length:null):t===Od?i=i||function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return z(t)}(e):t===Pd?i||(i=[],N(e,(function(e,t){i.push(t)}))):t===Md&&(r=co(e[0]),o=q(r)&&r.length||1),{startIndex:a,dimensionsDefine:Uf(i),dimensionsDetectedCount:o}):{dimensionsDefine:Uf(i),startIndex:a,dimensionsDetectedCount:o}}(e,n,r,t.sourceHeader,t.dimensions);return new Nf({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:C(t)})}function jf(e){return new Nf({data:e,sourceFormat:Y(e)?Ld:Md})}function zf(e){var t=Ed;if(Y(e))t=Ld;else if(q(e)){0===e.length&&(t=Dd);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(q(i)||Y(i)){t=Dd;break}if(K(i)){t=Od;break}}}}else if(K(e))for(var o in e)if(be(e,o)&&R(e[o])){t=Pd;break}return t}function Uf(e){var t;if(e)return t=ve(),B(e,(function(e,n){var r;e={name:(e=K(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};return null!=e.name&&(e.name+="",null==e.displayName&&(e.displayName=e.name),(r=t.get(e.name))?e.name+="-"+r.count++:t.set(e.name,{count:1})),e}))}function Vf(e,t,n,r){if(t===Nd)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}function qf(e){return e=e.sourceFormat,e===Od||e===Pd}Kf.prototype.getSource=function(){return this._source},Kf.prototype.count=function(){return 0},Kf.prototype.getItem=function(e,t){},Kf.prototype.appendData=function(e){},Kf.prototype.clean=function(){},Kf.protoInitialize=((sh=Kf.prototype).pure=!1,void(sh.persistent=!0)),Kf.internalField=(Rf=function(e,t,n){var r,i=n.sourceFormat,o=n.seriesLayoutBy,a=n.startIndex;n=n.dimensionsDefine;M(e,Ef[op(i,o)]),i===Ld?(e.getItem=$f,e.count=Wf,e.fillStorage=Hf):(r=Zf(i,o),e.getItem=U(r,null,t,a,n),r=tp(i,o),e.count=U(r,null,t,a,n))},$f=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},Hf=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],u=null==s[0]?1/0:s[0],l=null==s[1]?-1/0:s[1],c=t-e,h=n[a],d=0;d<c;d++){var f=i[d*o+a];(h[e+d]=f)<u&&(u=f),l<f&&(l=f)}s[0]=u,s[1]=l}},Wf=function(){return this._data?this._data.length/this._dimSize:0},(sh={})[Dd+"_"+Rd]={pure:!0,appendData:Xf},sh[Dd+"_"+Nd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},sh[Od]={pure:!0,appendData:Xf},sh[Pd]={pure:!0,appendData:function(e){var t=this._data;N(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},sh[Md]={appendData:Xf},sh[Ld]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},void(Ef=sh));var $f,Hf,Wf,Gf=Kf;function Kf(e,t){e=Bf(e)?e:jf(e);var n=(this._source=e,this._data=e.data);e.sourceFormat===Ld&&(this._offset=0,this._dimSize=t,this._data=n),Rf(this,n,e)}function Xf(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}function Yf(e,t,n,r){return e[r]}(Rh={})[Dd+"_"+Rd]=function(e,t,n,r){return e[r+t]},Rh[Dd+"_"+Nd]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var u=a[s];o[s]=u?u[r]:null}return o},Rh[Od]=Yf,Rh[Pd]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=e[n[a].name];o[a]=s?s[r]:null}return o},Rh[Md]=Yf;var Jf=Rh;function Zf(e,t){return Jf[op(e,t)]}function Qf(e,t,n){return e.length}(hh={})[Dd+"_"+Rd]=function(e,t,n){return Math.max(0,e.length-t)},hh[Dd+"_"+Nd]=function(e,t,n){return e=e[0],e?Math.max(0,e.length-t):0},hh[Od]=Qf,hh[Pd]=function(e,t,n){return e=e[n[0].name],e?e.length:0},hh[Md]=Qf;var ep=hh;function tp(e,t){return ep[op(e,t)]}function np(e,t,n){return e[t]}(zo={})[Dd]=np,zo[Od]=function(e,t,n){return e[n]},zo[Pd]=np,zo[Md]=function(e,t,n){return e=co(e),e instanceof Array?e[t]:e},zo[Ld]=np;var rp=zo;function ip(e){return rp[e]}function op(e,t){return e===Dd?e+"_"+t:e}function ap(e,t,n){if(e){var r,i;t=e.getRawDataItem(t);if(null!=t)return r=(i=e.getStore()).getSource().sourceFormat,null!=n?(e=e.getDimensionIndex(n),n=i.getDimensionProperty(e),ip(r)(t,e,n)):(i=t,r===Md?co(t):i)}}var sp=/\{@(.+?)\}/g;up.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),u=(e=s&&s[n.getItemVisual(e,"drawType")||"fill"],s=s&&s.stroke,this.mainType),l="series"===u;n=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:l?this.subType:null,seriesIndex:this.seriesIndex,seriesId:l?this.id:null,seriesName:l?this.name:null,name:o,dataIndex:i,data:a,dataType:t,value:r,color:e,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},up.prototype.getFormattedLabel=function(e,t,n,r,i,o){t=t||"normal";var a=this.getData(n);n=this.getDataParams(e,n);return o&&(n.value=o.interpolatedValue),null!=r&&q(n.value)&&(n.value=n.value[r]),$(i=i||a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(n.status=t,n.dimensionIndex=r,i(n)):H(i)?sd(i,n).replace(sp,(function(t,n){var r=n.length;"["===n.charAt(0)&&"]"===n.charAt(r-1)&&(n=+n.slice(1,r-1)),r=ap(a,e,n);return null!=(r=o&&q(o.interpolatedValue)&&0<=(n=a.getDimensionIndex(n))?o.interpolatedValue[n]:r)?r+"":""})):void 0},up.prototype.getRawValue=function(e,t){return ap(this.getData(t),e)},up.prototype.formatTooltip=function(e,t,n){},gh=up;function up(){}function lp(e){return new cp(e)}hp.prototype.perform=function(e){var t,n,r=this._upstream,i=e&&e.skip,o=(this._dirty&&r&&((o=this.context).data=o.outputData=r.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context)),l(this._modBy)),a=this._modDataCount||0,s=l(e&&e.modBy),u=e&&e.modDataCount||0;function l(e){return 1<=e?e:1}if(o===s&&a===u||(t="reset"),!this._dirty&&"reset"!==t||(this._dirty=!1,n=this._doReset(i)),this._modBy=s,this._modDataCount=u,o=e&&e.step,this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,h=Math.min(null!=o?this._dueIndex+o:1/0,this._dueEnd);if(!i&&(n||c<h)){var d=this._progress;if(q(d))for(var f=0;f<d.length;f++)this._doProgress(d[f],c,h,s,u);else this._doProgress(d,c,h,s,u)}this._dueIndex=h,a=null!=this._settedOutputEnd?this._settedOutputEnd:h,this._outputDueEnd=a}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},hp.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},hp.prototype._doProgress=function(e,t,n,r,i){mp.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:mp.next},this.context)},hp.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),q(t))&&!t.length&&(t=null),this._progress=t,this._modBy=this._modDataCount=null;var t,n;e=this._downstream;return e&&e.dirty(),n},hp.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},hp.prototype.pipe=function(e){this._downstream===e&&!this._dirty||((this._downstream=e)._upstream=this,e.dirty())},hp.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},hp.prototype.getUpstream=function(){return this._upstream},hp.prototype.getDownstream=function(){return this._downstream},hp.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e};var cp=hp;function hp(e){this._reset=(e=e||{}).reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}var dp,fp,pp,gp,yp,vp,mp=vp={reset:function(e,t,n,r){fp=e,dp=t,pp=n,gp=r,yp=Math.ceil(gp/pp),vp.next=1<pp&&0<gp?xp:_p}};function _p(){return fp<dp?fp++:null}function xp(){var e=fp%yp*pp+Math.ceil(fp/yp);e=dp<=fp?null:e<gp?e:fp;return fp++,e}function bp(e,t){return t=t&&t.type,"ordinal"===t?e:null==(e="time"!==t||G(e)||null==e||"-"===e?e:+Ji(e))||""===e?NaN:Number(e)}var wp=ve({number:function(e){return parseFloat(e)},time:function(e){return+Ji(e)},trim:function(e){return H(e)?ue(e):e}});function Sp(e){return wp.get(e)}var kp={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return t<e},gte:function(e,t){return t<=e}},Ap=(Ip.prototype.evaluate=function(e){return G(e)?this._opFn(e,this._rvalFloat):this._opFn(to(e),this._rvalFloat)},Ip);function Ip(e,t){G(t)||io(""),this._opFn=kp[e],this._rvalFloat=to(t)}Tp.prototype.evaluate=function(e,t){var n=G(e)?e:to(e),r=G(t)?t:to(t),i=isNaN(n),o=isNaN(r);return i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o&&(i=H(e),o=H(t),i&&(n=o?e:0),o)&&(r=i?t:0),n<r?this._resultLT:r<n?-this._resultLT:0};var Cp=Tp;function Tp(e,t){e="desc"===e,this._resultLT=e?1:-1,this._incomparable="min"===(t=null==t?e?"min":"max":t)?-1/0:1/0}Dp.prototype.evaluate=function(e){var t,n=e===this._rval;return n||(t=s(e))===this._rvalTypeof||"number"!=t&&"number"!==this._rvalTypeof||(n=to(e)===this._rvalFloat),this._isEQ?n:!n};var Mp=Dp;function Dp(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=s(t),this._rvalFloat=to(t)}Pp.prototype.getRawData=function(){throw new Error("not supported")},Pp.prototype.getRawDataItem=function(e){throw new Error("not supported")},Pp.prototype.cloneRawData=function(){},Pp.prototype.getDimensionInfo=function(e){},Pp.prototype.cloneAllDimensionInfo=function(){},Pp.prototype.count=function(){},Pp.prototype.retrieveValue=function(e,t){},Pp.prototype.retrieveValueFromItem=function(e,t){},Pp.prototype.convertValue=bp;var Op=Pp;function Pp(){}function Lp(e){return jp(e.sourceFormat)||io(""),e.data}function Ep(e){var t=e.sourceFormat,n=e.data;if(jp(t)||io(""),t===Dd){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(t===Od){for(r=[],i=0,o=n.length;i<o;i++)r.push(M({},n[i]));return r}}function Rp(e,t,n){if(null!=n)return G(n)||!isNaN(n)&&!be(t,n)?e[n]:be(t,n)?t[n]:void 0}function Np(e){return C(e)}var Bp=ve();function Fp(e,t){var n=so(e);e=n.length;e||io("");for(var r=0,i=e;r<i;r++)t=function(e,t){t.length||io(""),K(e)||io("");var n=e.type,r=Bp.get(n);return r||io(""),n=B(t,(function(e){var t=e,n=(e=r,new Op),i=t.data,o=n.sourceFormat=t.sourceFormat,a=t.startIndex,s=(t.seriesLayoutBy!==Rd&&io(""),[]),u={};if(h=t.dimensionsDefine)N(h,(function(e,t){var n=e.name;t={index:t,name:n,displayName:e.displayName};s.push(t),null!=n&&(be(u,n)&&io(""),u[n]=t)}));else for(var l=0;l<t.dimensionsDetectedCount;l++)s.push({index:l});var c=Zf(o,Rd),h=(e.__isBuiltIn&&(n.getRawDataItem=function(e){return c(i,a,s,e)},n.getRawData=U(Lp,null,t)),n.cloneRawData=U(Ep,null,t),tp(o,Rd)),d=(n.count=U(h,null,i,a,s),ip(o)),f=(n.retrieveValue=function(e,t){return e=c(i,a,s,e),f(e,t)},n.retrieveValueFromItem=function(e,t){var n;return null!=e&&(n=s[t])?d(e,t,n.name):void 0});return n.getDimensionInfo=U(Rp,null,s,u),n.cloneAllDimensionInfo=U(Np,null,s),n})),B(so(r.transform({upstream:n[0],upstreamList:n,config:C(e.config)})),(function(e,n){K(e)||io(""),e.data||io(""),jp(zf(e.data))||io("");var r=t[0];n=r&&0===n&&!e.dimensions?((n=r.startIndex)&&(e.data=r.data.slice(0,n).concat(e.data)),{seriesLayoutBy:Rd,sourceHeader:n,dimensions:r.metaRawOption.dimensions}):{seriesLayoutBy:Rd,sourceHeader:0,dimensions:e.dimensions};return Ff(e.data,n,null)}))}(n[r],t),r!==i-1&&(t.length=Math.max(t.length,1));return t}function jp(e){return e===Dd||e===Od}sh="undefined";var zp,Up=("undefined"===typeof Uint32Array?"undefined":s(Uint32Array))==sh?Array:Uint32Array,Vp=("undefined"===typeof Uint16Array?"undefined":s(Uint16Array))==sh?Array:Uint16Array,qp=("undefined"===typeof Int32Array?"undefined":s(Int32Array))==sh?Array:Int32Array,$p=(Rh=("undefined"===typeof Float64Array?"undefined":s(Float64Array))==sh?Array:Float64Array,{float:Rh,int:qp,ordinal:Array,number:Array,time:Rh});function Hp(e){return 65535<e?Up:Vp}function Wp(){return[1/0,-1/0]}function Gp(e,t,n,r,i){if(n=$p[n||"float"],i){var o=e[t],a=o&&o.length;if(a!==r){for(var s=new n(r),u=0;u<a;u++)s[u]=o[u];e[t]=s}}else e[t]=new n(r)}Xp.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=zp[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],qf(r),this._dimensions=B(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},Xp.prototype.getProvider=function(){return this._provider},Xp.prototype.getSource=function(){return this._provider.getSource()},Xp.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new $p[t||"float"](this._rawCount),this._rawExtent[i]=Wp(),i},Xp.prototype.collectOrdinalMeta=function(e,t){for(var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length,s=(0===o&&(i[e]=Wp()),i[e]),u=o;u<a;u++){var l=n[u]=t.parseAndCollect(n[u]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.type="ordinal"},Xp.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},Xp.prototype.getDimensionProperty=function(e){return e=this._dimensions[e],e&&e.property},Xp.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e),e=t.count();return t.persistent||(e+=n),n<e&&this._initDataFromProvider(n,e,!0),[n,e]},Xp.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),u=0;u<i;u++)Gp(n,u,(f=r[u]).type,s,!0);for(var l=[],c=a;c<s;c++)for(var h=c-a,d=0;d<i;d++){var f=r[d],p=zp.arrayRows.call(this,e[h]||l,f.property,h,d),g=(n[d][c]=p,o[d]);p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return{start:a,end:this._rawCount=this._count=s}},Xp.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,u=B(o,(function(e){return e.property})),l=0;l<a;l++){var c=o[l];s[l]||(s[l]=Wp()),Gp(i,l,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var h=[],d=e;d<t;d++){h=r.getItem(d,h);for(var f=0;f<a;f++){var p=i[f],g=this._dimValueGetter(h,u[f],d,f);p=(p[d]=g,s[f]);g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},Xp.prototype.count=function(){return this._count},Xp.prototype.get=function(e,t){return 0<=t&&t<this._count&&(e=this._chunks[e])?e[this.getRawIndex(t)]:NaN},Xp.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],t));return n},Xp.prototype.getByRawIndex=function(e,t){return 0<=t&&t<this._rawCount&&(e=this._chunks[e])?e[t]:NaN},Xp.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},Xp.prototype.getMedian=function(e){var t=[],n=(e=(this.each([e],(function(e){isNaN(e)||t.push(e)})),t.sort((function(e,t){return e-t}))),this.count());return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},Xp.prototype.indexOfRawIndex=function(e){if(!(e>=this._rawCount||e<0)){if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(t[o]<e)r=1+o;else{if(!(t[o]>e))return o;i=o-1}}}return-1},Xp.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(r){null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,u=0,l=this.count();u<l;u++){var c=t-r[this.getRawIndex(u)],h=Math.abs(c);h<=n&&((h<o||h===o&&0<=c&&a<0)&&(o=h,a=c,s=0),c===a)&&(i[s++]=u)}i.length=s}return i},Xp.prototype.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,n=this._count;if(t===Array)for(var r=new t(n),i=0;i<n;i++)r[i]=e[i];else r=new t(e.buffer,0,n)}else for(r=new(t=Hp(this._rawCount))(this.count()),i=0;i<r.length;i++)r[i]=i;return r},Xp.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Hp(n._rawCount))(r),o=[],a=e.length,s=0,u=e[0],l=n._chunks,c=0;c<r;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=t(c);else if(1===a)h=t(l[u][d],c);else{for(var f=0;f<a;f++)o[f]=l[e[f]][d];o[f]=c,h=t.apply(null,o)}h&&(i[s++]=d)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},Xp.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=z(e),i=r.length;if(!i)return this;var o=t.count(),a=new(Hp(t._rawCount))(o),s=0,u=r[0],l=e[u][0],c=e[u][1],h=t._chunks;u=!1;if(!t._indices){var d=0;if(1===i){for(var f=h[r[0]],p=0;p<n;p++)(l<=(m=f[p])&&m<=c||isNaN(m))&&(a[s++]=d),d++;u=!0}else if(2===i){f=h[r[0]];var g=h[r[1]],y=e[r[1]][0],v=e[r[1]][1];for(p=0;p<n;p++){var m=f[p],_=g[p];(l<=m&&m<=c||isNaN(m))&&(y<=_&&_<=v||isNaN(_))&&(a[s++]=d),d++}u=!0}}if(!u)if(1===i)for(p=0;p<o;p++){var x=t.getRawIndex(p);(l<=(m=h[r[0]][x])&&m<=c||isNaN(m))&&(a[s++]=x)}else for(p=0;p<o;p++){for(var b=!0,w=(x=t.getRawIndex(p),0);w<i;w++){var S=r[w];((m=h[S][x])<e[S][0]||m>e[S][1])&&(b=!1)}b&&(a[s++]=t.getRawIndex(p))}return s<o&&(t._indices=a),t._count=s,t._extent=[],t._updateGetRawIdx(),t},Xp.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},Xp.prototype.modify=function(e,t){this._updateDims(this,e,t)},Xp.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],o=t.length,a=e.count(),u=[],l=e._rawExtent,c=0;c<t.length;c++)l[t[c]]=Wp();for(var h=0;h<a;h++){for(var d=e.getRawIndex(h),f=0;f<o;f++)u[f]=r[t[f]][d];u[o]=h;var p=n&&n.apply(null,u);if(null!=p)for("object"!=s(p)&&(i[0]=p,p=i),c=0;c<p.length;c++){var g=t[c],y=p[c],v=l[g];g=r[g];g&&(g[d]=y),y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}},Xp.prototype.lttbDownSample=function(e,t){var n,r=this.clone([e],!0),i=r._chunks[e],o=this.count(),a=0,s=Math.floor(1/t),u=this.getRawIndex(0),l=new(Hp(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));l[a++]=u;for(var c=1;c<o-1;c+=s){for(var h=Math.min(c+s,o-1),d=Math.min(c+2*s,o),f=(d+h)/2,p=0,g=h;g<d;g++){var y=i[k=this.getRawIndex(g)];isNaN(y)||(p+=y)}p/=d-h;h=c;var v=Math.min(c+s,o),m=c-1,_=i[u],x=-1,b=h,w=-1,S=0;for(g=h;g<v;g++){var k;y=i[k=this.getRawIndex(g)];isNaN(y)?(S++,w<0&&(w=k)):x<(n=Math.abs((m-f)*(y-_)-(m-g)*(p-_)))&&(x=n,b=k)}0<S&&S<v-h&&(l[a++]=Math.min(w,b),b=Math.max(w,b)),u=l[a++]=b}return l[a++]=this.getRawIndex(o-1),r._count=a,r._indices=l,r.getRawIndex=this._getRawIdx,r},Xp.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),o=i._chunks,a=[],s=Math.floor(1/t),u=o[e],l=this.count(),c=i._rawExtent[e]=Wp(),h=new(Hp(this._rawCount))(Math.ceil(l/s)),d=0,f=0;f<l;f+=s){l-f<s&&(a.length=s=l-f);for(var p=0;p<s;p++){var g=this.getRawIndex(f+p);a[p]=u[g]}var y=n(a),v=this.getRawIndex(Math.min(f+r(a,y)||0,l-1));(u[v]=y)<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[d++]=v}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},Xp.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][a],i);break;case 2:t(r[e[0]][a],r[e[1]][a],i);break;default:for(var s=0,u=[];s<n;s++)u[s]=r[e[s]][a];u[s]=i,t.apply(null,u)}}},Xp.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Wp();if(!t)return n;var r=this.count();if(!this._indices)return this._rawExtent[e].slice();if(i=this._extent[e])return i.slice();for(var i,o=(i=n)[0],a=i[1],s=0;s<r;s++){var u=t[this.getRawIndex(s)];u<o&&(o=u),a<u&&(a=u)}return this._extent[e]=[o,a]},Xp.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},Xp.prototype.clone=function(e,t){var n,r,i=new Xp,o=this._chunks,a=e&&F(e,(function(e,t){return e[t]=!0,e}),{});if(a)for(var s=0;s<o.length;s++)i._chunks[s]=a[s]?(n=o[s],r=void 0,(r=n.constructor)===Array?n.slice():new r(n)):o[s];else i._chunks=o;return this._copyCommonProps(i),t||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},Xp.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=C(this._extent),e._rawExtent=C(this._rawExtent)},Xp.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array)for(var n=this._indices.length,r=(t=new e(n),0);r<n;r++)t[r]=this._indices[r];else t=new e(this._indices);return t}return null},Xp.prototype._getRawIdxIdentity=function(e){return e},Xp.prototype._getRawIdx=function(e){return e<this._count&&0<=e?this._indices[e]:-1},Xp.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},Xp.internalField=void(zp={arrayRows:Yp,objectRows:function(e,t,n,r){return bp(e[t],this._dimensions[r])},keyedColumns:Yp,original:function(e,t,n,r){return e=e&&(null==e.value?e:e.value),bp(e instanceof Array?e[r]:e,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}});var Kp=Xp;function Xp(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ve()}function Yp(e,t,n,r){return bp(e[r],this._dimensions[r])}Zp.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Zp.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},Zp.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Zp.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Zp.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n,r,i,o,a,s=this._sourceHost,u=this._getUpstreamSourceManagers(),l=!!u.length;eg(s)?(r=s,i=e=o=void 0,t=l?((t=u[0]).prepareSource(),o=(i=t.getSource()).data,e=i.sourceFormat,[t._getVersionSign()]):(e=Y(o=r.get("data",!0))?Ld:Md,[]),r=this._getSourceMetaRawOption()||{},i=i&&i.metaRawOption||{},a=re(r.seriesLayoutBy,i.seriesLayoutBy)||null,n=re(r.sourceHeader,i.sourceHeader),r=re(r.dimensions,i.dimensions),i=a!==i.seriesLayoutBy||!!n!=!!i.sourceHeader||r?[Ff(o,{seriesLayoutBy:a,sourceHeader:n,dimensions:r},e)]:[]):(o=s,t=l?(i=(a=this._applyTransform(u)).sourceList,a.upstreamSignList):(i=[Ff(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(i,t)},Zp.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0),o=(null!=i&&1!==e.length&&tg(""),[]),a=[];return N(e,(function(e){e.prepareSource();var t=e.getSource(i||0);null==i||t||tg(""),o.push(t),a.push(e._getVersionSign())})),r?t=Fp(r,o,n.componentIndex):null!=i&&(t=[new Nf({data:(e=o[0]).data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:C(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})]),{sourceList:t,upstreamSignList:a}},Zp.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},Zp.prototype.getSource=function(e){var t=this._sourceList[e=e||0];return t||(t=this._getUpstreamSourceManagers())[0]&&t[0].getSource(e)},Zp.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},Zp.prototype._innerGetDataStore=function(e,t,n){var r,i=this._storeList,o=i[0];i=(o=o||(i[0]={}))[n];return i||(r=this._getUpstreamSourceManagers()[0],eg(this._sourceHost)&&r?i=r._innerGetDataStore(e,t,n):(i=new Kp).initData(new Gf(t,e.length),e),o[n]=i),i},Zp.prototype._getUpstreamSourceManagers=function(){var e,t=this._sourceHost;return eg(t)?(e=Ud(t))?[e.getSourceManager()]:[]:B((e=t).get("transform",!0)||e.get("fromTransformResult",!0)?Ao(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ko).models:[],(function(e){return e.getSourceManager()}))},Zp.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;return eg(r)?(e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(e=(r=r).get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)),{seriesLayoutBy:e,sourceHeader:t,dimensions:n}};var Jp=Zp;function Zp(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}function Qp(e){e.option.transform&&ce(e.option.transform)}function eg(e){return"series"===e.mainType}function tg(e){throw new Error(e)}function ng(e,t){return t.type=e,t}function rg(e){var t,n,r,i,o,a,s,u,l,c,h,d=e.series,f=e.dataIndex,p=(e=e.multipleSeries,d.getData()),g=p.mapDimensionsAll("defaultedTooltip"),y=g.length,v=d.getRawValue(f),m=q(v),_=(_=f,ud((b=d).getData().getItemVisual(_,"style")[b.visualDrawType]));function x(e,t){t=s.getDimensionInfo(t),t&&!1!==t.otherDims.tooltip&&(u?h.push(ng("nameValue",{markerType:"subItem",markerColor:a,name:t.displayName,value:e,valueType:t.type})):(l.push(e),c.push(t.type)))}1<y||m&&!y?(b=v,i=f,o=g,a=_,s=d.getData(),u=F(b,(function(e,t,n){return n=s.getDimensionInfo(n),e||n&&!1!==n.tooltip&&null!=n.displayName}),!1),l=[],c=[],h=[],o.length?N(o,(function(e){x(ap(s,i,e),e)})):N(b,x),t=(o={inlineValues:l,inlineValueTypes:c,blocks:h}).inlineValueTypes,n=o.blocks,r=(o=o.inlineValues)[0]):y?(b=p.getDimensionInfo(g[0]),r=o=ap(p,f,g[0]),t=b.type):r=o=m?v[0]:v;y=yo(d),g=y&&d.name||"";var b=p.getName(f);m=e?g:b;return ng("section",{header:g,noHeader:e||!y,sortParam:r,blocks:[ng("nameValue",{markerType:"item",markerColor:_,name:m,noName:!ue(m),value:o,valueType:t,dataIndex:f})].concat(n||[])})}var ig=xo();function og(e,t){return e.getName(t)||e.getId(t)}n(ug,ag=kd),ug.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=lp({count:cg,reset:hg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(ig(this).sourceManager=new Jp(this)).prepareSource(),e=this.getInitialData(e,n),fg(e,this),this.dataTask.context.data=e,ig(this).dataBeforeProcessed=e,lg(this),this._initSelectedMapFromData(e)},ug.prototype.mergeDefaultAndTheme=function(e,t){var n=yd(this),r=n?md(e):{},i=this.subType;kd.hasClass(i),T(e,t.getTheme().get(this.subType)),T(e,this.getDefaultOption()),uo(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&vd(e,r,n)},ug.prototype.mergeOption=function(e,t){e=T(this.option,e,!0),this.fillDataTextStyle(e.data);var n=yd(this);n&&vd(this.option,e,n),n=ig(this).sourceManager,n.dirty(),n.prepareSource(),n=this.getInitialData(e,t);fg(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,ig(this).dataBeforeProcessed=n,lg(this),this._initSelectedMapFromData(n)},ug.prototype.fillDataTextStyle=function(e){if(e&&!Y(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&uo(e[n],"label",t)},ug.prototype.getInitialData=function(e,t){},ug.prototype.appendData=function(e){this.getRawData().appendData(e.data)},ug.prototype.getData=function(e){var t=gg(this);return t?(t=t.context.data,null!=e&&t.getLinkedData?t.getLinkedData(e):t):ig(this).data},ug.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},ug.prototype.setData=function(e){var t,n=gg(this);n&&((t=n.context).outputData=e,n!==this.dataTask)&&(t.data=e),ig(this).data=e},ug.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return ve(e)},ug.prototype.getSourceManager=function(){return ig(this).sourceManager},ug.prototype.getSource=function(){return this.getSourceManager().getSource()},ug.prototype.getRawData=function(){return ig(this).dataBeforeProcessed},ug.prototype.getColorBy=function(){return this.get("colorBy")||"series"},ug.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},ug.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},ug.prototype.formatTooltip=function(e,t,n){return rg({series:this,dataIndex:e,multipleSeries:t})},ug.prototype.isAnimationEnabled=function(){var e=this.ecModel;return!!(!o.node||e&&e.ssr)&&!!(e=!((e=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&e)},ug.prototype.restoreData=function(){this.dataTask.dirty()},ug.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel;return Xd.prototype.getColorFromPalette.call(this,e,t,n)||r.getColorFromPalette(e,t,n)},ug.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},ug.prototype.getProgressive=function(){return this.get("progressive")},ug.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},ug.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},ug.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;o<e.length;o++){var a=og(i,e[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},ug.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},ug.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=z(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];0<=i&&n.push(i)}return n},ug.prototype.isSelected=function(e,t){var n=this.option.selectedMap;return!!n&&(t=this.getData(t),"all"===n||n[og(t,e)])&&!t.getItemModel(e).get(["select","disabled"])},ug.prototype.isUniversalTransitionEnabled=function(){var e;return!!this.__universalTransitionEnabled||!!(e=this.option.universalTransition)&&(!0===e||e&&e.enabled)},ug.prototype._innerSelect=function(e,t){var n=this.option,r=n.selectedMode,i=t.length;if(r&&i)if("series"===r)n.selectedMap="all";else if("multiple"===r){K(n.selectedMap)||(n.selectedMap={});for(var o=n.selectedMap,a=0;a<i;a++){var s,u=t[a];o[s=og(e,u)]=!0,this._selectedDataIndicesMap[s]=e.getRawIndex(u)}}else"single"!==r&&!0!==r||(s=og(e,r=t[i-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=e.getRawIndex(r),n))},ug.prototype._initSelectedMapFromData=function(e){var t;this.option.selectedMap||(t=[],e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)})),0<t.length&&this._innerSelect(e,t))},ug.registerClass=function(e){return kd.registerClass(e)},ug.protoInitialize=((hh=ug.prototype).type="series.__base__",hh.seriesIndex=0,hh.ignoreStyleOnData=!1,hh.hasSymbolVisual=!1,hh.defaultSymbol="circle",hh.visualStyleAccessPath="itemStyle",void(hh.visualDrawType="fill"));var ag,sg=ug;function ug(){var e=null!==ag&&ag.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}function lg(e){var t,n,r=e.name;yo(e)||(e.name=(e=(t=(e=e).getRawData()).mapDimensionsAll("seriesName"),n=[],N(e,(function(e){e=t.getDimensionInfo(e),e.displayName&&n.push(e.displayName)})),n.join(" ")||r))}function cg(e){return e.model.getRawData().count()}function hg(e){return e=e.model,e.setData(e.getRawData().cloneShallow()),dg}function dg(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function fg(e,t){N(me(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,V(pg,t))}))}function pg(e,t){return e=gg(e),e&&e.setOutputEnd((t||this).count()),t}function gg(e){var t,n=(e.ecModel||{}).scheduler;n=n&&n.getPipeline(e.uid);if(n)return(n=n.currentTask)&&(t=n.agentStubMap)?t.get(e.uid):n}E(sg,gh),E(sg,Xd),Lo(sg,kd),vg.prototype.init=function(e,t){},vg.prototype.render=function(e,t,n,r){},vg.prototype.dispose=function(e,t){},vg.prototype.updateView=function(e,t,n,r){},vg.prototype.updateLayout=function(e,t,n,r){},vg.prototype.updateVisual=function(e,t,n,r){},vg.prototype.toggleBlurSeries=function(e,t,n){},vg.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)};var yg=vg;function vg(){this.group=new Mi,this.uid=bh("viewComponent")}function mg(){var e=xo();return function(t){var n=e(t),r=(t=t.pipelineContext,!!n.large),i=!!n.progressiveRender,o=n.large=!(!t||!t.large);n=n.progressiveRender=!(!t||!t.progressiveRender);return!(r==o&&i==n)&&"reset"}}Po(yg),Bo(yg);var _g=xo(),xg=mg(),bg=(wg.prototype.init=function(e,t){},wg.prototype.render=function(e,t,n,r){},wg.prototype.highlight=function(e,t,n,r){e=e.getData(r&&r.dataType),e&&kg(e,r,"emphasis")},wg.prototype.downplay=function(e,t,n,r){e=e.getData(r&&r.dataType),e&&kg(e,r,"normal")},wg.prototype.remove=function(e,t){this.group.removeAll()},wg.prototype.dispose=function(e,t){},wg.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},wg.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},wg.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},wg.prototype.eachRendered=function(e){$c(this.group,e)},wg.markUpdateMethod=function(e,t){_g(e).updateMethod=t},wg.protoInitialize=void(wg.prototype.type="chart"),wg);function wg(){this.group=new Mi,this.uid=bh("viewChart"),this.renderTask=lp({plan:Ag,reset:Ig}),this.renderTask.context={view:this}}function Sg(e,t,n){e&&Eu(e)&&("emphasis"===t?vu:mu)(e,n)}function kg(e,t,n){var r,i=_o(e,t),o=t&&null!=t.highlightKey?(t=t.highlightKey,r=null==(r=Vs[t])&&Us<=32?Vs[t]=Us++:r):null;null!=i?N(so(i),(function(t){Sg(e.getItemGraphicEl(t),n,o)})):e.eachItemGraphicEl((function(e){Sg(e,n,o)}))}function Ag(e){return xg(e.model)}function Ig(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=(e=e.view,i&&_g(i).updateMethod);o=o?"incrementalPrepareRender":a&&e[a]?a:"render";return"render"!==o&&e[o](t,n,r,i),Cg[o]}Po(bg),Bo(bg);var Cg={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function Tg(e,t,n){var r,i,o,a,s,u=0,l=0,c=null;function h(){l=(new Date).getTime(),c=null,e.apply(o,a||[])}function d(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];r=(new Date).getTime(),o=this,a=e;var f=s||t,p=s||n;s=null,i=r-(p?u:l)-f,clearTimeout(c),p?c=setTimeout(h,f):0<=i?h():c=setTimeout(h,-i),u=r}return t=t||0,d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}var Mg=xo(),Dg={itemStyle:Fo(fh,!0),lineStyle:Fo(lh,!0)},Og={lineStyle:"stroke",itemStyle:"fill"};function Pg(e,t){return e=e.visualStyleMapper||Dg[t],e||(console.warn("Unknown style type '"+t+"'."),Dg.itemStyle)}function Lg(e,t){return e=e.visualDrawType||Og[t],e||(console.warn("Unknown style type '"+t+"'."),"fill")}zo={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=Pg(e,r)(i),a=(i=i.getShallow("decal"),i&&(n.setVisual("decal",i),i.dirty=!0),Lg(e,r)),s=(i=o[a],$(i)?i:null);r="auto"===o.fill||"auto"===o.stroke;if(o[a]&&!s&&!r||(i=e.getColorFromPalette(e.name,null,t.getSeriesCount()),o[a]||(o[a]=i,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||$(o.fill)?i:o.fill,o.stroke="auto"===o.stroke||$(o.stroke)?i:o.stroke),n.setVisual("style",o),n.setVisual("drawType",a),!t.isSeriesFiltered(e)&&s)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=M({},o);i[a]=s(r),t.setItemVisual(n,"style",i)}}}};var Eg=new mh,Rg=(sh={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n,r,i;if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e))return t=e.getData(),n=e.visualStyleAccessPath||"itemStyle",r=Pg(e,n),i=t.getVisual("drawType"),{dataEach:t.hasItemOption?function(e,t){var o=e.getRawDataItem(t);o&&o[n]&&(Eg.option=o[n],o=r(Eg),M(e.ensureUniqueItemVisual(t,"style"),o),Eg.option.decal&&(e.setItemVisual(t,"decal",Eg.option.decal),Eg.option.decal.dirty=!0),i in o)&&e.setItemVisual(t,"colorFromPalette",!1)}:null}}},Rh={performRawSeries:!0,overallReset:function(e){var t=ve();e.eachSeries((function(e){var n,r=e.getColorBy();e.isColorBySeries()||(r=e.type+"-"+r,(n=t.get(r))||t.set(r,n={}),Mg(e).scope=n)})),e.eachSeries((function(t){var n,r,i,o,a,s;t.isColorBySeries()||e.isSeriesFiltered(t)||(n=t.getRawData(),r={},i=t.getData(),o=Mg(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=Lg(t,a),i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var a,u=r[e];i.getItemVisual(u,"colorFromPalette")&&(u=i.ensureUniqueItemVisual(u,"style"),e=n.getName(e)||e+"",a=n.count(),u[s]=t.getColorFromPalette(e,o,a))})))}))}},Math.PI);Bg.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){e=e.overallTask,e&&e.dirty()}))},Bg.prototype.getPerformArgs=function(e,t){var n,r;if(e.__pipeline)return r=(n=this._pipelineMap.get(e.__pipeline.id)).context,{step:t=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(e=r&&r.modDataCount)?Math.ceil(e/t):null,modDataCount:e}},Bg.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},Bg.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=(t=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,e.get("large")&&r>=e.get("largeThreshold"));r="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:t,modDataCount:r,large:i}},Bg.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=ve();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},Bg.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;N(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{});se(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},Bg.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},Bg.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},Bg.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},Bg.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}N(e,(function(e,s){var u,l,c,h,d;r.visualType&&r.visualType!==e.visualType||(u=(l=o._stageTaskMap.get(e.uid)).seriesTaskMap,(l=l.overallTask)?((h=l.agentStubMap).each((function(e){a(r,e)&&(e.dirty(),c=!0)})),c&&l.dirty(),o.updatePayload(l,n),d=o.getPerformArgs(l,r.block),h.each((function(e){e.perform(d)})),l.perform(d)&&(i=!0)):u&&u.each((function(s,u){a(r,s)&&s.dirty();var l=o.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(l)&&(i=!0)})))})),this.unfinished=i||this.unfinished},Bg.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},Bg.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}}while(t=t.getUpstream())}))},Bg.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},Bg.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,a=t.seriesTaskMap=ve(),s=(t=e.seriesType,e.getTargetSeries);function u(t){var s=t.uid;s=a.set(s,o&&o.get(s)||lp({plan:Vg,reset:qg,count:Wg}));s.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,s)}e.createOnAllSeries?n.eachRawSeries(u):t?n.eachRawSeriesByType(t,u):s&&s(n,r).each(u)},Bg.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||lp({reset:Fg}),a=(o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i},o.agentStubMap),s=o.agentStubMap=ve(),u=(t=e.seriesType,e.getTargetSeries),l=!0,c=!1;function h(e){var t=e.uid;t=s.set(t,a&&a.get(t)||(c=!0,lp({reset:jg,onDirty:Ug})));t.context={model:e,overallProgress:l},t.agent=o,t.__block=l,i._pipe(e,t)}se(!e.createOnAllSeries,""),t?n.eachRawSeriesByType(t,h):u?u(n,r).each(h):(l=!1,N(n.getSeries(),h)),c&&o.dirty()},Bg.prototype._pipe=function(e,t){e=e.uid,e=this._pipelineMap.get(e),e.head||(e.head=t),e.tail&&e.tail.pipe(t),(e.tail=t).__idxInPipeline=e.count++,t.__pipeline=e},Bg.wrapStageHandler=function(e,t){return(e=$(e)?{overallReset:e,seriesType:function(e){Gg=null;try{e(Kg,Xg)}catch(e){}return Gg}(e)}:e).uid=bh("stageHandler"),t&&(e.visualType=t),e};var Ng=Bg;function Bg(e,t,n,r){this._stageTaskMap=ve(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}function Fg(e){e.overallReset(e.ecModel,e.api,e.payload)}function jg(e){return e.overallProgress&&zg}function zg(){this.agent.dirty(),this.getDownstream().dirty()}function Ug(){this.agent&&this.agent.dirty()}function Vg(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function qg(e){return e.useClearVisual&&e.data.clearAllVisual(),e=e.resetDefines=so(e.reset(e.model,e.ecModel,e.api,e.payload)),1<e.length?B(e,(function(e,t){return Hg(t)})):$g}var $g=Hg(0);function Hg(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function Wg(e){return e.data.count()}var Gg,Kg={},Xg={};function Yg(e,t){for(var n in t.prototype)e[n]=we}function Jg(){return{axisLine:{lineStyle:{color:Zg}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}Yg(Kg,ef),Yg(Xg,af),Kg.eachSeriesByType=Kg.eachRawSeriesByType=function(e){Gg=e},Kg.eachComponent=function(e){"series"===e.mainType&&e.subType&&(Gg=e.subType)};hh=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],gh={color:hh,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],hh]};var Zg="#B9B8CE",Qg=(fh="#100C2A",lh=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],hh={darkMode:!0,color:lh,backgroundColor:fh,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Zg}},textStyle:{color:Zg},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Zg}},dataZoom:{borderColor:"#71708A",textStyle:{color:Zg},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Zg}},timeline:{lineStyle:{color:Zg},label:{color:Zg},controlStyle:{color:Zg,borderColor:Zg}},calendar:{itemStyle:{color:fh},dayLabel:{color:Zg},monthLabel:{color:Zg},yearLabel:{color:Zg}},timeAxis:Jg(),logAxis:Jg(),valueAxis:Jg(),categoryAxis:Jg(),line:{symbol:"circle"},graph:{color:lh},gauge:{title:{color:Zg},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Zg},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},hh.categoryAxis.splitLine.show=!1,ey.prototype.normalizeQuery=function(e){var t,n,r,i={},o={},a={};return H(e)?(t=Oo(e),i.mainType=t.main||null,i.subType=t.sub||null):(n=["Index","Name","Id"],r={name:1,dataIndex:1,dataType:1},N(e,(function(e,t){for(var s=!1,u=0;u<n.length;u++){var l=n[u],c=t.lastIndexOf(l);0<c&&c===t.length-l.length&&"data"!==(c=t.slice(0,c))&&(i.mainType=c,i[l.toLowerCase()]=e,s=!0)}r.hasOwnProperty(t)&&(o[t]=e,s=!0),s||(a[t]=e)}))),{cptQuery:i,dataQuery:o,otherQuery:a}},ey.prototype.filter=function(e,t){var n,r,i,o,a,s=this.eventInfo;return!s||(n=s.targetEl,r=s.packedEvent,i=s.model,s=s.view,!i)||!s||(o=t.cptQuery,a=t.dataQuery,u(o,i,"mainType")&&u(o,i,"subType")&&u(o,i,"index","componentIndex")&&u(o,i,"name")&&u(o,i,"id")&&u(a,r,"name")&&u(a,r,"dataIndex")&&u(a,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,r)));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},ey.prototype.afterTrigger=function(){this.eventInfo=null},ey);function ey(){}var ty=["symbol","symbolSize","symbolRotate","symbolOffset"],ny=ty.concat(["symbolKeepAspect"]);fh={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r,i={},o={},a=!1,s=0;s<ty.length;s++){var u=ty[s],l=e.get(u);$(l)?(a=!0,o[u]=l):i[u]=l}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(M({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e))return r=z(o),{dataEach:a?function(t,n){for(var i=e.getRawValue(n),a=e.getDataParams(n),s=0;s<r.length;s++){var u=r[s];t.setItemVisual(n,u,o[u](i,a))}}:null}}}},lh={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<ny.length;r++){var i=ny[r],o=n.getShallow(i,!0);null!=o&&e.setItemVisual(t,i,o)}}:null}}};function ry(e,t){N([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(n){t(n[0],(function(t,r,i){var o;t=M({},t),i.dispatchAction(M(t,{type:n[1],seriesIndex:(i=t,o=[],r.eachComponent({mainType:"series",subType:e,query:i},(function(e){o.push(e.seriesIndex)})),o)}))}))}))}function iy(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t,r,a=e.seriesIndex,s=e.option.selectedMap,u=i.selected,l=0;l<u.length;l++)u[l].seriesIndex===a&&(r=_o(t=e.getData(),i.fromActionPayload),n.trigger(o,{type:o,seriesId:e.id,name:q(r)?t.getName(r[0]):t.getName(r),selected:H(s)?s:M({},s)}))}))}function oy(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var ay=Math.round(9*Math.random()),sy="function"==typeof Object.defineProperty,uy=(ly.prototype.get=function(e){return this._guard(e)[this._id]},ly.prototype.set=function(e,t){return e=this._guard(e),sy?Object.defineProperty(e,this._id,{value:t,enumerable:!1,configurable:!0}):e[this._id]=t,this},ly.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},ly.prototype.has=function(e){return!!this._guard(e)[this._id]},ly.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},ly);function ly(){this._id="__ec_inner_"+ay++}var cy=as.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2;t=t.height/2;e.moveTo(n,r-t),e.lineTo(n+i,r+t),e.lineTo(n-i,r+t),e.closePath()}}),hy=as.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2;t=t.height/2;e.moveTo(n,r-t),e.lineTo(n+i,r),e.lineTo(n,r+t),e.lineTo(n-i,r),e.closePath()}}),dy=as.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=(t=Math.max(i,t.height),i=i/2,i*i/(t-i)),a=(t=r-t+i+o,Math.asin(o/i)),s=Math.cos(a)*i,u=Math.sin(a),l=Math.cos(a),c=.6*i,h=.7*i;e.moveTo(n-s,t+o),e.arc(n,t,i,Math.PI-a,2*Math.PI+a),e.bezierCurveTo(n+s-u*c,t+o+l*c,n,r-h,n,r),e.bezierCurveTo(n,r-h,n-s+u*c,t+o+l*c,n-s,t+o),e.closePath()}}),fy=as.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x;t=t.y,r=r/3*2;e.moveTo(i,t),e.lineTo(i+r,t+n),e.lineTo(i,t+n/4*3),e.lineTo(i-r,t+n),e.lineTo(i,t),e.closePath()}}),py={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){n=Math.min(n,r),i.x=e,i.y=t,i.width=n,i.height=n},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},gy={},yy=(N({line:ql,rect:Ss,roundRect:Ss,square:Ss,circle:il,diamond:hy,pin:dy,arrow:fy,triangle:cy},(function(e,t){gy[t]=new e})),as.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){e=gi(e,t,n);var r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(e.y=n.y+.4*n.height),e},buildPath:function(e,t,n){var r,i=t.symbolType;"none"!==i&&(r=(r=gy[i])||gy[i="rect"],py[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n))}}));function vy(e,t){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw())}function my(e,t,n,r,i,o,a){var s=0===e.indexOf("empty");return(a=0===(e=s?e.substr(5,1).toLowerCase()+e.substr(6):e).indexOf("image://")?Rc(e.slice(8),new Lt(t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?Ec(e.slice(7),{},new Lt(t,n,r,i),a?"center":"cover"):new yy({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=s,a.setColor=vy,o&&a.setColor(o),a}function _y(e,t){if(null!=e)return[Vi((e=q(e)?e:[e,e])[0],t[0])||0,Vi(re(e[1],e[0]),t[1])||0]}function xy(e){return isFinite(e)}function by(e,t,n){for(var r,i,o,a,s,u,l,c,h,d="radial"===t.type?(r=e,i=t,a=(o=n).width,s=o.height,u=Math.min(a,s),l=null==i.x?.5:i.x,c=null==i.y?.5:i.y,h=null==i.r?.5:i.r,i.global||(l=l*a+o.x,c=c*s+o.y,h*=u),l=xy(l)?l:.5,c=xy(c)?c:.5,h=0<=h&&xy(h)?h:.5,r.createRadialGradient(l,c,0,l,c,h)):(i=e,a=n,o=null==(s=t).x?0:s.x,u=null==s.x2?1:s.x2,r=null==s.y?0:s.y,l=null==s.y2?0:s.y2,s.global||(o=o*a.width+a.x,u=u*a.width+a.x,r=r*a.height+a.y,l=l*a.height+a.y),o=xy(o)?o:0,u=xy(u)?u:1,r=xy(r)?r:0,l=xy(l)?l:0,i.createLinearGradient(o,r,u,l)),f=t.colorStops,p=0;p<f.length;p++)d.addColorStop(f[p].offset,f[p].color);return d}function wy(e){return parseInt(e,10)}function Sy(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t];t=["paddingRight","paddingBottom"][t];return null!=n[r]&&"auto"!==n[r]?parseFloat(n[r]):(n=document.defaultView.getComputedStyle(e),(e[i]||wy(n[r])||wy(e.style[r]))-(wy(n[o])||0)-(wy(n[t])||0)|0)}function ky(e){var t,n=e.style,r=n.lineDash&&0<n.lineWidth&&(i=n.lineDash,r=n.lineWidth,i&&"solid"!==i&&0<r?"dashed"===i?[4*r,2*r]:"dotted"===i?[r]:G(i)?[i]:q(i)?i:null:null),i=n.lineDashOffset;return r&&(t=n.strokeNoScale&&e.getLineScale?e.getLineScale():1)&&1!==t&&(r=B(r,(function(e){return e/t})),i/=t),[r,i]}var Ay=new Ua(!0);function Iy(e){var t=e.stroke;return!(null==t||"none"===t||!(0<e.lineWidth))}function Cy(e){return"string"==typeof e&&"none"!==e}function Ty(e){return e=e.fill,null!=e&&"none"!==e}function My(e,t){var n;null!=t.fillOpacity&&1!==t.fillOpacity?(n=e.globalAlpha,e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n):e.fill()}function Dy(e,t){var n;null!=t.strokeOpacity&&1!==t.strokeOpacity?(n=e.globalAlpha,e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n):e.stroke()}function Oy(e,t,n){n=qo(t.image,t.__image,n);if(Ho(n))return e=e.createPattern(n,t.repeat||"repeat"),"function"==typeof DOMMatrix&&e&&e.setTransform&&((n=new DOMMatrix).translateSelf(t.x||0,t.y||0),n.rotateSelf(0,0,(t.rotation||0)*Se),n.scaleSelf(t.scaleX||1,t.scaleY||1),e.setTransform(n)),e}var Py=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ly=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ey(e,t,n,r,i){var o,a=!1;if(!r&&t===(n=n||{}))return!1;!r&&t.opacity===n.opacity||(Uy(e,i),a=!0,o=Math.max(Math.min(t.opacity,1),0),e.globalAlpha=isNaN(o)?oa.opacity:o),!r&&t.blend===n.blend||(a||(Uy(e,i),a=!0),e.globalCompositeOperation=t.blend||oa.blend);for(var s=0;s<Py.length;s++){var u=Py[s];!r&&t[u]===n[u]||(a||(Uy(e,i),a=!0),e[u]=e.dpr*(t[u]||0))}return!r&&t.shadowColor===n.shadowColor||(a||(Uy(e,i),a=!0),e.shadowColor=t.shadowColor||oa.shadowColor),a}function Ry(e,t,n,r,i){var o=Vy(t,i.inHover),a=r?null:n&&Vy(n,i.inHover)||{};if(o!==a){var s=Ey(e,o,a,r,i);(r||o.fill!==a.fill)&&(s||(Uy(e,i),s=!0),Cy(o.fill))&&(e.fillStyle=o.fill),(r||o.stroke!==a.stroke)&&(s||(Uy(e,i),s=!0),Cy(o.stroke))&&(e.strokeStyle=o.stroke),!r&&o.opacity===a.opacity||(s||(Uy(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()&&(n=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1),e.lineWidth!==n)&&(s||(Uy(e,i),s=!0),e.lineWidth=n);for(var u=0;u<Ly.length;u++){var l=Ly[u],c=l[0];!r&&o[c]===a[c]||(s||(Uy(e,i),s=!0),e[c]=o[c]||l[1])}}}function Ny(e,t){t=t.transform;var 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)}var By=1,Fy=2,jy=3,zy=4;function Uy(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Vy(e,t){return t&&e.__hoverStyle||e.style}function qy(e,t){$y(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function $y(e,t,n,r){var i=t.transform;if(t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,u=!1;if(!a||function(e,t){if(e!==t&&(e||t)){if(!e||!t||e.length!==t.length)return 1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return 1}}(o,a)){if(a&&a.length&&(Uy(e,n),e.restore(),u=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){Uy(e,n),e.save();for(var c=o,h=e,d=(a=n,!1),f=0;f<c.length;f++){var p=c[f];d=d||p.isZeroArea();Ny(h,p),h.beginPath(),p.buildPath(h,p.shape),h.clip()}a.allClipped=d,s=!0}n.prevElClipPaths=o}if(n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();a=n.prevEl;var g,y,v,m,_,x,b,w,S,k,A,I,C,T,M,D,O,P,L,E,R,N,B,F=(a||(u=s=!0),t instanceof as&&t.autoBatch&&(o=t.style,F=Ty(o),g=Iy(o),!(o.lineDash||!(+F^+g)||F&&"string"!=typeof o.fill||g&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1)));s=(s||(g=i,o=a.transform,g&&o?g[0]!==o[0]||g[1]!==o[1]||g[2]!==o[2]||g[3]!==o[3]||g[4]!==o[4]||g[5]!==o[5]:g||o)?(Uy(e,n),Ny(e,t)):F||Uy(e,n),Vy(t,n.inHover));if(t instanceof as)n.lastDrawType!==By&&(u=!0,n.lastDrawType=By),Ry(e,t,a,u,n),F&&(n.batchFill||n.batchStroke)||e.beginPath(),i=e,o=t,q=F,M=Iy(m=s),D=Ty(m),O=m.strokePercent,P=O<1,L=!o.path,o.silent&&!P||!L||o.createPathProxy(),E=o.path||Ay,R=o.__dirty,q||(_=m.fill,B=m.stroke,x=D&&!!_.colorStops,b=M&&!!B.colorStops,w=D&&!!_.image,S=M&&!!B.image,N=C=I=A=k=void 0,(x||b)&&(N=o.getBoundingRect()),x&&(k=R?by(i,_,N):o.__canvasFillGradient,o.__canvasFillGradient=k),b&&(A=R?by(i,B,N):o.__canvasStrokeGradient,o.__canvasStrokeGradient=A),w&&(I=R||!o.__canvasFillPattern?Oy(i,_,o):o.__canvasFillPattern,o.__canvasFillPattern=I),S&&(C=R||!o.__canvasStrokePattern?Oy(i,B,o):o.__canvasStrokePattern,o.__canvasStrokePattern=I),x?i.fillStyle=k:w&&(I?i.fillStyle=I:D=!1),b?i.strokeStyle=A:S&&(C?i.strokeStyle=C:M=!1)),N=o.getGlobalScale(),E.setScale(N[0],N[1],o.segmentIgnoreThreshold),i.setLineDash&&m.lineDash&&(T=(_=ky(o))[0],V=_[1]),B=!0,(L||R&rn)&&(E.setDPR(i.dpr),P?E.setContext(null):(E.setContext(i),B=!1),E.reset(),o.buildPath(E,o.shape,q),E.toStatic(),o.pathUpdated()),B&&E.rebuildPath(i,P?O:1),T&&(i.setLineDash(T),i.lineDashOffset=V),q||(m.strokeFirst?(M&&Dy(i,m),D&&My(i,m)):(D&&My(i,m),M&&Dy(i,m))),T&&i.setLineDash([]),F&&(n.batchFill=s.fill||"",n.batchStroke=s.stroke||"");else if(t instanceof cs)n.lastDrawType!==jy&&(u=!0,n.lastDrawType=jy),Ry(e,t,a,u,n),x=e,k=t,null!=(I=(w=s).text)&&(I+=""),I&&(x.font=w.font||l,x.textAlign=w.textAlign,x.textBaseline=w.textBaseline,A=b=void 0,x.setLineDash&&w.lineDash&&(b=(k=ky(k))[0],A=k[1]),b&&(x.setLineDash(b),x.lineDashOffset=A),w.strokeFirst?(Iy(w)&&x.strokeText(I,w.x,w.y),Ty(w)&&x.fillText(I,w.x,w.y)):(Ty(w)&&x.fillText(I,w.x,w.y),Iy(w)&&x.strokeText(I,w.x,w.y)),b)&&x.setLineDash([]);else if(t instanceof gs)n.lastDrawType!==Fy&&(u=!0,n.lastDrawType=Fy),S=a,C=u,Ey(e,Vy(t,(N=n).inHover),S&&Vy(S,N.inHover),C,N),_=e,L=s,(o=(R=t).__image=qo(L.image,R.__image,R,R.onload))&&Ho(o)&&(B=L.x||0,E=L.y||0,P=R.getWidth(),R=R.getHeight(),O=o.width/o.height,null==P&&null!=R?P=R*O:null==R&&null!=P?R=P/O:null==P&&null==R&&(P=o.width,R=o.height),L.sWidth&&L.sHeight?(y=L.sx||0,v=L.sy||0,_.drawImage(o,y,v,L.sWidth,L.sHeight,B,E,P,R)):L.sx&&L.sy?(y=L.sx,v=L.sy,_.drawImage(o,y,v,P-y,R-v,B,E,P,R)):_.drawImage(o,B,E,P,R));else if(t.getTemporalDisplayables){n.lastDrawType!==zy&&(u=!0,n.lastDrawType=zy);var j,z,U=e,V=t,q=n,$=V.getDisplayables(),H=V.getTemporalDisplayables(),W=(U.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:q.viewWidth,viewHeight:q.viewHeight,inHover:q.inHover});for(j=V.getCursor(),z=$.length;j<z;j++)(G=$[j]).beforeBrush&&G.beforeBrush(),G.innerBeforeBrush(),$y(U,G,W,j===z-1),G.innerAfterBrush(),G.afterBrush&&G.afterBrush(),W.prevEl=G;for(var G,K=0,X=H.length;K<X;K++)(G=H[K]).beforeBrush&&G.beforeBrush(),G.innerBeforeBrush(),$y(U,G,W,K===X-1),G.innerAfterBrush(),G.afterBrush&&G.afterBrush(),W.prevEl=G;V.clearTemporalDisplayables(),V.notClear=!0,U.restore()}F&&r&&Uy(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),(n.prevEl=t).__dirty=0,t.__isRendered=!0}}else t.__dirty&=~nn,t.__isRendered=!1}var Hy=new uy,Wy=new zn(100),Gy=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ky(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&Hy.delete(e),t=Hy.get(e);if(t)return t;for(var o,a=D(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),u=(t=("none"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),t),l=[n],c=!0,d=0;d<Gy.length;++d){var f=a[Gy[d]];if(null!=f&&!q(f)&&!H(f)&&!G(f)&&"boolean"!=typeof f){c=!1;break}l.push(f)}c&&(o=l.join(",")+(i?"-svg":""),x=Wy.get(o))&&(i?u.svgElement=x:u.image=x);var p,g=function e(t){if(!t||0===t.length)return[[0,0]];if(G(t))return[[o=Math.ceil(t),o]];for(var n=!0,r=0;r<t.length;++r)if(!G(t[r])){n=!1;break}if(n)return e([t]);var i=[];for(r=0;r<t.length;++r){var o;G(t[r])?(o=Math.ceil(t[r]),i.push([o,o])):(o=B(t[r],(function(e){return Math.ceil(e)}))).length%2==1?i.push(o.concat(o)):i.push(o)}return i}(a.dashArrayX),y=function(e){if(!e||"object"==s(e)&&0===e.length)return[0,0];if(G(e))return[t=Math.ceil(e),t];var t=B(e,(function(e){return Math.ceil(e)}));return e.length%2?t.concat(t):t}(a.dashArrayY),v=function e(t){if(!t||0===t.length)return[["rect"]];if(H(t))return[[t]];for(var n=!0,r=0;r<t.length;++r)if(!H(t[r])){n=!1;break}if(n)return e([t]);var i=[];for(r=0;r<t.length;++r)H(t[r])?i.push([t[r]]):i.push(t[r]);return i}(a.symbol),m=function(e){return B(e,Xy)}(g),_=Xy(y),x=!i&&h.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=function(){for(var e=1,t=0,n=m.length;t<n;++t)e=ro(e,m[t]);var r=1;for(t=0,n=v.length;t<n;++t)r=ro(r,v[t].length);e*=r;var i=_*m.length*v.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();x&&(x.width=w.width*n,x.height=w.height*n,p=x.getContext("2d")),p&&(p.clearRect(0,0,x.width,x.height),a.backgroundColor)&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,x.width,x.height));for(var S=0,k=0;k<y.length;++k)S+=y[k];if(!(S<=0))for(var A=-_,I=0,C=0,T=0;A<w.height;){if(I%2==0){for(var M=C/2%v.length,O=0,P=0,L=0;O<2*w.width;){var E,R,N,F,j,z=0;for(k=0;k<g[T].length;++k)z+=g[T][k];if(z<=0)break;P%2==0&&(R=.5*(1-a.symbolSize),E=O+g[T][P]*R,R=A+y[I]*R,N=g[T][P]*a.symbolSize,F=y[I]*a.symbolSize,j=L/2%v[M].length,function(e,t,o,s,u){var l=i?1:n;u=my(u,e*l,t*l,o*l,s*l,a.color,a.symbolKeepAspect);i?(e=r.painter.renderOneToVNode(u))&&b.children.push(e):qy(p,u)}(E,R,N,F,v[M][j])),O+=g[T][P],++L,++P===g[T].length&&(P=0)}++T===g.length&&(T=0)}A+=y[I],++C,++I===y.length&&(I=0)}return c&&Wy.put(o,x||b),u.image=x,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height,t.rotation=a.rotation,t.scaleX=t.scaleY=i?1:1/n,Hy.set(e,t),e.dirty=!1,t}function Xy(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var Yy=new He,Jy={},Zy=(hy={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},"__flagInMainProcess"),Qy="__pendingUpdate",ev="__needsUpdateStatus",tv=/^[a-zA-Z0-9_]+$/,nv="__connectUpdateStatus";function rv(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return ov(this,e,t);this.id}}function iv(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ov(this,e,t)}}function ov(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),He.prototype[t].apply(e,n)}n(uv,av=He);var av,sv=uv;function uv(){return null!==av&&av.apply(this,arguments)||this}dy=sv.prototype;var lv,cv,hv,dv,fv,pv,gv,yv,vv,mv,_v,xv,bv,wv,Sv,kv,Av,Iv,Cv,Tv=(dy.on=iv("on"),dy.off=iv("off"),n(Mv,Cv=He),Mv.prototype._onframe=function(){if(!this._disposed){Iv(this);var e=this._scheduler;if(this[Qy]){var t=this[Qy].silent;this[Zy]=!0;try{lv(this),dv.update.call(this,null,this[Qy].updateParams)}catch(e){throw this[Zy]=!1,this[Qy]=null,e}this._zr.flush(),this[Zy]=!1,this[Qy]=null,yv.call(this,t),vv.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date}while(e.performSeriesTasks(r),e.performDataProcessorTasks(r),pv(this,r),e.performVisualTasks(r),wv(this,this._model,i,"remain",{}),0<(n-=+new Date-o)&&e.unfinished);e.unfinished||this._zr.flush()}}},Mv.prototype.getDom=function(){return this._dom},Mv.prototype.getId=function(){return this.id},Mv.prototype.getZr=function(){return this._zr},Mv.prototype.isSSR=function(){return this._ssr},Mv.prototype.setOption=function(e,t,n){if(!this[Zy])if(this._disposed)this.id;else{K(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this[Zy]=!0,this._model&&!t||(t=new df(this._api),a=this._theme,(s=this._model=new ef).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,t)),this._model.setOption(e,{replaceMerge:i},jv);var r,i,o,a,s={seriesTransition:o,optionChanged:!0};if(n)this[Qy]={silent:r,updateParams:s},this[Zy]=!1,this.getZr().wakeUp();else{try{lv(this),dv.update.call(this,null,s)}catch(e){throw this[Qy]=null,this[Zy]=!1,e}this._ssr||this._zr.flush(),this[Qy]=null,this[Zy]=!1,yv.call(this,r),vv.call(this,r)}}},Mv.prototype.setTheme=function(){},Mv.prototype.getModel=function(){return this._model},Mv.prototype.getOption=function(){return this._model&&this._model.getOption()},Mv.prototype.getWidth=function(){return this._zr.getWidth()},Mv.prototype.getHeight=function(){return this._zr.getHeight()},Mv.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||o.hasGlobalWindow&&window.devicePixelRatio||1},Mv.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},Mv.prototype.renderToCanvas=function(e){return this._zr.painter.getRenderedCanvas({backgroundColor:(e=e||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},Mv.prototype.renderToSVGString=function(e){return this._zr.painter.renderToString({useViewBox:(e=e||{}).useViewBox})},Mv.prototype.getSvgDataURL=function(){var e;if(o.svgSupported)return N((e=this._zr).storage.getDisplayList(),(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()},Mv.prototype.getDataURL=function(e){var t,n,r,i;if(!this._disposed)return i=(e=e||{}).excludeComponents,t=this._model,n=[],r=this,N(i,(function(e){t.eachComponent({mainType:e},(function(e){e=r._componentsMap[e.__viewId],e.group.ignore||(n.push(e),e.group.ignore=!0)}))})),i="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png")),N(n,(function(e){e.group.ignore=!1})),i;this.id},Mv.prototype.getConnectedDataURL=function(e){var t,n,r,i,o,a,s,u,l,c,d,f,p,g,y;if(!this._disposed)return t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,$v[n]?(a=o=1/0,u=s=-1/0,l=[],c=e&&e.pixelRatio||this.getDevicePixelRatio(),N(qv,(function(c,h){var d;c.group===n&&(d=t?c.getZr().painter.getSvgDom().innerHTML:c.renderToCanvas(C(e)),c=c.getDom().getBoundingClientRect(),o=r(c.left,o),a=r(c.top,a),s=i(c.right,s),u=i(c.bottom,u),l.push({dom:d,left:c.left,top:c.top}))})),d=(s*=c)-(o*=c),f=(u*=c)-(a*=c),p=h.createCanvas(),(g=Ni(p,{renderer:t?"svg":"canvas"})).resize({width:d,height:f}),t?(y="",N(l,(function(e){var t=e.left-o,n=e.top-a;y+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()):(e.connectedBackgroundColor&&g.add(new Ss({shape:{x:0,y:0,width:d,height:f},style:{fill:e.connectedBackgroundColor}})),N(l,(function(e){e=new gs({style:{x:e.left*c-o,y:e.top*c-a,image:e.dom}}),g.add(e)})),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png")))):this.getDataURL(e);this.id},Mv.prototype.convertToPixel=function(e,t){return fv(this,"convertToPixel",e,t)},Mv.prototype.convertFromPixel=function(e,t){return fv(this,"convertFromPixel",e,t)},Mv.prototype.containPixel=function(e,t){var n;if(!this._disposed)return N(wo(this._model,e),(function(e,r){0<=r.indexOf("Models")&&N(e,(function(e){var i=e.coordinateSystem;i&&i.containPoint?n=n||!!i.containPoint(t):"seriesModels"===r&&(i=this._chartsMap[e.__viewId])&&i.containPoint&&(n=n||i.containPoint(t,e))}),this)}),this),!!n;this.id},Mv.prototype.getVisual=function(e,t){e=wo(this._model,e,{defaultMainType:"series"});var n=e.seriesModel.getData();e=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?n.indexOfRawIndex(e.dataIndex):null;if(null!=e){var r=n,i=e,o=t;switch(o){case"color":return r.getItemVisual(i,"style")[r.getVisual("drawType")];case"opacity":return r.getItemVisual(i,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(i,o)}}else{var a=n,s=t;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},Mv.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},Mv.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},Mv.prototype._initEvents=function(){var e,t,n,r=this;N(Rv,(function(e){function t(t){var n,i,o,a=r.getModel(),s=t.target;"globalout"===e?n={}:s&&oy(s,(function(e){var t;e=zs(e);return e&&null!=e.dataIndex?(t=e.dataModel||a.getSeriesByIndex(e.seriesIndex),n=t&&t.getDataParams(e.dataIndex,e.dataType,s)||{},1):e.eventData&&(n=M({},e.eventData),1)}),!0),n&&(i=n.componentType,o=n.componentIndex,"markLine"!==i&&"markPoint"!==i&&"markArea"!==i||(i="series",o=n.seriesIndex),o=(i=i&&null!=o&&a.getComponent(i,o))&&r["series"===i.mainType?"_chartsMap":"_componentsMap"][i.__viewId],n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:n,model:i,view:o},r.trigger(e,n))}t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)})),N(Bv,(function(e,t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),N(["selectchanged"],(function(e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),e=this._messageCenter,n=(t=this)._api,e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(iy("map","selectchanged",t,r,e),iy("pie","selectchanged",t,r,e)):"select"===e.fromAction?(iy("map","selected",t,r,e),iy("pie","selected",t,r,e)):"unselect"===e.fromAction&&(iy("map","unselected",t,r,e),iy("pie","unselected",t,r,e))}))},Mv.prototype.isDisposed=function(){return this._disposed},Mv.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},Mv.prototype.dispose=function(){var e,t,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&Io(this.getDom(),Gv,""),t=(e=this)._api,n=e._model,N(e._componentsViews,(function(e){e.dispose(n,t)})),N(e._chartsViews,(function(e){e.dispose(n,t)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete qv[e.id])},Mv.prototype.resize=function(e){if(!this[Zy])if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){t=t.resetOption("media");var n=e&&e.silent;this[Qy]&&(null==n&&(n=this[Qy].silent),t=!0,this[Qy]=null),this[Zy]=!0;try{t&&lv(this),dv.update.call(this,{type:"resize",animation:M({duration:0},e&&e.animation)})}catch(e){throw this[Zy]=!1,e}this[Zy]=!1,yv.call(this,n),vv.call(this,n)}}},Mv.prototype.showLoading=function(e,t){this._disposed?this.id:(K(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Vv[e]&&(e=Vv[e](this._api,t),t=this._zr,this._loadingFX=e,t.add(e)))},Mv.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},Mv.prototype.makeActionFromEvent=function(e){var t=M({},e);return t.type=Bv[e.type],t},Mv.prototype.dispatchAction=function(e,t){var n;this._disposed?this.id:(K(t)||(t={silent:!!t}),Nv[e.type]&&this._model&&(this[Zy]?this._pendingActions.push(e):(n=t.silent,gv.call(this,e,n),(e=t.flush)?this._zr.flush():!1!==e&&o.browser.weChat&&this._throttledZrFlush(),yv.call(this,n),vv.call(this,n))))},Mv.prototype.updateLabelLayout=function(){Yy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},Mv.prototype.appendData=function(e){var t;this._disposed?this.id:(t=e.seriesIndex,this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp())},Mv.internalField=(lv=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),cv(e,!0),cv(e,!1),t.plan()},cv=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,u=0;u<i.length;u++)i[u].__alive=!1;function l(e){var u,l=e.__requireNewView,c=(e.__requireNewView=!1,"_ec_"+e.id+"_"+e.type);l=!l&&o[c];l||(u=Oo(e.type),(l=new(t?yg.getClass(u.main,u.sub):bg.getClass(u.sub))).init(n,s),o[c]=l,i.push(l),a.add(l.group)),e.__viewId=l.__id=c,l.__alive=!0,l.__model=e,l.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},t||r.prepareView(l,e,n,s)}for(t?n.eachComponent((function(e,t){"series"!==e&&l(t)})):n.eachSeries(l),u=0;u<i.length;){var c=i[u];c.__alive?u++:(t||c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(u,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},hv=function(e,t,n,r,i){var o,a,s=e._model;function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,s,e._api,n)}s.setUpdatePayload(n),r?((o={})[r+"Id"]=n[r+"Id"],o[r+"Index"]=n[r+"Index"],o[r+"Name"]=n[r+"Name"],o={mainType:r,query:o},i&&(o.subType=i),null!=(i=n.excludeSeriesId)&&(a=ve(),N(so(i),(function(e){e=go(e,null),null!=e&&a.set(e,!0)}))),s&&s.eachComponent(o,(function(t){var r,i,o=a&&null!=a.get(t.id);if(!o)if(Nu(n))if(t instanceof sg){if(n.type===Ys&&!n.notBlur&&!t.get(["emphasis","disabled"])){o=t;var s=n,u=e._api,l=o.seriesIndex,c=o.getData(s.dataType);if(c){s=(q(s=_o(c,s))?s[0]:s)||0;var h=c.getItemGraphicEl(s);if(!h)for(var d=c.count(),f=0;!h&&f<d;)h=c.getItemGraphicEl(f++);h?ku(l,(s=zs(h)).focus,s.blurScope,u):(s=o.get(["emphasis","focus"]),o=o.get(["emphasis","blurScope"]),null!=s&&ku(l,s,o,u))}}}else l=Iu(t.mainType,t.componentIndex,n.name,e._api),s=l.focusSelf,o=l.dispatchers,n.type===Ys&&s&&!n.notBlur&&Au(t.mainType,t.componentIndex,e._api),o&&N(o,(function(e){(n.type===Ys?vu:mu)(e)}));else Ru(n)&&t instanceof sg&&(u=t,o=n,e._api,Ru(o)&&(r=o.dataType,q(i=_o(u.getData(r),o))||(i=[i]),u[o.type===eu?"toggleSelect":o.type===Zs?"select":"unselect"](i,r)),Cu(t),Av(e))}),e),s&&s.eachComponent(o,(function(t){a&&null!=a.get(t.id)||u(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)):N([].concat(e._componentsViews).concat(e._chartsViews),u)},dv={prepareAndUpdate:function(e){lv(this),dv.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(e,t){var n=this._model,r=this._api,i=this._zr,o=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(e),a.restoreData(n,e),a.performSeriesTasks(n),o.create(n,r),a.performDataProcessorTasks(n,e),pv(this,n),o.update(n,r),Dv(n),a.performVisualTasks(n,e),xv(this,n,r,e,t),o=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),i.setBackgroundColor(o),null!=a&&"auto"!==a&&i.setDarkMode(a),Yy.trigger("afterupdate",n,r))},updateTransform:function(e){var t,n,r=this,i=this._model,o=this._api;i&&(i.setUpdatePayload(e),t=[],i.eachComponent((function(n,a){"series"!==n&&(n=r.getViewOfComponentModel(a))&&n.__alive&&(!n.updateTransform||(a=n.updateTransform(a,i,o,e))&&a.update)&&t.push(n)})),n=ve(),i.eachSeries((function(t){var a=r._chartsMap[t.__viewId];(!a.updateTransform||(a=a.updateTransform(t,i,o,e))&&a.update)&&n.set(t.uid,1)})),Dv(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:n}),wv(this,i,o,e,{},n),Yy.trigger("afterupdate",i,o))},updateView:function(e){var t=this._model;t&&(t.setUpdatePayload(e),bg.markUpdateMethod(e,"updateView"),Dv(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),xv(this,t,this._api,e,{}),Yy.trigger("afterupdate",t,this._api))},updateVisual:function(e){var t=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries((function(e){e.getData().clearAllVisual()})),bg.markUpdateMethod(e,"updateVisual"),Dv(n),this._scheduler.performVisualTasks(n,e,{visualType:"visual",setDirty:!0}),n.eachComponent((function(r,i){"series"!==r&&(r=t.getViewOfComponentModel(i))&&r.__alive&&r.updateVisual(i,n,t._api,e)})),n.eachSeries((function(r){t._chartsMap[r.__viewId].updateVisual(r,n,t._api,e)})),Yy.trigger("afterupdate",n,this._api))},updateLayout:function(e){dv.update.call(this,e)}},fv=function(e,t,n,r){if(e._disposed)e.id;else for(var i=e._model,o=e._coordSysMgr.getCoordinateSystems(),a=wo(i,n),s=0;s<o.length;s++){var u=o[s];if(u[t]&&null!=(u=u[t](i,a,r)))return u}},pv=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},gv=function(e,t){var n,r,i=this,o=this.getModel(),a=e.type,s=e.escapeConnect,u=Nv[a],l=u.actionInfo,c=(l.update||"update").split(":"),h=c.pop(),d=null!=c[0]&&Oo(c[0]),f=(c=(this[Zy]=!0,[e]),!1),p=(e.batch&&(f=!0,c=B(e.batch,(function(t){return(t=D(M({},t),e)).batch=null,t}))),[]),g=Ru(e),y=Nu(e);if(y&&Su(this._api),N(c,(function(t){var r,o;(n=(n=u.action(t,i._model,i._api))||M({},t)).type=l.event||n.type,p.push(n),y?(r=(o=So(e)).queryOptionMap,o=o.mainTypeSpecified?r.keys()[0]:"series",hv(i,h,t,o),Av(i)):g?(hv(i,h,t,"series"),Av(i)):d&&hv(i,h,t,d.main,d.sub)})),"none"!==h&&!y&&!g&&!d)try{this[Qy]?(lv(this),dv.update.call(this,e),this[Qy]=null):dv[h].call(this,e)}catch(t){throw this[Zy]=!1,t}n=f?{type:l.event||a,escapeConnect:s,batch:p}:p[0],this[Zy]=!1,t||((c=this._messageCenter).trigger(n.type,n),g&&(f={type:"selectchanged",escapeConnect:s,selected:(r=[],o.eachSeries((function(e){N(e.getAllData(),(function(t){t.data;t=t.type;var n=e.getSelectedDataIndices();0<n.length&&(n={dataIndex:n,seriesIndex:e.seriesIndex},null!=t&&(n.dataType=t),r.push(n))}))})),r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e},c.trigger(f.type,f)))},yv=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();gv.call(this,n,e)}},vv=function(e){e||this.trigger("updated")},mv=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Qy]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},_v=function(e,t){e.on("mouseover",(function(e){var n,r,i,o,a=oy(e.target,Eu);a&&(a=a,n=e,e=t._api,r=zs(a),i=(o=Iu(r.componentMainType,r.componentIndex,r.componentHighDownName,e)).dispatchers,o=o.focusSelf,i?(o&&Au(r.componentMainType,r.componentIndex,e),N(i,(function(e){return gu(e,n)}))):(ku(r.seriesIndex,r.focus,r.blurScope,e),"self"===r.focus&&Au(r.componentMainType,r.componentIndex,e),gu(a,n)),Av(t))})).on("mouseout",(function(e){var n,r,i=oy(e.target,Eu);i&&(i=i,n=e,Su(e=t._api),(r=Iu((r=zs(i)).componentMainType,r.componentIndex,r.componentHighDownName,e).dispatchers)?N(r,(function(e){return yu(e,n)})):yu(i,n),Av(t))})).on("click",(function(e){var n;e=oy(e.target,(function(e){return null!=zs(e).dataIndex}),!0);e&&(n=e.selected?"unselect":"select",e=zs(e),t._api.dispatchAction({type:n,dataType:e.dataType,dataIndexInside:e.dataIndex,seriesIndex:e.seriesIndex,isFromClick:!0}))}))},xv=function(e,t,n,r,i){var o,a,s,u,l,c,h;l=[],h=!(c=[]),(o=t).eachComponent((function(e,t){var n=t.get("zlevel")||0,r=t.get("z")||0,i=t.getZLevelKey();h=h||!!i,("series"===e?c:l).push({zlevel:n,z:r,idx:t.componentIndex,type:e,key:i})})),h&&(tn(a=l.concat(c),(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),N(a,(function(e){var t=o.getComponent(e.type,e.idx),n=e.zlevel;e=e.key;null!=s&&(n=Math.max(s,n)),e?(n===s&&e!==u&&n++,u=e):u&&(n===s&&n++,u=""),s=n,t.setZLevel(n)}))),bv(e,t,n,r,i),N(e._chartsViews,(function(e){e.__alive=!1})),wv(e,t,n,r,i),N(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},bv=function(e,t,n,r,i,o){N(o||e._componentsViews,(function(e){var i=e.__model;Lv(0,e),e.render(i,t,n,r),Pv(i,e),Ev(i,e)}))},wv=function(e,t,n,r,i,a){var s,u,l,c,h=e._scheduler,d=(i=M(i||{},{updatedSeries:t.getSeries()}),Yy.trigger("series:beforeupdate",t,n,i),!1);t.eachSeries((function(t){var n,i=e._chartsMap[t.__viewId],o=(i.__alive=!0,i.renderTask);h.updatePayload(o,r),Lv(0,i),a&&a.get(t.uid)&&o.dirty(),o.perform(h.getPerformArgs(o))&&(d=!0),i.group.silent=!!t.get("silent"),o=i,n=t.get("blendMode")||null,o.eachRendered((function(e){e.isGroup||(e.style.blend=n)})),Cu(t)})),h.unfinished=d||h.unfinished,Yy.trigger("series:layoutlabels",t,n,i),Yy.trigger("series:transition",t,n,i),t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];Pv(t,n),Ev(t,n)})),u=t,l=(s=e)._zr.storage,c=0,l.traverse((function(e){e.isGroup||c++})),c>u.get("hoverLayerThreshold")&&!o.node&&!o.worker&&u.eachSeries((function(e){e.preventUsingHoverLayer||(e=s._chartsMap[e.__viewId]).__alive&&e.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))})),Yy.trigger("series:afterupdate",t,n,i)},Av=function(e){e[ev]=!0,e.getZr().wakeUp()},Iv=function(e){e[ev]&&(e.getZr().storage.traverse((function(e){kc(e)||Ov(e)})),e[ev]=!1)},Sv=function(e){return n(t,r=af),t.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},t.prototype.enterEmphasis=function(t,n){vu(t,n),Av(e)},t.prototype.leaveEmphasis=function(t,n){mu(t,n),Av(e)},t.prototype.enterBlur=function(t){cu(t,ou),Av(e)},t.prototype.leaveBlur=function(t){_u(t),Av(e)},t.prototype.enterSelect=function(t){xu(t),Av(e)},t.prototype.leaveSelect=function(t){bu(t),Av(e)},t.prototype.getModel=function(){return e.getModel()},t.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},new t(e);function t(){return null!==r&&r.apply(this,arguments)||this}var r},void(kv=function(e){function t(e,t){for(var n=0;n<e.length;n++)e[n][nv]=t}N(Bv,(function(n,r){e._messageCenter.on(r,(function(n){var r,i;!$v[e.group]||0===e[nv]||n&&n.escapeConnect||(r=e.makeActionFromEvent(n),i=[],N(qv,(function(t){t!==e&&t.group===e.group&&i.push(t)})),t(i,0),N(i,(function(e){1!==e[nv]&&e.dispatchAction(r)})),t(i,2))}))}))})),Mv);function Mv(e,t,n){var r=Cv.call(this,new Qg)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],n=n||{},H(t)&&(t=Uv[t]),r._dom=e,n.ssr&&Fi((function(e){e=zs(e);var t,n=e.dataIndex;if(null!=n)return(t=ve()).set("series_index",e.seriesIndex),t.set("data_index",n),e.ssrType&&t.set("ssr_type",e.ssrType),t})),e=r._zr=Ni(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:re(n.useDirtyRect,!1),useCoarsePointer:re(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize}),r._ssr=n.ssr,r._throttledZrFlush=Tg(U(e.flush,e),17),(t=C(t))&&Pf(t,!0),r._theme=t,r._locale=H(t=n.locale||Th)?(n=Ih[t.toUpperCase()]||{},t===Sh||t===kh?C(n):T(C(n),C(Ih[Ah]),!1)):T(C(t),C(Ih[Ah]),!1),r._coordSysMgr=new lf,n=r._api=Sv(r);function i(e,t){return e.__prio-t.__prio}return tn(zv,i),tn(Fv,i),r._scheduler=new Ng(r,n,Fv,zv),r._messageCenter=new sv,r._initEvents(),r.resize=U(r.resize,r),e.animation.on("frame",r._onframe,r),mv(e,r),_v(e,r),ce(r),r}function Dv(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function Ov(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),e.hoverState===Gs&&e.states.emphasis?t.push("emphasis"):e.hoverState===Ws&&e.states.blur&&t.push("blur"),e.useStates(t)}function Pv(e,t){var n,r;e.preventAutoZ||(n=e.get("z")||0,r=e.get("zlevel")||0,t.eachRendered((function(e){return function e(t,n,r,i){var o=t.getTextContent(),a=t.getTextGuideLine(),s=t.isGroup;if(s)for(var u=t.childrenRef(),l=0;l<u.length;l++)i=Math.max(e(u[l],n,r,i),i);else t.z=n,t.zlevel=r,i=Math.max(t.z2,i);return o&&(o.z=n,o.zlevel=r,isFinite(i))&&(o.z2=i+2),a&&(s=t.textGuideLineConfig,a.z=n,a.zlevel=r,isFinite(i))&&(a.z2=i+(s&&s.showAbove?1:-1)),i}(e,n,r,-1/0),!0})))}function Lv(e,t){t.eachRendered((function(e){var t,n;kc(e)||(t=e.getTextContent(),n=e.getTextGuideLine(),e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null))}))}function Ev(e,t){var n=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),i=(e=n.get("duration"),0<e?{duration:e,delay:n.get("delay"),easing:n.get("easing")}:null);t.eachRendered((function(e){var t,n,o;e.states&&e.states.emphasis&&(kc(e)||(e instanceof as&&((o=qs(n=e)).normalFill=n.style.fill,o.normalStroke=n.style.stroke,n=n.states.select||{},o.selectFill=n.style&&n.style.fill||null,o.selectStroke=n.style&&n.style.stroke||null),e.__dirty&&(o=e.prevStates)&&e.useStates(o),r&&(e.stateTransition=i,n=e.getTextContent(),t=e.getTextGuideLine(),n&&(n.stateTransition=i),t)&&(t.stateTransition=i),e.__dirty&&Ov(e)))}))}fy=Tv.prototype;var Rv=(fy.on=rv("on"),fy.off=rv("off"),fy.one=function(e,t,n){var r=this;this.on.call(this,e,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,n)}),n)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),Nv={},Bv={},Fv=[],jv=[],zv=[],Uv={},Vv={},qv={},$v={},Hv=+new Date,Wv=+new Date,Gv="_echarts_instance_";function Kv(e){$v[e]=!1}function Xv(e){return qv[(t=Gv,(e=e).getAttribute?e.getAttribute(t):e[t])];var t}function Yv(e,t){Uv[e]=t}function Jv(e){P(jv,e)<0&&jv.push(e)}function Zv(e,t){sm(Fv,e,t,2e3)}function Qv(e){tm("afterinit",e)}function em(e){tm("afterupdate",e)}function tm(e,t){Yy.on(e,t)}function nm(e,t,n){$(t)&&(n=t,t="");var r=K(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,Bv[t]||(se(tv.test(r)&&tv.test(t)),Nv[r]||(Nv[r]={action:n,actionInfo:e}),Bv[t]=r)}function rm(e,t){lf.register(e,t)}function im(e,t){sm(zv,e,t,1e3,"layout")}function om(e,t){sm(zv,e,t,3e3,"visual")}cy=Kv;var am=[];function sm(e,t,n,r,i){($(t)||K(t))&&(n=t,t=r),0<=P(am,n)||(am.push(n),(r=Ng.wrapStageHandler(n,i)).__prio=t,r.__raw=n,e.push(r))}function um(e,t){Vv[e]=t}function lm(e,t,n){var r=Jy.registerMap;r&&r(e,t,n)}function cm(e){var t=(e=C(e)).type,n=(t||io(""),t.split(":")),r=(2!==n.length&&io(""),!1);"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,Bp.set(t,e)}function hm(e){return null==e?0:e.length||1}function dm(e){return e}om(2e3,zo),om(4500,sh),om(4500,Rh),om(2e3,fh),om(4500,lh),om(7e3,(function(e,t){e.eachRawSeries((function(n){var r;!e.isSeriesFiltered(n)&&((r=n.getData()).hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=Ky(n,t))})),n=r.getVisual("decal"))&&(r.getVisual("style").decal=Ky(n,t))}))})),Jv(Pf),Zv(900,(function(e){var t=ve();e.eachSeries((function(e){var n,r=e.get("stack");r&&(r=t.get(r)||t.set(r,[]),(e={stackResultDimension:(n=e.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:e}).stackedDimension)&&(e.isStackedByIndex||e.stackedByDimension)&&(r.length&&n.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(e))})),t.each(Lf)})),um("default",(function(e,t){D(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,r=new Mi,i=new Ss({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4}),o=(r.add(i),new Ts({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001})),a=new Ss({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return r.add(a),t.showSpinner&&((n=new Ql({shape:{startAngle:-Rg/2,endAngle:-Rg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Rg/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*Rg/2}).delay(300).start("circularInOut"),r.add(n)),r.resize=function(){var r=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,u=(r=(e.getWidth()-2*s-(t.showSpinner&&r?10:0)-r)/2-(t.showSpinner&&r?0:5+r/2)+(t.showSpinner?0:r/2)+(r?0:s),e.getHeight()/2);t.showSpinner&&n.setShape({cx:r,cy:u}),a.setShape({x:r-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r})),nm({type:Ys,event:Ys,update:Ys},we),nm({type:Js,event:Js,update:Js},we),nm({type:Zs,event:Zs,update:Zs},we),nm({type:Qs,event:Qs,update:Qs},we),nm({type:eu,event:eu,update:eu},we),Yv("light",gh),Yv("dark",hh),pm.prototype.add=function(e){return this._add=e,this},pm.prototype.update=function(e){return this._update=e,this},pm.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},pm.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},pm.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},pm.prototype.remove=function(e){return this._remove=e,this},pm.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},pm.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a,s=r[o],u=n[s],l=hm(u);1<l?(a=u.shift(),1===u.length&&(n[s]=u[0]),this._update&&this._update(a,o)):1===l?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},pm.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],u=n[s],l=r[s],c=hm(u),h=hm(l);if(1<c&&1===h)this._updateManyToOne&&this._updateManyToOne(l,u),r[s]=null;else if(1===c&&1<h)this._updateOneToMany&&this._updateOneToMany(l,u),r[s]=null;else if(1===c&&1===h)this._update&&this._update(l,u),r[s]=null;else if(1<c&&1<h)this._updateManyToMany&&this._updateManyToMany(l,u),r[s]=null;else if(1<c)for(var d=0;d<c;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,r)},pm.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=hm(i);if(1<o)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},pm.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a,s,u="_ec_"+this[r](e[o],o);i||(n[o]=u),t&&(0===(s=hm(a=t[u]))?(t[u]=o,i&&n.push(u)):1===s?t[u]=[a,o]:a.push(o))}};var fm=pm;function pm(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||dm,this._newKeyGetter=r||dm,this.context=i,this._diffModeMultiple="multiple"===o}ym.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},ym.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var gm=ym;function ym(e,t){this._encode=e,this._schema=t}function vm(e,t){var n={},r=n.encode={},i=ve(),o=[],a=[],s={},u=(N(e.dimensions,(function(t){var n,u,l=e.getDimensionInfo(t),c=l.coordDim;c&&(n=l.coordDimIndex,mm(r,c)[n]=t,l.isExtraCoord||(i.set(c,1),"ordinal"!==(u=l.type)&&"time"!==u&&(o[0]=t),mm(s,c)[n]=e.getDimensionIndex(l.name)),l.defaultTooltip)&&a.push(t),Td.each((function(e,t){var n=mm(r,t);t=l.otherDims[t];null!=t&&!1!==t&&(n[t]=l.name)}))})),[]),l={},c=(i.each((function(e,t){var n=r[t];l[t]=n[0],u=u.concat(n)})),n.dataDimsOnCoord=u,n.dataDimIndicesOnCoord=B(u,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=l,r.label);c&&c.length&&(o=c.slice()),c=r.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new gm(s,t),n}function mm(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}var _m=function(e){this.otherDims={},null!=e&&M(this,e)},xm=xo(),bm={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},wm=(Sm.prototype.isDimensionOmitted=function(){return this._dimOmitted},Sm.prototype._updateDimOmitted=function(e){(this._dimOmitted=e)&&!this._dimNameMap&&(this._dimNameMap=Im(this.source))},Sm.prototype.getSourceDimensionIndex=function(e){return re(this._dimNameMap.get(e),-1)},Sm.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},Sm.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=qf(this.source),n=!(30<e),r="",i=[],o=0,a=0;o<e;o++){var s,u=void 0,l=void 0,c=void 0,h=this.dimensions[a];h&&h.storeDimIndex===o?(u=t?h.name:null,l=h.type,c=h.ordinalMeta,a++):(s=this.getSourceDimension(o))&&(u=t?s.name:null,l=s.type),i.push({property:u,type:l,ordinalMeta:c}),!t||null==u||h&&h.isCalculationCoord||(r+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),r=r+"$"+(bm[l]||"f"),c&&(r+=c.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},Sm.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];i&&i.storeDimIndex===t?(i.isCalculationCoord||(r=i.name),n++):(i=this.getSourceDimension(t))&&(r=i.name),e.push(r)}return e},Sm.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Sm);function Sm(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}function km(e){return e instanceof wm}function Am(e){for(var t=ve(),n=0;n<(e||[]).length;n++){var r=e[n];r=K(r)?r.name:r;null!=r&&null==t.get(r)&&t.set(r,n)}return t}function Im(e){var t=xm(e);return t.dimNameMap||(t.dimNameMap=Am(e.dimensionsDefine))}var Cm,Tm,Mm,Dm,Om,Pm,Lm,Em=K,Rm=B,Nm="undefined"==typeof Int32Array?Array:Int32Array,Bm=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Fm=["_approximateExtent"],jm=(zm.prototype.getDimension=function(e){var t;return null==(t=this._recognizeDimIndex(e))?e:(t=e,this._dimOmitted?null!=(e=this._dimIdxToName.get(t))?e:(e=this._schema.getSourceDimension(t))?e.name:void 0:this.dimensions[t])},zm.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);return null!=t?t:null==e?-1:(t=this._getDimInfo(e))?t.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},zm.prototype._recognizeDimIndex=function(e){if(G(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},zm.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},zm.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},zm.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},zm.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},zm.prototype.mapDimension=function(e,t){var n=this._dimSummary;return null==t?n.encodeFirstDimNotExtra[e]:(n=n.encode[e])?n[t]:null},zm.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},zm.prototype.getStore=function(){return this._store},zm.prototype.initData=function(e,t,n){var r,i,o=this;(r=e instanceof Kp?e:r)||(i=this.dimensions,e=Bf(e)||R(e)?new Gf(e,i.length):e,r=new Kp,i=Rm(i,(function(e){return{type:o._dimInfos[e].type,property:e}})),r.initData(e,i,n)),this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=vm(this,this._schema),this.userOutput=this._dimSummary.userOutput},zm.prototype.appendData=function(e){e=this._store.appendData(e),this._doInit(e[0],e[1])},zm.prototype.appendValues=function(e,t){e=this._store.appendValues(e,t.length);var n=e.start,r=e.end,i=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=n;o<r;o++)this._nameList[o]=t[o-n],i&&Lm(this,o)},zm.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},zm.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==Ld&&!e.fillStorage},zm.prototype._doInit=function(e,t){if(!(t<=e)){var n=this._store.getProvider(),r=(this._updateOrdinalMeta(),this._nameList),i=this._idList;if(n.getSource().sourceFormat===Md&&!n.pure)for(var o=[],a=e;a<t;a++){var s,u=n.getItem(a,o);this.hasItemOption||!K(s=u)||s instanceof Array||(this.hasItemOption=!0),u&&(s=u.name,null==r[a]&&null!=s&&(r[a]=go(s,null)),u=u.id,null==i[a])&&null!=u&&(i[a]=go(u,null))}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)Lm(this,a);Cm(this)}},zm.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},zm.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},zm.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},zm.prototype.setCalculationInfo=function(e,t){Em(e)?M(this._calculationInfo,e):this._calculationInfo[e]=t},zm.prototype.getName=function(e){e=this.getRawIndex(e);var t=this._nameList[e];return null==(t=null==t&&null!=this._nameDimIdx?Mm(this,this._nameDimIdx,e):t)?"":t},zm.prototype._getCategory=function(e,t){return t=this._store.get(e,t),e=this._store.getOrdinalMeta(e),e?e.categories[t]:t},zm.prototype.getId=function(e){return Tm(this,this.getRawIndex(e))},zm.prototype.count=function(){return this._store.count()},zm.prototype.get=function(e,t){var n=this._store;e=this._dimInfos[e];if(e)return n.get(e.storeDimIndex,t)},zm.prototype.getByRawIndex=function(e,t){var n=this._store;e=this._dimInfos[e];if(e)return n.getByRawIndex(e.storeDimIndex,t)},zm.prototype.getIndices=function(){return this._store.getIndices()},zm.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},zm.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},zm.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},zm.prototype.getValues=function(e,t){var n=this,r=this._store;return q(e)?r.getValues(Rm(e,(function(e){return n._getStoreDimIndex(e)})),t):r.getValues(e)},zm.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},zm.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},zm.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},zm.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},zm.prototype.rawIndexOf=function(e,t){return e=(e&&this._invertedIndicesMap[e])[t],null==e||isNaN(e)?-1:e},zm.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},zm.prototype.each=function(e,t,n){$(e)&&(n=t,t=e,e=[]),n=n||this,e=Rm(Dm(e),this._getStoreDimIndex,this),this._store.each(e,n?U(t,n):t)},zm.prototype.filterSelf=function(e,t,n){return $(e)&&(n=t,t=e,e=[]),n=n||this,e=Rm(Dm(e),this._getStoreDimIndex,this),this._store=this._store.filter(e,n?U(t,n):t),this},zm.prototype.selectRange=function(e){var t=this,n={};return N(z(e),(function(r){var i=t._getStoreDimIndex(r);n[i]=e[r]})),this._store=this._store.selectRange(n),this},zm.prototype.mapArray=function(e,t,n){$(e)&&(n=t,t=e,e=[]);var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n=n||this),r},zm.prototype.map=function(e,t,n,r){return n=n||r||this,r=Rm(Dm(e),this._getStoreDimIndex,this),e=Pm(this),e._store=this._store.map(r,n?U(t,n):t),e},zm.prototype.modify=function(e,t,n,r){n=n||r||this,r=Rm(Dm(e),this._getStoreDimIndex,this),this._store.modify(r,n?U(t,n):t)},zm.prototype.downSample=function(e,t,n,r){var i=Pm(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},zm.prototype.lttbDownSample=function(e,t){var n=Pm(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},zm.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},zm.prototype.getItemModel=function(e){var t=this.hostModel;e=this.getRawDataItem(e);return new mh(e,t,t&&t.ecModel)},zm.prototype.diff=function(e){var t=this;return new fm(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return Tm(e,t)}),(function(e){return Tm(t,e)}))},zm.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},zm.prototype.setVisual=function(e,t){this._visual=this._visual||{},Em(e)?M(this._visual,e):this._visual[e]=t},zm.prototype.getItemVisual=function(e,t){return e=this._itemVisuals[e],e=e&&e[t],null==e?this.getVisual(t):e},zm.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},zm.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];n=(r=r||(n[e]={}))[t];return null==n&&(q(n=this.getVisual(t))?n=n.slice():Em(n)&&(n=M({},n)),r[t]=n),n},zm.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Em(t)?M(r,t):r[t]=n},zm.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},zm.prototype.setLayout=function(e,t){Em(e)?M(this._layout,e):this._layout[e]=t},zm.prototype.getLayout=function(e){return this._layout[e]},zm.prototype.getItemLayout=function(e){return this._itemLayouts[e]},zm.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?M(this._itemLayouts[e]||{},t):t},zm.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},zm.prototype.setItemGraphicEl=function(e,t){var n,r,i,o,a=this.hostModel&&this.hostModel.seriesIndex;n=a,r=this.dataType,i=e,(a=t)&&((o=zs(a)).dataIndex=i,o.dataType=r,o.seriesIndex=n,o.ssrType="chart","group"===a.type)&&a.traverse((function(e){e=zs(e),e.seriesIndex=n,e.dataIndex=i,e.dataType=r,e.ssrType="chart"})),this._graphicEls[e]=t},zm.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},zm.prototype.eachItemGraphicEl=function(e,t){N(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},zm.prototype.cloneShallow=function(e){return e=e||new zm(this._schema||Rm(this.dimensions,this._getDimInfo,this),this.hostModel),Om(e,this),e._store=this._store,e},zm.prototype.wrapMethod=function(e,t){var n=this[e];$(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(oe(arguments)))})},zm.internalField=(Cm=function(e){var t=e._invertedIndicesMap;N(t,(function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new Nm(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},Mm=function(e,t,n){return go(e._getCategory(t,n),null)},Tm=function(e,t){var n=e._idList[t];return null==(n=null==n&&null!=e._idDimIdx?Mm(e,e._idDimIdx,t):n)?"e\0\0"+t:n},Dm=function(e){return q(e)?e:null!=e?[e]:[]},Pm=function(e){var t=new zm(e._schema||Rm(e.dimensions,e._getDimInfo,e),e.hostModel);return Om(t,e),t},Om=function(e,t){N(Bm.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,N(Fm,(function(n){e[n]=C(t[n])})),e._calculationInfo=M({},t._calculationInfo)},void(Lm=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];null==a&&null!=i&&(n[t]=a=Mm(e,i,t)),null==s&&null!=o&&(r[t]=s=Mm(e,o,t)),null==s&&null!=a&&(s=a,1<(i=(n=e._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+i),r[t]=s)})),zm);function zm(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var n,r,i=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),o=(km(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"],{}),a=[],s={},u=!1,l={},c=0;c<n.length;c++){var h=n[c],d=(h=H(h)?new _m({name:h}):h instanceof _m?h:new _m(h),h.name),f=(h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0),h.otherDims=h.otherDims||{});a.push(d),null!=l[d]&&(u=!0),(o[d]=h).createInvertedIndices&&(s[d]=[]),0===f.itemName&&(this._nameDimIdx=c),0===f.itemId&&(this._idDimIdx=c),i&&(h.storeDimIndex=c)}this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(u),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted&&(r=this._dimIdxToName=ve(),N(a,(function(e){r.set(o[e].storeDimIndex,e)})))}function Um(e,t){Bf(e)||(e=jf(e));for(var n,r,i=(t=t||{}).coordDimensions||[],o=t.dimensionsDefine||e.dimensionsDefine||[],a=ve(),s=[],u=(l=e,n=i,d=t.dimensionsCount,r=Math.max(l.dimensionsDetectedCount||1,n.length,o.length,d||0),N(n,(function(e){K(e)&&(e=e.dimsDef)&&(r=Math.max(r,e.length))})),r),l=t.canOmitUnusedDimensions&&30<u,c=o===e.dimensionsDefine,h=c?Im(e):Am(o),d=t.encodeDefine,f=ve(d=!d&&t.encodeDefaulter?t.encodeDefaulter(e,u):d),p=new qp(u),g=0;g<p.length;g++)p[g]=-1;function y(e){var t,n,r,i=p[e];return i<0?(t=K(t=o[e])?t:{name:t},n=new _m,null!=(r=t.name)&&null!=h.get(r)&&(n.name=n.displayName=r),null!=t.type&&(n.type=t.type),null!=t.displayName&&(n.displayName=t.displayName),p[e]=s.length,n.storeDimIndex=e,s.push(n),n):s[i]}if(!l)for(g=0;g<u;g++)y(g);f.each((function(e,t){var n;e=so(e).slice();1===e.length&&!H(e[0])&&e[0]<0?f.set(t,!1):(n=f.set(t,[]),N(e,(function(e,r){e=H(e)?h.get(e):e,null!=e&&e<u&&m(y(n[r]=e),t,r)})))}));var v=0;function m(e,t,n){null!=Td.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,a.set(t,!0))}N(i,(function(e){H(e)?(i=e,r={}):(i=(r=e).name,e=r.ordinalMeta,r.ordinalMeta=null,(r=M({},r)).ordinalMeta=e,t=r.dimsDef,n=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null);var t,n,r,i,o=f.get(i);if(!1!==o){if(!(o=so(o)).length)for(var a=0;a<(t&&t.length||1);a++){for(;v<u&&null!=y(v).coordDim;)v++;v<u&&o.push(v++)}N(o,(function(e,o){e=y(e),c&&null!=r.type&&(e.type=r.type),m(D(e,r),i,o),null==e.name&&t&&(K(o=t[o])||(o={name:o}),e.name=e.displayName=o.name,e.defaultTooltip=o.defaultTooltip),n&&D(e.otherDims,n)}))}}));var _=t.generateCoord,x=null!=(b=t.generateCoordCount),b=_?b||1:0,w=_||"value";function S(e){null==e.name&&(e.name=e.coordDim)}if(l)N(s,(function(e){S(e)})),s.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var k=0;k<u;k++){var A=y(k);null==A.coordDim&&(A.coordDim=function(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}(w,a,x),A.coordDimIndex=0,(!_||b<=0)&&(A.isExtraCoord=!0),b--),S(A),null!=A.type||Vd(e,k)!==Bd.Must&&(!A.isExtraCoord||null==A.otherDims.itemName&&null==A.otherDims.seriesName)||(A.type="ordinal")}for(var I=s,C=ve(),T=0;T<I.length;T++){var O=I[T],P=O.name,L=C.get(P)||0;0<L&&(O.name=P+(L-1)),L++,C.set(P,L)}return new wm({source:e,dimensions:s,fullDimensionCount:u,dimensionOmitted:l})}var Vm=function(e){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=e},qm={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",ko).models[0];e=e.getReferringComponents("yAxis",ko).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",e),$m(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),$m(e)&&(r.set("y",e),null==t.firstCategoryDimIndex)&&(t.firstCategoryDimIndex=1)},singleAxis:function(e,t,n,r){e=e.getReferringComponents("singleAxis",ko).models[0],t.coordSysDims=["single"],n.set("single",e),$m(e)&&(r.set("single",e),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){e=e.getReferringComponents("polar",ko).models[0];var i=e.findAxisModel("radiusAxis");e=e.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",e),$m(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),$m(e)&&(r.set("angle",e),null==t.firstCategoryDimIndex)&&(t.firstCategoryDimIndex=1)},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=(e=i.getComponent("parallel",e.get("parallelIndex")),t.coordSysDims=e.dimensions.slice());N(e.parallelAxisIndex,(function(e,a){e=i.getComponent("parallelAxis",e);var s=o[a];n.set(s,e),$m(e)&&(r.set(s,e),null==t.firstCategoryDimIndex)&&(t.firstCategoryDimIndex=a)}))}};function $m(e){return"category"===e.get("type")}function Hm(e,t,n){var r,i,o,a,s,u,l,c,h,d=(n=n||{}).byIndex,f=n.stackedCoordDimension,p=(km(t.schema)?(i=t.schema,r=i.dimensions,o=t.store):r=t,!(!e||!e.get("stack")));return N(r,(function(e,t){H(e)&&(r[t]=e={name:e}),p&&!e.isExtraCoord&&(d||a||!e.ordinalMeta||(a=e),s||"ordinal"===e.type||"time"===e.type||f&&f!==e.coordDim||(s=e))})),!s||d||a||(d=!0),s&&(u="__\0ecstackresult_"+e.id,l="__\0ecstackedover_"+e.id,a&&(a.createInvertedIndices=!0),c=s.coordDim,n=s.type,h=0,N(r,(function(e){e.coordDim===c&&h++})),t={name:u,coordDim:c,coordDimIndex:h,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},e={name:l,coordDim:l,coordDimIndex:h+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1},i?(o&&(t.storeDimIndex=o.ensureCalculationDimension(l,n),e.storeDimIndex=o.ensureCalculationDimension(u,n)),i.appendCalculationDimension(t),i.appendCalculationDimension(e)):(r.push(t),r.push(e))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:d,stackedOverDimension:l,stackResultDimension:u}}function Wm(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Gm(e,t){return Wm(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Km(e,t,n){n=n||{};var r,i,o,a,s,u,l=t.getSourceManager(),c=!1,h=(e=(e?(c=!0,r=jf(e)):c=(r=l.getSource()).sourceFormat===Md,function(e){var t=e.get("coordinateSystem"),n=new Vm(t);if(t=qm[t])return t(e,n,n.axisMap,n.categoryAxisMap),n}(t)),i=e,h=(h=t).get("coordinateSystem"),h=lf.get(h),d=(d=i&&i.coordSysDims?B(i.coordSysDims,(function(e){var t={name:e};e=i.axisMap.get(e);return e&&(e=e.get("type"),t.type="category"===(e=e)?"ordinal":"time"===e?"time":"float"),t})):d)||h&&(h.getDimensionsInfo?h.getDimensionsInfo():h.dimensions.slice())||["x","y"]),d=n.useEncodeDefaulter,f=(d=$(d)?d:d?V(jd,h,t):null,h={coordDimensions:h,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!c},d=Um(r,h),h=d.dimensions,o=n.createInvertedIndices,(a=e)&&N(h,(function(e,t){var n=e.coordDim;n=a.categoryAxisMap.get(n);n&&(null==s&&(s=t),e.ordinalMeta=n.getOrdinalMeta(),o)&&(e.createInvertedIndices=!0),null!=e.otherDims.itemName&&(u=!0)})),u||null==s||(h[s].otherDims.itemName=0),s);n=c?null:l.getSharedDataStore(d),e=Hm(t,{schema:d,store:n}),h=new jm(d,t),h.setCalculationInfo(e),d=null==f||(l=r).sourceFormat!==Md||q(co(function(e){for(var t=0;t<e.length&&null==e[t];)t++;return e[t]}(l.data||[])))?null:function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)};return h.hasItemOption=!1,h.initData(c?r:n,null,d),h}Ym.prototype.getSetting=function(e){return this._setting[e]},Ym.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},Ym.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},Ym.prototype.getExtent=function(){return this._extent.slice()},Ym.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},Ym.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},Ym.prototype.isBlank=function(){return this._isBlank},Ym.prototype.setBlank=function(e){this._isBlank=e};var Xm=Ym;function Ym(e){this._setting=e||{},this._extent=[1/0,-1/0]}Bo(Xm);var Jm=0,Zm=(Qm.createByAxisModel=function(e){e=e.option;var t=e.data;t=t&&B(t,e_);return new Qm({categories:t,needCollect:!t,deduplication:!1!==e.dedplication})},Qm.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},Qm.prototype.parseAndCollect=function(e){var t,n,r=this._needCollect;return H(e)||r?(r&&!this._deduplication?(n=this.categories.length,this.categories[n]=e):null==(n=(t=this._getOrCreateMap()).get(e))&&(r?(n=this.categories.length,this.categories[n]=e,t.set(e,n)):n=NaN),n):e},Qm.prototype._getOrCreateMap=function(){return this._map||(this._map=ve(this.categories))},Qm);function Qm(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Jm}function e_(e){return K(e)&&null!=e.value?e.value:e+""}function t_(e){return"interval"===e.type||"log"===e.type}function n_(e,t,n,r){var i={},o=e[1]-e[0];o=i.interval=eo(o/t,!0),null!=n&&o<n&&(o=i.interval=n),null!=r&&r<o&&(o=i.interval=r),t=i.intervalPrecision=i_(o),n=i.niceTickExtent=[qi(Math.ceil(e[0]/o)*o,t),qi(Math.floor(e[1]/o)*o,t)];return r=n,o=e,isFinite(r[0])||(r[0]=o[0]),isFinite(r[1])||(r[1]=o[1]),o_(r,0,o),o_(r,1,o),r[0]>r[1]&&(r[0]=r[1]),i}function r_(e){var t=Math.pow(10,Qi(e));e/=t;return e?2===e?e=3:3===e?e=5:e*=2:e=1,qi(e*t)}function i_(e){return $i(e)+2}function o_(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function a_(e,t){return e>=t[0]&&e<=t[1]}function s_(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function u_(e,t){return e*(t[1]-t[0])+t[0]}n(h_,l_=Xm),h_.prototype.parse=function(e){return null==e?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},h_.prototype.contain=function(e){return a_(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},h_.prototype.normalize=function(e){return s_(e=this._getTickNumber(this.parse(e)),this._extent)},h_.prototype.scale=function(e){return e=Math.round(u_(e,this._extent)),this.getRawOrdinalNumber(e)},h_.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},h_.prototype.getMinorTicks=function(e){},h_.prototype.setSortInfo=function(e){if(null==e)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];r[n[i]=s]=i}for(var u=0;i<o;++i){for(;null!=r[u];)u++;n.push(u),r[u]=i}}},h_.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&0<=e&&e<t.length?t[e]:e},h_.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&0<=e&&e<t.length?t[e]:e},h_.prototype.getLabel=function(e){if(!this.isBlank())return e=this.getRawOrdinalNumber(e.value),null==(e=this._ordinalMeta.categories[e])?"":e+""},h_.prototype.count=function(){return this._extent[1]-this._extent[0]+1},h_.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},h_.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},h_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},h_.prototype.calcNiceTicks=function(){},h_.prototype.calcNiceExtent=function(){},h_.type="ordinal";var l_,c_=h_;function h_(e){e=l_.call(this,e)||this;var t=(e.type="ordinal",e.getSetting("ordinalMeta"));return q(t=t||new Zm({}))&&(t=new Zm({categories:B(t,(function(e){return K(e)?e.value:e}))})),e._ordinalMeta=t,e._extent=e.getSetting("extent")||[0,t.categories.length-1],e}Xm.registerClass(c_);var d_,f_=qi,p_=(n(g_,d_=Xm),g_.prototype.parse=function(e){return e},g_.prototype.contain=function(e){return a_(e,this._extent)},g_.prototype.normalize=function(e){return s_(e,this._extent)},g_.prototype.scale=function(e){return u_(e,this._extent)},g_.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},g_.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},g_.prototype.getInterval=function(){return this._interval},g_.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=i_(e)},g_.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(t){n[0]<r[0]&&o.push(e?{value:f_(r[0]-t,i)}:{value:n[0]});for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=f_(a+t,i))!==o[o.length-1].value);)if(1e4<o.length)return[];var s=o.length?o[o.length-1].value:r[1];n[1]>s&&o.push(e?{value:f_(s+t,i)}:{value:n[1]})}return o},g_.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var o=t[i],a=t[i-1],s=0,u=[],l=(o.value-a.value)/e;s<e-1;){var c=f_(a.value+(s+1)*l);c>r[0]&&c<r[1]&&u.push(c),s++}n.push(u)}return n},g_.prototype.getLabel=function(e,t){return null==e?"":(null==(t=t&&t.precision)?t=$i(e.value)||0:"auto"===t&&(t=this._intervalPrecision),rd(f_(e.value,t,!0)))},g_.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];isFinite(i)&&(i<0&&r.reverse(),i=n_(r,e,t,n),this._intervalPrecision=i.intervalPrecision,this._interval=i.interval,this._niceExtent=i.niceTickExtent)},g_.prototype.calcNiceExtent=function(e){var t=this._extent,n=(t[0]===t[1]&&(0!==t[0]?(n=Math.abs(t[0]),e.fixMax||(t[1]+=n/2),t[0]-=n/2):t[1]=1),t[1]-t[0]);isFinite(n)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval),n=this._interval;e.fixMin||(t[0]=f_(Math.floor(t[0]/n)*n)),e.fixMax||(t[1]=f_(Math.ceil(t[1]/n)*n))},g_.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},g_.type="interval",g_);function g_(){var e=null!==d_&&d_.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}Xm.registerClass(p_);var y_="undefined"!=typeof Float32Array,v_=y_?Float32Array:Array;function m_(e){return q(e)?y_?new Float32Array(e):e:new v_(e)}var __="__ec_stack_";function x_(e){return e.get("stack")||__+e.seriesIndex}function b_(e){return e.dim+e.index}function w_(e,t){var n=[];return t.eachSeriesByType(e,(function(e){I_(e)&&n.push(e)})),n}function S_(e){var t,n,r=function(e){var t,n={},r=(N(e,(function(e){var t=e.coordinateSystem.getBaseAxis();if("time"===t.type||"value"===t.type){e=e.getData();for(var r=t.dim+"_"+t.index,i=e.getDimensionIndex(e.mapDimension(t.dim)),o=e.getStore(),a=0,s=o.count();a<s;++a){var u=o.get(i,a);n[r]?n[r].push(u):n[r]=[u]}}})),{});for(t in n)if(n.hasOwnProperty(t)){var i=n[t];if(i){i.sort((function(e,t){return e-t}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];0<s&&(o=null===o?s:Math.min(o,s))}r[t]=o}}return r}(e),i=[];return N(e,(function(e){var t,n=e.coordinateSystem.getBaseAxis(),o=n.getExtent(),a=(t="category"===n.type?n.getBandWidth():"value"===n.type||"time"===n.type?(t=n.dim+"_"+n.index,t=r[t],a=Math.abs(o[1]-o[0]),s=n.scale.getExtent(),s=Math.abs(s[1]-s[0]),t?a/s*t:a):(s=e.getData(),Math.abs(o[1]-o[0])/s.count()),Vi(e.get("barWidth"),t)),s=(o=Vi(e.get("barMaxWidth"),t),Vi(e.get("barMinWidth")||(C_(e)?.5:1),t)),u=e.get("barGap"),l=e.get("barCategoryGap");i.push({bandWidth:t,barWidth:a,barMaxWidth:o,barMinWidth:s,barGap:u,barCategoryGap:l,axisKey:b_(n),stackId:x_(e)})})),t={},N(i,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=(i=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},i.stacks),a=(r=(t[r]=i,e.stackId),o[r]||i.autoWidthCount++,o[r]=o[r]||{width:0,maxWidth:0},e.barWidth);a&&!o[r].width&&(o[r].width=a,a=Math.min(i.remainedWidth,a),i.remainedWidth-=a),a=e.barMaxWidth,a&&(o[r].maxWidth=a),a=e.barMinWidth,a&&(o[r].minWidth=a),o=e.barGap,null!=o&&(i.gap=o),r=e.barCategoryGap;null!=r&&(i.categoryGap=r)})),n={},N(t,(function(e,t){n[t]={};var r,i=e.stacks,o=e.bandWidth,a=e.categoryGap,s=(null==a&&(s=z(i).length,a=Math.max(35-4*s,15)+"%"),Vi(a,o)),u=Vi(e.gap,1),l=e.remainedWidth,c=e.autoWidthCount,h=(l-s)/(c+(c-1)*u),d=(h=Math.max(h,0),N(i,(function(e){var t,n=e.maxWidth,r=e.minWidth;e.width?(t=e.width,n&&(t=Math.min(t,n)),r&&(t=Math.max(t,r)),e.width=t,l-=t+u*t,c--):(t=h,n&&n<t&&(t=Math.min(n,l)),(t=r&&t<r?r:t)!==h&&(e.width=t,l-=t+u*t,c--))})),h=(l-s)/(c+(c-1)*u),h=Math.max(h,0),0),f=(N(i,(function(e,t){e.width||(e.width=h),d+=(r=e).width*(1+u)})),r&&(d-=r.width*u),-d/2);N(i,(function(e,r){n[t][r]=n[t][r]||{bandWidth:o,offset:f,width:e.width},f+=e.width*(1+u)}))})),n}function k_(e,t){e=w_(e,t);var n=S_(e);N(e,(function(e){var t=e.getData(),r=e.coordinateSystem.getBaseAxis(),i=(e=x_(e),r=n[b_(r)][e],e=r.offset,r.width);t.setLayout({bandWidth:r.bandWidth,offset:e,size:i})}))}function A_(e){return{seriesType:e,plan:mg(),reset:function(e){var t,n,r,i,o,a,s,u,l,c,h,d,f,p,g,y;if(I_(e))return t=e.getData(),s=(n=e.coordinateSystem).getBaseAxis(),r=n.getOtherAxis(s),i=t.getDimensionIndex(t.mapDimension(r.dim)),o=t.getDimensionIndex(t.mapDimension(s.dim)),a=e.get("showBackground",!0),s=t.mapDimension(r.dim),u=t.getCalculationInfo("stackResultDimension"),l=Wm(t,s)&&!!t.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),h=function(e){var t=e.model.get("startValue");return t=t||0,e.toGlobalCoord(e.dataToCoord("log"!==e.type||0<t?t:1))}(r),d=C_(e),f=e.get("barMinHeight")||0,p=u&&t.getDimensionIndex(u),g=t.getLayout("size"),y=t.getLayout("offset"),{progress:function(e,t){for(var r,s=e.count,u=d&&m_(3*s),v=d&&a&&m_(3*s),m=d&&m_(s),_=n.master.getRect(),x=c?_.width:_.height,b=t.getStore(),w=0;null!=(r=e.next());){var S,k=b.get(l?p:i,r),A=b.get(o,r),I=h,C=void 0,T=void(l&&(C=+k-b.get(i,r))),M=void 0,D=void 0,O=void 0;c?(S=n.dataToPoint([k,A]),T=I=l?n.dataToPoint([C,A])[0]:I,M=S[1]+y,D=S[0]-I,O=g,Math.abs(D)<f&&(D=(D<0?-1:1)*f)):(S=n.dataToPoint([A,k]),l&&(I=n.dataToPoint([A,C])[1]),T=S[0]+y,M=I,D=g,O=S[1]-I,Math.abs(O)<f&&(O=(O<=0?-1:1)*f)),d?(u[w]=T,u[w+1]=M,u[w+2]=c?D:O,v&&(v[w]=c?_.x:T,v[w+1]=c?M:_.y,v[w+2]=x),m[r]=r):t.setItemLayout(r,{x:T,y:M,width:D,height:O}),w+=3}d&&t.setLayout({largePoints:u,largeDataIndices:m,largeBackgroundPoints:v,valueAxisHorizontal:c})}}}}}function I_(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function C_(e){return e.pipelineContext&&e.pipelineContext.large}n(D_,T_=p_),D_.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Uh(e.value,Nh[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(zh(this._minLevelUnit))]||Nh.second,t,this.getSetting("locale"))},D_.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale"),o=null;if(H(n))o=n;else if($(n))o=n(e.value,t,{level:e.level});else{var a=M({},Eh);if(0<e.level)for(var s=0;s<Bh.length;++s)a[Bh[s]]="{primary|"+a[Bh[s]]+"}";var u=n?!1===n.inherit?n:D(n,a):a,l=Vh(e.value,r);if(u[l])o=u[l];else if(u.inherit){for(s=Fh.indexOf(l)-1;0<=s;--s)if(u[l]){o=u[l];break}o=o||a.none}q(o)&&(t=null==e.level?0:0<=e.level?e.level:o.length+e.level,o=o[t=Math.min(t,o.length-1)])}return Uh(new Date(e.value),o,r,i)},D_.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];return e&&(n.push({value:t[0],level:0}),e=this.getSetting("useUTC"),e=function(e,t,n,r){var i=Fh,o=0;function a(e,i,o){var a=[],s=!i.length;if(!function(e,t,n,r){function i(e){return qh(h,e,r)===qh(d,e,r)}function o(){return i("year")}function a(){return o()&&i("month")}function s(){return a()&&i("day")}function u(){return s()&&i("hour")}function l(){return u()&&i("minute")}function c(){return l()&&i("second")}var h=Ji(t),d=Ji(n);switch(e){case"year":return o();case"month":return a();case"day":return s();case"hour":return u();case"minute":return l();case"second":return c();case"millisecond":return c()&&i("millisecond")}}(zh(e),r[0],r[1],n)){s&&(i=[{value:function(e,t,n){var r=new Date(e);switch(zh(t)){case"year":case"month":r[Jh(n)](0);case"day":r[Zh(n)](1);case"hour":r[Qh(n)](0);case"minute":r[ed(n)](0);case"second":r[td(n)](0),r[nd(n)](0)}return r.getTime()}(new Date(r[0]),e,n)},{value:r[1]}]);for(var u,l,c=0;c<i.length-1;c++){var h=i[c].value,d=i[c+1].value;if(h!==d){var f=void 0,p=void 0,g=void 0;switch(e){case"year":f=Math.max(1,Math.round(t/Lh/365)),p=$h(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":l=t,f=6<(l/=30*Lh)?6:3<l?3:2<l?2:1,p=Hh(n),g=Jh(n);break;case"week":case"half-week":case"day":l=t,f=16<(l/=Lh)?16:7.5<l?7:3.5<l?4:1.5<l?2:1,p=Wh(n),g=Zh(n);break;case"half-day":case"quarter-day":case"hour":u=t,f=12<(u/=Ph)?12:6<u?6:3.5<u?4:2<u?2:1,p=Gh(n),g=Qh(n);break;case"minute":f=P_(t,!0),p=Kh(n),g=ed(n);break;case"second":f=P_(t,!1),p=Xh(n),g=td(n);break;case"millisecond":f=eo(t,!0),p=Yh(n),g=nd(n)}k=S=w=b=x=_=m=v=y=void 0;for(var y=f,v=h,m=d,_=p,x=g,b=a,w=new Date(v),S=v,k=w[_]();S<m&&S<=r[1];)b.push({value:S}),w[x](k+=y),S=w.getTime();b.push({value:S,notAdd:!0}),"year"===e&&1<o.length&&0===c&&o.unshift({value:o[0].value-f})}}for(c=0;c<a.length;c++)o.push(a[c])}}for(var s=[],u=[],l=0,c=0,h=0;h<i.length&&o++<1e4;++h){var d=zh(i[h]);if(function(e){return e===zh(e)}(i[h])){a(i[h],s[s.length-1]||[],u);var f=i[h+1]?zh(i[h+1]):null;if(d!==f){if(u.length){c=l,u.sort((function(e,t){return e.value-t.value}));for(var p=[],g=0;g<u.length;++g){var y=u[g].value;0!==g&&u[g-1].value===y||(p.push(u[g]),y>=r[0]&&y<=r[1]&&l++)}if(d=(r[1]-r[0])/t,1.5*d<l&&d/1.5<c)break;if(s.push(p),d<l||e===i[h])break}u=[]}}}var v=j(B(s,(function(e){return j(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return 0<e.length})),m=[],_=v.length-1;for(h=0;h<v.length;++h)for(var x=v[h],b=0;b<x.length;++b)m.push({value:x[b].value,level:_-h});m.sort((function(e,t){return e.value-t.value}));var w=[];for(h=0;h<m.length;++h)0!==h&&m[h].value===m[h-1].value||w.push(m[h]);return w}(this._minLevelUnit,this._approxInterval,e,t),(n=n.concat(e)).push({value:t[1],level:0})),n},D_.prototype.calcNiceExtent=function(e){var t,n=this._extent;n[0]===n[1]&&(n[0]-=Lh,n[1]+=Lh),n[1]===-1/0&&n[0]===1/0&&(t=new Date,n[1]=+new Date(t.getFullYear(),t.getMonth(),t.getDate()),n[0]=n[1]-Lh),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},D_.prototype.calcNiceTicks=function(e,t,n){var r=this._extent;r=r[1]-r[0],this._approxInterval=r/(e=e||10),null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n),r=O_.length,e=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=1+i:r=i}return n}(O_,this._approxInterval,0,r),r-1);this._interval=O_[e][1],this._minLevelUnit=O_[Math.max(e-1,0)][0]},D_.prototype.parse=function(e){return G(e)?e:+Ji(e)},D_.prototype.contain=function(e){return a_(this.parse(e),this._extent)},D_.prototype.normalize=function(e){return s_(this.parse(e),this._extent)},D_.prototype.scale=function(e){return u_(e,this._extent)},D_.type="time";var T_,M_=D_;function D_(e){return e=T_.call(this,e)||this,e.type="time",e}var O_=[["second",Dh],["minute",Oh],["hour",Ph],["quarter-day",6*Ph],["half-day",12*Ph],["day",1.2*Lh],["half-week",3.5*Lh],["week",7*Lh],["month",31*Lh],["quarter",95*Lh],["half-year",Eo/2],["year",Eo]];function P_(e,t){return 30<(e/=t?Oh:Dh)?30:20<e?20:15<e?15:10<e?10:5<e?5:2<e?2:1}Xm.registerClass(M_);var L_,E_=Xm.prototype,R_=p_.prototype,N_=qi,B_=Math.floor,F_=Math.ceil,j_=Math.pow,z_=Math.log,U_=(n(V_,L_=Xm),V_.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return B(R_.getTicks.call(this,e),(function(e){e=e.value;var t=qi(j_(this.base,e));t=e===n[0]&&this._fixMin?q_(t,r[0]):t;return{value:e===n[1]&&this._fixMax?q_(t,r[1]):t}}),this)},V_.prototype.setExtent=function(e,t){var n=z_(this.base);e=z_(Math.max(0,e))/n,t=z_(Math.max(0,t))/n,R_.setExtent.call(this,e,t)},V_.prototype.getExtent=function(){var e=this.base,t=E_.getExtent.call(this);return t[0]=j_(e,t[0]),t[1]=j_(e,t[1]),e=this._originalScale.getExtent(),this._fixMin&&(t[0]=q_(t[0],e[0])),this._fixMax&&(t[1]=q_(t[1],e[1])),t},V_.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=z_(e[0])/z_(t),e[1]=z_(e[1])/z_(t),E_.unionExtent.call(this,e)},V_.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},V_.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n==1/0||n<=0)){var r=Zi(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&0<Math.abs(r);)r*=10;e=[qi(F_(t[0]/r)*r),qi(B_(t[1]/r)*r)],this._interval=r,this._niceExtent=e}},V_.prototype.calcNiceExtent=function(e){R_.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},V_.prototype.parse=function(e){return e},V_.prototype.contain=function(e){return a_(e=z_(e)/z_(this.base),this._extent)},V_.prototype.normalize=function(e){return s_(e=z_(e)/z_(this.base),this._extent)},V_.prototype.scale=function(e){return e=u_(e,this._extent),j_(this.base,e)},V_.type="log",V_);function V_(){var e=null!==L_&&L_.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new p_,e._interval=0,e}function q_(e,t){return N_(e,$i(t))}uy=U_.prototype,uy.getMinorTicks=R_.getMinorTicks,uy.getLabel=R_.getLabel,Xm.registerClass(U_),H_.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type,i=(this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero(),t.get("min",!0));null==i&&(i=t.get("startValue",!0)),i=this._modelMinRaw=i,$(i)?this._modelMinNum=K_(e,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=K_(e,i)),i=this._modelMaxRaw=t.get("max",!0);$(i)?this._modelMaxNum=K_(e,i({min:n[0],max:n[1]})):"dataMax"!==i&&(this._modelMaxNum=K_(e,i)),r?this._axisDataLen=t.getCategories().length:"boolean"==typeof(e=q(n=t.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof e[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[pi(e[0],1),pi(e[1],1)]},H_.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=a,l=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),t=te(a)||te(s)||e&&!r,this._needCrossZero&&(a=0<a&&0<s&&!u?0:a)<0&&s<0&&!l&&(s=0),n=this._determinedMin,i=this._determinedMax;return null!=n&&(a=n,u=!0),null!=i&&(s=i,l=!0),{min:a,max:s,minFixed:u,maxFixed:l,isBlank:t}},H_.prototype.modifyDataMinMax=function(e,t){this[G_[e]]=t},H_.prototype.setDeterminedMinMax=function(e,t){this[W_[e]]=t},H_.prototype.freeze=function(){this.frozen=!0};var $_=H_;function H_(e,t,n){this._prepareParams(e,t,n)}var W_={min:"_determinedMin",max:"_determinedMax"},G_={min:"_dataMin",max:"_dataMax"};function K_(e,t){return null==t?null:te(t)?NaN:e.parse(t)}function X_(e,t){var n,r,i,o,a,s=e.type,u=(u=t,l=(c=e).getExtent(),(h=c.rawExtentInfo)||(h=new $_(c,u,l),c.rawExtentInfo=h),h.calculate()),l=(e.setBlank(u.isBlank),u.min),c=u.max,h=t.ecModel;return h&&"time"===s&&(e=w_("bar",h),n=!1,N(e,(function(e){n=n||e.getBaseAxis()===t.axis})),n)&&(s=S_(e),h=l,e=c,s=s,a=(a=(r=t).axis.getExtent())[1]-a[0],void 0!==(s=function(e,t,n){if(e&&t)return null!=(e=e[b_(t)])&&null!=n?e[x_(n)]:e}(s,r.axis))&&(i=1/0,N(s,(function(e){i=Math.min(e.offset,i)})),o=-1/0,N(s,(function(e){o=Math.max(e.offset+e.width,o)})),i=Math.abs(i),o=Math.abs(o),e+=o/(r=i+o)*(a=(s=e-h)/(1-(i+o)/a)-s),h-=i/r*a),l=(s={min:h,max:e}).min,c=s.max),{extent:[l,c],fixMin:u.minFixed,fixMax:u.maxFixed}}function Y_(e,t){var n=X_(e,t),r=n.extent,i=t.get("splitNumber"),o=(e instanceof U_&&(e.base=t.get("logBase")),e.type),a=t.get("interval");o="interval"===o||"time"===o;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:o?t.get("minInterval"):null,maxInterval:o?t.get("maxInterval"):null}),null!=a&&e.setInterval&&e.setInterval(a)}function J_(e,t){if(t=t||e.get("type"))switch(t){case"category":return new c_({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new M_({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Xm.getClass(t)||p_)}}function Z_(e){var t,n,r,i=e.getLabelModel().get("formatter"),o="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(r=i,function(t,n){return e.scale.getFormattedLabel(t,n,r)}):H(i)?(n=i,function(t){return t=e.scale.getLabel(t),n.replace("{value}",null!=t?t:"")}):$(i)?(t=i,function(n,r){return null!=o&&(r=n.value-o),t((a=n,"category"===(i=e).type?i.scale.getLabel(a):a.value),r,null!=n.level?{level:n.level}:null);var i,a}):function(t){return e.scale.getLabel(t)}}function Q_(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent(),a=n instanceof c_?n.count():(r=n.getTicks()).length,s=e.getLabelModel(),u=Z_(e),l=1;40<a&&(l=Math.ceil(a/40));for(var c,h,d,f=0;f<a;f+=l){var p=u(r?r[f]:{value:o[0]+f},f),g=(p=s.getTextRect(p),p=p,c=s.get("rotate")||0,h=d=g=h=void 0,c=c*Math.PI/180,h=p.width,g=p.height,d=h*Math.abs(Math.cos(c))+Math.abs(g*Math.sin(c)),h=h*Math.abs(Math.sin(c))+Math.abs(g*Math.cos(c)),new Lt(p.x,p.y,d,h));i?i.union(g):i=g}return i}}function ex(e){return e=e.get("interval"),null==e?"auto":e}function tx(e){return"category"===e.type&&0===ex(e.getLabelModel())}rx.prototype.getNeedCrossZero=function(){return!this.option.scale},rx.prototype.getCoordSysModel=function(){};var nx=rx;function rx(){}dy=Object.freeze({__proto__:null,createDimensions:function(e,t){return Um(e,t).dimensions},createList:function(e){return Km(null,e)},createScale:function(e,t){var n=t;return(t=J_(n=t instanceof mh?n:new mh(t))).setExtent(e[0],e[1]),Y_(t,n),t},createSymbol:my,createTextStyle:function(e,t){return Yc(e,null,null,"normal"!==(t=t||{}).state)},dataStack:{isDimensionStacked:Wm,enableDataStack:Hm,getStackedDimension:Gm},enableHoverEmphasis:Tu,getECData:zs,getLayoutRect:gd,mixinAxisModelCommonMethods:function(e){E(e,nx)}});var ix=[],ox={registerPreprocessor:Jv,registerProcessor:Zv,registerPostInit:Qv,registerPostUpdate:em,registerUpdateLifecycle:tm,registerAction:nm,registerCoordinateSystem:rm,registerLayout:im,registerVisual:om,registerTransform:cm,registerLoading:um,registerMap:lm,registerImpl:function(e,t){Jy[e]=t},PRIORITY:hy,ComponentModel:kd,ComponentView:yg,SeriesModel:sg,ChartView:bg,registerComponentModel:function(e){kd.registerClass(e)},registerComponentView:function(e){yg.registerClass(e)},registerSeriesModel:function(e){sg.registerClass(e)},registerChartView:function(e){bg.registerClass(e)},registerSubTypeDefaulter:function(e,t){kd.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Bi(e,t)}};function ax(e){q(e)?N(e,(function(e){ax(e)})):0<=P(ix,e)||(ix.push(e),(e=$(e)?{install:e}:e).install(ox))}var sx=1e-8;function ux(e,t){return Math.abs(e-t)<sx}function lx(e,t,n){var r=0,i=e[0];if(i){for(var o=1;o<e.length;o++){var a=e[o];r+=Ga(i[0],i[1],a[0],a[1],t,n),i=a}var s=e[0];return ux(i[0],s[0])&&ux(i[1],s[1])||(r+=Ga(i[0],i[1],s[0],s[1],t,n)),0!==r}}var cx=[];function hx(e,t){for(var n=0;n<e.length;n++)Fe(e[n],e[n],t)}function dx(e,t,n,r){for(var i=0;i<e.length;i++){var o=e[i];(o=r?r.project(o):o)&&isFinite(o[0])&&isFinite(o[1])&&(je(t,t,o),ze(n,n,o))}}function fx(e){this.name=e}fx.prototype.setCenter=function(e){this._center=e},fx.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},fy=fx;var px,gx,yx=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},vx=function(e){this.type="linestring",this.points=e},mx=(n(_x,px=fy),_x.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,r=0;r<t.length;r++){var i=t[r],o=i.exterior;o=o&&o.length;n<o&&(e=i,n=o)}if(e){for(var a=e.exterior,s=0,u=0,l=0,c=a.length,h=a[c-1][0],d=a[c-1][1],f=0;f<c;f++){var p=a[f][0],g=a[f][1],y=h*g-p*d;s+=y,u+=(h+p)*y,l+=(d+g)*y,h=p,d=g}return s?[u/s/3,l/s/3,s]:[a[0][0]||0,a[0][1]||0]}var v=this.getBoundingRect();return[v.x+v.width/2,v.y+v.height/2]},_x.prototype.getBoundingRect=function(e){var t,n,r=this._rect;return r&&!e||(t=[1/0,1/0],n=[-1/0,-1/0],N(this.geometries,(function(r){"polygon"===r.type?dx(r.exterior,t,n,e):N(r.points,(function(r){dx(r,t,n,e)}))})),isFinite(t[0])&&isFinite(t[1])&&isFinite(n[0])&&isFinite(n[1])||(t[0]=t[1]=n[0]=n[1]=0),r=new Lt(t[0],t[1],n[0]-t[0],n[1]-t[1]),e)||(this._rect=r),r},_x.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(t.contain(e[0],e[1]))e:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(lx(a,e[0],e[1])){for(var u=0;u<(s?s.length:0);u++)if(lx(s[u],e[0],e[1]))continue e;return!0}}}return!1},_x.prototype.transformTo=function(e,t,n,r){for(var i=this.getBoundingRect(),o=i.width/i.height,a=(o=(n?r=r||n/o:n=o*r,new Lt(e,t,n,r)),i.calculateTransform(o)),s=this.geometries,u=0;u<s.length;u++){var l=s[u];"polygon"===l.type?(hx(l.exterior,a),N(l.interiors,(function(e){hx(e,a)}))):N(l.points,(function(e){hx(e,a)}))}(i=this._rect).copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},_x.prototype.cloneShallow=function(e){return e=new _x(e=null==e?this.name:e,this.geometries,this._center),e._rect=this._rect,e.transformTo=null,e},_x);function _x(e,t,n){return e=px.call(this,e)||this,e.type="geoJSON",e.geometries=t,e._center=n&&[n[0],n[1]],e}function xx(e,t){return e=gx.call(this,e)||this,e.type="geoSVG",e._elOnlyForCalculate=t,e}function bx(e,t,n){for(var r=0;r<e.length;r++)e[r]=wx(e[r],t[r],n)}function wx(e,t,n){for(var r=[],i=t[0],o=t[1],a=0;a<e.length;a+=2){var s=(s=e.charCodeAt(a)-64)>>1^-(1&s),u=(u=e.charCodeAt(a+1)-64)>>1^-(1&u);r.push([(i=s+=i)/n,(o=u+=o)/n])}return r}function Sx(e,t){var n,r,i;return B(j((e=(n=e).UTF8Encoding?(null==(i=(r=n).UTF8Scale)&&(i=1024),N(r.features,(function(e){var t=e.geometry,n=t.encodeOffsets,r=t.coordinates;if(n)switch(t.type){case"LineString":t.coordinates=wx(r,n,i);break;case"Polygon":case"MultiLineString":bx(r,n,i);break;case"MultiPolygon":N(r,(function(e,t){return bx(e,n[t],i)}))}})),r.UTF8Encoding=!1,r):n).features,(function(e){return e.geometry&&e.properties&&0<e.geometry.coordinates.length})),(function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new yx(o[0],o.slice(1)));break;case"MultiPolygon":N(r.coordinates,(function(e){e[0]&&i.push(new yx(e[0],e.slice(1)))}));break;case"LineString":i.push(new vx([r.coordinates]));break;case"MultiLineString":i.push(new vx(r.coordinates))}return e=new mx(n[t||"name"],i,n.cp),e.properties=n,e}))}n(xx,gx=fy),xx.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=(t=[t.x+t.width/2,t.y+t.height/2],gt(cx)),r=e;r&&!r.isGeoSVGGraphicRoot;)vt(n,r.getLocalTransform(),n),r=r.parent;return bt(n,n),Fe(t,t,n),t};zo=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:function(e){return e.sort((function(e,t){return e-t})),e},getPercentWithPrecision:function(e,t,n){return e[t]&&Gi(e,n)[t]||0},getPixelPrecision:Wi,getPrecision:$i,getPrecisionSafe:Hi,isNumeric:no,isRadianAroundZero:Xi,linearMap:Ui,nice:eo,numericToNumber:to,parseDate:Ji,quantile:function(e,t){t=(e.length-1)*t+1;var n=Math.floor(t),r=+e[n-1];return(t-=n)?r+t*(e[n]-r):r},quantity:Zi,quantityExponent:Qi,reformIntervals:function(e){e.sort((function(e,t){return function e(t,n,r){return t.interval[r]<n.interval[r]||t.interval[r]===n.interval[r]&&(t.close[r]-n.close[r]==(r?-1:1)||!r&&e(t,n,1))}(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,o=e[r].close,a=0;a<2;a++)i[a]<=t&&(i[a]=t,o[a]=a?1:1-n),t=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?e.splice(r,1):r++}return e},remRadian:Ki,round:qi}),sh=Object.freeze({__proto__:null,format:Uh,parse:Ji}),Rh=Object.freeze({__proto__:null,Arc:Ql,BezierCurve:Xl,BoundingRect:Lt,Circle:il,CompoundPath:nc,Ellipse:ul,Group:Mi,Image:gs,IncrementalDisplayable:ar,Line:ql,LinearGradient:sc,Polygon:El,Polyline:Fl,RadialGradient:ic,Rect:Ss,Ring:Ml,Sector:Al,Text:Ts,clipPointsByRect:function(e,t){return B(e,(function(e){var n=e[0];n=Mc(n,t.x),n=Dc(n,t.x+t.width),e=e[1],e=Mc(e,t.y);return[n,Dc(e,t.y+t.height)]}))},clipRectByRect:function(e,t){var n=Mc(e.x,t.x),r=Dc(e.x+e.width,t.x+t.width),i=Mc(e.y,t.y);e=Dc(e.y+e.height,t.y+t.height);if(n<=r&&i<=e)return{x:n,y:i,width:r-n,height:e-i}},createIcon:Uc,extendPath:function(e,t){return Pc(e,t)},extendShape:function(e){return as.extend(e)},getShapeClass:function(e){if(Oc.hasOwnProperty(e))return Oc[e]},getTransform:function(e,t){for(var n=gt([]);e&&e!==t;)vt(n,e.getLocalTransform(),n),e=e.parent;return n},initProps:Sc,makeImage:Rc,makePath:Ec,mergePath:Bc,registerShape:Lc,resizePath:Fc,updateProps:wc}),fh=Object.freeze({__proto__:null,addCommas:rd,capitalFirst:function(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)},encodeHTML:tt,formatTime:function(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=(t=Ji(t))[(n=n?"getUTC":"get")+"FullYear"](),i=t[n+"Month"]()+1,o=t[n+"Date"](),a=t[n+"Hours"](),s=t[n+"Minutes"](),u=t[n+"Seconds"]();t=t[n+"Milliseconds"]();return e.replace("MM",jh(i,2)).replace("M",i).replace("yyyy",r).replace("yy",jh(r%100+"",2)).replace("dd",jh(o,2)).replace("d",o).replace("hh",jh(a,2)).replace("h",a).replace("mm",jh(s,2)).replace("m",s).replace("ss",jh(u,2)).replace("s",u).replace("SSS",jh(t,3))},formatTpl:sd,getTextRect:function(e,t,n,r,i,o,a,s){return new Ts({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:function(e,t){var n=(e=H(e)?{color:e,extraCssText:t}:e||{}).color,r=e.type,i=(t=e.extraCssText,e.renderMode||"html");return n?"html"===i?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+tt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+tt(n)+";"+(t||"")+'"></span>':{renderMode:i,content:"{"+(e.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""},normalizeCssArray:od,toCamelCase:function(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t?e&&e.charAt(0).toUpperCase()+e.slice(1):e},truncateText:Go}),lh=Object.freeze({__proto__:null,bind:U,clone:C,curry:V,defaults:D,each:N,extend:M,filter:j,indexOf:P,inherits:L,isArray:q,isFunction:$,isObject:K,isString:H,map:B,merge:T,reduce:F});var kx=xo();function Ax(e,t){return t=B(t,(function(t){return e.scale.parse(t)})),"time"===e.type&&0<t.length&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function Ix(e){var t,n,r,i,o,a=e.getLabelModel().get("customValues");return a?(t=Z_(e),{labels:Ax(e,a).map((function(n){var r={value:n};return{formattedLabel:t(r),rawLabel:e.scale.getLabel(r),tickValue:n}}))}):"category"===e.type?(i=(a=e).getLabelModel(),o=Tx(a,i),!i.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(i=(n=e).scale.getTicks(),r=Z_(n),{labels:B(i,(function(e,t){return{level:e.level,formattedLabel:r(e,t),rawLabel:n.scale.getLabel(e),tickValue:e.value}}))})}function Cx(e,t){var n,r,i,o,a,s=e.getTickModel().get("customValues");return s?{ticks:Ax(e,s)}:"category"===e.type?(s=t,i=Mx(t=e,"ticks"),o=ex(s),(a=Dx(i,o))||(s.get("show")&&!t.scale.isBlank()||(n=[]),n=$(o)?Lx(t,o,!0):"auto"===o?(a=Tx(t,t.getLabelModel()),r=a.labelCategoryInterval,B(a.labels,(function(e){return e.tickValue}))):Px(t,r=o,!0),Ox(i,o,{ticks:n,tickCategoryInterval:r}))):{ticks:B(e.scale.getTicks(),(function(e){return e.value}))}}function Tx(e,t){var n,r=Mx(e,"labels"),i=(t=ex(t),Dx(r,t));return i||Ox(r,t,{labels:$(t)?Lx(e,t):Px(e,n="auto"===t?null!=(r=kx(i=e).autoInterval)?r:kx(i).autoInterval=i.calculateCategoryInterval():t),labelCategoryInterval:n})}function Mx(e,t){return kx(e)[t]||(kx(e)[t]=[])}function Dx(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Ox(e,t,n){return e.push({key:t,value:n}),n}function Px(e,t,n){for(var r=Z_(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=(t=o[0],i.count()),c=(l=(0!==t&&1<u&&2<l/u&&(t=Math.round(Math.ceil(t/u)*u)),tx(e)),e=a.get("showMinLabel")||l,a=a.get("showMaxLabel")||l,e&&t!==o[0]&&h(o[0]),t);c<=o[1];c+=u)h(c);function h(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return a&&c-u!==o[1]&&h(o[1]),s}function Lx(e,t,n){var r=e.scale,i=Z_(e),o=[];return N(r.getTicks(),(function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})})),o}var Ex=[0,1];Rx.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]);t=Math.max(t[0],t[1]);return n<=e&&e<=t},Rx.prototype.containData=function(e){return this.scale.contain(e)},Rx.prototype.getExtent=function(){return this._extent.slice()},Rx.prototype.getPixelPrecision=function(e){return Wi(e||this.scale.getExtent(),this._extent)},Rx.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},Rx.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&Nx(n=n.slice(),r.count()),Ui(e,Ex,n,t)},Rx.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&Nx(n=n.slice(),r.count()),r=Ui(e,n,Ex,t);return this.scale.scale(r)},Rx.prototype.pointToData=function(e,t){},Rx.prototype.getTicksCoords=function(e){var t,n,r,i,o,a,s,u=(e=e||{}).tickModel||this.getTickModel(),l=B(Cx(this,u).ticks,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);u=u.get("alignWithLabel");function c(e,t){return e=qi(e),t=qi(t),a?t<e:e<t}return t=this,n=l,u=u,e=e.clamp,s=n.length,t.onBand&&!u&&s&&(u=t.getExtent(),1===s?(n[0].coord=u[0],r=n[1]={coord:u[1]}):(o=n[s-1].tickValue-n[0].tickValue,i=(n[s-1].coord-n[0].coord)/o,N(n,(function(e){e.coord-=i/2})),t=1+(o=t.scale.getExtent())[1]-n[s-1].tickValue,r={coord:n[s-1].coord+i*t},n.push(r)),a=u[0]>u[1],c(n[0].coord,u[0])&&(e?n[0].coord=u[0]:n.shift()),e&&c(u[0],n[0].coord)&&n.unshift({coord:u[0]}),c(u[1],r.coord)&&(e?r.coord=u[1]:n.pop()),e)&&c(r.coord,u[1])&&n.push({coord:u[1]}),l},Rx.prototype.getMinorTicksCoords=function(){var e;return"ordinal"===this.scale.type?[]:(e=this.model.getModel("minorTick").get("splitNumber"),B(this.scale.getMinorTicks(e=0<e&&e<100?e:5),(function(e){return B(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this))},Rx.prototype.getViewLabels=function(){return Ix(this).labels},Rx.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Rx.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Rx.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent();t=t[1]-t[0]+(this.onBand?1:0),0===t&&(t=1),e=Math.abs(e[1]-e[0]);return Math.abs(e)/t},Rx.prototype.calculateCategoryInterval=function(){i=(n=f=this).getLabelModel();var e={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()},t=Z_(f),n=(e.axisRotate-e.labelRotate)/180*Math.PI,r=(i=f.scale).getExtent(),i=i.count();if(r[1]-r[0]<1)return 0;for(var o=1,a=(40<i&&(o=Math.max(1,Math.floor(i/40))),r[0]),s=f.dataToCoord(a+1)-f.dataToCoord(a),u=Math.abs(s*Math.cos(n)),l=(s=Math.abs(s*Math.sin(n)),0),c=0;a<=r[1];a+=o){var h=1.3*(d=ci(t({value:a}),e.font,"center","top")).width,d=1.3*d.height;l=Math.max(l,h,7),c=Math.max(c,d,7)}n=l/u,u=c/s,isNaN(n)&&(n=1/0),isNaN(u)&&(u=1/0),s=Math.max(0,Math.floor(Math.min(n,u))),n=kx(f.model),u=f.getExtent();var f=n.lastAutoInterval,p=n.lastTickCount;return null!=f&&null!=p&&Math.abs(f-s)<=1&&Math.abs(p-i)<=1&&s<f&&n.axisExtent0===u[0]&&n.axisExtent1===u[1]?s=f:(n.lastTickCount=i,n.lastAutoInterval=s,n.axisExtent0=u[0],n.axisExtent1=u[1]),s},gh=Rx;function Rx(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}function Nx(e,t){t=(e[1]-e[0])/t/2,e[0]+=t,e[1]-=t}var Bx=2*Math.PI,Fx=Ua.CMD,jx=["top","right","bottom","left"];function zx(e,t,n,r,i,o,a,s){var u=i-e,l=o-t,c=(n=n-e,r=r-t,Math.sqrt(n*n+r*r));u=(u*(n/=c)+l*(r/=c))/c,s&&(u=Math.min(Math.max(u,0),1)),l=a[0]=e+(u*=c)*n,s=a[1]=t+u*r;return Math.sqrt((l-i)*(l-i)+(s-o)*(s-o))}function Ux(e,t,n,r,i,o,a){return n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),n=e+n,r=t+r,e=a[0]=Math.min(Math.max(i,e),n),n=a[1]=Math.min(Math.max(o,t),r),Math.sqrt((e-i)*(e-i)+(n-o)*(n-o))}var Vx=[];function qx(e,t,n){for(var r,i,o,a,s,u,l,c,h,d=0,f=0,p=0,g=0,y=1/0,v=t.data,m=e.x,_=e.y,x=0;x<v.length;){var b=v[x++],w=(1===x&&(p=d=v[x],g=f=v[x+1]),y);switch(b){case Fx.M:d=p=v[x++],f=g=v[x++];break;case Fx.L:w=zx(d,f,v[x],v[x+1],m,_,Vx,!0),d=v[x++],f=v[x++];break;case Fx.C:w=Cn(d,f,v[x++],v[x++],v[x++],v[x++],v[x],v[x+1],m,_,Vx),d=v[x++],f=v[x++];break;case Fx.Q:w=Pn(d,f,v[x++],v[x++],v[x],v[x+1],m,_,Vx),d=v[x++],f=v[x++];break;case Fx.A:var S=v[x++],k=v[x++],A=v[x++],I=v[x++],C=v[x++],T=v[x++],M=(x+=1,!!(1-v[x++])),D=Math.cos(C)*A+S,O=Math.sin(C)*I+k;x<=1&&(p=D,g=O),O=(D=C)+T,M=M,a=(m-S)*(o=I)/A+S,s=_,u=Vx,h=c=l=void 0,a-=r=S,s-=i=k,l=Math.sqrt(a*a+s*s),c=(a/=l)*o+r,h=(s/=l)*o+i,w=Math.abs(D-O)%Bx<1e-4||((O=M?(M=D,D=Ha(O),Ha(M)):(D=Ha(D),Ha(O)))<D&&(O+=Bx),(M=Math.atan2(s,a))<0&&(M+=Bx),D<=M&&M<=O)||D<=M+Bx&&M+Bx<=O?(u[0]=c,u[1]=h,l-o):(h=((M=o*Math.cos(D)+r)-a)*(M-a)+((c=o*Math.sin(D)+i)-s)*(c-s))<(r=((l=o*Math.cos(O)+r)-a)*(l-a)+((D=o*Math.sin(O)+i)-s)*(D-s))?(u[0]=M,u[1]=c,Math.sqrt(h)):(u[0]=l,u[1]=D,Math.sqrt(r)),d=Math.cos(C+T)*A+S,f=Math.sin(C+T)*I+k;break;case Fx.R:w=Ux(p=d=v[x++],g=f=v[x++],v[x++],v[x++],m,_,Vx);break;case Fx.Z:w=zx(d,f,p,g,m,_,Vx,!0),d=p,f=g}w<y&&(y=w,n.set(Vx[0],Vx[1]))}return y}var $x=new St,Hx=new St,Wx=new St,Gx=new St,Kx=new St;function Xx(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||jx,s=r.getBoundingRect().clone(),u=(s.applyTransform(r.getComputedTransform()),1/0),l=i.anchor,c=e.getComputedTransform(),h=c&&bt([],c),d=t.get("length2")||0;l&&Wx.copy(l);for(var f,p=0;p<a.length;p++){var g=a[p],y=(w=b=x=_=m=v=y=void 0,g),v=0,m=s,_=$x,x=Gx,b=m.width,w=m.height;switch(y){case"top":_.set(m.x+b/2,m.y-v),x.set(0,-1);break;case"bottom":_.set(m.x+b/2,m.y+w+v),x.set(0,1);break;case"left":_.set(m.x-v,m.y+w/2),x.set(-1,0);break;case"right":_.set(m.x+b+v,m.y+w/2),x.set(1,0)}St.scaleAndAdd(Hx,$x,Gx,d),Hx.transform(h),g=e.getBoundingRect(),g=l?l.distance(Hx):e instanceof as?qx(Hx,e.path,Wx):(y=Wx,f=Ux((f=g).x,g.y,g.width,g.height,Hx.x,Hx.y,Vx),y.set(Vx[0],Vx[1]),f),g<u&&(u=g,Hx.transform(c),Wx.transform(c),Wx.toArray(o[0]),Hx.toArray(o[1]),$x.toArray(o[2]))}Zx(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var Yx=[],Jx=new St;function Zx(e,t){var n,r;t<=180&&0<t&&(t=t/180*Math.PI,$x.fromArray(e[0]),Hx.fromArray(e[1]),Wx.fromArray(e[2]),St.sub(Gx,$x,Hx),St.sub(Kx,Wx,Hx),r=Gx.len(),n=Kx.len(),r<.001||n<.001||(Gx.scale(1/r),Kx.scale(1/n),r=Gx.dot(Kx),Math.cos(t)<r&&(n=zx(Hx.x,Hx.y,Wx.x,Wx.y,$x.x,$x.y,Yx,!1),Jx.fromArray(Yx),Jx.scaleAndAdd(Kx,n/Math.tan(Math.PI-t)),r=Wx.x!==Hx.x?(Jx.x-Hx.x)/(Wx.x-Hx.x):(Jx.y-Hx.y)/(Wx.y-Hx.y),isNaN(r)||(r<0?St.copy(Jx,Hx):1<r&&St.copy(Jx,Wx),Jx.toArray(e[1])))))}function Qx(e,t,n,r){var i="normal"===n;n=i?e:e.ensureState(n),n.ignore=t,t=r.get("smooth"),t&&!0===t&&(t=.3),n.shape=n.shape||{},0<t&&(n.shape.smooth=t),t=r.getModel("lineStyle").getLineStyle();i?e.useStyle(t):n.style=t}function eb(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),0<n&&3<=r.length){t=Ee(r[0],r[1]);var i=Ee(r[1],r[2]);t&&i?(n=Math.min(t,i)*n,t=Be([],r[1],r[0],n/t),n=Be([],r[1],r[2],n/i),i=Be([],t,n,.5),e.bezierCurveTo(t[0],t[1],t[0],t[1],i[0],i[1]),e.bezierCurveTo(n[0],n[1],n[0],n[1],r[2][0],r[2][1])):(e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]))}else for(var o=1;o<r.length;o++)e.lineTo(r[o][0],r[o][1])}function tb(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var o=t.normal,a=o.get("show"),s=i.ignore,u=0;u<Xs.length;u++){var l,c=Xs[u],h=t[c],d="normal"===c;h&&(l=h.get("show"),(d?s:re(i.states[c]&&i.states[c].ignore,s))||!re(l,a)?((l=d?r:r&&r.states[c])&&(l.ignore=!0),r&&Qx(r,!0,c,h)):(r||(r=new Fl,e.setTextGuideLine(r),d||!s&&a||Qx(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Qx(r,!1,c,h)))}r&&(D(r.style,n),r.style.fill=null,n=o.get("showAbove"),(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=n||!1,r.buildPath=eb)}else r&&e.removeTextGuideLine()}function nb(e,t){for(var n={normal:e.getModel(t=t||"labelLine")},r=0;r<Ks.length;r++){var i=Ks[r];n[i]=e.getModel([i,t])}return n}function rb(e){for(var t=[],n=0;n<e.length;n++){var r,i,o,a,s,u,l=e[n];l.defaultAttr.ignore||(i=(r=l.label).getComputedTransform(),o=r.getBoundingRect(),a=!i||i[1]<1e-5&&i[2]<1e-5,u=r.style.margin||0,(s=o.clone()).applyTransform(i),s.x-=u/2,s.y-=u/2,s.width+=u,s.height+=u,u=a?new gc(o,i):null,t.push({label:r,labelLine:l.labelLine,rect:s,localRect:o,obb:u,priority:l.priority,defaultAttr:l.defaultAttr,layoutOption:l.computedLayoutOption,axisAligned:a,transform:i}))}return t}function ib(e,t,n,r,i,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s=0,u=!1,l=0,c=0;c<a;c++){var h,d=e[c],f=d.rect;(h=f[t]-s)<0&&(f[t]-=h,d.label[t]-=h,u=!0),l+=Math.max(-h,0),s=f[t]+f[n]}0<l&&o&&x(-l/a,0,a);var p,g,y=e[0],v=e[a-1];return m(),p<0&&b(-p,.8),g<0&&b(g,.8),m(),_(p,g,1),_(g,p,-1),m(),p<0&&w(-p),g<0&&w(g),u}function m(){p=y.rect[t]-r,g=i-v.rect[t]-v.rect[n]}function _(e,t,n){e<0&&(0<(t=Math.min(t,-e))?(x(t*n,0,a),(t+=e)<0&&b(-t*n,1)):b(-e*n,1))}function x(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=e[o];a.rect[t]+=n,a.label[t]+=n}}function b(r,i){for(var o=[],s=0,u=1;u<a;u++){var l=e[u-1].rect;l=Math.max(e[u].rect[t]-l[t]-l[n],0);o.push(l),s+=l}if(s){var c=Math.min(Math.abs(r)/s,i);if(0<r)for(u=0;u<a-1;u++)x(o[u]*c,0,u+1);else for(u=a-1;0<u;u--)x(-o[u-1]*c,u,a)}}function w(e){for(var t=e<0?-1:1,n=(e=Math.abs(e),Math.ceil(e/(a-1))),r=0;r<a-1;r++)if(0<t?x(n,0,r+1):x(-n,a-r-1,a),(e-=n)<=0)return}}function ob(e,t,n,r){return ib(e,"y","height",t,n,r)}function ab(e){var t=[],n=(e.sort((function(e,t){return t.priority-e.priority})),new Lt(0,0,0,0));function r(e){var t;e.ignore||null==(t=e.ensureState("emphasis")).ignore&&(t.ignore=!1),e.ignore=!0}for(var i=0;i<e.length;i++){for(var o=e[i],a=o.axisAligned,s=o.localRect,u=o.transform,l=o.label,c=o.labelLine,h=(n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05,o.obb),d=!1,f=0;f<t.length;f++){var p=t[f];if(n.intersect(p.rect)){if(a&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new gc(p.localRect,p.transform)),(h=h||new gc(s,u)).intersect(p.obb)){d=!0;break}}}d?(r(l),c&&r(c)):(l.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function sb(e,t){var n=e.label;t=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}(t&&t.shape.points)}}var ub=["align","verticalAlign","width","height","fontSize"],lb=new ii,cb=xo(),hb=xo();function db(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var fb=["x","y","rotation"],pb=(gb.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},gb.prototype._addLabel=function(e,t,n,r,i){var o,a=r.style,s=r.__hostTarget.textConfig||{},u=r.getComputedTransform(),l=r.getBoundingRect().plain(),c=(u=(Lt.applyTransform(l,l,u),u?lb.setLocalTransform(u):(lb.x=lb.y=lb.rotation=lb.originX=lb.originY=0,lb.scaleX=lb.scaleY=1),lb.rotation=Ha(lb.rotation),r.__hostTarget),u&&(o=u.getBoundingRect().plain(),c=u.getComputedTransform(),Lt.applyTransform(o,o,c)),o&&u.getTextGuideLine());this._labelList.push({label:r,labelLine:c,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:l,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:c&&c.ignore,x:lb.x,y:lb.y,scaleX:lb.scaleX,scaleY:lb.scaleY,rotation:lb.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},gb.prototype.addLabelsOfSeries=function(e){var t=this,n=(this._chartViewList.push(e),e.__model),r=n.get("labelLayout");($(r)||z(r).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var i=e.getTextContent();e=zs(e);i&&!i.disableLabelLayout&&t._addLabel(e.dataIndex,e.dataType,n,i,r)}))},gb.prototype.updateLayoutConfig=function(e){for(var t=e.getWidth(),n=e.getHeight(),r=0;r<this._labelList.length;r++){var i=this._labelList[r],o=i.label,a=o.__hostTarget,s=i.defaultAttr,u=void 0,l=(u=$(i.layoutOption)?i.layoutOption(sb(i,a)):i.layoutOption,i.computedLayoutOption=u=u||{},Math.PI/180),c=(a&&a.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:s.attachedPos,rotation:null!=u.rotate?u.rotate*l:s.attachedRot,offset:[u.dx||0,u.dy||0]}),!1);null!=u.x?(o.x=Vi(u.x,t),o.setStyle("x",0),c=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=u.y?(o.y=Vi(u.y,n),o.setStyle("y",0),c=!0):(o.y=s.y,o.setStyle("y",s.style.y)),u.labelLinePoints&&(h=a.getTextGuideLine())&&(h.setShape({points:u.labelLinePoints}),c=!1),cb(o).needsUpdateLabelLine=c,o.rotation=null!=u.rotate?u.rotate*l:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var h,d=0;d<ub.length;d++){var f=ub[d];o.setStyle(f,(null!=u[f]?u:s.style)[f])}u.draggable?(o.draggable=!0,o.cursor="move",a&&(h=i.seriesModel,null!=i.dataIndex&&(h=i.seriesModel.getData(i.dataType).getItemModel(i.dataIndex)),o.on("drag",function(e,t){return function(){Xx(e,t)}}(a,h.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},gb.prototype.layout=function(e){var t,n=e.getWidth(),r=(e=e.getHeight(),rb(this._labelList)),i=j(r,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=j(r,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));ib(i,"x","width",0,n,t),ob(o,0,e),ab(j(r,(function(e){return e.layoutOption.hideOverlap})))},gb.prototype.processLabelsOverall=function(){var e=this;N(this._chartViewList,(function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!r,a=t.getTextContent();(o=!o&&a?cb(a).needsUpdateLabelLine:o)&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)}))}))},gb.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=zs(e),i=r.dataIndex;n&&null!=i&&(t=(n=t.getData(r.dataType)).getItemModel(i),r={},(i=n.getItemVisual(i,"style"))&&(n=n.getVisual("drawType"),r.stroke=i[n]),i=t.getModel("labelLine"),tb(e,nb(t),r),Xx(e,i))},gb.prototype._animateLabels=function(e,t){var n,r,i,o,a,s=e.getTextContent(),u=e.getTextGuideLine();!s||!e.forceLabelAnimation&&(s.ignore||s.invisible||e.disableLabelAnimation||kc(e))||(o=(i=cb(s)).oldLayout,n=(r=zs(e)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},r=t.getData(r.dataType),o?(s.attr(o),(e=e.prevStates)&&(0<=P(e,"select")&&s.attr(i.oldLayoutSelect),0<=P(e,"emphasis"))&&s.attr(i.oldLayoutEmphasis),wc(s,a,t,n)):(s.attr(a),nh(s).valueAnimation||(e=re(s.style.opacity,1),s.style.opacity=0,Sc(s,{style:{opacity:e}},t,n))),i.oldLayout=a,s.states.select&&(db(e=i.oldLayoutSelect={},a,fb),db(e,s.states.select,fb)),s.states.emphasis&&(db(e=i.oldLayoutEmphasis={},a,fb),db(e,s.states.emphasis,fb)),rh(s,n,r,t,t)),!u||u.ignore||u.invisible||(o=(i=hb(u)).oldLayout,a={points:u.shape.points},o?(u.attr({shape:o}),wc(u,{shape:a},t)):(u.setShape(a),u.style.strokePercent=0,Sc(u,{style:{strokePercent:1}},t)),i.oldLayout=a)},gb);function gb(){this._labelList=[],this._chartViewList=[]}var yb=xo();function vb(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){(yb(t).labelManager||(yb(t).labelManager=new pb)).clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=yb(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}function mb(e,t,n){var r=h.createCanvas(),i=t.getWidth(),o=(t=t.getHeight(),r.style);return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=t+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=t*n,r}ax(vb),n(bb,_b=He),bb.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},bb.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},bb.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},bb.prototype.setUnpainted=function(){this.__firstTimePaint=!0},bb.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=mb("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},bb.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],o=this.maxRepaintRectCount,a=!1,s=new Lt(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===i.length)(t=new Lt(0,0,0,0)).copy(e),i.push(t);else{for(var t,n=!1,r=1/0,u=0,l=0;l<i.length;++l){var c=i[l];if(c.intersect(e)){var h=new Lt(0,0,0,0);h.copy(c),h.union(e),i[l]=h,n=!0;break}a&&(s.copy(e),s.union(c),h=e.width*e.height,c=c.width*c.height,(c=s.width*s.height-h-c)<r)&&(r=c,u=l)}a&&(i[u].union(e),n=!0),n||((t=new Lt(0,0,0,0)).copy(e),i.push(t)),a=a||i.length>=o}}for(var l,c=this.__startIndex;c<this.__endIndex;++c)(h=e[c])&&(f=h.shouldBePainted(n,r,!0,!0),(d=h.__isRendered&&(h.__dirty&nn||!f)?h.getPrevPaintRect():null)&&u(d),l=f&&(h.__dirty&nn||!h.__isRendered)?h.getPaintRect():null)&&u(l);for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h,d,f=(h=t[c])&&h.shouldBePainted(n,r,!0,!0);!h||f&&h.__zr||!h.__isRendered||(d=h.getPrevPaintRect())&&u(d)}do{var p=!1;for(c=0;c<i.length;)if(i[c].isZero())i.splice(c,1);else{for(var g=c+1;g<i.length;)i[c].intersect(i[g])?(p=!0,i[c].union(i[g]),i.splice(g,1)):g++;c++}}while(p);return this._paintRects=i},bb.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},bb.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n)&&this.ctxBack.scale(n,n)},bb.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height,s=(t=t||this.clearColor,this.motionBlur&&!e),u=this.lastFrameAlpha,l=this.dpr,c=this,h=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/l,a/l)),this.domBack);function d(e,n,r,o){var a;i.clearRect(e,n,r,o),t&&"transparent"!==t&&(a=void 0,Z(t)?(a=(t.global||t.__width===r&&t.__height===o)&&t.__canvasGradient||by(i,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=a,t.__width=r,t.__height=o):Q(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,a=Oy(i,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),i.save(),i.fillStyle=a||t,i.fillRect(e,n,r,o),i.restore()),s&&(i.save(),i.globalAlpha=u,i.drawImage(h,e,n,r,o),i.restore())}!n||s?d(0,0,o,a):n.length&&N(n,(function(e){d(e.x*l,e.y*l,e.width*l,e.height*l)}))};var _b,xb=bb;function bb(e,t,n){var r,i=_b.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,n=n||Xr,"string"==typeof e?r=mb(e,t,n):K(e)&&(e=(r=e).id),i.id=e,e=(i.dom=r).style;return e&&(xe(r),r.onselectstart=function(){return!1},e.padding="0",e.margin="0",e.borderWidth="0"),i.painter=t,i.dpr=n,i}var wb=314159;kb.prototype.getType=function(){return"canvas"},kb.prototype.isSingleCanvas=function(){return this._singleCanvas},kb.prototype.getViewportRoot=function(){return this._domRoot},kb.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},kb.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o,a=r[i];a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===i?this._backgroundColor:null,a.refresh(o))}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},kb.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},kb.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),r||(r=n.ctx).save(),$y(r,a,i,o===t-1))}r&&r.restore()}},kb.prototype.getHoverLayer=function(){return this.getLayer(1e5)},kb.prototype.paintOne=function(e,t){qy(e,t)},kb.prototype._paintList=function(e,t,n,r){var i,o,a;this._redrawId===r&&(n=n||!1,this._updateLayerStatus(e),i=(o=this._doPaintList(e,t,n)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),i?this.eachLayer((function(e){e.afterBrush&&e.afterBrush()})):(a=this,cn((function(){a._paintList(e,t,n,r)}))))},kb.prototype._compositeManually=function(){var e=this.getLayer(wb).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},kb.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s];u=this._layers[u];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var l=!0,c=!1,h=function(o){function s(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(h=y;h<f.__endIndex;h++){var i=e[h];if(i.__inHover&&(c=!0),r._doPaintEl(i,f,a,t,n,h===f.__endIndex-1),v&&15<Date.now()-m)break}n.prevElClipPaths&&p.restore()}var u,h,f=i[o],p=f.ctx,g=a&&f.createRepaintRects(e,t,d._width,d._height),y=n?f.__startIndex:f.__drawIndex,v=!n&&f.incremental&&Date.now,m=v&&Date.now();o=f.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(f.__startIndex!==f.__endIndex&&(y!==f.__startIndex||(u=e[y]).incremental&&u.notClear&&!n)||f.clear(!1,o,g),-1===y&&(console.error("For some unknown reason. drawIndex is -1"),y=f.__startIndex),g)if(0===g.length)h=f.__endIndex;else for(var _=d.dpr,x=0;x<g.length;++x){var b=g[x];p.save(),p.beginPath(),p.rect(b.x*_,b.y*_,b.width*_,b.height*_),p.clip(),s(b),p.restore()}else p.save(),s(),p.restore();f.__drawIndex=h,f.__drawIndex<f.__endIndex&&(l=!1)},d=this,f=0;f<i.length;f++)h(f);return o.wxa&&N(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:l,needsRefreshHover:c}},kb.prototype._doPaintEl=function(e,t,n,r,i,o){t=t.ctx,n?(n=e.getPaintRect(),(!r||n&&n.intersect(r))&&($y(t,e,i,o),e.setPrevPaintRect(n))):$y(t,e,i,o)},kb.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=wb);var n=this._layers[e];return n||((n=new xb("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?T(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&T(n,this._layerConfig[e-.01],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},kb.prototype.insertLayer=function(e,t){var n,r=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,u=-1;if(!r[e]&&(n=t)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<o&&e>i[0]){for(u=0;u<o-1&&!(i[u]<e&&i[u+1]>e);u++);s=r[i[u]]}i.splice(u+1,0,e),(r[e]=t).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(t.dom,n.nextSibling):a.appendChild(t.dom):a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom)),t.painter||(t.painter=this)}},kb.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},kb.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},kb.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},kb.prototype.getLayers=function(){return this._layers},kb.prototype._updateLayerStatus=function(e){function t(e){i&&(i.__endIndex!==e&&(i.__dirty=!0),i.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++)if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}for(var r,i=null,o=0,a=0;a<e.length;a++){var s,u=(s=e[a]).zlevel,l=void 0;r!==u&&(r=u,o=0),s.incremental?((l=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,o=1):l=this.getLayer(u+(0<o?.01:0),this._needsManuallyCompositing),l.__builtin__||I("ZLevel "+u+" has been used by unkown layer "+l.id),l!==i&&(l.__used=!0,l.__startIndex!==a&&(l.__dirty=!0),l.__startIndex=a,l.incremental?l.__drawIndex=-1:l.__drawIndex=a,t(a),i=l),s.__dirty&nn&&!s.__inHover&&(l.__dirty=!0,l.incremental)&&l.__drawIndex<0&&(l.__drawIndex=a)}t(a),this.eachBuiltinLayer((function(e,t){!e.__used&&0<e.getElementCount()&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},kb.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},kb.prototype._clearLayer=function(e){e.clear()},kb.prototype.setBackgroundColor=function(e){this._backgroundColor=e,N(this._layers,(function(e){e.setUnpainted()}))},kb.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?T(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];i!==e&&i!==e+.01||T(this._layers[i],n[e],!0)}}},kb.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(P(n,e),1))},kb.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot,r=(n.style.display="none",this._opts),i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=Sy(i,0,r),t=Sy(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(wb).resize(e,t)}return this},kb.prototype.clearLayer=function(e){e=this._layers[e],e&&e.clear()},kb.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},kb.prototype.getRenderedCanvas=function(e){if(this._singleCanvas&&!this._compositeManually)return this._layers[wb].dom;var t=new xb("image",this,(e=e||{}).pixelRatio||this.dpr),n=(t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor),t.ctx);if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,u=a.length;s<u;s++){var l=a[s];$y(n,l,o,s===u-1)}return t.dom},kb.prototype.getWidth=function(){return this._width},kb.prototype.getHeight=function(){return this._height};var Sb=kb;function kb(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=M({},n||{}),this.dpr=n.devicePixelRatio||Xr,this._singleCanvas=i,(this.root=e).style&&(xe(e),e.innerHTML=""),this.storage=t;t=this._zlevelList;var o,a,s=(this._prevDisplayList=[],this._layers);i?(o=(i=e).width,a=i.height,null!=n.width&&(o=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,i.width=o*this.dpr,i.height=a*this.dpr,this._width=o,this._height=a,(o=new xb(i,this,this.dpr)).__builtin__=!0,o.initContext(),(s[wb]=o).zlevel=wb,t.push(wb),this._domRoot=e):(this._width=Sy(e,0,n),this._height=Sy(e,1,n),o=this._domRoot=(a=this._width,i=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+i+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),e.appendChild(o))}n(Cb,Ab=kd),Cb.prototype.init=function(e,t,n){Ab.prototype.init.call(this,e,t,n),this._sourceManager=new Jp(this),Qp(this)},Cb.prototype.mergeOption=function(e,t){Ab.prototype.mergeOption.call(this,e,t),Qp(this)},Cb.prototype.optionUpdated=function(){this._sourceManager.dirty()},Cb.prototype.getSourceManager=function(){return this._sourceManager},Cb.type="dataset",Cb.defaultOption={seriesLayoutBy:Rd};var Ab,Ib=Cb;function Cb(){var e=null!==Ab&&Ab.apply(this,arguments)||this;return e.type="dataset",e}n(Db,Tb=yg),Db.type="dataset";var Tb,Mb=Db;function Db(){var e=null!==Tb&&Tb.apply(this,arguments)||this;return e.type="dataset",e}function Ob(e){e.registerComponentModel(Ib),e.registerComponentView(Mb)}ax([function(e){e.registerPainter("canvas",Sb)},Ob]),ax(vb);var Pb={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,r=0;r<e.length;r++){var i=e[r],o=Math.abs(i);t<o&&(t=o,n=i)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},Lb=function(e){return Math.round(e.length/2)};function Eb(e){return{seriesType:e,reset:function(e,t,n){var r,i=e.getData(),o=e.get("sampling"),a=e.coordinateSystem,s=i.count();10<s&&"cartesian2d"===a.type&&o&&(r=a.getBaseAxis(),a=a.getOtherAxis(r),r=r.getExtent(),n=n.getDevicePixelRatio(),r=Math.abs(r[1]-r[0])*(n||1),n=Math.round(s/r),isFinite(n))&&1<n&&("lttb"===o&&e.setData(i.lttbDownSample(i.mapDimension(a.dim),1/n)),s=void 0,H(o)?s=Pb[o]:$(o)&&(s=o),s)&&e.setData(i.downSample(i.mapDimension(a.dim),1/n,s,Lb))}}}n(Nb,Rb=sg),Nb.prototype.getInitialData=function(e,t){return Km(null,this,{useEncodeDefaulter:!0})},Nb.prototype.getMarkerPosition=function(e,t,n){var r,i,o=this.coordinateSystem;return o&&o.clampData?(r=o.clampData(e),i=o.dataToPoint(r),n?N(o.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var o=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=r[n],u="x1"===t[n]||"y1"===t[n];if(u&&!a&&(s+=1),!(o.length<2))if(2===o.length)i[n]=e.toGlobalCoord(e.getExtent()[u?1:0]);else{for(var l=void 0,c=void 0,h=1,d=0;d<o.length;d++){var f=o[d].coord,p=d===o.length-1?o[d-1].tickValue+h:o[d].tickValue;if(p===s){c=f;break}if(p<s)l=f;else if(null!=l&&s<p){c=(f+l)/2;break}1===d&&(h=p-o[0].tickValue)}null==c&&(c=(l?o[o.length-1]:o[0]).coord),i[n]=e.toGlobalCoord(c)}}})):(n=(e=this.getData()).getLayout("offset"),e=e.getLayout("size"),o=o.getBaseAxis().isHorizontal()?0:1,i[o]+=n+e/2),i):[NaN,NaN]},Nb.type="series.__base_bar__",Nb.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"};var Rb;hh=Nb;function Nb(){var e=null!==Rb&&Rb.apply(this,arguments)||this;return e.type=Nb.type,e}sg.registerClass(hh),n(jb,Bb=hh),jb.prototype.getInitialData=function(){return Km(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},jb.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},jb.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return e<t?t:e},jb.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},jb.type="series.bar",jb.dependencies=["grid","polar"],jb.defaultOption=wh(hh.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1});var Bb,Fb=jb;function jb(){var e=null!==Bb&&Bb.apply(this,arguments)||this;return e.type=jb.type,e}function zb(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,u=o.width,l=(o=o.height,n.get(["lineStyle","width"])||2),c=(a-=l/2,s-=l/2,u+=l,o+=l,u=Math.ceil(u),a!==Math.floor(a)&&(a=Math.floor(a),u++),new Ss({shape:{x:a,y:s,width:u,height:o}}));return t&&(t=(l=e.getBaseAxis()).isHorizontal(),e=l.inverse,t?(e&&(c.shape.x+=u),c.shape.width=0):(e||(c.shape.y+=o),c.shape.height=0),l=$(i)?function(e){i(e,c)}:null,Sc(c,{shape:{width:u,height:o,x:a,y:s}},n,null,r,l)),c}function Ub(e,t,n){var r=e.getArea(),i=qi(r.r0,1),o=qi(r.r,1),a=new Al({shape:{cx:qi(e.cx,1),cy:qi(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,Sc(a,{shape:{endAngle:r.endAngle,r:o}},n)),a}var Vb,qb=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},$b=(n(Hb,Vb=as),Hb.prototype.getDefaultShape=function(){return new qb},Hb.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,u=t.startAngle,l=t.endAngle,c=(t=t.clockwise,2*Math.PI),h=t?l-u<c:u-l<c,d=(c=(h||(u=l-(t?c:-c)),Math.cos(u)),Math.sin(u)),f=Math.cos(l),p=Math.sin(l);h?(e.moveTo(c*i+n,d*i+r),e.arc(c*s+n,d*s+r,a,-Math.PI+u,u,!t)):e.moveTo(c*o+n,d*o+r),e.arc(n,r,o,u,l,!t),e.arc(f*s+n,p*s+r,a,l-2*Math.PI,l-Math.PI,!t),0!==i&&e.arc(n,r,i,l,u,t)},Hb);function Hb(e){return e=Vb.call(this,e)||this,e.type="sausage",e}function Wb(e,t){return e.type===t}function Gb(e,t){var n,r=e.mapDimensionsAll("defaultedLabel"),i=r.length;if(1===i)return null!=(n=ap(e,t,r[0]))?n+"":null;if(i){for(var o=[],a=0;a<r.length;a++)o.push(ap(e,t,r[a]));return o.join(" ")}}function Kb(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!q(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);0<=o&&r.push(t[o])}return r.join(" ")}function Xb(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Yb(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Jb(e,t,n){if(e=e.get("borderRadius"),null==e)return n?{cornerRadius:0}:null;q(e)||(e=[e,e,e,e]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:B(e,(function(e){return pi(e,r)}))}}var Zb=Math.max,Qb=Math.min;n(nw,ew=bg),nw.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");"cartesian2d"!==i&&"polar"!==i||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},nw.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},nw.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},nw.prototype.eachRendered=function(e){$c(this._progressiveEls||this.group,e)},nw.prototype._updateDrawMode=function(e){e=e.pipelineContext.large,null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},nw.prototype._renderNormal=function(e,t,n,r){var i,o,a,s=this.group,u=e.getData(),l=this._data,c=e.coordinateSystem,h=c.getBaseAxis(),d=("cartesian2d"===c.type?i=h.isHorizontal():"polar"===c.type&&(i="angle"===h.dim),e.isAnimationEnabled()?e:null),f=function(e,t){e=e.get("realtimeSort",!0);var n=t.getBaseAxis();if(e&&"category"===n.type&&"cartesian2d"===t.type)return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}(e,c),p=(f&&this._enableRealtimeSort(f,u,n),e.get("clip",!0)||f),g=(n=u,a=(o=c).getArea&&o.getArea(),!Wb(o,"cartesian2d")||"category"===(o=o.getBaseAxis()).type&&o.onBand||(n=n.getLayout("bandWidth"),o.isHorizontal()?(a.x-=n,a.width+=2*n):(a.y-=n,a.height+=2*n)),a),y=(s.removeClipPath(),e.get("roundCap",!0)),v=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,x=[],b=this._backgroundEls,w=r&&r.isInitSort,S=r&&"changeAxisOrder"===r.type;function k(e){var t=cw[c.type](u,e),n=(n=i,new("polar"===c.type?Al:Ss)({shape:_w(n,t,c),silent:!0,z2:0}));return n.useStyle(m.getItemStyle()),"cartesian2d"===c.type?n.setShape("r",_):n.setShape("cornerRadius",_),x[e]=n}u.diff(l).add((function(t){var n,r,o=u.getItemModel(t),a=cw[c.type](u,t,o);v&&k(t),u.hasValue(t)&&lw[c.type](a)&&(n=!1,p&&(n=rw[c.type](g,a)),r=iw[c.type](e,u,t,a,i,d,h.model,!1,y),f&&(r.forceLabelAnimation=!0),dw(r,u,t,o,a,e,i,"polar"===c.type),w?r.attr({shape:a}):f?ow(f,d,r,a,t,i,!1,!1):Sc(r,{shape:a},e,t),u.setItemGraphicEl(t,r),s.add(r),r.ignore=n)})).update((function(t,n){var r,o=u.getItemModel(t),a=cw[c.type](u,t,o),A=(v&&(A=void 0,0===b.length?A=k(n):((A=b[n]).useStyle(m.getItemStyle()),"cartesian2d"===c.type?A.setShape("r",_):A.setShape("cornerRadius",_),x[t]=A),r=cw[c.type](u,t),wc(A,{shape:_w(i,r,c)},d,t)),l.getItemGraphicEl(n));u.hasValue(t)&&lw[c.type](a)?(r=!1,p&&(r=rw[c.type](g,a))&&s.remove(A),A?Tc(A):A=iw[c.type](e,u,t,a,i,d,h.model,!!A,y),f&&(A.forceLabelAnimation=!0),S?(n=A.getTextContent())&&null!=(n=nh(n)).prevValue&&(n.prevValue=n.value):dw(A,u,t,o,a,e,i,"polar"===c.type),w?A.attr({shape:a}):f?ow(f,d,A,a,t,i,!0,S):wc(A,{shape:a},e,t,null),u.setItemGraphicEl(t,A),A.ignore=r,s.add(A)):s.remove(A)})).remove((function(t){var n=l.getItemGraphicEl(t);n&&Cc(n,e,t)})).execute();var A=this._backgroundGroup||(this._backgroundGroup=new Mi);A.removeAll();for(var I=0;I<x.length;++I)A.add(x[I]);s.add(A),this._backgroundEls=x,this._data=u},nw.prototype._renderLarge=function(e,t,n){this._clear(),vw(e,this.group),this._updateLargeClip(e)},nw.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),vw(t,this.group,this._progressiveEls,!0)},nw.prototype._updateLargeClip=function(e){var t,n,r=e.get("clip",!0)&&(r=e.coordinateSystem,i=!1,e=e,r?"polar"===r.type?Ub(r,i,e):"cartesian2d"===r.type?zb(r,i,e,t,n):null:null),i=this.group;r?i.setClipPath(r):i.removeClipPath()},nw.prototype._enableRealtimeSort=function(e,t,n){var r,i,o=this;t.count()&&(r=e.baseAxis,this._isFirstFrame?(this._dispatchInitSort(t,e,n),this._isFirstFrame=!1):(i=function(e){return e=t.getItemGraphicEl(e),e=e&&e.shape,e&&Math.abs(r.isHorizontal()?e.height:e.width)||0},this._onRendered=function(){o._updateSortWithinSameData(t,i,r,n)},n.getZr().on("rendered",this._onRendered)))},nw.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);r.push({dataIndex:t,mappedValue:null==i?NaN:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:B(r,(function(e){return e.ordinalNumber}))}},nw.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var u=e.rawIndexOf(i,r.getRawOrdinalNumber(a));u=u<0?Number.MIN_VALUE:t(e.indexOfRawIndex(u));if(o<u)return!0;o=u}return!1},nw.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=(t=n.getExtent(),Math.max(0,t[0])),i=Math.min(t[1],n.getOrdinalMeta().categories.length-1);r<=i;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},nw.prototype._updateSortWithinSameData=function(e,t,n,r){this._isOrderChangedWithinSameData(e,t,n)&&(e=this._dataSort(e,n,t),this._isOrderDifferentInView(e,n))&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:e}))},nw.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},nw.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},nw.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},nw.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},nw.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Cc(t,e,zs(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},nw.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},nw.type="bar";var ew,tw=nw;function nw(){var e=ew.call(this)||this;return e.type=nw.type,e._isFirstFrame=!0,e}var rw={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1,i=(n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),e.x+e.width),o=e.y+e.height,a=Zb(t.x,e.x),s=Qb(t.x+t.width,i),u=(e=Zb(t.y,e.y),Qb(t.y+t.height,o)),l=s<a,c=u<e;return t.x=l&&i<a?s:a,t.y=c&&o<e?u:e,t.width=l?0:s-a,t.height=c?0:u-e,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),l||c},polar:function(e,t){var n,r=t.r0<=t.r?1:-1,i=(r<0&&(n=t.r,t.r=t.r0,t.r0=n),Qb(t.r,e.r));e=Zb(t.r0,e.r0),i=(t.r=i)-(t.r0=e)<0;return r<0&&(n=t.r,t.r=t.r0,t.r0=n),i}},iw={cartesian2d:function(e,t,n,r,i,o,a,s,u){return r=new Ss({shape:M({},r),z2:1}),r.__dataIndex=n,r.name="item",o&&(r.shape[i?"height":"width"]=0),r},polar:function(e,t,n,r,i,o,a,s,u){u=!i&&u?$b:Al;var l,c,h=new u({shape:r,z2:1}),d=(h.name="item",hw(i));return h.calculateTextPosition=(l=d,c=({isRoundCap:u===$b}||{}).isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return gi(e,t,n);r=l(r);var i=null!=t.distance?t.distance:5,o=this.shape,a=o.cx,s=o.cy,u=o.r,h=o.r0,d=(u+h)/2,f=o.startAngle,p=o.endAngle,g=(f+p)/2,y=c?Math.abs(u-h)/2:0,v=Math.cos,m=Math.sin,_=a+u*v(f),x=s+u*m(f),b="left",w="top";switch(r){case"startArc":_=a+(h-i)*v(g),x=s+(h-i)*m(g),b="center",w="top";break;case"insideStartArc":_=a+(h+i)*v(g),x=s+(h+i)*m(g),b="center",w="bottom";break;case"startAngle":_=a+d*v(f)+Xb(f,i+y,!1),x=s+d*m(f)+Yb(f,i+y,!1),b="right",w="middle";break;case"insideStartAngle":_=a+d*v(f)+Xb(f,y-i,!1),x=s+d*m(f)+Yb(f,y-i,!1),b="left",w="middle";break;case"middle":_=a+d*v(g),x=s+d*m(g),b="center",w="middle";break;case"endArc":_=a+(u+i)*v(g),x=s+(u+i)*m(g),b="center",w="bottom";break;case"insideEndArc":_=a+(u-i)*v(g),x=s+(u-i)*m(g),b="center",w="top";break;case"endAngle":_=a+d*v(p)+Xb(p,i+y,!0),x=s+d*m(p)+Yb(p,i+y,!0),b="left",w="middle";break;case"insideEndAngle":_=a+d*v(p)+Xb(p,y-i,!0),x=s+d*m(p)+Yb(p,y-i,!0),b="right",w="middle";break;default:return gi(e,t,n)}return(e=e||{}).x=_,e.y=x,e.align=b,e.verticalAlign=w,e}),o&&(d={},h.shape[u=i?"r":"endAngle"]=i?r.r0:r.startAngle,d[u]=r[u],(s?wc:Sc)(h,{shape:d},o)),h}};function ow(e,t,n,r,i,o,a,s){var u;o=o?(u={x:r.x,width:r.width},{y:r.y,height:r.height}):(u={y:r.y,height:r.height},{x:r.x,width:r.width});s||(a?wc:Sc)(n,{shape:o},t,i,null),(a?wc:Sc)(n,{shape:u},t?e.baseAxis.model:null,i)}function aw(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return 1}var sw=["x","y","width","height"],uw=["cx","cy","r","startAngle","endAngle"],lw={cartesian2d:function(e){return!aw(e,sw)},polar:function(e){return!aw(e,uw)}},cw={cartesian2d:function(e,t,n){e=e.getItemLayout(t);var r=n&&(t=e,r=(n=n).get(["itemStyle","borderColor"]))&&"none"!==r?(r=n.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),t=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height),Math.min(r,n,t)):0;n=0<e.width?1:-1,t=0<e.height?1:-1;return{x:e.x+n*r/2,y:e.y+t*r/2,width:e.width-n*r,height:e.height-t*r}},polar:function(e,t,n){return e=e.getItemLayout(t),{cx:e.cx,cy:e.cy,r0:e.r0,r:e.r,startAngle:e.startAngle,endAngle:e.endAngle,clockwise:e.clockwise}}};function hw(e){return t=e?"Arc":"Angle",function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}};var t}function dw(e,t,n,r,i,o,a,s){var u=t.getItemVisual(n,"style"),l=(s?o.get("roundCap")||(M(l=e.shape,Jb(r.getModel("itemStyle"),l,!0)),e.setShape(l)):(l=r.get(["itemStyle","borderRadius"])||0,e.setShape("r",l)),e.useStyle(u),r.getShallow("cursor")),c=(l=(l&&e.attr("cursor",l),s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?0<=i.height?"bottom":"top":0<=i.width?"right":"left"),Xc(r));Kc(e,c,{labelFetcher:o,labelDataIndex:n,defaultText:Gb(o.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:l}),u=e.getTextContent(),s&&u&&(s=r.get(["label","position"]),e.textConfig.inside="middle"===s||null,function(e,t,n,r){if(G(r))e.setTextConfig({rotation:r});else if(q(t))e.setTextConfig({rotation:0});else{r=e.shape;var i,o=r.clockwise?r.startAngle:r.endAngle,a=r.clockwise?r.endAngle:r.startAngle,s=(o+a)/2;r=n(t);switch(r){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=s;break;case"startAngle":case"insideStartAngle":i=o;break;case"endAngle":case"insideEndAngle":i=a;break;default:return e.setTextConfig({rotation:0})}n=1.5*Math.PI-i,"middle"===r&&n>Math.PI/2&&n<1.5*Math.PI&&(n-=Math.PI),e.setTextConfig({rotation:n})}}(e,"outside"===s?l:s,hw(a),r.get(["label","rotate"]))),l=u,s=c,a=o.getRawValue(n),u=function(e){return Kb(t,e)},l&&((l=nh(l)).prevValue=l.value,l.value=a,a=s.normal,l.valueAnimation=a.get("valueAnimation"),l.valueAnimation)&&(l.precision=a.get("precision"),l.defaultInterpolatedText=u,l.statesModels=s),c=r.getModel(["emphasis"]);Mu(e,c.get("focus"),c.get("blurScope"),c.get("disabled")),Pu(e,r),null!=(o=i).startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(e.style.fill="none",e.style.stroke="none",N(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var fw,pw=function(){},gw=(n(yw,fw=as),yw.prototype.getDefaultShape=function(){return new pw},yw.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,u=0;u<n.length;u+=3)a[r]=s,a[i]=n[u+2],o[r]=n[u+r],o[i]=n[u+i],e.rect(o[0],o[1],a[0],a[1])},yw);function yw(e){return e=fw.call(this,e)||this,e.type="largeBar",e}function vw(e,t,n,r){var i=e.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=e.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints");l&&((l=new gw({shape:{points:l},incremental:!!r,silent:!0,z2:0})).baseDimIdx=o,l.largeDataIndices=a,l.barWidth=s,l.useStyle(u.getItemStyle()),t.add(l),n)&&n.push(l),u=new gw({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});u.baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,t.add(u),u.useStyle(i.getVisual("style")),zs(u).seriesIndex=e.seriesIndex,e.get("silent")||(u.on("mousedown",mw),u.on("mousemove",mw)),n&&n.push(u)}var mw=Tg((function(e){e=function(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],u=[],l=e.barWidth,c=0,h=o.length/3;c<h;c++){var d=3*c;if(u[r]=l,u[i]=o[2+d],s[r]=o[d+r],s[i]=o[d+i],u[i]<0&&(s[i]+=u[i],u[i]=-u[i]),s[0]<=t&&t<=s[0]+u[0]&&s[1]<=n&&n<=s[1]+u[1])return a[c]}return-1}(this,e.offsetX,e.offsetY),zs(this).dataIndex=0<=e?e:null}),30,!1);function _w(e,t,n){var r,i;return Wb(n,"cartesian2d")?(r=t,i=n.getArea(),{x:(e?r:i).x,y:(e?i:r).y,width:(e?r:i).width,height:(e?i:r).height}):{cx:(i=n.getArea()).cx,cy:i.cy,r0:(e?i:t).r0,r:(e?i:t).r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}}ax((function(e){e.registerChartView(tw),e.registerSeriesModel(Fb),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,V(k_,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,A_("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Eb("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))})),n(ww,xw=sg),ww.prototype.getInitialData=function(e){return Km(null,this,{useEncodeDefaulter:!0})},ww.prototype.getLegendIcon=function(e){var t=new Mi,n=my("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1),r=(n=(t.add(n),n.setStyle(e.lineStyle),this.getData().getVisual("symbol")),this.getData().getVisual("symbolRotate")),i=(n="none"===n?"circle":n,.8*e.itemHeight);i=my(n,(e.itemWidth-i)/2,(e.itemHeight-i)/2,i,i,e.itemStyle.fill),t.add(i),i.setStyle(e.itemStyle),r="inherit"===e.iconRotate?r:e.iconRotate||0;return i.rotation=r*Math.PI/180,i.setOrigin([e.itemWidth/2,e.itemHeight/2]),-1<n.indexOf("empty")&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),t},ww.type="series.line",ww.dependencies=["grid","polar"],ww.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1};var xw,bw=ww;function ww(){var e=null!==xw&&xw.apply(this,arguments)||this;return e.type=ww.type,e.hasSymbolVisual=!0,e}n(Aw,Sw=Mi),Aw.prototype._createSymbol=function(e,t,n,r,i){this.removeAll(),i=my(e,-1,-1,2,2,null,i),i.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),i.drift=Iw,this._symbolType=e,this.add(i)},Aw.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},Aw.prototype.getSymbolType=function(){return this._symbolType},Aw.prototype.getSymbolPath=function(){return this.childAt(0)},Aw.prototype.highlight=function(){vu(this.childAt(0))},Aw.prototype.downplay=function(){mu(this.childAt(0))},Aw.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},Aw.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},Aw.prototype.updateData=function(e,t,n,r){this.silent=!1;var i,o,a,s=e.getItemVisual(t,"symbol")||"circle",u=e.hostModel,l=Aw.getSymbolSize(e,t),c=s!==this._symbolType,h=r&&r.disableAnimation;c?(i=e.getItemVisual(t,"symbolKeepAspect"),this._createSymbol(s,e,t,l,i)):((o=this.childAt(0)).silent=!1,a={scaleX:l[0]/2,scaleY:l[1]/2},h?o.attr(a):wc(o,a,u,t),Tc(o)),this._updateCommon(e,t,l,n,r),c&&(o=this.childAt(0),h||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:o.style.opacity}},o.scaleX=o.scaleY=0,o.style.opacity=0,Sc(o,a,u,t))),h&&this.childAt(0).stopAnimation("leave")},Aw.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,u,l,c,h,d,f=this.childAt(0),p=e.hostModel,g=(r&&(o=r.emphasisItemStyle,s=r.blurItemStyle,a=r.selectItemStyle,u=r.focus,l=r.blurScope,h=r.labelStatesModels,d=r.hoverScale,y=r.cursorStyle,c=r.emphasisDisabled),r&&!e.hasItemOption||(o=(g=(r=r&&r.itemModel?r.itemModel:e.getItemModel(t)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=r.getModel(["select","itemStyle"]).getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),u=g.get("focus"),l=g.get("blurScope"),c=g.get("disabled"),h=Xc(r),d=g.getShallow("scale"),y=r.getShallow("cursor")),e.getItemVisual(t,"symbolRotate")),y=(r=(f.attr("rotation",(g||0)*Math.PI/180||0),_y(e.getItemVisual(t,"symbolOffset"),n)),g=(r&&(f.x=r[0],f.y=r[1]),y&&f.attr("cursor",y),e.getItemVisual(t,"style")),r=g.fill,f instanceof gs?(y=f.style,f.useStyle(M({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},g))):(f.__isEmptyBrush?f.useStyle(M({},g)):f.useStyle(g),f.style.decal=null,f.setColor(r,i&&i.symbolInnerColor),f.style.strokeNoScale=!0),e.getItemVisual(t,"liftZ")),v=this._z2,m=(null!=y?null==v&&(this._z2=f.z2,f.z2+=y):null!=v&&(f.z2=v,this._z2=null),i&&i.useNameLabel);Kc(f,h,{labelFetcher:p,labelDataIndex:t,defaultText:function(t){return m?e.getName(t):Gb(e,t)},inheritColor:r,defaultOpacity:g.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2,y=f.ensureState("emphasis"),y.style=o,f.ensureState("select").style=a,f.ensureState("blur").style=s,v=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&0<d?+d:1,y.scaleX=this._sizeX*v,y.scaleY=this._sizeY*v,this.setSymbolScale(1),Mu(this,u,l,c)},Aw.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},Aw.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=zs(this).dataIndex,o=n&&n.animation;this.silent=r.silent=!0,n&&n.fadeLabel?(n=r.getTextContent())&&Ac(n,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}}):r.removeTextContent(),Ac(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},Aw.getSymbolSize=function(e,t){return[(e=q(e=e.getItemVisual(t,"symbolSize"))?e:[+e,+e])[0]||0,e[1]||0]};var Sw,kw=Aw;function Aw(e,t,n,r){var i=Sw.call(this)||this;return i.updateData(e,t,n,r),i}function Iw(e,t){this.parent.drift(e,t)}function Cw(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&(!r.isIgnore||!r.isIgnore(n))&&(!r.clipShape||r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function Tw(e){return(e=null==e||K(e)?e:{isIgnore:e})||{}}function Mw(e){e=e.hostModel;var t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Xc(e),cursorStyle:e.get("cursor")}}Ow.prototype.updateData=function(e,t){this._progressiveEls=null,t=Tw(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=Mw(e),u={disableAnimation:a},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i,a=l(r);Cw(e,a,r,t)&&((i=new o(e,r,s,u)).setPosition(a),e.setItemGraphicEl(r,i),n.add(i))})).update((function(c,h){h=i.getItemGraphicEl(h);var d,f,p=l(c);Cw(e,p,c,t)?(d=e.getItemVisual(c,"symbol")||"circle",f=h&&h.getSymbolType&&h.getSymbolType(),!h||f&&f!==d?(n.remove(h),(h=new o(e,c,s,u)).setPosition(p)):(h.updateData(e,c,s,u),f={x:p[0],y:p[1]},a?h.attr(f):wc(h,f,r)),n.add(h),e.setItemGraphicEl(c,h)):n.remove(h)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=l,this._data=e},Ow.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){n=e._getSymbolPoint(n),t.setPosition(n),t.markRedraw()}))},Ow.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Mw(e),this._data=null,this.group.removeAll()},Ow.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Tw(n);for(var i=e.start;i<e.end;i++){var o,a=t.getItemLayout(i);Cw(t,a,i,n)&&((o=new this._SymbolCtor(t,i,this._seriesScope)).traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o))}},Ow.prototype.eachRendered=function(e){$c(this._progressiveEls||this.group,e)},Ow.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()};var Dw=Ow;function Ow(e){this.group=new Mi,this._SymbolCtor=e||kw}function Pw(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=(n=function(e,t){var n=0;e=e.scale.getExtent();return"start"===t?n=e[0]:"end"===t?n=e[1]:G(t)&&!isNaN(t)?n=t:0<e[0]?n=e[0]:e[1]<0&&(n=e[1]),n}(i,n),r=r.dim,i=i.dim,t.mapDimension(i)),a=t.mapDimension(r),s="x"===i||"radius"===i?1:0,u=(e=B(e.dimensions,(function(e){return t.mapDimension(e)})),!1),l=t.getCalculationInfo("stackResultDimension");return Wm(t,e[0])&&(u=!0,e[0]=l),Wm(t,e[1])&&(u=!0,e[1]=l),{dataDimsForPoint:e,valueStart:n,valueAxisDim:i,baseAxisDim:r,stacked:!!u,valueDim:o,baseDim:a,baseDataOffset:s,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Lw(e,t,n,r){var i=NaN,o=(e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart),e.baseDataOffset),a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var Ew=Math.min,Rw=Math.max;function Nw(e,t){return isNaN(e)||isNaN(t)}function Bw(e,t,n,r,i,o,a,s,u){for(var l,c,h,d,f=n,p=0;p<r;p++){var g=t[2*f],y=t[2*f+1];if(i<=f||f<0)break;if(Nw(g,y)){if(u){f+=o;continue}break}if(f===n)e[0<o?"moveTo":"lineTo"](g,y),h=g,d=y;else{var v=g-l,m=y-c;if(v*v+m*m<.5){f+=o;continue}if(0<a){for(var _=f+o,x=t[2*_],b=t[2*_+1];x===g&&b===y&&p<r;)p++,f+=o,x=t[2*(_+=o)],b=t[2*_+1],g=t[2*f],y=t[2*f+1];var w=p+1;if(u)for(;Nw(x,b)&&w<r;)w++,x=t[2*(_+=o)],b=t[2*_+1];v=0,m=0;var S,k,A,I,C,T,M,D,O,P=void 0,L=void 0;r<=w||Nw(x,b)?(M=g,D=y):(v=x-l,m=b-c,S=g-l,k=x-g,A=y-c,I=b-y,T=C=void 0,L="x"===s?(M=g-(O=0<v?1:-1)*(C=Math.abs(S))*a,D=y,P=g+O*(T=Math.abs(k))*a,y):"y"===s?(D=y-(O=0<m?1:-1)*(C=Math.abs(A))*a,P=M=g,y+O*(T=Math.abs(I))*a):(C=Math.sqrt(S*S+A*A),M=g-v*a*(1-(S=(T=Math.sqrt(k*k+I*I))/(T+C))),D=y-m*a*(1-S),L=y+m*a*S,P=Ew(P=g+v*a*S,Rw(x,g)),L=Ew(L,Rw(b,y)),P=Rw(P,Ew(x,g)),D=y-(m=(L=Rw(L,Ew(b,y)))-y)*C/T,M=Ew(M=g-(v=P-g)*C/T,Rw(l,g)),D=Ew(D,Rw(c,y)),P=g+(v=g-(M=Rw(M,Ew(l,g))))*T/C,y+(m=y-(D=Rw(D,Ew(c,y))))*T/C)),e.bezierCurveTo(h,d,M,D,g,y),h=P,d=L}else e.lineTo(g,y)}l=g,c=y,f+=o}return p}var Fw,jw=function(){this.smooth=0,this.smoothConstraint=!0},zw=(n(Uw,Fw=as),Uw.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Uw.prototype.getDefaultShape=function(){return new jw},Uw.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;0<i&&Nw(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Nw(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Bw(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},Uw.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Ua.CMD,a="x"===t,s=[],u=0;u<i.length;){var l=void 0,c=void 0;switch(i[u++]){case o.M:n=i[u++],r=i[u++];break;case o.L:var h;l=i[u++],c=i[u++];if((h=a?(e-n)/(l-n):(e-r)/(c-r))<=1&&0<=h)return m=a?(c-r)*h+r:(l-n)*h+n,a?[e,m]:[m,e];n=l,r=c;break;case o.C:l=i[u++],c=i[u++];var d=i[u++],f=i[u++],p=i[u++],g=i[u++],y=a?kn(n,l,d,p,e,s):kn(r,c,f,g,e,s);if(0<y)for(var v=0;v<y;v++){var m,_=s[v];if(_<=1&&0<=_)return m=a?wn(r,c,f,g,_):wn(n,l,d,p,_),a?[e,m]:[m,e]}n=p,r=g}}},Uw);function Uw(e){return e=Fw.call(this,e)||this,e.type="ec-polyline",e}n($w,Vw=jw);var Vw,qw=$w;function $w(){return null!==Vw&&Vw.apply(this,arguments)||this}n(Gw,Hw=as),Gw.prototype.getDefaultShape=function(){return new qw},Gw.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;0<o&&Nw(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Nw(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=Bw(e,n,i,o,o,1,t.smooth,a,t.connectNulls);Bw(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}};var Hw,Ww=Gw;function Gw(e){return e=Hw.call(this,e)||this,e.type="ec-polygon",e}function Kw(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return 1}}function Xw(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function Yw(e,t){e=Xw(e);var n=e[0],r=(e=e[1],t=Xw(t),t[0]);t=t[1];return Math.max(Math.abs(n[0]-r[0]),Math.abs(n[1]-r[1]),Math.abs(e[0]-t[0]),Math.abs(e[1]-t[1]))}function Jw(e){return G(e)?e:e?.5:0}function Zw(e,t,n,r){t=t.getBaseAxis();var i="x"===t.dim||"radius"===t.dim?0:1,o=[],a=0,s=[],u=[],l=[],c=[];if(r){for(a=0;a<e.length;a+=2)isNaN(e[a])||isNaN(e[a+1])||c.push(e[a],e[a+1]);e=c}for(a=0;a<e.length-2;a+=2)switch(l[0]=e[a+2],l[1]=e[a+3],u[0]=e[a],u[1]=e[a+1],o.push(u[0],u[1]),n){case"end":s[i]=l[i],s[1-i]=u[1-i],o.push(s[0],s[1]);break;case"middle":var h=[];s[i]=h[i]=(u[i]+l[i])/2,s[1-i]=u[1-i],h[1-i]=l[1-i],o.push(s[0],s[1]),o.push(h[0],h[1]);break;default:s[i]=u[i],s[1-i]=l[1-i],o.push(s[0],s[1])}return o.push(e[a++],e[a++]),o}function Qw(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o=r.length-1;0<=o;o--){var a,s=e.getDimensionInfo(r[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){i=r[o];break}}if(i){var u=t.getAxis(a),l=(t=B(i.stops,(function(e){return{coord:u.toGlobalCoord(u.dataToCoord(e.value)),color:e.color}})),t.length),c=i.outerColors.slice(),h=(n=(l&&t[0].coord>t[l-1].coord&&(t.reverse(),c.reverse()),function(e,t){var n,r,i=[],o=e.length;function a(e,t,n){var r=e.coord;return{coord:n,color:or((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<o;s++){var u=e[s],l=u.coord;if(l<0)n=u;else{if(t<l){r?i.push(a(r,u,t)):n&&i.push(a(n,u,0),a(n,u,t));break}n&&(i.push(a(n,u,0)),n=null),i.push(u),r=u}}return i}(t,"x"===a?n.getWidth():n.getHeight())),n.length);if(!h&&l)return t[0].coord<0?c[1]||t[l-1].color:c[0]||t[0].color;var d=n[0].coord-10,f=(l=n[h-1].coord+10,l-d);return f<.001?"transparent":(N(n,(function(e){e.offset=(e.coord-d)/f})),n.push({offset:h?n[h-1].offset:.5,color:c[1]||"transparent"}),n.unshift({offset:h?n[0].offset:.5,color:c[0]||"transparent"}),t=new sc(0,0,0,0,n,!0),t[a]=d,t[a+"2"]=l,t)}}}function eS(e,t,n){e=e.get("showAllSymbol");var r="auto"===e;if(!e||r){var i,o,a=n.getAxesByScale("ordinal")[0];if(a&&(!r||!function(e,t){for(var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count(),i=(isNaN(r)&&(r=0),t.count()),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*kw.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return;return 1}(a,t)))return i=t.mapDimension(a.dim),o={},N(a.getViewLabels(),(function(e){e=a.scale.getRawOrdinalNumber(e.tickValue),o[e]=1})),function(e){return!o.hasOwnProperty(t.get(i,e))}}}function tS(e){for(var t,n,r=e.length/2;0<r&&(t=e[2*r-2],n=e[2*r-1],isNaN(t)||isNaN(n));r--);return r-1}function nS(e,t){return[e[2*t],e[2*t+1]]}function rS(e){if(e.get(["endLabel","show"]))return 1;for(var t=0;t<Ks.length;t++)if(e.get([Ks[t],"endLabel","show"]))return 1}function iS(e,t,n,r){var i,o,a,s,u,l,c,h,d;return Wb(t,"cartesian2d")?(i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},u=rS(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,o,i,t)}:null,l=t.getBaseAxis().isHorizontal(),c=zb(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),u),r.get("clip",!0)||(h=c.shape,d=Math.max(h.width,h.height),l?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)),u&&u(1,c),c):Ub(t,n,r)}n(sS,oS=bg),sS.prototype.init=function(){var e=new Mi,t=new Dw;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},sS.prototype.render=function(e,t,n){function r(e){o._changePolyState(e)}var i,o=this,a=e.coordinateSystem,s=this.group,u=e.getData(),l=e.getModel("lineStyle"),c=e.getModel("areaStyle"),h=u.getLayout("points")||[],d="polar"===a.type,f=this._coordSys,p=this._symbolDraw,g=this._polyline,y=this._polygon,v=this._lineGroup,m=(t=!t.ssr&&e.get("animation"),!c.isEmpty()),_=c.get("origin"),x=Pw(a,u,_),b=(x=m&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=m_(2*r),o=0;o<r;o++){var a=Lw(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(a,u,x),e.get("showSymbol")),w=e.get("connectNulls"),S=b&&!d&&eS(e,u,a),k=this._data,A=(k&&k.eachItemGraphicEl((function(e,t){e.__temp&&(s.remove(e),k.setItemGraphicEl(t,null))})),b||p.remove(),s.add(v),!d&&e.get("step")),I=(a&&a.getArea&&e.get("clip",!0)&&(null!=(i=a.getArea()).width?(i.x-=.1,i.y-=.1,i.width+=.2,i.height+=.2):i.r0&&(i.r0-=.5,i.r+=.5)),this._clipShapeForSymbol=i,Qw(u,a,n)||u.getVisual("style")[u.getVisual("drawType")]);g&&f.type===a.type&&A===this._step?(m&&!y?y=this._newPolygon(h,x):y&&!m&&(v.remove(y),y=this._polygon=null),d||this._initOrUpdateEndLabel(e,a,ud(I)),(f=v.getClipPath())?Sc(f,{shape:iS(this,a,!1,e).shape},e):v.setClipPath(iS(this,a,!0,e)),b&&p.updateData(u,{isIgnore:S,clipShape:i,disableAnimation:!0,getSymbolPoint:function(e){return[h[2*e],h[2*e+1]]}}),Kw(this._stackedOnPoints,x)&&Kw(this._points,h)||(t?this._doUpdateAnimation(u,x,a,n,A,_,w):(A&&(h=Zw(h,a,A,w),x=x&&Zw(x,a,A,w)),g.setShape({points:h}),y&&y.setShape({points:h,stackedOnPoints:x})))):(b&&p.updateData(u,{isIgnore:S,clipShape:i,disableAnimation:!0,getSymbolPoint:function(e){return[h[2*e],h[2*e+1]]}}),t&&this._initSymbolLabelAnimation(u,a,i),A&&(h=Zw(h,a,A,w),x=x&&Zw(x,a,A,w)),g=this._newPolyline(h),m?y=this._newPolygon(h,x):y&&(v.remove(y),y=this._polygon=null),d||this._initOrUpdateEndLabel(e,a,ud(I)),v.setClipPath(iS(this,a,!0,e))),f=e.getModel("emphasis"),n=f.get("focus"),b=f.get("blurScope"),p=f.get("disabled"),g.useStyle(D(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Pu(g,e,"lineStyle"),0<g.style.lineWidth&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),zs(g).seriesIndex=e.seriesIndex,Mu(g,n,b,p),S=Jw(e.get("smooth")),t=e.get("smoothMonotone");g.setShape({smooth:S,smoothMonotone:t,connectNulls:w}),y&&(i=u.getCalculationInfo("stackedOnSeries"),m=0,y.useStyle(D(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:u.getVisual("style").decal})),i&&(m=Jw(i.get("smooth"))),y.setShape({smooth:S,stackedOnSmooth:m,smoothMonotone:t,connectNulls:w}),Pu(y,e,"areaStyle"),zs(y).seriesIndex=e.seriesIndex,Mu(y,n,b,p)),u.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=r)})),this._polyline.onHoverStateChange=r,this._data=u,this._coordSys=a,this._stackedOnPoints=x,this._points=h,this._step=A,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,g),y)&&this.packEventData(e,y)},sS.prototype.packEventData=function(e,t){zs(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},sS.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=_o(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&0<=o){var a=i.getLayout("points");if(!(u=i.getItemGraphicEl(o))){var s=a[2*o];a=a[2*o+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var u,l=e.get("zlevel")||0,c=e.get("z")||0;s=((u=new kw(i,o)).x=s,u.y=a,u.setZ(l,c),u.getSymbolPath().getTextContent());s&&(s.zlevel=l,s.z=c,s.z2=this._polyline.z2+1),u.__temp=!0,i.setItemGraphicEl(o,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else bg.prototype.highlight.call(this,e,t,n,r)},sS.prototype.downplay=function(e,t,n,r){var i,o=e.getData(),a=_o(o,r);this._changePolyState("normal"),null!=a&&0<=a?(i=o.getItemGraphicEl(a))&&(i.__temp?(o.setItemGraphicEl(a,null),this.group.remove(i)):i.downplay()):bg.prototype.downplay.call(this,e,t,n,r)},sS.prototype._changePolyState=function(e){var t=this._polygon;hu(this._polyline,e),t&&hu(t,e)},sS.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new zw({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t},sS.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Ww({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},sS.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse,s=(o=("cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0),e.hostModel),o.get("animationDuration")),u=($(s)&&(s=s(null)),o.get("animationDelay")||0),l=$(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var c,h,d,f,p,g=e;g&&(f=[e.x,e.y],p=h=c=void 0,n&&(p=i?(d=n,f=t.pointToCoord(f),r?(c=d.startAngle,h=d.endAngle,-f[1]/180*Math.PI):(c=d.r0,h=d.r,f[0])):r?(c=n.x,h=n.x+n.width,e.x):(c=n.y+n.height,h=n.y,e.y)),d=h===c?0:(p-c)/(h-c),a&&(d=1-d),f=$(u)?u(o):s*d+l,p=(e=g.getSymbolPath()).getTextContent(),g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:f}),p&&p.animateFrom({style:{opacity:0}},{duration:300,delay:f}),e.disableLabelAnimation=!0)}))},sS.prototype._initOrUpdateEndLabel=function(e,t,n){var r,i,o,a=e.getModel("endLabel");rS(e)?(r=e.getData(),i=this._polyline,(o=r.getLayout("points"))?(this._endLabel||((this._endLabel=new Ts({z2:200})).ignoreClip=!0,i.setTextContent(this._endLabel),i.disableLabelAnimation=!0),0<=(o=tS(o))&&(Kc(i,Xc(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:o,defaultText:function(e,t,n){return null!=n?Kb(r,n):Gb(r,e)},enableTextSetter:!0},(n=a,o=(e=(e=t).getBaseAxis()).isHorizontal(),e=e.inverse,a=o?e?"right":"left":"center",o=o?"middle":e?"top":"bottom",{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||o}})),i.textConfig.position=null)):(i.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},sS.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s,u,l,c,h,d,f,p,g,y,v=this._endLabel,m=this._polyline;v&&(e<1&&null==r.originalX&&(r.originalX=v.x,r.originalY=v.y),s=n.getLayout("points"),g=(u=n.hostModel).get("connectNulls"),l=o.get("precision"),o=o.get("distance")||0,h=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,t=t.shape,c=(h?o:0)*(a?-1:1),o=(h?0:-o)*(a?-1:1),f=void 0,1<=(p=(d=(h=function(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,u=-1,l=0;l<o;l++)if(i=e[2*l+a],!isNaN(i)&&!isNaN(e[2*l+1-a])){if(0!==l){if(r<=t&&t<=i||t<=r&&i<=t){u=l;break}s=l}r=i}return{range:[s,u],t:(t-r)/(i-r)}}(s,a=a?h?t.x:t.y+t.height:h?t.x+t.width:t.y,t=h?"x":"y")).range)[1]-d[0])?(1<p&&!g?(y=nS(s,d[0]),v.attr({x:y[0]+c,y:y[1]+o}),i&&(f=u.getRawValue(d[0]))):((y=m.getPointOn(a,t))&&v.attr({x:y[0]+c,y:y[1]+o}),p=u.getRawValue(d[0]),g=u.getRawValue(d[1]),i&&(f=Co(n,l,p,g,h.t))),r.lastFrameIndex=d[0]):(y=nS(s,m=1===e||0<r.lastFrameIndex?d[0]:0),i&&(f=u.getRawValue(m)),v.attr({x:y[0]+c,y:y[1]+o})),i)&&"function"==typeof(a=nh(v)).setLabelText&&a.setLabelText(f)},sS.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,u=this._polygon,l=e.hostModel,c=(t=function(e,t,n,r,i,o){a=[],t.diff(e).add((function(e){a.push({cmd:"+",idx:e})})).update((function(e,t){a.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){a.push({cmd:"-",idx:e})})).execute();for(var a,s=a,u=[],l=[],c=[],h=[],d=[],f=[],p=[],g=Pw(i,t,o),y=e.getLayout("points")||[],v=t.getLayout("points")||[],m=0;m<s.length;m++){var _=s[m],x=!0,b=void 0;switch(_.cmd){case"=":var w=2*_.idx,S=(b=2*_.idx1,y[w]),k=y[1+w],A=v[b],I=v[b+1];(isNaN(S)||isNaN(k))&&(S=A,k=I),u.push(S,k),l.push(A,I),c.push(n[w],n[1+w]),h.push(r[b],r[b+1]),p.push(t.getRawIndex(_.idx1));break;case"+":S=_.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],S),t.get(k[1],S)]),b=2*S,u.push(A[0],A[1]),l.push(v[b],v[b+1]),I=Lw(g,i,t,S),c.push(I[0],I[1]),h.push(r[b],r[b+1]),p.push(t.getRawIndex(S));break;case"-":x=!1}x&&(d.push(_),f.push(f.length))}f.sort((function(e,t){return p[e]-p[t]}));var C=m_(o=u.length),T=m_(o),M=m_(o),D=m_(o),O=[];for(m=0;m<f.length;m++){var P=f[m],L=2*m,E=2*P;C[L]=u[E],C[1+L]=u[1+E],T[L]=l[E],T[1+L]=l[1+E],M[L]=c[E],M[1+L]=c[1+E],D[L]=h[E],D[1+L]=h[1+E],O[m]=d[P]}return{current:C,next:T,stackedOnCurrent:M,stackedOnNext:D,status:O}}(this._data,e,this._stackedOnPoints,t,this._coordSys,this._valueOrigin),t.current),h=t.stackedOnCurrent,d=t.next,f=t.stackedOnNext;if(i&&(c=Zw(t.current,n,i,a),h=Zw(t.stackedOnCurrent,n,i,a),d=Zw(t.next,n,i,a),f=Zw(t.stackedOnNext,n,i,a)),3e3<Yw(c,d)||u&&3e3<Yw(h,f))s.stopAnimation(),s.setShape({points:d}),u&&(u.stopAnimation(),u.setShape({points:d,stackedOnPoints:f}));else{s.shape.__points=t.current,s.shape.points=c;n={shape:{points:d}};for(var p,g=(t.current!==c&&(n.shape.__points=t.next),s.stopAnimation(),wc(s,n,l),u&&(u.setShape({points:c,stackedOnPoints:h}),u.stopAnimation(),wc(u,{shape:{stackedOnPoints:f}},l),s.shape.points!==u.shape.points)&&(u.shape.points=s.shape.points),[]),y=t.status,v=0;v<y.length;v++)"="===y[v].cmd&&(p=e.getItemGraphicEl(y[v].idx1))&&g.push({el:p,ptIdx:v});s.animators&&s.animators.length&&s.animators[0].during((function(){u&&u.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=2*g[t].ptIdx;n.x=e[r],n.y=e[1+r],n.markRedraw()}}))}},sS.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},sS.type="line";var oS,aS=sS;function sS(){return null!==oS&&oS.apply(this,arguments)||this}ax((function(e){var t;e.registerChartView(aS),e.registerSeriesModel(bw),e.registerLayout((t=!0,{seriesType:"line",plan:mg(),reset:function(e){var n,r,i,o,a,s=e.getData(),u=e.coordinateSystem,l=(e=e.pipelineContext,t||e.large);if(u)return e=B(u.dimensions,(function(e){return s.mapDimension(e)})).slice(0,2),n=e.length,r=s.getCalculationInfo("stackResultDimension"),Wm(s,e[0])&&(e[0]=r),Wm(s,e[1])&&(e[1]=r),i=s.getStore(),o=s.getDimensionIndex(e[0]),a=s.getDimensionIndex(e[1]),n&&{progress:function(e,t){for(var r=e.end-e.start,s=l&&m_(r*n),c=[],h=[],d=e.start,f=0;d<e.end;d++){var p,g=void 0;g=1===n?(p=i.get(o,d),u.dataToPoint(p,null,h)):(c[0]=i.get(o,d),c[1]=i.get(a,d),u.dataToPoint(c,null,h)),l?(s[f++]=g[0],s[f++]=g[1]):t.setItemLayout(d,g.slice())}l&&t.setLayout("points",s)}}}})),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData();e=e.getModel("lineStyle").getLineStyle();e&&!e.stroke&&(e.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",e)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Eb("line"))}));var uS=2*Math.PI,lS=Math.PI/180;function cS(e,t){return gd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function hS(e,t){var n,r=cS(e,t),i=e.get("center"),o=e.get("radius"),a=(q(o)||(o=[0,o]),Vi(r.width,t.getWidth())),s=(t=Vi(r.height,t.getHeight()),Math.min(a,t)),u=Vi(o[0],s/2);o=Vi(o[1],s/2),s=e.coordinateSystem;return s=s?(n=(e=s.dataToPoint(i))[0]||0,e[1]||0):(n=Vi((i=q(i)?i:[i,i])[0],a)+r.x,Vi(i[1],t)+r.y),{cx:n,cy:s,r0:u,r:o}}function dS(e,t,n){t.eachSeriesByType(e,(function(e){var t,r=e.getData(),i=r.mapDimension("value"),o=cS(e,n),a=hS(e,n),s=a.cx,u=a.cy,l=a.r,c=a.r0,h=-e.get("startAngle")*lS,d=(a=e.get("endAngle"),e.get("padAngle")*lS),f=(a="auto"===a?h-uS:-a*lS,e.get("minAngle")*lS+d),p=0,g=(r.each(i,(function(e){isNaN(e)||p++})),r.getSum(i)),y=Math.PI/(g||p)*2,v=e.get("clockwise"),m=e.get("roseType"),_=e.get("stillShowZeroSum"),x=r.getDataExtent(i),b=(x[0]=0,v?1:-1),w=[h,a],S=b*d/2,k=(w=(za(w,!v),h=w[0],a=w[1],fS(e)),w.startAngle=h,w.endAngle=a,w.clockwise=v,Math.abs(a-h)),A=k,I=0,C=h;r.setLayout({viewRect:o,r:l}),r.each(i,(function(e,t){var n,i,o,a;isNaN(e)?r.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:s,cy:u,r0:c,r:m?NaN:l}):((n="area"!==m?0===g&&_?y:e*y:k/p)<f?A-=n=f:I+=e,i=C+b*n,a=o=0,a=n<d?o=C+b*n/2:(o=C+S,i-S),r.setItemLayout(t,{angle:n,startAngle:o,endAngle:a,clockwise:v,cx:s,cy:u,r0:c,r:m?Ui(e,x,[c,l]):l}),C=i)})),A<uS&&p&&(A<=.001?(t=k/p,r.each(i,(function(e,n){var i,o;isNaN(e)||(o=e=0,o=((i=r.getItemLayout(n)).angle=t)<d?e=h+b*(n+.5)*t:(e=h+b*n*t+S,h+b*(n+1)*t-S),i.startAngle=e,i.endAngle=o)}))):(y=A/I,C=h,r.each(i,(function(e,t){var n,i;isNaN(e)||(i=n=0,i=(e=(t=r.getItemLayout(t)).angle===f?f:e*y)<d?n=C+b*e/2:(n=C+S,C+b*e-S),t.startAngle=n,t.endAngle=i,C+=b*e)}))))}))}var fS=xo(),pS=Math.PI/180;function gS(e,t,n,r,i,o,a,s,u,l){if(!(e.length<2)){for(var c,h=e.length,d=0;d<h;d++)"outer"===e[d].position&&"labelLine"===e[d].labelAlignTo&&(c=e[d].label.x-l,e[d].linePoints[1][0]+=c,e[d].label.x=l);if(ob(e,u,u+a)){for(var f,p,g,y,v,m=e,_={list:[],maxY:0},x={list:[],maxY:0},b=0;b<m.length;b++)"none"===m[b].labelAlignTo&&(p=(f=m[b]).label.y>n?x:_,(g=Math.abs(f.label.y-n))>=p.maxY&&(v=f.label.x-t-f.len2*i,y=r+f.len,v=Math.abs(v)<y?Math.sqrt(g*g/(1-v*v/y/y)):y,p.rB=v,p.maxY=g),p.list.push(f));w(_),w(x)}}function w(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var u=e.list[s],l=Math.abs(u.label.y-n),c=r+u.len;c=c*c,l=Math.sqrt((1-Math.abs(l*l/a))*c),c=t+(l+u.len2)*i,l=c-u.label.x;yS(u,u.targetTextWidth-l*i,!0),u.label.x=c}}}function yS(e,t,n){var r,i,o,a,s,u,l;void 0===n&&(n=!1),null==e.labelStyleWidth&&(s=(r=e.label).style,i=e.rect,u=s.backgroundColor,l=(l=s.padding)?l[1]+l[3]:0,s=s.overflow,t<(o=i.width+(u?0:l))||n)&&(a=i.height,s&&s.match("break")?(r.setStyle("backgroundColor",null),r.setStyle("width",t-l),s=r.getBoundingRect(),r.setStyle("width",Math.ceil(s.width)),r.setStyle("backgroundColor",u)):(s=t-l,u=t<o||n&&!(s>e.unconstrainedWidth)?s:null,r.setStyle("width",u)),l=r.getBoundingRect(),i.width=l.width,t=(r.style.margin||0)+2.1,i.height=l.height+t,i.y-=(i.height-a)/2)}function vS(e){return"center"===e.position}function mS(e){var t,n,r=e.getData(),i=[],o=!1,a=(e.get("minShowLabelAngle")||0)*pS,s=r.getLayout("viewRect"),u=r.getLayout("r"),l=s.width,c=s.x,h=s.y;s=s.height;function d(e){e.ignore=!0}if(r.each((function(e){var s,h,f,p,g,y,v,m,_,x,b=r.getItemGraphicEl(e),w=b.shape,S=b.getTextContent(),k=b.getTextGuideLine(),A=(e=r.getItemModel(e),e.getModel("label")),I=A.get("position")||e.get(["emphasis","label","position"]),C=A.get("distanceToLabelLine"),T=A.get("alignTo"),M=Vi(A.get("edgeDistance"),l),D=A.get("bleedMargin"),O=(e=e.getModel("labelLine"),Vi(e.get("length"),l)),P=Vi(e.get("length2"),l);Math.abs(w.endAngle-w.startAngle)<a?(N(S.states,d),S.ignore=!0,k&&(N(k.states,d),k.ignore=!0)):function(e){if(!e.ignore)return 1;for(var t in e.states)if(!1===e.states[t].ignore)return 1}(S)&&(x=(w.startAngle+w.endAngle)/2,s=Math.cos(x),h=Math.sin(x),t=w.cx,n=w.cy,f="inside"===I||"inner"===I,v="center"===I?(p=w.cx,g=w.cy,"center"):(p=(v=(f?(w.r+w.r0)/2*s:w.r*s)+t)+3*s,g=(m=(f?(w.r+w.r0)/2*h:w.r*h)+n)+3*h,f||(y=v+s*(O+u-w.r),w=m+h*(O+u-w.r),_=y+(s<0?-1:1)*P,p="edge"===T?s<0?c+M:c+l-M:_+(s<0?-C:C),y=[[v,m],[y,g=w],[_,w]]),f?"center":"edge"===T?0<s?"right":"left":0<s?"left":"right"),m=Math.PI,_=0,G(w=A.get("rotate"))?_=w*(m/180):"center"===I?_=0:"radial"===w||!0===w?_=s<0?-x+m:-x:"tangential"===w&&"outside"!==I&&"outer"!==I&&((A=Math.atan2(s,h))<0&&(A=2*m+A),_=(A=0<h?m+A:A)-m),o=!!_,S.x=p,S.y=g,S.rotation=_,S.setStyle({verticalAlign:"middle"}),f?(S.setStyle({align:v}),(x=S.states.select)&&(x.x+=S.x,x.y+=S.y)):((w=S.getBoundingRect().clone()).applyTransform(S.getComputedTransform()),A=(S.style.margin||0)+2.1,w.y-=A/2,w.height+=A,i.push({label:S,labelLine:k,position:I,len:O,len2:P,minTurnAngle:e.get("minTurnAngle"),maxSurfaceAngle:e.get("maxSurfaceAngle"),surfaceNormal:new St(s,h),linePoints:y,textAlign:v,labelDistance:C,labelAlignTo:T,edgeDistance:M,bleedMargin:D,rect:w,unconstrainedWidth:w.width,labelStyleWidth:S.style.width})),b.setTextConfig({inside:f}))})),!o&&e.get("avoidLabelOverlap")){for(var f=i,p=t,g=(e=n,u),y=l,v=c,m=[],_=[],x=Number.MAX_VALUE,b=-Number.MAX_VALUE,w=0;w<f.length;w++){var S=f[w].label;vS(f[w])||(S.x<p?(x=Math.min(x,S.x),m):(b=Math.max(b,S.x),_)).push(f[w])}var k;for(w=0;w<f.length;w++)!vS(A=f[w])&&A.linePoints&&null==A.labelStyleWidth&&(S=A.label,I=A.linePoints,k=void 0,k="edge"===A.labelAlignTo?S.x<p?I[2][0]-A.labelDistance-v-A.edgeDistance:v+y-A.edgeDistance-I[2][0]-A.labelDistance:"labelLine"===A.labelAlignTo?S.x<p?x-v-A.bleedMargin:v+y-b-A.bleedMargin:S.x<p?S.x-v-A.bleedMargin:v+y-S.x-A.bleedMargin,A.targetTextWidth=k,yS(A,k));gS(_,p,e,g,1,0,s,0,h,b),gS(m,p,e,g,-1,0,s,0,h,x);var A,I,C,T,M;for(w=0;w<f.length;w++)!vS(A=f[w])&&A.linePoints&&(S=A.label,I=A.linePoints,C="edge"===A.labelAlignTo,T=(T=S.style.padding)?T[1]+T[3]:0,T=S.style.backgroundColor?0:T,T=A.rect.width+T,M=I[1][0]-I[2][0],C?S.x<p?I[2][0]=v+A.edgeDistance+T+A.labelDistance:I[2][0]=v+y-A.edgeDistance-T-A.labelDistance:(S.x<p?I[2][0]=S.x+A.labelDistance:I[2][0]=S.x-A.labelDistance,I[1][0]=I[2][0]+M),I[1][1]=I[2][1]=S.y)}for(var D=0;D<i.length;D++){var O,P=i[D],L=P.label,E=P.labelLine,R=isNaN(L.x)||isNaN(L.y);L&&(L.setStyle({align:P.textAlign}),R&&(N(L.states,d),L.ignore=!0),O=L.states.select)&&(O.x+=L.x,O.y+=L.y),E&&(O=P.linePoints,R||!O?(N(E.states,d),E.ignore=!0):(Zx(O,P.minTurnAngle),function(e,t,n){if(n<=180&&0<n){n=n/180*Math.PI,$x.fromArray(e[0]),Hx.fromArray(e[1]),Wx.fromArray(e[2]),St.sub(Gx,Hx,$x),St.sub(Kx,Wx,Hx);var r=Gx.len(),i=Kx.len();if(!(r<.001||i<.001)&&(Gx.scale(1/r),Kx.scale(1/i),Gx.dot(t)<Math.cos(n))){if(r=zx(Hx.x,Hx.y,Wx.x,Wx.y,$x.x,$x.y,Yx,!1),Jx.fromArray(Yx),i=Math.PI/2,t=i+Math.acos(Kx.dot(t))-n,i<=t)St.copy(Jx,Wx);else{if(Jx.scaleAndAdd(Kx,r/Math.tan(Math.PI/2-t)),n=Wx.x!==Hx.x?(Jx.x-Hx.x)/(Wx.x-Hx.x):(Jx.y-Hx.y)/(Wx.y-Hx.y),isNaN(n))return;n<0?St.copy(Jx,Hx):1<n&&St.copy(Jx,Wx)}Jx.toArray(e[1])}}}(O,P.surfaceNormal,P.maxSurfaceAngle),E.setShape({points:O}),L.__hostTarget.textGuideLineConfig={anchor:new St(O[0][0],O[0][1])}))}}n(bS,_S=Al),bS.prototype.updateData=function(e,t,n,r){var i=this,o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),u=e.getItemLayout(t),l=M(Jb(a.getModel("itemStyle"),u,!0),u);isNaN(l.startAngle)?i.setShape(l):(r?(i.setShape(l),r=o.getShallow("animationType"),o.ecModel.ssr?(Sc(i,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):"scale"===r?(i.shape.r=u.r0,Sc(i,{shape:{r:u.r}},o,t)):null!=n?(i.setShape({startAngle:n,endAngle:n}),Sc(i,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},o,t)):(i.shape.endAngle=u.startAngle,wc(i,{shape:{endAngle:u.endAngle}},o,t))):(Tc(i),wc(i,{shape:l},o,t)),i.useStyle(e.getItemVisual(t,"style")),Pu(i,a),r=(u.startAngle+u.endAngle)/2,n=o.get("selectedOffset"),l=Math.cos(r)*n,r=Math.sin(r)*n,(n=a.getShallow("cursor"))&&i.attr("cursor",n),this._updateLabel(o,e,t),i.ensureState("emphasis").shape=M({r:u.r+(s.get("scale")&&s.get("scaleSize")||0)},Jb(s.getModel("itemStyle"),u)),M(i.ensureState("select"),{x:l,y:r,shape:Jb(a.getModel(["select","itemStyle"]),u)}),M(i.ensureState("blur"),{shape:Jb(a.getModel(["blur","itemStyle"]),u)}),n=i.getTextGuideLine(),o=i.getTextContent(),n&&M(n.ensureState("select"),{x:l,y:r}),M(o.ensureState("select"),{x:l,y:r}),Mu(this,s.get("focus"),s.get("blurScope"),s.get("disabled")))},bS.prototype._updateLabel=function(e,t,n){var r=t.getItemModel(n),i=r.getModel("labelLine"),o=t.getItemVisual(n,"style"),a=o&&o.fill;o=o&&o.opacity,Kc(this,Xc(r),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:o,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)}),t=this.getTextContent(),this.setTextConfig({position:null,rotation:null}),t.attr({z2:10}),n=e.get(["label","position"]);"outside"!==n&&"outer"!==n?this.removeTextGuideLine():(this.getTextGuideLine()||(t=new Fl,this.setTextGuideLine(t)),tb(this,nb(r),{stroke:a,opacity:ie(i.get(["lineStyle","opacity"]),o,1)}))};var _S,xS=bS;function bS(e,t,n){var r=_S.call(this)||this,i=(r.z2=2,new Ts);return r.setTextContent(i),r.updateData(e,t,n,!0),r}n(kS,wS=bg),kS.prototype.render=function(e,t,n,r){var i,o,a=e.getData(),s=this._data,u=this.group;if(!s&&0<a.count()){for(var l=a.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c<a.count();++c)l=a.getItemLayout(c);l&&(i=l.startAngle)}this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===a.count()&&e.get("showEmptyCircle")&&(o=fS(e),(n=new Al({shape:M(hS(e,n),o)})).useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=n,u.add(n)),a.diff(s).add((function(e){var t=new xS(a,e,i);a.setItemGraphicEl(e,t),u.add(t)})).update((function(e,t){t=s.getItemGraphicEl(t),t.updateData(a,e,i),t.off("click"),u.add(t),a.setItemGraphicEl(e,t)})).remove((function(t){Cc(s.getItemGraphicEl(t),e,t)})).execute(),mS(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=a)},kS.prototype.dispose=function(){},kS.prototype.containPoint=function(e,t){var n;t=t.getData().getItemLayout(0);if(t)return n=e[0]-t.cx,e=e[1]-t.cy,(n=Math.sqrt(n*n+e*e))<=t.r&&n>=t.r0},kS.type="pie";var wS,SS=kS;function kS(){var e=null!==wS&&wS.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}IS.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},IS.prototype.containName=function(e){return 0<=this._getRawData().indexOfName(e)},IS.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},IS.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)};var AS=IS;function IS(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}var CS,TS=xo(),MS=(n(DS,CS=sg),DS.prototype.init=function(e){CS.prototype.init.apply(this,arguments),this.legendVisualProvider=new AS(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(e)},DS.prototype.mergeOption=function(){CS.prototype.mergeOption.apply(this,arguments)},DS.prototype.getInitialData=function(){return t=q(t={coordDimensions:["value"],encodeDefaulter:V(zd,e=this)})?{coordDimensions:t}:M({encodeDefine:e.getEncode()},t),r=e.getSource(),t=Um(r,t).dimensions,(t=new jm(t,e)).initData(r,n),t;var e,t,n,r},DS.prototype.getDataParams=function(e){var t,n=this.getData(),r=TS(n),i=r.seats;i||(t=[],n.each(n.mapDimension("value"),(function(e){t.push(e)})),i=r.seats=Gi(t,n.hostModel.get("percentPrecision"))),r=CS.prototype.getDataParams.call(this,e);return r.percent=i[e]||0,r.$vars.push("percent"),r},DS.prototype._defaultLabelLine=function(e){uo(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},DS.type="series.pie",DS.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},DS);function DS(){return null!==CS&&CS.apply(this,arguments)||this}ax((function(e){e.registerChartView(SS),e.registerSeriesModel(MS),ry("pie",e.registerAction),e.registerLayout(V(dS,"pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var n,r=t.findComponents({mainType:"legend"});r&&r.length&&(n=e.getData()).filterSelf((function(e){for(var t=n.getName(e),i=0;i<r.length;i++)if(!r[i].isSelected(t))return!1;return!0}))}}),e.registerProcessor({seriesType:"pie",reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value");t=n.get(t,e);return!(G(t)&&!isNaN(t)&&t<0)}))}})})),n(LS,OS=kd),LS.type="grid",LS.dependencies=["xAxis","yAxis"],LS.layoutMode="box",LS.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var OS,PS=LS;function LS(){return null!==OS&&OS.apply(this,arguments)||this}n(NS,ES=kd),NS.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ko).models[0]},NS.type="cartesian2dAxis";var ES,RS=NS;function NS(){return null!==ES&&ES.apply(this,arguments)||this}E(RS,nx);Eo={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},uy=T({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Eo),fy=T({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Eo);var BS={category:uy,value:fy,time:T({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fy),log:D({logBase:10},fy)},FS={value:1,category:1,time:1,log:1};function jS(e,t,r,i){N(FS,(function(o,a){var s,u=T(T({},BS[a],!0),i,!0);n(l,s=r),l.prototype.mergeDefaultAndTheme=function(e,t){var n=yd(this),r=n?md(e):{};T(e,t.getTheme().get(a+"Axis")),T(e,this.getDefaultOption()),e.type=zS(e),n&&vd(e,r,n)},l.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Zm.createByAxisModel(this))},l.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+a,l.defaultOption=u,u=l;function l(){var e=null!==s&&s.apply(this,arguments)||this;return e.type=t+"Axis."+a,e}e.registerComponentModel(u)})),e.registerSubTypeDefaulter(t+"Axis",zS)}function zS(e){return e.type||(e.data?"category":"value")}function US(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}US.prototype.getAxis=function(e){return this._axes[e]},US.prototype.getAxes=function(){return B(this._dimList,(function(e){return this._axes[e]}),this)},US.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),j(this.getAxes(),(function(t){return t.scale.type===e}))},US.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)};var VS=["x","y"];function qS(e){return"interval"===e.type||"time"===e.type}n(WS,$S=US),WS.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e,t,n,r,i=this.getAxis("x").scale,o=this.getAxis("y").scale;qS(i)&&qS(o)&&(i=i.getExtent(),o=o.getExtent(),r=this.dataToPoint([i[0],o[0]]),t=this.dataToPoint([i[1],o[1]]),e=i[1]-i[0],n=o[1]-o[0],e)&&n&&(e=(t[0]-r[0])/e,t=(t[1]-r[1])/n,n=r[0]-i[0]*e,i=r[1]-o[0]*t,r=this._transform=[e,0,0,t,n,i],this._invTransform=bt([],r))},WS.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},WS.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},WS.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},WS.prototype.containZone=function(e,t){e=this.dataToPoint(e),t=this.dataToPoint(t);var n=this.getArea();t=new Lt(e[0],e[1],t[0]-e[0],t[1]-e[1]);return n.intersect(t)},WS.prototype.dataToPoint=function(e,t,n){n=n||[];var r,i=e[0],o=e[1];return this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o)?Fe(n,e,this._transform):(e=this.getAxis("x"),r=this.getAxis("y"),n[0]=e.toGlobalCoord(e.dataToCoord(i,t)),n[1]=r.toGlobalCoord(r.dataToCoord(o,t)),n)},WS.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent();n=n.parse(e[0]),r=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),n),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),r),Math.max(o[0],o[1])),t},WS.prototype.pointToData=function(e,t){var n,r,i=[];return this._invTransform?Fe(i,e,this._invTransform):(n=this.getAxis("x"),r=this.getAxis("y"),i[0]=n.coordToData(n.toLocalCoord(e[0]),t),i[1]=r.coordToData(r.toLocalCoord(e[1]),t),i)},WS.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},WS.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;t=Math.max(t[0],t[1])-r+e,n=Math.max(n[0],n[1])-i+e;return new Lt(r,i,t,n)};var $S,HS=WS;function WS(){var e=null!==$S&&$S.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=VS,e}n(XS,GS=gh),XS.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},XS.prototype.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},XS.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},XS.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)};var GS,KS=XS;function XS(e,t,n,r,i){return e=GS.call(this,e,t,n)||this,e.index=0,e.type=r||"value",e.position=i||"bottom",e}function YS(e){return"cartesian2d"===e.get("coordinateSystem")}function JS(e){var t={xAxisModel:null,yAxisModel:null};return N(t,(function(n,r){var i=r.replace(/Model$/,"");i=e.getReferringComponents(i,ko).models[0];t[r]=i})),t}var ZS=Math.log;ek.prototype.getRect=function(){return this._rect},ek.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=z(e),r=n.length;if(r){for(var i=[],o=r-1;0<=o;o--){var a=e[+n[o]],s=a.model,u=a.scale;t_(u)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(Y_(u,s),t_(u)&&(t=a))}i.length&&(t||Y_((t=i.pop()).scale,t.model),N(i,(function(e){var n=e.scale,r=(e=e.model,t.scale),i=p_.prototype,o=i.getTicks.call(r),a=i.getTicks.call(r,!0),s=o.length-1,u=(r=i.getInterval.call(r),(e=X_(n,e)).extent),l=e.fixMin,c=(e=e.fixMax,"log"===n.type&&(c=ZS(n.base),u=[ZS(u[0])/c,ZS(u[1])/c]),n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:s,fixMin:l,fixMax:e}),i.getExtent.call(n)),h=(l&&(u[0]=c[0]),e&&(u[1]=c[1]),i.getInterval.call(n)),d=u[0],f=u[1];if(l&&e)h=(f-d)/s;else if(l)for(f=u[0]+h*s;f<u[1]&&isFinite(f)&&isFinite(u[1]);)h=r_(h),f=u[0]+h*s;else if(e)for(d=u[1]-h*s;d>u[0]&&isFinite(d)&&isFinite(u[0]);)h=r_(h),d=u[1]-h*s;else c=(h=s<n.getTicks().length-1?r_(h):h)*s,(d=qi((f=Math.ceil(u[1]/h)*h)-c))<0&&0<=u[0]?(d=0,f=qi(c)):0<f&&u[1]<=0&&(f=0,d=-qi(c));l=(o[0].value-a[0].value)/r,e=(o[s].value-a[s].value)/r,i.setExtent.call(n,d+h*l,f+h*e),i.setInterval.call(n,h),(l||e)&&i.setNiceExtent.call(n,d+h,f-h)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};N(n.x,(function(e){nk(n,"y",e,i)})),N(n.y,(function(e){nk(n,"x",e,i)})),this.resize(this.model,t)},ek.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=(n=!n&&e.get("containLabel"),gd(r,{width:t.getWidth(),height:t.getHeight()})),o=(this._rect=i,this._axesList);function a(){N(o,(function(e){var t,n,r=e.isHorizontal(),o=r?[0,i.width]:[0,i.height],a=e.inverse?1:0;e.setExtent(o[a],o[1-a]),o=e,t=r?i.x:i.y,a=o.getExtent(),n=a[0]+a[1],o.toGlobalCoord="x"===o.dim?function(e){return e+t}:function(e){return n-e+t},o.toLocalCoord="x"===o.dim?function(e){return e-t}:function(e){return n-e+t}}))}a(),n&&(N(o,(function(e){var t,n,r;e.model.get(["axisLabel","inside"])||(t=Q_(e))&&(n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]),i[n]-=t[n]+r,"top"===e.position?i.y+=t.height+r:"left"===e.position&&(i.x+=t.width+r))})),a()),N(this._coordsList,(function(e){e.calcAffineTransform()}))},ek.prototype.getAxis=function(e,t){if(e=this._axesMap[e],null!=e)return e[t||0]},ek.prototype.getAxes=function(){return this._axesList.slice()},ek.prototype.getCartesian=function(e,t){if(null!=e&&null!=t)return this._coordsMap["x"+e+"y"+t];K(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===e||r[n].getAxis("y").index===t)return r[n]},ek.prototype.getCartesians=function(){return this._coordsList.slice()},ek.prototype.convertToPixel=function(e,t,n){return t=this._findConvertTarget(t),t.cartesian?t.cartesian.dataToPoint(n):t.axis?t.axis.toGlobalCoord(t.axis.dataToCoord(n)):null},ek.prototype.convertFromPixel=function(e,t,n){return t=this._findConvertTarget(t),t.cartesian?t.cartesian.pointToData(n):t.axis?t.axis.coordToData(t.axis.toLocalCoord(n)):null},ek.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",ko).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",ko).models[0],a=(e=e.gridModel,this._coordsList);return r?P(a,t=r.coordinateSystem)<0&&(t=null):i&&o?t=this.getCartesian(i.componentIndex,o.componentIndex):i?n=this.getAxis("x",i.componentIndex):o?n=this.getAxis("y",o.componentIndex):e&&e.coordinateSystem===this&&(t=this._coordsList[0]),{cartesian:t,axis:n}},ek.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},ek.prototype._initCartesian=function(e,t,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};function u(t){return function(n,r){var u,l;tk(n,e)&&(u=n.get("position"),"x"===t?"top"!==u&&"bottom"!==u&&(u=o.bottom?"top":"bottom"):"left"!==u&&"right"!==u&&(u=o.left?"right":"left"),o[u]=!0,l="category"===(u=new KS(t,J_(n),[0,0],n.get("type"),u)).type,u.onBand=l&&n.get("boundaryGap"),u.inverse=n.get("inverse"),(n.axis=u).model=n,u.grid=i,u.index=r,i._axesList.push(u),a[t][r]=u,s[t]++)}}t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),s.x&&s.y?N((this._axesMap=a).x,(function(t,n){N(a.y,(function(i,o){o="x"+n+"y"+o;var a=new HS(o);a.master=r,a.model=e,r._coordsMap[o]=a,r._coordsList.push(a),a.addAxis(t),a.addAxis(i)}))})):(this._axesMap={},this._axesList=[])},ek.prototype._updateScale=function(e,t){function n(e,t){var n,r,i;N((n=e,r=t.dim,i={},N(n.mapDimensionsAll(r),(function(e){i[Gm(n,e)]=!0})),z(i)),(function(n){t.scale.unionExtentFromData(e,n)}))}N(this._axesList,(function(e){var t;e.scale.setExtent(1/0,-1/0),"category"===e.type&&(t=e.model.get("categorySortInfo"),e.scale.setSortInfo(t))})),e.eachSeries((function(e){var r,i;YS(e)&&(i=(r=JS(e)).xAxisModel,r=r.yAxisModel,tk(i,t))&&tk(r,t)&&(i=this.getCartesian(i.componentIndex,r.componentIndex),r=e.getData(),e=i.getAxis("x"),i=i.getAxis("y"),n(r,e),n(r,i))}),this)},ek.prototype.getTooltipAxes=function(e){var t=[],n=[];return N(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis();r=r.getOtherAxis(i);P(t,i)<0&&t.push(i),P(n,r)<0&&n.push(r)})),{baseAxes:t,otherAxes:n}},ek.create=function(e,t){var n=[];return e.eachComponent("grid",(function(r,i){var o=new ek(r,e,t);o.name="grid_"+i,o.resize(r,t,!0),r.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){var t,n,r;YS(e)&&(t=(n=JS(e)).xAxisModel,n=n.yAxisModel,r=t.getCoordSysModel().coordinateSystem,e.coordinateSystem=r.getCartesian(t.componentIndex,n.componentIndex))})),n},ek.dimensions=VS;var QS=ek;function ek(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=VS,this._initCartesian(e,t,n),this.model=e}function tk(e,t){return e.getCoordSysModel()===t}function nk(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t];e=n.model,t=e.get(["axisLine","onZero"]),n=e.get(["axisLine","onZeroAxisIndex"]);if(t){if(null!=n)rk(o[n])&&(i=o[n]);else for(var a in o)if(o.hasOwnProperty(a)&&rk(o[a])&&!r[s(o[a])]){i=o[a];break}i&&(r[s(i)]=!0)}function s(e){return e.dim+"_"+e.index}}function rk(e){return e&&"category"!==e.type&&"time"!==e.type&&(t=(e=(e=e).scale.getExtent())[0],e=e[1],!(0<t&&0<e||t<0&&e<0));var t}var ik=Math.PI,ok=(ak.prototype.hasBuilder=function(e){return!!sk[e]},ak.prototype.add=function(e){sk[e](this.opt,this.axisModel,this.group,this._transformGroup)},ak.prototype.getGroup=function(){return this.group},ak.innerTextLayout=function(e,t,n){var r;t=Ki(t-e),e=Xi(t)?(r=0<n?"top":"bottom","center"):Xi(t-ik)?(r=0<n?"bottom":"top","center"):(r="middle",0<t&&t<ik?0<n?"right":"left":0<n?"left":"right");return{rotation:t,textAlign:e,textVerticalAlign:r}},ak.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},ak.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},ak);function ak(e,t){this.group=new Mi,this.opt=t,this.axisModel=e,D(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),e=new Mi({x:t.position[0],y:t.position[1],rotation:t.rotation}),e.updateTransform(),this._transformGroup=e}var sk={axisLine:function(e,t,n,r){var i,o,a,s,u,l,c,h=t.get(["axisLine","show"]);(h="auto"===h&&e.handleAutoShown?e.handleAutoShown("axisLine"):h)&&(h=t.axis.getExtent(),r=r.transform,i=[h[0],0],o=[h[1],0],a=o[0]<i[0],r&&(Fe(i,i,r),Fe(o,o,r)),s=M({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),jc((h=new ql({shape:{x1:i[0],y1:i[1],x2:o[0],y2:o[1]},style:s,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1})).shape,h.style.lineWidth),h.anid="line",n.add(h),null!=(u=t.get(["axisLine","symbol"])))&&(r=t.get(["axisLine","symbolSize"]),H(u)&&(u=[u,u]),(H(r)||G(r))&&(r=[r,r]),h=_y(t.get(["axisLine","symbolOffset"])||0,r),l=r[0],c=r[1],N([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((i[0]-o[0])*(i[0]-o[0])+(i[1]-o[1])*(i[1]-o[1]))}],(function(t,r){var h;"none"!==u[r]&&null!=u[r]&&(r=my(u[r],-l/2,-c/2,l,c,s.stroke,!0),h=t.r+t.offset,r.attr({rotation:t.rotate,x:(t=a?o:i)[0]+h*Math.cos(e.rotation),y:t[1]-h*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r))})))},axisTickLabel:function(e,t,n,r){var i,o,a,s,u,l=function(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){a=o.getModel("lineStyle"),r=r.tickDirection*o.get("length");for(var s=hk(i.getTicksCoords(),t.transform,r,D(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<s.length;u++)e.add(s[u]);return s}}(n,r,t,e),c=function(e,t,n,r){var i,o,a,s,u,l,c,h,d=n.axis,f=ne(r.axisLabelShow,n.get(["axisLabel","show"]));if(f&&!d.scale.isBlank())return i=n.getModel("axisLabel"),o=i.get("margin"),a=d.getViewLabels(),f=(ne(r.labelRotate,i.get("rotate"))||0)*ik/180,s=ok.innerTextLayout(r.rotation,f,r.labelDirection),u=n.getCategories&&n.getCategories(!0),l=[],c=ok.isLabelSilent(n),h=n.get("triggerEvent"),N(a,(function(f,p){var g="ordinal"===d.scale.type?d.scale.getRawOrdinalNumber(f.tickValue):f.tickValue,y=f.formattedLabel,v=f.rawLabel,m=i,_=(m=u&&u[g]&&K(_=u[g])&&_.textStyle?new mh(_.textStyle,i,n.ecModel):m).getTextColor()||n.get(["axisLine","lineStyle","color"]),x=d.dataToCoord(g),b=m.getShallow("align",!0)||s.textAlign,w=re(m.getShallow("alignMinLabel",!0),b),S=re(m.getShallow("alignMaxLabel",!0),b),k=m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||s.textVerticalAlign,A=re(m.getShallow("verticalAlignMinLabel",!0),k),I=re(m.getShallow("verticalAlignMaxLabel",!0),k);x=new Ts({x:x,y:r.labelOffset+r.labelDirection*o,rotation:s.rotation,silent:c,z2:10+(f.level||0),style:Yc(m,{text:y,align:0===p?w:p===a.length-1?S:b,verticalAlign:0===p?A:p===a.length-1?I:k,fill:$(_)?_("category"===d.type?v:"value"===d.type?g+"":g,p):_})});x.anid="label_"+g,h&&((f=ok.makeAxisEventDataBase(n)).targetType="axisLabel",f.value=v,f.tickIndex=p,"category"===d.type&&(f.dataIndex=g),zs(x).eventData=f),t.add(x),x.updateTransform(),l.push(x),e.add(x),x.decomposeTransform()})),l}(n,r,t,e),h=(o=c,l=l,tx((i=t).axis)||(f=i.get(["axisLabel","showMinLabel"]),i=i.get(["axisLabel","showMaxLabel"]),l=l||[],y=(o=o||[])[0],p=o[1],a=o[o.length-1],o=o[o.length-2],s=l[0],g=l[1],u=l[l.length-1],l=l[l.length-2],!1===f?(uk(y),uk(s)):lk(y,p)&&(f?(uk(p),uk(g)):(uk(y),uk(s))),!1===i?(uk(a),uk(u)):lk(o,a)&&(i?(uk(o),uk(l)):(uk(a),uk(u)))),n),d=r,f=t,p=e.tickDirection,g=f.axis,y=f.getModel("minorTick");if(y.get("show")&&!g.scale.isBlank()){var v=g.getMinorTicksCoords();if(v.length){g=y.getModel("lineStyle");for(var m=p*y.get("length"),_=D(g.getLineStyle(),D(f.getModel("axisTick").getLineStyle(),{stroke:f.get(["axisLine","lineStyle","color"])})),x=0;x<v.length;x++)for(var b=hk(v[x],d.transform,m,_,"minorticks_"+x),w=0;w<b.length;w++)h.add(b[w])}}t.get(["axisLabel","hideOverlap"])&&ab(rb(B(c,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}}))))},axisName:function(e,t,n,r){var i,o,a,s,u,l,c,h,d=ne(e.axisName,t.get("name"));d&&(h=t.get("nameLocation"),u=e.nameDirection,i=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,o=(c=t.axis.getExtent())[0]>c[1]?-1:1,o=["start"===h?c[0]-o*l:"end"===h?c[1]+o*l:(c[0]+c[1])/2,ck(h)?e.labelOffset+u*l:0],null!=(l=t.get("nameRotate"))&&(l=l*ik/180),ck(h)?a=ok.innerTextLayout(e.rotation,null!=l?l:e.rotation,u):(a=function(e,t,n,r){var i;n=Ki(n-e),e=r[0]>r[1],r="start"===t&&!e||"start"!==t&&e;return t=Xi(n-ik/2)?(i=r?"bottom":"top","center"):Xi(n-1.5*ik)?(i=r?"top":"bottom","center"):(i="middle",n<1.5*ik&&ik/2<n?r?"left":"right":r?"right":"left"),{rotation:n,textAlign:t,textVerticalAlign:i}}(e.rotation,h,l||0,c),null!=(s=e.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),u=i.getFont(),l=(h=t.get("nameTruncate",!0)||{}).ellipsis,c=ne(e.nameTruncateMaxWidth,h.maxWidth,s),Vc({el:e=new Ts({x:o[0],y:o[1],rotation:a.rotation,silent:ok.isLabelSilent(t),style:Yc(i,{text:d,font:u,overflow:"truncate",width:c,ellipsis:l,fill:i.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:i.get("align")||a.textAlign,verticalAlign:i.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:t,itemName:d}),e.__fullText=d,e.anid="name",t.get("triggerEvent")&&((h=ok.makeAxisEventDataBase(t)).targetType="axisName",h.name=d,zs(e).eventData=h),r.add(e),e.updateTransform(),n.add(e),e.decomposeTransform())}};function uk(e){e&&(e.ignore=!0)}function lk(e,t){var n,r=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(r&&i)return _t(n=gt([]),n,-e.rotation),r.applyTransform(vt([],n,e.getLocalTransform())),i.applyTransform(vt([],n,t.getLocalTransform())),r.intersect(i)}function ck(e){return"middle"===e||"center"===e}function hk(e,t,n,r,i){for(var o=[],a=[],s=[],u=0;u<e.length;u++){var l=e[u].coord;l=(a[0]=l,s[a[1]=0]=l,s[1]=n,t&&(Fe(a,a,t),Fe(s,s,t)),new ql({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0}));jc(l.shape,l.style.lineWidth),l.anid=i+"_"+e[u].tickValue,o.push(l)}return o}function dk(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[e.type+"||"+e.id]}var fk,pk={};n(gk,fk=yg),gk.prototype.render=function(e,t,n,r){var i,o,a,s,u,l;this.axisPointerClass&&(i=dk(i=e))&&(u=i.axisPointerModel,o=i.axis.scale,a=u.option,l=u.get("status"),null!=(s=u.get("value"))&&(s=o.parse(s)),u=!!u.get(["handle","show"]),null==l&&(a.status=u?"show":"hide"),(l=o.getExtent().slice())[0]>l[1]&&l.reverse(),(s=null==s||s>l[1]?l[1]:s)<l[0]&&(s=l[0]),a.value=s,u)&&(a.status=i.axis.scale.isBlank()?"hide":"show"),fk.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},gk.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},gk.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},gk.prototype.dispose=function(e,t){this._disposeAxisPointer(t),fk.prototype.dispose.apply(this,arguments)},gk.prototype._doUpdateAxisPointerClass=function(e,t,n){var r,i=gk.getAxisPointerClass(this.axisPointerClass);i&&((r=(r=dk(r=e))&&r.axisPointerModel)?(this._axisPointer||(this._axisPointer=new i)).render(e,r,t,n):this._disposeAxisPointer(t))},gk.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},gk.registerAxisPointerClass=function(e,t){pk[e]=t},gk.getAxisPointerClass=function(e){return e&&pk[e]},gk.type="axis",Xl=gk;function gk(){var e=null!==fk&&fk.apply(this,arguments)||this;return e.type=gk.type,e}var yk,vk=xo(),mk=["axisLine","axisTickLabel","axisName"],_k=["splitArea","splitLine","minorSplitLine"];n(xk,yk=Xl),xk.prototype.render=function(e,t,n,r){this.group.removeAll();var i,o,a,s,u,l,c,h,d,f,p,g,y,v,m,_=this._axisGroup;function x(e){var t={x:e.x,y:e.y,rotation:e.rotation};return null!=e.shape&&(t.shape=M({},e.shape)),t}this._axisGroup=new Mi,this.group.add(this._axisGroup),e.get("show")&&(i=e.getCoordSysModel(),o=e,a=a||{},f=(f=i).coordinateSystem,p=o.axis,s={},g=p.getAxesOnZeroOf()[0],u=p.position,l=g?"onZero":u,p=p.dim,f=[(f=f.getRect()).x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=o.get("offset")||0,h="x"===p?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h],g&&(d=g.toGlobalCoord(g.dataToCoord(0)),h[c.onZero]=Math.max(Math.min(d,h[1]),h[0])),s.position=["y"===p?h[c[l]]:f[0],"x"===p?h[c[l]]:f[3]],s.rotation=Math.PI/2*("x"===p?0:1),s.labelDirection=s.tickDirection=s.nameDirection={top:-1,bottom:1,left:-1,right:1}[u],s.labelOffset=g?h[c[u]]-h[c.onZero]:0,o.get(["axisTick","inside"])&&(s.tickDirection=-s.tickDirection),ne(a.labelInside,o.get(["axisLabel","inside"]))&&(s.labelDirection=-s.labelDirection),d=o.get(["axisLabel","rotate"]),s.labelRotate="top"===l?-d:d,s.z2=1,f=new ok(e,M({handleAutoShown:function(t){for(var n=i.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(t_(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},s)),N(mk,f.add,f),this._axisGroup.add(f.getGroup()),N(_k,(function(t){e.get([t,"show"])&&wk[t](this,this._axisGroup,e,i)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||(p=_,g=this._axisGroup,y=e,p&&g&&(m={},p.traverse((function(e){zc(e)&&e.anid&&(m[e.anid]=e)})),v=m,g.traverse((function(e){var t,n;zc(e)&&e.anid&&(t=v[e.anid])&&(n=x(e),e.attr(x(t)),wc(e,n,y,zs(e).dataIndex))})))),yk.prototype.render.call(this,e,t,n,r))},xk.prototype.remove=function(){vk(this).splitAreaColors=null},xk.type="cartesianAxis",il=xk;function xk(){var e=null!==yk&&yk.apply(this,arguments)||this;return e.type=xk.type,e.axisPointerClass="CartesianAxisPointer",e}var bk,wk={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){n=n.getModel("splitLine");for(var o=n.getModel("lineStyle"),a=q(a=o.get("color"))?a:[a],s=r.coordinateSystem.getRect(),u=i.isHorizontal(),l=0,c=i.getTicksCoords({tickModel:n}),h=[],d=[],f=o.getLineStyle(),p=0;p<c.length;p++){var g=i.toGlobalCoord(c[p].coord),y=(g=(u?(h[0]=g,h[1]=s.y,d[0]=g,d[1]=s.y+s.height):(h[0]=s.x,h[1]=g,d[0]=s.x+s.width,d[1]=g),l++%a.length),c[p].tickValue);y=new ql({anid:null!=y?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:D({stroke:a[g]},f),silent:!0});jc(y.shape,f.lineWidth),t.add(y)}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=(n=n.getModel("minorSplitLine").getModel("lineStyle"),r.coordinateSystem.getRect()),a=i.isHorizontal(),s=i.getMinorTicksCoords();if(s.length)for(var u=[],l=[],c=n.getLineStyle(),h=0;h<s.length;h++)for(var d=0;d<s[h].length;d++){var f=i.toGlobalCoord(s[h][d].coord);f=(a?(u[0]=f,u[1]=o.y,l[0]=f,l[1]=o.y+o.height):(u[0]=o.x,u[1]=f,l[0]=o.x+o.width,l[1]=f),new ql({anid:"minor_line_"+s[h][d].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:l[0],y2:l[1]},style:c,silent:!0}));jc(f.shape,c.lineWidth),t.add(f)}},splitArea:function(e,t,n,r){var i=t,o=(t=r,(r=n).axis);if(!o.scale.isBlank()){r=r.getModel("splitArea"),n=r.getModel("areaStyle");var a=n.get("color"),s=t.coordinateSystem.getRect(),u=o.getTicksCoords({tickModel:r,clamp:!0});if(u.length){var l=a.length,c=vk(e).splitAreaColors,h=ve(),d=0;if(c)for(var f=0;f<u.length;f++){var p=c.get(u[f].tickValue);if(null!=p){d=(p+(l-1)*f)%l;break}}var g=o.toGlobalCoord(u[0].coord),y=n.getAreaStyle();for(a=q(a)?a:[a],f=1;f<u.length;f++){var v=o.toGlobalCoord(u[f].coord),m=void 0,_=void 0,x=void 0,b=void 0;g=o.isHorizontal()?(m=g,_=s.y,b=s.height,m+(x=v-m)):(m=s.x,_=g,x=s.width,_+(b=v-_)),v=u[f-1].tickValue;null!=v&&h.set(v,d),i.add(new Ss({anid:null!=v?"area_"+v:null,shape:{x:m,y:_,width:x,height:b},style:D({fill:a[d]},y),autoBatch:!0,silent:!0})),d=(d+1)%l}vk(e).splitAreaColors=h}}}},Sk=(n(kk,bk=il),kk.type="xAxis",kk);function kk(){var e=null!==bk&&bk.apply(this,arguments)||this;return e.type=kk.type,e}n(Ck,Ak=il),Ck.type="yAxis";var Ak,Ik=Ck;function Ck(){var e=null!==Ak&&Ak.apply(this,arguments)||this;return e.type=Sk.type,e}n(Dk,Tk=yg),Dk.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Ss({shape:e.coordinateSystem.getRect(),style:D({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},Dk.type="grid";var Tk,Mk=Dk;function Dk(){var e=null!==Tk&&Tk.apply(this,arguments)||this;return e.type="grid",e}var Ok={offset:0};ax((function(e){e.registerComponentView(Mk),e.registerComponentModel(PS),e.registerCoordinateSystem("cartesian2d",QS),jS(e,"x",RS,Ok),jS(e,"y",RS,Ok),e.registerComponentView(Sk),e.registerComponentView(Ik),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))})),n(Ek,Pk=kd),Ek.type="title",Ek.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var Pk,Lk=Ek;function Ek(){var e=null!==Pk&&Pk.apply(this,arguments)||this;return e.type=Ek.type,e.layoutMode={type:"box",ignoreSize:!0},e}n(Bk,Rk=yg),Bk.prototype.render=function(e,t,n){var r,i,o,a,s,u,l,c,h;this.group.removeAll(),e.get("show")&&(r=this.group,l=e.getModel("textStyle"),i=e.getModel("subtextStyle"),c=e.get("textAlign"),h=re(e.get("textBaseline"),e.get("textVerticalAlign")),s=(l=new Ts({style:Yc(l,{text:e.get("text"),fill:l.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),u=e.get("subtext"),i=new Ts({style:Yc(i,{text:u,fill:i.getTextColor(),y:s.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),o=e.get("link"),a=e.get("sublink"),s=e.get("triggerEvent",!0),l.silent=!o&&!s,i.silent=!a&&!s,o&&l.on("click",(function(){ld(o,"_"+e.get("target"))})),a&&i.on("click",(function(){ld(a,"_"+e.get("subtarget"))})),zs(l).eventData=zs(i).eventData=s?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),u&&r.add(i),s=r.getBoundingRect(),(u=e.getBoxLayoutParams()).width=s.width,u.height=s.height,u=gd(u,{width:n.getWidth(),height:n.getHeight()},e.get("padding")),c||("right"===(c="middle"===(c=e.get("left")||e.get("right"))?"center":c)?u.x+=u.width:"center"===c&&(u.x+=u.width/2)),h||("bottom"===(h="center"===(h=e.get("top")||e.get("bottom"))?"middle":h)?u.y+=u.height:"middle"===h&&(u.y+=u.height/2),h=h||"top"),r.x=u.x,r.y=u.y,r.markRedraw(),l.setStyle(n={align:c,verticalAlign:h}),i.setStyle(n),s=r.getBoundingRect(),l=u.margin,(c=e.getItemStyle(["color","opacity"])).fill=e.get("backgroundColor"),h=new Ss({shape:{x:s.x-l[3],y:s.y-l[0],width:s.width+l[1]+l[3],height:s.height+l[0]+l[2],r:e.get("borderRadius")},style:c,subPixelOptimize:!0,silent:!0}),r.add(h))},Bk.type="title";var Rk,Nk=Bk;function Bk(){var e=null!==Rk&&Rk.apply(this,arguments)||this;return e.type=Bk.type,e}ax((function(e){e.registerComponentModel(Lk),e.registerComponentView(Nk)})),n(zk,Fk=kd),zk.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},zk.prototype.mergeOption=function(e,t){Fk.prototype.mergeOption.call(this,e,t),this._updateSelector(e)},zk.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;q(t=!0===t?e.selector=["all","inverse"]:t)&&N(t,(function(e,r){H(e)&&(e={type:e}),t[r]=T(e,(r=n,"all"===(e=e.type)?{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}:void 0))}))},zk.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}t||this.select(e[0].get("name"))}},zk.prototype._updateData=function(e){var t=[],n=[],r=(e.eachRawSeries((function(r){var i,o=r.name;n.push(o),r.legendVisualProvider&&(o=r.legendVisualProvider.getAllNames(),e.isSeriesFiltered(r)||(n=n.concat(o)),o.length)?t=t.concat(o):i=!0,i&&yo(r)&&t.push(r.name)})),this._availableNames=n,this.get("data")||t),i=ve();r=B(r,(function(e){return(H(e)||G(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new mh(e,this,this.ecModel))}),this);this._data=j(r,(function(e){return!!e}))},zk.prototype.getData=function(){return this._data},zk.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&N(this._data,(function(e){t[e.get("name")]=!1})),t[e]=!0},zk.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},zk.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},zk.prototype.allSelect=function(){var e=this._data,t=this.option.selected;N(e,(function(e){t[e.get("name",!0)]=!0}))},zk.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;N(e,(function(e){e=e.get("name",!0),t.hasOwnProperty(e)||(t[e]=!0),t[e]=!t[e]}))},zk.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&0<=P(this._availableNames,e)},zk.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},zk.type="legend.plain",zk.dependencies=["series"],zk.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}};var Fk,jk=zk;function zk(){var e=null!==Fk&&Fk.apply(this,arguments)||this;return e.type=zk.type,e.layoutMode={type:"box",ignoreSize:!0},e}var Uk,Vk=V,qk=N,$k=Mi,Hk=(n(Wk,Uk=yg),Wk.prototype.init=function(){this.group.add(this._contentGroup=new $k),this.group.add(this._selectorGroup=new $k),this._isFirstRender=!0},Wk.prototype.getContentGroup=function(){return this._contentGroup},Wk.prototype.getSelectorGroup=function(){return this._selectorGroup},Wk.prototype.render=function(e,t,n){var r,i,o,a,s,u=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),e.get("show",!0)&&(i=e.get("align"),r=e.get("orient"),i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===r?"right":"left"),a=e.get("selector",!0),s=e.get("selectorPosition",!0),this.renderInner(i,e,t,n,a,r,s=!a||s&&"auto"!==s?s:"horizontal"===r?"end":"start"),o=gd(t=e.getBoxLayoutParams(),r={width:n.getWidth(),height:n.getHeight()},n=e.get("padding")),o=gd(D({width:(i=this.layoutInner(e,i,o,u,a,s)).width,height:i.height},t),r,n),this.group.x=o.x-i.x,this.group.y=o.y-i.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(u=i,s=od((a=e).get("padding")),(t=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),u=new Ss({shape:{x:u.x-s[3],y:u.y-s[0],width:u.width+s[1]+s[3],height:u.height+s[0]+s[2],r:a.get("borderRadius")},style:t,silent:!0,z2:-1}))))},Wk.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},Wk.prototype.renderInner=function(e,t,n,r,i,o,a){var s=this.getContentGroup(),u=ve(),l=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){e.get("legendHoverLink")||c.push(e.id)})),qk(t.getData(),(function(i,o){var a,h,d,f,p=i.get("name");this.newlineDisabled||""!==p&&"\n"!==p?(a=n.getSeriesByName(p)[0],u.get(p)||(a?(f=(d=a.getData()).getVisual("legendLineStyle")||{},h=d.getVisual("legendIcon"),d=d.getVisual("style"),(f=this._createItem(a,p,o,i,t,e,f,d,h,l,r)).on("click",Vk(Gk,p,null,r,c)).on("mouseover",Vk(Xk,a.name,null,r,c)).on("mouseout",Vk(Yk,a.name,null,r,c)),n.ssr&&f.eachChild((function(e){e=zs(e),e.seriesIndex=a.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),u.set(p,!0)):n.eachRawSeries((function(a){var s,h,d;u.get(p)||a.legendVisualProvider&&(h=a.legendVisualProvider).containName(p)&&(d=h.indexOfName(p),s=h.getItemVisual(d,"style"),h=h.getItemVisual(d,"legendIcon"),(d=er(s.fill))&&0===d[3]&&(d[3]=.2,s=M(M({},s),{fill:sr(d,"rgba")})),(d=this._createItem(a,p,o,i,t,e,{},s,h,l,r)).on("click",Vk(Gk,null,p,r,c)).on("mouseover",Vk(Xk,null,p,r,c)).on("mouseout",Vk(Yk,null,p,r,c)),n.ssr&&d.eachChild((function(e){e=zs(e),e.seriesIndex=a.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),u.set(p,!0))}),this))):((d=new $k).newline=!0,s.add(d))}),this),i&&this._createSelector(i,t,r,o,a)},Wk.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();qk(e,(function(e){var r=e.type,i=new Ts({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Kc(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),Tu(i)}))},Wk.prototype._createItem=function(e,t,n,r,i,o,a,s,u,l,c){var h=e.visualDrawType,d=i.get("itemWidth"),f=i.get("itemHeight"),p=i.isSelected(t),g=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),v=r.get("icon");a=function(e,t,n,r,i,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=0<t.lineWidth?2:0),qk(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var u=t.getModel("itemStyle"),l=u.getItemStyle();e=0===e.lastIndexOf("empty",0)?"fill":"stroke",u=u.getShallow("decal");return l.decal=u&&"inherit"!==u?Ky(u,a):r.decal,"inherit"===l.fill&&(l.fill=r[i]),"inherit"===l.stroke&&(l.stroke=r[e]),"inherit"===l.opacity&&(l.opacity=("fill"===i?r:n).opacity),s(l,r),u=t.getModel("lineStyle"),a=u.getLineStyle(),s(a,n),"auto"===l.fill&&(l.fill=r.fill),"auto"===l.stroke&&(l.stroke=r.fill),"auto"===a.stroke&&(a.stroke=r.fill),o||(i=t.get("inactiveBorderWidth"),n=l[e],l.lineWidth="auto"===i?0<r.lineWidth&&n?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),a.stroke=u.get("inactiveColor"),a.lineWidth=u.get("inactiveWidth")),{itemStyle:l,lineStyle:a}}(u=v||u||"roundRect",r,a,s,h,p,c),s=new $k,h=r.getModel("textStyle"),!$(e.getLegendIcon)||v&&"inherit"!==v?(c="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0,s.add(function(e){var t=e.icon||"roundRect",n=my(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),-1<t.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:d,itemHeight:f,icon:u,iconRotate:c,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y}))):s.add(e.getLegendIcon({itemWidth:d,itemHeight:f,icon:u,iconRotate:g,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),v="left"===o?d+5:-5,c=o,e=i.get("formatter"),u=t,H(e)&&e?u=e.replace("{name}",null!=t?t:""):$(e)&&(u=e(t)),g=p?h.getTextColor():r.get("inactiveColor"),s.add(new Ts({style:Yc(h,{text:u,x:v,y:f/2,fill:g,align:c,verticalAlign:"middle"},{inheritColor:g})})),a=new Ss({shape:s.getBoundingRect(),style:{fill:"transparent"}}),y=r.getModel("tooltip");return y.get("show")&&Vc({el:a,componentModel:i,itemName:t,itemTooltipOption:y.option}),s.add(a),s.eachChild((function(e){e.silent=!0})),a.silent=!l,this.getContentGroup().add(s),Tu(s),s.__legendDataIndex=n,s},Wk.prototype.layoutInner=function(e,t,n,r,i,o){var a,s,u,l,c,h=this.getContentGroup(),d=this.getSelectorGroup(),f=(n=(pd(e.get("orient"),h,e.get("itemGap"),n.width,n.height),h.getBoundingRect()),[-n.x,-n.y]);return d.markRedraw(),h.markRedraw(),i?(pd("horizontal",d,e.get("selectorItemGap",!0)),a=[-(i=d.getBoundingRect()).x,-i.y],s=e.get("selectorButtonGap",!0),u=0===(e=e.getOrient().index)?"width":"height",l=0===e?"height":"width",c=0===e?"y":"x","end"===o?a[e]+=n[u]+s:f[e]+=i[u]+s,a[1-e]+=n[l]/2-i[l]/2,d.x=a[0],d.y=a[1],h.x=f[0],h.y=f[1],(o={x:0,y:0})[u]=n[u]+s+i[u],o[l]=Math.max(n[l],i[l]),o[c]=Math.min(0,i[c]+a[1-e]),o):(h.x=f[0],h.y=f[1],this.group.getBoundingRect())},Wk.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},Wk.type="legend.plain",Wk);function Wk(){var e=null!==Uk&&Uk.apply(this,arguments)||this;return e.type=Wk.type,e.newlineDisabled=!1,e}function Gk(e,t,n,r){Yk(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),Xk(e,t,n,r)}function Kk(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function Xk(e,t,n,r){Kk(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function Yk(e,t,n,r){Kk(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function Jk(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function Zk(e,t,n){var r,i={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name)),N(n.getData(),(function(e){var t;e=e.get("name");"\n"!==e&&""!==e&&(t=n.isSelected(e),i.hasOwnProperty(e)?i[e]=i[e]&&t:i[e]=t)}))})),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function Qk(e){e.registerComponentModel(jk),e.registerComponentView(Hk),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Jk),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),(e=e).registerAction("legendToggleSelect","legendselectchanged",V(Zk,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",V(Zk,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",V(Zk,"inverseSelect")),e.registerAction("legendSelect","legendselected",V(Zk,"select")),e.registerAction("legendUnSelect","legendunselected",V(Zk,"unSelect"))}n(nA,eA=jk),nA.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},nA.prototype.init=function(e,t,n){var r=md(e);eA.prototype.init.call(this,e,t,n),rA(this,e,r)},nA.prototype.mergeOption=function(e,t){eA.prototype.mergeOption.call(this,e,t),rA(this,this.option,e)},nA.type="legend.scroll",nA.defaultOption=wh(jk.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});var eA,tA=nA;function nA(){var e=null!==eA&&eA.apply(this,arguments)||this;return e.type=nA.type,e}function rA(e,t,n){var r=[1,1];r[e.getOrient().index]=0,vd(t,n,{type:"box",ignoreSize:!!r})}var iA,oA=Mi,aA=["width","height"],sA=["x","y"],uA=(n(lA,iA=Hk),lA.prototype.init=function(){iA.prototype.init.call(this),this.group.add(this._containerGroup=new oA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new oA)},lA.prototype.resetInner=function(){iA.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},lA.prototype.renderInner=function(e,t,n,r,i,o,a){var s=this,u=(iA.prototype.renderInner.call(this,e,t,n,r,i,o,a),this._controllerGroup),l=(e=t.get("pageIconSize",!0),q(e)?e:[e,e]);c("pagePrev",0),n=t.getModel("pageTextStyle");function c(e,n){var i=e+"DataIndex";n=Uc(t.get("pageIcons",!0)[t.getOrient().name][n],{onclick:U(s._pageGo,s,i,t,r)},{x:-l[0]/2,y:-l[1]/2,width:l[0],height:l[1]});n.name=e,u.add(n)}u.add(new Ts({name:"pageText",style:{text:"xx/xx",fill:n.getTextColor(),font:n.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),c("pageNext",1)},lA.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getSelectorGroup(),s=e.getOrient().index,u=aA[s],l=sA[s],c=aA[1-s],h=sA[1-s],d=(i&&pd("horizontal",a,e.get("selectorItemGap",!0)),e.get("selectorButtonGap",!0)),f=a.getBoundingRect(),p=[-f.x,-f.y],g=C(n);i&&(g[u]=n[u]-f[u]-d),n=this._layoutContentAndController(e,r,g,s,u,c,h,l);return i&&("end"===o?p[s]+=n[u]+d:(e=f[u]+d,p[s]-=e,n[l]-=e),n[u]+=f[u]+d,p[1-s]+=n[h]+n[c]/2-f[c]/2,n[c]=Math.max(n[c],f[c]),n[h]=Math.min(n[h],f[h]+p[1-s]),a.x=p[0],a.y=p[1],a.markRedraw()),n},lA.prototype._layoutContentAndController=function(e,t,n,r,i,o,a,s){var u=this.getContentGroup(),l=this._containerGroup,c=this._controllerGroup,h=(pd(e.get("orient"),u,e.get("itemGap"),r?n.width:null,r?null:n.height),pd("horizontal",c,e.get("pageButtonItemGap",!0)),u.getBoundingRect()),d=c.getBoundingRect(),f=this._showController=h[i]>n[i],p=[-h.x,-h.y],g=(t=(t||(p[r]=u[s]),[0,0]),s=[-d.x,-d.y],re(e.get("pageButtonGap",!0),e.get("itemGap",!0)));f&&("end"===e.get("pageButtonPosition",!0)?s[r]+=n[i]-d[i]:t[r]+=d[i]+g),s[1-r]+=h[o]/2-d[o]/2,u.setPosition(p),l.setPosition(t),c.setPosition(s),p={x:0,y:0},p[i]=(f?n:h)[i],p[o]=Math.max(h[o],d[o]),p[a]=Math.min(0,d[a]+s[1-r]),l.__rectSize=n[i],f?((t={x:0,y:0})[i]=Math.max(n[i]-d[i]-g,0),t[o]=p[o],l.setClipPath(new Ss({shape:t})),l.__rectSize=t[i]):c.eachChild((function(e){e.attr({invisible:!0,silent:!0})})),h=this._getPageInfo(e);return null!=h.pageIndex&&wc(u,{x:h.contentPosition[0],y:h.contentPosition[1]},f?e:null),this._updatePageInfoView(e,h),p},lA.prototype._pageGo=function(e,t,n){e=this._getPageInfo(t)[e],null!=e&&n.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:t.id})},lA.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup,r=(N(["pagePrev","pageNext"],(function(r){var i=null!=t[r+"DataIndex"];r=n.childOfName(r);r&&(r.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),r.cursor=i?"pointer":"default")})),n.childOfName("pageText")),i=e.get("pageFormatter"),o=t.pageIndex,a=(o=null!=o?o+1:0,t.pageCount);r&&i&&r.setStyle("text",H(i)?i.replace("{current}",null==o?"":o+"").replace("{total}",null==a?"":a+""):i({current:o,total:a}))},lA.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=(e=e.getOrient().index,aA[e]),o=sA[e],a=(t=this._findTargetItemIndex(t),n.children()),s=a[t],u=a.length,l=u?1:0,c={contentPosition:[n.x,n.y],pageCount:l,pageIndex:l-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s),c.contentPosition[e]=-n.s;for(var h=t+1,d=n,f=n,p=null;h<=u;++h)(!(p=g(a[h]))&&f.e>d.s+r||p&&!y(p,d.s))&&(d=f.i>d.i?f:p)&&(null==c.pageNextDataIndex&&(c.pageNextDataIndex=d.i),++c.pageCount),f=p;for(h=t-1,d=n,f=n,p=null;-1<=h;--h)(p=g(a[h]))&&y(f,p.s)||!(d.i<f.i)||(f=d,null==c.pagePrevDataIndex&&(c.pagePrevDataIndex=d.i),++c.pageCount,++c.pageIndex),d=p}return c;function g(e){var t,n;if(e)return{s:n=(t=e.getBoundingRect())[o]+e[o],e:n+t[i],i:e.__legendDataIndex}}function y(e,t){return e.e>=t&&e.s<=t+r}},lA.prototype._findTargetItemIndex=function(e){var t,n;return this._showController?(this.getContentGroup().eachChild((function(r,i){r=r.__legendDataIndex,null==n&&null!=r&&(n=i),r===e&&(t=i)})),null!=t?t:n):0},lA.type="legend.scroll",lA);function lA(){var e=null!==iA&&iA.apply(this,arguments)||this;return e.type=lA.type,e.newlineDisabled=!0,e._currentIndex=0,e}ax((function(e){ax(Qk),e.registerComponentModel(tA),e.registerComponentView(uA),e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))})),ax(Ob);var cA={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},hA=(dA.prototype.evaluate=function(e){var t=s(e);return H(t)?this._condVal.test(e):!!G(t)&&this._condVal.test(e+"")},dA);function dA(e){null==(this._condVal=H(e)?new RegExp(e):ee(e)?e:null)&&io("")}pA.prototype.evaluate=function(){return this.value};var fA=pA;function pA(){}yA.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0};var gA=yA;function yA(){}mA.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1};var vA=mA;function mA(){}xA.prototype.evaluate=function(){return!this.child.evaluate()};var _A=xA;function xA(){}wA.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?n:t))return!1;return!0};var bA=wA;function wA(){}function SA(e,t){if(!0===e||!1===e)return(n=new fA).value=e,n;var n;if(AA(e)||io(""),e.and)return kA("and",e,t);if(e.or)return kA("or",e,t);if(e.not)return n=t,AA(o=(o=e).not)||io(""),(u=new _A).child=SA(o,n),u.child||io(""),u;for(var r=e,i=t,o=i.prepareGetValue(r),a=[],s=z(r),u=r.parser,l=u?Sp(u):null,c=0;c<s.length;c++){var h,d=s[c];"parser"===d||i.valueGetterAttrMap.get(d)||(h=be(cA,d)?cA[d]:d,d=r[d],d=l?l(d):d,(h=function(e,t){return"eq"===e||"ne"===e?new Mp("eq"===e,t):be(kp,e)?new Ap(e,t):null}(h,d)||"reg"===h&&new hA(d))||io(""),a.push(h))}return a.length||io(""),(u=new bA).valueGetterParam=o,u.valueParser=l,u.getValue=i.getValue,u.subCondList=a,u}function kA(e,t,n){return t=t[e],q(t)||io(""),t.length||io(""),e=new("and"===e?gA:vA),e.children=B(t,(function(e){return SA(e,n)})),e.children.length||io(""),e}function AA(e){return K(e)&&!R(e)}CA.prototype.evaluate=function(){return this._cond.evaluate()};var IA=CA;function CA(e,t){this._cond=SA(e,t)}var TA={type:"echarts:filter",transform:function(e){for(var t,n,r=e.upstream,i=(e=e.config,n={valueGetterAttrMap:ve({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;be(e,"dimension")||io(""),e=r.getDimensionInfo(t);return e||io(""),{dimIdx:e.index}},getValue:function(e){return r.retrieveValueFromItem(t,e.dimIdx)}},new IA(e,n)),o=[],a=0,s=r.count();a<s;a++)t=r.getRawDataItem(a),i.evaluate()&&o.push(t);return{data:o}}},MA={type:"echarts:sort",transform:function(e){for(var t=e.upstream,n=(e=e.config,e=so(e),e.length||io(""),[]),r=(e=(N(e,(function(e){var r=e.dimension,i=e.order,o=e.parser,a=(e=e.incomparable,r=(null==r&&io(""),"asc"!==i&&"desc"!==i&&io(""),e&&"min"!==e&&"max"!==e&&io(""),"asc"!==i&&"desc"!==i&&io(""),t.getDimensionInfo(r)),r||io(""),o?Sp(o):null);o&&!a&&io(""),n.push({dimIdx:r.index,parser:a,comparator:new Cp(i,e)})})),t.sourceFormat),e!==Dd&&e!==Od&&io(""),[]),i=0,o=t.count();i<o;i++)r.push(t.getRawDataItem(i));return r.sort((function(e,r){for(var i=0;i<n.length;i++){var o=n[i],a=t.retrieveValueFromItem(e,o.dimIdx),s=t.retrieveValueFromItem(r,o.dimIdx);o=(o.parser&&(a=o.parser(a),s=o.parser(s)),o.comparator.evaluate(a,s));if(0!==o)return o}return 0})),{data:r}}};ax((function(e){e.registerTransform(TA),e.registerTransform(MA)})),e.Axis=gh,e.ChartView=bg,e.ComponentModel=kd,e.ComponentView=yg,e.List=jm,e.Model=mh,e.PRIORITY=hy,e.SeriesModel=sg,e.color=ir,e.connect=function(e){var t;return q(e)&&(t=e,e=null,N(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+Wv++,N(t,(function(t){t.group=e}))),$v[e]=!0,e},e.dataTool={},e.dependencies={zrender:"5.6.0"},e.disConnect=cy,e.disconnect=Kv,e.dispose=function(e){H(e)?e=qv[e]:e instanceof Tv||(e=Xv(e)),e instanceof Tv&&!e.isDisposed()&&e.dispose()},e.env=o,e.extendChartView=function(e){return e=bg.extend(e),bg.registerClass(e),e},e.extendComponentModel=function(e){return e=kd.extend(e),kd.registerClass(e),e},e.extendComponentView=function(e){return e=yg.extend(e),yg.registerClass(e),e},e.extendSeriesModel=function(e){return e=sg.extend(e),sg.registerClass(e),e},e.format=fh,e.getCoordinateSystemDimensions=function(e){if(e=lf.get(e))return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},e.getInstanceByDom=Xv,e.getInstanceById=function(e){return qv[e]},e.getMap=function(e){var t=Jy.getMap;return t&&t(e)},e.graphic=Rh,e.helper=dy,e.init=function(e,t,n){var r=!(n&&n.ssr);if(r){var i=Xv(e);if(i)return i}return(i=new Tv(e,t,n)).id="ec_"+Hv++,qv[i.id]=i,r&&Io(e,Gv,i.id),kv(i),Yy.trigger("afterinit",i),i},e.innerDrawElementOnCanvas=qy,e.matrix=wt,e.number=zo,e.parseGeoJSON=Sx,e.parseGeoJson=Sx,e.registerAction=nm,e.registerCoordinateSystem=rm,e.registerLayout=im,e.registerLoading=um,e.registerLocale=Mh,e.registerMap=lm,e.registerPostInit=Qv,e.registerPostUpdate=em,e.registerPreprocessor=Jv,e.registerProcessor=Zv,e.registerTheme=Yv,e.registerTransform=cm,e.registerUpdateLifecycle=tm,e.registerVisual=om,e.setCanvasCreator=function(e){d({createCanvas:e})},e.setPlatformAPI=d,e.throttle=Tg,e.time=sh,e.use=ax,e.util=lh,e.vector=Ue,e.version="5.5.1",e.zrUtil=ke,e.zrender=ji}))}).call(this,n(1)["default"])},456:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=f;var i=r(n(11)),o=r(n(23)),a=r(n(24));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(){function t(n,r){(0,o.default)(this,t),this.options=n,this.animation=e.createAnimation(u({},n)),this.currentStepAnimates={},this.next=0,this.$=r}return(0,a.default)(t,[{key:"_nvuePushAnimates",value:function(e,t){var n=this.currentStepAnimates[this.next],r={};if(r=n||{styles:{},config:{}},c.includes(e)){r.styles.transform||(r.styles.transform="");var i="";"rotate"===e&&(i="deg"),r.styles.transform+="".concat(e,"(").concat(t+i,") ")}else r.styles[e]="".concat(t);this.currentStepAnimates[this.next]=r}},{key:"_animateRun",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$.$refs["ani"].ref;if(n)return new Promise((function(r,i){nvueAnimation.transition(n,u({styles:e},t),(function(e){r()}))}))}},{key:"_nvueNextAnimate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=e[n];if(i){var o=i.styles,a=i.config;this._animateRun(o,a).then((function(){n+=1,t._nvueNextAnimate(e,n,r)}))}else this.currentStepAnimates={},"function"===typeof r&&r(),this.isEnd=!0}},{key:"step",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(e),this}},{key:"run",value:function(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof e&&e()}),this.$.durationTime)}}]),t}(),c=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],h=["opacity","backgroundColor"],d=["width","height","left","right","top","bottom"];function f(e,t){if(t)return clearTimeout(t.timer),new l(e,t)}c.concat(h,d).forEach((function(e){l.prototype[e]=function(){var t;return(t=this.animation)[e].apply(t,arguments),this}}))}).call(this,n(2)["default"])},469:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(470)),o=r(n(471)),a=r(n(472)),s={en:i.default,"zh-Hans":o.default,"zh-Hant":a.default};t.default=s},470:function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"}')},471:function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"}')},472:function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}')},473:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.Calendar=void 0,t.addZero=h,t.checkDate=p,t.dateCompare=f,t.fixIosDateFormat=y,t.getDate=l,t.getDateTime=u,t.getDefaultSecond=d,t.getTime=c;var i=r(n(18)),o=r(n(23)),a=r(n(24)),s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.selected,r=t.startDate,i=t.endDate,a=t.range;(0,o.default)(this,e),this.date=this.getDateObj(new Date),this.selected=n||[],this.startDate=r,this.endDate=i,this.range=a,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}return(0,a.default)(e,[{key:"setDate",value:function(e){var t=this.getDateObj(e);this.getWeeks(t.fullDate)}},{key:"cleanMultipleStatus",value:function(){this.multipleStatus={before:"",after:"",data:[]}}},{key:"setStartDate",value:function(e){this.startDate=e}},{key:"setEndDate",value:function(e){this.endDate=e}},{key:"getPreMonthObj",value:function(e){e=y(e),e=new Date(e);var t=e.getMonth();e.setMonth(t-1);var n=e.getMonth();return 0!==t&&n-t===0&&e.setMonth(n-1),this.getDateObj(e)}},{key:"getNextMonthObj",value:function(e){e=y(e),e=new Date(e);var t=e.getMonth();e.setMonth(t+1);var n=e.getMonth();return n-t>1&&e.setMonth(n-1),this.getDateObj(e)}},{key:"getDateObj",value:function(e){return e=y(e),e=new Date(e),{fullDate:l(e),year:e.getFullYear(),month:h(e.getMonth()+1),date:h(e.getDate()),day:e.getDay()}}},{key:"getPreMonthDays",value:function(e,t){for(var n=[],r=e-1;r>=0;r--){var i=t.month-1;n.push({date:new Date(t.year,i,-r).getDate(),month:i,disable:!0})}return n}},{key:"getCurrentMonthDays",value:function(e,t){for(var n=this,r=[],i=this.date.fullDate,o=function(e){var o="".concat(t.year,"-").concat(t.month,"-").concat(h(e)),a=i===o,s=n.selected&&n.selected.find((function(e){if(n.dateEqual(o,e.date))return e}));n.startDate&&f(n.startDate,o),n.endDate&&f(o,n.endDate);var u=n.multipleStatus.data,l=-1;n.range&&u&&(l=u.findIndex((function(e){return n.dateEqual(e,o)})));var c=-1!==l;r.push({fullDate:o,year:t.year,date:e,multiple:!!n.range&&c,beforeMultiple:n.isLogicBefore(o,n.multipleStatus.before,n.multipleStatus.after),afterMultiple:n.isLogicAfter(o,n.multipleStatus.before,n.multipleStatus.after),month:t.month,disable:n.startDate&&!f(n.startDate,o)||n.endDate&&!f(o,n.endDate),isToday:a,userChecked:!1,extraInfo:s})},a=1;a<=e;a++)o(a);return r}},{key:"_getNextMonthDays",value:function(e,t){for(var n=[],r=t.month+1,i=1;i<=e;i++)n.push({date:i,month:r,disable:!0});return n}},{key:"getInfo",value:function(e){var t=this;e||(e=new Date);var n=this.calendar.find((function(n){return n.fullDate===t.getDateObj(e).fullDate}));return n||this.getDateObj(e)}},{key:"dateEqual",value:function(e,t){return e=new Date(y(e)),t=new Date(y(t)),e.valueOf()===t.valueOf()}},{key:"isLogicBefore",value:function(e,t,n){var r=t;return t&&n&&(r=f(t,n)?t:n),this.dateEqual(r,e)}},{key:"isLogicAfter",value:function(e,t,n){var r=n;return t&&n&&(r=f(t,n)?n:t),this.dateEqual(r,e)}},{key:"geDateAll",value:function(e,t){var n=[],r=e.split("-"),i=t.split("-"),o=new Date;o.setFullYear(r[0],r[1]-1,r[2]);var a=new Date;a.setFullYear(i[0],i[1]-1,i[2]);for(var s=o.getTime()-864e5,u=a.getTime()-864e5,l=s;l<=u;)l+=864e5,n.push(this.getDateObj(new Date(parseInt(l))).fullDate);return n}},{key:"setMultiple",value:function(e){if(this.range){var t=this.multipleStatus,n=t.before,r=t.after;if(n&&r){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else n?(this.multipleStatus.after=e,f(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(e)}}},{key:"setHoverMultiple",value:function(e){if(this.range&&!this.lastHover){var t=this.multipleStatus.before;t?(this.multipleStatus.after=e,f(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}}},{key:"setDefaultMultiple",value:function(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(f(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}},{key:"getWeeks",value:function(e){for(var t=this.getDateObj(e),n=t.year,r=t.month,o=new Date(n,r-1,1).getDay(),a=this.getPreMonthDays(o,this.getDateObj(e)),s=new Date(n,r,0).getDate(),u=this.getCurrentMonthDays(s,this.getDateObj(e)),l=42-o-s,c=this._getNextMonthDays(l,this.getDateObj(e)),h=[].concat((0,i.default)(a),(0,i.default)(u),(0,i.default)(c)),d=new Array(6),f=0;f<h.length;f++){var p=Math.floor(f/7);d[p]||(d[p]=new Array(7)),d[p][f%7]=h[f]}this.calendar=h,this.weeks=d}}]),e}();function u(e,t){return"".concat(l(e)," ").concat(c(e,t))}function l(e){e=y(e),e=new Date(e);var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return"".concat(t,"-").concat(h(n),"-").concat(h(r))}function c(e,t){e=y(e),e=new Date(e);var n=e.getHours(),r=e.getMinutes(),i=e.getSeconds();return t?"".concat(h(n),":").concat(h(r)):"".concat(h(n),":").concat(h(r),":").concat(h(i))}function h(e){return e<10&&(e="0".concat(e)),e}function d(e){return e?"00:00":"00:00:00"}function f(e,t){return e=new Date(y(e)),t=new Date(y(t)),e<=t}function p(e){var t=/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g;return e.match(t)}t.Calendar=s;var g=/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/;function y(e){return"string"===typeof e&&g.test(e)&&(e=e.replace(/-/g,"/")),e}},48:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(49),i={getByPage:function(e){return(0,r.request)({url:"/duty/position/page",data:e})},getByList:function(e){return(0,r.request)({url:"/duty/position",data:e})},getById:function(e){return(0,r.request)({url:"/duty/position/".concat(e)})},create:function(e){return(0,r.request)({url:"/duty/position/add",method:"POST",data:e})},update:function(e){return(0,r.request)({url:"/duty/position/update",method:"put",data:e})},deleteById:function(e){return(0,r.request)({url:"/duty/position/".concat(e),method:"delete",data:data})},getWeekRecordByList:function(e){return(0,r.request)({url:"/duty/record/week",data:e})},createWeekRecord:function(e){return(0,r.request)({url:"/duty/record/week/add",method:"POST",data:e})},deleteWeekRecordById:function(e,t,n){return(0,r.request)({url:"/duty/record/week/".concat(e,"/").concat(t,"/").concat(n),method:"delete"})},getAllByList:function(e){return(0,r.request)({url:"/duty/record/all",data:e})},getRecordByList:function(e){return(0,r.request)({url:"/duty/record",data:e})}};t.default=i},49:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.request=d;var i=r(n(50)),o=r(n(11)),a=r(n(52)),s=r(n(53)),u=n(54);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=s.default.base.dev;function d(e){return f.apply(this,arguments)}function f(){return f=(0,a.default)(i.default.mark((function t(n){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){try{e.showLoading({title:"加载中",mask:!0}),e.request(c(c({},p(n)),{},{success:function(n){var i=n.data,o=i.code,a=i.msg;200===o?(e.hideLoading(),t(i)):401===o?(e.hideLoading(),e.showToast({title:a||"登录失效!",mask:!0,icon:"none",duration:2e3,complete:function(){e.reLaunch({url:"/pages/login/index"})}})):(r(i),e.hideLoading(),e.showToast({title:a,mask:!0,duration:2e3,icon:"none"}))},fail:function(t){e.hideLoading(),e.showToast({title:t.errMsg,mask:!0,duration:2e3,icon:"none"}),r(t)}}))}catch(i){e.hideLoading(),r(i)}})));case 1:case"end":return t.stop()}}),t)}))),f.apply(this,arguments)}function p(e){var t=e.url;t=h+t;var n=c({},e.data),r=c({},e.header);r[s.default.TokenKey]=(0,u.getToken)(),r.appID=s.default.appID,r.appKey=s.default.appKey,r.appSecret=s.default.appSecret,r.permitTplId=s.default.permitTplId;var i=e.method||"get",o=e.dataType||"json",a={url:t,data:n,header:r,method:i,dataType:o};return a}}).call(this,n(2)["default"])},5:function(e,t,n){var r=n(6),i=n(7),o=n(8),a=n(10);function s(e,t){return r(e)||i(e,t)||o(e,t)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},50:function(e,t,n){var r=n(51)();e.exports=r},51:function(e,t,n){var r=n(13)["default"];function i(){"use strict";
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,o=Object.create(i.prototype),a=new L(r||[]);return s(o,"_invoke",{value:M(e,n,a)}),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var g="suspendedStart",y="suspendedYield",v="executing",m="completed",_={};function x(){}function b(){}function w(){}var S={};d(S,l,(function(){return this}));var k=Object.getPrototypeOf,A=k&&k(k(E([])));A&&A!==o&&a.call(A,l)&&(S=A);var I=w.prototype=x.prototype=Object.create(S);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(i,o,s,u){var l=p(e[i],e,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==r(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(h).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,u)}))}u(l.arg)}var i;s(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function M(e,n,r){var i=g;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=D(s,r);if(u){if(u===_)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===g)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var l=p(e,n,r);if("normal"===l.type){if(i=r.done?m:y,l.arg===_)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function D(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,D(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var o=p(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,_;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,_):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(a.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(r(e)+" is not iterable")}return b.prototype=w,s(I,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:b,configurable:!0}),b.displayName=d(w,h,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,h,"GeneratorFunction")),e.prototype=Object.create(I),e},n.awrap=function(e){return{__await:e}},C(T.prototype),d(T.prototype,c,(function(){return this})),n.AsyncIterator=T,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new T(f(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(I),d(I,h,"Generator"),d(I,l,(function(){return this})),d(I,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=E,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(u&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,_):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),_}},n}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},516:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(517)),o=r(n(518)),a=r(n(519)),s={en:i.default,"zh-Hans":o.default,"zh-Hant":a.default};t.default=s},517:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"}')},518:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"}')},519:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}')},52:function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},53:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={base:{dev:"https://api.hchzhhnm.xarbkj.net",pro:"https://api.hchzhhnm.xarbkj.net"},appID:"10000",appKey:"82a8bf439373e304",appSecret:"82a8bf439373e304",TokenKey:"Authorization"};t.default=r},54:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.getToken=a,t.removeToken=u,t.setToken=s;var i=r(n(53)),o=i.default.TokenKey;function a(){return e.getStorageSync(o)}function s(t){return e.setStorageSync(o,t)}function u(){return e.removeStorageSync(o)}}).call(this,n(2)["default"])},55:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(49),i={counterByMember:function(e){return(0,r.request)({url:"/team/statis/counterByMember",data:e})},counterByCat:function(e){return(0,r.request)({url:"/team/statis/counterByCat",data:e})},getByPage:function(e){return(0,r.request)({url:"/team/page",data:e})},getByList:function(e){return(0,r.request)({url:"/team",data:e})},getByListInfo:function(e){return(0,r.request)({url:"/team/info",data:e})},getById:function(e){return(0,r.request)({url:"/team/".concat(e)})},create:function(e){return(0,r.request)({url:"/team/add",method:"post",data:e})},update:function(e){return(0,r.request)({url:"/team/update",method:"put",data:e})},deleteById:function(e){return(0,r.request)({url:"/team/".concat(e),method:"delete"})},getMemberByPage:function(e){return(0,r.request)({url:"/team/member/page",data:e})},getMemberByList:function(e){return(0,r.request)({url:"/team/member",data:e})},getMemberById:function(e,t){return(0,r.request)({url:"/team/member/".concat(e,"/").concat(t)})},createMember:function(e){return(0,r.request)({url:"/team/member/add",method:"post",data:e})},updateMember:function(e){return(0,r.request)({url:"/team/member/update",method:"put",data:e})},deleteMemberById:function(e,t){return(0,r.request)({url:"/team/member/".concat(e,"/").concat(t),method:"delete"})},getCatByPage:function(e){return(0,r.request)({url:"/team/cat/page",data:e})},getCatByList:function(e){return(0,r.request)({url:"/team/cat",data:e})},getCatById:function(e){return(0,r.request)({url:"/team/cat/".concat(e)})},createCat:function(e){return(0,r.request)({url:"/team/cat/add",data:e,method:"post"})},updateCat:function(e){return(0,r.request)({url:"/team/cat/update",data:e,method:"put"})},deleteCatById:function(e){return(0,r.request)({url:"/team/cat/".concat(e),method:"delete"})}};t.default=i},56:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(49),i={getOutboundByPage:function(e){return(0,r.request)({url:"/emergency/goods/outbound/page",data:e})},getOutboundByList:function(e){return(0,r.request)({url:"/emergency/goods/outbound",data:e})},getOutboundById:function(e){return(0,r.request)({url:"/emergency/goods/outbound/".concat(e)})},createOutbound:function(e){return(0,r.request)({url:"/emergency/goods/outbound/add",method:"post",data:e})},updateOutbound:function(e){return(0,r.request)({url:"/emergency/goods/outbound/update",method:"put",data:e})},deleteOutboundById:function(e){return(0,r.request)({url:"/emergency/goods/outbound/".concat(e),method:"delete"})},getInboundByPage:function(e){return(0,r.request)({url:"/emergency/goods/inbound/page",data:e})},getInboundByList:function(e){return(0,r.request)({url:"/emergency/goods/inbound",data:e})},getInboundById:function(e){return(0,r.request)({url:"/emergency/goods/inbound/".concat(e)})},createInbound:function(e){return(0,r.request)({url:"/emergency/goods/inbound/add",method:"post",data:e})},updateInbound:function(e){return(0,r.request)({url:"/emergency/goods/inbound/update",method:"put",data:e})},deleteInboundById:function(e){return(0,r.request)({url:"/emergency/goods/inbound/".concat(e),method:"delete"})},counterByCat:function(e){return(0,r.request)({url:"/emergency/goods/statis/counterByCat",data:e})},counterById:function(e,t){return(0,r.request)({url:"/emergency/goods/statis/counterById/".concat(e,"/").concat(t)})},groupCounterByCat:function(e){return(0,r.request)({url:"/emergency/goods/statis/group/counterByCat",data:e})},totalByCat:function(e){return(0,r.request)({url:"/emergency/goods/statis/totalByCat",data:e})},getCatByPage:function(e){return(0,r.request)({url:"/emergency/goods/cat/page",data:e})},getCatByList:function(e){return(0,r.request)({url:"/emergency/goods/cat",data:e})},getCatTreeView:function(e){return(0,r.request)({url:"/emergency/goods/cat/treeView",data:e})},getCatById:function(e){return(0,r.request)({url:"/emergency/goods/cat/".concat(e)})},createCat:function(e){return(0,r.request)({url:"/emergency/goods/cat/add",method:"post",data:e})},updateCat:function(e){return(0,r.request)({url:"/emergency/goods/cat/update",method:"put",data:e})},deleteCatById:function(e){return(0,r.request)({url:"/ent/cat/".concat(e),method:"delete"})}};t.default=i},57:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(49),i={counterByGroup:function(e){return(0,r.request)({url:"/ent/statis/counterByGroup",data:e})},counterByCat:function(e){return(0,r.request)({url:"/ent/statis/counterByCat",data:e})},getByPage:function(e){return(0,r.request)({url:"/ent/page",data:e})},getByList:function(e){return(0,r.request)({url:"/ent",data:e})},getById:function(e){return(0,r.request)({url:"/ent/".concat(e)})},create:function(e){return(0,r.request)({url:"/ent/add",method:"POST",data:e})},update:function(e){return(0,r.request)({url:"/ent/update",method:"put",data:e})},deleteById:function(e){return(0,r.request)({url:"/ent/".concat(e),method:"delete"})},getCatByList:function(e){return(0,r.request)({url:"/ent/cat",data:e})},getCameraByListWithEnt:function(e){return(0,r.request)({url:"/camera/ent/".concat(e)})}};t.default=i},58:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(49),i={counterByGroup:function(e){return(0,r.request)({url:"/danger/statis/counterByGroup",data:e})},counterByCat:function(e){return(0,r.request)({url:"/danger/statis/counterByCat",data:e})},getByPage:function(e){return(0,r.request)({url:"/danger/page",data:e})},getByList:function(e){return(0,r.request)({url:"/danger",data:e})},getById:function(e){return(0,r.request)({url:"/danger/".concat(e)})},create:function(e){return(0,r.request)({url:"/danger/add",method:"POST",data:e})},update:function(e){return(0,r.request)({url:"/danger/update",method:"put",data:e})},deleteById:function(e){return(0,r.request)({url:"/danger/".concat(e),method:"delete"})},batchCreate:function(e){return(0,r.request)({url:"/danger/batch/add",method:"POST",data:e})},getCatByList:function(e){return(0,r.request)({url:"/danger",data:e})},getSupervisorListById:function(e){return(0,r.request)({url:"/danger/supervisor/".concat(e)})},getSupervisorById:function(e,t){return(0,r.request)({url:"/danger/supervisor/".concat(e,"/").concat(t)})},createSupervisor:function(e){return(0,r.request)({url:"/danger/supervisor/add",method:"POST",data:e})},updateSupervisor:function(e){return(0,r.request)({url:"/danger/supervisor/update",method:"put",data:e})},deleteSupervisorById:function(e,t){return(0,r.request)({url:"/danger/supervisor/".concat(e,"/").concat(t),method:"delete"})}};t.default=i},59:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.currentWeek=a,t.getDateByWeek=s,t.getNumberOfWeeks=o,t.parseTime=l;var i=r(n(13));function o(e){var t=new Date(e,0,1),n=new Date(e,11,31),r=(n-t)/864e5+1,i=Math.ceil(r/7);return i}function a(){var e=new Date,t=e.getFullYear(),n=new Date(t,0,1),r=Math.floor((e-n)/864e5),i=Math.ceil((r+n.getDay()+1)/7);return i}function s(e,t){t=t||(new Date).getFullYear();var n=new Date(t,0,1),r=n.getDay();0===r&&(r=7);var i=new Date(n.getTime()+864e5*(4-r)),o=Math.ceil((i.getDate()-1)/7);return e+=o,0===e?(t-=1,e=u(new Date(t,11,31))):e>52&&1===u(new Date(t+1,0,3))&&(t+=1,e=1),n=new Date(t,0,1),n.setDate(n.getDate()+7*(e-1)),n}function u(e){var t=new Date(e.getTime()),n=t.getDay();0===n&&(n=7),t.setDate(t.getDate()+3-n);var r=new Date(t.getFullYear(),0,1),i=Math.ceil((r.getDay()-r.getDay()%7)/7),o=Math.ceil((5*t.getDay()-r.getDay()+10)/7);return i+o}function l(e,t){if(0===arguments.length||!e)return null;var n,r=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===(0,i.default)(e)?n=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(new RegExp(/-/gm),"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),n=new Date(e));var o={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},a=r.replace(/{([ymdhisa])+}/g,(function(e,t){var n=o[t];return"a"===t?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return a}},6:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},60:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGroupView=g,t.getUserInfo=s,t.getUserList=d,t.getUserProfile=o,t.getVideoInfo=y,t.login=i,t.logout=u,t.register=l,t.selectGroupAllUser=p,t.selectGroupUser=f,t.updatePwd=h,t.updateUserProfile=a,t.uploadFile=c;var r=n(49);function i(e){return(0,r.request)({url:"/login",method:"post",header:{"content-type":"application/x-www-form-urlencoded"},data:e})}function o(){return(0,r.request)({url:"/user/profile",method:"GET"})}function a(e){return(0,r.request)({url:"/user/profile/update",method:"PUT",data:e})}function s(){return(0,r.request)({url:"/user/profile"})}function u(){return(0,r.request)({url:"/logout",method:"GET"})}function l(e){return(0,r.request)({url:"/user/register",method:"post",data:e})}function c(e){return(0,r.request)({url:"/upload/file",method:"post",headers:{"Content-Type":"multipart/form-data"},data:e})}function h(e){return(0,r.request)({url:"/user/updatePassword",method:"PUT",data:e})}function d(e){return(0,r.request)({url:"/user/select",method:"get",data:e})}function f(){return(0,r.request)({url:"/group/user/select"})}function p(){return(0,r.request)({url:"/group/user/select/all"})}function g(){return(0,r.request)({url:"/group/view"})}function y(e){return(0,r.request)({url:"/camera/view/".concat(e)})}},622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(49),i={getByPage:function(e){return(0,r.request)({url:"/reporting/page",data:e})},getByList:function(e){return(0,r.request)({url:"/reporting",data:e})},getById:function(e){return(0,r.request)({url:"/reporting/".concat(e)})},create:function(e){return(0,r.request)({url:"/reporting/submit",method:"POST",data:e})},update:function(e){return(0,r.request)({url:"/reporting/update",method:"put",data:e})},deleteById:function(e){return(0,r.request)({url:"/reporting/".concat(e),method:"delete"})},getTemplateByPage:function(e){return(0,r.request)({url:"/reporting/template/page",data:e})},getTemplateyList:function(e){return(0,r.request)({url:"/reporting/template",data:e})},getTemplateById:function(e){return(0,r.request)({url:"/reporting/template/".concat(e)})},createTemplate:function(e){return(0,r.request)({url:"/reporting/template/add",method:"POST",data:e})},updateTemplate:function(e){return(0,r.request)({url:"/reporting/template/update",method:"put",data:e})},deleteTemplateById:function(e){return(0,r.request)({url:"/reporting/template/".concat(e),method:"delete"})},getTemplateByView:function(e){return(0,r.request)({url:"/reporting/template/type/view",data:e})},getTypeByList:function(e){return(0,r.request)({url:"/reporting/type",data:e})},counterByMonth:function(e){return(0,r.request)({url:"/reporting/statis/counterByMonth",data:e})},counterByType:function(e){return(0,r.request)({url:"/reporting/statis/counterByType",data:e})}};t.default=i},7:function(e,t){function n(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(l)throw i}}return s}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},77:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.upload=void 0;var i=r(n(11)),o=n(54),a=r(n(53)),s=a.default.base.dev,u=function(t){var n=t.formData,r=t.filePath,u=t.callback;return e.showLoading({mask:!0,title:"上传中"}),new Promise((function(t,l){var c,h=e.uploadFile({url:s+"/upload/file",filePath:r,header:(c={},(0,i.default)(c,a.default.TokenKey,(0,o.getToken)()),(0,i.default)(c,"AppID",a.default.appID),(0,i.default)(c,"AppKey",a.default.appKey),(0,i.default)(c,"AppSecret",a.default.appSecret),c),name:"file",formData:n,success:function(n){e.hideLoading(),t(n.data)},fail:function(t){var n=t.errMsg;e.hideLoading({mask:!0,title:"上传失败"}),l(n)}});u&&u(h)}))};t.upload=u}).call(this,n(2)["default"])},78:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAD2BJREFUeF7tXXuMHVUZ/77ZC2VL3WKVAmLwAYRWkD+sCkjL01AKQikIiQoYHqaGagPrzje3JOBVEnbnzLKQhRI2lhIVNbFARaQtRCq4IrWAiTwsBOqDhFdFZNfSpWXvfOZbZ8t2X3fmzjkzZ7b3JDe77Z7znd/3nd+dxznfA2EKtq6urlmDg4NzEXEOM88FAPnMAoDpiDidmacDwP7y70j9HQDwLiLuYGb5XT5vA8AWRNzCzC+USqUtra2t8n9TqmHRtalUKvs1NzcvAIAFiCg/ZbEPMqTXm0IKZu4FgN6BgYHeSqXynqG5MhFbSAJ0dHQsRMQT5QMA8pmWibXGTrITAB5n5qFPuVx+KCccdU9bGAJ0dHQschxnETMvQsQj6tbY4EBmfhkR14dhuL5cLq83OJU20VYToAiLPtFKFIUMVhJAKXUhAFwOAGdqo3q+gjYAwGoiWpMvjLGzW0UApdSl0cKfbJuhNOF5LCLCTzTJSy3GCgIEQXAZM38bAL6YWqNiCNiMiHe4rntX3nBzJUBnZ+e8MAxXAMAFeRsip/nvdRynva2t7emc5odcCNDT07NPf39/mZll8ZvzUt6SeQcQsb2lpaVj6dKl72eNKXMCBEGwmJnLAHB81spaPt8mROxwXff+LHFmSgDf9yuI+P0sFSzaXMz8A8/zKlnhzoQASqnDASAAgCVZKVbwedYCgEtEW03rYZwAQRAsYWZZfCFBo8W3wFZEdF3XFTIYa0YJ0Ljkp18307cEYwRQSvkAQOlN0JAAAIqIPBOWMEIApVQ3AHzXBOC9WOatRLRct/7aCRAEwSPMfJpuoA15AIi40XXd03XaQisBlFLiMDFbJ8CGrDEW2EZE2hxetBFAKdUHAC2NBcvEAv1ENFPHTFoIoJR6DgCO1gGoISO2BZ4nomNi956gY2oCBEGwgZkXpgXSGJ/cAoj4kOu6qXwmUhHA9/1ViHhFcuiNEboswMx3ep53Zb3y6iZAY5OnXpPrH5dms6guAkTbu/fpV8WcRER8kpn/AAAvIeIr1Wr1FQCQj7TDmpqaDmPmwwDgSEScz8xfMIdGv2REPL+ebePEBIgOdsT92fq9fbk8NjU1rZOFd113WxKzB0EwW4hQrVbPKshtTg6OFiY9QKqHAPLNt/pUTx6OqtXqzbr89CUOoamp6ZoCPOyuJaLzkxA9EQEKcN/fiYjLXNe9M4kR4vYNguAKZl6ZYyBKTahJnwdiEyDy5PlVTQT5dXgLAL5JROtMQlBKnQUAPwaAj5qcJ41sRDwvrmdRLAKID19fX9/vLXbj+hsiHuu67rtpDBd3bBAE+zPzMwDw6bhjMu63aebMmSfF8TGMRYAgCK5j5h9mrETc6TYR0QlxO+vsp5R6wtYvBSJe77ruDbX0rUmAyHVbomGt895FxJdd1z2ylpIm/x4EwUvMbGOs4oDjOAtquZzXJIBS6h5L/fb7mPk4z/NeNLnAtWT7vn8UIv4JALQcztSaL+Hf7yWir042ZlICRBE7qxNOmkn3ejc+TICzeWMMES+fLAJpUgIopYTZ1oVrIeI9rutKAKk1LQiCNcw86bctJ7Cbiei4ieaekABRoKa87ljXqtXqqStWrHjUJmDt7e2nNDU1/c4mTCOwyOvxuAGpkxFADGxdlC4z3+V5noSOW9d831+NiJdZBwzgMSI6ZTxc4xIgis//pYWKADOf4HneJhux+b5/PCLKq6GN7aLx8hNMRABJb5LK0cCQBbR4wRjCNiTWYu+oDUS0aLTuYwgQpWUxup1a7wIg4m2u61rtbh4Ewa3M/J16dTQ5LgzDs0bnLhpDAJt9+m18+Bu9YJY/DI6JLRhDAN/3xWHCxp2tQSLax+Q3RJdspZTE+Zd0ydMlRxJXeZ63x87pHgSw+fIPAG8R0YG6jGFSjlLqX7aeFo6+DexBAJsv/zbs+8cljcXnA6LCHreBPQhg8eVfgD9FRIXw01NKPQkAn49LmCz7jb4N7CaAuD05jiP57KxsiCh+fZIL2PoWBEEvM8+3FWgYhmcOu8vtJoDlZ/5iy2eJ6FhbjToSl1JKnEU+ayvWkb4Cuwng+/5vEPFsW0GLCzcRfcJifLuhKaX+Ka7mtmJl5gc9z/uK4BsiQHd397SBgYF3EHE/W0EDQB8RHWAxvpEEeMdS/4AhjMz8XnNz8wHLly/fOUQApZTcW8Xnz+pGRDUdWGxQQCnFNuCogeEkIuodMqjv+9choq0+fyP1GPdAwyZj23yQNtJOzHy953k3DF8B5Bx73ONCm4wLAHcT0SWWYdoDjlLqpwBwsc0YI2yPEtGpwwR4w2CZFZ22eI2IDtUpULcspdSrAPAx3XINyHuTiA7GqMDSvw1MYEQkIp7ruu4DRoSnFBoEwTnM/OuUYjIbXiqVPoJKKam5I1GzRWkPE5GVCSmUUhI0e0ZRDAkA8zGKd1tVINDyGnOx53k/swmz7/vfQMS7bcJUCwsiXilXgE4A+F6tzpb9/Qki+pJNmJRSfwSAXCKUUtjhJiHAgwAgAY+FasxMnudJDuLcm+/7LiKq3IEkB7BOCGBtfFsMfc42HQ1cC0MULSxfoiK2TUKAvwBAIQ5ZxrNwtVr91IoVK/6Rh/Xb29s/2dTU9Pc85tY05zPyEGhrcGNsHffdd9+Dr776aslSmlm75ZZbDtq1a5fsnxS2iZONXAGKsnFRy9BSYEEeaI03pVRbVADD+FyGJ3hNCGD1yVVCA/QQkZSfM9aUUncAwFJjE2QruE8IsAsACuFtG9M28lB7s+4qndEhzzUFfNWbzGzvT0UCDCu8BhFvdl03VahWEAQnMLMsvFXRyDG/DLW6DRFgKt0Cxigs1byZeX2pVFrf2tr6ci2LyN+7urqOGBwclCrlQ9XK44wpaJ+hW8BUeQiMswbPIuKLzPyqfBzHebVarQ46jiPuWx9HxEOZ+Sib/fniKJmgz2tT4jVwIoUR8QUAeFhcoR3HeT0Mw9cB4I0dO3a8XqlUdowc19PTM72vr++QMAwPKZVKB8vPKELqDGaek8Cohek6/BpY6I2gUdb+r2QJBYDfMvNGInpJx2oopSR/sJTB+XKULfRDOuRaIOOZom8FD9twFTM/MGPGjI3Lli3bbtKwK1eunLF9+/bTEPEcAKg7TbtJjAlkD20FF/IwKFJyTRiGt5XL5VwcWjs6Ok5yHEdCwYv6hjB0GFTE4+CHo1wBVngGRZ5AQoQiOYPId+imojmEbGbm2zzPE8dL65rv+5cgohDBusxq4xlr2CGkEC5hiHi767rLrFv1cQAFQbCSma8qANb5RXEK9YioUA4XSikpmyvlc61tQ06hgk4pZatb+FvVavVC23ICxl3RKF3MGkuTRfzfLTwigI2BIU8TkZUx9nEJMNxPKfUUAMxLOs5w/w8CQ2wLDUta9cKwobSIt63ayujQMJuCQ+8novO0WN0yIUopqbiy2BJYHwSHWhQeXpgcAPUuog25A8aEh4syNiSIcBxnbltbmxzgTNnW2dk5JwzDLXkqOCZBhICxIEXM14noF3kaJqu5lVJfA4CfZzXf6HnGTRGTZ5IoZg48z5P35r2m+b6vENHNQ+Fxk0RFt4E8soROWtAgDwNlNWceBTkmTBMX7Qd0A0CmyZiZ+VJb9/ZNEyE6Oxi3kIPBuSdOFJlDqlhrQ70NLsAeorMOKZ80VWzWtwGbkz1kRYAsk0rUTBad8W1gDRFdlJWhbZ5HKSXVWbJwKqmdLj6r20AYhifn5cljGxkiz6LHTOOKVTAiugqYLhmzioi+ZVrhIslXSv3IsI9hvJIxEQHkcmSsaJRNRR9tIUkGxSfjF42KSGCkbBwibp82bdqhy5cv77fF+Dbg6O7ubtm5c6cErMwwgCdZ2biIAJcCgPbCkRKm5Xle4VLSGFiUMSJ9318n4WgG5kpeODIigYnSsYVz7zKwIOOKNORGVl/pWEFooni04zhHt7W1/TUroxZpns7Ozs+EYfi8TsypikdHVwGd5eO3EpGNFcl02jyVLKWURDAfnkrIB4PTlY8XOZ2dnfPCMOwFgGYNoMZsRGiQOaVEaCzcNeA4zoK2tranJzNQrPz7unwFmHmZ53m3T6kV06yM7/tXIeLKtGJHnvmnJkBPT88+fX19En93fBpgzLzY87zCJFNOo2u9Y33fPxcR7693fDRu08yZM09aunSpFLCctMW6AkQPhIuZWZwa07R5RPTnNAKm+lil1OcAYNLLdi0bIOJ5ruvGIlFsAsikaV2bBwcHZ1977bVSVbPRJrDAjTfeeGCpVNpWr4GSutQnIoCAUkrdBwBL6gFYlJo/9eimc0yKmkNriej8JFjqIYC8okgWjqSvKu8Q0YeTgNtb+yql/gMASSukbQWAhUQkP2O3xASIngeWMLNcCZK054nomCQD9ta+SqnnAODoJPrXe8BWFwF0PA8kUa7Rd3ILJL3vj5RWNwEiEqxCxCsaC5SfBZj5Ts/z6s5VlIoA0e1gQ5Q5Kz8r7KUzS0Y013XPTKN+agJEbwaJ71lpQDfGDllAyzOVFgJEJOgDgJbG4mRigX4imqljJm0EiEggRRtm6wDWkDGhBbYR0UG67KOVANEzwSPMLFk1G02zBRBxo+u6p+sUq50A0ZUg8xAznUaxVJaRo3QjBIhIIBmy9qqIX4PEUUTkmZBvjAACNu3hkQmFiyYzzSZPHF2NEiB6JpBtYynwmPTsIA7+qdxnq+QPcF13rUkljRMguh3I4gsJ6jpFNGkAS2XLoksVtEQHO/XokgkBhoE1bgm1l8j0JX80gkwJEN0SxLOonNa9rLYpC9djEyJ2xPXk0aVd5gQQ4OJj2N/fX2bmFZq8jXXZIw85A4jY3tLS0hHHh083wFwIMKxE5HIuJLhAt2IFkXev4zjttVy3TeqSKwGGFYsikKTiZyHy7GtYkM2IeIfrundpkJVKhBUEGNZAKSUBqZcDwMmptLJ3sCSBWE1EWSeGmtAiVhFgBBEkP4EQIdVZt0U82BAtvKSOt6pZSYBhC0Xpaoaqd0Y1/Kwy3mRgJCGTVC0Nw3B9uVyWjCtWNqsJMNJiRSBDURZ9pF0LQ4BRZFiIiCfKBwDkMy2nr9dOAHicmYc+5XJZ3OUL1QpJgJEWrlQq+zU3N0u9gwWIKD/nAoA2h4lRqykOL1uYWaKlewcGBnorlcp7hVrxUWALT4DxjN/V1TVrcHBwLiLOYWYhhHxmAcB0RJzOzNMBYH/5dzRe6gi/i4g7mFl+l8/bstiIKAv+QqlU2tLa2ir/N6Xa/wBXxyT5Pl8TYwAAAABJRU5ErkJggg=="},8:function(e,t,n){var r=n(9);function i(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},9:function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports}}]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map
|