@vue/reactivity
Advanced tools
Comparing version 3.5.0-alpha.4 to 3.5.0-alpha.5
/** | ||
* @vue/reactivity v3.5.0-alpha.4 | ||
* @vue/reactivity v3.5.0-alpha.5 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -668,8 +668,6 @@ * @license MIT | ||
filter(fn, thisArg) { | ||
const result = apply(this, "filter", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? result.map(toReactive) : result; | ||
return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive)); | ||
}, | ||
find(fn, thisArg) { | ||
const result = apply(this, "find", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? toReactive(result) : result; | ||
return apply(this, "find", fn, thisArg, toReactive); | ||
}, | ||
@@ -680,4 +678,3 @@ findIndex(fn, thisArg) { | ||
findLast(fn, thisArg) { | ||
const result = apply(this, "findLast", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? toReactive(result) : result; | ||
return apply(this, "findLast", fn, thisArg, toReactive); | ||
}, | ||
@@ -760,7 +757,9 @@ findLastIndex(fn, thisArg) { | ||
} | ||
function apply(self, method, fn, thisArg) { | ||
function apply(self, method, fn, thisArg, wrappedRetFn) { | ||
const arr = shallowReadArray(self); | ||
let needsWrap = false; | ||
let wrappedFn = fn; | ||
if (arr !== self) { | ||
if (!isShallow(self)) { | ||
needsWrap = !isShallow(self); | ||
if (needsWrap) { | ||
wrappedFn = function(item, index) { | ||
@@ -775,3 +774,4 @@ return fn.call(this, toReactive(item), index, self); | ||
} | ||
return arr[method](wrappedFn, thisArg); | ||
const result = arr[method](wrappedFn, thisArg); | ||
return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result; | ||
} | ||
@@ -778,0 +778,0 @@ function reduce(self, method, fn, args) { |
/** | ||
* @vue/reactivity v3.5.0-alpha.4 | ||
* @vue/reactivity v3.5.0-alpha.5 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -609,8 +609,6 @@ * @license MIT | ||
filter(fn, thisArg) { | ||
const result = apply(this, "filter", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? result.map(toReactive) : result; | ||
return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive)); | ||
}, | ||
find(fn, thisArg) { | ||
const result = apply(this, "find", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? toReactive(result) : result; | ||
return apply(this, "find", fn, thisArg, toReactive); | ||
}, | ||
@@ -621,4 +619,3 @@ findIndex(fn, thisArg) { | ||
findLast(fn, thisArg) { | ||
const result = apply(this, "findLast", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? toReactive(result) : result; | ||
return apply(this, "findLast", fn, thisArg, toReactive); | ||
}, | ||
@@ -701,7 +698,9 @@ findLastIndex(fn, thisArg) { | ||
} | ||
function apply(self, method, fn, thisArg) { | ||
function apply(self, method, fn, thisArg, wrappedRetFn) { | ||
const arr = shallowReadArray(self); | ||
let needsWrap = false; | ||
let wrappedFn = fn; | ||
if (arr !== self) { | ||
if (!isShallow(self)) { | ||
needsWrap = !isShallow(self); | ||
if (needsWrap) { | ||
wrappedFn = function(item, index) { | ||
@@ -716,3 +715,4 @@ return fn.call(this, toReactive(item), index, self); | ||
} | ||
return arr[method](wrappedFn, thisArg); | ||
const result = arr[method](wrappedFn, thisArg); | ||
return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result; | ||
} | ||
@@ -719,0 +719,0 @@ function reduce(self, method, fn, args) { |
@@ -410,4 +410,5 @@ import { IfAny } from '@vue/shared'; | ||
declare const RawSymbol: unique symbol; | ||
export interface Ref<T = any> { | ||
value: T; | ||
export interface Ref<T = any, S = T> { | ||
get value(): T; | ||
set value(_: S); | ||
/** | ||
@@ -434,3 +435,3 @@ * Type differentiator only. | ||
*/ | ||
export declare function ref<T>(value: T): Ref<UnwrapRef<T>>; | ||
export declare function ref<T>(value: T): Ref<UnwrapRef<T>, UnwrapRef<T> | T>; | ||
export declare function ref<T = any>(): Ref<T | undefined>; | ||
@@ -437,0 +438,0 @@ declare const ShallowRefMarker: unique symbol; |
/** | ||
* @vue/reactivity v3.5.0-alpha.4 | ||
* @vue/reactivity v3.5.0-alpha.5 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -704,8 +704,6 @@ * @license MIT | ||
filter(fn, thisArg) { | ||
const result = apply(this, "filter", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? result.map(toReactive) : result; | ||
return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive)); | ||
}, | ||
find(fn, thisArg) { | ||
const result = apply(this, "find", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? toReactive(result) : result; | ||
return apply(this, "find", fn, thisArg, toReactive); | ||
}, | ||
@@ -716,4 +714,3 @@ findIndex(fn, thisArg) { | ||
findLast(fn, thisArg) { | ||
const result = apply(this, "findLast", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? toReactive(result) : result; | ||
return apply(this, "findLast", fn, thisArg, toReactive); | ||
}, | ||
@@ -796,7 +793,9 @@ findLastIndex(fn, thisArg) { | ||
} | ||
function apply(self, method, fn, thisArg) { | ||
function apply(self, method, fn, thisArg, wrappedRetFn) { | ||
const arr = shallowReadArray(self); | ||
let needsWrap = false; | ||
let wrappedFn = fn; | ||
if (arr !== self) { | ||
if (!isShallow(self)) { | ||
needsWrap = !isShallow(self); | ||
if (needsWrap) { | ||
wrappedFn = function(item, index) { | ||
@@ -811,3 +810,4 @@ return fn.call(this, toReactive(item), index, self); | ||
} | ||
return arr[method](wrappedFn, thisArg); | ||
const result = arr[method](wrappedFn, thisArg); | ||
return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result; | ||
} | ||
@@ -814,0 +814,0 @@ function reduce(self, method, fn, args) { |
/** | ||
* @vue/reactivity v3.5.0-alpha.4 | ||
* @vue/reactivity v3.5.0-alpha.5 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
* @license MIT | ||
**//*! #__NO_SIDE_EFFECTS__ */let e,t,i;let r=Object.assign,s=Object.prototype.hasOwnProperty,n=(e,t)=>s.call(e,t),l=Array.isArray,a=e=>"[object Map]"===p(e),o=e=>"function"==typeof e,u=e=>"string"==typeof e,c=e=>"symbol"==typeof e,h=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,p=e=>f.call(e),d=e=>p(e).slice(8,-1),_=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=(e,t)=>!Object.is(e,t),g=(e,t,i,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:i})};class y{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=e,!t&&e&&(this.index=(e.scopes||(e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){let i=e;try{return e=this,t()}finally{e=i}}}on(){e=this}off(){e=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){let 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 y(e)}function w(){return e}function b(t,i=!1){e&&e.cleanups.push(t)}let S={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",NO_BATCH:64,64:"NO_BATCH"};class x{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,e&&e.active&&e.effects.push(this)}notify(){if(!(2&this.flags)||32&this.flags){if(64&this.flags)return this.trigger();8&this.flags||(this.flags|=8,this.nextEffect=i,i=this)}}run(){if(!(1&this.flags))return this.fn();this.flags|=2,M(this),k(this);let e=t,i=j;t=this,j=!0;try{return this.fn()}finally{D(this),t=e,j=i,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)O(e);this.deps=this.depsTail=void 0,M(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){m(this)&&this.run()}get dirty(){return m(this)}}let E=0;function T(){let e;if(E>1){E--;return}for(;i;){let t=i;for(i=void 0;t;){let i=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=i}}if(E--,e)throw e}function k(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;let i=e.depsTail;for(let e=i;e;e=e.prevDep)-1===e.version?(e===i&&(i=e.prevDep),O(e),function(e){let{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}(e)):t=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0;e.deps=t,e.depsTail=i}function m(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===A(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function A(e){if(2&e.flags)return!1;if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===K))return;e.globalVersion=K;let i=e.dep;if(e.flags|=2,i.version>0&&!e.isSSR&&!m(e)){e.flags&=-3;return}let r=t,s=j;t=e,j=!0;try{k(e);let t=e.fn();(0===i.version||v(t,e._value))&&(e._value=t,i.version++)}catch(e){throw i.version++,e}finally{t=r,j=s,D(e),e.flags&=-3}}function O(e){let{dep:t,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),t.subs===e&&(t.subs=i),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)O(e)}}function I(e,t){e.effect instanceof x&&(e=e.effect.fn);let i=new x(e);t&&r(i,t);try{i.run()}catch(e){throw i.stop(),e}let s=i.run.bind(i);return s.effect=i,s}function L(e){e.effect.stop()}let j=!0,N=[];function P(){N.push(j),j=!1}function V(){N.push(j),j=!0}function C(){let e=N.pop();j=void 0===e||e}function W(e,i=!1){t instanceof x&&(t.cleanup=e)}function M(e){let{cleanup:i}=e;if(e.cleanup=void 0,i){let e=t;t=void 0;try{i()}finally{t=e}}}let K=0;class Y{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!t||!j)return;let i=this.activeLink;if(void 0===i||i.sub!==t)i=this.activeLink={dep:this,sub:t,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},t.deps?(i.prevDep=t.depsTail,t.depsTail.nextDep=i,t.depsTail=i):t.deps=t.depsTail=i,4&t.flags&&function e(t){let i=t.dep.computed;if(i&&!t.dep.subs){i.flags|=20;for(let t=i.deps;t;t=t.nextDep)e(t)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}(i);else if(-1===i.version&&(i.version=this.version,i.nextDep)){let e=i.nextDep;e.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=e),i.prevDep=t.depsTail,i.nextDep=void 0,t.depsTail.nextDep=i,t.depsTail=i,t.deps===i&&(t.deps=e)}return i}trigger(e){this.version++,K++,this.notify(e)}notify(e){E++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{T()}}}let z=new WeakMap,F=Symbol(""),G=Symbol(""),H=Symbol("");function U(e,i,r){if(j&&t){let t=z.get(e);t||z.set(e,t=new Map);let i=t.get(r);i||t.set(r,i=new Y),i.track()}}function B(e,t,i,r,s,n){let o=z.get(e);if(!o){K++;return}let u=[];if("clear"===t)u=[...o.values()];else{let s=l(e),n=s&&_(i);if(s&&"length"===i){let e=Number(r);o.forEach((t,i)=>{("length"===i||i===H||!c(i)&&i>=e)&&u.push(t)})}else{let r=e=>e&&u.push(e);switch(void 0!==i&&r(o.get(i)),n&&r(o.get(H)),t){case"add":s?n&&r(o.get("length")):(r(o.get(F)),a(e)&&r(o.get(G)));break;case"delete":!s&&(r(o.get(F)),a(e)&&r(o.get(G)));break;case"set":a(e)&&r(o.get(F))}}}for(let e of(E++,u))e.trigger();T()}function q(e){let t=eU(e);return t===e?t:(U(t,"iterate",H),eG(e)?t:t.map(eq))}function J(e){return U(e=eU(e),"iterate",H),e}let Q={__proto__:null,[Symbol.iterator](){return X(this,Symbol.iterator,eq)},concat(...e){return q(this).concat(...e.map(e=>q(e)))},entries(){return X(this,"entries",e=>(e[1]=eq(e[1]),e))},every(e,t){return Z(this,"every",e,t)},filter(e,t){let i=Z(this,"filter",e,t);return eH(this)&&!eG(this)?i.map(eq):i},find(e,t){let i=Z(this,"find",e,t);return eH(this)&&!eG(this)?eq(i):i},findIndex(e,t){return Z(this,"findIndex",e,t)},findLast(e,t){let i=Z(this,"findLast",e,t);return eH(this)&&!eG(this)?eq(i):i},findLastIndex(e,t){return Z(this,"findLastIndex",e,t)},forEach(e,t){return Z(this,"forEach",e,t)},includes(...e){return ee(this,"includes",e)},indexOf(...e){return ee(this,"indexOf",e)},join(e){return q(this).join(e)},lastIndexOf(...e){return ee(this,"lastIndexOf",e)},map(e,t){return Z(this,"map",e,t)},pop(){return et(this,"pop")},push(...e){return et(this,"push",e)},reduce(e,...t){return $(this,"reduce",e,t)},reduceRight(e,...t){return $(this,"reduceRight",e,t)},shift(){return et(this,"shift")},some(e,t){return Z(this,"some",e,t)},splice(...e){return et(this,"splice",e)},toReversed(){return q(this).toReversed()},toSorted(e){return q(this).toSorted(e)},toSpliced(...e){return q(this).toSpliced(...e)},unshift(...e){return et(this,"unshift",e)},values(){return X(this,"values",eq)}};function X(e,t,i){let r=J(e),s=r[t]();return r===e||eG(e)||(s._next=s.next,s.next=()=>{let e=s._next();return e.value&&(e.value=i(e.value)),e}),s}function Z(e,t,i,r){let s=J(e),n=i;return s!==e&&(eG(e)?i.length>2&&(n=function(t,r){return i.call(this,t,r,e)}):n=function(t,r){return i.call(this,eq(t),r,e)}),s[t](n,r)}function $(e,t,i,r){let s=J(e),n=i;return s!==e&&(eG(e)?i.length>3&&(n=function(t,r,s){return i.call(this,t,r,s,e)}):n=function(t,r,s){return i.call(this,t,eq(r),s,e)}),s[t](n,...r)}function ee(e,t,i){let r=eU(e);U(r,"iterate",H);let s=r[t](...i);return(-1===s||!1===s)&&eH(i[0])?(i[0]=eU(i[0]),r[t](...i)):s}function et(e,t,i=[]){P(),E++;let r=eU(e)[t].apply(e,i);return T(),C(),r}let ei=function(e,t){let i=new Set(e.split(","));return e=>i.has(e)}("__proto__,__v_isRef,__isVue"),er=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(c));function es(e){c(e)||(e=String(e));let t=eU(this);return U(t,"has",e),t.hasOwnProperty(e)}class en{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){let r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return s;if("__v_raw"===t)return i===(r?s?eV:eP:s?eN:ej).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;let n=l(e);if(!r){let e;if(n&&(e=Q[t]))return e;if("hasOwnProperty"===t)return es}let a=Reflect.get(e,t,eQ(e)?e:i);return(c(t)?er.has(t):ei(t))?a:(r||U(e,"get",t),s)?a:eQ(a)?n&&_(t)?a:a.value:h(a)?r?eM(a):eC(a):a}}class el extends en{constructor(e=!1){super(!1,e)}set(e,t,i,r){let s=e[t];if(!this._isShallow){let t=eF(s);if(eG(i)||eF(i)||(s=eU(s),i=eU(i)),!l(e)&&eQ(s)&&!eQ(i))return!t&&(s.value=i,!0)}let a=l(e)&&_(t)?Number(t)<e.length:n(e,t),o=Reflect.set(e,t,i,r);return e===eU(r)&&(a?v(i,s)&&B(e,"set",t,i):B(e,"add",t,i)),o}deleteProperty(e,t){let i=n(e,t);e[t];let r=Reflect.deleteProperty(e,t);return r&&i&&B(e,"delete",t,void 0),r}has(e,t){let i=Reflect.has(e,t);return c(t)&&er.has(t)||U(e,"has",t),i}ownKeys(e){return U(e,"iterate",l(e)?"length":F),Reflect.ownKeys(e)}}class ea extends en{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let eo=new el,eu=new ea,ec=new el(!0),eh=new ea(!0),ef=e=>e,ep=e=>Reflect.getPrototypeOf(e);function ed(e,t,i=!1,r=!1){let s=eU(e=e.__v_raw),n=eU(t);i||(v(t,n)&&U(s,"get",t),U(s,"get",n));let{has:l}=ep(s),a=r?ef:i?eJ:eq;return l.call(s,t)?a(e.get(t)):l.call(s,n)?a(e.get(n)):void(e!==s&&e.get(t))}function e_(e,t=!1){let i=this.__v_raw,r=eU(i),s=eU(e);return t||(v(e,s)&&U(r,"has",e),U(r,"has",s)),e===s?i.has(e):i.has(e)||i.has(s)}function ev(e,t=!1){return e=e.__v_raw,t||U(eU(e),"iterate",F),Reflect.get(e,"size",e)}function eg(e,t=!1){t||eG(e)||eF(e)||(e=eU(e));let i=eU(this);return ep(i).has.call(i,e)||(i.add(e),B(i,"add",e,e)),this}function ey(e,t,i=!1){i||eG(t)||eF(t)||(t=eU(t));let r=eU(this),{has:s,get:n}=ep(r),l=s.call(r,e);l||(e=eU(e),l=s.call(r,e));let a=n.call(r,e);return r.set(e,t),l?v(t,a)&&B(r,"set",e,t):B(r,"add",e,t),this}function eR(e){let t=eU(this),{has:i,get:r}=ep(t),s=i.call(t,e);s||(e=eU(e),s=i.call(t,e)),r&&r.call(t,e);let n=t.delete(e);return s&&B(t,"delete",e,void 0),n}function ew(){let e=eU(this),t=0!==e.size,i=e.clear();return t&&B(e,"clear",void 0,void 0),i}function eb(e,t){return function(i,r){let s=this,n=s.__v_raw,l=eU(n),a=t?ef:e?eJ:eq;return e||U(l,"iterate",F),n.forEach((e,t)=>i.call(r,a(e),a(t),s))}}function eS(e,t,i){return function(...r){let s=this.__v_raw,n=eU(s),l=a(n),o="entries"===e||e===Symbol.iterator&&l,u=s[e](...r),c=i?ef:t?eJ:eq;return t||U(n,"iterate","keys"===e&&l?G:F),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function ex(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[eE,eT,ek,eD]=function(){let e={get(e){return ed(this,e)},get size(){return ev(this)},has:e_,add:eg,set:ey,delete:eR,clear:ew,forEach:eb(!1,!1)},t={get(e){return ed(this,e,!1,!0)},get size(){return ev(this)},has:e_,add(e){return eg.call(this,e,!0)},set(e,t){return ey.call(this,e,t,!0)},delete:eR,clear:ew,forEach:eb(!1,!0)},i={get(e){return ed(this,e,!0)},get size(){return ev(this,!0)},has(e){return e_.call(this,e,!0)},add:ex("add"),set:ex("set"),delete:ex("delete"),clear:ex("clear"),forEach:eb(!0,!1)},r={get(e){return ed(this,e,!0,!0)},get size(){return ev(this,!0)},has(e){return e_.call(this,e,!0)},add:ex("add"),set:ex("set"),delete:ex("delete"),clear:ex("clear"),forEach:eb(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=eS(s,!1,!1),i[s]=eS(s,!0,!1),t[s]=eS(s,!1,!0),r[s]=eS(s,!0,!0)}),[e,i,t,r]}();function em(e,t){let i=t?e?eD:ek:e?eT:eE;return(t,r,s)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(n(i,r)&&r in t?i:t,r,s)}let eA={get:em(!1,!1)},eO={get:em(!1,!0)},eI={get:em(!0,!1)},eL={get:em(!0,!0)},ej=new WeakMap,eN=new WeakMap,eP=new WeakMap,eV=new WeakMap;function eC(e){return eF(e)?e:eY(e,!1,eo,eA,ej)}function eW(e){return eY(e,!1,ec,eO,eN)}function eM(e){return eY(e,!0,eu,eI,eP)}function eK(e){return eY(e,!0,eh,eL,eV)}function eY(e,t,i,r,s){if(!h(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let n=s.get(e);if(n)return n;let l=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(d(e));if(0===l)return e;let a=new Proxy(e,2===l?r:i);return s.set(e,a),a}function ez(e){return eF(e)?ez(e.__v_raw):!!(e&&e.__v_isReactive)}function eF(e){return!!(e&&e.__v_isReadonly)}function eG(e){return!!(e&&e.__v_isShallow)}function eH(e){return!!e&&!!e.__v_raw}function eU(e){let t=e&&e.__v_raw;return t?eU(t):e}function eB(e){return Object.isExtensible(e)&&g(e,"__v_skip",!0),e}let eq=e=>h(e)?eC(e):e,eJ=e=>h(e)?eM(e):e;function eQ(e){return!!e&&!0===e.__v_isRef}function eX(e){return e$(e,!1)}function eZ(e){return e$(e,!0)}function e$(e,t){return eQ(e)?e:new e0(e,t)}class e0{constructor(e,t){this.dep=new Y,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:eU(e),this._value=t?e:eq(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||eG(e)||eF(e);v(e=i?e:eU(e),t)&&(this._rawValue=e,this._value=i?e:eq(e),this.dep.trigger())}}function e1(e){e.dep.trigger()}function e2(e){return eQ(e)?e.value:e}function e6(e){return o(e)?e():e2(e)}let e3={get:(e,t,i)=>e2(Reflect.get(e,t,i)),set:(e,t,i,r)=>{let s=e[t];return eQ(s)&&!eQ(i)?(s.value=i,!0):Reflect.set(e,t,i,r)}};function e4(e){return ez(e)?e:new Proxy(e,e3)}class e8{constructor(e){this.__v_isRef=!0;let t=this.dep=new Y,{get:i,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=i,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function e5(e){return new e8(e)}function e7(e){let t=l(e)?Array(e.length):{};for(let i in e)t[i]=ti(e,i);return t}class e9{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0}get value(){let e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){var e,t,i;return e=eU(this._object),t=this._key,null==(i=z.get(e))?void 0:i.get(t)}}class te{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function tt(e,t,i){return eQ(e)?e:o(e)?new te(e):h(e)&&arguments.length>1?ti(e,t,i):eX(e)}function ti(e,t,i){let r=e[t];return eQ(r)?r:new e9(e,t,i)}class tr{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Y(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=K-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){t!==this&&(this.flags|=16,this.dep.notify())}get value(){let e=this.dep.track();return A(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function ts(e,t,i=!1){let r,s;return o(e)?r=e:(r=e.get,s=e.set),new tr(r,s,i)}let tn={GET:"get",HAS:"has",ITERATE:"iterate"},tl={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ta={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"};export{H as ARRAY_ITERATE_KEY,S as EffectFlags,y as EffectScope,F as ITERATE_KEY,G as MAP_KEY_ITERATE_KEY,x as ReactiveEffect,ta as ReactiveFlags,tn as TrackOpTypes,tl as TriggerOpTypes,ts as computed,e5 as customRef,I as effect,R as effectScope,V as enableTracking,w as getCurrentScope,eH as isProxy,ez as isReactive,eF as isReadonly,eQ as isRef,eG as isShallow,eB as markRaw,W as onEffectCleanup,b as onScopeDispose,P as pauseTracking,e4 as proxyRefs,eC as reactive,q as reactiveReadArray,eM as readonly,eX as ref,C as resetTracking,eW as shallowReactive,J as shallowReadArray,eK as shallowReadonly,eZ as shallowRef,L as stop,eU as toRaw,eq as toReactive,eJ as toReadonly,tt as toRef,e7 as toRefs,e6 as toValue,U as track,B as trigger,e1 as triggerRef,e2 as unref}; | ||
**//*! #__NO_SIDE_EFFECTS__ */let e,t,i;let r=Object.assign,s=Object.prototype.hasOwnProperty,n=(e,t)=>s.call(e,t),l=Array.isArray,a=e=>"[object Map]"===p(e),o=e=>"function"==typeof e,u=e=>"string"==typeof e,c=e=>"symbol"==typeof e,h=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,p=e=>f.call(e),d=e=>p(e).slice(8,-1),_=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=(e,t)=>!Object.is(e,t),g=(e,t,i,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:i})};class y{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=e,!t&&e&&(this.index=(e.scopes||(e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){let i=e;try{return e=this,t()}finally{e=i}}}on(){e=this}off(){e=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){let 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 y(e)}function w(){return e}function b(t,i=!1){e&&e.cleanups.push(t)}let S={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",NO_BATCH:64,64:"NO_BATCH"};class x{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,e&&e.active&&e.effects.push(this)}notify(){if(!(2&this.flags)||32&this.flags){if(64&this.flags)return this.trigger();8&this.flags||(this.flags|=8,this.nextEffect=i,i=this)}}run(){if(!(1&this.flags))return this.fn();this.flags|=2,M(this),k(this);let e=t,i=j;t=this,j=!0;try{return this.fn()}finally{D(this),t=e,j=i,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)O(e);this.deps=this.depsTail=void 0,M(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){m(this)&&this.run()}get dirty(){return m(this)}}let E=0;function T(){let e;if(E>1){E--;return}for(;i;){let t=i;for(i=void 0;t;){let i=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=i}}if(E--,e)throw e}function k(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;let i=e.depsTail;for(let e=i;e;e=e.prevDep)-1===e.version?(e===i&&(i=e.prevDep),O(e),function(e){let{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}(e)):t=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0;e.deps=t,e.depsTail=i}function m(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===A(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function A(e){if(2&e.flags)return!1;if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===K))return;e.globalVersion=K;let i=e.dep;if(e.flags|=2,i.version>0&&!e.isSSR&&!m(e)){e.flags&=-3;return}let r=t,s=j;t=e,j=!0;try{k(e);let t=e.fn();(0===i.version||v(t,e._value))&&(e._value=t,i.version++)}catch(e){throw i.version++,e}finally{t=r,j=s,D(e),e.flags&=-3}}function O(e){let{dep:t,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),t.subs===e&&(t.subs=i),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)O(e)}}function I(e,t){e.effect instanceof x&&(e=e.effect.fn);let i=new x(e);t&&r(i,t);try{i.run()}catch(e){throw i.stop(),e}let s=i.run.bind(i);return s.effect=i,s}function L(e){e.effect.stop()}let j=!0,N=[];function P(){N.push(j),j=!1}function V(){N.push(j),j=!0}function C(){let e=N.pop();j=void 0===e||e}function W(e,i=!1){t instanceof x&&(t.cleanup=e)}function M(e){let{cleanup:i}=e;if(e.cleanup=void 0,i){let e=t;t=void 0;try{i()}finally{t=e}}}let K=0;class Y{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!t||!j)return;let i=this.activeLink;if(void 0===i||i.sub!==t)i=this.activeLink={dep:this,sub:t,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},t.deps?(i.prevDep=t.depsTail,t.depsTail.nextDep=i,t.depsTail=i):t.deps=t.depsTail=i,4&t.flags&&function e(t){let i=t.dep.computed;if(i&&!t.dep.subs){i.flags|=20;for(let t=i.deps;t;t=t.nextDep)e(t)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}(i);else if(-1===i.version&&(i.version=this.version,i.nextDep)){let e=i.nextDep;e.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=e),i.prevDep=t.depsTail,i.nextDep=void 0,t.depsTail.nextDep=i,t.depsTail=i,t.deps===i&&(t.deps=e)}return i}trigger(e){this.version++,K++,this.notify(e)}notify(e){E++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{T()}}}let z=new WeakMap,F=Symbol(""),G=Symbol(""),H=Symbol("");function U(e,i,r){if(j&&t){let t=z.get(e);t||z.set(e,t=new Map);let i=t.get(r);i||t.set(r,i=new Y),i.track()}}function B(e,t,i,r,s,n){let o=z.get(e);if(!o){K++;return}let u=[];if("clear"===t)u=[...o.values()];else{let s=l(e),n=s&&_(i);if(s&&"length"===i){let e=Number(r);o.forEach((t,i)=>{("length"===i||i===H||!c(i)&&i>=e)&&u.push(t)})}else{let r=e=>e&&u.push(e);switch(void 0!==i&&r(o.get(i)),n&&r(o.get(H)),t){case"add":s?n&&r(o.get("length")):(r(o.get(F)),a(e)&&r(o.get(G)));break;case"delete":!s&&(r(o.get(F)),a(e)&&r(o.get(G)));break;case"set":a(e)&&r(o.get(F))}}}for(let e of(E++,u))e.trigger();T()}function q(e){let t=eU(e);return t===e?t:(U(t,"iterate",H),eG(e)?t:t.map(eq))}function J(e){return U(e=eU(e),"iterate",H),e}let Q={__proto__:null,[Symbol.iterator](){return X(this,Symbol.iterator,eq)},concat(...e){return q(this).concat(...e.map(e=>q(e)))},entries(){return X(this,"entries",e=>(e[1]=eq(e[1]),e))},every(e,t){return Z(this,"every",e,t)},filter(e,t){return Z(this,"filter",e,t,e=>e.map(eq))},find(e,t){return Z(this,"find",e,t,eq)},findIndex(e,t){return Z(this,"findIndex",e,t)},findLast(e,t){return Z(this,"findLast",e,t,eq)},findLastIndex(e,t){return Z(this,"findLastIndex",e,t)},forEach(e,t){return Z(this,"forEach",e,t)},includes(...e){return ee(this,"includes",e)},indexOf(...e){return ee(this,"indexOf",e)},join(e){return q(this).join(e)},lastIndexOf(...e){return ee(this,"lastIndexOf",e)},map(e,t){return Z(this,"map",e,t)},pop(){return et(this,"pop")},push(...e){return et(this,"push",e)},reduce(e,...t){return $(this,"reduce",e,t)},reduceRight(e,...t){return $(this,"reduceRight",e,t)},shift(){return et(this,"shift")},some(e,t){return Z(this,"some",e,t)},splice(...e){return et(this,"splice",e)},toReversed(){return q(this).toReversed()},toSorted(e){return q(this).toSorted(e)},toSpliced(...e){return q(this).toSpliced(...e)},unshift(...e){return et(this,"unshift",e)},values(){return X(this,"values",eq)}};function X(e,t,i){let r=J(e),s=r[t]();return r===e||eG(e)||(s._next=s.next,s.next=()=>{let e=s._next();return e.value&&(e.value=i(e.value)),e}),s}function Z(e,t,i,r,s){let n=J(e),l=!1,a=i;n!==e&&((l=!eG(e))?a=function(t,r){return i.call(this,eq(t),r,e)}:i.length>2&&(a=function(t,r){return i.call(this,t,r,e)}));let o=n[t](a,r);return l&&s?s(o):o}function $(e,t,i,r){let s=J(e),n=i;return s!==e&&(eG(e)?i.length>3&&(n=function(t,r,s){return i.call(this,t,r,s,e)}):n=function(t,r,s){return i.call(this,t,eq(r),s,e)}),s[t](n,...r)}function ee(e,t,i){let r=eU(e);U(r,"iterate",H);let s=r[t](...i);return(-1===s||!1===s)&&eH(i[0])?(i[0]=eU(i[0]),r[t](...i)):s}function et(e,t,i=[]){P(),E++;let r=eU(e)[t].apply(e,i);return T(),C(),r}let ei=function(e,t){let i=new Set(e.split(","));return e=>i.has(e)}("__proto__,__v_isRef,__isVue"),er=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(c));function es(e){c(e)||(e=String(e));let t=eU(this);return U(t,"has",e),t.hasOwnProperty(e)}class en{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){let r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return s;if("__v_raw"===t)return i===(r?s?eV:eP:s?eN:ej).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;let n=l(e);if(!r){let e;if(n&&(e=Q[t]))return e;if("hasOwnProperty"===t)return es}let a=Reflect.get(e,t,eQ(e)?e:i);return(c(t)?er.has(t):ei(t))?a:(r||U(e,"get",t),s)?a:eQ(a)?n&&_(t)?a:a.value:h(a)?r?eM(a):eC(a):a}}class el extends en{constructor(e=!1){super(!1,e)}set(e,t,i,r){let s=e[t];if(!this._isShallow){let t=eF(s);if(eG(i)||eF(i)||(s=eU(s),i=eU(i)),!l(e)&&eQ(s)&&!eQ(i))return!t&&(s.value=i,!0)}let a=l(e)&&_(t)?Number(t)<e.length:n(e,t),o=Reflect.set(e,t,i,r);return e===eU(r)&&(a?v(i,s)&&B(e,"set",t,i):B(e,"add",t,i)),o}deleteProperty(e,t){let i=n(e,t);e[t];let r=Reflect.deleteProperty(e,t);return r&&i&&B(e,"delete",t,void 0),r}has(e,t){let i=Reflect.has(e,t);return c(t)&&er.has(t)||U(e,"has",t),i}ownKeys(e){return U(e,"iterate",l(e)?"length":F),Reflect.ownKeys(e)}}class ea extends en{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let eo=new el,eu=new ea,ec=new el(!0),eh=new ea(!0),ef=e=>e,ep=e=>Reflect.getPrototypeOf(e);function ed(e,t,i=!1,r=!1){let s=eU(e=e.__v_raw),n=eU(t);i||(v(t,n)&&U(s,"get",t),U(s,"get",n));let{has:l}=ep(s),a=r?ef:i?eJ:eq;return l.call(s,t)?a(e.get(t)):l.call(s,n)?a(e.get(n)):void(e!==s&&e.get(t))}function e_(e,t=!1){let i=this.__v_raw,r=eU(i),s=eU(e);return t||(v(e,s)&&U(r,"has",e),U(r,"has",s)),e===s?i.has(e):i.has(e)||i.has(s)}function ev(e,t=!1){return e=e.__v_raw,t||U(eU(e),"iterate",F),Reflect.get(e,"size",e)}function eg(e,t=!1){t||eG(e)||eF(e)||(e=eU(e));let i=eU(this);return ep(i).has.call(i,e)||(i.add(e),B(i,"add",e,e)),this}function ey(e,t,i=!1){i||eG(t)||eF(t)||(t=eU(t));let r=eU(this),{has:s,get:n}=ep(r),l=s.call(r,e);l||(e=eU(e),l=s.call(r,e));let a=n.call(r,e);return r.set(e,t),l?v(t,a)&&B(r,"set",e,t):B(r,"add",e,t),this}function eR(e){let t=eU(this),{has:i,get:r}=ep(t),s=i.call(t,e);s||(e=eU(e),s=i.call(t,e)),r&&r.call(t,e);let n=t.delete(e);return s&&B(t,"delete",e,void 0),n}function ew(){let e=eU(this),t=0!==e.size,i=e.clear();return t&&B(e,"clear",void 0,void 0),i}function eb(e,t){return function(i,r){let s=this,n=s.__v_raw,l=eU(n),a=t?ef:e?eJ:eq;return e||U(l,"iterate",F),n.forEach((e,t)=>i.call(r,a(e),a(t),s))}}function eS(e,t,i){return function(...r){let s=this.__v_raw,n=eU(s),l=a(n),o="entries"===e||e===Symbol.iterator&&l,u=s[e](...r),c=i?ef:t?eJ:eq;return t||U(n,"iterate","keys"===e&&l?G:F),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function ex(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[eE,eT,ek,eD]=function(){let e={get(e){return ed(this,e)},get size(){return ev(this)},has:e_,add:eg,set:ey,delete:eR,clear:ew,forEach:eb(!1,!1)},t={get(e){return ed(this,e,!1,!0)},get size(){return ev(this)},has:e_,add(e){return eg.call(this,e,!0)},set(e,t){return ey.call(this,e,t,!0)},delete:eR,clear:ew,forEach:eb(!1,!0)},i={get(e){return ed(this,e,!0)},get size(){return ev(this,!0)},has(e){return e_.call(this,e,!0)},add:ex("add"),set:ex("set"),delete:ex("delete"),clear:ex("clear"),forEach:eb(!0,!1)},r={get(e){return ed(this,e,!0,!0)},get size(){return ev(this,!0)},has(e){return e_.call(this,e,!0)},add:ex("add"),set:ex("set"),delete:ex("delete"),clear:ex("clear"),forEach:eb(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=eS(s,!1,!1),i[s]=eS(s,!0,!1),t[s]=eS(s,!1,!0),r[s]=eS(s,!0,!0)}),[e,i,t,r]}();function em(e,t){let i=t?e?eD:ek:e?eT:eE;return(t,r,s)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(n(i,r)&&r in t?i:t,r,s)}let eA={get:em(!1,!1)},eO={get:em(!1,!0)},eI={get:em(!0,!1)},eL={get:em(!0,!0)},ej=new WeakMap,eN=new WeakMap,eP=new WeakMap,eV=new WeakMap;function eC(e){return eF(e)?e:eY(e,!1,eo,eA,ej)}function eW(e){return eY(e,!1,ec,eO,eN)}function eM(e){return eY(e,!0,eu,eI,eP)}function eK(e){return eY(e,!0,eh,eL,eV)}function eY(e,t,i,r,s){if(!h(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let n=s.get(e);if(n)return n;let l=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(d(e));if(0===l)return e;let a=new Proxy(e,2===l?r:i);return s.set(e,a),a}function ez(e){return eF(e)?ez(e.__v_raw):!!(e&&e.__v_isReactive)}function eF(e){return!!(e&&e.__v_isReadonly)}function eG(e){return!!(e&&e.__v_isShallow)}function eH(e){return!!e&&!!e.__v_raw}function eU(e){let t=e&&e.__v_raw;return t?eU(t):e}function eB(e){return Object.isExtensible(e)&&g(e,"__v_skip",!0),e}let eq=e=>h(e)?eC(e):e,eJ=e=>h(e)?eM(e):e;function eQ(e){return!!e&&!0===e.__v_isRef}function eX(e){return e$(e,!1)}function eZ(e){return e$(e,!0)}function e$(e,t){return eQ(e)?e:new e0(e,t)}class e0{constructor(e,t){this.dep=new Y,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:eU(e),this._value=t?e:eq(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||eG(e)||eF(e);v(e=i?e:eU(e),t)&&(this._rawValue=e,this._value=i?e:eq(e),this.dep.trigger())}}function e1(e){e.dep.trigger()}function e2(e){return eQ(e)?e.value:e}function e6(e){return o(e)?e():e2(e)}let e3={get:(e,t,i)=>e2(Reflect.get(e,t,i)),set:(e,t,i,r)=>{let s=e[t];return eQ(s)&&!eQ(i)?(s.value=i,!0):Reflect.set(e,t,i,r)}};function e4(e){return ez(e)?e:new Proxy(e,e3)}class e8{constructor(e){this.__v_isRef=!0;let t=this.dep=new Y,{get:i,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=i,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function e5(e){return new e8(e)}function e7(e){let t=l(e)?Array(e.length):{};for(let i in e)t[i]=ti(e,i);return t}class e9{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0}get value(){let e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){var e,t,i;return e=eU(this._object),t=this._key,null==(i=z.get(e))?void 0:i.get(t)}}class te{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function tt(e,t,i){return eQ(e)?e:o(e)?new te(e):h(e)&&arguments.length>1?ti(e,t,i):eX(e)}function ti(e,t,i){let r=e[t];return eQ(r)?r:new e9(e,t,i)}class tr{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Y(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=K-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){t!==this&&(this.flags|=16,this.dep.notify())}get value(){let e=this.dep.track();return A(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function ts(e,t,i=!1){let r,s;return o(e)?r=e:(r=e.get,s=e.set),new tr(r,s,i)}let tn={GET:"get",HAS:"has",ITERATE:"iterate"},tl={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ta={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"};export{H as ARRAY_ITERATE_KEY,S as EffectFlags,y as EffectScope,F as ITERATE_KEY,G as MAP_KEY_ITERATE_KEY,x as ReactiveEffect,ta as ReactiveFlags,tn as TrackOpTypes,tl as TriggerOpTypes,ts as computed,e5 as customRef,I as effect,R as effectScope,V as enableTracking,w as getCurrentScope,eH as isProxy,ez as isReactive,eF as isReadonly,eQ as isRef,eG as isShallow,eB as markRaw,W as onEffectCleanup,b as onScopeDispose,P as pauseTracking,e4 as proxyRefs,eC as reactive,q as reactiveReadArray,eM as readonly,eX as ref,C as resetTracking,eW as shallowReactive,J as shallowReadArray,eK as shallowReadonly,eZ as shallowRef,L as stop,eU as toRaw,eq as toReactive,eJ as toReadonly,tt as toRef,e7 as toRefs,e6 as toValue,U as track,B as trigger,e1 as triggerRef,e2 as unref}; |
/** | ||
* @vue/reactivity v3.5.0-alpha.4 | ||
* @vue/reactivity v3.5.0-alpha.5 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -668,8 +668,6 @@ * @license MIT | ||
filter(fn, thisArg) { | ||
const result = apply(this, "filter", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? result.map(toReactive) : result; | ||
return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive)); | ||
}, | ||
find(fn, thisArg) { | ||
const result = apply(this, "find", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? toReactive(result) : result; | ||
return apply(this, "find", fn, thisArg, toReactive); | ||
}, | ||
@@ -680,4 +678,3 @@ findIndex(fn, thisArg) { | ||
findLast(fn, thisArg) { | ||
const result = apply(this, "findLast", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? toReactive(result) : result; | ||
return apply(this, "findLast", fn, thisArg, toReactive); | ||
}, | ||
@@ -760,7 +757,9 @@ findLastIndex(fn, thisArg) { | ||
} | ||
function apply(self, method, fn, thisArg) { | ||
function apply(self, method, fn, thisArg, wrappedRetFn) { | ||
const arr = shallowReadArray(self); | ||
let needsWrap = false; | ||
let wrappedFn = fn; | ||
if (arr !== self) { | ||
if (!isShallow(self)) { | ||
needsWrap = !isShallow(self); | ||
if (needsWrap) { | ||
wrappedFn = function(item, index) { | ||
@@ -775,3 +774,4 @@ return fn.call(this, toReactive(item), index, self); | ||
} | ||
return arr[method](wrappedFn, thisArg); | ||
const result = arr[method](wrappedFn, thisArg); | ||
return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result; | ||
} | ||
@@ -778,0 +778,0 @@ function reduce(self, method, fn, args) { |
/** | ||
* @vue/reactivity v3.5.0-alpha.4 | ||
* @vue/reactivity v3.5.0-alpha.5 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -707,8 +707,6 @@ * @license MIT | ||
filter(fn, thisArg) { | ||
const result = apply(this, "filter", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? result.map(toReactive) : result; | ||
return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive)); | ||
}, | ||
find(fn, thisArg) { | ||
const result = apply(this, "find", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? toReactive(result) : result; | ||
return apply(this, "find", fn, thisArg, toReactive); | ||
}, | ||
@@ -719,4 +717,3 @@ findIndex(fn, thisArg) { | ||
findLast(fn, thisArg) { | ||
const result = apply(this, "findLast", fn, thisArg); | ||
return isProxy(this) && !isShallow(this) ? toReactive(result) : result; | ||
return apply(this, "findLast", fn, thisArg, toReactive); | ||
}, | ||
@@ -799,7 +796,9 @@ findLastIndex(fn, thisArg) { | ||
} | ||
function apply(self, method, fn, thisArg) { | ||
function apply(self, method, fn, thisArg, wrappedRetFn) { | ||
const arr = shallowReadArray(self); | ||
let needsWrap = false; | ||
let wrappedFn = fn; | ||
if (arr !== self) { | ||
if (!isShallow(self)) { | ||
needsWrap = !isShallow(self); | ||
if (needsWrap) { | ||
wrappedFn = function(item, index) { | ||
@@ -814,3 +813,4 @@ return fn.call(this, toReactive(item), index, self); | ||
} | ||
return arr[method](wrappedFn, thisArg); | ||
const result = arr[method](wrappedFn, thisArg); | ||
return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result; | ||
} | ||
@@ -817,0 +817,0 @@ function reduce(self, method, fn, args) { |
/** | ||
* @vue/reactivity v3.5.0-alpha.4 | ||
* @vue/reactivity v3.5.0-alpha.5 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
* @license MIT | ||
**/var VueReactivity=function(e){"use strict";let t,i,r;let s=Object.assign,n=Object.prototype.hasOwnProperty,l=(e,t)=>n.call(e,t),a=Array.isArray,u=e=>"[object Map]"===d(e),o=e=>"function"==typeof e,c=e=>"string"==typeof e,h=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,d=e=>p.call(e),_=e=>d(e).slice(8,-1),v=e=>c(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,g=(e,t)=>!Object.is(e,t),y=(e,t,i,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:i})};class R{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=t,!e&&t&&(this.index=(t.scopes||(t.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){let i=t;try{return t=this,e()}finally{t=i}}}on(){t=this}off(){t=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){let 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}}}class w{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,t&&t.active&&t.effects.push(this)}notify(){if(!(2&this.flags)||32&this.flags){if(64&this.flags)return this.trigger();8&this.flags||(this.flags|=8,this.nextEffect=r,r=this)}}run(){if(!(1&this.flags))return this.fn();this.flags|=2,L(this),E(this);let e=i,t=m;i=this,m=!0;try{return this.fn()}finally{x(this),i=e,m=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)D(e);this.deps=this.depsTail=void 0,L(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){T(this)&&this.run()}get dirty(){return T(this)}}let b=0;function S(){let e;if(b>1){b--;return}for(;r;){let t=r;for(r=void 0;t;){let i=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=i}}if(b--,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 x(e){let t;let i=e.depsTail;for(let e=i;e;e=e.prevDep)-1===e.version?(e===i&&(i=e.prevDep),D(e),function(e){let{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}(e)):t=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0;e.deps=t,e.depsTail=i}function T(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===k(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function k(e){if(2&e.flags)return!1;if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===j))return;e.globalVersion=j;let t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!T(e)){e.flags&=-3;return}let r=i,s=m;i=e,m=!0;try{E(e);let i=e.fn();(0===t.version||g(i,e._value))&&(e._value=i,t.version++)}catch(e){throw t.version++,e}finally{i=r,m=s,x(e),e.flags&=-3}}function D(e){let{dep:t,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),t.subs===e&&(t.subs=i),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)D(e)}}let m=!0,A=[];function O(){A.push(m),m=!1}function I(){let e=A.pop();m=void 0===e||e}function L(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=i;i=void 0;try{t()}finally{i=e}}}let j=0;class N{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!i||!m)return;let t=this.activeLink;if(void 0===t||t.sub!==i)t=this.activeLink={dep:this,sub:i,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},i.deps?(t.prevDep=i.depsTail,i.depsTail.nextDep=t,i.depsTail=t):i.deps=i.depsTail=t,4&i.flags&&function e(t){let i=t.dep.computed;if(i&&!t.dep.subs){i.flags|=20;for(let t=i.deps;t;t=t.nextDep)e(t)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=i.depsTail,t.nextDep=void 0,i.depsTail.nextDep=t,i.depsTail=t,i.deps===t&&(i.deps=e)}return t}trigger(e){this.version++,j++,this.notify(e)}notify(e){b++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{S()}}}let P=new WeakMap,V=Symbol(""),C=Symbol(""),W=Symbol("");function M(e,t,r){if(m&&i){let t=P.get(e);t||P.set(e,t=new Map);let i=t.get(r);i||t.set(r,i=new N),i.track()}}function K(e,t,i,r,s,n){let l=P.get(e);if(!l){j++;return}let o=[];if("clear"===t)o=[...l.values()];else{let s=a(e),n=s&&v(i);if(s&&"length"===i){let e=Number(r);l.forEach((t,i)=>{("length"===i||i===W||!h(i)&&i>=e)&&o.push(t)})}else{let r=e=>e&&o.push(e);switch(void 0!==i&&r(l.get(i)),n&&r(l.get(W)),t){case"add":s?n&&r(l.get("length")):(r(l.get(V)),u(e)&&r(l.get(C)));break;case"delete":!s&&(r(l.get(V)),u(e)&&r(l.get(C)));break;case"set":u(e)&&r(l.get(V))}}}for(let e of(b++,o))e.trigger();S()}function Y(e){let t=eC(e);return t===e?t:(M(t,"iterate",W),eP(e)?t:t.map(eW))}function z(e){return M(e=eC(e),"iterate",W),e}let F={__proto__:null,[Symbol.iterator](){return G(this,Symbol.iterator,eW)},concat(...e){return Y(this).concat(...e.map(e=>Y(e)))},entries(){return G(this,"entries",e=>(e[1]=eW(e[1]),e))},every(e,t){return H(this,"every",e,t)},filter(e,t){let i=H(this,"filter",e,t);return eV(this)&&!eP(this)?i.map(eW):i},find(e,t){let i=H(this,"find",e,t);return eV(this)&&!eP(this)?eW(i):i},findIndex(e,t){return H(this,"findIndex",e,t)},findLast(e,t){let i=H(this,"findLast",e,t);return eV(this)&&!eP(this)?eW(i):i},findLastIndex(e,t){return H(this,"findLastIndex",e,t)},forEach(e,t){return H(this,"forEach",e,t)},includes(...e){return B(this,"includes",e)},indexOf(...e){return B(this,"indexOf",e)},join(e){return Y(this).join(e)},lastIndexOf(...e){return B(this,"lastIndexOf",e)},map(e,t){return H(this,"map",e,t)},pop(){return q(this,"pop")},push(...e){return q(this,"push",e)},reduce(e,...t){return U(this,"reduce",e,t)},reduceRight(e,...t){return U(this,"reduceRight",e,t)},shift(){return q(this,"shift")},some(e,t){return H(this,"some",e,t)},splice(...e){return q(this,"splice",e)},toReversed(){return Y(this).toReversed()},toSorted(e){return Y(this).toSorted(e)},toSpliced(...e){return Y(this).toSpliced(...e)},unshift(...e){return q(this,"unshift",e)},values(){return G(this,"values",eW)}};function G(e,t,i){let r=z(e),s=r[t]();return r===e||eP(e)||(s._next=s.next,s.next=()=>{let e=s._next();return e.value&&(e.value=i(e.value)),e}),s}function H(e,t,i,r){let s=z(e),n=i;return s!==e&&(eP(e)?i.length>2&&(n=function(t,r){return i.call(this,t,r,e)}):n=function(t,r){return i.call(this,eW(t),r,e)}),s[t](n,r)}function U(e,t,i,r){let s=z(e),n=i;return s!==e&&(eP(e)?i.length>3&&(n=function(t,r,s){return i.call(this,t,r,s,e)}):n=function(t,r,s){return i.call(this,t,eW(r),s,e)}),s[t](n,...r)}function B(e,t,i){let r=eC(e);M(r,"iterate",W);let s=r[t](...i);return(-1===s||!1===s)&&eV(i[0])?(i[0]=eC(i[0]),r[t](...i)):s}function q(e,t,i=[]){O(),b++;let r=eC(e)[t].apply(e,i);return S(),I(),r}let J=/*! #__NO_SIDE_EFFECTS__ */function(e,t){let i=new Set(e.split(","));return e=>i.has(e)}("__proto__,__v_isRef,__isVue"),Q=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(h));function X(e){h(e)||(e=String(e));let t=eC(this);return M(t,"has",e),t.hasOwnProperty(e)}class Z{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){let r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return s;if("__v_raw"===t)return i===(r?s?eA:em:s?eD:ek).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;let n=a(e);if(!r){let e;if(n&&(e=F[t]))return e;if("hasOwnProperty"===t)return X}let l=Reflect.get(e,t,eK(e)?e:i);return(h(t)?Q.has(t):J(t))?l:(r||M(e,"get",t),s)?l:eK(l)?n&&v(t)?l:l.value:f(l)?r?eI(l):eO(l):l}}class $ extends Z{constructor(e=!1){super(!1,e)}set(e,t,i,r){let s=e[t];if(!this._isShallow){let t=eN(s);if(eP(i)||eN(i)||(s=eC(s),i=eC(i)),!a(e)&&eK(s)&&!eK(i))return!t&&(s.value=i,!0)}let n=a(e)&&v(t)?Number(t)<e.length:l(e,t),u=Reflect.set(e,t,i,r);return e===eC(r)&&(n?g(i,s)&&K(e,"set",t,i):K(e,"add",t,i)),u}deleteProperty(e,t){let i=l(e,t);e[t];let r=Reflect.deleteProperty(e,t);return r&&i&&K(e,"delete",t,void 0),r}has(e,t){let i=Reflect.has(e,t);return h(t)&&Q.has(t)||M(e,"has",t),i}ownKeys(e){return M(e,"iterate",a(e)?"length":V),Reflect.ownKeys(e)}}class ee extends Z{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let et=new $,ei=new ee,er=new $(!0),es=new ee(!0),en=e=>e,el=e=>Reflect.getPrototypeOf(e);function ea(e,t,i=!1,r=!1){let s=eC(e=e.__v_raw),n=eC(t);i||(g(t,n)&&M(s,"get",t),M(s,"get",n));let{has:l}=el(s),a=r?en:i?eM:eW;return l.call(s,t)?a(e.get(t)):l.call(s,n)?a(e.get(n)):void(e!==s&&e.get(t))}function eu(e,t=!1){let i=this.__v_raw,r=eC(i),s=eC(e);return t||(g(e,s)&&M(r,"has",e),M(r,"has",s)),e===s?i.has(e):i.has(e)||i.has(s)}function eo(e,t=!1){return e=e.__v_raw,t||M(eC(e),"iterate",V),Reflect.get(e,"size",e)}function ec(e,t=!1){t||eP(e)||eN(e)||(e=eC(e));let i=eC(this);return el(i).has.call(i,e)||(i.add(e),K(i,"add",e,e)),this}function eh(e,t,i=!1){i||eP(t)||eN(t)||(t=eC(t));let r=eC(this),{has:s,get:n}=el(r),l=s.call(r,e);l||(e=eC(e),l=s.call(r,e));let a=n.call(r,e);return r.set(e,t),l?g(t,a)&&K(r,"set",e,t):K(r,"add",e,t),this}function ef(e){let t=eC(this),{has:i,get:r}=el(t),s=i.call(t,e);s||(e=eC(e),s=i.call(t,e)),r&&r.call(t,e);let n=t.delete(e);return s&&K(t,"delete",e,void 0),n}function ep(){let e=eC(this),t=0!==e.size,i=e.clear();return t&&K(e,"clear",void 0,void 0),i}function ed(e,t){return function(i,r){let s=this,n=s.__v_raw,l=eC(n),a=t?en:e?eM:eW;return e||M(l,"iterate",V),n.forEach((e,t)=>i.call(r,a(e),a(t),s))}}function e_(e,t,i){return function(...r){let s=this.__v_raw,n=eC(s),l=u(n),a="entries"===e||e===Symbol.iterator&&l,o=s[e](...r),c=i?en:t?eM:eW;return t||M(n,"iterate","keys"===e&&l?C:V),{next(){let{value:e,done:t}=o.next();return t?{value:e,done:t}:{value:a?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function ev(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[eg,ey,eR,ew]=function(){let e={get(e){return ea(this,e)},get size(){return eo(this)},has:eu,add:ec,set:eh,delete:ef,clear:ep,forEach:ed(!1,!1)},t={get(e){return ea(this,e,!1,!0)},get size(){return eo(this)},has:eu,add(e){return ec.call(this,e,!0)},set(e,t){return eh.call(this,e,t,!0)},delete:ef,clear:ep,forEach:ed(!1,!0)},i={get(e){return ea(this,e,!0)},get size(){return eo(this,!0)},has(e){return eu.call(this,e,!0)},add:ev("add"),set:ev("set"),delete:ev("delete"),clear:ev("clear"),forEach:ed(!0,!1)},r={get(e){return ea(this,e,!0,!0)},get size(){return eo(this,!0)},has(e){return eu.call(this,e,!0)},add:ev("add"),set:ev("set"),delete:ev("delete"),clear:ev("clear"),forEach:ed(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=e_(s,!1,!1),i[s]=e_(s,!0,!1),t[s]=e_(s,!1,!0),r[s]=e_(s,!0,!0)}),[e,i,t,r]}();function eb(e,t){let i=t?e?ew:eR:e?ey:eg;return(t,r,s)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(l(i,r)&&r in t?i:t,r,s)}let eS={get:eb(!1,!1)},eE={get:eb(!1,!0)},ex={get:eb(!0,!1)},eT={get:eb(!0,!0)},ek=new WeakMap,eD=new WeakMap,em=new WeakMap,eA=new WeakMap;function eO(e){return eN(e)?e:eL(e,!1,et,eS,ek)}function eI(e){return eL(e,!0,ei,ex,em)}function eL(e,t,i,r,s){if(!f(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let n=s.get(e);if(n)return n;let l=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(_(e));if(0===l)return e;let a=new Proxy(e,2===l?r:i);return s.set(e,a),a}function ej(e){return eN(e)?ej(e.__v_raw):!!(e&&e.__v_isReactive)}function eN(e){return!!(e&&e.__v_isReadonly)}function eP(e){return!!(e&&e.__v_isShallow)}function eV(e){return!!e&&!!e.__v_raw}function eC(e){let t=e&&e.__v_raw;return t?eC(t):e}let eW=e=>f(e)?eO(e):e,eM=e=>f(e)?eI(e):e;function eK(e){return!!e&&!0===e.__v_isRef}function eY(e){return ez(e,!1)}function ez(e,t){return eK(e)?e:new eF(e,t)}class eF{constructor(e,t){this.dep=new N,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:eC(e),this._value=t?e:eW(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||eP(e)||eN(e);g(e=i?e:eC(e),t)&&(this._rawValue=e,this._value=i?e:eW(e),this.dep.trigger())}}function eG(e){return eK(e)?e.value:e}let eH={get:(e,t,i)=>eG(Reflect.get(e,t,i)),set:(e,t,i,r)=>{let s=e[t];return eK(s)&&!eK(i)?(s.value=i,!0):Reflect.set(e,t,i,r)}};class eU{constructor(e){this.__v_isRef=!0;let t=this.dep=new N,{get:i,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=i,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}class eB{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0}get value(){let e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){var e,t,i;return e=eC(this._object),t=this._key,null==(i=P.get(e))?void 0:i.get(t)}}class eq{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function eJ(e,t,i){let r=e[t];return eK(r)?r:new eB(e,t,i)}class eQ{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new N(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=j-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){i!==this&&(this.flags|=16,this.dep.notify())}get value(){let e=this.dep.track();return k(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}return e.ARRAY_ITERATE_KEY=W,e.EffectFlags={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",NO_BATCH:64,64:"NO_BATCH"},e.EffectScope=R,e.ITERATE_KEY=V,e.MAP_KEY_ITERATE_KEY=C,e.ReactiveEffect=w,e.ReactiveFlags={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},e.TrackOpTypes={GET:"get",HAS:"has",ITERATE:"iterate"},e.TriggerOpTypes={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},e.computed=function(e,t,i=!1){let r,s;return o(e)?r=e:(r=e.get,s=e.set),new eQ(r,s,i)},e.customRef=function(e){return new eU(e)},e.effect=function(e,t){e.effect instanceof w&&(e=e.effect.fn);let i=new w(e);t&&s(i,t);try{i.run()}catch(e){throw i.stop(),e}let r=i.run.bind(i);return r.effect=i,r},e.effectScope=function(e){return new R(e)},e.enableTracking=function(){A.push(m),m=!0},e.getCurrentScope=function(){return t},e.isProxy=eV,e.isReactive=ej,e.isReadonly=eN,e.isRef=eK,e.isShallow=eP,e.markRaw=function(e){return Object.isExtensible(e)&&y(e,"__v_skip",!0),e},e.onEffectCleanup=function(e,t=!1){i instanceof w&&(i.cleanup=e)},e.onScopeDispose=function(e,i=!1){t&&t.cleanups.push(e)},e.pauseTracking=O,e.proxyRefs=function(e){return ej(e)?e:new Proxy(e,eH)},e.reactive=eO,e.reactiveReadArray=Y,e.readonly=eI,e.ref=eY,e.resetTracking=I,e.shallowReactive=function(e){return eL(e,!1,er,eE,eD)},e.shallowReadArray=z,e.shallowReadonly=function(e){return eL(e,!0,es,eT,eA)},e.shallowRef=function(e){return ez(e,!0)},e.stop=function(e){e.effect.stop()},e.toRaw=eC,e.toReactive=eW,e.toReadonly=eM,e.toRef=function(e,t,i){return eK(e)?e:o(e)?new eq(e):f(e)&&arguments.length>1?eJ(e,t,i):eY(e)},e.toRefs=function(e){let t=a(e)?Array(e.length):{};for(let i in e)t[i]=eJ(e,i);return t},e.toValue=function(e){return o(e)?e():eG(e)},e.track=M,e.trigger=K,e.triggerRef=function(e){e.dep.trigger()},e.unref=eG,e}({}); | ||
**/var VueReactivity=function(e){"use strict";let t,i,r;let s=Object.assign,n=Object.prototype.hasOwnProperty,l=(e,t)=>n.call(e,t),a=Array.isArray,u=e=>"[object Map]"===d(e),o=e=>"function"==typeof e,c=e=>"string"==typeof e,h=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,d=e=>p.call(e),_=e=>d(e).slice(8,-1),v=e=>c(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,g=(e,t)=>!Object.is(e,t),y=(e,t,i,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:i})};class R{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=t,!e&&t&&(this.index=(t.scopes||(t.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){let i=t;try{return t=this,e()}finally{t=i}}}on(){t=this}off(){t=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){let 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}}}class w{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,t&&t.active&&t.effects.push(this)}notify(){if(!(2&this.flags)||32&this.flags){if(64&this.flags)return this.trigger();8&this.flags||(this.flags|=8,this.nextEffect=r,r=this)}}run(){if(!(1&this.flags))return this.fn();this.flags|=2,L(this),E(this);let e=i,t=m;i=this,m=!0;try{return this.fn()}finally{x(this),i=e,m=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)D(e);this.deps=this.depsTail=void 0,L(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){T(this)&&this.run()}get dirty(){return T(this)}}let b=0;function S(){let e;if(b>1){b--;return}for(;r;){let t=r;for(r=void 0;t;){let i=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=i}}if(b--,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 x(e){let t;let i=e.depsTail;for(let e=i;e;e=e.prevDep)-1===e.version?(e===i&&(i=e.prevDep),D(e),function(e){let{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}(e)):t=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0;e.deps=t,e.depsTail=i}function T(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===k(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function k(e){if(2&e.flags)return!1;if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===j))return;e.globalVersion=j;let t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!T(e)){e.flags&=-3;return}let r=i,s=m;i=e,m=!0;try{E(e);let i=e.fn();(0===t.version||g(i,e._value))&&(e._value=i,t.version++)}catch(e){throw t.version++,e}finally{i=r,m=s,x(e),e.flags&=-3}}function D(e){let{dep:t,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),t.subs===e&&(t.subs=i),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)D(e)}}let m=!0,A=[];function O(){A.push(m),m=!1}function I(){let e=A.pop();m=void 0===e||e}function L(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=i;i=void 0;try{t()}finally{i=e}}}let j=0;class N{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!i||!m)return;let t=this.activeLink;if(void 0===t||t.sub!==i)t=this.activeLink={dep:this,sub:i,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},i.deps?(t.prevDep=i.depsTail,i.depsTail.nextDep=t,i.depsTail=t):i.deps=i.depsTail=t,4&i.flags&&function e(t){let i=t.dep.computed;if(i&&!t.dep.subs){i.flags|=20;for(let t=i.deps;t;t=t.nextDep)e(t)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=i.depsTail,t.nextDep=void 0,i.depsTail.nextDep=t,i.depsTail=t,i.deps===t&&(i.deps=e)}return t}trigger(e){this.version++,j++,this.notify(e)}notify(e){b++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{S()}}}let P=new WeakMap,V=Symbol(""),C=Symbol(""),W=Symbol("");function M(e,t,r){if(m&&i){let t=P.get(e);t||P.set(e,t=new Map);let i=t.get(r);i||t.set(r,i=new N),i.track()}}function K(e,t,i,r,s,n){let l=P.get(e);if(!l){j++;return}let o=[];if("clear"===t)o=[...l.values()];else{let s=a(e),n=s&&v(i);if(s&&"length"===i){let e=Number(r);l.forEach((t,i)=>{("length"===i||i===W||!h(i)&&i>=e)&&o.push(t)})}else{let r=e=>e&&o.push(e);switch(void 0!==i&&r(l.get(i)),n&&r(l.get(W)),t){case"add":s?n&&r(l.get("length")):(r(l.get(V)),u(e)&&r(l.get(C)));break;case"delete":!s&&(r(l.get(V)),u(e)&&r(l.get(C)));break;case"set":u(e)&&r(l.get(V))}}}for(let e of(b++,o))e.trigger();S()}function Y(e){let t=eC(e);return t===e?t:(M(t,"iterate",W),eP(e)?t:t.map(eW))}function z(e){return M(e=eC(e),"iterate",W),e}let F={__proto__:null,[Symbol.iterator](){return G(this,Symbol.iterator,eW)},concat(...e){return Y(this).concat(...e.map(e=>Y(e)))},entries(){return G(this,"entries",e=>(e[1]=eW(e[1]),e))},every(e,t){return H(this,"every",e,t)},filter(e,t){return H(this,"filter",e,t,e=>e.map(eW))},find(e,t){return H(this,"find",e,t,eW)},findIndex(e,t){return H(this,"findIndex",e,t)},findLast(e,t){return H(this,"findLast",e,t,eW)},findLastIndex(e,t){return H(this,"findLastIndex",e,t)},forEach(e,t){return H(this,"forEach",e,t)},includes(...e){return B(this,"includes",e)},indexOf(...e){return B(this,"indexOf",e)},join(e){return Y(this).join(e)},lastIndexOf(...e){return B(this,"lastIndexOf",e)},map(e,t){return H(this,"map",e,t)},pop(){return q(this,"pop")},push(...e){return q(this,"push",e)},reduce(e,...t){return U(this,"reduce",e,t)},reduceRight(e,...t){return U(this,"reduceRight",e,t)},shift(){return q(this,"shift")},some(e,t){return H(this,"some",e,t)},splice(...e){return q(this,"splice",e)},toReversed(){return Y(this).toReversed()},toSorted(e){return Y(this).toSorted(e)},toSpliced(...e){return Y(this).toSpliced(...e)},unshift(...e){return q(this,"unshift",e)},values(){return G(this,"values",eW)}};function G(e,t,i){let r=z(e),s=r[t]();return r===e||eP(e)||(s._next=s.next,s.next=()=>{let e=s._next();return e.value&&(e.value=i(e.value)),e}),s}function H(e,t,i,r,s){let n=z(e),l=!1,a=i;n!==e&&((l=!eP(e))?a=function(t,r){return i.call(this,eW(t),r,e)}:i.length>2&&(a=function(t,r){return i.call(this,t,r,e)}));let u=n[t](a,r);return l&&s?s(u):u}function U(e,t,i,r){let s=z(e),n=i;return s!==e&&(eP(e)?i.length>3&&(n=function(t,r,s){return i.call(this,t,r,s,e)}):n=function(t,r,s){return i.call(this,t,eW(r),s,e)}),s[t](n,...r)}function B(e,t,i){let r=eC(e);M(r,"iterate",W);let s=r[t](...i);return(-1===s||!1===s)&&eV(i[0])?(i[0]=eC(i[0]),r[t](...i)):s}function q(e,t,i=[]){O(),b++;let r=eC(e)[t].apply(e,i);return S(),I(),r}let J=/*! #__NO_SIDE_EFFECTS__ */function(e,t){let i=new Set(e.split(","));return e=>i.has(e)}("__proto__,__v_isRef,__isVue"),Q=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(h));function X(e){h(e)||(e=String(e));let t=eC(this);return M(t,"has",e),t.hasOwnProperty(e)}class Z{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){let r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return s;if("__v_raw"===t)return i===(r?s?eA:em:s?eD:ek).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;let n=a(e);if(!r){let e;if(n&&(e=F[t]))return e;if("hasOwnProperty"===t)return X}let l=Reflect.get(e,t,eK(e)?e:i);return(h(t)?Q.has(t):J(t))?l:(r||M(e,"get",t),s)?l:eK(l)?n&&v(t)?l:l.value:f(l)?r?eI(l):eO(l):l}}class $ extends Z{constructor(e=!1){super(!1,e)}set(e,t,i,r){let s=e[t];if(!this._isShallow){let t=eN(s);if(eP(i)||eN(i)||(s=eC(s),i=eC(i)),!a(e)&&eK(s)&&!eK(i))return!t&&(s.value=i,!0)}let n=a(e)&&v(t)?Number(t)<e.length:l(e,t),u=Reflect.set(e,t,i,r);return e===eC(r)&&(n?g(i,s)&&K(e,"set",t,i):K(e,"add",t,i)),u}deleteProperty(e,t){let i=l(e,t);e[t];let r=Reflect.deleteProperty(e,t);return r&&i&&K(e,"delete",t,void 0),r}has(e,t){let i=Reflect.has(e,t);return h(t)&&Q.has(t)||M(e,"has",t),i}ownKeys(e){return M(e,"iterate",a(e)?"length":V),Reflect.ownKeys(e)}}class ee extends Z{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let et=new $,ei=new ee,er=new $(!0),es=new ee(!0),en=e=>e,el=e=>Reflect.getPrototypeOf(e);function ea(e,t,i=!1,r=!1){let s=eC(e=e.__v_raw),n=eC(t);i||(g(t,n)&&M(s,"get",t),M(s,"get",n));let{has:l}=el(s),a=r?en:i?eM:eW;return l.call(s,t)?a(e.get(t)):l.call(s,n)?a(e.get(n)):void(e!==s&&e.get(t))}function eu(e,t=!1){let i=this.__v_raw,r=eC(i),s=eC(e);return t||(g(e,s)&&M(r,"has",e),M(r,"has",s)),e===s?i.has(e):i.has(e)||i.has(s)}function eo(e,t=!1){return e=e.__v_raw,t||M(eC(e),"iterate",V),Reflect.get(e,"size",e)}function ec(e,t=!1){t||eP(e)||eN(e)||(e=eC(e));let i=eC(this);return el(i).has.call(i,e)||(i.add(e),K(i,"add",e,e)),this}function eh(e,t,i=!1){i||eP(t)||eN(t)||(t=eC(t));let r=eC(this),{has:s,get:n}=el(r),l=s.call(r,e);l||(e=eC(e),l=s.call(r,e));let a=n.call(r,e);return r.set(e,t),l?g(t,a)&&K(r,"set",e,t):K(r,"add",e,t),this}function ef(e){let t=eC(this),{has:i,get:r}=el(t),s=i.call(t,e);s||(e=eC(e),s=i.call(t,e)),r&&r.call(t,e);let n=t.delete(e);return s&&K(t,"delete",e,void 0),n}function ep(){let e=eC(this),t=0!==e.size,i=e.clear();return t&&K(e,"clear",void 0,void 0),i}function ed(e,t){return function(i,r){let s=this,n=s.__v_raw,l=eC(n),a=t?en:e?eM:eW;return e||M(l,"iterate",V),n.forEach((e,t)=>i.call(r,a(e),a(t),s))}}function e_(e,t,i){return function(...r){let s=this.__v_raw,n=eC(s),l=u(n),a="entries"===e||e===Symbol.iterator&&l,o=s[e](...r),c=i?en:t?eM:eW;return t||M(n,"iterate","keys"===e&&l?C:V),{next(){let{value:e,done:t}=o.next();return t?{value:e,done:t}:{value:a?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function ev(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[eg,ey,eR,ew]=function(){let e={get(e){return ea(this,e)},get size(){return eo(this)},has:eu,add:ec,set:eh,delete:ef,clear:ep,forEach:ed(!1,!1)},t={get(e){return ea(this,e,!1,!0)},get size(){return eo(this)},has:eu,add(e){return ec.call(this,e,!0)},set(e,t){return eh.call(this,e,t,!0)},delete:ef,clear:ep,forEach:ed(!1,!0)},i={get(e){return ea(this,e,!0)},get size(){return eo(this,!0)},has(e){return eu.call(this,e,!0)},add:ev("add"),set:ev("set"),delete:ev("delete"),clear:ev("clear"),forEach:ed(!0,!1)},r={get(e){return ea(this,e,!0,!0)},get size(){return eo(this,!0)},has(e){return eu.call(this,e,!0)},add:ev("add"),set:ev("set"),delete:ev("delete"),clear:ev("clear"),forEach:ed(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=e_(s,!1,!1),i[s]=e_(s,!0,!1),t[s]=e_(s,!1,!0),r[s]=e_(s,!0,!0)}),[e,i,t,r]}();function eb(e,t){let i=t?e?ew:eR:e?ey:eg;return(t,r,s)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(l(i,r)&&r in t?i:t,r,s)}let eS={get:eb(!1,!1)},eE={get:eb(!1,!0)},ex={get:eb(!0,!1)},eT={get:eb(!0,!0)},ek=new WeakMap,eD=new WeakMap,em=new WeakMap,eA=new WeakMap;function eO(e){return eN(e)?e:eL(e,!1,et,eS,ek)}function eI(e){return eL(e,!0,ei,ex,em)}function eL(e,t,i,r,s){if(!f(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let n=s.get(e);if(n)return n;let l=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(_(e));if(0===l)return e;let a=new Proxy(e,2===l?r:i);return s.set(e,a),a}function ej(e){return eN(e)?ej(e.__v_raw):!!(e&&e.__v_isReactive)}function eN(e){return!!(e&&e.__v_isReadonly)}function eP(e){return!!(e&&e.__v_isShallow)}function eV(e){return!!e&&!!e.__v_raw}function eC(e){let t=e&&e.__v_raw;return t?eC(t):e}let eW=e=>f(e)?eO(e):e,eM=e=>f(e)?eI(e):e;function eK(e){return!!e&&!0===e.__v_isRef}function eY(e){return ez(e,!1)}function ez(e,t){return eK(e)?e:new eF(e,t)}class eF{constructor(e,t){this.dep=new N,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:eC(e),this._value=t?e:eW(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||eP(e)||eN(e);g(e=i?e:eC(e),t)&&(this._rawValue=e,this._value=i?e:eW(e),this.dep.trigger())}}function eG(e){return eK(e)?e.value:e}let eH={get:(e,t,i)=>eG(Reflect.get(e,t,i)),set:(e,t,i,r)=>{let s=e[t];return eK(s)&&!eK(i)?(s.value=i,!0):Reflect.set(e,t,i,r)}};class eU{constructor(e){this.__v_isRef=!0;let t=this.dep=new N,{get:i,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=i,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}class eB{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0}get value(){let e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){var e,t,i;return e=eC(this._object),t=this._key,null==(i=P.get(e))?void 0:i.get(t)}}class eq{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function eJ(e,t,i){let r=e[t];return eK(r)?r:new eB(e,t,i)}class eQ{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new N(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=j-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){i!==this&&(this.flags|=16,this.dep.notify())}get value(){let e=this.dep.track();return k(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}return e.ARRAY_ITERATE_KEY=W,e.EffectFlags={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",NO_BATCH:64,64:"NO_BATCH"},e.EffectScope=R,e.ITERATE_KEY=V,e.MAP_KEY_ITERATE_KEY=C,e.ReactiveEffect=w,e.ReactiveFlags={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},e.TrackOpTypes={GET:"get",HAS:"has",ITERATE:"iterate"},e.TriggerOpTypes={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},e.computed=function(e,t,i=!1){let r,s;return o(e)?r=e:(r=e.get,s=e.set),new eQ(r,s,i)},e.customRef=function(e){return new eU(e)},e.effect=function(e,t){e.effect instanceof w&&(e=e.effect.fn);let i=new w(e);t&&s(i,t);try{i.run()}catch(e){throw i.stop(),e}let r=i.run.bind(i);return r.effect=i,r},e.effectScope=function(e){return new R(e)},e.enableTracking=function(){A.push(m),m=!0},e.getCurrentScope=function(){return t},e.isProxy=eV,e.isReactive=ej,e.isReadonly=eN,e.isRef=eK,e.isShallow=eP,e.markRaw=function(e){return Object.isExtensible(e)&&y(e,"__v_skip",!0),e},e.onEffectCleanup=function(e,t=!1){i instanceof w&&(i.cleanup=e)},e.onScopeDispose=function(e,i=!1){t&&t.cleanups.push(e)},e.pauseTracking=O,e.proxyRefs=function(e){return ej(e)?e:new Proxy(e,eH)},e.reactive=eO,e.reactiveReadArray=Y,e.readonly=eI,e.ref=eY,e.resetTracking=I,e.shallowReactive=function(e){return eL(e,!1,er,eE,eD)},e.shallowReadArray=z,e.shallowReadonly=function(e){return eL(e,!0,es,eT,eA)},e.shallowRef=function(e){return ez(e,!0)},e.stop=function(e){e.effect.stop()},e.toRaw=eC,e.toReactive=eW,e.toReadonly=eM,e.toRef=function(e,t,i){return eK(e)?e:o(e)?new eq(e):f(e)&&arguments.length>1?eJ(e,t,i):eY(e)},e.toRefs=function(e){let t=a(e)?Array(e.length):{};for(let i in e)t[i]=eJ(e,i);return t},e.toValue=function(e){return o(e)?e():eG(e)},e.track=M,e.trigger=K,e.triggerRef=function(e){e.dep.trigger()},e.unref=eG,e}({}); |
{ | ||
"name": "@vue/reactivity", | ||
"version": "3.5.0-alpha.4", | ||
"version": "3.5.0-alpha.5", | ||
"description": "@vue/reactivity", | ||
@@ -53,4 +53,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@vue/shared": "3.5.0-alpha.4" | ||
"@vue/shared": "3.5.0-alpha.5" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
277151
8993
+ Added@vue/shared@3.5.0-alpha.5(transitive)
- Removed@vue/shared@3.5.0-alpha.4(transitive)
Updated@vue/shared@3.5.0-alpha.5