"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 di=Object.create;var Ye=Object.defineProperty,hi=Object.defineProperties,pi=Object.getOwnPropertyDescriptor,fi=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertyNames,jt=Object.getOwnPropertySymbols,mi=Object.getPrototypeOf,qt=Object.prototype.hasOwnProperty,yi=Object.prototype.propertyIsEnumerable;var Vt=(t,e,n)=>e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,L=(t,e)=>{for(var n in e||(e={}))qt.call(e,n)&&Vt(t,n,e[n]);if(jt)for(var n of jt(e))yi.call(e,n)&&Vt(t,n,e[n]);return t},M=(t,e)=>hi(t,fi(e));var _i=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var vi=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of gi(e))!qt.call(t,s)&&s!==n&&Ye(t,s,{get:()=>e[s],enumerable:!(i=pi(e,s))||i.enumerable});return t};var ce=(t,e,n)=>(n=t!=null?di(mi(t)):{},vi(e||!t||!t.__esModule?Ye(n,"default",{value:t,enumerable:!0}):n,t));var P=(t,e,n)=>new Promise((i,s)=>{var o=l=>{try{r(n.next(l))}catch(c){s(c)}},a=l=>{try{r(n.throw(l))}catch(c){s(c)}},r=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);r((n=n.apply(t,e)).next())});var ee=_i((Vo,zt)=>{zt.exports=Vue});var qo=ce(ee());function we(t,e,...n){uni.__log__?uni.__log__(t,e,...n):console[t].apply(console,[...n,e])}function le(t,e){return typeof t=="string"?e:t}var E=ce(ee());var K=(t,e)=>{let n=t.__vccOpts||t;for(let[i,s]of e)n[i]=s;return n};var wi={"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}}},Ti={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(t){this.$emit("click",t)}}};function xi(t,e,n,i,s,o){return(0,E.openBlock)(),(0,E.createElementBlock)("view",{class:(0,E.normalizeClass)(["uni-card",{"uni-card--full":n.isFull,"uni-card--shadow":n.isShadow,"uni-card--border":n.border}]),style:(0,E.normalizeStyle)({margin:n.isFull?0:n.margin,padding:n.spacing,"box-shadow":n.isShadow?n.shadow:""}),renderWhole:!0},[(0,E.renderSlot)(t.$slots,"cover",{},()=>[n.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:n.cover},null,8,["src"])])):(0,E.createCommentVNode)("",!0)]),(0,E.renderSlot)(t.$slots,"title",{},()=>[n.title||n.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"))},[n.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:n.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)(n.title),1),n.title&&n.subTitle?((0,E.openBlock)(),(0,E.createElementBlock)("u-text",{key:0,class:"uni-card__header-content-subtitle uni-ellipsis"},(0,E.toDisplayString)(n.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)(n.extra),1)])])):(0,E.createCommentVNode)("",!0)]),(0,E.createElementVNode)("view",{class:"uni-card__content",style:(0,E.normalizeStyle)({padding:n.padding}),onClick:e[3]||(e[3]=a=>o.onClick("content"))},[(0,E.renderSlot)(t.$slots,"default")],4),(0,E.createElementVNode)("view",{class:"uni-card__actions",onClick:e[4]||(e[4]=a=>o.onClick("actions"))},[(0,E.renderSlot)(t.$slots,"actions")])],6)}var Wt=K(Ti,[["render",xi],["styles",[wi]]]);var p=ce(ee());var bi=t=>t!==null&&typeof t=="object",ki=["{","}"],Ze=class{constructor(){this._caches=Object.create(null)}interpolate(e,n,i=ki){if(!n)return[e];let s=this._caches[e];return s||(s=Ai(e,i),this._caches[e]=s),Ci(s,n)}},Si=/^(?:\d)+/,Ii=/^(?:\w)+/;function Ai(t,[e,n]){let i=[],s=0,o="";for(;s<t.length;){let a=t[s++];if(a===e){o&&i.push({type:"text",value:o}),o="";let r="";for(a=t[s++];a!==void 0&&a!==n;)r+=a,a=t[s++];let l=a===n,c=Si.test(r)?"list":l&&Ii.test(r)?"named":"unknown";i.push({value:r,type:c})}else o+=a}return o&&i.push({type:"text",value:o}),i}function Ci(t,e){let n=[],i=0,s=Array.isArray(e)?"list":bi(e)?"named":"unknown";if(s==="unknown")return n;for(;i<t.length;){let o=t[i];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(e[parseInt(o.value,10)]);break;case"named":s==="named"&&n.push(e[o.value]);break}i++}return n}var Qe="zh-Hans",Ht="zh-Hant",fe="en",Pi="fr",Ei="es",Di=Object.prototype.hasOwnProperty,Jt=(t,e)=>Di.call(t,e),Li=new Ze;function Bi(t,e){return!!e.find(n=>t.indexOf(n)!==-1)}function Oi(t,e){return e.find(n=>t.indexOf(n)===0)}function Kt(t,e){if(!t)return;if(t=t.trim().replace(/_/g,"-"),e&&e[t])return t;if(t=t.toLowerCase(),t==="chinese")return Qe;if(t.indexOf("zh")===0)return t.indexOf("-hans")>-1?Qe:t.indexOf("-hant")>-1||Bi(t,["-tw","-hk","-mo","-cht"])?Ht:Qe;let n=[fe,Pi,Ei];e&&Object.keys(e).length>0&&(n=Object.keys(e));let i=Oi(t,n);if(i)return i}var Xe=class{constructor({locale:e,fallbackLocale:n,messages:i,watcher:s,formater:o}){this.locale=fe,this.fallbackLocale=fe,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=o||Li,this.messages=i||{},this.setLocale(e||fe),s&&this.watchLocale(s)}setLocale(e){let n=this.locale;this.locale=Kt(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach(i=>{i(this.locale,n)})}getLocale(){return this.locale}watchLocale(e){let n=this.watchers.push(e)-1;return()=>{this.watchers.splice(n,1)}}add(e,n,i=!0){let s=this.messages[e];s?i?Object.assign(s,n):Object.keys(n).forEach(o=>{Jt(s,o)||(s[o]=n[o])}):this.messages[e]=n}f(e,n,i){return this.formater.interpolate(e,n,i).join("")}t(e,n,i){let s=this.message;return typeof n=="string"?(n=Kt(n,this.messages),n&&(s=this.messages[n])):i=n,Jt(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 Ri(t,e){t.$watchLocale?t.$watchLocale(n=>{e.setLocale(n)}):t.$watch(()=>t.$locale,n=>{e.setLocale(n)})}function Ni(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof global!="undefined"&&global.getLocale?global.getLocale():fe}function Gt(t,e={},n,i){if(typeof t!="string"){let a=[e,t];t=a[0],e=a[1]}typeof t!="string"&&(t=Ni()),typeof n!="string"&&(n=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||fe);let s=new Xe({locale:t,fallbackLocale:n,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,f){let d=getApp().$vm;return d&&(d.$locale,l||(l=!0,Ri(d,s))),s.t(c,f)}}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=ce(ee());var Fi={"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},Ui={"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"},Mi={"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"},ji={en:Fi,"zh-Hans":Ui,"zh-Hant":Mi},Vi={"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)"}}},$t;setTimeout(()=>{$t=uni.getSystemInfoSync().platform},16);var{t:et}=Gt(ji),qi={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:$t,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII="}},computed:{iconSnowWidth(){return(Math.floor(this.iconSize/24)||1)*2},contentdownText(){return this.contentText.contentdown||et("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||et("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||et("uni-load-more.contentnomore")}},mounted(){var t=getCurrentPages(),e=t[t.length-1],n=e.$getAppWebview();n.addEventListener("hide",()=>{this.webviewHide=!0}),n.addEventListener("show",()=>{this.webviewHide=!1})},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}};function zi(t,e,n,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&&n.status==="loading"&&n.showIcon?((0,j.openBlock)(),(0,j.createElementBlock)("loading-indicator",{key:0,style:(0,j.normalizeStyle)({color:n.color,width:n.iconSize+"px",height:n.iconSize+"px"}),animating:!0,class:"uni-load-more__img uni-load-more__img--nvue"},null,4)):(0,j.createCommentVNode)("",!0),n.showText?((0,j.openBlock)(),(0,j.createElementBlock)("u-text",{key:1,class:"uni-load-more__text",style:(0,j.normalizeStyle)({color:n.color})},(0,j.toDisplayString)(n.status==="more"?o.contentdownText:n.status==="loading"?o.contentrefreshText:o.contentnomoreText),5)):(0,j.createCommentVNode)("",!0)])}var tt=K(qi,[["render",zi],["styles",[Vi]]]);var te=ce(ee());var Wi=[{font_class:"arrow-down",unicode:"\uE6BE"},{font_class:"arrow-left",unicode:"\uE6BC"},{font_class:"arrow-right",unicode:"\uE6BB"},{font_class:"arrow-up",unicode:"\uE6BD"},{font_class:"auth",unicode:"\uE6AB"},{font_class:"auth-filled",unicode:"\uE6CC"},{font_class:"back",unicode:"\uE6B9"},{font_class:"bars",unicode:"\uE627"},{font_class:"calendar",unicode:"\uE6A0"},{font_class:"calendar-filled",unicode:"\uE6C0"},{font_class:"camera",unicode:"\uE65A"},{font_class:"camera-filled",unicode:"\uE658"},{font_class:"cart",unicode:"\uE631"},{font_class:"cart-filled",unicode:"\uE6D0"},{font_class:"chat",unicode:"\uE65D"},{font_class:"chat-filled",unicode:"\uE659"},{font_class:"chatboxes",unicode:"\uE696"},{font_class:"chatboxes-filled",unicode:"\uE692"},{font_class:"chatbubble",unicode:"\uE697"},{font_class:"chatbubble-filled",unicode:"\uE694"},{font_class:"checkbox",unicode:"\uE62B"},{font_class:"checkbox-filled",unicode:"\uE62C"},{font_class:"checkmarkempty",unicode:"\uE65C"},{font_class:"circle",unicode:"\uE65B"},{font_class:"circle-filled",unicode:"\uE65E"},{font_class:"clear",unicode:"\uE66D"},{font_class:"close",unicode:"\uE673"},{font_class:"closeempty",unicode:"\uE66C"},{font_class:"cloud-download",unicode:"\uE647"},{font_class:"cloud-download-filled",unicode:"\uE646"},{font_class:"cloud-upload",unicode:"\uE645"},{font_class:"cloud-upload-filled",unicode:"\uE648"},{font_class:"color",unicode:"\uE6CF"},{font_class:"color-filled",unicode:"\uE6C9"},{font_class:"compose",unicode:"\uE67F"},{font_class:"contact",unicode:"\uE693"},{font_class:"contact-filled",unicode:"\uE695"},{font_class:"down",unicode:"\uE6B8"},{font_class:"bottom",unicode:"\uE6B8"},{font_class:"download",unicode:"\uE68D"},{font_class:"download-filled",unicode:"\uE681"},{font_class:"email",unicode:"\uE69E"},{font_class:"email-filled",unicode:"\uE69A"},{font_class:"eye",unicode:"\uE651"},{font_class:"eye-filled",unicode:"\uE66A"},{font_class:"eye-slash",unicode:"\uE6B3"},{font_class:"eye-slash-filled",unicode:"\uE6B4"},{font_class:"fire",unicode:"\uE6A1"},{font_class:"fire-filled",unicode:"\uE6C5"},{font_class:"flag",unicode:"\uE65F"},{font_class:"flag-filled",unicode:"\uE660"},{font_class:"folder-add",unicode:"\uE6A9"},{font_class:"folder-add-filled",unicode:"\uE6C8"},{font_class:"font",unicode:"\uE6A3"},{font_class:"forward",unicode:"\uE6BA"},{font_class:"gear",unicode:"\uE664"},{font_class:"gear-filled",unicode:"\uE661"},{font_class:"gift",unicode:"\uE6A4"},{font_class:"gift-filled",unicode:"\uE6C4"},{font_class:"hand-down",unicode:"\uE63D"},{font_class:"hand-down-filled",unicode:"\uE63C"},{font_class:"hand-up",unicode:"\uE63F"},{font_class:"hand-up-filled",unicode:"\uE63E"},{font_class:"headphones",unicode:"\uE630"},{font_class:"heart",unicode:"\uE639"},{font_class:"heart-filled",unicode:"\uE641"},{font_class:"help",unicode:"\uE679"},{font_class:"help-filled",unicode:"\uE674"},{font_class:"home",unicode:"\uE662"},{font_class:"home-filled",unicode:"\uE663"},{font_class:"image",unicode:"\uE670"},{font_class:"image-filled",unicode:"\uE678"},{font_class:"images",unicode:"\uE650"},{font_class:"images-filled",unicode:"\uE64B"},{font_class:"info",unicode:"\uE669"},{font_class:"info-filled",unicode:"\uE649"},{font_class:"left",unicode:"\uE6B7"},{font_class:"link",unicode:"\uE6A5"},{font_class:"list",unicode:"\uE644"},{font_class:"location",unicode:"\uE6AE"},{font_class:"location-filled",unicode:"\uE6AF"},{font_class:"locked",unicode:"\uE66B"},{font_class:"locked-filled",unicode:"\uE668"},{font_class:"loop",unicode:"\uE633"},{font_class:"mail-open",unicode:"\uE643"},{font_class:"mail-open-filled",unicode:"\uE63A"},{font_class:"map",unicode:"\uE667"},{font_class:"map-filled",unicode:"\uE666"},{font_class:"map-pin",unicode:"\uE6AD"},{font_class:"map-pin-ellipse",unicode:"\uE6AC"},{font_class:"medal",unicode:"\uE6A2"},{font_class:"medal-filled",unicode:"\uE6C3"},{font_class:"mic",unicode:"\uE671"},{font_class:"mic-filled",unicode:"\uE677"},{font_class:"micoff",unicode:"\uE67E"},{font_class:"micoff-filled",unicode:"\uE6B0"},{font_class:"minus",unicode:"\uE66F"},{font_class:"minus-filled",unicode:"\uE67D"},{font_class:"more",unicode:"\uE64D"},{font_class:"more-filled",unicode:"\uE64E"},{font_class:"navigate",unicode:"\uE66E"},{font_class:"navigate-filled",unicode:"\uE67A"},{font_class:"notification",unicode:"\uE6A6"},{font_class:"notification-filled",unicode:"\uE6C1"},{font_class:"paperclip",unicode:"\uE652"},{font_class:"paperplane",unicode:"\uE672"},{font_class:"paperplane-filled",unicode:"\uE675"},{font_class:"person",unicode:"\uE699"},{font_class:"person-filled",unicode:"\uE69D"},{font_class:"personadd",unicode:"\uE69F"},{font_class:"personadd-filled",unicode:"\uE698"},{font_class:"personadd-filled-copy",unicode:"\uE6D1"},{font_class:"phone",unicode:"\uE69C"},{font_class:"phone-filled",unicode:"\uE69B"},{font_class:"plus",unicode:"\uE676"},{font_class:"plus-filled",unicode:"\uE6C7"},{font_class:"plusempty",unicode:"\uE67B"},{font_class:"pulldown",unicode:"\uE632"},{font_class:"pyq",unicode:"\uE682"},{font_class:"qq",unicode:"\uE680"},{font_class:"redo",unicode:"\uE64A"},{font_class:"redo-filled",unicode:"\uE655"},{font_class:"refresh",unicode:"\uE657"},{font_class:"refresh-filled",unicode:"\uE656"},{font_class:"refreshempty",unicode:"\uE6BF"},{font_class:"reload",unicode:"\uE6B2"},{font_class:"right",unicode:"\uE6B5"},{font_class:"scan",unicode:"\uE62A"},{font_class:"search",unicode:"\uE654"},{font_class:"settings",unicode:"\uE653"},{font_class:"settings-filled",unicode:"\uE6CE"},{font_class:"shop",unicode:"\uE62F"},{font_class:"shop-filled",unicode:"\uE6CD"},{font_class:"smallcircle",unicode:"\uE67C"},{font_class:"smallcircle-filled",unicode:"\uE665"},{font_class:"sound",unicode:"\uE684"},{font_class:"sound-filled",unicode:"\uE686"},{font_class:"spinner-cycle",unicode:"\uE68A"},{font_class:"staff",unicode:"\uE6A7"},{font_class:"staff-filled",unicode:"\uE6CB"},{font_class:"star",unicode:"\uE688"},{font_class:"star-filled",unicode:"\uE68F"},{font_class:"starhalf",unicode:"\uE683"},{font_class:"trash",unicode:"\uE687"},{font_class:"trash-filled",unicode:"\uE685"},{font_class:"tune",unicode:"\uE6AA"},{font_class:"tune-filled",unicode:"\uE6CA"},{font_class:"undo",unicode:"\uE64F"},{font_class:"undo-filled",unicode:"\uE64C"},{font_class:"up",unicode:"\uE6B6"},{font_class:"top",unicode:"\uE6B6"},{font_class:"upload",unicode:"\uE690"},{font_class:"upload-filled",unicode:"\uE68E"},{font_class:"videocam",unicode:"\uE68C"},{font_class:"videocam-filled",unicode:"\uE689"},{font_class:"vip",unicode:"\uE6A8"},{font_class:"vip-filled",unicode:"\uE6C6"},{font_class:"wallet",unicode:"\uE6B1"},{font_class:"wallet-filled",unicode:"\uE6C2"},{font_class:"weibo",unicode:"\uE68B"},{font_class:"weixin",unicode:"\uE691"}],Hi="/assets/uniicons.32e978a5.ttf",Ji={"uni-icons":{"":{fontFamily:"uniicons",textDecoration:"none",textAlign:"center"}}},Ki=t=>typeof t=="number"||/^[0-9]*$/g.test(t)?t+"px":t,Gi=weex.requireModule("dom");Gi.addRule("fontFace",{fontFamily:"uniicons",src:"url('"+Hi+"')"});var $i={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data(){return{icons:Wi}},computed:{unicode(){let t=this.icons.find(e=>e.font_class===this.type);return t?t.unicode:""},iconSize(){return Ki(this.size)},styleObj(){return this.fontFamily!==""?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}};function Yi(t,e,n,i,s,o){return(0,te.openBlock)(),(0,te.createElementBlock)("u-text",{style:(0,te.normalizeStyle)(o.styleObj),class:"uni-icons",onClick:e[0]||(e[0]=(...a)=>o._onClick&&o._onClick(...a))},(0,te.toDisplayString)(o.unicode),5)}var Yt=K($i,[["render",Yi],["styles",[Ji]]]);var Xo=ce(ee());var Qi={path:"windows/left-window.vue",style:{width:"350px"}},Zi={path:"windows/top-window.vue",style:{height:"60px"}},Xi=[{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:"pages/component/web-view-local/issue-17581",style:{navigationBarTitleText:"issue-17581"}},{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}}],es=[{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://web-assets.dcloud.net.cn/unidoc/zh/logo1@2x.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:"renderjs/renderjs",style:{navigationBarTitleText:"renderjs"}},{path:"global/global",style:{navigationBarTitleText:"GlobalData\u548Cvuex"}},{path:"pinia/pinia",style:{navigationBarTitleText:"pinia"}},{path:"vuex-nvue/vuex-nvue",style:{navigationBarTitleText:"vuex-nvue"}},{path:"vuex-vue/vuex-vue",style:{navigationBarTitleText:"vuex-vue"}},{path:"crypto-api/crypto-api",style:{navigationBarTitleText:"crypto"}}]}],ts={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"}},ns={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"}]},kn={leftWindow:Qi,topWindow:Zi,pages:Xi,subPackages:es,globalStyle:ts,tabBar:ns},is=[];function ss(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Y(t,e,n){return t(n={path:e,exports:{},require:function(i,s){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(s==null&&n.path)}},n.exports),n.exports}var os=Y(function(t,e){var n;t.exports=(n=n||function(i,s){var o=Object.create||function(){function u(){}return function(g){var _;return u.prototype=g,_=new u,u.prototype=null,_}}(),a={},r=a.lib={},l=r.Base={extend:function(u){var g=o(this);return u&&g.mixIn(u),g.hasOwnProperty("init")&&this.init!==g.init||(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var u=this.extend();return u.init.apply(u,arguments),u},init:function(){},mixIn:function(u){for(var g in u)u.hasOwnProperty(g)&&(this[g]=u[g]);u.hasOwnProperty("toString")&&(this.toString=u.toString)},clone:function(){return this.init.prototype.extend(this)}},c=r.WordArray=l.extend({init:function(u,g){u=this.words=u||[],this.sigBytes=g!=s?g:4*u.length},toString:function(u){return(u||d).stringify(this)},concat:function(u){var g=this.words,_=u.words,v=this.sigBytes,T=u.sigBytes;if(this.clamp(),v%4)for(var I=0;I<T;I++){var C=_[I>>>2]>>>24-I%4*8&255;g[v+I>>>2]|=C<<24-(v+I)%4*8}else for(I=0;I<T;I+=4)g[v+I>>>2]=_[I>>>2];return this.sigBytes+=T,this},clamp:function(){var u=this.words,g=this.sigBytes;u[g>>>2]&=4294967295<<32-g%4*8,u.length=i.ceil(g/4)},clone:function(){var u=l.clone.call(this);return u.words=this.words.slice(0),u},random:function(u){for(var g,_=[],v=function(C){var O=987654321,D=4294967295;return function(){var U=((O=36969*(65535&O)+(O>>16)&D)<<16)+(C=18e3*(65535&C)+(C>>16)&D)&D;return U/=4294967296,(U+=.5)*(i.random()>.5?1:-1)}},T=0;T<u;T+=4){var I=v(4294967296*(g||i.random()));g=987654071*I(),_.push(4294967296*I()|0)}return new c.init(_,u)}}),f=a.enc={},d=f.Hex={stringify:function(u){for(var g=u.words,_=u.sigBytes,v=[],T=0;T<_;T++){var I=g[T>>>2]>>>24-T%4*8&255;v.push((I>>>4).toString(16)),v.push((15&I).toString(16))}return v.join("")},parse:function(u){for(var g=u.length,_=[],v=0;v<g;v+=2)_[v>>>3]|=parseInt(u.substr(v,2),16)<<24-v%8*4;return new c.init(_,g/2)}},m=f.Latin1={stringify:function(u){for(var g=u.words,_=u.sigBytes,v=[],T=0;T<_;T++){var I=g[T>>>2]>>>24-T%4*8&255;v.push(String.fromCharCode(I))}return v.join("")},parse:function(u){for(var g=u.length,_=[],v=0;v<g;v++)_[v>>>2]|=(255&u.charCodeAt(v))<<24-v%4*8;return new c.init(_,g)}},y=f.Utf8={stringify:function(u){try{return decodeURIComponent(escape(m.stringify(u)))}catch(g){throw new Error("Malformed UTF-8 data")}},parse:function(u){return m.parse(unescape(encodeURIComponent(u)))}},w=r.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(u){typeof u=="string"&&(u=y.parse(u)),this._data.concat(u),this._nDataBytes+=u.sigBytes},_process:function(u){var g=this._data,_=g.words,v=g.sigBytes,T=this.blockSize,I=v/(4*T),C=(I=u?i.ceil(I):i.max((0|I)-this._minBufferSize,0))*T,O=i.min(4*C,v);if(C){for(var D=0;D<C;D+=T)this._doProcessBlock(_,D);var U=_.splice(0,C);g.sigBytes-=O}return new c.init(U,O)},clone:function(){var u=l.clone.call(this);return u._data=this._data.clone(),u},_minBufferSize:0});r.Hasher=w.extend({cfg:l.extend(),init:function(u){this.cfg=this.cfg.extend(u),this.reset()},reset:function(){w.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(g,_){return new u.init(_).finalize(g)}},_createHmacHelper:function(u){return function(g,_){return new h.HMAC.init(u,_).finalize(g)}}});var h=a.algo={};return a}(Math),n)}),se=os,as=(Y(function(t,e){var n;t.exports=(n=se,function(i){var s=n,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 f=l.MD5=r.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,u){for(var g=0;g<16;g++){var _=u+g,v=h[_];h[_]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}var T=this._hash.words,I=h[u+0],C=h[u+1],O=h[u+2],D=h[u+3],U=h[u+4],Z=h[u+5],H=h[u+6],ae=h[u+7],X=h[u+8],pe=h[u+9],re=h[u+10],Le=h[u+11],Be=h[u+12],Oe=h[u+13],Re=h[u+14],Ne=h[u+15],x=T[0],S=T[1],b=T[2],k=T[3];x=d(x,S,b,k,I,7,c[0]),k=d(k,x,S,b,C,12,c[1]),b=d(b,k,x,S,O,17,c[2]),S=d(S,b,k,x,D,22,c[3]),x=d(x,S,b,k,U,7,c[4]),k=d(k,x,S,b,Z,12,c[5]),b=d(b,k,x,S,H,17,c[6]),S=d(S,b,k,x,ae,22,c[7]),x=d(x,S,b,k,X,7,c[8]),k=d(k,x,S,b,pe,12,c[9]),b=d(b,k,x,S,re,17,c[10]),S=d(S,b,k,x,Le,22,c[11]),x=d(x,S,b,k,Be,7,c[12]),k=d(k,x,S,b,Oe,12,c[13]),b=d(b,k,x,S,Re,17,c[14]),x=m(x,S=d(S,b,k,x,Ne,22,c[15]),b,k,C,5,c[16]),k=m(k,x,S,b,H,9,c[17]),b=m(b,k,x,S,Le,14,c[18]),S=m(S,b,k,x,I,20,c[19]),x=m(x,S,b,k,Z,5,c[20]),k=m(k,x,S,b,re,9,c[21]),b=m(b,k,x,S,Ne,14,c[22]),S=m(S,b,k,x,U,20,c[23]),x=m(x,S,b,k,pe,5,c[24]),k=m(k,x,S,b,Re,9,c[25]),b=m(b,k,x,S,D,14,c[26]),S=m(S,b,k,x,X,20,c[27]),x=m(x,S,b,k,Oe,5,c[28]),k=m(k,x,S,b,O,9,c[29]),b=m(b,k,x,S,ae,14,c[30]),x=y(x,S=m(S,b,k,x,Be,20,c[31]),b,k,Z,4,c[32]),k=y(k,x,S,b,X,11,c[33]),b=y(b,k,x,S,Le,16,c[34]),S=y(S,b,k,x,Re,23,c[35]),x=y(x,S,b,k,C,4,c[36]),k=y(k,x,S,b,U,11,c[37]),b=y(b,k,x,S,ae,16,c[38]),S=y(S,b,k,x,re,23,c[39]),x=y(x,S,b,k,Oe,4,c[40]),k=y(k,x,S,b,I,11,c[41]),b=y(b,k,x,S,D,16,c[42]),S=y(S,b,k,x,H,23,c[43]),x=y(x,S,b,k,pe,4,c[44]),k=y(k,x,S,b,Be,11,c[45]),b=y(b,k,x,S,Ne,16,c[46]),x=w(x,S=y(S,b,k,x,O,23,c[47]),b,k,I,6,c[48]),k=w(k,x,S,b,ae,10,c[49]),b=w(b,k,x,S,Re,15,c[50]),S=w(S,b,k,x,Z,21,c[51]),x=w(x,S,b,k,Be,6,c[52]),k=w(k,x,S,b,D,10,c[53]),b=w(b,k,x,S,re,15,c[54]),S=w(S,b,k,x,C,21,c[55]),x=w(x,S,b,k,X,6,c[56]),k=w(k,x,S,b,Ne,10,c[57]),b=w(b,k,x,S,H,15,c[58]),S=w(S,b,k,x,Oe,21,c[59]),x=w(x,S,b,k,U,6,c[60]),k=w(k,x,S,b,Le,10,c[61]),b=w(b,k,x,S,O,15,c[62]),S=w(S,b,k,x,pe,21,c[63]),T[0]=T[0]+x|0,T[1]=T[1]+S|0,T[2]=T[2]+b|0,T[3]=T[3]+k|0},_doFinalize:function(){var h=this._data,u=h.words,g=8*this._nDataBytes,_=8*h.sigBytes;u[_>>>5]|=128<<24-_%32;var v=i.floor(g/4294967296),T=g;u[15+(_+64>>>9<<4)]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),u[14+(_+64>>>9<<4)]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),h.sigBytes=4*(u.length+1),this._process();for(var I=this._hash,C=I.words,O=0;O<4;O++){var D=C[O];C[O]=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,g,_,v,T,I){var C=h+(u&g|~u&_)+v+I;return(C<<T|C>>>32-T)+u}function m(h,u,g,_,v,T,I){var C=h+(u&_|g&~_)+v+I;return(C<<T|C>>>32-T)+u}function y(h,u,g,_,v,T,I){var C=h+(u^g^_)+v+I;return(C<<T|C>>>32-T)+u}function w(h,u,g,_,v,T,I){var C=h+(g^(u|~_))+v+I;return(C<<T|C>>>32-T)+u}s.MD5=r._createHelper(f),s.HmacMD5=r._createHmacHelper(f)}(Math),n.MD5)}),Y(function(t,e){var n;t.exports=(n=se,void function(){var i=n,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 f=this._oKey=r.clone(),d=this._iKey=r.clone(),m=f.words,y=d.words,w=0;w<l;w++)m[w]^=1549556828,y[w]^=909522486;f.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))}})}())}),Y(function(t,e){t.exports=se.HmacMD5})),rs=Y(function(t,e){t.exports=se.enc.Utf8}),cs=Y(function(t,e){var n;t.exports=(n=se,function(){var i=n,s=i.lib.WordArray;function o(a,r,l){for(var c=[],f=0,d=0;d<r;d++)if(d%4){var m=l[a.charCodeAt(d-1)]<<d%4*2,y=l[a.charCodeAt(d)]>>>6-d%4*2;c[f>>>2]|=(m|y)<<24-f%4*8,f++}return s.create(c,f)}i.enc.Base64={stringify:function(a){var r=a.words,l=a.sigBytes,c=this._map;a.clamp();for(var f=[],d=0;d<l;d+=3)for(var m=(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,y=0;y<4&&d+.75*y<l;y++)f.push(c.charAt(m>>>6*(3-y)&63));var w=c.charAt(64);if(w)for(;f.length%4;)f.push(w);return f.join("")},parse:function(a){var r=a.length,l=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var f=0;f<l.length;f++)c[l.charCodeAt(f)]=f}var d=l.charAt(64);if(d){var m=a.indexOf(d);m!==-1&&(r=m)}return o(a,r,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)}),Sn="uni_id_token",In="uni_id_token_expired",ls="uniIdToken",je={DEFAULT:"FUNCTION",FUNCTION:"FUNCTION",OBJECT:"OBJECT",CLIENT_DB:"CLIENT_DB"},Qt="pending",us="fulfilled",Zt="rejected";function Se(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function An(t){return Se(t)==="object"}function Cn(t){return typeof t=="function"}function ds(t){return function(){try{return t.apply(t,arguments)}catch(e){console.error(e)}}}var Xt="REJECTED",Pn="NOT_PENDING",Ve=class{constructor({createPromise:e,retryRule:n=Xt}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=n}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Xt:return this.status===Zt;case Pn:return this.status!==Qt}}exec(){return this.needRetry?(this.status=Qt,this.promise=this.createPromise().then(e=>(this.status=us,Promise.resolve(e)),e=>(this.status=Zt,Promise.reject(e))),this.promise):this.promise}},ft=class{constructor(){this._callback={}}addListener(e,n){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(n)}on(e,n){return this.addListener(e,n)}removeListener(e,n){if(!n)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,n);i.splice(s,1)}off(e,n){return this.removeListener(e,n)}removeAllListener(e){delete this._callback[e]}emit(e,...n){let i=this._callback[e];if(i)for(let s=0;s<i.length;s++)i[s](...n)}};function Ot(t){return t&&typeof t=="string"?JSON.parse(t):t}var hs=!1,ps="app",fs=Ot(is),Rt=ps;Ot("");var gs=Ot("[]")||[],ms="";try{ms="__UNI__3BC70CE"}catch(t){}var nt,Me={};function me(t,e={}){var n,i;return n=Me,i=t,Object.prototype.hasOwnProperty.call(n,i)||(Me[t]=e),Me[t]}function ys(){return nt||(nt=function(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;function t(){return this}return t()!==void 0?t():new Function("return this")()}(),nt)}Me=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};var En=["invoke","success","fail","complete"],$=me("_globalUniCloudInterceptor");function Dn(t,e){$[t]||($[t]={}),An(e)&&Object.keys(e).forEach(n=>{En.indexOf(n)>-1&&function(i,s,o){let a=$[i][s];a||(a=$[i][s]=[]),a.indexOf(o)===-1&&Cn(o)&&a.push(o)}(t,n,e[n])})}function _s(t,e){$[t]||($[t]={}),An(e)?Object.keys(e).forEach(n=>{En.indexOf(n)>-1&&function(i,s,o){let a=$[i][s];if(!a)return;let r=a.indexOf(o);r>-1&&a.splice(r,1)}(t,n,e[n])}):delete $[t]}function q(t,e){return t&&t.length!==0?t.reduce((n,i)=>n.then(()=>i(e)),Promise.resolve()):Promise.resolve()}function z(t,e){return $[t]&&$[t][e]||[]}function vs(t){Dn("callObject",t)}var it=me("_globalUniCloudListener"),R={RESPONSE:"response",NEED_LOGIN:"needLogin",REFRESH_TOKEN:"refreshToken"},ie={CLIENT_DB:"clientdb",CLOUD_FUNCTION:"cloudfunction",CLOUD_OBJECT:"cloudobject"};function Ee(t){return it[t]||(it[t]=[]),it[t]}function st(t,e){let n=Ee(t);n.includes(e)||n.push(e)}function ot(t,e){let n=Ee(t),i=n.indexOf(e);i!==-1&&n.splice(i,1)}function G(t,e){let n=Ee(t);for(let i=0;i<n.length;i++)(0,n[i])(e)}var at,rt=!1;function Ln(){return at||(at=new Promise(t=>{rt&&t(),function e(){if(typeof getCurrentPages=="function"){let n=getCurrentPages();n&&n[0]&&(rt=!0,t())}rt||setTimeout(()=>{e()},30)}()}),at)}function Bn(t){let e={};for(let n in t){let i=t[n];Cn(i)&&(e[n]=ds(i))}return e}var A=class extends Error{constructor(e){let n=e.message||e.errMsg||"unknown system error";super(n),this.errMsg=n,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:t=>uni.request(t),uploadFile:t=>uni.uploadFile(t),setStorageSync:(t,e)=>uni.setStorageSync(t,e),getStorageSync:t=>uni.getStorageSync(t),removeStorageSync:t=>uni.removeStorageSync(t),clearStorageSync:()=>uni.clearStorageSync(),connectSocket:t=>uni.connectSocket(t)};function On(t){return t&&On(t.__v_raw)||t}function Ie(){return{token:F.getStorageSync(Sn)||F.getStorageSync(ls),tokenExpired:F.getStorageSync(In)}}function Rn({token:t,tokenExpired:e}={}){t&&F.setStorageSync(Sn,t),e&&F.setStorageSync(In,e)}var ct,Fe;function Nn(){return ct||(ct=uni.getSystemInfoSync()),ct}function ws(){let t,e;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;let{scene:n,channel:i}=uni.getLaunchOptionsSync();t=i,e=n}}catch(n){}return{channel:t,scene:e}}var gt={};function mt(){let t=uni.getLocale&&uni.getLocale()||"en";if(Fe)return M(L(L({},gt),Fe),{locale:t,LOCALE:t});let e=Nn(),{deviceId:n,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=L(L({PLATFORM:s,OS:i,APPID:o,DEVICEID:n},ws()),e),M(L(L({},gt),Fe),{locale:t,LOCALE:t})}var ge={sign:function(t,e){let n="";return Object.keys(t).sort().forEach(function(i){t[i]&&(n=n+"&"+i+"="+t[i])}),n=n.slice(1),as(n,e).toString()},wrappedRequest:function(t,e){return new Promise((n,i)=>{e(Object.assign(t,{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,n(a)}}))})},toBase64:function(t){return cs.stringify(rs.parse(t))}},Ts=class{constructor(t){["spaceId","clientSecret"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(`${e} required`)}),this.config=Object.assign({},{endpoint:t.spaceId.indexOf("mp-")===0?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=F,this._getAccessTokenPromiseHub=new Ve({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:Pn})}get hasAccessToken(){return!!this.accessToken}setAccessToken(t){this.accessToken=t}requestWrapped(t){return ge.wrappedRequest(t,this.adapter.request)}requestAuth(t){return this.requestWrapped(t)}request(t,e){return Promise.resolve().then(()=>this.hasAccessToken?e?this.requestWrapped(t):this.requestWrapped(t).catch(n=>new Promise((i,s)=>{!n||n.code!=="GATEWAY_INVALID_TOKEN"&&n.code!=="InvalidParameter.InvalidToken"?s(n):i()}).then(()=>this.getAccessToken()).then(()=>{let i=this.rebuildRequest(t);return this.request(i,!0)})):this.getAccessToken().then(()=>{let n=this.rebuildRequest(t);return this.request(n,!0)}))}rebuildRequest(t){let e=Object.assign({},t);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=ge.sign(e.data,this.config.clientSecret),e}setupRequest(t,e){let n=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};return e!=="auth"&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=ge.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:i}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}authorize(){return P(this,null,function*(){yield this.getAccessToken()})}callFunction(t){let e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(M(L({},this.setupRequest(e)),{timeout:t.timeout}))}getOSSUploadOptionsFromPath(t){let e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}uploadFileToOSS({url:t,formData:e,name:n,filePath:i,fileType:s,onUploadProgress:o}){return new Promise((a,r)=>{let l=this.adapter.uploadFile({url:t,formData:e,name:n,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(t){let e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}uploadFile(a){return P(this,arguments,function*({filePath:t,cloudPath:e,fileType:n="image",cloudPathAsRealPath:i=!1,onUploadProgress:s,config:o}){if(Se(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:f,accessKeyId:d,signature:m,host:y,ossPath:w,id:h,policy:u,ossCallbackUrl:g}=l,_={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:d,Signature:m,host:y,id:h,key:w,policy:u,success_action_status:200};if(f&&(_["x-oss-security-token"]=f),g){let T=JSON.stringify({callbackUrl:g,callbackBody:JSON.stringify({fileId:h,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});_.callback=ge.toBase64(T)}let v={url:"https://"+l.host,formData:_,fileName:"file",name:"file",filePath:t,fileType:n};if(yield this.uploadFileToOSS(Object.assign({},v,{onUploadProgress:s})),g)return{success:!0,filePath:t,fileID:c};if((yield this.reportOSSUpload({id:h})).success)return{success:!0,filePath:t,fileID:c};throw new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"})})}getTempFileURL({fileList:t}={}){return new Promise((e,n)=>{Array.isArray(t)&&t.length!==0||n(new A({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"})),this.getFileInfo({fileList:t}).then(i=>{e({fileList:t.map((s,o)=>{let a=i.fileList[o];return{fileID:s,tempFileURL:a&&a.url||s}})})})})}getFileInfo(){return P(this,arguments,function*({fileList:t}={}){if(!Array.isArray(t)||t.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:t.map(n=>n.split("?")[0]).join(",")})};return{fileList:(yield this.request(this.setupRequest(e))).result}})}},xs={init(t){let e=new Ts(t),n={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return n},e.customAuth=e.auth,e}},bs=typeof location!="undefined"&&location.protocol==="http:"?"http:":"https:",en;(function(t){t.local="local",t.none="none",t.session="session"})(en||(en={}));var ks=function(){},Ss=Y(function(t,e){var n;t.exports=(n=se,function(i){var s=n,o=s.lib,a=o.WordArray,r=o.Hasher,l=s.algo,c=[],f=[];(function(){function y(g){for(var _=i.sqrt(g),v=2;v<=_;v++)if(!(g%v))return!1;return!0}function w(g){return 4294967296*(g-(0|g))|0}for(var h=2,u=0;u<64;)y(h)&&(u<8&&(c[u]=w(i.pow(h,.5))),f[u]=w(i.pow(h,1/3)),u++),h++})();var d=[],m=l.SHA256=r.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(y,w){for(var h=this._hash.words,u=h[0],g=h[1],_=h[2],v=h[3],T=h[4],I=h[5],C=h[6],O=h[7],D=0;D<64;D++){if(D<16)d[D]=0|y[w+D];else{var U=d[D-15],Z=(U<<25|U>>>7)^(U<<14|U>>>18)^U>>>3,H=d[D-2],ae=(H<<15|H>>>17)^(H<<13|H>>>19)^H>>>10;d[D]=Z+d[D-7]+ae+d[D-16]}var X=u&g^u&_^g&_,pe=(u<<30|u>>>2)^(u<<19|u>>>13)^(u<<10|u>>>22),re=O+((T<<26|T>>>6)^(T<<21|T>>>11)^(T<<7|T>>>25))+(T&I^~T&C)+f[D]+d[D];O=C,C=I,I=T,T=v+re|0,v=_,_=g,g=u,u=re+(pe+X)|0}h[0]=h[0]+u|0,h[1]=h[1]+g|0,h[2]=h[2]+_|0,h[3]=h[3]+v|0,h[4]=h[4]+T|0,h[5]=h[5]+I|0,h[6]=h[6]+C|0,h[7]=h[7]+O|0},_doFinalize:function(){var y=this._data,w=y.words,h=8*this._nDataBytes,u=8*y.sigBytes;return w[u>>>5]|=128<<24-u%32,w[14+(u+64>>>9<<4)]=i.floor(h/4294967296),w[15+(u+64>>>9<<4)]=h,y.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var y=r.clone.call(this);return y._hash=this._hash.clone(),y}});s.SHA256=r._createHelper(m),s.HmacSHA256=r._createHmacHelper(m)}(Math),n.SHA256)}),yt=Ss,Fn=Y(function(t,e){t.exports=se.HmacSHA256}),De=()=>{let t;if(!Promise){t=()=>{},t.promise={};let n=()=>{throw new A({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(t.promise,"then",{get:n}),Object.defineProperty(t.promise,"catch",{get:n}),t}let e=new Promise((n,i)=>{t=(s,o)=>s?i(s):n(o)});return t.promise=e,t};function Is(t){return t===void 0}function As(t){return Object.prototype.toString.call(t)==="[object Null]"}function tn(t=""){return t.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题：.*)/,"$1")}function nn(t=32){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let i=0;i<t;i++)n+=e.charAt(Math.floor(62*Math.random()));return n}var sn;function Cs(t){let e=(n=t,Object.prototype.toString.call(n)==="[object Array]"?t:[t]);var n;for(let i of e){let{isMatch:s,genAdapter:o,runtime:a}=i;if(s())return{adapter:o(),runtime:a}}}(function(t){t.WEB="web",t.WX_MP="wx_mp"})(sn||(sn={}));var V={adapter:null,runtime:void 0},Ps=["anonymousUuidKey"],xe=class extends ks{constructor(){super(),V.adapter.root.tcbObject||(V.adapter.root.tcbObject={})}setItem(e,n){V.adapter.root.tcbObject[e]=n}getItem(e){return V.adapter.root.tcbObject[e]}removeItem(e){delete V.adapter.root.tcbObject[e]}clear(){delete V.adapter.root.tcbObject}};function on(t,e){switch(t){case"local":return e.localStorage||new xe;case"none":return new xe;default:return e.sessionStorage||new xe}}var qe=class{constructor(e){if(!this._storage){this._persistence=V.adapter.primaryStorage||e.persistence,this._storage=on(this._persistence,V.adapter);let n=`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:n,accessTokenExpireKey:i,refreshTokenKey:s,anonymousUuidKey:o,loginTypeKey:a,userInfoKey:c,deviceIdKey:r,tokenTypeKey:l}}}updatePersistence(e){if(e===this._persistence)return;let n=this._persistence==="local";this._persistence=e;let i=on(e,V.adapter);for(let s in this.keys){let o=this.keys[s];if(n&&Ps.includes(s))continue;let a=this._storage.getItem(o);Is(a)||As(a)||(i.setItem(o,a),this._storage.removeItem(o))}this._storage=i}setStore(e,n,i){if(!this._storage)return;let s={version:i||"localCachev1",content:n},o=JSON.stringify(s);try{this._storage.setItem(e,o)}catch(a){throw a}}getStore(e,n){try{if(!this._storage)return}catch(s){return""}n=n||"localCachev1";let i=this._storage.getItem(e);return i&&i.indexOf(n)>=0?JSON.parse(i).content:""}removeStore(e){this._storage.removeItem(e)}},Un={},Mn={};function ve(t){return Un[t]}var ze=class{constructor(e,n){this.data=n||null,this.name=e}},_t=class extends ze{constructor(e,n){super("error",{error:e,data:n}),this.error=e}},Nt=new class{constructor(){this._listeners={}}on(t,e){return function(n,i,s){s[n]=s[n]||[],s[n].push(i)}(t,e,this._listeners),this}off(t,e){return function(n,i,s){if(s&&s[n]){let o=s[n].indexOf(i);o!==-1&&s[n].splice(o,1)}}(t,e,this._listeners),this}fire(t,e){if(t instanceof _t)return console.error(t.error),this;let n=typeof t=="string"?new ze(t,e||{}):t,i=n.name;if(this._listens(i)){n.target=this;let s=this._listeners[i]?[...this._listeners[i]]:[];for(let o of s)o.call(this,n)}return this}_listens(t){return this._listeners[t]&&this._listeners[t].length>0}};function ne(t,e){Nt.on(t,e)}function W(t,e={}){Nt.fire(t,e)}function Es(t,e){Nt.off(t,e)}var ye="loginStateChanged",jn="loginStateExpire",oe="loginTypeChanged",vt="anonymousConverted",Vn="refreshAccessToken",N;(function(t){t.ANONYMOUS="ANONYMOUS",t.WECHAT="WECHAT",t.WECHAT_PUBLIC="WECHAT-PUBLIC",t.WECHAT_OPEN="WECHAT-OPEN",t.CUSTOM="CUSTOM",t.EMAIL="EMAIL",t.USERNAME="USERNAME",t.NULL="NULL"})(N||(N={}));var wt=class{constructor(){this._fnPromiseMap=new Map}run(e,n){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=n();s(yield a)}catch(a){o(a)}finally{this._fnPromiseMap.delete(e)}})),this._fnPromiseMap.set(e,i)),i})}_runIdlePromise(){return Promise.resolve()}},Tt=class{constructor(e){this._singlePromise=new wt,this._cache=ve(e.env),this._baseURL=`https://${e.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new V.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,n=this._cache.getStore(e);return typeof n=="string"&&n.length>=16&&n.length<=48||(n=nn(),this._cache.setStore(e,n)),this._deviceID=n,n}_request(s,o){return P(this,arguments,function*(e,n,i={}){let a={"x-request-id":nn(),"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:n,headers:a})})}_fetchAccessToken(){return P(this,null,function*(){let{loginTypeKey:e,accessTokenKey:n,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(n,r),this._cache.setStore(i,Date.now()+1e3*l),r})}isAccessTokenExpired(e,n){let i=!0;return e&&n&&(i=n<Date.now()),i}getAccessToken(){return P(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(e),s=this._cache.getStore(n);return this.isAccessTokenExpired(i,s)?this._fetchAccessToken():i})}refreshAccessToken(){return P(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:n,loginTypeKey:i}=this._cache.keys;return this._cache.removeStore(e),this._cache.removeStore(n),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}))})}},an=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Ds={"X-SDK-Version":"1.3.5"};function lt(t,e,n){let i=t[e];t[e]=function(s){let o={},a={};n.forEach(l=>{let{data:c,headers:f}=l.call(t,s);Object.assign(o,c),Object.assign(a,f)});let r=s.data;return r&&(()=>{var l;if(l=r,Object.prototype.toString.call(l)!=="[object FormData]")s.data=L(L({},r),o);else for(let c in o)r.append(c,o[c])})(),s.headers=L(L({},s.headers||{}),a),i.call(t,s)}}function ut(){let t=Math.random().toString(16).slice(2);return{data:{seqId:t},headers:M(L({},Ds),{"x-seqid":t})}}var xt=class{constructor(e={}){var n;this.config=e,this._reqClass=new V.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=(n=this.config.env,Mn[n]),this.oauth=new Tt(this.config),lt(this._reqClass,"post",[ut]),lt(this._reqClass,"upload",[ut]),lt(this._reqClass,"download",[ut])}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,n;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=yield this._refreshAccessTokenPromise}catch(i){n=i}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,n)throw n;return e})}_refreshAccessToken(){return P(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:n,refreshTokenKey:i,loginTypeKey:s,anonymousUuidKey:o}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(n);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 f=this._cache.getStore(o),d=this._cache.getStore(i),m=yield this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:d});return this.setRefreshToken(m.refresh_token),this._refreshAccessToken()}W(jn),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 W(Vn),this._cache.setStore(e,l.data.access_token),this._cache.setStore(n,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:n,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(n),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,n,i){return P(this,null,function*(){let s=`x-tcb-trace_${this.config.env}`,o="application/x-www-form-urlencoded",a=L({action:e,env:this.config.env,dataVersion:"2019-08-16"},n),r;if(an.indexOf(e)===-1&&(this._cache.keys,a.access_token=yield this.oauth.getAccessToken()),e==="storage.uploadFile"){r=new FormData;for(let g in r)r.hasOwnProperty(g)&&r[g]!==void 0&&r.append(g,a[g]);o="multipart/form-data"}else{o="application/json",r={};for(let g in a)a[g]!==void 0&&(r[g]=a[g])}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:f,inQuery:d,search:m}=n,y={env:this.config.env};f&&(y.parse=!0),d&&(y=L(L({},d),y));let w=function(g,_,v={}){let T=/\?/.test(_),I="";for(let C in v)I===""?!T&&(_+="?"):I+="&",I+=`${C}=${encodeURIComponent(v[C])}`;return/^http(s)?\:\/\//.test(_+=I)?_:`${g}${_}`}(bs,"//tcb-api.tencentcloudapi.com/web",y);m&&(w+=m);let h=yield this.post(L({url:w,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,n={},i={}){let o=yield this.request(e,n,M(L({},i),{onUploadProgress:n.onUploadProgress}));if((o.data.code==="ACCESS_TOKEN_DISABLED"||o.data.code==="ACCESS_TOKEN_EXPIRED")&&an.indexOf(e)===-1){yield this.oauth.refreshAccessToken();let a=yield this.request(e,n,M(L({},i),{onUploadProgress:n.onUploadProgress}));if(a.data.code)throw new A({code:a.data.code,message:tn(a.data.message)});return a.data}if(o.data.code)throw new A({code:o.data.code,message:tn(o.data.message)});return o.data})}setRefreshToken(e){let{accessTokenKey:n,accessTokenExpireKey:i,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(n),this._cache.removeStore(i),this._cache.setStore(s,e)}},qn={};function Q(t){return qn[t]}var _e=class{constructor(e){this.config=e,this._cache=ve(e.env),this._request=Q(e.env)}setRefreshToken(e){let{accessTokenKey:n,accessTokenExpireKey:i,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(n),this._cache.removeStore(i),this._cache.setStore(s,e)}setAccessToken(e,n){let{accessTokenKey:i,accessTokenExpireKey:s}=this._cache.keys;this._cache.setStore(i,e),this._cache.setStore(s,n)}refreshUserInfo(){return P(this,null,function*(){let{data:e}=yield this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e})}setLocalUserInfo(e){let{userInfoKey:n}=this._cache.keys;this._cache.setStore(n,e)}},bt=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=Q(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,n){return this._request.send("auth.updatePassword",{oldPassword:n,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",{}),n=!1,{users:i}=e;return i.forEach(s=>{s.wxOpenId&&s.wxPublicId&&(n=!0)}),{users:i,hasPrimaryUid:n}})}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:n,gender:i,avatarUrl:s,province:o,country:a,city:r}=e,{data:l}=yield this._request.send("auth.updateUserInfo",{nickName:n,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,n=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach(i=>{this[i]=n[i]}),this.location={country:n.country,province:n.province,city:n.city}}setLocalUserInfo(e){let{userInfoKey:n}=this._cache.keys;this._cache.setStore(n,e),this.setUserInfo()}},he=class{constructor(e){if(!e)throw new A({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=ve(e);let{refreshTokenKey:n,accessTokenKey:i,accessTokenExpireKey:s}=this._cache.keys,o=this._cache.getStore(n),a=this._cache.getStore(i),r=this._cache.getStore(s);this.credential={refreshToken:o,accessToken:a,accessTokenExpire:r},this.user=new bt(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)}},be=class extends _e{signIn(){return P(this,null,function*(){this._cache.updatePersistence("local"),yield this._request.oauth.getAccessToken(),W(ye),W(oe,{env:this.config.env,loginType:N.ANONYMOUS,persistence:"local"});let e=new he(this.config.env);return yield e.user.refresh(),e})}linkAndRetrieveDataWithTicket(e){return P(this,null,function*(){let{anonymousUuidKey:n,refreshTokenKey:i}=this._cache.keys,s=this._cache.getStore(n),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(),W(vt,{env:this.config.env}),W(oe,{loginType:N.CUSTOM,persistence:"local"}),{credential:{refreshToken:a.refresh_token}};throw new A({message:"\u533F\u540D\u8F6C\u5316\u5931\u8D25"})})}_setAnonymousUUID(e){let{anonymousUuidKey:n,loginTypeKey:i}=this._cache.keys;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(i,N.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}},We=class extends _e{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:n}=this._cache.keys,i=yield this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(n)||""});if(i.refresh_token)return this.setRefreshToken(i.refresh_token),yield this._request.refreshAccessToken(),W(ye),W(oe,{env:this.config.env,loginType:N.CUSTOM,persistence:this.config.persistence}),yield this.refreshUserInfo(),new he(this.config.env);throw new A({message:"\u81EA\u5B9A\u4E49\u767B\u5F55\u5931\u8D25"})})}},He=class extends _e{signIn(e,n){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:n,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(),W(ye),W(oe,{env:this.config.env,loginType:N.EMAIL,persistence:this.config.persistence}),new he(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,n){return P(this,null,function*(){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:n})})}},Je=class extends _e{signIn(e,n){return P(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"username must be a string"});typeof n!="string"&&(n="",console.warn("password is empty"));let{refreshTokenKey:i}=this._cache.keys,s=yield this._request.send("auth.signIn",{loginType:N.USERNAME,username:e,password:n,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(),W(ye),W(oe,{env:this.config.env,loginType:N.USERNAME,persistence:this.config.persistence}),new he(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"})})}},kt=class{constructor(e){this.config=e,this._cache=ve(e.env),this._request=Q(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),ne(oe,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 be(this.config)}customAuthProvider(){return new We(this.config)}emailAuthProvider(){return new He(this.config)}usernameAuthProvider(){return new Je(this.config)}signInAnonymously(){return P(this,null,function*(){return new be(this.config).signIn()})}signInWithEmailAndPassword(e,n){return P(this,null,function*(){return new He(this.config).signIn(e,n)})}signInWithUsernameAndPassword(e,n){return new Je(this.config).signIn(e,n)}linkAndRetrieveDataWithTicket(e){return P(this,null,function*(){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new be(this.config)),ne(vt,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:n,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(n),this._cache.removeStore(i),W(ye),W(oe,{env:this.config.env,loginType:N.NULL,persistence:this.config.persistence}),o})}signUpWithEmailAndPassword(e,n){return P(this,null,function*(){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:n})})}sendPasswordResetEmail(e){return P(this,null,function*(){return this._request.send("auth.sendPasswordResetEmail",{email:e})})}onLoginStateChanged(e){ne(ye,()=>{let i=this.hasLoginState();e.call(this,i)});let n=this.hasLoginState();e.call(this,n)}onLoginStateExpired(e){ne(jn,e.bind(this))}onAccessTokenRefreshed(e){ne(Vn,e.bind(this))}onAnonymousConverted(e){ne(vt,e.bind(this))}onLoginTypeChanged(e){ne(oe,()=>{let n=this.hasLoginState();e.call(this,n)})}getAccessToken(){return P(this,null,function*(){return{accessToken:(yield this._request.getAccessToken()).accessToken,env:this.config.env}})}hasLoginState(){let{accessTokenKey:e,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(e),s=this._cache.getStore(n);return this._request.oauth.isAccessTokenExpired(i,s)?null:new he(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:n}=yield this._request.send("auth.isUsernameRegistered",{username:e});return n&&n.isRegistered})}getLoginState(){return Promise.resolve(this.hasLoginState())}signInWithTicket(e){return P(this,null,function*(){return new We(this.config).signIn(e)})}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then(e=>e.code?e:M(L({},e.data),{requestId:e.seqId}))}getAuthHeader(){let{refreshTokenKey:e,accessTokenKey:n}=this._cache.keys,i=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+i}}_onAnonymousConverted(e){let{env:n}=e.data;n===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){let{loginType:n,persistence:i,env:s}=e.data;s===this.config.env&&(this._cache.updatePersistence(i),this._cache.setStore(this._cache.keys.loginTypeKey,n))}},Ls=function(t,e){e=e||De();let n=Q(this.config.env),{cloudPath:i,filePath:s,onUploadProgress:o,fileType:a="image"}=t;return n.send("storage.getUploadMetadata",{path:i}).then(r=>{let{data:{url:l,authorization:c,token:f,fileId:d,cosFileId:m},requestId:y}=r,w={key:i,signature:c,"x-cos-meta-fileid":m,success_action_status:"201","x-cos-security-token":f};n.upload({url:l,data:w,file:s,name:i,fileType:a,onUploadProgress:o}).then(h=>{h.statusCode===201?e(null,{fileID:d,requestId:y}):e(new A({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${h.data}`}))}).catch(h=>{e(h)})}).catch(r=>{e(r)}),e.promise},Bs=function(t,e){e=e||De();let n=Q(this.config.env),{cloudPath:i}=t;return n.send("storage.getUploadMetadata",{path:i}).then(s=>{e(null,s)}).catch(s=>{e(s)}),e.promise},Os=function({fileList:t},e){if(e=e||De(),!t||!Array.isArray(t))return{code:"INVALID_PARAM",message:"fileList\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u6570\u7EC4"};for(let i of t)if(!i||typeof i!="string")return{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"};let n={fileid_list:t};return Q(this.config.env).send("storage.batchDeleteFile",n).then(i=>{i.code?e(null,i):e(null,{fileList:i.data.delete_list,requestId:i.requestId})}).catch(i=>{e(i)}),e.promise},zn=function({fileList:t},e){e=e||De(),t&&Array.isArray(t)||e(null,{code:"INVALID_PARAM",message:"fileList\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u6570\u7EC4"});let n=[];for(let s of t)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"}),n.push({fileid:s.fileID,max_age:s.maxAge})):typeof s=="string"?n.push({fileid:s}):e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u5B57\u7B26\u4E32"});let i={file_list:n};return Q(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},Rs=function(n,i){return P(this,arguments,function*({fileID:t},e){let s=(yield zn.call(this,{fileList:[{fileID:t,maxAge:600}]})).fileList[0];if(s.code!=="SUCCESS")return e?e(s):new Promise(r=>{r(s)});let o=Q(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:t,data:e,query:n,parse:i,search:s,timeout:o},a){let r=a||De(),l;try{l=e?JSON.stringify(e):""}catch(f){return Promise.reject(f)}if(!t)return Promise.reject(new A({code:"PARAM_ERROR",message:"\u51FD\u6570\u540D\u4E0D\u80FD\u4E3A\u7A7A"}));let c={inQuery:n,parse:i,search:s,function_name:t,request_data:l};return Q(this.config.env).send("functions.invokeFunction",c,{timeout:o}).then(f=>{if(f.code)r(null,f);else{let d=f.data.response_data;if(i)r(null,{result:d,requestId:f.requestId});else try{d=JSON.parse(f.data.response_data),r(null,{result:d,requestId:f.requestId})}catch(m){r(new A({message:"response data must be json"}))}}return r.promise}).catch(f=>{r(f)}),r.promise},rn={timeout:15e3,persistence:"session"},cn=6e5,ln={},St=class t{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(V.adapter||(this.requestClient=new V.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=L(L({},rn),e),!0){case this.config.timeout>cn: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=cn;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 t(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;let n=e||V.adapter.primaryStorage||rn.persistence;var i;return n!==this.config.persistence&&(this.config.persistence=n),function(s){let{env:o}=s;Un[o]=new qe(s),Mn[o]=new qe(M(L({},s),{persistence:"local"}))}(this.config),i=this.config,qn[i.env]=new xt(i),this.authObj=new kt(this.config),this.authObj}on(e,n){return ne.apply(this,[e,n])}off(e,n){return Es.apply(this,[e,n])}callFunction(e,n){return Ns.apply(this,[e,n])}deleteFile(e,n){return Os.apply(this,[e,n])}getTempFileURL(e,n){return zn.apply(this,[e,n])}downloadFile(e,n){return Rs.apply(this,[e,n])}uploadFile(e,n){return Ls.apply(this,[e,n])}getUploadMetadata(e,n){return Bs.apply(this,[e,n])}registerExtension(e){ln[e.name]=e}invokeExtension(e,n){return P(this,null,function*(){let i=ln[e];if(!i)throw new A({message:`\u6269\u5C55${e} \u5FC5\u987B\u5148\u6CE8\u518C`});return yield i.invoke(n,this)})}useAdapters(e){let{adapter:n,runtime:i}=Cs(e)||{};n&&(V.adapter=n),i&&(V.runtime=i)}},Wn=new St;function dt(t,e,n){n===void 0&&(n={});var i=/\?/.test(e),s="";for(var o in n)s===""?!i&&(e+="?"):s+="&",s+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(e+=s)?e:""+t+e}var It=class{get(e){let{url:n,data:i,headers:s,timeout:o}=e;return new Promise((a,r)=>{F.request({url:dt("https:",n),data:i,method:"GET",header:s,timeout:o,success(l){a(l)},fail(l){r(l)}})})}post(e){let{url:n,data:i,headers:s,timeout:o}=e;return new Promise((a,r)=>{F.request({url:dt("https:",n),data:i,method:"POST",header:s,timeout:o,success(l){a(l)},fail(l){r(l)}})})}upload(e){return new Promise((n,i)=>{let{url:s,file:o,data:a,headers:r,fileType:l}=e,c=F.uploadFile({url:dt("https:",s),name:"file",formData:Object.assign({},a),filePath:o,fileType:l,header:r,success(f){let d={statusCode:f.statusCode,data:f.data||{}};f.statusCode===200&&a.success_action_status&&(d.statusCode=parseInt(a.success_action_status,10)),n(d)},fail(f){i(new Error(f.errMsg||"uploadFile:fail"))}});typeof e.onUploadProgress=="function"&&c&&typeof c.onProgressUpdate=="function"&&c.onProgressUpdate(f=>{e.onUploadProgress({loaded:f.totalBytesSent,total:f.totalBytesExpectedToSend})})})}},Fs={setItem(t,e){F.setStorageSync(t,e)},getItem:t=>F.getStorageSync(t),removeItem(t){F.removeStorageSync(t)},clear(){F.clearStorageSync()}},Us={genAdapter:function(){return{root:{},reqClass:It,localStorage:Fs,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Wn.useAdapters(Us);var Ft=Wn,Ms=Ft.init;Ft.init=function(t){t.env=t.spaceId;let e=Ms.call(this,t);e.config.provider="tencent",e.config.spaceId=t.spaceId;let n=e.auth;return e.auth=function(i){let s=n.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:f}=Bn(r);if(!(l||c||f))return a.call(this,r);a.call(this,r).then(d=>{l&&l(d),f&&f(d)},d=>{c&&c(d),f&&f(d)})}).bind(s)}),s},e.customAuth=e.auth,e};var un=Ft;function js(t,e){return P(this,null,function*(){let n=`http://${t}:${e}/system/ping`;try{let s=yield(i={url:n,timeout:500},new Promise((o,a)=>{F.request(M(L({},i),{success(r){o(r)},fail(r){a(r)}}))}));return!(!s.data||s.data.code!==0)}catch(s){return!1}var i})}function Vs(t,e){return P(this,null,function*(){let n;for(let i=0;i<t.length;i++){let s=t[i];if(yield js(s,e)){n=s;break}}return{address:n,port:e}})}var qs={"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"},zs=class{constructor(t){if(["spaceId","clientSecret"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(`${e} required`)}),!t.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({},t),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=F}request(t,e=!0){return P(this,null,function*(){return t=this.setupRequest(t),Promise.resolve().then(()=>ge.wrappedRequest(t,this.adapter.request))})}requestLocal(t){return new Promise((e,n)=>{this.adapter.request(Object.assign(t,{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 n(new A({code:s,message:o}))}e({success:!0,result:i.data})}}))})}setupRequest(t){let e=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=ge.sign(e,this.config.clientSecret);let i=mt();n["x-client-info"]=encodeURIComponent(JSON.stringify(i));let{token:s}=Ie();return n["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:e,dataType:"json",header:JSON.parse(JSON.stringify(n))}}setupLocalRequest(t){return P(this,null,function*(){let e=mt(),{token:n}=Ie(),i=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:e,token:n}),{address:s,servePort:o}=this.__dev__&&this.__dev__.debugInfo||{},{address:a}=yield Vs(s,o);return{url:`http://${a}:${o}/${qs[t.method]}`,method:"POST",data:i,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))}})}callFunction(t){let e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(e,!1)}getUploadFileOptions(t){let e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(e)}reportUploadFile(t){let e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(e)}uploadFile({filePath:t,cloudPath:e,fileType:n="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,f)=>{let d=this.adapter.uploadFile({url:a,formData:r,name:l,filePath:t,fileType:n,success(m){m&&m.statusCode<400?c(m):f(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))},fail(m){f(new A({code:m.code||"UPLOAD_FAILED",message:m.message||m.errMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}});typeof i=="function"&&d&&typeof d.onProgressUpdate=="function"&&d.onProgressUpdate(m=>{i({loaded:m.totalBytesSent,total:m.totalBytesExpectedToSend})})})}).then(()=>this.reportUploadFile({cloudPath:e})).then(o=>new Promise((a,r)=>{o.success?a({success:!0,filePath:t,fileID:s}):r(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}))}deleteFile({fileList:t}){let e={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(e).then(n=>{if(n.success)return n.result;throw new A({code:"DELETE_FILE_FAILED",message:"\u5220\u9664\u6587\u4EF6\u5931\u8D25"})})}getTempFileURL({fileList:t,maxAge:e}={}){if(!Array.isArray(t)||t.length===0)throw new A({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"});let n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:e})};return this.request(n).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"})})}},dn={init(t){let e=new zs(t),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return n},e.customAuth=e.auth,e}},ke=Y(function(t,e){t.exports=se.enc.Hex});function Hn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return(t==="x"?e:3&e|8).toString(16)})}function Jn(t="",e={}){let{data:n,functionName:i,method:s,headers:o,signHeaderKeys:a=[],config:r}=e,l=String(Date.now()),c=Hn(),f=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),[m="",y=""]=t.split("?")||[],w=function(h){let u="HMAC-SHA256",g=h.signedHeaders.join(";"),_=h.signedHeaders.map(D=>`${D.toLowerCase()}:${h.headers[D]}
`).join(""),v=yt(h.body).toString(ke),T=`${h.method.toUpperCase()}
${h.path}
${h.query}
${_}
${g}
${v}
`,I=yt(T).toString(ke),C=`${u}
${h.timestamp}
${I}
`,O=Fn(C,h.secretKey).toString(ke);return`${u} Credential=${h.secretId}, SignedHeaders=${g}, Signature=${O}`}({path:m,query:y,method:s,headers:f,timestamp:l,body:JSON.stringify(n),secretId:r.accessKey,secretKey:r.secretKey,signedHeaders:d.sort()});return{url:`${r.endpoint}${t}`,headers:Object.assign({},f,{Authorization:w})}}function Kn({url:t,data:e,method:n="POST",headers:i={},timeout:s}){return new Promise((o,a)=>{F.request({url:t,method:n,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:f,trace_id:d}=r.data||{};return a(new A({code:"SYS_ERR",message:c||f||"request:fail",requestId:d||l}))}o({status:r.statusCode,data:r.data,headers:r.header,requestId:l})}})})}function hn(t,e){let{path:n,data:i,method:s="GET"}=t,{url:o,headers:a}=Jn(n,{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 Kn({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 Ws(t=""){let e=t.trim().replace(/^cloud:\/\//,""),n=e.indexOf("/");if(n<=0)throw new A({code:"INVALID_PARAM",message:"fileID\u4E0D\u5408\u6CD5"});let i=e.substring(0,n),s=e.substring(n+1);return i!==this.config.spaceId&&console.warn("file ".concat(t," does not belong to env ").concat(this.config.spaceId)),s}function Hs(t=""){return"cloud://".concat(this.config.spaceId,"/").concat(t.replace(/^\/+/,""))}var At=class{constructor(e){this.config=e}signedURL(e,n={}){let i=`/ws/function/${e}`,s=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),o=Object.assign({},n,{accessKeyId:this.config.accessKey,signatureNonce:Hn(),timestamp:""+Date.now()}),a=[i,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map(function(f){return o[f]?"".concat(f,"=").concat(o[f]):null}).filter(Boolean).join("&"),`host:${s}`].join(`
`),r=["HMAC-SHA256",yt(a).toString(ke)].join(`
`),l=Fn(r,this.config.secretKey).toString(ke),c=Object.keys(o).map(f=>`${f}=${encodeURIComponent(o[f])}`).join("&");return`${this.config.wsEndpoint}${i}?${c}&signature=${l}`}},Js=class{constructor(t){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(`${e} required`)}),t.endpoint){if(typeof t.endpoint!="string")throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||`https://${t.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:t.wsEndpoint||`wss://${t.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new At(this.config)}callFunction(t){return function(e,n){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:f}=Jn("/functions/invokeFunction",{functionName:i,data:s,method:r,headers:l,signHeaderKeys:["x-to-function-name"],config:n});return Kn({url:c,data:s,method:r,headers:f,timeout:a}).then(d=>{let m=0;if(o){let y=d.data||{};m=y.errCode==="200"?0:y.errCode,d.data=y.data||{},d.errMsg=y.errMsg}if(m!==0)throw new A({code:m,message:d.errMsg,requestId:d.requestId});return{errCode:m,success:m===0,requestId:d.requestId,result:d.data}}).catch(d=>{throw new A({code:d.errCode,message:d.errMsg,requestId:d.requestId})})}(t,this.config)}uploadFileToOSS({url:t,filePath:e,fileType:n,formData:i,onUploadProgress:s}){return new Promise((o,a)=>{let r=F.uploadFile({url:t,filePath:e,fileType:n,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:t,cloudPath:e="",fileType:n="image",onUploadProgress:i}){if(Se(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 hn({path:"/".concat(e.replace(/^\//,""),"?post_url")},this.config),{file_id:a,upload_url:r,form_data:l}=o,c=l&&l.reduce((f,d)=>(f[d.key]=d.value,f),{});return this.uploadFileToOSS({url:r,filePath:t,fileType:n,formData:c,onUploadProgress:i}).then(()=>({fileID:a}))})}getTempFileURL(e){return P(this,arguments,function*({fileList:t}){return new Promise((n,i)=>{(!t||t.length<0)&&n({code:"INVALID_PARAM",message:"fileList\u4E0D\u80FD\u4E3A\u7A7A\u6570\u7EC4"}),t.length>50&&n({code:"INVALID_PARAM",message:"fileList\u6570\u7EC4\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC750"});let s=[];for(let o of t){let a;Se(o)!=="string"&&n({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"});try{a=Ws.call(this,o)}catch(r){console.warn(r.errCode,r.errMsg),a=o}s.push({file_id:a,expire:600})}hn({path:"/?download_url",data:{file_list:s},method:"POST"},this.config).then(o=>{let{file_list:a=[]}=o;n({fileList:a.map(r=>({fileID:Hs.call(this,r.file_id),tempFileURL:r.download_url}))})}).catch(o=>i(o))})})}connectWebSocket(t){return P(this,null,function*(){let{name:e,query:n}=t;return F.connectSocket({url:this._websocket.signedURL(e,n),complete:()=>{}})})}},Ks={init:t=>{t.provider="alipay";let e=new Js(t);return e.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},e}};function Gs({data:t}){let e;e=mt();let n=JSON.parse(JSON.stringify(t||{}));if(Object.assign(n,{clientInfo:e}),!n.uniIdToken){let{token:i}=Ie();i&&(n.uniIdToken=i)}return n}var $s=[{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"}],Gn=/[\\^$.*+?()[\]{}|]/g,Ys=RegExp(Gn.source);function pn(t,e,n){return t.replace(new RegExp((i=e)&&Ys.test(i)?i.replace(Gn,"\\$&"):i,"g"),n);var i}var ht={NONE:"none",REQUEST:"request",RESPONSE:"response",BOTH:"both"},fn="_globalUniCloudStatus",Qs="_globalUniCloudSecureNetworkCache__{spaceId}",Zs="uni-secure-network",$n={SYSTEM_ERROR:{code:2e4,message:"System error"},APP_INFO_INVALID:{code:20101,message:"Invalid client"},GET_ENCRYPT_KEY_FAILED:{code:20102,message:"Get encrypt key failed"}};function Yn(t){let{errSubject:e,subject:n,errCode:i,errMsg:s,code:o,message:a,cause:r}=t||{};return new A({subject:e||n||Zs,code:i||o||$n.SYSTEM_ERROR.code,message:s||a,cause:r})}var Ct;function gn({secretType:t}={}){return t===ht.REQUEST||t===ht.RESPONSE||t===ht.BOTH}function mn({name:t,data:e={}}={}){return t==="DCloud-clientDB"&&e.redirectTo==="encryption"&&e.action==="getAppClientKey"}function Xs({provider:t,spaceId:e,functionName:n}={}){let{appId:i,uniPlatform:s,osName:o}=Nn(),a=s;s==="app"&&(a=o);let r=function({provider:d,spaceId:m}={}){let y=fs;if(!y)return{};d=function(h){return h==="tencent"?"tcb":h}(d);let w=y.find(h=>h.provider===d&&h.spaceId===m);return w&&w.config}({provider:t,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 f=function(d,m){let y,w,h;for(let u=0;u<d.length;u++){let g=d[u];g!==m?g!=="*"?g.split(",").map(_=>_.trim()).indexOf(m)>-1&&(w=g):h=g:y=g}return y||w||h}(c,n);if(!f)return!1;if((l[f]||[]).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`),Yn($n.APP_INFO_INVALID)}function yn({functionName:t,result:e,logPvd:n}){}function eo(t){let e=t.callFunction,n=function(i){let s=i.name;i.data=Gs.call(t,{data:i.data});let o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],a=gn(i),r=mn(i),l=a||r;return e.call(this,i).then(c=>(c.errCode=0,!l&&yn.call(this,{functionName:s,result:c,logPvd:o}),Promise.resolve(c)),c=>(!l&&yn.call(this,{functionName:s,result:c,logPvd:o}),c&&c.message&&(c.message=function({message:f="",extraInfo:d={},formatter:m=[]}={}){for(let y=0;y<m.length;y++){let{rule:w,content:h,mode:u}=m[y],g=f.match(w);if(!g)continue;let _=h;for(let v=1;v<g.length;v++)_=pn(_,`{$${v}}`,g[v]);for(let v in d)_=pn(_,`{${v}}`,d[v]);return u==="replace"?_:f+_}return f}({message:`[${i.name}]: ${c.message}`,formatter:$s,extraInfo:{functionName:s}})),Promise.reject(c)))};t.callFunction=function(i){let{provider:s,spaceId:o}=t.config,a=i.name,r,l;return i.data=i.data||{},r=n,r=r.bind(t),mn(i)?l=n.call(t,i):gn(i)?l=new Ct({secretType:i.secretType,uniCloudIns:t}).wrapEncryptDataCallFunction(n.bind(t))(i):Xs({provider:s,spaceId:o,functionName:a})?l=new Ct({secretType:i.secretType,uniCloudIns:t}).wrapVerifyClientCallFunction(n.bind(t))(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=>c)}}Ct=class{constructor(){throw Yn({message:`Platform ${Rt} is not enabled, please check whether secure network module is enabled in your manifest.json`})}};var Qn=Symbol("CLIENT_DB_INTERNAL");function Ke(t,e){return t.then="DoNotReturnProxyWithAFunctionNamedThen",t._internalType=Qn,t.inspect=null,t.__v_raw=void 0,new Proxy(t,{get(n,i,s){if(i==="_uniClient")return null;if(typeof i=="symbol")return n[i];if(i in n||typeof i!="string"){let o=n[i];return typeof o=="function"?o.bind(n):o}return e.get(n,i,s)}})}function _n(t){return{on:(e,n)=>{t[e]=t[e]||[],t[e].indexOf(n)>-1||t[e].push(n)},off:(e,n)=>{t[e]=t[e]||[];let i=t[e].indexOf(n);i!==-1&&t[e].splice(i,1)}}}var to=["db.Geo","db.command","command.aggregate"];function Zn(t,e){return to.indexOf(`${t}.${e}`)>-1}function de(t){switch(Se(t=On(t))){case"array":return t.map(e=>de(e));case"object":return t._internalType===Qn||Object.keys(t).forEach(e=>{t[e]=de(t[e])}),t;case"regexp":return{$regexp:{source:t.source,flags:t.flags}};case"date":return{$date:t.toISOString()};default:return t}}function Te(t){return t&&t.content&&t.content.$method}var Pt=class{constructor(e,n,i){this.content=e,this.prevStage=n||null,this.udb=null,this._database=i}toJSON(){let e=this,n=[e.content];for(;e.prevStage;)e=e.prevStage,n.push(e.content);return{$db:n.reverse().map(i=>({$method:i.$method,$param:de(i.$param)}))}}toString(){return JSON.stringify(this.toJSON())}getAction(){let e=this.toJSON().$db.find(n=>n.$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 n=Te(e),i=Te(e.prevStage);if(n==="aggregate"&&i==="collection"||n==="pipeline")return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if(Te(e)==="command")return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){let n=Te(e),i=Te(e.prevStage);if(n==="aggregate"&&i==="command")return!0;e=e.prevStage}return!1}getNextStageFn(e){let n=this;return function(){return Ae({$method:e,$param:de(Array.from(arguments))},n,n._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,n){let i=this.getAction(),s=this.getCommand();return s.$db.push({$method:e,$param:de(n)}),this._database._callCloudFunction({action:i,command:s})}};function Ae(t,e,n){return Ke(new Pt(t,e,n),{get(i,s){let o="db";return i&&i.content&&(o=i.content.$method),Zn(o,s)?Ae({$method:s},i,n):function(){return Ae({$method:s,$param:de(Array.from(arguments))},i,n)}}})}function pt({path:t,method:e}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...t.map(n=>({$method:n})),{$method:e,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}var Et=class{constructor({uniClient:e={},isJQL:n=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=me("_globalUniCloudDatabaseCallback")),n||(this.auth=_n(this._authCallBacks)),this._isJQL=n,Object.assign(this,_n(this._dbCallBacks)),this.env=Ke({},{get:(i,s)=>({$env:s})}),this.Geo=Ke({},{get:(i,s)=>pt({path:["Geo"],method:s})}),this.serverDate=pt({path:[],method:"serverDate"}),this.RegExp=pt({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,n){let i=this._dbCallBacks;i[e]&&i[e].forEach(s=>{s(...n)})}_callbackAuth(e,n){let i=this._authCallBacks;i[e]&&i[e].forEach(s=>{s(...n)})}multiSend(){let e=Array.from(arguments),n=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:n,queryList:e})}};function vn(t,e={}){return Ke(new t(e),{get:(n,i)=>Zn("db",i)?Ae({$method:i},null,n):function(){return Ae({$method:i,$param:de(Array.from(arguments))},null,n)}})}var Ge=class extends Et{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:n,multiCommand:i,queryList:s}){function o(d,m){if(i&&s)for(let y=0;y<s.length;y++){let w=s[y];w.udb&&typeof w.udb.setResult=="function"&&(m?w.udb.setResult(m):w.udb.setResult(d.result.dataList[y]))}}let a=this,r=this._isJQL?"databaseForJQL":"database";function l(d){return a._callback("error",[d]),q(z(r,"fail"),d).then(()=>q(z(r,"complete"),d)).then(()=>(o(null,d),G(R.RESPONSE,{type:ie.CLIENT_DB,content:d}),Promise.reject(d)))}let c=q(z(r,"invoke")),f=this._uniClient;return c.then(()=>f.callFunction({name:"DCloud-clientDB",type:je.CLIENT_DB,data:{action:e,command:n,multiCommand:i}})).then(d=>{let{code:m,message:y,token:w,tokenExpired:h,systemInfo:u=[]}=d.result;if(u)for(let _=0;_<u.length;_++){let{level:v,message:T,detail:I}=u[_],C="[System Info]"+T;I&&(C=`${C}
\u8BE6\u7EC6\u4FE1\u606F\uFF1A${I}`),(console[v==="warn"?"error":v]||console.log)(C)}if(m)return l(new A({code:m,message:y,requestId:d.requestId}));d.result.errCode=d.result.errCode||d.result.code,d.result.errMsg=d.result.errMsg||d.result.message,w&&h&&(Rn({token:w,tokenExpired:h}),this._callbackAuth("refreshToken",[{token:w,tokenExpired:h}]),this._callback("refreshToken",[{token:w,tokenExpired:h}]),G(R.REFRESH_TOKEN,{token:w,tokenExpired:h}));let g=[{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 _=0;_<g.length;_++){let{prop:v,tips:T}=g[_];if(v in d.result){let I=d.result[v];Object.defineProperty(d.result,v,{get:()=>(console.warn(T),I)})}}return function(_){return q(z(r,"success"),_).then(()=>q(z(r,"complete"),_)).then(()=>{o(_,null);let v=a._parseResult(_);return G(R.RESPONSE,{type:ie.CLIENT_DB,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}))))}},ue="token\u65E0\u6548\uFF0C\u8DF3\u8F6C\u767B\u5F55\u9875\u9762",Xn="token\u8FC7\u671F\uFF0C\u8DF3\u8F6C\u767B\u5F55\u9875\u9762",ei={TOKEN_INVALID_TOKEN_EXPIRED:Xn,TOKEN_INVALID_INVALID_CLIENTID:ue,TOKEN_INVALID:ue,TOKEN_INVALID_WRONG_TOKEN:ue,TOKEN_INVALID_ANONYMOUS_USER:ue},no={"uni-id-token-expired":Xn,"uni-id-check-token-failed":ue,"uni-id-token-not-exist":ue,"uni-id-check-device-feature-failed":ue},Dt=M(L(L({},ei),no),{default:"\u7528\u6237\u672A\u767B\u5F55\u6216\u767B\u5F55\u72B6\u6001\u8FC7\u671F\uFF0C\u81EA\u52A8\u8DF3\u8F6C\u767B\u5F55\u9875\u9762"});function wn(t,e){let n="";return n=t?`${t}/${e}`:e,n.replace(/^\//,"")}function Tn(t=[],e=""){let n=[],i=[];return t.forEach(s=>{s.needLogin===!0?n.push(wn(e,s.path)):s.needLogin===!1&&i.push(wn(e,s.path))}),{needLoginPage:n,notNeedLoginPage:i}}function Ce(t){return t.split("?")[0].replace(/^\//,"")}function Ut(){return function(t){let e=t&&t.$page&&t.$page.fullPath;return e?(e.charAt(0)!=="/"&&(e="/"+e),e):""}(function(){let t=getCurrentPages();return t[t.length-1]}())}function ti(){return Ce(Ut())}function io(t="",e={}){if(!t||!(e&&e.list&&e.list.length))return!1;let n=e.list,i=Ce(t);return n.some(s=>s.pagePath===i)}var so=!!kn.uniIdRouter,{loginPage:Pe,routerNeedLogin:oo,resToLogin:ao,needLoginPage:ni,notNeedLoginPage:ro,loginPageInTabBar:co}=function({pages:t=[],subPackages:e=[],uniIdRouter:n={},tabBar:i={}}=kn){let{loginPage:s,needLogin:o=[],resToLogin:a=!0}=n,{needLoginPage:r,notNeedLoginPage:l}=Tn(t),{needLoginPage:c,notNeedLoginPage:f}=function(d=[]){let m=[],y=[];return d.forEach(w=>{let{root:h,pages:u=[]}=w,{needLoginPage:g,notNeedLoginPage:_}=Tn(u,h);m.push(...g),y.push(..._)}),{needLoginPage:m,notNeedLoginPage:y}}(e);return{loginPage:s,routerNeedLogin:o,resToLogin:a,needLoginPage:[...r,...c],notNeedLoginPage:[...l,...f],loginPageInTabBar:io(s,i)}}();if(ni.indexOf(Pe)>-1)throw new Error(`Login page [${Pe}] should not be "needLogin", please check your pages.json`);function ii(t){let e=ti();if(t.charAt(0)==="/")return t;let[n,i]=t.split("?"),s=n.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 lo(t){let e=Ce(ii(t));return!(ro.indexOf(e)>-1)&&(ni.indexOf(e)>-1||oo.some(n=>function(i,s){return new RegExp(s).test(i)}(t,n)))}function si({redirect:t}){let e=Ce(t),n=Ce(Pe);return ti()!==n&&e!==n}function Lt({api:t,redirect:e}={}){if(!e||!si({redirect:e}))return;let n=function(s,o){return s.charAt(0)!=="/"&&(s="/"+s),o?s.indexOf("?")>-1?s+`&uniIdRedirectUrl=${encodeURIComponent(o)}`:s+`?uniIdRedirectUrl=${encodeURIComponent(o)}`:s}(Pe,e);co?t!=="navigateTo"&&t!=="redirectTo"||(t="switchTab"):t==="switchTab"&&(t="navigateTo");let i={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout(()=>{i[t]({url:n})},0)}function xn({url:t}={}){let e={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){let{token:i,tokenExpired:s}=Ie(),o;if(i){if(s<Date.now()){let a="uni-id-token-expired";o={errCode:a,errMsg:Dt[a]}}}else{let a="uni-id-check-token-failed";o={errCode:a,errMsg:Dt[a]}}return o}();if(lo(t)&&n){if(n.uniIdRedirectUrl=t,Ee(R.NEED_LOGIN).length>0)return setTimeout(()=>{G(R.NEED_LOGIN,n)},0),e.abortLoginPageJump=!0,e;e.autoToLoginPage=!0}return e}function uo(){(function(){let e=Ut(),{abortLoginPageJump:n,autoToLoginPage:i}=xn({url:e});n||i&&Lt({api:"redirectTo",redirect:e})})();let t=["navigateTo","redirectTo","reLaunch","switchTab"];for(let e=0;e<t.length;e++){let n=t[e];uni.addInterceptor(n,{invoke(i){let{abortLoginPageJump:s,autoToLoginPage:o}=xn({url:i.url});return s?i:o?(Lt({api:n,redirect:ii(i.url)}),!1):i}})}}function ho(){this.onResponse(t=>{let{type:e,content:n}=t,i=!1;switch(e){case"cloudobject":i=function(s){if(typeof s!="object")return!1;let{errCode:o}=s||{};return o in Dt}(n);break;case"clientdb":i=function(s){if(typeof s!="object")return!1;let{errCode:o}=s||{};return o in ei}(n)}i&&function(s={}){let o=Ee(R.NEED_LOGIN);Ln().then(()=>{let a=Ut();if(a&&si({redirect:a}))return o.length>0?G(R.NEED_LOGIN,Object.assign({uniIdRedirectUrl:a},s)):void(Pe&&Lt({api:"navigateTo",redirect:a}))})}(n)})}function po(t){(function(e){e.onResponse=function(n){st(R.RESPONSE,n)},e.offResponse=function(n){ot(R.RESPONSE,n)}})(t),function(e){e.onNeedLogin=function(n){st(R.NEED_LOGIN,n)},e.offNeedLogin=function(n){ot(R.NEED_LOGIN,n)},so&&(me(fn).needLoginInit||(me(fn).needLoginInit=!0,Ln().then(()=>{uo.call(e)}),ao&&ho.call(e)))}(t),function(e){e.onRefreshToken=function(n){st(R.REFRESH_TOKEN,n)},e.offRefreshToken=function(n){ot(R.REFRESH_TOKEN,n)}}(t)}var oi,Ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",fo=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function go(){let t=Ie().token||"",e=t.split(".");if(!t||e.length!==3)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((i=e[1],decodeURIComponent(oi(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 n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}oi=typeof atob!="function"?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!fo.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,i,s="",o=0;o<t.length;)e=Ue.indexOf(t.charAt(o++))<<18|Ue.indexOf(t.charAt(o++))<<12|(n=Ue.indexOf(t.charAt(o++)))<<6|(i=Ue.indexOf(t.charAt(o++))),s+=n===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 mo=Y(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});let n="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(f=>{if(l){let d=l(f);if(d!==void 0)return Promise.resolve(d).then(m=>m===void 0?f:m)}return f}).then(f=>f===!1?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(d,m,y=5,w){(m=Object.assign({},m)).errMsg=n;let h=m.tempFiles,u=h.length,g=0;return new Promise(_=>{for(;g<y;)v();function v(){let T=g++;if(T>=u)return void(!h.find(C=>!C.url&&!C.errMsg)&&_(m));let I=h[T];d.uploadFile({provider:I.provider,filePath:I.path,cloudPath:I.cloudPath,fileType:I.fileType,cloudPathAsRealPath:I.cloudPathAsRealPath,onUploadProgress(C){C.index=T,C.tempFile=I,C.tempFilePath=I.path,w&&w(C)}}).then(C=>{I.url=C.fileID,T<u&&v()}).catch(C=>{I.errMsg=C.errMsg||C.message,T<u&&v()})}})}(a,f,5,c))}e.initChooseAndUploadFile=function(a){return function(r={type:"all"}){return r.type==="image"?o(a,function(l){let{count:c,sizeType:f,sourceType:d=["album","camera"],extension:m}=l;return new Promise((y,w)=>{uni.chooseImage({count:c,sizeType:f,sourceType:d,extension:m,success(h){y(s(h,"image"))},fail(h){w({errMsg:h.errMsg.replace("chooseImage:fail",i)})}})})}(r),r):r.type==="video"?o(a,function(l){let{camera:c,compressed:f,maxDuration:d,sourceType:m=["album","camera"],extension:y}=l;return new Promise((w,h)=>{uni.chooseVideo({camera:c,compressed:f,maxDuration:d,sourceType:m,extension:y,success(u){let{tempFilePath:g,duration:_,size:v,height:T,width:I}=u;w(s({errMsg:"chooseVideo:ok",tempFilePaths:[g],tempFiles:[{name:u.tempFile&&u.tempFile.name||"",path:g,size:v,type:u.tempFile&&u.tempFile.type||"",width:I,height:T,duration:_,fileType:"video",cloudPath:""}]},"video"))},fail(u){h({errMsg:u.errMsg.replace("chooseVideo:fail",i)})}})})}(r),r):o(a,function(l){let{count:c,extension:f}=l;return new Promise((d,m)=>{let y=uni.chooseFile;if(typeof wx!="undefined"&&typeof wx.chooseMessageFile=="function"&&(y=wx.chooseMessageFile),typeof y!="function")return m({errMsg:i+" \u8BF7\u6307\u5B9A type \u7C7B\u578B\uFF0C\u8BE5\u5E73\u53F0\u4EC5\u652F\u6301\u9009\u62E9 image \u6216 video\u3002"});y({type:"all",count:c,extension:f,success(w){d(s(w))},fail(w){m({errMsg:w.errMsg.replace("chooseFile:fail",i)})}})})}(r),r)}}}),yo=ss(mo),_o={auto:"auto",onready:"onready",manual:"manual"};function ai(t){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(n=>{e.push(this[n])}),e},(e,n)=>{if(this.loadtime===_o.manual)return;let i=!1,s=[];for(let o=2;o<e.length;o++)e[o]!==n[o]&&(s.push(e[o]),i=!0);e[0]!==n[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(i,s)})},methods:{onMixinDatacomPropsChange(e,n){},mixinDatacomEasyGet({getone:e=!1,success:n,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,n&&n(r)}).catch(s=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=s,this.mixinDatacomError=s,i&&i(s)}))},mixinDatacomGet(e={}){let n;e=e||{},n=typeof __uniX!="undefined"&&__uniX?t.databaseForJQL(this.spaceInfo):t.database(this.spaceInfo);let i=e.action||this.action;i&&(n=n.action(i));let s=e.collection||this.collection;n=Array.isArray(s)?n.collection(...s):n.collection(s);let o=e.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));let a=e.field||this.field;a&&(n=n.field(a));let r=e.foreignKey||this.foreignKey;r&&(n=n.foreignKey(r));let l=e.groupby||this.groupby;l&&(n=n.groupBy(l));let c=e.groupField||this.groupField;c&&(n=n.groupField(c)),(e.distinct!==void 0?e.distinct:this.distinct)===!0&&(n=n.distinct());let f=e.orderby||this.orderby;f&&(n=n.orderBy(f));let d=e.pageCurrent!==void 0?e.pageCurrent:this.mixinDatacomPage.current,m=e.pageSize!==void 0?e.pageSize:this.mixinDatacomPage.size,y=e.getcount!==void 0?e.getcount:this.getcount,w=e.gettree!==void 0?e.gettree:this.gettree,h=e.gettreepath!==void 0?e.gettreepath:this.gettreepath,u={getCount:y},g={limitLevel:e.limitlevel!==void 0?e.limitlevel:this.limitlevel,startWith:e.startwith!==void 0?e.startwith:this.startwith};return w&&(u.getTree=g),h&&(u.getTreePath=g),n=n.skip(m*(d-1)).limit(m).get(u),n}}}}function vo(t){return function(e,n={}){n=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}},n);let{customUI:i,loadingOptions:s,errorOptions:o,parseSystemError:a}=n,r=!i;return new Proxy({},{get(l,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:f,interceptorName:d,getCallbackArgs:m}={}){return function(...y){return P(this,null,function*(){let w=m?m({params:y}):{},h,u;try{return yield q(z(d,"invoke"),L({},w)),h=yield f(...y),yield q(z(d,"success"),M(L({},w),{result:h})),h}catch(g){throw u=g,yield q(z(d,"fail"),M(L({},w),{error:u})),u}finally{yield q(z(d,"complete"),u?M(L({},w),{error:u}):M(L({},w),{result:h}))}})}}({fn:function f(...d){return P(this,null,function*(){let m;r&&uni.showLoading({title:s.title,mask:s.mask});let y={name:e,type:je.OBJECT,data:{method:c,params:d}};typeof n.secretMethods=="object"&&function(v,T){let I=T.data.method,C=v.secretMethods||{},O=C[I]||C["*"];O&&(T.secretType=O)}(n,y);let w=!1;try{m=yield t.callFunction(y)}catch(v){w=!0,m={result:new A(v)}}let{errSubject:h,errCode:u,errMsg:g,newToken:_}=m.result||{};if(r&&uni.hideLoading(),_&&_.token&&_.tokenExpired&&(Rn(_),G(R.REFRESH_TOKEN,L({},_))),u){let v=g;if(w&&a&&(v=(yield a({objectName:e,methodName:c,params:d,errSubject:h,errCode:u,errMsg:g})).errMsg||g),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:O,showCancel:D,cancelText:U,confirmText:Z}={}){return new Promise((H,ae)=>{uni.showModal({title:C,content:O,showCancel:D,cancelText:U,confirmText:Z,success(X){H(X)},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 f(...d)}}let T=new A({subject:h,code:u,message:g,requestId:m.requestId});throw T.detail=m.result,G(R.RESPONSE,{type:ie.CLOUD_OBJECT,content:T}),T}return G(R.RESPONSE,{type:ie.CLOUD_OBJECT,content:m.result}),m.result})},interceptorName:"callObject",getCallbackArgs:function({params:f}={}){return{objectName:e,methodName:c,params:f}}})}})}}function ri(t){return me(Qs.replace("{spaceId}",t.config.spaceId))}function wo(){return P(this,arguments,function*({openid:t,callLoginByWeixin:e=!1}={}){throw ri(this),new Error(`[SecureNetwork] API \`initSecureNetworkByWeixin\` is not supported on platform \`${Rt}\``)})}function To(t){return P(this,null,function*(){let e=ri(this);return e.initPromise||(e.initPromise=wo.call(this,t).then(n=>n).catch(n=>{throw delete e.initPromise,n})),e.initPromise})}function xo(t){return function({openid:e,callLoginByWeixin:n=!1}={}){return To.call(t,{openid:e,callLoginByWeixin:n})}}function bo(t){(function(e){gt=e})(t)}function bn(t){let e={getAppBaseInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(n){return new Promise((i,s)=>{e[t](M(L({},n),{success(o){i(o)},fail(o){s(o)}}))})}}var Bt=class extends ft{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([bn("getAppBaseInfo")(),bn("getPushClientId")()]).then(([{appId:e}={},{cid:n}={}]=[])=>{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!n)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=n,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 n=e&&e.data&&e.data.payload;return!(!n||n.channel!=="UNI_CLOUD_SSE"||n.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;let n=e&&e.data&&e.data.payload,{action:i,messageId:s,message:o}=n;this._payloadQueue.push({action:i,messageId:s,message:o}),this._consumMessage()}_consumMessage(){for(;;){let e=this._payloadQueue.find(n=>n.messageId===this._currentMessageId+1);if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){let{action:n,messageId:i,message:s}=e;n==="end"?this._end({messageId:i,message:s}):n==="message"&&this._appendMessage({messageId:i,message:s})}_appendMessage({messageId:e,message:n}={}){this.emit("message",n)}_end({messageId:e,message:n}={}){this.emit("end",n),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 ko(t){t._initPromiseHub||(t._initPromiseHub=new Ve({createPromise:function(){let e=Promise.resolve();var n;n=1,e=new Promise(s=>{setTimeout(()=>{s()},n)});let i=t.auth();return e.then(()=>i.getLoginState()).then(s=>s?Promise.resolve():i.signInAnonymously())}}))}var So={tcb:un,tencent:un,aliyun:xs,private:dn,dcloud:dn,alipay:Ks},J=new class{init(t){let e={},n=So[t.provider];if(!n)throw new Error("\u672A\u63D0\u4F9B\u6B63\u786E\u7684provider\u53C2\u6570");return e=n.init(t),ko(e),eo(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=vn(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=vn(Ge,{uniClient:i,isJQL:!0});return this._databaseForJQL=o,o}}(e),function(i){i.getCurrentUserInfo=go,i.chooseAndUploadFile=yo.initChooseAndUploadFile(i),Object.assign(i,{get mixinDatacom(){return ai(i)}}),i.SSEChannel=Bt,i.initSecureNetworkByWeixin=xo(i),i.setCustomClientInfo=bo,i.importObject=vo(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||je.DEFAULT)!==je.DEFAULT);let c=a==="callFunction"&&!l,f=this._initPromiseHub.exec();r=r||{};let{success:d,fail:m,complete:y}=Bn(r),w=f.then(()=>l?Promise.resolve():q(z(a,"invoke"),r)).then(()=>o.call(this,r)).then(h=>l?Promise.resolve(h):q(z(a,"success"),h).then(()=>q(z(a,"complete"),h)).then(()=>(c&&G(R.RESPONSE,{type:ie.CLOUD_FUNCTION,content:h}),Promise.resolve(h))),h=>l?Promise.reject(h):q(z(a,"fail"),h).then(()=>q(z(a,"complete"),h)).then(()=>(G(R.RESPONSE,{type:ie.CLOUD_FUNCTION,content:h}),Promise.reject(h))));if(!(d||m||y))return w;w.then(h=>{d&&d(h),y&&y(h),c&&G(R.RESPONSE,{type:ie.CLOUD_FUNCTION,content:h})},h=>{m&&m(h),y&&y(h),c&&G(R.RESPONSE,{type:ie.CLOUD_FUNCTION,content:h})})}}(e[i],i).bind(e)}),e.init=this.init,e}};(()=>{let t=gs,e={};if(t&&t.length===1)e=t[0],J=J.init(e),J._isDefault=!0;else{let n=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"],i=["database","getCurrentUserInfo","importObject"],s;s=t&&t.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",[...n,...i].forEach(o=>{J[o]=function(){if(console.error(s),i.indexOf(o)===-1)return Promise.reject(new A({code:"SYS_ERR",message:s}));console.error(s)}})}if(Object.assign(J,{get mixinDatacom(){return ai(J)}}),po(J),J.addInterceptor=Dn,J.removeInterceptor=_s,J.interceptObject=vs,uni.__uniCloud=J,Rt==="app"){let n=ys();n.uniCloud=J,n.UniCloudError=A}})();var ci=J;var B=ce(ee());var Io={"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}}},Ao={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(t){uni.report&&t!==""&&uni.report("title",t)}},methods:{onClick(){this.$emit("click")}}};function Co(t,e,n,i,s,o){return(0,B.openBlock)(),(0,B.createElementBlock)("view",{class:"uni-section",renderWhole:!0},[(0,B.createElementVNode)("view",{class:"uni-section-header",onClick:e[0]||(e[0]=(...a)=>o.onClick&&o.onClick(...a))},[n.type?((0,B.openBlock)(),(0,B.createElementBlock)("view",{key:0,class:(0,B.normalizeClass)(["uni-section-header__decoration",n.type])},null,2)):(0,B.renderSlot)(t.$slots,"decoration",{key:1}),(0,B.createElementVNode)("view",{class:"uni-section-header__content"},[(0,B.createElementVNode)("u-text",{style:(0,B.normalizeStyle)({"font-size":n.titleFontSize,color:n.titleColor}),class:(0,B.normalizeClass)(["uni-section__content-title",{distraction:!n.subTitle}])},(0,B.toDisplayString)(n.title),7),n.subTitle?((0,B.openBlock)(),(0,B.createElementBlock)("u-text",{key:0,style:(0,B.normalizeStyle)({"font-size":n.subTitleFontSize,color:n.subTitleColor}),class:"uni-section-header__content-sub"},(0,B.toDisplayString)(n.subTitle),5)):(0,B.createCommentVNode)("",!0)]),(0,B.createElementVNode)("view",{class:"uni-section-header__slot-right"},[(0,B.renderSlot)(t.$slots,"right")])]),(0,B.createElementVNode)("view",{class:"uni-section-content",style:(0,B.normalizeStyle)({padding:o._padding})},[(0,B.renderSlot)(t.$slots,"default")],4)])}var li=K(Ao,[["render",Co],["styles",[Io]]]);var ui={props:{localdata:{type:[Array,Object],default(){return[]}},spaceInfo:{type:Object,default(){return{}}},collection:{type:String,default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:500},getcount:{type:[Boolean,String],default:!1},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default(){return[]}},modelValue:{type:[Array,String,Number],default(){return[]}},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default(){return{text:"text",value:"value"}}}},data(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocalData(){return!this.collection.length},isCloudData(){return this.collection.length>0},isCloudDataList(){return this.isCloudData&&!this.parentField&&!this.selfField},isCloudDataTree(){return this.isCloudData&&this.parentField&&this.selfField},dataValue(){return(Array.isArray(this.modelValue)?this.modelValue.length>0:this.modelValue!==null||this.modelValue!==void 0)?this.modelValue:this.value},hasValue(){return typeof this.dataValue=="number"?!0:this.dataValue!=null&&this.dataValue.length>0}},created(){this.$watch(()=>{var t=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach(e=>{t.push(this[e])}),t},(t,e)=>{for(let n=2;n<t.length&&t[n]==e[n];n++);t[0]!=e[0]&&(this.page.current=this.pageCurrent),this.page.size=this.pageSize,this.onPropsChange()}),this._treeData=[]},methods:{onPropsChange(){this._treeData=[]},loadData(){return P(this,null,function*(){this.isLocalData?this.loadLocalData():this.isCloudDataList?this.loadCloudDataList():this.isCloudDataTree&&this.loadCloudDataTree()})},loadLocalData(){return P(this,null,function*(){this._treeData=[],this._extractTree(this.localdata,this._treeData);let t=this.dataValue;t!==void 0&&(Array.isArray(t)&&(t=t[t.length-1],typeof t=="object"&&t[this.map.value]&&(t=t[this.map.value])),this.selected=this._findNodePath(t,this.localdata))})},loadCloudDataList(){return P(this,null,function*(){if(!this.loading){this.loading=!0;try{let e=(yield this.getCommand()).result.data;this._treeData=e,this._updateBindData(),this._updateSelected(),this.onDataChange()}catch(t){this.errorMessage=t}finally{this.loading=!1}}})},loadCloudDataTree(){return P(this,null,function*(){if(!this.loading){this.loading=!0;try{let t={field:this._cloudDataPostField(),where:this._cloudDataTreeWhere()};this.gettree&&(t.startwith=`${this.selfField}=='${this.dataValue}'`);let n=(yield this.getCommand(t)).result.data;this._treeData=n,this._updateBindData(),this._updateSelected(),this.onDataChange()}catch(t){this.errorMessage=t}finally{this.loading=!1}}})},loadCloudDataNode(t){return P(this,null,function*(){if(!this.loading){this.loading=!0;try{let e={field:this._cloudDataPostField(),where:this._cloudDataNodeWhere()},i=(yield this.getCommand(e)).result.data;t(i)}catch(e){this.errorMessage=e}finally{this.loading=!1}}})},getCloudDataValue(){if(this.isCloudDataList)return this.getCloudDataListValue();if(this.isCloudDataTree)return this.getCloudDataTreeValue()},getCloudDataListValue(){let t=[],e=this._getForeignKeyByField();return e&&t.push(`${e} == '${this.dataValue}'`),t=t.join(" || "),this.where&&(t=`(${this.where}) && (${t})`),this.getCommand({field:this._cloudDataPostField(),where:t}).then(n=>(this.selected=n.result.data,n.result.data))},getCloudDataTreeValue(){return this.getCommand({field:this._cloudDataPostField(),getTreePath:{startWith:`${this.selfField}=='${this.dataValue}'`}}).then(t=>{let e=[];return this._extractTreePath(t.result.data,e),this.selected=e,e})},getCommand(t={}){let e=ci.database(this.spaceInfo),n=t.action||this.action;n&&(e=e.action(n));let i=t.collection||this.collection;e=e.collection(i);let s=t.where||this.where;!s||!Object.keys(s).length||(e=e.where(s));let o=t.field||this.field;o&&(e=e.field(o));let a=t.orderby||this.orderby;a&&(e=e.orderBy(a));let r=t.pageCurrent!==void 0?t.pageCurrent:this.page.current,l=t.pageSize!==void 0?t.pageSize:this.page.size,c=t.getcount!==void 0?t.getcount:this.getcount,f=t.gettree!==void 0?t.gettree:this.gettree,d={getCount:c,getTree:f};return t.getTreePath&&(d.getTreePath=t.getTreePath),e=e.skip(l*(r-1)).limit(l).get(d),e},_cloudDataPostField(){let t=[this.field];return this.parentField&&t.push(`${this.parentField} as parent_value`),t.join(",")},_cloudDataTreeWhere(){let t=[],e=this.selected,n=this.parentField;if(n&&t.push(`${n} == null || ${n} == ""`),e.length)for(var i=0;i<e.length-1;i++)t.push(`${n} == '${e[i].value}'`);let s=[];return this.where&&s.push(`(${this.where})`),t.length&&s.push(`(${t.join(" || ")})`),s.join(" && ")},_cloudDataNodeWhere(){let t=[],e=this.selected;return e.length&&t.push(`${this.parentField} == '${e[e.length-1].value}'`),t=t.join(" || "),this.where?`(${this.where}) && (${t})`:t},_getWhereByForeignKey(){let t=[],e=this._getForeignKeyByField();return e&&t.push(`${e} == '${this.dataValue}'`),this.where?`(${this.where}) && (${t.join(" || ")})`:t.join(" || ")},_getForeignKeyByField(){let t=this.field.split(","),e=null;for(let n=0;n<t.length;n++){let i=t[n].split("as");if(!(i.length<2)&&i[1].trim()==="value"){e=i[0].trim();break}}return e},_updateBindData(t){let{dataList:e,hasNodes:n}=this._filterData(this._treeData,this.selected),i=this._stepSearh===!1&&!n;return t&&(t.isleaf=i),this.dataList=e,this.selectedIndex=e.length-1,!i&&this.selected.length<e.length&&this.selected.push({value:null,text:"\u8BF7\u9009\u62E9"}),{isleaf:i,hasNodes:n}},_updateSelected(){let t=this.dataList,e=this.selected,n=this.map.text,i=this.map.value;for(let s=0;s<e.length;s++){let o=e[s].value,a=t[s];for(let r=0;r<a.length;r++){let l=a[r];if(l[i]===o){e[s].text=l[n];break}}}},_filterData(t,e){let n=[],i=!0;n.push(t.filter(s=>s.parent_value===null||s.parent_value===void 0||s.parent_value===""));for(let s=0;s<e.length;s++){let o=e[s].value,a=t.filter(r=>r.parent_value===o);a.length?n.push(a):i=!1}return{dataList:n,hasNodes:i}},_extractTree(t,e,n){let i=this.map.value;for(let s=0;s<t.length;s++){let o=t[s],a={};for(let l in o)l!=="children"&&(a[l]=o[l]);n!=null&&n!==""&&(a.parent_value=n),e.push(a);let r=o.children;r&&this._extractTree(r,e,o[i])}},_extractTreePath(t,e){for(let n=0;n<t.length;n++){let i=t[n],s={};for(let a in i)a!=="children"&&(s[a]=i[a]);e.push(s);let o=i.children;o&&this._extractTreePath(o,e)}},_findNodePath(t,e,n=[]){let i=this.map.text,s=this.map.value;for(let o=0;o<e.length;o++){let a=e[o],r=a.children,l=a[i],c=a[s];if(n.push({value:c,text:l}),c===t)return n;if(r){let f=this._findNodePath(t,r,n);if(f.length)return f}n.pop()}return[]}}},Po={"uni-data-pickerview":{"":{flex:1,flexDirection:"column",overflow:"hidden",height:100}},"error-text":{"":{color:"#DD524D"}},"loading-cover":{"":{position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"rgba(255,255,255,0.5)",flexDirection:"column",alignItems:"center",zIndex:1001}},"error-message":{"":{backgroundColor:"#ffffff",position:"absolute",left:0,top:0,right:0,bottom:0,paddingTop:15,paddingRight:15,paddingBottom:15,paddingLeft:15,opacity:.9,zIndex:102}},"selected-area":{"":{width:"750rpx"}},"selected-list":{"":{flexDirection:"row",paddingTop:0,paddingRight:5,paddingBottom:0,paddingLeft:5,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#f8f8f8"}},"selected-item":{"":{marginLeft:10,marginRight:10,paddingTop:12,paddingRight:0,paddingBottom:12,paddingLeft:0,textAlign:"center"}},"selected-item-text-overflow":{"":{width:168,overflow:"hidden"}},"selected-item-active":{"":{borderBottomWidth:2,borderBottomStyle:"solid",borderBottomColor:"#007aff"}},"selected-item-text":{"":{color:"#007aff"}},"tab-c":{"":{position:"relative",flex:1,flexDirection:"row",overflow:"hidden"}},list:{"":{flex:1}},item:{"":{paddingTop:12,paddingRight:15,paddingBottom:12,paddingLeft:15,flexDirection:"row",justifyContent:"space-between"}},"is-disabled":{"":{opacity:.5}},"item-text":{"":{color:"#333333"}},"item-text-overflow":{"":{width:280,overflow:"hidden"}},check:{"":{marginRight:5,borderWidth:2,borderStyle:"solid",borderColor:"#007aff",borderLeftWidth:0,borderLeftStyle:"solid",borderLeftColor:"#000000",borderTopWidth:0,borderTopStyle:"solid",borderTopColor:"#000000",height:12,width:6,transformOrigin:"center",transform:"rotate(45deg)"}}},Eo={name:"UniDataPickerView",emits:["nodeclick","change","datachange","update:modelValue"],mixins:[ui],props:{managedMode:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0}},created(){this.managedMode||this.$nextTick(()=>{this.loadData()})},methods:{onPropsChange(){this._treeData=[],this.selectedIndex=0,this.$nextTick(()=>{this.loadData()})},handleSelect(t){this.selectedIndex=t},handleNodeClick(t,e,n){if(t.disable)return;let i=this.dataList[e][n],s=i[this.map.text],o=i[this.map.value];if(e<this.selected.length-1?(this.selected.splice(e,this.selected.length-e),this.selected.push({text:s,value:o})):e===this.selected.length-1&&this.selected.splice(e,1,{text:s,value:o}),i.isleaf){this.onSelectedChange(i,i.isleaf);return}let{isleaf:a,hasNodes:r}=this._updateBindData();this.isLocalData?this.onSelectedChange(i,!r||a):this.isCloudDataList?this.onSelectedChange(i,!0):this.isCloudDataTree&&(a?this.onSelectedChange(i,i.isleaf):r||this.loadCloudDataNode(l=>{l.length?(this._treeData.push(...l),this._updateBindData(i)):i.isleaf=!0,this.onSelectedChange(i,i.isleaf)}))},updateData(t){this._treeData=t.treeData,this.selected=t.selected,this._treeData.length?this._updateBindData():this.loadData()},onDataChange(){this.$emit("datachange")},onSelectedChange(t,e){e&&this._dispatchEvent(),t&&this.$emit("nodeclick",t)},_dispatchEvent(){this.$emit("change",this.selected.slice(0))}}};function Do(t,e,n,i,s,o){let a=le((0,p.resolveDynamicComponent)("uni-load-more"),tt);return(0,p.openBlock)(),(0,p.createElementBlock)("view",{class:"uni-data-pickerview",renderWhole:!0},[t.isCloudDataList?(0,p.createCommentVNode)("",!0):((0,p.openBlock)(),(0,p.createElementBlock)("scroll-view",{key:0,class:"selected-area",scrollX:"true"},[(0,p.createElementVNode)("view",{class:"selected-list"},[((0,p.openBlock)(!0),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)(t.selected,(r,l)=>((0,p.openBlock)(),(0,p.createElementBlock)("view",{class:(0,p.normalizeClass)(["selected-item",{"selected-item-active":l==t.selectedIndex}]),key:l,onClick:c=>o.handleSelect(l)},[(0,p.createElementVNode)("u-text",null,(0,p.toDisplayString)(r.text||""),1)],10,["onClick"]))),128))])])),(0,p.createElementVNode)("view",{class:"tab-c"},[(0,p.createElementVNode)("scroll-view",{class:"list",scrollY:!0},[((0,p.openBlock)(!0),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)(t.dataList[t.selectedIndex],(r,l)=>((0,p.openBlock)(),(0,p.createElementBlock)("view",{class:(0,p.normalizeClass)(["item",{"is-disabled":!!r.disable}]),key:l,onClick:c=>o.handleNodeClick(r,t.selectedIndex,l)},[(0,p.createElementVNode)("u-text",{class:"item-text"},(0,p.toDisplayString)(r[t.map.text]),1),t.selected.length>t.selectedIndex&&r[t.map.value]==t.selected[t.selectedIndex].value?((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:0,class:"check"})):(0,p.createCommentVNode)("",!0)],10,["onClick"]))),128))]),t.loading?((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:0,class:"loading-cover"},[(0,p.createVNode)(a,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):(0,p.createCommentVNode)("",!0),t.errorMessage?((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:1,class:"error-message"},[(0,p.createElementVNode)("u-text",{class:"error-text"},(0,p.toDisplayString)(t.errorMessage),1)])):(0,p.createCommentVNode)("",!0)])])}var Lo=K(Eo,[["render",Do],["styles",[Po]]]),Bo={"uni-data-tree":{"":{flex:1,position:"relative",fontSize:14}},"error-text":{"":{color:"#DD524D"}},"input-value":{"":{flexDirection:"row",alignItems:"center",flexWrap:"nowrap",fontSize:14,paddingTop:0,paddingRight:5,paddingBottom:0,paddingLeft:10,overflow:"hidden",height:35}},"input-value-border":{"":{borderWidth:1,borderStyle:"solid",borderColor:"#e5e5e5",borderRadius:5}},"selected-area":{"":{flex:1,overflow:"hidden",flexDirection:"row"}},"load-more":{"":{width:40}},"selected-list":{"":{flexDirection:"row",flexWrap:"nowrap"}},"selected-item":{"":{flexDirection:"row"}},"text-color":{"":{color:"#333333"}},placeholder:{"":{color:"#808080",fontSize:12}},"input-split-line":{"":{opacity:.5}},"arrow-area":{"":{position:"relative",width:20,justifyContent:"center",transform:"rotate(-45deg)",transformOrigin:"center"}},"input-arrow":{"":{width:7,height:7,borderLeftWidth:1,borderLeftStyle:"solid",borderLeftColor:"#999999",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#999999"}},"uni-data-tree-cover":{"":{position:"fixed",left:0,top:0,right:0,bottom:0,backgroundColor:"rgba(0,0,0,0.4)",flexDirection:"column",zIndex:100}},"uni-data-tree-dialog":{"":{position:"fixed",left:0,top:200,right:0,bottom:0,backgroundColor:"#FFFFFF",borderTopLeftRadius:10,borderTopRightRadius:10,flexDirection:"column",zIndex:102,overflow:"hidden",width:"750rpx"}},"dialog-caption":{"":{position:"relative",flexDirection:"row"}},"title-area":{"":{alignItems:"center",paddingTop:0,paddingRight:10,paddingBottom:0,paddingLeft:10}},"dialog-title":{"":{lineHeight:44}},"dialog-close":{"":{position:"absolute",top:0,right:0,bottom:0,flexDirection:"row",alignItems:"center",paddingTop:0,paddingRight:15,paddingBottom:0,paddingLeft:15}},"dialog-close-plus":{"":{width:16,height:2,backgroundColor:"#666666",borderRadius:2,transform:"rotate(45deg)"}},"dialog-close-rotate":{"":{position:"absolute",transform:"rotate(-45deg)"}},"picker-view":{"":{flex:1,overflow:"hidden"}},"icon-clear":{"":{display:"flex",alignItems:"center"}}},Oo={name:"UniDataPicker",emits:["popupopened","popupclosed","nodeclick","input","change","update:modelValue","inputclick"],mixins:[ui],components:{DataPickerView:Lo},props:{options:{type:[Object,Array],default(){return{}}},popupTitle:{type:String,default:"\u8BF7\u9009\u62E9"},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},heightMobile:{type:String,default:""},readonly:{type:Boolean,default:!1},clearIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!0},split:{type:String,default:"/"},ellipsis:{type:Boolean,default:!0}},data(){return{isOpened:!1,inputSelected:[]}},created(){this.$nextTick(()=>{this.load()})},watch:{localdata:{handler(){this.load()},deep:!0}},methods:{clear(){this._dispatchEvent([])},onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){if(this.readonly){this._processReadonly(this.localdata,this.dataValue);return}this.isLocalData?(this.loadData(),this.inputSelected=this.selected.slice(0)):(this.isCloudDataList||this.isCloudDataTree)&&(this.loading=!0,this.getCloudDataValue().then(t=>{this.loading=!1,this.inputSelected=t}).catch(t=>{this.loading=!1,this.errorMessage=t}))},show(){this.isOpened=!0,setTimeout(()=>{this.$refs.pickerView.updateData({treeData:this._treeData,selected:this.selected,selectedIndex:this.selectedIndex})},200),this.$emit("popupopened")},hide(){this.isOpened=!1,this.$emit("popupclosed")},handleInput(){if(this.readonly){this.$emit("inputclick");return}this.show()},handleClose(t){this.hide()},onnodeclick(t){this.$emit("nodeclick",t)},ondatachange(t){this._treeData=this.$refs.pickerView._treeData},onchange(t){this.hide(),this.$nextTick(()=>{this.inputSelected=t}),this._dispatchEvent(t)},_processReadonly(t,e){var n=t.findIndex(a=>a.children);if(n>-1){let a;Array.isArray(e)?(a=e[e.length-1],typeof a=="object"&&a.value&&(a=a.value)):a=e,this.inputSelected=this._findNodePath(a,this.localdata);return}if(!this.hasValue){this.inputSelected=[];return}let i=[];for(let a=0;a<e.length;a++){var s=e[a],o=t.find(r=>r.value==s);o&&i.push(o)}i.length&&(this.inputSelected=i)},_filterForArray(t,e){var n=[];for(let o=0;o<e.length;o++){var i=e[o],s=t.find(a=>a.value==i);s&&n.push(s)}return n},_dispatchEvent(t){let e={};if(t.length){for(var n=new Array(t.length),i=0;i<t.length;i++)n[i]=t[i].value;e=t[t.length-1]}else e.value="";this.formItem&&this.formItem.setValue(e.value),this.$emit("input",e.value),this.$emit("update:modelValue",e.value),this.$emit("change",{detail:{value:t}})}}};function Ro(t,e,n,i,s,o){let a=le((0,p.resolveDynamicComponent)("uni-load-more"),tt),r=le((0,p.resolveDynamicComponent)("uni-icons"),Yt),l=(0,p.resolveComponent)("data-picker-view");return(0,p.openBlock)(),(0,p.createElementBlock)("view",{class:"uni-data-tree",renderWhole:!0},[(0,p.createElementVNode)("view",{class:"uni-data-tree-input",onClick:e[1]||(e[1]=(...c)=>o.handleInput&&o.handleInput(...c))},[(0,p.renderSlot)(t.$slots,"default",{options:n.options,data:s.inputSelected,error:t.errorMessage},()=>[(0,p.createElementVNode)("view",{class:(0,p.normalizeClass)(["input-value",{"input-value-border":n.border}])},[t.errorMessage?((0,p.openBlock)(),(0,p.createElementBlock)("u-text",{key:0,class:"selected-area error-text"},(0,p.toDisplayString)(t.errorMessage),1)):t.loading&&!s.isOpened?((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:1,class:"selected-area"},[(0,p.createVNode)(a,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):s.inputSelected.length?((0,p.openBlock)(),(0,p.createElementBlock)("scroll-view",{key:2,class:"selected-area",scrollX:"true"},[(0,p.createElementVNode)("view",{class:"selected-list"},[((0,p.openBlock)(!0),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)(s.inputSelected,(c,f)=>((0,p.openBlock)(),(0,p.createElementBlock)("view",{class:"selected-item",key:f},[(0,p.createElementVNode)("u-text",{class:"text-color"},(0,p.toDisplayString)(c.text),1),f<s.inputSelected.length-1?((0,p.openBlock)(),(0,p.createElementBlock)("u-text",{key:0,class:"input-split-line"},(0,p.toDisplayString)(n.split),1)):(0,p.createCommentVNode)("",!0)]))),128))])])):((0,p.openBlock)(),(0,p.createElementBlock)("u-text",{key:3,class:"selected-area placeholder"},(0,p.toDisplayString)(n.placeholder),1)),n.clearIcon&&!n.readonly&&s.inputSelected.length?((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:4,class:"icon-clear",onClick:e[0]||(e[0]=(0,p.withModifiers)((...c)=>o.clear&&o.clear(...c),["stop"]))},[(0,p.createVNode)(r,{type:"clear",color:"#c0c4cc",size:"24"})])):(0,p.createCommentVNode)("",!0),(!n.clearIcon||!s.inputSelected.length)&&!n.readonly?((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:5,class:"arrow-area"},[(0,p.createElementVNode)("view",{class:"input-arrow"})])):(0,p.createCommentVNode)("",!0)],2)])]),s.isOpened?((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:0,class:"uni-data-tree-cover",onClick:e[2]||(e[2]=(...c)=>o.handleClose&&o.handleClose(...c))})):(0,p.createCommentVNode)("",!0),s.isOpened?((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:1,class:"uni-data-tree-dialog"},[(0,p.createElementVNode)("view",{class:"uni-popper__arrow"}),(0,p.createElementVNode)("view",{class:"dialog-caption"},[(0,p.createElementVNode)("view",{class:"title-area"},[(0,p.createElementVNode)("u-text",{class:"dialog-title"},(0,p.toDisplayString)(n.popupTitle),1)]),(0,p.createElementVNode)("view",{class:"dialog-close",onClick:e[3]||(e[3]=(...c)=>o.handleClose&&o.handleClose(...c))},[(0,p.createElementVNode)("view",{class:"dialog-close-plus","data-id":"close"}),(0,p.createElementVNode)("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])]),(0,p.createVNode)(l,{class:"picker-view",ref:"pickerView",modelValue:t.dataValue,"onUpdate:modelValue":e[4]||(e[4]=c=>t.dataValue=c),localdata:t.localdata,preload:t.preload,collection:t.collection,field:t.field,orderby:t.orderby,where:t.where,"step-searh":t.stepSearh,"self-field":t.selfField,"parent-field":t.parentField,"managed-mode":!0,map:t.map,ellipsis:n.ellipsis,onChange:o.onchange,onDatachange:o.ondatachange,onNodeclick:o.onnodeclick},null,8,["modelValue","localdata","preload","collection","field","orderby","where","step-searh","self-field","parent-field","map","ellipsis","onChange","onDatachange","onNodeclick"])])):(0,p.createCommentVNode)("",!0)])}var No=K(Oo,[["render",Ro],["styles",[Bo]]]),Fo={container:{"":{flexDirection:"column"}},title:{"":{fontSize:14,fontWeight:"bold",marginTop:20,marginRight:0,marginBottom:5,marginLeft:0}},"input-border":{"":{borderWidth:1,borderStyle:"solid",borderColor:"#b3e5fc",borderRadius:5,paddingTop:2,paddingRight:4,paddingBottom:2,paddingLeft:4}},"input-selected":{"":{flexDirection:"row",lineHeight:2}},"data-pickerview":{"":{height:300,borderWidth:1,borderStyle:"solid",borderColor:"#e5e5e5",borderRadius:5}}},Uo={data(){return{nation:"\u6C49\u65CF",address:"110101",classValue:"1-2",classDataTree:[{text:"\u4E00\u5E74\u7EA7",value:"1-0",children:[{text:"1.1\u73ED",value:"1-1"},{text:"1.2\u73ED",value:"1-2"}]},{text:"\u4E8C\u5E74\u7EA7",value:"2-0",children:[{text:"2.1\u73ED",value:"2-1"},{text:"2.2\u73ED",value:"2-2"}]},{text:"\u4E09\u5E74\u7EA7",value:"3-0",disable:!0}]}},methods:{onnodeclick(t){we("log","at pages/extUI/data-picker/data-picker.nvue:111","nodeclick",t)},onpopupopened(t){we("log","at pages/extUI/data-picker/data-picker.nvue:114","onpopupopened")},onpopupclosed(t){we("log","at pages/extUI/data-picker/data-picker.nvue:117","onpopupclosed")},onchange(t){we("log","at pages/extUI/data-picker/data-picker.nvue:120","onchange",t.detail.value)}}};function Mo(t,e,n,i,s,o){let a=le((0,p.resolveDynamicComponent)("uni-card"),Wt),r=le((0,p.resolveDynamicComponent)("uni-data-picker"),No),l=le((0,p.resolveDynamicComponent)("uni-section"),li);return(0,p.openBlock)(),(0,p.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,p.createElementVNode)("view",{class:"container"},[(0,p.createVNode)(a,{"is-full":"","is-shadow":!1},{default:(0,p.withCtx)(()=>[(0,p.createElementVNode)("u-text",{class:"uni-h6"},"\u6807\u7B7E\u7EC4\u4EF6\u591A\u7528\u4E8E\u5546\u54C1\u5206\u7C7B\u3001\u91CD\u70B9\u5185\u5BB9\u663E\u793A\u7B49\u573A\u666F\u3002")]),_:1}),(0,p.createVNode)(l,{title:"\u672C\u5730\u6570\u636E",type:"line"},{default:(0,p.withCtx)(()=>[(0,p.createElementVNode)("view",{class:"uni-px-5 uni-pb-5"},[(0,p.createVNode)(r,{placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7","popup-title":"\u8BF7\u9009\u62E9",localdata:s.classDataTree,modelValue:s.classValue,"onUpdate:modelValue":e[0]||(e[0]=c=>s.classValue=c),onChange:o.onchange,onNodeclick:o.onnodeclick,onPopupopened:o.onpopupopened,onPopupclosed:o.onpopupclosed},null,8,["localdata","modelValue","onChange","onNodeclick","onPopupopened","onPopupclosed"])])]),_:1}),(0,p.createVNode)(l,{title:"\u81EA\u5B9A\u4E49\u63D2\u69FD",type:"line"},{default:(0,p.withCtx)(()=>[(0,p.createElementVNode)("view",{class:"uni-px-5 uni-pb-5"},[(0,p.createVNode)(r,{title:"\u8BF7\u9009\u62E9",localdata:s.classDataTree,modelValue:s.classValue,"onUpdate:modelValue":e[1]||(e[1]=c=>s.classValue=c)},{default:(0,p.withCtx)(({data:c,error:f,options:d})=>[(0,p.createElementVNode)("view",{class:"input-border"},[f?((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:0,class:"error"},[(0,p.createElementVNode)("u-text",null,(0,p.toDisplayString)(f),1)])):c.length?((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:1,class:"input-selected"},[((0,p.openBlock)(!0),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)(c,(m,y)=>((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:y,class:"selected-item"},[(0,p.createElementVNode)("u-text",null,(0,p.toDisplayString)(m.text),1)]))),128))])):((0,p.openBlock)(),(0,p.createElementBlock)("view",{key:2},[(0,p.createElementVNode)("u-text",null,"\u8BF7\u9009\u62E9")]))])]),_:1},8,["localdata","modelValue"])])]),_:1})])])}var $e=K(Uo,[["render",Mo],["styles",[Fo]]]);var Mt=plus.webview.currentWebview();if(Mt){let t=parseInt(Mt.id),e="pages/extUI/data-picker/data-picker",n={};try{n=JSON.parse(Mt.__query__)}catch(s){}$e.mpType="page";let i=Vue.createPageApp($e,{$store:getApp({allowDefault:!0}).$store,__pageId:t,__pagePath:e,__pageQuery:n});i.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...$e.styles||[]])),i.mount("#root")}})();
