"use strict";(globalThis.webpackChunk_affine_web=globalThis.webpackChunk_affine_web||[]).push([[9465],{23567:(n,u,e)=>{e.d(u,{w:()=>f});var i=e(70133),o=e(27963),t=e(28414),r=e(8470),l=e(21525),s=e(8496),c=e(76641),a=(0,l.L)(function(n){return function(u){void 0===u&&(u=null),n(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=u}});function f(n,u){var e=(0,o.v)(n)?{first:n}:"number"==typeof n?{each:n}:n,l=e.first,a=e.each,f=e.with,h=void 0===f?b:f,d=e.scheduler,v=void 0===d?null!=u?u:i.E:d,w=e.meta,m=void 0===w?null:w;if(null==l&&null==a)throw TypeError("No timeout provided.");return(0,t.N)(function(n,u){var e,i,o=null,t=0,f=function(n){i=(0,c.N)(u,v,function(){try{e.unsubscribe(),(0,r.Tg)(h({meta:m,lastValue:o,seen:t})).subscribe(u)}catch(n){u.error(n)}},n)};e=n.subscribe((0,s._)(u,function(n){null==i||i.unsubscribe(),t++,u.next(o=n),a>0&&f(a)},void 0,void 0,function(){(null==i?void 0:i.closed)||null==i||i.unsubscribe(),o=null})),t||f(null!=l?"number"==typeof l?l:+l-v.now():a)})}function b(n){throw new a(n)}}}]); //# sourceMappingURL=chunk.npm-async-rxjs.4bbe69b2.js.map