(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{0:function(e,t){},"011a":function(e,t){function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=n=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"01cd":function(module,exports,__webpack_require__){"use strict";(function(uni){function getUrlParameter(e,t){var n="[\\?&#]"+t+"=([^&#]*)",r=new RegExp(n),o=r.exec(e);return o?window.decodeURIComponent(o[1]):""}function showToast(e){uni.showToast({title:e,icon:"none",mask:!0,duration:1e3})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,exports.getUrlParameter=getUrlParameter,exports.showToast=showToast;var _default={transDate:function(e,t){if(e){var n=new Date;if(n.setTime(e),Date.parse(e)&&(n=new Date(e)),n instanceof Date)return this.formatDate(t||"yyyy-MM-dd",n)}return""},transBaseDateTime:function(e,t){if(e){var n=new Date;if(n.setTime(e),Date.parse(e)&&(n=new Date(e)),n instanceof Date)return this.formatDate(t||"yyyy年MM月dd日 hh:mm",n)}return""},transBaseToDateTime:function(e,t){if(e){var n=new Date;if(n.setTime(e),Date.parse(e)&&(n=new Date(e)),n instanceof Date)return this.formatDate(t||"MM月dd日 hh:mm",n)}return""},transServDate:function(e){return this.transDate(e,"yyyy-MM-dd hh:mm:ss")},transServDay:function(e){return this.transDate(e,"yyyy-MM-dd")},isArrayFn:function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},transDcMap:function(e){var t={};return e.forEach((function(e){t[e.value]=e.label})),t},castEval:function castEval(val){return val?eval("("+val+")"):""},castString:function(e){return JSON.stringify(e)},formatMoney:function(e){if(!e)return"";if(e.length<=3)return e;if(!/^(\+|-)?(\d+)(\.\d+)?$/.test(e))return e;var t=RegExp.$1,n=RegExp.$2,r=RegExp.$3,o=new RegExp;o.compile("(\\d)(\\d{3})(,|$)");while(o.test(n))n=n.replace(o,"$1,$2$3");return t+""+n+r},formatDate:function(e,t){var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return e},replaceThumbnail:function(e){return null!=e&&(e=e.replace("/server/FileController/download/",this.$constant.BASE_URI+"/wx/fileController/downloadThumbnail/")),null!=e&&(e=e.replace("/h5Server/FileController/download/",this.$constant.BASE_URI+"/wx/fileController/downloadThumbnail/")),e},goBack:function(){history.back()},uuid:function(e,t){var n,r,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(t=t||o.length,e)for(n=0;n0?S.join(",")||null:void 0}];else if(c(d))F=d;else{var j=Object.keys(S);F=v?j.sort(v):j}for(var B=a&&c(S)&&1===S.length?n+"[]":n,M=0;M0?_+x:""}},"0bdb":function(e,t,n){var r=n("d551");function o(e,t){for(var n=0;n-1?e.split(","):e},u=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,l=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}var p=0;while(n.depth>0&&null!==(s=a.exec(i))&&p=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[],a[l]=o):"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var l="string"===typeof e?function(e,t){var n,u={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=l.split(t.delimiter,p),d=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(v=i(v)?[v]:v),o.call(u,m)?u[m]=r.combine(u[m],v):u[m]=v}return u}(e,n):e,p=n.plainObjects?Object.create(null):{},f=Object.keys(l),d=0;d-1e3&&e<1e3||A.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-I(-e):I(e);if(r!==e){var o=String(r),i=x.call(t,o.length+1);return _.call(o,n,"$&_")+"."+_.call(_.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,n,"$&_")}var N=n(0),L=N.custom,U=H(L)?L:null;function V(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function $(e){return _.call(String(e),/"/g,""")}function q(e){return"[object Array]"===K(e)&&(!R||!("object"===typeof e&&R in e))}function z(e){return"[object RegExp]"===K(e)&&(!R||!("object"===typeof e&&R in e))}function H(e){if(F)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!E)return!1;try{return E.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,o){var s=n||{};if(J(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!J(s,"customInspect")||s.customInspect;if("boolean"!==typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(s,"numericSeparator")&&"boolean"!==typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=s.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return e(x.call(t,0,n.maxStringLength),n)+o}var i=_.call(_.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Z);return V(i,"single",n)}(t,s);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var d=String(t);return p?M(t,d):d}if("bigint"===typeof t){var m=String(t)+"n";return p?M(t,m):m}var y="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof r&&(r=0),r>=y&&y>0&&"object"===typeof t)return q(t)?"[Array]":"[Object]";var k=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=P.call(Array(e.indent+1)," ")}return{base:n,prev:P.call(Array(t+1),n)}}(s,r);if("undefined"===typeof o)o=[];else if(G(o,t)>=0)return"[Circular]";function A(t,n,i){if(n&&(o=T.call(o),o.push(n)),i){var a={depth:s.depth};return J(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if("function"===typeof t&&!z(t)){var I=function(e){if(e.name)return e.name;var t=b.call(w.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),C=te(t,A);return"[Function"+(I?": "+I:" (anonymous)")+"]"+(C.length>0?" { "+P.call(C,", ")+" }":"")}if(H(t)){var L=F?_.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(t);return"object"!==typeof t||F?L:Y(L)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var W="<"+S.call(String(t.nodeName)),ne=t.attributes||[],re=0;re",W}if(q(t)){if(0===t.length)return"[]";var oe=te(t,A);return k&&!function(e){for(var t=0;t=0)return!1;return!0}(oe)?"["+ee(oe,k)+"]":"[ "+P.call(oe,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&(!R||!("object"===typeof e&&R in e))}(t)){var ie=te(t,A);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+P.call(ie,", ")+" }":"{ ["+String(t)+"] "+P.call(O.call("[cause]: "+A(t.cause),ie),", ")+" }"}if("object"===typeof t&&c){if(U&&"function"===typeof t[U]&&N)return N(t,{depth:y-r});if("symbol"!==c&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{u.call(e)}catch(W){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ae=[];return a.call(t,(function(e,n){ae.push(A(n,t,!0)+" => "+A(e,t))})),X("Map",i.call(t),ae,k)}if(function(e){if(!u||!e||"object"!==typeof e)return!1;try{u.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var se=[];return l.call(t,(function(e){se.push(A(e,t))})),X("Set",u.call(t),se,k)}if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(W){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Q("WeakMap");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(W){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Q("WeakSet");if(function(e){if(!v||!e||"object"!==typeof e)return!1;try{return v.call(e),!0}catch(t){}return!1}(t))return Q("WeakRef");if(function(e){return"[object Number]"===K(e)&&(!R||!("object"===typeof e&&R in e))}(t))return Y(A(Number(t)));if(function(e){if(!e||"object"!==typeof e||!D)return!1;try{return D.call(e),!0}catch(t){}return!1}(t))return Y(A(D.call(t)));if(function(e){return"[object Boolean]"===K(e)&&(!R||!("object"===typeof e&&R in e))}(t))return Y(g.call(t));if(function(e){return"[object String]"===K(e)&&(!R||!("object"===typeof e&&R in e))}(t))return Y(A(String(t)));if(!function(e){return"[object Date]"===K(e)&&(!R||!("object"===typeof e&&R in e))}(t)&&!z(t)){var ce=te(t,A),ue=B?B(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",pe=!ue&&R&&Object(t)===t&&R in t?x.call(K(t),8,-1):le?"Object":"",fe=ue||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",de=fe+(pe||le?"["+P.call(O.call([],pe||[],le||[]),": ")+"] ":"");return 0===ce.length?de+"{}":k?de+"{"+ee(ce,k)+"}":de+"{ "+P.call(ce,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return W.call(e,t)}function K(e){return y.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.selected,r=t.startDate,o=t.endDate,a=t.range;(0,i.default)(this,e),this.date=this.getDateObj(new Date),this.selected=n||[],this.startDate=r,this.endDate=o,this.range=a,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}return(0,a.default)(e,[{key:"setDate",value:function(e){var t=this.getDateObj(e);this.getWeeks(t.fullDate)}},{key:"cleanMultipleStatus",value:function(){this.multipleStatus={before:"",after:"",data:[]}}},{key:"setStartDate",value:function(e){this.startDate=e}},{key:"setEndDate",value:function(e){this.endDate=e}},{key:"getPreMonthObj",value:function(e){e=d(e),e=new Date(e);var t=e.getMonth();e.setMonth(t-1);var n=e.getMonth();return 0!==t&&n-t===0&&e.setMonth(n-1),this.getDateObj(e)}},{key:"getNextMonthObj",value:function(e){e=d(e),e=new Date(e);var t=e.getMonth();e.setMonth(t+1);var n=e.getMonth();return n-t>1&&e.setMonth(n-1),this.getDateObj(e)}},{key:"getDateObj",value:function(e){return e=d(e),e=new Date(e),{fullDate:c(e),year:e.getFullYear(),month:l(e.getMonth()+1),date:l(e.getDate()),day:e.getDay()}}},{key:"getPreMonthDays",value:function(e,t){for(var n=[],r=e-1;r>=0;r--){var o=t.month-1;n.push({date:new Date(t.year,o,-r).getDate(),month:o,disable:!0})}return n}},{key:"getCurrentMonthDays",value:function(e,t){for(var n=this,r=[],o=this.date.fullDate,i=function(e){var i="".concat(t.year,"-").concat(t.month,"-").concat(l(e)),a=o===i,s=n.selected&&n.selected.find((function(e){if(n.dateEqual(i,e.date))return e}));n.startDate&&p(n.startDate,i),n.endDate&&p(i,n.endDate);var c=n.multipleStatus.data,u=-1;n.range&&c&&(u=c.findIndex((function(e){return n.dateEqual(e,i)})));var f=-1!==u;r.push({fullDate:i,year:t.year,date:e,multiple:!!n.range&&f,beforeMultiple:n.isLogicBefore(i,n.multipleStatus.before,n.multipleStatus.after),afterMultiple:n.isLogicAfter(i,n.multipleStatus.before,n.multipleStatus.after),month:t.month,disable:n.startDate&&!p(n.startDate,i)||n.endDate&&!p(i,n.endDate),isToday:a,userChecked:!1,extraInfo:s})},a=1;a<=e;a++)i(a);return r}},{key:"_getNextMonthDays",value:function(e,t){for(var n=[],r=t.month+1,o=1;o<=e;o++)n.push({date:o,month:r,disable:!0});return n}},{key:"getInfo",value:function(e){var t=this;return e||(e=new Date),this.calendar.find((function(n){return n.fullDate===t.getDateObj(e).fullDate}))}},{key:"dateEqual",value:function(e,t){return e=new Date(d(e)),t=new Date(d(t)),e.valueOf()===t.valueOf()}},{key:"isLogicBefore",value:function(e,t,n){var r=t;return t&&n&&(r=p(t,n)?t:n),this.dateEqual(r,e)}},{key:"isLogicAfter",value:function(e,t,n){var r=n;return t&&n&&(r=p(t,n)?n:t),this.dateEqual(r,e)}},{key:"geDateAll",value:function(e,t){var n=[],r=e.split("-"),o=t.split("-"),i=new Date;i.setFullYear(r[0],r[1]-1,r[2]);var a=new Date;a.setFullYear(o[0],o[1]-1,o[2]);for(var s=i.getTime()-864e5,c=a.getTime()-864e5,u=s;u<=c;)u+=864e5,n.push(this.getDateObj(new Date(parseInt(u))).fullDate);return n}},{key:"setMultiple",value:function(e){if(this.range){var t=this.multipleStatus,n=t.before,r=t.after;if(n&&r){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else n?(this.multipleStatus.after=e,p(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.lastHover=!1);this.getWeeks(e)}}},{key:"setHoverMultiple",value:function(e){if(this.range&&!this.lastHover){var t=this.multipleStatus.before;t?(this.multipleStatus.after=e,p(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}}},{key:"setDefaultMultiple",value:function(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(p(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}},{key:"getWeeks",value:function(e){for(var t=this.getDateObj(e),n=t.year,r=t.month,i=new Date(n,r-1,1).getDay(),a=this.getPreMonthDays(i,this.getDateObj(e)),s=new Date(n,r,0).getDate(),c=this.getCurrentMonthDays(s,this.getDateObj(e)),u=42-i-s,l=this._getNextMonthDays(u,this.getDateObj(e)),p=[].concat((0,o.default)(a),(0,o.default)(c),(0,o.default)(l)),f=new Array(6),d=0;d-1||"function"===typeof s[e])}i[a]=function(){var e={};for(var t in s)u(t)&&(e[t]=s[t]);return e}(),i[a].canIUse("getAppBaseInfo")||(i[a].getAppBaseInfo=i[a].getSystemInfoSync),i[a].canIUse("getWindowInfo")||(i[a].getWindowInfo=i[a].getSystemInfoSync),i[a].canIUse("getDeviceInfo")||(i[a].getDeviceInfo=i[a].getSystemInfoSync);var l=i[a];t.default=l},3240: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"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function s(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var g=Object.prototype.hasOwnProperty;function y(e,t){return g.call(e,t)}function w(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var b=/-(\w)/g,x=w((function(e){return e.replace(b,(function(e,t){return t?t.toUpperCase():""}))})),_=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,S=w((function(e){return e.replace(k,"-$1").toLowerCase()}));var A=Function.prototype.bind?function(e,t){return e.bind(t)}:function(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 O(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function T(e){for(var t={},n=0;n0),Z=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===W),Y=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/),{}.watch);if(z)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Q)}catch(Mn){}var X=function(){return void 0===$&&($=!z&&!H&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),$},ee=z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function te(e){return"function"===typeof e&&/native code/.test(e.toString())}var ne,re="undefined"!==typeof Symbol&&te(Symbol)&&"undefined"!==typeof Reflect&&te(Reflect.ownKeys);ne="undefined"!==typeof Set&&te(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 oe=I,ie=0,ae=function(){this.id=ie++,this.subs=[]};function se(e){ae.SharedObject.targetStack.push(e),ae.SharedObject.target=e,ae.target=e}function ce(){ae.SharedObject.targetStack.pop(),ae.SharedObject.target=ae.SharedObject.targetStack[ae.SharedObject.targetStack.length-1],ae.target=ae.SharedObject.target}ae.prototype.addSub=function(e){this.subs.push(e)},ae.prototype.removeSub=function(e){v(this.subs,e)},ae.prototype.depend=function(){ae.SharedObject.target&&ae.SharedObject.target.addDep(this)},ae.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(i&&!y(o,"default"))a=!1;else if(""===a||a===S(e)){var c=Be(String,o.type);(c<0||s0&&(c=e(c,(n||"")+"_"+s),rt(c[0])&&rt(l)&&(p[u]=fe(l.text+c[0].text),c.shift()),p.push.apply(p,c)):a(c)?rt(l)?p[u]=fe(l.text+c):""!==c&&p.push(fe(c)):rt(c)&&rt(l)?p[u]=fe(l.text+c.text):(i(t._isVList)&&o(c.tag)&&r(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+s+"__"),p.push(c)));return p}(e):void 0}function rt(e){return o(e)&&o(e.text)&&function(e){return!1===e}(e.isComment)}function ot(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function it(e){var t=at(e.$options.inject,e);t&&(ge(!1),Object.keys(t).forEach((function(n){xe(e,n,t[n])})),ge(!0))}function at(e,t){if(e){for(var n=Object.create(null),r=re?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]=lt(t,c,e[c]))}else o={};for(var u in t)u in o||(o[u]=pt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=o),U(o,"$stable",a),U(o,"$key",s),U(o,"$hasNormal",i),o}function lt(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]:nt(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 pt(e,t){return function(){return e[t]}}function ft(e,t){var n,r,i,a,c;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,i=e.length;rdocument.createEvent("Event").timeStamp&&(Xt=function(){return en.now()})}function tn(){var e,t;for(Xt(),Yt=!0,Jt.sort((function(e,t){return e.id-t.id})),Qt=0;QtQt&&Jt[n].id>e.id)n--;Jt.splice(n+1,0,e)}else Jt.push(e);Zt||(Zt=!0,Ge(tn))}}(this)},rn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Mn){Me(Mn,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},rn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},rn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},rn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var on={enumerable:!0,configurable:!0,get:I,set:I};function an(e,t,n){on.get=function(){return this[t][n]},on.set=function(e){this[t][n]=e},Object.defineProperty(e,n,on)}function sn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;i||ge(!1);var a=function(i){o.push(i);var a=Fe(i,t,n,e);xe(r,i,a),i in e||an(e,"_props",i)};for(var s in t)a(s);ge(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?I:A(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;t=e._data="function"===typeof t?function(e,t){se();try{return e.call(t,t)}catch(Mn){return Me(Mn,t,"data()"),{}}finally{ce()}}(t,e):t||{},u(t)||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);while(o--){var i=n[o];0,r&&y(r,i)||L(i)||an(e,"_data",i)}be(t,!0)}(e):be(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=X();for(var o in t){var i=t[o],a="function"===typeof i?i:i.get;0,r||(n[o]=new rn(e,a||I,I,cn)),o in e||un(e,o,i)}}(e,t.computed),t.watch&&t.watch!==Y&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===c.call(e)}(e)&&e.test(t)}function wn(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=gn(a.componentOptions);s&&!t(s)&&bn(n,i,r,o)}}}function bn(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,v(n,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=dn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Ce(hn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&$t(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,o=r&&r.context;e.$slots=st(t._renderChildren,o),e.$scopedSlots=n,e._c=function(t,n,r,o){return Rt(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return Rt(e,t,n,r,o,!0)};var i=r&&r.data;xe(e,"$attrs",i&&i.attrs||n,null,!0),xe(e,"$listeners",t._parentListeners||n,null,!0)}(t),Wt(t,"beforeCreate"),!t._$fallback&&it(t),sn(t),!t._$fallback&&ot(t),!t._$fallback&&Wt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(mn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=_e,e.prototype.$delete=ke,e.prototype.$watch=function(e,t,n){if(u(t))return fn(this,e,t,n);n=n||{},n.user=!0;var r=new rn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(o){Me(o,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(mn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o1?O(n):n;for(var r=O(arguments,1),o='event handler for "'+e+'"',i=0,a=n.length;iparseInt(this.max)&&bn(s,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},kn={KeepAlive:_n};(function(e){var t={get:function(){return M}};Object.defineProperty(e,"config",t),e.util={warn:oe,extend:P,mergeOptions:Ce,defineReactive:xe},e.set=_e,e.delete=ke,e.nextTick=Ge,e.observable=function(e){return be(e),e},e.options=Object.create(null),j.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,kn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=O(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}}(e),function(e){e.mixin=function(e){return this.options=Ce(this.options,e),this}}(e),vn(e),function(e){j.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(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]}}))}(e)})(mn),Object.defineProperty(mn.prototype,"$isServer",{get:X}),Object.defineProperty(mn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(mn,"FunctionalRenderContext",{value:Pt}),mn.version="2.6.11";var Sn="[object Array]",An="[object Object]";function On(e,t){var n={};return function e(t,n){if(t===n)return;var r=Tn(t),o=Tn(n);if(r==An&&o==An){if(Object.keys(t).length>=Object.keys(n).length)for(var i in n){var a=t[i];void 0===a?t[i]=null:e(a,n[i])}}else r==Sn&&o==Sn&&t.length>=n.length&&n.forEach((function(n,r){e(t[r],n)}))}(e,t),function e(t,n,r,o){if(t===n)return;var i=Tn(t),a=Tn(n);if(i==An)if(a!=An||Object.keys(t).length1&&(t[r[0].trim()]=r[1].trim())}})),t}));var jn=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var Bn=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];mn.prototype.__patch__=function(e,t){var n=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,o=Object.create(null);try{o=function(e){var t=Object.create(null),n=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));n.reduce((function(t,n){return t[n]=e[n],t}),t);var r=e.__composition_api_state__||e.__secret_vfa_state__,o=r&&r.rawBindings;return o&&Object.keys(o).forEach((function(n){t[n]=e[n]})),Object.assign(t,e.$mp.data||{}),Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field")&&(t["name"]=e.name,t["value"]=e.value),JSON.parse(JSON.stringify(t,Cn))}(this)}catch(s){console.error(s)}o.__webviewId__=r.data.__webviewId__;var i=Object.create(null);Object.keys(o).forEach((function(e){i[e]=r.data[e]}));var a=!1===this.$shouldDiffData?o:On(o,i);Object.keys(a).length?(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"微纳园管理端",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+this._uid+"]差量更新",JSON.stringify(a)),this.__next_tick_pending=!0,r.setData(a,(function(){n.__next_tick_pending=!1,In(n)}))):In(this)}},mn.prototype.$mount=function(e,t){return function(e,t,n){return e.mpType?("app"===e.mpType&&(e.$options.render=En),e.$options.render||(e.$options.render=En),!e._$fallback&&Wt(e,"beforeMount"),new rn(e,(function(){e._update(e._render(),n)}),I,{before:function(){e._isMounted&&!e._isDestroyed&&Wt(e,"beforeUpdate")}},!0),n=!1,e):e}(this,0,t)},function(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==Bn.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;Bn.forEach((function(e){n[e]=r})),e.prototype.__lifecycle_hooks__=Bn}(mn),function(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__:O(arguments,1)})}catch(r){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return Dn(this,e)},jn.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=ot,e.prototype.__init_injections=it,e.prototype.__call_hook=function(e,t){var n=this;se();var r,o=n.$options[e],i=e+" hook";if(o)for(var a=0,s=o.length;a300;return{residenceTime:t,overtime:o}}if("page"===e){var i=t>1800;return{residenceTime:t,overtime:i}}return{residenceTime:t}},W=function(e){var t=y.reportInterval;if(0===Number(t))return 0;t=t||e;return/(^[1-9]\d*$)/.test(t)?Number(t):e}(10),J={uuid:function(e){return d.deviceId||O()}(),ak:P.appid,p:"android"===d.platform?"a":"i",ut:T(),mpn:function(){var t="";return"wx"!==T()&&"qq"!==T()||e.canIUse("getAccountInfoSync")&&(t=e.getAccountInfoSync().miniProgram.appId||""),T(),t}(),usv:"4.76",v:function(){return"n"===T()?plus.runtime.version:""}(),ch:function(){var e=T(),t="";return"n"===e&&(t=plus.runtime.channel),t}(),cn:"",pn:"",ct:"",t:N(),tt:"",brand:d.brand||"",md:d.model,sv:null!==(r=null===(o=d.system)||void 0===o?void 0:o.replace(/(Android|iOS)\s/,""))&&void 0!==r?r:"",mpsdk:d.SDKVersion||"",mpv:d.version||"",lang:d.language,pr:d.pixelRatio,ww:d.windowWidth,wh:d.windowHeight,sw:d.screenWidth,sh:d.screenHeight},K=function(){"use strict";function t(){c(this,t),this.self="",this.__licationShow=!1,this.__licationHide=!1,this.statData=J,this._navigationBarTitle={config:"",page:"",report:"",lt:""},this._query={};var n="function"===typeof e.addInterceptor;n&&(this.addInterceptorInit(),this.interceptLogin(),this.interceptShare(!0),this.interceptRequestPayment())}return u(t,[{key:"addInterceptorInit",value:function(){var t=this;e.addInterceptor("setNavigationBarTitle",{invoke:function(e){t._navigationBarTitle.page=e.title}})}},{key:"interceptLogin",value:function(){var t=this;e.addInterceptor("login",{complete:function(){t._login()}})}},{key:"interceptShare",value:function(t){var n=this;t?e.addInterceptor("share",{success:function(){n._share()},fail:function(){n._share()}}):n._share()}},{key:"interceptRequestPayment",value:function(){var t=this;e.addInterceptor("requestPayment",{success:function(){t._payment("pay_success")},fail:function(){t._payment("pay_fail")}})}},{key:"_login",value:function(){this.sendEventRequest({key:"login"},0)}},{key:"_share",value:function(){this.sendEventRequest({key:"share"},0)}},{key:"_payment",value:function(e){this.sendEventRequest({key:e},0)}},{key:"applicationShow",value:function(){if(this.__licationHide){var t=H("app");if(t.overtime){var n=e.getStorageSync("_STAT_LAST_PAGE_ROUTE"),r={path:n,scene:this.statData.sc,cst:2};this.sendReportRequest(r)}this.__licationHide=!1}}},{key:"applicationHide",value:function(t,n){t||(t=E()),this.__licationHide=!0;var r=H(),o=C(t);e.setStorageSync("_STAT_LAST_PAGE_ROUTE",o),this.sendHideRequest({urlref:o,urlref_ts:r.residenceTime},n),z()}},{key:"pageShow",value:function(t){this._navigationBarTitle={config:"",page:"",report:"",lt:""};var n=C(t),r=D(t);if(this._navigationBarTitle.config=j(r),this.__licationShow)return z(),e.setStorageSync("_STAT_LAST_PAGE_ROUTE",n),void(this.__licationShow=!1);var o=H("page");if(o.overtime){var i={path:n,scene:this.statData.sc,cst:3};this.sendReportRequest(i)}z()}},{key:"pageHide",value:function(t){if(!this.__licationHide){var n=H("page"),r=C(t),o=e.getStorageSync("_STAT_LAST_PAGE_ROUTE");return o||(o=r),e.setStorageSync("_STAT_LAST_PAGE_ROUTE",r),void this.sendPageRequest({url:r,urlref:o,urlref_ts:n.residenceTime})}}},{key:"sendReportRequest",value:function(e,t){this._navigationBarTitle.lt="1",this._navigationBarTitle.config=j(e.path);var n=e.query&&"{}"!==JSON.stringify(e.query),r=n?"?"+JSON.stringify(e.query):"",o=function(){var e=v("__last__visit__time"),t=0;return e&&(t=e),m("__last__visit__time",N()),t}();if(0!==o||!o){var i=function(e){var t="";if("n"===T()){try{t=plus.device.uuid}catch(n){t=""}return t}return d.deviceId||O()}(),a=function(){var e=v("is_handle_device_id")||"";return m("is_handle_device_id","1"),"1"===e}();a||(this.statData.odid=i)}Object.assign(this.statData,{lt:"1",url:e.path+r||"",t:N(),sc:I(e.scene),fvts:L(),lvts:o,tvc:q(),cst:e.cst||1}),"n"===T()?this.getProperty(t):this.getNetworkInfo(t)}},{key:"sendPageRequest",value:function(e){var t=e.url,n=e.urlref,r=e.urlref_ts;this._navigationBarTitle.lt="11";var o={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"11",ut:this.statData.ut,url:t,tt:this.statData.tt,urlref:n,urlref_ts:r,ch:this.statData.ch,usv:this.statData.usv,t:N()};this.request(o)}},{key:"sendHideRequest",value:function(e,t){var n=e.urlref,r=e.urlref_ts,o={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"3",ut:this.statData.ut,urlref:n,urlref_ts:r,ch:this.statData.ch,usv:this.statData.usv,t:N()};this.request(o,t)}},{key:"sendEventRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=void 0===t?"":t,r=e.value,o=void 0===r?"":r,i="";try{i=D()}catch(c){var a=v("__launch_options");i=a.path}this._navigationBarTitle.config=j(i),this._navigationBarTitle.lt="21";var s={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"21",ut:this.statData.ut,url:i,ch:this.statData.ch,e_n:n,e_v:"object"===l(o)?JSON.stringify(o):o.toString(),usv:this.statData.usv,t:N()};this.request(s)}},{key:"sendPushRequest",value:function(e,t){var n=this,r=N(),o={lt:"101",cid:t,t:r,ut:this.statData.ut};var i=R({101:[o]}),a={usv:"4.76",t:r,requests:i};"n"!==T()||"a"!==this.statData.p?this.sendRequest(a):setTimeout((function(){n.sendRequest(a)}),200)}},{key:"getProperty",value:function(e){var t=this;plus.runtime.getProperty(plus.runtime.appid,(function(n){t.statData.v=n.version||"",t.getNetworkInfo(e)}))}},{key:"getNetworkInfo",value:function(t){var n=this;e.getNetworkType({success:function(e){n.statData.net=e.networkType,n.getLocation(t)}})}},{key:"getLocation",value:function(t){var n=this;P.getLocation?e.getLocation({type:"wgs84",geocode:!0,success:function(e){e.address&&(n.statData.cn=e.address.country,n.statData.pn=e.address.province,n.statData.ct=e.address.city),n.statData.lat=e.latitude,n.statData.lng=e.longitude,n.request(n.statData,t)}}):(this.statData.lat=0,this.statData.lng=0,this.request(this.statData,t))}},{key:"request",value:function(e,t){var n=this,r=N(),o=this._navigationBarTitle;Object.assign(e,{ttn:o.page,ttpj:o.config,ttc:o.report});var i=v("__UNI__STAT__DATA")||{};i[e.lt]||(i[e.lt]=[]),i[e.lt].push(e),m("__UNI__STAT__DATA",i);var a=function(){return V=N(),U=v("__page__residence__time"),V-U}();if(!(a864e5&&B((function(t){var n=t.enable;e.setStorageSync("Report_Data_Time",o),e.setStorageSync("Report_Status",n)}))):B((function(n){var r=n.enable;e.setStorageSync("Report_Data_Time",o),e.setStorageSync("Report_Status",r),1===r&&t()}))}))}()}},{key:"sendRequest",value:function(t){if(e.__stat_uniCloud_space){var n=e.__stat_uniCloud_space.importObject("uni-stat-receiver",{customUI:!0});n.report(t).then((function(){0})).catch((function(e){0}))}else console.error("应用未关联服务空间,统计上报失败,请在uniCloud目录右键关联服务空间.")}},{key:"imageRequest",value:function(e){this.getIsReportData().then((function(){var t=new Image,n=function(e){var t=Object.keys(e),n=t.sort(),r={},o="";for(var i in n)r[n[i]]=e[n[i]],o+=n[i]+"="+e[n[i]]+"&";return{sign:"",options:o.substr(0,o.length-1)}}(function(e){var t={};for(var n in e)t[n]=encodeURIComponent(e[n]);return t}(e)).options;t.src="https://tongji.dcloud.io/uni/stat.gif?"+n}))}},{key:"sendEvent",value:function(e,t){(function(e,t){return e?"string"!==typeof e?(console.error("uni.report [eventName] Parameter type error, it can only be of type String"),!0):e.length>255?(console.error("uni.report [eventName] Parameter length cannot be greater than 255"),!0):"string"!==typeof t&&"object"!==l(t)?(console.error("uni.report [options] Parameter type error, Only supports String or Object type"),!0):"string"===typeof t&&t.length>255?(console.error("uni.report [options] Parameter length cannot be greater than 255"),!0):"title"===e&&"string"!==typeof t?(console.error("uni.report [eventName] When the parameter is title, the [options] parameter can only be of type String"),!0):void 0:(console.error("uni.report Missing [eventName] parameter"),!0)})(e,t)||("title"!==e?this.sendEventRequest({key:e,value:"object"===l(t)?JSON.stringify(t):t},1):this._navigationBarTitle.report=t)}}]),t}(),G=function(n){"use strict";i(o,n);var r=f(o);function o(){return c(this,o),r.call(this)}return u(o,[{key:"pushEvent",value:function(t){var n=this,r=function(){if(y.collectItems){var e=y.collectItems.uniPushClientID;return"boolean"===typeof e&&e}return!1}();e.getPushClientId&&r&&e.getPushClientId({success:function(e){var r=e.cid||!1;r&&n.sendPushRequest(t,r)}})}},{key:"launch",value:function(e,t){$(),this.__licationShow=!0,m("__launch_options",e),e.cst=1,this.sendReportRequest(e,!0)}},{key:"load",value:function(e,t){this.self=t,this._query=e}},{key:"appHide",value:function(e){this.applicationHide(e,!0)}},{key:"appShow",value:function(e){this.applicationShow(e)}},{key:"show",value:function(e){if(this.self=e,"page"===F(e)){var t=M();t&&this.pageShow(e)}"app"===F(e)&&this.appShow()}},{key:"hide",value:function(e){if(this.self=e,"page"===F(e)){var t=M();t&&this.pageHide(e)}"app"===F(e)&&this.appHide()}},{key:"error",value:function(e){var t="";t=e.message?e.stack:JSON.stringify(e);var n="";try{n=get_route()}catch(o){n=""}var r={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"31",url:n,ut:this.statData.ut,ch:this.statData.ch,mpsdk:this.statData.mpsdk,mpv:this.statData.mpv,v:this.statData.v,em:t,usv:this.statData.usv,t:parseInt((new Date).getTime()/1e3)};this.request(r)}}],[{key:"getInstance",value:function(){e.__stat_instance||(e.__stat_instance=new o);var n=function(e){var t=function(){return{}||{}}(),n=t.spaceId,r=t.provider,o=t.clientSecret,i=t.secretKey,a=t.secretId,s=-1!==["tcb","tencent","aliyun","alipay"].indexOf(r),c="aliyun"===r&&n&&o,u=("tcb"===r||"tencent"===r)&&n,l="alipay"===r&&n&&i&&a;return s&&(c||u||l)?t:e&&e.spaceId?e:null}(t.config);if(!e.__stat_uniCloud_space)if(n&&0!==Object.keys(n).length){var r={provider:n.provider,spaceId:n.spaceId,clientSecret:n.clientSecret};n.endpoint&&(r.endpoint=n.endpoint),"alipay"===n.provider&&(r.secretKey=n.secretKey,r.accessKey=n.accessKey||n.secretId,r.spaceAppId=n.spaceAppId||n.appId),e.__stat_uniCloud_space=t.init(r)}else console.error("应用未关联服务空间,请在uniCloud目录右键关联服务空间");return e.__stat_instance}}]),o}(K),Z=G,Y=Z.getInstance(),Q=!1,X={onLaunch:function(e){Y.launch(e,this),Y.pushEvent(e)},onLoad:function(e){if(Y.load(e,this),this.$scope&&this.$scope.onShareAppMessage){var t=this.$scope.onShareAppMessage;this.$scope.onShareAppMessage=function(e){return Y.interceptShare(!1),t.call(this,e)}}},onShow:function(){Q=!1,Y.show(this)},onHide:function(){Q=!0,Y.hide(this)},onUnload:function(){Q?Q=!1:Y.hide(this)},onError:function(e){Y.error(e)}};function ee(){var t=n("3240");(t.default||t).mixin(X),e.report=function(e,t){Y.sendEvent(e,t)}}(function(){ee()})()}).call(this,n("df3c")["default"],n("861b")["uniCloud"])},"3e21":function(e,t,n){"use strict";var r=n("7d11");e.exports=Function.prototype.bind||r},"47a9":function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"485a":function(e,t){function n(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n}function r(e,t,r,o,i,a){return n(function(e,t){return e<>>32-t}(n(n(t,e),n(o,a)),i),r)}function o(e,t,n,o,i,a,s){return r(t&n|~t&o,e,t,i,a,s)}function i(e,t,n,o,i,a,s){return r(t&o|n&~o,e,t,i,a,s)}function a(e,t,n,o,i,a,s){return r(t^n^o,e,t,i,a,s)}function s(e,t,n,o,i,a,s){return r(n^(t|~o),e,t,i,a,s)}function c(e){for(var t=1732584193,r=-271733879,c=-1732584194,u=271733878,l=0;l>2]>>n%4*8+4&15)+"0123456789abcdef".charAt(e[n>>2]>>n%4*8&15);return t}function l(e){for(var t=1+(e.length+8>>6),n=new Array(16*t),r=0;r<16*t;r++)n[r]=0;for(r=0;r>2]|=(255&e.charCodeAt(r))<>2]|=128<l?l:p;var h=0,m=0;"datetime"===n.type&&(h=f(s[3]),m=f(s[4])),e=new Date(c,u-1,p,h,m)}e=this.correctValue(e),this.updateColumnValue(e).then((function(){t.$emit("input",e),t.$emit("change",r)}))},updateColumnValue:function(e){var t=this,n=[],r=this.data.type,o=this.data.formatter||h,i=this.getPicker();if("time"===r){var a=e.split(":");n=[o("hour",a[0]),o("minute",a[1])]}else{var s=new Date(e);n=[o("year","".concat(s.getFullYear())),o("month",p(s.getMonth()+1))],"date"===r&&n.push(o("day",p(s.getDate()))),"datetime"===r&&n.push(o("day",p(s.getDate())),o("hour",p(s.getHours())),o("minute",p(s.getMinutes())))}return this.set({innerValue:e}).then((function(){return t.updateColumns()})).then((function(){return i.setValues(n)}))}},created:function(){var e=this,t=this.correctValue(this.data.value);this.updateColumnValue(t).then((function(){e.$emit("input",t)}))}})},"5df5":function(e,t,n){"use strict";var r=n("3e21");e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},"5e00":function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},"602e":function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"}')},6181:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3b2d")),i=r(n("67ad")),a=r(n("0bdb")),s=function(){function t(e){(0,i.default)(this,t),this.baseUrl=e.baseUrl||"",this.fileUrl=e.fileUrl||"",this.headers=e.headers||{},this.config={isPrompt:!1!==e.isPrompt,load:!1!==e.load,isFactory:!1!==e.isFactory,loadMore:!1!==e.loadMore}}return(0,a.default)(t,[{key:"getDefault",value:function(e,t,n){var r,o=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~/])+$/.test(e);r="file"==n?o?e:this.fileUrl+e:o?e:this.baseUrl+e;var i=Object.assign({},this.config,t);return i.httpUrl=r,i.headers=Object.assign(this.headers,t.headers),i}},{key:"post",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getDefault(t,r,"data");return o.data=n,new Promise((function(t,n){e.getRequest("POST",o,(function(r,i){if(r&&o.isFactory&&e.dataFactory){var a=e.dataFactory(o,i);return t(a.result)}r?t(i):n(i)}))}))}},{key:"get",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getDefault(t,r,"data");return o.data=n,new Promise((function(t,n){e.getRequest("GET",o,(function(r,i){if(r&&o.isFactory&&e.dataFactory){var a=e.dataFactory(o,i);a.success?t(a.result):n(a.result)}else r?t(i):n(i)}))}))}},{key:"put",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getDefault(t,r,"data");return o.data=n,new Promise((function(t,n){e.getRequest("PUT",o,(function(r,i){if(r&&o.isFactory&&e.dataFactory){var a=e.dataFactory(o,i);a.success?t(a.result):n(a.result)}else r?t(i):n(i)}))}))}},{key:"delete",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getDefault(t,r,"data");return o.data=n,new Promise((function(t,n){e.getRequest("DELETE",o,(function(r,i){if(r&&o.isFactory&&e.dataFactory){var a=e.dataFactory(o,i);a.success?t(a.result):n(a.result)}else r?t(i):n(i)}))}))}},{key:"getRequest",value:function(t,n,r){var i=this;if(this.requestStart){n.method=t;var a=this.requestStart(n);if("object"!=(0,o.default)(a))return void r(!1,"请求开始拦截器未通过");n.data=a.data,n.headers=a.headers,n.isPrompt=a.isPrompt,n.load=a.load,n.isFactory=a.isFactory}e.request({url:n.httpUrl,data:n.data,method:t,header:n.headers,success:function(e){i.requestEnd&&i.requestEnd(n,e),r(!0,e)},fail:function(e){i.requestEnd&&i.requestEnd(n,e),r(!1,e)}})}},{key:"jsonp",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getDefault(e,n,"data"),i="";Object.keys(t).forEach((function(e){i+=e+"="+t[e]+"&"})),""!==i&&(i=i.substr(0,i.lastIndexOf("&"))),r.httpUrl=r.httpUrl+"?"+i;var a=this;return new Promise((function(e,n){var i="callback"+Math.ceil(1e6*Math.random());if(a.requestStart){r.data=t;var s=a.requestStart(r);if("object"!=(0,o.default)(s))return void n("请求开始拦截器未通过");r.data=s.data,r.headers=s.headers,r.isPrompt=s.isPrompt,r.load=s.load,r.isFactory=s.isFactory}window[i]=function(t){e(t)};var c=document.createElement("script");c.src=r.httpUrl+"&callback="+i,document.head.appendChild(c),document.head.removeChild(c),a.requestEnd&&a.requestEnd(r,{})}))}},{key:"urlImgUpload",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getDefault(t,r,"file");o.data=n;var i=this;return new Promise((function(t,r){e.chooseImage({count:n.count||9,sizeType:n.sizeType||["original","compressed"],sourceType:n.sourceType||["album","camera"],success:function(e){i.urlFileUpload(o,e.tempFiles,(function(e,n){e?t(n):r(n)}))}})}))}},{key:"urlFileUpload",value:function(t,n,r){var i=this;if(this.requestStart){t.method="FILE";var a=this.requestStart(t);if("object"==(0,o.default)(a)){if("object"!=(0,o.default)(a))return void r(!1,"请求开始拦截器未通过");t.data=a.data,t.headers=a.headers,t.isPrompt=a.isPrompt,t.load=a.load,t.isFactory=a.isFactory}}var s=n.length-1,c=new Array;(function o(a){var u={url:t.httpUrl,filePath:n[a].path,header:t.headers,name:t.name||"file",success:function(e){if(e.data=JSON.parse(e.data),i.requestEnd&&i.requestEnd(t,e),t.isFactory&&i.dataFactory){var n=i.dataFactory(t,e);n.success?(c.push(n.result),s<=a?r(!0,c):o(a+1)):r(!1,n.result)}else c.push(e.data),s<=a?r(!0,c):o(a+1)},fail:function(e){i.requestEnd&&i.requestEnd(t,e),r(!1,e)}};t.data&&(u.formData=t.data);e.uploadFile(u)})(0)}}]),t}();t.default=s}).call(this,n("df3c")["default"])},"61b3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pickerProps=void 0;var r={title:String,loading:Boolean,showToolbar:Boolean,cancelButtonText:{type:String,value:"取消"},confirmButtonText:{type:String,value:"确认"},visibleItemCount:{type:Number,value:6},itemHeight:{type:Number,value:44}};t.pickerProps=r},"636d":function(e,t,n){"use strict";var r=n("f8c7"),o=n("61b3");(0,r.VantComponent)({classes:["active-class","toolbar-class","column-class"],props:Object.assign(Object.assign({},o.pickerProps),{valueKey:{type:String,value:"text"},toolbarPosition:{type:String,value:"top"},defaultIndex:{type:Number,value:0},columns:{type:Array,value:[],observer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.simple=e.length&&!e[0].values,Array.isArray(this.children)&&this.children.length&&this.setColumns().catch((function(){}))}}}),beforeCreate:function(){var e=this;Object.defineProperty(this,"children",{get:function(){return e.selectAllComponents(".van-picker__column")||[]}})},methods:{noop:function(){},setColumns:function(){var e=this,t=this.data,n=this.simple?[{values:t.columns}]:t.columns,r=n.map((function(t,n){return e.setColumnValues(n,t.values)}));return Promise.all(r)},emit:function(e){var t=e.currentTarget.dataset.type;this.simple?this.$emit(t,{value:this.getColumnValue(0),index:this.getColumnIndex(0)}):this.$emit(t,{value:this.getValues(),index:this.getIndexes()})},onChange:function(e){this.simple?this.$emit("change",{picker:this,value:this.getColumnValue(0),index:this.getColumnIndex(0)}):this.$emit("change",{picker:this,value:this.getValues(),index:e.currentTarget.dataset.index})},getColumn:function(e){return this.children[e]},getColumnValue:function(e){var t=this.getColumn(e);return t&&t.getValue()},setColumnValue:function(e,t){var n=this.getColumn(e);return null==n?Promise.reject(new Error("setColumnValue: 对应列不存在")):n.setValue(t)},getColumnIndex:function(e){return(this.getColumn(e)||{}).data.currentIndex},setColumnIndex:function(e,t){var n=this.getColumn(e);return null==n?Promise.reject(new Error("setColumnIndex: 对应列不存在")):n.setIndex(t)},getColumnValues:function(e){return(this.children[e]||{}).data.options},setColumnValues:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.children[e];if(null==r)return Promise.reject(new Error("setColumnValues: 对应列不存在"));var o=JSON.stringify(r.data.options)===JSON.stringify(t);return o?Promise.resolve():r.set({options:t}).then((function(){n&&r.setIndex(0)}))},getValues:function(){return this.children.map((function(e){return e.getValue()}))},setValues:function(e){var t=this,n=e.map((function(e,n){return t.setColumnValue(n,e)}));return Promise.all(n)},getIndexes:function(){return this.children.map((function(e){return e.data.currentIndex}))},setIndexes:function(e){var t=this,n=e.map((function(e,n){return t.setColumnIndex(n,e)}));return Promise.all(n)}}})},6382:function(e,t,n){var r=n("6454");e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports},6454:function(e,t){e.exports=function(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]:"",n=["label"];n.forEach((function(t){void 0===e[t]&&(e[t]="")}));var r=t;for(var o in e){var i=new RegExp("{"+o+"}");r=r.replace(i,e[o])}return r}var v={integer:function(e){return v.number(e)&&parseInt(e,10)===e},string:function(e){return"string"===typeof e},number:function(e){return!isNaN(e)&&"number"===typeof e},boolean:function(e){return"boolean"===typeof e},float:function(e){return v.number(e)&&!v.integer(e)},array:function(e){return Array.isArray(e)},object:function(e){return"object"===(0,p.default)(e)&&!v.array(e)},date:function(e){return e instanceof Date},timestamp:function(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:function(e){return"string"===typeof e.url},email:function(e){return"string"===typeof e&&!!e.match(d.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(d.url)},pattern:function(e,t){try{return new RegExp(e).test(t)}catch(n){return!1}},method:function(e){return"function"===typeof e},idcard:function(e){return"string"===typeof e&&!!e.match(d.idcard)},"url-https":function(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":function(e){return e.startsWith("://")},"url-web":function(e){return!1}},g=function(){function e(t){(0,u.default)(this,e),this._message=t}return(0,l.default)(e,[{key:"validateRule",value:function(){var e=(0,c.default)(o.default.mark((function e(t,n,r,i,a){var s,c,u,l,p,f,d,h,m;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=null,c=n.rules,u=c.findIndex((function(e){return e.required})),!(u<0)){e.next=8;break}if(null!==r&&void 0!==r){e.next=6;break}return e.abrupt("return",s);case 6:if("string"!==typeof r||r.length){e.next=8;break}return e.abrupt("return",s);case 8:if(l=this._message,void 0!==c){e.next=11;break}return e.abrupt("return",l["default"]);case 11:p=0;case 12:if(!(p-1&&(c=!0),c?null:m(e,o||n["enum"])},rangeNumber:function(e,t,n){if(!v.number(t))return m(e,e.errorMessage||n.pattern.mismatch);var r=e.minimum,o=e.maximum,i=e.exclusiveMinimum,a=e.exclusiveMaximum,s=i?t<=r:t=o:t>o;return void 0!==r&&s?m(e,e.errorMessage||n["number"][i?"exclusiveMinimum":"minimum"]):void 0!==o&&c?m(e,e.errorMessage||n["number"][a?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==o&&(s||c)?m(e,e.errorMessage||n["number"].range):null},rangeLength:function(e,t,n){if(!v.string(t)&&!v.array(t))return m(e,e.errorMessage||n.pattern.mismatch);var r=e.minLength,o=e.maxLength,i=t.length;return void 0!==r&&io?m(e,e.errorMessage||n["length"].maxLength):void 0!==r&&void 0!==o&&(io)?m(e,e.errorMessage||n["length"].range):null},pattern:function(e,t,n){return v["pattern"](e.pattern,t)?null:m(e,e.errorMessage||n.pattern.mismatch)},format:function(e,t,n){var r=Object.keys(v),o=h[e.format]?h[e.format]:e.format||e.arrayType;return r.indexOf(o)>-1&&!v[o](t)?m(e,e.errorMessage||n.typeError):null},arrayTypeFormat:function(e,t,n){if(!Array.isArray(t))return m(e,e.errorMessage||n.typeError);for(var r=0;ri)return 1;if(o=0}Object.defineProperty(t,"__esModule",{value:!0}),t.canIUseAnimate=function(){return o("2.9.0")},t.canIUseCanvas2d=function(){return o("2.9.0")},t.canIUseFormFieldButton=function(){return o("2.10.3")},t.canIUseGetUserProfile=function(){return!!e.getUserProfile},t.canIUseGroupSetData=function(){return o("2.4.0")},t.canIUseModel=function(){return o("2.9.3")},t.canIUseNextTick=function(){try{return e.canIUse("nextTick")}catch(t){return o("2.7.1")}},t.getSystemInfoSync=r}).call(this,n("3223")["default"])},"785c":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAGGZJREFUeF7tXQd4VEXXfs/2TSVi6L0GEBBRUBBRURH8FCygyG8XKSJSRBGlCoLwUSJSFJAiSpEi+IEIUoWAKNJEek1M6CSkbN/5n7mbhJTd7L279+7dqPM8S0J25pwz5525d2ZOGcLfoDB2NQaO6HrQuOqBoT5IUw/MXQXQRAIsEoRIMEQCiMrtbhaAbM+HsgF3NkiTAuY+DsIxaLXHAP1xIsos7eqh0tYBxhjBbm8IYm1BeACEVmCopEw/WBpAu8CwBYy2wWD4g4iYMryUoVoqAGaMRcPleAbM3RFgbQGKV0Yd/qiyywBtA7F10JqWl4YZHrYAM8Y0cNoeAWMvgqgzALM/9Yf4ewuIVoGxhdAZNxKRO8T8RbELO4CZLfM2aPQvgvA8GCqL6oXalQh/wYVvYKAFRMbDaotTkH/YAMyYrTEc7iEg6gpAF05KkiCLE0RLocUnRMZDEtopVlV1gJnDci9AQwB0BKC6PDJpmoGwFsw9jvQRSTLRDIiMagplVmsdaDEJwBMBSV56Gq2BDgOJTKfUEDnkADPGIuG0DQPwNgCTGp1WgacVYFOhM40h4vvu0JWQASzsX132bmDuiQAptG8NneIC4iQsxti7MJgWh2o/HRKAGWPl4LQtB9AmIMX8/Rr9DJ3xGSK6pHTXFAeYOayPAGwhQOWV7kzpos8uAvQi6U0blJRbMYAZYzrYbWOgwWAAGiU7UYppuwGaAJ1hGBE5leiHIgCzzMx4GHXfgaiVEkL/7WgylgS9qTMRXZa7b7IDzJilOpy0HkCC3ML+rekRTkKL9kSm03L2U1aAmd3eFOT+AUBFOYX8x9AipMLt7EiGqANy9Vk2gJnD0QZwrQFQRi7h/pF0iK6DaTqRXv+zHP2XBWDmtHUCY4vD0OIjh47UoMEtVc+TzvhdsMyDBpg5LPcBwjs33Mx5wepG7fY2QNue9PptwQgSFMC579yt/z6Wg4GgxLY3oKM2RMaDgXIIGGBmtdaCDklg+PcAI1Dti2rHLsJFrcgU2Oo6IIBZZmY5mPQ7ANQVJeO/lYLVwAnojPcGcrQpGWDGmBZO22YA9wUr9b/tJWiAsR3Qm+4nIpeEVtIN7MxhHQ/gPSlMQlnXZsnBmRN/4szxw/jrzEmkpZzFlYupsFpyYLV4LHUmcyRM5gjcWqESKlapgco16qBW/dtQo25DGE3hvFak8aQ3vi9Fn5JmMHNYHwWwNhzPlg/9thPb1q3A3p2b4XQ6pOggv65Ob8Cd97bD/R2fQaM77g6IhsKNuGPfY6Q38V2LqCIaYJaTUwUGzT4w3CqKcggqud1u/LJ1PdZ88wVSzpyQlWO12gno1L0nWrR9RFa6wRNjV+BgzSgiIkUMLVEAM8b0cNo2hZM999jBvfhq+jicO3lETD8DrlMroTFeePN91GnYNGAasjeU8D4WB7DL2htuzJBd0AAIupxOLJk9CeuXLwygdYBNiPBEtx54+pW+0Gi0ARKRuZkGfUhrmumPql+A2Y0bt8KsPwbQLf6IKf191o10TBn2Fo7/8bvSrLzS5+/lt0d9CnMED3NSu7BrsDjqU0zMlZIk8Q+w3TIXRK+q3R2+Ep44pCdSz8tqTZPcrWq162PwuM9RpqxK0TMFJSZ8QTpTz4ABZnZ7S5Cb+/Wq6pGRmXEdH739AtKSz/gBhIExj3M1E4YuQfgD/8ljxoQ/MlB+BV7Z7xgvxrNKzboYnrgI5si8YEXJ40SuBm7oNK2IDL/4Ilhi75jdsgdEd8klTSB07DYrPh70Ck4d8XEcyxg8EHrACwQwxrifej7++b8LNIURk0ubETg3/t9Gd9yDweM/h1ardhAG7SG9saVkgJnD2h6A6P1WIOCJaTN9zGDs3rKueNU8YAOYgWL4llRHGBBEeLjz83jxrQ+CJSdH+w6+9sY+ZzBzWLmZStXjyI3ffYOF08Z6ZmjuP54JJf2xKocWC9LIA7nPBxNwz4OPyU1eKr3tpDe19dbIq6ZybbxB2SGlSli0/uW0FAx5rRP4IzocSx7AUTGxGP/l94iNK6uymKwt6c3biwrhA2Ar96vix5KqlU8Gv44/ft+FPEWqJogvxvnvZqBVu/+g99BP1BbxB9KbeABfoVIMYGbPbgbS7lUz0m//L9sxaWhvQdBwBbioXKNnLEXN+repCTIDczUnQ+S+gkJ4AdjyOYjeUEtSfr489PXO+OtcbjBegZmilkw++RaQLaHpnfhg8gJ1RST6knTG13wCzBgzwWlLU9MFJ2nTWsz8+N18GcN1Bnt7ugyZOFdtK1Q6dMaKRJS/cCk0g5kt5yloNCvUHIaDX34MF5LPlgqAhX13AZN6/cbN8eHUEJ6RewPK7X6ajBEr874qDLDTugoMPOGJKmVv0mZMHfZWId6laQZzwUfNWCo4D6hWCN+RzvRkMYDZ9etlEGW+CMCglnDj33kNh/ftLjUAe1aBhZej9z78BHoOGaeWCjlfO7Is5SkuLp3/J38GM6flNTCao5Zkl9KSMej/vOzMwnmR5WWVrzcY8dm32xARFa2WKvnW43UymOcWAdi2GIw9p5ZUy+dNw+pFs4qxD+dHtGcC83PswpuRVweMxAP/6aKWKvlR3xLSGbsVBthh4Wn7Kqgl1cD/aw9+elW0lEaAGzS9C0Mnz1dLlZxvGulNQpoMYegxmy0BGqas70sJ3U0+fRxDe+SvC0rXO9jLi5h7fUxfsR1RMSrG4bmpARmNRz0Au6w94Ubx52OIxuB3X83EivmfeeUW7jPY12P6jXfHok171TYk/N3Riwymzz0AO9V9/47s261Ee28gNt4Qjc1cNkWW0gBa3v8o+g7jacBUKrnvYQ/Adus5EKqpIUp25g30fqo1mLt4Ls8wX0Dnq8vbQisyOhYzV+4AaVRyhmE4TwZTdco9nsxRy7iwZ9sGTBs9IOjHs8lkQmRUFK5eKdEHTZEx7A1gzmj0zGWoWa+RIjxFEGXQGSOI2bKaQKOTLWWACMaFqiz87GNsXPV10AC/8uqrqFChAiZOmACnU5GENSV2zRvI3Xu/h0efeVGqSuSr73Y2JbXPnz944ymcP3UsKIDvaN4cPXv1Emhs3boFi7/+Rj4liaTkDWAeBsPdbFUr/FyaOWzvA+xjNYSwWS3o8Z+7BJuvD4T9OtGVKVMGI0aNQkRERD6JL2bNwt693KQduuIN4Lhby+PTpTwQU61CQ4g5bfPA2MtqiMAd2Lk7rK8iZovUf+BANGjQoBAJq9WKsWPG4NJFfrQemuJL1unLtyNGLXcebh9mDvXcc35cuQiLpvs+mPcH8EMPP4QuXZ/1imBycjI+GTcODkdgkYaBDAtv8r4zbhaatlAtRed6/ojeBTBVYiXnThqOretKMD8zQG+KQLfnunrdCrdo0QI6vd4nFidPnlRsFtvdWqxYthR2C7+hx1OE3XARH5nn3hiEx55VKzCEdvMZzFfQTQIZscG2KfGAI5e4KSISiYlTg2Ule3sXI7zzzhDk3Ch5W6ay+fAgMaf1DBhqyK4BEQR7PN4C1pyS82ObTGYkTlNxJVpCP/q/PQCWnJsz2FtVbvznTgCqFMJZYg7LVTUiBzOuXUHfLl59tQvpgh9gJE6bpop+/DHt368fLBZLidUiIqPx+ZrCTgz+6Mr4/SX+iOYShjy1/tGDezF2gP9DgNIOMAdrxsqfER2rSvStVTWAf96wGl98MrTYYK1cuTLaPfQQqlarBg0RUtPS0OKuu/zuh2Uc9aJJ/bpnDypWrAg3Y0g+fx4//fQTUv/6q1j7UdOXgGcKUKFwgNV5RHszEba9/3507doF9oxLsGelI6pCTehMecHWxS02Kigsd7l8M4rRac1GVtppGKLjoI8th2VLl2H7tsJRP28Nn4wWbXksX6gLu6baImvOf4dh2w/53p2oXr063n3vXWSmHIE5riKMsfFFgsx4fK+XfUjIdZbLsMB2iO9/bRmXYbmehugqDTBxwkScPXvT9ff5XoPRoYsKZ0meRZaVX8XWMNR64tH6B3/lyfI8ZcjQoShrdMJcpgL0ET4c1sJoEnvTlyMnE5brF3DVpsX4cTcPcPg+mO+HVSgHVTvoKGhkMBgMwko54+whxNUKo2w2xRDxP8Kunz6A2BqN0a9v3/xTNPWC0zwHHT8CCHkyqL7P3IeM61cFFVaqVEkwGPDRb47z5/fnX8kqzJR8lnl9GDViBFJTU4W/N2p+D4ZMUMUjeb0qxgb+znr5kaZwuz1pF7UaDSYnJoJvicK5CBYjEesAm80GvkfmgXS88KRqY79QISKIaCFfRQ8FaGwoFZt9IwO9nix8IctLr7yMVq1alyxGWExe/0Ls3LEDCxfcjDS8Jb48EpeoYTakodzg3xUaTUjP0i6lJmPQC4WjGCIjIzF85Ehw+25pLunp6Rg1Yjhycm6ecPHEp7P/92vou+V2P6uKy87Z44cxrDe/JrhwiY+Px0svv4y69eoV+oI/6jQavi9RPzdHnmAemQo71J04fhzz583DFS9+YQs2HIRGG+IseYLLjicmOKROd0f27xFSI3krPMFKnTp1hJMs/ntKcjIe79QJdeuGV+7xEydO4PvVq1GlalXBI4WfZHHzpC/vlM9X7w51vJLH6Y4rOdRus/t2bcXkD98U/ch69rnn8GC7dqLrh6Li5k2bsHTJEtGsuOsOd+EJWclzmxUADrHjO897xfNfiS2NGjVCv/79xVYPSb1piYn4448/RPOauGAtKlQJoVW2iON7T1DoQle2r1+F2RM/FK0cnU6HKVMTYTCqFrpcSFa7zY5BAwfAbreL7sPHs1ehaq3CawvRjQOpqEEv0uaFroQ4+GzTmqWYnzhakth9+/VD48aqWGSKyXno0CF89qk0J4SQR/4XDD7zPKatqWChuXPwx5VfYdF0fvWD+NKwYUO8PcB7BIR4KvLUTJwyFX/+yY/wxZfhny5C3UbNxDcIqia7QHqzcH9kgQj/0AWgrft2PhbPmii5CwMHDUL9BHUvNT169CimTJIeVPbh1AWo3/hOyX0OqIHXAHC75TVQaFI4/G/JXCydPVmy7DVq1sSQ999XLVcl3wJxf2u+JZJaeEA4DwwPSSH2OumKpnAIYRKW7xfPwbI5UwLq65NPPYVHO3QIqG2wjdb/8ANWrbxpw5ZCb+jkeWjQtIWUJoHWtcNir0QxMYIlR5U0St8vno1lcwJzheWHH33efBNNmobWrHjwwAHMmD7dd5iNHzhCBrCvNErCQitE59LBzGAup9FoxHtDhqBylSqBjnJJ7VJSUjBh/HhwK1Gg5YMpC5DQJATvYH7+bIxYlidn4RkcolSGa5d+iSVfSF+oFFRudHQ0er/5JmrXrh2ozkW1O3XyJGbMmIGszExR9X1VGpb4FerddkdQNEQ0LjmVoTCLnba5YEzRWIsfli/ANzMniJC35CparRbdX3gBrVv7MTMGyCkpKQmLFi6EyyXpukCv3EZOX4zaCQoHkPhLRioAHIJ0whtWfY2vPpMvYpV7Y3bq1EmI8JejZGdlYc2aNdi6ZYsc5AQaY2YtR/W6haMgZSPuISQunbBQ02HldzUo5ue5/cdVmD1B/FGlGEVwb5CHHn5Y+JjNgV0wyaMUftq4UfjwEFQ5y0ezvhUuv1SwrCe9qdj2QpWU/vt3b8OkD/oo0td6dWrh9W6dYYwpC0P0LdD4uRXF7XLCnnkNthtXMXfxdzh2Upl7mZQ/yZKQ0t8zi207AVbYr0YmSE7+eQCj3npeJmqFydSsXgWvPHEz5klrMEFrMHs+Rs/MdtkscNnzPjdn6rw123DmnKg7HyXLPnza16jb8HbJ7cQ1oCTSG70uRHzfuuK0PgGG1eIYSKvFbwp9/3VlkoQVBViKZEoC/PGcVahaUyFrEqET6UxrvPW15IuxHLZfASb75u3Khb8woLsynrrhCvDkrzcgvkJlKeNNXF2GfWQw+dx/lQwws98Np3C1nazOUJkZ6ejzlDJbm2pVK6HH04+AuaSlbiCtHrNXbMT55OLBY+I0XXKtmSt3IipWdodCBrhbkz5ily/ufoFjdss8EMkaWOOw2/FqB2VMZ+XKl8fojz6CPfMq7FnXYc/JhMuaDZbrg52nCNJooTVFwhARDUNUHAzRZTFi2DBcVChxy7z1+8BvGJe1MDafDGbvzm25jPwDnJlZDib9UQBxcgr30iNN4JbhAKGoTBzgj8aM8SoqX1jxwhdc3srwDz9UBGB+v+H8DTLnmiO6Dos9gaKjL5WEi1+AhRW1AhdE9+rcCtmZGXKOGYFWSQD7Y6YUwDyt8MxVO/2xl/a9XBdECwAzpoXTxoNeZXtxDn6pIy6knJPWKRG1wxFg7mzHne5kLDuhM7YlIr9nqKJmsACyxVIDOuJXb8vyqB7drztOHN4vW58jDCZUjI1H5XIV0b1/j4DoLk6cg+SLqUjLuIwcu3wnWfVua4ZhiYsCkqlYI/5odrjvILP5ZgByCZRFAyyAbMvuDI2WW7wltfPGn1/V/ntSYPE6kUYz6sRXQ9VbKqBKXDnUKVcd5WNuXg6Zc1dZQCtRRBdDxK+eaEdeLt64ipOXziHl+iUkX7uAk5fPI9tWcsIVX3pu3rod+o+W5qTngxa/1/ZJ0hlFn09I1ILgJD8FhKCdlOdOGoGt65aLGtUc0EaV6qBJlXqoV646KpYp+Xp1W+0ouOKlRSpqL1thPFVySiQ+s49fPIeDKcdxOPWkaMAfeOwZvDpwlKi++qk0lfQmSZ6H0gFmTA+nbQ+AoM7dvp07FWu+me21PwadHg0r1sbtVesLP/0BWpSI26yFtUkZ8YlbGIPpYDo0Fr+vtEKs0tIv48+0U9iffEwA3OHynsb4ieffQJfX3g4SYLYHOtO9RCRpgy8Z4Nz3cTVo6edgssQXtQnrtTo0qFgLzaomoGWtJojOT74SmF4clcxwVMtL4FIyDf35bOhTA3v85lHOtGbjl9MHsS/5KI6knS4Edvc+7+HRp/2njPIpJcN5uFgbMpsle/sFBLAAstVaF1rwU65bA4Fg1+Z1mDF2MOKj49C+UWu0rt0MUaabKYEDoVm0jaMiBznC90x2M+iTs6FPk29BxWXgYCed2o8fDyfhcuY19Bk6Afe0C/SWcHYVLmpFJtPxQHQSMMACyPbsO0HaTQBipDJPOfA7zq/+Hi1rNRUi/JUq/HHtqBoBV6zh5sLLxaDNcAjgSn0sS5HT5XYLs7pap8dRpWkAJ3dEN+CmdmQw/CaFb8G6QQEsgOxwtAVcPM+HUZQQGZnAoWPAeU/+in9MqVYJaFwfiBV95Z0N0LYnvb5w0i2JCgsaYAFkj2mRx1L6dqWw2YF9fwJnkvnJiUQx/ybVea7hmlWBZg2BkgPpbCBXV9JFejUBStGGLADnzuQ2IPdqMFb8ICT1IrB7P2AN3O1USqfCvq7JCLS8HajsNV44HWCdSW8Oaubm6UA2gD3v5Kym0OjWgUG4N0+Yqb8fBo4p4wYT9kD6EzChFnB7I0BITyGUNDBNBzIYZLNMyAqwgKnFUh1a+hFuV31s2wNcuOyvm//s7yvEA/e3BDSaI9CxDkRmWQ/oZQfYM3FZPHbs/gmnkxV2BP6bjI261Q+iUcIDFBt7Te4eKQKwAPK6dUY4aA4ysrqDMcX4yK2QkNIjYoiJWgQD60EdOyqyQFFc8Wzthm5Iz/oSTqe0w+GQaloFZnqdBWViXqGODymao0xxgIXZvHlHfVy6sgw2+7+PbK4Qk+kAKpTrQm3vPqH00AoJwALII0dq0LzVO8jMGgmHM7DQA6W1oTR9vc6K6KgR2Jv0Xxo5svh1qwrwDxnAebKzTUmVkZ4+FTnZT8P9D3k3a4ghMnIFKpTpT61aKeO26WNwhBzgfKA3bG6H65nTYbXVV2Dghg9Js+kIysb2pXZtA/NuCLInqgGcu50irN/8ErIsg5GTo2hkVpB6kt480nwE5oiJ6PjgfOKrZZWKqgAX7DPbuP0xZNx4FzmWNqV2W8WBjDBvwy3RE+nBtutUwrQQ27ABOP/RvT2pBS5deQNOdzfY7PIaiJXSuNGQA51mMcrHzaY2bX5Rik0gdMMO4Hygt2zRwaF9DhkZXWB3dITTqQukg4q10ekcMOjWIa7McmhdS+iBB0J/7biIzoUtwIUe37/9FotLGS8gJ+dxOFz3wW5X59DEYLBCr92OiIjvUavyAkpICC5xhwiAgq1SKgAu2km2PaktLl9tBdDjsDuaw+6QOegnl6PRYINe/xvgXotyt+6iNvdsDVbhoW5fKgEuBviOHZXg0t6NzBu1kJUTD4P+HoBqwO2OgJuZ4Hbr4XZr4XJ5fIO0Wp6u3QWNxgENWaHR5ADsLKz23YiJvoToqNPQGnfTvXeUereT/wdi29kqXXm2EQAAAABJRU5ErkJggg=="},"79ce":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.basic=void 0;var n=Behavior({methods:{$emit:function(e,t,n){this.triggerEvent(e,t,n)},set:function(t){return this.setData(t),new Promise((function(t){return e.nextTick(t)}))}}});t.basic=n}).call(this,n("3223")["default"])},"7ca3":function(e,t,n){var r=n("d551");e.exports=function(e,t,n){return t=r(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"7ce1":function(e,t,n){var r=n("b4d2"),o=n("7647"),i=n("4965"),a=n("931d1");function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"7d11":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!==typeof t||"[object Function]"!==i.call(t))throw new TypeError(r+t);for(var n,a=o.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,a.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(o.call(arguments)))},c=Math.max(0,t.length-a.length),u=[],l=0;l-1?o(n):n}},"828b":function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s,c,u){var l,p="function"===typeof e?e.options:e;if(c){p.components||(p.components={});var f=Object.prototype.hasOwnProperty;for(var d in c)f.call(c,d)&&!f.call(p.components,d)&&(p.components[d]=c[d])}if(u&&("function"===typeof u.beforeCreate&&(u.beforeCreate=[u.beforeCreate]),(u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(p.mixins||(p.mixins=[])).push(u)),t&&(p.render=t,p.staticRenderFns=n,p._compiled=!0),r&&(p.functional=!0),i&&(p._scopeId="data-v-"+i),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},p._ssrRegister=l):o&&(l=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(p.functional){p._injectStyles=l;var h=p.render;p.render=function(e,t){return l.call(t),h(e,t)}}else{var m=p.beforeCreate;p.beforeCreate=m?[].concat(m,l):[l]}return{exports:e,options:p}}n.d(t,"a",(function(){return r}))},"861b":function(e,t,n){"use strict";(function(e,r,o){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.uniCloud=t.default=t.UniCloudError=void 0;var a=i(n("7eb4")),s=i(n("3352")),c=i(n("34cf")),u=i(n("3b2d")),l=i(n("af34")),p=i(n("ee10")),f=i(n("7ca3")),d=i(n("8ffa")),h=i(n("4ffb")),m=i(n("b4d2")),v=i(n("7ce1")),g=i(n("67ad")),y=i(n("0bdb")),w=i(n("6bc7"));function b(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(i=0;i>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},i=0;i>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},p=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,s=o/(4*i),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,u=e.min(4*c,o);if(c){for(var l=0;l>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],c=e[t+1],d=e[t+2],h=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],y=e[t+7],w=e[t+8],b=e[t+9],x=e[t+10],_=e[t+11],k=e[t+12],S=e[t+13],A=e[t+14],O=e[t+15],P=i[0],T=i[1],I=i[2],D=i[3];P=u(P,T,I,D,a,7,s[0]),D=u(D,P,T,I,c,12,s[1]),I=u(I,D,P,T,d,17,s[2]),T=u(T,I,D,P,h,22,s[3]),P=u(P,T,I,D,m,7,s[4]),D=u(D,P,T,I,v,12,s[5]),I=u(I,D,P,T,g,17,s[6]),T=u(T,I,D,P,y,22,s[7]),P=u(P,T,I,D,w,7,s[8]),D=u(D,P,T,I,b,12,s[9]),I=u(I,D,P,T,x,17,s[10]),T=u(T,I,D,P,_,22,s[11]),P=u(P,T,I,D,k,7,s[12]),D=u(D,P,T,I,S,12,s[13]),I=u(I,D,P,T,A,17,s[14]),P=l(P,T=u(T,I,D,P,O,22,s[15]),I,D,c,5,s[16]),D=l(D,P,T,I,g,9,s[17]),I=l(I,D,P,T,_,14,s[18]),T=l(T,I,D,P,a,20,s[19]),P=l(P,T,I,D,v,5,s[20]),D=l(D,P,T,I,x,9,s[21]),I=l(I,D,P,T,O,14,s[22]),T=l(T,I,D,P,m,20,s[23]),P=l(P,T,I,D,b,5,s[24]),D=l(D,P,T,I,A,9,s[25]),I=l(I,D,P,T,h,14,s[26]),T=l(T,I,D,P,w,20,s[27]),P=l(P,T,I,D,S,5,s[28]),D=l(D,P,T,I,d,9,s[29]),I=l(I,D,P,T,y,14,s[30]),P=p(P,T=l(T,I,D,P,k,20,s[31]),I,D,v,4,s[32]),D=p(D,P,T,I,w,11,s[33]),I=p(I,D,P,T,_,16,s[34]),T=p(T,I,D,P,A,23,s[35]),P=p(P,T,I,D,c,4,s[36]),D=p(D,P,T,I,m,11,s[37]),I=p(I,D,P,T,y,16,s[38]),T=p(T,I,D,P,x,23,s[39]),P=p(P,T,I,D,S,4,s[40]),D=p(D,P,T,I,a,11,s[41]),I=p(I,D,P,T,h,16,s[42]),T=p(T,I,D,P,g,23,s[43]),P=p(P,T,I,D,b,4,s[44]),D=p(D,P,T,I,k,11,s[45]),I=p(I,D,P,T,O,16,s[46]),P=f(P,T=p(T,I,D,P,d,23,s[47]),I,D,a,6,s[48]),D=f(D,P,T,I,y,10,s[49]),I=f(I,D,P,T,A,15,s[50]),T=f(T,I,D,P,v,21,s[51]),P=f(P,T,I,D,k,6,s[52]),D=f(D,P,T,I,h,10,s[53]),I=f(I,D,P,T,x,15,s[54]),T=f(T,I,D,P,c,21,s[55]),P=f(P,T,I,D,w,6,s[56]),D=f(D,P,T,I,O,10,s[57]),I=f(I,D,P,T,g,15,s[58]),T=f(T,I,D,P,S,21,s[59]),P=f(P,T,I,D,m,6,s[60]),D=f(D,P,T,I,_,10,s[61]),I=f(I,D,P,T,d,15,s[62]),T=f(T,I,D,P,b,21,s[63]),i[0]=i[0]+P|0,i[1]=i[1]+T|0,i[2]=i[2]+I|0,i[3]=i[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<>>32-i)+t}function l(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<>>32-i)+t}function p(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<>>32-i)+t}function f(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),n.MD5)})),A((function(e,t){var n;e.exports=(n=P,void function(){var e=n,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,c=a.words,u=0;u>>6-a%4*2;o[i>>>2]|=(s|c)<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,r=t.retryRule,o=void 0===r?V:r;(0,g.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=o}return(0,y.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case V:return this.status===B;case $:return this.status!==R}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=R,this.promise=this.createPromise().then((function(t){return e.status=j,Promise.resolve(t)}),(function(t){return e.status=B,Promise.reject(t)})),this.promise):this.promise}}]),e}(),z=function(){function e(){(0,g.default)(this,e),this._callback={}}return(0,y.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{};return t=Y,n=e,Object.prototype.hasOwnProperty.call(t,n)||(Y[e]=r),Y[e]}"app"===K&&(Y=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var X=["invoke","success","fail","complete"],ee=Q("_globalUniCloudInterceptor");function te(e,t){ee[e]||(ee[e]={}),N(t)&&Object.keys(t).forEach((function(n){X.indexOf(n)>-1&&function(e,t,n){var r=ee[e][t];r||(r=ee[e][t]=[]),-1===r.indexOf(n)&&L(n)&&r.push(n)}(e,n,t[n])}))}function ne(e,t){ee[e]||(ee[e]={}),N(t)?Object.keys(t).forEach((function(n){X.indexOf(n)>-1&&function(e,t,n){var r=ee[e][t];if(r){var o=r.indexOf(n);o>-1&&r.splice(o,1)}}(e,n,t[n])})):delete ee[e]}function re(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function oe(e,t){return ee[e]&&ee[e][t]||[]}function ie(e){te("callObject",e)}var ae=Q("_globalUniCloudListener"),se={RESPONSE:"response",NEED_LOGIN:"needLogin",REFRESH_TOKEN:"refreshToken"},ce={CLIENT_DB:"clientdb",CLOUD_FUNCTION:"cloudfunction",CLOUD_OBJECT:"cloudobject"};function ue(e){return ae[e]||(ae[e]=[]),ae[e]}function le(e,t){var n=ue(e);n.includes(t)||n.push(t)}function pe(e,t){var n=ue(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function fe(e,t){for(var n=ue(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),n}((0,v.default)(Error));t.UniCloudError=ge;var ye,we,be={request:function(e){return r.request(e)},uploadFile:function(e){return r.uploadFile(e)},setStorageSync:function(e,t){return r.setStorageSync(e,t)},getStorageSync:function(e){return r.getStorageSync(e)},removeStorageSync:function(e){return r.removeStorageSync(e)},clearStorageSync:function(){return r.clearStorageSync()},connectSocket:function(e){return r.connectSocket(e)}};function xe(){return{token:be.getStorageSync(C)||be.getStorageSync("uniIdToken"),tokenExpired:be.getStorageSync(E)}}function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&be.setStorageSync(C,t),n&&be.setStorageSync(E,n)}function ke(){return ye||(ye="mp-weixin"===K&&o.canIUse("getAppBaseInfo")&&o.canIUse("getDeviceInfo")?k(k({},r.getAppBaseInfo()),r.getDeviceInfo()):r.getSystemInfoSync()),ye}var Se={};function Ae(){var e=r.getLocale&&r.getLocale()||"en";if(we)return k(k(k({},Se),we),{},{locale:e,LOCALE:e});var t=ke(),n=t.deviceId,o=t.osName,i=t.uniPlatform,a=t.appId,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(var c in t)Object.hasOwnProperty.call(t,c)&&-1===s.indexOf(c)&&delete t[c];return we=k(k({PLATFORM:i,OS:o,APPID:a,DEVICEID:n},function(){var e,t;try{if(r.getLaunchOptionsSync){if(r.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=r.getLaunchOptionsSync(),o=n.scene,i=n.channel;e=i,t=o}}catch(e){}return{channel:e,scene:t}}()),t),k(k(k({},Se),we),{},{locale:e,LOCALE:e})}var Oe,Pe={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),T(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){var o=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",i=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return r(new ge({code:o,message:i,requestId:t}))}var a=e.data;if(a.error)return r(new ge({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))},toBase64:function(e){return D.stringify(I.parse(e))}},Te=function(){function e(t){var n=this;(0,g.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=be,this._getAccessTokenPromiseHub=new q({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new ge({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:$})}return(0,y.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return Pe.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Pe.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Pe.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,p.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(k(k({},this.setupRequest(t)),{},{timeout:e.timeout}))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,o=e.name,i=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:r,name:o,filePath:i,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new ge({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new ge({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,p.default)(a.default.mark((function e(t){var n,r,o,i,s,c,u,l,p,f,d,h,m,v,g,y,w,b,x,_,k,S;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,o=t.fileType,i=void 0===o?"image":o,s=t.cloudPathAsRealPath,c=void 0!==s&&s,u=t.onUploadProgress,l=t.config,"string"===M(r)){e.next=3;break}throw new ge({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){e.next=5;break}throw new ge({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new ge({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(p=l&&l.envType||this.config.envType,!(c&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){e.next=10;break}throw new ge({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:p,filename:c?r.split("/").pop():r,fileId:c?r:void 0});case 12:return f=e.sent.result,d="https://"+f.cdnDomain+"/"+f.ossPath,h=f.securityToken,m=f.accessKeyId,v=f.signature,g=f.host,y=f.ossPath,w=f.id,b=f.policy,x=f.ossCallbackUrl,_={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:m,Signature:v,host:g,id:w,key:y,policy:b,success_action_status:200},h&&(_["x-oss-security-token"]=h),x&&(k=JSON.stringify({callbackUrl:x,callbackBody:JSON.stringify({fileId:w,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),_.callback=Pe.toBase64(k)),S={url:"https://"+f.host,formData:_,fileName:"file",name:"file",filePath:n,fileType:i},e.next=27,this.uploadFileToOSS(Object.assign({},S,{onUploadProgress:u}));case 27:if(!x){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:d});case 29:return e.next=31,this.reportOSSUpload({id:w});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:d});case 33:throw new ge({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.fileList;return new Promise((function(t,r){Array.isArray(n)&&0!==n.length||r(new ge({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e.getFileInfo({fileList:n}).then((function(e){t({fileList:n.map((function(t,n){var r=e.fileList[n];return{fileID:t,tempFileURL:r&&r.url||t}}))})}))}))}},{key:"getFileInfo",value:function(){var e=(0,p.default)(a.default.mark((function e(){var t,n,r,o=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new ge({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(r));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Ie={init:function(e){var t=new Te(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},De="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Oe||(Oe={}));var Ce,Ee=function(){},Fe=A((function(e,t){var n;e.exports=(n=P,function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),c[o]=n(e.pow(r,1/3)),o++),r++}();var u=[],l=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],p=n[6],f=n[7],d=0;d<64;d++){if(d<16)u[d]=0|e[t+d];else{var h=u[d-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=u[d-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[d]=m+u[d-7]+g+u[d-16]}var y=r&o^r&i^o&i,w=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&p)+c[d]+u[d];f=p,p=l,l=s,s=a+b|0,a=i,i=o,o=r,r=b+(w+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+p|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),n.SHA256)})),Re=Fe,je=A((function(e,t){e.exports=P.HmacSHA256})),Be=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new ge({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};function Me(e){return void 0===e}function Ne(e){return"[object Null]"===Object.prototype.toString.call(e)}function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function Ue(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",r=0;r=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),We={},Je={};function Ke(e){return We[e]}var Ge=(0,y.default)((function e(t,n){(0,g.default)(this,e),this.data=n||null,this.name=t})),Ze=function(e){(0,d.default)(n,e);var t=S(n);function n(e,r){var o;return(0,g.default)(this,n),o=t.call(this,"error",{error:e,data:r}),o.error=e,o}return(0,y.default)(n)}(Ge),Ye=new(function(){function e(){(0,g.default)(this,e),this._listeners={}}return(0,y.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Ze)return console.error(e.error),this;var n="string"==typeof e?new Ge(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var o,i=this._listeners[r]?(0,l.default)(this._listeners[r]):[],a=b(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.call(this,n)}}catch(c){a.e(c)}finally{a.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Qe(e,t){Ye.on(e,t)}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ye.fire(e,t)}function et(e,t){Ye.off(e,t)}var tt,nt="loginStateChanged",rt="loginStateExpire",ot="loginTypeChanged",it="anonymousConverted",at="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(tt||(tt={}));var st=function(){function e(){(0,g.default)(this,e),this._fnPromiseMap=new Map}return(0,y.default)(e,[{key:"run",value:function(){var e=(0,p.default)(a.default.mark((function e(t,n){var r,o=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._fnPromiseMap.get(t),e.abrupt("return",(r||(r=new Promise(function(){var e=(0,p.default)(a.default.mark((function e(r,i){var s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o._runIdlePromise();case 3:return s=n(),e.t0=r,e.next=7,s;case 7:e.t1=e.sent,(0,e.t0)(e.t1),e.next=14;break;case 11:e.prev=11,e.t2=e["catch"](0),i(e.t2);case 14:return e.prev=14,o._fnPromiseMap.delete(t),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})));return function(t,n){return e.apply(this,arguments)}}()),this._fnPromiseMap.set(t,r)),r));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_runIdlePromise",value:function(){return Promise.resolve()}}]),e}(),ct=function(){function e(t){(0,g.default)(this,e),this._singlePromise=new st,this._cache=Ke(t.env),this._baseURL="https://".concat(t.env,".ap-shanghai.tcb-api.tencentcloudapi.com"),this._reqClass=new Ve.adapter.reqClass({timeout:t.timeout,timeoutMsg:"请求在".concat(t.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]})}return(0,y.default)(e,[{key:"_getDeviceId",value:function(){if(this._deviceID)return this._deviceID;var e=this._cache.keys.deviceIdKey,t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Ue(),this._cache.setStore(e,t)),this._deviceID=t,t}},{key:"_request",value:function(){var e=(0,p.default)(a.default.mark((function e(t,n){var r,o,i,s,c,u=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:{},o={"x-request-id":Ue(),"x-device-id":this._getDeviceId()},!r.withAccessToken){e.next=9;break}return i=this._cache.keys.tokenTypeKey,e.next=6,this.getAccessToken();case 6:s=e.sent,c=this._cache.getStore(i),o.authorization="".concat(c," ").concat(s);case 9:return e.abrupt("return",this._reqClass["get"===r.method?"get":"post"]({url:"".concat(this._baseURL).concat(t),data:n,headers:o}));case 10:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_fetchAccessToken",value:function(){var e=(0,p.default)(a.default.mark((function e(){var t,n,r,o,i,s,c,u,l,f,d=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.loginTypeKey,r=t.accessTokenKey,o=t.accessTokenExpireKey,i=t.tokenTypeKey,s=this._cache.getStore(n),!s||s===tt.ANONYMOUS){e.next=3;break}throw new ge({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});case 3:return e.next=5,this._singlePromise.run("fetchAccessToken",(0,p.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,d._request("/auth/v1/signin/anonymously",{},{method:"post"});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)}))));case 5:return c=e.sent,u=c.access_token,l=c.expires_in,f=c.token_type,e.abrupt("return",(this._cache.setStore(i,f),this._cache.setStore(r,u),this._cache.setStore(o,Date.now()+1e3*l),u));case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isAccessTokenExpired",value:function(e,t){var n=!0;return e&&t&&(n=t0&&void 0!==arguments[0]?arguments[0]:{};(0,g.default)(this,e),this.config=n,this._reqClass=new Ve.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=Ke(this.config.env),this._localCache=(t=this.config.env,Je[t]),this.oauth=new ct(this.config),pt(this._reqClass,"post",[ft]),pt(this._reqClass,"upload",[ft]),pt(this._reqClass,"download",[ft])}return(0,y.default)(e,[{key:"post",value:function(){var e=(0,p.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"upload",value:function(){var e=(0,p.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"download",value:function(){var e=(0,p.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,p.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var e=(0,p.default)(a.default.mark((function e(){var t,n,r,o,i,s,c,u,l,p,f,d,h;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey,i=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),c=this._cache.getStore(o),c){e.next=5;break}throw new ge({message:"未登录CloudBase"});case 5:return u={refresh_token:c},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(l=e.sent,!l.data.code){e.next=21;break}if(p=l.data.code,"SIGN_PARAM_INVALID"!==p&&"REFRESH_TOKEN_EXPIRED"!==p&&"INVALID_REFRESH_TOKEN"!==p){e.next=20;break}if(this._cache.getStore(i)!==tt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==p){e.next=19;break}return f=this._cache.getStore(s),d=this._cache.getStore(o),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:d});case 17:return h=e.sent,e.abrupt("return",(this.setRefreshToken(h.refresh_token),this._refreshAccessToken()));case 19:Xe(rt),this._cache.removeStore(o);case 20:throw new ge({code:l.data.code,message:"刷新access token失败:".concat(l.data.code)});case 21:if(!l.data.access_token){e.next=23;break}return e.abrupt("return",(Xe(at),this._cache.setStore(n,l.data.access_token),this._cache.setStore(r,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire}));case 23:l.data.refresh_token&&(this._cache.removeStore(o),this._cache.setStore(o,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var e=(0,p.default)(a.default.mark((function e(){var t,n,r,o,i,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey,this._cache.getStore(o)){e.next=3;break}throw new ge({message:"refresh token不存在,登录状态异常"});case 3:if(i=this._cache.getStore(n),s=this._cache.getStore(r),c=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(i,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!i||!s||s2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),o="";for(var i in n)""===o?!r&&(t+="?"):o+="&",o+="".concat(i,"=").concat(encodeURIComponent(n[i]));return/^http(s)?\:\/\//.test(t+=o)?t:"".concat(e).concat(t)}(De,"//tcb-api.tencentcloudapi.com/web",v),m&&(g+=m),e.next=28,this.post(k({url:g,data:c},p));case 28:if(y=e.sent,w=y.header&&y.header["x-tcb-trace"],w&&this._localCache.setStore(o,w),(200===Number(y.status)||200===Number(y.statusCode))&&y.data){e.next=32;break}throw new ge({code:"NETWORK_ERROR",message:"network request error"});case 32:return e.abrupt("return",y);case 33:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,p.default)(a.default.mark((function e(t){var n,r,o,i,s=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},r=s.length>2&&void 0!==s[2]?s[2]:{},e.next=4,this.request(t,n,k(k({},r),{},{onUploadProgress:n.onUploadProgress}));case 4:if(o=e.sent,"ACCESS_TOKEN_DISABLED"!==o.data.code&&"ACCESS_TOKEN_EXPIRED"!==o.data.code||-1!==ut.indexOf(t)){e.next=14;break}return e.next=8,this.oauth.refreshAccessToken();case 8:return e.next=10,this.request(t,n,k(k({},r),{},{onUploadProgress:n.onUploadProgress}));case 10:if(i=e.sent,!i.data.code){e.next=13;break}throw new ge({code:i.data.code,message:Le(i.data.message)});case 13:return e.abrupt("return",i.data);case 14:if(!o.data.code){e.next=16;break}throw new ge({code:o.data.code,message:Le(o.data.message)});case 16:return e.abrupt("return",o.data);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(o,e)}}]),e}(),ht={};function mt(e){return ht[e]}var vt=function(){function e(t){(0,g.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=mt(t.env)}return(0,y.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(o,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,o=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(o,t)}},{key:"refreshUserInfo",value:function(){var e=(0,p.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),gt=function(){function e(t){if((0,g.default)(this,e),!t)throw new ge({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Ke(this._envId),this._request=mt(this._envId),this.setUserInfo()}return(0,y.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new ge({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new ge({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,p.default)(a.default.mark((function e(){var t,n,r,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,o=n.users,e.abrupt("return",(o.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:o,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,p.default)(a.default.mark((function e(t){var n,r,o,i,s,c,u,l;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,o=t.avatarUrl,i=t.province,s=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:o,province:i,country:s,city:c});case 8:u=e.sent,l=u.data,this.setLocalUserInfo(l);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refresh",value:function(){var e=(0,p.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.oauth.getUserInfo();case 2:return t=e.sent,e.abrupt("return",(this.setLocalUserInfo(t),t));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),yt=function(){function e(t){if((0,g.default)(this,e),!t)throw new ge({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Ke(t);var n=this._cache.keys,r=n.refreshTokenKey,o=n.accessTokenKey,i=n.accessTokenExpireKey,a=this._cache.getStore(r),s=this._cache.getStore(o),c=this._cache.getStore(i);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:c},this.user=new gt(t)}return(0,y.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===tt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===tt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===tt.WECHAT||this.loginType===tt.WECHAT_OPEN||this.loginType===tt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),wt=function(e){(0,d.default)(n,e);var t=S(n);function n(){return(0,g.default)(this,n),t.apply(this,arguments)}return(0,y.default)(n,[{key:"signIn",value:function(){var e=(0,p.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),e.next=3,this._request.oauth.getAccessToken();case 3:return Xe(nt),Xe(ot,{env:this.config.env,loginType:tt.ANONYMOUS,persistence:"local"}),t=new yt(this.config.env),e.next=8,t.user.refresh();case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,p.default)(a.default.mark((function e(t){var n,r,o,i,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,o=n.refreshTokenKey,i=this._cache.getStore(r),s=this._cache.getStore(o),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:s,ticket:t});case 7:if(c=e.sent,!c.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Xe(it,{env:this.config.env}),Xe(ot,{loginType:tt.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new ge({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,tt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(vt),bt=function(e){(0,d.default)(n,e);var t=S(n);function n(){return(0,g.default)(this,n),t.apply(this,arguments)}return(0,y.default)(n,[{key:"signIn",value:function(){var e=(0,p.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ge({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Xe(nt),Xe(ot,{env:this.config.env,loginType:tt.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new yt(this.config.env));case 15:throw new ge({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(vt),xt=function(e){(0,d.default)(n,e);var t=S(n);function n(){return(0,g.default)(this,n),t.apply(this,arguments)}return(0,y.default)(n,[{key:"signIn",value:function(){var e=(0,p.default)(a.default.mark((function e(t,n){var r,o,i,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ge({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(o=e.sent,i=o.refresh_token,s=o.access_token,c=o.access_token_expire,!i){e.next=22;break}if(this.setRefreshToken(i),!s||!c){e.next=15;break}this.setAccessToken(s,c),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Xe(nt),Xe(ot,{env:this.config.env,loginType:tt.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new yt(this.config.env));case 22:throw o.code?new ge({code:o.code,message:"邮箱登录失败: ".concat(o.message)}):new ge({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=(0,p.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var e=(0,p.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(vt),_t=function(e){(0,d.default)(n,e);var t=S(n);function n(){return(0,g.default)(this,n),t.apply(this,arguments)}return(0,y.default)(n,[{key:"signIn",value:function(){var e=(0,p.default)(a.default.mark((function e(t,n){var r,o,i,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ge({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:tt.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(o=e.sent,i=o.refresh_token,s=o.access_token_expire,c=o.access_token,!i){e.next=23;break}if(this.setRefreshToken(i),!c||!s){e.next=16;break}this.setAccessToken(c,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return Xe(nt),Xe(ot,{env:this.config.env,loginType:tt.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new yt(this.config.env));case 23:throw o.code?new ge({code:o.code,message:"用户名密码登录失败: ".concat(o.message)}):new ge({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(vt),kt=function(){function e(t){(0,g.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=mt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Qe(ot,this._onLoginTypeChanged)}return(0,y.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new wt(this.config)}},{key:"customAuthProvider",value:function(){return new bt(this.config)}},{key:"emailAuthProvider",value:function(){return new xt(this.config)}},{key:"usernameAuthProvider",value:function(){return new _t(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,p.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new wt(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,p.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new xt(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new _t(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,p.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new wt(this.config)),Qe(it,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=(0,p.default)(a.default.mark((function e(){var t,n,r,o,i,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==tt.ANONYMOUS){e.next=2;break}throw new ge({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,o=t.accessTokenExpireKey,i=this._cache.getStore(n),i){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:i});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(o),Xe(nt),Xe(ot,{env:this.config.env,loginType:tt.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,p.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,p.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(e){var t=this;Qe(nt,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){Qe(rt,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Qe(at,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Qe(it,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Qe(ot,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,p.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var e=this._cache.keys,t=e.accessTokenKey,n=e.accessTokenExpireKey,r=this._cache.getStore(t),o=this._cache.getStore(n);return this._request.oauth.isAccessTokenExpired(r,o)?null:new yt(this.config.env)}},{key:"isUsernameRegistered",value:function(){var e=(0,p.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ge({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,p.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new bt(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:k(k({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,r=t.persistence,o=t.env;o===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),St=function(e,t){t=t||Be();var n=mt(this.config.env),r=e.cloudPath,o=e.filePath,i=e.onUploadProgress,a=e.fileType,s=void 0===a?"image":a;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var a=e.data,c=a.url,u=a.authorization,l=a.token,p=a.fileId,f=a.cosFileId,d=e.requestId,h={key:r,signature:u,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":l};n.upload({url:c,data:h,file:o,name:r,fileType:s,onUploadProgress:i}).then((function(e){201===e.statusCode?t(null,{fileID:p,requestId:d}):t(new ge({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},At=function(e,t){t=t||Be();var n=mt(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},Ot=function(e,t){var n=e.fileList;if(t=t||Be(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,o=b(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){o.e(s)}finally{o.f()}var a={fileid_list:n};return mt(this.config.env).send("storage.batchDeleteFile",a).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},Pt=function(e,t){var n=e.fileList;t=t||Be(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,o=[],i=b(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;"object"==(0,u.default)(a)?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),o.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?o.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(c){i.e(c)}finally{i.f()}var s={file_list:o};return mt(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},Tt=function(){var e=(0,p.default)(a.default.mark((function e(t,n){var r,o,i,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,Pt.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(o=e.sent.fileList[0],"SUCCESS"===o.code){e.next=6;break}return e.abrupt("return",n?n(o):new Promise((function(e){e(o)})));case 6:if(i=mt(this.config.env),s=o.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",i.download({url:s}));case 10:return e.t0=n,e.next=13,i.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),It=function(e,t){var n,r=e.name,o=e.data,i=e.query,a=e.parse,s=e.search,c=e.timeout,u=t||Be();try{n=o?JSON.stringify(o):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new ge({code:"PARAM_ERROR",message:"函数名不能为空"}));var l={inQuery:i,parse:a,search:s,function_name:r,request_data:n};return mt(this.config.env).send("functions.invokeFunction",l,{timeout:c}).then((function(e){if(e.code)u(null,e);else{var t=e.data.response_data;if(a)u(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),u(null,{result:t,requestId:e.requestId})}catch(e){u(new ge({message:"response data must be json"}))}}return u.promise})).catch((function(e){u(e)})),u.promise},Dt={timeout:15e3,persistence:"session"},Ct={},Et=function(){function e(t){(0,g.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,y.default)(e,[{key:"init",value:function(t){switch(Ve.adapter||(this.requestClient=new Ve.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=k(k({},Dt),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,r=t||Ve.adapter.primaryStorage||Dt.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;We[t]=new He(e),Je[t]=new He(k(k({},e),{},{persistence:"local"}))}(this.config),n=this.config,ht[n.env]=new dt(n),this.authObj=new kt(this.config),this.authObj}},{key:"on",value:function(e,t){return Qe.apply(this,[e,t])}},{key:"off",value:function(e,t){return et.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return It.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return Ot.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return Pt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return Tt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return St.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return At.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Ct[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,p.default)(a.default.mark((function e(t,n){var r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=Ct[t],r){e.next=3;break}throw new ge({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"useAdapters",value:function(e){var t=function(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),o=b(r);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=i.isMatch,s=i.genAdapter,c=i.runtime;if(a())return{adapter:s(),runtime:c}}}catch(u){o.e(u)}finally{o.f()}}(e)||{},n=t.adapter,r=t.runtime;n&&(Ve.adapter=n),r&&(Ve.runtime=r)}}]),e}(),Ft=new Et;function Rt(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";for(var i in n)""===o?!r&&(t+="?"):o+="&",o+=i+"="+encodeURIComponent(n[i]);return/^http(s)?:\/\//.test(t+=o)?t:""+e+t}var jt=function(){function e(){(0,g.default)(this,e)}return(0,y.default)(e,[{key:"get",value:function(e){var t=e.url,n=e.data,r=e.headers,o=e.timeout;return new Promise((function(e,i){be.request({url:Rt("https:",t),data:n,method:"GET",header:r,timeout:o,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers,o=e.timeout;return new Promise((function(e,i){be.request({url:Rt("https:",t),data:n,method:"POST",header:r,timeout:o,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,o=e.file,i=e.data,a=e.headers,s=e.fileType,c=be.uploadFile({url:Rt("https:",r),name:"file",formData:Object.assign({},i),filePath:o,fileType:s,header:a,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(n.statusCode=parseInt(i.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),Bt={setItem:function(e,t){be.setStorageSync(e,t)},getItem:function(e){return be.getStorageSync(e)},removeItem:function(e){be.removeStorageSync(e)},clear:function(){be.clearStorageSync()}},Mt={genAdapter:function(){return{root:{},reqClass:jt,localStorage:Bt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Ft.useAdapters(Mt);var Nt=Ft,Lt=Nt.init;Nt.init=function(e){e.env=e.spaceId;var t=Lt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=ve(e),r=t.success,o=t.fail,i=t.complete;if(!(r||o||i))return n.call(this,e);n.call(this,e).then((function(e){r&&r(e),i&&i(e)}),(function(e){o&&o(e),i&&i(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Ut=Nt;function Vt(e,t){return $t.apply(this,arguments)}function $t(){return $t=(0,p.default)(a.default.mark((function e(t,n){var r,o,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="http://".concat(t,":").concat(n,"/system/ping"),e.prev=1,e.next=4,i={url:r,timeout:500},new Promise((function(e,t){be.request(k(k({},i),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return o=e.sent,e.abrupt("return",!(!o.data||0!==o.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),$t.apply(this,arguments)}function qt(e,t){return zt.apply(this,arguments)}function zt(){return zt=(0,p.default)(a.default.mark((function e(t,n){var r,o,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=0;case 1:if(!(o1&&void 0!==o[1])||o[1],n=!1,!n){e.next=8;break}return e.next=5,this.setupLocalRequest(t);case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=this.setupRequest(t);case 9:return t=e.t0,e.abrupt("return",Promise.resolve().then((function(){return n?r.requestLocal(t):Pe.wrappedRequest(t,r.adapter.request)})));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"requestLocal",value:function(e){var t=this;return new Promise((function(n,r){t.adapter.request(Object.assign(e,{complete:function(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){var t=e.data&&e.data.code||"SYS_ERR",o=e.data&&e.data.message||"request:fail";return r(new ge({code:t,message:o}))}n({success:!0,result:e.data})}}))}))}},{key:"setupRequest",value:function(e){var t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=Pe.sign(t,this.config.clientSecret);var r=Ae();n["x-client-info"]=encodeURIComponent(JSON.stringify(r));var o=xe(),i=o.token;return n["x-client-token"]=i,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"setupLocalRequest",value:function(){var e=(0,p.default)(a.default.mark((function e(t){var n,r,o,i,s,c,u,l,p;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Ae(),r=xe(),o=r.token,i=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:n,token:o}),s=this.__dev__&&this.__dev__.debugInfo||{},c=s.address,u=s.servePort,e.next=9,qt(c,u);case 9:return l=e.sent,p=l.address,e.abrupt("return",{url:"http://".concat(p,":").concat(u,"/").concat(Ht[t.method]),method:"POST",data:i,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))});case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}},{key:"getUploadFileOptions",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}},{key:"reportUploadFile",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,o=e.cloudPath,i=e.fileType,a=void 0===i?"image":i,s=e.onUploadProgress;if(!o)throw new ge({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getUploadFileOptions({cloudPath:o}).then((function(e){var o=e.result,i=o.url,c=o.formData,u=o.name;return t=e.result.fileUrl,new Promise((function(e,t){var o=n.adapter.uploadFile({url:i,formData:c,name:u,filePath:r,fileType:a,success:function(n){n&&n.statusCode<400?e(n):t(new ge({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){t(new ge({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&o&&"function"==typeof o.onProgressUpdate&&o.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((function(){return n.reportUploadFile({cloudPath:o})})).then((function(e){return new Promise((function(n,o){e.success?n({success:!0,filePath:r,fileID:t}):o(new ge({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(n).then((function(e){if(e.success)return e.result;throw new ge({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new ge({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(r).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new ge({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),e}(),Jt={init:function(e){var t=new Wt(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Kt=A((function(e,t){e.exports=P.enc.Hex}));function Gt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,r=t.functionName,o=t.method,i=t.headers,a=t.signHeaderKeys,s=void 0===a?[]:a,u=t.config,l=String(Date.now()),p=Gt(),f=Object.assign({},i,{"x-from-app-id":u.spaceAppId,"x-from-env-id":u.spaceId,"x-to-env-id":u.spaceId,"x-from-instance-id":l,"x-from-function-name":r,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":p,"x-alipay-callid":p,"x-trace-id":p}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),h=e.split("?")||[],m=(0,c.default)(h,2),v=m[0],g=void 0===v?"":v,y=m[1],w=void 0===y?"":y,b=function(e){var t="HMAC-SHA256",n=e.signedHeaders.join(";"),r=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),o=Re(e.body).toString(Kt),i="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(r,"\n").concat(n,"\n").concat(o,"\n"),a=Re(i).toString(Kt),s="".concat(t,"\n").concat(e.timestamp,"\n").concat(a,"\n"),c=je(s,e.secretKey).toString(Kt);return"".concat(t," Credential=").concat(e.secretId,", SignedHeaders=").concat(n,", Signature=").concat(c)}({path:g,query:w,method:o,headers:f,timestamp:l,body:JSON.stringify(n),secretId:u.accessKey,secretKey:u.secretKey,signedHeaders:d.sort()});return{url:"".concat(u.endpoint).concat(e),headers:Object.assign({},f,{Authorization:b})}}function Yt(e){var t=e.url,n=e.data,r=e.method,o=void 0===r?"POST":r,i=e.headers,a=void 0===i?{}:i,s=e.timeout;return new Promise((function(e,r){be.request({url:t,method:o,data:"object"==(0,u.default)(n)?JSON.stringify(n):n,header:a,dataType:"json",timeout:s,complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var o=t.data||{},i=o.message,s=o.errMsg,c=o.trace_id;return r(new ge({code:"SYS_ERR",message:i||s||"request:fail",requestId:c||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function Qt(e,t){var n=e.path,r=e.data,o=e.method,i=void 0===o?"GET":o,a=Zt(n,{functionName:"",data:r,method:i,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=a.url,c=a.headers;return Yt({url:s,data:r,method:i,headers:c}).then((function(e){var t=e.data||{};if(!t.success)throw new ge({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new ge({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new ge({code:"INVALID_PARAM",message:"fileID不合法"});var r=t.substring(0,n),o=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),o}function en(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var tn=function(){function e(t){(0,g.default)(this,e),this.config=t}return(0,y.default)(e,[{key:"signedURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/ws/function/".concat(e),r=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),o=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:Gt(),timestamp:""+Date.now()}),i=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return o[e]?"".concat(e,"=").concat(o[e]):null})).filter(Boolean).join("&"),"host:".concat(r)].join("\n"),a=["HMAC-SHA256",Re(i).toString(Kt)].join("\n"),s=je(a,this.config.secretKey).toString(Kt),c=Object.keys(o).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(o[e]))})).join("&");return"".concat(this.config.wsEndpoint).concat(n,"?").concat(c,"&signature=").concat(s)}}]),e}(),nn=function(){function e(t){if((0,g.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn"),wsEndpoint:t.wsEndpoint||"wss://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")}),this._websocket=new tn(this.config)}return(0,y.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,r=e.data,o=e.async,i=void 0!==o&&o,a=e.timeout,s="POST",c={"x-to-function-name":n};i&&(c["x-function-invoke-type"]="async");var u=Zt("/functions/invokeFunction",{functionName:n,data:r,method:s,headers:c,signHeaderKeys:["x-to-function-name"],config:t}),l=u.url,p=u.headers;return Yt({url:l,data:r,method:s,headers:p,timeout:a}).then((function(e){var t=0;if(i){var n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new ge({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((function(e){throw new ge({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,r=e.fileType,o=e.formData,i=e.onUploadProgress;return new Promise((function(e,a){var s=be.uploadFile({url:t,filePath:n,fileType:r,formData:o,name:"file",success:function(t){t&&t.statusCode<400?e(t):a(new ge({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){a(new ge({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,p.default)(a.default.mark((function e(t){var n,r,o,i,s,c,u,l,p,f,d;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,o=void 0===r?"":r,i=t.fileType,s=void 0===i?"image":i,c=t.onUploadProgress,"string"===M(o)){e.next=3;break}throw new ge({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(o=o.trim()){e.next=5;break}throw new ge({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(o)){e.next=7;break}throw new ge({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,Qt({path:"/".concat(o.replace(/^\//,""),"?post_url")},this.config);case 9:return u=e.sent,l=u.file_id,p=u.upload_url,f=u.form_data,d=f&&f.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:p,filePath:n,fileType:s,formData:d,onUploadProgress:c}).then((function(){return{fileID:l}})));case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=(0,p.default)(a.default.mark((function e(t){var n,r=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&e({code:"INVALID_PARAM",message:"fileList不能为空数组"}),n.length>50&&e({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});var o,i=[],a=b(n);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=void 0;"string"!==M(s)&&e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{c=Xt.call(r,s)}catch(e){console.warn(e.errCode,e.errMsg),c=s}i.push({file_id:c,expire:600})}}catch(u){a.e(u)}finally{a.f()}Qt({path:"/?download_url",data:{file_list:i},method:"POST"},r.config).then((function(t){var n=t.file_list,o=void 0===n?[]:n;e({fileList:o.map((function(e){return{fileID:en.call(r,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"connectWebSocket",value:function(){var e=(0,p.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,r=t.query,e.abrupt("return",be.connectSocket({url:this._websocket.signedURL(n,r),complete:function(){}}));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),rn={init:function(e){e.provider="alipay";var t=new nn(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function on(e){var t,n=e.data;t=Ae();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var o=xe(),i=o.token;i&&(r.uniIdToken=i)}return r}var an=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],sn=/[\\^$.*+?()[\]{}|]/g,cn=RegExp(sn.source);function un(e,t,n){return e.replace(new RegExp((r=t)&&cn.test(r)?r.replace(sn,"\\$&"):r,"g"),n);var r}var ln={NONE:"none",REQUEST:"request",RESPONSE:"response",BOTH:"both"},pn="_globalUniCloudStatus",fn="_globalUniCloudSecureNetworkCache__{spaceId}",dn="uni-secure-network",hn={SYSTEM_ERROR:{code:2e4,message:"System error"},APP_INFO_INVALID:{code:20101,message:"Invalid client"},GET_ENCRYPT_KEY_FAILED:{code:20102,message:"Get encrypt key failed"}};function mn(e){var t=e||{},n=t.errSubject,r=t.subject,o=t.errCode,i=t.errMsg,a=t.code,s=t.message,c=t.cause;return new ge({subject:n||r||dn,code:o||a||hn.SYSTEM_ERROR.code,message:i||s,cause:c})}var vn;vn="0123456789abcdef";var gn;function yn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===ln.REQUEST||t===ln.RESPONSE||t===ln.BOTH}function wn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,r=void 0===n?{}:n;return"app"===K&&"DCloud-clientDB"===t&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function bn(e){e.functionName,e.result,e.logPvd}function xn(e){var t=e.callFunction,n=function(n){var r=this,o=n.name;n.data=on.call(e,{data:n.data});var i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],a=yn(n),s=wn(n),c=a||s;return t.call(this,n).then((function(e){return e.errCode=0,!c&&bn.call(r,{functionName:o,result:e,logPvd:i}),Promise.resolve(e)}),(function(e){return!c&&bn.call(r,{functionName:o,result:e,logPvd:i}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,o=void 0===r?{}:r,i=e.formatter,a=void 0===i?[]:i,s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=e.functionName,o=ke(),i=o.appId,a=o.uniPlatform,s=o.osName,c=a;"app"===a&&(c=s);var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=J;if(!r)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var o=r.find((function(e){return e.provider===t&&e.spaceId===n}));return o&&o.config}({provider:t,spaceId:n});if(!u||!u.accessControl||!u.accessControl.enable)return!1;var l=u.accessControl.function||{},p=Object.keys(l);if(0===p.length)return!0;var f=function(e,t){for(var n,r,o,i=0;i-1&&(r=a):o=a:n=a}return n||r||o}(p,r);if(!f)return!1;if((l[f]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===i&&(e.platform||"").toLowerCase()===c.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(i,", platform: ").concat(c,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),mn(hn.APP_INFO_INVALID)}({provider:a,spaceId:s,functionName:c})?new gn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(o,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),o.then((function(e){return e}))}}gn="mp-weixin"!==K&&"app"!==K?function(){return(0,y.default)((function e(){throw(0,g.default)(this,e),mn({message:"Platform ".concat(K," is not supported by secure network")})}))}():function(){return(0,y.default)((function e(){throw(0,g.default)(this,e),mn({message:"Platform ".concat(K," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var _n=Symbol("CLIENT_DB_INTERNAL");function kn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=_n,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if("symbol"==(0,u.default)(n))return e[n];if(n in e||"string"!=typeof n){var o=e[n];return"function"==typeof o?o.bind(e):o}return t.get(e,n,r)}})}function Sn(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var An=["db.Geo","db.command","command.aggregate"];function On(e,t){return An.indexOf("".concat(e,".").concat(t))>-1}function Pn(e){switch(M(e)){case"array":return e.map((function(e){return Pn(e)}));case"object":return e._internalType===_n||Object.keys(e).forEach((function(t){e[t]=Pn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Tn(e){return e&&e.content&&e.content.$method}var In=function(){function e(t,n,r){(0,g.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,y.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:Pn(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=Tn(e),n=Tn(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===Tn(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=Tn(e),n=Tn(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return Dn({$method:e,$param:Pn(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();return r.$db.push({$method:e,$param:Pn(t)}),this._database._callCloudFunction({action:n,command:r})}}]),e}();function Dn(e,t,n){return kn(new In(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),On(r,t)?Dn({$method:t},e,n):function(){return Dn({$method:t,$param:Pn(Array.from(arguments))},e,n)}}})}function Cn(e){var t=e.path,n=e.method;return function(){function e(){(0,g.default)(this,e),this.param=Array.from(arguments)}return(0,y.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,l.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}var En=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n,o=t.isJQL,i=void 0!==o&&o;(0,g.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=Q("_globalUniCloudDatabaseCallback")),i||(this.auth=Sn(this._authCallBacks)),this._isJQL=i,Object.assign(this,Sn(this._dbCallBacks)),this.env=kn({},{get:function(e,t){return{$env:t}}}),this.Geo=kn({},{get:function(e,t){return Cn({path:["Geo"],method:t})}}),this.serverDate=Cn({path:[],method:"serverDate"}),this.RegExp=Cn({path:[],method:"RegExp"})}return(0,y.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}();function Fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return kn(new e(t),{get:function(e,t){return On("db",t)?Dn({$method:t},null,e):function(){return Dn({$method:t,$param:Pn(Array.from(arguments))},null,e)}}})}var Rn=function(e){(0,d.default)(n,e);var t=S(n);function n(){return(0,g.default)(this,n),t.apply(this,arguments)}return(0,y.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,o=e.multiCommand,i=e.queryList;function a(e,t){if(o&&i)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(Un(t,e.path)):!1===e.needLogin&&r.push(Un(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function $n(e){return e.split("?")[0].replace(/^\//,"")}function qn(){return function(e){var t=e&&e.$page&&e.$page.fullPath;return t?("/"!==t.charAt(0)&&(t="/"+t),t):""}(function(){var e=getCurrentPages();return e[e.length-1]}())}function zn(){return $n(qn())}function Hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,r=$n(e);return n.some((function(e){return e.pagePath===r}))}var Wn,Jn=!!w.default.uniIdRouter,Kn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,o=void 0===r?[]:r,i=e.uniIdRouter,a=void 0===i?{}:i,s=e.tabBar,c=void 0===s?{}:s,u=a.loginPage,p=a.needLogin,f=void 0===p?[]:p,d=a.resToLogin,h=void 0===d||d,m=Vn(n),v=m.needLoginPage,g=m.notNeedLoginPage,y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,o=e.pages,i=void 0===o?[]:o,a=Vn(i,r),s=a.needLoginPage,c=a.notNeedLoginPage;t.push.apply(t,(0,l.default)(s)),n.push.apply(n,(0,l.default)(c))})),{needLoginPage:t,notNeedLoginPage:n}}(o),b=y.needLoginPage,x=y.notNeedLoginPage;return{loginPage:u,routerNeedLogin:f,resToLogin:h,needLoginPage:[].concat((0,l.default)(v),(0,l.default)(b)),notNeedLoginPage:[].concat((0,l.default)(g),(0,l.default)(x)),loginPageInTabBar:Hn(u,c)}}(),Gn=Kn.loginPage,Zn=Kn.routerNeedLogin,Yn=Kn.resToLogin,Qn=Kn.needLoginPage,Xn=Kn.notNeedLoginPage,er=Kn.loginPageInTabBar;if(Qn.indexOf(Gn)>-1)throw new Error("Login page [".concat(Gn,'] should not be "needLogin", please check your pages.json'));function tr(e){var t=zn();if("/"===e.charAt(0))return e;var n=e.split("?"),r=(0,c.default)(n,2),o=r[0],i=r[1],a=o.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var u=0;u-1)&&(Qn.indexOf(t)>-1||Zn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function rr(e){var t=e.redirect,n=$n(t),r=$n(Gn);return zn()!==r&&n!==r}function or(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&rr({redirect:n})){var o=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Gn,n);er?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var i={navigateTo:r.navigateTo,redirectTo:r.redirectTo,switchTab:r.switchTab,reLaunch:r.reLaunch};setTimeout((function(){i[t]({url:o})}),0)}}function ir(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=xe(),n=t.token,r=t.tokenExpired;if(n){if(r0)return setTimeout((function(){fe(se.NEED_LOGIN,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function ar(){!function(){var e=qn(),t=ir({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&or({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];r.addInterceptor(n,{invoke:function(e){var t=ir({url:e.url}),r=t.abortLoginPageJump,o=t.autoToLoginPage;return r?e:o?(or({api:n,redirect:tr(e.url)}),!1):e}})},n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=ue(se.NEED_LOGIN);me().then((function(){var n=qn();if(n&&rr({redirect:n}))return t.length>0?fe(se.NEED_LOGIN,Object.assign({uniIdRedirectUrl:n},e)):void(Gn&&or({api:"navigateTo",redirect:n}))}))}(n)}))}function cr(e){!function(e){e.onResponse=function(e){le(se.RESPONSE,e)},e.offResponse=function(e){pe(se.RESPONSE,e)}}(e),function(e){e.onNeedLogin=function(e){le(se.NEED_LOGIN,e)},e.offNeedLogin=function(e){pe(se.NEED_LOGIN,e)},Jn&&(Q(pn).needLoginInit||(Q(pn).needLoginInit=!0,me().then((function(){ar.call(e)})),Yn&&sr.call(e)))}(e),function(e){e.onRefreshToken=function(e){le(se.REFRESH_TOKEN,e)},e.offRefreshToken=function(e){pe(se.REFRESH_TOKEN,e)}}(e)}var ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",lr=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function pr(){var e,t,n=xe().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(Wn(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Wn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!lr.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 fr=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,r){var o=r.onChooseFile,i=r.onUploadProgress;return t.then((function(e){if(o){var t=o(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,o=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var i=t.tempFiles,a=i.length,s=0;return new Promise((function(n){for(;s=a)!i.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var u=i[r];e.uploadFile({provider:u.provider,filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,cloudPathAsRealPath:u.cloudPathAsRealPath,onUploadProgress:function(e){e.index=r,e.tempFile=u,e.tempFilePath=u.path,o&&o(e)}}).then((function(e){u.url=e.fileID,r0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?s(e,function(e){var t=e.count,n=e.sizeType,o=e.sourceType,s=void 0===o?["album","camera"]:o,c=e.extension;return new Promise((function(e,o){r.chooseImage({count:t,sizeType:n,sourceType:s,extension:c,success:function(t){e(a(t,"image"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,n=e.compressed,o=e.maxDuration,s=e.sourceType,c=void 0===s?["album","camera"]:s,u=e.extension;return new Promise((function(e,s){r.chooseVideo({camera:t,compressed:n,maxDuration:o,sourceType:c,extension:u,success:function(t){var n=t.tempFilePath,r=t.duration,o=t.size,i=t.height,s=t.width;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:o,type:t.tempFile&&t.tempFile.type||"",width:s,height:i,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):s(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,s){var c=r.chooseFile;if("undefined"!=typeof o&&"function"==typeof o.chooseMessageFile&&(c=o.chooseMessageFile),"function"!=typeof c)return s({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});c({type:"all",count:t,extension:n,success:function(t){e(a(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}})),dr=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(fr),hr={auto:"auto",onready:"onready",manual:"manual"};function mr(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if(e.loadtime!==hr.manual){for(var r=!1,o=[],i=2;i0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,o=t.success,i=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,i=n.data,a=n.count;e.getcount&&(e.mixinDatacomPage.count=a),e.mixinDatacomHasMore=i.length0&&void 0!==arguments[0]?arguments[0]:{};r=r||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var o=r.action||this.action;o&&(n=n.action(o));var i=r.collection||this.collection;n=Array.isArray(i)?(t=n).collection.apply(t,(0,l.default)(i)):n.collection(i);var a=r.where||this.where;a&&Object.keys(a).length&&(n=n.where(a));var s=r.field||this.field;s&&(n=n.field(s));var c=r.foreignKey||this.foreignKey;c&&(n=n.foreignKey(c));var u=r.groupby||this.groupby;u&&(n=n.groupBy(u));var p=r.groupField||this.groupField;p&&(n=n.groupField(p)),!0===(void 0!==r.distinct?r.distinct:this.distinct)&&(n=n.distinct());var f=r.orderby||this.orderby;f&&(n=n.orderBy(f));var d=void 0!==r.pageCurrent?r.pageCurrent:this.mixinDatacomPage.current,h=void 0!==r.pageSize?r.pageSize:this.mixinDatacomPage.size,m=void 0!==r.getcount?r.getcount:this.getcount,v=void 0!==r.gettree?r.gettree:this.gettree,g=void 0!==r.gettreepath?r.gettreepath:this.gettreepath,y={getCount:m},w={limitLevel:void 0!==r.limitlevel?r.limitlevel:this.limitlevel,startWith:void 0!==r.startwith?r.startwith:this.startwith};return v&&(y.getTree=w),g&&(y.getTreePath=w),n=n.skip(h*(d-1)).limit(h).get(y),n}}}}function vr(e){return Q(fn.replace("{spaceId}",e.config.spaceId))}function gr(){return yr.apply(this,arguments)}function yr(){return yr=(0,p.default)(a.default.mark((function e(){var t,n,o,i,s,c,u,l=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.openid,o=t.callLoginByWeixin,i=void 0!==o&&o,s=vr(this),"mp-weixin"===K){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(K,"`"));case 4:if(!n||!i){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){r.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return c=e.sent,u=this.importObject("uni-id-co",{customUI:!0}),e.next=14,u.secureNetworkHandshakeByWeixin({code:c,callLoginByWeixin:i});case 14:return s.mpWeixinCode=c,e.abrupt("return",{code:c});case 16:case"end":return e.stop()}}),e,this)}))),yr.apply(this,arguments)}function wr(e){return br.apply(this,arguments)}function br(){return br=(0,p.default)(a.default.mark((function e(t){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=vr(this),e.abrupt("return",(n.initPromise||(n.initPromise=gr.call(this,t).then((function(e){return e})).catch((function(e){throw delete n.initPromise,e}))),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),br.apply(this,arguments)}function xr(e){!function(e){Se=e}(e)}function _r(e){var t="mp-weixin"===K&&o.canIUse("getAppBaseInfo"),n={getAppBaseInfo:t?r.getAppBaseInfo:r.getSystemInfo,getPushClientId:r.getPushClientId};return function(r){return new Promise((function(o,i){t&&"getAppBaseInfo"===e?o(n[e]()):n[e](k(k({},r),{},{success:function(e){o(e)},fail:function(e){i(e)}}))}))}}var kr=function(e){(0,d.default)(n,e);var t=S(n);function n(){var e;return(0,g.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,y.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([_r("getAppBaseInfo")(),_r("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,c.default)(t,2),r=n[0];r=void 0===r?{}:r;var o=r.appId,i=n[1];i=void 0===i?{}:i;var a=i.cid;if(!o)throw new Error("Invalid appId, please check the manifest.json file");if(!a)throw new Error("Invalid push client id");e._appId=o,e._pushClientId=a,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,p.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,r=t.messageId,o=t.message;this._payloadQueue.push({action:n,messageId:r,message:o}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,r=e.message;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){r.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){r.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(z);var Sr={tcb:Ut,tencent:Ut,aliyun:Ie,private:Jt,dcloud:Jt,alipay:rn},Ar=new(function(){function e(){(0,g.default)(this,e)}return(0,y.default)(e,[{key:"init",value:function(e){var t={},n=Sr[e.provider];if(!n)throw new Error("未提供正确的provider参数");return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new q({createPromise:function(){var t=Promise.resolve();t=new Promise((function(e){setTimeout((function(){e()}),1)}));var n=e.auth();return t.then((function(){return n.getLoginState()})).then((function(e){return e?Promise.resolve():n.signInAnonymously()}))}}))}(t),xn(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),function(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var n=Fn(Rn,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=Fn(Rn,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=pr,e.chooseAndUploadFile=dr.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return mr(e)}}),e.SSEChannel=kr,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,r=t.callLoginByWeixin,o=void 0!==r&&r;return wr.call(e,{openid:n,callLoginByWeixin:o})}}(e),e.setCustomClientInfo=xr,e.importObject=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,u.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var o=n,i=o.customUI,s=o.loadingOptions,c=o.errorOptions,l=o.parseSystemError,f=!i;return new Proxy({},{get:function(o,i){switch(i){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,p.default)(a.default.mark((function e(){var o,i,s,c,u,l,p=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(o=p.length,i=new Array(o),s=0;s0&&void 0!==u[0]?u[0]:{},n=t.title,o=t.content,i=t.showCancel,s=t.cancelText,c=t.confirmText,e.abrupt("return",new Promise((function(e,t){r.showModal({title:n,content:o,showCancel:i,cancelText:s,confirmText:c,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:O,showCancel:c.retry,cancelText:"取消",confirmText:c.retry?"重试":"确定"});case 33:if(P=o.sent,T=P.confirm,!c.retry||!T){o.next=37;break}return o.abrupt("return",d.apply(void 0,v));case 37:throw I=new ge({subject:x,code:_,message:S,requestId:h.requestId}),I.detail=h.result,fe(se.RESPONSE,{type:ce.CLOUD_OBJECT,content:I}),I;case 39:return o.abrupt("return",(fe(se.RESPONSE,{type:ce.CLOUD_OBJECT,content:h.result}),h.result));case 40:case"end":return o.stop()}}),o,null,[[5,11]])})));function d(){return o.apply(this,arguments)}return d}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:i,params:n}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var r=this,o=!1;if("callFunction"===t){var i=n&&n.type||F.DEFAULT;o=i!==F.DEFAULT}var a="callFunction"===t&&!o,s=this._initPromiseHub.exec();n=n||{};var c=ve(n),u=c.success,l=c.fail,p=c.complete,f=s.then((function(){return o?Promise.resolve():re(oe(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return o?Promise.resolve(e):re(oe(t,"success"),e).then((function(){return re(oe(t,"complete"),e)})).then((function(){return a&&fe(se.RESPONSE,{type:ce.CLOUD_FUNCTION,content:e}),Promise.resolve(e)}))}),(function(e){return o?Promise.reject(e):re(oe(t,"fail"),e).then((function(){return re(oe(t,"complete"),e)})).then((function(){return fe(se.RESPONSE,{type:ce.CLOUD_FUNCTION,content:e}),Promise.reject(e)}))}));if(!(u||l||p))return f;f.then((function(e){u&&u(e),p&&p(e),a&&fe(se.RESPONSE,{type:ce.CLOUD_FUNCTION,content:e})}),(function(e){l&&l(e),p&&p(e),a&&fe(se.RESPONSE,{type:ce.CLOUD_FUNCTION,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());t.uniCloud=Ar,function(){var e=G,n={};if(e&&1===e.length)n=e[0],t.uniCloud=Ar=Ar.init(n),Ar._isDefault=!0;else{var o,i=["database","getCurrentUserInfo","importObject"];o=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",[].concat(["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"],i).forEach((function(e){Ar[e]=function(){if(console.error(o),-1===i.indexOf(e))return Promise.reject(new ge({code:"SYS_ERR",message:o}));console.error(o)}}))}if(Object.assign(Ar,{get mixinDatacom(){return mr(Ar)}}),cr(Ar),Ar.addInterceptor=te,Ar.removeInterceptor=ne,Ar.interceptObject=ie,"app"===K&&(r.__uniCloud=Ar),"app"===K||"web"===K){var a=function(){return Z||(Z=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),Z)}();a.uniCloud=Ar,a.UniCloudError=ge}}();var Or=Ar;t.default=Or}).call(this,n("0ee4"),n("df3c")["default"],n("3223")["default"])},8762:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("6181")),i=r(n("a090"));e.getStorage({key:"storage_key",success:function(e){console.log(e.data)}});var a=new o.default({baseUrl:i.default.baseUrl,fileUrl:i.default.baseUrl,headers:{"Content-Type":"application/x-www-form-urlencoded;",ApiVersion:i.default.version,Device:i.default.device,Platform:i.default.platform,Authorization:"Bearer "+e.getStorageSync("laocui_user_token")},isPrompt:!0,load:!0,isFactory:!0,loadMore:!0}),s=0;a.requestStart=function(t){return s<=0&&(e.showNavigationBarLoading(),t.load&&e.showLoading({title:"加载中",mask:!0})),s+=1,t.headers["Authorization"]="Bearer "+e.getStorageSync("laocui_user_token"),t.headers["requestHanderAuth"]=e.getStorageSync("requestHanderAuth"),t},a.requestEnd=function(t,n){s-=1,s<=0&&(e.hideLoading(),e.hideNavigationBarLoading()),console.log(n.statusCode),n.errMsg&&("request:ok"!=n.errMsg||n.statusCode&&200!=n.statusCode)&&e.showToast({title:"网络错误,请检查一下网络",mask:!0,icon:"none"})};a.dataFactory=function(t,n){var r={success:!1,result:""};return console.log("resolve.data.code ",n.data.code),409==n.data.code&&(e.clearStorageSync(),e.reLaunch({url:"/pages/login/login"}),e.showToast({title:"令牌过期,请重新登陆",icon:"none",mask:!0,duration:1e3})),101===n.data.code?(e.showModal({title:"提示",content:n.data.msg,showCancel:!1,success:function(){e.setStorageSync("token",null),e.redirectTo({url:"/pages/login/login"})}}),!1):("成功"==n.data.errmsg?(r.success=!0,r.result=n.data):303==n.data.errno?(e.redirectTo({url:"/pages/subPackages/pages/login/login"}),this.$showToast("令牌过期,请重新登陆")):(e.showToast({title:n.data.errmsg,icon:"none",mask:!0,duration:2e3}),r.result=n.data),e.stopPullDownRefresh(),r)};var c=a;t.default=c}).call(this,n("df3c")["default"])},"8f59":function(e,t,n){"use strict";(function(t){var n="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},r=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=function(e,t){return e.filter(t)[0]}(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]=o(e[n],t)})),r}function i(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function a(e){return null!==e&&"object"===typeof e}var s=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)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(e,t){this._children[e]=t},s.prototype.removeChild=function(e){delete this._children[e]},s.prototype.getChild=function(e){return this._children[e]},s.prototype.hasChild=function(e){return e in this._children},s.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)},s.prototype.forEachChild=function(e){i(this._children,e)},s.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},s.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},s.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(s.prototype,c);var u=function(e){this.register([],e,!1)};u.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},u.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},u.prototype.update=function(e){(function e(t,n,r){0;if(n.update(r),r.modules)for(var o in r.modules){if(!n.getChild(o))return void 0;e(t.concat(o),n.getChild(o),r.modules[o])}})([],this.root,e)},u.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new s(t,n);if(0===e.length)this.root=o;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],o)}t.modules&&i(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},u.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)},u.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var l;var p=function(e){var t=this;void 0===e&&(e={}),!l&&"undefined"!==typeof window&&window.Vue&&w(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var o=e.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 u(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var i=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(i,e,t)},this.commit=function(e,t,n){return s.call(i,e,t,n)},this.strict=o;var c=this._modules.root.state;v(this,c,[],this._modules.root),m(this,c),n.forEach((function(e){return e(t)}));var p=void 0!==e.devtools?e.devtools:l.config.devtools;p&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},f={state:{configurable:!0}};function d(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 h(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;v(e,n,[],e._modules.root,!0),m(e,n,t)}function m(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,a={};i(o,(function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,e._vm=new l({data:{$$state:t},computed:a}),l.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),l.nextTick((function(){return r.$destroy()})))}function v(e,t,n,r,o){var i=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!i&&!o){var s=g(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){l.set(s,c,r.state)}))}var u=r.context=function(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var i=y(n,r,o),a=i.payload,s=i.options,c=i.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,o){var i=y(n,r,o),a=i.payload,s=i.options,c=i.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return function(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]}(e,t)}},state:{get:function(){return g(e.state,n)}}}),o}(e,a,n);r.forEachMutation((function(t,n){var r=a+n;(function(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,r.state,t)}))})(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,o=t.handler||t;(function(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 function(e){return e&&"function"===typeof e.then}(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))})(e,r,o,u)})),r.forEachGetter((function(t,n){var r=a+n;(function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}})(e,r,t,u)})),r.forEachChild((function(r,i){v(e,t,n.concat(i),r,o)}))}function g(e,t){return t.reduce((function(e,t){return e[t]}),e)}function y(e,t,n){return a(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function w(e){l&&e===l||(l=e, /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function(e){var t=Number(e.version.split(".")[0]);if(t>=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)}}(l))}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(e){0},p.prototype.commit=function(e,t,n){var r=this,o=y(e,t,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},p.prototype.dispatch=function(e,t){var n=this,r=y(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){0}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){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},p.prototype.subscribe=function(e,t){return d(e,this._subscribers,t)},p.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return d(n,this._actionSubscribers,t)},p.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},p.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},p.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),n.preserveState),m(this,this.state)},p.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=g(t.state,e.slice(0,-1));l.delete(n,e[e.length-1])})),h(this)},p.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},p.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),h(this,!0)},p.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(p.prototype,f);var b=A((function(e,t){var n={};return S(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=O(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})),x=A((function(e,t){var n={};return S(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=O(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})),_=A((function(e,t){var n={};return S(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||O(this.$store,"mapGetters",e))return this.$store.getters[o]},n[r].vuex=!0})),n})),k=A((function(e,t){var n={};return S(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=O(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}));function S(e){return function(e){return Array.isArray(e)||a(e)}(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 A(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function O(e,t,n){var r=e._modulesNamespaceMap[n];return r}function P(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(o){e.log(t)}}function T(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function I(){var e=new Date;return" @ "+D(e.getHours(),2)+":"+D(e.getMinutes(),2)+":"+D(e.getSeconds(),2)+"."+D(e.getMilliseconds(),3)}function D(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var C={Store:p,install:w,version:"3.6.2",mapState:b,mapMutations:x,mapGetters:_,mapActions:k,createNamespacedHelpers:function(e){return{mapState:b.bind(null,e),mapGetters:_.bind(null,e),mapMutations:x.bind(null,e),mapActions:k.bind(null,e)}},createLogger:function(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 i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=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 p=o(e.state);"undefined"!==typeof l&&(c&&e.subscribe((function(e,a){var s=o(a);if(n(e,p,s)){var c=I(),u=i(e),f="mutation "+e.type+c;P(l,f,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(p)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),T(l)}p=s})),u&&e.subscribeAction((function(e,n){if(a(e,n)){var r=I(),o=s(e),i="action "+e.type+r;P(l,i,t),l.log("%c action","color: #03A9F4; font-weight: bold",o),T(l)}})))}}};e.exports=C}).call(this,n("0ee4"))},"8ffa":function(e,t,n){var r=n("7647");e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},9008:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},"905b":function(e,t,n){"use strict";(function(e){var t=n("f8c7"),r=n("76e5"),o=n("1786"),i=n("931d");(0,t.VantComponent)({props:Object.assign(Object.assign(Object.assign(Object.assign({disabled:Boolean,multiple:Boolean,uploadText:String,useBeforeRead:Boolean,afterRead:null,beforeRead:null,previewSize:{type:null,value:80},name:{type:null,value:""},accept:{type:String,value:"image"},fileList:{type:Array,value:[],observer:"formatFileList"},maxSize:{type:Number,value:Number.MAX_VALUE},maxCount:{type:Number,value:100},deletable:{type:Boolean,value:!0},showUpload:{type:Boolean,value:!0},previewImage:{type:Boolean,value:!0},previewFullImage:{type:Boolean,value:!0},imageFit:{type:String,value:"scaleToFill"},uploadIcon:{type:String,value:"photograph"}},o.imageProps),o.videoProps),o.mediaProps),o.messageFileProps),data:{lists:[],isInCount:!0},methods:{formatFileList:function(){var e=this.data,t=e.fileList,n=void 0===t?[]:t,o=e.maxCount,a=n.map((function(e){return Object.assign(Object.assign({},e),{isImage:(0,r.isImageFile)(e),isVideo:(0,r.isVideoFile)(e),deletable:!(0,i.isBoolean)(e.deletable)||e.deletable})}));this.setData({lists:a,isInCount:a.lengthn})):e.size>n;o?this.$emit("oversize",Object.assign({file:e},this.getDetail())):("function"===typeof r&&r(e,this.getDetail()),this.$emit("after-read",Object.assign({file:e},this.getDetail())))},deleteItem:function(e){var t=e.currentTarget.dataset.index;this.$emit("delete",Object.assign(Object.assign({},this.getDetail(t)),{file:this.data.fileList[t]}))},onPreviewImage:function(t){if(this.data.previewFullImage){var n=t.currentTarget.dataset.index,o=this.data,i=o.lists,a=o.showmenu,s=i[n];e.previewImage({urls:i.filter((function(e){return(0,r.isImageFile)(e)})).map((function(e){return e.url})),current:s.url,showmenu:a,fail:function(){e.showToast({title:"预览图片失败",icon:"none"})}})}},onPreviewVideo:function(t){if(this.data.previewFullImage){var n=t.currentTarget.dataset.index,o=this.data.lists,i=[],a=o.reduce((function(e,t,o){return(0,r.isVideoFile)(t)?(i.push(Object.assign(Object.assign({},t),{type:"video"})),ot?e.slice(0,t):e},onInput:function(e){var t=e.detail||{},n=t.value,r=void 0===n?"":n,o=this.formatValue(r);return this.value=o,this.setShowClear(),this.emitChange(Object.assign(Object.assign({},e.detail),{value:o}))},onFocus:function(e){this.focused=!0,this.setShowClear(),this.$emit("focus",e.detail)},onBlur:function(e){this.focused=!1,this.setShowClear(),this.$emit("blur",e.detail)},onClickIcon:function(){this.$emit("click-icon")},onClickInput:function(e){this.$emit("click-input",e.detail)},onClear:function(){var e=this;this.setData({innerValue:""}),this.value="",this.setShowClear(),(0,r.nextTick)((function(){e.emitChange({value:""}),e.$emit("clear","")}))},onConfirm:function(e){var t=e.detail||{},n=t.value,r=void 0===n?"":n;this.value=r,this.setShowClear(),this.$emit("confirm",r)},setValue:function(e){this.value=e,this.setShowClear(),""===e&&this.setData({innerValue:""}),this.emitChange({value:e})},onLineChange:function(e){this.$emit("linechange",e.detail)},onKeyboardHeightChange:function(e){this.$emit("keyboardheightchange",e.detail)},emitChange:function(e){var t,n=this.data.extraEventParams;this.setData({value:e.value});var r=n?Object.assign(Object.assign({},e),{callback:function(e){t=e}}):e.value;return this.$emit("input",r),this.$emit("change",r),t},setShowClear:function(){var e=this.data,t=e.clearable,n=e.readonly,r=e.clearTrigger,o=this.focused,i=this.value,a=!1;if(t&&!n){var s=!!i,c="always"===r||"focus"===r&&o;a=s&&c}this.setData({showClear:a})},noop:function(){}}})},"9b0d":function(e,t,n){"use strict";var r=n("0b04"),o=n("0c30"),i=n("5e00");e.exports={formats:i,parse:o,stringify:r}},"9fc1":function(e,t,n){var r=n("3b2d")["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",p=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),a=new E(r||[]);return s(i,"_invoke",{value:T(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 m="suspendedStart",v="executing",g="completed",y={};function w(){}function b(){}function x(){}var _={};f(_,u,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(F([])));S&&S!==i&&a.call(S,u)&&(_=S);var A=x.prototype=w.prototype=Object.create(_);function O(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,i,s,c){var u=h(e[o],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==r(p)&&a.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(p).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 T(e,n,r){var o=m;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===g){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=I(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=h(e,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function I(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,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;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,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function D(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function F(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),C(n),y}},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;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:F(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},a090:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n("55f9"),i=o.BASE_URI;r=e.getSystemInfoSync().brand+" "+e.getSystemInfoSync().model;var a={device:r,version:"1.0",platform:"wxmini",key:"53ea64b17287b1f7323e9f29870af813",baseUrl:i};t.default=a}).call(this,n("df3c")["default"])},a708:function(e,t,n){var r=n("6454");e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},a7cc:function(e,t,n){"use strict";var r=n("5e00"),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?c+=s.charAt(u):l<128?c+=a[l]:l<2048?c+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(u)),c+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return c},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r1&&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=_());"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var i=new b({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,x(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.isI18nStr=A,t.isString=void 0,t.normalizeLocale=w,t.parseI18nJson=function e(t,n,r){k||(k=new p);return T(t,(function(t,o){var i=t[o];S(i)?A(i,r)&&(t[o]=O(i,n,r)):e(i,n,r)})),t},t.resolveLocale=function(e){return function(t){return t?(t=w(t)||t,function(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}(t).find((function(t){return e.indexOf(t)>-1}))):t}};var i=o(n("34cf")),a=o(n("67ad")),s=o(n("0bdb")),c=o(n("3b2d")),u=function(e){return null!==e&&"object"===(0,c.default)(e)},l=["{","}"],p=function(){function e(){(0,a.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;if(!t)return[e];var r=this._caches[e];return r||(r=h(e,n),this._caches[e]=r),m(r,t)}}]),e}();t.Formatter=p;var f=/^(?:\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?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=["en","fr","es"];t&&Object.keys(t).length>0&&(n=Object.keys(t));var r=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,n);return r||void 0}}var b=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="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||y,this.messages=o||{},this.setLocale(n||"en"),i&&this.watchLocale(i)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=w(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){g(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=w(t,this.messages),t&&(r=this.messages[t])):n=t,g(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 x(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function _(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():"en"}t.I18n=b;var k,S=function(e){return"string"===typeof e};function A(e,t){return e.indexOf(t[0])>-1}function O(e,t,n){return k.interpolate(e,t,n).join("")}function P(e,t,n){return T(e,(function(e,r){(function(e,t,n,r){var o=e[t];if(S(o)){if(A(o,r)&&(e[t]=O(o,n[0].values,r),n.length>1)){var i=e[t+"Locales"]={};n.forEach((function(e){i[e.locale]=O(o,e.values,r)}))}}else P(o,n,r)})(e,r,t,n)})),e}function T(e,t){if(Array.isArray(e)){for(var n=0;n1){var n=t.reduce((function(e,t){return e+"#".concat(t)}),"_formdata_");return n}return t[0]||e};t.isRealName=function(e){return/^_formdata_#*/.test(e)};t.rawData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e)),n={};for(var r in t){var o=s(r);c(n,o,t[r])}return n};var s=function(e){var t=e.replace("_formdata_#","");return t=t.split("#").map((function(e){return p(e)?Number(e):e})),t};t.name2arr=s;var c=function(e,t,n){return"object"!==(0,o.default)(e)||u(t).reduce((function(e,t,r,o){return r===o.length-1?(e[t]=n,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(o[r+1])?[]:{}),e[t])}),e),e};function u(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}t.objSet=c;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined",r=u(t),o=r.reduce((function(e,t){return(e||{})[t]}),e);return o&&void 0===o?n:o};t.objGet=l;var p=function(e){return!isNaN(Number(e))};t.isNumber=p;var f=function(e){return"boolean"===typeof e};t.isBoolean=f;t.isRequiredField=function(e){for(var t=!1,n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return r(e[0])}))}))},t.getCurrentPage=function(){var e=getCurrentPages();return e[e.length-1]},t.getRect=function(t,n){return new Promise((function(r){e.createSelectorQuery().in(t).select(n).boundingClientRect().exec((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r(e[0])}))}))},Object.defineProperty(t,"getSystemInfoSync",{enumerable:!0,get:function(){return o.getSystemInfoSync}}),t.groupSetData=function(e,t){(0,o.canIUseGroupSetData)()?e.groupSetData(t):t()},Object.defineProperty(t,"isDef",{enumerable:!0,get:function(){return r.isDef}}),t.nextTick=function(t){(0,o.canIUseNextTick)()?e.nextTick(t):setTimeout((function(){t()}),1e3/30)},t.pickExclude=function(e,t){if(!(0,r.isPlainObject)(e))return{};return Object.keys(e).reduce((function(n,r){return t.includes(r)||(n[r]=e[r]),n}),{})},t.range=function(e,t,n){return Math.min(Math.max(e,t),n)},t.requestAnimationFrame=function(e){return setTimeout((function(){e()}),1e3/30)},t.toPromise=function(e){if((0,r.isPromise)(e))return e;return Promise.resolve(e)};var r=n("931d"),o=n("777e")}).call(this,n("3223")["default"])},df3c:function(e,t,n){"use strict";(function(e,r){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Rt,t.createComponent=zt,t.createPage=qt,t.createPlugin=Wt,t.createSubpackageApp=Ht,t.default=void 0;var i,a=o(n("34cf")),s=o(n("7ca3")),c=o(n("931d1")),u=o(n("af34")),l=o(n("3b2d")),p=n("d3b4"),f=o(n("3240"));function d(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 h(e){for(var t=1;t>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 y=Object.prototype.toString,w=Object.prototype.hasOwnProperty;function b(e){return"function"===typeof e}function x(e){return"string"===typeof e}function _(e){return"[object Object]"===y.call(e)}function k(e,t){return w.call(e,t)}function S(){}function A(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var O=/-(\w)/g,P=A((function(e){return e.replace(O,(function(e,t){return t?t.toUpperCase():""}))}));function T(e){var t={};return _(e)&&Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),Object.keys(t)?t:e}var I=["invoke","success","fail","complete","returnValue"],D={},C={};function E(e,t){Object.keys(t).forEach((function(n){-1!==I.indexOf(n)&&b(t[n])&&(e[n]=function(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(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){B(e[n],o,t).then((function(e){return b(r)&&r(e)||e}))}}})),t}function N(e,t){var n=[];Array.isArray(D.returnValue)&&n.push.apply(n,(0,u.default)(D.returnValue));var r=C[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 L(e){var t=Object.create(null);Object.keys(D).forEach((function(e){"returnValue"!==e&&(t[e]=D[e].slice())}));var n=C[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function U(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?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,["en","fr","es"]);return n||void 0}}function ce(){if(b(getApp)){var e=getApp({allowDefault:!0});if(e&&e.$vm)return e.$vm.$locale}return oe()}var ue=[];"undefined"!==typeof r&&(r.getLocale=ce);var le={promiseInterceptor:V},pe=Object.freeze({__proto__:null,upx2px:te,rpx2px:te,getLocale:ce,setLocale:function(e){var t=!!b(getApp)&&getApp();if(!t)return!1;var n=t.$vm.$locale;return n!==e&&(t.$vm.$locale=e,ue.forEach((function(t){return t({locale:e})})),!0)},onLocaleChange:function(e){-1===ue.indexOf(e)&&ue.push(e)},addInterceptor:function(e,t){"string"===typeof e&&_(t)?E(C[e]||(C[e]={}),t):_(e)&&E(D,e)},removeInterceptor:function(e,t){"string"===typeof e?_(t)?F(C[e],t):delete C[e]:_(e)&&F(D,e)},interceptors:le});var fe,de={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=function(e){var t=getCurrentPages(),n=t.length;while(n--){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}(e.url);if(-1!==t){var n=getCurrentPages().length-1-t;n>0&&(e.delta=n)}}}},he={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var n=e.urls;if(Array.isArray(n)){var r=n.length;if(r)return t<0?t=0:t>=r&&(t=r-1),t>0?(e.current=n[t],e.urls=n.filter((function(e,r){return!(r2&&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(_(t)){var i=!0===o?t:{};for(var a in b(n)&&(n=n(t,i)||{}),t)if(k(n,a)){var s=n[a];b(s)&&(s=s(t[a],t,i)),s?x(s)?i[s]=t[a]:_(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!==Te.indexOf(a)?b(t[a])&&(i[a]=Ie(e,t[a],r)):o||(i[a]=t[a]);return i}return b(t)&&(t=Ie(e,t,r)),t}function Ce(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return b(Pe.returnValue)&&(t=Pe.returnValue(e,t)),De(e,t,n,{},r)}function Ee(t,n){if(k(Pe,t)){var r=Pe[t];return r?function(n,o){var i=r;b(r)&&(i=r(n)),n=De(t,n,i.args,i.returnValue);var a=[n];"undefined"!==typeof o&&a.push(o),b(i.name)?t=i.name(n):x(i.name)&&(t=i.name);var s=e[t].apply(e,a);return K(t)?Ce(t,s,i.returnValue,J(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return n}var Fe=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(e){Fe[e]=function(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)}}(e)}));var Re={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var je=Object.freeze({__proto__:null,getProvider:function(e){var t=e.service,n=e.success,r=e.fail,o=e.complete,i=!1;Re[t]?(i={errMsg:"getProvider:ok",service:t,provider:Re[t]},b(n)&&n(i)):(i={errMsg:"getProvider:fail service not found"},b(r)&&r(i)),b(o)&&o(i)}}),Be=function(){var e;return function(){return e||(e=new f.default),e}}();function Me(e,t,n){return e[t].apply(e,n)}var Ne,Le,Ue,Ve=Object.freeze({__proto__:null,$on:function(){return Me(Be(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return Me(Be(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return Me(Be(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return Me(Be(),"$emit",Array.prototype.slice.call(arguments))}});function $e(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function qe(e){try{return JSON.parse(e)}catch(t){}return e}var ze=[];function He(e,t){ze.forEach((function(n){n(e,t)})),ze.length=0}var We=[];var Je=e.getAppBaseInfo&&e.getAppBaseInfo();Je||(Je=e.getSystemInfoSync());var Ke=Je?Je.host:null,Ge=Ke&&"SAAASDK"===Ke.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Ze=Object.freeze({__proto__:null,shareVideoMessage:Ge,getPushClientId:function(e){_(e)||(e={});var t=function(e){var t={};for(var n in e){var r=e[n];b(r)&&(t[n]=$e(r),delete e[n])}return t}(e),n=t.success,r=t.fail,o=t.complete,i=b(n),a=b(r),s=b(o);Promise.resolve().then((function(){"undefined"===typeof Ue&&(Ue=!1,Ne="",Le="uniPush is not enabled"),ze.push((function(e,t){var c;e?(c={errMsg:"getPushClientId:ok",cid:e},i&&n(c)):(c={errMsg:"getPushClientId:fail"+(t?" "+t:"")},a&&r(c)),s&&o(c)})),"undefined"!==typeof Ne&&He(Ne,Le)}))},onPushMessage:function(e){-1===We.indexOf(e)&&We.push(e)},offPushMessage:function(e){if(e){var t=We.indexOf(e);t>-1&&We.splice(t,1)}else We.length=0},invokePushCallback:function(e){if("enabled"===e.type)Ue=!0;else if("clientId"===e.type)Ne=e.cid,Le=e.errMsg,He(Ne,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:qe(e.message)},n=0;n1?t-1:0),r=1;r=0;i--){var a=o[i];if(a.$scope._$vueId===n)return a}for(var s=o.length-1;s>=0;s--)if(r=e(o[s],n),r)return r}(this.$vm,r)),t||(t=this.$vm),o.parent=t}function rt(e){return Object.defineProperty(e,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),e}function ot(e){return function(e){return null!==e&&"object"===(0,l.default)(e)}(e)&&Object.isExtensible(e)&&Object.defineProperty(e,"__ob__",{configurable:!0,enumerable:!1,value:(0,s.default)({},"__v_skip",!0)}),e}var it=/_(.*)_worklet_factory_/;var at=Page,st=Component,ct=/:/g,ut=A((function(e){return P(e.replace(ct,"-"))}));function lt(e){var t=e.triggerEvent,n=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return pt("onLoad",e),at(e)},Page.after=at.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return pt("created",e),st(e)});function ft(e,t,n){t.forEach((function(t){(function e(t,n){if(!n)return!0;if(f.default.options&&Array.isArray(f.default.options[t]))return!0;if(n=n.default||n,b(n))return!!b(n.extendOptions[t])||!!(n.super&&n.super.options&&Array.isArray(n.super.options[t]));if(b(n[t])||Array.isArray(n[t]))return!0;var r=n.mixins;return Array.isArray(r)?!!r.find((function(n){return e(t,n)})):void 0})(t,n)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];ht(t).forEach((function(t){return mt(e,t,n)}))}function ht(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 mt(e,t,n){-1!==n.indexOf(t)||k(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function vt(e,t){var n;return t=t.default||t,n=b(t)?t:e.extend(t),t=n.options,[n,t]}function gt(e,t){if(Array.isArray(t)&&t.length){var n=Object.create(null);t.forEach((function(e){n[e]=!0})),e.$scopedSlots=e.$slots=n}}function yt(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 wt(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(o){Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"微纳园管理端",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(o){}return _(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||k(n,e)||(n[e]=r[e])})),n}var bt=[String,Number,Boolean,Object,Array,null];function xt(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function _t(e,t){var n=e.behaviors,r=e.extends,o=e.mixins,i=e.props;i||(e.props=i=[]);var a=[];return Array.isArray(n)&&n.forEach((function(e){a.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(i)?(i.push("name"),i.push("value")):(i.name={type:String,default:""},i.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),_(r)&&r.props&&a.push(t({properties:St(r.props,!0)})),Array.isArray(o)&&o.forEach((function(e){_(e)&&e.props&&a.push(t({properties:St(e.props,!0)}))})),a}function kt(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function St(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return t||(r.vueId={type:String,value:""},n.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(e,t){var n=Object.create(null);e.forEach((function(e){n[e]=!0})),this.setData({$slots:n})}}),Array.isArray(e)?e.forEach((function(e){r[e]={type:null,observer:xt(e)}})):_(e)&&Object.keys(e).forEach((function(t){var n=e[t];if(_(n)){var o=n.default;b(o)&&(o=o()),n.type=kt(0,n.type),r[t]={type:-1!==bt.indexOf(n.type)?n.type:null,value:o,observer:xt(t)}}else{var i=kt(0,n);r[t]={type:-1!==bt.indexOf(i)?i:null,observer:xt(t)}}})),r}function At(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]=function(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})):_(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}(e,t)})),o}function Ot(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=_(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=At(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(Ot(e)):"string"===typeof e&&k(c,e)?u.push(c[e]):u.push(e)})),u}function Tt(e){var t=this;e=function(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=S,e.preventDefault=S,e.target=e.target||{},k(e,"detail")||(e.detail={}),k(e,"markerId")&&(e.detail="object"===(0,l.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),_(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}(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);r=s?r.slice(1):r;var c="~"===r.charAt(0);r=c?r.slice(1):r,a&&function(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}(o,r)&&a.forEach((function(n){var r=n[0];if(r){var o=t.$vm;if(o.$options.generic&&(o=function(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}(o)||o),"$emit"===r)return void o.$emit.apply(o,Pt(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 p=Pt(t.$vm,e,n[1],n[2],s,r);p=Array.isArray(p)?p:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(p=p.concat([,,,,,,,,,,e])),i.push(a.apply(o,p))}}))})),"input"===o&&1===i.length&&"undefined"!==typeof i[0]?i[0]:void 0}var It={};var Dt=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Ct(){f.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=f.default.prototype.__call_hook;f.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=function(e){var t=It[e];return delete It[e],t}(n.__id__),delete n.__id__),e.call(this,t,n)}}function Et(t,n){var r=n.mocks,o=n.initRefs;Ct(),function(){var e={},t={};function n(e){var t=this.$options.propsData.vueId;if(t){var n=t.split(",")[0];e(n)}}f.default.prototype.$hasSSP=function(n){var r=e[n];return r||(t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))),r},f.default.prototype.$getSSP=function(t,n,r){var o=e[t];if(o){var i=o[n]||[];return r?i:i[0]}},f.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},f.default.prototype.$initSSP=function(){n.call(this,(function(t){e[t]={}}))},f.default.prototype.$callSSP=function(){n.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},f.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete e[r],delete t[r])}})}(),t.$options.store&&(f.default.prototype.$store=t.$options.store),function(e){e.prototype.uniIDHasRole=function(e){var t=g(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=g(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=g(),t=e.tokenExpired;return t>Date.now()}}(f.default),f.default.prototype.mpHost="mp-weixin",f.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(o(this),function(e,t){var n=e.$mp[e.mpType];t.forEach((function(t){k(n,t)&&(e[t]=n[t])}))}(this,r))}}});var i={onLaunch:function(n){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",n),this.$vm.__call_hook("onLaunch",n))}};i.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(e){i[e]=a[e]})),function(e,t,n){var r=e.observable({locale:n||ie.getLocale()}),o=[];t.$watchLocale=function(e){o.push(e)},Object.defineProperty(t,"$locale",{get:function(){return r.locale},set:function(e){r.locale=e,o.forEach((function(t){return t(e)}))}})}(f.default,t,function(){var t,n=e.getAppBaseInfo(),r=n&&n.language?n.language:"en";return t=se(r)||"en",t}()),ft(i,Dt),dt(i,t.$options),i}function Ft(e){return Et(e,{mocks:Ye,initRefs:tt})}function Rt(e){return App(Ft(e)),e}var jt=/[!'()*]/g,Bt=function(e){return"%"+e.charCodeAt(0).toString(16)},Mt=/%2C/g,Nt=function(e){return encodeURIComponent(e).replace(jt,Bt).replace(Mt,",")};function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nt,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):""}function Ut(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPage,r=t.initRelation,o=arguments.length>2?arguments[2]:void 0,i=vt(f.default,e),s=(0,a.default)(i,2),c=s[0],u=s[1],l=h({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(l,u["mp-weixin"].options);var p={options:l,data:wt(u,f.default.prototype),behaviors:_t(u,Qe),properties:St(u.props,!1,u.__file,l),lifetimes:{attached:function(){var e=this.properties,t={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:e};yt(e.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new c(t),gt(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:nt,__e:Tt}};return u.externalClasses&&(p.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(e){p.methods[e]=function(t){return this.$vm[e](t)}})),o?[p,u,c]:n?p:[p,c]}(e,{isPage:Xe,initRelation:et},t)}var Vt=["onShow","onHide","onUnload"];function $t(e){var t=Ut(e,!0),n=(0,a.default)(t,2),r=n[0],o=n[1];return ft(r.methods,Vt,o),r.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Lt(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},dt(r.methods,e,["onReady"]),function(e,t){t&&Object.keys(t).forEach((function(n){var r=n.match(it);if(r){var o=r[1];e[n]=t[n],e[o]=t[o]}}))}(r.methods,o.methods),r}function qt(e){return Component(function(e){return $t(e)}(e))}function zt(e){return Component(Ut(e))}function Ht(t){var n=Ft(t),r=getApp({allowDefault:!0});t.$scope=r;var o=r.globalData;if(o&&Object.keys(n.globalData).forEach((function(e){k(o,e)||(o[e]=n.globalData[e])})),Object.keys(n).forEach((function(e){k(r,e)||(r[e]=n[e])})),b(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r=e.left&&o<=e.right}));null!=r&&n.onSelect(Object.assign(Object.assign({},e),{currentTarget:r}))}))}}}})}).call(this,n("3223")["default"])},e126:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transition=function(e){return Behavior({properties:{customStyle:String,show:{type:Boolean,value:e,observer:"observeShow"},duration:{type:null,value:300,observer:"observeDuration"},name:{type:String,value:"fade"}},data:{type:"",inited:!1,display:!1},ready:function(){!0===this.data.show&&this.observeShow(!0,!1)},methods:{observeShow:function(e,t){e!==t&&(e?this.enter():this.leave())},enter:function(){var e=this,t=this.data,n=t.duration,a=t.name,s=i(a),c=(0,o.isObj)(n)?n.enter:n;"enter"!==this.status&&(this.status="enter",this.$emit("before-enter"),(0,r.requestAnimationFrame)((function(){"enter"===e.status&&(e.$emit("enter"),e.setData({inited:!0,display:!0,classes:s.enter,currentDuration:c}),(0,r.requestAnimationFrame)((function(){"enter"===e.status&&(e.transitionEnded=!1,e.setData({classes:s["enter-to"]}))})))})))},leave:function(){var e=this;if(this.data.display){var t=this.data,n=t.duration,a=t.name,s=i(a),c=(0,o.isObj)(n)?n.leave:n;this.status="leave",this.$emit("before-leave"),(0,r.requestAnimationFrame)((function(){"leave"===e.status&&(e.$emit("leave"),e.setData({classes:s.leave,currentDuration:c}),(0,r.requestAnimationFrame)((function(){"leave"===e.status&&(e.transitionEnded=!1,setTimeout((function(){return e.onTransitionEnd()}),c),e.setData({classes:s["leave-to"]}))})))}))}},onTransitionEnd:function(){if(!this.transitionEnded){this.transitionEnded=!0,this.$emit("after-".concat(this.status));var e=this.data,t=e.show,n=e.display;!t&&n&&this.setData({display:!1})}}}})};var r=n("df29"),o=n("931d"),i=function(e){return{enter:"van-".concat(e,"-enter van-").concat(e,"-enter-active enter-class enter-active-class"),"enter-to":"van-".concat(e,"-enter-to van-").concat(e,"-enter-active enter-to-class enter-active-class"),leave:"van-".concat(e,"-leave van-").concat(e,"-leave-active leave-class leave-active-class"),"leave-to":"van-".concat(e,"-leave-to van-").concat(e,"-leave-active leave-to-class leave-active-class")}}},e32d:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("01cd")),i={TYPE_FRAME:"FRAME",TYPE_BIZ:"BIZ",TYPE_USER:"USER",TYPE_PERSON_BIZ:"BIZ_PERSON",uid:function(){return this.currUser()?this.currUser().id:null},setUser:function(t){e.setStorage({key:"laocui_user_token",data:t,success:function(){}})},setRequestHanderAuth:function(t){e.setStorage({key:"requestHanderAuth",data:t,success:function(){}})},setUserInfo:function(t){e.setStorage({key:"laocui_user_info",data:JSON.stringify(t),success:function(){}})},currUser:function(){return o.default.castEval(localStorage.getItem(this.userKey())||"")},removeUser:function(){e.removeStorage(this.userKey())},bid:function(){return this.currBiz()?this.currBiz().id:null},setBiz:function(e){sessionStorage.setItem(this.bizKey(),JSON.stringify(e))},removeBiz:function(){sessionStorage.removeItem(this.bizKey())},currBiz:function(){return o.default.castEval(sessionStorage.getItem(this.bizKey())||null)},setToken:function(e){localStorage.setItem(this.tokenKey(),e)},getToken:function(){return localStorage.getItem(this.tokenKey())||null},removeToken:function(){localStorage.removeItem(this.tokenKey())},setLoginInfo:function(e){localStorage.setItem("KEY_ADMIN_USER_LOGIN_INFO",JSON.stringify(e))},getLoginInfo:function(){return o.default.castEval(localStorage.getItem("KEY_ADMIN_USER_LOGIN_INFO")||null)},removeLoginInfo:function(){localStorage.removeItem("KEY_ADMIN_USER_LOGIN_INFO")},setBizLoginInfo:function(e){localStorage.setItem("KEY_BIZ_USER_LOGIN_INFO",JSON.stringify(e))},getBizLoginInfo:function(){return o.default.castEval(localStorage.getItem("KEY_BIZ_USER_LOGIN_INFO")||null)},removeBizLoginInfo:function(){localStorage.removeItem("KEY_BIZ_USER_LOGIN_INFO")},setUserType:function(e){localStorage.setItem("KEY_USER_TYPE",e)},getUserType:function(){return localStorage.getItem("KEY_USER_TYPE")||"TYPE_FRAME"},hashCode:function(e){var t=0;if(0===e.length)return t;for(var n=0;n1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(e),o=n.length>0?n[0]:"",a=O("%"+o+"%",t),c=a.name,u=a.value,l=!1,p=a.alias;p&&(o=p[0],w(n,y([0,1],p)));for(var f=1,d=!0;f=n.length){var k=s(u,m);d=!!k,u=d&&"get"in k&&!("originalValue"in k.get)?k.get:u[m]}else d=g(u,m),u=u[m];d&&!l&&(h[c]=u)}}return u}},ee10: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)}e.exports=function(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.__esModule=!0,e.exports["default"]=e.exports},efa5:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n("f4c9");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},f378:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.touch=void 0;var r=Behavior({methods:{resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},touchStart:function(e){this.resetTouchStatus();var t=e.touches[0];this.startX=t.clientX,this.startY=t.clientY},touchMove:function(e){var t=e.touches[0];this.deltaX=t.clientX-this.startX,this.deltaY=t.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||function(e,t){return e>t&&e>10?"horizontal":t>e&&t>10?"vertical":""}(this.offsetX,this.offsetY)}}});t.touch=r},f4c9:function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},f8c7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VantComponent=function(e){var t={};(function(e,t,n){Object.keys(n).forEach((function(r){e[r]&&(t[n[r]]=e[r])}))})(e,t,{data:"data",props:"properties",watch:"observers",mixins:"behaviors",methods:"methods",beforeCreate:"created",created:"attached",mounted:"ready",destroyed:"detached",classes:"externalClasses"}),t.externalClasses=t.externalClasses||[],t.externalClasses.push("custom-class"),t.behaviors=t.behaviors||[],t.behaviors.push(r.basic);var n=e.relation;n&&(t.relations=n.relations,t.behaviors.push(n.mixin));e.field&&t.behaviors.push("wx://form-field");t.options={multipleSlots:!0,addGlobalClass:!0},Component(t)};var r=n("79ce")},f9ca:function(e,t,n){"use strict";(function(e,n,r){Object.defineProperty(t,"__esModule",{value:!0}),t.chooseAndUploadFile=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};if("image"===e.type)return u(i(e),e);if("video"===e.type)return u(a(e),e);return u(s(e),e)},t.uploadCloudFiles=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=arguments.length>2?arguments[2]:void 0;e=JSON.parse(JSON.stringify(e));var o=e.length,i=0,a=this;return new Promise((function(s){while(i=o)!e.find((function(e){return!e.url&&!e.errMsg}))&&s(e);else{var u=e[t],l=a.files.findIndex((function(e){return e.uuid===u.uuid}));u.url="",delete u.errMsg,r.uploadFile({filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,onUploadProgress:function(e){e.index=l,n&&n(e)}}).then((function(e){u.url=e.fileID,u.index=l,te||!this.data.ellipsis})}},offsetTop:{type:Number,value:0},lazyRender:{type:Boolean,value:!0},useBeforeChange:{type:Boolean,value:!1}},data:{tabs:[],scrollLeft:0,scrollable:!1,currentIndex:0,container:null,skipTransition:!0,scrollWithAnimation:!1,lineOffsetLeft:0,inited:!1},mounted:function(){var e=this;(0,s.requestAnimationFrame)((function(){e.swiping=!0,e.setData({container:function(){return e.createSelectorQuery().select(".van-tabs")}}),e.resize(),e.scrollIntoView()}))},methods:{updateTabs:function(){var e=this.children,t=void 0===e?[]:e,n=this.data;this.setData({tabs:t.map((function(e){return e.data})),scrollable:this.children.length>n.swipeThreshold||!n.ellipsis}),this.setCurrentIndexByName(n.active||this.getCurrentName())},trigger:function(e,t){var n=this.data.currentIndex,r=this.getChildData(n,t);(0,c.isDef)(r)&&this.$emit(e,r)},onTap:function(e){var t=this,n=e.currentTarget.dataset.index,r=this.children[n];r.data.disabled?this.trigger("disabled",r):this.onBeforeChange(n).then((function(){t.setCurrentIndex(n),(0,s.nextTick)((function(){t.trigger("click")}))}))},setCurrentIndexByName:function(e){var t=this.children,n=void 0===t?[]:t,r=n.filter((function(t){return t.getComputedName()===e}));r.length&&this.setCurrentIndex(r[0].index)},setCurrentIndex:function(e){var t=this,n=this.data,r=this.children,o=void 0===r?[]:r;if(!(!(0,c.isDef)(e)||e>=o.length||e<0)&&((0,s.groupSetData)(this,(function(){o.forEach((function(n,r){var o=r===e;o===n.data.active&&n.inited||n.updateRender(o,t)}))})),e!==n.currentIndex)){var i=null!==n.currentIndex;this.setData({currentIndex:e}),(0,s.requestAnimationFrame)((function(){t.resize(),t.scrollIntoView()})),(0,s.nextTick)((function(){t.trigger("input"),i&&t.trigger("change")}))}},getCurrentName:function(){var e=this.children[this.data.currentIndex];if(e)return e.getComputedName()},resize:function(){var e=this;if("line"===this.data.type){var t=this.data,n=t.currentIndex,r=t.ellipsis,i=t.skipTransition;Promise.all([(0,s.getAllRect)(this,".van-tab"),(0,s.getRect)(this,".van-tabs__line")]).then((function(t){var a=(0,o.default)(t,2),s=a[0],c=void 0===s?[]:s,u=a[1],l=c[n];if(null!=l){var p=c.slice(0,n).reduce((function(e,t){return e+t.width}),0);p+=(l.width-u.width)/2+(r?0:8),e.setData({lineOffsetLeft:p,inited:!0}),e.swiping=!0,i&&setTimeout((function(){e.setData({skipTransition:!1})}),e.data.duration)}}))}},scrollIntoView:function(){var e=this,t=this.data,n=t.currentIndex,r=t.scrollable,i=t.scrollWithAnimation;r&&Promise.all([(0,s.getAllRect)(this,".van-tab"),(0,s.getRect)(this,".van-tabs__nav")]).then((function(t){var r=(0,o.default)(t,2),a=r[0],c=r[1],u=a[n],l=a.slice(0,n).reduce((function(e,t){return e+t.width}),0);e.setData({scrollLeft:l-(c.width-u.width)/2}),i||(0,s.nextTick)((function(){e.setData({scrollWithAnimation:!0})}))}))},onTouchScroll:function(e){this.$emit("scroll",e.detail)},onTouchStart:function(e){this.data.swipeable&&(this.swiping=!0,this.touchStart(e))},onTouchMove:function(e){this.data.swipeable&&this.swiping&&this.touchMove(e)},onTouchEnd:function(){var e=this;if(this.data.swipeable&&this.swiping){var t=this.direction,n=this.deltaX,r=this.offsetX;if("horizontal"===t&&r>=50){var o=this.getAvaiableTab(n);-1!==o&&this.onBeforeChange(o).then((function(){return e.setCurrentIndex(o)}))}this.swiping=!1}},getAvaiableTab:function(e){for(var t=this.data,n=t.tabs,r=t.currentIndex,o=e>0?-1:1,i=o;r+i=0;i+=o){var a=r+i;if(a>=0&&a1&&void 0!==l[1]?l[1]:"image",r=a(t.name),i=r.ext.toLowerCase(),c={name:t.name,uuid:t.uuid,extname:i||"",cloudPath:t.cloudPath,fileType:t.fileType,url:t.path||t.path,size:t.size,image:{},path:t.path,video:{}},"image"!==n){e.next=14;break}return e.next=7,s(t.path);case 7:u=e.sent,delete c.video,c.image.width=u.width,c.image.height=u.height,c.image.location=u.path,e.next=15;break;case 14:delete c.image;case 15:return e.abrupt("return",c);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.get_file_data=c}).call(this,n("df3c")["default"])}}]);