"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("vue");function c(i){let e="notKeepAlive",r=i?.afterDeactivated,t=i?.afterActivated;return v.onActivated(()=>{t&&e==="deactivated"&&Promise.resolve().then(t),e="activated"}),v.onDeactivated(()=>{e="deactivated",r?.()}),{isDeactivated:()=>e==="deactivated",isActivated:()=>e==="activated",registerAfterDeactivated:a=>{r=a},registerAfterActivated:a=>{t=a}}}exports.useKeepAliveFlag=c;
