🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@52css/mp-vue3

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@52css/mp-vue3 - npm Package Compare versions

Comparing version
1.1.3
to
1.1.4
+13
dist/mp-vue3.cjs.js
"use strict";
/**
* @vue/shared v3.5.1
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
/*! #__NO_SIDE_EFFECTS__ */function e(e,t){const s=new Set(e.split(","));return e=>s.has(e)}const t={},s=()=>{},n=Object.assign,r=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},o=Object.prototype.hasOwnProperty,i=(e,t)=>o.call(e,t),c=Array.isArray,a=e=>"[object Map]"===d(e),u=e=>"[object Set]"===d(e),h=e=>"function"==typeof e,l=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,d=e=>f.call(e),v=e=>d(e).slice(8,-1),_=e=>"[object Object]"===d(e),g=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,x=(e,t)=>!Object.is(e,t);
/**
* @vue/reactivity v3.5.1
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let y,w;class b{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=y,!e&&y&&(this.index=(y.scopes||(y.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=y;try{return y=this,e()}finally{y=t}}}on(){y=this}off(){y=this.parent}stop(e){if(this._active){let t,s;for(t=0,s=this.effects.length;t<s;t++)this.effects[t].stop();for(t=0,s=this.cleanups.length;t<s;t++)this.cleanups[t]();if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function m(e){return new b(e)}function S(){return y}const R=new WeakSet;class ${constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,y&&y.active&&y.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,R.has(this)&&(R.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||(this.flags|=8,this.nextEffect=P,P=this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,N(this),E(this);const e=w,t=L;w=this,L=!0;try{return this.fn()}finally{T(this),w=e,L=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)q(e);this.deps=this.depsTail=void 0,N(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?R.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){D(this)&&this.run()}get dirty(){return D(this)}}let P,O=0;function k(){O++}function j(){if(--O>0)return;let e;for(;P;){let t=P;for(P=void 0;t;){const s=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=s}}if(e)throw e}function E(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function T(e){let t,s=e.depsTail;for(let e=s;e;e=e.prevDep)-1===e.version?(e===s&&(s=e.prevDep),q(e),A(e)):t=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0;e.deps=t,e.depsTail=s}function D(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===I(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function I(e){if(2&e.flags)return!1;if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===M)return;e.globalVersion=M;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!D(e))return void(e.flags&=-3);const s=w,n=L;w=e,L=!0;try{E(e);const s=e.fn();(0===t.version||x(s,e._value))&&(e._value=s,t.version++)}catch(e){throw t.version++,e}finally{w=s,L=n,T(e),e.flags&=-3}}function q(e){const{dep:t,prevSub:s,nextSub:n}=e;if(s&&(s.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=s,e.nextSub=void 0),t.subs===e&&(t.subs=s),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)q(e)}}function A(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let L=!0;const C=[];function U(){C.push(L),L=!1}function z(){const e=C.pop();L=void 0===e||e}function N(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=w;w=void 0;try{t()}finally{w=e}}}let M=0;class W{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!w||!L)return;let t=this.activeLink;if(void 0===t||t.sub!==w)t=this.activeLink={dep:this,sub:w,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},w.deps?(t.prevDep=w.depsTail,w.depsTail.nextDep=t,w.depsTail=t):w.deps=w.depsTail=t,4&w.flags&&V(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=w.depsTail,t.nextDep=void 0,w.depsTail.nextDep=t,w.depsTail=t,w.deps===t&&(w.deps=e)}return t}trigger(e){this.version++,M++,this.notify(e)}notify(e){k();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{j()}}}function V(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)V(e)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}const B=new WeakMap,F=Symbol(""),H=Symbol(""),J=Symbol("");function K(e,t,s){if(L&&w){let t=B.get(e);t||B.set(e,t=new Map);let n=t.get(s);n||t.set(s,n=new W),n.track()}}function Q(e,t,s,n,r,o){const i=B.get(e);if(!i)return void M++;let u=[];if("clear"===t)u=[...i.values()];else{const r=c(e),o=r&&g(s);if(r&&"length"===s){const e=Number(n);i.forEach(((t,s)=>{("length"===s||s===J||!l(s)&&s>=e)&&u.push(t)}))}else{const n=e=>e&&u.push(e);switch(void 0!==s&&n(i.get(s)),o&&n(i.get(J)),t){case"add":r?o&&n(i.get("length")):(n(i.get(F)),a(e)&&n(i.get(H)));break;case"delete":r||(n(i.get(F)),a(e)&&n(i.get(H)));break;case"set":a(e)&&n(i.get(F))}}}k();for(const e of u)e.trigger();j()}function G(e){const t=Qe(e);return t===e?t:(K(t,0,J),Je(e)?t:t.map(Ge))}function X(e){return K(e=Qe(e),0,J),e}const Y={__proto__:null,[Symbol.iterator](){return Z(this,Symbol.iterator,Ge)},concat(...e){return G(this).concat(...e.map((e=>c(e)?G(e):e)))},entries(){return Z(this,"entries",(e=>(e[1]=Ge(e[1]),e)))},every(e,t){return te(this,"every",e,t,void 0,arguments)},filter(e,t){return te(this,"filter",e,t,(e=>e.map(Ge)),arguments)},find(e,t){return te(this,"find",e,t,Ge,arguments)},findIndex(e,t){return te(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return te(this,"findLast",e,t,Ge,arguments)},findLastIndex(e,t){return te(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return te(this,"forEach",e,t,void 0,arguments)},includes(...e){return ne(this,"includes",e)},indexOf(...e){return ne(this,"indexOf",e)},join(e){return G(this).join(e)},lastIndexOf(...e){return ne(this,"lastIndexOf",e)},map(e,t){return te(this,"map",e,t,void 0,arguments)},pop(){return re(this,"pop")},push(...e){return re(this,"push",e)},reduce(e,...t){return se(this,"reduce",e,t)},reduceRight(e,...t){return se(this,"reduceRight",e,t)},shift(){return re(this,"shift")},some(e,t){return te(this,"some",e,t,void 0,arguments)},splice(...e){return re(this,"splice",e)},toReversed(){return G(this).toReversed()},toSorted(e){return G(this).toSorted(e)},toSpliced(...e){return G(this).toSpliced(...e)},unshift(...e){return re(this,"unshift",e)},values(){return Z(this,"values",Ge)}};function Z(e,t,s){const n=X(e),r=n[t]();return n===e||Je(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.value&&(e.value=s(e.value)),e}),r}const ee=Array.prototype;function te(e,t,s,n,r,o){const i=X(e),c=i!==e&&!Je(e),a=i[t];if(a!==ee[t]){const t=a.apply(e,o);return c?Ge(t):t}let u=s;i!==e&&(c?u=function(t,n){return s.call(this,Ge(t),n,e)}:s.length>2&&(u=function(t,n){return s.call(this,t,n,e)}));const h=a.call(i,u,n);return c&&r?r(h):h}function se(e,t,s,n){const r=X(e);let o=s;return r!==e&&(Je(e)?s.length>3&&(o=function(t,n,r){return s.call(this,t,n,r,e)}):o=function(t,n,r){return s.call(this,t,Ge(n),r,e)}),r[t](o,...n)}function ne(e,t,s){const n=Qe(e);K(n,0,J);const r=n[t](...s);return-1!==r&&!1!==r||!Ke(s[0])?r:(s[0]=Qe(s[0]),n[t](...s))}function re(e,t,s=[]){U(),k();const n=Qe(e)[t].apply(e,s);return j(),z(),n}const oe=e("__proto__,__v_isRef,__isVue"),ie=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(l));function ce(e){l(e)||(e=String(e));const t=Qe(this);return K(t,0,e),t.hasOwnProperty(e)}class ae{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,s){const n=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return r;if("__v_raw"===t)return s===(n?r?Ne:ze:r?Ue:Ce).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=c(e);if(!n){let e;if(o&&(e=Y[t]))return e;if("hasOwnProperty"===t)return ce}const i=Reflect.get(e,t,Ye(e)?e:s);return(l(t)?ie.has(t):oe(t))?i:(n||K(e,0,t),r?i:Ye(i)?o&&g(t)?i:i.value:p(i)?n?Ve(i):Me(i):i)}}class ue extends ae{constructor(e=!1){super(!1,e)}set(e,t,s,n){let r=e[t];if(!this._isShallow){const t=He(r);if(Je(s)||He(s)||(r=Qe(r),s=Qe(s)),!c(e)&&Ye(r)&&!Ye(s))return!t&&(r.value=s,!0)}const o=c(e)&&g(t)?Number(t)<e.length:i(e,t),a=Reflect.set(e,t,s,Ye(e)?e:n);return e===Qe(n)&&(o?x(s,r)&&Q(e,"set",t,s):Q(e,"add",t,s)),a}deleteProperty(e,t){const s=i(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&s&&Q(e,"delete",t,void 0),n}has(e,t){const s=Reflect.has(e,t);return l(t)&&ie.has(t)||K(e,0,t),s}ownKeys(e){return K(e,0,c(e)?"length":F),Reflect.ownKeys(e)}}class he extends ae{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const le=new ue,pe=new he,fe=new ue(!0),de=new he(!0),ve=e=>e,_e=e=>Reflect.getPrototypeOf(e);function ge(e,t,s=!1,n=!1){const r=Qe(e=e.__v_raw),o=Qe(t);s||(x(t,o)&&K(r,0,t),K(r,0,o));const{has:i}=_e(r),c=n?ve:s?Xe:Ge;return i.call(r,t)?c(e.get(t)):i.call(r,o)?c(e.get(o)):void(e!==r&&e.get(t))}function xe(e,t=!1){const s=this.__v_raw,n=Qe(s),r=Qe(e);return t||(x(e,r)&&K(n,0,e),K(n,0,r)),e===r?s.has(e):s.has(e)||s.has(r)}function ye(e,t=!1){return e=e.__v_raw,!t&&K(Qe(e),0,F),Reflect.get(e,"size",e)}function we(e,t=!1){t||Je(e)||He(e)||(e=Qe(e));const s=Qe(this);return _e(s).has.call(s,e)||(s.add(e),Q(s,"add",e,e)),this}function be(e,t,s=!1){s||Je(t)||He(t)||(t=Qe(t));const n=Qe(this),{has:r,get:o}=_e(n);let i=r.call(n,e);i||(e=Qe(e),i=r.call(n,e));const c=o.call(n,e);return n.set(e,t),i?x(t,c)&&Q(n,"set",e,t):Q(n,"add",e,t),this}function me(e){const t=Qe(this),{has:s,get:n}=_e(t);let r=s.call(t,e);r||(e=Qe(e),r=s.call(t,e)),n&&n.call(t,e);const o=t.delete(e);return r&&Q(t,"delete",e,void 0),o}function Se(){const e=Qe(this),t=0!==e.size,s=e.clear();return t&&Q(e,"clear",void 0,void 0),s}function Re(e,t){return function(s,n){const r=this,o=r.__v_raw,i=Qe(o),c=t?ve:e?Xe:Ge;return!e&&K(i,0,F),o.forEach(((e,t)=>s.call(n,c(e),c(t),r)))}}function $e(e,t,s){return function(...n){const r=this.__v_raw,o=Qe(r),i=a(o),c="entries"===e||e===Symbol.iterator&&i,u="keys"===e&&i,h=r[e](...n),l=s?ve:t?Xe:Ge;return!t&&K(o,0,u?H:F),{next(){const{value:e,done:t}=h.next();return t?{value:e,done:t}:{value:c?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function Pe(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Oe(){const e={get(e){return ge(this,e)},get size(){return ye(this)},has:xe,add:we,set:be,delete:me,clear:Se,forEach:Re(!1,!1)},t={get(e){return ge(this,e,!1,!0)},get size(){return ye(this)},has:xe,add(e){return we.call(this,e,!0)},set(e,t){return be.call(this,e,t,!0)},delete:me,clear:Se,forEach:Re(!1,!0)},s={get(e){return ge(this,e,!0)},get size(){return ye(this,!0)},has(e){return xe.call(this,e,!0)},add:Pe("add"),set:Pe("set"),delete:Pe("delete"),clear:Pe("clear"),forEach:Re(!0,!1)},n={get(e){return ge(this,e,!0,!0)},get size(){return ye(this,!0)},has(e){return xe.call(this,e,!0)},add:Pe("add"),set:Pe("set"),delete:Pe("delete"),clear:Pe("clear"),forEach:Re(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=$e(r,!1,!1),s[r]=$e(r,!0,!1),t[r]=$e(r,!1,!0),n[r]=$e(r,!0,!0)})),[e,s,t,n]}const[ke,je,Ee,Te]=Oe();function De(e,t){const s=t?e?Te:Ee:e?je:ke;return(t,n,r)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(i(s,n)&&n in t?s:t,n,r)}const Ie={get:De(!1,!1)},qe={get:De(!1,!0)},Ae={get:De(!0,!1)},Le={get:De(!0,!0)},Ce=new WeakMap,Ue=new WeakMap,ze=new WeakMap,Ne=new WeakMap;function Me(e){return He(e)?e:Be(e,!1,le,Ie,Ce)}function We(e){return Be(e,!1,fe,qe,Ue)}function Ve(e){return Be(e,!0,pe,Ae,ze)}function Be(e,t,s,n,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(v(c));var c;if(0===i)return e;const a=new Proxy(e,2===i?n:s);return r.set(e,a),a}function Fe(e){return He(e)?Fe(e.__v_raw):!(!e||!e.__v_isReactive)}function He(e){return!(!e||!e.__v_isReadonly)}function Je(e){return!(!e||!e.__v_isShallow)}function Ke(e){return!!e&&!!e.__v_raw}function Qe(e){const t=e&&e.__v_raw;return t?Qe(t):e}const Ge=e=>p(e)?Me(e):e,Xe=e=>p(e)?Ve(e):e;function Ye(e){return!!e&&!0===e.__v_isRef}function Ze(e){return et(e,!1)}function et(e,t){return Ye(e)?e:new tt(e,t)}class tt{constructor(e,t){this.dep=new W,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Qe(e),this._value=t?e:Ge(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,s=this.__v_isShallow||Je(e)||He(e);e=s?e:Qe(e),x(e,t)&&(this._rawValue=e,this._value=s?e:Ge(e),this.dep.trigger())}}function st(e){return Ye(e)?e.value:e}const nt={get:(e,t,s)=>st(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return Ye(r)&&!Ye(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};class rt{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new W,{get:s,set:n}=e(t.track.bind(t),t.trigger.bind(t));this._get=s,this._set=n}get value(){return this._value=this._get()}set value(e){this._set(e)}}class ot{constructor(e,t,s){this._object=e,this._key=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Qe(this._object),t=this._key,null==(s=B.get(e))?void 0:s.get(t);var e,t,s}}class it{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ct(e,t,s){return Ye(e)?e:h(e)?new it(e):p(e)&&arguments.length>1?at(e,t,s):Ze(e)}function at(e,t,s){const n=e[t];return Ye(n)?n:new ot(e,t,s)}class ut{constructor(e,t,s){this.fn=e,this.setter=t,this._value=void 0,this.dep=new W(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=M-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=s}notify(){w!==this&&(this.flags|=16,this.dep.notify())}get value(){const e=this.dep.track();return I(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const ht={},lt=new WeakMap;let pt;function ft(e,n,o=t){const{immediate:i,deep:a,once:u,scheduler:l,augmentJob:p,call:f}=o,d=e=>a?e:Je(e)||!1===a||0===a?dt(e,1):dt(e);let v,_,g,y,w=!1,b=!1;if(Ye(e)?(_=()=>e.value,w=Je(e)):Fe(e)?(_=()=>d(e),w=!0):c(e)?(b=!0,w=e.some((e=>Fe(e)||Je(e))),_=()=>e.map((e=>Ye(e)?e.value:Fe(e)?d(e):h(e)?f?f(e,2):e():void 0))):_=h(e)?n?f?()=>f(e,2):e:()=>{if(g){U();try{g()}finally{z()}}const t=pt;pt=v;try{return f?f(e,3,[y]):e(y)}finally{pt=t}}:s,n&&a){const e=_,t=!0===a?1/0:a;_=()=>dt(e(),t)}const m=S(),R=()=>{v.stop(),m&&r(m.effects,v)};if(u)if(n){const e=n;n=(...t)=>{e(...t),R()}}else{const e=_;_=()=>{e(),R()}}let P=b?new Array(e.length).fill(ht):ht;const O=e=>{if(1&v.flags&&(v.dirty||e))if(n){const e=v.run();if(a||w||(b?e.some(((e,t)=>x(e,P[t]))):x(e,P))){g&&g();const t=pt;pt=v;try{const t=[e,P===ht?void 0:b&&P[0]===ht?[]:P,y];f?f(n,3,t):n(...t),P=e}finally{pt=t}}}else v.run()};return p&&p(O),v=new $(_),v.scheduler=l?()=>l(O,!1):O,y=e=>function(e,t=!1,s=pt){if(s){let t=lt.get(s);t||lt.set(s,t=[]),t.push(e)}}(e,!1,v),g=v.onStop=()=>{const e=lt.get(v);if(e){if(f)f(e,4);else for(const t of e)t();lt.delete(v)}},n?i?O(!0):P=v.run():l?l(O.bind(null,!0),!0):v.run(),R.pause=v.pause.bind(v),R.resume=v.resume.bind(v),R.stop=R,R}function dt(e,t=1/0,s){if(t<=0||!p(e)||e.__v_skip)return e;if((s=s||new Set).has(e))return e;if(s.add(e),t--,Ye(e))dt(e.value,t,s);else if(c(e))for(let n=0;n<e.length;n++)dt(e[n],t,s);else if(u(e)||a(e))e.forEach((e=>{dt(e,t,s)}));else if(_(e)){for(const n in e)dt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&dt(e[n],t,s)}return e}const{isArray:vt}=Array;function _t(e){return Object.prototype.toString.call(e).slice(8,-1)}function gt(e){return"function"==typeof e}function xt(e){if(function(e){const t=new Set(["undefined","boolean","number","string"]);return null===e||t.has(typeof e)}(e)||gt(e))return e;if(Ye(e))return xt(e.value);if(Ke(e))return xt(Qe(e));if(vt(e))return e.map((e=>xt(e)));if(function(e){return"Object"===_t(e)}(e)){const t={};return Object.keys(e).forEach((s=>{t[s]=xt(e[s])})),t}throw new TypeError(`${_t(e)} value is not supported`)}function yt(e,t,s){var n;null!==(n=s)&&"object"==typeof n&&ft(Ye(s)?s:()=>s,(()=>{e.setData({[t]:xt(s)})}),{deep:!0})}exports._instance=null;const wt=e=>{exports._instance=e},bt=(e,t,s,...n)=>{if(t&&t[s]&&t[s].apply(e,n),!e[`$${s}`])return;const r={onLoad:"onUnload",onShow:"onHide",attached:"detached",show:"hide"}[s];e[`$${s}`].forEach((t=>{if(r){const s=e[`$${r}`]&&e[`$${r}`].find((e=>e.front===t));s&&s()}const s=t.apply(e,n);if(r&&"function"==typeof s){e[`$${r}`]&&e[`$${r}`].find((e=>e.front===t))||(s.front,e[`$${r}`]||(e[`$${r}`]=[]),e[`$${r}`].push(s))}}))},mt=(e,t,s,...n)=>{if(t&&t[s])return t[s].apply(e,n);if(e[`$${s}`]){if(e[`$${s}`].length)throw new Error(`一个page只能配置一个${s}`);return e[`$${s}`][0].apply(e,n)}},St=(e,t,s)=>{e&&(e[`$${t}`]||(e[`$${t}`]=[]),e[`$${t}`].push(s.bind(e)))};exports.launchPromise=Promise.resolve(!0);const Rt=e=>e?Object.keys(e).map((t=>{let s=e[t];return"object"==typeof e[t]&&(s=encodeURIComponent(JSON.stringify(e[t]))),`${t}=${s}`})).join("&"):"";exports._queries={};const $t=e=>{exports._queries=e},Pt=(e,t)=>{if(!t)return e;let s={};for(let n in e)if(n in t){const r=e[n],o=t[n];if(!o){s[n]=r;break}const i=o.type||o,c=e=>"formatter"in o&&void 0!==o.formatter?o.formatter(e):i===Boolean?!!e:i===Number?Number(e):i===Object?e?JSON.parse(decodeURIComponent(e)):{}:i===Array?e?JSON.parse(decodeURIComponent(e)):[]:(null===i||i===String||console.error("未知的·type·",i),e);s[n]=c(r)}else s[n]=e[n];return s};function Ot(e){exports.activePinia=e}exports.activePinia=void 0;const kt=new class{constructor(){this.defaultOptions={header:{"Content-Type":"application/json"}},this.baseUrl="/api"}setBaseUrl(e){this.baseUrl=e}setRequestInterceptor(e){this.requestInterceptor=e}setResponseInterceptor(e){this.responseInterceptor=e}async request(e){const t=/^http/.test(e.url)?e.url:this.baseUrl.endsWith("/")||e.url.startsWith("/")?`${this.baseUrl}${e.url}`:`${this.baseUrl}/${e.url}`;let s={...this.defaultOptions,...e,url:t};return this.requestInterceptor&&(s=await this.requestInterceptor(s)),new Promise(((e,t)=>{const{success:n,fail:r,complete:o,...i}=s;wx.request({...i,success:async s=>{try{if(this.responseInterceptor&&(s=await this.responseInterceptor(s)),s.statusCode>=200&&s.statusCode<300)"function"==typeof n&&n(s),e(s);else{const e=new Error(`请求失败,状态码:${s.statusCode}`);"function"==typeof r&&r(e),t(e)}}catch(e){"function"==typeof r&&r(e),t(e)}},fail:e=>{"function"==typeof r&&r(e),t(e)},complete:e=>{"function"==typeof o&&o(e)}})}))}serializeParams(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}get(e,t,s){let n=e;if(t&&Object.keys(t).length>0){const s=this.serializeParams(t);n+=e.includes("?")?`&${s}`:`?${s}`}return this.request({...s,method:"GET",url:n})}post(e,t,s){return this.request({...s,method:"POST",url:e,data:t})}options(e,t,s){let n=e;if(t&&Object.keys(t).length>0){const s=this.serializeParams(t);n+=e.includes("?")?`&${s}`:`?${s}`}return this.request({...s,method:"OPTIONS",url:n})}head(e,t,s){let n=e;if(t&&Object.keys(t).length>0){const s=this.serializeParams(t);n+=e.includes("?")?`&${s}`:`?${s}`}return this.request({...s,method:"HEAD",url:n})}put(e,t,s){return this.request({...s,method:"PUT",url:e,data:t})}delete(e,t,s){return this.request({...s,method:"DELETE",url:e,data:t})}trace(e,t,s){let n=e;if(t&&Object.keys(t).length>0){const s=this.serializeParams(t);n+=e.includes("?")?`&${s}`:`?${s}`}return this.request({...s,method:"TRACE",url:n})}connect(e,t,s){return this.request({...s,method:"CONNECT",url:e,data:t})}};exports.ReactiveEffect=$,exports.attached=e=>St(exports._instance,"attached",e),exports.computed=function(e,t,s=!1){let n,r;return h(e)?n=e:(n=e.get,r=e.set),new ut(n,r,s)},exports.createApp=e=>{if(!e)return App({});let t={};if("function"!=typeof e){const{setup:s,...n}=e;t=n,e=s}return e?App({...t,onLaunch(s){exports.launchPromise=new Promise((async n=>{wt(this);const r=await e.call(this,s);void 0!==r&&Object.keys(r).forEach((e=>{this[e]=r[e]})),bt(this,t,"onLaunch",s),wt(null),n(!0)}))},onShow(e){bt(this,t,"onShow",e)},onHide(){bt(this,t,"onHide")},onError(e){bt(this,t,"onError",e)},onPageNotFound(e){bt(this,t,"onPageNotFound",e)},onUnhandledRejection(e){bt(this,t,"onUnhandledRejection",e)},onThemeChange(e){bt(this,t,"onThemeChange",e)}}):App(t)},exports.createPinia=function(){const e=m(!0),t=e.run((()=>Ze({}))),s={install(){Ot(s)},scope:e,state:t,stores:{}};return s},exports.createQuery=Pt,exports.customRef=function(e){return new rt(e)},exports.deepToRaw=xt,exports.deepWatch=yt,exports.defineComponent=e=>{if(!e)return Component({});let t={};if("function"!=typeof e){const{setup:s,...n}=e;t=n,e=s}if(!e)return Component(t);let s=null;return t.properties&&(s=Object.keys(t.properties)),s&&s.forEach((e=>{void 0===t.observers&&(t.observers={});const s=t.observers[e];t.observers[e]=function(t){this.$props&&(this.$props[e]=t),void 0!==s&&s.call(this,t)}})),Component({...t,lifetimes:{attached(){exports.launchPromise.then((()=>{wt(this),this.$scope=m();const n={};s&&s.forEach((e=>{n[e]=this.data[e]})),this.$props=We(n),this.$context={emit:(e,...t)=>{this.triggerEvent(e,{value:t[0]})}},this.$scope.run((()=>{const s=e.call(this,this.$props,this.$context);void 0!==s&&Object.keys(s).forEach((e=>{const t=s[e];gt(t)?this[e]=t:(this.setData({[e]:xt(t)}),yt(this,e,t))})),bt(this,t,"attached")})),wt(null)}))},ready(){bt(this,t,"ready")},moved(){bt(this,t,"moved")},detached(){bt(this,t,"detached"),this.$scope&&this.$scope.stop(),Object.keys(this).forEach((e=>{try{/^$/.test(e)&&delete this[e]}catch(e){console.error("销毁异常",e)}}))},error(e){bt(this,t,"error",e)}},pageLifetimes:{show(){bt(this,t,"show")},hide(){bt(this,t,"hide")},resize(e){bt(this,t,"resize",e)},routeDone(){bt(this,t,"routeDone")}}})},exports.definePage=e=>{if(!e)return Page({});let t={};if("function"!=typeof e){const{setup:s,...n}=e;t=n||{},e=s}if(!e)return Page(t);const{queries:s,...n}=t;return Page({...n,onLoad(n){exports.launchPromise.then((()=>{wt(this),$t(s),this.$scope=m(),this.$query=Pt(n,s),this.$context={},this.$scope.run((()=>{const s=e.call(this,this.$query,this.$context);void 0!==s&&Object.keys(s).forEach((e=>{const t=s[e];gt(t)?this[e]=t:(this.setData({[e]:xt(t)}),yt(this,e,t))})),bt(this,t,"onLoad",n)})),$t({}),wt(null)}))},onShow(){bt(this,t,"onShow")},onReady(){bt(this,t,"onReady")},onHide(){bt(this,t,"onHide")},onUnload(){bt(this,t,"onUnload"),this.$scope&&this.$scope.stop(),Object.keys(this).forEach((e=>{try{/^$/.test(e)&&delete this[e]}catch(e){console.error("销毁异常",e)}}))},onRouteDone(){bt(this,t,"onRouteDone")},onPullDownRefresh(){bt(this,t,"onPullDownRefresh")},onReachBottom(){bt(this,t,"onReachBottom")},onPageScroll(e){bt(this,t,"onPageScroll",e)},onAddToFavorites(e){return mt(this,t,"onAddToFavorites",e)},onShareAppMessage(e){return mt(this,t,"onShareAppMessage",e)},onShareTimeline(){return mt(this,t,"onShareTimeline")},onResize(e){bt(this,t,"onResize",e)},onTabItemTap(e){bt(this,t,"onTabItemTap",e)},onSaveExitState(){bt(this,t,"onSaveExitState")}})},exports.defineStore=function(e,t,s){return function(n){if(n&&Ot(n),!(n=exports.activePinia))throw new Error("no active pinia");return n.stores[e]||function(e,t,s,n){const r={},o=e.scope.run(s);Object.assign(r,o),e.stores[t]=r;const i="PINIA_"+t;n&&n.persist&&n.persist.forEach((s=>{const n=`${i}_${s}`,r=wx.getStorageSync(n),o=wx.getStorageInfoSync().keys.includes(n);e.stores[t][s]&&o&&(Ye(e.stores[t][s])?e.stores[t][s].value=r:Object.keys(r).forEach((n=>{e.stores[t][s][n]=r[n]}))),ft(Ye(e.stores[t][s])?e.stores[t][s]:()=>e.stores[t][s],(e=>{wx.setStorageSync(n,e)}),{deep:!0})}))}(n,e,t,s),n.stores[e]}},exports.detached=e=>St(exports._instance,"detached",e),exports.effect=function(e,t){e.effect instanceof $&&(e=e.effect.fn);const s=new $(e);t&&n(s,t);try{s.run()}catch(e){throw s.stop(),e}const r=s.run.bind(s);return r.effect=s,r},exports.effectScope=m,exports.error=e=>St(exports._instance,"error",e),exports.getCurrentPage=()=>{const e=getCurrentPages();return e&&e[e.length-1]},exports.getCurrentScope=S,exports.hide=e=>St(exports._instance,"hide",e),exports.isProxy=Ke,exports.isReactive=Fe,exports.isReadonly=He,exports.isRef=Ye,exports.isShallow=Je,exports.lifetimeEmit=bt,exports.lifetimeEmitOnce=mt,exports.lifetimeOn=St,exports.markRaw=function(e){return Object.isExtensible(e)&&((e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})})(e,"__v_skip",!0),e},exports.moved=e=>St(exports._instance,"moved",e),exports.onAddToFavorites=e=>St(exports._instance,"onAddToFavorites",e),exports.onError=e=>St(exports._instance,"onError",e),exports.onHide=e=>St(exports._instance,"onHide",e),exports.onLaunch=e=>St(exports._instance,"onLaunch",e),exports.onLoad=e=>St(exports._instance,"onLoad",e),exports.onPageNotFound=e=>St(exports._instance,"onPageNotFound",e),exports.onPageScroll=e=>St(exports._instance,"onPageScroll",e),exports.onPullDownRefresh=e=>St(exports._instance,"onPullDownRefresh",e),exports.onReachBottom=e=>St(exports._instance,"onReachBottom",e),exports.onReady=e=>St(exports._instance,"onReady",e),exports.onResize=e=>St(exports._instance,"onResize",e),exports.onRouteDone=e=>St(exports._instance,"onRouteDone",e),exports.onSaveExitState=e=>St(exports._instance,"onSaveExitState",e),exports.onScopeDispose=function(e,t=!1){y&&y.cleanups.push(e)},exports.onShareAppMessage=e=>St(exports._instance,"onShareAppMessage",e),exports.onShareTimeline=e=>St(exports._instance,"onShareTimeline",e),exports.onShow=e=>St(exports._instance,"onShow",e),exports.onTabItemTap=e=>St(exports._instance,"onTabItemTap",e),exports.onThemeChange=e=>St(exports._instance,"onThemeChange",e),exports.onUnhandledRejection=e=>St(exports._instance,"onUnhandledRejection",e),exports.onUnload=e=>St(exports._instance,"onUnload",e),exports.proxyRefs=function(e){return Fe(e)?e:new Proxy(e,nt)},exports.reactive=Me,exports.readonly=Ve,exports.ready=e=>St(exports._instance,"ready",e),exports.ref=Ze,exports.request=kt,exports.resize=e=>St(exports._instance,"resize",e),exports.routeDone=e=>St(exports._instance,"routeDone",e),exports.setActivatePinia=Ot,exports.setInstance=wt,exports.setQueries=$t,exports.shallowReactive=We,exports.shallowReadonly=function(e){return Be(e,!0,de,Le,Ne)},exports.shallowRef=function(e){return et(e,!0)},exports.show=e=>St(exports._instance,"show",e),exports.stop=function(e){e.effect.stop()},exports.storeToRefs=function(e){e=Qe(e);const t={};for(const s in e){const n=e[s];(Ye(n)||Fe(n))&&(t[s]=ct(e,s))}return t},exports.toRaw=Qe,exports.toRef=ct,exports.toRefs=function(e){const t=c(e)?new Array(e.length):{};for(const s in e)t[s]=at(e,s);return t},exports.toValue=function(e){return h(e)?e():st(e)},exports.triggerRef=function(e){e.dep.trigger()},exports.unref=st,exports.useInstance=()=>exports._instance,exports.useRoute=()=>{const e=getCurrentPages(),t=e[e.length-1];return{path:t.route,query:Pt(t.options,exports._queries)}},exports.useRouter=()=>({push:e=>{if("string"==typeof e)return wx.navigateTo({url:e});let t;return t="path"in e?e.query?`${e.path}?${Rt(e.query)}`:e.path:e.url,wx.navigateTo({url:t,...e})},replace:e=>{if("string"==typeof e)return wx.redirectTo({url:e});let t;return t="path"in e?e.query?`${e.path}?${Rt(e.query)}`:e.path:e.url,wx.redirectTo({url:t,...e})},go:e=>{if(!(e>0))return wx.navigateBack({delta:Math.abs(e)});console.warn("微信小程序不支持前进历史记录")},back:e=>wx.navigateBack(e),switchTab:e=>{if("string"==typeof e)return wx.switchTab({url:e});let t;return t="path"in e?e.query?`${e.path}?${Rt(e.query)}`:e.path:e.url,wx.switchTab({url:t,...e})},reLaunch:e=>{if("string"==typeof e)return wx.reLaunch({url:e});let t;return t="path"in e?e.query?`${e.path}?${Rt(e.query)}`:e.path:e.url,wx.reLaunch({url:t,...e})}}),exports.watch=ft;
/**
* @vue/shared v3.5.1
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
/*! #__NO_SIDE_EFFECTS__ */
function t(t,e){const s=new Set(t.split(","));return t=>s.has(t)}const e={},s=()=>{},n=Object.assign,r=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},i=Object.prototype.hasOwnProperty,o=(t,e)=>i.call(t,e),c=Array.isArray,u=t=>"[object Map]"===d(t),a=t=>"[object Set]"===d(t),h=t=>"function"==typeof t,l=t=>"symbol"==typeof t,f=t=>null!==t&&"object"==typeof t,p=Object.prototype.toString,d=t=>p.call(t),v=t=>d(t).slice(8,-1),g=t=>"[object Object]"===d(t),_=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,y=(t,e)=>!Object.is(t,e);
/**
* @vue/reactivity v3.5.1
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let b,w;class m{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=b,!t&&b&&(this.index=(b.scopes||(b.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let t,e;if(this._isPaused=!0,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].pause();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){let t,e;if(this._isPaused=!1,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].resume();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].resume()}}run(t){if(this._active){const e=b;try{return b=this,t()}finally{b=e}}}on(){b=this}off(){b=this.parent}stop(t){if(this._active){let e,s;for(e=0,s=this.effects.length;e<s;e++)this.effects[e].stop();for(e=0,s=this.cleanups.length;e<s;e++)this.cleanups[e]();if(this.scopes)for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this._active=!1}}}function S(t){return new m(t)}function $(){return b}function x(t,e=!1){b&&b.cleanups.push(t)}const R=new WeakSet;class k{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,b&&b.active&&b.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,R.has(this)&&(R.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||(this.flags|=8,this.nextEffect=O,O=this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,V(this),D(this);const t=w,e=z;w=this,z=!0;try{return this.fn()}finally{T(this),w=t,z=e,this.flags&=-3}}stop(){if(1&this.flags){for(let t=this.deps;t;t=t.nextDep)L(t);this.deps=this.depsTail=void 0,V(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?R.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){I(this)&&this.run()}get dirty(){return I(this)}}let O,j=0;function E(){j++}function P(){if(--j>0)return;let t;for(;O;){let e=O;for(O=void 0;e;){const s=e.nextEffect;if(e.nextEffect=void 0,e.flags&=-9,1&e.flags)try{e.trigger()}catch(e){t||(t=e)}e=s}}if(t)throw t}function D(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function T(t){let e,s=t.depsTail;for(let t=s;t;t=t.prevDep)-1===t.version?(t===s&&(s=t.prevDep),L(t),A(t)):e=t,t.dep.activeLink=t.prevActiveLink,t.prevActiveLink=void 0;t.deps=e,t.depsTail=s}function I(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&!1===q(e.dep.computed)||e.dep.version!==e.version)return!0;return!!t._dirty}function q(t){if(2&t.flags)return!1;if(4&t.flags&&!(16&t.flags))return;if(t.flags&=-17,t.globalVersion===B)return;t.globalVersion=B;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&!I(t))return void(t.flags&=-3);const s=w,n=z;w=t,z=!0;try{D(t);const s=t.fn();(0===e.version||y(s,t._value))&&(t._value=s,e.version++)}catch(t){throw e.version++,t}finally{w=s,z=n,T(t),t.flags&=-3}}function L(t){const{dep:e,prevSub:s,nextSub:n}=t;if(s&&(s.nextSub=n,t.prevSub=void 0),n&&(n.prevSub=s,t.nextSub=void 0),e.subs===t&&(e.subs=s),!e.subs&&e.computed){e.computed.flags&=-5;for(let t=e.computed.deps;t;t=t.nextDep)L(t)}}function A(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}function C(t,e){t.effect instanceof k&&(t=t.effect.fn);const s=new k(t);e&&n(s,e);try{s.run()}catch(t){throw s.stop(),t}const r=s.run.bind(s);return r.effect=s,r}function U(t){t.effect.stop()}let z=!0;const N=[];function M(){N.push(z),z=!1}function W(){const t=N.pop();z=void 0===t||t}function V(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const t=w;w=void 0;try{e()}finally{w=t}}}let B=0;class H{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!w||!z)return;let e=this.activeLink;if(void 0===e||e.sub!==w)e=this.activeLink={dep:this,sub:w,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},w.deps?(e.prevDep=w.depsTail,w.depsTail.nextDep=e,w.depsTail=e):w.deps=w.depsTail=e,4&w.flags&&F(e);else if(-1===e.version&&(e.version=this.version,e.nextDep)){const t=e.nextDep;t.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=t),e.prevDep=w.depsTail,e.nextDep=void 0,w.depsTail.nextDep=e,w.depsTail=e,w.deps===e&&(w.deps=t)}return e}trigger(t){this.version++,B++,this.notify(t)}notify(t){E();try{0;for(let t=this.subs;t;t=t.prevSub)t.sub.notify()}finally{P()}}}function F(t){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let t=e.deps;t;t=t.nextDep)F(t)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}const J=new WeakMap,K=Symbol(""),G=Symbol(""),Q=Symbol("");function X(t,e,s){if(z&&w){let e=J.get(t);e||J.set(t,e=new Map);let n=e.get(s);n||e.set(s,n=new H),n.track()}}function Y(t,e,s,n,r,i){const o=J.get(t);if(!o)return void B++;let a=[];if("clear"===e)a=[...o.values()];else{const r=c(t),i=r&&_(s);if(r&&"length"===s){const t=Number(n);o.forEach(((e,s)=>{("length"===s||s===Q||!l(s)&&s>=t)&&a.push(e)}))}else{const n=t=>t&&a.push(t);switch(void 0!==s&&n(o.get(s)),i&&n(o.get(Q)),e){case"add":r?i&&n(o.get("length")):(n(o.get(K)),u(t)&&n(o.get(G)));break;case"delete":r||(n(o.get(K)),u(t)&&n(o.get(G)));break;case"set":u(t)&&n(o.get(K))}}}E();for(const t of a)t.trigger();P()}function Z(t){const e=Zt(t);return e===t?e:(X(e,0,Q),Xt(t)?e:e.map(ee))}function tt(t){return X(t=Zt(t),0,Q),t}const et={__proto__:null,[Symbol.iterator](){return st(this,Symbol.iterator,ee)},concat(...t){return Z(this).concat(...t.map((t=>c(t)?Z(t):t)))},entries(){return st(this,"entries",(t=>(t[1]=ee(t[1]),t)))},every(t,e){return rt(this,"every",t,e,void 0,arguments)},filter(t,e){return rt(this,"filter",t,e,(t=>t.map(ee)),arguments)},find(t,e){return rt(this,"find",t,e,ee,arguments)},findIndex(t,e){return rt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return rt(this,"findLast",t,e,ee,arguments)},findLastIndex(t,e){return rt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return rt(this,"forEach",t,e,void 0,arguments)},includes(...t){return ot(this,"includes",t)},indexOf(...t){return ot(this,"indexOf",t)},join(t){return Z(this).join(t)},lastIndexOf(...t){return ot(this,"lastIndexOf",t)},map(t,e){return rt(this,"map",t,e,void 0,arguments)},pop(){return ct(this,"pop")},push(...t){return ct(this,"push",t)},reduce(t,...e){return it(this,"reduce",t,e)},reduceRight(t,...e){return it(this,"reduceRight",t,e)},shift(){return ct(this,"shift")},some(t,e){return rt(this,"some",t,e,void 0,arguments)},splice(...t){return ct(this,"splice",t)},toReversed(){return Z(this).toReversed()},toSorted(t){return Z(this).toSorted(t)},toSpliced(...t){return Z(this).toSpliced(...t)},unshift(...t){return ct(this,"unshift",t)},values(){return st(this,"values",ee)}};function st(t,e,s){const n=tt(t),r=n[e]();return n===t||Xt(t)||(r._next=r.next,r.next=()=>{const t=r._next();return t.value&&(t.value=s(t.value)),t}),r}const nt=Array.prototype;function rt(t,e,s,n,r,i){const o=tt(t),c=o!==t&&!Xt(t),u=o[e];if(u!==nt[e]){const e=u.apply(t,i);return c?ee(e):e}let a=s;o!==t&&(c?a=function(e,n){return s.call(this,ee(e),n,t)}:s.length>2&&(a=function(e,n){return s.call(this,e,n,t)}));const h=u.call(o,a,n);return c&&r?r(h):h}function it(t,e,s,n){const r=tt(t);let i=s;return r!==t&&(Xt(t)?s.length>3&&(i=function(e,n,r){return s.call(this,e,n,r,t)}):i=function(e,n,r){return s.call(this,e,ee(n),r,t)}),r[e](i,...n)}function ot(t,e,s){const n=Zt(t);X(n,0,Q);const r=n[e](...s);return-1!==r&&!1!==r||!Yt(s[0])?r:(s[0]=Zt(s[0]),n[e](...s))}function ct(t,e,s=[]){M(),E();const n=Zt(t)[e].apply(t,s);return P(),W(),n}const ut=t("__proto__,__v_isRef,__isVue"),at=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(l));function ht(t){l(t)||(t=String(t));const e=Zt(this);return X(e,0,t),e.hasOwnProperty(t)}class lt{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,s){const n=this._isReadonly,r=this._isShallow;if("__v_isReactive"===e)return!n;if("__v_isReadonly"===e)return n;if("__v_isShallow"===e)return r;if("__v_raw"===e)return s===(n?r?Vt:Wt:r?Mt:Nt).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=c(t);if(!n){let t;if(i&&(t=et[e]))return t;if("hasOwnProperty"===e)return ht}const o=Reflect.get(t,e,ne(t)?t:s);return(l(e)?at.has(e):ut(e))?o:(n||X(t,0,e),r?o:ne(o)?i&&_(e)?o:o.value:f(o)?n?Ft(o):Bt(o):o)}}class ft extends lt{constructor(t=!1){super(!1,t)}set(t,e,s,n){let r=t[e];if(!this._isShallow){const e=Qt(r);if(Xt(s)||Qt(s)||(r=Zt(r),s=Zt(s)),!c(t)&&ne(r)&&!ne(s))return!e&&(r.value=s,!0)}const i=c(t)&&_(e)?Number(e)<t.length:o(t,e),u=Reflect.set(t,e,s,ne(t)?t:n);return t===Zt(n)&&(i?y(s,r)&&Y(t,"set",e,s):Y(t,"add",e,s)),u}deleteProperty(t,e){const s=o(t,e);t[e];const n=Reflect.deleteProperty(t,e);return n&&s&&Y(t,"delete",e,void 0),n}has(t,e){const s=Reflect.has(t,e);return l(e)&&at.has(e)||X(t,0,e),s}ownKeys(t){return X(t,0,c(t)?"length":K),Reflect.ownKeys(t)}}class pt extends lt{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const dt=new ft,vt=new pt,gt=new ft(!0),_t=new pt(!0),yt=t=>t,bt=t=>Reflect.getPrototypeOf(t);function wt(t,e,s=!1,n=!1){const r=Zt(t=t.__v_raw),i=Zt(e);s||(y(e,i)&&X(r,0,e),X(r,0,i));const{has:o}=bt(r),c=n?yt:s?se:ee;return o.call(r,e)?c(t.get(e)):o.call(r,i)?c(t.get(i)):void(t!==r&&t.get(e))}function mt(t,e=!1){const s=this.__v_raw,n=Zt(s),r=Zt(t);return e||(y(t,r)&&X(n,0,t),X(n,0,r)),t===r?s.has(t):s.has(t)||s.has(r)}function St(t,e=!1){return t=t.__v_raw,!e&&X(Zt(t),0,K),Reflect.get(t,"size",t)}function $t(t,e=!1){e||Xt(t)||Qt(t)||(t=Zt(t));const s=Zt(this);return bt(s).has.call(s,t)||(s.add(t),Y(s,"add",t,t)),this}function xt(t,e,s=!1){s||Xt(e)||Qt(e)||(e=Zt(e));const n=Zt(this),{has:r,get:i}=bt(n);let o=r.call(n,t);o||(t=Zt(t),o=r.call(n,t));const c=i.call(n,t);return n.set(t,e),o?y(e,c)&&Y(n,"set",t,e):Y(n,"add",t,e),this}function Rt(t){const e=Zt(this),{has:s,get:n}=bt(e);let r=s.call(e,t);r||(t=Zt(t),r=s.call(e,t)),n&&n.call(e,t);const i=e.delete(t);return r&&Y(e,"delete",t,void 0),i}function kt(){const t=Zt(this),e=0!==t.size,s=t.clear();return e&&Y(t,"clear",void 0,void 0),s}function Ot(t,e){return function(s,n){const r=this,i=r.__v_raw,o=Zt(i),c=e?yt:t?se:ee;return!t&&X(o,0,K),i.forEach(((t,e)=>s.call(n,c(t),c(e),r)))}}function jt(t,e,s){return function(...n){const r=this.__v_raw,i=Zt(r),o=u(i),c="entries"===t||t===Symbol.iterator&&o,a="keys"===t&&o,h=r[t](...n),l=s?yt:e?se:ee;return!e&&X(i,0,a?G:K),{next(){const{value:t,done:e}=h.next();return e?{value:t,done:e}:{value:c?[l(t[0]),l(t[1])]:l(t),done:e}},[Symbol.iterator](){return this}}}}function Et(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function Pt(){const t={get(t){return wt(this,t)},get size(){return St(this)},has:mt,add:$t,set:xt,delete:Rt,clear:kt,forEach:Ot(!1,!1)},e={get(t){return wt(this,t,!1,!0)},get size(){return St(this)},has:mt,add(t){return $t.call(this,t,!0)},set(t,e){return xt.call(this,t,e,!0)},delete:Rt,clear:kt,forEach:Ot(!1,!0)},s={get(t){return wt(this,t,!0)},get size(){return St(this,!0)},has(t){return mt.call(this,t,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:Ot(!0,!1)},n={get(t){return wt(this,t,!0,!0)},get size(){return St(this,!0)},has(t){return mt.call(this,t,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:Ot(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{t[r]=jt(r,!1,!1),s[r]=jt(r,!0,!1),e[r]=jt(r,!1,!0),n[r]=jt(r,!0,!0)})),[t,s,e,n]}const[Dt,Tt,It,qt]=Pt();function Lt(t,e){const s=e?t?qt:It:t?Tt:Dt;return(e,n,r)=>"__v_isReactive"===n?!t:"__v_isReadonly"===n?t:"__v_raw"===n?e:Reflect.get(o(s,n)&&n in e?s:e,n,r)}const At={get:Lt(!1,!1)},Ct={get:Lt(!1,!0)},Ut={get:Lt(!0,!1)},zt={get:Lt(!0,!0)},Nt=new WeakMap,Mt=new WeakMap,Wt=new WeakMap,Vt=new WeakMap;function Bt(t){return Qt(t)?t:Kt(t,!1,dt,At,Nt)}function Ht(t){return Kt(t,!1,gt,Ct,Mt)}function Ft(t){return Kt(t,!0,vt,Ut,Wt)}function Jt(t){return Kt(t,!0,_t,zt,Vt)}function Kt(t,e,s,n,r){if(!f(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const i=r.get(t);if(i)return i;const o=(c=t).__v_skip||!Object.isExtensible(c)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(v(c));var c;if(0===o)return t;const u=new Proxy(t,2===o?n:s);return r.set(t,u),u}function Gt(t){return Qt(t)?Gt(t.__v_raw):!(!t||!t.__v_isReactive)}function Qt(t){return!(!t||!t.__v_isReadonly)}function Xt(t){return!(!t||!t.__v_isShallow)}function Yt(t){return!!t&&!!t.__v_raw}function Zt(t){const e=t&&t.__v_raw;return e?Zt(e):t}function te(t){return Object.isExtensible(t)&&((t,e,s,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:s})})(t,"__v_skip",!0),t}const ee=t=>f(t)?Bt(t):t,se=t=>f(t)?Ft(t):t;function ne(t){return!!t&&!0===t.__v_isRef}function re(t){return oe(t,!1)}function ie(t){return oe(t,!0)}function oe(t,e){return ne(t)?t:new ce(t,e)}class ce{constructor(t,e){this.dep=new H,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Zt(t),this._value=e?t:ee(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,s=this.__v_isShallow||Xt(t)||Qt(t);t=s?t:Zt(t),y(t,e)&&(this._rawValue=t,this._value=s?t:ee(t),this.dep.trigger())}}function ue(t){t.dep.trigger()}function ae(t){return ne(t)?t.value:t}function he(t){return h(t)?t():ae(t)}const le={get:(t,e,s)=>ae(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const r=t[e];return ne(r)&&!ne(s)?(r.value=s,!0):Reflect.set(t,e,s,n)}};function fe(t){return Gt(t)?t:new Proxy(t,le)}class pe{constructor(t){this.__v_isRef=!0,this._value=void 0;const e=this.dep=new H,{get:s,set:n}=t(e.track.bind(e),e.trigger.bind(e));this._get=s,this._set=n}get value(){return this._value=this._get()}set value(t){this._set(t)}}function de(t){return new pe(t)}function ve(t){const e=c(t)?new Array(t.length):{};for(const s in t)e[s]=be(t,s);return e}class ge{constructor(t,e,s){this._object=t,this._key=e,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return t=Zt(this._object),e=this._key,null==(s=J.get(t))?void 0:s.get(e);var t,e,s}}class _e{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ye(t,e,s){return ne(t)?t:h(t)?new _e(t):f(t)&&arguments.length>1?be(t,e,s):re(t)}function be(t,e,s){const n=t[e];return ne(n)?n:new ge(t,e,s)}class we{constructor(t,e,s){this.fn=t,this.setter=e,this._value=void 0,this.dep=new H(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=B-1,this.effect=this,this.__v_isReadonly=!e,this.isSSR=s}notify(){w!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=this.dep.track();return q(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function me(t,e,s=!1){let n,r;h(t)?n=t:(n=t.get,r=t.set);return new we(n,r,s)}const Se={},$e=new WeakMap;let xe;function Re(t,n,i=e){const{immediate:o,deep:u,once:a,scheduler:l,augmentJob:f,call:p}=i,d=t=>u?t:Xt(t)||!1===u||0===u?ke(t,1):ke(t);let v,g,_,b,w=!1,m=!1;if(ne(t)?(g=()=>t.value,w=Xt(t)):Gt(t)?(g=()=>d(t),w=!0):c(t)?(m=!0,w=t.some((t=>Gt(t)||Xt(t))),g=()=>t.map((t=>ne(t)?t.value:Gt(t)?d(t):h(t)?p?p(t,2):t():void 0))):g=h(t)?n?p?()=>p(t,2):t:()=>{if(_){M();try{_()}finally{W()}}const e=xe;xe=v;try{return p?p(t,3,[b]):t(b)}finally{xe=e}}:s,n&&u){const t=g,e=!0===u?1/0:u;g=()=>ke(t(),e)}const S=$(),x=()=>{v.stop(),S&&r(S.effects,v)};if(a)if(n){const t=n;n=(...e)=>{t(...e),x()}}else{const t=g;g=()=>{t(),x()}}let R=m?new Array(t.length).fill(Se):Se;const O=t=>{if(1&v.flags&&(v.dirty||t))if(n){const t=v.run();if(u||w||(m?t.some(((t,e)=>y(t,R[e]))):y(t,R))){_&&_();const e=xe;xe=v;try{const e=[t,R===Se?void 0:m&&R[0]===Se?[]:R,b];p?p(n,3,e):n(...e),R=t}finally{xe=e}}}else v.run()};return f&&f(O),v=new k(g),v.scheduler=l?()=>l(O,!1):O,b=t=>function(t,e=!1,s=xe){if(s){let e=$e.get(s);e||$e.set(s,e=[]),e.push(t)}}(t,!1,v),_=v.onStop=()=>{const t=$e.get(v);if(t){if(p)p(t,4);else for(const e of t)e();$e.delete(v)}},n?o?O(!0):R=v.run():l?l(O.bind(null,!0),!0):v.run(),x.pause=v.pause.bind(v),x.resume=v.resume.bind(v),x.stop=x,x}function ke(t,e=1/0,s){if(e<=0||!f(t)||t.__v_skip)return t;if((s=s||new Set).has(t))return t;if(s.add(t),e--,ne(t))ke(t.value,e,s);else if(c(t))for(let n=0;n<t.length;n++)ke(t[n],e,s);else if(a(t)||u(t))t.forEach((t=>{ke(t,e,s)}));else if(g(t)){for(const n in t)ke(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&ke(t[n],e,s)}return t}const{isArray:Oe}=Array;function je(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ee(t){return"function"==typeof t}function Pe(t){if(function(t){const e=new Set(["undefined","boolean","number","string"]);return null===t||e.has(typeof t)}(t)||Ee(t))return t;if(ne(t))return Pe(t.value);if(Yt(t))return Pe(Zt(t));if(Oe(t))return t.map((t=>Pe(t)));if(function(t){return"Object"===je(t)}(t)){const e={};return Object.keys(t).forEach((s=>{e[s]=Pe(t[s])})),e}throw new TypeError(`${je(t)} value is not supported`)}function De(t,e,s){var n;null!==(n=s)&&"object"==typeof n&&Re(ne(s)?s:()=>s,(()=>{t.setData({[e]:Pe(s)})}),{deep:!0})}let Te=null;const Ie=()=>Te,qe=t=>{Te=t},Le=(t,e,s,...n)=>{if(e&&e[s]&&e[s].apply(t,n),!t[`$${s}`])return;const r={onLoad:"onUnload",onShow:"onHide",attached:"detached",show:"hide"}[s];t[`$${s}`].forEach((e=>{if(r){const s=t[`$${r}`]&&t[`$${r}`].find((t=>t.front===e));s&&s()}const s=e.apply(t,n);if(r&&"function"==typeof s){t[`$${r}`]&&t[`$${r}`].find((t=>t.front===e))||(s.front,t[`$${r}`]||(t[`$${r}`]=[]),t[`$${r}`].push(s))}}))},Ae=(t,e,s,...n)=>{if(e&&e[s])return e[s].apply(t,n);if(t[`$${s}`]){if(t[`$${s}`].length)throw new Error(`一个page只能配置一个${s}`);return t[`$${s}`][0].apply(t,n)}},Ce=(t,e,s)=>{t&&(t[`$${e}`]||(t[`$${e}`]=[]),t[`$${e}`].push(s.bind(t)))},Ue=t=>Ce(Te,"onLoad",t),ze=t=>Ce(Te,"onShow",t),Ne=t=>Ce(Te,"onReady",t),Me=t=>Ce(Te,"onHide",t),We=t=>Ce(Te,"onUnload",t),Ve=t=>Ce(Te,"onRouteDone",t),Be=t=>Ce(Te,"onPullDownRefresh",t),He=t=>Ce(Te,"onReachBottom",t),Fe=t=>Ce(Te,"onPageScroll",t),Je=t=>Ce(Te,"onAddToFavorites",t),Ke=t=>Ce(Te,"onShareAppMessage",t),Ge=t=>Ce(Te,"onShareTimeline",t),Qe=t=>Ce(Te,"onResize",t),Xe=t=>Ce(Te,"onTabItemTap",t),Ye=t=>Ce(Te,"onSaveExitState",t),Ze=t=>Ce(Te,"attached",t),ts=t=>Ce(Te,"ready",t),es=t=>Ce(Te,"moved",t),ss=t=>Ce(Te,"detached",t),ns=t=>Ce(Te,"error",t),rs=t=>Ce(Te,"show",t),is=t=>Ce(Te,"hide",t),os=t=>Ce(Te,"resize",t),cs=t=>Ce(Te,"routeDone",t),us=t=>Ce(Te,"onLaunch",t),as=t=>Ce(Te,"onError",t),hs=t=>Ce(Te,"onPageNotFound",t),ls=t=>Ce(Te,"onUnhandledRejection",t),fs=t=>Ce(Te,"onThemeChange",t);let ps=Promise.resolve(!0);const ds=t=>{if(!t)return App({});let e={};if("function"!=typeof t){const{setup:s,...n}=t;e=n,t=s}return t?App({...e,onLaunch(s){ps=new Promise((async n=>{qe(this);const r=await t.call(this,s);void 0!==r&&Object.keys(r).forEach((t=>{this[t]=r[t]})),Le(this,e,"onLaunch",s),qe(null),n(!0)}))},onShow(t){Le(this,e,"onShow",t)},onHide(){Le(this,e,"onHide")},onError(t){Le(this,e,"onError",t)},onPageNotFound(t){Le(this,e,"onPageNotFound",t)},onUnhandledRejection(t){Le(this,e,"onUnhandledRejection",t)},onThemeChange(t){Le(this,e,"onThemeChange",t)}}):App(e)},vs=t=>{if(!t)return Component({});let e={};if("function"!=typeof t){const{setup:s,...n}=t;e=n,t=s}if(!t)return Component(e);let s=null;return e.properties&&(s=Object.keys(e.properties)),s&&s.forEach((t=>{void 0===e.observers&&(e.observers={});const s=e.observers[t];e.observers[t]=function(e){this.$props&&(this.$props[t]=e),void 0!==s&&s.call(this,e)}})),Component({...e,lifetimes:{attached(){ps.then((()=>{qe(this),this.$scope=S();const n={};s&&s.forEach((t=>{n[t]=this.data[t]})),this.$props=Ht(n),this.$context={emit:(t,...e)=>{this.triggerEvent(t,{value:e[0]})}},this.$scope.run((()=>{const s=t.call(this,this.$props,this.$context);void 0!==s&&Object.keys(s).forEach((t=>{const e=s[t];Ee(e)?this[t]=e:(this.setData({[t]:Pe(e)}),De(this,t,e))})),Le(this,e,"attached")})),qe(null)}))},ready(){Le(this,e,"ready")},moved(){Le(this,e,"moved")},detached(){Le(this,e,"detached"),this.$scope&&this.$scope.stop(),Object.keys(this).forEach((t=>{try{/^$/.test(t)&&delete this[t]}catch(t){console.error("销毁异常",t)}}))},error(t){Le(this,e,"error",t)}},pageLifetimes:{show(){Le(this,e,"show")},hide(){Le(this,e,"hide")},resize(t){Le(this,e,"resize",t)},routeDone(){Le(this,e,"routeDone")}}})},gs=t=>t?Object.keys(t).map((e=>{let s=t[e];return"object"==typeof t[e]&&(s=encodeURIComponent(JSON.stringify(t[e]))),`${e}=${s}`})).join("&"):"",_s=()=>({push:t=>{if("string"==typeof t)return wx.navigateTo({url:t});let e;return e="path"in t?t.query?`${t.path}?${gs(t.query)}`:t.path:t.url,wx.navigateTo({url:e,...t})},replace:t=>{if("string"==typeof t)return wx.redirectTo({url:t});let e;return e="path"in t?t.query?`${t.path}?${gs(t.query)}`:t.path:t.url,wx.redirectTo({url:e,...t})},go:t=>{if(!(t>0))return wx.navigateBack({delta:Math.abs(t)});console.warn("微信小程序不支持前进历史记录")},back:t=>wx.navigateBack(t),switchTab:t=>{if("string"==typeof t)return wx.switchTab({url:t});let e;return e="path"in t?t.query?`${t.path}?${gs(t.query)}`:t.path:t.url,wx.switchTab({url:e,...t})},reLaunch:t=>{if("string"==typeof t)return wx.reLaunch({url:t});let e;return e="path"in t?t.query?`${t.path}?${gs(t.query)}`:t.path:t.url,wx.reLaunch({url:e,...t})}}),ys=()=>{const t=getCurrentPages(),e=t[t.length-1];return{path:e.route,query:ms(e.options,bs)}};let bs={};const ws=t=>{bs=t},ms=(t,e)=>{if(!e)return t;let s={};for(let n in t)if(n in e){const r=t[n],i=e[n];if(!i){s[n]=r;break}const o=i.type||i,c=t=>"formatter"in i&&void 0!==i.formatter?i.formatter(t):o===Boolean?!!t:o===Number?Number(t):o===Object?t?JSON.parse(decodeURIComponent(t)):{}:o===Array?t?JSON.parse(decodeURIComponent(t)):[]:(null===o||o===String||console.error("未知的·type·",o),t);s[n]=c(r)}else s[n]=t[n];return s},Ss=t=>{if(!t)return Page({});let e={};if("function"!=typeof t){const{setup:s,...n}=t;e=n||{},t=s}if(!t)return Page(e);const{queries:s,...n}=e;return Page({...n,onLoad(n){ps.then((()=>{qe(this),ws(s),this.$scope=S(),this.$query=ms(n,s),this.$context={},this.$scope.run((()=>{const s=t.call(this,this.$query,this.$context);void 0!==s&&Object.keys(s).forEach((t=>{const e=s[t];Ee(e)?this[t]=e:(this.setData({[t]:Pe(e)}),De(this,t,e))})),Le(this,e,"onLoad",n)})),ws({}),qe(null)}))},onShow(){Le(this,e,"onShow")},onReady(){Le(this,e,"onReady")},onHide(){Le(this,e,"onHide")},onUnload(){Le(this,e,"onUnload"),this.$scope&&this.$scope.stop(),Object.keys(this).forEach((t=>{try{/^$/.test(t)&&delete this[t]}catch(t){console.error("销毁异常",t)}}))},onRouteDone(){Le(this,e,"onRouteDone")},onPullDownRefresh(){Le(this,e,"onPullDownRefresh")},onReachBottom(){Le(this,e,"onReachBottom")},onPageScroll(t){Le(this,e,"onPageScroll",t)},onAddToFavorites(t){return Ae(this,e,"onAddToFavorites",t)},onShareAppMessage(t){return Ae(this,e,"onShareAppMessage",t)},onShareTimeline(){return Ae(this,e,"onShareTimeline")},onResize(t){Le(this,e,"onResize",t)},onTabItemTap(t){Le(this,e,"onTabItemTap",t)},onSaveExitState(){Le(this,e,"onSaveExitState")}})},$s=()=>{const t=getCurrentPages();return t&&t[t.length-1]};let xs;function Rs(t){xs=t}function ks(){const t=S(!0),e=t.run((()=>re({}))),s={install(){Rs(s)},scope:t,state:e,stores:{}};return s}function Os(t,e,s){return function(n){if(n&&Rs(n),!(n=xs))throw new Error("no active pinia");return n.stores[t]||function(t,e,s,n){const r={},i=t.scope.run(s);Object.assign(r,i),t.stores[e]=r;const o="PINIA_"+e;n&&n.persist&&n.persist.forEach((s=>{const n=`${o}_${s}`,r=wx.getStorageSync(n),i=wx.getStorageInfoSync().keys.includes(n);t.stores[e][s]&&i&&(ne(t.stores[e][s])?t.stores[e][s].value=r:Object.keys(r).forEach((n=>{t.stores[e][s][n]=r[n]}))),Re(ne(t.stores[e][s])?t.stores[e][s]:()=>t.stores[e][s],(t=>{wx.setStorageSync(n,t)}),{deep:!0})}))}(n,t,e,s),n.stores[t]}}function js(t){t=Zt(t);const e={};for(const s in t){const n=t[s];(ne(n)||Gt(n))&&(e[s]=ye(t,s))}return e}const Es=new class{constructor(){this.defaultOptions={header:{"Content-Type":"application/json"}},this.baseUrl="/api"}setBaseUrl(t){this.baseUrl=t}setRequestInterceptor(t){this.requestInterceptor=t}setResponseInterceptor(t){this.responseInterceptor=t}async request(t){const e=/^http/.test(t.url)?t.url:this.baseUrl.endsWith("/")||t.url.startsWith("/")?`${this.baseUrl}${t.url}`:`${this.baseUrl}/${t.url}`;let s={...this.defaultOptions,...t,url:e};return this.requestInterceptor&&(s=await this.requestInterceptor(s)),new Promise(((t,e)=>{const{success:n,fail:r,complete:i,...o}=s;wx.request({...o,success:async s=>{try{if(this.responseInterceptor&&(s=await this.responseInterceptor(s)),s.statusCode>=200&&s.statusCode<300)"function"==typeof n&&n(s),t(s);else{const t=new Error(`请求失败,状态码:${s.statusCode}`);"function"==typeof r&&r(t),e(t)}}catch(t){"function"==typeof r&&r(t),e(t)}},fail:t=>{"function"==typeof r&&r(t),e(t)},complete:t=>{"function"==typeof i&&i(t)}})}))}serializeParams(t){return Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")}get(t,e,s){let n=t;if(e&&Object.keys(e).length>0){const s=this.serializeParams(e);n+=t.includes("?")?`&${s}`:`?${s}`}return this.request({...s,method:"GET",url:n})}post(t,e,s){return this.request({...s,method:"POST",url:t,data:e})}options(t,e,s){let n=t;if(e&&Object.keys(e).length>0){const s=this.serializeParams(e);n+=t.includes("?")?`&${s}`:`?${s}`}return this.request({...s,method:"OPTIONS",url:n})}head(t,e,s){let n=t;if(e&&Object.keys(e).length>0){const s=this.serializeParams(e);n+=t.includes("?")?`&${s}`:`?${s}`}return this.request({...s,method:"HEAD",url:n})}put(t,e,s){return this.request({...s,method:"PUT",url:t,data:e})}delete(t,e,s){return this.request({...s,method:"DELETE",url:t,data:e})}trace(t,e,s){let n=t;if(e&&Object.keys(e).length>0){const s=this.serializeParams(e);n+=t.includes("?")?`&${s}`:`?${s}`}return this.request({...s,method:"TRACE",url:n})}connect(t,e,s){return this.request({...s,method:"CONNECT",url:t,data:e})}};export{k as ReactiveEffect,Te as _instance,bs as _queries,xs as activePinia,Ze as attached,me as computed,ds as createApp,ks as createPinia,ms as createQuery,de as customRef,Pe as deepToRaw,De as deepWatch,vs as defineComponent,Ss as definePage,Os as defineStore,ss as detached,C as effect,S as effectScope,ns as error,$s as getCurrentPage,$ as getCurrentScope,is as hide,Yt as isProxy,Gt as isReactive,Qt as isReadonly,ne as isRef,Xt as isShallow,ps as launchPromise,Le as lifetimeEmit,Ae as lifetimeEmitOnce,Ce as lifetimeOn,te as markRaw,es as moved,Je as onAddToFavorites,as as onError,Me as onHide,us as onLaunch,Ue as onLoad,hs as onPageNotFound,Fe as onPageScroll,Be as onPullDownRefresh,He as onReachBottom,Ne as onReady,Qe as onResize,Ve as onRouteDone,Ye as onSaveExitState,x as onScopeDispose,Ke as onShareAppMessage,Ge as onShareTimeline,ze as onShow,Xe as onTabItemTap,fs as onThemeChange,ls as onUnhandledRejection,We as onUnload,fe as proxyRefs,Bt as reactive,Ft as readonly,ts as ready,re as ref,Es as request,os as resize,cs as routeDone,Rs as setActivatePinia,qe as setInstance,ws as setQueries,Ht as shallowReactive,Jt as shallowReadonly,ie as shallowRef,rs as show,U as stop,js as storeToRefs,Zt as toRaw,ye as toRef,ve as toRefs,he as toValue,ue as triggerRef,ae as unref,Ie as useInstance,ys as useRoute,_s as useRouter,Re as watch};
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).MpVue3={})}(this,(function(e){"use strict";
/**
* @vue/shared v3.5.1
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
/*! #__NO_SIDE_EFFECTS__ */function t(e,t){const n=new Set(e.split(","));return e=>n.has(e)}const n={},s=()=>{},i=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o=Object.prototype.hasOwnProperty,c=(e,t)=>o.call(e,t),a=Array.isArray,u=e=>"[object Map]"===v(e),h=e=>"[object Set]"===v(e),l=e=>"function"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,v=e=>d.call(e),_=e=>v(e).slice(8,-1),g=e=>"[object Object]"===v(e),y=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,b=(e,t)=>!Object.is(e,t);
/**
* @vue/reactivity v3.5.1
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let w,m;class S{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=w,!e&&w&&(this.index=(w.scopes||(w.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=w;try{return w=this,e()}finally{w=t}}}on(){w=this}off(){w=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function R(e){return new S(e)}function $(){return w}const x=new WeakSet;class P{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,w&&w.active&&w.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,x.has(this)&&(x.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||(this.flags|=8,this.nextEffect=O,O=this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,M(this),E(this);const e=m,t=C;m=this,C=!0;try{return this.fn()}finally{D(this),m=e,C=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)A(e);this.deps=this.depsTail=void 0,M(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?x.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){I(this)&&this.run()}get dirty(){return I(this)}}let O,k=0;function j(){k++}function T(){if(--k>0)return;let e;for(;O;){let t=O;for(O=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function E(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function D(e){let t,n=e.depsTail;for(let e=n;e;e=e.prevDep)-1===e.version?(e===n&&(n=e.prevDep),A(e),L(e)):t=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function I(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===q(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function q(e){if(2&e.flags)return!1;if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===W)return;e.globalVersion=W;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!I(e))return void(e.flags&=-3);const n=m,s=C;m=e,C=!0;try{E(e);const n=e.fn();(0===t.version||b(n,e._value))&&(e._value=n,t.version++)}catch(e){throw t.version++,e}finally{m=n,C=s,D(e),e.flags&=-3}}function A(e){const{dep:t,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)A(e)}}function L(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let C=!0;const U=[];function z(){U.push(C),C=!1}function N(){const e=U.pop();C=void 0===e||e}function M(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=m;m=void 0;try{t()}finally{m=e}}}let W=0;class V{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!m||!C)return;let t=this.activeLink;if(void 0===t||t.sub!==m)t=this.activeLink={dep:this,sub:m,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},m.deps?(t.prevDep=m.depsTail,m.depsTail.nextDep=t,m.depsTail=t):m.deps=m.depsTail=t,4&m.flags&&B(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=m.depsTail,t.nextDep=void 0,m.depsTail.nextDep=t,m.depsTail=t,m.deps===t&&(m.deps=e)}return t}trigger(e){this.version++,W++,this.notify(e)}notify(e){j();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{T()}}}function B(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)B(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const F=new WeakMap,H=Symbol(""),J=Symbol(""),K=Symbol("");function Q(e,t,n){if(C&&m){let t=F.get(e);t||F.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=new V),s.track()}}function G(e,t,n,s,i,r){const o=F.get(e);if(!o)return void W++;let c=[];if("clear"===t)c=[...o.values()];else{const i=a(e),r=i&&y(n);if(i&&"length"===n){const e=Number(s);o.forEach(((t,n)=>{("length"===n||n===K||!f(n)&&n>=e)&&c.push(t)}))}else{const s=e=>e&&c.push(e);switch(void 0!==n&&s(o.get(n)),r&&s(o.get(K)),t){case"add":i?r&&s(o.get("length")):(s(o.get(H)),u(e)&&s(o.get(J)));break;case"delete":i||(s(o.get(H)),u(e)&&s(o.get(J)));break;case"set":u(e)&&s(o.get(H))}}}j();for(const e of c)e.trigger();T()}function X(e){const t=Ge(e);return t===e?t:(Q(t,0,K),Ke(e)?t:t.map(Xe))}function Y(e){return Q(e=Ge(e),0,K),e}const Z={__proto__:null,[Symbol.iterator](){return ee(this,Symbol.iterator,Xe)},concat(...e){return X(this).concat(...e.map((e=>a(e)?X(e):e)))},entries(){return ee(this,"entries",(e=>(e[1]=Xe(e[1]),e)))},every(e,t){return ne(this,"every",e,t,void 0,arguments)},filter(e,t){return ne(this,"filter",e,t,(e=>e.map(Xe)),arguments)},find(e,t){return ne(this,"find",e,t,Xe,arguments)},findIndex(e,t){return ne(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ne(this,"findLast",e,t,Xe,arguments)},findLastIndex(e,t){return ne(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ne(this,"forEach",e,t,void 0,arguments)},includes(...e){return ie(this,"includes",e)},indexOf(...e){return ie(this,"indexOf",e)},join(e){return X(this).join(e)},lastIndexOf(...e){return ie(this,"lastIndexOf",e)},map(e,t){return ne(this,"map",e,t,void 0,arguments)},pop(){return re(this,"pop")},push(...e){return re(this,"push",e)},reduce(e,...t){return se(this,"reduce",e,t)},reduceRight(e,...t){return se(this,"reduceRight",e,t)},shift(){return re(this,"shift")},some(e,t){return ne(this,"some",e,t,void 0,arguments)},splice(...e){return re(this,"splice",e)},toReversed(){return X(this).toReversed()},toSorted(e){return X(this).toSorted(e)},toSpliced(...e){return X(this).toSpliced(...e)},unshift(...e){return re(this,"unshift",e)},values(){return ee(this,"values",Xe)}};function ee(e,t,n){const s=Y(e),i=s[t]();return s===e||Ke(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.value&&(e.value=n(e.value)),e}),i}const te=Array.prototype;function ne(e,t,n,s,i,r){const o=Y(e),c=o!==e&&!Ke(e),a=o[t];if(a!==te[t]){const t=a.apply(e,r);return c?Xe(t):t}let u=n;o!==e&&(c?u=function(t,s){return n.call(this,Xe(t),s,e)}:n.length>2&&(u=function(t,s){return n.call(this,t,s,e)}));const h=a.call(o,u,s);return c&&i?i(h):h}function se(e,t,n,s){const i=Y(e);let r=n;return i!==e&&(Ke(e)?n.length>3&&(r=function(t,s,i){return n.call(this,t,s,i,e)}):r=function(t,s,i){return n.call(this,t,Xe(s),i,e)}),i[t](r,...s)}function ie(e,t,n){const s=Ge(e);Q(s,0,K);const i=s[t](...n);return-1!==i&&!1!==i||!Qe(n[0])?i:(n[0]=Ge(n[0]),s[t](...n))}function re(e,t,n=[]){z(),j();const s=Ge(e)[t].apply(e,n);return T(),N(),s}const oe=t("__proto__,__v_isRef,__isVue"),ce=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(f));function ae(e){f(e)||(e=String(e));const t=Ge(this);return Q(t,0,e),t.hasOwnProperty(e)}class ue{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(s?i?Me:Ne:i?ze:Ue).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const r=a(e);if(!s){let e;if(r&&(e=Z[t]))return e;if("hasOwnProperty"===t)return ae}const o=Reflect.get(e,t,Ze(e)?e:n);return(f(t)?ce.has(t):oe(t))?o:(s||Q(e,0,t),i?o:Ze(o)?r&&y(t)?o:o.value:p(o)?s?Be(o):We(o):o)}}class he extends ue{constructor(e=!1){super(!1,e)}set(e,t,n,s){let i=e[t];if(!this._isShallow){const t=Je(i);if(Ke(n)||Je(n)||(i=Ge(i),n=Ge(n)),!a(e)&&Ze(i)&&!Ze(n))return!t&&(i.value=n,!0)}const r=a(e)&&y(t)?Number(t)<e.length:c(e,t),o=Reflect.set(e,t,n,Ze(e)?e:s);return e===Ge(s)&&(r?b(n,i)&&G(e,"set",t,n):G(e,"add",t,n)),o}deleteProperty(e,t){const n=c(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&G(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&ce.has(t)||Q(e,0,t),n}ownKeys(e){return Q(e,0,a(e)?"length":H),Reflect.ownKeys(e)}}class le extends ue{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const fe=new he,pe=new le,de=new he(!0),ve=new le(!0),_e=e=>e,ge=e=>Reflect.getPrototypeOf(e);function ye(e,t,n=!1,s=!1){const i=Ge(e=e.__v_raw),r=Ge(t);n||(b(t,r)&&Q(i,0,t),Q(i,0,r));const{has:o}=ge(i),c=s?_e:n?Ye:Xe;return o.call(i,t)?c(e.get(t)):o.call(i,r)?c(e.get(r)):void(e!==i&&e.get(t))}function be(e,t=!1){const n=this.__v_raw,s=Ge(n),i=Ge(e);return t||(b(e,i)&&Q(s,0,e),Q(s,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function we(e,t=!1){return e=e.__v_raw,!t&&Q(Ge(e),0,H),Reflect.get(e,"size",e)}function me(e,t=!1){t||Ke(e)||Je(e)||(e=Ge(e));const n=Ge(this);return ge(n).has.call(n,e)||(n.add(e),G(n,"add",e,e)),this}function Se(e,t,n=!1){n||Ke(t)||Je(t)||(t=Ge(t));const s=Ge(this),{has:i,get:r}=ge(s);let o=i.call(s,e);o||(e=Ge(e),o=i.call(s,e));const c=r.call(s,e);return s.set(e,t),o?b(t,c)&&G(s,"set",e,t):G(s,"add",e,t),this}function Re(e){const t=Ge(this),{has:n,get:s}=ge(t);let i=n.call(t,e);i||(e=Ge(e),i=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return i&&G(t,"delete",e,void 0),r}function $e(){const e=Ge(this),t=0!==e.size,n=e.clear();return t&&G(e,"clear",void 0,void 0),n}function xe(e,t){return function(n,s){const i=this,r=i.__v_raw,o=Ge(r),c=t?_e:e?Ye:Xe;return!e&&Q(o,0,H),r.forEach(((e,t)=>n.call(s,c(e),c(t),i)))}}function Pe(e,t,n){return function(...s){const i=this.__v_raw,r=Ge(i),o=u(r),c="entries"===e||e===Symbol.iterator&&o,a="keys"===e&&o,h=i[e](...s),l=n?_e:t?Ye:Xe;return!t&&Q(r,0,a?J:H),{next(){const{value:e,done:t}=h.next();return t?{value:e,done:t}:{value:c?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function Oe(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ke(){const e={get(e){return ye(this,e)},get size(){return we(this)},has:be,add:me,set:Se,delete:Re,clear:$e,forEach:xe(!1,!1)},t={get(e){return ye(this,e,!1,!0)},get size(){return we(this)},has:be,add(e){return me.call(this,e,!0)},set(e,t){return Se.call(this,e,t,!0)},delete:Re,clear:$e,forEach:xe(!1,!0)},n={get(e){return ye(this,e,!0)},get size(){return we(this,!0)},has(e){return be.call(this,e,!0)},add:Oe("add"),set:Oe("set"),delete:Oe("delete"),clear:Oe("clear"),forEach:xe(!0,!1)},s={get(e){return ye(this,e,!0,!0)},get size(){return we(this,!0)},has(e){return be.call(this,e,!0)},add:Oe("add"),set:Oe("set"),delete:Oe("delete"),clear:Oe("clear"),forEach:xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Pe(i,!1,!1),n[i]=Pe(i,!0,!1),t[i]=Pe(i,!1,!0),s[i]=Pe(i,!0,!0)})),[e,n,t,s]}const[je,Te,Ee,De]=ke();function Ie(e,t){const n=t?e?De:Ee:e?Te:je;return(t,s,i)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(c(n,s)&&s in t?n:t,s,i)}const qe={get:Ie(!1,!1)},Ae={get:Ie(!1,!0)},Le={get:Ie(!0,!1)},Ce={get:Ie(!0,!0)},Ue=new WeakMap,ze=new WeakMap,Ne=new WeakMap,Me=new WeakMap;function We(e){return Je(e)?e:Fe(e,!1,fe,qe,Ue)}function Ve(e){return Fe(e,!1,de,Ae,ze)}function Be(e){return Fe(e,!0,pe,Le,Ne)}function Fe(e,t,n,s,i){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const o=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(_(c));var c;if(0===o)return e;const a=new Proxy(e,2===o?s:n);return i.set(e,a),a}function He(e){return Je(e)?He(e.__v_raw):!(!e||!e.__v_isReactive)}function Je(e){return!(!e||!e.__v_isReadonly)}function Ke(e){return!(!e||!e.__v_isShallow)}function Qe(e){return!!e&&!!e.__v_raw}function Ge(e){const t=e&&e.__v_raw;return t?Ge(t):e}const Xe=e=>p(e)?We(e):e,Ye=e=>p(e)?Be(e):e;function Ze(e){return!!e&&!0===e.__v_isRef}function et(e){return tt(e,!1)}function tt(e,t){return Ze(e)?e:new nt(e,t)}class nt{constructor(e,t){this.dep=new V,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Ge(e),this._value=t?e:Xe(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Ke(e)||Je(e);e=n?e:Ge(e),b(e,t)&&(this._rawValue=e,this._value=n?e:Xe(e),this.dep.trigger())}}function st(e){return Ze(e)?e.value:e}const it={get:(e,t,n)=>st(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return Ze(i)&&!Ze(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};class rt{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new V,{get:n,set:s}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}}class ot{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Ge(this._object),t=this._key,null==(n=F.get(e))?void 0:n.get(t);var e,t,n}}class ct{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function at(e,t,n){return Ze(e)?e:l(e)?new ct(e):p(e)&&arguments.length>1?ut(e,t,n):et(e)}function ut(e,t,n){const s=e[t];return Ze(s)?s:new ot(e,t,n)}class ht{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new V(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=W-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){m!==this&&(this.flags|=16,this.dep.notify())}get value(){const e=this.dep.track();return q(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const lt={},ft=new WeakMap;let pt;function dt(e,t,i=n){const{immediate:o,deep:c,once:u,scheduler:h,augmentJob:f,call:p}=i,d=e=>c?e:Ke(e)||!1===c||0===c?vt(e,1):vt(e);let v,_,g,y,w=!1,m=!1;if(Ze(e)?(_=()=>e.value,w=Ke(e)):He(e)?(_=()=>d(e),w=!0):a(e)?(m=!0,w=e.some((e=>He(e)||Ke(e))),_=()=>e.map((e=>Ze(e)?e.value:He(e)?d(e):l(e)?p?p(e,2):e():void 0))):_=l(e)?t?p?()=>p(e,2):e:()=>{if(g){z();try{g()}finally{N()}}const t=pt;pt=v;try{return p?p(e,3,[y]):e(y)}finally{pt=t}}:s,t&&c){const e=_,t=!0===c?1/0:c;_=()=>vt(e(),t)}const S=$(),R=()=>{v.stop(),S&&r(S.effects,v)};if(u)if(t){const e=t;t=(...t)=>{e(...t),R()}}else{const e=_;_=()=>{e(),R()}}let x=m?new Array(e.length).fill(lt):lt;const O=e=>{if(1&v.flags&&(v.dirty||e))if(t){const e=v.run();if(c||w||(m?e.some(((e,t)=>b(e,x[t]))):b(e,x))){g&&g();const n=pt;pt=v;try{const n=[e,x===lt?void 0:m&&x[0]===lt?[]:x,y];p?p(t,3,n):t(...n),x=e}finally{pt=n}}}else v.run()};return f&&f(O),v=new P(_),v.scheduler=h?()=>h(O,!1):O,y=e=>function(e,t=!1,n=pt){if(n){let t=ft.get(n);t||ft.set(n,t=[]),t.push(e)}}(e,!1,v),g=v.onStop=()=>{const e=ft.get(v);if(e){if(p)p(e,4);else for(const t of e)t();ft.delete(v)}},t?o?O(!0):x=v.run():h?h(O.bind(null,!0),!0):v.run(),R.pause=v.pause.bind(v),R.resume=v.resume.bind(v),R.stop=R,R}function vt(e,t=1/0,n){if(t<=0||!p(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Ze(e))vt(e.value,t,n);else if(a(e))for(let s=0;s<e.length;s++)vt(e[s],t,n);else if(h(e)||u(e))e.forEach((e=>{vt(e,t,n)}));else if(g(e)){for(const s in e)vt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&vt(e[s],t,n)}return e}const{isArray:_t}=Array;function gt(e){return Object.prototype.toString.call(e).slice(8,-1)}function yt(e){return"function"==typeof e}function bt(e){if(function(e){const t=new Set(["undefined","boolean","number","string"]);return null===e||t.has(typeof e)}(e)||yt(e))return e;if(Ze(e))return bt(e.value);if(Qe(e))return bt(Ge(e));if(_t(e))return e.map((e=>bt(e)));if(function(e){return"Object"===gt(e)}(e)){const t={};return Object.keys(e).forEach((n=>{t[n]=bt(e[n])})),t}throw new TypeError(`${gt(e)} value is not supported`)}function wt(e,t,n){var s;null!==(s=n)&&"object"==typeof s&&dt(Ze(n)?n:()=>n,(()=>{e.setData({[t]:bt(n)})}),{deep:!0})}e._instance=null;const mt=t=>{e._instance=t},St=(e,t,n,...s)=>{if(t&&t[n]&&t[n].apply(e,s),!e[`$${n}`])return;const i={onLoad:"onUnload",onShow:"onHide",attached:"detached",show:"hide"}[n];e[`$${n}`].forEach((t=>{if(i){const n=e[`$${i}`]&&e[`$${i}`].find((e=>e.front===t));n&&n()}const n=t.apply(e,s);if(i&&"function"==typeof n){e[`$${i}`]&&e[`$${i}`].find((e=>e.front===t))||(n.front,e[`$${i}`]||(e[`$${i}`]=[]),e[`$${i}`].push(n))}}))},Rt=(e,t,n,...s)=>{if(t&&t[n])return t[n].apply(e,s);if(e[`$${n}`]){if(e[`$${n}`].length)throw new Error(`一个page只能配置一个${n}`);return e[`$${n}`][0].apply(e,s)}},$t=(e,t,n)=>{e&&(e[`$${t}`]||(e[`$${t}`]=[]),e[`$${t}`].push(n.bind(e)))};e.launchPromise=Promise.resolve(!0);const xt=e=>e?Object.keys(e).map((t=>{let n=e[t];return"object"==typeof e[t]&&(n=encodeURIComponent(JSON.stringify(e[t]))),`${t}=${n}`})).join("&"):"";e._queries={};const Pt=t=>{e._queries=t},Ot=(e,t)=>{if(!t)return e;let n={};for(let s in e)if(s in t){const i=e[s],r=t[s];if(!r){n[s]=i;break}const o=r.type||r,c=e=>"formatter"in r&&void 0!==r.formatter?r.formatter(e):o===Boolean?!!e:o===Number?Number(e):o===Object?e?JSON.parse(decodeURIComponent(e)):{}:o===Array?e?JSON.parse(decodeURIComponent(e)):[]:(null===o||o===String||console.error("未知的·type·",o),e);n[s]=c(i)}else n[s]=e[s];return n};function kt(t){e.activePinia=t}e.activePinia=void 0;const jt=new class{constructor(){this.defaultOptions={header:{"Content-Type":"application/json"}},this.baseUrl="/api"}setBaseUrl(e){this.baseUrl=e}setRequestInterceptor(e){this.requestInterceptor=e}setResponseInterceptor(e){this.responseInterceptor=e}async request(e){const t=/^http/.test(e.url)?e.url:this.baseUrl.endsWith("/")||e.url.startsWith("/")?`${this.baseUrl}${e.url}`:`${this.baseUrl}/${e.url}`;let n={...this.defaultOptions,...e,url:t};return this.requestInterceptor&&(n=await this.requestInterceptor(n)),new Promise(((e,t)=>{const{success:s,fail:i,complete:r,...o}=n;wx.request({...o,success:async n=>{try{if(this.responseInterceptor&&(n=await this.responseInterceptor(n)),n.statusCode>=200&&n.statusCode<300)"function"==typeof s&&s(n),e(n);else{const e=new Error(`请求失败,状态码:${n.statusCode}`);"function"==typeof i&&i(e),t(e)}}catch(e){"function"==typeof i&&i(e),t(e)}},fail:e=>{"function"==typeof i&&i(e),t(e)},complete:e=>{"function"==typeof r&&r(e)}})}))}serializeParams(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}get(e,t,n){let s=e;if(t&&Object.keys(t).length>0){const n=this.serializeParams(t);s+=e.includes("?")?`&${n}`:`?${n}`}return this.request({...n,method:"GET",url:s})}post(e,t,n){return this.request({...n,method:"POST",url:e,data:t})}options(e,t,n){let s=e;if(t&&Object.keys(t).length>0){const n=this.serializeParams(t);s+=e.includes("?")?`&${n}`:`?${n}`}return this.request({...n,method:"OPTIONS",url:s})}head(e,t,n){let s=e;if(t&&Object.keys(t).length>0){const n=this.serializeParams(t);s+=e.includes("?")?`&${n}`:`?${n}`}return this.request({...n,method:"HEAD",url:s})}put(e,t,n){return this.request({...n,method:"PUT",url:e,data:t})}delete(e,t,n){return this.request({...n,method:"DELETE",url:e,data:t})}trace(e,t,n){let s=e;if(t&&Object.keys(t).length>0){const n=this.serializeParams(t);s+=e.includes("?")?`&${n}`:`?${n}`}return this.request({...n,method:"TRACE",url:s})}connect(e,t,n){return this.request({...n,method:"CONNECT",url:e,data:t})}};e.ReactiveEffect=P,e.attached=t=>$t(e._instance,"attached",t),e.computed=function(e,t,n=!1){let s,i;return l(e)?s=e:(s=e.get,i=e.set),new ht(s,i,n)},e.createApp=t=>{if(!t)return App({});let n={};if("function"!=typeof t){const{setup:e,...s}=t;n=s,t=e}return t?App({...n,onLaunch(s){e.launchPromise=new Promise((async e=>{mt(this);const i=await t.call(this,s);void 0!==i&&Object.keys(i).forEach((e=>{this[e]=i[e]})),St(this,n,"onLaunch",s),mt(null),e(!0)}))},onShow(e){St(this,n,"onShow",e)},onHide(){St(this,n,"onHide")},onError(e){St(this,n,"onError",e)},onPageNotFound(e){St(this,n,"onPageNotFound",e)},onUnhandledRejection(e){St(this,n,"onUnhandledRejection",e)},onThemeChange(e){St(this,n,"onThemeChange",e)}}):App(n)},e.createPinia=function(){const e=R(!0),t=e.run((()=>et({}))),n={install(){kt(n)},scope:e,state:t,stores:{}};return n},e.createQuery=Ot,e.customRef=function(e){return new rt(e)},e.deepToRaw=bt,e.deepWatch=wt,e.defineComponent=t=>{if(!t)return Component({});let n={};if("function"!=typeof t){const{setup:e,...s}=t;n=s,t=e}if(!t)return Component(n);let s=null;return n.properties&&(s=Object.keys(n.properties)),s&&s.forEach((e=>{void 0===n.observers&&(n.observers={});const t=n.observers[e];n.observers[e]=function(n){this.$props&&(this.$props[e]=n),void 0!==t&&t.call(this,n)}})),Component({...n,lifetimes:{attached(){e.launchPromise.then((()=>{mt(this),this.$scope=R();const e={};s&&s.forEach((t=>{e[t]=this.data[t]})),this.$props=Ve(e),this.$context={emit:(e,...t)=>{this.triggerEvent(e,{value:t[0]})}},this.$scope.run((()=>{const e=t.call(this,this.$props,this.$context);void 0!==e&&Object.keys(e).forEach((t=>{const n=e[t];yt(n)?this[t]=n:(this.setData({[t]:bt(n)}),wt(this,t,n))})),St(this,n,"attached")})),mt(null)}))},ready(){St(this,n,"ready")},moved(){St(this,n,"moved")},detached(){St(this,n,"detached"),this.$scope&&this.$scope.stop(),Object.keys(this).forEach((e=>{try{/^$/.test(e)&&delete this[e]}catch(e){console.error("销毁异常",e)}}))},error(e){St(this,n,"error",e)}},pageLifetimes:{show(){St(this,n,"show")},hide(){St(this,n,"hide")},resize(e){St(this,n,"resize",e)},routeDone(){St(this,n,"routeDone")}}})},e.definePage=t=>{if(!t)return Page({});let n={};if("function"!=typeof t){const{setup:e,...s}=t;n=s||{},t=e}if(!t)return Page(n);const{queries:s,...i}=n;return Page({...i,onLoad(i){e.launchPromise.then((()=>{mt(this),Pt(s),this.$scope=R(),this.$query=Ot(i,s),this.$context={},this.$scope.run((()=>{const e=t.call(this,this.$query,this.$context);void 0!==e&&Object.keys(e).forEach((t=>{const n=e[t];yt(n)?this[t]=n:(this.setData({[t]:bt(n)}),wt(this,t,n))})),St(this,n,"onLoad",i)})),Pt({}),mt(null)}))},onShow(){St(this,n,"onShow")},onReady(){St(this,n,"onReady")},onHide(){St(this,n,"onHide")},onUnload(){St(this,n,"onUnload"),this.$scope&&this.$scope.stop(),Object.keys(this).forEach((e=>{try{/^$/.test(e)&&delete this[e]}catch(e){console.error("销毁异常",e)}}))},onRouteDone(){St(this,n,"onRouteDone")},onPullDownRefresh(){St(this,n,"onPullDownRefresh")},onReachBottom(){St(this,n,"onReachBottom")},onPageScroll(e){St(this,n,"onPageScroll",e)},onAddToFavorites(e){return Rt(this,n,"onAddToFavorites",e)},onShareAppMessage(e){return Rt(this,n,"onShareAppMessage",e)},onShareTimeline(){return Rt(this,n,"onShareTimeline")},onResize(e){St(this,n,"onResize",e)},onTabItemTap(e){St(this,n,"onTabItemTap",e)},onSaveExitState(){St(this,n,"onSaveExitState")}})},e.defineStore=function(t,n,s){return function(i){if(i&&kt(i),!(i=e.activePinia))throw new Error("no active pinia");return i.stores[t]||function(e,t,n,s){const i={},r=e.scope.run(n);Object.assign(i,r),e.stores[t]=i;const o="PINIA_"+t;s&&s.persist&&s.persist.forEach((n=>{const s=`${o}_${n}`,i=wx.getStorageSync(s),r=wx.getStorageInfoSync().keys.includes(s);e.stores[t][n]&&r&&(Ze(e.stores[t][n])?e.stores[t][n].value=i:Object.keys(i).forEach((s=>{e.stores[t][n][s]=i[s]}))),dt(Ze(e.stores[t][n])?e.stores[t][n]:()=>e.stores[t][n],(e=>{wx.setStorageSync(s,e)}),{deep:!0})}))}(i,t,n,s),i.stores[t]}},e.detached=t=>$t(e._instance,"detached",t),e.effect=function(e,t){e.effect instanceof P&&(e=e.effect.fn);const n=new P(e);t&&i(n,t);try{n.run()}catch(e){throw n.stop(),e}const s=n.run.bind(n);return s.effect=n,s},e.effectScope=R,e.error=t=>$t(e._instance,"error",t),e.getCurrentPage=()=>{const e=getCurrentPages();return e&&e[e.length-1]},e.getCurrentScope=$,e.hide=t=>$t(e._instance,"hide",t),e.isProxy=Qe,e.isReactive=He,e.isReadonly=Je,e.isRef=Ze,e.isShallow=Ke,e.lifetimeEmit=St,e.lifetimeEmitOnce=Rt,e.lifetimeOn=$t,e.markRaw=function(e){return Object.isExtensible(e)&&((e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})})(e,"__v_skip",!0),e},e.moved=t=>$t(e._instance,"moved",t),e.onAddToFavorites=t=>$t(e._instance,"onAddToFavorites",t),e.onError=t=>$t(e._instance,"onError",t),e.onHide=t=>$t(e._instance,"onHide",t),e.onLaunch=t=>$t(e._instance,"onLaunch",t),e.onLoad=t=>$t(e._instance,"onLoad",t),e.onPageNotFound=t=>$t(e._instance,"onPageNotFound",t),e.onPageScroll=t=>$t(e._instance,"onPageScroll",t),e.onPullDownRefresh=t=>$t(e._instance,"onPullDownRefresh",t),e.onReachBottom=t=>$t(e._instance,"onReachBottom",t),e.onReady=t=>$t(e._instance,"onReady",t),e.onResize=t=>$t(e._instance,"onResize",t),e.onRouteDone=t=>$t(e._instance,"onRouteDone",t),e.onSaveExitState=t=>$t(e._instance,"onSaveExitState",t),e.onScopeDispose=function(e,t=!1){w&&w.cleanups.push(e)},e.onShareAppMessage=t=>$t(e._instance,"onShareAppMessage",t),e.onShareTimeline=t=>$t(e._instance,"onShareTimeline",t),e.onShow=t=>$t(e._instance,"onShow",t),e.onTabItemTap=t=>$t(e._instance,"onTabItemTap",t),e.onThemeChange=t=>$t(e._instance,"onThemeChange",t),e.onUnhandledRejection=t=>$t(e._instance,"onUnhandledRejection",t),e.onUnload=t=>$t(e._instance,"onUnload",t),e.proxyRefs=function(e){return He(e)?e:new Proxy(e,it)},e.reactive=We,e.readonly=Be,e.ready=t=>$t(e._instance,"ready",t),e.ref=et,e.request=jt,e.resize=t=>$t(e._instance,"resize",t),e.routeDone=t=>$t(e._instance,"routeDone",t),e.setActivatePinia=kt,e.setInstance=mt,e.setQueries=Pt,e.shallowReactive=Ve,e.shallowReadonly=function(e){return Fe(e,!0,ve,Ce,Me)},e.shallowRef=function(e){return tt(e,!0)},e.show=t=>$t(e._instance,"show",t),e.stop=function(e){e.effect.stop()},e.storeToRefs=function(e){e=Ge(e);const t={};for(const n in e){const s=e[n];(Ze(s)||He(s))&&(t[n]=at(e,n))}return t},e.toRaw=Ge,e.toRef=at,e.toRefs=function(e){const t=a(e)?new Array(e.length):{};for(const n in e)t[n]=ut(e,n);return t},e.toValue=function(e){return l(e)?e():st(e)},e.triggerRef=function(e){e.dep.trigger()},e.unref=st,e.useInstance=()=>e._instance,e.useRoute=()=>{const t=getCurrentPages(),n=t[t.length-1];return{path:n.route,query:Ot(n.options,e._queries)}},e.useRouter=()=>({push:e=>{if("string"==typeof e)return wx.navigateTo({url:e});let t;return t="path"in e?e.query?`${e.path}?${xt(e.query)}`:e.path:e.url,wx.navigateTo({url:t,...e})},replace:e=>{if("string"==typeof e)return wx.redirectTo({url:e});let t;return t="path"in e?e.query?`${e.path}?${xt(e.query)}`:e.path:e.url,wx.redirectTo({url:t,...e})},go:e=>{if(!(e>0))return wx.navigateBack({delta:Math.abs(e)});console.warn("微信小程序不支持前进历史记录")},back:e=>wx.navigateBack(e),switchTab:e=>{if("string"==typeof e)return wx.switchTab({url:e});let t;return t="path"in e?e.query?`${e.path}?${xt(e.query)}`:e.path:e.url,wx.switchTab({url:t,...e})},reLaunch:e=>{if("string"==typeof e)return wx.reLaunch({url:e});let t;return t="path"in e?e.query?`${e.path}?${xt(e.query)}`:e.path:e.url,wx.reLaunch({url:t,...e})}}),e.watch=dt}));
+8
-7
{
"name": "@52css/mp-vue3",
"version": "1.1.3",
"version": "1.1.4",
"description": "基于 Vue 3 的小程序框架:轻松构建高效应用",
"type": "module",
"main": "dist/mp-vue3.min.js",
"main": "dist/mp-vue3.cjs.js",
"module": "dist/mp-vue3.esm.js",
"browser": "dist/mp-vue3.umd.js",
"types": "types/index.d.ts",

@@ -22,5 +24,2 @@ "devDependencies": {

},
"scripts": {
"build": "rollup -c"
},
"peerDependencies": {

@@ -52,3 +51,5 @@ "typescript": "^5.5.4"

],
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903"
}
"scripts": {
"build": "rollup -c"
}
}
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).MpVue3={})}(this,(function(e){"use strict";
/**
* @vue/shared v3.5.1
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
/*! #__NO_SIDE_EFFECTS__ */function t(e,t){const n=new Set(e.split(","));return e=>n.has(e)}const n={},s=()=>{},i=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o=Object.prototype.hasOwnProperty,c=(e,t)=>o.call(e,t),a=Array.isArray,u=e=>"[object Map]"===v(e),h=e=>"[object Set]"===v(e),l=e=>"function"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,v=e=>d.call(e),_=e=>v(e).slice(8,-1),g=e=>"[object Object]"===v(e),y=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,b=(e,t)=>!Object.is(e,t);
/**
* @vue/reactivity v3.5.1
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let w,m;class S{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=w,!e&&w&&(this.index=(w.scopes||(w.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=w;try{return w=this,e()}finally{w=t}}}on(){w=this}off(){w=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function R(e){return new S(e)}function $(){return w}const x=new WeakSet;class P{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,w&&w.active&&w.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,x.has(this)&&(x.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||(this.flags|=8,this.nextEffect=O,O=this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,M(this),E(this);const e=m,t=C;m=this,C=!0;try{return this.fn()}finally{D(this),m=e,C=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)A(e);this.deps=this.depsTail=void 0,M(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?x.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){I(this)&&this.run()}get dirty(){return I(this)}}let O,k=0;function j(){k++}function T(){if(--k>0)return;let e;for(;O;){let t=O;for(O=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function E(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function D(e){let t,n=e.depsTail;for(let e=n;e;e=e.prevDep)-1===e.version?(e===n&&(n=e.prevDep),A(e),L(e)):t=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function I(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===q(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function q(e){if(2&e.flags)return!1;if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===W)return;e.globalVersion=W;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!I(e))return void(e.flags&=-3);const n=m,s=C;m=e,C=!0;try{E(e);const n=e.fn();(0===t.version||b(n,e._value))&&(e._value=n,t.version++)}catch(e){throw t.version++,e}finally{m=n,C=s,D(e),e.flags&=-3}}function A(e){const{dep:t,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)A(e)}}function L(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let C=!0;const U=[];function z(){U.push(C),C=!1}function N(){const e=U.pop();C=void 0===e||e}function M(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=m;m=void 0;try{t()}finally{m=e}}}let W=0;class V{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!m||!C)return;let t=this.activeLink;if(void 0===t||t.sub!==m)t=this.activeLink={dep:this,sub:m,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},m.deps?(t.prevDep=m.depsTail,m.depsTail.nextDep=t,m.depsTail=t):m.deps=m.depsTail=t,4&m.flags&&B(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=m.depsTail,t.nextDep=void 0,m.depsTail.nextDep=t,m.depsTail=t,m.deps===t&&(m.deps=e)}return t}trigger(e){this.version++,W++,this.notify(e)}notify(e){j();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{T()}}}function B(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)B(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const F=new WeakMap,H=Symbol(""),J=Symbol(""),K=Symbol("");function Q(e,t,n){if(C&&m){let t=F.get(e);t||F.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=new V),s.track()}}function G(e,t,n,s,i,r){const o=F.get(e);if(!o)return void W++;let c=[];if("clear"===t)c=[...o.values()];else{const i=a(e),r=i&&y(n);if(i&&"length"===n){const e=Number(s);o.forEach(((t,n)=>{("length"===n||n===K||!f(n)&&n>=e)&&c.push(t)}))}else{const s=e=>e&&c.push(e);switch(void 0!==n&&s(o.get(n)),r&&s(o.get(K)),t){case"add":i?r&&s(o.get("length")):(s(o.get(H)),u(e)&&s(o.get(J)));break;case"delete":i||(s(o.get(H)),u(e)&&s(o.get(J)));break;case"set":u(e)&&s(o.get(H))}}}j();for(const e of c)e.trigger();T()}function X(e){const t=Ge(e);return t===e?t:(Q(t,0,K),Ke(e)?t:t.map(Xe))}function Y(e){return Q(e=Ge(e),0,K),e}const Z={__proto__:null,[Symbol.iterator](){return ee(this,Symbol.iterator,Xe)},concat(...e){return X(this).concat(...e.map((e=>a(e)?X(e):e)))},entries(){return ee(this,"entries",(e=>(e[1]=Xe(e[1]),e)))},every(e,t){return ne(this,"every",e,t,void 0,arguments)},filter(e,t){return ne(this,"filter",e,t,(e=>e.map(Xe)),arguments)},find(e,t){return ne(this,"find",e,t,Xe,arguments)},findIndex(e,t){return ne(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ne(this,"findLast",e,t,Xe,arguments)},findLastIndex(e,t){return ne(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ne(this,"forEach",e,t,void 0,arguments)},includes(...e){return ie(this,"includes",e)},indexOf(...e){return ie(this,"indexOf",e)},join(e){return X(this).join(e)},lastIndexOf(...e){return ie(this,"lastIndexOf",e)},map(e,t){return ne(this,"map",e,t,void 0,arguments)},pop(){return re(this,"pop")},push(...e){return re(this,"push",e)},reduce(e,...t){return se(this,"reduce",e,t)},reduceRight(e,...t){return se(this,"reduceRight",e,t)},shift(){return re(this,"shift")},some(e,t){return ne(this,"some",e,t,void 0,arguments)},splice(...e){return re(this,"splice",e)},toReversed(){return X(this).toReversed()},toSorted(e){return X(this).toSorted(e)},toSpliced(...e){return X(this).toSpliced(...e)},unshift(...e){return re(this,"unshift",e)},values(){return ee(this,"values",Xe)}};function ee(e,t,n){const s=Y(e),i=s[t]();return s===e||Ke(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.value&&(e.value=n(e.value)),e}),i}const te=Array.prototype;function ne(e,t,n,s,i,r){const o=Y(e),c=o!==e&&!Ke(e),a=o[t];if(a!==te[t]){const t=a.apply(e,r);return c?Xe(t):t}let u=n;o!==e&&(c?u=function(t,s){return n.call(this,Xe(t),s,e)}:n.length>2&&(u=function(t,s){return n.call(this,t,s,e)}));const h=a.call(o,u,s);return c&&i?i(h):h}function se(e,t,n,s){const i=Y(e);let r=n;return i!==e&&(Ke(e)?n.length>3&&(r=function(t,s,i){return n.call(this,t,s,i,e)}):r=function(t,s,i){return n.call(this,t,Xe(s),i,e)}),i[t](r,...s)}function ie(e,t,n){const s=Ge(e);Q(s,0,K);const i=s[t](...n);return-1!==i&&!1!==i||!Qe(n[0])?i:(n[0]=Ge(n[0]),s[t](...n))}function re(e,t,n=[]){z(),j();const s=Ge(e)[t].apply(e,n);return T(),N(),s}const oe=t("__proto__,__v_isRef,__isVue"),ce=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(f));function ae(e){f(e)||(e=String(e));const t=Ge(this);return Q(t,0,e),t.hasOwnProperty(e)}class ue{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(s?i?Me:Ne:i?ze:Ue).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const r=a(e);if(!s){let e;if(r&&(e=Z[t]))return e;if("hasOwnProperty"===t)return ae}const o=Reflect.get(e,t,Ze(e)?e:n);return(f(t)?ce.has(t):oe(t))?o:(s||Q(e,0,t),i?o:Ze(o)?r&&y(t)?o:o.value:p(o)?s?Be(o):We(o):o)}}class he extends ue{constructor(e=!1){super(!1,e)}set(e,t,n,s){let i=e[t];if(!this._isShallow){const t=Je(i);if(Ke(n)||Je(n)||(i=Ge(i),n=Ge(n)),!a(e)&&Ze(i)&&!Ze(n))return!t&&(i.value=n,!0)}const r=a(e)&&y(t)?Number(t)<e.length:c(e,t),o=Reflect.set(e,t,n,Ze(e)?e:s);return e===Ge(s)&&(r?b(n,i)&&G(e,"set",t,n):G(e,"add",t,n)),o}deleteProperty(e,t){const n=c(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&G(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&ce.has(t)||Q(e,0,t),n}ownKeys(e){return Q(e,0,a(e)?"length":H),Reflect.ownKeys(e)}}class le extends ue{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const fe=new he,pe=new le,de=new he(!0),ve=new le(!0),_e=e=>e,ge=e=>Reflect.getPrototypeOf(e);function ye(e,t,n=!1,s=!1){const i=Ge(e=e.__v_raw),r=Ge(t);n||(b(t,r)&&Q(i,0,t),Q(i,0,r));const{has:o}=ge(i),c=s?_e:n?Ye:Xe;return o.call(i,t)?c(e.get(t)):o.call(i,r)?c(e.get(r)):void(e!==i&&e.get(t))}function be(e,t=!1){const n=this.__v_raw,s=Ge(n),i=Ge(e);return t||(b(e,i)&&Q(s,0,e),Q(s,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function we(e,t=!1){return e=e.__v_raw,!t&&Q(Ge(e),0,H),Reflect.get(e,"size",e)}function me(e,t=!1){t||Ke(e)||Je(e)||(e=Ge(e));const n=Ge(this);return ge(n).has.call(n,e)||(n.add(e),G(n,"add",e,e)),this}function Se(e,t,n=!1){n||Ke(t)||Je(t)||(t=Ge(t));const s=Ge(this),{has:i,get:r}=ge(s);let o=i.call(s,e);o||(e=Ge(e),o=i.call(s,e));const c=r.call(s,e);return s.set(e,t),o?b(t,c)&&G(s,"set",e,t):G(s,"add",e,t),this}function Re(e){const t=Ge(this),{has:n,get:s}=ge(t);let i=n.call(t,e);i||(e=Ge(e),i=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return i&&G(t,"delete",e,void 0),r}function $e(){const e=Ge(this),t=0!==e.size,n=e.clear();return t&&G(e,"clear",void 0,void 0),n}function xe(e,t){return function(n,s){const i=this,r=i.__v_raw,o=Ge(r),c=t?_e:e?Ye:Xe;return!e&&Q(o,0,H),r.forEach(((e,t)=>n.call(s,c(e),c(t),i)))}}function Pe(e,t,n){return function(...s){const i=this.__v_raw,r=Ge(i),o=u(r),c="entries"===e||e===Symbol.iterator&&o,a="keys"===e&&o,h=i[e](...s),l=n?_e:t?Ye:Xe;return!t&&Q(r,0,a?J:H),{next(){const{value:e,done:t}=h.next();return t?{value:e,done:t}:{value:c?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function Oe(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ke(){const e={get(e){return ye(this,e)},get size(){return we(this)},has:be,add:me,set:Se,delete:Re,clear:$e,forEach:xe(!1,!1)},t={get(e){return ye(this,e,!1,!0)},get size(){return we(this)},has:be,add(e){return me.call(this,e,!0)},set(e,t){return Se.call(this,e,t,!0)},delete:Re,clear:$e,forEach:xe(!1,!0)},n={get(e){return ye(this,e,!0)},get size(){return we(this,!0)},has(e){return be.call(this,e,!0)},add:Oe("add"),set:Oe("set"),delete:Oe("delete"),clear:Oe("clear"),forEach:xe(!0,!1)},s={get(e){return ye(this,e,!0,!0)},get size(){return we(this,!0)},has(e){return be.call(this,e,!0)},add:Oe("add"),set:Oe("set"),delete:Oe("delete"),clear:Oe("clear"),forEach:xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Pe(i,!1,!1),n[i]=Pe(i,!0,!1),t[i]=Pe(i,!1,!0),s[i]=Pe(i,!0,!0)})),[e,n,t,s]}const[je,Te,Ee,De]=ke();function Ie(e,t){const n=t?e?De:Ee:e?Te:je;return(t,s,i)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(c(n,s)&&s in t?n:t,s,i)}const qe={get:Ie(!1,!1)},Ae={get:Ie(!1,!0)},Le={get:Ie(!0,!1)},Ce={get:Ie(!0,!0)},Ue=new WeakMap,ze=new WeakMap,Ne=new WeakMap,Me=new WeakMap;function We(e){return Je(e)?e:Fe(e,!1,fe,qe,Ue)}function Ve(e){return Fe(e,!1,de,Ae,ze)}function Be(e){return Fe(e,!0,pe,Le,Ne)}function Fe(e,t,n,s,i){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const o=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(_(c));var c;if(0===o)return e;const a=new Proxy(e,2===o?s:n);return i.set(e,a),a}function He(e){return Je(e)?He(e.__v_raw):!(!e||!e.__v_isReactive)}function Je(e){return!(!e||!e.__v_isReadonly)}function Ke(e){return!(!e||!e.__v_isShallow)}function Qe(e){return!!e&&!!e.__v_raw}function Ge(e){const t=e&&e.__v_raw;return t?Ge(t):e}const Xe=e=>p(e)?We(e):e,Ye=e=>p(e)?Be(e):e;function Ze(e){return!!e&&!0===e.__v_isRef}function et(e){return tt(e,!1)}function tt(e,t){return Ze(e)?e:new nt(e,t)}class nt{constructor(e,t){this.dep=new V,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Ge(e),this._value=t?e:Xe(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Ke(e)||Je(e);e=n?e:Ge(e),b(e,t)&&(this._rawValue=e,this._value=n?e:Xe(e),this.dep.trigger())}}function st(e){return Ze(e)?e.value:e}const it={get:(e,t,n)=>st(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return Ze(i)&&!Ze(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};class rt{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new V,{get:n,set:s}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}}class ot{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Ge(this._object),t=this._key,null==(n=F.get(e))?void 0:n.get(t);var e,t,n}}class ct{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function at(e,t,n){return Ze(e)?e:l(e)?new ct(e):p(e)&&arguments.length>1?ut(e,t,n):et(e)}function ut(e,t,n){const s=e[t];return Ze(s)?s:new ot(e,t,n)}class ht{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new V(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=W-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){m!==this&&(this.flags|=16,this.dep.notify())}get value(){const e=this.dep.track();return q(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const lt={},ft=new WeakMap;let pt;function dt(e,t,i=n){const{immediate:o,deep:c,once:u,scheduler:h,augmentJob:f,call:p}=i,d=e=>c?e:Ke(e)||!1===c||0===c?vt(e,1):vt(e);let v,_,g,y,w=!1,m=!1;if(Ze(e)?(_=()=>e.value,w=Ke(e)):He(e)?(_=()=>d(e),w=!0):a(e)?(m=!0,w=e.some((e=>He(e)||Ke(e))),_=()=>e.map((e=>Ze(e)?e.value:He(e)?d(e):l(e)?p?p(e,2):e():void 0))):_=l(e)?t?p?()=>p(e,2):e:()=>{if(g){z();try{g()}finally{N()}}const t=pt;pt=v;try{return p?p(e,3,[y]):e(y)}finally{pt=t}}:s,t&&c){const e=_,t=!0===c?1/0:c;_=()=>vt(e(),t)}const S=$(),R=()=>{v.stop(),S&&r(S.effects,v)};if(u)if(t){const e=t;t=(...t)=>{e(...t),R()}}else{const e=_;_=()=>{e(),R()}}let x=m?new Array(e.length).fill(lt):lt;const O=e=>{if(1&v.flags&&(v.dirty||e))if(t){const e=v.run();if(c||w||(m?e.some(((e,t)=>b(e,x[t]))):b(e,x))){g&&g();const n=pt;pt=v;try{const n=[e,x===lt?void 0:m&&x[0]===lt?[]:x,y];p?p(t,3,n):t(...n),x=e}finally{pt=n}}}else v.run()};return f&&f(O),v=new P(_),v.scheduler=h?()=>h(O,!1):O,y=e=>function(e,t=!1,n=pt){if(n){let t=ft.get(n);t||ft.set(n,t=[]),t.push(e)}}(e,!1,v),g=v.onStop=()=>{const e=ft.get(v);if(e){if(p)p(e,4);else for(const t of e)t();ft.delete(v)}},t?o?O(!0):x=v.run():h?h(O.bind(null,!0),!0):v.run(),R.pause=v.pause.bind(v),R.resume=v.resume.bind(v),R.stop=R,R}function vt(e,t=1/0,n){if(t<=0||!p(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Ze(e))vt(e.value,t,n);else if(a(e))for(let s=0;s<e.length;s++)vt(e[s],t,n);else if(h(e)||u(e))e.forEach((e=>{vt(e,t,n)}));else if(g(e)){for(const s in e)vt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&vt(e[s],t,n)}return e}const{isArray:_t}=Array;function gt(e){return Object.prototype.toString.call(e).slice(8,-1)}function yt(e){return"function"==typeof e}function bt(e){if(function(e){const t=new Set(["undefined","boolean","number","string"]);return null===e||t.has(typeof e)}(e)||yt(e))return e;if(Ze(e))return bt(e.value);if(Qe(e))return bt(Ge(e));if(_t(e))return e.map((e=>bt(e)));if(function(e){return"Object"===gt(e)}(e)){const t={};return Object.keys(e).forEach((n=>{t[n]=bt(e[n])})),t}throw new TypeError(`${gt(e)} value is not supported`)}function wt(e,t,n){var s;null!==(s=n)&&"object"==typeof s&&dt(Ze(n)?n:()=>n,(()=>{e.setData({[t]:bt(n)})}),{deep:!0})}e._instance=null;const mt=t=>{e._instance=t},St=(e,t,n,...s)=>{if(t&&t[n]&&t[n].apply(e,s),!e[`$${n}`])return;const i={onLoad:"onUnload",onShow:"onHide",attached:"detached",show:"hide"}[n];e[`$${n}`].forEach((t=>{if(i){const n=e[`$${i}`]&&e[`$${i}`].find((e=>e.front===t));n&&n()}const n=t.apply(e,s);if(i&&"function"==typeof n){e[`$${i}`]&&e[`$${i}`].find((e=>e.front===t))||(n.front,e[`$${i}`]||(e[`$${i}`]=[]),e[`$${i}`].push(n))}}))},Rt=(e,t,n,...s)=>{if(t&&t[n])return t[n].apply(e,s);if(e[`$${n}`]){if(e[`$${n}`].length)throw new Error(`一个page只能配置一个${n}`);return e[`$${n}`][0].apply(e,s)}},$t=(e,t,n)=>{e&&(e[`$${t}`]||(e[`$${t}`]=[]),e[`$${t}`].push(n.bind(e)))};e.launchPromise=Promise.resolve(!0);const xt=e=>e?Object.keys(e).map((t=>{let n=e[t];return"object"==typeof e[t]&&(n=encodeURIComponent(JSON.stringify(e[t]))),`${t}=${n}`})).join("&"):"";e._queries={};const Pt=t=>{e._queries=t},Ot=(e,t)=>{if(!t)return e;let n={};for(let s in e)if(s in t){const i=e[s],r=t[s];if(!r){n[s]=i;break}const o=r.type||r,c=e=>"formatter"in r&&void 0!==r.formatter?r.formatter(e):o===Boolean?!!e:o===Number?Number(e):o===Object?e?JSON.parse(decodeURIComponent(e)):{}:o===Array?e?JSON.parse(decodeURIComponent(e)):[]:(null===o||o===String||console.error("未知的·type·",o),e);n[s]=c(i)}else n[s]=e[s];return n};function kt(t){e.activePinia=t}e.activePinia=void 0;const jt=new class{constructor(){this.defaultOptions={header:{"Content-Type":"application/json"}},this.baseUrl="/api"}setBaseUrl(e){this.baseUrl=e}setRequestInterceptor(e){this.requestInterceptor=e}setResponseInterceptor(e){this.responseInterceptor=e}async request(e){const t=/^http/.test(e.url)?e.url:this.baseUrl.endsWith("/")||e.url.startsWith("/")?`${this.baseUrl}${e.url}`:`${this.baseUrl}/${e.url}`;let n={...this.defaultOptions,...e,url:t};return this.requestInterceptor&&(n=await this.requestInterceptor(n)),new Promise(((e,t)=>{const{success:s,fail:i,complete:r,...o}=n;wx.request({...o,success:async n=>{try{if(this.responseInterceptor&&(n=await this.responseInterceptor(n)),n.statusCode>=200&&n.statusCode<300)"function"==typeof s&&s(n),e(n);else{const e=new Error(`请求失败,状态码:${n.statusCode}`);"function"==typeof i&&i(e),t(e)}}catch(e){"function"==typeof i&&i(e),t(e)}},fail:e=>{"function"==typeof i&&i(e),t(e)},complete:e=>{"function"==typeof r&&r(e)}})}))}serializeParams(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}get(e,t,n){let s=e;if(t&&Object.keys(t).length>0){const n=this.serializeParams(t);s+=e.includes("?")?`&${n}`:`?${n}`}return this.request({...n,method:"GET",url:s})}post(e,t,n){return this.request({...n,method:"POST",url:e,data:t})}options(e,t,n){let s=e;if(t&&Object.keys(t).length>0){const n=this.serializeParams(t);s+=e.includes("?")?`&${n}`:`?${n}`}return this.request({...n,method:"OPTIONS",url:s})}head(e,t,n){let s=e;if(t&&Object.keys(t).length>0){const n=this.serializeParams(t);s+=e.includes("?")?`&${n}`:`?${n}`}return this.request({...n,method:"HEAD",url:s})}put(e,t,n){return this.request({...n,method:"PUT",url:e,data:t})}delete(e,t,n){return this.request({...n,method:"DELETE",url:e,data:t})}trace(e,t,n){let s=e;if(t&&Object.keys(t).length>0){const n=this.serializeParams(t);s+=e.includes("?")?`&${n}`:`?${n}`}return this.request({...n,method:"TRACE",url:s})}connect(e,t,n){return this.request({...n,method:"CONNECT",url:e,data:t})}};e.ReactiveEffect=P,e.attached=t=>$t(e._instance,"attached",t),e.computed=function(e,t,n=!1){let s,i;return l(e)?s=e:(s=e.get,i=e.set),new ht(s,i,n)},e.createApp=t=>{if(!t)return App({});let n={};if("function"!=typeof t){const{setup:e,...s}=t;n=s,t=e}return t?App({...n,onLaunch(s){e.launchPromise=new Promise((async e=>{mt(this);const i=await t.call(this,s);void 0!==i&&Object.keys(i).forEach((e=>{this[e]=i[e]})),St(this,n,"onLaunch",s),mt(null),e(!0)}))},onShow(e){St(this,n,"onShow",e)},onHide(){St(this,n,"onHide")},onError(e){St(this,n,"onError",e)},onPageNotFound(e){St(this,n,"onPageNotFound",e)},onUnhandledRejection(e){St(this,n,"onUnhandledRejection",e)},onThemeChange(e){St(this,n,"onThemeChange",e)}}):App(n)},e.createPinia=function(){const e=R(!0),t=e.run((()=>et({}))),n={install(){kt(n)},scope:e,state:t,stores:{}};return n},e.createQuery=Ot,e.customRef=function(e){return new rt(e)},e.deepToRaw=bt,e.deepWatch=wt,e.defineComponent=t=>{if(!t)return Component({});let n={};if("function"!=typeof t){const{setup:e,...s}=t;n=s,t=e}if(!t)return Component(n);let s=null;return n.properties&&(s=Object.keys(n.properties)),s&&s.forEach((e=>{void 0===n.observers&&(n.observers={});const t=n.observers[e];n.observers[e]=function(n){this.$props&&(this.$props[e]=n),void 0!==t&&t.call(this,n)}})),Component({...n,lifetimes:{attached(){e.launchPromise.then((()=>{mt(this),this.$scope=R();const e={};s&&s.forEach((t=>{e[t]=this.data[t]})),this.$props=Ve(e),this.$context={emit:(e,...t)=>{this.triggerEvent(e,{value:t[0]})}},this.$scope.run((()=>{const e=t.call(this,this.$props,this.$context);void 0!==e&&Object.keys(e).forEach((t=>{const n=e[t];yt(n)?this[t]=n:(this.setData({[t]:bt(n)}),wt(this,t,n))})),St(this,n,"attached")})),mt(null)}))},ready(){St(this,n,"ready")},moved(){St(this,n,"moved")},detached(){St(this,n,"detached"),this.$scope&&this.$scope.stop(),Object.keys(this).forEach((e=>{try{/^$/.test(e)&&delete this[e]}catch(e){console.error("销毁异常",e)}}))},error(e){St(this,n,"error",e)}},pageLifetimes:{show(){St(this,n,"show")},hide(){St(this,n,"hide")},resize(e){St(this,n,"resize",e)},routeDone(){St(this,n,"routeDone")}}})},e.definePage=t=>{if(!t)return Page({});let n={};if("function"!=typeof t){const{setup:e,...s}=t;n=s||{},t=e}if(!t)return Page(n);const{queries:s,...i}=n;return Page({...i,onLoad(i){e.launchPromise.then((()=>{mt(this),Pt(s),this.$scope=R(),this.$query=Ot(i,s),this.$context={},this.$scope.run((()=>{const e=t.call(this,this.$query,this.$context);void 0!==e&&Object.keys(e).forEach((t=>{const n=e[t];yt(n)?this[t]=n:(this.setData({[t]:bt(n)}),wt(this,t,n))})),St(this,n,"onLoad",i)})),Pt({}),mt(null)}))},onShow(){St(this,n,"onShow")},onReady(){St(this,n,"onReady")},onHide(){St(this,n,"onHide")},onUnload(){St(this,n,"onUnload"),this.$scope&&this.$scope.stop(),Object.keys(this).forEach((e=>{try{/^$/.test(e)&&delete this[e]}catch(e){console.error("销毁异常",e)}}))},onRouteDone(){St(this,n,"onRouteDone")},onPullDownRefresh(){St(this,n,"onPullDownRefresh")},onReachBottom(){St(this,n,"onReachBottom")},onPageScroll(e){St(this,n,"onPageScroll",e)},onAddToFavorites(e){return Rt(this,n,"onAddToFavorites",e)},onShareAppMessage(e){return Rt(this,n,"onShareAppMessage",e)},onShareTimeline(){return Rt(this,n,"onShareTimeline")},onResize(e){St(this,n,"onResize",e)},onTabItemTap(e){St(this,n,"onTabItemTap",e)},onSaveExitState(){St(this,n,"onSaveExitState")}})},e.defineStore=function(t,n,s){return function(i){if(i&&kt(i),!(i=e.activePinia))throw new Error("no active pinia");return i.stores[t]||function(e,t,n,s){const i={},r=e.scope.run(n);Object.assign(i,r),e.stores[t]=i;const o="PINIA_"+t;s&&s.persist&&s.persist.forEach((n=>{const s=`${o}_${n}`,i=wx.getStorageSync(s),r=wx.getStorageInfoSync().keys.includes(s);e.stores[t][n]&&r&&(Ze(e.stores[t][n])?e.stores[t][n].value=i:Object.keys(i).forEach((s=>{e.stores[t][n][s]=i[s]}))),dt(Ze(e.stores[t][n])?e.stores[t][n]:()=>e.stores[t][n],(e=>{wx.setStorageSync(s,e)}),{deep:!0})}))}(i,t,n,s),i.stores[t]}},e.detached=t=>$t(e._instance,"detached",t),e.effect=function(e,t){e.effect instanceof P&&(e=e.effect.fn);const n=new P(e);t&&i(n,t);try{n.run()}catch(e){throw n.stop(),e}const s=n.run.bind(n);return s.effect=n,s},e.effectScope=R,e.error=t=>$t(e._instance,"error",t),e.getCurrentPage=()=>{const e=getCurrentPages();return e&&e[e.length-1]},e.getCurrentScope=$,e.hide=t=>$t(e._instance,"hide",t),e.isProxy=Qe,e.isReactive=He,e.isReadonly=Je,e.isRef=Ze,e.isShallow=Ke,e.lifetimeEmit=St,e.lifetimeEmitOnce=Rt,e.lifetimeOn=$t,e.markRaw=function(e){return Object.isExtensible(e)&&((e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})})(e,"__v_skip",!0),e},e.moved=t=>$t(e._instance,"moved",t),e.onAddToFavorites=t=>$t(e._instance,"onAddToFavorites",t),e.onError=t=>$t(e._instance,"onError",t),e.onHide=t=>$t(e._instance,"onHide",t),e.onLaunch=t=>$t(e._instance,"onLaunch",t),e.onLoad=t=>$t(e._instance,"onLoad",t),e.onPageNotFound=t=>$t(e._instance,"onPageNotFound",t),e.onPageScroll=t=>$t(e._instance,"onPageScroll",t),e.onPullDownRefresh=t=>$t(e._instance,"onPullDownRefresh",t),e.onReachBottom=t=>$t(e._instance,"onReachBottom",t),e.onReady=t=>$t(e._instance,"onReady",t),e.onResize=t=>$t(e._instance,"onResize",t),e.onRouteDone=t=>$t(e._instance,"onRouteDone",t),e.onSaveExitState=t=>$t(e._instance,"onSaveExitState",t),e.onScopeDispose=function(e,t=!1){w&&w.cleanups.push(e)},e.onShareAppMessage=t=>$t(e._instance,"onShareAppMessage",t),e.onShareTimeline=t=>$t(e._instance,"onShareTimeline",t),e.onShow=t=>$t(e._instance,"onShow",t),e.onTabItemTap=t=>$t(e._instance,"onTabItemTap",t),e.onThemeChange=t=>$t(e._instance,"onThemeChange",t),e.onUnhandledRejection=t=>$t(e._instance,"onUnhandledRejection",t),e.onUnload=t=>$t(e._instance,"onUnload",t),e.proxyRefs=function(e){return He(e)?e:new Proxy(e,it)},e.reactive=We,e.readonly=Be,e.ready=t=>$t(e._instance,"ready",t),e.ref=et,e.request=jt,e.resize=t=>$t(e._instance,"resize",t),e.routeDone=t=>$t(e._instance,"routeDone",t),e.setActivatePinia=kt,e.setInstance=mt,e.setQueries=Pt,e.shallowReactive=Ve,e.shallowReadonly=function(e){return Fe(e,!0,ve,Ce,Me)},e.shallowRef=function(e){return tt(e,!0)},e.show=t=>$t(e._instance,"show",t),e.stop=function(e){e.effect.stop()},e.storeToRefs=function(e){e=Ge(e);const t={};for(const n in e){const s=e[n];(Ze(s)||He(s))&&(t[n]=at(e,n))}return t},e.toRaw=Ge,e.toRef=at,e.toRefs=function(e){const t=a(e)?new Array(e.length):{};for(const n in e)t[n]=ut(e,n);return t},e.toValue=function(e){return l(e)?e():st(e)},e.triggerRef=function(e){e.dep.trigger()},e.unref=st,e.useInstance=()=>e._instance,e.useRoute=()=>{const t=getCurrentPages(),n=t[t.length-1];return{path:n.route,query:Ot(n.options,e._queries)}},e.useRouter=()=>({push:e=>{if("string"==typeof e)return wx.navigateTo({url:e});let t;return t="path"in e?e.query?`${e.path}?${xt(e.query)}`:e.path:e.url,wx.navigateTo({url:t,...e})},replace:e=>{if("string"==typeof e)return wx.redirectTo({url:e});let t;return t="path"in e?e.query?`${e.path}?${xt(e.query)}`:e.path:e.url,wx.redirectTo({url:t,...e})},go:e=>{if(!(e>0))return wx.navigateBack({delta:Math.abs(e)});console.warn("微信小程序不支持前进历史记录")},back:e=>wx.navigateBack(e),switchTab:e=>{if("string"==typeof e)return wx.switchTab({url:e});let t;return t="path"in e?e.query?`${e.path}?${xt(e.query)}`:e.path:e.url,wx.switchTab({url:t,...e})},reLaunch:e=>{if("string"==typeof e)return wx.reLaunch({url:e});let t;return t="path"in e?e.query?`${e.path}?${xt(e.query)}`:e.path:e.url,wx.reLaunch({url:t,...e})}}),e.watch=dt}));