"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("lodash-unified"),o=e=>{const r=e?.subTree?.children;if(typeof r=="string")return;const n=Array.isArray(r)?r:null;if(n)return n.filter(t=>!["string","number","boolean"].includes(typeof t)).filter(t=>t&&typeof t=="object"&&"type"in t?t.type!=Symbol.for("v-cmt"):!1)},s=e=>{if(e){if(e.length>1)throw Error("ApKeepAlive 组件只能有一个字节点");if(e[0])return e[0]}},y=e=>{if(e&&!(typeof e=="string"||typeof e=="number"||typeof e=="boolean"||Array.isArray(e)))return e},f=e=>{if(e&&!(typeof e=="string"||typeof e=="number"||typeof e=="boolean"||Array.isArray(e)||!e.type))return e},l=(e,r)=>{const n=typeof e.type=="object"&&"name"in e.type&&e.type.name||"";let t=n;return e.key&&e.key!==r&&(t=e.key),{VnodeName:n,vnodeSubPath:t}},a=e=>typeof e=="object"&&"name"in e&&e.name||"";function u(e,r){return i.isArray(e)?e.some(n=>u(n,r)):i.isString(e)?e.split(",").includes(r):i.isRegExp(e)?(e.lastIndex=0,e.test(r)):!1}function g(e){return[void 0,null].includes(e)}exports.getAliveKey=l;exports.getComponentName=a;exports.getFirstVNodeChirldren=s;exports.getVNodeChirldren=o;exports.getVNodeObjByVNodeArrayChildren=f;exports.getVNodeObjByVNodeChild=y;exports.isNoValue=g;exports.matches=u;
