import {cloneNode, Document} from "/-/domhandler@v5.0.3-oHQ1zBLd64RIysV9PvVR/dist=es2019,mode=imports/optimized/domhandler.js";
export {isTag} from "/-/domhandler@v5.0.3-oHQ1zBLd64RIysV9PvVR/dist=es2019,mode=imports/optimized/domhandler.js";
function isCheerio(maybeCheerio) {
  return maybeCheerio.cheerio != null;
}
function camelCase(str) {
  return str.replace(/[_.-](\w|$)/g, (_, x) => x.toUpperCase());
}
function cssCase(str) {
  return str.replace(/[A-Z]/g, "-$&").toLowerCase();
}
function domEach(array, fn) {
  const len = array.length;
  for (let i = 0; i < len; i++)
    fn(array[i], i);
  return array;
}
function cloneDom(dom) {
  const clone = "length" in dom ? Array.prototype.map.call(dom, (el) => cloneNode(el, true)) : [cloneNode(dom, true)];
  const root = new Document(clone);
  clone.forEach((node) => {
    node.parent = root;
  });
  return clone;
}
var CharacterCodes;
(function(CharacterCodes2) {
  CharacterCodes2[CharacterCodes2["LowerA"] = 97] = "LowerA";
  CharacterCodes2[CharacterCodes2["LowerZ"] = 122] = "LowerZ";
  CharacterCodes2[CharacterCodes2["UpperA"] = 65] = "UpperA";
  CharacterCodes2[CharacterCodes2["UpperZ"] = 90] = "UpperZ";
  CharacterCodes2[CharacterCodes2["Exclamation"] = 33] = "Exclamation";
})(CharacterCodes || (CharacterCodes = {}));
function isHtml(str) {
  const tagStart = str.indexOf("<");
  if (tagStart < 0 || tagStart > str.length - 3)
    return false;
  const tagChar = str.charCodeAt(tagStart + 1);
  return (tagChar >= CharacterCodes.LowerA && tagChar <= CharacterCodes.LowerZ || tagChar >= CharacterCodes.UpperA && tagChar <= CharacterCodes.UpperZ || tagChar === CharacterCodes.Exclamation) && str.includes(">", tagStart + 2);
}
export {camelCase, cloneDom, cssCase, domEach, isCheerio, isHtml};
export default null;

// denoCacheMetadata={"headers":{"x-vercel-cache":"MISS","access-control-expose-headers":"Content-Length, X-Imports","age":"0","x-imports":"/-/domhandler@v5.0.3-oHQ1zBLd64RIysV9PvVR/dist=es2019,mode=imports/optimized/domhandler.js, /-/domhandler@v5.0.3-oHQ1zBLd64RIysV9PvVR/dist=es2019,mode=imports/optimized/domhandler.js","alt-svc":"h3=\":443\"; ma=86400","content-type":"application/javascript; charset=utf-8","cf-ray":"a223e64ed939f8b7-LAX","etag":"W/\"6f9-kTPSWXxWrt199JCi1GFprMqOIc0\"","vary":"accept-encoding","cf-cache-status":"MISS","access-control-allow-origin":"*","date":"Tue, 28 Jul 2026 12:31:13 GMT","strict-transport-security":"max-age=63072000","x-vercel-id":"sin1::sfo1::dbpwv-1777881869069-9aa1841484f1","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=NHnEbs1pgpBqOmpwDqg6ld51wHGYvLFbVXXMBo3%2FMGNn1D%2FfCNlSPO7Sj2oL4%2FU%2BjRywjQuA8pExzWN%2FEwchtMiR44UvTukWU59CRsgCsk5v2y05b6dix671ZMUiqPWWJg%3D%3D\"}]}","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","cache-control":"public, max-age=31536000, immutable","server":"cloudflare","x-cache":"HIT"},"url":"https://cdn.skypack.dev/-/cheerio@v1.0.0-rc.12-d2orEfV7mEyxhcmv8Jbn/dist=es2019,mode=imports/optimized/cheerio/lib/utils.js","time":1785241873}