is-html-tag-opening 4.2.1 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,12 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 4.2.2 (2026-08-22)
7
+
8
+ ### Performance Improvements
9
+
10
+ - optimise package hot paths and JSON editing ([f3112bd](https://github.com/codsen/codsen/commit/f3112bd7fc0d7c9bc09312d3744c950691d72ca5))
11
+
6
12
  ## 4.2.0 (2026-08-19)
7
13
 
8
14
  ### Bug Fixes
9
15
 
10
16
  - make validation diagnostics safe ([7b01074](https://github.com/codsen/codsen/commit/7b0107476f12734aeb8e82852ba980b187280110))
11
- - resolve review findings REV-004 through REV-007 ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
17
+ - resolve various review findings ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
12
18
  - retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
13
19
 
14
20
  ### Features
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @name is-html-tag-opening
3
3
  * @fileoverview Does an HTML tag start at given position?
4
- * @version 4.2.1
4
+ * @version 4.2.2
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/is-html-tag-opening/}
8
8
  */
9
9
 
10
- import{formatDiagnosticValue as h}from"codsen-utils";import{left as c}from"string-left-right";import{matchRight as q,matchRightIncl as F}from"string-match-left-right";var d="4.2.1";import{left as j}from"string-left-right";function p(e,t){return e[t]==="<"||e[j(e,t)]==="<"}function b(e){return e===void 0||e.toUpperCase()===e.toLowerCase()&&!/\d/.test(e)&&e!=="="}var f={allowCustomTagNames:!1,skipOpeningBracket:!1},m="\\",g=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];var W=d;function P(e,t=0,k){if(typeof e!="string")throw new Error(`is-html-tag-opening/isOpening(): [THROW_ID_01] the first input argument should have been a string but it was given as "${typeof e}", value being ${h(e,4)}`);if(!Number.isInteger(t)||t<0)throw new Error(`is-html-tag-opening/isOpening(): [THROW_ID_02] the second input argument should have been a natural number string index but it was given as "${typeof t}", value being ${h(t,4)}`);let n={...f,...k},i="[\\\\ \\t\\r\\n/]*",r="._a-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\uFFFF",w=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}\\w+${i}\\/?${i}>`,"g"),E=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}[${r}]+[-${r}]*${i}>`,"g"),y=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\w+\\s+\\w+(?:-\\w+)?\\s*=\\s*['"\\w]`,"g"),D=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\w+\\s+[${r}]+[-${r}]*(?:-\\w+)?\\s*=\\s*['"\\w]`),O=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\/?\\s*\\w+\\s*\\/?\\s*>`,"g"),v=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\/?\\s*[${r}]+[-${r}]*\\s*\\/?\\s*>`,"g"),R=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}\\w+(?:\\s*\\w+)?\\s*\\w+=['"]`,"g"),V=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}[${r}]+[-${r}]*\\s+(?:\\s*\\w+)?\\s*\\w+=['"]`,"g"),$=new RegExp(`^<${n.skipOpeningBracket?"?\\/?":""}(${i}[${r}]+)+${i}[\\\\/=>]`,""),B=/^\/\s*\w+s*>/,s=t?e.slice(t):e,a=c(e,t),l=!1,o=!1,C={cb:b,i:!0,trimCharsBeforeMatching:["/",m,"!"," "," ",`
10
+ import{formatDiagnosticValue as h}from"codsen-utils";import{left as c}from"string-left-right";import{matchRight as q,matchRightIncl as F}from"string-match-left-right";var d="4.2.2";import{left as j}from"string-left-right";function p(e,t){return e[t]==="<"||e[j(e,t)]==="<"}function b(e){return e===void 0||e.toUpperCase()===e.toLowerCase()&&!/\d/.test(e)&&e!=="="}var f={allowCustomTagNames:!1,skipOpeningBracket:!1},m="\\",g=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];var W=d;function P(e,t=0,k){if(typeof e!="string")throw new Error(`is-html-tag-opening/isOpening(): [THROW_ID_01] the first input argument should have been a string but it was given as "${typeof e}", value being ${h(e,4)}`);if(!Number.isInteger(t)||t<0)throw new Error(`is-html-tag-opening/isOpening(): [THROW_ID_02] the second input argument should have been a natural number string index but it was given as "${typeof t}", value being ${h(t,4)}`);let n={...f,...k},i="[\\\\ \\t\\r\\n/]*",r="._a-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\uFFFF",w=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}\\w+${i}\\/?${i}>`,"g"),E=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}[${r}]+[-${r}]*${i}>`,"g"),y=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\w+\\s+\\w+(?:-\\w+)?\\s*=\\s*['"\\w]`,"g"),D=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\w+\\s+[${r}]+[-${r}]*(?:-\\w+)?\\s*=\\s*['"\\w]`),O=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\/?\\s*\\w+\\s*\\/?\\s*>`,"g"),v=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\/?\\s*[${r}]+[-${r}]*\\s*\\/?\\s*>`,"g"),R=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}\\w+(?:\\s*\\w+)?\\s*\\w+=['"]`,"g"),V=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}[${r}]+[-${r}]*\\s+(?:\\s*\\w+)?\\s*\\w+=['"]`,"g"),$=new RegExp(`^<${n.skipOpeningBracket?"?\\/?":""}(${i}[${r}]+)+${i}[\\\\/=>]`,""),B=/^\/\s*\w+s*>/,s=t?e.slice(t):e,a=c(e,t),l=!1,o=!1,C={cb:b,i:!0,trimCharsBeforeMatching:["/",m,"!"," "," ",`
11
11
  `,"\r"]};return n.allowCustomTagNames?((n.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[c(e,a)]==="<")||s[0]==="<"&&s[1]?.trim())&&($.test(s)||/^<\w+$/.test(s))||E.test(s)&&p(e,t)||D.test(s)||v.test(s)&&p(e,t)||V.test(s)||e[t]==="/"&&e[a]!=="<"&&B.test(s))&&(o=!0):(((n.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[c(e,a)]==="<")||(s[0]==="<"||s[0]==="/"&&(!e[a]||e[a]!=="<"))&&s[1]?.trim())&&$.test(s)||w.test(s)&&p(e,t)||y.test(s)||O.test(s)&&p(e,t)||R.test(s))&&(l=!0),l&&F(e,t,g,{cb:u=>u===void 0?((e[t]==="<"&&e[t+1]?.trim()||e[t-1]==="<")&&(o=!0),!0):u.toUpperCase()===u.toLowerCase()&&!/\d/.test(u)&&u!=="=",i:!0,trimCharsBeforeMatching:["<","/",m,"!"," "," ",`
12
12
  `,"\r"]})&&(o=!0)),!o&&e[t]==="<"&&e[t+1]?.trim()&&q(e,t,g,C)&&(o=!0),typeof e=="string"&&t<e.length&&o}export{f as defaults,P as isOpening,W as version};
@@ -1,17 +1,17 @@
1
1
  /**
2
2
  * @name is-html-tag-opening
3
3
  * @fileoverview Does an HTML tag start at given position?
4
- * @version 4.2.1
4
+ * @version 4.2.2
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/is-html-tag-opening/}
8
8
  */
9
9
 
10
- "use strict";var isHtmlTagOpening=(()=>{var B=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var X=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var _=(e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))F.call(t,r)&&_(e,r,t[r]);if(V)for(var r of V(t))ee.call(t,r)&&_(e,r,t[r]);return e};var te=(e,t)=>{for(var r in t)B(e,r,{get:t[r],enumerable:!0})},re=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of X(t))!F.call(e,s)&&s!==r&&B(e,s,{get:()=>t[s],enumerable:!(i=Y(t,s))||i.enumerable});return e};var ne=e=>re(B({},"__esModule",{value:!0}),e);var ge={};te(ge,{defaults:()=>N,isOpening:()=>he,version:()=>pe});function ie(){let e=[],t=0,r=!1;return{append(i){return r?!1:t+i.length>1999?(e.push("\u2026"),t+=1,r=!0,!1):(e.push(i),t+=i.length,!0)},result(){return e.join("")},stopped(){return r}}}function se(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function L(e,t){if(e.append('"')){for(let r=0;r<t.length&&!e.stopped();r+=1){let i=t.charCodeAt(r);i===34?e.append('\\"'):i===92?e.append("\\\\"):i===8?e.append("\\b"):i===9?e.append("\\t"):i===10?e.append("\\n"):i===12?e.append("\\f"):i===13?e.append("\\r"):i<32||i===8232||i===8233||i>=55296&&i<=57343?e.append(se(i)):e.append(t[r])}e.append('"')}}function oe(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function P(e,t){e.append("Symbol(");let r=String(t);r.length>8&&L(e,r.slice(7,-1)),e.append(")")}function H(e,t){typeof t=="symbol"?P(e,t):L(e,String(t))}function O(e,t=0){let r=ie(),i=t===4?4:0,s=new WeakSet,o=0;function m(n){i&&r.append(" ".repeat(n*i))}function l(n,a){n&&r.append(","),i&&(r.append("\n"),m(a+1))}function d(n,a,u){i&&a&&(r.append("\n"),m(u)),r.append(n)}function b(n,a){Object.prototype.hasOwnProperty.call(n,"value")?h(n.value,a):r.append(oe(n))}function $(n,a){let u;try{u=Reflect.getOwnPropertyDescriptor(n,"length")}catch(f){r.append("[Uninspectable]");return}let c=u==null?void 0:u.value;if(!Number.isSafeInteger(c)||c<0){r.append("[Uninspectable]");return}r.append("[");let g=!1;for(let f=0;f<c&&!r.stopped();f+=1){if(l(g,a),g=!0,o>=50){r.append("[MaxEntries]");break}o+=1;let p;try{p=Reflect.getOwnPropertyDescriptor(n,String(f))}catch(k){r.append("[Uninspectable]");continue}p!=null&&p.enumerable?b(p,a+1):r.append("[Empty]")}d("]",g,a)}function y(n,a){let u;try{u=Reflect.ownKeys(n)}catch(g){r.append("[Uninspectable]");return}r.append("{");let c=!1;for(let g of u){if(r.stopped())break;if(o>=50){l(c,a),c=!0,L(r,"\u2026"),r.append(i?": ":":"),r.append("[MaxEntries]");break}o+=1;let f;try{f=Reflect.getOwnPropertyDescriptor(n,g)}catch(p){l(c,a),c=!0,H(r,g),r.append(i?": ":":"),r.append("[Uninspectable]");continue}f!=null&&f.enumerable&&(l(c,a),c=!0,H(r,g),r.append(i?": ":":"),b(f,a+1))}d("}",c,a)}function w(n,a){if(s.has(n)){r.append("[Circular]");return}if(a>=5){r.append("[MaxDepth]");return}let u;try{u=Array.isArray(n)}catch(c){r.append("[Uninspectable]");return}s.add(n);try{u?$(n,a):y(n,a)}finally{s.delete(n)}}function h(n,a){n===null?r.append("null"):typeof n=="string"?L(r,n):typeof n=="number"?r.append(Object.is(n,-0)?"-0":String(n)):typeof n=="boolean"?r.append(n?"true":"false"):typeof n>"u"?r.append("undefined"):typeof n=="bigint"?r.append("".concat(n,"n")):typeof n=="symbol"?P(r,n):typeof n=="function"?r.append("[Function]"):w(n,a)}try{return h(e,0),r.result()}catch(n){return"[Uninspectable]"}}var be=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]),le=Object.prototype.hasOwnProperty;function E(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function M(e){return typeof e=="string"}function q(e,t){return E(e)&&M(t)&&le.call(e,t)}var I="\xA0";function ae({str:e,idx:t,stopAtNewlines:r,stopAtRawNbsp:i}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),t<1))return null;if(e[~-t]&&(e[~-t].trim()||r&&"\n\r".includes(e[~-t])||i&&e[~-t]===I))return~-t;if(e[t-2]&&(e[t-2].trim()||r&&"\n\r".includes(e[t-2])||i&&e[t-2]===I))return t-2;for(let s=t;s--;)if(e[s]&&(e[s].trim()||r&&"\n\r".includes(e[s])||i&&e[s]===I))return s;return null}function D(e,t=0){return ae({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}function U(e){return typeof e!="string"?e:e.length?[e]:[]}var Q={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},ue=e=>e+1;function fe(e,t,r,i,s=!1,o=ue){var f;let m=typeof r=="function"?r():r;if(+t<0&&s&&m==="EOL")return m;let l=C(C({},Q),i);if(t>=e.length&&!s)return!1;let d=s?1:r.length,b=0,$=!1,y=!1,w=!1,h=l.maxMismatches,n=t,a=!1,u=!1,c=!1;function g(){return b===1&&h<l.maxMismatches-1}for(;e[n];){let p=o(n);if(l.trimBeforeMatching&&e[n].trim()===""){if(!e[p]&&s&&r==="EOL")return!0;n=o(n);continue}if(l&&!l.i&&((f=l==null?void 0:l.trimCharsBeforeMatching)!=null&&f.includes(e[n]))||l!=null&&l.i&&l.trimCharsBeforeMatching&&l.trimCharsBeforeMatching.map(A=>A.toLowerCase()).includes(e[n].toLowerCase())){if(s&&r==="EOL"&&!e[p])return!0;n=o(n);continue}let k=p>n?r[r.length-d]:r[d-1];if(!l.i&&e[n]===k||l.i&&k!==void 0&&e[n].toLowerCase()===k.toLowerCase()){if(a||(a=!0),w||(w=!0),d===r.length){if(u=!0,h!==l.maxMismatches)return!1}else d===1&&(c=!0);if(d-=1,b++,g())return!1;if(!d)return b!==r.length||h===l.maxMismatches||!$?n:!1}else if(!$&&!b&&($=!0),l.maxMismatches&&h&&n){h-=1;for(let A=0;A<=h;A++){let v=p>n?r[r.length-d+1+A]:r[d-2-A],R=e[o(n)];if(v&&(!l.i&&e[n]===v||l.i&&e[n].toLowerCase()===v.toLowerCase())&&(!l.firstMustMatch||d!==r.length)){if(b++,g())return!1;d-=2,a=!0;break}else if(R&&v&&(!l.i&&R===v||l.i&&R.toLowerCase()===v.toLowerCase())&&(!l.firstMustMatch||d!==r.length)){if(!b&&!l.hungry)return!1;d-=1,a=!0;break}else if(v===void 0&&h>=0&&a&&(!l.firstMustMatch||u)&&(!l.lastMustMatch||c))return n}a||(y=n)}else return n===0&&d===1&&!l.lastMustMatch&&w?0:!1;if(y!==!1&&y!==n&&(y=!1),d<1)return n;n=o(n)}if(d>0)return s&&m==="EOL"?!0:l&&l.maxMismatches>=d&&w?y||0:!1}function z(e,t,r,i,s){var $,y,w;if(E(s)&&q(s,"trimBeforeMatching")&&s&&typeof s.trimBeforeMatching!="boolean")throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_01] opts.trimBeforeMatching should be boolean!").concat(Array.isArray(s.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""));let o=C(C({},Q),s);if(typeof o.trimCharsBeforeMatching=="string"&&(o.trimCharsBeforeMatching=U(o.trimCharsBeforeMatching)),o.trimCharsBeforeMatching=o.trimCharsBeforeMatching.map(h=>M(h)?h:String(h)),!M(t)||!t.length)return!1;if(!Number.isInteger(r)||r<0)throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_02] the second argument should be a natural number. Currently it's of a type: ").concat(typeof r,", equal to:\n").concat(O(r,4)));let m,l;if(M(i))m=[i];else if(Array.isArray(i))m=i;else if(!i)m=i;else if(typeof i=="function")m=[],m.push(i);else throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_03] the third argument, whatToMatch, is neither string nor array of strings! It's ").concat(typeof i,", equal to:\n").concat(O(i,4)));if(s&&!E(s))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_04] the fourth argument, options object, should be a plain object. Currently it's of a type \"").concat(typeof s,'", and equal to:\n').concat(O(s,4)));let d=0,b="";if(($=o==null?void 0:o.trimCharsBeforeMatching)!=null&&$.some((h,n)=>h.length>1?(d=n,b=h,!0):!1))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_05] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ").concat(d," is longer than 1 character, ").concat(b.length," (equals to ").concat(b,"). Please split it into separate characters and put into array as separate elements."));if(!m||!Array.isArray(m)||Array.isArray(m)&&!m.length||Array.isArray(m)&&m.length===1&&M(m[0])&&!m[0].trim()){if(typeof o.cb=="function"){let n,a=r;if((e==="matchLeftIncl"||e==="matchRight")&&(a+=1),e[5]==="L")for(let f=a;f--;){let p=t[f];if((!o.trimBeforeMatching||o.trimBeforeMatching&&(p!=null&&p.trim()))&&(!((y=o.trimCharsBeforeMatching)!=null&&y.length)||p!==void 0&&!o.trimCharsBeforeMatching.includes(p))){n=f;break}}else if(e.startsWith("matchRight"))for(let f=a;f<t.length;f++){let p=t[f];if((!o.trimBeforeMatching||o.trimBeforeMatching&&p.trim())&&(!((w=o.trimCharsBeforeMatching)!=null&&w.length)||!o.trimCharsBeforeMatching.includes(p))){n=f;break}}if(n===void 0)return!1;let u=t[n],c=n+1,g="";return c&&c>0&&(g=t.slice(0,c)),e[5]==="L"||n&&n>0&&(g=t.slice(n)),o.cb(u,g,n)}let h="";throw s||(h=" More so, the whole options object, the fourth input argument, is missing!"),new Error("string-match-left-right/".concat(e,'(): [THROW_ID_06] the third argument, "whatToMatch", was given as an empty string. This means, you intend to match purely by a callback. The callback was not set though, the opts key "cb" is not set!').concat(h))}for(let h=0,n=m.length;h<n;h++){l=typeof m[h]=="function";let a=m[h],u,c,g="",f=r;e==="matchRight"?f+=1:e==="matchLeft"&&(f-=1);let p=fe(t,f,a,o,l,k=>e[5]==="L"?k-1:k+1);if(p&&l&&typeof a=="function"&&a()==="EOL")return a()&&(!o.cb||o.cb(u,g,c))?a():!1;if(Number.isInteger(p)&&(c=e.startsWith("matchLeft")?p-1:p+1,e[5]==="L"?g=t.slice(0,p):g=t.slice(c)),c<0&&(c=void 0),t[c]&&(u=t[c]),Number.isInteger(p)&&(!o.cb||o.cb(u,g,c)))return a}return!1}function J(e,t,r,i){return z("matchRightIncl",e,t,r,i)}function K(e,t,r,i){return z("matchRight",e,t,r,i)}var G="4.2.1";function S(e,t){return e[t]==="<"||e[D(e,t)]==="<"}function Z(e){return e===void 0||e.toUpperCase()===e.toLowerCase()&&!/\d/.test(e)&&e!=="="}var N={allowCustomTagNames:!1,skipOpeningBracket:!1},W="\\",T=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];var pe=G;function he(e,t=0,r){var A,v,R;if(typeof e!="string")throw new Error('is-html-tag-opening/isOpening(): [THROW_ID_01] the first input argument should have been a string but it was given as "'.concat(typeof e,'", value being ').concat(O(e,4)));if(!Number.isInteger(t)||t<0)throw new Error('is-html-tag-opening/isOpening(): [THROW_ID_02] the second input argument should have been a natural number string index but it was given as "'.concat(typeof t,'", value being ').concat(O(t,4)));let i=C(C({},N),r),s="[\\\\ \\t\\r\\n/]*",o="._a-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\uFFFF",m=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"\\w+").concat(s,"\\/?").concat(s,">"),"g"),l=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"[").concat(o,"]+[-").concat(o,"]*").concat(s,">"),"g"),d=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\w+\\s+\\w+(?:-\\w+)?\\s*=\\s*['\"\\w]"),"g"),b=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\w+\\s+[").concat(o,"]+[-").concat(o,"]*(?:-\\w+)?\\s*=\\s*['\"\\w]")),$=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\/?\\s*\\w+\\s*\\/?\\s*>"),"g"),y=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\/?\\s*[").concat(o,"]+[-").concat(o,"]*\\s*\\/?\\s*>"),"g"),w=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"\\w+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),h=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"[").concat(o,"]+[-").concat(o,"]*\\s+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),n=new RegExp("^<".concat(i.skipOpeningBracket?"?\\/?":"","(").concat(s,"[").concat(o,"]+)+").concat(s,"[\\\\/=>]"),""),a=/^\/\s*\w+s*>/,u=t?e.slice(t):e,c=D(e,t),g=!1,f=!1,p={cb:Z,i:!0,trimCharsBeforeMatching:["/",W,"!"," "," ","\n","\r"]};return i.allowCustomTagNames?((i.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[D(e,c)]==="<")||u[0]==="<"&&((A=u[1])!=null&&A.trim()))&&(n.test(u)||/^<\w+$/.test(u))||l.test(u)&&S(e,t)||b.test(u)||y.test(u)&&S(e,t)||h.test(u)||e[t]==="/"&&e[c]!=="<"&&a.test(u))&&(f=!0):(((i.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[D(e,c)]==="<")||(u[0]==="<"||u[0]==="/"&&(!e[c]||e[c]!=="<"))&&((v=u[1])!=null&&v.trim()))&&n.test(u)||m.test(u)&&S(e,t)||d.test(u)||$.test(u)&&S(e,t)||w.test(u))&&(g=!0),g&&J(e,t,T,{cb:x=>{var j;return x===void 0?((e[t]==="<"&&((j=e[t+1])!=null&&j.trim())||e[t-1]==="<")&&(f=!0),!0):x.toUpperCase()===x.toLowerCase()&&!/\d/.test(x)&&x!=="="},i:!0,trimCharsBeforeMatching:["<","/",W,"!"," "," ","\n","\r"]})&&(f=!0)),!f&&e[t]==="<"&&((R=e[t+1])!=null&&R.trim())&&K(e,t,T,p)&&(f=!0),typeof e=="string"&&t<e.length&&f}return ne(ge);})();
10
+ "use strict";var isHtmlTagOpening=(()=>{var B=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var tt=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable;var _=(t,e,r)=>e in t?B(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C=(t,e)=>{for(var r in e||(e={}))F.call(e,r)&&_(t,r,e[r]);if(V)for(var r of V(e))et.call(e,r)&&_(t,r,e[r]);return t};var rt=(t,e)=>{for(var r in e)B(t,r,{get:e[r],enumerable:!0})},nt=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of tt(e))!F.call(t,s)&&s!==r&&B(t,s,{get:()=>e[s],enumerable:!(i=X(e,s))||i.enumerable});return t};var it=t=>nt(B({},"__esModule",{value:!0}),t);var mt={};rt(mt,{defaults:()=>j,isOpening:()=>gt,version:()=>ht});function st(){let t=[],e=0,r=!1;return{append(i){return r?!1:e+i.length>1999?(t.push("\u2026"),e+=1,r=!0,!1):(t.push(i),e+=i.length,!0)},result(){return t.join("")},stopped(){return r}}}function ot(t){return"\\u".concat(t.toString(16).padStart(4,"0"))}function L(t,e){if(t.append('"')){for(let r=0;r<e.length&&!t.stopped();r+=1){let i=e.charCodeAt(r);i===34?t.append('\\"'):i===92?t.append("\\\\"):i===8?t.append("\\b"):i===9?t.append("\\t"):i===10?t.append("\\n"):i===12?t.append("\\f"):i===13?t.append("\\r"):i<32||i===8232||i===8233||i>=55296&&i<=57343?t.append(ot(i)):t.append(e[r])}t.append('"')}}function lt(t){return t.get&&t.set?"[Getter/Setter]":t.get?"[Getter]":t.set?"[Setter]":"[Accessor]"}function q(t,e){t.append("Symbol(");let r=String(e);r.length>8&&L(t,r.slice(7,-1)),t.append(")")}function P(t,e){typeof e=="symbol"?q(t,e):L(t,String(e))}function k(t,e=0){let r=st(),i=e===4?4:0,s=new WeakSet,o=0;function m(n){i&&r.append(" ".repeat(n*i))}function l(n,a){n&&r.append(","),i&&(r.append("\n"),m(a+1))}function d(n,a,u){i&&a&&(r.append("\n"),m(u)),r.append(n)}function b(n,a){Object.prototype.hasOwnProperty.call(n,"value")?h(n.value,a):r.append(lt(n))}function $(n,a){let u;try{u=Reflect.getOwnPropertyDescriptor(n,"length")}catch(f){r.append("[Uninspectable]");return}let c=u==null?void 0:u.value;if(!Number.isSafeInteger(c)||c<0){r.append("[Uninspectable]");return}r.append("[");let g=!1;for(let f=0;f<c&&!r.stopped();f+=1){if(l(g,a),g=!0,o>=50){r.append("[MaxEntries]");break}o+=1;let p;try{p=Reflect.getOwnPropertyDescriptor(n,String(f))}catch(O){r.append("[Uninspectable]");continue}p!=null&&p.enumerable?b(p,a+1):r.append("[Empty]")}d("]",g,a)}function y(n,a){let u;try{u=Reflect.ownKeys(n)}catch(g){r.append("[Uninspectable]");return}r.append("{");let c=!1;for(let g of u){if(r.stopped())break;if(o>=50){l(c,a),c=!0,L(r,"\u2026"),r.append(i?": ":":"),r.append("[MaxEntries]");break}o+=1;let f;try{f=Reflect.getOwnPropertyDescriptor(n,g)}catch(p){l(c,a),c=!0,P(r,g),r.append(i?": ":":"),r.append("[Uninspectable]");continue}f!=null&&f.enumerable&&(l(c,a),c=!0,P(r,g),r.append(i?": ":":"),b(f,a+1))}d("}",c,a)}function w(n,a){if(s.has(n)){r.append("[Circular]");return}if(a>=5){r.append("[MaxDepth]");return}let u;try{u=Array.isArray(n)}catch(c){r.append("[Uninspectable]");return}s.add(n);try{u?$(n,a):y(n,a)}finally{s.delete(n)}}function h(n,a){n===null?r.append("null"):typeof n=="string"?L(r,n):typeof n=="number"?r.append(Object.is(n,-0)?"-0":String(n)):typeof n=="boolean"?r.append(n?"true":"false"):typeof n>"u"?r.append("undefined"):typeof n=="bigint"?r.append("".concat(n,"n")):typeof n=="symbol"?q(r,n):typeof n=="function"?r.append("[Function]"):w(n,a)}try{return h(t,0),r.result()}catch(n){return"[Uninspectable]"}}var yt=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]),at=Object.prototype.hasOwnProperty;function x(t){if(t==null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null?!1:!(Symbol.iterator in t)&&!(Symbol.toStringTag in t)}function R(t){return typeof t=="string"}var H,wt=(H=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:H.get;var $t=Date.prototype.getTime;function U(t,e){return x(t)&&R(e)&&at.call(t,e)}var I="\xA0";function ut({str:t,idx:e,stopAtNewlines:r,stopAtRawNbsp:i}){if(typeof t!="string"||!t.length||((!e||typeof e!="number")&&(e=0),e<1))return null;if(t[~-e]&&(t[~-e].trim()||r&&"\n\r".includes(t[~-e])||i&&t[~-e]===I))return~-e;if(t[e-2]&&(t[e-2].trim()||r&&"\n\r".includes(t[e-2])||i&&t[e-2]===I))return e-2;for(let s=e;s--;)if(t[s]&&(t[s].trim()||r&&"\n\r".includes(t[s])||i&&t[s]===I))return s;return null}function M(t,e=0){return ut({str:t,idx:e,stopAtNewlines:!1,stopAtRawNbsp:!1})}function J(t){return typeof t!="string"?t:t.length?[t]:[]}var Q={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},ft=t=>t+1;function ct(t,e,r,i,s=!1,o=ft){var f;let m=typeof r=="function"?r():r;if(+e<0&&s&&m==="EOL")return m;let l=C(C({},Q),i);if(e>=t.length&&!s)return!1;let d=s?1:r.length,b=0,$=!1,y=!1,w=!1,h=l.maxMismatches,n=e,a=!1,u=!1,c=!1;function g(){return b===1&&h<l.maxMismatches-1}for(;t[n];){let p=o(n);if(l.trimBeforeMatching&&t[n].trim()===""){if(!t[p]&&s&&r==="EOL")return!0;n=o(n);continue}if(l&&!l.i&&((f=l==null?void 0:l.trimCharsBeforeMatching)!=null&&f.includes(t[n]))||l!=null&&l.i&&l.trimCharsBeforeMatching&&l.trimCharsBeforeMatching.map(A=>A.toLowerCase()).includes(t[n].toLowerCase())){if(s&&r==="EOL"&&!t[p])return!0;n=o(n);continue}let O=p>n?r[r.length-d]:r[d-1];if(!l.i&&t[n]===O||l.i&&O!==void 0&&t[n].toLowerCase()===O.toLowerCase()){if(a||(a=!0),w||(w=!0),d===r.length){if(u=!0,h!==l.maxMismatches)return!1}else d===1&&(c=!0);if(d-=1,b++,g())return!1;if(!d)return b!==r.length||h===l.maxMismatches||!$?n:!1}else if(!$&&!b&&($=!0),l.maxMismatches&&h&&n){h-=1;for(let A=0;A<=h;A++){let v=p>n?r[r.length-d+1+A]:r[d-2-A],D=t[o(n)];if(v&&(!l.i&&t[n]===v||l.i&&t[n].toLowerCase()===v.toLowerCase())&&(!l.firstMustMatch||d!==r.length)){if(b++,g())return!1;d-=2,a=!0;break}else if(D&&v&&(!l.i&&D===v||l.i&&D.toLowerCase()===v.toLowerCase())&&(!l.firstMustMatch||d!==r.length)){if(!b&&!l.hungry)return!1;d-=1,a=!0;break}else if(v===void 0&&h>=0&&a&&(!l.firstMustMatch||u)&&(!l.lastMustMatch||c))return n}a||(y=n)}else return n===0&&d===1&&!l.lastMustMatch&&w?0:!1;if(y!==!1&&y!==n&&(y=!1),d<1)return n;n=o(n)}if(d>0)return s&&m==="EOL"?!0:l&&l.maxMismatches>=d&&w?y||0:!1}function z(t,e,r,i,s){var $,y,w;if(x(s)&&U(s,"trimBeforeMatching")&&s&&typeof s.trimBeforeMatching!="boolean")throw new Error("string-match-left-right/".concat(t,"(): [THROW_ID_01] opts.trimBeforeMatching should be boolean!").concat(Array.isArray(s.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""));let o=C(C({},Q),s);if(typeof o.trimCharsBeforeMatching=="string"&&(o.trimCharsBeforeMatching=J(o.trimCharsBeforeMatching)),o.trimCharsBeforeMatching=o.trimCharsBeforeMatching.map(h=>R(h)?h:String(h)),!R(e)||!e.length)return!1;if(!Number.isInteger(r)||r<0)throw new Error("string-match-left-right/".concat(t,"(): [THROW_ID_02] the second argument should be a natural number. Currently it's of a type: ").concat(typeof r,", equal to:\n").concat(k(r,4)));let m,l;if(R(i))m=[i];else if(Array.isArray(i))m=i;else if(!i)m=i;else if(typeof i=="function")m=[],m.push(i);else throw new Error("string-match-left-right/".concat(t,"(): [THROW_ID_03] the third argument, whatToMatch, is neither string nor array of strings! It's ").concat(typeof i,", equal to:\n").concat(k(i,4)));if(s&&!x(s))throw new Error("string-match-left-right/".concat(t,"(): [THROW_ID_04] the fourth argument, options object, should be a plain object. Currently it's of a type \"").concat(typeof s,'", and equal to:\n').concat(k(s,4)));let d=0,b="";if(($=o==null?void 0:o.trimCharsBeforeMatching)!=null&&$.some((h,n)=>h.length>1?(d=n,b=h,!0):!1))throw new Error("string-match-left-right/".concat(t,"(): [THROW_ID_05] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ").concat(d," is longer than 1 character, ").concat(b.length," (equals to ").concat(b,"). Please split it into separate characters and put into array as separate elements."));if(!m||!Array.isArray(m)||Array.isArray(m)&&!m.length||Array.isArray(m)&&m.length===1&&R(m[0])&&!m[0].trim()){if(typeof o.cb=="function"){let n,a=r;if((t==="matchLeftIncl"||t==="matchRight")&&(a+=1),t[5]==="L")for(let f=a;f--;){let p=e[f];if((!o.trimBeforeMatching||o.trimBeforeMatching&&(p!=null&&p.trim()))&&(!((y=o.trimCharsBeforeMatching)!=null&&y.length)||p!==void 0&&!o.trimCharsBeforeMatching.includes(p))){n=f;break}}else if(t.startsWith("matchRight"))for(let f=a;f<e.length;f++){let p=e[f];if((!o.trimBeforeMatching||o.trimBeforeMatching&&p.trim())&&(!((w=o.trimCharsBeforeMatching)!=null&&w.length)||!o.trimCharsBeforeMatching.includes(p))){n=f;break}}if(n===void 0)return!1;let u=e[n],c=n+1,g="";return c&&c>0&&(g=e.slice(0,c)),t[5]==="L"||n&&n>0&&(g=e.slice(n)),o.cb(u,g,n)}let h="";throw s||(h=" More so, the whole options object, the fourth input argument, is missing!"),new Error("string-match-left-right/".concat(t,'(): [THROW_ID_06] the third argument, "whatToMatch", was given as an empty string. This means, you intend to match purely by a callback. The callback was not set though, the opts key "cb" is not set!').concat(h))}for(let h=0,n=m.length;h<n;h++){l=typeof m[h]=="function";let a=m[h],u,c,g="",f=r;t==="matchRight"?f+=1:t==="matchLeft"&&(f-=1);let p=ct(e,f,a,o,l,O=>t[5]==="L"?O-1:O+1);if(p&&l&&typeof a=="function"&&a()==="EOL")return a()&&(!o.cb||o.cb(u,g,c))?a():!1;if(Number.isInteger(p)&&(c=t.startsWith("matchLeft")?p-1:p+1,t[5]==="L"?g=e.slice(0,p):g=e.slice(c)),c<0&&(c=void 0),e[c]&&(u=e[c]),Number.isInteger(p)&&(!o.cb||o.cb(u,g,c)))return a}return!1}function K(t,e,r,i){return z("matchRightIncl",t,e,r,i)}function G(t,e,r,i){return z("matchRight",t,e,r,i)}var Z="4.2.2";function S(t,e){return t[e]==="<"||t[M(t,e)]==="<"}function Y(t){return t===void 0||t.toUpperCase()===t.toLowerCase()&&!/\d/.test(t)&&t!=="="}var j={allowCustomTagNames:!1,skipOpeningBracket:!1},N="\\",T=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];var ht=Z;function gt(t,e=0,r){var A,v,D;if(typeof t!="string")throw new Error('is-html-tag-opening/isOpening(): [THROW_ID_01] the first input argument should have been a string but it was given as "'.concat(typeof t,'", value being ').concat(k(t,4)));if(!Number.isInteger(e)||e<0)throw new Error('is-html-tag-opening/isOpening(): [THROW_ID_02] the second input argument should have been a natural number string index but it was given as "'.concat(typeof e,'", value being ').concat(k(e,4)));let i=C(C({},j),r),s="[\\\\ \\t\\r\\n/]*",o="._a-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\uFFFF",m=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"\\w+").concat(s,"\\/?").concat(s,">"),"g"),l=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"[").concat(o,"]+[-").concat(o,"]*").concat(s,">"),"g"),d=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\w+\\s+\\w+(?:-\\w+)?\\s*=\\s*['\"\\w]"),"g"),b=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\w+\\s+[").concat(o,"]+[-").concat(o,"]*(?:-\\w+)?\\s*=\\s*['\"\\w]")),$=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\/?\\s*\\w+\\s*\\/?\\s*>"),"g"),y=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\/?\\s*[").concat(o,"]+[-").concat(o,"]*\\s*\\/?\\s*>"),"g"),w=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"\\w+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),h=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"[").concat(o,"]+[-").concat(o,"]*\\s+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),n=new RegExp("^<".concat(i.skipOpeningBracket?"?\\/?":"","(").concat(s,"[").concat(o,"]+)+").concat(s,"[\\\\/=>]"),""),a=/^\/\s*\w+s*>/,u=e?t.slice(e):t,c=M(t,e),g=!1,f=!1,p={cb:Y,i:!0,trimCharsBeforeMatching:["/",N,"!"," "," ","\n","\r"]};return i.allowCustomTagNames?((i.skipOpeningBracket&&(t[e-1]==="<"||t[e-1]==="/"&&t[M(t,c)]==="<")||u[0]==="<"&&((A=u[1])!=null&&A.trim()))&&(n.test(u)||/^<\w+$/.test(u))||l.test(u)&&S(t,e)||b.test(u)||y.test(u)&&S(t,e)||h.test(u)||t[e]==="/"&&t[c]!=="<"&&a.test(u))&&(f=!0):(((i.skipOpeningBracket&&(t[e-1]==="<"||t[e-1]==="/"&&t[M(t,c)]==="<")||(u[0]==="<"||u[0]==="/"&&(!t[c]||t[c]!=="<"))&&((v=u[1])!=null&&v.trim()))&&n.test(u)||m.test(u)&&S(t,e)||d.test(u)||$.test(u)&&S(t,e)||w.test(u))&&(g=!0),g&&K(t,e,T,{cb:E=>{var W;return E===void 0?((t[e]==="<"&&((W=t[e+1])!=null&&W.trim())||t[e-1]==="<")&&(f=!0),!0):E.toUpperCase()===E.toLowerCase()&&!/\d/.test(E)&&E!=="="},i:!0,trimCharsBeforeMatching:["<","/",N,"!"," "," ","\n","\r"]})&&(f=!0)),!f&&t[e]==="<"&&((D=t[e+1])!=null&&D.trim())&&G(t,e,T,p)&&(f=!0),typeof t=="string"&&e<t.length&&f}return it(mt);})();
11
11
  /**
12
12
  * @name codsen-utils
13
13
  * @fileoverview Various utility functions
14
- * @version 1.8.0
14
+ * @version 1.9.0
15
15
  * @author Roy Revelt
16
16
  * @license MIT
17
17
  * {@link https://codsen.com/os/codsen-utils/}
@@ -19,7 +19,7 @@
19
19
  /**
20
20
  * @name string-left-right
21
21
  * @fileoverview Looks up the first non-whitespace character to the left/right of a given index
22
- * @version 6.2.0
22
+ * @version 6.2.1
23
23
  * @author Roy Revelt
24
24
  * @license MIT
25
25
  * {@link https://codsen.com/os/string-left-right/}
@@ -35,7 +35,7 @@
35
35
  /**
36
36
  * @name string-match-left-right
37
37
  * @fileoverview Match substrings on the left or right of a given index, ignoring whitespace
38
- * @version 9.2.1
38
+ * @version 9.2.2
39
39
  * @author Roy Revelt
40
40
  * @license MIT
41
41
  * {@link https://codsen.com/os/string-match-left-right/}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-html-tag-opening",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Does an HTML tag start at given position?",
5
5
  "keywords": [
6
6
  "bracket",
@@ -69,12 +69,12 @@
69
69
  }
70
70
  },
71
71
  "dependencies": {
72
- "codsen-utils": "^1.8.0",
73
- "string-left-right": "^6.2.0",
74
- "string-match-left-right": "^9.2.1"
72
+ "codsen-utils": "^1.9.0",
73
+ "string-left-right": "^6.2.1",
74
+ "string-match-left-right": "^9.2.2"
75
75
  },
76
76
  "devDependencies": {
77
- "test-mixer": "^4.3.0"
77
+ "test-mixer": "^4.3.1"
78
78
  },
79
79
  "engines": {
80
80
  "node": ">=18.20.8"