"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return e}});const e=e=>{if(!e||"object"!=typeof e&&"function"!=typeof e||"[object RegExp]"!==Object.prototype.toString.call(e))throw TypeError("`regex` must be a RegExp");return t=>null!==RegExp.prototype.exec.call(e,t)}; ((typeof exports.default === 'object' && exports.default !== null) || typeof exports.default === 'function') && (Object.assign(exports.default,exports), module.exports = exports.default);