import{__exports as r}from"../../../_virtual/es.string.search.mjs";import{__require as e}from"../internals/function-call.mjs";import{__require as t}from"../internals/fix-regexp-well-known-symbol-logic.mjs";import{__require as i}from"../internals/an-object.mjs";import{__require as n}from"../internals/is-object.mjs";import{__require as s}from"../internals/require-object-coercible.mjs";import{__require as a}from"../internals/same-value.mjs";import{__require as o}from"../internals/to-string.mjs";import{__require as m}from"../internals/get-method.mjs";import{__require as u}from"../internals/regexp-exec-abstract.mjs";var l;function _(){if(l)return r;l=1;var _=e(),f=t(),c=i(),p=n(),j=s(),x=a(),q=o(),v=m(),d=u();return f("search",function(r,e,t){return[function(e){var t=j(this),i=p(e)?v(e,r):void 0;return i?_(i,e,t):new RegExp(e)[r](q(t))},function(r){var i=c(this),n=q(r),s=t(e,i,n);if(s.done)return s.value;var a=i.lastIndex;x(a,0)||(i.lastIndex=0);var o=d(i,n);return x(i.lastIndex,a)||(i.lastIndex=a),null===o?-1:o.index}]}),r}export{_ as __require};