(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{0:function(t,e){},"04f3":function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=function(t,e){if(!e)return;return clearTimeout(e.timer),new u(t,e)};var i=r(n("9523")),o=r(n("970b")),a=r(n("5bc3"));function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=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,l({styles:t},e),(function(t){r()}))}))}},{key:"_nvueNextAnimate",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=t[n];if(i){var o=i.styles,a=i.config;this._animateRun(o,a).then((function(){n+=1,e._nvueNextAnimate(t,n,r)}))}else this.currentStepAnimates={},"function"===typeof r&&r(),this.isEnd=!0}},{key:"step",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(t),this}},{key:"run",value:function(t){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof t&&t()}),this.$.durationTime)}}]),e}(),c=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];c.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((function(t){u.prototype[t]=function(){var e;return(e=this.animation)[t].apply(e,arguments),this}}))}).call(this,n("543d")["default"])},"050f":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.state=e.mutations=e.actions=void 0;var i=r(n("beaf"));e.state={houseData:[],houseSelectData:{houseName:"",houseId:""},homeAwaitData:{},userData:{},messData:[]};e.mutations={setHouseData:function(t,e){t.houseData=e},setHouseName:function(t,e){t.houseSelectData=e},setUserData:function(t,e){t.userData=e},setAwaitData:function(t,e){t.homeAwaitData=e},setMessData:function(t,e){t.messData=e}};var o={getHomeAwaitData:function(t,e){var n=t.commit;t.rootState;return new Promise((function(t,r){(0,i.default)("home.getAwaitData",e,"加载中").then((function(t){1==t.success&&n("setAwaitData",t.data)})).catch((function(t){r(t)}))}))},getHouseData:function(t,e){var n=t.dispatch,r=t.commit;t.rootState;return new Promise((function(t,o){(0,i.default)("home.getRoomData",e,"加载中").then((function(t){1==t.success&&t.data.length>0?(t.data.length>0&&t.data.forEach((function(t){t["text"]=t.stroomName,t["value"]=t.id})),r("setHouseName",{houseName:t.data&&t.data[0].stroomName,houseId:t.data&&t.data[0].id}),n("getHomeAwaitData",{stroomId:t.data[0].id}),r("setHouseData",t.data)):r("setHouseData",[])})).catch((function(t){o(t)}))}))},getUserData:function(t,e){var n=t.commit;t.rootState;return new Promise((function(t,r){(0,i.default)("home.getUserData",e,"加载中").then((function(e){1==e.success&&(t(e),n("setUserData",e.data.userContext))})).catch((function(t){r(t)}))}))},getMessData:function(t,e){var n=t.commit;t.rootState;return new Promise((function(t,r){(0,i.default)("home.getMessageData",e,"加载中").then((function(e){1==e.success&&(t(e),n("setMessData",e.data.records))})).catch((function(t){r(t)}))}))},getMentData:function(t,e){t.commit,t.rootState;return new Promise((function(t,n){(0,i.default)("home.menusData",e,"加载中").then((function(e){1==e.success&&t(e)})).catch((function(t){n(t)}))}))}};e.actions=o},"0676":function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports["default"]=t.exports},1:function(t,e){},"11a3":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dateFormat=void 0;e.dateFormat=function(t){var e=new Date(t),n=e.getFullYear(),r=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,i=e.getDate()<10?"0"+e.getDate():e.getDate(),o=(e.getHours()<10?e.getHours():e.getHours(),e.getMinutes()<10?e.getMinutes():e.getMinutes(),e.getSeconds()<10?e.getSeconds():e.getSeconds(),e.getHours()<10?"0"+e.getHours():e.getHours()),a=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes();return n+"-"+r+"-"+i+" "+o+":"+a}},"11b0":function(t,e){t.exports=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},2229:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={pages:[{path:"pages/mintir/index",style:{navigationBarTitleText:"数据检测",enablePullDownRefresh:!0}},{path:"pages/homeList/homeList",style:{navigationBarTitleText:"个人中心",enablePullDownRefresh:!0}}],subPackages:[{root:"subpkg",pages:[{path:"pages/home/home",style:{navigationBarTitleText:"首页"}},{path:"pages/login/index",style:{navigationBarTitleText:"登录",enablePullDownRefresh:!0}}]}],tabBar:{color:"#919191",selectedColor:"#1890FF",borderStyle:"black",backgroundColor:"#FFFFFF",height:"50px",fontSize:"10px",iconWidth:"24px",spacing:"3px",list:[{pagePath:"pages/mintir/index",text:"数据检测",iconPath:"static/home.jpg",selectedIconPath:"static/homeset.jpg"},{pagePath:"pages/homeList/homeList",text:"我的",iconPath:"static/my.jpg",selectedIconPath:"static/myset.jpg"}]},globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"云流药耗",navigationBarBackgroundColor:"#90ffe4",backgroundColor:"#F8F8F8"},uniIdRouter:{},condition:{current:0,list:[{name:"",path:"",query:""}]}}},2236:function(t,e,n){var r=n("5a43");t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},2289:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.supData=e.medicament=e.CalendarList=e.Calendar=void 0;e.supData=[{value:"1",text:"01月"},{value:"2",text:"02月"},{value:"3",text:"03月"},{value:"4",text:"04月"},{value:"5",text:"05月"},{value:"6",text:"06月"},{value:"7",text:"07月"},{value:"8",text:"08月"},{value:"9",text:"09月"},{value:"10",text:"10月"},{value:"11",text:"11月"},{value:"12",text:"12月"}];e.Calendar=[{value:"Y",text:"年"},{value:"M",text:"月"},{value:"W",text:"周"},{value:"D",text:"日"}];e.medicament=[{value:"1",text:"高值"},{value:"0",text:"耗材"},{value:"2",text:"试剂"},{value:"3",text:"总务"}];e.CalendarList=[{value:"Y",text:"年"},{value:"M",text:"月"},{value:"W",text:"周"},{value:"D",text:"日"}]},"26cb":function(t,e,n){"use strict";(function(e){var n="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},r=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=function(t,e){return t.filter(e)[0]}(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=i(t[n],e)})),r}function o(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function a(t){return null!==t&&"object"===typeof t}var s=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(t,e){this._children[t]=e},s.prototype.removeChild=function(t){delete this._children[t]},s.prototype.getChild=function(t){return this._children[t]},s.prototype.hasChild=function(t){return t in this._children},s.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},s.prototype.forEachChild=function(t){o(this._children,t)},s.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},s.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},s.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(s.prototype,l);var u=function(t){this.register([],t,!1)};u.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},u.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},u.prototype.update=function(t){(function t(e,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}})([],this.root,t)},u.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new s(e,n);if(0===t.length)this.root=i;else{var a=this.get(t.slice(0,-1));a.addChild(t[t.length-1],i)}e.modules&&o(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},u.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},u.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var c;var h=function(t){var e=this;void 0===t&&(t={}),!c&&"undefined"!==typeof window&&window.Vue&&_(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=i;var l=this._modules.root.state;y(this,l,[],this._modules.root),g(this,l),n.forEach((function(t){return t(e)}));var h=void 0!==t.devtools?t.devtools:c.config.devtools;h&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){r.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},p={state:{configurable:!0}};function f(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function d(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;y(t,n,[],t._modules.root,!0),g(t,n,e)}function g(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,a={};o(i,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=c.config.silent;c.config.silent=!0,t._vm=new c({data:{$$state:e},computed:a}),c.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),c.nextTick((function(){return r.$destroy()})))}function y(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=v(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){c.set(s,l,r.state)}))}var u=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:r?t.commit:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return v(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){var r=a+n;(function(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))})(t,r,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;(function(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return function(t){return t&&"function"===typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))})(t,r,i,u)})),r.forEachGetter((function(e,n){var r=a+n;(function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}})(t,r,e,u)})),r.forEachChild((function(r,o){y(t,e,n.concat(o),r,i)}))}function v(t,e){return e.reduce((function(t,e){return t[e]}),t)}function m(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function _(t){c&&t===c||(c=t, /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(c))}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(t){0},h.prototype.commit=function(t,e,n){var r=this,i=m(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},h.prototype.dispatch=function(t,e){var n=this,r=m(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(u){0}e(t)}))}))}},h.prototype.subscribe=function(t,e){return f(t,this._subscribers,e)},h.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return f(n,this._actionSubscribers,e)},h.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},h.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},h.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),y(this,this.state,t,this._modules.get(t),n.preserveState),g(this,this.state)},h.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=v(e.state,t.slice(0,-1));c.delete(n,t[t.length-1])})),d(this)},h.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},h.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),d(this,!0)},h.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(h.prototype,p);var x=M((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=A(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),b=M((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=A(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),w=M((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||A(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),S=M((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=A(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function k(t){return function(t){return Array.isArray(t)||a(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function M(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function A(t,e,n){var r=t._modulesNamespaceMap[n];return r}function T(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function C(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function I(){var t=new Date;return" @ "+O(t.getHours(),2)+":"+O(t.getMinutes(),2)+":"+O(t.getSeconds(),2)+"."+O(t.getMilliseconds(),3)}function O(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t}var P={Store:h,install:_,version:"3.6.2",mapState:x,mapMutations:b,mapGetters:w,mapActions:S,createNamespacedHelpers:function(t){return{mapState:x.bind(null,t),mapGetters:w.bind(null,t),mapMutations:b.bind(null,t),mapActions:S.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var h=i(t.state);"undefined"!==typeof c&&(l&&t.subscribe((function(t,a){var s=i(a);if(n(t,h,s)){var l=I(),u=o(t),p="mutation "+t.type+l;T(c,p,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(h)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),C(c)}h=s})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var r=I(),i=s(t),o="action "+t.type+r;T(c,o,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),C(c)}})))}}};t.exports=P}).call(this,n("c8ba"))},"278c":function(t,e,n){var r=n("c135"),i=n("9b42"),o=n("6613"),a=n("c240");t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.__esModule=!0,t.exports["default"]=t.exports},"2eee":function(t,e,n){var r=n("7ec2")();t.exports=r},"31e9":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("66fd")),o=r(n("26cb"));i.default.use(o.default);var a=n("5ed8"),s={state:{},mutations:{},actions:{}};a.keys().forEach((function(t){Object.assign(s.state,a(t)["state"]),Object.assign(s.mutations,a(t)["mutations"]),Object.assign(s.actions,a(t)["actions"])}));var l=new o.default.Store(s),u=l;e.default=u},"32c0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={appid:"__UNI__D03D671"}},"36c6":function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"37dc":function(t,e,n){"use strict";(function(t,r){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.LOCALE_ZH_HANT=e.LOCALE_ZH_HANS=e.LOCALE_FR=e.LOCALE_ES=e.LOCALE_EN=e.I18n=e.Formatter=void 0,e.compileI18nJsonStr=function(t,e){var n=e.locale,r=e.locales,i=e.delimiters;if(!M(t,i))return t;S||(S=new h);var o=[];Object.keys(r).forEach((function(t){t!==n&&o.push({locale:t,values:r[t]})})),o.unshift({locale:n,values:r[n]});try{return JSON.stringify(T(JSON.parse(t),o,i),null,2)}catch(a){}return t},e.hasI18nJson=function t(e,n){S||(S=new h);return C(e,(function(e,r){var i=e[r];return k(i)?!!M(i,n)||void 0:t(i,n)}))},e.initVueI18n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof t){var i=[e,t];t=i[0],e=i[1]}"string"!==typeof t&&(t=w());"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var o=new x({locale:t,fallbackLocale:n,messages:e,watcher:r}),a=function(t,e){if("function"!==typeof getApp)a=function(t,e){return o.t(t,e)};else{var n=!1;a=function(t,e){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,b(r,o))),o.t(t,e)}}return a(t,e)};return{i18n:o,f:function(t,e,n){return o.f(t,e,n)},t:function(t,e){return a(t,e)},add:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(t,e,n)},watch:function(t){return o.watchLocale(t)},getLocale:function(){return o.getLocale()},setLocale:function(t){return o.setLocale(t)}}},e.isI18nStr=M,e.isString=void 0,e.normalizeLocale=_,e.parseI18nJson=function t(e,n,r){S||(S=new h);return C(e,(function(e,i){var o=e[i];k(o)?M(o,r)&&(e[i]=A(o,n,r)):t(o,n,r)})),e},e.resolveLocale=function(t){return function(e){return e?(e=_(e)||e,function(t){var e=[],n=t.split("-");while(n.length)e.push(n.join("-")),n.pop();return e}(e).find((function(e){return t.indexOf(e)>-1}))):e}};var o=i(n("278c")),a=i(n("970b")),s=i(n("5bc3")),l=i(n("7037")),u=function(t){return null!==t&&"object"===(0,l.default)(t)},c=["{","}"],h=function(){function t(){(0,a.default)(this,t),this._caches=Object.create(null)}return(0,s.default)(t,[{key:"interpolate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if(!e)return[t];var r=this._caches[t];return r||(r=d(t,n),this._caches[t]=r),g(r,e)}}]),t}();e.Formatter=h;var p=/^(?:\d)+/,f=/^(?:\w)+/;function d(t,e){var n=(0,o.default)(e,2),r=n[0],i=n[1],a=[],s=0,l="";while(s-1?"zh-Hans":t.indexOf("-hant")>-1||function(t,e){return!!e.find((function(e){return-1!==t.indexOf(e)}))}(t,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=["en","fr","es"];e&&Object.keys(e).length>0&&(n=Object.keys(e));var r=function(t,e){return e.find((function(e){return 0===t.indexOf(e)}))}(t,n);return r||void 0}}var x=function(){function t(e){var n=e.locale,r=e.fallbackLocale,i=e.messages,o=e.watcher,s=e.formater;(0,a.default)(this,t),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||m,this.messages=i||{},this.setLocale(n||"en"),o&&this.watchLocale(o)}return(0,s.default)(t,[{key:"setLocale",value:function(t){var e=this,n=this.locale;this.locale=_(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(t){t(e.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(t){var e=this,n=this.watchers.push(t)-1;return function(){e.watchers.splice(n,1)}}},{key:"add",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[t];r?n?Object.assign(r,e):Object.keys(e).forEach((function(t){v(r,t)||(r[t]=e[t])})):this.messages[t]=e}},{key:"f",value:function(t,e,n){return this.formater.interpolate(t,e,n).join("")}},{key:"t",value:function(t,e,n){var r=this.message;return"string"===typeof e?(e=_(e,this.messages),e&&(r=this.messages[e])):n=e,v(r,t)?this.formater.interpolate(r[t],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}]),t}();function b(t,e){t.$watchLocale?t.$watchLocale((function(t){e.setLocale(t)})):t.$watch((function(){return t.$locale}),(function(t){e.setLocale(t)}))}function w(){return"undefined"!==typeof t&&t.getLocale?t.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():"en"}e.I18n=x;var S,k=function(t){return"string"===typeof t};function M(t,e){return t.indexOf(e[0])>-1}function A(t,e,n){return S.interpolate(t,e,n).join("")}function T(t,e,n){return C(t,(function(t,r){(function(t,e,n,r){var i=t[e];if(k(i)){if(M(i,r)&&(t[e]=A(i,n[0].values,r),n.length>1)){var o=t[e+"Locales"]={};n.forEach((function(t){o[t.locale]=A(i,t.values,r)}))}}else T(i,n,r)})(t,r,e,n)})),t}function C(t,e){if(Array.isArray(t)){for(var n=0;n0?t.series.forEach((function(t){t.progressive=0})):"object"===(0,o.default)(t.series)&&(t.series.progressive=0))})),t.setPlatformAPI&&t.setPlatformAPI({loadImage:n.setChart?function(t,e,n){var i=null;return r&&r.createImage?(i=r.createImage(),i.onload=e.bind(i),i.onerror=n.bind(i),i.src=t,i):(i=new h,i.onload=e.bind(i),i.onerror=n.bind(i),i.src=t,i)}:null,createCanvas:function(){return n}})};var i=r(n("448a")),o=r(n("7037")),a=r(n("970b")),s=r(n("5bc3")),l={},u=/([\d\.]+)px/,c=function(){function t(){(0,a.default)(this,t),this.__events={}}return(0,s.default)(t,[{key:"on",value:function(t,e){if(t&&e){var n=this.__events[t]||[];n.push(e),this.__events[t]=n}}},{key:"emit",value:function(t,e){var n=this;if(t.constructor===Object&&(e=t,t=e&&e.type),t){var r=this.__events[t];r&&r.length&&r.forEach((function(t){t.call(n,e)}))}}},{key:"off",value:function(t,e){var n=this.__events,r=n[t];if(r&&r.length)if(e)for(var i=0,o=r.length;i3&&void 0!==arguments[3]?arguments[3]:{};(0,a.default)(this,e),l[n.canvasId]={ctx:t},this.canvasId=n.canvasId,this.chart=null,this.isNew=r,this.tagName="canvas",this.canvasNode=i,this.com=n,r||this._initStyle(t),this._initEvent(),this._ee=new c}return(0,s.default)(e,[{key:"getContext",value:function(t){if("2d"===t)return this.ctx}},{key:"setChart",value:function(t){this.chart=t}},{key:"createOffscreenCanvas",value:function(e){if(!this.children){this.com.isOffscreenCanvas=!0,this.com.offscreenWidth=e.width||300,this.com.offscreenHeight=e.height||300;var n=this.com,r=this.com.offscreenCanvasId,i=t.createCanvasContext(r,this.com);this._initStyle(i),this.children=new p(i,n,r)}return this.children}},{key:"appendChild",value:function(t){console.log("child",t)}},{key:"dispatchEvent",value:function(t,e){return"object"==(0,o.default)(t)?this._ee.emit(t.type,t):this._ee.emit(t,e),!0}},{key:"attachEvent",value:function(){}},{key:"detachEvent",value:function(){}},{key:"addEventListener",value:function(t,e){this._ee.on(t,e)}},{key:"removeEventListener",value:function(t,e){this._ee.off(t,e)}},{key:"_initCanvas",value:function(t,e){t.util.getContext=function(){return e},t.util.$override("measureText",(function(t,n){return e.font=n||"12px sans-serif",e.measureText(t,n)}))}},{key:"_initStyle",value:function(t,e){if(["fillStyle","strokeStyle","fontSize","globalAlpha","opacity","textAlign","textBaseline","shadow","lineWidth","lineCap","lineJoin","lineDash","miterLimit","font"].forEach((function(e){Object.defineProperty(t,e,{set:function(n){if("font"===e&&u.test(n)){var r=u.exec(n);t.setFontSize(r[1])}else"opacity"!==e?("fillStyle"!==e&&"strokeStyle"!==e||"none"!==n&&null!==n)&&t["set"+e.charAt(0).toUpperCase()+e.slice(1)](n):t.setGlobalAlpha(n)}})})),this.isNew||e||(t.uniDrawImage=t.drawImage,t.drawImage=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&t.charCodeAt(n)<128?e++:e+=2;return e};t.measureText=function(t,e){var r=12;return e&&(r=parseInt(e.match(/([\d\.]+)px/)[1])),r/=2,{width:n(t)*r}}}}},{key:"_initEvent",value:function(t){var e=this;this.event={};[{wxName:"touchStart",ecName:"mousedown"},{wxName:"touchMove",ecName:"mousemove"},{wxName:"touchEnd",ecName:"mouseup"},{wxName:"touchEnd",ecName:"click"}].forEach((function(t){e.event[t.wxName]=function(n){var r=n.touches[0];e.chart.getZr().handler.dispatch(t.ecName,{zrX:"tap"===t.wxName?r.clientX:r.x,zrY:"tap"===t.wxName?r.clientY:r.y})}}))}},{key:"width",get:function(){return this.canvasNode.width||0},set:function(t){this.canvasNode.width=t}},{key:"height",get:function(){return this.canvasNode.height||0},set:function(t){this.canvasNode.height=t}},{key:"ctx",get:function(){return l[this.canvasId]["ctx"]||null}},{key:"chart",get:function(){return l[this.canvasId]["chart"]||null},set:function(t){l[this.canvasId]["chart"]=t}}]),e}();e.Canvas=f}).call(this,n("543d")["default"])},"3e19":function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__("7037"); /** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT */ (function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===("undefined"===typeof window?"undefined":_typeof(window)),root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===("undefined"===typeof self?"undefined":_typeof(self)),NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===("undefined"===typeof process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__("3c35"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===_typeof(t)&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e>2]|=t[o]<>6,l[i++]=128|63&r):r<55296||r>=57344?(l[i++]=224|r>>12,l[i++]=128|r>>6&63,l[i++]=128|63&r):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),l[i++]=240|r>>18,l[i++]=128|r>>12&63,l[i++]=128|r>>6&63,l[i++]=128|63&r);else for(i=this.start;o>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,n,r,i,o,a=this.blocks;this.first?(t=a[0]-680876937,t=(t<<7|t>>>25)-271733879<<0,r=(-1732584194^2004318071&t)+a[1]-117830708,r=(r<<12|r>>>20)+t<<0,n=(-271733879^r&(-271733879^t))+a[2]-1126478375,n=(n<<17|n>>>15)+r<<0,e=(t^n&(r^t))+a[3]-1316259209,e=(e<<22|e>>>10)+n<<0):(t=this.h0,e=this.h1,n=this.h2,r=this.h3,t+=(r^e&(n^r))+a[0]-680876936,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[1]-389564586,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[2]+606105819,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[3]-1044525330,e=(e<<22|e>>>10)+n<<0),t+=(r^e&(n^r))+a[4]-176418897,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[5]+1200080426,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[6]-1473231341,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[7]-45705983,e=(e<<22|e>>>10)+n<<0,t+=(r^e&(n^r))+a[8]+1770035416,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[9]-1958414417,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[10]-42063,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[11]-1990404162,e=(e<<22|e>>>10)+n<<0,t+=(r^e&(n^r))+a[12]+1804603682,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[13]-40341101,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[14]-1502002290,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[15]+1236535329,e=(e<<22|e>>>10)+n<<0,t+=(n^r&(e^n))+a[1]-165796510,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[6]-1069501632,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[11]+643717713,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[0]-373897302,e=(e<<20|e>>>12)+n<<0,t+=(n^r&(e^n))+a[5]-701558691,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[10]+38016083,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[15]-660478335,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[4]-405537848,e=(e<<20|e>>>12)+n<<0,t+=(n^r&(e^n))+a[9]+568446438,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[14]-1019803690,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[3]-187363961,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[8]+1163531501,e=(e<<20|e>>>12)+n<<0,t+=(n^r&(e^n))+a[13]-1444681467,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[2]-51403784,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[7]+1735328473,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[12]-1926607734,e=(e<<20|e>>>12)+n<<0,i=e^n,t+=(i^r)+a[5]-378558,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[8]-2022574463,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[11]+1839030562,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[14]-35309556,e=(e<<23|e>>>9)+n<<0,i=e^n,t+=(i^r)+a[1]-1530992060,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[4]+1272893353,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[7]-155497632,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[10]-1094730640,e=(e<<23|e>>>9)+n<<0,i=e^n,t+=(i^r)+a[13]+681279174,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[0]-358537222,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[3]-722521979,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[6]+76029189,e=(e<<23|e>>>9)+n<<0,i=e^n,t+=(i^r)+a[9]-640364487,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[12]-421815835,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[15]+530742520,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[2]-995338651,e=(e<<23|e>>>9)+n<<0,t+=(n^(e|~r))+a[0]-198630844,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[7]+1126891415,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[14]-1416354905,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[5]-57434055,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~r))+a[12]+1700485571,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[3]-1894986606,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[10]-1051523,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[1]-2054922799,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~r))+a[8]+1873313359,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[15]-30611744,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[6]-1560198380,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[13]+1309151649,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~r))+a[4]-145523070,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[11]-1120210379,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[2]+718787259,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[9]-343485551,e=(e<<21|e>>>11)+n<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=n-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,n,r="",i=this.array(),o=0;o<15;)t=i[o++],e=i[o++],n=i[o++],r+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return t=i[o],r+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"==",r};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("4362"),__webpack_require__("c8ba"),__webpack_require__("62e4")(module))},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"448a":function(t,e,n){var r=n("2236"),i=n("11b0"),o=n("6613"),a=n("0676");t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.__esModule=!0,t.exports["default"]=t.exports},"4a4b":function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e,r)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"4ea4":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"543d":function(t,e,n){"use strict";(function(t,r){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.createApp=Pe,e.createComponent=He,e.createPage=ze,e.createPlugin=Ue,e.createSubpackageApp=Ve,e.default=void 0;var o,a=i(n("278c")),s=i(n("9523")),l=i(n("b17c")),u=i(n("448a")),c=i(n("7037")),h=n("37dc"),p=i(n("66fd"));function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var m=Object.prototype.toString,_=Object.prototype.hasOwnProperty;function x(t){return"function"===typeof t}function b(t){return"string"===typeof t}function w(t){return"[object Object]"===m.call(t)}function S(t,e){return _.call(t,e)}function k(){}function M(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var A=/-(\w)/g,T=M((function(t){return t.replace(A,(function(t,e){return e?e.toUpperCase():""}))}));function C(t){var e={};return w(t)&&Object.keys(t).sort().forEach((function(n){e[n]=t[n]})),Object.keys(e)?e:t}var I=["invoke","success","fail","complete","returnValue"],O={},P={};function D(t,e){Object.keys(e).forEach((function(n){-1!==I.indexOf(n)&&x(e[n])&&(t[n]=function(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(t[n])){var r=e[n];e[n]=function(i){N(t[n],i,e).then((function(t){return x(r)&&r(t)||t}))}}})),e}function j(t,e){var n=[];Array.isArray(O.returnValue)&&n.push.apply(n,(0,u.default)(O.returnValue));var r=P[t];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,u.default)(r.returnValue)),n.forEach((function(t){e=t(e)||e})),e}function F(t){var e=Object.create(null);Object.keys(O).forEach((function(t){"returnValue"!==t&&(e[t]=O[t].slice())}));var n=P[t];return n&&Object.keys(n).forEach((function(t){"returnValue"!==t&&(e[t]=(e[t]||[]).concat(n[t]))})),e}function z(t,e,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),o=1;o-1?"zh-Hans":t.indexOf("-hant")>-1||function(t,e){return!!e.find((function(e){return-1!==t.indexOf(e)}))}(t,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=function(t,e){return e.find((function(e){return 0===t.indexOf(e)}))}(t,["en","fr","es"]);return n||void 0}}function at(){if(x(getApp)){var e=getApp({allowDefault:!0});if(e&&e.$vm)return e.$vm.$locale}return ot(t.getSystemInfoSync().language)||"en"}var st=[];"undefined"!==typeof r&&(r.getLocale=at);var lt={promiseInterceptor:H},ut=Object.freeze({__proto__:null,upx2px:function(e,n){if(0===Q&&function(){var e=t.getSystemInfoSync(),n=e.platform,r=e.pixelRatio,i=e.windowWidth;Q=i,tt=r,J="ios"===n}(),e=Number(e),0===e)return 0;var r=e/750*(n||Q);return r<0&&(r=-r),r=Math.floor(r+1e-4),0===r&&(r=1!==tt&&J?.5:1),e<0?-r:r},getLocale:at,setLocale:function(t){var e=!!x(getApp)&&getApp();if(!e)return!1;var n=e.$vm.$locale;return n!==t&&(e.$vm.$locale=t,st.forEach((function(e){return e({locale:t})})),!0)},onLocaleChange:function(t){-1===st.indexOf(t)&&st.push(t)},addInterceptor:function(t,e){"string"===typeof t&&w(e)?D(P[t]||(P[t]={}),e):w(t)&&D(O,t)},removeInterceptor:function(t,e){"string"===typeof t?w(e)?L(P[t],e):delete P[t]:w(t)&&L(O,t)},interceptors:lt});var ct,ht={name:function(t){return"back"===t.exists&&t.delta?"navigateBack":"redirectTo"},args:function(t){if("back"===t.exists&&t.url){var e=function(t){var e=getCurrentPages(),n=e.length;while(n--){var r=e[n];if(r.$page&&r.$page.fullPath===t)return n}return-1}(t.url);if(-1!==e){var n=getCurrentPages().length-1-e;n>0&&(t.delta=n)}}}},pt={args:function(t){var e=parseInt(t.current);if(!isNaN(e)){var n=t.urls;if(Array.isArray(n)){var r=n.length;if(r)return e<0?e=0:e>=r&&(e=r-1),e>0?(t.current=n[e],t.urls=n.filter((function(t,r){return!(r2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(w(e)){var o=!0===i?e:{};for(var a in x(n)&&(n=n(e,o)||{}),e)if(S(n,a)){var s=n[a];x(s)&&(s=s(e[a],e,o)),s?b(s)?o[s]=e[a]:w(s)&&(o[s.name?s.name:a]=s.value):console.warn("The '".concat(t,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==Mt.indexOf(a)?x(e[a])&&(o[a]=At(t,e[a],r)):i||(o[a]=e[a]);return o}return x(e)&&(e=At(t,e,r)),e}function Ct(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return x(kt.returnValue)&&(e=kt.returnValue(t,e)),Tt(t,e,n,{},r)}function It(e,n){if(S(kt,e)){var r=kt[e];return r?function(n,i){var o=r;x(r)&&(o=r(n)),n=Tt(e,n,o.args,o.returnValue);var a=[n];"undefined"!==typeof i&&a.push(i),x(o.name)?e=o.name(n):b(o.name)&&(e=o.name);var s=t[e].apply(t,a);return Y(e)?Ct(e,s,o.returnValue,q(e)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(e,"'."))}}return n}var Ot=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(t){Ot[t]=function(t){return function(e){var n=e.fail,r=e.complete,i={errMsg:"".concat(t,":fail method '").concat(t,"' not supported")};x(n)&&n(i),x(r)&&r(i)}}(t)}));var Pt={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Dt=Object.freeze({__proto__:null,getProvider:function(t){var e=t.service,n=t.success,r=t.fail,i=t.complete,o=!1;Pt[e]?(o={errMsg:"getProvider:ok",service:e,provider:Pt[e]},x(n)&&n(o)):(o={errMsg:"getProvider:fail service not found"},x(r)&&r(o)),x(i)&&i(o)}}),Lt=function(){var t;return function(){return t||(t=new p.default),t}}();function Et(t,e,n){return t[e].apply(t,n)}var Rt,Nt,Bt,jt=Object.freeze({__proto__:null,$on:function(){return Et(Lt(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return Et(Lt(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return Et(Lt(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return Et(Lt(),"$emit",Array.prototype.slice.call(arguments))}});function Ft(t){return function(){try{return t.apply(t,arguments)}catch(e){console.error(e)}}}function zt(t){try{return JSON.parse(t)}catch(e){}return t}var Ht=[];function Vt(t,e){Ht.forEach((function(n){n(t,e)})),Ht.length=0}var Ut=[],$t=t.getAppBaseInfo&&t.getAppBaseInfo();$t||($t=t.getSystemInfoSync());var Wt=$t?$t.host:null,Gt=Wt&&"SAAASDK"===Wt.env?t.miniapp.shareVideoMessage:t.shareVideoMessage,qt=Object.freeze({__proto__:null,shareVideoMessage:Gt,getPushClientId:function(t){w(t)||(t={});var e=function(t){var e={};for(var n in t){var r=t[n];x(r)&&(e[n]=Ft(r),delete t[n])}return e}(t),n=e.success,r=e.fail,i=e.complete,o=x(n),a=x(r),s=x(i);Promise.resolve().then((function(){"undefined"===typeof Bt&&(Bt=!1,Rt="",Nt="uniPush is not enabled"),Ht.push((function(t,e){var l;t?(l={errMsg:"getPushClientId:ok",cid:t},o&&n(l)):(l={errMsg:"getPushClientId:fail"+(e?" "+e:"")},a&&r(l)),s&&i(l)})),"undefined"!==typeof Rt&&Vt(Rt,Nt)}))},onPushMessage:function(t){-1===Ut.indexOf(t)&&Ut.push(t)},offPushMessage:function(t){if(t){var e=Ut.indexOf(t);e>-1&&Ut.splice(e,1)}else Ut.length=0},invokePushCallback:function(t){if("enabled"===t.type)Bt=!0;else if("clientId"===t.type)Rt=t.cid,Nt=t.errMsg,Vt(Rt,t.errMsg);else if("pushMsg"===t.type)for(var e={type:"receive",data:zt(t.message)},n=0;n=0;o--){var a=i[o];if(a.$scope._$vueId===n)return a}for(var s=i.length-1;s>=0;s--)if(r=t(i[s],n),r)return r}(this.$vm,r)),e||(e=this.$vm),i.parent=e}function te(t){return Object.defineProperty(t,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),t}function ee(t){return function(t){return null!==t&&"object"===(0,c.default)(t)}(t)&&Object.isExtensible(t)&&Object.defineProperty(t,"__ob__",{configurable:!0,enumerable:!1,value:(0,s.default)({},"__v_skip",!0)}),t}var ne=/_(.*)_worklet_factory_/;var re=Page,ie=Component,oe=/:/g,ae=M((function(t){return T(t.replace(oe,"-"))}));function se(t){var e=t.triggerEvent,n=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return le("onLoad",t),re(t)},Page.after=re.after,Component=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return le("created",t),ie(t)});function ue(t,e,n){e.forEach((function(e){(function t(e,n){if(!n)return!0;if(p.default.options&&Array.isArray(p.default.options[e]))return!0;if(n=n.default||n,x(n))return!!x(n.extendOptions[e])||!!(n.super&&n.super.options&&Array.isArray(n.super.options[e]));if(x(n[e])||Array.isArray(n[e]))return!0;var r=n.mixins;return Array.isArray(r)?!!r.find((function(n){return t(e,n)})):void 0})(e,n)&&(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}))}function ce(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];he(e).forEach((function(e){return pe(t,e,n)}))}function he(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&Object.keys(t).forEach((function(n){0===n.indexOf("on")&&x(t[n])&&e.push(n)})),e}function pe(t,e,n){-1!==n.indexOf(e)||S(t,e)||(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}function fe(t,e){var n;return e=e.default||e,n=x(e)?e:t.extend(e),e=n.options,[n,e]}function de(t,e){if(Array.isArray(e)&&e.length){var n=Object.create(null);e.forEach((function(t){n[t]=!0})),t.$scopedSlots=t.$slots=n}}function ge(t,e){t=(t||"").split(",");var n=t.length;1===n?e._$vueId=t[0]:2===n&&(e._$vueId=t[0],e._$vuePid=t[1])}function ye(t,e){var n=t.data||{},r=t.methods||{};if("function"===typeof n)try{n=n.call(e)}catch(i){Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"monitor",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return w(n)||(n={}),Object.keys(r).forEach((function(t){-1!==e.__lifecycle_hooks__.indexOf(t)||S(n,t)||(n[t]=r[t])})),n}var ve=[String,Number,Boolean,Object,Array,null];function me(t){return function(e,n){this.$vm&&(this.$vm[t]=e)}}function _e(t,e){var n=t.behaviors,r=t.extends,i=t.mixins,o=t.props;o||(t.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(t){a.push(t.replace("uni://","wx".concat("://"))),"uni://form-field"===t&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),w(r)&&r.props&&a.push(e({properties:be(r.props,!0)})),Array.isArray(i)&&i.forEach((function(t){w(t)&&t.props&&a.push(e({properties:be(t.props,!0)}))})),a}function xe(t,e,n,r){return Array.isArray(e)&&1===e.length?e[0]:e}function be(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return e||(r.vueId={type:String,value:""},n.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(t,e){var n=Object.create(null);t.forEach((function(t){n[t]=!0})),this.setData({$slots:n})}}),Array.isArray(t)?t.forEach((function(t){r[t]={type:null,observer:me(t)}})):w(t)&&Object.keys(t).forEach((function(e){var n=t[e];if(w(n)){var i=n.default;x(i)&&(i=i()),n.type=xe(0,n.type),r[e]={type:-1!==ve.indexOf(n.type)?n.type:null,value:i,observer:me(e)}}else{var o=xe(0,n);r[e]={type:-1!==ve.indexOf(o)?o:null,observer:me(e)}}})),r}function we(t,e,n,r){var i={};return Array.isArray(e)&&e.length&&e.forEach((function(e,o){"string"===typeof e?e?"$event"===e?i["$"+o]=n:"arguments"===e?i["$"+o]=n.detail&&n.detail.__args__||r:0===e.indexOf("$event.")?i["$"+o]=t.__get_value(e.replace("$event.",""),n):i["$"+o]=t.__get_value(e):i["$"+o]=t:i["$"+o]=function(t,e){var n=t;return e.forEach((function(e){var r=e[0],i=e[2];if(r||"undefined"!==typeof i){var o,a=e[1],s=e[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):t.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(e){return t.__get_value(a,e)===i})):w(o)?n=Object.keys(o).find((function(e){return t.__get_value(a,o[e])===i})):console.error("v-for 暂不支持循环数据:",o):n=o[i],s&&(n=t.__get_value(s,n))}})),n}(t,e)})),i}function Se(t){for(var e={},n=1;n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=!1,s=w(e.detail)&&e.detail.__args__||[e.detail];if(i&&(a=e.currentTarget&&e.currentTarget.dataset&&"wx"===e.currentTarget.dataset.comType,!n.length))return a?[e]:s;var l=we(t,r,e,s),u=[];return n.forEach((function(t){"$event"===t?"__set_model"!==o||i?i&&!a?u.push(s[0]):u.push(e):u.push(e.target.value):Array.isArray(t)&&"o"===t[0]?u.push(Se(t)):"string"===typeof t&&S(l,t)?u.push(l[t]):u.push(t)})),u}function Me(t){var e=this;t=function(t){try{t.mp=JSON.parse(JSON.stringify(t))}catch(e){}return t.stopPropagation=k,t.preventDefault=k,t.target=t.target||{},S(t,"detail")||(t.detail={}),S(t,"markerId")&&(t.detail="object"===(0,c.default)(t.detail)?t.detail:{},t.detail.markerId=t.markerId),w(t.detail)&&(t.target=Object.assign({},t.target,t.detail)),t}(t);var n=(t.currentTarget||t.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var i=t.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s="^"===r.charAt(0);r=s?r.slice(1):r;var l="~"===r.charAt(0);r=l?r.slice(1):r,a&&function(t,e){return t===e||"regionchange"===e&&("begin"===t||"end"===t)}(i,r)&&a.forEach((function(n){var r=n[0];if(r){var i=e.$vm;if(i.$options.generic&&(i=function(t){var e=t.$parent;while(e&&e.$parent&&(e.$options.generic||e.$parent.$options.generic||e.$scope._$vuePid))e=e.$parent;return e&&e.$parent}(i)||i),"$emit"===r)return void i.$emit.apply(i,ke(e.$vm,t,n[1],n[2],s,r));var a=i[r];if(!x(a)){var u="page"===e.$vm.mpType?"Page":"Component",c=e.route||e.is;throw new Error("".concat(u,' "').concat(c,'" does not have a method "').concat(r,'"'))}if(l){if(a.once)return;a.once=!0}var h=ke(e.$vm,t,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([,,,,,,,,,,t])),o.push(a.apply(i,h))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var Ae={};var Te=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Ce(){p.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var t=p.default.prototype.__call_hook;p.default.prototype.__call_hook=function(e,n){return"onLoad"===e&&n&&n.__id__&&(this.__eventChannel__=function(t){var e=Ae[t];return delete Ae[t],e}(n.__id__),delete n.__id__),t.call(this,e,n)}}function Ie(e,n){var r=n.mocks,i=n.initRefs;Ce(),function(){var t={},e={};function n(t){var e=this.$options.propsData.vueId;if(e){var n=e.split(",")[0];t(n)}}p.default.prototype.$hasSSP=function(n){var r=t[n];return r||(e[n]=this,this.$on("hook:destroyed",(function(){delete e[n]}))),r},p.default.prototype.$getSSP=function(e,n,r){var i=t[e];if(i){var o=i[n]||[];return r?o:o[0]}},p.default.prototype.$setSSP=function(e,r){var i=0;return n.call(this,(function(n){var o=t[n],a=o[e]=o[e]||[];a.push(r),i=a.length-1})),i},p.default.prototype.$initSSP=function(){n.call(this,(function(e){t[e]={}}))},p.default.prototype.$callSSP=function(){n.call(this,(function(t){e[t]&&e[t].$forceUpdate()}))},p.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete t[r],delete e[r])}})}(),e.$options.store&&(p.default.prototype.$store=e.$options.store),function(t){t.prototype.uniIDHasRole=function(t){var e=v(),n=e.role;return n.indexOf(t)>-1},t.prototype.uniIDHasPermission=function(t){var e=v(),n=e.permission;return this.uniIDHasRole("admin")||n.indexOf(t)>-1},t.prototype.uniIDTokenValid=function(){var t=v(),e=t.tokenExpired;return e>Date.now()}}(p.default),p.default.prototype.mpHost="mp-weixin",p.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var t=getApp();t.$vm&&t.$vm.$i18n&&(this._i18n=t.$vm.$i18n)}"app"!==this.mpType&&(i(this),function(t,e){var n=t.$mp[t.mpType];e.forEach((function(e){S(n,e)&&(t[e]=n[e])}))}(this,r))}}});var o={onLaunch:function(n){this.$vm||(t.canIUse&&!t.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=e,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",n),this.$vm.__call_hook("onLaunch",n))}};o.globalData=e.$options.globalData||{};var a=e.$options.methods;return a&&Object.keys(a).forEach((function(t){o[t]=a[t]})),function(t,e,n){var r=t.observable({locale:n||rt.getLocale()}),i=[];e.$watchLocale=function(t){i.push(t)},Object.defineProperty(e,"$locale",{get:function(){return r.locale},set:function(t){r.locale=t,i.forEach((function(e){return e(t)}))}})}(p.default,e,ot(t.getSystemInfoSync().language)||"en"),ue(o,Te),ce(o,e.$options),o}function Oe(t){return Ie(t,{mocks:Yt,initRefs:Jt})}function Pe(t){return App(Oe(t)),t}var De=/[!'()*]/g,Le=function(t){return"%"+t.charCodeAt(0).toString(16)},Ee=/%2C/g,Re=function(t){return encodeURIComponent(t).replace(De,Le).replace(Ee,",")};function Ne(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Re,n=t?Object.keys(t).map((function(n){var r=t[n];if(void 0===r)return"";if(null===r)return e(n);if(Array.isArray(r)){var i=[];return r.forEach((function(t){void 0!==t&&(null===t?i.push(e(n)):i.push(e(n)+"="+e(t)))})),i.join("&")}return e(n)+"="+e(r)})).filter((function(t){return t.length>0})).join("&"):null;return n?"?".concat(n):""}function Be(t,e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isPage,r=e.initRelation,i=arguments.length>2?arguments[2]:void 0,o=fe(p.default,t),s=(0,a.default)(o,2),l=s[0],u=s[1],c=d({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(c,u["mp-weixin"].options);var h={options:c,data:ye(u,p.default.prototype),behaviors:_e(u,Xt),properties:be(u.props,!1,u.__file,c),lifetimes:{attached:function(){var t=this.properties,e={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:t};ge(t.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:e}),this.$vm=new l(e),de(this.$vm,t.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(t){this.$vm&&this.$vm.__call_hook("onPageShow",t)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(t){this.$vm&&this.$vm.__call_hook("onPageResize",t)}},methods:{__l:Qt,__e:Me}};return u.externalClasses&&(h.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(t){h.methods[t]=function(e){return this.$vm[t](e)}})),i?[h,u,l]:n?h:[h,l]}(t,{isPage:Zt,initRelation:Kt},e)}var je=["onShow","onHide","onUnload"];function Fe(t){var e=Be(t,!0),n=(0,a.default)(e,2),r=n[0],i=n[1];return ue(r.methods,je,i),r.methods.onLoad=function(t){this.options=t;var e=Object.assign({},t);delete e.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Ne(e)},this.$vm.$mp.query=t,this.$vm.__call_hook("onLoad",t)},ce(r.methods,t,["onReady"]),function(t,e){e&&Object.keys(e).forEach((function(n){var r=n.match(ne);if(r){var i=r[1];t[n]=e[n],t[i]=e[i]}}))}(r.methods,i.methods),r}function ze(t){return Component(function(t){return Fe(t)}(t))}function He(t){return Component(Be(t))}function Ve(e){var n=Oe(e),r=getApp({allowDefault:!0});e.$scope=r;var i=r.globalData;if(i&&Object.keys(n.globalData).forEach((function(t){S(i,t)||(i[t]=n.globalData[t])})),Object.keys(n).forEach((function(t){S(r,t)||(r[t]=n[t])})),x(n.onShow)&&t.onAppShow&&t.onAppShow((function(){for(var t=arguments.length,n=new Array(t),r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function d(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var v=Object.prototype.hasOwnProperty;function m(t,e){return v.call(t,e)}function _(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var x=/-(\w)/g,b=_((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),w=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,k=_((function(t){return t.replace(S,"-$1").toLowerCase()}));var M=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function A(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function T(t,e){for(var n in e)t[n]=e[n];return t}function C(t){for(var e={},n=0;n0),Z=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===G),K=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/),{}.watch);if($)try{var J={};Object.defineProperty(J,"passive",{get:function(){}}),window.addEventListener("test-passive",null,J)}catch(Bn){}var Q=function(){return void 0===V&&(V=!$&&!W&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),V},tt=$&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function et(t){return"function"===typeof t&&/native code/.test(t.toString())}var nt,rt="undefined"!==typeof Symbol&&et(Symbol)&&"undefined"!==typeof Reflect&&et(Reflect.ownKeys);nt="undefined"!==typeof Set&&et(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var it=I,ot=0,at=function(){this.id=ot++,this.subs=[]};function st(t){at.SharedObject.targetStack.push(t),at.SharedObject.target=t,at.target=t}function lt(){at.SharedObject.targetStack.pop(),at.SharedObject.target=at.SharedObject.targetStack[at.SharedObject.targetStack.length-1],at.target=at.SharedObject.target}at.prototype.addSub=function(t){this.subs.push(t)},at.prototype.removeSub=function(t){y(this.subs,t)},at.prototype.depend=function(){at.SharedObject.target&&at.SharedObject.target.addDep(this)},at.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!m(i,"default"))a=!1;else if(""===a||a===k(t)){var l=Nt(String,i.type);(l<0||s0&&(l=t(l,(n||"")+"_"+s),re(l[0])&&re(c)&&(h[u]=pt(c.text+l[0].text),l.shift()),h.push.apply(h,l)):a(l)?re(c)?h[u]=pt(c.text+l):""!==l&&h.push(pt(l)):re(l)&&re(c)?h[u]=pt(c.text+l.text):(o(e._isVList)&&i(l.tag)&&r(l.key)&&i(n)&&(l.key="__vlist"+n+"_"+s+"__"),h.push(l)));return h}(t):void 0}function re(t){return i(t)&&i(t.text)&&function(t){return!1===t}(t.isComment)}function ie(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function oe(t){var e=ae(t.$options.inject,t);e&&(vt(!1),Object.keys(e).forEach((function(n){bt(t,n,e[n])})),vt(!0))}function ae(t,e){if(t){for(var n=Object.create(null),r=rt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ce(e,l,t[l]))}else i={};for(var u in e)u in i||(i[u]=he(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),z(i,"$stable",a),z(i,"$key",s),z(i,"$hasNormal",o),i}function ce(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:ne(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function he(t,e){return function(){return t[e]}}function pe(t,e){var n,r,o,a,l;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;rdocument.createEvent("Event").timeStamp&&(Qe=function(){return tn.now()})}function en(){var t,e;for(Qe(),Ke=!0,qe.sort((function(t,e){return t.id-e.id})),Je=0;JeJe&&qe[n].id>t.id)n--;qe.splice(n+1,0,t)}else qe.push(t);Ze||(Ze=!0,Xt(en))}}(this)},rn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Bn){Bt(Bn,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},rn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},rn.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},rn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var on={enumerable:!0,configurable:!0,get:I,set:I};function an(t,e,n){on.get=function(){return this[e][n]},on.set=function(t){this[e][n]=t},Object.defineProperty(t,n,on)}function sn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||vt(!1);var a=function(o){i.push(o);var a=Lt(o,e,n,t);bt(r,o,a),o in t||an(t,"_props",o)};for(var s in e)a(s);vt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?I:M(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;e=t._data="function"===typeof e?function(t,e){st();try{return t.call(e,e)}catch(Bn){return Bt(Bn,e,"data()"),{}}finally{lt()}}(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&m(r,o)||F(o)||an(t,"_data",o)}xt(e,!0)}(t):xt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=Q();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new rn(t,a||I,I,ln)),i in t||un(t,i,o)}}(t,e.computed),e.watch&&e.watch!==K&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!function(t){return"[object RegExp]"===l.call(t)}(t)&&t.test(e)}function _n(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=vn(a.componentOptions);s&&!e(s)&&xn(n,o,r,i)}}}function xn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}(function(t){t.prototype._init=function(t){var e=this;e._uid=fn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Pt(dn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ve(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=se(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return Ee(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Ee(t,e,n,r,i,!0)};var o=r&&r.data;bt(t,"$attrs",o&&o.attrs||n,null,!0),bt(t,"$listeners",e._parentListeners||n,null,!0)}(e),Ge(e,"beforeCreate"),!e._$fallback&&oe(e),sn(e),!e._$fallback&&ie(e),!e._$fallback&&Ge(e,"created"),e.$options.el&&e.$mount(e.$options.el)}})(gn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=wt,t.prototype.$delete=St,t.prototype.$watch=function(t,e,n){if(u(e))return pn(this,t,e,n);n=n||{},n.user=!0;var r=new rn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(i){Bt(i,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(gn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?A(n):n;for(var r=A(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;oparseInt(this.max)&&xn(s,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Sn={KeepAlive:wn};(function(t){var e={get:function(){return B}};Object.defineProperty(t,"config",e),t.util={warn:it,extend:T,mergeOptions:Pt,defineReactive:bt},t.set=wt,t.delete=St,t.nextTick=Xt,t.observable=function(t){return xt(t),t},t.options=Object.create(null),R.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,Sn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Pt(this.options,t),this}}(t),yn(t),function(t){R.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)})(gn),Object.defineProperty(gn.prototype,"$isServer",{get:Q}),Object.defineProperty(gn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Te}),gn.version="2.6.11";var kn="[object Array]",Mn="[object Object]";function An(t,e){var n={};return function t(e,n){if(e===n)return;var r=Cn(e),i=Cn(n);if(r==Mn&&i==Mn){if(Object.keys(e).length>=Object.keys(n).length)for(var o in n){var a=e[o];void 0===a?e[o]=null:t(a,n[o])}}else r==kn&&i==kn&&e.length>=n.length&&n.forEach((function(n,r){t(e[r],n)}))}(t,e),function t(e,n,r,i){if(e===n)return;var o=Cn(e),a=Cn(n);if(o==Mn)if(a!=Mn||Object.keys(e).length1&&(e[r[0].trim()]=r[1].trim())}})),e}));var Rn=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var Nn=["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"];gn.prototype.__patch__=function(t,e){var n=this;if(null!==e&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,i=Object.create(null);try{i=function(t){var e=Object.create(null),n=[].concat(Object.keys(t._data||{}),Object.keys(t._computedWatchers||{}));n.reduce((function(e,n){return e[n]=t[n],e}),e);var r=t.__composition_api_state__||t.__secret_vfa_state__,i=r&&r.rawBindings;return i&&Object.keys(i).forEach((function(n){e[n]=t[n]})),Object.assign(e,t.$mp.data||{}),Array.isArray(t.$options.behaviors)&&-1!==t.$options.behaviors.indexOf("uni://form-field")&&(e["name"]=t.name,e["value"]=t.value),JSON.parse(JSON.stringify(e,Pn))}(this)}catch(s){console.error(s)}i.__webviewId__=r.data.__webviewId__;var o=Object.create(null);Object.keys(i).forEach((function(t){o[t]=r.data[t]}));var a=!1===this.$shouldDiffData?i:An(i,o);Object.keys(a).length?(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"monitor",VUE_APP_PLATFORM:"mp-weixin",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,In(n)}))):In(this)}},gn.prototype.$mount=function(t,e){return function(t,e,n){return t.mpType?("app"===t.mpType&&(t.$options.render=Dn),t.$options.render||(t.$options.render=Dn),!t._$fallback&&Ge(t,"beforeMount"),new rn(t,(function(){t._update(t._render(),n)}),I,{before:function(){t._isMounted&&!t._isDestroyed&&Ge(t,"beforeUpdate")}},!0),n=!1,t):t}(this,0,e)},function(t){var e=t.extend;t.extend=function(t){t=t||{};var n=t.methods;return n&&Object.keys(n).forEach((function(e){-1!==Nn.indexOf(e)&&(t[e]=n[e],delete n[e])})),e.call(this,t)};var n=t.config.optionMergeStrategies,r=n.created;Nn.forEach((function(t){n[t]=r})),t.prototype.__lifecycle_hooks__=Nn}(gn),function(t){t.config.errorHandler=function(e,n,r){t.util.warn("Error in "+r+': "'+e.toString()+'"',n),console.error(e);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(e)};var e=t.prototype.$emit;t.prototype.$emit=function(t){if(this.$scope&&t){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,t,{__args__:A(arguments,1)})}catch(r){}}return e.apply(this,arguments)},t.prototype.$nextTick=function(t){return On(this,t)},Rn.forEach((function(e){t.prototype[e]=function(t){return this.$scope&&this.$scope[e]?this.$scope[e](t):"undefined"!==typeof my?"createSelectorQuery"===e?my.createSelectorQuery(t):"createIntersectionObserver"===e?my.createIntersectionObserver(t):void 0:void 0}})),t.prototype.__init_provide=ie,t.prototype.__init_injections=oe,t.prototype.__call_hook=function(t,e){var n=this;st();var r,i=n.$options[t],o=t+" hook";if(i)for(var a=0,s=i.length;a=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},9523:function(t,e,n){var r=n("a395");t.exports=function(t,e,n){return e=r(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"970b":function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports["default"]=t.exports},"9a05":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.state=e.mutations=e.actions=void 0;var n={showWxLogin:!1,userInfo:{headLogo:t.getStorageSync("headLogo")||""}};e.state=n;var r={setShowWxLogin:function(t,e){t.showWxLogin=e},setUserInfo:function(e,n){e.userInfo=n,t.setStorageSync("token",n.token),t.setStorageSync("wechatId",n.wechatId),t.setStorageSync("headLogo",n.headLogo),t.setStorageSync("nameList",n.nameList)}};e.mutations=r;e.actions={}}).call(this,n("543d")["default"])},"9b42":function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}},t.exports.__esModule=!0,t.exports["default"]=t.exports},a128:function(t,e,n){var r=n("36c6"),i=n("4a4b"),o=n("c5f7"),a=n("b17c");function s(e){var n="function"===typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!o(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return a(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},t.exports.__esModule=!0,t.exports["default"]=t.exports,s(e)}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},a18c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{}},created:function(){this.popup=this.getParent()},methods:{getParent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniPopup",e=this.$parent,n=e.$options.name;while(n!==t){if(e=e.$parent,!e)return!1;n=e.$options.name}return e}}};e.default=r},a395:function(t,e,n){var r=n("7037")["default"],i=n("e50d");t.exports=function(t){var e=i(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports["default"]=t.exports},a90c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontData=void 0;e.fontData=[{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:""}]},a9ff:function(t,e,n){"use strict";(function(t,r,i){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("2eee")),s=o(n("3c96")),l=o(n("278c")),u=o(n("7037")),c=o(n("448a")),h=o(n("c973")),p=o(n("9523")),f=o(n("ed6d")),d=o(n("6b58")),g=o(n("36c6")),y=o(n("a128")),v=o(n("970b")),m=o(n("5bc3")),_=o(n("2229"));function x(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n,r=[],i=function(e){e=e;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(e=18e3*(65535&e)+(e>>16)&r)&r;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new a.init(n,e/2)}},u=s.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new a.init(n,e)}},c=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,u=t.min(4*l,i);if(l){for(var c=0;c>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],l=t[e+1],f=t[e+2],d=t[e+3],g=t[e+4],y=t[e+5],v=t[e+6],m=t[e+7],_=t[e+8],x=t[e+9],b=t[e+10],w=t[e+11],S=t[e+12],k=t[e+13],M=t[e+14],A=t[e+15],T=o[0],C=o[1],I=o[2],O=o[3];T=u(T,C,I,O,a,7,s[0]),O=u(O,T,C,I,l,12,s[1]),I=u(I,O,T,C,f,17,s[2]),C=u(C,I,O,T,d,22,s[3]),T=u(T,C,I,O,g,7,s[4]),O=u(O,T,C,I,y,12,s[5]),I=u(I,O,T,C,v,17,s[6]),C=u(C,I,O,T,m,22,s[7]),T=u(T,C,I,O,_,7,s[8]),O=u(O,T,C,I,x,12,s[9]),I=u(I,O,T,C,b,17,s[10]),C=u(C,I,O,T,w,22,s[11]),T=u(T,C,I,O,S,7,s[12]),O=u(O,T,C,I,k,12,s[13]),I=u(I,O,T,C,M,17,s[14]),T=c(T,C=u(C,I,O,T,A,22,s[15]),I,O,l,5,s[16]),O=c(O,T,C,I,v,9,s[17]),I=c(I,O,T,C,w,14,s[18]),C=c(C,I,O,T,a,20,s[19]),T=c(T,C,I,O,y,5,s[20]),O=c(O,T,C,I,b,9,s[21]),I=c(I,O,T,C,A,14,s[22]),C=c(C,I,O,T,g,20,s[23]),T=c(T,C,I,O,x,5,s[24]),O=c(O,T,C,I,M,9,s[25]),I=c(I,O,T,C,d,14,s[26]),C=c(C,I,O,T,_,20,s[27]),T=c(T,C,I,O,k,5,s[28]),O=c(O,T,C,I,f,9,s[29]),I=c(I,O,T,C,m,14,s[30]),T=h(T,C=c(C,I,O,T,S,20,s[31]),I,O,y,4,s[32]),O=h(O,T,C,I,_,11,s[33]),I=h(I,O,T,C,w,16,s[34]),C=h(C,I,O,T,M,23,s[35]),T=h(T,C,I,O,l,4,s[36]),O=h(O,T,C,I,g,11,s[37]),I=h(I,O,T,C,m,16,s[38]),C=h(C,I,O,T,b,23,s[39]),T=h(T,C,I,O,k,4,s[40]),O=h(O,T,C,I,a,11,s[41]),I=h(I,O,T,C,d,16,s[42]),C=h(C,I,O,T,v,23,s[43]),T=h(T,C,I,O,x,4,s[44]),O=h(O,T,C,I,S,11,s[45]),I=h(I,O,T,C,A,16,s[46]),T=p(T,C=h(C,I,O,T,f,23,s[47]),I,O,a,6,s[48]),O=p(O,T,C,I,m,10,s[49]),I=p(I,O,T,C,M,15,s[50]),C=p(C,I,O,T,y,21,s[51]),T=p(T,C,I,O,S,6,s[52]),O=p(O,T,C,I,d,10,s[53]),I=p(I,O,T,C,b,15,s[54]),C=p(C,I,O,T,l,21,s[55]),T=p(T,C,I,O,_,6,s[56]),O=p(O,T,C,I,A,10,s[57]),I=p(I,O,T,C,v,15,s[58]),C=p(C,I,O,T,k,21,s[59]),T=p(T,C,I,O,g,6,s[60]),O=p(O,T,C,I,w,10,s[61]),I=p(I,O,T,C,f,15,s[62]),C=p(C,I,O,T,x,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+C|0,o[2]=o[2]+I|0,o[3]=o[3]+O|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.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),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+i+a;return(s<>>32-o)+e}function c(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+i+a;return(s<>>32-o)+e}function h(t,e,n,r,i,o,a){var s=t+(e^n^r)+i+a;return(s<>>32-o)+e}function p(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+i+a;return(s<>>32-o)+e}e.MD5=o._createHelper(l),e.HmacMD5=o._createHmacHelper(l)}(Math),n.MD5)})),M((function(t,e){var n;t.exports=(n=T,void function(){var t=n,e=t.lib.Base,r=t.enc.Utf8;t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=r.parse(e));var n=t.blockSize,i=4*n;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),s=o.words,l=a.words,u=0;u>>6-a%4*2;i[o>>>2]|=(s|l)<<24-o%4*8,o++}return e.create(i,o)}t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=e.createPromise,r=e.retryRule,i=void 0===r?z:r;(0,v.default)(this,t),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=i}return(0,m.default)(t,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case z:return this.status===R;case H:return this.status!==L}}},{key:"exec",value:function(){var t=this;return this.needRetry?(this.status=L,this.promise=this.createPromise().then((function(e){return t.status=E,Promise.resolve(e)}),(function(e){return t.status=R,Promise.reject(e)})),this.promise):this.promise}}]),t}();function U(t){return t&&"string"==typeof t?JSON.parse(t):t}var $="mp-weixin",W=U([]),G=$,q=(U(void 0),U([])||[]);try{(n("32c0").default||n("32c0")).appid}catch(hr){}var Y={};function X(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=Y,n=t,Object.prototype.hasOwnProperty.call(e,n)||(Y[t]=r),Y[t]}"app"===G&&(Y=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var Z=["invoke","success","fail","complete"],K=X("_globalUniCloudInterceptor");function J(t,e){K[t]||(K[t]={}),B(e)&&Object.keys(e).forEach((function(n){Z.indexOf(n)>-1&&function(t,e,n){var r=K[t][e];r||(r=K[t][e]=[]),-1===r.indexOf(n)&&j(n)&&r.push(n)}(t,n,e[n])}))}function Q(t,e){K[t]||(K[t]={}),B(e)?Object.keys(e).forEach((function(n){Z.indexOf(n)>-1&&function(t,e,n){var r=K[t][e];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,1)}}(t,n,e[n])})):delete K[t]}function tt(t,e){return t&&0!==t.length?t.reduce((function(t,n){return t.then((function(){return n(e)}))}),Promise.resolve()):Promise.resolve()}function et(t,e){return K[t]&&K[t][e]||[]}function nt(t){J("callObject",t)}var rt=X("_globalUniCloudListener"),it="response",ot="needLogin",at="refreshToken",st="clientdb",lt="cloudfunction",ut="cloudobject";function ct(t){return rt[t]||(rt[t]=[]),rt[t]}function ht(t,e){var n=ct(t);n.includes(e)||n.push(e)}function pt(t,e){var n=ct(t),r=n.indexOf(e);-1!==r&&n.splice(r,1)}function ft(t,e){for(var n=ct(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:0;if(!(t>=10))return t++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(t):this.cause}}}]),n}((0,y.default)(Error)),bt={request:function(t){return r.request(t)},uploadFile:function(t){return r.uploadFile(t)},setStorageSync:function(t,e){return r.setStorageSync(t,e)},getStorageSync:function(t){return r.getStorageSync(t)},removeStorageSync:function(t){return r.removeStorageSync(t)},clearStorageSync:function(){return r.clearStorageSync()}};function wt(){return{token:bt.getStorageSync("uni_id_token")||bt.getStorageSync("uniIdToken"),tokenExpired:bt.getStorageSync("uni_id_token_expired")}}function St(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.token,n=t.tokenExpired;e&&bt.setStorageSync("uni_id_token",e),n&&bt.setStorageSync("uni_id_token_expired",n)}function kt(){return mt||(mt=r.getSystemInfoSync()),mt}function Mt(){var t=r.getLocale&&r.getLocale()||"en";if(_t)return S(S({},_t),{},{locale:t,LOCALE:t});for(var e=kt(),n=e.deviceId,i=e.osName,o=e.uniPlatform,a=e.appId,s=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],l=0;l-1)return;var n=r.getLaunchOptionsSync(),i=n.scene,o=n.channel;t=o,e=i}}catch(t){}return{channel:t,scene:e}}()),e),S(S({},_t),{},{locale:t,LOCALE:t})}var At,Tt={sign:function(t,e){var n="";return Object.keys(t).sort().forEach((function(e){t[e]&&(n=n+"&"+e+"="+t[e])})),n=n.slice(1),C(n,e).toString()},wrappedRequest:function(t,e){return new Promise((function(n,r){e(Object.assign(t,{complete:function(t){t||(t={});var e=t.data&&t.data.header&&t.data.header["x-serverless-request-id"]||t.header&&t.header["request-id"];if(!t.statusCode||t.statusCode>=400)return r(new xt({code:"SYS_ERR",message:t.errMsg||"request:fail",requestId:e}));var i=t.data;if(i.error)return r(new xt({code:i.error.code,message:i.error.message,requestId:e}));i.result=i.data,i.requestId=e,delete i.data,n(i)}}))}))},toBase64:function(t){return O.stringify(I.parse(t))}},Ct=function(){function t(e){var n=this;(0,v.default)(this,t),["spaceId","clientSecret"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error("".concat(t," required"))})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),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=bt,this._getAccessTokenPromiseHub=new V({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(t){if(!t.result||!t.result.accessToken)throw new xt({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(t.result.accessToken)}))},retryRule:H})}return(0,m.default)(t,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(t){this.accessToken=t}},{key:"requestWrapped",value:function(t){return Tt.wrappedRequest(t,this.adapter.request)}},{key:"requestAuth",value:function(t){return this.requestWrapped(t)}},{key:"request",value:function(t,e){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?e?n.requestWrapped(t):n.requestWrapped(t).catch((function(e){return new Promise((function(t,n){!e||"GATEWAY_INVALID_TOKEN"!==e.code&&"InvalidParameter.InvalidToken"!==e.code?n(e):t()})).then((function(){return n.getAccessToken()})).then((function(){var e=n.rebuildRequest(t);return n.request(e,!0)}))})):n.getAccessToken().then((function(){var e=n.rebuildRequest(t);return n.request(e,!0)}))}))}},{key:"rebuildRequest",value:function(t){var e=Object.assign({},t);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=Tt.sign(e.data,this.config.clientSecret),e}},{key:"setupRequest",value:function(t,e){var n=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==e&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Tt.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 t=(0,h.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getAccessToken();case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"callFunction",value:function(t){var e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(this.setupRequest(e))}},{key:"getOSSUploadOptionsFromPath",value:function(t){var e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFileToOSS",value:function(t){var e=this,n=t.url,r=t.formData,i=t.name,o=t.filePath,a=t.fileType,s=t.onUploadProgress;return new Promise((function(t,l){var u=e.adapter.uploadFile({url:n,formData:r,name:i,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(e){e&&e.statusCode<400?t(e):l(new xt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){l(new xt({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(t){var e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFile",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r,i,o,s,l,u,c,h,p,f,d,g,y,v,m,_,x,b,w,S,k;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.filePath,r=e.cloudPath,i=e.fileType,o=void 0===i?"image":i,s=e.cloudPathAsRealPath,l=void 0!==s&&s,u=e.onUploadProgress,c=e.config,"string"===N(r)){t.next=3;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){t.next=5;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){t.next=7;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(h=c&&c.envType||this.config.envType,!(l&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){t.next=10;break}throw new xt({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return t.next=12,this.getOSSUploadOptionsFromPath({env:h,filename:l?r.split("/").pop():r,fileId:l?r:void 0});case 12:return p=t.sent.result,f="https://"+p.cdnDomain+"/"+p.ossPath,d=p.securityToken,g=p.accessKeyId,y=p.signature,v=p.host,m=p.ossPath,_=p.id,x=p.policy,b=p.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},d&&(w["x-oss-security-token"]=d),b&&(S=JSON.stringify({callbackUrl:b,callbackBody:JSON.stringify({fileId:_,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),w.callback=Tt.toBase64(S)),k={url:"https://"+p.host,formData:w,fileName:"file",name:"file",filePath:n,fileType:o},t.next=27,this.uploadFileToOSS(Object.assign({},k,{onUploadProgress:u}));case 27:if(!b){t.next=29;break}return t.abrupt("return",{success:!0,filePath:n,fileID:f});case 29:return t.next=31,this.reportOSSUpload({id:_});case 31:if(!t.sent.success){t.next=33;break}return t.abrupt("return",{success:!0,filePath:n,fileID:f});case 33:throw new xt({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fileList;return new Promise((function(t,n){Array.isArray(e)&&0!==e.length||n(new xt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((function(t){return{fileID:t,tempFileURL:t}}))})}))}},{key:"getFileInfo",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i=arguments;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:{},n=e.fileList,Array.isArray(n)&&0!==n.length){t.next=3;break}throw new xt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(t){return t.split("?")[0]})).join(",")})},t.next=6,this.request(this.setupRequest(r));case 6:return t.t0=t.sent.result,t.abrupt("return",{fileList:t.t0});case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),t}(),It={init:function(t){var e=new Ct(t),n={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return n},e.customAuth=e.auth,e}},Ot="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(t){t.local="local",t.none="none",t.session="session"}(At||(At={}));var Pt,Dt=function(){},Lt=M((function(t,e){var n;t.exports=(n=T,function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),l[i]=n(t.pow(r,1/3)),i++),r++}();var u=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){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],p=n[7],f=0;f<64;f++){if(f<16)u[f]=0|t[e+f];else{var d=u[f-15],g=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,y=u[f-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;u[f]=g+u[f-7]+v+u[f-16]}var m=r&i^r&o^i&o,_=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+l[f]+u[f];p=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]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(c),e.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)})),Et=Lt,Rt=M((function(t,e){t.exports=T.HmacSHA256})),Nt=function(){var t;if(!Promise){t=function(){},t.promise={};var e=function(){throw new xt({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(t.promise,"then",{get:e}),Object.defineProperty(t.promise,"catch",{get:e}),t}var n=new Promise((function(e,n){t=function(t,r){return t?n(t):e(r)}}));return t.promise=n,t};function Bt(t){return void 0===t}function jt(t){return"[object Null]"===Object.prototype.toString.call(t)}!function(t){t.WEB="web",t.WX_MP="wx_mp"}(Pt||(Pt={}));var Ft={adapter:null,runtime:void 0},zt=["anonymousUuidKey"],Ht=function(t){(0,f.default)(n,t);var e=k(n);function n(){var t;return(0,v.default)(this,n),t=e.call(this),Ft.adapter.root.tcbObject||(Ft.adapter.root.tcbObject={}),t}return(0,m.default)(n,[{key:"setItem",value:function(t,e){Ft.adapter.root.tcbObject[t]=e}},{key:"getItem",value:function(t){return Ft.adapter.root.tcbObject[t]}},{key:"removeItem",value:function(t){delete Ft.adapter.root.tcbObject[t]}},{key:"clear",value:function(){delete Ft.adapter.root.tcbObject}}]),n}(Dt);function Vt(t,e){switch(t){case"local":return e.localStorage||new Ht;case"none":return new Ht;default:return e.sessionStorage||new Ht}}var Ut=function(){function t(e){if((0,v.default)(this,t),!this._storage){this._persistence=Ft.adapter.primaryStorage||e.persistence,this._storage=Vt(this._persistence,Ft.adapter);var n="access_token_".concat(e.env),r="access_token_expire_".concat(e.env),i="refresh_token_".concat(e.env),o="anonymous_uuid_".concat(e.env),a="login_type_".concat(e.env),s="user_info_".concat(e.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:i,anonymousUuidKey:o,loginTypeKey:a,userInfoKey:s}}}return(0,m.default)(t,[{key:"updatePersistence",value:function(t){if(t!==this._persistence){var e="local"===this._persistence;this._persistence=t;var n=Vt(t,Ft.adapter);for(var r in this.keys){var i=this.keys[r];if(!e||!zt.includes(r)){var o=this._storage.getItem(i);Bt(o)||jt(o)||(n.setItem(i,o),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(t,e,n){if(this._storage){var r={version:n||"localCachev1",content:e},i=JSON.stringify(r);try{this._storage.setItem(t,i)}catch(t){throw t}}}},{key:"getStore",value:function(t,e){try{if(!this._storage)return}catch(t){return""}e=e||"localCachev1";var n=this._storage.getItem(t);return n&&n.indexOf(e)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(t){this._storage.removeItem(t)}}]),t}(),$t={},Wt={};function Gt(t){return $t[t]}var qt=(0,m.default)((function t(e,n){(0,v.default)(this,t),this.data=n||null,this.name=e})),Yt=function(t){(0,f.default)(n,t);var e=k(n);function n(t,r){var i;return(0,v.default)(this,n),i=e.call(this,"error",{error:t,data:r}),i.error=t,i}return(0,m.default)(n)}(qt),Xt=new(function(){function t(){(0,v.default)(this,t),this._listeners={}}return(0,m.default)(t,[{key:"on",value:function(t,e){return function(t,e,n){n[t]=n[t]||[],n[t].push(e)}(t,e,this._listeners),this}},{key:"off",value:function(t,e){return function(t,e,n){if(n&&n[t]){var r=n[t].indexOf(e);-1!==r&&n[t].splice(r,1)}}(t,e,this._listeners),this}},{key:"fire",value:function(t,e){if(t instanceof Yt)return console.error(t.error),this;var n="string"==typeof t?new qt(t,e||{}):t,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(l){a.e(l)}finally{a.f()}}return this}},{key:"_listens",value:function(t){return this._listeners[t]&&this._listeners[t].length>0}}]),t}());function Zt(t,e){Xt.on(t,e)}function Kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Xt.fire(t,e)}function Jt(t,e){Xt.off(t,e)}var Qt,te="loginStateChanged",ee="loginStateExpire",ne="loginTypeChanged",re="anonymousConverted",ie="refreshAccessToken";!function(t){t.ANONYMOUS="ANONYMOUS",t.WECHAT="WECHAT",t.WECHAT_PUBLIC="WECHAT-PUBLIC",t.WECHAT_OPEN="WECHAT-OPEN",t.CUSTOM="CUSTOM",t.EMAIL="EMAIL",t.USERNAME="USERNAME",t.NULL="NULL"}(Qt||(Qt={}));var oe=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],ae={"X-SDK-Version":"1.3.5"};function se(t,e,n){var r=t[e];t[e]=function(e){var i={},o={};n.forEach((function(n){var r=n.call(t,e),a=r.data,s=r.headers;Object.assign(i,a),Object.assign(o,s)}));var a=e.data;return a&&function(){var t;if(t=a,"[object FormData]"!==Object.prototype.toString.call(t))e.data=S(S({},a),i);else for(var n in i)a.append(n,i[n])}(),e.headers=S(S({},e.headers||{}),o),r.call(t,e)}}function le(){var t=Math.random().toString(16).slice(2);return{data:{seqId:t},headers:S(S({},ae),{},{"x-seqid":t})}}var ue=function(){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,v.default)(this,t),this.config=n,this._reqClass=new Ft.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=Gt(this.config.env),this._localCache=(e=this.config.env,Wt[e]),se(this._reqClass,"post",[le]),se(this._reqClass,"upload",[le]),se(this._reqClass,"download",[le])}return(0,m.default)(t,[{key:"post",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.post(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"upload",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.upload(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"download",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.download(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),t.prev=1,t.next=4,this._refreshAccessTokenPromise;case 4:e=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),n=t.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){t.next=12;break}throw n;case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,this,[[1,7]])})));return function(){return t.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i,o,s,l,u,c,h,p,f,d;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,n=e.accessTokenKey,r=e.accessTokenExpireKey,i=e.refreshTokenKey,o=e.loginTypeKey,s=e.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),l=this._cache.getStore(i),l){t.next=5;break}throw new xt({message:"未登录CloudBase"});case 5:return u={refresh_token:l},t.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(c=t.sent,!c.data.code){t.next=21;break}if(h=c.data.code,"SIGN_PARAM_INVALID"!==h&&"REFRESH_TOKEN_EXPIRED"!==h&&"INVALID_REFRESH_TOKEN"!==h){t.next=20;break}if(this._cache.getStore(o)!==Qt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==h){t.next=19;break}return p=this._cache.getStore(s),f=this._cache.getStore(i),t.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:p,refresh_token:f});case 17:return d=t.sent,t.abrupt("return",(this.setRefreshToken(d.refresh_token),this._refreshAccessToken()));case 19:Kt(ee),this._cache.removeStore(i);case 20:throw new xt({code:c.data.code,message:"刷新access token失败:".concat(c.data.code)});case 21:if(!c.data.access_token){t.next=23;break}return t.abrupt("return",(Kt(ie),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 t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i,o,s,l;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,n=e.accessTokenKey,r=e.accessTokenExpireKey,i=e.refreshTokenKey,this._cache.getStore(i)){t.next=3;break}throw new xt({message:"refresh token不存在,登录状态异常"});case 3:if(o=this._cache.getStore(n),s=this._cache.getStore(r),l=!0,t.t0=this._shouldRefreshAccessTokenHook,!t.t0){t.next=9;break}return t.next=8,this._shouldRefreshAccessTokenHook(o,s);case 8:t.t0=!t.sent;case 9:if(t.t1=t.t0,!t.t1){t.next=12;break}l=!1;case 12:return t.abrupt("return",(!o||!s||s2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(e),i="";for(var o in n)""===i?!r&&(e+="?"):i+="&",i+="".concat(o,"=").concat(encodeURIComponent(n[o]));return/^http(s)?\:\/\//.test(e+=i)?e:"".concat(t).concat(e)}(Ot,"//tcb-api.tencentcloudapi.com/web",v),y&&(m+=y),t.next=22,this.post(S({url:m,data:u},p));case 22:if(_=t.sent,x=_.header&&_.header["x-tcb-trace"],x&&this._localCache.setStore(i,x),(200===Number(_.status)||200===Number(_.statusCode))&&_.data){t.next=26;break}throw new xt({code:"NETWORK_ERROR",message:"network request error"});case 26:return t.abrupt("return",_);case 27:case"end":return t.stop()}}),t,this)})));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"send",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r,i,o=arguments;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},t.next=3,this.request(e,n,{onUploadProgress:n.onUploadProgress});case 3:if(r=t.sent,"ACCESS_TOKEN_EXPIRED"!==r.data.code||-1!==oe.indexOf(e)){t.next=13;break}return t.next=7,this.refreshAccessToken();case 7:return t.next=9,this.request(e,n,{onUploadProgress:n.onUploadProgress});case 9:if(i=t.sent,!i.data.code){t.next=12;break}throw new xt({code:i.data.code,message:i.data.message});case 12:return t.abrupt("return",i.data);case 13:if(!r.data.code){t.next=15;break}throw new xt({code:r.data.code,message:r.data.message});case 15:return t.abrupt("return",r.data);case 16:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(t){var e=this._cache.keys,n=e.accessTokenKey,r=e.accessTokenExpireKey,i=e.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,t)}}]),t}(),ce={};function he(t){return ce[t]}var pe=function(){function t(e){(0,v.default)(this,t),this.config=e,this._cache=Gt(e.env),this._request=he(e.env)}return(0,m.default)(t,[{key:"setRefreshToken",value:function(t){var e=this._cache.keys,n=e.accessTokenKey,r=e.accessTokenExpireKey,i=e.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,t)}},{key:"setAccessToken",value:function(t,e){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,t),this._cache.setStore(i,e)}},{key:"refreshUserInfo",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getUserInfo",{});case 2:return e=t.sent,n=e.data,t.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t)}}]),t}(),fe=function(){function t(e){if((0,v.default)(this,t),!e)throw new xt({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=Gt(this._envId),this._request=he(this._envId),this.setUserInfo()}return(0,m.default)(t,[{key:"linkWithTicket",value:function(t){if("string"!=typeof t)throw new xt({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:t})}},{key:"linkWithRedirect",value:function(t){t.signInWithRedirect()}},{key:"updatePassword",value:function(t,e){return this._request.send("auth.updatePassword",{oldPassword:e,newPassword:t})}},{key:"updateEmail",value:function(t){return this._request.send("auth.updateEmail",{newEmail:t})}},{key:"updateUsername",value:function(t){if("string"!=typeof t)throw new xt({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:t})}},{key:"getLinkedUidList",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return e=t.sent,n=e.data,r=!1,i=n.users,t.abrupt("return",(i.forEach((function(t){t.wxOpenId&&t.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(t){return this._request.send("auth.setPrimaryUid",{uid:t})}},{key:"unlink",value:function(t){return this._request.send("auth.unlink",{platform:t})}},{key:"update",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r,i,o,s,l,u,c;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.nickName,r=e.gender,i=e.avatarUrl,o=e.province,s=e.country,l=e.city,t.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:o,country:s,city:l});case 8:u=t.sent,c=u.data,this.setLocalUserInfo(c);case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"refresh",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getUserInfo",{});case 2:return e=t.sent,n=e.data,t.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var t=this,e=this._cache.keys.userInfoKey,n=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(e){t[e]=n[e]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t),this.setUserInfo()}}]),t}(),de=function(){function t(e){if((0,v.default)(this,t),!e)throw new xt({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Gt(e);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,o=n.accessTokenExpireKey,a=this._cache.getStore(r),s=this._cache.getStore(i),l=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:l},this.user=new fe(e)}return(0,m.default)(t,[{key:"isAnonymousAuth",get:function(){return this.loginType===Qt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===Qt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===Qt.WECHAT||this.loginType===Qt.WECHAT_OPEN||this.loginType===Qt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),t}(),ge=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i,o,s,l;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._cache.updatePersistence("local"),e=this._cache.keys,n=e.anonymousUuidKey,r=e.refreshTokenKey,i=this._cache.getStore(n)||void 0,o=this._cache.getStore(r)||void 0,t.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:o});case 8:if(s=t.sent,!s.uuid||!s.refresh_token){t.next=20;break}return this._setAnonymousUUID(s.uuid),this.setRefreshToken(s.refresh_token),t.next=14,this._request.refreshAccessToken();case 14:return Kt(te),Kt(ne,{env:this.config.env,loginType:Qt.ANONYMOUS,persistence:"local"}),l=new de(this.config.env),t.next=19,l.user.refresh();case 19:return t.abrupt("return",l);case 20:throw new xt({message:"匿名登录失败"});case 21:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r,i,o,s,l;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,o=this._cache.getStore(r),s=this._cache.getStore(i),t.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:s,ticket:e});case 7:if(l=t.sent,!l.refresh_token){t.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(l.refresh_token),t.next=13,this._request.refreshAccessToken();case 13:return Kt(re,{env:this.config.env}),Kt(ne,{loginType:Qt.CUSTOM,persistence:"local"}),t.abrupt("return",{credential:{refreshToken:l.refresh_token}});case 16:throw new xt({message:"匿名转化失败"});case 17:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(t){var e=this._cache.keys,n=e.anonymousUuidKey,r=e.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,t),this._cache.setStore(r,Qt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(pe),ye=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new xt({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(n)||""});case 5:if(r=t.sent,!r.refresh_token){t.next=15;break}return this.setRefreshToken(r.refresh_token),t.next=10,this._request.refreshAccessToken();case 10:return Kt(te),Kt(ne,{env:this.config.env,loginType:Qt.CUSTOM,persistence:this.config.persistence}),t.next=14,this.refreshUserInfo();case 14:return t.abrupt("return",new de(this.config.env));case 15:throw new xt({message:"自定义登录失败"});case 16:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),n}(pe),ve=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){var r,i,o,s,l;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new xt({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=t.sent,o=i.refresh_token,s=i.access_token,l=i.access_token_expire,!o){t.next=22;break}if(this.setRefreshToken(o),!s||!l){t.next=15;break}this.setAccessToken(s,l),t.next=17;break;case 15:return t.next=17,this._request.refreshAccessToken();case 17:return t.next=19,this.refreshUserInfo();case 19:return Kt(te),Kt(ne,{env:this.config.env,loginType:Qt.EMAIL,persistence:this.config.persistence}),t.abrupt("return",new de(this.config.env));case 22:throw i.code?new xt({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new xt({message:"邮箱登录失败"});case 23:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"activate",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.activateEndUserMail",{token:e}));case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:n}));case 1:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()}]),n}(pe),me=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){var r,i,o,s,l;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new xt({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,t.next=6,this._request.send("auth.signIn",{loginType:Qt.USERNAME,username:e,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=t.sent,o=i.refresh_token,s=i.access_token_expire,l=i.access_token,!o){t.next=23;break}if(this.setRefreshToken(o),!l||!s){t.next=16;break}this.setAccessToken(l,s),t.next=18;break;case 16:return t.next=18,this._request.refreshAccessToken();case 18:return t.next=20,this.refreshUserInfo();case 20:return Kt(te),Kt(ne,{env:this.config.env,loginType:Qt.USERNAME,persistence:this.config.persistence}),t.abrupt("return",new de(this.config.env));case 23:throw i.code?new xt({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new xt({message:"用户名密码登录失败"});case 24:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()}]),n}(pe),_e=function(){function t(e){(0,v.default)(this,t),this.config=e,this._cache=Gt(e.env),this._request=he(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Zt(ne,this._onLoginTypeChanged)}return(0,m.default)(t,[{key:"currentUser",get:function(){var t=this.hasLoginState();return t&&t.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new ge(this.config)}},{key:"customAuthProvider",value:function(){return new ye(this.config)}},{key:"emailAuthProvider",value:function(){return new ve(this.config)}},{key:"usernameAuthProvider",value:function(){return new me(this.config)}},{key:"signInAnonymously",value:function(){var t=(0,h.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new ge(this.config).signIn());case 1:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new ve(this.config).signIn(e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(t,e){return new me(this.config).signIn(t,e)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new ge(this.config)),Zt(re,this._onAnonymousConverted),t.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"signOut",value:function(){var t=(0,h.default)(a.default.mark((function t(){var e,n,r,i,o,s;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.loginType!==Qt.ANONYMOUS){t.next=2;break}throw new xt({message:"匿名用户不支持登出操作"});case 2:if(e=this._cache.keys,n=e.refreshTokenKey,r=e.accessTokenKey,i=e.accessTokenExpireKey,o=this._cache.getStore(n),o){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,this._request.send("auth.logout",{refresh_token:o});case 7:return s=t.sent,t.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),Kt(te),Kt(ne,{env:this.config.env,loginType:Qt.NULL,persistence:this.config.persistence}),s));case 9:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:n}));case 1:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:e}));case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(t){var e=this;Zt(te,(function(){var n=e.hasLoginState();t.call(e,n)}));var n=this.hasLoginState();t.call(this,n)}},{key:"onLoginStateExpired",value:function(t){Zt(ee,t.bind(this))}},{key:"onAccessTokenRefreshed",value:function(t){Zt(ie,t.bind(this))}},{key:"onAnonymousConverted",value:function(t){Zt(re,t.bind(this))}},{key:"onLoginTypeChanged",value:function(t){var e=this;Zt(ne,(function(){var n=e.hasLoginState();t.call(e,n)}))}},{key:"getAccessToken",value:function(){var t=(0,h.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.getAccessToken();case 2:return t.t0=t.sent.accessToken,t.t1=this.config.env,t.abrupt("return",{accessToken:t.t0,env:t.t1});case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var t=this._cache.keys.refreshTokenKey;return this._cache.getStore(t)?new de(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new xt({code:"PARAM_ERROR",message:"username must be a string"});case 2:return t.next=4,this._request.send("auth.isUsernameRegistered",{username:e});case 4:return n=t.sent,r=n.data,t.abrupt("return",r&&r.isRegistered);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var t=(0,h.default)(a.default.mark((function t(e){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new ye(this.config).signIn(e));case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(t){this._request._shouldRefreshAccessTokenHook=t.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(t){return t.code?t:S(S({},t.data),{},{requestId:t.seqId})}))}},{key:"getAuthHeader",value:function(){var t=this._cache.keys,e=t.refreshTokenKey,n=t.accessTokenKey,r=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(t){var e=t.data.env;e===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(t){var e=t.data,n=e.loginType,r=e.persistence,i=e.env;i===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),t}(),xe=function(t,e){e=e||Nt();var n=he(this.config.env),r=t.cloudPath,i=t.filePath,o=t.onUploadProgress,a=t.fileType,s=void 0===a?"image":a;return n.send("storage.getUploadMetadata",{path:r}).then((function(t){var a=t.data,l=a.url,u=a.authorization,c=a.token,h=a.fileId,p=a.cosFileId,f=t.requestId,d={key:r,signature:u,"x-cos-meta-fileid":p,success_action_status:"201","x-cos-security-token":c};n.upload({url:l,data:d,file:i,name:r,fileType:s,onUploadProgress:o}).then((function(t){201===t.statusCode?e(null,{fileID:h,requestId:f}):e(new xt({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(t.data)}))})).catch((function(t){e(t)}))})).catch((function(t){e(t)})),e.promise},be=function(t,e){e=e||Nt();var n=he(this.config.env),r=t.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(t){e(null,t)})).catch((function(t){e(t)})),e.promise},we=function(t,e){var n=t.fileList;if(e=e||Nt(),!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 he(this.config.env).send("storage.batchDeleteFile",a).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.delete_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},Se=function(t,e){var n=t.fileList;e=e||Nt(),n&&Array.isArray(n)||e(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,u.default)(a)?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||e(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?i.push({fileid:a}):e(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(l){o.e(l)}finally{o.f()}var s={file_list:i};return he(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.download_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},ke=function(){var t=(0,h.default)(a.default.mark((function t(e,n){var r,i,o,s;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.fileID,t.next=3,Se.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=t.sent.fileList[0],"SUCCESS"===i.code){t.next=6;break}return t.abrupt("return",n?n(i):new Promise((function(t){t(i)})));case 6:if(o=he(this.config.env),s=i.download_url,s=encodeURI(s),n){t.next=10;break}return t.abrupt("return",o.download({url:s}));case 10:return t.t0=n,t.next=13,o.download({url:s});case 13:t.t1=t.sent,(0,t.t0)(t.t1);case 15:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),Me=function(t,e){var n,r=t.name,i=t.data,o=t.query,a=t.parse,s=t.search,l=e||Nt();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new xt({code:"PARAM_ERROR",message:"函数名不能为空"}));var u={inQuery:o,parse:a,search:s,function_name:r,request_data:n};return he(this.config.env).send("functions.invokeFunction",u).then((function(t){if(t.code)l(null,t);else{var e=t.data.response_data;if(a)l(null,{result:e,requestId:t.requestId});else try{e=JSON.parse(t.data.response_data),l(null,{result:e,requestId:t.requestId})}catch(t){l(new xt({message:"response data must be json"}))}}return l.promise})).catch((function(t){l(t)})),l.promise},Ae={timeout:15e3,persistence:"session"},Te={},Ce=function(){function t(e){(0,v.default)(this,t),this.config=e||this.config,this.authObj=void 0}return(0,m.default)(t,[{key:"init",value:function(e){switch(Ft.adapter||(this.requestClient=new Ft.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:"请求在".concat((e.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=S(S({},Ae),e),!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 t(this.config)}},{key:"auth",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.persistence;if(this.authObj)return this.authObj;var n,r=e||Ft.adapter.primaryStorage||Ae.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(t){var e=t.env;$t[e]=new Ut(t),Wt[e]=new Ut(S(S({},t),{},{persistence:"local"}))}(this.config),n=this.config,ce[n.env]=new ue(n),this.authObj=new _e(this.config),this.authObj}},{key:"on",value:function(t,e){return Zt.apply(this,[t,e])}},{key:"off",value:function(t,e){return Jt.apply(this,[t,e])}},{key:"callFunction",value:function(t,e){return Me.apply(this,[t,e])}},{key:"deleteFile",value:function(t,e){return we.apply(this,[t,e])}},{key:"getTempFileURL",value:function(t,e){return Se.apply(this,[t,e])}},{key:"downloadFile",value:function(t,e){return ke.apply(this,[t,e])}},{key:"uploadFile",value:function(t,e){return xe.apply(this,[t,e])}},{key:"getUploadMetadata",value:function(t,e){return be.apply(this,[t,e])}},{key:"registerExtension",value:function(t){Te[t.name]=t}},{key:"invokeExtension",value:function(){var t=(0,h.default)(a.default.mark((function t(e,n){var r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=Te[e],r){t.next=3;break}throw new xt({message:"扩展".concat(e," 必须先注册")});case 3:return t.next=5,r.invoke(n,this);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"useAdapters",value:function(t){var e=function(t){var e,n,r=(e=t,"[object Array]"===Object.prototype.toString.call(e)?t:[t]),i=x(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.isMatch,s=o.genAdapter,l=o.runtime;if(a())return{adapter:s(),runtime:l}}}catch(u){i.e(u)}finally{i.f()}}(t)||{},n=e.adapter,r=e.runtime;n&&(Ft.adapter=n),r&&(Ft.runtime=r)}}]),t}(),Ie=new Ce;function Oe(t,e,n){void 0===n&&(n={});var r=/\?/.test(e),i="";for(var o in n)""===i?!r&&(e+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(e+=i)?e:""+t+e}var Pe=function(){function t(){(0,v.default)(this,t)}return(0,m.default)(t,[{key:"post",value:function(t){var e=t.url,n=t.data,r=t.headers;return new Promise((function(t,i){bt.request({url:Oe("https:",e),data:n,method:"POST",header:r,success:function(e){t(e)},fail:function(t){i(t)}})}))}},{key:"upload",value:function(t){return new Promise((function(e,n){var r=t.url,i=t.file,o=t.data,a=t.headers,s=t.fileType,l=bt.uploadFile({url:Oe("https:",r),name:"file",formData:Object.assign({},o),filePath:i,fileType:s,header:a,success:function(t){var n={statusCode:t.statusCode,data:t.data||{}};200===t.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),e(n)},fail:function(t){n(new Error(t.errMsg||"uploadFile:fail"))}});"function"==typeof t.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(e){t.onUploadProgress({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}}]),t}(),De={setItem:function(t,e){bt.setStorageSync(t,e)},getItem:function(t){return bt.getStorageSync(t)},removeItem:function(t){bt.removeStorageSync(t)},clear:function(){bt.clearStorageSync()}},Le={genAdapter:function(){return{root:{},reqClass:Pe,localStorage:De,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Ie.useAdapters(Le);var Ee=Ie,Re=Ee.init;Ee.init=function(t){t.env=t.spaceId;var e=Re.call(this,t);e.config.provider="tencent",e.config.spaceId=t.spaceId;var n=e.auth;return e.auth=function(t){var e=n.call(this,t);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(t){var n;e[t]=(n=e[t],function(t){t=t||{};var e=vt(t),r=e.success,i=e.fail,o=e.complete;if(!(r||i||o))return n.call(this,t);n.call(this,t).then((function(t){r&&r(t),o&&o(t)}),(function(t){i&&i(t),o&&o(t)}))}).bind(e)})),e},e.customAuth=e.auth,e};var Ne=Ee,Be=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"getAccessToken",value:function(){var t=this;return new Promise((function(e,n){var r="Anonymous_Access_token";t.setAccessToken(r),e(r)}))}},{key:"setupRequest",value:function(t,e){var n=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};"auth"!==e&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Tt.sign(n,this.config.clientSecret);var i=Mt();r["x-client-info"]=encodeURIComponent(JSON.stringify(i));var o=wt(),a=o.token;return r["x-client-token"]=a,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"uploadFileToOSS",value:function(t){var e=this,n=t.url,r=t.formData,i=t.name,o=t.filePath,a=t.fileType,s=t.onUploadProgress;return new Promise((function(t,l){var u=e.adapter.uploadFile({url:n,formData:r,name:i,filePath:o,fileType:a,success:function(e){e&&e.statusCode<400?t(e):l(new xt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){l(new xt({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(t){var e,n=this,r=t.filePath,i=t.cloudPath,o=t.fileType,a=void 0===o?"image":o,s=t.onUploadProgress;if(!i)throw new xt({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:i}).then((function(t){var i=t.result,o=i.url,l=i.formData,u=i.name;e=t.result.fileUrl;var c={url:o,formData:l,name:u,filePath:r,fileType:a};return n.uploadFileToOSS(Object.assign({},c,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:i})})).then((function(t){return new Promise((function(n,i){t.success?n({success:!0,filePath:r,fileID:e}):i(new xt({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(t){var e=t.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(n)).then((function(t){if(t.success)return t.result;throw new xt({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fileList,n=t.maxAge;if(!Array.isArray(e)||0===e.length)throw new xt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:n})};return this.request(this.setupRequest(r)).then((function(t){if(t.success)return{fileList:t.result.fileList.map((function(t){return{fileID:t.fileID,tempFileURL:t.tempFileURL}}))};throw new xt({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),n}(Ct),je={init:function(t){var e=new Be(t),n={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return n},e.customAuth=e.auth,e}},Fe=M((function(t,e){t.exports=T.enc.Hex}));function ze(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.data,r=e.functionName,i=e.method,o=e.headers,a=e.signHeaderKeys,s=void 0===a?[]:a,u=e.config,c=Date.now(),h="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})),p=Object.assign({},o,{"x-from-app-id":u.spaceAppId,"x-from-env-id":u.spaceId,"x-to-env-id":u.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),d=t.split("?")||[],g=(0,l.default)(d,2),y=g[0],v=void 0===y?"":y,m=g[1],_=void 0===m?"":m,x=function(t){var e=t.signedHeaders.join(";"),n=t.signedHeaders.map((function(e){return"".concat(e.toLowerCase(),":").concat(t.headers[e],"\n")})).join(""),r=Et(t.body).toString(Fe),i="".concat(t.method.toUpperCase(),"\n").concat(t.path,"\n").concat(t.query,"\n").concat(n,"\n").concat(e,"\n").concat(r,"\n"),o=Et(i).toString(Fe),a="HMAC-SHA256\n".concat(t.timestamp,"\n").concat(o,"\n"),s=Rt(a,t.secretKey).toString(Fe);return"HMAC-SHA256 Credential=".concat(t.secretId,", SignedHeaders=").concat(e,", Signature=").concat(s)}({path:v,query:_,method:i,headers:p,timestamp:c,body:JSON.stringify(n),secretId:u.accessKey,secretKey:u.secretKey,signedHeaders:f.sort()});return{url:"".concat(u.endpoint).concat(t),headers:Object.assign({},p,{Authorization:x})}}function He(t){var e=t.url,n=t.data,r=t.method,i=void 0===r?"POST":r,o=t.headers,a=void 0===o?{}:o;return new Promise((function(t,r){bt.request({url:e,method:i,data:n,header:a,dataType:"json",complete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){var i=e.data||{},o=i.message,s=i.errMsg,l=i.trace_id;return r(new xt({code:"SYS_ERR",message:o||s||"request:fail",requestId:l||n}))}t({status:e.statusCode,data:e.data,headers:e.header,requestId:n})}})}))}function Ve(t,e){var n=t.path,r=t.data,i=t.method,o=void 0===i?"GET":i,a=ze(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:e}),s=a.url,l=a.headers;return He({url:s,data:r,method:o,headers:l}).then((function(t){var e=t.data||{};if(!e.success)throw new xt({code:t.errCode,message:t.errMsg,requestId:t.requestId});return e.data||{}})).catch((function(t){throw new xt({code:t.errCode,message:t.errMsg,requestId:t.requestId})}))}function Ue(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.trim().replace(/^cloud:\/\//,""),n=e.indexOf("/");if(n<=0)throw new xt({code:"INVALID_PARAM",message:"fileID不合法"});var r=e.substring(0,n),i=e.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(t," does not belong to env ").concat(this.config.spaceId)),i}function $e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(t.replace(/^\/+/,""))}var We=function(){function t(e){if((0,v.default)(this,t),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error("".concat(t," required"))})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||"https://".concat(e.spaceId,".api-hz.cloudbasefunction.cn")})}return(0,m.default)(t,[{key:"callFunction",value:function(t){return function(t,e){var n=t.name,r=t.data,i="POST",o=ze("/functions/invokeFunction",{functionName:n,data:r,method:i,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:e}),a=o.url,s=o.headers;return He({url:a,data:r,method:i,headers:s}).then((function(t){return{errCode:0,success:!0,requestId:t.requestId,result:t.data}})).catch((function(t){throw new xt({code:t.errCode,message:t.errMsg,requestId:t.requestId})}))}(t,this.config)}},{key:"uploadFileToOSS",value:function(t){var e=t.url,n=t.filePath,r=t.fileType,i=t.formData,o=t.onUploadProgress;return new Promise((function(t,a){var s=bt.uploadFile({url:e,filePath:n,fileType:r,formData:i,name:"file",success:function(e){e&&e.statusCode<400?t(e):a(new xt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){a(new xt({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof o&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(t){o({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r,i,o,s,l,u,c,h,p,f;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.filePath,r=e.cloudPath,i=void 0===r?"":r,o=e.fileType,s=void 0===o?"image":o,l=e.onUploadProgress,"string"===N(i)){t.next=3;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){t.next=5;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){t.next=7;break}throw new xt({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return t.next=9,Ve({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return u=t.sent,c=u.file_id,h=u.upload_url,p=u.form_data,f=p&&p.reduce((function(t,e){return t[e.key]=e.value,t}),{}),t.abrupt("return",this.uploadFileToOSS({url:h,filePath:n,fileType:s,formData:f,onUploadProgress:l}).then((function(){return{fileID:c}})));case 15:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var t=(0,h.default)(a.default.mark((function t(e){var n,r=this;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.fileList,t.abrupt("return",new Promise((function(t,e){(!n||n.length<0)&&e(new xt({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),n.length>50&&e(new xt({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"!==N(s)&&e(new xt({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));var l=Ue.call(r,s);o.push({file_id:l,expire:600})}}catch(u){a.e(u)}finally{a.f()}Ve({path:"/?download_url",data:{file_list:o},method:"POST"},r.config).then((function(e){var n=e.file_list,i=void 0===n?[]:n;t({fileList:i.map((function(t){return{fileID:$e.call(r,t.file_id),tempFileURL:t.download_url}}))})})).catch((function(t){return e(t)}))})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}]),t}(),Ge={init:function(t){t.provider="alipay";var e=new We(t);return e.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},e}};function qe(t){var e,n=t.data;e=Mt();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:e}),!r.uniIdToken){var i=wt(),o=i.token;o&&(r.uniIdToken=o)}return r}var Ye=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Xe=/[\\^$.*+?()[\]{}|]/g,Ze=RegExp(Xe.source);function Ke(t,e,n){return t.replace(new RegExp((r=e)&&Ze.test(r)?r.replace(Xe,"\\$&"):r,"g"),n);var r}var Je="request",Qe="response";var tn;tn="0123456789abcdef";var en={code:2e4,message:"System error"},nn={code:20101,message:"Invalid client"};function rn(t){var e=t||{},n=e.errSubject,r=e.subject,i=e.errCode,o=e.errMsg,a=e.code,s=e.message,l=e.cause;return new xt({subject:n||r||"uni-secure-network",code:i||a||en.code,message:o||s,cause:l})}var on;function an(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.secretType;return e===Je||e===Qe||"both"===e}function sn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,n=t.data,r=void 0===n?{}:n;return"app"===G&&"DCloud-clientDB"===e&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function ln(t){t.functionName,t.result,t.logPvd}function un(t){var e=t.callFunction,n=function(n){var r=this,i=n.name;n.data=qe.call(t,{data:n.data});var o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],a=an(n),s=sn(n),l=a||s;return e.call(this,n).then((function(t){return t.errCode=0,!l&&ln.call(r,{functionName:i,result:t,logPvd:o}),Promise.resolve(t)}),(function(t){return!l&&ln.call(r,{functionName:i,result:t,logPvd:o}),t&&t.message&&(t.message=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,n=void 0===e?"":e,r=t.extraInfo,i=void 0===r?{}:r,o=t.formatter,a=void 0===o?[]:o,s=0;s0&&void 0!==arguments[0]?arguments[0]:{},e=t.provider,n=t.spaceId,r=t.functionName,i=kt(),o=i.appId,a=i.uniPlatform,s=i.osName,l=a;"app"===a&&(l=s);var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.provider,n=t.spaceId,r=W;if(!r)return{};e=function(t){return"tencent"===t?"tcb":t}(e);var i=r.find((function(t){return t.provider===e&&t.spaceId===n}));return i&&i.config}({provider:e,spaceId:n});if(!u||!u.accessControl||!u.accessControl.enable)return!1;var c=u.accessControl.function||{},h=Object.keys(c);if(0===h.length)return!0;var p=function(t,e){for(var n,r,i,o=0;o-1&&(r=a):i=a:n=a}return n||r||i}(h,r);if(!p)return!1;if((c[p]||[]).find((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.appId===o&&(t.platform||"").toLowerCase()===l.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(o,", platform: ").concat(l,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),rn(nn)}({provider:a,spaceId:s,functionName:l})?new on({secretType:e.secretType,uniCloudIns:t}).wrapVerifyClientCallFunction(n.bind(t))(e):r(e),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i}}on="mp-weixin"!==G&&"app"!==G?function(){return(0,m.default)((function t(){throw(0,v.default)(this,t),rn({message:"Platform ".concat(G," is not supported by secure network")})}))}():function(){return(0,m.default)((function t(){throw(0,v.default)(this,t),rn({message:"Platform ".concat(G," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var cn=Symbol("CLIENT_DB_INTERNAL");function hn(t,e){return t.then="DoNotReturnProxyWithAFunctionNamedThen",t._internalType=cn,t.inspect=null,t.__ob__=void 0,new Proxy(t,{get:function(t,n,r){if("_uniClient"===n)return null;if("symbol"==(0,u.default)(n))return t[n];if(n in t||"string"!=typeof n){var i=t[n];return"function"==typeof i?i.bind(t):i}return e.get(t,n,r)}})}function pn(t){return{on:function(e,n){t[e]=t[e]||[],t[e].indexOf(n)>-1||t[e].push(n)},off:function(e,n){t[e]=t[e]||[];var r=t[e].indexOf(n);-1!==r&&t[e].splice(r,1)}}}var fn=["db.Geo","db.command","command.aggregate"];function dn(t,e){return fn.indexOf("".concat(t,".").concat(e))>-1}function gn(t){switch(N(t)){case"array":return t.map((function(t){return gn(t)}));case"object":return t._internalType===cn||Object.keys(t).forEach((function(e){t[e]=gn(t[e])})),t;case"regexp":return{$regexp:{source:t.source,flags:t.flags}};case"date":return{$date:t.toISOString()};default:return t}}function yn(t){return t&&t.content&&t.content.$method}var vn=function(){function t(e,n,r){(0,v.default)(this,t),this.content=e,this.prevStage=n||null,this.udb=null,this._database=r}return(0,m.default)(t,[{key:"toJSON",value:function(){for(var t=this,e=[t.content];t.prevStage;)t=t.prevStage,e.push(t.content);return{$db:e.reverse().map((function(t){return{$method:t.$method,$param:gn(t.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var t=this.toJSON().$db.find((function(t){return"action"===t.$method}));return t&&t.$param&&t.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(t){return"action"!==t.$method}))}}},{key:"isAggregate",get:function(){for(var t=this;t;){var e=yn(t),n=yn(t.prevStage);if("aggregate"===e&&"collection"===n||"pipeline"===e)return!0;t=t.prevStage}return!1}},{key:"isCommand",get:function(){for(var t=this;t;){if("command"===yn(t))return!0;t=t.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var t=this;t;){var e=yn(t),n=yn(t.prevStage);if("aggregate"===e&&"command"===n)return!0;t=t.prevStage}return!1}},{key:"getNextStageFn",value:function(t){var e=this;return function(){return mn({$method:t,$param:gn(Array.from(arguments))},e,e._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(t,e){var n=this.getAction(),r=this.getCommand();return r.$db.push({$method:t,$param:gn(e)}),this._database._callCloudFunction({action:n,command:r})}}]),t}();function mn(t,e,n){return hn(new vn(t,e,n),{get:function(t,e){var r="db";return t&&t.content&&(r=t.content.$method),dn(r,e)?mn({$method:e},t,n):function(){return mn({$method:e,$param:gn(Array.from(arguments))},t,n)}}})}function _n(t){var e=t.path,n=t.method;return function(){function t(){(0,v.default)(this,t),this.param=Array.from(arguments)}return(0,m.default)(t,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,c.default)(e.map((function(t){return{$method:t}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),t}()}function xn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return hn(new t(e),{get:function(t,e){return dn("db",e)?mn({$method:e},null,t):function(){return mn({$method:e,$param:gn(Array.from(arguments))},null,t)}}})}var bn=function(t){(0,f.default)(n,t);var e=k(n);function n(){return(0,v.default)(this,n),e.apply(this,arguments)}return(0,m.default)(n,[{key:"_parseResult",value:function(t){return this._isJQL?t.result:t}},{key:"_callCloudFunction",value:function(t){var e=this,n=t.action,r=t.command,i=t.multiCommand,o=t.queryList;function a(t,e){if(i&&o)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=e.uniClient,r=void 0===n?{}:n,i=e.isJQL,o=void 0!==i&&i;(0,v.default)(this,t),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=X("_globalUniCloudDatabaseCallback")),o||(this.auth=pn(this._authCallBacks)),this._isJQL=o,Object.assign(this,pn(this._dbCallBacks)),this.env=hn({},{get:function(t,e){return{$env:e}}}),this.Geo=hn({},{get:function(t,e){return _n({path:["Geo"],method:e})}}),this.serverDate=_n({path:[],method:"serverDate"}),this.RegExp=_n({path:[],method:"RegExp"})}return(0,m.default)(t,[{key:"getCloudEnv",value:function(t){if("string"!=typeof t||!t.trim())throw new Error("getCloudEnv参数错误");return{$env:t.replace("$cloudEnv_","")}}},{key:"_callback",value:function(t,e){var n=this._dbCallBacks;n[t]&&n[t].forEach((function(t){t.apply(void 0,(0,c.default)(e))}))}},{key:"_callbackAuth",value:function(t,e){var n=this._authCallBacks;n[t]&&n[t].forEach((function(t){t.apply(void 0,(0,c.default)(e))}))}},{key:"multiSend",value:function(){var t=Array.from(arguments),e=t.map((function(t){var e=t.getAction(),n=t.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:e,command:n}}));return this._callCloudFunction({multiCommand:e,queryList:t})}}]),t}()),wn="token无效,跳转登录页面",Sn="token过期,跳转登录页面",kn={TOKEN_INVALID_TOKEN_EXPIRED:Sn,TOKEN_INVALID_INVALID_CLIENTID:wn,TOKEN_INVALID:wn,TOKEN_INVALID_WRONG_TOKEN:wn,TOKEN_INVALID_ANONYMOUS_USER:wn},Mn={"uni-id-token-expired":Sn,"uni-id-check-token-failed":wn,"uni-id-token-not-exist":wn,"uni-id-check-device-feature-failed":wn};function An(t,e){var n="";return n=t?"".concat(t,"/").concat(e):e,n.replace(/^\//,"")}function Tn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return t.forEach((function(t){!0===t.needLogin?n.push(An(e,t.path)):!1===t.needLogin&&r.push(An(e,t.path))})),{needLoginPage:n,notNeedLoginPage:r}}function Cn(t){return t.split("?")[0].replace(/^\//,"")}function In(){return function(t){var e=t&&t.$page&&t.$page.fullPath||"";return e?("/"!==e.charAt(0)&&(e="/"+e),e):e}(function(){var t=getCurrentPages();return t[t.length-1]}())}function On(){return Cn(In())}function Pn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return!1;if(!(e&&e.list&&e.list.length))return!1;var n=e.list,r=Cn(t);return n.some((function(t){return t.pagePath===r}))}var Dn,Ln=!!_.default.uniIdRouter,En=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_.default,e=t.pages,n=void 0===e?[]:e,r=t.subPackages,i=void 0===r?[]:r,o=t.uniIdRouter,a=void 0===o?{}:o,s=t.tabBar,l=void 0===s?{}:s,u=a.loginPage,h=a.needLogin,p=void 0===h?[]:h,f=a.resToLogin,d=void 0===f||f,g=Tn(n),y=g.needLoginPage,v=g.notNeedLoginPage,m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],n=[];return t.forEach((function(t){var r=t.root,i=t.pages,o=void 0===i?[]:i,a=Tn(o,r),s=a.needLoginPage,l=a.notNeedLoginPage;e.push.apply(e,(0,c.default)(s)),n.push.apply(n,(0,c.default)(l))})),{needLoginPage:e,notNeedLoginPage:n}}(i),x=m.needLoginPage,b=m.notNeedLoginPage;return{loginPage:u,routerNeedLogin:p,resToLogin:d,needLoginPage:[].concat((0,c.default)(y),(0,c.default)(x)),notNeedLoginPage:[].concat((0,c.default)(v),(0,c.default)(b)),loginPageInTabBar:Pn(u,l)}}(),Rn=En.loginPage,Nn=En.routerNeedLogin,Bn=En.resToLogin,jn=En.needLoginPage,Fn=En.notNeedLoginPage,zn=En.loginPageInTabBar;if(jn.indexOf(Rn)>-1)throw new Error("Login page [".concat(Rn,'] should not be "needLogin", please check your pages.json'));function Hn(t){var e=On();if("/"===t.charAt(0))return t;var n=t.split("?"),r=(0,l.default)(n,2),i=r[0],o=r[1],a=i.replace(/^\//,"").split("/"),s=e.split("/");s.pop();for(var u=0;u-1)&&(jn.indexOf(e)>-1||Nn.some((function(e){return function(t,e){return new RegExp(e).test(t)}(t,e)})))}function Un(t){var e=t.redirect,n=Cn(e),r=Cn(Rn);return On()!==r&&n!==r}function $n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.api,n=t.redirect;if(n&&Un({redirect:n})){var i=function(t,e){return"/"!==t.charAt(0)&&(t="/"+t),e?t.indexOf("?")>-1?t+"&uniIdRedirectUrl=".concat(encodeURIComponent(e)):t+"?uniIdRedirectUrl=".concat(encodeURIComponent(e)):t}(Rn,n);zn?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");var o={navigateTo:r.navigateTo,redirectTo:r.redirectTo,switchTab:r.switchTab,reLaunch:r.reLaunch};setTimeout((function(){o[e]({url:i})}))}}function Wn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var t,e=wt(),n=e.token,r=e.tokenExpired;if(n){if(r0)return setTimeout((function(){ft(ot,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function Gn(){!function(){var t=In(),e=Wn({url:t}),n=e.abortLoginPageJump,r=e.autoToLoginPage;n||r&&$n({api:"redirectTo",redirect:t})}();for(var t=["navigateTo","redirectTo","reLaunch","switchTab"],e=function(e){var n=t[e];r.addInterceptor(n,{invoke:function(t){var e=Wn({url:t.url}),r=e.abortLoginPageJump,i=e.autoToLoginPage;return r?t:i?($n({api:n,redirect:Hn(t.url)}),!1):t}})},n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=ct(ot);yt().then((function(){var n=In();if(n&&Un({redirect:n}))return e.length>0?ft(ot,Object.assign({uniIdRedirectUrl:n},t)):void(Rn&&$n({api:"navigateTo",redirect:n}))}))}(n)}))}function Yn(t){!function(t){t.onResponse=function(t){ht(it,t)},t.offResponse=function(t){pt(it,t)}}(t),function(t){t.onNeedLogin=function(t){ht(ot,t)},t.offNeedLogin=function(t){pt(ot,t)},Ln&&(X("_globalUniCloudStatus").needLoginInit||(X("_globalUniCloudStatus").needLoginInit=!0,yt().then((function(){Gn.call(t)})),Bn&&qn.call(t)))}(t),function(t){t.onRefreshToken=function(t){ht(at,t)},t.offRefreshToken=function(t){pt(at,t)}}(t)}var Xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Zn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Kn(){var t,e,n=wt().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse((e=r[1],decodeURIComponent(Dn(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}Dn="function"!=typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!Zn.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var Jn=M((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function a(t,e){return t.tempFiles.forEach((function(t,n){t.name||(t.name=t.path.substring(t.path.lastIndexOf("/")+1)),e&&(t.fileType=e),t.cloudPath=Date.now()+"_"+n+t.name.substring(t.name.lastIndexOf("."))})),t.tempFilePaths||(t.tempFilePaths=t.tempFiles.map((function(t){return t.path}))),t}function s(t,e,r){var i=r.onChooseFile,o=r.onUploadProgress;return e.then((function(t){if(i){var e=i(t);if(void 0!==e)return Promise.resolve(e).then((function(e){return void 0===e?t:e}))}return t})).then((function(e){return!1===e?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(e=Object.assign({},e)).errMsg=n;var o=e.tempFiles,a=o.length,s=0;return new Promise((function(n){for(;s=a)!o.find((function(t){return!t.url&&!t.errMsg}))&&n(e);else{var u=o[r];t.uploadFile({filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,cloudPathAsRealPath:u.cloudPathAsRealPath,onUploadProgress:function(t){t.index=r,t.tempFile=u,t.tempFilePath=u.path,i&&i(t)}}).then((function(t){u.url=t.fileID,r0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===e.type?s(t,function(t){var e=t.count,n=t.sizeType,i=t.sourceType,s=void 0===i?["album","camera"]:i,l=t.extension;return new Promise((function(t,i){r.chooseImage({count:e,sizeType:n,sourceType:s,extension:l,success:function(e){t(a(e,"image"))},fail:function(t){i({errMsg:t.errMsg.replace("chooseImage:fail",o)})}})}))}(e),e):"video"===e.type?s(t,function(t){var e=t.camera,n=t.compressed,i=t.maxDuration,s=t.sourceType,l=void 0===s?["album","camera"]:s,u=t.extension;return new Promise((function(t,s){r.chooseVideo({camera:e,compressed:n,maxDuration:i,sourceType:l,extension:u,success:function(e){var n=e.tempFilePath,r=e.duration,i=e.size,o=e.height,s=e.width;t(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:e.tempFile&&e.tempFile.name||"",path:n,size:i,type:e.tempFile&&e.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(t){s({errMsg:t.errMsg.replace("chooseVideo:fail",o)})}})}))}(e),e):s(t,function(t){var e=t.count,n=t.extension;return new Promise((function(t,s){var l=r.chooseFile;if("undefined"!=typeof i&&"function"==typeof i.chooseMessageFile&&(l=i.chooseMessageFile),"function"!=typeof l)return s({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});l({type:"all",count:e,extension:n,success:function(e){t(a(e))},fail:function(t){s({errMsg:t.errMsg.replace("chooseFile:fail",o)})}})}))}(e),e)}}})),Qn=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Jn);function tr(t){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:{}}},created:function(){var t=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){e.push(t[n])})),e}),(function(e,n){if("manual"!==t.loadtime){for(var r=!1,i=[],o=2;o0&&void 0!==arguments[0]?arguments[0]:{},n=e.getone,r=void 0!==n&&n,i=e.success,o=e.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(e){t.mixinDatacomLoading=!1;var n=e.result,o=n.data,a=n.count;t.getcount&&(t.mixinDatacomPage.count=a),t.mixinDatacomHasMore=o.length0&&void 0!==arguments[0]?arguments[0]:{},r=t.database(this.spaceInfo),i=n.action||this.action;i&&(r=r.action(i));var o=n.collection||this.collection;r=Array.isArray(o)?(e=r).collection.apply(e,(0,c.default)(o)):r.collection(o);var a=n.where||this.where;a&&Object.keys(a).length&&(r=r.where(a));var s=n.field||this.field;s&&(r=r.field(s));var l=n.foreignKey||this.foreignKey;l&&(r=r.foreignKey(l));var u=n.groupby||this.groupby;u&&(r=r.groupBy(u));var h=n.groupField||this.groupField;h&&(r=r.groupField(h)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(r=r.distinct());var p=n.orderby||this.orderby;p&&(r=r.orderBy(p));var f=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,d=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,g=void 0!==n.getcount?n.getcount:this.getcount,y=void 0!==n.gettree?n.gettree:this.gettree,v=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,m={getCount:g},_={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return y&&(m.getTree=_),v&&(m.getTreePath=_),r=r.skip(d*(f-1)).limit(d).get(m),r}}}}function er(t){return X("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",t.config.spaceId))}function nr(){return rr.apply(this,arguments)}function rr(){return rr=(0,h.default)(a.default.mark((function t(){var e,n,i,o,s,l,u,c=arguments;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},n=e.openid,i=e.callLoginByWeixin,o=void 0!==i&&i,s=er(this),"mp-weixin"===G){t.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(G,"`"));case 4:if(!n||!o){t.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){t.next=8;break}return t.abrupt("return",(s.mpWeixinOpenid=n,{}));case 8:return t.next=10,new Promise((function(t,e){r.login({success:function(e){t(e.code)},fail:function(t){e(new Error(t.errMsg))}})}));case 10:return l=t.sent,u=this.importObject("uni-id-co",{customUI:!0}),t.next=14,u.secureNetworkHandshakeByWeixin({code:l,callLoginByWeixin:o});case 14:return s.mpWeixinCode=l,t.abrupt("return",{code:l});case 16:case"end":return t.stop()}}),t,this)}))),rr.apply(this,arguments)}function ir(t){return or.apply(this,arguments)}function or(){return or=(0,h.default)(a.default.mark((function t(e){var n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=er(this),t.abrupt("return",(n.initPromise||(n.initPromise=nr.call(this,e)),n.initPromise));case 2:case"end":return t.stop()}}),t,this)}))),or.apply(this,arguments)}function ar(t){var e={getSystemInfo:r.getSystemInfo,getPushClientId:r.getPushClientId};return function(n){return new Promise((function(r,i){e[t](S(S({},n),{},{success:function(t){r(t)},fail:function(t){i(t)}}))}))}}var sr=function(t){(0,f.default)(n,t);var e=k(n);function n(){var t;return(0,v.default)(this,n),t=e.call(this),t._uniPushMessageCallback=t._receivePushMessage.bind((0,s.default)(t)),t._currentMessageId=-1,t._payloadQueue=[],t}return(0,m.default)(n,[{key:"init",value:function(){var t=this;return Promise.all([ar("getSystemInfo")(),ar("getPushClientId")()]).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,l.default)(e,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");t._appId=i,t._pushClientId=a,t._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),t.emit("open"),t._initMessageListener()}),(function(e){throw t.emit("error",e),t.close(),e}))}},{key:"open",value:function(){var t=(0,h.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this.init());case 1:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(t){if("receive"!==t.type)return!1;var e=t&&t.data&&t.data.payload;return!(!e||"UNI_CLOUD_SSE"!==e.channel||e.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(t){if(this._isUniCloudSSE(t)){var e=t&&t.data&&t.data.payload,n=e.action,r=e.messageId,i=e.message;this._payloadQueue.push({action:n,messageId:r,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var t=this;;){var e=this._payloadQueue.find((function(e){return e.messageId===t._currentMessageId+1}));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}},{key:"_parseMessagePayload",value:function(t){var e=t.action,n=t.messageId,r=t.message;"end"===e?this._end({messageId:n,message:r}):"message"===e&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(t.messageId,t.message);this.emit("message",e)}},{key:"_end",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(t.messageId,t.message);this.emit("end",e),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 t(){(0,v.default)(this,t),this._callback={}}return(0,m.default)(t,[{key:"addListener",value:function(t,e){this._callback[t]||(this._callback[t]=[]),this._callback[t].push(e)}},{key:"on",value:function(t,e){return this.addListener(t,e)}},{key:"removeListener",value:function(t,e){if(!e)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[t];if(n){var r=function(t,e){for(var n=t.length-1;n>=0;n--)if(t[n]===e)return n;return-1}(n,e);n.splice(r,1)}}},{key:"off",value:function(t,e){return this.removeListener(t,e)}},{key:"removeAllListener",value:function(t){delete this._callback[t]}},{key:"emit",value:function(t){for(var e=this._callback[t],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0)return t.init(e).database();if(this._database)return this._database;var n=xn(bn,{uniClient:t});return this._database=n,n},t.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return t.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=xn(bn,{uniClient:t,isJQL:!0});return this._databaseForJQL=n,n}}(e),function(t){t.getCurrentUserInfo=Kn,t.chooseAndUploadFile=Qn.initChooseAndUploadFile(t),Object.assign(t,{get mixinDatacom(){return tr(t)}}),t.SSEChannel=sr,t.initSecureNetworkByWeixin=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.openid,r=e.callLoginByWeixin,i=void 0!==r&&r;return ir.call(t,{openid:n,callLoginByWeixin:i})}}(t),t.importObject=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.customUI=e.customUI||t.customUI,t.parseSystemError=e.parseSystemError||t.parseSystemError,Object.assign(t.loadingOptions,e.loadingOptions),Object.assign(t.errorOptions,e.errorOptions),"object"==(0,u.default)(e.secretMethods)&&(t.secretMethods=e.secretMethods),t}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var i=n,o=i.customUI,s=i.loadingOptions,l=i.errorOptions,c=i.parseSystemError,p=!o;return new Proxy({},{get:function(i,o){switch(o){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fn,n=t.interceptorName,r=t.getCallbackArgs;return(0,h.default)(a.default.mark((function t(){var i,o,s,l,u,c,h=arguments;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(i=h.length,o=new Array(i),s=0;s0&&void 0!==u[0]?u[0]:{},n=e.title,i=e.content,o=e.showCancel,s=e.cancelText,l=e.confirmText,t.abrupt("return",new Promise((function(t,e){r.showModal({title:n,content:i,showCancel:o,cancelText:s,confirmText:l,success:function(e){t(e)},fail:function(){t({confirm:!1,cancel:!0})}})})));case 2:case"end":return t.stop()}}),t)})))({title:"提示",content:A,showCancel:l.retry,cancelText:"取消",confirmText:l.retry?"重试":"确定"});case 33:if(T=i.sent,C=T.confirm,!l.retry||!C){i.next=37;break}return i.abrupt("return",f.apply(void 0,y));case 37:throw I=new xt({subject:b,code:w,message:k,requestId:d.requestId}),I.detail=d.result,ft(it,{type:ut,content:I}),I;case 39:return i.abrupt("return",(ft(it,{type:ut,content:d.result}),d.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 t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.params;return{objectName:e,methodName:o,params:n}}})}})}}(t)}(e),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(t){if(e[t]){var n=e[t];e[t]=function(){return n.apply(e,Array.from(arguments))},e[t]=function(t,e){return function(n){var r=this,i=!1;if("callFunction"===e){var o=n&&n.type||P;i=o!==P}var a="callFunction"===e&&!i,s=this._initPromiseHub.exec();n=n||{};var l=vt(n),u=l.success,c=l.fail,h=l.complete,p=s.then((function(){return i?Promise.resolve():tt(et(e,"invoke"),n)})).then((function(){return t.call(r,n)})).then((function(t){return i?Promise.resolve(t):tt(et(e,"success"),t).then((function(){return tt(et(e,"complete"),t)})).then((function(){return a&&ft(it,{type:lt,content:t}),Promise.resolve(t)}))}),(function(t){return i?Promise.reject(t):tt(et(e,"fail"),t).then((function(){return tt(et(e,"complete"),t)})).then((function(){return ft(it,{type:lt,content:t}),Promise.reject(t)}))}));if(!(u||c||h))return p;p.then((function(t){u&&u(t),h&&h(t),a&&ft(it,{type:lt,content:t})}),(function(t){c&&c(t),h&&h(t),a&&ft(it,{type:lt,content:t})}))}}(e[t],t).bind(e)}})),e.init=this.init,e}}]),t}());(function(){var t=q,e={};if(t&&1===t.length)e=t[0],ur=ur.init(e),ur._isDefault=!0;else{var n;n=t&&t.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(t){ur[t]=function(){return console.error(n),Promise.reject(new xt({code:"SYS_ERR",message:n}))}}))}Object.assign(ur,{get mixinDatacom(){return tr(ur)}}),Yn(ur),ur.addInterceptor=J,ur.removeInterceptor=Q,ur.interceptObject=nt})();var cr=ur;e.default=cr}).call(this,n("c8ba"),n("543d")["default"],n("bc2e")["default"])},ac88:function(t,e,n){(function(t,r){var i,o,a,s=n("7037");!function(t,n){"object"==s(e)&&"object"==s(r)?r.exports=n():(o=[],i=n,a="function"===typeof i?i.apply(e,o):i,void 0===a||(r.exports=a))}(self,(function(){return e={779:function(t,e,n){var r=n(173);t.exports=function t(e,n,i){return r(n)||(i=n||i,n=[]),i=i||{},e instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r0?e.vueEachArray[n](t,r,(function(){i&&i()})):e.myEachHook(t,r,(function(o){!1===o?i(!1):e.vueEachArray[n](t,r,(function(t){i(o)}))}),e.router,!0)}},e}(Array);e.MyArray=i,e.proxyEachHook=function(t,e){for(var n=["beforeHooks","afterHooks"],r=0;r0)return!1;window.location.reload()}),0)}else t.mount[0].app.$mount(),t.mount=[]}},814:function(e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)return b}if(""!==s)return d(e);throw new Error(n+" 路径无法在路由表中找到!检查跳转路径及路由表")},e.getDataType=g,e.copyData=function(t){return JSON.parse(JSON.stringify(t))},e.getUniCachePage=function(t){var e=getCurrentPages();if(null==t)return e;if(0===e.length)return e;var n=e.reverse()[t];return null==n?[]:n},e.urlToJson=function(t){var e={},n=t.split("?"),r=n[0],i=n[1];if(null!=i)for(var o=0,a=i.split("&");o3},e.baseClone=y,e.deepClone=v,e.lockDetectWarn=function(t,e,n,r,i,o){if(void 0===i&&(i={}),"afterHooks"===o)r();else{var a=t.options.detectBeforeLock;a&&a(t,e,n),t.$lockStatus?t.options.routerErrorEach({type:2,msg:"当前页面正在处于跳转状态,请稍后再进行跳转....",NAVTYPE:n,uniActualData:i},t):r()}},e.assertParentChild=function(t,e){for(;null!=e.$parent;){var n=e.$parent.$mp;if(n.page&&n.page.is===t)return!0;e=e.$parent}try{if(e.$mp.page.is===t||e.$mp.page.route===t)return!0}catch(t){return!1}return!1},e.resolveAbsolutePath=function(t,e){var n=/^\/?([^\?\s]+)(\?.+)?$/,r=t.trim();if(!n.test(r))throw new Error("【"+t+"】 路径错误,请提供完整的路径(10001)。");var i=r.match(n);if(null==i)throw new Error("【"+t+"】 路径错误,请提供完整的路径(10002)。");var o=i[2]||"";if(/^\.\/[^\.]+/.test(r))return(e.currentRoute.path+t).replace(/[^\/]+\.\//,"");var a=i[1].replace(/\//g,"\\/").replace(/\.\./g,"[^\\/]+").replace(/\./g,"\\."),s=new RegExp("^\\/"+a+"$"),l=e.options.routes.filter((function(t){return s.test(t.path)}));if(1!==l.length)throw new Error("【"+t+"】 路径错误,尝试转成绝对路径失败,请手动转成绝对路径(10003)。");return l[0].path+o},e.deepDecodeQuery=function t(e){for(var n="[object Array]"===g(e)?[]:{},r=Object.keys(e),i=0;i0){var s=void 0;switch("h5"===t.options.platform?s=a.$options.beforeRouteLeave:null!=a.$vm&&(s=a.$vm.$options.beforeRouteLeave),i.getDataType(s)){case"[object Array]":o=(o=s[0]).bind(a);break;case"[object Function]":o=s.bind(a.$vm)}}return c(o,e,n,t,r)}function c(t,e,n,r,i,o){void 0===o&&(o=!0),null!=t&&t instanceof Function?!0===o?t(e,n,i,r,!1):(t(e,n,(function(){}),r,!1),i()):i()}function h(t,e,n,r,o,a){var s=i.forMatNextToFrom(t,e,n),l=s.matTo,u=s.matFrom;"h5"===t.options.platform?p(o,0,a,t,l,u,r):p(o.slice(0,4),0,(function(){a((function(){p(o.slice(4),0,i.voidFun,t,l,u,r)}))}),t,l,u,r)}function p(t,n,a,u,c,h,f){var d=i.routesForMapRoute(u,c.path,["finallyPathMap","pathMap"]);if(t.length-1{[propName: string]: any;}",e):t[n]=s}else{if(!i.assertDeepObject(r))return t;var l=JSON.stringify(r);t[n]={query:l}}return t},e.parseQuery=function(t,e){var n=e.options.parseQuery;if(n)t=n(i.copyData(t)),"[object Object]"!==i.getDataType(t)&&a.warn("请按格式返回参数: parseQuery?:(jsonQuery:{[propName: string]: any;})=>{[propName: string]: any;}",e);else if(Reflect.get(t,"query")){var r=Reflect.get(t,"query");if("string"==typeof r)try{r=JSON.parse(r)}catch(t){a.warn("尝试解析深度对象失败,按原样输出。"+t,e)}if("object"==s(r))return i.deepDecodeQuery(r)}return t},e.stringifyQuery=function(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return h(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(h(e)):r.push(h(e)+"="+h(t)))})),r.join("&")}return h(e)+"="+h(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}},314:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.rewriteMethod=void 0;var i=r(366),o=r(789),a=r(883),s=r(809),l=["navigateTo","redirectTo","reLaunch","switchTab","navigateBack"];n.rewriteMethod=function(e){!1===e.options.keepUniOriginNav&&l.forEach((function(n){var r=t[n];t[n]=function(t,l,u,c){void 0===l&&(l=!1),l?s.uniOriginJump(e,r,n,t,u,c):("app-plus"===e.options.platform&&0===Object.keys(e.appMain).length&&(e.appMain={NAVTYPE:n,path:t.url}),function(t,e,n){if("app-plus"===n.options.platform){var r=null;t&&(r=t.openType),null!=r&&"appLaunch"===r&&(e="reLaunch")}if("reLaunch"===e&&'{"url":"/"}'===JSON.stringify(t)&&(a.warn("uni-app 原生方法:reLaunch({url:'/'}) 默认被重写啦!你可以使用 this.$Router.replaceAll() 或者 uni.reLaunch({url:'/?xxx=xxx'})",n,!0),e="navigateBack",t={from:"backbutton"}),"navigateBack"===e){var s=1;null==t&&(t={delta:1}),"[object Number]"===o.getDataType(t.delta)&&(s=t.delta),n.back(s,t)}else{var l=i.rewriteMethodToggle[e],u=t.url;if(!u.startsWith("/")){var c=o.resolveAbsolutePath(u,n);u=c,t.url=c}if("switchTab"===e){var h=o.routesForMapRoute(n,u,["pathMap","finallyPathList"]),p=o.getRoutePath(h,n).finallyPath;if("[object Array]"===o.getDataType(p)&&a.warn("uni-app 原生方法跳转路径为:"+u+"。此路为是tab页面时,不允许设置 alias 为数组的情况,并且不能为动态路由!当然你可以通过通配符*解决!",n,!0),"*"===p&&a.warn("uni-app 原生方法跳转路径为:"+u+"。在路由表中找不到相关路由表!当然你可以通过通配符*解决!",n,!0),"h5"===n.options.platform){var f=t.success;t.success=function(){for(var e=[],n=0;n0&&Reflect.has(e,"index")){var n=o.getUniCachePage(0);if(0===Object.keys(n).length)return!1;var r=n,i=r.$options.onTabItemTap;if(i)for(var a=0;a0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&t.forEach((function(t){e.push({text:t.listVal||t.userName,value:t.listVal||t.userId,userid:t.userId||""})})),e}e.actions=o}).call(this,n("543d")["default"])},b17c:function(t,e,n){var r=n("4a4b"),i=n("6f8f");function o(e,n,a){return i()?(t.exports=o=Reflect.construct.bind(),t.exports.__esModule=!0,t.exports["default"]=t.exports):(t.exports=o=function(t,e,n){var i=[null];i.push.apply(i,e);var o=Function.bind.apply(t,i),a=new o;return n&&r(a,n.prototype),a},t.exports.__esModule=!0,t.exports["default"]=t.exports),o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},b1b5:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("2eee")),o=r(n("9523")),a=r(n("c973")),s=r(n("970b")),l=r(n("5bc3"));function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e0&&void 0!==a[0]?a[0]:{},r=c(c(c({},r),this.config),this.requestBefore(r)),n.abrupt("return",new Promise((function(n,i){var a=e.isUrl(r.url)?r.url:r.baseUrl+r.url;if("{}"!==JSON.stringify(r.params)){var s=e.addQueryString(r.params);a+=-1===a.indexOf("?")?"?".concat(s):"&".concat(s)}r.url=a,r.success=function(t){n(o.requestAfter(t.data))},r.fail=function(t){i(o.requestAfter(t))},t.request(r)})));case 3:case"end":return n.stop()}}),n,this)})));return function(){return n.apply(this,arguments)}}()},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(c({url:t,method:"GET"},e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request(c({url:t,data:e,method:"POST"},n))}}],[{key:"isUrl",value:function(t){return/(http|https):\/\/([\w.]+\/?)\S*/.test(t)}},{key:"addQueryString",value:function(t){var e="";return Object.keys(t).forEach((function(n){e+=n+"="+encodeURIComponent(t[n])+"&"})),e.substring(0,e.length-1)}},{key:"requestBefore",value:function(t){return t}},{key:"requestAfter",value:function(t){return t}}]),e}();e.default=p}).call(this,n("543d")["default"])},b399:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={common:{login:{url:"/web/lgin/userLgin",auth:!1,method:"POST"},applogin:{url:"/app/wechat/login",auth:!1,method:"POST"}},home:{getUserData:{url:"/web/lgin/getUserRoleInfo",auth:!0,method:"GET"}},homePage:{splerCosm:{url:"/web/weChat/forms/amtSplerCosm",auth:!0,method:"POST"},totalCosm:{url:"/web/weChat/forms/totalCosm",auth:!0,method:"POST"},amtCosm:{url:"/web/weChat/forms/amtCosm",auth:!0,method:"POST"},cntCosm:{url:"/web/weChat/forms/cntCosm",auth:!0,method:"POST"},deptCosm:{url:"/web/weChat/forms/deptCosm",auth:!0,method:"POST"},statCosm:{url:"/web/weChat/forms/statCosm",auth:!0,method:"POST"},information:{url:"/app/wechat/select/information",auth:!0,method:"POST"},informationData:{url:"/app/wechat/save/information",auth:!0,method:"POST"}}}},bc2e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],i=["lanDebug","router","worklet"],o="undefined"!==typeof globalThis?globalThis:function(){return this}(),a=["w","x"].join(""),s=o[a],l=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function u(t){return(!l||1154!==l.scene||!i.includes(t))&&(r.indexOf(t)>-1||"function"===typeof s[t])}o[a]=function(){var t={};for(var e in s)u(e)&&(t[e]=s[e]);return t}();var c=o[a];e.default=c},bd3c:function(t,e){},beaf:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=s(e);return a.interceptor.request((function(e,n){var i=t.getStorageSync("token")||"";if(o.auth&&!i)throw t.hideLoading(),t.showToast({title:"暂未登录,请先登录",icon:"none",duration:2e3}),t.navigateTo({url:"/pages/login/index",success:function(t){}}),"暂未登录,已阻止此次API请求: '".concat(o.url,"'");return i&&a.setConfig((function(t){t.header.Authorization=i})),""!==r&&t.showLoading({title:r,mask:!0}),e})),a.interceptor.response((function(e){if(t.hideLoading(),(0!=e.code||!1===e.success)&&(i&&t.showToast({title:e.message||"请求出错,稍后重试",icon:"none",duration:1e3,mask:!0}),161099===e.code))throw"当前登录已失效,请重新登录"==e.message?(t.navigateTo({url:"/subpkg/pages/login/index",success:function(t){}}),t.removeStorageSync("token")):t.showToast({title:e.message,icon:"none"}),"登录已过期或注销,已阻止请求: '".concat(o.url,"'");return e})),a.request({url:o.url||e,data:n,method:o.method})};var i=r(n("b1b5")),o=r(n("b399")),a=new i.default;function s(t){var e,n=t.split(".");return 1==n.length?e={auth:!0,method:"POST",url:t}:(e=o.default,n.forEach((function(t){e=e[t]}))),e}}).call(this,n("543d")["default"])},c135:function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports["default"]=t.exports},c240:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports["default"]=t.exports},c5f7:function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports["default"]=t.exports},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c973:function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,l,"next",t)}function l(t){n(a,i,o,s,l,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports["default"]=t.exports},d48a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterMount",{enumerable:!0,get:function(){return r.RouterMount}}),e.router=void 0;var r=n("ac88"),i=(0,r.createRouter)({platform:"mp-weixin",applet:{animationDuration:100},routes:[{path:"*",redirect:function(t){return{name:"404"}}}]});e.router=i,i.beforeEach((function(t,e,n){console.log("跳转结束"),t.meta&&t.meta.auth?n(!1):n()})),i.afterEach((function(t,e){}))},d4eb:function(t,e,n){(function(r){var i,o,a,s=n("7037");!function(n,r){"object"==s(e)&&"undefined"!=typeof t?r(e):(o=[e],i=r,a="function"===typeof i?i.apply(e,o):i,void 0===a||(t.exports=a))}(0,(function(t){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,n)};function n(t,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=t}e(t,n),t.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,zt=(St=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&&(zt.firefox=!0,zt.version=O[1]),y&&(zt.ie=!0,zt.version=y[1]),b&&(zt.edge=!0,zt.version=b[1],zt.newEdge=18<+b[1].split(".")[0]),w&&(zt.weChat=!0),St.svgSupported="undefined"!=typeof SVGRect,St.touchEventsSupported="ontouchstart"in window&&!zt.ie&&!zt.edge,St.pointerEventsSupported="onpointerdown"in window&&(zt.edge||zt.ie&&11<=+zt.version),St.domSupported="undefined"!=typeof document,O=document.documentElement.style,St.transform3dSupported=(zt.ie&&"transition"in O||zt.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in O)&&!("OTransition"in O),St.transformSupported=St.transform3dSupported||zt.ie&&9<=+zt.version);var a,l,u="12px sans-serif",c=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,a),a,i);if(e)return e(t,n,r),!0}return!1}function Jt(t){return"CANVAS"===t.nodeName.toUpperCase()}var Qt=/([&<>"'])/g,te={"&":"&","<":"<",">":">",'"':""","'":"'"};function ee(t){return null==t?"":(t+"").replace(Qt,(function(t,e){return te[e]}))}var ne=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,re=[],ie=o.browser.firefox&&+o.browser.version.split(".")[0]<39;function oe(t,e,n,r){return n=n||{},r?ae(t,e,n):ie&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ae(t,e,n),n}function ae(t,e,n){if(o.domSupported&&t.getBoundingClientRect){var r,i=e.clientX;e=e.clientY;if(Jt(t))return r=t.getBoundingClientRect(),n.zrX=i-r.left,void(n.zrY=e-r.top);if(Kt(re,t,i,e))return n.zrX=re[0],void(n.zrY=re[1])}n.zrX=n.zrY=0}function se(t){return t||window.event}function le(t,e,n){var r;return null==(e=se(e)).zrX&&((r=e.type)&&0<=r.indexOf("touch")?(r=("touchend"!==r?e.targetTouches:e.changedTouches)[0])&&oe(t,r,e,n):(oe(t,e,e,n),r=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX;t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},Re.prototype.clone=function(){return new Re(this.x,this.y,this.width,this.height)},Re.prototype.copy=function(t){Re.copy(this,t)},Re.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Re.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Re.prototype.isZero=function(){return 0===this.width||0===this.height},Re.create=function(t){return new Re(t.x,t.y,t.width,t.height)},Re.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Re.applyTransform=function(t,e,n){var r,i,o,a;n?n[1]<1e-5&&-1e-5t.getWidth()||n<0||n>t.getHeight()}R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){$e.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=qe(this,i,o);if("mouseup"===t&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4>>1])<0?l=o:s=1+o;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0>>1);0>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Je(t,e,n,r){var i=(r=r||t.length)-(n=n||0);if(!(i<2)){var o=0;if(i<32)Xe(t,n,r,n+(o=Ye(t,n,r,e)),e);else{var a,s=function(t,e){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],h=r[s+1];r[s]=u+h,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--,s=Ke(t[c],t,l,u,0,e);if(l+=s,0!=(u-=s)&&0!==(h=Ze(t[l+u-1],t,c,h,h-1,e)))if(u<=h){var p=l,f=u,d=(s=c,h),g=0;for(g=0;gr[t+1])break;s(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(i);do{}while((o=Ye(t,n,r,e))=this._maxSize&&0>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===r?parseInt(n.slice(4),16)/15:1),Gn(t,e),e):void Vn(e,0,0,0,1):7===r||9===r?0<=(i=parseInt(n.slice(1,7),16))&&i<=16777215?(Vn(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===r?parseInt(n.slice(7),16)/255:1),Gn(t,e),e):void Vn(e,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?Vn(e,+a[0],+a[1],+a[2],1):Vn(e,0,0,0,1);s=Fn(a.pop());case"rgb":return 3<=a.length?(Vn(e,jn(a[0]),jn(a[1]),jn(a[2]),3===a.length?s:Fn(a[3])),Gn(t,e),e):void Vn(e,0,0,0,1);case"hsla":return 4!==a.length?void Vn(e,0,0,0,1):(a[3]=Fn(a[3]),Yn(a,e),Gn(t,e),e);case"hsl":return 3!==a.length?void Vn(e,0,0,0,1):(Yn(a,e),Gn(t,e),e);default:return}}Vn(e,0,0,0,1)}}function Yn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Fn(t[1]),i=Fn(t[2]);r=i<=.5?i*(r+1):i+r-i*r,i=2*i-r;return Vn(e=e||[],Nn(255*zn(i,r,n+1/3)),Nn(255*zn(i,r,n)),Nn(255*zn(i,r,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Xn(t,e){var n=qn(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,255e);g++);g=d(g-1,c-2)}r=u[g+1],n=u[g]}n&&r&&(this._lastFr=g,this._lastFrP=e,f=r.percent-n.percent,i=0==f?1:d((e-n.percent)/f,1),r.easingFunc&&(i=r.easingFunc(i)),d=a?this._additiveValue:p?fr:t[h],(pr(l)||p)&&(d=d||(this._additiveValue=[])),this.discrete?t[h]=(i<1?n:r).rawValue:pr(l)?(1===l?ar:function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;athis._sleepAfterStill)&&this.animation.stop()},Mi.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Mi.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Mi.prototype.refreshHover=function(){this._needsRefreshHover=!0},Mi.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Mi.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Mi.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Mi.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Mi.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Mi.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Mi.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Mi.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},Mi.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Mi.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Mi.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;el&&(l=s[c],u=c);++o[u],s[u]=0,++a}return N(o,(function(t){return t/r}))}function ji(t){var e=2*Math.PI;return(t%e+e)%e}function Fi(t){return-1e-4=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,r){for(var i=0,o=0,a=t.length;or.width&&(o=e.split("\n"),h=!0),r.accumWidth=t):(t=$o(e,c,r.width,r.breakAll,r.accumWidth),r.accumWidth=t.accumWidth+n,a=t.linesWidths,o=t.lines)):o=e.split("\n");for(var p=0;pthis._ux||r>this._uy;return this.addData(ha.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i?(this._xi=t,this._yi=e,this._pendingPtDist=0):(i=n*n+r*r)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=i),this},Oa.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(ha.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},Oa.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(ha.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},Oa.prototype.arc=function(t,e,n,r,i,o){return this._drawPendingPt(),Aa[0]=r,Aa[1]=i,Ca(Aa,o),this.addData(ha.A,t,e,n,n,r=Aa[0],(i=Aa[1])-r,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=xa(i)*n+t,this._yi=ba(i)*n+e,this},Oa.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},Oa.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(ha.R,t,e,n,r),this},Oa.prototype.closePath=function(){this._drawPendingPt(),this.addData(ha.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},Oa.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Oa.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Oa.prototype.len=function(){return this._len},Oa.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ma||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;cn||wa(y)>r||h===e-1)&&(d=Math.sqrt(T*T+y*y),i=g,o=_);break;case ha.C:var v=t[h++],m=t[h++],_=(g=t[h++],t[h++]),x=t[h++],b=t[h++];d=function(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,p=1;p<=10;p++){var f=.1*p,d=gn(t,n,i,a,f),g=(f=gn(e,r,o,s,f),d-u),y=f-c;h+=Math.sqrt(g*g+y*y),u=d,c=f}return h}(i,o,v,m,g,_,x,b),i=x,o=b;break;case ha.Q:d=function(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1;c<=10;c++){var h=.1*c,p=bn(t,n,i,h),f=(h=bn(e,r,o,h),p-s),d=h-l;u+=Math.sqrt(f*f+d*d),s=p,l=h}return u}(i,o,v=t[h++],m=t[h++],g=t[h++],_=t[h++]),i=g,o=_;break;case ha.A:x=t[h++],b=t[h++];var w=t[h++],S=t[h++],k=t[h++],M=t[h++],A=M+k;h+=1,f&&(a=xa(k)*w+x,s=ba(k)*S+b),d=_a(w,S)*ma(ka,Math.abs(M)),i=xa(A)*w+x,o=ba(A)*S+b;break;case ha.R:a=i=t[h++],s=o=t[h++],d=2*t[h++]+2*t[h++];break;case ha.Z:var T=a-i;y=s-o;d=Math.sqrt(T*T+y*y),i=a,o=s}0<=d&&(u+=l[c++]=d)}return this._pathLen=u},Oa.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c=this.data,h=this._ux,p=this._uy,f=this._len,d=e<1,g=0,y=0,v=0;if(!d||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var m=0;m=ja[r=0]+t&&a<=ja[1]+t?c:0;iMath.PI/2&&h<1.5*Math.PI?-c:c)}return l}(y,v,_,x,x+b,w,M,i);u=Math.cos(x+b)*m+y,c=Math.sin(x+b)*_+v;break;case Na.R:if(h=u=a[f++],p=c=a[f++],S=h+a[f++],k=p+a[f++],n){if(Pa(h,p,S,p,e,r,i)||Pa(S,p,S,k,e,r,i)||Pa(S,k,h,k,e,r,i)||Pa(h,k,h,p,e,r,i))return!0}else l=(l+=Ra(S,p,S,k,r,i))+Ra(h,k,h,p,r,i);break;case Na.Z:if(n){if(Pa(u,c,h,p,e,r,i))return!0}else l+=Ra(u,c,h,p,r,i);u=h,c=p}}return n||(t=c,o=p,Math.abs(t-o)<1e-4)||(l+=Ra(u,c,h,p,r,i)||0),0!==l}var Ua,$a=I({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qo),Wa={style:I({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Yo.style)},Ga=Kr.concat(["invisible","culling","z","z2","zlevel","parent"]),qa=(n(Ya,Ua=Qn),Ya.prototype.update=function(){var t=this,e=(Ua.prototype.update.call(this),this.style);if(e.decal){var n,r=this._decalEl=this._decalEl||new Ya,i=(r.buildPath===Ya.prototype.buildPath&&(r.buildPath=function(e){t.buildPath(e,t.shape)}),r.silent=!0,r.style);for(n in e)i[n]!==e[n]&&(i[n]=e[n]);i.fill=e.fill?e.decal:null,i.decal=null,i.shadowColor=null,e.strokeFirst&&(i.stroke=null);for(var o=0;oo){0r.len()&&(uMath.abs(r[1])?0':'':{renderMode:i,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function Qh(t,e){return e=e||"transparent",$(t)?t:q(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function tp(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var ep=R,np=["left","right","top","bottom","width","height"],rp=[["width","left","right"],["height","top","bottom"]];function ip(t,e,n,r,i){var o=0,a=0,s=(null==r&&(r=1/0),null==i&&(i=1/0),0);e.eachChild((function(l,u){var c,h,p,f=l.getBoundingRect();u=e.childAt(u+1),u=u&&u.getBoundingRect();s="horizontal"===t?(h=f.width+(u?-u.x+f.x:0),r<(c=o+h)||l.newline?(o=0,c=h,a+=s+n,f.height):Math.max(s,f.height)):(h=f.height+(u?-u.y+f.y:0),i<(p=a+h)||l.newline?(o+=s+n,a=0,p=h,f.width):Math.max(s,f.width)),l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=p+n)}))}var op=ip;function ap(t,e,n){n=qh(n||0);var r=e.width,i=e.height,o=Pi(t.left,r),a=Pi(t.top,i),s=(e=Pi(t.right,r),Pi(t.bottom,i)),l=Pi(t.width,r),u=Pi(t.height,i),c=n[2]+n[0],h=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=r-e-h-o),isNaN(u)&&(u=i-s-c-a),null!=p&&(isNaN(l)&&isNaN(u)&&(r/ie)return t[r];return t[n-1]}(i,n):r)||r)&&i.length?(n=i[o],t&&(e[t]=n),a.paletteIdx=(o+1)%i.length,n):void 0},Hp.prototype.clearColorPalette=function(){var t;(t=Fp)(this).paletteIdx=0,t(this).paletteNameMap={}},Hp);function Hp(){}var Vp,Up="\0_ec_inner",$p=(n(Wp,Vp=ch),Wp.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new ch(r),this._locale=new ch(i),this._optionManager=o},Wp.prototype.setOption=function(t,e,n){e=Yp(e),this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Wp.prototype.resetOption=function(t,e){return this._resetOption(t,Yp(e))},Wp.prototype._resetOption=function(t,e){var n,r=!1,i=this._optionManager;return t&&"recreate"!==t||(n=i.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Bp(this,n),r=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=i.getTimelineOption(this))&&(r=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=i.getMediaOption(this)).length&&R(n,(function(t){r=!0,this._mergeOption(t,e)}),this),r},Wp.prototype.mergeOption=function(t){this._mergeOption(t,null)},Wp.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=yt(),s=e&&e.replaceMergeMainTypeMap;Ip(this).datasetMap=yt(),R(t,(function(t,e){null!=t&&(gp.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?A(t):T(n[e],t,!0))})),s&&s.each((function(t,e){gp.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),gp.topologicalTravel(o,gp.getAllClassMainTypes(),(function(e){var o,a=function(t,e,n){return(e=(e=jp.get(e))&&e(t))?n.concat(e):n}(this,e,Ji(t[e])),l=r.get(e),u=l?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=(l=function(t,e,n){var r,i,o,a,s,l,u,c,h,p,f="normalMerge"===n,d="replaceMerge"===n,g="replaceAll"===n,y=(t=t||[],e=(e||[]).slice(),yt());return R(e,(function(t,n){q(t)||(e[n]=null)})),n=function(t,e,n){var r=[];if("replaceAll"!==n)for(var i=0;ig[1]&&(g[1]=d)}return{start:a,end:this._rawCount=this._count=s}},jd.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=N(o,(function(t){return t.property})),u=0;ud[1]&&(d[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},jd.prototype.count=function(){return this._count},jd.prototype.get=function(t,e){return 0<=e&&e=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;i=o-1}}}return-1},jd.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(r){null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();lt[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(d))}return sv[1]&&(v[1]=y)}}},jd.prototype.lttbDownSample=function(t,e){var n,r=this.clone([t],!0),i=r._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Ed(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));u[a++]=l;for(var c=1;cc[1]&&(c[1]=y),h[p++]=v}return i._count=p,i._indices=h,i._updateGetRawIdx(),i},jd.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i'+ee(u)+""+c,n))}function Qd(t,e,n,r){var i,o,a,s,l=t.renderMode,u=e.noName,c=e.noValue,h=!e.markerType,p=e.name,f=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(t){return N(t=V(t)?t:[t],(function(t,e){return Yh(t,V(o)?o[e]:o,f)}))};if(!u||!c)return i=h?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":Yh(p,"ordinal",f),o=e.valueType,d=c?[]:d(e.value,e.dataIndex),e=!h||!u,a=!h&&u,r=Gd(r,l),s=r.nameStyle,r=r.valueStyle,"richText"===l?(h?"":i)+(u?"":ng(t,p,s))+(c?"":function(t,e,n,r,i){return i=[i],r=r?10:20,n&&i.push({padding:[0,0,0,r],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,i)}(t,d,e,a,r)):eg((h?"":i)+(u?"":''+ee(p)+"")+(c?"":function(t,e,n,r){return n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"",t=V(t)?t:[t],''+N(t,ee).join("  ")+""}(d,e,a,r)),n)}function tg(t,e,n,r,i,o){if(t)return Kd(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function eg(t,e){return'
'+t+'
'}function ng(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function rg(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}og.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},og.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null;e=Jh({color:e,type:t,renderMode:n,markerId:r});return $(e)?e:(this.richTextStyles[r]=e.style,e.content)},og.prototype.wrapRichTextStyle=function(t,e){var n={};V(e)?R(e,(function(t){return C(n,t)})):C(n,e),e=this._generateStyleName();return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var ig=og;function og(){this.richTextStyles={},this._nextStyleNameId=qi()}var ag=lo();function sg(t,e){return t.getName(e)||t.getId(e)}n(cg,lg=gp),cg.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Qf({count:pg,reset:fg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(ag(this).sourceManager=new zd(this)).prepareSource(),t=this.getInitialData(t,n),gg(t,this),this.dataTask.context.data=t,ag(this).dataBeforeProcessed=t,hg(this),this._initSelectedMapFromData(t)},cg.prototype.mergeDefaultAndTheme=function(t,e){var n=sp(this),r=n?up(t):{},i=this.subType;gp.hasClass(i),T(t,e.getTheme().get(this.subType)),T(t,this.getDefaultOption()),Qi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&lp(t,r,n)},cg.prototype.mergeOption=function(t,e){t=T(this.option,t,!0),this.fillDataTextStyle(t.data);var n=sp(this);n&&lp(this.option,t,n),n=ag(this).sourceManager,n.dirty(),n.prepareSource(),n=this.getInitialData(t,e);gg(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,ag(this).dataBeforeProcessed=n,hg(this),this._initSelectedMapFromData(n)},cg.prototype.fillDataTextStyle=function(t){if(t&&!X(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold"))&&t)},cg.prototype.restoreData=function(){this.dataTask.dirty()},cg.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel;return zp.prototype.getColorFromPalette.call(this,t,e,n)||r.getColorFromPalette(t,e,n)},cg.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},cg.prototype.getProgressive=function(){return this.get("progressive")},cg.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},cg.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},cg.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;oe.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function gg(t,e){R(vt(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,H(yg,e))}))}function yg(t,e){return t=vg(t),t&&t.setOutputEnd((e||this).count()),e}function vg(t){var e,n=(t.ecModel||{}).scheduler;n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}L(ug,sh),L(ug,zp),wo(ug,gp),_g.prototype.init=function(t,e){},_g.prototype.render=function(t,e,n,r){},_g.prototype.dispose=function(t,e){},_g.prototype.updateView=function(t,e,n,r){},_g.prototype.updateLayout=function(t,e,n,r){},_g.prototype.updateVisual=function(t,e,n,r){},_g.prototype.toggleBlurSeries=function(t,e,n){},_g.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var mg=_g;function _g(){this.group=new _i,this.uid=fh("viewComponent")}function xg(){var t=lo();return function(e){var n=t(e),r=(e=e.pipelineContext,!!n.large),i=!!n.progressiveRender,o=n.large=!(!e||!e.large);n=n.progressiveRender=!(!e||!e.progressiveRender);return!(r==o&&i==n)&&"reset"}}bo(mg),Ao(mg);var bg=lo(),wg=xg(),Sg=(kg.prototype.init=function(t,e){},kg.prototype.render=function(t,e,n,r){},kg.prototype.highlight=function(t,e,n,r){t=t.getData(r&&r.dataType),t&&Ag(t,r,"emphasis")},kg.prototype.downplay=function(t,e,n,r){t=t.getData(r&&r.dataType),t&&Ag(t,r,"normal")},kg.prototype.remove=function(t,e){this.group.removeAll()},kg.prototype.dispose=function(t,e){},kg.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},kg.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},kg.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},kg.prototype.eachRendered=function(t){Bc(this.group,t)},kg.markUpdateMethod=function(t,e){bg(t).updateMethod=e},kg.protoInitialize=void(kg.prototype.type="chart"),kg);function kg(){this.group=new _i,this.uid=fh("viewChart"),this.renderTask=Qf({plan:Tg,reset:Cg}),this.renderTask.context={view:this}}function Mg(t,e,n){t&&ml(t)&&("emphasis"===e?el:nl)(t,n)}function Ag(t,e,n){var r,i=so(t,e),o=e&&null!=e.highlightKey?(e=e.highlightKey,r=null==(r=Os[e])&&Is<=32?Os[e]=Is++:r):null;null!=i?R(Ji(i),(function(e){Mg(t.getItemGraphicEl(e),n,o)})):t.eachItemGraphicEl((function(t){Mg(t,n,o)}))}function Tg(t){return wg(t.model)}function Cg(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=(t=t.view,i&&bg(i).updateMethod);o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,r,i),Ig[o]}bo(Sg),Ao(Sg);var Ig={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Og="\0__throttleOriginMethod",Pg="\0__throttleRate",Dg="\0__throttleType";function Lg(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}function p(){for(var t=[],p=0;pn.blockIndex?n.step:null,modBy:null!=(t=r&&r.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},$g.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},$g.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=(e=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,t.get("large")&&r>=t.get("largeThreshold"));r="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:r,large:i}},$g.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=yt();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},$g.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;R(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{});at(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},$g.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},$g.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},$g.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},$g.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}R(t,(function(t,s){var l,u,c,h,p;r.visualType&&r.visualType!==t.visualType||(l=(u=o._stageTaskMap.get(t.uid)).seriesTaskMap,(u=u.overallTask)?((h=u.agentStubMap).each((function(t){a(r,t)&&(t.dirty(),c=!0)})),c&&u.dirty(),o.updatePayload(u,n),p=o.getPerformArgs(u,r.block),h.each((function(t){t.perform(p)})),u.perform(p)&&(i=!0)):l&&l.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)})))})),this.unfinished=i||this.unfinished},$g.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},$g.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())}))},$g.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},$g.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=yt(),s=(e=t.seriesType,t.getTargetSeries);function l(e){var s=e.uid;s=a.set(s,o&&o.get(s)||Qf({plan:Xg,reset:Zg,count:Qg}));s.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,s)}t.createOnAllSeries?n.eachRawSeries(l):e?n.eachRawSeriesByType(e,l):s&&s(n,r).each(l)},$g.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||Qf({reset:Wg}),a=(o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i},o.agentStubMap),s=o.agentStubMap=yt(),l=(e=t.seriesType,t.getTargetSeries),u=!0,c=!1;function h(t){var e=t.uid;e=s.set(e,a&&a.get(e)||(c=!0,Qf({reset:Gg,onDirty:Yg})));e.context={model:t,overallProgress:u},e.agent=o,e.__block=u,i._pipe(t,e)}at(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,h):l?l(n,r).each(h):(u=!1,R(n.getSeries(),h)),c&&o.dirty()},$g.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t),t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},$g.wrapStageHandler=function(t,e){return(t=U(t)?{overallReset:t,seriesType:function(t){ty=null;try{t(ey,ny)}catch(t){}return ty}(t)}:t).uid=fh("stageHandler"),e&&(t.visualType=e),t};var Ug=$g;function $g(t,e,n,r){this._stageTaskMap=yt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}function Wg(t){t.overallReset(t.ecModel,t.api,t.payload)}function Gg(t){return t.overallProgress&&qg}function qg(){this.agent.dirty(),this.getDownstream().dirty()}function Yg(){this.agent&&this.agent.dirty()}function Xg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Zg(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=Ji(t.reset(t.model,t.ecModel,t.api,t.payload)),1'+t.dom+""})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()):(t.connectedBackgroundColor&&g.add(new hs({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),R(u,(function(t){t=new ns({style:{x:t.left*c-o,y:t.top*c-a,image:t.dom}}),g.add(t)})),g.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);this.id},Pv.prototype.convertToPixel=function(t,e){return gv(this,"convertToPixel",t,e)},Pv.prototype.convertFromPixel=function(t,e){return gv(this,"convertFromPixel",t,e)},Pv.prototype.containPixel=function(t,e){var n;if(!this._disposed)return R(co(this._model,t),(function(t,r){0<=r.indexOf("Models")&&R(t,(function(t){var i=t.coordinateSystem;i&&i.containPoint?n=n||!!i.containPoint(e):"seriesModels"===r&&(i=this._chartsMap[t.__viewId])&&i.containPoint&&(n=n||i.containPoint(e,t))}),this)}),this),!!n;this.id},Pv.prototype.getVisual=function(t,e){t=co(this._model,t,{defaultMainType:"series"});var n=t.seriesModel.getData();t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var r=n,i=t,o=e;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=e;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)}}},Pv.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},Pv.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},Pv.prototype._initEvents=function(){var t,e,n,r=this;R(Bv,(function(t){function e(e){var n,i,o,a=r.getModel(),s=e.target;"globalout"===t?n={}:s&&hy(s,(function(t){var e;t=Cs(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,s)||{},1):t.eventData&&(n=C({},t.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=e,n.type=t,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:n,model:i,view:o},r.trigger(t,n))}e.zrEventfulCallAtLast=!0,r._zr.on(t,e,r)})),R(Fv,(function(t,e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),R(["selectchanged"],(function(t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),t=this._messageCenter,n=(e=this)._api,t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(cy("map","selectchanged",e,r,t),cy("pie","selectchanged",e,r,t)):"select"===t.fromAction?(cy("map","selected",e,r,t),cy("pie","selected",e,r,t)):"unselect"===t.fromAction&&(cy("map","unselected",e,r,t),cy("pie","unselected",e,r,t))}))},Pv.prototype.isDisposed=function(){return this._disposed},Pv.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},Pv.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&yo(this.getDom(),Xv,""),e=(t=this)._api,n=t._model,R(t._componentsViews,(function(t){t.dispose(n,e)})),R(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Wv[t.id])},Pv.prototype.resize=function(t){if(!this[tv])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){e=e.resetOption("media");var n=t&&t.silent;this[ev]&&(null==n&&(n=this[ev].silent),e=!0,this[ev]=null),this[tv]=!0;try{e&&hv(this),dv.update.call(this,{type:"resize",animation:C({duration:0},t&&t.animation)})}catch(t){throw this[tv]=!1,t}this[tv]=!1,mv.call(this,n),_v.call(this,n)}}},Pv.prototype.showLoading=function(t,e){this._disposed?this.id:(q(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),$v[t]&&(t=$v[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},Pv.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},Pv.prototype.makeActionFromEvent=function(t){var e=C({},t);return e.type=Fv[t.type],e},Pv.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(q(e)||(e={silent:!!e}),jv[t.type]&&this._model&&(this[tv]?this._pendingActions.push(t):(n=e.silent,vv.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&o.browser.weChat&&this._throttledZrFlush(),mv.call(this,n),_v.call(this,n))))},Pv.prototype.updateLabelLayout=function(){Jy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},Pv.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},Pv.internalField=(hv=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),pv(t,!0),pv(t,!1),e.plan()},pv=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;ll.get("hoverLayerThreshold")&&!o.node&&!o.worker&&l.eachSeries((function(t){t.preventUsingHoverLayer||(t=s._chartsMap[t.__viewId]).__alive&&t.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))})),Jy.trigger("series:afterupdate",e,n,i)},Tv=function(t){t[nv]=!0,t.getZr().wakeUp()},Cv=function(t){t[nv]&&(t.getZr().storage.traverse((function(t){sc(t)||Lv(t)})),t[nv]=!1)},Mv=function(t){return n(e,r=Xp),e.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},e.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},e.prototype.enterEmphasis=function(e,n){el(e,n),Tv(t)},e.prototype.leaveEmphasis=function(e,n){nl(e,n),Tv(t)},e.prototype.enterBlur=function(e){Xs(e,$s),Tv(t)},e.prototype.leaveBlur=function(e){rl(e),Tv(t)},e.prototype.enterSelect=function(e){il(e),Tv(t)},e.prototype.leaveSelect=function(e){ol(e),Tv(t)},e.prototype.getModel=function(){return t.getModel()},e.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},e.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},new e(t);function e(){return null!==r&&r.apply(this,arguments)||this}var r},void(Av=function(t){function e(t,e){for(var n=0;ne[1]&&(e[1]=t[1])},Km.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Km.prototype.getExtent=function(){return this._extent.slice()},Km.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Km.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Km.prototype.isBlank=function(){return this._isBlank},Km.prototype.setBlank=function(t){this._isBlank=t};var Zm=Km;function Km(t){this._setting=t||{},this._extent=[1/0,-1/0]}Ao(Zm);var Jm=0,Qm=(t_.createByAxisModel=function(t){t=t.option;var e=t.data;e=e&&N(e,e_);return new t_({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},t_.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t_.prototype.parseAndCollect=function(t){var e,n,r=this._needCollect;return $(t)||r?(r&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(r?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},t_.prototype._getOrCreateMap=function(){return this._map||(this._map=yt(this.categories))},t_);function t_(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Jm}function e_(t){return q(t)&&null!=t.value?t.value:t+""}function n_(t){return"interval"===t.type||"log"===t.type}function r_(t){var e=Math.pow(10,Ui(t));t/=e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Di(t*e)}function i_(t){return Ei(t)+2}function o_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function a_(t,e){return t>=e[0]&&t<=e[1]}function s_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function l_(t,e){return t*(e[1]-e[0])+e[0]}n(h_,u_=Zm),h_.prototype.parse=function(t){return null==t?NaN:$(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},h_.prototype.contain=function(t){return a_(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},h_.prototype.normalize=function(t){return s_(t=this._getTickNumber(this.parse(t)),this._extent)},h_.prototype.scale=function(t){return t=Math.round(l_(t,this._extent)),this.getRawOrdinalNumber(t)},h_.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},h_.prototype.getMinorTicks=function(t){},h_.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i=t},h_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},h_.prototype.calcNiceTicks=function(){},h_.prototype.calcNiceExtent=function(){},h_.type="ordinal";var u_,c_=h_;function h_(t){t=u_.call(this,t)||this;var e=(t.type="ordinal",t.getSetting("ordinalMeta"));return V(e=e||new Qm({}))&&(e=new Qm({categories:N(e,(function(t){return q(t)?t.value:t}))})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}Zm.registerClass(c_);var p_,f_=Di,d_=(n(g_,p_=Zm),g_.prototype.parse=function(t){return t},g_.prototype.contain=function(t){return a_(t,this._extent)},g_.prototype.normalize=function(t){return s_(t,this._extent)},g_.prototype.scale=function(t){return l_(t,this._extent)},g_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},g_.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},g_.prototype.getInterval=function(){return this._interval},g_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=i_(t)},g_.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(e){n[0]s&&o.push(t?{value:f_(s+e,i)}:{value:n[1]})}return o},g_.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&cr[1]&&(r[0]=r[1]),i}(r,t,e,n),this._intervalPrecision=i.intervalPrecision,this._interval=i.interval,this._niceExtent=i.niceTickExtent)},g_.prototype.calcNiceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=Math.abs(e[0]),t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]);isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),n=this._interval;t.fixMin||(e[0]=f_(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=f_(Math.ceil(e[1]/n)*n))},g_.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},g_.type="interval",g_);function g_(){var t=null!==p_&&p_.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}Zm.registerClass(d_);var y_="undefined"!=typeof Float32Array,v_=y_?Float32Array:Array;function m_(t){return V(t)?y_?new Float32Array(t):t:new v_(t)}function __(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function x_(t){return t.dim+t.index}function b_(t,e){var n=[];return e.eachSeriesByType(t,(function(t){k_(t)&&n.push(t)})),n}function w_(t){var e,n,r=function(t){var e,n={},r=(R(t,(function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type){t=t.getData();for(var r=e.dim+"_"+e.index,i=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),a=0,s=o.count();a=r[0]&&y<=r[1]&&u++)}if(p=(r[1]-r[0])/e,1.5*p=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return 0n&&(this._approxInterval=n),r=I_.length,t=Math.min(function(t,e,n,r){for(;n>>1;t[i][1]>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);r.push([(i=s+=i)/n,(o=l+=o)/n])}return r}function wx(t,e){var n,r,i;return N(j((t=(n=t).UTF8Encoding?(null==(i=(r=n).UTF8Scale)&&(i=1024),R(r.features,(function(t){var e=t.geometry,n=e.encodeOffsets,r=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=bx(r,n,i);break;case"Polygon":case"MultiLineString":xx(r,n,i);break;case"MultiPolygon":R(r,(function(t,e){return xx(t,n[e],i)}))}})),r.UTF8Encoding=!1,r):n).features,(function(t){return t.geometry&&t.properties&&0l[1],c(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&c(l[0],n[0].coord)&&n.unshift({coord:l[0]}),c(l[1],r.coord)&&(t?r.coord=l[1]:n.pop()),t)&&c(r.coord,l[1])&&n.push({coord:l[1]}),u},Px.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),N(this.scale.getMinorTicks(t=0=o}}for(var u,c=this.__startIndex;ci[0]){for(l=0;lt);l++);s=r[i[l]]}i.splice(l+1,0,t),(r[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},xb.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;re&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?0<=i.height?"bottom":"top":0<=i.width?"right":"left"),Uc(r));Vc(t,c,{labelFetcher:o,labelDataIndex:n,defaultText:Ub(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u}),l=t.getTextContent(),s&&l&&(s=r.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,r){if(G(r))t.setTextConfig({rotation:r});else if(V(e))t.setTextConfig({rotation:0});else{r=t.shape;var i,o=r.clockwise?r.startAngle:r.endAngle,a=r.clockwise?r.endAngle:r.startAngle,s=(o+a)/2;r=n(e);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 t.setTextConfig({rotation:0})}n=1.5*Math.PI-i,"middle"===r&&n>Math.PI/2&&n<1.5*Math.PI&&(n-=Math.PI),t.setTextConfig({rotation:n})}}(t,"outside"===s?u:s,sw(a),r.get(["label","rotate"]))),u=l,s=c,a=o.getRawValue(n),l=function(t){return $b(e,t)},u&&((u=Zc(u)).prevValue=u.value,u.value=a,a=s.normal,u.valueAnimation=a.get("valueAnimation"),u.valueAnimation)&&(u.precision=a.get("precision"),u.defaultInterpolatedText=l,u.statesModels=s),c=r.getModel(["emphasis"]);fl(t,c.get("focus"),c.get("blurScope"),c.get("disabled")),yl(t,r),null!=(o=i).startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(t.style.fill="none",t.style.stroke="none",R(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var uw,cw=function(){},hw=(n(pw,uw=qa),pw.prototype.getDefaultShape=function(){return new cw},pw.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;lr)return;return 1}(a,e)))return i=e.mapDimension(a.dim),o={},R(a.getViewLabels(),(function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),o[t]=1})),function(t){return!o.hasOwnProperty(e.get(i,t))}}}(t,l,a),k=this._data,M=(k&&k.eachItemGraphicEl((function(t,e){t.__temp&&(s.remove(t),k.setItemGraphicEl(e,null))})),b||d.remove(),s.add(v),!p&&t.get("step")),A=(a&&a.getArea&&t.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,function(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o=r.length-1;0<=o;o--){var a,s=t.getDimensionInfo(r[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){i=r[o];break}}if(i){var l=e.getAxis(a),u=(e=N(i.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),e.length),c=i.outerColors.slice(),h=(n=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),c.reverse()),function(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord;return{coord:n,color:Jn((n-r)/(e.coord-r),[t.color,e.color])}}for(var s=0;sn?x:_,(g=Math.abs(f.label.y-n))>=d.maxY&&(v=f.label.x-e-f.len2*i,y=r+f.len,v=Math.abs(v)t.unconstrainedWidth)?s:null,r.setStyle("width",l)),u=r.getBoundingRect(),i.width=u.width,e=(r.style.margin||0)+2.1,i.height=u.height+e,i.y-=(i.height-a)/2)}function uS(t){return"center"===t.position}n(pS,cS=lu),pS.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=C(qb(a.getModel("itemStyle"),l,!0),l);isNaN(u.startAngle)?i.setShape(u):(r?(i.setShape(u),r=o.getShallow("animationType"),o.ecModel.ssr?(ac(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===r?(i.shape.r=l.r0,ac(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),ac(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,oc(i,{shape:{endAngle:l.endAngle}},o,e))):(hc(i),oc(i,{shape:u},o,e)),i.useStyle(t.getItemVisual(e,"style")),yl(i,a),r=(l.startAngle+l.endAngle)/2,n=o.get("selectedOffset"),u=Math.cos(r)*n,r=Math.sin(r)*n,(n=a.getShallow("cursor"))&&i.attr("cursor",n),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=C({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},qb(s.getModel("itemStyle"),l)),C(i.ensureState("select"),{x:u,y:r,shape:qb(a.getModel(["select","itemStyle"]),l)}),C(i.ensureState("blur"),{shape:qb(a.getModel(["blur","itemStyle"]),l)}),n=i.getTextGuideLine(),o=i.getTextContent(),n&&C(n.ensureState("select"),{x:u,y:r}),C(o.ensureState("select"),{x:u,y:r}),fl(this,s.get("focus"),s.get("blurScope"),s.get("disabled")))},pS.prototype._updateLabel=function(t,e,n){var r=e.getItemModel(n),i=r.getModel("labelLine"),o=e.getItemVisual(n,"style"),a=o&&o.fill;o=o&&o.opacity,Vc(this,Uc(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:o,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)}),e=this.getTextContent(),this.setTextConfig({position:null,rotation:null}),e.attr({z2:10}),n=t.get(["label","position"]);"outside"!==n&&"outer"!==n?this.removeTextGuideLine():(this.getTextGuideLine()||(e=new bu,this.setTextGuideLine(e)),Kx(this,Jx(r),{stroke:a,opacity:rt(i.get(["lineStyle","opacity"]),o,1)}))};var cS,hS=pS;function pS(t,e,n){var r=cS.call(this)||this,i=(r.z2=2,new ys);return r.setTextContent(i),r.updateData(t,e,n,!0),r}n(gS,fS=Sg),gS.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&0=e.r0},gS.type="pie";var fS,dS=gS;function gS(){var t=null!==fS&&fS.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}vS.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},vS.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},vS.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},vS.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var yS=vS;function vS(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var mS,_S=lo(),xS=(n(bS,mS=ug),bS.prototype.init=function(t){mS.prototype.init.apply(this,arguments),this.legendVisualProvider=new yS(z(this.getData,this),z(this.getRawData,this)),this._defaultLabelLine(t)},bS.prototype.mergeOption=function(){mS.prototype.mergeOption.apply(this,arguments)},bS.prototype.getInitialData=function(){return e=V(e={coordDimensions:["value"],encodeDefaulter:H(Pp,t=this)})?{coordDimensions:e}:C({encodeDefine:t.getEncode()},e),n=t.getSource(),e=Vm(n,e).dimensions,(e=new zm(e,t)).initData(n,void 0),e;var t,e,n},bS.prototype.getDataParams=function(t){var e,n=this.getData(),r=_S(n),i=r.seats;i||(e=[],n.each(n.mapDimension("value"),(function(t){e.push(t)})),i=r.seats=Bi(e,n.hostModel.get("percentPrecision"))),r=mS.prototype.getDataParams.call(this,t);return r.percent=i[t]||0,r.$vars.push("percent"),r},bS.prototype._defaultLabelLine=function(t){Qi(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},bS.type="series.pie",bS.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"},bS);function bS(){return null!==mS&&mS.apply(this,arguments)||this}ax((function(t){t.registerChartView(dS),t.registerSeriesModel(xS),function(t,e){R([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(n){e(n[0],(function(e,r,i){var o;e=C({},e),i.dispatchAction(C(e,{type:n[1],seriesIndex:(i=e,o=[],r.eachComponent({mainType:"series",subType:t,query:i},(function(t){o.push(t.seriesIndex)})),o)}))}))}))}("pie",t.registerAction),t.registerLayout(H(oS,"pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n,r=e.findComponents({mainType:"legend"});r&&r.length&&(n=t.getData()).filterSelf((function(t){for(var e=n.getName(t),i=0;ie[1]&&e.reverse(),e},zS.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},zS.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var jS,FS=zS;function zS(t,e,n,r,i){return t=jS.call(this,t,e,n)||this,t.index=0,t.type=r||"value",t.position=i||"bottom",t}function HS(t,e,n){n=n||{};t=t.coordinateSystem;var r=e.axis,i={},o=r.getAxesOnZeroOf()[0],a=r.position,s=o?"onZero":a,l=(r=r.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],{left:0,right:1,top:0,bottom:1,onZero:2}),u=e.get("offset")||0,c=(u="x"===r?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],o&&(c=o.toGlobalCoord(o.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(c,u[1]),u[0])),i.position=["y"===r?u[l[s]]:t[0],"x"===r?u[l[s]]:t[3]],i.rotation=Math.PI/2*("x"===r?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],i.labelOffset=o?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),et(n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection),e.get(["axisLabel","rotate"]));return i.labelRotate="top"===s?-c:c,i.z2=1,i}function VS(t){return"cartesian2d"===t.get("coordinateSystem")}function US(t){var e={xAxisModel:null,yAxisModel:null};return R(e,(function(n,r){var i=r.replace(/Model$/,"");i=t.getReferringComponents(i,po).models[0];e[r]=i})),e}var $S=Math.log;GS.prototype.getRect=function(){return this._rect},GS.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=F(t),r=n.length;if(r){for(var i=[],o=r-1;0<=o;o--){var a=t[+n[o]],s=a.model,l=a.scale;n_(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(X_(l,s),n_(l)&&(e=a))}i.length&&(e||X_((e=i.pop()).scale,e.model),R(i,(function(t){var n=t.scale,r=(t=t.model,e.scale),i=d_.prototype,o=i.getTicks.call(r),a=i.getTicks.call(r,!0),s=o.length-1,l=(r=i.getInterval.call(r),(t=Y_(n,t)).extent),u=t.fixMin,c=(t=t.fixMax,"log"===n.type&&(c=$S(n.base),l=[$S(l[0])/c,$S(l[1])/c]),n.setExtent(l[0],l[1]),n.calcNiceExtent({splitNumber:s,fixMin:u,fixMax:t}),i.getExtent.call(n)),h=(u&&(l[0]=c[0]),t&&(l[1]=c[1]),i.getInterval.call(n)),p=l[0],f=l[1];if(u&&t)h=(f-p)/s;else if(u)for(f=l[0]+h*s;fl[0]&&isFinite(p)&&isFinite(l[0]);)h=r_(h),p=l[1]-h*s;else c=(h=sc[1]?-1:1,o=["start"===h?c[0]-o*u:"end"===h?c[1]+o*u:(c[0]+c[1])/2,nk(h)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*ZS/180),nk(h)?a=KS.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,n,r){var i;n=ji(n-t),t=r[0]>r[1],r="start"===e&&!t||"start"!==e&&t;return e=Fi(n-ZS/2)?(i=r?"bottom":"top","center"):Fi(n-1.5*ZS)?(i=r?"top":"bottom","center"):(i="middle",n<1.5*ZS&&ZS/2u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)n[i],d=[-h.x,-h.y],g=(e=(e||(d[r]=l[s]),[0,0]),s=[-p.x,-p.y],nt(t.get("pageButtonGap",!0),t.get("itemGap",!0)));f&&("end"===t.get("pageButtonPosition",!0)?s[r]+=n[i]-p[i]:e[r]+=p[i]+g),s[1-r]+=h[o]/2-p[o]/2,l.setPosition(d),u.setPosition(e),c.setPosition(s),d={x:0,y:0},d[i]=(f?n:h)[i],d[o]=Math.max(h[o],p[o]),d[a]=Math.min(0,p[a]+s[1-r]),u.__rectSize=n[i],f?((e={x:0,y:0})[i]=Math.max(n[i]-p[i]-g,0),e[o]=d[o],u.setClipPath(new hs({shape:e})),u.__rectSize=e[i]):c.eachChild((function(t){t.attr({invisible:!0,silent:!0})})),h=this._getPageInfo(t);return null!=h.pageIndex&&oc(l,{x:h.contentPosition[0],y:h.contentPosition[1]},f?t:null),this._updatePageInfoView(t,h),d},oM.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t],null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},oM.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup,r=(R(["pagePrev","pageNext"],(function(r){var i=null!=e[r+"DataIndex"];r=n.childOfName(r);r&&(r.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=i?"pointer":"default")})),n.childOfName("pageText")),i=t.get("pageFormatter"),o=e.pageIndex,a=(o=null!=o?o+1:0,e.pageCount);r&&i&&r.setStyle("text",$(i)?i.replace("{current}",null==o?"":o+"").replace("{total}",null==a?"":a+""):i({current:o,total:a}))},oM.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=(t=t.getOrient().index,nM[t]),o=rM[t],a=(e=this._findTargetItemIndex(e),n.children()),s=a[e],l=a.length,u=l?1:0,c={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s),c.contentPosition[t]=-n.s;for(var h=e+1,p=n,f=n,d=null;h<=l;++h)(!(d=g(a[h]))&&f.e>p.s+r||d&&!y(d,p.s))&&(p=f.i>p.i?f:d)&&(null==c.pageNextDataIndex&&(c.pageNextDataIndex=p.i),++c.pageCount),f=d;for(h=e-1,p=n,f=n,d=null;-1<=h;--h)(d=g(a[h]))&&y(f,d.s)||!(p.i=e&&t.s<=e+r}},oM.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild((function(r,i){r=r.__legendDataIndex,null==n&&null!=r&&(n=i),r===t&&(e=i)})),null!=e?e:n):0},oM.type="legend.scroll",oM);function oM(){var t=null!==tM&&tM.apply(this,arguments)||this;return t.type=oM.type,t.newlineDisabled=!0,t._currentIndex=0,t}ax((function(t){ax(Xk),t.registerComponentModel(Kk),t.registerComponentView(iM),t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}));var aM=lo(),sM=A,lM=z;function uM(){this._dragging=!1,this.animationThreshold=15}function cM(t,e,n,r){!function t(e,n){var r;return q(e)&&q(n)?(r=!0,R(n,(function(n,i){r=r&&t(e[i],n)})),!!r):e===n}(aM(n).lastProp,r)&&(aM(n).lastProp=r,e?oc(n,r,t):(n.stopAnimation(),n.attr(r)))}function hM(t,e){t[e.get(["label","show"])?"show":"hide"]()}function pM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function fM(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}function dM(t,e,n,r,i){t=e.scale.parse(t);var o,a=e.scale.getLabel({value:t},{precision:i.precision});i=i.formatter;return i&&(o={value:J_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},R(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex);t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&o.seriesData.push(e)})),$(i)?a=i.replace("{value}",a):U(i)&&(a=i(o))),a}function gM(t,e,n){var r=ge();return xe(r,r,n.rotation),_e(r,r,n.position),Tc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}uM.prototype.render=function(t,e,n,r){var i,o,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!r&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,r=this._group,i=this._handle,s&&"hide"!==s?(r&&r.show(),i&&i.show(),this.makeElOption(s={},a,t,e,n),(o=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=o,o=this._moveAnimation=this.determineAnimation(t,e),r?(o=H(cM,e,o),this.updatePointerEl(r,s,o),this.updateLabelEl(r,s,o,e)):(r=this._group=new _i,this.createPointerEl(r,s,t,e),this.createLabelEl(r,s,t,e),n.getZr().add(r)),fM(r,e,!0),this._renderHandle(a)):(r&&r.hide(),i&&i.hide()))},uM.prototype.remove=function(t){this.clear(t)},uM.prototype.dispose=function(t){this.clear(t)},uM.prototype.determineAnimation=function(t,e){var n,r=e.get("animation"),i=t.axis,o="category"===i.type;e=e.get("snap");return!(!e&&!o)&&("auto"===r||null==r?(n=this.animationThreshold,o&&i.getBandWidth()>n||!!e&&(o=ok(t).seriesDataCount,e=i.getExtent(),Math.abs(e[0]-e[1])/o>n)):!0===r)},uM.prototype.makeElOption=function(t,e,n,r,i){},uM.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;i&&(i=aM(t).pointerEl=new jc[i.type](sM(e.pointer)),t.add(i))},uM.prototype.createLabelEl=function(t,e,n,r){e.label&&(e=aM(t).labelEl=new ys(sM(e.label)),t.add(e),hM(e,r))},uM.prototype.updatePointerEl=function(t,e,n){t=aM(t).pointerEl,t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},uM.prototype.updateLabelEl=function(t,e,n,r){t=aM(t).labelEl,t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),hM(t,r))},uM.prototype._renderHandle=function(t){var e,n,r,i,o,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=e.getModel("handle"),a=e.get("status"),i.get("show")&&a&&"hide"!==a?(this._handle||(o=!0,r=this._handle=Lc(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ue(t.event)},onmousedown:lM(this._onHandleDragMove,this,0,0),drift:lM(this._onHandleDragMove,this),ondragend:lM(this._onHandleDragEnd,this)}),n.add(r)),fM(r,e,!1),r.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),V(a=i.get("size"))||(a=[a,a]),r.scaleX=a[0]/2,r.scaleY=a[1]/2,Eg(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)):(r&&n.remove(r),this._handle=null))},uM.prototype._moveHandleToValue=function(t,e){cM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,pM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},uM.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(pM(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(pM(t)),aM(n).lastProp=null,this._doDispatchAxisPointer())},uM.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},uM.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},uM.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;t=t.getZr();var e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Rg(this,"_doDispatchAxisPointer")},uM.prototype.doClear=function(){},uM.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},n(mM,yM=uM),mM.prototype.makeElOption=function(t,e,n,r,i){var o,a,s=n.axis,l=s.grid,u=r.get("type"),c=_M(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(o=(a=r).get("type"),a=a.getModel(o+"Style"),"line"===o?(p=a.getLineStyle()).fill=null:"shadow"===o&&((p=a.getAreaStyle()).stroke=null),o=p,(a=xM[u](s,h,c)).style=o,t.graphicKey=a.type,t.pointer=a),HS(l.model,n));u=e,s=t,h=p,c=n,o=r,a=i,l=KS.innerTextLayout(h.rotation,0,h.labelDirection),h.labelMargin=o.get(["label","margin"]),function(t,e,n,r,i){var o=dM(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=(n=n.getModel("label"),qh(n.get("padding")||0)),s=n.getFont(),l=ei(o,s),u=i.position,c=l.width+a[1]+a[3],h=(l=l.height+a[0]+a[2],i.align);"right"===h&&(u[0]-=c),"center"===h&&(u[0]-=c/2),h=i.verticalAlign,"bottom"===h&&(u[1]-=l),"middle"===h&&(u[1]-=l/2),i=u,h=c,c=l,r=(l=r).getWidth(),l=l.getHeight(),i[0]=Math.min(i[0]+h,r)-h,i[1]=Math.min(i[1]+c,l)-c,i[0]=Math.max(i[0],0),i[1]=Math.max(i[1],0),r=n.get("backgroundColor"),r&&"auto"!==r||(r=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:$c(n,{text:o,font:s,fill:n.getTextColor(),padding:a,backgroundColor:r}),z2:10}}(s,c,o,a,{position:gM(c.axis,u,h),align:l.textAlign,verticalAlign:l.textVerticalAlign})},mM.prototype.getHandleTransform=function(t,e,n){var r=HS(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]),n=gM(e.axis,t,r);return{x:n[0],y:n[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},mM.prototype.updateHandleTransform=function(t,e,n,r){n=n.axis;var i=n.grid,o=n.getGlobalExtent(!0),a=(i=_M(i,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,[t.x,t.y]);a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),e=(i[1]+i[0])/2,o=[e,e];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var yM,vM=mM;function mM(){return null!==yM&&yM.apply(this,arguments)||this}function _M(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var xM={line:function(t,e,n){var r;return r=[e,n[0]],e=[e,n[1]],n=bM(t),{type:"Line",subPixelOptimize:!0,shape:{x1:r[n=n||0],y1:r[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:(e=[e-r/2,n[0]],n=[r,i],r=bM(t),{x:e[r=r||0],y:e[1-r],width:n[r],height:n[1-r]})}}};function bM(t){return"x"===t.dim?0:1}n(kM,wM=gp),kM.type="axisPointer",kM.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var wM,SM=kM;function kM(){var t=null!==wM&&wM.apply(this,arguments)||this;return t.type=kM.type,t}var MM=lo(),AM=R;function TM(t,e,n){var r,i,a;function s(t,e){i.on(t,(function(t){n=a;var n,r,o={dispatchAction:function t(e){var i=r[e.type];i?i.push(e):(e.dispatchAction=t,n.dispatchAction(e))},pendings:r={showTip:[],hideTip:[]}};AM(MM(i).records,(function(n){n&&e(n,t,o.dispatchAction)}));var s,l=o.pendings,u=a,c=l.showTip.length,h=l.hideTip.length;c?s=l.showTip[c-1]:h&&(s=l.hideTip[h-1]),s&&(s.dispatchAction=null,u.dispatchAction(s))}))}o.node||(r=e.getZr(),MM(r).records||(MM(r).records={}),a=e,MM(i=r).initialized||(MM(i).initialized=!0,s("click",H(IM,"click")),s("mousemove",H(IM,"mousemove")),s("globalout",CM)),(MM(r).records[t]||(MM(r).records[t]={})).handler=n)}function CM(t,e,n){t.handler("leave",null,n)}function IM(t,e,n,r){e.handler(t,n,r)}function OM(t,e){o.node||(e=e.getZr(),(MM(e).records||{})[t]&&(MM(e).records[t]=null))}n(LM,PM=mg),LM.prototype.render=function(t,e,n){e=e.getComponent("tooltip");var r=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";TM("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||0<=r.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},LM.prototype.remove=function(t,e){OM("axisPointer",e)},LM.prototype.dispose=function(t,e){OM("axisPointer",e)},LM.type="axisPointer";var PM,DM=LM;function LM(){var t=null!==PM&&PM.apply(this,arguments)||this;return t.type=LM.type,t}function EM(t,e){var n,r,i,o,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=so(n=e.getData(),t))||s<0||V(s)?{point:[]}:(r=n.getItemGraphicEl(s),i=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:i&&i.dataToPoint?a=t.isStacked?(e=i.getBaseAxis(),t=i.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(o=[])[t]=n.get(e,s),o[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),i.dataToPoint(o)||[]):i.dataToPoint(n.getValues(N(i.dimensions,(function(t){return n.mapDimension(t)})),s))||[]:r&&((e=r.getBoundingRect().clone()).applyTransform(r.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:r})}var RM=lo();function NM(t,e,n){var r,i,o,a,s,l,u,c,h,p,f,d,g,y,v=t.currTrigger,m=[t.x,t.y],_=t,x=t.dispatchAction||z(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return HM(m)&&(m=EM({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),r=HM(m),i=_.axesInfo,o=b.axesInfo,a="leave"===v||HM(m),s={},e={list:[],map:{}},u={showPointer:H(jM,l={}),showTooltip:H(FM,e)},R(b.coordSysMap,(function(t,e){var n=r||t.containPoint(m);R(b.coordSysAxesInfo[e],(function(t,e){var o=t.axis,l=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(i,t);a||!n||i&&!l||null!=(l=null!=(l=l&&l.value)||r?l:o.pointToData(m))&&BM(t,l,u,!1,s)}))})),c={},R(o,(function(t,e){var n=t.linkGroup;n&&!l[e]&&R(n.axesInfo,(function(e,r){r=l[r];e!==t&&r&&(r=r.value,n.mapper&&(r=t.axis.scale.parse(n.mapper(r,zM(e),zM(t)))),c[t.key]=r)}))})),R(c,(function(t,e){BM(o[e],t,u,!0,s)})),h=l,_=o,p=s.axesInfo=[],R(_,(function(t,e){var n=t.axisPointerModel.option;e=h[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})})),v=e,_=t,e=x,HM(t=m)||!v.list.length?e({type:"hideTip"}):(x=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:v.list})),e=o,_=(t=n).getZr(),x="axisPointerLastHighlights",f=RM(_)[x]||{},d=RM(_)[x]={},R(e,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&R(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;d[e]=t}))})),g=[],y=[],R(f,(function(t,e){d[e]||y.push(t)})),R(d,(function(t,e){f[e]||g.push(t)})),y.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),g.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:g}),s}function BM(t,e,n,r,i){var o,a,s,l,u,c,h,p,f,d,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,u=a,c=[],h=Number.MAX_VALUE,p=-1,R(t.seriesModels,(function(t,e){var n,r=t.getData().mapDimensionsAll(l);if(t.getAxisTooltipData){var i=t.getAxisTooltipData(r,a,s),o=i.dataIndices;i=i.nestestValue}else{if(!(o=t.getData().indicesOfNearest(r[0],a,"category"===s.type?.5:null)).length)return;i=t.getData().get(r[0],o[0])}null!=i&&isFinite(i)&&(r=a-i,(n=Math.abs(r))<=h)&&((n'):""),$(t))o.innerHTML=t+h;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var p,f=0;f"),u.join(e));this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,p,s,Math.random()+"",i[0],i[1],h,null,c)}))},hA.prototype._showSeriesItemTooltip=function(t,e,n){var r,i,o,a,s,l=this._ecModel,u=(e=Cs(e),e.seriesIndex),c=l.getSeriesByIndex(u),h=e.dataModel||c,p=e.dataIndex,f=(e=e.dataType,h.getData(e)),d=this._renderMode,g=t.positionDefault,y=pA([f.getItemModel(p),h,c&&(c.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null);c=y.get("trigger");null!=c&&"item"!==c||(r=h.getDataParams(p,e),i=new ig,r.marker=i.makeTooltipMarker("item",Qh(r.color),d),g=Jf(h.formatTooltip(p,!1,e)),c=y.get("order"),e=y.get("valueFormatter"),o=g.frag,a=o?tg(e?C({valueFormatter:e},o):o,i,d,c,l.get("useUTC"),y.get("textStyle")):g.text,s="item_"+h.name+"_"+p,this._showOrMove(y,(function(){this._showTooltipContent(y,a,r,s,t.offsetX,t.offsetY,t.position,t.target,i)})),n({type:"showTip",dataIndexInside:p,dataIndex:f.getRawIndex(p),seriesIndex:u,from:this.uid}))},hA.prototype._showComponentItemTooltip=function(t,e,n){var r=Cs(e),i=r.tooltipConfig.option||{},o=[i=$(i)?{content:i,formatter:i}:i],a=(r=this._ecModel.getComponent(r.componentMainType,r.componentIndex),r=(r&&o.push(r),o.push({formatter:i.content}),t.positionDefault),pA(o,this._tooltipModel,r?{position:r}:null)),s=a.get("content"),l=Math.random()+"",u=new ig;this._showOrMove(a,(function(){var n=A(a.get("formatterParams")||{});this._showTooltipContent(a,s,n,l,t.offsetX,t.offsetY,t.position,e,u)})),n({type:"showTip",from:this.uid})},hA.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){var u,c,h,p,f;this._ticket="",t.get("showContent")&&t.get("show")&&((u=this._tooltipContent).setEnterable(t.get("enterable")),c=t.get("formatter"),a=a||t.get("position"),e=e,h=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")).color,c&&(e=$(c)?(p=t.ecModel.get("useUTC"),e=c,Kh(e=(f=V(n)?n[0]:n)&&f.axisType&&0<=f.axisType.indexOf("time")?Ih(f.axisValue,e,p):e,n,!0)):U(c)?(f=z((function(e,r){e===this._ticket&&(u.setContent(r,l,t,h,a),this._updatePosition(t,a,i,o,u,n,s))}),this),this._ticket=r,c(n,r,f)):c),u.setContent(e,l,t,h,a),u.show(t,h),this._updatePosition(t,a,i,o,u,n,s))},hA.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||V(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:V(e)?void 0:{color:r||e.color||e.borderColor}},hA.prototype._updatePosition=function(t,e,n,r,i,o,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),c=(e=e||t.get("position"),i.getSize()),h=t.get("align"),p=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();a&&f.applyTransform(a.transform),V(e=U(e)?e([n,r],o,i.el,f,{viewSize:[l,u],contentSize:c.slice()}):e)?(n=Pi(e[0],l),r=Pi(e[1],u)):q(e)?((o=e).width=c[0],o.height=c[1],n=(o=ap(o,{width:l,height:u})).x,r=o.y,p=h=null):(n=(s=$(e)&&a?function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,f,c,t.get("borderWidth")):function(t,e,n,r,i,o,a){n=n.getSize();var s=n[0];n=n[1];return null!=o&&(ro&&(e[1-r]=e[r]+n.sign*o)}function OA(t,e){return t=t[e]-t[1-e],{span:Math.abs(t),sign:0e[1]&&(e[1]=t[1])}))})),[(e=G_((i=e.getAxisModel()).axis.scale,i,r).calculate()).min,e.max]),this._updateMinMaxSpan(),i=this.calculateDataWindow(t.settledOption),this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel())},QA.prototype.filterData=function(t,e){var n,r,i,o;t===this._dataZoomModel&&(n=this._dimName,r=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow,"none"!==i)&&ZA(r,(function(t){var e,r,a=t.getData(),s=a.mapDimensionsAll(n);s.length&&("weakFilter"===i?(e=a.getStore(),r=N(s,(function(t){return a.getDimensionIndex(t)}),a),a.filterSelf((function(t){for(var n,i,a,l=0;lo[1];if(c&&!h&&!u)return!0;c&&(a=!0),h&&(n=!0),u&&(i=!0)}return a&&n&&i}))):ZA(s,(function(e){var n;"empty"===i?t.setData(a=a.map(e,(function(t){return(e=t)>=o[0]&&e<=o[1]?t:NaN;var e}))):((n={})[e]=o,a.selectRange(n))})),ZA(s,(function(t){a.setApproximateExtent(o,t)})))}))},QA.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ZA(["min","max"],(function(r){var i=e.get(r+"Span"),o=e.get(r+"ValueSpan");null!=(o=null!=o?this.getAxisModel().axis.scale.parse(o):o)?i=Oi(n[0]+o,n,[0,100],!0):null!=i&&(o=Oi(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=o}),this)},QA.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;n&&(t=Ni(r,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+r[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+r[1].toFixed(t)),e.freeze())},QA);function QA(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}var tT={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(vA(r),i);e(r,i,o,n)}))}))}e((function(t,e,n,r){n.__dzAxisProxy=null}));var n=[],r=(e((function(e,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new JA(e,r,o,t),n.push(i.__dzAxisProxy))})),yt());return R(n,(function(t){R(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))}))}},eT=!1;function nT(t){eT||(eT=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,tT),t.registerAction("dataZoom",(function(t,e){R(function(t,e){var n,r=yt(),i=[],o=yt();for(t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));n=!1,t.eachComponent("dataZoom",a),n;);function a(t){var e;!o.get(t.uid)&&(e=!1,t.eachTargetAxis((function(t,n){t=r.get(t),t&&t[n]&&(e=!0)})),e)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),i.push(t),t.eachTargetAxis((function(t,e){(r.get(t)||r.set(t,[]))[e]=!0}))}return i}(e,t),(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))})),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function rT(t){nT(t),t.registerComponentModel(MA),t.registerComponentView(WA),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=zA(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=yt());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){R(mA(t).infoList,(function(n){var i,o,a=n.model.uid,s=r.get(a)||r.set(a,(a=e,s=n.model,i={model:s,containsPoint:H(UA,s),dispatchAction:H(VA,a),dataZoomInfoMap:null,controller:null},o=i.controller=new RA(a.getZr()),R(["pan","zoom","scrollMove"],(function(t){o.on(t,(function(e){var n=[];i.dataZoomInfoMap.each((function(r){var o;e.isAvailableBehavior(r.model.option)&&(o=(o=(r.getRange||{})[t])&&o(r.dzReferCoordSysInfo,i.model.mainType,i.controller,e),!r.model.get("disabled",!0))&&o&&n.push({dataZoomId:r.model.id,start:o[0],end:o[1]})})),n.length&&i.dispatchAction(n)}))})),i));(s.dataZoomInfoMap||(s.dataZoomInfoMap=yt())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),r.each((function(t){var e,n,i,o,a,s=t.controller,l=t.dataZoomInfoMap;(e=l&&null!=(n=l.keys()[0])?l.get(n):e)?(o={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0,l.each((function(t){t=t.model;var e=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");o["type_"+i]e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction(!1))},dT.prototype._onBrushStart=function(t){var e=t.offsetX;t=t.offsetY;this._brushStart=new ke(e,t),this._brushing=!0,this._brushStartTime=+new Date},dT.prototype._onBrushEnd=function(t){var e,n,r;this._brushing&&(e=this._displayables.brushRect,this._brushing=!1,e)&&(e.attr("ignore",!0),e=e.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),this._range=Li([Oi(e.x,n,r=[0,100],!0),Oi(e.x+e.width,n,r,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},dT.prototype._onBrush=function(t){this._brushing&&(ue(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},dT.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new lT({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1),r=this._brushStart,n=this._displayables.sliderGroup,t=n.transformCoordToLocal(t,e),e=n.transformCoordToLocal(r.x,r.y),n=this._size;t[0]=Math.max(Math.min(n[0],t[0]),0),i.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},dT.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?pT:null,start:e[0],end:e[1]})},dT.prototype._findCoordRect=function(){var t,e,n=mA(this.dataZoomModel).infoList;return(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},dT.type="dataZoom.slider",dT);function dT(){var t=null!==sT&&sT.apply(this,arguments)||this;return t.type=dT.type,t._displayables={},t}function gT(t){return"vertical"===t?"ns-resize":"ew-resize"}function yT(t){t.registerComponentModel(oT),t.registerComponentView(fT),nT(t)}ax((function(t){ax(rT),ax(yT)})),ax(Tb);var vT={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},mT=(_T.prototype.evaluate=function(t){var e=s(t);return $(e)?this._condVal.test(t):!!G(e)&&this._condVal.test(t+"")},_T);function _T(t){null==(this._condVal=$(t)?new RegExp(t):Q(t)?t:null)&&Xi("")}bT.prototype.evaluate=function(){return this.value};var xT=bT;function bT(){}ST.prototype.evaluate=function(){for(var t=this.children,e=0;e>>6,o[s++]=128|63&i):i<55296||i>=57344?(o[s++]=224|i>>>12,o[s++]=128|i>>>6&63,o[s++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++n)),o[s++]=240|i>>>18,o[s++]=128|i>>>12&63,o[s++]=128|i>>>6&63,o[s++]=128|63&i);t=o}t.length>64&&(t=new k(!0).update(t).array());var l=[],u=[];for(n=0;n<64;++n){var c=t[n]||0;l[n]=92^c,u[n]=54^c}k.call(this,e),this.update(u),this.oKeyPad=l,this.inner=!0,this.sharedMemory=e}k.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=x(t);t=e[0];var n,r,i=e[1],o=0,a=t.length||0,s=this.blocks;while(o>>2]|=n<>>2]|=(192|n>>>6)<>>2]|=(128|63&n)<=57344?(s[r>>>2]|=(224|n>>>12)<>>2]|=(128|n>>>6&63)<>>2]|=(128|63&n)<>>2]|=(240|n>>>18)<>>2]|=(128|n>>>12&63)<>>2]|=(128|n>>>6&63)<>>2]|=(128|63&n)<>>2]|=t[o]<=64?(this.block=s[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},k.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>>2]|=d[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},k.prototype.hash=function(){var t,e,n,r=this.h0,i=this.h1,o=this.h2,a=this.h3,s=this.h4,l=this.blocks;for(e=16;e<80;++e)n=l[e-3]^l[e-8]^l[e-14]^l[e-16],l[e]=n<<1|n>>>31;for(e=0;e<20;e+=5)t=i&o|~i&a,n=r<<5|r>>>27,s=n+t+s+1518500249+l[e]<<0,i=i<<30|i>>>2,t=r&i|~r&o,n=s<<5|s>>>27,a=n+t+a+1518500249+l[e+1]<<0,r=r<<30|r>>>2,t=s&r|~s&i,n=a<<5|a>>>27,o=n+t+o+1518500249+l[e+2]<<0,s=s<<30|s>>>2,t=a&s|~a&r,n=o<<5|o>>>27,i=n+t+i+1518500249+l[e+3]<<0,a=a<<30|a>>>2,t=o&a|~o&s,n=i<<5|i>>>27,r=n+t+r+1518500249+l[e+4]<<0,o=o<<30|o>>>2;for(;e<40;e+=5)t=i^o^a,n=r<<5|r>>>27,s=n+t+s+1859775393+l[e]<<0,i=i<<30|i>>>2,t=r^i^o,n=s<<5|s>>>27,a=n+t+a+1859775393+l[e+1]<<0,r=r<<30|r>>>2,t=s^r^i,n=a<<5|a>>>27,o=n+t+o+1859775393+l[e+2]<<0,s=s<<30|s>>>2,t=a^s^r,n=o<<5|o>>>27,i=n+t+i+1859775393+l[e+3]<<0,a=a<<30|a>>>2,t=o^a^s,n=i<<5|i>>>27,r=n+t+r+1859775393+l[e+4]<<0,o=o<<30|o>>>2;for(;e<60;e+=5)t=i&o|i&a|o&a,n=r<<5|r>>>27,s=n+t+s-1894007588+l[e]<<0,i=i<<30|i>>>2,t=r&i|r&o|i&o,n=s<<5|s>>>27,a=n+t+a-1894007588+l[e+1]<<0,r=r<<30|r>>>2,t=s&r|s&i|r&i,n=a<<5|a>>>27,o=n+t+o-1894007588+l[e+2]<<0,s=s<<30|s>>>2,t=a&s|a&r|s&r,n=o<<5|o>>>27,i=n+t+i-1894007588+l[e+3]<<0,a=a<<30|a>>>2,t=o&a|o&s|a&s,n=i<<5|i>>>27,r=n+t+r-1894007588+l[e+4]<<0,o=o<<30|o>>>2;for(;e<80;e+=5)t=i^o^a,n=r<<5|r>>>27,s=n+t+s-899497514+l[e]<<0,i=i<<30|i>>>2,t=r^i^o,n=s<<5|s>>>27,a=n+t+a-899497514+l[e+1]<<0,r=r<<30|r>>>2,t=s^r^i,n=a<<5|a>>>27,o=n+t+o-899497514+l[e+2]<<0,s=s<<30|s>>>2,t=a^s^r,n=o<<5|o>>>27,i=n+t+i-899497514+l[e+3]<<0,a=a<<30|a>>>2,t=o^a^s,n=i<<5|i>>>27,r=n+t+r-899497514+l[e+4]<<0,o=o<<30|o>>>2;this.h0=this.h0+r<<0,this.h1=this.h1+i<<0,this.h2=this.h2+o<<0,this.h3=this.h3+a<<0,this.h4=this.h4+s<<0},k.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3,i=this.h4;return f[t>>>28&15]+f[t>>>24&15]+f[t>>>20&15]+f[t>>>16&15]+f[t>>>12&15]+f[t>>>8&15]+f[t>>>4&15]+f[15&t]+f[e>>>28&15]+f[e>>>24&15]+f[e>>>20&15]+f[e>>>16&15]+f[e>>>12&15]+f[e>>>8&15]+f[e>>>4&15]+f[15&e]+f[n>>>28&15]+f[n>>>24&15]+f[n>>>20&15]+f[n>>>16&15]+f[n>>>12&15]+f[n>>>8&15]+f[n>>>4&15]+f[15&n]+f[r>>>28&15]+f[r>>>24&15]+f[r>>>20&15]+f[r>>>16&15]+f[r>>>12&15]+f[r>>>8&15]+f[r>>>4&15]+f[15&r]+f[i>>>28&15]+f[i>>>24&15]+f[i>>>20&15]+f[i>>>16&15]+f[i>>>12&15]+f[i>>>8&15]+f[i>>>4&15]+f[15&i]},k.prototype.toString=k.prototype.hex,k.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3,i=this.h4;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,i>>>24&255,i>>>16&255,i>>>8&255,255&i]},k.prototype.array=k.prototype.digest,k.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(20),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),t},M.prototype=new k,M.prototype.finalize=function(){if(k.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();k.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),k.prototype.finalize.call(this)}};var A=function(){var t=b("hex");u&&(t=w(t)),t.create=function(){return new k},t.update=function(e){return t.create().update(e)};for(var e=0;e=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!o).join("/"),t||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=function(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e50d:function(t,e,n){var r=n("7037")["default"];t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},eb38:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.compareVersion=function(t,e){t=t.split("."),e=e.split(".");var n=Math.max(t.length,e.length);while(t.lengtho)return 1;if(i