import{__exports as r}from"../../../_virtual/es.string.split.mjs";import{__require as e}from"../internals/function-call.mjs";import{__require as t}from"../internals/function-uncurry-this.mjs";import{__require as i}from"../internals/fix-regexp-well-known-symbol-logic.mjs";import{__require as n}from"../internals/an-object.mjs";import{__require as s}from"../internals/is-object.mjs";import{__require as o}from"../internals/require-object-coercible.mjs";import{__require as a}from"../internals/species-constructor.mjs";import{__require as l}from"../internals/advance-string-index.mjs";import{__require as u}from"../internals/to-length.mjs";import{__require as m}from"../internals/to-string.mjs";import{__require as f}from"../internals/get-method.mjs";import{__require as p}from"../internals/regexp-exec-abstract.mjs";import{__require as _}from"../internals/regexp-sticky-helpers.mjs";import{__require as c}from"../internals/fails.mjs";var g;function h(){if(g)return r;g=1;var h=e(),v=t(),j=i(),q=n(),b=s(),x=o(),d=a(),y=l(),w=u(),k=m(),E=f(),I=p(),P=_(),R=c(),U=P.UNSUPPORTED_Y,C=Math.min,D=v([].push),M=v("".slice),N=!R(function(){var r=/(?:)/,e=r.exec;r.exec=function(){return e.apply(this,arguments)};var t="ab".split(r);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}),O="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;return j("split",function(r,e,t){var i="0".split(void 0,0).length?function(r,t){return void 0===r&&0===t?[]:h(e,this,r,t)}:e;return[function(e,t){var n=x(this),s=b(e)?E(e,r):void 0;return s?h(s,e,n,t):h(i,k(n),e,t)},function(r,n){var s=q(this),o=k(r);if(!O){var a=t(i,s,o,n,i!==e);if(a.done)return a.value}var l=d(s,RegExp),u=s.unicode,m=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(U?"g":"y"),f=new l(U?"^(?:"+s.source+")":s,m),p=void 0===n?4294967295:n>>>0;if(0===p)return[];if(0===o.length)return null===I(f,o)?[o]:[];for(var _=0,c=0,g=[];c<o.length;){f.lastIndex=U?0:c;var h,v=I(f,U?M(o,c):o);if(null===v||(h=C(w(f.lastIndex+(U?c:0)),o.length))===_)c=y(o,c,u);else{if(D(g,M(o,_,c)),g.length===p)return g;for(var j=1;j<=v.length-1;j++)if(D(g,v[j]),g.length===p)return g;c=_=h}}return D(g,M(o,_)),g}]},O||!N,U),r}export{h as __require};