import{__exports as r}from"../../../_virtual/esnext.async-iterator.filter.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/function-call.mjs";import{__require as i}from"../internals/a-callable.mjs";import{__require as n}from"../internals/an-object.mjs";import{__require as o}from"../internals/is-object.mjs";import{__require as a}from"../internals/get-iterator-direct.mjs";import{__require as s}from"../internals/async-iterator-create-proxy.mjs";import{__require as c}from"../internals/create-iter-result-object.mjs";import{__require as m}from"../internals/async-iterator-close.mjs";var u;function f(){if(u)return r;u=1;var f=e(),l=t(),_=i(),p=n(),j=o(),v=a(),q=s(),d=c(),h=m(),y=q(function(r){var e=this,t=e.iterator,i=e.predicate;return new r(function(n,o){var a=function(r){e.done=!0,o(r)},s=function(r){h(t,a,r,a)},c=function(){try{r.resolve(p(l(e.next,t))).then(function(t){try{if(p(t).done)e.done=!0,n(d(void 0,!0));else{var o=t.value;try{var m=i(o,e.counter++),u=function(r){r?n(d(o,!1)):c()};j(m)?r.resolve(m).then(u,s):u(m)}catch(r){s(r)}}}catch(r){a(r)}},a)}catch(r){a(r)}};c()})});return f({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{filter:function(r){return p(this),_(r),new y(v(this),{predicate:r})}}),r}export{f as __require};