| 125 | function n(n,t){ |
| 126 | return RegExp(c(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(t?"g":"")) |
| 127 | }class t{constructor(){ |
| 128 | this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0} |
| 129 | addRule(e,n){ |
| 130 | n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]), |
| 131 | this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null) |
| 132 | ;const e=this.regexes.map((e=>e[1]));this.matcherRe=n(h(e,{joinWith:"|" |
| 133 | }),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex |
| 134 | ;const n=this.matcherRe.exec(e);if(!n)return null |
| 135 | ;const t=n.findIndex(((e,n)=>n>0&&void 0!==e)),a=this.matchIndexes[t] |
| 136 | ;return n.splice(0,t),Object.assign(n,a)}}class i{constructor(){ |
| 137 | this.rules=[],this.multiRegexes=[], |
| 138 | this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){ |
| 139 | if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t |
nothing calls this directly
no outgoing calls
no test coverage detected