import{__require as r}from"./array-slice.mjs";var e,t;function a(){if(t)return e;t=1;var a=r(),n=Math.floor,o=function(r,e){var t=r.length;if(t<8)for(var f,i,u=1;u<t;){for(i=u,f=r[u];i&&e(r[i-1],f)>0;)r[i]=r[--i];i!==u++&&(r[i]=f)}else for(var l=n(t/2),s=o(a(r,0,l),e),v=o(a(r,l),e),h=s.length,_=v.length,c=0,g=0;c<h||g<_;)r[c+g]=c<h&&g<_?e(s[c],v[g])<=0?s[c++]:v[g++]:c<h?s[c++]:v[g++];return r};return e=o}export{a as __require};