import{__exports as r}from"../../../_virtual/es.array.with.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/length-of-array-like.mjs";import{__require as i}from"../internals/to-integer-or-infinity.mjs";import{__require as n}from"../internals/to-indexed-object.mjs";import{__require as o}from"../internals/create-property.mjs";var a;function s(){if(a)return r;a=1;var s=e(),m=t(),f=i(),u=n(),_=o(),p=Array,c=RangeError;return s({target:"Array",proto:!0,forced:function(){try{[].with({valueOf:function(){throw 4}},null)}catch(r){return 4!==r}}()},{with:function(r,e){var t=u(this),i=m(t),n=f(r),o=n<0?i+n:n;if(o>=i||o<0)throw new c("Incorrect index");for(var a=new p(i),s=0;s<i;s++)_(a,s,s===o?e:t[s]);return a}}),r}export{s as __require};