import{X as C,Y as A,$ as y,a0 as d,a1 as h,a2 as k,a3 as D,a4 as L,a5 as N,a6 as P,a7 as B,a8 as S,a9 as H,aa as K,ab as w,ac as Q,ad as G,ae as J,af as O,ag as Y,ah as X,ai as W,aj as V}from"./index-c4efa424.js";import{al as Ue,aq as De,am as Pe,an as Be,ar as He,as as Ke,ay as Qe,ax as Ge,az as Je,aA as Ye,at as Xe,ap as $e,au as Ze,av as _e,aB as ea,aC as aa,aD as ta,aE as na,ak as ra,ao as ia,aF as sa,aw as ua,aG as oa,aH as ca,aI as la,aJ as fa,aK as ma,aL as da,aM as ha}from"./index-c4efa424.js";import{A as $,a as Z,c as _,n as ee}from"./zipWith-5d0f62ae.js";import{d as pa,C as ga,e as Aa,N as ba,b as ya,S as wa,T as Fa,j as Ia,k as xa,l as Ea,m as qa,p as Ta,q as Sa,s as ka,u as Oa,v as Wa,f as Ma,w as Ca,x as La,y as Na,B as Va,D as ja,E as za,F as Ra,G as Ua,H as Da,I as Pa,J as Ba,K as Ha,L as Ka,M as Qa,O as Ga,P as Ja,Q as Ya,R as Xa,U as $a,V as Za,W as _a,X as et,Y as at,Z as tt,a4 as nt,_ as rt,$ as it,i as st,a0 as ut,a1 as ot,a2 as ct,a3 as lt,a5 as ft,a6 as mt,a7 as dt,a8 as ht,a9 as vt,o as pt,g as gt,aa as At,ab as bt,ac as yt,ad as wt,ae as Ft,af as It,r as xt,ag as Et,ah as qt,am as Tt,ai as St,aj as kt,ak as Ot,al as Wt,an as Mt,ao as Ct,ap as Lt,aq as Nt,ar as Vt,as as jt,at as zt,au as Rt,av as Ut,aw as Dt,ax as Pt,ay as Bt,az as Ht,aA as Kt,aB as Qt,aC as Gt,t as Jt,aD as Yt,aE as Xt,aF as $t,aG as Zt,h as _t,aH as en,aI as an,aJ as tn,aK as nn,aL as rn,aM as sn,aN as un,z as on,aO as cn,aP as ln}from"./zipWith-5d0f62ae.js";import{A as x,a as E}from"./skip-3c1bbf36.js";import{S as mn,b as dn,c as hn,d as vn,s as pn}from"./skip-3c1bbf36.js";import{m as An}from"./merge-57d5c3ce.js";var j={now:function(){return(j.delegate||performance).now()},delegate:void 0},p={schedule:function(n){var t=requestAnimationFrame,e=cancelAnimationFrame,r=p.delegate;r&&(t=r.requestAnimationFrame,e=r.cancelAnimationFrame);var a=t(function(i){e=void 0,n(i)});return new C(function(){return e==null?void 0:e(a)})},requestAnimationFrame:function(){for(var n=[],t=0;t0?n.prototype.requestAsyncId.call(this,e,r,a):(e.actions.push(this),e._scheduled||(e._scheduled=F.setImmediate(e.flush.bind(e,void 0))))},t.prototype.recycleAsyncId=function(e,r,a){var i;if(a===void 0&&(a=0),a!=null?a>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,e,r,a);var s=e.actions;r!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r&&(F.clearImmediate(r),e._scheduled=void 0)},t}(x),se=function(n){h(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var a=this.actions,i;e=e||a.shift();do if(i=e.execute(e.state,e.delay))break;while((e=a[0])&&e.id===r&&a.shift());if(this._active=!1,i){for(;(e=a[0])&&e.id===r&&a.shift();)e.unsubscribe();throw i}},t}(E),ue=new se(ie),we=ue,oe=function(n){h(t,n);function t(e,r){var a=n.call(this,e,r)||this;return a.scheduler=e,a.work=r,a}return t.prototype.schedule=function(e,r){return r===void 0&&(r=0),r>0?n.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},t.prototype.execute=function(e,r){return r>0||this.closed?n.prototype.execute.call(this,e,r):this._execute(e,r)},t.prototype.requestAsyncId=function(e,r,a){return a===void 0&&(a=0),a!=null&&a>0||a==null&&this.delay>0?n.prototype.requestAsyncId.call(this,e,r,a):(e.flush(this),0)},t}(x),ce=function(n){h(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t}(E),le=new ce(oe),Fe=le,fe=function(n){h(t,n);function t(e,r){var a=n.call(this,e,r)||this;return a.scheduler=e,a.work=r,a}return t.prototype.requestAsyncId=function(e,r,a){return a===void 0&&(a=0),a!==null&&a>0?n.prototype.requestAsyncId.call(this,e,r,a):(e.actions.push(this),e._scheduled||(e._scheduled=p.requestAnimationFrame(function(){return e.flush(void 0)})))},t.prototype.recycleAsyncId=function(e,r,a){var i;if(a===void 0&&(a=0),a!=null?a>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,e,r,a);var s=e.actions;r!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r&&(p.cancelAnimationFrame(r),e._scheduled=void 0)},t}(x),me=function(n){h(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var a=this.actions,i;e=e||a.shift();do if(i=e.execute(e.state,e.delay))break;while((e=a[0])&&e.id===r&&a.shift());if(this._active=!1,i){for(;(e=a[0])&&e.id===r&&a.shift();)e.unsubscribe();throw i}},t}(E),de=new me(fe),Ie=de,xe=function(n){h(t,n);function t(e,r){e===void 0&&(e=he),r===void 0&&(r=1/0);var a=n.call(this,e,function(){return a.frame})||this;return a.maxFrames=r,a.frame=0,a.index=-1,a}return t.prototype.flush=function(){for(var e=this,r=e.actions,a=e.maxFrames,i,s;(s=r[0])&&s.delay<=a&&(r.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=r.shift();)s.unsubscribe();throw i}},t.frameTimeFactor=10,t}(E),he=function(n){h(t,n);function t(e,r,a){a===void 0&&(a=e.index+=1);var i=n.call(this,e,r)||this;return i.scheduler=e,i.work=r,i.index=a,i.active=!0,i.index=e.index=a,i}return t.prototype.schedule=function(e,r){if(r===void 0&&(r=0),Number.isFinite(r)){if(!this.id)return n.prototype.schedule.call(this,e,r);this.active=!1;var a=new t(this.scheduler,this.work);return this.add(a),a.schedule(e,r)}else return C.EMPTY},t.prototype.requestAsyncId=function(e,r,a){a===void 0&&(a=0),this.delay=e.frame+a;var i=e.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,r,a){},t.prototype._execute=function(e,r){if(this.active===!0)return n.prototype._execute.call(this,e,r)},t.sortActions=function(e,r){return e.delay===r.delay?e.index===r.index?0:e.index>r.index?1:-1:e.delay>r.delay?1:-1},t}(x);function Ee(n){return!!n&&(n instanceof d||k(n.lift)&&k(n.subscribe))}function qe(n,t){var e=typeof t=="object";return new Promise(function(r,a){var i=!1,s;n.subscribe({next:function(u){s=u,i=!0},error:a,complete:function(){i?r(s):e?r(t.defaultValue):a(new D)}})})}function I(n,t,e,r){if(e)if(L(e))r=e;else return function(){for(var a=[],i=0;i