@raja-rakoto/minificator
Version:
Minificator CLI: efficience solution for swiftly reducing file sizes and effortlessly optimizing a variety of file formats 🛠️
2 lines • 1.34 MB
JavaScript
#!/usr/bin/env node
import{createRequire as Dx}from"node:module";var rS=Object.create;var{getPrototypeOf:tS,defineProperty:Z6,getOwnPropertyNames:TJ,getOwnPropertyDescriptor:eS}=Object,RJ=Object.prototype.hasOwnProperty;var q0=(k,D,w)=>{w=k!=null?rS(tS(k)):{};let _=D||!k||!k.__esModule?Z6(w,"default",{value:k,enumerable:!0}):w;for(let z of TJ(k))if(!RJ.call(_,z))Z6(_,z,{get:()=>k[z],enumerable:!0});return _},CJ=new WeakMap,kx=(k)=>{var D=CJ.get(k),w;if(D)return D;if(D=Z6({},"__esModule",{value:!0}),k&&typeof k==="object"||typeof k==="function")TJ(k).map((_)=>!RJ.call(D,_)&&Z6(D,_,{get:()=>k[_],enumerable:!(w=eS(k,_))||w.enumerable}));return CJ.set(k,D),D},H=(k,D)=>()=>(D||k((D={exports:{}}).exports,D),D.exports);var r=Dx(import.meta.url);var K_=H((wx,wy)=>{var T0=wx;wx.default=T0;var x0="\x1B[",X_="\x1B]",jw="\x07",q6=";",IJ=process.env.TERM_PROGRAM==="Apple_Terminal";T0.cursorTo=(k,D)=>{if(typeof k!=="number")throw new TypeError("The `x` argument is required");if(typeof D!=="number")return x0+(k+1)+"G";return x0+(D+1)+";"+(k+1)+"H"};T0.cursorMove=(k,D)=>{if(typeof k!=="number")throw new TypeError("The `x` argument is required");let w="";if(k<0)w+=x0+-k+"D";else if(k>0)w+=x0+k+"C";if(D<0)w+=x0+-D+"A";else if(D>0)w+=x0+D+"B";return w};T0.cursorUp=(k=1)=>x0+k+"A";T0.cursorDown=(k=1)=>x0+k+"B";T0.cursorForward=(k=1)=>x0+k+"C";T0.cursorBackward=(k=1)=>x0+k+"D";T0.cursorLeft=x0+"G";T0.cursorSavePosition=IJ?"\x1B7":x0+"s";T0.cursorRestorePosition=IJ?"\x1B8":x0+"u";T0.cursorGetPosition=x0+"6n";T0.cursorNextLine=x0+"E";T0.cursorPrevLine=x0+"F";T0.cursorHide=x0+"?25l";T0.cursorShow=x0+"?25h";T0.eraseLines=(k)=>{let D="";for(let w=0;w<k;w++)D+=T0.eraseLine+(w<k-1?T0.cursorUp():"");if(k)D+=T0.cursorLeft;return D};T0.eraseEndLine=x0+"K";T0.eraseStartLine=x0+"1K";T0.eraseLine=x0+"2K";T0.eraseDown=x0+"J";T0.eraseUp=x0+"1J";T0.eraseScreen=x0+"2J";T0.scrollUp=x0+"S";T0.scrollDown=x0+"T";T0.clearScreen="\x1Bc";T0.clearTerminal=process.platform==="win32"?`${T0.eraseScreen}${x0}0f`:`${T0.eraseScreen}${x0}3J${x0}H`;T0.beep=jw;T0.link=(k,D)=>{return[X_,"8",q6,q6,D,jw,k,X_,"8",q6,q6,jw].join("")};T0.image=(k,D={})=>{let w=`${X_}1337;File=inline=1`;if(D.width)w+=`;width=${D.width}`;if(D.height)w+=`;height=${D.height}`;if(D.preserveAspectRatio===!1)w+=";preserveAspectRatio=0";return w+":"+k.toString("base64")+jw};T0.iTerm={setCwd:(k=process.cwd())=>`${X_}50;CurrentDir=${k}${jw}`,annotation:(k,D={})=>{let w=`${X_}1337;`,_=typeof D.x!=="undefined",z=typeof D.y!=="undefined";if((_||z)&&!(_&&z&&typeof D.length!=="undefined"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");if(k=k.replace(/\|/g,""),w+=D.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",D.length>0)w+=(_?[k,D.length,D.x,D.y]:[D.length,k]).join("|");else w+=k;return w+jw}}});var W1=H((O90,AJ)=>{var zx=r("node:tty"),yx=zx?.WriteStream?.prototype?.hasColors?.()??!1,B0=(k,D)=>{if(!yx)return(z)=>z;let w=`\x1B[${k}m`,_=`\x1B[${D}m`;return(z)=>{let Z=z+"",q=Z.indexOf(_);if(q===-1)return w+Z+_;let J=w,Y=0;while(q!==-1)J+=Z.slice(Y,q)+w,Y=q+_.length,q=Z.indexOf(_,Y);return J+=Z.slice(Y)+_,J}},F0={};F0.reset=B0(0,0);F0.bold=B0(1,22);F0.dim=B0(2,22);F0.italic=B0(3,23);F0.underline=B0(4,24);F0.overline=B0(53,55);F0.inverse=B0(7,27);F0.hidden=B0(8,28);F0.strikethrough=B0(9,29);F0.black=B0(30,39);F0.red=B0(31,39);F0.green=B0(32,39);F0.yellow=B0(33,39);F0.blue=B0(34,39);F0.magenta=B0(35,39);F0.cyan=B0(36,39);F0.white=B0(37,39);F0.gray=B0(90,39);F0.bgBlack=B0(40,49);F0.bgRed=B0(41,49);F0.bgGreen=B0(42,49);F0.bgYellow=B0(43,49);F0.bgBlue=B0(44,49);F0.bgMagenta=B0(45,49);F0.bgCyan=B0(46,49);F0.bgWhite=B0(47,49);F0.bgGray=B0(100,49);F0.redBright=B0(91,39);F0.greenBright=B0(92,39);F0.yellowBright=B0(93,39);F0.blueBright=B0(94,39);F0.magentaBright=B0(95,39);F0.cyanBright=B0(96,39);F0.whiteBright=B0(97,39);F0.bgRedBright=B0(101,49);F0.bgGreenBright=B0(102,49);F0.bgYellowBright=B0(103,49);F0.bgBlueBright=B0(104,49);F0.bgMagentaBright=B0(105,49);F0.bgCyanBright=B0(106,49);F0.bgWhiteBright=B0(107,49);AJ.exports=F0});var H_=H((c90,SJ)=>{function OJ(k){return!!k&&(typeof k==="object"||typeof k==="function")&&typeof k.then==="function"}var hJ=SJ.exports=function(k,D,w="async"){if(typeof D==="string")w=D,D=void 0;return D=D||function(){},function(){var _=arguments,z=this,Z=new Promise(function(q,J){var Y=!1;let X=function(Z0){if(Y)console.warn("Run-async promise already resolved.");Y=!0,q(Z0)};var B=!1;let N=function(Z0){if(B)console.warn("Run-async promise already rejected.");B=!0,J(Z0)};var T=!1,S=!1,m=!1,x=function(){if(m)return console.warn("Run-async async() called outside a valid run-async context, callback will be ignored."),function(){};if(S)console.warn("Run-async wrapped function (async) returned a promise.\nCalls to async() callback can have unexpected results.");return T=!0,function(Z0,E0){if(Z0)N(Z0);else X(E0)}},n;if(z&&w&&Proxy)n=new Proxy(z,{get(Z0,E0){if(E0===w){if(E0 in Z0)console.warn(`${w} property is been shadowed by run-sync`);return x}return Reflect.get(...arguments)}});else n={[w]:x};var b=k.apply(n,Array.prototype.slice.call(_));if(T){if(OJ(b))console.warn("Run-async wrapped function (sync) returned a promise but async() callback must be executed to resolve.")}else if(OJ(b))S=!0,b.then(X,N);else X(b);m=!0});return Z.then(D.bind(null,null),D),Z}};hJ.cb=function(k,D){return hJ(function(){var w=Array.prototype.slice.call(arguments);if(w.length===k.length-1)w.push(this.async());return k.apply(this,w)},D)}});var c0=H((xJ)=>{Object.defineProperty(xJ,"__esModule",{value:!0});xJ.isFunction=void 0;function Yx(k){return typeof k==="function"}xJ.isFunction=Yx});var iD=H((mJ)=>{Object.defineProperty(mJ,"__esModule",{value:!0});mJ.createErrorClass=void 0;function Xx(k){var D=function(_){Error.call(_),_.stack=new Error().stack},w=k(D);return w.prototype=Object.create(Error.prototype),w.prototype.constructor=w,w}mJ.createErrorClass=Xx});var _y=H((aJ)=>{Object.defineProperty(aJ,"__esModule",{value:!0});aJ.UnsubscriptionError=void 0;var Kx=iD();aJ.UnsubscriptionError=Kx.createErrorClass(function(k){return function D(w){k(this),this.message=w?w.length+" errors occurred during unsubscription:\n"+w.map(function(_,z){return z+1+") "+_.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=w}})});var ED=H((dJ)=>{Object.defineProperty(dJ,"__esModule",{value:!0});dJ.arrRemove=void 0;function Hx(k,D){if(k){var w=k.indexOf(D);0<=w&&k.splice(w,1)}}dJ.arrRemove=Hx});var z1=H((bk)=>{var pJ=bk&&bk.__values||function(k){var D=typeof Symbol==="function"&&Symbol.iterator,w=D&&k[D],_=0;if(w)return w.call(k);if(k&&typeof k.length==="number")return{next:function(){if(k&&_>=k.length)k=void 0;return{value:k&&k[_++],done:!k}}};throw new TypeError(D?"Object is not iterable.":"Symbol.iterator is not defined.")},uJ=bk&&bk.__read||function(k,D){var w=typeof Symbol==="function"&&k[Symbol.iterator];if(!w)return k;var _=w.call(k),z,Z=[],q;try{while((D===void 0||D-- >0)&&!(z=_.next()).done)Z.push(z.value)}catch(J){q={error:J}}finally{try{if(z&&!z.done&&(w=_.return))w.call(_)}finally{if(q)throw q.error}}return Z},nJ=bk&&bk.__spreadArray||function(k,D){for(var w=0,_=D.length,z=k.length;w<_;w++,z++)k[z]=D[w];return k};Object.defineProperty(bk,"__esModule",{value:!0});bk.isSubscription=bk.EMPTY_SUBSCRIPTION=bk.Subscription=void 0;var F_=c0(),zy=_y(),iJ=ED(),yy=function(){function k(D){this.initialTeardown=D,this.closed=!1,this._parentage=null,this._finalizers=null}return k.prototype.unsubscribe=function(){var D,w,_,z,Z;if(!this.closed){this.closed=!0;var q=this._parentage;if(q)if(this._parentage=null,Array.isArray(q))try{for(var J=pJ(q),Y=J.next();!Y.done;Y=J.next()){var X=Y.value;X.remove(this)}}catch(x){D={error:x}}finally{try{if(Y&&!Y.done&&(w=J.return))w.call(J)}finally{if(D)throw D.error}}else q.remove(this);var B=this.initialTeardown;if(F_.isFunction(B))try{B()}catch(x){Z=x instanceof zy.UnsubscriptionError?x.errors:[x]}var N=this._finalizers;if(N){this._finalizers=null;try{for(var T=pJ(N),S=T.next();!S.done;S=T.next()){var m=S.value;try{oJ(m)}catch(x){if(Z=Z!==null&&Z!==void 0?Z:[],x instanceof zy.UnsubscriptionError)Z=nJ(nJ([],uJ(Z)),uJ(x.errors));else Z.push(x)}}}catch(x){_={error:x}}finally{try{if(S&&!S.done&&(z=T.return))z.call(T)}finally{if(_)throw _.error}}}if(Z)throw new zy.UnsubscriptionError(Z)}},k.prototype.add=function(D){var w;if(D&&D!==this)if(this.closed)oJ(D);else{if(D instanceof k){if(D.closed||D._hasParent(this))return;D._addParent(this)}(this._finalizers=(w=this._finalizers)!==null&&w!==void 0?w:[]).push(D)}},k.prototype._hasParent=function(D){var w=this._parentage;return w===D||Array.isArray(w)&&w.includes(D)},k.prototype._addParent=function(D){var w=this._parentage;this._parentage=Array.isArray(w)?(w.push(D),w):w?[w,D]:D},k.prototype._removeParent=function(D){var w=this._parentage;if(w===D)this._parentage=null;else if(Array.isArray(w))iJ.arrRemove(w,D)},k.prototype.remove=function(D){var w=this._finalizers;if(w&&iJ.arrRemove(w,D),D instanceof k)D._removeParent(this)},k.EMPTY=function(){var D=new k;return D.closed=!0,D}(),k}();bk.Subscription=yy;bk.EMPTY_SUBSCRIPTION=yy.EMPTY;function Fx(k){return k instanceof yy||k&&"closed"in k&&F_.isFunction(k.remove)&&F_.isFunction(k.add)&&F_.isFunction(k.unsubscribe)}bk.isSubscription=Fx;function oJ(k){if(F_.isFunction(k))k();else k.unsubscribe()}});var Ow=H((sJ)=>{Object.defineProperty(sJ,"__esModule",{value:!0});sJ.config=void 0;sJ.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var fy=H((b1)=>{var tJ=b1&&b1.__read||function(k,D){var w=typeof Symbol==="function"&&k[Symbol.iterator];if(!w)return k;var _=w.call(k),z,Z=[],q;try{while((D===void 0||D-- >0)&&!(z=_.next()).done)Z.push(z.value)}catch(J){q={error:J}}finally{try{if(z&&!z.done&&(w=_.return))w.call(_)}finally{if(q)throw q.error}}return Z},eJ=b1&&b1.__spreadArray||function(k,D){for(var w=0,_=D.length,z=k.length;w<_;w++,z++)k[z]=D[w];return k};Object.defineProperty(b1,"__esModule",{value:!0});b1.timeoutProvider=void 0;b1.timeoutProvider={setTimeout:function(k,D){var w=[];for(var _=2;_<arguments.length;_++)w[_-2]=arguments[_];var z=b1.timeoutProvider.delegate;if(z===null||z===void 0?void 0:z.setTimeout)return z.setTimeout.apply(z,eJ([k,D],tJ(w)));return setTimeout.apply(void 0,eJ([k,D],tJ(w)))},clearTimeout:function(k){var D=b1.timeoutProvider.delegate;return((D===null||D===void 0?void 0:D.clearTimeout)||clearTimeout)(k)},delegate:void 0}});var Zy=H((kQ)=>{Object.defineProperty(kQ,"__esModule",{value:!0});kQ.reportUnhandledError=void 0;var Gx=Ow(),Wx=fy();function Bx(k){Wx.timeoutProvider.setTimeout(function(){var D=Gx.config.onUnhandledError;if(D)D(k);else throw k})}kQ.reportUnhandledError=Bx});var Mk=H((wQ)=>{Object.defineProperty(wQ,"__esModule",{value:!0});wQ.noop=void 0;function Ux(){}wQ.noop=Ux});var fQ=H((zQ)=>{Object.defineProperty(zQ,"__esModule",{value:!0});zQ.createNotification=zQ.nextNotification=zQ.errorNotification=zQ.COMPLETE_NOTIFICATION=void 0;zQ.COMPLETE_NOTIFICATION=function(){return $6("C",void 0,void 0)}();function Vx(k){return $6("E",void 0,k)}zQ.errorNotification=Vx;function Ex(k){return $6("N",k,void 0)}zQ.nextNotification=Ex;function $6(k,D,w){return{kind:k,value:D,error:w}}zQ.createNotification=$6});var J6=H((qQ)=>{Object.defineProperty(qQ,"__esModule",{value:!0});qQ.captureError=qQ.errorContext=void 0;var ZQ=Ow(),n8=null;function Lx(k){if(ZQ.config.useDeprecatedSynchronousErrorHandling){var D=!n8;if(D)n8={errorThrown:!1,error:null};if(k(),D){var w=n8,_=w.errorThrown,z=w.error;if(n8=null,_)throw z}}else k()}qQ.errorContext=Lx;function Cx(k){if(ZQ.config.useDeprecatedSynchronousErrorHandling&&n8)n8.errorThrown=!0,n8.error=k}qQ.captureError=Cx});var hw=H((A1)=>{var YQ=A1&&A1.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(A1,"__esModule",{value:!0});A1.EMPTY_OBSERVER=A1.SafeSubscriber=A1.Subscriber=void 0;var Rx=c0(),JQ=z1(),Qy=Ow(),Ix=Zy(),QQ=Mk(),qy=fQ(),Ax=fy(),gx=J6(),XQ=function(k){YQ(D,k);function D(w){var _=k.call(this)||this;if(_.isStopped=!1,w){if(_.destination=w,JQ.isSubscription(w))w.add(_)}else _.destination=A1.EMPTY_OBSERVER;return _}return D.create=function(w,_,z){return new KQ(w,_,z)},D.prototype.next=function(w){if(this.isStopped)Jy(qy.nextNotification(w),this);else this._next(w)},D.prototype.error=function(w){if(this.isStopped)Jy(qy.errorNotification(w),this);else this.isStopped=!0,this._error(w)},D.prototype.complete=function(){if(this.isStopped)Jy(qy.COMPLETE_NOTIFICATION,this);else this.isStopped=!0,this._complete()},D.prototype.unsubscribe=function(){if(!this.closed)this.isStopped=!0,k.prototype.unsubscribe.call(this),this.destination=null},D.prototype._next=function(w){this.destination.next(w)},D.prototype._error=function(w){try{this.destination.error(w)}finally{this.unsubscribe()}},D.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},D}(JQ.Subscription);A1.Subscriber=XQ;var jx=Function.prototype.bind;function $y(k,D){return jx.call(k,D)}var Ox=function(){function k(D){this.partialObserver=D}return k.prototype.next=function(D){var w=this.partialObserver;if(w.next)try{w.next(D)}catch(_){Q6(_)}},k.prototype.error=function(D){var w=this.partialObserver;if(w.error)try{w.error(D)}catch(_){Q6(_)}else Q6(D)},k.prototype.complete=function(){var D=this.partialObserver;if(D.complete)try{D.complete()}catch(w){Q6(w)}},k}(),KQ=function(k){YQ(D,k);function D(w,_,z){var Z=k.call(this)||this,q;if(Rx.isFunction(w)||!w)q={next:w!==null&&w!==void 0?w:void 0,error:_!==null&&_!==void 0?_:void 0,complete:z!==null&&z!==void 0?z:void 0};else{var J;if(Z&&Qy.config.useDeprecatedNextContext)J=Object.create(w),J.unsubscribe=function(){return Z.unsubscribe()},q={next:w.next&&$y(w.next,J),error:w.error&&$y(w.error,J),complete:w.complete&&$y(w.complete,J)};else q=w}return Z.destination=new Ox(q),Z}return D}(XQ);A1.SafeSubscriber=KQ;function Q6(k){if(Qy.config.useDeprecatedSynchronousErrorHandling)gx.captureError(k);else Ix.reportUnhandledError(k)}function hx(k){throw k}function Jy(k,D){var w=Qy.config.onStoppedNotification;w&&Ax.timeoutProvider.setTimeout(function(){return w(k,D)})}A1.EMPTY_OBSERVER={closed:!0,next:QQ.noop,error:hx,complete:QQ.noop}});var G_=H((HQ)=>{Object.defineProperty(HQ,"__esModule",{value:!0});HQ.observable=void 0;HQ.observable=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}()});var Lk=H((GQ)=>{Object.defineProperty(GQ,"__esModule",{value:!0});GQ.identity=void 0;function Sx(k){return k}GQ.identity=Sx});var W_=H((UQ)=>{Object.defineProperty(UQ,"__esModule",{value:!0});UQ.pipeFromArray=UQ.pipe=void 0;var xx=Lk();function cx(){var k=[];for(var D=0;D<arguments.length;D++)k[D]=arguments[D];return BQ(k)}UQ.pipe=cx;function BQ(k){if(k.length===0)return xx.identity;if(k.length===1)return k[0];return function D(w){return k.reduce(function(_,z){return z(_)},w)}}UQ.pipeFromArray=BQ});var l0=H((PQ)=>{Object.defineProperty(PQ,"__esModule",{value:!0});PQ.Observable=void 0;var Xy=hw(),vx=z1(),ax=G_(),lx=W_(),dx=Ow(),Yy=c0(),bx=J6(),px=function(){function k(D){if(D)this._subscribe=D}return k.prototype.lift=function(D){var w=new k;return w.source=this,w.operator=D,w},k.prototype.subscribe=function(D,w,_){var z=this,Z=nx(D)?D:new Xy.SafeSubscriber(D,w,_);return bx.errorContext(function(){var q=z,J=q.operator,Y=q.source;Z.add(J?J.call(Z,Y):Y?z._subscribe(Z):z._trySubscribe(Z))}),Z},k.prototype._trySubscribe=function(D){try{return this._subscribe(D)}catch(w){D.error(w)}},k.prototype.forEach=function(D,w){var _=this;return w=EQ(w),new w(function(z,Z){var q=new Xy.SafeSubscriber({next:function(J){try{D(J)}catch(Y){Z(Y),q.unsubscribe()}},error:Z,complete:z});_.subscribe(q)})},k.prototype._subscribe=function(D){var w;return(w=this.source)===null||w===void 0?void 0:w.subscribe(D)},k.prototype[ax.observable]=function(){return this},k.prototype.pipe=function(){var D=[];for(var w=0;w<arguments.length;w++)D[w]=arguments[w];return lx.pipeFromArray(D)(this)},k.prototype.toPromise=function(D){var w=this;return D=EQ(D),new D(function(_,z){var Z;w.subscribe(function(q){return Z=q},function(q){return z(q)},function(){return _(Z)})})},k.create=function(D){return new k(D)},k}();PQ.Observable=px;function EQ(k){var D;return(D=k!==null&&k!==void 0?k:dx.config.Promise)!==null&&D!==void 0?D:Promise}function ux(k){return k&&Yy.isFunction(k.next)&&Yy.isFunction(k.error)&&Yy.isFunction(k.complete)}function nx(k){return k&&k instanceof Xy.Subscriber||ux(k)&&vx.isSubscription(k)}});var t=H((LQ)=>{Object.defineProperty(LQ,"__esModule",{value:!0});LQ.operate=LQ.hasLift=void 0;var ix=c0();function MQ(k){return ix.isFunction(k===null||k===void 0?void 0:k.lift)}LQ.hasLift=MQ;function ox(k){return function(D){if(MQ(D))return D.lift(function(w){try{return k(w,this)}catch(_){this.error(_)}});throw new TypeError("Unable to lift unknown Observable type")}}LQ.operate=ox});var y0=H((oD)=>{var rx=oD&&oD.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(oD,"__esModule",{value:!0});oD.OperatorSubscriber=oD.createOperatorSubscriber=void 0;var tx=hw();function ex(k,D,w,_,z){return new TQ(k,D,w,_,z)}oD.createOperatorSubscriber=ex;var TQ=function(k){rx(D,k);function D(w,_,z,Z,q,J){var Y=k.call(this,w)||this;return Y.onFinalize=q,Y.shouldUnsubscribe=J,Y._next=_?function(X){try{_(X)}catch(B){w.error(B)}}:k.prototype._next,Y._error=Z?function(X){try{Z(X)}catch(B){w.error(B)}finally{this.unsubscribe()}}:k.prototype._error,Y._complete=z?function(){try{z()}catch(X){w.error(X)}finally{this.unsubscribe()}}:k.prototype._complete,Y}return D.prototype.unsubscribe=function(){var w;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var _=this.closed;k.prototype.unsubscribe.call(this),!_&&((w=this.onFinalize)===null||w===void 0||w.call(this))}},D}(tx.Subscriber);oD.OperatorSubscriber=TQ});var Ky=H((RQ)=>{Object.defineProperty(RQ,"__esModule",{value:!0});RQ.refCount=void 0;var kc=t(),Dc=y0();function wc(){return kc.operate(function(k,D){var w=null;k._refCount++;var _=Dc.createOperatorSubscriber(D,void 0,void 0,void 0,function(){if(!k||k._refCount<=0||0<--k._refCount){w=null;return}var z=k._connection,Z=w;if(w=null,z&&(!Z||z===Z))z.unsubscribe();D.unsubscribe()});if(k.subscribe(_),!_.closed)w=k.connect()})}RQ.refCount=wc});var B_=H((Sw)=>{var _c=Sw&&Sw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(Sw,"__esModule",{value:!0});Sw.ConnectableObservable=void 0;var zc=l0(),AQ=z1(),yc=Ky(),fc=y0(),Zc=t(),qc=function(k){_c(D,k);function D(w,_){var z=k.call(this)||this;if(z.source=w,z.subjectFactory=_,z._subject=null,z._refCount=0,z._connection=null,Zc.hasLift(w))z.lift=w.lift;return z}return D.prototype._subscribe=function(w){return this.getSubject().subscribe(w)},D.prototype.getSubject=function(){var w=this._subject;if(!w||w.isStopped)this._subject=this.subjectFactory();return this._subject},D.prototype._teardown=function(){this._refCount=0;var w=this._connection;this._subject=this._connection=null,w===null||w===void 0||w.unsubscribe()},D.prototype.connect=function(){var w=this,_=this._connection;if(!_){_=this._connection=new AQ.Subscription;var z=this.getSubject();if(_.add(this.source.subscribe(fc.createOperatorSubscriber(z,void 0,function(){w._teardown(),z.complete()},function(Z){w._teardown(),z.error(Z)},function(){return w._teardown()}))),_.closed)this._connection=null,_=AQ.Subscription.EMPTY}return _},D.prototype.refCount=function(){return yc.refCount()(this)},D}(zc.Observable);Sw.ConnectableObservable=qc});var jQ=H((gQ)=>{Object.defineProperty(gQ,"__esModule",{value:!0});gQ.performanceTimestampProvider=void 0;gQ.performanceTimestampProvider={now:function(){return(gQ.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Fy=H((g1)=>{var OQ=g1&&g1.__read||function(k,D){var w=typeof Symbol==="function"&&k[Symbol.iterator];if(!w)return k;var _=w.call(k),z,Z=[],q;try{while((D===void 0||D-- >0)&&!(z=_.next()).done)Z.push(z.value)}catch(J){q={error:J}}finally{try{if(z&&!z.done&&(w=_.return))w.call(_)}finally{if(q)throw q.error}}return Z},hQ=g1&&g1.__spreadArray||function(k,D){for(var w=0,_=D.length,z=k.length;w<_;w++,z++)k[z]=D[w];return k};Object.defineProperty(g1,"__esModule",{value:!0});g1.animationFrameProvider=void 0;var $c=z1();g1.animationFrameProvider={schedule:function(k){var D=requestAnimationFrame,w=cancelAnimationFrame,_=g1.animationFrameProvider.delegate;if(_)D=_.requestAnimationFrame,w=_.cancelAnimationFrame;var z=D(function(Z){w=void 0,k(Z)});return new $c.Subscription(function(){return w===null||w===void 0?void 0:w(z)})},requestAnimationFrame:function(){var k=[];for(var D=0;D<arguments.length;D++)k[D]=arguments[D];var w=g1.animationFrameProvider.delegate;return((w===null||w===void 0?void 0:w.requestAnimationFrame)||requestAnimationFrame).apply(void 0,hQ([],OQ(k)))},cancelAnimationFrame:function(){var k=[];for(var D=0;D<arguments.length;D++)k[D]=arguments[D];var w=g1.animationFrameProvider.delegate;return((w===null||w===void 0?void 0:w.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,hQ([],OQ(k)))},delegate:void 0}});var vQ=H((cQ)=>{Object.defineProperty(cQ,"__esModule",{value:!0});cQ.animationFrames=void 0;var Jc=l0(),Qc=jQ(),SQ=Fy();function Yc(k){return k?xQ(k):Xc}cQ.animationFrames=Yc;function xQ(k){return new Jc.Observable(function(D){var w=k||Qc.performanceTimestampProvider,_=w.now(),z=0,Z=function(){if(!D.closed)z=SQ.animationFrameProvider.requestAnimationFrame(function(q){z=0;var J=w.now();D.next({timestamp:k?J:q,elapsed:J-_}),Z()})};return Z(),function(){if(z)SQ.animationFrameProvider.cancelAnimationFrame(z)}})}var Xc=xQ()});var Gy=H((aQ)=>{Object.defineProperty(aQ,"__esModule",{value:!0});aQ.ObjectUnsubscribedError=void 0;var Kc=iD();aQ.ObjectUnsubscribedError=Kc.createErrorClass(function(k){return function D(){k(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var Ck=H((p1)=>{var bQ=p1&&p1.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}(),Hc=p1&&p1.__values||function(k){var D=typeof Symbol==="function"&&Symbol.iterator,w=D&&k[D],_=0;if(w)return w.call(k);if(k&&typeof k.length==="number")return{next:function(){if(k&&_>=k.length)k=void 0;return{value:k&&k[_++],done:!k}}};throw new TypeError(D?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p1,"__esModule",{value:!0});p1.AnonymousSubject=p1.Subject=void 0;var dQ=l0(),By=z1(),Fc=Gy(),Gc=ED(),Wy=J6(),pQ=function(k){bQ(D,k);function D(){var w=k.call(this)||this;return w.closed=!1,w.currentObservers=null,w.observers=[],w.isStopped=!1,w.hasError=!1,w.thrownError=null,w}return D.prototype.lift=function(w){var _=new Uy(this,this);return _.operator=w,_},D.prototype._throwIfClosed=function(){if(this.closed)throw new Fc.ObjectUnsubscribedError},D.prototype.next=function(w){var _=this;Wy.errorContext(function(){var z,Z;if(_._throwIfClosed(),!_.isStopped){if(!_.currentObservers)_.currentObservers=Array.from(_.observers);try{for(var q=Hc(_.currentObservers),J=q.next();!J.done;J=q.next()){var Y=J.value;Y.next(w)}}catch(X){z={error:X}}finally{try{if(J&&!J.done&&(Z=q.return))Z.call(q)}finally{if(z)throw z.error}}}})},D.prototype.error=function(w){var _=this;Wy.errorContext(function(){if(_._throwIfClosed(),!_.isStopped){_.hasError=_.isStopped=!0,_.thrownError=w;var z=_.observers;while(z.length)z.shift().error(w)}})},D.prototype.complete=function(){var w=this;Wy.errorContext(function(){if(w._throwIfClosed(),!w.isStopped){w.isStopped=!0;var _=w.observers;while(_.length)_.shift().complete()}})},D.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(D.prototype,"observed",{get:function(){var w;return((w=this.observers)===null||w===void 0?void 0:w.length)>0},enumerable:!1,configurable:!0}),D.prototype._trySubscribe=function(w){return this._throwIfClosed(),k.prototype._trySubscribe.call(this,w)},D.prototype._subscribe=function(w){return this._throwIfClosed(),this._checkFinalizedStatuses(w),this._innerSubscribe(w)},D.prototype._innerSubscribe=function(w){var _=this,z=this,Z=z.hasError,q=z.isStopped,J=z.observers;if(Z||q)return By.EMPTY_SUBSCRIPTION;return this.currentObservers=null,J.push(w),new By.Subscription(function(){_.currentObservers=null,Gc.arrRemove(J,w)})},D.prototype._checkFinalizedStatuses=function(w){var _=this,z=_.hasError,Z=_.thrownError,q=_.isStopped;if(z)w.error(Z);else if(q)w.complete()},D.prototype.asObservable=function(){var w=new dQ.Observable;return w.source=this,w},D.create=function(w,_){return new Uy(w,_)},D}(dQ.Observable);p1.Subject=pQ;var Uy=function(k){bQ(D,k);function D(w,_){var z=k.call(this)||this;return z.destination=w,z.source=_,z}return D.prototype.next=function(w){var _,z;(z=(_=this.destination)===null||_===void 0?void 0:_.next)===null||z===void 0||z.call(_,w)},D.prototype.error=function(w){var _,z;(z=(_=this.destination)===null||_===void 0?void 0:_.error)===null||z===void 0||z.call(_,w)},D.prototype.complete=function(){var w,_;(_=(w=this.destination)===null||w===void 0?void 0:w.complete)===null||_===void 0||_.call(w)},D.prototype._subscribe=function(w){var _,z;return(z=(_=this.source)===null||_===void 0?void 0:_.subscribe(w))!==null&&z!==void 0?z:By.EMPTY_SUBSCRIPTION},D}(pQ);p1.AnonymousSubject=Uy});var Vy=H((xw)=>{var Wc=xw&&xw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(xw,"__esModule",{value:!0});xw.BehaviorSubject=void 0;var Bc=Ck(),Uc=function(k){Wc(D,k);function D(w){var _=k.call(this)||this;return _._value=w,_}return Object.defineProperty(D.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),D.prototype._subscribe=function(w){var _=k.prototype._subscribe.call(this,w);return!_.closed&&w.next(this._value),_},D.prototype.getValue=function(){var w=this,_=w.hasError,z=w.thrownError,Z=w._value;if(_)throw z;return this._throwIfClosed(),Z},D.prototype.next=function(w){k.prototype.next.call(this,this._value=w)},D}(Bc.Subject);xw.BehaviorSubject=Uc});var Y6=H((uQ)=>{Object.defineProperty(uQ,"__esModule",{value:!0});uQ.dateTimestampProvider=void 0;uQ.dateTimestampProvider={now:function(){return(uQ.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var X6=H((cw)=>{var Vc=cw&&cw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(cw,"__esModule",{value:!0});cw.ReplaySubject=void 0;var Ec=Ck(),Pc=Y6(),Nc=function(k){Vc(D,k);function D(w,_,z){if(w===void 0)w=1/0;if(_===void 0)_=1/0;if(z===void 0)z=Pc.dateTimestampProvider;var Z=k.call(this)||this;return Z._bufferSize=w,Z._windowTime=_,Z._timestampProvider=z,Z._buffer=[],Z._infiniteTimeWindow=!0,Z._infiniteTimeWindow=_===1/0,Z._bufferSize=Math.max(1,w),Z._windowTime=Math.max(1,_),Z}return D.prototype.next=function(w){var _=this,z=_.isStopped,Z=_._buffer,q=_._infiniteTimeWindow,J=_._timestampProvider,Y=_._windowTime;if(!z)Z.push(w),!q&&Z.push(J.now()+Y);this._trimBuffer(),k.prototype.next.call(this,w)},D.prototype._subscribe=function(w){this._throwIfClosed(),this._trimBuffer();var _=this._innerSubscribe(w),z=this,Z=z._infiniteTimeWindow,q=z._buffer,J=q.slice();for(var Y=0;Y<J.length&&!w.closed;Y+=Z?1:2)w.next(J[Y]);return this._checkFinalizedStatuses(w),_},D.prototype._trimBuffer=function(){var w=this,_=w._bufferSize,z=w._timestampProvider,Z=w._buffer,q=w._infiniteTimeWindow,J=(q?1:2)*_;if(_<1/0&&J<Z.length&&Z.splice(0,Z.length-J),!q){var Y=z.now(),X=0;for(var B=1;B<Z.length&&Z[B]<=Y;B+=2)X=B;X&&Z.splice(0,X+1)}},D}(Ec.Subject);cw.ReplaySubject=Nc});var K6=H((mw)=>{var Mc=mw&&mw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(mw,"__esModule",{value:!0});mw.AsyncSubject=void 0;var Lc=Ck(),Cc=function(k){Mc(D,k);function D(){var w=k!==null&&k.apply(this,arguments)||this;return w._value=null,w._hasValue=!1,w._isComplete=!1,w}return D.prototype._checkFinalizedStatuses=function(w){var _=this,z=_.hasError,Z=_._hasValue,q=_._value,J=_.thrownError,Y=_.isStopped,X=_._isComplete;if(z)w.error(J);else if(Y||X)Z&&w.next(q),w.complete()},D.prototype.next=function(w){if(!this.isStopped)this._value=w,this._hasValue=!0},D.prototype.complete=function(){var w=this,_=w._hasValue,z=w._value,Z=w._isComplete;if(!Z)this._isComplete=!0,_&&k.prototype.next.call(this,z),k.prototype.complete.call(this)},D}(Lc.Subject);mw.AsyncSubject=Cc});var nQ=H((vw)=>{var Tc=vw&&vw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(vw,"__esModule",{value:!0});vw.Action=void 0;var Rc=z1(),Ic=function(k){Tc(D,k);function D(w,_){return k.call(this)||this}return D.prototype.schedule=function(w,_){if(_===void 0)_=0;return this},D}(Rc.Subscription);vw.Action=Ic});var sQ=H((u1)=>{var iQ=u1&&u1.__read||function(k,D){var w=typeof Symbol==="function"&&k[Symbol.iterator];if(!w)return k;var _=w.call(k),z,Z=[],q;try{while((D===void 0||D-- >0)&&!(z=_.next()).done)Z.push(z.value)}catch(J){q={error:J}}finally{try{if(z&&!z.done&&(w=_.return))w.call(_)}finally{if(q)throw q.error}}return Z},oQ=u1&&u1.__spreadArray||function(k,D){for(var w=0,_=D.length,z=k.length;w<_;w++,z++)k[z]=D[w];return k};Object.defineProperty(u1,"__esModule",{value:!0});u1.intervalProvider=void 0;u1.intervalProvider={setInterval:function(k,D){var w=[];for(var _=2;_<arguments.length;_++)w[_-2]=arguments[_];var z=u1.intervalProvider.delegate;if(z===null||z===void 0?void 0:z.setInterval)return z.setInterval.apply(z,oQ([k,D],iQ(w)));return setInterval.apply(void 0,oQ([k,D],iQ(w)))},clearInterval:function(k){var D=u1.intervalProvider.delegate;return((D===null||D===void 0?void 0:D.clearInterval)||clearInterval)(k)},delegate:void 0}});var lw=H((aw)=>{var Ac=aw&&aw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(aw,"__esModule",{value:!0});aw.AsyncAction=void 0;var gc=nQ(),rQ=sQ(),jc=ED(),Oc=function(k){Ac(D,k);function D(w,_){var z=k.call(this,w,_)||this;return z.scheduler=w,z.work=_,z.pending=!1,z}return D.prototype.schedule=function(w,_){var z;if(_===void 0)_=0;if(this.closed)return this;this.state=w;var Z=this.id,q=this.scheduler;if(Z!=null)this.id=this.recycleAsyncId(q,Z,_);return this.pending=!0,this.delay=_,this.id=(z=this.id)!==null&&z!==void 0?z:this.requestAsyncId(q,this.id,_),this},D.prototype.requestAsyncId=function(w,_,z){if(z===void 0)z=0;return rQ.intervalProvider.setInterval(w.flush.bind(w,this),z)},D.prototype.recycleAsyncId=function(w,_,z){if(z===void 0)z=0;if(z!=null&&this.delay===z&&this.pending===!1)return _;if(_!=null)rQ.intervalProvider.clearInterval(_);return},D.prototype.execute=function(w,_){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var z=this._execute(w,_);if(z)return z;else if(this.pending===!1&&this.id!=null)this.id=this.recycleAsyncId(this.scheduler,this.id,null)},D.prototype._execute=function(w,_){var z=!1,Z;try{this.work(w)}catch(q){z=!0,Z=q?q:new Error("Scheduled action threw falsy error")}if(z)return this.unsubscribe(),Z},D.prototype.unsubscribe=function(){if(!this.closed){var w=this,_=w.id,z=w.scheduler,Z=z.actions;if(this.work=this.state=this.scheduler=null,this.pending=!1,jc.arrRemove(Z,this),_!=null)this.id=this.recycleAsyncId(z,_,null);this.delay=null,k.prototype.unsubscribe.call(this)}},D}(gc.Action);aw.AsyncAction=Oc});var DY=H((eQ)=>{Object.defineProperty(eQ,"__esModule",{value:!0});eQ.TestTools=eQ.Immediate=void 0;var hc=1,Py,H6={};function tQ(k){if(k in H6)return delete H6[k],!0;return!1}eQ.Immediate={setImmediate:function(k){var D=hc++;if(H6[D]=!0,!Py)Py=Promise.resolve();return Py.then(function(){return tQ(D)&&k()}),D},clearImmediate:function(k){tQ(k)}};eQ.TestTools={pending:function(){return Object.keys(H6).length}}});var _Y=H((n1)=>{var xc=n1&&n1.__read||function(k,D){var w=typeof Symbol==="function"&&k[Symbol.iterator];if(!w)return k;var _=w.call(k),z,Z=[],q;try{while((D===void 0||D-- >0)&&!(z=_.next()).done)Z.push(z.value)}catch(J){q={error:J}}finally{try{if(z&&!z.done&&(w=_.return))w.call(_)}finally{if(q)throw q.error}}return Z},cc=n1&&n1.__spreadArray||function(k,D){for(var w=0,_=D.length,z=k.length;w<_;w++,z++)k[z]=D[w];return k};Object.defineProperty(n1,"__esModule",{value:!0});n1.immediateProvider=void 0;var wY=DY(),mc=wY.Immediate.setImmediate,vc=wY.Immediate.clearImmediate;n1.immediateProvider={setImmediate:function(){var k=[];for(var D=0;D<arguments.length;D++)k[D]=arguments[D];var w=n1.immediateProvider.delegate;return((w===null||w===void 0?void 0:w.setImmediate)||mc).apply(void 0,cc([],xc(k)))},clearImmediate:function(k){var D=n1.immediateProvider.delegate;return((D===null||D===void 0?void 0:D.clearImmediate)||vc)(k)},delegate:void 0}});var yY=H((dw)=>{var ac=dw&&dw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(dw,"__esModule",{value:!0});dw.AsapAction=void 0;var lc=lw(),zY=_Y(),dc=function(k){ac(D,k);function D(w,_){var z=k.call(this,w,_)||this;return z.scheduler=w,z.work=_,z}return D.prototype.requestAsyncId=function(w,_,z){if(z===void 0)z=0;if(z!==null&&z>0)return k.prototype.requestAsyncId.call(this,w,_,z);return w.actions.push(this),w._scheduled||(w._scheduled=zY.immediateProvider.setImmediate(w.flush.bind(w,void 0)))},D.prototype.recycleAsyncId=function(w,_,z){var Z;if(z===void 0)z=0;if(z!=null?z>0:this.delay>0)return k.prototype.recycleAsyncId.call(this,w,_,z);var q=w.actions;if(_!=null&&((Z=q[q.length-1])===null||Z===void 0?void 0:Z.id)!==_){if(zY.immediateProvider.clearImmediate(_),w._scheduled===_)w._scheduled=void 0}return},D}(lc.AsyncAction);dw.AsapAction=dc});var Ny=H((fY)=>{Object.defineProperty(fY,"__esModule",{value:!0});fY.Scheduler=void 0;var bc=Y6(),pc=function(){function k(D,w){if(w===void 0)w=k.now;this.schedulerActionCtor=D,this.now=w}return k.prototype.schedule=function(D,w,_){if(w===void 0)w=0;return new this.schedulerActionCtor(this,D).schedule(_,w)},k.now=bc.dateTimestampProvider.now,k}();fY.Scheduler=pc});var pw=H((bw)=>{var uc=bw&&bw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(bw,"__esModule",{value:!0});bw.AsyncScheduler=void 0;var qY=Ny(),nc=function(k){uc(D,k);function D(w,_){if(_===void 0)_=qY.Scheduler.now;var z=k.call(this,w,_)||this;return z.actions=[],z._active=!1,z}return D.prototype.flush=function(w){var _=this.actions;if(this._active){_.push(w);return}var z;this._active=!0;do if(z=w.execute(w.state,w.delay))break;while(w=_.shift());if(this._active=!1,z){while(w=_.shift())w.unsubscribe();throw z}},D}(qY.Scheduler);bw.AsyncScheduler=nc});var $Y=H((uw)=>{var ic=uw&&uw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(uw,"__esModule",{value:!0});uw.AsapScheduler=void 0;var oc=pw(),sc=function(k){ic(D,k);function D(){return k!==null&&k.apply(this,arguments)||this}return D.prototype.flush=function(w){this._active=!0;var _=this._scheduled;this._scheduled=void 0;var z=this.actions,Z;w=w||z.shift();do if(Z=w.execute(w.state,w.delay))break;while((w=z[0])&&w.id===_&&z.shift());if(this._active=!1,Z){while((w=z[0])&&w.id===_&&z.shift())w.unsubscribe();throw Z}},D}(oc.AsyncScheduler);uw.AsapScheduler=sc});var XY=H((JY)=>{Object.defineProperty(JY,"__esModule",{value:!0});JY.asap=JY.asapScheduler=void 0;var rc=yY(),tc=$Y();JY.asapScheduler=new tc.AsapScheduler(rc.AsapAction);JY.asap=JY.asapScheduler});var pk=H((KY)=>{Object.defineProperty(KY,"__esModule",{value:!0});KY.async=KY.asyncScheduler=void 0;var ec=lw(),km=pw();KY.asyncScheduler=new km.AsyncScheduler(ec.AsyncAction);KY.async=KY.asyncScheduler});var GY=H((nw)=>{var Dm=nw&&nw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(nw,"__esModule",{value:!0});nw.QueueAction=void 0;var wm=lw(),_m=function(k){Dm(D,k);function D(w,_){var z=k.call(this,w,_)||this;return z.scheduler=w,z.work=_,z}return D.prototype.schedule=function(w,_){if(_===void 0)_=0;if(_>0)return k.prototype.schedule.call(this,w,_);return this.delay=_,this.state=w,this.scheduler.flush(this),this},D.prototype.execute=function(w,_){return _>0||this.closed?k.prototype.execute.call(this,w,_):this._execute(w,_)},D.prototype.requestAsyncId=function(w,_,z){if(z===void 0)z=0;if(z!=null&&z>0||z==null&&this.delay>0)return k.prototype.requestAsyncId.call(this,w,_,z);return w.flush(this),0},D}(wm.AsyncAction);nw.QueueAction=_m});var WY=H((iw)=>{var zm=iw&&iw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(iw,"__esModule",{value:!0});iw.QueueScheduler=void 0;var ym=pw(),fm=function(k){zm(D,k);function D(){return k!==null&&k.apply(this,arguments)||this}return D}(ym.AsyncScheduler);iw.QueueScheduler=fm});var EY=H((BY)=>{Object.defineProperty(BY,"__esModule",{value:!0});BY.queue=BY.queueScheduler=void 0;var Zm=GY(),qm=WY();BY.queueScheduler=new qm.QueueScheduler(Zm.QueueAction);BY.queue=BY.queueScheduler});var NY=H((ow)=>{var $m=ow&&ow.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(ow,"__esModule",{value:!0});ow.AnimationFrameAction=void 0;var Jm=lw(),PY=Fy(),Qm=function(k){$m(D,k);function D(w,_){var z=k.call(this,w,_)||this;return z.scheduler=w,z.work=_,z}return D.prototype.requestAsyncId=function(w,_,z){if(z===void 0)z=0;if(z!==null&&z>0)return k.prototype.requestAsyncId.call(this,w,_,z);return w.actions.push(this),w._scheduled||(w._scheduled=PY.animationFrameProvider.requestAnimationFrame(function(){return w.flush(void 0)}))},D.prototype.recycleAsyncId=function(w,_,z){var Z;if(z===void 0)z=0;if(z!=null?z>0:this.delay>0)return k.prototype.recycleAsyncId.call(this,w,_,z);var q=w.actions;if(_!=null&&((Z=q[q.length-1])===null||Z===void 0?void 0:Z.id)!==_)PY.animationFrameProvider.cancelAnimationFrame(_),w._scheduled=void 0;return},D}(Jm.AsyncAction);ow.AnimationFrameAction=Qm});var MY=H((sw)=>{var Ym=sw&&sw.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(sw,"__esModule",{value:!0});sw.AnimationFrameScheduler=void 0;var Xm=pw(),Km=function(k){Ym(D,k);function D(){return k!==null&&k.apply(this,arguments)||this}return D.prototype.flush=function(w){this._active=!0;var _=this._scheduled;this._scheduled=void 0;var z=this.actions,Z;w=w||z.shift();do if(Z=w.execute(w.state,w.delay))break;while((w=z[0])&&w.id===_&&z.shift());if(this._active=!1,Z){while((w=z[0])&&w.id===_&&z.shift())w.unsubscribe();throw Z}},D}(Xm.AsyncScheduler);sw.AnimationFrameScheduler=Km});var RY=H((LY)=>{Object.defineProperty(LY,"__esModule",{value:!0});LY.animationFrame=LY.animationFrameScheduler=void 0;var Hm=NY(),Fm=MY();LY.animationFrameScheduler=new Fm.AnimationFrameScheduler(Hm.AnimationFrameAction);LY.animationFrame=LY.animationFrameScheduler});var gY=H((sD)=>{var IY=sD&&sD.__extends||function(){var k=function(D,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,z){_.__proto__=z}||function(_,z){for(var Z in z)if(Object.prototype.hasOwnProperty.call(z,Z))_[Z]=z[Z]},k(D,w)};return function(D,w){if(typeof w!=="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");k(D,w);function _(){this.constructor=D}D.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)}}();Object.defineProperty(sD,"__esModule",{value:!0});sD.VirtualAction=sD.VirtualTimeScheduler=void 0;var Gm=lw(),Wm=z1(),Bm=pw(),Um=function(k){IY(D,k);function D(w,_){if(w===void 0)w=AY;if(_===void 0)_=1/0;var z=k.call(this,w,function(){return z.frame})||this;return z.maxFrames=_,z.frame=0,z.index=-1,z}return D.prototype.flush=function(){var w=this,_=w.actions,z=w.maxFrames,Z,q;while((q=_[0])&&q.delay<=z)if(_.shift(),this.frame=q.delay,Z=q.execute(q.state,q.delay))break;if(Z){while(q=_.shift())q.unsubscribe();throw Z}},D.frameTimeFactor=10,D}(Bm.AsyncScheduler);sD.VirtualTimeScheduler=Um;var AY=function(k){IY(D,k);function D(w,_,z){if(z===void 0)z=w.index+=1;var Z=k.call(this,w,_)||this;return Z.scheduler=w,Z.work=_,Z.index=z,Z.active=!0,Z.index=w.index=z,Z}return D.prototype.schedule=function(w,_){if(_===void 0)_=0;if(Number.isFinite(_)){if(!this.id)return k.prototype.schedule.call(this,w,_);this.active=!1;var z=new D(this.scheduler,this.work);return this.add(z),z.schedule(w,_)}else return Wm.Subscription.EMPTY},D.prototype.requestAsyncId=function(w,_,z){if(z===void 0)z=0;this.delay=w.frame+z;var Z=w.actions;return Z.push(this),Z.sort(D.sortActions),1},D.prototype.recycleAsyncId=function(w,_,z){if(z===void 0)z=0;return},D.prototype._execute=function(w,_){if(this.active===!0)return k.prototype._execute.call(this,w,_)},D.sortActions=function(w,_){if(w.delay===_.delay)if(w.index===_.index)return 0;else if(w.index>_.index)return 1;else return-1;else if(w.delay>_.delay)return 1;else return-1},D}(Gm.AsyncAction);sD.VirtualAction=AY});var j1=H((OY)=>{Object.defineProperty(OY,"__esModule",{value:!0});OY.empty=OY.EMPTY=void 0;var jY=l0();OY.EMPTY=new jY.Observable(function(k){return k.complete()});function Vm(k){return k?Em(k):OY.EMPTY}OY.empty=Vm;function Em(k){return new jY.Observable(function(D){return k.schedule(function(){return D.complete()})})}});var U_=H((xY)=>{Object.defineProperty(xY,"__esModule",{value:!0});xY.isScheduler=void 0;var Pm=c0();function Nm(k){return k&&Pm.isFunction(k.schedule)}xY.isScheduler=Nm});var uk=H((mY)=>{Object.defineProperty(mY,"__esModule",{value:!0});mY.popNumber=mY.popScheduler=mY.popResultSelector=void 0;var Mm=c0(),Lm=U_();function My(k){return k[k.length-1]}function Cm(k){return Mm.isFunction(My(k))?k.pop():void 0}mY.popResultSelector=Cm;function Tm(k){return Lm.isScheduler(My(k))?k.pop():void 0}mY.popScheduler=Tm;function Rm(k,D){return typeof My(k)==="number"?k.pop():D}mY.popNumber=Rm});var F6=H((aY)=>{Object.defineProperty(aY,"__esModule",{value:!0});aY.isArrayLike=void 0;aY.isArrayLike=function(k){return k&&typeof k.length==="number"&&typeof k!=="function"}});var Ly=H((dY)=>{Object.defineProperty(dY,"__esModule",{value:!0});dY.isPromise=void 0;var gm=c0();function jm(k){return gm.isFunction(k===null||k===void 0?void 0:k.then)}dY.isPromise=jm});var Cy=H((pY)=>{Object.defineProperty(pY,"__esModule",{value:!0});pY.isInteropObservable=void 0;var Om=G_(),hm=c0();function Sm(k){return hm.isFunction(k[Om.observable])}pY.isInteropObservable=Sm});var Ty=H((nY)=>{Object.defineProperty(nY,"__esModule",{value:!0});nY.isAsyncIterable=void 0;var xm=c0();function cm(k){return Symbol.asyncIterator&&xm.isFunction(k===null||k===void 0?void 0:k[Symbol.asyncIterator])}nY.isAsyncIterable=cm});var Ry=H((oY)=>{Object.defineProperty(oY,"__esModule",{value:!0});oY.createInvalidObservableTypeError=void 0;function mm(k){return new TypeError("You provided "+(k!==null&&typeof k==="object"?"an invalid object":"'"+k+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}oY.createInvalidObservableTypeError=mm});var Iy=H((tY)=>{Object.defineProperty(tY,"__esModule",{value:!0});tY.iterator=tY.getSymbolIterator=void 0;function rY(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}tY.getSymbolIterator=rY;tY.iterator=rY()});var Ay=H((kX)=>{Object.defineProperty(kX,"__esModule",{value:!0});kX.isIterable=void 0;var am=Iy(),lm=c0();function dm(k){return lm.isFunction(k===null||k===void 0?void 0:k[