| 102 | ;return t.splice(0,n),Object.assign(t,s)}}class r{constructor(){ |
| 103 | this.rules=[],this.multiRegexes=[], |
| 104 | this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){ |
| 105 | if(this.multiRegexes[e])return this.multiRegexes[e];const t=new s |
| 106 | ;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))), |
| 107 | t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){ |
| 108 | return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){ |
| 109 | this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){ |
| 110 | const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex |