From c20ca11b32ddfb9a240e4064b22db216375e3761 Mon Sep 17 00:00:00 2001 From: TerryZhou Date: Tue, 6 Aug 2024 10:50:43 +0800 Subject: [PATCH 1/2] Add ParamAsBool --- api.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api.go b/api.go index 339c905..44555db 100644 --- a/api.go +++ b/api.go @@ -99,6 +99,15 @@ func (e *EventContext) ParamAsInt(key string) (r int) { return } +func (e *EventContext) ParamAsBool(key string) (r bool) { + strVal := e.Param(key) + if len(strVal) == 0 { + return + } + r, _ = strconv.ParseBool(strVal) + return +} + func (e *EventContext) Queries() (r url.Values) { r = e.R.URL.Query() delete(r, EventFuncIDName) From a41a15f1e75b123499b31eca4c570929effe3131 Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Thu, 8 Aug 2024 13:55:34 +0800 Subject: [PATCH 2/2] fix: onpopstate does nothing when event.state is null --- corejs/dist/index.js | 2 +- corejs/dist/vue.global.dev.js | 4916 ++++++++++++++++---------------- corejs/dist/vue.global.prod.js | 12 +- corejs/src/app.ts | 4 +- corejs/src/builder.ts | 5 +- 5 files changed, 2483 insertions(+), 2456 deletions(-) diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 38ebdf0..7d8ba95 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -20,7 +20,7 @@ Content-Type: `+(p.type||"application/octet-stream")+`\r * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2021 Joachim Wester * MIT license - */var Ce=new WeakMap,Ms=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),Us=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function Hs(e){return Ce.get(e)}function Bs(e,t){return e.observers.get(t)}function qs(e,t){e.observers.delete(t.callback)}function Gs(e,t){t.unobserve()}function zs(e,t){var r=[],n,i=Hs(e);if(!i)i=new Ms(e),Ce.set(e,i);else{var o=Bs(i,t);n=o&&o.observer}if(n)return n;if(n={},i.value=F(e),t){n.callback=t,n.next=null;var s=function(){Re(n)},c=function(){clearTimeout(n.next),n.next=setTimeout(s)};typeof window<"u"&&(window.addEventListener("mouseup",c),window.addEventListener("keyup",c),window.addEventListener("mousedown",c),window.addEventListener("keydown",c),window.addEventListener("change",c))}return n.patches=r,n.object=e,n.unobserve=function(){Re(n),clearTimeout(n.next),qs(i,n),typeof window<"u"&&(window.removeEventListener("mouseup",c),window.removeEventListener("keyup",c),window.removeEventListener("mousedown",c),window.removeEventListener("keydown",c),window.removeEventListener("change",c))},i.observers.set(t,new Us(t,n)),n}function Re(e,t){t===void 0&&(t=!1);var r=Ce.get(e.object);je(r.value,e.object,e.patches,"",t),e.patches.length&&Fe(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function je(e,t,r,n,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var o=$e(t),s=$e(e),c=!1,h=s.length-1;h>=0;h--){var d=s[h],y=e[d];if(Ee(t,d)&&!(t[d]===void 0&&y!==void 0&&Array.isArray(t)===!1)){var _=t[d];typeof y=="object"&&y!=null&&typeof _=="object"&&_!=null&&Array.isArray(y)===Array.isArray(_)?je(y,_,r,n+"/"+U(d),i):y!==_&&(i&&r.push({op:"test",path:n+"/"+U(d),value:F(y)}),r.push({op:"replace",path:n+"/"+U(d),value:F(_)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+U(d),value:F(y)}),r.push({op:"remove",path:n+"/"+U(d)}),c=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}))}if(!(!c&&o.length==s.length))for(var h=0;h{var r;return t instanceof Error?(r=this.ignoreErrors)==null?void 0:r.includes(t.message):!1})}eventFunc(t){return this._eventFuncID.id=t,this}updateRootTemplate(t){return this._updateRootTemplate=t,this}eventFuncID(t){return this._eventFuncID=t,this}reload(){return this._eventFuncID.id="__reload__",this}url(t){return this._url=t,this}vars(t){return this._vars=t,this}loadPortalBody(t){return this._loadPortalBody=t,this}locals(t){return this._locals=t,this}calcValue(t){return typeof t=="function"?t(this):t}query(t,r){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[t]=this.calcValue(r),this}mergeQuery(t){return this._location||(this._location={}),this._location.mergeQuery=t,this}clearMergeQuery(t){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=t,this}location(t){return this._location=t,this}stringQuery(t){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(t),this}stringifyOptions(t){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(t),this}pushState(t){return this._pushState=this.calcValue(t),this}queries(t){return this._location||(this._location={}),this._location.query=t,this}pushStateURL(t){return this._location||(this._location={}),this._location.url=this.calcValue(t),this.pushState(!0),this}form(t){return this._form=t,this}fieldValue(t,r){if(!this._form)throw new Error("form not exist");return this._form[t]=this.calcValue(r),this}popstate(t){return this._popstate=t,this}run(t){return typeof t=="function"?t(this):new Function(t).apply(this),this}method(t){return this._method=t,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(t){return t.state?this.popstate(!0).location(t.state).reload().go():Promise.reject("event state is undefined")}runPushState(){if(this._popstate!==!0&&this._pushState===!0){window.history.length<=2&&window.history.pushState({url:window.location.href},"",window.location.href);const t=this.buildPushStateArgs();t&&window.history.pushState(...t)}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const t={method:"POST",redirect:"follow"};if(this._method&&(t.method=this._method),t.method==="POST"){const n=new FormData;St(this._form,n),t.body=n}window.dispatchEvent(new Event("fetchStart"));const r=this.buildFetchURL();return fetch(r,t).then(n=>n.redirected?(document.location.replace(n.url),{}):n.json()).then(n=>(n.runScript&&new Function("vars","locals","form","plaid",n.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const i=Pe().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return i.parent=this,i}]),n)).then(n=>{if(n.pageTitle&&(document.title=n.pageTitle),n.redirectURL&&document.location.replace(n.redirectURL),n.reloadPortals&&n.reloadPortals.length>0)for(const i of n.reloadPortals){const o=window.__goplaid.portals[i];o&&o.reload()}if(n.updatePortals&&n.updatePortals.length>0)for(const i of n.updatePortals){const{updatePortalTemplate:o}=window.__goplaid.portals[i.name];o&&o(i.body)}return n.pushState?Pe().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(n.pushState).go():(this._loadPortalBody&&n.body||n.body&&this._updateRootTemplate(n.body),n)}).catch(n=>{console.log(n),this.isIgnoreError(n)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const t=window.location.href;this._buildPushStateResult=Ss({...this._eventFuncID,location:this._location},this._url||t)}emit(t,...r){this._vars&&this._vars.__emitter.emit(t,...r)}applyJsonPatch(t,r){return Js.applyPatch(t,r)}encodeObjectToQuery(t,r){return Es(t,r)}isRawQuerySubset(t,r,n){return Ts(t,r,n)}}function Pe(){return new Ks}const Vs={mounted:(e,t,r)=>{var d,y;let n=e;r.component&&(n=(y=(d=r.component)==null?void 0:d.proxy)==null?void 0:y.$el);const i=t.arg||"scroll",s=L.parse(location.hash)[i];let c="";Array.isArray(s)?c=s[0]||"":c=s||"";const h=c.split("_");h.length>=2&&(n.scrollTop=parseInt(h[0]),n.scrollLeft=parseInt(h[1])),n.addEventListener("scroll",ke(function(){const _=L.parse(location.hash);_[i]=n.scrollTop+"_"+n.scrollLeft,location.hash=L.stringify(_)},200))}},Qs={mounted:(e,t)=>{const[r,n]=t.value;Object.assign(r,n)}},Ys={mounted:(e,t,r)=>{t.value(e,t,r)}};var It={exports:{}};function De(){}De.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;for(n;n{t.value=Ae(c,r)};f.provide("updateRootTemplate",n);const i=f.reactive({__emitter:new Ws}),o=()=>Pe().updateRootTemplate(n).vars(i);f.provide("plaid",o),f.provide("vars",i);const s=f.ref(!1);return f.provide("isFetching",s),f.onMounted(()=>{n(e.initialTemplate),window.addEventListener("fetchStart",()=>{s.value=!0}),window.addEventListener("fetchEnd",()=>{s.value=!1}),window.addEventListener("popstate",c=>{c&&c.state!=null&&o().onpopstate(c)})}),{current:t}},template:` + */var Ce=new WeakMap,Ms=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),Us=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function Hs(e){return Ce.get(e)}function Bs(e,t){return e.observers.get(t)}function qs(e,t){e.observers.delete(t.callback)}function Gs(e,t){t.unobserve()}function zs(e,t){var r=[],n,i=Hs(e);if(!i)i=new Ms(e),Ce.set(e,i);else{var o=Bs(i,t);n=o&&o.observer}if(n)return n;if(n={},i.value=F(e),t){n.callback=t,n.next=null;var s=function(){Re(n)},c=function(){clearTimeout(n.next),n.next=setTimeout(s)};typeof window<"u"&&(window.addEventListener("mouseup",c),window.addEventListener("keyup",c),window.addEventListener("mousedown",c),window.addEventListener("keydown",c),window.addEventListener("change",c))}return n.patches=r,n.object=e,n.unobserve=function(){Re(n),clearTimeout(n.next),qs(i,n),typeof window<"u"&&(window.removeEventListener("mouseup",c),window.removeEventListener("keyup",c),window.removeEventListener("mousedown",c),window.removeEventListener("keydown",c),window.removeEventListener("change",c))},i.observers.set(t,new Us(t,n)),n}function Re(e,t){t===void 0&&(t=!1);var r=Ce.get(e.object);je(r.value,e.object,e.patches,"",t),e.patches.length&&Fe(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function je(e,t,r,n,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var o=$e(t),s=$e(e),c=!1,h=s.length-1;h>=0;h--){var d=s[h],y=e[d];if(Ee(t,d)&&!(t[d]===void 0&&y!==void 0&&Array.isArray(t)===!1)){var _=t[d];typeof y=="object"&&y!=null&&typeof _=="object"&&_!=null&&Array.isArray(y)===Array.isArray(_)?je(y,_,r,n+"/"+U(d),i):y!==_&&(i&&r.push({op:"test",path:n+"/"+U(d),value:F(y)}),r.push({op:"replace",path:n+"/"+U(d),value:F(_)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+U(d),value:F(y)}),r.push({op:"remove",path:n+"/"+U(d)}),c=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}))}if(!(!c&&o.length==s.length))for(var h=0;h{var r;return t instanceof Error?(r=this.ignoreErrors)==null?void 0:r.includes(t.message):!1})}eventFunc(t){return this._eventFuncID.id=t,this}updateRootTemplate(t){return this._updateRootTemplate=t,this}eventFuncID(t){return this._eventFuncID=t,this}reload(){return this._eventFuncID.id="__reload__",this}url(t){return this._url=t,this}vars(t){return this._vars=t,this}loadPortalBody(t){return this._loadPortalBody=t,this}locals(t){return this._locals=t,this}calcValue(t){return typeof t=="function"?t(this):t}query(t,r){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[t]=this.calcValue(r),this}mergeQuery(t){return this._location||(this._location={}),this._location.mergeQuery=t,this}clearMergeQuery(t){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=t,this}location(t){return this._location=t,this}stringQuery(t){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(t),this}stringifyOptions(t){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(t),this}pushState(t){return this._pushState=this.calcValue(t),this}queries(t){return this._location||(this._location={}),this._location.query=t,this}pushStateURL(t){return this._location||(this._location={}),this._location.url=this.calcValue(t),this.pushState(!0),this}form(t){return this._form=t,this}fieldValue(t,r){if(!this._form)throw new Error("form not exist");return this._form[t]=this.calcValue(r),this}popstate(t){return this._popstate=t,this}run(t){return typeof t=="function"?t(this):new Function(t).apply(this),this}method(t){return this._method=t,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(t){return!t||!t.state?this.popstate(!0).location(window.location.href).reload().go():this.popstate(!0).location(t.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){window.history.length<=2&&window.history.pushState({url:window.location.href},"",window.location.href);const t=this.buildPushStateArgs();t&&window.history.pushState(...t)}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const t={method:"POST",redirect:"follow"};if(this._method&&(t.method=this._method),t.method==="POST"){const n=new FormData;St(this._form,n),t.body=n}window.dispatchEvent(new Event("fetchStart"));const r=this.buildFetchURL();return fetch(r,t).then(n=>n.redirected?(document.location.replace(n.url),{}):n.json()).then(n=>(n.runScript&&new Function("vars","locals","form","plaid",n.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const i=Pe().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return i.parent=this,i}]),n)).then(n=>{if(n.pageTitle&&(document.title=n.pageTitle),n.redirectURL&&document.location.replace(n.redirectURL),n.reloadPortals&&n.reloadPortals.length>0)for(const i of n.reloadPortals){const o=window.__goplaid.portals[i];o&&o.reload()}if(n.updatePortals&&n.updatePortals.length>0)for(const i of n.updatePortals){const{updatePortalTemplate:o}=window.__goplaid.portals[i.name];o&&o(i.body)}return n.pushState?Pe().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(n.pushState).go():(this._loadPortalBody&&n.body||n.body&&this._updateRootTemplate(n.body),n)}).catch(n=>{console.log(n),this.isIgnoreError(n)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const t=window.location.href;this._buildPushStateResult=Ss({...this._eventFuncID,location:this._location},this._url||t)}emit(t,...r){this._vars&&this._vars.__emitter.emit(t,...r)}applyJsonPatch(t,r){return Js.applyPatch(t,r)}encodeObjectToQuery(t,r){return Es(t,r)}isRawQuerySubset(t,r,n){return Ts(t,r,n)}}function Pe(){return new Ks}const Vs={mounted:(e,t,r)=>{var d,y;let n=e;r.component&&(n=(y=(d=r.component)==null?void 0:d.proxy)==null?void 0:y.$el);const i=t.arg||"scroll",s=L.parse(location.hash)[i];let c="";Array.isArray(s)?c=s[0]||"":c=s||"";const h=c.split("_");h.length>=2&&(n.scrollTop=parseInt(h[0]),n.scrollLeft=parseInt(h[1])),n.addEventListener("scroll",ke(function(){const _=L.parse(location.hash);_[i]=n.scrollTop+"_"+n.scrollLeft,location.hash=L.stringify(_)},200))}},Qs={mounted:(e,t)=>{const[r,n]=t.value;Object.assign(r,n)}},Ys={mounted:(e,t,r)=>{t.value(e,t,r)}};var It={exports:{}};function De(){}De.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;for(n;n{t.value=Ae(c,r)};f.provide("updateRootTemplate",n);const i=f.reactive({__emitter:new Ws}),o=()=>Pe().updateRootTemplate(n).vars(i);f.provide("plaid",o),f.provide("vars",i);const s=f.ref(!1);return f.provide("isFetching",s),f.onMounted(()=>{n(e.initialTemplate),window.addEventListener("fetchStart",()=>{s.value=!0}),window.addEventListener("fetchEnd",()=>{s.value=!1}),window.addEventListener("popstate",c=>{o().onpopstate(c)})}),{current:t}},template:`
diff --git a/corejs/dist/vue.global.dev.js b/corejs/dist/vue.global.dev.js index 27716f3..c05a8c6 100644 --- a/corejs/dist/vue.global.dev.js +++ b/corejs/dist/vue.global.dev.js @@ -1,5 +1,5 @@ /** -* vue v3.4.31 +* vue v3.4.36 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ @@ -943,18 +943,18 @@ var Vue = (function (exports) { const toShallow = (value) => value; const getProto = (v) => Reflect.getPrototypeOf(v); - function get(target, key, isReadonly = false, isShallow = false) { + function get(target, key, isReadonly2 = false, isShallow2 = false) { target = target["__v_raw"]; const rawTarget = toRaw(target); const rawKey = toRaw(key); - if (!isReadonly) { + if (!isReadonly2) { if (hasChanged(key, rawKey)) { track(rawTarget, "get", key); } track(rawTarget, "get", rawKey); } const { has: has2 } = getProto(rawTarget); - const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive; + const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; if (has2.call(rawTarget, key)) { return wrap(target.get(key)); } else if (has2.call(rawTarget, rawKey)) { @@ -963,11 +963,11 @@ var Vue = (function (exports) { target.get(key); } } - function has(key, isReadonly = false) { + function has(key, isReadonly2 = false) { const target = this["__v_raw"]; const rawTarget = toRaw(target); const rawKey = toRaw(key); - if (!isReadonly) { + if (!isReadonly2) { if (hasChanged(key, rawKey)) { track(rawTarget, "has", key); } @@ -975,13 +975,15 @@ var Vue = (function (exports) { } return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey); } - function size(target, isReadonly = false) { + function size(target, isReadonly2 = false) { target = target["__v_raw"]; - !isReadonly && track(toRaw(target), "iterate", ITERATE_KEY); + !isReadonly2 && track(toRaw(target), "iterate", ITERATE_KEY); return Reflect.get(target, "size", target); } - function add(value) { - value = toRaw(value); + function add(value, _isShallow = false) { + if (!_isShallow && !isShallow(value) && !isReadonly(value)) { + value = toRaw(value); + } const target = toRaw(this); const proto = getProto(target); const hadKey = proto.has.call(target, value); @@ -991,8 +993,10 @@ var Vue = (function (exports) { } return this; } - function set(key, value) { - value = toRaw(value); + function set(key, value, _isShallow = false) { + if (!_isShallow && !isShallow(value) && !isReadonly(value)) { + value = toRaw(value); + } const target = toRaw(this); const { has: has2, get: get2 } = getProto(target); let hadKey = has2.call(target, key); @@ -1038,19 +1042,19 @@ var Vue = (function (exports) { } return result; } - function createForEach(isReadonly, isShallow) { + function createForEach(isReadonly2, isShallow2) { return function forEach(callback, thisArg) { const observed = this; const target = observed["__v_raw"]; const rawTarget = toRaw(target); - const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive; - !isReadonly && track(rawTarget, "iterate", ITERATE_KEY); + const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; + !isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY); return target.forEach((value, key) => { return callback.call(thisArg, wrap(value), wrap(key), observed); }); }; } - function createIterableMethod(method, isReadonly, isShallow) { + function createIterableMethod(method, isReadonly2, isShallow2) { return function(...args) { const target = this["__v_raw"]; const rawTarget = toRaw(target); @@ -1058,8 +1062,8 @@ var Vue = (function (exports) { const isPair = method === "entries" || method === Symbol.iterator && targetIsMap; const isKeyOnly = method === "keys" && targetIsMap; const innerIterator = target[method](...args); - const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive; - !isReadonly && track( + const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; + !isReadonly2 && track( rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY @@ -1115,8 +1119,12 @@ var Vue = (function (exports) { return size(this); }, has, - add, - set, + add(value) { + return add.call(this, value, true); + }, + set(key, value) { + return set.call(this, key, value, true); + }, delete: deleteEntry, clear, forEach: createForEach(false, true) @@ -1182,13 +1190,13 @@ var Vue = (function (exports) { shallowInstrumentations, shallowReadonlyInstrumentations ] = /* @__PURE__ */ createInstrumentations(); - function createInstrumentationGetter(isReadonly, shallow) { - const instrumentations = shallow ? isReadonly ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly ? readonlyInstrumentations : mutableInstrumentations; + function createInstrumentationGetter(isReadonly2, shallow) { + const instrumentations = shallow ? isReadonly2 ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly2 ? readonlyInstrumentations : mutableInstrumentations; return (target, key, receiver) => { if (key === "__v_isReactive") { - return !isReadonly; + return !isReadonly2; } else if (key === "__v_isReadonly") { - return isReadonly; + return isReadonly2; } else if (key === "__v_raw") { return target; } @@ -1597,7 +1605,10 @@ getter: `, this.getter); function popWarningContext() { stack$1.pop(); } + let isWarning = false; function warn$1(msg, ...args) { + if (isWarning) return; + isWarning = true; pauseTracking(); const instance = stack$1.length ? stack$1[stack$1.length - 1].component : null; const appWarnHandler = instance && instance.appContext.config.warnHandler; @@ -1630,6 +1641,7 @@ getter: `, this.getter); console.warn(...warnArgs); } resetTracking(); + isWarning = false; } function getComponentTrace() { let currentVNode = stack$1[stack$1.length - 1]; @@ -1738,7 +1750,9 @@ getter: `, this.getter); "ASYNC_COMPONENT_LOADER": 13, "13": "ASYNC_COMPONENT_LOADER", "SCHEDULER": 14, - "14": "SCHEDULER" + "14": "SCHEDULER", + "COMPONENT_UPDATE": 15, + "15": "COMPONENT_UPDATE" }; const ErrorTypeStrings$1 = { ["sp"]: "serverPrefetch hook", @@ -1769,7 +1783,8 @@ getter: `, this.getter); [11]: "app warnHandler", [12]: "ref function", [13]: "async component loader", - [14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ." + [14]: "scheduler flush", + [15]: "component update" }; function callWithErrorHandling(fn, instance, type, args) { try { @@ -1985,7 +2000,11 @@ getter: `, this.getter); if (check(job)) { continue; } - callWithErrorHandling(job, null, 14); + callWithErrorHandling( + job, + job.i, + job.i ? 15 : 14 + ); } } } finally { @@ -2005,7 +2024,7 @@ getter: `, this.getter); } else { const count = seen.get(fn); if (count > RECURSION_LIMIT) { - const instance = fn.ownerInstance; + const instance = fn.i; const componentName = instance && getComponentName(instance.type); handleError( `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, @@ -2020,7 +2039,7 @@ getter: `, this.getter); } let isHmrUpdating = false; - const hmrDirtyComponents = /* @__PURE__ */ new Set(); + const hmrDirtyComponents = /* @__PURE__ */ new Map(); { getGlobalThis().__VUE_HMR_RUNTIME__ = { createRecord: tryWrap(createRecord), @@ -2078,26 +2097,29 @@ getter: `, this.getter); newComp = normalizeClassComponent(newComp); updateComponentDef(record.initialDef, newComp); const instances = [...record.instances]; - for (const instance of instances) { + for (let i = 0; i < instances.length; i++) { + const instance = instances[i]; const oldComp = normalizeClassComponent(instance.type); - if (!hmrDirtyComponents.has(oldComp)) { + let dirtyInstances = hmrDirtyComponents.get(oldComp); + if (!dirtyInstances) { if (oldComp !== record.initialDef) { updateComponentDef(oldComp, newComp); } - hmrDirtyComponents.add(oldComp); + hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set()); } + dirtyInstances.add(instance); instance.appContext.propsCache.delete(instance.type); instance.appContext.emitsCache.delete(instance.type); instance.appContext.optionsCache.delete(instance.type); if (instance.ceReload) { - hmrDirtyComponents.add(oldComp); + dirtyInstances.add(instance); instance.ceReload(newComp.styles); - hmrDirtyComponents.delete(oldComp); + dirtyInstances.delete(instance); } else if (instance.parent) { instance.parent.effect.dirty = true; queueJob(() => { instance.parent.update(); - hmrDirtyComponents.delete(oldComp); + dirtyInstances.delete(instance); }); } else if (instance.appContext.reload) { instance.appContext.reload(); @@ -2110,11 +2132,7 @@ getter: `, this.getter); } } queuePostFlushCb(() => { - for (const instance of instances) { - hmrDirtyComponents.delete( - normalizeClassComponent(instance.type) - ); - } + hmrDirtyComponents.clear(); }); } function updateComponentDef(oldComp, newComp) { @@ -2238,144 +2256,6 @@ getter: `, this.getter); ); } - function emit(instance, event, ...rawArgs) { - if (instance.isUnmounted) return; - const props = instance.vnode.props || EMPTY_OBJ; - { - const { - emitsOptions, - propsOptions: [propsOptions] - } = instance; - if (emitsOptions) { - if (!(event in emitsOptions) && true) { - if (!propsOptions || !(toHandlerKey(event) in propsOptions)) { - warn$1( - `Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(event)}" prop.` - ); - } - } else { - const validator = emitsOptions[event]; - if (isFunction(validator)) { - const isValid = validator(...rawArgs); - if (!isValid) { - warn$1( - `Invalid event arguments: event validation failed for event "${event}".` - ); - } - } - } - } - } - let args = rawArgs; - const isModelListener = event.startsWith("update:"); - const modelArg = isModelListener && event.slice(7); - if (modelArg && modelArg in props) { - const modifiersKey = `${modelArg === "modelValue" ? "model" : modelArg}Modifiers`; - const { number, trim } = props[modifiersKey] || EMPTY_OBJ; - if (trim) { - args = rawArgs.map((a) => isString(a) ? a.trim() : a); - } - if (number) { - args = rawArgs.map(looseToNumber); - } - } - { - devtoolsComponentEmit(instance, event, args); - } - { - const lowerCaseEvent = event.toLowerCase(); - if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) { - warn$1( - `Event "${lowerCaseEvent}" is emitted in component ${formatComponentName( - instance, - instance.type - )} but the handler is registered for "${event}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${hyphenate( - event - )}" instead of "${event}".` - ); - } - } - let handlerName; - let handler = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249) - props[handlerName = toHandlerKey(camelize(event))]; - if (!handler && isModelListener) { - handler = props[handlerName = toHandlerKey(hyphenate(event))]; - } - if (handler) { - callWithAsyncErrorHandling( - handler, - instance, - 6, - args - ); - } - const onceHandler = props[handlerName + `Once`]; - if (onceHandler) { - if (!instance.emitted) { - instance.emitted = {}; - } else if (instance.emitted[handlerName]) { - return; - } - instance.emitted[handlerName] = true; - callWithAsyncErrorHandling( - onceHandler, - instance, - 6, - args - ); - } - } - function normalizeEmitsOptions(comp, appContext, asMixin = false) { - const cache = appContext.emitsCache; - const cached = cache.get(comp); - if (cached !== void 0) { - return cached; - } - const raw = comp.emits; - let normalized = {}; - let hasExtends = false; - if (!isFunction(comp)) { - const extendEmits = (raw2) => { - const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true); - if (normalizedFromExtend) { - hasExtends = true; - extend(normalized, normalizedFromExtend); - } - }; - if (!asMixin && appContext.mixins.length) { - appContext.mixins.forEach(extendEmits); - } - if (comp.extends) { - extendEmits(comp.extends); - } - if (comp.mixins) { - comp.mixins.forEach(extendEmits); - } - } - if (!raw && !hasExtends) { - if (isObject(comp)) { - cache.set(comp, null); - } - return null; - } - if (isArray(raw)) { - raw.forEach((key) => normalized[key] = null); - } else { - extend(normalized, raw); - } - if (isObject(comp)) { - cache.set(comp, normalized); - } - return normalized; - } - function isEmitListener(options, key) { - if (!options || !isOn(key)) { - return false; - } - key = key.slice(2).replace(/Once$/, ""); - return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key); - } - let currentRenderingInstance = null; let currentScopeId = null; function setCurrentRenderingInstance(instance) { @@ -2421,941 +2301,802 @@ getter: `, this.getter); return renderFnWithContext; } - let accessedAttrs = false; - function markAttrsAccessed() { - accessedAttrs = true; + function validateDirectiveName(name) { + if (isBuiltInDirective(name)) { + warn$1("Do not use built-in directive ids as custom directive id: " + name); + } } - function renderComponentRoot(instance) { - const { - type: Component, - vnode, - proxy, - withProxy, - propsOptions: [propsOptions], - slots, - attrs, - emit, - render, - renderCache, - props, - data, - setupState, - ctx, - inheritAttrs - } = instance; - const prev = setCurrentRenderingInstance(instance); - let result; - let fallthroughAttrs; - { - accessedAttrs = false; + function withDirectives(vnode, directives) { + if (currentRenderingInstance === null) { + warn$1(`withDirectives can only be used inside render functions.`); + return vnode; } - try { - if (vnode.shapeFlag & 4) { - const proxyToUse = withProxy || proxy; - const thisProxy = setupState.__isScriptSetup ? new Proxy(proxyToUse, { - get(target, key, receiver) { - warn$1( - `Property '${String( - key - )}' was accessed via 'this'. Avoid using 'this' in templates.` - ); - return Reflect.get(target, key, receiver); - } - }) : proxyToUse; - result = normalizeVNode( - render.call( - thisProxy, - proxyToUse, - renderCache, - true ? shallowReadonly(props) : props, - setupState, - data, - ctx - ) - ); - fallthroughAttrs = attrs; - } else { - const render2 = Component; - if (attrs === props) { - markAttrsAccessed(); + const instance = getComponentPublicInstance(currentRenderingInstance); + const bindings = vnode.dirs || (vnode.dirs = []); + for (let i = 0; i < directives.length; i++) { + let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i]; + if (dir) { + if (isFunction(dir)) { + dir = { + mounted: dir, + updated: dir + }; } - result = normalizeVNode( - render2.length > 1 ? render2( - true ? shallowReadonly(props) : props, - true ? { - get attrs() { - markAttrsAccessed(); - return shallowReadonly(attrs); - }, - slots, - emit - } : { attrs, slots, emit } - ) : render2( - true ? shallowReadonly(props) : props, - null - ) - ); - fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs); + if (dir.deep) { + traverse(value); + } + bindings.push({ + dir, + instance, + value, + oldValue: void 0, + arg, + modifiers + }); } - } catch (err) { - blockStack.length = 0; - handleError(err, instance, 1); - result = createVNode(Comment); - } - let root = result; - let setRoot = void 0; - if (result.patchFlag > 0 && result.patchFlag & 2048) { - [root, setRoot] = getChildRoot(result); } - if (fallthroughAttrs && inheritAttrs !== false) { - const keys = Object.keys(fallthroughAttrs); - const { shapeFlag } = root; - if (keys.length) { - if (shapeFlag & (1 | 6)) { - if (propsOptions && keys.some(isModelListener)) { - fallthroughAttrs = filterModelListeners( - fallthroughAttrs, - propsOptions - ); - } - root = cloneVNode(root, fallthroughAttrs, false, true); - } else if (!accessedAttrs && root.type !== Comment) { - const allAttrs = Object.keys(attrs); - const eventAttrs = []; - const extraAttrs = []; - for (let i = 0, l = allAttrs.length; i < l; i++) { - const key = allAttrs[i]; - if (isOn(key)) { - if (!isModelListener(key)) { - eventAttrs.push(key[2].toLowerCase() + key.slice(3)); - } - } else { - extraAttrs.push(key); - } - } - if (extraAttrs.length) { - warn$1( - `Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.` - ); - } - if (eventAttrs.length) { - warn$1( - `Extraneous non-emits event listeners (${eventAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.` - ); - } - } - } - } - if (vnode.dirs) { - if (!isElementRoot(root)) { - warn$1( - `Runtime directive used on component with non-element root node. The directives will not function as intended.` - ); + return vnode; + } + function invokeDirectiveHook(vnode, prevVNode, instance, name) { + const bindings = vnode.dirs; + const oldBindings = prevVNode && prevVNode.dirs; + for (let i = 0; i < bindings.length; i++) { + const binding = bindings[i]; + if (oldBindings) { + binding.oldValue = oldBindings[i].value; } - root = cloneVNode(root, null, false, true); - root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs; - } - if (vnode.transition) { - if (!isElementRoot(root)) { - warn$1( - `Component inside renders non-element root node that cannot be animated.` - ); + let hook = binding.dir[name]; + if (hook) { + pauseTracking(); + callWithAsyncErrorHandling(hook, instance, 8, [ + vnode.el, + binding, + vnode, + prevVNode + ]); + resetTracking(); } - root.transition = vnode.transition; } - if (setRoot) { - setRoot(root); - } else { - result = root; - } - setCurrentRenderingInstance(prev); - return result; } - const getChildRoot = (vnode) => { - const rawChildren = vnode.children; - const dynamicChildren = vnode.dynamicChildren; - const childRoot = filterSingleRoot(rawChildren, false); - if (!childRoot) { - return [vnode, void 0]; - } else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) { - return getChildRoot(childRoot); - } - const index = rawChildren.indexOf(childRoot); - const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1; - const setRoot = (updatedRoot) => { - rawChildren[index] = updatedRoot; - if (dynamicChildren) { - if (dynamicIndex > -1) { - dynamicChildren[dynamicIndex] = updatedRoot; - } else if (updatedRoot.patchFlag > 0) { - vnode.dynamicChildren = [...dynamicChildren, updatedRoot]; - } - } + + const leaveCbKey = Symbol("_leaveCb"); + const enterCbKey$1 = Symbol("_enterCb"); + function useTransitionState() { + const state = { + isMounted: false, + isLeaving: false, + isUnmounting: false, + leavingVNodes: /* @__PURE__ */ new Map() }; - return [normalizeVNode(childRoot), setRoot]; - }; - function filterSingleRoot(children, recurse = true) { - let singleRoot; - for (let i = 0; i < children.length; i++) { - const child = children[i]; - if (isVNode(child)) { - if (child.type !== Comment || child.children === "v-if") { - if (singleRoot) { - return; - } else { - singleRoot = child; - if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) { - return filterSingleRoot(singleRoot.children); - } - } - } - } else { - return; - } - } - return singleRoot; + onMounted(() => { + state.isMounted = true; + }); + onBeforeUnmount(() => { + state.isUnmounting = true; + }); + return state; } - const getFunctionalFallthrough = (attrs) => { - let res; - for (const key in attrs) { - if (key === "class" || key === "style" || isOn(key)) { - (res || (res = {}))[key] = attrs[key]; - } - } - return res; - }; - const filterModelListeners = (attrs, props) => { - const res = {}; - for (const key in attrs) { - if (!isModelListener(key) || !(key.slice(9) in props)) { - res[key] = attrs[key]; - } - } - return res; + const TransitionHookValidator = [Function, Array]; + const BaseTransitionPropsValidators = { + mode: String, + appear: Boolean, + persisted: Boolean, + // enter + onBeforeEnter: TransitionHookValidator, + onEnter: TransitionHookValidator, + onAfterEnter: TransitionHookValidator, + onEnterCancelled: TransitionHookValidator, + // leave + onBeforeLeave: TransitionHookValidator, + onLeave: TransitionHookValidator, + onAfterLeave: TransitionHookValidator, + onLeaveCancelled: TransitionHookValidator, + // appear + onBeforeAppear: TransitionHookValidator, + onAppear: TransitionHookValidator, + onAfterAppear: TransitionHookValidator, + onAppearCancelled: TransitionHookValidator }; - const isElementRoot = (vnode) => { - return vnode.shapeFlag & (6 | 1) || vnode.type === Comment; + const recursiveGetSubtree = (instance) => { + const subTree = instance.subTree; + return subTree.component ? recursiveGetSubtree(subTree.component) : subTree; }; - function shouldUpdateComponent(prevVNode, nextVNode, optimized) { - const { props: prevProps, children: prevChildren, component } = prevVNode; - const { props: nextProps, children: nextChildren, patchFlag } = nextVNode; - const emits = component.emitsOptions; - if ((prevChildren || nextChildren) && isHmrUpdating) { - return true; - } - if (nextVNode.dirs || nextVNode.transition) { - return true; - } - if (optimized && patchFlag >= 0) { - if (patchFlag & 1024) { - return true; - } - if (patchFlag & 16) { - if (!prevProps) { - return !!nextProps; + const BaseTransitionImpl = { + name: `BaseTransition`, + props: BaseTransitionPropsValidators, + setup(props, { slots }) { + const instance = getCurrentInstance(); + const state = useTransitionState(); + return () => { + const children = slots.default && getTransitionRawChildren(slots.default(), true); + if (!children || !children.length) { + return; } - return hasPropsChanged(prevProps, nextProps, emits); - } else if (patchFlag & 8) { - const dynamicProps = nextVNode.dynamicProps; - for (let i = 0; i < dynamicProps.length; i++) { - const key = dynamicProps[i]; - if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) { - return true; + let child = children[0]; + if (children.length > 1) { + let hasFound = false; + for (const c of children) { + if (c.type !== Comment) { + if (hasFound) { + warn$1( + " can only be used on a single element or component. Use for lists." + ); + break; + } + child = c; + hasFound = true; + } } } - } - } else { - if (prevChildren || nextChildren) { - if (!nextChildren || !nextChildren.$stable) { - return true; + const rawProps = toRaw(props); + const { mode } = rawProps; + if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") { + warn$1(`invalid mode: ${mode}`); } - } - if (prevProps === nextProps) { - return false; - } - if (!prevProps) { - return !!nextProps; - } - if (!nextProps) { - return true; - } - return hasPropsChanged(prevProps, nextProps, emits); - } - return false; - } - function hasPropsChanged(prevProps, nextProps, emitsOptions) { - const nextKeys = Object.keys(nextProps); - if (nextKeys.length !== Object.keys(prevProps).length) { - return true; - } - for (let i = 0; i < nextKeys.length; i++) { - const key = nextKeys[i]; - if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) { - return true; - } - } - return false; - } - function updateHOCHostEl({ vnode, parent }, el) { - while (parent) { - const root = parent.subTree; - if (root.suspense && root.suspense.activeBranch === vnode) { - root.el = vnode.el; - } - if (root === vnode) { - (vnode = parent.vnode).el = el; - parent = parent.parent; - } else { - break; - } - } - } - - const COMPONENTS = "components"; - const DIRECTIVES = "directives"; - function resolveComponent(name, maybeSelfReference) { - return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name; - } - const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc"); - function resolveDynamicComponent(component) { - if (isString(component)) { - return resolveAsset(COMPONENTS, component, false) || component; - } else { - return component || NULL_DYNAMIC_COMPONENT; - } - } - function resolveDirective(name) { - return resolveAsset(DIRECTIVES, name); - } - function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) { - const instance = currentRenderingInstance || currentInstance; - if (instance) { - const Component = instance.type; - if (type === COMPONENTS) { - const selfName = getComponentName( - Component, - false - ); - if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) { - return Component; + if (state.isLeaving) { + return emptyPlaceholder(child); } - } - const res = ( - // local registration - // check instance[type] first which is resolved for options API - resolve(instance[type] || Component[type], name) || // global registration - resolve(instance.appContext[type], name) - ); - if (!res && maybeSelfReference) { - return Component; - } - if (warnMissing && !res) { - const extra = type === COMPONENTS ? ` -If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``; - warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`); - } - return res; - } else { - warn$1( - `resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().` - ); - } - } - function resolve(registry, name) { - return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]); - } - - const isSuspense = (type) => type.__isSuspense; - let suspenseId = 0; - const SuspenseImpl = { - name: "Suspense", - // In order to make Suspense tree-shakable, we need to avoid importing it - // directly in the renderer. The renderer checks for the __isSuspense flag - // on a vnode's type and calls the `process` method, passing in renderer - // internals. - __isSuspense: true, - process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) { - if (n1 == null) { - mountSuspense( - n2, - container, - anchor, - parentComponent, - parentSuspense, - namespace, - slotScopeIds, - optimized, - rendererInternals - ); - } else { - if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback) { - n2.suspense = n1.suspense; - n2.suspense.vnode = n2; - n2.el = n1.el; - return; + const innerChild = getKeepAliveChild(child); + if (!innerChild) { + return emptyPlaceholder(child); } - patchSuspense( - n1, - n2, - container, - anchor, - parentComponent, - namespace, - slotScopeIds, - optimized, - rendererInternals + let enterHooks = resolveTransitionHooks( + innerChild, + rawProps, + state, + instance, + // #11061, ensure enterHooks is fresh after clone + (hooks) => enterHooks = hooks ); - } - }, - hydrate: hydrateSuspense, - normalize: normalizeSuspenseChildren + setTransitionHooks(innerChild, enterHooks); + const oldChild = instance.subTree; + const oldInnerChild = oldChild && getKeepAliveChild(oldChild); + if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) { + const leavingHooks = resolveTransitionHooks( + oldInnerChild, + rawProps, + state, + instance + ); + setTransitionHooks(oldInnerChild, leavingHooks); + if (mode === "out-in" && innerChild.type !== Comment) { + state.isLeaving = true; + leavingHooks.afterLeave = () => { + state.isLeaving = false; + if (instance.update.active !== false) { + instance.effect.dirty = true; + instance.update(); + } + }; + return emptyPlaceholder(child); + } else if (mode === "in-out" && innerChild.type !== Comment) { + leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => { + const leavingVNodesCache = getLeavingNodesForType( + state, + oldInnerChild + ); + leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild; + el[leaveCbKey] = () => { + earlyRemove(); + el[leaveCbKey] = void 0; + delete enterHooks.delayedLeave; + }; + enterHooks.delayedLeave = delayedLeave; + }; + } + } + return child; + }; + } }; - const Suspense = SuspenseImpl ; - function triggerEvent(vnode, name) { - const eventListener = vnode.props && vnode.props[name]; - if (isFunction(eventListener)) { - eventListener(); + const BaseTransition = BaseTransitionImpl; + function getLeavingNodesForType(state, vnode) { + const { leavingVNodes } = state; + let leavingVNodesCache = leavingVNodes.get(vnode.type); + if (!leavingVNodesCache) { + leavingVNodesCache = /* @__PURE__ */ Object.create(null); + leavingVNodes.set(vnode.type, leavingVNodesCache); } + return leavingVNodesCache; } - function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) { + function resolveTransitionHooks(vnode, props, state, instance, postClone) { const { - p: patch, - o: { createElement } - } = rendererInternals; - const hiddenContainer = createElement("div"); - const suspense = vnode.suspense = createSuspenseBoundary( - vnode, - parentSuspense, - parentComponent, - container, - hiddenContainer, - anchor, - namespace, - slotScopeIds, - optimized, - rendererInternals - ); - patch( - null, - suspense.pendingBranch = vnode.ssContent, - hiddenContainer, - null, - parentComponent, - suspense, - namespace, - slotScopeIds - ); - if (suspense.deps > 0) { - triggerEvent(vnode, "onPending"); - triggerEvent(vnode, "onFallback"); - patch( - null, - vnode.ssFallback, - container, - anchor, - parentComponent, - null, - // fallback tree will not have suspense context - namespace, - slotScopeIds + appear, + mode, + persisted = false, + onBeforeEnter, + onEnter, + onAfterEnter, + onEnterCancelled, + onBeforeLeave, + onLeave, + onAfterLeave, + onLeaveCancelled, + onBeforeAppear, + onAppear, + onAfterAppear, + onAppearCancelled + } = props; + const key = String(vnode.key); + const leavingVNodesCache = getLeavingNodesForType(state, vnode); + const callHook = (hook, args) => { + hook && callWithAsyncErrorHandling( + hook, + instance, + 9, + args ); - setActiveBranch(suspense, vnode.ssFallback); - } else { - suspense.resolve(false, true); - } - } - function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) { - const suspense = n2.suspense = n1.suspense; - suspense.vnode = n2; - n2.el = n1.el; - const newBranch = n2.ssContent; - const newFallback = n2.ssFallback; - const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense; - if (pendingBranch) { - suspense.pendingBranch = newBranch; - if (isSameVNodeType(newBranch, pendingBranch)) { - patch( - pendingBranch, - newBranch, - suspense.hiddenContainer, - null, - parentComponent, - suspense, - namespace, - slotScopeIds, - optimized - ); - if (suspense.deps <= 0) { - suspense.resolve(); - } else if (isInFallback) { - if (!isHydrating) { - patch( - activeBranch, - newFallback, - container, - anchor, - parentComponent, - null, - // fallback tree will not have suspense context - namespace, - slotScopeIds, - optimized - ); - setActiveBranch(suspense, newFallback); + }; + const callAsyncHook = (hook, args) => { + const done = args[1]; + callHook(hook, args); + if (isArray(hook)) { + if (hook.every((hook2) => hook2.length <= 1)) done(); + } else if (hook.length <= 1) { + done(); + } + }; + const hooks = { + mode, + persisted, + beforeEnter(el) { + let hook = onBeforeEnter; + if (!state.isMounted) { + if (appear) { + hook = onBeforeAppear || onBeforeEnter; + } else { + return; } } - } else { - suspense.pendingId = suspenseId++; - if (isHydrating) { - suspense.isHydrating = false; - suspense.activeBranch = pendingBranch; - } else { - unmount(pendingBranch, parentComponent, suspense); - } - suspense.deps = 0; - suspense.effects.length = 0; - suspense.hiddenContainer = createElement("div"); - if (isInFallback) { - patch( - null, - newBranch, - suspense.hiddenContainer, - null, - parentComponent, - suspense, - namespace, - slotScopeIds, - optimized + if (el[leaveCbKey]) { + el[leaveCbKey]( + true + /* cancelled */ ); - if (suspense.deps <= 0) { - suspense.resolve(); + } + const leavingVNode = leavingVNodesCache[key]; + if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) { + leavingVNode.el[leaveCbKey](); + } + callHook(hook, [el]); + }, + enter(el) { + let hook = onEnter; + let afterHook = onAfterEnter; + let cancelHook = onEnterCancelled; + if (!state.isMounted) { + if (appear) { + hook = onAppear || onEnter; + afterHook = onAfterAppear || onAfterEnter; + cancelHook = onAppearCancelled || onEnterCancelled; } else { - patch( - activeBranch, - newFallback, - container, - anchor, - parentComponent, - null, - // fallback tree will not have suspense context - namespace, - slotScopeIds, - optimized - ); - setActiveBranch(suspense, newFallback); + return; } - } else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { - patch( - activeBranch, - newBranch, - container, - anchor, - parentComponent, - suspense, - namespace, - slotScopeIds, - optimized - ); - suspense.resolve(true); + } + let called = false; + const done = el[enterCbKey$1] = (cancelled) => { + if (called) return; + called = true; + if (cancelled) { + callHook(cancelHook, [el]); + } else { + callHook(afterHook, [el]); + } + if (hooks.delayedLeave) { + hooks.delayedLeave(); + } + el[enterCbKey$1] = void 0; + }; + if (hook) { + callAsyncHook(hook, [el, done]); } else { - patch( - null, - newBranch, - suspense.hiddenContainer, - null, - parentComponent, - suspense, - namespace, - slotScopeIds, - optimized + done(); + } + }, + leave(el, remove) { + const key2 = String(vnode.key); + if (el[enterCbKey$1]) { + el[enterCbKey$1]( + true + /* cancelled */ ); - if (suspense.deps <= 0) { - suspense.resolve(); + } + if (state.isUnmounting) { + return remove(); + } + callHook(onBeforeLeave, [el]); + let called = false; + const done = el[leaveCbKey] = (cancelled) => { + if (called) return; + called = true; + remove(); + if (cancelled) { + callHook(onLeaveCancelled, [el]); + } else { + callHook(onAfterLeave, [el]); } + el[leaveCbKey] = void 0; + if (leavingVNodesCache[key2] === vnode) { + delete leavingVNodesCache[key2]; + } + }; + leavingVNodesCache[key2] = vnode; + if (onLeave) { + callAsyncHook(onLeave, [el, done]); + } else { + done(); } + }, + clone(vnode2) { + const hooks2 = resolveTransitionHooks( + vnode2, + props, + state, + instance, + postClone + ); + if (postClone) postClone(hooks2); + return hooks2; + } + }; + return hooks; + } + function emptyPlaceholder(vnode) { + if (isKeepAlive(vnode)) { + vnode = cloneVNode(vnode); + vnode.children = null; + return vnode; + } + } + function getKeepAliveChild(vnode) { + if (!isKeepAlive(vnode)) { + return vnode; + } + if (vnode.component) { + return vnode.component.subTree; + } + const { shapeFlag, children } = vnode; + if (children) { + if (shapeFlag & 16) { + return children[0]; + } + if (shapeFlag & 32 && isFunction(children.default)) { + return children.default(); } + } + } + function setTransitionHooks(vnode, hooks) { + if (vnode.shapeFlag & 6 && vnode.component) { + setTransitionHooks(vnode.component.subTree, hooks); + } else if (vnode.shapeFlag & 128) { + vnode.ssContent.transition = hooks.clone(vnode.ssContent); + vnode.ssFallback.transition = hooks.clone(vnode.ssFallback); } else { - if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { - patch( - activeBranch, - newBranch, - container, - anchor, - parentComponent, - suspense, - namespace, - slotScopeIds, - optimized + vnode.transition = hooks; + } + } + function getTransitionRawChildren(children, keepComment = false, parentKey) { + let ret = []; + let keyedFragmentCount = 0; + for (let i = 0; i < children.length; i++) { + let child = children[i]; + const key = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i); + if (child.type === Fragment) { + if (child.patchFlag & 128) keyedFragmentCount++; + ret = ret.concat( + getTransitionRawChildren(child.children, keepComment, key) ); - setActiveBranch(suspense, newBranch); - } else { - triggerEvent(n2, "onPending"); - suspense.pendingBranch = newBranch; - if (newBranch.shapeFlag & 512) { - suspense.pendingId = newBranch.component.suspenseId; + } else if (keepComment || child.type !== Comment) { + ret.push(key != null ? cloneVNode(child, { key }) : child); + } + } + if (keyedFragmentCount > 1) { + for (let i = 0; i < ret.length; i++) { + ret[i].patchFlag = -2; + } + } + return ret; + } + + /*! #__NO_SIDE_EFFECTS__ */ + // @__NO_SIDE_EFFECTS__ + function defineComponent(options, extraOptions) { + return isFunction(options) ? ( + // #8326: extend call and options.name access are considered side-effects + // by Rollup, so we have to wrap it in a pure-annotated IIFE. + /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))() + ) : options; + } + + const isAsyncWrapper = (i) => !!i.type.__asyncLoader; + /*! #__NO_SIDE_EFFECTS__ */ + // @__NO_SIDE_EFFECTS__ + function defineAsyncComponent(source) { + if (isFunction(source)) { + source = { loader: source }; + } + const { + loader, + loadingComponent, + errorComponent, + delay = 200, + timeout, + // undefined = never times out + suspensible = true, + onError: userOnError + } = source; + let pendingRequest = null; + let resolvedComp; + let retries = 0; + const retry = () => { + retries++; + pendingRequest = null; + return load(); + }; + const load = () => { + let thisRequest; + return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => { + err = err instanceof Error ? err : new Error(String(err)); + if (userOnError) { + return new Promise((resolve, reject) => { + const userRetry = () => resolve(retry()); + const userFail = () => reject(err); + userOnError(err, userRetry, userFail, retries + 1); + }); } else { - suspense.pendingId = suspenseId++; + throw err; + } + }).then((comp) => { + if (thisRequest !== pendingRequest && pendingRequest) { + return pendingRequest; + } + if (!comp) { + warn$1( + `Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.` + ); + } + if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) { + comp = comp.default; + } + if (comp && !isObject(comp) && !isFunction(comp)) { + throw new Error(`Invalid async component load result: ${comp}`); + } + resolvedComp = comp; + return comp; + })); + }; + return defineComponent({ + name: "AsyncComponentWrapper", + __asyncLoader: load, + get __asyncResolved() { + return resolvedComp; + }, + setup() { + const instance = currentInstance; + if (resolvedComp) { + return () => createInnerComp(resolvedComp, instance); + } + const onError = (err) => { + pendingRequest = null; + handleError( + err, + instance, + 13, + !errorComponent + ); + }; + if (suspensible && instance.suspense || false) { + return load().then((comp) => { + return () => createInnerComp(comp, instance); + }).catch((err) => { + onError(err); + return () => errorComponent ? createVNode(errorComponent, { + error: err + }) : null; + }); + } + const loaded = ref(false); + const error = ref(); + const delayed = ref(!!delay); + if (delay) { + setTimeout(() => { + delayed.value = false; + }, delay); + } + if (timeout != null) { + setTimeout(() => { + if (!loaded.value && !error.value) { + const err = new Error( + `Async component timed out after ${timeout}ms.` + ); + onError(err); + error.value = err; + } + }, timeout); + } + load().then(() => { + loaded.value = true; + if (instance.parent && isKeepAlive(instance.parent.vnode)) { + instance.parent.effect.dirty = true; + queueJob(instance.parent.update); + } + }).catch((err) => { + onError(err); + error.value = err; + }); + return () => { + if (loaded.value && resolvedComp) { + return createInnerComp(resolvedComp, instance); + } else if (error.value && errorComponent) { + return createVNode(errorComponent, { + error: error.value + }); + } else if (loadingComponent && !delayed.value) { + return createVNode(loadingComponent); + } + }; + } + }); + } + function createInnerComp(comp, parent) { + const { ref: ref2, props, children, ce } = parent.vnode; + const vnode = createVNode(comp, props, children); + vnode.ref = ref2; + vnode.ce = ce; + delete parent.vnode.ce; + return vnode; + } + + const isKeepAlive = (vnode) => vnode.type.__isKeepAlive; + const KeepAliveImpl = { + name: `KeepAlive`, + // Marker for special handling inside the renderer. We are not using a === + // check directly on KeepAlive in the renderer, because importing it directly + // would prevent it from being tree-shaken. + __isKeepAlive: true, + props: { + include: [String, RegExp, Array], + exclude: [String, RegExp, Array], + max: [String, Number] + }, + setup(props, { slots }) { + const instance = getCurrentInstance(); + const sharedContext = instance.ctx; + const cache = /* @__PURE__ */ new Map(); + const keys = /* @__PURE__ */ new Set(); + let current = null; + { + instance.__v_cache = cache; + } + const parentSuspense = instance.suspense; + const { + renderer: { + p: patch, + m: move, + um: _unmount, + o: { createElement } } + } = sharedContext; + const storageContainer = createElement("div"); + sharedContext.activate = (vnode, container, anchor, namespace, optimized) => { + const instance2 = vnode.component; + move(vnode, container, anchor, 0, parentSuspense); patch( - null, - newBranch, - suspense.hiddenContainer, - null, - parentComponent, - suspense, + instance2.vnode, + vnode, + container, + anchor, + instance2, + parentSuspense, namespace, - slotScopeIds, + vnode.slotScopeIds, optimized ); - if (suspense.deps <= 0) { - suspense.resolve(); - } else { - const { timeout, pendingId } = suspense; - if (timeout > 0) { - setTimeout(() => { - if (suspense.pendingId === pendingId) { - suspense.fallback(newFallback); - } - }, timeout); - } else if (timeout === 0) { - suspense.fallback(newFallback); - } - } - } - } - } - let hasWarned = false; - function createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, namespace, slotScopeIds, optimized, rendererInternals, isHydrating = false) { - if (!hasWarned) { - hasWarned = true; - console[console.info ? "info" : "log"]( - ` is an experimental feature and its API will likely change.` - ); - } - const { - p: patch, - m: move, - um: unmount, - n: next, - o: { parentNode, remove } - } = rendererInternals; - let parentSuspenseId; - const isSuspensible = isVNodeSuspensible(vnode); - if (isSuspensible) { - if (parentSuspense && parentSuspense.pendingBranch) { - parentSuspenseId = parentSuspense.pendingId; - parentSuspense.deps++; - } - } - const timeout = vnode.props ? toNumber(vnode.props.timeout) : void 0; - { - assertNumber(timeout, `Suspense timeout`); - } - const initialAnchor = anchor; - const suspense = { - vnode, - parent: parentSuspense, - parentComponent, - namespace, - container, - hiddenContainer, - deps: 0, - pendingId: suspenseId++, - timeout: typeof timeout === "number" ? timeout : -1, - activeBranch: null, - pendingBranch: null, - isInFallback: !isHydrating, - isHydrating, - isUnmounted: false, - effects: [], - resolve(resume = false, sync = false) { - { - if (!resume && !suspense.pendingBranch) { - throw new Error( - `suspense.resolve() is called without a pending branch.` - ); - } - if (suspense.isUnmounted) { - throw new Error( - `suspense.resolve() is called on an already unmounted suspense boundary.` - ); - } - } - const { - vnode: vnode2, - activeBranch, - pendingBranch, - pendingId, - effects, - parentComponent: parentComponent2, - container: container2 - } = suspense; - let delayEnter = false; - if (suspense.isHydrating) { - suspense.isHydrating = false; - } else if (!resume) { - delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in"; - if (delayEnter) { - activeBranch.transition.afterLeave = () => { - if (pendingId === suspense.pendingId) { - move( - pendingBranch, - container2, - anchor === initialAnchor ? next(activeBranch) : anchor, - 0 - ); - queuePostFlushCb(effects); - } - }; - } - if (activeBranch) { - if (parentNode(activeBranch.el) !== suspense.hiddenContainer) { - anchor = next(activeBranch); - } - unmount(activeBranch, parentComponent2, suspense, true); + queuePostRenderEffect(() => { + instance2.isDeactivated = false; + if (instance2.a) { + invokeArrayFns(instance2.a); } - if (!delayEnter) { - move(pendingBranch, container2, anchor, 0); + const vnodeHook = vnode.props && vnode.props.onVnodeMounted; + if (vnodeHook) { + invokeVNodeHook(vnodeHook, instance2.parent, vnode); } + }, parentSuspense); + { + devtoolsComponentAdded(instance2); } - setActiveBranch(suspense, pendingBranch); - suspense.pendingBranch = null; - suspense.isInFallback = false; - let parent = suspense.parent; - let hasUnresolvedAncestor = false; - while (parent) { - if (parent.pendingBranch) { - parent.effects.push(...effects); - hasUnresolvedAncestor = true; - break; + }; + sharedContext.deactivate = (vnode) => { + const instance2 = vnode.component; + invalidateMount(instance2.m); + invalidateMount(instance2.a); + move(vnode, storageContainer, null, 1, parentSuspense); + queuePostRenderEffect(() => { + if (instance2.da) { + invokeArrayFns(instance2.da); } - parent = parent.parent; - } - if (!hasUnresolvedAncestor && !delayEnter) { - queuePostFlushCb(effects); - } - suspense.effects = []; - if (isSuspensible) { - if (parentSuspense && parentSuspense.pendingBranch && parentSuspenseId === parentSuspense.pendingId) { - parentSuspense.deps--; - if (parentSuspense.deps === 0 && !sync) { - parentSuspense.resolve(); - } + const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted; + if (vnodeHook) { + invokeVNodeHook(vnodeHook, instance2.parent, vnode); } + instance2.isDeactivated = true; + }, parentSuspense); + { + devtoolsComponentAdded(instance2); } - triggerEvent(vnode2, "onResolve"); - }, - fallback(fallbackVNode) { - if (!suspense.pendingBranch) { - return; - } - const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, namespace: namespace2 } = suspense; - triggerEvent(vnode2, "onFallback"); - const anchor2 = next(activeBranch); - const mountFallback = () => { - if (!suspense.isInFallback) { - return; + }; + function unmount(vnode) { + resetShapeFlag(vnode); + _unmount(vnode, instance, parentSuspense, true); + } + function pruneCache(filter) { + cache.forEach((vnode, key) => { + const name = getComponentName(vnode.type); + if (name && (!filter || !filter(name))) { + pruneCacheEntry(key); } - patch( - null, - fallbackVNode, - container2, - anchor2, - parentComponent2, - null, - // fallback tree will not have suspense context - namespace2, - slotScopeIds, - optimized - ); - setActiveBranch(suspense, fallbackVNode); - }; - const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === "out-in"; - if (delayEnter) { - activeBranch.transition.afterLeave = mountFallback; - } - suspense.isInFallback = true; - unmount( - activeBranch, - parentComponent2, - null, - // no suspense so unmount hooks fire now - true - // shouldRemove - ); - if (!delayEnter) { - mountFallback(); + }); + } + function pruneCacheEntry(key) { + const cached = cache.get(key); + if (!current || !isSameVNodeType(cached, current)) { + unmount(cached); + } else if (current) { + resetShapeFlag(current); } - }, - move(container2, anchor2, type) { - suspense.activeBranch && move(suspense.activeBranch, container2, anchor2, type); - suspense.container = container2; - }, - next() { - return suspense.activeBranch && next(suspense.activeBranch); - }, - registerDep(instance, setupRenderEffect, optimized2) { - const isInPendingSuspense = !!suspense.pendingBranch; - if (isInPendingSuspense) { - suspense.deps++; + cache.delete(key); + keys.delete(key); + } + watch( + () => [props.include, props.exclude], + ([include, exclude]) => { + include && pruneCache((name) => matches(include, name)); + exclude && pruneCache((name) => !matches(exclude, name)); + }, + // prune post-render after `current` has been updated + { flush: "post", deep: true } + ); + let pendingCacheKey = null; + const cacheSubtree = () => { + if (pendingCacheKey != null) { + if (isSuspense(instance.subTree.type)) { + queuePostRenderEffect(() => { + cache.set(pendingCacheKey, getInnerChild(instance.subTree)); + }, instance.subTree.suspense); + } else { + cache.set(pendingCacheKey, getInnerChild(instance.subTree)); + } } - const hydratedEl = instance.vnode.el; - instance.asyncDep.catch((err) => { - handleError(err, instance, 0); - }).then((asyncSetupResult) => { - if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) { + }; + onMounted(cacheSubtree); + onUpdated(cacheSubtree); + onBeforeUnmount(() => { + cache.forEach((cached) => { + const { subTree, suspense } = instance; + const vnode = getInnerChild(subTree); + if (cached.type === vnode.type && cached.key === vnode.key) { + resetShapeFlag(vnode); + const da = vnode.component.da; + da && queuePostRenderEffect(da, suspense); return; } - instance.asyncResolved = true; - const { vnode: vnode2 } = instance; + unmount(cached); + }); + }); + return () => { + pendingCacheKey = null; + if (!slots.default) { + return null; + } + const children = slots.default(); + const rawVNode = children[0]; + if (children.length > 1) { { - pushWarningContext(vnode2); - } - handleSetupResult(instance, asyncSetupResult, false); - if (hydratedEl) { - vnode2.el = hydratedEl; + warn$1(`KeepAlive should contain exactly one component child.`); } - const placeholder = !hydratedEl && instance.subTree.el; - setupRenderEffect( - instance, - vnode2, - // component may have been moved before resolve. - // if this is not a hydration, instance.subTree will be the comment - // placeholder. - parentNode(hydratedEl || instance.subTree.el), - // anchor will not be used if this is hydration, so only need to - // consider the comment placeholder case. - hydratedEl ? null : next(instance.subTree), - suspense, - namespace, - optimized2 - ); - if (placeholder) { - remove(placeholder); + current = null; + return children; + } else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4) && !(rawVNode.shapeFlag & 128)) { + current = null; + return rawVNode; + } + let vnode = getInnerChild(rawVNode); + const comp = vnode.type; + const name = getComponentName( + isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp + ); + const { include, exclude, max } = props; + if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) { + current = vnode; + return rawVNode; + } + const key = vnode.key == null ? comp : vnode.key; + const cachedVNode = cache.get(key); + if (vnode.el) { + vnode = cloneVNode(vnode); + if (rawVNode.shapeFlag & 128) { + rawVNode.ssContent = vnode; } - updateHOCHostEl(instance, vnode2.el); - { - popWarningContext(); + } + pendingCacheKey = key; + if (cachedVNode) { + vnode.el = cachedVNode.el; + vnode.component = cachedVNode.component; + if (vnode.transition) { + setTransitionHooks(vnode, vnode.transition); } - if (isInPendingSuspense && --suspense.deps === 0) { - suspense.resolve(); + vnode.shapeFlag |= 512; + keys.delete(key); + keys.add(key); + } else { + keys.add(key); + if (max && keys.size > parseInt(max, 10)) { + pruneCacheEntry(keys.values().next().value); } - }); - }, - unmount(parentSuspense2, doRemove) { - suspense.isUnmounted = true; - if (suspense.activeBranch) { - unmount( - suspense.activeBranch, - parentComponent, - parentSuspense2, - doRemove - ); - } - if (suspense.pendingBranch) { - unmount( - suspense.pendingBranch, - parentComponent, - parentSuspense2, - doRemove - ); } - } - }; - return suspense; - } - function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals, hydrateNode) { - const suspense = vnode.suspense = createSuspenseBoundary( - vnode, - parentSuspense, - parentComponent, - node.parentNode, - // eslint-disable-next-line no-restricted-globals - document.createElement("div"), - null, - namespace, - slotScopeIds, - optimized, - rendererInternals, - true - ); - const result = hydrateNode( - node, - suspense.pendingBranch = vnode.ssContent, - parentComponent, - suspense, - slotScopeIds, - optimized - ); - if (suspense.deps === 0) { - suspense.resolve(false, true); + vnode.shapeFlag |= 256; + current = vnode; + return isSuspense(rawVNode.type) ? rawVNode : vnode; + }; } - return result; + }; + const KeepAlive = KeepAliveImpl; + function matches(pattern, name) { + if (isArray(pattern)) { + return pattern.some((p) => matches(p, name)); + } else if (isString(pattern)) { + return pattern.split(",").includes(name); + } else if (isRegExp(pattern)) { + return pattern.test(name); + } + return false; } - function normalizeSuspenseChildren(vnode) { - const { shapeFlag, children } = vnode; - const isSlotChildren = shapeFlag & 32; - vnode.ssContent = normalizeSuspenseSlot( - isSlotChildren ? children.default : children - ); - vnode.ssFallback = isSlotChildren ? normalizeSuspenseSlot(children.fallback) : createVNode(Comment); + function onActivated(hook, target) { + registerKeepAliveHook(hook, "a", target); } - function normalizeSuspenseSlot(s) { - let block; - if (isFunction(s)) { - const trackBlock = isBlockTreeEnabled && s._c; - if (trackBlock) { - s._d = false; - openBlock(); - } - s = s(); - if (trackBlock) { - s._d = true; - block = currentBlock; - closeBlock(); - } - } - if (isArray(s)) { - const singleChild = filterSingleRoot(s); - if (!singleChild && s.filter((child) => child !== NULL_DYNAMIC_COMPONENT).length > 0) { - warn$1(` slots expect a single root node.`); - } - s = singleChild; - } - s = normalizeVNode(s); - if (block && !s.dynamicChildren) { - s.dynamicChildren = block.filter((c) => c !== s); - } - return s; + function onDeactivated(hook, target) { + registerKeepAliveHook(hook, "da", target); } - function queueEffectWithSuspense(fn, suspense) { - if (suspense && suspense.pendingBranch) { - if (isArray(fn)) { - suspense.effects.push(...fn); - } else { - suspense.effects.push(fn); + function registerKeepAliveHook(hook, type, target = currentInstance) { + const wrappedHook = hook.__wdc || (hook.__wdc = () => { + let current = target; + while (current) { + if (current.isDeactivated) { + return; + } + current = current.parent; + } + return hook(); + }); + injectHook(type, wrappedHook, target); + if (target) { + let current = target.parent; + while (current && current.parent) { + if (isKeepAlive(current.parent.vnode)) { + injectToKeepAliveRoot(wrappedHook, type, target, current); + } + current = current.parent; } - } else { - queuePostFlushCb(fn); } } - function setActiveBranch(suspense, branch) { - suspense.activeBranch = branch; - const { vnode, parentComponent } = suspense; - let el = branch.el; - while (!el && branch.component) { - branch = branch.component.subTree; - el = branch.el; - } - vnode.el = el; - if (parentComponent && parentComponent.subTree === vnode) { - parentComponent.vnode.el = el; - updateHOCHostEl(parentComponent, el); - } + function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { + const injected = injectHook( + type, + hook, + keepAliveRoot, + true + /* prepend */ + ); + onUnmounted(() => { + remove(keepAliveRoot[type], injected); + }, target); } - function isVNodeSuspensible(vnode) { - const suspensible = vnode.props && vnode.props.suspensible; - return suspensible != null && suspensible !== false; + function resetShapeFlag(vnode) { + vnode.shapeFlag &= ~256; + vnode.shapeFlag &= ~512; + } + function getInnerChild(vnode) { + return vnode.shapeFlag & 128 ? vnode.ssContent : vnode; } function injectHook(type, hook, target = currentInstance, prepend = false) { @@ -3404,63 +3145,59 @@ If this is a native custom element, make sure to exclude it from component resol injectHook("ec", hook, target); } - function validateDirectiveName(name) { - if (isBuiltInDirective(name)) { - warn$1("Do not use built-in directive ids as custom directive id: " + name); - } + const COMPONENTS = "components"; + const DIRECTIVES = "directives"; + function resolveComponent(name, maybeSelfReference) { + return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name; } - function withDirectives(vnode, directives) { - if (currentRenderingInstance === null) { - warn$1(`withDirectives can only be used inside render functions.`); - return vnode; + const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc"); + function resolveDynamicComponent(component) { + if (isString(component)) { + return resolveAsset(COMPONENTS, component, false) || component; + } else { + return component || NULL_DYNAMIC_COMPONENT; } - const instance = getComponentPublicInstance(currentRenderingInstance); - const bindings = vnode.dirs || (vnode.dirs = []); - for (let i = 0; i < directives.length; i++) { - let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i]; - if (dir) { - if (isFunction(dir)) { - dir = { - mounted: dir, - updated: dir - }; - } - if (dir.deep) { - traverse(value); + } + function resolveDirective(name) { + return resolveAsset(DIRECTIVES, name); + } + function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) { + const instance = currentRenderingInstance || currentInstance; + if (instance) { + const Component = instance.type; + if (type === COMPONENTS) { + const selfName = getComponentName( + Component, + false + ); + if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) { + return Component; } - bindings.push({ - dir, - instance, - value, - oldValue: void 0, - arg, - modifiers - }); } - } - return vnode; - } - function invokeDirectiveHook(vnode, prevVNode, instance, name) { - const bindings = vnode.dirs; - const oldBindings = prevVNode && prevVNode.dirs; - for (let i = 0; i < bindings.length; i++) { - const binding = bindings[i]; - if (oldBindings) { - binding.oldValue = oldBindings[i].value; + const res = ( + // local registration + // check instance[type] first which is resolved for options API + resolve(instance[type] || Component[type], name) || // global registration + resolve(instance.appContext[type], name) + ); + if (!res && maybeSelfReference) { + return Component; } - let hook = binding.dir[name]; - if (hook) { - pauseTracking(); - callWithAsyncErrorHandling(hook, instance, 8, [ - vnode.el, - binding, - vnode, - prevVNode - ]); - resetTracking(); + if (warnMissing && !res) { + const extra = type === COMPONENTS ? ` +If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``; + warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`); } + return res; + } else { + warn$1( + `resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().` + ); } } + function resolve(registry, name) { + return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]); + } function renderList(source, renderItem, cache, index) { let ret; @@ -3510,162 +3247,13 @@ If this is a native custom element, make sure to exclude it from component resol } } else if (slot) { slots[slot.name] = slot.key ? (...args) => { - const res = slot.fn(...args); - if (res) res.key = slot.key; - return res; - } : slot.fn; - } - } - return slots; - } - - /*! #__NO_SIDE_EFFECTS__ */ - // @__NO_SIDE_EFFECTS__ - function defineComponent(options, extraOptions) { - return isFunction(options) ? ( - // #8326: extend call and options.name access are considered side-effects - // by Rollup, so we have to wrap it in a pure-annotated IIFE. - /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))() - ) : options; - } - - const isAsyncWrapper = (i) => !!i.type.__asyncLoader; - /*! #__NO_SIDE_EFFECTS__ */ - // @__NO_SIDE_EFFECTS__ - function defineAsyncComponent(source) { - if (isFunction(source)) { - source = { loader: source }; - } - const { - loader, - loadingComponent, - errorComponent, - delay = 200, - timeout, - // undefined = never times out - suspensible = true, - onError: userOnError - } = source; - let pendingRequest = null; - let resolvedComp; - let retries = 0; - const retry = () => { - retries++; - pendingRequest = null; - return load(); - }; - const load = () => { - let thisRequest; - return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => { - err = err instanceof Error ? err : new Error(String(err)); - if (userOnError) { - return new Promise((resolve, reject) => { - const userRetry = () => resolve(retry()); - const userFail = () => reject(err); - userOnError(err, userRetry, userFail, retries + 1); - }); - } else { - throw err; - } - }).then((comp) => { - if (thisRequest !== pendingRequest && pendingRequest) { - return pendingRequest; - } - if (!comp) { - warn$1( - `Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.` - ); - } - if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) { - comp = comp.default; - } - if (comp && !isObject(comp) && !isFunction(comp)) { - throw new Error(`Invalid async component load result: ${comp}`); - } - resolvedComp = comp; - return comp; - })); - }; - return defineComponent({ - name: "AsyncComponentWrapper", - __asyncLoader: load, - get __asyncResolved() { - return resolvedComp; - }, - setup() { - const instance = currentInstance; - if (resolvedComp) { - return () => createInnerComp(resolvedComp, instance); - } - const onError = (err) => { - pendingRequest = null; - handleError( - err, - instance, - 13, - !errorComponent - ); - }; - if (suspensible && instance.suspense || false) { - return load().then((comp) => { - return () => createInnerComp(comp, instance); - }).catch((err) => { - onError(err); - return () => errorComponent ? createVNode(errorComponent, { - error: err - }) : null; - }); - } - const loaded = ref(false); - const error = ref(); - const delayed = ref(!!delay); - if (delay) { - setTimeout(() => { - delayed.value = false; - }, delay); - } - if (timeout != null) { - setTimeout(() => { - if (!loaded.value && !error.value) { - const err = new Error( - `Async component timed out after ${timeout}ms.` - ); - onError(err); - error.value = err; - } - }, timeout); - } - load().then(() => { - loaded.value = true; - if (instance.parent && isKeepAlive(instance.parent.vnode)) { - instance.parent.effect.dirty = true; - queueJob(instance.parent.update); - } - }).catch((err) => { - onError(err); - error.value = err; - }); - return () => { - if (loaded.value && resolvedComp) { - return createInnerComp(resolvedComp, instance); - } else if (error.value && errorComponent) { - return createVNode(errorComponent, { - error: error.value - }); - } else if (loadingComponent && !delayed.value) { - return createVNode(loadingComponent); - } - }; + const res = slot.fn(...args); + if (res) res.key = slot.key; + return res; + } : slot.fn; } - }); - } - function createInnerComp(comp, parent) { - const { ref: ref2, props, children, ce } = parent.vnode; - const vnode = createVNode(comp, props, children); - vnode.ref = ref2; - vnode.ce = ce; - delete parent.vnode.ce; - return vnode; + } + return slots; } function renderSlot(slots, name, props = {}, fallback, noSlotted) { @@ -3688,9 +3276,10 @@ If this is a native custom element, make sure to exclude it from component resol const rendered = createBlock( Fragment, { - key: props.key || // slot content array of a dynamic conditional slot may have a branch + key: (props.key || // slot content array of a dynamic conditional slot may have a branch // key attached in the `createSlots` helper, respect that - validSlotContent && validSlotContent.key || `_${name}` + validSlotContent && validSlotContent.key || `_${name}`) + // #7256 force differentiate fallback content from actual content + (!validSlotContent && fallback ? "_fb" : "") }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 ? 64 : -2 @@ -4920,8 +4509,9 @@ If you want to remount the same app, move your app creation logic into a factory } return value; } + const mixinPropsCache = /* @__PURE__ */ new WeakMap(); function normalizePropsOptions(comp, appContext, asMixin = false) { - const cache = appContext.propsCache; + const cache = asMixin ? mixinPropsCache : appContext.propsCache; const cached = cache.get(comp); if (cached) { return cached; @@ -4972,14 +4562,27 @@ If you want to remount the same app, move your app creation logic into a factory if (validatePropName(normalizedKey)) { const opt = raw[key]; const prop = normalized[normalizedKey] = isArray(opt) || isFunction(opt) ? { type: opt } : extend({}, opt); - if (prop) { - const booleanIndex = getTypeIndex(Boolean, prop.type); - const stringIndex = getTypeIndex(String, prop.type); - prop[0 /* shouldCast */] = booleanIndex > -1; - prop[1 /* shouldCastTrue */] = stringIndex < 0 || booleanIndex < stringIndex; - if (booleanIndex > -1 || hasOwn(prop, "default")) { - needCastKeys.push(normalizedKey); + const propType = prop.type; + let shouldCast = false; + let shouldCastTrue = true; + if (isArray(propType)) { + for (let index = 0; index < propType.length; ++index) { + const type = propType[index]; + const typeName = isFunction(type) && type.name; + if (typeName === "Boolean") { + shouldCast = true; + break; + } else if (typeName === "String") { + shouldCastTrue = false; + } } + } else { + shouldCast = isFunction(propType) && propType.name === "Boolean"; + } + prop[0 /* shouldCast */] = shouldCast; + prop[1 /* shouldCastTrue */] = shouldCastTrue; + if (shouldCast || hasOwn(prop, "default")) { + needCastKeys.push(normalizedKey); } } } @@ -5010,17 +4613,6 @@ If you want to remount the same app, move your app creation logic into a factory } return ""; } - function isSameType(a, b) { - return getType(a) === getType(b); - } - function getTypeIndex(type, expectedTypes) { - if (isArray(expectedTypes)) { - return expectedTypes.findIndex((t) => isSameType(t, type)); - } else if (isFunction(expectedTypes)) { - return isSameType(expectedTypes, type) ? 0 : -1; - } - return -1; - } function validateProps(rawProps, props, instance) { const resolvedValues = toRaw(props); const options = instance.propsOptions[0]; @@ -5154,156 +4746,463 @@ If you want to remount the same app, move your app creation logic into a factory `Non-function value encountered for slot "${key}". Prefer function slots for better performance.` ); } - const normalized = normalizeSlotValue(value); - slots[key] = () => normalized; - } - } - }; - const normalizeVNodeSlots = (instance, children) => { - if (!isKeepAlive(instance.vnode) && true) { - warn$1( - `Non-function value encountered for default slot. Prefer function slots for better performance.` - ); - } - const normalized = normalizeSlotValue(children); - instance.slots.default = () => normalized; - }; - const initSlots = (instance, children) => { - const slots = instance.slots = createInternalObject(); - if (instance.vnode.shapeFlag & 32) { - const type = children._; - if (type) { - extend(slots, children); - def(slots, "_", type, true); - } else { - normalizeObjectSlots(children, slots); - } - } else if (children) { - normalizeVNodeSlots(instance, children); - } - }; - const updateSlots = (instance, children, optimized) => { - const { vnode, slots } = instance; - let needDeletionCheck = true; - let deletionComparisonTarget = EMPTY_OBJ; - if (vnode.shapeFlag & 32) { - const type = children._; - if (type) { - if (isHmrUpdating) { - extend(slots, children); - trigger(instance, "set", "$slots"); - } else if (optimized && type === 1) { - needDeletionCheck = false; + const normalized = normalizeSlotValue(value); + slots[key] = () => normalized; + } + } + }; + const normalizeVNodeSlots = (instance, children) => { + if (!isKeepAlive(instance.vnode) && true) { + warn$1( + `Non-function value encountered for default slot. Prefer function slots for better performance.` + ); + } + const normalized = normalizeSlotValue(children); + instance.slots.default = () => normalized; + }; + const assignSlots = (slots, children, optimized) => { + for (const key in children) { + if (optimized || key !== "_") { + slots[key] = children[key]; + } + } + }; + const initSlots = (instance, children, optimized) => { + const slots = instance.slots = createInternalObject(); + if (instance.vnode.shapeFlag & 32) { + const type = children._; + if (type) { + assignSlots(slots, children, optimized); + if (optimized) { + def(slots, "_", type, true); + } + } else { + normalizeObjectSlots(children, slots); + } + } else if (children) { + normalizeVNodeSlots(instance, children); + } + }; + const updateSlots = (instance, children, optimized) => { + const { vnode, slots } = instance; + let needDeletionCheck = true; + let deletionComparisonTarget = EMPTY_OBJ; + if (vnode.shapeFlag & 32) { + const type = children._; + if (type) { + if (isHmrUpdating) { + assignSlots(slots, children, optimized); + trigger(instance, "set", "$slots"); + } else if (optimized && type === 1) { + needDeletionCheck = false; + } else { + assignSlots(slots, children, optimized); + } + } else { + needDeletionCheck = !children.$stable; + normalizeObjectSlots(children, slots); + } + deletionComparisonTarget = children; + } else if (children) { + normalizeVNodeSlots(instance, children); + deletionComparisonTarget = { default: 1 }; + } + if (needDeletionCheck) { + for (const key in slots) { + if (!isInternalKey(key) && deletionComparisonTarget[key] == null) { + delete slots[key]; + } + } + } + }; + + function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { + if (isArray(rawRef)) { + rawRef.forEach( + (r, i) => setRef( + r, + oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef), + parentSuspense, + vnode, + isUnmount + ) + ); + return; + } + if (isAsyncWrapper(vnode) && !isUnmount) { + return; + } + const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el; + const value = isUnmount ? null : refValue; + const { i: owner, r: ref } = rawRef; + if (!owner) { + warn$1( + `Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.` + ); + return; + } + const oldRef = oldRawRef && oldRawRef.r; + const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs; + const setupState = owner.setupState; + if (oldRef != null && oldRef !== ref) { + if (isString(oldRef)) { + refs[oldRef] = null; + if (hasOwn(setupState, oldRef)) { + setupState[oldRef] = null; + } + } else if (isRef(oldRef)) { + oldRef.value = null; + } + } + if (isFunction(ref)) { + callWithErrorHandling(ref, owner, 12, [value, refs]); + } else { + const _isString = isString(ref); + const _isRef = isRef(ref); + if (_isString || _isRef) { + const doSet = () => { + if (rawRef.f) { + const existing = _isString ? hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value; + if (isUnmount) { + isArray(existing) && remove(existing, refValue); + } else { + if (!isArray(existing)) { + if (_isString) { + refs[ref] = [refValue]; + if (hasOwn(setupState, ref)) { + setupState[ref] = refs[ref]; + } + } else { + ref.value = [refValue]; + if (rawRef.k) refs[rawRef.k] = ref.value; + } + } else if (!existing.includes(refValue)) { + existing.push(refValue); + } + } + } else if (_isString) { + refs[ref] = value; + if (hasOwn(setupState, ref)) { + setupState[ref] = value; + } + } else if (_isRef) { + ref.value = value; + if (rawRef.k) refs[rawRef.k] = value; + } else { + warn$1("Invalid template ref type:", ref, `(${typeof ref})`); + } + }; + if (value) { + doSet.id = -1; + queuePostRenderEffect(doSet, parentSuspense); + } else { + doSet(); + } + } else { + warn$1("Invalid template ref type:", ref, `(${typeof ref})`); + } + } + } + + const TeleportEndKey = Symbol("_vte"); + const isTeleport = (type) => type.__isTeleport; + const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === ""); + const isTargetSVG = (target) => typeof SVGElement !== "undefined" && target instanceof SVGElement; + const isTargetMathML = (target) => typeof MathMLElement === "function" && target instanceof MathMLElement; + const resolveTarget = (props, select) => { + const targetSelector = props && props.to; + if (isString(targetSelector)) { + if (!select) { + warn$1( + `Current renderer does not support string target for Teleports. (missing querySelector renderer option)` + ); + return null; + } else { + const target = select(targetSelector); + if (!target && !isTeleportDisabled(props)) { + warn$1( + `Failed to locate Teleport target with selector "${targetSelector}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.` + ); + } + return target; + } + } else { + if (!targetSelector && !isTeleportDisabled(props)) { + warn$1(`Invalid Teleport target: ${targetSelector}`); + } + return targetSelector; + } + }; + const TeleportImpl = { + name: "Teleport", + __isTeleport: true, + process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals) { + const { + mc: mountChildren, + pc: patchChildren, + pbc: patchBlockChildren, + o: { insert, querySelector, createText, createComment } + } = internals; + const disabled = isTeleportDisabled(n2.props); + let { shapeFlag, children, dynamicChildren } = n2; + if (isHmrUpdating) { + optimized = false; + dynamicChildren = null; + } + if (n1 == null) { + const placeholder = n2.el = createComment("teleport start") ; + const mainAnchor = n2.anchor = createComment("teleport end") ; + insert(placeholder, container, anchor); + insert(mainAnchor, container, anchor); + const target = n2.target = resolveTarget(n2.props, querySelector); + const targetAnchor = prepareAnchor(target, n2, createText, insert); + if (target) { + if (namespace === "svg" || isTargetSVG(target)) { + namespace = "svg"; + } else if (namespace === "mathml" || isTargetMathML(target)) { + namespace = "mathml"; + } + } else if (!disabled) { + warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`); + } + const mount = (container2, anchor2) => { + if (shapeFlag & 16) { + mountChildren( + children, + container2, + anchor2, + parentComponent, + parentSuspense, + namespace, + slotScopeIds, + optimized + ); + } + }; + if (disabled) { + mount(container, mainAnchor); + } else if (target) { + mount(target, targetAnchor); + } + } else { + n2.el = n1.el; + n2.targetStart = n1.targetStart; + const mainAnchor = n2.anchor = n1.anchor; + const target = n2.target = n1.target; + const targetAnchor = n2.targetAnchor = n1.targetAnchor; + const wasDisabled = isTeleportDisabled(n1.props); + const currentContainer = wasDisabled ? container : target; + const currentAnchor = wasDisabled ? mainAnchor : targetAnchor; + if (namespace === "svg" || isTargetSVG(target)) { + namespace = "svg"; + } else if (namespace === "mathml" || isTargetMathML(target)) { + namespace = "mathml"; + } + if (dynamicChildren) { + patchBlockChildren( + n1.dynamicChildren, + dynamicChildren, + currentContainer, + parentComponent, + parentSuspense, + namespace, + slotScopeIds + ); + traverseStaticChildren(n1, n2, true); + } else if (!optimized) { + patchChildren( + n1, + n2, + currentContainer, + currentAnchor, + parentComponent, + parentSuspense, + namespace, + slotScopeIds, + false + ); + } + if (disabled) { + if (!wasDisabled) { + moveTeleport( + n2, + container, + mainAnchor, + internals, + 1 + ); + } else { + if (n2.props && n1.props && n2.props.to !== n1.props.to) { + n2.props.to = n1.props.to; + } + } } else { - extend(slots, children); - if (!optimized && type === 1) { - delete slots._; + if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) { + const nextTarget = n2.target = resolveTarget( + n2.props, + querySelector + ); + if (nextTarget) { + moveTeleport( + n2, + nextTarget, + null, + internals, + 0 + ); + } else { + warn$1( + "Invalid Teleport target on update:", + target, + `(${typeof target})` + ); + } + } else if (wasDisabled) { + moveTeleport( + n2, + target, + targetAnchor, + internals, + 1 + ); } } - } else { - needDeletionCheck = !children.$stable; - normalizeObjectSlots(children, slots); } - deletionComparisonTarget = children; - } else if (children) { - normalizeVNodeSlots(instance, children); - deletionComparisonTarget = { default: 1 }; - } - if (needDeletionCheck) { - for (const key in slots) { - if (!isInternalKey(key) && deletionComparisonTarget[key] == null) { - delete slots[key]; + updateCssVars(n2); + }, + remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) { + const { + shapeFlag, + children, + anchor, + targetStart, + targetAnchor, + target, + props + } = vnode; + if (target) { + hostRemove(targetStart); + hostRemove(targetAnchor); + } + doRemove && hostRemove(anchor); + if (shapeFlag & 16) { + const shouldRemove = doRemove || !isTeleportDisabled(props); + for (let i = 0; i < children.length; i++) { + const child = children[i]; + unmount( + child, + parentComponent, + parentSuspense, + shouldRemove, + !!child.dynamicChildren + ); } } - } + }, + move: moveTeleport, + hydrate: hydrateTeleport }; - - function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { - if (isArray(rawRef)) { - rawRef.forEach( - (r, i) => setRef( - r, - oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef), - parentSuspense, - vnode, - isUnmount - ) - ); - return; - } - if (isAsyncWrapper(vnode) && !isUnmount) { - return; + function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) { + if (moveType === 0) { + insert(vnode.targetAnchor, container, parentAnchor); } - const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el; - const value = isUnmount ? null : refValue; - const { i: owner, r: ref } = rawRef; - if (!owner) { - warn$1( - `Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.` - ); - return; + const { el, anchor, shapeFlag, children, props } = vnode; + const isReorder = moveType === 2; + if (isReorder) { + insert(el, container, parentAnchor); } - const oldRef = oldRawRef && oldRawRef.r; - const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs; - const setupState = owner.setupState; - if (oldRef != null && oldRef !== ref) { - if (isString(oldRef)) { - refs[oldRef] = null; - if (hasOwn(setupState, oldRef)) { - setupState[oldRef] = null; + if (!isReorder || isTeleportDisabled(props)) { + if (shapeFlag & 16) { + for (let i = 0; i < children.length; i++) { + move( + children[i], + container, + parentAnchor, + 2 + ); } - } else if (isRef(oldRef)) { - oldRef.value = null; } } - if (isFunction(ref)) { - callWithErrorHandling(ref, owner, 12, [value, refs]); - } else { - const _isString = isString(ref); - const _isRef = isRef(ref); - if (_isString || _isRef) { - const doSet = () => { - if (rawRef.f) { - const existing = _isString ? hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value; - if (isUnmount) { - isArray(existing) && remove(existing, refValue); - } else { - if (!isArray(existing)) { - if (_isString) { - refs[ref] = [refValue]; - if (hasOwn(setupState, ref)) { - setupState[ref] = refs[ref]; - } - } else { - ref.value = [refValue]; - if (rawRef.k) refs[rawRef.k] = ref.value; - } - } else if (!existing.includes(refValue)) { - existing.push(refValue); - } - } - } else if (_isString) { - refs[ref] = value; - if (hasOwn(setupState, ref)) { - setupState[ref] = value; + if (isReorder) { + insert(anchor, container, parentAnchor); + } + } + function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { + o: { nextSibling, parentNode, querySelector, insert, createText } + }, hydrateChildren) { + const target = vnode.target = resolveTarget( + vnode.props, + querySelector + ); + if (target) { + const targetNode = target._lpa || target.firstChild; + if (vnode.shapeFlag & 16) { + if (isTeleportDisabled(vnode.props)) { + vnode.anchor = hydrateChildren( + nextSibling(node), + vnode, + parentNode(node), + parentComponent, + parentSuspense, + slotScopeIds, + optimized + ); + vnode.targetStart = targetNode; + vnode.targetAnchor = targetNode && nextSibling(targetNode); + } else { + vnode.anchor = nextSibling(node); + let targetAnchor = targetNode; + while (targetAnchor) { + if (targetAnchor && targetAnchor.nodeType === 8) { + if (targetAnchor.data === "teleport start anchor") { + vnode.targetStart = targetAnchor; + } else if (targetAnchor.data === "teleport anchor") { + vnode.targetAnchor = targetAnchor; + target._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor); + break; + } } - } else if (_isRef) { - ref.value = value; - if (rawRef.k) refs[rawRef.k] = value; - } else { - warn$1("Invalid template ref type:", ref, `(${typeof ref})`); + targetAnchor = nextSibling(targetAnchor); } - }; - if (value) { - doSet.id = -1; - queuePostRenderEffect(doSet, parentSuspense); - } else { - doSet(); + if (!vnode.targetAnchor) { + prepareAnchor(target, vnode, createText, insert); + } + hydrateChildren( + targetNode && nextSibling(targetNode), + vnode, + target, + parentComponent, + parentSuspense, + slotScopeIds, + optimized + ); } - } else { - warn$1("Invalid template ref type:", ref, `(${typeof ref})`); } + updateCssVars(vnode); + } + return vnode.anchor && nextSibling(vnode.anchor); + } + const Teleport = TeleportImpl; + function updateCssVars(vnode) { + const ctx = vnode.ctx; + if (ctx && ctx.ut) { + let node = vnode.children[0].el; + while (node && node !== vnode.targetAnchor) { + if (node.nodeType === 1) node.setAttribute("data-v-owner", ctx.uid); + node = node.nextSibling; + } + ctx.ut(); + } + } + function prepareAnchor(target, vnode, createText, insert) { + const targetStart = vnode.targetStart = createText(""); + const targetAnchor = vnode.targetAnchor = createText(""); + targetStart[TeleportEndKey] = targetAnchor; + if (target) { + insert(targetStart, target); + insert(targetAnchor, target); } + return targetAnchor; } let hasLoggedMismatchError = false; @@ -5588,6 +5487,7 @@ Server rendered element contains more child nodes than client vdom.` } if (props) { { + const isCustomElement = el.tagName.includes("-"); for (const key in props) { if (// #11189 skip if this node has directives that have created hooks // as it could have mutated the DOM in any possible way @@ -5595,16 +5495,8 @@ Server rendered element contains more child nodes than client vdom.` logMismatchError(); } if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers - key[0] === ".") { - patchProp( - el, - key, - null, - props[key], - void 0, - void 0, - parentComponent - ); + key[0] === "." || isCustomElement) { + patchProp(el, key, null, props[key], void 0, parentComponent); } } } @@ -5633,7 +5525,21 @@ Server rendered element contains more child nodes than client vdom.` let hasWarned = false; for (let i = 0; i < l; i++) { const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]); + const isText = vnode.type === Text; if (node) { + if (isText && !optimized) { + let next = children[i + 1]; + if (next && (next = normalizeVNode(next)).type === Text) { + insert( + createText( + node.data.slice(vnode.children.length) + ), + container, + nextSibling(node) + ); + node.data = vnode.children; + } + } node = hydrateNode( node, vnode, @@ -5642,7 +5548,7 @@ Server rendered element contains more child nodes than client vdom.` slotScopeIds, optimized ); - } else if (vnode.type === Text && !vnode.children) { + } else if (isText && !vnode.children) { insert(vnode.el = createText(""), container); } else { if (!hasWarned) { @@ -6176,17 +6082,7 @@ Server rendered element contains fewer child nodes than client vdom.` if (props) { for (const key in props) { if (key !== "value" && !isReservedProp(key)) { - hostPatchProp( - el, - key, - null, - props[key], - namespace, - vnode.children, - parentComponent, - parentSuspense, - unmountChildren - ); + hostPatchProp(el, key, null, props[key], namespace, parentComponent); } } if ("value" in props) { @@ -6281,6 +6177,9 @@ Server rendered element contains fewer child nodes than client vdom.` optimized = false; dynamicChildren = null; } + if (oldProps.innerHTML && newProps.innerHTML == null || oldProps.textContent && newProps.textContent == null) { + hostSetElementText(el, ""); + } if (dynamicChildren) { patchBlockChildren( n1.dynamicChildren, @@ -6309,15 +6208,7 @@ Server rendered element contains fewer child nodes than client vdom.` } if (patchFlag > 0) { if (patchFlag & 16) { - patchProps( - el, - n2, - oldProps, - newProps, - parentComponent, - parentSuspense, - namespace - ); + patchProps(el, oldProps, newProps, parentComponent, namespace); } else { if (patchFlag & 2) { if (oldProps.class !== newProps.class) { @@ -6334,17 +6225,7 @@ Server rendered element contains fewer child nodes than client vdom.` const prev = oldProps[key]; const next = newProps[key]; if (next !== prev || key === "value") { - hostPatchProp( - el, - key, - prev, - next, - namespace, - n1.children, - parentComponent, - parentSuspense, - unmountChildren - ); + hostPatchProp(el, key, prev, next, namespace, parentComponent); } } } @@ -6355,15 +6236,7 @@ Server rendered element contains fewer child nodes than client vdom.` } } } else if (!optimized && dynamicChildren == null) { - patchProps( - el, - n2, - oldProps, - newProps, - parentComponent, - parentSuspense, - namespace - ); + patchProps(el, oldProps, newProps, parentComponent, namespace); } if ((vnodeHook = newProps.onVnodeUpdated) || dirs) { queuePostRenderEffect(() => { @@ -6403,7 +6276,7 @@ Server rendered element contains fewer child nodes than client vdom.` ); } }; - const patchProps = (el, vnode, oldProps, newProps, parentComponent, parentSuspense, namespace) => { + const patchProps = (el, oldProps, newProps, parentComponent, namespace) => { if (oldProps !== newProps) { if (oldProps !== EMPTY_OBJ) { for (const key in oldProps) { @@ -6414,10 +6287,7 @@ Server rendered element contains fewer child nodes than client vdom.` oldProps[key], null, namespace, - vnode.children, - parentComponent, - parentSuspense, - unmountChildren + parentComponent ); } } @@ -6427,17 +6297,7 @@ Server rendered element contains fewer child nodes than client vdom.` const next = newProps[key]; const prev = oldProps[key]; if (next !== prev && key !== "value") { - hostPatchProp( - el, - key, - prev, - next, - namespace, - vnode.children, - parentComponent, - parentSuspense, - unmountChildren - ); + hostPatchProp(el, key, prev, next, namespace, parentComponent); } } if ("value" in newProps) { @@ -6554,7 +6414,7 @@ Server rendered element contains fewer child nodes than client vdom.` { startMeasure(instance, `init`); } - setupComponent(instance); + setupComponent(instance, false, optimized); { endMeasure(instance, `init`); } @@ -6791,12 +6651,12 @@ Server rendered element contains fewer child nodes than client vdom.` effect.run(); } }; + update.i = instance; update.id = instance.uid; toggleRecurse(instance, true); { effect.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) : void 0; effect.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) : void 0; - update.ownerInstance = instance; } update(); }; @@ -7155,7 +7015,7 @@ Server rendered element contains fewer child nodes than client vdom.` shapeFlag, patchFlag, dirs, - memoIndex + cacheIndex } = vnode; if (patchFlag === -2) { optimized = false; @@ -7163,8 +7023,8 @@ Server rendered element contains fewer child nodes than client vdom.` if (ref != null) { setRef(ref, null, parentSuspense, vnode, true); } - if (memoIndex != null) { - parentComponent.renderCache[memoIndex] = void 0; + if (cacheIndex != null) { + parentComponent.renderCache[cacheIndex] = void 0; } if (shapeFlag & 256) { parentComponent.ctx.deactivate(vnode); @@ -7194,7 +7054,12 @@ Server rendered element contains fewer child nodes than client vdom.` internals, doRemove ); - } else if (dynamicChildren && // #1153: fast path should not be taken for non-stable (v-for) fragments + } else if (dynamicChildren && // #5154 + // when v-once is used inside a block, setBlockTracking(-1) marks the + // parent block with hasOnce: true + // so that it doesn't take the fast path during unmount - otherwise + // components nested in v-once are never unmounted. + !dynamicChildren.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments (type !== Fragment || patchFlag > 0 && patchFlag & 64)) { unmountChildren( dynamicChildren, @@ -7307,7 +7172,9 @@ Server rendered element contains fewer child nodes than client vdom.` if (vnode.shapeFlag & 128) { return vnode.suspense.next(); } - return hostNextSibling(vnode.anchor || vnode.el); + const el = hostNextSibling(vnode.anchor || vnode.el); + const teleportEnd = el && el[TeleportEndKey]; + return teleportEnd ? hostNextSibling(teleportEnd) : el; }; let isFlushing = false; const render = (vnode, container, namespace) => { @@ -7625,948 +7492,1170 @@ Server rendered element contains fewer child nodes than client vdom.` if (scope) { remove(scope.effects, effect); } - }; - { - effect.onTrack = onTrack; - effect.onTrigger = onTrigger; + }; + { + effect.onTrack = onTrack; + effect.onTrigger = onTrigger; + } + if (cb) { + if (immediate) { + job(); + } else { + oldValue = effect.run(); + } + } else if (flush === "post") { + queuePostRenderEffect( + effect.run.bind(effect), + instance && instance.suspense + ); + } else { + effect.run(); + } + return unwatch; + } + function instanceWatch(source, value, options) { + const publicThis = this.proxy; + const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis); + let cb; + if (isFunction(value)) { + cb = value; + } else { + cb = value.handler; + options = value; + } + const reset = setCurrentInstance(this); + const res = doWatch(getter, cb.bind(publicThis), options); + reset(); + return res; + } + function createPathGetter(ctx, path) { + const segments = path.split("."); + return () => { + let cur = ctx; + for (let i = 0; i < segments.length && cur; i++) { + cur = cur[segments[i]]; + } + return cur; + }; + } + function traverse(value, depth = Infinity, seen) { + if (depth <= 0 || !isObject(value) || value["__v_skip"]) { + return value; + } + seen = seen || /* @__PURE__ */ new Set(); + if (seen.has(value)) { + return value; + } + seen.add(value); + depth--; + if (isRef(value)) { + traverse(value.value, depth, seen); + } else if (isArray(value)) { + for (let i = 0; i < value.length; i++) { + traverse(value[i], depth, seen); + } + } else if (isSet(value) || isMap(value)) { + value.forEach((v) => { + traverse(v, depth, seen); + }); + } else if (isPlainObject(value)) { + for (const key in value) { + traverse(value[key], depth, seen); + } + for (const key of Object.getOwnPropertySymbols(value)) { + if (Object.prototype.propertyIsEnumerable.call(value, key)) { + traverse(value[key], depth, seen); + } + } + } + return value; + } + + function useModel(props, name, options = EMPTY_OBJ) { + const i = getCurrentInstance(); + if (!i) { + warn$1(`useModel() called without active instance.`); + return ref(); + } + if (!i.propsOptions[0][name]) { + warn$1(`useModel() called with prop "${name}" which is not declared.`); + return ref(); + } + const camelizedName = camelize(name); + const hyphenatedName = hyphenate(name); + const modifiers = getModelModifiers(props, name); + const res = customRef((track, trigger) => { + let localValue; + let prevSetValue = EMPTY_OBJ; + let prevEmittedValue; + watchSyncEffect(() => { + const propValue = props[name]; + if (hasChanged(localValue, propValue)) { + localValue = propValue; + trigger(); + } + }); + return { + get() { + track(); + return options.get ? options.get(localValue) : localValue; + }, + set(value) { + if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) { + return; + } + const rawProps = i.vnode.props; + if (!(rawProps && // check if parent has passed v-model + (name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps))) { + localValue = value; + trigger(); + } + const emittedValue = options.set ? options.set(value) : value; + i.emit(`update:${name}`, emittedValue); + if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) { + trigger(); + } + prevSetValue = value; + prevEmittedValue = emittedValue; + } + }; + }); + res[Symbol.iterator] = () => { + let i2 = 0; + return { + next() { + if (i2 < 2) { + return { value: i2++ ? modifiers || EMPTY_OBJ : res, done: false }; + } else { + return { done: true }; + } + } + }; + }; + return res; + } + const getModelModifiers = (props, modelName) => { + return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`]; + }; + + function emit(instance, event, ...rawArgs) { + if (instance.isUnmounted) return; + const props = instance.vnode.props || EMPTY_OBJ; + { + const { + emitsOptions, + propsOptions: [propsOptions] + } = instance; + if (emitsOptions) { + if (!(event in emitsOptions) && true) { + if (!propsOptions || !(toHandlerKey(event) in propsOptions)) { + warn$1( + `Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(event)}" prop.` + ); + } + } else { + const validator = emitsOptions[event]; + if (isFunction(validator)) { + const isValid = validator(...rawArgs); + if (!isValid) { + warn$1( + `Invalid event arguments: event validation failed for event "${event}".` + ); + } + } + } + } + } + let args = rawArgs; + const isModelListener = event.startsWith("update:"); + const modifiers = isModelListener && getModelModifiers(props, event.slice(7)); + if (modifiers) { + if (modifiers.trim) { + args = rawArgs.map((a) => isString(a) ? a.trim() : a); + } + if (modifiers.number) { + args = rawArgs.map(looseToNumber); + } + } + { + devtoolsComponentEmit(instance, event, args); + } + { + const lowerCaseEvent = event.toLowerCase(); + if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) { + warn$1( + `Event "${lowerCaseEvent}" is emitted in component ${formatComponentName( + instance, + instance.type + )} but the handler is registered for "${event}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${hyphenate( + event + )}" instead of "${event}".` + ); + } } - if (cb) { - if (immediate) { - job(); - } else { - oldValue = effect.run(); + let handlerName; + let handler = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249) + props[handlerName = toHandlerKey(camelize(event))]; + if (!handler && isModelListener) { + handler = props[handlerName = toHandlerKey(hyphenate(event))]; + } + if (handler) { + callWithAsyncErrorHandling( + handler, + instance, + 6, + args + ); + } + const onceHandler = props[handlerName + `Once`]; + if (onceHandler) { + if (!instance.emitted) { + instance.emitted = {}; + } else if (instance.emitted[handlerName]) { + return; } - } else if (flush === "post") { - queuePostRenderEffect( - effect.run.bind(effect), - instance && instance.suspense + instance.emitted[handlerName] = true; + callWithAsyncErrorHandling( + onceHandler, + instance, + 6, + args ); - } else { - effect.run(); } - return unwatch; } - function instanceWatch(source, value, options) { - const publicThis = this.proxy; - const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis); - let cb; - if (isFunction(value)) { - cb = value; - } else { - cb = value.handler; - options = value; + function normalizeEmitsOptions(comp, appContext, asMixin = false) { + const cache = appContext.emitsCache; + const cached = cache.get(comp); + if (cached !== void 0) { + return cached; } - const reset = setCurrentInstance(this); - const res = doWatch(getter, cb.bind(publicThis), options); - reset(); - return res; - } - function createPathGetter(ctx, path) { - const segments = path.split("."); - return () => { - let cur = ctx; - for (let i = 0; i < segments.length && cur; i++) { - cur = cur[segments[i]]; + const raw = comp.emits; + let normalized = {}; + let hasExtends = false; + if (!isFunction(comp)) { + const extendEmits = (raw2) => { + const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true); + if (normalizedFromExtend) { + hasExtends = true; + extend(normalized, normalizedFromExtend); + } + }; + if (!asMixin && appContext.mixins.length) { + appContext.mixins.forEach(extendEmits); } - return cur; - }; - } - function traverse(value, depth = Infinity, seen) { - if (depth <= 0 || !isObject(value) || value["__v_skip"]) { - return value; - } - seen = seen || /* @__PURE__ */ new Set(); - if (seen.has(value)) { - return value; - } - seen.add(value); - depth--; - if (isRef(value)) { - traverse(value.value, depth, seen); - } else if (isArray(value)) { - for (let i = 0; i < value.length; i++) { - traverse(value[i], depth, seen); + if (comp.extends) { + extendEmits(comp.extends); } - } else if (isSet(value) || isMap(value)) { - value.forEach((v) => { - traverse(v, depth, seen); - }); - } else if (isPlainObject(value)) { - for (const key in value) { - traverse(value[key], depth, seen); + if (comp.mixins) { + comp.mixins.forEach(extendEmits); } - for (const key of Object.getOwnPropertySymbols(value)) { - if (Object.prototype.propertyIsEnumerable.call(value, key)) { - traverse(value[key], depth, seen); - } + } + if (!raw && !hasExtends) { + if (isObject(comp)) { + cache.set(comp, null); } + return null; } - return value; + if (isArray(raw)) { + raw.forEach((key) => normalized[key] = null); + } else { + extend(normalized, raw); + } + if (isObject(comp)) { + cache.set(comp, normalized); + } + return normalized; + } + function isEmitListener(options, key) { + if (!options || !isOn(key)) { + return false; + } + key = key.slice(2).replace(/Once$/, ""); + return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key); } - const isKeepAlive = (vnode) => vnode.type.__isKeepAlive; - const KeepAliveImpl = { - name: `KeepAlive`, - // Marker for special handling inside the renderer. We are not using a === - // check directly on KeepAlive in the renderer, because importing it directly - // would prevent it from being tree-shaken. - __isKeepAlive: true, - props: { - include: [String, RegExp, Array], - exclude: [String, RegExp, Array], - max: [String, Number] - }, - setup(props, { slots }) { - const instance = getCurrentInstance(); - const sharedContext = instance.ctx; - const cache = /* @__PURE__ */ new Map(); - const keys = /* @__PURE__ */ new Set(); - let current = null; - { - instance.__v_cache = cache; - } - const parentSuspense = instance.suspense; - const { - renderer: { - p: patch, - m: move, - um: _unmount, - o: { createElement } - } - } = sharedContext; - const storageContainer = createElement("div"); - sharedContext.activate = (vnode, container, anchor, namespace, optimized) => { - const instance2 = vnode.component; - move(vnode, container, anchor, 0, parentSuspense); - patch( - instance2.vnode, - vnode, - container, - anchor, - instance2, - parentSuspense, - namespace, - vnode.slotScopeIds, - optimized + let accessedAttrs = false; + function markAttrsAccessed() { + accessedAttrs = true; + } + function renderComponentRoot(instance) { + const { + type: Component, + vnode, + proxy, + withProxy, + propsOptions: [propsOptions], + slots, + attrs, + emit, + render, + renderCache, + props, + data, + setupState, + ctx, + inheritAttrs + } = instance; + const prev = setCurrentRenderingInstance(instance); + let result; + let fallthroughAttrs; + { + accessedAttrs = false; + } + try { + if (vnode.shapeFlag & 4) { + const proxyToUse = withProxy || proxy; + const thisProxy = setupState.__isScriptSetup ? new Proxy(proxyToUse, { + get(target, key, receiver) { + warn$1( + `Property '${String( + key + )}' was accessed via 'this'. Avoid using 'this' in templates.` + ); + return Reflect.get(target, key, receiver); + } + }) : proxyToUse; + result = normalizeVNode( + render.call( + thisProxy, + proxyToUse, + renderCache, + true ? shallowReadonly(props) : props, + setupState, + data, + ctx + ) ); - queuePostRenderEffect(() => { - instance2.isDeactivated = false; - if (instance2.a) { - invokeArrayFns(instance2.a); + fallthroughAttrs = attrs; + } else { + const render2 = Component; + if (attrs === props) { + markAttrsAccessed(); + } + result = normalizeVNode( + render2.length > 1 ? render2( + true ? shallowReadonly(props) : props, + true ? { + get attrs() { + markAttrsAccessed(); + return shallowReadonly(attrs); + }, + slots, + emit + } : { attrs, slots, emit } + ) : render2( + true ? shallowReadonly(props) : props, + null + ) + ); + fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs); + } + } catch (err) { + blockStack.length = 0; + handleError(err, instance, 1); + result = createVNode(Comment); + } + let root = result; + let setRoot = void 0; + if (result.patchFlag > 0 && result.patchFlag & 2048) { + [root, setRoot] = getChildRoot(result); + } + if (fallthroughAttrs && inheritAttrs !== false) { + const keys = Object.keys(fallthroughAttrs); + const { shapeFlag } = root; + if (keys.length) { + if (shapeFlag & (1 | 6)) { + if (propsOptions && keys.some(isModelListener)) { + fallthroughAttrs = filterModelListeners( + fallthroughAttrs, + propsOptions + ); } - const vnodeHook = vnode.props && vnode.props.onVnodeMounted; - if (vnodeHook) { - invokeVNodeHook(vnodeHook, instance2.parent, vnode); + root = cloneVNode(root, fallthroughAttrs, false, true); + } else if (!accessedAttrs && root.type !== Comment) { + const allAttrs = Object.keys(attrs); + const eventAttrs = []; + const extraAttrs = []; + for (let i = 0, l = allAttrs.length; i < l; i++) { + const key = allAttrs[i]; + if (isOn(key)) { + if (!isModelListener(key)) { + eventAttrs.push(key[2].toLowerCase() + key.slice(3)); + } + } else { + extraAttrs.push(key); + } } - }, parentSuspense); - { - devtoolsComponentAdded(instance2); - } - }; - sharedContext.deactivate = (vnode) => { - const instance2 = vnode.component; - invalidateMount(instance2.m); - invalidateMount(instance2.a); - move(vnode, storageContainer, null, 1, parentSuspense); - queuePostRenderEffect(() => { - if (instance2.da) { - invokeArrayFns(instance2.da); + if (extraAttrs.length) { + warn$1( + `Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.` + ); } - const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted; - if (vnodeHook) { - invokeVNodeHook(vnodeHook, instance2.parent, vnode); + if (eventAttrs.length) { + warn$1( + `Extraneous non-emits event listeners (${eventAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.` + ); } - instance2.isDeactivated = true; - }, parentSuspense); - { - devtoolsComponentAdded(instance2); } - }; - function unmount(vnode) { - resetShapeFlag(vnode); - _unmount(vnode, instance, parentSuspense, true); } - function pruneCache(filter) { - cache.forEach((vnode, key) => { - const name = getComponentName(vnode.type); - if (name && (!filter || !filter(name))) { - pruneCacheEntry(key); - } - }); + } + if (vnode.dirs) { + if (!isElementRoot(root)) { + warn$1( + `Runtime directive used on component with non-element root node. The directives will not function as intended.` + ); } - function pruneCacheEntry(key) { - const cached = cache.get(key); - if (!current || !isSameVNodeType(cached, current)) { - unmount(cached); - } else if (current) { - resetShapeFlag(current); - } - cache.delete(key); - keys.delete(key); + root = cloneVNode(root, null, false, true); + root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs; + } + if (vnode.transition) { + if (!isElementRoot(root)) { + warn$1( + `Component inside renders non-element root node that cannot be animated.` + ); } - watch( - () => [props.include, props.exclude], - ([include, exclude]) => { - include && pruneCache((name) => matches(include, name)); - exclude && pruneCache((name) => !matches(exclude, name)); - }, - // prune post-render after `current` has been updated - { flush: "post", deep: true } - ); - let pendingCacheKey = null; - const cacheSubtree = () => { - if (pendingCacheKey != null) { - if (isSuspense(instance.subTree.type)) { - queuePostRenderEffect(() => { - cache.set(pendingCacheKey, getInnerChild(instance.subTree)); - }, instance.subTree.suspense); - } else { - cache.set(pendingCacheKey, getInnerChild(instance.subTree)); - } + root.transition = vnode.transition; + } + if (setRoot) { + setRoot(root); + } else { + result = root; + } + setCurrentRenderingInstance(prev); + return result; + } + const getChildRoot = (vnode) => { + const rawChildren = vnode.children; + const dynamicChildren = vnode.dynamicChildren; + const childRoot = filterSingleRoot(rawChildren, false); + if (!childRoot) { + return [vnode, void 0]; + } else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) { + return getChildRoot(childRoot); + } + const index = rawChildren.indexOf(childRoot); + const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1; + const setRoot = (updatedRoot) => { + rawChildren[index] = updatedRoot; + if (dynamicChildren) { + if (dynamicIndex > -1) { + dynamicChildren[dynamicIndex] = updatedRoot; + } else if (updatedRoot.patchFlag > 0) { + vnode.dynamicChildren = [...dynamicChildren, updatedRoot]; } - }; - onMounted(cacheSubtree); - onUpdated(cacheSubtree); - onBeforeUnmount(() => { - cache.forEach((cached) => { - const { subTree, suspense } = instance; - const vnode = getInnerChild(subTree); - if (cached.type === vnode.type && cached.key === vnode.key) { - resetShapeFlag(vnode); - const da = vnode.component.da; - da && queuePostRenderEffect(da, suspense); + } + }; + return [normalizeVNode(childRoot), setRoot]; + }; + function filterSingleRoot(children, recurse = true) { + let singleRoot; + for (let i = 0; i < children.length; i++) { + const child = children[i]; + if (isVNode(child)) { + if (child.type !== Comment || child.children === "v-if") { + if (singleRoot) { return; + } else { + singleRoot = child; + if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) { + return filterSingleRoot(singleRoot.children); + } } - unmount(cached); - }); - }); - return () => { - pendingCacheKey = null; - if (!slots.default) { - return null; - } - const children = slots.default(); - const rawVNode = children[0]; - if (children.length > 1) { - { - warn$1(`KeepAlive should contain exactly one component child.`); - } - current = null; - return children; - } else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4) && !(rawVNode.shapeFlag & 128)) { - current = null; - return rawVNode; - } - let vnode = getInnerChild(rawVNode); - const comp = vnode.type; - const name = getComponentName( - isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp - ); - const { include, exclude, max } = props; - if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) { - current = vnode; - return rawVNode; } - const key = vnode.key == null ? comp : vnode.key; - const cachedVNode = cache.get(key); - if (vnode.el) { - vnode = cloneVNode(vnode); - if (rawVNode.shapeFlag & 128) { - rawVNode.ssContent = vnode; - } + } else { + return; + } + } + return singleRoot; + } + const getFunctionalFallthrough = (attrs) => { + let res; + for (const key in attrs) { + if (key === "class" || key === "style" || isOn(key)) { + (res || (res = {}))[key] = attrs[key]; + } + } + return res; + }; + const filterModelListeners = (attrs, props) => { + const res = {}; + for (const key in attrs) { + if (!isModelListener(key) || !(key.slice(9) in props)) { + res[key] = attrs[key]; + } + } + return res; + }; + const isElementRoot = (vnode) => { + return vnode.shapeFlag & (6 | 1) || vnode.type === Comment; + }; + function shouldUpdateComponent(prevVNode, nextVNode, optimized) { + const { props: prevProps, children: prevChildren, component } = prevVNode; + const { props: nextProps, children: nextChildren, patchFlag } = nextVNode; + const emits = component.emitsOptions; + if ((prevChildren || nextChildren) && isHmrUpdating) { + return true; + } + if (nextVNode.dirs || nextVNode.transition) { + return true; + } + if (optimized && patchFlag >= 0) { + if (patchFlag & 1024) { + return true; + } + if (patchFlag & 16) { + if (!prevProps) { + return !!nextProps; } - pendingCacheKey = key; - if (cachedVNode) { - vnode.el = cachedVNode.el; - vnode.component = cachedVNode.component; - if (vnode.transition) { - setTransitionHooks(vnode, vnode.transition); - } - vnode.shapeFlag |= 512; - keys.delete(key); - keys.add(key); - } else { - keys.add(key); - if (max && keys.size > parseInt(max, 10)) { - pruneCacheEntry(keys.values().next().value); + return hasPropsChanged(prevProps, nextProps, emits); + } else if (patchFlag & 8) { + const dynamicProps = nextVNode.dynamicProps; + for (let i = 0; i < dynamicProps.length; i++) { + const key = dynamicProps[i]; + if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) { + return true; } } - vnode.shapeFlag |= 256; - current = vnode; - return isSuspense(rawVNode.type) ? rawVNode : vnode; - }; - } - }; - const KeepAlive = KeepAliveImpl; - function matches(pattern, name) { - if (isArray(pattern)) { - return pattern.some((p) => matches(p, name)); - } else if (isString(pattern)) { - return pattern.split(",").includes(name); - } else if (isRegExp(pattern)) { - return pattern.test(name); + } + } else { + if (prevChildren || nextChildren) { + if (!nextChildren || !nextChildren.$stable) { + return true; + } + } + if (prevProps === nextProps) { + return false; + } + if (!prevProps) { + return !!nextProps; + } + if (!nextProps) { + return true; + } + return hasPropsChanged(prevProps, nextProps, emits); } return false; } - function onActivated(hook, target) { - registerKeepAliveHook(hook, "a", target); - } - function onDeactivated(hook, target) { - registerKeepAliveHook(hook, "da", target); + function hasPropsChanged(prevProps, nextProps, emitsOptions) { + const nextKeys = Object.keys(nextProps); + if (nextKeys.length !== Object.keys(prevProps).length) { + return true; + } + for (let i = 0; i < nextKeys.length; i++) { + const key = nextKeys[i]; + if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) { + return true; + } + } + return false; } - function registerKeepAliveHook(hook, type, target = currentInstance) { - const wrappedHook = hook.__wdc || (hook.__wdc = () => { - let current = target; - while (current) { - if (current.isDeactivated) { - return; - } - current = current.parent; + function updateHOCHostEl({ vnode, parent }, el) { + while (parent) { + const root = parent.subTree; + if (root.suspense && root.suspense.activeBranch === vnode) { + root.el = vnode.el; } - return hook(); - }); - injectHook(type, wrappedHook, target); - if (target) { - let current = target.parent; - while (current && current.parent) { - if (isKeepAlive(current.parent.vnode)) { - injectToKeepAliveRoot(wrappedHook, type, target, current); - } - current = current.parent; + if (root === vnode) { + (vnode = parent.vnode).el = el; + parent = parent.parent; + } else { + break; } } } - function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { - const injected = injectHook( - type, - hook, - keepAliveRoot, - true - /* prepend */ - ); - onUnmounted(() => { - remove(keepAliveRoot[type], injected); - }, target); - } - function resetShapeFlag(vnode) { - vnode.shapeFlag &= ~256; - vnode.shapeFlag &= ~512; - } - function getInnerChild(vnode) { - return vnode.shapeFlag & 128 ? vnode.ssContent : vnode; - } - const leaveCbKey = Symbol("_leaveCb"); - const enterCbKey$1 = Symbol("_enterCb"); - function useTransitionState() { - const state = { - isMounted: false, - isLeaving: false, - isUnmounting: false, - leavingVNodes: /* @__PURE__ */ new Map() - }; - onMounted(() => { - state.isMounted = true; - }); - onBeforeUnmount(() => { - state.isUnmounting = true; - }); - return state; - } - const TransitionHookValidator = [Function, Array]; - const BaseTransitionPropsValidators = { - mode: String, - appear: Boolean, - persisted: Boolean, - // enter - onBeforeEnter: TransitionHookValidator, - onEnter: TransitionHookValidator, - onAfterEnter: TransitionHookValidator, - onEnterCancelled: TransitionHookValidator, - // leave - onBeforeLeave: TransitionHookValidator, - onLeave: TransitionHookValidator, - onAfterLeave: TransitionHookValidator, - onLeaveCancelled: TransitionHookValidator, - // appear - onBeforeAppear: TransitionHookValidator, - onAppear: TransitionHookValidator, - onAfterAppear: TransitionHookValidator, - onAppearCancelled: TransitionHookValidator - }; - const recursiveGetSubtree = (instance) => { - const subTree = instance.subTree; - return subTree.component ? recursiveGetSubtree(subTree.component) : subTree; - }; - const BaseTransitionImpl = { - name: `BaseTransition`, - props: BaseTransitionPropsValidators, - setup(props, { slots }) { - const instance = getCurrentInstance(); - const state = useTransitionState(); - return () => { - const children = slots.default && getTransitionRawChildren(slots.default(), true); - if (!children || !children.length) { - return; - } - let child = children[0]; - if (children.length > 1) { - let hasFound = false; - for (const c of children) { - if (c.type !== Comment) { - if (hasFound) { - warn$1( - " can only be used on a single element or component. Use for lists." - ); - break; - } - child = c; - hasFound = true; - } - } - } - const rawProps = toRaw(props); - const { mode } = rawProps; - if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") { - warn$1(`invalid mode: ${mode}`); - } - if (state.isLeaving) { - return emptyPlaceholder(child); - } - const innerChild = getKeepAliveChild(child); - if (!innerChild) { - return emptyPlaceholder(child); - } - let enterHooks = resolveTransitionHooks( - innerChild, - rawProps, - state, - instance, - // #11061, ensure enterHooks is fresh after clone - (hooks) => enterHooks = hooks - ); - setTransitionHooks(innerChild, enterHooks); - const oldChild = instance.subTree; - const oldInnerChild = oldChild && getKeepAliveChild(oldChild); - if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) { - const leavingHooks = resolveTransitionHooks( - oldInnerChild, - rawProps, - state, - instance - ); - setTransitionHooks(oldInnerChild, leavingHooks); - if (mode === "out-in" && innerChild.type !== Comment) { - state.isLeaving = true; - leavingHooks.afterLeave = () => { - state.isLeaving = false; - if (instance.update.active !== false) { - instance.effect.dirty = true; - instance.update(); - } - }; - return emptyPlaceholder(child); - } else if (mode === "in-out" && innerChild.type !== Comment) { - leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => { - const leavingVNodesCache = getLeavingNodesForType( - state, - oldInnerChild - ); - leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild; - el[leaveCbKey] = () => { - earlyRemove(); - el[leaveCbKey] = void 0; - delete enterHooks.delayedLeave; - }; - enterHooks.delayedLeave = delayedLeave; - }; - } + const isSuspense = (type) => type.__isSuspense; + let suspenseId = 0; + const SuspenseImpl = { + name: "Suspense", + // In order to make Suspense tree-shakable, we need to avoid importing it + // directly in the renderer. The renderer checks for the __isSuspense flag + // on a vnode's type and calls the `process` method, passing in renderer + // internals. + __isSuspense: true, + process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) { + if (n1 == null) { + mountSuspense( + n2, + container, + anchor, + parentComponent, + parentSuspense, + namespace, + slotScopeIds, + optimized, + rendererInternals + ); + } else { + if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback) { + n2.suspense = n1.suspense; + n2.suspense.vnode = n2; + n2.el = n1.el; + return; } - return child; - }; - } + patchSuspense( + n1, + n2, + container, + anchor, + parentComponent, + namespace, + slotScopeIds, + optimized, + rendererInternals + ); + } + }, + hydrate: hydrateSuspense, + normalize: normalizeSuspenseChildren }; - const BaseTransition = BaseTransitionImpl; - function getLeavingNodesForType(state, vnode) { - const { leavingVNodes } = state; - let leavingVNodesCache = leavingVNodes.get(vnode.type); - if (!leavingVNodesCache) { - leavingVNodesCache = /* @__PURE__ */ Object.create(null); - leavingVNodes.set(vnode.type, leavingVNodesCache); + const Suspense = SuspenseImpl ; + function triggerEvent(vnode, name) { + const eventListener = vnode.props && vnode.props[name]; + if (isFunction(eventListener)) { + eventListener(); } - return leavingVNodesCache; } - function resolveTransitionHooks(vnode, props, state, instance, postClone) { + function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) { const { - appear, - mode, - persisted = false, - onBeforeEnter, - onEnter, - onAfterEnter, - onEnterCancelled, - onBeforeLeave, - onLeave, - onAfterLeave, - onLeaveCancelled, - onBeforeAppear, - onAppear, - onAfterAppear, - onAppearCancelled - } = props; - const key = String(vnode.key); - const leavingVNodesCache = getLeavingNodesForType(state, vnode); - const callHook = (hook, args) => { - hook && callWithAsyncErrorHandling( - hook, - instance, - 9, - args + p: patch, + o: { createElement } + } = rendererInternals; + const hiddenContainer = createElement("div"); + const suspense = vnode.suspense = createSuspenseBoundary( + vnode, + parentSuspense, + parentComponent, + container, + hiddenContainer, + anchor, + namespace, + slotScopeIds, + optimized, + rendererInternals + ); + patch( + null, + suspense.pendingBranch = vnode.ssContent, + hiddenContainer, + null, + parentComponent, + suspense, + namespace, + slotScopeIds + ); + if (suspense.deps > 0) { + triggerEvent(vnode, "onPending"); + triggerEvent(vnode, "onFallback"); + patch( + null, + vnode.ssFallback, + container, + anchor, + parentComponent, + null, + // fallback tree will not have suspense context + namespace, + slotScopeIds ); - }; - const callAsyncHook = (hook, args) => { - const done = args[1]; - callHook(hook, args); - if (isArray(hook)) { - if (hook.every((hook2) => hook2.length <= 1)) done(); - } else if (hook.length <= 1) { - done(); - } - }; - const hooks = { - mode, - persisted, - beforeEnter(el) { - let hook = onBeforeEnter; - if (!state.isMounted) { - if (appear) { - hook = onBeforeAppear || onBeforeEnter; - } else { - return; - } - } - if (el[leaveCbKey]) { - el[leaveCbKey]( - true - /* cancelled */ - ); - } - const leavingVNode = leavingVNodesCache[key]; - if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) { - leavingVNode.el[leaveCbKey](); - } - callHook(hook, [el]); - }, - enter(el) { - let hook = onEnter; - let afterHook = onAfterEnter; - let cancelHook = onEnterCancelled; - if (!state.isMounted) { - if (appear) { - hook = onAppear || onEnter; - afterHook = onAfterAppear || onAfterEnter; - cancelHook = onAppearCancelled || onEnterCancelled; - } else { - return; + setActiveBranch(suspense, vnode.ssFallback); + } else { + suspense.resolve(false, true); + } + } + function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) { + const suspense = n2.suspense = n1.suspense; + suspense.vnode = n2; + n2.el = n1.el; + const newBranch = n2.ssContent; + const newFallback = n2.ssFallback; + const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense; + if (pendingBranch) { + suspense.pendingBranch = newBranch; + if (isSameVNodeType(newBranch, pendingBranch)) { + patch( + pendingBranch, + newBranch, + suspense.hiddenContainer, + null, + parentComponent, + suspense, + namespace, + slotScopeIds, + optimized + ); + if (suspense.deps <= 0) { + suspense.resolve(); + } else if (isInFallback) { + if (!isHydrating) { + patch( + activeBranch, + newFallback, + container, + anchor, + parentComponent, + null, + // fallback tree will not have suspense context + namespace, + slotScopeIds, + optimized + ); + setActiveBranch(suspense, newFallback); } } - let called = false; - const done = el[enterCbKey$1] = (cancelled) => { - if (called) return; - called = true; - if (cancelled) { - callHook(cancelHook, [el]); - } else { - callHook(afterHook, [el]); - } - if (hooks.delayedLeave) { - hooks.delayedLeave(); - } - el[enterCbKey$1] = void 0; - }; - if (hook) { - callAsyncHook(hook, [el, done]); + } else { + suspense.pendingId = suspenseId++; + if (isHydrating) { + suspense.isHydrating = false; + suspense.activeBranch = pendingBranch; } else { - done(); + unmount(pendingBranch, parentComponent, suspense); } - }, - leave(el, remove) { - const key2 = String(vnode.key); - if (el[enterCbKey$1]) { - el[enterCbKey$1]( - true - /* cancelled */ + suspense.deps = 0; + suspense.effects.length = 0; + suspense.hiddenContainer = createElement("div"); + if (isInFallback) { + patch( + null, + newBranch, + suspense.hiddenContainer, + null, + parentComponent, + suspense, + namespace, + slotScopeIds, + optimized ); - } - if (state.isUnmounting) { - return remove(); - } - callHook(onBeforeLeave, [el]); - let called = false; - const done = el[leaveCbKey] = (cancelled) => { - if (called) return; - called = true; - remove(); - if (cancelled) { - callHook(onLeaveCancelled, [el]); + if (suspense.deps <= 0) { + suspense.resolve(); } else { - callHook(onAfterLeave, [el]); + patch( + activeBranch, + newFallback, + container, + anchor, + parentComponent, + null, + // fallback tree will not have suspense context + namespace, + slotScopeIds, + optimized + ); + setActiveBranch(suspense, newFallback); } - el[leaveCbKey] = void 0; - if (leavingVNodesCache[key2] === vnode) { - delete leavingVNodesCache[key2]; + } else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { + patch( + activeBranch, + newBranch, + container, + anchor, + parentComponent, + suspense, + namespace, + slotScopeIds, + optimized + ); + suspense.resolve(true); + } else { + patch( + null, + newBranch, + suspense.hiddenContainer, + null, + parentComponent, + suspense, + namespace, + slotScopeIds, + optimized + ); + if (suspense.deps <= 0) { + suspense.resolve(); } - }; - leavingVNodesCache[key2] = vnode; - if (onLeave) { - callAsyncHook(onLeave, [el, done]); + } + } + } else { + if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { + patch( + activeBranch, + newBranch, + container, + anchor, + parentComponent, + suspense, + namespace, + slotScopeIds, + optimized + ); + setActiveBranch(suspense, newBranch); + } else { + triggerEvent(n2, "onPending"); + suspense.pendingBranch = newBranch; + if (newBranch.shapeFlag & 512) { + suspense.pendingId = newBranch.component.suspenseId; } else { - done(); + suspense.pendingId = suspenseId++; } - }, - clone(vnode2) { - const hooks2 = resolveTransitionHooks( - vnode2, - props, - state, - instance, - postClone + patch( + null, + newBranch, + suspense.hiddenContainer, + null, + parentComponent, + suspense, + namespace, + slotScopeIds, + optimized ); - if (postClone) postClone(hooks2); - return hooks2; - } - }; - return hooks; - } - function emptyPlaceholder(vnode) { - if (isKeepAlive(vnode)) { - vnode = cloneVNode(vnode); - vnode.children = null; - return vnode; - } - } - function getKeepAliveChild(vnode) { - if (!isKeepAlive(vnode)) { - return vnode; - } - if (vnode.component) { - return vnode.component.subTree; - } - const { shapeFlag, children } = vnode; - if (children) { - if (shapeFlag & 16) { - return children[0]; - } - if (shapeFlag & 32 && isFunction(children.default)) { - return children.default(); + if (suspense.deps <= 0) { + suspense.resolve(); + } else { + const { timeout, pendingId } = suspense; + if (timeout > 0) { + setTimeout(() => { + if (suspense.pendingId === pendingId) { + suspense.fallback(newFallback); + } + }, timeout); + } else if (timeout === 0) { + suspense.fallback(newFallback); + } + } } } } - function setTransitionHooks(vnode, hooks) { - if (vnode.shapeFlag & 6 && vnode.component) { - setTransitionHooks(vnode.component.subTree, hooks); - } else if (vnode.shapeFlag & 128) { - vnode.ssContent.transition = hooks.clone(vnode.ssContent); - vnode.ssFallback.transition = hooks.clone(vnode.ssFallback); - } else { - vnode.transition = hooks; + let hasWarned = false; + function createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, namespace, slotScopeIds, optimized, rendererInternals, isHydrating = false) { + if (!hasWarned) { + hasWarned = true; + console[console.info ? "info" : "log"]( + ` is an experimental feature and its API will likely change.` + ); } - } - function getTransitionRawChildren(children, keepComment = false, parentKey) { - let ret = []; - let keyedFragmentCount = 0; - for (let i = 0; i < children.length; i++) { - let child = children[i]; - const key = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i); - if (child.type === Fragment) { - if (child.patchFlag & 128) keyedFragmentCount++; - ret = ret.concat( - getTransitionRawChildren(child.children, keepComment, key) - ); - } else if (keepComment || child.type !== Comment) { - ret.push(key != null ? cloneVNode(child, { key }) : child); + const { + p: patch, + m: move, + um: unmount, + n: next, + o: { parentNode, remove } + } = rendererInternals; + let parentSuspenseId; + const isSuspensible = isVNodeSuspensible(vnode); + if (isSuspensible) { + if (parentSuspense && parentSuspense.pendingBranch) { + parentSuspenseId = parentSuspense.pendingId; + parentSuspense.deps++; } } - if (keyedFragmentCount > 1) { - for (let i = 0; i < ret.length; i++) { - ret[i].patchFlag = -2; - } + const timeout = vnode.props ? toNumber(vnode.props.timeout) : void 0; + { + assertNumber(timeout, `Suspense timeout`); } - return ret; - } - - const isTeleport = (type) => type.__isTeleport; - const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === ""); - const isTargetSVG = (target) => typeof SVGElement !== "undefined" && target instanceof SVGElement; - const isTargetMathML = (target) => typeof MathMLElement === "function" && target instanceof MathMLElement; - const resolveTarget = (props, select) => { - const targetSelector = props && props.to; - if (isString(targetSelector)) { - if (!select) { - warn$1( - `Current renderer does not support string target for Teleports. (missing querySelector renderer option)` - ); - return null; - } else { - const target = select(targetSelector); - if (!target && !isTeleportDisabled(props)) { - warn$1( - `Failed to locate Teleport target with selector "${targetSelector}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.` - ); + const initialAnchor = anchor; + const suspense = { + vnode, + parent: parentSuspense, + parentComponent, + namespace, + container, + hiddenContainer, + deps: 0, + pendingId: suspenseId++, + timeout: typeof timeout === "number" ? timeout : -1, + activeBranch: null, + pendingBranch: null, + isInFallback: !isHydrating, + isHydrating, + isUnmounted: false, + effects: [], + resolve(resume = false, sync = false) { + { + if (!resume && !suspense.pendingBranch) { + throw new Error( + `suspense.resolve() is called without a pending branch.` + ); + } + if (suspense.isUnmounted) { + throw new Error( + `suspense.resolve() is called on an already unmounted suspense boundary.` + ); + } + } + const { + vnode: vnode2, + activeBranch, + pendingBranch, + pendingId, + effects, + parentComponent: parentComponent2, + container: container2 + } = suspense; + let delayEnter = false; + if (suspense.isHydrating) { + suspense.isHydrating = false; + } else if (!resume) { + delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in"; + if (delayEnter) { + activeBranch.transition.afterLeave = () => { + if (pendingId === suspense.pendingId) { + move( + pendingBranch, + container2, + anchor === initialAnchor ? next(activeBranch) : anchor, + 0 + ); + queuePostFlushCb(effects); + } + }; + } + if (activeBranch) { + if (parentNode(activeBranch.el) !== suspense.hiddenContainer) { + anchor = next(activeBranch); + } + unmount(activeBranch, parentComponent2, suspense, true); + } + if (!delayEnter) { + move(pendingBranch, container2, anchor, 0); + } } - return target; - } - } else { - if (!targetSelector && !isTeleportDisabled(props)) { - warn$1(`Invalid Teleport target: ${targetSelector}`); - } - return targetSelector; - } - }; - const TeleportImpl = { - name: "Teleport", - __isTeleport: true, - process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals) { - const { - mc: mountChildren, - pc: patchChildren, - pbc: patchBlockChildren, - o: { insert, querySelector, createText, createComment } - } = internals; - const disabled = isTeleportDisabled(n2.props); - let { shapeFlag, children, dynamicChildren } = n2; - if (isHmrUpdating) { - optimized = false; - dynamicChildren = null; - } - if (n1 == null) { - const placeholder = n2.el = createComment("teleport start") ; - const mainAnchor = n2.anchor = createComment("teleport end") ; - insert(placeholder, container, anchor); - insert(mainAnchor, container, anchor); - const target = n2.target = resolveTarget(n2.props, querySelector); - const targetAnchor = n2.targetAnchor = createText(""); - if (target) { - insert(targetAnchor, target); - if (namespace === "svg" || isTargetSVG(target)) { - namespace = "svg"; - } else if (namespace === "mathml" || isTargetMathML(target)) { - namespace = "mathml"; + setActiveBranch(suspense, pendingBranch); + suspense.pendingBranch = null; + suspense.isInFallback = false; + let parent = suspense.parent; + let hasUnresolvedAncestor = false; + while (parent) { + if (parent.pendingBranch) { + parent.effects.push(...effects); + hasUnresolvedAncestor = true; + break; } - } else if (!disabled) { - warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`); + parent = parent.parent; } - const mount = (container2, anchor2) => { - if (shapeFlag & 16) { - mountChildren( - children, - container2, - anchor2, - parentComponent, - parentSuspense, - namespace, - slotScopeIds, - optimized - ); + if (!hasUnresolvedAncestor && !delayEnter) { + queuePostFlushCb(effects); + } + suspense.effects = []; + if (isSuspensible) { + if (parentSuspense && parentSuspense.pendingBranch && parentSuspenseId === parentSuspense.pendingId) { + parentSuspense.deps--; + if (parentSuspense.deps === 0 && !sync) { + parentSuspense.resolve(); + } } - }; - if (disabled) { - mount(container, mainAnchor); - } else if (target) { - mount(target, targetAnchor); } - } else { - n2.el = n1.el; - const mainAnchor = n2.anchor = n1.anchor; - const target = n2.target = n1.target; - const targetAnchor = n2.targetAnchor = n1.targetAnchor; - const wasDisabled = isTeleportDisabled(n1.props); - const currentContainer = wasDisabled ? container : target; - const currentAnchor = wasDisabled ? mainAnchor : targetAnchor; - if (namespace === "svg" || isTargetSVG(target)) { - namespace = "svg"; - } else if (namespace === "mathml" || isTargetMathML(target)) { - namespace = "mathml"; + triggerEvent(vnode2, "onResolve"); + }, + fallback(fallbackVNode) { + if (!suspense.pendingBranch) { + return; } - if (dynamicChildren) { - patchBlockChildren( - n1.dynamicChildren, - dynamicChildren, - currentContainer, - parentComponent, - parentSuspense, - namespace, - slotScopeIds - ); - traverseStaticChildren(n1, n2, true); - } else if (!optimized) { - patchChildren( - n1, - n2, - currentContainer, - currentAnchor, - parentComponent, - parentSuspense, - namespace, + const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, namespace: namespace2 } = suspense; + triggerEvent(vnode2, "onFallback"); + const anchor2 = next(activeBranch); + const mountFallback = () => { + if (!suspense.isInFallback) { + return; + } + patch( + null, + fallbackVNode, + container2, + anchor2, + parentComponent2, + null, + // fallback tree will not have suspense context + namespace2, slotScopeIds, - false + optimized ); + setActiveBranch(suspense, fallbackVNode); + }; + const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === "out-in"; + if (delayEnter) { + activeBranch.transition.afterLeave = mountFallback; } - if (disabled) { - if (!wasDisabled) { - moveTeleport( - n2, - container, - mainAnchor, - internals, - 1 - ); - } else { - if (n2.props && n1.props && n2.props.to !== n1.props.to) { - n2.props.to = n1.props.to; - } + suspense.isInFallback = true; + unmount( + activeBranch, + parentComponent2, + null, + // no suspense so unmount hooks fire now + true + // shouldRemove + ); + if (!delayEnter) { + mountFallback(); + } + }, + move(container2, anchor2, type) { + suspense.activeBranch && move(suspense.activeBranch, container2, anchor2, type); + suspense.container = container2; + }, + next() { + return suspense.activeBranch && next(suspense.activeBranch); + }, + registerDep(instance, setupRenderEffect, optimized2) { + const isInPendingSuspense = !!suspense.pendingBranch; + if (isInPendingSuspense) { + suspense.deps++; + } + const hydratedEl = instance.vnode.el; + instance.asyncDep.catch((err) => { + handleError(err, instance, 0); + }).then((asyncSetupResult) => { + if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) { + return; } - } else { - if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) { - const nextTarget = n2.target = resolveTarget( - n2.props, - querySelector - ); - if (nextTarget) { - moveTeleport( - n2, - nextTarget, - null, - internals, - 0 - ); - } else { - warn$1( - "Invalid Teleport target on update:", - target, - `(${typeof target})` - ); - } - } else if (wasDisabled) { - moveTeleport( - n2, - target, - targetAnchor, - internals, - 1 - ); + instance.asyncResolved = true; + const { vnode: vnode2 } = instance; + { + pushWarningContext(vnode2); + } + handleSetupResult(instance, asyncSetupResult, false); + if (hydratedEl) { + vnode2.el = hydratedEl; + } + const placeholder = !hydratedEl && instance.subTree.el; + setupRenderEffect( + instance, + vnode2, + // component may have been moved before resolve. + // if this is not a hydration, instance.subTree will be the comment + // placeholder. + parentNode(hydratedEl || instance.subTree.el), + // anchor will not be used if this is hydration, so only need to + // consider the comment placeholder case. + hydratedEl ? null : next(instance.subTree), + suspense, + namespace, + optimized2 + ); + if (placeholder) { + remove(placeholder); + } + updateHOCHostEl(instance, vnode2.el); + { + popWarningContext(); + } + if (isInPendingSuspense && --suspense.deps === 0) { + suspense.resolve(); } + }); + }, + unmount(parentSuspense2, doRemove) { + suspense.isUnmounted = true; + if (suspense.activeBranch) { + unmount( + suspense.activeBranch, + parentComponent, + parentSuspense2, + doRemove + ); } - } - updateCssVars(n2); - }, - remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) { - const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode; - if (target) { - hostRemove(targetAnchor); - } - doRemove && hostRemove(anchor); - if (shapeFlag & 16) { - const shouldRemove = doRemove || !isTeleportDisabled(props); - for (let i = 0; i < children.length; i++) { - const child = children[i]; + if (suspense.pendingBranch) { unmount( - child, + suspense.pendingBranch, parentComponent, - parentSuspense, - shouldRemove, - !!child.dynamicChildren + parentSuspense2, + doRemove ); } } - }, - move: moveTeleport, - hydrate: hydrateTeleport - }; - function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) { - if (moveType === 0) { - insert(vnode.targetAnchor, container, parentAnchor); + }; + return suspense; + } + function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals, hydrateNode) { + const suspense = vnode.suspense = createSuspenseBoundary( + vnode, + parentSuspense, + parentComponent, + node.parentNode, + // eslint-disable-next-line no-restricted-globals + document.createElement("div"), + null, + namespace, + slotScopeIds, + optimized, + rendererInternals, + true + ); + const result = hydrateNode( + node, + suspense.pendingBranch = vnode.ssContent, + parentComponent, + suspense, + slotScopeIds, + optimized + ); + if (suspense.deps === 0) { + suspense.resolve(false, true); } - const { el, anchor, shapeFlag, children, props } = vnode; - const isReorder = moveType === 2; - if (isReorder) { - insert(el, container, parentAnchor); + return result; + } + function normalizeSuspenseChildren(vnode) { + const { shapeFlag, children } = vnode; + const isSlotChildren = shapeFlag & 32; + vnode.ssContent = normalizeSuspenseSlot( + isSlotChildren ? children.default : children + ); + vnode.ssFallback = isSlotChildren ? normalizeSuspenseSlot(children.fallback) : createVNode(Comment); + } + function normalizeSuspenseSlot(s) { + let block; + if (isFunction(s)) { + const trackBlock = isBlockTreeEnabled && s._c; + if (trackBlock) { + s._d = false; + openBlock(); + } + s = s(); + if (trackBlock) { + s._d = true; + block = currentBlock; + closeBlock(); + } } - if (!isReorder || isTeleportDisabled(props)) { - if (shapeFlag & 16) { - for (let i = 0; i < children.length; i++) { - move( - children[i], - container, - parentAnchor, - 2 - ); - } + if (isArray(s)) { + const singleChild = filterSingleRoot(s); + if (!singleChild && s.filter((child) => child !== NULL_DYNAMIC_COMPONENT).length > 0) { + warn$1(` slots expect a single root node.`); } + s = singleChild; } - if (isReorder) { - insert(anchor, container, parentAnchor); + s = normalizeVNode(s); + if (block && !s.dynamicChildren) { + s.dynamicChildren = block.filter((c) => c !== s); } + return s; } - function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { - o: { nextSibling, parentNode, querySelector } - }, hydrateChildren) { - const target = vnode.target = resolveTarget( - vnode.props, - querySelector - ); - if (target) { - const targetNode = target._lpa || target.firstChild; - if (vnode.shapeFlag & 16) { - if (isTeleportDisabled(vnode.props)) { - vnode.anchor = hydrateChildren( - nextSibling(node), - vnode, - parentNode(node), - parentComponent, - parentSuspense, - slotScopeIds, - optimized - ); - vnode.targetAnchor = targetNode; - } else { - vnode.anchor = nextSibling(node); - let targetAnchor = targetNode; - while (targetAnchor) { - targetAnchor = nextSibling(targetAnchor); - if (targetAnchor && targetAnchor.nodeType === 8 && targetAnchor.data === "teleport anchor") { - vnode.targetAnchor = targetAnchor; - target._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor); - break; - } - } - hydrateChildren( - targetNode, - vnode, - target, - parentComponent, - parentSuspense, - slotScopeIds, - optimized - ); - } + function queueEffectWithSuspense(fn, suspense) { + if (suspense && suspense.pendingBranch) { + if (isArray(fn)) { + suspense.effects.push(...fn); + } else { + suspense.effects.push(fn); } - updateCssVars(vnode); + } else { + queuePostFlushCb(fn); } - return vnode.anchor && nextSibling(vnode.anchor); } - const Teleport = TeleportImpl; - function updateCssVars(vnode) { - const ctx = vnode.ctx; - if (ctx && ctx.ut) { - let node = vnode.children[0].el; - while (node && node !== vnode.targetAnchor) { - if (node.nodeType === 1) node.setAttribute("data-v-owner", ctx.uid); - node = node.nextSibling; - } - ctx.ut(); + function setActiveBranch(suspense, branch) { + suspense.activeBranch = branch; + const { vnode, parentComponent } = suspense; + let el = branch.el; + while (!el && branch.component) { + branch = branch.component.subTree; + el = branch.el; + } + vnode.el = el; + if (parentComponent && parentComponent.subTree === vnode) { + parentComponent.vnode.el = el; + updateHOCHostEl(parentComponent, el); } } + function isVNodeSuspensible(vnode) { + const suspensible = vnode.props && vnode.props.suspensible; + return suspensible != null && suspensible !== false; + } const Fragment = Symbol.for("v-fgt"); const Text = Symbol.for("v-txt"); @@ -8584,6 +8673,9 @@ Server rendered element contains fewer child nodes than client vdom.` let isBlockTreeEnabled = 1; function setBlockTracking(value) { isBlockTreeEnabled += value; + if (value < 0 && currentBlock) { + currentBlock.hasOnce = true; + } } function setupBlock(vnode) { vnode.dynamicChildren = isBlockTreeEnabled > 0 ? currentBlock || EMPTY_ARR : null; @@ -8622,10 +8714,13 @@ Server rendered element contains fewer child nodes than client vdom.` return value ? value.__v_isVNode === true : false; } function isSameVNodeType(n1, n2) { - if (n2.shapeFlag & 6 && hmrDirtyComponents.has(n2.type)) { - n1.shapeFlag &= ~256; - n2.shapeFlag &= ~512; - return false; + if (n2.shapeFlag & 6 && n1.component) { + const dirtyInstances = hmrDirtyComponents.get(n2.type); + if (dirtyInstances && dirtyInstances.has(n1.component)) { + n1.shapeFlag &= ~256; + n2.shapeFlag &= ~512; + return false; + } } return n1.type === n2.type && n1.key === n2.key; } @@ -8669,6 +8764,7 @@ Server rendered element contains fewer child nodes than client vdom.` el: null, anchor: null, target: null, + targetStart: null, targetAnchor: null, staticCount: 0, shapeFlag, @@ -8790,6 +8886,7 @@ Component that was made reactive: `, slotScopeIds: vnode.slotScopeIds, children: patchFlag === -1 && isArray(children) ? children.map(deepCloneVNode) : children, target: vnode.target, + targetStart: vnode.targetStart, targetAnchor: vnode.targetAnchor, staticCount: vnode.staticCount, shapeFlag: vnode.shapeFlag, @@ -8991,8 +9088,6 @@ Component that was made reactive: `, refs: EMPTY_OBJ, setupState: EMPTY_OBJ, setupContext: null, - attrsProxy: null, - slotsProxy: null, // suspense related suspense, suspenseId: suspense ? suspense.pendingId : 0, @@ -9065,12 +9160,12 @@ Component that was made reactive: `, return instance.vnode.shapeFlag & 4; } let isInSSRComponentSetup = false; - function setupComponent(instance, isSSR = false) { + function setupComponent(instance, isSSR = false, optimized = false) { isSSR && setInSSRSetupState(isSSR); const { props, children } = instance.vnode; const isStateful = isStatefulComponent(instance); initProps(instance, props, isStateful, isSSR); - initSlots(instance, children); + initSlots(instance, children, optimized); const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0; isSSR && setInSSRSetupState(false); return setupResult; @@ -9249,12 +9344,12 @@ Component that was made reactive: `, } } ; function getSlotsProxy(instance) { - return instance.slotsProxy || (instance.slotsProxy = new Proxy(instance.slots, { + return new Proxy(instance.slots, { get(target, key) { track(instance, "get", "$slots"); return target[key]; } - })); + }); } function createSetupContext(instance) { const expose = (exposed) => { @@ -9282,12 +9377,13 @@ Component that was made reactive: `, }; { let attrsProxy; + let slotsProxy; return Object.freeze({ get attrs() { return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers)); }, get slots() { - return getSlotsProxy(instance); + return slotsProxy || (slotsProxy = getSlotsProxy(instance)); }, get emit() { return (event, ...args) => instance.emit(event, ...args); @@ -9356,59 +9452,6 @@ Component that was made reactive: `, return c; }; - function useModel(props, name, options = EMPTY_OBJ) { - const i = getCurrentInstance(); - if (!i) { - warn$1(`useModel() called without active instance.`); - return ref(); - } - if (!i.propsOptions[0][name]) { - warn$1(`useModel() called with prop "${name}" which is not declared.`); - return ref(); - } - const camelizedName = camelize(name); - const hyphenatedName = hyphenate(name); - const res = customRef((track, trigger) => { - let localValue; - watchSyncEffect(() => { - const propValue = props[name]; - if (hasChanged(localValue, propValue)) { - localValue = propValue; - trigger(); - } - }); - return { - get() { - track(); - return options.get ? options.get(localValue) : localValue; - }, - set(value) { - const rawProps = i.vnode.props; - if (!(rawProps && // check if parent has passed v-model - (name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) { - localValue = value; - trigger(); - } - i.emit(`update:${name}`, options.set ? options.set(value) : value); - } - }; - }); - const modifierKey = name === "modelValue" ? "modelModifiers" : `${name}Modifiers`; - res[Symbol.iterator] = () => { - let i2 = 0; - return { - next() { - if (i2 < 2) { - return { value: i2++ ? props[modifierKey] || {} : res, done: false }; - } else { - return { done: true }; - } - } - }; - }; - return res; - } - function h(type, propsOrChildren, children) { const l = arguments.length; if (l === 2) { @@ -9439,6 +9482,7 @@ Component that was made reactive: `, const stringStyle = { style: "color:#f5222d" }; const keywordStyle = { style: "color:#eb2f96" }; const formatter = { + __vue_custom_formatter: true, header(obj) { if (!isObject(obj)) { return null; @@ -9613,7 +9657,7 @@ Component that was made reactive: `, } const ret = render(); ret.memo = memo.slice(); - ret.memoIndex = index; + ret.cacheIndex = index; return cache[index] = ret; } function isMemoSame(cached, memo) { @@ -9632,7 +9676,7 @@ Component that was made reactive: `, return true; } - const version = "3.4.31"; + const version = "3.4.36"; const warn = warn$1 ; const ErrorTypeStrings = ErrorTypeStrings$1 ; const devtools = devtools$1 ; @@ -10220,12 +10264,10 @@ Component that was made reactive: `, } } - function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspense, unmountChildren) { + function patchDOMProp(el, key, value, parentComponent) { if (key === "innerHTML" || key === "textContent") { - if (prevChildren) { - unmountChildren(prevChildren, parentComponent, parentSuspense); - } - el[key] = value == null ? "" : value; + if (value == null) return; + el[key] = value; return; } const tag = el.tagName; @@ -10356,7 +10398,7 @@ Expected function or array of functions, received type ${typeof value}.` const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123; - const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, parentComponent, parentSuspense, unmountChildren) => { + const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => { const isSVG = namespace === "svg"; if (key === "class") { patchClass(el, nextValue, isSVG); @@ -10367,15 +10409,7 @@ Expected function or array of functions, received type ${typeof value}.` patchEvent(el, key, prevValue, nextValue, parentComponent); } } else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) { - patchDOMProp( - el, - key, - nextValue, - prevChildren, - parentComponent, - parentSuspense, - unmountChildren - ); + patchDOMProp(el, key, nextValue); if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) { patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value"); } @@ -11408,12 +11442,12 @@ Make sure to use the production build (*.prod.js) when deploying for production. loc: locStub }; } - function createCacheExpression(index, value, isVNode = false) { + function createCacheExpression(index, value, isVOnce = false) { return { type: 20, index, value, - isVNode, + isVOnce, loc: locStub }; } @@ -13233,7 +13267,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins const constantType = doNotHoistNode ? 0 : getConstantType(child, context); if (constantType > 0) { if (constantType >= 2) { - child.codegenNode.patchFlag = -1 + (` /* HOISTED */` ); + child.codegenNode.patchFlag = -1; child.codegenNode = context.hoist(child.codegenNode); hoistedCount++; continue; @@ -13241,8 +13275,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins } else { const codegenNode = child.codegenNode; if (codegenNode.type === 13) { - const flag = getPatchFlag(codegenNode); - if ((!flag || flag === 512 || flag === 1) && getGeneratedPropsConstantType(child, context) >= 2) { + const flag = codegenNode.patchFlag; + if ((flag === void 0 || flag === 512 || flag === 1) && getGeneratedPropsConstantType(child, context) >= 2) { const props = getNodeProps(child); if (props) { codegenNode.props = context.hoist(props); @@ -13306,8 +13340,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins if (codegenNode.isBlock && node.tag !== "svg" && node.tag !== "foreignObject" && node.tag !== "math") { return 0; } - const flag = getPatchFlag(codegenNode); - if (!flag) { + if (codegenNode.patchFlag === void 0) { let returnType2 = 3; const generatedPropsType = getGeneratedPropsConstantType(node, context); if (generatedPropsType === 0) { @@ -13449,10 +13482,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins return codegenNode.props; } } - function getPatchFlag(node) { - const flag = node.patchFlag; - return flag ? parseInt(flag, 10) : void 0; - } function createTransformContext(root, { filename = "", @@ -13644,7 +13673,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins helper(FRAGMENT), void 0, root.children, - patchFlag + (` /* ${patchFlagText} */` ), + patchFlag, void 0, void 0, true, @@ -14132,6 +14161,17 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins disableTracking, isComponent } = node; + let patchFlagString; + if (patchFlag) { + { + if (patchFlag < 0) { + patchFlagString = patchFlag + ` /* ${PatchFlagNames[patchFlag]} */`; + } else { + const flagNames = Object.keys(PatchFlagNames).map(Number).filter((n) => n > 0 && patchFlag & n).map((n) => PatchFlagNames[n]).join(`, `); + patchFlagString = patchFlag + ` /* ${flagNames} */`; + } + } + } if (directives) { push(helper(WITH_DIRECTIVES) + `(`); } @@ -14144,7 +14184,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins const callHelper = isBlock ? getVNodeBlockHelper(context.inSSR, isComponent) : getVNodeHelper(context.inSSR, isComponent); push(helper(callHelper) + `(`, -2 /* None */, node); genNodeList( - genNullableArgs([tag, props, children, patchFlag, dynamicProps]), + genNullableArgs([tag, props, children, patchFlagString, dynamicProps]), context ); push(`)`); @@ -14275,15 +14315,16 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins function genCacheExpression(node, context) { const { push, helper, indent, deindent, newline } = context; push(`_cache[${node.index}] || (`); - if (node.isVNode) { + if (node.isVOnce) { indent(); push(`${helper(SET_BLOCK_TRACKING)}(-1),`); newline(); + push(`(`); } push(`_cache[${node.index}] = `); genNode(node.value, context); - if (node.isVNode) { - push(`,`); + if (node.isVOnce) { + push(`).cacheIndex = ${node.index},`); newline(); push(`${helper(SET_BLOCK_TRACKING)}(1),`); newline(); @@ -14527,7 +14568,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins helper(FRAGMENT), createObjectExpression([keyProperty]), children, - patchFlag + (` /* ${patchFlagText} */` ), + patchFlag, void 0, void 0, true, @@ -14677,7 +14718,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins helper(FRAGMENT), void 0, renderExp, - fragmentFlag + (` /* ${PatchFlagNames[fragmentFlag]} */` ), + fragmentFlag, void 0, void 0, true, @@ -14717,7 +14758,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins helper(FRAGMENT), keyProperty ? createObjectExpression([keyProperty]) : void 0, node.children, - 64 + (` /* ${PatchFlagNames[64]} */` ), + 64, void 0, void 0, true, @@ -15122,7 +15163,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins const isDynamicComponent = isObject(vnodeTag) && vnodeTag.callee === RESOLVE_DYNAMIC_COMPONENT; let vnodeProps; let vnodeChildren; - let vnodePatchFlag; let patchFlag = 0; let vnodeDynamicProps; let dynamicPropNames; @@ -15193,25 +15233,15 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins vnodeChildren = node.children; } } - if (patchFlag !== 0) { - { - if (patchFlag < 0) { - vnodePatchFlag = patchFlag + ` /* ${PatchFlagNames[patchFlag]} */`; - } else { - const flagNames = Object.keys(PatchFlagNames).map(Number).filter((n) => n > 0 && patchFlag & n).map((n) => PatchFlagNames[n]).join(`, `); - vnodePatchFlag = patchFlag + ` /* ${flagNames} */`; - } - } - if (dynamicPropNames && dynamicPropNames.length) { - vnodeDynamicProps = stringifyDynamicPropNames(dynamicPropNames); - } + if (dynamicPropNames && dynamicPropNames.length) { + vnodeDynamicProps = stringifyDynamicPropNames(dynamicPropNames); } node.codegenNode = createVNodeCall( context, vnodeTag, vnodeProps, vnodeChildren, - vnodePatchFlag, + patchFlag === 0 ? void 0 : patchFlag, vnodeDynamicProps, vnodeDirectives, !!shouldUseBlock, diff --git a/corejs/dist/vue.global.prod.js b/corejs/dist/vue.global.prod.js index fea2420..f9f7c4c 100644 --- a/corejs/dist/vue.global.prod.js +++ b/corejs/dist/vue.global.prod.js @@ -1,9 +1,9 @@ /** -* vue v3.4.31 +* vue v3.4.36 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/var Vue=function(e){"use strict";let t,n,r,i,l,s,o,a,c;/*! #__NO_SIDE_EFFECTS__ */function u(e,t){let n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}let d={},p=[],h=()=>{},f=()=>!1,m=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||97>e.charCodeAt(2)),g=e=>e.startsWith("onUpdate:"),y=Object.assign,b=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},_=Object.prototype.hasOwnProperty,S=(e,t)=>_.call(e,t),x=Array.isArray,C=e=>"[object Map]"===L(e),k=e=>"[object Set]"===L(e),T=e=>"[object Date]"===L(e),w=e=>"[object RegExp]"===L(e),E=e=>"function"==typeof e,A=e=>"string"==typeof e,N=e=>"symbol"==typeof e,I=e=>null!==e&&"object"==typeof e,R=e=>(I(e)||E(e))&&E(e.then)&&E(e.catch),O=Object.prototype.toString,L=e=>O.call(e),$=e=>L(e).slice(8,-1),M=e=>"[object Object]"===L(e),P=e=>A(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,F=u(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),V=u("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),B=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},D=/-(\w)/g,U=B(e=>e.replace(D,(e,t)=>t?t.toUpperCase():"")),j=/\B([A-Z])/g,H=B(e=>e.replace(j,"-$1").toLowerCase()),q=B(e=>e.charAt(0).toUpperCase()+e.slice(1)),W=B(e=>e?`on${q(e)}`:""),K=(e,t)=>!Object.is(e,t),z=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},J=e=>{let t=parseFloat(e);return isNaN(t)?e:t},X=e=>{let t=A(e)?Number(e):NaN;return isNaN(t)?e:t},Q=()=>t||(t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),Z=u("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function Y(e){if(x(e)){let t={};for(let n=0;n{if(e){let n=e.split(et);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ei(e){let t="";if(A(e))t=e;else if(x(e))for(let n=0;neu(e,t))}let ep=e=>!!(e&&!0===e.__v_isRef),eh=e=>A(e)?e:null==e?"":x(e)||I(e)&&(e.toString===O||!E(e.toString))?ep(e)?eh(e.value):JSON.stringify(e,ef,2):String(e),ef=(e,t)=>ep(t)?ef(e,t.value):C(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[em(t,r)+" =>"]=n,e),{})}:k(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>em(e))}:N(t)?em(t):!I(t)||x(t)||M(t)?t:String(t),em=(e,t="")=>{var n;return N(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};class eg{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=n,!e&&n&&(this.index=(n.scopes||(n.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){let t=n;try{return n=this,e()}finally{n=t}}}on(){n=this}off(){n=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),ew()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=ex,t=r;try{return ex=!0,r=this,this._runnings++,eb(this),this.fn()}finally{e_(this),this._runnings--,r=t,ex=e}}stop(){this.active&&(eb(this),e_(this),this.onStop&&this.onStop(),this.active=!1)}}function eb(e){e._trackId++,e._depsLength=0}function e_(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{let n=new Map;return n.cleanup=e,n.computed=t,n},eO=new WeakMap,eL=Symbol(""),e$=Symbol("");function eM(e,t,n){if(ex&&r){let t=eO.get(e);t||eO.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=eR(()=>t.delete(n))),eA(r,i)}}function eP(e,t,n,r,i,l){let s=eO.get(e);if(!s)return;let o=[];if("clear"===t)o=[...s.values()];else if("length"===n&&x(e)){let e=Number(r);s.forEach((t,n)=>{("length"===n||!N(n)&&n>=e)&&o.push(t)})}else switch(void 0!==n&&o.push(s.get(n)),t){case"add":x(e)?P(n)&&o.push(s.get("length")):(o.push(s.get(eL)),C(e)&&o.push(s.get(e$)));break;case"delete":!x(e)&&(o.push(s.get(eL)),C(e)&&o.push(s.get(e$)));break;case"set":C(e)&&o.push(s.get(eL))}for(let e of(eC++,o))e&&eI(e,4);eE()}let eF=u("__proto__,__v_isRef,__isVue"),eV=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(N)),eB=function(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){let n=ty(this);for(let e=0,t=this.length;e{e[t]=function(...e){eT(),eC++;let n=ty(this)[t].apply(this,e);return eE(),ew(),n}}),e}();function eD(e){N(e)||(e=String(e));let t=ty(this);return eM(t,"has",e),t.hasOwnProperty(e)}class eU{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){let r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?ta:to:i?ts:tl).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let l=x(e);if(!r){if(l&&S(eB,t))return Reflect.get(eB,t,n);if("hasOwnProperty"===t)return eD}let s=Reflect.get(e,t,n);return(N(t)?eV.has(t):eF(t))?s:(r||eM(e,"get",t),i)?s:tk(s)?l&&P(t)?s:s.value:I(s)?r?td(s):tc(s):s}}class ej extends eU{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){let t=tf(i);if(tm(n)||tf(n)||(i=ty(i),n=ty(n)),!x(e)&&tk(i)&&!tk(n))return!t&&(i.value=n,!0)}let l=x(e)&&P(t)?Number(t)e,eJ=e=>Reflect.getPrototypeOf(e);function eX(e,t,n=!1,r=!1){let i=ty(e=e.__v_raw),l=ty(t);n||(K(t,l)&&eM(i,"get",t),eM(i,"get",l));let{has:s}=eJ(i),o=r?eG:n?t_:tb;return s.call(i,t)?o(e.get(t)):s.call(i,l)?o(e.get(l)):void(e!==i&&e.get(t))}function eQ(e,t=!1){let n=this.__v_raw,r=ty(n),i=ty(e);return t||(K(e,i)&&eM(r,"has",e),eM(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function eZ(e,t=!1){return e=e.__v_raw,t||eM(ty(e),"iterate",eL),Reflect.get(e,"size",e)}function eY(e){e=ty(e);let t=ty(this);return eJ(t).has.call(t,e)||(t.add(e),eP(t,"add",e,e)),this}function e0(e,t){t=ty(t);let n=ty(this),{has:r,get:i}=eJ(n),l=r.call(n,e);l||(e=ty(e),l=r.call(n,e));let s=i.call(n,e);return n.set(e,t),l?K(t,s)&&eP(n,"set",e,t):eP(n,"add",e,t),this}function e1(e){let t=ty(this),{has:n,get:r}=eJ(t),i=n.call(t,e);i||(e=ty(e),i=n.call(t,e)),r&&r.call(t,e);let l=t.delete(e);return i&&eP(t,"delete",e,void 0),l}function e2(){let e=ty(this),t=0!==e.size,n=e.clear();return t&&eP(e,"clear",void 0,void 0),n}function e3(e,t){return function(n,r){let i=this,l=i.__v_raw,s=ty(l),o=t?eG:e?t_:tb;return e||eM(s,"iterate",eL),l.forEach((e,t)=>n.call(r,o(e),o(t),i))}}function e6(e,t,n){return function(...r){let i=this.__v_raw,l=ty(i),s=C(l),o="entries"===e||e===Symbol.iterator&&s,a=i[e](...r),c=n?eG:t?t_:tb;return t||eM(l,"iterate","keys"===e&&s?e$:eL),{next(){let{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function e4(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[e8,e5,e9,e7]=function(){let e={get(e){return eX(this,e)},get size(){return eZ(this)},has:eQ,add:eY,set:e0,delete:e1,clear:e2,forEach:e3(!1,!1)},t={get(e){return eX(this,e,!1,!0)},get size(){return eZ(this)},has:eQ,add:eY,set:e0,delete:e1,clear:e2,forEach:e3(!1,!0)},n={get(e){return eX(this,e,!0)},get size(){return eZ(this,!0)},has(e){return eQ.call(this,e,!0)},add:e4("add"),set:e4("set"),delete:e4("delete"),clear:e4("clear"),forEach:e3(!0,!1)},r={get(e){return eX(this,e,!0,!0)},get size(){return eZ(this,!0)},has(e){return eQ.call(this,e,!0)},add:e4("add"),set:e4("set"),delete:e4("delete"),clear:e4("clear"),forEach:e3(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=e6(i,!1,!1),n[i]=e6(i,!0,!1),t[i]=e6(i,!1,!0),r[i]=e6(i,!0,!0)}),[e,n,t,r]}();function te(e,t){let n=t?e?e7:e9:e?e5:e8;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(S(n,r)&&r in t?n:t,r,i)}let tt={get:te(!1,!1)},tn={get:te(!1,!0)},tr={get:te(!0,!1)},ti={get:te(!0,!0)},tl=new WeakMap,ts=new WeakMap,to=new WeakMap,ta=new WeakMap;function tc(e){return tf(e)?e:tp(e,!1,eq,tt,tl)}function tu(e){return tp(e,!1,eK,tn,ts)}function td(e){return tp(e,!0,eW,tr,to)}function tp(e,t,n,r,i){if(!I(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let l=i.get(e);if(l)return l;let s=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===s)return e;let o=new Proxy(e,2===s?r:n);return i.set(e,o),o}function th(e){return tf(e)?th(e.__v_raw):!!(e&&e.__v_isReactive)}function tf(e){return!!(e&&e.__v_isReadonly)}function tm(e){return!!(e&&e.__v_isShallow)}function tg(e){return!!e&&!!e.__v_raw}function ty(e){let t=e&&e.__v_raw;return t?ty(t):e}function tv(e){return Object.isExtensible(e)&&G(e,"__v_skip",!0),e}let tb=e=>I(e)?tc(e):e,t_=e=>I(e)?td(e):e;class tS{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ev(()=>e(this._value),()=>tC(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){let e=ty(this);return(!e._cacheable||e.effect.dirty)&&K(e._value,e._value=e.effect.run())&&tC(e,4),tx(e),e.effect._dirtyLevel>=2&&tC(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function tx(e){var t;ex&&r&&(e=ty(e),eA(r,null!=(t=e.dep)?t:e.dep=eR(()=>e.dep=void 0,e instanceof tS?e:void 0)))}function tC(e,t=4,n,r){let i=(e=ty(e)).dep;i&&eI(i,t)}function tk(e){return!!(e&&!0===e.__v_isRef)}function tT(e){return tw(e,!1)}function tw(e,t){return tk(e)?e:new tE(e,t)}class tE{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ty(e),this._value=t?e:tb(e)}get value(){return tx(this),this._value}set value(e){let t=this.__v_isShallow||tm(e)||tf(e);K(e=t?e:ty(e),this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:tb(e),tC(this,4))}}function tA(e){return tk(e)?e.value:e}let tN={get:(e,t,n)=>tA(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return tk(i)&&!tk(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function tI(e){return th(e)?e:new Proxy(e,tN)}class tR{constructor(e){this.dep=void 0,this.__v_isRef=!0;let{get:t,set:n}=e(()=>tx(this),()=>tC(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function tO(e){return new tR(e)}class tL{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,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(){return function(e,t){let n=eO.get(e);return n&&n.get(t)}(ty(this._object),this._key)}}class t${constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function tM(e,t,n){let r=e[t];return tk(r)?r:new tL(e,t,n)}function tP(e,t,n,r){try{return r?e(...r):e()}catch(e){tV(e,t,n)}}function tF(e,t,n,r){if(E(e)){let i=tP(e,t,n,r);return i&&R(i)&&i.catch(e=>{tV(e,t,n)}),i}if(x(e)){let i=[];for(let l=0;l>>1,i=tU[r],l=t0(i);lt0(e)-t0(t));if(tH.length=0,tq){tq.push(...e);return}for(tW=0,tq=e;tWnull==e.id?1/0:e.id,t1=(e,t)=>{let n=t0(e)-t0(t);if(0===n){if(e.pre&&!t.pre)return -1;if(t.pre&&!e.pre)return 1}return n};function t2(e,t,...n){let r;if(e.isUnmounted)return;let i=e.vnode.props||d,l=n,s=t.startsWith("update:"),o=s&&t.slice(7);if(o&&o in i){let{number:e,trim:t}=i[`${"modelValue"===o?"model":o}Modifiers`]||d;t&&(l=n.map(e=>A(e)?e.trim():e)),e&&(l=n.map(J))}let a=i[r=W(t)]||i[r=W(U(t))];!a&&s&&(a=i[r=W(H(t))]),a&&tF(a,e,6,l);let c=i[r+"Once"];if(c){if(e.emitted){if(e.emitted[r])return}else e.emitted={};e.emitted[r]=!0,tF(c,e,6,l)}}function t3(e,t){return!!(e&&m(t))&&(S(e,(t=t.slice(2).replace(/Once$/,""))[0].toLowerCase()+t.slice(1))||S(e,H(t))||S(e,t))}let t6=null,t4=null;function t8(e){let t=t6;return t6=e,t4=e&&e.type.__scopeId||null,t}function t5(e,t=t6,n){if(!t||e._n)return e;let r=(...n)=>{let i;r._d&&(r9+=-1);let l=t8(t);try{i=e(...n)}finally{t8(l),r._d&&(r9+=1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function t9(e){let t,n;let{type:r,vnode:i,proxy:l,withProxy:s,propsOptions:[o],slots:a,attrs:c,emit:u,render:d,renderCache:p,props:h,data:f,setupState:m,ctx:y,inheritAttrs:b}=e,_=t8(e);try{if(4&i.shapeFlag){let e=s||l;t=id(d.call(e,e,p,h,m,f,y)),n=c}else t=id(r.length>1?r(h,{attrs:c,slots:a,emit:u}):r(h,null)),n=r.props?c:t7(c)}catch(n){r6.length=0,tV(n,e,1),t=io(r2)}let S=t;if(n&&!1!==b){let e=Object.keys(n),{shapeFlag:t}=S;e.length&&7&t&&(o&&e.some(g)&&(n=ne(n,o)),S=ic(S,n,!1,!0))}return i.dirs&&((S=ic(S,null,!1,!0)).dirs=S.dirs?S.dirs.concat(i.dirs):i.dirs),i.transition&&(S.transition=i.transition),t=S,t8(_),t}let t7=e=>{let t;for(let n in e)("class"===n||"style"===n||m(n))&&((t||(t={}))[n]=e[n]);return t},ne=(e,t)=>{let n={};for(let r in e)g(r)&&r.slice(9) in t||(n[r]=e[r]);return n};function nt(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;ie.__isSuspense,na=0;function nc(e,t){let n=e.props&&e.props[t];E(n)&&n()}function nu(e,t,n,r,i,l,s,o,a,c,u=!1){let d;let{p:p,m:h,um:f,n:m,o:{parentNode:g,remove:y}}=c,b=function(e){let t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);b&&t&&t.pendingBranch&&(d=t.pendingId,t.deps++);let _=e.props?X(e.props.timeout):void 0,S=l,x={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:na++,timeout:"number"==typeof _?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:s,pendingId:o,effects:a,parentComponent:c,container:u}=x,p=!1;x.isHydrating?x.isHydrating=!1:e||((p=i&&s.transition&&"out-in"===s.transition.mode)&&(i.transition.afterLeave=()=>{o===x.pendingId&&(h(s,u,l===S?m(i):l,0),tQ(a))}),i&&(g(i.el)!==x.hiddenContainer&&(l=m(i)),f(i,c,x,!0)),p||h(s,u,l,0)),nh(x,s),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,_=!1;for(;y;){if(y.pendingBranch){y.effects.push(...a),_=!0;break}y=y.parent}_||p||tQ(a),x.effects=[],b&&t&&t.pendingBranch&&d===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),nc(r,"onResolve")},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:l}=x;nc(t,"onFallback");let s=m(n),c=()=>{x.isInFallback&&(p(null,e,i,s,r,null,l,o,a),nh(x,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),x.isInFallback=!0,f(n,r,null,!0),u||c()},move(e,t,n){x.activeBranch&&h(x.activeBranch,e,t,n),x.container=e},next:()=>x.activeBranch&&m(x.activeBranch),registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{tV(t,e,0)}).then(l=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:o}=e;iT(e,l,!1),i&&(o.el=i);let a=!i&&e.subTree.el;t(e,o,g(i||e.subTree.el),i?null:m(e.subTree),x,s,n),a&&y(a),nn(e,o.el),r&&0==--x.deps&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&f(x.activeBranch,n,e,t),x.pendingBranch&&f(x.pendingBranch,n,e,t)}};return x}function nd(e){let t;if(E(e)){let n=r9&&e._c;n&&(e._d=!1,r8()),e=e(),n&&(e._d=!0,t=r4,r5())}return x(e)&&(e=function(e,t=!0){let n;for(let t=0;tt!==e)),e}function np(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):tQ(e)}function nh(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,nn(r,i))}function nf(e,t,n=ib,r=!1){if(n){let i=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{eT();let i=iS(n),l=tF(t,n,e,r);return i(),ew(),l});return r?i.unshift(l):i.push(l),l}}let nm=e=>(t,n=ib)=>{ik&&"sp"!==e||nf(e,(...e)=>t(...e),n)},ng=nm("bm"),ny=nm("m"),nv=nm("bu"),nb=nm("u"),n_=nm("bum"),nS=nm("um"),nx=nm("sp"),nC=nm("rtg"),nk=nm("rtc");function nT(e,t=ib){nf("ec",e,t)}function nw(e,t,n,r){let i=e.dirs,l=t&&t.dirs;for(let s=0;s!!e.type.__asyncLoader;function nN(e,t){let{ref:n,props:r,children:i,ce:l}=t.vnode,s=io(e,r,i);return s.ref=n,s.ce=l,delete t.vnode.ce,s}let nI=e=>e?iC(e)?iI(e):nI(e.parent):null,nR=y(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nI(e.parent),$root:e=>nI(e.root),$emit:e=>e.emit,$options:e=>nB(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,tJ(e.update)}),$nextTick:e=>e.n||(e.n=tG.bind(e.proxy)),$watch:e=>rk.bind(e)}),nO=(e,t)=>e!==d&&!e.__isScriptSetup&&S(e,t),nL={get({_:e},t){let n,r,i;if("__v_skip"===t)return!0;let{ctx:l,setupState:s,data:o,props:a,accessCache:c,type:u,appContext:p}=e;if("$"!==t[0]){let r=c[t];if(void 0!==r)switch(r){case 1:return s[t];case 2:return o[t];case 4:return l[t];case 3:return a[t]}else{if(nO(s,t))return c[t]=1,s[t];if(o!==d&&S(o,t))return c[t]=2,o[t];if((n=e.propsOptions[0])&&S(n,t))return c[t]=3,a[t];if(l!==d&&S(l,t))return c[t]=4,l[t];nF&&(c[t]=0)}}let h=nR[t];return h?("$attrs"===t&&eM(e.attrs,"get",""),h(e)):(r=u.__cssModules)&&(r=r[t])?r:l!==d&&S(l,t)?(c[t]=4,l[t]):S(i=p.config.globalProperties,t)?i[t]:void 0},set({_:e},t,n){let{data:r,setupState:i,ctx:l}=e;return nO(i,t)?(i[t]=n,!0):r!==d&&S(r,t)?(r[t]=n,!0):!S(e.props,t)&&!("$"===t[0]&&t.slice(1) in e)&&(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l}},s){let o;return!!n[s]||e!==d&&S(e,s)||nO(t,s)||(o=l[0])&&S(o,s)||S(r,s)||S(nR,s)||S(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:S(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},n$=y({},nL,{get(e,t){if(t!==Symbol.unscopables)return nL.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Z(t)});function nM(){let e=i_();return e.setupContext||(e.setupContext=iN(e))}function nP(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let nF=!0;function nV(e,t,n){tF(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function nB(e){let t;let n=e.type,{mixins:r,extends:i}=n,{mixins:l,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(n);return a?t=a:l.length||r||i?(t={},l.length&&l.forEach(e=>nD(t,e,o,!0)),nD(t,n,o)):t=n,I(n)&&s.set(n,t),t}function nD(e,t,n,r=!1){let{mixins:i,extends:l}=t;for(let s in l&&nD(e,l,n,!0),i&&i.forEach(t=>nD(e,t,n,!0)),t)if(r&&"expose"===s);else{let r=nU[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}let nU={data:nj,props:nK,emits:nK,methods:nW,computed:nW,beforeCreate:nq,created:nq,beforeMount:nq,mounted:nq,beforeUpdate:nq,updated:nq,beforeDestroy:nq,beforeUnmount:nq,destroyed:nq,unmounted:nq,activated:nq,deactivated:nq,errorCaptured:nq,serverPrefetch:nq,components:nW,directives:nW,watch:function(e,t){if(!e)return t;if(!t)return e;let n=y(Object.create(null),e);for(let r in t)n[r]=nq(e[r],t[r]);return n},provide:nj,inject:function(e,t){return nW(nH(e),nH(t))}};function nj(e,t){return t?e?function(){return y(E(e)?e.call(this,this):e,E(t)?t.call(this,this):t)}:t:e}function nH(e){if(x(e)){let t={};for(let n=0;n1)return n&&E(t)?t.call(r&&r.proxy):t}}let nZ={},nY=()=>Object.create(nZ),n0=e=>Object.getPrototypeOf(e)===nZ;function n1(e,t,n,r){let i;let[l,s]=e.propsOptions,o=!1;if(t)for(let a in t){let c;if(F(a))continue;let u=t[a];l&&S(l,c=U(a))?s&&s.includes(c)?(i||(i={}))[c]=u:n[c]=u:t3(e.emitsOptions,a)||a in r&&u===r[a]||(r[a]=u,o=!0)}if(s){let t=ty(n),r=i||d;for(let i=0;in6(t)===n6(e)):E(t)?n6(t)===n6(e)?0:-1:-1}let n8=e=>"_"===e[0]||"$stable"===e,n5=e=>x(e)?e.map(id):[id(e)],n9=(e,t,n)=>{if(t._n)return t;let r=t5((...e)=>n5(t(...e)),n);return r._c=!1,r},n7=(e,t,n)=>{let r=e._ctx;for(let n in e){if(n8(n))continue;let i=e[n];if(E(i))t[n]=n9(n,i,r);else if(null!=i){let e=n5(i);t[n]=()=>e}}},re=(e,t)=>{let n=n5(t);e.slots.default=()=>n},rt=(e,t)=>{let n=e.slots=nY();if(32&e.vnode.shapeFlag){let e=t._;e?(y(n,t),G(n,"_",e,!0)):n7(t,n)}else t&&re(e,t)},rn=(e,t,n)=>{let{vnode:r,slots:i}=e,l=!0,s=d;if(32&r.shapeFlag){let e=t._;e?n&&1===e?l=!1:(y(i,t),n||1!==e||delete i._):(l=!t.$stable,n7(t,i)),s=t}else t&&(re(e,t),s={default:1});if(l)for(let e in i)n8(e)||null!=s[e]||delete i[e]};function rr(e,t,n,r,i=!1){if(x(e)){e.forEach((e,l)=>rr(e,t&&(x(t)?t[l]:t),n,r,i));return}if(nA(r)&&!i)return;let l=4&r.shapeFlag?iI(r.component):r.el,s=i?null:l,{i:o,r:a}=e,c=t&&t.r,u=o.refs===d?o.refs={}:o.refs,p=o.setupState;if(null!=c&&c!==a&&(A(c)?(u[c]=null,S(p,c)&&(p[c]=null)):tk(c)&&(c.value=null)),E(a))tP(a,o,12,[s,u]);else{let t=A(a),r=tk(a);if(t||r){let o=()=>{if(e.f){let n=t?S(p,a)?p[a]:u[a]:a.value;i?x(n)&&b(n,l):x(n)?n.includes(l)||n.push(l):t?(u[a]=[l],S(p,a)&&(p[a]=u[a])):(a.value=[l],e.k&&(u[e.k]=a.value))}else t?(u[a]=s,S(p,a)&&(p[a]=s)):r&&(a.value=s,e.k&&(u[e.k]=s))};s?(o.id=-1,rd(o,n)):o()}}}let ri=!1,rl=()=>{ri||(console.error("Hydration completed but contains mismatches."),ri=!0)},rs=e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName,ro=e=>e.namespaceURI.includes("MathML"),ra=e=>rs(e)?"svg":ro(e)?"mathml":void 0,rc=e=>8===e.nodeType;function ru(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:l,parentNode:s,remove:o,insert:a,createComment:c}}=e,u=(n,r,o,c,m,_=!1)=>{_=_||!!r.dynamicChildren;let S=rc(n)&&"["===n.data,x=()=>f(n,r,o,c,m,S),{type:C,ref:k,shapeFlag:T,patchFlag:w}=r,E=n.nodeType;r.el=n,-2===w&&(_=!1,r.dynamicChildren=null);let A=null;switch(C){case r1:3!==E?""===r.children?(a(r.el=i(""),s(n),n),A=n):A=x():(n.data!==r.children&&(rl(),n.data=r.children),A=l(n));break;case r2:b(n)?(A=l(n),y(r.el=n.content.firstChild,n,o)):A=8!==E||S?x():l(n);break;case r3:if(S&&(E=(n=l(n)).nodeType),1===E||3===E){A=n;let e=!r.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;let{type:a,props:c,patchFlag:u,shapeFlag:d,dirs:h,transition:f}=t,g="input"===a||"option"===a;if(g||-1!==u){let a;h&&nw(t,null,n,"created");let _=!1;if(b(e)){_=rg(i,f)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;_&&f.beforeEnter(r),y(r,e,n),t.el=e=r}if(16&d&&!(c&&(c.innerHTML||c.textContent))){let r=p(e.firstChild,t,e,n,i,l,s);for(;r;){rl();let e=r;r=r.nextSibling,o(e)}}else 8&d&&e.textContent!==t.children&&(rl(),e.textContent=t.children);if(c){if(g||!s||48&u)for(let t in c)(g&&(t.endsWith("value")||"indeterminate"===t)||m(t)&&!F(t)||"."===t[0])&&r(e,t,null,c[t],void 0,void 0,n);else c.onClick&&r(e,"onClick",null,c.onClick,void 0,void 0,n)}(a=c&&c.onVnodeBeforeMount)&&ig(a,n,t),h&&nw(t,null,n,"beforeMount"),((a=c&&c.onVnodeMounted)||h||_)&&np(()=>{a&&ig(a,n,t),_&&f.enter(e),h&&nw(t,null,n,"mounted")},i)}return e.nextSibling},p=(e,t,r,l,s,o,c)=>{c=c||!!t.dynamicChildren;let d=t.children,p=d.length;for(let t=0;t{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=s(e),h=p(l(e),t,d,n,r,i,o);return h&&rc(h)&&"]"===h.data?l(t.anchor=h):(rl(),a(t.anchor=c("]"),d,h),h)},f=(e,t,r,i,a,c)=>{if(rl(),t.el=null,c){let t=g(e);for(;;){let n=l(e);if(n&&n!==t)o(n);else break}}let u=l(e),d=s(e);return o(e),n(null,t,d,u,r,i,ra(d),a),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=l(e))&&rc(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return l(e);r--}return e},y=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},b=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),tY(),t._vnode=e;return}u(t.firstChild,e,null,null,null),tY(),t._vnode=e},u]}let rd=np;function rp(e){return rh(e,ru)}function rh(e,t){var n;let r,i;Q().__VUE__=!0;let{insert:s,remove:o,patchProp:a,createElement:c,createText:u,createComment:f,setText:m,setElementText:g,parentNode:b,nextSibling:_,setScopeId:C=h,insertStaticContent:k}=e,T=(e,t,n,r=null,i=null,l=null,s,o=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!ir(e,t)&&(r=eo(e),en(e,i,l,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);let{type:c,ref:u,shapeFlag:d}=t;switch(c){case r1:w(e,t,n,r);break;case r2:A(e,t,n,r);break;case r3:null==e&&N(t,n,r,s);break;case r0:q(e,t,n,r,i,l,s,o,a);break;default:1&d?$(e,t,n,r,i,l,s,o,a):6&d?W(e,t,n,r,i,l,s,o,a):64&d?c.process(e,t,n,r,i,l,s,o,a,eu):128&d&&c.process(e,t,n,r,i,l,s,o,a,eu)}null!=u&&i&&rr(u,e&&e.ref,l,t||e,!t)},w=(e,t,n,r)=>{if(null==e)s(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&m(n,t.children)}},A=(e,t,n,r)=>{null==e?s(t.el=f(t.children||""),n,r):t.el=e.el},N=(e,t,n,r)=>{[e.el,e.anchor]=k(e.children,t,n,r,e.el,e.anchor)},O=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=_(e),s(e,n,r),e=i;s(t,n,r)},L=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=_(e),o(e),e=n;o(t)},$=(e,t,n,r,i,l,s,o,a)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?M(t,n,r,i,l,s,o,a):B(e,t,i,l,s,o,a)},M=(e,t,n,r,i,l,o,u)=>{let d,p;let{props:h,shapeFlag:f,transition:m,dirs:y}=e;if(d=e.el=c(e.type,l,h&&h.is,h),8&f?g(d,e.children):16&f&&V(e.children,d,null,r,i,rf(e,l),o,u),y&&nw(e,null,r,"created"),P(d,e,e.scopeId,o,r),h){for(let t in h)"value"===t||F(t)||a(d,t,null,h[t],l,e.children,r,i,es);"value"in h&&a(d,"value",null,h.value,l),(p=h.onVnodeBeforeMount)&&ig(p,r,e)}y&&nw(e,null,r,"beforeMount");let b=rg(i,m);b&&m.beforeEnter(d),s(d,t,n),((p=h&&h.onVnodeMounted)||b||y)&&rd(()=>{p&&ig(p,r,e),b&&m.enter(d),y&&nw(e,null,r,"mounted")},i)},P=(e,t,n,r,i)=>{if(n&&C(e,n),r)for(let t=0;t{for(let c=a;c{let o;let c=t.el=e.el,{patchFlag:u,dynamicChildren:p,dirs:h}=t;u|=16&e.patchFlag;let f=e.props||d,m=t.props||d;if(n&&rm(n,!1),(o=m.onVnodeBeforeUpdate)&&ig(o,n,t,e),h&&nw(t,e,n,"beforeUpdate"),n&&rm(n,!0),p?D(e.dynamicChildren,p,c,n,r,rf(t,i),l):s||Z(e,t,c,null,n,r,rf(t,i),l,!1),u>0){if(16&u)j(c,t,f,m,n,r,i);else if(2&u&&f.class!==m.class&&a(c,"class",null,m.class,i),4&u&&a(c,"style",f.style,m.style,i),8&u){let l=t.dynamicProps;for(let t=0;t{o&&ig(o,n,t,e),h&&nw(t,e,n,"updated")},r)},D=(e,t,n,r,i,l,s)=>{for(let o=0;o{if(n!==r){if(n!==d)for(let o in n)F(o)||o in r||a(e,o,n[o],null,s,t.children,i,l,es);for(let o in r){if(F(o))continue;let c=r[o],u=n[o];c!==u&&"value"!==o&&a(e,o,u,c,s,t.children,i,l,es)}"value"in r&&a(e,"value",n.value,r.value,s)}},q=(e,t,n,r,i,l,o,a,c)=>{let d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u(""),{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(a=a?a.concat(m):m),null==e?(s(d,n,r),s(p,n,r),V(t.children||[],n,p,i,l,o,a,c)):h>0&&64&h&&f&&e.dynamicChildren?(D(e.dynamicChildren,f,n,i,l,o,a),(null!=t.key||i&&t===i.subTree)&&ry(e,t,!0)):Z(e,t,n,p,i,l,o,a,c)},W=(e,t,n,r,i,l,s,o,a)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,s,a):K(t,n,r,i,l,s,a):G(e,t,a)},K=(e,t,n,r,i,s,o)=>{let a=e.component=function(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||iy,l={uid:iv++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new eg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:function e(t,n,r=!1){let i=n.propsCache,l=i.get(t);if(l)return l;let s=t.props,o={},a=[],c=!1;if(!E(t)){let i=t=>{c=!0;let[r,i]=e(t,n,!0);y(o,r),i&&a.push(...i)};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!s&&!c)return I(t)&&i.set(t,p),p;if(x(s))for(let e=0;e-1,r[1]=n<0||e-1||S(r,"default"))&&a.push(t)}}}let u=[o,a];return I(t)&&i.set(t,u),u}(r,i),emitsOptions:function e(t,n,r=!1){let i=n.emitsCache,l=i.get(t);if(void 0!==l)return l;let s=t.emits,o={},a=!1;if(!E(t)){let i=t=>{let r=e(t,n,!0);r&&(a=!0,y(o,r))};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return s||a?(x(s)?s.forEach(e=>o[e]=null):y(o,s),I(t)&&i.set(t,o),o):(I(t)&&i.set(t,null),null)}(r,i),emit:null,emitted:null,propsDefaults:d,inheritAttrs:r.inheritAttrs,ctx:d,data:d,props:d,attrs:d,slots:d,refs:d,setupState:d,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=t2.bind(null,l),e.ce&&e.ce(l),l}(e,r,i);rE(e)&&(a.ctx.renderer=eu),function(e,t=!1){t&&l(t);let{props:n,children:r}=e.vnode,i=iC(e);(function(e,t,n,r=!1){let i={},l=nY();for(let n in e.propsDefaults=Object.create(null),n1(e,t,i,l),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:tu(i):e.type.props?e.props=i:e.props=l,e.attrs=l})(e,n,i,t),rt(e,r),i&&function(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nL);let{setup:r}=n;if(r){let n=e.setupContext=r.length>1?iN(e):null,i=iS(e);eT();let l=tP(r,e,0,[e.props,n]);if(ew(),i(),R(l)){if(l.then(ix,ix),t)return l.then(n=>{iT(e,n,t)}).catch(t=>{tV(t,e,0)});e.asyncDep=l}else iT(e,l,t)}else iE(e,t)}(e,t),t&&l(!1)}(a),a.asyncDep?(i&&i.registerDep(a,J,o),e.el||A(null,a.subTree=io(r2),t,n)):J(a,e,t,n,i,s,o)},G=(e,t,n)=>{let r=t.component=e.component;if(function(e,t,n){let{props:r,children:i,component:l}=e,{props:s,children:o,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!n||!(a>=0))return(!!i||!!o)&&(!o||!o.$stable)||r!==s&&(r?!s||nt(r,s,c):!!s);if(1024&a)return!0;if(16&a)return r?nt(r,s,c):!!s;if(8&a){let e=t.dynamicProps;for(let t=0;ttj&&tU.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},J=(e,t,n,r,l,s,o)=>{let a=()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:c,vnode:u}=e;{let t=function e(t){let n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(t){n&&(n.el=u.el,X(e,n,o)),t.asyncDep.then(()=>{e.isUnmounted||a()});return}}let d=n;rm(e,!1),n?(n.el=u.el,X(e,n,o)):n=u,r&&z(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&ig(t,c,n,u),rm(e,!0);let p=t9(e),h=e.subTree;e.subTree=p,T(h,p,b(h.el),eo(h),e,l,s),n.el=p.el,null===d&&nn(e,p.el),i&&rd(i,l),(t=n.props&&n.props.onVnodeUpdated)&&rd(()=>ig(t,c,n,u),l)}else{let o;let{el:a,props:c}=t,{bm:u,m:d,parent:p}=e,h=nA(t);if(rm(e,!1),u&&z(u),!h&&(o=c&&c.onVnodeBeforeMount)&&ig(o,p,t),rm(e,!0),a&&i){let n=()=>{e.subTree=t9(e),i(a,e.subTree,e,l,null)};h?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{let i=e.subTree=t9(e);T(null,i,n,r,e,l,s),t.el=i.el}if(d&&rd(d,l),!h&&(o=c&&c.onVnodeMounted)){let e=t;rd(()=>ig(o,p,e),l)}(256&t.shapeFlag||p&&nA(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&rd(e.a,l),e.isMounted=!0,t=n=r=null}},c=e.effect=new ev(a,h,()=>tJ(u),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.id=e.uid,rm(e,!0),u()},X=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){let{props:i,attrs:l,vnode:{patchFlag:s}}=e,o=ty(i),[a]=e.propsOptions,c=!1;if((r||s>0)&&!(16&s)){if(8&s){let n=e.vnode.dynamicProps;for(let r=0;r{let c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p){ee(c,d,n,r,i,l,s,o,a);return}if(256&p){Y(c,d,n,r,i,l,s,o,a);return}}8&h?(16&u&&es(c,i,l),d!==c&&g(n,d)):16&u?16&h?ee(c,d,n,r,i,l,s,o,a):es(c,i,l,!0):(8&u&&g(n,""),16&h&&V(d,n,r,i,l,s,o,a))},Y=(e,t,n,r,i,l,s,o,a)=>{let c;e=e||p,t=t||p;let u=e.length,d=t.length,h=Math.min(u,d);for(c=0;cd?es(e,i,l,!0,!1,h):V(t,n,r,i,l,s,o,a,h)},ee=(e,t,n,r,i,l,s,o,a)=>{let c=0,u=t.length,d=e.length-1,h=u-1;for(;c<=d&&c<=h;){let r=e[c],u=t[c]=a?ip(t[c]):id(t[c]);if(ir(r,u))T(r,u,n,null,i,l,s,o,a);else break;c++}for(;c<=d&&c<=h;){let r=e[d],c=t[h]=a?ip(t[h]):id(t[h]);if(ir(r,c))T(r,c,n,null,i,l,s,o,a);else break;d--,h--}if(c>d){if(c<=h){let e=h+1,d=eh)for(;c<=d;)en(e[c],i,l,!0),c++;else{let f;let m=c,g=c,y=new Map;for(c=g;c<=h;c++){let e=t[c]=a?ip(t[c]):id(t[c]);null!=e.key&&y.set(e.key,c)}let b=0,_=h-g+1,S=!1,x=0,C=Array(_);for(c=0;c<_;c++)C[c]=0;for(c=m;c<=d;c++){let r;let u=e[c];if(b>=_){en(u,i,l,!0);continue}if(null!=u.key)r=y.get(u.key);else for(f=g;f<=h;f++)if(0===C[f-g]&&ir(u,t[f])){r=f;break}void 0===r?en(u,i,l,!0):(C[r-g]=c+1,r>=x?x=r:S=!0,T(u,t[r],n,null,i,l,s,o,a),b++)}let k=S?function(e){let t,n,r,i,l;let s=e.slice(),o=[0],a=e.length;for(t=0;t>1]]0&&(s[t]=o[r-1]),o[r]=t)}}for(r=o.length,i=o[r-1];r-- >0;)o[r]=i,i=s[i];return o}(C):p;for(f=k.length-1,c=_-1;c>=0;c--){let e=g+c,d=t[e],p=e+1{let{el:l,type:o,transition:a,children:c,shapeFlag:u}=e;if(6&u){et(e.component.subTree,t,n,r);return}if(128&u){e.suspense.move(t,n,r);return}if(64&u){o.move(e,t,n,eu);return}if(o===r0){s(l,t,n);for(let e=0;ea.enter(l),i);else{let{leave:e,delayLeave:r,afterLeave:i}=a,o=()=>s(l,t,n),c=()=>{e(l,()=>{o(),i&&i()})};r?r(l,o,c):c()}}else s(l,t,n)},en=(e,t,n,r=!1,i=!1)=>{let l;let{type:s,props:o,ref:a,children:c,dynamicChildren:u,shapeFlag:d,patchFlag:p,dirs:h,memoIndex:f}=e;if(-2===p&&(i=!1),null!=a&&rr(a,null,n,e,!0),null!=f&&(t.renderCache[f]=void 0),256&d){t.ctx.deactivate(e);return}let m=1&d&&h,g=!nA(e);if(g&&(l=o&&o.onVnodeBeforeUnmount)&&ig(l,t,e),6&d)el(e.component,n,r);else{if(128&d){e.suspense.unmount(n,r);return}m&&nw(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,eu,r):u&&(s!==r0||p>0&&64&p)?es(u,t,n,!1,!0):(s===r0&&384&p||!i&&16&d)&&es(c,t,n),r&&er(e)}(g&&(l=o&&o.onVnodeUnmounted)||m)&&rd(()=>{l&&ig(l,t,e),m&&nw(e,null,t,"unmounted")},n)},er=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===r0){ei(n,r);return}if(t===r3){L(e);return}let l=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,s=()=>t(n,l);r?r(e.el,l,s):s()}else l()},ei=(e,t)=>{let n;for(;e!==t;)n=_(e),o(e),e=n;o(t)},el=(e,t,n)=>{let{bum:r,scope:i,update:l,subTree:s,um:o,m:a,a:c}=e;rv(a),rv(c),r&&z(r),i.stop(),l&&(l.active=!1,en(s,e,t,n)),o&&rd(o,t),rd(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},es=(e,t,n,r=!1,i=!1,l=0)=>{for(let s=l;s6&e.shapeFlag?eo(e.component.subTree):128&e.shapeFlag?e.suspense.next():_(e.anchor||e.el),ea=!1,ec=(e,t,n)=>{null==e?t._vnode&&en(t._vnode,null,null,!0):T(t._vnode||null,e,t,null,null,null,n),ea||(ea=!0,tZ(),tY(),ea=!1),t._vnode=e},eu={p:T,um:en,m:et,r:er,mt:K,mc:V,pc:Z,pbc:D,n:eo,o:e};return t&&([r,i]=t(eu)),{render:ec,hydrate:r,createApp:(n=r,function(e,t=null){E(e)||(e=y({},e)),null==t||I(t)||(t=null);let r=nz(),i=new WeakSet,l=!1,s=r.app={_uid:nG++,_component:e,_props:t,_container:null,_context:r,_instance:null,version:iM,get config(){return r.config},set config(v){},use:(e,...t)=>(i.has(e)||(e&&E(e.install)?(i.add(e),e.install(s,...t)):E(e)&&(i.add(e),e(s,...t))),s),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),s),component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(i,o,a){if(!l){let c=io(e,t);return c.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),o&&n?n(c,i):ec(c,i,a),l=!0,s._container=i,i.__vue_app__=s,iI(c.component)}},unmount(){l&&(ec(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s),runWithContext(e){let t=nJ;nJ=s;try{return e()}finally{nJ=t}}};return s})}}function rf({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function rm({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function rg(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ry(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let e=0;e{e(...t),w()}}let f=ib,m=e=>!0===i?e:rw(e,!1===i?1:void 0),g=!1,y=!1;if(tk(e)?(c=()=>e.value,g=tm(e)):th(e)?(c=()=>m(e),g=!0):x(e)?(y=!0,g=e.some(e=>th(e)||tm(e)),c=()=>e.map(e=>tk(e)?e.value:th(e)?m(e):E(e)?tP(e,f,2):void 0)):c=E(e)?t?()=>tP(e,f,2):()=>(u&&u(),tF(e,f,3,[_])):h,t&&i){let e=c;c=()=>rw(e())}let _=e=>{u=k.onStop=()=>{tP(e,f,4),u=k.onStop=void 0}},S=y?Array(e.length).fill(rx):rx,C=()=>{if(k.active&&k.dirty){if(t){let e=k.run();(i||g||(y?e.some((e,t)=>K(e,S[t])):K(e,S)))&&(u&&u(),tF(t,f,3,[e,S===rx?void 0:y&&S[0]===rx?[]:S,_]),S=e)}else k.run()}};C.allowRecurse=!!t,"sync"===l?p=C:"post"===l?p=()=>rd(C,f&&f.suspense):(C.pre=!0,f&&(C.id=f.uid),p=()=>tJ(C));let k=new ev(c,h,p),T=n,w=()=>{k.stop(),T&&b(T.effects,k)};return t?r?C():S=k.run():"post"===l?rd(k.run.bind(k),f&&f.suspense):k.run(),w}function rk(e,t,n){let r;let i=this.proxy,l=A(e)?e.includes(".")?rT(i,e):()=>i[e]:e.bind(i,i);E(t)?r=t:(r=t.handler,n=t);let s=iS(this),o=rC(l,r.bind(i),n);return s(),o}function rT(e,t){let n=t.split(".");return()=>{let t=e;for(let e=0;e{rw(e,t,n)});else if(M(e)){for(let r in e)rw(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rw(e[r],t,n)}return e}let rE=e=>e.type.__isKeepAlive;function rA(e,t){return x(e)?e.some(e=>rA(e,t)):A(e)?e.split(",").includes(t):!!w(e)&&e.test(t)}function rN(e,t){rR(e,"a",t)}function rI(e,t){rR(e,"da",t)}function rR(e,t,n=ib){let r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(nf(t,r,n),n){let e=n.parent;for(;e&&e.parent;)rE(e.parent.vnode)&&function(e,t,n,r){let i=nf(t,e,r,!0);nS(()=>{b(r[t],i)},n)}(r,t,n,e),e=e.parent}}function rO(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function rL(e){return 128&e.shapeFlag?e.ssContent:e}let r$=Symbol("_leaveCb"),rM=Symbol("_enterCb");function rP(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ny(()=>{e.isMounted=!0}),n_(()=>{e.isUnmounting=!0}),e}let rF=[Function,Array],rV={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rF,onEnter:rF,onAfterEnter:rF,onEnterCancelled:rF,onBeforeLeave:rF,onLeave:rF,onAfterLeave:rF,onLeaveCancelled:rF,onBeforeAppear:rF,onAppear:rF,onAfterAppear:rF,onAppearCancelled:rF},rB=e=>{let t=e.subTree;return t.component?rB(t.component):t},rD={name:"BaseTransition",props:rV,setup(e,{slots:t}){let n=i_(),r=rP();return()=>{let i=t.default&&rK(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1){for(let e of i)if(e.type!==r2){l=e;break}}let s=ty(e),{mode:o}=s;if(r.isLeaving)return rH(l);let a=rq(l);if(!a)return rH(l);let c=rj(a,s,r,n,e=>c=e);rW(a,c);let u=n.subTree,d=u&&rq(u);if(d&&d.type!==r2&&!ir(a,d)&&rB(n).type!==r2){let e=rj(d,s,r,n);if(rW(d,e),"out-in"===o&&a.type!==r2)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},rH(l);"in-out"===o&&a.type!==r2&&(e.delayLeave=(e,t,n)=>{rU(r,d)[String(d.key)]=d,e[r$]=()=>{t(),e[r$]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return l}}};function rU(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function rj(e,t,n,r,i){let{appear:l,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:y,onAfterAppear:b,onAppearCancelled:_}=t,S=String(e.key),C=rU(n,e),k=(e,t)=>{e&&tF(e,r,9,t)},T=(e,t)=>{let n=t[1];k(e,t),x(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:s,persisted:o,beforeEnter(t){let r=a;if(!n.isMounted){if(!l)return;r=g||a}t[r$]&&t[r$](!0);let i=C[S];i&&ir(e,i)&&i.el[r$]&&i.el[r$](),k(r,[t])},enter(e){let t=c,r=u,i=d;if(!n.isMounted){if(!l)return;t=y||c,r=b||u,i=_||d}let s=!1,o=e[rM]=t=>{s||(s=!0,t?k(i,[e]):k(r,[e]),w.delayedLeave&&w.delayedLeave(),e[rM]=void 0)};t?T(t,[e,o]):o()},leave(t,r){let i=String(e.key);if(t[rM]&&t[rM](!0),n.isUnmounting)return r();k(p,[t]);let l=!1,s=t[r$]=n=>{l||(l=!0,r(),n?k(m,[t]):k(f,[t]),t[r$]=void 0,C[i]!==e||delete C[i])};C[i]=e,h?T(h,[t,s]):s()},clone(e){let l=rj(e,t,n,r,i);return i&&i(l),l}};return w}function rH(e){if(rE(e))return(e=ic(e)).children=null,e}function rq(e){if(!rE(e))return e;let{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&E(n.default))return n.default()}}function rW(e,t){6&e.shapeFlag&&e.component?rW(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function rK(e,t=!1,n){let r=[],i=0;for(let l=0;l1)for(let e=0;ee.__isTeleport,rG=e=>e&&(e.disabled||""===e.disabled),rJ=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,rX=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,rQ=(e,t)=>{let n=e&&e.to;return A(n)?t?t(n):null:n};function rZ(e,t,n,{o:{insert:r},m:i},l=2){0===l&&r(e.targetAnchor,t,n);let{el:s,anchor:o,shapeFlag:a,children:c,props:u}=e,d=2===l;if(d&&r(s,t,n),(!d||rG(u))&&16&a)for(let e=0;e0?r4||p:null,r5(),r9>0&&r4&&r4.push(e),e}function ie(e,t,n,r,i){return r7(io(e,t,n,r,i,!0))}function it(e){return!!e&&!0===e.__v_isVNode}function ir(e,t){return e.type===t.type&&e.key===t.key}let ii=({key:e})=>null!=e?e:null,il=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?A(e)||tk(e)||E(e)?{i:t6,r:e,k:t,f:!!n}:e:null);function is(e,t=null,n=null,r=0,i=null,l=e===r0?0:1,s=!1,o=!1){let a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ii(t),ref:t&&il(t),scopeId:t4,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:t6};return o?(ih(a,n),128&l&&e.normalize(a)):n&&(a.shapeFlag|=A(n)?8:16),r9>0&&!s&&r4&&(a.patchFlag>0||6&l)&&32!==a.patchFlag&&r4.push(a),a}let io=function(e,t=null,n=null,r=0,i=null,l=!1){var s;if(e&&e!==ni||(e=r2),it(e)){let r=ic(e,t,!0);return n&&ih(r,n),r9>0&&!l&&r4&&(6&r.shapeFlag?r4[r4.indexOf(e)]=r:r4.push(r)),r.patchFlag=-2,r}if(E(s=e)&&"__vccOpts"in s&&(e=e.__vccOpts),t){let{class:e,style:n}=t=ia(t);e&&!A(e)&&(t.class=ei(e)),I(n)&&(tg(n)&&!x(n)&&(n=y({},n)),t.style=Y(n))}let o=A(e)?1:no(e)?128:rz(e)?64:I(e)?4:E(e)?2:0;return is(e,t,n,r,i,o,l,!0)};function ia(e){return e?tg(e)||n0(e)?y({},e):e:null}function ic(e,t,n=!1,r=!1){let{props:i,ref:l,patchFlag:s,children:o,transition:a}=e,c=t?im(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ii(c),ref:t&&t.ref?n&&l?x(l)?l.concat(il(t)):[l,il(t)]:il(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==r0?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ic(e.ssContent),ssFallback:e.ssFallback&&ic(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&rW(u,a.clone(u)),u}function iu(e=" ",t=0){return io(r1,null,e,t)}function id(e){return null==e||"boolean"==typeof e?io(r2):x(e)?io(r0,null,e.slice()):"object"==typeof e?ip(e):io(r1,null,String(e))}function ip(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ic(e)}function ih(e,t){let n=0,{shapeFlag:r}=e;if(null==t)t=null;else if(x(t))n=16;else if("object"==typeof t){if(65&r){let n=t.default;n&&(n._c&&(n._d=!1),ih(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;r||n0(t)?3===r&&t6&&(1===t6.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=t6}}else E(t)?(t={default:t,_ctx:t6},n=32):(t=String(t),64&r?(n=16,t=[iu(t)]):n=8);e.children=t,e.shapeFlag|=n}function im(...e){let t={};for(let n=0;nib||t6;i=e=>{ib=e},l=e=>{ik=e};let iS=e=>{let t=ib;return i(e),e.scope.on(),()=>{e.scope.off(),i(t)}},ix=()=>{ib&&ib.scope.off(),i(null)};function iC(e){return 4&e.vnode.shapeFlag}let ik=!1;function iT(e,t,n){E(t)?e.render=t:I(t)&&(e.setupState=tI(t)),iE(e,n)}function iw(e){s=e,o=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,n$))}}function iE(e,t,n){let r=e.type;if(!e.render){if(!t&&s&&!r.render){let t=r.template||nB(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:o}=r,a=y(y({isCustomElement:n,delimiters:l},i),o);r.render=s(t,a)}}e.render=r.render||h,o&&o(e)}{let t=iS(e);eT();try{!function(e){let t=nB(e),n=e.proxy,r=e.ctx;nF=!1,t.beforeCreate&&nV(t.beforeCreate,e,"bc");let{data:i,computed:l,methods:s,watch:o,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:f,updated:m,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:_,destroyed:S,unmounted:C,render:k,renderTracked:T,renderTriggered:w,errorCaptured:N,serverPrefetch:R,expose:O,inheritAttrs:L,components:$,directives:M,filters:P}=t;if(c&&function(e,t,n=h){for(let n in x(e)&&(e=nH(e)),e){let r;let i=e[n];tk(r=I(i)?"default"in i?nQ(i.from||n,i.default,!0):nQ(i.from||n):nQ(i))?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(c,r,null),s)for(let e in s){let t=s[e];E(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);I(t)&&(e.data=tc(t))}if(nF=!0,l)for(let e in l){let t=l[e],i=E(t)?t.bind(n,n):E(t.get)?t.get.bind(n,n):h,s=iO({get:i,set:!E(t)&&E(t.set)?t.set.bind(n):h});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(o)for(let e in o)!function e(t,n,r,i){let l=i.includes(".")?rT(r,i):()=>r[i];if(A(t)){let e=n[t];E(e)&&rC(l,e,void 0)}else if(E(t)){var s;s=t.bind(r),rC(l,s,void 0)}else if(I(t)){if(x(t))t.forEach(t=>e(t,n,r,i));else{let e=E(t.handler)?t.handler.bind(r):n[t.handler];E(e)&&rC(l,e,t)}}}(o[e],r,n,e);if(a){let e=E(a)?a.call(n):a;Reflect.ownKeys(e).forEach(t=>{nX(t,e[t])})}function F(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(u&&nV(u,e,"c"),F(ng,d),F(ny,p),F(nv,f),F(nb,m),F(rN,g),F(rI,y),F(nT,N),F(nk,T),F(nC,w),F(n_,_),F(nS,C),F(nx,R),x(O)){if(O.length){let t=e.exposed||(e.exposed={});O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={})}k&&e.render===h&&(e.render=k),null!=L&&(e.inheritAttrs=L),$&&(e.components=$),M&&(e.directives=M)}(e)}finally{ew(),t()}}}let iA={get:(e,t)=>(eM(e,"get",""),e[t])};function iN(e){return{attrs:new Proxy(e.attrs,iA),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function iI(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(tI(tv(e.exposed)),{get:(t,n)=>n in t?t[n]:n in nR?nR[n](e):void 0,has:(e,t)=>t in e||t in nR})):e.proxy}function iR(e,t=!0){return E(e)?e.displayName||e.name:e.name||t&&e.__name}let iO=(e,t)=>(function(e,t,n=!1){let r,i;let l=E(e);return l?(r=e,i=h):(r=e.get,i=e.set),new tS(r,i,l||!i,n)})(e,0,ik);function iL(e,t,n){let r=arguments.length;return 2!==r?(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&it(n)&&(n=[n]),io(e,t,n)):!I(t)||x(t)?io(e,null,t):it(t)?io(e,null,[t]):io(e,t)}function i$(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&r4&&r4.push(e),!0}let iM="3.4.31",iP="undefined"!=typeof document?document:null,iF=iP&&iP.createElement("template"),iV="transition",iB="animation",iD=Symbol("_vtc"),iU=(e,{slots:t})=>iL(rD,iK(e),t);iU.displayName="Transition";let ij={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},iH=iU.props=y({},rV,ij),iq=(e,t=[])=>{x(e)?e.forEach(e=>e(...t)):e&&e(...t)},iW=e=>!!e&&(x(e)?e.some(e=>e.length>1):e.length>1);function iK(e){let t={};for(let n in e)n in ij||(t[n]=e[n]);if(!1===e.css)return t;let{name:n="v",type:r,duration:i,enterFromClass:l=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:a=l,appearActiveClass:c=s,appearToClass:u=o,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(I(e))return[X(e.enter),X(e.leave)];{let t=X(e);return[t,t]}}(i),m=f&&f[0],g=f&&f[1],{onBeforeEnter:b,onEnter:_,onEnterCancelled:S,onLeave:x,onLeaveCancelled:C,onBeforeAppear:k=b,onAppear:T=_,onAppearCancelled:w=S}=t,E=(e,t,n)=>{iG(e,t?u:o),iG(e,t?c:s),n&&n()},A=(e,t)=>{e._isLeaving=!1,iG(e,d),iG(e,h),iG(e,p),t&&t()},N=e=>(t,n)=>{let i=e?T:_,s=()=>E(t,e,n);iq(i,[t,s]),iJ(()=>{iG(t,e?a:l),iz(t,e?u:o),iW(i)||iQ(t,r,m,s)})};return y(t,{onBeforeEnter(e){iq(b,[e]),iz(e,l),iz(e,s)},onBeforeAppear(e){iq(k,[e]),iz(e,a),iz(e,c)},onEnter:N(!1),onAppear:N(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>A(e,t);iz(e,d),iz(e,p),i1(),iJ(()=>{e._isLeaving&&(iG(e,d),iz(e,h),iW(x)||iQ(e,r,g,n))}),iq(x,[e,n])},onEnterCancelled(e){E(e,!1),iq(S,[e])},onAppearCancelled(e){E(e,!0),iq(w,[e])},onLeaveCancelled(e){A(e),iq(C,[e])}})}function iz(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[iD]||(e[iD]=new Set)).add(t)}function iG(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[iD];n&&(n.delete(t),n.size||(e[iD]=void 0))}function iJ(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let iX=0;function iQ(e,t,n,r){let i=e._endId=++iX,l=()=>{i===e._endId&&r()};if(n)return setTimeout(l,n);let{type:s,timeout:o,propCount:a}=iZ(e,t);if(!s)return r();let c=s+"end",u=0,d=()=>{e.removeEventListener(c,p),l()},p=t=>{t.target===e&&++u>=a&&d()};setTimeout(()=>{u(n[e]||"").split(", "),i=r(`${iV}Delay`),l=r(`${iV}Duration`),s=iY(i,l),o=r(`${iB}Delay`),a=r(`${iB}Duration`),c=iY(o,a),u=null,d=0,p=0;t===iV?s>0&&(u=iV,d=s,p=l.length):t===iB?c>0&&(u=iB,d=c,p=a.length):p=(u=(d=Math.max(s,c))>0?s>c?iV:iB:null)?u===iV?l.length:a.length:0;let h=u===iV&&/\b(transform|all)(,|$)/.test(r(`${iV}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:h}}function iY(e,t){for(;e.lengthi0(t)+i0(e[n])))}function i0(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function i1(){return document.body.offsetHeight}let i2=Symbol("_vod"),i3=Symbol("_vsh");function i6(e,t){e.style.display=t?e[i2]:"none",e[i3]=!t}let i4=Symbol("");function i8(e,t){if(1===e.nodeType){let n=e.style,r="";for(let e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[i4]=r}}let i5=/(^|;)\s*display\s*:/,i9=/\s*!important$/;function i7(e,t,n){if(x(n))n.forEach(n=>i7(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{let r=function(e,t){let n=lt[t];if(n)return n;let r=U(t);if("filter"!==r&&r in e)return lt[t]=r;r=q(r);for(let n=0;nlo||(la.then(()=>lo=0),lo=Date.now()),lu=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&123>e.charCodeAt(2);/*! #__NO_SIDE_EFFECTS__ */function ld(e,t,n){let r=nE(e,t);class i extends lh{constructor(e){super(r,e,n)}}return i.def=r,i}let lp="undefined"!=typeof HTMLElement?HTMLElement:class{};class lh extends lp{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,tG(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),lU(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let e=0;e{for(let t of e)this._setAttr(t.attributeName)}),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{let n;let{props:r,styles:i}=e;if(r&&!x(r))for(let e in r){let t=r[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=X(this._props[e])),(n||(n=Object.create(null)))[U(e)]=!0)}this._numberProps=n,t&&this._resolveProps(e),this._applyStyles(i),this._update()},t=this._def.__asyncLoader;t?t().then(t=>e(t,!0)):e(this._def)}_resolveProps(e){let{props:t}=e,n=x(t)?t:Object.keys(t||{});for(let e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(let e of n.map(U))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0,n=U(e);this._numberProps&&this._numberProps[n]&&(t=X(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(H(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(H(e),t+""):t||this.removeAttribute(H(e))))}_update(){lU(this._createVNode(),this.shadowRoot)}_createVNode(){let e=io(this._def,y({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),H(e)!==e&&t(H(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof lh){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(e=>{let t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)})}}let lf=new WeakMap,lm=new WeakMap,lg=Symbol("_moveCb"),ly=Symbol("_enterCb"),lv={name:"TransitionGroup",props:y({},iH,{tag:String,moveClass:String}),setup(e,{slots:t}){let n,r;let i=i_(),l=rP();return nb(()=>{if(!n.length)return;let t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){let r=e.cloneNode(),i=e[iD];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";let l=1===t.nodeType?t:t.parentNode;l.appendChild(r);let{hasTransform:s}=iZ(r);return l.removeChild(r),s}(n[0].el,i.vnode.el,t))return;n.forEach(lb),n.forEach(l_);let r=n.filter(lS);i1(),r.forEach(e=>{let n=e.el,r=n.style;iz(n,t),r.transform=r.webkitTransform=r.transitionDuration="";let i=n[lg]=e=>{(!e||e.target===n)&&(!e||/transform$/.test(e.propertyName))&&(n.removeEventListener("transitionend",i),n[lg]=null,iG(n,t))};n.addEventListener("transitionend",i)})}),()=>{let s=ty(e),o=iK(s),a=s.tag||r0;if(n=[],r)for(let e=0;e{let t=e.props["onUpdate:modelValue"]||!1;return x(t)?e=>z(t,e):t};function lC(e){e.target.composing=!0}function lk(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}let lT=Symbol("_assign"),lw={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[lT]=lx(i);let l=r||i.props&&"number"===i.props.type;li(e,t?"change":"input",t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),l&&(r=J(r)),e[lT](r)}),n&&li(e,"change",()=>{e.value=e.value.trim()}),t||(li(e,"compositionstart",lC),li(e,"compositionend",lk),li(e,"change",lk))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:l}},s){if(e[lT]=lx(s),e.composing)return;let o=(l||"number"===e.type)&&!/^0\d/.test(e.value)?J(e.value):e.value,a=null==t?"":t;o===a||document.activeElement===e&&"range"!==e.type&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a)}},lE={deep:!0,created(e,t,n){e[lT]=lx(n),li(e,"change",()=>{let t=e._modelValue,n=lO(e),r=e.checked,i=e[lT];if(x(t)){let e=ed(t,n),l=-1!==e;if(r&&!l)i(t.concat(n));else if(!r&&l){let n=[...t];n.splice(e,1),i(n)}}else if(k(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(lL(e,r))})},mounted:lA,beforeUpdate(e,t,n){e[lT]=lx(n),lA(e,t,n)}};function lA(e,{value:t,oldValue:n},r){e._modelValue=t,x(t)?e.checked=ed(t,r.props.value)>-1:k(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=eu(t,lL(e,!0)))}let lN={created(e,{value:t},n){e.checked=eu(t,n.props.value),e[lT]=lx(n),li(e,"change",()=>{e[lT](lO(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[lT]=lx(r),t!==n&&(e.checked=eu(t,r.props.value))}},lI={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=k(t);li(e,"change",()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?J(lO(e)):lO(e));e[lT](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,tG(()=>{e._assigning=!1})}),e[lT]=lx(r)},mounted(e,{value:t,modifiers:{number:n}}){lR(e,t)},beforeUpdate(e,t,n){e[lT]=lx(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||lR(e,t)}};function lR(e,t,n){let r=e.multiple,i=x(t);if(!r||i||k(t)){for(let n=0,l=e.options.length;nString(e)===String(s)):l.selected=ed(t,s)>-1}else l.selected=t.has(s)}else if(eu(lO(l),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function lO(e){return"_value"in e?e._value:e.value}function lL(e,t){let n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}function l$(e,t,n,r,i){let l=function(e,t){switch(e){case"SELECT":return lI;case"TEXTAREA":return lw;default:switch(t){case"checkbox":return lE;case"radio":return lN;default:return lw}}}(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}let lM=["ctrl","shift","alt","meta"],lP={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>lM.some(n=>e[`${n}Key`]&&!t.includes(n))},lF={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},lV=y({patchProp:(e,t,n,r,i,l,s,o,a)=>{let c="svg"===i;"class"===t?function(e,t,n){let r=e[iD];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,c):"style"===t?function(e,t,n){let r=e.style,i=A(n),l=!1;if(n&&!i){if(t){if(A(t))for(let e of t.split(";")){let t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&i7(r,t,"")}else for(let e in t)null==n[e]&&i7(r,e,"")}for(let e in n)"display"===e&&(l=!0),i7(r,e,n[e])}else if(i){if(t!==n){let e=r[i4];e&&(n+=";"+e),r.cssText=n,l=i5.test(n)}}else t&&e.removeAttribute("style");i2 in e&&(e[i2]=l?r.display:"",e[i3]&&(r.display="none"))}(e,n,r):m(t)?g(t)||function(e,t,n,r,i=null){let l=e[ll]||(e[ll]={}),s=l[t];if(r&&s)s.value=r;else{let[n,o]=function(e){let t;if(ls.test(e)){let n;for(t={};n=e.match(ls);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):H(e.slice(2)),t]}(t);r?li(e,n,l[t]=function(e,t){let n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();tF(function(e,t){if(!x(t))return t;{let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}}(e,n.value),t,5,[e])};return n.value=e,n.attached=lc(),n}(r,i),o):s&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,o),l[t]=void 0)}}(e,t,0,r,s):("."===t[0]?(t=t.slice(1),0):"^"===t[0]?(t=t.slice(1),1):!function(e,t,n,r){if(r)return!!("innerHTML"===t||"textContent"===t||t in e&&lu(t)&&E(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){let t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return!(lu(t)&&A(n))&&t in e}(e,t,r,c))?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),lr(e,t,r,c)):(!function(e,t,n,r,i,l,s){if("innerHTML"===t||"textContent"===t){r&&s(r,i,l),e[t]=null==n?"":n;return}let o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){let r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"":String(n);r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),e._value=n;return}let a=!1;if(""===n||null==n){let r=typeof e[t];if("boolean"===r){var c;n=!!(c=n)||""===c}else null==n&&"string"===r?(n="",a=!0):"number"===r&&(n=0,a=!0)}try{e[t]=n}catch(e){}a&&e.removeAttribute(t)}(e,t,r,l,s,o,a),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||lr(e,t,r,c,s,"value"!==t))}},{insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i="svg"===t?iP.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?iP.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?iP.createElement(e,{is:n}):iP.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>iP.createTextNode(e),createComment:e=>iP.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>iP.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,l){let s=n?n.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==l&&(i=i.nextSibling););else{iF.innerHTML="svg"===r?`${e}`:"mathml"===r?`${e}`:e;let i=iF.content;if("svg"===r||"mathml"===r){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}}),lB=!1;function lD(){return a=lB?a:rp(lV),lB=!0,a}let lU=(...e)=>{(a||(a=rh(lV))).render(...e)},lj=(...e)=>{lD().hydrate(...e)};function lH(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function lq(e){return A(e)?document.querySelector(e):e}let lW=Symbol(""),lK=Symbol(""),lz=Symbol(""),lG=Symbol(""),lJ=Symbol(""),lX=Symbol(""),lQ=Symbol(""),lZ=Symbol(""),lY=Symbol(""),l0=Symbol(""),l1=Symbol(""),l2=Symbol(""),l3=Symbol(""),l6=Symbol(""),l4=Symbol(""),l8=Symbol(""),l5=Symbol(""),l9=Symbol(""),l7=Symbol(""),se=Symbol(""),st=Symbol(""),sn=Symbol(""),sr=Symbol(""),si=Symbol(""),sl=Symbol(""),ss=Symbol(""),so=Symbol(""),sa=Symbol(""),sc=Symbol(""),su=Symbol(""),sd=Symbol(""),sp=Symbol(""),sh=Symbol(""),sf=Symbol(""),sm=Symbol(""),sg=Symbol(""),sy=Symbol(""),sv=Symbol(""),sb=Symbol(""),s_={[lW]:"Fragment",[lK]:"Teleport",[lz]:"Suspense",[lG]:"KeepAlive",[lJ]:"BaseTransition",[lX]:"openBlock",[lQ]:"createBlock",[lZ]:"createElementBlock",[lY]:"createVNode",[l0]:"createElementVNode",[l1]:"createCommentVNode",[l2]:"createTextVNode",[l3]:"createStaticVNode",[l6]:"resolveComponent",[l4]:"resolveDynamicComponent",[l8]:"resolveDirective",[l5]:"resolveFilter",[l9]:"withDirectives",[l7]:"renderList",[se]:"renderSlot",[st]:"createSlots",[sn]:"toDisplayString",[sr]:"mergeProps",[si]:"normalizeClass",[sl]:"normalizeStyle",[ss]:"normalizeProps",[so]:"guardReactiveProps",[sa]:"toHandlers",[sc]:"camelize",[su]:"capitalize",[sd]:"toHandlerKey",[sp]:"setBlockTracking",[sh]:"pushScopeId",[sf]:"popScopeId",[sm]:"withCtx",[sg]:"unref",[sy]:"isRef",[sv]:"withMemo",[sb]:"isMemoSame"},sS={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function sx(e,t,n,r,i,l,s,o=!1,a=!1,c=!1,u=sS){return e&&(o?(e.helper(lX),e.helper(e.inSSR||c?lQ:lZ)):e.helper(e.inSSR||c?lY:l0),s&&e.helper(l9)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:l,directives:s,isBlock:o,disableTracking:a,isComponent:c,loc:u}}function sC(e,t=sS){return{type:17,loc:t,elements:e}}function sk(e,t=sS){return{type:15,loc:t,properties:e}}function sT(e,t){return{type:16,loc:sS,key:A(e)?sw(e,!0):e,value:t}}function sw(e,t=!1,n=sS,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function sE(e,t=sS){return{type:8,loc:t,children:e}}function sA(e,t=[],n=sS){return{type:14,loc:n,callee:e,arguments:t}}function sN(e,t,n=!1,r=!1,i=sS){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function sI(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:sS}}function sR(e,{helper:t,removeHelper:n,inSSR:r}){if(!e.isBlock){var i,l;e.isBlock=!0,n((i=e.isComponent,r||i?lY:l0)),t(lX),t((l=e.isComponent,r||l?lQ:lZ))}}let sO=new Uint8Array([123,123]),sL=new Uint8Array([125,125]);function s$(e){return e>=97&&e<=122||e>=65&&e<=90}function sM(e){return 32===e||10===e||9===e||12===e||13===e}function sP(e){return 47===e||62===e||sM(e)}function sF(e){let t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function sH(e){switch(e){case"Teleport":case"teleport":return lK;case"Suspense":case"suspense":return lz;case"KeepAlive":case"keep-alive":return lG;case"BaseTransition":case"base-transition":return lJ}}let sq=/^\d|[^\$\w\xA0-\uFFFF]/,sW=e=>!sq.test(e),sK=/[A-Za-z_$\xA0-\uFFFF]/,sz=/[\.\?\w$\xA0-\uFFFF]/,sG=/\s+[.[]\s*|\s*[.[]\s+/g,sJ=e=>{e=e.trim().replace(sG,e=>e.trim());let t=0,n=[],r=0,i=0,l=null;for(let s=0;s4===e.key.type&&e.key.content===r)}return n}function s8(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).toString())}`}let s5=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,s9={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:f,isPreTag:f,isCustomElement:f,onError:sB,onWarn:sD,comments:!1,prefixIdentifiers:!1},s7=s9,oe=null,ot="",on=null,or=null,oi="",ol=-1,os=-1,oo=0,oa=!1,oc=null,ou=[],od=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=sO,this.delimiterClose=sL,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=sO,this.delimiterClose=sL}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){let i=this.newlines[r];if(e>i){t=r+2,n=e-i;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex]){if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++}else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(t?sP(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t){this.sequenceIndex++;return}}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||sM(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===sV.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(ou,{onerr:oE,ontext(e,t){og(of(e,t),e,t)},ontextentity(e,t,n){og(e,t,n)},oninterpolation(e,t){if(oa)return og(of(e,t),e,t);let n=e+od.delimiterOpen.length,r=t-od.delimiterClose.length;for(;sM(ot.charCodeAt(n));)n++;for(;sM(ot.charCodeAt(r-1));)r--;let i=of(n,r);i.includes("&")&&(i=s7.decodeEntities(i,!1)),oC({type:5,content:ow(i,!1,ok(n,r)),loc:ok(e,t)})},onopentagname(e,t){let n=of(e,t);on={type:1,tag:n,ns:s7.getNamespace(n,ou[0],s7.ns),tagType:0,props:[],children:[],loc:ok(e-1,t),codegenNode:void 0}},onopentagend(e){om(e)},onclosetag(e,t){let n=of(e,t);if(!s7.isVoidTag(n)){let r=!1;for(let e=0;e0&&ou[0].loc.start.offset;for(let n=0;n<=e;n++)oy(ou.shift(),t,n(7===e.type?e.rawName:e.name)===t)},onattribend(e,t){on&&or&&(oT(or.loc,t),0!==e&&(oi.includes("&")&&(oi=s7.decodeEntities(oi,!0)),6===or.type?("class"===or.name&&(oi=ox(oi).trim()),or.value={type:2,content:oi,loc:1===e?ok(ol,os):ok(ol-1,os+1)},od.inSFCRoot&&"template"===on.tag&&"lang"===or.name&&oi&&"html"!==oi&&od.enterRCDATA(sF("{let i=t.start.offset+n,l=i+e.length;return ow(e,!1,ok(i,l),0,r?1:0)},o={source:s(l.trim(),n.indexOf(l,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},a=i.trim().replace(oh,"").trim(),c=i.indexOf(a),u=a.match(op);if(u){let e;a=a.replace(op,"").trim();let t=u[1].trim();if(t&&(e=n.indexOf(t,c+a.length),o.key=s(t,e,!0)),u[2]){let r=u[2].trim();r&&(o.index=s(r,n.indexOf(r,o.key?e+t.length:c+a.length),!0))}}return a&&(o.value=s(a,c,!0)),o}(or.exp)))),(7!==or.type||"pre"!==or.name)&&on.props.push(or)),oi="",ol=os=-1},oncomment(e,t){s7.comments&&oC({type:3,content:of(e,t),loc:ok(e-4,t+3)})},onend(){let e=ot.length;for(let t=0;t64&&n<91||sH(e)||s7.isBuiltInComponent&&s7.isBuiltInComponent(e)||s7.isNativeTag&&!s7.isNativeTag(e))return!0;for(let e=0;e=0;)n--;return n}let ob=new Set(["if","else","else-if","for","slot"]),o_=/\r\n/g;function oS(e,t){let n="preserve"!==s7.whitespace,r=!1;for(let t=0;t1)for(let i=0;i{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){let{props:i}=e;if(3===e.tagType&&i.some(s0))return;let l=[];for(let s=0;s`${s_[e]}: _${s_[e]}`;function oV(e,t,{helper:n,push:r,newline:i,isTS:l}){let s=n("component"===t?l6:l8);for(let n=0;n3;t.push("["),n&&t.indent(),oD(e,t,n),n&&t.deindent(),t.push("]")}function oD(e,t,n=!1,r=!0){let{push:i,newline:l}=t;for(let s=0;se||"null")}([l,s,o,a,c]),t),n(")"),d&&n(")"),u&&(n(", "),oU(u,t),n(")"))}(e,t);break;case 14:!function(e,t){let{push:n,helper:r,pure:i}=t,l=A(e.callee)?e.callee:r(e.callee);i&&n(oP),n(l+"(",-2,e),oD(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){let{push:n,indent:r,deindent:i,newline:l}=t,{properties:s}=e;if(!s.length){n("{}",-2,e);return}let o=s.length>1;n(o?"{":"{ "),o&&r();for(let e=0;e "),(a||o)&&(n("{"),r()),s?(a&&n("return "),x(s)?oB(s,t):oU(s,t)):o&&oU(o,t),(a||o)&&(i(),n("}")),c&&n(")")}(e,t);break;case 19:!function(e,t){let{test:n,consequent:r,alternate:i,newline:l}=e,{push:s,indent:o,deindent:a,newline:c}=t;if(4===n.type){let e=!sW(n.content);e&&s("("),oj(n,t),e&&s(")")}else s("("),oU(n,t),s(")");l&&o(),t.indentLevel++,l||s(" "),s("? "),oU(r,t),t.indentLevel--,l&&c(),l||s(" "),s(": ");let u=19===i.type;!u&&t.indentLevel++,oU(i,t),!u&&t.indentLevel--,l&&a(!0)}(e,t);break;case 20:!function(e,t){let{push:n,helper:r,indent:i,deindent:l,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(i(),n(`${r(sp)}(-1),`),s()),n(`_cache[${e.index}] = `),oU(e.value,t),e.isVNode&&(n(","),s(),n(`${r(sp)}(1),`),s(),n(`_cache[${e.index}]`),l()),n(")")}(e,t);break;case 21:oD(e.body,t,!0,!1)}}function oj(e,t){let{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function oH(e,t){for(let n=0;n(function(e,t,n,r){if("else"!==t.name&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(sU(28,t.loc)),t.exp=sw("true",!1,r)}if("if"===t.name){let i=oW(e,t),l={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(l),r)return r(l,i,!0)}else{let i=n.parent.children,l=i.indexOf(e);for(;l-- >=-1;){let s=i[l];if(s&&3===s.type||s&&2===s.type&&!s.content.trim().length){n.removeNode(s);continue}if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(sU(30,e.loc)),n.removeNode();let i=oW(e,t);s.branches.push(i);let l=r&&r(s,i,!1);o$(i,n),l&&l(),n.currentNode=null}else n.onError(sU(30,e.loc));break}}})(e,t,n,(e,t,r)=>{let i=n.parent.children,l=i.indexOf(e),s=0;for(;l-- >=0;){let e=i[l];e&&9===e.type&&(s+=e.branches.length)}return()=>{r?e.codegenNode=oK(t,s,n):function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode).alternate=oK(t,s+e.branches.length-1,n)}}));function oW(e,t){let n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!sX(e,"for")?e.children:[e],userKey:sQ(e,"key"),isTemplateIf:n}}function oK(e,t,n){return e.condition?sI(e.condition,oz(e,t,n),sA(n.helper(l1),['""',"true"])):oz(e,t,n)}function oz(e,t,n){let{helper:r}=n,i=sT("key",sw(`${t}`,!1,sS,2)),{children:l}=e,s=l[0];if(1!==l.length||1!==s.type){if(1!==l.length||11!==s.type)return sx(n,r(lW),sk([i]),l,"64",void 0,void 0,!0,!1,!1,e.loc);{let e=s.codegenNode;return s6(e,i,n),e}}{let e=s.codegenNode,t=14===e.type&&e.callee===sv?e.arguments[1].returns:e;return 13===t.type&&sR(t,n),s6(t,i,n),e}}let oG=(e,t,n)=>{let{modifiers:r,loc:i}=e,l=e.arg,{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==l.type||!l.isStatic)return n.onError(sU(52,l.loc)),{props:[sT(l,sw("",!0,i))]};oJ(e),s=e.exp}return 4!==l.type?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),r.includes("camel")&&(4===l.type?l.isStatic?l.content=U(l.content):l.content=`${n.helperString(sc)}(${l.content})`:(l.children.unshift(`${n.helperString(sc)}(`),l.children.push(")"))),!n.inSSR&&(r.includes("prop")&&oX(l,"."),r.includes("attr")&&oX(l,"^")),{props:[sT(l,s)]}},oJ=(e,t)=>{let n=e.arg,r=U(n.content);e.exp=sw(r,!1,n.loc)},oX=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},oQ=oM("for",(e,t,n)=>{let{helper:r,removeHelper:i}=n;return function(e,t,n,r){if(!t.exp){n.onError(sU(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(sU(32,t.loc));return}oZ(i);let{addIdentifiers:l,removeIdentifiers:s,scopes:o}=n,{source:a,value:c,key:u,index:d}=i,p={type:11,loc:t.loc,source:a,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:s1(e)?e.children:[e]};n.replaceNode(p),o.vFor++;let h=r&&r(p);return()=>{o.vFor--,h&&h()}}(e,t,n,t=>{let l=sA(r(l7),[t.source]),s=s1(e),o=sX(e,"memo"),a=sQ(e,"key",!1,!0);a&&7===a.type&&!a.exp&&oJ(a);let c=a&&(6===a.type?a.value?sw(a.value.content,!0):void 0:a.exp),u=a&&c?sT("key",c):null,d=4===t.source.type&&t.source.constType>0,p=d?64:a?128:256;return t.codegenNode=sx(n,r(lW),void 0,l,p+"",void 0,void 0,!0,!d,!1,e.loc),()=>{let a;let{children:p}=t,h=1!==p.length||1!==p[0].type,f=s2(e)?e:s&&1===e.children.length&&s2(e.children[0])?e.children[0]:null;if(f)a=f.codegenNode,s&&u&&s6(a,u,n);else if(h)a=sx(n,r(lW),u?sk([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1);else{var m,g,y,b,_,S,x,C;a=p[0].codegenNode,s&&u&&s6(a,u,n),!d!==a.isBlock&&(a.isBlock?(i(lX),i((m=n.inSSR,g=a.isComponent,m||g?lQ:lZ))):i((y=n.inSSR,b=a.isComponent,y||b?lY:l0))),(a.isBlock=!d,a.isBlock)?(r(lX),r((_=n.inSSR,S=a.isComponent,_||S?lQ:lZ))):r((x=n.inSSR,C=a.isComponent,x||C?lY:l0))}if(o){let e=sN(oY(t.parseResult,[sw("_cached")]));e.body={type:21,body:[sE(["const _memo = (",o.exp,")"]),sE(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(sb)}(_cached, _memo)) return _cached`]),sE(["const _item = ",a]),sw("_item.memo = _memo"),sw("return _item")],loc:sS},l.arguments.push(e,sw("_cache"),sw(String(n.cached++)))}else l.arguments.push(sN(oY(t.parseResult),a,!0))}})});function oZ(e,t){e.finalized||(e.finalized=!0)}function oY({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||sw("_".repeat(t+1),!1))}([e,t,n,...r])}let o0=sw("undefined",!1),o1=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){let n=sX(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},o2=(e,t,n,r)=>sN(e,n,!1,!0,n.length?n[0].loc:r);function o3(e,t,n){let r=[sT("name",e),sT("fn",t)];return null!=n&&r.push(sT("key",sw(String(n),!0))),sk(r)}let o6=new WeakMap,o4=(e,t)=>function(){let n,r,i,l,s,o;if(!(1===(e=t.currentNode).type&&(0===e.tagType||1===e.tagType)))return;let{tag:a,props:c}=e,u=1===e.tagType,d=u?function(e,t,n=!1){let{tag:r}=e,i=o9(r),l=sQ(e,"is",!1,!0);if(l){if(i){let e;if(6===l.type?e=l.value&&sw(l.value.content,!0):(e=l.exp)||(e=sw("is",!1,l.loc)),e)return sA(t.helper(l4),[e])}else 6===l.type&&l.value.content.startsWith("vue:")&&(r=l.value.content.slice(4))}let s=sH(r)||t.isBuiltInComponent(r);return s?(n||t.helper(s),s):(t.helper(l6),t.components.add(r),s8(r,"component"))}(e,t):`"${a}"`,p=I(d)&&d.callee===l4,h=0,f=p||d===lK||d===lz||!u&&("svg"===a||"foreignObject"===a||"math"===a);if(c.length>0){let r=o8(e,t,void 0,u,p);n=r.props,h=r.patchFlag,s=r.dynamicPropNames;let i=r.directives;o=i&&i.length?sC(i.map(e=>(function(e,t){let n=[],r=o6.get(e);r?n.push(t.helperString(r)):(t.helper(l8),t.directives.add(e.name),n.push(s8(e.name,"directive")));let{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));let t=sw("true",!1,i);n.push(sk(e.modifiers.map(e=>sT(e,t)),i))}return sC(n,e.loc)})(e,t))):void 0,r.shouldUseBlock&&(f=!0)}if(e.children.length>0){if(d===lG&&(f=!0,h|=1024),u&&d!==lK&&d!==lG){let{slots:n,hasDynamicSlots:i}=function(e,t,n=o2){t.helper(sm);let{children:r,loc:i}=e,l=[],s=[],o=t.scopes.vSlot>0||t.scopes.vFor>0,a=sX(e,"slot",!0);if(a){let{arg:e,exp:t}=a;e&&!sj(e)&&(o=!0),l.push(sT(e||sw("default",!0),n(t,void 0,r,i)))}let c=!1,u=!1,d=[],p=new Set,h=0;for(let e=0;esT("default",n(e,void 0,t,i));c?d.length&&d.some(e=>(function e(t){return 2!==t.type&&12!==t.type||(2===t.type?!!t.content.trim():e(t.content))})(e))&&(u?t.onError(sU(39,d[0].loc)):l.push(e(void 0,d))):l.push(e(void 0,r))}let f=o?2:!function e(t){for(let n=0;n0,f=!1,g=0,y=!1,b=!1,_=!1,S=!1,x=!1,C=!1,k=[],T=e=>{u.length&&(d.push(sk(o5(u),a)),u=[]),e&&d.push(e)},w=()=>{t.scopes.vFor>0&&u.push(sT(sw("ref_for",!0),sw("true")))},E=({key:e,value:n})=>{if(sj(e)){let l=e.content,s=m(l);s&&(!r||i)&&"onclick"!==l.toLowerCase()&&"onUpdate:modelValue"!==l&&!F(l)&&(S=!0),s&&F(l)&&(C=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&oN(n,t)>0||("ref"===l?y=!0:"class"===l?b=!0:"style"===l?_=!0:"key"===l||k.includes(l)||k.push(l),r&&("class"===l||"style"===l)&&!k.includes(l)&&k.push(l))}else x=!0};for(let i=0;i1?sA(t.helper(sr),d,a):d[0]):u.length&&(s=sk(o5(u),a)),x?g|=16:(b&&!r&&(g|=2),_&&!r&&(g|=4),k.length&&(g|=8),S&&(g|=32)),!f&&(0===g||32===g)&&(y||C||p.length>0)&&(g|=512),!t.inSSR&&s)switch(s.type){case 15:let A=-1,I=-1,R=!1;for(let e=0;e{if(s2(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:l}=function(e,t){let n,r='"default"',i=[];for(let t=0;t0){let{props:r,directives:l}=o8(e,t,i,!1,!1);n=r,l.length&&t.onError(sU(36,l[0].loc))}return{slotName:r,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"],o=2;l&&(s[2]=l,o=3),n.length&&(s[3]=sN([],n,!1,!1,r),o=4),t.scopeId&&!t.slotted&&(o=5),s.splice(o),e.codegenNode=sA(t.helper(se),s,r)}},ae=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,at=(e,t,n,r)=>{let i;let{loc:l,modifiers:s,arg:o}=e;if(e.exp||s.length,4===o.type){if(o.isStatic){let e=o.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),i=sw(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?W(U(e)):`on:${e}`,!0,o.loc)}else i=sE([`${n.helperString(sd)}(`,o,")"])}else(i=o).children.unshift(`${n.helperString(sd)}(`),i.children.push(")");let a=e.exp;a&&!a.content.trim()&&(a=void 0);let c=n.cacheHandlers&&!a&&!n.inVOnce;if(a){let e=sJ(a.content),t=!(e||ae.test(a.content)),n=a.content.includes(";");(t||c&&e)&&(a=sE([`${t?"$event":"(...args)"} => ${n?"{":"("}`,a,n?"}":")"]))}let u={props:[sT(i,a||sw("() => {}",!1,l))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},an=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{let n;let r=e.children,i=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))))for(let e=0;e{if(1===e.type&&sX(e,"once",!0)&&!ar.has(e)&&!t.inVOnce&&!t.inSSR)return ar.add(e),t.inVOnce=!0,t.helper(sp),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}},al=(e,t,n)=>{let r;let{exp:i,arg:l}=e;if(!i)return n.onError(sU(41,e.loc)),as();let s=i.loc.source,o=4===i.type?i.content:s,a=n.bindingMetadata[s];if("props"===a||"props-aliased"===a)return i.loc,as();if(!o.trim()||!sJ(o))return n.onError(sU(42,i.loc)),as();let c=l||sw("modelValue",!0),u=l?sj(l)?`onUpdate:${U(l.content)}`:sE(['"onUpdate:" + ',l]):"onUpdate:modelValue",d=n.isTS?"($event: any)":"$event";r=sE([`${d} => ((`,i,") = $event)"]);let p=[sT(c,e.exp),sT(u,r)];if(e.modifiers.length&&1===t.tagType){let t=e.modifiers.map(e=>(sW(e)?e:JSON.stringify(e))+": true").join(", "),n=l?sj(l)?`${l.content}Modifiers`:sE([l,' + "Modifiers"']):"modelModifiers";p.push(sT(n,sw(`{ ${t} }`,!1,e.loc,2)))}return as(p)};function as(e=[]){return{props:e}}let ao=new WeakSet,aa=(e,t)=>{if(1===e.type){let n=sX(e,"memo");if(!(!n||ao.has(e)))return ao.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&sR(r,t),e.codegenNode=sA(t.helper(sv),[n.exp,sN(void 0,r),"_cache",String(t.cached++)]))}}},ac=Symbol(""),au=Symbol(""),ad=Symbol(""),ap=Symbol(""),ah=Symbol(""),af=Symbol(""),am=Symbol(""),ag=Symbol(""),ay=Symbol(""),av=Symbol("");!function(e){Object.getOwnPropertySymbols(e).forEach(t=>{s_[t]=e[t]})}({[ac]:"vModelRadio",[au]:"vModelCheckbox",[ad]:"vModelText",[ap]:"vModelSelect",[ah]:"vModelDynamic",[af]:"withModifiers",[am]:"withKeys",[ag]:"vShow",[ay]:"Transition",[av]:"TransitionGroup"});let ab={parseMode:"html",isVoidTag:ea,isNativeTag:e=>el(e)||es(e)||eo(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return(c||(c=document.createElement("div")),t)?(c.innerHTML=`
`,c.children[0].getAttribute("foo")):(c.innerHTML=e,c.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?ay:"TransitionGroup"===e||"transition-group"===e?av:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r){if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0)}else t&&1===r&&("foreignObject"===t.tag||"desc"===t.tag||"title"===t.tag)&&(r=0);if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},a_=(e,t)=>sw(JSON.stringify(er(e)),!1,t,3),aS=u("passive,once,capture"),ax=u("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),aC=u("left,right"),ak=u("onkeyup,onkeydown,onkeypress",!0),aT=(e,t,n,r)=>{let i=[],l=[],s=[];for(let n=0;nsj(e)&&"onclick"===e.content.toLowerCase()?sw(t,!0):4!==e.type?sE(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,aE=(e,t)=>{1===e.type&&0===e.tagType&&("script"===e.tag||"style"===e.tag)&&t.removeNode()},aA=[e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:sw("style",!0,t.loc),exp:a_(t.value.content,t.loc),modifiers:[],loc:t.loc})})}],aN={cloak:()=>({props:[]}),html:(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(sU(53,i)),t.children.length&&(n.onError(sU(54,i)),t.children.length=0),{props:[sT(sw("innerHTML",!0,i),r||sw("",!0))]}},text:(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(sU(55,i)),t.children.length&&(n.onError(sU(56,i)),t.children.length=0),{props:[sT(sw("textContent",!0),r?oN(r,n)>0?r:sA(n.helperString(sn),[r],i):sw("",!0))]}},model:(e,t,n)=>{let r=al(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(sU(58,e.arg.loc));let{tag:i}=t,l=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||l){let s=ad,o=!1;if("input"===i||l){let r=sQ(t,"type");if(r){if(7===r.type)s=ah;else if(r.value)switch(r.value.content){case"radio":s=ac;break;case"checkbox":s=au;break;case"file":o=!0,n.onError(sU(59,e.loc))}}else t.props.some(e=>7===e.type&&"bind"===e.name&&(!e.arg||4!==e.arg.type||!e.arg.isStatic))&&(s=ah)}else"select"===i&&(s=ap);o||(r.needRuntime=n.helper(s))}else n.onError(sU(57,e.loc));return r.props=r.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),r},on:(e,t,n)=>at(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:l}=t.props[0],{keyModifiers:s,nonKeyModifiers:o,eventOptionModifiers:a}=aT(i,r,n,e.loc);if(o.includes("right")&&(i=aw(i,"onContextmenu")),o.includes("middle")&&(i=aw(i,"onMouseup")),o.length&&(l=sA(n.helper(af),[l,JSON.stringify(o)])),s.length&&(!sj(i)||ak(i.content))&&(l=sA(n.helper(am),[l,JSON.stringify(s)])),a.length){let e=a.map(q).join("");i=sj(i)?sw(`${i.content}${e}`,!0):sE(["(",i,`) + "${e}"`])}return{props:[sT(i,l)]}}),show:(e,t,n)=>{let{exp:r,loc:i}=e;return!r&&n.onError(sU(61,i)),{props:[],needRuntime:n.helper(ag)}}},aI=new WeakMap;function aR(e,t){let n;if(!A(e)){if(!e.nodeType)return h;e=e.innerHTML}let r=e,i=((n=aI.get(null!=t?t:d))||(n=Object.create(null),aI.set(null!=t?t:d,n)),n),l=i[r];if(l)return l;if("#"===e[0]){let t=document.querySelector(e);e=t?t.innerHTML:""}let s=y({hoistStatic:!0,onError:void 0,onWarn:h},t);s.isCustomElement||"undefined"==typeof customElements||(s.isCustomElement=e=>!!customElements.get(e));let{code:o}=function(e,t={}){return function(e,t={}){let n=t.onError||sB,r="module"===t.mode;!0===t.prefixIdentifiers?n(sU(47)):r&&n(sU(48)),t.cacheHandlers&&n(sU(49)),t.scopeId&&!r&&n(sU(50));let i=y({},t,{prefixIdentifiers:!1}),l=A(e)?function(e,t){if(od.reset(),on=null,or=null,oi="",ol=-1,os=-1,ou.length=0,ot=e,s7=y({},s9),t){let e;for(e in t)null!=t[e]&&(s7[e]=t[e])}od.mode="html"===s7.parseMode?1:"sfc"===s7.parseMode?2:0,od.inXML=1===s7.ns||2===s7.ns;let n=t&&t.delimiters;n&&(od.delimiterOpen=sF(n[0]),od.delimiterClose=sF(n[1]));let r=oe=function(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:sS}}([],e);return od.parse(ot),r.loc=ok(0,e.length),r.children=oS(r.children),oe=null,r}(e,i):e,[s,o]=[[ai,oq,aa,oQ,o7,o4,o1,an],{on:at,bind:oG,model:al}];return!function(e,t){let n=function(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:l=!1,nodeTransforms:s=[],directiveTransforms:o={},transformHoist:a=null,isBuiltInComponent:c=h,isCustomElement:u=h,expressionPlugins:p=[],scopeId:f=null,slotted:m=!0,ssr:g=!1,inSSR:y=!1,ssrCssVars:b="",bindingMetadata:_=d,inline:S=!1,isTS:x=!1,onError:C=sB,onWarn:k=sD,compatConfig:T}){let w=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),E={filename:t,selfName:w&&q(U(w[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:l,nodeTransforms:s,directiveTransforms:o,transformHoist:a,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:p,scopeId:f,slotted:m,ssr:g,inSSR:y,ssrCssVars:b,bindingMetadata:_,inline:S,isTS:x,onError:C,onWarn:k,compatConfig:T,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){let t=E.helpers.get(e)||0;return E.helpers.set(e,t+1),e},removeHelper(e){let t=E.helpers.get(e);if(t){let n=t-1;n?E.helpers.set(e,n):E.helpers.delete(e)}},helperString:e=>`_${s_[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){let t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:h,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){A(e)&&(e=sw(e)),E.hoists.push(e);let t=sw(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>(function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:sS}})(E.cached++,e,t)};return E}(e,t);o$(e,n),t.hoistStatic&&function e(t,n,r=!1){let{children:i}=t,l=i.length,s=0;for(let t=0;t0){if(e>=2){l.codegenNode.patchFlag="-1",l.codegenNode=n.hoist(l.codegenNode),s++;continue}}else{let e=l.codegenNode;if(13===e.type){let t=oL(e);if((!t||512===t||1===t)&&oR(l,n)>=2){let t=oO(l);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}if(1===l.type){let t=1===l.tagType;t&&n.scopes.vSlot++,e(l,n),t&&n.scopes.vSlot--}else if(11===l.type)e(l,n,1===l.children.length);else if(9===l.type)for(let t=0;t1&&(e.codegenNode=sx(t,n(lW),void 0,e.children,"64",void 0,void 0,!0,void 0,!1))}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0}(l,y({},i,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:y({},o,t.directiveTransforms||{})})),function(e,t={}){let n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:l=null,optimizeImports:s=!1,runtimeGlobalName:o="Vue",runtimeModuleName:a="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){let h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:l,optimizeImports:s,runtimeGlobalName:o,runtimeModuleName:a,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${s_[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:l,indent:s,deindent:o,newline:a,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!l&&"module"!==r;(function(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:l,runtimeModuleName:s,runtimeGlobalName:o,ssrRuntimeModuleName:a}=t,c=Array.from(e.helpers);if(c.length>0&&(i(`const _Vue = ${o} -`,-1),e.hoists.length)){let e=[lY,l0,l1,l2,l3].filter(e=>c.includes(e)).map(oF).join(", ");i(`const { ${e} } = _Vue -`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;let{push:n,newline:r,helper:i,scopeId:l,mode:s}=t;r();for(let i=0;i0)&&a()),e.directives.length&&(oV(e.directives,"directive",n),e.temps>0&&a()),e.temps>0){i("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` -`,0),a()),u||i("return "),e.codegenNode?oU(e.codegenNode,n):i("null"),h&&(o(),i("}")),o(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(l,i)}(e,y({},ab,t,{nodeTransforms:[aE,...aA,...t.nodeTransforms||[]],directiveTransforms:y({},aN,t.directiveTransforms||{}),transformHoist:null}))}(e,s),a=Function(o)();return a._rc=!0,i[r]=a}return iw(aR),e.BaseTransition=rD,e.BaseTransitionPropsValidators=rV,e.Comment=r2,e.DeprecationTypes=null,e.EffectScope=eg,e.ErrorCodes={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},e.ErrorTypeStrings=null,e.Fragment=r0,e.KeepAlive={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=i_(),r=n.ctx,i=new Map,l=new Set,s=null,o=n.suspense,{renderer:{p:a,m:c,um:u,o:{createElement:d}}}=r,p=d("div");function h(e){rO(e),u(e,n,o,!0)}function f(e){i.forEach((t,n)=>{let r=iR(t.type);!r||e&&e(r)||m(n)})}function m(e){let t=i.get(e);s&&ir(t,s)?s&&rO(s):h(t),i.delete(e),l.delete(e)}r.activate=(e,t,n,r,i)=>{let l=e.component;c(e,t,n,0,o),a(l.vnode,e,t,n,l,o,r,e.slotScopeIds,i),rd(()=>{l.isDeactivated=!1,l.a&&z(l.a);let t=e.props&&e.props.onVnodeMounted;t&&ig(t,l.parent,e)},o)},r.deactivate=e=>{let t=e.component;rv(t.m),rv(t.a),c(e,p,null,1,o),rd(()=>{t.da&&z(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&ig(n,t.parent,e),t.isDeactivated=!0},o)},rC(()=>[e.include,e.exclude],([e,t])=>{e&&f(t=>rA(e,t)),t&&f(e=>!rA(t,e))},{flush:"post",deep:!0});let g=null,y=()=>{null!=g&&(no(n.subTree.type)?rd(()=>{i.set(g,rL(n.subTree))},n.subTree.suspense):i.set(g,rL(n.subTree)))};return ny(y),nb(y),n_(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=rL(t);if(e.type===i.type&&e.key===i.key){rO(i);let e=i.component.da;e&&rd(e,r);return}h(e)})}),()=>{if(g=null,!t.default)return null;let n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!it(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return s=null,r;let o=rL(r),a=o.type,c=iR(nA(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:p}=e;if(u&&(!c||!rA(u,c))||d&&c&&rA(d,c))return s=o,r;let h=null==o.key?a:o.key,f=i.get(h);return o.el&&(o=ic(o),128&r.shapeFlag&&(r.ssContent=o)),g=h,f?(o.el=f.el,o.component=f.component,o.transition&&rW(o,o.transition),o.shapeFlag|=512,l.delete(h),l.add(h)):(l.add(h),p&&l.size>parseInt(p,10)&&m(l.values().next().value)),o.shapeFlag|=256,s=o,no(r.type)?r:o}}},e.ReactiveEffect=ev,e.Static=r3,e.Suspense={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,l,s,o,a,c){if(null==e)(function(e,t,n,r,i,l,s,o,a){let{p:c,o:{createElement:u}}=a,d=u("div"),p=e.suspense=nu(e,i,r,t,d,n,l,s,o,a);c(null,p.pendingBranch=e.ssContent,d,null,r,p,l,s),p.deps>0?(nc(e,"onPending"),nc(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,l,s),nh(p,e.ssFallback)):p.resolve(!1,!0)})(t,n,r,i,l,s,o,a,c);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}(function(e,t,n,r,i,l,s,o,{p:a,um:c,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:y}=d;if(m)d.pendingBranch=p,ir(p,m)?(a(m,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0?d.resolve():g&&!y&&(a(f,h,n,r,i,null,l,s,o),nh(d,h))):(d.pendingId=na++,y?(d.isHydrating=!1,d.activeBranch=m):c(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0?d.resolve():(a(f,h,n,r,i,null,l,s,o),nh(d,h))):f&&ir(p,f)?(a(f,p,n,r,i,d,l,s,o),d.resolve(!0)):(a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0&&d.resolve()));else if(f&&ir(p,f))a(f,p,n,r,i,d,l,s,o),nh(d,p);else if(nc(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=na++,a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(h)},e):0===e&&d.fallback(h)}})(e,t,n,r,i,s,o,a,c)}},hydrate:function(e,t,n,r,i,l,s,o,a){let c=t.suspense=nu(t,r,n,e.parentNode,document.createElement("div"),null,i,l,s,o,!0),u=a(e,c.pendingBranch=t.ssContent,n,c,l,s);return 0===c.deps&&c.resolve(!1,!0),u},normalize:function(e){let{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=nd(r?n.default:n),e.ssFallback=r?nd(n.fallback):io(r2)}},e.Teleport={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,l,s,o,a,c){let{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g}}=c,y=rG(t.props),{shapeFlag:b,children:_,dynamicChildren:S}=t;if(null==e){let e=t.el=m(""),c=t.anchor=m("");h(e,n,r),h(c,n,r);let d=t.target=rQ(t.props,f),p=t.targetAnchor=m("");d&&(h(p,d),"svg"===s||rJ(d)?s="svg":("mathml"===s||rX(d))&&(s="mathml"));let g=(e,t)=>{16&b&&u(_,e,t,i,l,s,o,a)};y?g(n,c):d&&g(d,p)}else{t.el=e.el;let r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=rG(e.props),g=m?n:u;if("svg"===s||rJ(u)?s="svg":("mathml"===s||rX(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,i,l,s,o),ry(e,t,!0)):a||d(e,t,g,m?r:h,i,l,s,o,!1),y)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):rZ(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=rQ(t.props,f);e&&rZ(t,e,null,c,0)}else m&&rZ(t,u,h,c,1)}rY(t)},remove(e,t,n,{um:r,o:{remove:i}},l){let{shapeFlag:s,children:o,anchor:a,targetAnchor:c,target:u,props:d}=e;if(u&&i(c),l&&i(a),16&s){let e=l||!rG(d);for(let i=0;i{let t=(a||(a=rh(lV))).createApp(...e),{mount:n}=t;return t.mount=e=>{let r=lq(e);if(!r)return;let i=t._component;E(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";let l=n(r,!1,lH(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t},e.createBlock=ie,e.createCommentVNode=function(e="",t=!1){return t?(r8(),ie(r2,null,e)):io(r2,null,e)},e.createElementBlock=function(e,t,n,r,i,l){return r7(is(e,t,n,r,i,l,!0))},e.createElementVNode=is,e.createHydrationRenderer=rp,e.createPropsRestProxy=function(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n},e.createRenderer=function(e){return rh(e)},e.createSSRApp=(...e)=>{let t=lD().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=lq(e);if(t)return n(t,!0,lH(t))},t},e.createSlots=function(e,t){for(let n=0;n{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e},e.createStaticVNode=function(e,t){let n=io(r3,null,e);return n.staticCount=t,n},e.createTextVNode=iu,e.createVNode=io,e.customRef=tO,e.defineAsyncComponent=/*! #__NO_SIDE_EFFECTS__ */function(e){let t;E(e)&&(e={loader:e});let{loader:n,loadingComponent:r,errorComponent:i,delay:l=200,timeout:s,suspensible:o=!0,onError:a}=e,c=null,u=0,d=()=>(u++,c=null,p()),p=()=>{let e;return c||(e=c=n().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),a)return new Promise((t,n)=>{a(e,()=>t(d()),()=>n(e),u+1)});throw e}).then(n=>e!==c&&c?c:(n&&(n.__esModule||"Module"===n[Symbol.toStringTag])&&(n=n.default),t=n,n)))};return nE({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return t},setup(){let e=ib;if(t)return()=>nN(t,e);let n=t=>{c=null,tV(t,e,13,!i)};if(o&&e.suspense)return p().then(t=>()=>nN(t,e)).catch(e=>(n(e),()=>i?io(i,{error:e}):null));let a=tT(!1),u=tT(),d=tT(!!l);return l&&setTimeout(()=>{d.value=!1},l),null!=s&&setTimeout(()=>{if(!a.value&&!u.value){let e=Error(`Async component timed out after ${s}ms.`);n(e),u.value=e}},s),p().then(()=>{a.value=!0,e.parent&&rE(e.parent.vnode)&&(e.parent.effect.dirty=!0,tJ(e.parent.update))}).catch(e=>{n(e),u.value=e}),()=>a.value&&t?nN(t,e):u.value&&i?io(i,{error:u.value}):r&&!d.value?io(r):void 0}})},e.defineComponent=nE,e.defineCustomElement=ld,e.defineEmits=function(){return null},e.defineExpose=function(e){},e.defineModel=function(){},e.defineOptions=function(e){},e.defineProps=function(){return null},e.defineSSRCustomElement=(e,t)=>ld(e,t,lj),e.defineSlots=function(){return null},e.devtools=void 0,e.effect=function(e,t){e.effect instanceof ev&&(e=e.effect.fn);let n=new ev(e,h,()=>{n.dirty&&n.run()});t&&(y(n,t),t.scope&&ey(n,t.scope)),t&&t.lazy||n.run();let r=n.run.bind(n);return r.effect=n,r},e.effectScope=function(e){return new eg(e)},e.getCurrentInstance=i_,e.getCurrentScope=function(){return n},e.getTransitionRawChildren=rK,e.guardReactiveProps=ia,e.h=iL,e.handleError=tV,e.hasInjectionContext=function(){return!!(ib||t6||nJ)},e.hydrate=lj,e.initCustomFormatter=function(){},e.initDirectivesForSSR=h,e.inject=nQ,e.isMemoSame=i$,e.isProxy=tg,e.isReactive=th,e.isReadonly=tf,e.isRef=tk,e.isRuntimeOnly=()=>!s,e.isShallow=tm,e.isVNode=it,e.markRaw=tv,e.mergeDefaults=function(e,t){let n=nP(e);for(let e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?x(r)||E(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n},e.mergeModels=function(e,t){return e&&t?x(e)&&x(t)?e.concat(t):y({},nP(e),nP(t)):e||t},e.mergeProps=im,e.nextTick=tG,e.normalizeClass=ei,e.normalizeProps=function(e){if(!e)return null;let{class:t,style:n}=e;return t&&!A(t)&&(e.class=ei(t)),n&&(e.style=Y(n)),e},e.normalizeStyle=Y,e.onActivated=rN,e.onBeforeMount=ng,e.onBeforeUnmount=n_,e.onBeforeUpdate=nv,e.onDeactivated=rI,e.onErrorCaptured=nT,e.onMounted=ny,e.onRenderTracked=nk,e.onRenderTriggered=nC,e.onScopeDispose=function(e){n&&n.cleanups.push(e)},e.onServerPrefetch=nx,e.onUnmounted=nS,e.onUpdated=nb,e.openBlock=r8,e.popScopeId=function(){t4=null},e.provide=nX,e.proxyRefs=tI,e.pushScopeId=function(e){t4=e},e.queuePostFlushCb=tQ,e.reactive=tc,e.readonly=td,e.ref=tT,e.registerRuntimeCompiler=iw,e.render=lU,e.renderList=function(e,t,n,r){let i;let l=n&&n[r];if(x(e)||A(e)){i=Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,l&&l[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,s=n.length;r!it(t)||!!(t.type!==r2&&(t.type!==r0||e(t.children))))?t:null}(l(n)),o=ie(r0,{key:n.key||s&&s.key||`_${t}`},s||(r?r():[]),s&&1===e._?64:-2);return!i&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),l&&l._c&&(l._d=!0),o},e.resolveComponent=function(e,t){return nl(nr,e,!0,t)||e},e.resolveDirective=function(e){return nl("directives",e)},e.resolveDynamicComponent=function(e){return A(e)?nl(nr,e,!1)||e:e||ni},e.resolveFilter=null,e.resolveTransitionHooks=rj,e.setBlockTracking=function(e){r9+=e},e.setDevtoolsHook=h,e.setTransitionHooks=rW,e.shallowReactive=tu,e.shallowReadonly=function(e){return tp(e,!0,ez,ti,ta)},e.shallowRef=function(e){return tw(e,!0)},e.ssrContextKey=rb,e.ssrUtils=null,e.stop=function(e){e.effect.stop()},e.toDisplayString=eh,e.toHandlerKey=W,e.toHandlers=function(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:W(r)]=e[r];return n},e.toRaw=ty,e.toRef=function(e,t,n){return tk(e)?e:E(e)?new t$(e):I(e)&&arguments.length>1?tM(e,t,n):tT(e)},e.toRefs=function(e){let t=x(e)?Array(e.length):{};for(let n in e)t[n]=tM(e,n);return t},e.toValue=function(e){return E(e)?e():tA(e)},e.transformVNodeArgs=function(e){},e.triggerRef=function(e){tC(e,4)},e.unref=tA,e.useAttrs=function(){return nM().attrs},e.useCssModule=function(e="$style"){return d},e.useCssVars=function(e){let t=i_();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>i8(e,n))},r=()=>{let r=e(t.proxy);(function e(t,n){if(128&t.shapeFlag){let r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{e(r.activeBranch,n)})}for(;t.component;)t=t.component.subTree;if(1&t.shapeFlag&&t.el)i8(t.el,n);else if(t.type===r0)t.children.forEach(t=>e(t,n));else if(t.type===r3){let{el:e,anchor:r}=t;for(;e&&(i8(e,n),e!==r);)e=e.nextSibling}})(t.subTree,r),n(r)};ny(()=>{r_(r);let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),nS(()=>e.disconnect())})},e.useModel=function(e,t,n=d){let r=i_(),i=U(t),l=H(t),s=tO((s,o)=>{let a;return rS(()=>{let n=e[t];K(a,n)&&(a=n,o())}),{get:()=>(s(),n.get?n.get(a):a),set(e){let s=r.vnode.props;!(s&&(t in s||i in s||l in s)&&(`onUpdate:${t}` in s||`onUpdate:${i}` in s||`onUpdate:${l}` in s))&&K(e,a)&&(a=e,o()),r.emit(`update:${t}`,n.set?n.set(e):e)}}}),o="modelValue"===t?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let t=0;return{next:()=>t<2?{value:t++?e[o]||{}:s,done:!1}:{done:!0}}},s},e.useSSRContext=()=>{},e.useSlots=function(){return nM().slots},e.useTransitionState=rP,e.vModelCheckbox=lE,e.vModelDynamic={created(e,t,n){l$(e,t,n,null,"created")},mounted(e,t,n){l$(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){l$(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){l$(e,t,n,r,"updated")}},e.vModelRadio=lN,e.vModelSelect=lI,e.vModelText=lw,e.vShow={beforeMount(e,{value:t},{transition:n}){e[i2]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):i6(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),i6(e,!0),r.enter(e)):r.leave(e,()=>{i6(e,!1)}):i6(e,t))},beforeUnmount(e,{value:t}){i6(e,t)}},e.version=iM,e.warn=h,e.watch=function(e,t,n){return rC(e,t,n)},e.watchEffect=function(e,t){return rC(e,null,t)},e.watchPostEffect=r_,e.watchSyncEffect=rS,e.withAsyncContext=function(e){let t=i_(),n=e();return ix(),R(n)&&(n=n.catch(e=>{throw iS(t),e})),[n,()=>iS(t)]},e.withCtx=t5,e.withDefaults=function(e,t){return null},e.withDirectives=function(e,t){if(null===t6)return e;let n=iI(t6),r=e.dirs||(e.dirs=[]);for(let e=0;e{let n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;let r=H(n.key);if(t.some(e=>e===r||lF[e]===r))return e(n)})},e.withMemo=function(e,t,n,r){let i=n[r];if(i&&i$(i,e))return i;let l=t();return l.memo=e.slice(),l.memoIndex=r,n[r]=l},e.withModifiers=(e,t)=>{let n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;et5,e}({}); +**/var Vue=function(e){"use strict";let t,n,r,i,l,s,o,a,c;/*! #__NO_SIDE_EFFECTS__ */function u(e,t){let n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}let d={},p=[],h=()=>{},f=()=>!1,m=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||97>e.charCodeAt(2)),g=e=>e.startsWith("onUpdate:"),y=Object.assign,b=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},_=Object.prototype.hasOwnProperty,S=(e,t)=>_.call(e,t),x=Array.isArray,C=e=>"[object Map]"===L(e),k=e=>"[object Set]"===L(e),T=e=>"[object Date]"===L(e),w=e=>"[object RegExp]"===L(e),E=e=>"function"==typeof e,A=e=>"string"==typeof e,N=e=>"symbol"==typeof e,I=e=>null!==e&&"object"==typeof e,R=e=>(I(e)||E(e))&&E(e.then)&&E(e.catch),O=Object.prototype.toString,L=e=>O.call(e),M=e=>L(e).slice(8,-1),$=e=>"[object Object]"===L(e),P=e=>A(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,F=u(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=u("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),V=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},B=/-(\w)/g,U=V(e=>e.replace(B,(e,t)=>t?t.toUpperCase():"")),j=/\B([A-Z])/g,H=V(e=>e.replace(j,"-$1").toLowerCase()),q=V(e=>e.charAt(0).toUpperCase()+e.slice(1)),W=V(e=>e?`on${q(e)}`:""),K=(e,t)=>!Object.is(e,t),z=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},J=e=>{let t=parseFloat(e);return isNaN(t)?e:t},X=e=>{let t=A(e)?Number(e):NaN;return isNaN(t)?e:t},Q=()=>t||(t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),Z=u("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function Y(e){if(x(e)){let t={};for(let n=0;n{if(e){let n=e.split(et);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ei(e){let t="";if(A(e))t=e;else if(x(e))for(let n=0;neu(e,t))}let ep=e=>!!(e&&!0===e.__v_isRef),eh=e=>A(e)?e:null==e?"":x(e)||I(e)&&(e.toString===O||!E(e.toString))?ep(e)?eh(e.value):JSON.stringify(e,ef,2):String(e),ef=(e,t)=>ep(t)?ef(e,t.value):C(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[em(t,r)+" =>"]=n,e),{})}:k(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>em(e))}:N(t)?em(t):!I(t)||x(t)||$(t)?t:String(t),em=(e,t="")=>{var n;return N(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};class eg{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=n,!e&&n&&(this.index=(n.scopes||(n.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){let t=n;try{return n=this,e()}finally{n=t}}}on(){n=this}off(){n=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),ew()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=ex,t=r;try{return ex=!0,r=this,this._runnings++,eb(this),this.fn()}finally{e_(this),this._runnings--,r=t,ex=e}}stop(){this.active&&(eb(this),e_(this),this.onStop&&this.onStop(),this.active=!1)}}function eb(e){e._trackId++,e._depsLength=0}function e_(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{let n=new Map;return n.cleanup=e,n.computed=t,n},eO=new WeakMap,eL=Symbol(""),eM=Symbol("");function e$(e,t,n){if(ex&&r){let t=eO.get(e);t||eO.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=eR(()=>t.delete(n))),eA(r,i)}}function eP(e,t,n,r,i,l){let s=eO.get(e);if(!s)return;let o=[];if("clear"===t)o=[...s.values()];else if("length"===n&&x(e)){let e=Number(r);s.forEach((t,n)=>{("length"===n||!N(n)&&n>=e)&&o.push(t)})}else switch(void 0!==n&&o.push(s.get(n)),t){case"add":x(e)?P(n)&&o.push(s.get("length")):(o.push(s.get(eL)),C(e)&&o.push(s.get(eM)));break;case"delete":!x(e)&&(o.push(s.get(eL)),C(e)&&o.push(s.get(eM)));break;case"set":C(e)&&o.push(s.get(eL))}for(let e of(eC++,o))e&&eI(e,4);eE()}let eF=u("__proto__,__v_isRef,__isVue"),eD=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(N)),eV=function(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){let n=ty(this);for(let e=0,t=this.length;e{e[t]=function(...e){eT(),eC++;let n=ty(this)[t].apply(this,e);return eE(),ew(),n}}),e}();function eB(e){N(e)||(e=String(e));let t=ty(this);return e$(t,"has",e),t.hasOwnProperty(e)}class eU{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){let r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?ta:to:i?ts:tl).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let l=x(e);if(!r){if(l&&S(eV,t))return Reflect.get(eV,t,n);if("hasOwnProperty"===t)return eB}let s=Reflect.get(e,t,n);return(N(t)?eD.has(t):eF(t))?s:(r||e$(e,"get",t),i)?s:tk(s)?l&&P(t)?s:s.value:I(s)?r?td(s):tc(s):s}}class ej extends eU{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){let t=tf(i);if(tm(n)||tf(n)||(i=ty(i),n=ty(n)),!x(e)&&tk(i)&&!tk(n))return!t&&(i.value=n,!0)}let l=x(e)&&P(t)?Number(t)e,eJ=e=>Reflect.getPrototypeOf(e);function eX(e,t,n=!1,r=!1){let i=ty(e=e.__v_raw),l=ty(t);n||(K(t,l)&&e$(i,"get",t),e$(i,"get",l));let{has:s}=eJ(i),o=r?eG:n?t_:tb;return s.call(i,t)?o(e.get(t)):s.call(i,l)?o(e.get(l)):void(e!==i&&e.get(t))}function eQ(e,t=!1){let n=this.__v_raw,r=ty(n),i=ty(e);return t||(K(e,i)&&e$(r,"has",e),e$(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function eZ(e,t=!1){return e=e.__v_raw,t||e$(ty(e),"iterate",eL),Reflect.get(e,"size",e)}function eY(e,t=!1){t||tm(e)||tf(e)||(e=ty(e));let n=ty(this);return eJ(n).has.call(n,e)||(n.add(e),eP(n,"add",e,e)),this}function e0(e,t,n=!1){n||tm(t)||tf(t)||(t=ty(t));let r=ty(this),{has:i,get:l}=eJ(r),s=i.call(r,e);s||(e=ty(e),s=i.call(r,e));let o=l.call(r,e);return r.set(e,t),s?K(t,o)&&eP(r,"set",e,t):eP(r,"add",e,t),this}function e1(e){let t=ty(this),{has:n,get:r}=eJ(t),i=n.call(t,e);i||(e=ty(e),i=n.call(t,e)),r&&r.call(t,e);let l=t.delete(e);return i&&eP(t,"delete",e,void 0),l}function e2(){let e=ty(this),t=0!==e.size,n=e.clear();return t&&eP(e,"clear",void 0,void 0),n}function e3(e,t){return function(n,r){let i=this,l=i.__v_raw,s=ty(l),o=t?eG:e?t_:tb;return e||e$(s,"iterate",eL),l.forEach((e,t)=>n.call(r,o(e),o(t),i))}}function e6(e,t,n){return function(...r){let i=this.__v_raw,l=ty(i),s=C(l),o="entries"===e||e===Symbol.iterator&&s,a=i[e](...r),c=n?eG:t?t_:tb;return t||e$(l,"iterate","keys"===e&&s?eM:eL),{next(){let{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function e4(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[e8,e5,e9,e7]=function(){let e={get(e){return eX(this,e)},get size(){return eZ(this)},has:eQ,add:eY,set:e0,delete:e1,clear:e2,forEach:e3(!1,!1)},t={get(e){return eX(this,e,!1,!0)},get size(){return eZ(this)},has:eQ,add(e){return eY.call(this,e,!0)},set(e,t){return e0.call(this,e,t,!0)},delete:e1,clear:e2,forEach:e3(!1,!0)},n={get(e){return eX(this,e,!0)},get size(){return eZ(this,!0)},has(e){return eQ.call(this,e,!0)},add:e4("add"),set:e4("set"),delete:e4("delete"),clear:e4("clear"),forEach:e3(!0,!1)},r={get(e){return eX(this,e,!0,!0)},get size(){return eZ(this,!0)},has(e){return eQ.call(this,e,!0)},add:e4("add"),set:e4("set"),delete:e4("delete"),clear:e4("clear"),forEach:e3(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=e6(i,!1,!1),n[i]=e6(i,!0,!1),t[i]=e6(i,!1,!0),r[i]=e6(i,!0,!0)}),[e,n,t,r]}();function te(e,t){let n=t?e?e7:e9:e?e5:e8;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(S(n,r)&&r in t?n:t,r,i)}let tt={get:te(!1,!1)},tn={get:te(!1,!0)},tr={get:te(!0,!1)},ti={get:te(!0,!0)},tl=new WeakMap,ts=new WeakMap,to=new WeakMap,ta=new WeakMap;function tc(e){return tf(e)?e:tp(e,!1,eq,tt,tl)}function tu(e){return tp(e,!1,eK,tn,ts)}function td(e){return tp(e,!0,eW,tr,to)}function tp(e,t,n,r,i){if(!I(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let l=i.get(e);if(l)return l;let s=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}}(M(e));if(0===s)return e;let o=new Proxy(e,2===s?r:n);return i.set(e,o),o}function th(e){return tf(e)?th(e.__v_raw):!!(e&&e.__v_isReactive)}function tf(e){return!!(e&&e.__v_isReadonly)}function tm(e){return!!(e&&e.__v_isShallow)}function tg(e){return!!e&&!!e.__v_raw}function ty(e){let t=e&&e.__v_raw;return t?ty(t):e}function tv(e){return Object.isExtensible(e)&&G(e,"__v_skip",!0),e}let tb=e=>I(e)?tc(e):e,t_=e=>I(e)?td(e):e;class tS{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ev(()=>e(this._value),()=>tC(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){let e=ty(this);return(!e._cacheable||e.effect.dirty)&&K(e._value,e._value=e.effect.run())&&tC(e,4),tx(e),e.effect._dirtyLevel>=2&&tC(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function tx(e){var t;ex&&r&&(e=ty(e),eA(r,null!=(t=e.dep)?t:e.dep=eR(()=>e.dep=void 0,e instanceof tS?e:void 0)))}function tC(e,t=4,n,r){let i=(e=ty(e)).dep;i&&eI(i,t)}function tk(e){return!!(e&&!0===e.__v_isRef)}function tT(e){return tw(e,!1)}function tw(e,t){return tk(e)?e:new tE(e,t)}class tE{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ty(e),this._value=t?e:tb(e)}get value(){return tx(this),this._value}set value(e){let t=this.__v_isShallow||tm(e)||tf(e);K(e=t?e:ty(e),this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:tb(e),tC(this,4))}}function tA(e){return tk(e)?e.value:e}let tN={get:(e,t,n)=>tA(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return tk(i)&&!tk(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function tI(e){return th(e)?e:new Proxy(e,tN)}class tR{constructor(e){this.dep=void 0,this.__v_isRef=!0;let{get:t,set:n}=e(()=>tx(this),()=>tC(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function tO(e){return new tR(e)}class tL{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,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(){return function(e,t){let n=eO.get(e);return n&&n.get(t)}(ty(this._object),this._key)}}class tM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function t$(e,t,n){let r=e[t];return tk(r)?r:new tL(e,t,n)}function tP(e,t,n,r){try{return r?e(...r):e()}catch(e){tD(e,t,n)}}function tF(e,t,n,r){if(E(e)){let i=tP(e,t,n,r);return i&&R(i)&&i.catch(e=>{tD(e,t,n)}),i}if(x(e)){let i=[];for(let l=0;l>>1,i=tU[r],l=t0(i);lt0(e)-t0(t));if(tH.length=0,tq){tq.push(...e);return}for(tW=0,tq=e;tWnull==e.id?1/0:e.id,t1=(e,t)=>{let n=t0(e)-t0(t);if(0===n){if(e.pre&&!t.pre)return -1;if(t.pre&&!e.pre)return 1}return n},t2=null,t3=null;function t6(e){let t=t2;return t2=e,t3=e&&e.type.__scopeId||null,t}function t4(e,t=t2,n){if(!t||e._n)return e;let r=(...n)=>{let i;r._d&&ir(-1);let l=t6(t);try{i=e(...n)}finally{t6(l),r._d&&ir(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function t8(e,t,n,r){let i=e.dirs,l=t&&t.dirs;for(let s=0;s{e.isMounted=!0}),nw(()=>{e.isUnmounting=!0}),e}let ne=[Function,Array],nt={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ne,onEnter:ne,onAfterEnter:ne,onEnterCancelled:ne,onBeforeLeave:ne,onLeave:ne,onAfterLeave:ne,onLeaveCancelled:ne,onBeforeAppear:ne,onAppear:ne,onAfterAppear:ne,onAppearCancelled:ne},nn=e=>{let t=e.subTree;return t.component?nn(t.component):t},nr={name:"BaseTransition",props:nt,setup(e,{slots:t}){let n=ik(),r=t7();return()=>{let i=t.default&&nc(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1){for(let e of i)if(e.type!==r4){l=e;break}}let s=ty(e),{mode:o}=s;if(r.isLeaving)return ns(l);let a=no(l);if(!a)return ns(l);let c=nl(a,s,r,n,e=>c=e);na(a,c);let u=n.subTree,d=u&&no(u);if(d&&d.type!==r4&&!io(a,d)&&nn(n).type!==r4){let e=nl(d,s,r,n);if(na(d,e),"out-in"===o&&a.type!==r4)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},ns(l);"in-out"===o&&a.type!==r4&&(e.delayLeave=(e,t,n)=>{ni(r,d)[String(d.key)]=d,e[t5]=()=>{t(),e[t5]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return l}}};function ni(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function nl(e,t,n,r,i){let{appear:l,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:y,onAfterAppear:b,onAppearCancelled:_}=t,S=String(e.key),C=ni(n,e),k=(e,t)=>{e&&tF(e,r,9,t)},T=(e,t)=>{let n=t[1];k(e,t),x(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:s,persisted:o,beforeEnter(t){let r=a;if(!n.isMounted){if(!l)return;r=g||a}t[t5]&&t[t5](!0);let i=C[S];i&&io(e,i)&&i.el[t5]&&i.el[t5](),k(r,[t])},enter(e){let t=c,r=u,i=d;if(!n.isMounted){if(!l)return;t=y||c,r=b||u,i=_||d}let s=!1,o=e[t9]=t=>{s||(s=!0,t?k(i,[e]):k(r,[e]),w.delayedLeave&&w.delayedLeave(),e[t9]=void 0)};t?T(t,[e,o]):o()},leave(t,r){let i=String(e.key);if(t[t9]&&t[t9](!0),n.isUnmounting)return r();k(p,[t]);let l=!1,s=t[t5]=n=>{l||(l=!0,r(),n?k(m,[t]):k(f,[t]),t[t5]=void 0,C[i]!==e||delete C[i])};C[i]=e,h?T(h,[t,s]):s()},clone(e){let l=nl(e,t,n,r,i);return i&&i(l),l}};return w}function ns(e){if(nh(e))return(e=ih(e)).children=null,e}function no(e){if(!nh(e))return e;let{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&E(n.default))return n.default()}}function na(e,t){6&e.shapeFlag&&e.component?na(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nc(e,t=!1,n){let r=[],i=0;for(let l=0;l1)for(let e=0;e!!e.type.__asyncLoader;function np(e,t){let{ref:n,props:r,children:i,ce:l}=t.vnode,s=id(e,r,i);return s.ref=n,s.ce=l,delete t.vnode.ce,s}let nh=e=>e.type.__isKeepAlive;function nf(e,t){return x(e)?e.some(e=>nf(e,t)):A(e)?e.split(",").includes(t):!!w(e)&&e.test(t)}function nm(e,t){ny(e,"a",t)}function ng(e,t){ny(e,"da",t)}function ny(e,t,n=iC){let r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(n_(t,r,n),n){let e=n.parent;for(;e&&e.parent;)nh(e.parent.vnode)&&function(e,t,n,r){let i=n_(t,e,r,!0);nE(()=>{b(r[t],i)},n)}(r,t,n,e),e=e.parent}}function nv(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function nb(e){return 128&e.shapeFlag?e.ssContent:e}function n_(e,t,n=iC,r=!1){if(n){let i=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{eT();let i=iT(n),l=tF(t,n,e,r);return i(),ew(),l});return r?i.unshift(l):i.push(l),l}}let nS=e=>(t,n=iC)=>{iA&&"sp"!==e||n_(e,(...e)=>t(...e),n)},nx=nS("bm"),nC=nS("m"),nk=nS("bu"),nT=nS("u"),nw=nS("bum"),nE=nS("um"),nA=nS("sp"),nN=nS("rtg"),nI=nS("rtc");function nR(e,t=iC){n_("ec",e,t)}let nO="components",nL=Symbol.for("v-ndc");function nM(e,t,n=!0,r=!1){let i=t2||iC;if(i){let n=i.type;if(e===nO){let e=i$(n,!1);if(e&&(e===t||e===U(t)||e===q(U(t))))return n}let l=n$(i[e]||n[e],t)||n$(i.appContext[e],t);return!l&&r?n:l}}function n$(e,t){return e&&(e[t]||e[U(t)]||e[q(U(t))])}let nP=e=>e?iE(e)?iM(e):nP(e.parent):null,nF=y(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nP(e.parent),$root:e=>nP(e.root),$emit:e=>e.emit,$options:e=>nW(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,tJ(e.update)}),$nextTick:e=>e.n||(e.n=tG.bind(e.proxy)),$watch:e=>rV.bind(e)}),nD=(e,t)=>e!==d&&!e.__isScriptSetup&&S(e,t),nV={get({_:e},t){let n,r,i;if("__v_skip"===t)return!0;let{ctx:l,setupState:s,data:o,props:a,accessCache:c,type:u,appContext:p}=e;if("$"!==t[0]){let r=c[t];if(void 0!==r)switch(r){case 1:return s[t];case 2:return o[t];case 4:return l[t];case 3:return a[t]}else{if(nD(s,t))return c[t]=1,s[t];if(o!==d&&S(o,t))return c[t]=2,o[t];if((n=e.propsOptions[0])&&S(n,t))return c[t]=3,a[t];if(l!==d&&S(l,t))return c[t]=4,l[t];nH&&(c[t]=0)}}let h=nF[t];return h?("$attrs"===t&&e$(e.attrs,"get",""),h(e)):(r=u.__cssModules)&&(r=r[t])?r:l!==d&&S(l,t)?(c[t]=4,l[t]):S(i=p.config.globalProperties,t)?i[t]:void 0},set({_:e},t,n){let{data:r,setupState:i,ctx:l}=e;return nD(i,t)?(i[t]=n,!0):r!==d&&S(r,t)?(r[t]=n,!0):!S(e.props,t)&&!("$"===t[0]&&t.slice(1) in e)&&(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l}},s){let o;return!!n[s]||e!==d&&S(e,s)||nD(t,s)||(o=l[0])&&S(o,s)||S(r,s)||S(nF,s)||S(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:S(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},nB=y({},nV,{get(e,t){if(t!==Symbol.unscopables)return nV.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Z(t)});function nU(){let e=ik();return e.setupContext||(e.setupContext=iL(e))}function nj(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let nH=!0;function nq(e,t,n){tF(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function nW(e){let t;let n=e.type,{mixins:r,extends:i}=n,{mixins:l,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(n);return a?t=a:l.length||r||i?(t={},l.length&&l.forEach(e=>nK(t,e,o,!0)),nK(t,n,o)):t=n,I(n)&&s.set(n,t),t}function nK(e,t,n,r=!1){let{mixins:i,extends:l}=t;for(let s in l&&nK(e,l,n,!0),i&&i.forEach(t=>nK(e,t,n,!0)),t)if(r&&"expose"===s);else{let r=nz[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}let nz={data:nG,props:nZ,emits:nZ,methods:nQ,computed:nQ,beforeCreate:nX,created:nX,beforeMount:nX,mounted:nX,beforeUpdate:nX,updated:nX,beforeDestroy:nX,beforeUnmount:nX,destroyed:nX,unmounted:nX,activated:nX,deactivated:nX,errorCaptured:nX,serverPrefetch:nX,components:nQ,directives:nQ,watch:function(e,t){if(!e)return t;if(!t)return e;let n=y(Object.create(null),e);for(let r in t)n[r]=nX(e[r],t[r]);return n},provide:nG,inject:function(e,t){return nQ(nJ(e),nJ(t))}};function nG(e,t){return t?e?function(){return y(E(e)?e.call(this,this):e,E(t)?t.call(this,this):t)}:t:e}function nJ(e){if(x(e)){let t={};for(let n=0;n1)return n&&E(t)?t.call(r&&r.proxy):t}}let n6={},n4=()=>Object.create(n6),n8=e=>Object.getPrototypeOf(e)===n6;function n5(e,t,n,r){let i;let[l,s]=e.propsOptions,o=!1;if(t)for(let a in t){let c;if(F(a))continue;let u=t[a];l&&S(l,c=U(a))?s&&s.includes(c)?(i||(i={}))[c]=u:n[c]=u:rq(e.emitsOptions,a)||a in r&&u===r[a]||(r[a]=u,o=!0)}if(s){let t=ty(n),r=i||d;for(let i=0;i"_"===e[0]||"$stable"===e,rn=e=>x(e)?e.map(ig):[ig(e)],rr=(e,t,n)=>{if(t._n)return t;let r=t4((...e)=>rn(t(...e)),n);return r._c=!1,r},ri=(e,t,n)=>{let r=e._ctx;for(let n in e){if(rt(n))continue;let i=e[n];if(E(i))t[n]=rr(n,i,r);else if(null!=i){let e=rn(i);t[n]=()=>e}}},rl=(e,t)=>{let n=rn(t);e.slots.default=()=>n},rs=(e,t,n)=>{for(let r in t)(n||"_"!==r)&&(e[r]=t[r])},ro=(e,t,n)=>{let r=e.slots=n4();if(32&e.vnode.shapeFlag){let e=t._;e?(rs(r,t,n),n&&G(r,"_",e,!0)):ri(t,r)}else t&&rl(e,t)},ra=(e,t,n)=>{let{vnode:r,slots:i}=e,l=!0,s=d;if(32&r.shapeFlag){let e=t._;e?n&&1===e?l=!1:rs(i,t,n):(l=!t.$stable,ri(t,i)),s=t}else t&&(rl(e,t),s={default:1});if(l)for(let e in i)rt(e)||null!=s[e]||delete i[e]};function rc(e,t,n,r,i=!1){if(x(e)){e.forEach((e,l)=>rc(e,t&&(x(t)?t[l]:t),n,r,i));return}if(nd(r)&&!i)return;let l=4&r.shapeFlag?iM(r.component):r.el,s=i?null:l,{i:o,r:a}=e,c=t&&t.r,u=o.refs===d?o.refs={}:o.refs,p=o.setupState;if(null!=c&&c!==a&&(A(c)?(u[c]=null,S(p,c)&&(p[c]=null)):tk(c)&&(c.value=null)),E(a))tP(a,o,12,[s,u]);else{let t=A(a),r=tk(a);if(t||r){let o=()=>{if(e.f){let n=t?S(p,a)?p[a]:u[a]:a.value;i?x(n)&&b(n,l):x(n)?n.includes(l)||n.push(l):t?(u[a]=[l],S(p,a)&&(p[a]=u[a])):(a.value=[l],e.k&&(u[e.k]=a.value))}else t?(u[a]=s,S(p,a)&&(p[a]=s)):r&&(a.value=s,e.k&&(u[e.k]=s))};s?(o.id=-1,rw(o,n)):o()}}}let ru=Symbol("_vte"),rd=e=>e.__isTeleport,rp=e=>e&&(e.disabled||""===e.disabled),rh=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,rf=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,rm=(e,t)=>{let n=e&&e.to;return A(n)?t?t(n):null:n};function rg(e,t,n,{o:{insert:r},m:i},l=2){0===l&&r(e.targetAnchor,t,n);let{el:s,anchor:o,shapeFlag:a,children:c,props:u}=e,d=2===l;if(d&&r(s,t,n),(!d||rp(u))&&16&a)for(let e=0;e{rb||(console.error("Hydration completed but contains mismatches."),rb=!0)},rS=e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName,rx=e=>e.namespaceURI.includes("MathML"),rC=e=>rS(e)?"svg":rx(e)?"mathml":void 0,rk=e=>8===e.nodeType;function rT(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:l,parentNode:s,remove:o,insert:a,createComment:c}}=e,u=(n,r,o,c,m,_=!1)=>{_=_||!!r.dynamicChildren;let S=rk(n)&&"["===n.data,x=()=>f(n,r,o,c,m,S),{type:C,ref:k,shapeFlag:T,patchFlag:w}=r,E=n.nodeType;r.el=n,-2===w&&(_=!1,r.dynamicChildren=null);let A=null;switch(C){case r6:3!==E?""===r.children?(a(r.el=i(""),s(n),n),A=n):A=x():(n.data!==r.children&&(r_(),n.data=r.children),A=l(n));break;case r4:b(n)?(A=l(n),y(r.el=n.content.firstChild,n,o)):A=8!==E||S?x():l(n);break;case r8:if(S&&(E=(n=l(n)).nodeType),1===E||3===E){A=n;let e=!r.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;let{type:a,props:c,patchFlag:u,shapeFlag:d,dirs:h,transition:f}=t,g="input"===a||"option"===a;if(g||-1!==u){let a;h&&t8(t,null,n,"created");let _=!1;if(b(e)){_=rR(i,f)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;_&&f.beforeEnter(r),y(r,e,n),t.el=e=r}if(16&d&&!(c&&(c.innerHTML||c.textContent))){let r=p(e.firstChild,t,e,n,i,l,s);for(;r;){r_();let e=r;r=r.nextSibling,o(e)}}else 8&d&&e.textContent!==t.children&&(r_(),e.textContent=t.children);if(c){if(g||!s||48&u){let t=e.tagName.includes("-");for(let i in c)(g&&(i.endsWith("value")||"indeterminate"===i)||m(i)&&!F(i)||"."===i[0]||t)&&r(e,i,null,c[i],void 0,n)}else if(c.onClick)r(e,"onClick",null,c.onClick,void 0,n);else if(4&u&&th(c.style))for(let e in c.style)c.style[e]}(a=c&&c.onVnodeBeforeMount)&&i_(a,n,t),h&&t8(t,null,n,"beforeMount"),((a=c&&c.onVnodeMounted)||h||_)&&r1(()=>{a&&i_(a,n,t),_&&f.enter(e),h&&t8(t,null,n,"mounted")},i)}return e.nextSibling},p=(e,t,r,s,o,c,d)=>{d=d||!!t.dynamicChildren;let p=t.children,h=p.length;for(let t=0;t{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=s(e),h=p(l(e),t,d,n,r,i,o);return h&&rk(h)&&"]"===h.data?l(t.anchor=h):(r_(),a(t.anchor=c("]"),d,h),h)},f=(e,t,r,i,a,c)=>{if(r_(),t.el=null,c){let t=g(e);for(;;){let n=l(e);if(n&&n!==t)o(n);else break}}let u=l(e),d=s(e);return o(e),n(null,t,d,u,r,i,rC(d),a),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=l(e))&&rk(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return l(e);r--}return e},y=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},b=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),tY(),t._vnode=e;return}u(t.firstChild,e,null,null,null),tY(),t._vnode=e},u]}let rw=r1;function rE(e){return rA(e,rT)}function rA(e,t){var n;let r,i;Q().__VUE__=!0;let{insert:s,remove:o,patchProp:a,createElement:c,createText:u,createComment:f,setText:m,setElementText:g,parentNode:b,nextSibling:_,setScopeId:C=h,insertStaticContent:k}=e,T=(e,t,n,r=null,i=null,l=null,s,o=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!io(e,t)&&(r=eo(e),en(e,i,l,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);let{type:c,ref:u,shapeFlag:d}=t;switch(c){case r6:w(e,t,n,r);break;case r4:A(e,t,n,r);break;case r8:null==e&&N(t,n,r,s);break;case r3:q(e,t,n,r,i,l,s,o,a);break;default:1&d?M(e,t,n,r,i,l,s,o,a):6&d?W(e,t,n,r,i,l,s,o,a):64&d?c.process(e,t,n,r,i,l,s,o,a,eu):128&d&&c.process(e,t,n,r,i,l,s,o,a,eu)}null!=u&&i&&rc(u,e&&e.ref,l,t||e,!t)},w=(e,t,n,r)=>{if(null==e)s(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&m(n,t.children)}},A=(e,t,n,r)=>{null==e?s(t.el=f(t.children||""),n,r):t.el=e.el},N=(e,t,n,r)=>{[e.el,e.anchor]=k(e.children,t,n,r,e.el,e.anchor)},O=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=_(e),s(e,n,r),e=i;s(t,n,r)},L=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=_(e),o(e),e=n;o(t)},M=(e,t,n,r,i,l,s,o,a)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?$(t,n,r,i,l,s,o,a):V(e,t,i,l,s,o,a)},$=(e,t,n,r,i,l,o,u)=>{let d,p;let{props:h,shapeFlag:f,transition:m,dirs:y}=e;if(d=e.el=c(e.type,l,h&&h.is,h),8&f?g(d,e.children):16&f&&D(e.children,d,null,r,i,rN(e,l),o,u),y&&t8(e,null,r,"created"),P(d,e,e.scopeId,o,r),h){for(let e in h)"value"===e||F(e)||a(d,e,null,h[e],l,r);"value"in h&&a(d,"value",null,h.value,l),(p=h.onVnodeBeforeMount)&&i_(p,r,e)}y&&t8(e,null,r,"beforeMount");let b=rR(i,m);b&&m.beforeEnter(d),s(d,t,n),((p=h&&h.onVnodeMounted)||b||y)&&rw(()=>{p&&i_(p,r,e),b&&m.enter(d),y&&t8(e,null,r,"mounted")},i)},P=(e,t,n,r,i)=>{if(n&&C(e,n),r)for(let t=0;t{for(let c=a;c{let o;let c=t.el=e.el,{patchFlag:u,dynamicChildren:p,dirs:h}=t;u|=16&e.patchFlag;let f=e.props||d,m=t.props||d;if(n&&rI(n,!1),(o=m.onVnodeBeforeUpdate)&&i_(o,n,t,e),h&&t8(t,e,n,"beforeUpdate"),n&&rI(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&g(c,""),p?B(e.dynamicChildren,p,c,n,r,rN(t,i),l):s||Z(e,t,c,null,n,r,rN(t,i),l,!1),u>0){if(16&u)j(c,f,m,n,i);else if(2&u&&f.class!==m.class&&a(c,"class",null,m.class,i),4&u&&a(c,"style",f.style,m.style,i),8&u){let e=t.dynamicProps;for(let t=0;t{o&&i_(o,n,t,e),h&&t8(t,e,n,"updated")},r)},B=(e,t,n,r,i,l,s)=>{for(let o=0;o{if(t!==n){if(t!==d)for(let l in t)F(l)||l in n||a(e,l,t[l],null,i,r);for(let l in n){if(F(l))continue;let s=n[l],o=t[l];s!==o&&"value"!==l&&a(e,l,o,s,i,r)}"value"in n&&a(e,"value",t.value,n.value,i)}},q=(e,t,n,r,i,l,o,a,c)=>{let d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u(""),{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(a=a?a.concat(m):m),null==e?(s(d,n,r),s(p,n,r),D(t.children||[],n,p,i,l,o,a,c)):h>0&&64&h&&f&&e.dynamicChildren?(B(e.dynamicChildren,f,n,i,l,o,a),(null!=t.key||i&&t===i.subTree)&&rO(e,t,!0)):Z(e,t,n,p,i,l,o,a,c)},W=(e,t,n,r,i,l,s,o,a)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,s,a):K(t,n,r,i,l,s,a):G(e,t,a)},K=(e,t,n,r,i,s,o)=>{let a=e.component=function(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||iS,l={uid:ix++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new eg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:function e(t,n,r=!1){let i=r?n7:n.propsCache,l=i.get(t);if(l)return l;let s=t.props,o={},a=[],c=!1;if(!E(t)){let i=t=>{c=!0;let[r,i]=e(t,n,!0);y(o,r),i&&a.push(...i)};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!s&&!c)return I(t)&&i.set(t,p),p;if(x(s))for(let e=0;e{let r=e(t,n,!0);r&&(a=!0,y(o,r))};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return s||a?(x(s)?s.forEach(e=>o[e]=null):y(o,s),I(t)&&i.set(t,o),o):(I(t)&&i.set(t,null),null)}(r,i),emit:null,emitted:null,propsDefaults:d,inheritAttrs:r.inheritAttrs,ctx:d,data:d,props:d,attrs:d,slots:d,refs:d,setupState:d,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=rH.bind(null,l),e.ce&&e.ce(l),l}(e,r,i);nh(e)&&(a.ctx.renderer=eu),function(e,t=!1,n=!1){t&&l(t);let{props:r,children:i}=e.vnode,s=iE(e);(function(e,t,n,r=!1){let i={},l=n4();for(let n in e.propsDefaults=Object.create(null),n5(e,t,i,l),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:tu(i):e.type.props?e.props=i:e.props=l,e.attrs=l})(e,r,s,t),ro(e,i,n),s&&function(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nV);let{setup:r}=n;if(r){let n=e.setupContext=r.length>1?iL(e):null,i=iT(e);eT();let l=tP(r,e,0,[e.props,n]);if(ew(),i(),R(l)){if(l.then(iw,iw),t)return l.then(n=>{iN(e,n,t)}).catch(t=>{tD(t,e,0)});e.asyncDep=l}else iN(e,l,t)}else iR(e,t)}(e,t),t&&l(!1)}(a,!1,o),a.asyncDep?(i&&i.registerDep(a,J,o),e.el||A(null,a.subTree=id(r4),t,n)):J(a,e,t,n,i,s,o)},G=(e,t,n)=>{let r=t.component=e.component;if(function(e,t,n){let{props:r,children:i,component:l}=e,{props:s,children:o,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!n||!(a>=0))return(!!i||!!o)&&(!o||!o.$stable)||r!==s&&(r?!s||rG(r,s,c):!!s);if(1024&a)return!0;if(16&a)return r?rG(r,s,c):!!s;if(8&a){let e=t.dynamicProps;for(let t=0;ttj&&tU.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},J=(e,t,n,r,l,s,o)=>{let a=()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:c,vnode:u}=e;{let t=function e(t){let n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(t){n&&(n.el=u.el,X(e,n,o)),t.asyncDep.then(()=>{e.isUnmounted||a()});return}}let d=n;rI(e,!1),n?(n.el=u.el,X(e,n,o)):n=u,r&&z(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&i_(t,c,n,u),rI(e,!0);let p=rW(e),h=e.subTree;e.subTree=p,T(h,p,b(h.el),eo(h),e,l,s),n.el=p.el,null===d&&rJ(e,p.el),i&&rw(i,l),(t=n.props&&n.props.onVnodeUpdated)&&rw(()=>i_(t,c,n,u),l)}else{let o;let{el:a,props:c}=t,{bm:u,m:d,parent:p}=e,h=nd(t);if(rI(e,!1),u&&z(u),!h&&(o=c&&c.onVnodeBeforeMount)&&i_(o,p,t),rI(e,!0),a&&i){let n=()=>{e.subTree=rW(e),i(a,e.subTree,e,l,null)};h?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{let i=e.subTree=rW(e);T(null,i,n,r,e,l,s),t.el=i.el}if(d&&rw(d,l),!h&&(o=c&&c.onVnodeMounted)){let e=t;rw(()=>i_(o,p,e),l)}(256&t.shapeFlag||p&&nd(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&rw(e.a,l),e.isMounted=!0,t=n=r=null}},c=e.effect=new ev(a,h,()=>tJ(u),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.i=e,u.id=e.uid,rI(e,!0),u()},X=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){let{props:i,attrs:l,vnode:{patchFlag:s}}=e,o=ty(i),[a]=e.propsOptions,c=!1;if((r||s>0)&&!(16&s)){if(8&s){let n=e.vnode.dynamicProps;for(let r=0;r{let c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p){ee(c,d,n,r,i,l,s,o,a);return}if(256&p){Y(c,d,n,r,i,l,s,o,a);return}}8&h?(16&u&&es(c,i,l),d!==c&&g(n,d)):16&u?16&h?ee(c,d,n,r,i,l,s,o,a):es(c,i,l,!0):(8&u&&g(n,""),16&h&&D(d,n,r,i,l,s,o,a))},Y=(e,t,n,r,i,l,s,o,a)=>{let c;e=e||p,t=t||p;let u=e.length,d=t.length,h=Math.min(u,d);for(c=0;cd?es(e,i,l,!0,!1,h):D(t,n,r,i,l,s,o,a,h)},ee=(e,t,n,r,i,l,s,o,a)=>{let c=0,u=t.length,d=e.length-1,h=u-1;for(;c<=d&&c<=h;){let r=e[c],u=t[c]=a?iy(t[c]):ig(t[c]);if(io(r,u))T(r,u,n,null,i,l,s,o,a);else break;c++}for(;c<=d&&c<=h;){let r=e[d],c=t[h]=a?iy(t[h]):ig(t[h]);if(io(r,c))T(r,c,n,null,i,l,s,o,a);else break;d--,h--}if(c>d){if(c<=h){let e=h+1,d=eh)for(;c<=d;)en(e[c],i,l,!0),c++;else{let f;let m=c,g=c,y=new Map;for(c=g;c<=h;c++){let e=t[c]=a?iy(t[c]):ig(t[c]);null!=e.key&&y.set(e.key,c)}let b=0,_=h-g+1,S=!1,x=0,C=Array(_);for(c=0;c<_;c++)C[c]=0;for(c=m;c<=d;c++){let r;let u=e[c];if(b>=_){en(u,i,l,!0);continue}if(null!=u.key)r=y.get(u.key);else for(f=g;f<=h;f++)if(0===C[f-g]&&io(u,t[f])){r=f;break}void 0===r?en(u,i,l,!0):(C[r-g]=c+1,r>=x?x=r:S=!0,T(u,t[r],n,null,i,l,s,o,a),b++)}let k=S?function(e){let t,n,r,i,l;let s=e.slice(),o=[0],a=e.length;for(t=0;t>1]]0&&(s[t]=o[r-1]),o[r]=t)}}for(r=o.length,i=o[r-1];r-- >0;)o[r]=i,i=s[i];return o}(C):p;for(f=k.length-1,c=_-1;c>=0;c--){let e=g+c,d=t[e],p=e+1{let{el:l,type:o,transition:a,children:c,shapeFlag:u}=e;if(6&u){et(e.component.subTree,t,n,r);return}if(128&u){e.suspense.move(t,n,r);return}if(64&u){o.move(e,t,n,eu);return}if(o===r3){s(l,t,n);for(let e=0;ea.enter(l),i);else{let{leave:e,delayLeave:r,afterLeave:i}=a,o=()=>s(l,t,n),c=()=>{e(l,()=>{o(),i&&i()})};r?r(l,o,c):c()}}else s(l,t,n)},en=(e,t,n,r=!1,i=!1)=>{let l;let{type:s,props:o,ref:a,children:c,dynamicChildren:u,shapeFlag:d,patchFlag:p,dirs:h,cacheIndex:f}=e;if(-2===p&&(i=!1),null!=a&&rc(a,null,n,e,!0),null!=f&&(t.renderCache[f]=void 0),256&d){t.ctx.deactivate(e);return}let m=1&d&&h,g=!nd(e);if(g&&(l=o&&o.onVnodeBeforeUnmount)&&i_(l,t,e),6&d)el(e.component,n,r);else{if(128&d){e.suspense.unmount(n,r);return}m&&t8(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,eu,r):u&&!u.hasOnce&&(s!==r3||p>0&&64&p)?es(u,t,n,!1,!0):(s===r3&&384&p||!i&&16&d)&&es(c,t,n),r&&er(e)}(g&&(l=o&&o.onVnodeUnmounted)||m)&&rw(()=>{l&&i_(l,t,e),m&&t8(e,null,t,"unmounted")},n)},er=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===r3){ei(n,r);return}if(t===r8){L(e);return}let l=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,s=()=>t(n,l);r?r(e.el,l,s):s()}else l()},ei=(e,t)=>{let n;for(;e!==t;)n=_(e),o(e),e=n;o(t)},el=(e,t,n)=>{let{bum:r,scope:i,update:l,subTree:s,um:o,m:a,a:c}=e;rL(a),rL(c),r&&z(r),i.stop(),l&&(l.active=!1,en(s,e,t,n)),o&&rw(o,t),rw(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},es=(e,t,n,r=!1,i=!1,l=0)=>{for(let s=l;s{if(6&e.shapeFlag)return eo(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();let t=_(e.anchor||e.el),n=t&&t[ru];return n?_(n):t},ea=!1,ec=(e,t,n)=>{null==e?t._vnode&&en(t._vnode,null,null,!0):T(t._vnode||null,e,t,null,null,null,n),ea||(ea=!0,tZ(),tY(),ea=!1),t._vnode=e},eu={p:T,um:en,m:et,r:er,mt:K,mc:D,pc:Z,pbc:B,n:eo,o:e};return t&&([r,i]=t(eu)),{render:ec,hydrate:r,createApp:(n=r,function(e,t=null){E(e)||(e=y({},e)),null==t||I(t)||(t=null);let r=nY(),i=new WeakSet,l=!1,s=r.app={_uid:n0++,_component:e,_props:t,_container:null,_context:r,_instance:null,version:iV,get config(){return r.config},set config(v){},use:(e,...t)=>(i.has(e)||(e&&E(e.install)?(i.add(e),e.install(s,...t)):E(e)&&(i.add(e),e(s,...t))),s),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),s),component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(i,o,a){if(!l){let c=id(e,t);return c.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),o&&n?n(c,i):ec(c,i,a),l=!0,s._container=i,i.__vue_app__=s,iM(c.component)}},unmount(){l&&(ec(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s),runWithContext(e){let t=n1;n1=s;try{return e()}finally{n1=t}}};return s})}}function rN({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function rI({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function rR(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rO(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let e=0;e{e(...t),w()}}let f=iC,m=e=>!0===i?e:rU(e,!1===i?1:void 0),g=!1,y=!1;if(tk(e)?(c=()=>e.value,g=tm(e)):th(e)?(c=()=>m(e),g=!0):x(e)?(y=!0,g=e.some(e=>th(e)||tm(e)),c=()=>e.map(e=>tk(e)?e.value:th(e)?m(e):E(e)?tP(e,f,2):void 0)):c=E(e)?t?()=>tP(e,f,2):()=>(u&&u(),tF(e,f,3,[_])):h,t&&i){let e=c;c=()=>rU(e())}let _=e=>{u=k.onStop=()=>{tP(e,f,4),u=k.onStop=void 0}},S=y?Array(e.length).fill(rF):rF,C=()=>{if(k.active&&k.dirty){if(t){let e=k.run();(i||g||(y?e.some((e,t)=>K(e,S[t])):K(e,S)))&&(u&&u(),tF(t,f,3,[e,S===rF?void 0:y&&S[0]===rF?[]:S,_]),S=e)}else k.run()}};C.allowRecurse=!!t,"sync"===l?p=C:"post"===l?p=()=>rw(C,f&&f.suspense):(C.pre=!0,f&&(C.id=f.uid),p=()=>tJ(C));let k=new ev(c,h,p),T=n,w=()=>{k.stop(),T&&b(T.effects,k)};return t?r?C():S=k.run():"post"===l?rw(k.run.bind(k),f&&f.suspense):k.run(),w}function rV(e,t,n){let r;let i=this.proxy,l=A(e)?e.includes(".")?rB(i,e):()=>i[e]:e.bind(i,i);E(t)?r=t:(r=t.handler,n=t);let s=iT(this),o=rD(l,r.bind(i),n);return s(),o}function rB(e,t){let n=t.split(".");return()=>{let t=e;for(let e=0;e{rU(e,t,n)});else if($(e)){for(let r in e)rU(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rU(e[r],t,n)}return e}let rj=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${U(t)}Modifiers`]||e[`${H(t)}Modifiers`];function rH(e,t,...n){let r;if(e.isUnmounted)return;let i=e.vnode.props||d,l=n,s=t.startsWith("update:"),o=s&&rj(i,t.slice(7));o&&(o.trim&&(l=n.map(e=>A(e)?e.trim():e)),o.number&&(l=n.map(J)));let a=i[r=W(t)]||i[r=W(U(t))];!a&&s&&(a=i[r=W(H(t))]),a&&tF(a,e,6,l);let c=i[r+"Once"];if(c){if(e.emitted){if(e.emitted[r])return}else e.emitted={};e.emitted[r]=!0,tF(c,e,6,l)}}function rq(e,t){return!!(e&&m(t))&&(S(e,(t=t.slice(2).replace(/Once$/,""))[0].toLowerCase()+t.slice(1))||S(e,H(t))||S(e,t))}function rW(e){let t,n;let{type:r,vnode:i,proxy:l,withProxy:s,propsOptions:[o],slots:a,attrs:c,emit:u,render:d,renderCache:p,props:h,data:f,setupState:m,ctx:y,inheritAttrs:b}=e,_=t6(e);try{if(4&i.shapeFlag){let e=s||l;t=ig(d.call(e,e,p,h,m,f,y)),n=c}else t=ig(r.length>1?r(h,{attrs:c,slots:a,emit:u}):r(h,null)),n=r.props?c:rK(c)}catch(n){r5.length=0,tD(n,e,1),t=id(r4)}let S=t;if(n&&!1!==b){let e=Object.keys(n),{shapeFlag:t}=S;e.length&&7&t&&(o&&e.some(g)&&(n=rz(n,o)),S=ih(S,n,!1,!0))}return i.dirs&&((S=ih(S,null,!1,!0)).dirs=S.dirs?S.dirs.concat(i.dirs):i.dirs),i.transition&&(S.transition=i.transition),t=S,t6(_),t}let rK=e=>{let t;for(let n in e)("class"===n||"style"===n||m(n))&&((t||(t={}))[n]=e[n]);return t},rz=(e,t)=>{let n={};for(let r in e)g(r)&&r.slice(9) in t||(n[r]=e[r]);return n};function rG(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;ie.__isSuspense,rQ=0;function rZ(e,t){let n=e.props&&e.props[t];E(n)&&n()}function rY(e,t,n,r,i,l,s,o,a,c,u=!1){let d;let{p:p,m:h,um:f,n:m,o:{parentNode:g,remove:y}}=c,b=function(e){let t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);b&&t&&t.pendingBranch&&(d=t.pendingId,t.deps++);let _=e.props?X(e.props.timeout):void 0,S=l,x={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:rQ++,timeout:"number"==typeof _?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:s,pendingId:o,effects:a,parentComponent:c,container:u}=x,p=!1;x.isHydrating?x.isHydrating=!1:e||((p=i&&s.transition&&"out-in"===s.transition.mode)&&(i.transition.afterLeave=()=>{o===x.pendingId&&(h(s,u,l===S?m(i):l,0),tQ(a))}),i&&(g(i.el)!==x.hiddenContainer&&(l=m(i)),f(i,c,x,!0)),p||h(s,u,l,0)),r2(x,s),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,_=!1;for(;y;){if(y.pendingBranch){y.effects.push(...a),_=!0;break}y=y.parent}_||p||tQ(a),x.effects=[],b&&t&&t.pendingBranch&&d===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),rZ(r,"onResolve")},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:l}=x;rZ(t,"onFallback");let s=m(n),c=()=>{x.isInFallback&&(p(null,e,i,s,r,null,l,o,a),r2(x,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),x.isInFallback=!0,f(n,r,null,!0),u||c()},move(e,t,n){x.activeBranch&&h(x.activeBranch,e,t,n),x.container=e},next:()=>x.activeBranch&&m(x.activeBranch),registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{tD(t,e,0)}).then(l=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:o}=e;iN(e,l,!1),i&&(o.el=i);let a=!i&&e.subTree.el;t(e,o,g(i||e.subTree.el),i?null:m(e.subTree),x,s,n),a&&y(a),rJ(e,o.el),r&&0==--x.deps&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&f(x.activeBranch,n,e,t),x.pendingBranch&&f(x.pendingBranch,n,e,t)}};return x}function r0(e){let t;if(E(e)){let n=it&&e._c;n&&(e._d=!1,r7()),e=e(),n&&(e._d=!0,t=r9,ie())}return x(e)&&(e=function(e,t=!0){let n;for(let t=0;tt!==e)),e}function r1(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):tQ(e)}function r2(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,rJ(r,i))}let r3=Symbol.for("v-fgt"),r6=Symbol.for("v-txt"),r4=Symbol.for("v-cmt"),r8=Symbol.for("v-stc"),r5=[],r9=null;function r7(e=!1){r5.push(r9=e?null:[])}function ie(){r5.pop(),r9=r5[r5.length-1]||null}let it=1;function ir(e){it+=e,e<0&&r9&&(r9.hasOnce=!0)}function ii(e){return e.dynamicChildren=it>0?r9||p:null,ie(),it>0&&r9&&r9.push(e),e}function il(e,t,n,r,i){return ii(id(e,t,n,r,i,!0))}function is(e){return!!e&&!0===e.__v_isVNode}function io(e,t){return e.type===t.type&&e.key===t.key}let ia=({key:e})=>null!=e?e:null,ic=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?A(e)||tk(e)||E(e)?{i:t2,r:e,k:t,f:!!n}:e:null);function iu(e,t=null,n=null,r=0,i=null,l=e===r3?0:1,s=!1,o=!1){let a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ia(t),ref:t&&ic(t),scopeId:t3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:t2};return o?(iv(a,n),128&l&&e.normalize(a)):n&&(a.shapeFlag|=A(n)?8:16),it>0&&!s&&r9&&(a.patchFlag>0||6&l)&&32!==a.patchFlag&&r9.push(a),a}let id=function(e,t=null,n=null,r=0,i=null,l=!1){var s;if(e&&e!==nL||(e=r4),is(e)){let r=ih(e,t,!0);return n&&iv(r,n),it>0&&!l&&r9&&(6&r.shapeFlag?r9[r9.indexOf(e)]=r:r9.push(r)),r.patchFlag=-2,r}if(E(s=e)&&"__vccOpts"in s&&(e=e.__vccOpts),t){let{class:e,style:n}=t=ip(t);e&&!A(e)&&(t.class=ei(e)),I(n)&&(tg(n)&&!x(n)&&(n=y({},n)),t.style=Y(n))}let o=A(e)?1:rX(e)?128:rd(e)?64:I(e)?4:E(e)?2:0;return iu(e,t,n,r,i,o,l,!0)};function ip(e){return e?tg(e)||n8(e)?y({},e):e:null}function ih(e,t,n=!1,r=!1){let{props:i,ref:l,patchFlag:s,children:o,transition:a}=e,c=t?ib(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ia(c),ref:t&&t.ref?n&&l?x(l)?l.concat(ic(t)):[l,ic(t)]:ic(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==r3?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ih(e.ssContent),ssFallback:e.ssFallback&&ih(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&na(u,a.clone(u)),u}function im(e=" ",t=0){return id(r6,null,e,t)}function ig(e){return null==e||"boolean"==typeof e?id(r4):x(e)?id(r3,null,e.slice()):"object"==typeof e?iy(e):id(r6,null,String(e))}function iy(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ih(e)}function iv(e,t){let n=0,{shapeFlag:r}=e;if(null==t)t=null;else if(x(t))n=16;else if("object"==typeof t){if(65&r){let n=t.default;n&&(n._c&&(n._d=!1),iv(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;r||n8(t)?3===r&&t2&&(1===t2.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=t2}}else E(t)?(t={default:t,_ctx:t2},n=32):(t=String(t),64&r?(n=16,t=[im(t)]):n=8);e.children=t,e.shapeFlag|=n}function ib(...e){let t={};for(let n=0;niC||t2;i=e=>{iC=e},l=e=>{iA=e};let iT=e=>{let t=iC;return i(e),e.scope.on(),()=>{e.scope.off(),i(t)}},iw=()=>{iC&&iC.scope.off(),i(null)};function iE(e){return 4&e.vnode.shapeFlag}let iA=!1;function iN(e,t,n){E(t)?e.render=t:I(t)&&(e.setupState=tI(t)),iR(e,n)}function iI(e){s=e,o=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,nB))}}function iR(e,t,n){let r=e.type;if(!e.render){if(!t&&s&&!r.render){let t=r.template||nW(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:o}=r,a=y(y({isCustomElement:n,delimiters:l},i),o);r.render=s(t,a)}}e.render=r.render||h,o&&o(e)}{let t=iT(e);eT();try{!function(e){let t=nW(e),n=e.proxy,r=e.ctx;nH=!1,t.beforeCreate&&nq(t.beforeCreate,e,"bc");let{data:i,computed:l,methods:s,watch:o,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:f,updated:m,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:_,destroyed:S,unmounted:C,render:k,renderTracked:T,renderTriggered:w,errorCaptured:N,serverPrefetch:R,expose:O,inheritAttrs:L,components:M,directives:$,filters:P}=t;if(c&&function(e,t,n=h){for(let n in x(e)&&(e=nJ(e)),e){let r;let i=e[n];tk(r=I(i)?"default"in i?n3(i.from||n,i.default,!0):n3(i.from||n):n3(i))?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(c,r,null),s)for(let e in s){let t=s[e];E(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);I(t)&&(e.data=tc(t))}if(nH=!0,l)for(let e in l){let t=l[e],i=E(t)?t.bind(n,n):E(t.get)?t.get.bind(n,n):h,s=iP({get:i,set:!E(t)&&E(t.set)?t.set.bind(n):h});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(o)for(let e in o)!function e(t,n,r,i){let l=i.includes(".")?rB(r,i):()=>r[i];if(A(t)){let e=n[t];E(e)&&rD(l,e,void 0)}else if(E(t)){var s;s=t.bind(r),rD(l,s,void 0)}else if(I(t)){if(x(t))t.forEach(t=>e(t,n,r,i));else{let e=E(t.handler)?t.handler.bind(r):n[t.handler];E(e)&&rD(l,e,t)}}}(o[e],r,n,e);if(a){let e=E(a)?a.call(n):a;Reflect.ownKeys(e).forEach(t=>{n2(t,e[t])})}function F(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(u&&nq(u,e,"c"),F(nx,d),F(nC,p),F(nk,f),F(nT,m),F(nm,g),F(ng,y),F(nR,N),F(nI,T),F(nN,w),F(nw,_),F(nE,C),F(nA,R),x(O)){if(O.length){let t=e.exposed||(e.exposed={});O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={})}k&&e.render===h&&(e.render=k),null!=L&&(e.inheritAttrs=L),M&&(e.components=M),$&&(e.directives=$)}(e)}finally{ew(),t()}}}let iO={get:(e,t)=>(e$(e,"get",""),e[t])};function iL(e){return{attrs:new Proxy(e.attrs,iO),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function iM(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(tI(tv(e.exposed)),{get:(t,n)=>n in t?t[n]:n in nF?nF[n](e):void 0,has:(e,t)=>t in e||t in nF})):e.proxy}function i$(e,t=!0){return E(e)?e.displayName||e.name:e.name||t&&e.__name}let iP=(e,t)=>(function(e,t,n=!1){let r,i;let l=E(e);return l?(r=e,i=h):(r=e.get,i=e.set),new tS(r,i,l||!i,n)})(e,0,iA);function iF(e,t,n){let r=arguments.length;return 2!==r?(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&is(n)&&(n=[n]),id(e,t,n)):!I(t)||x(t)?id(e,null,t):is(t)?id(e,null,[t]):id(e,t)}function iD(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&r9&&r9.push(e),!0}let iV="3.4.36",iB="undefined"!=typeof document?document:null,iU=iB&&iB.createElement("template"),ij="transition",iH="animation",iq=Symbol("_vtc"),iW=(e,{slots:t})=>iF(nr,iX(e),t);iW.displayName="Transition";let iK={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},iz=iW.props=y({},nt,iK),iG=(e,t=[])=>{x(e)?e.forEach(e=>e(...t)):e&&e(...t)},iJ=e=>!!e&&(x(e)?e.some(e=>e.length>1):e.length>1);function iX(e){let t={};for(let n in e)n in iK||(t[n]=e[n]);if(!1===e.css)return t;let{name:n="v",type:r,duration:i,enterFromClass:l=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:a=l,appearActiveClass:c=s,appearToClass:u=o,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(I(e))return[X(e.enter),X(e.leave)];{let t=X(e);return[t,t]}}(i),m=f&&f[0],g=f&&f[1],{onBeforeEnter:b,onEnter:_,onEnterCancelled:S,onLeave:x,onLeaveCancelled:C,onBeforeAppear:k=b,onAppear:T=_,onAppearCancelled:w=S}=t,E=(e,t,n)=>{iZ(e,t?u:o),iZ(e,t?c:s),n&&n()},A=(e,t)=>{e._isLeaving=!1,iZ(e,d),iZ(e,h),iZ(e,p),t&&t()},N=e=>(t,n)=>{let i=e?T:_,s=()=>E(t,e,n);iG(i,[t,s]),iY(()=>{iZ(t,e?a:l),iQ(t,e?u:o),iJ(i)||i1(t,r,m,s)})};return y(t,{onBeforeEnter(e){iG(b,[e]),iQ(e,l),iQ(e,s)},onBeforeAppear(e){iG(k,[e]),iQ(e,a),iQ(e,c)},onEnter:N(!1),onAppear:N(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>A(e,t);iQ(e,d),iQ(e,p),i4(),iY(()=>{e._isLeaving&&(iZ(e,d),iQ(e,h),iJ(x)||i1(e,r,g,n))}),iG(x,[e,n])},onEnterCancelled(e){E(e,!1),iG(S,[e])},onAppearCancelled(e){E(e,!0),iG(w,[e])},onLeaveCancelled(e){A(e),iG(C,[e])}})}function iQ(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[iq]||(e[iq]=new Set)).add(t)}function iZ(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[iq];n&&(n.delete(t),n.size||(e[iq]=void 0))}function iY(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let i0=0;function i1(e,t,n,r){let i=e._endId=++i0,l=()=>{i===e._endId&&r()};if(n)return setTimeout(l,n);let{type:s,timeout:o,propCount:a}=i2(e,t);if(!s)return r();let c=s+"end",u=0,d=()=>{e.removeEventListener(c,p),l()},p=t=>{t.target===e&&++u>=a&&d()};setTimeout(()=>{u(n[e]||"").split(", "),i=r(`${ij}Delay`),l=r(`${ij}Duration`),s=i3(i,l),o=r(`${iH}Delay`),a=r(`${iH}Duration`),c=i3(o,a),u=null,d=0,p=0;t===ij?s>0&&(u=ij,d=s,p=l.length):t===iH?c>0&&(u=iH,d=c,p=a.length):p=(u=(d=Math.max(s,c))>0?s>c?ij:iH:null)?u===ij?l.length:a.length:0;let h=u===ij&&/\b(transform|all)(,|$)/.test(r(`${ij}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:h}}function i3(e,t){for(;e.lengthi6(t)+i6(e[n])))}function i6(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function i4(){return document.body.offsetHeight}let i8=Symbol("_vod"),i5=Symbol("_vsh");function i9(e,t){e.style.display=t?e[i8]:"none",e[i5]=!t}let i7=Symbol("");function le(e,t){if(1===e.nodeType){let n=e.style,r="";for(let e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[i7]=r}}let lt=/(^|;)\s*display\s*:/,ln=/\s*!important$/;function lr(e,t,n){if(x(n))n.forEach(n=>lr(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{let r=function(e,t){let n=ll[t];if(n)return n;let r=U(t);if("filter"!==r&&r in e)return ll[t]=r;r=q(r);for(let n=0;nld||(lp.then(()=>ld=0),ld=Date.now()),lf=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&123>e.charCodeAt(2);/*! #__NO_SIDE_EFFECTS__ */function lm(e,t,n){let r=nu(e,t);class i extends ly{constructor(e){super(r,e,n)}}return i.def=r,i}let lg="undefined"!=typeof HTMLElement?HTMLElement:class{};class ly extends lg{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,tG(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),lW(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let e=0;e{for(let t of e)this._setAttr(t.attributeName)}),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{let n;let{props:r,styles:i}=e;if(r&&!x(r))for(let e in r){let t=r[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=X(this._props[e])),(n||(n=Object.create(null)))[U(e)]=!0)}this._numberProps=n,t&&this._resolveProps(e),this._applyStyles(i),this._update()},t=this._def.__asyncLoader;t?t().then(t=>e(t,!0)):e(this._def)}_resolveProps(e){let{props:t}=e,n=x(t)?t:Object.keys(t||{});for(let e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(let e of n.map(U))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0,n=U(e);this._numberProps&&this._numberProps[n]&&(t=X(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(H(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(H(e),t+""):t||this.removeAttribute(H(e))))}_update(){lW(this._createVNode(),this.shadowRoot)}_createVNode(){let e=id(this._def,y({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),H(e)!==e&&t(H(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof ly){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(e=>{let t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)})}}let lv=new WeakMap,lb=new WeakMap,l_=Symbol("_moveCb"),lS=Symbol("_enterCb"),lx={name:"TransitionGroup",props:y({},iz,{tag:String,moveClass:String}),setup(e,{slots:t}){let n,r;let i=ik(),l=t7();return nT(()=>{if(!n.length)return;let t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){let r=e.cloneNode(),i=e[iq];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";let l=1===t.nodeType?t:t.parentNode;l.appendChild(r);let{hasTransform:s}=i2(r);return l.removeChild(r),s}(n[0].el,i.vnode.el,t))return;n.forEach(lC),n.forEach(lk);let r=n.filter(lT);i4(),r.forEach(e=>{let n=e.el,r=n.style;iQ(n,t),r.transform=r.webkitTransform=r.transitionDuration="";let i=n[l_]=e=>{(!e||e.target===n)&&(!e||/transform$/.test(e.propertyName))&&(n.removeEventListener("transitionend",i),n[l_]=null,iZ(n,t))};n.addEventListener("transitionend",i)})}),()=>{let s=ty(e),o=iX(s),a=s.tag||r3;if(n=[],r)for(let e=0;e{let t=e.props["onUpdate:modelValue"]||!1;return x(t)?e=>z(t,e):t};function lE(e){e.target.composing=!0}function lA(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}let lN=Symbol("_assign"),lI={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[lN]=lw(i);let l=r||i.props&&"number"===i.props.type;la(e,t?"change":"input",t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),l&&(r=J(r)),e[lN](r)}),n&&la(e,"change",()=>{e.value=e.value.trim()}),t||(la(e,"compositionstart",lE),la(e,"compositionend",lA),la(e,"change",lA))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:l}},s){if(e[lN]=lw(s),e.composing)return;let o=(l||"number"===e.type)&&!/^0\d/.test(e.value)?J(e.value):e.value,a=null==t?"":t;o===a||document.activeElement===e&&"range"!==e.type&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a)}},lR={deep:!0,created(e,t,n){e[lN]=lw(n),la(e,"change",()=>{let t=e._modelValue,n=lP(e),r=e.checked,i=e[lN];if(x(t)){let e=ed(t,n),l=-1!==e;if(r&&!l)i(t.concat(n));else if(!r&&l){let n=[...t];n.splice(e,1),i(n)}}else if(k(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(lF(e,r))})},mounted:lO,beforeUpdate(e,t,n){e[lN]=lw(n),lO(e,t,n)}};function lO(e,{value:t,oldValue:n},r){e._modelValue=t,x(t)?e.checked=ed(t,r.props.value)>-1:k(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=eu(t,lF(e,!0)))}let lL={created(e,{value:t},n){e.checked=eu(t,n.props.value),e[lN]=lw(n),la(e,"change",()=>{e[lN](lP(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[lN]=lw(r),t!==n&&(e.checked=eu(t,r.props.value))}},lM={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=k(t);la(e,"change",()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?J(lP(e)):lP(e));e[lN](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,tG(()=>{e._assigning=!1})}),e[lN]=lw(r)},mounted(e,{value:t}){l$(e,t)},beforeUpdate(e,t,n){e[lN]=lw(n)},updated(e,{value:t}){e._assigning||l$(e,t)}};function l$(e,t,n){let r=e.multiple,i=x(t);if(!r||i||k(t)){for(let n=0,l=e.options.length;nString(e)===String(s)):l.selected=ed(t,s)>-1}else l.selected=t.has(s)}else if(eu(lP(l),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function lP(e){return"_value"in e?e._value:e.value}function lF(e,t){let n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}function lD(e,t,n,r,i){let l=function(e,t){switch(e){case"SELECT":return lM;case"TEXTAREA":return lI;default:switch(t){case"checkbox":return lR;case"radio":return lL;default:return lI}}}(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}let lV=["ctrl","shift","alt","meta"],lB={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>lV.some(n=>e[`${n}Key`]&&!t.includes(n))},lU={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},lj=y({patchProp:(e,t,n,r,i,l)=>{let s="svg"===i;"class"===t?function(e,t,n){let r=e[iq];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,s):"style"===t?function(e,t,n){let r=e.style,i=A(n),l=!1;if(n&&!i){if(t){if(A(t))for(let e of t.split(";")){let t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&lr(r,t,"")}else for(let e in t)null==n[e]&&lr(r,e,"")}for(let e in n)"display"===e&&(l=!0),lr(r,e,n[e])}else if(i){if(t!==n){let e=r[i7];e&&(n+=";"+e),r.cssText=n,l=lt.test(n)}}else t&&e.removeAttribute("style");i8 in e&&(e[i8]=l?r.display:"",e[i5]&&(r.display="none"))}(e,n,r):m(t)?g(t)||function(e,t,n,r,i=null){let l=e[lc]||(e[lc]={}),s=l[t];if(r&&s)s.value=r;else{let[n,o]=function(e){let t;if(lu.test(e)){let n;for(t={};n=e.match(lu);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):H(e.slice(2)),t]}(t);r?la(e,n,l[t]=function(e,t){let n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();tF(function(e,t){if(!x(t))return t;{let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}}(e,n.value),t,5,[e])};return n.value=e,n.attached=lh(),n}(r,i),o):s&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,o),l[t]=void 0)}}(e,t,0,r,l):("."===t[0]?(t=t.slice(1),0):"^"===t[0]?(t=t.slice(1),1):!function(e,t,n,r){if(r)return!!("innerHTML"===t||"textContent"===t||t in e&&lf(t)&&E(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){let t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return!(lf(t)&&A(n))&&t in e}(e,t,r,s))?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),lo(e,t,r,s)):(!function(e,t,n,r){if("innerHTML"===t||"textContent"===t){if(null==n)return;e[t]=n;return}let i=e.tagName;if("value"===t&&"PROGRESS"!==i&&!i.includes("-")){let r="OPTION"===i?e.getAttribute("value")||"":e.value,l=null==n?"":String(n);r===l&&"_value"in e||(e.value=l),null==n&&e.removeAttribute(t),e._value=n;return}let l=!1;if(""===n||null==n){let r=typeof e[t];if("boolean"===r){var s;n=!!(s=n)||""===s}else null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||lo(e,t,r,s,l,"value"!==t))}},{insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i="svg"===t?iB.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?iB.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?iB.createElement(e,{is:n}):iB.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>iB.createTextNode(e),createComment:e=>iB.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>iB.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,l){let s=n?n.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==l&&(i=i.nextSibling););else{iU.innerHTML="svg"===r?`${e}`:"mathml"===r?`${e}`:e;let i=iU.content;if("svg"===r||"mathml"===r){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}}),lH=!1;function lq(){return a=lH?a:rE(lj),lH=!0,a}let lW=(...e)=>{(a||(a=rA(lj))).render(...e)},lK=(...e)=>{lq().hydrate(...e)};function lz(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function lG(e){return A(e)?document.querySelector(e):e}let lJ=Symbol(""),lX=Symbol(""),lQ=Symbol(""),lZ=Symbol(""),lY=Symbol(""),l0=Symbol(""),l1=Symbol(""),l2=Symbol(""),l3=Symbol(""),l6=Symbol(""),l4=Symbol(""),l8=Symbol(""),l5=Symbol(""),l9=Symbol(""),l7=Symbol(""),se=Symbol(""),st=Symbol(""),sn=Symbol(""),sr=Symbol(""),si=Symbol(""),sl=Symbol(""),ss=Symbol(""),so=Symbol(""),sa=Symbol(""),sc=Symbol(""),su=Symbol(""),sd=Symbol(""),sp=Symbol(""),sh=Symbol(""),sf=Symbol(""),sm=Symbol(""),sg=Symbol(""),sy=Symbol(""),sv=Symbol(""),sb=Symbol(""),s_=Symbol(""),sS=Symbol(""),sx=Symbol(""),sC=Symbol(""),sk={[lJ]:"Fragment",[lX]:"Teleport",[lQ]:"Suspense",[lZ]:"KeepAlive",[lY]:"BaseTransition",[l0]:"openBlock",[l1]:"createBlock",[l2]:"createElementBlock",[l3]:"createVNode",[l6]:"createElementVNode",[l4]:"createCommentVNode",[l8]:"createTextVNode",[l5]:"createStaticVNode",[l9]:"resolveComponent",[l7]:"resolveDynamicComponent",[se]:"resolveDirective",[st]:"resolveFilter",[sn]:"withDirectives",[sr]:"renderList",[si]:"renderSlot",[sl]:"createSlots",[ss]:"toDisplayString",[so]:"mergeProps",[sa]:"normalizeClass",[sc]:"normalizeStyle",[su]:"normalizeProps",[sd]:"guardReactiveProps",[sp]:"toHandlers",[sh]:"camelize",[sf]:"capitalize",[sm]:"toHandlerKey",[sg]:"setBlockTracking",[sy]:"pushScopeId",[sv]:"popScopeId",[sb]:"withCtx",[s_]:"unref",[sS]:"isRef",[sx]:"withMemo",[sC]:"isMemoSame"},sT={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function sw(e,t,n,r,i,l,s,o=!1,a=!1,c=!1,u=sT){return e&&(o?(e.helper(l0),e.helper(e.inSSR||c?l1:l2)):e.helper(e.inSSR||c?l3:l6),s&&e.helper(sn)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:l,directives:s,isBlock:o,disableTracking:a,isComponent:c,loc:u}}function sE(e,t=sT){return{type:17,loc:t,elements:e}}function sA(e,t=sT){return{type:15,loc:t,properties:e}}function sN(e,t){return{type:16,loc:sT,key:A(e)?sI(e,!0):e,value:t}}function sI(e,t=!1,n=sT,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function sR(e,t=sT){return{type:8,loc:t,children:e}}function sO(e,t=[],n=sT){return{type:14,loc:n,callee:e,arguments:t}}function sL(e,t,n=!1,r=!1,i=sT){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function sM(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:sT}}function s$(e,{helper:t,removeHelper:n,inSSR:r}){if(!e.isBlock){var i,l;e.isBlock=!0,n((i=e.isComponent,r||i?l3:l6)),t(l0),t((l=e.isComponent,r||l?l1:l2))}}let sP=new Uint8Array([123,123]),sF=new Uint8Array([125,125]);function sD(e){return e>=97&&e<=122||e>=65&&e<=90}function sV(e){return 32===e||10===e||9===e||12===e||13===e}function sB(e){return 47===e||62===e||sV(e)}function sU(e){let t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function sz(e){switch(e){case"Teleport":case"teleport":return lX;case"Suspense":case"suspense":return lQ;case"KeepAlive":case"keep-alive":return lZ;case"BaseTransition":case"base-transition":return lY}}let sG=/^\d|[^\$\w\xA0-\uFFFF]/,sJ=e=>!sG.test(e),sX=/[A-Za-z_$\xA0-\uFFFF]/,sQ=/[\.\?\w$\xA0-\uFFFF]/,sZ=/\s+[.[]\s*|\s*[.[]\s+/g,sY=e=>{e=e.trim().replace(sZ,e=>e.trim());let t=0,n=[],r=0,i=0,l=null;for(let s=0;s4===e.key.type&&e.key.content===r)}return n}function oe(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).toString())}`}let ot=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,on={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:f,isPreTag:f,isCustomElement:f,onError:sH,onWarn:sq,comments:!1,prefixIdentifiers:!1},or=on,oi=null,ol="",os=null,oo=null,oa="",oc=-1,ou=-1,od=0,op=!1,oh=null,of=[],om=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=sP,this.delimiterClose=sF,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=sP,this.delimiterClose=sF}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){let i=this.newlines[r];if(e>i){t=r+2,n=e-i;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex]){if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++}else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(t?sB(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t){this.sequenceIndex++;return}}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||sV(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===sj.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(of,{onerr:oR,ontext(e,t){o_(ov(e,t),e,t)},ontextentity(e,t,n){o_(e,t,n)},oninterpolation(e,t){if(op)return o_(ov(e,t),e,t);let n=e+om.delimiterOpen.length,r=t-om.delimiterClose.length;for(;sV(ol.charCodeAt(n));)n++;for(;sV(ol.charCodeAt(r-1));)r--;let i=ov(n,r);i.includes("&")&&(i=or.decodeEntities(i,!1)),oE({type:5,content:oI(i,!1,oA(n,r)),loc:oA(e,t)})},onopentagname(e,t){let n=ov(e,t);os={type:1,tag:n,ns:or.getNamespace(n,of[0],or.ns),tagType:0,props:[],children:[],loc:oA(e-1,t),codegenNode:void 0}},onopentagend(e){ob(e)},onclosetag(e,t){let n=ov(e,t);if(!or.isVoidTag(n)){let r=!1;for(let e=0;e0&&of[0].loc.start.offset;for(let n=0;n<=e;n++)oS(of.shift(),t,n(7===e.type?e.rawName:e.name)===t)},onattribend(e,t){os&&oo&&(oN(oo.loc,t),0!==e&&(oa.includes("&")&&(oa=or.decodeEntities(oa,!0)),6===oo.type?("class"===oo.name&&(oa=ow(oa).trim()),oo.value={type:2,content:oa,loc:1===e?oA(oc,ou):oA(oc-1,ou+1)},om.inSFCRoot&&"template"===os.tag&&"lang"===oo.name&&oa&&"html"!==oa&&om.enterRCDATA(sU("{let i=t.start.offset+n,l=i+e.length;return oI(e,!1,oA(i,l),0,r?1:0)},o={source:s(l.trim(),n.indexOf(l,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},a=i.trim().replace(oy,"").trim(),c=i.indexOf(a),u=a.match(og);if(u){let e;a=a.replace(og,"").trim();let t=u[1].trim();if(t&&(e=n.indexOf(t,c+a.length),o.key=s(t,e,!0)),u[2]){let r=u[2].trim();r&&(o.index=s(r,n.indexOf(r,o.key?e+t.length:c+a.length),!0))}}return a&&(o.value=s(a,c,!0)),o}(oo.exp)))),(7!==oo.type||"pre"!==oo.name)&&os.props.push(oo)),oa="",oc=ou=-1},oncomment(e,t){or.comments&&oE({type:3,content:ov(e,t),loc:oA(e-4,t+3)})},onend(){let e=ol.length;for(let t=0;t64&&n<91||sz(e)||or.isBuiltInComponent&&or.isBuiltInComponent(e)||or.isNativeTag&&!or.isNativeTag(e))return!0;for(let e=0;e=0;)n--;return n}let oC=new Set(["if","else","else-if","for","slot"]),ok=/\r\n/g;function oT(e,t){let n="preserve"!==or.whitespace,r=!1;for(let t=0;t1)for(let i=0;i{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){let{props:i}=e;if(3===e.tagType&&i.some(s6))return;let l=[];for(let s=0;s`${sk[e]}: _${sk[e]}`;function oU(e,t,{helper:n,push:r,newline:i,isTS:l}){let s=n("component"===t?l9:se);for(let n=0;n3;t.push("["),n&&t.indent(),oH(e,t,n),n&&t.deindent(),t.push("]")}function oH(e,t,n=!1,r=!0){let{push:i,newline:l}=t;for(let s=0;se||"null")}([s,o,a,n,u]),t),r(")"),p&&r(")"),d&&(r(", "),oq(d,t),r(")"))}(e,t);break;case 14:!function(e,t){let{push:n,helper:r,pure:i}=t,l=A(e.callee)?e.callee:r(e.callee);i&&n(oV),n(l+"(",-2,e),oH(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){let{push:n,indent:r,deindent:i,newline:l}=t,{properties:s}=e;if(!s.length){n("{}",-2,e);return}let o=s.length>1;n(o?"{":"{ "),o&&r();for(let e=0;e "),(a||o)&&(n("{"),r()),s?(a&&n("return "),x(s)?oj(s,t):oq(s,t)):o&&oq(o,t),(a||o)&&(i(),n("}")),c&&n(")")}(e,t);break;case 19:!function(e,t){let{test:n,consequent:r,alternate:i,newline:l}=e,{push:s,indent:o,deindent:a,newline:c}=t;if(4===n.type){let e=!sJ(n.content);e&&s("("),oW(n,t),e&&s(")")}else s("("),oq(n,t),s(")");l&&o(),t.indentLevel++,l||s(" "),s("? "),oq(r,t),t.indentLevel--,l&&c(),l||s(" "),s(": ");let u=19===i.type;!u&&t.indentLevel++,oq(i,t),!u&&t.indentLevel--,l&&a(!0)}(e,t);break;case 20:!function(e,t){let{push:n,helper:r,indent:i,deindent:l,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(i(),n(`${r(sg)}(-1),`),s(),n("(")),n(`_cache[${e.index}] = `),oq(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),s(),n(`${r(sg)}(1),`),s(),n(`_cache[${e.index}]`),l()),n(")")}(e,t);break;case 21:oH(e.body,t,!0,!1)}}function oW(e,t){let{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function oK(e,t){for(let n=0;n(function(e,t,n,r){if("else"!==t.name&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(sW(28,t.loc)),t.exp=sI("true",!1,r)}if("if"===t.name){let i=oG(e,t),l={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(l),r)return r(l,i,!0)}else{let i=n.parent.children,l=i.indexOf(e);for(;l-- >=-1;){let s=i[l];if(s&&3===s.type||s&&2===s.type&&!s.content.trim().length){n.removeNode(s);continue}if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(sW(30,e.loc)),n.removeNode();let i=oG(e,t);s.branches.push(i);let l=r&&r(s,i,!1);oF(i,n),l&&l(),n.currentNode=null}else n.onError(sW(30,e.loc));break}}})(e,t,n,(e,t,r)=>{let i=n.parent.children,l=i.indexOf(e),s=0;for(;l-- >=0;){let e=i[l];e&&9===e.type&&(s+=e.branches.length)}return()=>{r?e.codegenNode=oJ(t,s,n):function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode).alternate=oJ(t,s+e.branches.length-1,n)}}));function oG(e,t){let n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!s0(e,"for")?e.children:[e],userKey:s1(e,"key"),isTemplateIf:n}}function oJ(e,t,n){return e.condition?sM(e.condition,oX(e,t,n),sO(n.helper(l4),['""',"true"])):oX(e,t,n)}function oX(e,t,n){let{helper:r}=n,i=sN("key",sI(`${t}`,!1,sT,2)),{children:l}=e,s=l[0];if(1!==l.length||1!==s.type){if(1!==l.length||11!==s.type)return sw(n,r(lJ),sA([i]),l,64,void 0,void 0,!0,!1,!1,e.loc);{let e=s.codegenNode;return s9(e,i,n),e}}{let e=s.codegenNode,t=14===e.type&&e.callee===sx?e.arguments[1].returns:e;return 13===t.type&&s$(t,n),s9(t,i,n),e}}let oQ=(e,t,n)=>{let{modifiers:r,loc:i}=e,l=e.arg,{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==l.type||!l.isStatic)return n.onError(sW(52,l.loc)),{props:[sN(l,sI("",!0,i))]};oZ(e),s=e.exp}return 4!==l.type?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),r.includes("camel")&&(4===l.type?l.isStatic?l.content=U(l.content):l.content=`${n.helperString(sh)}(${l.content})`:(l.children.unshift(`${n.helperString(sh)}(`),l.children.push(")"))),!n.inSSR&&(r.includes("prop")&&oY(l,"."),r.includes("attr")&&oY(l,"^")),{props:[sN(l,s)]}},oZ=(e,t)=>{let n=e.arg,r=U(n.content);e.exp=sI(r,!1,n.loc)},oY=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},o0=oD("for",(e,t,n)=>{let{helper:r,removeHelper:i}=n;return function(e,t,n,r){if(!t.exp){n.onError(sW(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(sW(32,t.loc));return}o1(i);let{addIdentifiers:l,removeIdentifiers:s,scopes:o}=n,{source:a,value:c,key:u,index:d}=i,p={type:11,loc:t.loc,source:a,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:s4(e)?e.children:[e]};n.replaceNode(p),o.vFor++;let h=r&&r(p);return()=>{o.vFor--,h&&h()}}(e,t,n,t=>{let l=sO(r(sr),[t.source]),s=s4(e),o=s0(e,"memo"),a=s1(e,"key",!1,!0);a&&7===a.type&&!a.exp&&oZ(a);let c=a&&(6===a.type?a.value?sI(a.value.content,!0):void 0:a.exp),u=a&&c?sN("key",c):null,d=4===t.source.type&&t.source.constType>0,p=d?64:a?128:256;return t.codegenNode=sw(n,r(lJ),void 0,l,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let a;let{children:p}=t,h=1!==p.length||1!==p[0].type,f=s8(e)?e:s&&1===e.children.length&&s8(e.children[0])?e.children[0]:null;if(f)a=f.codegenNode,s&&u&&s9(a,u,n);else if(h)a=sw(n,r(lJ),u?sA([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1);else{var m,g,y,b,_,S,x,C;a=p[0].codegenNode,s&&u&&s9(a,u,n),!d!==a.isBlock&&(a.isBlock?(i(l0),i((m=n.inSSR,g=a.isComponent,m||g?l1:l2))):i((y=n.inSSR,b=a.isComponent,y||b?l3:l6))),(a.isBlock=!d,a.isBlock)?(r(l0),r((_=n.inSSR,S=a.isComponent,_||S?l1:l2))):r((x=n.inSSR,C=a.isComponent,x||C?l3:l6))}if(o){let e=sL(o2(t.parseResult,[sI("_cached")]));e.body={type:21,body:[sR(["const _memo = (",o.exp,")"]),sR(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(sC)}(_cached, _memo)) return _cached`]),sR(["const _item = ",a]),sI("_item.memo = _memo"),sI("return _item")],loc:sT},l.arguments.push(e,sI("_cache"),sI(String(n.cached++)))}else l.arguments.push(sL(o2(t.parseResult),a,!0))}})});function o1(e,t){e.finalized||(e.finalized=!0)}function o2({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||sI("_".repeat(t+1),!1))}([e,t,n,...r])}let o3=sI("undefined",!1),o6=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){let n=s0(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},o4=(e,t,n,r)=>sL(e,n,!1,!0,n.length?n[0].loc:r);function o8(e,t,n){let r=[sN("name",e),sN("fn",t)];return null!=n&&r.push(sN("key",sI(String(n),!0))),sA(r)}let o5=new WeakMap,o9=(e,t)=>function(){let n,r,i,l,s;if(!(1===(e=t.currentNode).type&&(0===e.tagType||1===e.tagType)))return;let{tag:o,props:a}=e,c=1===e.tagType,u=c?function(e,t,n=!1){let{tag:r}=e,i=at(r),l=s1(e,"is",!1,!0);if(l){if(i){let e;if(6===l.type?e=l.value&&sI(l.value.content,!0):(e=l.exp)||(e=sI("is",!1,l.loc)),e)return sO(t.helper(l7),[e])}else 6===l.type&&l.value.content.startsWith("vue:")&&(r=l.value.content.slice(4))}let s=sz(r)||t.isBuiltInComponent(r);return s?(n||t.helper(s),s):(t.helper(l9),t.components.add(r),oe(r,"component"))}(e,t):`"${o}"`,d=I(u)&&u.callee===l7,p=0,h=d||u===lX||u===lQ||!c&&("svg"===o||"foreignObject"===o||"math"===o);if(a.length>0){let r=o7(e,t,void 0,c,d);n=r.props,p=r.patchFlag,l=r.dynamicPropNames;let i=r.directives;s=i&&i.length?sE(i.map(e=>(function(e,t){let n=[],r=o5.get(e);r?n.push(t.helperString(r)):(t.helper(se),t.directives.add(e.name),n.push(oe(e.name,"directive")));let{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));let t=sI("true",!1,i);n.push(sA(e.modifiers.map(e=>sN(e,t)),i))}return sE(n,e.loc)})(e,t))):void 0,r.shouldUseBlock&&(h=!0)}if(e.children.length>0){if(u===lZ&&(h=!0,p|=1024),c&&u!==lX&&u!==lZ){let{slots:n,hasDynamicSlots:i}=function(e,t,n=o4){t.helper(sb);let{children:r,loc:i}=e,l=[],s=[],o=t.scopes.vSlot>0||t.scopes.vFor>0,a=s0(e,"slot",!0);if(a){let{arg:e,exp:t}=a;e&&!sK(e)&&(o=!0),l.push(sN(e||sI("default",!0),n(t,void 0,r,i)))}let c=!1,u=!1,d=[],p=new Set,h=0;for(let e=0;esN("default",n(e,void 0,t,i));c?d.length&&d.some(e=>(function e(t){return 2!==t.type&&12!==t.type||(2===t.type?!!t.content.trim():e(t.content))})(e))&&(u?t.onError(sW(39,d[0].loc)):l.push(e(void 0,d))):l.push(e(void 0,r))}let f=o?2:!function e(t){for(let n=0;n0,f=!1,g=0,y=!1,b=!1,_=!1,S=!1,x=!1,C=!1,k=[],T=e=>{u.length&&(d.push(sA(ae(u),a)),u=[]),e&&d.push(e)},w=()=>{t.scopes.vFor>0&&u.push(sN(sI("ref_for",!0),sI("true")))},E=({key:e,value:n})=>{if(sK(e)){let l=e.content,s=m(l);s&&(!r||i)&&"onclick"!==l.toLowerCase()&&"onUpdate:modelValue"!==l&&!F(l)&&(S=!0),s&&F(l)&&(C=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&oL(n,t)>0||("ref"===l?y=!0:"class"===l?b=!0:"style"===l?_=!0:"key"===l||k.includes(l)||k.push(l),r&&("class"===l||"style"===l)&&!k.includes(l)&&k.push(l))}else x=!0};for(let i=0;i1?sO(t.helper(so),d,a):d[0]):u.length&&(s=sA(ae(u),a)),x?g|=16:(b&&!r&&(g|=2),_&&!r&&(g|=4),k.length&&(g|=8),S&&(g|=32)),!f&&(0===g||32===g)&&(y||C||p.length>0)&&(g|=512),!t.inSSR&&s)switch(s.type){case 15:let A=-1,I=-1,R=!1;for(let e=0;e{if(s8(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:l}=function(e,t){let n,r='"default"',i=[];for(let t=0;t0){let{props:r,directives:l}=o7(e,t,i,!1,!1);n=r,l.length&&t.onError(sW(36,l[0].loc))}return{slotName:r,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"],o=2;l&&(s[2]=l,o=3),n.length&&(s[3]=sL([],n,!1,!1,r),o=4),t.scopeId&&!t.slotted&&(o=5),s.splice(o),e.codegenNode=sO(t.helper(si),s,r)}},ar=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ai=(e,t,n,r)=>{let i;let{loc:l,modifiers:s,arg:o}=e;if(e.exp||s.length,4===o.type){if(o.isStatic){let e=o.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),i=sI(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?W(U(e)):`on:${e}`,!0,o.loc)}else i=sR([`${n.helperString(sm)}(`,o,")"])}else(i=o).children.unshift(`${n.helperString(sm)}(`),i.children.push(")");let a=e.exp;a&&!a.content.trim()&&(a=void 0);let c=n.cacheHandlers&&!a&&!n.inVOnce;if(a){let e=sY(a.content),t=!(e||ar.test(a.content)),n=a.content.includes(";");(t||c&&e)&&(a=sR([`${t?"$event":"(...args)"} => ${n?"{":"("}`,a,n?"}":")"]))}let u={props:[sN(i,a||sI("() => {}",!1,l))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},al=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{let n;let r=e.children,i=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))))for(let e=0;e{if(1===e.type&&s0(e,"once",!0)&&!as.has(e)&&!t.inVOnce&&!t.inSSR)return as.add(e),t.inVOnce=!0,t.helper(sg),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}},aa=(e,t,n)=>{let r;let{exp:i,arg:l}=e;if(!i)return n.onError(sW(41,e.loc)),ac();let s=i.loc.source,o=4===i.type?i.content:s,a=n.bindingMetadata[s];if("props"===a||"props-aliased"===a)return i.loc,ac();if(!o.trim()||!sY(o))return n.onError(sW(42,i.loc)),ac();let c=l||sI("modelValue",!0),u=l?sK(l)?`onUpdate:${U(l.content)}`:sR(['"onUpdate:" + ',l]):"onUpdate:modelValue",d=n.isTS?"($event: any)":"$event";r=sR([`${d} => ((`,i,") = $event)"]);let p=[sN(c,e.exp),sN(u,r)];if(e.modifiers.length&&1===t.tagType){let t=e.modifiers.map(e=>(sJ(e)?e:JSON.stringify(e))+": true").join(", "),n=l?sK(l)?`${l.content}Modifiers`:sR([l,' + "Modifiers"']):"modelModifiers";p.push(sN(n,sI(`{ ${t} }`,!1,e.loc,2)))}return ac(p)};function ac(e=[]){return{props:e}}let au=new WeakSet,ad=(e,t)=>{if(1===e.type){let n=s0(e,"memo");if(!(!n||au.has(e)))return au.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&s$(r,t),e.codegenNode=sO(t.helper(sx),[n.exp,sL(void 0,r),"_cache",String(t.cached++)]))}}},ap=Symbol(""),ah=Symbol(""),af=Symbol(""),am=Symbol(""),ag=Symbol(""),ay=Symbol(""),av=Symbol(""),ab=Symbol(""),a_=Symbol(""),aS=Symbol("");!function(e){Object.getOwnPropertySymbols(e).forEach(t=>{sk[t]=e[t]})}({[ap]:"vModelRadio",[ah]:"vModelCheckbox",[af]:"vModelText",[am]:"vModelSelect",[ag]:"vModelDynamic",[ay]:"withModifiers",[av]:"withKeys",[ab]:"vShow",[a_]:"Transition",[aS]:"TransitionGroup"});let ax={parseMode:"html",isVoidTag:ea,isNativeTag:e=>el(e)||es(e)||eo(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return(c||(c=document.createElement("div")),t)?(c.innerHTML=`
`,c.children[0].getAttribute("foo")):(c.innerHTML=e,c.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?a_:"TransitionGroup"===e||"transition-group"===e?aS:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r){if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0)}else t&&1===r&&("foreignObject"===t.tag||"desc"===t.tag||"title"===t.tag)&&(r=0);if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},aC=(e,t)=>sI(JSON.stringify(er(e)),!1,t,3),ak=u("passive,once,capture"),aT=u("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),aw=u("left,right"),aE=u("onkeyup,onkeydown,onkeypress",!0),aA=(e,t,n,r)=>{let i=[],l=[],s=[];for(let n=0;nsK(e)&&"onclick"===e.content.toLowerCase()?sI(t,!0):4!==e.type?sR(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,aI=(e,t)=>{1===e.type&&0===e.tagType&&("script"===e.tag||"style"===e.tag)&&t.removeNode()},aR=[e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:sI("style",!0,t.loc),exp:aC(t.value.content,t.loc),modifiers:[],loc:t.loc})})}],aO={cloak:()=>({props:[]}),html:(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(sW(53,i)),t.children.length&&(n.onError(sW(54,i)),t.children.length=0),{props:[sN(sI("innerHTML",!0,i),r||sI("",!0))]}},text:(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(sW(55,i)),t.children.length&&(n.onError(sW(56,i)),t.children.length=0),{props:[sN(sI("textContent",!0),r?oL(r,n)>0?r:sO(n.helperString(ss),[r],i):sI("",!0))]}},model:(e,t,n)=>{let r=aa(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(sW(58,e.arg.loc));let{tag:i}=t,l=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||l){let s=af,o=!1;if("input"===i||l){let r=s1(t,"type");if(r){if(7===r.type)s=ag;else if(r.value)switch(r.value.content){case"radio":s=ap;break;case"checkbox":s=ah;break;case"file":o=!0,n.onError(sW(59,e.loc))}}else t.props.some(e=>7===e.type&&"bind"===e.name&&(!e.arg||4!==e.arg.type||!e.arg.isStatic))&&(s=ag)}else"select"===i&&(s=am);o||(r.needRuntime=n.helper(s))}else n.onError(sW(57,e.loc));return r.props=r.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),r},on:(e,t,n)=>ai(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:l}=t.props[0],{keyModifiers:s,nonKeyModifiers:o,eventOptionModifiers:a}=aA(i,r,n,e.loc);if(o.includes("right")&&(i=aN(i,"onContextmenu")),o.includes("middle")&&(i=aN(i,"onMouseup")),o.length&&(l=sO(n.helper(ay),[l,JSON.stringify(o)])),s.length&&(!sK(i)||aE(i.content))&&(l=sO(n.helper(av),[l,JSON.stringify(s)])),a.length){let e=a.map(q).join("");i=sK(i)?sI(`${i.content}${e}`,!0):sR(["(",i,`) + "${e}"`])}return{props:[sN(i,l)]}}),show:(e,t,n)=>{let{exp:r,loc:i}=e;return!r&&n.onError(sW(61,i)),{props:[],needRuntime:n.helper(ab)}}},aL=new WeakMap;function aM(e,t){let n;if(!A(e)){if(!e.nodeType)return h;e=e.innerHTML}let r=e,i=((n=aL.get(null!=t?t:d))||(n=Object.create(null),aL.set(null!=t?t:d,n)),n),l=i[r];if(l)return l;if("#"===e[0]){let t=document.querySelector(e);e=t?t.innerHTML:""}let s=y({hoistStatic:!0,onError:void 0,onWarn:h},t);s.isCustomElement||"undefined"==typeof customElements||(s.isCustomElement=e=>!!customElements.get(e));let{code:o}=function(e,t={}){return function(e,t={}){let n=t.onError||sH,r="module"===t.mode;!0===t.prefixIdentifiers?n(sW(47)):r&&n(sW(48)),t.cacheHandlers&&n(sW(49)),t.scopeId&&!r&&n(sW(50));let i=y({},t,{prefixIdentifiers:!1}),l=A(e)?function(e,t){if(om.reset(),os=null,oo=null,oa="",oc=-1,ou=-1,of.length=0,ol=e,or=y({},on),t){let e;for(e in t)null!=t[e]&&(or[e]=t[e])}om.mode="html"===or.parseMode?1:"sfc"===or.parseMode?2:0,om.inXML=1===or.ns||2===or.ns;let n=t&&t.delimiters;n&&(om.delimiterOpen=sU(n[0]),om.delimiterClose=sU(n[1]));let r=oi=function(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:sT}}([],e);return om.parse(ol),r.loc=oA(0,e.length),r.children=oT(r.children),oi=null,r}(e,i):e,[s,o]=[[ao,oz,ad,o0,an,o9,o6,al],{on:ai,bind:oQ,model:aa}];return!function(e,t){let n=function(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:l=!1,nodeTransforms:s=[],directiveTransforms:o={},transformHoist:a=null,isBuiltInComponent:c=h,isCustomElement:u=h,expressionPlugins:p=[],scopeId:f=null,slotted:m=!0,ssr:g=!1,inSSR:y=!1,ssrCssVars:b="",bindingMetadata:_=d,inline:S=!1,isTS:x=!1,onError:C=sH,onWarn:k=sq,compatConfig:T}){let w=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),E={filename:t,selfName:w&&q(U(w[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:l,nodeTransforms:s,directiveTransforms:o,transformHoist:a,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:p,scopeId:f,slotted:m,ssr:g,inSSR:y,ssrCssVars:b,bindingMetadata:_,inline:S,isTS:x,onError:C,onWarn:k,compatConfig:T,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){let t=E.helpers.get(e)||0;return E.helpers.set(e,t+1),e},removeHelper(e){let t=E.helpers.get(e);if(t){let n=t-1;n?E.helpers.set(e,n):E.helpers.delete(e)}},helperString:e=>`_${sk[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){let t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:h,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){A(e)&&(e=sI(e)),E.hoists.push(e);let t=sI(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>(function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:sT}})(E.cached++,e,t)};return E}(e,t);oF(e,n),t.hoistStatic&&function e(t,n,r=!1){let{children:i}=t,l=i.length,s=0;for(let t=0;t0){if(e>=2){l.codegenNode.patchFlag=-1,l.codegenNode=n.hoist(l.codegenNode),s++;continue}}else{let e=l.codegenNode;if(13===e.type){let t=e.patchFlag;if((void 0===t||512===t||1===t)&&o$(l,n)>=2){let t=oP(l);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}if(1===l.type){let t=1===l.tagType;t&&n.scopes.vSlot++,e(l,n),t&&n.scopes.vSlot--}else if(11===l.type)e(l,n,1===l.children.length);else if(9===l.type)for(let t=0;t1&&(e.codegenNode=sw(t,n(lJ),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0}(l,y({},i,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:y({},o,t.directiveTransforms||{})})),function(e,t={}){let n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:l=null,optimizeImports:s=!1,runtimeGlobalName:o="Vue",runtimeModuleName:a="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){let h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:l,optimizeImports:s,runtimeGlobalName:o,runtimeModuleName:a,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${sk[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:l,indent:s,deindent:o,newline:a,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!l&&"module"!==r;(function(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:l,runtimeModuleName:s,runtimeGlobalName:o,ssrRuntimeModuleName:a}=t,c=Array.from(e.helpers);if(c.length>0&&(i(`const _Vue = ${o} +`,-1),e.hoists.length)){let e=[l3,l6,l4,l8,l5].filter(e=>c.includes(e)).map(oB).join(", ");i(`const { ${e} } = _Vue +`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;let{push:n,newline:r,helper:i,scopeId:l,mode:s}=t;r();for(let i=0;i0)&&a()),e.directives.length&&(oU(e.directives,"directive",n),e.temps>0&&a()),e.temps>0){i("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` +`,0),a()),u||i("return "),e.codegenNode?oq(e.codegenNode,n):i("null"),h&&(o(),i("}")),o(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(l,i)}(e,y({},ax,t,{nodeTransforms:[aI,...aR,...t.nodeTransforms||[]],directiveTransforms:y({},aO,t.directiveTransforms||{}),transformHoist:null}))}(e,s),a=Function(o)();return a._rc=!0,i[r]=a}return iI(aM),e.BaseTransition=nr,e.BaseTransitionPropsValidators=nt,e.Comment=r4,e.DeprecationTypes=null,e.EffectScope=eg,e.ErrorCodes={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},e.ErrorTypeStrings=null,e.Fragment=r3,e.KeepAlive={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=ik(),r=n.ctx,i=new Map,l=new Set,s=null,o=n.suspense,{renderer:{p:a,m:c,um:u,o:{createElement:d}}}=r,p=d("div");function h(e){nv(e),u(e,n,o,!0)}function f(e){i.forEach((t,n)=>{let r=i$(t.type);!r||e&&e(r)||m(n)})}function m(e){let t=i.get(e);s&&io(t,s)?s&&nv(s):h(t),i.delete(e),l.delete(e)}r.activate=(e,t,n,r,i)=>{let l=e.component;c(e,t,n,0,o),a(l.vnode,e,t,n,l,o,r,e.slotScopeIds,i),rw(()=>{l.isDeactivated=!1,l.a&&z(l.a);let t=e.props&&e.props.onVnodeMounted;t&&i_(t,l.parent,e)},o)},r.deactivate=e=>{let t=e.component;rL(t.m),rL(t.a),c(e,p,null,1,o),rw(()=>{t.da&&z(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&i_(n,t.parent,e),t.isDeactivated=!0},o)},rD(()=>[e.include,e.exclude],([e,t])=>{e&&f(t=>nf(e,t)),t&&f(e=>!nf(t,e))},{flush:"post",deep:!0});let g=null,y=()=>{null!=g&&(rX(n.subTree.type)?rw(()=>{i.set(g,nb(n.subTree))},n.subTree.suspense):i.set(g,nb(n.subTree)))};return nC(y),nT(y),nw(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=nb(t);if(e.type===i.type&&e.key===i.key){nv(i);let e=i.component.da;e&&rw(e,r);return}h(e)})}),()=>{if(g=null,!t.default)return null;let n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!is(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return s=null,r;let o=nb(r),a=o.type,c=i$(nd(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:p}=e;if(u&&(!c||!nf(u,c))||d&&c&&nf(d,c))return s=o,r;let h=null==o.key?a:o.key,f=i.get(h);return o.el&&(o=ih(o),128&r.shapeFlag&&(r.ssContent=o)),g=h,f?(o.el=f.el,o.component=f.component,o.transition&&na(o,o.transition),o.shapeFlag|=512,l.delete(h),l.add(h)):(l.add(h),p&&l.size>parseInt(p,10)&&m(l.values().next().value)),o.shapeFlag|=256,s=o,rX(r.type)?r:o}}},e.ReactiveEffect=ev,e.Static=r8,e.Suspense={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,l,s,o,a,c){if(null==e)(function(e,t,n,r,i,l,s,o,a){let{p:c,o:{createElement:u}}=a,d=u("div"),p=e.suspense=rY(e,i,r,t,d,n,l,s,o,a);c(null,p.pendingBranch=e.ssContent,d,null,r,p,l,s),p.deps>0?(rZ(e,"onPending"),rZ(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,l,s),r2(p,e.ssFallback)):p.resolve(!1,!0)})(t,n,r,i,l,s,o,a,c);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}(function(e,t,n,r,i,l,s,o,{p:a,um:c,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:y}=d;if(m)d.pendingBranch=p,io(p,m)?(a(m,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0?d.resolve():g&&!y&&(a(f,h,n,r,i,null,l,s,o),r2(d,h))):(d.pendingId=rQ++,y?(d.isHydrating=!1,d.activeBranch=m):c(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0?d.resolve():(a(f,h,n,r,i,null,l,s,o),r2(d,h))):f&&io(p,f)?(a(f,p,n,r,i,d,l,s,o),d.resolve(!0)):(a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0&&d.resolve()));else if(f&&io(p,f))a(f,p,n,r,i,d,l,s,o),r2(d,p);else if(rZ(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=rQ++,a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(h)},e):0===e&&d.fallback(h)}})(e,t,n,r,i,s,o,a,c)}},hydrate:function(e,t,n,r,i,l,s,o,a){let c=t.suspense=rY(t,r,n,e.parentNode,document.createElement("div"),null,i,l,s,o,!0),u=a(e,c.pendingBranch=t.ssContent,n,c,l,s);return 0===c.deps&&c.resolve(!1,!0),u},normalize:function(e){let{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=r0(r?n.default:n),e.ssFallback=r?r0(n.fallback):id(r4)}},e.Teleport={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,l,s,o,a,c){let{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g}}=c,y=rp(t.props),{shapeFlag:b,children:_,dynamicChildren:S}=t;if(null==e){let e=t.el=m(""),c=t.anchor=m("");h(e,n,r),h(c,n,r);let d=t.target=rm(t.props,f),p=rv(d,t,m,h);d&&("svg"===s||rh(d)?s="svg":("mathml"===s||rf(d))&&(s="mathml"));let g=(e,t)=>{16&b&&u(_,e,t,i,l,s,o,a)};y?g(n,c):d&&g(d,p)}else{t.el=e.el,t.targetStart=e.targetStart;let r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=rp(e.props),g=m?n:u;if("svg"===s||rh(u)?s="svg":("mathml"===s||rf(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,i,l,s,o),rO(e,t,!0)):a||d(e,t,g,m?r:h,i,l,s,o,!1),y)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):rg(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=rm(t.props,f);e&&rg(t,e,null,c,0)}else m&&rg(t,u,h,c,1)}ry(t)},remove(e,t,n,{um:r,o:{remove:i}},l){let{shapeFlag:s,children:o,anchor:a,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(i(c),i(u)),l&&i(a),16&s){let e=l||!rp(p);for(let i=0;i{let t=(a||(a=rA(lj))).createApp(...e),{mount:n}=t;return t.mount=e=>{let r=lG(e);if(!r)return;let i=t._component;E(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";let l=n(r,!1,lz(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t},e.createBlock=il,e.createCommentVNode=function(e="",t=!1){return t?(r7(),il(r4,null,e)):id(r4,null,e)},e.createElementBlock=function(e,t,n,r,i,l){return ii(iu(e,t,n,r,i,l,!0))},e.createElementVNode=iu,e.createHydrationRenderer=rE,e.createPropsRestProxy=function(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n},e.createRenderer=function(e){return rA(e)},e.createSSRApp=(...e)=>{let t=lq().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=lG(e);if(t)return n(t,!0,lz(t))},t},e.createSlots=function(e,t){for(let n=0;n{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e},e.createStaticVNode=function(e,t){let n=id(r8,null,e);return n.staticCount=t,n},e.createTextVNode=im,e.createVNode=id,e.customRef=tO,e.defineAsyncComponent=/*! #__NO_SIDE_EFFECTS__ */function(e){let t;E(e)&&(e={loader:e});let{loader:n,loadingComponent:r,errorComponent:i,delay:l=200,timeout:s,suspensible:o=!0,onError:a}=e,c=null,u=0,d=()=>(u++,c=null,p()),p=()=>{let e;return c||(e=c=n().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),a)return new Promise((t,n)=>{a(e,()=>t(d()),()=>n(e),u+1)});throw e}).then(n=>e!==c&&c?c:(n&&(n.__esModule||"Module"===n[Symbol.toStringTag])&&(n=n.default),t=n,n)))};return nu({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return t},setup(){let e=iC;if(t)return()=>np(t,e);let n=t=>{c=null,tD(t,e,13,!i)};if(o&&e.suspense)return p().then(t=>()=>np(t,e)).catch(e=>(n(e),()=>i?id(i,{error:e}):null));let a=tT(!1),u=tT(),d=tT(!!l);return l&&setTimeout(()=>{d.value=!1},l),null!=s&&setTimeout(()=>{if(!a.value&&!u.value){let e=Error(`Async component timed out after ${s}ms.`);n(e),u.value=e}},s),p().then(()=>{a.value=!0,e.parent&&nh(e.parent.vnode)&&(e.parent.effect.dirty=!0,tJ(e.parent.update))}).catch(e=>{n(e),u.value=e}),()=>a.value&&t?np(t,e):u.value&&i?id(i,{error:u.value}):r&&!d.value?id(r):void 0}})},e.defineComponent=nu,e.defineCustomElement=lm,e.defineEmits=function(){return null},e.defineExpose=function(e){},e.defineModel=function(){},e.defineOptions=function(e){},e.defineProps=function(){return null},e.defineSSRCustomElement=(e,t)=>lm(e,t,lK),e.defineSlots=function(){return null},e.devtools=void 0,e.effect=function(e,t){e.effect instanceof ev&&(e=e.effect.fn);let n=new ev(e,h,()=>{n.dirty&&n.run()});t&&(y(n,t),t.scope&&ey(n,t.scope)),t&&t.lazy||n.run();let r=n.run.bind(n);return r.effect=n,r},e.effectScope=function(e){return new eg(e)},e.getCurrentInstance=ik,e.getCurrentScope=function(){return n},e.getTransitionRawChildren=nc,e.guardReactiveProps=ip,e.h=iF,e.handleError=tD,e.hasInjectionContext=function(){return!!(iC||t2||n1)},e.hydrate=lK,e.initCustomFormatter=function(){},e.initDirectivesForSSR=h,e.inject=n3,e.isMemoSame=iD,e.isProxy=tg,e.isReactive=th,e.isReadonly=tf,e.isRef=tk,e.isRuntimeOnly=()=>!s,e.isShallow=tm,e.isVNode=is,e.markRaw=tv,e.mergeDefaults=function(e,t){let n=nj(e);for(let e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?x(r)||E(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n},e.mergeModels=function(e,t){return e&&t?x(e)&&x(t)?e.concat(t):y({},nj(e),nj(t)):e||t},e.mergeProps=ib,e.nextTick=tG,e.normalizeClass=ei,e.normalizeProps=function(e){if(!e)return null;let{class:t,style:n}=e;return t&&!A(t)&&(e.class=ei(t)),n&&(e.style=Y(n)),e},e.normalizeStyle=Y,e.onActivated=nm,e.onBeforeMount=nx,e.onBeforeUnmount=nw,e.onBeforeUpdate=nk,e.onDeactivated=ng,e.onErrorCaptured=nR,e.onMounted=nC,e.onRenderTracked=nI,e.onRenderTriggered=nN,e.onScopeDispose=function(e){n&&n.cleanups.push(e)},e.onServerPrefetch=nA,e.onUnmounted=nE,e.onUpdated=nT,e.openBlock=r7,e.popScopeId=function(){t3=null},e.provide=n2,e.proxyRefs=tI,e.pushScopeId=function(e){t3=e},e.queuePostFlushCb=tQ,e.reactive=tc,e.readonly=td,e.ref=tT,e.registerRuntimeCompiler=iI,e.render=lW,e.renderList=function(e,t,n,r){let i;let l=n&&n[r];if(x(e)||A(e)){i=Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,l&&l[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,s=n.length;r!is(t)||!!(t.type!==r4&&(t.type!==r3||e(t.children))))?t:null}(l(n)),o=il(r3,{key:(n.key||s&&s.key||`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!i&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),l&&l._c&&(l._d=!0),o},e.resolveComponent=function(e,t){return nM(nO,e,!0,t)||e},e.resolveDirective=function(e){return nM("directives",e)},e.resolveDynamicComponent=function(e){return A(e)?nM(nO,e,!1)||e:e||nL},e.resolveFilter=null,e.resolveTransitionHooks=nl,e.setBlockTracking=ir,e.setDevtoolsHook=h,e.setTransitionHooks=na,e.shallowReactive=tu,e.shallowReadonly=function(e){return tp(e,!0,ez,ti,ta)},e.shallowRef=function(e){return tw(e,!0)},e.ssrContextKey=rM,e.ssrUtils=null,e.stop=function(e){e.effect.stop()},e.toDisplayString=eh,e.toHandlerKey=W,e.toHandlers=function(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:W(r)]=e[r];return n},e.toRaw=ty,e.toRef=function(e,t,n){return tk(e)?e:E(e)?new tM(e):I(e)&&arguments.length>1?t$(e,t,n):tT(e)},e.toRefs=function(e){let t=x(e)?Array(e.length):{};for(let n in e)t[n]=t$(e,n);return t},e.toValue=function(e){return E(e)?e():tA(e)},e.transformVNodeArgs=function(e){},e.triggerRef=function(e){tC(e,4)},e.unref=tA,e.useAttrs=function(){return nU().attrs},e.useCssModule=function(e="$style"){return d},e.useCssVars=function(e){let t=ik();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>le(e,n))},r=()=>{let r=e(t.proxy);(function e(t,n){if(128&t.shapeFlag){let r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{e(r.activeBranch,n)})}for(;t.component;)t=t.component.subTree;if(1&t.shapeFlag&&t.el)le(t.el,n);else if(t.type===r3)t.children.forEach(t=>e(t,n));else if(t.type===r8){let{el:e,anchor:r}=t;for(;e&&(le(e,n),e!==r);)e=e.nextSibling}})(t.subTree,r),n(r)};nC(()=>{r$(r);let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),nE(()=>e.disconnect())})},e.useModel=function(e,t,n=d){let r=ik(),i=U(t),l=H(t),s=rj(e,t),o=tO((s,o)=>{let a,c;let u=d;return rP(()=>{let n=e[t];K(a,n)&&(a=n,o())}),{get:()=>(s(),n.get?n.get(a):a),set(e){if(!K(e,a)&&!(u!==d&&K(e,u)))return;let s=r.vnode.props;s&&(t in s||i in s||l in s)&&(`onUpdate:${t}` in s||`onUpdate:${i}` in s||`onUpdate:${l}` in s)||(a=e,o());let p=n.set?n.set(e):e;r.emit(`update:${t}`,p),K(e,p)&&K(e,u)&&!K(p,c)&&o(),u=e,c=p}}});return o[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?s||d:o,done:!1}:{done:!0}}},o},e.useSSRContext=()=>{},e.useSlots=function(){return nU().slots},e.useTransitionState=t7,e.vModelCheckbox=lR,e.vModelDynamic={created(e,t,n){lD(e,t,n,null,"created")},mounted(e,t,n){lD(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){lD(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){lD(e,t,n,r,"updated")}},e.vModelRadio=lL,e.vModelSelect=lM,e.vModelText=lI,e.vShow={beforeMount(e,{value:t},{transition:n}){e[i8]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):i9(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),i9(e,!0),r.enter(e)):r.leave(e,()=>{i9(e,!1)}):i9(e,t))},beforeUnmount(e,{value:t}){i9(e,t)}},e.version=iV,e.warn=h,e.watch=function(e,t,n){return rD(e,t,n)},e.watchEffect=function(e,t){return rD(e,null,t)},e.watchPostEffect=r$,e.watchSyncEffect=rP,e.withAsyncContext=function(e){let t=ik(),n=e();return iw(),R(n)&&(n=n.catch(e=>{throw iT(t),e})),[n,()=>iT(t)]},e.withCtx=t4,e.withDefaults=function(e,t){return null},e.withDirectives=function(e,t){if(null===t2)return e;let n=iM(t2),r=e.dirs||(e.dirs=[]);for(let e=0;e{let n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;let r=H(n.key);if(t.some(e=>e===r||lU[e]===r))return e(n)})},e.withMemo=function(e,t,n,r){let i=n[r];if(i&&iD(i,e))return i;let l=t();return l.memo=e.slice(),l.cacheIndex=r,n[r]=l},e.withModifiers=(e,t)=>{let n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;et4,e}({}); diff --git a/corejs/src/app.ts b/corejs/src/app.ts index 1009dad..2ddc5c4 100644 --- a/corejs/src/app.ts +++ b/corejs/src/app.ts @@ -60,9 +60,7 @@ export const Root = defineComponent({ isFetching.value = false }) window.addEventListener('popstate', (evt) => { - if (evt && evt.state != null) { - _plaid().onpopstate(evt) - } + _plaid().onpopstate(evt) }) }) diff --git a/corejs/src/builder.ts b/corejs/src/builder.ts index 2d4973b..77cfb35 100644 --- a/corejs/src/builder.ts +++ b/corejs/src/builder.ts @@ -200,9 +200,8 @@ export class Builder { } public onpopstate(event: any): Promise { - if (!event.state) { - // hashtag changes will trigger popstate, when this happens, event.state is null. - return Promise.reject('event state is undefined') + if (!event || !event.state) { + return this.popstate(true).location(window.location.href).reload().go() } return this.popstate(true).location(event.state).reload().go() }