yunshangxie/unpackage/dist/build/mp-weixin/common/vendor.js

23 lines
312 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"0676":function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},"092b":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("9523")),i=r(n("970b")),a=r(n("5bc3")),s=r(n("febd")),u=r(n("7a28")),c=r(n("69d7")),f=r(n("a294")),l=n("6e37"),d=r(n("3832"));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,e),(0,l.isPlainObject)(t)||(t={},console.warn("设置全局参数必须接收一个Object")),this.config=(0,d.default)(p(p({},f.default),t)),this.interceptors={request:new u.default,response:new u.default}}return(0,a.default)(e,[{key:"setConfig",value:function(e){this.config=e(this.config)}},{key:"middleware",value:function(e){e=(0,c.default)(this.config,e);var t=[s.default,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.middleware(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.middleware(p({url:e,method:"GET"},t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(p({url:e,data:t,method:"POST"},n))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(p({url:e,data:t,method:"PUT"},n))}},{key:"delete",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(p({url:e,data:t,method:"DELETE"},n))}},{key:"connect",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(p({url:e,data:t,method:"CONNECT"},n))}},{key:"head",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(p({url:e,data:t,method:"HEAD"},n))}},{key:"options",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(p({url:e,data:t,method:"OPTIONS"},n))}},{key:"trace",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(p({url:e,data:t,method:"TRACE"},n))}},{key:"upload",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url=e,t.method="UPLOAD",this.middleware(t)}},{key:"download",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url=e,t.method="DOWNLOAD",this.middleware(t)}}]),e}();t.default=v},"0c57":function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("2eee")),i=r(n("c973")),a=n("e0eb"),s=r(n("de98")),u=r(n("12eb")),c=s.default.state.apiUrl,f=new u.default,l=function(){var t=(0,i.default)(o.default.mark((function t(n,r){var i,s,u,l,d=arguments;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=d.length>2&&void 0!==d[2]?d[2]:{},s=!(d.length>3&&void 0!==d[3])||d[3],u=(0,a.getStorageSync)("u"),l=f.generateId(r,n,i),l||console.log("重复请求"),l){t.next=7;break}return t.abrupt("return",!1);case 7:return t.abrupt("return",new Promise((function(t,o){s&&e.showLoading({title:"加载中..."}),e.request({url:c+n,method:r||"GET",header:{token:u.token||"","content-type":"application/json"},timeout:1e4,data:i||{},complete:function(){e.hideLoading(),f.deleteById(l)},success:function(e){var n=e.data;200==e.statusCode?t(n):((0,a.toast)("网络连接失败,请稍后重试"),o(n))},fail:function(e){(0,a.toast)("网络连接失败,请稍后重试"),o(e)}})})));case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),d={};["options","get","post","put","head","delete","trace","connect"].forEach((function(e){d[e]=function(t,n,r){return l(t,e,n,r)}}));var h=d;t.default=h}).call(this,n("543d")["default"])},"0c91":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.positionList=t.newsList=t.newsInfo=t.newsGoryList=t.newIndustryIndex=t.messageAdd=t.loginDo=t.loginAdd=t.getUserIndex=t.eventInfo=t.associationInfo=t.associationIndex=t.architectureList=t.applicationAdd=t.addressList=t.activityList=t.activityIndex=t.UserApplication=t.IndustryList=void 0;var o=r(n("0c57"));t.newsGoryList=function(e){return o.default.post("/move/news/gory",e,!1)};t.newsList=function(e){return o.default.post("/move/news/index",e,!1)};t.activityList=function(e){return o.default.post("/move/activity/list",e,!1)};t.activityIndex=function(e){return o.default.post("/move/activity/index",e,!1)};t.associationIndex=function(e){return o.default.post("/move/association/index",e,!1)};t.newsInfo=function(e){return o.default.post("/move/news/find",e,!1)};t.eventInfo=function(e){return o.default.post("/move/activity/find",e,!1)};t.associationInfo=function(e){return o.default.post("/move/association/find",e,!1)};t.architectureList=function(e){return o.default.post("/move/address/architecture",e,!1)};t.positionList=function(e){return o.default.post("/position",e,!1)};t.IndustryList=function(e){return o.default.post("/industry",e,!1)};t.loginAdd=function(e){return o.default.post("/move/login/add",e,!1)};t.loginDo=function(e){return o.default.post("/move/login/login",e,!1)};t.addressList=function(e){return o.default.post("/move/address",e,!1)};t.newIndustryIndex=function(e){return o.default.post("/move/industry/index",e,!1)};t.getUserIndex=function(e){return o.default.post("/move/member/find",e,!1)};t.UserApplication=function(e){return o.default.post("/move/application",e,!1)};t.applicationAdd=function(e){return o.default.post("/move/application/add",e,!1)};t.messageAdd=function(e){return o.default.post("/move/message/add",e,!1)}},"11b0":function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"12eb":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("7037")),i=r(n("970b")),a=r(n("5bc3"));function s(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=function(){function e(){(0,i.default)(this,e),this.idMap=new Map}return(0,a.default)(e,[{key:"generateId",value:function(e,t,n){var r=this.generateUniqueId(e,t,n);return!this.idMap.has(r)&&(this.idMap.set(r,{method:e,url:t,params:n}),r)}},{key:"deleteById",value:function(e){this.idMap.delete(e)}},{key:"generateUniqueId",value:function(e,t,n){for(var r="".concat(e,"-").concat(t,"-").concat(this.serializeObject(n)),o=0,i=0;i<r.length;i++)o=(o<<5)-o+r.charCodeAt(i),o|=0;return o.toString()}},{key:"serializeObject",value:function(e){var t,n=Object.keys(e).sort(),r={},i=s(n);try{for(i.s();!(t=i.n()).done;){var a=t.value,u=e[a];null!==u&&"object"===(0,o.default)(u)?r[a]=this.serializeObject(u):r[a]=u}}catch(c){i.e(c)}finally{i.f()}return JSON.stringify(r)}}]),e}(),f=c;t.default=f},"159f":function(e,t,n){(function(t){e.exports={onLoad:function(){this.$tn.mpShare={title:"",path:"",imageUrl:"",share:!0},this.$tn.mpShare.share||t.hideShareMenu()},onShareAppMessage:function(){return this.$tn.mpShare},onShareTimeline:function(){return{title:this.$tn.mpShare.title,query:this.$tn.mpShare.path.substring(this.$tn.mpShare.path.indexOf("?")+1,this.$tn.mpShare.path.length),imageUrl:this.$tn.mpShare.imageUrl}}}}).call(this,n("543d")["default"])},"16ca":function(e,t){e.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$tn.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$tn.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$tn.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$tn.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$tn.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},"18c4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lYearDays:function(e){var t,n=348;for(t=32768;t>8;t>>=1)n+=this.lunarInfo[e-1900]&t?1:0;return n+this.leapDays(e)},leapMonth:function(e){return 15&this.lunarInfo[e-1900]},leapDays:function(e){return this.leapMonth(e)?65536&this.lunarInfo[e-1900]?30:29:0},monthDays:function(e,t){return t>12||t<1?-1:this.lunarInfo[e-1900]&65536>>t?30:29},solarDays:function(e,t){if(t>12||t<1)return-1;var n=t-1;return 1==n?e%4==0&&e%100!=0||e%400==0?29:28:this.solarMonth[n]},toGanZhiYear:function(e){var t=(e-3)%10,n=(e-3)%12;return 0==t&&(t=10),0==n&&(n=12),this.Gan[t-1]+this.Zhi[n-1]},toAstro:function(e,t){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*e-(t<[20,19,21,21,21,22,23,23,23,23,22,22][e-1]?2:0),2)+"座"},toGanZhi:function(e){return this.Gan[e%10]+this.Zhi[e%12]},getTerm:function(e,t){if(e<1900||e>2100)return-1;if(t<1||t>24)return-1;var n=this.sTermInfo[e-1900],r=[parseInt("0x"+n.substr(0,5)).toString(),parseInt("0x"+n.substr(5,5)).toString(),parseInt("0x"+n.substr(10,5)).toString(),parseInt("0x"+n.substr(15,5)).toString(),parseInt("0x"+n.substr(20,5)).toString(),parseInt("0x"+n.substr(25,5)).toString()],o=[r[0].substr(0,1),r[0].substr(1,2),r[0].substr(3,1),r[0].substr(4,2),r[1].substr(0,1),r[1].substr(1,2),r[1].substr(3,1),r[1].substr(4,2),r[2].substr(0,1),r[2].substr(1,2),r[2].substr(3,1),r[2].substr(4,2),r[3].substr(0,1),r[3].substr(1,2),r[3].substr(3,1),r[3].substr(4,2),r[4].substr(0,1),r[4].substr(1,2),r[4].substr(3,1),r[4].substr(4,2),r[5].substr(0,1),r[5].substr(1,2),r[5].substr(3,1),r[5].substr(4,2)];return parseInt(o[t-1])},toChinaMonth:function(e){if(e>12||e<1)return-1;var t=this.nStr3[e-1];return t+="月",t},toChinaDay:function(e){var t;switch(e){case 10:t="初十";break;case 20:t="二十";break;case 30:t="三十";break;default:t=this.nStr2[Math.floor(e/10)],t+=this.nStr1[e%10]}return t},getAnimal:function(e){return this.Animals[(e-4)%12]},solar2lunar:function(e,t,n){if(e<1900||e>2100)return-1;if(1900==e&&1==t&&n<31)return-1;if(e)r=new Date(e,parseInt(t)-1,n);else var r=new Date;var o,i=0,a=(e=r.getFullYear(),t=r.getMonth()+1,n=r.getDate(),(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate())-Date.UTC(1900,0,31))/864e5);for(o=1900;o<2101&&a>0;o++)i=this.lYearDays(o),a-=i;a<0&&(a+=i,o--);var s=new Date,u=!1;s.getFullYear()==e&&s.getMonth()+1==t&&s.getDate()==n&&(u=!0);var c=r.getDay(),f=this.nStr1[c];0==c&&(c=7);var l=o,d=this.leapMonth(o),h=!1;for(o=1;o<13&&a>0;o++)d>0&&o==d+1&&0==h?(--o,h=!0,i=this.leapDays(l)):i=this.monthDays(l,o),1==h&&o==d+1&&(h=!1),a-=i;0==a&&d>0&&o==d+1&&(h?h=!1:(h=!0,--o)),a<0&&(a+=i,--o);var p=o,v=a+1,g=t-1,y=this.toGanZhiYear(l),b=this.getTerm(e,2*t-1),m=this.getTerm(e,2*t),_=this.toGanZhi(12*(e-1900)+t+11);n>=b&&(_=this.toGanZhi(12*(e-1900)+t+12));var w=!1,x=null;b==n&&(w=!0,x=this.solarTerm[2*t-2]),m==n&&(w=!0,x=this.solarTerm[2*t-1]);var k=Date.UTC(e,g,1,0,0,0,0)/864e5+25567+10,O=this.toGanZhi(k+n-1),A=this.toAstro(t,n);return{lYear:l,lMonth:p,lDay:v,Animal:this.getAnimal(l),IMonthCn:(h?"闰":"")+this.toChinaMonth(p),IDayCn:this.toChinaDay(v),cYear:e,cMonth:t,cDay:n,gzYear:y,gzMonth:_,gzDay:O,isToday:u,isLeap:h,nWeek:c,ncWeek:"星期"+f,isTerm:w,Term:x,astro:A}},lunar2solar:function(e,t,n,r){r=!!r;var o=this.leapMonth(e);this.leapDays(e);if(r&&o!=t)return-1;if(2100==e&&12==t&&n>1||1900==e&&1==t&&n<31)return-1;var i=this.monthDays(e,t),a=i;if(r&&(a=this.leapDays(e,t)),e<1900||e>2100||n>a)return-1;for(var s=0,u=1900;u<e;u++)s+=this.lYearDays(u);var c=0,f=!1;for(u=1;u<t;u++)c=this.leapMonth(e),f||c<=u&&c>0&&(s+=this.leapDays(e),f=!0),s+=this.monthDays(e,u);r&&(s+=i);var l=Date.UTC(1900,1,30,0,0,0),d=new Date(864e5*(s+n-31)+l),h=d.getUTCFullYear(),p=d.getUTCMonth()+1,v=d.getUTCDate();return this.solar2lunar(h,p,v)}},o=r;t.default=o},"1b30":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("7037"));var i=function e(t){if([null,void 0,NaN,!1].includes(t))return t;if("object"!==(0,o.default)(t)&&"function"!==typeof t)return t;var n=function(e){return"[object Array]"===Object.prototype.toString.call(e)}(t)?[]:{};for(var r in t)t.hasOwnProperty(r)&&(n[r]="object"===(0,o.default)(t[r])?e(t[r]):t[r]);return n};t.default=i},"1fb5":function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),f=0,l=s>0?a-4:a;for(n=0;n<l;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],u[f++]=t>>16&255,u[f++]=t>>8&255,u[f++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[f++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(l(e,a,a+16383>s?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function l(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(f(r));return o.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},2236:function(e,t,n){var r=n("5a43");e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"26cb":function(e,t,n){"use strict";(function(t){var n="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},r=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=function(e,t){return e.filter(t)[0]}(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=o(e[n],t)})),r}function i(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function a(e){return null!==e&&"object"===typeof e}var s=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(e,t){this._children[e]=t},s.prototype.removeChild=function(e){delete this._children[e]},s.prototype.getChild=function(e){return this._children[e]},s.prototype.hasChild=function(e){return e in this._children},s.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},s.prototype.forEachChild=function(e){i(this._children,e)},s.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},s.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},s.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(s.prototype,u);var c=function(e){this.register([],e,!1)};c.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},c.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},c.prototype.update=function(e){(function e(t,n,r){0;if(n.update(r),r.modules)for(var o in r.modules){if(!n.getChild(o))return void 0;e(t.concat(o),n.getChild(o),r.modules[o])}})([],this.root,e)},c.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new s(t,n);if(0===e.length)this.root=o;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],o)}t.modules&&i(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},c.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},c.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var f;var l=function(e){var t=this;void 0===e&&(e={}),!f&&"undefined"!==typeof window&&window.Vue&&m(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new c(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new f,this._makeLocalGettersCache=Object.create(null);var i=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(i,e,t)},this.commit=function(e,t,n){return s.call(i,e,t,n)},this.strict=o;var u=this._modules.root.state;g(this,u,[],this._modules.root),v(this,u),n.forEach((function(e){return e(t)}));var l=void 0!==e.devtools?e.devtools:f.config.devtools;l&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},d={state:{configurable:!0}};function h(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function p(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;g(e,n,[],e._modules.root,!0),v(e,n,t)}function v(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,a={};i(o,(function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=f.config.silent;f.config.silent=!0,e._vm=new f({data:{$$state:t},computed:a}),f.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),f.nextTick((function(){return r.$destroy()})))}function g(e,t,n,r,o){var i=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!i&&!o){var s=y(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit((function(){f.set(s,u,r.state)}))}var c=r.context=function(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var i=b(n,r,o),a=i.payload,s=i.options,u=i.type;return s&&s.root||(u=t+u),e.dispatch(u,a)},commit:r?e.commit:function(n,r,o){var i=b(n,r,o),a=i.payload,s=i.options,u=i.type;s&&s.root||(u=t+u),e.commit(u,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,r)===t){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return y(e.state,n)}}}),o}(e,a,n);r.forEachMutation((function(t,n){var r=a+n;(function(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,r.state,t)}))})(e,r,t,c)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,o=t.handler||t;(function(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return function(e){return e&&"function"===typeof e.then}(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))})(e,r,o,c)})),r.forEachGetter((function(t,n){var r=a+n;(function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}})(e,r,t,c)})),r.forEachChild((function(r,i){g(e,t,n.concat(i),r,o)}))}function y(e,t){return t.reduce((function(e,t){return e[t]}),e)}function b(e,t,n){return a(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function m(e){f&&e===f||(f=e,
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
function(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(f))}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(e){0},l.prototype.commit=function(e,t,n){var r=this,o=b(e,t,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),u=this._mutations[i];u&&(this._withCommit((function(){u.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},l.prototype.dispatch=function(e,t){var n=this,r=b(e,t),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(c){0}var u=s.length>1?Promise.all(s.map((function(e){return e(i)}))):s[0](i);return new Promise((function(e,t){u.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(c){0}t(e)}))}))}},l.prototype.subscribe=function(e,t){return h(e,this._subscribers,t)},l.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return h(n,this._actionSubscribers,t)},l.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},l.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},l.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),g(this,this.state,e,this._modules.get(e),n.preserveState),v(this,this.state)},l.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=y(t.state,e.slice(0,-1));f.delete(n,e[e.length-1])})),p(this)},l.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},l.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),p(this,!0)},l.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(l.prototype,d);var _=A((function(e,t){var n={};return O(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=S(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0})),n})),w=A((function(e,t){var n={};return O(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=S(this.$store,"mapMutations",e);if(!i)return;r=i.context.commit}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),x=A((function(e,t){var n={};return O(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||S(this.$store,"mapGetters",e))return this.$store.getters[o]},n[r].vuex=!0})),n})),k=A((function(e,t){var n={};return O(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=S(this.$store,"mapActions",e);if(!i)return;r=i.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n}));function O(e){return function(e){return Array.isArray(e)||a(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function A(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function S(e,t,n){var r=e._modulesNamespaceMap[n];return r}function P(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(o){e.log(t)}}function T(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function E(){var e=new Date;return" @ "+I(e.getHours(),2)+":"+I(e.getMinutes(),2)+":"+I(e.getSeconds(),2)+"."+I(e.getMilliseconds(),3)}function I(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var j={Store:l,install:m,version:"3.6.2",mapState:_,mapMutations:w,mapGetters:x,mapActions:k,createNamespacedHelpers:function(e){return{mapState:_.bind(null,e),mapGetters:x.bind(null,e),mapMutations:w.bind(null,e),mapActions:k.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var u=e.logMutations;void 0===u&&(u=!0);var c=e.logActions;void 0===c&&(c=!0);var f=e.logger;return void 0===f&&(f=console),function(e){var l=o(e.state);"undefined"!==typeof f&&(u&&e.subscribe((function(e,a){var s=o(a);if(n(e,l,s)){var u=E(),c=i(e),d="mutation "+e.type+u;P(f,d,t),f.log("%c prev state","color: #9E9E9E; font-weight: bold",r(l)),f.log("%c mutation","color: #03A9F4; font-weight: bold",c),f.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),T(f)}l=s})),c&&e.subscribeAction((function(e,n){if(a(e,n)){var r=E(),o=s(e),i="action "+e.type+r;P(f,i,t),f.log("%c action","color: #03A9F4; font-weight: bold",o),T(f)}})))}}};e.exports=j}).call(this,n("c8ba"))},"278c":function(e,t,n){var r=n("c135"),o=n("9b42"),i=n("6613"),a=n("c240");e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports["default"]=e.exports},"27c3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={formatNumberString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=0;if("string"===typeof e?n=Number(e):"number"===typeof e&&(n=e),isNaN(n)||0===n)return 0;var r=Math.pow(10,t)-1;return n>r?"".concat(r,"+"):n},formatNumberAddZero:function(e){var t=0;return"string"===typeof e?t=Number(e):"number"===typeof e&&(t=e),isNaN(t)||+t<10?"0"+t:String(t)},formatNumberAddPriceUnit:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e4,symbol:"W"}],o=/\.0+$|(\.[0=9]*[1-9])0+$/,i=0;for("string"===typeof e?i=Number(e):"number"===typeof e&&(i=e),t=r.length-1;t>0;t--)if(i>=r[t].value)break;return(i/r[t].value).toFixed(n).replace(o,"$1")+r[t].symbol},random:function(e,t){if(e>=0&&t>0&&t>=e){var n=t-e;return Math.random()*n+e}return 0},randomInt:function(e,t){if(e>=0&&t>0&&t>=e){var n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}};t.default=r},"29a0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},"2ede":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={random:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))},isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)}};t.default=r},"2eee":function(e,t,n){var r=n("7ec2")();e.exports=r},"34f1":function(e,t){},"36c6":function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"37dc":function(e,t,n){"use strict";(function(e,r){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0,t.compileI18nJsonStr=function(e,t){var n=t.locale,r=t.locales,o=t.delimiters;if(!A(e,o))return e;k||(k=new l);var i=[];Object.keys(r).forEach((function(e){e!==n&&i.push({locale:e,values:r[e]})})),i.unshift({locale:n,values:r[n]});try{return JSON.stringify(P(JSON.parse(e),i,o),null,2)}catch(a){}return e},t.hasI18nJson=function e(t,n){k||(k=new l);return T(t,(function(t,r){var o=t[r];return O(o)?!!A(o,n)||void 0:e(o,n)}))},t.initVueI18n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var o=[t,e];e=o[0],t=o[1]}"string"!==typeof e&&(e=x());"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var i=new _({locale:e,fallbackLocale:n,messages:t,watcher:r}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return i.t(e,t)};else{var n=!1;a=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,w(r,i))),i.t(e,t)}}return a(e,t)};return{i18n:i,f:function(e,t,n){return i.f(e,t,n)},t:function(e,t){return a(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return i.add(e,t,n)},watch:function(e){return i.watchLocale(e)},getLocale:function(){return i.getLocale()},setLocale:function(e){return i.setLocale(e)}}},t.isI18nStr=A,t.isString=void 0,t.normalizeLocale=m,t.parseI18nJson=function e(t,n,r){k||(k=new l);return T(t,(function(t,o){var i=t[o];O(i)?A(i,r)&&(t[o]=S(i,n,r)):e(i,n,r)})),t},t.resolveLocale=function(e){return function(t){return t?(t=m(t)||t,function(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}(t).find((function(t){return e.indexOf(t)>-1}))):t}};var i=o(n("278c")),a=o(n("970b")),s=o(n("5bc3")),u=o(n("7037")),c=function(e){return null!==e&&"object"===(0,u.default)(e)},f=["{","}"],l=function(){function e(){(0,a.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;if(!t)return[e];var r=this._caches[e];return r||(r=p(e,n),this._caches[e]=r),v(r,t)}}]),e}();t.Formatter=l;var d=/^(?:\d)+/,h=/^(?:\w)+/;function p(e,t){var n=(0,i.default)(t,2),r=n[0],o=n[1],a=[],s=0,u="";while(s<e.length){var c=e[s++];if(c===r){u&&a.push({type:"text",value:u}),u="";var f="";c=e[s++];while(void 0!==c&&c!==o)f+=c,c=e[s++];var l=c===o,p=d.test(f)?"list":l&&h.test(f)?"named":"unknown";a.push({value:f,type:p})}else u+=c}return u&&a.push({type:"text",value:u}),a}function v(e,t){var n=[],r=0,o=Array.isArray(t)?"list":c(t)?"named":"unknown";if("unknown"===o)return n;while(r<e.length){var i=e[r];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===o&&n.push(t[i.value]);break;case"unknown":0;break}r++}return n}t.LOCALE_ZH_HANS="zh-Hans";t.LOCALE_ZH_HANT="zh-Hant";t.LOCALE_EN="en";t.LOCALE_FR="fr";t.LOCALE_ES="es";var g=Object.prototype.hasOwnProperty,y=function(e,t){return g.call(e,t)},b=new l;function m(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=["en","fr","es"];t&&Object.keys(t).length>0&&(n=Object.keys(t));var r=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,n);return r||void 0}}var _=function(){function e(t){var n=t.locale,r=t.fallbackLocale,o=t.messages,i=t.watcher,s=t.formater;(0,a.default)(this,e),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||b,this.messages=o||{},this.setLocale(n||"en"),i&&this.watchLocale(i)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=m(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(e){e(t.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}}},{key:"add",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((function(e){y(r,e)||(r[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,n){return this.formater.interpolate(e,t,n).join("")}},{key:"t",value:function(e,t,n){var r=this.message;return"string"===typeof t?(t=m(t,this.messages),t&&(r=this.messages[t])):n=t,y(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function w(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function x(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():"en"}t.I18n=_;var k,O=function(e){return"string"===typeof e};function A(e,t){return e.indexOf(t[0])>-1}function S(e,t,n){return k.interpolate(e,t,n).join("")}function P(e,t,n){return T(e,(function(e,r){(function(e,t,n,r){var o=e[t];if(O(o)){if(A(o,r)&&(e[t]=S(o,n[0].values,r),n.length>1)){var i=e[t+"Locales"]={};n.forEach((function(e){i[e.locale]=S(o,e.values,r)}))}}else P(o,n,r)})(e,r,t,n)})),e}function T(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t(e,n))return!0}else if(c(e))for(var r in e)if(t(e,r))return!0;return!1}t.isString=O}).call(this,n("543d")["default"],n("c8ba"))},3832:function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("7037")),i=function(){function t(e,t){return null!=t&&e instanceof t}var n,r,i;try{n=Map}catch(c){n=function(){}}try{r=Set}catch(c){r=function(){}}try{i=Promise}catch(c){i=function(){}}function a(s,c,f,l,d){"object"===(0,o.default)(c)&&(f=c.depth,l=c.prototype,d=c.includeNonEnumerable,c=c.circular);var h=[],p=[],v="undefined"!=typeof e;return"undefined"==typeof c&&(c=!0),"undefined"==typeof f&&(f=1/0),function s(f,g){if(null===f)return null;if(0===g)return f;var y,b;if("object"!=(0,o.default)(f))return f;if(t(f,n))y=new n;else if(t(f,r))y=new r;else if(t(f,i))y=new i((function(e,t){f.then((function(t){e(s(t,g-1))}),(function(e){t(s(e,g-1))}))}));else if(a.__isArray(f))y=[];else if(a.__isRegExp(f))y=new RegExp(f.source,u(f)),f.lastIndex&&(y.lastIndex=f.lastIndex);else if(a.__isDate(f))y=new Date(f.getTime());else{if(v&&e.isBuffer(f))return e.from?y=e.from(f):(y=new e(f.length),f.copy(y)),y;t(f,Error)?y=Object.create(f):"undefined"==typeof l?(b=Object.getPrototypeOf(f),y=Object.create(b)):(y=Object.create(l),b=l)}if(c){var m=h.indexOf(f);if(-1!=m)return p[m];h.push(f),p.push(y)}for(var _ in t(f,n)&&f.forEach((function(e,t){var n=s(t,g-1),r=s(e,g-1);y.set(n,r)})),t(f,r)&&f.forEach((function(e){var t=s(e,g-1);y.add(t)})),f){var w=Object.getOwnPropertyDescriptor(f,_);w&&(y[_]=s(f[_],g-1));try{var x=Object.getOwnPropertyDescriptor(f,_);if("undefined"===x.set)continue;y[_]=s(f[_],g-1)}catch(T){if(T instanceof TypeError)continue;if(T instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(f);for(_=0;_<k.length;_++){var O=k[_],A=Object.getOwnPropertyDescriptor(f,O);(!A||A.enumerable||d)&&(y[O]=s(f[O],g-1),Object.defineProperty(y,O,A))}}if(d){var S=Object.getOwnPropertyNames(f);for(_=0;_<S.length;_++){var P=S[_];A=Object.getOwnPropertyDescriptor(f,P);A&&A.enumerable||(y[P]=s(f[P],g-1),Object.defineProperty(y,P,A))}}return y}(s,f)}function s(e){return Object.prototype.toString.call(e)}function u(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return a.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},a.__objToStr=s,a.__isDate=function(e){return"object"===(0,o.default)(e)&&"[object Date]"===s(e)},a.__isArray=function(e){return"object"===(0,o.default)(e)&&"[object Array]"===s(e)},a.__isRegExp=function(e){return"object"===(0,o.default)(e)&&"[object RegExp]"===s(e)},a.__getRegExpFlags=u,a}(),a=i;t.default=a}).call(this,n("b639").Buffer)},"3c96":function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports["default"]=e.exports},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"448a":function(e,t,n){var r=n("2236"),o=n("11b0"),i=n("6613"),a=n("0676");e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports["default"]=e.exports},"4a4b":function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"4bea":function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("9523")),i=r(n("64e0")),a=r(n("b1dd")),s=r(n("b761")),u=n("6e37");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e,t){var n={};return e.forEach((function(e){(0,u.isUndefined)(t[e])||(n[e]=t[e])})),n};t.default=function(t){return new Promise((function(n,r){var o,u=(0,i.default)((0,a.default)(t.baseURL,t.url),t.params),c={url:u,header:t.header,complete:function(e){t.fullPath=u,e.config=t;try{"string"===typeof e.data&&(e.data=JSON.parse(e.data))}catch(o){}(0,s.default)(n,r,e)}};if("UPLOAD"===t.method){delete c.header["content-type"],delete c.header["Content-Type"];var d={filePath:t.filePath,name:t.name};o=e.uploadFile(f(f(f({},c),d),l(["formData"],t)))}else if("DOWNLOAD"===t.method)o=e.downloadFile(c);else{o=e.request(f(f({},c),l(["data","method","timeout","dataType","responseType"],t)))}t.getTask&&t.getTask(o,t)}))}}).call(this,n("543d")["default"])},"4ea4":function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"4f40":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this.$parent;while(t){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}},"543d":function(e,t,n){"use strict";(function(e,r){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=jt,t.createComponent=Bt,t.createPage=Ft,t.createPlugin=Vt,t.createSubpackageApp=qt,t.default=void 0;var i,a=o(n("278c")),s=o(n("9523")),u=o(n("b17c")),c=o(n("448a")),f=o(n("7037")),l=n("37dc"),d=o(n("66fd"));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function y(){var t,n=e.getStorageSync("uni_id_token")||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(function(e){return decodeURIComponent(i(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(r[1]))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}i="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!g.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,o="",i=0;i<e.length;)t=v.indexOf(e.charAt(i++))<<18|v.indexOf(e.charAt(i++))<<12|(n=v.indexOf(e.charAt(i++)))<<6|(r=v.indexOf(e.charAt(i++))),o+=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 o}:atob;var b=Object.prototype.toString,m=Object.prototype.hasOwnProperty;function _(e){return"function"===typeof e}function w(e){return"string"===typeof e}function x(e){return"[object Object]"===b.call(e)}function k(e,t){return m.call(e,t)}function O(){}function A(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var S=/-(\w)/g,P=A((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))}));function T(e){var t={};return x(e)&&Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),Object.keys(t)?t:e}var E=["invoke","success","fail","complete","returnValue"],I={},j={};function C(e,t){Object.keys(t).forEach((function(n){-1!==E.indexOf(n)&&_(t[n])&&(e[n]=function(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))}))}function $(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==E.indexOf(n)&&_(t[n])&&function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}(e[n],t[n])}))}function L(e,t){return function(n){return e(n,t)||n}}function D(e){return!!e&&("object"===(0,f.default)(e)||"function"===typeof e)&&"function"===typeof e.then}function M(e,t,n){for(var r=!1,o=0;o<e.length;o++){var i=e[o];if(r)r=Promise.resolve(L(i,n));else{var a=i(t,n);if(D(a)&&(r=Promise.resolve(a)),!1===a)return{then:function(){}}}}return r||{then:function(e){return e(t)}}}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var r=t[n];t[n]=function(o){M(e[n],o,t).then((function(e){return _(r)&&r(e)||e}))}}})),t}function U(e,t){var n=[];Array.isArray(I.returnValue)&&n.push.apply(n,(0,c.default)(I.returnValue));var r=j[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,c.default)(r.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function N(e){var t=Object.create(null);Object.keys(I).forEach((function(e){"returnValue"!==e&&(t[e]=I[e].slice())}));var n=j[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function F(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a=N(e);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=M(a.invoke,n);return s.then((function(n){return t.apply(void 0,[R(N(e),n)].concat(o))}))}return t.apply(void 0,[R(a,n)].concat(o))}return t.apply(void 0,[n].concat(o))}var B={returnValue:function(e){return D(e)?new Promise((function(t,n){e.then((function(e){e[0]?n(e[0]):t(e[1])}))})):e}},q=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/,V=/^create|Manager$/,H=["createBLEConnection"],z=["createBLEConnection","createPushMessage"],K=/^on|^off/;function W(e){return V.test(e)&&-1===H.indexOf(e)}function J(e){return q.test(e)&&-1===z.indexOf(e)}function G(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function Y(e){return!(W(e)||J(e)||function(e){return K.test(e)&&"onPush"!==e}(e))}function Z(e,t){return Y(e)&&_(t)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return _(n.success)||_(n.fail)||_(n.complete)?U(e,F.apply(void 0,[e,t,n].concat(o))):U(e,G(new Promise((function(r,i){F.apply(void 0,[e,t,Object.assign({},n,{success:r,fail:i})].concat(o))}))))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))});var Q=!1,X=0,ee=0;var te,ne={};te=ie(e.getSystemInfoSync().language)||"en",function(){if(function(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=ne[e],n=__uniConfig.locales[e];t?Object.assign(t,n):ne[e]=n}))}}();var re=(0,l.initVueI18n)(te,{}),oe=re.t;re.mixin={beforeCreate:function(){var e=this,t=re.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return oe(e,t)}}},re.setLocale,re.getLocale;function ie(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,["en","fr","es"]);return n||void 0}}function ae(){if(_(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return ie(e.getSystemInfoSync().language)||"en"}var se=[];"undefined"!==typeof r&&(r.getLocale=ae);var ue={promiseInterceptor:B},ce=Object.freeze({__proto__:null,upx2px:function(t,n){if(0===X&&function(){var t=e.getSystemInfoSync(),n=t.platform,r=t.pixelRatio,o=t.windowWidth;X=o,ee=r,Q="ios"===n}(),t=Number(t),0===t)return 0;var r=t/750*(n||X);return r<0&&(r=-r),r=Math.floor(r+1e-4),0===r&&(r=1!==ee&&Q?.5:1),t<0?-r:r},getLocale:ae,setLocale:function(e){var t=!!_(getApp)&&getApp();if(!t)return!1;var n=t.$vm.$locale;return n!==e&&(t.$vm.$locale=e,se.forEach((function(t){return t({locale:e})})),!0)},onLocaleChange:function(e){-1===se.indexOf(e)&&se.push(e)},addInterceptor:function(e,t){"string"===typeof e&&x(t)?C(j[e]||(j[e]={}),t):x(e)&&C(I,e)},removeInterceptor:function(e,t){"string"===typeof e?x(t)?$(j[e],t):delete j[e]:x(e)&&$(I,e)},interceptors:ue});var fe,le={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=function(e){var t=getCurrentPages(),n=t.length;while(n--){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}(e.url);if(-1!==t){var n=getCurrentPages().length-1-t;n>0&&(e.delta=n)}}}},de={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var n=e.urls;if(Array.isArray(n)){var r=n.length;if(r)return t<0?t=0:t>=r&&(t=r-1),t>0?(e.current=n[t],e.urls=n.filter((function(e,r){return!(r<t)||e!==n[t]}))):e.current=n[0],{indicator:!1,loop:!1}}}}};function he(t){fe=fe||e.getStorageSync("__DC_STAT_UUID"),fe||(fe=Date.now()+""+Math.floor(1e7*Math.random()),e.setStorage({key:"__DC_STAT_UUID",data:fe})),t.deviceId=fe}function pe(e){if(e.safeArea){var t=e.safeArea;e.safeAreaInsets={top:t.top,left:t.left,right:e.windowWidth-t.right,bottom:e.screenHeight-t.bottom}}}function ve(e,t){for(var n=e.deviceType||"phone",r={ipad:"pad",windows:"pc",mac:"pc"},o=Object.keys(r),i=t.toLocaleLowerCase(),a=0;a<o.length;a++){var s=o[a];if(-1!==i.indexOf(s)){n=r[s];break}}return n}function ge(e){var t=e;return t&&(t=e.toLocaleLowerCase()),t}function ye(e){return ae?ae():e}function be(e){var t=e.hostName||"WeChat";return e.environment?t=e.environment:e.host&&e.host.env&&(t=e.host.env),t}var me={returnValue:function(e){he(e),pe(e),function(e){var t,n=e.brand,r=void 0===n?"":n,o=e.model,i=void 0===o?"":o,a=e.system,s=void 0===a?"":a,u=e.language,c=void 0===u?"":u,f=e.theme,l=e.version,d=(e.platform,e.fontSizeSetting),h=e.SDKVersion,p=e.pixelRatio,v=e.deviceOrientation,g="";g=s.split(" ")[0]||"",t=s.split(" ")[1]||"";var y=l,b=ve(e,i),m=ge(r),_=be(e),w=v,x=p,k=h,O=c.replace(/_/g,"-"),A={appId:"__UNI__F702B81",appName:"智慧云商协",appVersion:"1.0.0",appVersionCode:"100",appLanguage:ye(O),uniCompileVersion:"4.08",uniRuntimeVersion:"4.08",uniPlatform:"mp-weixin",deviceBrand:m,deviceModel:i,deviceType:b,devicePixelRatio:x,deviceOrientation:w,osName:g.toLocaleLowerCase(),osVersion:t,hostTheme:f,hostVersion:y,hostLanguage:O,hostName:_,hostSDKVersion:k,hostFontSizeSetting:d,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0};Object.assign(e,A,{})}(e)}},_e={args:function(e){"object"===(0,f.default)(e)&&(e.alertText=e.title)}},we={returnValue:function(e){var t=e,n=t.version,r=t.language,o=t.SDKVersion,i=t.theme,a=be(e),s=r.replace("_","-");e=T(Object.assign(e,{appId:"__UNI__F702B81",appName:"智慧云商协",appVersion:"1.0.0",appVersionCode:"100",appLanguage:ye(s),hostVersion:n,hostLanguage:s,hostName:a,hostSDKVersion:o,hostTheme:i}))}},xe={returnValue:function(e){var t=e,n=t.brand,r=t.model,o=ve(e,r),i=ge(n);he(e),e=T(Object.assign(e,{deviceType:o,deviceBrand:i,deviceModel:r}))}},ke={returnValue:function(e){pe(e),e=T(Object.assign(e,{windowTop:0,windowBottom:0}))}},Oe={redirectTo:le,previewImage:de,getSystemInfo:me,getSystemInfoSync:me,showActionSheet:_e,getAppBaseInfo:we,getDeviceInfo:xe,getWindowInfo:ke,getAppAuthorizeSetting:{returnValue:function(e){var t=e.locationReducedAccuracy;e.locationAccuracy="unsupported",!0===t?e.locationAccuracy="reduced":!1===t&&(e.locationAccuracy="full")}},compressImage:{args:function(e){e.compressedHeight&&!e.compressHeight&&(e.compressHeight=e.compressedHeight),e.compressedWidth&&!e.compressWidth&&(e.compressWidth=e.compressedWidth)}}},Ae=["success","fail","cancel","complete"];function Se(e,t,n){return function(r){return t(Te(e,r,n))}}function Pe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(x(t)){var i=!0===o?t:{};for(var a in _(n)&&(n=n(t,i)||{}),t)if(k(n,a)){var s=n[a];_(s)&&(s=s(t[a],t,i)),s?w(s)?i[s]=t[a]:x(s)&&(i[s.name?s.name:a]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==Ae.indexOf(a)?_(t[a])&&(i[a]=Se(e,t[a],r)):o||(i[a]=t[a]);return i}return _(t)&&(t=Se(e,t,r)),t}function Te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return _(Oe.returnValue)&&(t=Oe.returnValue(e,t)),Pe(e,t,n,{},r)}function Ee(t,n){if(k(Oe,t)){var r=Oe[t];return r?function(n,o){var i=r;_(r)&&(i=r(n)),n=Pe(t,n,i.args,i.returnValue);var a=[n];"undefined"!==typeof o&&a.push(o),_(i.name)?t=i.name(n):w(i.name)&&(t=i.name);var s=e[t].apply(e,a);return J(t)?Te(t,s,i.returnValue,W(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return n}var Ie=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(e){Ie[e]=function(e){return function(t){var n=t.fail,r=t.complete,o={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};_(n)&&n(o),_(r)&&r(o)}}(e)}));var je={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Ce=Object.freeze({__proto__:null,getProvider:function(e){var t=e.service,n=e.success,r=e.fail,o=e.complete,i=!1;je[t]?(i={errMsg:"getProvider:ok",service:t,provider:je[t]},_(n)&&n(i)):(i={errMsg:"getProvider:fail service not found"},_(r)&&r(i)),_(o)&&o(i)}}),$e=function(){var e;return function(){return e||(e=new d.default),e}}();function Le(e,t,n){return e[t].apply(e,n)}var De,Me,Re,Ue=Object.freeze({__proto__:null,$on:function(){return Le($e(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return Le($e(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return Le($e(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return Le($e(),"$emit",Array.prototype.slice.call(arguments))}});function Ne(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Fe(e){try{return JSON.parse(e)}catch(t){}return e}var Be=[];function qe(e,t){Be.forEach((function(n){n(e,t)})),Be.length=0}var Ve=[],He=e.getAppBaseInfo&&e.getAppBaseInfo();He||(He=e.getSystemInfoSync());var ze=He?He.host:null,Ke=ze&&"SAAASDK"===ze.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,We=Object.freeze({__proto__:null,shareVideoMessage:Ke,getPushClientId:function(e){x(e)||(e={});var t=function(e){var t={};for(var n in e){var r=e[n];_(r)&&(t[n]=Ne(r),delete e[n])}return t}(e),n=t.success,r=t.fail,o=t.complete,i=_(n),a=_(r),s=_(o);Promise.resolve().then((function(){"undefined"===typeof Re&&(Re=!1,De="",Me="uniPush is not enabled"),Be.push((function(e,t){var u;e?(u={errMsg:"getPushClientId:ok",cid:e},i&&n(u)):(u={errMsg:"getPushClientId:fail"+(t?" "+t:"")},a&&r(u)),s&&o(u)})),"undefined"!==typeof De&&qe(De,Me)}))},onPushMessage:function(e){-1===Ve.indexOf(e)&&Ve.push(e)},offPushMessage:function(e){if(e){var t=Ve.indexOf(e);t>-1&&Ve.splice(t,1)}else Ve.length=0},invokePushCallback:function(e){if("enabled"===e.type)Re=!0;else if("clientId"===e.type)De=e.cid,Me=e.errMsg,qe(De,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Fe(e.message)},n=0;n<Ve.length;n++){var r=Ve[n];if(r(t),t.stopped)break}else"click"===e.type&&Ve.forEach((function(t){t({type:"click",data:Fe(e.message)})}))}}),Je=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Ge(e){return Behavior(e)}function Ye(){return!!this.route}function Ze(e){this.triggerEvent("__l",e)}function Qe(e){var t=e.$scope,n={};Object.defineProperty(e,"$refs",{get:function(){var e={};(function e(t,n,r){var o=t.selectAllComponents(n)||[];o.forEach((function(t){var o=t.dataset.ref;r[o]=t.$vm||tt(t),"scoped"===t.dataset.vueGeneric&&t.selectAllComponents(".scoped-ref").forEach((function(t){e(t,n,r)}))}))})(t,".vue-ref",e);var r=t.selectAllComponents(".vue-ref-in-for")||[];return r.forEach((function(t){var n=t.dataset.ref;e[n]||(e[n]=[]),e[n].push(t.$vm||tt(t))})),function(e,t){var n=(0,u.default)(Set,(0,c.default)(Object.keys(e))),r=Object.keys(t);return r.forEach((function(r){var o=e[r],i=t[r];Array.isArray(o)&&Array.isArray(i)&&o.length===i.length&&i.every((function(e){return o.includes(e)}))||(e[r]=i,n.delete(r))})),n.forEach((function(t){delete e[t]})),e}(n,e)}})}function Xe(e){var t,n=e.detail||e.value,r=n.vuePid,o=n.vueOptions;r&&(t=function e(t,n){for(var r,o=t.$children,i=o.length-1;i>=0;i--){var a=o[i];if(a.$scope._$vueId===n)return a}for(var s=o.length-1;s>=0;s--)if(r=e(o[s],n),r)return r}(this.$vm,r)),t||(t=this.$vm),o.parent=t}function et(e){return Object.defineProperty(e,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),e}function tt(e){return function(e){return null!==e&&"object"===(0,f.default)(e)}(e)&&Object.isExtensible(e)&&Object.defineProperty(e,"__ob__",{configurable:!0,enumerable:!1,value:(0,s.default)({},"__v_skip",!0)}),e}var nt=/_(.*)_worklet_factory_/;var rt=Page,ot=Component,it=/:/g,at=A((function(e){return P(e.replace(it,"-"))}));function st(e){var t=e.triggerEvent,n=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.$vm||this.dataset&&this.dataset.comType)e=at(e);else{var i=at(e);i!==e&&t.apply(this,[i].concat(r))}return t.apply(this,[e].concat(r))};try{e.triggerEvent=n}catch(r){e._triggerEvent=n}}function ut(e,t,n){var r=t[e];t[e]=function(){if(et(this),st(this),r){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.apply(this,t)}}}rt.__$wrappered||(rt.__$wrappered=!0,Page=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ut("onLoad",e),rt(e)},Page.after=rt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ut("created",e),ot(e)});function ct(e,t,n){t.forEach((function(t){(function e(t,n){if(!n)return!0;if(d.default.options&&Array.isArray(d.default.options[t]))return!0;if(n=n.default||n,_(n))return!!_(n.extendOptions[t])||!!(n.super&&n.super.options&&Array.isArray(n.super.options[t]));if(_(n[t])||Array.isArray(n[t]))return!0;var r=n.mixins;return Array.isArray(r)?!!r.find((function(n){return e(t,n)})):void 0})(t,n)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];lt(t).forEach((function(t){return dt(e,t,n)}))}function lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(n){0===n.indexOf("on")&&_(e[n])&&t.push(n)})),t}function dt(e,t,n){-1!==n.indexOf(t)||k(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function ht(e,t){var n;return t=t.default||t,n=_(t)?t:e.extend(t),t=n.options,[n,t]}function pt(e,t){if(Array.isArray(t)&&t.length){var n=Object.create(null);t.forEach((function(e){n[e]=!0})),e.$scopedSlots=e.$slots=n}}function vt(e,t){e=(e||"").split(",");var n=e.length;1===n?t._$vueId=e[0]:2===n&&(t._$vueId=e[0],t._$vuePid=e[1])}function gt(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(o){Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"智慧云商协",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(o){}return x(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||k(n,e)||(n[e]=r[e])})),n}var yt=[String,Number,Boolean,Object,Array,null];function bt(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function mt(e,t){var n=e.behaviors,r=e.extends,o=e.mixins,i=e.props;i||(e.props=i=[]);var a=[];return Array.isArray(n)&&n.forEach((function(e){a.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(i)?(i.push("name"),i.push("value")):(i.name={type:String,default:""},i.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),x(r)&&r.props&&a.push(t({properties:wt(r.props,!0)})),Array.isArray(o)&&o.forEach((function(e){x(e)&&e.props&&a.push(t({properties:wt(e.props,!0)}))})),a}function _t(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function wt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return t||(r.vueId={type:String,value:""},n.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(e,t){var n=Object.create(null);e.forEach((function(e){n[e]=!0})),this.setData({$slots:n})}}),Array.isArray(e)?e.forEach((function(e){r[e]={type:null,observer:bt(e)}})):x(e)&&Object.keys(e).forEach((function(t){var n=e[t];if(x(n)){var o=n.default;_(o)&&(o=o()),n.type=_t(0,n.type),r[t]={type:-1!==yt.indexOf(n.type)?n.type:null,value:o,observer:bt(t)}}else{var i=_t(0,n);r[t]={type:-1!==yt.indexOf(i)?i:null,observer:bt(t)}}})),r}function xt(e,t,n,r){var o={};return Array.isArray(t)&&t.length&&t.forEach((function(t,i){"string"===typeof t?t?"$event"===t?o["$"+i]=n:"arguments"===t?o["$"+i]=n.detail&&n.detail.__args__||r:0===t.indexOf("$event.")?o["$"+i]=e.__get_value(t.replace("$event.",""),n):o["$"+i]=e.__get_value(t):o["$"+i]=e:o["$"+i]=function(e,t){var n=e;return t.forEach((function(t){var r=t[0],o=t[2];if(r||"undefined"!==typeof o){var i,a=t[1],s=t[3];Number.isInteger(r)?i=r:r?"string"===typeof r&&r&&(i=0===r.indexOf("#s#")?r.substr(3):e.__get_value(r,n)):i=n,Number.isInteger(i)?n=o:a?Array.isArray(i)?n=i.find((function(t){return e.__get_value(a,t)===o})):x(i)?n=Object.keys(i).find((function(t){return e.__get_value(a,i[t])===o})):console.error("v-for 暂不支持循环数据:",i):n=i[o],s&&(n=e.__get_value(s,n))}})),n}(e,t)})),o}function kt(e){for(var t={},n=1;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t}function Ot(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=!1,s=x(t.detail)&&t.detail.__args__||[t.detail];if(o&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!n.length))return a?[t]:s;var u=xt(e,r,t,s),c=[];return n.forEach((function(e){"$event"===e?"__set_model"!==i||o?o&&!a?c.push(s[0]):c.push(t):c.push(t.target.value):Array.isArray(e)&&"o"===e[0]?c.push(kt(e)):"string"===typeof e&&k(u,e)?c.push(u[e]):c.push(e)})),c}function At(e){var t=this;e=function(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=O,e.preventDefault=O,e.target=e.target||{},k(e,"detail")||(e.detail={}),k(e,"markerId")&&(e.detail="object"===(0,f.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),x(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}(e);var n=(e.currentTarget||e.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var o=e.type,i=[];return r.forEach((function(n){var r=n[0],a=n[1],s="^"===r.charAt(0);r=s?r.slice(1):r;var u="~"===r.charAt(0);r=u?r.slice(1):r,a&&function(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}(o,r)&&a.forEach((function(n){var r=n[0];if(r){var o=t.$vm;if(o.$options.generic&&(o=function(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}(o)||o),"$emit"===r)return void o.$emit.apply(o,Ot(t.$vm,e,n[1],n[2],s,r));var a=o[r];if(!_(a)){var c="page"===t.$vm.mpType?"Page":"Component",f=t.route||t.is;throw new Error("".concat(c,' "').concat(f,'" does not have a method "').concat(r,'"'))}if(u){if(a.once)return;a.once=!0}var l=Ot(t.$vm,e,n[1],n[2],s,r);l=Array.isArray(l)?l:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(l=l.concat([,,,,,,,,,,e])),i.push(a.apply(o,l))}}))})),"input"===o&&1===i.length&&"undefined"!==typeof i[0]?i[0]:void 0}var St={};var Pt=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Tt(){d.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=d.default.prototype.__call_hook;d.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=function(e){var t=St[e];return delete St[e],t}(n.__id__),delete n.__id__),e.call(this,t,n)}}function Et(t,n){var r=n.mocks,o=n.initRefs;Tt(),function(){var e={},t={};function n(e){var t=this.$options.propsData.vueId;if(t){var n=t.split(",")[0];e(n)}}d.default.prototype.$hasSSP=function(n){var r=e[n];return r||(t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))),r},d.default.prototype.$getSSP=function(t,n,r){var o=e[t];if(o){var i=o[n]||[];return r?i:i[0]}},d.default.prototype.$setSSP=function(t,r){var o=0;return n.call(this,(function(n){var i=e[n],a=i[t]=i[t]||[];a.push(r),o=a.length-1})),o},d.default.prototype.$initSSP=function(){n.call(this,(function(t){e[t]={}}))},d.default.prototype.$callSSP=function(){n.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},d.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete e[r],delete t[r])}})}(),t.$options.store&&(d.default.prototype.$store=t.$options.store),function(e){e.prototype.uniIDHasRole=function(e){var t=y(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=y(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=y(),t=e.tokenExpired;return t>Date.now()}}(d.default),d.default.prototype.mpHost="mp-weixin",d.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(o(this),function(e,t){var n=e.$mp[e.mpType];t.forEach((function(t){k(n,t)&&(e[t]=n[t])}))}(this,r))}}});var i={onLaunch:function(n){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",n),this.$vm.__call_hook("onLaunch",n))}};i.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(e){i[e]=a[e]})),function(e,t,n){var r=e.observable({locale:n||re.getLocale()}),o=[];t.$watchLocale=function(e){o.push(e)},Object.defineProperty(t,"$locale",{get:function(){return r.locale},set:function(e){r.locale=e,o.forEach((function(t){return t(e)}))}})}(d.default,t,ie(e.getSystemInfoSync().language)||"en"),ct(i,Pt),ft(i,t.$options),i}function It(e){return Et(e,{mocks:Je,initRefs:Qe})}function jt(e){return App(It(e)),e}var Ct=/[!'()*]/g,$t=function(e){return"%"+e.charCodeAt(0).toString(16)},Lt=/%2C/g,Dt=function(e){return encodeURIComponent(e).replace(Ct,$t).replace(Lt,",")};function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt,n=e?Object.keys(e).map((function(n){var r=e[n];if(void 0===r)return"";if(null===r)return t(n);if(Array.isArray(r)){var o=[];return r.forEach((function(e){void 0!==e&&(null===e?o.push(t(n)):o.push(t(n)+"="+t(e)))})),o.join("&")}return t(n)+"="+t(r)})).filter((function(e){return e.length>0})).join("&"):null;return n?"?".concat(n):""}function Rt(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPage,r=t.initRelation,o=arguments.length>2?arguments[2]:void 0,i=ht(d.default,e),s=(0,a.default)(i,2),u=s[0],c=s[1],f=p({multipleSlots:!0,addGlobalClass:!0},c.options||{});c["mp-weixin"]&&c["mp-weixin"].options&&Object.assign(f,c["mp-weixin"].options);var l={options:f,data:gt(c,d.default.prototype),behaviors:mt(c,Ge),properties:wt(c.props,!1,c.__file,f),lifetimes:{attached:function(){var e=this.properties,t={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:e};vt(e.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new u(t),pt(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:Xe,__e:At}};return c.externalClasses&&(l.externalClasses=c.externalClasses),Array.isArray(c.wxsCallMethods)&&c.wxsCallMethods.forEach((function(e){l.methods[e]=function(t){return this.$vm[e](t)}})),o?[l,c,u]:n?l:[l,u]}(e,{isPage:Ye,initRelation:Ze},t)}var Ut=["onShow","onHide","onUnload"];function Nt(e){var t=Rt(e,!0),n=(0,a.default)(t,2),r=n[0],o=n[1];return ct(r.methods,Ut,o),r.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Mt(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},ft(r.methods,e,["onReady"]),function(e,t){t&&Object.keys(t).forEach((function(n){var r=n.match(nt);if(r){var o=r[1];e[n]=t[n],e[o]=t[o]}}))}(r.methods,o.methods),r}function Ft(e){return Component(function(e){return Nt(e)}(e))}function Bt(e){return Component(Rt(e))}function qt(t){var n=It(t),r=getApp({allowDefault:!0});t.$scope=r;var o=r.globalData;if(o&&Object.keys(n.globalData).forEach((function(e){k(o,e)||(o[e]=n.globalData[e])})),Object.keys(n).forEach((function(e){k(r,e)||(r[e]=n[e])})),_(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onShow",n)})),_(n.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onHide",n)})),_(n.onLaunch)){var i=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",i)}return t}function Vt(t){var n=It(t);if(_(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onShow",n)})),_(n.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onHide",n)})),_(n.onLaunch)){var r=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",r)}return t}Ut.push.apply(Ut,["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"]),["vibrate","preloadPage","unPreloadPage","loadSubPackage"].forEach((function(e){Oe[e]=!1})),[].forEach((function(t){var n=Oe[t]&&Oe[t].name?Oe[t].name:t;e.canIUse(n)||(Oe[t]=!1)}));var Ht={};"undefined"!==typeof Proxy?Ht=new Proxy({},{get:function(t,n){return k(t,n)?t[n]:ce[n]?ce[n]:We[n]?Z(n,We[n]):Ce[n]?Z(n,Ce[n]):Ie[n]?Z(n,Ie[n]):Ue[n]?Ue[n]:Z(n,Ee(n,e[n]))},set:function(e,t,n){return e[t]=n,!0}}):(Object.keys(ce).forEach((function(e){Ht[e]=ce[e]})),Object.keys(Ie).forEach((function(e){Ht[e]=Z(e,Ie[e])})),Object.keys(Ce).forEach((function(e){Ht[e]=Z(e,Ce[e])})),Object.keys(Ue).forEach((function(e){Ht[e]=Ue[e]})),Object.keys(We).forEach((function(e){Ht[e]=Z(e,We[e])})),Object.keys(e).forEach((function(t){(k(e,t)||k(Oe,t))&&(Ht[t]=Z(t,Ee(t,e[t])))}))),e.createApp=jt,e.createPage=Ft,e.createComponent=Bt,e.createSubpackageApp=qt,e.createPlugin=Vt;var zt=Ht,Kt=zt;t.default=Kt}).call(this,n("bc2e")["default"],n("c8ba"))},"5a43":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports["default"]=e.exports},"5bc3":function(e,t,n){var r=n("a395");function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports["default"]=e.exports},6262:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(n=n||r.length,e)for(var i=0;i<e;i++)o[i]=r[0|Math.random()*n];else{var a;o[8]=o[13]=o[18]=o[23]="-",o[14]="4";for(var s=0;s<36;s++)o[s]||(a=0|16*Math.random(),o[s]=r[19==s?3&a|8:a])}return t?(o.shift(),"t"+o.join("")):o.join("")};t.default=r},"62e5":function(e,t,n){"use strict";(function(e,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){return new Promise((function(t,r){e.getSystemInfo({success:function(e){var r,o;r=e.statusBarHeight;var i=n.getMenuButtonBoundingClientRect();o=i.bottom+(i.top-e.statusBarHeight<=4?i.top-e.statusBarHeight+4:i.top-e.statusBarHeight),t({statusBarHeight:r,customBarHeight:o})},fail:function(e){console.log("获取设备信息失败",e),r()}})}))};t.default=r}).call(this,n("543d")["default"],n("bc2e")["default"])},"63f8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"64e0":function(e,t,n){"use strict";var r=n("7037");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!t)return e;var n;if(o.isURLSearchParams(t))n=t.toString();else{var r=[];o.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,(function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),r.push(a(t)+"="+a(e))})))})),n=r.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n("6e37"));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}},6602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={easycom:{"^tn-(.*)":"@/tuniao-ui/components/tn-$1/tn-$1.vue"},pages:[{path:"pages/index/index",style:{navigationBarTitleText:"智慧云商协"}},{path:"pages/index/home",style:{navigationBarTitleText:"智慧云商协"}},{path:"pages/index/service",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/pizz",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/user",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/discovery",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/directory",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/user_info",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/new_info",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/events_list",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/knowledge_list",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/goods_info",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/goods_list",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/search/search",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/pizz_info",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/apply_in",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/enter_in",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/goods_my",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/events_my",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/my_card",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/my_pizz",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/my_apply",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/my_msg",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/my_assist",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/my_idea",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/my_settings",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/my_edit",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/tissue",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/my_desc",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}},{path:"pages/index/event_info",style:{navigationBarTitleText:"智慧云商协",enablePullDownRefresh:!1}}],globalStyle:{navigationStyle:"custom",navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},uniIdRouter:{}}},6613:function(e,t,n){var r=n("5a43");e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"66fd":function(e,t,n){"use strict";n.r(t),function(e){
/*!
* Vue.js v2.6.11
* (c) 2014-2023 Evan You
* Released under the MIT License.
*/
var n=Object.freeze({});function r(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function i(e){return!0===e}function a(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function s(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function l(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}p("slot,component",!0);var v=p("key,ref,slot,slot-scope,is");function g(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(e,t){return y.call(e,t)}function m(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var _=/-(\w)/g,w=m((function(e){return e.replace(_,(function(e,t){return t?t.toUpperCase():""}))})),x=m((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,O=m((function(e){return e.replace(k,"-$1").toLowerCase()}));var A=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function S(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function T(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}function E(e,t,n){}var I=function(e,t,n){return!1},j=function(e){return e};function C(e,t){if(e===t)return!0;var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every((function(e,n){return C(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||i)return!1;var a=Object.keys(e),u=Object.keys(t);return a.length===u.length&&a.every((function(n){return C(e[n],t[n])}))}catch(c){return!1}}function $(e,t){for(var n=0;n<e.length;n++)if(C(e[n],t))return n;return-1}function L(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var D=["component","directive","filter"],M=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],R={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:I,isReservedAttr:I,isUnknownElement:I,getTagNamespace:E,parsePlatformTagName:j,mustUseProp:I,async:!0,_lifecycleHooks:M},U=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function N(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function F(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var B=new RegExp("[^"+U.source+".$_\\d]");var q,V="__proto__"in{},H="undefined"!==typeof window,z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,K=z&&WXEnvironment.platform.toLowerCase(),W=H&&window.navigator.userAgent.toLowerCase(),J=W&&/msie|trident/.test(W),G=(W&&W.indexOf("msie 9.0"),W&&W.indexOf("edge/")>0),Y=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===K),Z=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/),{}.watch);if(H)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Q)}catch(Rn){}var X=function(){return void 0===q&&(q=!H&&!z&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),q},ee=H&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function te(e){return"function"===typeof e&&/native code/.test(e.toString())}var ne,re="undefined"!==typeof Symbol&&te(Symbol)&&"undefined"!==typeof Reflect&&te(Reflect.ownKeys);ne="undefined"!==typeof Set&&te(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var oe=E,ie=0,ae=function(){this.id=ie++,this.subs=[]};function se(e){ae.SharedObject.targetStack.push(e),ae.SharedObject.target=e,ae.target=e}function ue(){ae.SharedObject.targetStack.pop(),ae.SharedObject.target=ae.SharedObject.targetStack[ae.SharedObject.targetStack.length-1],ae.target=ae.SharedObject.target}ae.prototype.addSub=function(e){this.subs.push(e)},ae.prototype.removeSub=function(e){g(this.subs,e)},ae.prototype.depend=function(){ae.SharedObject.target&&ae.SharedObject.target.addDep(this)},ae.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ae.SharedObject={},ae.SharedObject.target=null,ae.SharedObject.targetStack=[];var ce=function(e,t,n,r,o,i,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},fe={child:{configurable:!0}};fe.child.get=function(){return this.componentInstance},Object.defineProperties(ce.prototype,fe);var le=function(e){void 0===e&&(e="");var t=new ce;return t.text=e,t.isComment=!0,t};function de(e){return new ce(void 0,void 0,void 0,String(e))}var he=Array.prototype,pe=Object.create(he);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=he[e];F(pe,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var o,i=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2);break}return o&&a.observeArray(o),a.dep.notify(),i}))}));var ve=Object.getOwnPropertyNames(pe),ge=!0;function ye(e){ge=e}var be=function(e){this.value=e,this.dep=new ae,this.vmCount=0,F(e,"__ob__",this),Array.isArray(e)?(V?e.push!==e.__proto__.push?me(e,pe,ve):function(e,t){e.__proto__=t}(e,pe):me(e,pe,ve),this.observeArray(e)):this.walk(e)};function me(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];F(e,i,t[i])}}function _e(e,t){var n;if(s(e)&&!(e instanceof ce))return b(e,"__ob__")&&e.__ob__ instanceof be?n=e.__ob__:!ge||X()||!Array.isArray(e)&&!c(e)||!Object.isExtensible(e)||e._isVue||e.__v_isMPComponent||(n=new be(e)),t&&n&&n.vmCount++,n}function we(e,t,n,r,o){var i=new ae,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(n=e[t]);var c=!o&&_e(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return ae.SharedObject.target&&(i.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Oe(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||s&&!u||(u?u.call(e,t):n=t,c=!o&&_e(t),i.notify())}})}}function xe(e,t,n){if(Array.isArray(e)&&f(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(we(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function ke(e,t){if(Array.isArray(e)&&f(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||b(e,t)&&(delete e[t],n&&n.dep.notify())}}function Oe(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Oe(t)}be.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)we(e,t[n])},be.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)_e(e[t])};var Ae=R.optionMergeStrategies;function Se(e,t){if(!t)return e;for(var n,r,o,i=re?Reflect.ownKeys(t):Object.keys(t),a=0;a<i.length;a++)n=i[a],"__ob__"!==n&&(r=e[n],o=t[n],b(e,n)?r!==o&&c(r)&&c(o)&&Se(r,o):xe(e,n,o));return e}function Pe(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,o="function"===typeof e?e.call(n,n):e;return r?Se(r,o):o}:t?e?function(){return Se("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Te(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ee(e,t,n,r){var o=Object.create(e||null);return t?P(o,t):o}Ae.data=function(e,t,n){return n?Pe(e,t,n):t&&"function"!==typeof t?e:Pe(e,t)},M.forEach((function(e){Ae[e]=Te})),D.forEach((function(e){Ae[e+"s"]=Ee})),Ae.watch=function(e,t,n,r){if(e===Z&&(e=void 0),t===Z&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var o={};for(var i in P(o,e),t){var a=o[i],s=t[i];a&&!Array.isArray(a)&&(a=[a]),o[i]=a?a.concat(s):Array.isArray(s)?s:[s]}return o},Ae.props=Ae.methods=Ae.inject=Ae.computed=function(e,t,n,r){if(!e)return t;var o=Object.create(null);return P(o,e),t&&P(o,t),o},Ae.provide=Pe;var Ie=function(e,t){return void 0===t?e:t};function je(e,t,n){if("function"===typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,o,i,a={};if(Array.isArray(n)){r=n.length;while(r--)o=n[r],"string"===typeof o&&(i=w(o),a[i]={type:null})}else if(c(n))for(var s in n)o=n[s],i=w(s),a[i]=c(o)?o:{type:o};else 0;e.props=a}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(c(n))for(var i in n){var a=n[i];r[i]=c(a)?P({from:i},a):{from:a}}else 0}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=je(e,t.extends,n)),t.mixins))for(var r=0,o=t.mixins.length;r<o;r++)e=je(e,t.mixins[r],n);var i,a={};for(i in e)s(i);for(i in t)b(e,i)||s(i);function s(r){var o=Ae[r]||Ie;a[r]=o(e[r],t[r],n,r)}return a}function Ce(e,t,n,r){if("string"===typeof n){var o=e[t];if(b(o,n))return o[n];var i=w(n);if(b(o,i))return o[i];var a=x(i);if(b(o,a))return o[a];var s=o[n]||o[i]||o[a];return s}}function $e(e,t,n,r){var o=t[e],i=!b(n,e),a=n[e],s=Me(Boolean,o.type);if(s>-1)if(i&&!b(o,"default"))a=!1;else if(""===a||a===O(e)){var u=Me(String,o.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!b(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"===typeof r&&"Function"!==Le(t.type)?r.call(e):r}(r,o,e);var c=ge;ye(!0),_e(a),ye(c)}return a}function Le(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function De(e,t){return Le(e)===Le(t)}function Me(e,t){if(!Array.isArray(t))return De(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(De(t[n],e))return n;return-1}function Re(e,t,n){se();try{if(t){var r=t;while(r=r.$parent){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{var a=!1===o[i].call(r,e,t,n);if(a)return}catch(Rn){Ne(Rn,r,"errorCaptured hook")}}}Ne(e,t,n)}finally{ue()}}function Ue(e,t,n,r,o){var i;try{i=n?e.apply(t,n):e.call(t),i&&!i._isVue&&l(i)&&!i._handled&&(i.catch((function(e){return Re(e,r,o+" (Promise/async)")})),i._handled=!0)}catch(Rn){Re(Rn,r,o)}return i}function Ne(e,t,n){if(R.errorHandler)try{return R.errorHandler.call(null,e,t,n)}catch(Rn){Rn!==e&&Fe(Rn,null,"config.errorHandler")}Fe(e,t,n)}function Fe(e,t,n){if(!H&&!z||"undefined"===typeof console)throw e;console.error(e)}var Be,qe=[],Ve=!1;function He(){Ve=!1;var e=qe.slice(0);qe.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&te(Promise)){var ze=Promise.resolve();Be=function(){ze.then(He),Y&&setTimeout(E)}}else if(J||"undefined"===typeof MutationObserver||!te(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Be="undefined"!==typeof setImmediate&&te(setImmediate)?function(){setImmediate(He)}:function(){setTimeout(He,0)};else{var Ke=1,We=new MutationObserver(He),Je=document.createTextNode(String(Ke));We.observe(Je,{characterData:!0}),Be=function(){Ke=(Ke+1)%2,Je.data=String(Ke)}}function Ge(e,t){var n;if(qe.push((function(){if(e)try{e.call(t)}catch(Rn){Re(Rn,t,"nextTick")}else n&&n(t)})),Ve||(Ve=!0,Be()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var Ye=new ne;function Ze(e){(function e(t,n){var r,o,i=Array.isArray(t);if(!i&&!s(t)||Object.isFrozen(t)||t instanceof ce)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(i){r=t.length;while(r--)e(t[r],n)}else{o=Object.keys(t),r=o.length;while(r--)e(t[o[r]],n)}})(e,Ye),Ye.clear()}var Qe=m((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function Xe(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Ue(r,null,arguments,t,"v-on handler");for(var o=r.slice(),i=0;i<o.length;i++)Ue(o[i],null,e,t,"v-on handler")}return n.fns=e,n}function et(e,t,n,i){var a=t.options.mpOptions&&t.options.mpOptions.properties;if(r(a))return n;var s=t.options.mpOptions.externalClasses||[],u=e.attrs,c=e.props;if(o(u)||o(c))for(var f in a){var l=O(f),d=tt(n,c,f,l,!0)||tt(n,u,f,l,!1);d&&n[f]&&-1!==s.indexOf(l)&&i[w(n[f])]&&(n[f]=i[w(n[f])])}return n}function tt(e,t,n,r,i){if(o(t)){if(b(t,n))return e[n]=t[n],i||delete t[n],!0;if(b(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function nt(e){return a(e)?[de(e)]:Array.isArray(e)?function e(t,n){var s,u,c,f,l=[];for(s=0;s<t.length;s++)u=t[s],r(u)||"boolean"===typeof u||(c=l.length-1,f=l[c],Array.isArray(u)?u.length>0&&(u=e(u,(n||"")+"_"+s),rt(u[0])&&rt(f)&&(l[c]=de(f.text+u[0].text),u.shift()),l.push.apply(l,u)):a(u)?rt(f)?l[c]=de(f.text+u):""!==u&&l.push(de(u)):rt(u)&&rt(f)?l[c]=de(f.text+u.text):(i(t._isVList)&&o(u.tag)&&r(u.key)&&o(n)&&(u.key="__vlist"+n+"_"+s+"__"),l.push(u)));return l}(e):void 0}function rt(e){return o(e)&&o(e.text)&&function(e){return!1===e}(e.isComment)}function ot(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function it(e){var t=at(e.$options.inject,e);t&&(ye(!1),Object.keys(t).forEach((function(n){we(e,n,t[n])})),ye(!0))}function at(e,t){if(e){for(var n=Object.create(null),r=re?Reflect.ownKeys(e):Object.keys(e),o=0;o<r.length;o++){var i=r[o];if("__ob__"!==i){var a=e[i].from,s=t;while(s){if(s._provided&&b(s._provided,a)){n[i]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[i]){var u=e[i].default;n[i]="function"===typeof u?u.call(t):u}else 0}}return n}}function st(e,t){if(!e||!e.length)return{};for(var n={},r=0,o=e.length;r<o;r++){var i=e[r],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,i.context!==t&&i.fnContext!==t||!a||null==a.slot)i.asyncMeta&&i.asyncMeta.data&&"page"===i.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(i):(n.default||(n.default=[])).push(i);else{var s=a.slot,u=n[s]||(n[s]=[]);"template"===i.tag?u.push.apply(u,i.children||[]):u.push(i)}}for(var c in n)n[c].every(ut)&&delete n[c];return n}function ut(e){return e.isComment&&!e.asyncFactory||" "===e.text}function ct(e,t,r){var o,i=Object.keys(t).length>0,a=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!i&&!r.$hasNormal)return r;for(var u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=ft(t,u,e[u]))}else o={};for(var c in t)c in o||(o[c]=lt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=o),F(o,"$stable",a),F(o,"$key",s),F(o,"$hasNormal",i),o}function ft(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:nt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function lt(e,t){return function(){return e[t]}}function dt(e,t){var n,r,i,a,u;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r,r,r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r,r,r);else if(s(e))if(re&&e[Symbol.iterator]){n=[];var c=e[Symbol.iterator](),f=c.next();while(!f.done)n.push(t(f.value,n.length,r,r++)),f=c.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,i=a.length;r<i;r++)u=a[r],n[r]=t(e[u],u,r,r);return o(n)||(n=[]),n._isVList=!0,n}function ht(e,t,n,r){var o,i=this.$scopedSlots[e];i?(n=n||{},r&&(n=P(P({},r),n)),o=i(n,this,n._i)||t):o=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},o):o}function pt(e){return Ce(this.$options,"filters",e)||j}function vt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function gt(e,t,n,r,o){var i=R.keyCodes[t]||n;return o&&r&&!R.keyCodes[t]?vt(o,r):i?vt(i,e):r?O(r)!==t:void 0}function yt(e,t,n,r,o){if(n)if(s(n)){var i;Array.isArray(n)&&(n=T(n));var a=function(a){if("class"===a||"style"===a||v(a))i=e;else{var s=e.attrs&&e.attrs.type;i=r||R.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var u=w(a),c=O(a);if(!(u in i)&&!(c in i)&&(i[a]=n[a],o)){var f=e.on||(e.on={});f["update:"+a]=function(e){n[a]=e}}};for(var u in n)a(u)}else;return e}function bt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),_t(r,"__static__"+e,!1)),r}function mt(e,t,n){return _t(e,"__once__"+t+(n?"_"+n:""),!0),e}function _t(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&wt(e[r],t+"_"+r,n);else wt(e,t,n)}function wt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function xt(e,t){if(t)if(c(t)){var n=e.on=e.on?P({},e.on):{};for(var r in t){var o=n[r],i=t[r];n[r]=o?[].concat(o,i):i}}else;return e}function kt(e,t,n,r){t=t||{$stable:!n};for(var o=0;o<e.length;o++){var i=e[o];Array.isArray(i)?kt(i,t,n):i&&(i.proxy&&(i.fn.proxy=!0),t[i.key]=i.fn)}return r&&(t.$key=r),t}function Ot(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function At(e,t){return"string"===typeof e?t+e:e}function St(e){e._o=mt,e._n=h,e._s=d,e._l=dt,e._t=ht,e._q=C,e._i=$,e._m=bt,e._f=pt,e._k=gt,e._b=yt,e._v=de,e._e=le,e._u=kt,e._g=xt,e._d=Ot,e._p=At}function Pt(e,t,r,o,a){var s,u=this,c=a.options;b(o,"_uid")?(s=Object.create(o),s._original=o):(s=o,o=o._original);var f=i(c._compiled),l=!f;this.data=e,this.props=t,this.children=r,this.parent=o,this.listeners=e.on||n,this.injections=at(c.inject,o),this.slots=function(){return u.$slots||ct(e.scopedSlots,u.$slots=st(r,o)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ct(e.scopedSlots,this.slots())}}),f&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=ct(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,r){var i=Lt(s,e,t,n,r,l);return i&&!Array.isArray(i)&&(i.fnScopeId=c._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return Lt(s,e,t,n,r,l)}}function Tt(e,t,n,r,o){var i=function(e){var t=new ce(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}(e);return i.fnContext=n,i.fnOptions=r,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function Et(e,t){for(var n in t)e[w(n)]=t[n]}St(Pt.prototype);var It={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;It.prepatch(n,n)}else{var r=e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Vt);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var r=t.componentOptions,o=t.componentInstance=e.componentInstance;(function(e,t,r,o,i){0;var a=o.data.scopedSlots,s=e.$scopedSlots,u=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),c=!!(i||e.$options._renderChildren||u);e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o);if(e.$options._renderChildren=i,e.$attrs=o.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){ye(!1);for(var f=e._props,l=e.$options._propKeys||[],d=0;d<l.length;d++){var h=l[d],p=e.$options.props;f[h]=$e(h,p,t,e)}ye(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),r=r||n;var v=e.$options._parentListeners;e.$options._parentListeners=r,qt(e,r,v),c&&(e.$slots=st(i,o.context),e.$forceUpdate());0})(o,r.propsData,r.listeners,t,r.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(Kt(n,"onServiceCreated"),Kt(n,"onServiceAttached"),n._isMounted=!0,Kt(n,"mounted")),e.data.keepAlive&&(t._isMounted?function(e){e._inactive=!1,Jt.push(e)}(n):zt(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Ht(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);Kt(t,"deactivated")}}(t,!0):t.$destroy())}},jt=Object.keys(It);function Ct(e,t,a,u,c){if(!r(e)){var f=a.$options._base;if(s(e)&&(e=f.extend(e)),"function"===typeof e){var d;if(r(e.cid)&&(d=e,e=function(e,t){if(i(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var n=Mt;n&&o(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(i(e.loading)&&o(e.loadingComp))return e.loadingComp;if(n&&!o(e.owners)){var a=e.owners=[n],u=!0,c=null,f=null;n.$on("hook:destroyed",(function(){return g(a,n)}));var d=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==f&&(clearTimeout(f),f=null))},h=L((function(n){e.resolved=Rt(n,t),u?a.length=0:d(!0)})),p=L((function(t){o(e.errorComp)&&(e.error=!0,d(!0))})),v=e(h,p);return s(v)&&(l(v)?r(e.resolved)&&v.then(h,p):l(v.component)&&(v.component.then(h,p),o(v.error)&&(e.errorComp=Rt(v.error,t)),o(v.loading)&&(e.loadingComp=Rt(v.loading,t),0===v.delay?e.loading=!0:c=setTimeout((function(){c=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,d(!1))}),v.delay||200)),o(v.timeout)&&(f=setTimeout((function(){f=null,r(e.resolved)&&p(null)}),v.timeout)))),u=!1,e.loading?e.loadingComp:e.resolved}}(d,f),void 0===e))return function(e,t,n,r,o){var i=le();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}(d,t,a,u,c);t=t||{},pn(e),o(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),a=i[r],s=t.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}(e.options,t);var h=function(e,t,n,i){var a=t.options.props;if(r(a))return et(e,t,{},i);var s={},u=e.attrs,c=e.props;if(o(u)||o(c))for(var f in a){var l=O(f);tt(s,c,f,l,!0)||tt(s,u,f,l,!1)}return et(e,t,s,i)}(t,e,0,a);if(i(e.options.functional))return function(e,t,r,i,a){var s=e.options,u={},c=s.props;if(o(c))for(var f in c)u[f]=$e(f,c,t||n);else o(r.attrs)&&Et(u,r.attrs),o(r.props)&&Et(u,r.props);var l=new Pt(r,u,a,i,e),d=s.render.call(null,l._c,l);if(d instanceof ce)return Tt(d,r,l.parent,s,l);if(Array.isArray(d)){for(var h=nt(d)||[],p=new Array(h.length),v=0;v<h.length;v++)p[v]=Tt(h[v],r,l.parent,s,l);return p}}(e,h,t,a,u);var p=t.on;if(t.on=t.nativeOn,i(e.options.abstract)){var v=t.slot;t={},v&&(t.slot=v)}(function(e){for(var t=e.hook||(e.hook={}),n=0;n<jt.length;n++){var r=jt[n],o=t[r],i=It[r];o===i||o&&o._merged||(t[r]=o?$t(i,o):i)}})(t);var y=e.options.name||c,b=new ce("vue-component-"+e.cid+(y?"-"+y:""),t,void 0,void 0,void 0,a,{Ctor:e,propsData:h,listeners:p,tag:c,children:u},d);return b}}}function $t(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Lt(e,t,n,u,c,f){return(Array.isArray(n)||a(n))&&(c=u,u=n,n=void 0),i(f)&&(c=2),function(e,t,n,a,u){if(o(n)&&o(n.__ob__))return le();o(n)&&o(n.is)&&(t=n.is);if(!t)return le();0;Array.isArray(a)&&"function"===typeof a[0]&&(n=n||{},n.scopedSlots={default:a[0]},a.length=0);2===u?a=nt(a):1===u&&(a=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(a));var c,f;if("string"===typeof t){var l;f=e.$vnode&&e.$vnode.ns||R.getTagNamespace(t),c=R.isReservedTag(t)?new ce(R.parsePlatformTagName(t),n,a,void 0,void 0,e):n&&n.pre||!o(l=Ce(e.$options,"components",t))?new ce(t,n,a,void 0,void 0,e):Ct(l,n,e,a,t)}else c=Ct(t,n,e,a);return Array.isArray(c)?c:o(c)?(o(f)&&function e(t,n,a){t.ns=n,"foreignObject"===t.tag&&(n=void 0,a=!0);if(o(t.children))for(var s=0,u=t.children.length;s<u;s++){var c=t.children[s];o(c.tag)&&(r(c.ns)||i(a)&&"svg"!==c.tag)&&e(c,n,a)}}(c,f),o(n)&&function(e){s(e.style)&&Ze(e.style);s(e.class)&&Ze(e.class)}(n),c):le()}(e,t,n,u,c)}var Dt,Mt=null;function Rt(e,t){return(e.__esModule||re&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function Ut(e){return e.isComment&&e.asyncFactory}function Nt(e,t){Dt.$on(e,t)}function Ft(e,t){Dt.$off(e,t)}function Bt(e,t){var n=Dt;return function r(){var o=t.apply(null,arguments);null!==o&&n.$off(e,r)}}function qt(e,t,n){Dt=e,function(e,t,n,o,a,s){var u,c,f,l;for(u in e)c=e[u],f=t[u],l=Qe(u),r(c)||(r(f)?(r(c.fns)&&(c=e[u]=Xe(c,s)),i(l.once)&&(c=e[u]=a(l.name,c,l.capture)),n(l.name,c,l.capture,l.passive,l.params)):c!==f&&(f.fns=c,e[u]=f));for(u in t)r(e[u])&&(l=Qe(u),o(l.name,t[u],l.capture))}(t,n||{},Nt,Ft,Bt,e),Dt=void 0}var Vt=null;function Ht(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function zt(e,t){if(t){if(e._directInactive=!1,Ht(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)zt(e.$children[n]);Kt(e,"activated")}}function Kt(e,t){se();var n=e.$options[t],r=t+" hook";if(n)for(var o=0,i=n.length;o<i;o++)Ue(n[o],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ue()}var Wt=[],Jt=[],Gt={},Yt=!1,Zt=!1,Qt=0;var Xt=Date.now;if(H&&!J){var en=window.performance;en&&"function"===typeof en.now&&Xt()>document.createEvent("Event").timeStamp&&(Xt=function(){return en.now()})}function tn(){var e,t;for(Xt(),Zt=!0,Wt.sort((function(e,t){return e.id-t.id})),Qt=0;Qt<Wt.length;Qt++)e=Wt[Qt],e.before&&e.before(),t=e.id,Gt[t]=null,e.run();var n=Jt.slice(),r=Wt.slice();(function(){Qt=Wt.length=Jt.length=0,Gt={},Yt=Zt=!1})(),function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,zt(e[t],!0)}(n),function(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Kt(r,"updated")}}(r),ee&&R.devtools&&ee.emit("flush")}var nn=0,rn=function(e,t,n,r,o){this.vm=e,o&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++nn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ne,this.newDepIds=new ne,this.expression="","function"===typeof t?this.getter=t:(this.getter=function(e){if(!B.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=E)),this.value=this.lazy?void 0:this.get()};rn.prototype.get=function(){var e;se(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Rn){if(!this.user)throw Rn;Re(Rn,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Ze(e),ue(),this.cleanupDeps()}return e},rn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},rn.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},rn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==Gt[t]){if(Gt[t]=!0,Zt){var n=Wt.length-1;while(n>Qt&&Wt[n].id>e.id)n--;Wt.splice(n+1,0,e)}else Wt.push(e);Yt||(Yt=!0,Ge(tn))}}(this)},rn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Rn){Re(Rn,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},rn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},rn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},rn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var on={enumerable:!0,configurable:!0,get:E,set:E};function an(e,t,n){on.get=function(){return this[t][n]},on.set=function(e){this[t][n]=e},Object.defineProperty(e,n,on)}function sn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;i||ye(!1);var a=function(i){o.push(i);var a=$e(i,t,n,e);we(r,i,a),i in e||an(e,"_props",i)};for(var s in t)a(s);ye(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?E:A(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;t=e._data="function"===typeof t?function(e,t){se();try{return e.call(t,t)}catch(Rn){return Re(Rn,t,"data()"),{}}finally{ue()}}(t,e):t||{},c(t)||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);while(o--){var i=n[o];0,r&&b(r,i)||N(i)||an(e,"_data",i)}_e(t,!0)}(e):_e(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=X();for(var o in t){var i=t[o],a="function"===typeof i?i:i.get;0,r||(n[o]=new rn(e,a||E,E,un)),o in e||cn(e,o,i)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)dn(e,n,r[o]);else dn(e,n,r)}}(e,t.watch)}var un={lazy:!0};function cn(e,t,n){var r=!X();"function"===typeof n?(on.get=r?fn(t):ln(n),on.set=E):(on.get=n.get?r&&!1!==n.cache?fn(t):ln(n.get):E,on.set=n.set||E),Object.defineProperty(e,t,on)}function fn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ae.SharedObject.target&&t.depend(),t.value}}function ln(e){return function(){return e.call(this,this)}}function dn(e,t,n,r){return c(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}var hn=0;function pn(e){var t=e.options;if(e.super){var n=pn(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var o=function(e){var t,n=e.options,r=e.sealedOptions;for(var o in n)n[o]!==r[o]&&(t||(t={}),t[o]=n[o]);return t}(e);o&&P(e.extendOptions,o),t=e.options=je(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function vn(e){this._init(e)}function gn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=je(n.options,e),a["super"]=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)an(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)cn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,D.forEach((function(e){a[e]=n[e]})),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=P({},a.options),o[r]=a,a}}function yn(e){return e&&(e.Ctor.options.name||e.tag)}function bn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===u.call(e)}(e)&&e.test(t)}function mn(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=yn(a.componentOptions);s&&!t(s)&&_n(n,i,r,o)}}}function _n(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,g(n,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=hn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=je(pn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&qt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,o=r&&r.context;e.$slots=st(t._renderChildren,o),e.$scopedSlots=n,e._c=function(t,n,r,o){return Lt(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return Lt(e,t,n,r,o,!0)};var i=r&&r.data;we(e,"$attrs",i&&i.attrs||n,null,!0),we(e,"$listeners",t._parentListeners||n,null,!0)}(t),Kt(t,"beforeCreate"),!t._$fallback&&it(t),sn(t),!t._$fallback&&ot(t),!t._$fallback&&Kt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(vn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=xe,e.prototype.$delete=ke,e.prototype.$watch=function(e,t,n){if(c(t))return dn(this,e,t,n);n=n||{},n.user=!0;var r=new rn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(o){Re(o,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(vn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o<i;o++)r.$on(e[o],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}var i,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(i=a[s],i===t||i.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?S(n):n;for(var r=S(arguments,1),o='event handler for "'+e+'"',i=0,a=n.length;i<a;i++)Ue(n[i],t,r,t,o)}return t}}(vn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,o=n._vnode,i=function(e){var t=Vt;return Vt=e,function(){Vt=t}}(n);n._vnode=e,n.$el=o?n.__patch__(o,e):n.__patch__(n.$el,e,t,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Kt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||g(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Kt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(vn),function(e){St(e.prototype),e.prototype.$nextTick=function(e){return Ge(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,o=n._parentVnode;o&&(t.$scopedSlots=ct(o.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=o;try{Mt=t,e=r.call(t._renderProxy,t.$createElement)}catch(Rn){Re(Rn,t,"render"),e=t._vnode}finally{Mt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ce||(e=le()),e.parent=o,e}}(vn);var wn=[String,RegExp,Array],xn={name:"keep-alive",abstract:!0,props:{include:wn,exclude:wn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)_n(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){mn(e,(function(e){return bn(t,e)}))})),this.$watch("exclude",(function(t){mn(e,(function(e){return!bn(t,e)}))}))},render:function(){var e=this.$slots.default,t=function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(o(n)&&(o(n.componentOptions)||Ut(n)))return n}}(e),n=t&&t.componentOptions;if(n){var r=yn(n),i=this.include,a=this.exclude;if(i&&(!r||!bn(i,r))||a&&r&&bn(a,r))return t;var s=this.cache,u=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;s[c]?(t.componentInstance=s[c].componentInstance,g(u,c),u.push(c)):(s[c]=t,u.push(c),this.max&&u.length>parseInt(this.max)&&_n(s,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},kn={KeepAlive:xn};(function(e){var t={get:function(){return R}};Object.defineProperty(e,"config",t),e.util={warn:oe,extend:P,mergeOptions:je,defineReactive:we},e.set=xe,e.delete=ke,e.nextTick=Ge,e.observable=function(e){return _e(e),e},e.options=Object.create(null),D.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,kn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=S(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=je(this.options,e),this}}(e),gn(e),function(e){D.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)})(vn),Object.defineProperty(vn.prototype,"$isServer",{get:X}),Object.defineProperty(vn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(vn,"FunctionalRenderContext",{value:Pt}),vn.version="2.6.11";var On="[object Array]",An="[object Object]";function Sn(e,t){var n={};return function e(t,n){if(t===n)return;var r=Tn(t),o=Tn(n);if(r==An&&o==An){if(Object.keys(t).length>=Object.keys(n).length)for(var i in n){var a=t[i];void 0===a?t[i]=null:e(a,n[i])}}else r==On&&o==On&&t.length>=n.length&&n.forEach((function(n,r){e(t[r],n)}))}(e,t),function e(t,n,r,o){if(t===n)return;var i=Tn(t),a=Tn(n);if(i==An)if(a!=An||Object.keys(t).length<Object.keys(n).length)Pn(o,r,t);else{var s=function(i){var a=t[i],s=n[i],u=Tn(a),c=Tn(s);if(u!=On&&u!=An)a!==n[i]&&function(e,t){if(("[object Null]"===e||"[object Undefined]"===e)&&("[object Null]"===t||"[object Undefined]"===t))return!1;return!0}(u,c)&&Pn(o,(""==r?"":r+".")+i,a);else if(u==On)c!=On||a.length<s.length?Pn(o,(""==r?"":r+".")+i,a):a.forEach((function(t,n){e(t,s[n],(""==r?"":r+".")+i+"["+n+"]",o)}));else if(u==An)if(c!=An||Object.keys(a).length<Object.keys(s).length)Pn(o,(""==r?"":r+".")+i,a);else for(var f in a)e(a[f],s[f],(""==r?"":r+".")+i+"."+f,o)};for(var u in t)s(u)}else i==On?a!=On||t.length<n.length?Pn(o,r,t):t.forEach((function(t,i){e(t,n[i],r+"["+i+"]",o)})):Pn(o,r,t)}(e,t,"",n),n}function Pn(e,t,n){e[t]=n}function Tn(e){return Object.prototype.toString.call(e)}function En(e){if(e.__next_tick_callbacks&&e.__next_tick_callbacks.length){if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"智慧云商协",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var t=e.$scope;console.log("["+ +new Date+"]["+(t.is||t.route)+"]["+e._uid+"]:flushCallbacks["+e.__next_tick_callbacks.length+"]")}var n=e.__next_tick_callbacks.slice(0);e.__next_tick_callbacks.length=0;for(var r=0;r<n.length;r++)n[r]()}}function In(e,t){if(!e.__next_tick_pending&&!function(e){return Wt.find((function(t){return e._watcher===t}))}(e)){if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"智慧云商协",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var n=e.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+e._uid+"]:nextVueTick")}return Ge(t,e)}if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"智慧云商协",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var r=e.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+e._uid+"]:nextMPTick")}var o;if(e.__next_tick_callbacks||(e.__next_tick_callbacks=[]),e.__next_tick_callbacks.push((function(){if(t)try{t.call(e)}catch(Rn){Re(Rn,e,"nextTick")}else o&&o(e)})),!t&&"undefined"!==typeof Promise)return new Promise((function(e){o=e}))}function jn(e,t){return t&&(t._isVue||t.__v_isMPComponent)?{}:t}function Cn(){}function $n(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)o(t=$n(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):s(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"===typeof e?e:""}var Ln=m((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));var Dn=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var Mn=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];vn.prototype.__patch__=function(e,t){var n=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,o=Object.create(null);try{o=function(e){var t=Object.create(null),n=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));n.reduce((function(t,n){return t[n]=e[n],t}),t);var r=e.__composition_api_state__||e.__secret_vfa_state__,o=r&&r.rawBindings;return o&&Object.keys(o).forEach((function(n){t[n]=e[n]})),Object.assign(t,e.$mp.data||{}),Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field")&&(t["name"]=e.name,t["value"]=e.value),JSON.parse(JSON.stringify(t,jn))}(this)}catch(s){console.error(s)}o.__webviewId__=r.data.__webviewId__;var i=Object.create(null);Object.keys(o).forEach((function(e){i[e]=r.data[e]}));var a=!1===this.$shouldDiffData?o:Sn(o,i);Object.keys(a).length?(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"智慧云商协",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+this._uid+"]差量更新",JSON.stringify(a)),this.__next_tick_pending=!0,r.setData(a,(function(){n.__next_tick_pending=!1,En(n)}))):En(this)}},vn.prototype.$mount=function(e,t){return function(e,t,n){return e.mpType?("app"===e.mpType&&(e.$options.render=Cn),e.$options.render||(e.$options.render=Cn),!e._$fallback&&Kt(e,"beforeMount"),new rn(e,(function(){e._update(e._render(),n)}),E,{before:function(){e._isMounted&&!e._isDestroyed&&Kt(e,"beforeUpdate")}},!0),n=!1,e):e}(this,0,t)},function(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==Mn.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;Mn.forEach((function(e){n[e]=r})),e.prototype.__lifecycle_hooks__=Mn}(vn),function(e){e.config.errorHandler=function(t,n,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',n),console.error(t);var o="function"===typeof getApp&&getApp();o&&o.onError&&o.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,e,{__args__:S(arguments,1)})}catch(r){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return In(this,e)},Dn.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=ot,e.prototype.__init_injections=it,e.prototype.__call_hook=function(e,t){var n=this;se();var r,o=n.$options[e],i=e+" hook";if(o)for(var a=0,s=o.length;a<s;a++)r=Ue(o[a],n,t?[t]:null,n,i);return n._hasHookEvent&&n.$emit("hook:"+e,t),ue(),r},e.prototype.__set_model=function(t,n,r,o){Array.isArray(o)&&(-1!==o.indexOf("trim")&&(r=r.trim()),-1!==o.indexOf("number")&&(r=this._n(r))),t||(t=this),e.set(t,n,r)},e.prototype.__set_sync=function(t,n,r){t||(t=this),e.set(t,n,r)},e.prototype.__get_orig=function(e){return c(e)&&e["$orig"]||e},e.prototype.__get_value=function(e,t){return function e(t,n){var r=n.split("."),o=r[0];return 0===o.indexOf("__$n")&&(o=parseInt(o.replace("__$n",""))),1===r.length?t[o]:e(t[o],r.slice(1).join("."))}(t||this,e)},e.prototype.__get_class=function(e,t){return function(e,t){return o(e)||o(t)?function(e,t){return e?t?e+" "+t:e:t||""}(e,$n(t)):""}(t,e)},e.prototype.__get_style=function(e,t){if(!e&&!t)return"";var n=function(e){return Array.isArray(e)?T(e):"string"===typeof e?Ln(e):e}(e),r=t?P(t,n):n;return Object.keys(r).map((function(e){return O(e)+":"+r[e]})).join(";")},e.prototype.__map=function(e,t){var n,r,o,i,a;if(Array.isArray(e)){for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r);return n}if(s(e)){for(i=Object.keys(e),n=Object.create(null),r=0,o=i.length;r<o;r++)a=i[r],n[a]=t(e[a],a,r);return n}if("number"===typeof e){for(n=new Array(e),r=0,o=e;r<o;r++)n[r]=t(r,r);return n}return[]}}(vn),t["default"]=vn}.call(this,n("c8ba"))},"69d7":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("9523")),i=n("6e37");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(e,t,n){var r={};return e.forEach((function(e){(0,i.isUndefined)(n[e])?(0,i.isUndefined)(t[e])||(r[e]=t[e]):r[e]=n[e]})),r};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.method||e.method||"GET",r={baseURL:e.baseURL||"",method:n,url:t.url||"",params:t.params||{},custom:s(s({},e.custom||{}),t.custom||{}),header:(0,i.deepMerge)(e.header||{},t.header||{})},o=["getTask","validateStatus"];if(r=s(s({},r),u(o,e,t)),"DOWNLOAD"===n);else if("UPLOAD"===n){delete r.header["content-type"],delete r.header["Content-Type"];var a=["filePath","name","formData"];a.forEach((function(e){(0,i.isUndefined)(t[e])||(r[e]=t[e])}))}else{var c=["data","timeout","dataType","responseType"];r=s(s({},r),u(c,e,t))}return r}},"6b58":function(e,t,n){var r=n("7037")["default"],o=n("3c96");e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"6e37":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.deepMerge=function e(){var t={};function n(n,r){"object"===(0,o.default)(t[r])&&"object"===(0,o.default)(n)?t[r]=e(t[r],n):"object"===(0,o.default)(n)?t[r]=e({},n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)s(arguments[r],n);return t},t.forEach=s,t.isArray=a,t.isBoolean=function(e){return"boolean"===typeof e},t.isDate=function(e){return"[object Date]"===i.call(e)},t.isObject=function(e){return null!==e&&"object"===(0,o.default)(e)},t.isPlainObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isURLSearchParams=function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},t.isUndefined=function(e){return"undefined"===typeof e};var o=r(n("7037")),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==(0,o.default)(e)&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}},"6ef8":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("092b")),i=o.default;t.default=i},"6f8f":function(e,t){function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=n=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},7037:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"716f":function(e,t,n){"use strict";var r=n("4ea4"),o=r(n("9523")),i=n("26cb"),a=r(n("de98"));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u=[];try{u=a.default.state?Object.keys(a.default.state):[]}catch(c){}e.exports={beforeCreate:function(){var e=this;this.$tn.vuex=function(t,n){e.$store.commit("$tStore",{name:t,value:n})}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,i.mapState)(u))}},"7a28":function(e,t,n){"use strict";function r(){this.handlers=[]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){this.handlers.forEach((function(t){null!==t&&e(t)}))};var o=r;t.default=o},"7ec2":function(e,t,n){var r=n("7037")["default"];function o(){"use strict";
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new C(r||[]);return s(i,"_invoke",{value:T(e,n,a)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var v="suspendedStart",g="executing",y="completed",b={};function m(){}function _(){}function w(){}var x={};d(x,c,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k($([])));O&&O!==i&&a.call(O,c)&&(x=O);var A=w.prototype=m.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,i,s,u){var c=p(e[o],e,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==r(l)&&a.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var o;s(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function T(e,n,r){var o=v;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=E(s,r);if(u){if(u===b)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=p(e,n,r);if("normal"===c.type){if(o=r.done?y:"suspendedYield",c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function E(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function $(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return _.prototype=w,s(A,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:_,configurable:!0}),_.displayName=d(w,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,l,"GeneratorFunction")),e.prototype=Object.create(A),e},n.awrap=function(e){return{__await:e}},S(P.prototype),d(P.prototype,f,(function(){return this})),n.AsyncIterator=P,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new P(h(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(A),d(A,l,"Generator"),d(A,c,(function(){return this})),d(A,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=$,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.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 o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},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),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:$(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},"8ab9":function(e,t,n){"use strict";var r=n("4ea4");r(n("de98"))},9152:function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,c=u>>1,f=-7,l=n?o-1:0,d=n?-1:1,h=e[t+l];for(l+=d,i=h&(1<<-f)-1,h>>=-f,f+=s;f>0;i=256*i+e[t+l],l+=d,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=r;f>0;a=256*a+e[t+l],l+=d,f-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+l>=1?d/u:d*Math.pow(2,1-l),t*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,o),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*v}},9480:function(e,t,n){"use strict";function r(e,t,n){this.$children.map((function(o){e===o.$options.name?o.$emit.apply(o,[t].concat(n)):r.apply(o,[e,t].concat(n))}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={methods:{dispatch:function(e,t,n){var r=this.$parent||this.$root,o=r.$options.name;while(r&&(!o||o!==e))r=r.$parent,r&&(o=r.$options.name);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}};t.default=o},9523:function(e,t,n){var r=n("a395");e.exports=function(e,t,n){return t=r(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"970b":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports["default"]=e.exports},9892:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={toast:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1500;e.showToast({title:t,icon:o,mask:n,duration:i,success:function(){setTimeout((function(){r&&r()}),i)}})},loading:function(t){e.showLoading({title:t,mask:!0})},modal:function(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"确定",s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"取消";e.showModal({title:t,content:n,showCancel:o,cancelText:s,confirmText:a,success:function(e){e.cancel?i&&i():e.confirm&&r&&r()}})},closeToast:function(){e.hideToast()},closeLoading:function(){e.hideLoading()}};t.default=n}).call(this,n("543d")["default"])},"9b42":function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(c)throw o}}return s}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"9c66":function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("7037"));function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var a=/%[sdj%]/g,s=function(){};function u(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,o=t[0],i=t.length;if("function"===typeof o)return o.apply(null,t.slice(1));if("string"===typeof o){for(var s=String(o).replace(a,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),u=t[r];r<i;u=t[++r])s+=" "+u;return s}return o}function f(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function l(e,t,n){var r=0,o=e.length;(function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}})([])}function d(e,t,n,r){if(t.first){var o=new Promise((function(t,o){var i=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e);l(i,n,(function(e){return r(e),e.length?o({errors:e,fields:u(e)}):t()}))}));return o["catch"]((function(e){return e})),o}var i=t.firstFields||[];!0===i&&(i=Object.keys(e));var a=Object.keys(e),s=a.length,c=0,f=[],d=new Promise((function(t,o){var d=function(e){if(f.push.apply(f,e),c++,c===s)return r(f),f.length?o({errors:f,fields:u(f)}):t()};a.length||(r(f),t()),a.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?l(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e),o++,o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d["catch"]((function(e){return e})),d}function h(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"===typeof t?t():t,field:t.field||e.fullField}}}function p(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===(0,o.default)(r)&&"object"===(0,o.default)(e[n])?e[n]=i({},e[n],{},r):e[n]=r}return e}function v(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!f(t,i||e.type)||r.push(c(o.messages.required,e.fullField))}"undefined"!==typeof e&&Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"智慧云商协",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"});var g={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},y={integer:function(e){return y.number(e)&&parseInt(e,10)===e},float:function(e){return y.number(e)&&!y.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===(0,o.default)(e)&&!y.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(g.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(g.url)},hex:function(e){return"string"===typeof e&&!!e.match(g.hex)}};var b={required:v,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(c(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t)v(e,t,n,r,i);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?y[a](t)||r.push(c(i.messages.types[a],e.fullField,e.type)):a&&(0,o.default)(t)!==e.type&&r.push(c(i.messages.types[a],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,u=t,f=null,l="number"===typeof t,d="string"===typeof t,h=Array.isArray(t);if(l?f="number":d?f="string":h&&(f="array"),!f)return!1;h&&(u=t.length),d&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?u!==e.len&&r.push(c(o.messages[f].len,e.fullField,e.len)):a&&!s&&u<e.min?r.push(c(o.messages[f].min,e.fullField,e.min)):s&&!a&&u>e.max?r.push(c(o.messages[f].max,e.fullField,e.max)):a&&s&&(u<e.min||u>e.max)&&r.push(c(o.messages[f].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e["enum"]=Array.isArray(e["enum"])?e["enum"]:[],-1===e["enum"].indexOf(t)&&r.push(c(o.messages["enum"],e.fullField,e["enum"].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(c(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var i=new RegExp(e.pattern);i.test(t)||r.push(c(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function m(e,t,n,r,o){var i=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,i)&&!e.required)return n();b.required(e,t,r,a,o,i),f(t,i)||b.type(e,t,r,a,o)}n(a)}var _={string:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();b.required(e,t,r,i,o,"string"),f(t,"string")||(b.type(e,t,r,i,o),b.range(e,t,r,i,o),b.pattern(e,t,r,i,o),!0===e.whitespace&&b.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();b.required(e,t,r,i,o),void 0!==t&&b.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(""===t&&(t=void 0),f(t)&&!e.required)return n();b.required(e,t,r,i,o),void 0!==t&&(b.type(e,t,r,i,o),b.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();b.required(e,t,r,i,o),void 0!==t&&b.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();b.required(e,t,r,i,o),f(t)||b.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();b.required(e,t,r,i,o),void 0!==t&&(b.type(e,t,r,i,o),b.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();b.required(e,t,r,i,o),void 0!==t&&(b.type(e,t,r,i,o),b.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"array")&&!e.required)return n();b.required(e,t,r,i,o,"array"),f(t,"array")||(b.type(e,t,r,i,o),b.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();b.required(e,t,r,i,o),void 0!==t&&b.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();b.required(e,t,r,i,o),void 0!==t&&b["enum"](e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();b.required(e,t,r,i,o),f(t,"string")||b.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();var s;if(b.required(e,t,r,i,o),!f(t))s="number"===typeof t?new Date(t):t,b.type(e,s,r,i,o),s&&b.range(e,s.getTime(),r,i,o)}n(i)},url:m,hex:m,email:m,required:function(e,t,n,r,i){var a=[],s=Array.isArray(t)?"array":(0,o.default)(t);b.required(e,t,r,a,i,s),n(a)},any:function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();b.required(e,t,r,i,o)}n(i)}};function w(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var x=w();function k(e){this.rules=null,this._messages=x,this.define(e)}k.prototype={messages:function(e){return e&&(this._messages=p(w(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,o.default)(e)||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var a,s,f=e,l=t,v=n;if("function"===typeof l&&(v=l,l={}),!this.rules||0===Object.keys(this.rules).length)return v&&v(),Promise.resolve();if(l.messages){var g=this.messages();g===x&&(g=w()),p(g,l.messages),l.messages=g}else l.messages=this.messages();var y={},b=l.keys||Object.keys(this.rules);b.forEach((function(t){a=r.rules[t],s=f[t],a.forEach((function(n){var o=n;"function"===typeof o.transform&&(f===e&&(f=i({},f)),s=f[t]=o.transform(s)),o="function"===typeof o?{validator:o}:i({},o),o.validator=r.getValidationMethod(o),o.field=t,o.fullField=o.fullField||t,o.type=r.getType(o),o.validator&&(y[t]=y[t]||[],y[t].push({rule:o,value:s,source:f,field:t}))}))}));var m={};return d(y,l,(function(e,t){var n,r=e.rule,a=("object"===r.type||"array"===r.type)&&("object"===(0,o.default)(r.fields)||"object"===(0,o.default)(r.defaultField));function s(e,t){return i({},t,{fullField:r.fullField+"."+e})}function u(n){void 0===n&&(n=[]);var o=n;if(Array.isArray(o)||(o=[o]),!l.suppressWarning&&o.length&&k.warning("async-validator:",o),o.length&&r.message&&(o=[].concat(r.message)),o=o.map(h(r)),l.first&&o.length)return m[r.field]=1,t(o);if(a){if(r.required&&!e.value)return o=r.message?[].concat(r.message).map(h(r)):l.error?[l.error(r,c(l.messages.required,r.field))]:[],t(o);var u={};if(r.defaultField)for(var f in e.value)e.value.hasOwnProperty(f)&&(u[f]=r.defaultField);for(var d in u=i({},u,{},e.rule.fields),u)if(u.hasOwnProperty(d)){var p=Array.isArray(u[d])?u[d]:[u[d]];u[d]=p.map(s.bind(null,d))}var v=new k(u);v.messages(l.messages),e.rule.options&&(e.rule.options.messages=l.messages,e.rule.options.error=l.error),v.validate(e.value,e.rule.options||l,(function(e){var n=[];o&&o.length&&n.push.apply(n,o),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(o)}a=a&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,u,e.source,l):r.validator&&(n=r.validator(r,e.value,u,e.source,l),!0===n?u():!1===n?u(r.message||r.field+" fails"):n instanceof Array?u(n):n instanceof Error&&u(n.message)),n&&n.then&&n.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){(function(e){var t,n=[],r={};function o(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t<e.length;t++)o(e[t]);n.length?r=u(n):(n=null,r=null),v(n,r)})(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!_.hasOwnProperty(e.type))throw new Error(c("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?_.required:_[this.getType(e)]||!1}},k.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");_[e]=t},k.warning=s,k.messages=x;var O=k;t.default=O}).call(this,n("4362"))},"9e45":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("7037"));function i(e){switch((0,o.default)(e)){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}var a={email:function(e){return/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/.test(e)},mobile:function(e){return/^1[3-9]\d{9}$/.test(e)},url:function(e){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(e)},date:function(e){return!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(e)},digits:function(e){return/^\d+$/.test(e)},idCard:function(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)},carNo:function(e){return 7===e.length?/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/.test(e):8===e.length&&/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/.test(e)},amount:function(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)},chinese:function(e){return/^[\u4e00-\u9fa5]+$/gi.test(e)},letter:function(e){return/^[a-zA-Z]*$/.test(e)},enOrNum:function(e){return/^[0-9a-zA-Z]*$/g.test(e)},contains:function(e,t){return e.indexOf(t)>=0},range:function(e,t){return e>=t[0]&&e<=t[1]},rangeLength:function(e,t){return e.length>=t[0]&&e.length<=t[1]},empty:i,isEmpty:i,jsonString:function(e){if("string"==typeof e)try{var t=JSON.parse(e);return!("object"!=(0,o.default)(t)||!t)}catch(n){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:function(e){return"[object Object]"===Object.prototype.toString.call(e)},array:function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},code:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)}};t.default=a},a128:function(e,t,n){var r=n("36c6"),o=n("4a4b"),i=n("c5f7"),a=n("b17c");function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},a230:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["red","purplered","purple","bluepurple","aquablue","blue","indigo","cyan","teal","green","yellowgreen","lime","yellow","orangeyellow","orange","orangered","brown","grey","gray"];function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;if(e=e.toLowerCase(),e&&n.test(e)){if(4===e.length){for(var r="#",o=1;o<4;o++)r+=e.slice(o,o+1).concat(e.slice(o,o+1));e=r}for(var i=[],a=1;a<7;a+=2)i.push(parseInt("0x"+e.slice(a,a+2)));return t?"rgb(".concat(i[0],", ").concat(i[1],", ").concat(i[2],")"):i}if(/^(rgb|RGB)/.test(e)){var s=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return s.map((function(e){return Number(e)}))}return e}function i(e){if(/^(rgb|RGB)/.test(e)){for(var t=e.replace(/(?:\(|\)|rgb|GRB)*/g,"").split(","),n="#",r=0;r<t.length;r++){var o=Number(t[r]).toString(16);o=1===String(o).length?"0"+o:o,"0"===o&&(o+=o),n+=o}return 7!==n.length&&(n=e),n}if(!/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e))return e;var i=e.replace(/#/,"").split("");if(6===i.length)return e;if(3===i.length){for(var a="#",s=0;s<i.length;s++)a+=i[s]+i[s];return a}}var a={COOL_BG_COLOR_COUNT:16,getTuniaoColorList:function(){return r},getRandomColorClass:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"bg",t=Math.floor(Math.random()*r.length),n=r[t];return"tn-"+e+"-"+n},getRandomCoolBgClass:function(){var e=16*Math.random()+1;return"tn-cool-bg-color-"+Math.floor(e)},getBackgroundColorInternalClass:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&["tn-bg","tn-dynamic-bg","tn-main-gradient","tn-cool-bg"].some((function(t){return e.includes(t)}))?e:""},getBackgroundColorStyle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&(!e.startsWith("tn-")||["#","rgb","rgba"].some((function(t){return e.includes(t)})))?e:""},getFontColorInternalClass:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&["tn-color"].some((function(t){return e.includes(t)}))?e:""},getFontColorStyle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&(!e.startsWith("tn-")||["#","rgb","rgba"].some((function(t){return e.includes(t)})))?e:""},colorGradient:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=o(e,!1),a=r[0],s=r[1],u=r[2],c=o(t,!1),f=c[0],l=c[1],d=c[2],h=(f-a)/n,p=(l-s)/n,v=(d-u)/n,g=[],y=0;y<n;y++){var b=i("rgb(".concat(Math.round(h*y+a),", ").concat(Math.round(p*y+s),", ").concat(Math.round(v*y+u),")"));g.push(b)}return g},hexToRGB:o,rgbToHex:i,colorToRGBA:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;e=i(e);var n=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;if(e=e.toLowerCase(),e&&n.test(e)){if(4===e.length){for(var r="#",o=1;o<4;o++)r+=e.slice(o,o+1).concat(e.slice(o,o+1));e=r}for(var a=[],s=1;s<7;s+=2)a.push(parseInt("0x"+e.slice(s,s+2)));return"rgba(".concat(a[0],", ").concat(a[1],", ").concat(a[2],", ").concat(t,")")}return e}};t.default=a},a294:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300}}},a395:function(e,t,n){var r=n("7037")["default"],o=n("e50d");e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:String(t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},a3f2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={appid:"__UNI__F702B81"}},a9ff:function(e,t,n){"use strict";(function(e,r,o){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("2eee")),s=i(n("3c96")),u=i(n("278c")),c=i(n("7037")),f=i(n("448a")),l=i(n("c973")),d=i(n("9523")),h=i(n("ed6d")),p=i(n("6b58")),v=i(n("36c6")),g=i(n("a128")),y=i(n("970b")),b=i(n("5bc3")),m=i(n("6602"));function _(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,v.default)(e);if(t){var o=(0,v.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.default)(this,n)}}function A(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 S=A((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},i=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(i=0;i<o;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){t=t;var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var s=o(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},f=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},l=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,s=o/(4*i),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,c=e.min(4*u,o);if(u){for(var f=0;f<u;f+=i)this._doProcessBlock(r,f);var l=r.splice(0,u);n.sigBytes-=c}return new a.init(l,c)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=l.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){l.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 d.HMAC.init(e,n).finalize(t)}}});var d=r.algo={};return r}(Math),n)})),P=S,T=(A((function(e,t){var n;e.exports=(n=P,function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],u=e[t+1],h=e[t+2],p=e[t+3],v=e[t+4],g=e[t+5],y=e[t+6],b=e[t+7],m=e[t+8],_=e[t+9],w=e[t+10],x=e[t+11],k=e[t+12],O=e[t+13],A=e[t+14],S=e[t+15],P=i[0],T=i[1],E=i[2],I=i[3];P=c(P,T,E,I,a,7,s[0]),I=c(I,P,T,E,u,12,s[1]),E=c(E,I,P,T,h,17,s[2]),T=c(T,E,I,P,p,22,s[3]),P=c(P,T,E,I,v,7,s[4]),I=c(I,P,T,E,g,12,s[5]),E=c(E,I,P,T,y,17,s[6]),T=c(T,E,I,P,b,22,s[7]),P=c(P,T,E,I,m,7,s[8]),I=c(I,P,T,E,_,12,s[9]),E=c(E,I,P,T,w,17,s[10]),T=c(T,E,I,P,x,22,s[11]),P=c(P,T,E,I,k,7,s[12]),I=c(I,P,T,E,O,12,s[13]),E=c(E,I,P,T,A,17,s[14]),P=f(P,T=c(T,E,I,P,S,22,s[15]),E,I,u,5,s[16]),I=f(I,P,T,E,y,9,s[17]),E=f(E,I,P,T,x,14,s[18]),T=f(T,E,I,P,a,20,s[19]),P=f(P,T,E,I,g,5,s[20]),I=f(I,P,T,E,w,9,s[21]),E=f(E,I,P,T,S,14,s[22]),T=f(T,E,I,P,v,20,s[23]),P=f(P,T,E,I,_,5,s[24]),I=f(I,P,T,E,A,9,s[25]),E=f(E,I,P,T,p,14,s[26]),T=f(T,E,I,P,m,20,s[27]),P=f(P,T,E,I,O,5,s[28]),I=f(I,P,T,E,h,9,s[29]),E=f(E,I,P,T,b,14,s[30]),P=l(P,T=f(T,E,I,P,k,20,s[31]),E,I,g,4,s[32]),I=l(I,P,T,E,m,11,s[33]),E=l(E,I,P,T,x,16,s[34]),T=l(T,E,I,P,A,23,s[35]),P=l(P,T,E,I,u,4,s[36]),I=l(I,P,T,E,v,11,s[37]),E=l(E,I,P,T,b,16,s[38]),T=l(T,E,I,P,w,23,s[39]),P=l(P,T,E,I,O,4,s[40]),I=l(I,P,T,E,a,11,s[41]),E=l(E,I,P,T,p,16,s[42]),T=l(T,E,I,P,y,23,s[43]),P=l(P,T,E,I,_,4,s[44]),I=l(I,P,T,E,k,11,s[45]),E=l(E,I,P,T,S,16,s[46]),P=d(P,T=l(T,E,I,P,h,23,s[47]),E,I,a,6,s[48]),I=d(I,P,T,E,b,10,s[49]),E=d(E,I,P,T,A,15,s[50]),T=d(T,E,I,P,g,21,s[51]),P=d(P,T,E,I,k,6,s[52]),I=d(I,P,T,E,p,10,s[53]),E=d(E,I,P,T,w,15,s[54]),T=d(T,E,I,P,u,21,s[55]),P=d(P,T,E,I,m,6,s[56]),I=d(I,P,T,E,S,10,s[57]),E=d(E,I,P,T,y,15,s[58]),T=d(T,E,I,P,O,21,s[59]),P=d(P,T,E,I,v,6,s[60]),I=d(I,P,T,E,x,10,s[61]),E=d(E,I,P,T,h,15,s[62]),T=d(T,E,I,P,_,21,s[63]),i[0]=i[0]+P|0,i[1]=i[1]+T|0,i[2]=i[2]+E|0,i[3]=i[3]+I|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var f=u[c];u[c]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t}function f(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t}function l(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t}function d(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(u),t.HmacMD5=i._createHmacHelper(u)}(Math),n.MD5)})),A((function(e,t){var n;e.exports=(n=P,void function(){var e=n,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,u=a.words,c=0;c<n;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=a.sigBytes=o,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))}})}())})),A((function(e,t){e.exports=P.HmacMD5}))),E=A((function(e,t){e.exports=P.enc.Utf8})),I=A((function(e,t){var n;e.exports=(n=P,function(){var e=n,t=e.lib.WordArray;function r(e,n,r){for(var o=[],i=0,a=0;a<n;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,u=r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=(s|u)<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<n;s++)o.push(r.charAt(a>>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),j="FUNCTION",C="OBJECT",$="pending",L="fulfilled",D="rejected";function M(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function R(e){return"object"===M(e)}function U(e){return"function"==typeof e}function N(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}var F="REJECTED",B="NOT_PENDING",q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,r=t.retryRule,o=void 0===r?F:r;(0,y.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=o}return(0,b.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case F:return this.status===D;case B:return this.status!==$}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=$,this.promise=this.createPromise().then((function(t){return e.status=L,Promise.resolve(t)}),(function(t){return e.status=D,Promise.reject(t)})),this.promise):this.promise}}]),e}();function V(e){return e&&"string"==typeof e?JSON.parse(e):e}var H="mp-weixin",z=V([]),K=H,W=(V(void 0),V([])||[]);try{(n("a3f2").default||n("a3f2")).appid}catch(lr){}var J={};function G(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=J,n=e,Object.prototype.hasOwnProperty.call(t,n)||(J[e]=r),J[e]}"app"===K&&(J=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var Y=["invoke","success","fail","complete"],Z=G("_globalUniCloudInterceptor");function Q(e,t){Z[e]||(Z[e]={}),R(t)&&Object.keys(t).forEach((function(n){Y.indexOf(n)>-1&&function(e,t,n){var r=Z[e][t];r||(r=Z[e][t]=[]),-1===r.indexOf(n)&&U(n)&&r.push(n)}(e,n,t[n])}))}function X(e,t){Z[e]||(Z[e]={}),R(t)?Object.keys(t).forEach((function(n){Y.indexOf(n)>-1&&function(e,t,n){var r=Z[e][t];if(r){var o=r.indexOf(n);o>-1&&r.splice(o,1)}}(e,n,t[n])})):delete Z[e]}function ee(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function te(e,t){return Z[e]&&Z[e][t]||[]}function ne(e){Q("callObject",e)}var re=G("_globalUniCloudListener"),oe="response",ie="needLogin",ae="refreshToken",se="clientdb",ue="cloudfunction",ce="cloudobject";function fe(e){return re[e]||(re[e]=[]),re[e]}function le(e,t){var n=fe(e);n.includes(t)||n.push(t)}function de(e,t){var n=fe(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function he(e,t){for(var n=fe(e),r=0;r<n.length;r++)(0,n[r])(t)}var pe,ve=!1;function ge(){return pe||(pe=new Promise((function(e){ve&&e(),function t(){if("function"==typeof getCurrentPages){var n=getCurrentPages();n&&n[0]&&(ve=!0,e())}ve||setTimeout((function(){t()}),30)}()})),pe)}function ye(e){var t={};for(var n in e){var r=e[n];U(r)&&(t[n]=N(r))}return t}var be,me,_e=function(e){(0,h.default)(n,e);var t=O(n);function n(e){var r;return(0,y.default)(this,n),r=t.call(this,e.message),r.errMsg=e.message||e.errMsg||"unknown system error",r.code=r.errCode=e.code||e.errCode||"SYSTEM_ERROR",r.errSubject=r.subject=e.subject||e.errSubject,r.cause=e.cause,r.requestId=e.requestId,r}return(0,b.default)(n,[{key:"toJson",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),n}((0,g.default)(Error)),we={request:function(e){return r.request(e)},uploadFile:function(e){return r.uploadFile(e)},setStorageSync:function(e,t){return r.setStorageSync(e,t)},getStorageSync:function(e){return r.getStorageSync(e)},removeStorageSync:function(e){return r.removeStorageSync(e)},clearStorageSync:function(){return r.clearStorageSync()}};function xe(){return{token:we.getStorageSync("uni_id_token")||we.getStorageSync("uniIdToken"),tokenExpired:we.getStorageSync("uni_id_token_expired")}}function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&we.setStorageSync("uni_id_token",t),n&&we.setStorageSync("uni_id_token_expired",n)}function Oe(){return be||(be=r.getSystemInfoSync()),be}function Ae(){var e=r.getLocale&&r.getLocale()||"en";if(me)return k(k({},me),{},{locale:e,LOCALE:e});for(var t=Oe(),n=t.deviceId,o=t.osName,i=t.uniPlatform,a=t.appId,s=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],u=0;u<s.length;u++)delete t[s[u]];return me=k(k({PLATFORM:i,OS:o,APPID:a,DEVICEID:n},function(){var e,t;try{if(r.getLaunchOptionsSync){if(r.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=r.getLaunchOptionsSync(),o=n.scene,i=n.channel;e=i,t=o}}catch(e){}return{channel:e,scene:t}}()),t),k(k({},me),{},{locale:e,LOCALE:e})}var Se,Pe={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),T(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return r(new _e({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var o=e.data;if(o.error)return r(new _e({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))},toBase64:function(e){return I.stringify(E.parse(e))}},Te=function(){function e(t){var n=this;(0,y.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=we,this._getAccessTokenPromiseHub=new q({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new _e({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:B})}return(0,b.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return Pe.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Pe.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Pe.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,l.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,o=e.name,i=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:n,formData:r,name:o,filePath:i,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):u(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new _e({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var n,r,o,i,s,u,c,f,l,d,h,p,v,g,y,b,m,_,w,x,k,O;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,o=t.fileType,i=void 0===o?"image":o,s=t.cloudPathAsRealPath,u=void 0!==s&&s,c=t.onUploadProgress,f=t.config,"string"===M(r)){e.next=3;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){e.next=5;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(l=f&&f.envType||this.config.envType,!(u&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){e.next=10;break}throw new _e({code:"INVALID_PARAM",message:"使用cloudPath作为路径时cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:l,filename:u?r.split("/").pop():r,fileId:u?r:void 0});case 12:return d=e.sent.result,h="https://"+d.cdnDomain+"/"+d.ossPath,p=d.securityToken,v=d.accessKeyId,g=d.signature,y=d.host,b=d.ossPath,m=d.id,_=d.policy,w=d.ossCallbackUrl,x={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:v,Signature:g,host:y,id:m,key:b,policy:_,success_action_status:200},p&&(x["x-oss-security-token"]=p),w&&(k=JSON.stringify({callbackUrl:w,callbackBody:JSON.stringify({fileId:m,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),x.callback=Pe.toBase64(k)),O={url:"https://"+d.host,formData:x,fileName:"file",name:"file",filePath:n,fileType:i},e.next=27,this.uploadFileToOSS(Object.assign({},O,{onUploadProgress:c}));case 27:if(!w){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:h});case 29:return e.next=31,this.reportOSSUpload({id:m});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:h});case 33:throw new _e({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=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 _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,n,r,o=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(r));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Ee={init:function(e){var t=new Te(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Ie="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Se||(Se={}));var je,Ce=function(){},$e=A((function(e,t){var n;e.exports=(n=P,function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),u[o]=n(e.pow(r,1/3)),o++),r++}();var c=[],f=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],f=n[5],l=n[6],d=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[h-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[h]=v+c[h-7]+y+c[h-16]}var b=r&o^r&i^o&i,m=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&f^~s&l)+u[h]+c[h];d=l,l=f,f=s,s=a+_|0,a=i,i=o,o=r,r=_+(m+b)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+f|0,n[6]=n[6]+l|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(f),t.HmacSHA256=i._createHmacHelper(f)}(Math),n.SHA256)})),Le=$e,De=A((function(e,t){e.exports=P.HmacSHA256})),Me=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new _e({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};function Re(e){return void 0===e}function Ue(e){return"[object Null]"===Object.prototype.toString.call(e)}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(je||(je={}));var Ne={adapter:null,runtime:void 0},Fe=["anonymousUuidKey"],Be=function(e){(0,h.default)(n,e);var t=O(n);function n(){var e;return(0,y.default)(this,n),e=t.call(this),Ne.adapter.root.tcbObject||(Ne.adapter.root.tcbObject={}),e}return(0,b.default)(n,[{key:"setItem",value:function(e,t){Ne.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Ne.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Ne.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Ne.adapter.root.tcbObject}}]),n}(Ce);function qe(e,t){switch(e){case"local":return t.localStorage||new Be;case"none":return new Be;default:return t.sessionStorage||new Be}}var Ve=function(){function e(t){if((0,y.default)(this,e),!this._storage){this._persistence=Ne.adapter.primaryStorage||t.persistence,this._storage=qe(this._persistence,Ne.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),o="refresh_token_".concat(t.env),i="anonymous_uuid_".concat(t.env),a="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:o,anonymousUuidKey:i,loginTypeKey:a,userInfoKey:s}}}return(0,b.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=qe(e,Ne.adapter);for(var r in this.keys){var o=this.keys[r];if(!t||!Fe.includes(r)){var i=this._storage.getItem(o);Re(i)||Ue(i)||(n.setItem(o,i),this._storage.removeItem(o))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},o=JSON.stringify(r);try{this._storage.setItem(e,o)}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}(),He={},ze={};function Ke(e){return He[e]}var We=(0,b.default)((function e(t,n){(0,y.default)(this,e),this.data=n||null,this.name=t})),Je=function(e){(0,h.default)(n,e);var t=O(n);function n(e,r){var o;return(0,y.default)(this,n),o=t.call(this,"error",{error:e,data:r}),o.error=e,o}return(0,b.default)(n)}(We),Ge=new(function(){function e(){(0,y.default)(this,e),this._listeners={}}return(0,b.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 Je)return console.error(e.error),this;var n="string"==typeof e?new We(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var o,i=this._listeners[r]?(0,f.default)(this._listeners[r]):[],a=_(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.call(this,n)}}catch(u){a.e(u)}finally{a.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Ye(e,t){Ge.on(e,t)}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ge.fire(e,t)}function Qe(e,t){Ge.off(e,t)}var Xe,et="loginStateChanged",tt="loginStateExpire",nt="loginTypeChanged",rt="anonymousConverted",ot="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"}(Xe||(Xe={}));var it=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],at={"X-SDK-Version":"1.3.5"};function st(e,t,n){var r=e[t];e[t]=function(t){var o={},i={};n.forEach((function(n){var r=n.call(e,t),a=r.data,s=r.headers;Object.assign(o,a),Object.assign(i,s)}));var a=t.data;return a&&function(){var e;if(e=a,"[object FormData]"!==Object.prototype.toString.call(e))t.data=k(k({},a),o);else for(var n in o)a.append(n,o[n])}(),t.headers=k(k({},t.headers||{}),i),r.call(e,t)}}function ut(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:k(k({},at),{},{"x-seqid":e})}}var ct=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,y.default)(this,e),this.config=n,this._reqClass=new Ne.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成已中断"),restrictedMethods:["post"]}),this._cache=Ke(this.config.env),this._localCache=(t=this.config.env,ze[t]),st(this._reqClass,"post",[ut]),st(this._reqClass,"upload",[ut]),st(this._reqClass,"download",[ut])}return(0,b.default)(e,[{key:"post",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"upload",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"download",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,n,r,o,i,s,u,c,f,l,d,h,p;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey,i=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),u=this._cache.getStore(o),u){e.next=5;break}throw new _e({message:"未登录CloudBase"});case 5:return c={refresh_token:u},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",c);case 8:if(f=e.sent,!f.data.code){e.next=21;break}if(l=f.data.code,"SIGN_PARAM_INVALID"!==l&&"REFRESH_TOKEN_EXPIRED"!==l&&"INVALID_REFRESH_TOKEN"!==l){e.next=20;break}if(this._cache.getStore(i)!==Xe.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==l){e.next=19;break}return d=this._cache.getStore(s),h=this._cache.getStore(o),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:h});case 17:return p=e.sent,e.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:Ze(tt),this._cache.removeStore(o);case 20:throw new _e({code:f.data.code,message:"刷新access token失败".concat(f.data.code)});case 21:if(!f.data.access_token){e.next=23;break}return e.abrupt("return",(Ze(ot),this._cache.setStore(n,f.data.access_token),this._cache.setStore(r,f.data.access_token_expire+Date.now()),{accessToken:f.data.access_token,accessTokenExpire:f.data.access_token_expire}));case 23:f.data.refresh_token&&(this._cache.removeStore(o),this._cache.setStore(o,f.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,n,r,o,i,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey,this._cache.getStore(o)){e.next=3;break}throw new _e({message:"refresh token不存在登录状态异常"});case 3:if(i=this._cache.getStore(n),s=this._cache.getStore(r),u=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(i,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}u=!1;case 12:return e.abrupt("return",(!i||!s||s<Date.now())&&u?this.refreshAccessToken():{accessToken:i,accessTokenExpire:s});case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"request",value:function(){var e=(0,l.default)(a.default.mark((function e(t,n,r){var o,i,s,u,c,f,l,d,h,p,v,g,y,b,m,_;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o="x-tcb-trace_".concat(this.config.env),i="application/x-www-form-urlencoded",s=k({action:t,env:this.config.env,dataVersion:"2019-08-16"},n),-1!==it.indexOf(t)){e.next=10;break}if(u=this._cache.keys.refreshTokenKey,e.t0=this._cache.getStore(u),!e.t0){e.next=10;break}return e.next=9,this.getAccessToken();case 9:s.access_token=e.sent.accessToken;case 10:if("storage.uploadFile"===t){for(f in c=new FormData,c)c.hasOwnProperty(f)&&void 0!==c[f]&&c.append(f,s[f]);i="multipart/form-data"}else for(l in i="application/json",c={},s)void 0!==s[l]&&(c[l]=s[l]);return d={headers:{"content-type":i}},r&&r.onUploadProgress&&(d.onUploadProgress=r.onUploadProgress),h=this._localCache.getStore(o),h&&(d.headers["X-TCB-Trace"]=h),p=n.parse,v=n.inQuery,g=n.search,y={env:this.config.env},p&&(y.parse=!0),v&&(y=k(k({},v),y)),b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),o="";for(var i in n)""===o?!r&&(t+="?"):o+="&",o+="".concat(i,"=").concat(encodeURIComponent(n[i]));return/^http(s)?\:\/\//.test(t+=o)?t:"".concat(e).concat(t)}(Ie,"//tcb-api.tencentcloudapi.com/web",y),g&&(b+=g),e.next=22,this.post(k({url:b,data:c},d));case 22:if(m=e.sent,_=m.header&&m.header["x-tcb-trace"],_&&this._localCache.setStore(o,_),(200===Number(m.status)||200===Number(m.statusCode))&&m.data){e.next=26;break}throw new _e({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",m);case 27:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var n,r,o,i=arguments;return a.default.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!==it.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(o=e.sent,!o.data.code){e.next=12;break}throw new _e({code:o.data.code,message:o.data.message});case 12:return e.abrupt("return",o.data);case 13:if(!r.data.code){e.next=15;break}throw new _e({code:r.data.code,message:r.data.message});case 15:return e.abrupt("return",r.data);case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(o,e)}}]),e}(),ft={};function lt(e){return ft[e]}var dt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=lt(t.env)}return(0,b.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(o,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,o=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(o,t)}},{key:"refreshUserInfo",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),ht=function(){function e(t){if((0,y.default)(this,e),!t)throw new _e({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Ke(this._envId),this._request=lt(this._envId),this.setUserInfo()}return(0,b.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new _e({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new _e({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,n,r,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,o=n.users,e.abrupt("return",(o.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:o,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var n,r,o,i,s,u,c,f;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,o=t.avatarUrl,i=t.province,s=t.country,u=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:o,province:i,country:s,city:u});case 8:c=e.sent,f=c.data,this.setLocalUserInfo(f);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refresh",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"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}(),pt=function(){function e(t){if((0,y.default)(this,e),!t)throw new _e({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Ke(t);var n=this._cache.keys,r=n.refreshTokenKey,o=n.accessTokenKey,i=n.accessTokenExpireKey,a=this._cache.getStore(r),s=this._cache.getStore(o),u=this._cache.getStore(i);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:u},this.user=new ht(t)}return(0,b.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===Xe.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===Xe.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===Xe.WECHAT||this.loginType===Xe.WECHAT_OPEN||this.loginType===Xe.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),vt=function(e){(0,h.default)(n,e);var t=O(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,b.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,n,r,o,i,s,u;return a.default.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,o=this._cache.getStore(n)||void 0,i=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:o,refresh_token:i});case 8:if(s=e.sent,!s.uuid||!s.refresh_token){e.next=20;break}return this._setAnonymousUUID(s.uuid),this.setRefreshToken(s.refresh_token),e.next=14,this._request.refreshAccessToken();case 14:return Ze(et),Ze(nt,{env:this.config.env,loginType:Xe.ANONYMOUS,persistence:"local"}),u=new pt(this.config.env),e.next=19,u.user.refresh();case 19:return e.abrupt("return",u);case 20:throw new _e({message:"匿名登录失败"});case 21:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var n,r,o,i,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,o=n.refreshTokenKey,i=this._cache.getStore(r),s=this._cache.getStore(o),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:s,ticket:t});case 7:if(u=e.sent,!u.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(u.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Ze(rt,{env:this.config.env}),Ze(nt,{loginType:Xe.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:u.refresh_token}});case 16:throw new _e({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,Xe.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(dt),gt=function(e){(0,h.default)(n,e);var t=O(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,b.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Ze(et),Ze(nt,{env:this.config.env,loginType:Xe.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new pt(this.config.env));case 15:throw new _e({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(dt),yt=function(e){(0,h.default)(n,e);var t=O(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,b.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)(a.default.mark((function e(t,n){var r,o,i,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(o=e.sent,i=o.refresh_token,s=o.access_token,u=o.access_token_expire,!i){e.next=22;break}if(this.setRefreshToken(i),!s||!u){e.next=15;break}this.setAccessToken(s,u),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Ze(et),Ze(nt,{env:this.config.env,loginType:Xe.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new pt(this.config.env));case 22:throw o.code?new _e({code:o.code,message:"邮箱登录失败: ".concat(o.message)}):new _e({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var e=(0,l.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(dt),bt=function(e){(0,h.default)(n,e);var t=O(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,b.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)(a.default.mark((function e(t,n){var r,o,i,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:Xe.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(o=e.sent,i=o.refresh_token,s=o.access_token_expire,u=o.access_token,!i){e.next=23;break}if(this.setRefreshToken(i),!u||!s){e.next=16;break}this.setAccessToken(u,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return Ze(et),Ze(nt,{env:this.config.env,loginType:Xe.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new pt(this.config.env));case 23:throw o.code?new _e({code:o.code,message:"用户名密码登录失败: ".concat(o.message)}):new _e({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(dt),mt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=lt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Ye(nt,this._onLoginTypeChanged)}return(0,b.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new vt(this.config)}},{key:"customAuthProvider",value:function(){return new gt(this.config)}},{key:"emailAuthProvider",value:function(){return new yt(this.config)}},{key:"usernameAuthProvider",value:function(){return new bt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,l.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new vt(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,l.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new yt(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new bt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new vt(this.config)),Ye(rt,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,n,r,o,i,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==Xe.ANONYMOUS){e.next=2;break}throw new _e({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,o=t.accessTokenExpireKey,i=this._cache.getStore(n),i){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:i});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(o),Ze(et),Ze(nt,{env:this.config.env,loginType:Xe.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,l.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(e){var t=this;Ye(et,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){Ye(tt,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Ye(ot,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Ye(rt,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Ye(nt,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,l.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new pt(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new gt(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:k(k({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,r=t.persistence,o=t.env;o===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),_t=function(e,t){t=t||Me();var n=lt(this.config.env),r=e.cloudPath,o=e.filePath,i=e.onUploadProgress,a=e.fileType,s=void 0===a?"image":a;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var a=e.data,u=a.url,c=a.authorization,f=a.token,l=a.fileId,d=a.cosFileId,h=e.requestId,p={key:r,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":f};n.upload({url:u,data:p,file:o,name:r,fileType:s,onUploadProgress:i}).then((function(e){201===e.statusCode?t(null,{fileID:l,requestId:h}):t(new _e({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},wt=function(e,t){t=t||Me();var n=lt(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},xt=function(e,t){var n=e.fileList;if(t=t||Me(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,o=_(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){o.e(s)}finally{o.f()}var a={fileid_list:n};return lt(this.config.env).send("storage.batchDeleteFile",a).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},kt=function(e,t){var n=e.fileList;t=t||Me(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,o=[],i=_(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;"object"==(0,c.default)(a)?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),o.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?o.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(u){i.e(u)}finally{i.f()}var s={file_list:o};return lt(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},Ot=function(){var e=(0,l.default)(a.default.mark((function e(t,n){var r,o,i,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,kt.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(o=e.sent.fileList[0],"SUCCESS"===o.code){e.next=6;break}return e.abrupt("return",n?n(o):new Promise((function(e){e(o)})));case 6:if(i=lt(this.config.env),s=o.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",i.download({url:s}));case 10:return e.t0=n,e.next=13,i.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),At=function(e,t){var n,r=e.name,o=e.data,i=e.query,a=e.parse,s=e.search,u=t||Me();try{n=o?JSON.stringify(o):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new _e({code:"PARAM_ERROR",message:"函数名不能为空"}));var c={inQuery:i,parse:a,search:s,function_name:r,request_data:n};return lt(this.config.env).send("functions.invokeFunction",c).then((function(e){if(e.code)u(null,e);else{var t=e.data.response_data;if(a)u(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),u(null,{result:t,requestId:e.requestId})}catch(e){u(new _e({message:"response data must be json"}))}}return u.promise})).catch((function(e){u(e)})),u.promise},St={timeout:15e3,persistence:"session"},Pt={},Tt=function(){function e(t){(0,y.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,b.default)(e,[{key:"init",value:function(t){switch(Ne.adapter||(this.requestClient=new Ne.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成已中断")})),this.config=k(k({},St),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||Ne.adapter.primaryStorage||St.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;He[t]=new Ve(e),ze[t]=new Ve(k(k({},e),{},{persistence:"local"}))}(this.config),n=this.config,ft[n.env]=new ct(n),this.authObj=new mt(this.config),this.authObj}},{key:"on",value:function(e,t){return Ye.apply(this,[e,t])}},{key:"off",value:function(e,t){return Qe.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return At.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return xt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return kt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return Ot.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return _t.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return wt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Pt[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,l.default)(a.default.mark((function e(t,n){var r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=Pt[t],r){e.next=3;break}throw new _e({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"useAdapters",value:function(e){var t=function(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),o=_(r);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=i.isMatch,s=i.genAdapter,u=i.runtime;if(a())return{adapter:s(),runtime:u}}}catch(c){o.e(c)}finally{o.f()}}(e)||{},n=t.adapter,r=t.runtime;n&&(Ne.adapter=n),r&&(Ne.runtime=r)}}]),e}(),Et=new Tt;function It(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";for(var i in n)""===o?!r&&(t+="?"):o+="&",o+=i+"="+encodeURIComponent(n[i]);return/^http(s)?:\/\//.test(t+=o)?t:""+e+t}var jt=function(){function e(){(0,y.default)(this,e)}return(0,b.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers;return new Promise((function(e,o){we.request({url:It("https:",t),data:n,method:"POST",header:r,success:function(t){e(t)},fail:function(e){o(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,o=e.file,i=e.data,a=e.headers,s=e.fileType,u=we.uploadFile({url:It("https:",r),name:"file",formData:Object.assign({},i),filePath:o,fileType:s,header:a,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(n.statusCode=parseInt(i.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),Ct={setItem:function(e,t){we.setStorageSync(e,t)},getItem:function(e){return we.getStorageSync(e)},removeItem:function(e){we.removeStorageSync(e)},clear:function(){we.clearStorageSync()}},$t={genAdapter:function(){return{root:{},reqClass:jt,localStorage:Ct,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Et.useAdapters($t);var Lt=Et,Dt=Lt.init;Lt.init=function(e){e.env=e.spaceId;var t=Dt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=ye(e),r=t.success,o=t.fail,i=t.complete;if(!(r||o||i))return n.call(this,e);n.call(this,e).then((function(e){r&&r(e),i&&i(e)}),(function(e){o&&o(e),i&&i(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Mt=Lt,Rt=function(e){(0,h.default)(n,e);var t=O(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,b.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"]=Pe.sign(n,this.config.clientSecret);var o=Ae();r["x-client-info"]=encodeURIComponent(JSON.stringify(o));var i=xe(),a=i.token;return r["x-client-token"]=a,{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,o=e.name,i=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:n,formData:r,name:o,filePath:i,fileType:a,success:function(t){t&&t.statusCode<400?e(t):u(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new _e({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,o=e.cloudPath,i=e.fileType,a=void 0===i?"image":i,s=e.onUploadProgress;if(!o)throw new _e({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:o}).then((function(e){var o=e.result,i=o.url,u=o.formData,c=o.name;t=e.result.fileUrl;var f={url:i,formData:u,name:c,filePath:r,fileType:a};return n.uploadFileToOSS(Object.assign({},f,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:o})})).then((function(e){return new Promise((function(n,o){e.success?n({success:!0,filePath:r,fileID:t}):o(new _e({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)).then((function(e){if(e.success)return e.result;throw new _e({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(this.setupRequest(r)).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new _e({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),n}(Te),Ut={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}},Nt=A((function(e,t){e.exports=P.enc.Hex}));function Ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,r=t.functionName,o=t.method,i=t.headers,a=t.signHeaderKeys,s=void 0===a?[]:a,c=t.config,f=Date.now(),l="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),d=Object.assign({},i,{"x-from-app-id":c.spaceAppId,"x-from-env-id":c.spaceId,"x-to-env-id":c.spaceId,"x-from-instance-id":f,"x-from-function-name":r,"x-client-timestamp":f,"x-alipay-source":"client","x-request-id":l,"x-alipay-callid":l,"x-trace-id":l}),h=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),p=e.split("?")||[],v=(0,u.default)(p,2),g=v[0],y=void 0===g?"":g,b=v[1],m=void 0===b?"":b,_=function(e){var t=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),r=Le(e.body).toString(Nt),o="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(t,"\n").concat(r,"\n"),i=Le(o).toString(Nt),a="HMAC-SHA256\n".concat(e.timestamp,"\n").concat(i,"\n"),s=De(a,e.secretKey).toString(Nt);return"HMAC-SHA256 Credential=".concat(e.secretId,", SignedHeaders=").concat(t,", Signature=").concat(s)}({path:y,query:m,method:o,headers:d,timestamp:f,body:JSON.stringify(n),secretId:c.accessKey,secretKey:c.secretKey,signedHeaders:h.sort()});return{url:"".concat(c.endpoint).concat(e),headers:Object.assign({},d,{Authorization:_})}}function Bt(e){var t=e.url,n=e.data,r=e.method,o=void 0===r?"POST":r,i=e.headers,a=void 0===i?{}:i;return new Promise((function(e,r){we.request({url:t,method:o,data:n,header:a,dataType:"json",complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var o=t.data||{},i=o.message,s=o.errMsg,u=o.trace_id;return r(new _e({code:"SYS_ERR",message:i||s||"request:fail",requestId:u||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function qt(e,t){var n=e.path,r=e.data,o=e.method,i=void 0===o?"GET":o,a=Ft(n,{functionName:"",data:r,method:i,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=a.url,u=a.headers;return Bt({url:s,data:r,method:i,headers:u}).then((function(e){var t=e.data||{};if(!t.success)throw new _e({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new _e({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Vt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new _e({code:"INVALID_PARAM",message:"fileID不合法"});var r=t.substring(0,n),o=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),o}function Ht(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var zt=function(){function e(t){if((0,y.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")})}return(0,b.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,r=e.data,o="POST",i=Ft("/functions/invokeFunction",{functionName:n,data:r,method:o,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t}),a=i.url,s=i.headers;return Bt({url:a,data:r,method:o,headers:s}).then((function(e){return{errCode:0,success:!0,requestId:e.requestId,result:e.data}})).catch((function(e){throw new _e({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,r=e.fileType,o=e.formData,i=e.onUploadProgress;return new Promise((function(e,a){var s=we.uploadFile({url:t,filePath:n,fileType:r,formData:o,name:"file",success:function(t){t&&t.statusCode<400?e(t):a(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){a(new _e({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var n,r,o,i,s,u,c,f,l,d,h;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,o=void 0===r?"":r,i=t.fileType,s=void 0===i?"image":i,u=t.onUploadProgress,"string"===M(o)){e.next=3;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(o=o.trim()){e.next=5;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(o)){e.next=7;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,qt({path:"/".concat(o.replace(/^\//,""),"?post_url")},this.config);case 9:return c=e.sent,f=c.file_id,l=c.upload_url,d=c.form_data,h=d&&d.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:l,filePath:n,fileType:s,formData:h,onUploadProgress:u}).then((function(){return{fileID:f}})));case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var n,r=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&t(new _e({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),n.length>50&&t(new _e({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));var o,i=[],a=_(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;"string"!==M(s)&&t(new _e({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));var u=Vt.call(r,s);i.push({file_id:u,expire:600})}}catch(c){a.e(c)}finally{a.f()}qt({path:"/?download_url",data:{file_list:i},method:"POST"},r.config).then((function(t){var n=t.file_list,o=void 0===n?[]:n;e({fileList:o.map((function(e){return{fileID:Ht.call(r,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Kt={init:function(e){e.provider="alipay";var t=new zt(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Wt(e){var t,n=e.data;t=Ae();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var o=xe(),i=o.token;i&&(r.uniIdToken=i)}return r}var Jt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Gt=/[\\^$.*+?()[\]{}|]/g,Yt=RegExp(Gt.source);function Zt(e,t,n){return e.replace(new RegExp((r=t)&&Yt.test(r)?r.replace(Gt,"\\$&"):r,"g"),n);var r}var Qt="request",Xt="response";var en;en="0123456789abcdef";var tn={code:2e4,message:"System error"},nn={code:20101,message:"Invalid client"};function rn(e){var t=e||{},n=t.errSubject,r=t.subject,o=t.errCode,i=t.errMsg,a=t.code,s=t.message,u=t.cause;return new _e({subject:n||r||"uni-secure-network",code:o||a||tn.code,message:i||s,cause:u})}var on;function an(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===Qt||t===Xt||"both"===t}function sn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,r=void 0===n?{}:n;return"app"===K&&"DCloud-clientDB"===t&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function un(e){e.functionName,e.result,e.logPvd}function cn(e){var t=e.callFunction,n=function(n){var r=this,o=n.name;n.data=Wt.call(e,{data:n.data});var i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],a=an(n),s=sn(n),u=a||s;return t.call(this,n).then((function(e){return e.errCode=0,!u&&un.call(r,{functionName:o,result:e,logPvd:i}),Promise.resolve(e)}),(function(e){return!u&&un.call(r,{functionName:o,result:e,logPvd:i}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,o=void 0===r?{}:r,i=e.formatter,a=void 0===i?[]:i,s=0;s<a.length;s++){var u=a[s],c=u.rule,f=u.content,l=u.mode,d=n.match(c);if(d){for(var h=f,p=1;p<d.length;p++)h=Zt(h,"{$".concat(p,"}"),d[p]);for(var v in o)h=Zt(h,"{".concat(v,"}"),o[v]);return"replace"===l?h:n+h}}return n}({message:"[".concat(n.name,"]: ").concat(e.message),formatter:Jt,extraInfo:{functionName:o}})),Promise.reject(e)}))};e.callFunction=function(t){var r,o,i=e.config,a=i.provider,s=i.spaceId,u=t.name;return t.data=t.data||{},r=n,r=r.bind(e),o=sn(t)?n.call(e,t):function(e){var t=e.name,n=e.data,r=void 0===n?{}:n;return"mp-weixin"===K&&"uni-id-co"===t&&"secureNetworkHandshakeByWeixin"===r.method}(t)?r.call(e,t):an(t)?new on({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=e.functionName,o=Oe(),i=o.appId,a=o.uniPlatform,s=o.osName,u=a;"app"===a&&(u=s);var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=z;if(!r)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var o=r.find((function(e){return e.provider===t&&e.spaceId===n}));return o&&o.config}({provider:t,spaceId:n});if(!c||!c.accessControl||!c.accessControl.enable)return!1;var f=c.accessControl.function||{},l=Object.keys(f);if(0===l.length)return!0;var d=function(e,t){for(var n,r,o,i=0;i<e.length;i++){var a=e[i];a!==t?"*"!==a?a.split(",").map((function(e){return e.trim()})).indexOf(t)>-1&&(r=a):o=a:n=a}return n||r||o}(l,r);if(!d)return!1;if((f[d]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===i&&(e.platform||"").toLowerCase()===u.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(i,", platform: ").concat(u,"]不在云端配置的允许访问的应用列表内参考https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),rn(nn)}({provider:a,spaceId:s,functionName:u})?new on({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(o,"result",{get:function(){return console.warn("当前返回结果为Promise类型不可直接访问其result属性详情请参考https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),o.then((function(e){return"undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e}))}}on="mp-weixin"!==K&&"app"!==K?function(){return(0,b.default)((function e(){throw(0,y.default)(this,e),rn({message:"Platform ".concat(K," is not supported by secure network")})}))}():function(){return(0,b.default)((function e(){throw(0,y.default)(this,e),rn({message:"Platform ".concat(K," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var fn=Symbol("CLIENT_DB_INTERNAL");function ln(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=fn,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if("symbol"==(0,c.default)(n))return e[n];if(n in e||"string"!=typeof n){var o=e[n];return"function"==typeof o?o.bind(e):o}return t.get(e,n,r)}})}function dn(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 hn=["db.Geo","db.command","command.aggregate"];function pn(e,t){return hn.indexOf("".concat(e,".").concat(t))>-1}function vn(e){switch(M(e)){case"array":return e.map((function(e){return vn(e)}));case"object":return e._internalType===fn||Object.keys(e).forEach((function(t){e[t]=vn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function gn(e){return e&&e.content&&e.content.$method}var yn=function(){function e(t,n,r){(0,y.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,b.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:vn(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=gn(e),n=gn(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===gn(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=gn(e),n=gn(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return bn({$method:e,$param:vn(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();return r.$db.push({$method:e,$param:vn(t)}),this._database._callCloudFunction({action:n,command:r})}}]),e}();function bn(e,t,n){return ln(new yn(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),pn(r,t)?bn({$method:t},e,n):function(){return bn({$method:t,$param:vn(Array.from(arguments))},e,n)}}})}function mn(e){var t=e.path,n=e.method;return function(){function e(){(0,y.default)(this,e),this.param=Array.from(arguments)}return(0,b.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,f.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function _n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ln(new e(t),{get:function(e,t){return pn("db",t)?bn({$method:t},null,e):function(){return bn({$method:t,$param:vn(Array.from(arguments))},null,e)}}})}var wn=function(e){(0,h.default)(n,e);var t=O(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,b.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,o=e.multiCommand,i=e.queryList;function a(e,t){if(o&&i)for(var n=0;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 s=this,u=this._isJQL?"databaseForJQL":"database";function c(e){return s._callback("error",[e]),ee(te(u,"fail"),e).then((function(){return ee(te(u,"complete"),e)})).then((function(){return a(null,e),he(oe,{type:se,content:e}),Promise.reject(e)}))}var f=ee(te(u,"invoke")),l=this._uniClient;return f.then((function(){return l.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:n,command:r,multiCommand:o}})})).then((function(e){var n=e.result,r=n.code,o=n.message,i=n.token,f=n.tokenExpired,l=n.systemInfo,d=void 0===l?[]:l;if(d)for(var h=0;h<d.length;h++){var p=d[h],v=p.level,g=p.message,y=p.detail,b=console["app"===K&&"warn"===v?"error":v]||console.log,m="[System Info]"+g;y&&(m="".concat(m,"\n详细信息").concat(y)),b(m)}if(r)return c(new _e({code:r,message:o,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,i&&f&&(ke({token:i,tokenExpired:f}),t._callbackAuth("refreshToken",[{token:i,tokenExpired:f}]),t._callback("refreshToken",[{token:i,tokenExpired:f}]),he(ae,{token:i,tokenExpired:f}));for(var _=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用请使用errCode替代"},{prop:"message",tips:"message不再推荐使用请使用errMsg替代"}],w=function(t){var n=_[t],r=n.prop,o=n.tips;if(r in e.result){var i=e.result[r];Object.defineProperty(e.result,r,{get:function(){return console.warn(o),i}})}},x=0;x<_.length;x++)w(x);return function(e){return ee(te(u,"success"),e).then((function(){return ee(te(u,"complete"),e)})).then((function(){a(e,null);var t=s._parseResult(e);return he(oe,{type:se,content:t}),Promise.resolve(t)}))}(e)}),(function(e){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化请在web控制台保存一次schema以开启clientDB"),c(new _e({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}]),n}(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n,o=t.isJQL,i=void 0!==o&&o;(0,y.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=G("_globalUniCloudDatabaseCallback")),i||(this.auth=dn(this._authCallBacks)),this._isJQL=i,Object.assign(this,dn(this._dbCallBacks)),this.env=ln({},{get:function(e,t){return{$env:t}}}),this.Geo=ln({},{get:function(e,t){return mn({path:["Geo"],method:t})}}),this.serverDate=mn({path:[],method:"serverDate"}),this.RegExp=mn({path:[],method:"RegExp"})}return(0,b.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,f.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,f.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}()),xn="token无效跳转登录页面",kn="token过期跳转登录页面",On={TOKEN_INVALID_TOKEN_EXPIRED:kn,TOKEN_INVALID_INVALID_CLIENTID:xn,TOKEN_INVALID:xn,TOKEN_INVALID_WRONG_TOKEN:xn,TOKEN_INVALID_ANONYMOUS_USER:xn},An={"uni-id-token-expired":kn,"uni-id-check-token-failed":xn,"uni-id-token-not-exist":xn,"uni-id-check-device-feature-failed":xn};function Sn(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function Pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(Sn(t,e.path)):!1===e.needLogin&&r.push(Sn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function Tn(e){return e.split("?")[0].replace(/^\//,"")}function En(){return function(e){var t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){var e=getCurrentPages();return e[e.length-1]}())}function In(){return Tn(En())}function jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,r=Tn(e);return n.some((function(e){return e.pagePath===r}))}var Cn,$n=!!m.default.uniIdRouter,Ln=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,o=void 0===r?[]:r,i=e.uniIdRouter,a=void 0===i?{}:i,s=e.tabBar,u=void 0===s?{}:s,c=a.loginPage,l=a.needLogin,d=void 0===l?[]:l,h=a.resToLogin,p=void 0===h||h,v=Pn(n),g=v.needLoginPage,y=v.notNeedLoginPage,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,o=e.pages,i=void 0===o?[]:o,a=Pn(i,r),s=a.needLoginPage,u=a.notNeedLoginPage;t.push.apply(t,(0,f.default)(s)),n.push.apply(n,(0,f.default)(u))})),{needLoginPage:t,notNeedLoginPage:n}}(o),_=b.needLoginPage,w=b.notNeedLoginPage;return{loginPage:c,routerNeedLogin:d,resToLogin:p,needLoginPage:[].concat((0,f.default)(g),(0,f.default)(_)),notNeedLoginPage:[].concat((0,f.default)(y),(0,f.default)(w)),loginPageInTabBar:jn(c,u)}}(),Dn=Ln.loginPage,Mn=Ln.routerNeedLogin,Rn=Ln.resToLogin,Un=Ln.needLoginPage,Nn=Ln.notNeedLoginPage,Fn=Ln.loginPageInTabBar;if(Un.indexOf(Dn)>-1)throw new Error("Login page [".concat(Dn,'] should not be "needLogin", please check your pages.json'));function Bn(e){var t=In();if("/"===e.charAt(0))return e;var n=e.split("?"),r=(0,u.default)(n,2),o=r[0],i=r[1],a=o.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var c=0;c<a.length;c++){var f=a[c];".."===f?s.pop():"."!==f&&s.push(f)}return""===s[0]&&s.shift(),"/"+s.join("/")+(i?"?"+i:"")}function qn(e){var t=Tn(Bn(e));return!(Nn.indexOf(t)>-1)&&(Un.indexOf(t)>-1||Mn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function Vn(e){var t=e.redirect,n=Tn(t),r=Tn(Dn);return In()!==r&&n!==r}function Hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&Vn({redirect:n})){var o=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Dn,n);Fn?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var i={navigateTo:r.navigateTo,redirectTo:r.redirectTo,switchTab:r.switchTab,reLaunch:r.reLaunch};setTimeout((function(){i[t]({url:o})}))}}function zn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=xe(),n=t.token,r=t.tokenExpired;if(n){if(r<Date.now()){var o="uni-id-token-expired";e={errCode:o,errMsg:An[o]}}}else{var i="uni-id-check-token-failed";e={errCode:i,errMsg:An[i]}}return e}();if(qn(t)&&r){if(r.uniIdRedirectUrl=t,fe(ie).length>0)return setTimeout((function(){he(ie,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function Kn(){!function(){var e=En(),t=zn({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&Hn({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];r.addInterceptor(n,{invoke:function(e){var t=zn({url:e.url}),r=t.abortLoginPageJump,o=t.autoToLoginPage;return r?e:o?(Hn({api:n,redirect:Bn(e.url)}),!1):e}})},n=0;n<e.length;n++)t(n)}function Wn(){this.onResponse((function(e){var t=e.type,n=e.content,r=!1;switch(t){case"cloudobject":r=function(e){if("object"!=(0,c.default)(e))return!1;var t=e||{},n=t.errCode;return n in An}(n);break;case"clientdb":r=function(e){if("object"!=(0,c.default)(e))return!1;var t=e||{},n=t.errCode;return n in On}(n)}r&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=fe(ie);ge().then((function(){var n=En();if(n&&Vn({redirect:n}))return t.length>0?he(ie,Object.assign({uniIdRedirectUrl:n},e)):void(Dn&&Hn({api:"navigateTo",redirect:n}))}))}(n)}))}function Jn(e){!function(e){e.onResponse=function(e){le(oe,e)},e.offResponse=function(e){de(oe,e)}}(e),function(e){e.onNeedLogin=function(e){le(ie,e)},e.offNeedLogin=function(e){de(ie,e)},$n&&(G("_globalUniCloudStatus").needLoginInit||(G("_globalUniCloudStatus").needLoginInit=!0,ge().then((function(){Kn.call(e)})),Rn&&Wn.call(e)))}(e),function(e){e.onRefreshToken=function(e){le(ae,e)},e.offRefreshToken=function(e){de(ae,e)}}(e)}var Gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Yn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Zn(){var e,t,n=xe().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(Cn(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}Cn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Yn.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,o="",i=0;i<e.length;)t=Gn.indexOf(e.charAt(i++))<<18|Gn.indexOf(e.charAt(i++))<<12|(n=Gn.indexOf(e.charAt(i++)))<<6|(r=Gn.indexOf(e.charAt(i++))),o+=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 o}:atob;var Qn=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,r){var o=r.onChooseFile,i=r.onUploadProgress;return t.then((function(e){if(o){var t=o(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,o=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var i=t.tempFiles,a=i.length,s=0;return new Promise((function(n){for(;s<r;)u();function u(){var r=s++;if(r>=a)!i.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var c=i[r];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress:function(e){e.index=r,e.tempFile=c,e.tempFilePath=c.path,o&&o(e)}}).then((function(e){c.url=e.fileID,r<a&&u()})).catch((function(e){c.errMsg=e.errMsg||e.message,r<a&&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?s(e,function(e){var t=e.count,n=e.sizeType,o=e.sourceType,s=void 0===o?["album","camera"]:o,u=e.extension;return new Promise((function(e,o){r.chooseImage({count:t,sizeType:n,sourceType:s,extension:u,success:function(t){e(a(t,"image"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,n=e.compressed,o=e.maxDuration,s=e.sourceType,u=void 0===s?["album","camera"]:s,c=e.extension;return new Promise((function(e,s){r.chooseVideo({camera:t,compressed:n,maxDuration:o,sourceType:u,extension:c,success:function(t){var n=t.tempFilePath,r=t.duration,o=t.size,i=t.height,s=t.width;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:o,type:t.tempFile&&t.tempFile.type||"",width:s,height:i,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):s(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,s){var u=r.chooseFile;if("undefined"!=typeof o&&"function"==typeof o.chooseMessageFile&&(u=o.chooseMessageFile),"function"!=typeof u)return s({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});u({type:"all",count:t,extension:n,success:function(t){e(a(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}})),Xn=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Qn);function er(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if("manual"!==e.loadtime){for(var r=!1,o=[],i=2;i<t.length;i++)t[i]!==n[i]&&(o.push(t[i]),r=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(r,o)}}))},methods:{onMixinDatacomPropsChange:function(e,t){},mixinDatacomEasyGet:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,o=t.success,i=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,i=n.data,a=n.count;e.getcount&&(e.mixinDatacomPage.count=a),e.mixinDatacomHasMore=i.length<e.pageSize;var s=r?i.length?i[0]:void 0:i;e.mixinDatacomResData=s,o&&o(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,e.mixinDatacomError=t,i&&i(t)})))},mixinDatacomGet:function(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r=r||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var o=r.action||this.action;o&&(n=n.action(o));var i=r.collection||this.collection;n=Array.isArray(i)?(t=n).collection.apply(t,(0,f.default)(i)):n.collection(i);var a=r.where||this.where;a&&Object.keys(a).length&&(n=n.where(a));var s=r.field||this.field;s&&(n=n.field(s));var u=r.foreignKey||this.foreignKey;u&&(n=n.foreignKey(u));var c=r.groupby||this.groupby;c&&(n=n.groupBy(c));var l=r.groupField||this.groupField;l&&(n=n.groupField(l)),!0===(void 0!==r.distinct?r.distinct:this.distinct)&&(n=n.distinct());var d=r.orderby||this.orderby;d&&(n=n.orderBy(d));var h=void 0!==r.pageCurrent?r.pageCurrent:this.mixinDatacomPage.current,p=void 0!==r.pageSize?r.pageSize:this.mixinDatacomPage.size,v=void 0!==r.getcount?r.getcount:this.getcount,g=void 0!==r.gettree?r.gettree:this.gettree,y=void 0!==r.gettreepath?r.gettreepath:this.gettreepath,b={getCount:v},m={limitLevel:void 0!==r.limitlevel?r.limitlevel:this.limitlevel,startWith:void 0!==r.startwith?r.startwith:this.startwith};return g&&(b.getTree=m),y&&(b.getTreePath=m),n=n.skip(p*(h-1)).limit(p).get(b),n}}}}function tr(e){return G("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function nr(){return rr.apply(this,arguments)}function rr(){return rr=(0,l.default)(a.default.mark((function e(){var t,n,o,i,s,u,c,f=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=f.length>0&&void 0!==f[0]?f[0]:{},n=t.openid,o=t.callLoginByWeixin,i=void 0!==o&&o,s=tr(this),"mp-weixin"===K){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(K,"`"));case 4:if(!n||!i){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){r.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return u=e.sent,c=this.importObject("uni-id-co",{customUI:!0}),e.next=14,c.secureNetworkHandshakeByWeixin({code:u,callLoginByWeixin:i});case 14:return s.mpWeixinCode=u,e.abrupt("return",{code:u});case 16:case"end":return e.stop()}}),e,this)}))),rr.apply(this,arguments)}function or(e){return ir.apply(this,arguments)}function ir(){return ir=(0,l.default)(a.default.mark((function e(t){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=tr(this),e.abrupt("return",(n.initPromise||(n.initPromise=nr.call(this,t).then((function(e){return e})).catch((function(e){throw delete n.initPromise,e}))),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),ir.apply(this,arguments)}function ar(e){var t={getSystemInfo:r.getSystemInfo,getPushClientId:r.getPushClientId};return function(n){return new Promise((function(r,o){t[e](k(k({},n),{},{success:function(e){r(e)},fail:function(e){o(e)}}))}))}}var sr=function(e){(0,h.default)(n,e);var t=O(n);function n(){var e;return(0,y.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,b.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([ar("getSystemInfo")(),ar("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,u.default)(t,2),r=n[0];r=void 0===r?{}:r;var o=r.appId,i=n[1];i=void 0===i?{}:i;var a=i.cid;if(!o)throw new Error("Invalid appId, please check the manifest.json file");if(!a)throw new Error("Invalid push client id");e._appId=o,e._pushClientId=a,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,l.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,r=t.messageId,o=t.message;this._payloadQueue.push({action:n,messageId:r,message:o}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,r=e.message;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){r.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){r.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(function(){function e(){(0,y.default)(this,e),this._callback={}}return(0,b.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(t)for(var i=0;i<t.length;i++)t[i].apply(t,r)}}]),e}());var ur={tcb:Mt,tencent:Mt,aliyun:Ee,private:Ut,alipay:Kt},cr=new(function(){function e(){(0,y.default)(this,e)}return(0,b.default)(e,[{key:"init",value:function(e){var t={},n=ur[e.provider];if(!n)throw new Error("未提供正确的provider参数");return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new q({createPromise:function(){var t=Promise.resolve();t=new Promise((function(e){setTimeout((function(){e()}),1)}));var n=e.auth();return t.then((function(){return n.getLoginState()})).then((function(e){return e?Promise.resolve():n.signInAnonymously()}))}}))}(t),cn(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),function(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var n=_n(wn,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=_n(wn,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=Zn,e.chooseAndUploadFile=Xn.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return er(e)}}),e.SSEChannel=sr,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,r=t.callLoginByWeixin,o=void 0!==r&&r;return or.call(e,{openid:n,callLoginByWeixin:o})}}(e),e.importObject=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,c.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var o=n,i=o.customUI,s=o.loadingOptions,u=o.errorOptions,f=o.parseSystemError,d=!i;return new Proxy({},{get:function(o,i){switch(i){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,l.default)(a.default.mark((function e(){var o,i,s,u,c,f,l=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(o=l.length,i=new Array(o),s=0;s<o;s++)i[s]=l[s];return u=r?r({params:i}):{},e.prev=2,e.next=5,ee(te(n,"invoke"),k({},u));case 5:return e.next=7,t.apply(void 0,i);case 7:return c=e.sent,e.next=10,ee(te(n,"success"),k(k({},u),{},{result:c}));case 10:return e.abrupt("return",c);case 13:return e.prev=13,e.t0=e["catch"](2),f=e.t0,e.next=18,ee(te(n,"fail"),k(k({},u),{},{error:f}));case 18:throw f;case 19:return e.prev=19,e.next=22,ee(te(n,"complete"),k(k({},u),{},f?{error:f}:{result:c}));case 22:return e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[2,13,19,23]])})))}({fn:function(){var o=(0,l.default)(a.default.mark((function o(){var p,v,g,y,b,m,_,w,x,O,A,S,P,T,E,I=arguments;return a.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:for(d&&r.showLoading({title:s.title,mask:s.mask}),v=I.length,g=new Array(v),y=0;y<v;y++)g[y]=I[y];return b={name:t,type:C,data:{method:i,params:g}},"object"==(0,c.default)(n.secretMethods)&&function(e,t){var n=t.data.method,r=e.secretMethods||{},o=r[n]||r["*"];o&&(t.secretType=o)}(n,b),m=!1,o.prev=5,o.next=8,e.callFunction(b);case 8:p=o.sent,o.next=14;break;case 11:o.prev=11,o.t0=o["catch"](5),m=!0,p={result:new _e(o.t0)};case 14:if(_=p.result||{},w=_.errSubject,x=_.errCode,O=_.errMsg,A=_.newToken,d&&r.hideLoading(),A&&A.token&&A.tokenExpired&&(ke(A),he(ae,k({},A))),!x){o.next=39;break}if(S=O,!m||!f){o.next=24;break}return o.next=20,f({objectName:t,methodName:i,params:g,errSubject:w,errCode:x,errMsg:O});case 20:if(o.t1=o.sent.errMsg,o.t1){o.next=23;break}o.t1=O;case 23:S=o.t1;case 24:if(!d){o.next=37;break}if("toast"!==u.type){o.next=29;break}r.showToast({title:S,icon:"none"}),o.next=37;break;case 29:if("modal"===u.type){o.next=31;break}throw new Error("Invalid errorOptions.type: ".concat(u.type));case 31:return o.next=33,(0,l.default)(a.default.mark((function e(){var t,n,o,i,s,u,c=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.title,o=t.content,i=t.showCancel,s=t.cancelText,u=t.confirmText,e.abrupt("return",new Promise((function(e,t){r.showModal({title:n,content:o,showCancel:i,cancelText:s,confirmText:u,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:S,showCancel:u.retry,cancelText:"取消",confirmText:u.retry?"重试":"确定"});case 33:if(P=o.sent,T=P.confirm,!u.retry||!T){o.next=37;break}return o.abrupt("return",h.apply(void 0,g));case 37:throw E=new _e({subject:w,code:x,message:O,requestId:p.requestId}),E.detail=p.result,he(oe,{type:ce,content:E}),E;case 39:return o.abrupt("return",(he(oe,{type:ce,content:p.result}),p.result));case 40:case"end":return o.stop()}}),o,null,[[5,11]])})));function h(){return o.apply(this,arguments)}return h}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:i,params:n}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var r=this,o=!1;if("callFunction"===t){var i=n&&n.type||j;o=i!==j}var a="callFunction"===t&&!o,s=this._initPromiseHub.exec();n=n||{};var u=ye(n),c=u.success,f=u.fail,l=u.complete,d=s.then((function(){return o?Promise.resolve():ee(te(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return o?Promise.resolve(e):ee(te(t,"success"),e).then((function(){return ee(te(t,"complete"),e)})).then((function(){return a&&he(oe,{type:ue,content:e}),Promise.resolve(e)}))}),(function(e){return o?Promise.reject(e):ee(te(t,"fail"),e).then((function(){return ee(te(t,"complete"),e)})).then((function(){return he(oe,{type:ue,content:e}),Promise.reject(e)}))}));if(!(c||f||l))return d;d.then((function(e){c&&c(e),l&&l(e),a&&he(oe,{type:ue,content:e})}),(function(e){f&&f(e),l&&l(e),a&&he(oe,{type:ue,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=W,t={};if(e&&1===e.length)t=e[0],cr=cr.init(t),cr._isDefault=!0;else{var n;n=e&&e.length>0?"应用有多个服务空间请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(e){cr[e]=function(){return console.error(n),Promise.reject(new _e({code:"SYS_ERR",message:n}))}}))}Object.assign(cr,{get mixinDatacom(){return er(cr)}}),Jn(cr),cr.addInterceptor=Q,cr.removeInterceptor=X,cr.interceptObject=ne})();var fr=cr;t.default=fr}).call(this,n("c8ba"),n("543d")["default"],n("bc2e")["default"])},aee8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={landsacpe:29100,navbar:29090,toast:20090,goodsNav:20089,alert:20085,modal:20080,popup:20075,tips:19080,sticky:19075,indexListSticky:19070,fab:19060,mask:9999,tableTr:1001,tableTd:1e3}},b17c:function(e,t,n){var r=n("4a4b"),o=n("6f8f");e.exports=function(e,t,n){if(o())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var a=new(e.bind.apply(e,i));return n&&r(a,n.prototype),a},e.exports.__esModule=!0,e.exports["default"]=e.exports},b1dd:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e&&!(0,o.default)(t))return(0,i.default)(e,t);return t};var o=r(n("29a0")),i=r(n("63f8"))},b639:function(e,t,n){"use strict";(function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=n("1fb5"),o=n("9152"),i=n("e3db");function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=d(e,t);return e}(e,t,n,r):"string"===typeof t?function(e,t,n){"string"===typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n);e=s(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|h(t.length);return e=s(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||function(e){return e!==e}(t.length)?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function f(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e,t){if(f(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return E(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var f=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===u)return f*a}else-1!==f&&(i-=i-f),f=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){for(var l=!0,d=0;d<u;d++)if(c(e,i+d)!==c(t,d)){l=!1;break}if(l)return i}return-1}function m(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function _(e,t,n,r){return q(F(t,e.length-n),e,n,r)}function w(e,t,n,r){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return q(B(t),e,n,r)}function O(e,t,n,r){return q(function(e,t){for(var n,r,o,i=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r)}return i}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);var r=[],o=t;while(o<n){var i,a,s,u,c=e[o],f=null,l=c>239?4:c>223?3:c>191?2:1;if(o+l<=n)switch(l){case 1:c<128&&(f=c);break;case 2:i=e[o+1],128===(192&i)&&(u=(31&c)<<6|63&i,u>127&&(f=u));break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a,u>2047&&(u<55296||u>57343)&&(f=u));break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s,u>65535&&u<1114112&&(f=u))}null===f?(f=65533,l=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),o+=l}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return f(t),t<=0?s(e,t):void 0!==n?"string"===typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return l(null,e)},u.allocUnsafeSlow=function(e){return l(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):v.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,s=Math.min(i,a),c=this.slice(r,o),f=e.slice(t,n),l=0;l<s;++l)if(c[l]!==f[l]){i=c[l],a=f[l];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return m(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function E(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=N(e[i]);return o}function I(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function j(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function $(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,i){return i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);var r=this[e+--t],o=1;while(t>0&&(o*=256))r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);var r=t,o=1,i=this[e+--r];while(r>0&&(o*=256))i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;C(this,e,t,n,o,0)}var i=1,a=0;this[t]=255&e;while(++a<n&&(i*=256))this[t+a]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;C(this,e,t,n,o,0)}var i=n-1,a=1;this[t+i]=255&e;while(--i>=0&&(a*=256))this[t+i]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;this[t]=255&e;while(++i<n&&(a*=256))e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;this[t+i]=255&e;while(--i>=0&&(a*=256))e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=u.isBuffer(e)?e:F(new u(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function N(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function B(e){return r.toByteArray(function(e){if(e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}(e))}function q(e,t,n,r){for(var o=0;o<r;++o){if(o+n>=t.length||o>=e.length)break;t[o+n]=e[o]}return o}}).call(this,n("c8ba"))},b761:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=n.config.validateStatus,o=n.statusCode;!o||r&&!r(o)?t(n):e(n)}},bc2e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],o=["lanDebug","router","worklet"],i="undefined"!==typeof globalThis?globalThis:function(){return this}(),a=["w","x"].join(""),s=i[a],u=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function c(e){return(!u||1154!==u.scene||!o.includes(e))&&(r.indexOf(e)>-1||"function"===typeof s[e])}i[a]=function(){var e={};for(var t in s)c(t)&&(e[t]=s[t]);return e}();var f=i[a];t.default=f},bd69:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={mainColor:"#01BEFF",reverseMainColor:"#FFF00D",femaleColor:"#FF71D2",maleColor:"#82B2FF",mainOrange:"#FBBD12",bgColor:"#FFFFFF",spaceColor:"#F8F7F8",fontColor:"#080808",fontSubColor:"#AAAAAA",contentColor:"#838383",fontHolderColor:"#E6E6E6",maskBgColor:"rgba(0, 0, 0, 0.4)"}},c135:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports["default"]=e.exports},c240:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},c5f7:function(e,t){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c973:function(e,t){function n(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports["default"]=e.exports},d2b3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={trim:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return"both"===t?e.replace(/^\s+|\s+$/g,""):"left"===t?e.replace(/^\s*/g,""):"right"===t?e.replace(/(\s*$)/g,""):"all"===t?e.replace(/\s+/g,""):e},getLengthUnitValue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rpx";return e?/(%|px|rpx|auto)$/.test(e)?e:e+t:""},humpConvertChar:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e&&t?e.replace(/([A-Z])/g,"".concat(t,"$1")).toLowerCase():""},charConvertHump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";if(!e||!t)return"";var n=RegExp(t+"(\\w)","g");return e.replace(n,(function(e,t){return t.toUpperCase()}))}};t.default=r},de98:function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("66fd")),i=r(n("26cb"));o.default.use(i.default);var a={};try{a=e.getStorageSync("lifeData")}catch(f){}var s=["vuex_user"],u=new i.default.Store({state:{vuex_user:a.vuex_user?a.vuex_user:{name:"灵睿"},vuex_version:"1.0.0",vuex_custom_nav_bar:!0,vuex_status_bar_height:0,vuex_custom_bar_height:0,Gid:1,imgUrl:"https://ysx.0rui.cn",apiUrl:"https://ysx.0rui.cn/api"},mutations:{$tStore:function(t,n){var r=n.name.split("."),o="",i=r.length;if(i>=2){for(var a=t[r[0]],u=1;u<i-1;u++)a=a[r[u]];a[r[i-1]]=n.value,o=r[0]}else t[n.name]=n.value,o=n.name;(function(t,n){if(-1!=s.indexOf(t)){var r=e.getStorageSync("lifeData");r=r||{},r[t]=n,e.setStorageSync("lifeData",r)}})(o,t[o])}},actions:{}}),c=u;t.default=c}).call(this,n("543d")["default"])},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return t=n(r(t.split("/"),(function(e){return!!e})),!o).join("/"),(o?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u<a;u++)if(o[u]!==i[u]){s=u;break}var c=[];for(u=s;u<o.length;u++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e0eb:function(e,t,n){"use strict";(function(e){function n(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1500;t&&e.showToast({title:t,icon:n,duration:r})}Object.defineProperty(t,"__esModule",{value:!0}),t.clearStorageSync=function(){return e.clearStorageSync()},t.clone=void 0,t.getStorageSync=function(t){return e.getStorageSync(t)},t.previewImage=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["发送给朋友","保存图片","收藏"];e.previewImage({urls:t,longPressActions:{itemList:n,fail:function(e){console.error(e,"===previewImage")}}})},t.removeStorageSync=function(t){return e.removeStorageSync(t)},t.saveImage=function(t){if(!t)return!1;e.saveImageToPhotosAlbum({filePath:t,success:function(e){n("图片保存成功","success")},fail:function(t){"saveImageToPhotosAlbum:fail:auth denied"!==t.errMsg&&"saveImageToPhotosAlbum:fail auth deny"!==t.errMsg||e.showModal({title:"提示",content:"需要您授权保存相册",showCancel:!1,success:function(t){e.openSetting({success:function(t){t.authSetting["scope.writePhotosAlbum"]?e.showModal({title:"提示",content:"获取权限成功,再次点击图片即可保存",showCancel:!1}):e.showModal({title:"提示",content:"获取权限失败,将无法保存到相册哦~",showCancel:!1})},fail:function(e){console.log("failData",e)}})}})}})},t.setStorageSync=function(t,n){e.setStorageSync(t,n)},t.toast=n,t.useRouter=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"navigateTo";try{Object.keys(n).length&&(t="".concat(t,"?data=").concat(encodeURIComponent(JSON.stringify(n)))),"navigateBack"===r?e[r]({delta:t}):e[r]({url:t})}catch(o){console.error(o)}};t.clone=function(e){return JSON.parse(JSON.stringify(e))}}).call(this,n("543d")["default"])},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e50d:function(e,t,n){var r=n("7037")["default"];e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},e725:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceFun=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){e.apply(r,i)}),n)}},t.throttleFun=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=null;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];n||(n=setTimeout((function(){n=null,console.log("执行了"),e.apply(r,i)}),t))}}},ed6d:function(e,t,n){var r=n("4a4b");e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},f0c5:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s,u,c){var f,l="function"===typeof e?e.options:e;if(u){l.components||(l.components={});var d=Object.prototype.hasOwnProperty;for(var h in u)d.call(u,h)&&!d.call(l.components,h)&&(l.components[h]=u[h])}if(c&&("function"===typeof c.beforeCreate&&(c.beforeCreate=[c.beforeCreate]),(c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(l.mixins||(l.mixins=[])).push(c)),t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(f=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=f):o&&(f=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(l.functional){l._injectStyles=f;var p=l.render;l.render=function(e,t){return f.call(t),p(e,t)}}else{var v=l.beforeCreate;l.beforeCreate=v?[].concat(v,f):[f]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},f3b2:function(e,t,n){(function(t){e.exports={data:function(){return{}},onLoad:function(){this.$tn.getRect=this._tGetRect},beforeDestory:function(){var e=this;if(this.parent&&t.$tn.test.array(this.parent.children)){var n=this.parent.children;n.map((function(t,r){t===e&&n.splice(r,1)}))}},methods:{_tGetRect:function(e,n){var r=this;return new Promise((function(o){t.createSelectorQuery().in(r)[n?"selectAll":"select"](e).boundingClientRect((function(e){n&&Array.isArray(e)&&e.length&&o(e),!n&&e&&o(e)})).exec()}))},getParentData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent=!1),this.parent=this.$tn.$parent.call(this,t),this.parent&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&e.stopPropagation&&e.stopPropagation()}}}}).call(this,n("543d")["default"])},fafd:function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("f3b2")),i=r(n("6ef8")),a=r(n("62e5")),s=r(n("a230")),u=r(n("9892")),c=r(n("6262")),f=r(n("2ede")),l=r(n("9e45")),d=r(n("4f40")),h=r(n("d2b3")),p=r(n("27c3")),v=r(n("1b30")),g=r(n("aee8")),y=r(n("bd69"));var b={http:new i.default,updateCustomBar:a.default,color:s.default,message:u.default,uuid:c.default,array:f.default,test:l.default,$parent:d.default,string:h.default,number:p.default,deepClone:v.default,zIndex:g.default,colorInfo:y.default};e.$tn=b;var m={install:function(e){e.mixin(o.default),e.prototype.$tn=b}};t.default=m}).call(this,n("543d")["default"])},febd:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("4bea"));t.default=function(e){return(0,o.default)(e)}}}]);