import{__exports as r}from"../../../_virtual/esnext.iterator.chunks.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/an-object.mjs";import{__require as i}from"../internals/function-call.mjs";import{__require as n}from"../internals/iterator-create-proxy.mjs";import{__require as o}from"../internals/get-iterator-direct.mjs";import{__require as s}from"../internals/iterator-close.mjs";import{__require as a}from"../internals/function-uncurry-this.mjs";var u;function m(){if(u)return r;u=1;var m=e(),f=t(),_=i(),c=n(),h=o(),l=s(),p=a(),j=RangeError,q=p([].push),v=c(function(){for(var r,e=this.iterator,t=this.next,i=this.chunkSize,n=[];;){if(!!(r=f(_(t,e))).done)return n.length?n:void(this.done=!0);if(q(n,r.value),n.length===i)return n}});return m({target:"Iterator",proto:!0,real:!0,forced:!0},{chunks:function(r){var e=f(this);return"number"==typeof r&&r&&r>>>0===r?new v(h(e),{chunkSize:r}):l(e,"throw",new j("chunkSize must be integer in [1, 2^32-1]"))}}),r}export{m as __require};