import{__require as r}from"./function-call.mjs";import{__require as t}from"./an-object.mjs";import{__require as e}from"./object-create.mjs";import{__require as o}from"./get-method.mjs";import{__require as i}from"./define-built-ins.mjs";import{__require as n}from"./internal-state.mjs";import{__require as a}from"./iterator-close.mjs";import{__require as m}from"./get-built-in.mjs";import{__require as s}from"./async-iterator-prototype.mjs";import{__require as u}from"./create-iter-result-object.mjs";var f,c;function _(){if(c)return f;c=1;var _=r(),p=t(),j=e(),v=o(),q=i(),l=n(),h=a(),y=m(),b=s(),d=u(),g=y("Promise"),w="AsyncFromSyncIterator",x=l.set,F=l.getterFor(w),A=function(r,t,e,o,i){var n=r.done;g.resolve(r.value).then(function(r){t(d(r,n))},function(r){if(!n&&i)try{h(o,"throw",r)}catch(t){r=t}e(r)})},I=function(r){r.type=w,x(this,r)};return I.prototype=q(j(b),{next:function(){var r=F(this);return new g(function(t,e){var o=p(_(r.next,r.iterator));A(o,t,e,r.iterator,!0)})},return:function(){var r=F(this).iterator;return new g(function(t,e){var o=v(r,"return");if(void 0===o)return t(d(void 0,!0));var i=p(_(o,r));A(i,t,e,r)})}}),f=I}export{_ as __require};