import{__exports as r}from"../../../_virtual/es.array-buffer.slice.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/function-uncurry-this-clause.mjs";import{__require as i}from"../internals/fails.mjs";import{__require as n}from"../internals/array-buffer.mjs";import{__require as s}from"../internals/an-object.mjs";import{__require as o}from"../internals/to-absolute-index.mjs";import{__require as a}from"../internals/to-length.mjs";var u;function f(){if(u)return r;u=1;var f=e(),m=t(),_=i(),l=n(),p=s(),c=o(),j=a(),y=l.ArrayBuffer,q=l.DataView,h=q.prototype,v=m(y.prototype.slice),b=m(h.getUint8),d=m(h.setUint8);return f({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:_(function(){return!new y(2).slice(1,void 0).byteLength})},{slice:function(r,e){if(v&&void 0===e)return v(p(this),r);for(var t=p(this).byteLength,i=c(r,t),n=c(void 0===e?t:e,t),s=new y(j(n-i)),o=new q(this),a=new q(s),u=0;i<n;)d(a,u++,b(o,i++));return s}}),r}export{f as __require};