import{__exports as r}from"../../../_virtual/es.iterator.take.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/function-call.mjs";import{__require as i}from"../internals/an-object.mjs";import{__require as o}from"../internals/get-iterator-direct.mjs";import{__require as a}from"../internals/not-a-nan.mjs";import{__require as n}from"../internals/to-positive-integer.mjs";import{__require as s}from"../internals/iterator-create-proxy.mjs";import{__require as m}from"../internals/iterator-close.mjs";import{__require as _}from"../internals/iterator-helper-without-closing-on-early-error.mjs";import{__require as u}from"../internals/is-pure.mjs";var l;function p(){if(l)return r;l=1;var p=e(),f=t(),c=i(),h=o(),j=a(),q=n(),v=s(),d=m(),g=_(),x=u(),k=!x&&g("take",RangeError),w=v(function(){var r=this.iterator;if(!this.remaining--)return this.done=!0,d(r,"normal",void 0);var e=c(f(this.next,r));return(this.done=!!e.done)?void 0:e.value});return p({target:"Iterator",proto:!0,real:!0,forced:x||k},{take:function(r){var e;c(this);try{e=q(j(+r))}catch(r){d(this,"throw",r)}return k?f(k,this,e):new w(h(this),{remaining:e})}}),r}export{p as __require};