1 line
179 KiB
JavaScript
1 line
179 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"04c0":function(e,t,n){"use strict";var r=n("4ea4");n("99af"),n("7db0"),n("4160"),n("c975"),n("a9e3"),n("d3b7"),n("159b"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var a=r(n("1da1")),i=r(n("ade3")),o=r(n("77f8")),c=n("23d6"),u=r(n("e143"));u.default.prototype.binddata=function(e,t,n){if(n)this.$refs[n].setValue(e,t);else{var r;for(var a in this.$refs){var i=this.$refs[a];if(i&&i.$options&&"uniForms"===i.$options.name){r=i;break}}if(!r)return console.error("当前 uni-froms 组件缺少 ref 属性");r.setValue(e,t)}};var s={name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:function(){return null}},modelValue:{type:Object,default:function(){return null}},model:{type:Object,default:function(){return null}},rules:{type:Object,default:function(){return{}}},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide:function(){return{uniForm:this}},data:function(){return{formData:{},formRules:{}}},computed:{localData:function(){var e=this.model||this.modelValue||this.value;return e?(0,c.deepCopy)(e):{}}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created:function(){this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules:function(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new o.default(e)},setValue:function(e,t){var n=this.childrens.find((function(t){return t.name===e}));return n?(this.formData[e]=(0,c.getValue)(e,t,this.formRules[e]&&this.formRules[e].rules||[]),n.onFieldChange(this.formData[e])):null},validate:function(e,t){return this.checkAll(this.formData,e,t)},validateField:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;t=[].concat(t);var r={};return this.childrens.forEach((function(n){var a=(0,c.realName)(n.name);-1!==t.indexOf(a)&&(r=Object.assign({},r,(0,i.default)({},a,e.formData[a])))})),this.checkAll(r,[],n)},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e=[].concat(e),this.childrens.forEach((function(t){if(0===e.length)t.errMsg="";else{var n=(0,c.realName)(t.name);-1!==e.indexOf(n)&&(t.errMsg="")}}))},submit:function(e,t,n){var r=this,a=function(e){var t=r.childrens.find((function(t){return t.name===e}));t&&void 0===r.formData[e]&&(r.formData[e]=r._getValue(e,r.dataValue[e]))};for(var i in this.dataValue)a(i);return n||console.warn("submit 方法即将废弃,请使用validate方法代替!"),this.checkAll(this.formData,e,t,"submit")},checkAll:function(e,t,n,r){var i=this;return(0,a.default)(regeneratorRuntime.mark((function a(){var o,u,s,l,d,f,h,p,m,v,g;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i.validator){a.next=2;break}return a.abrupt("return");case 2:for(s in o=[],u=function(e){var t=i.childrens.find((function(t){return(0,c.realName)(t.name)===e}));t&&o.push(t)},e)u(s);n||"function"!==typeof t||(n=t),!n&&"function"!==typeof n&&Promise&&(l=new Promise((function(e,t){n=function(n,r){n?t(n):e(r)}}))),d=[],f=JSON.parse(JSON.stringify(e)),a.t0=regeneratorRuntime.keys(o);case 10:if((a.t1=a.t0()).done){a.next=23;break}return h=a.t1.value,p=o[h],m=(0,c.realName)(p.name),a.next=16,p.onFieldChange(f[m]);case 16:if(v=a.sent,!v){a.next=21;break}if(d.push(v),"toast"!==i.errShowType&&"modal"!==i.errShowType){a.next=21;break}return a.abrupt("break",23);case 21:a.next=10;break;case 23:if(Array.isArray(d)&&0===d.length&&(d=null),Array.isArray(t)&&t.forEach((function(e){var t=(0,c.realName)(e),n=(0,c.getDataValue)(e,i.localData);void 0!==n&&(f[t]=n)})),"submit"===r?i.$emit("submit",{detail:{value:f,errors:d}}):i.$emit("validate",d),g={},g=(0,c.rawData)(f,i.name),n&&"function"===typeof n&&n(d,g),!l||!n){a.next=33;break}return a.abrupt("return",l);case 33:return a.abrupt("return",null);case 34:case"end":return a.stop()}}),a)})))()},validateCheck:function(e){this.$emit("validate",e)},_getValue:c.getValue,_isRequiredField:c.isRequiredField,_setDataValue:c.setDataValue,_getDataValue:c.getDataValue,_realName:c.realName,_isRealName:c.isRealName,_isEqual:c.isEqual}};t.default=s},"0fb3":function(e,t,n){"use strict";n.r(t);var r=n("65dc"),a=n("fe72");for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("eefc");var o,c=n("f0c5"),u=Object(c["a"])(a["default"],r["b"],r["c"],!1,null,"aa8a3282",null,!1,r["a"],o);t["default"]=u.exports},1773:function(e,t,n){"use strict";n.r(t);var r=n("d4bf"),a=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=a.a},"1bca":function(e,t,n){"use strict";n.r(t);var r=n("244d"),a=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=a.a},"1da1":function(e,t,n){"use strict";function r(e,t,n,r,a,i,o){try{var c=e[i](o),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var o=e.apply(t,n);function c(e){r(o,a,i,c,u,"next",e)}function u(e){r(o,a,i,c,u,"throw",e)}c(void 0)}))}}n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a},"1de5":function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"21ab":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var r={uniIcons:n("0fb3").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-stat__select"},[e.label?n("span",{staticClass:"uni-label-text hide-on-phone"},[e._v(e._s(e.label+":"))]):e._e(),n("v-uni-view",{staticClass:"uni-stat-box",class:{"uni-stat__actived":e.current}},[n("v-uni-view",{staticClass:"uni-select",class:{"uni-select--disabled":e.disabled}},[n("v-uni-view",{staticClass:"uni-select__input-box",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleSelector.apply(void 0,arguments)}}},[e.current?n("v-uni-view",{staticClass:"uni-select__input-text"},[e._v(e._s(e.current))]):n("v-uni-view",{staticClass:"uni-select__input-text uni-select__input-placeholder"},[e._v(e._s(e.typePlaceholder))]),e.current&&e.clear&&!e.disabled?n("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.clearVal.apply(void 0,arguments)}}},[n("uni-icons",{attrs:{type:"clear",color:"#c0c4cc",size:"24"}})],1):n("v-uni-view",[n("uni-icons",{attrs:{type:e.showSelector?"top":"bottom",size:"14",color:"#999"}})],1)],1),e.showSelector?n("v-uni-view",{staticClass:"uni-select--mask",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleSelector.apply(void 0,arguments)}}}):e._e(),e.showSelector?n("v-uni-view",{staticClass:"uni-select__selector"},[n("v-uni-view",{staticClass:"uni-popper__arrow"}),n("v-uni-scroll-view",{staticClass:"uni-select__selector-scroll",attrs:{"scroll-y":"true"}},[0===e.mixinDatacomResData.length?n("v-uni-view",{staticClass:"uni-select__selector-empty"},[n("v-uni-text",[e._v(e._s(e.emptyTips))])],1):e._l(e.mixinDatacomResData,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-select__selector-item",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.change(t)}}},[n("v-uni-text",{class:{"uni-select__selector__disabled":t.disable}},[e._v(e._s(e.formatItemName(t)))])],1)}))],2)],1):e._e()],1)],1)],1)},i=[]},"21df":function(e,t,n){"use strict";var r=n("5bbb"),a=n.n(r);a.a},2376:function(e,t,n){var r=n("83a5");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("28540b2f",r,!0,{sourceMap:!1,shadowMode:!1})},"23d6":function(e,t,n){"use strict";n("7db0"),n("d81d"),n("13d5"),n("a9e3"),n("7039"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.isEqual=t.type=t.isRequiredField=t.isBoolean=t.isNumber=t.objGet=t.objSet=t.name2arr=t.rawData=t.isRealName=t.realName=t.getDataValueType=t.getDataValue=t.setDataValue=t.getValue=t.typeFilter=t.deepCopy=void 0;var r=function(e){return JSON.parse(JSON.stringify(e))};t.deepCopy=r;var a=function(e){return"int"===e||"double"===e||"number"===e||"timestamp"===e};t.typeFilter=a;var i=function(e,t,n){var r=n.find((function(e){return e.format&&a(e.format)})),i=n.find((function(e){return e.format&&"boolean"===e.format||"bool"===e.format}));return r&&(t=t||0===t?v(Number(t))?Number(t):t:null),i&&(t=!!g(t)&&t),t};t.getValue=i;var o=function(e,t,n){return t[e]=n,n||""};t.setDataValue=o;var c=function(e,t){return m(t,e)};t.getDataValue=c;var u=function(e,t){var n=c(e,t);return{type:b(n),value:n}};t.getDataValueType=u;var s=function(e){var t=p(e);if("object"===typeof t&&Array.isArray(t)&&t.length>1){var n=t.reduce((function(e,t){return e+"#".concat(t)}),"_formdata_");return n}return t[0]||e};t.realName=s;var l=function(e){var t=/^_formdata_#*/;return t.test(e)};t.isRealName=l;var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e)),n={};for(var r in t){var a=f(r);h(n,a,t[r])}return n};t.rawData=d;var f=function(e){var t=e.replace("_formdata_#","");return t=t.split("#").map((function(e){return v(e)?Number(e):e})),t};t.name2arr=f;var h=function(e,t,n){return"object"!==typeof e||p(t).reduce((function(e,t,r,a){return r===a.length-1?(e[t]=n,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(a[r+1])?[]:{}),e[t])}),e),e};function p(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}t.objSet=h;var m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined",r=p(t),a=r.reduce((function(e,t){return(e||{})[t]}),e);return a&&void 0===a?n:a};t.objGet=m;var v=function(e){return!isNaN(Number(e))};t.isNumber=v;var g=function(e){return"boolean"===typeof e};t.isBoolean=g;var _=function(e){for(var t=!1,n=0;n<e.length;n++){var r=e[n];if(r.required){t=!0;break}}return t};t.isRequiredField=_;var b=function(e){var t={};return"Boolean Number String Function Array Date RegExp Object Error".split(" ").map((function(e,n){t["[object "+e+"]"]=e.toLowerCase()})),null==e?e+"":"object"===typeof e||"function"===typeof e?t[Object.prototype.toString.call(e)]||"object":typeof e};t.type=b;var y=function(e,t){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;var n=toString.call(e),r=toString.call(t);if(n!==r)return!1;switch(n){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}if("[object Object]"==n){var a=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(a.length!=i.length)return!1;for(var o=0;o<a.length;o++){var c=a[o];if(e[c]!==t[c])return!1}return!0}return"[object Array]"==n?e.toString()==t.toString():void 0};t.isEqual=y},"244d":function(e,t,n){"use strict";(function(e){n("99af"),n("7db0"),n("4160"),n("c975"),n("a9e3"),n("4d63"),n("ac1f"),n("25f0"),n("5319"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={name:"uni-data-select",mixins:[e.mixinDatacom||{}],props:{localdata:{type:Array,default:function(){return[]}},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0},disabled:{type:Boolean,default:!1},format:{type:String,default:""}},data:function(){return{showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[],cacheKey:"uni-data-select-lastSelectedValue"}},created:function(){var e=this;this.debounceGet=this.debounce((function(){e.query()}),300),this.collection&&!this.localdata.length&&this.debounceGet()},computed:{typePlaceholder:function(){var e={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"},t=this.placeholder,n=e[this.collection];return n?t+n:t},valueCom:function(){return this.value}},watch:{localdata:{immediate:!0,handler:function(e,t){Array.isArray(e)&&t!==e&&(this.mixinDatacomResData=e)}},valueCom:function(e,t){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler:function(e){e.length&&this.initDefVal()}}},methods:{debounce:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=null;return function(){for(var r=this,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];n&&clearTimeout(n),n=setTimeout((function(){e.apply(r,i)}),t)}},query:function(){this.mixinDatacomEasyGet()},onMixinDatacomPropsChange:function(){this.collection&&this.debounceGet()},initDefVal:function(){var e="";if(!this.valueCom&&0!==this.valueCom||this.isDisabled(this.valueCom)){var t;if(this.collection&&(t=this.getCache()),t||0===t)e=t;else{var n="";this.defItem>0&&this.defItem<=this.mixinDatacomResData.length&&(n=this.mixinDatacomResData[this.defItem-1].value),e=n}(e||0===e)&&this.emit(e)}else e=this.valueCom;var r=this.mixinDatacomResData.find((function(t){return t.value===e}));this.current=r?this.formatItemName(r):""},isDisabled:function(e){var t=!1;return this.mixinDatacomResData.forEach((function(n){n.value===e&&(t=n.disable)})),t},clearVal:function(){this.emit(""),this.collection&&this.removeCache()},change:function(e){e.disable||(this.showSelector=!1,this.current=this.formatItemName(e),this.emit(e.value))},emit:function(e){this.$emit("input",e),this.$emit("update:modelValue",e),this.$emit("change",e),this.collection&&this.setCache(e)},toggleSelector:function(){this.disabled||(this.showSelector=!this.showSelector)},formatItemName:function(e){var t=e.text,n=e.value,r=e.channel_code;if(r=r?"(".concat(r,")"):"",this.format){var a="";for(var i in a=this.format,e)a=a.replace(new RegExp("{".concat(i,"}"),"g"),e[i]);return a}return this.collection.indexOf("app-list")>0?"".concat(t,"(").concat(n,")"):t||"未命名".concat(r)},getLoadData:function(){return this.mixinDatacomResData},getCurrentCacheKey:function(){return this.collection},getCache:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getCurrentCacheKey(),t=uni.getStorageSync(this.cacheKey)||{};return t[e]},setCache:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentCacheKey(),n=uni.getStorageSync(this.cacheKey)||{};n[t]=e,uni.setStorageSync(this.cacheKey,n)},removeCache:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getCurrentCacheKey(),t=uni.getStorageSync(this.cacheKey)||{};delete t[e],uni.setStorageSync(this.cacheKey,t)}}};t.default=r}).call(this,n("a9ff")["default"])},"257e":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"262e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(n("b380"));function a(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&&(0,r.default)(e,t)}},2909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=c(n("6005")),a=c(n("db90")),i=c(n("06c5")),o=c(n("3427"));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return(0,r.default)(e)||(0,a.default)(e)||(0,i.default)(e)||(0,o.default)()}},"2caf":function(e,t,n){"use strict";n("4ae1"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=o(n("7e84")),a=o(n("d967")),i=o(n("99de"));function o(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=(0,a.default)();return function(){var n,a=(0,r.default)(e);if(t){var o=(0,r.default)(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return(0,i.default)(this,n)}}},"2d4c":function(e,t,n){"use strict";var r=n("4ea4");n("7db0"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("c28b")),i=function(e){var t=/^[0-9]*$/g;return"number"===typeof e||t.test(e)?e+"px":e},o={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data:function(){return{icons:a.default.glyphs}},computed:{unicode:function(){var e=this,t=this.icons.find((function(t){return t.font_class===e.type}));return t?unescape("%u".concat(t.unicode)):""},iconSize:function(){return i(this.size)}},methods:{_onClick:function(){this.$emit("click")}}};t.default=o},3427:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"3e05":function(e,t,n){"use strict";n.r(t);var r=n("6ac9"),a=n("a3be");for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("69ca");var o,c=n("f0c5"),u=Object(c["a"])(a["default"],r["b"],r["c"],!1,null,"06e6672a",null,!1,r["a"],o);t["default"]=u.exports},4022:function(e,t,n){"use strict";n.r(t);var r=n("21ab"),a=n("1bca");for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("b168");var o,c=n("f0c5"),u=Object(c["a"])(a["default"],r["b"],r["c"],!1,null,"36cc3c24",null,!1,r["a"],o);t["default"]=u.exports},4478:function(e,t,n){"use strict";n("4ae1"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n("b380")),a=i(n("d967"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,n,i){return(0,a.default)()?t.default=o=Reflect.construct:t.default=o=function(e,t,n){var a=[null];a.push.apply(a,t);var i=Function.bind.apply(e,a),o=new i;return n&&(0,r.default)(o,n.prototype),o},o.apply(null,arguments)}},"4c87":function(e,t,n){e.exports=n.p+"static/fonts/uniicons.b6d3756e.ttf"},"4ec9":function(e,t,n){"use strict";var r=n("6d61"),a=n("6566");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},"51d5":function(e,t,n){"use strict";var r=n("d72d"),a=n.n(r);a.a},5377:function(e,t,n){var r=n("83ab"),a=n("9bf2"),i=n("ad6d"),o=n("9f7f").UNSUPPORTED_Y;r&&("g"!=/./g.flags||o)&&a.f(RegExp.prototype,"flags",{configurable:!0,get:i})},"53ca":function(e,t,n){"use strict";function r(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?t.default=r=function(e){return typeof e}:t.default=r=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"57a0":function(e,t,n){var r=n("f82a");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("176e78a5",r,!0,{sourceMap:!1,shadowMode:!1})},5929:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-forms"},[n("v-uni-form",[e._t("default")],2)],1)},i=[]},"5bbb":function(e,t,n){var r=n("bad1");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("79495eec",r,!0,{sourceMap:!1,shadowMode:!1})},6005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(n("6b75"));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e))return(0,r.default)(e)}},6062:function(e,t,n){"use strict";var r=n("6d61"),a=n("6566");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},6566:function(e,t,n){"use strict";var r=n("9bf2").f,a=n("7c73"),i=n("e2cc"),o=n("0366"),c=n("19aa"),u=n("2266"),s=n("7dd0"),l=n("2626"),d=n("83ab"),f=n("f183").fastKey,h=n("69f3"),p=h.set,m=h.getterFor;e.exports={getConstructor:function(e,t,n,s){var l=e((function(e,r){c(e,l,t),p(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=r&&u(r,e[s],e,n)})),h=m(t),v=function(e,t,n){var r,a,i=h(e),o=g(e,t);return o?o.value=n:(i.last=o={index:a=f(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=o),r&&(r.next=o),d?i.size++:e.size++,"F"!==a&&(i.index[a]=o)),e},g=function(e,t){var n,r=h(e),a=f(t);if("F"!==a)return r.index[a];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(l.prototype,{clear:function(){var e=this,t=h(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=h(t),r=g(t,e);if(r){var a=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=a),a&&(a.previous=i),n.first==r&&(n.first=a),n.last==r&&(n.last=i),d?n.size--:t.size--}return!!r},forEach:function(e){var t,n=h(this),r=o(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),i(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",a=m(t),i=m(r);s(e,t,(function(e,t){p(this,{type:r,target:e,state:a(e),kind:t,last:void 0})}),(function(){var e=i(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},"65dc":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-text",{staticClass:"uni-icons",class:["uniui-"+e.type,e.customPrefix,e.customPrefix?e.type:""],style:{color:e.color,"font-size":e.iconSize},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._onClick.apply(void 0,arguments)}}})},i=[]},"675a":function(e,t,n){"use strict";var r=n("4ea4");n("4160"),n("a434"),n("a9e3"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("ade3"));n("96cf");var i=r(n("1da1")),o={name:"uniFormsItem",options:{virtualHost:!0},provide:function(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:function(){return null}},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:function(){return{errMsg:"",userRules:null,localLabelAlign:"left",localLabelWidth:"65px",localLabelPos:"left",border:!1,isFirstBorder:!1}},computed:{msg:function(){return this.errorMessage||this.errMsg}},watch:{"form.formRules":function(e){this.init()},"form.labelWidth":function(e){this.localLabelWidth=this._labelWidthUnit(e)},"form.labelPosition":function(e){this.localLabelPos=this._labelPosition()},"form.labelAlign":function(e){}},created:function(){var e=this;this.init(!0),this.name&&this.form&&this.$watch((function(){var t=e.form._getDataValue(e.name,e.form.localData);return t}),(function(t,n){var r=e.form._isEqual(t,n);if(!r){var a=e.itemSetValue(t);e.onFieldChange(a,!1)}}),{immediate:!1})},destroyed:function(){this.__isUnmounted||this.unInit()},methods:{setRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.userRules=e,this.init(!1)},setValue:function(){},onFieldChange:function(e){var t=arguments,n=this;return(0,i.default)(regeneratorRuntime.mark((function r(){var i,o,c,u,s,l,d,f,h,p,m,v;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(i=!(t.length>1&&void 0!==t[1])||t[1],o=n.form,c=o.formData,o.localData,u=o.errShowType,s=o.validateCheck,l=o.validateTrigger,d=o._isRequiredField,f=o._realName,h=f(n.name),e||(e=n.form.formData[h]),p=n.itemRules.rules&&n.itemRules.rules.length,n.validator&&p&&0!==p){r.next=7;break}return r.abrupt("return");case 7:if(m=d(n.itemRules.rules||[]),v=null,"bind"!==l&&!i){r.next=18;break}return r.next=12,n.validator.validateUpdate((0,a.default)({},h,e),c);case 12:v=r.sent,m||void 0!==e&&""!==e||(v=null),v&&v.errorMessage?("undertext"===u&&(n.errMsg=v?v.errorMessage:""),"toast"===u&&uni.showToast({title:v.errorMessage||"校验错误",icon:"none"}),"modal"===u&&uni.showModal({title:"提示",content:v.errorMessage||"校验错误"})):n.errMsg="",s(v||null),r.next=19;break;case 18:n.errMsg="";case 19:return r.abrupt("return",v||null);case 20:case"end":return r.stop()}}),r)})))()},init:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.form||{},n=t.validator,r=t.formRules,a=t.childrens,i=(t.formData,t.localData),o=t._realName,c=t.labelWidth,u=t._getDataValue;t._setDataValue;if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(c),this.localLabelPos=this._labelPosition(),this.form&&e&&a.push(this),n&&r){this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border;var s=o(this.name),l=this.userRules||this.rules;"object"===typeof r&&l&&(r[s]={rules:l},n.updateSchema(r));var d=r[s]||{};this.itemRules=d,this.validator=n,this.itemSetValue(u(this.name,i))}},unInit:function(){var e=this;if(this.form){var t=this.form,n=t.childrens,r=t.formData,a=t._realName;n.forEach((function(t,n){t===e&&(e.form.childrens.splice(n,1),delete r[a(t.name)])}))}},itemSetValue:function(e){var t=this.form._realName(this.name),n=this.itemRules.rules||[],r=this.form._getValue(t,e,n);return this.form._setDataValue(t,this.form.formData,r),r},clearValidate:function(){this.errMsg=""},_isRequired:function(){return this.required},_justifyContent:function(){if(this.form){var e=this.form.labelAlign,t=this.labelAlign?this.labelAlign:e;if("left"===t)return"flex-start";if("center"===t)return"center";if("right"===t)return"flex-end"}return"flex-start"},_labelWidthUnit:function(e){return this.num2px(this.labelWidth?this.labelWidth:e||(this.label?65:"auto"))},_labelPosition:function(){return this.form&&this.form.labelPosition||"left"},isTrigger:function(e,t,n){return"submit"!==e&&e?"bind":void 0===e?"bind"!==t?t?"submit":""===n?"bind":"submit":"bind":"submit"},num2px:function(e){return"number"===typeof e?"".concat(e,"px"):e}}};t.default=o},"69ca":function(e,t,n){"use strict";var r=n("57a0"),a=n.n(r);a.a},"6ac9":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-forms-item",class:["is-direction-"+e.localLabelPos,e.border?"uni-forms-item--border":"",e.border&&e.isFirstBorder?"is-first-border":""]},[e._t("label",[n("v-uni-view",{staticClass:"uni-forms-item__label",class:{"no-label":!e.label&&!e.required},style:{width:e.localLabelWidth,justifyContent:e.localLabelAlign}},[e.required?n("v-uni-text",{staticClass:"is-required"},[e._v("*")]):e._e(),n("v-uni-text",[e._v(e._s(e.label))])],1)]),n("v-uni-view",{staticClass:"uni-forms-item__content"},[e._t("default"),n("v-uni-view",{staticClass:"uni-forms-item__error",class:{"msg--active":e.msg}},[n("v-uni-text",[e._v(e._s(e.msg))])],1)],2)],2)},i=[]},"6c57":function(e,t,n){var r=n("23e7"),a=n("da84");r({global:!0},{globalThis:a})},"6d61":function(e,t,n){"use strict";var r=n("23e7"),a=n("da84"),i=n("94ca"),o=n("6eeb"),c=n("f183"),u=n("2266"),s=n("19aa"),l=n("861d"),d=n("d039"),f=n("1c7e"),h=n("d44e"),p=n("7156");e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),g=m?"set":"add",_=a[e],b=_&&_.prototype,y=_,w={},k=function(e){var t=b[e];o(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof _||!(v||b.forEach&&!d((function(){(new _).entries().next()})))))y=n.getConstructor(t,e,m,g),c.REQUIRED=!0;else if(i(e,!0)){var x=new y,S=x[g](v?{}:-0,1)!=x,T=d((function(){x.has(1)})),P=f((function(e){new _(e)})),A=!v&&d((function(){var e=new _,t=5;while(t--)e[g](t,t);return!e.has(-0)}));P||(y=t((function(t,n){s(t,y,e);var r=p(new _,t,y);return void 0!=n&&u(n,r[g],r,m),r})),y.prototype=b,b.constructor=y),(T||A)&&(k("delete"),k("has"),m&&k("get")),(A||S)&&k(g),v&&b.clear&&delete b.clear}return w[e]=y,r({global:!0,forced:y!=_},w),h(y,e),v||n.setStrong(y,e,m),y}},7039:function(e,t,n){var r=n("23e7"),a=n("d039"),i=n("057f").f,o=a((function(){return!Object.getOwnPropertyNames(1)}));r({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:i})},"726c":function(e,t,n){"use strict";n.r(t);var r=n("a25b"),a=n("1773");for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("21df");var o,c=n("f0c5"),u=Object(c["a"])(a["default"],r["b"],r["c"],!1,null,"03ca5974",null,!1,r["a"],o);t["default"]=u.exports},"77f8":function(e,t,n){"use strict";var r=n("4ea4");n("99af"),n("4de4"),n("c740"),n("4160"),n("c975"),n("b64b"),n("d3b7"),n("e25e"),n("4d63"),n("ac1f"),n("25f0"),n("6062"),n("3ca3"),n("466d"),n("5319"),n("2ca0"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("262e")),i=r(n("2caf"));n("96cf");var o=r(n("1da1")),c=r(n("d4ec")),u=r(n("bee2")),s={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,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")},l={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=["label"];n.forEach((function(t){void 0===e[t]&&(e[t]="")}));var r=t;for(var a in e){var i=new RegExp("{"+a+"}");r=r.replace(i,e[a])}return r}function f(e,t){return void 0===e||null===e||("string"===typeof e&&!e||(!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length))}var h={integer:function(e){return h.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 h.number(e)&&!h.integer(e)},array:function(e){return Array.isArray(e)},object:function(e){return"object"===typeof e&&!h.array(e)},date:function(e){return e instanceof Date},timestamp:function(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:function(e){return"string"===typeof e.url},email:function(e){return"string"===typeof e&&!!e.match(s.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(s.url)},pattern:function(e,t){try{return new RegExp(e).test(t)}catch(n){return!1}},method:function(e){return"function"===typeof e},idcard:function(e){return"string"===typeof e&&!!e.match(s.idcard)},"url-https":function(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":function(e){return e.startsWith("://")},"url-web":function(e){return!1}},p=function(){function e(t){(0,c.default)(this,e),this._message=t}return(0,u.default)(e,[{key:"validateRule",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t,n,r,a,i){var o,c,u,s,l,d,f,h,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=null,c=n.rules,u=c.findIndex((function(e){return e.required})),!(u<0)){e.next=8;break}if(null!==r&&void 0!==r){e.next=6;break}return e.abrupt("return",o);case 6:if("string"!==typeof r||r.length){e.next=8;break}return e.abrupt("return",o);case 8:if(s=this._message,void 0!==c){e.next=11;break}return e.abrupt("return",s["default"]);case 11:l=0;case 12:if(!(l<c.length)){e.next=35;break}if(d=c[l],f=this._getValidateType(d),Object.assign(d,{label:n.label||'["'.concat(t,'"]')}),!m[f]){e.next=20;break}if(o=m[f](d,r,s),null==o){e.next=20;break}return e.abrupt("break",35);case 20:if(!d.validateExpr){e.next=26;break}if(h=Date.now(),p=d.validateExpr(r,i,h),!1!==p){e.next=26;break}return o=this._getMessage(d,d.errorMessage||this._message["default"]),e.abrupt("break",35);case 26:if(!d.validateFunction){e.next=32;break}return e.next=29,this.validateFunction(d,r,a,i,f);case 29:if(o=e.sent,null===o){e.next=32;break}return e.abrupt("break",35);case 32:l++,e.next=12;break;case 35:return null!==o&&(o=s.TAG+o),e.abrupt("return",o);case 37:case"end":return e.stop()}}),e,this)})));function t(t,n,r,a,i){return e.apply(this,arguments)}return t}()},{key:"validateFunction",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t,n,r,a,i){var o,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=null,e.prev=1,c=null,e.next=5,t.validateFunction(t,n,a||r,(function(e){c=e}));case 5:u=e.sent,(c||"string"===typeof u&&u||!1===u)&&(o=this._getMessage(t,c||u,i)),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),o=this._getMessage(t,e.t0.message,i);case 12:return e.abrupt("return",o);case 13:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t,n,r,a,i){return e.apply(this,arguments)}return t}()},{key:"_getMessage",value:function(e,t,n){return d(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.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}]),e}(),m={required:function(e,t,n){return e.required&&f(t,e.format||typeof t)?d(e,e.errorMessage||n.required):null},range:function(e,t,n){for(var r=e.range,a=e.errorMessage,i=new Array(r.length),o=0;o<r.length;o++){var c=r[o];h.object(c)&&void 0!==c.value?i[o]=c.value:i[o]=c}var u=!1;return Array.isArray(t)?u=new Set(t.concat(i)).size===i.length:i.indexOf(t)>-1&&(u=!0),u?null:d(e,a||n["enum"])},rangeNumber:function(e,t,n){if(!h.number(t))return d(e,e.errorMessage||n.pattern.mismatch);var r=e.minimum,a=e.maximum,i=e.exclusiveMinimum,o=e.exclusiveMaximum,c=i?t<=r:t<r,u=o?t>=a:t>a;return void 0!==r&&c?d(e,e.errorMessage||n["number"][i?"exclusiveMinimum":"minimum"]):void 0!==a&&u?d(e,e.errorMessage||n["number"][o?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==a&&(c||u)?d(e,e.errorMessage||n["number"].range):null},rangeLength:function(e,t,n){if(!h.string(t)&&!h.array(t))return d(e,e.errorMessage||n.pattern.mismatch);var r=e.minLength,a=e.maxLength,i=t.length;return void 0!==r&&i<r?d(e,e.errorMessage||n["length"].minLength):void 0!==a&&i>a?d(e,e.errorMessage||n["length"].maxLength):void 0!==r&&void 0!==a&&(i<r||i>a)?d(e,e.errorMessage||n["length"].range):null},pattern:function(e,t,n){return h["pattern"](e.pattern,t)?null:d(e,e.errorMessage||n.pattern.mismatch)},format:function(e,t,n){var r=Object.keys(h),a=l[e.format]?l[e.format]:e.format||e.arrayType;return r.indexOf(a)>-1&&!h[a](t)?d(e,e.errorMessage||n.typeError):null},arrayTypeFormat:function(e,t,n){if(!Array.isArray(t))return d(e,e.errorMessage||n.typeError);for(var r=0;r<t.length;r++){var a=t[r],i=this.format(e,a,n);if(null!==i)return i}return null}},v=function(e){(0,a.default)(n,e);var t=(0,i.default)(n);function n(e,r){var a;return(0,c.default)(this,n),a=t.call(this,n.message),a._schema=e,a._options=r||null,a}return(0,u.default)(n,[{key:"updateSchema",value:function(e){this._schema=e}},{key:"validate",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidate(t,!1,n);case 4:r=e.sent;case 5:return e.abrupt("return",r.length?r[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=(0,o.default)(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidate(t,!0,n);case 4:r=e.sent;case 5:return e.abrupt("return",r);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=(0,o.default)(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidateUpdate(t,!1,n);case 4:r=e.sent;case 5:return e.abrupt("return",r.length?r[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=(0,o.default)(regeneratorRuntime.mark((function e(t,n,r){var a,i,o,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=[],i=this._schema,e.t0=regeneratorRuntime.keys(i);case 3:if((e.t1=e.t0()).done){e.next=15;break}return o=e.t1.value,c=i[o],e.next=8,this.validateRule(o,c,t[o],t,r);case 8:if(u=e.sent,null==u){e.next=13;break}if(a.push({key:o,errorMessage:u}),n){e.next=13;break}return e.abrupt("break",15);case 13:e.next=3;break;case 15:return e.abrupt("return",a);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=(0,o.default)(regeneratorRuntime.mark((function e(t,n,r){var a,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=[],e.t0=regeneratorRuntime.keys(t);case 2:if((e.t1=e.t0()).done){e.next=13;break}return i=e.t1.value,e.next=6,this.validateRule(i,this._schema[i],t[i],t,r);case 6:if(o=e.sent,null==o){e.next=11;break}if(a.push({key:i,errorMessage:o}),n){e.next=11;break}return e.abrupt("break",13);case 11:e.next=2;break;case 13:return e.abrupt("return",a);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);if(new Set(t.concat(r)).size===r.length)return"";var a=t.filter((function(e){return r.indexOf(e)<0})),i=d({field:JSON.stringify(a)},n.message.TAG+n.message["defaultInvalid"]);return[{key:"invalid",errorMessage:i}]}}]),n}(p);function g(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}}v.message=new g;var _=v;t.default=_},"7e84":function(e,t,n){"use strict";function r(e){return t.default=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n("3410"),n("131a"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"7f07":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={appid:"__UNI__D614D01"};t.default=r},"807e":function(e,t,n){"use strict";n.r(t);var r=n("5929"),a=n("f516");for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("51d5");var o,c=n("f0c5"),u=Object(c["a"])(a["default"],r["b"],r["c"],!1,null,"26a83f7c",null,!1,r["a"],o);t["default"]=u.exports},"83a5":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */@media screen and (max-width:500px){.hide-on-phone[data-v-36cc3c24]{display:none}}.uni-stat__select[data-v-36cc3c24]{display:flex;align-items:center;cursor:pointer;width:100%;flex:1;box-sizing:border-box}.uni-stat-box[data-v-36cc3c24]{width:100%;flex:1}.uni-stat__actived[data-v-36cc3c24]{width:100%;flex:1}.uni-label-text[data-v-36cc3c24]{font-size:14px;font-weight:700;color:#6a6a6a;margin:auto 0;margin-right:5px}.uni-select[data-v-36cc3c24]{font-size:14px;border:1px solid #e5e5e5;box-sizing:border-box;border-radius:4px;padding:0 5px;padding-left:10px;position:relative;display:flex;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;border-bottom:solid 1px #e5e5e5;width:100%;flex:1;height:35px}.uni-select--disabled[data-v-36cc3c24]{background-color:#f5f7fa;cursor:not-allowed}.uni-select__label[data-v-36cc3c24]{font-size:16px;height:35px;padding-right:10px;color:#909399}.uni-select__input-box[data-v-36cc3c24]{height:35px;position:relative;display:flex;flex:1;flex-direction:row;align-items:center}.uni-select__input[data-v-36cc3c24]{flex:1;font-size:14px;height:22px;line-height:22px}.uni-select__input-plac[data-v-36cc3c24]{font-size:14px;color:#909399}.uni-select__selector[data-v-36cc3c24]{box-sizing:border-box;position:absolute;top:calc(100% + 12px);left:0;width:100%;background-color:#fff;border:1px solid #ebeef5;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);z-index:3;padding:4px 0}.uni-select__selector-scroll[data-v-36cc3c24]{max-height:200px;box-sizing:border-box}@media (min-width:768px){.uni-select__selector-scroll[data-v-36cc3c24]{max-height:600px}}.uni-select__selector-empty[data-v-36cc3c24],\r\n.uni-select__selector-item[data-v-36cc3c24]{display:flex;cursor:pointer;line-height:35px;font-size:14px;text-align:center;\r\n /* border-bottom: solid 1px $uni-border-3; */padding:0 10px}.uni-select__selector-item[data-v-36cc3c24]:hover{background-color:#f9f9f9}.uni-select__selector-empty[data-v-36cc3c24]:last-child,\r\n.uni-select__selector-item[data-v-36cc3c24]:last-child{border-bottom:none}.uni-select__selector__disabled[data-v-36cc3c24]{opacity:.4;cursor:default}\r\n/* picker 弹出层通用的指示小三角 */.uni-popper__arrow[data-v-36cc3c24],\r\n.uni-popper__arrow[data-v-36cc3c24]::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:6px}.uni-popper__arrow[data-v-36cc3c24]{-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-36cc3c24]::after{content:" ";top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.uni-select__input-text[data-v-36cc3c24]{width:100%;color:#333;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow:hidden}.uni-select__input-placeholder[data-v-36cc3c24]{color:#6a6a6a;font-size:12px}.uni-select--mask[data-v-36cc3c24]{position:fixed;top:0;bottom:0;right:0;left:0;z-index:2}',""]),e.exports=t},9072:function(e,t,n){"use strict";n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=c(n("7e84")),a=c(n("b380")),i=c(n("fa95")),o=c(n("4478"));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){var n="function"===typeof Map?new Map:void 0;return t.default=u=function(e){if(null===e||!(0,i.default)(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return(0,o.default)(e,arguments,(0,r.default)(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),(0,a.default)(t,e)},u(e)}},"96cf":function(e,t){!function(t){"use strict";var n,r=Object.prototype,a=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",s="object"===typeof e,l=t.regeneratorRuntime;if(l)s&&(e.exports=l);else{l=t.regeneratorRuntime=s?e.exports:{},l.wrap=y;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",m={},v={};v[o]=function(){return this};var g=Object.getPrototypeOf,_=g&&g(g(C([])));_&&_!==r&&a.call(_,o)&&(v=_);var b=S.prototype=k.prototype=Object.create(v);x.prototype=b.constructor=S,S.constructor=x,S[u]=x.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},T(P.prototype),P.prototype[c]=function(){return this},l.AsyncIterator=P,l.async=function(e,t,n,r){var a=new P(y(e,t,n,r));return l.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(b),b[u]="Generator",b[o]=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,I.prototype={constructor:I,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(E),!e)for(var t in this)"t"===t.charAt(0)&&a.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,a){return c.type="throw",c.arg=e,t.next=r,a&&(t.method="next",t.arg=n),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.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&&a.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 o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},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),m},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),E(n),m}},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 a=r.arg;E(n)}return a}}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),m}}}function y(e,t,n,r){var a=t&&t.prototype instanceof k?t:k,i=Object.create(a.prototype),o=new I(r||[]);return i._invoke=A(e,n,o),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 x(){}function S(){}function T(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function P(e){function t(n,r,i,o){var c=w(e[n],e,r);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"===typeof s&&a.call(s,"__await")?Promise.resolve(s.__await).then((function(e){t("next",e,i,o)}),(function(e){t("throw",e,i,o)})):Promise.resolve(s).then((function(e){u.value=e,i(u)}),(function(e){return t("throw",e,i,o)}))}o(c.arg)}var n;function r(e,r){function a(){return new Promise((function(n,a){t(e,r,n,a)}))}return n=n?n.then(a,a):a()}this._invoke=r}function A(e,t,n){var r=d;return function(a,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===a)throw i;return D()}n.method=a,n.arg=i;while(1){var o=n.delegate;if(o){var c=O(o,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,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?p:f,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}function O(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,O(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=w(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,m;var i=a.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,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function R(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function C(e){if(e){var t=e[o];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(a.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:D}}function D(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},"99de":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n("53ca")),a=i(n("257e"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return!t||"object"!==(0,r.default)(t)&&"function"!==typeof t?(0,a.default)(e):t}},a25b:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var r={uniForms:n("807e").default,uniFormsItem:n("3e05").default,uniDataSelect:n("4022").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"content"},[n("uni-forms",{ref:"valiForm",attrs:{rules:e.rules,modelValue:e.addForm}},[n("v-uni-view",{staticClass:"itemStyle"},[n("uni-forms-item",{attrs:{label:"车牌号码",required:!0,name:"licensePlate"}},[n("v-uni-input",{attrs:{focus:!0,placeholder:"请输入车牌号码"},model:{value:e.addForm.licensePlate,callback:function(t){e.$set(e.addForm,"licensePlate",t)},expression:"addForm.licensePlate"}})],1)],1),n("v-uni-view",{staticClass:"itemStyle"},[n("uni-forms-item",{attrs:{label:"发货单位",required:!0,name:"forwardingUnit"}},[n("uni-data-select",{attrs:{localdata:e.forwardArray},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindPickerChange(t,1)}},model:{value:e.addForm.forwardingUnit,callback:function(t){e.$set(e.addForm,"forwardingUnit",t)},expression:"addForm.forwardingUnit"}})],1)],1),n("v-uni-view",{staticClass:"itemStyle"},[n("uni-forms-item",{attrs:{label:"收货单位",required:!0,name:"receivingUnit"}},[n("uni-data-select",{attrs:{localdata:e.receiveArray},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindPickerChange(t,2)}},model:{value:e.addForm.receivingUnit,callback:function(t){e.$set(e.addForm,"receivingUnit",t)},expression:"addForm.receivingUnit"}})],1)],1),n("v-uni-view",{staticClass:"itemStyle"},[n("uni-forms-item",{attrs:{label:"货物名称",required:!0,name:"goodsName"}},[n("uni-data-select",{attrs:{localdata:e.nameArray},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindPickerChange(t,3)}},model:{value:e.addForm.goodsName,callback:function(t){e.$set(e.addForm,"goodsName",t)},expression:"addForm.goodsName"}})],1)],1),n("v-uni-view",{staticClass:"itemStyle"},[n("uni-forms-item",{attrs:{label:"规格型号",required:!0,name:"specifications"}},[n("v-uni-input",{attrs:{focus:!0,placeholder:"请输入规格型号"},model:{value:e.addForm.specifications,callback:function(t){e.$set(e.addForm,"specifications",t)},expression:"addForm.specifications"}})],1)],1),n("v-uni-view",{staticClass:"itemStyle"},[n("uni-forms-item",{attrs:{label:"过磅类型",required:!0,name:"weighingType"}},[n("uni-data-select",{attrs:{localdata:e.typeArray},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindPickerChange(t,4)}},model:{value:e.addForm.weighingType,callback:function(t){e.$set(e.addForm,"weighingType",t)},expression:"addForm.weighingType"}})],1)],1),n("v-uni-view",{staticClass:"itemStyle"},[n("uni-forms-item",{attrs:{label:"备 注",name:"reserve"}},[n("v-uni-input",{attrs:{focus:!0,placeholder:"请输入备注"},model:{value:e.addForm.reserve,callback:function(t){e.$set(e.addForm,"reserve",t)},expression:"addForm.reserve"}})],1)],1)],1),n("v-uni-button",{staticClass:"btnOrder",attrs:{type:"default"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onSubmit("valiForm")}}},[e._v("提交")])],1)},i=[]},a3be:function(e,t,n){"use strict";n.r(t);var r=n("675a"),a=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=a.a},a9ff:function(e,t,n){"use strict";(function(e){var r=n("4ea4");n("a4d3"),n("e01a"),n("99af"),n("4de4"),n("7db0"),n("4160"),n("a630"),n("caad"),n("c975"),n("baa5"),n("d81d"),n("13d5"),n("26e9"),n("fb6a"),n("4e82"),n("a434"),n("f4b3"),n("6c57"),n("a9e3"),n("b64b"),n("d3b7"),n("e25e"),n("4d63"),n("ac1f"),n("5377"),n("25f0"),n("3ca3"),n("466d"),n("5319"),n("841c"),n("1276"),n("498a"),n("159b"),n("ddb0"),n("bf19"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var a=r(n("1da1")),i=r(n("2909")),o=r(n("b85c")),c=r(n("bee2")),u=r(n("5530")),s=r(n("257e")),l=r(n("d4ec")),d=r(n("262e")),f=r(n("2caf")),h=r(n("9072")),p=n("37dc");function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v(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}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e||"undefined"!=typeof self&&self;var g=v((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={},a=r.lib={},i=a.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)}},o=a.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,a=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<a;i++){var o=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=o<<24-(r+i)%4*8}else for(i=0;i<a;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=a,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=[],a=function(t){t=t;var n=987654321,r=4294967295;return function(){var a=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return a/=4294967296,(a+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var c=a(4294967296*(n||e.random()));n=987654071*c(),r.push(4294967296*c()|0)}return new o.init(r,t)}}),c=r.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a<n;a++){var i=t[a>>>2]>>>24-a%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 o.init(n,t/2)}},s=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a<n;a++){var i=t[a>>>2]>>>24-a%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 o.init(n,t)}},l=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(s.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return s.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new o.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,a=n.sigBytes,i=this.blockSize,c=a/(4*i),u=(c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*i,s=e.min(4*u,a);if(u){for(var l=0;l<u;l+=i)this._doProcessBlock(r,l);var d=r.splice(0,u);n.sigBytes-=s}return new o.init(d,s)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=d.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.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 f.HMAC.init(e,n).finalize(t)}}});var f=r.algo={};return r}(Math),n)})),_=(v((function(e,t){var n;e.exports=(n=g,function(e){var t=n,r=t.lib,a=r.WordArray,i=r.Hasher,o=t.algo,c=[];!function(){for(var t=0;t<64;t++)c[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=o.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i=this._hash.words,o=e[t+0],u=e[t+1],h=e[t+2],p=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],_=e[t+7],b=e[t+8],y=e[t+9],w=e[t+10],k=e[t+11],x=e[t+12],S=e[t+13],T=e[t+14],P=e[t+15],A=i[0],O=i[1],R=i[2],E=i[3];A=s(A,O,R,E,o,7,c[0]),E=s(E,A,O,R,u,12,c[1]),R=s(R,E,A,O,h,17,c[2]),O=s(O,R,E,A,p,22,c[3]),A=s(A,O,R,E,m,7,c[4]),E=s(E,A,O,R,v,12,c[5]),R=s(R,E,A,O,g,17,c[6]),O=s(O,R,E,A,_,22,c[7]),A=s(A,O,R,E,b,7,c[8]),E=s(E,A,O,R,y,12,c[9]),R=s(R,E,A,O,w,17,c[10]),O=s(O,R,E,A,k,22,c[11]),A=s(A,O,R,E,x,7,c[12]),E=s(E,A,O,R,S,12,c[13]),R=s(R,E,A,O,T,17,c[14]),A=l(A,O=s(O,R,E,A,P,22,c[15]),R,E,u,5,c[16]),E=l(E,A,O,R,g,9,c[17]),R=l(R,E,A,O,k,14,c[18]),O=l(O,R,E,A,o,20,c[19]),A=l(A,O,R,E,v,5,c[20]),E=l(E,A,O,R,w,9,c[21]),R=l(R,E,A,O,P,14,c[22]),O=l(O,R,E,A,m,20,c[23]),A=l(A,O,R,E,y,5,c[24]),E=l(E,A,O,R,T,9,c[25]),R=l(R,E,A,O,p,14,c[26]),O=l(O,R,E,A,b,20,c[27]),A=l(A,O,R,E,S,5,c[28]),E=l(E,A,O,R,h,9,c[29]),R=l(R,E,A,O,_,14,c[30]),A=d(A,O=l(O,R,E,A,x,20,c[31]),R,E,v,4,c[32]),E=d(E,A,O,R,b,11,c[33]),R=d(R,E,A,O,k,16,c[34]),O=d(O,R,E,A,T,23,c[35]),A=d(A,O,R,E,u,4,c[36]),E=d(E,A,O,R,m,11,c[37]),R=d(R,E,A,O,_,16,c[38]),O=d(O,R,E,A,w,23,c[39]),A=d(A,O,R,E,S,4,c[40]),E=d(E,A,O,R,o,11,c[41]),R=d(R,E,A,O,p,16,c[42]),O=d(O,R,E,A,g,23,c[43]),A=d(A,O,R,E,y,4,c[44]),E=d(E,A,O,R,x,11,c[45]),R=d(R,E,A,O,P,16,c[46]),A=f(A,O=d(O,R,E,A,h,23,c[47]),R,E,o,6,c[48]),E=f(E,A,O,R,_,10,c[49]),R=f(R,E,A,O,T,15,c[50]),O=f(O,R,E,A,v,21,c[51]),A=f(A,O,R,E,x,6,c[52]),E=f(E,A,O,R,p,10,c[53]),R=f(R,E,A,O,w,15,c[54]),O=f(O,R,E,A,u,21,c[55]),A=f(A,O,R,E,b,6,c[56]),E=f(E,A,O,R,P,10,c[57]),R=f(R,E,A,O,g,15,c[58]),O=f(O,R,E,A,S,21,c[59]),A=f(A,O,R,E,m,6,c[60]),E=f(E,A,O,R,k,10,c[61]),R=f(R,E,A,O,h,15,c[62]),O=f(O,R,E,A,y,21,c[63]),i[0]=i[0]+A|0,i[1]=i[1]+O|0,i[2]=i[2]+R|0,i[3]=i[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var i=e.floor(r/4294967296),o=r;n[15+(a+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var c=this._hash,u=c.words,s=0;s<4;s++){var l=u[s];u[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return c},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,r,a,i,o){var c=e+(t&n|~t&r)+a+o;return(c<<i|c>>>32-i)+t}function l(e,t,n,r,a,i,o){var c=e+(t&r|n&~r)+a+o;return(c<<i|c>>>32-i)+t}function d(e,t,n,r,a,i,o){var c=e+(t^n^r)+a+o;return(c<<i|c>>>32-i)+t}function f(e,t,n,r,a,i,o){var c=e+(n^(t|~r))+a+o;return(c<<i|c>>>32-i)+t}t.MD5=i._createHelper(u),t.HmacMD5=i._createHmacHelper(u)}(Math),n.MD5)})),v((function(e,t){var n,r,a;e.exports=(r=(n=g).lib.Base,a=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.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(),o=this._iKey=t.clone(),c=i.words,u=o.words,s=0;s<n;s++)c[s]^=1549556828,u[s]^=909522486;i.sigBytes=o.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))}})))})),v((function(e,t){e.exports=g.HmacMD5})));function b(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function y(e){return"object"===b(e)}var w=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(e,r){var a;return(0,l.default)(this,n),a=t.call(this,e),a.code=r,a}return n}((0,h.default)(Error));function k(e){return e&&"string"==typeof e?JSON.parse(e):e}var x=!1,S="h5",T=k(void 0),P=k([]),A=!0,O="";try{var R=n("7f07").default||n("7f07");O=R.appid}catch(jt){}var E={};function I(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=E,n=e,Object.prototype.hasOwnProperty.call(t,n)||(E[e]=r),E[e]}"app-plus"===S&&(E=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var C=["invoke","success","fail","complete"],D=I("_globalUniCloudInterceptor");function U(e,t){D[e]||(D[e]={}),y(t)&&Object.keys(t).forEach((function(n){C.indexOf(n)>-1&&function(e,t,n){var r=D[e][t];r||(r=D[e][t]=[]),-1===r.indexOf(n)&&"function"==typeof n&&r.push(n)}(e,n,t[n])}))}function F(e,t){D[e]||(D[e]={}),y(t)?Object.keys(t).forEach((function(n){C.indexOf(n)>-1&&function(e,t,n){var r=D[e][t];if(r){var a=r.indexOf(n);a>-1&&r.splice(a,1)}}(e,n,t[n])})):delete D[e]}function j(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function q(e,t){return D[e]&&D[e][t]||[]}function M(e,t){return t?function(n){var r,a=this,i="callFunction"===t&&"DCloud-clientDB"===(n&&n.name);r=this.isReady?Promise.resolve():this.initUniCloud,n=n||{};var o=r.then((function(){return i?Promise.resolve():j(q(t,"invoke"),n)})).then((function(){return e.call(a,n)})).then((function(e){return i?Promise.resolve(e):j(q(t,"success"),e).then((function(){return j(q(t,"complete"),e)})).then((function(){return Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):j(q(t,"fail"),e).then((function(){return j(q(t,"complete"),e)})).then((function(){return Promise.reject(e)}))}));if(!(n.success||n.fail||n.complete))return o;o.then((function(e){n.success&&n.success(e),n.complete&&n.complete(e)}),(function(e){n.fail&&n.fail(e),n.complete&&n.complete(e)}))}: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 N,L=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(e){var r;return(0,l.default)(this,n),r=t.call(this,e.message),r.errMsg=e.message||"",Object.defineProperties((0,s.default)(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}((0,h.default)(Error));function B(){var e=uni.getLocale&&uni.getLocale()||"en";if(N)return(0,u.default)((0,u.default)({},N),{},{LOCALE:e});var t=uni.getSystemInfoSync(),n=t.deviceId,r=t.platform;return N={PLATFORM:S,OS:r,APPID:O,DEVICEID:n,CLIENT_SDK_VERSION:"1.0.21"},(0,u.default)((0,u.default)({},N),{},{LOCALE:e})}var $,z={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),_(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={}),x&&"h5"===S&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return r(new L({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var a=e.data;if(a.error)return r(new L({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))}},K={request:function(e){return uni.request(e)},uploadFile:function(e){return uni.uploadFile(e)},setStorageSync:function(e,t){return uni.setStorageSync(e,t)},getStorageSync:function(e){return uni.getStorageSync(e)},removeStorageSync:function(e){return uni.removeStorageSync(e)},clearStorageSync:function(){return uni.clearStorageSync()}},V={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},W=(0,p.initVueI18n)({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:V,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:V},"zh-Hans"),H=W.t,J=function(){function e(t){(0,l.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(H("uniCloud.init.paramRequired",{param: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=K,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}return(0,c.default)(e,[{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return z.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=z.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"]=z.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"pending"===this._getAccessTokenPromiseStatus||(this._getAccessTokenPromiseStatus="pending",this._getAccessTokenPromise=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),e._getAccessTokenPromiseStatus="fulfilled",n(e.accessToken)):(e._getAccessTokenPromiseStatus="rejected",r(new L({code:"AUTH_FAILED",message:"获取accessToken失败"})))}))}),(function(t){return e._getAccessTokenPromiseStatus="rejected",Promise.reject(t)}))),this._getAccessTokenPromise}},{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,a=e.name,i=e.filePath,o=e.fileType,c=e.onUploadProgress;return new Promise((function(e,u){var s=t.adapter.uploadFile({url:n,formData:r,name:a,filePath:i,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):u(new L({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new L({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof c&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){c({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,a=e.fileType,i=void 0===a?"image":a,o=e.onUploadProgress,c=e.config;if("string"!==b(r))throw new L({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(r=r.trim()))throw new L({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});if(/:\/\//.test(r))throw new L({code:"INVALID_PARAM",message:"cloudPath不合法"});var u,s,l=c&&c.envType||this.config.envType;return this.getOSSUploadOptionsFromPath({env:l,filename:r}).then((function(e){var r=e.result;u=r.id,s="https://"+r.cdnDomain+"/"+r.ossPath;var a={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({},a,{onUploadProgress:o}))})).then((function(){return t.reportOSSUpload({id:u})})).then((function(e){return new Promise((function(t,r){e.success?t({success:!0,filePath:n,fileID:s}):r(new L({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 L({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"hasAccessToken",get:function(){return!!this.accessToken}}]),e}(),G={init:function(e){var t=new J(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Y="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}($||($={}));var X,Q=function(){},Z=function(){var e;if(!Promise){e=function(){},e.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};function ee(e){return void 0===e}function te(e){return"[object Null]"===Object.prototype.toString.call(e)}function ne(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),a=(0,o.default)(r);try{for(a.s();!(n=a.n()).done;){var i=n.value,c=i.isMatch,u=i.genAdapter,s=i.runtime;if(c())return{adapter:u(),runtime:s}}}catch(l){a.e(l)}finally{a.f()}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(X||(X={}));var re={adapter:null,runtime:void 0},ae=["anonymousUuidKey"],ie=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){var e;return(0,l.default)(this,n),e=t.call(this),re.adapter.root.tcbObject||(re.adapter.root.tcbObject={}),e}return(0,c.default)(n,[{key:"setItem",value:function(e,t){re.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return re.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete re.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete re.adapter.root.tcbObject}}]),n}(Q);function oe(e,t){switch(e){case"local":return t.localStorage||new ie;case"none":return new ie;default:return t.sessionStorage||new ie}}var ce=function(){function e(t){if((0,l.default)(this,e),!this._storage){this._persistence=re.adapter.primaryStorage||t.persistence,this._storage=oe(this._persistence,re.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),a="refresh_token_".concat(t.env),i="anonymous_uuid_".concat(t.env),o="login_type_".concat(t.env),c="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:a,anonymousUuidKey:i,loginTypeKey:o,userInfoKey:c}}}return(0,c.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=oe(e,re.adapter);for(var r in this.keys){var a=this.keys[r];if(!t||!ae.includes(r)){var i=this._storage.getItem(a);ee(i)||te(i)||(n.setItem(a,i),this._storage.removeItem(a))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},a=JSON.stringify(r);try{this._storage.setItem(e,a)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),ue={},se={};function le(e){return ue[e]}var de=function e(t,n){(0,l.default)(this,e),this.data=n||null,this.name=t},fe=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(e,r){var a;return(0,l.default)(this,n),a=t.call(this,"error",{error:e,data:r}),a.error=e,a}return n}(de),he=new(function(){function e(){(0,l.default)(this,e),this._listeners={}}return(0,c.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof fe)return console.error(e.error),this;var n="string"==typeof e?new de(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var a,c=this._listeners[r]?(0,i.default)(this._listeners[r]):[],u=(0,o.default)(c);try{for(u.s();!(a=u.n()).done;){var s=a.value;s.call(this,n)}}catch(l){u.e(l)}finally{u.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function pe(e,t){he.on(e,t)}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};he.fire(e,t)}function ve(e,t){he.off(e,t)}var ge,_e="loginStateChanged",be="loginStateExpire",ye="loginTypeChanged",we="anonymousConverted",ke="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(ge||(ge={}));var xe=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Se={"X-SDK-Version":"1.3.5"};function Te(e,t,n){var r=e[t];e[t]=function(t){var a={},i={};n.forEach((function(n){var r=n.call(e,t),o=r.data,c=r.headers;Object.assign(a,o),Object.assign(i,c)}));var o=t.data;return o&&function(){var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data=(0,u.default)((0,u.default)({},o),a);else for(var n in a)o.append(n,a[n])}(),t.headers=(0,u.default)((0,u.default)({},t.headers||{}),i),r.call(e,t)}}function Pe(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:(0,u.default)((0,u.default)({},Se),{},{"x-seqid":e})}}var Ae=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(this,e),this.config=n,this._reqClass=new re.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=le(this.config.env),this._localCache=(t=this.config.env,se[t]),Te(this._reqClass,"post",[Pe]),Te(this._reqClass,"upload",[Pe]),Te(this._reqClass,"download",[Pe])}return(0,c.default)(e,[{key:"post",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upload",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"download",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refreshAccessToken",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"_refreshAccessToken",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t,n,r,a,i,o,c,u,s,l,d,f,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,a=t.refreshTokenKey,i=t.loginTypeKey,o=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),c=this._cache.getStore(a),c){e.next=5;break}throw new Error("未登录CloudBase");case 5:return u={refresh_token:c},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(s=e.sent,!s.data.code){e.next=21;break}if(l=s.data.code,"SIGN_PARAM_INVALID"!==l&&"REFRESH_TOKEN_EXPIRED"!==l&&"INVALID_REFRESH_TOKEN"!==l){e.next=20;break}if(this._cache.getStore(i)!==ge.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==l){e.next=19;break}return d=this._cache.getStore(o),f=this._cache.getStore(a),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:f});case 17:return h=e.sent,e.abrupt("return",(this.setRefreshToken(h.refresh_token),this._refreshAccessToken()));case 19:me(be),this._cache.removeStore(a);case 20:throw new Error("刷新access token失败:".concat(s.data.code));case 21:if(!s.data.access_token){e.next=23;break}return e.abrupt("return",(me(ke),this._cache.setStore(n,s.data.access_token),this._cache.setStore(r,s.data.access_token_expire+Date.now()),{accessToken:s.data.access_token,accessTokenExpire:s.data.access_token_expire}));case 23:s.data.refresh_token&&(this._cache.removeStore(a),this._cache.setStore(a,s.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAccessToken",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t,n,r,a,i,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,a=t.refreshTokenKey,this._cache.getStore(a)){e.next=3;break}throw new Error("refresh token不存在,登录状态异常");case 3:if(i=this._cache.getStore(n),o=this._cache.getStore(r),c=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(i,o);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!i||!o||o<Date.now())&&c?this.refreshAccessToken():{accessToken:i,accessTokenExpire:o});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"request",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t,n,r){var a,i,o,c,s,l,d,f,h,p,m,v,g,_,b,y;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a="x-tcb-trace_".concat(this.config.env),i="application/x-www-form-urlencoded",o=(0,u.default)({action:t,env:this.config.env,dataVersion:"2019-08-16"},n),-1!==xe.indexOf(t)){e.next=10;break}if(c=this._cache.keys.refreshTokenKey,e.t0=this._cache.getStore(c),!e.t0){e.next=10;break}return e.next=9,this.getAccessToken();case 9:o.access_token=e.sent.accessToken;case 10:if("storage.uploadFile"===t){for(l in s=new FormData,s)s.hasOwnProperty(l)&&void 0!==s[l]&&s.append(l,o[l]);i="multipart/form-data"}else for(d in i="application/json",s={},o)void 0!==o[d]&&(s[d]=o[d]);return f={headers:{"content-type":i}},r&&r.onUploadProgress&&(f.onUploadProgress=r.onUploadProgress),h=this._localCache.getStore(a),h&&(f.headers["X-TCB-Trace"]=h),p=n.parse,m=n.inQuery,v=n.search,g={env:this.config.env},p&&(g.parse=!0),m&&(g=(0,u.default)((0,u.default)({},m),g)),_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),a="";for(var i in n)""===a?!r&&(t+="?"):a+="&",a+="".concat(i,"=").concat(encodeURIComponent(n[i]));return/^http(s)?\:\/\//.test(t+=a)?t:"".concat(e).concat(t)}(Y,"//tcb-api.tencentcloudapi.com/web",g),v&&(_+=v),e.next=22,this.post((0,u.default)({url:_,data:s},f));case 22:if(b=e.sent,y=b.header&&b.header["x-tcb-trace"],y&&this._localCache.setStore(a,y),(200===Number(b.status)||200===Number(b.statusCode))&&b.data){e.next=26;break}throw new Error("network request error");case 26:return e.abrupt("return",b);case 27:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"send",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var n,r,a,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 3:if(r=e.sent,"ACCESS_TOKEN_EXPIRED"!==r.data.code||-1!==xe.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 9:if(a=e.sent,!a.data.code){e.next=12;break}throw new Error("[".concat(a.data.code,"] ").concat(a.data.message));case 12:return e.abrupt("return",a.data);case 13:if(!r.data.code){e.next=15;break}throw new Error("[".concat(r.data.code,"] ").concat(r.data.message));case 15:return e.abrupt("return",r.data);case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,a=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(a,e)}}]),e}(),Oe={};function Re(e){return Oe[e]}var Ee=function(){function e(t){(0,l.default)(this,e),this.config=t,this._cache=le(t.env),this._request=Re(t.env)}return(0,c.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,a=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(a,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,a=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(a,t)}},{key:"refreshUserInfo",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),Ie=function(){function e(t){if((0,l.default)(this,e),!t)throw new Error("envId is not defined");this._envId=t,this._cache=le(this._envId),this._request=Re(this._envId),this.setUserInfo()}return(0,c.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new Error("ticket must be string");return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new Error("username must be a string");return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t,n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,a=n.users,e.abrupt("return",(a.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:a,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var n,r,a,i,o,c,u,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,a=t.avatarUrl,i=t.province,o=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:a,province:i,country:o,city:c});case 8:u=e.sent,s=u.data,this.setLocalUserInfo(s);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refresh",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),Ce=function(){function e(t){if((0,l.default)(this,e),!t)throw new Error("envId is not defined");this._cache=le(t);var n=this._cache.keys,r=n.refreshTokenKey,a=n.accessTokenKey,i=n.accessTokenExpireKey,o=this._cache.getStore(r),c=this._cache.getStore(a),u=this._cache.getStore(i);this.credential={refreshToken:o,accessToken:c,accessTokenExpire:u},this.user=new Ie(t)}return(0,c.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===ge.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===ge.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===ge.WECHAT||this.loginType===ge.WECHAT_OPEN||this.loginType===ge.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),De=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,c.default)(n,[{key:"signIn",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t,n,r,a,i,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,r=t.refreshTokenKey,a=this._cache.getStore(n)||void 0,i=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:a,refresh_token:i});case 8:if(o=e.sent,!o.uuid||!o.refresh_token){e.next=20;break}return this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),e.next=14,this._request.refreshAccessToken();case 14:return me(_e),me(ye,{env:this.config.env,loginType:ge.ANONYMOUS,persistence:"local"}),c=new Ce(this.config.env),e.next=19,c.user.refresh();case 19:return e.abrupt("return",c);case 20:throw new Error("匿名登录失败");case 21:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var n,r,a,i,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,a=n.refreshTokenKey,i=this._cache.getStore(r),o=this._cache.getStore(a),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:o,ticket:t});case 7:if(c=e.sent,!c.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return me(we,{env:this.config.env}),me(ye,{loginType:ge.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new Error("匿名转化失败");case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,ge.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(Ee),Ue=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,c.default)(n,[{key:"signIn",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Error("ticket must be a string");case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return me(_e),me(ye,{env:this.config.env,loginType:ge.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new Ce(this.config.env));case 15:throw new Error("自定义登录失败");case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),n}(Ee),Fe=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,c.default)(n,[{key:"signIn",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t,n){var r,a,i,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Error("email must be a string");case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(a=e.sent,i=a.refresh_token,o=a.access_token,c=a.access_token_expire,!i){e.next=22;break}if(this.setRefreshToken(i),!o||!c){e.next=15;break}this.setAccessToken(o,c),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return me(_e),me(ye,{env:this.config.env,loginType:ge.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new Ce(this.config.env));case 22:throw a.code?new Error("邮箱登录失败: [".concat(a.code,"] ").concat(a.message)):new Error("邮箱登录失败");case 23:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"activate",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"resetPasswordWithToken",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(Ee),je=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,c.default)(n,[{key:"signIn",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t,n){var r,a,i,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Error("username must be a string");case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:ge.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(a=e.sent,i=a.refresh_token,o=a.access_token_expire,c=a.access_token,!i){e.next=23;break}if(this.setRefreshToken(i),!c||!o){e.next=16;break}this.setAccessToken(c,o),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return me(_e),me(ye,{env:this.config.env,loginType:ge.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new Ce(this.config.env));case 23:throw a.code?new Error("用户名密码登录失败: [".concat(a.code,"] ").concat(a.message)):new Error("用户名密码登录失败");case 24:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(Ee),qe=function(){function e(t){(0,l.default)(this,e),this.config=t,this._cache=le(t.env),this._request=Re(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),pe(ye,this._onLoginTypeChanged)}return(0,c.default)(e,[{key:"anonymousAuthProvider",value:function(){return new De(this.config)}},{key:"customAuthProvider",value:function(){return new Ue(this.config)}},{key:"emailAuthProvider",value:function(){return new Fe(this.config)}},{key:"usernameAuthProvider",value:function(){return new je(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new De(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Fe(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new je(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new De(this.config)),pe(we,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"signOut",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t,n,r,a,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==ge.ANONYMOUS){e.next=2;break}throw new Error("匿名用户不支持登出操作");case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,a=t.accessTokenExpireKey,i=this._cache.getStore(n),i){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:i});case 7:return o=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(a),me(_e),me(ye,{env:this.config.env,loginType:ge.NULL,persistence:this.config.persistence}),o));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onLoginStateChanged",value:function(e){var t=this;pe(_e,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){pe(be,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){pe(ke,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){pe(we,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;pe(ye,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new Ce(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Error("username must be a string");case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Ue(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:(0,u.default)((0,u.default)({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,r=t.persistence,a=t.env;a===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}},{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),Me=function(e,t){t=t||Z();var n=Re(this.config.env),r=e.cloudPath,a=e.filePath,i=e.onUploadProgress,o=e.fileType,c=void 0===o?"image":o;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var o=e.data,u=o.url,s=o.authorization,l=o.token,d=o.fileId,f=o.cosFileId,h=e.requestId,p={key:r,signature:s,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":l};n.upload({url:u,data:p,file:a,name:r,fileType:c,onUploadProgress:i}).then((function(e){201===e.statusCode?t(null,{fileID:d,requestId:h}):t(new Error("STORAGE_REQUEST_FAIL: ".concat(e.data)))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},Ne=function(e,t){t=t||Z();var n=Re(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},Le=function(e,t){var n=e.fileList;if(t=t||Z(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,a=(0,o.default)(n);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(u){a.e(u)}finally{a.f()}var c={fileid_list:n};return Re(this.config.env).send("storage.batchDeleteFile",c).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},Be=function(e,t){var n=e.fileList;t=t||Z(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,a=[],i=(0,o.default)(n);try{for(i.s();!(r=i.n()).done;){var c=r.value;"object"==typeof c?(c.hasOwnProperty("fileID")&&c.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),a.push({fileid:c.fileID,max_age:c.maxAge})):"string"==typeof c?a.push({fileid:c}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(s){i.e(s)}finally{i.f()}var u={file_list:a};return Re(this.config.env).send("storage.batchGetDownloadUrl",u).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},$e=function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t,n){var r,a,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,Be.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(a=e.sent.fileList[0],"SUCCESS"===a.code){e.next=6;break}return e.abrupt("return",n?n(a):new Promise((function(e){e(a)})));case 6:if(i=Re(this.config.env),o=a.download_url,o=encodeURI(o),n){e.next=10;break}return e.abrupt("return",i.download({url:o}));case 10:return e.t0=n,e.next=13,i.download({url:o});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),ze=function(e,t){var n,r=e.name,a=e.data,i=e.query,o=e.parse,c=e.search,u=t||Z();try{n=a?JSON.stringify(a):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new Error("函数名不能为空"));var s={inQuery:i,parse:o,search:c,function_name:r,request_data:n};return Re(this.config.env).send("functions.invokeFunction",s).then((function(e){if(e.code)u(null,e);else{var t=e.data.response_data;if(o)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},Ke={timeout:15e3,persistence:"session"},Ve={},We=function(){function e(t){(0,l.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,c.default)(e,[{key:"init",value:function(t){switch(re.adapter||(this.requestClient=new re.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=(0,u.default)((0,u.default)({},Ke),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,r=t||re.adapter.primaryStorage||Ke.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;ue[t]=new ce(e),se[t]=new ce((0,u.default)((0,u.default)({},e),{},{persistence:"local"}))}(this.config),n=this.config,Oe[n.env]=new Ae(n),this.authObj=new qe(this.config),this.authObj}},{key:"on",value:function(e,t){return pe.apply(this,[e,t])}},{key:"off",value:function(e,t){return ve.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return ze.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return Le.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return Be.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return $e.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return Me.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return Ne.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Ve[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=Ve[t],r){e.next=3;break}throw Error("扩展".concat(t," 必须先注册"));case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"useAdapters",value:function(e){var t=ne(e)||{},n=t.adapter,r=t.runtime;n&&(re.adapter=n),r&&(re.runtime=r)}}]),e}(),He=new We;function Je(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),a="";for(var i in n)""===a?!r&&(t+="?"):a+="&",a+=i+"="+encodeURIComponent(n[i]);return/^http(s)?:\/\//.test(t+=a)?t:""+e+t}var Ge=function(){function e(){(0,l.default)(this,e)}return(0,c.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers;return new Promise((function(e,a){K.request({url:Je("https:",t),data:n,method:"POST",header:r,success:function(t){e(t)},fail:function(e){a(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,a=e.file,i=e.data,o=e.headers,c=e.fileType,u=K.uploadFile({url:Je("https:",r),name:"file",formData:Object.assign({},i),filePath:a,fileType:c,header:o,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){x&&"mp-alipay"===S&&console.warn("支付宝小程序开发工具上传腾讯云时无法准确判断是否上传成功,请使用真机测试"),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}(),Ye={setItem:function(e,t){K.setStorageSync(e,t)},getItem:function(e){return K.getStorageSync(e)},removeItem:function(e){K.removeStorageSync(e)},clear:function(){K.clearStorageSync()}},Xe={genAdapter:function(){return{root:{},reqClass:Ge,localStorage:Ye,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};He.useAdapters(Xe);var Qe=He,Ze=Qe.init;Qe.init=function(e){e.env=e.spaceId;var t=Ze.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]=M(t[e]).bind(t)})),t},t.customAuth=t.auth,t};var et=Qe;function tt(){return{token:K.getStorageSync("uni_id_token")||K.getStorageSync("uniIdToken"),tokenExpired:K.getStorageSync("uni_id_token_expired")}}function nt(){x&&"h5"===S&&uni.getStorageSync("__LAST_DCLOUD_APPID")!==O&&(uni.setStorageSync("__LAST_DCLOUD_APPID",O),console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"),K.removeStorageSync("uni_id_token"),K.removeStorageSync("uniIdToken"),K.removeStorageSync("uni_id_token_expired"))}var rt=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,c.default)(n,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,n){var r="Anonymous_Access_token";e.setAccessToken(r),t(r)}))}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=z.sign(n,this.config.clientSecret);var a=B();r["x-client-info"]=JSON.stringify(a);var i=tt(),o=i.token;return r["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,a=e.name,i=e.filePath,o=e.fileType,c=e.onUploadProgress;return new Promise((function(e,u){var s=t.adapter.uploadFile({url:n,formData:r,name:a,filePath:i,fileType:o,success:function(t){t&&t.statusCode<400?e(t):u(new L({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new L({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof c&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){c({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,a=e.cloudPath,i=e.fileType,o=void 0===i?"image":i,c=e.onUploadProgress;if(!a)throw new L({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:a}).then((function(e){var a=e.result,i=a.url,u=a.formData,s=a.name;t=e.result.fileUrl;var l={url:i,formData:u,name:s,filePath:r,fileType:o};return n.uploadFileToOSS(Object.assign({},l,{onUploadProgress:c}))})).then((function(){return n.reportOSSUpload({cloudPath:a})})).then((function(e){return new Promise((function(n,a){e.success?n({success:!0,filePath:r,fileID:t}):a(new L({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n))}}]),n}(J),at={init:function(e){var t=new rt(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};function it(e){var t,n=e.data;t=B();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var a=tt(),i=a.token;i&&(r.uniIdToken=i)}return r}function ot(e){var t=this,n=e.name,r=e.data,a=this.localAddress,i=this.localPort,o={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],c=this.config.spaceId,u="http://".concat(a,":").concat(i,"/system/check-function"),s="http://".concat(a,":").concat(i,"/cloudfunctions/").concat(n);return new Promise((function(e,t){K.request({method:"POST",url:u,data:{name:n,platform:S,provider:o,spaceId:c},timeout:3e3,success:function(t){e(t)},fail:function(){e({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=t||{},r=n.code,a=n.message;return{code:0===r?0:r||"SYS_ERR",message:a||"SYS_ERR"}})).then((function(e){var a=e.code,i=e.message;if(0!==a){switch(a){case"MODULE_ENCRYPTED":console.error("此云函数(".concat(n,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":console.error("此云函数(".concat(n,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":console.error(i||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":var c="连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw console.error(c),new Error(c);case"SWITCH_TO_CLOUD":break;default:var u="检测本地调试服务出现错误:".concat(i,",请检查网络环境或重启客户端再试");throw console.error(u),new Error(u)}return t._originCallFunction({name:n,data:r})}return new Promise((function(e,n){var a=it.call(t,{data:r});K.request({method:"POST",url:s,data:{provider:o,platform:S,param:a},success:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.statusCode,a=t.data;return!r||r>=400?n(new L({code:a.code||"SYS_ERR",message:a.message||"request:fail"})):e({result:a})},fail:function(e){n(new L({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))}))}var ct=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],ut=/[\\^$.*+?()[\]{}|]/g,st=RegExp(ut.source);function lt(e,t,n){return e.replace(new RegExp((r=t)&&st.test(r)?r.replace(ut,"\\$&"):r,"g"),n);var r}function dt(e){var t=e.functionName,n=e.result,r=e.logPvd;if(this.config.useDebugFunction&&n&&n.requestId){var a=JSON.stringify({spaceId:this.config.spaceId,functionName:t,requestId:n.requestId});console.log("[".concat(r,"-request]").concat(a,"[/").concat(r,"-request]"))}}function ft(e){var t=e.callFunction,n=function(n){var r=this,a=n.name;n.data=it.call(e,{data:n.data});var i={aliyun:"aliyun",tencent:"tcb"}[this.config.provider];return t.call(this,n).then((function(e){return dt.call(r,{functionName:a,result:e,logPvd:i}),Promise.resolve(e)}),(function(e){return dt.call(r,{functionName:a,result:e,logPvd:i}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,a=void 0===r?{}:r,i=e.formatter,o=void 0===i?[]:i,c=0;c<o.length;c++){var u=o[c],s=u.rule,l=u.content,d=u.mode,f=n.match(s);if(f){for(var h=l,p=1;p<f.length;p++)h=lt(h,"{$".concat(p,"}"),f[p]);for(var m in a)h=lt(h,"{".concat(m,"}"),a[m]);return"replace"===d?h:n+h}}return n}({message:"[".concat(n.name,"]: ").concat(e.message),formatter:ct,extraInfo:{functionName:a}})),Promise.reject(e)}))};e.callFunction=function(t){var r;return x&&e.debugInfo&&!e.debugInfo.forceRemote&&P?(e._originCallFunction||(e._originCallFunction=n),r=ot.call(this,t)):r=n.call(this,t),Object.defineProperty(r,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),r}}var ht=Symbol("CLIENT_DB_INTERNAL");function pt(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=ht,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if(n in e||"string"!=typeof n){var a=e[n];return"function"==typeof a?a.bind(e):a}return t.get(e,n,r)}})}function mt(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var vt=["db.Geo","db.command","command.aggregate"];function gt(e,t){return vt.indexOf("".concat(e,".").concat(t))>-1}function _t(e){switch(b(e)){case"array":return e.map((function(e){return _t(e)}));case"object":return e._internalType===ht||Object.keys(e).forEach((function(t){e[t]=_t(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}var bt=function(){function e(t,n,r){(0,l.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,c.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:_t(e.$param)}}))}}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"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("clientDB禁止使用set方法")}},{key:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();if(r.$db.push({$method:e,$param:_t(t)}),x){var a=r.$db.find((function(e){return"collection"===e.$method})),i=a&&a.$param;i&&1===i.length&&"string"==typeof a.$param[0]&&a.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:n,command:r})}},{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 yt({$method:"count",$param:_t(Array.from(arguments))},e,this._database)}}}]),e}();function yt(e,t,n){return pt(new bt(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),gt(r,t)?yt({$method:t},e,n):function(){return yt({$method:t,$param:_t(Array.from(arguments))},e,n)}}})}function wt(e){var t=e.path,n=e.method;return function(){function e(){(0,l.default)(this,e),this.param=Array.from(arguments)}return(0,c.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,i.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}}]),e}()}var kt,xt=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,c.default)(n,[{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,a=e.multiCommand,i=e.queryList;function o(e,t){if(a&&i)for(var n=0;n<i.length;n++){var r=i[n];r.udb&&"function"==typeof r.udb.setResult&&(t?r.udb.setResult(t):r.udb.setResult(e.result.dataList[n]))}}var c=j(q("database","invoke")),u=this._uniClient;return c.then((function(){return u.callFunction({name:"DCloud-clientDB",data:{action:n,command:r,multiCommand:a}})})).then((function(e){var n=e.result,r=n.code,a=n.message,i=n.token,c=n.tokenExpired,u=n.systemInfo,s=void 0===u?[]:u;if(s)for(var l=0;l<s.length;l++){var d=s[l],f=d.level,h=d.message,p=d.detail,m=console["app-plus"===S&&"warn"===f?"error":f]||console.log,v="[System Info]"+h;p&&(v="".concat(v,"\n详细信息:").concat(p)),m(v)}if(r){var g=new w(a,r);return t._callback("error",[g]),Promise.reject(g)}i&&c&&(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&K.setStorageSync("uni_id_token",t),n&&K.setStorageSync("uni_id_token_expired",n)}({token:i,tokenExpired:c}),t._callbackAuth("refreshToken",[{token:i,tokenExpired:c}]),t._callback("refreshToken",[{token:i,tokenExpired:c}]));var _=e.result.affectedDocs;return"number"==typeof _&&Object.defineProperty(e.result,"affectedDocs",{get:function(){return console.warn("affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"),_}}),j(q("database","success"),e).then((function(){return j(q("database","complete"),e)})).then((function(){return o(e,null),Promise.resolve(e)}))}),(function(e){var n=new w(e.message,e.code||"SYSTEM_ERROR");return t._callback("error",[n]),/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),j(q("database","fail"),e).then((function(){return j(q("database","complete"),e)})).then((function(){return o(null,e),Promise.reject(e)}))}))}}]),n}(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n;(0,l.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r.isDefault&&(this._dbCallBacks=I("_globalUniCloudDatabaseCallback")),this.auth=mt(this._authCallBacks),Object.assign(this,mt(this._dbCallBacks)),this.env=pt({},{get:function(e,t){return{$env:t}}}),this.Geo=pt({},{get:function(e,t){return wt({path:["Geo"],method:t})}}),this.serverDate=wt({path:[],method:"serverDate"}),this.RegExp=wt({path:[],method:"RegExp"})}return(0,c.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,i.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,i.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}());function St(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return pt(new e(t),{get:function(e,t){return gt("db",t)?yt({$method:t},null,e):function(){return yt({$method:t,$param:_t(Array.from(arguments))},null,e)}}})}(xt,{uniClient:e});return this._database=n,n}}var Tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Pt=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function At(){var e,t,n=tt().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(kt(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}kt="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Pt.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,a="",i=0;i<e.length;)t=Tt.indexOf(e.charAt(i++))<<18|Tt.indexOf(e.charAt(i++))<<12|(n=Tt.indexOf(e.charAt(i++)))<<6|(r=Tt.indexOf(e.charAt(i++))),a+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return a}:atob;var Ot=m(v((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",r="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function i(e,t,r){var a=r.onChooseFile,i=r.onUploadProgress;return t.then((function(e){if(a){var t=a(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,a=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var i=t.tempFiles,o=i.length,c=0;return new Promise((function(n){for(;c<r;)u();function u(){var r=c++;if(r>=o)!i.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var s=i[r];e.uploadFile({filePath:s.path,cloudPath:s.cloudPath,fileType:s.fileType,onUploadProgress:function(e){e.index=r,e.tempFile=s,e.tempFilePath=s.path,a&&a(e)}}).then((function(e){s.url=e.fileID,r<o&&u()})).catch((function(e){s.errMsg=e.errMsg||e.message,r<o&&u()}))}}}))}(e,t,5,i)}))}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,n=e.sizeType,i=e.sourceType,o=void 0===i?["album","camera"]:i,c=e.extension;return new Promise((function(e,i){uni.chooseImage({count:t,sizeType:n,sourceType:o,extension:c,success:function(t){e(a(t,"image"))},fail:function(e){i({errMsg:e.errMsg.replace("chooseImage:fail",r)})}})}))}(t),t):"video"===t.type?i(e,function(e){var t=e.camera,n=e.compressed,i=e.maxDuration,o=e.sourceType,c=void 0===o?["album","camera"]:o,u=e.extension;return new Promise((function(e,o){uni.chooseVideo({camera:t,compressed:n,maxDuration:i,sourceType:c,extension:u,success:function(t){var n=t.tempFilePath,r=t.duration,i=t.size,o=t.height,c=t.width;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:c,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseVideo:fail",r)})}})}))}(t),t):i(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,i){var o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return i({errMsg:r+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success:function(t){e(a(t))},fail:function(e){i({errMsg:e.errMsg.replace("chooseFile:fail",r)})}})}))}(t),t)}}}))),Rt="manual";function Et(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if(e.loadtime!==Rt){for(var r=!1,a=[],i=2;i<t.length;i++)t[i]!==n[i]&&(a.push(t[i]),r=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(r,a)}}))},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,a=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,o=n.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=i.length<e.pageSize;var c=r?i.length?i[0]:void 0:i;e.mixinDatacomResData=c,a&&a(c)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,i&&i(t)})))},mixinDatacomGet:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.database(this.spaceInfo),a=n.action||this.action;a&&(r=r.action(a));var o=n.collection||this.collection;r=Array.isArray(o)?(t=r).collection.apply(t,(0,i.default)(o)):r.collection(o);var c=n.where||this.where;c&&Object.keys(c).length&&(r=r.where(c));var u=n.field||this.field;u&&(r=r.field(u));var s=n.foreignKey||this.foreignKey;s&&(r=r.foreignKey(s));var l=n.groupby||this.groupby;l&&(r=r.groupBy(l));var d=n.groupField||this.groupField;d&&(r=r.groupField(d)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(r=r.distinct());var f=n.orderby||this.orderby;f&&(r=r.orderBy(f));var h=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,p=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,m=void 0!==n.getcount?n.getcount:this.getcount,v=void 0!==n.gettree?n.gettree:this.gettree,g=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,_={getCount:m},b={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return v&&(_.getTree=b),g&&(_.getTreePath=b),r=r.skip(p*(h-1)).limit(p).get(_),r}}}}function It(e,t){return Ct.apply(this,arguments)}function Ct(){return Ct=(0,a.default)(regeneratorRuntime.mark((function e(t,n){var r,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="http://".concat(t,":").concat(n,"/system/ping"),e.prev=1,e.next=4,i={url:r,timeout:500},new Promise((function(e,t){K.request((0,u.default)((0,u.default)({},i),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return a=e.sent,e.abrupt("return",!(!a.data||0!==a.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),Ct.apply(this,arguments)}function Dt(e){if(!e.initUniCloudStatus||"rejected"===e.initUniCloudStatus){var t,n=Promise.resolve();t=1,n=new Promise((function(e,n){setTimeout((function(){e()}),t)})),e.isReady=!1,e.isDefault=!1;var r=e.auth();e.initUniCloudStatus="pending",e.initUniCloud=n.then((function(){return r.getLoginState()})).then((function(e){return e?Promise.resolve():r.signInAnonymously()})).then((function(){if(!x)return Promise.resolve();if(x&&e.debugInfo){var t=e.debugInfo,n=t.address,r=t.servePort;return function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t,n){var r,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<t.length)){e.next=11;break}return i=t[a],e.next=5,It(i,n);case 5:if(!e.sent){e.next=8;break}return r=i,e.abrupt("break",11);case 8:a++,e.next=1;break;case 11:return e.abrupt("return",{address:r,port:n});case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(n,r)}})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.address,r=t.port;if(!x)return Promise.resolve();if(n)e.localAddress=n,e.localPort=r;else if(e.debugInfo){var a=console["app-plus"===S?"error":"warn"],i="";"remote"===e.debugInfo.initialLaunchType?(e.debugInfo.forceRemote=!0,i="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs"):i="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs","h5"===S&&(i+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),a(i)}})).then((function(){nt(),e.isReady=!0,e.initUniCloudStatus="fulfilled"})).catch((function(t){console.error(t),e.initUniCloudStatus="rejected"}))}}var Ut=new(function(){function e(){(0,l.default)(this,e)}return(0,c.default)(e,[{key:"init",value:function(e){var t={},n=!1!==e.debugFunction&&x&&("h5"===S&&navigator.userAgent.indexOf("HBuilderX")>0||"app-plus"===S);switch(e.provider){case"tencent":t=et.init(Object.assign(e,{useDebugFunction:n}));break;case"aliyun":t=G.init(Object.assign(e,{useDebugFunction:n}));break;case"private":t=at.init(Object.assign(e,{useDebugFunction:n}));break;default:throw new Error("未提供正确的provider参数")}var r=T;return x&&r&&!r.code&&(t.debugInfo=r),Dt(t),t.reInit=function(){Dt(this)},ft(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),St(t),function(e){e.getCurrentUserInfo=At,e.chooseAndUploadFile=Ot.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Et(e)}})}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return t.reInit(),n.apply(t,Array.from(arguments))},t[e]=M(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=P,t={};if(1===e.length)t=e[0],Ut=Ut.init(t),Ut.isDefault=!0;else{var n,r=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo"];n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":A?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",r.forEach((function(e){Ut[e]=function(){return console.error(n),Promise.reject(new L({code:"SYS_ERR",message:n}))}}))}Object.assign(Ut,{get mixinDatacom(){return Et(Ut)}}),Ut.addInterceptor=U,Ut.removeInterceptor=F,x&&"h5"===S&&(window.uniCloud=Ut)})();var Ft=Ut;t.default=Ft}).call(this,n("c8ba"))},b168:function(e,t,n){"use strict";var r=n("2376"),a=n.n(r);a.a},b380:function(e,t,n){"use strict";function r(e,n){return t.default=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,n)}n("131a"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},b85c:function(e,t,n){"use strict";n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(n("06c5"));function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=(0,r.default)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,o=e},f:function(){try{c||null==n["return"]||n["return"]()}finally{if(u)throw o}}}}},baa5:function(e,t,n){var r=n("23e7"),a=n("e58c");r({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},bad1:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,"[data-v-03ca5974] .uni-select__input-placeholder{font-size:%?30?%!important}[data-v-03ca5974] .uni-input-placeholder{font-size:%?30?%!important}[data-v-03ca5974] .uni-select{padding:0!important;border:none!important;border-bottom:none!important;height:%?120?%!important;width:63vw!important;font-size:%?30?%!important}[data-v-03ca5974] .uni-forms-item__error{width:%?200?%!important}[data-v-03ca5974] .uni-forms-item__label{padding:0!important;height:%?120?%!important;font-size:%?30?%;width:%?170?%!important;font-weight:600}.content[data-v-03ca5974]{margin-top:%?20?%}.itemStyle[data-v-03ca5974]{display:flex;width:90%;height:%?120?%;line-height:%?120?%;border-bottom:1px solid #f8f8f8;background-color:#fff;margin:0 auto;padding:0 0 0 %?30?%;justify-content:space-between}.itemStyle .icon[data-v-03ca5974]{margin-right:%?30?%}.itemStyle uni-input[data-v-03ca5974]{width:70%;height:%?120?%;line-height:%?120?%}.itemStyle .itemSelect[data-v-03ca5974]{width:70%;height:%?100?%;line-height:%?100?%;position:relative}.itemStyle .itemSelect uni-text[data-v-03ca5974]{position:fixed;right:10%}.btnOrder[data-v-03ca5974]{color:#fff;background-color:#5b79ee;border-radius:20px;width:90%;margin-top:40px}",""]),e.exports=t},bb2f:function(e,t,n){var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},be9f:function(e,t,n){var r=n("cd7c");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("5baed1bc",r,!0,{sourceMap:!1,shadowMode:!1})},bf19:function(e,t,n){"use strict";var r=n("23e7");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},c28b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={id:"2852637",name:"uniui图标库",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]};t.default=r},cd7c:function(e,t,n){var r=n("24fb"),a=n("1de5"),i=n("4c87");t=r(!1);var o=a(i);t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uniui-color[data-v-aa8a3282]:before{content:"\\e6cf"}.uniui-wallet[data-v-aa8a3282]:before{content:"\\e6b1"}.uniui-settings-filled[data-v-aa8a3282]:before{content:"\\e6ce"}.uniui-auth-filled[data-v-aa8a3282]:before{content:"\\e6cc"}.uniui-shop-filled[data-v-aa8a3282]:before{content:"\\e6cd"}.uniui-staff-filled[data-v-aa8a3282]:before{content:"\\e6cb"}.uniui-vip-filled[data-v-aa8a3282]:before{content:"\\e6c6"}.uniui-plus-filled[data-v-aa8a3282]:before{content:"\\e6c7"}.uniui-folder-add-filled[data-v-aa8a3282]:before{content:"\\e6c8"}.uniui-color-filled[data-v-aa8a3282]:before{content:"\\e6c9"}.uniui-tune-filled[data-v-aa8a3282]:before{content:"\\e6ca"}.uniui-calendar-filled[data-v-aa8a3282]:before{content:"\\e6c0"}.uniui-notification-filled[data-v-aa8a3282]:before{content:"\\e6c1"}.uniui-wallet-filled[data-v-aa8a3282]:before{content:"\\e6c2"}.uniui-medal-filled[data-v-aa8a3282]:before{content:"\\e6c3"}.uniui-gift-filled[data-v-aa8a3282]:before{content:"\\e6c4"}.uniui-fire-filled[data-v-aa8a3282]:before{content:"\\e6c5"}.uniui-refreshempty[data-v-aa8a3282]:before{content:"\\e6bf"}.uniui-location-filled[data-v-aa8a3282]:before{content:"\\e6af"}.uniui-person-filled[data-v-aa8a3282]:before{content:"\\e69d"}.uniui-personadd-filled[data-v-aa8a3282]:before{content:"\\e698"}.uniui-back[data-v-aa8a3282]:before{content:"\\e6b9"}.uniui-forward[data-v-aa8a3282]:before{content:"\\e6ba"}.uniui-arrow-right[data-v-aa8a3282]:before{content:"\\e6bb"}.uniui-arrowthinright[data-v-aa8a3282]:before{content:"\\e6bb"}.uniui-arrow-left[data-v-aa8a3282]:before{content:"\\e6bc"}.uniui-arrowthinleft[data-v-aa8a3282]:before{content:"\\e6bc"}.uniui-arrow-up[data-v-aa8a3282]:before{content:"\\e6bd"}.uniui-arrowthinup[data-v-aa8a3282]:before{content:"\\e6bd"}.uniui-arrow-down[data-v-aa8a3282]:before{content:"\\e6be"}.uniui-arrowthindown[data-v-aa8a3282]:before{content:"\\e6be"}.uniui-bottom[data-v-aa8a3282]:before{content:"\\e6b8"}.uniui-arrowdown[data-v-aa8a3282]:before{content:"\\e6b8"}.uniui-right[data-v-aa8a3282]:before{content:"\\e6b5"}.uniui-arrowright[data-v-aa8a3282]:before{content:"\\e6b5"}.uniui-top[data-v-aa8a3282]:before{content:"\\e6b6"}.uniui-arrowup[data-v-aa8a3282]:before{content:"\\e6b6"}.uniui-left[data-v-aa8a3282]:before{content:"\\e6b7"}.uniui-arrowleft[data-v-aa8a3282]:before{content:"\\e6b7"}.uniui-eye[data-v-aa8a3282]:before{content:"\\e651"}.uniui-eye-filled[data-v-aa8a3282]:before{content:"\\e66a"}.uniui-eye-slash[data-v-aa8a3282]:before{content:"\\e6b3"}.uniui-eye-slash-filled[data-v-aa8a3282]:before{content:"\\e6b4"}.uniui-info-filled[data-v-aa8a3282]:before{content:"\\e649"}.uniui-reload[data-v-aa8a3282]:before{content:"\\e6b2"}.uniui-micoff-filled[data-v-aa8a3282]:before{content:"\\e6b0"}.uniui-map-pin-ellipse[data-v-aa8a3282]:before{content:"\\e6ac"}.uniui-map-pin[data-v-aa8a3282]:before{content:"\\e6ad"}.uniui-location[data-v-aa8a3282]:before{content:"\\e6ae"}.uniui-starhalf[data-v-aa8a3282]:before{content:"\\e683"}.uniui-star[data-v-aa8a3282]:before{content:"\\e688"}.uniui-star-filled[data-v-aa8a3282]:before{content:"\\e68f"}.uniui-calendar[data-v-aa8a3282]:before{content:"\\e6a0"}.uniui-fire[data-v-aa8a3282]:before{content:"\\e6a1"}.uniui-medal[data-v-aa8a3282]:before{content:"\\e6a2"}.uniui-font[data-v-aa8a3282]:before{content:"\\e6a3"}.uniui-gift[data-v-aa8a3282]:before{content:"\\e6a4"}.uniui-link[data-v-aa8a3282]:before{content:"\\e6a5"}.uniui-notification[data-v-aa8a3282]:before{content:"\\e6a6"}.uniui-staff[data-v-aa8a3282]:before{content:"\\e6a7"}.uniui-vip[data-v-aa8a3282]:before{content:"\\e6a8"}.uniui-folder-add[data-v-aa8a3282]:before{content:"\\e6a9"}.uniui-tune[data-v-aa8a3282]:before{content:"\\e6aa"}.uniui-auth[data-v-aa8a3282]:before{content:"\\e6ab"}.uniui-person[data-v-aa8a3282]:before{content:"\\e699"}.uniui-email-filled[data-v-aa8a3282]:before{content:"\\e69a"}.uniui-phone-filled[data-v-aa8a3282]:before{content:"\\e69b"}.uniui-phone[data-v-aa8a3282]:before{content:"\\e69c"}.uniui-email[data-v-aa8a3282]:before{content:"\\e69e"}.uniui-personadd[data-v-aa8a3282]:before{content:"\\e69f"}.uniui-chatboxes-filled[data-v-aa8a3282]:before{content:"\\e692"}.uniui-contact[data-v-aa8a3282]:before{content:"\\e693"}.uniui-chatbubble-filled[data-v-aa8a3282]:before{content:"\\e694"}.uniui-contact-filled[data-v-aa8a3282]:before{content:"\\e695"}.uniui-chatboxes[data-v-aa8a3282]:before{content:"\\e696"}.uniui-chatbubble[data-v-aa8a3282]:before{content:"\\e697"}.uniui-upload-filled[data-v-aa8a3282]:before{content:"\\e68e"}.uniui-upload[data-v-aa8a3282]:before{content:"\\e690"}.uniui-weixin[data-v-aa8a3282]:before{content:"\\e691"}.uniui-compose[data-v-aa8a3282]:before{content:"\\e67f"}.uniui-qq[data-v-aa8a3282]:before{content:"\\e680"}.uniui-download-filled[data-v-aa8a3282]:before{content:"\\e681"}.uniui-pyq[data-v-aa8a3282]:before{content:"\\e682"}.uniui-sound[data-v-aa8a3282]:before{content:"\\e684"}.uniui-trash-filled[data-v-aa8a3282]:before{content:"\\e685"}.uniui-sound-filled[data-v-aa8a3282]:before{content:"\\e686"}.uniui-trash[data-v-aa8a3282]:before{content:"\\e687"}.uniui-videocam-filled[data-v-aa8a3282]:before{content:"\\e689"}.uniui-spinner-cycle[data-v-aa8a3282]:before{content:"\\e68a"}.uniui-weibo[data-v-aa8a3282]:before{content:"\\e68b"}.uniui-videocam[data-v-aa8a3282]:before{content:"\\e68c"}.uniui-download[data-v-aa8a3282]:before{content:"\\e68d"}.uniui-help[data-v-aa8a3282]:before{content:"\\e679"}.uniui-navigate-filled[data-v-aa8a3282]:before{content:"\\e67a"}.uniui-plusempty[data-v-aa8a3282]:before{content:"\\e67b"}.uniui-smallcircle[data-v-aa8a3282]:before{content:"\\e67c"}.uniui-minus-filled[data-v-aa8a3282]:before{content:"\\e67d"}.uniui-micoff[data-v-aa8a3282]:before{content:"\\e67e"}.uniui-closeempty[data-v-aa8a3282]:before{content:"\\e66c"}.uniui-clear[data-v-aa8a3282]:before{content:"\\e66d"}.uniui-navigate[data-v-aa8a3282]:before{content:"\\e66e"}.uniui-minus[data-v-aa8a3282]:before{content:"\\e66f"}.uniui-image[data-v-aa8a3282]:before{content:"\\e670"}.uniui-mic[data-v-aa8a3282]:before{content:"\\e671"}.uniui-paperplane[data-v-aa8a3282]:before{content:"\\e672"}.uniui-close[data-v-aa8a3282]:before{content:"\\e673"}.uniui-help-filled[data-v-aa8a3282]:before{content:"\\e674"}.uniui-paperplane-filled[data-v-aa8a3282]:before{content:"\\e675"}.uniui-plus[data-v-aa8a3282]:before{content:"\\e676"}.uniui-mic-filled[data-v-aa8a3282]:before{content:"\\e677"}.uniui-image-filled[data-v-aa8a3282]:before{content:"\\e678"}.uniui-locked-filled[data-v-aa8a3282]:before{content:"\\e668"}.uniui-info[data-v-aa8a3282]:before{content:"\\e669"}.uniui-locked[data-v-aa8a3282]:before{content:"\\e66b"}.uniui-camera-filled[data-v-aa8a3282]:before{content:"\\e658"}.uniui-chat-filled[data-v-aa8a3282]:before{content:"\\e659"}.uniui-camera[data-v-aa8a3282]:before{content:"\\e65a"}.uniui-circle[data-v-aa8a3282]:before{content:"\\e65b"}.uniui-checkmarkempty[data-v-aa8a3282]:before{content:"\\e65c"}.uniui-chat[data-v-aa8a3282]:before{content:"\\e65d"}.uniui-circle-filled[data-v-aa8a3282]:before{content:"\\e65e"}.uniui-flag[data-v-aa8a3282]:before{content:"\\e65f"}.uniui-flag-filled[data-v-aa8a3282]:before{content:"\\e660"}.uniui-gear-filled[data-v-aa8a3282]:before{content:"\\e661"}.uniui-home[data-v-aa8a3282]:before{content:"\\e662"}.uniui-home-filled[data-v-aa8a3282]:before{content:"\\e663"}.uniui-gear[data-v-aa8a3282]:before{content:"\\e664"}.uniui-smallcircle-filled[data-v-aa8a3282]:before{content:"\\e665"}.uniui-map-filled[data-v-aa8a3282]:before{content:"\\e666"}.uniui-map[data-v-aa8a3282]:before{content:"\\e667"}.uniui-refresh-filled[data-v-aa8a3282]:before{content:"\\e656"}.uniui-refresh[data-v-aa8a3282]:before{content:"\\e657"}.uniui-cloud-upload[data-v-aa8a3282]:before{content:"\\e645"}.uniui-cloud-download-filled[data-v-aa8a3282]:before{content:"\\e646"}.uniui-cloud-download[data-v-aa8a3282]:before{content:"\\e647"}.uniui-cloud-upload-filled[data-v-aa8a3282]:before{content:"\\e648"}.uniui-redo[data-v-aa8a3282]:before{content:"\\e64a"}.uniui-images-filled[data-v-aa8a3282]:before{content:"\\e64b"}.uniui-undo-filled[data-v-aa8a3282]:before{content:"\\e64c"}.uniui-more[data-v-aa8a3282]:before{content:"\\e64d"}.uniui-more-filled[data-v-aa8a3282]:before{content:"\\e64e"}.uniui-undo[data-v-aa8a3282]:before{content:"\\e64f"}.uniui-images[data-v-aa8a3282]:before{content:"\\e650"}.uniui-paperclip[data-v-aa8a3282]:before{content:"\\e652"}.uniui-settings[data-v-aa8a3282]:before{content:"\\e653"}.uniui-search[data-v-aa8a3282]:before{content:"\\e654"}.uniui-redo-filled[data-v-aa8a3282]:before{content:"\\e655"}.uniui-list[data-v-aa8a3282]:before{content:"\\e644"}.uniui-mail-open-filled[data-v-aa8a3282]:before{content:"\\e63a"}.uniui-hand-down-filled[data-v-aa8a3282]:before{content:"\\e63c"}.uniui-hand-down[data-v-aa8a3282]:before{content:"\\e63d"}.uniui-hand-up-filled[data-v-aa8a3282]:before{content:"\\e63e"}.uniui-hand-up[data-v-aa8a3282]:before{content:"\\e63f"}.uniui-heart-filled[data-v-aa8a3282]:before{content:"\\e641"}.uniui-mail-open[data-v-aa8a3282]:before{content:"\\e643"}.uniui-heart[data-v-aa8a3282]:before{content:"\\e639"}.uniui-loop[data-v-aa8a3282]:before{content:"\\e633"}.uniui-pulldown[data-v-aa8a3282]:before{content:"\\e632"}.uniui-scan[data-v-aa8a3282]:before{content:"\\e62a"}.uniui-bars[data-v-aa8a3282]:before{content:"\\e627"}.uniui-cart-filled[data-v-aa8a3282]:before{content:"\\e629"}.uniui-checkbox[data-v-aa8a3282]:before{content:"\\e62b"}.uniui-checkbox-filled[data-v-aa8a3282]:before{content:"\\e62c"}.uniui-shop[data-v-aa8a3282]:before{content:"\\e62f"}.uniui-headphones[data-v-aa8a3282]:before{content:"\\e630"}.uniui-cart[data-v-aa8a3282]:before{content:"\\e631"}@font-face{font-family:uniicons;src:url('+o+') format("truetype")}.uni-icons[data-v-aa8a3282]{font-family:uniicons;text-decoration:none;text-align:center}',""]),e.exports=t},d4bf:function(e,t,n){"use strict";n("4160"),n("c975"),n("ac1f"),n("1276"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{title:"Hello",forwardArray:[],receiveArray:[],nameArray:[],typeArray:[],forwardIndex:"",receiveIndex:"",nameIndex:"",typeIndex:"",addForm:{licensePlate:"",specifications:"",reserve:"",forwardingUnit:"",receivingUnit:"",goodsName:"",weighingType:""},projectSn:"",baseUrl:"",typeList:{"采购过磅":1,"销售过磅":2,"内部过磅":3,"其他过磅":4},rules:{licensePlate:{rules:[{required:!0,errorMessage:"车牌号不能为空"}]},specifications:{rules:[{required:!0,errorMessage:"规格型号不能为空"}]},forwardingUnit:{rules:[{required:!0,errorMessage:"发货单位不能为空"}]},receivingUnit:{rules:[{required:!0,errorMessage:"收货单位不能为空"}]},goodsName:{rules:[{required:!0,errorMessage:"货物名称不能为空"}]},weighingType:{rules:[{required:!0,errorMessage:"过磅类型不能为空"}]}}}},onLoad:function(){},onShow:function(){var e=this.getRequestParams(),t=e["projectSn"];this.projectSn=t;var n=e["baseUrl"],r=n.substring(0,n.length-1),a=r.substring(0,r.length-1);this.baseUrl=a,this.getSelectItem()},methods:{getSelectItem:function(){var e=this;uni.request({url:"".concat(e.baseUrl,"/xmgl/weight/receivingForwardingUnit/list"),data:{type:1,projectSn:e.projectSn},header:{"Content-Type":"application/json;charset=UTF-8"},method:"GET",success:function(t){var n=t.data.result.records,r=[];n.forEach((function(e,t,n){var a={value:t,text:e.unitName};r.push(a)})),e.forwardArray=r}}),uni.request({url:"".concat(e.baseUrl,"/xmgl/weight/receivingForwardingUnit/list"),data:{type:2,projectSn:e.projectSn},header:{"Content-Type":"application/json;charset=UTF-8"},method:"GET",success:function(t){var n=t.data.result.records,r=[];n.forEach((function(e,t,n){var a={value:t,text:e.unitName};r.push(a)})),e.receiveArray=r}}),uni.request({url:"".concat(e.baseUrl,"/xmgl/weight/goodsName/list"),data:{projectSn:e.projectSn},header:{"Content-Type":"application/json;charset=UTF-8"},method:"GET",success:function(t){var n=t.data.result.records,r=[];n.forEach((function(e,t,n){var a={value:t,text:e.goodsName};r.push(a)})),e.nameArray=r}}),uni.request({url:"".concat(e.baseUrl,"/xmgl/weight/weighBookVehicleInfo/weighingType"),data:{projectSn:e.projectSn},header:{"Content-Type":"application/json;charset=UTF-8"},method:"GET",success:function(t){var n=t.data.result,r=[];n.forEach((function(e,t,n){var a={value:t,text:e.name};r.push(a)})),e.typeArray=r}})},getRequestParams:function(){var e=location.href,t={};if(-1!==e.indexOf("?"))for(var n=e.substr(e.indexOf("?")+1),r=n.split("&"),a=0;a<r.length;a++)t[r[a].split("=")[0]]=decodeURI(r[a].split("=")[1]);return t},bindPickerChange:function(){},onSubmit:function(e){var t=this;this.$refs[e].validate().then((function(e){var n=t;uni.request({url:"".concat(n.baseUrl,"/xmgl/weight/weighBookVehicleInfo/add"),data:{projectSn:n.projectSn,licensePlate:n.addForm.licensePlate,forwardingUnit:n.forwardArray[n.addForm.forwardingUnit].text,receivingUnit:n.receiveArray[n.addForm.receivingUnit].text,goodsName:n.nameArray[n.addForm.goodsName].text,specifications:n.addForm.specifications,reserve:n.addForm.reserve,weighingType:n.typeList[n.typeArray[n.addForm.weighingType].text]},header:{"Content-Type":"application/json;charset=UTF-8"},method:"POST",success:function(e){200==e.data.code&&(uni.showToast({title:"预约成功",icon:"none"}),uni.navigateTo({url:"./success"}))}})})).catch((function(e){console.log("err",e)}))}}};t.default=r},d591:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */',""]),e.exports=t},d72d:function(e,t,n){var r=n("d591");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("656c6274",r,!0,{sourceMap:!1,shadowMode:!1})},d967:function(e,t,n){"use strict";function r(){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}}n("d3b7"),n("4ae1"),n("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},db90:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},eefc:function(e,t,n){"use strict";var r=n("be9f"),a=n.n(r);a.a},f183:function(e,t,n){var r=n("d012"),a=n("861d"),i=n("5135"),o=n("9bf2").f,c=n("90e3"),u=n("bb2f"),s=c("meta"),l=0,d=Object.isExtensible||function(){return!0},f=function(e){o(e,s,{value:{objectID:"O"+ ++l,weakData:{}}})},h=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[s].objectID},p=function(e,t){if(!i(e,s)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[s].weakData},m=function(e){return u&&v.REQUIRED&&d(e)&&!i(e,s)&&f(e),e},v=e.exports={REQUIRED:!1,fastKey:h,getWeakData:p,onFreeze:m};r[s]=!0},f4b3:function(e,t,n){"use strict";var r=n("23e7"),a=n("d039"),i=n("7b0b"),o=n("c04e"),c=a((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));r({target:"Date",proto:!0,forced:c},{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},f516:function(e,t,n){"use strict";n.r(t);var r=n("04c0"),a=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=a.a},f82a:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-forms-item[data-v-06e6672a]{position:relative;display:flex;margin-bottom:22px;flex-direction:row}.uni-forms-item__label[data-v-06e6672a]{display:flex;flex-direction:row;align-items:center;text-align:left;font-size:14px;color:#606266;height:36px;padding:0 12px 0 0;vertical-align:middle;flex-shrink:0;box-sizing:border-box}.uni-forms-item__label.no-label[data-v-06e6672a]{padding:0}.uni-forms-item__content[data-v-06e6672a]{position:relative;font-size:14px;flex:1;box-sizing:border-box;flex-direction:row}.uni-forms-item .uni-forms-item__nuve-content[data-v-06e6672a]{display:flex;flex-direction:column;flex:1}.uni-forms-item__error[data-v-06e6672a]{color:#f56c6c;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-transform:translateY(-100%);transform:translateY(-100%);opacity:0}.uni-forms-item__error .error-text[data-v-06e6672a]{color:#f56c6c;font-size:12px}.uni-forms-item__error.msg--active[data-v-06e6672a]{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}.uni-forms-item.is-direction-left[data-v-06e6672a]{flex-direction:row}.uni-forms-item.is-direction-top[data-v-06e6672a]{flex-direction:column}.uni-forms-item.is-direction-top .uni-forms-item__label[data-v-06e6672a]{padding:0 0 8px;line-height:1.5715;text-align:left;white-space:normal}.uni-forms-item .is-required[data-v-06e6672a]{color:#dd524d;font-weight:700}.uni-forms-item--border[data-v-06e6672a]{margin-bottom:0;padding:10px 0;border-top:1px #eee solid}.uni-forms-item--border .uni-forms-item__content[data-v-06e6672a]{flex-direction:column;justify-content:flex-start;align-items:flex-start}.uni-forms-item--border .uni-forms-item__content .uni-forms-item__error[data-v-06e6672a]{position:relative;top:5px;left:0;padding-top:0}.is-first-border[data-v-06e6672a]{border:none}',""]),e.exports=t},fa95:function(e,t,n){"use strict";function r(e){return-1!==Function.toString.call(e).indexOf("[native code]")}n("c975"),n("d3b7"),n("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},fe72:function(e,t,n){"use strict";n.r(t);var r=n("2d4c"),a=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=a.a}}]); |