"use weex:vue";

if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
  Promise.prototype.finally = function(callback) {
    const promise = this.constructor
    return this.then(
      value => promise.resolve(callback()).then(() => value),
      reason => promise.resolve(callback()).then(() => {
        throw reason
      })
    )
  }
};

if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
  const global = uni.requireGlobal()
  ArrayBuffer = global.ArrayBuffer
  Int8Array = global.Int8Array
  Uint8Array = global.Uint8Array
  Uint8ClampedArray = global.Uint8ClampedArray
  Int16Array = global.Int16Array
  Uint16Array = global.Uint16Array
  Int32Array = global.Int32Array
  Uint32Array = global.Uint32Array
  Float32Array = global.Float32Array
  Float64Array = global.Float64Array
  BigInt64Array = global.BigInt64Array
  BigUint64Array = global.BigUint64Array
};


(()=>{var si=Object.create;var Qe=Object.defineProperty,oi=Object.defineProperties,ai=Object.getOwnPropertyDescriptor,ri=Object.getOwnPropertyDescriptors,ci=Object.getOwnPropertyNames,Nt=Object.getOwnPropertySymbols,li=Object.getPrototypeOf,Ut=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable;var Ft=(n,e,t)=>e in n?Qe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,R=(n,e)=>{for(var t in e||(e={}))Ut.call(e,t)&&Ft(n,t,e[t]);if(Nt)for(var t of Nt(e))ui.call(e,t)&&Ft(n,t,e[t]);return n},q=(n,e)=>oi(n,ri(e));var di=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var hi=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ci(e))!Ut.call(n,s)&&s!==t&&Qe(n,s,{get:()=>e[s],enumerable:!(i=ai(e,s))||i.enumerable});return n};var re=(n,e,t)=>(t=n!=null?si(li(n)):{},hi(e||!n||!n.__esModule?Qe(t,"default",{value:n,enumerable:!0}):t,n));var P=(n,e,t)=>new Promise((i,s)=>{var o=l=>{try{r(t.next(l))}catch(c){s(c)}},a=l=>{try{r(t.throw(l))}catch(c){s(c)}},r=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);r((t=t.apply(n,e)).next())});var te=di((Io,Mt)=>{Mt.exports=Vue});var E=re(te());var G=(n,e)=>{let t=n.__vccOpts||n;for(let[i,s]of e)t[i]=s;return t};var pi={"uni-card":{"":{marginTop:10,marginRight:10,marginBottom:10,marginLeft:10,paddingTop:0,paddingRight:8,paddingBottom:0,paddingLeft:8,borderRadius:4,overflow:"hidden",fontFamily:"Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif",backgroundColor:"#ffffff",flex:1}},"uni-card__cover":{".uni-card ":{position:"relative",marginTop:10,flexDirection:"row",overflow:"hidden",borderRadius:4}},"uni-card__cover-image":{".uni-card .uni-card__cover ":{flex:1}},"uni-card__header":{".uni-card ":{display:"flex",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#EBEEF5",flexDirection:"row",alignItems:"center",paddingTop:10,paddingRight:10,paddingBottom:10,paddingLeft:10,overflow:"hidden"}},"uni-card__header-box":{".uni-card .uni-card__header ":{flex:1,flexDirection:"row",alignItems:"center",overflow:"hidden"}},"uni-card__header-avatar":{".uni-card .uni-card__header ":{width:40,height:40,overflow:"hidden",borderRadius:5,marginRight:10}},"uni-card__header-avatar-image":{".uni-card .uni-card__header .uni-card__header-avatar ":{flex:1,width:40,height:40}},"uni-card__header-content":{".uni-card .uni-card__header ":{flexDirection:"column",justifyContent:"center",flex:1,overflow:"hidden"}},"uni-card__header-content-title":{".uni-card .uni-card__header .uni-card__header-content ":{fontSize:15,color:"#3a3a3a"}},"uni-card__header-content-subtitle":{".uni-card .uni-card__header .uni-card__header-content ":{fontSize:12,marginTop:5,color:"#909399"}},"uni-card__header-extra":{".uni-card .uni-card__header ":{lineHeight:12}},"uni-card__header-extra-text":{".uni-card .uni-card__header .uni-card__header-extra ":{fontSize:12,color:"#909399"}},"uni-card__content":{".uni-card ":{paddingTop:10,paddingRight:10,paddingBottom:10,paddingLeft:10,fontSize:14,color:"#6a6a6a",lineHeight:22}},"uni-card__actions":{".uni-card ":{fontSize:12}},"uni-card--border":{"":{borderWidth:1,borderStyle:"solid",borderColor:"#EBEEF5"}},"uni-card--shadow":{"":{position:"relative"}},"uni-card--full":{"":{marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,borderLeftWidth:0,borderRadius:0}},"uni-ellipsis":{"":{lines:1}}},gi={name:"UniCard",emits:["click"],props:{title:{type:String,default:""},subTitle:{type:String,default:""},padding:{type:String,default:"10px"},margin:{type:String,default:"15px"},spacing:{type:String,default:"0 10px"},extra:{type:String,default:""},cover:{type:String,default:""},thumbnail:{type:String,default:""},isFull:{type:Boolean,default:!1},isShadow:{type:Boolean,default:!0},shadow:{type:String,default:"0px 0px 3px 1px rgba(0, 0, 0, 0.08)"},border:{type:Boolean,default:!0}},methods:{onClick(n){this.$emit("click",n)}}};function fi(n,e,t,i,s,o){return(0,E.openBlock)(),(0,E.createElementBlock)("view",{class:(0,E.normalizeClass)(["uni-card",{"uni-card--full":t.isFull,"uni-card--shadow":t.isShadow,"uni-card--border":t.border}]),style:(0,E.normalizeStyle)({margin:t.isFull?0:t.margin,padding:t.spacing,"box-shadow":t.isShadow?t.shadow:""}),renderWhole:!0},[(0,E.renderSlot)(n.$slots,"cover",{},()=>[t.cover?((0,E.openBlock)(),(0,E.createElementBlock)("view",{key:0,class:"uni-card__cover"},[(0,E.createElementVNode)("u-image",{class:"uni-card__cover-image",mode:"widthFix",onClick:e[0]||(e[0]=a=>o.onClick("cover")),src:t.cover},null,8,["src"])])):(0,E.createCommentVNode)("",!0)]),(0,E.renderSlot)(n.$slots,"title",{},()=>[t.title||t.extra?((0,E.openBlock)(),(0,E.createElementBlock)("view",{key:0,class:"uni-card__header"},[(0,E.createElementVNode)("view",{class:"uni-card__header-box",onClick:e[1]||(e[1]=a=>o.onClick("title"))},[t.thumbnail?((0,E.openBlock)(),(0,E.createElementBlock)("view",{key:0,class:"uni-card__header-avatar"},[(0,E.createElementVNode)("u-image",{class:"uni-card__header-avatar-image",src:t.thumbnail,mode:"aspectFit"},null,8,["src"])])):(0,E.createCommentVNode)("",!0),(0,E.createElementVNode)("view",{class:"uni-card__header-content"},[(0,E.createElementVNode)("u-text",{class:"uni-card__header-content-title uni-ellipsis"},(0,E.toDisplayString)(t.title),1),t.title&&t.subTitle?((0,E.openBlock)(),(0,E.createElementBlock)("u-text",{key:0,class:"uni-card__header-content-subtitle uni-ellipsis"},(0,E.toDisplayString)(t.subTitle),1)):(0,E.createCommentVNode)("",!0)])]),(0,E.createElementVNode)("view",{class:"uni-card__header-extra",onClick:e[2]||(e[2]=a=>o.onClick("extra"))},[(0,E.createElementVNode)("u-text",{class:"uni-card__header-extra-text"},(0,E.toDisplayString)(t.extra),1)])])):(0,E.createCommentVNode)("",!0)]),(0,E.createElementVNode)("view",{class:"uni-card__content",style:(0,E.normalizeStyle)({padding:t.padding}),onClick:e[3]||(e[3]=a=>o.onClick("content"))},[(0,E.renderSlot)(n.$slots,"default")],4),(0,E.createElementVNode)("view",{class:"uni-card__actions",onClick:e[4]||(e[4]=a=>o.onClick("actions"))},[(0,E.renderSlot)(n.$slots,"actions")])],6)}var jt=G(gi,[["render",fi],["styles",[pi]]]);var L=re(te());var Lo=re(te());function he(n,e){return typeof n=="string"?e:n}var Bo=re(te());var mi={path:"windows/left-window.vue",style:{width:"350px"}},yi={path:"windows/top-window.vue",style:{height:"60px"}},vi=[{path:"pages/tabBar/component/component",style:{navigationBarTitleText:"\u5185\u7F6E\u7EC4\u4EF6","app-plus":{bounce:"vertical",titleNView:{buttons:[{text:"\uE534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/tabBar/API/API",style:{navigationBarTitleText:"\u63A5\u53E3","app-plus":{titleNView:{buttons:[{text:"\uE534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/tabBar/template/template",style:{navigationBarTitleText:"\u6A21\u7248","app-plus":{titleNView:{buttons:[{text:"\uE534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/tabBar/extUI/extUI",style:{navigationBarTitleText:"\u6269\u5C55\u7EC4\u4EF6","app-plus":{titleNView:{buttons:[{text:"\uE534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/component/view/view",style:{navigationBarTitleText:"view"}},{path:"pages/component/scroll-view/scroll-view",style:{navigationBarTitleText:"scroll-view"}},{path:"pages/component/swiper/swiper",style:{navigationBarTitleText:"swiper"}},{path:"pages/component/cover-view/cover-view",style:{navigationBarTitleText:"cover-view"}},{path:"pages/component/movable-view/movable-view",style:{navigationBarTitleText:"movable-view"}},{path:"pages/component/text/text",style:{navigationBarTitleText:"text"}},{path:"pages/component/rich-text/rich-text",style:{navigationBarTitleText:"rich-text"}},{path:"pages/component/progress/progress",style:{navigationBarTitleText:"progress"}},{path:"pages/component/button/button",style:{navigationBarTitleText:"button"}},{path:"pages/component/checkbox/checkbox",style:{navigationBarTitleText:"checkbox"}},{path:"pages/component/form/form",style:{navigationBarTitleText:"form"}},{path:"pages/component/input/input",style:{navigationBarTitleText:"input","app-plus":{softinputNavBar:"none"}}},{path:"pages/component/label/label",style:{navigationBarTitleText:"label"}},{path:"pages/component/picker/picker",style:{navigationBarTitleText:"picker"}},{path:"pages/component/picker-view/picker-view",style:{navigationBarTitleText:"picker-view"}},{path:"pages/component/radio/radio",style:{navigationBarTitleText:"radio"}},{path:"pages/component/slider/slider",style:{navigationBarTitleText:"slider"}},{path:"pages/component/switch/switch",style:{navigationBarTitleText:"switch"}},{path:"pages/component/textarea/textarea",style:{navigationBarTitleText:"textarea"}},{path:"pages/component/editor/editor",style:{navigationBarTitleText:"editor","app-plus":{softinputMode:"adjustResize"}}},{path:"pages/component/navigator/navigator",style:{navigationBarTitleText:"navigator"}},{path:"pages/component/navigator/navigate/navigate",style:{navigationBarTitleText:"navigatePage"}},{path:"pages/component/navigator/redirect/redirect",style:{navigationBarTitleText:"redirectPage"}},{path:"pages/component/image/image",style:{navigationBarTitleText:"image"}},{path:"pages/component/video/video",style:{navigationBarTitleText:"video"}},{path:"pages/component/map/map",style:{navigationBarTitleText:"map"}},{path:"pages/component/canvas/canvas",style:{navigationBarTitleText:"canvas"}},{path:"pages/component/web-view/web-view",style:{navigationBarTitleText:"web-view"}},{path:"pages/component/ad/ad",style:{navigationBarTitleText:"AD"}},{path:"pages/component/web-view-local/web-view-local",style:{}},{path:"platforms/app-plus/speech/speech",style:{navigationBarTitleText:"\u8BED\u97F3\u8BC6\u522B"}},{path:"platforms/app-plus/orientation/orientation",style:{navigationBarTitleText:"\u65B9\u5411\u4F20\u611F\u5668"}},{path:"platforms/app-plus/proximity/proximity",style:{navigationBarTitleText:"\u8DDD\u79BB\u4F20\u611F\u5668"}},{path:"platforms/app-plus/push/push",style:{navigationBarTitleText:"\u63A8\u9001"}},{path:"platforms/app-plus/shake/shake",style:{navigationBarTitleText:"\u6447\u4E00\u6447"}},{path:"pages/about/about",style:{navigationBarTitleText:"\u5173\u4E8E"}},{path:"platforms/app-plus/feedback/feedback",style:{navigationBarTitleText:"\u95EE\u9898\u53CD\u9988"}},{path:"uni_modules/uni-upgrade-center-app/pages/upgrade-popup",style:{"app-plus":{animationDuration:200,animationType:"fade-in",background:"transparent",backgroundColorTop:"transparent",popGesture:"none",scrollIndicator:!1,titleNView:!1},disableScroll:!0}}],_i=[{root:"pages/API",pages:[{path:"login/login",style:{navigationBarTitleText:"\u6388\u6743\u767B\u5F55"}},{path:"subnvue/subnvue",style:{navigationBarTitleText:"\u539F\u751F\u5B50\u7A97\u4F53","app-plus":{subNVues:[{id:"drawer",path:"subnvue/subnvue/drawer",type:"popup",style:{width:"50%"}},{id:"popup",path:"subnvue/subnvue/popup",type:"popup",style:{margin:"auto",width:"80%",height:"600rpx"}},{id:"video_mask",path:"subnvue/subnvue/video-mask",style:{position:"absolute",bottom:"30px",left:"0",width:"230px",height:"110px",background:"transparent"}}]}}},{path:"get-user-info/get-user-info",style:{navigationBarTitleText:"\u83B7\u53D6\u7528\u6237\u4FE1\u606F"}},{path:"request-payment/request-payment",style:{navigationBarTitleText:"\u53D1\u8D77\u652F\u4ED8"}},{path:"share/share",style:{navigationBarTitleText:"\u5206\u4EAB"}},{path:"set-navigation-bar-title/set-navigation-bar-title",style:{navigationBarTitleText:"\u8BBE\u7F6E\u754C\u9762\u6807\u9898"}},{path:"show-loading/show-loading",style:{navigationBarTitleText:"\u52A0\u8F7D\u63D0\u793A\u6846"}},{path:"navigator/navigator",style:{navigationBarTitleText:"\u9875\u9762\u8DF3\u8F6C"}},{path:"navigator/new-page/new-vue-page-1",style:{navigationBarTitleText:"\u65B0VUE\u9875\u97621"}},{path:"navigator/new-page/new-vue-page-2",style:{navigationBarTitleText:"\u65B0VUE\u9875\u97622"}},{path:"pull-down-refresh/pull-down-refresh",style:{navigationBarTitleText:"\u4E0B\u62C9\u5237\u65B0",enablePullDownRefresh:!0}},{path:"animation/animation",style:{navigationBarTitleText:"\u521B\u5EFA\u52A8\u753B"}},{path:"get-node-info/get-node-info",style:{navigationBarTitleText:"\u8282\u70B9\u4FE1\u606F"}},{path:"intersection-observer/intersection-observer",style:{navigationBarTitleText:"\u8282\u70B9\u5E03\u5C40\u76F8\u4EA4\u72B6\u6001"}},{path:"canvas/canvas",style:{navigationBarTitleText:"\u521B\u5EFA\u7ED8\u753B"}},{path:"action-sheet/action-sheet",style:{navigationBarTitleText:"\u64CD\u4F5C\u83DC\u5355"}},{path:"modal/modal",style:{navigationBarTitleText:"\u6A21\u6001\u5F39\u7A97"}},{path:"toast/toast",style:{navigationBarTitleText:"\u6D88\u606F\u63D0\u793A\u6846"}},{path:"get-network-type/get-network-type",style:{navigationBarTitleText:"\u83B7\u53D6\u8BBE\u5907\u7F51\u7EDC\u72B6\u6001"}},{path:"get-system-info/get-system-info",style:{navigationBarTitleText:"\u83B7\u53D6\u8BBE\u5907\u7CFB\u7EDF\u4FE1\u606F"}},{path:"add-phone-contact/add-phone-contact",style:{navigationBarTitleText:"\u6DFB\u52A0\u624B\u673A\u8054\u7CFB\u4EBA"}},{path:"on-accelerometer-change/on-accelerometer-change",style:{navigationBarTitleText:"\u76D1\u542C\u52A0\u901F\u5EA6\u8BA1\u6570\u636E"}},{path:"on-compass-change/on-compass-change",style:{navigationBarTitleText:"\u76D1\u542C\u7F57\u76D8\u6570\u636E"}},{path:"make-phone-call/make-phone-call",style:{navigationBarTitleText:"\u6253\u7535\u8BDD"}},{path:"scan-code/scan-code",style:{navigationBarTitleText:"\u626B\u7801"}},{path:"clipboard/clipboard",style:{navigationBarTitleText:"\u526A\u8D34\u677F"}},{path:"request/request",style:{navigationBarTitleText:"\u7F51\u7EDC\u8BF7\u6C42"}},{path:"upload-file/upload-file",style:{navigationBarTitleText:"\u4E0A\u4F20\u6587\u4EF6"}},{path:"download-file/download-file",style:{navigationBarTitleText:"\u4E0B\u8F7D\u6587\u4EF6"}},{path:"image/image",style:{navigationBarTitleText:"\u56FE\u7247"}},{path:"voice/voice",style:{navigationBarTitleText:"\u5F55\u97F3"}},{path:"inner-audio/inner-audio",style:{navigationBarTitleText:"\u97F3\u9891"}},{path:"background-audio/background-audio",style:{navigationBarTitleText:"\u80CC\u666F\u97F3\u9891"}},{path:"video/video",style:{navigationBarTitleText:"\u89C6\u9891"}},{path:"file/file",style:{navigationBarTitleText:"\u6587\u4EF6"}},{path:"map/map",style:{navigationBarTitleText:"map"}},{path:"map-search/map-search",style:{navigationBarTitleText:"map search"}},{path:"get-location/get-location",style:{navigationBarTitleText:"\u83B7\u53D6\u4F4D\u7F6E"}},{path:"open-location/open-location",style:{navigationBarTitleText:"\u67E5\u770B\u4F4D\u7F6E"}},{path:"choose-location/choose-location",style:{navigationBarTitleText:"\u4F7F\u7528\u5730\u56FE\u9009\u62E9\u4F4D\u7F6E"}},{path:"storage/storage",style:{navigationBarTitleText:"\u6570\u636E\u5B58\u50A8"}},{path:"sqlite/sqlite",style:{navigationBarTitleText:"SQLite"}},{path:"rewarded-video-ad/rewarded-video-ad",style:{navigationBarTitleText:"\u6FC0\u52B1\u89C6\u9891\u5E7F\u544A"}},{path:"full-screen-video-ad/full-screen-video-ad",style:{navigationBarTitleText:"\u5168\u5C4F\u89C6\u9891\u5E7F\u544A"}},{path:"brightness/brightness",style:{navigationBarTitleText:"\u5C4F\u5E55\u4EAE\u5EA6"}},{path:"save-media/save-media",style:{navigationBarTitleText:"\u4FDD\u5B58\u5A92\u4F53\u5230\u672C\u5730"}},{path:"bluetooth/bluetooth",style:{navigationBarTitleText:"\u84DD\u7259"}},{path:"soter/soter",style:{navigationBarTitleText:"\u751F\u7269\u8BA4\u8BC1"}},{path:"ibeacon/ibeacon",style:{navigationBarTitleText:"iBeacon"}},{path:"vibrate/vibrate",style:{navigationBarTitleText:"\u9707\u52A8"}},{path:"websocket-socketTask/websocket-socketTask",style:{navigationBarTitleText:"websocket-socketTask"}},{path:"websocket-global/websocket-global",style:{navigationBarTitleText:"websocket-global"}}]},{root:"pages/extUI",pages:[{path:"forms/forms",style:{navigationBarTitleText:"Form \u8868\u5355"}},{path:"group/group",style:{navigationBarTitleText:"Group \u5206\u7EC4"}},{path:"badge/badge",style:{navigationBarTitleText:"Badge \u6570\u5B57\u89D2\u6807"}},{path:"breadcrumb/breadcrumb",style:{navigationBarTitleText:"Breadcrumb \u9762\u5305\u5C51"}},{path:"countdown/countdown",style:{navigationBarTitleText:"Countdown \u5012\u8BA1\u65F6"}},{path:"drawer/drawer",style:{navigationBarTitleText:"Drawer \u62BD\u5C49"}},{path:"icons/icons",style:{navigationBarTitleText:"Icons \u56FE\u6807"}},{path:"load-more/load-more",style:{navigationBarTitleText:"LoadMore \u52A0\u8F7D\u66F4\u591A"}},{path:"nav-bar/nav-bar",style:{navigationBarTitleText:"NavBar \u5BFC\u822A\u680F",navigationStyle:"custom",enablePullDownRefresh:!0,"app-plus":{titleNView:!1,bounce:"none",pullToRefresh:{style:"circle",offset:"70px"}}}},{path:"number-box/number-box",style:{navigationBarTitleText:"NumberBox \u6570\u5B57\u8F93\u5165\u6846"}},{path:"popup/popup",style:{navigationBarTitleText:"Popup \u5F39\u51FA\u5C42","app-plus":{softinputMode:"adjustResize"}}},{path:"segmented-control/segmented-control",style:{navigationBarTitleText:"SegmentedControl \u5206\u6BB5\u5668"}},{path:"tag/tag",style:{navigationBarTitleText:"Tag \u6807\u7B7E"}},{path:"list/list",style:{navigationBarTitleText:"List \u5217\u8868"}},{path:"card/card",style:{navigationBarTitleText:"Card \u5361\u7247"}},{path:"collapse/collapse",style:{navigationBarTitleText:"Collapse \u6298\u53E0\u9762\u677F"}},{path:"pagination/pagination",style:{navigationBarTitleText:"Pagination \u5206\u9875\u5668"}},{path:"swiper-dot/swiper-dot",style:{navigationBarTitleText:"SwiperDot \u8F6E\u64AD\u56FE\u6307\u793A\u70B9","mp-baidu":{disableSwipeBack:!0}}},{path:"grid/grid",style:{navigationBarTitleText:"Grid \u5BAB\u683C"}},{path:"rate/rate",style:{navigationBarTitleText:"Rate \u8BC4\u5206"}},{path:"steps/steps",style:{navigationBarTitleText:"Steps \u6B65\u9AA4\u6761"}},{path:"notice-bar/notice-bar",style:{navigationBarTitleText:"NoticeBar \u901A\u544A\u680F"}},{path:"swipe-action/swipe-action",style:{navigationBarTitleText:"SwipeAction \u6ED1\u52A8\u64CD\u4F5C","app-plus":{bounce:"none"}}},{path:"search-bar/search-bar",style:{navigationBarTitleText:"SearchBar \u641C\u7D22\u680F"}},{path:"calendar/calendar",style:{navigationBarTitleText:"Calendar \u65E5\u5386"}},{path:"indexed-list/indexed-list",style:{navigationBarTitleText:"IndexedList \u7D22\u5F15\u5217\u8868","mp-weixin":{disableScroll:!0},"app-plus":{bounce:"none"},"mp-alipay":{allowsBounceVertical:"NO"},"mp-baidu":{disableScroll:!0}}},{path:"fab/fab",style:{navigationBarTitleText:"Fab \u60AC\u6D6E\u6309\u94AE"}},{path:"fav/fav",style:{navigationBarTitleText:"Fav \u6536\u85CF\u6309\u94AE"}},{path:"goods-nav/goods-nav",style:{navigationBarTitleText:"GoodsNav \u5546\u54C1\u5BFC\u822A"}},{path:"section/section",style:{navigationBarTitleText:"Section \u6807\u9898\u680F"}},{path:"transition/transition",style:{navigationBarTitleText:"Transition \u8FC7\u6E21\u52A8\u753B"}},{path:"title/title",style:{navigationBarTitleText:"Title \u7AE0\u8282\u6807\u9898"}},{path:"tooltip/tooltip",style:{navigationBarTitleText:"Tooltip \u6587\u5B57\u63D0\u793A"}},{path:"link/link",style:{navigationBarTitleText:"Link \u94FE\u63A5"}},{path:"combox/combox",style:{navigationBarTitleText:"Combox \u7EC4\u5408\u6846"}},{path:"list/chat",style:{}},{path:"table/table",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"dateformat/dateformat",style:{navigationBarTitleText:"Dateformat \u65E5\u671F\u683C\u5F0F\u5316",enablePullDownRefresh:!1}},{path:"data-checkbox/data-checkbox",style:{navigationBarTitleText:"DataCheckbox \u5355\u9009\u590D\u9009\u6846",enablePullDownRefresh:!1}},{path:"easyinput/easyinput",style:{navigationBarTitleText:"Easyinput \u589E\u5F3A\u8F93\u5165\u6846",enablePullDownRefresh:!1}},{path:"data-picker/data-picker",style:{navigationBarTitleText:"DataPicker \u7EA7\u8054\u9009\u62E9",enablePullDownRefresh:!1}},{path:"data-select/data-select",style:{navigationBarTitleText:"DataSelect \u4E0B\u62C9\u6846",enablePullDownRefresh:!1}},{path:"datetime-picker/datetime-picker",style:{navigationBarTitleText:"DatetimePicker \u65E5\u671F\u65F6\u95F4",enablePullDownRefresh:!1}},{path:"row/row",style:{navigationBarTitleText:"Layout \u5E03\u5C40",enablePullDownRefresh:!1}},{path:"file-picker/file-picker",style:{navigationBarTitleText:"FilePicker \u6587\u4EF6\u9009\u62E9\u4E0A\u4F20",enablePullDownRefresh:!1}},{path:"space/space",style:{navigationBarTitleText:"\u95F4\u8DDD",enablePullDownRefresh:!1}},{path:"font/font",style:{navigationBarTitleText:"\u5B57\u4F53",enablePullDownRefresh:!1}},{path:"color/color",style:{navigationBarTitleText:"\u989C\u8272",enablePullDownRefresh:!1}},{path:"radius/radius",style:{navigationBarTitleText:"\u5706\u89D2",enablePullDownRefresh:!1}},{path:"button/button",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}}]},{root:"pages/template",pages:[{path:"nav-default/nav-default",style:{navigationBarTitleText:"\u9ED8\u8BA4\u5BFC\u822A\u680F"}},{path:"component-communication/component-communication",style:{navigationBarTitleText:"\u7EC4\u4EF6\u901A\u8BAF"}},{path:"nav-transparent/nav-transparent",style:{navigationBarTitleText:"\u900F\u660E\u6E10\u53D8\u5BFC\u822A\u680F",transparentTitle:"auto"}},{path:"nav-button/nav-button",style:{navigationBarTitleText:"\u5BFC\u822A\u680F\u5E26\u81EA\u5B9A\u4E49\u6309\u94AE","app-plus":{titleNView:{buttons:[{type:"share"},{type:"favorite"}]}}}},{path:"nav-image/nav-image",style:{navigationBarBackgroundColor:"#FFFFFF",navigationBarTextStyle:"black",titleImage:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/b3e4cbd0-517d-11eb-a16f-5b3e54966275.png"}},{path:"nav-city-dropdown/nav-city-dropdown",style:{navigationBarTitleText:"\u5BFC\u822A\u680F\u5E26\u57CE\u5E02\u9009\u62E9","app-plus":{titleNView:{buttons:[{text:"\u5317\u4EAC\u5E02",fontSize:"14",select:!0,width:"auto"}]}}}},{path:"nav-dot/nav-dot",style:{navigationBarTitleText:"\u5BFC\u822A\u680F\u5E26\u7EA2\u70B9\u548C\u89D2\u6807","app-plus":{titleNView:{buttons:[{text:"\u6D88\u606F",fontSize:"14",redDot:!0},{text:"\u5173\u6CE8",fontSize:"14",badgeText:"12"}]}}}},{path:"nav-search-input/nav-search-input",style:{navigationBarTitleText:"\u5BFC\u822A\u680F\u5E26\u641C\u7D22\u6846","app-plus":{titleNView:{type:"transparent",titleColor:"#fff",backgroundColor:"#007AFF",buttons:[{fontSrc:"/static/uni.ttf",text:"\uE537",width:"40px",fontSize:"28px",color:"#fff",background:"rgba(0,0,0,0)"}],searchInput:{backgroundColor:"#fff",borderRadius:"6px",placeholder:"\u8BF7\u8F93\u5165\u5730\u5740 \u5982\uFF1A\u5927\u949F\u5BFA",disabled:!0}}}}},{path:"nav-search-input/detail/detail",style:{navigationBarTitleText:"\u641C\u7D22","app-plus":{titleNView:{titleColor:"#fff",backgroundColor:"#007AFF",buttons:[{fontSrc:"/static/uni.ttf",text:"\uE537",width:"auto",fontSize:"28px",color:"#fff"}],searchInput:{backgroundColor:"#fff",borderRadius:"6px",placeholder:"\u8BF7\u8F93\u5165\u5730\u5740 \u5982\uFF1A\u5927\u949F\u5BFA",autoFocus:!0}}}}},{path:"list2detail-list/list2detail-list",style:{navigationBarTitleText:"\u5217\u8868\u5230\u8BE6\u60C5\u793A\u4F8B",enablePullDownRefresh:!0}},{path:"list2detail-detail/list2detail-detail",style:{navigationBarTitleText:"\u8BE6\u60C5","app-plus":{titleNView:{type:"transparent",buttons:[{type:"share"}]}},h5:{titleNView:{type:"transparent",buttons:[]}}}},{path:"tabbar/tabbar",style:{navigationBarTitleText:"\u53EF\u62D6\u52A8\u9876\u90E8\u9009\u9879\u5361"}},{path:"tabbar/detail/detail",style:{navigationBarTitleText:"\u8BE6\u60C5\u9875\u9762"}},{path:"swiper-vertical/swiper-vertical",style:{navigationBarTitleText:"\u4E0A\u4E0B\u6ED1\u52A8\u5207\u6362\u89C6\u9891","app-plus":{titleNView:!1}}},{path:"swiper-list/swiper-list",style:{navigationBarTitleText:"swiper-list"}},{path:"swiper-list-nvue/swiper-list-nvue",style:{navigationBarTitleText:"swiper-list"}},{path:"scheme/scheme",style:{navigationBarTitleText:"\u6253\u5F00\u5916\u90E8\u5E94\u7528"}},{path:"global/global",style:{navigationBarTitleText:"GlobalData\u548Cvuex"}}]}],bi={pageOrientation:"portrait",navigationBarTitleText:"Hello uniapp",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#007AFF",backgroundColor:"#F8F8F8",backgroundColorTop:"#F4F5F6",backgroundColorBottom:"#F4F5F6","mp-360":{navigationStyle:"custom"},h5:{maxWidth:1190,navigationBarTextStyle:"black",navigationBarBackgroundColor:"#F1F1F1"}},wi={color:"#7A7E83",selectedColor:"#007AFF",borderStyle:"black",backgroundColor:"#F8F8F8",list:[{pagePath:"pages/tabBar/component/component",iconPath:"static/component.png",selectedIconPath:"static/componentHL.png",text:"\u5185\u7F6E\u7EC4\u4EF6"},{pagePath:"pages/tabBar/API/API",iconPath:"static/api.png",selectedIconPath:"static/apiHL.png",text:"\u63A5\u53E3"},{pagePath:"pages/tabBar/extUI/extUI",iconPath:"static/extui.png",selectedIconPath:"static/extuiHL.png",text:"\u6269\u5C55\u7EC4\u4EF6"},{pagePath:"pages/tabBar/template/template",iconPath:"static/template.png",selectedIconPath:"static/templateHL.png",text:"\u6A21\u677F"}]},fn={leftWindow:mi,topWindow:yi,pages:vi,subPackages:_i,globalStyle:bi,tabBar:wi},Ti=[];function xi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Z(n,e,t){return n(t={path:e,exports:{},require:function(i,s){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(s==null&&t.path)}},t.exports),t.exports}var ki=Z(function(n,e){var t;n.exports=(t=t||function(i,s){var o=Object.create||function(){function u(){}return function(f){var y;return u.prototype=f,y=new u,u.prototype=null,y}}(),a={},r=a.lib={},l=r.Base={extend:function(u){var f=o(this);return u&&f.mixIn(u),f.hasOwnProperty("init")&&this.init!==f.init||(f.init=function(){f.$super.init.apply(this,arguments)}),f.init.prototype=f,f.$super=this,f},create:function(){var u=this.extend();return u.init.apply(u,arguments),u},init:function(){},mixIn:function(u){for(var f in u)u.hasOwnProperty(f)&&(this[f]=u[f]);u.hasOwnProperty("toString")&&(this.toString=u.toString)},clone:function(){return this.init.prototype.extend(this)}},c=r.WordArray=l.extend({init:function(u,f){u=this.words=u||[],this.sigBytes=f!=s?f:4*u.length},toString:function(u){return(u||d).stringify(this)},concat:function(u){var f=this.words,y=u.words,v=this.sigBytes,w=u.sigBytes;if(this.clamp(),v%4)for(var I=0;I<w;I++){var C=y[I>>>2]>>>24-I%4*8&255;f[v+I>>>2]|=C<<24-(v+I)%4*8}else for(I=0;I<w;I+=4)f[v+I>>>2]=y[I>>>2];return this.sigBytes+=w,this},clamp:function(){var u=this.words,f=this.sigBytes;u[f>>>2]&=4294967295<<32-f%4*8,u.length=i.ceil(f/4)},clone:function(){var u=l.clone.call(this);return u.words=this.words.slice(0),u},random:function(u){for(var f,y=[],v=function(C){C=C;var B=987654321,D=4294967295;return function(){var U=((B=36969*(65535&B)+(B>>16)&D)<<16)+(C=18e3*(65535&C)+(C>>16)&D)&D;return U/=4294967296,(U+=.5)*(i.random()>.5?1:-1)}},w=0;w<u;w+=4){var I=v(4294967296*(f||i.random()));f=987654071*I(),y.push(4294967296*I()|0)}return new c.init(y,u)}}),g=a.enc={},d=g.Hex={stringify:function(u){for(var f=u.words,y=u.sigBytes,v=[],w=0;w<y;w++){var I=f[w>>>2]>>>24-w%4*8&255;v.push((I>>>4).toString(16)),v.push((15&I).toString(16))}return v.join("")},parse:function(u){for(var f=u.length,y=[],v=0;v<f;v+=2)y[v>>>3]|=parseInt(u.substr(v,2),16)<<24-v%8*4;return new c.init(y,f/2)}},p=g.Latin1={stringify:function(u){for(var f=u.words,y=u.sigBytes,v=[],w=0;w<y;w++){var I=f[w>>>2]>>>24-w%4*8&255;v.push(String.fromCharCode(I))}return v.join("")},parse:function(u){for(var f=u.length,y=[],v=0;v<f;v++)y[v>>>2]|=(255&u.charCodeAt(v))<<24-v%4*8;return new c.init(y,f)}},m=g.Utf8={stringify:function(u){try{return decodeURIComponent(escape(p.stringify(u)))}catch(f){throw new Error("Malformed UTF-8 data")}},parse:function(u){return p.parse(unescape(encodeURIComponent(u)))}},_=r.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(u){typeof u=="string"&&(u=m.parse(u)),this._data.concat(u),this._nDataBytes+=u.sigBytes},_process:function(u){var f=this._data,y=f.words,v=f.sigBytes,w=this.blockSize,I=v/(4*w),C=(I=u?i.ceil(I):i.max((0|I)-this._minBufferSize,0))*w,B=i.min(4*C,v);if(C){for(var D=0;D<C;D+=w)this._doProcessBlock(y,D);var U=y.splice(0,C);f.sigBytes-=B}return new c.init(U,B)},clone:function(){var u=l.clone.call(this);return u._data=this._data.clone(),u},_minBufferSize:0});r.Hasher=_.extend({cfg:l.extend(),init:function(u){this.cfg=this.cfg.extend(u),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(u){return this._append(u),this._process(),this},finalize:function(u){return u&&this._append(u),this._doFinalize()},blockSize:16,_createHelper:function(u){return function(f,y){return new u.init(y).finalize(f)}},_createHmacHelper:function(u){return function(f,y){return new h.HMAC.init(u,y).finalize(f)}}});var h=a.algo={};return a}(Math),t)}),ie=ki,Si=(Z(function(n,e){var t;n.exports=(t=ie,function(i){var s=t,o=s.lib,a=o.WordArray,r=o.Hasher,l=s.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=4294967296*i.abs(i.sin(h+1))|0})();var g=l.MD5=r.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,u){for(var f=0;f<16;f++){var y=u+f,v=h[y];h[y]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}var w=this._hash.words,I=h[u+0],C=h[u+1],B=h[u+2],D=h[u+3],U=h[u+4],$=h[u+5],H=h[u+6],oe=h[u+7],ee=h[u+8],de=h[u+9],ae=h[u+10],Ee=h[u+11],Be=h[u+12],De=h[u+13],Re=h[u+14],Oe=h[u+15],T=w[0],S=w[1],x=w[2],k=w[3];T=d(T,S,x,k,I,7,c[0]),k=d(k,T,S,x,C,12,c[1]),x=d(x,k,T,S,B,17,c[2]),S=d(S,x,k,T,D,22,c[3]),T=d(T,S,x,k,U,7,c[4]),k=d(k,T,S,x,$,12,c[5]),x=d(x,k,T,S,H,17,c[6]),S=d(S,x,k,T,oe,22,c[7]),T=d(T,S,x,k,ee,7,c[8]),k=d(k,T,S,x,de,12,c[9]),x=d(x,k,T,S,ae,17,c[10]),S=d(S,x,k,T,Ee,22,c[11]),T=d(T,S,x,k,Be,7,c[12]),k=d(k,T,S,x,De,12,c[13]),x=d(x,k,T,S,Re,17,c[14]),T=p(T,S=d(S,x,k,T,Oe,22,c[15]),x,k,C,5,c[16]),k=p(k,T,S,x,H,9,c[17]),x=p(x,k,T,S,Ee,14,c[18]),S=p(S,x,k,T,I,20,c[19]),T=p(T,S,x,k,$,5,c[20]),k=p(k,T,S,x,ae,9,c[21]),x=p(x,k,T,S,Oe,14,c[22]),S=p(S,x,k,T,U,20,c[23]),T=p(T,S,x,k,de,5,c[24]),k=p(k,T,S,x,Re,9,c[25]),x=p(x,k,T,S,D,14,c[26]),S=p(S,x,k,T,ee,20,c[27]),T=p(T,S,x,k,De,5,c[28]),k=p(k,T,S,x,B,9,c[29]),x=p(x,k,T,S,oe,14,c[30]),T=m(T,S=p(S,x,k,T,Be,20,c[31]),x,k,$,4,c[32]),k=m(k,T,S,x,ee,11,c[33]),x=m(x,k,T,S,Ee,16,c[34]),S=m(S,x,k,T,Re,23,c[35]),T=m(T,S,x,k,C,4,c[36]),k=m(k,T,S,x,U,11,c[37]),x=m(x,k,T,S,oe,16,c[38]),S=m(S,x,k,T,ae,23,c[39]),T=m(T,S,x,k,De,4,c[40]),k=m(k,T,S,x,I,11,c[41]),x=m(x,k,T,S,D,16,c[42]),S=m(S,x,k,T,H,23,c[43]),T=m(T,S,x,k,de,4,c[44]),k=m(k,T,S,x,Be,11,c[45]),x=m(x,k,T,S,Oe,16,c[46]),T=_(T,S=m(S,x,k,T,B,23,c[47]),x,k,I,6,c[48]),k=_(k,T,S,x,oe,10,c[49]),x=_(x,k,T,S,Re,15,c[50]),S=_(S,x,k,T,$,21,c[51]),T=_(T,S,x,k,Be,6,c[52]),k=_(k,T,S,x,D,10,c[53]),x=_(x,k,T,S,ae,15,c[54]),S=_(S,x,k,T,C,21,c[55]),T=_(T,S,x,k,ee,6,c[56]),k=_(k,T,S,x,Oe,10,c[57]),x=_(x,k,T,S,H,15,c[58]),S=_(S,x,k,T,De,21,c[59]),T=_(T,S,x,k,U,6,c[60]),k=_(k,T,S,x,Ee,10,c[61]),x=_(x,k,T,S,B,15,c[62]),S=_(S,x,k,T,de,21,c[63]),w[0]=w[0]+T|0,w[1]=w[1]+S|0,w[2]=w[2]+x|0,w[3]=w[3]+k|0},_doFinalize:function(){var h=this._data,u=h.words,f=8*this._nDataBytes,y=8*h.sigBytes;u[y>>>5]|=128<<24-y%32;var v=i.floor(f/4294967296),w=f;u[15+(y+64>>>9<<4)]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),u[14+(y+64>>>9<<4)]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8),h.sigBytes=4*(u.length+1),this._process();for(var I=this._hash,C=I.words,B=0;B<4;B++){var D=C[B];C[B]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8)}return I},clone:function(){var h=r.clone.call(this);return h._hash=this._hash.clone(),h}});function d(h,u,f,y,v,w,I){var C=h+(u&f|~u&y)+v+I;return(C<<w|C>>>32-w)+u}function p(h,u,f,y,v,w,I){var C=h+(u&y|f&~y)+v+I;return(C<<w|C>>>32-w)+u}function m(h,u,f,y,v,w,I){var C=h+(u^f^y)+v+I;return(C<<w|C>>>32-w)+u}function _(h,u,f,y,v,w,I){var C=h+(f^(u|~y))+v+I;return(C<<w|C>>>32-w)+u}s.MD5=r._createHelper(g),s.HmacMD5=r._createHmacHelper(g)}(Math),t.MD5)}),Z(function(n,e){var t;n.exports=(t=ie,void function(){var i=t,s=i.lib.Base,o=i.enc.Utf8;i.algo.HMAC=s.extend({init:function(a,r){a=this._hasher=new a.init,typeof r=="string"&&(r=o.parse(r));var l=a.blockSize,c=4*l;r.sigBytes>c&&(r=a.finalize(r)),r.clamp();for(var g=this._oKey=r.clone(),d=this._iKey=r.clone(),p=g.words,m=d.words,_=0;_<l;_++)p[_]^=1549556828,m[_]^=909522486;g.sigBytes=d.sigBytes=c,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var r=this._hasher,l=r.finalize(a);return r.reset(),r.finalize(this._oKey.clone().concat(l))}})}())}),Z(function(n,e){n.exports=ie.HmacMD5})),Ii=Z(function(n,e){n.exports=ie.enc.Utf8}),Ai=Z(function(n,e){var t;n.exports=(t=ie,function(){var i=t,s=i.lib.WordArray;function o(a,r,l){for(var c=[],g=0,d=0;d<r;d++)if(d%4){var p=l[a.charCodeAt(d-1)]<<d%4*2,m=l[a.charCodeAt(d)]>>>6-d%4*2;c[g>>>2]|=(p|m)<<24-g%4*8,g++}return s.create(c,g)}i.enc.Base64={stringify:function(a){var r=a.words,l=a.sigBytes,c=this._map;a.clamp();for(var g=[],d=0;d<l;d+=3)for(var p=(r[d>>>2]>>>24-d%4*8&255)<<16|(r[d+1>>>2]>>>24-(d+1)%4*8&255)<<8|r[d+2>>>2]>>>24-(d+2)%4*8&255,m=0;m<4&&d+.75*m<l;m++)g.push(c.charAt(p>>>6*(3-m)&63));var _=c.charAt(64);if(_)for(;g.length%4;)g.push(_);return g.join("")},parse:function(a){var r=a.length,l=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var g=0;g<l.length;g++)c[l.charCodeAt(g)]=g}var d=l.charAt(64);if(d){var p=a.indexOf(d);p!==-1&&(r=p)}return o(a,r,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}),qt="FUNCTION",Ci="OBJECT",Pi="CLIENT_DB",Vt="pending",Li="fulfilled",zt="rejected";function ke(n){return Object.prototype.toString.call(n).slice(8,-1).toLowerCase()}function mn(n){return ke(n)==="object"}function yn(n){return typeof n=="function"}function Ei(n){return function(){try{return n.apply(n,arguments)}catch(e){console.error(e)}}}var Jt="REJECTED",vn="NOT_PENDING",je=class{constructor({createPromise:e,retryRule:t=Jt}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Jt:return this.status===zt;case vn:return this.status!==Vt}}exec(){return this.needRetry?(this.status=Vt,this.promise=this.createPromise().then(e=>(this.status=Li,Promise.resolve(e)),e=>(this.status=zt,Promise.reject(e))),this.promise):this.promise}};function It(n){return n&&typeof n=="string"?JSON.parse(n):n}var Bi=!1,Di="app",Ri=It(Ti),At=Di;It("");var Oi=It("[]")||[],Ni="";try{Ni="__UNI__F743940"}catch(n){}var Ze,Me={};function ge(n,e={}){var t,i;return t=Me,i=n,Object.prototype.hasOwnProperty.call(t,i)||(Me[n]=e),Me[n]}function Fi(){return Ze||(Ze=function(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;function n(){return this}return n()!==void 0?n():new Function("return this")()}(),Ze)}Me=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};var _n=["invoke","success","fail","complete"],Y=ge("_globalUniCloudInterceptor");function bn(n,e){Y[n]||(Y[n]={}),mn(e)&&Object.keys(e).forEach(t=>{_n.indexOf(t)>-1&&function(i,s,o){let a=Y[i][s];a||(a=Y[i][s]=[]),a.indexOf(o)===-1&&yn(o)&&a.push(o)}(n,t,e[t])})}function Ui(n,e){Y[n]||(Y[n]={}),mn(e)?Object.keys(e).forEach(t=>{_n.indexOf(t)>-1&&function(i,s,o){let a=Y[i][s];if(!a)return;let r=a.indexOf(o);r>-1&&a.splice(r,1)}(n,t,e[t])}):delete Y[n]}function V(n,e){return n&&n.length!==0?n.reduce((t,i)=>t.then(()=>i(e)),Promise.resolve()):Promise.resolve()}function z(n,e){return Y[n]&&Y[n][e]||[]}function Mi(n){bn("callObject",n)}var Xe=ge("_globalUniCloudListener"),Q="response",fe="needLogin",qe="refreshToken",Ht="clientdb",Ne="cloudfunction",Wt="cloudobject";function Pe(n){return Xe[n]||(Xe[n]=[]),Xe[n]}function $e(n,e){let t=Pe(n);t.includes(e)||t.push(e)}function et(n,e){let t=Pe(n),i=t.indexOf(e);i!==-1&&t.splice(i,1)}function K(n,e){let t=Pe(n);for(let i=0;i<t.length;i++)(0,t[i])(e)}var tt,nt=!1;function wn(){return tt||(tt=new Promise(n=>{nt&&n(),function e(){if(typeof getCurrentPages=="function"){let t=getCurrentPages();t&&t[0]&&(nt=!0,n())}nt||setTimeout(()=>{e()},30)}()}),tt)}function Tn(n){let e={};for(let t in n){let i=n[t];yn(i)&&(e[t]=Ei(i))}return e}var A=class extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=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}}},F={request:n=>uni.request(n),uploadFile:n=>uni.uploadFile(n),setStorageSync:(n,e)=>uni.setStorageSync(n,e),getStorageSync:n=>uni.getStorageSync(n),removeStorageSync:n=>uni.removeStorageSync(n),clearStorageSync:()=>uni.clearStorageSync(),connectSocket:n=>uni.connectSocket(n)};function xn(n){return n&&xn(n.__v_raw)||n}function Se(){return{token:F.getStorageSync("uni_id_token")||F.getStorageSync("uniIdToken"),tokenExpired:F.getStorageSync("uni_id_token_expired")}}function kn({token:n,tokenExpired:e}={}){n&&F.setStorageSync("uni_id_token",n),e&&F.setStorageSync("uni_id_token_expired",e)}var it,Fe;function Sn(){return it||(it=uni.getSystemInfoSync()),it}function ji(){let n,e;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;let{scene:t,channel:i}=uni.getLaunchOptionsSync();n=i,e=t}}catch(t){}return{channel:n,scene:e}}var ct={};function lt(){let n=uni.getLocale&&uni.getLocale()||"en";if(Fe)return q(R(R({},ct),Fe),{locale:n,LOCALE:n});let e=Sn(),{deviceId:t,osName:i,uniPlatform:s,appId:o}=e,a=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(let r in e)Object.hasOwnProperty.call(e,r)&&a.indexOf(r)===-1&&delete e[r];return Fe=R(R({PLATFORM:s,OS:i,APPID:o,DEVICEID:t},ji()),e),q(R(R({},ct),Fe),{locale:n,LOCALE:n})}var pe={sign:function(n,e){let t="";return Object.keys(n).sort().forEach(function(i){n[i]&&(t=t+"&"+i+"="+n[i])}),t=t.slice(1),Si(t,e).toString()},wrappedRequest:function(n,e){return new Promise((t,i)=>{e(Object.assign(n,{complete(s){s||(s={});let o=s.data&&s.data.header&&s.data.header["x-serverless-request-id"]||s.header&&s.header["request-id"];if(!s.statusCode||s.statusCode>=400){let r=s.data&&s.data.error&&s.data.error.code||"SYS_ERR",l=s.data&&s.data.error&&s.data.error.message||s.errMsg||"request:fail";return i(new A({code:r,message:l,requestId:o}))}let a=s.data;if(a.error)return i(new A({code:a.error.code,message:a.error.message,requestId:o}));a.result=a.data,a.requestId=o,delete a.data,t(a)}}))})},toBase64:function(n){return Ai.stringify(Ii.parse(n))}},qi=class{constructor(n){["spaceId","clientSecret"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(n,e))throw new Error(`${e} required`)}),this.config=Object.assign({},{endpoint:n.spaceId.indexOf("mp-")===0?"https://api.next.bspapp.com":"https://api.bspapp.com"},n),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=F,this._getAccessTokenPromiseHub=new je({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then(e=>{if(!e.result||!e.result.accessToken)throw new A({code:"AUTH_FAILED",message:"\u83B7\u53D6accessToken\u5931\u8D25"});this.setAccessToken(e.result.accessToken)}),retryRule:vn})}get hasAccessToken(){return!!this.accessToken}setAccessToken(n){this.accessToken=n}requestWrapped(n){return pe.wrappedRequest(n,this.adapter.request)}requestAuth(n){return this.requestWrapped(n)}request(n,e){return Promise.resolve().then(()=>this.hasAccessToken?e?this.requestWrapped(n):this.requestWrapped(n).catch(t=>new Promise((i,s)=>{!t||t.code!=="GATEWAY_INVALID_TOKEN"&&t.code!=="InvalidParameter.InvalidToken"?s(t):i()}).then(()=>this.getAccessToken()).then(()=>{let i=this.rebuildRequest(n);return this.request(i,!0)})):this.getAccessToken().then(()=>{let t=this.rebuildRequest(n);return this.request(t,!0)}))}rebuildRequest(n){let e=Object.assign({},n);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=pe.sign(e.data,this.config.clientSecret),e}setupRequest(n,e){let t=Object.assign({},n,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};return e!=="auth"&&(t.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=pe.sign(t,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:i}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}authorize(){return P(this,null,function*(){yield this.getAccessToken()})}callFunction(n){let e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:n.name,functionArgs:n.data||{}})};return this.request(q(R({},this.setupRequest(e)),{timeout:n.timeout}))}getOSSUploadOptionsFromPath(n){let e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(n)};return this.request(this.setupRequest(e))}uploadFileToOSS({url:n,formData:e,name:t,filePath:i,fileType:s,onUploadProgress:o}){return new Promise((a,r)=>{let l=this.adapter.uploadFile({url:n,formData:e,name:t,filePath:i,fileType:s,header:{"X-OSS-server-side-encrpytion":"AES256"},success(c){c&&c.statusCode<400?a(c):r(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))},fail(c){r(new A({code:c.code||"UPLOAD_FAILED",message:c.message||c.errMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}});typeof o=="function"&&l&&typeof l.onProgressUpdate=="function"&&l.onProgressUpdate(c=>{o({loaded:c.totalBytesSent,total:c.totalBytesExpectedToSend})})})}reportOSSUpload(n){let e={method:"serverless.file.resource.report",params:JSON.stringify(n)};return this.request(this.setupRequest(e))}uploadFile(a){return P(this,arguments,function*({filePath:n,cloudPath:e,fileType:t="image",cloudPathAsRealPath:i=!1,onUploadProgress:s,config:o}){if(ke(e)!=="string")throw new A({code:"INVALID_PARAM",message:"cloudPath\u5FC5\u987B\u4E3A\u5B57\u7B26\u4E32\u7C7B\u578B"});if(!(e=e.trim()))throw new A({code:"INVALID_PARAM",message:"cloudPath\u4E0D\u53EF\u4E3A\u7A7A"});if(/:\/\//.test(e))throw new A({code:"INVALID_PARAM",message:"cloudPath\u4E0D\u5408\u6CD5"});let r=o&&o.envType||this.config.envType;if(i&&(e[0]!=="/"&&(e="/"+e),e.indexOf("\\")>-1))throw new A({code:"INVALID_PARAM",message:"\u4F7F\u7528cloudPath\u4F5C\u4E3A\u8DEF\u5F84\u65F6\uFF0CcloudPath\u4E0D\u53EF\u5305\u542B\u201C\\\u201D"});let l=(yield this.getOSSUploadOptionsFromPath({env:r,filename:i?e.split("/").pop():e,fileId:i?e:void 0})).result,c="https://"+l.cdnDomain+"/"+l.ossPath,{securityToken:g,accessKeyId:d,signature:p,host:m,ossPath:_,id:h,policy:u,ossCallbackUrl:f}=l,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:d,Signature:p,host:m,id:h,key:_,policy:u,success_action_status:200};if(g&&(y["x-oss-security-token"]=g),f){let w=JSON.stringify({callbackUrl:f,callbackBody:JSON.stringify({fileId:h,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=pe.toBase64(w)}let v={url:"https://"+l.host,formData:y,fileName:"file",name:"file",filePath:n,fileType:t};if(yield this.uploadFileToOSS(Object.assign({},v,{onUploadProgress:s})),f)return{success:!0,filePath:n,fileID:c};if((yield this.reportOSSUpload({id:h})).success)return{success:!0,filePath:n,fileID:c};throw new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"})})}getTempFileURL({fileList:n}={}){return new Promise((e,t)=>{Array.isArray(n)&&n.length!==0||t(new A({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"})),e({fileList:n.map(i=>({fileID:i,tempFileURL:i}))})})}getFileInfo(){return P(this,arguments,function*({fileList:n}={}){if(!Array.isArray(n)||n.length===0)throw new A({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"});let e={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map(t=>t.split("?")[0]).join(",")})};return{fileList:(yield this.request(this.setupRequest(e))).result}})}},Vi={init(n){let e=new qi(n),t={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return t},e.customAuth=e.auth,e}},zi=typeof location!="undefined"&&location.protocol==="http:"?"http:":"https:",Kt;(function(n){n.local="local",n.none="none",n.session="session"})(Kt||(Kt={}));var Ji=function(){},Hi=Z(function(n,e){var t;n.exports=(t=ie,function(i){var s=t,o=s.lib,a=o.WordArray,r=o.Hasher,l=s.algo,c=[],g=[];(function(){function m(f){for(var y=i.sqrt(f),v=2;v<=y;v++)if(!(f%v))return!1;return!0}function _(f){return 4294967296*(f-(0|f))|0}for(var h=2,u=0;u<64;)m(h)&&(u<8&&(c[u]=_(i.pow(h,.5))),g[u]=_(i.pow(h,1/3)),u++),h++})();var d=[],p=l.SHA256=r.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(m,_){for(var h=this._hash.words,u=h[0],f=h[1],y=h[2],v=h[3],w=h[4],I=h[5],C=h[6],B=h[7],D=0;D<64;D++){if(D<16)d[D]=0|m[_+D];else{var U=d[D-15],$=(U<<25|U>>>7)^(U<<14|U>>>18)^U>>>3,H=d[D-2],oe=(H<<15|H>>>17)^(H<<13|H>>>19)^H>>>10;d[D]=$+d[D-7]+oe+d[D-16]}var ee=u&f^u&y^f&y,de=(u<<30|u>>>2)^(u<<19|u>>>13)^(u<<10|u>>>22),ae=B+((w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25))+(w&I^~w&C)+g[D]+d[D];B=C,C=I,I=w,w=v+ae|0,v=y,y=f,f=u,u=ae+(de+ee)|0}h[0]=h[0]+u|0,h[1]=h[1]+f|0,h[2]=h[2]+y|0,h[3]=h[3]+v|0,h[4]=h[4]+w|0,h[5]=h[5]+I|0,h[6]=h[6]+C|0,h[7]=h[7]+B|0},_doFinalize:function(){var m=this._data,_=m.words,h=8*this._nDataBytes,u=8*m.sigBytes;return _[u>>>5]|=128<<24-u%32,_[14+(u+64>>>9<<4)]=i.floor(h/4294967296),_[15+(u+64>>>9<<4)]=h,m.sigBytes=4*_.length,this._process(),this._hash},clone:function(){var m=r.clone.call(this);return m._hash=this._hash.clone(),m}});s.SHA256=r._createHelper(p),s.HmacSHA256=r._createHmacHelper(p)}(Math),t.SHA256)}),ut=Hi,In=Z(function(n,e){n.exports=ie.HmacSHA256}),Le=()=>{let n;if(!Promise){n=()=>{},n.promise={};let t=()=>{throw new A({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(n.promise,"then",{get:t}),Object.defineProperty(n.promise,"catch",{get:t}),n}let e=new Promise((t,i)=>{n=(s,o)=>s?i(s):t(o)});return n.promise=e,n};function Wi(n){return n===void 0}function Ki(n){return Object.prototype.toString.call(n)==="[object Null]"}function Gt(n=""){return n.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题：.*)/,"$1")}function Yt(n=32){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=e.length,i="";for(let s=0;s<n;s++)i+=e.charAt(Math.floor(Math.random()*t));return i}var Qt;function Gi(n){let e=(t=n,Object.prototype.toString.call(t)==="[object Array]"?n:[n]);var t;for(let i of e){let{isMatch:s,genAdapter:o,runtime:a}=i;if(s())return{adapter:o(),runtime:a}}}(function(n){n.WEB="web",n.WX_MP="wx_mp"})(Qt||(Qt={}));var M={adapter:null,runtime:void 0},Yi=["anonymousUuidKey"],we=class extends Ji{constructor(){super(),M.adapter.root.tcbObject||(M.adapter.root.tcbObject={})}setItem(e,t){M.adapter.root.tcbObject[e]=t}getItem(e){return M.adapter.root.tcbObject[e]}removeItem(e){delete M.adapter.root.tcbObject[e]}clear(){delete M.adapter.root.tcbObject}};function Zt(n,e){switch(n){case"local":return e.localStorage||new we;case"none":return new we;default:return e.sessionStorage||new we}}var Ve=class{constructor(e){if(!this._storage){this._persistence=M.adapter.primaryStorage||e.persistence,this._storage=Zt(this._persistence,M.adapter);let t=`access_token_${e.env}`,i=`access_token_expire_${e.env}`,s=`refresh_token_${e.env}`,o=`anonymous_uuid_${e.env}`,a=`login_type_${e.env}`,r="device_id",l=`token_type_${e.env}`,c=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:i,refreshTokenKey:s,anonymousUuidKey:o,loginTypeKey:a,userInfoKey:c,deviceIdKey:r,tokenTypeKey:l}}}updatePersistence(e){if(e===this._persistence)return;let t=this._persistence==="local";this._persistence=e;let i=Zt(e,M.adapter);for(let s in this.keys){let o=this.keys[s];if(t&&Yi.includes(s))continue;let a=this._storage.getItem(o);Wi(a)||Ki(a)||(i.setItem(o,a),this._storage.removeItem(o))}this._storage=i}setStore(e,t,i){if(!this._storage)return;let s={version:i||"localCachev1",content:t},o=JSON.stringify(s);try{this._storage.setItem(e,o)}catch(a){throw a}}getStore(e,t){try{if(!this._storage)return}catch(s){return""}t=t||"localCachev1";let i=this._storage.getItem(e);return i&&i.indexOf(t)>=0?JSON.parse(i).content:""}removeStore(e){this._storage.removeItem(e)}},An={},Cn={};function ve(n){return An[n]}var ze=class{constructor(e,t){this.data=t||null,this.name=e}},dt=class extends ze{constructor(e,t){super("error",{error:e,data:t}),this.error=e}},Ct=new class{constructor(){this._listeners={}}on(n,e){return function(t,i,s){s[t]=s[t]||[],s[t].push(i)}(n,e,this._listeners),this}off(n,e){return function(t,i,s){if(s&&s[t]){let o=s[t].indexOf(i);o!==-1&&s[t].splice(o,1)}}(n,e,this._listeners),this}fire(n,e){if(n instanceof dt)return console.error(n.error),this;let t=typeof n=="string"?new ze(n,e||{}):n,i=t.name;if(this._listens(i)){t.target=this;let s=this._listeners[i]?[...this._listeners[i]]:[];for(let o of s)o.call(this,t)}return this}_listens(n){return this._listeners[n]&&this._listeners[n].length>0}};function ne(n,e){Ct.on(n,e)}function J(n,e={}){Ct.fire(n,e)}function Qi(n,e){Ct.off(n,e)}var me="loginStateChanged",Pn="loginStateExpire",se="loginTypeChanged",ht="anonymousConverted",Ln="refreshAccessToken",N;(function(n){n.ANONYMOUS="ANONYMOUS",n.WECHAT="WECHAT",n.WECHAT_PUBLIC="WECHAT-PUBLIC",n.WECHAT_OPEN="WECHAT-OPEN",n.CUSTOM="CUSTOM",n.EMAIL="EMAIL",n.USERNAME="USERNAME",n.NULL="NULL"})(N||(N={}));var pt=class{constructor(){this._fnPromiseMap=new Map}run(e,t){return P(this,null,function*(){let i=this._fnPromiseMap.get(e);return i||(i=new Promise((s,o)=>P(this,null,function*(){try{yield this._runIdlePromise();let a=t();s(yield a)}catch(a){o(a)}finally{this._fnPromiseMap.delete(e)}})),this._fnPromiseMap.set(e,i)),i})}_runIdlePromise(){return Promise.resolve()}},gt=class{constructor(e){this._singlePromise=new pt,this._cache=ve(e.env),this._baseURL=`https://${e.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new M.adapter.reqClass({timeout:e.timeout,timeoutMsg:`\u8BF7\u6C42\u5728${e.timeout/1e3}s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD`,restrictedMethods:["post"]})}_getDeviceId(){if(this._deviceID)return this._deviceID;let{deviceIdKey:e}=this._cache.keys,t=this._cache.getStore(e);return typeof t=="string"&&t.length>=16&&t.length<=48||(t=Yt(),this._cache.setStore(e,t)),this._deviceID=t,t}_request(s,o){return P(this,arguments,function*(e,t,i={}){let a={"x-request-id":Yt(),"x-device-id":this._getDeviceId()};if(i.withAccessToken){let{tokenTypeKey:r}=this._cache.keys,l=yield this.getAccessToken(),c=this._cache.getStore(r);a.authorization=`${c} ${l}`}return this._reqClass[i.method==="get"?"get":"post"]({url:`${this._baseURL}${e}`,data:t,headers:a})})}_fetchAccessToken(){return P(this,null,function*(){let{loginTypeKey:e,accessTokenKey:t,accessTokenExpireKey:i,tokenTypeKey:s}=this._cache.keys,o=this._cache.getStore(e);if(o&&o!==N.ANONYMOUS)throw new A({code:"INVALID_OPERATION",message:"\u975E\u533F\u540D\u767B\u5F55\u4E0D\u652F\u6301\u5237\u65B0 access token"});let a=yield this._singlePromise.run("fetchAccessToken",()=>P(this,null,function*(){return(yield this._request("/auth/v1/signin/anonymously",{},{method:"post"})).data})),{access_token:r,expires_in:l,token_type:c}=a;return this._cache.setStore(s,c),this._cache.setStore(t,r),this._cache.setStore(i,Date.now()+1e3*l),r})}isAccessTokenExpired(e,t){let i=!0;return e&&t&&(i=t<Date.now()),i}getAccessToken(){return P(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,i=this._cache.getStore(e),s=this._cache.getStore(t);return this.isAccessTokenExpired(i,s)?this._fetchAccessToken():i})}refreshAccessToken(){return P(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:t,loginTypeKey:i}=this._cache.keys;return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.setStore(i,N.ANONYMOUS),this.getAccessToken()})}getUserInfo(){return P(this,null,function*(){return this._singlePromise.run("getUserInfo",()=>P(this,null,function*(){return(yield this._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"})).data}))})}},Xt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Zi={"X-SDK-Version":"1.3.5"};function st(n,e,t){let i=n[e];n[e]=function(s){let o={},a={};t.forEach(l=>{let{data:c,headers:g}=l.call(n,s);Object.assign(o,c),Object.assign(a,g)});let r=s.data;return r&&(()=>{var l;if(l=r,Object.prototype.toString.call(l)!=="[object FormData]")s.data=R(R({},r),o);else for(let c in o)r.append(c,o[c])})(),s.headers=R(R({},s.headers||{}),a),i.call(n,s)}}function ot(){let n=Math.random().toString(16).slice(2);return{data:{seqId:n},headers:q(R({},Zi),{"x-seqid":n})}}var ft=class{constructor(e={}){var t;this.config=e,this._reqClass=new M.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`\u8BF7\u6C42\u5728${this.config.timeout/1e3}s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD`,restrictedMethods:["post"]}),this._cache=ve(this.config.env),this._localCache=(t=this.config.env,Cn[t]),this.oauth=new gt(this.config),st(this._reqClass,"post",[ot]),st(this._reqClass,"upload",[ot]),st(this._reqClass,"download",[ot])}post(e){return P(this,null,function*(){return yield this._reqClass.post(e)})}upload(e){return P(this,null,function*(){return yield this._reqClass.upload(e)})}download(e){return P(this,null,function*(){return yield this._reqClass.download(e)})}refreshAccessToken(){return P(this,null,function*(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=yield this._refreshAccessTokenPromise}catch(i){t=i}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e})}_refreshAccessToken(){return P(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:i,loginTypeKey:s,anonymousUuidKey:o}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let a=this._cache.getStore(i);if(!a)throw new A({message:"\u672A\u767B\u5F55CloudBase"});let r={refresh_token:a},l=yield this.request("auth.fetchAccessTokenWithRefreshToken",r);if(l.data.code){let{code:c}=l.data;if(c==="SIGN_PARAM_INVALID"||c==="REFRESH_TOKEN_EXPIRED"||c==="INVALID_REFRESH_TOKEN"){if(this._cache.getStore(s)===N.ANONYMOUS&&c==="INVALID_REFRESH_TOKEN"){let g=this._cache.getStore(o),d=this._cache.getStore(i),p=yield this.send("auth.signInAnonymously",{anonymous_uuid:g,refresh_token:d});return this.setRefreshToken(p.refresh_token),this._refreshAccessToken()}J(Pn),this._cache.removeStore(i)}throw new A({code:l.data.code,message:`\u5237\u65B0access token\u5931\u8D25\uFF1A${l.data.code}`})}if(l.data.access_token)return J(Ln),this._cache.setStore(e,l.data.access_token),this._cache.setStore(t,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire};l.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,l.data.refresh_token),this._refreshAccessToken())})}getAccessToken(){return P(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:i}=this._cache.keys;if(!this._cache.getStore(i))throw new A({message:"refresh token\u4E0D\u5B58\u5728\uFF0C\u767B\u5F55\u72B6\u6001\u5F02\u5E38"});let s=this._cache.getStore(e),o=this._cache.getStore(t),a=!0;return this._shouldRefreshAccessTokenHook&&!(yield this._shouldRefreshAccessTokenHook(s,o))&&(a=!1),(!s||!o||o<Date.now())&&a?this.refreshAccessToken():{accessToken:s,accessTokenExpire:o}})}request(e,t,i){return P(this,null,function*(){let s=`x-tcb-trace_${this.config.env}`,o="application/x-www-form-urlencoded",a=R({action:e,env:this.config.env,dataVersion:"2019-08-16"},t),r;if(Xt.indexOf(e)===-1&&(this._cache.keys,a.access_token=yield this.oauth.getAccessToken()),e==="storage.uploadFile"){r=new FormData;for(let f in r)r.hasOwnProperty(f)&&r[f]!==void 0&&r.append(f,a[f]);o="multipart/form-data"}else{o="application/json",r={};for(let f in a)a[f]!==void 0&&(r[f]=a[f])}let l={headers:{"content-type":o}};i&&i.timeout&&(l.timeout=i.timeout),i&&i.onUploadProgress&&(l.onUploadProgress=i.onUploadProgress);let c=this._localCache.getStore(s);c&&(l.headers["X-TCB-Trace"]=c);let{parse:g,inQuery:d,search:p}=t,m={env:this.config.env};g&&(m.parse=!0),d&&(m=R(R({},d),m));let _=function(f,y,v={}){let w=/\?/.test(y),I="";for(let C in v)I===""?!w&&(y+="?"):I+="&",I+=`${C}=${encodeURIComponent(v[C])}`;return/^http(s)?\:\/\//.test(y+=I)?y:`${f}${y}`}(zi,"//tcb-api.tencentcloudapi.com/web",m);p&&(_+=p);let h=yield this.post(R({url:_,data:r},l)),u=h.header&&h.header["x-tcb-trace"];if(u&&this._localCache.setStore(s,u),Number(h.status)!==200&&Number(h.statusCode)!==200||!h.data)throw new A({code:"NETWORK_ERROR",message:"network request error"});return h})}send(s){return P(this,arguments,function*(e,t={},i={}){let o=yield this.request(e,t,q(R({},i),{onUploadProgress:t.onUploadProgress}));if((o.data.code==="ACCESS_TOKEN_DISABLED"||o.data.code==="ACCESS_TOKEN_EXPIRED")&&Xt.indexOf(e)===-1){yield this.oauth.refreshAccessToken();let a=yield this.request(e,t,q(R({},i),{onUploadProgress:t.onUploadProgress}));if(a.data.code)throw new A({code:a.data.code,message:Gt(a.data.message)});return a.data}if(o.data.code)throw new A({code:o.data.code,message:Gt(o.data.message)});return o.data})}setRefreshToken(e){let{accessTokenKey:t,accessTokenExpireKey:i,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(i),this._cache.setStore(s,e)}},En={};function X(n){return En[n]}var ye=class{constructor(e){this.config=e,this._cache=ve(e.env),this._request=X(e.env)}setRefreshToken(e){let{accessTokenKey:t,accessTokenExpireKey:i,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(i),this._cache.setStore(s,e)}setAccessToken(e,t){let{accessTokenKey:i,accessTokenExpireKey:s}=this._cache.keys;this._cache.setStore(i,e),this._cache.setStore(s,t)}refreshUserInfo(){return P(this,null,function*(){let{data:e}=yield this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e})}setLocalUserInfo(e){let{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}},mt=class{constructor(e){if(!e)throw new A({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=ve(this._envId),this._request=X(this._envId),this.setUserInfo()}linkWithTicket(e){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}getLinkedUidList(){return P(this,null,function*(){let{data:e}=yield this._request.send("auth.getLinkedUidList",{}),t=!1,{users:i}=e;return i.forEach(s=>{s.wxOpenId&&s.wxPublicId&&(t=!0)}),{users:i,hasPrimaryUid:t}})}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}update(e){return P(this,null,function*(){let{nickName:t,gender:i,avatarUrl:s,province:o,country:a,city:r}=e,{data:l}=yield this._request.send("auth.updateUserInfo",{nickName:t,gender:i,avatarUrl:s,province:o,country:a,city:r});this.setLocalUserInfo(l)})}refresh(){return P(this,null,function*(){let e=yield this._request.oauth.getUserInfo();return this.setLocalUserInfo(e),e})}setUserInfo(){let{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach(i=>{this[i]=t[i]}),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){let{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}},ue=class{constructor(e){if(!e)throw new A({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=ve(e);let{refreshTokenKey:t,accessTokenKey:i,accessTokenExpireKey:s}=this._cache.keys,o=this._cache.getStore(t),a=this._cache.getStore(i),r=this._cache.getStore(s);this.credential={refreshToken:o,accessToken:a,accessTokenExpire:r},this.user=new mt(e)}get isAnonymousAuth(){return this.loginType===N.ANONYMOUS}get isCustomAuth(){return this.loginType===N.CUSTOM}get isWeixinAuth(){return this.loginType===N.WECHAT||this.loginType===N.WECHAT_OPEN||this.loginType===N.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},Te=class extends ye{signIn(){return P(this,null,function*(){this._cache.updatePersistence("local"),yield this._request.oauth.getAccessToken(),J(me),J(se,{env:this.config.env,loginType:N.ANONYMOUS,persistence:"local"});let e=new ue(this.config.env);return yield e.user.refresh(),e})}linkAndRetrieveDataWithTicket(e){return P(this,null,function*(){let{anonymousUuidKey:t,refreshTokenKey:i}=this._cache.keys,s=this._cache.getStore(t),o=this._cache.getStore(i),a=yield this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:s,refresh_token:o,ticket:e});if(a.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(a.refresh_token),yield this._request.refreshAccessToken(),J(ht,{env:this.config.env}),J(se,{loginType:N.CUSTOM,persistence:"local"}),{credential:{refreshToken:a.refresh_token}};throw new A({message:"\u533F\u540D\u8F6C\u5316\u5931\u8D25"})})}_setAnonymousUUID(e){let{anonymousUuidKey:t,loginTypeKey:i}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(i,N.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}},Je=class extends ye{signIn(e){return P(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"ticket must be a string"});let{refreshTokenKey:t}=this._cache.keys,i=yield this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(i.refresh_token)return this.setRefreshToken(i.refresh_token),yield this._request.refreshAccessToken(),J(me),J(se,{env:this.config.env,loginType:N.CUSTOM,persistence:this.config.persistence}),yield this.refreshUserInfo(),new ue(this.config.env);throw new A({message:"\u81EA\u5B9A\u4E49\u767B\u5F55\u5931\u8D25"})})}},He=class extends ye{signIn(e,t){return P(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"email must be a string"});let{refreshTokenKey:i}=this._cache.keys,s=yield this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(i)||""}),{refresh_token:o,access_token:a,access_token_expire:r}=s;if(o)return this.setRefreshToken(o),a&&r?this.setAccessToken(a,r):yield this._request.refreshAccessToken(),yield this.refreshUserInfo(),J(me),J(se,{env:this.config.env,loginType:N.EMAIL,persistence:this.config.persistence}),new ue(this.config.env);throw s.code?new A({code:s.code,message:`\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ${s.message}`}):new A({message:"\u90AE\u7BB1\u767B\u5F55\u5931\u8D25"})})}activate(e){return P(this,null,function*(){return this._request.send("auth.activateEndUserMail",{token:e})})}resetPasswordWithToken(e,t){return P(this,null,function*(){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})})}},We=class extends ye{signIn(e,t){return P(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"username must be a string"});typeof t!="string"&&(t="",console.warn("password is empty"));let{refreshTokenKey:i}=this._cache.keys,s=yield this._request.send("auth.signIn",{loginType:N.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(i)||""}),{refresh_token:o,access_token_expire:a,access_token:r}=s;if(o)return this.setRefreshToken(o),r&&a?this.setAccessToken(r,a):yield this._request.refreshAccessToken(),yield this.refreshUserInfo(),J(me),J(se,{env:this.config.env,loginType:N.USERNAME,persistence:this.config.persistence}),new ue(this.config.env);throw s.code?new A({code:s.code,message:`\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ${s.message}`}):new A({message:"\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25"})})}},yt=class{constructor(e){this.config=e,this._cache=ve(e.env),this._request=X(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),ne(se,this._onLoginTypeChanged)}get currentUser(){let e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Te(this.config)}customAuthProvider(){return new Je(this.config)}emailAuthProvider(){return new He(this.config)}usernameAuthProvider(){return new We(this.config)}signInAnonymously(){return P(this,null,function*(){return new Te(this.config).signIn()})}signInWithEmailAndPassword(e,t){return P(this,null,function*(){return new He(this.config).signIn(e,t)})}signInWithUsernameAndPassword(e,t){return new We(this.config).signIn(e,t)}linkAndRetrieveDataWithTicket(e){return P(this,null,function*(){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Te(this.config)),ne(ht,this._onAnonymousConverted),yield this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)})}signOut(){return P(this,null,function*(){if(this.loginType===N.ANONYMOUS)throw new A({message:"\u533F\u540D\u7528\u6237\u4E0D\u652F\u6301\u767B\u51FA\u64CD\u4F5C"});let{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:i}=this._cache.keys,s=this._cache.getStore(e);if(!s)return;let o=yield this._request.send("auth.logout",{refresh_token:s});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(i),J(me),J(se,{env:this.config.env,loginType:N.NULL,persistence:this.config.persistence}),o})}signUpWithEmailAndPassword(e,t){return P(this,null,function*(){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})})}sendPasswordResetEmail(e){return P(this,null,function*(){return this._request.send("auth.sendPasswordResetEmail",{email:e})})}onLoginStateChanged(e){ne(me,()=>{let i=this.hasLoginState();e.call(this,i)});let t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){ne(Pn,e.bind(this))}onAccessTokenRefreshed(e){ne(Ln,e.bind(this))}onAnonymousConverted(e){ne(ht,e.bind(this))}onLoginTypeChanged(e){ne(se,()=>{let t=this.hasLoginState();e.call(this,t)})}getAccessToken(){return P(this,null,function*(){return{accessToken:(yield this._request.getAccessToken()).accessToken,env:this.config.env}})}hasLoginState(){let{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,i=this._cache.getStore(e),s=this._cache.getStore(t);return this._request.oauth.isAccessTokenExpired(i,s)?null:new ue(this.config.env)}isUsernameRegistered(e){return P(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"username must be a string"});let{data:t}=yield this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered})}getLoginState(){return Promise.resolve(this.hasLoginState())}signInWithTicket(e){return P(this,null,function*(){return new Je(this.config).signIn(e)})}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then(e=>e.code?e:q(R({},e.data),{requestId:e.seqId}))}getAuthHeader(){let{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,i=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+i}}_onAnonymousConverted(e){let{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){let{loginType:t,persistence:i,env:s}=e.data;s===this.config.env&&(this._cache.updatePersistence(i),this._cache.setStore(this._cache.keys.loginTypeKey,t))}},Xi=function(n,e){e=e||Le();let t=X(this.config.env),{cloudPath:i,filePath:s,onUploadProgress:o,fileType:a="image"}=n;return t.send("storage.getUploadMetadata",{path:i}).then(r=>{let{data:{url:l,authorization:c,token:g,fileId:d,cosFileId:p},requestId:m}=r,_={key:i,signature:c,"x-cos-meta-fileid":p,success_action_status:"201","x-cos-security-token":g};t.upload({url:l,data:_,file:s,name:i,fileType:a,onUploadProgress:o}).then(h=>{h.statusCode===201?e(null,{fileID:d,requestId:m}):e(new A({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${h.data}`}))}).catch(h=>{e(h)})}).catch(r=>{e(r)}),e.promise},$i=function(n,e){e=e||Le();let t=X(this.config.env),{cloudPath:i}=n;return t.send("storage.getUploadMetadata",{path:i}).then(s=>{e(null,s)}).catch(s=>{e(s)}),e.promise},es=function({fileList:n},e){if(e=e||Le(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u6570\u7EC4"};for(let i of n)if(!i||typeof i!="string")return{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"};let t={fileid_list:n};return X(this.config.env).send("storage.batchDeleteFile",t).then(i=>{i.code?e(null,i):e(null,{fileList:i.data.delete_list,requestId:i.requestId})}).catch(i=>{e(i)}),e.promise},Bn=function({fileList:n},e){e=e||Le(),n&&Array.isArray(n)||e(null,{code:"INVALID_PARAM",message:"fileList\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u6570\u7EC4"});let t=[];for(let s of n)typeof s=="object"?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u5305\u542BfileID\u548CmaxAge\u7684\u5BF9\u8C61"}),t.push({fileid:s.fileID,max_age:s.maxAge})):typeof s=="string"?t.push({fileid:s}):e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u5B57\u7B26\u4E32"});let i={file_list:t};return X(this.config.env).send("storage.batchGetDownloadUrl",i).then(s=>{s.code?e(null,s):e(null,{fileList:s.data.download_list,requestId:s.requestId})}).catch(s=>{e(s)}),e.promise},ts=function(t,i){return P(this,arguments,function*({fileID:n},e){let s=(yield Bn.call(this,{fileList:[{fileID:n,maxAge:600}]})).fileList[0];if(s.code!=="SUCCESS")return e?e(s):new Promise(r=>{r(s)});let o=X(this.config.env),a=s.download_url;if(a=encodeURI(a),!e)return o.download({url:a});e(yield o.download({url:a}))})},ns=function({name:n,data:e,query:t,parse:i,search:s,timeout:o},a){let r=a||Le(),l;try{l=e?JSON.stringify(e):""}catch(g){return Promise.reject(g)}if(!n)return Promise.reject(new A({code:"PARAM_ERROR",message:"\u51FD\u6570\u540D\u4E0D\u80FD\u4E3A\u7A7A"}));let c={inQuery:t,parse:i,search:s,function_name:n,request_data:l};return X(this.config.env).send("functions.invokeFunction",c,{timeout:o}).then(g=>{if(g.code)r(null,g);else{let d=g.data.response_data;if(i)r(null,{result:d,requestId:g.requestId});else try{d=JSON.parse(g.data.response_data),r(null,{result:d,requestId:g.requestId})}catch(p){r(new A({message:"response data must be json"}))}}return r.promise}).catch(g=>{r(g)}),r.promise},$t={timeout:15e3,persistence:"session"},en={},vt=class n{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(M.adapter||(this.requestClient=new M.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`\u8BF7\u6C42\u5728${(e.timeout||5e3)/1e3}s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD`})),this.config=R(R({},$t),e),!0){case this.config.timeout>6e5:console.warn("timeout\u5927\u4E8E\u53EF\u914D\u7F6E\u4E0A\u9650[10\u5206\u949F]\uFF0C\u5DF2\u91CD\u7F6E\u4E3A\u4E0A\u9650\u6570\u503C"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout\u5C0F\u4E8E\u53EF\u914D\u7F6E\u4E0B\u9650[100ms]\uFF0C\u5DF2\u91CD\u7F6E\u4E3A\u4E0B\u9650\u6570\u503C"),this.config.timeout=100}return new n(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;let t=e||M.adapter.primaryStorage||$t.persistence;var i;return t!==this.config.persistence&&(this.config.persistence=t),function(s){let{env:o}=s;An[o]=new Ve(s),Cn[o]=new Ve(q(R({},s),{persistence:"local"}))}(this.config),i=this.config,En[i.env]=new ft(i),this.authObj=new yt(this.config),this.authObj}on(e,t){return ne.apply(this,[e,t])}off(e,t){return Qi.apply(this,[e,t])}callFunction(e,t){return ns.apply(this,[e,t])}deleteFile(e,t){return es.apply(this,[e,t])}getTempFileURL(e,t){return Bn.apply(this,[e,t])}downloadFile(e,t){return ts.apply(this,[e,t])}uploadFile(e,t){return Xi.apply(this,[e,t])}getUploadMetadata(e,t){return $i.apply(this,[e,t])}registerExtension(e){en[e.name]=e}invokeExtension(e,t){return P(this,null,function*(){let i=en[e];if(!i)throw new A({message:`\u6269\u5C55${e} \u5FC5\u987B\u5148\u6CE8\u518C`});return yield i.invoke(t,this)})}useAdapters(e){let{adapter:t,runtime:i}=Gi(e)||{};t&&(M.adapter=t),i&&(M.runtime=i)}},Dn=new vt;function at(n,e,t){t===void 0&&(t={});var i=/\?/.test(e),s="";for(var o in t)s===""?!i&&(e+="?"):s+="&",s+=o+"="+encodeURIComponent(t[o]);return/^http(s)?:\/\//.test(e+=s)?e:""+n+e}var _t=class{get(e){let{url:t,data:i,headers:s,timeout:o}=e;return new Promise((a,r)=>{F.request({url:at("https:",t),data:i,method:"GET",header:s,timeout:o,success(l){a(l)},fail(l){r(l)}})})}post(e){let{url:t,data:i,headers:s,timeout:o}=e;return new Promise((a,r)=>{F.request({url:at("https:",t),data:i,method:"POST",header:s,timeout:o,success(l){a(l)},fail(l){r(l)}})})}upload(e){return new Promise((t,i)=>{let{url:s,file:o,data:a,headers:r,fileType:l}=e,c=F.uploadFile({url:at("https:",s),name:"file",formData:Object.assign({},a),filePath:o,fileType:l,header:r,success(g){let d={statusCode:g.statusCode,data:g.data||{}};g.statusCode===200&&a.success_action_status&&(d.statusCode=parseInt(a.success_action_status,10)),t(d)},fail(g){i(new Error(g.errMsg||"uploadFile:fail"))}});typeof e.onUploadProgress=="function"&&c&&typeof c.onProgressUpdate=="function"&&c.onProgressUpdate(g=>{e.onUploadProgress({loaded:g.totalBytesSent,total:g.totalBytesExpectedToSend})})})}},is={setItem(n,e){F.setStorageSync(n,e)},getItem:n=>F.getStorageSync(n),removeItem(n){F.removeStorageSync(n)},clear(){F.clearStorageSync()}},ss={genAdapter:function(){return{root:{},reqClass:_t,localStorage:is,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Dn.useAdapters(ss);var Pt=Dn,os=Pt.init;Pt.init=function(n){n.env=n.spaceId;let e=os.call(this,n);e.config.provider="tencent",e.config.spaceId=n.spaceId;let t=e.auth;return e.auth=function(i){let s=t.call(this,i);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach(o=>{var a;s[o]=(a=s[o],function(r){r=r||{};let{success:l,fail:c,complete:g}=Tn(r);if(!(l||c||g))return a.call(this,r);a.call(this,r).then(d=>{l&&l(d),g&&g(d)},d=>{c&&c(d),g&&g(d)})}).bind(s)}),s},e.customAuth=e.auth,e};var tn=Pt;function as(n,e){return P(this,null,function*(){let t=`http://${n}:${e}/system/ping`;try{let s=yield(i={url:t,timeout:500},new Promise((o,a)=>{F.request(q(R({},i),{success(r){o(r)},fail(r){a(r)}}))}));return!(!s.data||s.data.code!==0)}catch(s){return!1}var i})}function rs(n,e){return P(this,null,function*(){let t;for(let i=0;i<n.length;i++){let s=n[i];if(yield as(s,e)){t=s;break}}return{address:t,port:e}})}var cs={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"},ls=class{constructor(n){if(["spaceId","clientSecret"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(n,e))throw new Error(`${e} required`)}),!n.endpoint)throw new Error("\u96C6\u7FA4\u7A7A\u95F4\u672A\u914D\u7F6EApiEndpoint\uFF0C\u914D\u7F6E\u540E\u9700\u8981\u91CD\u65B0\u5173\u8054\u670D\u52A1\u7A7A\u95F4\u540E\u751F\u6548");this.config=Object.assign({},n),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=F}request(n,e=!0){return P(this,null,function*(){return n=this.setupRequest(n),Promise.resolve().then(()=>pe.wrappedRequest(n,this.adapter.request))})}requestLocal(n){return new Promise((e,t)=>{this.adapter.request(Object.assign(n,{complete(i){if(i||(i={}),!i.statusCode||i.statusCode>=400){let s=i.data&&i.data.code||"SYS_ERR",o=i.data&&i.data.message||"request:fail";return t(new A({code:s,message:o}))}e({success:!0,result:i.data})}}))})}setupRequest(n){let e=Object.assign({},n,{spaceId:this.config.spaceId,timestamp:Date.now()}),t={"Content-Type":"application/json"};t["x-serverless-sign"]=pe.sign(e,this.config.clientSecret);let i=lt();t["x-client-info"]=encodeURIComponent(JSON.stringify(i));let{token:s}=Se();return t["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:e,dataType:"json",header:JSON.parse(JSON.stringify(t))}}setupLocalRequest(n){return P(this,null,function*(){let e=lt(),{token:t}=Se(),i=Object.assign({},n,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:e,token:t}),{address:s,servePort:o}=this.__dev__&&this.__dev__.debugInfo||{},{address:a}=yield rs(s,o);return{url:`http://${a}:${o}/${cs[n.method]}`,method:"POST",data:i,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))}})}callFunction(n){let e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:n.name,functionArgs:n.data||{}})};return this.request(e,!1)}getUploadFileOptions(n){let e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(n)};return this.request(e)}reportUploadFile(n){let e={method:"serverless.file.resource.report",params:JSON.stringify(n)};return this.request(e)}uploadFile({filePath:n,cloudPath:e,fileType:t="image",onUploadProgress:i}){if(!e)throw new A({code:"CLOUDPATH_REQUIRED",message:"cloudPath\u4E0D\u53EF\u4E3A\u7A7A"});let s;return this.getUploadFileOptions({cloudPath:e}).then(o=>{let{url:a,formData:r,name:l}=o.result;return s=o.result.fileUrl,new Promise((c,g)=>{let d=this.adapter.uploadFile({url:a,formData:r,name:l,filePath:n,fileType:t,success(p){p&&p.statusCode<400?c(p):g(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))},fail(p){g(new A({code:p.code||"UPLOAD_FAILED",message:p.message||p.errMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}});typeof i=="function"&&d&&typeof d.onProgressUpdate=="function"&&d.onProgressUpdate(p=>{i({loaded:p.totalBytesSent,total:p.totalBytesExpectedToSend})})})}).then(()=>this.reportUploadFile({cloudPath:e})).then(o=>new Promise((a,r)=>{o.success?a({success:!0,filePath:n,fileID:s}):r(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}))}deleteFile({fileList:n}){let e={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:n})};return this.request(e).then(t=>{if(t.success)return t.result;throw new A({code:"DELETE_FILE_FAILED",message:"\u5220\u9664\u6587\u4EF6\u5931\u8D25"})})}getTempFileURL({fileList:n,maxAge:e}={}){if(!Array.isArray(n)||n.length===0)throw new A({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"});let t={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:n,maxAge:e})};return this.request(t).then(i=>{if(i.success)return{fileList:i.result.fileList.map(s=>({fileID:s.fileID,tempFileURL:s.tempFileURL}))};throw new A({code:"GET_TEMP_FILE_URL_FAILED",message:"\u83B7\u53D6\u4E34\u65F6\u6587\u4EF6\u94FE\u63A5\u5931\u8D25"})})}},nn={init(n){let e=new ls(n),t={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return t},e.customAuth=e.auth,e}},xe=Z(function(n,e){n.exports=ie.enc.Hex});function Rn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=16*Math.random()|0;return(n==="x"?e:3&e|8).toString(16)})}function On(n="",e={}){let{data:t,functionName:i,method:s,headers:o,signHeaderKeys:a=[],config:r}=e,l=String(Date.now()),c=Rn(),g=Object.assign({},o,{"x-from-app-id":r.spaceAppId,"x-from-env-id":r.spaceId,"x-to-env-id":r.spaceId,"x-from-instance-id":l,"x-from-function-name":i,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":c,"x-alipay-callid":c,"x-trace-id":c}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(a),[p="",m=""]=n.split("?")||[],_=function(h){let u=h.signedHeaders.join(";"),f=h.signedHeaders.map(B=>`${B.toLowerCase()}:${h.headers[B]}
`).join(""),y=ut(h.body).toString(xe),v=`${h.method.toUpperCase()}
${h.path}
${h.query}
${f}
${u}
${y}
`,w=ut(v).toString(xe),I=`HMAC-SHA256
${h.timestamp}
${w}
`,C=In(I,h.secretKey).toString(xe);return`HMAC-SHA256 Credential=${h.secretId}, SignedHeaders=${u}, Signature=${C}`}({path:p,query:m,method:s,headers:g,timestamp:l,body:JSON.stringify(t),secretId:r.accessKey,secretKey:r.secretKey,signedHeaders:d.sort()});return{url:`${r.endpoint}${n}`,headers:Object.assign({},g,{Authorization:_})}}function Nn({url:n,data:e,method:t="POST",headers:i={},timeout:s}){return new Promise((o,a)=>{F.request({url:n,method:t,data:typeof e=="object"?JSON.stringify(e):e,header:i,dataType:"json",timeout:s,complete:(r={})=>{let l=i["x-trace-id"]||"";if(!r.statusCode||r.statusCode>=400){let{message:c,errMsg:g,trace_id:d}=r.data||{};return a(new A({code:"SYS_ERR",message:c||g||"request:fail",requestId:d||l}))}o({status:r.statusCode,data:r.data,headers:r.header,requestId:l})}})})}function sn(n,e){let{path:t,data:i,method:s="GET"}=n,{url:o,headers:a}=On(t,{functionName:"",data:i,method:s,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:e});return Nn({url:o,data:i,method:s,headers:a}).then(r=>{let l=r.data||{};if(!l.success)throw new A({code:r.errCode,message:r.errMsg,requestId:r.requestId});return l.data||{}}).catch(r=>{throw new A({code:r.errCode,message:r.errMsg,requestId:r.requestId})})}function us(n=""){let e=n.trim().replace(/^cloud:\/\//,""),t=e.indexOf("/");if(t<=0)throw new A({code:"INVALID_PARAM",message:"fileID\u4E0D\u5408\u6CD5"});let i=e.substring(0,t),s=e.substring(t+1);return i!==this.config.spaceId&&console.warn("file ".concat(n," does not belong to env ").concat(this.config.spaceId)),s}function ds(n=""){return"cloud://".concat(this.config.spaceId,"/").concat(n.replace(/^\/+/,""))}var bt=class{constructor(e){this.config=e}signedURL(e,t={}){let i=`/ws/function/${e}`,s=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),o=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:Rn(),timestamp:""+Date.now()}),a=[i,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map(function(g){return o[g]?"".concat(g,"=").concat(o[g]):null}).filter(Boolean).join("&"),`host:${s}`].join(`
`),r=["HMAC-SHA256",ut(a).toString(xe)].join(`
`),l=In(r,this.config.secretKey).toString(xe),c=Object.keys(o).map(g=>`${g}=${encodeURIComponent(o[g])}`).join("&");return`${this.config.wsEndpoint}${i}?${c}&signature=${l}`}},hs=class{constructor(n){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(n,e))throw new Error(`${e} required`)}),n.endpoint){if(typeof n.endpoint!="string")throw new Error("endpoint must be string");if(!/^https:\/\//.test(n.endpoint))throw new Error("endpoint must start with https://");n.endpoint=n.endpoint.replace(/\/$/,"")}this.config=Object.assign({},n,{endpoint:n.endpoint||`https://${n.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:n.wsEndpoint||`wss://${n.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new bt(this.config)}callFunction(n){return function(e,t){let{name:i,data:s,async:o=!1,timeout:a}=e,r="POST",l={"x-to-function-name":i};o&&(l["x-function-invoke-type"]="async");let{url:c,headers:g}=On("/functions/invokeFunction",{functionName:i,data:s,method:r,headers:l,signHeaderKeys:["x-to-function-name"],config:t});return Nn({url:c,data:s,method:r,headers:g,timeout:a}).then(d=>{let p=0;if(o){let m=d.data||{};p=m.errCode==="200"?0:m.errCode,d.data=m.data||{},d.errMsg=m.errMsg}if(p!==0)throw new A({code:p,message:d.errMsg,requestId:d.requestId});return{errCode:p,success:p===0,requestId:d.requestId,result:d.data}}).catch(d=>{throw new A({code:d.errCode,message:d.errMsg,requestId:d.requestId})})}(n,this.config)}uploadFileToOSS({url:n,filePath:e,fileType:t,formData:i,onUploadProgress:s}){return new Promise((o,a)=>{let r=F.uploadFile({url:n,filePath:e,fileType:t,formData:i,name:"file",success(l){l&&l.statusCode<400?o(l):a(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))},fail(l){a(new A({code:l.code||"UPLOAD_FAILED",message:l.message||l.errMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}});typeof s=="function"&&r&&typeof r.onProgressUpdate=="function"&&r.onProgressUpdate(l=>{s({loaded:l.totalBytesSent,total:l.totalBytesExpectedToSend})})})}uploadFile(s){return P(this,arguments,function*({filePath:n,cloudPath:e="",fileType:t="image",onUploadProgress:i}){if(ke(e)!=="string")throw new A({code:"INVALID_PARAM",message:"cloudPath\u5FC5\u987B\u4E3A\u5B57\u7B26\u4E32\u7C7B\u578B"});if(!(e=e.trim()))throw new A({code:"INVALID_PARAM",message:"cloudPath\u4E0D\u53EF\u4E3A\u7A7A"});if(/:\/\//.test(e))throw new A({code:"INVALID_PARAM",message:"cloudPath\u4E0D\u5408\u6CD5"});let o=yield sn({path:"/".concat(e.replace(/^\//,""),"?post_url")},this.config),{file_id:a,upload_url:r,form_data:l}=o,c=l&&l.reduce((g,d)=>(g[d.key]=d.value,g),{});return this.uploadFileToOSS({url:r,filePath:n,fileType:t,formData:c,onUploadProgress:i}).then(()=>({fileID:a}))})}getTempFileURL(e){return P(this,arguments,function*({fileList:n}){return new Promise((t,i)=>{(!n||n.length<0)&&t({code:"INVALID_PARAM",message:"fileList\u4E0D\u80FD\u4E3A\u7A7A\u6570\u7EC4"}),n.length>50&&t({code:"INVALID_PARAM",message:"fileList\u6570\u7EC4\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC750"});let s=[];for(let o of n){let a;ke(o)!=="string"&&t({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"});try{a=us.call(this,o)}catch(r){console.warn(r.errCode,r.errMsg),a=o}s.push({file_id:a,expire:600})}sn({path:"/?download_url",data:{file_list:s},method:"POST"},this.config).then(o=>{let{file_list:a=[]}=o;t({fileList:a.map(r=>({fileID:ds.call(this,r.file_id),tempFileURL:r.download_url}))})}).catch(o=>i(o))})})}connectWebSocket(n){return P(this,null,function*(){let{name:e,query:t}=n;return F.connectSocket({url:this._websocket.signedURL(e,t),complete:()=>{}})})}},ps={init:n=>{n.provider="alipay";let e=new hs(n);return e.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},e}};function gs({data:n}){let e;e=lt();let t=JSON.parse(JSON.stringify(n||{}));if(Object.assign(t,{clientInfo:e}),!t.uniIdToken){let{token:i}=Se();i&&(t.uniIdToken=i)}return t}var fs=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:"\uFF0C\u4E91\u51FD\u6570[{functionName}]\u5728\u4E91\u7AEF\u4E0D\u5B58\u5728\uFF0C\u8BF7\u68C0\u67E5\u6B64\u4E91\u51FD\u6570\u540D\u79F0\u662F\u5426\u6B63\u786E\u4EE5\u53CA\u8BE5\u4E91\u51FD\u6570\u662F\u5426\u5DF2\u4E0A\u4F20\u5230\u670D\u52A1\u7A7A\u95F4",mode:"append"}],Fn=/[\\^$.*+?()[\]{}|]/g,ms=RegExp(Fn.source);function on(n,e,t){return n.replace(new RegExp((i=e)&&ms.test(i)?i.replace(Fn,"\\$&"):i,"g"),t);var i}var ys="request",vs="response",_s="both",bs={code:2e4,message:"System error"},ws={code:20101,message:"Invalid client"};function Un(n){let{errSubject:e,subject:t,errCode:i,errMsg:s,code:o,message:a,cause:r}=n||{};return new A({subject:e||t||"uni-secure-network",code:i||o||bs.code,message:s||a,cause:r})}var wt;function an({secretType:n}={}){return n===ys||n===vs||n===_s}function rn({name:n,data:e={}}={}){return n==="DCloud-clientDB"&&e.redirectTo==="encryption"&&e.action==="getAppClientKey"}function Ts({provider:n,spaceId:e,functionName:t}={}){let{appId:i,uniPlatform:s,osName:o}=Sn(),a=s;s==="app"&&(a=o);let r=function({provider:d,spaceId:p}={}){let m=Ri;if(!m)return{};d=function(h){return h==="tencent"?"tcb":h}(d);let _=m.find(h=>h.provider===d&&h.spaceId===p);return _&&_.config}({provider:n,spaceId:e});if(!r||!r.accessControl||!r.accessControl.enable)return!1;let l=r.accessControl.function||{},c=Object.keys(l);if(c.length===0)return!0;let g=function(d,p){let m,_,h;for(let u=0;u<d.length;u++){let f=d[u];f!==p?f!=="*"?f.split(",").map(y=>y.trim()).indexOf(p)>-1&&(_=f):h=f:m=f}return m||_||h}(c,t);if(!g)return!1;if((l[g]||[]).find((d={})=>d.appId===i&&(d.platform||"").toLowerCase()===a.toLowerCase()))return!0;throw console.error(`\u6B64\u5E94\u7528[appId: ${i}, platform: ${a}]\u4E0D\u5728\u4E91\u7AEF\u914D\u7F6E\u7684\u5141\u8BB8\u8BBF\u95EE\u7684\u5E94\u7528\u5217\u8868\u5185\uFF0C\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Un(ws)}function cn({functionName:n,result:e,logPvd:t}){}function xs(n){let e=n.callFunction,t=function(i){let s=i.name;i.data=gs.call(n,{data:i.data});let o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],a=an(i),r=rn(i),l=a||r;return e.call(this,i).then(c=>(c.errCode=0,!l&&cn.call(this,{functionName:s,result:c,logPvd:o}),Promise.resolve(c)),c=>(!l&&cn.call(this,{functionName:s,result:c,logPvd:o}),c&&c.message&&(c.message=function({message:g="",extraInfo:d={},formatter:p=[]}={}){for(let m=0;m<p.length;m++){let{rule:_,content:h,mode:u}=p[m],f=g.match(_);if(!f)continue;let y=h;for(let v=1;v<f.length;v++)y=on(y,`{$${v}}`,f[v]);for(let v in d)y=on(y,`{${v}}`,d[v]);return u==="replace"?y:g+y}return g}({message:`[${i.name}]: ${c.message}`,formatter:fs,extraInfo:{functionName:s}})),Promise.reject(c)))};n.callFunction=function(i){let{provider:s,spaceId:o}=n.config,a=i.name,r,l;return i.data=i.data||{},r=t,r=r.bind(n),rn(i)?l=t.call(n,i):an(i)?l=new wt({secretType:i.secretType,uniCloudIns:n}).wrapEncryptDataCallFunction(t.bind(n))(i):Ts({provider:s,spaceId:o,functionName:a})?l=new wt({secretType:i.secretType,uniCloudIns:n}).wrapVerifyClientCallFunction(t.bind(n))(i):l=r(i),Object.defineProperty(l,"result",{get:()=>(console.warn("\u5F53\u524D\u8FD4\u56DE\u7ED3\u679C\u4E3APromise\u7C7B\u578B\uFF0C\u4E0D\u53EF\u76F4\u63A5\u8BBF\u95EE\u5176result\u5C5E\u6027\uFF0C\u8BE6\u60C5\u8BF7\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),l.then(c=>(typeof UTSJSONObject!="undefined"&&typeof UTS!="undefined"&&(c.result=UTS.JSON.parse(JSON.stringify(c.result))),c))}}wt=class{constructor(){throw Un({message:`Platform ${At} is not enabled, please check whether secure network module is enabled in your manifest.json`})}};var Mn=Symbol("CLIENT_DB_INTERNAL");function Ke(n,e){return n.then="DoNotReturnProxyWithAFunctionNamedThen",n._internalType=Mn,n.inspect=null,n.__v_raw=void 0,new Proxy(n,{get(t,i,s){if(i==="_uniClient")return null;if(typeof i=="symbol")return t[i];if(i in t||typeof i!="string"){let o=t[i];return typeof o=="function"?o.bind(t):o}return e.get(t,i,s)}})}function ln(n){return{on:(e,t)=>{n[e]=n[e]||[],n[e].indexOf(t)>-1||n[e].push(t)},off:(e,t)=>{n[e]=n[e]||[];let i=n[e].indexOf(t);i!==-1&&n[e].splice(i,1)}}}var ks=["db.Geo","db.command","command.aggregate"];function jn(n,e){return ks.indexOf(`${n}.${e}`)>-1}function le(n){switch(ke(n=xn(n))){case"array":return n.map(e=>le(e));case"object":return n._internalType===Mn||Object.keys(n).forEach(e=>{n[e]=le(n[e])}),n;case"regexp":return{$regexp:{source:n.source,flags:n.flags}};case"date":return{$date:n.toISOString()};default:return n}}function be(n){return n&&n.content&&n.content.$method}var Tt=class{constructor(e,t,i){this.content=e,this.prevStage=t||null,this.udb=null,this._database=i}toJSON(){let e=this,t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map(i=>({$method:i.$method,$param:le(i.$param)}))}}toString(){return JSON.stringify(this.toJSON())}getAction(){let e=this.toJSON().$db.find(t=>t.$method==="action");return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter(e=>e.$method!=="action")}}get isAggregate(){let e=this;for(;e;){let t=be(e),i=be(e.prevStage);if(t==="aggregate"&&i==="collection"||t==="pipeline")return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if(be(e)==="command")return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){let t=be(e),i=be(e.prevStage);if(t==="aggregate"&&i==="command")return!0;e=e.prevStage}return!1}getNextStageFn(e){let t=this;return function(){return Ie({$method:e,$param:le(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL\u7981\u6B62\u4F7F\u7528set\u65B9\u6CD5")}}_send(e,t){let i=this.getAction(),s=this.getCommand();return s.$db.push({$method:e,$param:le(t)}),this._database._callCloudFunction({action:i,command:s})}};function Ie(n,e,t){return Ke(new Tt(n,e,t),{get(i,s){let o="db";return i&&i.content&&(o=i.content.$method),jn(o,s)?Ie({$method:s},i,t):function(){return Ie({$method:s,$param:le(Array.from(arguments))},i,t)}}})}function rt({path:n,method:e}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...n.map(t=>({$method:t})),{$method:e,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function un(n,e={}){return Ke(new n(e),{get:(t,i)=>jn("db",i)?Ie({$method:i},null,t):function(){return Ie({$method:i,$param:le(Array.from(arguments))},null,t)}})}var Ge=class extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=ge("_globalUniCloudDatabaseCallback")),t||(this.auth=ln(this._authCallBacks)),this._isJQL=t,Object.assign(this,ln(this._dbCallBacks)),this.env=Ke({},{get:(i,s)=>({$env:s})}),this.Geo=Ke({},{get:(i,s)=>rt({path:["Geo"],method:s})}),this.serverDate=rt({path:[],method:"serverDate"}),this.RegExp=rt({path:[],method:"RegExp"})}getCloudEnv(e){if(typeof e!="string"||!e.trim())throw new Error("getCloudEnv\u53C2\u6570\u9519\u8BEF");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){let i=this._dbCallBacks;i[e]&&i[e].forEach(s=>{s(...t)})}_callbackAuth(e,t){let i=this._authCallBacks;i[e]&&i[e].forEach(s=>{s(...t)})}multiSend(){let e=Array.from(arguments),t=e.map(i=>{let s=i.getAction(),o=i.getCommand();if(o.$db[o.$db.length-1].$method!=="getTemp")throw new Error("multiSend\u53EA\u652F\u6301\u5B50\u547D\u4EE4\u5185\u4F7F\u7528getTemp");return{action:s,command:o}});return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:i,queryList:s}){function o(d,p){if(i&&s)for(let m=0;m<s.length;m++){let _=s[m];_.udb&&typeof _.udb.setResult=="function"&&(p?_.udb.setResult(p):_.udb.setResult(d.result.dataList[m]))}}let a=this,r=this._isJQL?"databaseForJQL":"database";function l(d){return a._callback("error",[d]),V(z(r,"fail"),d).then(()=>V(z(r,"complete"),d)).then(()=>(o(null,d),K(Q,{type:Ht,content:d}),Promise.reject(d)))}let c=V(z(r,"invoke")),g=this._uniClient;return c.then(()=>g.callFunction({name:"DCloud-clientDB",type:Pi,data:{action:e,command:t,multiCommand:i}})).then(d=>{let{code:p,message:m,token:_,tokenExpired:h,systemInfo:u=[]}=d.result;if(u)for(let y=0;y<u.length;y++){let{level:v,message:w,detail:I}=u[y],C=console[v==="warn"?"error":v]||console.log,B="[System Info]"+w;I&&(B=`${B}
\u8BE6\u7EC6\u4FE1\u606F\uFF1A${I}`),C(B)}if(p)return l(new A({code:p,message:m,requestId:d.requestId}));d.result.errCode=d.result.errCode||d.result.code,d.result.errMsg=d.result.errMsg||d.result.message,_&&h&&(kn({token:_,tokenExpired:h}),this._callbackAuth("refreshToken",[{token:_,tokenExpired:h}]),this._callback("refreshToken",[{token:_,tokenExpired:h}]),K(qe,{token:_,tokenExpired:h}));let f=[{prop:"affectedDocs",tips:"affectedDocs\u4E0D\u518D\u63A8\u8350\u4F7F\u7528\uFF0C\u8BF7\u4F7F\u7528inserted/deleted/updated/data.length\u66FF\u4EE3"},{prop:"code",tips:"code\u4E0D\u518D\u63A8\u8350\u4F7F\u7528\uFF0C\u8BF7\u4F7F\u7528errCode\u66FF\u4EE3"},{prop:"message",tips:"message\u4E0D\u518D\u63A8\u8350\u4F7F\u7528\uFF0C\u8BF7\u4F7F\u7528errMsg\u66FF\u4EE3"}];for(let y=0;y<f.length;y++){let{prop:v,tips:w}=f[y];if(v in d.result){let I=d.result[v];Object.defineProperty(d.result,v,{get:()=>(console.warn(w),I)})}}return function(y){return V(z(r,"success"),y).then(()=>V(z(r,"complete"),y)).then(()=>{o(y,null);let v=a._parseResult(y);return K(Q,{type:Ht,content:v}),Promise.resolve(v)})}(d)},d=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(d.message)&&console.warn("clientDB\u672A\u521D\u59CB\u5316\uFF0C\u8BF7\u5728web\u63A7\u5236\u53F0\u4FDD\u5B58\u4E00\u6B21schema\u4EE5\u5F00\u542FclientDB"),l(new A({code:d.code||"SYSTEM_ERROR",message:d.message,requestId:d.requestId}))))}},ce="token\u65E0\u6548\uFF0C\u8DF3\u8F6C\u767B\u5F55\u9875\u9762",qn="token\u8FC7\u671F\uFF0C\u8DF3\u8F6C\u767B\u5F55\u9875\u9762",Ss={TOKEN_INVALID_TOKEN_EXPIRED:qn,TOKEN_INVALID_INVALID_CLIENTID:ce,TOKEN_INVALID:ce,TOKEN_INVALID_WRONG_TOKEN:ce,TOKEN_INVALID_ANONYMOUS_USER:ce},xt={"uni-id-token-expired":qn,"uni-id-check-token-failed":ce,"uni-id-token-not-exist":ce,"uni-id-check-device-feature-failed":ce};function dn(n,e){let t="";return t=n?`${n}/${e}`:e,t.replace(/^\//,"")}function hn(n=[],e=""){let t=[],i=[];return n.forEach(s=>{s.needLogin===!0?t.push(dn(e,s.path)):s.needLogin===!1&&i.push(dn(e,s.path))}),{needLoginPage:t,notNeedLoginPage:i}}function Ae(n){return n.split("?")[0].replace(/^\//,"")}function Lt(){return function(n){let e=n&&n.$page&&n.$page.fullPath||"";return e&&(e.charAt(0)!=="/"&&(e="/"+e),e)}(function(){let n=getCurrentPages();return n[n.length-1]}())}function Vn(){return Ae(Lt())}function Is(n="",e={}){if(!n||!(e&&e.list&&e.list.length))return!1;let t=e.list,i=Ae(n);return t.some(s=>s.pagePath===i)}var As=!!fn.uniIdRouter,{loginPage:Ce,routerNeedLogin:Cs,resToLogin:Ps,needLoginPage:zn,notNeedLoginPage:Ls,loginPageInTabBar:Es}=function({pages:n=[],subPackages:e=[],uniIdRouter:t={},tabBar:i={}}=fn){let{loginPage:s,needLogin:o=[],resToLogin:a=!0}=t,{needLoginPage:r,notNeedLoginPage:l}=hn(n),{needLoginPage:c,notNeedLoginPage:g}=function(d=[]){let p=[],m=[];return d.forEach(_=>{let{root:h,pages:u=[]}=_,{needLoginPage:f,notNeedLoginPage:y}=hn(u,h);p.push(...f),m.push(...y)}),{needLoginPage:p,notNeedLoginPage:m}}(e);return{loginPage:s,routerNeedLogin:o,resToLogin:a,needLoginPage:[...r,...c],notNeedLoginPage:[...l,...g],loginPageInTabBar:Is(s,i)}}();if(zn.indexOf(Ce)>-1)throw new Error(`Login page [${Ce}] should not be "needLogin", please check your pages.json`);function Jn(n){let e=Vn();if(n.charAt(0)==="/")return n;let[t,i]=n.split("?"),s=t.replace(/^\//,"").split("/"),o=e.split("/");o.pop();for(let a=0;a<s.length;a++){let r=s[a];r===".."?o.pop():r!=="."&&o.push(r)}return o[0]===""&&o.shift(),"/"+o.join("/")+(i?"?"+i:"")}function Bs(n){let e=Ae(Jn(n));return!(Ls.indexOf(e)>-1)&&(zn.indexOf(e)>-1||Cs.some(t=>function(i,s){return new RegExp(s).test(i)}(n,t)))}function Hn({redirect:n}){let e=Ae(n),t=Ae(Ce);return Vn()!==t&&e!==t}function kt({api:n,redirect:e}={}){if(!e||!Hn({redirect:e}))return;let t=function(s,o){return s.charAt(0)!=="/"&&(s="/"+s),o?s.indexOf("?")>-1?s+`&uniIdRedirectUrl=${encodeURIComponent(o)}`:s+`?uniIdRedirectUrl=${encodeURIComponent(o)}`:s}(Ce,e);Es?n!=="navigateTo"&&n!=="redirectTo"||(n="switchTab"):n==="switchTab"&&(n="navigateTo");let i={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout(()=>{i[n]({url:t})},0)}function pn({url:n}={}){let e={abortLoginPageJump:!1,autoToLoginPage:!1},t=function(){let{token:i,tokenExpired:s}=Se(),o;if(i){if(s<Date.now()){let a="uni-id-token-expired";o={errCode:a,errMsg:xt[a]}}}else{let a="uni-id-check-token-failed";o={errCode:a,errMsg:xt[a]}}return o}();if(Bs(n)&&t){if(t.uniIdRedirectUrl=n,Pe(fe).length>0)return setTimeout(()=>{K(fe,t)},0),e.abortLoginPageJump=!0,e;e.autoToLoginPage=!0}return e}function Ds(){(function(){let e=Lt(),{abortLoginPageJump:t,autoToLoginPage:i}=pn({url:e});t||i&&kt({api:"redirectTo",redirect:e})})();let n=["navigateTo","redirectTo","reLaunch","switchTab"];for(let e=0;e<n.length;e++){let t=n[e];uni.addInterceptor(t,{invoke(i){let{abortLoginPageJump:s,autoToLoginPage:o}=pn({url:i.url});return s?i:o?(kt({api:t,redirect:Jn(i.url)}),!1):i}})}}function Rs(){this.onResponse(n=>{let{type:e,content:t}=n,i=!1;switch(e){case"cloudobject":i=function(s){if(typeof s!="object")return!1;let{errCode:o}=s||{};return o in xt}(t);break;case"clientdb":i=function(s){if(typeof s!="object")return!1;let{errCode:o}=s||{};return o in Ss}(t)}i&&function(s={}){let o=Pe(fe);wn().then(()=>{let a=Lt();if(a&&Hn({redirect:a}))return o.length>0?K(fe,Object.assign({uniIdRedirectUrl:a},s)):void(Ce&&kt({api:"navigateTo",redirect:a}))})}(t)})}function Os(n){(function(e){e.onResponse=function(t){$e(Q,t)},e.offResponse=function(t){et(Q,t)}})(n),function(e){e.onNeedLogin=function(t){$e(fe,t)},e.offNeedLogin=function(t){et(fe,t)},As&&(ge("_globalUniCloudStatus").needLoginInit||(ge("_globalUniCloudStatus").needLoginInit=!0,wn().then(()=>{Ds.call(e)}),Ps&&Rs.call(e)))}(n),function(e){e.onRefreshToken=function(t){$e(qe,t)},e.offRefreshToken=function(t){et(qe,t)}}(n)}var Wn,Ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ns=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Fs(){let n=Se().token||"",e=n.split(".");if(!n||e.length!==3)return{uid:null,role:[],permission:[],tokenExpired:0};let t;try{t=JSON.parse((i=e[1],decodeURIComponent(Wn(i).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(s){throw new Error("\u83B7\u53D6\u5F53\u524D\u7528\u6237\u4FE1\u606F\u51FA\u9519\uFF0C\u8BE6\u7EC6\u9519\u8BEF\u4FE1\u606F\u4E3A\uFF1A"+s.message)}var i;return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}Wn=typeof atob!="function"?function(n){if(n=String(n).replace(/[\t\n\f\r ]+/g,""),!Ns.test(n))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;n+="==".slice(2-(3&n.length));for(var t,i,s="",o=0;o<n.length;)e=Ue.indexOf(n.charAt(o++))<<18|Ue.indexOf(n.charAt(o++))<<12|(t=Ue.indexOf(n.charAt(o++)))<<6|(i=Ue.indexOf(n.charAt(o++))),s+=t===64?String.fromCharCode(e>>16&255):i===64?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return s}:atob;var Us=Z(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});let t="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function s(a,r){return a.tempFiles.forEach((l,c)=>{l.name||(l.name=l.path.substring(l.path.lastIndexOf("/")+1)),r&&(l.fileType=r),l.cloudPath=Date.now()+"_"+c+l.name.substring(l.name.lastIndexOf("."))}),a.tempFilePaths||(a.tempFilePaths=a.tempFiles.map(l=>l.path)),a}function o(a,r,{onChooseFile:l,onUploadProgress:c}){return r.then(g=>{if(l){let d=l(g);if(d!==void 0)return Promise.resolve(d).then(p=>p===void 0?g:p)}return g}).then(g=>g===!1?{errMsg:t,tempFilePaths:[],tempFiles:[]}:function(d,p,m=5,_){(p=Object.assign({},p)).errMsg=t;let h=p.tempFiles,u=h.length,f=0;return new Promise(y=>{for(;f<m;)v();function v(){let w=f++;if(w>=u)return void(!h.find(C=>!C.url&&!C.errMsg)&&y(p));let I=h[w];d.uploadFile({provider:I.provider,filePath:I.path,cloudPath:I.cloudPath,fileType:I.fileType,cloudPathAsRealPath:I.cloudPathAsRealPath,onUploadProgress(C){C.index=w,C.tempFile=I,C.tempFilePath=I.path,_&&_(C)}}).then(C=>{I.url=C.fileID,w<u&&v()}).catch(C=>{I.errMsg=C.errMsg||C.message,w<u&&v()})}})}(a,g,5,c))}e.initChooseAndUploadFile=function(a){return function(r={type:"all"}){return r.type==="image"?o(a,function(l){let{count:c,sizeType:g,sourceType:d=["album","camera"],extension:p}=l;return new Promise((m,_)=>{uni.chooseImage({count:c,sizeType:g,sourceType:d,extension:p,success(h){m(s(h,"image"))},fail(h){_({errMsg:h.errMsg.replace("chooseImage:fail",i)})}})})}(r),r):r.type==="video"?o(a,function(l){let{camera:c,compressed:g,maxDuration:d,sourceType:p=["album","camera"],extension:m}=l;return new Promise((_,h)=>{uni.chooseVideo({camera:c,compressed:g,maxDuration:d,sourceType:p,extension:m,success(u){let{tempFilePath:f,duration:y,size:v,height:w,width:I}=u;_(s({errMsg:"chooseVideo:ok",tempFilePaths:[f],tempFiles:[{name:u.tempFile&&u.tempFile.name||"",path:f,size:v,type:u.tempFile&&u.tempFile.type||"",width:I,height:w,duration:y,fileType:"video",cloudPath:""}]},"video"))},fail(u){h({errMsg:u.errMsg.replace("chooseVideo:fail",i)})}})})}(r),r):o(a,function(l){let{count:c,extension:g}=l;return new Promise((d,p)=>{let m=uni.chooseFile;if(typeof wx!="undefined"&&typeof wx.chooseMessageFile=="function"&&(m=wx.chooseMessageFile),typeof m!="function")return p({errMsg:i+" \u8BF7\u6307\u5B9A type \u7C7B\u578B\uFF0C\u8BE5\u5E73\u53F0\u4EC5\u652F\u6301\u9009\u62E9 image \u6216 video\u3002"});m({type:"all",count:c,extension:g,success(_){d(s(_))},fail(_){p({errMsg:_.errMsg.replace("chooseFile:fail",i)})}})})}(r),r)}}}),Ms=xi(Us),js="manual";function Kn(n){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},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:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch(()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach(t=>{e.push(this[t])}),e},(e,t)=>{if(this.loadtime===js)return;let i=!1,s=[];for(let o=2;o<e.length;o++)e[o]!==t[o]&&(s.push(e[o]),i=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(i,s)})},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:i}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then(s=>{this.mixinDatacomLoading=!1;let{data:o,count:a}=s.result;this.getcount&&(this.mixinDatacomPage.count=a),this.mixinDatacomHasMore=o.length<this.pageSize;let r=e?o.length?o[0]:void 0:o;this.mixinDatacomResData=r,t&&t(r)}).catch(s=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=s,this.mixinDatacomError=s,i&&i(s)}))},mixinDatacomGet(e={}){let t;e=e||{},t=typeof __uniX!="undefined"&&__uniX?n.databaseForJQL(this.spaceInfo):n.database(this.spaceInfo);let i=e.action||this.action;i&&(t=t.action(i));let s=e.collection||this.collection;t=Array.isArray(s)?t.collection(...s):t.collection(s);let o=e.where||this.where;o&&Object.keys(o).length&&(t=t.where(o));let a=e.field||this.field;a&&(t=t.field(a));let r=e.foreignKey||this.foreignKey;r&&(t=t.foreignKey(r));let l=e.groupby||this.groupby;l&&(t=t.groupBy(l));let c=e.groupField||this.groupField;c&&(t=t.groupField(c)),(e.distinct!==void 0?e.distinct:this.distinct)===!0&&(t=t.distinct());let g=e.orderby||this.orderby;g&&(t=t.orderBy(g));let d=e.pageCurrent!==void 0?e.pageCurrent:this.mixinDatacomPage.current,p=e.pageSize!==void 0?e.pageSize:this.mixinDatacomPage.size,m=e.getcount!==void 0?e.getcount:this.getcount,_=e.gettree!==void 0?e.gettree:this.gettree,h=e.gettreepath!==void 0?e.gettreepath:this.gettreepath,u={getCount:m},f={limitLevel:e.limitlevel!==void 0?e.limitlevel:this.limitlevel,startWith:e.startwith!==void 0?e.startwith:this.startwith};return _&&(u.getTree=f),h&&(u.getTreePath=f),t=t.skip(p*(d-1)).limit(p).get(u),t}}}}function qs(n){return function(e,t={}){t=function(l,c={}){return l.customUI=c.customUI||l.customUI,l.parseSystemError=c.parseSystemError||l.parseSystemError,Object.assign(l.loadingOptions,c.loadingOptions),Object.assign(l.errorOptions,c.errorOptions),typeof c.secretMethods=="object"&&(l.secretMethods=c.secretMethods),l}({customUI:!1,loadingOptions:{title:"\u52A0\u8F7D\u4E2D...",mask:!0},errorOptions:{type:"modal",retry:!1}},t);let{customUI:i,loadingOptions:s,errorOptions:o,parseSystemError:a}=t,r=!i;return new Proxy({},{get(l,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:g,interceptorName:d,getCallbackArgs:p}={}){return function(...m){return P(this,null,function*(){let _=p?p({params:m}):{},h,u;try{return yield V(z(d,"invoke"),R({},_)),h=yield g(...m),yield V(z(d,"success"),q(R({},_),{result:h})),h}catch(f){throw u=f,yield V(z(d,"fail"),q(R({},_),{error:u})),u}finally{yield V(z(d,"complete"),u?q(R({},_),{error:u}):q(R({},_),{result:h}))}})}}({fn:function g(...d){return P(this,null,function*(){let p;r&&uni.showLoading({title:s.title,mask:s.mask});let m={name:e,type:Ci,data:{method:c,params:d}};typeof t.secretMethods=="object"&&function(v,w){let I=w.data.method,C=v.secretMethods||{},B=C[I]||C["*"];B&&(w.secretType=B)}(t,m);let _=!1;try{p=yield n.callFunction(m)}catch(v){_=!0,p={result:new A(v)}}let{errSubject:h,errCode:u,errMsg:f,newToken:y}=p.result||{};if(r&&uni.hideLoading(),y&&y.token&&y.tokenExpired&&(kn(y),K(qe,R({},y))),u){let v=f;if(_&&a&&(v=(yield a({objectName:e,methodName:c,params:d,errSubject:h,errCode:u,errMsg:f})).errMsg||f),r)if(o.type==="toast")uni.showToast({title:v,icon:"none"});else{if(o.type!=="modal")throw new Error(`Invalid errorOptions.type: ${o.type}`);{let{confirm:I}=yield function(){return P(this,arguments,function*({title:C,content:B,showCancel:D,cancelText:U,confirmText:$}={}){return new Promise((H,oe)=>{uni.showModal({title:C,content:B,showCancel:D,cancelText:U,confirmText:$,success(ee){H(ee)},fail(){H({confirm:!1,cancel:!0})}})})})}({title:"\u63D0\u793A",content:v,showCancel:o.retry,cancelText:"\u53D6\u6D88",confirmText:o.retry?"\u91CD\u8BD5":"\u786E\u5B9A"});if(o.retry&&I)return g(...d)}}let w=new A({subject:h,code:u,message:f,requestId:p.requestId});throw w.detail=p.result,K(Q,{type:Wt,content:w}),w}return K(Q,{type:Wt,content:p.result}),p.result})},interceptorName:"callObject",getCallbackArgs:function({params:g}={}){return{objectName:e,methodName:c,params:g}}})}})}}function Gn(n){return ge("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",n.config.spaceId))}function Vs(){return P(this,arguments,function*({openid:n,callLoginByWeixin:e=!1}={}){throw Gn(this),new Error(`[SecureNetwork] API \`initSecureNetworkByWeixin\` is not supported on platform \`${At}\``)})}function zs(n){return P(this,null,function*(){let e=Gn(this);return e.initPromise||(e.initPromise=Vs.call(this,n).then(t=>t).catch(t=>{throw delete e.initPromise,t})),e.initPromise})}function Js(n){return function({openid:e,callLoginByWeixin:t=!1}={}){return zs.call(n,{openid:e,callLoginByWeixin:t})}}function Hs(n){(function(e){ct=e})(n)}function gn(n){let e={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(t){return new Promise((i,s)=>{e[n](q(R({},t),{success(o){i(o)},fail(o){s(o)}}))})}}var St=class extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');let i=this._callback[e];if(!i)return;let s=function(o,a){for(let r=o.length-1;r>=0;r--)if(o[r]===a)return r;return-1}(i,t);i.splice(s,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){let i=this._callback[e];if(i)for(let s=0;s<i.length;s++)i[s](...t)}}{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([gn("getSystemInfo")(),gn("getPushClientId")()]).then(([{appId:e}={},{cid:t}={}]=[])=>{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()},e=>{throw this.emit("error",e),this.close(),e})}open(){return P(this,null,function*(){return this.init()})}_isUniCloudSSE(e){if(e.type!=="receive")return!1;let t=e&&e.data&&e.data.payload;return!(!t||t.channel!=="UNI_CLOUD_SSE"||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;let t=e&&e.data&&e.data.payload,{action:i,messageId:s,message:o}=t;this._payloadQueue.push({action:i,messageId:s,message:o}),this._consumMessage()}_consumMessage(){for(;;){let e=this._payloadQueue.find(t=>t.messageId===this._currentMessageId+1);if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){let{action:t,messageId:i,message:s}=e;t==="end"?this._end({messageId:i,message:s}):t==="message"&&this._appendMessage({messageId:i,message:s})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){uni.onPushMessage(this._uniPushMessageCallback)}_destroy(){uni.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}};function Ws(n){n._initPromiseHub||(n._initPromiseHub=new je({createPromise:function(){let e=Promise.resolve();var t;t=1,e=new Promise(s=>{setTimeout(()=>{s()},t)});let i=n.auth();return e.then(()=>i.getLoginState()).then(s=>s?Promise.resolve():i.signInAnonymously())}}))}var Ks={tcb:tn,tencent:tn,aliyun:Vi,private:nn,dcloud:nn,alipay:ps},W=new class{init(n){let e={},t=Ks[n.provider];if(!t)throw new Error("\u672A\u63D0\u4F9B\u6B63\u786E\u7684provider\u53C2\u6570");return e=t.init(n),Ws(e),xs(e),function(i){let s=i.uploadFile;i.uploadFile=function(o){return s.call(this,o)}}(e),function(i){i.database=function(s){if(s&&Object.keys(s).length>0)return i.init(s).database();if(this._database)return this._database;let o=un(Ge,{uniClient:i});return this._database=o,o},i.databaseForJQL=function(s){if(s&&Object.keys(s).length>0)return i.init(s).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;let o=un(Ge,{uniClient:i,isJQL:!0});return this._databaseForJQL=o,o}}(e),function(i){i.getCurrentUserInfo=Fs,i.chooseAndUploadFile=Ms.initChooseAndUploadFile(i),Object.assign(i,{get mixinDatacom(){return Kn(i)}}),i.SSEChannel=St,i.initSecureNetworkByWeixin=Js(i),i.setCustomClientInfo=Hs,i.importObject=qs(i)}(e),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach(i=>{if(!e[i])return;let s=e[i];e[i]=function(){return s.apply(e,Array.from(arguments))},e[i]=function(o,a){return function(r){let l=!1;a==="callFunction"&&(l=(r&&r.type||qt)!==qt);let c=a==="callFunction"&&!l,g=this._initPromiseHub.exec();r=r||{};let{success:d,fail:p,complete:m}=Tn(r),_=g.then(()=>l?Promise.resolve():V(z(a,"invoke"),r)).then(()=>o.call(this,r)).then(h=>l?Promise.resolve(h):V(z(a,"success"),h).then(()=>V(z(a,"complete"),h)).then(()=>(c&&K(Q,{type:Ne,content:h}),Promise.resolve(h))),h=>l?Promise.reject(h):V(z(a,"fail"),h).then(()=>V(z(a,"complete"),h)).then(()=>(K(Q,{type:Ne,content:h}),Promise.reject(h))));if(!(d||p||m))return _;_.then(h=>{d&&d(h),m&&m(h),c&&K(Q,{type:Ne,content:h})},h=>{p&&p(h),m&&m(h),c&&K(Q,{type:Ne,content:h})})}}(e[i],i).bind(e)}),e.init=this.init,e}};(()=>{let n=Oi,e={};if(n&&n.length===1)e=n[0],W=W.init(e),W._isDefault=!0;else{let t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"],i;i=n&&n.length>0?"\u5E94\u7528\u6709\u591A\u4E2A\u670D\u52A1\u7A7A\u95F4\uFF0C\u8BF7\u901A\u8FC7uniCloud.init\u65B9\u6CD5\u6307\u5B9A\u8981\u4F7F\u7528\u7684\u670D\u52A1\u7A7A\u95F4":"\u5E94\u7528\u672A\u5173\u8054\u670D\u52A1\u7A7A\u95F4\uFF0C\u8BF7\u5728uniCloud\u76EE\u5F55\u53F3\u952E\u5173\u8054\u670D\u52A1\u7A7A\u95F4",t.forEach(s=>{W[s]=function(){return console.error(i),Promise.reject(new A({code:"SYS_ERR",message:i}))}})}if(Object.assign(W,{get mixinDatacom(){return Kn(W)}}),Os(W),W.addInterceptor=bn,W.removeInterceptor=Ui,W.interceptObject=Mi,uni.__uniCloud=W,At==="app"){let t=Fi();t.uniCloud=W,t.UniCloudError=A}})();var Yn=W;var Gs=n=>n!==null&&typeof n=="object",Ys=["{","}"],Bt=class{constructor(){this._caches=Object.create(null)}interpolate(e,t,i=Ys){if(!t)return[e];let s=this._caches[e];return s||(s=Xs(e,i),this._caches[e]=s),$s(s,t)}},Qs=/^(?:\d)+/,Zs=/^(?:\w)+/;function Xs(n,[e,t]){let i=[],s=0,o="";for(;s<n.length;){let a=n[s++];if(a===e){o&&i.push({type:"text",value:o}),o="";let r="";for(a=n[s++];a!==void 0&&a!==t;)r+=a,a=n[s++];let l=a===t,c=Qs.test(r)?"list":l&&Zs.test(r)?"named":"unknown";i.push({value:r,type:c})}else o+=a}return o&&i.push({type:"text",value:o}),i}function $s(n,e){let t=[],i=0,s=Array.isArray(e)?"list":Gs(e)?"named":"unknown";if(s==="unknown")return t;for(;i<n.length;){let o=n[i];switch(o.type){case"text":t.push(o.value);break;case"list":t.push(e[parseInt(o.value,10)]);break;case"named":s==="named"&&t.push(e[o.value]);break}i++}return t}var Et="zh-Hans",Qn="zh-Hant",_e="en",eo="fr",to="es",no=Object.prototype.hasOwnProperty,Zn=(n,e)=>no.call(n,e),io=new Bt;function so(n,e){return!!e.find(t=>n.indexOf(t)!==-1)}function oo(n,e){return e.find(t=>n.indexOf(t)===0)}function Xn(n,e){if(!n)return;if(n=n.trim().replace(/_/g,"-"),e&&e[n])return n;if(n=n.toLowerCase(),n==="chinese")return Et;if(n.indexOf("zh")===0)return n.indexOf("-hans")>-1?Et:n.indexOf("-hant")>-1||so(n,["-tw","-hk","-mo","-cht"])?Qn:Et;let t=[_e,eo,to];e&&Object.keys(e).length>0&&(t=Object.keys(e));let i=oo(n,t);if(i)return i}var Dt=class{constructor({locale:e,fallbackLocale:t,messages:i,watcher:s,formater:o}){this.locale=_e,this.fallbackLocale=_e,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=o||io,this.messages=i||{},this.setLocale(e||_e),s&&this.watchLocale(s)}setLocale(e){let t=this.locale;this.locale=Xn(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach(i=>{i(this.locale,t)})}getLocale(){return this.locale}watchLocale(e){let t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,i=!0){let s=this.messages[e];s?i?Object.assign(s,t):Object.keys(t).forEach(o=>{Zn(s,o)||(s[o]=t[o])}):this.messages[e]=t}f(e,t,i){return this.formater.interpolate(e,t,i).join("")}t(e,t,i){let s=this.message;return typeof t=="string"?(t=Xn(t,this.messages),t&&(s=this.messages[t])):i=t,Zn(s,e)?this.formater.interpolate(s[e],i).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}};function ao(n,e){n.$watchLocale?n.$watchLocale(t=>{e.setLocale(t)}):n.$watch(()=>n.$locale,t=>{e.setLocale(t)})}function ro(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof global!="undefined"&&global.getLocale?global.getLocale():_e}function $n(n,e={},t,i){if(typeof n!="string"){let a=[e,n];n=a[0],e=a[1]}typeof n!="string"&&(n=ro()),typeof t!="string"&&(t=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||_e);let s=new Dt({locale:n,fallbackLocale:t,messages:e,watcher:i}),o=(a,r)=>{if(typeof getApp!="function")o=function(l,c){return s.t(l,c)};else{let l=!1;o=function(c,g){let d=getApp().$vm;return d&&(d.$locale,l||(l=!0,ao(d,s))),s.t(c,g)}}return o(a,r)};return{i18n:s,f(a,r,l){return s.f(a,r,l)},t(a,r){return o(a,r)},add(a,r,l=!0){return s.add(a,r,l)},watch(a){return s.watchLocale(a)},getLocale(){return s.getLocale()},setLocale(a){return s.setLocale(a)}}}var j=re(te());var co={"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},lo={"uni-load-more.contentdown":"\u4E0A\u62C9\u663E\u793A\u66F4\u591A","uni-load-more.contentrefresh":"\u6B63\u5728\u52A0\u8F7D...","uni-load-more.contentnomore":"\u6CA1\u6709\u66F4\u591A\u6570\u636E\u4E86"},uo={"uni-load-more.contentdown":"\u4E0A\u62C9\u986F\u793A\u66F4\u591A","uni-load-more.contentrefresh":"\u6B63\u5728\u52A0\u8F09...","uni-load-more.contentnomore":"\u6C92\u6709\u66F4\u591A\u6578\u64DA\u4E86"},ho={en:co,"zh-Hans":lo,"zh-Hant":uo},po={"uni-load-more":{"":{flexDirection:"row",height:40,alignItems:"center",justifyContent:"center"}},"uni-load-more__text":{"":{fontSize:14,marginLeft:8}},"uni-load-more__img":{"":{width:24,height:24}},"uni-load-more__img--nvue":{"":{color:"#666666"}},"uni-load-more__img--android":{"":{width:24,height:24,transform:"rotate(0deg)"}},"uni-load-more__img--ios":{"":{width:24,height:24,transform:"rotate(0deg)"}}},ei;setTimeout(()=>{ei=uni.getSystemInfoSync().platform},16);var{t:Rt}=$n(ho),go={name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default(){return{contentdown:"",contentrefresh:"",contentnomore:""}}},showText:{type:Boolean,default:!0}},data(){return{webviewHide:!1,platform:ei,imgBase64:"data:image/png;base64, "}},computed:{iconSnowWidth(){return(Math.floor(this.iconSize/24)||1)*2},contentdownText(){return this.contentText.contentdown||Rt("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||Rt("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||Rt("uni-load-more.contentnomore")}},mounted(){var n=getCurrentPages(),e=n[n.length-1],t=e.$getAppWebview();t.addEventListener("hide",()=>{this.webviewHide=!0}),t.addEventListener("show",()=>{this.webviewHide=!1})},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}};function fo(n,e,t,i,s,o){return(0,j.openBlock)(),(0,j.createElementBlock)("view",{class:"uni-load-more",onClick:e[0]||(e[0]=(...a)=>o.onClick&&o.onClick(...a)),renderWhole:!0},[!s.webviewHide&&t.status==="loading"&&t.showIcon?((0,j.openBlock)(),(0,j.createElementBlock)("loading-indicator",{key:0,style:(0,j.normalizeStyle)({color:t.color,width:t.iconSize+"px",height:t.iconSize+"px"}),animating:!0,class:"uni-load-more__img uni-load-more__img--nvue"},null,4)):(0,j.createCommentVNode)("",!0),t.showText?((0,j.openBlock)(),(0,j.createElementBlock)("u-text",{key:1,class:"uni-load-more__text",style:(0,j.normalizeStyle)({color:t.color})},(0,j.toDisplayString)(t.status==="more"?o.contentdownText:t.status==="loading"?o.contentrefreshText:o.contentnomoreText),5)):(0,j.createCommentVNode)("",!0)])}var ti=G(go,[["render",fo],["styles",[po]]]);var b=re(te());var mo={"uni-data-loading":{"":{flexDirection:"row",justifyContent:"center",alignItems:"center",height:36,paddingLeft:10,color:"#999999"}},"uni-data-checklist":{"":{position:"relative",zIndex:0,flex:1}},"checklist-group":{".uni-data-checklist ":{flexDirection:"row",flexWrap:"wrap"},".uni-data-checklist .is-list":{flexDirection:"column"}},"checklist-box":{".uni-data-checklist .checklist-group ":{flexDirection:"row",alignItems:"center",position:"relative",marginTop:5,marginRight:25,marginBottom:5,marginLeft:0},".uni-data-checklist .checklist-group .is--button":{marginRight:10,paddingTop:5,paddingRight:10,paddingBottom:5,paddingLeft:10,borderWidth:1,borderStyle:"solid",borderColor:"#DCDFE6",borderRadius:3,transitionProperty:"borderColor",transitionDuration:200},".uni-data-checklist .checklist-group .is--button.is-disable":{borderWidth:1,borderStyle:"solid",borderColor:"#eeeeee",opacity:.4},".uni-data-checklist .checklist-group .is--button.is-checked":{borderColor:"#2979ff"},".uni-data-checklist .checklist-group .is--button.is-checked.is-disable":{opacity:.4},".uni-data-checklist .checklist-group .is--tag":{marginRight:10,paddingTop:5,paddingRight:10,paddingBottom:5,paddingLeft:10,borderWidth:1,borderStyle:"solid",borderColor:"#DCDFE6",borderRadius:3,backgroundColor:"#f5f5f5"},".uni-data-checklist .checklist-group .is--tag.is-disable":{opacity:.4},".uni-data-checklist .checklist-group .is--tag.is-checked":{backgroundColor:"#2979ff",borderColor:"#2979ff"},".uni-data-checklist .checklist-group .is--list":{paddingTop:10,paddingRight:15,paddingBottom:10,paddingLeft:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0},".uni-data-checklist .checklist-group .is--list.is-list-border":{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"#eeeeee"}},hidden:{".uni-data-checklist .checklist-group .checklist-box ":{position:"absolute",opacity:0}},"checklist-content":{".uni-data-checklist .checklist-group .checklist-box ":{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"space-between"}},"checklist-text":{".uni-data-checklist .checklist-group .checklist-box .checklist-content ":{fontSize:14,color:"#666666",marginLeft:5,lineHeight:14},".uni-data-checklist .checklist-group .checklist-box.is--default.is-disable ":{color:"#999999"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked ":{color:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable ":{opacity:.4},".uni-data-checklist .checklist-group .checklist-box.is--button.is-disable ":{color:"#999999"},".uni-data-checklist .checklist-group .checklist-box.is--button.is-checked ":{color:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--tag ":{marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,color:"#666666"},".uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked ":{color:"#ffffff"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-disable ":{color:"#999999"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked ":{color:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked.is-disable ":{opacity:.4}},checkobx__list:{".uni-data-checklist .checklist-group .checklist-box .checklist-content ":{borderRightWidth:1,borderRightColor:"#007aff",borderRightStyle:"solid",borderBottomWidth:1,borderBottomColor:"#007aff",borderBottomStyle:"solid",height:12,width:6,left:-5,transformOrigin:"center",transform:"rotate(45deg)",opacity:0},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checklist-content ":{opacity:1,borderColor:"#2979ff"}},checkbox__inner:{".uni-data-checklist .checklist-group .checklist-box ":{position:"relative",width:16,height:16,borderWidth:1,borderStyle:"solid",borderColor:"#DCDFE6",borderRadius:4,backgroundColor:"#ffffff",zIndex:1},".uni-data-checklist .checklist-group .checklist-box.is--default.is-disable ":{backgroundColor:"#F2F6FC",borderColor:"#DCDFE6"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked ":{borderColor:"#2979ff",backgroundColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable ":{opacity:.4},".uni-data-checklist .checklist-group .checklist-box.is--button.is-disable ":{backgroundColor:"#F2F6FC",borderColor:"#DCDFE6"},".uni-data-checklist .checklist-group .checklist-box.is--button.is-checked ":{borderColor:"#2979ff",backgroundColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-disable ":{backgroundColor:"#F2F6FC",borderColor:"#DCDFE6"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked ":{borderColor:"#2979ff",backgroundColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked.is-disable ":{opacity:.4}},"checkbox__inner-icon":{".uni-data-checklist .checklist-group .checklist-box .checkbox__inner ":{position:"absolute",top:2,left:5,height:8,width:4,borderRightWidth:1,borderRightColor:"#ffffff",borderRightStyle:"solid",borderBottomWidth:1,borderBottomColor:"#ffffff",borderBottomStyle:"solid",opacity:0,transformOrigin:"center",transform:"rotate(40deg)"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checkbox__inner ":{opacity:1,transform:"rotate(45deg)"},".uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .checkbox__inner ":{opacity:1,transform:"rotate(45deg)"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checkbox__inner ":{opacity:1,transform:"rotate(45deg)"}},radio__inner:{".uni-data-checklist .checklist-group .checklist-box ":{justifyContent:"center",alignItems:"center",position:"relative",width:16,height:16,borderWidth:1,borderStyle:"solid",borderColor:"#DCDFE6",borderRadius:16,backgroundColor:"#ffffff",zIndex:1},".uni-data-checklist .checklist-group .checklist-box.is--default.is-disable ":{backgroundColor:"#F2F6FC",borderColor:"#DCDFE6"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked ":{borderColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable ":{opacity:.4},".uni-data-checklist .checklist-group .checklist-box.is--button.is-disable ":{backgroundColor:"#F2F6FC",borderColor:"#DCDFE6"},".uni-data-checklist .checklist-group .checklist-box.is--button.is-checked ":{borderColor:"#2979ff"}},"radio__inner-icon":{".uni-data-checklist .checklist-group .checklist-box .radio__inner ":{width:8,height:8,borderRadius:10,opacity:0},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .radio__inner ":{opacity:1,backgroundColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .radio__inner ":{opacity:1,backgroundColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .radio__inner ":{opacity:1}},"@TRANSITION":{"checklist-box":{property:"borderColor",duration:200}}},yo={name:"uniDataChecklist",mixins:[Yn.mixinDatacom||{}],emits:["input","update:modelValue","change"],props:{mode:{type:String,default:"default"},multiple:{type:Boolean,default:!1},value:{type:[Array,String,Number],default(){return""}},modelValue:{type:[Array,String,Number],default(){return""}},localdata:{type:Array,default(){return[]}},min:{type:[Number,String],default:""},max:{type:[Number,String],default:""},wrap:{type:Boolean,default:!1},icon:{type:String,default:"left"},selectedColor:{type:String,default:""},selectedTextColor:{type:String,default:""},emptyText:{type:String,default:"\u6682\u65E0\u6570\u636E"},disabled:{type:Boolean,default:!1},map:{type:Object,default(){return{text:"text",value:"value"}}}},watch:{localdata:{handler(n){this.range=n,this.dataList=this.getDataList(this.getSelectedValue(n))},deep:!0},mixinDatacomResData(n){this.range=n,this.dataList=this.getDataList(this.getSelectedValue(n))},value(n){this.dataList=this.getDataList(n)},modelValue(n){this.dataList=this.getDataList(n)}},data(){return{dataList:[],range:[],contentText:{contentdown:"\u67E5\u770B\u66F4\u591A",contentrefresh:"\u52A0\u8F7D\u4E2D",contentnomore:"\u6CA1\u6709\u66F4\u591A"},isLocal:!0,styles:{selectedColor:"#2979ff",selectedTextColor:"#666"},isTop:0}},computed:{dataValue(){return this.value===""?this.modelValue:this.modelValue===""?this.value:this.value}},created(){this.localdata&&this.localdata.length!==0?(this.isLocal=!0,this.range=this.localdata,this.dataList=this.getDataList(this.getSelectedValue(this.range))):this.collection&&(this.isLocal=!1,this.loadData())},methods:{loadData(){this.mixinDatacomGet().then(n=>{this.mixinDatacomResData=n.result.data,this.mixinDatacomResData.length===0?(this.isLocal=!1,this.mixinDatacomErrorMessage=this.emptyText):this.isLocal=!0}).catch(n=>{this.mixinDatacomErrorMessage=n.message})},getForm(n="uniForms"){let e=this.$parent,t=e.$options.name;for(;t!==n;){if(e=e.$parent,!e)return!1;t=e.$options.name}return e},chagne(n){let e=n.detail.value,t={value:[],data:[]};if(this.multiple)this.range.forEach(i=>{e.includes(i[this.map.value]+"")&&(t.value.push(i[this.map.value]),t.data.push(i))});else{let i=this.range.find(s=>s[this.map.value]+""===e);i&&(t={value:i[this.map.value],data:i})}this.$emit("input",t.value),this.$emit("update:modelValue",t.value),this.$emit("change",{detail:t}),this.multiple?this.dataList=this.getDataList(t.value,!0):this.dataList=this.getDataList(t.value)},getDataList(n){let e=JSON.parse(JSON.stringify(this.range)),t=[];return this.multiple&&(Array.isArray(n)||(n=[])),e.forEach((i,s)=>{if(i.disabled=i.disable||i.disabled||!1,this.multiple)if(n.length>0){let o=n.find(a=>a===i[this.map.value]);i.selected=o!==void 0}else i.selected=!1;else i.selected=n===i[this.map.value];t.push(i)}),this.setRange(t)},setRange(n){let e=n.filter(s=>s.selected),t=Number(this.min)||0,i=Number(this.max)||"";return n.forEach((s,o)=>{this.multiple&&(e.length<=t&&e.find(r=>r[this.map.value]===s[this.map.value])!==void 0&&(s.disabled=!0),e.length>=i&&i!==""&&e.find(r=>r[this.map.value]===s[this.map.value])===void 0&&(s.disabled=!0)),this.setStyles(s,o),n[o]=s}),n},setStyles(n,e){n.styleBackgroud=this.setStyleBackgroud(n),n.styleIcon=this.setStyleIcon(n),n.styleIconText=this.setStyleIconText(n),n.styleRightIcon=this.setStyleRightIcon(n)},getSelectedValue(n){if(!this.multiple)return this.dataValue;let e=[];return n.forEach(t=>{t.selected&&e.push(t[this.map.value])}),this.dataValue.length>0?this.dataValue:e},setStyleBackgroud(n){let e={},t=this.selectedColor?this.selectedColor:"#2979ff";this.mode!=="list"&&(e["border-color"]=n.selected?t:"#DCDFE6"),this.mode==="tag"&&(e["background-color"]=n.selected?t:"#f5f5f5");let i="";for(let s in e)i+=`${s}:${e[s]};`;return i},setStyleIcon(n){let e={},t="",i=this.selectedColor?this.selectedColor:"#2979ff";e["background-color"]=n.selected?i:"#fff",e["border-color"]=n.selected?i:"#DCDFE6",!n.selected&&n.disabled&&(e["background-color"]="#F2F6FC",e["border-color"]=n.selected?i:"#DCDFE6");for(let s in e)t+=`${s}:${e[s]};`;return t},setStyleIconText(n){let e={},t="",i=this.selectedColor?this.selectedColor:"#2979ff";this.mode==="tag"?e.color=n.selected?this.selectedTextColor?this.selectedTextColor:"#fff":"#666":e.color=n.selected?this.selectedTextColor?this.selectedTextColor:i:"#666",!n.selected&&n.disabled&&(e.color="#999");for(let s in e)t+=`${s}:${e[s]};`;return t},setStyleRightIcon(n){let e={},t="";this.mode==="list"&&(e["border-color"]=n.selected?this.styles.selectedColor:"#DCDFE6");for(let i in e)t+=`${i}:${e[i]};`;return t}}};function vo(n,e,t,i,s,o){let a=he((0,b.resolveDynamicComponent)("uni-load-more"),ti),r=(0,b.resolveComponent)("checkbox"),l=(0,b.resolveComponent)("label"),c=(0,b.resolveComponent)("checkbox-group"),g=(0,b.resolveComponent)("radio"),d=(0,b.resolveComponent)("radio-group");return(0,b.openBlock)(),(0,b.createElementBlock)("view",{class:"uni-data-checklist",style:(0,b.normalizeStyle)({"margin-top":s.isTop+"px"}),renderWhole:!0},[s.isLocal?((0,b.openBlock)(),(0,b.createElementBlock)(b.Fragment,{key:1},[t.multiple?((0,b.openBlock)(),(0,b.createBlock)(c,{key:0,class:(0,b.normalizeClass)(["checklist-group",{"is-list":t.mode==="list"||t.wrap}]),onChange:o.chagne},{default:(0,b.withCtx)(()=>[((0,b.openBlock)(!0),(0,b.createElementBlock)(b.Fragment,null,(0,b.renderList)(s.dataList,(p,m)=>((0,b.openBlock)(),(0,b.createBlock)(l,{class:(0,b.normalizeClass)(["checklist-box",["is--"+t.mode,p.selected?"is-checked":"",t.disabled||p.disabled?"is-disable":"",m!==0&&t.mode==="list"?"is-list-border":""]]),style:(0,b.normalizeStyle)(p.styleBackgroud),key:m},{default:(0,b.withCtx)(()=>[(0,b.createVNode)(r,{class:"hidden",hidden:"",disabled:t.disabled||!!p.disabled,value:p[t.map.value]+"",checked:p.selected},null,8,["disabled","value","checked"]),t.mode!=="tag"&&t.mode!=="list"||t.mode==="list"&&t.icon==="left"?((0,b.openBlock)(),(0,b.createElementBlock)("view",{key:0,class:"checkbox__inner",style:(0,b.normalizeStyle)(p.styleIcon)},[(0,b.createElementVNode)("view",{class:"checkbox__inner-icon"})],4)):(0,b.createCommentVNode)("",!0),(0,b.createElementVNode)("view",{class:(0,b.normalizeClass)(["checklist-content",{"list-content":t.mode==="list"&&t.icon==="left"}])},[(0,b.createElementVNode)("u-text",{class:"checklist-text",style:(0,b.normalizeStyle)(p.styleIconText)},(0,b.toDisplayString)(p[t.map.text]),5),t.mode==="list"&&t.icon==="right"?((0,b.openBlock)(),(0,b.createElementBlock)("view",{key:0,class:"checkobx__list",style:(0,b.normalizeStyle)(p.styleBackgroud)},null,4)):(0,b.createCommentVNode)("",!0)],2)]),_:2},1032,["class","style"]))),128))]),_:1},8,["class","onChange"])):((0,b.openBlock)(),(0,b.createBlock)(d,{key:1,class:(0,b.normalizeClass)(["checklist-group",{"is-list":t.mode==="list","is-wrap":t.wrap}]),onChange:o.chagne},{default:(0,b.withCtx)(()=>[((0,b.openBlock)(!0),(0,b.createElementBlock)(b.Fragment,null,(0,b.renderList)(s.dataList,(p,m)=>((0,b.openBlock)(),(0,b.createBlock)(l,{class:(0,b.normalizeClass)(["checklist-box",["is--"+t.mode,p.selected?"is-checked":"",t.disabled||p.disabled?"is-disable":"",m!==0&&t.mode==="list"?"is-list-border":""]]),style:(0,b.normalizeStyle)(p.styleBackgroud),key:m},{default:(0,b.withCtx)(()=>[(0,b.createVNode)(g,{class:"hidden",hidden:"",disabled:t.disabled||p.disabled,value:p[t.map.value]+"",checked:p.selected},null,8,["disabled","value","checked"]),t.mode!=="tag"&&t.mode!=="list"||t.mode==="list"&&t.icon==="left"?((0,b.openBlock)(),(0,b.createElementBlock)("view",{key:0,class:"radio__inner",style:(0,b.normalizeStyle)(p.styleBackgroud)},[(0,b.createElementVNode)("view",{class:"radio__inner-icon",style:(0,b.normalizeStyle)(p.styleIcon)},null,4)],4)):(0,b.createCommentVNode)("",!0),(0,b.createElementVNode)("view",{class:(0,b.normalizeClass)(["checklist-content",{"list-content":t.mode==="list"&&t.icon==="left"}])},[(0,b.createElementVNode)("u-text",{class:"checklist-text",style:(0,b.normalizeStyle)(p.styleIconText)},(0,b.toDisplayString)(p[t.map.text]),5),t.mode==="list"&&t.icon==="right"?((0,b.openBlock)(),(0,b.createElementBlock)("view",{key:0,style:(0,b.normalizeStyle)(p.styleRightIcon),class:"checkobx__list"},null,4)):(0,b.createCommentVNode)("",!0)],2)]),_:2},1032,["class","style"]))),128))]),_:1},8,["class","onChange"]))],64)):((0,b.openBlock)(),(0,b.createElementBlock)("view",{key:0,class:"uni-data-loading"},[n.mixinDatacomErrorMessage?((0,b.openBlock)(),(0,b.createElementBlock)("u-text",{key:1},(0,b.toDisplayString)(n.mixinDatacomErrorMessage),1)):((0,b.openBlock)(),(0,b.createBlock)(a,{key:0,status:"loading",iconType:"snow",iconSize:18,"content-text":s.contentText},null,8,["content-text"]))]))],4)}var ni=G(yo,[["render",vo],["styles",[mo]]]);var O=re(te());var _o={"uni-section":{"":{backgroundColor:"#ffffff"}},"uni-section-header":{".uni-section ":{position:"relative",flexDirection:"row",alignItems:"center",paddingTop:12,paddingRight:10,paddingBottom:12,paddingLeft:10,fontWeight:"normal"}},"uni-section-header__decoration":{".uni-section ":{marginRight:6,backgroundColor:"#2979ff"},".uni-section .line":{width:4,height:12,borderRadius:10},".uni-section .circle":{width:8,height:8,borderTopRightRadius:50,borderTopLeftRadius:50,borderBottomLeftRadius:50,borderBottomRightRadius:50},".uni-section .square":{width:8,height:8}},"uni-section-header__content":{".uni-section ":{flexDirection:"column",flex:1,color:"#333333"}},distraction:{".uni-section .uni-section-header__content ":{flexDirection:"row",alignItems:"center"}},"uni-section-header__content-sub":{".uni-section ":{marginTop:2}},"uni-section-header__slot-right":{".uni-section ":{fontSize:14}},"uni-section-content":{".uni-section ":{fontSize:14}}},bo={name:"UniSection",emits:["click"],props:{type:{type:String,default:""},title:{type:String,required:!0,default:""},titleFontSize:{type:String,default:"14px"},titleColor:{type:String,default:"#333"},subTitle:{type:String,default:""},subTitleFontSize:{type:String,default:"12px"},subTitleColor:{type:String,default:"#999"},padding:{type:[Boolean,String],default:!1}},computed:{_padding(){return typeof this.padding=="string"?this.padding:this.padding?"10px":""}},watch:{title(n){uni.report&&n!==""&&uni.report("title",n)}},methods:{onClick(){this.$emit("click")}}};function wo(n,e,t,i,s,o){return(0,O.openBlock)(),(0,O.createElementBlock)("view",{class:"uni-section",renderWhole:!0},[(0,O.createElementVNode)("view",{class:"uni-section-header",onClick:e[0]||(e[0]=(...a)=>o.onClick&&o.onClick(...a))},[t.type?((0,O.openBlock)(),(0,O.createElementBlock)("view",{key:0,class:(0,O.normalizeClass)(["uni-section-header__decoration",t.type])},null,2)):(0,O.renderSlot)(n.$slots,"decoration",{key:1}),(0,O.createElementVNode)("view",{class:"uni-section-header__content"},[(0,O.createElementVNode)("u-text",{style:(0,O.normalizeStyle)({"font-size":t.titleFontSize,color:t.titleColor}),class:(0,O.normalizeClass)(["uni-section__content-title",{distraction:!t.subTitle}])},(0,O.toDisplayString)(t.title),7),t.subTitle?((0,O.openBlock)(),(0,O.createElementBlock)("u-text",{key:0,style:(0,O.normalizeStyle)({"font-size":t.subTitleFontSize,color:t.subTitleColor}),class:"uni-section-header__content-sub"},(0,O.toDisplayString)(t.subTitle),5)):(0,O.createCommentVNode)("",!0)]),(0,O.createElementVNode)("view",{class:"uni-section-header__slot-right"},[(0,O.renderSlot)(n.$slots,"right")])]),(0,O.createElementVNode)("view",{class:"uni-section-content",style:(0,O.normalizeStyle)({padding:o._padding})},[(0,O.renderSlot)(n.$slots,"default")],4)])}var ii=G(bo,[["render",wo],["styles",[_o]]]);var To={header:{"":{display:"flex",flexDirection:"row",flexWrap:"wrap"}},margin:{"":{display:"flex",height:200,marginTop:10,marginRight:10,marginBottom:10,marginLeft:10,overflow:"hidden",borderRadius:5,borderWidth:1,borderStyle:"solid",borderColor:"#eeeeee"}},"margin-item":{"":{display:"flex",flex:1}},box:{"":{display:"flex",alignItems:"center",justifyContent:"center",flex:1}},actions:{"":{display:"flex",flexDirection:"row",alignItems:"center"}},"action-label":{"":{width:70,marginLeft:10,marginRight:10,fontSize:12}}},xo={data(){return{paddingClass:"uni-pa-5",marginClass:"uni-ma-5",formData:{margin:["t","r","l","b"],marginSize:"5",padding:["t","r","l","b"],paddingSize:"5"},directionData:[{value:"t",text:"\u4E0A"},{value:"r",text:"\u53F3"},{value:"b",text:"\u4E0B"},{value:"l",text:"\u5DE6"}],sizeData:[{value:"0",text:"0"},{value:"2",text:"4px"},{value:"5",text:"10px"},{value:"10",text:"20px"}]}},onLoad(){},methods:{change(n,e){let{margin:t,marginSize:i,padding:s,paddingSize:o}=this.formData;this.marginClass="",this.paddingClass="",t.forEach(a=>{this.marginClass+=`uni-m${a}-${i} `}),s.forEach(a=>{this.marginClass+=`uni-p${a}-${o} `})}}};function ko(n,e,t,i,s,o){let a=he((0,L.resolveDynamicComponent)("uni-card"),jt),r=he((0,L.resolveDynamicComponent)("uni-data-checkbox"),ni),l=he((0,L.resolveDynamicComponent)("uni-section"),ii);return(0,L.openBlock)(),(0,L.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,L.createElementVNode)("view",{class:"container"},[(0,L.createVNode)(a,{"is-shadow":!1,"is-full":""},{default:(0,L.withCtx)(()=>[(0,L.createElementVNode)("view",{class:"header"},[(0,L.createElementVNode)("u-text",{class:"uni-h6"},"\u4F7F\u7528\u95F4\u8DDD\u8F85\u52A9\u7C7B\u5BF9\u5143\u7D20\u5FEB\u901F\u5E94\u7528"),(0,L.createElementVNode)("u-text",null," "),(0,L.createElementVNode)("u-text",{class:"uni-primary uni-px-3 uni-h6"},"margin"),(0,L.createElementVNode)("u-text",{class:"uni-h6"}," \u6216 "),(0,L.createElementVNode)("u-text",{class:"uni-primary uni-px-3 uni-h6"},"padding"),(0,L.createElementVNode)("u-text",null," "),(0,L.createElementVNode)("u-text",{class:"uni-h6"},"\u6837\u5F0F\uFF0C \u8303\u56F4\u662F\u4ECE 0 \u5230 16\u3002")]),(0,L.createElementVNode)("view",{class:"header uni-mt-5"},[(0,L.createElementVNode)("u-text",{class:"uni-h6"},"\u89C4\u5219\u4E3A"),(0,L.createElementVNode)("u-text",null," "),(0,L.createElementVNode)("u-text",{class:"uni-primary uni-pl-3 uni-h6"},"uni-${property}${direction}-${size}")]),(0,L.createElementVNode)("view",{class:"uni-mt-5"},[(0,L.createElementVNode)("u-text",{class:"uni-h6"},"\u5404\u503C\u7684\u542B\u4E49\u8BF7\u53C2\u8003\u6587\u6863")])]),_:1}),(0,L.createVNode)(l,{title:"\u6548\u679C\u5C55\u793A",type:"line"},{default:(0,L.withCtx)(()=>[(0,L.createElementVNode)("view",{class:"margin"},[(0,L.createElementVNode)("view",{class:(0,L.normalizeClass)(["margin-item uni-border-4-bg",[s.paddingClass,s.marginClass]])},[(0,L.createElementVNode)("view",{class:"box uni-primary-bg"},[(0,L.createElementVNode)("u-text",{class:"uni-white uni-body"},"\u901A\u8FC7\u4E0B\u9762\u7684\u9009\u9879\u63A7\u5236\u8FB9\u8DDD")])],2)]),(0,L.createElementVNode)("view",{class:"actions uni-mt-10"},[(0,L.createElementVNode)("u-text",{class:"action-label"},"\u5916\u8FB9\u8DDD"),(0,L.createVNode)(r,{modelValue:s.formData.margin,"onUpdate:modelValue":e[0]||(e[0]=c=>s.formData.margin=c),multiple:"",localdata:s.directionData,onChange:e[1]||(e[1]=c=>o.change(c,1))},null,8,["modelValue","localdata"])]),(0,L.createElementVNode)("view",{class:"actions uni-mt-3 uni-mb-10"},[(0,L.createElementVNode)("u-text",{class:"action-label"},"\u5916\u8FB9\u8DDD\u5927\u5C0F"),(0,L.createVNode)(r,{modelValue:s.formData.marginSize,"onUpdate:modelValue":e[2]||(e[2]=c=>s.formData.marginSize=c),localdata:s.sizeData,onChange:e[3]||(e[3]=c=>o.change(c,1))},null,8,["modelValue","localdata"])]),(0,L.createElementVNode)("view",{class:"actions"},[(0,L.createElementVNode)("u-text",{class:"action-label"},"\u5185\u8FB9\u8DDD"),(0,L.createVNode)(r,{modelValue:s.formData.padding,"onUpdate:modelValue":e[4]||(e[4]=c=>s.formData.padding=c),multiple:"",localdata:s.directionData,onChange:e[5]||(e[5]=c=>o.change(c,2))},null,8,["modelValue","localdata"])]),(0,L.createElementVNode)("view",{class:"actions uni-mt-3 uni-mb-10"},[(0,L.createElementVNode)("u-text",{class:"action-label"},"\u5185\u8FB9\u8DDD\u5927\u5C0F"),(0,L.createVNode)(r,{modelValue:s.formData.paddingSize,"onUpdate:modelValue":e[6]||(e[6]=c=>s.formData.paddingSize=c),localdata:s.sizeData,onChange:e[7]||(e[7]=c=>o.change(c,3))},null,8,["modelValue","localdata"])])]),_:1})])])}var Ye=G(xo,[["render",ko],["styles",[To]]]);var Ot=plus.webview.currentWebview();if(Ot){let n=parseInt(Ot.id),e="pages/extUI/space/space",t={};try{t=JSON.parse(Ot.__query__)}catch(s){}Ye.mpType="page";let i=Vue.createPageApp(Ye,{$store:getApp({allowDefault:!0}).$store,__pageId:n,__pagePath:e,__pageQuery:t});i.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...Ye.styles||[]])),i.mount("#root")}})();
