|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"00e8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{wxsProp:{optDown:{},scrollTop:0,bodyHeight:0,isDownScrolling:!1,isUpScrolling:!1,isScrollBody:!0,isUpBoth:!0,t:0},callProp:{callType:"",t:0},renderBiz:{propObserver:function(){}}}},methods:{wxsCall:function(e){"setWxsProp"===e.type?this.wxsProp={optDown:this.mescroll.optDown,scrollTop:this.mescroll.getScrollTop(),bodyHeight:this.mescroll.getBodyHeight(),isDownScrolling:this.mescroll.isDownScrolling,isUpScrolling:this.mescroll.isUpScrolling,isUpBoth:this.mescroll.optUp.isBoth,isScrollBody:this.mescroll.isScrollBody,t:Date.now()}:"setLoadType"===e.type?(this.downLoadType=e.downLoadType,this.$set(this.mescroll,"downLoadType",this.downLoadType),this.$set(this.mescroll,"isDownEndSuccess",null)):"triggerDownScroll"===e.type?this.mescroll.triggerDownScroll():"endDownScroll"===e.type?this.mescroll.endDownScroll():"triggerUpScroll"===e.type&&this.mescroll.triggerUpScroll(!0)}},mounted:function(){var e=this;this.mescroll.optDown.afterLoading=function(){e.callProp={callType:"showLoading",t:Date.now()}},this.mescroll.optDown.afterEndDownScroll=function(){e.callProp={callType:"endDownScroll",t:Date.now()};var t=300+(e.mescroll.optDown.beforeEndDelay||0);setTimeout((function(){4!==e.downLoadType&&0!==e.downLoadType||(e.callProp={callType:"clearTransform",t:Date.now()}),e.$set(e.mescroll,"downLoadType",e.downLoadType)}),t)},this.wxsCall({type:"setWxsProp"})}},o=r;t.default=o},"0462":function(e,t,n){(function(t){function n(e,n){t.showLoading({title:"加载中"}),t.downloadFile({url:e,success:function(e){var r=e.tempFilePath;t.openDocument({filePath:r,fileType:n,success:function(){t.hideLoading()},fail:function(){t.hideLoading()}})}})}e.exports={previepdf:n}}).call(this,n("543d")["default"])},"046c":function(e,t,n){"use strict";(function(e,n){function r(e){return s(e)||a(e)||i(e)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){if(e){if("string"===typeof e)return u(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)?u(e,t):void 0}}function a(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e){if(Array.isArray(e))return u(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c={load:"load",error:"error"},l={add:"add",replace:"replace"},f=["pageCurrent","pageSize","collection","action","field","getcount","orderby","where"],p={data:function(){return{loading:!1,listData:this.getone?{}:[],paginationInternal:{current:this.pageCurrent,size:this.pageSize,count:0},errorMessage:""}},created:function(){var t=this;this.collection&&(this.db=e.database(),this.dbCmd=this.db.command),this._isEnded=!1,this.$watch((function(){var e=[];return f.forEach((function(n){e.push(t[n])})),e}),(function(e,n){t.paginationInternal.pageSize=t.pageSize;for(var r=!1,o=2;o<e.length;o++)if(e[o]!=n[o]){r=!0;break}r&&(t.clear(),t.reset()),e[0]!=n[0]&&(t.paginationInternal.current=t.pageCurrent),t._execLoadData()}))},methods:{loadData:function(e,t){var n=null;"object"===typeof e?(e.clear&&(this.clear(),this.reset()),void 0!==e.current&&(this.paginationInternal.current=e.current),"function"===typeof t&&(n=t)):"function"===typeof e&&(n=e),this._execLoadData(n)},loadMore:function(){this._isEnded||this._execLoadData()},refresh:function(){this.clear(),this._execLoadData()},clear:function(){this._isEnded=!1,this.listData=[]},reset:function(){this.paginationInternal.current=1},remove:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.action,i=r.callback,a=r.confirmTitle,s=r.confirmContent;e&&e.length&&n.showModal({title:a||"提示",content:s||"是否删除该数据",showCancel:!0,success:function(n){n.confirm&&t._execRemove(e,o,i)}})},_execLoadData:function(e){var t=this;this.loading||(this.loading=!0,this.errorMessage="",this._getExec().then((function(n){t.loading=!1;var o=n.result,i=o.data,a=o.count;if(t._isEnded=i.length<t.pageSize,e&&e(i,t._isEnded),t._dispatchEvent(c.load,i),t.getone)t.listData=i.length?i[0]:void 0;else if(t.pageData===l.add){var s;(s=t.listData).push.apply(s,r(i)),t.listData.length&&t.paginationInternal.current++}else t.pageData===l.replace&&(t.listData=i,t.paginationInternal.count=a)})).catch((function(n){t.loading=!1,t.errorMessage=n,e&&e(),t.$emit(c.error,n)})))},_getExec:function(){var e=this.db;this.action&&(e=e.action(this.action)),e=e.collection(this.collection),this.where&&Object.keys(this.where).length&&(e=e.where(this.where)),this.field&&(e=e.field(this.field)),this.orderby&&(e=e.orderBy(this.orderby));var t=this.paginationInternal,n=t.current,r=t.size;return e=e.skip(r*(n-1)).limit(r).get({getCount:this.getcount}),e},_execRemove:function(e,t,r){var o=this;if(this.collection&&e){var i=Array.isArray(e)?e:[e];if(i.length){n.showLoading({mask:!0});var a=this.db;t&&(a=a.action(t)),a.collection(this.collection).where({_id:dbCmd.in(i)}).remove().then((function(e){r&&r(e.result),o.pageData===l.replace?o.refresh():o.removeData(i)})).catch((function(e){n.showModal({content:e.message,showCancel:!1})})).finally((function(){n.hideLoading()}))}}},removeData:function(e){for(var t=e.slice(0),n=this.listData,r=n.length-1;r>=0;r--){var o=t.indexOf(n[r]._id);o>=0&&(n.splice(r,1),t.splice(o,1))}},_dispatchEvent:function(e,t){this._changeDataFunction?this._changeDataFunction(t,this._isEnded):this.$emit(e,t,this._isEnded)}}};t.default=p}).call(this,n("a9ff")["default"],n("543d")["default"])},"0d12":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={appid:"__UNI__EB9AA47"};t.default=r},"1eb9":function(e,t,n){(function(t){function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(e,t,"GET")}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(e,t,"put")}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(e,t,"delete")}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(e,t,"POST")}var a=getApp().globalData.url;function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";return new Promise((function(o,i){t.showLoading({title:"加载中"}),t.request({url:a+e,method:r,data:n,header:{"mini-session":t.getStorageSync("session")||"",Accept:"application/json","X-Requested-With":"XMLHttpRequest","Content-Type":"application/json"},success:function(e){e.data?e.data.error?(404!=e.data.error.code&&t.showToast({title:e.data.error.message,icon:"none"}),9999==e.data.error.code&&(t.clearStorageSync("session"),t.showToast({title:"登录失效,请重新登录",icon:"none"}),setTimeout((function(){t.reLaunch({url:"/pages/login/login"})}),1e3)),i(e.data.error.message)):o(e.data):(o(null),t.hideLoading())},fail:function(e){console.log(e),t.showToast({title:"请求超时,请重试",icon:"none"})}})}))}e.exports={get:n,post:i,put:r,deletes:o}}).call(this,n("543d")["default"])},"2c3e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("4382")),o=n("3bb4");function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return l(e)||c(e)||u(e)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return f(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)?f(e,t):void 0}}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return f(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}var v=function(){function e(t){var n=this;if(p(this,e),this.ready=!1,this.currentNode=null,this.currentNodeKey=null,Object.assign(this,t),!this.key)throw new Error("[Tree] nodeKey is required");if(this.nodesMap={},this.root=new r.default({data:this.data,store:this}),this.lazy&&this.load){var o=this.load;o(this.root,(function(e){n.root.doCreateChildren(e),n._initDefaultCheckedNodes(),n.ready=!0}))}else this._initDefaultCheckedNodes(),this.ready=!0}return d(e,[{key:"filter",value:function(e,t){var n=this.filterNodeMethod,r=this.lazy,o=this,i=function i(a){var s=a.root?a.root.getChildNodes(a.root.childNodesId):a.getChildNodes(a.childNodesId);if(s.forEach((function(r){if(t&&"object"===typeof t){var a=o.getNodePath(r.data);if(!a.some((function(e){return e[o.key]===t[o.key]})))return r.visible=!1,void i(r)}if(o.childVisibleForFilterNode){var s=r.getParent(r.parentId);r.visible=n.call(r,e,r.data,r)||s&&s.visible}else r.visible=n.call(r,e,r.data,r);i(r)})),!a.visible&&s.length){var u=!0;u=!s.some((function(e){return e.visible})),a.root?a.root.visible=!1===u:a.visible=!1===u}e&&(!a.visible||a.isLeaf||r||a.expand())};i(this)}},{key:"setData",value:function(e){var t=e!==this.root.data;t?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}},{key:"getNode",value:function(e){if(e instanceof r.default)return e;var t="object"!==typeof e?e:(0,o.getNodeKey)(this.key,e);return t&&this.nodesMap[t]||null}},{key:"insertBefore",value:function(e,t){var n=this.getNode(t),r=n.getParent(n.parentId);r.insertBefore({data:e},n)}},{key:"insertAfter",value:function(e,t){var n=this.getNode(t),r=n.getParent(n.parentId);r.insertAfter({data:e},n)}},{key:"remove",value:function(e){var t=this.getNode(e);if(t&&null!==t.parentId){var n=t.getParent(t.parentId);t===this.currentNode&&(this.currentNode=null),n.removeChild(t)}}},{key:"append",value:function(e,t){var n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})}},{key:"_initDefaultCheckedNodes",value:function(){var e=this,t=this.defaultCheckedKeys||[],n=this.nodesMap,r=[],i=[];for(var s in n){var u=(0,o.getPropertyFromData)(n[s],"checked")||!1;u&&r.push(s)}i=Array.from(new Set([].concat(a(t),r))),i.forEach((function(t){var r=n[t];r&&r.setChecked(!0,!e.checkStrictly)}))}},{key:"_initDefaultCheckedNode",value:function(e){var t=this.defaultCheckedKeys||[];-1!==t.indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)}},{key:"toggleExpendAll",value:function(e){var t=this,n=this._getAllNodes();n.forEach((function(n){var r=t.getNode(n.key);r&&(e?r.expand():r.collapse())}))}},{key:"setCheckAll",value:function(e){var t=this._getAllNodes();t.forEach((function(t){t.setChecked(e,!1)}))}},{key:"setDefaultCheckedKey",value:function(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}},{key:"registerNode",value:function(e){var t=this.key;if(t&&e&&e.data){var n=e.key;void 0!==n&&(this.nodesMap[e.key]=e)}}},{key:"deregisterNode",value:function(e){var t=this,n=this.key;if(n&&e&&e.data){var r=e.getChildNodes(e.childNodesId);r.forEach((function(e){t.deregisterNode(e)})),delete this.nodesMap[e.key]}}},{key:"getNodePath",value:function(e){if(!this.key)throw new Error("[Tree] nodeKey is required in getNodePath");var t=this.getNode(e);if(!t)return[];var n=[t.data],r=t.getParent(t.parentId);while(r&&r!==this.root)n.push(r.data),r=r.getParent(r.parentId);return n.reverse()}},{key:"getCheckedNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=function r(o){var i=o.root?o.root.getChildNodes(o.root.childNodesId):o.getChildNodes(o.childNodesId);i.forEach((function(o){(o.checked||t&&o.indeterminate)&&(!e||e&&o.isLeaf)&&n.push(o.data),r(o)}))};return r(this),n}},{key:"getCheckedKeys",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];return this.getCheckedNodes(t,n).map((function(t){return(t||{})[e.key]}))}},{key:"getHalfCheckedNodes",value:function(){var e=[],t=function t(n){var r=n.root?n.root.getChildNodes(n.root.childNodesId):n.getChildNodes(n.childNodesId);r.forEach((function(n){n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e}},{key:"getHalfCheckedKeys",value:function(){var e=this;return this.getHalfCheckedNodes().map((function(t){return(t||{})[e.key]}))}},{key:"_getAllNodes",value:function(){var e=[],t=this.nodesMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e}},{key:"updateChildren",value:function(e,t){var n=this.nodesMap[e];if(n){for(var r=n.getChildNodes(n.childNodesId),o=r.length-1;o>=0;o--){var i=r[o];this.remove(i.data)}for(var a=0,s=t.length;a<s;a++){var u=t[a];this.append(u,n.data)}}}},{key:"_setCheckedKeys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this._getAllNodes().sort((function(e,t){return t.level-e.level})),o=Object.create(null),i=Object.keys(n);r.forEach((function(e){return e.setChecked(!1,!1)}));for(var a=0,s=r.length;a<s;a++){var u=r[a],c=u.data[e];if("undefined"!==typeof c){c=c.toString();var l=i.indexOf(c)>-1;if(l){var f=u.getParent(u.parentId);while(f&&f.level>0)o[f.data[e]]=!0,f=f.getParent(f.parentId);u.isLeaf||this.checkStrictly?u.setChecked(!0,!1):(u.setChecked(!0,!0),t&&function(){u.setChecked(!1,!1);var e=function e(t){var n=t.getChildNodes(t.childNodesId);n.forEach((function(t){t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(u)}())}else u.checked&&!o[c]&&u.setChecked(!1,!1)}}}},{key:"setCheckedNodes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,r={};e.forEach((function(e){r[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,r)}},{key:"setCheckedKeys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,r={};e.forEach((function(e){r[e]=!0})),this._setCheckedKeys(n,t,r)}},{key:"setDefaultExpandedKeys",value:function(e){var t=this;e=e||[],this.defaultExpandedKeys=e,e.forEach((function(e){var n=t.getNode(e);n&&n.expand(null,t.autoExpandParent)}))}},{key:"setChecked",value:function(e,t,n){var r=this.getNode(e);r&&r.setChecked(!!t,n)}},{key:"getCurrentNode",value:function(){return this.currentNode}},{key:"setCurrentNode",value:function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0,this.expandCurrentNodeParent&&this.currentNode.expand(null,!0)}},{key:"setUserCurrentNode",value:function(e){var t=e[this.key],n=this.nodesMap[t];this.setCurrentNode(n)}},{key:"setCurrentNodeKey",value:function(e){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)}}]),e}();t.default=v},"2d2b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=t.debounce=void 0;var r=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return console.log(1),function(){console.log(123);var o=this,i=arguments;if(t&&clearTimeout(t),r){var a=!t;t=setTimeout((function(){t=null}),n),a&&e.apply(o,i)}else t=setTimeout((function(){e.apply(o,i)}),n)}};t.debounce=r;var o=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=0;return function(){var i=this,a=arguments;if(1===r){var s=Date.now();s-o>n&&(e.apply(i,a),o=s)}else 2===r&&(t||(t=setTimeout((function(){t=null,e.apply(i,a)}),n)))}};t.throttle=o},3364:function(e,t){},"3b20":function(e,t){(function(){var t={qiniuRegion:"",qiniuImageURLPrefix:"",qiniuUploadToken:"",qiniuUploadTokenURL:"",qiniuUploadTokenFunction:null,qiniuShouldUseQiniuFileName:!1};function n(e){t={qiniuRegion:"",qiniuImageURLPrefix:"",qiniuUploadToken:"",qiniuUploadTokenURL:"",qiniuUploadTokenFunction:null,qiniuShouldUseQiniuFileName:!1},r(e)}function r(e){e.region?t.qiniuRegion=e.region:console.error("qiniu uploader need your bucket region"),e.uptoken?t.qiniuUploadToken=e.uptoken:e.uptokenURL?t.qiniuUploadTokenURL=e.uptokenURL:e.uptokenFunc&&(t.qiniuUploadTokenFunction=e.uptokenFunc),e.domain&&(t.qiniuImageURLPrefix=e.domain),t.qiniuShouldUseQiniuFileName=e.shouldUseQiniuFileName}function o(e,n,o,s,u,c){if(null!=e)if(s&&r(s),t.qiniuUploadToken)i(e,n,o,s,u,c);else if(t.qiniuUploadTokenURL)a((function(){i(e,n,o,s,u,c)}));else{if(!t.qiniuUploadTokenFunction)return void console.error("qiniu uploader need one of [uptoken, uptokenURL, uptokenFunc]");if(t.qiniuUploadToken=t.qiniuUploadTokenFunction(),null==t.qiniuUploadToken&&t.qiniuUploadToken.length>0)return void console.error("qiniu UploadTokenFunction result is null, please check the return value");i(e,n,o,s,u,c)}else console.error("qiniu uploader need filePath to upload")}function i(e,n,r,o,i,a){if(null==t.qiniuUploadToken&&t.qiniuUploadToken.length>0)console.error("qiniu UploadToken is null, please check the init config or networking");else{var u=s(t.qiniuRegion),c=e.split("//")[1];o&&o.key&&(c=o.key);var l={token:t.qiniuUploadToken};t.qiniuShouldUseQiniuFileName||(l["key"]=c);var f=wx.uploadFile({url:u,filePath:e,name:"file",formData:l,success:function(e){var o=e.data;e.data.hasOwnProperty("type")&&"Buffer"===e.data.type&&(o=String.fromCharCode.apply(null,e.data.data));try{var i=JSON.parse(o),a=t.qiniuImageURLPrefix+"/"+i.key;i.imageURL=a,n&&n(i)}catch(s){console.log("parse JSON failed, origin String is: "+o),r&&r(s)}},fail:function(e){console.error(e),r&&r(e)}});f.onProgressUpdate((function(e){i&&i(e)})),a&&a((function(){f.abort()}))}}function a(e){wx.request({url:t.qiniuUploadTokenURL,success:function(n){var r=n.data.uptoken;r&&r.length>0?(t.qiniuUploadToken=r,e&&e()):console.error("qiniuUploader cannot get your token, please check the uptokenURL or server")},fail:function(e){console.error("qiniu UploadToken is null, please check the init config or networking: "+e)}})}function s(e){var t=null;switch(e){case"ECN":t="https://up.qbox.me";break;case"NCN":t="https://up-z1.qbox.me";break;case"SCN":t="https://up-z2.qbox.me";break;case"NA":t="https://up-na0.qbox.me";break;case"ASG":t="https://up-as0.qbox.me";break;default:console.error("please make the region is with one of [ECN, SCN, NCN, NA, ASG]")}return t}e.exports={init:n,upload:o}})()},"3bb4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=t.getPropertyFromData=t.reInitChecked=t.getChildState=t.arrayFindIndex=t.objectAssign=t.getNodeKey=t.markNodeData=t.NODE_KEY=void 0;var r="$treeNodeId";t.NODE_KEY=r;var o=function(e,t){t&&!t[r]&&Object.defineProperty(t,r,{value:e.id,enumerable:!1,configurable:!1,writable:!1})};t.markNodeData=o;var i=function(e,t){return t?e?t[e]:t[r]:null};t.getNodeKey=i;var a=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t]||{};for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];void 0!==i&&(e[o]=i)}}return e};t.objectAssign=a;var s=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1};t.arrayFindIndex=s;var u=function(e){for(var t=!0,n=!0,r=!0,o=0,i=e.length;o<i;o++){var a=e[o];(!0!==a.checked||a.indeterminate)&&(t=!1,a.disabled||(r=!1)),(!1!==a.checked||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}};t.getChildState=u;var c=function e(t){if(t&&0!==t.childNodesId.length){var n=t.getChildNodes(t.childNodesId),r=u(n),o=r.all,i=r.none,a=r.half;o?(t.checked=!0,t.indeterminate=!1):a?(t.checked=!1,t.indeterminate=!0):i&&(t.checked=!1,t.indeterminate=!1);var s=t.getParent(t.parentId);s&&0!==s.level&&(t.store().checkStrictly||e(s))}};t.reInitChecked=c;var l=function(e,t){var n=e.store().props,r=e.data||{},o=n[t];if("function"===typeof o)return o(r,e);if("string"===typeof o)return r[o];if("undefined"===typeof o){var i=r[t];return void 0===i?"":i}};t.getPropertyFromData=l;var f=function(e){return void 0===e||null===e||""===e};t.isNull=f},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("3bb4");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var s=function(e){var t=e;return function(){return t}},u=0,c=function(){function e(t){for(var n in o(this,e),this.time=(new Date).getTime(),this.id=u++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parentId=null,this.visible=!0,this.isCurrent=!1,t)t.hasOwnProperty(n)&&("store"===n?this.store=s(t[n]):this[n]=t[n]);if(!this.store())throw new Error("[Node]store is required!");this.level=0,this.loaded=!1,this.childNodesId=[],this.loading=!1,this.label=(0,r.getPropertyFromData)(this,"label"),this.key=this._getKey(),this.disabled=(0,r.getPropertyFromData)(this,"disabled"),this.nextSibling=null,this.previousSibling=null,this.icon="",this._handleParentAndLevel(),this._handleProps(),this._handleExpand(),this._handleCurrent(),this.store().lazy&&this.store()._initDefaultCheckedNode(this),this.updateLeafState()}return a(e,[{key:"_getKey",value:function(){if(!this.data||Array.isArray(this.data))return null;if("object"===typeof this.data){var e=this.store().key,t=this.data[e];if("undefined"===typeof t)throw new Error('您配置的node-key为"'.concat(e,'",但数据中并未找到对应"').concat(e,'"属性的值,请检查node-key的配置是否合理'));return t}throw new Error("不合法的data数据")}},{key:"_handleParentAndLevel",value:function(){if(null!==this.parentId){var e=this.getParent(this.parentId);if(this.store().isInjectParentInNode&&(this.parent=e),e){var t=e.getChildNodes(e.childNodesId),n=e.childNodesId.indexOf(this.key);this.nextSibling=n>-1?t[n+1]:null,this.previousSibling=n>0?t[n-1]:null}else e={level:0};this.level=e.level+1}}},{key:"_handleProps",value:function(){var e=this.store().props;if(this.store().showNodeIcon&&(e&&"undefined"!==typeof e.icon?this.icon=(0,r.getPropertyFromData)(this,"icon"):console.warn('请配置props属性中的"icon"字段')),this.store().registerNode(this),e&&"undefined"!==typeof e.isLeaf){var t=(0,r.getPropertyFromData)(this,"isLeaf");"boolean"===typeof t&&(this.isLeafByUser=t)}}},{key:"_handleExpand",value:function(){if(!0!==this.store().lazy&&this.data?(this.setData(this.data),this.store().defaultExpandAll&&(this.expanded=!0)):this.level>0&&this.store().lazy&&this.store().defaultExpandAll&&this.expand(),Array.isArray(this.data)||(0,r.markNodeData)(this,this.data),this.data){var e=this.store().defaultExpandedKeys,t=this.store().key;t&&e&&-1!==e.indexOf(this.key)&&this.expand(null,this.store().autoExpandparent)}}},{key:"_handleCurrent",value:function(){var e=this.store().key;e&&void 0!==this.store().currentNodeKey&&this.key===this.store().currentNodeKey&&(this.store().currentNode=this,this.store().currentNode.isCurrent=!0)}},{key:"destroyStore",value:function(){s(null)}},{key:"setData",value:function(e){var t;Array.isArray(e)||(0,r.markNodeData)(this,e),this.data=e,this.childNodesId=[],t=0===this.level&&Array.isArray(this.data)?this.data:(0,r.getPropertyFromData)(this,"children")||[];for(var n=0,o=t.length;n<o;n++)this.insertChild({data:t[n]})}},{key:"contains",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function n(r){for(var o=r.getChildNodes(r.childNodesId)||[],i=!1,a=0,s=o.length;a<s;a++){var u=o[a];if(u===e||t&&n(u)){i=!0;break}}return i};return n(this)}},{key:"remove",value:function(){if(null!==this.parentId){var e=this.getParent(this.parentId);e.removeChild(this)}}},{key:"insertChild",value:function(t,n,o){if(!t)throw new Error("insertChild error: child is required.");if(!(t instanceof e)){if(!o){var i=this.getChildren(!0);-1===i.indexOf(t.data)&&("undefined"===typeof n||n<0?i.push(t.data):i.splice(n,0,t.data))}(0,r.objectAssign)(t,{parentId:(0,r.isNull)(this.key)?"":this.key,store:this.store()}),t=new e(t)}t.level=this.level+1,"undefined"===typeof n||n<0?this.childNodesId.push(t.key):this.childNodesId.splice(n,0,t.key),this.updateLeafState()}},{key:"insertBefore",value:function(e,t){var n;t&&(n=this.childNodesId.indexOf(t.id)),this.insertChild(e,n)}},{key:"insertAfter",value:function(e,t){var n;t&&(n=this.childNodesId.indexOf(t.id),-1!==n&&(n+=1)),this.insertChild(e,n)}},{key:"removeChild",value:function(e){var t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);var r=this.childNodesId.indexOf(e.key);r>-1&&(this.store()&&this.store().deregisterNode(e),e.parentId=null,this.childNodesId.splice(r,1)),this.updateLeafState()}},{key:"removeChildByData",value:function(e){for(var t=null,n=0;n<this.childNodesId.length;n++){var r=this.getChildNodes(this.childNodesId);if(r[n].data===e){t=r[n];break}}t&&this.removeChild(t)}},{key:"getParent",value:function(e){try{return e.toString()?this.store().nodesMap[e]:null}catch(t){return null}}},{key:"getChildNodes",value:function(e){var t=this,n=[];return 0===e.length||e.forEach((function(e){n.push(t.store().nodesMap[e])})),n}},{key:"expand",value:function(e,t){var n=this,o=function(){if(t){var r=n.getParent(n.parentId);while(r&&r.level>0)r.expanded=!0,r=n.getParent(r.parentId)}n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData((function(e){Array.isArray(e)&&(this.checked?this.setChecked(!0,!0):this.store().checkStrictly||(0,r.reInitChecked)(this),o())})):o()}},{key:"doCreateChildren",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){t.insertChild((0,r.objectAssign)({data:e},n),void 0,!0)}))}},{key:"collapse",value:function(){this.expanded=!1}},{key:"shouldLoadData",value:function(){return!0===this.store().lazy&&this.store().load&&!this.loaded}},{key:"updateLeafState",value:function(){if(!0!==this.store().lazy||!0===this.loaded||"undefined"===typeof this.isLeafByUser){var e=this.childNodesId;!this.store().lazy||!0===this.store().lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser}},{key:"setChecked",value:function(e,t,n,o){var i=this;if(this.indeterminate="half"===e,this.checked=!0===e,this.checked&&this.store().expandOnCheckNode&&this.expand(null,!0),!this.store().checkStrictly&&!this.store().showRadio){if(!this.shouldLoadData()||this.store().checkDescendants){var a=this.getChildNodes(this.childNodesId),s=(0,r.getChildState)(a),u=s.all,c=s.allWithoutDisable;this.isLeaf||u||!c||(this.checked=!1,e=!1);var l=function(){if(t){for(var n=i.getChildNodes(i.childNodesId),a=0,s=n.length;a<s;a++){var u=n[a];o=o||!1!==e;var c=u.disabled?u.checked:o;u.setChecked(c,t,!0,o)}var l=(0,r.getChildState)(n),f=l.half,p=l.all;p||(i.checked=p,i.indeterminate=f)}};if(this.shouldLoadData())return void this.loadData((function(){l(),(0,r.reInitChecked)(i)}),{checked:!1!==e});l()}if(this.parentId){var f=this.getParent(this.parentId);f&&0===f.level||n||(0,r.reInitChecked)(f)}}}},{key:"setRadioChecked",value:function(e){var t=this.store()._getAllNodes().sort((function(e,t){return t.level-e.level}));t.forEach((function(e){return e.setChecked(!1,!1)})),this.checked=!0===e}},{key:"getChildren",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var t=this.data;if(!t)return null;var n=this.store().props,r="children";return n&&(r=n.children||"children"),void 0===t[r]&&(t[r]=null),e&&!t[r]&&(t[r]=[]),t[r]}},{key:"updateChildren",value:function(){var e=this,t=this.getChildNodes(this.childNodesId),n=this.getChildren()||[],o=t.map((function(e){return e.data})),i={},a=[];n.forEach((function(e,t){var n=e[r.NODE_KEY],s=!!n&&(0,r.arrayFindIndex)(o,(function(e){return e[r.NODE_KEY]===n}))>=0;s?i[n]={index:t,data:e}:a.push({index:t,data:e})})),this.store().lazy||o.forEach((function(t){i[t[r.NODE_KEY]]||e.removeChildByData(t)})),a.forEach((function(t){var n=t.index,r=t.data;e.insertChild({data:r},n)})),this.updateLeafState()}},{key:"loadData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store().lazy||!this.store().load||this.loaded||this.loading&&!Object.keys(n).length)e&&e.call(this);else{this.loading=!0;var r=function(r){t.loaded=!0,t.loading=!1,t.childNodesId=[],t.doCreateChildren(r,n),t.updateLeafState(),e&&e.call(t,r)};this.store().load(this,r)}}}]),e}();t.default=c},"4aab":function(e,t,n){"use strict";(function(e){function n(e,t){var n=this;n.version="1.3.3",n.options=e||{},n.isScrollBody=t||!1,n.isDownScrolling=!1,n.isUpScrolling=!1;var r=n.options.down&&n.options.down.callback;n.initDownScroll(),n.initUpScroll(),setTimeout((function(){(n.optDown.use||n.optDown.native)&&n.optDown.auto&&r&&(n.optDown.autoShowLoading?n.triggerDownScroll():n.optDown.callback&&n.optDown.callback(n)),n.isUpAutoLoad||setTimeout((function(){n.optUp.use&&n.optUp.auto&&!n.isUpAutoLoad&&n.triggerUpScroll()}),100)}),30)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype.extendDownScroll=function(e){n.extend(e,{use:!0,auto:!0,native:!1,autoShowLoading:!1,isLock:!1,offset:80,startTop:100,inOffsetRate:1,outOffsetRate:.2,bottomOffset:20,minAngle:45,textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",textSuccess:"加载成功",textErr:"加载失败",beforeEndDelay:100,bgColor:"transparent",textColor:"gray",inited:null,inOffset:null,outOffset:null,onMoving:null,beforeLoading:null,showLoading:null,afterLoading:null,beforeEndDownScroll:null,endDownScroll:null,afterEndDownScroll:null,callback:function(e){e.resetUpScroll()}})},n.prototype.extendUpScroll=function(e){n.extend(e,{use:!0,auto:!0,isLock:!1,isBoth:!0,callback:null,page:{num:0,size:10,time:null},noMoreSize:5,offset:150,textLoading:"加载中 ...",textNoMore:"-- END --",bgColor:"transparent",textColor:"gray",inited:null,showLoading:null,showNoMore:null,hideUpScroll:null,errDistance:60,toTop:{src:null,offset:1e3,duration:300,btnClick:null,onShow:null,zIndex:9990,left:null,right:20,bottom:120,safearea:!1,width:72,radius:"50%"},empty:{use:!0,icon:null,tip:"~ 暂无相关数据 ~",btnText:"",btnClick:null,onShow:null,fixed:!1,top:"100rpx",zIndex:99},onScroll:!1})},n.extend=function(e,t){if(!e)return t;for(var r in t)if(null==e[r]){var o=t[r];e[r]=null!=o&&"object"===typeof o?n.extend({},o):o}else"object"===typeof e[r]&&n.extend(e[r],t[r]);return e},n.prototype.hasColor=function(e){if(!e)return!1;var t=e.toLowerCase();return"#fff"!=t&&"#ffffff"!=t&&"transparent"!=t&&"white"!=t},n.prototype.initDownScroll=function(){var e=this;e.optDown=e.options.down||{},!e.optDown.textColor&&e.hasColor(e.optDown.bgColor)&&(e.optDown.textColor="#fff"),e.extendDownScroll(e.optDown),e.isScrollBody&&e.optDown.native?e.optDown.use=!1:e.optDown.native=!1,e.downHight=0,e.optDown.use&&e.optDown.inited&&setTimeout((function(){e.optDown.inited(e)}),0)},n.prototype.touchstartEvent=function(e){this.optDown.use&&(this.startPoint=this.getPoint(e),this.startTop=this.getScrollTop(),this.startAngle=0,this.lastPoint=this.startPoint,this.maxTouchmoveY=this.getBodyHeight()-this.optDown.bottomOffset,this.inTouchend=!1)},n.prototype.touchmoveEvent=function(e){if(this.optDown.use){var t=this,n=t.getScrollTop(),r=t.getPoint(e),o=r.y-t.startPoint.y;if(o>0&&(t.isScrollBody&&n<=0||!t.isScrollBody&&(n<=0||n<=t.optDown.startTop&&n===t.startTop))&&!t.inTouchend&&!t.isDownScrolling&&!t.optDown.isLock&&(!t.isUpScrolling||t.isUpScrolling&&t.optUp.isBoth)){if(t.startAngle||(t.startAngle=t.getAngle(t.lastPoint,r)),t.startAngle<t.optDown.minAngle)return;if(t.maxTouchmoveY>0&&r.y>=t.maxTouchmoveY)return t.inTouchend=!0,void t.touchendEvent();t.preventDefault(e);var i=r.y-t.lastPoint.y;t.downHight<t.optDown.offset?(1!==t.movetype&&(t.movetype=1,t.isDownEndSuccess=null,t.optDown.inOffset&&t.optDown.inOffset(t),t.isMoveDown=!0),t.downHight+=i*t.optDown.inOffsetRate):(2!==t.movetype&&(t.movetype=2,t.optDown.outOffset&&t.optDown.outOffset(t),t.isMoveDown=!0),t.downHight+=i>0?i*t.optDown.outOffsetRate:i),t.downHight=Math.round(t.downHight);var a=t.downHight/t.optDown.offset;t.optDown.onMoving&&t.optDown.onMoving(t,a,t.downHight)}t.lastPoint=r}},n.prototype.touchendEvent=function(e){if(this.optDown.use)if(this.isMoveDown)this.downHight>=this.optDown.offset?this.triggerDownScroll():(this.downHight=0,this.endDownScrollCall(this)),this.movetype=0,this.isMoveDown=!1;else if(!this.isScrollBody&&this.getScrollTop()===this.startTop){var t=this.getPoint(e).y-this.startPoint.y<0;if(t){var n=this.getAngle(this.getPoint(e),this.startPoint);n>80&&this.triggerUpScroll(!0)}}},n.prototype.getPoint=function(e){return e?e.touches&&e.touches[0]?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches[0]?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.clientX,y:e.clientY}:{x:0,y:0}},n.prototype.getAngle=function(e,t){var n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y),o=Math.sqrt(n*n+r*r),i=0;return 0!==o&&(i=Math.asin(r/o)/Math.PI*180),i},n.prototype.triggerDownScroll=function(){this.optDown.beforeLoading&&this.optDown.beforeLoading(this)||(this.showDownScroll(),!this.optDown.native&&this.optDown.callback&&this.optDown.callback(this))},n.prototype.showDownScroll=function(){this.isDownScrolling=!0,this.optDown.native?(e.startPullDownRefresh(),this.showDownLoadingCall(0)):(this.downHight=this.optDown.offset,this.showDownLoadingCall(this.downHight))},n.prototype.showDownLoadingCall=function(e){this.optDown.showLoading&&this.optDown.showLoading(this,e),this.optDown.afterLoading&&this.optDown.afterLoading(this,e)},n.prototype.onPullDownRefresh=function(){this.isDownScrolling=!0,this.showDownLoadingCall(0),this.optDown.callback&&this.optDown.callback(this)},n.prototype.endDownScroll=function(){if(this.optDown.native)return this.isDownScrolling=!1,this.endDownScrollCall(this),void e.stopPullDownRefresh();var t=this,n=function(){t.downHight=0,t.isDownScrolling=!1,t.endDownScrollCall(t),t.isScrollBody||(t.setScrollHeight(0),t.scrollTo(0,0))},r=0;t.optDown.beforeEndDownScroll&&(r=t.optDown.beforeEndDownScroll(t),null==t.isDownEndSuccess&&(r=0)),"number"===typeof r&&r>0?setTimeout(n,r):n()},n.prototype.endDownScrollCall=function(){this.optDown.endDownScroll&&this.optDown.endDownScroll(this),this.optDown.afterEndDownScroll&&this.optDown.afterEndDownScroll(this)},n.prototype.lockDownScroll=function(e){null==e&&(e=!0),this.optDown.isLock=e},n.prototype.lockUpScroll=function(e){null==e&&(e=!0),this.optUp.isLock=e},n.prototype.initUpScroll=function(){var e=this;e.optUp=e.options.up||{use:!1},!e.optUp.textColor&&e.hasColor(e.optUp.bgColor)&&(e.optUp.textColor="#fff"),e.extendUpScroll(e.optUp),!1!==e.optUp.use&&(e.optUp.hasNext=!0,e.startNum=e.optUp.page.num+1,e.optUp.inited&&setTimeout((function(){e.optUp.inited(e)}),0))},n.prototype.onReachBottom=function(){this.isScrollBody&&!this.isUpScrolling&&!this.optUp.isLock&&this.optUp.hasNext&&this.triggerUpScroll()},n.prototype.onPageScroll=function(e){this.isScrollBody&&(this.setScrollTop(e.scrollTop),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn())},n.prototype.scroll=function(e,t){this.setScrollTop(e.scrollTop),this.setScrollHeight(e.scrollHeight),null==this.preScrollY&&(this.preScrollY=0),this.isScrollUp=e.scrollTop-this.preScrollY>0,this.preScrollY=e.scrollTop,this.isScrollUp&&this.triggerUpScroll(!0),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn(),this.optUp.onScroll&&t&&t()},n.prototype.triggerUpScroll=function(e){if(!this.isUpScrolling&&this.optUp.use&&this.optUp.callback){if(!0===e){var t=!1;if(!this.optUp.hasNext||this.optUp.isLock||this.isDownScrolling||this.getScrollBottom()<=this.optUp.offset&&(t=!0),!1===t)return}this.showUpScroll(),this.optUp.page.num++,this.isUpAutoLoad=!0,this.num=this.optUp.page.num,this.size=this.optUp.page.size,this.time=this.optUp.page.time,this.optUp.callback(this)}},n.prototype.showUpScroll=function(){this.isUpScrolling=!0,this.optUp.showLoading&&this.optUp.showLoading(this)},n.prototype.showNoMore=function(){this.optUp.hasNext=!1,this.optUp.showNoMore&&this.optUp.showNoMore(this)},n.prototype.hideUpScroll=function(){this.optUp.hideUpScroll&&this.optUp.hideUpScroll(this)},n.prototype.endUpScroll=function(e){null!=e&&(e?this.showNoMore():this.hideUpScroll()),this.isUpScrolling=!1},n.prototype.resetUpScroll=function(e){if(this.optUp&&this.optUp.use){var t=this.optUp.page;this.prePageNum=t.num,this.prePageTime=t.time,t.num=this.startNum,t.time=null,this.isDownScrolling||!1===e||(null==e?(this.removeEmpty(),this.showUpScroll()):this.showDownScroll()),this.isUpAutoLoad=!0,this.num=t.num,this.size=t.size,this.time=t.time,this.optUp.callback&&this.optUp.callback(this)}},n.prototype.setPageNum=function(e){this.optUp.page.num=e-1},n.prototype.setPageSize=function(e){this.optUp.page.size=e},n.prototype.endByPage=function(e,t,n){var r;this.optUp.use&&null!=t&&(r=this.optUp.page.num<t),this.endSuccess(e,r,n)},n.prototype.endBySize=function(e,t,n){var r;if(this.optUp.use&&null!=t){var o=(this.optUp.page.num-1)*this.optUp.page.size+e;r=o<t}this.endSuccess(e,r,n)},n.prototype.endSuccess=function(e,t,n){var r=this;if(r.isDownScrolling&&(r.isDownEndSuccess=!0,r.endDownScroll()),r.optUp.use){var o;if(null!=e){var i=r.optUp.page.num,a=r.optUp.page.size;if(1===i&&n&&(r.optUp.page.time=n),e<a||!1===t)if(r.optUp.hasNext=!1,0===e&&1===i)o=!1,r.showEmpty();else{var s=(i-1)*a+e;o=!(s<r.optUp.noMoreSize),r.removeEmpty()}else o=!1,r.optUp.hasNext=!0,r.removeEmpty()}r.endUpScroll(o)}},n.prototype.endErr=function(e){if(this.isDownScrolling){this.isDownEndSuccess=!1;var t=this.optUp.page;t&&this.prePageNum&&(t.num=this.prePageNum,t.time=this.prePageTime),this.endDownScroll()}this.isUpScrolling&&(this.optUp.page.num--,this.endUpScroll(!1),this.isScrollBody&&0!==e&&(e||(e=this.optUp.errDistance),this.scrollTo(this.getScrollTop()-e,0)))},n.prototype.showEmpty=function(){this.optUp.empty.use&&this.optUp.empty.onShow&&this.optUp.empty.onShow(!0)},n.prototype.removeEmpty=function(){this.optUp.empty.use&&this.optUp.empty.onShow&&this.optUp.empty.onShow(!1)},n.prototype.showTopBtn=function(){this.topBtnShow||(this.topBtnShow=!0,this.optUp.toTop.onShow&&this.optUp.toTop.onShow(!0))},n.prototype.hideTopBtn=function(){this.topBtnShow&&(this.topBtnShow=!1,this.optUp.toTop.onShow&&this.optUp.toTop.onShow(!1))},n.prototype.getScrollTop=function(){return this.scrollTop||0},n.prototype.setScrollTop=function(e){this.scrollTop=e},n.prototype.scrollTo=function(e,t){this.myScrollTo&&this.myScrollTo(e,t)},n.prototype.resetScrollTo=function(e){this.myScrollTo=e},n.prototype.getScrollBottom=function(){return this.getScrollHeight()-this.getClientHeight()-this.getScrollTop()},n.prototype.getStep=function(e,t,n,r,o){var i=t-e;if(0!==r&&0!==i){r=r||300,o=o||30;var a=r/o,s=i/a,u=0,c=setInterval((function(){u<a-1?(e+=s,n&&n(e,c),u++):(n&&n(t,c),clearInterval(c))}),o)}else n&&n(t)},n.prototype.getClientHeight=function(e){var t=this.clientHeight||0;return 0===t&&!0!==e&&(t=this.getBodyHeight()),t},n.prototype.setClientHeight=function(e){this.clientHeight=e},n.prototype.getScrollHeight=function(){return this.scrollHeight||0},n.prototype.setScrollHeight=function(e){this.scrollHeight=e},n.prototype.getBodyHeight=function(){return this.bodyHeight||0},n.prototype.setBodyHeight=function(e){this.bodyHeight=e},n.prototype.preventDefault=function(e){e&&e.cancelable&&!e.defaultPrevented&&e.preventDefault()}}).call(this,n("543d")["default"])},"4e5a":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.jsonpRequest=t.dispatchRequest=t.mergeConfig=void 0;var n=function(e,t){var n=/^(http|https):\/\//.test(t.url),r=Object.assign({timeout:e.timeout},e.config,t);return"FILE"==t.method?r.url=n?t.url:e.fileUrl+t.url:r.url=n?t.url:e.baseUrl+t.url,t.header?r.header=Object.assign({},e.header,t.header):r.header=Object.assign({},e.header),r};t.mergeConfig=n;var r=function(t){return new Promise((function(n,r){var o=!0,i={url:t.url,header:t.header,success:function(e){o=!1,n(e)},fail:function(e){o=!1,"request:fail abort"==e.errMsg?r({errMsg:"请求超时,请重新尝试",statusCode:0}):r(e)}};t.method&&(i.method=t.method),t.data&&(i.data=t.data),t.timeout&&(i.timeout=t.timeout),t.dataType&&(i.dataType=t.dataType),t.responseType&&(i.responseType=t.responseType);var a=e.request(i);setTimeout((function(){o&&a.abort()}),t.timeout)}))};t.dispatchRequest=r;var o=function(e){return new Promise((function(t,n){var r="";Object.keys(e.data).forEach((function(t){r+=t+"="+e.data[t]+"&"})),""!==r&&(r=r.substr(0,r.lastIndexOf("&"))),e.url=e.url+"?"+r;Math.ceil(1e6*Math.random())}))};t.jsonpRequest=o}).call(this,n("543d")["default"])},"543d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Ct,t.createComponent=Vt,t.createPage=Ht,t.createSubpackageApp=Kt,t.default=void 0;var r=o(n("66fd"));function o(e){return e&&e.__esModule?e:{default:e}}function i(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){return l(e)||c(e,t)||d(e,t)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){o=!0,i=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(o)throw i}}return n}}function l(e){if(Array.isArray(e))return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return g(e)||v(e)||d(e)||h()}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"===typeof e)return y(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)?y(e,t):void 0}}function v(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function g(e){if(Array.isArray(e))return y(e)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=Object.prototype.toString,b=Object.prototype.hasOwnProperty;function _(e){return"function"===typeof e}function w(e){return"string"===typeof e}function k(e){return"[object Object]"===m.call(e)}function S(e,t){return b.call(e,t)}function O(){}function x(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var T=/-(\w)/g,P=x((function(e){return e.replace(T,(function(e,t){return t?t.toUpperCase():""}))})),E=["invoke","success","fail","complete","returnValue"],A={},j={};function D(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?C(n):n}function C(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function N(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function I(e,t){Object.keys(t).forEach((function(n){-1!==E.indexOf(n)&&_(t[n])&&(e[n]=D(e[n],t[n]))}))}function U(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==E.indexOf(n)&&_(t[n])&&N(e[n],t[n])}))}function q(e,t){"string"===typeof e&&k(t)?I(j[e]||(j[e]={}),t):k(e)&&I(A,e)}function $(e,t){"string"===typeof e?k(t)?U(j[e],t):delete j[e]:k(e)&&U(A,e)}function R(e){return function(t){return e(t)||t}}function L(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}function M(e,t){for(var n=!1,r=0;r<e.length;r++){var o=e[r];if(n)n=Promise.resolve(R(o));else{var i=o(t);if(L(i)&&(n=Promise.resolve(i)),!1===i)return{then:function(){}}}}return n||{then:function(e){return e(t)}}}function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var r=t[n];t[n]=function(t){M(e[n],t).then((function(e){return _(r)&&r(e)||e}))}}})),t}function B(e,t){var n=[];Array.isArray(A.returnValue)&&n.push.apply(n,p(A.returnValue));var r=j[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,p(r.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function H(e){var t=Object.create(null);Object.keys(A).forEach((function(e){"returnValue"!==e&&(t[e]=A[e].slice())}));var n=j[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function V(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a=H(e);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=M(a.invoke,n);return s.then((function(e){return t.apply(void 0,[F(a,e)].concat(o))}))}return t.apply(void 0,[F(a,n)].concat(o))}return t.apply(void 0,[n].concat(o))}var K={returnValue:function(e){return L(e)?e.then((function(e){return e[1]})).catch((function(e){return e[0]})):e}},z=/^\$|Window$|WindowStyle$|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/,G=/^create|Manager$/,Y=["createBLEConnection"],W=["createBLEConnection"],J=/^on|^off/;function X(e){return G.test(e)&&-1===Y.indexOf(e)}function Q(e){return z.test(e)&&-1===W.indexOf(e)}function Z(e){return J.test(e)&&"onPush"!==e}function ee(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function te(e){return!(X(e)||Q(e)||Z(e))}function ne(e,t){return te(e)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return _(n.success)||_(n.fail)||_(n.complete)?B(e,V.apply(void 0,[e,t,n].concat(o))):B(e,ee(new Promise((function(r,i){V.apply(void 0,[e,t,Object.assign({},n,{success:r,fail:i})].concat(o))}))))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))});var re=1e-4,oe=750,ie=!1,ae=0,se=0;function ue(){var e=wx.getSystemInfoSync(),t=e.platform,n=e.pixelRatio,r=e.windowWidth;ae=r,se=n,ie="ios"===t}function ce(e,t){if(0===ae&&ue(),e=Number(e),0===e)return 0;var n=e/oe*(t||ae);return n<0&&(n=-n),n=Math.floor(n+re),0===n&&(n=1!==se&&ie?.5:1),e<0?-n:n}var le={promiseInterceptor:K},fe=Object.freeze({__proto__:null,upx2px:ce,addInterceptor:q,removeInterceptor:$,interceptors:le});function pe(e){var t=getCurrentPages(),n=t.length;while(n--){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}var he,de={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=pe(e.url);if(-1!==t){var n=getCurrentPages().length-1-t;n>0&&(e.delta=n)}}}},ve={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var n=e.urls;if(Array.isArray(n)){var r=n.length;if(r)return t<0?t=0:t>=r&&(t=r-1),t>0?(e.current=n[t],e.urls=n.filter((function(e,r){return!(r<t)||e!==n[t]}))):e.current=n[0],{indicator:!1,loop:!1}}}}},ge="__DC_STAT_UUID";function ye(e){he=he||wx.getStorageSync(ge),he||(he=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:ge,data:he})),e.deviceId=he}function me(e){if(e.safeArea){var t=e.safeArea;e.safeAreaInsets={top:t.top,left:t.left,right:e.windowWidth-t.right,bottom:e.windowHeight-t.bottom}}}var be={returnValue:function(e){ye(e),me(e)}},_e={redirectTo:de,previewImage:ve,getSystemInfo:be,getSystemInfoSync:be},we=["vibrate","preloadPage","unPreloadPage","loadSubPackage"],ke=[],Se=["success","fail","cancel","complete"];function Oe(e,t,n){return function(r){return t(Te(e,r,n))}}function xe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(k(t)){var i=!0===o?t:{};for(var a in _(n)&&(n=n(t,i)||{}),t)if(S(n,a)){var s=n[a];_(s)&&(s=s(t[a],t,i)),s?w(s)?i[s]=t[a]:k(s)&&(i[s.name?s.name:a]=s.value):console.warn("微信小程序 ".concat(e,"暂不支持").concat(a))}else-1!==Se.indexOf(a)?_(t[a])&&(i[a]=Oe(e,t[a],r)):o||(i[a]=t[a]);return i}return _(t)&&(t=Oe(e,t,r)),t}function Te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return _(_e.returnValue)&&(t=_e.returnValue(e,t)),xe(e,t,n,{},r)}function Pe(e,t){if(S(_e,e)){var n=_e[e];return n?function(t,r){var o=n;_(n)&&(o=n(t)),t=xe(e,t,o.args,o.returnValue);var i=[t];"undefined"!==typeof r&&i.push(r),_(o.name)?e=o.name(t):w(o.name)&&(e=o.name);var a=wx[e].apply(wx,i);return Q(e)?Te(e,a,o.returnValue,X(e)):a}:function(){console.error("微信小程序 暂不支持".concat(e))}}return t}var Ee=Object.create(null),Ae=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function je(e){return function(t){var n=t.fail,r=t.complete,o={errMsg:"".concat(e,":fail:暂不支持 ").concat(e," 方法")};_(n)&&n(o),_(r)&&r(o)}}Ae.forEach((function(e){Ee[e]=je(e)}));var De={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function Ce(e){var t=e.service,n=e.success,r=e.fail,o=e.complete,i=!1;De[t]?(i={errMsg:"getProvider:ok",service:t,provider:De[t]},_(n)&&n(i)):(i={errMsg:"getProvider:fail:服务["+t+"]不存在"},_(r)&&r(i)),_(o)&&o(i)}var Ne=Object.freeze({__proto__:null,getProvider:Ce}),Ie=function(){var e;return function(){return e||(e=new r.default),e}}();function Ue(e,t,n){return e[t].apply(e,n)}function qe(){return Ue(Ie(),"$on",Array.prototype.slice.call(arguments))}function $e(){return Ue(Ie(),"$off",Array.prototype.slice.call(arguments))}function Re(){return Ue(Ie(),"$once",Array.prototype.slice.call(arguments))}function Le(){return Ue(Ie(),"$emit",Array.prototype.slice.call(arguments))}var Me=Object.freeze({__proto__:null,$on:qe,$off:$e,$once:Re,$emit:Le}),Fe=Object.freeze({__proto__:null}),Be=Page,He=Component,Ve=/:/g,Ke=x((function(e){return P(e.replace(Ve,"-"))}));function ze(e){if(wx.canIUse("nextTick")){var t=e.triggerEvent;e.triggerEvent=function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.apply(e,[Ke(n)].concat(o))}}}function Ge(e,t){var n=t[e];t[e]=n?function(){ze(this);for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(this,t)}:function(){ze(this)}}Be.__$wrappered||(Be.__$wrappered=!0,Page=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ge("onLoad",e),Be(e)},Page.after=Be.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ge("created",e),He(e)});var Ye=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function We(e,t){var n=e.$mp[e.mpType];t.forEach((function(t){S(n,t)&&(e[t]=n[t])}))}function Je(e,t){if(!t)return!0;if(r.default.options&&Array.isArray(r.default.options[e]))return!0;if(t=t.default||t,_(t))return!!_(t.extendOptions[e])||!!(t.super&&t.super.options&&Array.isArray(t.super.options[e]));if(_(t[e]))return!0;var n=t.mixins;return Array.isArray(n)?!!n.find((function(t){return Je(e,t)})):void 0}function Xe(e,t,n){t.forEach((function(t){Je(t,n)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function Qe(e,t){var n;return t=t.default||t,n=_(t)?t:e.extend(t),t=n.options,[n,t]}function Ze(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 et(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 tt(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(o){Object({VUE_APP_NAME:"大庆小程序",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(o){}return k(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||S(n,e)||(n[e]=r[e])})),n}var nt=[String,Number,Boolean,Object,Array,null];function rt(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function ot(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:""}))})),k(r)&&r.props&&a.push(t({properties:at(r.props,!0)})),Array.isArray(o)&&o.forEach((function(e){k(e)&&e.props&&a.push(t({properties:at(e.props,!0)}))})),a}function it(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function at(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return t||(n.vueId={type:String,value:""},n.generic={type:Object,value:null},n.vueSlots={type:null,value:[],observer:function(e,t){var n=Object.create(null);e.forEach((function(e){n[e]=!0})),this.setData({$slots:n})}}),Array.isArray(e)?e.forEach((function(e){n[e]={type:null,observer:rt(e)}})):k(e)&&Object.keys(e).forEach((function(t){var r=e[t];if(k(r)){var o=r.default;_(o)&&(o=o()),r.type=it(t,r.type),n[t]={type:-1!==nt.indexOf(r.type)?r.type:null,value:o,observer:rt(t)}}else{var i=it(t,r);n[t]={type:-1!==nt.indexOf(i)?i:null,observer:rt(t)}}})),n}function st(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=O,e.preventDefault=O,e.target=e.target||{},S(e,"detail")||(e.detail={}),S(e,"markerId")&&(e.detail="object"===typeof e.detail?e.detail:{},e.detail.markerId=e.markerId),k(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function ut(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})):k(i)?n=Object.keys(i).find((function(t){return e.__get_value(a,i[t])===o})):console.error("v-for 暂不支持循环数据:",i):n=i[o],s&&(n=e.__get_value(s,n))}})),n}function ct(e,t,n){var r={};return Array.isArray(t)&&t.length&&t.forEach((function(t,o){"string"===typeof t?t?"$event"===t?r["$"+o]=n:"arguments"===t?n.detail&&n.detail.__args__?r["$"+o]=n.detail.__args__:r["$"+o]=[n]:0===t.indexOf("$event.")?r["$"+o]=e.__get_value(t.replace("$event.",""),n):r["$"+o]=e.__get_value(t):r["$"+o]=e:r["$"+o]=ut(e,t)})),r}function lt(e){for(var t={},n=1;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t}function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=!1;if(o&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!n.length))return a?[t]:t.detail.__args__||t.detail;var s=ct(e,r,t),u=[];return n.forEach((function(e){"$event"===e?"__set_model"!==i||o?o&&!a?u.push(t.detail.__args__[0]):u.push(t):u.push(t.target.value):Array.isArray(e)&&"o"===e[0]?u.push(lt(e)):"string"===typeof e&&S(s,e)?u.push(s[e]):u.push(e)})),u}var pt="~",ht="^";function dt(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}function vt(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}function gt(e){var t=this;e=st(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)===ht;r=s?r.slice(1):r;var u=r.charAt(0)===pt;r=u?r.slice(1):r,a&&dt(o,r)&&a.forEach((function(n){var r=n[0];if(r){var o=t.$vm;if(o.$options.generic&&(o=vt(o)||o),"$emit"===r)return void o.$emit.apply(o,ft(t.$vm,e,n[1],n[2],s,r));var a=o[r];if(!_(a))throw new Error(" _vm.".concat(r," is not a function"));if(u){if(a.once)return;a.once=!0}var c=ft(t.$vm,e,n[1],n[2],s,r);c=Array.isArray(c)?c:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(c=c.concat([,,,,,,,,,,e])),i.push(a.apply(o,c))}}))})),"input"===o&&1===i.length&&"undefined"!==typeof i[0]?i[0]:void 0}var yt={},mt=[];function bt(e){if(e){var t=yt[e];return delete yt[e],t}return mt.shift()}var _t=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function wt(){r.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=r.default.prototype.__call_hook;r.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=bt(n.__id__),delete n.__id__),e.call(this,t,n)}}function kt(e,t){var n=t.mocks,o=t.initRefs;wt(),e.$options.store&&(r.default.prototype.$store=e.$options.store),r.default.prototype.mpHost="mp-weixin",r.default.mixin({beforeCreate:function(){this.$options.mpType&&(this.mpType=this.$options.mpType,this.$mp=f({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"app"!==this.mpType&&(o(this),We(this,n)))}});var i={onLaunch:function(t){this.$vm||(wx.canIUse("nextTick")||console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=e,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",t),this.$vm.__call_hook("onLaunch",t))}};i.globalData=e.$options.globalData||{};var a=e.$options.methods;return a&&Object.keys(a).forEach((function(e){i[e]=a[e]})),Xe(i,_t),i}var St=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Ot(e,t){for(var n,r=e.$children,o=r.length-1;o>=0;o--){var i=r[o];if(i.$scope._$vueId===t)return i}for(var a=r.length-1;a>=0;a--)if(n=Ot(r[a],t),n)return n}function xt(e){return Behavior(e)}function Tt(){return!!this.route}function Pt(e){this.triggerEvent("__l",e)}function Et(e,t,n){var r=e.selectAllComponents(t);r.forEach((function(e){var r=e.dataset.ref;n[r]=e.$vm||e,"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){Et(e,t,n)}))}))}function At(e){var t=e.$scope;Object.defineProperty(e,"$refs",{get:function(){var e={};Et(t,".vue-ref",e);var n=t.selectAllComponents(".vue-ref-in-for");return n.forEach((function(t){var n=t.dataset.ref;e[n]||(e[n]=[]),e[n].push(t.$vm||t)})),e}})}function jt(e){var t,n=e.detail||e.value,r=n.vuePid,o=n.vueOptions;r&&(t=Ot(this.$vm,r)),t||(t=this.$vm),o.parent=t}function Dt(e){return kt(e,{mocks:St,initRefs:At})}function Ct(e){return App(Dt(e)),e}var Nt=/[!'()*]/g,It=function(e){return"%"+e.charCodeAt(0).toString(16)},Ut=/%2C/g,qt=function(e){return encodeURIComponent(e).replace(Nt,It).replace(Ut,",")};function $t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qt,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 Rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPage,o=t.initRelation,i=Qe(r.default,e),u=s(i,2),c=u[0],l=u[1],f=a({multipleSlots:!0,addGlobalClass:!0},l.options||{});l["mp-weixin"]&&l["mp-weixin"].options&&Object.assign(f,l["mp-weixin"].options);var p={options:f,data:tt(l,r.default.prototype),behaviors:ot(l,xt),properties:at(l.props,!1,l.__file),lifetimes:{attached:function(){var e=this.properties,t={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:e};et(e.vueId,this),o.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new c(t),Ze(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:jt,__e:gt}};return l.externalClasses&&(p.externalClasses=l.externalClasses),Array.isArray(l.wxsCallMethods)&&l.wxsCallMethods.forEach((function(e){p.methods[e]=function(t){return this.$vm[e](t)}})),n?p:[p,c]}function Lt(e){return Rt(e,{isPage:Tt,initRelation:Pt})}var Mt=["onShow","onHide","onUnload"];function Ft(e,t){t.isPage,t.initRelation;var n=Lt(e);return Xe(n.methods,Mt,e),n.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+$t(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},n}function Bt(e){return Ft(e,{isPage:Tt,initRelation:Pt})}function Ht(e){return Component(Bt(e))}function Vt(e){return Component(Lt(e))}function Kt(e){var t=Dt(e),n=getApp({allowDefault:!0}),r=n.globalData;if(r&&Object.keys(t.globalData).forEach((function(e){S(r,e)||(r[e]=t.globalData[e])})),Object.keys(t).forEach((function(e){S(n,e)||(n[e]=t[e])})),_(t.onShow)&&wx.onAppShow&&wx.onAppShow((function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t.onShow.apply(n,r)})),_(t.onHide)&&wx.onAppHide&&wx.onAppHide((function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t.onHide.apply(n,r)})),_(t.onLaunch)){var o=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();t.onLaunch.call(n,o)}return e}Mt.push.apply(Mt,Ye),we.forEach((function(e){_e[e]=!1})),ke.forEach((function(e){var t=_e[e]&&_e[e].name?_e[e].name:e;wx.canIUse(t)||(_e[e]=!1)}));var zt={};"undefined"!==typeof Proxy?zt=new Proxy({},{get:function(e,t){return S(e,t)?e[t]:fe[t]?fe[t]:Fe[t]?ne(t,Fe[t]):Ne[t]?ne(t,Ne[t]):Ee[t]?ne(t,Ee[t]):Me[t]?Me[t]:S(wx,t)||S(_e,t)?ne(t,Pe(t,wx[t])):void 0},set:function(e,t,n){return e[t]=n,!0}}):(Object.keys(fe).forEach((function(e){zt[e]=fe[e]})),Object.keys(Ee).forEach((function(e){zt[e]=ne(e,Ee[e])})),Object.keys(Ne).forEach((function(e){zt[e]=ne(e,Ee[e])})),Object.keys(Me).forEach((function(e){zt[e]=Me[e]})),Object.keys(Fe).forEach((function(e){zt[e]=ne(e,Fe[e])})),Object.keys(wx).forEach((function(e){(S(wx,e)||S(_e,e))&&(zt[e]=ne(e,Pe(e,wx[e])))}))),wx.createApp=Ct,wx.createPage=Ht,wx.createComponent=Vt,wx.createSubpackageApp=Kt;var Gt=zt,Yt=Gt;t.default=Yt},5669:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={pulldown:"",refreshempty:"",back:"",forward:"",more:"","more-filled":"",scan:"",qq:"",weibo:"",weixin:"",pengyouquan:"",loop:"",refresh:"","refresh-filled":"",arrowthindown:"",arrowthinleft:"",arrowthinright:"",arrowthinup:"","undo-filled":"",undo:"",redo:"","redo-filled":"",bars:"",chatboxes:"",camera:"","chatboxes-filled":"","camera-filled":"","cart-filled":"",cart:"","checkbox-filled":"",checkbox:"",arrowleft:"",arrowdown:"",arrowright:"","smallcircle-filled":"",arrowup:"",circle:"","eye-filled":"","eye-slash-filled":"","eye-slash":"",eye:"","flag-filled":"",flag:"","gear-filled":"",reload:"",gear:"","hand-thumbsdown-filled":"","hand-thumbsdown":"","hand-thumbsup-filled":"","heart-filled":"","hand-thumbsup":"",heart:"",home:"",info:"","home-filled":"","info-filled":"","circle-filled":"","chat-filled":"",chat:"","mail-open-filled":"","email-filled":"","mail-open":"",email:"",checkmarkempty:"",list:"","locked-filled":"",locked:"","map-filled":"","map-pin":"","map-pin-ellipse":"",map:"","minus-filled":"","mic-filled":"",minus:"",micoff:"",mic:"",clear:"",smallcircle:"",close:"",closeempty:"",paperclip:"",paperplane:"","paperplane-filled":"","person-filled":"","contact-filled":"",person:"",contact:"","images-filled":"",phone:"",images:"",image:"","image-filled":"","location-filled":"",location:"","plus-filled":"",plus:"",plusempty:"","help-filled":"",help:"","navigate-filled":"",navigate:"","mic-slash-filled":"",search:"",settings:"",sound:"","sound-filled":"","spinner-cycle":"","download-filled":"","personadd-filled":"","videocam-filled":"",personadd:"",upload:"","upload-filled":"",starhalf:"","star-filled":"",star:"",trash:"","phone-filled":"",compose:"",videocam:"","trash-filled":"",download:"","chatbubble-filled":"",chatbubble:"","cloud-download":"","cloud-upload-filled":"","cloud-upload":"","cloud-download-filled":"",headphones:"",shop:""};t.default=r},6439:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("8214"));function o(e){return e&&e.__esModule?e:{default:e}}var i=r.default;t.default=i},"66fd":function(e,t,n){"use strict";n.r(t),function(e){ |
|
|
var n=Object.freeze({});function r(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function i(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function l(e){return"[object Object]"===c.call(e)}function f(e){return"[object RegExp]"===c.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}g("slot,component",!0);var y=g("key,ref,slot,slot-scope,is");function m(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(e,t){return b.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 k=/-(\w)/g,S=w((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),O=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),x=/\B([A-Z])/g,T=w((function(e){return e.replace(x,"-$1").toLowerCase()}));function P(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function E(e,t){return e.bind(t)}var A=Function.prototype.bind?E:P;function j(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function D(e,t){for(var n in t)e[n]=t[n];return e}function C(e){for(var t={},n=0;n<e.length;n++)e[n]&&D(t,e[n]);return t}function N(e,t,n){}var I=function(e,t,n){return!1},U=function(e){return e};function q(e,t){if(e===t)return!0;var n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every((function(e,n){return q(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return q(e[n],t[n])}))}catch(c){return!1}}function $(e,t){for(var n=0;n<e.length;n++)if(q(e[n],t))return n;return-1}function R(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var L=["component","directive","filter"],M=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],F={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:I,isReservedAttr:I,isUnknownElement:I,getTagNamespace:N,parsePlatformTagName:U,mustUseProp:I,async:!0,_lifecycleHooks:M},B=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function V(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var K=new RegExp("[^"+B.source+".$_\\d]");function z(e){if(!K.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var G,Y="__proto__"in{},W="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,X=J&&WXEnvironment.platform.toLowerCase(),Q=W&&window.navigator.userAgent.toLowerCase(),Z=Q&&/msie|trident/.test(Q),ee=(Q&&Q.indexOf("msie 9.0"),Q&&Q.indexOf("edge/")>0),te=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===X),ne=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/),{}.watch);if(W)try{var re={};Object.defineProperty(re,"passive",{get:function(){}}),window.addEventListener("test-passive",null,re)}catch(no){}var oe=function(){return void 0===G&&(G=!W&&!J&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),G},ie=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"===typeof e&&/native code/.test(e.toString())}var se,ue="undefined"!==typeof Symbol&&ae(Symbol)&&"undefined"!==typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!==typeof Set&&ae(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 ce=N,le=0,fe=function(){this.id=le++,this.subs=[]};function pe(e){fe.SharedObject.targetStack.push(e),fe.SharedObject.target=e,fe.target=e}function he(){fe.SharedObject.targetStack.pop(),fe.SharedObject.target=fe.SharedObject.targetStack[fe.SharedObject.targetStack.length-1],fe.target=fe.SharedObject.target}fe.prototype.addSub=function(e){this.subs.push(e)},fe.prototype.removeSub=function(e){m(this.subs,e)},fe.prototype.depend=function(){fe.SharedObject.target&&fe.SharedObject.target.addDep(this)},fe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},fe.SharedObject={},fe.SharedObject.target=null,fe.SharedObject.targetStack=[];var de=function(e,t,n,r,o,i,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ve={child:{configurable:!0}};ve.child.get=function(){return this.componentInstance},Object.defineProperties(de.prototype,ve);var ge=function(e){void 0===e&&(e="");var t=new de;return t.text=e,t.isComment=!0,t};function ye(e){return new de(void 0,void 0,void 0,String(e))}function me(e){var t=new de(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var be=Array.prototype,_e=Object.create(be),we=["push","pop","shift","unshift","splice","sort","reverse"];we.forEach((function(e){var t=be[e];V(_e,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var o,i=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2);break}return o&&a.observeArray(o),a.dep.notify(),i}))}));var ke=Object.getOwnPropertyNames(_e),Se=!0;function Oe(e){Se=e}var xe=function(e){this.value=e,this.dep=new fe,this.vmCount=0,V(e,"__ob__",this),Array.isArray(e)?(Y?e.push!==e.__proto__.push?Pe(e,_e,ke):Te(e,_e):Pe(e,_e,ke),this.observeArray(e)):this.walk(e)};function Te(e,t){e.__proto__=t}function Pe(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];V(e,i,t[i])}}function Ee(e,t){var n;if(u(e)&&!(e instanceof de))return _(e,"__ob__")&&e.__ob__ instanceof xe?n=e.__ob__:Se&&!oe()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new xe(e)),t&&n&&n.vmCount++,n}function Ae(e,t,n,r,o){var i=new fe,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(n=e[t]);var c=!o&&Ee(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return fe.SharedObject.target&&(i.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Ce(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||s&&!u||(u?u.call(e,t):n=t,c=!o&&Ee(t),i.notify())}})}}function je(e,t,n){if(Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ae(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function De(e,t){if(Array.isArray(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||_(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ce(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ce(t)}xe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ae(e,t[n])},xe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ee(e[t])};var Ne=F.optionMergeStrategies;function Ie(e,t){if(!t)return e;for(var n,r,o,i=ue?Reflect.ownKeys(t):Object.keys(t),a=0;a<i.length;a++)n=i[a],"__ob__"!==n&&(r=e[n],o=t[n],_(e,n)?r!==o&&l(r)&&l(o)&&Ie(r,o):je(e,n,o));return e}function Ue(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,o="function"===typeof e?e.call(n,n):e;return r?Ie(r,o):o}:t?e?function(){return Ie("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function qe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?$e(n):n}function $e(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Re(e,t,n,r){var o=Object.create(e||null);return t?D(o,t):o}Ne.data=function(e,t,n){return n?Ue(e,t,n):t&&"function"!==typeof t?e:Ue(e,t)},M.forEach((function(e){Ne[e]=qe})),L.forEach((function(e){Ne[e+"s"]=Re})),Ne.watch=function(e,t,n,r){if(e===ne&&(e=void 0),t===ne&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var o={};for(var i in D(o,e),t){var a=o[i],s=t[i];a&&!Array.isArray(a)&&(a=[a]),o[i]=a?a.concat(s):Array.isArray(s)?s:[s]}return o},Ne.props=Ne.methods=Ne.inject=Ne.computed=function(e,t,n,r){if(!e)return t;var o=Object.create(null);return D(o,e),t&&D(o,t),o},Ne.provide=Ue;var Le=function(e,t){return void 0===t?e:t};function Me(e,t){var n=e.props;if(n){var r,o,i,a={};if(Array.isArray(n)){r=n.length;while(r--)o=n[r],"string"===typeof o&&(i=S(o),a[i]={type:null})}else if(l(n))for(var s in n)o=n[s],i=S(s),a[i]=l(o)?o:{type:o};else 0;e.props=a}}function Fe(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(l(n))for(var i in n){var a=n[i];r[i]=l(a)?D({from:i},a):{from:a}}else 0}}function Be(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function He(e,t,n){if("function"===typeof t&&(t=t.options),Me(t,n),Fe(t,n),Be(t),!t._base&&(t.extends&&(e=He(e,t.extends,n)),t.mixins))for(var r=0,o=t.mixins.length;r<o;r++)e=He(e,t.mixins[r],n);var i,a={};for(i in e)s(i);for(i in t)_(e,i)||s(i);function s(r){var o=Ne[r]||Le;a[r]=o(e[r],t[r],n,r)}return a}function Ve(e,t,n,r){if("string"===typeof n){var o=e[t];if(_(o,n))return o[n];var i=S(n);if(_(o,i))return o[i];var a=O(i);if(_(o,a))return o[a];var s=o[n]||o[i]||o[a];return s}}function Ke(e,t,n,r){var o=t[e],i=!_(n,e),a=n[e],s=We(Boolean,o.type);if(s>-1)if(i&&!_(o,"default"))a=!1;else if(""===a||a===T(e)){var u=We(String,o.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=ze(r,o,e);var c=Se;Oe(!0),Ee(a),Oe(c)}return a}function ze(e,t,n){if(_(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==Ge(t.type)?r.call(e):r}}function Ge(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Ye(e,t){return Ge(e)===Ge(t)}function We(e,t){if(!Array.isArray(t))return Ye(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Ye(t[n],e))return n;return-1}function Je(e,t,n){pe();try{if(t){var r=t;while(r=r.$parent){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{var a=!1===o[i].call(r,e,t,n);if(a)return}catch(no){Qe(no,r,"errorCaptured hook")}}}Qe(e,t,n)}finally{he()}}function Xe(e,t,n,r,o){var i;try{i=n?e.apply(t,n):e.call(t),i&&!i._isVue&&h(i)&&!i._handled&&(i.catch((function(e){return Je(e,r,o+" (Promise/async)")})),i._handled=!0)}catch(no){Je(no,r,o)}return i}function Qe(e,t,n){if(F.errorHandler)try{return F.errorHandler.call(null,e,t,n)}catch(no){no!==e&&Ze(no,null,"config.errorHandler")}Ze(e,t,n)}function Ze(e,t,n){if(!W&&!J||"undefined"===typeof console)throw e;console.error(e)}var et,tt=[],nt=!1;function rt(){nt=!1;var e=tt.slice(0);tt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ae(Promise)){var ot=Promise.resolve();et=function(){ot.then(rt),te&&setTimeout(N)}}else if(Z||"undefined"===typeof MutationObserver||!ae(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())et="undefined"!==typeof setImmediate&&ae(setImmediate)?function(){setImmediate(rt)}:function(){setTimeout(rt,0)};else{var it=1,at=new MutationObserver(rt),st=document.createTextNode(String(it));at.observe(st,{characterData:!0}),et=function(){it=(it+1)%2,st.data=String(it)}}function ut(e,t){var n;if(tt.push((function(){if(e)try{e.call(t)}catch(no){Je(no,t,"nextTick")}else n&&n(t)})),nt||(nt=!0,et()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var ct=new se;function lt(e){ft(e,ct),ct.clear()}function ft(e,t){var n,r,o=Array.isArray(e);if(!(!o&&!u(e)||Object.isFrozen(e)||e instanceof de)){if(e.__ob__){var i=e.__ob__.dep.id;if(t.has(i))return;t.add(i)}if(o){n=e.length;while(n--)ft(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)ft(e[r[n]],t)}}}var pt=w((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function ht(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Xe(r,null,arguments,t,"v-on handler");for(var o=r.slice(),i=0;i<o.length;i++)Xe(o[i],null,e,t,"v-on handler")}return n.fns=e,n}function dt(e,t,n,o,a,s){var u,c,l,f;for(u in e)c=e[u],l=t[u],f=pt(u),r(c)||(r(l)?(r(c.fns)&&(c=e[u]=ht(c,s)),i(f.once)&&(c=e[u]=a(f.name,c,f.capture)),n(f.name,c,f.capture,f.passive,f.params)):c!==l&&(l.fns=c,e[u]=l));for(u in t)r(e[u])&&(f=pt(u),o(f.name,t[u],f.capture))}function vt(e,t,n,i){var a=t.options.mpOptions&&t.options.mpOptions.properties;if(r(a))return n;var s=t.options.mpOptions.externalClasses||[],u=e.attrs,c=e.props;if(o(u)||o(c))for(var l in a){var f=T(l),p=yt(n,c,l,f,!0)||yt(n,u,l,f,!1);p&&n[l]&&-1!==s.indexOf(f)&&i[S(n[l])]&&(n[l]=i[S(n[l])])}return n}function gt(e,t,n,i){var a=t.options.props;if(r(a))return vt(e,t,{},i);var s={},u=e.attrs,c=e.props;if(o(u)||o(c))for(var l in a){var f=T(l);yt(s,c,l,f,!0)||yt(s,u,l,f,!1)}return vt(e,t,s,i)}function yt(e,t,n,r,i){if(o(t)){if(_(t,n))return e[n]=t[n],i||delete t[n],!0;if(_(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function mt(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function bt(e){return s(e)?[ye(e)]:Array.isArray(e)?wt(e):void 0}function _t(e){return o(e)&&o(e.text)&&a(e.isComment)}function wt(e,t){var n,a,u,c,l=[];for(n=0;n<e.length;n++)a=e[n],r(a)||"boolean"===typeof a||(u=l.length-1,c=l[u],Array.isArray(a)?a.length>0&&(a=wt(a,(t||"")+"_"+n),_t(a[0])&&_t(c)&&(l[u]=ye(c.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?_t(c)?l[u]=ye(c.text+a):""!==a&&l.push(ye(a)):_t(a)&&_t(c)?l[u]=ye(c.text+a.text):(i(e._isVList)&&o(a.tag)&&r(a.key)&&o(t)&&(a.key="__vlist"+t+"_"+n+"__"),l.push(a)));return l}function kt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function St(e){var t=Ot(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach((function(n){Ae(e,n,t[n])})),Oe(!0))}function Ot(e,t){if(e){for(var n=Object.create(null),r=ue?Reflect.ownKeys(e):Object.keys(e),o=0;o<r.length;o++){var i=r[o];if("__ob__"!==i){var a=e[i].from,s=t;while(s){if(s._provided&&_(s._provided,a)){n[i]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[i]){var u=e[i].default;n[i]="function"===typeof u?u.call(t):u}else 0}}return n}}function xt(e,t){if(!e||!e.length)return{};for(var n={},r=0,o=e.length;r<o;r++){var i=e[r],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,i.context!==t&&i.fnContext!==t||!a||null==a.slot)i.asyncMeta&&i.asyncMeta.data&&"page"===i.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(i):(n.default||(n.default=[])).push(i);else{var s=a.slot,u=n[s]||(n[s]=[]);"template"===i.tag?u.push.apply(u,i.children||[]):u.push(i)}}for(var c in n)n[c].every(Tt)&&delete n[c];return n}function Tt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Pt(e,t,r){var o,i=Object.keys(t).length>0,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 u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=Et(t,u,e[u]))}else o={};for(var c in t)c in o||(o[c]=At(t,c));return e&&Object.isExtensible(e)&&(e._normalized=o),V(o,"$stable",a),V(o,"$key",s),V(o,"$hasNormal",i),o}function Et(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]:bt(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 At(e,t){return function(){return e[t]}}function jt(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r,r,r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r,r,r);else if(u(e))if(ue&&e[Symbol.iterator]){n=[];var c=e[Symbol.iterator](),l=c.next();while(!l.done)n.push(t(l.value,n.length,r,r++)),l=c.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=t(e[s],s,r,r);return o(n)||(n=[]),n._isVList=!0,n}function Dt(e,t,n,r){var o,i=this.$scopedSlots[e];i?(n=n||{},r&&(n=D(D({},r),n)),o=i(n,this,n._i)||t):o=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},o):o}function Ct(e){return Ve(this.$options,"filters",e,!0)||U}function Nt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function It(e,t,n,r,o){var i=F.keyCodes[t]||n;return o&&r&&!F.keyCodes[t]?Nt(o,r):i?Nt(i,e):r?T(r)!==t:void 0}function Ut(e,t,n,r,o){if(n)if(u(n)){var i;Array.isArray(n)&&(n=C(n));var a=function(a){if("class"===a||"style"===a||y(a))i=e;else{var s=e.attrs&&e.attrs.type;i=r||F.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var u=S(a),c=T(a);if(!(u in i)&&!(c in i)&&(i[a]=n[a],o)){var l=e.on||(e.on={});l["update:"+a]=function(e){n[a]=e}}};for(var s in n)a(s)}else;return e}function qt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Rt(r,"__static__"+e,!1)),r}function $t(e,t,n){return Rt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Rt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&Lt(e[r],t+"_"+r,n);else Lt(e,t,n)}function Lt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Mt(e,t){if(t)if(l(t)){var n=e.on=e.on?D({},e.on):{};for(var r in t){var o=n[r],i=t[r];n[r]=o?[].concat(o,i):i}}else;return e}function Ft(e,t,n,r){t=t||{$stable:!n};for(var o=0;o<e.length;o++){var i=e[o];Array.isArray(i)?Ft(i,t,n):i&&(i.proxy&&(i.fn.proxy=!0),t[i.key]=i.fn)}return r&&(t.$key=r),t}function Bt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Ht(e,t){return"string"===typeof e?t+e:e}function Vt(e){e._o=$t,e._n=v,e._s=d,e._l=jt,e._t=Dt,e._q=q,e._i=$,e._m=qt,e._f=Ct,e._k=It,e._b=Ut,e._v=ye,e._e=ge,e._u=Ft,e._g=Mt,e._d=Bt,e._p=Ht}function Kt(e,t,r,o,a){var s,u=this,c=a.options;_(o,"_uid")?(s=Object.create(o),s._original=o):(s=o,o=o._original);var l=i(c._compiled),f=!l;this.data=e,this.props=t,this.children=r,this.parent=o,this.listeners=e.on||n,this.injections=Ot(c.inject,o),this.slots=function(){return u.$slots||Pt(e.scopedSlots,u.$slots=xt(r,o)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Pt(e.scopedSlots,this.slots())}}),l&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Pt(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,r){var i=on(s,e,t,n,r,f);return i&&!Array.isArray(i)&&(i.fnScopeId=c._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return on(s,e,t,n,r,f)}}function zt(e,t,r,i,a){var s=e.options,u={},c=s.props;if(o(c))for(var l in c)u[l]=Ke(l,c,t||n);else o(r.attrs)&&Yt(u,r.attrs),o(r.props)&&Yt(u,r.props);var f=new Kt(r,u,a,i,e),p=s.render.call(null,f._c,f);if(p instanceof de)return Gt(p,r,f.parent,s,f);if(Array.isArray(p)){for(var h=bt(p)||[],d=new Array(h.length),v=0;v<h.length;v++)d[v]=Gt(h[v],r,f.parent,s,f);return d}}function Gt(e,t,n,r,o){var i=me(e);return i.fnContext=n,i.fnOptions=r,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function Yt(e,t){for(var n in t)e[S(n)]=t[n]}Vt(Kt.prototype);var Wt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Wt.prepatch(n,n)}else{var r=e.componentInstance=Qt(e,On);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;En(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(Cn(n,"onServiceCreated"),Cn(n,"onServiceAttached"),n._isMounted=!0,Cn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Vn(n):jn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Dn(t,!0):t.$destroy())}},Jt=Object.keys(Wt);function Xt(e,t,n,a,s){if(!r(e)){var c=n.$options._base;if(u(e)&&(e=c.extend(e)),"function"===typeof e){var l;if(r(e.cid)&&(l=e,e=vn(l,c),void 0===e))return dn(l,t,n,a,s);t=t||{},hr(e),o(t.model)&&tn(e.options,t);var f=gt(t,e,s,n);if(i(e.options.functional))return zt(e,f,t,n,a);var p=t.on;if(t.on=t.nativeOn,i(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}Zt(t);var d=e.options.name||s,v=new de("vue-component-"+e.cid+(d?"-"+d:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:p,tag:s,children:a},l);return v}}}function Qt(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function Zt(e){for(var t=e.hook||(e.hook={}),n=0;n<Jt.length;n++){var r=Jt[n],o=t[r],i=Wt[r];o===i||o&&o._merged||(t[r]=o?en(i,o):i)}}function en(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function tn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),a=i[r],s=t.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}var nn=1,rn=2;function on(e,t,n,r,o,a){return(Array.isArray(n)||s(n))&&(o=r,r=n,n=void 0),i(a)&&(o=rn),an(e,t,n,r,o)}function an(e,t,n,r,i){if(o(n)&&o(n.__ob__))return ge();if(o(n)&&o(n.is)&&(t=n.is),!t)return ge();var a,s,u;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),i===rn?r=bt(r):i===nn&&(r=mt(r)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||F.getTagNamespace(t),a=F.isReservedTag(t)?new de(F.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!o(u=Ve(e.$options,"components",t))?new de(t,n,r,void 0,void 0,e):Xt(u,n,e,r,t)):a=Xt(t,n,e,r);return Array.isArray(a)?a:o(a)?(o(s)&&sn(a,s),o(n)&&un(n),a):ge()}function sn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),o(e.children))for(var a=0,s=e.children.length;a<s;a++){var u=e.children[a];o(u.tag)&&(r(u.ns)||i(n)&&"svg"!==u.tag)&&sn(u,t,n)}}function un(e){u(e.style)&<(e.style),u(e.class)&<(e.class)}function cn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,o=r&&r.context;e.$slots=xt(t._renderChildren,o),e.$scopedSlots=n,e._c=function(t,n,r,o){return on(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return on(e,t,n,r,o,!0)};var i=r&&r.data;Ae(e,"$attrs",i&&i.attrs||n,null,!0),Ae(e,"$listeners",t._parentListeners||n,null,!0)}var ln,fn=null;function pn(e){Vt(e.prototype),e.prototype.$nextTick=function(e){return ut(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,o=n._parentVnode;o&&(t.$scopedSlots=Pt(o.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=o;try{fn=t,e=r.call(t._renderProxy,t.$createElement)}catch(no){Je(no,t,"render"),e=t._vnode}finally{fn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof de||(e=ge()),e.parent=o,e}}function hn(e,t){return(e.__esModule||ue&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function dn(e,t,n,r,o){var i=ge();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}function vn(e,t){if(i(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var n=fn;if(n&&o(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),i(e.loading)&&o(e.loadingComp))return e.loadingComp;if(n&&!o(e.owners)){var a=e.owners=[n],s=!0,c=null,l=null;n.$on("hook:destroyed",(function(){return m(a,n)}));var f=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},p=R((function(n){e.resolved=hn(n,t),s?a.length=0:f(!0)})),d=R((function(t){o(e.errorComp)&&(e.error=!0,f(!0))})),v=e(p,d);return u(v)&&(h(v)?r(e.resolved)&&v.then(p,d):h(v.component)&&(v.component.then(p,d),o(v.error)&&(e.errorComp=hn(v.error,t)),o(v.loading)&&(e.loadingComp=hn(v.loading,t),0===v.delay?e.loading=!0:c=setTimeout((function(){c=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,f(!1))}),v.delay||200)),o(v.timeout)&&(l=setTimeout((function(){l=null,r(e.resolved)&&d(null)}),v.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function gn(e){return e.isComment&&e.asyncFactory}function yn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(o(n)&&(o(n.componentOptions)||gn(n)))return n}}function mn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&kn(e,t)}function bn(e,t){ln.$on(e,t)}function _n(e,t){ln.$off(e,t)}function wn(e,t){var n=ln;return function r(){var o=t.apply(null,arguments);null!==o&&n.$off(e,r)}}function kn(e,t,n){ln=e,dt(t,n||{},bn,_n,wn,e),ln=void 0}function Sn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o<i;o++)r.$on(e[o],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}var i,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(i=a[s],i===t||i.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?j(n):n;for(var r=j(arguments,1),o='event handler for "'+e+'"',i=0,a=n.length;i<a;i++)Xe(n[i],t,r,t,o)}return t}}var On=null;function xn(e){var t=On;return On=e,function(){On=t}}function Tn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Pn(e){e.prototype._update=function(e,t){var n=this,r=n.$el,o=n._vnode,i=xn(n);n._vnode=e,n.$el=o?n.__patch__(o,e):n.__patch__(n.$el,e,t,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Cn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||m(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Cn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function En(e,t,r,o,i){var a=o.data.scopedSlots,s=e.$scopedSlots,u=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),c=!!(i||e.$options._renderChildren||u);if(e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o),e.$options._renderChildren=i,e.$attrs=o.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Oe(!1);for(var l=e._props,f=e.$options._propKeys||[],p=0;p<f.length;p++){var h=f[p],d=e.$options.props;l[h]=Ke(h,d,t,e)}Oe(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),r=r||n;var v=e.$options._parentListeners;e.$options._parentListeners=r,kn(e,r,v),c&&(e.$slots=xt(i,o.context),e.$forceUpdate())}function An(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function jn(e,t){if(t){if(e._directInactive=!1,An(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)jn(e.$children[n]);Cn(e,"activated")}}function Dn(e,t){if((!t||(e._directInactive=!0,!An(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Dn(e.$children[n]);Cn(e,"deactivated")}}function Cn(e,t){pe();var n=e.$options[t],r=t+" hook";if(n)for(var o=0,i=n.length;o<i;o++)Xe(n[o],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),he()}var Nn=[],In=[],Un={},qn=!1,$n=!1,Rn=0;function Ln(){Rn=Nn.length=In.length=0,Un={},qn=$n=!1}var Mn=Date.now;if(W&&!Z){var Fn=window.performance;Fn&&"function"===typeof Fn.now&&Mn()>document.createEvent("Event").timeStamp&&(Mn=function(){return Fn.now()})}function Bn(){var e,t;for(Mn(),$n=!0,Nn.sort((function(e,t){return e.id-t.id})),Rn=0;Rn<Nn.length;Rn++)e=Nn[Rn],e.before&&e.before(),t=e.id,Un[t]=null,e.run();var n=In.slice(),r=Nn.slice();Ln(),Kn(n),Hn(r),ie&&F.devtools&&ie.emit("flush")}function Hn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Cn(r,"updated")}}function Vn(e){e._inactive=!1,In.push(e)}function Kn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,jn(e[t],!0)}function zn(e){var t=e.id;if(null==Un[t]){if(Un[t]=!0,$n){var n=Nn.length-1;while(n>Rn&&Nn[n].id>e.id)n--;Nn.splice(n+1,0,e)}else Nn.push(e);qn||(qn=!0,ut(Bn))}}var Gn=0,Yn=function(e,t,n,r,o){this.vm=e,o&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Gn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new se,this.newDepIds=new se,this.expression="","function"===typeof t?this.getter=t:(this.getter=z(t),this.getter||(this.getter=N)),this.value=this.lazy?void 0:this.get()};Yn.prototype.get=function(){var e;pe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(no){if(!this.user)throw no;Je(no,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&<(e),he(),this.cleanupDeps()}return e},Yn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Yn.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Yn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():zn(this)},Yn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(no){Je(no,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Yn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Yn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},Yn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var Wn={enumerable:!0,configurable:!0,get:N,set:N};function Jn(e,t,n){Wn.get=function(){return this[t][n]},Wn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Wn)}function Xn(e){e._watchers=[];var t=e.$options;t.props&&Qn(e,t.props),t.methods&&ar(e,t.methods),t.data?Zn(e):Ee(e._data={},!0),t.computed&&nr(e,t.computed),t.watch&&t.watch!==ne&&sr(e,t.watch)}function Qn(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;i||Oe(!1);var a=function(i){o.push(i);var a=Ke(i,t,n,e);Ae(r,i,a),i in e||Jn(e,"_props",i)};for(var s in t)a(s);Oe(!0)}function Zn(e){var t=e.$options.data;t=e._data="function"===typeof t?er(t,e):t||{},l(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&&_(r,i)||H(i)||Jn(e,"_data",i)}Ee(t,!0)}function er(e,t){pe();try{return e.call(t,t)}catch(no){return Je(no,t,"data()"),{}}finally{he()}}var tr={lazy:!0};function nr(e,t){var n=e._computedWatchers=Object.create(null),r=oe();for(var o in t){var i=t[o],a="function"===typeof i?i:i.get;0,r||(n[o]=new Yn(e,a||N,N,tr)),o in e||rr(e,o,i)}}function rr(e,t,n){var r=!oe();"function"===typeof n?(Wn.get=r?or(t):ir(n),Wn.set=N):(Wn.get=n.get?r&&!1!==n.cache?or(t):ir(n.get):N,Wn.set=n.set||N),Object.defineProperty(e,t,Wn)}function or(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),fe.SharedObject.target&&t.depend(),t.value}}function ir(e){return function(){return e.call(this,this)}}function ar(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?N:A(t[n],e)}function sr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)ur(e,n,r[o]);else ur(e,n,r)}}function ur(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function cr(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=je,e.prototype.$delete=De,e.prototype.$watch=function(e,t,n){var r=this;if(l(t))return ur(r,e,t,n);n=n||{},n.user=!0;var o=new Yn(r,e,t,n);if(n.immediate)try{t.call(r,o.value)}catch(i){Je(i,r,'callback for immediate watcher "'+o.expression+'"')}return function(){o.teardown()}}}var lr=0;function fr(e){e.prototype._init=function(e){var t=this;t._uid=lr++,t._isVue=!0,e&&e._isComponent?pr(t,e):t.$options=He(hr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Tn(t),mn(t),cn(t),Cn(t,"beforeCreate"),!t._$fallback&&St(t),Xn(t),!t._$fallback&&kt(t),!t._$fallback&&Cn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function pr(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)}function hr(e){var t=e.options;if(e.super){var n=hr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var o=dr(e);o&&D(e.extendOptions,o),t=e.options=He(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function dr(e){var t,n=e.options,r=e.sealedOptions;for(var o in n)n[o]!==r[o]&&(t||(t={}),t[o]=n[o]);return t}function vr(e){this._init(e)}function gr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=j(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function yr(e){e.mixin=function(e){return this.options=He(this.options,e),this}}function mr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=He(n.options,e),a["super"]=n,a.options.props&&br(a),a.options.computed&&_r(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,L.forEach((function(e){a[e]=n[e]})),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=D({},a.options),o[r]=a,a}}function br(e){var t=e.options.props;for(var n in t)Jn(e.prototype,"_props",n)}function _r(e){var t=e.options.computed;for(var n in t)rr(e.prototype,n,t[n])}function wr(e){L.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function kr(e){return e&&(e.Ctor.options.name||e.tag)}function Sr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Or(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=kr(a.componentOptions);s&&!t(s)&&xr(n,i,r,o)}}}function xr(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,m(n,t)}fr(vr),cr(vr),Sn(vr),Pn(vr),pn(vr);var Tr=[String,RegExp,Array],Pr={name:"keep-alive",abstract:!0,props:{include:Tr,exclude:Tr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)xr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Or(e,(function(e){return Sr(t,e)}))})),this.$watch("exclude",(function(t){Or(e,(function(e){return!Sr(t,e)}))}))},render:function(){var e=this.$slots.default,t=yn(e),n=t&&t.componentOptions;if(n){var r=kr(n),o=this,i=o.include,a=o.exclude;if(i&&(!r||!Sr(i,r))||a&&r&&Sr(a,r))return t;var s=this,u=s.cache,c=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;u[l]?(t.componentInstance=u[l].componentInstance,m(c,l),c.push(l)):(u[l]=t,c.push(l),this.max&&c.length>parseInt(this.max)&&xr(u,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Er={KeepAlive:Pr};function Ar(e){var t={get:function(){return F}};Object.defineProperty(e,"config",t),e.util={warn:ce,extend:D,mergeOptions:He,defineReactive:Ae},e.set=je,e.delete=De,e.nextTick=ut,e.observable=function(e){return Ee(e),e},e.options=Object.create(null),L.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,Er),gr(e),yr(e),mr(e),wr(e)}Ar(vr),Object.defineProperty(vr.prototype,"$isServer",{get:oe}),Object.defineProperty(vr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(vr,"FunctionalRenderContext",{value:Kt}),vr.version="2.6.11";var jr="[object Array]",Dr="[object Object]";function Cr(e,t){var n={};return Nr(e,t),Ir(e,t,"",n),n}function Nr(e,t){if(e!==t){var n=qr(e),r=qr(t);if(n==Dr&&r==Dr){if(Object.keys(e).length>=Object.keys(t).length)for(var o in t){var i=e[o];void 0===i?e[o]=null:Nr(i,t[o])}}else n==jr&&r==jr&&e.length>=t.length&&t.forEach((function(t,n){Nr(e[n],t)}))}}function Ir(e,t,n,r){if(e!==t){var o=qr(e),i=qr(t);if(o==Dr)if(i!=Dr||Object.keys(e).length<Object.keys(t).length)Ur(r,n,e);else{var a=function(o){var i=e[o],a=t[o],s=qr(i),u=qr(a);if(s!=jr&&s!=Dr)i!=t[o]&&Ur(r,(""==n?"":n+".")+o,i);else if(s==jr)u!=jr||i.length<a.length?Ur(r,(""==n?"":n+".")+o,i):i.forEach((function(e,t){Ir(e,a[t],(""==n?"":n+".")+o+"["+t+"]",r)}));else if(s==Dr)if(u!=Dr||Object.keys(i).length<Object.keys(a).length)Ur(r,(""==n?"":n+".")+o,i);else for(var c in i)Ir(i[c],a[c],(""==n?"":n+".")+o+"."+c,r)};for(var s in e)a(s)}else o==jr?i!=jr||e.length<t.length?Ur(r,n,e):e.forEach((function(e,o){Ir(e,t[o],n+"["+o+"]",r)})):Ur(r,n,e)}}function Ur(e,t,n){e[t]=n}function qr(e){return Object.prototype.toString.call(e)}function $r(e){if(e.__next_tick_callbacks&&e.__next_tick_callbacks.length){if(Object({VUE_APP_NAME:"大庆小程序",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var t=e.$scope;console.log("["+ +new Date+"]["+(t.is||t.route)+"]["+e._uid+"]:flushCallbacks["+e.__next_tick_callbacks.length+"]")}var n=e.__next_tick_callbacks.slice(0);e.__next_tick_callbacks.length=0;for(var r=0;r<n.length;r++)n[r]()}}function Rr(e){return Nn.find((function(t){return e._watcher===t}))}function Lr(e,t){if(!e.__next_tick_pending&&!Rr(e)){if(Object({VUE_APP_NAME:"大庆小程序",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var n=e.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+e._uid+"]:nextVueTick")}return ut(t,e)}if(Object({VUE_APP_NAME:"大庆小程序",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var r=e.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+e._uid+"]:nextMPTick")}var o;if(e.__next_tick_callbacks||(e.__next_tick_callbacks=[]),e.__next_tick_callbacks.push((function(){if(t)try{t.call(e)}catch(no){Je(no,e,"nextTick")}else o&&o(e)})),!t&&"undefined"!==typeof Promise)return new Promise((function(e){o=e}))}function Mr(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))}var Fr=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=Mr(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:Cr(o,i);Object.keys(a).length?(Object({VUE_APP_NAME:"大庆小程序",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",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,$r(n)}))):$r(this)}};function Br(){}function Hr(e,t,n){if(!e.mpType)return e;"app"===e.mpType&&(e.$options.render=Br),e.$options.render||(e.$options.render=Br),!e._$fallback&&Cn(e,"beforeMount");var r=function(){e._update(e._render(),n)};return new Yn(e,r,N,{before:function(){e._isMounted&&!e._isDestroyed&&Cn(e,"beforeUpdate")}},!0),n=!1,e}function Vr(e,t){return o(e)||o(t)?Kr(e,zr(t)):""}function Kr(e,t){return e?t?e+" "+t:e:t||""}function zr(e){return Array.isArray(e)?Gr(e):u(e)?Yr(e):"string"===typeof e?e:""}function Gr(e){for(var t,n="",r=0,i=e.length;r<i;r++)o(t=zr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Yr(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Wr=w((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Jr(e){return Array.isArray(e)?C(e):"string"===typeof e?Wr(e):e}var Xr=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Qr(e,t){var n=t.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?e[r]:Qr(e[r],n.slice(1).join("."))}function Zr(e){e.config.errorHandler=function(t,n,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',n),console.error(t);var o=getApp();o&&o.onError&&o.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){return this.$scope&&e&&this.$scope["triggerEvent"](e,{__args__:j(arguments,1)}),t.apply(this,arguments)},e.prototype.$nextTick=function(e){return Lr(this,e)},Xr.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=kt,e.prototype.__init_injections=St,e.prototype.__call_hook=function(e,t){var n=this;pe();var r,o=n.$options[e],i=e+" hook";if(o)for(var a=0,s=o.length;a<s;a++)r=Xe(o[a],n,t?[t]:null,n,i);return n._hasHookEvent&&n.$emit("hook:"+e,t),he(),r},e.prototype.__set_model=function(e,t,n,r){Array.isArray(r)&&(-1!==r.indexOf("trim")&&(n=n.trim()),-1!==r.indexOf("number")&&(n=this._n(n))),e||(e=this),e[t]=n},e.prototype.__set_sync=function(e,t,n){e||(e=this),e[t]=n},e.prototype.__get_orig=function(e){return l(e)&&e["$orig"]||e},e.prototype.__get_value=function(e,t){return Qr(t||this,e)},e.prototype.__get_class=function(e,t){return Vr(t,e)},e.prototype.__get_style=function(e,t){if(!e&&!t)return"";var n=Jr(e),r=t?D(t,n):n;return Object.keys(r).map((function(e){return T(e)+":"+r[e]})).join(";")},e.prototype.__map=function(e,t){var n,r,o,i,a;if(Array.isArray(e)){for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r);return n}if(u(e)){for(i=Object.keys(e),n=Object.create(null),r=0,o=i.length;r<o;r++)a=i[r],n[a]=t(e[a],a,r);return n}if("number"===typeof e){for(n=new Array(e),r=0,o=e;r<o;r++)n[r]=t(r,r);return n}return[]}}var eo=["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","onPageShow","onPageHide","onPageResize"];function to(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==eo.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;eo.forEach((function(e){n[e]=r})),e.prototype.__lifecycle_hooks__=eo}vr.prototype.__patch__=Fr,vr.prototype.$mount=function(e,t){return Hr(this,e,t)},to(vr),Zr(vr),t["default"]=vr}.call(this,n("c8ba"))},"6f9b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={pages:{"pages/index/index":{navigationBarTitleText:"待办事项"},"pages/workbench/workbench":{navigationBarTitleText:"工作台"},"pages/user/user":{navigationBarTitleText:"我的"},"guaranteePages/pages/application/application":{navigationBarTitleText:"业务申请"},"guaranteePages/pages/addApplication/addApplication":{navigationBarTitleText:"业务申请"},"guaranteePages/pages/investigation/investigation":{navigationBarTitleText:"担保部调查"},"guaranteePages/pages/assignAB/assignAB":{navigationBarTitleText:"指派AB角"},"guaranteePages/pages/investigationSee/investigationSee":{navigationBarTitleText:"担保部调查"},"guaranteePages/pages/asset/asset":{navigationBarTitleText:"资产部调查"},"guaranteePages/pages/assignCommissioner/assignCommissioner":{navigationBarTitleText:"指派资产部专员"},"guaranteePages/pages/assetSee/assetSee":{navigationBarTitleText:"资产部调查详情"},"guaranteePages/pages/Information/Information":{navigationBarTitleText:"信息部调查"},"guaranteePages/pages/assignInformation/assignInformation":{navigationBarTitleText:"指派信息部专员"},"guaranteePages/pages/InformationSee/InformationSee":{navigationBarTitleText:"信息部调查"},"guaranteePages/pages/regulation/regulation":{navigationBarTitleText:"合规调查"},"guaranteePages/pages/assignRegulation/assignRegulation":{navigationBarTitleText:"指派合规调查专员"},"guaranteePages/pages/regulationSee/regulationSee":{navigationBarTitleText:"合规调查详情"},"guaranteePages/pages/workMeeting/workMeeting":{navigationBarTitleText:"工作会"},"guaranteePages/pages/workMeetingSee/workMeetingSee":{navigationBarTitleText:"工作会详情"},"guaranteePages/pages/reviewJudges/reviewJudges":{navigationBarTitleText:"贷审会评委选择"},"guaranteePages/pages/review/review":{navigationBarTitleText:"贷审会"},"guaranteePages/pages/reviewSee/reviewSee":{navigationBarTitleText:"贷审会"},"guaranteePages/pages/letter/letter":{navigationBarTitleText:"担保函"},"guaranteePages/pages/letterSee/letterSee":{navigationBarTitleText:"担保承诺函"},"guaranteePages/pages/payment/payment":{navigationBarTitleText:"回款确认"},"guaranteePages/pages/notice/notice":{navigationBarTitleText:"放款通知"},"guaranteePages/pages/noticeSee/noticeSee":{navigationBarTitleText:"放款通知"},"guaranteePages/pages/paymentSee/paymentSee":{navigationBarTitleText:"担保承诺函"},"workBenchPages/pages/customer/customer":{navigationBarTitleText:"客户资源管理系统",backgroundColorTop:"#FFFFFF",backgroundColorBottom:"#FFFFFF"},"workBenchPages/pages/guarantee/guarantee":{navigationBarTitleText:"担保业务管理系统"},"workBenchPages/pages/addcustomer/addcustomer":{navigationBarTitleText:"添加客户信息"},"workBenchPages/pages/aboutUs/aboutUs":{navigationBarTitleText:"关于我们"},"workBenchPages/pages/personalInfo/personalInfo":{navigationBarTitleText:"个人信息"},"workBenchPages/pages/bindPhone/bindPhone":{navigationBarTitleText:"绑定手机号"},"workBenchPages/pages/statistics/statistics":{navigationBarTitleText:"进度查询"},"workBenchPages/pages/refuse/refuse":{navigationBarTitleText:"拒绝查询"},"workBenchPages/pages/efficiency/efficiency":{navigationBarTitleText:"团队效率"}},globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8",backgroundColorTop:"#FFFFFF"}};t.default=r},"7b5e":function(e,t,n){"use strict";function r(e,t){t=t>0&&t<=20?t:2,e=parseFloat((e+"").replace(/[^\d\.-]/g,"")).toFixed(t)+"";for(var n=e.split(".")[0].split("").reverse(),r=e.split(".")[1],o="",i=0;i<n.length;i++)o+=n[i]+((i+1)%3==0&&i+1!=n.length?",":"");return o.split("").reverse().join("")+"."+r}function o(e,t){if(!e)return"";e=e.toString(),t=t?t.toString():"";var n="".concat(e.substr(0,4),"-").concat(e.substr(4,2),"-").concat(e.substr(6,2));return 14==e.length?n+=" ".concat(e.substr(8,2),":").concat(e.substr(10,2),":").concat(e.substr(12,2)):6==e.length?n="".concat(e.substr(0,2),":").concat(e.substr(2,2),":").concat(e.substr(4,2)):t&&(n+=" ".concat(t.substr(0,2),":").concat(t.substr(2,2),":").concat(t.substr(4,2))),n}function i(e){Y=e.getFullYear()+"-",M=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",D=e.getDate()+" ";var t=Y+M+D;return t}function a(e){return parseFloat(e).toFixed(2)}function s(e){var t,n,r,o=new Array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖"),i=new Array("","拾","佰","仟"),a=new Array("","万","亿","兆"),s=new Array("仟","佰","拾",""),u="元整",c="万",l="";if(""==e)return"";if(e=e.toString(),-1==e.indexOf(".")?(t=e,n=""):(r=e.split("."),t=r[0],n=r[1].substr(0,4)),parseInt(t,10)>0){for(var f=0,p=t.length,h=0;h<p;h++){var d=t.substr(h,1),v=p-h-1,g=v/4,y=v%4;"0"==d?f++:(f>0&&(l+=o[0]),f=0,l+=o[parseInt(d)]+i[y]),0==y&&f<4&&(l+=a[g])}l+=c}if(""!=n)for(var m=n.length,b=0;b<m;b++){var _=n.substr(b,1);"0"!=_&&(l+=o[Number(_)]+s[b])}return l+=u,l}function u(e){var t={0:"手动发布",1:"定时发布"};return t[e]||"未知状态"}function c(e){var t={0:"待指派",1:"审核中",2:"已审核",3:"已拒绝",4:"已驳回",5:"已撤销",6:"草稿"};return t[e]||"未知状态"}function l(e){var t={1:{text:"审核中",bgColor:"#FCF0E5",textColor:"#E7BB8B"},2:{text:"已通过",bgColor:"#E0F6EF",textColor:"#64C8A8"},4:{text:"已拒绝",bgColor:"#FCEBE9",textColor:"#D07D76"}};return t[e]||{text:"未知状态",bgColor:"#333",textColor:"#666"}}function f(e){var t={0:"已撤销",1:"进行中",2:"已完成",3:"已否决"};return t[e]||"未知状态"}function p(e){var t={0:"已发起",1:"待处理",2:"已处理",3:"待提交",4:"待定义"};return t[e]||"未知状态"}function h(e,t){for(var n=0;n<e.length;n++)if(e[n]==t){e.splice(n,1);break}}function d(e){var t=!0;return Object.keys(e).forEach((function(n){null!=e[n]&&""!=e[n]&&(t=!1)})),!!t}function v(e,t){var n;return function(){var r=this,o=arguments;n&&clearTimeout(n);var i=!n;n=setTimeout((function(){n=null}),t),i&&e.apply(r,o)}}function g(e){var t={1:"业务申请",2:"担保部调查",3:"资产部调查",4:"信息部调查",5:"合规调查",6:"工作会",7:"贷审会",8:"担保函",9:"回款确认",10:"放款通知"};return t[e]||"未知状态"}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var y={fMoney:r,fMoney2:a,fMoney3:s,toDateTime:o,dateFormatFn:i,orderreleaseType:u,auditStatus:l,businessType:f,operationType:p,removeByValue:h,objectValueAllEmpty:d,debounce:v,statusVal:c,processNode:g};t.default=y},8189:function(e){e.exports=JSON.parse('{"_from":"@dcloudio/uni-stat@alpha","_id":"@dcloudio/uni-stat@2.0.0-alpha-31420210303001","_inBundle":false,"_integrity":"sha512-kOjnnExw2uv6NO4L5kVOpLHrGrRvaPUpz+5d0ucWqsLxMWSflykbwwzXhLk6zXTZ7a4jRtxfKCoi1aRSA0+m+g==","_location":"/@dcloudio/uni-stat","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"@dcloudio/uni-stat@alpha","name":"@dcloudio/uni-stat","escapedName":"@dcloudio%2funi-stat","scope":"@dcloudio","rawSpec":"alpha","saveSpec":null,"fetchSpec":"alpha"},"_requiredBy":["#USER","/","/@dcloudio/vue-cli-plugin-uni"],"_resolved":"https://registry.npmjs.org/@dcloudio/uni-stat/-/uni-stat-2.0.0-alpha-31420210303001.tgz","_shasum":"43d4ca554a995a3f06aff990f48fca8a28b2d9c4","_spec":"@dcloudio/uni-stat@alpha","_where":"/Users/guoshengqiang/Documents/dcloud-plugins-new/alpha/uniapp-cli","author":"","bugs":{"url":"https://github.com/dcloudio/uni-app/issues"},"bundleDependencies":false,"deprecated":false,"description":"","devDependencies":{"@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","eslint":"^6.1.0","rollup":"^1.19.3","rollup-plugin-babel":"^4.3.3","rollup-plugin-clear":"^2.0.7","rollup-plugin-commonjs":"^10.0.2","rollup-plugin-copy":"^3.1.0","rollup-plugin-eslint":"^7.0.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-uglify":"^6.0.2"},"files":["dist","package.json","LICENSE"],"gitHead":"06cfd15e5ba7cc5ec2283e42ace4d6b2d57f455e","homepage":"https://github.com/dcloudio/uni-app#readme","license":"Apache-2.0","main":"dist/index.js","name":"@dcloudio/uni-stat","repository":{"type":"git","url":"git+https://github.com/dcloudio/uni-app.git","directory":"packages/uni-stat"},"scripts":{"build":"NODE_ENV=production rollup -c rollup.config.js","dev":"NODE_ENV=development rollup -w -c rollup.config.js"},"version":"2.0.0-alpha-31420210303001"}')},8214:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("a34a")),o=a(n("af5a")),i=n("4e5a");function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)}))}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function v(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}}),t&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=_();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=n("8367"),S=k.chooseImage,O=k.chooseVideo,x=k.qiniuUpload,T=k.urlUpload,P=function(e){v(n,e);var t=y(n);function n(e){return p(this,n),t.call(this,e)}return d(n,[{key:"qnImgUpload",value:function(){var e=f(r.default.mark((function e(){var t,n,o=arguments;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.prev=1,e.next=4,S(t);case 4:n=e.sent,t.onSelectComplete&&t.onSelectComplete(n),e.next=12;break;case 8:return e.prev=8,e.t0=e["catch"](1),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 12:if(!n){e.next=14;break}return e.abrupt("return",this.qnFileUpload(u(u({},t),{},{files:n})));case 14:case"end":return e.stop()}}),e,this,[[1,8]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"qnVideoUpload",value:function(){var e=f(r.default.mark((function e(){var t,n,o=arguments;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.prev=1,e.next=4,O(t);case 4:n=e.sent,t.onSelectComplete&&t.onSelectComplete(n),e.next=12;break;case 8:return e.prev=8,e.t0=e["catch"](1),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 12:if(!n){e.next=14;break}return e.abrupt("return",this.qnFileUpload(u(u({},t),{},{files:n})));case 14:case"end":return e.stop()}}),e,this,[[1,8]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"qnFileUpload",value:function(){var e=f(r.default.mark((function e(){var t,n,o,i,a,s=arguments;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:{},e.prev=1,n=u(u(u({},this.config),t),{},{header:{},method:"FILE"}),!this.requestStart){e.next=11;break}if(o=this.requestStart(n),"object"!=typeof o){e.next=10;break}i=["load","files"],i.forEach((function(e){n[e]=o[e]})),e.next=11;break;case 10:throw{errMsg:"【request】请求开始拦截器未通过",statusCode:0,data:n.data,method:n.method,header:n.header,url:n.url};case 11:return e.next=13,x(n,this.getQnToken);case 13:return a=e.sent,e.abrupt("return",Promise.resolve(a));case 17:return e.prev=17,e.t0=e["catch"](1),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 21:return e.prev=21,this.requestEnd&&this.requestEnd(n),e.finish(21);case 24:case"end":return e.stop()}}),e,this,[[1,17,21,24]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"urlImgUpload",value:function(){var e=f(r.default.mark((function e(){var t,n=arguments;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={},n[0]&&("string"==typeof n[0]?t.url=n[0]:"object"==typeof n[0]&&(t=Object.assign(t,n[0]))),n[1]&&"object"==typeof n[1]&&(t=Object.assign(t,n[1])),e.prev=3,e.next=6,S(t);case 6:t.files=e.sent,t.onSelectComplete&&t.onSelectComplete(t.files),e.next=14;break;case 10:return e.prev=10,e.t0=e["catch"](3),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 14:if(!t.files){e.next=16;break}return e.abrupt("return",this.urlFileUpload(t));case 16:case"end":return e.stop()}}),e,this,[[3,10]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"urlVideoUpload",value:function(){var e=f(r.default.mark((function e(){var t,n=arguments;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={},n[0]&&("string"==typeof n[0]?t.url=n[0]:"object"==typeof n[0]&&(t=Object.assign(t,n[0]))),n[1]&&"object"==typeof n[1]&&(t=Object.assign(t,n[1])),e.prev=3,e.next=6,O(t);case 6:t.files=e.sent,t.onSelectComplete&&t.onSelectComplete(t.files),e.next=14;break;case 10:return e.prev=10,e.t0=e["catch"](3),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 14:if(!t.files){e.next=16;break}return e.abrupt("return",this.urlFileUpload(t));case 16:case"end":return e.stop()}}),e,this,[[3,10]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"urlFileUpload",value:function(){var e=f(r.default.mark((function e(){var t,n,o,a,s,u=arguments;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t={method:"FILE"},u[0]&&("string"==typeof u[0]?t.url=u[0]:"object"==typeof u[0]&&(t=Object.assign(t,u[0]))),u[1]&&"object"==typeof u[1]&&(t=Object.assign(t,u[1])),!t.url&&this.defaultUploadUrl&&(t.url=this.defaultUploadUrl),n=!1,e.prev=5,t.url){e.next=8;break}throw{errMsg:"【request】文件上传缺失数据url",statusCode:0,data:t.data,method:t.method,header:t.header,url:t.url};case 8:if(t=(0,i.mergeConfig)(this,t),n=!0,!this.requestStart){e.next=18;break}if(o=this.requestStart(t),"object"!=typeof o){e.next=17;break}a=["data","header","isPrompt","load","isFactory","files"],a.forEach((function(e){t[e]=o[e]})),e.next=18;break;case 17:throw{errMsg:"【request】请求开始拦截器未通过",statusCode:0,data:t.data,method:t.method,header:t.header,url:t.url};case 18:return e.next=20,T(t,this.dataFactory);case 20:return s=e.sent,e.abrupt("return",Promise.resolve(s));case 24:return e.prev=24,e.t0=e["catch"](5),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 28:return e.prev=28,n&&this.requestEnd&&this.requestEnd(t),e.finish(28);case 31:case"end":return e.stop()}}),e,this,[[5,24,28,31]])})));function t(){return e.apply(this,arguments)}return t}()}]),n}(o.default);t.default=P},8367:function(e,t,n){"use strict";(function(e){function r(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.urlUpload=t.qiniuUpload=t.chooseVideo=t.chooseImage=t.randomChar=void 0;var a=n("3b20"),s=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="0123456789qwertyuioplkjhgfdsazxcvbnm",r="",o=new Date,i=0;i<e;i++)r+=n.charAt(Math.ceil(1e8*Math.random())%n.length);return"file/"+t+o.getTime()+r};t.randomChar=s;var u=function(t){return new Promise((function(n,r){e.chooseImage({count:t.count||9,sizeType:t.sizeType||["original","compressed"],sourceType:t.sourceType||["album","camera"],success:function(e){n(e.tempFiles)},fail:function(e){r({errMsg:e.errMsg,errCode:e.errCode,statusCode:0})}})}))};t.chooseImage=u;var c=function(t){return new Promise((function(n,r){e.chooseVideo({sourceType:t.sourceType||["album","camera"],compressed:t.compressed||!1,maxDuration:t.maxDuration||60,camera:t.camera||"back",success:function(e){var t=[{path:e.tempFilePath}];t[0].duration=e.duration,t[0].size=e.size,t[0].height=e.height,t[0].width=e.width,n(t)},fail:function(e){r({errMsg:e.errMsg,errCode:e.errCode,statusCode:0})}})}))};t.chooseVideo=c;var l=function(e,t){return new Promise((function(n,r){if(Array.isArray(e.files)){var i=e.files.length,u=new Array;t?t((function(t){var c=t.visitPrefix.length;function l(c){var f=e.files[c],p=s(10,t.folderPath),h=o({fileIndex:c,files:e.files},f);if(f.name){h.name=f.name;var d=f.name.split(".");p+="."+d[d.length-1]}a.upload(f.path||f,(function(t){h.url=t.imageURL,e.onEachUpdate&&e.onEachUpdate(o({url:t.imageURL},h)),u.push(t.imageURL),i-1>c?l(c+1):n(u)}),(function(e){r(e)}),{region:t.region||"SCN",domain:t.visitPrefix,key:p,uptoken:t.token,uptokenURL:"UpTokenURL.com/uptoken"},(function(t){console.log(e),e.onProgressUpdate&&e.onProgressUpdate(Object.assign({},h,t))}))}"/"==t.visitPrefix.charAt(c-1)&&(t.visitPrefix=t.visitPrefix.substring(0,c-1)),l(0)})):r({errMsg:"请添加七牛云回调方法:getQnToken",statusCode:0})}else r({errMsg:"files 必须是数组类型",statusCode:0})}))};t.qiniuUpload=l;var f=function(t,n){return new Promise((function(r,i){if(t.header["Content-Type"]&&delete t.header["Content-Type"],t.header["content-type"]&&delete t.header["content-type"],Array.isArray(t.files)){var a=function a(c){var l=t.files[c],f=o({fileIndex:c,files:t.files},l),p={url:t.url,filePath:l.path,header:t.header,name:t.name||"file",success:function(e){t.isFactory&&n?n(o(o({},t),{},{response:e})).then((function(e){u.push(e),t.onEachUpdate&&t.onEachUpdate(o({data:e},f)),s<=c?r(u):a(c+1)}),(function(e){i(e)})):(t.onEachUpdate&&t.onEachUpdate(o({data:e},f)),u.push(e),s<=c?r(u):a(c+1))},fail:function(e){i(e)}};t.data&&(p.formData=t.data);var h=e.uploadFile(p);h.onProgressUpdate((function(e){t.onProgressUpdate&&t.onProgressUpdate(Object.assign({},f,e))}))},s=t.files.length-1,u=new Array;a(0)}else i({errMsg:"files 必须是数组类型",statusCode:0})}))};t.urlUpload=f}).call(this,n("543d")["default"])},"8e2b":function(e,t,n){(function(t){getApp().globalData.url;function n(){return new Promise((function(e,n){t.chooseMedia({count:1,mediaType:["image","video"],sourceType:["album","camera"],maxDuration:30,camera:"back",success:function(r){if(r.tempFiles.length>0){console.log(r,"看下是啥格式");var o=r.tempFiles[0].tempFilePath,i=r.tempFiles[0].size;if(i<8388608){t.showLoading({title:"上传中"});t.uploadFile({url:"https://www.huorantech.cn/dqwg/api-guarantee/dg-apply-amount-info/uploadFile",filePath:o,header:{token:t.getStorageSync("token"),"Content-Type":"multipart/form-data;boundary=----WebKitFormBoundaryi8lPVoSysovJLNqi",Accept:"application/json"},name:"file",success:function(r){if(500==r.statusCode)t.showToast({title:"上传失败",icon:"none"}),n("失败");else if(t.showToast({title:"上传成功",icon:"success"}),r.data){var o=JSON.parse(r.data).data[0],i=o.lastIndexOf("."),a=o.substr(i+1);e({imageurl:o,ext:a})}}})}else t.showToast({title:"超出限制大小",icon:"none"})}else t.showToast({title:"文件不存在",icon:"none"})}})}))}function r(){return new Promise((function(e,n){t.chooseMessageFile({count:1,type:"file",success:function(r){if(r.tempFiles.length>0){if(!(r.tempFiles[0].size<8388608))return void t.showToast({title:"超出限制大小",icon:"none"});t.showLoading({title:"上传中"}),t.uploadFile({url:"https://www.huorantech.cn/dqwg/api-guarantee/dg-apply-amount-info/uploadFile",filePath:r.tempFiles[0].path,name:"file",header:{token:t.getStorageSync("token"),"Content-Type":"multipart/form-data; boundary=----WebKitFormBoundaryi8lPVoSysovJLNqi",Accept:"application/json"},success:function(r){if(500!=r.statusCode)if(t.showToast({title:"文件上传成功",icon:"success"}),r.data){var o=JSON.parse(r.data).data[0],i=o.lastIndexOf("."),a=o.substr(i+1);e({pdfurl:o,ext:a})}else n("失败");else t.showToast({title:"服务器错误",icon:"none"})}})}else t.showToast({title:"文件不存在",icon:"none"})}})}))}e.exports={uploadImage:n,uploadPdf:r}}).call(this,n("543d")["default"])},"921b":function(e,t,n){"use strict";(function(e){var t=n("8189");function r(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}}),t&&o(e,t)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e){var t=u();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=t.version,v="https://tongji.dcloud.io/uni/stat",g="https://tongji.dcloud.io/uni/stat.gif",y=1800,m=300,b=10,_=864e5,w=n("0d12").default||n("0d12"),k="__DC_STAT_UUID",S="__DC_UUID_VALUE";function O(){var t="";if("n"===E()){try{t=plus.runtime.getDCloudId()}catch(n){t=""}return t}try{t=e.getStorageSync(k)}catch(n){t=S}if(!t){t=Date.now()+""+Math.floor(1e7*Math.random());try{e.setStorageSync(k,t)}catch(n){e.setStorageSync(k,S)}}return t}var x=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)}},T=function(e){var t="";for(var n in e)t+=n+"="+e[n]+"&";return t.substr(0,t.length-1)},P=function(){return parseInt((new Date).getTime()/1e3)},E=function(){var e,t=["y","a","p","mp-ali"],n=(e={"app-plus":"n",h5:"h5","mp-weixin":"wx"},h(e,t.reverse().join(""),"ali"),h(e,"mp-baidu","bd"),h(e,"mp-toutiao","tt"),h(e,"mp-qq","qq"),h(e,"quickapp-native","qn"),h(e,"mp-kuaishou","ks"),e);return n["mp-weixin"]},A=function(){var t="";return"wx"!==E()&&"qq"!==E()||e.canIUse("getAccountInfoSync")&&(t=e.getAccountInfoSync().miniProgram.appId||""),t},j=function(){return"n"===E()?plus.runtime.version:""},D=function(){var e=E(),t="";return"n"===e&&(t=plus.runtime.channel),t},C=function(t){var n=E(),r="";return t||("wx"===n&&(r=e.getLaunchOptionsSync().scene),r)},N="First__Visit__Time",I="Last__Visit__Time",U=function(){var t=e.getStorageSync(N),n=0;return t?n=t:(n=P(),e.setStorageSync(N,n),e.removeStorageSync(I)),n},q=function(){var t=e.getStorageSync(I),n=0;return n=t||"",e.setStorageSync(I,P()),n},$="__page__residence__time",R=0,L=0,M=function(){return R=P(),"n"===E()&&e.setStorageSync($,P()),R},F=function(){return L=P(),"n"===E()&&(R=e.getStorageSync($)),L-R},B="Total__Visit__Count",H=function(){var t=e.getStorageSync(B),n=1;return t&&(n=t,n++),e.setStorageSync(B,n),n},V=function(e){var t={};for(var n in e)t[n]=encodeURIComponent(e[n]);return t},K=0,z=0,G=function(){var e=(new Date).getTime();return K=e,z=0,e},Y=function(){var e=(new Date).getTime();return z=e,e},W=function(e){var t=0;if(0!==K&&(t=z-K),t=parseInt(t/1e3),t=t<1?1:t,"app"===e){var n=t>m;return{residenceTime:t,overtime:n}}if("page"===e){var r=t>y;return{residenceTime:t,overtime:r}}return{residenceTime:t}},J=function(){var e=getCurrentPages(),t=e[e.length-1];if(!t)return"";var n=t.$vm;return"bd"===E()?n.$mp&&n.$mp.page.is:n.$scope&&n.$scope.route||n.$mp&&n.$mp.page.route},X=function(e){var t=getCurrentPages(),n=t[t.length-1];if(!n)return"";var r=n.$vm,o=e._query,i=o&&"{}"!==JSON.stringify(o)?"?"+JSON.stringify(o):"";return e._query="","bd"===E()?r.$mp&&r.$mp.page.is+i:r.$scope&&r.$scope.route+i||r.$mp&&r.$mp.page.route+i},Q=function(e){return!!("page"===e.mpType||e.$mp&&"page"===e.$mp.mpType||"page"===e.$options.mpType)},Z=function(e,t){return e?"string"!==typeof e?(console.error("uni.report [eventName] 参数类型错误,只能为 String 类型"),!0):e.length>255?(console.error("uni.report [eventName] 参数长度不能大于 255"),!0):"string"!==typeof t&&"object"!==typeof t?(console.error("uni.report [options] 参数类型错误,只能为 String 或 Object 类型"),!0):"string"===typeof t&&t.length>255?(console.error("uni.report [options] 参数长度不能大于 255"),!0):"title"===e&&"string"!==typeof t?(console.error("uni.report [eventName] 参数为 title 时,[options] 参数只能为 String 类型"),!0):void 0:(console.error("uni.report 缺少 [eventName] 参数"),!0)},ee="Report_Data_Time",te="Report_Status",ne=function(){return new Promise((function(t,n){var r="",o=(new Date).getTime(),i=_,a=1;try{r=e.getStorageSync(ee),a=e.getStorageSync(te)}catch(s){r="",a=1}""!==a?(1===a&&t(),r||(e.setStorageSync(ee,o),r=o),o-r>i&&re((function(t){var n=t.enable;e.setStorageSync(ee,o),e.setStorageSync(te,n)}))):re((function(n){var r=n.enable;e.setStorageSync(ee,o),e.setStorageSync(te,r),1===r&&t()}))}))},re=function(t){var n={usv:d,conf:JSON.stringify({ak:w.appid})};e.request({url:v,method:"GET",data:n,success:function(e){var n=e.data;0===n.ret&&"function"===typeof t&&t({enable:n.enable})},fail:function(n){var r=1;try{r=e.getStorageSync(te)}catch(n){r=1}""===r&&(r=1),"function"===typeof t&&t({enable:r})}})},oe=n("6f9b").default,ie=n("0d12").default||n("0d12"),ae=e.getSystemInfoSync(),se=function(){function t(){l(this,t),this.self="",this._retry=0,this._platform="",this._query={},this._navigationBarTitle={config:"",page:"",report:"",lt:""},this._operatingTime=0,this._reportingRequestData={1:[],11:[]},this.__prevent_triggering=!1,this.__licationHide=!1,this.__licationShow=!1,this._lastPageRoute="",this.statData={uuid:O(),ut:E(),mpn:A(),ak:ie.appid,usv:d,v:j(),ch:D(),cn:"",pn:"",ct:"",t:P(),tt:"",p:"android"===ae.platform?"a":"i",brand:ae.brand||"",md:ae.model,sv:ae.system.replace(/(Android|iOS)\s/,""),mpsdk:ae.SDKVersion||"",mpv:ae.version||"",lang:ae.language,pr:ae.pixelRatio,ww:ae.windowWidth,wh:ae.windowHeight,sw:ae.screenWidth,sh:ae.screenHeight}}return p(t,[{key:"getIsReportData",value:function(){return ne()}},{key:"_applicationShow",value:function(){if(this.__licationHide){Y();var e=W("app");if(e.overtime){var t={path:this._lastPageRoute,scene:this.statData.sc};this._sendReportRequest(t)}this.__licationHide=!1}}},{key:"_applicationHide",value:function(e,t){this.__licationHide=!0,Y();var n=W();G();var r=X(this);this._sendHideRequest({urlref:r,urlref_ts:n.residenceTime},t)}},{key:"_pageShow",value:function(){var e=X(this),t=J();if(this._navigationBarTitle.config=oe&&oe.pages[t]&&oe.pages[t].titleNView&&oe.pages[t].titleNView.titleText||oe&&oe.pages[t]&&oe.pages[t].navigationBarTitleText||"",this.__licationShow)return G(),this.__licationShow=!1,void(this._lastPageRoute=e);Y(),this._lastPageRoute=e;var n=W("page");if(n.overtime){var r={path:this._lastPageRoute,scene:this.statData.sc};this._sendReportRequest(r)}G()}},{key:"_pageHide",value:function(){if(!this.__licationHide){Y();var e=W("page");return this._sendPageRequest({url:this._lastPageRoute,urlref:this._lastPageRoute,urlref_ts:e.residenceTime}),void(this._navigationBarTitle={config:"",page:"",report:"",lt:""})}}},{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:"_sendReportRequest",value:function(e){this._navigationBarTitle.lt="1";var t=e.query&&"{}"!==JSON.stringify(e.query)?"?"+JSON.stringify(e.query):"";this.statData.lt="1",this.statData.url=e.path+t||"",this.statData.t=P(),this.statData.sc=C(e.scene),this.statData.fvts=U(),this.statData.lvts=q(),this.statData.tvc=H(),"n"===E()?this.getProperty():this.getNetworkInfo()}},{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,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:P(),p:this.statData.p};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,lt:"3",ut:this.statData.ut,urlref:n,urlref_ts:r,ch:this.statData.ch,usv:this.statData.usv,t:P(),p:this.statData.p};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=this._lastPageRoute,a={ak:this.statData.ak,uuid:this.statData.uuid,lt:"21",ut:this.statData.ut,url:i,ch:this.statData.ch,e_n:n,e_v:"object"===typeof o?JSON.stringify(o):o.toString(),usv:this.statData.usv,t:P(),p:this.statData.p};this.request(a)}},{key:"getNetworkInfo",value:function(){var t=this;e.getNetworkType({success:function(e){t.statData.net=e.networkType,t.getLocation()}})}},{key:"getProperty",value:function(){var e=this;plus.runtime.getProperty(plus.runtime.appid,(function(t){e.statData.v=t.version||"",e.getNetworkInfo()}))}},{key:"getLocation",value:function(){var t=this;ie.getLocation?e.getLocation({type:"wgs84",geocode:!0,success:function(e){e.address&&(t.statData.cn=e.address.country,t.statData.pn=e.address.province,t.statData.ct=e.address.city),t.statData.lat=e.latitude,t.statData.lng=e.longitude,t.request(t.statData)}}):(this.statData.lat=0,this.statData.lng=0,this.request(this.statData))}},{key:"request",value:function(t,n){var r=this,o=P(),i=this._navigationBarTitle;t.ttn=i.page,t.ttpj=i.config,t.ttc=i.report;var a=this._reportingRequestData;if("n"===E()&&(a=e.getStorageSync("__UNI__STAT__DATA")||{}),a[t.lt]||(a[t.lt]=[]),a[t.lt].push(t),"n"===E()&&e.setStorageSync("__UNI__STAT__DATA",a),!(F()<b)||n){var s=this._reportingRequestData;"n"===E()&&(s=e.getStorageSync("__UNI__STAT__DATA")),M();var u=[],c=[],l=[],f=function(e){var t=s[e];t.forEach((function(t){var n=T(t);0===e?u.push(n):3===e?l.push(n):c.push(n)}))};for(var p in s)f(p);u.push.apply(u,c.concat(l));var h={usv:d,t:o,requests:JSON.stringify(u)};this._reportingRequestData={},"n"===E()&&e.removeStorageSync("__UNI__STAT__DATA"),"h5"!==t.ut?"n"!==E()||"a"!==this.statData.p?this._sendRequest(h):setTimeout((function(){r._sendRequest(h)}),200):this.imageRequest(h)}}},{key:"_sendRequest",value:function(t){var n=this;this.getIsReportData().then((function(){e.request({url:v,method:"POST",data:t,success:function(){},fail:function(e){++n._retry<3&&setTimeout((function(){n._sendRequest(t)}),1e3)}})}))}},{key:"imageRequest",value:function(e){this.getIsReportData().then((function(){var t=new Image,n=x(V(e)).options;t.src=g+"?"+n}))}},{key:"sendEvent",value:function(e,t){Z(e,t)||("title"!==e?this._sendEventRequest({key:e,value:"object"===typeof t?JSON.stringify(t):t},1):this._navigationBarTitle.report=t)}}]),t}(),ue=function(t){r(o,t);var n=i(o);function o(){var t;return l(this,o),t=n.call(this),t.instance=null,"function"===typeof e.addInterceptor&&(t.addInterceptorInit(),t.interceptLogin(),t.interceptShare(!0),t.interceptRequestPayment()),t}return p(o,null,[{key:"getInstance",value:function(){return this.instance||(this.instance=new o),this.instance}}]),p(o,[{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:"report",value:function(e,t){this.self=t,M(),this.__licationShow=!0,this._sendReportRequest(e,!0)}},{key:"load",value:function(e,t){if(!t.$scope&&!t.$mp){var n=getCurrentPages();t.$scope=n[n.length-1]}this.self=t,this._query=e}},{key:"show",value:function(e){this.self=e,Q(e)?this._pageShow(e):this._applicationShow(e)}},{key:"ready",value:function(e){}},{key:"hide",value:function(e){this.self=e,Q(e)?this._pageHide(e):this._applicationHide(e,!0)}},{key:"error",value:function(e){this._platform;var t="";t=e.message?e.stack:JSON.stringify(e);var n={ak:this.statData.ak,uuid:this.statData.uuid,lt:"31",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:P(),p:this.statData.p};this.request(n)}}]),o}(se),ce=ue.getInstance(),le=!1,fe={onLaunch:function(e){ce.report(e,this)},onReady:function(){ce.ready(this)},onLoad:function(e){if(ce.load(e,this),this.$scope&&this.$scope.onShareAppMessage){var t=this.$scope.onShareAppMessage;this.$scope.onShareAppMessage=function(e){return ce.interceptShare(!1),t.call(this,e)}}},onShow:function(){le=!1,ce.show(this)},onHide:function(){le=!0,ce.hide(this)},onUnload:function(){le?le=!1:ce.hide(this)},onError:function(e){ce.error(e)}};function pe(){var t=n("66fd");(t.default||t).mixin(fe),e.report=function(e,t){ce.sendEvent(e,t)}}pe()}).call(this,n("543d")["default"])},9571:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("66fd"));function o(e){return e&&e.__esModule?e:{default:e}}var i={isMobilePhone:function(e){var t=/^1\d{10}$/;return!!t.test(e)}};r.default.prototype.$utils=i;var a=i;t.default=a},"96cf":function(e,t){!function(t){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",c="object"===typeof e,l=t.regeneratorRuntime;if(l)c&&(e.exports=l);else{l=t.regeneratorRuntime=c?e.exports:{},l.wrap=_;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",v={},g={};g[a]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==r&&o.call(m,a)&&(g=m);var b=O.prototype=k.prototype=Object.create(g);S.prototype=b.constructor=O,O.constructor=S,O[u]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},x(T.prototype),T.prototype[s]=function(){return this},l.AsyncIterator=T,l.async=function(e,t,n,r){var o=new T(_(e,t,n,r));return l.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(b),b[u]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=C,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function _(e,t,n,r){var o=t&&t.prototype instanceof k?t:k,i=Object.create(o.prototype),a=new D(r||[]);return i._invoke=P(e,n,a),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function k(){}function S(){}function O(){}function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function T(e){function t(n,r,i,a){var s=w(e[n],e,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return t("throw",e,i,a)}))}a(s.arg)}var n;function r(e,r){function o(){return new Promise((function(n,o){t(e,r,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=r}function P(e,t,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return N()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=w(e,t,n);if("normal"===u.type){if(r=n.done?d:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}function E(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,E(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=w(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,v;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){while(++r<e.length)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}return{next:N}}function N(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},a34a:function(e,t,n){e.exports=n("bbdd")},a3f9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={down:{textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",textSuccess:"加载成功",textErr:"加载失败",beforeEndDelay:100,offset:80,native:!1},up:{textLoading:"加载中 ...",textNoMore:"-- END --",offset:150,toTop:{src:"https://www.mescroll.com/img/mescroll-totop.png",offset:1e3,right:20,bottom:120,width:72},empty:{use:!0,icon:"https://www.mescroll.com/img/mescroll-empty.png",tip:"~ 空空如也 ~"}}},o=r;t.default=o},a9ff:function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;o(n("a34a"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return c(e)||u(e)||s(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){if(e){if("string"===typeof e)return l(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)?l(e,t):void 0}}function u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function c(e){if(Array.isArray(e))return l(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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}}),t&&S(e,t)}function g(e){var t=w();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){var t="function"===typeof Map?new Map:void 0;return b=function(e){if(null===e||!k(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _(e,arguments,O(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),S(n,e)},b(e)}function _(e,t,n){return _=w()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&S(i,n.prototype),i},_.apply(null,arguments)}function w(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(x){return!1}}function k(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function T(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function P(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var E=P((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},i=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(i=0;i<o;i+=4)t[r+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){t=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<t;i+=4){var s=o(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>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<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[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<t;r++)n[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(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=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),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,c=e.min(4*u,o);if(u){for(var l=0;l<u;l+=i)this._doProcessBlock(r,l);var f=r.splice(0,u);n.sigBytes-=c}return new a.init(f,c)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),p=(o.Hasher=f.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math),n)})),A=(P((function(e,t){var n;e.exports=(n=E,function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],u=e[t+1],h=e[t+2],d=e[t+3],v=e[t+4],g=e[t+5],y=e[t+6],m=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],k=e[t+11],S=e[t+12],O=e[t+13],x=e[t+14],T=e[t+15],P=i[0],E=i[1],A=i[2],j=i[3];P=c(P,E,A,j,a,7,s[0]),j=c(j,P,E,A,u,12,s[1]),A=c(A,j,P,E,h,17,s[2]),E=c(E,A,j,P,d,22,s[3]),P=c(P,E,A,j,v,7,s[4]),j=c(j,P,E,A,g,12,s[5]),A=c(A,j,P,E,y,17,s[6]),E=c(E,A,j,P,m,22,s[7]),P=c(P,E,A,j,b,7,s[8]),j=c(j,P,E,A,_,12,s[9]),A=c(A,j,P,E,w,17,s[10]),E=c(E,A,j,P,k,22,s[11]),P=c(P,E,A,j,S,7,s[12]),j=c(j,P,E,A,O,12,s[13]),A=c(A,j,P,E,x,17,s[14]),P=l(P,E=c(E,A,j,P,T,22,s[15]),A,j,u,5,s[16]),j=l(j,P,E,A,y,9,s[17]),A=l(A,j,P,E,k,14,s[18]),E=l(E,A,j,P,a,20,s[19]),P=l(P,E,A,j,g,5,s[20]),j=l(j,P,E,A,w,9,s[21]),A=l(A,j,P,E,T,14,s[22]),E=l(E,A,j,P,v,20,s[23]),P=l(P,E,A,j,_,5,s[24]),j=l(j,P,E,A,x,9,s[25]),A=l(A,j,P,E,d,14,s[26]),E=l(E,A,j,P,b,20,s[27]),P=l(P,E,A,j,O,5,s[28]),j=l(j,P,E,A,h,9,s[29]),A=l(A,j,P,E,m,14,s[30]),P=f(P,E=l(E,A,j,P,S,20,s[31]),A,j,g,4,s[32]),j=f(j,P,E,A,b,11,s[33]),A=f(A,j,P,E,k,16,s[34]),E=f(E,A,j,P,x,23,s[35]),P=f(P,E,A,j,u,4,s[36]),j=f(j,P,E,A,v,11,s[37]),A=f(A,j,P,E,m,16,s[38]),E=f(E,A,j,P,w,23,s[39]),P=f(P,E,A,j,O,4,s[40]),j=f(j,P,E,A,a,11,s[41]),A=f(A,j,P,E,d,16,s[42]),E=f(E,A,j,P,y,23,s[43]),P=f(P,E,A,j,_,4,s[44]),j=f(j,P,E,A,S,11,s[45]),A=f(A,j,P,E,T,16,s[46]),P=p(P,E=f(E,A,j,P,h,23,s[47]),A,j,a,6,s[48]),j=p(j,P,E,A,m,10,s[49]),A=p(A,j,P,E,x,15,s[50]),E=p(E,A,j,P,g,21,s[51]),P=p(P,E,A,j,S,6,s[52]),j=p(j,P,E,A,d,10,s[53]),A=p(A,j,P,E,w,15,s[54]),E=p(E,A,j,P,u,21,s[55]),P=p(P,E,A,j,b,6,s[56]),j=p(j,P,E,A,T,10,s[57]),A=p(A,j,P,E,y,15,s[58]),E=p(E,A,j,P,O,21,s[59]),P=p(P,E,A,j,v,6,s[60]),j=p(j,P,E,A,k,10,s[61]),A=p(A,j,P,E,h,15,s[62]),E=p(E,A,j,P,_,21,s[63]),i[0]=i[0]+P|0,i[1]=i[1]+E|0,i[2]=i[2]+A|0,i[3]=i[3]+j|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,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=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 c(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t}function l(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t}function f(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t}function p(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(u),t.HmacMD5=i._createHmacHelper(u)}(Math),n.MD5)})),P((function(e,t){var n,r,o;e.exports=(r=(n=E).lib.Base,o=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,u=a.words,c=0;c<n;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),P((function(e,t){e.exports=E.HmacMD5})));function j(e){return function(t){if(!((t=t||{}).success||t.fail||t.complete))return e.call(this,t);e.call(this,t).then((function(e){t.success&&t.success(e),t.complete&&t.complete(e)}),(function(e){t.fail&&t.fail(e),t.complete&&t.complete(e)}))}}var D,C,N,I=function(e){v(n,e);var t=g(n);function n(e){var r;return d(this,n),r=t.call(this,e.message),r.errMsg=e.message||"",Object.defineProperties(m(r),{code:{get:function(){return e.code}},requestId:{get:function(){return e.requestId}},message:{get:function(){return this.errMsg},set:function(e){this.errMsg=e}}}),r}return n}(b(Error));try{D=n("0d12").default||n("0d12")}catch(x){D={appid:""}}function U(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t="";t.length<e;)t+=Math.random().toString(32).substring(2);return t.substring(0,e)}function q(){return{PLATFORM:"mp-weixin",OS:N,APPID:D.appid,CLIENT_SDK_VERSION:"1.0.0"}}function $(){if("n"===R()){try{C=plus.runtime.getDCloudId()}catch(x){C=""}return C}return C||(C=U(32),r.setStorage({key:"__DC_CLOUD_UUID",data:C})),C}function R(){var e;return(e={"app-plus":"n",h5:"h5","mp-weixin":"wx"},h(e,["y","a","p","mp-ali"].reverse().join(""),"ali"),h(e,"mp-baidu","bd"),h(e,"mp-toutiao","tt"),h(e,"mp-qq","qq"),h(e,"quickapp-native","qn"),e)["mp-weixin"]}function L(){return{ak:D.appid,p:"android"===N?"a":"i",ut:R(),uuid:$()}}var M,F,B={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),A(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)return r(new I({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var o=e.data;if(o.error)return r(new I({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))}},H={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()}},V=function(){function e(t){d(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("缺少参数"+e)})),this.config=Object.assign({},{endpoint:"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=H}return p(e,[{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return B.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return this.hasAccessToken?t?this.requestWrapped(e):this.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)}))})):this.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"]=B.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"]=B.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){var e=this;return this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(t){return new Promise((function(n,r){t.result&&t.result.accessToken?(e.setAccessToken(t.result.accessToken),n(e.accessToken)):r(new I({code:"AUTH_FAILED",message:"获取accessToken失败"}))}))}))}},{key:"authorize",value:function(){this.getAccessToken()}},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}},{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,u){var c=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):u(new I({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(e)}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.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(e){var t=this,n=e.filePath,r=e.cloudPath,o=e.fileType,i=void 0===o?"image":o,a=e.onUploadProgress,s=e.config;if(!r)throw new I({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});var u,c,l=s&&s.envType||this.config.envType;return this.getOSSUploadOptionsFromPath({env:l,filename:r}).then((function(e){var r=e.result;u=r.id,c="https://"+r.cdnDomain+"/"+r.ossPath;var o={url:"https://"+r.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:r.accessKeyId,Signature:r.signature,host:r.host,id:u,key:r.ossPath,policy:r.policy,success_action_status:200},fileName:"file",name:"file",filePath:n,fileType:i};return t.uploadFileToOSS(Object.assign({},o,{onUploadProgress:a}))})).then((function(){return t.reportOSSUpload({id:u})})).then((function(e){return new Promise((function(t,r){e.success?t({success:!0,filePath:n,fileID:c}):r(new I({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({id:t[0]})};return this.request(this.setupRequest(n))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,n){Array.isArray(t)&&0!==t.length||n(new I({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"hasAccessToken",get:function(){return!!this.accessToken}}]),e}(),K={init:function(e){var t=new V(e);["deleteFile","getTempFileURL"].forEach((function(e){t[e]=j(t[e]).bind(t)}));var n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},z=P((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getQuery=function(e,t){if("undefined"==typeof window)return!1;var n=t||window.location.search,r=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),o=n.substr(n.indexOf("?")+1).match(r);return null!=o?o[2]:""},t.getHash=function(e){var t=window.location.hash.match(new RegExp("[#?&/]"+e+"=([^&#]*)"));return t?t[1]:""},t.removeParam=function(e,t){var n=t.split("?")[0],r=[],o=-1!==t.indexOf("?")?t.split("?")[1]:"";if(""!==o){for(var i=(r=o.split("&")).length-1;i>=0;i-=1)r[i].split("=")[0]===e&&r.splice(i,1);n=n+"?"+r.join("&")}return n},t.createPromiseCallback=function(){var e;if(!Promise){(e=function(){}).promise={};var t=function(){throw new Error('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},t.getWeixinCode=function(){return t.getQuery("code")||t.getHash("code")},t.getMiniAppCode=function(){return new Promise((function(e,t){wx.login({success:function(t){e(t.code)},fail:function(e){t(e)}})}))},t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isString=function(e){return"string"==typeof e},t.isUndefined=function(e){return void 0===e},t.isInstanceOf=function(e,t){return e instanceof t},t.isFormData=function(e){return"[object FormData]"===Object.prototype.toString.call(e)},t.genSeqId=function(){return Math.random().toString(16).slice(2)},t.getArgNames=function(e){var t=e.toString();return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(/([^\s,]+)/g)},t.formatUrl=function(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}})),G="dist/index.js",Y="./dist/index.d.ts",W={build:"npm run tsc && webpack",tsc:"tsc -p tsconfig.json","tsc:w":"tsc -p tsconfig.json -w",test:"jest --verbose false -i",e2e:'NODE_ENV=e2e webpack && jest --config="./jest.e2e.config.js" --verbose false -i "e2e"',start:"webpack-dev-server --hot --open",eslint:'eslint "./**/*.js" "./**/*.ts"',"eslint-fix":'eslint --fix "./**/*.js" "./**/*.ts"',test_web:"npm run tsc && webpack-dev-server --devtool eval-source-map --progress --colors --hot --inline --content-base ./dist --host jimmytest-088bef.tcb.qcloud.la --port 80 --disableHostCheck true --mode development --config webpack.test.js"},J={type:"git",url:"https://github.com/TencentCloudBase/tcb-js-sdk"},X=["tcb","js-sdk"],Q={"@cloudbase/adapter-interface":"^0.2.0","@cloudbase/adapter-wx_mp":"^0.2.1","@cloudbase/database":"^0.9.8"},Z={"@babel/core":"^7.6.2","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/plugin-transform-runtime":"^7.6.2","@babel/preset-env":"^7.6.2","@babel/preset-typescript":"^7.6.0","@babel/runtime":"^7.6.2","@types/jest":"^23.1.4","@types/node":"^10.14.4","@types/superagent":"^4.1.4",axios:"^0.19.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.6","babel-polyfill":"^6.26.0",eslint:"^5.16.0","eslint-config-alloy":"^1.4.2","eslint-config-prettier":"^4.1.0","eslint-plugin-prettier":"^3.0.1","eslint-plugin-typescript":"^1.0.0-rc.3",express:"^4.17.1",husky:"^3.1.0",jest:"^24.7.1","jest-puppeteer":"^4.3.0","lint-staged":"^9.5.0","power-assert":"^1.6.1",puppeteer:"^1.20.0","serve-static":"^1.14.1","ts-jest":"^23.10.4","ts-loader":"^6.2.1",typescript:"^3.4.3","typescript-eslint-parser":"^22.0.0",webpack:"^4.41.3","webpack-bundle-analyzer":"^3.4.1","webpack-cli":"^3.3.0","webpack-dev-server":"^3.3.1","webpack-merge":"^4.2.2","webpack-visualizer-plugin":"^0.1.11"},ee={hooks:{"pre-commit":"lint-staged"}},te={name:"tcb-js-sdk",version:"1.3.5",description:"js sdk for tcb",main:G,types:Y,scripts:W,repository:J,keywords:X,author:"jimmyjzhang",license:"ISC",dependencies:Q,devDependencies:Z,husky:ee,"lint-staged":{"*.{js,ts}":["eslint --fix","git add"]}},ne=(M=Object.freeze({__proto__:null,name:"tcb-js-sdk",version:"1.3.5",description:"js sdk for tcb",main:G,types:Y,scripts:W,repository:J,keywords:X,author:"jimmyjzhang",license:"ISC",dependencies:Q,devDependencies:Z,husky:ee,default:te}))&&M.default||M,re=P((function(e,t){var n=x&&x.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=n(ne);t.SDK_VERISON=r.version,t.ACCESS_TOKEN="access_token",t.ACCESS_TOKEN_Expire="access_token_expire",t.REFRESH_TOKEN="refresh_token",t.ANONYMOUS_UUID="anonymous_uuid",t.LOGIN_TYPE_KEY="login_type",t.protocol="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:",t.BASE_URL="//tcb-api.tencentcloudapi.com/web"}));!function(e){e.local="local",e.none="none",e.session="session"}(F||(F={}));var oe=function(){},ie=function(){},ae=Object.freeze({__proto__:null,get StorageType(){return F},AbstractSDKRequest:oe,AbstractStorage:ie,formatUrl:function(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}}),se=P((function(e,t){var n,r=x&&x.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=x&&x.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=x&&x.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},a=x&&x.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.get=function(e){return this._request(o(o({},e),{method:"get"}))},t.prototype.post=function(e){return this._request(o(o({},e),{method:"post"}))},t.prototype.upload=function(e){var t=e.data,n=e.file,r=e.name,i=new FormData;for(var a in t)i.append(a,t[a]);return i.append("key",r),i.append("file",n),this._request(o(o({},e),{data:i,method:"post"}))},t.prototype.download=function(e){return i(this,void 0,void 0,(function(){var t,n;return a(this,(function(r){return t=decodeURIComponent(new URL(e.url).pathname.split("/").pop()||""),(n=document.createElement("a")).href=e.url,n.setAttribute("download",t),n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),[2,new Promise((function(t){t({statusCode:200,tempFilePath:e.url})}))]}))}))},t.prototype._request=function(e){var t=String(e.method).toLowerCase()||"get";return new Promise((function(n){var r=e.url,o=e.headers,i=void 0===o?{}:o,a=e.data,s=e.responseType,u=z.formatUrl(re.protocol,r,"get"===t?a:{}),c=new XMLHttpRequest;for(var l in c.open(t,u),s&&(c.responseType=s),i)c.setRequestHeader(l,i[l]);c.onreadystatechange=function(){if(4===c.readyState){var e={statusCode:c.status};try{e.data=JSON.parse(c.responseText)}catch(e){}n(e)}},c.send("post"===t&&z.isFormData(a)?a:JSON.stringify(a||{}))}))},t}(ae.AbstractSDKRequest);t.WebRequest=s,t.genAdapter=function(){return{root:window,reqClass:s,wsClass:WebSocket,localStorage:localStorage,sessionStorage:sessionStorage}}})),ue=P((function(e,t){var n=x&&x.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(se);!function(e){e.WEB="web",e.WX_MP="wx_mp"}(r=t.RUNTIME||(t.RUNTIME={})),t.useAdapters=function(e){for(var t=0,n=z.isArray(e)?e:[e];t<n.length;t++){var r=n[t],o=r.isMatch,i=r.genAdapter,a=r.runtime;if(o())return{adapter:i(),runtime:a}}},t.useDefaultAdapter=function(){return{adapter:o.genAdapter(),runtime:r.WEB}},t.Adapter={adapter:null,runtime:void 0}})),ce=P((function(e,t){var n,r=x&&x.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){switch(ue.Adapter.adapter.primaryStorage||e){case"local":this.storageClass=ue.Adapter.adapter.localStorage||new i;break;case"none":this.storageClass=new i;break;default:this.storageClass=ue.Adapter.adapter.sessionStorage||new i}}return e.prototype.setStore=function(e,t,n){try{if(!this.storageClass)return}catch(e){return}var r,o={};o.version=n||"localCachev1",o.content=t,r=JSON.stringify(o);try{this.storageClass.setItem(e,r)}catch(e){return}},e.prototype.getStore=function(e,t){try{if(!this.storageClass)return}catch(e){return""}t=t||"localCachev1";var n=this.storageClass.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""},e.prototype.removeStore=function(e){this.storageClass.removeItem(e)},e}();t.Cache=o;var i=function(e){function t(){var t=e.call(this)||this;return ue.Adapter.adapter.root.tcbObject||(ue.Adapter.adapter.root.tcbObject={}),t}return r(t,e),t.prototype.setItem=function(e,t){ue.Adapter.adapter.root.tcbObject[e]=t},t.prototype.getItem=function(e){return ue.Adapter.adapter.root.tcbObject[e]},t.prototype.removeItem=function(e){delete ue.Adapter.adapter.root.tcbObject[e]},t.prototype.clear=function(){delete ue.Adapter.adapter.root.tcbObject},t}(ae.AbstractStorage)})),le=P((function(e,t){var n,r=x&&x.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=x&&x.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){this.data=t||null,this.name=e};t.IEvent=i;var a=function(e){function t(t,n){var r=e.call(this,"error",{error:t,data:n})||this;return r.error=t,r}return r(t,e),t}(i);t.IErrorEvent=a;var s=function(){function e(){this._listeners={}}return e.prototype.on=function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this},e.prototype.off=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},e.prototype.fire=function(e,t){if(z.isInstanceOf(e,a))return console.error(e.error),this;var n=z.isString(e)?new i(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;for(var s=0,u=this._listeners[r]?o(this._listeners[r]):[];s<u.length;s++)u[s].call(this,n)}return this},e.prototype._listens=function(e){return this._listeners[e]&&this._listeners[e].length>0},e}();t.IEventEmitter=s;var u=new s;t.addEventListener=function(e,t){u.on(e,t)},t.activateEvent=function(e,t){void 0===t&&(t={}),u.fire(e,t)},t.removeEventListener=function(e,t){u.off(e,t)},t.EVENTS={LOGIN_STATE_CHANGED:"loginStateChanged",LOGIN_STATE_EXPIRE:"loginStateExpire",LOGIN_TYPE_CHANGE:"loginTypeChanged",ANONYMOUS_CONVERTED:"anonymousConverted",REFRESH_ACCESS_TOKEN:"refreshAccessToken"}})),fe=P((function(e,t){var n=x&&x.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},r=x&&x.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=x&&x.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously"],a={"X-SDK-Version":re.SDK_VERISON};function s(e,t,r){var o=e[t];e[t]=function(t){var i={},a={};r.forEach((function(n){var r=n.call(e,t),o=r.data,s=r.headers;Object.assign(i,o),Object.assign(a,s)}));var s=t.data;return s&&function(){if(z.isFormData(s))for(var e in i)s.append(e,i[e]);else t.data=n(n({},s),i)}(),t.headers=n(n({},t.headers||{}),a),o.call(e,t)}}function u(){var e=z.genSeqId();return{data:{seqId:e},headers:n(n({},a),{"x-seqid":e})}}var c=function(){function e(e){void 0===e&&(e={}),this.config=e,this.cache=new ce.Cache(e.persistence),this.accessTokenKey=re.ACCESS_TOKEN+"_"+e.env,this.accessTokenExpireKey=re.ACCESS_TOKEN_Expire+"_"+e.env,this.refreshTokenKey=re.REFRESH_TOKEN+"_"+e.env,this.anonymousUuidKey=re.ANONYMOUS_UUID+"_"+e.env,this.loginTypeKey=re.LOGIN_TYPE_KEY+"_"+e.env,this._reqClass=new ue.Adapter.adapter.reqClass,s(this._reqClass,"post",[u]),s(this._reqClass,"upload",[u]),s(this._reqClass,"download",[u])}return e.prototype.post=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this._reqClass.post(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.upload=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this._reqClass.upload(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.download=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this._reqClass.download(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.refreshAccessToken=function(){return r(this,void 0,void 0,(function(){var e,t,n;return o(this,(function(r){switch(r.label){case 0:this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._refreshAccessTokenPromise];case 2:return e=r.sent(),[3,4];case 3:return n=r.sent(),t=n,[3,4];case 4:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return[2,e]}}))}))},e.prototype._refreshAccessToken=function(){return r(this,void 0,void 0,(function(){var e,t,n,r;return o(this,(function(o){switch(o.label){case 0:if(this.cache.removeStore(this.accessTokenKey),this.cache.removeStore(this.accessTokenExpireKey),!(e=this.cache.getStore(this.refreshTokenKey)))throw new Error("[tcb-js-sdk] 未登录CloudBase");return t={refresh_token:e},this.cache.getStore(this.loginTypeKey)===pe.LOGINTYPE.ANONYMOUS&&(t.anonymous_uuid=this.cache.getStore(this.anonymousUuidKey)),[4,this.request("auth.getJwt",t)];case 1:if((n=o.sent()).data.code)throw"SIGN_PARAM_INVALID"!==(r=n.data.code)&&"REFRESH_TOKEN_EXPIRED"!==r&&"INVALID_REFRESH_TOKEN"!==r||(le.activateEvent(le.EVENTS.LOGIN_STATE_EXPIRE),this.cache.removeStore(this.refreshTokenKey)),new Error("[tcb-js-sdk] 刷新access token失败:"+n.data.code);return n.data.access_token?(le.activateEvent(le.EVENTS.REFRESH_ACCESS_TOKEN),this.cache.setStore(this.accessTokenKey,n.data.access_token),this.cache.setStore(this.accessTokenExpireKey,n.data.access_token_expire+Date.now()),le.activateEvent(le.EVENTS.LOGIN_TYPE_CHANGE,n.data.login_type),[2,{accessToken:n.data.access_token,accessTokenExpire:n.data.access_token_expire}]):(n.data.refresh_token&&(this.cache.removeStore(this.refreshTokenKey),this.cache.setStore(this.refreshTokenKey,n.data.refresh_token),this._refreshAccessToken()),[2])}}))}))},e.prototype.getAccessToken=function(){return r(this,void 0,void 0,(function(){var e,t,n,r;return o(this,(function(o){switch(o.label){case 0:return e=this.cache.getStore(this.accessTokenKey),t=this.cache.getStore(this.accessTokenExpireKey),n=!0,(r=this._shouldRefreshAccessTokenHook)?[4,this._shouldRefreshAccessTokenHook(e,t)]:[3,2];case 1:r=!o.sent(),o.label=2;case 2:return r&&(n=!1),(!e||!t||t<Date.now())&&n?[2,this.refreshAccessToken()]:[2,{accessToken:e,accessTokenExpire:t}]}}))}))},e.prototype.request=function(e,t,a){return r(this,void 0,void 0,(function(){var r,s,u,c,l,f,p,h,d,v,g,y;return o(this,(function(o){switch(o.label){case 0:return r="application/x-www-form-urlencoded",s=n({action:e,env:this.config.env,dataVersion:"2019-08-16"},t),-1!==i.indexOf(e)?[3,2]:(u=s,[4,this.getAccessToken()]);case 1:u.access_token=o.sent().accessToken,o.label=2;case 2:if("storage.uploadFile"===e){for(l in c=new FormData)c.hasOwnProperty(l)&&void 0!==c[l]&&c.append(l,s[l]);r="multipart/form-data"}else r="application/json;charset=UTF-8",c=s;return f={headers:{"content-type":r}},a&&a.onUploadProgress&&(f.onUploadProgress=a.onUploadProgress),p=t.parse,h=t.query,d=t.search,v={env:this.config.env},p&&(v.parse=!0),h&&(v=n(n({},h),v)),g=z.formatUrl(re.protocol,re.BASE_URL,v),d&&(g+=d),[4,this.post(n({url:g,data:c},f))];case 3:if(y=o.sent(),200!==Number(y.status)&&200!==Number(y.statusCode)||!y.data)throw new Error("network request error");return[2,y]}}))}))},e.prototype.send=function(e,t){return void 0===t&&(t={}),r(this,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return[4,this.request(e,t,{onUploadProgress:t.onUploadProgress})];case 1:return n=o.sent(),clearTimeout(void 0),"ACCESS_TOKEN_EXPIRED"!==n.data.code||-1!==i.indexOf(e)?[3,4]:[4,this.refreshAccessToken()];case 2:return o.sent(),[4,this.request(e,t,{onUploadProgress:t.onUploadProgress})];case 3:if((r=o.sent()).data.code)throw new Error("["+r.data.code+"] "+r.data.message);return[2,r.data];case 4:if(n.data.code)throw new Error("["+n.data.code+"] "+n.data.message);return[2,n.data]}}))}))},e}();t.Request=c})),pe=P((function(e,t){var n,r=x&&x.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=x&&x.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.CUSTOM="CUSTOM",e.NULL="NULL"}(n=t.LOGINTYPE||(t.LOGINTYPE={}));var i=function(){function e(e){this._loginType=n.NULL,this.config=e,this.onLoginTypeChanged=this.onLoginTypeChanged.bind(this),le.addEventListener(le.EVENTS.LOGIN_TYPE_CHANGE,this.onLoginTypeChanged)}return e.prototype.init=function(){this.httpRequest=new fe.Request(this.config),this.cache=new ce.Cache(this.config.persistence),this.accessTokenKey=re.ACCESS_TOKEN+"_"+this.config.env,this.accessTokenExpireKey=re.ACCESS_TOKEN_Expire+"_"+this.config.env,this.refreshTokenKey=re.REFRESH_TOKEN+"_"+this.config.env,this.loginTypeKey=re.LOGIN_TYPE_KEY+"_"+this.config.env},e.prototype.onLoginTypeChanged=function(e){this._loginType=e.data,this.cache.setStore(this.loginTypeKey,this._loginType)},Object.defineProperty(e.prototype,"loginType",{get:function(){return this._loginType},enumerable:!0,configurable:!0}),e.prototype.setRefreshToken=function(e){this.cache.removeStore(this.accessTokenKey),this.cache.removeStore(this.accessTokenExpireKey),this.cache.setStore(this.refreshTokenKey,e)},e.prototype.getRefreshTokenByWXCode=function(e,t,n){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){return r=ue.Adapter.runtime===ue.RUNTIME.WX_MP?"1":"0",[2,this.httpRequest.send("auth.getJwt",{appid:e,loginType:t,code:n,hybridMiniapp:r}).then((function(e){if(e.code)throw new Error("[tcb-js-sdk] 微信登录失败: "+e.code);if(e.refresh_token)return{refreshToken:e.refresh_token,accessToken:e.access_token,accessTokenExpire:e.access_token_expire};throw new Error("[tcb-js-sdk] getJwt未返回refreshToken")}))]}))}))},e}();t.default=i})),he=P((function(e,t){var n,r=x&&x.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=x&&x.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=x&&x.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=x&&x.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,u,c=a(z),l=a(pe);!function(e){e.snsapi_base="snsapi_base",e.snsapi_userinfo="snsapi_userinfo",e.snsapi_login="snsapi_login"}(s||(s={})),function(e){e.redirect="redirect",e.prompt="prompt"}(u||(u={}));var f={},p=function(e){function t(t,n,r,o,i){var a=e.call(this,t)||this;return a.config=t,a.appid=n,a.scope=ue.Adapter.runtime===ue.RUNTIME.WX_MP?"snsapi_base":r,a.state=i||"weixin",a.loginMode=o||"redirect",a}return r(t,e),t.prototype.signIn=function(){return o(this,void 0,void 0,(function(){var e,t,n;return i(this,(function(r){switch(r.label){case 0:f[this.config.env]||(f[this.config.env]=this._signIn()),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,f[this.config.env]];case 2:return e=r.sent(),[3,4];case 3:return n=r.sent(),t=n,[3,4];case 4:if(f[this.config.env]=null,t)throw t;return[2,e]}}))}))},t.prototype._signIn=function(){return o(this,void 0,void 0,(function(){var e,t,n,r,o,a;return i(this,(function(i){switch(i.label){case 0:if(e=this.cache.getStore(this.accessTokenKey),t=this.cache.getStore(this.accessTokenExpireKey),e){if(t&&t>Date.now())return[2,{credential:{accessToken:e,refreshToken:this.cache.getStore(this.refreshTokenKey)}}];this.cache.removeStore(this.accessTokenKey),this.cache.removeStore(this.accessTokenExpireKey)}if(!1===Object.values(s).includes(s[this.scope]))throw new Error("错误的scope类型");return ue.Adapter.runtime!==ue.RUNTIME.WX_MP?[3,2]:[4,c.getMiniAppCode()];case 1:return n=i.sent(),[3,4];case 2:return[4,c.getWeixinCode()];case 3:if(!(n=i.sent()))return[2,this.redirect()];i.label=4;case 4:return r=function(e){switch(e){case s.snsapi_login:return"WECHAT-OPEN";default:return"WECHAT-PUBLIC"}}(this.scope),[4,this.getRefreshTokenByWXCode(this.appid,r,n)];case 5:return o=i.sent(),a=o.refreshToken,this.cache.setStore(this.refreshTokenKey,a),o.accessToken&&this.cache.setStore(this.accessTokenKey,o.accessToken),o.accessTokenExpire&&this.cache.setStore(this.accessTokenExpireKey,o.accessTokenExpire+Date.now()),le.activateEvent(le.EVENTS.LOGIN_STATE_CHANGED),le.activateEvent(le.EVENTS.LOGIN_TYPE_CHANGE,l.LOGINTYPE.WECHAT),[2,{credential:{refreshToken:a}}]}}))}))},t.prototype.redirect=function(){var e=c.removeParam("code",location.href);e=c.removeParam("state",e),e=encodeURIComponent(e);var t="//open.weixin.qq.com/connect/oauth2/authorize";"snsapi_login"===this.scope&&(t="//open.weixin.qq.com/connect/qrconnect"),"redirect"===u[this.loginMode]&&(location.href=t+"?appid="+this.appid+"&redirect_uri="+e+"&response_type=code&scope="+this.scope+"&state="+this.state+"#wechat_redirect")},t}(l.default);t.default=p})),de=P((function(e,t){var n,r=x&&x.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=x&&x.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=x&&x.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},a=x&&x.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=x&&x.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var u=s(pe),c=function(e){function t(t){var n=e.call(this,o(o({},t),{persistence:"local"}))||this;return n._anonymousUuidKey=re.ANONYMOUS_UUID+"_"+n.config.env,n._loginTypeKey=re.LOGIN_TYPE_KEY+"_"+n.config.env,n}return r(t,e),t.prototype.init=function(){e.prototype.init.call(this)},t.prototype.signIn=function(){return i(this,void 0,void 0,(function(){var e,t,n;return a(this,(function(r){switch(r.label){case 0:return e=this.cache.getStore(this._anonymousUuidKey)||void 0,t=this.cache.getStore(this.refreshTokenKey)||void 0,[4,this.httpRequest.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t})];case 1:return(n=r.sent()).uuid&&n.refresh_token?(this._setAnonymousUUID(n.uuid),this.setRefreshToken(n.refresh_token),[4,this.httpRequest.refreshAccessToken()]):[3,3];case 2:return r.sent(),le.activateEvent(le.EVENTS.LOGIN_STATE_CHANGED),le.activateEvent(le.EVENTS.LOGIN_TYPE_CHANGE,u.LOGINTYPE.ANONYMOUS),[2,{credential:{refreshToken:n.refresh_token}}];case 3:throw new Error("[tcb-js-sdk] 匿名登录失败")}}))}))},t.prototype.linkAndRetrieveDataWithTicket=function(e){return i(this,void 0,void 0,(function(){var t,n,r;return a(this,(function(o){switch(o.label){case 0:return t=this.cache.getStore(this._anonymousUuidKey),n=this.cache.getStore(this.refreshTokenKey),[4,this.httpRequest.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:t,refresh_token:n,ticket:e})];case 1:return(r=o.sent()).refresh_token?(this._clearAnonymousUUID(),this.setRefreshToken(r.refresh_token),[4,this.httpRequest.refreshAccessToken()]):[3,3];case 2:return o.sent(),le.activateEvent(le.EVENTS.ANONYMOUS_CONVERTED,{refresh_token:r.refresh_token}),le.activateEvent(le.EVENTS.LOGIN_TYPE_CHANGE,u.LOGINTYPE.CUSTOM),[2,{credential:{refreshToken:r.refresh_token}}];case 3:throw new Error("[tcb-js-sdk] 匿名转化失败")}}))}))},t.prototype.getAllStore=function(){var e={};return e[this.refreshTokenKey]=this.cache.getStore(this.refreshTokenKey)||"",e[this._loginTypeKey]=this.cache.getStore(this._loginTypeKey)||"",e[this.accessTokenKey]=this.cache.getStore(this.accessTokenKey)||"",e[this.accessTokenExpireKey]=this.cache.getStore(this.accessTokenExpireKey)||"",e},t.prototype._setAnonymousUUID=function(e){this.cache.removeStore(this._anonymousUuidKey),this.cache.setStore(this._anonymousUuidKey,e),this.cache.setStore(this._loginTypeKey,u.LOGINTYPE.ANONYMOUS)},t.prototype._clearAnonymousUUID=function(){this.cache.removeStore(this._anonymousUuidKey)},t}(u.default);t.AnonymousAuthProvider=c})),ve=P((function(e,t){var n,r=x&&x.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=x&&x.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=x&&x.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},a=x&&x.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=x&&x.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u=x&&x.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var c=s(he),l=u(pe),f=function(e){function t(t){var n=e.call(this,t)||this;return n.config=t,n}return r(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.customAuthProvider=new l.default(this.config),this.customAuthProvider.init()},t.prototype.weixinAuthProvider=function(e){var t=e.appid,n=e.scope,r=e.loginMode,o=e.state,i=new c.default(this.config,t,n,r,o);return i.init(),i},t.prototype.signInAnonymously=function(){return i(this,void 0,void 0,(function(){var e=this;return a(this,(function(t){switch(t.label){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new de.AnonymousAuthProvider(this.config),this._anonymousAuthProvider.init()),le.addEventListener(le.EVENTS.LOGIN_TYPE_CHANGE,(function(t){if(t&&t.data===l.LOGINTYPE.ANONYMOUS){var n=e._anonymousAuthProvider.getAllStore();for(var r in n)n[r]&&e.httpRequest.cache.setStore(r,n[r])}})),[4,this._anonymousAuthProvider.signIn()];case 1:return[2,t.sent()]}}))}))},t.prototype.linkAndRetrieveDataWithTicket=function(e){return i(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new de.AnonymousAuthProvider(this.config),this._anonymousAuthProvider.init()),le.addEventListener(le.EVENTS.ANONYMOUS_CONVERTED,(function(e){var n=e.data.refresh_token;n&&t.httpRequest.cache.setStore(t.refreshTokenKey,n)})),[4,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)];case 1:return[2,n.sent()]}}))}))},t.prototype.signOut=function(){return i(this,void 0,void 0,(function(){var e,t,n,r,o,i,s;return a(this,(function(a){switch(a.label){case 0:if(this.loginType===l.LOGINTYPE.ANONYMOUS)throw new Error("[tcb-js-sdk] 匿名用户不支持登出操作");return e=this.httpRequest,t=e.cache,n=e.refreshTokenKey,r=e.accessTokenKey,o=e.accessTokenExpireKey,(i=t.getStore(n))?[4,this.httpRequest.send("auth.logout",{refresh_token:i})]:[2];case 1:return s=a.sent(),t.removeStore(n),t.removeStore(r),t.removeStore(o),le.activateEvent(le.EVENTS.LOGIN_STATE_CHANGED),le.activateEvent(le.EVENTS.LOGIN_TYPE_CHANGE,l.LOGINTYPE.NULL),[2,s]}}))}))},t.prototype.getAccessToken=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return e={},[4,this.httpRequest.getAccessToken()];case 1:return[2,(e.accessToken=t.sent().accessToken,e.env=this.config.env,e)]}}))}))},t.prototype.onLoginStateExpire=function(e){le.addEventListener("loginStateExpire",e)},t.prototype.getLoginState=function(){return i(this,void 0,void 0,(function(){var e,t,n,r,o;return a(this,(function(i){switch(i.label){case 0:if(e=this.httpRequest,t=e.cache,n=e.refreshTokenKey,r=e.accessTokenKey,!(o=t.getStore(n)))return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.httpRequest.refreshAccessToken()];case 2:return i.sent(),[3,4];case 3:return i.sent(),[2,null];case 4:return[2,{isAnonymous:this.loginType===l.LOGINTYPE.ANONYMOUS,credential:{refreshToken:o,accessToken:t.getStore(r)}}];case 5:return[2,null]}}))}))},t.prototype.signInWithTicket=function(e){return i(this,void 0,void 0,(function(){var t,n,r,o;return a(this,(function(i){switch(i.label){case 0:if("string"!=typeof e)throw new Error("ticket must be a string");return t=this.httpRequest,n=t.cache,r=t.refreshTokenKey,[4,this.httpRequest.send("auth.signInWithTicket",{ticket:e,refresh_token:n.getStore(r)||""})];case 1:return(o=i.sent()).refresh_token?(this.customAuthProvider.setRefreshToken(o.refresh_token),[4,this.httpRequest.refreshAccessToken()]):[3,3];case 2:return i.sent(),le.activateEvent(le.EVENTS.LOGIN_STATE_CHANGED),le.activateEvent(le.EVENTS.LOGIN_TYPE_CHANGE,l.LOGINTYPE.CUSTOM),[2,{credential:{refreshToken:o.refresh_token}}];case 3:throw new Error("[tcb-js-sdk] 自定义登录失败")}}))}))},t.prototype.shouldRefreshAccessToken=function(e){this.httpRequest._shouldRefreshAccessTokenHook=e.bind(this)},t.prototype.getUserInfo=function(){return this.httpRequest.send("auth.getUserInfo",{}).then((function(e){return e.code?e:o(o({},e.data),{requestId:e.seqId})}))},t}(l.default);t.default=f})),ge=P((function(e,t){var n=x&&x.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=x&&x.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.uploadFile=function(e,t){t=t||z.createPromiseCallback();var n=new fe.Request(this.config),r=e.cloudPath,o=e.filePath,i=e.onUploadProgress,a=e.fileType||"image";return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var s=e.data,u=s.url,c=s.authorization,l=s.token,f=s.fileId,p=s.cosFileId,h=e.requestId,d={key:r,signature:c,"x-cos-meta-fileid":p,success_action_status:"201","x-cos-security-token":l};n.upload({url:u,data:d,file:o,name:r,fileType:a,onUploadProgress:i}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:h}):t(new Error("STORAGE_REQUEST_FAIL: "+e.data))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},t.deleteFile=function(e,t){var n=e.fileList;if(t=t||z.createPromiseCallback(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(var r=0,o=n;r<o.length;r++){var i=o[r];if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}var a={fileid_list:n};return new fe.Request(this.config).send("storage.batchDeleteFile",a).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},t.getTempFileURL=function(e,t){var n=e.fileList;t=t||z.createPromiseCallback(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});for(var r=[],o=0,i=n;o<i.length;o++){var a=i[o];"object"==typeof a?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),r.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?r.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}var s={file_list:r};return new fe.Request(this.config).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},t.downloadFile=function(e,o){var i=e.fileID;return n(this,void 0,void 0,(function(){var e,n,a,s,u;return r(this,(function(r){switch(r.label){case 0:return[4,t.getTempFileURL.call(this,{fileList:[{fileID:i,maxAge:600}]})];case 1:return e=r.sent(),"SUCCESS"!==(n=e.fileList[0]).code?[2,o?o(n):new Promise((function(e){e(n)}))]:(a=n.download_url,a=encodeURI(a),s=new fe.Request(this.config),o?[4,s.download({url:a})]:[3,3]);case 2:return u=r.sent(),o(u),[3,4];case 3:return[2,s.download({url:a})];case 4:return[2]}}))}))}})),ye=P((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.callFunction=function(e,t){var n,r=e.name,o=e.data,i=e.query,a=e.parse,s=e.search,u=t||z.createPromiseCallback();try{n=o?JSON.stringify(o):""}catch(e){return Promise.reject(e)}if(!r)return Promise.reject(new Error("函数名不能为空"));var c={query:i,parse:a,search:s,function_name:r,request_data:n};return new fe.Request(this.config).send("functions.invokeFunction",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 Error("response data must be json"))}}return u.promise})).catch((function(e){u(e)})),u.promise}})),me=T(P((function(e){var t=x&&x.__assign||function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},n=x&&x.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r=x&&x.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},o=n(ve),i=r(ge),a=r(ye),s={timeout:15e3},u=new(function(){function e(e){var t=this;this.config=e||this.config,this.authObj=void 0,le.addEventListener(le.EVENTS.LOGIN_TYPE_CHANGE,(function(e){e.data===pe.LOGINTYPE.ANONYMOUS&&(t.config.persistence="local")}))}return e.prototype.init=function(n){return this.config=t(t({},s),n),ue.Adapter.adapter||this._useDefaultAdapter(),new e(this.config)},e.prototype.auth=function(e){var n=(void 0===e?{}:e).persistence;return this.authObj||(this.config=t(t({},this.config),{persistence:n||ue.Adapter.adapter.primaryStorage||"session"}),this.authObj=new o.default(this.config),this.authObj.init()),this.authObj},e.prototype.on=function(e,t){return le.addEventListener.apply(this,[e,t])},e.prototype.off=function(e,t){return le.removeEventListener.apply(this,[e,t])},e.prototype.callFunction=function(e,t){return a.callFunction.apply(this,[e,t])},e.prototype.deleteFile=function(e,t){return i.deleteFile.apply(this,[e,t])},e.prototype.getTempFileURL=function(e,t){return i.getTempFileURL.apply(this,[e,t])},e.prototype.downloadFile=function(e,t){return i.downloadFile.apply(this,[e,t])},e.prototype.uploadFile=function(e,t){return i.uploadFile.apply(this,[e,t])},e.prototype.useAdapters=function(e){var t=ue.useAdapters(e)||{},n=t.adapter,r=t.runtime;n&&(ue.Adapter.adapter=n),r&&(ue.Adapter.runtime=r)},e.prototype._useDefaultAdapter=function(){var e=ue.useDefaultAdapter(),t=e.adapter,n=e.runtime;ue.Adapter.adapter=t,ue.Adapter.runtime=n},e}());try{window.tcb=u}catch(x){}e.exports=u})));function be(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 _e=function(){function e(){d(this,e)}return p(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers;return new Promise((function(e,o){H.request({url:be("https:",t),data:n,method:"POST",header:r,success:function(t){e(t)},fail:function(e){o(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,o=e.file,i=e.data,a=e.headers,s=e.fileType,u=H.uploadFile({url:be("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&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),we={setItem:function(e,t){H.setStorageSync(e,t)},getItem:function(e){return H.getStorageSync(e)},removeItem:function(e){H.removeStorageSync(e)},clear:function(){H.clearStorageSync()}},ke={genAdapter:function(){return{root:{},reqClass:_e,localStorage:we,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};me.useAdapters(ke);var Se,Oe,xe=me,Te=xe.init;function Pe(e){Se||(Se=q(),Oe=L());var t=JSON.parse(JSON.stringify(e.data||{})),n=e.name,o=this.config.spaceId,i={tencent:"t",aliyun:"a"}[this.config.provider],a=Object.assign({},Oe,{fn:n,sid:o,pvd:i});if(Object.assign(t,{clientInfo:Se,uniCloudClientInfo:encodeURIComponent(JSON.stringify(a))}),!t.uniIdToken){var s=H.getStorageSync("uni_id_token")||H.getStorageSync("uniIdToken");s&&(t.uniIdToken=s)}var u=r.getSystemInfoSync(),c=u.deviceId;return t.uniCloudDeviceId=c,e.data=t,e}function Ee(e){var t=e.callFunction;e.callFunction=function(e){var n,r=this;return n=this.isReady?Promise.resolve():this.initUniCloud,n.then((function(){var n=Pe.call(r,e),o={aliyun:"aliyun",tencent:"tcb"}[r.config.provider];return new Promise((function(i,a){t.call(r,n).then((function(t){if(r.config.useDebugFunction&&t&&t.requestId){var n=JSON.stringify({spaceId:r.config.spaceId,functionName:e.name,requestId:t.requestId});console.log("[".concat(o,"-request]").concat(n,"[/").concat(o,"-request]"))}i(t)})).catch((function(t){if(r.config.useDebugFunction&&t&&t.requestId){var n=JSON.stringify({spaceId:r.config.spaceId,functionName:e.name,requestId:t.requestId});console.log("[".concat(o,"-request]").concat(n,"[/").concat(o,"-request]"))}t&&t.message&&(t.message="[".concat(e.name,"]: ").concat(t.message)),a(t)}))}))}))};var n=e.callFunction;e.originCallFunction=e.callFunction,e.callFunction=function(t){return j((function(t){var r,o=this;return r=e.isReady?Promise.resolve():e.initUniCloud,r.then((function(){return n.call(o,t)}))})).call(this,t)}}xe.init=function(e){e.env=e.spaceId;var t=Te.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){t[e]=j(t[e]).bind(t)})),t},t.customAuth=t.auth,["deleteFile","getTempFileURL","downloadFile"].forEach((function(e){t[e]=j(t[e]).bind(t)})),t};var Ae=Symbol("CLIENT_DB_INTERNAL");function je(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Ae,new Proxy(e,{get:function(e,n,r){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,n)||e[n]||"string"!=typeof n?e[n]:t.get(e,n,r)}})}var De=function(e){v(n,e);var t=g(n);function n(e,r){var o;return d(this,n),o=t.call(this,e),o.code=r,o}return n}(b(Error));function Ce(e){switch(t=e,Object.prototype.toString.call(t).slice(8,-1).toLowerCase()){case"array":return e.map((function(e){return Ce(e)}));case"object":return e._internalType===Ae||Object.keys(e).forEach((function(t){e[t]=Ce(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}var t}function Ne(){var e,t,n=H.getStorageSync("uni_id_token")||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[]};try{e=JSON.parse((t=r[1],decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e}var Ie=T(P((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:fail";function o(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 i(e,t,n){var r=n.onChooseFile,o=n.onUploadProgress;return t.then((function(e){if(r){var t=r(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:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg="chooseAndUploadFile:ok";var o=t.tempFiles,i=o.length,a=0;return new Promise((function(s){for(;a<n;)u();function u(){var n=a++;if(n>=i)!o.find((function(e){return!e.url&&!e.errMsg}))&&s(t);else{var c=o[n];e.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:function(e){e.index=n,e.tempFile=c,e.tempFilePath=c.path,r&&r(e)}}).then((function(e){c.url=e.fileID,n<i&&u()})).catch((function(e){c.errMsg=e.errMsg||e.message,n<i&&u()}))}}}))}(e,t,5,o)}))}t.initChooseAndUploadFile=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?i(e,function(e){var t=e.count,i=e.sizeType,a=e.sourceType,s=e.extension;return new Promise((function(e,u){r.chooseImage({count:t,sizeType:i,sourceType:a,extension:s,success:function(t){e(o(t,"image"))},fail:function(e){u({errMsg:e.errMsg.replace("chooseImage:fail",n)})}})}))}(t),t):"video"===t.type?i(e,function(e){var t=e.camera,i=e.compressed,a=e.maxDuration,s=e.sourceType,u=e.extension;return new Promise((function(e,c){r.chooseVideo({camera:t,compressed:i,maxDuration:a,sourceType:s,extension:u,success:function(t){var n=t.tempFilePath,r=t.duration,i=t.size,a=t.height,s=t.width;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:s,height:a,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){c({errMsg:e.errMsg.replace("chooseVideo:fail",n)})}})}))}(t),t):i(e,function(e){var t=e.count,i=e.extension;return new Promise((function(e,a){var s=r.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(s=wx.chooseMessageFile),"function"!=typeof s)return a({errMsg:n+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:t,extension:i,success:function(t){e(o(t))},fail:function(e){a({errMsg:e.errMsg.replace("chooseFile:fail",n)})}})}))}(t),t)}}})));var Ue=new(function(){function e(){d(this,e)}return p(e,[{key:"init",value:function(e){var t={},n=!1!==e.debugFunction&&!1;switch(e.provider){case"tencent":t=xe.init(Object.assign(e,{useDebugFunction:n}));break;case"aliyun":t=K.init(Object.assign(e,{useDebugFunction:n}));break;default:throw new Error("未提供正确的provider参数")}t.isReady=!1;var o=t.auth();return t.initUniCloud=o.getLoginState().then((function(e){return e?Promise.resolve():o.signInAnonymously()})).then((function(){return Promise.resolve()})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.address,r=e.port;if(n)t.localAddress=n,t.localPort=r;else if(t.debugInfo){var o="warn",i=console[o];"remote"===t.debugInfo.initialLaunchType?(t.debugInfo.forceRemote=!0,i("当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试")):i("无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试")}})).then((function(){return new Promise((function(e){setTimeout((function(){N=r.getSystemInfoSync().platform,C=r.getStorageSync("__DC_CLOUD_UUID")||U(32),e()}),0)}))})).then((function(){t.isReady=!0})),Ee(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){var n,r=this;return n=this.isReady?Promise.resolve():this.initUniCloud,n.then((function(){return t.call(r,e)}))};var n=e.uploadFile;e.uploadFile=function(e){return j(n).call(this,e)}}(t),function(e){e.database=function(){if(this._database)return this._database;var t={},n={},r=function(){function r(e,t,n){d(this,r),this.content=e,this.prevStage=t,this.actionName=n}return p(r,[{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:e.$param}}))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",value:function(){return this._send("add",Array.from(arguments))}},{key:"remove",value:function(){return this._send("remove",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",value:function(){throw new Error("客户端禁止使用set方法")}},{key:"_send",value:function(r,o){var i=this.toJSON();return i.$db.push({$method:r,$param:o}),e.callFunction({name:"DCloud-clientDB",data:{action:this.actionName,command:i}}).then((function(e){var r=e.result,o=r.code,i=r.message,a=r.token,s=r.tokenExpired;return o?Promise.reject(new De(i,o)):(a&&s&&t.refreshToken&&t.refreshToken.forEach((function(e){e({token:a,tokenExpired:s})})),a&&s&&n.refreshToken&&n.refreshToken.forEach((function(e){e({token:a,tokenExpired:s})})),Promise.resolve(e))})).catch((function(e){var t=new De(e.message,e.code||"SYSTEM_ERROR");return n.error&&n.error.forEach((function(e){e(t)})),/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),Promise.reject(e)}))}},{key:"useAggregate",get:function(){for(var e=this,t=!1;e.prevStage;){e=e.prevStage;var n=e.content.$method;if("aggregate"===n||"pipeline"===n){t=!0;break}}return t}},{key:"count",get:function(){if(!this.useAggregate)return function(){return this._send("count",Array.from(arguments))};var e=this;return function(){return s({$method:"count",$param:Ce(Array.from(arguments))},e,e.actionName)}}}]),r}(),o=["db.Geo","db.command","command.aggregate"];function a(e,t){return o.indexOf("".concat(e,".").concat(t))>-1}function s(e,t,n){return je(new r(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),a(r,t)?s({$method:t},e,n):function(){return s({$method:t,$param:Ce(Array.from(arguments))},e,n)}}})}function u(e){var t=e.path,n=e.method;return function(){function e(){d(this,e),this.param=Array.from(arguments)}return p(e,[{key:"toJSON",value:function(){return{$newDb:[].concat(i(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}}]),e}()}var c={auth:{on:function(e,n){t[e]=t[e]||[],t[e].indexOf(n)>-1||t[e].push(n)},off:function(e,n){t[e]=t[e]||[];var r=t[e].indexOf(n);-1!==r&&t[e].splice(r,1)}},on:function(e,t){n[e]=n[e]||[],n[e].indexOf(t)>-1||n[e].push(t)},off:function(e,t){n[e]=n[e]||[];var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)},env:je({},{get:function(e,t){return{$env:t}}}),action:function(e){return je({},{get:function(t,n){return a("db",n)?s({$method:n},null,e):function(){return s({$method:n,$param:Ce(Array.from(arguments))},null,e)}}})},Geo:je({},{get:function(e,t){return u({path:["Geo"],method:t})}}),getCloudEnv:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}},get serverDate(){return u({path:[],method:"serverDate"})},get RegExp(){return u({path:[],method:"RegExp"})}},l=je(c,{get:function(e,t){return a("db",t)?s({$method:t}):function(){return s({$method:t,$param:Ce(Array.from(arguments))})}}});return this._database=l,l}}(t),function(e){e.getCurrentUserInfo=Ne,e.chooseAndUploadFile=j(Ie.initChooseAndUploadFile(e))}(t),t.init=this.init,t}}]),e}()),qe={};if(1===[].length)qe=[][0],Ue=Ue.init(qe);else{var $e=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo"],Re=[].length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在cloudfunctions目录右键关联服务空间";$e.forEach((function(e){Ue[e]=function(){return console.error(Re),Promise.reject(new I({code:"SYS_ERR",message:Re}))}}))}Object.assign(Ue,{get mixinDatacom(){return e=Ue,{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},collection:{type:String,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},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}},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){for(var r=!1,o=[],i=2;i<t.length;i++)t[i]!==n[i]&&(o.push(t[i]),r=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(r,o)}))},methods:{onMixinDatacomPropsChange:function(e,t){},mixinDatacomEasyGet:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,o=t.success,i=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",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.length<e.pageSize;var s=r?i.length?i[0]:void 0:i;e.mixinDatacomResData=s,o&&o(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,i&&i(t)})))},mixinDatacomGet:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.database(),r=t.action||this.action;r&&(n=n.action(r));var o=t.collection||this.collection;n=n.collection(o);var i=t.where||this.where;i&&Object.keys(i).length&&(n=n.where(i));var a=t.field||this.field;a&&(n=n.field(a));var s=t.groupby||this.groupby;s&&(n=n.groupBy(s));var u=t.groupField||this.groupField;u&&(n=n.groupField(u)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());var c=t.orderby||this.orderby;c&&(n=n.orderBy(c));var l=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,f=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,h=void 0!==t.gettree?t.gettree:this.gettree,d=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,v={getCount:p},g={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return h&&(v.getTree=g),d&&(v.getTreePath=g),n=n.skip(f*(l-1)).limit(f).get(v),n}}};var e}});var Le=Ue,Me=Le;t.default=Me}).call(this,n("c8ba"),n("543d")["default"])},aa0b:function(e,t,n){(function(t){function n(e){t.navigateTo({url:e})}function r(){t.navigateBack({delta:1})}e.exports={goto:n,back:r,vuemixin:{created:function(){console.log(1)}}}}).call(this,n("543d")["default"])},af5a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("a34a")),o=n("4e5a");function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,u,"next",e)}function u(e){a(i,r,o,s,u,"throw",e)}s(void 0)}))}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}var d=function(){function e(t){f(this,e),this.baseUrl=t.baseUrl||"",this.fileUrl=t.fileUrl||"",this.timeout=t.timeout||6e3,this.defaultUploadUrl=t.defaultUploadUrl||"",this.header=t.header||{},this.config=t.config||{isPrompt:!0,load:!0,isFactory:!0,resend:0}}return h(e,[{key:"post",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]:{};return this.request(c({method:"POST",data:t,url:e},n))}},{key:"get",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]:{};return this.request(c({method:"GET",data:t,url:e},n))}},{key:"put",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]:{};return this.request(c({method:"PUT",data:t,url:e},n))}},{key:"delete",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]:{};return this.request(c({method:"DELETE",data:t,url:e},n))}},{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]:{};return this.request(c({method:"JSONP",data:t,url:e},n))}},{key:"request",value:function(){var e=s(r.default.mark((function e(t){var n,i,a,s,u,l;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=!1,e.prev=1,t.url){e.next=4;break}throw{errMsg:"【request】缺失数据url",statusCode:0};case 4:if(n=(0,o.mergeConfig)(this,t),i=!0,!this.requestStart){e.next=14;break}if(a=this.requestStart(n),"object"!=typeof a){e.next=13;break}s=["data","header","isPrompt","load","isFactory"],s.forEach((function(e){n[e]=a[e]})),e.next=14;break;case 13:throw{errMsg:"【request】请求开始拦截器未通过",statusCode:0,data:n.data,method:n.method,header:n.header,url:n.url};case 14:if(u={},"JSONP"!=n.method){e.next=21;break}return e.next=18,(0,o.jsonpRequest)(n);case 18:u=e.sent,e.next=24;break;case 21:return e.next=23,(0,o.dispatchRequest)(n);case 23:u=e.sent;case 24:if(!n.isFactory||!this.dataFactory){e.next=31;break}return e.next=27,this.dataFactory(c(c({},n),{},{response:u}));case 27:return l=e.sent,e.abrupt("return",Promise.resolve(l));case 31:return e.abrupt("return",Promise.resolve(u));case 32:e.next=38;break;case 34:return e.prev=34,e.t0=e["catch"](1),this.requestError&&this.requestError(e.t0),e.abrupt("return",Promise.reject(e.t0));case 38:return e.prev=38,i&&this.requestEnd&&this.requestEnd(n),e.finish(38);case 41:case"end":return e.stop()}}),e,this,[[1,34,38,41]])})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();t.default=d},b38e:function(e,t,n){"use strict";(function(e){function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function s(e,t,n){return s=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),a=new o;return n&&i(a,n.prototype),a},s.apply(null,arguments)}function u(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function c(e){var t="function"===typeof Map?new Map:void 0;return c=function(e){if(null===e||!u(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)},c(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=/%[sdj%]/g,f=function(){};function p(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,o=t[0],i=t.length;if("function"===typeof o)return o.apply(null,t.slice(1));if("string"===typeof o){var a=String(o).replace(l,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}}));return a}return o}function d(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function v(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!d(t)||"string"!==typeof e||e))}function g(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e),o++,o===i&&n(r)}e.forEach((function(e){t(e,a)}))}function y(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}i([])}function m(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}"undefined"!==typeof e&&Object({VUE_APP_NAME:"大庆小程序",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"});var b=function(e){function t(t,n){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=t,r.fields=n,r}return r(t,e),t}(c(Error));function _(e,t,n,r){if(t.first){var o=new Promise((function(t,o){var i=function(e){return r(e),e.length?o(new b(e,p(e))):t()},a=m(e);y(a,n,i)}));return o["catch"]((function(e){return e})),o}var i=t.firstFields||[];!0===i&&(i=Object.keys(e));var a=Object.keys(e),s=a.length,u=0,c=[],l=new Promise((function(t,o){var l=function(e){if(c.push.apply(c,e),u++,u===s)return r(c),c.length?o(new b(c,p(c))):t()};a.length||(r(c),t()),a.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?y(r,n,l):g(r,n,l)}))}));return l["catch"]((function(e){return e})),l}function w(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"===typeof t?t():t,field:t.field||e.fullField}}}function k(e,t){if(t)for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];"object"===typeof o&&"object"===typeof e[r]?e[r]=n(n({},e[r]),o):e[r]=o}return e}function S(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!v(t,i||e.type)||r.push(h(o.messages.required,e.fullField))}function O(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(h(o.messages.whitespace,e.fullField))}var x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},T={integer:function(e){return T.number(e)&&parseInt(e,10)===e},float:function(e){return T.number(e)&&!T.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!T.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(x.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(x.url)},hex:function(e){return"string"===typeof e&&!!e.match(x.hex)}};function P(e,t,n,r,o){if(e.required&&void 0===t)S(e,t,n,r,o);else{var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;i.indexOf(a)>-1?T[a](t)||r.push(h(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(h(o.messages.types[a],e.fullField,e.type))}}function E(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,l=null,f="number"===typeof t,p="string"===typeof t,d=Array.isArray(t);if(f?l="number":p?l="string":d&&(l="array"),!l)return!1;d&&(c=t.length),p&&(c=t.replace(u,"_").length),i?c!==e.len&&r.push(h(o.messages[l].len,e.fullField,e.len)):a&&!s&&c<e.min?r.push(h(o.messages[l].min,e.fullField,e.min)):s&&!a&&c>e.max?r.push(h(o.messages[l].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&r.push(h(o.messages[l].range,e.fullField,e.min,e.max))}var A="enum";function j(e,t,n,r,o){e[A]=Array.isArray(e[A])?e[A]:[],-1===e[A].indexOf(t)&&r.push(h(o.messages[A],e.fullField,e[A].join(", ")))}function D(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(h(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var i=new RegExp(e.pattern);i.test(t)||r.push(h(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var C={required:S,whitespace:O,type:P,range:E,enum:j,pattern:D};function N(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t,"string")&&!e.required)return n();C.required(e,t,r,i,o,"string"),v(t,"string")||(C.type(e,t,r,i,o),C.range(e,t,r,i,o),C.pattern(e,t,r,i,o),!0===e.whitespace&&C.whitespace(e,t,r,i,o))}n(i)}function I(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&C.type(e,t,r,i,o)}n(i)}function U(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(""===t&&(t=void 0),v(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&(C.type(e,t,r,i,o),C.range(e,t,r,i,o))}n(i)}function q(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&C.type(e,t,r,i,o)}n(i)}function $(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();C.required(e,t,r,i,o),v(t)||C.type(e,t,r,i,o)}n(i)}function R(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&(C.type(e,t,r,i,o),C.range(e,t,r,i,o))}n(i)}function L(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&(C.type(e,t,r,i,o),C.range(e,t,r,i,o))}n(i)}function M(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if((void 0===t||null===t)&&!e.required)return n();C.required(e,t,r,i,o,"array"),void 0!==t&&null!==t&&(C.type(e,t,r,i,o),C.range(e,t,r,i,o))}n(i)}function F(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&C.type(e,t,r,i,o)}n(i)}var B="enum";function H(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&C[B](e,t,r,i,o)}n(i)}function V(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t,"string")&&!e.required)return n();C.required(e,t,r,i,o),v(t,"string")||C.pattern(e,t,r,i,o)}n(i)}function K(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t,"date")&&!e.required)return n();var s;if(C.required(e,t,r,i,o),!v(t,"date"))s=t instanceof Date?t:new Date(t),C.type(e,s,r,i,o),s&&C.range(e,s.getTime(),r,i,o)}n(i)}function z(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;C.required(e,t,r,i,o,a),n(i)}function G(e,t,n,r,o){var i=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(v(t,i)&&!e.required)return n();C.required(e,t,r,a,o,i),v(t,i)||C.type(e,t,r,a,o)}n(a)}function Y(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(v(t)&&!e.required)return n();C.required(e,t,r,i,o)}n(i)}var W={string:N,method:I,number:U,boolean:q,regexp:$,integer:R,float:L,array:M,object:F,enum:H,pattern:V,date:K,url:G,hex:G,email:G,required:z,any:Y};function J(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var X=J();function Q(e){this.rules=null,this._messages=X,this.define(e)}Q.prototype={messages:function(e){return e&&(this._messages=k(J(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=function(){});var i,a,s=e,u=t,c=r;if("function"===typeof u&&(c=u,u={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(),Promise.resolve();function l(e){var t,n=[],r={};function o(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t<e.length;t++)o(e[t]);n.length?r=p(n):(n=null,r=null),c(n,r)}if(u.messages){var f=this.messages();f===X&&(f=J()),k(f,u.messages),u.messages=f}else u.messages=this.messages();var d={},v=u.keys||Object.keys(this.rules);v.forEach((function(t){i=o.rules[t],a=s[t],i.forEach((function(r){var i=r;"function"===typeof i.transform&&(s===e&&(s=n({},s)),a=s[t]=i.transform(a)),i="function"===typeof i?{validator:i}:n({},i),i.validator=o.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=o.getType(i),i.validator&&(d[t]=d[t]||[],d[t].push({rule:i,value:a,source:s,field:t}))}))}));var g={};return _(d,u,(function(e,t){var r,o=e.rule,i=("object"===o.type||"array"===o.type)&&("object"===typeof o.fields||"object"===typeof o.defaultField);function a(e,t){return n(n({},t),{},{fullField:o.fullField+"."+e})}function s(r){void 0===r&&(r=[]);var s=r;if(Array.isArray(s)||(s=[s]),!u.suppressWarning&&s.length&&Q.warning("async-validator:",s),s.length&&void 0!==o.message&&(s=[].concat(o.message)),s=s.map(w(o)),u.first&&s.length)return g[o.field]=1,t(s);if(i){if(o.required&&!e.value)return void 0!==o.message?s=[].concat(o.message).map(w(o)):u.error&&(s=[u.error(o,h(u.messages.required,o.field))]),t(s);var c={};if(o.defaultField)for(var l in e.value)e.value.hasOwnProperty(l)&&(c[l]=o.defaultField);for(var f in c=n(n({},c),e.rule.fields),c)if(c.hasOwnProperty(f)){var p=Array.isArray(c[f])?c[f]:[c[f]];c[f]=p.map(a.bind(null,f))}var d=new Q(c);d.messages(u.messages),e.rule.options&&(e.rule.options.messages=u.messages,e.rule.options.error=u.error),d.validate(e.value,e.rule.options||u,(function(e){var n=[];s&&s.length&&n.push.apply(n,s),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(s)}i=i&&(o.required||!o.required&&e.value),o.field=e.field,o.asyncValidator?r=o.asyncValidator(o,e.value,s,e.source,u):o.validator&&(r=o.validator(o,e.value,s,e.source,u),!0===r?s():!1===r?s(o.message||o.field+" fails"):r instanceof Array?s(r):r instanceof Error&&s(r.message)),r&&r.then&&r.then((function(){return s()}),(function(e){return s(e)}))}),(function(e){l(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!W.hasOwnProperty(e.type))throw new Error(h("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?W.required:W[this.getType(e)]||!1}},Q.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");W[e]=t},Q.warning=f,Q.messages=X,Q.validators=W;var Z=Q;t.default=Z}).call(this,n("4362"))},b78a:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("a34a")),o=i(n("6439"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,u,"next",e)}function u(e){a(i,r,o,s,u,"throw",e)}s(void 0)}))}}function u(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=c(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=e[Symbol.iterator]()},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 c(e,t){if(e){if("string"===typeof e)return l(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)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f="https://www.huorantech.cn/dqwg",p=new o.default({baseUrl:f,fileUrl:f,defaultUploadUrl:"api/common/v1/upload_image",header:{"content-type":"application/json;charset=UTF-8"},timeout:6e3,config:{isPrompt:!0,load:!0,isFactory:!0}});p.getQnToken=function(e){p.get("api/kemean/aid/qn_upload").then((function(t){e({visitPrefix:t.visitPrefix,token:t.token,folderPath:t.folderPath,region:"SCN"})}))};var h=0;p.requestStart=function(t){if(t.load&&(h<=0&&e.showLoading({title:"加载中",mask:!0}),h+=1),"FILE"==t.method&&t.maxSize){var n,r=t.maxSize,o=u(t.files);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.size>r)return setTimeout((function(){e.showToast({title:"图片过大,请重新上传",icon:"none"})}),500),!1}}catch(a){o.e(a)}finally{o.f()}}return t.header["token"]=e.getStorageSync("token"),t},p.requestEnd=function(t){t.load&&(h-=1,h<=0&&e.hideLoading())};p.dataFactory=function(){var t=s(r.default.mark((function t(n){var o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n.response.statusCode||200!=n.response.statusCode){t.next=20;break}if(o=n.response.data,"string"==typeof o&&(o=JSON.parse(o)),1e4!=o.code){t.next=7;break}return t.abrupt("return",Promise.resolve(o));case 7:if("401"!=o.code&&401!=o.code&&1100!=o.code){t.next=16;break}return e.removeStorageSync("token"),e.removeStorageSync("account"),e.removeStorageSync("headPortaritUrl"),console.log("在判断401,115行处抛出错误"),e.showModal({title:"登录过期",content:"请重新进行登录",confirmText:"去登录",cancelText:"取消",success:function(t){t.confirm&&e.switchTab({url:"/pages/user/user"})}}),t.abrupt("return",Promise.reject({statusCode:0,errMsg:"【request】"+o.message}));case 16:return n.isPrompt&&e.showToast({title:o.message,icon:"none",duration:3e3}),t.abrupt("return",Promise.reject({statusCode:0,errMsg:"【request】"+o.message,data:n.response.data}));case 18:t.next=22;break;case 20:return console.log("154行抛出"),t.abrupt("return",Promise.reject({statusCode:n.response.statusCode,errMsg:"【request】数据工厂验证不通过",data:n.response.data}));case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),p.requestError=function(t){if(0===t.statusCode)throw t;e.showToast({title:"网络错误,请检查一下网络",icon:"none"})};var d=p;t.default=d}).call(this,n("543d")["default"])},bace:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("b38e"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={validate:function(e,t,n,r){var o={showMessage:!0};r=Object.assign({},o,r||{});var i=null;if("function"!==typeof n&&(i=new Promise((function(e,t){n=function(n){n?e(n):t(n)}}))),!t||Array.isArray(t)&&0===t.length||"object"===typeof t&&0===Object.keys(t).length)return n(!0,null),i||void 0;var s=[],u=Object.keys(t),c=0;for(var l in u){var f=u[l],p=a.getValueByProp(e,f);a.validateItem(t,f,p,(function(e){e&&e.length>0&&(s=s.concat(e)),c++,c===u.length&&(s.length>0?(r.showMessage&&a.showToast(s[0].message),n(!1,s)):n(!0,null))}))}return i||void 0},validateField:function(e,t,n,r,o){var i={showMessage:!0};o=Object.assign({},i,o||{});var s=null;if("function"!==typeof r&&(s=new Promise((function(e,t){r=function(n){n?e(n):t(n)}}))),n=[].concat(n),0!==n.length){var u=[],c=0;for(var l in n){var f=n[l],p=a.getValueByProp(e,f);a.validateItem(t,f,p,(function(e){e&&e.length>0&&(u=u.concat(e)),c++,c===n.length&&(u.length>0?(o.showMessage&&a.showToast(u[0].message),r(!1,u)):r(!0,null))}))}return s||void 0}},validateItem:function(e,t,n,o){if(!e||"{}"===JSON.stringify(e))return o instanceof Function&&o(),!0;var a=[].concat(e[t]||[]);a.forEach((function(e){e.pattern&&(e.pattern=new RegExp(e.pattern))}));var s=i({},t,a),u=new r.default(s),c=i({},t,n);u.validate(c,{firstFields:!0},(function(e){o(e)}))},getValueByProp:function(e,t){var n=e;t=t.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"");for(var r=t.split("."),o=0,i=r.length;o<i-1;++o){if(!n)break;var a=r[o];if(!(a in n))break;n=n[a]}return n?"string"===typeof n[r[o]]?n[r[o]].trim():n[r[o]]:null},showToast:function(t){e.showToast({title:t,icon:"none"})}},s=a;t.default=s}).call(this,n("543d")["default"])},bbdd:function(e,t,n){var r=function(){return this||"object"===typeof self&&self}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("96cf"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},c383:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{mescroll:null}},onPullDownRefresh:function(){this.mescroll&&this.mescroll.onPullDownRefresh()},onPageScroll:function(e){this.mescroll&&this.mescroll.onPageScroll(e)},onReachBottom:function(){this.mescroll&&this.mescroll.onReachBottom()},methods:{mescrollInit:function(e){this.mescroll=e,this.mescrollInitByRef()},mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var e=this.$refs.mescrollRef;e&&(this.mescroll=e.mescroll)}},downCallback:function(){var e=this;this.mescroll.optUp.use?this.mescroll.resetUpScroll():setTimeout((function(){e.mescroll.endSuccess()}),500)},upCallback:function(){var e=this;setTimeout((function(){e.mescroll.endErr()}),500)}},mounted:function(){this.mescrollInitByRef()}},o=r;t.default=o},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===i(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u<a;u++)if(o[u]!==i[u]){s=u;break}var c=[];for(u=s;u<o.length;u++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},f0c5:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s,u,c){var l,f="function"===typeof e?e.options:e;if(u){f.components||(f.components={});var p=Object.prototype.hasOwnProperty;for(var h in u)p.call(u,h)&&!p.call(f.components,h)&&(f.components[h]=u[h])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(f.mixins||(f.mixins=[])).push(c)),t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._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)},f._ssrRegister=l):o&&(l=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(f.functional){f._injectStyles=l;var d=f.render;f.render=function(e,t){return l.call(t),d(e,t)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,l):[l]}return{exports:e,options:f}}n.d(t,"a",(function(){return r}))},f1e1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("a34a"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){var t=l();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,s,"next",e)}function s(e){p(i,r,o,a,s,"throw",e)}a(void 0)}))}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}var y={email:/^\S+?@\S+?\.\S+?$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")},m={int:"number",bool:"boolean",double:"number",long:"number",password:"string"};function b(e,t){var 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}function _(e,t){return void 0===e||null===e||("string"===typeof e&&!e||(!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length))}var w={integer:function(e){return w.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 w.number(e)&&!w.integer(e)},array:function(e){return Array.isArray(e)},object:function(e){return"object"===typeof e&&!w.array(e)},date:function(e){var t;return t=e instanceof Date?e:new Date(e),"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear&&!isNaN(t.getTime())},timestamp:function(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)&&this.date(e)},email:function(e){return"string"===typeof e&&!!e.match(y.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(y.url)},pattern:function(e,t){try{return new RegExp(e).test(t)}catch(n){return!1}},method:function(e){return"function"===typeof e}},k=function(){function e(t){d(this,e),this._message=t}return g(e,[{key:"validateRule",value:function(){var e=h(r.default.mark((function e(t,n,o,i){var a,s,u,c,l,f,p,h,d;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=null,s=t.rules,u=s.findIndex((function(e){return e.required})),!(u<0)){e.next=8;break}if(null!==n&&void 0!==n){e.next=6;break}return e.abrupt("return",a);case 6:if("string"!==typeof n||n.length){e.next=8;break}return e.abrupt("return",a);case 8:if(c=this._message,void 0!==s){e.next=11;break}return e.abrupt("return",c["default"]);case 11:l=0;case 12:if(!(l<s.length)){e.next=35;break}if(f=s[l],p=this._getValidateType(f),void 0!==t.label&&Object.assign(f,{label:t.label}),!S[p]){e.next=20;break}if(a=S[p](f,n,c),null==a){e.next=20;break}return e.abrupt("break",35);case 20:if(!f.validateExpr){e.next=26;break}if(h=Date.now(),d=f.validateExpr(n,i,h),!1!==d){e.next=26;break}return a=this._getMessage(f,f.errorMessage||this._message["default"]),e.abrupt("break",35);case 26:if(!f.validateFunction){e.next=32;break}return e.next=29,this.validateFunction(f,n,o,i,p);case 29:if(a=e.sent,null===a){e.next=32;break}return e.abrupt("break",35);case 32:l++,e.next=12;break;case 35:return e.abrupt("return",a);case 36:case"end":return e.stop()}}),e,this)})));function t(t,n,r,o){return e.apply(this,arguments)}return t}()},{key:"validateFunction",value:function(){var e=h(r.default.mark((function e(t,n,o,i,a){var s,u,c;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=null,e.prev=1,u=null,e.next=5,t.validateFunction(t,n,i||o,(function(e){u=e}));case 5:c=e.sent,(u||"string"===typeof c&&c||!1===c)&&(s=this._getMessage(t,u||c,a)),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),s=this._getMessage(t,e.t0.message,a);case 12:return e.abrupt("return",s);case 13:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t,n,r,o,i){return e.apply(this,arguments)}return t}()},{key:"_getMessage",value:function(e,t,n){return b(e,t||e.errorMessage||this._message[n]||t["default"])}},{key:"_getValidateType",value:function(e){var t="";return e.required?t="required":e.format?t="format":e.range?t="range":e.maximum||e.minimum?t="rangeNumber":e.maxLength||e.minLength?t="rangeLength":e.pattern&&(t="pattern"),t}}]),e}(),S={required:function(e,t,n){return e.required&&_(t,e.format||typeof t)?b(e,e.errorMessage||n.required):null},range:function(e,t,n){for(var r=e.range,o=e.errorMessage,i=new Array(r.length),a=0;a<r.length;a++){var s=r[a];w.object(s)&&void 0!==s.value?i[a]=s.value:i[a]=s}var u=!1;return Array.isArray(t)?u=new Set(t.concat(i)).size===i.length:i.indexOf(t)>-1&&(u=!0),u?null:b(e,o||n["enum"])},rangeNumber:function(e,t,n){if(!w.number(t))return b(e,e.errorMessage||n.pattern.mismatch);var r=e.minimum,o=e.maximum,i=e.exclusiveMinimum,a=e.exclusiveMaximum,s=i?t<=r:t<r,u=a?t>=o:t>o;return void 0!==r&&s?b(e,e.errorMessage||n["number"].min):void 0!==o&&u?b(e,e.errorMessage||n["number"].max):void 0!==r&&void 0!==o&&(s||u)?b(e,e.errorMessage||n["number"].range):null},rangeLength:function(e,t,n){if(!w.string(t)&&!w.array(t))return b(e,e.errorMessage||n.pattern.mismatch);var r=e.minLength,o=e.maxLength,i=t.length;return void 0!==r&&i<r?b(e,e.errorMessage||n["length"].min):void 0!==o&&i>o?b(e,e.errorMessage||n["length"].max):void 0!==r&&void 0!==o&&(i<r||i>o)?b(e,e.errorMessage||n["length"].range):null},pattern:function(e,t,n){return w["pattern"](e.pattern,t)?null:b(e,e.errorMessage||n.pattern.mismatch)},format:function(e,t,n){var r=Object.keys(w),o=m[e.format]?m[e.format]:e.format;return r.indexOf(o)>-1&&!w[o](t)?b(e,e.errorMessage||n.types[o]):null}},O=function(e){i(n,e);var t=s(n);function n(e,r){var o;return d(this,n),o=t.call(this,n.message),o._schema=e,o._options=r||null,o}return g(n,[{key:"updateSchema",value:function(e){this._schema=e}},{key:"validate",value:function(){var e=h(r.default.mark((function e(t,n){var o;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=this._checkFieldInSchema(t),o){e.next=5;break}return e.next=4,this.invokeValidate(t,!1,n);case 4:o=e.sent;case 5:return e.abrupt("return",o.length?o[0]:null);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"validateAll",value:function(){var e=h(r.default.mark((function e(t,n){var o;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=this._checkFieldInSchema(t),o){e.next=5;break}return e.next=4,this.invokeValidate(t,!0,n);case 4:o=e.sent;case 5:return e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"validateUpdate",value:function(){var e=h(r.default.mark((function e(t,n){var o;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=this._checkFieldInSchema(t),o){e.next=5;break}return e.next=4,this.invokeValidateUpdate(t,!1,n);case 4:o=e.sent;case 5:return e.abrupt("return",o.length?o[0]:null);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"invokeValidate",value:function(){var e=h(r.default.mark((function e(t,n,o){var i,a,s,u,c;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=[],a=this._schema,e.t0=r.default.keys(a);case 3:if((e.t1=e.t0()).done){e.next=15;break}return s=e.t1.value,u=a[s],e.next=8,this.validateRule(u,t[s],t,o);case 8:if(c=e.sent,null==c){e.next=13;break}if(i.push({key:s,errorMessage:c}),n){e.next=13;break}return e.abrupt("break",15);case 13:e.next=3;break;case 15:return e.abrupt("return",i);case 16:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"invokeValidateUpdate",value:function(){var e=h(r.default.mark((function e(t,n,o){var i,a,s;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=[],e.t0=r.default.keys(t);case 2:if((e.t1=e.t0()).done){e.next=13;break}return a=e.t1.value,e.next=6,this.validateRule(this._schema[a],t[a],t,o);case 6:if(s=e.sent,null==s){e.next=11;break}if(i.push({key:a,errorMessage:s}),n){e.next=11;break}return e.abrupt("break",13);case 11:e.next=2;break;case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_checkFieldInSchema",value:function(e){var t=Object.keys(e),r=Object.keys(this._schema);return new Set(t.concat(r)).size===r.length?"":[{key:"invalid",errorMessage:n.message["defaultInvalid"]}]}}]),n}(k);function x(){return{default:"验证错误",defaultInvalid:"字段超出范围",required:"{label}必填",enum:"{label}超出范围",whitespace:"{label}不能为空",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},types:{string:"{label}类型无效",array:"{label}类型无效",object:"{label}类型无效",number:"{label}类型无效",date:"{label}类型无效",boolean:"{label}类型无效",integer:"{label}类型无效",float:"{label}类型无效",regexp:"{label}无效",email:"{label}类型无效",url:"{label}类型无效"},length:{min:"{label}长度不能少于{minLength}",max:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{min:"{label}不能小于{minimum}",max:"{label}不能大于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}}O.message=new x;var T=O;t.default=T}}]); |