Socket
Socket
Sign inDemoInstall

futoin-executor

Package Overview
Dependencies
64
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.5 to 2.3.6

3

CHANGELOG.txt

@@ -0,1 +1,4 @@

=== 2.3.6 (2021-08-14) ===
CHANGED: dependency maintenance
=== 2.3.5 (2021-01-31) ===

@@ -2,0 +5,0 @@ CHANGED: dependency maintenance

2

dist/futoin-executor.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("futoin-asyncsteps"),require("futoin-invoker"),require("futoin-asyncevent")):"function"==typeof define&&define.amd?define(["futoin-asyncsteps","futoin-invoker","futoin-asyncevent"],t):"object"==typeof exports?exports["futoin-executor"]=t(require("futoin-asyncsteps"),require("futoin-invoker"),require("futoin-asyncevent")):e.FutoInExecutor=t(e.$as,e.FutoInInvoker,e.$asyncevent)}(self,(function(e,t,r){return(()=>{var n={9411:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,r,n,u,l=(n=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=a(n);if(u){var r=a(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return c(this,e)});function f(){return o(this,f),l.apply(this,arguments)}return t=f,r=[{key:"register",value:function(e,t,r,n,o){var i=(o=o||{}).version||"0.1",s=this.spec(i);o.nativeImpl=this,o.specDirs=[s],t.register(e,"#basicauth",s.iface+":"+s.version,r,n,o)}}],null&&i(t.prototype,null),r&&i(t,r),f}(r(7034).NativeIface);e.exports=u,(u._specs={})[.1]={iface:"futoin.basicauth",version:"0.1",ftn3rev:"1.1",funcs:{auth:{params:{user:{type:"string",desc:"User name"},pwd:{type:"string",desc:"User password"},client_addr:{type:"string",desc:"Client's source address"},is_secure:{type:"boolean",desc:"Is secure channel?"}},result:{local_id:{type:"integer",desc:"Local user ID"},global_id:{type:"string",desc:"Global user ID"},details:{type:"map",desc:"User details"},seclvl:{type:"string",desc:"Security level"}},throws:["AuthenticationFailure"],desc:"Try to authenticate user with provided credentials"},checkHMAC:{params:{msg:{type:"map",desc:"Message object"},user:{type:"string",desc:"User name"},algo:{type:"string",desc:"HMAC algorithm"},sig:{type:"string",desc:"Request signature"},client_addr:{type:"string",desc:"Client's source address"},is_secure:{type:"boolean",desc:"Is secure channel?"}},result:{local_id:{type:"integer",desc:"Local user ID"},global_id:{type:"string",desc:"Global user ID"},details:{type:"map",desc:"User details"},seclvl:{type:"string",desc:"Security level"}},throws:["AuthenticationFailure"],desc:"Try to authenticate user with provided credentials"},genHMAC:{params:{msg:{type:"map",desc:"Message object"},user:{type:"string",desc:"User name"},algo:{type:"string",desc:"HMAC algorithm"}},result:{sig:{type:"string",desc:"Global user ID"}},throws:["InvalidUser"],desc:"Try to authenticate user with provided credentials"},getUserDetails:{params:{local_id:{type:"integer",desc:"Local user ID"},fields:{type:"map",default:{},desc:"List of field to retrieve, default - all"}},result:{details:{type:"map",desc:"User details"}},throws:["InvalidUser"],desc:"Try to authenticate user with provided credentials"}},requires:["SecureChannel","AllowAnonymous"],desc:"Basic Auth interface"}},8632:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(9411),i=r(7034).SpecTools,s=i.genHMACRaw,c=i.getRawAlgo,a=i.checkHMAC,u=i.secureEquals,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._user_list={},this._user_ids={},this._next_id=1}var t,r,i;return t=e,i=[{key:"register",value:function(e,t){var r=o.spec("0.1"),n=r.iface+":"+r.version,i=new this;return t.register(e,n,i,[r]),i}}],(r=[{key:"addUser",value:function(e,t,r,n){var o=this._next_id++;(r=r||{}).Login=e;var i={secret:t,info:{local_id:o,global_id:"G"+o,details:r},system_user:n||!1};this._user_list[e]=i,this._user_ids[o]=i}},{key:"_getUser",value:function(e,t){var r=this._user_list[t];e.add((function(e){return e.success(r)}))}},{key:"_getUserByID",value:function(e,t){var r=this._user_ids[t];e.add((function(e){return e.success(r)}))}},{key:"auth",value:function(e,t){var r=t.params();this._getUser(e,r.user),e.add((function(e,n){n&&u(n.secret,r.pwd)?(t.result().seclvl=n.system_user?t.SL_SYSTEM:t.SL_SAFE_OPS,e.success(n.info)):e.error("AuthenticationFailure")}))}},{key:"checkHMAC",value:function(e,t){var r=t.params();this._getUser(e,r.user),e.add((function(e,n){if(n){var o=c(e,r.algo),i=s(o,n.secret,r.msg),u=new Buffer(r.sig,"base64");if(a(i,u))return t.result().seclvl=n.system_user?t.SL_SYSTEM:t.SL_PRIVILEGED_OPS,void e.success(n.info)}e.error("AuthenticationFailure")}))}},{key:"genHMAC",value:function(e,t){var r=t.params();this._getUser(e,r.user),e.add((function(e,n){if(n){var o=c(e,r.algo),i=s(o,n.secret,r.msg);t.result().sig=i.toString("base64")}else e.error("InvalidUser")}))}},{key:"getUserDetails",value:function(e,t){var r=t.params();this._getUserByID(e,r.local_id),e.add((function(e,r){r?t.result().details=r.info.details:e.error("InvalidUser")}))}}])&&n(t.prototype,r),i&&n(t,i),e}();e.exports=l},8650:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,r){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=r(7287),h=r(6913),y=r(4495),d=r(75),g=window,b=r(1333),E=r(8641),m=r(5071),O=r(7178),x=function(e){a(r,e);var t=l(r);function r(e,n){var o;return i(this,r),(o=t.call(this,e))._event_origin=n.origin,o._event_source=n.source,o._last_used=d(),o._is_secure_channel=!0,o}return c(r,[{key:"type",value:function(){return"BROWSER"}},{key:"isStateful",value:function(){return!0}},{key:"_getPerformRequest",value:function(){var e=this._event_origin,t=this._event_source,r=this._executor._reverse_requests,n=this._executor._msg_sniffer;return function(o,i,s){o.add((function(o){var c="S"+r.rid++;if(s.rid=c,i.expect_response){var a=r.sentreqs;a[c]={reqas:o,evt_origin:e,evt_source:t},o.setCancel((function(e){delete a[c]}))}n(e,s,!1),t.postMessage(s,e)}))}}}]),r}(E),A={clientTimeoutMS:600,allowedOrigins:[]};Object.freeze(A.allowedOrigins),Object.freeze(A);var S=function(e){a(r,e);var t=l(r);function r(e,n){var o;i(this,r),o=t.call(this,e,n),n=h({},n,A),o._msg_sniffer=n.messageSniffer,o._contexts=[],o._reverse_requests={rid:1,sentreqs:{}};var s=n.allowedOrigins||{};s instanceof Array&&(s=v(s,s)),o.allowed_origins=s;var c=n.clientTimeoutMS;return function e(){for(var t=o._contexts,r=d()-c,n=t.length-1;n>=0;--n){var i=t[n];i._last_used<r&&(i._cleanup(),t.splice(n,1))}setTimeout(e,1e3*c)}(),o._event_listener=function(e){return o.handleMessage(e)},g.addEventListener("message",o._event_listener),Object.seal(p(o)),o}return c(r,[{key:"handleMessage",value:function(e){var t=this;this._msg_sniffer(e,e.data,!0);var r=e.data,o=e.source,i=e.origin;if("object"===n(r)&&"rid"in r){var s=r.rid;if(!("f"in r)&&"S"===s.charAt(0)){var c=this._reverse_requests.sentreqs,a=c[s];return a&&o===a.evt_source&&i===a.evt_origin&&(a.reqas.success(r,"application/futoin+json"),delete c[s]),void(e.stopPropagation&&e.stopPropagation())}if("f"in r&&"C"===s.charAt(0)&&i in this.allowed_origins){for(var u=null,l=this._contexts,f=0,p=l.length;f<p;++f){var _=l[f];if(_._event_source===o&&_._event_origin===i){u=_;break}}u?u._last_used=d():(u=new x(this,e),l.push(u));var v=new m("LOCAL",o,i),h=new O(this,r),g=h.info;g.CHANNEL_CONTEXT=u,g.CLIENT_ADDR=v,g.SECURE_CHANNEL=this._is_secure_channel;var b=y();b.state.reqinfo=h,h._as=b;var E=function(r){h._cleanup();var n={e:"InternalError",rid:s};t._msg_sniffer(e,n,!1),u._event_source.postMessage(n,u._event_origin)};b.add((function(r){r.setCancel(E),t.process(r),r.add((function(r){var n=g.RAW_RESPONSE;h._cleanup(),null!==n&&(t._msg_sniffer(e,n,!1),u._event_source.postMessage(n,u._event_origin))}))})),b.execute(),e.stopPropagation&&e.stopPropagation()}}}},{key:"close",value:function(e){g.removeEventListener("message",this._event_listener),o(_(r.prototype),"close",this).call(this,e)}}]),r}(b);e.exports=S},8641:e=>{"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._executor=t,this._ifaces={},this.state=function(){return this.state}}var r,n;return r=e,(n=[{key:"type",value:function(){return null}},{key:"isStateful",value:function(){return!1}},{key:"onInvokerAbort",value:function(e,t){}},{key:"_openRawInput",value:function(){return null}},{key:"_openRawOutput",value:function(){return null}},{key:"register",value:function(e,t,r){var n=this;this.isStateful()||e.error("InvokerError","Not stateful channel"),"sendOnBehalfOf"in(r=r||{})||(r.sendOnBehalfOf=!1),"limitZone"in r||(r.limitZone="unlimited"),"secureChannel"in r||(r.secureChannel=this._executor._is_secure_channel),this._executor.ccm().register(e,null,t,this._getPerformRequest(),null,r),e.add((function(e,r,o){n._ifaces[t]=o}))}},{key:"iface",value:function(e){return this._ifaces[e]}},{key:"_getPerformRequest",value:function(){return null}},{key:"_cleanup",value:function(){this._executor=null,this._ifaces=null,this.state=null}}])&&t(r.prototype,n),e}();e.exports=r},7048:e=>{"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ccm=t,this._base_id=r,this._sequence_id=n}var r,n;return r=e,(n=[{key:"baseID",value:function(){return this._base_id}},{key:"sequenceID",value:function(){return this._sequence_id}},{key:"encrypt",value:function(e,t){return e.error("NotImplemented","Derived key encryption is not supported yet"),null}},{key:"decrypt",value:function(e,t){return e.error("NotImplemented","Derived key decryption is not supported yet"),null}},{key:"_cleanup",value:function(){this._ccm=null}}])&&t(r.prototype,n),e}();e.exports=r},1333:(e,t,r)=>{"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=r(1747),h=r(7034),y=r(4495),d=r(8754),g=r(8641),b=r(5071),E=r(7178),m=r(2112),O=r(8548),x=h.SpecTools,A=x.checkRequestMessage,S=x.checkResponseMessage,w=x.normalizeURLParams,R=x.STANDARD_ERRORS,I=x._ifacever_pattern,k=x.loadIface,N=x.globalLoadCache,C=y.Errors,j=C.CommError,T=C.InternalError,L=C.NotImplemented,P=C.InvalidRequest,U=C.UnknownInterface,D=C.NotSupportedVersion,F=C.SecurityError,q=C.PleaseReauth,M=Object.freeze({Anonymous:1,Info:2,SafeOps:3,PrivilegedOps:4,ExceptionalOps:5,System:6}),H=function(e){a(r,e);var t=l(r);function r(){var e;i(this,r);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return e=t.call.apply(t,[this].concat(o)),Object.seal(p(e)),e}return c(r,[{key:"type",value:function(){return"CALLBACK"}},{key:"isStateful",value:function(){return!0}}]),r}(g),z=function(e){a(r,e);var t=l(r);function r(e,n){var o;return i(this,r),(o=t.call(this,e))._invoker_executor=n,Object.seal(p(o)),o}return c(r,[{key:"type",value:function(){return"INTERNAL"}},{key:"isStateful",value:function(){return!0}},{key:"_getPerformRequest",value:function(){var e=this._invoker_executor;return e?function(t,r,n){e.onInternalRequest(t,r.info,n)}:this._commError}},{key:"_commError",value:function(e){e.error(j,"No Invoker's Executor for internal call")}},{key:"onInvokerAbort",value:function(e,t){this._invoker_executor.once("close",(function(){return e(t)}))}}]),r}(g),W={messageSniffer:function(){},specDirs:[],prodMode:!1,reqTimeout:5e3,heavyReqTimeout:6e4,securityProvider:null};Object.freeze(W);var B=function(){function e(t,r){var n=this;i(this,e),d(this,["ready","request","response","notExpected","close"]),this._ccm=t,this._ifaces={},this._impls={};var o=(r=v({},r,W)).specDirs;o instanceof Array||(o=[o]),this._specdirs=o,this._dev_checks=!r.prodMode,this._msg_sniffer=r.messageSniffer,this._request_timeout=r.reqTimeout,this._heavy_timeout=r.heavyReqTimeout,this._maxReqSize=this.SAFE_PAYLOAD_LIMIT,this._maxRspSize=this.SAFE_PAYLOAD_LIMIT,this._maxAnySize=this.SAFE_PAYLOAD_LIMIT,this._secprov=r.securityProvider||new O;var s=function(){return n.close};t.once("close",s),this.once("close",(function(){return t.off("close",s)}))}return c(e,[{key:"ccm",value:function(){return this._ccm}},{key:"register",value:function(e,t,r,n){var o=this,i=t.match(I);null===i&&e.error(T,"Invalid ifacever: ".concat(t));var s=i[1],c=i[4],a=i[5],u=i[6],l=this._ifaces;s in l&&a in l[s]&&e.error(T,"Already registered: ".concat(t));var f={iface:s,version:c,mjrver:a,mnrver:u,derived:void 0};k(e,f,n||this._specdirs,N());var p=this._impls;e.add((function(e){s in l||(l[s]={},p[s]={}),l[s][a]=f,p[s][a]=r;for(var t=f.inherits,n=t.length-1;n>=0;--n){var i=t[n].match(I),c=i[1],u=i[4],_=i[5],v={iface:c,version:u,mjrver:_,mnrver:i[6],derived:f};c in l&&_ in l[c]&&(delete l[s][a],e.error(T,"Conflict with inherited interfaces: ".concat(i[0]))),c in l||(l[c]={}),l[c][_]=v}var h=o._maxReqSize,y=o._maxRspSize;for(var d in f.funcs)d=f.funcs[d],h=Math.max(h,d._max_req_size),y=Math.max(y,d._max_rsp_size);o._maxReqSize=h,o._maxRspSize=y,o._maxAnySize=Math.max(h,y)}))}},{key:"onEndpointRequest",value:function(e,t,r){var n=this,o=e._callback_context;o||(o=new H(this),e._callback_context=o);var i=new E(this,t),s=new b(o.type(),null,e.regname),c=i.info;c.CHANNEL_CONTEXT=o,c.CLIENT_ADDR=s,c.SECURE_CHANNEL=e.secure_channel;var a=y();i._as=a,a.add((function(e){e.setCancel((function(e){var t={rid:i._rawreq.rid,e:"InternalError"};i._cleanup(),r(t)})),e.state.reqinfo=i,n.process(e),e.add((function(e){var t=c.RAW_RESPONSE;i._cleanup(),null!==t&&r(t)}))}),(function(e,t){var r=e.state,o=r.error_info,s=r.last_exception,c=r.async_stack;n.emit("notExpected",t,o,s,c),i._cleanup()})).execute()}},{key:"onInternalRequest",value:function(e,t,r,n,o){var i=this,s=t._server_executor_context;s||(s=new z(this,t.options.executor),t._server_executor_context=s);var c=new E(this,r),a=new b(s.type(),null,null),u=c.info;u.CHANNEL_CONTEXT=s,u.CLIENT_ADDR=a,u.SECURE_CHANNEL=!0,n&&(u.HAVE_RAW_UPLOAD=!0,c._rawinp=n),o&&(c._rawout=o),e.add((function(e){var t=y();c._as=t,t.add((function(t){t.setCancel((function(t){if(c._cleanup(),!t.state._orig_as_cancel)try{e.error(T,"Executor canceled")}catch(e){}})),t.state.reqinfo=c,i.process(t),t.add((function(t){var r=u.RAW_RESPONSE;c._cleanup(),null!==r?e.success(r,!0):e.success()}))}),(function(e,t){var r=e.state,n=r.error_info,o=r.last_exception,s=r.async_stack;i.emit("notExpected",t,n,o,s),c._cleanup()})).execute(),e.setCancel((function(e){t.state._orig_as_cancel=!0,t.cancel()}))}))}},{key:"process",value:function(e){var t=this,r=e.state.reqinfo,i=r.info;r&&!("_func_info"in i)||e.error(T,"Invalid process() invocation"),e.add((function(e){var s=i.RAW_REQUEST;t.emit("request",r,s),r.cancelAfter(t._request_timeout);var c=s.sec;"string"==typeof c&&("-internal"===(c=c.split(":"))[0]?t._checkInternalAuth(e,r,c):t._secprov.checkAuth(e,r,s,c)),e.add((function(e){t._getInfo(e,r),t._checkConstraints(e,r),t._checkParams(e,r);var n=i._func,o=t._getImpl(e,r);n in o||e.error(T,"Missing function implementation"),i._func_info.heavy&&r.cancelAfter(t._heavy_timeout);var s=o[n](e,r);void 0!==s&&(i.RAW_RESPONSE.r=s)})),e.add((function(e,s){s&&("object"===o(s)?n(i.RAW_RESPONSE.r,s):i.RAW_RESPONSE.r=s),t._checkResponse(e,r),e.success(r)}))}),(function(e,r){var n=e.state,o=n.reqinfo,s=n.error_info;r in R||i._func_info&&r in i._func_info.throws||(t.emit("notExpected",r,s,n.last_exception,n.async_stack),r=T,s="Not expected error");var c=i.RAW_RESPONSE;c.e=r,delete c.r,s&&(c.edesc=s),e.success(o)})),e.add((function(e,r){return t._signResponse(e,r)}),(function(e,r){var n=e.state;t.emit("notExpected",r,n.aserror_info,n.last_exception,n.async_stack)}))}},{key:"checkAccess",value:function(e,t){this._secprov.checkAccess(e,e.state.reqinfo,t)}},{key:"initFromCache",value:function(e){e.error(L,"Caching is not supported yet")}},{key:"cacheInit",value:function(e){e.error(L,"Caching is not supported yet")}},{key:"_getInfo",value:function(e,t){var r=t.info;if(!r._iface_info){var n=r.RAW_REQUEST.f;"string"!=typeof n&&e.error(P,"Missing req.f"),3!==(n=n.split(":")).length&&e.error(P,"Invalid req.f");var o=n[0],i=n[2],s=n[1].split(".");2!==s.length&&e.error(P,"Invalid req.f (version)");var c,a=this._ifaces[o];a||e.error(U,"Unknown interface: ".concat(o));try{var u=s[0],l=s[1];(c=a[u])||e.error(D,"Different major version: ".concat(o,":").concat(u)),c.mnrver<l&&e.error(D,"Iface version is too old: ".concat(o,":").concat(u,".").concat(l));var f=c.derived;f&&(c=f);var p=c.funcs[i];p||e.error(P,"Unknown interface function: ".concat(i)),r._iface_info=c,r._func=i,r._func_info=p,p.rawresult&&(r.HAVE_RAW_RESULT=!0)}catch(t){if(r.USER_INFO||c&&"AllowAnonymous"in c.constraints)throw t;e.error(U,"Unknown interface: ".concat(o))}}}},{key:"_checkInternalAuth",value:function(e,t){var r=t.info;"INTERNAL"!==r.CHANNEL_CONTEXT.type()&&e.error(F,"Not internal channel");var n=r.RAW_REQUEST.obf;n?(r.SECURITY_LEVEL=n.slvl,r.USER_INFO=new m(this._ccm,n.lid,n.gid,null)):(r.SECURITY_LEVEL=E.SL_SYSTEM,r.USER_INFO=new m(this._ccm,"-internal","-internal",null))}},{key:"_checkConstraints",value:function(e,t){var r=t.info,n=r._iface_info.constraints,o=r._func_info,i=r.CHANNEL_CONTEXT;if("SecureChannel"in n&&!r.SECURE_CHANNEL&&e.error(F,"Insecure channel"),"MessageSignature"in n&&!this._secprov.isSigned(t)&&"INTERNAL"!==i.type()&&e.error(F,"Message Signature is required"),"AllowAnonymous"in n||r.USER_INFO||e.error(F,"Anonymous not allowed"),!("BiDirectChannel"in n)||i&&i.isStateful()||e.error(P,"Bi-Direct Channel is required"),o.seclvl){var s=M[o.seclvl],c=M[r.SECURITY_LEVEL];(!s||c<s)&&e.error(q,o.seclvl)}}},{key:"_checkParams",value:function(e,t){var r=t.info,n=r.RAW_REQUEST,o=r._func_info;t.HAVE_RAW_UPLOAD&&!o.rawupload&&e.error(P,"Raw upload is not allowed: ".concat(r._func));var i=r._iface_info,s=r._func;r._from_query_string&&(w(i,s,n),r._from_query_string=!1),A(e,i,s,n)}},{key:"_getImpl",value:function(e,t){var r=t.info,n=r._iface_info,i=n.iface,s=n.mjrver,c=this._impls[i][s];return"object"!==o(c)&&("function"==typeof c?c=c(c,this):e.error(T,"Invalid implementation type: ".concat(r._func,"()")),"object"!==o(c)&&e.error(T,"Implementation does not implement "+"InterfaceImplementation: ".concat(i,":").concat(s)),this._impls[i][s]=c),c}},{key:"_checkResponse",value:function(e,t){var r=t.info,n=r.RAW_RESPONSE,i=r._func_info;if(i.rawresult)return r.RAW_RESPONSE=null,void(("object"!==o(n.r)||Object.keys(n.r).length>0)&&e.error(T,"Raw result is expected: ".concat(r._func,"()")));i.expect_result||!0===r.RAW_REQUEST.forcersp?this._dev_checks&&S(e,r._iface_info,r._func,n):r.RAW_RESPONSE=null}},{key:"_signResponse",value:function(e,t){var r=this,n=t.info.RAW_RESPONSE;n&&this._secprov.signAuto(e,t,n)?e.add((function(e){r.emit("response",t,n)})):this.emit("response",t,n)}},{key:"close",value:function(e){e&&this.once("close",e),this.emit("close")}},{key:"packPayload",value:function(e,t){var r=e.encode(t);if("string"==typeof r&&(r=Buffer.from(r)),r.length>this.SAFE_PAYLOAD_LIMIT)throw this.emit("notExpected",T,"Response size has exceeded safety limit",null,null),new Error(T);return r}},{key:"SAFE_PAYLOAD_LIMIT",get:function(){return 65536}}]),e}();e.exports=B},1422:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=r(1333),f=r(8548),p=r(4495).Errors.SecurityError,_=r(8632),v=r(9411),h=Symbol("HMAC_USER"),y=Symbol("HMAC_ALGO"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(b,e);var t,r,n,d,g=(n=b,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(n);if(d){var r=u(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function b(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;i(this,b),(r=g.call(this))._ccm=t,r._secprov=n||new f;var o=new l(t);return r._auth_svc=_.register(e,o),v.register(e,t,o),t.once("close",(function(){return o.close()})),r}return t=b,(r=[{key:"addUser",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this._auth_svc.addUser(e,t,r,n)}},{key:"checkAuth",value:function(e,t,r,n){"-hmac"===n[0]?this._checkMAC(e,t,{user:n[1],algo:n[2],sig:n[3]}):2===n.length&&22!==n[0].length?this._checkBasicAuth(e,t,{user:n[0],pwd:n[1]}):this._secprov.checkAuth(e,t,r,n)}},{key:"signAuto",value:function(e,t,r){return t.info[h]?(this._signHMAC(e,t,r),!0):this._secprov.signAuto(e,t,r)}},{key:"isSigned",value:function(e){return e.info[h]||this._secprov.isSigned(e)}},{key:"_checkBasicAuth",value:function(e,t,r){var n=this,o=r.user,i=r.pwd;e.add((function(e){var r=n._ccm.iface("#basicauth"),s=t.info;r.call(e,"auth",{user:o,pwd:i,client_addr:s.CLIENT_ADDR.asString(),is_secure:s.SECURE_CHANNEL}),e.add((function(e,r){n._setUser(e,t,r.seclvl,r)}))}),(function(e,t){e.error(p,"Basic Auth Verification Failed")}))}},{key:"_checkMAC",value:function(e,t,r){var n=this,i=r.user,s=r.algo,c=r.sig;this._normalizeQueryParams(e,t),e.add((function(e){var r=n._ccm.iface("#basicauth"),a=t.info,u=o({},t.info.RAW_REQUEST);r.call(e,"checkHMAC",{msg:u,user:i,algo:s,sig:c,client_addr:a.CLIENT_ADDR.asString(),is_secure:a.SECURE_CHANNEL}),e.add((function(e,r){n._setUser(e,t,r.seclvl,r),a[y]=s,a[h]=i}))}),(function(e,t){e.error(p,"Legacy Signature Verification Failed")}))}},{key:"_signHMAC",value:function(e,t,r){var n=this._ccm.iface("#basicauth"),o=t.info;n.call(e,"genHMAC",{msg:r,user:o[h],algo:o[y]}),e.add((function(e,t){var n=t.sig;r.sec=n}))}}])&&s(t.prototype,r),b}(f);e.exports=d},7524:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(7034).PingFace,i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,i;return t=e,i=[{key:"register",value:function(e,t){var r=o.spec("1.0"),n=r.iface+":"+r.version,i=new this;return t.register(e,n,i,[r]),i}}],(r=[{key:"ping",value:function(e,t){t.result().echo=t.params().echo}}])&&n(t.prototype,r),i&&n(t,i),e}();e.exports=i},7178:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(2205),i=r(75),s=r(4495).AsyncTool,c=s.cancelCall,a=s.callLater,u={SL_ANONYMOUS:"Anonymous",SL_INFO:"Info",SL_SAFE_OPS:"SafeOps",SL_SAFEOPS:"SafeOps",SL_PRIVILEGED_OPS:"PrivilegedOps",SL_EXCEPTIONAL_OPS:"ExceptionalOps",SL_SYSTEM:"System",INFO_X509_CN:"X509_CN",INFO_PUBKEY:"PUBKEY",INFO_CLIENT_ADDR:"CLIENT_ADDR",INFO_SECURE_CHANNEL:"SECURE_CHANNEL",INFO_REQUEST_TIME_FLOAT:"REQUEST_TIME_FLOAT",INFO_SECURITY_LEVEL:"SECURITY_LEVEL",INFO_USER_INFO:"USER_INFO",INFO_RAW_REQUEST:"RAW_REQUEST",INFO_RAW_RESPONSE:"RAW_RESPONSE",INFO_DERIVED_KEY:"DERIVED_KEY",INFO_HAVE_RAW_UPLOAD:"HAVE_RAW_UPLOAD",INFO_HAVE_RAW_RESULT:"HAVE_RAW_RESULT",INFO_CHANNEL_CONTEXT:"CHANNEL_CONTEXT"},l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._executor=t,this._rawinp=null,this._rawout=null,this._as=null,"string"==typeof r&&(r=JSON.parse(r)),this._rawreq=r;var n={r:{}};"rid"in r&&(n.rid=r.rid),this._rawrsp=n;var o=function(){return this.info};this.info=o,o.X509_CN=null,o.PUBKEY=null,o.CLIENT_ADDR=null,o.SECURE_CHANNEL=!1,o.SECURITY_LEVEL=this.SL_ANONYMOUS,o.USER_INFO=null,o.RAW_REQUEST=r,o.RAW_RESPONSE=n,o.DERIVED_KEY=null,o.HAVE_RAW_UPLOAD=!1,o.HAVE_RAW_RESULT=!1,o.CHANNEL_CONTEXT=null,o.REQUEST_TIME_FLOAT=i()}var t,r;return t=e,(r=[{key:"params",value:function(){return this._rawreq.p}},{key:"result",value:function(e){return e&&(this._rawrsp.r=e),this._rawrsp.r}},{key:"rawInput",value:function(){var e=this._rawinp;if(!e&&(this.info.HAVE_RAW_UPLOAD&&null!==this.info.CHANNEL_CONTEXT&&(e=this.info.CHANNEL_CONTEXT._openRawInput(),this._rawinp=e),!e))throw new Error("RawInputError");return e}},{key:"rawOutput",value:function(){var e=this._rawout;if(!e&&(this.info.HAVE_RAW_RESULT&&null!==this.info.CHANNEL_CONTEXT&&(e=this.info.CHANNEL_CONTEXT._openRawOutput(),this._rawout=e),!e))throw new Error("RawOutputError");return e}},{key:"executor",value:function(){return this._executor}},{key:"ccm",value:function(){return this._executor.ccm()}},{key:"channel",value:function(){return this.info.CHANNEL_CONTEXT}},{key:"cancelAfter",value:function(e){var t=this;this._cancelAfter&&(c(this._cancelAfter),this._cancelAfter=null),e>0&&this._as&&(this._cancelAfter=a((function(){t._as.cancel()}),e))}},{key:"_cleanup",value:function(){var e=this.info;if(this.cancelAfter(0),this._as=null,this.info=null,e){var t=e.CHANNEL_CONTEXT;t&&!t.isStateful()&&t._cleanup();var r=e.USER_INFO;r&&r._cleanup()}}}])&&n(t.prototype,r),e}();o(l,u),o(l.prototype,u),e.exports=l},8548:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(7178),i=r(2112),s=r(4495).Errors.NotImplemented,c=r(7034).SpecTools.normalizeURLParams,a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"checkAuth",value:function(e,t,r,n){e.error(s,"Authentication is not enabled")}},{key:"signAuto",value:function(e,t,r){return!1}},{key:"isSigned",value:function(e){return!1}},{key:"checkAccess",value:function(e,t,r){e.error(s,"Access Control is not enabled")}},{key:"_setUser",value:function(e,t,r,n){var s=n.local_id,c=n.global_id,a=n.details,u=void 0===a?null:a,l=t.info,f=l.RAW_REQUEST.obf;f&&r&&r===o.SL_SYSTEM?(l.SECURITY_LEVEL=f.slvl,l.USER_INFO=new i(this._ccm,f.lid,f.gid,u)):(l.SECURITY_LEVEL=r,l.USER_INFO=new i(this._ccm,s,c,u))}},{key:"_normalizeQueryParams",value:function(e,t){var r=t.info;if(r._from_query_string){try{t.executor()._getInfo(e,t)}catch(e){return}var n=r._iface_info,o=r._func,i=r.RAW_REQUEST;c(n,o,i),r._from_query_string=!1}}}])&&n(t.prototype,r),e}();e.exports=a},5071:e=>{"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null===t&&(t="string"!=typeof r?"LOCAL":r.match(/^([0-9]{1,3}\.){3}[0-9]{1,3}$/)?"IPv4":"IPv6"),this.type=t,this.host=r,this.port=n}var r,n;return r=e,(n=[{key:"asString",value:function(){return"LOCAL"===this.type?"LOCAL:".concat(this.port):"IPv6"===this.type?"IPv6:[".concat(this.host,"]:").concat(this.port):"".concat(this.type,":").concat(this.host,":").concat(this.port)}}])&&t(r.prototype,n),e}();e.exports=r},2112:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(2205),i={INFO_Login:"Login",INFO_Nick:"Nick",INFO_FirstName:"FirstName",INFO_FullName:"FullName",INFO_DateOfBirth:"DateOfBirth",INFO_TimeOfBirth:"TimeOfBirth",INFO_ContactEmail:"ContactEmail",INFO_ContactPhone:"ContactPhone",INFO_HomeAddress:"HomeAddress",INFO_WorkAddress:"WorkAddress",INFO_Citizenship:"Citizenship",INFO_GovernmentRegID:"GovernmentRegID",INFO_AvatarURL:"AvatarURL"},s=function(){function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ccm=t,this._local_id=r,this._global_id=n,this._details=o}var t,r;return t=e,(r=[{key:"localID",value:function(){return this._local_id}},{key:"globalID",value:function(){return this._global_id}},{key:"details",value:function(e,t){var r=this._details;if(r)return e.add((function(e){return e.success(r)})),e;var n=this._ccm.iface("#basicauth");return n.call(e,"getUserDetails",{local_id:this._local_id,fields:t||{}}),e.add((function(e,t){var r=t.details;n._details=r,e.success(r)})),e}},{key:"_cleanup",value:function(){this._ccm=null}}])&&n(t.prototype,r),e}();o(s,i),o(s.prototype,i),e.exports=s},1308:(e,t,r)=>{"use strict";!function(t){var n=t.FutoIn||t.futoin||{};if(void 0===n.Executor){var o=r(1443);t.FutoInExecutor=o,n.Executor=o,t.FutoIn=n,t.futoin=n,t.BrowserExecutor=o.BrowserExecutor}e.exports=n.Executor}(window)},1443:(e,t,r)=>{"use strict";e=r.nmd(e);var n="undefined"==typeof window&&r(5643);t.ChannelContext=r(8641),t.DerivedKey=r(7048),t.RequestInfo=r(7178),t.SourceAddress=r(5071),t.UserInfo=r(2112),t.SecurityProvider=r(8548),t.LegacySecurityProvider=r(1422),t.PingService=r(7524);var o=r(1333);if(t.Executor=o,t.ClientExecutor=o,n){var i=e;t.NodeExecutor=i.require("../NodeExecutor")}else t.BrowserExecutor=r(8650)},5643:e=>{e.exports=!1},1989:(e,t,r)=>{var n=r(1789),o=r(401),i=r(7667),s=r(1327),c=r(1866);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=s,a.prototype.set=c,e.exports=a},8407:(e,t,r)=>{var n=r(7040),o=r(4125),i=r(2117),s=r(7529),c=r(4705);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=s,a.prototype.set=c,e.exports=a},7071:(e,t,r)=>{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),i=r(6e3),s=r(9916),c=r(5265);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=s,a.prototype.set=c,e.exports=a},6384:(e,t,r)=>{var n=r(8407),o=r(7465),i=r(3779),s=r(7599),c=r(4758),a=r(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=s,u.prototype.has=c,u.prototype.set=a,e.exports=u},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},6874:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},4636:(e,t,r)=>{var n=r(2545),o=r(5694),i=r(1469),s=r(4144),c=r(5776),a=r(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&o(e),f=!r&&!l&&s(e),p=!r&&!l&&!f&&a(e),_=r||l||f||p,v=_?n(e.length,String):[],h=v.length;for(var y in e)!t&&!u.call(e,y)||_&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,h))||v.push(y);return v}},6556:(e,t,r)=>{var n=r(9465),o=r(7813);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},4865:(e,t,r)=>{var n=r(9465),o=r(7813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var s=e[t];i.call(e,t)&&o(s,r)&&(void 0!==r||t in e)||n(e,t,r)}},8470:(e,t,r)=>{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},9465:(e,t,r)=>{var n=r(8777);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},3118:(e,t,r)=>{var n=r(3218),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},8483:(e,t,r)=>{var n=r(5063)();e.exports=n},4239:(e,t,r)=>{var n=r(2705),o=r(9607),i=r(2333),s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):i(e)}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},8458:(e,t,r)=>{var n=r(3560),o=r(5346),i=r(3218),s=r(346),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:c).test(s(e))}},8749:(e,t,r)=>{var n=r(4239),o=r(1780),i=r(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!s[n(e)]}},313:(e,t,r)=>{var n=r(3218),o=r(5726),i=r(3498),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var c in e)("constructor"!=c||!t&&s.call(e,c))&&r.push(c);return r}},2980:(e,t,r)=>{var n=r(6384),o=r(6556),i=r(8483),s=r(9783),c=r(3218),a=r(1704),u=r(6390);e.exports=function e(t,r,l,f,p){t!==r&&i(r,(function(i,a){if(p||(p=new n),c(i))s(t,r,a,l,e,f,p);else{var _=f?f(u(t,a),i,a+"",t,r,p):void 0;void 0===_&&(_=i),o(t,a,_)}}),a)}},9783:(e,t,r)=>{var n=r(6556),o=r(4626),i=r(7133),s=r(278),c=r(8517),a=r(5694),u=r(1469),l=r(9246),f=r(4144),p=r(3560),_=r(3218),v=r(8630),h=r(6719),y=r(6390),d=r(9881);e.exports=function(e,t,r,g,b,E,m){var O=y(e,r),x=y(t,r),A=m.get(x);if(A)n(e,r,A);else{var S=E?E(O,x,r+"",e,t,m):void 0,w=void 0===S;if(w){var R=u(x),I=!R&&f(x),k=!R&&!I&&h(x);S=x,R||I||k?u(O)?S=O:l(O)?S=s(O):I?(w=!1,S=o(x,!0)):k?(w=!1,S=i(x,!0)):S=[]:v(x)||a(x)?(S=O,a(O)?S=d(O):_(O)&&!p(O)||(S=c(x))):w=!1}w&&(m.set(x,S),b(S,x,g,E,m),m.delete(x)),n(e,r,S)}}},5976:(e,t,r)=>{var n=r(6557),o=r(5357),i=r(61);e.exports=function(e,t){return i(o(e,t,n),e+"")}},6560:(e,t,r)=>{var n=r(5703),o=r(8777),i=r(6557),s=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=s},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},1757:e=>{e.exports=function(e,t,r){for(var n=-1,o=e.length,i=t.length,s={};++n<o;){var c=n<i?t[n]:void 0;r(s,e[n],c)}return s}},4318:(e,t,r)=>{var n=r(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},4626:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o?n.Buffer:void 0,c=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=c?c(r):new e.constructor(r);return e.copy(n),n}},7133:(e,t,r)=>{var n=r(4318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},8363:(e,t,r)=>{var n=r(4865),o=r(9465);e.exports=function(e,t,r,i){var s=!r;r||(r={});for(var c=-1,a=t.length;++c<a;){var u=t[c],l=i?i(r[u],e[u],u,r,e):void 0;void 0===l&&(l=e[u]),s?o(r,u,l):n(r,u,l)}return r}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},1463:(e,t,r)=>{var n=r(5976),o=r(6612);e.exports=function(e){return n((function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,c=i>2?r[2]:void 0;for(s=e.length>3&&"function"==typeof s?(i--,s):void 0,c&&o(r[0],r[1],c)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,s)}return t}))}},5063:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),c=s.length;c--;){var a=s[e?c:++o];if(!1===r(i[a],a,i))break}return t}}},2052:(e,t,r)=>{var n=r(2980),o=r(3218);e.exports=function e(t,r,i,s,c,a){return o(t)&&o(r)&&(a.set(r,t),n(t,r,void 0,e,a),a.delete(r)),t}},8777:(e,t,r)=>{var n=r(852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},1957:e=>{var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},5924:(e,t,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);e.exports=n},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var o=s.call(e);return n&&(t?e[c]=r:delete e[c]),o}},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,r)=>{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},8517:(e,t,r)=>{var n=r(3118),o=r(5924),i=r(5726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},6612:(e,t,r)=>{var n=r(7813),o=r(8612),i=r(5776),s=r(3218);e.exports=function(e,t,r){if(!s(r))return!1;var c=typeof t;return!!("number"==c?o(r)&&i(t,r.length):"string"==c&&t in r)&&n(r[t],e)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7529:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),i=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o&&n.process,c=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=c},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5357:(e,t,r)=>{var n=r(6874),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,c=o(i.length-t,0),a=Array(c);++s<c;)a[s]=i[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=i[s];return u[t]=r(a),n(e,this,u)}}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},61:(e,t,r)=>{var n=r(6560),o=r(1275)(n);e.exports=o},1275:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),o=r(7071),i=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(e,t),this.size=r.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},3045:(e,t,r)=>{var n=r(8363),o=r(1463),i=r(1704),s=o((function(e,t){n(t,i(t),e)}));e.exports=s},5703:e=>{e.exports=function(e){return function(){return e}}},1747:(e,t,r)=>{var n=r(5976),o=r(7813),i=r(6612),s=r(1704),c=Object.prototype,a=c.hasOwnProperty,u=n((function(e,t){e=Object(e);var r=-1,n=t.length,u=n>2?t[2]:void 0;for(u&&i(t[0],t[1],u)&&(n=1);++r<n;)for(var l=t[r],f=s(l),p=-1,_=f.length;++p<_;){var v=f[p],h=e[v];(void 0===h||o(h,c[v])&&!a.call(e,v))&&(e[v]=l[v])}return e}));e.exports=u},6913:(e,t,r)=>{var n=r(6874),o=r(5976),i=r(2052),s=r(236),c=o((function(e){return e.push(void 0,i),n(s,void 0,e)}));e.exports=c},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2205:(e,t,r)=>{e.exports=r(3045)},6557:e=>{e.exports=function(e){return e}},5694:(e,t,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,s=i.hasOwnProperty,c=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return o(e)&&s.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,r)=>{var n=r(3560),o=r(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},9246:(e,t,r)=>{var n=r(8612),o=r(7005);e.exports=function(e){return o(e)&&n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=r(5062),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,c=s&&s.exports===i?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||o;e.exports=a},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,r)=>{var n=r(4239),o=r(5924),i=r(7005),s=Function.prototype,c=Object.prototype,a=s.toString,u=c.hasOwnProperty,l=a.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&a.call(r)==l}},6719:(e,t,r)=>{var n=r(8749),o=r(7518),i=r(1167),s=i&&i.isTypedArray,c=s?o(s):n;e.exports=c},1704:(e,t,r)=>{var n=r(4636),o=r(313),i=r(8612);e.exports=function(e){return i(e)?n(e,!0):o(e)}},236:(e,t,r)=>{var n=r(2980),o=r(1463)((function(e,t,r,o){n(e,t,r,o)}));e.exports=o},5062:e=>{e.exports=function(){return!1}},9881:(e,t,r)=>{var n=r(8363),o=r(1704);e.exports=function(e){return n(e,o(e))}},7287:(e,t,r)=>{var n=r(4865),o=r(1757);e.exports=function(e,t){return o(e||[],t||[],n)}},75:function(e){(function(){var t,r,n,o,i,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},r=process.hrtime,o=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*process.uptime(),i=o-s):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},4495:t=>{"use strict";t.exports=e},8754:e=>{"use strict";e.exports=r},7034:e=>{"use strict";e.exports=t}},o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={id:e,loaded:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.loaded=!0,t.exports}return i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i(1308)})()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("futoin-asyncsteps"),require("futoin-invoker"),require("futoin-asyncevent")):"function"==typeof define&&define.amd?define(["futoin-asyncsteps","futoin-invoker","futoin-asyncevent"],t):"object"==typeof exports?exports["futoin-executor"]=t(require("futoin-asyncsteps"),require("futoin-invoker"),require("futoin-asyncevent")):e.FutoInExecutor=t(e.$as,e.FutoInInvoker,e.$asyncevent)}(self,(function(e,t,r){return(()=>{var n={9411:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(f,e);var t,r,n,u,l=(n=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=a(n);if(u){var r=a(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return s(this,e)});function f(){return o(this,f),l.apply(this,arguments)}return t=f,r=[{key:"register",value:function(e,t,r,n,o){var i=(o=o||{}).version||"0.1",c=this.spec(i);o.nativeImpl=this,o.specDirs=[c],t.register(e,"#basicauth",c.iface+":"+c.version,r,n,o)}}],null&&i(t.prototype,null),r&&i(t,r),f}(r(7034).NativeIface);e.exports=u,(u._specs={})[.1]={iface:"futoin.basicauth",version:"0.1",ftn3rev:"1.1",funcs:{auth:{params:{user:{type:"string",desc:"User name"},pwd:{type:"string",desc:"User password"},client_addr:{type:"string",desc:"Client's source address"},is_secure:{type:"boolean",desc:"Is secure channel?"}},result:{local_id:{type:"integer",desc:"Local user ID"},global_id:{type:"string",desc:"Global user ID"},details:{type:"map",desc:"User details"},seclvl:{type:"string",desc:"Security level"}},throws:["AuthenticationFailure"],desc:"Try to authenticate user with provided credentials"},checkHMAC:{params:{msg:{type:"map",desc:"Message object"},user:{type:"string",desc:"User name"},algo:{type:"string",desc:"HMAC algorithm"},sig:{type:"string",desc:"Request signature"},client_addr:{type:"string",desc:"Client's source address"},is_secure:{type:"boolean",desc:"Is secure channel?"}},result:{local_id:{type:"integer",desc:"Local user ID"},global_id:{type:"string",desc:"Global user ID"},details:{type:"map",desc:"User details"},seclvl:{type:"string",desc:"Security level"}},throws:["AuthenticationFailure"],desc:"Try to authenticate user with provided credentials"},genHMAC:{params:{msg:{type:"map",desc:"Message object"},user:{type:"string",desc:"User name"},algo:{type:"string",desc:"HMAC algorithm"}},result:{sig:{type:"string",desc:"Global user ID"}},throws:["InvalidUser"],desc:"Try to authenticate user with provided credentials"},getUserDetails:{params:{local_id:{type:"integer",desc:"Local user ID"},fields:{type:"map",default:{},desc:"List of field to retrieve, default - all"}},result:{details:{type:"map",desc:"User details"}},throws:["InvalidUser"],desc:"Try to authenticate user with provided credentials"}},requires:["SecureChannel","AllowAnonymous"],desc:"Basic Auth interface"}},8632:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(9411),i=r(7034).SpecTools,c=i.genHMACRaw,s=i.getRawAlgo,a=i.checkHMAC,u=i.secureEquals,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._user_list={},this._user_ids={},this._next_id=1}var t,r,i;return t=e,i=[{key:"register",value:function(e,t){var r=o.spec("0.1"),n=r.iface+":"+r.version,i=new this;return t.register(e,n,i,[r]),i}}],(r=[{key:"addUser",value:function(e,t,r,n){var o=this._next_id++;(r=r||{}).Login=e;var i={secret:t,info:{local_id:o,global_id:"G"+o,details:r},system_user:n||!1};this._user_list[e]=i,this._user_ids[o]=i}},{key:"_getUser",value:function(e,t){var r=this._user_list[t];e.add((function(e){return e.success(r)}))}},{key:"_getUserByID",value:function(e,t){var r=this._user_ids[t];e.add((function(e){return e.success(r)}))}},{key:"auth",value:function(e,t){var r=t.params();this._getUser(e,r.user),e.add((function(e,n){n&&u(n.secret,r.pwd)?(t.result().seclvl=n.system_user?t.SL_SYSTEM:t.SL_SAFE_OPS,e.success(n.info)):e.error("AuthenticationFailure")}))}},{key:"checkHMAC",value:function(e,t){var r=t.params();this._getUser(e,r.user),e.add((function(e,n){if(n){var o=s(e,r.algo),i=c(o,n.secret,r.msg),u=new Buffer(r.sig,"base64");if(a(i,u))return t.result().seclvl=n.system_user?t.SL_SYSTEM:t.SL_PRIVILEGED_OPS,void e.success(n.info)}e.error("AuthenticationFailure")}))}},{key:"genHMAC",value:function(e,t){var r=t.params();this._getUser(e,r.user),e.add((function(e,n){if(n){var o=s(e,r.algo),i=c(o,n.secret,r.msg);t.result().sig=i.toString("base64")}else e.error("InvalidUser")}))}},{key:"getUserDetails",value:function(e,t){var r=t.params();this._getUserByID(e,r.local_id),e.add((function(e,r){r?t.result().details=r.info.details:e.error("InvalidUser")}))}}])&&n(t.prototype,r),i&&n(t,i),e}();e.exports=l},8650:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,r){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=r(7287),h=r(6913),y=r(4495),d=r(75),g=window,b=r(1333),E=r(8641),m=r(5071),O=r(7178),x=function(e){a(r,e);var t=l(r);function r(e,n){var o;return i(this,r),(o=t.call(this,e))._event_origin=n.origin,o._event_source=n.source,o._last_used=d(),o._is_secure_channel=!0,o}return s(r,[{key:"type",value:function(){return"BROWSER"}},{key:"isStateful",value:function(){return!0}},{key:"_getPerformRequest",value:function(){var e=this._event_origin,t=this._event_source,r=this._executor._reverse_requests,n=this._executor._msg_sniffer;return function(o,i,c){o.add((function(o){var s="S"+r.rid++;if(c.rid=s,i.expect_response){var a=r.sentreqs;a[s]={reqas:o,evt_origin:e,evt_source:t},o.setCancel((function(e){delete a[s]}))}n(e,c,!1),t.postMessage(c,e)}))}}}]),r}(E),A={clientTimeoutMS:600,allowedOrigins:[]};Object.freeze(A.allowedOrigins),Object.freeze(A);var S=function(e){a(r,e);var t=l(r);function r(e,n){var o;i(this,r),o=t.call(this,e,n),n=h({},n,A),o._msg_sniffer=n.messageSniffer,o._contexts=[],o._reverse_requests={rid:1,sentreqs:{}};var c=n.allowedOrigins||{};c instanceof Array&&(c=v(c,c)),o.allowed_origins=c;var s=n.clientTimeoutMS;return function e(){for(var t=o._contexts,r=d()-s,n=t.length-1;n>=0;--n){var i=t[n];i._last_used<r&&(i._cleanup(),t.splice(n,1))}setTimeout(e,1e3*s)}(),o._event_listener=function(e){return o.handleMessage(e)},g.addEventListener("message",o._event_listener),Object.seal(p(o)),o}return s(r,[{key:"handleMessage",value:function(e){var t=this;this._msg_sniffer(e,e.data,!0);var r=e.data,o=e.source,i=e.origin;if("object"===n(r)&&"rid"in r){var c=r.rid;if(!("f"in r)&&"S"===c.charAt(0)){var s=this._reverse_requests.sentreqs,a=s[c];return a&&o===a.evt_source&&i===a.evt_origin&&(a.reqas.success(r,"application/futoin+json"),delete s[c]),void(e.stopPropagation&&e.stopPropagation())}if("f"in r&&"C"===c.charAt(0)&&i in this.allowed_origins){for(var u=null,l=this._contexts,f=0,p=l.length;f<p;++f){var _=l[f];if(_._event_source===o&&_._event_origin===i){u=_;break}}u?u._last_used=d():(u=new x(this,e),l.push(u));var v=new m("LOCAL",o,i),h=new O(this,r),g=h.info;g.CHANNEL_CONTEXT=u,g.CLIENT_ADDR=v,g.SECURE_CHANNEL=this._is_secure_channel;var b=y();b.state.reqinfo=h,h._as=b;var E=function(r){h._cleanup();var n={e:"InternalError",rid:c};t._msg_sniffer(e,n,!1),u._event_source.postMessage(n,u._event_origin)};b.add((function(r){r.setCancel(E),t.process(r),r.add((function(r){var n=g.RAW_RESPONSE;h._cleanup(),null!==n&&(t._msg_sniffer(e,n,!1),u._event_source.postMessage(n,u._event_origin))}))})),b.execute(),e.stopPropagation&&e.stopPropagation()}}}},{key:"close",value:function(e){g.removeEventListener("message",this._event_listener),o(_(r.prototype),"close",this).call(this,e)}}]),r}(b);e.exports=S},8641:e=>{"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._executor=t,this._ifaces={},this.state=function(){return this.state}}var r,n;return r=e,(n=[{key:"type",value:function(){return null}},{key:"isStateful",value:function(){return!1}},{key:"onInvokerAbort",value:function(e,t){}},{key:"_openRawInput",value:function(){return null}},{key:"_openRawOutput",value:function(){return null}},{key:"register",value:function(e,t,r){var n=this;this.isStateful()||e.error("InvokerError","Not stateful channel"),"sendOnBehalfOf"in(r=r||{})||(r.sendOnBehalfOf=!1),"limitZone"in r||(r.limitZone="unlimited"),"secureChannel"in r||(r.secureChannel=this._executor._is_secure_channel),this._executor.ccm().register(e,null,t,this._getPerformRequest(),null,r),e.add((function(e,r,o){n._ifaces[t]=o}))}},{key:"iface",value:function(e){return this._ifaces[e]}},{key:"_getPerformRequest",value:function(){return null}},{key:"_cleanup",value:function(){this._executor=null,this._ifaces=null,this.state=null}}])&&t(r.prototype,n),e}();e.exports=r},7048:e=>{"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ccm=t,this._base_id=r,this._sequence_id=n}var r,n;return r=e,(n=[{key:"baseID",value:function(){return this._base_id}},{key:"sequenceID",value:function(){return this._sequence_id}},{key:"encrypt",value:function(e,t){return e.error("NotImplemented","Derived key encryption is not supported yet"),null}},{key:"decrypt",value:function(e,t){return e.error("NotImplemented","Derived key decryption is not supported yet"),null}},{key:"_cleanup",value:function(){this._ccm=null}}])&&t(r.prototype,n),e}();e.exports=r},1333:(e,t,r)=>{"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=r(1747),h=r(7034),y=r(4495),d=r(8754),g=r(8641),b=r(5071),E=r(7178),m=r(2112),O=r(8548),x=h.SpecTools,A=x.checkRequestMessage,S=x.checkResponseMessage,w=x.normalizeURLParams,R=x.STANDARD_ERRORS,I=x._ifacever_pattern,k=x.loadIface,N=x.globalLoadCache,j=y.Errors,C=j.CommError,T=j.InternalError,L=j.NotImplemented,P=j.InvalidRequest,U=j.UnknownInterface,D=j.NotSupportedVersion,F=j.SecurityError,q=j.PleaseReauth,M=Object.freeze({Anonymous:1,Info:2,SafeOps:3,PrivilegedOps:4,ExceptionalOps:5,System:6}),H=function(e){a(r,e);var t=l(r);function r(){var e;i(this,r);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return e=t.call.apply(t,[this].concat(o)),Object.seal(p(e)),e}return s(r,[{key:"type",value:function(){return"CALLBACK"}},{key:"isStateful",value:function(){return!0}}]),r}(g),z=function(e){a(r,e);var t=l(r);function r(e,n){var o;return i(this,r),(o=t.call(this,e))._invoker_executor=n,Object.seal(p(o)),o}return s(r,[{key:"type",value:function(){return"INTERNAL"}},{key:"isStateful",value:function(){return!0}},{key:"_getPerformRequest",value:function(){var e=this._invoker_executor;return e?function(t,r,n){e.onInternalRequest(t,r.info,n)}:this._commError}},{key:"_commError",value:function(e){e.error(C,"No Invoker's Executor for internal call")}},{key:"onInvokerAbort",value:function(e,t){this._invoker_executor.once("close",(function(){return e(t)}))}}]),r}(g),W={messageSniffer:function(){},specDirs:[],prodMode:!1,reqTimeout:5e3,heavyReqTimeout:6e4,securityProvider:null};Object.freeze(W);var B=function(){function e(t,r){var n=this;i(this,e),d(this,["ready","request","response","notExpected","close"]),this._ccm=t,this._ifaces={},this._impls={};var o=(r=v({},r,W)).specDirs;o instanceof Array||(o=[o]),this._specdirs=o,this._dev_checks=!r.prodMode,this._msg_sniffer=r.messageSniffer,this._request_timeout=r.reqTimeout,this._heavy_timeout=r.heavyReqTimeout,this._maxReqSize=this.SAFE_PAYLOAD_LIMIT,this._maxRspSize=this.SAFE_PAYLOAD_LIMIT,this._maxAnySize=this.SAFE_PAYLOAD_LIMIT,this._secprov=r.securityProvider||new O;var c=function(){return n.close};t.once("close",c),this.once("close",(function(){return t.off("close",c)}))}return s(e,[{key:"SAFE_PAYLOAD_LIMIT",get:function(){return 65536}},{key:"ccm",value:function(){return this._ccm}},{key:"register",value:function(e,t,r,n){var o=this,i=t.match(I);null===i&&e.error(T,"Invalid ifacever: ".concat(t));var c=i[1],s=i[4],a=i[5],u=i[6],l=this._ifaces;c in l&&a in l[c]&&e.error(T,"Already registered: ".concat(t));var f={iface:c,version:s,mjrver:a,mnrver:u,derived:void 0};k(e,f,n||this._specdirs,N());var p=this._impls;e.add((function(e){c in l||(l[c]={},p[c]={}),l[c][a]=f,p[c][a]=r;for(var t=f.inherits,n=t.length-1;n>=0;--n){var i=t[n].match(I),s=i[1],u=i[4],_=i[5],v={iface:s,version:u,mjrver:_,mnrver:i[6],derived:f};s in l&&_ in l[s]&&(delete l[c][a],e.error(T,"Conflict with inherited interfaces: ".concat(i[0]))),s in l||(l[s]={}),l[s][_]=v}var h=o._maxReqSize,y=o._maxRspSize;for(var d in f.funcs)d=f.funcs[d],h=Math.max(h,d._max_req_size),y=Math.max(y,d._max_rsp_size);o._maxReqSize=h,o._maxRspSize=y,o._maxAnySize=Math.max(h,y)}))}},{key:"onEndpointRequest",value:function(e,t,r){var n=this,o=e._callback_context;o||(o=new H(this),e._callback_context=o);var i=new E(this,t),c=new b(o.type(),null,e.regname),s=i.info;s.CHANNEL_CONTEXT=o,s.CLIENT_ADDR=c,s.SECURE_CHANNEL=e.secure_channel;var a=y();i._as=a,a.add((function(e){e.setCancel((function(e){var t={rid:i._rawreq.rid,e:"InternalError"};i._cleanup(),r(t)})),e.state.reqinfo=i,n.process(e),e.add((function(e){var t=s.RAW_RESPONSE;i._cleanup(),null!==t&&r(t)}))}),(function(e,t){var r=e.state,o=r.error_info,c=r.last_exception,s=r.async_stack;n.emit("notExpected",t,o,c,s),i._cleanup()})).execute()}},{key:"onInternalRequest",value:function(e,t,r,n,o){var i=this,c=t._server_executor_context;c||(c=new z(this,t.options.executor),t._server_executor_context=c);var s=new E(this,r),a=new b(c.type(),null,null),u=s.info;u.CHANNEL_CONTEXT=c,u.CLIENT_ADDR=a,u.SECURE_CHANNEL=!0,n&&(u.HAVE_RAW_UPLOAD=!0,s._rawinp=n),o&&(s._rawout=o),e.add((function(e){var t=y();s._as=t,t.add((function(t){t.setCancel((function(t){if(s._cleanup(),!t.state._orig_as_cancel)try{e.error(T,"Executor canceled")}catch(e){}})),t.state.reqinfo=s,i.process(t),t.add((function(t){var r=u.RAW_RESPONSE;s._cleanup(),null!==r?e.success(r,!0):e.success()}))}),(function(e,t){var r=e.state,n=r.error_info,o=r.last_exception,c=r.async_stack;i.emit("notExpected",t,n,o,c),s._cleanup()})).execute(),e.setCancel((function(e){t.state._orig_as_cancel=!0,t.cancel()}))}))}},{key:"process",value:function(e){var t=this,r=e.state.reqinfo,i=r.info;r&&!("_func_info"in i)||e.error(T,"Invalid process() invocation"),e.add((function(e){var c=i.RAW_REQUEST;t.emit("request",r,c),r.cancelAfter(t._request_timeout);var s=c.sec;"string"==typeof s&&("-internal"===(s=s.split(":"))[0]?t._checkInternalAuth(e,r,s):t._secprov.checkAuth(e,r,c,s)),e.add((function(e){t._getInfo(e,r),t._checkConstraints(e,r),t._checkParams(e,r);var n=i._func,o=t._getImpl(e,r);n in o||e.error(T,"Missing function implementation"),i._func_info.heavy&&r.cancelAfter(t._heavy_timeout);var c=o[n](e,r);void 0!==c&&(i.RAW_RESPONSE.r=c)})),e.add((function(e,c){c&&("object"===o(c)?n(i.RAW_RESPONSE.r,c):i.RAW_RESPONSE.r=c),t._checkResponse(e,r),e.success(r)}))}),(function(e,r){var n=e.state,o=n.reqinfo,c=n.error_info;r in R||i._func_info&&r in i._func_info.throws||(t.emit("notExpected",r,c,n.last_exception,n.async_stack),r=T,c="Not expected error");var s=i.RAW_RESPONSE;s.e=r,delete s.r,c&&(s.edesc=c),e.success(o)})),e.add((function(e,r){return t._signResponse(e,r)}),(function(e,r){var n=e.state;t.emit("notExpected",r,n.aserror_info,n.last_exception,n.async_stack)}))}},{key:"checkAccess",value:function(e,t){this._secprov.checkAccess(e,e.state.reqinfo,t)}},{key:"initFromCache",value:function(e){e.error(L,"Caching is not supported yet")}},{key:"cacheInit",value:function(e){e.error(L,"Caching is not supported yet")}},{key:"_getInfo",value:function(e,t){var r=t.info;if(!r._iface_info){var n=r.RAW_REQUEST.f;"string"!=typeof n&&e.error(P,"Missing req.f"),3!==(n=n.split(":")).length&&e.error(P,"Invalid req.f");var o=n[0],i=n[2],c=n[1].split(".");2!==c.length&&e.error(P,"Invalid req.f (version)");var s,a=this._ifaces[o];a||e.error(U,"Unknown interface: ".concat(o));try{var u=c[0],l=c[1];(s=a[u])||e.error(D,"Different major version: ".concat(o,":").concat(u)),s.mnrver<l&&e.error(D,"Iface version is too old: ".concat(o,":").concat(u,".").concat(l));var f=s.derived;f&&(s=f);var p=s.funcs[i];p||e.error(P,"Unknown interface function: ".concat(i)),r._iface_info=s,r._func=i,r._func_info=p,p.rawresult&&(r.HAVE_RAW_RESULT=!0)}catch(t){if(r.USER_INFO||s&&"AllowAnonymous"in s.constraints)throw t;e.error(U,"Unknown interface: ".concat(o))}}}},{key:"_checkInternalAuth",value:function(e,t){var r=t.info;"INTERNAL"!==r.CHANNEL_CONTEXT.type()&&e.error(F,"Not internal channel");var n=r.RAW_REQUEST.obf;n?(r.SECURITY_LEVEL=n.slvl,r.USER_INFO=new m(this._ccm,n.lid,n.gid,null)):(r.SECURITY_LEVEL=E.SL_SYSTEM,r.USER_INFO=new m(this._ccm,"-internal","-internal",null))}},{key:"_checkConstraints",value:function(e,t){var r=t.info,n=r._iface_info.constraints,o=r._func_info,i=r.CHANNEL_CONTEXT;if("SecureChannel"in n&&!r.SECURE_CHANNEL&&e.error(F,"Insecure channel"),"MessageSignature"in n&&!this._secprov.isSigned(t)&&"INTERNAL"!==i.type()&&e.error(F,"Message Signature is required"),"AllowAnonymous"in n||r.USER_INFO||e.error(F,"Anonymous not allowed"),!("BiDirectChannel"in n)||i&&i.isStateful()||e.error(P,"Bi-Direct Channel is required"),o.seclvl){var c=M[o.seclvl],s=M[r.SECURITY_LEVEL];(!c||s<c)&&e.error(q,o.seclvl)}}},{key:"_checkParams",value:function(e,t){var r=t.info,n=r.RAW_REQUEST,o=r._func_info;t.HAVE_RAW_UPLOAD&&!o.rawupload&&e.error(P,"Raw upload is not allowed: ".concat(r._func));var i=r._iface_info,c=r._func;r._from_query_string&&(w(i,c,n),r._from_query_string=!1),A(e,i,c,n)}},{key:"_getImpl",value:function(e,t){var r=t.info,n=r._iface_info,i=n.iface,c=n.mjrver,s=this._impls[i][c];return"object"!==o(s)&&("function"==typeof s?s=s(s,this):e.error(T,"Invalid implementation type: ".concat(r._func,"()")),"object"!==o(s)&&e.error(T,"Implementation does not implement "+"InterfaceImplementation: ".concat(i,":").concat(c)),this._impls[i][c]=s),s}},{key:"_checkResponse",value:function(e,t){var r=t.info,n=r.RAW_RESPONSE,i=r._func_info;if(i.rawresult)return r.RAW_RESPONSE=null,void(("object"!==o(n.r)||Object.keys(n.r).length>0)&&e.error(T,"Raw result is expected: ".concat(r._func,"()")));i.expect_result||!0===r.RAW_REQUEST.forcersp?this._dev_checks&&S(e,r._iface_info,r._func,n):r.RAW_RESPONSE=null}},{key:"_signResponse",value:function(e,t){var r=this,n=t.info.RAW_RESPONSE;n&&this._secprov.signAuto(e,t,n)?e.add((function(e){r.emit("response",t,n)})):this.emit("response",t,n)}},{key:"close",value:function(e){e&&this.once("close",e),this.emit("close")}},{key:"packPayload",value:function(e,t){var r=e.encode(t);if("string"==typeof r&&(r=Buffer.from(r)),r.length>this.SAFE_PAYLOAD_LIMIT)throw this.emit("notExpected",T,"Response size has exceeded safety limit",null,null),new Error(T);return r}}]),e}();e.exports=B},1422:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=r(1333),f=r(8548),p=r(4495).Errors.SecurityError,_=r(8632),v=r(9411),h=Symbol("HMAC_USER"),y=Symbol("HMAC_ALGO"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(b,e);var t,r,n,d,g=(n=b,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(n);if(d){var r=u(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function b(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;i(this,b),(r=g.call(this))._ccm=t,r._secprov=n||new f;var o=new l(t);return r._auth_svc=_.register(e,o),v.register(e,t,o),t.once("close",(function(){return o.close()})),r}return t=b,(r=[{key:"addUser",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this._auth_svc.addUser(e,t,r,n)}},{key:"checkAuth",value:function(e,t,r,n){"-hmac"===n[0]?this._checkMAC(e,t,{user:n[1],algo:n[2],sig:n[3]}):2===n.length&&22!==n[0].length?this._checkBasicAuth(e,t,{user:n[0],pwd:n[1]}):this._secprov.checkAuth(e,t,r,n)}},{key:"signAuto",value:function(e,t,r){return t.info[h]?(this._signHMAC(e,t,r),!0):this._secprov.signAuto(e,t,r)}},{key:"isSigned",value:function(e){return e.info[h]||this._secprov.isSigned(e)}},{key:"_checkBasicAuth",value:function(e,t,r){var n=this,o=r.user,i=r.pwd;e.add((function(e){var r=n._ccm.iface("#basicauth"),c=t.info;r.call(e,"auth",{user:o,pwd:i,client_addr:c.CLIENT_ADDR.asString(),is_secure:c.SECURE_CHANNEL}),e.add((function(e,r){n._setUser(e,t,r.seclvl,r)}))}),(function(e,t){e.error(p,"Basic Auth Verification Failed")}))}},{key:"_checkMAC",value:function(e,t,r){var n=this,i=r.user,c=r.algo,s=r.sig;this._normalizeQueryParams(e,t),e.add((function(e){var r=n._ccm.iface("#basicauth"),a=t.info,u=o({},t.info.RAW_REQUEST);r.call(e,"checkHMAC",{msg:u,user:i,algo:c,sig:s,client_addr:a.CLIENT_ADDR.asString(),is_secure:a.SECURE_CHANNEL}),e.add((function(e,r){n._setUser(e,t,r.seclvl,r),a[y]=c,a[h]=i}))}),(function(e,t){e.error(p,"Legacy Signature Verification Failed")}))}},{key:"_signHMAC",value:function(e,t,r){var n=this._ccm.iface("#basicauth"),o=t.info;n.call(e,"genHMAC",{msg:r,user:o[h],algo:o[y]}),e.add((function(e,t){var n=t.sig;r.sec=n}))}}])&&c(t.prototype,r),b}(f);e.exports=d},7524:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(7034).PingFace,i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,i;return t=e,i=[{key:"register",value:function(e,t){var r=o.spec("1.0"),n=r.iface+":"+r.version,i=new this;return t.register(e,n,i,[r]),i}}],(r=[{key:"ping",value:function(e,t){t.result().echo=t.params().echo}}])&&n(t.prototype,r),i&&n(t,i),e}();e.exports=i},7178:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(2205),i=r(75),c=r(4495).AsyncTool,s=c.cancelCall,a=c.callLater,u={SL_ANONYMOUS:"Anonymous",SL_INFO:"Info",SL_SAFE_OPS:"SafeOps",SL_SAFEOPS:"SafeOps",SL_PRIVILEGED_OPS:"PrivilegedOps",SL_EXCEPTIONAL_OPS:"ExceptionalOps",SL_SYSTEM:"System",INFO_X509_CN:"X509_CN",INFO_PUBKEY:"PUBKEY",INFO_CLIENT_ADDR:"CLIENT_ADDR",INFO_SECURE_CHANNEL:"SECURE_CHANNEL",INFO_REQUEST_TIME_FLOAT:"REQUEST_TIME_FLOAT",INFO_SECURITY_LEVEL:"SECURITY_LEVEL",INFO_USER_INFO:"USER_INFO",INFO_RAW_REQUEST:"RAW_REQUEST",INFO_RAW_RESPONSE:"RAW_RESPONSE",INFO_DERIVED_KEY:"DERIVED_KEY",INFO_HAVE_RAW_UPLOAD:"HAVE_RAW_UPLOAD",INFO_HAVE_RAW_RESULT:"HAVE_RAW_RESULT",INFO_CHANNEL_CONTEXT:"CHANNEL_CONTEXT"},l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._executor=t,this._rawinp=null,this._rawout=null,this._as=null,"string"==typeof r&&(r=JSON.parse(r)),this._rawreq=r;var n={r:{}};"rid"in r&&(n.rid=r.rid),this._rawrsp=n;var o=function(){return this.info};this.info=o,o.X509_CN=null,o.PUBKEY=null,o.CLIENT_ADDR=null,o.SECURE_CHANNEL=!1,o.SECURITY_LEVEL=this.SL_ANONYMOUS,o.USER_INFO=null,o.RAW_REQUEST=r,o.RAW_RESPONSE=n,o.DERIVED_KEY=null,o.HAVE_RAW_UPLOAD=!1,o.HAVE_RAW_RESULT=!1,o.CHANNEL_CONTEXT=null,o.REQUEST_TIME_FLOAT=i()}var t,r;return t=e,(r=[{key:"params",value:function(){return this._rawreq.p}},{key:"result",value:function(e){return e&&(this._rawrsp.r=e),this._rawrsp.r}},{key:"rawInput",value:function(){var e=this._rawinp;if(!e&&(this.info.HAVE_RAW_UPLOAD&&null!==this.info.CHANNEL_CONTEXT&&(e=this.info.CHANNEL_CONTEXT._openRawInput(),this._rawinp=e),!e))throw new Error("RawInputError");return e}},{key:"rawOutput",value:function(){var e=this._rawout;if(!e&&(this.info.HAVE_RAW_RESULT&&null!==this.info.CHANNEL_CONTEXT&&(e=this.info.CHANNEL_CONTEXT._openRawOutput(),this._rawout=e),!e))throw new Error("RawOutputError");return e}},{key:"executor",value:function(){return this._executor}},{key:"ccm",value:function(){return this._executor.ccm()}},{key:"channel",value:function(){return this.info.CHANNEL_CONTEXT}},{key:"cancelAfter",value:function(e){var t=this;this._cancelAfter&&(s(this._cancelAfter),this._cancelAfter=null),e>0&&this._as&&(this._cancelAfter=a((function(){t._as.cancel()}),e))}},{key:"_cleanup",value:function(){var e=this.info;if(this.cancelAfter(0),this._as=null,this.info=null,e){var t=e.CHANNEL_CONTEXT;t&&!t.isStateful()&&t._cleanup();var r=e.USER_INFO;r&&r._cleanup()}}}])&&n(t.prototype,r),e}();o(l,u),o(l.prototype,u),e.exports=l},8548:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(7178),i=r(2112),c=r(4495).Errors.NotImplemented,s=r(7034).SpecTools.normalizeURLParams,a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"checkAuth",value:function(e,t,r,n){e.error(c,"Authentication is not enabled")}},{key:"signAuto",value:function(e,t,r){return!1}},{key:"isSigned",value:function(e){return!1}},{key:"checkAccess",value:function(e,t,r){e.error(c,"Access Control is not enabled")}},{key:"_setUser",value:function(e,t,r,n){var c=n.local_id,s=n.global_id,a=n.details,u=void 0===a?null:a,l=t.info,f=l.RAW_REQUEST.obf;f&&r&&r===o.SL_SYSTEM?(l.SECURITY_LEVEL=f.slvl,l.USER_INFO=new i(this._ccm,f.lid,f.gid,u)):(l.SECURITY_LEVEL=r,l.USER_INFO=new i(this._ccm,c,s,u))}},{key:"_normalizeQueryParams",value:function(e,t){var r=t.info;if(r._from_query_string){try{t.executor()._getInfo(e,t)}catch(e){return}var n=r._iface_info,o=r._func,i=r.RAW_REQUEST;s(n,o,i),r._from_query_string=!1}}}])&&n(t.prototype,r),e}();e.exports=a},5071:e=>{"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null===t&&(t="string"!=typeof r?"LOCAL":r.match(/^([0-9]{1,3}\.){3}[0-9]{1,3}$/)?"IPv4":"IPv6"),this.type=t,this.host=r,this.port=n}var r,n;return r=e,(n=[{key:"asString",value:function(){return"LOCAL"===this.type?"LOCAL:".concat(this.port):"IPv6"===this.type?"IPv6:[".concat(this.host,"]:").concat(this.port):"".concat(this.type,":").concat(this.host,":").concat(this.port)}}])&&t(r.prototype,n),e}();e.exports=r},2112:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(2205),i={INFO_Login:"Login",INFO_Nick:"Nick",INFO_FirstName:"FirstName",INFO_FullName:"FullName",INFO_DateOfBirth:"DateOfBirth",INFO_TimeOfBirth:"TimeOfBirth",INFO_ContactEmail:"ContactEmail",INFO_ContactPhone:"ContactPhone",INFO_HomeAddress:"HomeAddress",INFO_WorkAddress:"WorkAddress",INFO_Citizenship:"Citizenship",INFO_GovernmentRegID:"GovernmentRegID",INFO_AvatarURL:"AvatarURL"},c=function(){function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ccm=t,this._local_id=r,this._global_id=n,this._details=o}var t,r;return t=e,(r=[{key:"localID",value:function(){return this._local_id}},{key:"globalID",value:function(){return this._global_id}},{key:"details",value:function(e,t){var r=this._details;if(r)return e.add((function(e){return e.success(r)})),e;var n=this._ccm.iface("#basicauth");return n.call(e,"getUserDetails",{local_id:this._local_id,fields:t||{}}),e.add((function(e,t){var r=t.details;n._details=r,e.success(r)})),e}},{key:"_cleanup",value:function(){this._ccm=null}}])&&n(t.prototype,r),e}();o(c,i),o(c.prototype,i),e.exports=c},1308:(e,t,r)=>{"use strict";!function(t){var n=t.FutoIn||t.futoin||{};if(void 0===n.Executor){var o=r(1443);t.FutoInExecutor=o,n.Executor=o,t.FutoIn=n,t.futoin=n,t.BrowserExecutor=o.BrowserExecutor}e.exports=n.Executor}(window)},1443:(e,t,r)=>{"use strict";e=r.nmd(e);var n="undefined"==typeof window&&r(5643);t.ChannelContext=r(8641),t.DerivedKey=r(7048),t.RequestInfo=r(7178),t.SourceAddress=r(5071),t.UserInfo=r(2112),t.SecurityProvider=r(8548),t.LegacySecurityProvider=r(1422),t.PingService=r(7524);var o=r(1333);if(t.Executor=o,t.ClientExecutor=o,n){var i=e;t.NodeExecutor=i.require("../NodeExecutor")}else t.BrowserExecutor=r(8650)},5643:e=>{e.exports=!1},1989:(e,t,r)=>{var n=r(1789),o=r(401),i=r(7667),c=r(1327),s=r(1866);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=s,e.exports=a},8407:(e,t,r)=>{var n=r(7040),o=r(4125),i=r(2117),c=r(7529),s=r(4705);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=s,e.exports=a},7071:(e,t,r)=>{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),i=r(6e3),c=r(9916),s=r(5265);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=s,e.exports=a},6384:(e,t,r)=>{var n=r(8407),o=r(7465),i=r(3779),c=r(7599),s=r(4758),a=r(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=c,u.prototype.has=s,u.prototype.set=a,e.exports=u},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},6874:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},4636:(e,t,r)=>{var n=r(2545),o=r(5694),i=r(1469),c=r(4144),s=r(5776),a=r(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&o(e),f=!r&&!l&&c(e),p=!r&&!l&&!f&&a(e),_=r||l||f||p,v=_?n(e.length,String):[],h=v.length;for(var y in e)!t&&!u.call(e,y)||_&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,h))||v.push(y);return v}},6556:(e,t,r)=>{var n=r(9465),o=r(7813);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},4865:(e,t,r)=>{var n=r(9465),o=r(7813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var c=e[t];i.call(e,t)&&o(c,r)&&(void 0!==r||t in e)||n(e,t,r)}},8470:(e,t,r)=>{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},9465:(e,t,r)=>{var n=r(8777);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},3118:(e,t,r)=>{var n=r(3218),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},8483:(e,t,r)=>{var n=r(5063)();e.exports=n},4239:(e,t,r)=>{var n=r(2705),o=r(9607),i=r(2333),c=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?o(e):i(e)}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},8458:(e,t,r)=>{var n=r(3560),o=r(5346),i=r(3218),c=r(346),s=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(c(e))}},8749:(e,t,r)=>{var n=r(4239),o=r(1780),i=r(7005),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!c[n(e)]}},313:(e,t,r)=>{var n=r(3218),o=r(5726),i=r(3498),c=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&c.call(e,s))&&r.push(s);return r}},2980:(e,t,r)=>{var n=r(6384),o=r(6556),i=r(8483),c=r(9783),s=r(3218),a=r(1704),u=r(6390);e.exports=function e(t,r,l,f,p){t!==r&&i(r,(function(i,a){if(p||(p=new n),s(i))c(t,r,a,l,e,f,p);else{var _=f?f(u(t,a),i,a+"",t,r,p):void 0;void 0===_&&(_=i),o(t,a,_)}}),a)}},9783:(e,t,r)=>{var n=r(6556),o=r(4626),i=r(7133),c=r(278),s=r(8517),a=r(5694),u=r(1469),l=r(9246),f=r(4144),p=r(3560),_=r(3218),v=r(8630),h=r(6719),y=r(6390),d=r(9881);e.exports=function(e,t,r,g,b,E,m){var O=y(e,r),x=y(t,r),A=m.get(x);if(A)n(e,r,A);else{var S=E?E(O,x,r+"",e,t,m):void 0,w=void 0===S;if(w){var R=u(x),I=!R&&f(x),k=!R&&!I&&h(x);S=x,R||I||k?u(O)?S=O:l(O)?S=c(O):I?(w=!1,S=o(x,!0)):k?(w=!1,S=i(x,!0)):S=[]:v(x)||a(x)?(S=O,a(O)?S=d(O):_(O)&&!p(O)||(S=s(x))):w=!1}w&&(m.set(x,S),b(S,x,g,E,m),m.delete(x)),n(e,r,S)}}},5976:(e,t,r)=>{var n=r(6557),o=r(5357),i=r(61);e.exports=function(e,t){return i(o(e,t,n),e+"")}},6560:(e,t,r)=>{var n=r(5703),o=r(8777),i=r(6557),c=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=c},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},1757:e=>{e.exports=function(e,t,r){for(var n=-1,o=e.length,i=t.length,c={};++n<o;){var s=n<i?t[n]:void 0;r(c,e[n],s)}return c}},4318:(e,t,r)=>{var n=r(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},4626:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,c=i&&i.exports===o?n.Buffer:void 0,s=c?c.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},7133:(e,t,r)=>{var n=r(4318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},8363:(e,t,r)=>{var n=r(4865),o=r(9465);e.exports=function(e,t,r,i){var c=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var u=t[s],l=i?i(r[u],e[u],u,r,e):void 0;void 0===l&&(l=e[u]),c?o(r,u,l):n(r,u,l)}return r}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},1463:(e,t,r)=>{var n=r(5976),o=r(6612);e.exports=function(e){return n((function(t,r){var n=-1,i=r.length,c=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(c=e.length>3&&"function"==typeof c?(i--,c):void 0,s&&o(r[0],r[1],s)&&(c=i<3?void 0:c,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,c)}return t}))}},5063:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),c=n(t),s=c.length;s--;){var a=c[e?s:++o];if(!1===r(i[a],a,i))break}return t}}},2052:(e,t,r)=>{var n=r(2980),o=r(3218);e.exports=function e(t,r,i,c,s,a){return o(t)&&o(r)&&(a.set(r,t),n(t,r,void 0,e,a),a.delete(r)),t}},8777:(e,t,r)=>{var n=r(852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},1957:e=>{var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},5924:(e,t,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);e.exports=n},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=c.call(e);return n&&(t?e[s]=r:delete e[s]),o}},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,r)=>{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},8517:(e,t,r)=>{var n=r(3118),o=r(5924),i=r(5726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},6612:(e,t,r)=>{var n=r(7813),o=r(8612),i=r(5776),c=r(3218);e.exports=function(e,t,r){if(!c(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7529:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),i=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,c=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||c&&c.binding&&c.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5357:(e,t,r)=>{var n=r(6874),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,c=-1,s=o(i.length-t,0),a=Array(s);++c<s;)a[c]=i[t+c];c=-1;for(var u=Array(t+1);++c<t;)u[c]=i[c];return u[t]=r(a),n(e,this,u)}}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},61:(e,t,r)=>{var n=r(6560),o=r(1275)(n);e.exports=o},1275:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),o=r(7071),i=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||c.length<199)return c.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(c)}return r.set(e,t),this.size=r.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},3045:(e,t,r)=>{var n=r(8363),o=r(1463),i=r(1704),c=o((function(e,t){n(t,i(t),e)}));e.exports=c},5703:e=>{e.exports=function(e){return function(){return e}}},1747:(e,t,r)=>{var n=r(5976),o=r(7813),i=r(6612),c=r(1704),s=Object.prototype,a=s.hasOwnProperty,u=n((function(e,t){e=Object(e);var r=-1,n=t.length,u=n>2?t[2]:void 0;for(u&&i(t[0],t[1],u)&&(n=1);++r<n;)for(var l=t[r],f=c(l),p=-1,_=f.length;++p<_;){var v=f[p],h=e[v];(void 0===h||o(h,s[v])&&!a.call(e,v))&&(e[v]=l[v])}return e}));e.exports=u},6913:(e,t,r)=>{var n=r(6874),o=r(5976),i=r(2052),c=r(236),s=o((function(e){return e.push(void 0,i),n(c,void 0,e)}));e.exports=s},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2205:(e,t,r)=>{e.exports=r(3045)},6557:e=>{e.exports=function(e){return e}},5694:(e,t,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,c=i.hasOwnProperty,s=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return o(e)&&c.call(e,"callee")&&!s.call(e,"callee")};e.exports=a},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,r)=>{var n=r(3560),o=r(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},9246:(e,t,r)=>{var n=r(8612),o=r(7005);e.exports=function(e){return o(e)&&n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=r(5062),i=t&&!t.nodeType&&t,c=i&&e&&!e.nodeType&&e,s=c&&c.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||o;e.exports=a},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,r)=>{var n=r(4239),o=r(5924),i=r(7005),c=Function.prototype,s=Object.prototype,a=c.toString,u=s.hasOwnProperty,l=a.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&a.call(r)==l}},6719:(e,t,r)=>{var n=r(8749),o=r(7518),i=r(1167),c=i&&i.isTypedArray,s=c?o(c):n;e.exports=s},1704:(e,t,r)=>{var n=r(4636),o=r(313),i=r(8612);e.exports=function(e){return i(e)?n(e,!0):o(e)}},236:(e,t,r)=>{var n=r(2980),o=r(1463)((function(e,t,r,o){n(e,t,r,o)}));e.exports=o},5062:e=>{e.exports=function(){return!1}},9881:(e,t,r)=>{var n=r(8363),o=r(1704);e.exports=function(e){return n(e,o(e))}},7287:(e,t,r)=>{var n=r(4865),o=r(1757);e.exports=function(e,t){return o(e||[],t||[],n)}},75:function(e){(function(){var t,r,n,o,i,c;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},r=process.hrtime,o=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),c=1e9*process.uptime(),i=o-c):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},4495:t=>{"use strict";t.exports=e},8754:e=>{"use strict";e.exports=r},7034:e=>{"use strict";e.exports=t}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}return i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i(1308)})()}));

@@ -35,7 +35,7 @@ 'use strict';

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

@@ -65,3 +65,3 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

key: "register",
value:
/**

@@ -77,3 +77,3 @@ * BasicAuth interface registration helper

*/
value: function register(as, ccm, endpoint, credentials, options) {
function register(as, ccm, endpoint, credentials, options) {
options = options || {};

@@ -80,0 +80,0 @@ var ifacever = options.version || '0.1';

@@ -59,3 +59,3 @@ 'use strict';

key: "addUser",
value:
/**

@@ -69,3 +69,3 @@ * Register users statically right after registration

*/
value: function addUser(user, secret, details, system_user) {
function addUser(user, secret, details, system_user) {
var next_id = this._next_id++;

@@ -72,0 +72,0 @@ details = details || {};

@@ -39,7 +39,7 @@ "use strict";

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

@@ -46,0 +46,0 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

@@ -37,7 +37,7 @@ "use strict";

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

@@ -278,4 +278,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

_createClass(Executor, [{
key: "ccm",
key: "SAFE_PAYLOAD_LIMIT",
get: function get() {
return 65536;
}
/**

@@ -286,2 +288,5 @@ * Get reference to associated AdvancedCCM instance

*/
}, {
key: "ccm",
value: function ccm() {

@@ -962,7 +967,2 @@ return this._ccm;

}
}, {
key: "SAFE_PAYLOAD_LIMIT",
get: function get() {
return 65536;
}
}]);

@@ -969,0 +969,0 @@

@@ -37,7 +37,7 @@ 'use strict';

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

@@ -44,0 +44,0 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

@@ -41,7 +41,7 @@ "use strict";

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

@@ -1104,2 +1104,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

}, {
key: "limitsIPSet",
get: function get() {
return this._address_limit_map;
}
}, {
key: "_limitCacheMax",

@@ -1204,7 +1209,2 @@ value: function _limitCacheMax() {

}, {
key: "limitsIPSet",
get: function get() {
return this._address_limit_map;
}
}]);

@@ -1211,0 +1211,0 @@

@@ -48,3 +48,3 @@ 'use strict';

key: "register",
value:
/**

@@ -56,3 +56,3 @@ * Register futoin.ping interface with Executor

*/
value: function register(as, executor) {
function register(as, executor) {
var iface = PingFace.spec("1.0");

@@ -59,0 +59,0 @@ var ifacever = iface.iface + ':' + iface.version;

@@ -46,3 +46,3 @@ 'use strict';

key: "checkAuth",
value:
/**

@@ -55,3 +55,3 @@ * Check request authentication.

*/
value: function checkAuth(as, reqinfo, reqmsg, sec) {
function checkAuth(as, reqinfo, reqmsg, sec) {
as.error(NotImplemented, "Authentication is not enabled");

@@ -58,0 +58,0 @@ void reqinfo;

@@ -17,7 +17,7 @@ "use strict";

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

@@ -24,0 +24,0 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

@@ -21,7 +21,7 @@ 'use strict';

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

@@ -57,3 +57,3 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

var REQ_LIMIT = 10;
var PERIOD_MS = 300;
var PERIOD_MS = 600;

@@ -83,2 +83,3 @@ var make_ping = function make_ping(done) {

this.timeout(5e3);
beforeEach(function () {

@@ -85,0 +86,0 @@ as = $as();

{
"name": "futoin-executor",
"version": "2.3.5",
"version": "2.3.6",
"vcs": "git",

@@ -5,0 +5,0 @@ "rms": "npm",

{
"name": "futoin-executor",
"version": "2.3.5",
"version": "2.3.6",
"description": "FutoIn Service base with strict API definition for Node and Browser",

@@ -59,30 +59,30 @@ "main": "lib/main.js",

"cookie": "^0.4.1",
"detect-node": "^2.0.4",
"futoin-asyncevent": "^2.3.5",
"futoin-ipset": "^1.3.6",
"lodash": "^4.17.20",
"detect-node": "^2.1.0",
"futoin-asyncevent": "^2.3.6",
"futoin-ipset": "^1.3.7",
"lodash": "^4.17.21",
"lru-cache": "^6.0.0",
"performance-now": "^2.1.0",
"ws": "^7.4.2"
"ws": "^8.1.0"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-transform-object-assign": "^7.12.1",
"@babel/preset-env": "^7.12.11",
"@babel/core": "^7.15.0",
"@babel/plugin-transform-object-assign": "^7.14.5",
"@babel/preset-env": "^7.15.0",
"babel-loader": "^8.2.2",
"chai": "^4.2.0",
"core-js": "^3.8.3",
"eslint": "^7.19.0",
"futoin-asyncsteps": "^2.5.2",
"futoin-invoker": "^2.4.6",
"grunt": "^1.3.0",
"chai": "^4.3.4",
"core-js": "^3.16.1",
"eslint": "^7.32.0",
"futoin-asyncsteps": "^2.5.3",
"futoin-invoker": "^2.4.8",
"grunt": "^1.4.1",
"grunt-babel": "^8.0.0",
"grunt-eslint": "^23.0.0",
"grunt-jsdoc-to-markdown": "^5.0.0",
"grunt-karma": "^4.0.0",
"grunt-jsdoc-to-markdown": "^6.0.0",
"grunt-karma": "^4.0.2",
"grunt-simple-nyc": "^3.0.1",
"grunt-text-replace": "^0.4.0",
"grunt-webpack": "^4.0.2",
"karma": "^6.0.3",
"karma-firefox-launcher": "^2.1.0",
"grunt-webpack": "^4.0.3",
"karma": "^6.3.4",
"karma-firefox-launcher": "^2.1.1",
"karma-mocha": "^2.0.1",

@@ -92,5 +92,5 @@ "karma-mocha-reporter": "^2.2.5",

"minimist": "^1.2.5",
"mocha": "^8.2.1",
"mocha": "^9.0.3",
"request": "^2.88.2",
"webpack": "5.19.0"
"webpack": "5.50.0"
},

@@ -104,4 +104,4 @@ "peerDependencies": {

"posix": "^4.2.0",
"utf-8-validate": "^5.0.4"
"utf-8-validate": "^5.0.5"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc