scaffoldly
Version:
Toolchain and libraries for Scaffoldly
4 lines • 4.91 MB
JavaScript
#!/usr/bin/env node
"use strict";var f8=Object.create;var el=Object.defineProperty;var m8=Object.getOwnPropertyDescriptor;var h8=Object.getOwnPropertyNames;var g8=Object.getPrototypeOf,v8=Object.prototype.hasOwnProperty;var c=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bt=(e,t)=>{for(var r in t)el(e,r,{get:t[r],enumerable:!0})},iE=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of h8(t))!v8.call(e,o)&&o!==r&&el(e,o,{get:()=>t[o],enumerable:!(n=m8(t,o))||n.enumerable});return e};var X=(e,t,r)=>(r=e!=null?f8(g8(e)):{},iE(t||!e||!e.__esModule?el(r,"default",{value:e,enumerable:!0}):r,e)),x8=e=>iE(el({},"__esModule",{value:!0}),e);var ee=h(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.isFunction=void 0;function y8(e){return typeof e=="function"}nl.isFunction=y8});var xn=h(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.createErrorClass=void 0;function b8(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}ol.createErrorClass=b8});var pg=h(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.UnsubscriptionError=void 0;var _8=xn();il.UnsubscriptionError=_8.createErrorClass(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=r}})});var Nr=h(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.arrRemove=void 0;function w8(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}sl.arrRemove=w8});var ut=h(Xe=>{"use strict";var aE=Xe&&Xe.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},cE=Xe&&Xe.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},uE=Xe&&Xe.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.isSubscription=Xe.EMPTY_SUBSCRIPTION=Xe.Subscription=void 0;var Ia=ee(),dg=pg(),lE=Nr(),fg=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=aE(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(x){t={error:x}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var p=this.initialTeardown;if(Ia.isFunction(p))try{p()}catch(x){i=x instanceof dg.UnsubscriptionError?x.errors:[x]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var m=aE(d),v=m.next();!v.done;v=m.next()){var g=v.value;try{pE(g)}catch(x){i=i??[],x instanceof dg.UnsubscriptionError?i=uE(uE([],cE(i)),cE(x.errors)):i.push(x)}}}catch(x){n={error:x}}finally{try{v&&!v.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}}if(i)throw new dg.UnsubscriptionError(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)pE(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&lE.arrRemove(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&lE.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();Xe.Subscription=fg;Xe.EMPTY_SUBSCRIPTION=fg.EMPTY;function S8(e){return e instanceof fg||e&&"closed"in e&&Ia.isFunction(e.remove)&&Ia.isFunction(e.add)&&Ia.isFunction(e.unsubscribe)}Xe.isSubscription=S8;function pE(e){Ia.isFunction(e)?e():e.unsubscribe()}});var Fi=h(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.config=void 0;al.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var mg=h(cr=>{"use strict";var dE=cr&&cr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},fE=cr&&cr.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(cr,"__esModule",{value:!0});cr.timeoutProvider=void 0;cr.timeoutProvider={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=cr.timeoutProvider.delegate;return o?.setTimeout?o.setTimeout.apply(o,fE([e,t],dE(r))):setTimeout.apply(void 0,fE([e,t],dE(r)))},clearTimeout:function(e){var t=cr.timeoutProvider.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0}});var hg=h(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.reportUnhandledError=void 0;var E8=Fi(),A8=mg();function R8(e){A8.timeoutProvider.setTimeout(function(){var t=E8.config.onUnhandledError;if(t)t(e);else throw e})}cl.reportUnhandledError=R8});var Pe=h(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.noop=void 0;function C8(){}ul.noop=C8});var mE=h(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.createNotification=ur.nextNotification=ur.errorNotification=ur.COMPLETE_NOTIFICATION=void 0;ur.COMPLETE_NOTIFICATION=function(){return ll("C",void 0,void 0)}();function T8(e){return ll("E",void 0,e)}ur.errorNotification=T8;function O8(e){return ll("N",e,void 0)}ur.nextNotification=O8;function ll(e,t,r){return{kind:e,value:t,error:r}}ur.createNotification=ll});var pl=h(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.captureError=Mi.errorContext=void 0;var hE=Fi(),Wo=null;function P8(e){if(hE.config.useDeprecatedSynchronousErrorHandling){var t=!Wo;if(t&&(Wo={errorThrown:!1,error:null}),e(),t){var r=Wo,n=r.errorThrown,o=r.error;if(Wo=null,n)throw o}}else e()}Mi.errorContext=P8;function I8(e){hE.config.useDeprecatedSynchronousErrorHandling&&Wo&&(Wo.errorThrown=!0,Wo.error=e)}Mi.captureError=I8});var Di=h(Vt=>{"use strict";var xE=Vt&&Vt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Vt,"__esModule",{value:!0});Vt.EMPTY_OBSERVER=Vt.SafeSubscriber=Vt.Subscriber=void 0;var k8=ee(),gE=ut(),yg=Fi(),N8=hg(),vE=Pe(),gg=mE(),q8=mg(),j8=pl(),yE=function(e){xE(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,gE.isSubscription(r)&&r.add(n)):n.destination=Vt.EMPTY_OBSERVER,n}return t.create=function(r,n,o){return new bE(r,n,o)},t.prototype.next=function(r){this.isStopped?xg(gg.nextNotification(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?xg(gg.errorNotification(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?xg(gg.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(gE.Subscription);Vt.Subscriber=yE;var F8=Function.prototype.bind;function vg(e,t){return F8.call(e,t)}var M8=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){dl(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){dl(n)}else dl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){dl(r)}},e}(),bE=function(e){xE(t,e);function t(r,n,o){var i=e.call(this)||this,s;if(k8.isFunction(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var a;i&&yg.config.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&vg(r.next,a),error:r.error&&vg(r.error,a),complete:r.complete&&vg(r.complete,a)}):s=r}return i.destination=new M8(s),i}return t}(yE);Vt.SafeSubscriber=bE;function dl(e){yg.config.useDeprecatedSynchronousErrorHandling?j8.captureError(e):N8.reportUnhandledError(e)}function D8(e){throw e}function xg(e,t){var r=yg.config.onStoppedNotification;r&&q8.timeoutProvider.setTimeout(function(){return r(e,t)})}Vt.EMPTY_OBSERVER={closed:!0,next:vE.noop,error:D8,complete:vE.noop}});var ka=h(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.observable=void 0;fl.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var Ie=h(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.identity=void 0;function L8(e){return e}ml.identity=L8});var Na=h(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.pipeFromArray=Li.pipe=void 0;var U8=Ie();function $8(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _E(e)}Li.pipe=$8;function _E(e){return e.length===0?U8.identity:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}Li.pipeFromArray=_E});var te=h(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.Observable=void 0;var _g=Di(),B8=ut(),z8=ka(),H8=Na(),W8=Fi(),bg=ee(),V8=pl(),G8=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=Y8(t)?t:new _g.SafeSubscriber(t,r,n);return V8.errorContext(function(){var s=o,a=s.operator,u=s.source;i.add(a?a.call(i,u):u?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=wE(r),new r(function(o,i){var s=new _g.SafeSubscriber({next:function(a){try{t(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[z8.observable]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return H8.pipeFromArray(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=wE(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();hl.Observable=G8;function wE(e){var t;return(t=e??W8.config.Promise)!==null&&t!==void 0?t:Promise}function K8(e){return e&&bg.isFunction(e.next)&&bg.isFunction(e.error)&&bg.isFunction(e.complete)}function Y8(e){return e&&e instanceof _g.Subscriber||K8(e)&&B8.isSubscription(e)}});var R=h(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.operate=Ui.hasLift=void 0;var J8=ee();function SE(e){return J8.isFunction(e?.lift)}Ui.hasLift=SE;function X8(e){return function(t){if(SE(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}Ui.operate=X8});var C=h(yn=>{"use strict";var Q8=yn&&yn.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(yn,"__esModule",{value:!0});yn.OperatorSubscriber=yn.createOperatorSubscriber=void 0;var Z8=Di();function e5(e,t,r,n,o){return new EE(e,t,r,n,o)}yn.createOperatorSubscriber=e5;var EE=function(e){Q8(t,e);function t(r,n,o,i,s,a){var u=e.call(this,r)||this;return u.onFinalize=s,u.shouldUnsubscribe=a,u._next=n?function(l){try{n(l)}catch(p){r.error(p)}}:e.prototype._next,u._error=i?function(l){try{i(l)}catch(p){r.error(p)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=o?function(){try{o()}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(Z8.Subscriber);yn.OperatorSubscriber=EE});var wg=h(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.refCount=void 0;var t5=R(),r5=C();function n5(){return t5.operate(function(e,t){var r=null;e._refCount++;var n=r5.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){r=null;return}var o=e._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(r=e.connect())})}gl.refCount=n5});var qa=h($i=>{"use strict";var o5=$i&&$i.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty($i,"__esModule",{value:!0});$i.ConnectableObservable=void 0;var i5=te(),AE=ut(),s5=wg(),a5=C(),c5=R(),u5=function(e){o5(t,e);function t(r,n){var o=e.call(this)||this;return o.source=r,o.subjectFactory=n,o._subject=null,o._refCount=0,o._connection=null,c5.hasLift(r)&&(o.lift=r.lift),o}return t.prototype._subscribe=function(r){return this.getSubject().subscribe(r)},t.prototype.getSubject=function(){var r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var r=this._connection;this._subject=this._connection=null,r?.unsubscribe()},t.prototype.connect=function(){var r=this,n=this._connection;if(!n){n=this._connection=new AE.Subscription;var o=this.getSubject();n.add(this.source.subscribe(a5.createOperatorSubscriber(o,void 0,function(){r._teardown(),o.complete()},function(i){r._teardown(),o.error(i)},function(){return r._teardown()}))),n.closed&&(this._connection=null,n=AE.Subscription.EMPTY)}return n},t.prototype.refCount=function(){return s5.refCount()(this)},t}(i5.Observable);$i.ConnectableObservable=u5});var RE=h(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.performanceTimestampProvider=void 0;ja.performanceTimestampProvider={now:function(){return(ja.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Sg=h(Gt=>{"use strict";var CE=Gt&&Gt.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},TE=Gt&&Gt.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.animationFrameProvider=void 0;var l5=ut();Gt.animationFrameProvider={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=Gt.animationFrameProvider.delegate;n&&(t=n.requestAnimationFrame,r=n.cancelAnimationFrame);var o=t(function(i){r=void 0,e(i)});return new l5.Subscription(function(){return r?.(o)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Gt.animationFrameProvider.delegate;return(r?.requestAnimationFrame||requestAnimationFrame).apply(void 0,TE([],CE(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Gt.animationFrameProvider.delegate;return(r?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,TE([],CE(e)))},delegate:void 0}});var IE=h(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.animationFrames=void 0;var p5=te(),d5=RE(),OE=Sg();function f5(e){return e?PE(e):m5}vl.animationFrames=f5;function PE(e){return new p5.Observable(function(t){var r=e||d5.performanceTimestampProvider,n=r.now(),o=0,i=function(){t.closed||(o=OE.animationFrameProvider.requestAnimationFrame(function(s){o=0;var a=r.now();t.next({timestamp:e?a:s,elapsed:a-n}),i()}))};return i(),function(){o&&OE.animationFrameProvider.cancelAnimationFrame(o)}})}var m5=PE()});var Eg=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.ObjectUnsubscribedError=void 0;var h5=xn();xl.ObjectUnsubscribedError=h5.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var ke=h(lr=>{"use strict";var NE=lr&&lr.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),g5=lr&&lr.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(lr,"__esModule",{value:!0});lr.AnonymousSubject=lr.Subject=void 0;var kE=te(),Rg=ut(),v5=Eg(),x5=Nr(),Ag=pl(),qE=function(e){NE(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Cg(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new v5.ObjectUnsubscribedError},t.prototype.next=function(r){var n=this;Ag.errorContext(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=g5(n.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(l){o={error:l}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Ag.errorContext(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ag.errorContext(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Rg.EMPTY_SUBSCRIPTION:(this.currentObservers=null,a.push(r),new Rg.Subscription(function(){n.currentObservers=null,x5.arrRemove(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new kE.Observable;return r.source=this,r},t.create=function(r,n){return new Cg(r,n)},t}(kE.Observable);lr.Subject=qE;var Cg=function(e){NE(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Rg.EMPTY_SUBSCRIPTION},t}(qE);lr.AnonymousSubject=Cg});var Tg=h(Bi=>{"use strict";var y5=Bi&&Bi.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.BehaviorSubject=void 0;var b5=ke(),_5=function(e){y5(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(b5.Subject);Bi.BehaviorSubject=_5});var yl=h(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.dateTimestampProvider=void 0;Fa.dateTimestampProvider={now:function(){return(Fa.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var bl=h(zi=>{"use strict";var w5=zi&&zi.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(zi,"__esModule",{value:!0});zi.ReplaySubject=void 0;var S5=ke(),E5=yl(),A5=function(e){w5(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=E5.dateTimestampProvider);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,u=n._windowTime;o||(i.push(r),!s&&i.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=i?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var u=o.now(),l=0,p=1;p<i.length&&i[p]<=u;p+=2)l=p;l&&i.splice(0,l+1)}},t}(S5.Subject);zi.ReplaySubject=A5});var _l=h(Hi=>{"use strict";var R5=Hi&&Hi.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Hi,"__esModule",{value:!0});Hi.AsyncSubject=void 0;var C5=ke(),T5=function(e){R5(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._value=null,r._hasValue=!1,r._isComplete=!1,r}return t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n._hasValue,s=n._value,a=n.thrownError,u=n.isStopped,l=n._isComplete;o?r.error(a):(u||l)&&(i&&r.next(s),r.complete())},t.prototype.next=function(r){this.isStopped||(this._value=r,this._hasValue=!0)},t.prototype.complete=function(){var r=this,n=r._hasValue,o=r._value,i=r._isComplete;i||(this._isComplete=!0,n&&e.prototype.next.call(this,o),e.prototype.complete.call(this))},t}(C5.Subject);Hi.AsyncSubject=T5});var jE=h(Wi=>{"use strict";var O5=Wi&&Wi.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Wi,"__esModule",{value:!0});Wi.Action=void 0;var P5=ut(),I5=function(e){O5(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t}(P5.Subscription);Wi.Action=I5});var DE=h(pr=>{"use strict";var FE=pr&&pr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},ME=pr&&pr.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(pr,"__esModule",{value:!0});pr.intervalProvider=void 0;pr.intervalProvider={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=pr.intervalProvider.delegate;return o?.setInterval?o.setInterval.apply(o,ME([e,t],FE(r))):setInterval.apply(void 0,ME([e,t],FE(r)))},clearInterval:function(e){var t=pr.intervalProvider.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0}});var Gi=h(Vi=>{"use strict";var k5=Vi&&Vi.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Vi,"__esModule",{value:!0});Vi.AsyncAction=void 0;var N5=jE(),LE=DE(),q5=Nr(),j5=function(e){k5(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return t.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),LE.intervalProvider.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&LE.intervalProvider.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,q5.arrRemove(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(N5.Action);Vi.AsyncAction=j5});var $E=h(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.TestTools=Ki.Immediate=void 0;var F5=1,Og,wl={};function UE(e){return e in wl?(delete wl[e],!0):!1}Ki.Immediate={setImmediate:function(e){var t=F5++;return wl[t]=!0,Og||(Og=Promise.resolve()),Og.then(function(){return UE(t)&&e()}),t},clearImmediate:function(e){UE(e)}};Ki.TestTools={pending:function(){return Object.keys(wl).length}}});var zE=h(dr=>{"use strict";var M5=dr&&dr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},D5=dr&&dr.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(dr,"__esModule",{value:!0});dr.immediateProvider=void 0;var BE=$E(),L5=BE.Immediate.setImmediate,U5=BE.Immediate.clearImmediate;dr.immediateProvider={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=dr.immediateProvider.delegate;return(r?.setImmediate||L5).apply(void 0,D5([],M5(e)))},clearImmediate:function(e){var t=dr.immediateProvider.delegate;return(t?.clearImmediate||U5)(e)},delegate:void 0}});var WE=h(Yi=>{"use strict";var $5=Yi&&Yi.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.AsapAction=void 0;var B5=Gi(),HE=zE(),z5=function(e){$5(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=HE.immediateProvider.setImmediate(r.flush.bind(r,void 0))))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var s=r.actions;n!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==n&&(HE.immediateProvider.clearImmediate(n),r._scheduled===n&&(r._scheduled=void 0))},t}(B5.AsyncAction);Yi.AsapAction=z5});var Pg=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.Scheduler=void 0;var H5=yl(),W5=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=H5.dateTimestampProvider.now,e}();Sl.Scheduler=W5});var Xi=h(Ji=>{"use strict";var V5=Ji&&Ji.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ji,"__esModule",{value:!0});Ji.AsyncScheduler=void 0;var VE=Pg(),G5=function(e){V5(t,e);function t(r,n){n===void 0&&(n=VE.Scheduler.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t}(VE.Scheduler);Ji.AsyncScheduler=G5});var GE=h(Qi=>{"use strict";var K5=Qi&&Qi.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AsapScheduler=void 0;var Y5=Xi(),J5=function(e){K5(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t}(Y5.AsyncScheduler);Qi.AsapScheduler=J5});var KE=h(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.asap=Vo.asapScheduler=void 0;var X5=WE(),Q5=GE();Vo.asapScheduler=new Q5.AsapScheduler(X5.AsapAction);Vo.asap=Vo.asapScheduler});var Qe=h(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.async=Go.asyncScheduler=void 0;var Z5=Gi(),eK=Xi();Go.asyncScheduler=new eK.AsyncScheduler(Z5.AsyncAction);Go.async=Go.asyncScheduler});var YE=h(Zi=>{"use strict";var tK=Zi&&Zi.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Zi,"__esModule",{value:!0});Zi.QueueAction=void 0;var rK=Gi(),nK=function(e){tK(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.flush(this),0)},t}(rK.AsyncAction);Zi.QueueAction=nK});var JE=h(es=>{"use strict";var oK=es&&es.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(es,"__esModule",{value:!0});es.QueueScheduler=void 0;var iK=Xi(),sK=function(e){oK(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(iK.AsyncScheduler);es.QueueScheduler=sK});var XE=h(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.queue=Ko.queueScheduler=void 0;var aK=YE(),cK=JE();Ko.queueScheduler=new cK.QueueScheduler(aK.QueueAction);Ko.queue=Ko.queueScheduler});var ZE=h(ts=>{"use strict";var uK=ts&&ts.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ts,"__esModule",{value:!0});ts.AnimationFrameAction=void 0;var lK=Gi(),QE=Sg(),pK=function(e){uK(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=QE.animationFrameProvider.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var s=r.actions;n!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==n&&(QE.animationFrameProvider.cancelAnimationFrame(n),r._scheduled=void 0)},t}(lK.AsyncAction);ts.AnimationFrameAction=pK});var eA=h(rs=>{"use strict";var dK=rs&&rs.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(rs,"__esModule",{value:!0});rs.AnimationFrameScheduler=void 0;var fK=Xi(),mK=function(e){dK(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t}(fK.AsyncScheduler);rs.AnimationFrameScheduler=mK});var tA=h(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.animationFrame=Yo.animationFrameScheduler=void 0;var hK=ZE(),gK=eA();Yo.animationFrameScheduler=new gK.AnimationFrameScheduler(hK.AnimationFrameAction);Yo.animationFrame=Yo.animationFrameScheduler});var oA=h(bn=>{"use strict";var rA=bn&&bn.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(bn,"__esModule",{value:!0});bn.VirtualAction=bn.VirtualTimeScheduler=void 0;var vK=Gi(),xK=ut(),yK=Xi(),bK=function(e){rA(t,e);function t(r,n){r===void 0&&(r=nA),n===void 0&&(n=1/0);var o=e.call(this,r,function(){return o.frame})||this;return o.maxFrames=n,o.frame=0,o.index=-1,o}return t.prototype.flush=function(){for(var r=this,n=r.actions,o=r.maxFrames,i,s;(s=n[0])&&s.delay<=o&&(n.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=n.shift();)s.unsubscribe();throw i}},t.frameTimeFactor=10,t}(yK.AsyncScheduler);bn.VirtualTimeScheduler=bK;var nA=function(e){rA(t,e);function t(r,n,o){o===void 0&&(o=r.index+=1);var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.index=o,i.active=!0,i.index=r.index=o,i}return t.prototype.schedule=function(r,n){if(n===void 0&&(n=0),Number.isFinite(n)){if(!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(r,n)}else return xK.Subscription.EMPTY},t.prototype.requestAsyncId=function(r,n,o){o===void 0&&(o=0),this.delay=r.frame+o;var i=r.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(r,n,o){o===void 0&&(o=0)},t.prototype._execute=function(r,n){if(this.active===!0)return e.prototype._execute.call(this,r,n)},t.sortActions=function(r,n){return r.delay===n.delay?r.index===n.index?0:r.index>n.index?1:-1:r.delay>n.delay?1:-1},t}(vK.AsyncAction);bn.VirtualAction=nA});var Kt=h(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.empty=Jo.EMPTY=void 0;var iA=te();Jo.EMPTY=new iA.Observable(function(e){return e.complete()});function _K(e){return e?wK(e):Jo.EMPTY}Jo.empty=_K;function wK(e){return new iA.Observable(function(t){return e.schedule(function(){return t.complete()})})}});var Ma=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.isScheduler=void 0;var SK=ee();function EK(e){return e&&SK.isFunction(e.schedule)}El.isScheduler=EK});var Ze=h(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.popNumber=_n.popScheduler=_n.popResultSelector=void 0;var AK=ee(),RK=Ma();function Ig(e){return e[e.length-1]}function CK(e){return AK.isFunction(Ig(e))?e.pop():void 0}_n.popResultSelector=CK;function TK(e){return RK.isScheduler(Ig(e))?e.pop():void 0}_n.popScheduler=TK;function OK(e,t){return typeof Ig(e)=="number"?e.pop():t}_n.popNumber=OK});var Rl=h(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.isArrayLike=void 0;Al.isArrayLike=function(e){return e&&typeof e.length=="number"&&typeof e!="function"}});var kg=h(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.isPromise=void 0;var PK=ee();function IK(e){return PK.isFunction(e?.then)}Cl.isPromise=IK});var Ng=h(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.isInteropObservable=void 0;var kK=ka(),NK=ee();function qK(e){return NK.isFunction(e[kK.observable])}Tl.isInteropObservable=qK});var qg=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.isAsyncIterable=void 0;var jK=ee();function FK(e){return Symbol.asyncIterator&&jK.isFunction(e?.[Symbol.asyncIterator])}Ol.isAsyncIterable=FK});var jg=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.createInvalidObservableTypeError=void 0;function MK(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}Pl.createInvalidObservableTypeError=MK});var Fg=h(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.iterator=ns.getSymbolIterator=void 0;function sA(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}ns.getSymbolIterator=sA;ns.iterator=sA()});var Mg=h(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.isIterable=void 0;var DK=Fg(),LK=ee();function UK(e){return LK.isFunction(e?.[DK.iterator])}Il.isIterable=UK});var kl=h(_t=>{"use strict";var $K=_t&&_t.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(p){return u([l,p])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},os=_t&&_t.__await||function(e){return this instanceof os?(this.v=e,this):new os(e)},BK=_t&&_t.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(m){n[m]&&(o[m]=function(v){return new Promise(function(g,x){i.push([m,v,g,x])>1||a(m,v)})})}function a(m,v){try{u(n[m](v))}catch(g){d(i[0][3],g)}}function u(m){m.value instanceof os?Promise.resolve(m.value.v).then(l,p):d(i[0][2],m)}function l(m){a("next",m)}function p(m){a("throw",m)}function d(m,v){m(v),i.shift(),i.length&&a(i[0][0],i[0][1])}};Object.defineProperty(_t,"__esModule",{value:!0});_t.isReadableStreamLike=_t.readableStreamLikeToAsyncGenerator=void 0;var zK=ee();function HK(e){return BK(this,arguments,function(){var r,n,o,i;return $K(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,os(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,os(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,os(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}_t.readableStreamLikeToAsyncGenerator=HK;function WK(e){return zK.isFunction(e?.getReader)}_t.isReadableStreamLike=WK});var q=h(se=>{"use strict";var VK=se&&se.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(p){try{l(n.next(p))}catch(d){s(d)}}function u(p){try{l(n.throw(p))}catch(d){s(d)}}function l(p){p.done?i(p.value):o(p.value).then(a,u)}l((n=n.apply(e,t||[])).next())})},GK=se&&se.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(p){return u([l,p])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},KK=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Dg=="function"?Dg(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}},Dg=se&&se.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(se,"__esModule",{value:!0});se.fromReadableStreamLike=se.fromAsyncIterable=se.fromIterable=se.fromPromise=se.fromArrayLike=se.fromInteropObservable=se.innerFrom=void 0;var YK=