1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
| "use strict";/**
| * @vue/shared v3.4.21
| * (c) 2018-present Yuxi (Evan) You and Vue contributors
| * @license MIT
| **/function vt(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const F=Object.freeze({}),Ns=Object.freeze([]),z=()=>{},au=()=>!1,pi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ms=e=>e.startsWith("onUpdate:"),j=Object.assign,Cn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},uu=Object.prototype.hasOwnProperty,k=(e,t)=>uu.call(e,t),C=Array.isArray,Be=e=>he(e)==="[object Map]",hi=e=>he(e)==="[object Set]",T=e=>typeof e=="function",H=e=>typeof e=="string",St=e=>typeof e=="symbol",U=e=>e!==null&&typeof e=="object",qt=e=>(U(e)||T(e))&&T(e.then)&&T(e.catch),gi=Object.prototype.toString,he=e=>gi.call(e),kn=e=>he(e).slice(8,-1),J=e=>he(e)==="[object Object]",es=e=>H(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mi=vt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),lu=vt("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),$n=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},fu=/-(\w)/g,we=$n(e=>e.replace(fu,(t,n)=>n?n.toUpperCase():"")),du=/\B([A-Z])/g,Je=$n(e=>e.replace(du,"-$1").toLowerCase()),Ge=$n(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ue=$n(e=>e?`on${Ge(e)}`:""),Ne=(e,t)=>!Object.is(e,t),an=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},pu=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},hu=e=>{const t=parseFloat(e);return isNaN(t)?e:t};function _i(e){if(C(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=H(o)?yu(o):_i(o);if(s)for(const r in s)t[r]=s[r]}return t}else if(H(e)||U(e))return e}const gu=/;(?![^(]*\))/g,mu=/:([^]+)/,_u=/\/\*[^]*?\*\//g;function yu(e){const t={};return e.replace(_u,"").split(gu).forEach(n=>{if(n){const o=n.split(mu);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function yi(e){let t="";if(H(e))t=e;else if(C(e))for(let n=0;n<e.length;n++){const o=yi(e[n]);o&&(t+=o+" ")}else if(U(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const wu=e=>H(e)?e:e==null?"":C(e)||U(e)&&(e.toString===gi||!T(e.toString))?JSON.stringify(e,wi,2):String(e),wi=(e,t)=>t&&t.__v_isRef?wi(e,t.value):Be(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s],r)=>(n[Kn(o,r)+" =>"]=s,n),{})}:hi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Kn(n))}:St(t)?Kn(t):U(t)&&!C(t)&&!J(t)?String(t):t,Kn=(e,t="")=>{var n;return St(e)?`Symbol(${(n=e.description)!=null?n:t})`:e},bu=e=>e!==null&&typeof e=="object",vu=["{","}"];class Su{constructor(){this._caches=Object.create(null)}interpolate(t,n,o=vu){if(!n)return[t];let s=this._caches[t];return s||(s=Pu(t,o),this._caches[t]=s),Au(s,n)}}const Iu=/^(?:\d)+/,xu=/^(?:\w)+/;function Pu(e,[t,n]){const o=[];let s=0,r="";for(;s<e.length;){let i=e[s++];if(i===t){r&&o.push({type:"text",value:r}),r="";let c="";for(i=e[s++];i!==void 0&&i!==n;)c+=i,i=e[s++];const u=i===n,a=Iu.test(c)?"list":u&&xu.test(c)?"named":"unknown";o.push({value:c,type:a})}else r+=i}return r&&o.push({type:"text",value:r}),o}function Au(e,t){const n=[];let o=0;const s=Array.isArray(t)?"list":bu(t)?"named":"unknown";if(s==="unknown")return n;for(;o<e.length;){const r=e[o];switch(r.type){case"text":n.push(r.value);break;case"list":n.push(t[parseInt(r.value,10)]);break;case"named":s==="named"?n.push(t[r.value]):console.warn(`Type of token '${r.type}' and format of value '${s}' don't match!`);break;case"unknown":console.warn("Detect 'unknown' type of token!");break}o++}return n}const Vn="zh-Hans",Ds="zh-Hant",_e="en",Tu="fr",Ou="es",Eu=Object.prototype.hasOwnProperty,js=(e,t)=>Eu.call(e,t),Cu=new Su;function ku(e,t){return!!t.find(n=>e.indexOf(n)!==-1)}function $u(e,t){return t.find(n=>e.indexOf(n)===0)}function hn(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e==="chinese")return Vn;if(e.indexOf("zh")===0)return e.indexOf("-hans")>-1?Vn:e.indexOf("-hant")>-1||ku(e,["-tw","-hk","-mo","-cht"])?Ds:Vn;let n=[_e,Tu,Ou];t&&Object.keys(t).length>0&&(n=Object.keys(t));const o=$u(e,n);if(o)return o}class Lu{constructor({locale:t,fallbackLocale:n,messages:o,watcher:s,formater:r}){this.locale=_e,this.fallbackLocale=_e,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=r||Cu,this.messages=o||{},this.setLocale(t||_e),s&&this.watchLocale(s)}setLocale(t){const n=this.locale;this.locale=hn(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach(o=>{o(this.locale,n)})}getLocale(){return this.locale}watchLocale(t){const n=this.watchers.push(t)-1;return()=>{this.watchers.splice(n,1)}}add(t,n,o=!0){const s=this.messages[t];s?o?Object.assign(s,n):Object.keys(n).forEach(r=>{js(s,r)||(s[r]=n[r])}):this.messages[t]=n}f(t,n,o){return this.formater.interpolate(t,n,o).join("")}t(t,n,o){let s=this.message;return typeof n=="string"?(n=hn(n,this.messages),n&&(s=this.messages[n])):o=n,js(s,t)?this.formater.interpolate(s[t],o).join(""):(console.warn(`Cannot translate the value of keypath ${t}. Use the value of keypath as default.`),t)}}function Ru(e,t){e.$watchLocale?e.$watchLocale(n=>{t.setLocale(n)}):e.$watch(()=>e.$locale,n=>{t.setLocale(n)})}function Nu(){return typeof $<"u"&&$.getLocale?$.getLocale():typeof global<"u"&&global.getLocale?global.getLocale():_e}function Mu(e,t={},n,o){if(typeof e!="string"){const i=[t,e];e=i[0],t=i[1]}typeof e!="string"&&(e=Nu()),typeof n!="string"&&(n=typeof __uniConfig<"u"&&__uniConfig.fallbackLocale||_e);const s=new Lu({locale:e,fallbackLocale:n,messages:t,watcher:o});let r=(i,c)=>{if(typeof getApp!="function")r=function(u,a){return s.t(u,a)};else{let u=!1;r=function(a,f){const l=getApp().$vm;return l&&(l.$locale,u||(u=!0,Ru(l,s))),s.t(a,f)}}return r(i,c)};return{i18n:s,f(i,c,u){return s.f(i,c,u)},t(i,c){return r(i,c)},add(i,c,u=!0){return s.add(i,c,u)},watch(i){return s.watchLocale(i)},getLocale(){return s.getLocale()},setLocale(i){return s.setLocale(i)}}}const Du="d",Ln="onShow",Rn="onHide",bi="onLaunch",Ye="onError",vi="onThemeChange",Si="onPageNotFound",Ii="onUnhandledRejection",ju="onExit",Bt="onLoad",ts="onReady",ns="onUnload",xi="onInit",Pi="onSaveExitState",Ai="onResize",Ti="onBackPress",Oi="onPageScroll",os="onTabItemTap",ss="onReachBottom",rs="onPullDownRefresh",Ei="onShareTimeline",Ci="onShareChat",is="onAddToFavorites",ki="onShareAppMessage",$i="onNavigationBarButtonTap",Li="onNavigationBarSearchInputClicked",Ri="onNavigationBarSearchInputChanged",Ni="onNavigationBarSearchInputConfirmed",Mi="onNavigationBarSearchInputFocusChanged",Uu="virtualHostStyle",Hu="virtualHostClass",Fu="virtualHostHidden",ho="virtualHostId";function qu(e){return e.indexOf("/")===0}function Bu(e){return qu(e)?e:"/"+e}const Ku=(e,t)=>{let n;for(let o=0;o<e.length;o++)n=e[o](t);return n};function Di(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}function ji(e,t){if(!H(t))return;t=t.replace(/\[(\d+)\]/g,".$1");const n=t.split(".");let o=n[0];return e||(e={}),n.length===1?e[o]:ji(e[o],n.slice(1).join("."))}function Ui(e){let t={};return J(e)&&Object.keys(e).sort().forEach(n=>{const o=n;t[o]=e[o]}),Object.keys(t)?t:e}const Vu=/:/g;function Wu(e){return we(e.replace(Vu,"-"))}const zu=encodeURIComponent;function Ju(e,t=zu){const n=e?Object.keys(e).map(o=>{let s=e[o];return typeof s===void 0||s===null?s="":J(s)&&(s=JSON.stringify(s)),t(o)+"="+t(s)}).filter(o=>o.length>0).join("&"):null;return n?`?${n}`:""}const Gu=[xi,Bt,Ln,Rn,ns,Ti,Oi,os,ss,rs,Ei,ki,Ci,is,Pi,$i,Li,Ri,Ni,Mi];function Yu(e){return Gu.indexOf(e)>-1}const Hi=[Ln,Rn,bi,Ye,vi,Si,Ii,ju,xi,Bt,ts,ns,Ai,Ti,Oi,os,ss,rs,Ei,is,ki,Ci,Pi,$i,Li,Ri,Ni,Mi],go={onPageScroll:1,onShareAppMessage:2,onShareTimeline:4};function Fi(e,t,n=!0){return n&&!T(t)?!1:Hi.indexOf(e)>-1?!0:e.indexOf("on")===0}let mo;const qi=[];function Xu(e){if(mo)return e(mo);qi.push(e)}function Qu(e){mo=e,qi.forEach(t=>t(e))}const Zu=Di((e,t)=>t(e)),Bi=function(){};Bi.prototype={_id:1,on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n,_id:this._id}),this._id++},once:function(e,t,n){var o=this;function s(){o.off(e,s),t.apply(n,arguments)}return s._=t,this.on(e,s,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,s=n.length;for(o;o<s;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],s=[];if(o&&t){for(var r=o.length-1;r>=0;r--)if(o[r].fn===t||o[r].fn._===t||o[r]._id===t){o.splice(r,1);break}s=o}return s.length?n[e]=s:delete n[e],this}};var el=Bi;/**
| * @dcloudio/uni-mp-vue v3.4.21
| * (c) 2018-present Yuxi (Evan) You and Vue contributors
| * @license MIT
| **/function Me(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let le;class tl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=le,!t&&le&&(this.index=(le.scopes||(le.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=le;try{return le=this,t()}finally{le=n}}else Me("cannot run an inactive effect scope.")}on(){le=this}off(){le=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function nl(e,t=le){t&&t.active&&t.effects.push(e)}function ol(){return le}let Ke;class cs{constructor(t,n,o,s){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,nl(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ze();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(sl(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),et()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ke,n=Ke;try{return ke=!0,Ke=this,this._runnings++,Us(this),this.fn()}finally{Hs(this),this._runnings--,Ke=n,ke=t}}stop(){var t;this.active&&(Us(this),Hs(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function sl(e){return e.value}function Us(e){e._trackId++,e._depsLength=0}function Hs(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ki(e.deps[t],e);e.deps.length=e._depsLength}}function Ki(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let ke=!0,_o=0;const Vi=[];function Ze(){Vi.push(ke),ke=!1}function et(){const e=Vi.pop();ke=e===void 0?!0:e}function as(){_o++}function us(){for(_o--;!_o&&yo.length;)yo.shift()()}function Wi(e,t,n){var o;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Ki(s,e),e.deps[e._depsLength++]=t):e._depsLength++,(o=e.onTrack)==null||o.call(e,j({effect:e},n))}}const yo=[];function zi(e,t,n){var o;as();for(const s of e.keys()){let r;s._dirtyLevel<t&&(r??(r=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(r??(r=e.get(s)===s._trackId))&&((o=s.onTrigger)==null||o.call(s,j({effect:s},n)),s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&yo.push(s.scheduler)))}us()}const Ji=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},wo=new WeakMap,Ve=Symbol("iterate"),bo=Symbol("Map key iterate");function Q(e,t,n){if(ke&&Ke){let o=wo.get(e);o||wo.set(e,o=new Map);let s=o.get(n);s||o.set(n,s=Ji(()=>o.delete(n))),Wi(Ke,s,{target:e,type:t,key:n})}}function ve(e,t,n,o,s,r){const i=wo.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&C(e)){const u=Number(o);i.forEach((a,f)=>{(f==="length"||!St(f)&&f>=u)&&c.push(a)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":C(e)?es(n)&&c.push(i.get("length")):(c.push(i.get(Ve)),Be(e)&&c.push(i.get(bo)));break;case"delete":C(e)||(c.push(i.get(Ve)),Be(e)&&c.push(i.get(bo)));break;case"set":Be(e)&&c.push(i.get(Ve));break}as();for(const u of c)u&&zi(u,4,{target:e,type:t,key:n,newValue:o,oldValue:s,oldTarget:r});us()}const rl=vt("__proto__,__v_isRef,__isVue"),Gi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(St)),Fs=il();function il(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=R(this);for(let r=0,i=this.length;r<i;r++)Q(o,"get",r+"");const s=o[t](...n);return s===-1||s===!1?o[t](...n.map(R)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ze(),as();const o=R(this)[t].apply(this,n);return us(),et(),o}}),e}function cl(e){const t=R(this);return Q(t,"has",e),t.hasOwnProperty(e)}class Yi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const s=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(s?r?oc:nc:r?tc:ec).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=C(t);if(!s){if(i&&k(Fs,n))return Reflect.get(Fs,n,o);if(n==="hasOwnProperty")return cl}const c=Reflect.get(t,n,o);return(St(n)?Gi.has(n):rl(n))||(s||Q(t,"get",n),r)?c:te(c)?i&&es(n)?c:c.value:U(c)?s?sc(c):Dn(c):c}}class Xi extends Yi{constructor(t=!1){super(!1,t)}set(t,n,o,s){let r=t[n];if(!this._isShallow){const u=pt(r);if(!gn(o)&&!pt(o)&&(r=R(r),o=R(o)),!C(t)&&te(r)&&!te(o))return u?!1:(r.value=o,!0)}const i=C(t)&&es(n)?Number(n)<t.length:k(t,n),c=Reflect.set(t,n,o,s);return t===R(s)&&(i?Ne(o,r)&&ve(t,"set",n,o,r):ve(t,"add",n,o)),c}deleteProperty(t,n){const o=k(t,n),s=t[n],r=Reflect.deleteProperty(t,n);return r&&o&&ve(t,"delete",n,void 0,s),r}has(t,n){const o=Reflect.has(t,n);return(!St(n)||!Gi.has(n))&&Q(t,"has",n),o}ownKeys(t){return Q(t,"iterate",C(t)?"length":Ve),Reflect.ownKeys(t)}}class Qi extends Yi{constructor(t=!1){super(!0,t)}set(t,n){return Me(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return Me(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const al=new Xi,ul=new Qi,ll=new Xi(!0),fl=new Qi(!0),ls=e=>e,Nn=e=>Reflect.getPrototypeOf(e);function Yt(e,t,n=!1,o=!1){e=e.__v_raw;const s=R(e),r=R(t);n||(Ne(t,r)&&Q(s,"get",t),Q(s,"get",r));const{has:i}=Nn(s),c=o?ls:n?ds:$t;if(i.call(s,t))return c(e.get(t));if(i.call(s,r))return c(e.get(r));e!==s&&e.get(t)}function Xt(e,t=!1){const n=this.__v_raw,o=R(n),s=R(e);return t||(Ne(e,s)&&Q(o,"has",e),Q(o,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Qt(e,t=!1){return e=e.__v_raw,!t&&Q(R(e),"iterate",Ve),Reflect.get(e,"size",e)}function qs(e){e=R(e);const t=R(this);return Nn(t).has.call(t,e)||(t.add(e),ve(t,"add",e,e)),this}function Bs(e,t){t=R(t);const n=R(this),{has:o,get:s}=Nn(n);let r=o.call(n,e);r?Zi(n,o,e):(e=R(e),r=o.call(n,e));const i=s.call(n,e);return n.set(e,t),r?Ne(t,i)&&ve(n,"set",e,t,i):ve(n,"add",e,t),this}function Ks(e){const t=R(this),{has:n,get:o}=Nn(t);let s=n.call(t,e);s?Zi(t,n,e):(e=R(e),s=n.call(t,e));const r=o?o.call(t,e):void 0,i=t.delete(e);return s&&ve(t,"delete",e,void 0,r),i}function Vs(){const e=R(this),t=e.size!==0,n=Be(e)?new Map(e):new Set(e),o=e.clear();return t&&ve(e,"clear",void 0,void 0,n),o}function Zt(e,t){return function(o,s){const r=this,i=r.__v_raw,c=R(i),u=t?ls:e?ds:$t;return!e&&Q(c,"iterate",Ve),i.forEach((a,f)=>o.call(s,u(a),u(f),r))}}function en(e,t,n){return function(...o){const s=this.__v_raw,r=R(s),i=Be(r),c=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,a=s[e](...o),f=n?ls:t?ds:$t;return!t&&Q(r,"iterate",u?bo:Ve),{next(){const{value:l,done:h}=a.next();return h?{value:l,done:h}:{value:c?[f(l[0]),f(l[1])]:f(l),done:h}},[Symbol.iterator](){return this}}}}function Pe(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";Me(`${Ge(e)} operation ${n}failed: target is readonly.`,R(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function dl(){const e={get(r){return Yt(this,r)},get size(){return Qt(this)},has:Xt,add:qs,set:Bs,delete:Ks,clear:Vs,forEach:Zt(!1,!1)},t={get(r){return Yt(this,r,!1,!0)},get size(){return Qt(this)},has:Xt,add:qs,set:Bs,delete:Ks,clear:Vs,forEach:Zt(!1,!0)},n={get(r){return Yt(this,r,!0)},get size(){return Qt(this,!0)},has(r){return Xt.call(this,r,!0)},add:Pe("add"),set:Pe("set"),delete:Pe("delete"),clear:Pe("clear"),forEach:Zt(!0,!1)},o={get(r){return Yt(this,r,!0,!0)},get size(){return Qt(this,!0)},has(r){return Xt.call(this,r,!0)},add:Pe("add"),set:Pe("set"),delete:Pe("delete"),clear:Pe("clear"),forEach:Zt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=en(r,!1,!1),n[r]=en(r,!0,!1),t[r]=en(r,!1,!0),o[r]=en(r,!0,!0)}),[e,n,t,o]}const[pl,hl,gl,ml]=dl();function Mn(e,t){const n=t?e?ml:gl:e?hl:pl;return(o,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(k(n,s)&&s in o?n:o,s,r)}const _l={get:Mn(!1,!1)},yl={get:Mn(!1,!0)},wl={get:Mn(!0,!1)},bl={get:Mn(!0,!0)};function Zi(e,t,n){const o=R(n);if(o!==n&&t.call(e,o)){const s=kn(e);Me(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const ec=new WeakMap,tc=new WeakMap,nc=new WeakMap,oc=new WeakMap;function vl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sl(e){return e.__v_skip||!Object.isExtensible(e)?0:vl(kn(e))}function Dn(e){return pt(e)?e:jn(e,!1,al,_l,ec)}function Il(e){return jn(e,!1,ll,yl,tc)}function sc(e){return jn(e,!0,ul,wl,nc)}function ct(e){return jn(e,!0,fl,bl,oc)}function jn(e,t,n,o,s){if(!U(e))return Me(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=s.get(e);if(r)return r;const i=Sl(e);if(i===0)return e;const c=new Proxy(e,i===2?o:n);return s.set(e,c),c}function lt(e){return pt(e)?lt(e.__v_raw):!!(e&&e.__v_isReactive)}function pt(e){return!!(e&&e.__v_isReadonly)}function gn(e){return!!(e&&e.__v_isShallow)}function xl(e){return lt(e)||pt(e)}function R(e){const t=e&&e.__v_raw;return t?R(t):e}function fs(e){return Object.isExtensible(e)&&pu(e,"__v_skip",!0),e}const $t=e=>U(e)?Dn(e):e,ds=e=>U(e)?sc(e):e,Pl="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class rc{constructor(t,n,o,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new cs(()=>t(this._value),()=>un(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=R(this);return(!t._cacheable||t.effect.dirty)&&Ne(t._value,t._value=t.effect.run())&&un(t,4),ic(t),t.effect._dirtyLevel>=2&&(this._warnRecursive&&Me(Pl,`
|
| getter: `,this.getter),un(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Al(e,t,n=!1){let o,s;const r=T(e);r?(o=e,s=()=>{Me("Write operation failed: computed value is readonly")}):(o=e.get,s=e.set);const i=new rc(o,s,r||!s,n);return t&&!n&&(i.effect.onTrack=t.onTrack,i.effect.onTrigger=t.onTrigger),i}function ic(e){var t;ke&&Ke&&(e=R(e),Wi(Ke,(t=e.dep)!=null?t:e.dep=Ji(()=>e.dep=void 0,e instanceof rc?e:void 0),{target:e,type:"get",key:"value"}))}function un(e,t=4,n){e=R(e);const o=e.dep;o&&zi(o,t,{target:e,type:"set",key:"value",newValue:n})}function te(e){return!!(e&&e.__v_isRef===!0)}function cc(e){return Tl(e,!1)}function Tl(e,t){return te(e)?e:new Ol(e,t)}class Ol{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:R(t),this._value=n?t:$t(t)}get value(){return ic(this),this._value}set value(t){const n=this.__v_isShallow||gn(t)||pt(t);t=n?t:R(t),Ne(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:$t(t),un(this,4,t))}}function ac(e){return te(e)?e.value:e}const El={get:(e,t,n)=>ac(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return te(s)&&!te(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function uc(e){return lt(e)?e:new Proxy(e,El)}const We=[];function ps(e){We.push(e)}function hs(){We.pop()}function E(e,...t){Ze();const n=We.length?We[We.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=Cl();if(o)Se(o,n,11,[e+t.map(r=>{var i,c;return(c=(i=r.toString)==null?void 0:i.call(r))!=null?c:JSON.stringify(r)}).join(""),n&&n.proxy,s.map(({vnode:r})=>`at <${qn(n,r.type)}>`).join(`
| `),s]);else{const r=[`[Vue warn]: ${e}`,...t];s.length&&r.push(`
| `,...kl(s)),console.warn(...r)}et()}function Cl(){let e=We[We.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function kl(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
| `],...$l(n))}),t}function $l({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,s=` at <${qn(e.component,e.type,o)}`,r=">"+n;return e.props?[s,...Ll(e.props),r]:[s+r]}function Ll(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...lc(o,e[o]))}),n.length>3&&t.push(" ..."),t}function lc(e,t,n){return H(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:te(t)?(t=lc(e,R(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):T(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=R(t),n?t:[`${e}=`,t])}const gs={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Se(e,t,n,o){try{return o?e(...o):e()}catch(s){Un(s,t,n)}}function De(e,t,n,o){if(T(e)){const r=Se(e,t,n,o);return r&&qt(r)&&r.catch(i=>{Un(i,t,n)}),r}const s=[];for(let r=0;r<e.length;r++)s.push(De(e[r],t,n,o));return s}function Un(e,t,n,o=!0){const s=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,c=gs[n]||n;for(;r;){const a=r.ec;if(a){for(let f=0;f<a.length;f++)if(a[f](e,i,c)===!1)return}r=r.parent}const u=t.appContext.config.errorHandler;if(u){Se(u,null,10,[e,i,c]);return}}fc(e,n,s,o)}function fc(e,t,n,o=!0){{const s=gs[t]||t;n&&ps(n),E(`Unhandled error${s?` during execution of ${s}`:""}`),n&&hs(),console.error(e)}}let Lt=!1,vo=!1;const W=[];let de=0;const ft=[];let be=null,Oe=0;const dc=Promise.resolve();let ms=null;const Rl=100;function pc(e){const t=ms||dc;return e?t.then(this?e.bind(this):e):t}function Nl(e){let t=de+1,n=W.length;for(;t<n;){const o=t+n>>>1,s=W[o],r=Rt(s);r<e||r===e&&s.pre?t=o+1:n=o}return t}function mn(e){(!W.length||!W.includes(e,Lt&&e.allowRecurse?de+1:de))&&(e.id==null?W.push(e):W.splice(Nl(e.id),0,e),hc())}function hc(){!Lt&&!vo&&(vo=!0,ms=dc.then(_c))}function Ml(e){return W.indexOf(e)>-1}function Dl(e){const t=W.indexOf(e);t>de&&W.splice(t,1)}function gc(e){C(e)?ft.push(...e):(!be||!be.includes(e,e.allowRecurse?Oe+1:Oe))&&ft.push(e),hc()}function mc(e,t,n=Lt?de+1:0){for(t=t||new Map;n<W.length;n++){const o=W[n];if(o&&o.pre){if(_s(t,o))continue;W.splice(n,1),n--,o()}}}function jl(e){if(ft.length){const t=[...new Set(ft)].sort((n,o)=>Rt(n)-Rt(o));if(ft.length=0,be){be.push(...t);return}for(be=t,e=e||new Map,Oe=0;Oe<be.length;Oe++)_s(e,be[Oe])||be[Oe]();be=null,Oe=0}}const Rt=e=>e.id==null?1/0:e.id,Ul=(e,t)=>{const n=Rt(e)-Rt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function _c(e){vo=!1,Lt=!0,e=e||new Map,W.sort(Ul);const t=n=>_s(e,n);try{for(de=0;de<W.length;de++){const n=W[de];if(n&&n.active!==!1){if(t(n))continue;Se(n,null,14)}}}finally{de=0,W.length=0,jl(e),Lt=!1,ms=null,(W.length||ft.length)&&_c(e)}}function _s(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>Rl){const o=t.ownerInstance,s=o&&Ss(o.type);return Un(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}let pe,Tt=[],So=!1;function Hn(e,...t){pe?pe.emit(e,...t):So||Tt.push({event:e,args:t})}function yc(e,t){var n,o;pe=e,pe?(pe.enabled=!0,Tt.forEach(({event:s,args:r})=>pe.emit(s,...r)),Tt=[]):typeof window<"u"&&window.HTMLElement&&!((o=(n=window.navigator)==null?void 0:n.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{yc(r,t)}),setTimeout(()=>{pe||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,So=!0,Tt=[])},3e3)):(So=!0,Tt=[])}function Hl(e,t){Hn("app:init",e,t,{Fragment:Ef,Text:Cf,Comment:kf,Static:$f})}const Fl=ys("component:added"),ql=ys("component:updated"),Bl=ys("component:removed"),Kl=e=>{pe&&typeof pe.cleanupBuffer=="function"&&!pe.cleanupBuffer(e)&&Bl(e)};/*! #__NO_SIDE_EFFECTS__ */function ys(e){return t=>{Hn(e,t.appContext.app,t.uid,t.uid===0?void 0:t.parent?t.parent.uid:0,t)}}const Vl=wc("perf:start"),Wl=wc("perf:end");function wc(e){return(t,n,o)=>{Hn(e,t.appContext.app,t.uid,t,n,o)}}function zl(e,t,n){Hn("component:emit",e.appContext.app,e,t,n)}function Jl(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||F;{const{emitsOptions:f,propsOptions:[l]}=e;if(f)if(!(t in f))(!l||!(Ue(t)in l))&&E(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Ue(t)}" prop.`);else{const h=f[t];T(h)&&(h(...n)||E(`Invalid event arguments: event validation failed for event "${t}".`))}}let s=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in o){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:l,trim:h}=o[f]||F;h&&(s=n.map(g=>H(g)?g.trim():g)),l&&(s=n.map(hu))}zl(e,t,s);{const f=t.toLowerCase();f!==t&&o[Ue(f)]&&E(`Event "${f}" is emitted in component ${qn(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Je(t)}" instead of "${t}".`)}let c,u=o[c=Ue(t)]||o[c=Ue(we(t))];!u&&r&&(u=o[c=Ue(Je(t))]),u&&De(u,e,6,s);const a=o[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,De(a,e,6,s)}}function bc(e,t,n=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const r=e.emits;let i={},c=!1;if(!T(e)){const u=a=>{const f=bc(a,t,!0);f&&(c=!0,j(i,f))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!c?(U(e)&&o.set(e,null),null):(C(r)?r.forEach(u=>i[u]=null):j(i,r),U(e)&&o.set(e,i),i)}function vc(e,t){return!e||!pi(t)?!1:(t=t.slice(2).replace(/Once$/,""),k(e,t[0].toLowerCase()+t.slice(1))||k(e,Je(t))||k(e,t))}let Xe=null;function Ws(e){const t=Xe;return Xe=e,e&&e.type.__scopeId,t}const Io="components";function Gl(e,t){return Yl(Io,e,!0,t)||e}function Yl(e,t,n=!0,o=!1){const s=Xe||K;if(s){const r=s.type;if(e===Io){const c=Ss(r,!1);if(c&&(c===t||c===we(t)||c===Ge(we(t))))return r}const i=zs(s[e]||r[e],t)||zs(s.appContext[e],t);if(!i&&o)return r;if(n&&!i){const c=e===Io?`
| If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";E(`Failed to resolve ${e.slice(0,-1)}: ${t}${c}`)}return i}else E(`resolve${Ge(e.slice(0,-1))} can only be used in render() or setup().`)}function zs(e,t){return e&&(e[t]||e[we(t)]||e[Ge(we(t))])}const tn={};function Wn(e,t,n){return T(t)||E("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Sc(e,t,n)}function Sc(e,t,{immediate:n,deep:o,flush:s,once:r,onTrack:i,onTrigger:c}=F){if(t&&r){const v=t;t=(...L)=>{v(...L),P()}}o!==void 0&&typeof o=="number"&&E('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),t||(n!==void 0&&E('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&E('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&E('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const u=v=>{E("Invalid watch source: ",v,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},a=K,f=v=>o===!0?v:at(v,o===!1?1:void 0);let l,h=!1,g=!1;if(te(e)?(l=()=>e.value,h=gn(e)):lt(e)?(l=()=>f(e),h=!0):C(e)?(g=!0,h=e.some(v=>lt(v)||gn(v)),l=()=>e.map(v=>{if(te(v))return v.value;if(lt(v))return f(v);if(T(v))return Se(v,a,2);u(v)})):T(e)?t?l=()=>Se(e,a,2):l=()=>(_&&_(),De(e,a,3,[p])):(l=z,u(e)),t&&o){const v=l;l=()=>at(v())}let _,p=v=>{_=y.onStop=()=>{Se(v,a,4),_=y.onStop=void 0}},d=g?new Array(e.length).fill(tn):tn;const m=()=>{if(!(!y.active||!y.dirty))if(t){const v=y.run();(o||h||(g?v.some((L,N)=>Ne(L,d[N])):Ne(v,d)))&&(_&&_(),De(t,a,3,[v,d===tn?void 0:g&&d[0]===tn?[]:d,p]),d=v)}else y.run()};m.allowRecurse=!!t;let w;s==="sync"?w=m:s==="post"?w=()=>or(m,a&&a.suspense):(m.pre=!0,a&&(m.id=a.uid),w=()=>mn(m));const y=new cs(l,z,w),b=ol(),P=()=>{y.stop(),b&&Cn(b.effects,y)};return y.onTrack=i,y.onTrigger=c,t?n?m():d=y.run():s==="post"?or(y.run.bind(y),a&&a.suspense):y.run(),P}function Xl(e,t,n){const o=this.proxy,s=H(e)?e.includes(".")?Ic(o,e):()=>o[e]:e.bind(o,o);let r;T(t)?r=t:(r=t.handler,n=t);const i=Kt(this),c=Sc(s,r.bind(o),n);return i(),c}function Ic(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;s<n.length&&o;s++)o=o[n[s]];return o}}function at(e,t,n=0,o){if(!U(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),te(e))at(e.value,t,n,o);else if(C(e))for(let s=0;s<e.length;s++)at(e[s],t,n,o);else if(hi(e)||Be(e))e.forEach(s=>{at(s,t,n,o)});else if(J(e))for(const s in e)at(e[s],t,n,o);return e}function xc(e){lu(e)&&E("Do not use built-in directive ids as custom directive id: "+e)}function Pc(){return{app:null,config:{isNativeTag:au,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ql=0;function Zl(e,t){return function(o,s=null){T(o)||(o=j({},o)),s!=null&&!U(s)&&(E("root props passed to app.mount() must be an object."),s=null);const r=Pc(),i=new WeakSet,c=r.app={_uid:Ql++,_component:o,_props:s,_container:null,_context:r,_instance:null,version:Dc,get config(){return r.config},set config(u){E("app.config cannot be replaced. Modify individual options instead.")},use(u,...a){return i.has(u)?E("Plugin has already been applied to target app."):u&&T(u.install)?(i.add(u),u.install(c,...a)):T(u)?(i.add(u),u(c,...a)):E('A plugin must either be a function or an object with an "install" function.'),c},mixin(u){return r.mixins.includes(u)?E("Mixin has already been applied to target app"+(u.name?`: ${u.name}`:"")):r.mixins.push(u),c},component(u,a){return Co(u,r.config),a?(r.components[u]&&E(`Component "${u}" has already been registered in target app.`),r.components[u]=a,c):r.components[u]},directive(u,a){return xc(u),a?(r.directives[u]&&E(`Directive "${u}" has already been registered in target app.`),r.directives[u]=a,c):r.directives[u]},mount(){},unmount(){},provide(u,a){return u in r.provides&&E(`App already provides property with key "${String(u)}". It will be overwritten with the new value.`),r.provides[u]=a,c},runWithContext(u){const a=Et;Et=c;try{return u()}finally{Et=a}}};return c}}let Et=null;function ef(e,t){if(!K)E("provide() can only be used inside setup().");else{let n=K.provides;const o=K.parent&&K.parent.provides;o===n&&(n=K.provides=Object.create(o)),n[e]=t,K.type.mpType==="app"&&K.appContext.app.provide(e,t)}}function zn(e,t,n=!1){const o=K||Xe;if(o||Et){const s=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Et._context.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&T(t)?t.call(o&&o.proxy):t;E(`injection "${String(e)}" not found.`)}else E("inject() can only be used inside setup() or functional components.")}const tf=e=>e.type.__isKeepAlive;function nf(e,t){Ac(e,"a",t)}function of(e,t){Ac(e,"da",t)}function Ac(e,t,n=K){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(nt(t,o,n),n){let s=n.parent;for(;s&&s.parent;)tf(s.parent.vnode)&&sf(o,t,n,s),s=s.parent}}function sf(e,t,n,o){const s=nt(t,e,o,!0);Oc(()=>{Cn(o[t],s)},n)}function nt(e,t,n=K,o=!1){if(n){Yu(e)&&(n=n.root);const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ze();const c=Kt(n),u=De(t,n,e,i);return c(),et(),u});return o?s.unshift(r):s.push(r),r}else{const s=Ue((gs[e]||e.replace(/^on/,"")).replace(/ hook$/,""));E(`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().`)}}const Ie=e=>(t,n=K)=>(!vs||e==="sp")&&nt(e,(...o)=>t(...o),n),rf=Ie("bm"),Tc=Ie("m"),cf=Ie("bu"),af=Ie("u"),ws=Ie("bum"),Oc=Ie("um"),uf=Ie("sp"),lf=Ie("rtg"),ff=Ie("rtc");function df(e,t=K){nt("ec",e,t)}const xo=e=>e?Nc(e)?Vt(e)||e.proxy:xo(e.parent):null,Nt=j(Object.create(null),{$:e=>e,$el:e=>e.__$el||(e.__$el={}),$data:e=>e.data,$props:e=>ct(e.props),$attrs:e=>ct(e.attrs),$slots:e=>ct(e.slots),$refs:e=>ct(e.refs),$parent:e=>xo(e.parent),$root:e=>xo(e.root),$emit:e=>e.emit,$options:e=>kc(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,mn(e.update)}),$watch:e=>Xl.bind(e)}),bs=e=>e==="_"||e==="$",Jn=(e,t)=>e!==F&&!e.__isScriptSetup&&k(e,t),Ec={get({_:e},t){const{ctx:n,setupState:o,data:s,props:r,accessCache:i,type:c,appContext:u}=e;if(t==="__isVue")return!0;let a;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return r[t]}else{if(Jn(o,t))return i[t]=1,o[t];if(s!==F&&k(s,t))return i[t]=2,s[t];if((a=e.propsOptions[0])&&k(a,t))return i[t]=3,r[t];if(n!==F&&k(n,t))return i[t]=4,n[t];Po&&(i[t]=0)}}const f=Nt[t];let l,h;if(f)return(t==="$attrs"||t==="$slots")&&Q(e,"get",t),f(e);if((l=c.__cssModules)&&(l=l[t]))return l;if(n!==F&&k(n,t))return i[t]=4,n[t];if(h=u.config.globalProperties,k(h,t))return h[t];Xe&&(!H(t)||t.indexOf("__v")!==0)&&(s!==F&&bs(t[0])&&k(s,t)?E(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Xe&&E(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:s,ctx:r}=e;return Jn(s,t)?(s[t]=n,!0):s.__isScriptSetup&&k(s,t)?(E(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==F&&k(o,t)?(o[t]=n,!0):k(e.props,t)?(E(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(E(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:n}):r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,propsOptions:r}},i){let c;return!!n[i]||e!==F&&k(e,i)||Jn(t,i)||(c=r[0])&&k(c,i)||k(o,i)||k(Nt,i)||k(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:k(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};Ec.ownKeys=e=>(E("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));function pf(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(Nt).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>Nt[n](e),set:z})}),t}function hf(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(o=>{Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>e.props[o],set:z})})}function gf(e){const{ctx:t,setupState:n}=e;Object.keys(R(n)).forEach(o=>{if(!n.__isScriptSetup){if(bs(o[0])){E(`setup() return property ${JSON.stringify(o)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>n[o],set:z})}})}function Js(e){return C(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function mf(){const e=Object.create(null);return(t,n)=>{e[n]?E(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let Po=!0;function _f(e){const t=kc(e),n=e.proxy,o=e.ctx;Po=!1,t.beforeCreate&&Gs(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:i,watch:c,provide:u,inject:a,created:f,beforeMount:l,mounted:h,beforeUpdate:g,updated:_,activated:p,deactivated:d,beforeDestroy:m,beforeUnmount:w,destroyed:y,unmounted:b,render:P,renderTracked:v,renderTriggered:L,errorCaptured:N,serverPrefetch:B,expose:ie,inheritAttrs:Y,components:fe,directives:ae,filters:je}=t,re=mf();{const[M]=e.propsOptions;if(M)for(const D in M)re("Props",D)}function st(){a&&yf(a,o,re)}if(st(),i)for(const M in i){const D=i[M];T(D)?(Object.defineProperty(o,M,{value:D.bind(n),configurable:!0,enumerable:!0,writable:!0}),re("Methods",M)):E(`Method "${M}" has type "${typeof D}" in the component definition. Did you reference the function correctly?`)}if(s){T(s)||E("The data option must be a function. Plain object usage is no longer supported.");const M=s.call(n,n);if(qt(M)&&E("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!U(M))E("data() should return an object.");else{e.data=Dn(M);for(const D in M)re("Data",D),bs(D[0])||Object.defineProperty(o,D,{configurable:!0,enumerable:!0,get:()=>M[D],set:z})}}if(Po=!0,r)for(const M in r){const D=r[M],S=T(D)?D.bind(n,n):T(D.get)?D.get.bind(n,n):z;S===z&&E(`Computed property "${M}" has no getter.`);const A=!T(D)&&T(D.set)?D.set.bind(n):()=>{E(`Write operation failed: computed property "${M}" is readonly.`)},I=Yf({get:S,set:A});Object.defineProperty(o,M,{enumerable:!0,configurable:!0,get:()=>I.value,set:x=>I.value=x}),re("Computed",M)}if(c)for(const M in c)Cc(c[M],o,n,M);function rt(){if(u){const M=T(u)?u.call(n):u;Reflect.ownKeys(M).forEach(D=>{ef(D,M[D])})}}rt(),f&&Gs(f,e,"c");function G(M,D){C(D)?D.forEach(S=>M(S.bind(n))):D&&M(D.bind(n))}if(G(rf,l),G(Tc,h),G(cf,g),G(af,_),G(nf,p),G(of,d),G(df,N),G(ff,v),G(lf,L),G(ws,w),G(Oc,b),G(uf,B),C(ie))if(ie.length){const M=e.exposed||(e.exposed={});ie.forEach(D=>{Object.defineProperty(M,D,{get:()=>n[D],set:S=>n[D]=S})})}else e.exposed||(e.exposed={});P&&e.render===z&&(e.render=P),Y!=null&&(e.inheritAttrs=Y),fe&&(e.components=fe),ae&&(e.directives=ae),e.ctx.$onApplyOptions&&e.ctx.$onApplyOptions(t,e,n)}function yf(e,t,n=z){C(e)&&(e=Ao(e));for(const o in e){const s=e[o];let r;U(s)?"default"in s?r=zn(s.from||o,s.default,!0):r=zn(s.from||o):r=zn(s),te(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[o]=r,n("Inject",o)}}function Gs(e,t,n){De(C(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cc(e,t,n,o){const s=o.includes(".")?Ic(n,o):()=>n[o];if(H(e)){const r=t[e];T(r)?Wn(s,r):E(`Invalid watch handler specified by key "${e}"`,r)}else if(T(e))Wn(s,e.bind(n));else if(U(e))if(C(e))e.forEach(r=>Cc(r,t,n,o));else{const r=T(e.handler)?e.handler.bind(n):t[e.handler];T(r)?Wn(s,r,e):E(`Invalid watch handler specified by key "${e.handler}"`,r)}else E(`Invalid watch option: "${o}"`,e)}function kc(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,c=r.get(t);let u;return c?u=c:!s.length&&!n&&!o?u=t:(u={},s.length&&s.forEach(a=>_n(u,a,i,!0)),_n(u,t,i)),U(t)&&r.set(t,u),u}function _n(e,t,n,o=!1){const{mixins:s,extends:r}=t;r&&_n(e,r,n,!0),s&&s.forEach(i=>_n(e,i,n,!0));for(const i in t)if(o&&i==="expose")E('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const c=wf[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const wf={data:Ys,props:Xs,emits:Xs,methods:Ot,computed:Ot,beforeCreate:Z,created:Z,beforeMount:Z,mounted:Z,beforeUpdate:Z,updated:Z,beforeDestroy:Z,beforeUnmount:Z,destroyed:Z,unmounted:Z,activated:Z,deactivated:Z,errorCaptured:Z,serverPrefetch:Z,components:Ot,directives:Ot,watch:vf,provide:Ys,inject:bf};function Ys(e,t){return t?e?function(){return j(T(e)?e.call(this,this):e,T(t)?t.call(this,this):t)}:t:e}function bf(e,t){return Ot(Ao(e),Ao(t))}function Ao(e){if(C(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Z(e,t){return e?[...new Set([].concat(e,t))]:t}function Ot(e,t){return e?j(Object.create(null),e,t):t}function Xs(e,t){return e?C(e)&&C(t)?[...new Set([...e,...t])]:j(Object.create(null),Js(e),Js(t??{})):t}function vf(e,t){if(!e)return t;if(!t)return e;const n=j(Object.create(null),e);for(const o in t)n[o]=Z(e[o],t[o]);return n}function Sf(e,t,n,o=!1){const s={},r={};e.propsDefaults=Object.create(null),$c(e,t,s,r);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);Rc(t||{},s,e),n?e.props=o?s:Il(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function If(e,t,n,o){const{props:s,attrs:r,vnode:{patchFlag:i}}=e,c=R(s),[u]=e.propsOptions;let a=!1;if(!void 0&&(o||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let l=0;l<f.length;l++){let h=f[l];if(vc(e.emitsOptions,h))continue;const g=t[h];if(u)if(k(r,h))g!==r[h]&&(r[h]=g,a=!0);else{const _=we(h);s[_]=To(u,c,_,g,e,!1)}else g!==r[h]&&(r[h]=g,a=!0)}}}else{$c(e,t,s,r)&&(a=!0);let f;for(const l in c)(!t||!k(t,l)&&((f=Je(l))===l||!k(t,f)))&&(u?n&&(n[l]!==void 0||n[f]!==void 0)&&(s[l]=To(u,c,l,void 0,e,!0)):delete s[l]);if(r!==c)for(const l in r)(!t||!k(t,l))&&(delete r[l],a=!0)}a&&ve(e,"set","$attrs"),Rc(t||{},s,e)}function $c(e,t,n,o){const[s,r]=e.propsOptions;let i=!1,c;if(t)for(let u in t){if(mi(u))continue;const a=t[u];let f;s&&k(s,f=we(u))?!r||!r.includes(f)?n[f]=a:(c||(c={}))[f]=a:vc(e.emitsOptions,u)||(!(u in o)||a!==o[u])&&(o[u]=a,i=!0)}if(r){const u=R(n),a=c||F;for(let f=0;f<r.length;f++){const l=r[f];n[l]=To(s,u,l,a[l],e,!k(a,l))}}return i}function To(e,t,n,o,s,r){const i=e[n];if(i!=null){const c=k(i,"default");if(c&&o===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&T(u)){const{propsDefaults:a}=s;if(n in a)o=a[n];else{const f=Kt(s);o=a[n]=u.call(null,t),f()}}else o=u}i[0]&&(r&&!c?o=!1:i[1]&&(o===""||o===Je(n))&&(o=!0))}return o}function Lc(e,t,n=!1){const o=t.propsCache,s=o.get(e);if(s)return s;const r=e.props,i={},c=[];let u=!1;if(!T(e)){const f=l=>{u=!0;const[h,g]=Lc(l,t,!0);j(i,h),g&&c.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!u)return U(e)&&o.set(e,Ns),Ns;if(C(r))for(let f=0;f<r.length;f++){H(r[f])||E("props must be strings when using array syntax.",r[f]);const l=we(r[f]);Qs(l)&&(i[l]=F)}else if(r){U(r)||E("invalid props options",r);for(const f in r){const l=we(f);if(Qs(l)){const h=r[f],g=i[l]=C(h)||T(h)?{type:h}:j({},h);if(g){const _=er(Boolean,g.type),p=er(String,g.type);g[0]=_>-1,g[1]=p<0||_<p,(_>-1||k(g,"default"))&&c.push(l)}}}}const a=[i,c];return U(e)&&o.set(e,a),a}function Qs(e){return e[0]!=="$"&&!mi(e)?!0:(E(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Oo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Zs(e,t){return Oo(e)===Oo(t)}function er(e,t){return C(t)?t.findIndex(n=>Zs(n,e)):T(t)&&Zs(t,e)?0:-1}function Rc(e,t,n){const o=R(t),s=n.propsOptions[0];for(const r in s){let i=s[r];i!=null&&xf(r,o[r],i,ct(o),!k(e,r)&&!k(e,Je(r)))}}function xf(e,t,n,o,s){const{type:r,required:i,validator:c,skipCheck:u}=n;if(i&&s){E('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(r!=null&&r!==!0&&!u){let a=!1;const f=C(r)?r:[r],l=[];for(let h=0;h<f.length&&!a;h++){const{valid:g,expectedType:_}=Af(t,f[h]);l.push(_||""),a=g}if(!a){E(Tf(e,t,l));return}}c&&!c(t,o)&&E('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Pf=vt("String,Number,Boolean,Function,Symbol,BigInt");function Af(e,t){let n;const o=Oo(t);if(Pf(o)){const s=typeof e;n=s===o.toLowerCase(),!n&&s==="object"&&(n=e instanceof t)}else o==="Object"?n=U(e):o==="Array"?n=C(e):o==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:o}}function Tf(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let o=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(Ge).join(" | ")}`;const s=n[0],r=kn(t),i=tr(t,s),c=tr(t,r);return n.length===1&&nr(s)&&!Of(s,r)&&(o+=` with value ${i}`),o+=`, got ${r} `,nr(r)&&(o+=`with value ${c}.`),o}function tr(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function nr(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function Of(...e){return e.some(t=>t.toLowerCase()==="boolean")}let xt,Ee;function yn(e,t){e.appContext.config.performance&&bn()&&Ee.mark(`vue-${t}-${e.uid}`),Vl(e,t,bn()?Ee.now():Date.now())}function wn(e,t){if(e.appContext.config.performance&&bn()){const n=`vue-${t}-${e.uid}`,o=n+":end";Ee.mark(o),Ee.measure(`<${qn(e,e.type)}> ${t}`,n,o),Ee.clearMarks(n),Ee.clearMarks(o)}Wl(e,t,bn()?Ee.now():Date.now())}function bn(){return xt!==void 0||(typeof window<"u"&&window.performance?(xt=!0,Ee=window.performance):xt=!1),xt}const or=gc,Ef=Symbol.for("v-fgt"),Cf=Symbol.for("v-txt"),kf=Symbol.for("v-cmt"),$f=Symbol.for("v-stc");function Lf(e){return e?e.__v_isVNode===!0:!1}const Rf="__vInternal";function Nf(e){return e?xl(e)||Rf in e?j({},e):e:null}const Mf=Pc();let Df=0;function jf(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||Mf,r={uid:Df++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new tl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Lc(o,s),emitsOptions:bc(o,s),emit:null,emitted:null,propsDefaults:F,inheritAttrs:o.inheritAttrs,ctx:F,data:F,props:F,attrs:F,slots:F,refs:F,setupState:F,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null,$uniElements:new Map,$templateUniElementRefs:[],$templateUniElementStyles:{},$eS:{},$eA:{}};return r.ctx=pf(r),r.root=t?t.root:r,r.emit=Jl.bind(null,r),e.ce&&e.ce(r),r}let K=null;const Fn=()=>K||Xe;let vn,Eo;vn=e=>{K=e},Eo=e=>{vs=e};const Kt=e=>{const t=K;return vn(e),e.scope.on(),()=>{e.scope.off(),vn(t)}},sr=()=>{K&&K.scope.off(),vn(null)},Uf=vt("slot,component");function Co(e,{isNativeTag:t}){(Uf(e)||t(e))&&E("Do not use built-in or reserved HTML elements as component id: "+e)}function Nc(e){return e.vnode.shapeFlag&4}let vs=!1;function Hf(e,t=!1){t&&Eo(t);const{props:n}=e.vnode,o=Nc(e);Sf(e,n,o,t);const s=o?Ff(e,t):void 0;return t&&Eo(!1),s}function Ff(e,t){const n=e.type;{if(n.name&&Co(n.name,e.appContext.config),n.components){const s=Object.keys(n.components);for(let r=0;r<s.length;r++)Co(s[r],e.appContext.config)}if(n.directives){const s=Object.keys(n.directives);for(let r=0;r<s.length;r++)xc(s[r])}n.compilerOptions&&Kf()&&E('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=fs(new Proxy(e.ctx,Ec)),hf(e);const{setup:o}=n;if(o){const s=e.setupContext=o.length>1?zf(e):null,r=Kt(e);Ze();const i=Se(o,e,0,[ct(e.props),s]);et(),r(),qt(i)?(i.then(sr,sr),E("setup() returned a Promise, but the version of Vue you are using does not support it yet.")):qf(e,i,t)}else Mc(e,t)}function qf(e,t,n){T(t)?e.render=t:U(t)?(Lf(t)&&E("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=uc(t),gf(e)):t!==void 0&&E(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Mc(e,n)}let Bf;const Kf=()=>!Bf;function Mc(e,t,n){const o=e.type;e.render||(e.render=o.render||z);{const s=Kt(e);Ze();try{_f(e)}finally{et(),s()}}!o.render&&e.render===z&&!t&&(o.template?E('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):E("Component is missing template or render function."))}function Vf(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Q(e,"get","$attrs"),t[n]},set(){return E("setupContext.attrs is readonly."),!1},deleteProperty(){return E("setupContext.attrs is readonly."),!1}}))}function Wf(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,n){return Q(e,"get","$slots"),t[n]}}))}function zf(e){return Object.freeze({get attrs(){return Vf(e)},get slots(){return Wf(e)},get emit(){return(n,...o)=>e.emit(n,...o)},expose:n=>{if(e.exposed&&E("expose() should be called only once per setup()."),n!=null){let o=typeof n;o==="object"&&(C(n)?o="array":te(n)&&(o="ref")),o!=="object"&&E(`expose() should be passed a plain object, received ${o}.`)}e.exposed=n||{}}})}function Vt(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(uc(fs(e.exposed)),{get(t,n){return n in t?t[n]:e.proxy[n]},has(t,n){return n in t||n in Nt}}))}const Jf=/(?:^|[-_])(\w)/g,Gf=e=>e.replace(Jf,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ss(e,t=!0){return T(e)?e.displayName||e.name:e.name||t&&e.__name}function qn(e,t,n=!1){let o=Ss(t);if(!o&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(o=s[1])}if(!o&&e&&e.parent){const s=r=>{for(const i in r)if(r[i]===t)return i};o=s(e.components||e.parent.type.components)||s(e.appContext.components)}return o?Gf(o):n?"App":"Anonymous"}const Yf=(e,t)=>{const n=Al(e,t,vs);{const o=Fn();o&&o.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n},Dc="3.4.21",Is=E;function Sn(e){return ac(e)}const He="[object Array]",Fe="[object Object]";function jc(e,t){const n={};return ko(e,t),ln(e,t,"",n),n}function ko(e,t){if(e=Sn(e),e===t)return;const n=he(e),o=he(t);if(n==Fe&&o==Fe)for(let s in t){const r=e[s];r===void 0?e[s]=null:ko(r,t[s])}else n==He&&o==He&&e.length>=t.length&&t.forEach((s,r)=>{ko(e[r],s)})}function ln(e,t,n,o){if(e=Sn(e),e===t)return;const s=he(e),r=he(t);if(s==Fe)if(r!=Fe||Object.keys(e).length<Object.keys(t).length)Ae(o,n,e);else for(let i in e){const c=Sn(e[i]),u=t[i],a=he(c),f=he(u);if(a!=He&&a!=Fe)c!=u&&Ae(o,(n==""?"":n+".")+i,c);else if(a==He)f!=He||c.length<u.length?Ae(o,(n==""?"":n+".")+i,c):c.forEach((l,h)=>{ln(l,u[h],(n==""?"":n+".")+i+"["+h+"]",o)});else if(a==Fe)if(f!=Fe||Object.keys(c).length<Object.keys(u).length)Ae(o,(n==""?"":n+".")+i,c);else for(let l in c)ln(c[l],u[l],(n==""?"":n+".")+i+"."+l,o)}else s==He?r!=He||e.length<t.length?Ae(o,n,e):e.forEach((i,c)=>{ln(i,t[c],n+"["+c+"]",o)}):Ae(o,n,e)}function Ae(e,t,n){e[t]=n}function Xf(e){return W.includes(e.update)}function rr(e){const n=e.ctx.__next_tick_callbacks;if(n&&n.length){const o=n.slice(0);n.length=0;for(let s=0;s<o.length;s++)o[s]()}}function $o(e,t){const n=e.ctx;if(!n.__next_tick_pending&&!Xf(e))return pc(t&&t.bind(e.proxy));let o;return n.__next_tick_callbacks||(n.__next_tick_callbacks=[]),n.__next_tick_callbacks.push(()=>{t?Se(t.bind(e.proxy),e,14):o&&o(e.proxy)}),new Promise(s=>{o=s})}function Lo(e,t){e=Sn(e);const n=typeof e;if(n==="object"&&e!==null){let o=t.get(e);if(typeof o<"u")return o;if(C(e)){const s=e.length;o=new Array(s),t.set(e,o);for(let r=0;r<s;r++)o[r]=Lo(e[r],t)}else{o={},t.set(e,o);for(const s in e)k(e,s)&&(o[s]=Lo(e[s],t))}return o}if(n!=="symbol")return e}function Qf(e){return Lo(e,typeof WeakMap<"u"?new WeakMap:new Map)}function Zf(e,t){const n=e.data,o=Object.create(null);return t.forEach(s=>{o[s]=n[s]}),o}function ir(e,t,n){if(!t)return;t=Qf(t),t.$eS=e.$eS||{},t.$eA=e.$eA||{};const o=e.ctx,s=o.mpType;if(s==="page"||s==="component"){t.r0=1;const r=o.$scope,i=Object.keys(t),c=jc(t,n||Zf(r,i));Object.keys(c).length?(o.__next_tick_pending=!0,r.setData(c,()=>{o.__next_tick_pending=!1,rr(e)}),mc()):rr(e)}}function ed(e){e.globalProperties.$nextTick=function(n){return $o(this.$,n)}}function td(e,t,n){t.appContext.config.globalProperties.$applyOptions(e,t,n);const o=e.computed;if(o){const s=Object.keys(o);if(s.length){const r=t.ctx;r.$computedKeys||(r.$computedKeys=[]),r.$computedKeys.push(...s)}}delete t.ctx.$onApplyOptions}function Uc(e,t=!1){const{setupState:n,$templateRefs:o,$templateUniElementRefs:s,ctx:{$scope:r,$mpPlatform:i}}=e;if(i==="mp-alipay"||!r||!o&&!s)return;if(t){o&&o.forEach(f=>Pt(f,null,n)),s&&s.forEach(f=>Pt(f,null,n));return}const c=i==="mp-baidu"||i==="mp-toutiao",u=f=>{if(f.length===0)return[];const l=(r.selectAllComponents(".r")||[]).concat(r.selectAllComponents(".r-i-f")||[]);return f.filter(h=>{const g=od(l,h.i);return c&&g===null?!0:(Pt(h,g,n),!1)})},a=()=>{if(o){const f=u(o);f.length&&e.proxy&&e.proxy.$scope&&e.proxy.$scope.setData({r1:1},()=>{u(f)})}};s&&s.length&&$o(e,()=>{s.forEach(f=>{C(f.v)?f.v.forEach(l=>{Pt(f,l,n)}):Pt(f,f.v,n)})}),r._$setRef?r._$setRef(a):$o(e,a)}function nd(e){return U(e)&&fs(e),e}function od(e,t){const n=e.find(o=>o&&(o.properties||o.props).uI===t);if(n){const o=n.$vm;return o?Vt(o.$)||o:nd(n)}return null}function Pt({r:e,f:t},n,o){if(T(e))e(n,{});else{const s=H(e),r=te(e);if(s||r)if(t){if(!r)return;C(e.value)||(e.value=[]);const i=e.value;if(i.indexOf(n)===-1){if(i.push(n),!n)return;n.$&&ws(()=>Cn(i,n),n.$)}}else s?k(o,e)&&(o[e]=n):te(e)?e.value=n:cr(e);else cr(e)}}function cr(e){Is("Invalid template ref type:",e,`(${typeof e})`)}const Ro=gc;function ar(e,t){const n=e.component=jf(e,t.parentComponent,null);return n.ctx.$onApplyOptions=td,n.ctx.$children=[],t.mpType==="app"&&(n.render=z),t.onBeforeSetup&&t.onBeforeSetup(n,t),ps(e),yn(n,"mount"),yn(n,"init"),Hf(n),wn(n,"init"),t.parentComponent&&n.proxy&&t.parentComponent.ctx.$children.push(Vt(n)||n.proxy),cd(n),hs(),wn(n,"mount"),n.proxy}const sd=e=>{let t;for(const n in e)(n==="class"||n==="style"||pi(n))&&((t||(t={}))[n]=e[n]);return t};function ur(e){const{type:t,vnode:n,proxy:o,withProxy:s,props:r,propsOptions:[i],slots:c,attrs:u,emit:a,render:f,renderCache:l,data:h,setupState:g,ctx:_,uid:p,appContext:{app:{config:{globalProperties:{pruneComponentPropsCache:d}}}},inheritAttrs:m}=e;e.$uniElementIds=new Map,e.$templateRefs=[],e.$templateUniElementRefs=[],e.$templateUniElementStyles={},e.$ei=0,d(p),e.__counter=e.__counter===0?1:0;let w;const y=Ws(e);try{if(n.shapeFlag&4){lr(m,r,i,u);const b=s||o;w=f.call(b,b,l,r,g,h,_)}else{lr(m,r,i,t.props?u:sd(u));const b=t;w=b.length>1?b(r,{attrs:u,slots:c,emit:a}):b(r,null)}}catch(b){Un(b,e,1),w=!1}return Uc(e),Ws(y),w}function lr(e,t,n,o){if(t&&o&&e!==!1){const s=Object.keys(o).filter(r=>r!=="class"&&r!=="style");if(!s.length)return;n&&s.some(Ms)?s.forEach(r=>{(!Ms(r)||!(r.slice(9)in n))&&(t[r]=o[r])}):s.forEach(r=>t[r]=o[r])}}const rd=e=>{Ze(),mc(),et()};function id(){const e=this.$scopedSlotsData;if(!e||e.length===0)return;const t=this.ctx.$scope,n=t.data,o=Object.create(null);e.forEach(({path:s,index:r,data:i})=>{const c=ji(n,s),u=H(r)?`${s}.${r}`:`${s}[${r}]`;if(typeof c>"u"||typeof c[r]>"u")o[u]=i;else{const a=jc(i,c[r]);Object.keys(a).forEach(f=>{o[u+"."+f]=a[f]})}}),e.length=0,Object.keys(o).length&&t.setData(o)}function Gn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function cd(e){const t=id.bind(e);e.$updateScopedSlots=()=>pc(()=>mn(t));const n=()=>{if(!e.isMounted)ws(()=>{Uc(e,!0)},e),yn(e,"patch"),ir(e,ur(e)),wn(e,"patch"),Fl(e);else{const{next:r,bu:i,u:c}=e;ps(r||e.vnode),Gn(e,!1),rd(),i&&an(i),Gn(e,!0),yn(e,"patch"),ir(e,ur(e)),wn(e,"patch"),c&&Ro(c),ql(e),hs()}},o=e.effect=new cs(n,z,()=>mn(s),e.scope),s=e.update=()=>{o.dirty&&o.run()};s.id=e.uid,Gn(e,!0),o.onTrack=e.rtc?r=>an(e.rtc,r):void 0,o.onTrigger=e.rtg?r=>an(e.rtg,r):void 0,s.ownerInstance=e,s()}function ad(e){const{bum:t,scope:n,update:o,um:s}=e;t&&an(t);{const r=e.parent;if(r){const i=r.ctx.$children,c=Vt(e)||e.proxy,u=i.indexOf(c);u>-1&&i.splice(u,1)}}n.stop(),o&&(o.active=!1),s&&Ro(s),Ro(()=>{e.isUnmounted=!0}),Kl(e)}const ud=Zl();function ld(){if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof my<"u")return my}function fd(e,t=null){const n=ld();n.__VUE__=!0,yc(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const o=ud(e,t),s=o._context;ed(s.config);const r=u=>(u.appContext=s,u.shapeFlag=6,u),i=function(a,f){return ar(r(a),f)},c=function(a){return a&&ad(a.$)};return o.mount=function(){e.render=z;const a=ar(r({type:e}),{mpType:"app",mpInstance:null,parentComponent:null,slots:[],props:null});return o._instance=a.$,Hl(o,Dc),a.$app=o,a.$createComponent=i,a.$destroyComponent=c,s.$appInstance=a,a},o.unmount=function(){Is("Cannot unmount an app.")},o}function fr(e,t,n,o){T(t)&&nt(e,t.bind(n),o)}function dd(e,t,n){const o=e.mpType||n.$mpType;!o||o==="component"||Object.keys(e).forEach(s=>{if(Fi(s,e[s],!1)){const r=e[s];C(r)?r.forEach(i=>fr(s,i,n,t)):fr(s,r,n,t)}})}function pd(e,t,n){dd(e,t,n)}function hd(e,t,n){return e[t]=n}function gd(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function md(e){const t=e.config.errorHandler;return function(o,s,r){t&&t(o,s,r);const i=e._instance;if(!i||!i.proxy)throw o;i[Ye]?i.proxy.$callHook(Ye,o):fc(o,r,s?s.$.vnode:null,!1)}}function _d(e,t){return e?[...new Set([].concat(e,t))]:t}function yd(e){Hi.forEach(t=>{e[t]=_d})}let No;const nn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",wd=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;typeof atob!="function"?No=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!wd.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");e+="==".slice(2-(e.length&3));for(var t,n="",o,s,r=0;r<e.length;)t=nn.indexOf(e.charAt(r++))<<18|nn.indexOf(e.charAt(r++))<<12|(o=nn.indexOf(e.charAt(r++)))<<6|(s=nn.indexOf(e.charAt(r++))),n+=o===64?String.fromCharCode(t>>16&255):s===64?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,t&255);return n}:No=atob;function bd(e){return decodeURIComponent(No(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Yn(){const e=$.getStorageSync("uni_id_token")||"",t=e.split(".");if(!e||t.length!==3)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse(bd(t[1]))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}return n.tokenExpired=n.exp*1e3,delete n.exp,delete n.iat,n}function vd(e){e.uniIDHasRole=function(t){const{role:n}=Yn();return n.indexOf(t)>-1},e.uniIDHasPermission=function(t){const{permission:n}=Yn();return this.uniIDHasRole("admin")||n.indexOf(t)>-1},e.uniIDTokenValid=function(){const{tokenExpired:t}=Yn();return t>Date.now()}}function Sd(e){const t=e.config;t.errorHandler=Zu(e,md),yd(t.optionMergeStrategies);const n=t.globalProperties;vd(n),n.$set=hd,n.$applyOptions=pd,n.$callMethod=gd,$.invokeCreateVueAppHook(e)}const Mt=Object.create(null);function Id(e){const{uid:t,__counter:n}=Fn(),o=(Mt[t]||(Mt[t]=[])).push(Nf(e))-1;return t+","+o+","+n}function Hc(e){delete Mt[e]}function xs(e){if(!e)return;const[t,n]=e.split(",");if(Mt[t])return Mt[t][parseInt(n)]}var xd={install(e){Sd(e),e.config.globalProperties.pruneComponentPropsCache=Hc;const t=e.mount;e.mount=function(o){const s=t.call(e,o),r=Pd();return r?r(s):typeof createMiniProgramApp<"u"&&createMiniProgramApp(s),s}}};function Pd(){const e="createApp";if(typeof global<"u"&&typeof global[e]<"u")return global[e];if(typeof my<"u")return my[e]}function Ad(e){return H(e)?e:Td(_i(e))}function Td(e){let t="";if(!e||H(e))return t;for(const n in e)t+=`${n.startsWith("--")?n:Je(n)}:${e[n]};`;return t}function Od(e,t){const n=Fn(),o=n.ctx,s=typeof t<"u"&&(o.$mpPlatform==="mp-weixin"||o.$mpPlatform==="mp-qq"||o.$mpPlatform==="mp-xhs")&&(H(t)||typeof t=="number")?"_"+t:"",r="e"+n.$ei+++s,i=o.$scope;if(!e)return delete i[r],r;const c=i[r];return c?c.value=e:i[r]=Ed(e,n),r}function Ed(e,t){const n=o=>{kd(o);let s=[o];t&&t.ctx.$getTriggerEventDetail&&typeof o.detail=="number"&&(o.detail=t.ctx.$getTriggerEventDetail(o.detail)),o.detail&&o.detail.__args__&&(s=o.detail.__args__);const r=n.value,i=()=>De($d(o,r),t,5,s),c=o.target,u=c&&c.dataset?String(c.dataset.eventsync)==="true":!1;if(Cd.includes(o.type)&&!u)setTimeout(i);else{const a=i();return o.type==="input"&&(C(a)||qt(a))?void 0:a}};return n.value=e,n}const Cd=["tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend","touchforcechange"];function kd(e,t){e.type&&e.target&&(e.preventDefault=z,e.stopPropagation=z,e.stopImmediatePropagation=z,k(e,"detail")||(e.detail={}),k(e,"markerId")&&(e.detail=typeof e.detail=="object"?e.detail:{},e.detail.markerId=e.markerId),J(e.detail)&&k(e.detail,"checked")&&!k(e.detail,"value")&&(e.detail.value=e.detail.checked),J(e.detail)&&(e.target=j({},e.target,e.detail)))}function $d(e,t){if(C(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n&&n.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o(s))}else return t}function Ld(e,t){let n;if(C(e)||H(e)){n=new Array(e.length);for(let o=0,s=e.length;o<s;o++)n[o]=t(e[o],o,o)}else if(typeof e=="number"){if(!Number.isInteger(e))return Is(`The v-for range expect an integer value but got ${e}.`),[];n=new Array(e);for(let o=0;o<e;o++)n[o]=t(o+1,o,o)}else if(U(e))if(e[Symbol.iterator])n=Array.from(e,(o,s)=>t(o,s,s));else{const o=Object.keys(e);n=new Array(o.length);for(let s=0,r=o.length;s<r;s++){const i=o[s];n[s]=t(e[i],i,s)}}else n=[];return n}function Rd(e,t,n={}){const{$templateRefs:o}=Fn();o.push({i:t,r:e,k:n.k,f:n.f})}const Nd=(e,t)=>Od(e,t),Md=(e,t)=>Ld(e,t),Dd=e=>Ad(e),Ud=(e,...t)=>j(e,...t),Hd=e=>yi(e),Fd=e=>wu(e),qd=e=>Id(e),Bd=(e,t,n)=>Rd(e,t,n);function Kd(e,t=null){return e&&(e.mpType="app"),fd(e,t).use(xd)}const Vd=Kd;function Wd(){var e;let t="";{const n=((e=wx.getAppBaseInfo)===null||e===void 0?void 0:e.call(wx))||wx.getSystemInfoSync(),o=n&&n.language?n.language:_e;t=hn(o)||_e}return t}function zd(e,t){console.warn(`${e}: ${t}`)}function dr(e,t,n,o){o||(o=zd);for(const s in n){const r=Gd(s,t[s],n[s],!k(t,s));H(r)&&o(e,r)}}function Jd(e,t,n,o){if(!n)return;if(!C(n))return dr(e,t[0]||Object.create(null),n,o);const s=n.length,r=t.length;for(let i=0;i<s;i++){const c=n[i],u=Object.create(null);r>i&&(u[c.name]=t[i]),dr(e,u,{[c.name]:c},o)}}function Gd(e,t,n,o){J(n)||(n={type:n});const{type:s,required:r,validator:i}=n;if(r&&o)return'Missing required args: "'+e+'"';if(!(t==null&&!r)){if(s!=null){let c=!1;const u=C(s)?s:[s],a=[];for(let f=0;f<u.length&&!c;f++){const{valid:l,expectedType:h}=Xd(t,u[f]);a.push(h||""),c=l}if(!c)return Qd(e,t,a)}if(i)return i(t)}}const Yd=vt("String,Number,Boolean,Function,Symbol");function Xd(e,t){let n;const o=Zd(t);if(Yd(o)){const s=typeof e;n=s===o.toLowerCase(),!n&&s==="object"&&(n=e instanceof t)}else o==="Object"?n=U(e):o==="Array"?n=C(e):n=e instanceof t;return{valid:n,expectedType:o}}function Qd(e,t,n){let o=`Invalid args: type check failed for args "${e}". Expected ${n.map(Ge).join(", ")}`;const s=n[0],r=kn(t),i=pr(t,s),c=pr(t,r);return n.length===1&&hr(s)&&!ep(s,r)&&(o+=` with value ${i}`),o+=`, got ${r} `,hr(r)&&(o+=`with value ${c}.`),o}function Zd(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function pr(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function hr(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function ep(...e){return e.some(t=>t.toLowerCase()==="boolean")}function tp(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let np=1;const Mo={};function op(e,t,n,o=!1){return Mo[e]={name:t,keepAlive:o,callback:n},e}function Fc(e,t,n){if(typeof e=="number"){const o=Mo[e];if(o)return o.keepAlive||delete Mo[e],o.callback(t,n)}return t}const sp="success",rp="fail",ip="complete";function cp(e){const t={};for(const n in e){const o=e[n];T(o)&&(t[n]=tp(o),delete e[n])}return t}function ap(e,t){return!e||e.indexOf(":fail")===-1?t+":ok":t+e.substring(e.indexOf(":fail"))}function up(e,t={},{beforeAll:n,beforeSuccess:o}={}){J(t)||(t={});const{success:s,fail:r,complete:i}=cp(t),c=T(s),u=T(r),a=T(i),f=np++;return op(f,e,l=>{l=l||{},l.errMsg=ap(l.errMsg,e),T(n)&&n(l),l.errMsg===e+":ok"?(T(o)&&o(l,t),c&&s(l)):u&&r(l),a&&i(l)}),f}const lp="success",fp="fail",dp="complete",ht={},gt={};function pp(e,t){return function(n){return e(n,t)||n}}function qc(e,t,n){let o=!1;for(let s=0;s<e.length;s++){const r=e[s];if(o)o=Promise.resolve(pp(r,n));else{const i=r(t,n);if(qt(i)&&(o=Promise.resolve(i)),i===!1)return{then(){},catch(){}}}}return o||{then(s){return s(t)},catch(){}}}function gr(e,t={}){return[lp,fp,dp].forEach(n=>{const o=e[n];if(!C(o))return;const s=t[n];t[n]=function(i){qc(o,i,t).then(c=>T(s)&&s(c)||c)}}),t}function In(e,t){const n=[];C(ht.returnValue)&&n.push(...ht.returnValue);const o=gt[e];return o&&C(o.returnValue)&&n.push(...o.returnValue),n.forEach(s=>{t=s(t)||t}),t}function mr(e){const t=Object.create(null);Object.keys(ht).forEach(o=>{o!=="returnValue"&&(t[o]=ht[o].slice())});const n=gt[e];return n&&Object.keys(n).forEach(o=>{o!=="returnValue"&&(t[o]=(t[o]||[]).concat(n[o]))}),t}function xn(e,t,n,o){const s=mr(e);return s&&Object.keys(s).length?C(s.invoke)?qc(s.invoke,n).then(i=>t(gr(mr(e),i),...o)):t(gr(s,n),...o):t(n,...o)}function hp(e){return!!(J(e)&&[sp,rp,ip].find(t=>T(e[t])))}function gp(e,t){return(n={},...o)=>hp(n)?In(e,xn(e,t,n,o)):In(e,new Promise((s,r)=>{xn(e,t,j(n,{success:s,fail:r}),o)}))}function mp(e,t){e[0]}function _p(e,t,n){const o={errMsg:t+":ok"};return Fc(e,j(n||{},o))}function _r(e,t,n,o={}){const s=t+":fail";let r="";n?n.indexOf(s)===0?r=n:r=s+" "+n:r=s,delete o.errCode;let i=j({errMsg:r},o);return Fc(e,i)}function Bc(e,t,n,o){Jd(e,t,n);const s=mp(t);if(s)return s}function yp(e){return!e||H(e)?e:e.stack?((typeof globalThis>"u"||!globalThis.harmonyChannel)&&console.error(e.message+`
| `+e.stack),e.message):e}function wp(e,t,n,o){return s=>{const r=up(e,s,o),i=Bc(e,[s],n);return i?_r(r,e,i):t(s,{resolve:c=>_p(r,e,c),reject:(c,u)=>_r(r,e,yp(c),u)})}}function bp(e,t,n,o){return(...s)=>{const r=Bc(e,s,n);if(r)throw new Error(r);return t.apply(null,s)}}function vp(e,t,n,o){return wp(e,t,n,o)}function ot(e,t,n,o){return bp(e,t,n)}function Sp(e,t,n,o){return gp(e,vp(e,t,n,o))}const Ip="upx2px",xp=[{name:"upx",type:[Number,String],required:!0}],Pp=1e-4,Ap=750;let Kc=!1,Do=0,Vc=0;function Tp(){var e,t;let n,o,s;{const r=((e=wx.getWindowInfo)===null||e===void 0?void 0:e.call(wx))||wx.getSystemInfoSync(),i=((t=wx.getDeviceInfo)===null||t===void 0?void 0:t.call(wx))||wx.getSystemInfoSync();n=r.windowWidth,o=r.pixelRatio,s=i.platform}Do=n,Vc=o,Kc=s==="ios"}const yr=ot(Ip,(e,t)=>{if(Do===0&&Tp(),e=Number(e),e===0)return 0;let n=t||Do,o=e/Ap*n;return o<0&&(o=-o),o=Math.floor(o+Pp),o===0&&(Vc===1||!Kc?o=1:o=.5),e<0?-o:o},xp);function Op(e,t,...n){t&&n.push(t),console[e].apply(console,n)}const Ep="addInterceptor",Cp="removeInterceptor",Wc=[{name:"method",type:[String,Object],required:!0}],kp=Wc;function wr(e,t){Object.keys(t).forEach(n=>{T(t[n])&&(e[n]=$p(e[n],t[n]))})}function br(e,t){!e||!t||Object.keys(t).forEach(n=>{const o=e[n],s=t[n];C(o)&&T(s)&&Cn(o,s)})}function $p(e,t){const n=t?e?e.concat(t):C(t)?t:[t]:e;return n&&Lp(n)}function Lp(e){const t=[];for(let n=0;n<e.length;n++)t.indexOf(e[n])===-1&&t.push(e[n]);return t}const Rp=ot(Ep,(e,t)=>{H(e)&&J(t)?wr(gt[e]||(gt[e]={}),t):J(e)&&wr(ht,e)},Wc),Np=ot(Cp,(e,t)=>{H(e)?J(t)?br(gt[e],t):delete gt[e]:J(e)&&br(ht,e)},kp),Mp={},Dp="$on",zc=[{name:"event",type:String,required:!0},{name:"callback",type:Function,required:!0}],jp="$once",Up=zc,Hp="$off",Fp=[{name:"event",type:[String,Array]},{name:"callback",type:[Function,Number]}],qp="$emit",Bp=[{name:"event",type:String,required:!0}];class Kp{constructor(){this.$emitter=new el}on(t,n){return this.$emitter.on(t,n)}once(t,n){return this.$emitter.once(t,n)}off(t,n){if(!t){this.$emitter.e={};return}this.$emitter.off(t,n)}emit(t,...n){this.$emitter.emit(t,...n)}}const mt=new Kp,Vp=ot(Dp,(e,t)=>(mt.on(e,t),()=>mt.off(e,t)),zc),Wp=ot(jp,(e,t)=>(mt.once(e,t),()=>mt.off(e,t)),Up),zp=ot(Hp,(e,t)=>{C(e)||(e=e?[e]:[]),e.forEach(n=>{mt.off(n,t)})},Fp),Jp=ot(qp,(e,...t)=>{mt.emit(e,...t)},Bp);let Ct,jo,Uo;function vr(e){try{return JSON.parse(e)}catch{}return e}function Gp(e){if(e.type==="enabled")Uo=!0;else if(e.type==="clientId")Ct=e.cid,jo=e.errMsg,Jc(Ct,e.errMsg);else if(e.type==="pushMsg"){const t={type:"receive",data:vr(e.message)};for(let n=0;n<$e.length;n++){const o=$e[n];if(o(t),t.stopped)break}}else e.type==="click"&&$e.forEach(t=>{t({type:"click",data:vr(e.message)})})}const Ho=[];function Jc(e,t){Ho.forEach(n=>{n(e,t)}),Ho.length=0}const Yp="getPushClientId",Xp=Sp(Yp,(e,{resolve:t,reject:n})=>{Promise.resolve().then(()=>{typeof Uo>"u"&&(Uo=!1,Ct="",jo="uniPush is not enabled"),Ho.push((o,s)=>{o?t({cid:o}):n(s)}),typeof Ct<"u"&&Jc(Ct,jo)})}),$e=[],Qp=e=>{$e.indexOf(e)===-1&&$e.push(e)},Zp=e=>{if(!e)$e.length=0;else{const t=$e.indexOf(e);t>-1&&$e.splice(t,1)}},eh=/^\$|__f__|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|rpx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/,th=/^create|Manager$/,nh=["createBLEConnection"],oh=["request","downloadFile","uploadFile","connectSocket"],sh=["createBLEConnection"],rh=/^on|^off/;function fn(e){return th.test(e)&&nh.indexOf(e)===-1}function Gc(e){return eh.test(e)&&sh.indexOf(e)===-1}function ih(e){return rh.test(e)&&e!=="onPush"}function Sr(e){return oh.indexOf(e)!==-1}function ch(e){return!(fn(e)||Gc(e)||ih(e))}Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then(n=>t.resolve(e&&e()).then(()=>n),n=>t.resolve(e&&e()).then(()=>{throw n}))});function Xn(e,t){return!ch(e)||!T(t)?t:function(o={},...s){return T(o.success)||T(o.fail)||T(o.complete)?In(e,xn(e,t,o,s)):In(e,new Promise((r,i)=>{xn(e,t,j({},o,{success:r,fail:i}),s)}))}}const ah=["success","fail","cancel","complete"];function uh(e){function t(s,r,i){return function(c){return r(o(s,c,i))}}function n(s,r,i={},c={},u=!1){if(J(r)){const a=u===!0?r:{};T(i)&&(i=i(r,a)||{});for(const f in r)if(k(i,f)){let l=i[f];T(l)&&(l=l(r[f],r,a)),l?H(l)?a[l]=r[f]:J(l)&&(a[l.name?l.name:f]=l.value):console.warn(`微信小程序 ${s} 暂不支持 ${f}`)}else if(ah.indexOf(f)!==-1){const l=r[f];T(l)&&(a[f]=t(s,l,c))}else!u&&!k(a,f)&&(a[f]=r[f]);return a}else T(r)&&(T(i)&&i(r,{}),r=t(s,r,c));return r}function o(s,r,i,c=!1){return T(e.returnValue)&&(r=e.returnValue(s,r)),n(s,r,i,{},c||!1)}return function(r,i){const c=k(e,r);if(!c&&typeof wx[r]!="function")return i;const u=c||T(e.returnValue)||fn(r)||Sr(r),a=c||T(i);if(!c&&!i)return function(){console.error(`微信小程序 暂不支持${r}`)};if(!u||!a)return i;const f=e[r];return function(l,h){let g=f||{};T(f)&&(g=f(l)),l=n(r,l,g.args,g.returnValue);const _=[l];typeof h<"u"&&_.push(h);const p=wx[g.name||r].apply(wx,_);return(fn(r)||Sr(r))&&p&&!p.__v_skip&&(p.__v_skip=!0),Gc(r)?o(r,p,g.returnValue,fn(r)):p}}}const Pn=()=>{const e=T(getApp)&&getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:Wd()},lh=e=>{const t=T(getApp)&&getApp();return t&&t.$vm.$locale!==e?(t.$vm.$locale=e,Fo.forEach(o=>o({locale:e})),!0):!1},Fo=[],fh=e=>{Fo.indexOf(e)===-1&&Fo.push(e)};typeof global<"u"&&(global.getLocale=Pn);const Ir="__DC_STAT_UUID";let it;function Yc(e=wx){return function(n,o){it=it||e.getStorageSync(Ir),it||(it=Date.now()+""+Math.floor(Math.random()*1e7),wx.setStorage({key:Ir,data:it})),o.deviceId=it}}function Xc(e,t){if(e.safeArea){const n=e.safeArea;t.safeAreaInsets={top:n.top,left:n.left,right:e.windowWidth-n.right,bottom:e.screenHeight-n.bottom}}}function Qc(e,t){let n="",o="";switch(n=e.split(" ")[0]||t,o=e.split(" ")[1]||"",n=n.toLocaleLowerCase(),n){case"harmony":case"ohos":case"openharmony":n="harmonyos";break;case"iphone os":n="ios";break;case"mac":case"darwin":n="macos";break;case"windows_nt":n="windows";break}return{osName:n,osVersion:o}}function dh(e,t){const{brand:n="",model:o="",system:s="",language:r="",theme:i,version:c,platform:u,fontSizeSetting:a,SDKVersion:f,pixelRatio:l,deviceOrientation:h}=e,{osName:g,osVersion:_}=Qc(s,u);let p=c,d=Zc(e,o),m=ea(n),w=na(e),y=h,b=l,P=f;const v=(r||"").replace(/_/g,"-"),L={appId:"",appName:"nongtou-uni",appVersion:"1.0.0",appVersionCode:"100",appLanguage:ta(v),uniCompileVersion:"4.64",uniCompilerVersion:"4.64",uniRuntimeVersion:"4.64",uniPlatform:"mp-weixin",deviceBrand:m,deviceModel:o,deviceType:d,devicePixelRatio:b,deviceOrientation:y,osName:g,osVersion:_,hostTheme:i,hostVersion:p,hostLanguage:v,hostName:w,hostSDKVersion:P,hostFontSizeSetting:a,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0,isUniAppX:!1};j(t,L)}function Zc(e,t){let n=e.deviceType||"phone";{const o={ipad:"pad",windows:"pc",mac:"pc"},s=Object.keys(o),r=t.toLocaleLowerCase();for(let i=0;i<s.length;i++){const c=s[i];if(r.indexOf(c)!==-1){n=o[c];break}}}return n}function ea(e){let t=e;return t&&(t=t.toLocaleLowerCase()),t}function ta(e){return Pn?Pn():e}function na(e){let n=e.hostName||"WeChat";return e.environment?n=e.environment:e.host&&e.host.env&&(n=e.host.env),n}const oa={returnValue:(e,t)=>{Xc(e,t),Yc()(e,t),dh(e,t)}},ph=oa,hh={},gh={args(e,t){let n=parseInt(e.current);if(isNaN(n))return;const o=e.urls;if(!C(o))return;const s=o.length;if(s)return n<0?n=0:n>=s&&(n=s-1),n>0?(t.current=o[n],t.urls=o.filter((r,i)=>i<n?r!==o[n]:!0)):t.current=o[0],{indicator:!1,loop:!1}}},mh={args(e,t){t.alertText=e.title}},_h={returnValue:(e,t)=>{const{brand:n,model:o,system:s="",platform:r=""}=e;let i=Zc(e,o),c=ea(n);Yc()(e,t);const{osName:u,osVersion:a}=Qc(s,r);t=Ui(j(t,{deviceType:i,deviceBrand:c,deviceModel:o,osName:u,osVersion:a}))}},yh={returnValue:(e,t)=>{const{version:n,language:o,SDKVersion:s,theme:r}=e;let i=na(e),c=(o||"").replace(/_/g,"-");const u={hostVersion:n,hostLanguage:c,hostName:i,hostSDKVersion:s,hostTheme:r,appId:"",appName:"nongtou-uni",appVersion:"1.0.0",appVersionCode:"100",appLanguage:ta(c),isUniAppX:!1,uniPlatform:"mp-weixin",uniCompileVersion:"4.64",uniCompilerVersion:"4.64",uniRuntimeVersion:"4.64"};j(t,u)}},wh={returnValue:(e,t)=>{Xc(e,t),t=Ui(j(t,{windowTop:0,windowBottom:0}))}},bh={returnValue:function(e,t){const{locationReducedAccuracy:n}=e;t.locationAccuracy="unsupported",n===!0?t.locationAccuracy="reduced":n===!1&&(t.locationAccuracy="full")}},vh={args(e){const t=getApp({allowDefault:!0})||{};t.$vm?nt(Ye,e,t.$vm.$):(wx.$onErrorHandlers||(wx.$onErrorHandlers=[]),wx.$onErrorHandlers.push(e))}},Sh={args(e){const t=getApp({allowDefault:!0})||{};if(t.$vm){if(e.__weh){const n=t.$vm.$[Ye];if(n){const o=n.indexOf(e.__weh);o>-1&&n.splice(o,1)}}}else{if(!wx.$onErrorHandlers)return;const n=wx.$onErrorHandlers.findIndex(o=>o===e);n!==-1&&wx.$onErrorHandlers.splice(n,1)}}},sa={args(){if(wx.__uni_console__){if(wx.__uni_console_warned__)return;wx.__uni_console_warned__=!0,console.warn("开发模式下小程序日志回显会使用 socket 连接,为了避免冲突,建议使用 SocketTask 的方式去管理 WebSocket 或手动关闭日志回显功能。[详情](https://uniapp.dcloud.net.cn/tutorial/run/mp-log.html)")}}},Ih=sa,xr={$on:Vp,$off:zp,$once:Wp,$emit:Jp,upx2px:yr,rpx2px:yr,interceptors:Mp,addInterceptor:Rp,removeInterceptor:Np,onCreateVueApp:Xu,invokeCreateVueAppHook:Qu,getLocale:Pn,setLocale:lh,onLocaleChange:fh,getPushClientId:Xp,onPushMessage:Qp,offPushMessage:Zp,invokePushCallback:Gp,__f__:Op};function xh(e,t,n=wx){const o=uh(t),s={get(r,i){return k(r,i)?r[i]:k(e,i)?Xn(i,e[i]):k(xr,i)?Xn(i,xr[i]):Xn(i,o(i,n[i]))}};return new Proxy({},s)}function Ph(e){return function({service:n,success:o,fail:s,complete:r}){let i;e[n]?(i={errMsg:"getProvider:ok",service:n,provider:e[n]},T(o)&&o(i)):(i={errMsg:"getProvider:fail:服务["+n+"]不存在"},T(s)&&s(i)),T(r)&&r(i)}}const Ah=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],Th=["lanDebug","router","worklet"],Pr=wx.getLaunchOptionsSync?wx.getLaunchOptionsSync():null;function Oh(e){return Pr&&Pr.scene===1154&&Th.includes(e)?!1:Ah.indexOf(e)>-1||typeof wx[e]=="function"}function ra(){const e={};for(const t in wx)Oh(t)&&(e[t]=wx[t]);return typeof globalThis<"u"&&typeof requireMiniProgram>"u"&&(globalThis.wx=e),e}const Eh=["__route__","__wxExparserNodeId__","__wxWebviewId__"],Ch=Ph({oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]});function kh(e){const t=Object.create(null);return Eh.forEach(n=>{t[n]=e[n]}),t}function $h(){const e=ee.createSelectorQuery(),t=e.in;return e.in=function(o){return o.$scope?t.call(this,o.$scope):t.call(this,kh(o))},e}const ee=ra();ee.canIUse("getAppBaseInfo")||(ee.getAppBaseInfo=ee.getSystemInfoSync);ee.canIUse("getWindowInfo")||(ee.getWindowInfo=ee.getSystemInfoSync);ee.canIUse("getDeviceInfo")||(ee.getDeviceInfo=ee.getSystemInfoSync);let An=ee.getAppBaseInfo&&ee.getAppBaseInfo();An||(An=ee.getSystemInfoSync());const Ar=An?An.host:null,Lh=Ar&&Ar.env==="SAAASDK"?ee.miniapp.shareVideoMessage:ee.shareVideoMessage;var Rh=Object.freeze({__proto__:null,createSelectorQuery:$h,getProvider:Ch,shareVideoMessage:Lh});const Nh={args(e,t){e.compressedHeight&&!t.compressHeight&&(t.compressHeight=e.compressedHeight),e.compressedWidth&&!t.compressWidth&&(t.compressWidth=e.compressedWidth)}};var Mh=Object.freeze({__proto__:null,compressImage:Nh,getAppAuthorizeSetting:bh,getAppBaseInfo:yh,getDeviceInfo:_h,getSystemInfo:oa,getSystemInfoSync:ph,getWindowInfo:wh,offError:Sh,onError:vh,onSocketMessage:Ih,onSocketOpen:sa,previewImage:gh,redirectTo:hh,showActionSheet:mh});const dt=ra();var $=xh(Rh,Mh,dt);function Dh(e,t,n){return e==""||t==""||n==""?Promise.resolve(null):e.split(",").reduce((o,s)=>o.then(r=>r!=null?Promise.resolve(r):Uh(s,t,n)),Promise.resolve(null))}const jh=500;function Uh(e,t,n){return new Promise((o,s)=>{const r=$.connectSocket({url:`ws://${e}:${t}/${n}`,multiple:!0,fail(){o(null)}}),i=setTimeout(()=>{r.close({code:1006,reason:"connect timeout"}),o(null)},jh);r.onOpen(c=>{clearTimeout(i),o(r)}),r.onClose(c=>{clearTimeout(i),o(null)}),r.onError(c=>{clearTimeout(i),o(null)})})}const qo=["log","warn","error","info","debug"],Ce=qo.reduce((e,t)=>(e[t]=console[t].bind(console),e),{});let Bo=null;const dn=new Set,ia={};function Tn(e){if(Bo==null){e.forEach(n=>{dn.add(n)});return}const t=e.map(n=>{if(typeof n=="string")return n;const o=n&&"promise"in n&&"reason"in n,s=o?"UnhandledPromiseRejection: ":"";if(o&&(n=n.reason),n instanceof Error&&n.stack)return n.message&&!n.stack.includes(n.message)?`${s}${n.message}
| ${n.stack}`:`${s}${n.stack}`;if(typeof n=="object"&&n!==null)try{return s+JSON.stringify(n)}catch(r){return s+String(r)}return s+String(n)}).filter(Boolean);t.length>0&&Bo(JSON.stringify(Object.assign({type:"error",data:t},ia)))}function Hh(e,t={}){if(Bo=e,Object.assign(ia,t),e!=null&&dn.size>0){const n=Array.from(dn);dn.clear(),Tn(n)}}function Tr(){function e(t){try{if(typeof PromiseRejectionEvent<"u"&&t instanceof PromiseRejectionEvent&&t.reason instanceof Error&&t.reason.message&&t.reason.message.includes("Cannot create property 'errMsg' on string 'taskId"))return;Ce.error(t),Tn([t])}catch(n){Ce.error(n)}}return typeof $.onError=="function"&&$.onError(e),typeof $.onUnhandledRejection=="function"&&$.onUnhandledRejection(e),function(){typeof $.offError=="function"&&$.offError(e),typeof $.offUnhandledRejection=="function"&&$.offUnhandledRejection(e)}}function Or(e,t){try{return{type:e,args:Fh(t)}}catch{}return{type:e,args:[]}}function Fh(e){return e.map(t=>_t(t))}function _t(e,t=0){if(t>=7)return{type:"object",value:"[Maximum depth reached]"};switch(typeof e){case"string":return zh(e);case"number":return Vh(e);case"boolean":return Kh(e);case"object":try{return Gh(e,t)}catch{return{type:"object",value:{properties:[]}}}case"undefined":return Bh();case"function":return qh(e);case"symbol":return Jh(e);case"bigint":return Wh(e)}}function qh(e){return{type:"function",value:`function ${e.name}() {}`}}function Bh(){return{type:"undefined"}}function Kh(e){return{type:"boolean",value:String(e)}}function Vh(e){return{type:"number",value:String(e)}}function Wh(e){return{type:"bigint",value:String(e)}}function zh(e){return{type:"string",value:e}}function Jh(e){return{type:"symbol",value:e.description}}function Gh(e,t){if(e===null)return{type:"null"};{if(Xh(e))return Qh(e,t);if(ca(e))return Zh(e,t);if(eg(e))return tg(e,t);if(ng(e))return og(e,t)}if(Array.isArray(e))return{type:"object",subType:"array",value:{properties:e.map((s,r)=>sg(s,r,t+1))}};if(e instanceof Set)return{type:"object",subType:"set",className:"Set",description:`Set(${e.size})`,value:{entries:Array.from(e).map(s=>rg(s,t+1))}};if(e instanceof Map)return{type:"object",subType:"map",className:"Map",description:`Map(${e.size})`,value:{entries:Array.from(e.entries()).map(s=>ig(s,t+1))}};if(e instanceof Promise)return{type:"object",subType:"promise",value:{properties:[]}};if(e instanceof RegExp)return{type:"object",subType:"regexp",value:String(e),className:"Regexp"};if(e instanceof Date)return{type:"object",subType:"date",value:String(e),className:"Date"};if(e instanceof Error)return{type:"object",subType:"error",value:e.message||String(e),className:e.name||"Error"};let n;{const s=e.constructor;s&&s.get$UTSMetadata$&&(n=s.get$UTSMetadata$().name)}let o=Object.entries(e);return Yh(e)&&(o=o.filter(([s])=>s!=="modifier"&&s!=="nodeContent")),{type:"object",className:n,value:{properties:o.map(s=>Wt(s[0],s[1],t+1))}}}function Yh(e){return e.modifier&&e.modifier._attribute&&e.nodeContent}function Xh(e){return e.$&&ca(e.$)}function ca(e){return e.type&&e.uid!=null&&e.appContext}function Qh(e,t){return{type:"object",className:"ComponentPublicInstance",value:{properties:Object.entries(e.$.type).map(([n,o])=>Wt(n,o,t+1))}}}function Zh(e,t){return{type:"object",className:"ComponentInternalInstance",value:{properties:Object.entries(e.type).map(([n,o])=>Wt(n,o,t+1))}}}function eg(e){return e.style&&e.tagName!=null&&e.nodeName!=null}function tg(e,t){return{type:"object",value:{properties:Object.entries(e).filter(([n])=>["id","tagName","nodeName","dataset","offsetTop","offsetLeft","style"].includes(n)).map(([n,o])=>Wt(n,o,t+1))}}}function ng(e){return typeof e.getPropertyValue=="function"&&typeof e.setProperty=="function"&&e.$styles}function og(e,t){return{type:"object",value:{properties:Object.entries(e.$styles).map(([n,o])=>Wt(n,o,t+1))}}}function Wt(e,t,n){const o=_t(t,n);return o.name=e,o}function sg(e,t,n){const o=_t(e,n);return o.name=`${t}`,o}function rg(e,t){return{value:_t(e,t)}}function ig(e,t){return{key:_t(e[0],t),value:_t(e[1],t)}}let Ko=null;const pn=[],aa={},Er="---BEGIN:EXCEPTION---",cg="---END:EXCEPTION---";function Vo(e){if(Ko==null){pn.push(...e);return}Ko(JSON.stringify(Object.assign({type:"console",data:e},aa)))}function ag(e,t={}){if(Ko=e,Object.assign(aa,t),e!=null&&pn.length>0){const n=pn.slice();pn.length=0,Vo(n)}}const ug=/^\s*at\s+[\w/./-]+:\d+$/;function Cr(){function e(t){return function(...n){const o=[...n];if(o.length){const s=o[o.length-1];typeof s=="string"&&ug.test(s)&&o.pop()}if(Ce[t](...o),t==="error"&&n.length===1){const s=n[0];if(typeof s=="string"&&s.startsWith(Er)){const r=Er.length,i=s.length-cg.length;Tn([s.slice(r,i)]);return}else if(s instanceof Error){Tn([s]);return}}Vo([Or(t,n)])}}if(lg())return qo.forEach(t=>{console[t]=e(t)}),function(){qo.forEach(n=>{console[n]=Ce[n]})};if(typeof $<"u"&&$.__f__){const t=$.__f__;if(t)return $.__f__=function(...n){const[o,s,...r]=n;t(o,"",...r),Vo([Or(o,[...r,s])])},function(){$.__f__=t}}return function(){}}function lg(){const e=console.log,t=Symbol();try{console.log=t}catch{return!1}const n=console.log===t;return console.log=e,n}function fg(){const e="172.18.208.1,172.28.80.1,192.168.0.2,127.0.0.1",t="8090",n="mp-weixin_Jvsdmo",o=typeof swan<"u";let s=o?()=>{}:Tr(),r=o?()=>{}:Cr();return Promise.resolve().then(()=>(o&&(s=Tr(),r=Cr()),Dh(e,t,n).then(i=>i?(dg(),i.onClose(()=>{Ce.error(on("开发模式下日志通道 socket 连接关闭,请在 HBuilderX 中重新运行。")),s(),r()}),ag(c=>{i.send({data:c})}),Hh(c=>{i.send({data:c})}),!0):(s(),r(),Ce.error(on("开发模式下日志通道建立 socket 连接失败。")),Ce.error(on("小程序平台,请勾选不校验合法域名配置。")),Ce.error(on("如果是运行到真机,请确认手机与电脑处于同一网络。")),!1))))}const kr="";function on(e){return`${kr}${e}${kr}`}function dg(){typeof dt<"u"?dt.__uni_console__=!0:typeof my<"u"?my.__uni_console__=!0:typeof tt<"u"?tt.__uni_console__=!0:typeof swan<"u"?swan.__uni_console__=!0:typeof qq<"u"?qq.__uni_console__=!0:typeof ks<"u"?ks.__uni_console__=!0:typeof jd<"u"?jd.__uni_console__=!0:typeof xhs<"u"?xhs.__uni_console__=!0:typeof has<"u"?has.__uni_console__=!0:typeof qa<"u"&&(qa.__uni_console__=!0)}fg();const pg=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};function hg(e,t){if(!e)return;const n=e.split(","),o=n.length;o===1?t._$vueId=n[0]:o===2&&(t._$vueId=n[0],t._$vuePid=n[1])}const gg=["externalClasses"];function mg(e,t){gg.forEach(n=>{k(t,n)&&(e[n]=t[n])})}const _g=/_(.*)_worklet_factory_/;function yg(e,t){t&&Object.keys(t).forEach(n=>{const o=n.match(_g);if(o){const s=o[1];e[n]=t[n],e[s]=t[s]}})}function wg(e,t){C(t)&&t.forEach(n=>{e[n]=function(o){return this.$vm[n](o)}})}function bg(e,t,n){e.selectAllComponents(t).forEach(s=>{const r=s.properties.uR;n[r]=s.$vm||s})}function vg(e,t){Object.defineProperty(e,"refs",{get(){const n={};return bg(t,".r",n),t.selectAllComponents(".r-i-f").forEach(s=>{const r=s.properties.uR;r&&(n[r]||(n[r]=[]),n[r].push(s.$vm||s))}),n}})}function ua(e,t){const n=e.$children;for(let s=n.length-1;s>=0;s--){const r=n[s];if(r.$scope._$vueId===t)return r}let o;for(let s=n.length-1;s>=0;s--)if(o=ua(n[s],t),o)return o}function Sg(){var e;let t="";{const n=((e=wx.getAppBaseInfo)===null||e===void 0?void 0:e.call(wx))||wx.getSystemInfoSync(),o=n&&n.language?n.language:_e;t=hn(o)||_e}return t}const Ig=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function xg(e,t){return function(o,...s){const r=t.$scope;if(r&&o){const i={__args__:s};r.triggerEvent(o,i)}return e.apply(this,[o,...s])}}function la(e,t){const n=e.ctx;n.mpType=t.mpType,n.$mpType=t.mpType,n.$mpPlatform="mp-weixin",n.$scope=t.mpInstance,Object.defineProperties(n,{[ho]:{get(){const o=this.$scope.data[ho];return o===void 0?"":o}}}),n.$mp={},n._self={},e.slots={},C(t.slots)&&t.slots.length&&(t.slots.forEach(o=>{e.slots[o]=!0}),e.slots[Du]&&(e.slots.default=!0)),n.getOpenerEventChannel=function(){return t.mpInstance.getOpenerEventChannel()},n.$hasHook=Tg,n.$callHook=fa,e.emit=xg(e.emit,n)}function Pg(e,t){la(e,t);const n=e.ctx;Ig.forEach(o=>{n[o]=function(...s){const r=n.$scope;if(r&&r[o])return r[o].apply(r,s)}})}function Ag(e,t,n){const o=e.ctx;n.forEach(s=>{k(t,s)&&(e[s]=o[s]=t[s])})}function Tg(e){const t=this.$[e];return!!(t&&t.length)}function fa(e,t){e==="mounted"&&(fa.call(this,"bm"),this.$.isMounted=!0,e="m");const n=this.$[e];return n&&Ku(n,t)}const Og=[Bt,Ln,Rn,ns,Ai,os,ss,rs,is];function Wo(e,t=new Set){if(e){Object.keys(e).forEach(n=>{Fi(n,e[n])&&t.add(n)});{const{extends:n,mixins:o}=e;o&&o.forEach(s=>Wo(s,t)),n&&Wo(n,t)}}return t}function Ps(e,t,n){n.indexOf(t)===-1&&!k(e,t)&&(e[t]=function(o){return this.$vm&&this.$vm.$callHook(t,o)})}const da=[ts];function As(e,t,n=da){t.forEach(o=>Ps(e,o,n))}function pa(e,t,n=da){Wo(t).forEach(o=>Ps(e,o,n))}function Eg(e,t){if(!t)return;Object.keys(go).forEach(o=>{t&go[o]&&Ps(e,o,[])})}const Cg=Di(()=>{const e=[],t=T(getApp)&&getApp({allowDefault:!0});if(t&&t.$vm&&t.$vm.$){const n=t.$vm.$.appContext.mixins;if(C(n)){const o=Object.keys(go);n.forEach(s=>{o.forEach(r=>{k(s,r)&&!e.includes(r)&&e.push(r)})})}}return e});function kg(e){As(e,Cg())}const $g=[Ln,Rn,Ye,vi,Si,Ii];function Ts(e,t){const n=e.$,o={globalData:e.$options&&e.$options.globalData||{},$vm:e,onLaunch(i){this.$vm=e;const c=n.ctx;this.$vm&&c.$scope&&c.$callHook||(la(n,{mpType:"app",mpInstance:this,slots:[]}),c.globalData=this.globalData,e.$callHook(bi,i))}},s=wx.$onErrorHandlers;s&&(s.forEach(i=>{nt(Ye,i,n)}),s.length=0),Ng(e);const r=e.$.type;As(o,$g),pa(o,r);{const i=r.methods;i&&j(o,i)}return o}function Lg(e){return function(n){return App(Ts(n))}}function Rg(e){return function(n){const o=Ts(n),s=T(getApp)&&getApp({allowDefault:!0});if(!s)return;n.$.ctx.$scope=s;const r=s.globalData;r&&Object.keys(o.globalData).forEach(i=>{k(r,i)||(r[i]=o.globalData[i])}),Object.keys(o).forEach(i=>{k(s,i)||(s[i]=o[i])}),ha(o,n)}}function ha(e,t){if(T(e.onLaunch)){const n=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.onLaunch(n)}T(e.onShow)&&wx.onAppShow&&wx.onAppShow(n=>{t.$callHook("onShow",n)}),T(e.onHide)&&wx.onAppHide&&wx.onAppHide(n=>{t.$callHook("onHide",n)})}function Ng(e){const t=cc(Sg());Object.defineProperty(e,"$locale",{get(){return t.value},set(n){t.value=n}})}const ga=["eO","uR","uRIF","uI","uT","uP","uS"];function Mg(e,t=!1){const n={};if(!t){let o=function(s){const r=Object.create(null);s&&s.forEach(i=>{r[i]=!0}),this.setData({$slots:r})};ga.forEach(s=>{n[s]={type:null,value:""}}),n.uS={type:null,value:[]},n.uS.observer=o}return e.behaviors&&e.behaviors.includes("wx://form-field")&&((!e.properties||!e.properties.name)&&(n.name={type:null,value:""}),(!e.properties||!e.properties.value)&&(n.value={type:null,value:""})),n}function Dg(e){const t={};return e&&e.virtualHost&&(t[Uu]={type:null,value:""},t[Hu]={type:null,value:""},t[Fu]={type:null,value:""},t[ho]={type:null,value:""}),t}function ma(e){e.properties||(e.properties={}),j(e.properties,Mg(e),Dg(e.options))}const jg=[String,Number,Boolean,Object,Array,null];function Ug(e,t){return C(e)&&e.length===1?e[0]:e}function $r(e,t){const n=Ug(e);return jg.indexOf(n)!==-1?n:null}function Hg({properties:e},t){C(t)?t.forEach(n=>{e[n]={type:String,value:""}}):J(t)&&Object.keys(t).forEach(n=>{const o=t[n];if(J(o)){let s=o.default;T(s)&&(s=s());const r=o.type;o.type=$r(r),e[n]={type:o.type,value:s}}else e[n]={type:$r(o)}})}function Fg(e,t){return(t?qg(e):xs(e.uP))||{}}function qg(e){const t={};return J(e)&&Object.keys(e).forEach(n=>{ga.indexOf(n)===-1&&(t[n]=e[n])}),t}function Bg(e){const t=e.$options;C(t.behaviors)&&t.behaviors.includes("uni://form-field")&&e.$watch("modelValue",()=>{e.$scope&&e.$scope.setData({name:e.name,value:e.modelValue})},{immediate:!0})}function Kg(e){return{}}function _a(e){const t=function(){const o=this.properties.uP;o&&(this.$vm?Wg(o,this.$vm.$):this.properties.uT==="m"&&Vg(o,this))};e.observers||(e.observers={}),e.observers.uP=t}function Vg(e,t){const n=t.properties,o=xs(e)||{};ya(n,o,!1)&&t.setData(o)}function Wg(e,t){const n=R(t.props),o=xs(e)||{};ya(n,o)&&(If(t,o,n,!1),Ml(t.update)&&Dl(t.update),t.update())}function ya(e,t,n=!0){const o=Object.keys(t);if(n&&o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const r=o[s];if(t[r]!==e[r])return!0}return!1}function zg(e){const t=e.behaviors;let n=e.props;n||(e.props=n=[]);const o=[];return C(t)&&t.forEach(s=>{o.push(s.replace("uni://","wx://")),s==="uni://form-field"&&(C(n)?(n.push("name"),n.push("modelValue")):(n.name={type:String,default:""},n.modelValue={type:[String,Number,Boolean,Array,Object,Date],default:""}))}),o}function Jg(e,t){e.data=Kg(),e.behaviors=zg(t)}function wa(e,{parse:t,mocks:n,isPage:o,isPageInProject:s,initRelation:r,handleLink:i,initLifetimes:c}){e=e.default||e;const u={multipleSlots:!0,addGlobalClass:!0,pureDataPattern:/^uP$/};C(e.mixins)&&e.mixins.forEach(f=>{U(f.options)&&j(u,f.options)}),e.options&&j(u,e.options);const a={options:u,lifetimes:c({mocks:n,isPage:o,initRelation:r,vueOptions:e}),pageLifetimes:{show(){this.$vm&&this.$vm.$callHook("onPageShow")},hide(){this.$vm&&this.$vm.$callHook("onPageHide")},resize(f){this.$vm&&this.$vm.$callHook("onPageResize",f)}},methods:{__l:i}};return Jg(a,e),ma(a),_a(a),mg(a,e),wg(a.methods,e.wxsCallMethods),yg(a.methods,e.methods),t&&t(a,{handleLink:i}),a}function Gg(e){return function(n){return Component(wa(n,e))}}let Qn,Zn;function ba(){return getApp().$vm}function Yg(e,t){Qn||(Qn=ba().$createComponent);const n=Qn(e,t);return Vt(n.$)||n}function Xg(e){return Zn||(Zn=ba().$destroyComponent),Zn(e)}function Qg(e,t){const{parse:n,mocks:o,isPage:s,initRelation:r,handleLink:i,initLifetimes:c}=t,u=wa(e,{mocks:o,isPage:s,isPageInProject:!0,initRelation:r,handleLink:i,initLifetimes:c});Hg(u,(e.default||e).props);const a=u.methods;return a.onLoad=function(f){return this.options=f,this.$page={fullPath:Bu(this.route+Ju(f))},this.$vm&&this.$vm.$callHook(Bt,f)},As(a,Og),pa(a,e),Eg(a,e.__runtimeHooks),kg(a),n&&n(u,{handleLink:i}),u}function Zg(e){return function(n){return Component(Qg(n,e))}}function em(e){return function(n){ha(Ts(n),n)}}const tm=Page,nm=Component;function Lr(e){const t=e.triggerEvent,n=function(o,...s){return t.apply(e,[Wu(o),...s])};try{e.triggerEvent=n}catch{e._triggerEvent=n}}function va(e,t,n){const o=t[e];o?t[e]=function(...s){return Lr(this),o.apply(this,s)}:t[e]=function(){Lr(this)}}Page=function(e){return va(Bt,e),tm(e)};Component=function(e){return va("created",e),e.properties&&e.properties.uP||(ma(e),_a(e)),nm(e)};function om({mocks:e,isPage:t,initRelation:n,vueOptions:o}){return{attached(){let s=this.properties;hg(s.uI,this);const r={vuePid:this._$vuePid};n(this,r);const i=this,c=t(i);let u=s;this.$vm=Yg({type:o,props:Fg(u,c)},{mpType:c?"page":"component",mpInstance:i,slots:s.uS||{},parentComponent:r.parent&&r.parent.$,onBeforeSetup(a,f){vg(a,i),Ag(a,i,e),Pg(a,f)}}),c||Bg(this.$vm)},ready(){this.$vm&&(this.$vm.$callHook("mounted"),this.$vm.$callHook(ts))},detached(){this.$vm&&(Hc(this.$vm.$.uid),Xg(this.$vm))}}}const sm=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function rm(e){return!!e.route}function im(e,t){e.triggerEvent("__l",t)}function cm(e){const t=e.detail||e.value,n=t.vuePid;let o;n&&(o=ua(this.$vm,n)),o||(o=this.$vm),t.parent=o}var Sa=Object.freeze({__proto__:null,handleLink:cm,initLifetimes:om,initRelation:im,isPage:rm,mocks:sm});const am=Lg(),um=Zg(Sa),lm=Gg(Sa),fm=em(),dm=Rg();wx.createApp=global.createApp=am,wx.createPage=um,wx.createComponent=lm,wx.createPluginApp=global.createPluginApp=fm,wx.createSubpackageApp=global.createSubpackageApp=dm;const pm=[{path:"pages/index/index",style:{navigationBarTitleText:"首页"}}],hm=[{root:"subpackage/login",pages:[{path:"login",style:{navigationBarTitleText:"用户登录"}}]},{root:"subpackage/manager",pages:[{path:"progress",style:{navigationBarTitleText:"总进度"}},{path:"project-detail",style:{navigationBarTitleText:"项目详情"}},{path:"report",style:{navigationBarTitleText:"项目上报"}},{path:"schedule",style:{navigationBarTitleText:"我的日程"}}]},{root:"subpackage/flowable",pages:[{path:"task-process",style:{navigationBarTitleText:"任务处理"}},{path:"process-detail",style:{navigationBarTitleText:"流程详情"}}]},{root:"subpackage/user",pages:[{path:"mine",style:{navigationBarTitleText:"我的"}},{path:"functions",style:{navigationBarTitleText:"我的功能"}},{path:"project-detail",style:{navigationBarTitleText:"项目详情"}},{path:"pending",style:{navigationBarTitleText:"待处理"}}]}],gm={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8","app-plus":{bounce:"none"}},mm={},Ia={pages:pm,subPackages:hm,globalStyle:gm,uniIdRouter:mm};var _m=[];function ym(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ye(e,t,n){return e(n={path:t,exports:{},require:function(o,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 wm=ye(function(e,t){var n;e.exports=(n=n||function(o,s){var r=Object.create||function(){function d(){}return function(m){var w;return d.prototype=m,w=new d,d.prototype=null,w}}(),i={},c=i.lib={},u=c.Base={extend:function(d){var m=r(this);return d&&m.mixIn(d),m.hasOwnProperty("init")&&this.init!==m.init||(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var m in d)d.hasOwnProperty(m)&&(this[m]=d[m]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}},a=c.WordArray=u.extend({init:function(d,m){d=this.words=d||[],this.sigBytes=m!=s?m:4*d.length},toString:function(d){return(d||l).stringify(this)},concat:function(d){var m=this.words,w=d.words,y=this.sigBytes,b=d.sigBytes;if(this.clamp(),y%4)for(var P=0;P<b;P++){var v=w[P>>>2]>>>24-P%4*8&255;m[y+P>>>2]|=v<<24-(y+P)%4*8}else for(P=0;P<b;P+=4)m[y+P>>>2]=w[P>>>2];return this.sigBytes+=b,this},clamp:function(){var d=this.words,m=this.sigBytes;d[m>>>2]&=4294967295<<32-m%4*8,d.length=o.ceil(m/4)},clone:function(){var d=u.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var m,w=[],y=function(v){v=v;var L=987654321,N=4294967295;return function(){var B=((L=36969*(65535&L)+(L>>16)&N)<<16)+(v=18e3*(65535&v)+(v>>16)&N)&N;return B/=4294967296,(B+=.5)*(o.random()>.5?1:-1)}},b=0;b<d;b+=4){var P=y(4294967296*(m||o.random()));m=987654071*P(),w.push(4294967296*P()|0)}return new a.init(w,d)}}),f=i.enc={},l=f.Hex={stringify:function(d){for(var m=d.words,w=d.sigBytes,y=[],b=0;b<w;b++){var P=m[b>>>2]>>>24-b%4*8&255;y.push((P>>>4).toString(16)),y.push((15&P).toString(16))}return y.join("")},parse:function(d){for(var m=d.length,w=[],y=0;y<m;y+=2)w[y>>>3]|=parseInt(d.substr(y,2),16)<<24-y%8*4;return new a.init(w,m/2)}},h=f.Latin1={stringify:function(d){for(var m=d.words,w=d.sigBytes,y=[],b=0;b<w;b++){var P=m[b>>>2]>>>24-b%4*8&255;y.push(String.fromCharCode(P))}return y.join("")},parse:function(d){for(var m=d.length,w=[],y=0;y<m;y++)w[y>>>2]|=(255&d.charCodeAt(y))<<24-y%4*8;return new a.init(w,m)}},g=f.Utf8={stringify:function(d){try{return decodeURIComponent(escape(h.stringify(d)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(d){return h.parse(unescape(encodeURIComponent(d)))}},_=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=g.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var m=this._data,w=m.words,y=m.sigBytes,b=this.blockSize,P=y/(4*b),v=(P=d?o.ceil(P):o.max((0|P)-this._minBufferSize,0))*b,L=o.min(4*v,y);if(v){for(var N=0;N<v;N+=b)this._doProcessBlock(w,N);var B=w.splice(0,v);m.sigBytes-=L}return new a.init(B,L)},clone:function(){var d=u.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0});c.Hasher=_.extend({cfg:u.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){return d&&this._append(d),this._doFinalize()},blockSize:16,_createHelper:function(d){return function(m,w){return new d.init(w).finalize(m)}},_createHmacHelper:function(d){return function(m,w){return new p.HMAC.init(d,w).finalize(m)}}});var p=i.algo={};return i}(Math),n)}),Le=wm,bm=(ye(function(e,t){var n;e.exports=(n=Le,function(o){var s=n,r=s.lib,i=r.WordArray,c=r.Hasher,u=s.algo,a=[];(function(){for(var p=0;p<64;p++)a[p]=4294967296*o.abs(o.sin(p+1))|0})();var f=u.MD5=c.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(p,d){for(var m=0;m<16;m++){var w=d+m,y=p[w];p[w]=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8)}var b=this._hash.words,P=p[d+0],v=p[d+1],L=p[d+2],N=p[d+3],B=p[d+4],ie=p[d+5],Y=p[d+6],fe=p[d+7],ae=p[d+8],je=p[d+9],re=p[d+10],st=p[d+11],rt=p[d+12],G=p[d+13],M=p[d+14],D=p[d+15],S=b[0],A=b[1],I=b[2],x=b[3];S=l(S,A,I,x,P,7,a[0]),x=l(x,S,A,I,v,12,a[1]),I=l(I,x,S,A,L,17,a[2]),A=l(A,I,x,S,N,22,a[3]),S=l(S,A,I,x,B,7,a[4]),x=l(x,S,A,I,ie,12,a[5]),I=l(I,x,S,A,Y,17,a[6]),A=l(A,I,x,S,fe,22,a[7]),S=l(S,A,I,x,ae,7,a[8]),x=l(x,S,A,I,je,12,a[9]),I=l(I,x,S,A,re,17,a[10]),A=l(A,I,x,S,st,22,a[11]),S=l(S,A,I,x,rt,7,a[12]),x=l(x,S,A,I,G,12,a[13]),I=l(I,x,S,A,M,17,a[14]),S=h(S,A=l(A,I,x,S,D,22,a[15]),I,x,v,5,a[16]),x=h(x,S,A,I,Y,9,a[17]),I=h(I,x,S,A,st,14,a[18]),A=h(A,I,x,S,P,20,a[19]),S=h(S,A,I,x,ie,5,a[20]),x=h(x,S,A,I,re,9,a[21]),I=h(I,x,S,A,D,14,a[22]),A=h(A,I,x,S,B,20,a[23]),S=h(S,A,I,x,je,5,a[24]),x=h(x,S,A,I,M,9,a[25]),I=h(I,x,S,A,N,14,a[26]),A=h(A,I,x,S,ae,20,a[27]),S=h(S,A,I,x,G,5,a[28]),x=h(x,S,A,I,L,9,a[29]),I=h(I,x,S,A,fe,14,a[30]),S=g(S,A=h(A,I,x,S,rt,20,a[31]),I,x,ie,4,a[32]),x=g(x,S,A,I,ae,11,a[33]),I=g(I,x,S,A,st,16,a[34]),A=g(A,I,x,S,M,23,a[35]),S=g(S,A,I,x,v,4,a[36]),x=g(x,S,A,I,B,11,a[37]),I=g(I,x,S,A,fe,16,a[38]),A=g(A,I,x,S,re,23,a[39]),S=g(S,A,I,x,G,4,a[40]),x=g(x,S,A,I,P,11,a[41]),I=g(I,x,S,A,N,16,a[42]),A=g(A,I,x,S,Y,23,a[43]),S=g(S,A,I,x,je,4,a[44]),x=g(x,S,A,I,rt,11,a[45]),I=g(I,x,S,A,D,16,a[46]),S=_(S,A=g(A,I,x,S,L,23,a[47]),I,x,P,6,a[48]),x=_(x,S,A,I,fe,10,a[49]),I=_(I,x,S,A,M,15,a[50]),A=_(A,I,x,S,ie,21,a[51]),S=_(S,A,I,x,rt,6,a[52]),x=_(x,S,A,I,N,10,a[53]),I=_(I,x,S,A,re,15,a[54]),A=_(A,I,x,S,v,21,a[55]),S=_(S,A,I,x,ae,6,a[56]),x=_(x,S,A,I,D,10,a[57]),I=_(I,x,S,A,Y,15,a[58]),A=_(A,I,x,S,G,21,a[59]),S=_(S,A,I,x,B,6,a[60]),x=_(x,S,A,I,st,10,a[61]),I=_(I,x,S,A,L,15,a[62]),A=_(A,I,x,S,je,21,a[63]),b[0]=b[0]+S|0,b[1]=b[1]+A|0,b[2]=b[2]+I|0,b[3]=b[3]+x|0},_doFinalize:function(){var p=this._data,d=p.words,m=8*this._nDataBytes,w=8*p.sigBytes;d[w>>>5]|=128<<24-w%32;var y=o.floor(m/4294967296),b=m;d[15+(w+64>>>9<<4)]=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8),d[14+(w+64>>>9<<4)]=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),p.sigBytes=4*(d.length+1),this._process();for(var P=this._hash,v=P.words,L=0;L<4;L++){var N=v[L];v[L]=16711935&(N<<8|N>>>24)|4278255360&(N<<24|N>>>8)}return P},clone:function(){var p=c.clone.call(this);return p._hash=this._hash.clone(),p}});function l(p,d,m,w,y,b,P){var v=p+(d&m|~d&w)+y+P;return(v<<b|v>>>32-b)+d}function h(p,d,m,w,y,b,P){var v=p+(d&w|m&~w)+y+P;return(v<<b|v>>>32-b)+d}function g(p,d,m,w,y,b,P){var v=p+(d^m^w)+y+P;return(v<<b|v>>>32-b)+d}function _(p,d,m,w,y,b,P){var v=p+(m^(d|~w))+y+P;return(v<<b|v>>>32-b)+d}s.MD5=c._createHelper(f),s.HmacMD5=c._createHmacHelper(f)}(Math),n.MD5)}),ye(function(e,t){var n;e.exports=(n=Le,void function(){var o=n,s=o.lib.Base,r=o.enc.Utf8;o.algo.HMAC=s.extend({init:function(i,c){i=this._hasher=new i.init,typeof c=="string"&&(c=r.parse(c));var u=i.blockSize,a=4*u;c.sigBytes>a&&(c=i.finalize(c)),c.clamp();for(var f=this._oKey=c.clone(),l=this._iKey=c.clone(),h=f.words,g=l.words,_=0;_<u;_++)h[_]^=1549556828,g[_]^=909522486;f.sigBytes=l.sigBytes=a,this.reset()},reset:function(){var i=this._hasher;i.reset(),i.update(this._iKey)},update:function(i){return this._hasher.update(i),this},finalize:function(i){var c=this._hasher,u=c.finalize(i);return c.reset(),c.finalize(this._oKey.clone().concat(u))}})}())}),ye(function(e,t){e.exports=Le.HmacMD5})),vm=ye(function(e,t){e.exports=Le.enc.Utf8}),Sm=ye(function(e,t){var n;e.exports=(n=Le,function(){var o=n,s=o.lib.WordArray;function r(i,c,u){for(var a=[],f=0,l=0;l<c;l++)if(l%4){var h=u[i.charCodeAt(l-1)]<<l%4*2,g=u[i.charCodeAt(l)]>>>6-l%4*2;a[f>>>2]|=(h|g)<<24-f%4*8,f++}return s.create(a,f)}o.enc.Base64={stringify:function(i){var c=i.words,u=i.sigBytes,a=this._map;i.clamp();for(var f=[],l=0;l<u;l+=3)for(var h=(c[l>>>2]>>>24-l%4*8&255)<<16|(c[l+1>>>2]>>>24-(l+1)%4*8&255)<<8|c[l+2>>>2]>>>24-(l+2)%4*8&255,g=0;g<4&&l+.75*g<u;g++)f.push(a.charAt(h>>>6*(3-g)&63));var _=a.charAt(64);if(_)for(;f.length%4;)f.push(_);return f.join("")},parse:function(i){var c=i.length,u=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var f=0;f<u.length;f++)a[u.charCodeAt(f)]=f}var l=u.charAt(64);if(l){var h=i.indexOf(l);h!==-1&&(c=h)}return r(i,c,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)});const Rr="FUNCTION",Im="OBJECT",xm="CLIENT_DB",Nr="pending",Pm="fulfilled",Mr="rejected";function Dt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function xa(e){return Dt(e)==="object"}function Pa(e){return typeof e=="function"}function Am(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const Dr="REJECTED",Aa="NOT_PENDING";class Os{constructor({createPromise:t,retryRule:n=Dr}={}){this.createPromise=t,this.status=null,this.promise=null,this.retryRule=n}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Dr:return this.status===Mr;case Aa:return this.status!==Nr}}exec(){return this.needRetry?(this.status=Nr,this.promise=this.createPromise().then(t=>(this.status=Pm,Promise.resolve(t)),t=>(this.status=Mr,Promise.reject(t))),this.promise):this.promise}}function Es(e){return e&&typeof e=="string"?JSON.parse(e):e}const Tm=!0,Om="mp-weixin",Em=Es(_m),Qe=Om,Cm=Es(""),Ta=Es("[]")||[];let km="";try{km=""}catch{}let eo={};function yt(e,t={}){var n,o;return n=eo,o=e,Object.prototype.hasOwnProperty.call(n,o)||(eo[e]=t),eo[e]}const Oa=["invoke","success","fail","complete"],ge=yt("_globalUniCloudInterceptor");function Ea(e,t){ge[e]||(ge[e]={}),xa(t)&&Object.keys(t).forEach(n=>{Oa.indexOf(n)>-1&&function(o,s,r){let i=ge[o][s];i||(i=ge[o][s]=[]),i.indexOf(r)===-1&&Pa(r)&&i.push(r)}(e,n,t[n])})}function $m(e,t){ge[e]||(ge[e]={}),xa(t)?Object.keys(t).forEach(n=>{Oa.indexOf(n)>-1&&function(o,s,r){const i=ge[o][s];if(!i)return;const c=i.indexOf(r);c>-1&&i.splice(c,1)}(e,n,t[n])}):delete ge[e]}function ne(e,t){return e&&e.length!==0?e.reduce((n,o)=>n.then(()=>o(t)),Promise.resolve()):Promise.resolve()}function oe(e,t){return ge[e]&&ge[e][t]||[]}function Lm(e){Ea("callObject",e)}const to=yt("_globalUniCloudListener"),me="response",wt="needLogin",On="refreshToken",jr="clientdb",sn="cloudfunction",Ur="cloudobject";function zt(e){return to[e]||(to[e]=[]),to[e]}function no(e,t){const n=zt(e);n.includes(t)||n.push(t)}function oo(e,t){const n=zt(e),o=n.indexOf(t);o!==-1&&n.splice(o,1)}function ce(e,t){const n=zt(e);for(let o=0;o<n.length;o++)(0,n[o])(t)}let so,ro=!1;function Ca(){return so||(so=new Promise(e=>{ro&&e(),function t(){if(typeof getCurrentPages=="function"){const n=getCurrentPages();n&&n[0]&&(ro=!0,e())}ro||setTimeout(()=>{t()},30)}()}),so)}function ka(e){const t={};for(const n in e){const o=e[n];Pa(o)&&(t[n]=Am(o))}return t}class O extends Error{constructor(t){super(t.message),this.errMsg=t.message||t.errMsg||"unknown system error",this.code=this.errCode=t.code||t.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=t.subject||t.errSubject,this.cause=t.cause,this.requestId=t.requestId}toJson(t=0){if(!(t>=10))return t++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(t):this.cause}}}var q={request:e=>$.request(e),uploadFile:e=>$.uploadFile(e),setStorageSync:(e,t)=>$.setStorageSync(e,t),getStorageSync:e=>$.getStorageSync(e),removeStorageSync:e=>$.removeStorageSync(e),clearStorageSync:()=>$.clearStorageSync(),connectSocket:e=>$.connectSocket(e)};function $a(e){return e&&$a(e.__v_raw)||e}function jt(){return{token:q.getStorageSync("uni_id_token")||q.getStorageSync("uniIdToken"),tokenExpired:q.getStorageSync("uni_id_token_expired")}}function La({token:e,tokenExpired:t}={}){e&&q.setStorageSync("uni_id_token",e),t&&q.setStorageSync("uni_id_token_expired",t)}let io,rn;function Ra(){return io||(io=$.getSystemInfoSync()),io}function Rm(){let e,t;try{if($.getLaunchOptionsSync){if($.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:o}=$.getLaunchOptionsSync();e=o,t=n}}catch{}return{channel:e,scene:t}}let zo={};function Jo(){const e=$.getLocale&&$.getLocale()||"en";if(rn)return{...zo,...rn,locale:e,LOCALE:e};const t=Ra(),{deviceId:n,osName:o,uniPlatform:s,appId:r}=t,i=["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(const c in t)Object.hasOwnProperty.call(t,c)&&i.indexOf(c)===-1&&delete t[c];return rn={PLATFORM:s,OS:o,APPID:r,DEVICEID:n,...Rm(),...t},{...zo,...rn,locale:e,LOCALE:e}}var ut={sign:function(e,t){let n="";return Object.keys(e).sort().forEach(function(o){e[o]&&(n=n+"&"+o+"="+e[o])}),n=n.slice(1),bm(n,t).toString()},wrappedRequest:function(e,t){return new Promise((n,o)=>{t(Object.assign(e,{complete(s){s||(s={});const r=s.data&&s.data.header&&s.data.header["x-serverless-request-id"]||s.header&&s.header["request-id"];if(!s.statusCode||s.statusCode>=400){const c=s.data&&s.data.error&&s.data.error.code||"SYS_ERR",u=s.data&&s.data.error&&s.data.error.message||s.errMsg||"request:fail";return o(new O({code:c,message:u,requestId:r}))}const i=s.data;if(i.error)return o(new O({code:i.error.code,message:i.error.message,requestId:r}));i.result=i.data,i.requestId=r,delete i.data,n(i)}}))})},toBase64:function(e){return Sm.stringify(vm.parse(e))}},Nm=class{constructor(e){["spaceId","clientSecret"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),this.config=Object.assign({},{endpoint:e.spaceId.indexOf("mp-")===0?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),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=q,this._getAccessTokenPromiseHub=new Os({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then(t=>{if(!t.result||!t.result.accessToken)throw new O({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(t.result.accessToken)}),retryRule:Aa})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return ut.wrappedRequest(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then(()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch(n=>new Promise((o,s)=>{!n||n.code!=="GATEWAY_INVALID_TOKEN"&&n.code!=="InvalidParameter.InvalidToken"?s(n):o()}).then(()=>this.getAccessToken()).then(()=>{const o=this.rebuildRequest(e);return this.request(o,!0)})):this.getAccessToken().then(()=>{const n=this.rebuildRequest(e);return this.request(n,!0)}))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=ut.sign(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),o={"Content-Type":"application/json"};return t!=="auth"&&(n.token=this.accessToken,o["x-basement-token"]=this.accessToken),o["x-serverless-sign"]=ut.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:o}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request({...this.setupRequest(t),timeout:e.timeout})}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:o,fileType:s,onUploadProgress:r}){return new Promise((i,c)=>{const u=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:o,fileType:s,header:{"X-OSS-server-side-encrpytion":"AES256"},success(a){a&&a.statusCode<400?i(a):c(new O({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(a){c(new O({code:a.code||"UPLOAD_FAILED",message:a.message||a.errMsg||"文件上传失败"}))}});typeof r=="function"&&u&&typeof u.onProgressUpdate=="function"&&u.onProgressUpdate(a=>{r({loaded:a.totalBytesSent,total:a.totalBytesExpectedToSend})})})}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:o=!1,onUploadProgress:s,config:r}){if(Dt(t)!=="string")throw new O({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new O({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new O({code:"INVALID_PARAM",message:"cloudPath不合法"});const i=r&&r.envType||this.config.envType;if(o&&(t[0]!=="/"&&(t="/"+t),t.indexOf("\\")>-1))throw new O({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const c=(await this.getOSSUploadOptionsFromPath({env:i,filename:o?t.split("/").pop():t,fileId:o?t:void 0})).result,u="https://"+c.cdnDomain+"/"+c.ossPath,{securityToken:a,accessKeyId:f,signature:l,host:h,ossPath:g,id:_,policy:p,ossCallbackUrl:d}=c,m={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:f,Signature:l,host:h,id:_,key:g,policy:p,success_action_status:200};if(a&&(m["x-oss-security-token"]=a),d){const y=JSON.stringify({callbackUrl:d,callbackBody:JSON.stringify({fileId:_,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});m.callback=ut.toBase64(y)}const w={url:"https://"+c.host,formData:m,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},w,{onUploadProgress:s})),d)return{success:!0,filePath:e,fileID:u};if((await this.reportOSSUpload({id:_})).success)return{success:!0,filePath:e,fileID:u};throw new O({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise((t,n)=>{Array.isArray(e)&&e.length!==0||n(new O({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map(o=>({fileID:o,tempFileURL:o}))})})}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||e.length===0)throw new O({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map(n=>n.split("?")[0]).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},Mm={init(e){const t=new Nm(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const Dm=typeof location<"u"&&location.protocol==="http:"?"http:":"https:";var Hr;(function(e){e.local="local",e.none="none",e.session="session"})(Hr||(Hr={}));var jm=function(){},Um=ye(function(e,t){var n;e.exports=(n=Le,function(o){var s=n,r=s.lib,i=r.WordArray,c=r.Hasher,u=s.algo,a=[],f=[];(function(){function g(m){for(var w=o.sqrt(m),y=2;y<=w;y++)if(!(m%y))return!1;return!0}function _(m){return 4294967296*(m-(0|m))|0}for(var p=2,d=0;d<64;)g(p)&&(d<8&&(a[d]=_(o.pow(p,.5))),f[d]=_(o.pow(p,1/3)),d++),p++})();var l=[],h=u.SHA256=c.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(g,_){for(var p=this._hash.words,d=p[0],m=p[1],w=p[2],y=p[3],b=p[4],P=p[5],v=p[6],L=p[7],N=0;N<64;N++){if(N<16)l[N]=0|g[_+N];else{var B=l[N-15],ie=(B<<25|B>>>7)^(B<<14|B>>>18)^B>>>3,Y=l[N-2],fe=(Y<<15|Y>>>17)^(Y<<13|Y>>>19)^Y>>>10;l[N]=ie+l[N-7]+fe+l[N-16]}var ae=d&m^d&w^m&w,je=(d<<30|d>>>2)^(d<<19|d>>>13)^(d<<10|d>>>22),re=L+((b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25))+(b&P^~b&v)+f[N]+l[N];L=v,v=P,P=b,b=y+re|0,y=w,w=m,m=d,d=re+(je+ae)|0}p[0]=p[0]+d|0,p[1]=p[1]+m|0,p[2]=p[2]+w|0,p[3]=p[3]+y|0,p[4]=p[4]+b|0,p[5]=p[5]+P|0,p[6]=p[6]+v|0,p[7]=p[7]+L|0},_doFinalize:function(){var g=this._data,_=g.words,p=8*this._nDataBytes,d=8*g.sigBytes;return _[d>>>5]|=128<<24-d%32,_[14+(d+64>>>9<<4)]=o.floor(p/4294967296),_[15+(d+64>>>9<<4)]=p,g.sigBytes=4*_.length,this._process(),this._hash},clone:function(){var g=c.clone.call(this);return g._hash=this._hash.clone(),g}});s.SHA256=c._createHelper(h),s.HmacSHA256=c._createHmacHelper(h)}(Math),n.SHA256)}),Go=Um,Na=ye(function(e,t){e.exports=Le.HmacSHA256});const Jt=()=>{let e;if(!Promise){e=()=>{},e.promise={};const n=()=>{throw new O({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:n}),Object.defineProperty(e.promise,"catch",{get:n}),e}const t=new Promise((n,o)=>{e=(s,r)=>s?o(s):n(r)});return e.promise=t,e};function Hm(e){return e===void 0}function Fm(e){return Object.prototype.toString.call(e)==="[object Null]"}function Fr(e=""){return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function qr(e=32){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=t.length;let o="";for(let s=0;s<e;s++)o+=t.charAt(Math.floor(Math.random()*n));return o}var Br;function qm(e){const t=(n=e,Object.prototype.toString.call(n)==="[object Array]"?e:[e]);var n;for(const o of t){const{isMatch:s,genAdapter:r,runtime:i}=o;if(s())return{adapter:r(),runtime:i}}}(function(e){e.WEB="web",e.WX_MP="wx_mp"})(Br||(Br={}));const X={adapter:null,runtime:void 0},Bm=["anonymousUuidKey"];class co extends jm{constructor(){super(),X.adapter.root.tcbObject||(X.adapter.root.tcbObject={})}setItem(t,n){X.adapter.root.tcbObject[t]=n}getItem(t){return X.adapter.root.tcbObject[t]}removeItem(t){delete X.adapter.root.tcbObject[t]}clear(){delete X.adapter.root.tcbObject}}function Kr(e,t){switch(e){case"local":return t.localStorage||new co;case"none":return new co;default:return t.sessionStorage||new co}}class Vr{constructor(t){if(!this._storage){this._persistence=X.adapter.primaryStorage||t.persistence,this._storage=Kr(this._persistence,X.adapter);const n=`access_token_${t.env}`,o=`access_token_expire_${t.env}`,s=`refresh_token_${t.env}`,r=`anonymous_uuid_${t.env}`,i=`login_type_${t.env}`,c="device_id",u=`token_type_${t.env}`,a=`user_info_${t.env}`;this.keys={accessTokenKey:n,accessTokenExpireKey:o,refreshTokenKey:s,anonymousUuidKey:r,loginTypeKey:i,userInfoKey:a,deviceIdKey:c,tokenTypeKey:u}}}updatePersistence(t){if(t===this._persistence)return;const n=this._persistence==="local";this._persistence=t;const o=Kr(t,X.adapter);for(const s in this.keys){const r=this.keys[s];if(n&&Bm.includes(s))continue;const i=this._storage.getItem(r);Hm(i)||Fm(i)||(o.setItem(r,i),this._storage.removeItem(r))}this._storage=o}setStore(t,n,o){if(!this._storage)return;const s={version:o||"localCachev1",content:n},r=JSON.stringify(s);try{this._storage.setItem(t,r)}catch(i){throw i}}getStore(t,n){try{if(!this._storage)return}catch{return""}n=n||"localCachev1";const o=this._storage.getItem(t);return o&&o.indexOf(n)>=0?JSON.parse(o).content:""}removeStore(t){this._storage.removeItem(t)}}const Ma={},Da={};function It(e){return Ma[e]}class ja{constructor(t,n){this.data=n||null,this.name=t}}class Km extends ja{constructor(t,n){super("error",{error:t,data:n}),this.error=t}}const Cs=new class{constructor(){this._listeners={}}on(e,t){return function(n,o,s){s[n]=s[n]||[],s[n].push(o)}(e,t,this._listeners),this}off(e,t){return function(n,o,s){if(s&&s[n]){const r=s[n].indexOf(o);r!==-1&&s[n].splice(r,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Km)return console.error(e.error),this;const n=typeof e=="string"?new ja(e,t||{}):e,o=n.name;if(this._listens(o)){n.target=this;const s=this._listeners[o]?[...this._listeners[o]]:[];for(const r of s)r.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Te(e,t){Cs.on(e,t)}function se(e,t={}){Cs.fire(e,t)}function Vm(e,t){Cs.off(e,t)}const bt="loginStateChanged",Ua="loginStateExpire",Re="loginTypeChanged",Yo="anonymousConverted",Ha="refreshAccessToken";var V;(function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"})(V||(V={}));class Wm{constructor(){this._fnPromiseMap=new Map}async run(t,n){let o=this._fnPromiseMap.get(t);return o||(o=new Promise(async(s,r)=>{try{await this._runIdlePromise();const i=n();s(await i)}catch(i){r(i)}finally{this._fnPromiseMap.delete(t)}}),this._fnPromiseMap.set(t,o)),o}_runIdlePromise(){return Promise.resolve()}}class zm{constructor(t){this._singlePromise=new Wm,this._cache=It(t.env),this._baseURL=`https://${t.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new X.adapter.reqClass({timeout:t.timeout,timeoutMsg:`请求在${t.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]})}_getDeviceId(){if(this._deviceID)return this._deviceID;const{deviceIdKey:t}=this._cache.keys;let n=this._cache.getStore(t);return typeof n=="string"&&n.length>=16&&n.length<=48||(n=qr(),this._cache.setStore(t,n)),this._deviceID=n,n}async _request(t,n,o={}){const s={"x-request-id":qr(),"x-device-id":this._getDeviceId()};if(o.withAccessToken){const{tokenTypeKey:r}=this._cache.keys,i=await this.getAccessToken(),c=this._cache.getStore(r);s.authorization=`${c} ${i}`}return this._reqClass[o.method==="get"?"get":"post"]({url:`${this._baseURL}${t}`,data:n,headers:s})}async _fetchAccessToken(){const{loginTypeKey:t,accessTokenKey:n,accessTokenExpireKey:o,tokenTypeKey:s}=this._cache.keys,r=this._cache.getStore(t);if(r&&r!==V.ANONYMOUS)throw new O({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});const i=await this._singlePromise.run("fetchAccessToken",async()=>(await this._request("/auth/v1/signin/anonymously",{},{method:"post"})).data),{access_token:c,expires_in:u,token_type:a}=i;return this._cache.setStore(s,a),this._cache.setStore(n,c),this._cache.setStore(o,Date.now()+1e3*u),c}isAccessTokenExpired(t,n){let o=!0;return t&&n&&(o=n<Date.now()),o}async getAccessToken(){const{accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,o=this._cache.getStore(t),s=this._cache.getStore(n);return this.isAccessTokenExpired(o,s)?this._fetchAccessToken():o}async refreshAccessToken(){const{accessTokenKey:t,accessTokenExpireKey:n,loginTypeKey:o}=this._cache.keys;return this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(o,V.ANONYMOUS),this.getAccessToken()}async getUserInfo(){return this._singlePromise.run("getUserInfo",async()=>(await this._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"})).data)}}const Wr=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Jm={"X-SDK-Version":"1.3.5"};function ao(e,t,n){const o=e[t];e[t]=function(s){const r={},i={};n.forEach(u=>{const{data:a,headers:f}=u.call(e,s);Object.assign(r,a),Object.assign(i,f)});const c=s.data;return c&&(()=>{var u;if(u=c,Object.prototype.toString.call(u)!=="[object FormData]")s.data={...c,...r};else for(const a in r)c.append(a,r[a])})(),s.headers={...s.headers||{},...i},o.call(e,s)}}function uo(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Jm,"x-seqid":e}}}class Gm{constructor(t={}){var n;this.config=t,this._reqClass=new X.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=It(this.config.env),this._localCache=(n=this.config.env,Da[n]),this.oauth=new zm(this.config),ao(this._reqClass,"post",[uo]),ao(this._reqClass,"upload",[uo]),ao(this._reqClass,"download",[uo])}async post(t){return await this._reqClass.post(t)}async upload(t){return await this._reqClass.upload(t)}async download(t){return await this._reqClass.download(t)}async refreshAccessToken(){let t,n;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{t=await this._refreshAccessTokenPromise}catch(o){n=o}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,n)throw n;return t}async _refreshAccessToken(){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:o,loginTypeKey:s,anonymousUuidKey:r}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n);let i=this._cache.getStore(o);if(!i)throw new O({message:"未登录CloudBase"});const c={refresh_token:i},u=await this.request("auth.fetchAccessTokenWithRefreshToken",c);if(u.data.code){const{code:a}=u.data;if(a==="SIGN_PARAM_INVALID"||a==="REFRESH_TOKEN_EXPIRED"||a==="INVALID_REFRESH_TOKEN"){if(this._cache.getStore(s)===V.ANONYMOUS&&a==="INVALID_REFRESH_TOKEN"){const f=this._cache.getStore(r),l=this._cache.getStore(o),h=await this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:l});return this.setRefreshToken(h.refresh_token),this._refreshAccessToken()}se(Ua),this._cache.removeStore(o)}throw new O({code:u.data.code,message:`刷新access token失败:${u.data.code}`})}if(u.data.access_token)return se(Ha),this._cache.setStore(t,u.data.access_token),this._cache.setStore(n,u.data.access_token_expire+Date.now()),{accessToken:u.data.access_token,accessTokenExpire:u.data.access_token_expire};u.data.refresh_token&&(this._cache.removeStore(o),this._cache.setStore(o,u.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:o}=this._cache.keys;if(!this._cache.getStore(o))throw new O({message:"refresh token不存在,登录状态异常"});let s=this._cache.getStore(t),r=this._cache.getStore(n),i=!0;return this._shouldRefreshAccessTokenHook&&!await this._shouldRefreshAccessTokenHook(s,r)&&(i=!1),(!s||!r||r<Date.now())&&i?this.refreshAccessToken():{accessToken:s,accessTokenExpire:r}}async request(t,n,o){const s=`x-tcb-trace_${this.config.env}`;let r="application/x-www-form-urlencoded";const i={action:t,env:this.config.env,dataVersion:"2019-08-16",...n};let c;if(Wr.indexOf(t)===-1&&(this._cache.keys,i.access_token=await this.oauth.getAccessToken()),t==="storage.uploadFile"){c=new FormData;for(let m in c)c.hasOwnProperty(m)&&c[m]!==void 0&&c.append(m,i[m]);r="multipart/form-data"}else{r="application/json",c={};for(let m in i)i[m]!==void 0&&(c[m]=i[m])}let u={headers:{"content-type":r}};o&&o.timeout&&(u.timeout=o.timeout),o&&o.onUploadProgress&&(u.onUploadProgress=o.onUploadProgress);const a=this._localCache.getStore(s);a&&(u.headers["X-TCB-Trace"]=a);const{parse:f,inQuery:l,search:h}=n;let g={env:this.config.env};f&&(g.parse=!0),l&&(g={...l,...g});let _=function(m,w,y={}){const b=/\?/.test(w);let P="";for(let v in y)P===""?!b&&(w+="?"):P+="&",P+=`${v}=${encodeURIComponent(y[v])}`;return/^http(s)?\:\/\//.test(w+=P)?w:`${m}${w}`}(Dm,"//tcb-api.tencentcloudapi.com/web",g);h&&(_+=h);const p=await this.post({url:_,data:c,...u}),d=p.header&&p.header["x-tcb-trace"];if(d&&this._localCache.setStore(s,d),Number(p.status)!==200&&Number(p.statusCode)!==200||!p.data)throw new O({code:"NETWORK_ERROR",message:"network request error"});return p}async send(t,n={},o={}){const s=await this.request(t,n,{...o,onUploadProgress:n.onUploadProgress});if((s.data.code==="ACCESS_TOKEN_DISABLED"||s.data.code==="ACCESS_TOKEN_EXPIRED")&&Wr.indexOf(t)===-1){await this.oauth.refreshAccessToken();const r=await this.request(t,n,{...o,onUploadProgress:n.onUploadProgress});if(r.data.code)throw new O({code:r.data.code,message:Fr(r.data.message)});return r.data}if(s.data.code)throw new O({code:s.data.code,message:Fr(s.data.message)});return s.data}setRefreshToken(t){const{accessTokenKey:n,accessTokenExpireKey:o,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(n),this._cache.removeStore(o),this._cache.setStore(s,t)}}const Fa={};function xe(e){return Fa[e]}class Bn{constructor(t){this.config=t,this._cache=It(t.env),this._request=xe(t.env)}setRefreshToken(t){const{accessTokenKey:n,accessTokenExpireKey:o,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(n),this._cache.removeStore(o),this._cache.setStore(s,t)}setAccessToken(t,n){const{accessTokenKey:o,accessTokenExpireKey:s}=this._cache.keys;this._cache.setStore(o,t),this._cache.setStore(s,n)}async refreshUserInfo(){const{data:t}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(t),t}setLocalUserInfo(t){const{userInfoKey:n}=this._cache.keys;this._cache.setStore(n,t)}}class Ym{constructor(t){if(!t)throw new O({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=It(this._envId),this._request=xe(this._envId),this.setUserInfo()}linkWithTicket(t){if(typeof t!="string")throw new O({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:t})}linkWithRedirect(t){t.signInWithRedirect()}updatePassword(t,n){return this._request.send("auth.updatePassword",{oldPassword:n,newPassword:t})}updateEmail(t){return this._request.send("auth.updateEmail",{newEmail:t})}updateUsername(t){if(typeof t!="string")throw new O({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:t})}async getLinkedUidList(){const{data:t}=await this._request.send("auth.getLinkedUidList",{});let n=!1;const{users:o}=t;return o.forEach(s=>{s.wxOpenId&&s.wxPublicId&&(n=!0)}),{users:o,hasPrimaryUid:n}}setPrimaryUid(t){return this._request.send("auth.setPrimaryUid",{uid:t})}unlink(t){return this._request.send("auth.unlink",{platform:t})}async update(t){const{nickName:n,gender:o,avatarUrl:s,province:r,country:i,city:c}=t,{data:u}=await this._request.send("auth.updateUserInfo",{nickName:n,gender:o,avatarUrl:s,province:r,country:i,city:c});this.setLocalUserInfo(u)}async refresh(){const t=await this._request.oauth.getUserInfo();return this.setLocalUserInfo(t),t}setUserInfo(){const{userInfoKey:t}=this._cache.keys,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach(o=>{this[o]=n[o]}),this.location={country:n.country,province:n.province,city:n.city}}setLocalUserInfo(t){const{userInfoKey:n}=this._cache.keys;this._cache.setStore(n,t),this.setUserInfo()}}class Gt{constructor(t){if(!t)throw new O({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=It(t);const{refreshTokenKey:n,accessTokenKey:o,accessTokenExpireKey:s}=this._cache.keys,r=this._cache.getStore(n),i=this._cache.getStore(o),c=this._cache.getStore(s);this.credential={refreshToken:r,accessToken:i,accessTokenExpire:c},this.user=new Ym(t)}get isAnonymousAuth(){return this.loginType===V.ANONYMOUS}get isCustomAuth(){return this.loginType===V.CUSTOM}get isWeixinAuth(){return this.loginType===V.WECHAT||this.loginType===V.WECHAT_OPEN||this.loginType===V.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class lo extends Bn{async signIn(){this._cache.updatePersistence("local"),await this._request.oauth.getAccessToken(),se(bt),se(Re,{env:this.config.env,loginType:V.ANONYMOUS,persistence:"local"});const t=new Gt(this.config.env);return await t.user.refresh(),t}async linkAndRetrieveDataWithTicket(t){const{anonymousUuidKey:n,refreshTokenKey:o}=this._cache.keys,s=this._cache.getStore(n),r=this._cache.getStore(o),i=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:s,refresh_token:r,ticket:t});if(i.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(i.refresh_token),await this._request.refreshAccessToken(),se(Yo,{env:this.config.env}),se(Re,{loginType:V.CUSTOM,persistence:"local"}),{credential:{refreshToken:i.refresh_token}};throw new O({message:"匿名转化失败"})}_setAnonymousUUID(t){const{anonymousUuidKey:n,loginTypeKey:o}=this._cache.keys;this._cache.removeStore(n),this._cache.setStore(n,t),this._cache.setStore(o,V.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class zr extends Bn{async signIn(t){if(typeof t!="string")throw new O({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:n}=this._cache.keys,o=await this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});if(o.refresh_token)return this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),se(bt),se(Re,{env:this.config.env,loginType:V.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Gt(this.config.env);throw new O({message:"自定义登录失败"})}}class Jr extends Bn{async signIn(t,n){if(typeof t!="string")throw new O({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:o}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(o)||""}),{refresh_token:r,access_token:i,access_token_expire:c}=s;if(r)return this.setRefreshToken(r),i&&c?this.setAccessToken(i,c):await this._request.refreshAccessToken(),await this.refreshUserInfo(),se(bt),se(Re,{env:this.config.env,loginType:V.EMAIL,persistence:this.config.persistence}),new Gt(this.config.env);throw s.code?new O({code:s.code,message:`邮箱登录失败: ${s.message}`}):new O({message:"邮箱登录失败"})}async activate(t){return this._request.send("auth.activateEndUserMail",{token:t})}async resetPasswordWithToken(t,n){return this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n})}}class Gr extends Bn{async signIn(t,n){if(typeof t!="string")throw new O({code:"PARAM_ERROR",message:"username must be a string"});typeof n!="string"&&(n="",console.warn("password is empty"));const{refreshTokenKey:o}=this._cache.keys,s=await this._request.send("auth.signIn",{loginType:V.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(o)||""}),{refresh_token:r,access_token_expire:i,access_token:c}=s;if(r)return this.setRefreshToken(r),c&&i?this.setAccessToken(c,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),se(bt),se(Re,{env:this.config.env,loginType:V.USERNAME,persistence:this.config.persistence}),new Gt(this.config.env);throw s.code?new O({code:s.code,message:`用户名密码登录失败: ${s.message}`}):new O({message:"用户名密码登录失败"})}}class Xm{constructor(t){this.config=t,this._cache=It(t.env),this._request=xe(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Te(Re,this._onLoginTypeChanged)}get currentUser(){const t=this.hasLoginState();return t&&t.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new lo(this.config)}customAuthProvider(){return new zr(this.config)}emailAuthProvider(){return new Jr(this.config)}usernameAuthProvider(){return new Gr(this.config)}async signInAnonymously(){return new lo(this.config).signIn()}async signInWithEmailAndPassword(t,n){return new Jr(this.config).signIn(t,n)}signInWithUsernameAndPassword(t,n){return new Gr(this.config).signIn(t,n)}async linkAndRetrieveDataWithTicket(t){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new lo(this.config)),Te(Yo,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t)}async signOut(){if(this.loginType===V.ANONYMOUS)throw new O({message:"匿名用户不支持登出操作"});const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:o}=this._cache.keys,s=this._cache.getStore(t);if(!s)return;const r=await this._request.send("auth.logout",{refresh_token:s});return this._cache.removeStore(t),this._cache.removeStore(n),this._cache.removeStore(o),se(bt),se(Re,{env:this.config.env,loginType:V.NULL,persistence:this.config.persistence}),r}async signUpWithEmailAndPassword(t,n){return this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n})}async sendPasswordResetEmail(t){return this._request.send("auth.sendPasswordResetEmail",{email:t})}onLoginStateChanged(t){Te(bt,()=>{const o=this.hasLoginState();t.call(this,o)});const n=this.hasLoginState();t.call(this,n)}onLoginStateExpired(t){Te(Ua,t.bind(this))}onAccessTokenRefreshed(t){Te(Ha,t.bind(this))}onAnonymousConverted(t){Te(Yo,t.bind(this))}onLoginTypeChanged(t){Te(Re,()=>{const n=this.hasLoginState();t.call(this,n)})}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,o=this._cache.getStore(t),s=this._cache.getStore(n);return this._request.oauth.isAccessTokenExpired(o,s)?null:new Gt(this.config.env)}async isUsernameRegistered(t){if(typeof t!="string")throw new O({code:"PARAM_ERROR",message:"username must be a string"});const{data:n}=await this._request.send("auth.isUsernameRegistered",{username:t});return n&&n.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(t){return new zr(this.config).signIn(t)}shouldRefreshAccessToken(t){this._request._shouldRefreshAccessTokenHook=t.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then(t=>t.code?t:{...t.data,requestId:t.seqId})}getAuthHeader(){const{refreshTokenKey:t,accessTokenKey:n}=this._cache.keys,o=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+o}}_onAnonymousConverted(t){const{env:n}=t.data;n===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(t){const{loginType:n,persistence:o,env:s}=t.data;s===this.config.env&&(this._cache.updatePersistence(o),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}const Qm=function(e,t){t=t||Jt();const n=xe(this.config.env),{cloudPath:o,filePath:s,onUploadProgress:r,fileType:i="image"}=e;return n.send("storage.getUploadMetadata",{path:o}).then(c=>{const{data:{url:u,authorization:a,token:f,fileId:l,cosFileId:h},requestId:g}=c,_={key:o,signature:a,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":f};n.upload({url:u,data:_,file:s,name:o,fileType:i,onUploadProgress:r}).then(p=>{p.statusCode===201?t(null,{fileID:l,requestId:g}):t(new O({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${p.data}`}))}).catch(p=>{t(p)})}).catch(c=>{t(c)}),t.promise},Zm=function(e,t){t=t||Jt();const n=xe(this.config.env),{cloudPath:o}=e;return n.send("storage.getUploadMetadata",{path:o}).then(s=>{t(null,s)}).catch(s=>{t(s)}),t.promise},e_=function({fileList:e},t){if(t=t||Jt(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let o of e)if(!o||typeof o!="string")return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return xe(this.config.env).send("storage.batchDeleteFile",n).then(o=>{o.code?t(null,o):t(null,{fileList:o.data.delete_list,requestId:o.requestId})}).catch(o=>{t(o)}),t.promise},Ba=function({fileList:e},t){t=t||Jt(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let s of e)typeof s=="object"?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:s.fileID,max_age:s.maxAge})):typeof s=="string"?n.push({fileid:s}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const o={file_list:n};return xe(this.config.env).send("storage.batchGetDownloadUrl",o).then(s=>{s.code?t(null,s):t(null,{fileList:s.data.download_list,requestId:s.requestId})}).catch(s=>{t(s)}),t.promise},t_=async function({fileID:e},t){const n=(await Ba.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if(n.code!=="SUCCESS")return t?t(n):new Promise(r=>{r(n)});const o=xe(this.config.env);let s=n.download_url;if(s=encodeURI(s),!t)return o.download({url:s});t(await o.download({url:s}))},n_=function({name:e,data:t,query:n,parse:o,search:s,timeout:r},i){const c=i||Jt();let u;try{u=t?JSON.stringify(t):""}catch(f){return Promise.reject(f)}if(!e)return Promise.reject(new O({code:"PARAM_ERROR",message:"函数名不能为空"}));const a={inQuery:n,parse:o,search:s,function_name:e,request_data:u};return xe(this.config.env).send("functions.invokeFunction",a,{timeout:r}).then(f=>{if(f.code)c(null,f);else{let l=f.data.response_data;if(o)c(null,{result:l,requestId:f.requestId});else try{l=JSON.parse(f.data.response_data),c(null,{result:l,requestId:f.requestId})}catch{c(new O({message:"response data must be json"}))}}return c.promise}).catch(f=>{c(f)}),c.promise},Yr={timeout:15e3,persistence:"session"},Xr={};class $s{constructor(t){this.config=t||this.config,this.authObj=void 0}init(t){switch(X.adapter||(this.requestClient=new X.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:`请求在${(t.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...Yr,...t},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new $s(this.config)}auth({persistence:t}={}){if(this.authObj)return this.authObj;const n=t||X.adapter.primaryStorage||Yr.persistence;var o;return n!==this.config.persistence&&(this.config.persistence=n),function(s){const{env:r}=s;Ma[r]=new Vr(s),Da[r]=new Vr({...s,persistence:"local"})}(this.config),o=this.config,Fa[o.env]=new Gm(o),this.authObj=new Xm(this.config),this.authObj}on(t,n){return Te.apply(this,[t,n])}off(t,n){return Vm.apply(this,[t,n])}callFunction(t,n){return n_.apply(this,[t,n])}deleteFile(t,n){return e_.apply(this,[t,n])}getTempFileURL(t,n){return Ba.apply(this,[t,n])}downloadFile(t,n){return t_.apply(this,[t,n])}uploadFile(t,n){return Qm.apply(this,[t,n])}getUploadMetadata(t,n){return Zm.apply(this,[t,n])}registerExtension(t){Xr[t.name]=t}async invokeExtension(t,n){const o=Xr[t];if(!o)throw new O({message:`扩展${t} 必须先注册`});return await o.invoke(n,this)}useAdapters(t){const{adapter:n,runtime:o}=qm(t)||{};n&&(X.adapter=n),o&&(X.runtime=o)}}var Ka=new $s;function fo(e,t,n){n===void 0&&(n={});var o=/\?/.test(t),s="";for(var r in n)s===""?!o&&(t+="?"):s+="&",s+=r+"="+encodeURIComponent(n[r]);return/^http(s)?:\/\//.test(t+=s)?t:""+e+t}class o_{get(t){const{url:n,data:o,headers:s,timeout:r}=t;return new Promise((i,c)=>{q.request({url:fo("https:",n),data:o,method:"GET",header:s,timeout:r,success(u){i(u)},fail(u){c(u)}})})}post(t){const{url:n,data:o,headers:s,timeout:r}=t;return new Promise((i,c)=>{q.request({url:fo("https:",n),data:o,method:"POST",header:s,timeout:r,success(u){i(u)},fail(u){c(u)}})})}upload(t){return new Promise((n,o)=>{const{url:s,file:r,data:i,headers:c,fileType:u}=t,a=q.uploadFile({url:fo("https:",s),name:"file",formData:Object.assign({},i),filePath:r,fileType:u,header:c,success(f){const l={statusCode:f.statusCode,data:f.data||{}};f.statusCode===200&&i.success_action_status&&(l.statusCode=parseInt(i.success_action_status,10)),n(l)},fail(f){o(new Error(f.errMsg||"uploadFile:fail"))}});typeof t.onUploadProgress=="function"&&a&&typeof a.onProgressUpdate=="function"&&a.onProgressUpdate(f=>{t.onUploadProgress({loaded:f.totalBytesSent,total:f.totalBytesExpectedToSend})})})}}const s_={setItem(e,t){q.setStorageSync(e,t)},getItem:e=>q.getStorageSync(e),removeItem(e){q.removeStorageSync(e)},clear(){q.clearStorageSync()}};var r_={genAdapter:function(){return{root:{},reqClass:o_,localStorage:s_,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Ka.useAdapters(r_);const Ls=Ka,i_=Ls.init;Ls.init=function(e){e.env=e.spaceId;const t=i_.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(o){const s=n.call(this,o);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach(r=>{var i;s[r]=(i=s[r],function(c){c=c||{};const{success:u,fail:a,complete:f}=ka(c);if(!(u||a||f))return i.call(this,c);i.call(this,c).then(l=>{u&&u(l),f&&f(l)},l=>{a&&a(l),f&&f(l)})}).bind(s)}),s},t.customAuth=t.auth,t};var Qr=Ls;async function c_(e,t){const n=`http://${e}:${t}/system/ping`;try{const s=await(o={url:n,timeout:500},new Promise((r,i)=>{q.request({...o,success(c){r(c)},fail(c){i(c)}})}));return!(!s.data||s.data.code!==0)}catch{return!1}var o}async function Va(e,t){let n;for(let o=0;o<e.length;o++){const s=e[o];if(await c_(s,t)){n=s;break}}return{address:n,port:t}}const a_={"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"};var u_=class{constructor(e){if(["spaceId","clientSecret"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),!e.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},e),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=q}async request(e,t=!0){const n=t;return e=n?await this.setupLocalRequest(e):this.setupRequest(e),Promise.resolve().then(()=>n?this.requestLocal(e):ut.wrappedRequest(e,this.adapter.request))}requestLocal(e){return new Promise((t,n)=>{this.adapter.request(Object.assign(e,{complete(o){if(o||(o={}),!o.statusCode||o.statusCode>=400){const s=o.data&&o.data.code||"SYS_ERR",r=o.data&&o.data.message||"request:fail";return n(new O({code:s,message:r}))}t({success:!0,result:o.data})}}))})}setupRequest(e){const t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=ut.sign(t,this.config.clientSecret);const o=Jo();n["x-client-info"]=encodeURIComponent(JSON.stringify(o));const{token:s}=jt();return n["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}async setupLocalRequest(e){const t=Jo(),{token:n}=jt(),o=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:t,token:n}),{address:s,servePort:r}=this.__dev__&&this.__dev__.debugInfo||{},{address:i}=await Va(s,r);return{url:`http://${i}:${r}/${a_[e.method]}`,method:"POST",data:o,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))}}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}getUploadFileOptions(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}reportUploadFile(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:o}){if(!t)throw new O({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let s;return this.getUploadFileOptions({cloudPath:t}).then(r=>{const{url:i,formData:c,name:u}=r.result;return s=r.result.fileUrl,new Promise((a,f)=>{const l=this.adapter.uploadFile({url:i,formData:c,name:u,filePath:e,fileType:n,success(h){h&&h.statusCode<400?a(h):f(new O({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(h){f(new O({code:h.code||"UPLOAD_FAILED",message:h.message||h.errMsg||"文件上传失败"}))}});typeof o=="function"&&l&&typeof l.onProgressUpdate=="function"&&l.onProgressUpdate(h=>{o({loaded:h.totalBytesSent,total:h.totalBytesExpectedToSend})})})}).then(()=>this.reportUploadFile({cloudPath:t})).then(r=>new Promise((i,c)=>{r.success?i({success:!0,filePath:e,fileID:s}):c(new O({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(t).then(n=>{if(n.success)return n.result;throw new O({code:"DELETE_FILE_FAILED",message:"删除文件失败"})})}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||e.length===0)throw new O({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(n).then(o=>{if(o.success)return{fileList:o.result.fileList.map(s=>({fileID:s.fileID,tempFileURL:s.tempFileURL}))};throw new O({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})})}},Zr={init(e){const t=new u_(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},kt=ye(function(e,t){e.exports=Le.enc.Hex});function Wa(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)})}function za(e="",t={}){const{data:n,functionName:o,method:s,headers:r,signHeaderKeys:i=[],config:c}=t,u=String(Date.now()),a=Wa(),f=Object.assign({},r,{"x-from-app-id":c.spaceAppId,"x-from-env-id":c.spaceId,"x-to-env-id":c.spaceId,"x-from-instance-id":u,"x-from-function-name":o,"x-client-timestamp":u,"x-alipay-source":"client","x-request-id":a,"x-alipay-callid":a,"x-trace-id":a}),l=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(i),[h="",g=""]=e.split("?")||[],_=function(p){const d=p.signedHeaders.join(";"),m=p.signedHeaders.map(L=>`${L.toLowerCase()}:${p.headers[L]}
| `).join(""),w=Go(p.body).toString(kt),y=`${p.method.toUpperCase()}
| ${p.path}
| ${p.query}
| ${m}
| ${d}
| ${w}
| `,b=Go(y).toString(kt),P=`HMAC-SHA256
| ${p.timestamp}
| ${b}
| `,v=Na(P,p.secretKey).toString(kt);return`HMAC-SHA256 Credential=${p.secretId}, SignedHeaders=${d}, Signature=${v}`}({path:h,query:g,method:s,headers:f,timestamp:u,body:JSON.stringify(n),secretId:c.accessKey,secretKey:c.secretKey,signedHeaders:l.sort()});return{url:`${c.endpoint}${e}`,headers:Object.assign({},f,{Authorization:_})}}function Ja({url:e,data:t,method:n="POST",headers:o={},timeout:s}){return new Promise((r,i)=>{q.request({url:e,method:n,data:typeof t=="object"?JSON.stringify(t):t,header:o,dataType:"json",timeout:s,complete:(c={})=>{const u=o["x-trace-id"]||"";if(!c.statusCode||c.statusCode>=400){const{message:a,errMsg:f,trace_id:l}=c.data||{};return i(new O({code:"SYS_ERR",message:a||f||"request:fail",requestId:l||u}))}r({status:c.statusCode,data:c.data,headers:c.header,requestId:u})}})})}function ei(e,t){const{path:n,data:o,method:s="GET"}=e,{url:r,headers:i}=za(n,{functionName:"",data:o,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:t});return Ja({url:r,data:o,method:s,headers:i}).then(c=>{const u=c.data||{};if(!u.success)throw new O({code:c.errCode,message:c.errMsg,requestId:c.requestId});return u.data||{}}).catch(c=>{throw new O({code:c.errCode,message:c.errMsg,requestId:c.requestId})})}function l_(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new O({code:"INVALID_PARAM",message:"fileID不合法"});const o=t.substring(0,n),s=t.substring(n+1);return o!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),s}function f_(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}class d_{constructor(t){this.config=t}signedURL(t,n={}){const o=`/ws/function/${t}`,s=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),r=Object.assign({},n,{accessKeyId:this.config.accessKey,signatureNonce:Wa(),timestamp:""+Date.now()}),i=[o,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map(function(f){return r[f]?"".concat(f,"=").concat(r[f]):null}).filter(Boolean).join("&"),`host:${s}`].join(`
| `),c=["HMAC-SHA256",Go(i).toString(kt)].join(`
| `),u=Na(c,this.config.secretKey).toString(kt),a=Object.keys(r).map(f=>`${f}=${encodeURIComponent(r[f])}`).join("&");return`${this.config.wsEndpoint}${o}?${a}&signature=${u}`}}var p_=class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),e.endpoint){if(typeof e.endpoint!="string")throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:e.wsEndpoint||`wss://${e.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new d_(this.config)}callFunction(e){return function(t,n){const{name:o,data:s,async:r=!1,timeout:i}=t,c="POST",u={"x-to-function-name":o};r&&(u["x-function-invoke-type"]="async");const{url:a,headers:f}=za("/functions/invokeFunction",{functionName:o,data:s,method:c,headers:u,signHeaderKeys:["x-to-function-name"],config:n});return Ja({url:a,data:s,method:c,headers:f,timeout:i}).then(l=>{let h=0;if(r){const g=l.data||{};h=g.errCode==="200"?0:g.errCode,l.data=g.data||{},l.errMsg=g.errMsg}if(h!==0)throw new O({code:h,message:l.errMsg,requestId:l.requestId});return{errCode:h,success:h===0,requestId:l.requestId,result:l.data}}).catch(l=>{throw new O({code:l.errCode,message:l.errMsg,requestId:l.requestId})})}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:o,onUploadProgress:s}){return new Promise((r,i)=>{const c=q.uploadFile({url:e,filePath:t,fileType:n,formData:o,name:"file",success(u){u&&u.statusCode<400?r(u):i(new O({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(u){i(new O({code:u.code||"UPLOAD_FAILED",message:u.message||u.errMsg||"文件上传失败"}))}});typeof s=="function"&&c&&typeof c.onProgressUpdate=="function"&&c.onProgressUpdate(u=>{s({loaded:u.totalBytesSent,total:u.totalBytesExpectedToSend})})})}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:o}){if(Dt(t)!=="string")throw new O({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new O({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new O({code:"INVALID_PARAM",message:"cloudPath不合法"});const s=await ei({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:r,upload_url:i,form_data:c}=s,u=c&&c.reduce((a,f)=>(a[f.key]=f.value,a),{});return this.uploadFileToOSS({url:i,filePath:e,fileType:n,formData:u,onUploadProgress:o}).then(()=>({fileID:r}))}async getTempFileURL({fileList:e}){return new Promise((t,n)=>{(!e||e.length<0)&&t({code:"INVALID_PARAM",message:"fileList不能为空数组"}),e.length>50&&t({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});const o=[];for(const s of e){let r;Dt(s)!=="string"&&t({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{r=l_.call(this,s)}catch(i){console.warn(i.errCode,i.errMsg),r=s}o.push({file_id:r,expire:600})}ei({path:"/?download_url",data:{file_list:o},method:"POST"},this.config).then(s=>{const{file_list:r=[]}=s;t({fileList:r.map(i=>({fileID:f_.call(this,i.file_id),tempFileURL:i.download_url}))})}).catch(s=>n(s))})}async connectWebSocket(e){const{name:t,query:n}=e;return q.connectSocket({url:this._websocket.signedURL(t,n),complete:()=>{}})}},h_={init:e=>{e.provider="alipay";const t=new p_(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Ga({data:e}){let t;t=Jo();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:o}=jt();o&&(n.uniIdToken=o)}return n}async function ti(e={}){await this.__dev__.initLocalNetwork();const{localAddress:t,localPort:n}=this.__dev__,o={aliyun:"aliyun",tencent:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],s=this.config.spaceId,r=`http://${t}:${n}/system/check-function`,i=`http://${t}:${n}/cloudfunctions/${e.name}`;return new Promise((c,u)=>{q.request({method:"POST",url:r,data:{name:e.name,platform:Qe,provider:o,spaceId:s},timeout:3e3,success(a){c(a)},fail(){c({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})}).then(({data:c}={})=>{const{code:u,message:a}=c||{};return{code:u===0?0:u||"SYS_ERR",message:a||"SYS_ERR"}}).then(({code:c,message:u})=>{if(c!==0){switch(c){case"MODULE_ENCRYPTED":console.error(`此云函数(${e.name})依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数`);break;case"FUNCTION_ENCRYPTED":console.error(`此云函数(${e.name})已加密不可本地调试,自动切换为云端已部署的云函数`);break;case"ACTION_ENCRYPTED":console.error(u||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":console.error(u||"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下");break;case"SWITCH_TO_CLOUD":break;default:{const a=`检测本地调试服务出现错误:${u},请检查网络环境或重启客户端再试`;throw console.error(a),new Error(a)}}return this._callCloudFunction(e)}return new Promise((a,f)=>{const l=Ga.call(this,{data:e.data});q.request({method:"POST",url:i,data:{provider:o,platform:Qe,param:l},timeout:e.timeout,success:({statusCode:h,data:g}={})=>!h||h>=400?f(new O({code:g.code||"SYS_ERR",message:g.message||"request:fail"})):a({result:g}),fail(h){f(new O({code:h.code||h.errCode||"SYS_ERR",message:h.message||h.errMsg||"request:fail"}))}})})})}const g_=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Ya=/[\\^$.*+?()[\]{}|]/g,m_=RegExp(Ya.source);function ni(e,t,n){return e.replace(new RegExp((o=t)&&m_.test(o)?o.replace(Ya,"\\$&"):o,"g"),n);var o}const __="request",y_="response",w_="both",b_={code:2e4,message:"System error"},v_={code:20101,message:"Invalid client"};function Xa(e){const{errSubject:t,subject:n,errCode:o,errMsg:s,code:r,message:i,cause:c}=e||{};return new O({subject:t||n||"uni-secure-network",code:o||r||b_.code,message:s||i,cause:c})}let Xo;function oi({secretType:e}={}){return e===__||e===y_||e===w_}function si({name:e,data:t={}}={}){return Qe==="app"}function S_({provider:e,spaceId:t,functionName:n}={}){const{appId:o,uniPlatform:s,osName:r}=Ra();let i=s;s==="app"&&(i=r);const c=function({provider:l,spaceId:h}={}){const g=Em;if(!g)return{};l=function(p){return p==="tencent"?"tcb":p}(l);const _=g.find(p=>p.provider===l&&p.spaceId===h);return _&&_.config}({provider:e,spaceId:t});if(!c||!c.accessControl||!c.accessControl.enable)return!1;const u=c.accessControl.function||{},a=Object.keys(u);if(a.length===0)return!0;const f=function(l,h){let g,_,p;for(let d=0;d<l.length;d++){const m=l[d];m!==h?m!=="*"?m.split(",").map(w=>w.trim()).indexOf(h)>-1&&(_=m):p=m:g=m}return g||_||p}(a,n);if(!f)return!1;if((u[f]||[]).find((l={})=>l.appId===o&&(l.platform||"").toLowerCase()===i.toLowerCase()))return!0;throw console.error(`此应用[appId: ${o}, platform: ${i}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Xa(v_)}function ri({functionName:e,result:t,logPvd:n}){if(this.__dev__.debugLog&&t&&t.requestId){const o=JSON.stringify({spaceId:this.config.spaceId,functionName:e,requestId:t.requestId});console.log(`[${n}-request]${o}[/${n}-request]`)}}function I_(e){const t=e.callFunction,n=function(o){const s=o.name;o.data=Ga.call(e,{data:o.data});const r={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],i=oi(o),c=si(o),u=i||c;return t.call(this,o).then(a=>(a.errCode=0,!u&&ri.call(this,{functionName:s,result:a,logPvd:r}),Promise.resolve(a)),a=>(!u&&ri.call(this,{functionName:s,result:a,logPvd:r}),a&&a.message&&(a.message=function({message:f="",extraInfo:l={},formatter:h=[]}={}){for(let g=0;g<h.length;g++){const{rule:_,content:p,mode:d}=h[g],m=f.match(_);if(!m)continue;let w=p;for(let y=1;y<m.length;y++)w=ni(w,`{$${y}}`,m[y]);for(const y in l)w=ni(w,`{${y}}`,l[y]);return d==="replace"?w:f+w}return f}({message:`[${o.name}]: ${a.message}`,formatter:g_,extraInfo:{functionName:s}})),Promise.reject(a)))};e.callFunction=function(o){const{provider:s,spaceId:r}=e.config,i=o.name;let c,u;return o.data=o.data||{},e.__dev__.debugInfo&&!e.__dev__.debugInfo.forceRemote&&Ta?(e._callCloudFunction||(e._callCloudFunction=n,e._callLocalFunction=ti),c=ti):c=n,c=c.bind(e),si(o)||(function({name:a,data:f={}}){return a==="uni-id-co"&&f.method==="secureNetworkHandshakeByWeixin"}(o)?u=c.call(e,o):oi(o)?u=new Xo({secretType:o.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(o):S_({provider:s,spaceId:r,functionName:i})?u=new Xo({secretType:o.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(o):u=c(o)),Object.defineProperty(u,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),u.then(a=>(typeof UTSJSONObject<"u"&&typeof UTS<"u"&&(a.result=UTS.JSON.parse(JSON.stringify(a.result))),a))}}Xo=class{constructor(){throw Xa({message:`Platform ${Qe} is not enabled, please check whether secure network module is enabled in your manifest.json`})}};const Qa=Symbol("CLIENT_DB_INTERNAL");function En(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Qa,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(n,o,s){if(o==="_uniClient")return null;if(typeof o=="symbol")return n[o];if(o in n||typeof o!="string"){const r=n[o];return typeof r=="function"?r.bind(n):r}return t.get(n,o,s)}})}function ii(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const o=e[t].indexOf(n);o!==-1&&e[t].splice(o,1)}}}const x_=["db.Geo","db.command","command.aggregate"];function Za(e,t){return x_.indexOf(`${e}.${t}`)>-1}function ze(e){switch(Dt(e=$a(e))){case"array":return e.map(t=>ze(t));case"object":return e._internalType===Qa||Object.keys(e).forEach(t=>{e[t]=ze(e[t])}),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function At(e){return e&&e.content&&e.content.$method}class P_{constructor(t,n,o){this.content=t,this.prevStage=n||null,this.udb=null,this._database=o}toJSON(){let t=this;const n=[t.content];for(;t.prevStage;)t=t.prevStage,n.push(t.content);return{$db:n.reverse().map(o=>({$method:o.$method,$param:ze(o.$param)}))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const t=this.toJSON().$db.find(n=>n.$method==="action");return t&&t.$param&&t.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter(t=>t.$method!=="action")}}get isAggregate(){let t=this;for(;t;){const n=At(t),o=At(t.prevStage);if(n==="aggregate"&&o==="collection"||n==="pipeline")return!0;t=t.prevStage}return!1}get isCommand(){let t=this;for(;t;){if(At(t)==="command")return!0;t=t.prevStage}return!1}get isAggregateCommand(){let t=this;for(;t;){const n=At(t),o=At(t.prevStage);if(n==="aggregate"&&o==="command")return!0;t=t.prevStage}return!1}getNextStageFn(t){const n=this;return function(){return Ut({$method:t,$param:ze(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禁止使用set方法")}}_send(t,n){const o=this.getAction(),s=this.getCommand();if(s.$db.push({$method:t,$param:ze(n)}),Tm){const r=s.$db.find(c=>c.$method==="collection"),i=r&&r.$param;i&&i.length===1&&typeof r.$param[0]=="string"&&r.$param[0].indexOf(",")>-1&&console.warn(`检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。
| - 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp
| - 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。`)}return this._database._callCloudFunction({action:o,command:s})}}function Ut(e,t,n){return En(new P_(e,t,n),{get(o,s){let r="db";return o&&o.content&&(r=o.content.$method),Za(r,s)?Ut({$method:s},o,n):function(){return Ut({$method:s,$param:ze(Array.from(arguments))},o,n)}}})}function po({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map(n=>({$method:n})),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function ci(e,t={}){return En(new e(t),{get:(n,o)=>Za("db",o)?Ut({$method:o},null,n):function(){return Ut({$method:o,$param:ze(Array.from(arguments))},null,n)}})}class ai extends class{constructor({uniClient:t={},isJQL:n=!1}={}){this._uniClient=t,this._authCallBacks={},this._dbCallBacks={},t._isDefault&&(this._dbCallBacks=yt("_globalUniCloudDatabaseCallback")),n||(this.auth=ii(this._authCallBacks)),this._isJQL=n,Object.assign(this,ii(this._dbCallBacks)),this.env=En({},{get:(o,s)=>({$env:s})}),this.Geo=En({},{get:(o,s)=>po({path:["Geo"],method:s})}),this.serverDate=po({path:[],method:"serverDate"}),this.RegExp=po({path:[],method:"RegExp"})}getCloudEnv(t){if(typeof t!="string"||!t.trim())throw new Error("getCloudEnv参数错误");return{$env:t.replace("$cloudEnv_","")}}_callback(t,n){const o=this._dbCallBacks;o[t]&&o[t].forEach(s=>{s(...n)})}_callbackAuth(t,n){const o=this._authCallBacks;o[t]&&o[t].forEach(s=>{s(...n)})}multiSend(){const t=Array.from(arguments),n=t.map(o=>{const s=o.getAction(),r=o.getCommand();if(r.$db[r.$db.length-1].$method!=="getTemp")throw new Error("multiSend只支持子命令内使用getTemp");return{action:s,command:r}});return this._callCloudFunction({multiCommand:n,queryList:t})}}{_parseResult(t){return this._isJQL?t.result:t}_callCloudFunction({action:t,command:n,multiCommand:o,queryList:s}){function r(l,h){if(o&&s)for(let g=0;g<s.length;g++){const _=s[g];_.udb&&typeof _.udb.setResult=="function"&&(h?_.udb.setResult(h):_.udb.setResult(l.result.dataList[g]))}}const i=this,c=this._isJQL?"databaseForJQL":"database";function u(l){return i._callback("error",[l]),ne(oe(c,"fail"),l).then(()=>ne(oe(c,"complete"),l)).then(()=>(r(null,l),ce(me,{type:jr,content:l}),Promise.reject(l)))}const a=ne(oe(c,"invoke")),f=this._uniClient;return a.then(()=>f.callFunction({name:"DCloud-clientDB",type:xm,data:{action:t,command:n,multiCommand:o}})).then(l=>{const{code:h,message:g,token:_,tokenExpired:p,systemInfo:d=[]}=l.result;if(d)for(let w=0;w<d.length;w++){const{level:y,message:b,detail:P}=d[w],v=console[y]||console.log;let L="[System Info]"+b;P&&(L=`${L}
| 详细信息:${P}`),v(L)}if(h)return u(new O({code:h,message:g,requestId:l.requestId}));l.result.errCode=l.result.errCode||l.result.code,l.result.errMsg=l.result.errMsg||l.result.message,_&&p&&(La({token:_,tokenExpired:p}),this._callbackAuth("refreshToken",[{token:_,tokenExpired:p}]),this._callback("refreshToken",[{token:_,tokenExpired:p}]),ce(On,{token:_,tokenExpired:p}));const m=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}];for(let w=0;w<m.length;w++){const{prop:y,tips:b}=m[w];if(y in l.result){const P=l.result[y];Object.defineProperty(l.result,y,{get:()=>(console.warn(b),P)})}}return function(w){return ne(oe(c,"success"),w).then(()=>ne(oe(c,"complete"),w)).then(()=>{r(w,null);const y=i._parseResult(w);return ce(me,{type:jr,content:y}),Promise.resolve(y)})}(l)},l=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(l.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),u(new O({code:l.code||"SYSTEM_ERROR",message:l.message,requestId:l.requestId}))))}}const qe="token无效,跳转登录页面",eu="token过期,跳转登录页面",A_={TOKEN_INVALID_TOKEN_EXPIRED:eu,TOKEN_INVALID_INVALID_CLIENTID:qe,TOKEN_INVALID:qe,TOKEN_INVALID_WRONG_TOKEN:qe,TOKEN_INVALID_ANONYMOUS_USER:qe},Qo={"uni-id-token-expired":eu,"uni-id-check-token-failed":qe,"uni-id-token-not-exist":qe,"uni-id-check-device-feature-failed":qe};function ui(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function li(e=[],t=""){const n=[],o=[];return e.forEach(s=>{s.needLogin===!0?n.push(ui(t,s.path)):s.needLogin===!1&&o.push(ui(t,s.path))}),{needLoginPage:n,notNeedLoginPage:o}}function Ht(e){return e.split("?")[0].replace(/^\//,"")}function Rs(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t&&(t.charAt(0)!=="/"&&(t="/"+t),t)}(function(){const e=getCurrentPages();return e[e.length-1]}())}function tu(){return Ht(Rs())}function T_(e="",t={}){if(!e||!(t&&t.list&&t.list.length))return!1;const n=t.list,o=Ht(e);return n.some(s=>s.pagePath===o)}const O_=!!Ia.uniIdRouter,{loginPage:Ft,routerNeedLogin:E_,resToLogin:C_,needLoginPage:nu,notNeedLoginPage:k_,loginPageInTabBar:$_}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:o={}}=Ia){const{loginPage:s,needLogin:r=[],resToLogin:i=!0}=n,{needLoginPage:c,notNeedLoginPage:u}=li(e),{needLoginPage:a,notNeedLoginPage:f}=function(l=[]){const h=[],g=[];return l.forEach(_=>{const{root:p,pages:d=[]}=_,{needLoginPage:m,notNeedLoginPage:w}=li(d,p);h.push(...m),g.push(...w)}),{needLoginPage:h,notNeedLoginPage:g}}(t);return{loginPage:s,routerNeedLogin:r,resToLogin:i,needLoginPage:[...c,...a],notNeedLoginPage:[...u,...f],loginPageInTabBar:T_(s,o)}}();if(nu.indexOf(Ft)>-1)throw new Error(`Login page [${Ft}] should not be "needLogin", please check your pages.json`);function ou(e){const t=tu();if(e.charAt(0)==="/")return e;const[n,o]=e.split("?"),s=n.replace(/^\//,"").split("/"),r=t.split("/");r.pop();for(let i=0;i<s.length;i++){const c=s[i];c===".."?r.pop():c!=="."&&r.push(c)}return r[0]===""&&r.shift(),"/"+r.join("/")+(o?"?"+o:"")}function L_(e){const t=Ht(ou(e));return!(k_.indexOf(t)>-1)&&(nu.indexOf(t)>-1||E_.some(n=>function(o,s){return new RegExp(s).test(o)}(e,n)))}function su({redirect:e}){const t=Ht(e),n=Ht(Ft);return tu()!==n&&t!==n}function Zo({api:e,redirect:t}={}){if(!t||!su({redirect:t}))return;const n=function(s,r){return s.charAt(0)!=="/"&&(s="/"+s),r?s.indexOf("?")>-1?s+`&uniIdRedirectUrl=${encodeURIComponent(r)}`:s+`?uniIdRedirectUrl=${encodeURIComponent(r)}`:s}(Ft,t);$_?e!=="navigateTo"&&e!=="redirectTo"||(e="switchTab"):e==="switchTab"&&(e="navigateTo");const o={navigateTo:$.navigateTo,redirectTo:$.redirectTo,switchTab:$.switchTab,reLaunch:$.reLaunch};setTimeout(()=>{o[e]({url:n})},0)}function fi({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:o,tokenExpired:s}=jt();let r;if(o){if(s<Date.now()){const i="uni-id-token-expired";r={errCode:i,errMsg:Qo[i]}}}else{const i="uni-id-check-token-failed";r={errCode:i,errMsg:Qo[i]}}return r}();if(L_(e)&&n){if(n.uniIdRedirectUrl=e,zt(wt).length>0)return setTimeout(()=>{ce(wt,n)},0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function R_(){(function(){const t=Rs(),{abortLoginPageJump:n,autoToLoginPage:o}=fi({url:t});n||o&&Zo({api:"redirectTo",redirect:t})})();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const n=e[t];$.addInterceptor(n,{invoke(o){const{abortLoginPageJump:s,autoToLoginPage:r}=fi({url:o.url});return s?o:r?(Zo({api:n,redirect:ou(o.url)}),!1):o}})}}function N_(){this.onResponse(e=>{const{type:t,content:n}=e;let o=!1;switch(t){case"cloudobject":o=function(s){if(typeof s!="object")return!1;const{errCode:r}=s||{};return r in Qo}(n);break;case"clientdb":o=function(s){if(typeof s!="object")return!1;const{errCode:r}=s||{};return r in A_}(n)}o&&function(s={}){const r=zt(wt);Ca().then(()=>{const i=Rs();if(i&&su({redirect:i}))return r.length>0?ce(wt,Object.assign({uniIdRedirectUrl:i},s)):void(Ft&&Zo({api:"navigateTo",redirect:i}))})}(n)})}function M_(e){(function(t){t.onResponse=function(n){no(me,n)},t.offResponse=function(n){oo(me,n)}})(e),function(t){t.onNeedLogin=function(n){no(wt,n)},t.offNeedLogin=function(n){oo(wt,n)},O_&&(yt("_globalUniCloudStatus").needLoginInit||(yt("_globalUniCloudStatus").needLoginInit=!0,Ca().then(()=>{R_.call(t)}),C_&&N_.call(t)))}(e),function(t){t.onRefreshToken=function(n){no(On,n)},t.offRefreshToken=function(n){oo(On,n)}}(e)}let ru;const cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",D_=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function j_(){const e=jt().token||"",t=e.split(".");if(!e||t.length!==3)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((o=t[1],decodeURIComponent(ru(o).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(s){throw new Error("获取当前用户信息出错,详细错误信息为:"+s.message)}var o;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}ru=typeof atob!="function"?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!D_.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,o,s="",r=0;r<e.length;)t=cn.indexOf(e.charAt(r++))<<18|cn.indexOf(e.charAt(r++))<<12|(n=cn.indexOf(e.charAt(r++)))<<6|(o=cn.indexOf(e.charAt(r++))),s+=n===64?String.fromCharCode(t>>16&255):o===64?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return s}:atob;var U_=ye(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function s(i,c){return i.tempFiles.forEach((u,a)=>{u.name||(u.name=u.path.substring(u.path.lastIndexOf("/")+1)),c&&(u.fileType=c),u.cloudPath=Date.now()+"_"+a+u.name.substring(u.name.lastIndexOf("."))}),i.tempFilePaths||(i.tempFilePaths=i.tempFiles.map(u=>u.path)),i}function r(i,c,{onChooseFile:u,onUploadProgress:a}){return c.then(f=>{if(u){const l=u(f);if(l!==void 0)return Promise.resolve(l).then(h=>h===void 0?f:h)}return f}).then(f=>f===!1?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(l,h,g=5,_){(h=Object.assign({},h)).errMsg=n;const p=h.tempFiles,d=p.length;let m=0;return new Promise(w=>{for(;m<g;)y();function y(){const b=m++;if(b>=d)return void(!p.find(v=>!v.url&&!v.errMsg)&&w(h));const P=p[b];l.uploadFile({provider:P.provider,filePath:P.path,cloudPath:P.cloudPath,fileType:P.fileType,cloudPathAsRealPath:P.cloudPathAsRealPath,onUploadProgress(v){v.index=b,v.tempFile=P,v.tempFilePath=P.path,_&&_(v)}}).then(v=>{P.url=v.fileID,b<d&&y()}).catch(v=>{P.errMsg=v.errMsg||v.message,b<d&&y()})}})}(i,f,5,a))}t.initChooseAndUploadFile=function(i){return function(c={type:"all"}){return c.type==="image"?r(i,function(u){const{count:a,sizeType:f,sourceType:l=["album","camera"],extension:h}=u;return new Promise((g,_)=>{$.chooseImage({count:a,sizeType:f,sourceType:l,extension:h,success(p){g(s(p,"image"))},fail(p){_({errMsg:p.errMsg.replace("chooseImage:fail",o)})}})})}(c),c):c.type==="video"?r(i,function(u){const{camera:a,compressed:f,maxDuration:l,sourceType:h=["album","camera"],extension:g}=u;return new Promise((_,p)=>{$.chooseVideo({camera:a,compressed:f,maxDuration:l,sourceType:h,extension:g,success(d){const{tempFilePath:m,duration:w,size:y,height:b,width:P}=d;_(s({errMsg:"chooseVideo:ok",tempFilePaths:[m],tempFiles:[{name:d.tempFile&&d.tempFile.name||"",path:m,size:y,type:d.tempFile&&d.tempFile.type||"",width:P,height:b,duration:w,fileType:"video",cloudPath:""}]},"video"))},fail(d){p({errMsg:d.errMsg.replace("chooseVideo:fail",o)})}})})}(c),c):r(i,function(u){const{count:a,extension:f}=u;return new Promise((l,h)=>{let g=$.chooseFile;if(typeof dt<"u"&&typeof dt.chooseMessageFile=="function"&&(g=dt.chooseMessageFile),typeof g!="function")return h({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});g({type:"all",count:a,extension:f,success(_){l(s(_))},fail(_){h({errMsg:_.errMsg.replace("chooseFile:fail",o)})}})})}(c),c)}}}),H_=ym(U_);const F_="manual";function iu(e){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 t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach(n=>{t.push(this[n])}),t},(t,n)=>{if(this.loadtime===F_)return;let o=!1;const s=[];for(let r=2;r<t.length;r++)t[r]!==n[r]&&(s.push(t[r]),o=!0);t[0]!==n[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(o,s)})},methods:{onMixinDatacomPropsChange(t,n){},mixinDatacomEasyGet({getone:t=!1,success:n,fail:o}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then(s=>{this.mixinDatacomLoading=!1;const{data:r,count:i}=s.result;this.getcount&&(this.mixinDatacomPage.count=i),this.mixinDatacomHasMore=r.length<this.pageSize;const c=t?r.length?r[0]:void 0:r;this.mixinDatacomResData=c,n&&n(c)}).catch(s=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=s,this.mixinDatacomError=s,o&&o(s)}))},mixinDatacomGet(t={}){let n;t=t||{},n=typeof __uniX<"u"&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const o=t.action||this.action;o&&(n=n.action(o));const s=t.collection||this.collection;n=Array.isArray(s)?n.collection(...s):n.collection(s);const r=t.where||this.where;r&&Object.keys(r).length&&(n=n.where(r));const i=t.field||this.field;i&&(n=n.field(i));const c=t.foreignKey||this.foreignKey;c&&(n=n.foreignKey(c));const u=t.groupby||this.groupby;u&&(n=n.groupBy(u));const a=t.groupField||this.groupField;a&&(n=n.groupField(a)),(t.distinct!==void 0?t.distinct:this.distinct)===!0&&(n=n.distinct());const f=t.orderby||this.orderby;f&&(n=n.orderBy(f));const l=t.pageCurrent!==void 0?t.pageCurrent:this.mixinDatacomPage.current,h=t.pageSize!==void 0?t.pageSize:this.mixinDatacomPage.size,g=t.getcount!==void 0?t.getcount:this.getcount,_=t.gettree!==void 0?t.gettree:this.gettree,p=t.gettreepath!==void 0?t.gettreepath:this.gettreepath,d={getCount:g},m={limitLevel:t.limitlevel!==void 0?t.limitlevel:this.limitlevel,startWith:t.startwith!==void 0?t.startwith:this.startwith};return _&&(d.getTree=m),p&&(d.getTreePath=m),n=n.skip(h*(l-1)).limit(h).get(d),n}}}}function q_(e){return function(t,n={}){n=function(u,a={}){return u.customUI=a.customUI||u.customUI,u.parseSystemError=a.parseSystemError||u.parseSystemError,Object.assign(u.loadingOptions,a.loadingOptions),Object.assign(u.errorOptions,a.errorOptions),typeof a.secretMethods=="object"&&(u.secretMethods=a.secretMethods),u}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:o,loadingOptions:s,errorOptions:r,parseSystemError:i}=n,c=!o;return new Proxy({},{get(u,a){switch(a){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:f,interceptorName:l,getCallbackArgs:h}={}){return async function(...g){const _=h?h({params:g}):{};let p,d;try{return await ne(oe(l,"invoke"),{..._}),p=await f(...g),await ne(oe(l,"success"),{..._,result:p}),p}catch(m){throw d=m,await ne(oe(l,"fail"),{..._,error:d}),d}finally{await ne(oe(l,"complete"),d?{..._,error:d}:{..._,result:p})}}}({fn:async function f(...l){let h;c&&$.showLoading({title:s.title,mask:s.mask});const g={name:t,type:Im,data:{method:a,params:l}};typeof n.secretMethods=="object"&&function(y,b){const P=b.data.method,v=y.secretMethods||{},L=v[P]||v["*"];L&&(b.secretType=L)}(n,g);let _=!1;try{h=await e.callFunction(g)}catch(y){_=!0,h={result:new O(y)}}const{errSubject:p,errCode:d,errMsg:m,newToken:w}=h.result||{};if(c&&$.hideLoading(),w&&w.token&&w.tokenExpired&&(La(w),ce(On,{...w})),d){let y=m;if(_&&i&&(y=(await i({objectName:t,methodName:a,params:l,errSubject:p,errCode:d,errMsg:m})).errMsg||m),c)if(r.type==="toast")$.showToast({title:y,icon:"none"});else{if(r.type!=="modal")throw new Error(`Invalid errorOptions.type: ${r.type}`);{const{confirm:P}=await async function({title:v,content:L,showCancel:N,cancelText:B,confirmText:ie}={}){return new Promise((Y,fe)=>{$.showModal({title:v,content:L,showCancel:N,cancelText:B,confirmText:ie,success(ae){Y(ae)},fail(){Y({confirm:!1,cancel:!0})}})})}({title:"提示",content:y,showCancel:r.retry,cancelText:"取消",confirmText:r.retry?"重试":"确定"});if(r.retry&&P)return f(...l)}}const b=new O({subject:p,code:d,message:m,requestId:h.requestId});throw b.detail=h.result,ce(me,{type:Ur,content:b}),b}return ce(me,{type:Ur,content:h.result}),h.result},interceptorName:"callObject",getCallbackArgs:function({params:f}={}){return{objectName:t,methodName:a,params:f}}})}})}}function cu(e){return yt("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function B_({openid:e,callLoginByWeixin:t=!1}={}){const n=cu(this);if(e&&t)throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");if(e)return n.mpWeixinOpenid=e,{};const o=await new Promise((r,i)=>{$.login({success(c){r(c.code)},fail(c){i(new Error(c.errMsg))}})});return await this.importObject("uni-id-co",{customUI:!0}).secureNetworkHandshakeByWeixin({code:o,callLoginByWeixin:t}),n.mpWeixinCode=o,{code:o}}async function K_(e){const t=cu(this);return t.initPromise||(t.initPromise=B_.call(this,e).then(n=>n).catch(n=>{throw delete t.initPromise,n})),t.initPromise}function V_(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return K_.call(e,{openid:t,callLoginByWeixin:n})}}function W_(e){(function(t){zo=t})(e)}function di(e){const t={getSystemInfo:$.getSystemInfo,getPushClientId:$.getPushClientId};return function(n){return new Promise((o,s)=>{t[e]({...n,success(r){o(r)},fail(r){s(r)}})})}}class z_ extends class{constructor(){this._callback={}}addListener(t,n){this._callback[t]||(this._callback[t]=[]),this._callback[t].push(n)}on(t,n){return this.addListener(t,n)}removeListener(t,n){if(!n)throw new Error('The "listener" argument must be of type function. Received undefined');const o=this._callback[t];if(!o)return;const s=function(r,i){for(let c=r.length-1;c>=0;c--)if(r[c]===i)return c;return-1}(o,n);o.splice(s,1)}off(t,n){return this.removeListener(t,n)}removeAllListener(t){delete this._callback[t]}emit(t,...n){const o=this._callback[t];if(o)for(let s=0;s<o.length;s++)o[s](...n)}}{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([di("getSystemInfo")(),di("getPushClientId")()]).then(([{appId:t}={},{cid:n}={}]=[])=>{if(!t)throw new Error("Invalid appId, please check the manifest.json file");if(!n)throw new Error("Invalid push client id");this._appId=t,this._pushClientId=n,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()},t=>{throw this.emit("error",t),this.close(),t})}async open(){return this.init()}_isUniCloudSSE(t){if(t.type!=="receive")return!1;const n=t&&t.data&&t.data.payload;return!(!n||n.channel!=="UNI_CLOUD_SSE"||n.seqId!==this._seqId)}_receivePushMessage(t){if(!this._isUniCloudSSE(t))return;const n=t&&t.data&&t.data.payload,{action:o,messageId:s,message:r}=n;this._payloadQueue.push({action:o,messageId:s,message:r}),this._consumMessage()}_consumMessage(){for(;;){const t=this._payloadQueue.find(n=>n.messageId===this._currentMessageId+1);if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}_parseMessagePayload(t){const{action:n,messageId:o,message:s}=t;n==="end"?this._end({messageId:o,message:s}):n==="message"&&this._appendMessage({messageId:o,message:s})}_appendMessage({messageId:t,message:n}={}){this.emit("message",n)}_end({messageId:t,message:n}={}){this.emit("end",n),this.close()}_initMessageListener(){$.onPushMessage(this._uniPushMessageCallback)}_destroy(){$.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}async function J_(e){const t=e.__dev__;if(!t.debugInfo)return;const{address:n,servePort:o}=t.debugInfo,{address:s}=await Va(n,o);if(s)return t.localAddress=s,void(t.localPort=o);const r=console.warn;let i="";if(t.debugInfo.initialLaunchType==="remote"?(t.debugInfo.forceRemote=!0,i=`当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。
| - 如果不使用uniCloud本地调试服务,请直接忽略此信息。
| - 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。`):i=`无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。
| - 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。`,i+=`
| - 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试
| - 检查系统防火墙是否拦截了HBuilderX自带的nodejs
| - 检查是否错误的使用拦截器修改uni.request方法的参数`,Qe.indexOf("mp-")===0&&(i+=`
| - 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp`),!t.debugInfo.forceRemote)throw new Error(i);r(i)}function G_(e){e._initPromiseHub||(e._initPromiseHub=new Os({createPromise:function(){let t=Promise.resolve();var n;n=1,t=new Promise(s=>{setTimeout(()=>{s()},n)});const o=e.auth();return t.then(()=>o.getLoginState()).then(s=>s?Promise.resolve():o.signInAnonymously())}}))}const Y_={tcb:Qr,tencent:Qr,aliyun:Mm,private:Zr,dcloud:Zr,alipay:h_};let ue=new class{init(e){let t={};const n=Y_[e.provider];if(!n)throw new Error("未提供正确的provider参数");return t=n.init(e),function(o){const s={};o.__dev__=s,s.debugLog=Qe==="mp-harmony";const r=Cm;r&&!r.code&&(s.debugInfo=r);const i=new Os({createPromise:function(){return J_(o)}});s.initLocalNetwork=function(){return i.exec()}}(t),G_(t),I_(t),function(o){const s=o.uploadFile;o.uploadFile=function(r){return s.call(this,r)}}(t),function(o){o.database=function(s){if(s&&Object.keys(s).length>0)return o.init(s).database();if(this._database)return this._database;const r=ci(ai,{uniClient:o});return this._database=r,r},o.databaseForJQL=function(s){if(s&&Object.keys(s).length>0)return o.init(s).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const r=ci(ai,{uniClient:o,isJQL:!0});return this._databaseForJQL=r,r}}(t),function(o){o.getCurrentUserInfo=j_,o.chooseAndUploadFile=H_.initChooseAndUploadFile(o),Object.assign(o,{get mixinDatacom(){return iu(o)}}),o.SSEChannel=z_,o.initSecureNetworkByWeixin=V_(o),o.setCustomClientInfo=W_,o.importObject=q_(o)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach(o=>{if(!t[o])return;const s=t[o];t[o]=function(){return s.apply(t,Array.from(arguments))},t[o]=function(r,i){return function(c){let u=!1;i==="callFunction"&&(u=(c&&c.type||Rr)!==Rr);const a=i==="callFunction"&&!u,f=this._initPromiseHub.exec();c=c||{};const{success:l,fail:h,complete:g}=ka(c),_=f.then(()=>u?Promise.resolve():ne(oe(i,"invoke"),c)).then(()=>r.call(this,c)).then(p=>u?Promise.resolve(p):ne(oe(i,"success"),p).then(()=>ne(oe(i,"complete"),p)).then(()=>(a&&ce(me,{type:sn,content:p}),Promise.resolve(p))),p=>u?Promise.reject(p):ne(oe(i,"fail"),p).then(()=>ne(oe(i,"complete"),p)).then(()=>(ce(me,{type:sn,content:p}),Promise.reject(p))));if(!(l||h||g))return _;_.then(p=>{l&&l(p),g&&g(p),a&&ce(me,{type:sn,content:p})},p=>{h&&h(p),g&&g(p),a&&ce(me,{type:sn,content:p})})}}(t[o],o).bind(t)}),t.init=this.init,t}};(()=>{const e=Ta;let t={};if(e&&e.length===1)t=e[0],ue=ue.init(t),ue._isDefault=!0;else{const n=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let o;o=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",n.forEach(s=>{ue[s]=function(){return console.error(o),Promise.reject(new O({code:"SYS_ERR",message:o}))}})}Object.assign(ue,{get mixinDatacom(){return iu(ue)}}),M_(ue),ue.addInterceptor=Ea,ue.removeInterceptor=$m,ue.interceptObject=Lm})();var X_=ue;exports._export_sfc=pg;exports.createSSRApp=Vd;exports.e=Ud;exports.f=Md;exports.index=$;exports.initVueI18n=Mu;exports.n=Hd;exports.nr=X_;exports.o=Nd;exports.onMounted=Tc;exports.p=qd;exports.reactive=Dn;exports.ref=cc;exports.resolveComponent=Gl;exports.s=Dd;exports.sr=Bd;exports.t=Fd;
| //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map
|
|