text: !function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="regex101/static/",t(t.s="qQRw")}({qQRw:function(e,r,t){"use strict";t.r(r);var n=["out of stack space","too much recursion","maximum call stack size exceeded"];function o(e){if(null!=e.message){var r=e.message.toLowerCase().trim().replace(/\s+/g," ").replace(/[^a-z ]/i,"");if(n.includes(r))return"JAVA_STACK_ERROR"}return e.message||"Unknown internal Java matcher error"}function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(n=(c=i.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(u){o=!0,a=u}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return t}}(e,r)||i(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,r){if(e){if("string"===typeof e)return u(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,r):void 0}}function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var s,l=function(e){for(var r={},t=0;t<e.length;t++)for(var n=e[t],o=0;o<n.length;o++){var i=n[o],u=c(f(i),2),s=u[0],l=u[1];if(s===l)r[s]=[].concat(a(r[s]||[]),[i]);else for(var m=s;m<l;m++)r[m]=[].concat(a(r[m]||[]),[i])}return r},f=function(e){return[Math.min(e.start,e.end),Math.max(e.start,e.end)]};null==(s=self).performance&&(s.performance={}),null==s.performance.now&&(s.performance.now=function(){return Date.now()}),importScripts("regex101/static/java8.js"),main(),self.onmessage=function(e){try{const t=performance.now(),{regex:n,testString:a,flags:c}=e.data,[i,u]=self.javaMatches(n,a,function(e){for(var r=0,t=0;t<e.length;t++){var n=e.charAt(t);switch(n){case"g":continue;case"m":r|=8;break;case"i":r|=2;break;case"s":r|=32;break;case"x":r|=4;break;case"d":r|=1;break;case"u":r|=64;break;case"U":r|=256;break;default:throw new Error("Unknown java flag ".concat(n))}}return r}(c),c.includes("g"));if(null!=u){const[[[,e,,r]]]=u;return void self.postMessage({error:e+" near index "+r})}const s=[];for(let e=0;e<i.length;e++){const r=i[e];if(null==r)break;const t=r.map(r=>{const[t,n,o]=r,a=t||"",c=parseInt(n,10);return{content:a,groupNum:parseInt(o,10),start:c,end:c+a.length,isParticipating:null!=t,match:e}});s.push(t)}self.postMessage({matchResult:s,matchMap:l(s),time:performance.now()-t})}catch(r){self.postMessage({error:o(r)})}},self.postMessage("onload")}});