/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/ts-regexp@0.2.1/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let p of __getOwnPropNames(t))__hasOwnProp.call(e,p)||p===r||__defProp(e,p,{get:()=>t[p],enumerable:!(o=__getOwnPropDesc(t,p))||o.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),index_exports={};__export(index_exports,{typedRegExp:()=>typedRegExp}),module.exports=__toCommonJS(index_exports);var ternary=e=>(t,r)=>e?t:r,getPrototypeOf=e=>Object.getPrototypeOf(e),getOwnPropertyNames=e=>Object.getOwnPropertyNames(e),toPOJO=e=>Object.fromEntries(getOwnPropertyNames(getPrototypeOf(e)).map((t=>{const r=e[t];return[t,"function"==typeof r?r.bind(e):r]}))),strIncludes=(e,t)=>e.includes(t),typedRegExp=(e,t)=>{const r=new RegExp(e,t),o=strIncludes(t??"","g"),p=(...e)=>{const[t,...o]=e;return t.replaceAll(r,...o)};var n;return{regExp:r,...toPOJO(r),matchIn:e=>e.match(r),replaceIn:(...e)=>{const[t,...o]=e;return t.replace(r,...o)},searchIn:(e,...t)=>e.search(r,...t),splitIn:(e,...t)=>e.split(r,...t),...(n=o,ternary(n)({matchAllIn:e=>e.matchAll(r),replaceAllIn:p},{}))}};
//# sourceMappingURL=/sm/427526e7a4ed4008114cdc4be363b0a870ce9e2fa83ae54a22ab5d05db4da20d.map