import{_ as r}from"./default-i18n.20001971.js";const o="all-in-one-seo-pack";function t(e){return e=typeof e=="string"?e:e instanceof HTMLImageElement?e.outerHTML:(e==null?void 0:e.innerHTML)||"",[].concat(s(e,"<img(?:[^>]+)?>"),s(e,"\\[gallery( [^\\]]+?)?\\]")).length}function u(e){return e=typeof e=="string"?e:e instanceof HTMLIFrameElement||e instanceof HTMLVideoElement?e.outerHTML:(e==null?void 0:e.innerHTML)||"",[].concat(s(e,"<iframe(?:[^>]+)?>"),s(e,"\\[video( [^\\]]+?)?\\]"),s(e,"<video(?:[^>]+)?>"),s(e,/(http:\/\/|https:\/\/|)(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/)).length}function s(e,i){const a=new RegExp(i,"ig"),n=e.match(a);return n===null?[]:n}function l(e){if(!e)return{error:1,title:r("No content yet",o),description:r("Please add some content first.",o),score:1,maxScore:5};const i=t(e),a=u(e);return 0<i||0<a?{error:0,title:r("Images/videos in content",o),description:r("Your content contains images and/or video(s).",o),score:5,maxScore:5}:{error:1,title:r("Images/videos in content",o),description:r("You are not using rich media like images or videos.",o),score:1,maxScore:5}}export{u as a,l as c,t as g};
