(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],[,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["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],c=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function u(e){return(!c||1154!==c.scene||!i.includes(e))&&(n.indexOf(e)>-1||"function"===typeof s[e])}function l(){var e={};for(var t in s)u(t)&&(e[t]=s[t]);return e}o[a]=l(),o[a].canIUse("getAppBaseInfo")||(o[a].getAppBaseInfo=o[a].getSystemInfoSync),o[a].canIUse("getWindowInfo")||(o[a].getWindowInfo=o[a].getSystemInfoSync),o[a].canIUse("getDeviceInfo")||(o[a].getDeviceInfo=o[a].getSystemInfoSync);var f=o[a];t.default=f},function(e,t,r){"use strict";(function(e,n){var i=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Ur,t.createComponent=Xr,t.createPage=Jr,t.createPlugin=en,t.createSubpackageApp=Zr,t.default=void 0;var o,a=i(r(5)),s=i(r(11)),c=i(r(15)),u=i(r(18)),l=i(r(13)),f=r(22),d=i(r(25));function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t-1},e.prototype.uniIDHasPermission=function(e){var t=m(),r=t.permission;return this.uniIDHasRole("admin")||r.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=m(),t=e.tokenExpired;return t>Date.now()}}o="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!v.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var r,n,i="",o=0;o>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var b=Object.prototype.toString,w=Object.prototype.hasOwnProperty;function A(e){return"function"===typeof e}function _(e){return"string"===typeof e}function S(e){return null!==e&&"object"===(0,l.default)(e)}function k(e){return"[object Object]"===b.call(e)}function P(e,t){return w.call(e,t)}function T(){}function C(e){var t=Object.create(null);return function(r){var n=t[r];return n||(t[r]=e(r))}}var O=/-(\w)/g,E=C((function(e){return e.replace(O,(function(e,t){return t?t.toUpperCase():""}))}));function I(e){var t={};return k(e)&&Object.keys(e).sort().forEach((function(r){t[r]=e[r]})),Object.keys(t)?t:e}var M=["invoke","success","fail","complete","returnValue"],L={},j={};function D(e,t){var r=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return r?B(r):r}function B(e){for(var t=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(r){if(Array.isArray(e[r])){var n=t[r];t[r]=function(i){H(e[r],i,t).then((function(e){return A(n)&&n(e)||e}))}}})),t}function Q(e,t){var r=[];Array.isArray(L.returnValue)&&r.push.apply(r,(0,u.default)(L.returnValue));var n=j[e];return n&&Array.isArray(n.returnValue)&&r.push.apply(r,(0,u.default)(n.returnValue)),r.forEach((function(e){t=e(t)||t})),t}function V(e){var t=Object.create(null);Object.keys(L).forEach((function(e){"returnValue"!==e&&(t[e]=L[e].slice())}));var r=j[e];return r&&Object.keys(r).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(r[e]))})),t}function K(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length,i=new Array(n>1?n-1:0),o=1;o-1?ge:e.indexOf("-hant")>-1||Te(e,["-tw","-hk","-mo","-cht"])?ve:ge;var r=Ce(e,[ye,me,xe]);return r||void 0}}function Ee(){if(A(getApp)){var e=getApp({allowDefault:!0});if(e&&e.$vm)return e.$vm.$locale}return we()}function Ie(e){var t=!!A(getApp)&&getApp();if(!t)return!1;var r=t.$vm.$locale;return r!==e&&(t.$vm.$locale=e,Me.forEach((function(t){return t({locale:e})})),!0)}var Me=[];function Le(e){-1===Me.indexOf(e)&&Me.push(e)}"undefined"!==typeof n&&(n.getLocale=Ee);var je={promiseInterceptor:G},De=Object.freeze({__proto__:null,upx2px:pe,rpx2px:pe,getLocale:Ee,setLocale:Ie,onLocaleChange:Le,addInterceptor:U,removeInterceptor:$,interceptors:je});function Be(e){var t=getCurrentPages(),r=t.length;while(r--){var n=t[r];if(n.$page&&n.$page.fullPath===e)return r}return-1}var Fe,Ne={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=Be(e.url);if(-1!==t){var r=getCurrentPages().length-1-t;r>0&&(e.delta=r)}}}},Re={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var r=e.urls;if(Array.isArray(r)){var n=r.length;if(n)return t<0?t=0:t>=n&&(t=n-1),t>0?(e.current=r[t],e.urls=r.filter((function(e,n){return!(n2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(k(t)){var o=!0===i?t:{};for(var a in A(r)&&(r=r(t,o)||{}),t)if(P(r,a)){var s=r[a];A(s)&&(s=s(t[a],t,o)),s?_(s)?o[s]=t[a]:k(s)&&(o[s.name?s.name:a]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==ot.indexOf(a)?A(t[a])&&(o[a]=at(e,t[a],n)):i||(o[a]=t[a]);return o}return A(t)&&(t=at(e,t,n)),t}function ct(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return A(rt.returnValue)&&(t=rt.returnValue(e,t)),st(e,t,r,{},n)}function ut(t,r){if(P(rt,t)){var n=rt[t];return n?function(r,i){var o=n;A(n)&&(o=n(r)),r=st(t,r,o.args,o.returnValue);var a=[r];"undefined"!==typeof i&&a.push(i),A(o.name)?t=o.name(r):_(o.name)&&(t=o.name);var s=e[t].apply(e,a);return re(t)?ct(t,s,o.returnValue,te(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return r}var lt=Object.create(null),ft=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function dt(e){return function(t){var r=t.fail,n=t.complete,i={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};A(r)&&r(i),A(n)&&n(i)}}ft.forEach((function(e){lt[e]=dt(e)}));var pt={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function ht(e){var t=e.service,r=e.success,n=e.fail,i=e.complete,o=!1;pt[t]?(o={errMsg:"getProvider:ok",service:t,provider:pt[t]},A(r)&&r(o)):(o={errMsg:"getProvider:fail service not found"},A(n)&&n(o)),A(i)&&i(o)}var gt=Object.freeze({__proto__:null,getProvider:ht}),vt=function(){var e;return function(){return e||(e=new d.default),e}}();function yt(e,t,r){return e[t].apply(e,r)}function mt(){return yt(vt(),"$on",Array.prototype.slice.call(arguments))}function xt(){return yt(vt(),"$off",Array.prototype.slice.call(arguments))}function bt(){return yt(vt(),"$once",Array.prototype.slice.call(arguments))}function wt(){return yt(vt(),"$emit",Array.prototype.slice.call(arguments))}var At,_t,St,kt=Object.freeze({__proto__:null,$on:mt,$off:xt,$once:bt,$emit:wt});function Pt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Tt(e){var t={};for(var r in e){var n=e[r];A(n)&&(t[r]=Pt(n),delete e[r])}return t}function Ct(e){try{return JSON.parse(e)}catch(t){}return e}function Ot(e){if("enabled"===e.type)St=!0;else if("clientId"===e.type)At=e.cid,_t=e.errMsg,It(At,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Ct(e.message)},r=0;r-1&&Lt.splice(t,1)}else Lt.length=0};function Bt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0;i--){var o=n[i];if(o.$scope._$vueId===t)return o}for(var a=n.length-1;a>=0;a--)if(r=zt(n[a],t),r)return r}function qt(e){return Behavior(e)}function Ht(){return!!this.route}function Wt(e){this.triggerEvent("__l",e)}function Qt(e,t,r){var n=e.selectAllComponents(t)||[];n.forEach((function(e){var n=e.dataset.ref;r[n]=e.$vm||Jt(e),"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){Qt(e,t,r)}))}))}function Vt(e,t){var r=(0,c.default)(Set,(0,u.default)(Object.keys(e))),n=Object.keys(t);return n.forEach((function(n){var i=e[n],o=t[n];Array.isArray(i)&&Array.isArray(o)&&i.length===o.length&&o.every((function(e){return i.includes(e)}))||(e[n]=o,r.delete(n))})),r.forEach((function(t){delete e[t]})),e}function Kt(e){var t=e.$scope,r={};Object.defineProperty(e,"$refs",{get:function(){var e={};Qt(t,".vue-ref",e);var n=t.selectAllComponents(".vue-ref-in-for")||[];return n.forEach((function(t){var r=t.dataset.ref;e[r]||(e[r]=[]),e[r].push(t.$vm||Jt(t))})),Vt(r,e)}})}function Gt(e){var t,r=e.detail||e.value,n=r.vuePid,i=r.vueOptions;n&&(t=zt(this.$vm,n)),t||(t=this.$vm),i.parent=t}function Yt(e){var t="__v_isMPComponent";return Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:!0}),e}function Jt(e){var t="__ob__",r="__v_skip";return S(e)&&Object.isExtensible(e)&&Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:(0,s.default)({},r,!0)}),e}var Xt=/_(.*)_worklet_factory_/;function Zt(e,t){t&&Object.keys(t).forEach((function(r){var n=r.match(Xt);if(n){var i=n[1];e[r]=t[r],e[i]=t[i]}}))}var er=Page,tr=Component,rr=/:/g,nr=C((function(e){return E(e.replace(rr,"-"))}));function ir(e){var t=e.triggerEvent,r=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return or("onLoad",e),er(e)},Page.after=er.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return or("created",e),tr(e)});var ar=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function sr(e,t){var r=e.$mp[e.mpType];t.forEach((function(t){P(r,t)&&(e[t]=r[t])}))}function cr(e,t){if(!t)return!0;if(d.default.options&&Array.isArray(d.default.options[e]))return!0;if(t=t.default||t,A(t))return!!A(t.extendOptions[e])||!!(t.super&&t.super.options&&Array.isArray(t.super.options[e]));if(A(t[e])||Array.isArray(t[e]))return!0;var r=t.mixins;return Array.isArray(r)?!!r.find((function(t){return cr(e,t)})):void 0}function ur(e,t,r){t.forEach((function(t){cr(t,r)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function lr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];fr(t).forEach((function(t){return dr(e,t,r)}))}function fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(r){0===r.indexOf("on")&&A(e[r])&&t.push(r)})),t}function dr(e,t,r){-1!==r.indexOf(t)||P(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function pr(e,t){var r;return t=t.default||t,r=A(t)?t:e.extend(t),t=r.options,[r,t]}function hr(e,t){if(Array.isArray(t)&&t.length){var r=Object.create(null);t.forEach((function(e){r[e]=!0})),e.$scopedSlots=e.$slots=r}}function gr(e,t){e=(e||"").split(",");var r=e.length;1===r?t._$vueId=e[0]:2===r&&(t._$vueId=e[0],t._$vuePid=e[1])}function vr(e,t){var r=e.data||{},n=e.methods||{};if("function"===typeof r)try{r=r.call(t)}catch(i){Object({NODE_ENV:"development",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"small-program",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",r)}else try{r=JSON.parse(JSON.stringify(r))}catch(i){}return k(r)||(r={}),Object.keys(n).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||P(r,e)||(r[e]=n[e])})),r}var yr=[String,Number,Boolean,Object,Array,null];function mr(e){return function(t,r){this.$vm&&(this.$vm[e]=t)}}function xr(e,t){var r=e.behaviors,n=e.extends,i=e.mixins,o=e.props;o||(e.props=o=[]);var a=[];return Array.isArray(r)&&r.forEach((function(e){a.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),k(n)&&n.props&&a.push(t({properties:wr(n.props,!0)})),Array.isArray(i)&&i.forEach((function(e){k(e)&&e.props&&a.push(t({properties:wr(e.props,!0)}))})),a}function br(e,t,r,n){return Array.isArray(t)&&1===t.length?t[0]:t}function wr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>3?arguments[3]:void 0,n={};return t||(n.vueId={type:String,value:""},r.virtualHost&&(n.virtualHostStyle={type:null,value:""},n.virtualHostClass={type:null,value:""}),n.scopedSlotsCompiler={type:String,value:""},n.vueSlots={type:null,value:[],observer:function(e,t){var r=Object.create(null);e.forEach((function(e){r[e]=!0})),this.setData({$slots:r})}}),Array.isArray(e)?e.forEach((function(e){n[e]={type:null,observer:mr(e)}})):k(e)&&Object.keys(e).forEach((function(t){var r=e[t];if(k(r)){var i=r.default;A(i)&&(i=i()),r.type=br(t,r.type),n[t]={type:-1!==yr.indexOf(r.type)?r.type:null,value:i,observer:mr(t)}}else{var o=br(t,r);n[t]={type:-1!==yr.indexOf(o)?o:null,observer:mr(t)}}})),n}function Ar(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=T,e.preventDefault=T,e.target=e.target||{},P(e,"detail")||(e.detail={}),P(e,"markerId")&&(e.detail="object"===(0,l.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),k(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function _r(e,t){var r=e;return t.forEach((function(t){var n=t[0],i=t[2];if(n||"undefined"!==typeof i){var o,a=t[1],s=t[3];Number.isInteger(n)?o=n:n?"string"===typeof n&&n&&(o=0===n.indexOf("#s#")?n.substr(3):e.__get_value(n,r)):o=r,Number.isInteger(o)?r=i:a?Array.isArray(o)?r=o.find((function(t){return e.__get_value(a,t)===i})):k(o)?r=Object.keys(o).find((function(t){return e.__get_value(a,o[t])===i})):console.error("v-for 暂不支持循环数据:",o):r=o[i],s&&(r=e.__get_value(s,r))}})),r}function Sr(e,t,r,n){var i={};return Array.isArray(t)&&t.length&&t.forEach((function(t,o){"string"===typeof t?t?"$event"===t?i["$"+o]=r:"arguments"===t?i["$"+o]=r.detail&&r.detail.__args__||n:0===t.indexOf("$event.")?i["$"+o]=e.__get_value(t.replace("$event.",""),r):i["$"+o]=e.__get_value(t):i["$"+o]=e:i["$"+o]=_r(e,t)})),i}function kr(e){for(var t={},r=1;r2&&void 0!==arguments[2]?arguments[2]:[],n=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=k(t.detail)&&t.detail.__args__||[t.detail];if(i&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!r.length))return a?[t]:s;var c=Sr(e,n,t,s),u=[];return r.forEach((function(e){"$event"===e?"__set_model"!==o||i?i&&!a?u.push(s[0]):u.push(t):u.push(t.target.value):Array.isArray(e)&&"o"===e[0]?u.push(kr(e)):"string"===typeof e&&P(c,e)?u.push(c[e]):u.push(e)})),u}var Tr="~",Cr="^";function Or(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}function Er(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}function Ir(e){var t=this;e=Ar(e);var r=(e.currentTarget||e.target).dataset;if(!r)return console.warn("事件信息不存在");var n=r.eventOpts||r["event-opts"];if(!n)return console.warn("事件信息不存在");var i=e.type,o=[];return n.forEach((function(r){var n=r[0],a=r[1],s=n.charAt(0)===Cr;n=s?n.slice(1):n;var c=n.charAt(0)===Tr;n=c?n.slice(1):n,a&&Or(i,n)&&a.forEach((function(r){var n=r[0];if(n){var i=t.$vm;if(i.$options.generic&&(i=Er(i)||i),"$emit"===n)return void i.$emit.apply(i,Pr(t.$vm,e,r[1],r[2],s,n));var a=i[n];if(!A(a)){var u="page"===t.$vm.mpType?"Page":"Component",l=t.route||t.is;throw new Error("".concat(u,' "').concat(l,'" does not have a method "').concat(n,'"'))}if(c){if(a.once)return;a.once=!0}var f=Pr(t.$vm,e,r[1],r[2],s,n);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(f=f.concat([,,,,,,,,,,e])),o.push(a.apply(i,f))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var Mr={};function Lr(e){var t=Mr[e];return delete Mr[e],t}var jr=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Dr(){d.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=d.default.prototype.__call_hook;d.default.prototype.__call_hook=function(t,r){return"onLoad"===t&&r&&r.__id__&&(this.__eventChannel__=Lr(r.__id__),delete r.__id__),e.call(this,t,r)}}function Br(){var e={},t={};function r(e){var t=this.$options.propsData.vueId;if(t){var r=t.split(",")[0];e(r)}}d.default.prototype.$hasSSP=function(r){var n=e[r];return n||(t[r]=this,this.$on("hook:destroyed",(function(){delete t[r]}))),n},d.default.prototype.$getSSP=function(t,r,n){var i=e[t];if(i){var o=i[r]||[];return n?o:o[0]}},d.default.prototype.$setSSP=function(t,n){var i=0;return r.call(this,(function(r){var o=e[r],a=o[t]=o[t]||[];a.push(n),i=a.length-1})),i},d.default.prototype.$initSSP=function(){r.call(this,(function(t){e[t]={}}))},d.default.prototype.$callSSP=function(){r.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},d.default.mixin({destroyed:function(){var r=this.$options.propsData,n=r&&r.vueId;n&&(delete e[n],delete t[n])}})}function Fr(t,r){var n=r.mocks,i=r.initRefs;Dr(),Br(),t.$options.store&&(d.default.prototype.$store=t.$options.store),x(d.default),d.default.prototype.mpHost="mp-weixin",d.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(i(this),sr(this,n))}}});var o={onLaunch:function(r){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",r),this.$vm.__call_hook("onLaunch",r))}};o.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(e){o[e]=a[e]})),ke(d.default,t,Nr()),ur(o,jr),lr(o,t.$options),o}function Nr(){var t="",r=e.getAppBaseInfo(),n=r&&r.language?r.language:ye;return t=Oe(n)||ye,t}function Rr(e){return Fr(e,{mocks:$t,initRefs:Kt})}function Ur(e){return App(Rr(e)),e}var $r=/[!'()*]/g,zr=function(e){return"%"+e.charCodeAt(0).toString(16)},qr=/%2C/g,Hr=function(e){return encodeURIComponent(e).replace($r,zr).replace(qr,",")};function Wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hr,r=e?Object.keys(e).map((function(r){var n=e[r];if(void 0===n)return"";if(null===n)return t(r);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(t(r)):i.push(t(r)+"="+t(e)))})),i.join("&")}return t(r)+"="+t(n)})).filter((function(e){return e.length>0})).join("&"):null;return r?"?".concat(r):""}function Qr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isPage,n=t.initRelation,i=arguments.length>2?arguments[2]:void 0,o=pr(d.default,e),s=(0,a.default)(o,2),c=s[0],u=s[1],l=h({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(l,u["mp-weixin"].options);var f={options:l,data:vr(u,d.default.prototype),behaviors:xr(u,qt),properties:wr(u.props,!1,u.__file,l),lifetimes:{attached:function(){var e=this.properties,t={mpType:r.call(this)?"page":"component",mpInstance:this,propsData:e};gr(e.vueId,this),n.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new c(t),hr(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:Gt,__e:Ir}};return u.externalClasses&&(f.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(e){f.methods[e]=function(t){return this.$vm[e](t)}})),i?[f,u,c]:r?f:[f,c]}function Vr(e,t){return Qr(e,{isPage:Ht,initRelation:Wt},t)}var Kr=["onShow","onHide","onUnload"];function Gr(e){var t=Vr(e,!0),r=(0,a.default)(t,2),n=r[0],i=r[1];return ur(n.methods,Kr,i),n.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Wr(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},lr(n.methods,e,["onReady"]),Zt(n.methods,i.methods),n}function Yr(e){return Gr(e)}function Jr(e){return Component(Yr(e))}function Xr(e){return Component(Vr(e))}function Zr(t){var r=Rr(t),n=getApp({allowDefault:!0});t.$scope=n;var i=n.globalData;if(i&&Object.keys(r.globalData).forEach((function(e){P(i,e)||(i[e]=r.globalData[e])})),Object.keys(r).forEach((function(e){P(n,e)||(n[e]=r[e])})),A(r.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,r=new Array(e),n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:l;if(!t)return[e];var n=this._caches[e];return n||(n=h(e,r),this._caches[e]=n),g(n,t)}}]),e}();t.Formatter=f;var d=/^(?:\d)+/,p=/^(?:\w)+/;function h(e,t){var r=(0,o.default)(t,2),n=r[0],i=r[1],a=[],s=0,c="";while(s-1?v:e.indexOf("-hant")>-1||S(e,["-tw","-hk","-mo","-cht"])?y:v;var r=[m,x,b];t&&Object.keys(t).length>0&&(r=Object.keys(t));var n=k(e,r);return n||void 0}}var T=function(){function e(t){var r=t.locale,n=t.fallbackLocale,i=t.messages,o=t.watcher,s=t.formater;(0,a.default)(this,e),this.locale=m,this.fallbackLocale=m,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=s||_,this.messages=i||{},this.setLocale(r||m),o&&this.watchLocale(o)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,r=this.locale;this.locale=P(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach((function(e){e(t.locale,r)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,r=this.watchers.push(e)-1;return function(){t.watchers.splice(r,1)}}},{key:"add",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.messages[e];n?r?Object.assign(n,t):Object.keys(t).forEach((function(e){A(n,e)||(n[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,r){return this.formater.interpolate(e,t,r).join("")}},{key:"t",value:function(e,t,r){var n=this.message;return"string"===typeof t?(t=P(t,this.messages),t&&(n=this.messages[t])):r=t,A(n,e)?this.formater.interpolate(n[e],r).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function C(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function O(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof n&&n.getLocale?n.getLocale():m}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var i=[t,e];e=i[0],t=i[1]}"string"!==typeof e&&(e=O()),"string"!==typeof r&&(r="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||m);var o=new T({locale:e,fallbackLocale:r,messages:t,watcher:n}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return o.t(e,t)};else{var r=!1;a=function(e,t){var n=getApp().$vm;return n&&(n.$locale,r||(r=!0,C(n,o))),o.t(e,t)}}return a(e,t)};return{i18n:o,f:function(e,t,r){return o.f(e,t,r)},t:function(e,t){return a(e,t)},add:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(e,t,r)},watch:function(e){return o.watchLocale(e)},getLocale:function(){return o.getLocale()},setLocale:function(e){return o.setLocale(e)}}}t.I18n=T;var I,M=function(e){return"string"===typeof e};function L(e,t){return I||(I=new f),U(e,(function(e,r){var n=e[r];return M(n)?!!B(n,t)||void 0:L(n,t)}))}function j(e,t,r){return I||(I=new f),U(e,(function(e,n){var i=e[n];M(i)?B(i,r)&&(e[n]=F(i,t,r)):j(i,t,r)})),e}function D(e,t){var r=t.locale,n=t.locales,i=t.delimiters;if(!B(e,i))return e;I||(I=new f);var o=[];Object.keys(n).forEach((function(e){e!==r&&o.push({locale:e,values:n[e]})})),o.unshift({locale:r,values:n[r]});try{return JSON.stringify(R(JSON.parse(e),o,i),null,2)}catch(a){}return e}function B(e,t){return e.indexOf(t[0])>-1}function F(e,t,r){return I.interpolate(e,t,r).join("")}function N(e,t,r,n){var i=e[t];if(M(i)){if(B(i,n)&&(e[t]=F(i,r[0].values,n),r.length>1)){var o=e[t+"Locales"]={};r.forEach((function(e){o[e.locale]=F(i,e.values,n)}))}}else R(i,r,n)}function R(e,t,r){return U(e,(function(e,n){N(e,n,t,r)})),e}function U(e,t){if(Array.isArray(e)){for(var r=0;r-1}))):t}}function z(e){var t=[],r=e.split("-");while(r.length)t.push(r.join("-")),r.pop();return t}t.isString=M}).call(this,r(2)["default"],r(3))},function(e,t){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){var n=r(12);function i(e,t){for(var r=0;r=0&&Math.floor(t)===t&&isFinite(e)}function g(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function y(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(r,1)}}var A=Object.prototype.hasOwnProperty;function _(e,t){return A.call(e,t)}function S(e){var t=Object.create(null);return function(r){var n=t[r];return n||(t[r]=e(r))}}var k=/-(\w)/g,P=S((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),T=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,O=S((function(e){return e.replace(C,"-$1").toLowerCase()}));function E(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r}function I(e,t){return e.bind(t)}var M=Function.prototype.bind?I:E;function L(e,t){t=t||0;var r=e.length-t,n=new Array(r);while(r--)n[r]=e[r+t];return n}function j(e,t){for(var r in t)e[r]=t[r];return e}function D(e){for(var t={},r=0;r0),ie=(te&&te.indexOf("android"),te&&/iphone|ipad|ipod|ios/.test(te)||"ios"===ee),oe=(te&&/chrome\/\d+/.test(te),te&&/phantomjs/.test(te),te&&te.match(/firefox\/(\d+)/),{}.watch);if(X)try{var ae={};Object.defineProperty(ae,"passive",{get:function(){}}),window.addEventListener("test-passive",null,ae)}catch(Hi){}var se=function(){return void 0===Y&&(Y=!X&&!Z&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Y},ce=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ue(e){return"function"===typeof e&&/native code/.test(e.toString())}var le,fe="undefined"!==typeof Symbol&&ue(Symbol)&&"undefined"!==typeof Reflect&&ue(Reflect.ownKeys);le="undefined"!==typeof Set&&ue(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=B,pe=B,he=B,ge=B,ve="undefined"!==typeof console,ye=/(?:^|[-_])(\w)/g,me=function(e){return e.replace(ye,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};de=function(e,t){var r=t?he(t):"";H.warnHandler?H.warnHandler.call(null,e,t,r):ve&&!H.silent&&console.error("[Vue warn]: "+e+r)},pe=function(e,t){ve&&!H.silent&&console.warn("[Vue tip]: "+e+(t?he(t):""))},ge=function(e,t){if(e.$root===e)return e.$options&&e.$options.__file?""+e.$options.__file:"";var r="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,n=r.name||r._componentTag,i=r.__file;if(!n&&i){var o=i.match(/([^/\\]+)\.vue$/);n=o&&o[1]}return(n?"<"+me(n)+">":"")+(i&&!1!==t?" at "+i:"")};var xe=function(e,t){var r="";while(t)t%2===1&&(r+=e),t>1&&(e+=e),t>>=1;return r};he=function(e){if(e._isVue&&e.$parent){var t=[],r=0;while(e&&"PageBody"!==e.$options.name){if(t.length>0){var n=t[t.length-1];if(n.constructor===e.constructor){r++,e=e.$parent;continue}r>0&&(t[t.length-1]=[n,r],r=0)}!e.$options.isReserved&&t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,t){return""+(0===t?"---\x3e ":xe(" ",5+2*t))+(Array.isArray(e)?ge(e[0])+"... ("+e[1]+" recursive calls)":ge(e))})).join("\n")}return"\n\n(found in "+ge(e)+")"};var be=0,we=function(){this.id=be++,this.subs=[]};function Ae(e){we.SharedObject.targetStack.push(e),we.SharedObject.target=e,we.target=e}function _e(){we.SharedObject.targetStack.pop(),we.SharedObject.target=we.SharedObject.targetStack[we.SharedObject.targetStack.length-1],we.target=we.SharedObject.target}we.prototype.addSub=function(e){this.subs.push(e)},we.prototype.removeSub=function(e){w(this.subs,e)},we.prototype.depend=function(){we.SharedObject.target&&we.SharedObject.target.addDep(this)},we.prototype.notify=function(){var e=this.subs.slice();H.async||e.sort((function(e,t){return e.id-t.id}));for(var t=0,r=e.length;t-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===O(e)){var c=ft(String,i.type);(c<0||s0&&(n=Xt(n,(t||"")+"_"+r),Jt(n[0])&&Jt(u)&&(l[s]=Te(u.text+n[0].text),n.shift()),l.push.apply(l,n)):c(n)?Jt(u)?l[s]=Te(u.text+n):""!==n&&l.push(Te(n)):Jt(n)&&Jt(u)?l[s]=Te(u.text+n.text):(a(e._isVList)&&o(n.tag)&&i(n.key)&&o(t)&&(n.key="__vlist"+t+"_"+r+"__"),l.push(n)));return l}function Zt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function er(e){var t=tr(e.$options.inject,e);t&&(je(!1),Object.keys(t).forEach((function(r){Re(e,r,t[r],(function(){de('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+r+'"',e)}))})),je(!0))}function tr(e,t){if(e){for(var r=Object.create(null),n=fe?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=or(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=ar(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),V(i,"$stable",a),V(i,"$key",s),V(i,"$hasNormal",o),i}function or(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Yt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function ar(e,t){return function(){return e[t]}}function sr(e,t){var r,n,i,a,s;if(Array.isArray(e)||"string"===typeof e)for(r=new Array(e.length),n=0,i=e.length;n.",e),a=new Se(H.parsePlatformTagName(t),r,n,void 0,void 0,e)):a=r&&r.pre||!o(u=nt(e.$options,"components",t))?new Se(t,r,n,void 0,void 0,e):Cr(u,r,e,n,t)):a=Cr(t,r,e,n);return Array.isArray(a)?a:o(a)?(o(s)&&Fr(a,s),o(r)&&Nr(r),a):Pe()}function Fr(e,t,r){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,r=!0),o(e.children))for(var n=0,s=e.children.length;n1?L(n):n;for(var i=L(arguments,1),o='event handler for "'+e+'"',a=0,s=n.length;adocument.createEvent("Event").timeStamp&&(bn=function(){return wn.now()})}function An(){var e,t;for(bn(),yn=!0,dn.sort((function(e,t){return e.id-t.id})),mn=0;mnfn)){de("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var r=pn.slice(),n=dn.slice();xn(),kn(r),_n(n),ce&&H.devtools&&ce.emit("flush")}function _n(e){var t=e.length;while(t--){var r=e[t],n=r.vm;n._watcher===r&&n._isMounted&&!n._isDestroyed&&ln(n,"updated")}}function Sn(e){e._inactive=!1,pn.push(e)}function kn(e){for(var t=0;tmn&&dn[r].id>e.id)r--;dn.splice(r+1,0,e)}else dn.push(e);if(!vn){if(vn=!0,!H.async)return void An();Ot(An)}}}var Tn=0,Cn=function(e,t,r,n,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++Tn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new le,this.newDepIds=new le,this.expression=t.toString(),"function"===typeof t?this.getter=t:(this.getter=G(t),this.getter||(this.getter=B,de('Failed watching path: "'+t+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};Cn.prototype.get=function(){var e;Ae(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Hi){if(!this.user)throw Hi;vt(Hi,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Ut(e),_e(),this.cleanupDeps()}return e},Cn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Cn.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},Cn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Pn(this)},Cn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Hi){vt(Hi,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Cn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Cn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},Cn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||w(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var On={enumerable:!0,configurable:!0,get:B,set:B};function En(e,t,r){On.get=function(){return this[t][r]},On.set=function(e){this[t][r]=e},Object.defineProperty(e,r,On)}function In(e){e._watchers=[];var t=e.$options;t.props&&Mn(e,t.props),t.methods&&Un(e,t.methods),t.data?Ln(e):Ne(e._data={},!0),t.computed&&Bn(e,t.computed),t.watch&&t.watch!==oe&&$n(e,t.watch)}function Mn(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||je(!1);var a=function(a){i.push(a);var s=it(a,t,r,e),c=O(a);(b(c)||H.isReservedAttr(c))&&de('"'+c+'" is a reserved attribute and cannot be used as component prop.',e),Re(n,a,s,(function(){if(!o&&!tn){if("mp-baidu"===e.mpHost||"mp-kuaishou"===e.mpHost||"mp-xhs"===e.mpHost)return;if("value"===a&&Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field"))return;if(e._getFormData)return;var t=e.$parent;while(t){if(t.__next_tick_pending)return;t=t.$parent}de("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+a+'"',e)}})),a in e||En(e,"_props",a)};for(var s in t)a(s);je(!0)}function Ln(e){var t=e.$options.data;t=e._data="function"===typeof t?jn(t,e):t||{},d(t)||(t={},de("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));var r=Object.keys(t),n=e.$options.props,i=e.$options.methods,o=r.length;while(o--){var a=r[o];i&&_(i,a)&&de('Method "'+a+'" has already been defined as a data property.',e),n&&_(n,a)?de('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',e):Q(a)||En(e,"_data",a)}Ne(t,!0)}function jn(e,t){Ae();try{return e.call(t,t)}catch(Hi){return vt(Hi,t,"data()"),{}}finally{_e()}}var Dn={lazy:!0};function Bn(e,t){var r=e._computedWatchers=Object.create(null),n=se();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;null==a&&de('Getter is missing for computed property "'+i+'".',e),n||(r[i]=new Cn(e,a||B,B,Dn)),i in e?i in e.$data?de('The computed property "'+i+'" is already defined in data.',e):e.$options.props&&i in e.$options.props&&de('The computed property "'+i+'" is already defined as a prop.',e):Fn(e,i,o)}}function Fn(e,t,r){var n=!se();"function"===typeof r?(On.get=n?Nn(t):Rn(r),On.set=B):(On.get=r.get?n&&!1!==r.cache?Nn(t):Rn(r.get):B,On.set=r.set||B),On.set===B&&(On.set=function(){de('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,On)}function Nn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),we.SharedObject.target&&t.depend(),t.value}}function Rn(e){return function(){return e.call(this,this)}}function Un(e,t){var r=e.$options.props;for(var n in t)"function"!==typeof t[n]&&de('Method "'+n+'" has type "'+typeof t[n]+'" in the component definition. Did you reference the function correctly?',e),r&&_(r,n)&&de('Method "'+n+'" has already been defined as a prop.',e),n in e&&Q(n)&&de('Method "'+n+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),e[n]="function"!==typeof t[n]?B:M(t[n],e)}function $n(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i-1)return this;var r=L(arguments,1);return r.unshift(this),"function"===typeof e.install?e.install.apply(e,r):"function"===typeof e&&e.apply(null,r),t.push(e),this}}function Jn(e){e.mixin=function(e){return this.options=rt(this.options,e),this}}function Xn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var r=this,n=r.cid,i=e._Ctor||(e._Ctor={});if(i[n])return i[n];var o=e.name||r.options.name;o&&Je(o);var a=function(e){this._init(e)};return a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.cid=t++,a.options=rt(r.options,e),a["super"]=r,a.options.props&&Zn(a),a.options.computed&&ei(a),a.extend=r.extend,a.mixin=r.mixin,a.use=r.use,z.forEach((function(e){a[e]=r[e]})),o&&(a.options.components[o]=a),a.superOptions=r.options,a.extendOptions=e,a.sealedOptions=j({},a.options),i[n]=a,a}}function Zn(e){var t=e.options.props;for(var r in t)En(e.prototype,"_props",r)}function ei(e){var t=e.options.computed;for(var r in t)Fn(e.prototype,r,t[r])}function ti(e){z.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&Je(e),"component"===t&&d(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"===typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}function ri(e){return e&&(e.Ctor.options.name||e.tag)}function ni(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function ii(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var o in r){var a=r[o];if(a){var s=ri(a.componentOptions);s&&!t(s)&&oi(r,o,n,i)}}}function oi(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,w(r,t)}Wn(Gn),qn(Gn),Zr(Gn),on(Gn),zr(Gn);var ai=[String,RegExp,Array],si={name:"keep-alive",abstract:!0,props:{include:ai,exclude:ai,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)oi(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){ii(e,(function(e){return ni(t,e)}))})),this.$watch("exclude",(function(t){ii(e,(function(e){return!ni(t,e)}))}))},render:function(){var e=this.$slots.default,t=Vr(e),r=t&&t.componentOptions;if(r){var n=ri(r),i=this,o=i.include,a=i.exclude;if(o&&(!n||!ni(o,n))||a&&n&&ni(a,n))return t;var s=this,c=s.cache,u=s.keys,l=null==t.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,w(u,l),u.push(l)):(c[l]=t,u.push(l),this.max&&u.length>parseInt(this.max)&&oi(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},ci={KeepAlive:si};function ui(e){var t={get:function(){return H},set:function(){de("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:de,extend:j,mergeOptions:rt,defineReactive:Re},e.set=Ue,e.delete=$e,e.nextTick=Ot,e.observable=function(e){return Ne(e),e},e.options=Object.create(null),z.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,j(e.options.components,ci),Yn(e),Jn(e),Xn(e),ti(e)}ui(Gn),Object.defineProperty(Gn.prototype,"$isServer",{get:se}),Object.defineProperty(Gn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Gn,"FunctionalRenderContext",{value:Ar}),Gn.version="2.6.11";var li="[object Array]",fi="[object Object]",di="[object Null]",pi="[object Undefined]";function hi(e,t){var r={};return gi(e,t),yi(e,t,"",r),r}function gi(e,t){if(e!==t){var r=xi(e),n=xi(t);if(r==fi&&n==fi){if(Object.keys(e).length>=Object.keys(t).length)for(var i in t){var o=e[i];void 0===o?e[i]=null:gi(o,t[i])}}else r==li&&n==li&&e.length>=t.length&&t.forEach((function(t,r){gi(e[r],t)}))}}function vi(e,t){return e!==di&&e!==pi||t!==di&&t!==pi}function yi(e,t,r,n){if(e!==t){var i=xi(e),o=xi(t);if(i==fi)if(o!=fi||Object.keys(e).length1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Ni(e){return Array.isArray(e)?D(e):"string"===typeof e?Fi(e):e}var Ri=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Ui(e,t){var r=t.split("."),n=r[0];return 0===n.indexOf("__$n")&&(n=parseInt(n.replace("__$n",""))),1===r.length?e[n]:Ui(e[n],r.slice(1).join("."))}function $i(e){e.config.errorHandler=function(t,r,n){e.util.warn("Error in "+n+': "'+t.toString()+'"',r),console.error(t);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var r=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(r)try{r.call(this.$scope,e,{__args__:L(arguments,1)})}catch(n){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return ki(this,e)},Ri.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=Zt,e.prototype.__init_injections=er,e.prototype.__call_hook=function(e,t){var r=this;Ae();var n,i=r.$options[e],o=e+" hook";if(i)for(var a=0,s=i.length;a * @license MIT */ var n=r(27),i=r(28),o=r(29);function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function x(e){return+e!=e&&(e=0),u.alloc(+e)}function b(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(n)return Y(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,r);case"utf8":case"utf-8":return M(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return B(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function A(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function _(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,n,i){var o,a=1,s=e.length,c=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;os&&(r=s-c),o=r;o>=0;o--){for(var f=!0,d=0;di&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:o=e[i+1],128===(192&o)&&(c=(31&u)<<6|63&o,c>127&&(l=c));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return j(n)}t.Buffer=u,t.SlowBuffer=x,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return l(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return d(null,e,t,r)},u.allocUnsafe=function(e){return p(null,e)},u.allocUnsafeSlow=function(e){return p(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r),f=0;fi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return k(this,e,t,r);case"utf8":case"utf-8":return P(this,e,t,r);case"ascii":return T(this,e,t,r);case"latin1":case"binary":return C(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function j(e){var t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);var r="",n=0;while(nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function $(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function z(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function q(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(e,t,r,n,o){return o||q(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function W(e,t,r,n,o){return o||q(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(i*=256))n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);var n=this[e],i=1,o=0;while(++o=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);var n=t,i=1,o=this[e+--n];while(n>0&&(i*=256))o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;U(this,e,t,r,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):z(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);U(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);U(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):z(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return H(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return H(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function J(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n)}return o}function Z(e){return n.toByteArray(V(e))}function ee(e,t,r,n){for(var i=0;i=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function te(e){return e!==e}}).call(this,r(3))},function(e,t,r){"use strict";t.byteLength=l,t.toByteArray=d,t.fromByteArray=g;for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function l(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function f(e,t,r){return 3*(t+r)/4-r}function d(e){var t,r,n=u(e),a=n[0],s=n[1],c=new o(f(e,a,s)),l=0,d=s>0?a-4:a;for(r=0;r>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c}function p(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function h(e,t,r){for(var n,i=[],o=t;oc?c:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<>1,l=-7,f=r?i-1:0,d=r?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=u}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,h=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+f>=1?d/c:d*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=h,s/=256,i-=8);for(a=a<0;e[r+p]=255&a,p+=h,a/=256,u-=8);e[r+p-h]|=128*g}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t){},,,,function(e,t,r){var n=r(35)();e.exports=n},function(e,t,r){var n=r(13)["default"];function i(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return r},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,r={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var i=t&&t.prototype instanceof b?t:b,o=Object.create(i.prototype),a=new L(n||[]);return s(o,"_invoke",{value:O(e,r,a)}),o}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var g="suspendedStart",v="suspendedYield",y="executing",m="completed",x={};function b(){}function w(){}function A(){}var _={};d(_,u,(function(){return this}));var S=Object.getPrototypeOf,k=S&&S(S(j([])));k&&k!==o&&a.call(k,u)&&(_=k);var P=A.prototype=b.prototype=Object.create(_);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(i,o,s,c){var u=h(e[i],e,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var i;s(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var i=g;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=E(s,n);if(c){if(c===x)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===g)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var u=h(e,r,n);if("normal"===u.type){if(i=n.done?m:v,u.arg===x)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=m,n.method="throw",n.arg=u.arg)}}}function E(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),x;var o=h(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,x;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,x):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,x)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),x}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),x}},r}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t){function r(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void r(u)}s.done?t(c):Promise.resolve(c).then(n,i)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){"use strict";(function(t){ /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:n});else{var r=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,r.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var n="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},i=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function s(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var r=a(t,(function(t){return t.original===e}));if(r)return r.copy;var n=Array.isArray(e)?[]:{};return t.push({original:e,copy:n}),Object.keys(e).forEach((function(r){n[r]=s(e[r],t)})),n}function c(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function u(e){return null!==e&&"object"===typeof e}function l(e){return e&&"function"===typeof e.then}function f(e,t){if(!e)throw new Error("[vuex] "+t)}function d(e,t){return function(){return e(t)}}var p=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"===typeof r?r():r)||{}},h={namespaced:{configurable:!0}};h.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},p.prototype.forEachChild=function(e){c(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,h);var g=function(e){this.register([],e,!1)};function v(e,t,r){if(w(e,r),t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return void console.warn("[vuex] trying to add a new module '"+n+"' on hot reloading, manual reload is needed");v(e.concat(n),t.getChild(n),r.modules[n])}}g.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},g.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return t=t.getChild(r),e+(t.namespaced?r+"/":"")}),"")},g.prototype.update=function(e){v([],this.root,e)},g.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0),w(e,t);var i=new p(t,r);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&c(t.modules,(function(t,i){n.register(e.concat(i),t,r)}))},g.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n?n.runtime&&t.removeChild(r):console.warn("[vuex] trying to unregister module '"+r+"', which is not registered")},g.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var y,m={assert:function(e){return"function"===typeof e},expected:"function"},x={assert:function(e){return"function"===typeof e||"object"===typeof e&&"function"===typeof e.handler},expected:'function or object with "handler" function'},b={getters:m,mutations:m,actions:x};function w(e,t){Object.keys(b).forEach((function(r){if(t[r]){var n=b[r];c(t[r],(function(t,i){f(n.assert(t),A(e,r,i,t,n.expected))}))}}))}function A(e,t,r,n,i){var o=t+" should be "+i+' but "'+t+"."+r+'"';return e.length>0&&(o+=' in module "'+e.join(".")+'"'),o+=" is "+JSON.stringify(n)+".",o}var _=function e(t){var r=this;void 0===t&&(t={}),!y&&"undefined"!==typeof window&&window.Vue&&F(window.Vue),f(y,"must call Vue.use(Vuex) before creating a store instance."),f("undefined"!==typeof Promise,"vuex requires a Promise polyfill in this browser."),f(this instanceof e,"store must be called with the new operator.");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 g(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new y,this._makeLocalGettersCache=Object.create(null);var a=this,s=this,c=s.dispatch,u=s.commit;this.dispatch=function(e,t){return c.call(a,e,t)},this.commit=function(e,t,r){return u.call(a,e,t,r)},this.strict=i;var l=this._modules.root.state;C(this,l,[],this._modules.root),T(this,l),n.forEach((function(e){return e(r)}));var d=void 0!==t.devtools?t.devtools:y.config.devtools;d&&o(this)},S={state:{configurable:!0}};function k(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function P(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;C(e,r,[],e._modules.root,!0),T(e,r,t)}function T(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};c(i,(function(t,r){o[r]=d(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})}));var a=y.config.silent;y.config.silent=!0,e._vm=new y({data:{$$state:t},computed:o}),y.config.silent=a,e.strict&&j(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),y.nextTick((function(){return n.$destroy()})))}function C(e,t,r,n,i){var o=!r.length,a=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[a]&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[a]=n),!o&&!i){var s=D(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit((function(){c in s&&console.warn('[vuex] state field "'+c+'" was overridden by a module with the same name at "'+r.join(".")+'"'),y.set(s,c,n.state)}))}var u=n.context=O(e,a,r);n.forEachMutation((function(t,r){var n=a+r;I(e,n,t,u)})),n.forEachAction((function(t,r){var n=t.root?r:a+r,i=t.handler||t;M(e,n,i,u)})),n.forEachGetter((function(t,r){var n=a+r;L(e,n,t,u)})),n.forEachChild((function(n,o){C(e,t,r.concat(o),n,i)}))}function O(e,t,r){var n=""===t,i={dispatch:n?e.dispatch:function(r,n,i){var o=B(r,n,i),a=o.payload,s=o.options,c=o.type;if(s&&s.root||(c=t+c,e._actions[c]))return e.dispatch(c,a);console.error("[vuex] unknown local action type: "+o.type+", global type: "+c)},commit:n?e.commit:function(r,n,i){var o=B(r,n,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c,e._mutations[c])?e.commit(c,a,s):console.error("[vuex] unknown local mutation type: "+o.type+", global type: "+c)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return E(e,t)}},state:{get:function(){return D(e.state,r)}}}),i}function E(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function I(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){r.call(e,n.state,t)}))}function M(e,t,r,n){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return l(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function L(e,t,r,n){e._wrappedGetters[t]?console.error("[vuex] duplicate getter key: "+t):e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)}}function j(e){e._vm.$watch((function(){return this._data.$$state}),(function(){f(e._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,sync:!0})}function D(e,t){return t.reduce((function(e,t){return e[t]}),e)}function B(e,t,r){return u(e)&&e.type&&(r=t,t=e,e=e.type),f("string"===typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:r}}function F(e){y&&e===y?console.error("[vuex] already installed. Vue.use(Vuex) should be called only once."):(y=e,r(y))}S.state.get=function(){return this._vm._data.$$state},S.state.set=function(e){f(!1,"use store.replaceState() to explicit replace store state.")},_.prototype.commit=function(e,t,r){var n=this,i=B(e,t,r),o=i.type,a=i.payload,s=i.options,c={type:o,payload:a},u=this._mutations[o];u?(this._withCommit((function(){u.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(c,n.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+o+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+o)},_.prototype.dispatch=function(e,t){var r=this,n=B(e,t),i=n.type,o=n.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,r.state)}))}catch(u){console.warn("[vuex] error in before action subscribers: "),console.error(u)}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,r.state)}))}catch(u){console.warn("[vuex] error in after action subscribers: "),console.error(u)}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,r.state,e)}))}catch(u){console.warn("[vuex] error in error action subscribers: "),console.error(u)}t(e)}))}))}console.error("[vuex] unknown action type: "+i)},_.prototype.subscribe=function(e,t){return k(e,this._subscribers,t)},_.prototype.subscribeAction=function(e,t){var r="function"===typeof e?{before:e}:e;return k(r,this._actionSubscribers,t)},_.prototype.watch=function(e,t,r){var n=this;return f("function"===typeof e,"store.watch only accepts a function."),this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)},_.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},_.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),f(e.length>0,"cannot register the root module by using registerModule."),this._modules.register(e,t),C(this,this.state,e,this._modules.get(e),r.preserveState),T(this,this.state)},_.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit((function(){var r=D(t.state,e.slice(0,-1));y.delete(r,e[e.length-1])})),P(this)},_.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},_.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),P(this,!0)},_.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(_.prototype,S);var N=W((function(e,t){var r={};return H(t)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),q(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=Q(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"===typeof i?i.call(this,t,r):t[i]},r[n].vuex=!0})),r})),R=W((function(e,t){var r={};return H(t)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),q(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.commit;if(e){var o=Q(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"===typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r})),U=W((function(e,t){var r={};return H(t)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),q(t).forEach((function(t){var n=t.key,i=t.val;i=e+i,r[n]=function(){if(!e||Q(this.$store,"mapGetters",e)){if(i in this.$store.getters)return this.$store.getters[i];console.error("[vuex] unknown getter: "+i)}},r[n].vuex=!0})),r})),$=W((function(e,t){var r={};return H(t)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),q(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var o=Q(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"===typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r})),z=function(e){return{mapState:N.bind(null,e),mapGetters:U.bind(null,e),mapMutations:R.bind(null,e),mapActions:$.bind(null,e)}};function q(e){return H(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function H(e){return Array.isArray(e)||u(e)}function W(e){return function(t,r){return"string"!==typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function Q(e,t,r){var n=e._modulesNamespaceMap[r];return n||console.error("[vuex] module namespace not found in "+t+"(): "+r),n}function V(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var r=e.filter;void 0===r&&(r=function(e,t,r){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var u=e.logActions;void 0===u&&(u=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var f=s(e.state);"undefined"!==typeof l&&(c&&e.subscribe((function(e,o){var a=s(o);if(r(e,f,a)){var c=Y(),u=i(e),d="mutation "+e.type+c;K(l,d,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",n(a)),G(l)}f=a})),u&&e.subscribeAction((function(e,r){if(o(e,r)){var n=Y(),i=a(e),s="action "+e.type+n;K(l,s,t),l.log("%c action","color: #03A9F4; font-weight: bold",i),G(l)}})))}}function K(e,t,r){var n=r?e.groupCollapsed:e.group;try{n.call(e,t)}catch(i){e.log(t)}}function G(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function Y(){var e=new Date;return" @ "+X(e.getHours(),2)+":"+X(e.getMinutes(),2)+":"+X(e.getSeconds(),2)+"."+X(e.getMilliseconds(),3)}function J(e,t){return new Array(t+1).join(e)}function X(e,t){return J("0",t-e.toString().length)+e}var Z={Store:_,install:F,version:"3.6.2",mapState:N,mapMutations:R,mapGetters:U,mapActions:$,createNamespacedHelpers:z,createLogger:V};e.exports=Z}).call(this,r(3))},function(e,t,r){(function(t){function r(e){this.key=e.key,this.requestConfig={key:e.key,s:"rsx",platform:"WXJS",appname:e.key,sdkversion:"1.2.0",logversion:"2.0"},this.MeRequestConfig={key:e.key,serviceName:"https://restapi.amap.com/rest/me"}}r.prototype.getWxLocation=function(e,r){t.getLocation({type:"gcj02",success:function(e){e=e.longitude+","+e.latitude,t.setStorage({key:"userLocation",data:e}),r(e)},fail:function(n){t.getStorage({key:"userLocation",success:function(e){e.data&&r(e.data)}}),e.fail({errCode:"0",errMsg:n.errMsg||""})}})},r.prototype.getMEKeywordsSearch=function(e){if(!e.options)return e.fail({errCode:"0",errMsg:"缺少必要参数"});var r=e.options,n=this.MeRequestConfig,i={key:n.key,s:"rsx",platform:"WXJS",appname:e.key,sdkversion:"1.2.0",logversion:"2.0"};r.layerId&&(i.layerId=r.layerId),r.keywords&&(i.keywords=r.keywords),r.city&&(i.city=r.city),r.filter&&(i.filter=r.filter),r.sortrule&&(i.sortrule=r.sortrule),r.pageNum&&(i.pageNum=r.pageNum),r.pageSize&&(i.pageSize=r.pageSize),r.sig&&(i.sig=r.sig),t.request({url:n.serviceName+"/cpoint/datasearch/local",data:i,method:"GET",header:{"content-type":"application/json"},success:function(t){(t=t.data)&&t.status&&"1"===t.status&&0===t.code?e.success(t.data):e.fail({errCode:"0",errMsg:t})},fail:function(t){e.fail({errCode:"0",errMsg:t.errMsg||""})}})},r.prototype.getMEIdSearch=function(e){if(!e.options)return e.fail({errCode:"0",errMsg:"缺少必要参数"});var r=e.options,n=this.MeRequestConfig,i={key:n.key,s:"rsx",platform:"WXJS",appname:e.key,sdkversion:"1.2.0",logversion:"2.0"};r.layerId&&(i.layerId=r.layerId),r.id&&(i.id=r.id),r.sig&&(i.sig=r.sig),t.request({url:n.serviceName+"/cpoint/datasearch/id",data:i,method:"GET",header:{"content-type":"application/json"},success:function(t){(t=t.data)&&t.status&&"1"===t.status&&0===t.code?e.success(t.data):e.fail({errCode:"0",errMsg:t})},fail:function(t){e.fail({errCode:"0",errMsg:t.errMsg||""})}})},r.prototype.getMEPolygonSearch=function(e){if(!e.options)return e.fail({errCode:"0",errMsg:"缺少必要参数"});var r=e.options,n=this.MeRequestConfig,i={key:n.key,s:"rsx",platform:"WXJS",appname:e.key,sdkversion:"1.2.0",logversion:"2.0"};r.layerId&&(i.layerId=r.layerId),r.keywords&&(i.keywords=r.keywords),r.polygon&&(i.polygon=r.polygon),r.filter&&(i.filter=r.filter),r.sortrule&&(i.sortrule=r.sortrule),r.pageNum&&(i.pageNum=r.pageNum),r.pageSize&&(i.pageSize=r.pageSize),r.sig&&(i.sig=r.sig),t.request({url:n.serviceName+"/cpoint/datasearch/polygon",data:i,method:"GET",header:{"content-type":"application/json"},success:function(t){(t=t.data)&&t.status&&"1"===t.status&&0===t.code?e.success(t.data):e.fail({errCode:"0",errMsg:t})},fail:function(t){e.fail({errCode:"0",errMsg:t.errMsg||""})}})},r.prototype.getMEaroundSearch=function(e){if(!e.options)return e.fail({errCode:"0",errMsg:"缺少必要参数"});var r=e.options,n=this.MeRequestConfig,i={key:n.key,s:"rsx",platform:"WXJS",appname:e.key,sdkversion:"1.2.0",logversion:"2.0"};r.layerId&&(i.layerId=r.layerId),r.keywords&&(i.keywords=r.keywords),r.center&&(i.center=r.center),r.radius&&(i.radius=r.radius),r.filter&&(i.filter=r.filter),r.sortrule&&(i.sortrule=r.sortrule),r.pageNum&&(i.pageNum=r.pageNum),r.pageSize&&(i.pageSize=r.pageSize),r.sig&&(i.sig=r.sig),t.request({url:n.serviceName+"/cpoint/datasearch/around",data:i,method:"GET",header:{"content-type":"application/json"},success:function(t){(t=t.data)&&t.status&&"1"===t.status&&0===t.code?e.success(t.data):e.fail({errCode:"0",errMsg:t})},fail:function(t){e.fail({errCode:"0",errMsg:t.errMsg||""})}})},r.prototype.getGeo=function(e){var r=this.requestConfig,n=e.options;r={key:this.key,extensions:"all",s:r.s,platform:r.platform,appname:this.key,sdkversion:r.sdkversion,logversion:r.logversion},n.address&&(r.address=n.address),n.city&&(r.city=n.city),n.batch&&(r.batch=n.batch),n.sig&&(r.sig=n.sig),t.request({url:"https://restapi.amap.com/v3/geocode/geo",data:r,method:"GET",header:{"content-type":"application/json"},success:function(t){(t=t.data)&&t.status&&"1"===t.status?e.success(t):e.fail({errCode:"0",errMsg:t})},fail:function(t){e.fail({errCode:"0",errMsg:t.errMsg||""})}})},r.prototype.getRegeo=function(e){function r(r){var i=n.requestConfig;t.request({url:"https://restapi.amap.com/v3/geocode/regeo",data:{key:n.key,location:r,extensions:"all",s:i.s,platform:i.platform,appname:n.key,sdkversion:i.sdkversion,logversion:i.logversion},method:"GET",header:{"content-type":"application/json"},success:function(t){if(t.data.status&&"1"==t.data.status){t=t.data.regeocode;var n=t.addressComponent,i=[],o=t.roads[0].name+"附近",a=r.split(",")[0],s=r.split(",")[1];if(t.pois&&t.pois[0]){o=t.pois[0].name+"附近";var c=t.pois[0].location;c&&(a=parseFloat(c.split(",")[0]),s=parseFloat(c.split(",")[1]))}n.provice&&i.push(n.provice),n.city&&i.push(n.city),n.district&&i.push(n.district),n.streetNumber&&n.streetNumber.street&&n.streetNumber.number?(i.push(n.streetNumber.street),i.push(n.streetNumber.number)):i.push(t.roads[0].name),i=i.join(""),e.success([{iconPath:e.iconPath,width:e.iconWidth,height:e.iconHeight,name:i,desc:o,longitude:a,latitude:s,id:0,regeocodeData:t}])}else e.fail({errCode:t.data.infocode,errMsg:t.data.info})},fail:function(t){e.fail({errCode:"0",errMsg:t.errMsg||""})}})}var n=this;e.location?r(e.location):n.getWxLocation(e,(function(e){r(e)}))},r.prototype.getWeather=function(e){function r(r){var n="base";e.type&&"forecast"==e.type&&(n="all"),t.request({url:"https://restapi.amap.com/v3/weather/weatherInfo",data:{key:i.key,city:r,extensions:n,s:o.s,platform:o.platform,appname:i.key,sdkversion:o.sdkversion,logversion:o.logversion},method:"GET",header:{"content-type":"application/json"},success:function(t){if(t.data.status&&"1"==t.data.status)if(t.data.lives){if((t=t.data.lives)&&00&&void 0!==arguments[0]?arguments[0]:"url",r=this[e];r&&t[this.linkType]({url:r})},$uGetRect:function(e,r){var n=this;return new Promise((function(i){t.createSelectorQuery().in(n)[r?"selectAll":"select"](e).boundingClientRect((function(e){r&&Array.isArray(e)&&e.length&&i(e),!r&&e&&i(e)})).exec()}))},getParentData:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent={}),this.parent=t.$u.$parent.call(this,r),this.parent.children&&-1===this.parent.children.indexOf(this)&&this.parent.children.push(this),this.parent&&this.parentData&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&"function"===typeof e.stopPropagation&&e.stopPropagation()},noop:function(e){this.preventEvent(e)}},onReachBottom:function(){t.$emit("uOnReachBottom")},beforeDestroy:function(){var e=this;if(this.parent&&t.$u.test.array(this.parent.children)){var r=this.parent.children;r.map((function(t,n){t===e&&r.splice(n,1)}))}}}}).call(this,r(2)["default"])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={options:{virtualHost:!0}};t.default=n},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(48)),o=i.default;t.default=o},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(11)),o=n(r(23)),a=n(r(24)),s=n(r(49)),c=n(r(57)),u=n(r(58)),l=n(r(59)),f=r(52),d=n(r(60));function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};(0,o.default)(this,e),(0,f.isPlainObject)(t)||(t={},console.warn("设置全局参数必须接收一个Object")),this.config=(0,d.default)(h(h({},l.default),t)),this.interceptors={request:new c.default,response:new c.default}}return(0,a.default)(e,[{key:"setConfig",value:function(e){this.config=e(this.config)}},{key:"middleware",value:function(e){e=(0,u.default)(this.config,e);var t=[s.default,void 0],r=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)r=r.then(t.shift(),t.shift());return r}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.middleware(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.middleware(h({url:e,method:"GET"},t))}},{key:"post",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"POST"},r))}},{key:"put",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"PUT"},r))}},{key:"delete",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"DELETE"},r))}},{key:"connect",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"CONNECT"},r))}},{key:"head",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"HEAD"},r))}},{key:"options",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"OPTIONS"},r))}},{key:"trace",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"TRACE"},r))}},{key:"upload",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url=e,t.method="UPLOAD",this.middleware(t)}},{key:"download",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url=e,t.method="DOWNLOAD",this.middleware(t)}}]),e}();t.default=g},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(50)),o=function(e){return(0,i.default)(e)};t.default=o},function(e,t,r){"use strict";(function(e){var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(11)),o=n(r(51)),a=n(r(53)),s=n(r(56)),c=r(52);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.method||e.method||"GET",n={baseURL:e.baseURL||"",method:r,url:t.url||"",params:t.params||{},custom:s(s({},e.custom||{}),t.custom||{}),header:(0,o.deepMerge)(e.header||{},t.header||{})},i=["getTask","validateStatus"];if(n=s(s({},n),c(i,e,t)),"DOWNLOAD"===r);else if("UPLOAD"===r){delete n.header["content-type"],delete n.header["Content-Type"];var a=["filePath","name","formData"];a.forEach((function(e){(0,o.isUndefined)(t[e])||(n[e]=t[e])}))}else{var u=["data","timeout","dataType","responseType"];n=s(s({},n),c(u,e,t))}return n};t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300}};t.default=n},function(e,t,r){"use strict";(function(e){var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(13)),o=function(){function t(e,t){return null!=t&&e instanceof t}var r,n,o;try{r=Map}catch(d){r=function(){}}try{n=Set}catch(d){n=function(){}}try{o=Promise}catch(d){o=function(){}}function a(s,c,u,l,d){"object"===(0,i.default)(c)&&(u=c.depth,l=c.prototype,d=c.includeNonEnumerable,c=c.circular);var p=[],h=[],g="undefined"!=typeof e;function v(s,u){if(null===s)return null;if(0===u)return s;var y,m;if("object"!=(0,i.default)(s))return s;if(t(s,r))y=new r;else if(t(s,n))y=new n;else if(t(s,o))y=new o((function(e,t){s.then((function(t){e(v(t,u-1))}),(function(e){t(v(e,u-1))}))}));else if(a.__isArray(s))y=[];else if(a.__isRegExp(s))y=new RegExp(s.source,f(s)),s.lastIndex&&(y.lastIndex=s.lastIndex);else if(a.__isDate(s))y=new Date(s.getTime());else{if(g&&e.isBuffer(s))return e.from?y=e.from(s):(y=new e(s.length),s.copy(y)),y;t(s,Error)?y=Object.create(s):"undefined"==typeof l?(m=Object.getPrototypeOf(s),y=Object.create(m)):(y=Object.create(l),m=l)}if(c){var x=p.indexOf(s);if(-1!=x)return h[x];p.push(s),h.push(y)}for(var b in t(s,r)&&s.forEach((function(e,t){var r=v(t,u-1),n=v(e,u-1);y.set(r,n)})),t(s,n)&&s.forEach((function(e){var t=v(e,u-1);y.add(t)})),s){var w=Object.getOwnPropertyDescriptor(s,b);w&&(y[b]=v(s[b],u-1));try{var A=Object.getOwnPropertyDescriptor(s,b);if("undefined"===A.set)continue;y[b]=v(s[b],u-1)}catch(C){if(C instanceof TypeError)continue;if(C instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(s);for(b=0;b<_.length;b++){var S=_[b],k=Object.getOwnPropertyDescriptor(s,S);(!k||k.enumerable||d)&&(y[S]=v(s[S],u-1),Object.defineProperty(y,S,k))}}if(d){var P=Object.getOwnPropertyNames(s);for(b=0;b0&&void 0!==s[0]?s[0]:{},n=s.length>1&&void 0!==s[1]?s[1]:{},o={},"string"===typeof r?(o.url=this.mixinParam(r,n),o.type="navigateTo"):(o=e.$u.deepMerge(this.config,r),o.url=this.mixinParam(r.url,r.params)),o.url!==e.$u.page()){t.next=6;break}return t.abrupt("return");case 6:if(n.intercept&&(this.config.intercept=n.intercept),o.params=n,o=e.$u.deepMerge(this.config,o),"function"!==typeof e.$u.routeIntercept){t.next=16;break}return t.next=12,new Promise((function(t,r){e.$u.routeIntercept(o,t)}));case 12:a=t.sent,a&&this.openPage(o),t.next=17;break;case 16:this.openPage(o);case 17:case"end":return t.stop()}}),t,this)})));function r(){return t.apply(this,arguments)}return r}()},{key:"openPage",value:function(t){var r=t.url,n=(t.type,t.delta),i=t.animationType,o=t.animationDuration;"navigateTo"!=t.type&&"to"!=t.type||e.navigateTo({url:r,animationType:i,animationDuration:o}),"redirectTo"!=t.type&&"redirect"!=t.type||e.redirectTo({url:r}),"switchTab"!=t.type&&"tab"!=t.type||e.switchTab({url:r}),"reLaunch"!=t.type&&"launch"!=t.type||e.reLaunch({url:r}),"navigateBack"!=t.type&&"back"!=t.type||e.navigateBack({delta:n})}}]),t}(),u=(new c).route;t.default=u}).call(this,r(2)["default"])},function(e,t,r){"use strict";function n(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=i(e,!1),a=n[0],s=n[1],c=n[2],u=i(t,!1),l=u[0],f=u[1],d=u[2],p=(l-a)/r,h=(f-s)/r,g=(d-c)/r,v=[],y=0;y1&&void 0!==arguments[1])||arguments[1],r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(e=String(e).toLowerCase(),e&&r.test(e)){if(4===e.length){for(var n="#",i=1;i<4;i+=1)n+=e.slice(i,i+1).concat(e.slice(i,i+1));e=n}for(var o=[],a=1;a<7;a+=2)o.push(parseInt("0x".concat(e.slice(a,a+2))));return t?"rgb(".concat(o[0],",").concat(o[1],",").concat(o[2],")"):o}if(/^(rgb|RGB)/.test(e)){var s=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return s.map((function(e){return Number(e)}))}return e}function o(e){var t=e,r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(t)){for(var n=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),i="#",o=0;o=0}function b(e,t){return e>=t[0]&&e<=t[1]}function w(e,t){return e.length>=t[0]&&e.length<=t[1]}function A(e){var t=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return t.test(e)}function _(e){switch((0,i.default)(e)){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function S(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!==(0,i.default)(t)||!t)}catch(r){return!1}return!1}function k(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function P(e){return"[object Object]"===Object.prototype.toString.call(e)}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)}function C(e){return"function"===typeof e}function O(e){return P(e)&&C(e.then)&&C(e.catch)}function E(e){var t=e.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return r.test(t)}function I(e){var t=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return t.test(e)}function M(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)}var L={email:o,mobile:a,url:s,date:c,dateISO:u,number:l,digits:d,idCard:p,carNo:h,amount:g,chinese:v,letter:y,enOrNum:m,contains:x,range:b,rangeLength:w,empty:_,isEmpty:_,jsonString:S,landline:A,object:P,array:k,code:T,func:C,promise:O,video:I,image:E,regExp:M,string:f};t.default=L},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=null;function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==n&&clearTimeout(n),r){var i=!n;n=setTimeout((function(){n=null}),t),i&&"function"===typeof e&&e()}else n=setTimeout((function(){"function"===typeof e&&e()}),t)}var o=i;t.default=o},function(e,t,r){"use strict";var n;function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];r?n||(n=!0,"function"===typeof e&&e(),setTimeout((function(){n=!1}),t)):n||(n=!0,setTimeout((function(){n=!1,"function"===typeof e&&e()}),t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i;t.default=o},function(e,t,r){"use strict";(function(e){var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(5)),o=n(r(13)),a=n(r(63)),s=r(67);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(e,Math.min(t,Number(r)))}function u(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a.default.number(t)?r?"".concat(t,"px"):Number(t):/(rpx|upx)$/.test(t)?r?"".concat(e.upx2px(parseInt(t)),"px"):Number(e.upx2px(parseInt(t))):r?"".concat(parseInt(t),"px"):parseInt(t)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30;return new Promise((function(t){setTimeout((function(){t()}),e)}))}function f(){return e.getSystemInfoSync().platform.toLowerCase()}function d(){return e.getSystemInfoSync()}function p(e,t){if(e>=0&&t>0&&t>=e){var r=t-e+1;return Math.floor(Math.random()*r+e)}return 0}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(r=r||n.length,e)for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:void 0,t=this.$parent;while(t){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object";if(a.default.empty(e)||"object"===(0,o.default)(e)&&"object"===t||"string"===t&&"string"===typeof e)return e;if("object"===t){e=S(e);for(var r=e.split(";"),n={},i=0;i0&&void 0!==arguments[0]?arguments[0]:"auto",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!==(t=null===(r=e)||void 0===r||null===(n=r.$u)||void 0===n||null===(i=n.config)||void 0===i?void 0:i.unit)&&void 0!==t?t:"px";return o=String(o),a.default.number(o)?"".concat(o).concat(s):o}function m(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null===e||"object"!==(0,o.default)(e))return e;if(r.has(e))return r.get(e);if(e instanceof Date)t=new Date(e.getTime());else if(e instanceof RegExp)t=new RegExp(e);else if(e instanceof Map)t=new Map(Array.from(e,(function(e){var t=(0,i.default)(e,2),n=t[0],o=t[1];return[n,m(o,r)]})));else if(e instanceof Set)t=new Set(Array.from(e,(function(e){return m(e,r)})));else if(Array.isArray(e))t=e.map((function(e){return m(e,r)}));else if("[object Object]"===Object.prototype.toString.call(e)){t=Object.create(Object.getPrototypeOf(e)),r.set(e,t);for(var n=0,a=Object.entries(e);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=m(e),"object"!==(0,o.default)(e)||null===e||"object"!==(0,o.default)(t)||null===t)return e;var r=Array.isArray(e)?e.slice():Object.assign({},e);for(var n in t)if(t.hasOwnProperty(n)){var i=t[n],a=r[n];i instanceof Date?r[n]=new Date(i):i instanceof RegExp?r[n]=new RegExp(i):i instanceof Map?r[n]=new Map(i):i instanceof Set?r[n]=new Set(i):"object"===(0,o.default)(i)&&null!==i?r[n]=x(a,i):r[n]=i}return r}function b(e){console.error("uView提示:".concat(e))}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))}function A(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e=t?/^\d{10}$/.test(null===t||void 0===t?void 0:t.toString().trim())?new Date(1e3*t):"string"===typeof t&&/^\d+$/.test(t.trim())?new Date(Number(t)):"string"===typeof t&&t.includes("-")&&!t.includes("T")?new Date(t.replace(/-/g,"/")):new Date(t):new Date;var n={y:e.getFullYear().toString(),m:(e.getMonth()+1).toString().padStart(2,"0"),d:e.getDate().toString().padStart(2,"0"),h:e.getHours().toString().padStart(2,"0"),M:e.getMinutes().toString().padStart(2,"0"),s:e.getSeconds().toString().padStart(2,"0")};for(var o in n){var a=new RegExp("".concat(o,"+")).exec(r)||[],s=(0,i.default)(a,1),c=s[0];if(c){var u="y"===o&&2===c.length?2:0;r=r.replace(c,n[o].slice(u))}}return r}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";null==e&&(e=Number(new Date)),e=parseInt(e),10==e.toString().length&&(e*=1e3);var r=(new Date).getTime()-e;r=parseInt(r/1e3);var n="";switch(!0){case r<300:n="刚刚";break;case r>=300&&r<3600:n="".concat(parseInt(r/60),"分钟前");break;case r>=3600&&r<86400:n="".concat(parseInt(r/3600),"小时前");break;case r>=86400&&r<2592e3:n="".concat(parseInt(r/86400),"天前");break;default:n=!1===t?r>=2592e3&&r<31536e3?"".concat(parseInt(r/2592e3),"个月前"):"".concat(parseInt(r/31536e3),"年前"):A(e,t)}return n}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return e=String(e),"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",n=t?"?":"",i=[];-1==["indices","brackets","repeat","comma"].indexOf(r)&&(r="brackets");var o=function(t){var n=e[t];if(["",void 0,null].indexOf(n)>=0)return"continue";if(n.constructor===Array)switch(r){case"indices":for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:2e3;e.showToast({title:String(t),icon:"none",duration:r})}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");var r="";switch(e){case"primary":r="info-circle";break;case"info":r="info-circle";break;case"error":r="close-circle";break;case"warning":r="error-circle";break;case"success":r="checkmark-circle";break;default:r="checkmark-circle"}return t&&(r+="-fill"),r}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";e="".concat(e).replace(/[^0-9+-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a="undefined"===typeof n?",":n,c="undefined"===typeof r?".":r,u="";u=(o?(0,s.round)(i,o)+"":"".concat(Math.round(i))).split(".");var l=/(-?\d+)(\d{3})/;while(l.test(u[0]))u[0]=u[0].replace(l,"$1".concat(a,"$2"));return(u[1]||"").length1&&void 0!==arguments[1])||arguments[1],r=parseInt(e);return t?/s$/.test(e)?e:"".concat(e,e>30?"ms":"s"):/ms$/.test(e)?r:/s$/.test(e)?r>30?r:1e3*r:r}function E(e){return"00".concat(e).slice(-2)}function I(t,r){var n=e.$u.$parent.call(t,"u-form-item"),i=e.$u.$parent.call(t,"u-form");n&&i&&i.validateField(n.prop,(function(){}),r)}function M(e,t){if(e){if("string"!==typeof t||""===t)return"";if(-1!==t.indexOf(".")){for(var r=t.split("."),n=e[r[0]]||{},i=1;i1){var i=r[0];t[i]&&"object"===(0,o.default)(t[i])||(t[i]={});r.shift();e(t[i],r,n)}else t[r[0]]=n};if("string"!==typeof t||""===t);else if(-1!==t.indexOf(".")){var i=t.split(".");n(e,i,r)}else e[t]=r}}function j(){var e,t,r=getCurrentPages();return"/".concat(null!==(e=null===(t=r[r.length-1])||void 0===t?void 0:t.route)&&void 0!==e?e:"")}function D(){var e=getCurrentPages();return e}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=getCurrentPages(),r=t.length;return t[r-1+e]}function F(t){var r=t.props,n=void 0===r?{}:r,i=t.config,o=void 0===i?{}:i,a=t.color,s=void 0===a?{}:a,c=t.zIndex,u=void 0===c?{}:c,l=e.$u.deepMerge;e.$u.config=l(e.$u.config,o),e.$u.props=l(e.$u.props,n),e.$u.color=l(e.$u.color,s),e.$u.zIndex=l(e.$u.zIndex,u)}String.prototype.padStart||(String.prototype.padStart=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");var r=this;if(r.length>=e)return String(r);var n=e-r.length,i=Math.ceil(n/t.length);while(i>>=1)t+=t,1===i&&(t+=t);return t.slice(0,n)+r});var N={range:c,getPx:u,sleep:l,os:f,sys:d,random:p,guid:h,$parent:g,addStyle:v,addUnit:y,deepClone:m,deepMerge:x,error:b,randomArray:w,timeFormat:A,timeFrom:_,trim:S,queryParams:k,toast:P,type2icon:T,priceFormat:C,getDuration:O,padZero:E,formValidate:I,getProperty:M,setProperty:L,page:j,pages:D,getHistoryPage:B,setConfig:F};t.default=N}).call(this,r(2)["default"])},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.divide=h,t.enableBoundaryChecking=v,t.minus=p,t.plus=d,t.round=g,t.times=f;var i=n(r(68)),o=!0;function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return+parseFloat(Number(e).toPrecision(t))}function s(e){var t=e.toString().split(/[eE]/),r=(t[0].split(".")[1]||"").length-+(t[1]||0);return r>0?r:0}function c(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));var t=s(e);return t>0?a(Number(e)*Math.pow(10,t)):Number(e)}function u(e){o&&(e>Number.MAX_SAFE_INTEGER||e2)return l(t,f);var n=t[0],i=t[1],o=c(n),a=c(i),d=s(n)+s(i),p=o*a;return u(p),p/Math.pow(10,d)}function d(){for(var e=arguments.length,t=new Array(e),r=0;r2)return l(t,d);var n=t[0],i=t[1],o=Math.pow(10,Math.max(s(n),s(i)));return(f(n,o)+f(i,o))/o}function p(){for(var e=arguments.length,t=new Array(e),r=0;r2)return l(t,p);var n=t[0],i=t[1],o=Math.pow(10,Math.max(s(n),s(i)));return(f(n,o)-f(i,o))/o}function h(){for(var e=arguments.length,t=new Array(e),r=0;r2)return l(t,h);var n=t[0],i=t[1],o=c(n),d=c(i);return u(o),u(d),f(o/d,a(Math.pow(10,s(i)-s(n))))}function g(e,t){var r=Math.pow(10,t),n=h(Math.round(Math.abs(f(e,r))),r);return e<0&&0!==n&&(n=f(n,-1)),n}function v(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o=e}var y={times:f,plus:d,minus:p,divide:h,round:g,enableBoundaryChecking:v};t.default=y},function(e,t,r){var n=r(6),i=r(20),o=r(8),a=r(10);function s(e){return n(e)||i(e)||o(e)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="2.0.38";console.log("\n %c uView V".concat(n," %c https://uviewui.com/ \n\n"),"color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;");var i={v:n,version:n,type:["primary","success","info","error","warning"],color:{"u-primary":"#2979ff","u-warning":"#ff9900","u-success":"#19be6b","u-error":"#fa3534","u-info":"#909399","u-main-color":"#303133","u-content-color":"#606266","u-tips-color":"#909399","u-light-color":"#c0c4cc"},unit:"px"};t.default=i},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(11)),o=n(r(69)),a=n(r(71)),s=n(r(72)),c=n(r(73)),u=n(r(74)),l=n(r(75)),f=n(r(76)),d=n(r(77)),p=n(r(78)),h=n(r(79)),g=n(r(80)),v=n(r(81)),y=n(r(82)),m=n(r(83)),x=n(r(84)),b=n(r(85)),w=n(r(86)),A=n(r(87)),_=n(r(88)),S=n(r(89)),k=n(r(90)),P=n(r(91)),T=n(r(92)),C=n(r(93)),O=n(r(94)),E=n(r(95)),I=n(r(96)),M=n(r(97)),L=n(r(98)),j=n(r(99)),D=n(r(100)),B=n(r(101)),F=n(r(102)),N=n(r(103)),R=n(r(104)),U=n(r(105)),$=n(r(106)),z=n(r(107)),q=n(r(108)),H=n(r(109)),W=n(r(110)),Q=n(r(111)),V=n(r(112)),K=n(r(113)),G=n(r(114)),Y=n(r(115)),J=n(r(116)),X=n(r(117)),Z=n(r(119)),ee=n(r(120)),te=n(r(121)),re=n(r(122)),ne=n(r(123)),ie=n(r(124)),oe=n(r(125)),ae=n(r(126)),se=n(r(127)),ce=n(r(128)),ue=n(r(129)),le=n(r(130)),fe=n(r(131)),de=n(r(132)),pe=n(r(133)),he=n(r(134)),ge=n(r(135)),ve=n(r(136)),ye=n(r(137)),me=n(r(138)),xe=n(r(139)),be=n(r(140)),we=n(r(141)),Ae=n(r(142)),_e=n(r(143)),Se=n(r(144)),ke=n(r(145)),Pe=n(r(146)),Te=n(r(147)),Ce=n(r(148)),Oe=n(r(149)),Ee=n(r(150)),Ie=n(r(151)),Me=n(r(152)),Le=n(r(153)),je=n(r(154)),De=n(r(155)),Be=n(r(156)),Fe=n(r(157)),Ne=n(r(158)),Re=n(r(159));function Ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/account/wxLogin",{params:e})},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/account/wxAuthPhone",e)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/member/getMemberInfo",{params:e})},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/member/editMemberInfo",e)},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/config/getBannerList",{params:e})},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/config/getBannerDetail",{params:e})},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/shopInfo/nearby",e)},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/shopInfo/detail",e)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/config/getCitySizeList",{params:e})},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/create",e)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/config/getCityByCode",{params:e})},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/config/getCategoryList",{params:e})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/config/calculateLocalPrice",e)},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/config/calculateRemotePrice",e)},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/config/getPlatformAboutUs",{params:e})},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/addr/list",{params:e})},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/addr/create",e)},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/addr/delete/".concat(e.id))},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/addr/setDefault/".concat(e.id))},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/addr/updateById",e)},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/config/treeList",e)},P=function(e){return r.$u.http.get("web/order/detail/".concat(e))},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/shopInfo/apply",e)},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/shopInfo/myShop",{params:e})},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/shopInfo/payDeposit",e)},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/account/logOut",{params:e})},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/config/getOpenCityList",{params:e})},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/config/memberNoticePage",e)},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/config/shopNoticePage",e)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/account/shopLogin",e)},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/account/shopSilentLogin",{params:e})},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/wallet/shopStatistics",{params:e})},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/revenue/shopSummary",e)},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/revenue/shopPage",e)},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/wallet/shopApply",e)},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/shopInfo/getShopInfo",{params:e})},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/shopInfo/changePassword",e)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/myPage",e)},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/shopPage",e)},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/delete/"+e.orderId,e)},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/cancel",e)},Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/confirmReceipt/"+e.orderId,e)},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/continuePay/"+e.orderId,e)},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/comment",e)},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/payOverdueFee/"+e.orderId,e)},Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/shopInfo/salesStats",{params:e})},J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/order/shopDetail",{params:e})},X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/shopVerify",e)},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/storeOut",e)},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/order/confirmArrived",e)},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/shopInfo/shopDetail",{params:e})},re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/account/logOutShop",{params:e})},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/config/getActiveOrderTip",{params:e})},ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/shopInfo/maintainInfo",e)},oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/shopInfo/maintain",e)},ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/member/sendSmsCode",{params:e})},se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/member/verifyCode",{params:e})},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/member/getContactInfo",{params:e})},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/member/updateUserPhone",e)},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/shopInfo/printOrderLabel/"+e.orderId,{params:e})},fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/config/checkOperationRadius",e)},de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/config/checkShopOperationRadius",e)},pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/shopInfo/locationTagShopCount",{params:e})},he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/memberCoupon/findPage",e)},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/memberCoupon/claim",{params:e})},ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/invoice/page",e)},ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/invoice/apply",e)},me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/invoice/sendEmail",e)},xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/revenue/shopKpi",e)},be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.post("web/revenue/shopLuggageType",e)},we=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.$u.http.get("web/memberCoupon/pendingCount",{params:e})},Ae=function(e){return r.$u.http.get("web/order/timeline/".concat(e))},_e=function(e){return r.$u.http.get("web/order/shop/timeline/".concat(e))};r.$u.api=(n={printOrderLabel:le,getActiveOrderTip:ne,logOutShop:re,maintainShopInfo:oe,maintainInfo:ie,getShopInfoDetail:te,storeOutOrder:Z,confirmArrivedOrder:ee,shopVerifyOrder:X,shopOrderDetail:J,shopSalesStats:Y,payOverdueFee:G,orderComment:K,confirmReceipt:Q,cancelOrder:W,deleteOrder:H,continuePayOrder:V,myOrderPage:z,shopOrderPage:q,wxLogin:o,wxAuthPhone:a,getMemberInfo:s},(0,i.default)(n,"getMemberInfo",s),(0,i.default)(n,"updateMember",c),(0,i.default)(n,"getBannerList",u),(0,i.default)(n,"getBannerDetail",l),(0,i.default)(n,"getNearbyShopList",f),(0,i.default)(n,"getShopDetail",d),(0,i.default)(n,"getCitySizeList",p),(0,i.default)(n,"createOrder",h),(0,i.default)(n,"getCityByName",g),(0,i.default)(n,"getCategoryList",v),(0,i.default)(n,"calculateLocalPrice",y),(0,i.default)(n,"calculateRemotePrice",m),(0,i.default)(n,"getPlatformAboutUs",x),(0,i.default)(n,"findListAddr",b),(0,i.default)(n,"createAddr",w),(0,i.default)(n,"deleteAddr",A),(0,i.default)(n,"setDefaultAddr",_),(0,i.default)(n,"updateAddr",S),(0,i.default)(n,"treeList",k),(0,i.default)(n,"getOrderDetail",P),(0,i.default)(n,"applyShop",T),(0,i.default)(n,"getMyShop",C),(0,i.default)(n,"payDeposit",O),(0,i.default)(n,"logOut",E),(0,i.default)(n,"getOpenCityList",I),(0,i.default)(n,"getMemberNoticePage",M),(0,i.default)(n,"shopLogin",j),(0,i.default)(n,"shopSilentLogin",D),(0,i.default)(n,"shopStatistics",B),(0,i.default)(n,"shopSummary",F),(0,i.default)(n,"shopPage",N),(0,i.default)(n,"shopApply",R),(0,i.default)(n,"getShopInfo",U),(0,i.default)(n,"shopNoticePage",L),(0,i.default)(n,"changePassword",$),(0,i.default)(n,"sendSmsCode",ae),(0,i.default)(n,"verifyCode",se),(0,i.default)(n,"updateUserPhone",ue),(0,i.default)(n,"getContactInfo",ce),(0,i.default)(n,"checkOperationRadius",fe),(0,i.default)(n,"checkShopOperationRadius",de),(0,i.default)(n,"locationTagShopCount",pe),(0,i.default)(n,"findPage",he),(0,i.default)(n,"claimCoupon",ge),(0,i.default)(n,"invoicePage",ve),(0,i.default)(n,"invoiceApply",ye),(0,i.default)(n,"sendEmail",me),(0,i.default)(n,"driverKpi",xe),(0,i.default)(n,"shopLuggageType",be),(0,i.default)(n,"pendingCount",we),(0,i.default)(n,"timeline",Ae),(0,i.default)(n,"shopTimeline",_e),n)},a={install:o};t.default=a}).call(this,r(2)["default"])},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(t,r){e.$u.http.interceptors.request.use((function(t){e.showLoading({title:"加载中"});var n=r.$store.state.token||"",i=r.$store.state.shopToken||"";return n&&(t.header["token"]=n),i&&(t.header["shopToken"]=i),t}),(function(e){return Promise.reject(e)})),e.$u.http.interceptors.response.use((function(t){return e.hideLoading(),5113===t.data.code||5112===t.data.code?(e.clearStorageSync("userInfo"),e.clearStorageSync("token"),void e.switchTab({url:"/pages/index/index"})):51131===t.data.code||51121===t.data.code?(e.clearStorageSync("shopInfo"),e.clearStorageSync("shopToken"),void e.navigateTo({url:"/shop/pages/login/login"})):(200!==t.data.code&&e.showToast({title:t.data.message,icon:"none",duration:2e3}),t.data)}),(function(e){return Promise.reject(e)}))},n={install:r};t.default=n}).call(this,r(2)["default"])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";(function(e){var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(13)),o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},l=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,r=o.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&o.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||o.call(e,t)},f=function(e,t){s&&"__proto__"===t.name?s(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,t){if("__proto__"===t){if(!o.call(e,t))return;if(c)return c(e,t).value}return e[t]},p=function e(){var t,r,n,o,a,s,c=arguments[0],p=1,h=arguments.length,g=!1;for("boolean"==typeof c&&(g=c,c=arguments[1]||{},p=2),(null==c||"object"!=(0,i.default)(c)&&"function"!=typeof c)&&(c={});p=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=g.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},getBestMaskPattern:function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=x.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},createMovieClip:function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++)n=!e&&1==(t>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n},setupTypeInfo:function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=x.getBCHTypeInfo(r),i=0;i<15;i++){var o=!e&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++)o=!e&&1==(n>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o;this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[n][a-s]){var c=!1;o>>i&1)),x.getMask(t,n,a-s)&&(c=!c),this.modules[n][a-s]=c,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}},g.PAD0=236,g.PAD1=17,g.createData=function(e,t,r){for(var n=_.getRSBlocks(e,t),i=new S,o=0;o8*s)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*s+")");for(i.getLengthInBits()+4<=8*s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*s||(i.put(g.PAD0,8),i.getLengthInBits()>=8*s));)i.put(g.PAD1,8);return g.createBytes(i,n)},g.createBytes=function(e,t){for(var r=0,n=0,i=0,o=new Array(t.length),a=new Array(t.length),s=0;s=0?d.get(p):0}}var h=0;for(l=0;l=0;)t^=x.G15<=0;)t^=x.G18<>>=1;return t},getPatternPosition:function(e){return x.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case m.PATTERN000:return(t+r)%2==0;case m.PATTERN001:return t%2==0;case m.PATTERN010:return r%3==0;case m.PATTERN011:return(t+r)%3==0;case m.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case m.PATTERN101:return t*r%2+t*r%3==0;case m.PATTERN110:return(t*r%2+t*r%3)%2==0;case m.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new A([1],0),r=0;r5&&(r+=3+o-5)}for(n=0;n=256;)e-=255;return b.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},w=0;w<8;w++)b.EXP_TABLE[w]=1<=1&&i<=127?t+=e.charAt(r):i>2047?(t+=String.fromCharCode(224|i>>12&15),t+=String.fromCharCode(128|i>>6&63),t+=String.fromCharCode(128|i>>0&63)):(t+=String.fromCharCode(192|i>>6&31),t+=String.fromCharCode(128|i>>0&63));return t}function P(t){t=t||{},(t=p(!0,{width:256,height:256,x:0,y:0,typeNumber:-1,correctLevel:y.H,background:"#ffffff",foreground:"#000000",image:{imageResource:"",dx:0,dy:0,dWidth:100,dHeight:100}},t)).canvasId||t.ctx?function(){var r,n=new g(t.typeNumber,t.correctLevel);n.addData(k(t.text)),n.make(),r=t.ctx?t.ctx:t._this?e.createCanvasContext&&e.createCanvasContext(t.canvasId,t._this):e.createCanvasContext&&e.createCanvasContext(t.canvasId);for(var i=t.width/n.getModuleCount(),o=t.height/n.getModuleCount(),a=0;a>>7-e%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var T=P;t.default=T}).call(this,r(1)["default"])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.formatPhoneStar=t.formatNumber=t.dateConversion=void 0;var r=function(e){return e>=1e8?(e/1e8).toFixed(1)+"亿":e>=1e4&&e<1e8?(e/1e4).toFixed(1)+"w":e>=1e3?(e/1e3).toFixed(1)+"k":e.toString()};t.formatNumber=r;var n=function(t){var r=e.getSystemInfoSync();return"ios"===r.osName?t.replace(/-/g,"/"):t};t.dateConversion=n;var i=function(e){if(!e)return"";var t=e.replace(/\D/g,"");return 11!==t.length?(console.warn("手机号长度不正确"),e):t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")};t.formatPhoneStar=i}).call(this,r(2)["default"])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={"uicon-level":"","uicon-column-line":"","uicon-checkbox-mark":"","uicon-folder":"","uicon-movie":"","uicon-star-fill":"","uicon-star":"","uicon-phone-fill":"","uicon-phone":"","uicon-apple-fill":"","uicon-chrome-circle-fill":"","uicon-backspace":"","uicon-attach":"","uicon-cut":"","uicon-empty-car":"","uicon-empty-coupon":"","uicon-empty-address":"","uicon-empty-favor":"","uicon-empty-permission":"","uicon-empty-news":"","uicon-empty-search":"","uicon-github-circle-fill":"","uicon-rmb":"","uicon-person-delete-fill":"","uicon-reload":"","uicon-order":"","uicon-server-man":"","uicon-search":"","uicon-fingerprint":"","uicon-more-dot-fill":"","uicon-scan":"","uicon-share-square":"","uicon-map":"","uicon-map-fill":"","uicon-tags":"","uicon-tags-fill":"","uicon-bookmark-fill":"","uicon-bookmark":"","uicon-eye":"","uicon-eye-fill":"","uicon-mic":"","uicon-mic-off":"","uicon-calendar":"","uicon-calendar-fill":"","uicon-trash":"","uicon-trash-fill":"","uicon-play-left":"","uicon-play-right":"","uicon-minus":"","uicon-plus":"","uicon-info":"","uicon-info-circle":"","uicon-info-circle-fill":"","uicon-question":"","uicon-error":"","uicon-close":"","uicon-checkmark":"","uicon-android-circle-fill":"","uicon-android-fill":"","uicon-ie":"","uicon-IE-circle-fill":"","uicon-google":"","uicon-google-circle-fill":"","uicon-setting-fill":"","uicon-setting":"","uicon-minus-square-fill":"","uicon-plus-square-fill":"","uicon-heart":"","uicon-heart-fill":"","uicon-camera":"","uicon-camera-fill":"","uicon-more-circle":"","uicon-more-circle-fill":"","uicon-chat":"","uicon-chat-fill":"","uicon-bag-fill":"","uicon-bag":"","uicon-error-circle-fill":"","uicon-error-circle":"","uicon-close-circle":"","uicon-close-circle-fill":"","uicon-checkmark-circle":"","uicon-checkmark-circle-fill":"","uicon-question-circle-fill":"","uicon-question-circle":"","uicon-share":"","uicon-share-fill":"","uicon-shopping-cart":"","uicon-shopping-cart-fill":"","uicon-bell":"","uicon-bell-fill":"","uicon-list":"","uicon-list-dot":"","uicon-zhihu":"","uicon-zhihu-circle-fill":"","uicon-zhifubao":"","uicon-zhifubao-circle-fill":"","uicon-weixin-circle-fill":"","uicon-weixin-fill":"","uicon-twitter-circle-fill":"","uicon-twitter":"","uicon-taobao-circle-fill":"","uicon-taobao":"","uicon-weibo-circle-fill":"","uicon-weibo":"","uicon-qq-fill":"","uicon-qq-circle-fill":"","uicon-moments-circel-fill":"","uicon-moments":"","uicon-qzone":"","uicon-qzone-circle-fill":"","uicon-baidu-circle-fill":"","uicon-baidu":"","uicon-facebook-circle-fill":"","uicon-facebook":"","uicon-car":"","uicon-car-fill":"","uicon-warning-fill":"","uicon-warning":"","uicon-clock-fill":"","uicon-clock":"","uicon-edit-pen":"","uicon-edit-pen-fill":"","uicon-email":"","uicon-email-fill":"","uicon-minus-circle":"","uicon-minus-circle-fill":"","uicon-plus-circle":"","uicon-plus-circle-fill":"","uicon-file-text":"","uicon-file-text-fill":"","uicon-pushpin":"","uicon-pushpin-fill":"","uicon-grid":"","uicon-grid-fill":"","uicon-play-circle":"","uicon-play-circle-fill":"","uicon-pause-circle-fill":"","uicon-pause":"","uicon-pause-circle":"","uicon-eye-off":"","uicon-eye-off-outline":"","uicon-gift-fill":"","uicon-gift":"","uicon-rmb-circle-fill":"","uicon-rmb-circle":"","uicon-kefu-ermai":"","uicon-server-fill":"","uicon-coupon-fill":"","uicon-coupon":"","uicon-integral":"","uicon-integral-fill":"","uicon-home-fill":"","uicon-home":"","uicon-hourglass-half-fill":"","uicon-hourglass":"","uicon-account":"","uicon-plus-people-fill":"","uicon-minus-people-fill":"","uicon-account-fill":"","uicon-thumb-down-fill":"","uicon-thumb-down":"","uicon-thumb-up":"","uicon-thumb-up-fill":"","uicon-lock-fill":"","uicon-lock-open":"","uicon-lock-opened-fill":"","uicon-lock":"","uicon-red-packet-fill":"","uicon-photo-fill":"","uicon-photo":"","uicon-volume-off-fill":"","uicon-volume-off":"","uicon-volume-fill":"","uicon-volume":"","uicon-red-packet":"","uicon-download":"","uicon-arrow-up-fill":"","uicon-arrow-down-fill":"","uicon-play-left-fill":"","uicon-play-right-fill":"","uicon-rewind-left-fill":"","uicon-rewind-right-fill":"","uicon-arrow-downward":"","uicon-arrow-leftward":"","uicon-arrow-rightward":"","uicon-arrow-upward":"","uicon-arrow-down":"","uicon-arrow-right":"","uicon-arrow-left":"","uicon-arrow-up":"","uicon-skip-back-left":"","uicon-skip-forward-right":"","uicon-rewind-right":"","uicon-rewind-left":"","uicon-arrow-right-double":"","uicon-arrow-left-double":"","uicon-wifi-off":"","uicon-wifi":"","uicon-empty-data":"","uicon-empty-history":"","uicon-empty-list":"","uicon-empty-page":"","uicon-empty-order":"","uicon-man":"","uicon-woman":"","uicon-man-add":"","uicon-man-add-fill":"","uicon-man-delete":"","uicon-man-delete-fill":"","uicon-zh":"","uicon-en":""};t.default=n},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{name:{type:String,default:e.$u.props.icon.name},color:{type:String,default:e.$u.props.icon.color},size:{type:[String,Number],default:e.$u.props.icon.size},bold:{type:Boolean,default:e.$u.props.icon.bold},index:{type:[String,Number],default:e.$u.props.icon.index},hoverClass:{type:String,default:e.$u.props.icon.hoverClass},customPrefix:{type:String,default:e.$u.props.icon.customPrefix},label:{type:[String,Number],default:e.$u.props.icon.label},labelPos:{type:String,default:e.$u.props.icon.labelPos},labelSize:{type:[String,Number],default:e.$u.props.icon.labelSize},labelColor:{type:String,default:e.$u.props.icon.labelColor},space:{type:[String,Number],default:e.$u.props.icon.space},imgMode:{type:String,default:e.$u.props.icon.imgMode},width:{type:[String,Number],default:e.$u.props.icon.width},height:{type:[String,Number],default:e.$u.props.icon.height},top:{type:[String,Number],default:e.$u.props.icon.top},stop:{type:Boolean,default:e.$u.props.icon.stop}}};t.default=r}).call(this,r(2)["default"])},,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{show:{type:Boolean,default:e.$u.props.popup.show},overlay:{type:Boolean,default:e.$u.props.popup.overlay},mode:{type:String,default:e.$u.props.popup.mode},duration:{type:[String,Number],default:e.$u.props.popup.duration},closeable:{type:Boolean,default:e.$u.props.popup.closeable},overlayStyle:{type:[Object,String],default:e.$u.props.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:e.$u.props.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:e.$u.props.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:e.$u.props.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:e.$u.props.popup.safeAreaInsetTop},closeIconPos:{type:String,default:e.$u.props.popup.closeIconPos},round:{type:[Boolean,String,Number],default:e.$u.props.popup.round},zoom:{type:Boolean,default:e.$u.props.popup.zoom},bgColor:{type:String,default:e.$u.props.popup.bgColor},overlayOpacity:{type:[Number,String],default:e.$u.props.popup.overlayOpacity}}};t.default=r}).call(this,r(2)["default"])},,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{show:{type:Boolean,default:e.$u.props.datetimePicker.show},showToolbar:{type:Boolean,default:e.$u.props.datetimePicker.showToolbar},value:{type:[String,Number],default:e.$u.props.datetimePicker.value},title:{type:String,default:e.$u.props.datetimePicker.title},mode:{type:String,default:e.$u.props.datetimePicker.mode},maxDate:{type:Number,default:e.$u.props.datetimePicker.maxDate},minDate:{type:Number,default:e.$u.props.datetimePicker.minDate},minHour:{type:Number,default:e.$u.props.datetimePicker.minHour},maxHour:{type:Number,default:e.$u.props.datetimePicker.maxHour},minMinute:{type:Number,default:e.$u.props.datetimePicker.minMinute},maxMinute:{type:Number,default:e.$u.props.datetimePicker.maxMinute},filter:{type:[Function,null],default:e.$u.props.datetimePicker.filter},formatter:{type:[Function,null],default:e.$u.props.datetimePicker.formatter},loading:{type:Boolean,default:e.$u.props.datetimePicker.loading},itemHeight:{type:[String,Number],default:e.$u.props.datetimePicker.itemHeight},cancelText:{type:String,default:e.$u.props.datetimePicker.cancelText},confirmText:{type:String,default:e.$u.props.datetimePicker.confirmText},cancelColor:{type:String,default:e.$u.props.datetimePicker.cancelColor},confirmColor:{type:String,default:e.$u.props.datetimePicker.confirmColor},visibleItemCount:{type:[String,Number],default:e.$u.props.datetimePicker.visibleItemCount},closeOnClickOverlay:{type:Boolean,default:e.$u.props.datetimePicker.closeOnClickOverlay},defaultIndex:{type:Array,default:e.$u.props.datetimePicker.defaultIndex},immediateChange:{type:Boolean,default:e.$u.props.datetimePicker.immediateChange}}};t.default=r}).call(this,r(2)["default"])},function(e,t,r){var n,i,o=r(13);!function(a,s){"object"===o(t)&&"undefined"!==typeof e?e.exports=s():(n=s,i="function"===typeof n?n.call(t,r,t,e):n,void 0===i||(e.exports=i))}(0,(function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="day",a="week",s="month",c="quarter",u="year",l="date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h=function(e,t,r){var n=String(e);return!n||n.length>=t?e:"".concat(Array(t+1-n.length).join(r)).concat(e)},g={s:h,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return"".concat((t<=0?"+":"-")+h(n,2,"0"),":").concat(h(i,2,"0"))},m:function e(t,r){if(t.date()1&&void 0!==arguments[1]?arguments[1]:2,r="".concat(e);while(r.length",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}},c=t.getSystemInfoSync(),u=c.windowWidth,l=d(" ,\r,\n,\t,\f"),f=0;function d(e){for(var t=Object.create(null),r=e.split(","),n=r.length;n--;)t[r[n]]=!0;return t}function p(e,t){var r=e.indexOf("&");while(-1!=r){var n=e.indexOf(";",r+3),i=void 0;if(-1==n)break;"#"==e[r+1]?(i=parseInt(("x"==e[r+2]?"0":"")+e.substring(r+2,n)),isNaN(i)||(e=e.substr(0,r)+String.fromCharCode(i)+e.substr(n+1))):(i=e.substring(r+1,n),(s.entities[i]||"amp"==i&&t)&&(e=e.substr(0,r)+(s.entities[i]||"&")+e.substr(n+1))),r=e.indexOf("&",r+1)}return e}function h(e){this.options=e||{},this.tagStyle=Object.assign(s.tagStyle,this.options.tagStyle),this.imgList=e.imgList||[],this.plugins=e.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[]}function g(e){this.handler=e}h.prototype.parse=function(e){for(var t=this.plugins.length;t--;)this.plugins[t].onUpdate&&(e=this.plugins[t].onUpdate(e,s)||e);new g(this).parse(e);while(this.stack.length)this.popNode();return this.nodes},h.prototype.expose=function(){for(var e=this.stack.length;e--;){var t=this.stack[e];if("a"==t.name||t.c)return;t.c=1}},h.prototype.hook=function(e){for(var t=this.plugins.length;t--;)if(this.plugins[t].onParse&&0==this.plugins[t].onParse(e,this))return!1;return!0},h.prototype.getUrl=function(e){var t=this.options.domain;return"/"==e[0]?"/"==e[1]?e="".concat(t?t.split("://")[0]:"http",":").concat(e):t&&(e=t+e):!t||e.includes("data:")||e.includes("://")||(e="".concat(t,"/").concat(e)),e},h.prototype.parseStyle=function(e){var t=e.attrs,r=(this.tagStyle[e.name]||"").split(";").concat((t.style||"").split(";")),n={},i="";t.id&&(this.options.useAnchor?this.expose():"img"!=e.name&&"a"!=e.name&&"video"!=e.name&&"audio"!=e.name&&(t.id=void 0)),t.width&&(n.width=parseFloat(t.width)+(t.width.includes("%")?"%":"px"),t.width=void 0),t.height&&(n.height=parseFloat(t.height)+(t.height.includes("%")?"%":"px"),t.height=void 0);for(var o=0,a=r.length;o0||f.includes("safe"))i+=";".concat(c,":").concat(f);else if(!n[c]||f.includes("import")||!n[c].includes("import")){if(f.includes("url")){var d=f.indexOf("(")+1;if(d){while('"'==f[d]||"'"==f[d]||l[f[d]])d++;f=f.substr(0,d)+this.getUrl(f.substr(d))}}else f.includes("rpx")&&(f=f.replace(/[0-9.]+\s*rpx/g,(function(e){return"".concat(parseFloat(e)*u/750,"px")})));n[c]=f}}}return e.attrs.style=i,n},h.prototype.onTagName=function(e){this.tagName=this.xml?e:e.toLowerCase(),"svg"==this.tagName&&(this.xml=!0)},h.prototype.onAttrName=function(e){e=this.xml?e:e.toLowerCase(),"data-"==e.substr(0,5)?"data-src"!=e||this.attrs.src?"img"==this.tagName||"a"==this.tagName?this.attrName=e:this.attrName=void 0:this.attrName="src":(this.attrName=e,this.attrs[e]="T")},h.prototype.onAttrVal=function(e){var t=this.attrName||"";"style"==t||"href"==t?this.attrs[t]=p(e,!0):t.includes("src")?this.attrs[t]=this.getUrl(p(e,!0)):t&&(this.attrs[t]=e)},h.prototype.onOpenTag=function(e){var t=Object.create(null);t.name=this.tagName,t.attrs=this.attrs,this.attrs=Object.create(null);var r=t.attrs,n=this.stack[this.stack.length-1],i=n?n.children:this.nodes,o=this.xml?e:s.voidTags[t.name];if("embed"==t.name){var a=r.src||"";a.includes(".mp4")||a.includes(".3gp")||a.includes(".m3u8")||(r.type||"").includes("video")?t.name="video":(a.includes(".mp3")||a.includes(".wav")||a.includes(".aac")||a.includes(".m4a")||(r.type||"").includes("audio"))&&(t.name="audio"),r.autostart&&(r.autoplay="T"),r.controls="T"}if("video"!=t.name&&"audio"!=t.name||("video"!=t.name||r.id||(r.id="v".concat(f++)),r.controls||r.autoplay||(r.controls="T"),t.src=[],r.src&&(t.src.push(r.src),r.src=void 0),this.expose()),o){if(!this.hook(t)||s.ignoreTags[t.name])return void("base"!=t.name||this.options.domain?"source"==t.name&&n&&("video"==n.name||"audio"==n.name)&&r.src&&n.src.push(r.src):this.options.domain=r.href);var c=this.parseStyle(t);if("img"==t.name){if(r.src&&(r.src.includes("webp")&&(t.webp="T"),r.src.includes("data:")&&!r["original-src"]&&(r.ignore="T"),!r.ignore||t.webp||r.src.includes("cloud://"))){for(var l=this.stack.length;l--;){var d=this.stack[l];if("a"==d.name){t.a=d.attrs;break}var p=d.attrs.style||"";if(!p.includes("flex:")||p.includes("flex:0")||p.includes("flex: 0")||c.width&&c.width.includes("%"))if(p.includes("flex")&&"100%"==c.width)for(var h=l+1;h.5?y[m].toUpperCase():y[m]}x+=y.substr(m),y=x}}this.imgList.push(y)}"inline"==c.display&&(c.display=""),r.ignore&&(c["max-width"]=c["max-width"]||"100%",r.style+=";-webkit-touch-callout:none"),parseInt(c.width)>u&&(c.height=void 0),c.width&&(c.width.includes("auto")?c.width="":(t.w="T",c.height&&!c.height.includes("auto")&&(t.h="T")))}else if("svg"==t.name)return i.push(t),this.stack.push(t),void this.popNode();for(var b in c)c[b]&&(r.style+=";".concat(b,":").concat(c[b].replace(" !important","")));r.style=r.style.substr(1)||void 0}else("pre"==t.name||(r.style||"").includes("white-space")&&r.style.includes("pre"))&&(this.pre=t.pre=!0),t.children=[],this.stack.push(t);i.push(t)},h.prototype.onCloseTag=function(e){var t;for(e=this.xml?e:e.toLowerCase(),t=this.stack.length;t--;)if(this.stack[t].name==e)break;if(-1!=t)while(this.stack.length>t)this.popNode();else if("p"==e||"br"==e){var r=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;r.push({name:e,attrs:{}})}},h.prototype.popNode=function(){var e=this.stack.pop(),r=e.attrs,i=e.children,o=this.stack[this.stack.length-1],c=o?o.children:this.nodes;if(!this.hook(e)||s.ignoreTags[e.name])return"title"==e.name&&i.length&&"text"==i[0].type&&this.options.setTitle&&t.setNavigationBarTitle({title:i[0].text}),void c.pop();if(e.pre){e.pre=this.pre=void 0;for(var l=this.stack.length;l--;)this.stack[l].pre&&(this.pre=!0)}var f={};if("svg"==e.name){var d="",p=r,h=p.style;return r.style="",r.xmlns="http://www.w3.org/2000/svg",function e(t){for(var r in d+="<".concat(t.name),t.attrs){var n=t.attrs[r];n&&("viewbox"==r&&(r="viewBox"),d+=" ".concat(r,'="').concat(n,'"'))}if(t.children){d+=">";for(var i=0;i")}else d+="/>"}(e),e.name="img",e.attrs={src:"data:image/svg+xml;utf8,".concat(d.replace(/#/g,"%23")),style:h,ignore:"T"},e.children=void 0,void(this.xml=!1)}if(r.align&&("table"==e.name?"center"==r.align?f["margin-inline-start"]=f["margin-inline-end"]="auto":f.float=r.align:f["text-align"]=r.align,r.align=void 0),"font"==e.name&&(r.color&&(f.color=r.color,r.color=void 0),r.face&&(f["font-family"]=r.face,r.face=void 0),r.size)){var g=parseInt(r.size);isNaN(g)||(g<1?g=1:g>7&&(g=7),f["font-size"]=["xx-small","x-small","small","medium","large","x-large","xx-large"][g-1]),r.size=void 0}if((r.class||"").includes("align-center")&&(f["text-align"]="center"),Object.assign(f,this.parseStyle(e)),parseInt(f.width)>u&&(f["max-width"]="100%",f["box-sizing"]="border-box"),s.blockTags[e.name]?e.name="div":s.trustTags[e.name]||this.xml||(e.name="span"),"a"==e.name||"ad"==e.name)this.expose();else if("ul"!=e.name&&"ol"!=e.name||!e.c){if("table"==e.name){var v=parseFloat(r.cellpadding),y=parseFloat(r.cellspacing),m=parseFloat(r.border);if(e.c&&(isNaN(v)&&(v=2),isNaN(y)&&(y=2)),m&&(r.style+=";border:".concat(m,"px solid gray")),e.flag&&e.c){f.display="grid",y?(f["grid-gap"]="".concat(y,"px"),f.padding="".concat(y,"px")):m&&(r.style+=";border-left:0;border-top:0");var x=[],b=[],w=[],A={};(function e(t){for(var r=0;r"==this.content[this.i]||t&&">"==this.content[this.i+1])&&(e&&this.handler[e](this.content.substring(this.start,this.i)),this.i+=t?2:1,this.start=this.i,this.handler.onOpenTag(t),"script"==this.handler.tagName?(this.i=this.content.indexOf("="a"&&e<="z"||e>="A"&&e<="Z")this.start!=this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"==e||"!"==e||"?"==e){this.start!=this.i&&this.handler.onText(this.content.substring(this.start,this.i));var t=this.content[this.i+2];if("/"==e&&(t>="a"&&t<="z"||t>="A"&&t<="Z"))return this.i+=2,this.start=this.i,this.state=this.endTag;var r="--\x3e";"!"==e&&"-"==this.content[this.i+2]&&"-"==this.content[this.i+3]||(r=">"),this.i=this.content.indexOf(r,this.i),-1!=this.i&&(this.i+=r.length,this.start=this.i)}else this.i++}else this.start"==e||"/"==e){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!=e&&(this.i=this.content.indexOf(">",this.i),-1==this.i))return;this.start=++this.i,this.state=this.text}else this.i++},e.exports=h}).call(this,r(2)["default"],r(1)["default"])},,,,,,,,function(e,t,r){"use strict";(function(e,n,i){var o=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.uniCloud=t.default=t.UniCloudError=void 0;var a=o(r(34)),s=o(r(669)),c=o(r(5)),u=o(r(13)),l=o(r(18)),f=o(r(36)),d=o(r(11)),p=o(r(670)),h=o(r(671)),g=o(r(672)),v=o(r(673)),y=o(r(23)),m=o(r(24)),x=o(r(675));function b(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=w(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function w(e,t){if(e){if("string"===typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){t=t;var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*c,i);if(c){for(var l=0;l>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],g=e[t+4],v=e[t+5],y=e[t+6],m=e[t+7],x=e[t+8],b=e[t+9],w=e[t+10],A=e[t+11],_=e[t+12],S=e[t+13],k=e[t+14],P=e[t+15],T=o[0],C=o[1],O=o[2],E=o[3];T=u(T,C,O,E,a,7,s[0]),E=u(E,T,C,O,c,12,s[1]),O=u(O,E,T,C,p,17,s[2]),C=u(C,O,E,T,h,22,s[3]),T=u(T,C,O,E,g,7,s[4]),E=u(E,T,C,O,v,12,s[5]),O=u(O,E,T,C,y,17,s[6]),C=u(C,O,E,T,m,22,s[7]),T=u(T,C,O,E,x,7,s[8]),E=u(E,T,C,O,b,12,s[9]),O=u(O,E,T,C,w,17,s[10]),C=u(C,O,E,T,A,22,s[11]),T=u(T,C,O,E,_,7,s[12]),E=u(E,T,C,O,S,12,s[13]),O=u(O,E,T,C,k,17,s[14]),T=l(T,C=u(C,O,E,T,P,22,s[15]),O,E,c,5,s[16]),E=l(E,T,C,O,y,9,s[17]),O=l(O,E,T,C,A,14,s[18]),C=l(C,O,E,T,a,20,s[19]),T=l(T,C,O,E,v,5,s[20]),E=l(E,T,C,O,w,9,s[21]),O=l(O,E,T,C,P,14,s[22]),C=l(C,O,E,T,g,20,s[23]),T=l(T,C,O,E,b,5,s[24]),E=l(E,T,C,O,k,9,s[25]),O=l(O,E,T,C,h,14,s[26]),C=l(C,O,E,T,x,20,s[27]),T=l(T,C,O,E,S,5,s[28]),E=l(E,T,C,O,p,9,s[29]),O=l(O,E,T,C,m,14,s[30]),T=f(T,C=l(C,O,E,T,_,20,s[31]),O,E,v,4,s[32]),E=f(E,T,C,O,x,11,s[33]),O=f(O,E,T,C,A,16,s[34]),C=f(C,O,E,T,k,23,s[35]),T=f(T,C,O,E,c,4,s[36]),E=f(E,T,C,O,g,11,s[37]),O=f(O,E,T,C,m,16,s[38]),C=f(C,O,E,T,w,23,s[39]),T=f(T,C,O,E,S,4,s[40]),E=f(E,T,C,O,a,11,s[41]),O=f(O,E,T,C,h,16,s[42]),C=f(C,O,E,T,y,23,s[43]),T=f(T,C,O,E,b,4,s[44]),E=f(E,T,C,O,_,11,s[45]),O=f(O,E,T,C,P,16,s[46]),T=d(T,C=f(C,O,E,T,p,23,s[47]),O,E,a,6,s[48]),E=d(E,T,C,O,m,10,s[49]),O=d(O,E,T,C,k,15,s[50]),C=d(C,O,E,T,v,21,s[51]),T=d(T,C,O,E,_,6,s[52]),E=d(E,T,C,O,h,10,s[53]),O=d(O,E,T,C,w,15,s[54]),C=d(C,O,E,T,c,21,s[55]),T=d(T,C,O,E,x,6,s[56]),E=d(E,T,C,O,P,10,s[57]),O=d(O,E,T,C,y,15,s[58]),C=d(C,O,E,T,S,21,s[59]),T=d(T,C,O,E,g,6,s[60]),E=d(E,T,C,O,A,10,s[61]),O=d(O,E,T,C,p,15,s[62]),C=d(C,O,E,T,b,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+C|0,o[2]=o[2]+O|0,o[3]=o[3]+E|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),r.MD5)})),C((function(e,t){var r;e.exports=(r=E,void function(){var e=r,t=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,u=0;u>>6-a%4*2;i[o>>>2]|=(s|c)<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},r=t.createPromise,n=t.retryRule,i=void 0===n?H:n;(0,y.default)(this,e),this.createPromise=r,this.status=null,this.promise=null,this.retryRule=i}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case H:return this.status===R;case W:return this.status!==F}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=F,this.promise=this.createPromise().then((function(t){return e.status=N,Promise.resolve(t)}),(function(t){return e.status=R,Promise.reject(t)})),this.promise):this.promise}}]),e}();function V(e){return e&&"string"==typeof e?JSON.parse(e):e}var K=!0,G="mp-weixin",Y=!1,J=V([]),X="h5"===G?"web":"app-plus"===G||"app-harmony"===G?"app":G,Z=V(void 0),ee=V([])||[],te=!0;try{(r(676).default||r(676)).appid}catch(Ji){}var re,ne={};function ie(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=ne,r=e,Object.prototype.hasOwnProperty.call(t,r)||(ne[e]=n),ne[e]}function oe(){return re||(re=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),re)}"app"===X&&(ne=n._globalUniCloudObj?n._globalUniCloudObj:n._globalUniCloudObj={});var ae=["invoke","success","fail","complete"],se=ie("_globalUniCloudInterceptor");function ce(e,t){se[e]||(se[e]={}),$(t)&&Object.keys(t).forEach((function(r){ae.indexOf(r)>-1&&function(e,t,r){var n=se[e][t];n||(n=se[e][t]=[]),-1===n.indexOf(r)&&z(r)&&n.push(r)}(e,r,t[r])}))}function ue(e,t){se[e]||(se[e]={}),$(t)?Object.keys(t).forEach((function(r){ae.indexOf(r)>-1&&function(e,t,r){var n=se[e][t];if(n){var i=n.indexOf(r);i>-1&&n.splice(i,1)}}(e,r,t[r])})):delete se[e]}function le(e,t){return e&&0!==e.length?e.reduce((function(e,r){return e.then((function(){return r(t)}))}),Promise.resolve()):Promise.resolve()}function fe(e,t){return se[e]&&se[e][t]||[]}function de(e){ce("callObject",e)}var pe=ie("_globalUniCloudListener"),he="response",ge="needLogin",ve="refreshToken",ye="failover",me="clientdb",xe="cloudfunction",be="cloudobject";function we(e){return pe[e]||(pe[e]=[]),pe[e]}function Ae(e,t){var r=we(e);r.includes(t)||r.push(t)}function _e(e,t){var r=we(e),n=r.indexOf(t);-1!==n&&r.splice(n,1)}function Se(e,t){for(var r=we(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),r}((0,v.default)(Error));t.UniCloudError=Oe;var Ee,Ie,Me={request:function(e){return n.request(e)},uploadFile:function(e){return n.uploadFile(e)},setStorageSync:function(e,t){return n.setStorageSync(e,t)},getStorageSync:function(e){return n.getStorageSync(e)},removeStorageSync:function(e){return n.removeStorageSync(e)},clearStorageSync:function(){return n.clearStorageSync()},connectSocket:function(e){return n.connectSocket(e)}};function Le(){return{token:Me.getStorageSync("uni_id_token")||Me.getStorageSync("uniIdToken"),tokenExpired:Me.getStorageSync("uni_id_token_expired")}}function je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,r=e.tokenExpired;t&&Me.setStorageSync("uni_id_token",t),r&&Me.setStorageSync("uni_id_token_expired",r)}function De(){return Ee||(Ee="mp-weixin"===X&&i.canIUse("getAppBaseInfo")&&i.canIUse("getDeviceInfo")?S(S({},n.getAppBaseInfo()),n.getDeviceInfo()):n.getSystemInfoSync()),Ee}function Be(){var e,t;try{if(n.getLaunchOptionsSync){if(n.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var r=n.getLaunchOptionsSync(),i=r.scene,o=r.channel;e=o,t=i}}catch(e){}return{channel:e,scene:t}}var Fe={};function Ne(){var e=n.getLocale&&n.getLocale()||"en";if(Ie)return S(S(S({},Fe),Ie),{},{locale:e,LOCALE:e});var t=De(),r=t.deviceId,i=t.osName,o=t.uniPlatform,a=t.appId,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(var c in t)Object.hasOwnProperty.call(t,c)&&-1===s.indexOf(c)&&delete t[c];return Ie=S(S({PLATFORM:o,OS:i,APPID:a,DEVICEID:r},Be()),t),S(S(S({},Fe),Ie),{},{locale:e,LOCALE:e})}var Re,Ue={sign:function(e,t){var r="";return Object.keys(e).sort().forEach((function(t){e[t]&&(r=r+"&"+t+"="+e[t])})),r=r.slice(1),I(r,t).toString()},wrappedRequest:function(e,t){return new Promise((function(r,n){t(Object.assign(e,{complete:function(e){e||(e={}),K&&"web"===X&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){var i=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",o=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return n(new Oe({code:i,message:o,requestId:t}))}var a=e.data;if(a.error)return n(new Oe({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,r(a)}}))}))},toBase64:function(e){return L.stringify(M.parse(e))}},$e=function(){function e(t){var r=this;(0,y.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Me,this._getAccessTokenPromiseHub=new Q({createPromise:function(){return r.requestAuth(r.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new Oe({code:"AUTH_FAILED",message:"获取accessToken失败"});r.setAccessToken(e.result.accessToken)}))},retryRule:W})}return(0,m.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return Ue.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var r=this;return Promise.resolve().then((function(){return r.hasAccessToken?t?r.requestWrapped(e):r.requestWrapped(e).catch((function(t){return new Promise((function(e,r){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?r(t):e()})).then((function(){return r.getAccessToken()})).then((function(){var t=r.rebuildRequest(e);return r.request(t,!0)}))})):r.getAccessToken().then((function(){var t=r.rebuildRequest(e);return r.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Ue.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var r=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(r.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=Ue.sign(r,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:r,dataType:"json",header:n}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(S(S({},this.setupRequest(t)),{},{timeout:e.timeout}))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,r=e.url,n=e.formData,i=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:r,formData:n,name:i,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new Oe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new Oe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n,i,o,s,c,u,l,f,d,p,h,g,v,y,m,x,b,w,A,_,S;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.filePath,n=t.cloudPath,i=t.fileType,o=void 0===i?"image":i,s=t.cloudPathAsRealPath,c=void 0!==s&&s,u=t.onUploadProgress,l=t.config,"string"===U(n)){e.next=3;break}throw new Oe({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(n=n.trim()){e.next=5;break}throw new Oe({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(n)){e.next=7;break}throw new Oe({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(f=l&&l.envType||this.config.envType,!(c&&("/"!==n[0]&&(n="/"+n),n.indexOf("\\")>-1))){e.next=10;break}throw new Oe({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:f,filename:c?n.split("/").pop():n,fileId:c?n:void 0});case 12:return d=e.sent.result,p="https://"+d.cdnDomain+"/"+d.ossPath,h=d.securityToken,g=d.accessKeyId,v=d.signature,y=d.host,m=d.ossPath,x=d.id,b=d.policy,w=d.ossCallbackUrl,A={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:g,Signature:v,host:y,id:x,key:m,policy:b,success_action_status:200},h&&(A["x-oss-security-token"]=h),w&&(_=JSON.stringify({callbackUrl:w,callbackBody:JSON.stringify({fileId:x,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),A.callback=Ue.toBase64(_)),S={url:"https://"+d.host,formData:A,fileName:"file",name:"file",filePath:r,fileType:o},e.next=27,this.uploadFileToOSS(Object.assign({},S,{onUploadProgress:u}));case 27:if(!w){e.next=29;break}return e.abrupt("return",{success:!0,filePath:r,fileID:p});case 29:return e.next=31,this.reportOSSUpload({id:x});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:r,fileID:p});case 33:throw new Oe({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getTempFileURL",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.fileList;return new Promise((function(t,n){Array.isArray(r)&&0!==r.length||n(new Oe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e.getFileInfo({fileList:r}).then((function(e){t({fileList:r.map((function(t,r){var n=e.fileList[r];return{fileID:t,tempFileURL:n&&n.url||t}}))})}))}))}},{key:"getFileInfo",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,r,n,i=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},r=t.fileList,Array.isArray(r)&&0!==r.length){e.next=3;break}throw new Oe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return n={method:"serverless.file.resource.info",params:JSON.stringify({id:r.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(n));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}(),ze={init:function(e){var t=new $e(e),r={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return r},t.customAuth=t.auth,t}},qe="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Re||(Re={}));var He,We=function(){},Qe=C((function(e,t){var r;e.exports=(r=E,function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),c[i]=r(e.pow(n,1/3)),i++),n++}();var u=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],f=r[6],d=r[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var h=u[p-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=u[p-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[p]=g+u[p-7]+y+u[p-16]}var m=n&i^n&o^i&o,x=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),b=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+c[p]+u[p];d=f,f=l,l=s,s=a+b|0,a=o,o=i,i=n,n=b+(x+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),r.SHA256)})),Ve=Qe,Ke=C((function(e,t){e.exports=E.HmacSHA256})),Ge=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new Oe({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var r=new Promise((function(t,r){e=function(e,n){return e?r(e):t(n)}}));return e.promise=r,e};function Ye(e){return void 0===e}function Je(e){return"[object Null]"===Object.prototype.toString.call(e)}function Xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function Ze(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=t.length,n="",i=0;i=0?JSON.parse(r).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),at={},st={};function ct(e){return at[e]}var ut=(0,m.default)((function e(t,r){(0,y.default)(this,e),this.data=r||null,this.name=t})),lt=function(e){(0,p.default)(r,e);var t=k(r);function r(e,n){var i;return(0,y.default)(this,r),i=t.call(this,"error",{error:e,data:n}),i.error=e,i}return(0,m.default)(r)}(ut),ft=new(function(){function e(){(0,y.default)(this,e),this._listeners={}}return(0,m.default)(e,[{key:"on",value:function(e,t){return function(e,t,r){r[e]=r[e]||[],r[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,r){if(r&&r[e]){var n=r[e].indexOf(t);-1!==n&&r[e].splice(n,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof lt)return console.error(e.error),this;var r="string"==typeof e?new ut(e,t||{}):e,n=r.name;if(this._listens(n)){r.target=this;var i,o=this._listeners[n]?(0,l.default)(this._listeners[n]):[],a=b(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.call(this,r)}}catch(c){a.e(c)}finally{a.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function dt(e,t){ft.on(e,t)}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ft.fire(e,t)}function ht(e,t){ft.off(e,t)}var gt,vt="loginStateChanged",yt="loginStateExpire",mt="loginTypeChanged",xt="anonymousConverted",bt="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(gt||(gt={}));var wt=function(){function e(){(0,y.default)(this,e),this._fnPromiseMap=new Map}return(0,m.default)(e,[{key:"run",value:function(){var e=(0,f.default)(a.default.mark((function e(t,r){var n,i=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._fnPromiseMap.get(t),e.abrupt("return",(n||(n=new Promise(function(){var e=(0,f.default)(a.default.mark((function e(n,o){var s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i._runIdlePromise();case 3:return s=r(),e.t0=n,e.next=7,s;case 7:e.t1=e.sent,(0,e.t0)(e.t1),e.next=14;break;case 11:e.prev=11,e.t2=e["catch"](0),o(e.t2);case 14:return e.prev=14,i._fnPromiseMap.delete(t),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})));return function(t,r){return e.apply(this,arguments)}}()),this._fnPromiseMap.set(t,n)),n));case 2:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"_runIdlePromise",value:function(){return Promise.resolve()}}]),e}(),At=function(){function e(t){(0,y.default)(this,e),this._singlePromise=new wt,this._cache=ct(t.env),this._baseURL="https://".concat(t.env,".ap-shanghai.tcb-api.tencentcloudapi.com"),this._reqClass=new tt.adapter.reqClass({timeout:t.timeout,timeoutMsg:"请求在".concat(t.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]})}return(0,m.default)(e,[{key:"_getDeviceId",value:function(){if(this._deviceID)return this._deviceID;var e=this._cache.keys.deviceIdKey,t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Ze(),this._cache.setStore(e,t)),this._deviceID=t,t}},{key:"_request",value:function(){var e=(0,f.default)(a.default.mark((function e(t,r){var n,i,o,s,c,u=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=u.length>2&&void 0!==u[2]?u[2]:{},i={"x-request-id":Ze(),"x-device-id":this._getDeviceId()},!n.withAccessToken){e.next=9;break}return o=this._cache.keys.tokenTypeKey,e.next=6,this.getAccessToken();case 6:s=e.sent,c=this._cache.getStore(o),i.authorization="".concat(c," ").concat(s);case 9:return e.abrupt("return",this._reqClass["get"===n.method?"get":"post"]({url:"".concat(this._baseURL).concat(t),data:r,headers:i}));case 10:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"_fetchAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,r,n,i,o,s,c,u,l,d,p=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.loginTypeKey,n=t.accessTokenKey,i=t.accessTokenExpireKey,o=t.tokenTypeKey,s=this._cache.getStore(r),!s||s===gt.ANONYMOUS){e.next=3;break}throw new Oe({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});case 3:return e.next=5,this._singlePromise.run("fetchAccessToken",(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p._request("/auth/v1/signin/anonymously",{},{method:"post"});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)}))));case 5:return c=e.sent,u=c.access_token,l=c.expires_in,d=c.token_type,e.abrupt("return",(this._cache.setStore(o,d),this._cache.setStore(n,u),this._cache.setStore(i,Date.now()+1e3*l),u));case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isAccessTokenExpired",value:function(e,t){var r=!0;return e&&t&&(r=t0&&void 0!==arguments[0]?arguments[0]:{};(0,y.default)(this,e),this.config=r,this._reqClass=new tt.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=ct(this.config.env),this._localCache=(t=this.config.env,st[t]),this.oauth=new At(this.config),kt(this._reqClass,"post",[Pt]),kt(this._reqClass,"upload",[Pt]),kt(this._reqClass,"download",[Pt])}return(0,m.default)(e,[{key:"post",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upload",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"download",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refreshAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),r=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!r){e.next=12;break}throw r;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"_refreshAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,r,n,i,o,s,c,u,l,f,d,p,h;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey,o=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(r),this._cache.removeStore(n),c=this._cache.getStore(i),c){e.next=5;break}throw new Oe({message:"未登录CloudBase"});case 5:return u={refresh_token:c},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(l=e.sent,!l.data.code){e.next=21;break}if(f=l.data.code,"SIGN_PARAM_INVALID"!==f&&"REFRESH_TOKEN_EXPIRED"!==f&&"INVALID_REFRESH_TOKEN"!==f){e.next=20;break}if(this._cache.getStore(o)!==gt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==f){e.next=19;break}return d=this._cache.getStore(s),p=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:p});case 17:return h=e.sent,e.abrupt("return",(this.setRefreshToken(h.refresh_token),this._refreshAccessToken()));case 19:pt(yt),this._cache.removeStore(i);case 20:throw new Oe({code:l.data.code,message:"刷新access token失败:".concat(l.data.code)});case 21:if(!l.data.access_token){e.next=23;break}return e.abrupt("return",(pt(bt),this._cache.setStore(r,l.data.access_token),this._cache.setStore(n,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire}));case 23:l.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,r,n,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new Oe({message:"refresh token不存在,登录状态异常"});case 3:if(o=this._cache.getStore(r),s=this._cache.getStore(n),c=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(o,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!o||!s||s2&&void 0!==arguments[2]?arguments[2]:{},n=/\?/.test(t),i="";for(var o in r)""===i?!n&&(t+="?"):i+="&",i+="".concat(o,"=").concat(encodeURIComponent(r[o]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(qe,"//tcb-api.tencentcloudapi.com/web",v),g&&(y+=g),e.next=28,this.post(S({url:y,data:c},f));case 28:if(m=e.sent,x=m.header&&m.header["x-tcb-trace"],x&&this._localCache.setStore(i,x),(200===Number(m.status)||200===Number(m.statusCode))&&m.data){e.next=32;break}throw new Oe({code:"NETWORK_ERROR",message:"network request error"});case 32:return e.abrupt("return",m);case 33:case"end":return e.stop()}}),e,this)})));function t(t,r,n){return e.apply(this,arguments)}return t}()},{key:"send",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n,i,o,s=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:{},n=s.length>2&&void 0!==s[2]?s[2]:{},e.next=4,this.request(t,r,S(S({},n),{},{onUploadProgress:r.onUploadProgress}));case 4:if(i=e.sent,"ACCESS_TOKEN_DISABLED"!==i.data.code&&"ACCESS_TOKEN_EXPIRED"!==i.data.code||-1!==_t.indexOf(t)){e.next=14;break}return e.next=8,this.oauth.refreshAccessToken();case 8:return e.next=10,this.request(t,r,S(S({},n),{},{onUploadProgress:r.onUploadProgress}));case 10:if(o=e.sent,!o.data.code){e.next=13;break}throw new Oe({code:o.data.code,message:Xe(o.data.message)});case 13:return e.abrupt("return",o.data);case 14:if(!i.data.code){e.next=16;break}throw new Oe({code:i.data.code,message:Xe(i.data.message)});case 16:return e.abrupt("return",i.data);case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(r),this._cache.removeStore(n),this._cache.setStore(i,e)}}]),e}(),Ct={};function Ot(e){return Ct[e]}var Et=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=ct(t.env),this._request=Ot(t.env)}return(0,m.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(r),this._cache.removeStore(n),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var r=this._cache.keys,n=r.accessTokenKey,i=r.accessTokenExpireKey;this._cache.setStore(n,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,r=t.data,e.abrupt("return",(this.setLocalUserInfo(r),r));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),It=function(){function e(t){if((0,y.default)(this,e),!t)throw new Oe({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=ct(this._envId),this._request=Ot(this._envId),this.setUserInfo()}return(0,m.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new Oe({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new Oe({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,r,n,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,r=t.data,n=!1,i=r.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(n=!0)})),{users:i,hasPrimaryUid:n}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n,i,o,s,c,u,l;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.nickName,n=t.gender,i=t.avatarUrl,o=t.province,s=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:r,gender:n,avatarUrl:i,province:o,country:s,city:c});case 8:u=e.sent,l=u.data,this.setLocalUserInfo(l);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refresh",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.oauth.getUserInfo();case 2:return t=e.sent,e.abrupt("return",(this.setLocalUserInfo(t),t));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,r=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=r[t]})),this.location={country:r.country,province:r.province,city:r.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),Mt=function(){function e(t){if((0,y.default)(this,e),!t)throw new Oe({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=ct(t);var r=this._cache.keys,n=r.refreshTokenKey,i=r.accessTokenKey,o=r.accessTokenExpireKey,a=this._cache.getStore(n),s=this._cache.getStore(i),c=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:c},this.user=new It(t)}return(0,m.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===gt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===gt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===gt.WECHAT||this.loginType===gt.WECHAT_OPEN||this.loginType===gt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),Lt=function(e){(0,p.default)(r,e);var t=k(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,m.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),e.next=3,this._request.oauth.getAccessToken();case 3:return pt(vt),pt(mt,{env:this.config.env,loginType:gt.ANONYMOUS,persistence:"local"}),t=new Mt(this.config.env),e.next=8,t.user.refresh();case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._cache.keys,n=r.anonymousUuidKey,i=r.refreshTokenKey,o=this._cache.getStore(n),s=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:s,ticket:t});case 7:if(c=e.sent,!c.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return pt(xt,{env:this.config.env}),pt(mt,{loginType:gt.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new Oe({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,r=t.anonymousUuidKey,n=t.loginTypeKey;this._cache.removeStore(r),this._cache.setStore(r,e),this._cache.setStore(n,gt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),r}(Et),jt=function(e){(0,p.default)(r,e);var t=k(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,m.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Oe({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(r)||""});case 5:if(n=e.sent,!n.refresh_token){e.next=15;break}return this.setRefreshToken(n.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return pt(vt),pt(mt,{env:this.config.env,loginType:gt.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new Mt(this.config.env));case 15:throw new Oe({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),r}(Et),Dt=function(e){(0,p.default)(r,e);var t=k(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,m.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t,r){var n,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Oe({code:"PARAM_ERROR",message:"email must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:r,refresh_token:this._cache.getStore(n)||""});case 5:if(i=e.sent,o=i.refresh_token,s=i.access_token,c=i.access_token_expire,!o){e.next=22;break}if(this.setRefreshToken(o),!s||!c){e.next=15;break}this.setAccessToken(s,c),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return pt(vt),pt(mt,{env:this.config.env,loginType:gt.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new Mt(this.config.env));case 22:throw i.code?new Oe({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new Oe({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"activate",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"resetPasswordWithToken",value:function(){var e=(0,f.default)(a.default.mark((function e(t,r){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:r}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()}]),r}(Et),Bt=function(e){(0,p.default)(r,e);var t=k(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,m.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t,r){var n,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Oe({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof r&&(r="",console.warn("password is empty")),n=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:gt.USERNAME,username:t,password:r,refresh_token:this._cache.getStore(n)||""});case 6:if(i=e.sent,o=i.refresh_token,s=i.access_token_expire,c=i.access_token,!o){e.next=23;break}if(this.setRefreshToken(o),!c||!s){e.next=16;break}this.setAccessToken(c,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return pt(vt),pt(mt,{env:this.config.env,loginType:gt.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new Mt(this.config.env));case 23:throw i.code?new Oe({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new Oe({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()}]),r}(Et),Ft=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=ct(t.env),this._request=Ot(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),dt(mt,this._onLoginTypeChanged)}return(0,m.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new Lt(this.config)}},{key:"customAuthProvider",value:function(){return new jt(this.config)}},{key:"emailAuthProvider",value:function(){return new Dt(this.config)}},{key:"usernameAuthProvider",value:function(){return new Bt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Lt(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,f.default)(a.default.mark((function e(t,r){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Dt(this.config).signIn(t,r));case 1:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new Bt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Lt(this.config)),dt(xt,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"signOut",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,r,n,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==gt.ANONYMOUS){e.next=2;break}throw new Oe({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,r=t.refreshTokenKey,n=t.accessTokenKey,i=t.accessTokenExpireKey,o=this._cache.getStore(r),o){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:o});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(r),this._cache.removeStore(n),this._cache.removeStore(i),pt(vt),pt(mt,{env:this.config.env,loginType:gt.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,f.default)(a.default.mark((function e(t,r){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:r}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onLoginStateChanged",value:function(e){var t=this;dt(vt,(function(){var r=t.hasLoginState();e.call(t,r)}));var r=this.hasLoginState();e.call(this,r)}},{key:"onLoginStateExpired",value:function(e){dt(yt,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){dt(bt,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){dt(xt,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;dt(mt,(function(){var r=t.hasLoginState();e.call(t,r)}))}},{key:"getAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hasLoginState",value:function(){var e=this._cache.keys,t=e.accessTokenKey,r=e.accessTokenExpireKey,n=this._cache.getStore(t),i=this._cache.getStore(r);return this._request.oauth.isAccessTokenExpired(n,i)?null:new Mt(this.config.env)}},{key:"isUsernameRegistered",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Oe({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return r=e.sent,n=r.data,e.abrupt("return",n&&n.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new jt(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:S(S({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,r=e.accessTokenKey,n=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(r)+"/@@/"+n}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,r=t.loginType,n=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,r))}}]),e}(),Nt=function(e,t){t=t||Ge();var r=Ot(this.config.env),n=e.cloudPath,i=e.filePath,o=e.onUploadProgress,a=e.fileType,s=void 0===a?"image":a;return r.send("storage.getUploadMetadata",{path:n}).then((function(e){var a=e.data,c=a.url,u=a.authorization,l=a.token,f=a.fileId,d=a.cosFileId,p=e.requestId,h={key:n,signature:u,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};r.upload({url:c,data:h,file:i,name:n,fileType:s,onUploadProgress:o}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:p}):t(new Oe({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},Rt=function(e,t){t=t||Ge();var r=Ot(this.config.env),n=e.cloudPath;return r.send("storage.getUploadMetadata",{path:n}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},Ut=function(e,t){var r=e.fileList;if(t=t||Ge(),!r||!Array.isArray(r))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var n,i=b(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var a={fileid_list:r};return Ot(this.config.env).send("storage.batchDeleteFile",a).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},$t=function(e,t){var r=e.fileList;t=t||Ge(),r&&Array.isArray(r)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var n,i=[],o=b(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;"object"==(0,u.default)(a)?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?i.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(c){o.e(c)}finally{o.f()}var s={file_list:i};return Ot(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},zt=function(){var e=(0,f.default)(a.default.mark((function e(t,r){var n,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileID,e.next=3,$t.call(this,{fileList:[{fileID:n,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",r?r(i):new Promise((function(e){e(i)})));case 6:if(o=Ot(this.config.env),s=i.download_url,s=encodeURI(s),r){e.next=10;break}return e.abrupt("return",o.download({url:s}));case 10:return e.t0=r,e.next=13,o.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),qt=function(e,t){var r,n=e.name,i=e.data,o=e.query,a=e.parse,s=e.search,c=e.timeout,u=t||Ge();try{r=i?JSON.stringify(i):""}catch(n){return Promise.reject(n)}if(!n)return Promise.reject(new Oe({code:"PARAM_ERROR",message:"函数名不能为空"}));var l={inQuery:o,parse:a,search:s,function_name:n,request_data:r};return Ot(this.config.env).send("functions.invokeFunction",l,{timeout:c}).then((function(e){if(e.code)u(null,e);else{var t=e.data.response_data;if(a)u(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),u(null,{result:t,requestId:e.requestId})}catch(e){u(new Oe({message:"response data must be json"}))}}return u.promise})).catch((function(e){u(e)})),u.promise},Ht={timeout:15e3,persistence:"session"},Wt={},Qt=function(){function e(t){(0,y.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,m.default)(e,[{key:"init",value:function(t){switch(tt.adapter||(this.requestClient=new tt.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=S(S({},Ht),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var r,n=t||tt.adapter.primaryStorage||Ht.persistence;return n!==this.config.persistence&&(this.config.persistence=n),function(e){var t=e.env;at[t]=new ot(e),st[t]=new ot(S(S({},e),{},{persistence:"local"}))}(this.config),r=this.config,Ct[r.env]=new Tt(r),this.authObj=new Ft(this.config),this.authObj}},{key:"on",value:function(e,t){return dt.apply(this,[e,t])}},{key:"off",value:function(e,t){return ht.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return qt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return Ut.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return $t.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return zt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return Nt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return Rt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Wt[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,f.default)(a.default.mark((function e(t,r){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=Wt[t],n){e.next=3;break}throw new Oe({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,n.invoke(r,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"useAdapters",value:function(e){var t=et(e)||{},r=t.adapter,n=t.runtime;r&&(tt.adapter=r),n&&(tt.runtime=n)}}]),e}(),Vt=new Qt;function Kt(e,t,r){void 0===r&&(r={});var n=/\?/.test(t),i="";for(var o in r)""===i?!n&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(r[o]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var Gt=function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"get",value:function(e){var t=e.url,r=e.data,n=e.headers,i=e.timeout;return new Promise((function(e,o){Me.request({url:Kt("https:",t),data:r,method:"GET",header:n,timeout:i,success:function(t){e(t)},fail:function(e){o(e)}})}))}},{key:"post",value:function(e){var t=e.url,r=e.data,n=e.headers,i=e.timeout;return new Promise((function(e,o){Me.request({url:Kt("https:",t),data:r,method:"POST",header:n,timeout:i,success:function(t){e(t)},fail:function(e){o(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,r){var n=e.url,i=e.file,o=e.data,a=e.headers,s=e.fileType,c=Me.uploadFile({url:Kt("https:",n),name:"file",formData:Object.assign({},o),filePath:i,fileType:s,header:a,success:function(e){var r={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(r.statusCode=parseInt(o.success_action_status,10)),t(r)},fail:function(e){r(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),Yt={setItem:function(e,t){Me.setStorageSync(e,t)},getItem:function(e){return Me.getStorageSync(e)},removeItem:function(e){Me.removeStorageSync(e)},clear:function(){Me.clearStorageSync()}},Jt={genAdapter:function(){return{root:{},reqClass:Gt,localStorage:Yt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Vt.useAdapters(Jt);var Xt=Vt,Zt=Xt.init;Xt.init=function(e){e.env=e.spaceId;var t=Zt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var r=t.auth;return t.auth=function(e){var t=r.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var r;t[e]=(r=t[e],function(e){e=e||{};var t=Ce(e),n=t.success,i=t.fail,o=t.complete;if(!(n||i||o))return r.call(this,e);r.call(this,e).then((function(e){n&&n(e),o&&o(e)}),(function(e){i&&i(e),o&&o(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var er=Xt;function tr(e,t){return rr.apply(this,arguments)}function rr(){return rr=(0,f.default)(a.default.mark((function e(t,r){var n,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="http://".concat(t,":").concat(r,"/system/ping"),e.prev=1,e.next=4,o={url:n,timeout:500},new Promise((function(e,t){Me.request(S(S({},o),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return i=e.sent,e.abrupt("return",!(!i.data||0!==i.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),rr.apply(this,arguments)}function nr(e,t){return ir.apply(this,arguments)}function ir(){return ir=(0,f.default)(a.default.mark((function e(t,r){var n,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i1&&void 0!==o[1])||o[1],n=K&&r,!n){e.next=8;break}return e.next=5,this.setupLocalRequest(t);case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=this.setupRequest(t);case 9:return t=e.t0,e.abrupt("return",Promise.resolve().then((function(){return n?i.requestLocal(t):Ue.wrappedRequest(t,i.adapter.request)})));case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"requestLocal",value:function(e){var t=this;return new Promise((function(r,n){t.adapter.request(Object.assign(e,{complete:function(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){var t=e.data&&e.data.code||"SYS_ERR",i=e.data&&e.data.message||"request:fail";return n(new Oe({code:t,message:i}))}r({success:!0,result:e.data})}}))}))}},{key:"setupRequest",value:function(e){var t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};r["x-serverless-sign"]=Ue.sign(t,this.config.clientSecret);var n=Ne();r["x-client-info"]=encodeURIComponent(JSON.stringify(n));var i=Le(),o=i.token;return r["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"setupLocalRequest",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n,i,o,s,c,u,l,f;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=Ne(),n=Le(),i=n.token,o=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:r,token:i}),s=this.__dev__&&this.__dev__.debugInfo||{},c=s.address,u=s.servePort,e.next=9,nr(c,u);case 9:return l=e.sent,f=l.address,e.abrupt("return",{url:"http://".concat(f,":").concat(u,"/").concat(or[t.method]),method:"POST",data:o,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))});case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}},{key:"getUploadFileOptions",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}},{key:"reportUploadFile",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}},{key:"uploadFile",value:function(e){var t,r=this,n=e.filePath,i=e.cloudPath,o=e.fileType,a=void 0===o?"image":o,s=e.onUploadProgress;if(!i)throw new Oe({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getUploadFileOptions({cloudPath:i}).then((function(e){var i=e.result,o=i.url,c=i.formData,u=i.name;return t=e.result.fileUrl,new Promise((function(e,t){var i=r.adapter.uploadFile({url:o,formData:c,name:u,filePath:n,fileType:a,success:function(r){r&&r.statusCode<400?e(r):t(new Oe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){t(new Oe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&i&&"function"==typeof i.onProgressUpdate&&i.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((function(){return r.reportUploadFile({cloudPath:i})})).then((function(e){return new Promise((function(r,i){e.success?r({success:!0,filePath:n,fileID:t}):i(new Oe({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,r={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(r).then((function(e){if(e.success)return e.result;throw new Oe({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,r=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new Oe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:r})};return this.request(n).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new Oe({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),e}(),sr={init:function(e){var t=new ar(e),r={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return r},t.customAuth=t.auth,t}},cr=C((function(e,t){e.exports=E.enc.Hex}));function ur(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function lr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.data,n=t.functionName,i=t.method,o=t.headers,a=t.signHeaderKeys,s=void 0===a?[]:a,u=t.config,l=String(Date.now()),f=ur(),d=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":l,"x-from-function-name":n,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":f,"x-alipay-callid":f,"x-trace-id":f}),p=["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),h=e.split("?")||[],g=(0,c.default)(h,2),v=g[0],y=void 0===v?"":v,m=g[1],x=void 0===m?"":m,b=function(e){var t=e.signedHeaders.join(";"),r=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),n=Ve(e.body).toString(cr),i="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(r,"\n").concat(t,"\n").concat(n,"\n"),o=Ve(i).toString(cr),a="HMAC-SHA256\n".concat(e.timestamp,"\n").concat(o,"\n"),s=Ke(a,e.secretKey).toString(cr);return"HMAC-SHA256 Credential=".concat(e.secretId,", SignedHeaders=").concat(t,", Signature=").concat(s)}({path:y,query:x,method:i,headers:d,timestamp:l,body:JSON.stringify(r),secretId:u.accessKey,secretKey:u.secretKey,signedHeaders:p.sort()});return{url:"".concat(u.endpoint).concat(e),headers:Object.assign({},d,{Authorization:b})}}function fr(e){var t=e.url,r=e.data,n=e.method,i=void 0===n?"POST":n,o=e.headers,a=void 0===o?{}:o,s=e.timeout;return new Promise((function(e,n){Me.request({url:t,method:i,data:"object"==(0,u.default)(r)?JSON.stringify(r):r,header:a,dataType:"json",timeout:s,complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=a["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var i=t.data||{},o=i.message,s=i.errMsg,c=i.trace_id;return n(new Oe({code:"SYS_ERR",message:o||s||"request:fail",requestId:c||r}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:r})}})}))}function dr(e,t){var r=e.path,n=e.data,i=e.method,o=void 0===i?"GET":i,a=lr(r,{functionName:"",data:n,method:o,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":String(Date.now()+6e4)},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=a.url,c=a.headers;return fr({url:s,data:n,method:o,headers:c}).then((function(e){var t=e.data||{};if(!t.success)throw new Oe({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new Oe({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function pr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),r=t.indexOf("/");if(r<=0)throw new Oe({code:"INVALID_PARAM",message:"fileID不合法"});var n=t.substring(0,r),i=t.substring(r+1);return n!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function hr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var gr=function(){function e(t){(0,y.default)(this,e),this.config=t}return(0,m.default)(e,[{key:"signedURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="/ws/function/".concat(e),n=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),i=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:ur(),timestamp:""+Date.now()}),o=[r,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return i[e]?"".concat(e,"=").concat(i[e]):null})).filter(Boolean).join("&"),"host:".concat(n)].join("\n"),a=["HMAC-SHA256",Ve(o).toString(cr)].join("\n"),s=Ke(a,this.config.secretKey).toString(cr),c=Object.keys(i).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(i[e]))})).join("&");return"".concat(this.config.wsEndpoint).concat(r,"?").concat(c,"&signature=").concat(s)}}]),e}(),vr=function(){function e(t){(0,y.default)(this,e),this.config=t}return(0,m.default)(e,[{key:"signedURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="/ws/sse/function/".concat(e),n=this.config.endpoint.replace(/^http(s)?:\/\//,""),i=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:ur(),timestamp:""+Date.now()}),o=["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return i[e]?"".concat(e,"=").concat(i[e]):null})).filter(Boolean).join("&"),a=[r.replace("/ws",""),o,"host:".concat(n)].join("\n"),s=["HMAC-SHA256",Ve(a).toString(cr)].join("\n"),c=Ke(s,this.config.secretKey).toString(cr),u=Object.keys(i).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(i[e]))})).join("&");return"".concat(this.config.endpoint).concat(r,"?").concat(u,"&signature=").concat(c)}}]),e}(),yr=function(){function e(t){if((0,y.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn"),wsEndpoint:t.wsEndpoint||"wss://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")}),this._websocket=new gr(this.config),this._sse=new vr(this.config)}return(0,m.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var r=e.name,n=e.data,i=e.async,o=void 0!==i&&i,a=e.timeout,s="POST",c={"x-to-function-name":r};o&&(c["x-function-invoke-type"]="async");var u=lr("/functions/invokeFunction",{functionName:r,data:n,method:s,headers:c,signHeaderKeys:["x-to-function-name"],config:t}),l=u.url,f=u.headers;return fr({url:l,data:n,method:s,headers:f,timeout:a}).then((function(e){var t=0;if(o){var r=e.data||{};t="200"===r.errCode?0:r.errCode,e.data=r.data||{},e.errMsg=r.errMsg}if(0!==t)throw new Oe({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((function(e){throw new Oe({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,r=e.filePath,n=e.fileType,i=e.formData,o=e.onUploadProgress;return new Promise((function(e,a){var s=Me.uploadFile({url:t,filePath:r,fileType:n,formData:i,name:"file",success:function(t){t&&t.statusCode<400?e(t):a(new Oe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){a(new Oe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n,i,o,s,c,u,l,f,d,p;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.filePath,n=t.cloudPath,i=void 0===n?"":n,o=t.fileType,s=void 0===o?"image":o,c=t.onUploadProgress,"string"===U(i)){e.next=3;break}throw new Oe({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){e.next=5;break}throw new Oe({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new Oe({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,dr({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return u=e.sent,l=u.file_id,f=u.upload_url,d=u.form_data,p=d&&d.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:f,filePath:r,fileType:s,formData:p,onUploadProgress:c}).then((function(){return{fileID:l}})));case 15:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getTempFileURL",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileList,e.abrupt("return",new Promise((function(e,t){(!r||r.length<0)&&e({code:"INVALID_PARAM",message:"fileList不能为空数组"}),r.length>50&&e({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});var i,o=[],a=b(r);try{for(a.s();!(i=a.n()).done;){var s=i.value,c=void 0;"string"!==U(s)&&e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{c=pr.call(n,s)}catch(e){console.warn(e.errCode,e.errMsg),c=s}o.push({file_id:c,expire:600})}}catch(u){a.e(u)}finally{a.f()}dr({path:"/?download_url",data:{file_list:o},method:"POST"},n.config).then((function(t){var r=t.file_list,i=void 0===r?[]:r;e({fileList:i.map((function(e){return{fileID:hr.call(n,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"connectWebSocket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.name,n=t.query,e.abrupt("return",Me.connectSocket({url:this._websocket.signedURL(r,n),complete:function(){}}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"requestSSE",value:function(e){var t=e.name,r=e.data;return Me.request({method:"POST",url:this._sse.signedURL(t),data:r,header:{"content-type":"application/json"},dataType:"json"})}}]),e}(),mr={init:function(e){e.provider="alipay";var t=new yr(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function xr(e){var t,r=e.data;t=Ne();var n=JSON.parse(JSON.stringify(r||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){var i=Le(),o=i.token;o&&(n.uniIdToken=o)}return n}var br={enable:!1,interval:0,space:{}},wr=null,Ar=0,_r=!1;function Sr(){return Array.isArray(ee)&&ee.length?ee[0]:{}}function kr(e){return"".concat(e,"_").concat(Sr().spaceId||"default")}function Pr(){if(wr)return wr;try{var e=Me.getStorageSync(kr("UNICLOUD_FAILOVER_CONFIG"));if($(e))return wr=e,e}catch(e){}return null}function Tr(e){Ar=e;try{Me.setStorageSync(kr("UNICLOUD_FAILOVER_LAST_REQUEST"),e)}catch(e){}}function Cr(e){if(null===e||e<0)return!1;if(0===e)return!0;var t=function(){if(Ar)return Ar;try{var t=Me.getStorageSync(kr("UNICLOUD_FAILOVER_LAST_REQUEST"));if(t&&"number"==typeof t)return Ar=t,t}catch(e){}return 0}();return!t||Date.now()-t>=e}function Or(){return Er.apply(this,arguments)}function Er(){return Er=(0,f.default)(a.default.mark((function e(){var t,r,n,i,o,s,c,u,l,f,d,p,h,g;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=Sr(),r=t.failoverEndpoint,r){e.next=3;break}return e.abrupt("return",null);case 3:if(!_r){e.next=5;break}return e.abrupt("return",Pr());case 5:return _r=!0,e.prev=6,n="".concat(r,"/.unicloud/failover-cfg.json"),e.next=10,Me.request({url:n,method:"GET",dataType:"json",timeout:5e3});case 10:if(i=e.sent,Tr(Date.now()),200===i.statusCode&&$(i.data)){e.next=13;break}return e.abrupt("return",null);case 13:return o=S(S({},br),i.data),s=o.enable,c=void 0!==s&&s,u=o.interval,l=void 0===u?0:u,f=o.space,d=void 0===f?{}:f,p=Pr(),h=p&&p.enable,g=function(e,t){return e?e.enable!==t.enable||(e.interval!==t.interval||(!(!t._lastModifiedAt||e._lastModifiedAt===t._lastModifiedAt)||JSON.stringify(e.space)!==JSON.stringify(t.space))):t.enable}(p,o),e.abrupt("return",(function(e){try{wr=e,e&&e.enable?Me.setStorageSync(kr("UNICLOUD_FAILOVER_CONFIG"),e):(Me.removeStorageSync(kr("UNICLOUD_FAILOVER_CONFIG")),Me.removeStorageSync(kr("UNICLOUD_FAILOVER_LAST_REQUEST")))}catch(e){}}({enable:c,interval:l,space:d,_lastModifiedAt:i.data._lastModifiedAt||Date.now()}),g&&Se(ye,{isEnabled:c,hasStatusChanged:h!==c,failoverSpace:d}),o));case 17:return e.prev=17,e.t0=e["catch"](6),e.abrupt("return",Pr());case 20:return e.prev=20,_r=!1,e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[6,17,20,23]])}))),Er.apply(this,arguments)}function Ir(){return Mr.apply(this,arguments)}function Mr(){return Mr=(0,f.default)(a.default.mark((function e(){var t,r,n,i,o,s,c,u,l,f=this,d=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{},e.next=3,this.__dev__.initLocalNetwork();case 3:return r=this.__dev__,n=r.localAddress,i=r.localPort,o=Sr(),s={aliyun:"aliyun",tencent:"tcb",alipay:"alipay",dcloud:"dcloud"}[o.provider],c=o.spaceId,u="http://".concat(n,":").concat(i,"/system/check-function"),l="http://".concat(n,":").concat(i,"/cloudfunctions/").concat(t.name),e.abrupt("return",new Promise((function(e,r){Me.request({method:"POST",url:u,data:{name:t.name,platform:X,provider:s,spaceId:c},timeout:3e3,success:function(t){e(t)},fail:function(){e({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,r=t||{},n=r.code,i=r.message;return{code:0===n?0:n||"SYS_ERR",message:i||"SYS_ERR"}})).then((function(e){var r=e.code,n=e.message;if(0!==r){switch(r){case"MODULE_ENCRYPTED":console.error("此云函数(".concat(t.name,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":console.error("此云函数(".concat(t.name,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":console.error(n||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":console.error(n||"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下");break;case"SWITCH_TO_CLOUD":break;default:var i="检测本地调试服务出现错误:".concat(n,",请检查网络环境或重启客户端再试");throw console.error(i),new Error(i)}return f._callCloudFunction(t)}return new Promise((function(e,r){var n=xr.call(f,{data:t.data});Me.request({method:"POST",url:l,data:{provider:s,platform:X,param:n},timeout:t.timeout,success:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.statusCode,i=t.data;return!n||n>=400?r(new Oe({code:i.code||"SYS_ERR",message:i.message||"request:fail"})):e({result:i})},fail:function(e){r(new Oe({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))})));case 5:case"end":return e.stop()}}),e,this)}))),Mr.apply(this,arguments)}var Lr=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],jr=/[\\^$.*+?()[\]{}|]/g,Dr=RegExp(jr.source);function Br(e,t,r){return e.replace(new RegExp((n=t)&&Dr.test(n)?n.replace(jr,"\\$&"):n,"g"),r);var n}var Fr="none",Nr="request",Rr="response",Ur="both",$r={code:2e4,message:"System error"},zr={code:20101,message:"Invalid client"},qr={code:20102,message:"Get encrypt key failed"},Hr={10001:"Secure network is not supported on current playground or unimpsdk",10003:"Config missing in current app. If the problem pesist, please contact DCloud.",10009:"Encrypt payload failed",10010:"Decrypt response failed"};function Wr(e){var t=e||{},r=t.errSubject,n=t.subject,i=t.errCode,o=t.errMsg,a=t.code,s=t.message,c=t.cause;return new Oe({subject:r||n||"uni-secure-network",code:i||a||$r.code,message:o||s,cause:c})}var Qr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.secretType,n=t.uniCloudIns;(0,y.default)(this,e),this.clientType="",this.secretType=r||Fr,this.uniCloudIns=n;var i,o=this.uniCloudIns.config,a=o.provider,s=o.spaceId;this.provider=a,this.spaceId=s,this.scopedGlobalCache=(i=this.uniCloudIns,ie("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",i.config.spaceId)))}return(0,m.default)(e,[{key:"getSystemInfo",value:function(){return this._systemInfo||(this._systemInfo=De()),this._systemInfo}},{key:"appId",get:function(){return this.getSystemInfo().appId}},{key:"deviceId",get:function(){return this.getSystemInfo().deviceId}},{key:"encryptData",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.secretType===Fr?t:this.platformEncryptData(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"decryptResult",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.secretType!==Fr){e.next=2;break}return e.abrupt("return",t);case 2:return r=t||{},n=r.errCode,r.errMsg,i=r.content,e.abrupt("return",n||!i?t:this.secretType===Nr?i:this.platformDecryptResult(t));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"wrapVerifyClientCallFunction",value:function(e){var t=this;return(0,f.default)(a.default.mark((function r(){var n,i,o,s,c,u=arguments;return a.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=u.length>0&&void 0!==u[0]?u[0]:{},i=n.name,o=n.data,s=void 0===o?{}:o,r.next=3,t.prepare();case 3:return r.next=5,t.platformGetSignOption();case 5:return(s=JSON.parse(JSON.stringify(s)))._uniCloudOptions=r.sent,r.next=8,e({name:i,data:s});case 8:if(c=r.sent,r.t0=t.isClientKeyNotFound(c),!r.t0){r.next=19;break}return r.next=13,t.prepare({forceUpdate:!0});case 13:return r.next=15,t.platformGetSignOption();case 15:return s._uniCloudOptions=r.sent,r.next=18,e({name:i,data:s});case 18:c=r.sent;case 19:return r.abrupt("return",c);case 20:case"end":return r.stop()}}),r)})))}},{key:"wrapEncryptDataCallFunction",value:function(e){var t=this;return(0,f.default)(a.default.mark((function r(){var n,i,o,s,c,u,l,f=arguments;return a.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=f.length>0&&void 0!==f[0]?f[0]:{},i=n.name,o=n.data,s=void 0===o?{}:o,r.next=3,t.prepare();case 3:return r.next=5,t.encryptData(s);case 5:return c=r.sent,r.next=8,e({name:i,data:c});case 8:if(u=r.sent,!t.isClientKeyNotFound(u)){r.next=18;break}return r.next=12,t.prepare({forceUpdate:!0});case 12:return r.next=14,t.encryptData(s);case 14:return l=r.sent,r.next=17,e({name:i,data:l});case 17:u=r.sent;case 18:return r.next=20,t.decryptResult(u.result);case 20:return u.result=r.sent,r.abrupt("return",u);case 22:case"end":return r.stop()}}),r)})))}}]),e}(); /*! MIT License. Copyright 2015-2018 Richard Moore . See LICENSE.txt. */function Vr(e){return parseInt(e)===e}function Kr(e){if(!Vr(e.length))return!1;for(var t=0;t255)return!1;return!0}function Gr(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!Kr(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(Vr(e.length)&&Kr(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function Yr(e){return new Uint8Array(e)}function Jr(e,t,r,n,i){null==n&&null==i||(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var Xr,Zr={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},en=(Xr="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+Xr[15&n])}return t.join("")}}),tn={16:10,24:12,32:14},rn=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],nn=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],on=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],an=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],sn=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],cn=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],un=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],ln=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],fn=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],dn=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],pn=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],hn=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],gn=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],vn=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],yn=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function mn(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t];for(var a,s=0,c=i;c>16&255]<<24^nn[a>>8&255]<<16^nn[255&a]<<8^nn[a>>24&255]^rn[s]<<24,s+=1,8!=i)for(t=1;t>8&255]<<8^nn[a>>16&255]<<16^nn[a>>24&255]<<24,t=i/2+1;t>2,l=c%4,this._Ke[u][l]=o[t],this._Kd[e-u][l]=o[t++],c++}for(var u=1;u>24&255]^gn[a>>16&255]^vn[a>>8&255]^yn[255&a]}},{key:"encrypt",value:function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=mn(e),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var o=1;o>24&255]^sn[n[(i+1)%4]>>16&255]^cn[n[(i+2)%4]>>8&255]^un[255&n[(i+3)%4]]^this._Ke[o][i];n=r.slice()}var a,s=Yr(16);for(i=0;i<4;i++)a=this._Ke[t][i],s[4*i]=255&(nn[n[i]>>24&255]^a>>24),s[4*i+1]=255&(nn[n[(i+1)%4]>>16&255]^a>>16),s[4*i+2]=255&(nn[n[(i+2)%4]>>8&255]^a>>8),s[4*i+3]=255&(nn[255&n[(i+3)%4]]^a);return s}},{key:"decrypt",value:function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=mn(e),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var o=1;o>24&255]^fn[n[(i+3)%4]>>16&255]^dn[n[(i+2)%4]>>8&255]^pn[255&n[(i+1)%4]]^this._Kd[o][i];n=r.slice()}var a,s=Yr(16);for(i=0;i<4;i++)a=this._Kd[t][i],s[4*i]=255&(on[n[i]>>24&255]^a>>24),s[4*i+1]=255&(on[n[(i+3)%4]>>16&255]^a>>16),s[4*i+2]=255&(on[n[(i+2)%4]>>8&255]^a>>8),s[4*i+3]=255&(on[255&n[(i+1)%4]]^a);return s}}]),e}(),bn=function(){function e(t){if((0,y.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new xn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){if((e=Gr(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=Yr(e.length),r=Yr(16),n=0;nNumber.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)}},{key:"setBytes",value:function(e){if(16!=(e=Gr(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e}},{key:"increment",value:function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}}}]),e}(),kn=function(){function e(t,r){if((0,y.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",r instanceof Sn||(r=new Sn(r)),this._counter=r,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new xn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){for(var t=Gr(e,!0),r=0;r16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n0)){e.next=6;break}return e.abrupt("return",(this.userEncryptKey=En,this.userEncryptKey));case 6:return e.abrupt("return",new Promise((function(e,t){n.getUserCryptoManager().getLatestUserKey({success:function(t){En=t,r.userEncryptKey=t,e(r.userEncryptKey)},fail:function(e){t(Wr(S(S({},qr),{},{cause:e})))}})})));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getWxAppId",value:function(){return i.getAccountInfoSync().miniProgram.appId}},{key:"platformGetSignOption",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,r,n,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getUserEncryptKey();case 2:return t=e.sent,r=t.encryptKey,n=t.iv,i=t.version,e.abrupt("return",{verifyClientSign:Tn(JSON.stringify({data:JSON.stringify({}),appId:this.appId,deviceId:this.deviceId,wxAppId:this.getWxAppId(),simulator:"devtools"===De().platform,timestamp:Date.now()}),r,n),encryptKeyId:i,mpWeixinCode:this.scopedGlobalCache.mpWeixinCode,mpWeixinOpenid:this.scopedGlobalCache.mpWeixinOpenid});case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformEncryptData",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getUserEncryptKey();case 2:return r=e.sent,n=r.encryptKey,i=r.iv,o=r.version,s={secretType:this.secretType,encryptKeyId:o,mpWeixinCode:this.scopedGlobalCache.mpWeixinCode,mpWeixinOpenid:this.scopedGlobalCache.mpWeixinOpenid},e.abrupt("return",this.secretType===Rr?{content:t,_uniCloudOptions:s}:{content:Tn(JSON.stringify({data:JSON.stringify(t),appId:this.appId,deviceId:this.deviceId,wxAppId:this.getWxAppId(),simulator:"devtools"===De().platform,timestamp:Date.now()}),n,i),_uniCloudOptions:s});case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"platformDecryptResult",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.content,e.next=3,this.getUserEncryptKey();case 3:return i=e.sent,o=i.encryptKey,s=i.iv,e.abrupt("return",JSON.parse(function(e,t,r){var i=new Uint8Array(n.base64ToArrayBuffer(e)),o=new Uint8Array(n.base64ToArrayBuffer(t)),a=Pn.utils.utf8.toBytes(r),s=new Pn.ModeOfOperation.cbc(o,a),c=Pn.padding.pkcs7.strip(s.decrypt(i));return Pn.utils.utf8.fromBytes(c)}(r,o,s)));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"isClientKeyNotFound",value:function(){return!1}}]),r}(Qr);function Mn(e){for(var t=["hasClientKey","encryptGetClientKeyPayload","setClientKey","encrypt","decrypt"],r={},n=function(n){var i=t[n];r[i]=function(){for(var t=arguments.length,r=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},r=e.type,i=e.data,o=e.errCode,a=e.errMsg,s=e.errSubject,c=e.message;"success"===r?t(i):n(Wr({errCode:o,errMsg:Hr[o]||a||c,errSubject:s}))}])):n(Wr({message:"请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"}))}))}},i=0;i0&&void 0!==o[0]?o[0]:{},r=t.forceUpdate,n=void 0!==r&&r,e.t1=!0,e.next=4,this.hasClientKey();case 4:if(e.t2=e.sent,e.t0=e.t1!==e.t2,e.t0){e.next=8;break}e.t0=n;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return",(n&&this.scopedGlobalCache.initPromise&&this.scopedGlobalCache.initStatus===F||!n&&this.scopedGlobalCache.initPromise&&this.scopedGlobalCache.initStatus!==R||(this.scopedGlobalCache.initPromise=this.getAppClientKey(),this.scopedGlobalCache.initPromise.then((function(e){i.scopedGlobalCache.initStatus=N})).catch((function(e){throw i.scopedGlobalCache.initStatus=R,e})),this.scopedGlobalCache.initStatus=F),this.scopedGlobalCache.initPromise));case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"prepare",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,r,n,i=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=t.forceUpdate,n=void 0!==r&&r,e.next=3,this.ensureClientKey({forceUpdate:n});case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformGetSignOption",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,r,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encrypt({provider:this.provider,spaceId:this.spaceId,data:JSON.stringify({})});case 2:return t=e.sent,r=t.data,n=t.key,e.abrupt("return",{verifyClientSign:r,encryptKeyId:n});case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformEncryptData",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encrypt({provider:this.provider,spaceId:this.spaceId,data:JSON.stringify(t)});case 2:return r=e.sent,n=r.data,i=r.key,o={secretType:this.secretType,encryptKeyId:i},e.abrupt("return",this.secretType===Rr?{content:t,_uniCloudOptions:o}:{content:n,_uniCloudOptions:o});case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"platformDecryptResult",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var r,n,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.content,n=t._uniCloudOptions,i=void 0===n?{}:n,o=i.encryptKeyId,e.next=6,this.appUtils.decrypt({provider:this.provider,spaceId:this.spaceId,data:r,key:o});case 6:return s=e.sent,e.abrupt("return",JSON.parse(s.data));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"isClientKeyNotFound",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.result||{};return 70009===t.errCode&&"uni-secure-network"===t.errSubject}}]),r}(Qr);function jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===Nr||t===Rr||t===Ur}function Dn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.data,n=void 0===r?{}:r;return"app"===X&&"DCloud-clientDB"===t&&"encryption"===n.redirectTo&&"getAppClientKey"===n.action}function Bn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,r=e.spaceId,n=e.functionName,i=De(),o=i.appId,a=i.uniPlatform,s=i.osName,c=a;"app"===a&&(c=s);var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,r=e.spaceId,n=J;if(!n)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=n.find((function(e){return e.provider===t&&e.spaceId===r}));return i&&i.config}({provider:t,spaceId:r});if(!u||!u.accessControl||!u.accessControl.enable)return!1;var l=u.accessControl.function||{},f=Object.keys(l);if(0===f.length)return!0;var d=function(e,t){for(var r,n,i,o=0;o-1&&(n=a):i=a:r=a}return r||n||i}(f,n);if(!d)return!1;if((l[d]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===o&&(e.platform||"").toLowerCase()===c.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(o,", platform: ").concat(c,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),Wr(zr)}function Fn(e){var t=e.functionName,r=e.result,n=e.logPvd;if(K&&this.__dev__.debugLog&&r&&r.requestId){var i=JSON.stringify({spaceId:this.config.spaceId,functionName:t,requestId:r.requestId});console.log("[".concat(n,"-request]").concat(i,"[/").concat(n,"-request]"))}}function Nn(e){var t=e.callFunction,r=function(r){var n=this,i=r.name;r.data=xr.call(e,{data:r.data});var o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],a=jn(r),s=Dn(r),c=a||s;return t.call(this,r).then((function(e){return e.errCode=0,!c&&Fn.call(n,{functionName:i,result:e,logPvd:o}),Promise.resolve(e)}),(function(e){return!c&&Fn.call(n,{functionName:i,result:e,logPvd:o}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,r=void 0===t?"":t,n=e.extraInfo,i=void 0===n?{}:n,o=e.formatter,a=void 0===o?[]:o,s=0;s-1||e[t].push(r)},off:function(t,r){e[t]=e[t]||[];var n=e[t].indexOf(r);-1!==n&&e[t].splice(n,1)}}}var zn=["db.Geo","db.command","command.aggregate"];function qn(e,t){return zn.indexOf("".concat(e,".").concat(t))>-1}function Hn(e){switch(U(e)){case"array":return e.map((function(e){return Hn(e)}));case"object":return e._internalType===Rn||Object.keys(e).forEach((function(t){e[t]=Hn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Wn(e){return e&&e.content&&e.content.$method}var Qn=function(){function e(t,r,n){(0,y.default)(this,e),this.content=t,this.prevStage=r||null,this.udb=null,this._database=n}return(0,m.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:Hn(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=Wn(e),r=Wn(e.prevStage);if("aggregate"===t&&"collection"===r||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===Wn(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=Wn(e),r=Wn(e.prevStage);if("aggregate"===t&&"command"===r)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return Vn({$method:e,$param:Hn(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var r=this.getAction(),n=this.getCommand();if(n.$db.push({$method:e,$param:Hn(t)}),K){var i=n.$db.find((function(e){return"collection"===e.$method})),o=i&&i.$param;o&&1===o.length&&"string"==typeof i.$param[0]&&i.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:r,command:n})}}]),e}();function Vn(e,t,r){return Un(new Qn(e,t,r),{get:function(e,t){var n="db";return e&&e.content&&(n=e.content.$method),qn(n,t)?Vn({$method:t},e,r):function(){return Vn({$method:t,$param:Hn(Array.from(arguments))},e,r)}}})}function Kn(e){var t=e.path,r=e.method;return function(){function e(){(0,y.default)(this,e),this.param=Array.from(arguments)}return(0,m.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,l.default)(t.map((function(e){return{$method:e}}))),[{$method:r,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function Gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Un(new e(t),{get:function(e,t){return qn("db",t)?Vn({$method:t},null,e):function(){return Vn({$method:t,$param:Hn(Array.from(arguments))},null,e)}}})}var Yn=function(e){(0,p.default)(r,e);var t=k(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,m.default)(r,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,r=e.action,n=e.command,i=e.multiCommand,o=e.queryList;function a(e,t){if(i&&o)for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=t.uniClient,n=void 0===r?{}:r,i=t.isJQL,o=void 0!==i&&i;(0,y.default)(this,e),this._uniClient=n,this._authCallBacks={},this._dbCallBacks={},n._isDefault&&(this._dbCallBacks=ie("_globalUniCloudDatabaseCallback")),o||(this.auth=$n(this._authCallBacks)),this._isJQL=o,Object.assign(this,$n(this._dbCallBacks)),this.env=Un({},{get:function(e,t){return{$env:t}}}),this.Geo=Un({},{get:function(e,t){return Kn({path:["Geo"],method:t})}}),this.serverDate=Kn({path:[],method:"serverDate"}),this.RegExp=Kn({path:[],method:"RegExp"})}return(0,m.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var r=this._dbCallBacks;r[e]&&r[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var r=this._authCallBacks;r[e]&&r[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),r=e.getCommand();if("getTemp"!==r.$db[r.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:r}}));return this._callCloudFunction({multiCommand:t,queryList:e})}},{key:"startTransaction",value:function(){throw new Error("JQL 事务仅支持在云端使用")}},{key:"commit",value:function(){throw new Error("JQL 事务仅支持在云端使用")}},{key:"rollback",value:function(){throw new Error("JQL 事务仅支持在云端使用")}}]),e}()),Jn="token无效,跳转登录页面",Xn="token过期,跳转登录页面",Zn={TOKEN_INVALID_TOKEN_EXPIRED:Xn,TOKEN_INVALID_INVALID_CLIENTID:Jn,TOKEN_INVALID:Jn,TOKEN_INVALID_WRONG_TOKEN:Jn,TOKEN_INVALID_ANONYMOUS_USER:Jn},ei={"uni-id-token-expired":Xn,"uni-id-check-token-failed":Jn,"uni-id-token-not-exist":Jn,"uni-id-check-device-feature-failed":Jn},ti=S(S(S({},Zn),ei),{},{default:"用户未登录或登录状态过期,自动跳转登录页面"});function ri(e,t){var r="";return r=e?"".concat(e,"/").concat(t):t,r.replace(/^\//,"")}function ni(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[],n=[];return e.forEach((function(e){!0===e.needLogin?r.push(ri(t,e.path)):!1===e.needLogin&&n.push(ri(t,e.path))})),{needLoginPage:r,notNeedLoginPage:n}}function ii(e){return e.split("?")[0].replace(/^\//,"")}function oi(){return function(e){var t=e&&e.$page&&e.$page.fullPath;return t?("/"!==t.charAt(0)&&(t="/"+t),t):""}(function(){var e=getCurrentPages();return e[e.length-1]}())}function ai(){return ii(oi())}function si(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var r=t.list,n=ii(e);return r.some((function(e){return e.pagePath===n}))}var ci=!!x.default.uniIdRouter,ui=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.default,t=e.pages,r=void 0===t?[]:t,n=e.subPackages,i=void 0===n?[]:n,o=e.uniIdRouter,a=void 0===o?{}:o,s=e.tabBar,c=void 0===s?{}:s,u=a.loginPage,f=a.needLogin,d=void 0===f?[]:f,p=a.resToLogin,h=void 0===p||p,g=ni(r),v=g.needLoginPage,y=g.notNeedLoginPage,m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],r=[];return e.forEach((function(e){var n=e.root,i=e.pages,o=void 0===i?[]:i,a=ni(o,n),s=a.needLoginPage,c=a.notNeedLoginPage;t.push.apply(t,(0,l.default)(s)),r.push.apply(r,(0,l.default)(c))})),{needLoginPage:t,notNeedLoginPage:r}}(i),b=m.needLoginPage,w=m.notNeedLoginPage;return{loginPage:u,routerNeedLogin:d,resToLogin:h,needLoginPage:[].concat((0,l.default)(v),(0,l.default)(b)),notNeedLoginPage:[].concat((0,l.default)(y),(0,l.default)(w)),loginPageInTabBar:si(u,c)}}(),li=ui.loginPage,fi=ui.routerNeedLogin,di=ui.resToLogin,pi=ui.needLoginPage,hi=ui.notNeedLoginPage,gi=ui.loginPageInTabBar;if(pi.indexOf(li)>-1)throw new Error("Login page [".concat(li,'] should not be "needLogin", please check your pages.json'));function vi(e){var t=ai();if("/"===e.charAt(0))return e;var r=e.split("?"),n=(0,c.default)(r,2),i=n[0],o=n[1],a=i.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,r=e.redirect;if(r&&mi({redirect:r})){var i=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(li,r);gi?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var o={navigateTo:n.navigateTo,redirectTo:n.redirectTo,switchTab:n.switchTab,reLaunch:n.reLaunch};setTimeout((function(){o[t]({url:i})}),0)}}function bi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,r={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){var e,t=Le(),r=t.token,n=t.tokenExpired;if(r){if(n-1)&&(pi.indexOf(t)>-1||fi.some((function(r){return yi(t,r)||yi(e,r)})))}(t)&&n){if(n.uniIdRedirectUrl=t,we(ge).length>0)return setTimeout((function(){Se(ge,n)}),0),r.abortLoginPageJump=!0,r;r.autoToLoginPage=!0}return r}function wi(){var e=oi(),t=bi({url:e}),r=t.abortLoginPageJump,n=t.autoToLoginPage;r||n&&xi({api:"redirectTo",redirect:e})}function Ai(){wi();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var r=e[t];n.addInterceptor(r,{invoke:function(e){var t=bi({url:e.url}),n=t.abortLoginPageJump,i=t.autoToLoginPage;return n?e:i?(xi({api:r,redirect:vi(e.url)}),!1):e}}),"web"===X&&window.addEventListener("popstate",(function(){(0===getCurrentPages().length?(Pe=!1,ke=null,Te()):Promise.resolve()).then((function(){wi()}))}))},r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=we(ge);Te().then((function(){var r=oi();if(r&&mi({redirect:r}))return t.length>0?Se(ge,Object.assign({uniIdRedirectUrl:r},e)):void(li&&xi({api:"navigateTo",redirect:r}))}))}(r)}))}function Si(e){e.onNeedLogin=function(e){Ae(ge,e)},e.offNeedLogin=function(e){_e(ge,e)},ci&&(ie("_globalUniCloudStatus").needLoginInit||(ie("_globalUniCloudStatus").needLoginInit=!0,Te().then((function(){Ai.call(e)})),di&&_i.call(e)))}function ki(e){e.onFailover=function(e){Ae(ye,e)},e.offFailover=function(e){_e(ye,e)},e.refreshFailoverConfig=function(){return e.config,Tr(0),Or()},e.clearFailoverConfig=function(){!function(){wr=null,Ar=0;try{Me.removeStorageSync(kr("UNICLOUD_FAILOVER_CONFIG")),Me.removeStorageSync(kr("UNICLOUD_FAILOVER_LAST_REQUEST"))}catch(e){}}()}}function Pi(e){!function(e){e.onResponse=function(e){Ae(he,e)},e.offResponse=function(e){_e(he,e)}}(e),Si(e),function(e){e.onRefreshToken=function(e){Ae(ve,e)},e.offRefreshToken=function(e){_e(ve,e)}}(e),ki(e)}var Ti="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ci=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Oi(e){return decodeURIComponent(function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ci.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var r,n,i="",o=0;o>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function Ei(){var e,t=Le().token||"",r=t.split(".");if(!t||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse(Oi(r[1]))}catch(t){throw new Error("获取当前用户信息出错,详细错误信息为:"+t.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}var Ii=C((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((function(e,r){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+r+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,n){var i=n.onChooseFile,o=n.onUploadProgress;return t.then((function(e){if(i){var t=i(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:r,tempFilePaths:[],tempFiles:[]}:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=r;var o=t.tempFiles,a=o.length,s=0;return new Promise((function(r){for(;s=a)!o.find((function(e){return!e.url&&!e.errMsg}))&&r(t);else{var u=o[n];e.uploadFile({provider:u.provider,filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,cloudPathAsRealPath:u.cloudPathAsRealPath,onUploadProgress:function(e){e.index=n,e.tempFile=u,e.tempFilePath=u.path,i&&i(e)}}).then((function(e){u.url=e.fileID,n0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?s(e,function(e){var t=e.count,r=e.sizeType,i=e.sourceType,s=void 0===i?["album","camera"]:i,c=e.extension;return new Promise((function(e,i){n.chooseImage({count:t,sizeType:r,sourceType:s,extension:c,success:function(t){e(a(t,"image"))},fail:function(e){i({errMsg:e.errMsg.replace("chooseImage:fail",o)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,r=e.compressed,i=e.maxDuration,s=e.sourceType,c=void 0===s?["album","camera"]:s,u=e.extension;return new Promise((function(e,s){n.chooseVideo({camera:t,compressed:r,maxDuration:i,sourceType:c,extension:u,success:function(t){var r=t.tempFilePath,n=t.duration,i=t.size,o=t.height,s=t.width;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[r],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:r,size:i,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",o)})}})}))}(t),t):s(e,function(e){var t=e.count,r=e.extension;return new Promise((function(e,s){var c=n.chooseFile;if("undefined"!=typeof i&&"function"==typeof i.chooseMessageFile&&(c=i.chooseMessageFile),"function"!=typeof c)return s({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});c({type:"all",count:t,extension:r,success:function(t){e(a(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",o)})}})}))}(t),t)}}})),Mi=T(Ii),Li="manual";function ji(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(r){t.push(e[r])})),t}),(function(t,r){if(e.loadtime!==Li){for(var n=!1,i=[],o=2;o0&&void 0!==arguments[0]?arguments[0]:{},r=t.getone,n=void 0!==r&&r,i=t.success,o=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var r=t.result,o=r.data,a=r.count;e.getcount&&(e.mixinDatacomPage.count=a),e.mixinDatacomHasMore=o.length0&&void 0!==arguments[0]?arguments[0]:{};n=n||{},r="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var i=n.action||this.action;i&&(r=r.action(i));var o=n.collection||this.collection;r=Array.isArray(o)?(t=r).collection.apply(t,(0,l.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 c=n.foreignKey||this.foreignKey;c&&(r=r.foreignKey(c));var u=n.groupby||this.groupby;u&&(r=r.groupBy(u));var f=n.groupField||this.groupField;f&&(r=r.groupField(f)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(r=r.distinct());var d=n.orderby||this.orderby;d&&(r=r.orderBy(d));var p=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,h=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,g=void 0!==n.getcount?n.getcount:this.getcount,v=void 0!==n.gettree?n.gettree:this.gettree,y=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,m={getCount:g},x={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return v&&(m.getTree=x),y&&(m.getTreePath=x),r=r.skip(h*(p-1)).limit(h).get(m),r}}}}function Di(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,u.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},r);var i=r,o=i.customUI,s=i.loadingOptions,c=i.errorOptions,l=i.parseSystemError,d=!o;return new Proxy({},{get:function(i,o){switch(o){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,r=e.interceptorName,n=e.getCallbackArgs;return(0,f.default)(a.default.mark((function e(){var i,o,s,c,u,l,f=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=f.length,o=new Array(i),s=0;s0&&void 0!==u[0]?u[0]:{},r=t.title,i=t.content,o=t.showCancel,s=t.cancelText,c=t.confirmText,e.abrupt("return",new Promise((function(e,t){n.showModal({title:r,content:i,showCancel:o,cancelText:s,confirmText:c,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:P,showCancel:c.retry,cancelText:"取消",confirmText:c.retry?"重试":"确定"});case 33:if(T=i.sent,C=T.confirm,!c.retry||!C){i.next=37;break}return i.abrupt("return",p.apply(void 0,v));case 37:throw O=new Oe({subject:w,code:A,message:_,requestId:h.requestId}),O.detail=h.result,Se(he,{type:be,content:O}),O;case 39:return i.abrupt("return",(Se(he,{type:be,content:h.result}),h.result));case 40:case"end":return i.stop()}}),i,null,[[5,11]])})));function p(){return i.apply(this,arguments)}return p}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.params;return{objectName:t,methodName:o,params:r}}})}})}}function Bi(e){return ie("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function Fi(){return Ni.apply(this,arguments)}function Ni(){return Ni=(0,f.default)(a.default.mark((function e(){var t,r,i,o,s,c,u,l=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},r=t.openid,i=t.callLoginByWeixin,o=void 0!==i&&i,s=Bi(this),"mp-weixin"===X){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(X,"`"));case 4:if(!r||!o){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!r){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=r,{}));case 8:return e.next=10,new Promise((function(e,t){n.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return c=e.sent,u=this.importObject("uni-id-co",{customUI:!0}),e.next=14,u.secureNetworkHandshakeByWeixin({code:c,callLoginByWeixin:o});case 14:return s.mpWeixinCode=c,e.abrupt("return",{code:c});case 16:case"end":return e.stop()}}),e,this)}))),Ni.apply(this,arguments)}function Ri(e){return Ui.apply(this,arguments)}function Ui(){return Ui=(0,f.default)(a.default.mark((function e(t){var r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=Bi(this),e.abrupt("return",(r.initPromise||(r.initPromise=Fi.call(this,t).then((function(e){return e})).catch((function(e){throw delete r.initPromise,e}))),r.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),Ui.apply(this,arguments)}function $i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.openid,n=t.callLoginByWeixin,i=void 0!==n&&n;return Ri.call(e,{openid:r,callLoginByWeixin:i})}}function zi(e){!function(e){Fe=e}(e)}function qi(e){var t="mp-weixin"===X&&i.canIUse("getAppBaseInfo"),r={getAppBaseInfo:t?n.getAppBaseInfo:n.getSystemInfo,getPushClientId:n.getPushClientId};return function(n){return new Promise((function(i,o){t&&"getAppBaseInfo"===e?i(r[e]()):r[e](S(S({},n),{},{success:function(e){i(e)},fail:function(e){o(e)}}))}))}}var Hi=function(e){(0,p.default)(r,e);var t=k(r);function r(){var e;return(0,y.default)(this,r),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,m.default)(r,[{key:"init",value:function(){var e=this;return Promise.all([qi("getAppBaseInfo")(),qi("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=(0,c.default)(t,2),n=r[0];n=void 0===n?{}:n;var i=n.appId,o=r[1];o=void 0===o?{}:o;var a=o.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!a)throw new Error("Invalid push client id");e._appId=i,e._pushClientId=a,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,r=t.action,n=t.messageId,i=t.message;this._payloadQueue.push({action:r,messageId:n,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,r=e.messageId,n=e.message;"end"===t?this._end({messageId:r,message:n}):"message"===t&&this._appendMessage({messageId:r,message:n})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){n.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){n.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")}}]),r}(function(){function e(){(0,y.default)(this,e),this._callback={}}return(0,m.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var r=this._callback[e];if(r){var n=function(e,t){for(var r=e.length-1;r>=0;r--)if(e[r]===t)return r;return-1}(r,t);r.splice(n,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],r=arguments.length,n=new Array(r>1?r-1:0),i=1;i=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发期间需要,发行后不需要)")),o=t.__dev__,o.debugInfo){e.next=6;break}return e.abrupt("return");case 6:return s=o.debugInfo,c=s.address,u=s.servePort,e.next=11,nr(c,u);case 11:if(l=e.sent,f=l.address,!f){e.next=15;break}return e.abrupt("return",(o.localAddress=f,void(o.localPort=u)));case 15:if(d=console["app"===X?"error":"warn"],p="","remote"===o.debugInfo.initialLaunchType?(o.debugInfo.forceRemote=!0,p="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。"):p="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。",p+="\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数","web"===X&&(p+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===X.indexOf("mp-")&&(p+="\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),o.debugInfo.forceRemote){e.next=19;break}throw new Error(p);case 19:d(p);case 20:case"end":return e.stop()}}),e)}))),Qi.apply(this,arguments)}function Vi(e){e._initPromiseHub||(e._initPromiseHub=new Q({createPromise:function(){var t,r=Promise.resolve();t=1,r=new Promise((function(e){setTimeout((function(){e()}),t)}));var n=e.auth();return r.then((function(){return n.getLoginState()})).then((function(e){return e?Promise.resolve():n.signInAnonymously()}))}}))}var Ki={tcb:er,tencent:er,aliyun:ze,private:sr,dcloud:sr,alipay:mr},Gi=new(function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"init",value:function(e){var t={},r=Ki[e.provider];if(!r)throw new Error("未提供正确的provider参数");return t=r.init(e),K&&function(e){if(K){var t={};e.__dev__=t,t.debugLog=K&&("web"===X&&navigator.userAgent.indexOf("HBuilderX")>0||"app"===X||"mp-harmony"===X);var r=Z;r&&!r.code&&(t.debugInfo=r);var n=new Q({createPromise:function(){return Wi(e)}});t.initLocalNetwork=function(){return n.exec()}}}(t),Vi(t),Nn(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),function(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var r=Gn(Yn,{uniClient:e});return this._database=r,r},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var r=Gn(Yn,{uniClient:e,isJQL:!0});return this._databaseForJQL=r,r}}(t),function(e){e.getCurrentUserInfo=Ei,e.chooseAndUploadFile=Mi.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return ji(e)}}),e.SSEChannel=Hi,e.initSecureNetworkByWeixin=$i(e),e.setCustomClientInfo=zi,e.importObject=Di(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var r=t[e];t[e]=function(){return r.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(r){var n=this,i=!1;if("callFunction"===t){var o=r&&r.type||j;i=o!==j}var a="callFunction"===t&&!i,s=this._initPromiseHub.exec();r=r||{};var c=Ce(r),u=c.success,l=c.fail,f=c.complete,d=s.then((function(){return i?Promise.resolve():le(fe(t,"invoke"),r)})).then((function(){return e.call(n,r)})).then((function(e){return i?Promise.resolve(e):le(fe(t,"success"),e).then((function(){return le(fe(t,"complete"),e)})).then((function(){return a&&Se(he,{type:xe,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):le(fe(t,"fail"),e).then((function(){return le(fe(t,"complete"),e)})).then((function(){return Se(he,{type:xe,content:e}),Promise.reject(e)}))}));if(!(u||l||f))return d;d.then((function(e){u&&u(e),f&&f(e),a&&Se(he,{type:xe,content:e})}),(function(e){l&&l(e),f&&f(e),a&&Se(he,{type:xe,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());t.uniCloud=Gi,function(){var e=Array.isArray(ee)?ee.length:0,r=function(){var e=Sr(),t=Pr();return t&&t.enable&&$(t.space)?t.space:e}();if(1===e)t.uniCloud=Gi=Gi.init(r),Gi._isDefault=!0;else{var i,o=["database","getCurrentUserInfo","importObject"];i=e>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":te?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"].concat(o).forEach((function(e){Gi[e]=function(){if(console.error(i),-1===o.indexOf(e))return Promise.reject(new Oe({code:"SYS_ERR",message:i}));console.error(i)}}))}if(Object.assign(Gi,{get mixinDatacom(){return ji(Gi)}}),Pi(Gi),Gi.addInterceptor=ce,Gi.removeInterceptor=ue,Gi.interceptObject=de,K&&"web"===X&&(window.uniCloud=Gi),"app"===X&&(n.__uniCloud=Gi),"app"===X||"web"===X){var a=oe();a.uniCloud=Gi,a.UniCloudError=Oe}!function(){var e=Sr(),t=e.failoverEndpoint;if(t){Or().catch((function(e){console.error("请求故障切换配置失败:",e)}));var r={fail:function(){var e=Pr();Cr(e&&e.interval||0)&&Or().catch((function(e){console.error("请求故障切换配置失败:",e)}))}};ce("callFunction",r),ce("database",r),ce("uploadFile",r)}}()}();var Yi=Gi;t.default=Yi}).call(this,r(3),r(2)["default"],r(1)["default"])},function(e,t){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){var n=r(16);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){var n=r(13)["default"],i=r(669);function o(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){var n=r(672),i=r(16),o=r(674),a=r(15);function s(t){var r="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t){function r(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={easycom:{"^u-(.*)":"uview-ui/components/u-$1/u-$1.vue"},pages:[{path:"pages/index/index",style:{navigationBarTitleText:"首页",navigationStyle:"custom"}},{path:"pages/mine/mine",style:{navigationBarTitleText:"我的",navigationStyle:"custom"}},{path:"pages/itinerary/itinerary",style:{navigationBarTitleText:"行程",navigationStyle:"custom"}},{path:"pages/message/message",style:{navigationBarTitleText:"消息",navigationStyle:"custom"}},{path:"pages/storage-point/storage-point",style:{navigationBarTitleText:"寄存点"}},{path:"pages/storage-point-detail/storage-point-detail",style:{navigationBarTitleText:"寄存点详情"}},{path:"pages/luggage-storage/luggage-storage",style:{navigationBarTitleText:"行李寄存",navigationStyle:"custom"}},{path:"pages/payment-success/payment-success",style:{navigationBarTitleText:"支付成功"}},{path:"pages/settings/settings",style:{navigationBarTitleText:"设置"}},{path:"pages/storage-order-detail/storage-order-detail",style:{navigationBarTitleText:"寄存订单详情",navigationStyle:"custom"}},{path:"pages/all-orders/all-orders",style:{navigationBarTitleText:"全部订单"}},{path:"pages/store-apply/store-apply",style:{navigationBarTitleText:"门店入驻"}},{path:"pages/delivery-order-detail/delivery-order-detail",style:{navigationBarTitleText:"寄送订单详情",navigationStyle:"custom"}},{path:"pages/orders/orders",style:{navigationBarTitleText:"全部订单"}},{path:"pages/address/address",style:{navigationBarTitleText:"地址"}},{path:"pages/new-address/new-address",style:{navigationBarTitleText:"新增地址"}},{path:"pages/rich-text/rich-text",style:{navigationBarTitleText:"协议"}},{path:"pages/details-entry/details-entry",style:{navigationBarTitleText:"门店入驻"}},{path:"pages/select-city/select-city",style:{navigationBarTitleText:"选择城市"}},{path:"pages/evaluate/evaluate",style:{navigationBarTitleText:"评价"}}],subPackages:[{root:"shop",pages:[{path:"pages/login/login",style:{navigationBarTitleText:"登录"}},{path:"pages/store-home/store-home",style:{navigationBarTitleText:"门店首页",navigationStyle:"custom"}},{path:"pages/mine/mine",style:{navigationBarTitleText:"我的",navigationStyle:"custom"}},{path:"pages/wallet/wallet",style:{navigationBarTitleText:"门店钱包",navigationStyle:"custom"}},{path:"pages/write-off/write-off",style:{navigationBarTitleText:"订单核验"}},{path:"pages/write-off-a/write-off-a",style:{navigationBarTitleText:"订单核验"}},{path:"pages/qualification/qualification",style:{navigationBarTitleText:"我的资质"}},{path:"pages/store-info/store-info",style:{navigationBarTitleText:"门店信息"}},{path:"pages/message/message",style:{navigationBarTitleText:"消息",navigationStyle:"custom"}},{path:"pages/orders/orders",style:{navigationBarTitleText:"门店订单"}},{path:"pages/order-details/order-details",style:{navigationBarTitleText:"门店订单详情",navigationStyle:"custom"}},{path:"pages/withdraw/withdraw",style:{navigationBarTitleText:"提现"}},{path:"pages/withdraw-success/withdraw-success",style:{navigationBarTitleText:"提现"}},{path:"pages/settings/settings",style:{navigationBarTitleText:"设置"}},{path:"pages/change-password/change-password",style:{navigationBarTitleText:"修改密码"}},{path:"pages/select/select",style:{navigationBarTitleText:"宁畅行"}},{path:"pages/webview/webview",style:{navigationBarTitleText:"轮播图详情"}},{path:"pages/article-details/article-details",style:{navigationBarTitleText:"轮播图详情"}},{path:"pages/change-binding/change-binding",style:{navigationBarTitleText:"更换绑定手机号"}},{path:"pages/coupon-center/coupon-center",style:{navigationBarTitleText:"领券中心"}},{path:"pages/Invoice-application/Invoice-application",style:{navigationBarTitleText:"开票申请"}},{path:"pages/Invoice-request/Invoice-request",style:{navigationBarTitleText:"申请开票"}},{path:"pages/confirm-invoice-issuance/confirm-invoice-issuance",style:{navigationBarTitleText:"确认开票"}},{path:"pages/Invoice-issued-successfully/Invoice-issued-successfully",style:{navigationBarTitleText:"开票成功"}},{path:"pages/revenue-analysis/revenue-analysis",style:{navigationBarTitleText:"营收分析"}},{path:"pages/storage-point/storage-point",style:{navigationBarTitleText:"寄存点查询"}}]}],preloadRule:{"pages/index/index":{network:"all",packages:["shop"]}},globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"",navigationBarBackgroundColor:"#fff",backgroundColor:"#F8F8F8"},tabBar:{color:"#999999",selectedColor:"#10B2FA",borderStyle:"black",backgroundColor:"#fff",custom:!0,list:[{pagePath:"pages/index/index",iconPath:"static/icon/nav_home@2x.png",selectedIconPath:"static/icon/nav_home_sel@2x.png",text:"首页"},{pagePath:"pages/itinerary/itinerary",iconPath:"static/icon/nav_xingcheng@2x.png",selectedIconPath:"static/icon/nav_xingcheng_sel@2x.png",text:"行程"},{pagePath:"pages/message/message",iconPath:"static/icon/nav_xiaoxi@2x.png",selectedIconPath:"static/icon/nav_xiaoxi_sel@2x.png",text:"消息"},{pagePath:"pages/mine/mine",iconPath:"static/icon/nav_wode@2x.png",selectedIconPath:"static/icon/nav_wode_sel@2x.png",text:"我的"}]}};t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={appid:"__UNI__7685D86"};t.default=n},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(5)),o=n(r(13)),a={version:"v2.5.0-20230101",yAxisWidth:15,xAxisHeight:22,padding:[10,10,10,10],rotate:!1,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,titleFontSize:20,subtitleFontSize:15,radarLabelTextMargin:13},s=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;ne.end.x||t.end.xe.start.y||t.start.y1&&(i.extra.mount.widthRatio>2&&(i.extra.mount.widthRatio=2),a+=(i.extra.mount.widthRatio-1)*r.eachSpacing);var s=t;return t>=0?(s=0,e.uevent.trigger("scrollLeft"),e.scrollOption.position="left",i.xAxis.scrollPosition="left"):Math.abs(t)>=a-o?(s=o-a,e.uevent.trigger("scrollRight"),e.scrollOption.position="right",i.xAxis.scrollPosition="right"):(e.scrollOption.position=t,i.xAxis.scrollPosition=t),s}function p(e,t,r){function n(e){while(e<0)e+=2*Math.PI;while(e>2*Math.PI)e-=2*Math.PI;return e}return e=n(e),t=n(t),r=n(r),t>r&&(r+=2*Math.PI,e=t&&e<=r}function h(e,t){function r(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].y>=Math.max(e[t-1].y,e[t+1].y)||e[t].y<=Math.min(e[t-1].y,e[t+1].y))}function n(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].x>=Math.max(e[t-1].x,e[t+1].x)||e[t].x<=Math.min(e[t-1].x,e[t+1].x))}var i=.2,o=.2,a=null,s=null,c=null,u=null;if(t<1?(a=e[0].x+(e[1].x-e[0].x)*i,s=e[0].y+(e[1].y-e[0].y)*i):(a=e[t].x+(e[t+1].x-e[t-1].x)*i,s=e[t].y+(e[t+1].y-e[t-1].y)*i),t>e.length-3){var l=e.length-1;c=e[l].x-(e[l].x-e[l-1].x)*o,u=e[l].y-(e[l].y-e[l-1].y)*o}else c=e[t+1].x-(e[t+2].x-e[t].x)*o,u=e[t+1].y-(e[t+2].y-e[t].y)*o;return r(e,t+1)&&(u=e[t+1].y),r(e,t)&&(s=e[t].y),n(e,t+1)&&(c=e[t+1].x),n(e,t)&&(a=e[t].x),(s>=Math.max(e[t].y,e[t+1].y)||s<=Math.min(e[t].y,e[t+1].y))&&(s=e[t].y),(u>=Math.max(e[t].y,e[t+1].y)||u<=Math.min(e[t].y,e[t+1].y))&&(u=e[t+1].y),(a>=Math.max(e[t].x,e[t+1].x)||a<=Math.min(e[t].x,e[t+1].x))&&(a=e[t].x),(c>=Math.max(e[t].x,e[t+1].x)||c<=Math.min(e[t].x,e[t+1].x))&&(c=e[t+1].x),{ctrA:{x:a,y:s},ctrB:{x:c,y:u}}}function g(e,t,r){return{x:r.x+e,y:r.y-t}}function v(e,t){if(t)while(c.isCollision(e,t))e.start.x>0?e.start.y--:e.start.x<0||e.start.y>0?e.start.y++:e.start.y--;return e}function y(e,t,r){var n=[];if(e.length>0&&e[0].data.constructor.toString().indexOf("Array")>-1){t._pieSeries_=e;for(var i=e[0].data,o=0;o=1e4?1e3:n>=1e3?100:n>=100?10:n>=10?5:n>=1?1:n>=.1?.1:n>=.01?.01:n>=.001?.001:n>=1e-4?1e-4:n>=1e-5?1e-5:1e-6,{minRange:l(e,"lower",r),maxRange:l(t,"upper",r)}}function w(e,t,r){var n=0;if(e=String(e),!1!==r&&void 0!==r&&r.setFontSize&&r.measureText)return r.setFontSize(t),r.measureText(e).width;e=e.split("");for(var i=0;i-1;if(o)for(var a=I(e),s=0;s5&&void 0!==arguments[5]?arguments[5]:{},a=t.chartData.calPoints?t.chartData.calPoints:[],s={};if(n.length>0){for(var c=[],u=0;u0&&(n=i[r]),{text:o.formatter?o.formatter(e,n,r,t):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}})),d={x:Math.round(s.x),y:Math.round(s.y)};return{textList:f,offset:d}}function O(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.chartData.xAxisPoints[r]+t.chartData.eachSpacing/2,a=e.map((function(e){return{text:i.formatter?i.formatter(e,n[r],r,t):e.name+": "+e.data,color:e.color,disableLegend:!!e.disableLegend,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}}));a=a.filter((function(e){if(!0!==e.disableLegend)return e}));var s={x:Math.round(o),y:0};return{textList:a,offset:s}}function E(e,t,r,n,i,o){var a=r.chartData.calPoints,s=o.color.upFill,c=o.color.downFill,u=[s,s,c,s],l=[];t.map((function(t){0==n?t.data[1]-t.data[0]<0?u[1]=c:u[1]=s:(t.data[0]e[n-1][1]&&(u[2]=s),t.data[3]4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},a=r.chartData.eachSpacing/2,s=[];if(t&&t.length>0){if(r.categories){for(var c=1;ct&&(o.index=r)}));else{for(var u=Array(t.length),l=0;l4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},a=r.chartData.eachSpacing/2,s=r.chartData.yAxisPoints;return t&&t.length>0&&B(e,r,n)&&s.forEach((function(t,r){e.y+i+a>t&&(o.index=r)})),o}function j(e,t,r){var n=-1,i=0;if(D(e,t.area)){for(var o=t.points,a=-1,s=0,c=o.length;sf[0]-i&&e.xf[1]-i&&e.yt.start.x&&e.xt.start.y&&e.y=t.area[3]-10&&e.y>=t.area[0]&&e.y<=t.height-t.area[2]}function F(e,t,r){var n=2*Math.PI/r,i=-1;if(q(e,t.center,t.radius)){var o=function(e){return e<0&&(e+=2*Math.PI),e>2*Math.PI&&(e-=2*Math.PI),e},a=Math.atan2(t.center.y-e.y,e.x-t.center.x);a*=-1,a<0&&(a+=2*Math.PI);var s=t.angleList.map((function(e){return e=o(-1*e),e}));s.forEach((function(e,t){var r=o(e-n/2),s=o(e+n/2);s=r&&a<=s||a+2*Math.PI>=r&&a+2*Math.PI<=s)&&(i=t)}))}return i}function N(e,t){for(var r=-1,n=0,i=t.series.length;no.funnelArea[0]&&e.xo.funnelArea[1]&&e.yo.area[0]&&e.xo.area[1]&&e.yt.width-t.area[1]-t.area[3]?(d.push(g),h.push(p-t.legend.itemGap*t.pix),p=x,g=[y]):(p+=x,g.push(y))}if(g.length){d.push(g),h.push(p-t.legend.itemGap*t.pix),o.widthArr=h;var b=Math.max.apply(null,h);switch(t.legend.float){case"left":o.area.start.x=t.area[3],o.area.end.x=t.area[3]+b+2*a;break;case"right":o.area.start.x=t.width-t.area[1]-b-2*a,o.area.end.x=t.width-t.area[1];break;default:o.area.start.x=(t.width-b)/2-a,o.area.end.x=(t.width+b)/2+a}o.area.width=b+2*a,o.area.wholeWidth=b+2*a,o.area.height=d.length*f+2*a,o.area.wholeHeight=d.length*f+2*a+2*s,o.points=d}}else{var A=e.length,_=t.height-t.area[0]-t.area[2]-2*s-2*a,S=Math.min(Math.floor(_/f),A);switch(o.area.height=S*f+2*a,o.area.wholeHeight=S*f+2*a,t.legend.float){case"top":o.area.start.y=t.area[0]+s,o.area.end.y=t.area[0]+s+o.area.height;break;case"bottom":o.area.start.y=t.height-t.area[2]-s-o.area.height,o.area.end.y=t.height-t.area[2]-s;break;default:o.area.start.y=(t.height-o.area.height)/2,o.area.end.y=(t.height+o.area.height)/2}for(var k=A%S===0?A/S:Math.floor(A/S+1),P=[],T=0;TI&&(I=L)}o.widthArr.push(I),o.heightArr.push(E.length*f+2*a)}for(var j=0,D=0;D4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==n?_(e,t.categories.length):A(e);var s=[];i=i.filter((function(e){return"object"===(0,o.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),i.map((function(e){"object"===(0,o.default)(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[0]):s.push(e.value):s.push(e)}));var c=0,u=0;if(s.length>0&&(c=Math.min.apply(this,s),u=Math.max.apply(this,s)),a>-1?("number"===typeof t.xAxis.data[a].min&&(c=Math.min(t.xAxis.data[a].min,c)),"number"===typeof t.xAxis.data[a].max&&(u=Math.max(t.xAxis.data[a].max,u))):("number"===typeof t.xAxis.min&&(c=Math.min(t.xAxis.min,c)),"number"===typeof t.xAxis.max&&(u=Math.max(t.xAxis.max,u))),c===u){var l=u||10;u+=l}for(var f=c,d=u,p=[],h=(d-f)/t.xAxis.splitNumber,g=0;g<=t.xAxis.splitNumber;g++)p.push(f+h*g);return p}function K(e,t,r,n){var i=s({},{type:""},t.extra.bar),o={angle:0,xAxisHeight:t.xAxis.lineHeight*t.pix+t.xAxis.marginTop*t.pix};o.ranges=V(e,t,r,i.type),o.rangesFormat=o.ranges.map((function(e){return e=c.toFixed(e,2),e}));var a=o.ranges.map((function(e){return e=c.toFixed(e,2),e}));o=Object.assign(o,ue(a,t,r));o.eachSpacing,a.map((function(e){return w(e,t.xAxis.fontSize*t.pix,n)}));return!0===t.xAxis.disabled&&(o.xAxisHeight=0),o}function G(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=i.extra.radar||{};a.max=a.max||0;for(var s=Math.max(a.max,Math.max.apply(null,A(n))),c=[],u=function(i){var a=n[i],u={};u.color=a.color,u.legendShape=a.legendShape,u.pointShape=a.pointShape,u.data=[],a.data.forEach((function(n,i){var a={};a.angle=e[i],a.proportion=n/s,a.value=n,a.position=g(r*a.proportion*o*Math.cos(a.angle),r*a.proportion*o*Math.sin(a.angle),t),u.data.push(a)})),c.push(u)},l=0;l2&&void 0!==arguments[2]?arguments[2]:1,n=0,i=0,o=0;o4&&void 0!==arguments[4]?arguments[4]:1,o=0;o4&&void 0!==arguments[4]?arguments[4]:1,o=0,a=0,s=[],c=0;c2&&void 0!==arguments[2]?arguments[2]:1;1==r&&(r=.999999);for(var n=0;n=2&&(i._proportion_=i._proportion_%2)}return e}function ee(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==r&&(r=.999999);for(var n=0;n=2&&(i._proportion_=i._proportion_%2)}return e}function te(e,t,r){var n;n=r=2&&(e[o]._endAngle_=e[o]._endAngle_%2),i=e[o]._endAngle_;return e}function re(e,t,r){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=0;i=r.oldData?o._proportion_=(o._endAngle_-o._oldAngle_)*n+r.oldAngle:o._proportion_=o._oldAngle_-(o._oldAngle_-o._endAngle_)*n,o._proportion_>=2&&(o._proportion_=o._proportion_%2)}return e}function ne(e,t,r,n){e=Y(e);for(var i=0,o=0;o0&&(e.width=Math.min(e.width,+o.extra.mix.column.width*o.pix)),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),e.width<=0&&(e.width=1),e.x+=(n+.5-r/2)*(e.width+i),e}))}function oe(e,t,r,n,i,o){return e.map((function(e){if(null===e)return null;var i=0,a=0;return i=o.extra.bar.seriesGap*o.pix||0,a=o.extra.bar.categoryGap*o.pix||0,i=Math.min(i,t/r),a=Math.min(a,t/r),e.width=Math.ceil((t-2*a-i*(r-1))/r),o.extra.bar&&o.extra.bar.width&&+o.extra.bar.width>0&&(e.width=Math.min(e.width,+o.extra.bar.width*o.pix)),e.width<=0&&(e.width=1),e.y+=(n+.5-r/2)*(e.width+i),e}))}function ae(e,t,r,n,i,o,a){var s=o.extra.column.categoryGap*o.pix||0;return e.map((function(e){return null===e?null:(e.width=t-2*s,o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),n>0&&(e.width-=a),e)}))}function se(e,t,r,n,i,o,a){var s=o.extra.column.categoryGap*o.pix||0;return e.map((function(e,r){return null===e?null:(e.width=Math.ceil(t-2*s),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),e.width<=0&&(e.width=1),e)}))}function ce(e,t,r,n,i,o,a){var s=o.extra.bar.categoryGap*o.pix||0;return e.map((function(e,r){return null===e?null:(e.width=Math.ceil(t-2*s),o.extra.bar&&o.extra.bar.width&&+o.extra.bar.width>0&&(e.width=Math.min(e.width,+o.extra.bar.width*o.pix)),e.width<=0&&(e.width=1),e)}))}function ue(e,t,r){var n=t.width-t.area[1]-t.area[3],i=t.enableScroll?Math.min(t.xAxis.itemCount,e.length):e.length;("line"==t.type||"area"==t.type||"scatter"==t.type||"bubble"==t.type||"bar"==t.type)&&i>1&&"justify"==t.xAxis.boundaryGap&&(i-=1);var o=0;"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),o=t.extra.mount.widthRatio-1,i+=o);var a=n/i,s=[],c=t.area[3],u=t.width-t.area[1];return e.forEach((function(e,t){s.push(c+o/2*a+t*a)})),"justify"!==t.xAxis.boundaryGap&&(!0===t.enableScroll?s.push(c+o*a+e.length*a):s.push(u)),{xAxisPoints:s,startX:c,endX:u,eachSpacing:a}}function le(e,t,r,n,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],u=o.height-o.area[0]-o.area[2];return e.forEach((function(e,a){if(null===e)c.push(null);else{var l=[];e.forEach((function(e,c){var f={};f.x=n[a]+Math.round(i/2);var d=e.value||e,p=u*(d-t)/(r-t);p*=s,f.y=o.height-Math.round(p)-o.area[2],l.push(f)})),c.push(l)}})),c}function fe(e,t,r,n,i,a,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,u="center";"line"!=a.type&&"area"!=a.type&&"scatter"!=a.type&&"bubble"!=a.type||(u=a.xAxis.boundaryGap);var l=[],f=a.height-a.area[0]-a.area[2],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)l.push(null);else{var p={};p.color=e.color,p.x=n[s];var h,g,v,y=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)h=[].concat(a.chartData.xAxisData.ranges),g=h.shift(),v=h.pop(),y=e[1],p.x=a.area[3]+d*(e[0]-g)/(v-g),"bubble"==a.type&&(p.r=e[2],p.t=e[3]);else y=e.value;"center"==u&&(p.x+=i/2);var m=f*(y-t)/(r-t);m*=c,p.y=a.height-m-a.area[2],l.push(p)}})),l}function de(e,t,r,n,i,a,s,c,u){u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var l=a.xAxis.boundaryGap,f=[],d=a.height-a.area[0]-a.area[2],p=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)f.push(null);else{var h={};if(h.color=e.color,"vertical"==c.animation){h.x=n[s];var g,v,y,m=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)g=[].concat(a.chartData.xAxisData.ranges),v=g.shift(),y=g.pop(),m=e[1],h.x=a.area[3]+p*(e[0]-v)/(y-v);else m=e.value;"center"==l&&(h.x+=i/2);var x=d*(m-t)/(r-t);x*=u,h.y=a.height-x-a.area[2],f.push(h)}else{h.x=n[0]+i*s*u;m=e;"center"==l&&(h.x+=i/2);x=d*(m-t)/(r-t);h.y=a.height-x-a.area[2],f.push(h)}}})),f}function pe(e,t,r,n,i,a,s,c,u){u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var l=[],f=a.height-a.area[0]-a.area[2],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)l.push(null);else{var c={};c.color=e.color,c.x=n[s];var p,h,g,v=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)p=[].concat(a.chartData.xAxisData.ranges),h=p.shift(),g=p.pop(),v=e[1],c.x=a.area[3]+d*(e[0]-h)/(g-h);else v=e.value;c.x+=i/2;var y=f*(v*u-t)/(r-t);c.y=a.height-y-a.area[2],l.push(c)}})),l}function he(e,t,r,n,i,o,a,s){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,u=[],l=o.height-o.area[0]-o.area[2],f=(o.width,o.area[1],o.area[3],i*a.widthRatio);return e.forEach((function(e,a){if(null===e)u.push(null);else{var s={};s.color=e.color,s.x=n[a],s.x+=i/2;var d=e.data,p=l*(d*c-t)/(r-t);s.y=o.height-p-o.area[2],s.value=d,s.width=f,u.push(s)}})),u}function ge(e,t,r,n,i,a,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,u=[],l=(a.height,a.area[0],a.area[2],a.width-a.area[1]-a.area[3]);return e.forEach((function(e,i){if(null===e)u.push(null);else{var s={};s.color=e.color,s.y=n[i];var f=e;"object"===(0,o.default)(e)&&null!==e&&(f=e.value);var d=l*(f-t)/(r-t);d*=c,s.height=d,s.value=f,s.x=d+a.area[3],u.push(s)}})),u}function ve(e,t,r,n,i,a,s,c,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],d=a.height-a.area[0]-a.area[2];return e.forEach((function(e,s){if(null===e)f.push(null);else{var p={};if(p.color=e.color,p.x=n[s]+Math.round(i/2),c>0){for(var h=0,g=0;g<=c;g++)h+=u[g].data[s];var v=h-e,y=d*(h-t)/(r-t),m=d*(v-t)/(r-t)}else{h=e;"object"===(0,o.default)(e)&&null!==e&&(h=e.value);y=d*(h-t)/(r-t),m=0}var x=m;y*=l,x*=l,p.y=a.height-Math.round(y)-a.area[2],p.y0=a.height-Math.round(x)-a.area[2],f.push(p)}})),f}function ye(e,t,r,n,i,a,s,c,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,i){if(null===e)f.push(null);else{var s={};if(s.color=e.color,s.y=n[i],c>0){for(var p=0,h=0;h<=c;h++)p+=u[h].data[i];var g=p-e,v=d*(p-t)/(r-t),y=d*(g-t)/(r-t)}else{p=e;"object"===(0,o.default)(e)&&null!==e&&(p=e.value);v=d*(p-t)/(r-t),y=0}var m=y;v*=l,m*=l,s.height=v-m,s.x=a.area[3]+v,s.x0=a.area[3]+m,f.push(s)}})),f}function me(e,t,r,n,i){var a;a="stack"==n?_(e,t.categories.length):A(e);var s=[];a=a.filter((function(e){return"object"===(0,o.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),a.map((function(e){"object"===(0,o.default)(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[1]):s.push(e.value):s.push(e)}));var c=i.min||0,u=i.max||0;s.length>0&&(c=Math.min.apply(this,s),u=Math.max.apply(this,s)),c===u&&(0==u?u=10:c=0);for(var l=b(c,u),f=void 0===i.min||null===i.min?l.minRange:i.min,d=void 0===i.max||null===i.max?l.maxRange:i.max,p=(d-f)/t.yAxis.splitNumber,h=[],g=0;g<=t.yAxis.splitNumber;g++)h.push(f+p*g);return h.reverse()}function xe(e,t,r,n){var i=s({},{type:""},t.extra.column),o=t.yAxis.data.length,a=new Array(o);if(o>0){for(var u=0;u0&&0==i.tooltip.group.includes(a))){var s="number"===typeof i.tooltip.index?i.tooltip.index:i.tooltip.index[i.tooltip.group.indexOf(a)];if(n.beginPath(),"hollow"==o.activeType?(n.setStrokeStyle(t),n.setFillStyle(i.background),n.setLineWidth(2*i.pix)):(n.setStrokeStyle("#ffffff"),n.setFillStyle(t),n.setLineWidth(1*i.pix)),"diamond"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y),n.lineTo(e.x,e.y+4.5),n.lineTo(e.x+4.5,e.y),n.lineTo(e.x,e.y-4.5))}));else if("circle"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x+2.5*i.pix,e.y),n.arc(e.x,e.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x-3.5,e.y-3.5),n.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y+4.5),n.lineTo(e.x+4.5,e.y+4.5),n.lineTo(e.x,e.y-4.5))}));else if("none"===r)return;n.closePath(),n.fill(),n.stroke()}}function ke(e,t,r,n){var i=e.title.fontSize||t.titleFontSize,o=e.subtitle.fontSize||t.subtitleFontSize,a=e.title.name||"",s=e.subtitle.name||"",c=e.title.color||e.fontColor,u=e.subtitle.color||e.fontColor,l=a?i:0,f=s?o:0,d=5;if(s){var p=w(s,o*e.pix,r),h=n.x-p/2+(e.subtitle.offsetX||0)*e.pix,g=n.y+o*e.pix/2+(e.subtitle.offsetY||0)*e.pix;a&&(g+=(l*e.pix+d)/2),r.beginPath(),r.setFontSize(o*e.pix),r.setFillStyle(u),r.fillText(s,h,g),r.closePath(),r.stroke()}if(a){var v=w(a,i*e.pix,r),y=n.x-v/2+(e.title.offsetX||0),m=n.y+i*e.pix/2+(e.title.offsetY||0)*e.pix;s&&(m-=(f*e.pix+d)/2),r.beginPath(),r.setFontSize(i*e.pix),r.setFillStyle(c),r.fillText(a,y,m),r.closePath(),r.stroke()}}function Pe(e,t,r,n,i){var a=t.data,s=t.textOffset?t.textOffset:0;e.forEach((function(e,c){if(null!==e){n.beginPath();var u=t.textSize?t.textSize*i.pix:r.fontSize;n.setFontSize(u),n.setFillStyle(t.textColor||i.fontColor);var l=a[c];"object"===(0,o.default)(a[c])&&null!==a[c]&&(l=a[c].constructor.toString().indexOf("Array")>-1?a[c][1]:a[c].value);var f=t.formatter?t.formatter(l,c,t,i):l;n.setTextAlign("center"),n.fillText(String(f),e.x,e.y-4+s*i.pix),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function Te(e,t,r,n,i){var a=t.data,s=t.textOffset?t.textOffset:0,c=i.extra.column.labelPosition;e.forEach((function(e,u){if(null!==e){n.beginPath();var l=t.textSize?t.textSize*i.pix:r.fontSize;n.setFontSize(l),n.setFillStyle(t.textColor||i.fontColor);var f=a[u];"object"===(0,o.default)(a[u])&&null!==a[u]&&(f=a[u].constructor.toString().indexOf("Array")>-1?a[u][1]:a[u].value);var d=t.formatter?t.formatter(f,u,t,i):f;n.setTextAlign("center");var p=e.y-4*i.pix+s*i.pix;e.y>t.zeroPoints&&(p=e.y+s*i.pix+l),"insideTop"==c&&(p=e.y+l+s*i.pix,e.y>t.zeroPoints&&(p=e.y-s*i.pix-4*i.pix)),"center"==c&&(p=e.y+s*i.pix+(i.height-i.area[2]-e.y+l)/2,t.zeroPointst.zeroPoints&&(p=e.y-s*i.pix-(e.y-t.zeroPoints-l)/2),"stack"==i.extra.column.type&&(p=e.y+s*i.pix+(e.y0-e.y+l)/2)),"bottom"==c&&(p=i.height-i.area[2]+s*i.pix-4*i.pix,t.zeroPointst.zeroPoints&&(p=t.zeroPoints-s*i.pix+l+2*i.pix),"stack"==i.extra.column.type&&(p=e.y0+s*i.pix-4*i.pix)),n.fillText(String(d),e.x,p),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function Ce(e,t,r,n,i,o){t.data;var a=t.textOffset?t.textOffset:0;i.extra.mount.labelPosition;e.forEach((function(e,s){if(null!==e){n.beginPath();var c=t[s].textSize?t[s].textSize*i.pix:r.fontSize;n.setFontSize(c),n.setFillStyle(t[s].textColor||i.fontColor);var u=e.value,l=t[s].formatter?t[s].formatter(u,s,t,i):u;n.setTextAlign("center");var f=e.y-4*i.pix+a*i.pix;e.y>o&&(f=e.y+a*i.pix+c),n.fillText(String(l),e.x,f),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function Oe(e,t,r,n,i){var a=t.data;t.textOffset&&t.textOffset;e.forEach((function(e,s){if(null!==e){n.beginPath();var c=t.textSize?t.textSize*i.pix:r.fontSize;n.setFontSize(c),n.setFillStyle(t.textColor||i.fontColor);var u=a[s];"object"===(0,o.default)(a[s])&&null!==a[s]&&(u=a[s].value);var l=t.formatter?t.formatter(u,s,t,i):u;n.setTextAlign("left"),n.fillText(String(l),e.x+4*i.pix,e.y+c/2-3),n.closePath(),n.stroke()}}))}function Ee(e,t,r,n,i,o){var a;t-=e.width/2+e.labelOffset*n.pix,t=t<10?10:t,a=e.endAngle=2&&(l%=2),f+=u}}function Ie(e,t,r,n,i,o){var a=n.extra.radar||{};e.forEach((function(e,s){if(!0===a.labelPointShow&&""!==n.categories[s]){var u={x:t*Math.cos(e),y:t*Math.sin(e)},l=g(u.x,u.y,r);o.setFillStyle(a.labelPointColor),o.beginPath(),o.arc(l.x,l.y,a.labelPointRadius*n.pix,0,2*Math.PI,!1),o.closePath(),o.fill()}if(!0===a.labelShow){var f={x:(t+i.radarLabelTextMargin*n.pix)*Math.cos(e),y:(t+i.radarLabelTextMargin*n.pix)*Math.sin(e)},d=g(f.x,f.y,r),p=d.x,h=d.y;c.approximatelyEqual(f.x,0)?p-=w(n.categories[s]||"",i.fontSize,o)/2:f.x<0&&(p-=w(n.categories[s]||"",i.fontSize,o)),o.beginPath(),o.setFontSize(i.fontSize),o.setFillStyle(a.labelColor||n.fontColor),o.fillText(n.categories[s]||"",p,h+i.fontSize/2),o.closePath(),o.stroke()}}))}function Me(e,t,r,n,i,o){for(var a=r.pieChartLinePadding,s=[],u=null,l=e.map((function(r,n){var i=r.formatter?r.formatter(r,n,e,t):c.toFixed(100*r._proportion_.toFixed(4))+"%";i=r.labelText?r.labelText:i;var o=2*Math.PI-(r._start_+2*Math.PI*r._proportion_/2);r._rose_proportion_&&(o=2*Math.PI-(r._start_+2*Math.PI*r._rose_proportion_/2));var a=r.color,s=r._radius_;return{arc:o,text:i,color:a,radius:s,textColor:r.textColor,textSize:r.textSize,labelShow:r.labelShow}})),f=0;f=0?p+r.pieChartTextPadding:p-r.pieChartTextPadding,b=h,A=w(d.text,d.textSize*t.pix||r.fontSize,n),_=b;u&&c.isSameXCoordinateArea(u.start,{x:x})&&(_=x>0?Math.min(b,u.start.y):p<0||b>0?Math.max(b,u.start.y):Math.min(b,u.start.y)),x<0&&(x-=A);var S={lineStart:{x:y,y:m},lineEnd:{x:p,y:h},start:{x:x,y:_},width:A,height:r.fontSize,text:d.text,color:d.color,textColor:d.textColor,textSize:d.textSize};u=v(S,u),s.push(u)}for(var k=0;ki?i:o.activeWidth;var a=t.area[0],c=t.height-t.area[2];n.beginPath(),n.setFillStyle(u(o.activeBgColor,o.activeBgOpacity)),n.rect(e-o.activeWidth/2,a,o.activeWidth,c-a),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function Fe(e,t,r,n,i){var o=s({},{activeBgColor:"#000000",activeBgOpacity:.08},t.extra.bar),a=t.area[3],c=t.width-t.area[1];n.beginPath(),n.setFillStyle(u(o.activeBgColor,o.activeBgOpacity)),n.rect(a,e-i/2,c-a,i),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function Ne(e,t,r,n,i,o,a){var c=s({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,boxPadding:3,fontColor:"#FFFFFF",fontSize:13,lineHeight:20,legendShow:!0,legendShape:"auto",splitLine:!0},r.extra.tooltip);1==c.showCategory&&r.categories&&e.unshift({text:r.categories[r.tooltip.index],color:null});var l=c.fontSize*r.pix,f=c.lineHeight*r.pix,d=c.boxPadding*r.pix,p=l,h=5*r.pix;0==c.legendShow&&(p=0,h=0);var g=c.showArrow?8*r.pix:0,v=!1;"line"!=r.type&&"mount"!=r.type&&"area"!=r.type&&"candle"!=r.type&&"mix"!=r.type||1==c.splitLine&&Le(r.tooltip.offset.x,r,n,i),t=s({x:0,y:0},t),t.y-=8*r.pix;var y=e.map((function(e){return w(e.text,l,i)})),m=p+h+4*d+Math.max.apply(null,y),x=2*d+e.length*f;if(0!=c.showBox){t.x-Math.abs(r._scrollDistance_||0)+g+m>r.width&&(v=!0),x+t.y>r.height&&(t.y=r.height-x),i.beginPath(),i.setFillStyle(u(c.bgColor,c.bgOpacity)),i.setLineWidth(c.borderWidth*r.pix),i.setStrokeStyle(u(c.borderColor,c.borderOpacity));var b=c.borderRadius;v?(m+g>r.width&&(t.x=r.width+Math.abs(r._scrollDistance_||0)+g+(m-r.width)),m>t.x&&(t.x=r.width+Math.abs(r._scrollDistance_||0)+g+(m-r.width)),c.showArrow&&(i.moveTo(t.x,t.y+10*r.pix),i.lineTo(t.x-g,t.y+10*r.pix+5*r.pix)),i.arc(t.x-g-b,t.y+x-b,b,0,Math.PI/2,!1),i.arc(t.x-g-Math.round(m)+b,t.y+x-b,b,Math.PI/2,Math.PI,!1),i.arc(t.x-g-Math.round(m)+b,t.y+b,b,-Math.PI,-Math.PI/2,!1),i.arc(t.x-g-b,t.y+b,b,-Math.PI/2,0,!1),c.showArrow&&(i.lineTo(t.x-g,t.y+10*r.pix-5*r.pix),i.lineTo(t.x,t.y+10*r.pix))):(c.showArrow&&(i.moveTo(t.x,t.y+10*r.pix),i.lineTo(t.x+g,t.y+10*r.pix-5*r.pix)),i.arc(t.x+g+b,t.y+b,b,-Math.PI,-Math.PI/2,!1),i.arc(t.x+g+Math.round(m)-b,t.y+b,b,-Math.PI/2,0,!1),i.arc(t.x+g+Math.round(m)-b,t.y+x-b,b,0,Math.PI/2,!1),i.arc(t.x+g+b,t.y+x-b,b,Math.PI/2,Math.PI,!1),c.showArrow&&(i.lineTo(t.x+g,t.y+10*r.pix+5*r.pix),i.lineTo(t.x,t.y+10*r.pix))),i.closePath(),i.fill(),c.borderWidth>0&&i.stroke(),c.legendShow&&e.forEach((function(e,n){if(null!==e.color){i.beginPath(),i.setFillStyle(e.color);var o=t.x+g+2*d,a=t.y+(f-l)/2+f*n+d+1;switch(v&&(o=t.x-m-g+2*d),e.legendShape){case"line":i.moveTo(o,a+.5*p-2*r.pix),i.fillRect(o,a+.5*p-2*r.pix,p,4*r.pix);break;case"triangle":i.moveTo(o+7.5*r.pix,a+.5*p-5*r.pix),i.lineTo(o+2.5*r.pix,a+.5*p+5*r.pix),i.lineTo(o+12.5*r.pix,a+.5*p+5*r.pix),i.lineTo(o+7.5*r.pix,a+.5*p-5*r.pix);break;case"diamond":i.moveTo(o+7.5*r.pix,a+.5*p-5*r.pix),i.lineTo(o+2.5*r.pix,a+.5*p),i.lineTo(o+7.5*r.pix,a+.5*p+5*r.pix),i.lineTo(o+12.5*r.pix,a+.5*p),i.lineTo(o+7.5*r.pix,a+.5*p-5*r.pix);break;case"circle":i.moveTo(o+7.5*r.pix,a+.5*p),i.arc(o+7.5*r.pix,a+.5*p,5*r.pix,0,2*Math.PI);break;case"rect":i.moveTo(o,a+.5*p-5*r.pix),i.fillRect(o,a+.5*p-5*r.pix,15*r.pix,10*r.pix);break;case"square":i.moveTo(o+2*r.pix,a+.5*p-5*r.pix),i.fillRect(o+2*r.pix,a+.5*p-5*r.pix,10*r.pix,10*r.pix);break;default:i.moveTo(o,a+.5*p-5*r.pix),i.fillRect(o,a+.5*p-5*r.pix,15*r.pix,10*r.pix)}i.closePath(),i.fill()}})),e.forEach((function(e,r){var n=t.x+g+2*d+p+h;v&&(n=t.x-m-g+2*d+p+h);var o=t.y+f*r+(f-l)/2-1+d+l;i.beginPath(),i.setFontSize(l),i.setTextBaseline("normal"),i.setFillStyle(c.fontColor),i.fillText(e.text,n,o),i.closePath(),i.stroke()}))}}function Re(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=s({},{type:"group",width:l/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0,labelPosition:"outside"},t.extra.column),d=[];n.save();var p=-2,h=c.length+2;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),p=Math.floor(-t._scrollDistance_/l)-2,h=p+t.xAxis.itemCount+4),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===o&&Be(t.tooltip.offset.x,t,r,n,l),f.customColor=x(f.linearType,f.customColor,e,r),e.forEach((function(a,s){var g,v,y;g=[].concat(t.chartData.yAxisData.ranges[a.index]),v=g.pop(),y=g.shift();var m=t.height-t.area[0]-t.area[2],x=m*(0-v)/(y-v),b=t.height-Math.round(x)-t.area[2];a.zeroPoints=b;var w=a.data;switch(f.type){case"group":var A=pe(w,v,y,c,l,t,r,b,o),_=ve(w,v,y,c,l,t,r,s,e,o);d.push(_),A=ie(A,l,e.length,s,r,t);for(var S=0;Sp&&Sb?b:k.y,L=k.width,j=Math.abs(b-k.y);f.barBorderCircle&&(f.barBorderRadius=[L/2,L/2,0,0]),k.y>b&&(f.barBorderRadius=[0,0,L/2,L/2]);var D=(0,i.default)(f.barBorderRadius,4),B=D[0],F=D[1],N=D[2],R=D[3],U=Math.min(L/2,j/2);B=B>U?U:B,F=F>U?U:F,N=N>U?U:N,R=R>U?U:R,B=B<0?0:B,F=F<0?0:F,N=N<0?0:N,R=R<0?0:R,n.arc(I+B,M+B,B,-Math.PI,-Math.PI/2),n.arc(I+L-F,M+F,F,-Math.PI/2,0),n.arc(I+L-N,M+j-N,N,0,Math.PI/2),n.arc(I+R,M+j-R,R,Math.PI/2,Math.PI)}else n.moveTo(P,k.y),n.lineTo(P+k.width,k.y),n.lineTo(P+k.width,b),n.lineTo(P,b),n.lineTo(P,k.y),n.setLineWidth(1),n.setStrokeStyle(O);n.setFillStyle(C),n.closePath(),n.fill()}}break;case"stack":A=ve(w,v,y,c,l,t,r,s,e,o);d.push(A),A=se(A,l,e.length,s,r,t,e);for(var $=0;$p&&$0&&(T-=q),n.setFillStyle(C),n.moveTo(P,z.y),n.fillRect(P,z.y,z.width,T),n.closePath(),n.fill()}}break;case"meter":A=fe(w,v,y,c,l,t,r,o);d.push(A),A=ae(A,l,e.length,s,r,t,f.meterBorder);for(var H=0;Hp&&H0&&(n.setStrokeStyle(a.color),n.setLineWidth(f.meterBorder*t.pix)),0==s?n.setFillStyle(f.meterFillColor):n.setFillStyle(W.color||a.color);P=W.x-W.width/2,T=t.height-W.y-t.area[2];if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var Q=P,V=W.y,K=W.width,G=b-W.y;f.barBorderCircle&&(f.barBorderRadius=[K/2,K/2,0,0]);var Y=(0,i.default)(f.barBorderRadius,4),J=Y[0],X=Y[1],Z=Y[2],ee=Y[3],te=Math.min(K/2,G/2);J=J>te?te:J,X=X>te?te:X,Z=Z>te?te:Z,ee=ee>te?te:ee,J=J<0?0:J,X=X<0?0:X,Z=Z<0?0:Z,ee=ee<0?0:ee,n.arc(Q+J,V+J,J,-Math.PI,-Math.PI/2),n.arc(Q+K-X,V+X,X,-Math.PI/2,0),n.arc(Q+K-Z,V+G-Z,Z,0,Math.PI/2),n.arc(Q+ee,V+G-ee,ee,Math.PI/2,Math.PI),n.fill()}else n.moveTo(P,W.y),n.lineTo(P+W.width,W.y),n.lineTo(P+W.width,b),n.lineTo(P,b),n.lineTo(P,W.y),n.fill();0==s&&f.meterBorder>0&&(n.closePath(),n.stroke())}}break}})),!1!==t.dataLabel&&1===o&&e.forEach((function(i,a){var s,u,d;s=[].concat(t.chartData.yAxisData.ranges[i.index]),u=s.pop(),d=s.shift();var p=i.data;switch(f.type){case"group":var h=pe(p,u,d,c,l,t,r,o);h=ie(h,l,e.length,a,r,t),Te(h,i,r,n,t);break;case"stack":h=ve(p,u,d,c,l,t,r,a,e,o);Te(h,i,r,n,t);break;case"meter":h=fe(p,u,d,c,l,t,r,o);Te(h,i,r,n,t);break}})),n.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:l}}function Ue(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=s({},{type:"mount",widthRatio:1,borderWidth:1,barBorderCircle:!1,barBorderRadius:[],linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mount);f.widthRatio=f.widthRatio<=0?0:f.widthRatio,f.widthRatio=f.widthRatio>=2?2:f.widthRatio;n.save();var d,p,h,g=-2,v=c.length+2;t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),g=Math.floor(-t._scrollDistance_/l)-2,v=g+t.xAxis.itemCount+4),f.customColor=x(f.linearType,f.customColor,e,r),d=[].concat(t.chartData.yAxisData.ranges[0]),p=d.pop(),h=d.shift();var y=t.height-t.area[0]-t.area[2],m=y*(0-p)/(h-p),b=t.height-Math.round(m)-t.area[2],w=he(e,p,h,c,l,t,f,b,o);switch(f.type){case"bar":for(var A=0;Ag&&Ab?b:_.y,I=_.width,M=Math.abs(b-_.y);f.barBorderCircle&&(f.barBorderRadius=[I/2,I/2,0,0]),_.y>b&&(f.barBorderRadius=[0,0,I/2,I/2]);var L=(0,i.default)(f.barBorderRadius,4),j=L[0],D=L[1],B=L[2],F=L[3],N=Math.min(I/2,M/2);j=j>N?N:j,D=D>N?N:D,B=B>N?N:B,F=F>N?N:F,j=j<0?0:j,D=D<0?0:D,B=B<0?0:B,F=F<0?0:F,n.arc(O+j,E+j,j,-Math.PI,-Math.PI/2),n.arc(O+I-D,E+D,D,-Math.PI/2,0),n.arc(O+I-B,E+M-B,B,0,Math.PI/2),n.arc(O+F,E+M-F,F,Math.PI/2,Math.PI)}else n.moveTo(S,_.y),n.lineTo(S+_.width,_.y),n.lineTo(S+_.width,b),n.lineTo(S,b),n.lineTo(S,_.y);n.setStrokeStyle(T),n.setFillStyle(P),f.borderWidth>0&&(n.setLineWidth(f.borderWidth*t.pix),n.closePath(),n.stroke()),n.fill()}}break;case"triangle":for(var R=0;Rg&&R0&&(n.setLineWidth(f.borderWidth*t.pix),n.stroke()),n.fill()}}break;case"mount":for(var $=0;$g&&$0&&(n.setLineWidth(f.borderWidth*t.pix),n.stroke()),n.fill()}}break;case"sharp":for(var q=0;qg&&q0&&(n.setLineWidth(f.borderWidth*t.pix),n.stroke()),n.fill()}}break}if(!1!==t.dataLabel&&1===o){var W,Q,V;W=[].concat(t.chartData.yAxisData.ranges[0]),Q=W.pop(),V=W.shift();w=he(e,Q,V,c,l,t,f,b,o);Ce(w,e,r,n,t,b)}return n.restore(),{xAxisPoints:c,calPoints:w,eachSpacing:l}}function $e(e,t,r,n){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=[],c=(t.height-t.area[0]-t.area[2])/t.categories.length,l=0;lp&&wF?F:L,j=j>F?F:j,D=D>F?F:D,B=B>F?F:B,L=L<0?0:L,j=j<0?0:j,D=D<0?0:D,B=B<0?0:B,n.arc(C+B,E+B,B,-Math.PI,-Math.PI/2),n.arc(A.x-L,E+L,L,-Math.PI/2,0),n.arc(A.x-j,E+O-j,j,0,Math.PI/2),n.arc(C+D,E+O-D,D,Math.PI/2,Math.PI)}else n.moveTo(_,S),n.lineTo(A.x,S),n.lineTo(A.x,S+A.width),n.lineTo(_,S+A.width),n.lineTo(_,S),n.setLineWidth(1),n.setStrokeStyle(P);n.setFillStyle(k),n.closePath(),n.fill()}}break;case"stack":x=ye(m,v,y,a,c,t,r,l,e,o);d.push(x),x=ce(x,c,e.length,l,r,t,e);for(var N=0;Np&&N5&&void 0!==arguments[5]?arguments[5]:1,a=s({},{color:{},average:{}},r.extra.candle);a.color=s({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},a.color),a.average=s({},{show:!1,name:[],day:[],color:n.color},a.average),r.extra.candle=a;var c=r.chartData.xAxisData,u=c.xAxisPoints,l=c.eachSpacing,f=[];i.save();var d=-2,p=u.length+2,g=0,v=r.width+l;return r._scrollDistance_&&0!==r._scrollDistance_&&!0===r.enableScroll&&(i.translate(r._scrollDistance_,0),d=Math.floor(-r._scrollDistance_/l)-2,p=d+r.xAxis.itemCount+4,g=-r._scrollDistance_-2*l+r.area[3],v=g+(r.xAxis.itemCount+4)*l),(a.average.show||t)&&t.forEach((function(e,t){var a,s,c;a=[].concat(r.chartData.yAxisData.ranges[e.index]),s=a.pop(),c=a.shift();for(var f=e.data,d=fe(f,s,c,u,l,r,n,o),p=H(d,e),y=0;yg&&(i.moveTo(w.x,w.y),x=1),b>0&&w.x>g&&w.xd&&m0?(i.setStrokeStyle(a.color.upLine),i.setFillStyle(a.color.upFill),i.setLineWidth(1*r.pix),i.moveTo(x[3].x,x[3].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[1].x-l/4,x[1].y),i.lineTo(x[0].x-l/4,x[0].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[2].x,x[2].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[0].x+l/4,x[0].y),i.lineTo(x[1].x+l/4,x[1].y),i.lineTo(x[1].x,x[1].y),i.moveTo(x[3].x,x[3].y)):(i.setStrokeStyle(a.color.downLine),i.setFillStyle(a.color.downFill),i.setLineWidth(1*r.pix),i.moveTo(x[3].x,x[3].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[0].x-l/4,x[0].y),i.lineTo(x[1].x-l/4,x[1].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[2].x,x[2].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[1].x+l/4,x[1].y),i.lineTo(x[0].x+l/4,x[0].y),i.lineTo(x[0].x,x[0].y),i.moveTo(x[3].x,x[3].y)),i.closePath(),i.fill(),i.stroke()}})),i.restore(),{xAxisPoints:u,calPoints:f,eachSpacing:l}}function qe(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1,activeType:"none"},t.extra.area),a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=t.height-t.area[2],d=[];n.save();var p=0,g=t.width+l;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),p=-t._scrollDistance_-2*l+t.area[3],g=p+(t.xAxis.itemCount+4)*l),e.forEach((function(e,a){var s,v,y;s=[].concat(t.chartData.yAxisData.ranges[e.index]),v=s.pop(),y=s.shift();var m=e.data,x=fe(m,v,y,c,l,t,r,i);d.push(x);for(var b=H(x,e),w=0;w1){var S=A[0],k=A[A.length-1];n.moveTo(S.x,S.y);var P=0;if("curve"===o.type)for(var T=0;Tp&&(n.moveTo(C.x,C.y),P=1),T>0&&C.x>p&&C.xp&&(n.moveTo(I.x,I.y),P=1),E>0&&I.x>p&&I.xp&&(n.moveTo(L.x,L.y),P=1),M>0&&L.x>p&&L.xp&&(n.moveTo(N.x,N.y),B=1),F>0&&N.x>p&&N.xp&&(n.moveTo($.x,$.y),B=1),U>0&&$.x>p&&$.xp&&(n.moveTo(q.x,q.y),B=1),z>0&&q.x>p&&q.x4&&void 0!==arguments[4]?arguments[4]:1,o=(s({},{type:"circle"},t.extra.scatter),t.chartData.xAxisData),a=o.xAxisPoints,c=o.eachSpacing,u=[];n.save();var l=0;t.width;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),l=-t._scrollDistance_-2*c+t.area[3],l+(t.xAxis.itemCount+4)*c),e.forEach((function(e,o){var s,u,l;s=[].concat(t.chartData.yAxisData.ranges[e.index]),u=s.pop(),l=s.shift();var f=e.data,d=fe(f,u,l,a,c,t,r,i);n.beginPath(),n.setStrokeStyle(e.color),n.setFillStyle(e.color),n.setLineWidth(1*t.pix);var p=e.pointShape;if("diamond"===p)d.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y),n.lineTo(e.x,e.y+4.5),n.lineTo(e.x+4.5,e.y),n.lineTo(e.x,e.y-4.5))}));else if("circle"===p)d.forEach((function(e,r){null!==e&&(n.moveTo(e.x+2.5*t.pix,e.y),n.arc(e.x,e.y,3*t.pix,0,2*Math.PI,!1))}));else if("square"===p)d.forEach((function(e,t){null!==e&&(n.moveTo(e.x-3.5,e.y-3.5),n.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===p)d.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y+4.5),n.lineTo(e.x+4.5,e.y+4.5),n.lineTo(e.x,e.y-4.5))}));else if("triangle"===p)return;n.closePath(),n.fill(),n.stroke()})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,o){var s,u,l;s=[].concat(t.chartData.yAxisData.ranges[e.index]),u=s.pop(),l=s.shift();var f=e.data,d=fe(f,u,l,a,c,t,r,i);Pe(d,e,r,n,t)})),n.restore(),{xAxisPoints:a,calPoints:u,eachSpacing:c}}function We(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{opacity:1,border:2},t.extra.bubble),a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=[];n.save();var d=0;t.width;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),d=-t._scrollDistance_-2*l+t.area[3],d+(t.xAxis.itemCount+4)*l),e.forEach((function(e,a){var s,f,d;s=[].concat(t.chartData.yAxisData.ranges[e.index]),f=s.pop(),d=s.shift();var p=e.data,h=fe(p,f,d,c,l,t,r,i);n.beginPath(),n.setStrokeStyle(e.color),n.setLineWidth(o.border*t.pix),n.setFillStyle(u(e.color,o.opacity)),h.forEach((function(e,r){n.moveTo(e.x+e.r,e.y),n.arc(e.x,e.y,e.r*t.pix,0,2*Math.PI,!1)})),n.closePath(),n.fill(),n.stroke(),!1!==t.dataLabel&&1===i&&h.forEach((function(i,o){n.beginPath();var a=e.textSize*t.pix||r.fontSize;n.setFontSize(a),n.setFillStyle(e.textColor||"#FFFFFF"),n.setTextAlign("center"),n.fillText(String(i.t),i.x,i.y+a/2),n.closePath(),n.stroke(),n.setTextAlign("left")}))})),n.restore(),{xAxisPoints:c,calPoints:f,eachSpacing:l}}function Qe(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"straight",width:2,activeType:"none",linearType:"none",onShadow:!1,animation:"vertical"},t.extra.line);o.width*=t.pix;var a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=[];n.save();var d=0,p=t.width+l;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),d=-t._scrollDistance_-2*l+t.area[3],p=d+(t.xAxis.itemCount+4)*l),e.forEach((function(e,a){var s,g,v;n.beginPath(),n.setStrokeStyle(e.color),n.moveTo(-1e4,-1e4),n.lineTo(-10001,-10001),n.stroke(),s=[].concat(t.chartData.yAxisData.ranges[e.index]),g=s.pop(),v=s.shift();var y=e.data,m=de(y,g,v,c,l,t,r,o,i);f.push(m);var x=H(m,e);if("dash"==e.lineType){var b=e.dashLength?e.dashLength:8;b*=t.pix,n.setLineDash([b,b])}n.beginPath();var w=e.color;if("none"!==o.linearType&&e.linearColor&&e.linearColor.length>0){for(var A=n.createLinearGradient(t.chartData.xAxisData.startX,t.height/2,t.chartData.xAxisData.endX,t.height/2),_=0;_0?n.setShadow(e.setShadow[0],e.setShadow[1],e.setShadow[2],e.setShadow[3]):n.setShadow(0,0,0,"rgba(0,0,0,0)"),n.setLineWidth(o.width),x.forEach((function(e,t){if(1===e.length)n.moveTo(e[0].x,e[0].y);else{n.moveTo(e[0].x,e[0].y);var r=0;if("curve"===o.type)for(var i=0;id&&(n.moveTo(a.x,a.y),r=1),i>0&&a.x>d&&a.xd&&(n.moveTo(u.x,u.y),r=1),c>0&&u.x>d&&u.xd&&(n.moveTo(f.x,f.y),r=1),l>0&&f.x>d&&f.x4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=s({},{width:l/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mix.column),d=s({},{opacity:.2,gradient:!1},t.extra.mix.area),p=s({},{width:2},t.extra.mix.line),g=t.height-t.area[2],v=[],y=0,m=0;e.forEach((function(e,t){"column"==e.type&&(m+=1)})),n.save();var b=-2,w=c.length+2,A=0,_=t.width+l;if(t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),b=Math.floor(-t._scrollDistance_/l)-2,w=b+t.xAxis.itemCount+4,A=-t._scrollDistance_-2*l+t.area[3],_=A+(t.xAxis.itemCount+4)*l),f.customColor=x(f.linearType,f.customColor,e,r),e.forEach((function(e,a){var s,x,S;s=[].concat(t.chartData.yAxisData.ranges[e.index]),x=s.pop(),S=s.shift();var k=e.data,P=fe(k,x,S,c,l,t,r,o);if(v.push(P),"column"==e.type){P=ie(P,l,m,y,r,t);for(var T=0;Tb&&Tz?z:N,R=R>z?z:R,U=U>z?z:U,$=$>z?z:$,N=N<0?0:N,R=R<0?0:R,U=U<0?0:U,$=$<0?0:$,n.arc(L+N,j+N,N,-Math.PI,-Math.PI/2),n.arc(L+D-R,j+R,R,-Math.PI/2,0),n.arc(L+D-U,j+B-U,U,0,Math.PI/2),n.arc(L+$,j+B-$,$,Math.PI/2,Math.PI)}else n.moveTo(O,C.y),n.lineTo(O+C.width,C.y),n.lineTo(O+C.width,t.height-t.area[2]),n.lineTo(O,t.height-t.area[2]),n.lineTo(O,C.y),n.setLineWidth(1),n.setStrokeStyle(I);n.setFillStyle(E),n.closePath(),n.fill()}}y+=1}if("area"==e.type)for(var q=H(P,e),W=0;W1){var K=Q[0],G=Q[Q.length-1];n.moveTo(K.x,K.y);var Y=0;if("curve"===e.style)for(var J=0;JA&&(n.moveTo(X.x,X.y),Y=1),J>0&&X.x>A&&X.x<_){var Z=h(Q,J-1);n.bezierCurveTo(Z.ctrA.x,Z.ctrA.y,Z.ctrB.x,Z.ctrB.y,X.x,X.y)}}else for(var ee=0;eeA&&(n.moveTo(te.x,te.y),Y=1),ee>0&&te.x>A&&te.x<_&&n.lineTo(te.x,te.y)}n.lineTo(G.x,g),n.lineTo(K.x,g),n.lineTo(K.x,K.y)}else{var re=Q[0];n.moveTo(re.x-l/2,re.y)}n.closePath(),n.fill()}if("line"==e.type){var ne=H(P,e);ne.forEach((function(r,i){if("dash"==e.lineType){var o=e.dashLength?e.dashLength:8;o*=t.pix,n.setLineDash([o,o])}if(n.beginPath(),n.setStrokeStyle(e.color),n.setLineWidth(p.width*t.pix),1===r.length)n.moveTo(r[0].x,r[0].y);else{n.moveTo(r[0].x,r[0].y);var a=0;if("curve"==e.style)for(var s=0;sA&&(n.moveTo(c.x,c.y),a=1),s>0&&c.x>A&&c.x<_){var u=h(r,s-1);n.bezierCurveTo(u.ctrA.x,u.ctrA.y,u.ctrB.x,u.ctrB.y,c.x,c.y)}}else for(var l=0;lA&&(n.moveTo(f.x,f.y),a=1),l>0&&f.x>A&&f.x<_&&n.lineTo(f.x,f.y)}n.moveTo(r[0].x,r[0].y)}n.stroke(),n.setLineDash([])}))}"point"==e.type&&(e.addPoint=!0),1==e.addPoint&&"column"!==e.type&&_e(P,e.color,e.pointShape,n,t)})),!1!==t.dataLabel&&1===o){y=0;e.forEach((function(e,i){var a,s,u;a=[].concat(t.chartData.yAxisData.ranges[e.index]),s=a.pop(),u=a.shift();var f=e.data,d=fe(f,s,u,c,l,t,r,o);"column"!==e.type?Pe(d,e,r,n,t):(d=ie(d,l,m,y,r,t),Pe(d,e,r,n,t),y+=1)}))}return n.restore(),{xAxisPoints:c,calPoints:v,eachSpacing:l}}function Ke(e,t,r,n,i,o){var a=e.extra.tooltip||{};a.horizentalLine&&e.tooltip&&1===n&&("line"==e.type||"area"==e.type||"column"==e.type||"mount"==e.type||"candle"==e.type||"mix"==e.type)&&De(e,t,r,i,o),r.save(),e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&r.translate(e._scrollDistance_,0),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&Ne(e.tooltip.textList,e.tooltip.offset,e,t,r,i,o),r.restore()}function Ge(e,t,r,n){var i=t.chartData.xAxisData,o=i.xAxisPoints,a=i.startX,s=i.endX,c=i.eachSpacing,u="center";"bar"!=t.type&&"line"!=t.type&&"area"!=t.type&&"scatter"!=t.type&&"bubble"!=t.type||(u=t.xAxis.boundaryGap);var l=t.height-t.area[2],f=t.area[0];if(t.enableScroll&&t.xAxis.scrollShow){var d=t.height-t.area[2]+r.xAxisHeight,p=s-a,h=c*(o.length-1);"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),h+=(t.extra.mount.widthRatio-1)*c);var g=p*p/h,v=0;t._scrollDistance_&&(v=-t._scrollDistance_*p/h),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*t.pix),n.setStrokeStyle(t.xAxis.scrollBackgroundColor||"#EFEBEF"),n.moveTo(a,d),n.lineTo(s,d),n.stroke(),n.closePath(),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*t.pix),n.setStrokeStyle(t.xAxis.scrollColor||"#A6A6A6"),n.moveTo(a+v,d),n.lineTo(a+v+g,d),n.stroke(),n.closePath(),n.setLineCap("butt")}if(n.save(),t._scrollDistance_&&0!==t._scrollDistance_&&n.translate(t._scrollDistance_,0),!0===t.xAxis.calibration&&(n.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*t.pix),o.forEach((function(e,r){r>0&&(n.beginPath(),n.moveTo(e-c/2,l),n.lineTo(e-c/2,l+3*t.pix),n.closePath(),n.stroke())}))),!0!==t.xAxis.disableGrid&&(n.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*t.pix),"dash"==t.xAxis.gridType&&n.setLineDash([t.xAxis.dashLength*t.pix,t.xAxis.dashLength*t.pix]),t.xAxis.gridEval=t.xAxis.gridEval||1,o.forEach((function(e,r){r%t.xAxis.gridEval==0&&(n.beginPath(),n.moveTo(e,l),n.lineTo(e,f),n.stroke())})),n.setLineDash([])),!0!==t.xAxis.disabled){var y=e.length;t.xAxis.labelCount&&(y=t.xAxis.itemCount?Math.ceil(e.length/t.xAxis.itemCount*t.xAxis.labelCount):t.xAxis.labelCount,y-=1);for(var m=Math.ceil(e.length/y),x=[],b=e.length,A=0;A=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1&&(n.beginPath(),n.setFontSize(_),n.setFillStyle(t.xAxis.fontColor||t.fontColor),n.fillText(String(i),o[r]+a,l+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.fontSize)*t.pix/2+t.xAxis.fontSize*t.pix),n.closePath(),n.stroke())})):x.forEach((function(e,i){var a=t.xAxis.formatter?t.xAxis.formatter(e):e,s=t._scrollDistance_||0,f="center"==u?o[i]+c/2:o[i];if(f-Math.abs(s)>=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1){n.save(),n.beginPath(),n.setFontSize(_),n.setFillStyle(t.xAxis.fontColor||t.fontColor);var d=w(String(a),_,n),p=o[i];"center"==u&&(p=o[i]+c/2);t.xAxis.scrollShow&&6*t.pix;var h=l+t.xAxis.marginTop*t.pix+_-_*Math.abs(Math.sin(r._xAxisTextAngle_));t.xAxis.rotateAngle<0?(p-=_/2,d=0):(p+=_/2,d=-d),n.translate(p,h),n.rotate(-1*r._xAxisTextAngle_),n.fillText(String(a),d,0),n.closePath(),n.stroke(),n.restore()}}))}n.restore(),t.xAxis.title&&(n.beginPath(),n.setFontSize(t.xAxis.titleFontSize*t.pix),n.setFillStyle(t.xAxis.titleFontColor),n.fillText(String(t.xAxis.title),t.width-t.area[1]+t.xAxis.titleOffsetX*t.pix,t.height-t.area[2]+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.titleFontSize)*t.pix/2+(t.xAxis.titleFontSize+t.xAxis.titleOffsetY)*t.pix),n.closePath(),n.stroke()),t.xAxis.axisLine&&(n.beginPath(),n.setStrokeStyle(t.xAxis.axisLineColor),n.setLineWidth(1*t.pix),n.moveTo(a,t.height-t.area[2]),n.lineTo(s,t.height-t.area[2]),n.stroke())}function Ye(e,t,r,n){if(!0!==t.yAxis.disableGrid){var i=t.height-t.area[0]-t.area[2],o=i/t.yAxis.splitNumber,a=t.area[3],s=t.chartData.xAxisData.xAxisPoints,c=t.chartData.xAxisData.eachSpacing,u=c*(s.length-1);"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),u+=(t.extra.mount.widthRatio-1)*c);var l=a+u,f=[],d=1;!1===t.xAxis.axisLine&&(d=0);for(var p=d;p4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==t.type?t.extra.pie:t.extra.ring),a={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2};0==r.pieChartLinePadding&&(r.pieChartLinePadding=o.activeRadius*t.pix);var c=Math.min((t.width-t.area[1]-t.area[3])/2-r.pieChartLinePadding-r.pieChartTextPadding-r._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-r.pieChartLinePadding-r.pieChartTextPadding);c=c<10?10:c,o.customRadius>0&&(c=o.customRadius*t.pix),e=Y(e,c,i);var l=o.activeRadius*t.pix;if(o.customColor=x(o.linearType,o.customColor,e,r),e=e.map((function(e){return e._start_+=o.offsetAngle*Math.PI/180,e})),e.forEach((function(e,r){t.tooltip&&t.tooltip.index==r&&(n.beginPath(),n.setFillStyle(u(e.color,o.activeOpacity||.5)),n.moveTo(a.x,a.y),n.arc(a.x,a.y,e._radius_+l,e._start_,e._start_+2*e._proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.lineJoin="round",n.setStrokeStyle(o.borderColor);var i,s=e.color;"custom"==o.linearType&&(i=n.createCircularGradient?n.createCircularGradient(a.x,a.y,e._radius_):n.createRadialGradient(a.x,a.y,0,a.x,a.y,e._radius_),i.addColorStop(0,u(o.customColor[e.linearIndex],1)),i.addColorStop(1,u(e.color,1)),s=i);n.setFillStyle(s),n.moveTo(a.x,a.y),n.arc(a.x,a.y,e._radius_,e._start_,e._start_+2*e._proportion_*Math.PI),n.closePath(),n.fill(),1==o.border&&n.stroke()})),"ring"===t.type){var f=.6*c;"number"===typeof o.ringWidth&&o.ringWidth>0&&(f=Math.max(0,c-o.ringWidth*t.pix)),n.beginPath(),n.setFillStyle(o.centerColor),n.moveTo(a.x,a.y),n.arc(a.x,a.y,f,0,2*Math.PI),n.closePath(),n.fill()}return!1!==t.dataLabel&&1===i&&Me(e,t,r,n,c,a),1===i&&"ring"===t.type&&ke(t,r,n,a),{center:a,radius:c,series:e}}function et(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},t.extra.rose);0==r.pieChartLinePadding&&(r.pieChartLinePadding=o.activeRadius*t.pix);var a={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},c=Math.min((t.width-t.area[1]-t.area[3])/2-r.pieChartLinePadding-r.pieChartTextPadding-r._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-r.pieChartLinePadding-r.pieChartTextPadding);c=c<10?10:c;var l=o.minRadius||.5*c;c4&&void 0!==arguments[4]?arguments[4]:1,c=s({},{startAngle:.75,endAngle:.25,type:"default",direction:"cw",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},t.extra.arcbar);e=Z(e,c,a),i=c.centerX||c.centerY?{x:c.centerX?c.centerX:t.width/2,y:c.centerY?c.centerY:t.height/2}:{x:t.width/2,y:t.height/2},c.radius?o=c.radius:(o=Math.min(i.x,i.y),o-=5*t.pix,o-=c.width/2),o=o<10?10:o,c.customColor=x(c.linearType,c.customColor,e,r);for(var l=0;l5&&void 0!==arguments[5]?arguments[5]:1,a=s({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},r.extra.gauge);void 0==a.oldAngle&&(a.oldAngle=a.startAngle),void 0==a.oldData&&(a.oldData=0),e=te(e,a.startAngle,a.endAngle);var c={x:r.width/2,y:r.height/2},l=Math.min(c.x,c.y);l-=5*r.pix,l-=a.width/2,l=l<10?10:l;var f=l-a.width,d=0;if("progress"==a.type){var p=l-3*a.width;i.beginPath();var h=i.createLinearGradient(c.x,c.y-p,c.x,c.y+p);h.addColorStop("0",u(t[0].color,.3)),h.addColorStop("1.0",u("#FFFFFF",.1)),i.setFillStyle(h),i.arc(c.x,c.y,p,0,2*Math.PI,!1),i.fill(),i.setLineWidth(a.width),i.setStrokeStyle(u(t[0].color,.3)),i.setLineCap("round"),i.beginPath(),i.arc(c.x,c.y,f,a.startAngle*Math.PI,a.endAngle*Math.PI,!1),i.stroke(),d=a.endAngleb/m?i.setStrokeStyle(u(t[0].color,1)):i.setStrokeStyle(u(t[0].color,.3)),i.setLineWidth(3*r.pix),i.moveTo(v,0),i.lineTo(y,0),i.stroke(),i.rotate(g*Math.PI);i.restore(),t=ee(t,a,o),i.setLineWidth(a.width),i.setStrokeStyle(t[0].color),i.setLineCap("round"),i.beginPath(),i.arc(c.x,c.y,f,a.startAngle*Math.PI,t[0]._proportion_*Math.PI,!1),i.stroke();var w=l-2.5*a.width;i.save(),i.translate(c.x,c.y),i.rotate((t[0]._proportion_-1)*Math.PI),i.beginPath(),i.setLineWidth(a.width/3);var A=i.createLinearGradient(0,.6*-w,0,.6*w);A.addColorStop("0",u("#FFFFFF",0)),A.addColorStop("0.5",u(t[0].color,1)),A.addColorStop("1.0",u("#FFFFFF",0)),i.setStrokeStyle(A),i.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),i.stroke(),i.beginPath(),i.setLineWidth(1),i.setStrokeStyle(t[0].color),i.setFillStyle(t[0].color),i.moveTo(-w-a.width/3/2,-4),i.lineTo(-w-a.width/3/2-4,0),i.lineTo(-w-a.width/3/2,4),i.lineTo(-w-a.width/3/2,-4),i.stroke(),i.fill(),i.restore()}else{i.setLineWidth(a.width),i.setLineCap("butt");for(var _=0;_4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{gridColor:"#cccccc",gridType:"radar",gridEval:1,axisLabel:!1,axisLabelTofix:0,labelShow:!0,labelColor:"#666666",labelPointShow:!1,labelPointRadius:3,labelPointColor:"#cccccc",opacity:.2,gridCount:3,border:!1,borderWidth:2,linearType:"none",customColor:[]},t.extra.radar),a=T(t.categories.length),c={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},l=(t.width-t.area[1]-t.area[3])/2,f=(t.height-t.area[0]-t.area[2])/2,d=Math.min(l-(P(t.categories,r.fontSize,n)+r.radarLabelTextMargin),f-r.radarLabelTextMargin);d-=r.radarLabelTextMargin*t.pix,d=d<10?10:d,d=o.radius?o.radius:d,n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(o.gridColor),a.forEach((function(e,t){var r=g(d*Math.cos(e),d*Math.sin(e),c);n.moveTo(c.x,c.y),t%o.gridEval==0&&n.lineTo(r.x,r.y)})),n.stroke(),n.closePath();for(var p=function(e){var r={};if(n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(o.gridColor),"radar"==o.gridType)a.forEach((function(t,i){var a=g(d/o.gridCount*e*Math.cos(t),d/o.gridCount*e*Math.sin(t),c);0===i?(r=a,n.moveTo(a.x,a.y)):n.lineTo(a.x,a.y)})),n.lineTo(r.x,r.y);else{var i=g(d/o.gridCount*e*Math.cos(1.5),d/o.gridCount*e*Math.sin(1.5),c);n.arc(c.x,c.y,c.y-i.y,0,2*Math.PI,!1)}n.stroke(),n.closePath()},h=1;h<=o.gridCount;h++)p(h);o.customColor=x(o.linearType,o.customColor,e,r);var v=G(a,c,d,e,t,i);if(v.forEach((function(r,i){n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.setStrokeStyle(r.color);var a,s=u(r.color,o.opacity);"custom"==o.linearType&&(a=n.createCircularGradient?n.createCircularGradient(c.x,c.y,d):n.createRadialGradient(c.x,c.y,0,c.x,c.y,d),a.addColorStop(0,u(o.customColor[e[i].linearIndex],o.opacity)),a.addColorStop(1,u(r.color,o.opacity)),s=a);if(n.setFillStyle(s),r.data.forEach((function(e,t){0===t?n.moveTo(e.position.x,e.position.y):n.lineTo(e.position.x,e.position.y)})),n.closePath(),n.fill(),!0===o.border&&n.stroke(),n.closePath(),!1!==t.dataPointShape){var l=r.data.map((function(e){return e.position}));_e(l,r.color,r.pointShape,n,t)}})),!0===o.axisLabel){var y=Math.max(o.max,Math.max.apply(null,A(e))),m=d/o.gridCount,b=t.fontSize*t.pix;n.setFontSize(b),n.setFillStyle(t.fontColor),n.setTextAlign("left");for(h=0;hu.x?r.xMax:u.x,r.yMin=r.yMinu.y?r.yMax:u.y}}return r}function at(e,t,r,n,i,o){return{x:(t-r.xMin)*n+i,y:(r.yMax-e)*n+o}}function st(e,t,r,n,i,o){return{x:(t-i)/n+r.xMin,y:r.yMax-(e-o)/n}}function ct(e,t,r){if(t[1]==r[1])return!1;if(t[1]>e[1]&&r[1]>e[1])return!1;if(t[1]e[1])return!1;if(r[1]==e[1]&&t[1]>e[1])return!1;if(t[0]t[o].area[2]||e[1]>t[o].area[3]||e[2]r||e[3]>n){i=!0;break}i=!1}return i}function pt(e,t,r){var n=e.series;switch(t){case"normal":for(var i=0;i.7},h=0;h4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"normal",autoColors:!0},t.extra.word);t.chartData.wordCloudData||(t.chartData.wordCloudData=pt(t,o.type,n)),n.beginPath(),n.setFillStyle(t.background),n.rect(0,0,t.width,t.height),n.fill(),n.save();var a=t.chartData.wordCloudData;n.translate(t.width/2,t.height/2);for(var c=0;c0&&(t.tooltip&&t.tooltip.index==c?n.strokeText(u,(a[c].areav[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].areav[1]+5+l-t.height/2)*i):n.fillText(u,(a[c].areav[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].areav[1]+5+l-t.height/2)*i)):a[c].area[0]>0&&(t.tooltip&&t.tooltip.index==c?n.strokeText(u,(a[c].area[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].area[1]+5+l-t.height/2)*i):n.fillText(u,(a[c].area[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].area[1]+5+l-t.height/2)*i)),n.stroke(),n.restore()}n.restore()}function gt(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,minSize:0,labelAlign:"right",linearType:"none",customColor:[]},t.extra.funnel),a=(t.height-t.area[0]-t.area[2])/e.length,c={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.height-t.area[2]},l=o.activeWidth*t.pix,f=Math.min((t.width-t.area[1]-t.area[3])/2-l,(t.height-t.area[0]-t.area[2])/2-l),d=J(e,f,o,a,i);if(n.save(),n.translate(c.x,c.y),o.customColor=x(o.linearType,o.customColor,e,r),"pyramid"==o.type)for(var p=0;p0?w[P].width+t.yAxis.padding*t.pix:w[P].width,k+=1):"right"==w[P].position&&(t.area[1]+=S>0?w[P].width+t.yAxis.padding*t.pix:w[P].width,S+=1)}else r.yAxisWidth=w;if(t.chartData.yAxisData=b,t.categories&&t.categories.length&&"radar"!==t.type&&"gauge"!==t.type&&"bar"!==t.type){t.chartData.xAxisData=ue(t.categories,t,r);var T=Q(t.categories,t,r,t.chartData.xAxisData.eachSpacing,n),C=T.xAxisHeight,O=T.angle;r.xAxisHeight=C,r._xAxisTextAngle_=O,t.area[2]+=C,t.chartData.categoriesData=T}else if("line"===t.type||"area"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){t.chartData.xAxisData=K(a,t,r,n),c=t.chartData.xAxisData.rangesFormat;var E=Q(c,t,r,t.chartData.xAxisData.eachSpacing,n),M=E.xAxisHeight,L=E.angle;r.xAxisHeight=M,r._xAxisTextAngle_=L,t.area[2]+=M,t.chartData.categoriesData=E}else t.chartData.xAxisData={xAxisPoints:[]};if(t.enableScroll&&"right"==t.xAxis.scrollAlign&&void 0===t._scrollDistance_){var j=0,D=t.chartData.xAxisData.xAxisPoints,B=t.chartData.xAxisData.startX,F=t.chartData.xAxisData.endX,N=t.chartData.xAxisData.eachSpacing,R=N*(D.length-1),U=F-B;j=U-R,o.scrollOption.currentOffset=j,o.scrollOption.startTouchX=j,o.scrollOption.distance=0,o.scrollOption.lastMoveTime=0,t._scrollDistance_=j}switch("pie"!==e&&"ring"!==e&&"rose"!==e||(r._pieTextMaxLength_=!1===t.dataLabel?0:ne(d,r,n,t)),e){case"word":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),ht(a,t,r,n,e),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"map":n.clearRect(0,0,t.width,t.height),lt(a,t,r,n),setTimeout((function(){i.uevent.trigger("renderComplete")}),50);break;case"funnel":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.funnelData=gt(a,t,r,n,e),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Ye(c,t,r,n),Ge(c,t,r,n);var i=Qe(a,t,r,n,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Je(a,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e,u,o),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Ye(c,t,r,n),Ge(c,t,r,n);var i=He(a,t,r,n,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Je(a,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e,u,o),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Ye(c,t,r,n),Ge(c,t,r,n);var i=We(a,t,r,n,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Je(a,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e,u,o),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Ye(c,t,r,n),Ge(c,t,r,n);var i=Ve(a,t,r,n,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Je(a,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e,u,o),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Ye(c,t,r,n),Ge(c,t,r,n);var i=Re(a,t,r,n,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Je(a,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e,u,o),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Ye(c,t,r,n),Ge(c,t,r,n);var i=Ue(a,t,r,n,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Je(a,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e,u,o),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Ge(c,t,r,n);var i=$e(a,t,r,n,e),o=i.yAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.yAxisPoints=o,t.chartData.xAxisPoints=t.chartData.xAxisData.xAxisPoints,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Je(a,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e,u,o),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Ye(c,t,r,n),Ge(c,t,r,n);var i=qe(a,t,r,n,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Je(a,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e,u,o),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"ring":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.pieData=Ze(a,t,r,n,e),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"pie":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.pieData=Ze(a,t,r,n,e),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.pieData=et(a,t,r,n,e),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.radarData=nt(a,t,r,n,e),Xe(t.series,t,r,n,t.chartData),Ke(t,r,n,e),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.arcbarData=tt(a,t,r,n,e),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.gaugeData=rt(c,a,t,r,n,e),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new bt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Ye(c,t,r,n),Ge(c,t,r,n);var i=ze(a,d,t,r,n,e),o=i.xAxisPoints,s=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=s,t.chartData.eachSpacing=u,Je(a,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Xe(d||t.series,t,r,n,t.chartData),Ke(t,r,n,e,u,o),mt(t,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break}}function At(){this.events={}}bt.prototype.stop=function(){this.isStop=!0},At.prototype.addEventListener=function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},At.prototype.delEventListener=function(e){this.events[e]=[]},At.prototype.trigger=function(){for(var e=arguments.length,t=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};this.opts=s({},this.opts,e),this.opts.updateData=!0;var t=e.scrollPosition||"current";switch(t){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var r=xe(this.opts.series,this.opts,this.config,this.context),n=r.yAxisWidth;this.config.yAxisWidth=n;var i=0,o=ue(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,c=o.startX,u=o.endX,l=o.eachSpacing,f=l*(a.length-1),d=u-c;i=d-f,this.scrollOption={currentOffset:i,startTouchX:i,distance:0,lastMoveTime:0},this.opts._scrollDistance_=i;break}wt.call(this,this.opts.type,this.opts,this.config,this.context)},_t.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var t=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var r=xe(this.opts.series,this.opts,this.config,this.context),n=r.yAxisWidth;this.config.yAxisWidth=n;var i=0,o=ue(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,s=o.startX,c=o.endX,u=o.eachSpacing,l=u*t,f=c-s,p=f-u*(a.length-1);i=f/2-l,i>0&&(i=0),i=this.opts.categories.length?this.opts.categories.length:f,this.opts.animation=!1,this.opts.xAxis.itemCount=f;var p=0,h=ue(this.opts.categories,this.opts,this.config),g=h.xAxisPoints,v=h.startX,y=h.endX,m=h.eachSpacing,x=m*this.scrollOption.moveCurrent1,b=y-v,w=b-m*(g.length-1);p=-x+Math.min(n[0].x,n[1].x)-this.opts.area[3]-m,p>0&&(p=0),p1&&void 0!==arguments[1]?arguments[1]:{},r=null;if(r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r){S(r,this.opts,e);var n=this.getLegendDataIndex(e);n>=0&&("candle"==this.opts.type?this.opts.seriesMA[n].show=!this.opts.seriesMA[n].show:this.opts.series[n].show=!this.opts.series[n].show,this.opts.animation=!!t.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,wt.call(this,this.opts.type,this.opts,this.config,this.context))}},_t.prototype.showToolTip=function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;n=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],n||console.log("[uCharts] 未获取到event坐标信息");var i=S(n,this.opts,e),o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var c=this.getCurrentDataIndex(e),u=void 0==r.index?c.index:r.index;if(u>-1||u.length>0){var l=k(this.opts.series,u,c.group);if(0!==l.length){var f=C(l,this.opts,u,c.group,this.opts.categories,r),d=f.textList,p=f.offset;p.y=i.y,a.tooltip={textList:void 0!==r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:p,option:r,index:u,group:c.group}}}wt.call(this,a.type,a,this.config,this.context)}if("mount"===this.opts.type){u=void 0==r.index?this.getCurrentDataIndex(e).index:r.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},a._series_[u]),d=[{text:r.formatter?r.formatter(l,void 0,u,a):l.name+": "+l.data,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:a.chartData.calPoints[u].x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:p,option:r,index:u}}wt.call(this,a.type,a,this.config,this.context)}if("bar"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==r.index?c.index:r.index;if(u>-1||u.length>0){l=k(this.opts.series,u,c.group);if(0!==l.length){f=C(l,this.opts,u,c.group,this.opts.categories,r),d=f.textList,p=f.offset;p.x=i.x,a.tooltip={textList:void 0!==r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:p,option:r,index:u}}}wt.call(this,a.type,a,this.config,this.context)}if("mix"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==r.index?c.index:r.index;if(u>-1){o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1}),l=k(this.opts.series,u);if(0!==l.length){var h=O(l,this.opts,u,this.opts.categories,r);d=h.textList,p=h.offset;p.y=i.y,a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:p,option:r,index:u}}}wt.call(this,a.type,a,this.config,this.context)}if("candle"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==r.index?c.index:r.index;if(u>-1){o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1}),l=k(this.opts.series,u);if(0!==l.length){f=E(this.opts.series[0].data,l,this.opts,u,this.opts.categories,this.opts.extra.candle,r),d=f.textList,p=f.offset;p.y=i.y,a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:p,option:r,index:u}}}wt.call(this,a.type,a,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){u=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},a._series_[u]),d=[{text:r.formatter?r.formatter(l,void 0,u,a):l.name+": "+l.data,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:p,option:r,index:u}}wt.call(this,a.type,a,this.config,this.context)}if("map"===this.opts.type){u=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},this.opts.series[u]);l.name=l.properties.name;d=[{text:r.formatter?r.formatter(l,void 0,u,this.opts):l.name,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:p,option:r,index:u}}a.updateData=!1,wt.call(this,a.type,a,this.config,this.context)}if("word"===this.opts.type){u=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},this.opts.series[u]),d=[{text:r.formatter?r.formatter(l,void 0,u,this.opts):l.name,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:p,option:r,index:u}}a.updateData=!1,wt.call(this,a.type,a,this.config,this.context)}if("radar"===this.opts.type){u=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=k(this.opts.series,u);if(0!==l.length){d=l.map((function(e){return{text:r.formatter?r.formatter(e,t.opts.categories[u],u,t.opts):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.opts.extra.tooltip.legendShape?e.legendShape:t.opts.extra.tooltip.legendShape}})),p={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:p,option:r,index:u}}}wt.call(this,a.type,a,this.config,this.context)}},_t.prototype.translate=function(e){this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0};var t=s({},this.opts,{_scrollDistance_:e,animation:!1});wt.call(this,this.opts.type,t,this.config,this.context)},_t.prototype.scrollStart=function(e){var t=null;t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0];var r=S(t,this.opts,e);t&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=r.x)},_t.prototype.scroll=function(e){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var t=this.opts.touchMoveLimit||60,r=Date.now(),n=r-this.scrollOption.lastMoveTime;if(!(n