import{__module as r}from"../../_virtual/index38.mjs";import{__require as e}from"../strip-ansi/index.mjs";import{__require as t}from"../is-fullwidth-code-point/index.mjs";import{__require as i}from"../emoji-regex/index.mjs";var o;function n(){if(o)return r.exports;o=1;const n=e(),s=t(),m=i(),u=r=>{if("string"!=typeof r||0===r.length)return 0;if(0===(r=n(r)).length)return 0;r=r.replace(m(),"  ");let e=0;for(let t=0;t<r.length;t++){const i=r.codePointAt(t);i<=31||i>=127&&i<=159||(i>=768&&i<=879||(i>65535&&t++,e+=s(i)?2:1))}return e};return r.exports=u,r.exports.default=u,r.exports}export{n as __require};