(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["common/vendor"],[,function(e,t,n){"use strict";(function(e){var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Qn,t.createComponent=ur,t.createPage=ir,t.createPlugin=fr,t.createSubpackageApp=lr,t.default=void 0;var o,i=r(n(4)),a=r(n(10)),s=r(n(14)),c=r(n(15)),u=r(n(16)),l=r(n(12)),f=n(20),p=r(n(21)),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function v(e){return decodeURIComponent(o(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function y(){var e,t=my.getStorageSync("uni_id_token")||"",n=t.split(".");if(!t||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse(v(n[1]))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}function g(e){e.prototype.uniIDHasRole=function(e){var t=y(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=y(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=y(),t=e.tokenExpired;return t>Date.now()}}o="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!h.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,o="",i=0;i>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var m=Object.prototype.toString,_=Object.prototype.hasOwnProperty;function b(e){return"function"===typeof e}function w(e){return"string"===typeof e}function O(e){return null!==e&&"object"===(0,l.default)(e)}function x(e){return"[object Object]"===m.call(e)}function A(e,t){return _.call(e,t)}function $(){}function S(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var k=/-(\w)/g,E=S((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),P=["invoke","success","fail","complete","returnValue"],C={},T={};function j(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?I(n):n}function I(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var r=t[n];t[n]=function(o){V(e[n],o,t).then((function(e){return b(r)&&r(e)||e}))}}})),t}function B(e,t){var n=[];Array.isArray(C.returnValue)&&n.push.apply(n,(0,u.default)(C.returnValue));var r=T[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,u.default)(r.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function z(e){var t=Object.create(null);Object.keys(C).forEach((function(e){"returnValue"!==e&&(t[e]=C[e].slice())}));var n=T[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function G(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,o=new Array(r>1?r-1:0),i=1;i-1?pe:e.indexOf("-hant")>-1||Ae(e,["-tw","-hk","-mo","-cht"])?de:pe;var n=$e(e,[he,ve,ye]);return n||void 0}}function ke(){if(b(getApp)){var e=getApp({allowDefault:!0});if(e&&e.$vm)return e.$vm.$locale}return me()}function Ee(e){var t=!!b(getApp)&&getApp();if(!t)return!1;var n=t.$vm.$locale;return n!==e&&(t.$vm.$locale=e,Pe.forEach((function(t){return t({locale:e})})),!0)}var Pe=[];function Ce(e){-1===Pe.indexOf(e)&&Pe.push(e)}"undefined"!==typeof e&&(e.getLocale=ke);var Te={promiseInterceptor:J},je=Object.freeze({__proto__:null,upx2px:le,rpx2px:le,getLocale:ke,setLocale:Ee,onLocaleChange:Ce,addInterceptor:N,removeInterceptor:F,interceptors:Te}),Ie=function(){function e(t,n){var r=this;(0,s.default)(this,e),this.id=t,this.listener={},this.emitCache={},n&&Object.keys(n).forEach((function(e){r.on(e,n[e])}))}return(0,c.default)(e,[{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0;)this.emit.apply(this,[e].concat(t.shift()))}},{key:"_addListener",value:function(e,t,n){(this.listener[e]||(this.listener[e]=[])).push({fn:n,type:t})}}]),e}(),Le={},Me=0;function De(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Me++;var n=new Ie(Me,e);return t&&(Le[Me]=n),n}function Ne(e){var t=Le[e];return delete Le[e],t}function Fe(){var e;return{args:function(t,n){e=De(t.events),t.url&&(t.url=t.url+(-1===t.url.indexOf("?")?"?":"&")+"__id__="+e.id)},returnValue:function(t,n){t.eventChannel=e}}}function Ue(e){var t=getCurrentPages(),n=t.length;while(n--){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}var Re={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=Ue(e.url);if(-1!==t){var n=getCurrentPages().length-1-t;n>0&&(e.delta=n)}}}};function Ve(e,t){return my.setStorageSync({key:e,data:t})}function He(e){var t=my.getStorageSync({key:e});return null!==t.data?t.data:""}function Be(e){return my.removeStorageSync({key:e})}function ze(e){if(e.safeArea){var t=e.safeArea;e.safeAreaInsets={top:t.top,left:t.left,right:e.windowWidth-t.right,bottom:e.screenHeight-t.bottom}}}function Ge(e,t){var n="",r="";switch(t?(n=t,r=e):(n=e.split(" ")[0]||t,r=e.split(" ")[1]||""),n=n.toLocaleLowerCase(),n){case"harmony":case"ohos":case"openharmony":n="harmonyos";break;case"iphone os":n="ios";break;case"mac":case"darwin":n="macos";break;case"windows_nt":n="windows";break}return{osName:n,osVersion:r}}function Je(e){var t=e.brand,n=void 0===t?"":t,r=e.model,o=void 0===r?"":r,i=e.system,a=void 0===i?"":i,s=e.language,c=void 0===s?"":s,u=e.theme,l=e.version,f=e.platform,p=e.fontSizeSetting,d=e.SDKVersion,h=e.pixelRatio,v=e.deviceOrientation,y={},g=Ge(a,f),m=g.osName,_=g.osVersion,b=l,w=Ke(e,o),O=qe(n),x=Ye(e),A=v,$=h,S=d;S=my.SDKVersion;var k=(c||"").replace(/_/g,"-"),E={appId:"__UNI__0A12251",appName:"H5-pay",appVersion:"1.0.0",appVersionCode:"100",appLanguage:We(k),uniCompileVersion:"4.76",uniCompilerVersion:"4.76",uniRuntimeVersion:"4.76",uniPlatform:"mp-alipay",deviceBrand:O,deviceModel:o,deviceType:w,devicePixelRatio:$,deviceOrientation:A,osName:m.toLocaleLowerCase(),osVersion:_,hostTheme:u,hostVersion:b,hostLanguage:k,hostName:x,hostSDKVersion:S,hostFontSizeSetting:p,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0,isUniAppX:!1};Object.assign(e,E,y)}function Ke(e,t){for(var n=e.deviceType||"phone",r={ipad:"pad",windows:"pc",mac:"pc"},o=Object.keys(r),i=t.toLocaleLowerCase(),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return t.error||t.errorMessage?(t.errMsg="".concat(e,":fail ").concat(t.errorMessage||t.error),delete t.error,delete t.errorMessage):t.errMsg="".concat(e,":ok"),t},request:{name:my.canIUse("request")?"request":"httpRequest",args:function(e){var t=e.method||"GET";e.header||(e.header={});var n={"content-type":"application/json"};return Object.keys(e.header).forEach((function(t){n[t.toLocaleLowerCase()]=e.header[t]})),{header:function(){return{name:"headers",value:n}},data:function(e){return my.canIUse("saveFileToDingTalk")&&"POST"===t.toUpperCase()&&0===n["content-type"].indexOf("application/json")&&x(e)?{name:"data",value:JSON.stringify(e)}:{name:"data",value:e}},method:"method",responseType:!1}},returnValue:{status:"statusCode",headers:"header"}},setNavigationBarColor:{name:"setNavigationBar",args:{frontColor:!1,animation:!1}},setNavigationBarTitle:{name:"setNavigationBar"},showModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showCancel,n=void 0===t||t;return n?{name:"confirm",args:{cancelColor:!1,confirmColor:!1,cancelText:"cancelButtonText",confirmText:"confirmButtonText"},returnValue:function(e,t){t.confirm=e.confirm,t.cancel=!e.confirm}}:{name:"alert",args:{confirmColor:!1,confirmText:"buttonText"},returnValue:function(e,t){t.confirm=!0,t.cancel=!1}}},showToast:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.icon,n=void 0===t?"success":t,r={title:"content",icon:"type",image:!1,mask:!1};return"loading"===n?{name:"showLoading",args:r}:{name:"showToast",args:r}},showActionSheet:{name:"showActionSheet",args:{itemList:"items",itemColor:!1},returnValue:{index:"tapIndex"}},showLoading:{args:{title:"content"}},uploadFile:{args:{name:"fileName"}},downloadFile:{returnValue:{apFilePath:"tempFilePath"}},getFileInfo:{args:{filePath:"apFilePath"}},compressImage:{args:function(e){e.compressLevel=4,e&&e.quality&&(e.compressLevel=Math.floor(e.quality/26)),e.apFilePaths=[e.src]},returnValue:function(e){e.apFilePaths&&e.apFilePaths.length&&(e.tempFilePath=e.apFilePaths[0])}},chooseVideo:{returnValue:{apFilePath:"tempFilePath"}},connectSocket:{args:{method:!1,protocols:!1}},chooseImage:{returnValue:function(e){var t=A(e,"tempFilePaths")&&e.tempFilePaths;return A(e,"apFilePaths")&&!t&&(e.tempFilePaths=e.apFilePaths,delete e.apFilePaths),!A(e,"tempFiles")&&t&&(e.tempFiles=[],e.tempFilePaths.forEach((function(t){return e.tempFiles.push({path:t})}))),{}}},previewImage:{args:function(e){var t=Number(e.current);if(isNaN(t)){if(e.current&&Array.isArray(e.urls)){var n=e.urls.indexOf(e.current);e.current=~n?n:0}}else e.current=t;return{indicator:!1,loop:!1}}},saveFile:{args:{tempFilePath:"apFilePath"},returnValue:{apFilePath:"savedFilePath"}},getSavedFileInfo:{args:{filePath:"apFilePath"}},getSavedFileList:{returnValue:function(e){return e.fileList&&e.fileList.length&&e.fileList.forEach((function(e){e.filePath=e.apFilePath,delete e.apFilePath})),{}}},removeSavedFile:{args:{filePath:"apFilePath"}},getLocation:{args:{type:!1,altitude:!1}},openLocation:{args:{}},getNetworkType:{returnValue:it},onNetworkStatusChange:{returnValue:it},stopAccelerometer:{name:"offAccelerometerChange"},stopCompass:{name:"offCompassChange"},scanCode:{name:"scan",args:function(e){if(e.scanType)switch(e.scanType[0]){case"qrCode":e.type="qr";break;case"barCode":e.type="bar";break}return{onlyFromCamera:"hideAlbum"}},returnValue:{code:"result"}},setClipboardData:{name:"setClipboard",args:{data:"text"}},getClipboardData:{name:"getClipboard",returnValue:{text:"data"}},login:{name:"getAuthCode",returnValue:function(e){e.code=e.authCode}},getUserInfo:{name:my.canIUse("getOpenUserInfo")?"getOpenUserInfo":"getAuthUserInfo",returnValue:function(e){if(my.canIUse("getOpenUserInfo")){var t={};try{t=JSON.parse(e.response).response}catch(n){}e.nickName=t.nickName,e.avatar=t.avatar}e.userInfo={nickName:e.nickName,avatarUrl:e.avatar}}},getUserProfile:{name:my.canIUse("getOpenUserInfo")?"getOpenUserInfo":"getAuthUserInfo",returnValue:function(e){if(my.canIUse("getOpenUserInfo")){var t={};try{t=JSON.parse(e.response).response}catch(n){}e.nickName=t.nickName,e.avatar=t.avatar}e.userInfo={nickName:e.nickName,avatarUrl:e.avatar}}},requestPayment:{name:"tradePay",args:{orderInfo:"tradeNO"}},getBLEDeviceServices:{returnValue:function(e){e.services.forEach((function(e){e.uuid=e.serviceId}))}},createBLEConnection:{name:"connectBLEDevice",args:{timeout:!1}},closeBLEConnection:{name:"disconnectBLEDevice"},onBLEConnectionStateChange:{name:"onBLEConnectionStateChanged"},makePhoneCall:{args:{phoneNumber:"number"}},stopGyroscope:{name:"offGyroscopeChange"},getSystemInfo:nt,getSystemInfoSync:nt,canvasToTempFilePath:{returnValue:function(e){e.tempFilePath=e.apFilePath}},setScreenBrightness:{args:{value:"brightness"}},getScreenBrightness:{returnValue:{brightness:"value"}},showShareMenu:{name:"showSharePanel"},hideHomeButton:{name:"hideBackHome"},saveVideoToPhotosAlbum:{args:{filePath:"src"}},chooseAddress:{name:"getAddress",returnValue:function(e){var t=e.result||{};e.userName=t.fullname,e.provinceName=t.prov,e.cityName=t.city,e.countyName=t.area,e.detailInfo=t.address,e.telNumber=t.mobilePhone,e.errMsg=e.resultStatus}}};my.canIUse("saveImageToPhotosAlbum")||(at.saveImageToPhotosAlbum={name:"saveImage",args:{filePath:"url"}});var st=["success","fail","cancel","complete"];function ct(e,t,n){return function(r){return t(lt(e,r,n))}}function ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(x(t)){var i=!0===o?t:{};for(var a in b(n)&&(n=n(t,i)||{}),t)if(A(n,a)){var s=n[a];b(s)&&(s=s(t[a],t,i)),s?w(s)?i[s]=t[a]:x(s)&&(i[s.name?s.name:a]=s.value):console.warn("The '".concat(e,"' method of platform '支付宝小程序' does not support option '").concat(a,"'"))}else-1!==st.indexOf(a)?b(t[a])&&(i[a]=ct(e,t[a],r)):o||(i[a]=t[a]);return i}return b(t)&&(t=ct(e,t,r)),t}function lt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return b(at.returnValue)&&(t=at.returnValue(e,t)),ut(e,t,n,{},r)}function ft(e,t){if(A(at,e)){var n=at[e];return n?function(t,r){var o=n;b(n)&&(o=n(t)),t=ut(e,t,o.args,o.returnValue);var i=[t];"undefined"!==typeof r&&i.push(r),b(o.name)?e=o.name(t):w(o.name)&&(e=o.name);var a=my[e].apply(my,i);return Z(e)?lt(e,a,o.returnValue,X(e)):a}:function(){console.error("Platform '支付宝小程序' does not support '".concat(e,"'."))}}return t}var pt=Object.create(null),dt=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function ht(e){return function(t){var n=t.fail,r=t.complete,o={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};b(n)&&n(o),b(r)&&r(o)}}dt.forEach((function(e){pt[e]=ht(e)}));var vt={oauth:["alipay"],share:["alipay"],payment:["alipay"],push:["alipay"]};function yt(e){var t=e.service,n=e.success,r=e.fail,o=e.complete,i=!1;vt[t]?(i={errMsg:"getProvider:ok",service:t,provider:vt[t]},b(n)&&n(i)):(i={errMsg:"getProvider:fail service not found"},b(r)&&r(i)),b(o)&&o(i)}var gt=Object.freeze({__proto__:null,getProvider:yt}),mt=function(){var e;return function(){return e||(e=new p.default),e}}();function _t(e,t,n){return e[t].apply(e,n)}function bt(){return _t(mt(),"$on",Array.prototype.slice.call(arguments))}function wt(){return _t(mt(),"$off",Array.prototype.slice.call(arguments))}function Ot(){return _t(mt(),"$once",Array.prototype.slice.call(arguments))}function xt(){return _t(mt(),"$emit",Array.prototype.slice.call(arguments))}var At,$t,St,kt=Object.freeze({__proto__:null,$on:bt,$off:wt,$once:Ot,$emit:xt});function Et(){var e={},t=my.getSystemInfoSync(),n=t.windowWidth,r=t.windowHeight,o=n=s))return i=!1,t(i),i;i=!0}if("maxWidth"===a){if(!(n<=s))return i=!1,t(i),i;i=!0}if("height"===a){if(s!==r)return i=!1,t(i),i;i=!0}if("minHeight"===a){if(!(r>=s))return i=!1,t(i),i;i=!0}if("maxHeight"===a){if(!(r<=s))return i=!1,t(i),i;i=!0}if("orientation"===a){if(e[a]!==o)return i=!1,t(i),i;i=!0}}}return t(i),i},e.disconnect=function(){},e}function Pt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Ct(e){var t={};for(var n in e){var r=e[n];b(r)&&(t[n]=Pt(r),delete e[n])}return t}function Tt(e){try{return JSON.parse(e)}catch(t){}return e}function jt(e){if("enabled"===e.type)St=!0;else if("clientId"===e.type)At=e.cid,$t=e.errMsg,Lt(At,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Tt(e.message)},n=0;n-1&&Nt.splice(t,1)}else Nt.length=0};function Rt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.rect,n=e.size,r=e.scrollOffset,o=arguments.length>1?arguments[1]:void 0;return(t||n)&&this.boundingClientRect(),r&&this.scrollOffset(),Bt.call(this,o),this}),e.in||(e.in=function(){return this}),e}function Gt(e,t){return t&&t.observeAll&&(t.selectAll=t.observeAll,delete t.observeAll),my.createIntersectionObserver(t)}function Jt(e){Dt&&wt("uni:keyboardHeightChange",Dt),Dt=e,bt("uni:keyboardHeightChange",Dt)}function Kt(){wt("uni:keyboardHeightChange",Dt),Dt=null}var qt=Object.freeze({__proto__:null,startGyroscope:Vt,createSelectorQuery:zt,createIntersectionObserver:Gt,onKeyboardHeightChange:Jt,offKeyboardHeightChange:Kt,createMediaQueryObserver:Et,setStorageSync:Ve,getStorageSync:He,removeStorageSync:Be,getPushClientId:Mt,onPushMessage:Ft,offPushMessage:Ut,invokePushCallback:jt,__f__:Rt});function Wt(e,t){for(var n,r=e.$children,o=r.length-1;o>=0;o--){var i=r[o];if(i.$scope._$vueId===t)return i}for(var a=r.length-1;a>=0;a--)if(n=Wt(r[a],t),n)return n}function Yt(e){var t,n=e.detail||e.value,r=n.vuePid,o=n.vueOptions;r&&(t=Wt(this.$vm,r)),t||(t=this.$vm),o.parent=t}function Qt(e){var t="__v_isMPComponent";return Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:!0}),e}function Xt(e){var t="__ob__",n="__v_skip";return O(e)&&Object.isExtensible(e)&&Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:(0,a.default)({},n,!0)}),e}var Zt=Array.isArray,en=Object.keys;function tn(e,t){if(e===t)return!0;if(e&&t&&"object"===(0,l.default)(e)&&"object"===(0,l.default)(t)){var n,r,o,i=Zt(e),a=Zt(t);if(i&&a){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!tn(e[n],t[n]))return!1;return!0}if(i!==a)return!1;var s=e instanceof Date,c=t instanceof Date;if(s!==c)return!1;if(s&&c)return e.getTime()===t.getTime();var u=e instanceof RegExp,f=t instanceof RegExp;if(u!==f)return!1;if(u&&f)return e.toString()===t.toString();var p=en(e);if(r=p.length,r!==en(t).length)return!1;for(n=r;0!==n--;)if(!A.call(t,p[n]))return!1;for(n=r;0!==n--;)if(o=p[n],!tn(e[o],t[o]))return!1;return!0}return!1}var nn=/:/g,rn=S((function(e){return E(e.replace(nn,"-"))})),on=my.canIUse("component2"),an=["$id"];function sn(){}function cn(e){this.props.onVueInit(e)}function un(e){if(e.$vm){var t=e.is||e.route;if(t){0===t.indexOf("/")&&(t=t.substr(1));var n=my.specialMethods&&my.specialMethods[t];n&&n.forEach((function(t){b(e.$vm[t])&&(e[t]=function(n){A(n,"markerId")&&(n.detail="object"===(0,l.default)(n.detail)?n.detail:{},n.detail.markerId=n.markerId),e.$vm[t](n)})}))}}}function ln(e){e.$vm&&(e._$childVues&&e._$childVues.forEach((function(t){var n=t.vuePid,r=t.vueOptions,o=t.VueComponent,i=t.mpInstance;Yt.call(e,{detail:{vuePid:n,vueOptions:r}}),i.$vm=new o(r),un(i),pn.call(r.parent.$scope,i),i.$vm.$mount(),ln(i),i.$vm._isMounted=!0,i.$vm.__call_hook("mounted"),i.$vm.__call_hook("onReady")})),delete e._$childVues)}function fn(e){var t={},n=e.props,r=(n["data-event-list"]||"").split(",");r.forEach((function(e){var r=n[e],o=e.match(/^on([A-Z])(\S*)/),i=o&&o[1].toLowerCase()+o[2];n[e]=t[e]=function(){var t=Object.assign({},n);t[e]=r,delete t["data-com-type"],dn.bind({props:t})(i,{__args__:Array.prototype.slice.call(arguments)})}})),Object.defineProperty(e,"props",{get:function(){return n},set:function(e){n=Object.assign(e,t)}})}function pn(e){if(e&&this.$vm){var t=e.props["data-ref"],n=e.props["data-ref-in-for"];t?this.$vm.$refs[t]=e.$vm||Xt(e):n&&(this.$vm.$refs[n]||(this.$vm.$refs[n]=[])).push(e.$vm||Xt(e))}}function dn(e,t,n){var r=this.props&&this.props[rn("on-"+e)];if(r){var o=this.props["data-event-opts"],i=this.props["data-event-params"],a=this.props["data-com-type"],s={dataset:{eventOpts:o,eventParams:i,comType:a}};r({type:rn(e),target:s,currentTarget:s,detail:t})}}var hn=["$slots","$scopedSlots"];function vn(e){return function(t){var n=this,r=e?t:this.props,o=e?this.props:t;tn(r,o)||Object.keys(r).forEach((function(e){if(-1===hn.indexOf(e)){var t=r[e],i=o[e];b(t)||b(i)||tn(t,i)||(n.$vm[e]=o[e])}}))}}var yn=function(){return on?function(e){return Yt.call(this,{detail:e})}:function(e){if(this.$vm&&this.$vm._isMounted)return Yt.call(this,{detail:{vuePid:e.vuePid,vueOptions:e.vueOptions}});(this._$childVues||(this._$childVues=[])).unshift(e)}}(),gn=function(e,t){var n=this,r=e.props.vueId,o=(e.props["data-event-list"]||"").split(",");o.forEach((function(o){var i="".concat(o).concat(r);t?delete n[i]:n[i]=function(){e.props[o].apply(this,arguments)}})),t||fn(e)},mn=Component;function _n(e,t){var n=t[e];t[e]=function(){Qt(this);var e=this.props;if(e&&"wx"===e["data-com-type"]&&fn(this),n){for(var t=arguments.length,r=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};return _n("onInit",e),mn(e)});var bn=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function wn(e,t){var n=e.$mp[e.mpType];t.forEach((function(t){A(n,t)&&(e[t]=n[t])}))}function On(e,t){if(!t)return!0;if(p.default.options&&Array.isArray(p.default.options[e]))return!0;if(t=t.default||t,b(t))return!!b(t.extendOptions[e])||!!(t.super&&t.super.options&&Array.isArray(t.super.options[e]));if(b(t[e])||Array.isArray(t[e]))return!0;var n=t.mixins;return Array.isArray(n)?!!n.find((function(t){return On(e,t)})):void 0}function xn(e,t,n){t.forEach((function(t){On(t,n)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function An(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];$n(t).forEach((function(t){return Sn(e,t,n)}))}function $n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(n){0===n.indexOf("on")&&b(e[n])&&t.push(n)})),t}function Sn(e,t,n){-1!==n.indexOf(t)||A(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function kn(e,t){var n;return t=t.default||t,n=b(t)?t:e.extend(t),t=n.options,[n,t]}function En(e,t){e=(e||"").split(",");var n=e.length;1===n?t._$vueId=e[0]:2===n&&(t._$vueId=e[0],t._$vuePid=e[1])}function Pn(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(o){Object({NODE_ENV:"development",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"H5-pay",VUE_APP_PLATFORM:"mp-alipay",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(o){}return x(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||A(n,e)||(n[e]=r[e])})),n}var Cn=[String,Number,Boolean,Object,Array,null];function Tn(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function jn(e,t){var n=e.behaviors,r=(e.extends,e.mixins,e.props);r||(e.props=r=[]);var o=[];Array.isArray(n)&&n.forEach((function(e){o.push(e.replace("uni://","my".concat("://"))),"uni://form-field"===e&&(Array.isArray(r)?(r.push("name"),r.push("value")):(r.name={type:String,default:""},r.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))}))}function In(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function Ln(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return t||(n.vueId={type:String,value:""},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 n=Object.create(null);e.forEach((function(e){n[e]=!0})),this.setData({$slots:n})}}),Array.isArray(e)?e.forEach((function(e){n[e]={type:null,observer:Tn(e)}})):x(e)&&Object.keys(e).forEach((function(t){var r=e[t];if(x(r)){var o=r.default;b(o)&&(o=o()),r.type=In(t,r.type),n[t]={type:-1!==Cn.indexOf(r.type)?r.type:null,value:o,observer:Tn(t)}}else{var i=In(t,r);n[t]={type:-1!==Cn.indexOf(i)?i:null,observer:Tn(t)}}})),n}function Mn(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=$,e.preventDefault=$,e.target=e.target||{},A(e,"detail")||(e.detail={}),A(e,"markerId")&&(e.detail="object"===(0,l.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),x(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function Dn(e,t){var n=e;return t.forEach((function(t){var r=t[0],o=t[2];if(r||"undefined"!==typeof o){var i,a=t[1],s=t[3];Number.isInteger(r)?i=r:r?"string"===typeof r&&r&&(i=0===r.indexOf("#s#")?r.substr(3):e.__get_value(r,n)):i=n,Number.isInteger(i)?n=o:a?Array.isArray(i)?n=i.find((function(t){return e.__get_value(a,t)===o})):x(i)?n=Object.keys(i).find((function(t){return e.__get_value(a,i[t])===o})):console.error("v-for 暂不支持循环数据:",i):n=i[o],s&&(n=e.__get_value(s,n))}})),n}function Nn(e,t,n,r){var o={};return Array.isArray(t)&&t.length&&t.forEach((function(t,i){"string"===typeof t?t?"$event"===t?o["$"+i]=n:"arguments"===t?o["$"+i]=n.detail&&n.detail.__args__||r:0===t.indexOf("$event.")?o["$"+i]=e.__get_value(t.replace("$event.",""),n):o["$"+i]=e.__get_value(t):o["$"+i]=e:o["$"+i]=Dn(e,t)})),o}function Fn(e){for(var t={},n=1;n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=!1,s=x(t.detail)&&t.detail.__args__||[t.detail];if(o&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!n.length))return a?[t]:s;var c=Nn(e,r,t,s),u=[];return n.forEach((function(e){"$event"===e?"__set_model"!==i||o?o&&!a?u.push(s[0]):u.push(t):u.push(t.target.value):Array.isArray(e)&&"o"===e[0]?u.push(Fn(e)):"string"===typeof e&&A(c,e)?u.push(c[e]):u.push(e)})),u}var Rn="~",Vn="^";function Hn(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}function Bn(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 zn(e){var t=this;e=Mn(e);var n=(e.currentTarget||e.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var o=e.type,i=[];return r.forEach((function(n){var r=n[0],a=n[1],s=r.charAt(0)===Vn;r=s?r.slice(1):r;var c=r.charAt(0)===Rn;r=c?r.slice(1):r,a&&Hn(o,r)&&a.forEach((function(n){var r=n[0];if(r){var o=t.$vm;if(o.$options.generic&&(o=Bn(o)||o),"$emit"===r)return void o.$emit.apply(o,Un(t.$vm,e,n[1],n[2],s,r));var a=o[r];if(!b(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(r,'"'))}if(c){if(a.once)return;a.once=!0}var f=Un(t.$vm,e,n[1],n[2],s,r);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(f=f.concat([,,,,,,,,,,e])),i.push(a.apply(o,f))}}))})),"input"===o&&1===i.length&&"undefined"!==typeof i[0]?i[0]:void 0}var Gn=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Jn(){p.default.prototype.getOpenerEventChannel=function(){return my.canIUse("getOpenerEventChannel")?this.$scope.getOpenerEventChannel():(this.__eventChannel__||(this.__eventChannel__=new Ie),this.__eventChannel__)};var e=p.default.prototype.__call_hook;p.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=Ne(n.__id__),delete n.__id__),e.call(this,t,n)}}function Kn(){var e={},t={};function n(e){var t=this.$options.propsData.vueId;if(t){var n=t.split(",")[0];e(n)}}p.default.prototype.$hasSSP=function(n){var r=e[n];return r||(t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))),r},p.default.prototype.$getSSP=function(t,n,r){var o=e[t];if(o){var i=o[n]||[];return r?i:i[0]}},p.default.prototype.$setSSP=function(t,r){var o=0;return n.call(this,(function(n){var i=e[n],a=i[t]=i[t]||[];a.push(r),o=a.length-1})),o},p.default.prototype.$initSSP=function(){n.call(this,(function(t){e[t]={}}))},p.default.prototype.$callSSP=function(){n.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},p.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete e[r],delete t[r])}})}function qn(e,t){var n=t.mocks,r=t.initRefs;Jn(),Kn(),e.$options.store&&(p.default.prototype.$store=e.$options.store),g(p.default),p.default.prototype.mpHost="mp-alipay",p.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,a.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&&(r(this),wn(this,n))}}});var o={onLaunch:function(t){this.$vm||(this.$vm=e,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",t),this.$vm.__call_hook("onLaunch",t))}};o.globalData=e.$options.globalData||{};var i=e.$options.methods;return i&&Object.keys(i).forEach((function(e){o[e]=i[e]})),Oe(p.default,e,Wn()),xn(o,Gn),An(o,e.$options),o}function Wn(){var e="";return e=Se(my.getSystemInfoSync().language)||he,e}function Yn(e){return p.default.prototype.$onAliGetAuthorize=function(e,t){var n=this;my.getPhoneNumber({success:function(r){t.type="getphonenumber";var o=JSON.parse(r.response);t.detail.errMsg="getPhoneNumber:ok",t.detail.encryptedData=o.response,t.detail.sign=o.sign,n[e](t)},fail:function(r){t.type="getphonenumber",t.detail.errMsg="getPhoneNumber:fail Error: "+JSON.stringify(r),n[e](t)}})},p.default.prototype.$onAliAuthError=function(e,t){t.type="getphonenumber",t.detail.errMsg="getPhoneNumber:fail Error: "+t.detail.errorMessage,this[e](t)},qn(e,{mocks:an,initRefs:sn})}function Qn(e){return App(Yn(e)),e}var Xn=/[!'()*]/g,Zn=function(e){return"%"+e.charCodeAt(0).toString(16)},er=/%2C/g,tr=function(e){return encodeURIComponent(e).replace(Xn,Zn).replace(er,",")};function nr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tr,n=e?Object.keys(e).map((function(n){var r=e[n];if(void 0===r)return"";if(null===r)return t(n);if(Array.isArray(r)){var o=[];return r.forEach((function(e){void 0!==e&&(null===e?o.push(t(n)):o.push(t(n)+"="+t(e)))})),o.join("&")}return t(n)+"="+t(r)})).filter((function(e){return e.length>0})).join("&"):null;return n?"?".concat(n):""}var rr=["onShow","onHide","onTitleClick","onOptionMenuClick","onPopMenuClick","onPullIntercept"];function or(e){var t=kn(p.default,e),n=(0,i.default)(t,2),r=n[0],o=n[1],a={mixins:jn(o),data:Pn(o,p.default.prototype),onLoad:function(e){var t=this.props,n={mpType:"page",mpInstance:this,propsData:t};this.$vm=new r(n),un(this),this.$vm.$mount();var o=Object.assign({},e);delete o.__id__,this.$page={fullPath:"/"+this.route+nr(o)},this.options=e,this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},onReady:function(){ln(this),this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady")},onUnload:function(){this.$vm.__call_hook("onUnload"),this.$vm.$destroy()},events:{onBack:function(){this.$vm.__call_hook("onBackPress")},onKeyboardHeight:function(e){xt("uni:keyboardHeightChange",e)}},__r:pn,__e:zn,__l:yn,__w:gn,triggerEvent:dn};return Object.assign(a.events,o.events||{}),xn(a,rr,o),An(a,o,["onReady"]),Array.isArray(o.wxsCallMethods)&&o.wxsCallMethods.forEach((function(e){a[e]=function(t){return this.$vm[e](t)}})),a}function ir(e){return Page(or(e))}function ar(e,t){var n=Object.create(null);Object.defineProperty(e,"$slots",{get:function(){var e=this.$scope;return e&&e.props.$slots||(e&&e.props.$scopedSlots?{}:n)}}),Object.defineProperty(e,"$scopedSlots",{get:function(){var e=this.$scope;return e&&e.props.$scopedSlots||(e&&e.props.$slots?{}:n)}}),Array.isArray(t)&&t.length&&t.forEach((function(e){n[e]=!0}))}function sr(e){if(!this.$vm){var t=this.props,n={mpType:"component",mpInstance:this,propsData:t};En(t.vueId,this),on?(cn.call(this,{vuePid:this._$vuePid,vueOptions:n}),this.$vm=new e(n),ar(this.$vm,t.vueSlots),this.$vm.$mount()):(cn.call(this,{vuePid:this._$vuePid,vueOptions:n,VueComponent:e,mpInstance:this}),n.parent&&(this.$vm=new e(n),pn.call(n.parent.$scope,this),ar(this.$vm,t.vueSlots),this.$vm.$mount(),ln(this),this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady")))}}function cr(e,t){var n=kn(p.default,e),r=(0,i.default)(n,2),o=r[0],a=r[1],s=Ln(a.props,!1,a.__file),c={onVueInit:function(){}};Object.keys(s).forEach((function(e){c[e]=s[e].value}));var u={mixins:jn(a),data:Pn(a,p.default.prototype),props:c,didMount:function(){var e=this;my.dd?setTimeout((function(){sr.call(e,o)}),4):sr.call(this,o),un(this),on&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},didUnmount:function(){this.$vm&&this.$vm.$destroy()},methods:{__r:pn,__e:zn,__l:yn,__w:gn,triggerEvent:dn}};return a.options&&(u.options=a.options),on?(u.onInit=function(){sr.call(this,o)},u.deriveDataFromProps=vn()):u.didUpdate=vn(!0),Array.isArray(a.wxsCallMethods)&&a.wxsCallMethods.forEach((function(e){u.methods[e]=function(t){return this.$vm[e](t)}})),t?[u,a]:u}function ur(e){return my.defineComponent(cr(e))}function lr(e){var t=Yn(e),n=getApp({allowDefault:!0});e.$scope=n;var r=n.globalData;if(r&&Object.keys(t.globalData).forEach((function(e){A(r,e)||(r[e]=t.globalData[e])})),Object.keys(t).forEach((function(e){A(n,e)||(n[e]=t[e])})),b(t.onShow)&&my.onAppShow&&my.onAppShow((function(){for(var t=arguments.length,n=new Array(t),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:l;if(!t)return[e];var r=this._caches[e];return r||(r=h(e,n),this._caches[e]=r),v(r,t)}}]),e}();t.Formatter=f;var p=/^(?:\d)+/,d=/^(?:\w)+/;function h(e,t){var n=(0,i.default)(t,2),r=n[0],o=n[1],a=[],s=0,c="";while(s-1?y:e.indexOf("-hant")>-1||A(e,["-tw","-hk","-mo","-cht"])?g:y;var n=[m,_,b];t&&Object.keys(t).length>0&&(n=Object.keys(t));var r=$(e,n);return r||void 0}}var k=function(){function e(t){var n=t.locale,r=t.fallbackLocale,o=t.messages,i=t.watcher,s=t.formater;(0,a.default)(this,e),this.locale=m,this.fallbackLocale=m,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||x,this.messages=o||{},this.setLocale(n||m),i&&this.watchLocale(i)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=S(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(e){e(t.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}}},{key:"add",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((function(e){O(r,e)||(r[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,n){return this.formater.interpolate(e,t,n).join("")}},{key:"t",value:function(e,t,n){var r=this.message;return"string"===typeof t?(t=S(t,this.messages),t&&(r=this.messages[t])):n=t,O(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function E(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function P(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():m}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var o=[t,e];e=o[0],t=o[1]}"string"!==typeof e&&(e=P()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||m);var i=new k({locale:e,fallbackLocale:n,messages:t,watcher:r}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return i.t(e,t)};else{var n=!1;a=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,E(r,i))),i.t(e,t)}}return a(e,t)};return{i18n:i,f:function(e,t,n){return i.f(e,t,n)},t:function(e,t){return a(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return i.add(e,t,n)},watch:function(e){return i.watchLocale(e)},getLocale:function(){return i.getLocale()},setLocale:function(e){return i.setLocale(e)}}}t.I18n=k;var T,j=function(e){return"string"===typeof e};function I(e,t){return T||(T=new f),R(e,(function(e,n){var r=e[n];return j(r)?!!D(r,t)||void 0:I(r,t)}))}function L(e,t,n){return T||(T=new f),R(e,(function(e,r){var o=e[r];j(o)?D(o,n)&&(e[r]=N(o,t,n)):L(o,t,n)})),e}function M(e,t){var n=t.locale,r=t.locales,o=t.delimiters;if(!D(e,o))return e;T||(T=new f);var i=[];Object.keys(r).forEach((function(e){e!==n&&i.push({locale:e,values:r[e]})})),i.unshift({locale:n,values:r[n]});try{return JSON.stringify(U(JSON.parse(e),i,o),null,2)}catch(a){}return e}function D(e,t){return e.indexOf(t[0])>-1}function N(e,t,n){return T.interpolate(e,t,n).join("")}function F(e,t,n,r){var o=e[t];if(j(o)){if(D(o,r)&&(e[t]=N(o,n[0].values,r),n.length>1)){var i=e[t+"Locales"]={};n.forEach((function(e){i[e.locale]=N(o,e.values,r)}))}}else U(o,n,r)}function U(e,t,n){return R(e,(function(e,r){F(e,r,t,n)})),e}function R(e,t){if(Array.isArray(e)){for(var n=0;n-1}))):t}}function H(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}t.isString=j}).call(this,n(1)["default"],n(2))},function(e,t,n){"use strict";n.r(t),function(e){ /*! * Vue.js v2.6.11 * (c) 2014-2024 Evan You * Released under the MIT License. */ var n=Object.freeze({});function r(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function i(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function l(e){return u.call(e).slice(8,-1)}function f(e){return"[object Object]"===u.call(e)}function p(e){return"[object RegExp]"===u.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function y(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var w=Object.prototype.hasOwnProperty;function O(e,t){return w.call(e,t)}function x(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var A=/-(\w)/g,$=x((function(e){return e.replace(A,(function(e,t){return t?t.toUpperCase():""}))})),S=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,E=x((function(e){return e.replace(k,"-$1").toLowerCase()}));function P(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function C(e,t){return e.bind(t)}var T=Function.prototype.bind?C:P;function j(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function I(e,t){for(var n in t)e[n]=t[n];return e}function L(e){for(var t={},n=0;n0),re=(ee&&ee.indexOf("android"),ee&&/iphone|ipad|ipod|ios/.test(ee)||"ios"===Z),oe=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/),{}.watch);if(Q)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){}}),window.addEventListener("test-passive",null,ie)}catch(Ro){}var ae=function(){return void 0===W&&(W=!Q&&!X&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),W},se=Q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"===typeof e&&/native code/.test(e.toString())}var ue,le="undefined"!==typeof Symbol&&ce(Symbol)&&"undefined"!==typeof Reflect&&ce(Reflect.ownKeys);ue="undefined"!==typeof Set&&ce(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 fe=M,pe=M,de=M,he=M,ve="undefined"!==typeof console,ye=/(?:^|[-_])(\w)/g,ge=function(e){return e.replace(ye,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};fe=function(e,t){var n=t?de(t):"";B.warnHandler?B.warnHandler.call(null,e,t,n):ve&&!B.silent&&console.error("[Vue warn]: "+e+n)},pe=function(e,t){ve&&!B.silent&&console.warn("[Vue tip]: "+e+(t?de(t):""))},he=function(e,t){if(e.$root===e)return e.$options&&e.$options.__file?""+e.$options.__file:"";var n="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,r=n.name||n._componentTag,o=n.__file;if(!r&&o){var i=o.match(/([^/\\]+)\.vue$/);r=i&&i[1]}return(r?"<"+ge(r)+">":"")+(o&&!1!==t?" at "+o:"")};var me=function(e,t){var n="";while(t)t%2===1&&(n+=e),t>1&&(e+=e),t>>=1;return n};de=function(e){if(e._isVue&&e.$parent){var t=[],n=0;while(e&&"PageBody"!==e.$options.name){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}!e.$options.isReserved&&t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,t){return""+(0===t?"---\x3e ":me(" ",5+2*t))+(Array.isArray(e)?he(e[0])+"... ("+e[1]+" recursive calls)":he(e))})).join("\n")}return"\n\n(found in "+he(e)+")"};var _e=0,be=function(){this.id=_e++,this.subs=[]};function we(e){be.SharedObject.targetStack.push(e),be.SharedObject.target=e,be.target=e}function Oe(){be.SharedObject.targetStack.pop(),be.SharedObject.target=be.SharedObject.targetStack[be.SharedObject.targetStack.length-1],be.target=be.SharedObject.target}be.prototype.addSub=function(e){this.subs.push(e)},be.prototype.removeSub=function(e){b(this.subs,e)},be.prototype.depend=function(){be.SharedObject.target&&be.SharedObject.target.addDep(this)},be.prototype.notify=function(){var e=this.subs.slice();B.async||e.sort((function(e,t){return e.id-t.id}));for(var t=0,n=e.length;t-1)if(i&&!O(o,"default"))a=!1;else if(""===a||a===E(e)){var c=lt(String,o.type);(c<0||s0&&(a=Qt(a,(t||"")+"_"+n),Yt(a[0])&&Yt(u)&&(l[c]=Se(u.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?Yt(u)?l[c]=Se(u.text+a):""!==a&&l.push(Se(a)):Yt(a)&&Yt(u)?l[c]=Se(u.text+a.text):(i(e._isVList)&&o(a.tag)&&r(a.key)&&o(t)&&(a.key="__vlist"+t+"_"+n+"__"),l.push(a)));return l}function Xt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Zt(e){var t=en(e.$options.inject,e);t&&(Ie(!1),Object.keys(t).forEach((function(n){Fe(e,n,t[n],(function(){fe('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+n+'"',e)}))})),Ie(!0))}function en(e,t){if(e){for(var n=Object.create(null),r=le?Reflect.ownKeys(e):Object.keys(e),o=0;o0,a=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!i&&!r.$hasNormal)return r;for(var c in o={},e)e[c]&&"$"!==c[0]&&(o[c]=on(t,c,e[c]))}else o={};for(var u in t)u in o||(o[u]=an(t,u));return e&&Object.isExtensible(e)&&(e._normalized=o),J(o,"$stable",a),J(o,"$key",s),J(o,"$hasNormal",i),o}function on(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Wt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function an(e,t){return function(){return e[t]}}function sn(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,i=e.length;r.",e),a=new xe(B.parsePlatformTagName(t),n,r,void 0,void 0,e)):a=n&&n.pre||!o(u=nt(e.$options,"components",t))?new xe(t,n,r,void 0,void 0,e):En(u,n,e,r,t)):a=En(t,n,e,r);return Array.isArray(a)?a:o(a)?(o(c)&&Nn(a,c),o(n)&&Fn(n),a):$e()}function Nn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),o(e.children))for(var a=0,s=e.children.length;a1?j(r):r;for(var o=j(arguments,1),i='event handler for "'+e+'"',a=0,s=r.length;adocument.createEvent("Event").timeStamp&&(_r=function(){return br.now()})}function wr(){var e,t;for(_r(),yr=!0,fr.sort((function(e,t){return e.id-t.id})),gr=0;grlr)){fe("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var n=pr.slice(),r=fr.slice();mr(),Ar(n),Or(r),se&&B.devtools&&se.emit("flush")}function Or(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&ur(r,"updated")}}function xr(e){e._inactive=!1,pr.push(e)}function Ar(e){for(var t=0;tgr&&fr[n].id>e.id)n--;fr.splice(n+1,0,e)}else fr.push(e);if(!vr){if(vr=!0,!B.async)return void wr();Et(wr)}}}var Sr=0,kr=function(e,t,n,r,o){this.vm=e,o&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Sr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ue,this.newDepIds=new ue,this.expression=t.toString(),"function"===typeof t?this.getter=t:(this.getter=q(t),this.getter||(this.getter=M,fe('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()};kr.prototype.get=function(){var e;we(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Ro){if(!this.user)throw Ro;vt(Ro,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Ut(e),Oe(),this.cleanupDeps()}return e},kr.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))},kr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},kr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():$r(this)},kr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Ro){vt(Ro,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},kr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},kr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},kr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var Er={enumerable:!0,configurable:!0,get:M,set:M};function Pr(e,t,n){Er.get=function(){return this[t][n]},Er.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Er)}function Cr(e){e._watchers=[];var t=e.$options;t.props&&Tr(e,t.props),t.methods&&Ur(e,t.methods),t.data?jr(e):Ne(e._data={},!0),t.computed&&Mr(e,t.computed),t.watch&&t.watch!==oe&&Rr(e,t.watch)}function Tr(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;i||Ie(!1);var a=function(a){o.push(a);var s=rt(a,t,n,e),c=E(a);(_(c)||B.isReservedAttr(c))&&fe('"'+c+'" is a reserved attribute and cannot be used as component prop.',e),Fe(r,a,s,(function(){if(!i&&!tr){if("mp-baidu"===e.mpHost||"mp-kuaishou"===e.mpHost||"mp-xhs"===e.mpHost)return;if("value"===a&&Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field"))return;if(e._getFormData)return;var t=e.$parent;while(t){if(t.__next_tick_pending)return;t=t.$parent}fe("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||Pr(e,"_props",a)};for(var s in t)a(s);Ie(!0)}function jr(e){var t=e.$options.data;t=e._data="function"===typeof t?Ir(t,e):t||{},f(t)||(t={},fe("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));var n=Object.keys(t),r=e.$options.props,o=e.$options.methods,i=n.length;while(i--){var a=n[i];o&&O(o,a)&&fe('Method "'+a+'" has already been defined as a data property.',e),r&&O(r,a)?fe('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',e):G(a)||Pr(e,"_data",a)}Ne(t,!0)}function Ir(e,t){we();try{return e.call(t,t)}catch(Ro){return vt(Ro,t,"data()"),{}}finally{Oe()}}var Lr={lazy:!0};function Mr(e,t){var n=e._computedWatchers=Object.create(null),r=ae();for(var o in t){var i=t[o],a="function"===typeof i?i:i.get;null==a&&fe('Getter is missing for computed property "'+o+'".',e),r||(n[o]=new kr(e,a||M,M,Lr)),o in e?o in e.$data?fe('The computed property "'+o+'" is already defined in data.',e):e.$options.props&&o in e.$options.props&&fe('The computed property "'+o+'" is already defined as a prop.',e):Dr(e,o,i)}}function Dr(e,t,n){var r=!ae();"function"===typeof n?(Er.get=r?Nr(t):Fr(n),Er.set=M):(Er.get=n.get?r&&!1!==n.cache?Nr(t):Fr(n.get):M,Er.set=n.set||M),Er.set===M&&(Er.set=function(){fe('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,Er)}function Nr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),be.SharedObject.target&&t.depend(),t.value}}function Fr(e){return function(){return e.call(this,this)}}function Ur(e,t){var n=e.$options.props;for(var r in t)"function"!==typeof t[r]&&fe('Method "'+r+'" has type "'+typeof t[r]+'" in the component definition. Did you reference the function correctly?',e),n&&O(n,r)&&fe('Method "'+r+'" has already been defined as a prop.',e),r in e&&G(r)&&fe('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),e[r]="function"!==typeof t[r]?M:T(t[r],e)}function Rr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o-1)return this;var n=j(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Yr(e){e.mixin=function(e){return this.options=tt(this.options,e),this}}function Qr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name;i&&Ye(i);var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=tt(n.options,e),a["super"]=n,a.options.props&&Xr(a),a.options.computed&&Zr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,V.forEach((function(e){a[e]=n[e]})),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=I({},a.options),o[r]=a,a}}function Xr(e){var t=e.options.props;for(var n in t)Pr(e.prototype,"_props",n)}function Zr(e){var t=e.options.computed;for(var n in t)Dr(e.prototype,n,t[n])}function eo(e){V.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&Ye(e),"component"===t&&f(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function to(e){return e&&(e.Ctor.options.name||e.tag)}function no(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function ro(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=to(a.componentOptions);s&&!t(s)&&oo(n,i,r,o)}}}function oo(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,b(n,t)}zr(qr),Hr(qr),Zn(qr),or(qr),Hn(qr);var io=[String,RegExp,Array],ao={name:"keep-alive",abstract:!0,props:{include:io,exclude:io,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)oo(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){ro(e,(function(e){return no(t,e)}))})),this.$watch("exclude",(function(t){ro(e,(function(e){return!no(t,e)}))}))},render:function(){var e=this.$slots.default,t=Kn(e),n=t&&t.componentOptions;if(n){var r=to(n),o=this,i=o.include,a=o.exclude;if(i&&(!r||!no(i,r))||a&&r&&no(a,r))return t;var s=this,c=s.cache,u=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,b(u,l),u.push(l)):(c[l]=t,u.push(l),this.max&&u.length>parseInt(this.max)&&oo(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},so={KeepAlive:ao};function co(e){var t={get:function(){return B},set:function(){fe("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:I,mergeOptions:tt,defineReactive:Fe},e.set=Ue,e.delete=Re,e.nextTick=Et,e.observable=function(e){return Ne(e),e},e.options=Object.create(null),V.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,I(e.options.components,so),Wr(e),Yr(e),Qr(e),eo(e)}co(qr),Object.defineProperty(qr.prototype,"$isServer",{get:ae}),Object.defineProperty(qr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(qr,"FunctionalRenderContext",{value:On}),qr.version="2.6.11";var uo="[object Array]",lo="[object Object]",fo="[object Null]",po="[object Undefined]";function ho(e,t){var n={};return vo(e,t),go(e,t,"",n),n}function vo(e,t){if(e!==t){var n=_o(e),r=_o(t);if(n==lo&&r==lo){if(Object.keys(e).length>=Object.keys(t).length)for(var o in t){var i=e[o];void 0===i?e[o]=null:vo(i,t[o])}}else n==uo&&r==uo&&e.length>=t.length&&t.forEach((function(t,n){vo(e[n],t)}))}}function yo(e,t){return e!==fo&&e!==po||t!==fo&&t!==po}function go(e,t,n,r){if(e!==t){var o=_o(e),i=_o(t);if(o==lo)if(i!=lo||Object.keys(e).length1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Lo(e){return Array.isArray(e)?L(e):"string"===typeof e?Io(e):e}var Mo=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Do(e,t){var n=t.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?e[r]:Do(e[r],n.slice(1).join("."))}function No(e){e.config.errorHandler=function(t,n,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',n),console.error(t);var o="function"===typeof getApp&&getApp();o&&o.onError&&o.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,e,{__args__:j(arguments,1)})}catch(r){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return Oo(this,e)},Mo.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=Xt,e.prototype.__init_injections=Zt,e.prototype.__call_hook=function(e,t){var n=this;we();var r,o=n.$options[e],i=e+" hook";if(o)for(var a=0,s=o.length;a=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){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 r="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.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 n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=s(e[n],t)})),r}function c(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}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 p(e,t){return function(){return e(t)}}var d=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},h={namespaced:{configurable:!0}};h.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(e,t){this._children[e]=t},d.prototype.removeChild=function(e){delete this._children[e]},d.prototype.getChild=function(e){return this._children[e]},d.prototype.hasChild=function(e){return e in this._children},d.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)},d.prototype.forEachChild=function(e){c(this._children,e)},d.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},d.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},d.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(d.prototype,h);var v=function(e){this.register([],e,!1)};function y(e,t,n){if(w(e,n),t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");y(e.concat(r),t.getChild(r),n.modules[r])}}v.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},v.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},v.prototype.update=function(e){y([],this.root,e)},v.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0),w(e,t);var o=new d(t,n);if(0===e.length)this.root=o;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],o)}t.modules&&c(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},v.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r?r.runtime&&t.removeChild(n):console.warn("[vuex] trying to unregister module '"+n+"', which is not registered")},v.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var g,m={assert:function(e){return"function"===typeof e},expected:"function"},_={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:_};function w(e,t){Object.keys(b).forEach((function(n){if(t[n]){var r=b[n];c(t[n],(function(t,o){f(r.assert(t),O(e,n,o,t,r.expected))}))}}))}function O(e,t,n,r,o){var i=t+" should be "+o+' but "'+t+"."+n+'"';return e.length>0&&(i+=' in module "'+e.join(".")+'"'),i+=" is "+JSON.stringify(r)+".",i}var x=function e(t){var n=this;void 0===t&&(t={}),!g&&"undefined"!==typeof window&&window.Vue&&N(window.Vue),f(g,"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 r=t.plugins;void 0===r&&(r=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new v(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,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,n){return u.call(a,e,t,n)},this.strict=o;var l=this._modules.root.state;E(this,l,[],this._modules.root),k(this,l),r.forEach((function(e){return e(n)}));var p=void 0!==t.devtools?t.devtools:g.config.devtools;p&&i(this)},A={state:{configurable:!0}};function $(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function S(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;E(e,n,[],e._modules.root,!0),k(e,n,t)}function k(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,i={};c(o,(function(t,n){i[n]=p(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=g.config.silent;g.config.silent=!0,e._vm=new g({data:{$$state:t},computed:i}),g.config.silent=a,e.strict&&L(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),g.nextTick((function(){return r.$destroy()})))}function E(e,t,n,r,o){var i=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a]&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[a]=r),!i&&!o){var s=M(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){c in s&&console.warn('[vuex] state field "'+c+'" was overridden by a module with the same name at "'+n.join(".")+'"'),g.set(s,c,r.state)}))}var u=r.context=P(e,a,n);r.forEachMutation((function(t,n){var r=a+n;T(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,o=t.handler||t;j(e,r,o,u)})),r.forEachGetter((function(t,n){var r=a+n;I(e,r,t,u)})),r.forEachChild((function(r,i){E(e,t,n.concat(i),r,o)}))}function P(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var i=D(n,r,o),a=i.payload,s=i.options,c=i.type;if(s&&s.root||(c=t+c,e._actions[c]))return e.dispatch(c,a);console.error("[vuex] unknown local action type: "+i.type+", global type: "+c)},commit:r?e.commit:function(n,r,o){var i=D(n,r,o),a=i.payload,s=i.options,c=i.type;s&&s.root||(c=t+c,e._mutations[c])?e.commit(c,a,s):console.error("[vuex] unknown local mutation type: "+i.type+", global type: "+c)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return C(e,t)}},state:{get:function(){return M(e.state,n)}}}),o}function C(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,r)===t){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function T(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,r.state,t)}))}function j(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return l(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function I(e,t,n,r){e._wrappedGetters[t]?console.error("[vuex] duplicate getter key: "+t):e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}function L(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 M(e,t){return t.reduce((function(e,t){return e[t]}),e)}function D(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),f("string"===typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}function N(e){g&&e===g?console.error("[vuex] already installed. Vue.use(Vuex) should be called only once."):(g=e,n(g))}A.state.get=function(){return this._vm._data.$$state},A.state.set=function(e){f(!1,"use store.replaceState() to explicit replace store state.")},x.prototype.commit=function(e,t,n){var r=this,o=D(e,t,n),i=o.type,a=o.payload,s=o.options,c={type:i,payload:a},u=this._mutations[i];u?(this._withCommit((function(){u.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(c,r.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+i+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+i)},x.prototype.dispatch=function(e,t){var n=this,r=D(e,t),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){console.warn("[vuex] error in before action subscribers: "),console.error(u)}var c=s.length>1?Promise.all(s.map((function(e){return e(i)}))):s[0](i);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){console.warn("[vuex] error in after action subscribers: "),console.error(u)}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){console.warn("[vuex] error in error action subscribers: "),console.error(u)}t(e)}))}))}console.error("[vuex] unknown action type: "+o)},x.prototype.subscribe=function(e,t){return $(e,this._subscribers,t)},x.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return $(n,this._actionSubscribers,t)},x.prototype.watch=function(e,t,n){var r=this;return f("function"===typeof e,"store.watch only accepts a function."),this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},x.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},x.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"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),E(this,this.state,e,this._modules.get(e),n.preserveState),k(this,this.state)},x.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 n=M(t.state,e.slice(0,-1));g.delete(n,e[e.length-1])})),S(this)},x.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)},x.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),S(this,!0)},x.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(x.prototype,A);var F=G((function(e,t){var n={};return z(t)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=J(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0})),n})),U=G((function(e,t){var n={};return z(t)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=J(this.$store,"mapMutations",e);if(!i)return;r=i.context.commit}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),R=G((function(e,t){var n={};return z(t)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||J(this.$store,"mapGetters",e)){if(o in this.$store.getters)return this.$store.getters[o];console.error("[vuex] unknown getter: "+o)}},n[r].vuex=!0})),n})),V=G((function(e,t){var n={};return z(t)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),B(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=J(this.$store,"mapActions",e);if(!i)return;r=i.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),H=function(e){return{mapState:F.bind(null,e),mapGetters:R.bind(null,e),mapMutations:U.bind(null,e),mapActions:V.bind(null,e)}};function B(e){return z(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 z(e){return Array.isArray(e)||u(e)}function G(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function J(e,t,n){var r=e._modulesNamespaceMap[n];return r||console.error("[vuex] module namespace not found in "+t+"(): "+n),r}function K(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var i=e.actionFilter;void 0===i&&(i=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,i){var a=s(i);if(n(e,f,a)){var c=Y(),u=o(e),p="mutation "+e.type+c;q(l,p,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),W(l)}f=a})),u&&e.subscribeAction((function(e,n){if(i(e,n)){var r=Y(),o=a(e),s="action "+e.type+r;q(l,s,t),l.log("%c action","color: #03A9F4; font-weight: bold",o),W(l)}})))}}function q(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(o){e.log(t)}}function W(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 Q(e,t){return new Array(t+1).join(e)}function X(e,t){return Q("0",t-e.toString().length)+e}var Z={Store:x,install:N,version:"3.6.2",mapState:F,mapMutations:U,mapGetters:R,mapActions:V,createNamespacedHelpers:H,createLogger:K};e.exports=Z}).call(this,n(2))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(32)),i={app:o.default};t.default=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(33),i=r(n(34)),a={token:i.default.get(o.LOGIN_STATUS)||!1,ISPAY:i.default.get(o.ISPAY)||""},s={LOGIN:function(e,t){e.token=t.token},UPDATE_LOGIN:function(e,t){e.token=t,i.default.set(o.LOGIN_STATUS,t)},SETALL_PAT:function(e,t){e.ISPAY=t,i.default.set(o.ISPAY,t)}},c={},u={state:a,mutations:s,actions:c};t.default=u},function(e,t){e.exports={LOGIN_STATUS:"LOGIN_STATUS_TOKEN",ISPAY:"",UID:"UID",USER_INFO:"USER_INFO",EXPIRES_TIME:"EXPIRES_TIME",WX_AUTH:"WX_AUTH",STATE_KEY:"wx_authorize_state",LOGINTYPE:"loginType",BACK_URL:"login_back_url",STATE_R_KEY:"roution_authorize_state",LOGO_URL:"LOGO_URL",SUBSCRIBE_MESSAGE:"SUBSCRIBE_MESSAGE",TIPS_KEY:"TIPS_KEY",SPREAD:"spread",CACHE_LONGITUDE:"LONGITUDE",CACHE_LATITUDE:"LATITUDE",USER_ADDRESS:"USER_ADDRESS",isFiveClick:"isFiveClick"}},function(e,t,n){"use strict";(function(e){var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(12)),i=r(n(14)),a=r(n(15)),s=n(35),c=function(){function t(n){(0,i.default)(this,t),this.cacheSetHandler=e.setStorageSync,this.cacheGetHandler=e.getStorageSync,this.cacheClearHandler=e.removeStorageSync,this.cacheExpire="UNI-APP-CRMEB:TAG",this.clearOverdue()}return(0,a.default)(t,[{key:"time",value:function(){return Math.round(new Date/1e3)}},{key:"strTotime",value:function(e){var t=e.substring(0,19);return t=t.replace(/-/g,"/"),Math.round(new Date(t).getTime()/1e3)}},{key:"setExpireCaheTag",value:function(e,t){var n=this;if(t=void 0!==t?t:s.EXPIRE,"number"===typeof t){var r=this.cacheGetHandler(this.cacheExpire),i=[],a=[];"object"===(0,o.default)(r)&&r.length&&(i=r.map((function(r){return a.push(r.key),r.key===e&&(r.expire=0===t?0:n.time()+t),r}))),a.length&&-1!==a.indexOf(e)||i.push({key:e,expire:0===t?0:this.time()+t}),this.cacheSetHandler(this.cacheExpire,i)}}},{key:"getExpireCahe",value:function(e,t){try{var n=this.cacheGetHandler(this.cacheExpire),r=0,i=!1;if("object"===(0,o.default)(n)&&n.length){if(n.map((function(t,n){t.key===e&&(r=t.expire,i=n)})),r){var a=parseInt(r);return!(r&&rn||0===e.expire?i.push(e):r.push(e.key))})),i.length!==t.length&&this.cacheSetHandler(this.cacheExpire,i),r.forEach((function(t){e.cacheClearHandler(t)}))}}]),t}(),u=new c;t.default=u}).call(this,n(1)["default"])},function(e,t){e.exports={HTTP_REQUEST_URL:"https://tpoint.agrimedia.cn",HEADER:{},TOKENNAME:"Authori-zation",EXPIRE:0,LIMIT:10,TIMEOUT:1e4}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={token:function(e){return e.app.token},isLogin:function(e){return!!e.app.token},backgroundColor:function(e){return e.app.backgroundColor},userInfo:function(e){return e.app.userInfo||{}},uid:function(e){return e.app.uid},homeActive:function(e){return e.app.homeActive},home:function(e){return e.app.home},cartNum:function(e){return e.indexData.cartNum},activityTab:function(e){return e.app.activityTab},address:function(e){return e.app.addressInfo}};t.default=r},function(e,t,n){"use strict";(function(e){var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(38)),i=r(n(40)),a=r(n(10)),s=r(n(4)),c=r(n(12));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t255?(n+=2,n>r*t&&(n++,i.push(e.slice(o,a)),o=a,r++)):(n++,n>r*t&&(i.push(e.slice(o,a)),o=a,r++));return i.push(e.slice(o,e.length)),[n,i,r]},PosterCanvas:function(t,n,r,o,i){var a=this;e.showLoading({title:i18n.t("海报生成中"),mask:!0});var c=e.createCanvasContext("myCanvas");c.clearRect(0,0,0,0),c.fillStyle="#fff",c.fillRect(0,0,750,1250),e.getImageInfo({src:t[0],success:function(u){var l=u.width,f=u.height;c.drawImage(t[1],0,0,l,l),c.save();var p=110,d=2*p,h=480,v=790;c.arc(h+p,v+p,p,0,2*Math.PI),c.drawImage(t[2],h,v,d,d),c.restore();var y=20,g=a.textByteLength(n,y),m=(0,s.default)(g,3),_=(m[0],m[1]),b=m[2];if(b>2){b=2;var w=_.slice(0,2);w[w.length-1]+="……",_=w}c.setTextAlign("left"),c.setFontSize(36),c.setFillStyle("#000");for(var O=36,x=0;x<_.length;x++)x?c.fillText(_[x],50,1e3+O*x+18,1100):c.fillText(_[x],50,1e3+O*x,1100);if(c.setTextAlign("left"),c.setFontSize(72),c.setFillStyle("#DA4F2A"),c.fillText(i18n.t("¥")+r,40,820+O),c.setTextAlign("left"),c.setFontSize(36),c.setFillStyle("#999"),o){c.fillText(i18n.t("¥")+o,50,876+O);var A=function(e,t,n,r,o,i,a,s){var c=e.measureText(t).width;switch(e.textAlign){case"center":n-=c/2;break;case"right":n-=c;break}r+=o+s,e.beginPath(),e.strokeStyle=i,e.lineWidth=a,e.moveTo(n,r),e.lineTo(n+c,r),e.stroke()};A(c,i18n.t("¥")+o,55,865,36,"#999",2,0)}c.setTextAlign("left"),c.setFontSize(28),c.setFillStyle("#999"),c.fillText(i18n.t("长按或扫描查看"),490,1030+O),c.draw(!0,(function(){e.canvasToTempFilePath({canvasId:"myCanvas",fileType:"png",destWidth:l,destHeight:f,success:function(t){e.hideLoading(),i&&i(t.tempFilePath)}})}))},fail:function(t){e.hideLoading(),a.Tips({title:i18n.t("无法获取图片信息")})}})},bargainPosterCanvas:function(t,n,r,o,i,a,c,u){var l=this,f=e.createCanvasContext("myCanvas");f.clearRect(0,0,0,0),f.fillStyle="#fff",f.fillRect(0,0,2*a,2*c),e.getImageInfo({src:t[0],success:function(p){p.width,p.height;f.drawImage(t[0],0,0,a,c);var d=.65,h=.166,v=.1857,y=.18,g=.385,m=.77,_=.1571,b=.2916,w=.6857,O=.4316,x=.1036,A=.2306,$=.25;f.drawImage(t[1],a*_,c*b,a*w,c*O),f.drawImage(t[2],a*g,c*m,a*$,a*$),f.save();var S=32,k=l.textByteLength(n,S),E=(0,s.default)(k,3),P=(E[0],E[1]),C=E[2];if(C>2){C=2;var T=P.slice(0,2);T[T.length-1]+="…",P=T}f.setTextAlign("left"),f.setFillStyle("#000"),P.length<2?f.setFontSize(22):f.setFontSize(20);for(var j=8,I=0;I1&&void 0!==arguments[1]?arguments[1]:new Date,n=this;e&&e.includes("-")||n.Tips({title:"识别身份证有效期格式错误"});var r=e.split("-"),o=(0,s.default)(r,2),i=o[0],a=o[1],c=function(e){var t=parseInt(e.slice(0,4),10),n=parseInt(e.slice(4,6),10)-1,r=parseInt(e.slice(6,8),10);return new Date(t,n,r)},u=c(i),l=c(a);return t>l||ts?(r=s,i=s/a):(r=n.width,i=n.height),o&&o({w:r,h:i});var c=e.createCanvasContext("canvas");c.width=r,c.height=i,c.clearRect(0,0,r,i),c.drawImage(n.path,0,0,r,i),c.save(),setTimeout((function(t){c.draw(!0,(function(){e.canvasToTempFilePath({canvasId:"canvas",fileType:"JPEG",destWidth:r,destHeight:i,quality:.7,success:function(e){h(e.tempFilePath)}})}))}),200)}}})},fail:function(e){var t=e.errMsg;console.log(t,"111111111"),"chooseImage:fail cancel"==t&&(t="取消选择照片"),"chooseImage:fail:systempermission denied"==t&&(t="请检查相册和相机权限"),"chooseImage:fail privacy permission is not authorized"==t&&(t="获取照片隐私权限失败"),"chooseImage:fail privacy permission is not authorized in gap"==t&&(t="获取照片隐私权限失败"),i.Tips({title:t})}})},uploadImgs:function(t,n,r,o){var i=this;e.uploadFile({url:HTTP_REQUEST_URL+"/api/"+t,filePath:n,fileType:"image",name:"pics",formData:{filename:"pics"},header:(0,a.default)({"Content-Type":"multipart/form-data"},TOKENNAME,"Bearer "+store.state.app.token),success:function(t){if(e.hideLoading(),403==t.statusCode)i.Tips({title:t.data});else{var n=t.data?JSON.parse(t.data):{};200==n.status?r&&r(n):(o&&o(n),i.Tips({title:n.msg}))}},fail:function(t){e.hideLoading(),console.log(res),i.Tips({title:i18n.t("上传图片失败")})}})},compareVersion:function(e,t){e=e.split("."),t=t.split(".");var n=Math.max(e.length,t.length);while(e.lengthi)return 1;if(o=r?n:r,((this.Mul(e,o)-this.Mul(t,o))/o).toFixed(i)},Mul:function(e,t){e=parseFloat(e),t=parseFloat(t);var n=0,r=e.toString(),o=t.toString();try{n+=r.split(".")[1].length}catch(i){}try{n+=o.split(".")[1].length}catch(i){}return Number(r.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,n)}},$L:{getLocation:function(){var e=this;return(0,i.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.doGetLocation();case 1:case"end":return t.stop()}}),t)})))()},doGetLocation:function(){e.getLocation({success:function(t){e.removeStorageSync("CACHE_LONGITUDE"),e.removeStorageSync("CACHE_LATITUDE"),e.setStorageSync("CACHE_LONGITUDE",t.longitude),e.setStorageSync("CACHE_LATITUDE",t.latitude)},fail:function(t){t.errMsg.indexOf("auth deny")>=0?e.showToast({title:i18n.t("访问位置被拒绝")}):e.showToast({title:t.errMsg})}})},getSetting:function(){return new Promise((function(t,n){e.getSetting({success:function(e){void 0!==e.authSetting["scope.userLocation"]?e.authSetting["scope.userLocation"]?t(1):t(2):t(0)}})}))},openSetting:function(){var t=this;e.openSetting({success:function(e){e.authSetting&&e.authSetting["scope.userLocation"]&&t.doGetLocation()},fail:function(e){}})},checkPermission:function(){return(0,i.default)(o.default.mark((function t(){var n;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!permision.isIOS){t.next=6;break}return t.next=3,permision.requestIOS("location");case 3:t.t0=t.sent,t.next=9;break;case 6:return t.next=8,permision.requestAndroid("android.permission.ACCESS_FINE_LOCATION");case 8:t.t0=t.sent;case 9:return n=t.t0,null===n||1===n?n=1:2===n?e.showModal({content:i18n.t("系统定位已关闭"),confirmText:i18n.t("确定"),showCancel:!1,success:function(e){}}):n.code?e.showModal({content:n.message}):e.showModal({content:i18n.t("需要定位权限"),confirmText:i18n.t("确定"),success:function(e){e.confirm&&permision.gotoAppSetting()}}),t.abrupt("return",n);case 12:case"end":return t.stop()}}),t)})))()}},JumpPath:function(t){var n=t.split("@APPID=");n.length>1?e.navigateToMiniProgram({appId:n[n.length-1],path:n[0],envVersion:"release",success:function(e){console.log("打开成功",e)},fail:function(e){}}):(console.log(t,"----------"),-1!=t.indexOf("http")?e.navigateTo({url:"/pages/annex/web_view/index?url=".concat(encodeURIComponent(t))}):-1==["/pages/goods_cate/goods_cate","/pages/order_addcart/order_addcart","/pages/user/index","/pages/index/index"].indexOf(t)?e.navigateTo({url:t}):e.switchTab({url:t}))},openLocation:function(t){console.log(t),e.openLocation(l(l({},t),{},{success:function(){console.log("success")},fail:function(e){console.log(e)}}))},pxToRpx:function(t){var n=e.getSystemInfoSync().screenWidth,r=t/(n/750);return r},getLastMonths:function(e){var t,n=[];if(e){var r=e.split("-").map(Number),o=(0,s.default)(r,2),i=o[0],a=o[1];t=new Date(i,a-1)}else t=new Date;t.setDate(1);for(var c=0;c<4;c++){var u=t.getFullYear(),l=String(t.getMonth()).padStart(2,"0");n.push({name:"".concat(u,"-").concat(l)}),t.setMonth(t.getMonth()-1)}return n}};t.default=f}).call(this,n(1)["default"])},function(e,t,n){var r=n(39)();e.exports=r},function(e,t,n){var r=n(12)["default"];function o(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),a=new I(r||[]);return s(i,"_invoke",{value:P(e,n,a)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var v="suspendedStart",y="suspendedYield",g="executing",m="completed",_={};function b(){}function w(){}function O(){}var x={};p(x,u,(function(){return this}));var A=Object.getPrototypeOf,$=A&&A(A(L([])));$&&$!==i&&a.call($,u)&&(x=$);var S=O.prototype=b.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,s,c){var u=h(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;s(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function P(e,n,r){var o=v;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=C(s,r);if(c){if(c===_)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var u=h(e,n,r);if("normal"===u.type){if(o=r.done?m:y,u.arg===_)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function C(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,_;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,_):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}function T(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 j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),_}},n}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t){function n(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,c,"next",e)}function c(e){n(a,o,i,s,c,"throw",e)}s(void 0)}))}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,n){(function(e){var t=n(12);e.addInterceptor({returnValue:function(e){return!e||"object"!==t(e)&&"function"!==typeof e||"function"!==typeof e.then?e:new Promise((function(t,n){e.then((function(e){return e?e[0]?n(e[0]):t(e[1]):t(e)}))}))}})}).call(this,n(1)["default"])},,,,,,,function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i={clean:function(e){var t=e.replace(/\?+/g,"?"),n=t.indexOf("?");if(-1!==n){var r=t.substring(0,n+1),o=t.substring(n+1).replace(/\?/g,"&");t=r+o}return t},keepParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["merchant_id"],n=this.clean(e);try{var r=new URL(n),i=new URLSearchParams;return r.searchParams.forEach((function(e,n){t.includes(n)&&i.append(n,e)})),r.search=i.toString(),r.toString()}catch(f){var a=n.split("?"),s=(0,o.default)(a,2),c=s[0],u=s[1];if(!u)return c;var l=u.split("&").filter((function(e){var n=e.split("="),r=(0,o.default)(n,1),i=r[0];return t.includes(i)}));return l.length>0?"".concat(c,"?").concat(l.join("&")):c}}},a=i;t.default=a},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4));function i(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}}function a(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:void 0,n=window.location.search;if(n.includes("?")){var r=n.substring(1);r=r.replace(/\?/g,"&"),n="?"+r}var a=new URLSearchParams(n);if(!e){var s,c={},u=i(a.entries());try{for(u.s();!(s=u.n()).done;){var l=(0,o.default)(s.value,2),f=l[0],p=l[1];c[f]=decodeURIComponent(p)}}catch(d){u.e(d)}finally{u.f()}return c}return Array.isArray(e)?e.reduce((function(e,n){return e[n]=a.has(n)?decodeURIComponent(a.get(n)):t,e}),{}):"string"===typeof e&&a.has(e)?decodeURIComponent(a.get(e)):t},u=c;t.default=u},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.againPayAPI=p,t.bindPhoneAPI=f,t.cancelPay=a,t.cancelPaymentSoundAPI=i,t.computedOrder=m,t.createScanOrderAPI=u,t.doOrder=y,t.dogzhOrder=g,t.getMerchantAPI=s,t.getMerchantInfo=v,t.getMerchantInfoByCode=h,t.getOfflineOrderDetail=b,t.getgzhlineOrderDetail=w,t.gzhcomputedOrder=_,t.orderDetailAPI=d,t.sendSmsAPI=l,t.userInfoAPI=c;var o=r(n(51));function i(e){return o.default.get("MiniProgram/Order/cancelPaymentSound",e)}function a(e){return o.default.post("/api/gzh/cancelPay",e)}function s(e){return o.default.get("MiniProgram/Api/getMerchant",e)}function c(e){return o.default.get("MiniProgram/Api/userInfo",e)}function u(e){return o.default.get("MiniProgram/Api/submitOrder",e)}function l(e){return o.default.get("MiniProgram/Api/sendSms",e)}function f(e){return o.default.get("MiniProgram/Api/bindPhone",e)}function p(e){return o.default.get("client/mall/againPay",e)}function d(e){return o.default.get("MiniProgram/Api/orderDetail",e)}function h(e){return o.default.post("/api/gzh/getMerchantInfoByCode",e)}function v(e){return o.default.post("/api/gzh/getMerchantInfo",e)}function y(e){return o.default.post("/api/merchant/doOrder",e)}function g(e){return o.default.post("/api/gzh/doOrder",e)}function m(e){return o.default.post("/api/merchant/computedOrder",e)}function _(e){return o.default.post("/api/gzh/computedOrder",e)}function b(e){return o.default.post("/api/merchant/getOfflineOrderDetail",e)}function w(e){return o.default.post("/api/gzh/getOfflineOrderDetail",e)}},function(e,t,n){"use strict";(function(e){var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(35),i=r(n(29));r(n(48));function a(t,n,r,a){a.noAuth;var s=a.noVerify,c=void 0!==s&&s,u=(o.HTTP_REQUEST_URL,o.HEADER);return o.HEADER["form-type"]="gzh",u=o.HEADER,i.default.state.app.token&&(u[o.TOKENNAME]="Bearer "+i.default.state.app.token),new Promise((function(i,a){e.getStorageSync("locale")&&(u["Cb-lang"]=e.getStorageSync("locale")),e.request({url:t,method:n||"GET",header:u,data:r||{},timeout:o.TIMEOUT,success:function(t){c||200==t.data.status?i(t.data,t):-1!==[110002,110003,110004].indexOf(t.data.status)?a(t.data):400==t.data.status&&"商户未绑定码牌"!==t.data.msg?(e.showToast({title:t.data.msg,icon:"error"}),a(t.data.msg||"系统错误")):100103==t.data.status?e.showModal({title:"提示",content:t.data.msg,showCancel:!1,confirmText:我知道了}):a(t.data.msg||"系统错误")},fail:function(e){console.log(e);a("请求失败")}})}))}var s={};["options","get","post","put","head","delete","trace","connect"].forEach((function(e){s[e]=function(t,n,r){return a(t,e,n,r||{})}}));var c=s;t.default=c}).call(this,n(1)["default"])},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.OrderTabs=ee,t.RechargeOrderDetail=X,t.RechargeorderCancel=Z,t.adminExpress=A,t.aliPay=F,t.cancelRefundOrder=J,t.cancelShopOrder=W,t.cartDel=l,t.changeCartNum=u,t.checkShipping=E,t.express=x,t.getCartCounts=a,t.getCartList=s,t.getCashierOrder=K,t.getCouponsOrderPrice=P,t.getInvoiceLink=q,t.getNewOrderList=z,t.getOrderDetail=_,t.getOrderList=f,t.getOrderShopDetail=Y,t.getRefundOrderDetail=b,t.getResetCart=c,t.getonlineOrderDetail=Q,t.offlineCheckPrice=I,t.offlineCreate=L,t.ordeRefundReason=$,t.orderAgain=w,t.orderCancel=g,t.orderComment=d,t.orderConfirm=k,t.orderCoupon=j,t.orderCreate=C,t.orderData=y,t.orderDel=m,t.orderInvoiceDetail=N,t.orderInvoiceList=D,t.orderOfflinePayType=M,t.orderPay=h,t.orderProduct=p,t.orderRefundVerify=S,t.orderTake=O,t.postOrderComputed=T,t.postRefundGoods=H,t.refundExpress=U,t.refundGoodsList=V,t.refundOrderDel=v,t.refundOrderDetail=G,t.returnGoodsSubmit=B,t.vcartList=R;var o=r(n(12)),i=r(n(51));function a(e){return i.default.get("cart/count",{numType:void 0===e?0:e})}function s(e){return i.default.get("cart/list",e)}function c(e){return i.default.post("v2/reset_cart",e)}function u(e,t){return i.default.post("cart/num",{id:e,number:t})}function l(e){return"object"===(0,o.default)(e)&&(e=e.join(",")),i.default.post("cart/del",{ids:e})}function f(e){return i.default.get("order/list",e)}function p(e){return i.default.post("order/product",{unique:e})}function d(e){return i.default.post("order/comment",e)}function h(e){return i.default.post("/api/order/pay",e)}function v(e){return i.default.get("order/refund/del/"+e,{})}function y(){return i.default.get("order/data")}function g(e){return i.default.post("mall/api/cancel_order",{order_id:e})}function m(e){return i.default.post("order/del",{uni:e})}function _(e,t){return i.default.get("order/detail/"+e+"".concat(t?"/".concat(t):""))}function b(e,t){return i.default.get("order/refund_detail/"+e+"".concat(t?"/".concat(t):""))}function w(e){return i.default.post("order/again",{uni:e})}function O(e){return i.default.post("order/take",{uni:e})}function x(e,t){return i.default.get("order/express/"+e+"".concat(t?"/refund":""))}function A(e,t){return i.default.get("admin/order/express/"+e+"".concat(t?"/refund":""))}function $(){return i.default.get("order/refund/reason")}function S(e){return i.default.post("order/refund/verify",e)}function k(e,t,n,r){return i.default.post("order/confirm",{cartId:e,new:t,addressId:n,shipping_type:r})}function E(e,t){return i.default.post("order/check_shipping",{cartId:e,new:t})}function P(e,t){return i.default.get("coupons/order/"+e,t)}function C(e,t){return i.default.post("order/create/"+e,t)}function T(e,t){return i.default.post("order/computed/"+e,t)}function j(e){return i.default.post("v2/order/product_coupon/"+e)}function I(e){return i.default.post("order/offline/check/price",e)}function L(e){return i.default.post("order/offline/create",e)}function M(){return i.default.get("order/offline/pay/type")}function D(e){return i.default.get("v2/order/invoice_list",e)}function N(e){return i.default.get("v2/order/invoice_detail/".concat(e))}function F(e,t){return i.default.get("ali_pay",{key:e,quitUrl:t},{noAuth:!0})}function U(e){return i.default.post("order/refund/express",e)}function R(){return i.default.get("v2/cart_list")}function V(e){return i.default.get("order/refund/cart_info/".concat(e))}function H(e){return i.default.post("order/refund/cart_info",e)}function B(e,t){return i.default.post("order/refund/apply/".concat(e),t)}function z(e){return i.default.get("order/refund/list",e)}function G(e){return i.default.get("order/refund/detail/"+e)}function J(e){return i.default.post("order/refund/cancel/"+e)}function K(e,t){return i.default.get("/api/order/cashier/".concat(e,"/").concat(t))}function q(e){return i.default.get("v2/order/down_invoice/".concat(e))}function W(e){return i.default.post("merchant_order/order/cancelOrder",e)}function Y(e){return i.default.get("merchant/getOrderDetail?id=".concat(e))}function Q(e){return i.default.get("order/detail/".concat(e))}function X(e){return i.default.get("virtual/orderDetail?id=".concat(e))}function Z(e){return i.default.post("virtual/cancelOrder",e)}function ee(e){return i.default.get("order_tab_config",e)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.basicConfig=i;var o=r(n(51));function i(e){return o.default.get("/api/basic_config",{},{noAuth:!0})}}]]);