import{__exports as r}from"../../../_virtual/es.iterator.drop.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 n}from"../internals/not-a-nan.mjs";import{__require as a}from"../internals/to-positive-integer.mjs";import{__require as s}from"../internals/iterator-close.mjs";import{__require as m}from"../internals/iterator-create-proxy.mjs";import{__require as _}from"../internals/iterator-helper-throws-on-invalid-iterator.mjs";import{__require as p}from"../internals/iterator-helper-without-closing-on-early-error.mjs";import{__require as u}from"../internals/is-pure.mjs";var l;function f(){if(l)return r;l=1;var f=e(),h=t(),c=i(),j=o(),q=n(),d=a(),g=s(),v=m(),x=_(),w=p(),y=u(),b=!y&&!x("drop",0),E=!y&&!b&&w("drop",RangeError),I=y||b||E,R=v(function(){for(var r,e=this.iterator,t=this.next;this.remaining;)if(this.remaining--,r=c(h(t,e)),this.done=!!r.done)return;if(r=c(h(t,e)),!(this.done=!!r.done))return r.value});return f({target:"Iterator",proto:!0,real:!0,forced:I},{drop:function(r){var e;c(this);try{e=d(q(+r))}catch(r){g(this,"throw",r)}return E?h(E,this,e):new R(j(this),{remaining:e})}}),r}export{f as __require};