import{__exports as r}from"../../../_virtual/es.string.substr.mjs";import{__require as t}from"../internals/export.mjs";import{__require as i}from"../internals/function-uncurry-this.mjs";import{__require as e}from"../internals/require-object-coercible.mjs";import{__require as s}from"../internals/to-integer-or-infinity.mjs";import{__require as n}from"../internals/to-string.mjs";var o;function a(){if(o)return r;o=1;var a=t(),m=i(),u=e(),_=s(),f=n(),p=m("".slice),c=Math.max,l=Math.min;return a({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(r,t){var i,e,s=f(u(this)),n=s.length,o=_(r);return o===1/0&&(o=0),o<0&&(o=c(n+o,0)),(i=void 0===t?n:_(t))<=0||i===1/0||o>=(e=l(o+i,n))?"":p(s,o,e)}}),r}export{a as __require};