(t2, u3 = {})
| 174 | return t2 && t2.__esModule && Object.prototype.hasOwnProperty.call(t2, "default") ? t2.default : t2; |
| 175 | } |
| 176 | function A2(t2, u3 = {}) { |
| 177 | if (typeof t2 != "string" || t2.length === 0 || (u3 = { ambiguousIsNarrow: true, ...u3 }, t2 = S3(t2), t2.length === 0)) return 0; |
| 178 | t2 = t2.replace(DD2(), " "); |
| 179 | const F5 = u3.ambiguousIsNarrow ? 1 : 2; |
| 180 | let e3 = 0; |
| 181 | for (const s2 of t2) { |
| 182 | const C5 = s2.codePointAt(0); |
| 183 | if (C5 <= 31 || C5 >= 127 && C5 <= 159 || C5 >= 768 && C5 <= 879) continue; |
| 184 | switch (Q2.eastAsianWidth(s2)) { |
| 185 | case "F": |
| 186 | case "W": |
| 187 | e3 += 2; |
| 188 | break; |
| 189 | case "A": |
| 190 | e3 += F5; |
| 191 | break; |
| 192 | default: |
| 193 | e3 += 1; |
| 194 | } |
| 195 | } |
| 196 | return e3; |
| 197 | } |
| 198 | function tD2() { |
| 199 | const t2 = /* @__PURE__ */ new Map(); |
| 200 | for (const [u3, F5] of Object.entries(r)) { |
no test coverage detected