parallel-es
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -425,3 +425,3 @@ /******/ (function(modules) { // webpackBootstrap | ||
const args = definition.argumentNames.join(", "); | ||
const wrapper = Function.apply(undefined, [`return function ${definition.name} (${args}) { ${definition.body}}`]); | ||
const wrapper = Function.apply(undefined, [`return function ${definition.name} (${args}) { ${definition.body} }; `]); | ||
return wrapper(); | ||
@@ -611,2 +611,17 @@ } | ||
/** | ||
* Binds the function to undefined and the given params. Uses Function.bind if available or creates its own wrapper | ||
* if not. | ||
* @param fn the function to bind to the given parameters | ||
* @param params the parameters to which the function is partially bound | ||
* @returns a partially bound function | ||
*/ | ||
function bind(fn, params) { | ||
if (typeof (fn.bind) === "function") { | ||
return fn.bind(undefined, ...params); | ||
} | ||
return function bound(...additionalParams) { | ||
return fn.apply(undefined, params.concat(additionalParams)); | ||
}; | ||
} | ||
/** | ||
* Deserializer for a {@link ISerializedFunctionCall}. | ||
@@ -642,5 +657,3 @@ */ | ||
} | ||
return function (...additionalParams) { | ||
return func.apply(undefined, params.concat(additionalParams)); | ||
}; | ||
return bind(func, params); | ||
} | ||
@@ -647,0 +660,0 @@ } |
@@ -1,3 +0,3 @@ | ||
!function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,n,e){Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=123)}([function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(29)("wks"),o=e(18),i=e(2).Symbol,u="function"==typeof i,a=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};a.store=r},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(4),o=e(43),i=e(32),u=Object.defineProperty;n.f=e(5)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(13);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){t.exports=!e(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(2),o=e(0),i=e(21),u=e(9),a="prototype",c=function(t,n,e){var f,s,l,p=t&c.F,v=t&c.G,d=t&c.S,h=t&c.P,y=t&c.B,g=t&c.W,_=v?o:o[n]||(o[n]={}),b=_[a],x=v?r:d?r[n]:(r[n]||{})[a];v&&(e=n);for(f in e)s=!p&&x&&void 0!==x[f],s&&f in _||(l=s?x[f]:e[f],_[f]=v&&"function"!=typeof x[f]?e[f]:y&&s?i(l,r):g&&x[f]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[a]=t[a],n}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((_.virtual||(_.virtual={}))[f]=l,t&c.R&&b&&!b[f]&&u(b,f,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(98),o=e(22);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(3),o=e(15);t.exports=e(5)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(73),i=r(o);n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports={}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){t.exports={default:e(82),__esModule:!0}},function(t,n,e){var r=e(50),o=e(23);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){"use strict";function r(t){return a()(t)}function o(t){for(var n=[],e=void 0;!(e=t.next()).done;)n.push(e.value);return n}var i=e(39),u=(e.n(i),e(16)),a=e.n(u);n.b=r,n.a=o},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(91);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){t.exports=!0},function(t,n,e){var r=e(4),o=e(107),i=e(23),u=e(28)("IE_PROTO"),a=function(){},c="prototype",f=function(){var t,n=e(42)("iframe"),r=i.length,o="<",u=">";for(n.style.display="none",e(97).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),f=t.F;r--;)delete f[c][i[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[c]=r(t),e=new a,a[c]=null,e[u]=t):e=f(),void 0===n?e:o(e,n)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(3).f,o=e(7),i=e(1)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(29)("keys"),o=e(18);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(2),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(22);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(13);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(2),o=e(0),i=e(24),u=e(34),a=e(3).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(1)},function(t,n,e){"use strict";var r=e(109)(!0);e(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";function r(t){return!!t&&t.______serializedFunctionCall===!0}n.a=r},function(t,n,e){"use strict";function r(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return{functionIds:[t].concat(e),type:y.FunctionRequest}}function o(t){return{result:t,type:y.WorkerResult}}function i(t){var n={},e=!0,r=!1,o=void 0;try{for(var i,u=h()(v()(t));!(e=(i=u.next()).done);e=!0){var a=i.value;n[a]=l()(t[a])}}catch(t){r=!0,o=t}finally{try{!e&&u.return&&u.return()}finally{if(r)throw o}}return{error:n,type:y.FunctionExecutionError}}function u(t){return t.type===y.ScheduleTask}function a(t){return t.type===y.InitializeWorker}function c(t){return t.type===y.FunctionResponse}function f(t){return t.type===y.Stop}var s=e(71),l=e.n(s),p=e(74),v=e.n(p),d=e(16),h=e.n(d);n.c=r,n.f=o,n.e=i,n.b=u,n.a=a,n.d=c,n.g=f;var y;!function(t){t[t.InitializeWorker=0]="InitializeWorker",t[t.ScheduleTask=1]="ScheduleTask",t[t.FunctionRequest=2]="FunctionRequest",t[t.FunctionResponse=3]="FunctionResponse",t[t.WorkerResult=4]="WorkerResult",t[t.FunctionExecutionError=5]="FunctionExecutionError",t[t.Stop=6]="Stop"}(y||(y={}))},function(t,n,e){t.exports={default:e(81),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(38),i=r(o);n.default=function(t){return Array.isArray(t)?t:(0,i.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(38),i=r(o);n.default=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return(0,i.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(78),i=r(o),u=e(77),a=r(u),c="function"==typeof a.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};n.default="function"==typeof a.default&&"symbol"===c(i.default)?function(t){return"undefined"==typeof t?"undefined":c(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":c(t)}},function(t,n,e){var r=e(13),o=e(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){t.exports=!e(5)&&!e(12)(function(){return 7!=Object.defineProperty(e(42)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){"use strict";var r=e(24),o=e(6),i=e(52),u=e(9),a=e(7),c=e(14),f=e(102),s=e(27),l=e(49),p=e(1)("iterator"),v=!([].keys&&"next"in[].keys()),d="@@iterator",h="keys",y="values",g=function(){return this};t.exports=function(t,n,e,_,b,x,w){f(e,n,_);var m,O,S,E=function(t){if(!v&&t in j)return j[t];switch(t){case h:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},k=n+" Iterator",F=b==y,M=!1,j=t.prototype,P=j[p]||j[d]||b&&j[b],T=P||E(b),A=b?F?E("entries"):T:void 0,I="Array"==n?j.entries||P:P;if(I&&(S=l(I.call(new t)),S!==Object.prototype&&(s(S,k,!0),r||a(S,p)||u(S,p,g))),F&&P&&P.name!==y&&(M=!0,T=function(){return P.call(this)}),r&&!w||!v&&!M&&j[p]||u(j,p,T),c[n]=T,c[k]=g,b)if(m={values:F?T:E(y),keys:x?T:E(h),entries:A},w)for(O in m)O in j||i(j,O,m[O]);else o(o.P+o.F*(v||M),n,m);return m}},function(t,n,e){var r=e(26),o=e(15),i=e(8),u=e(32),a=e(7),c=e(43),f=Object.getOwnPropertyDescriptor;n.f=e(5)?f:function(t,n){if(t=i(t),n=u(n,!0),c)try{return f(t,n)}catch(t){}if(a(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(8),o=e(47).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?a(t):o(r(t))}},function(t,n,e){var r=e(50),o=e(23).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(7),o=e(31),i=e(28)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(7),o=e(8),i=e(93)(!1),u=e(28)("IE_PROTO");t.exports=function(t,n){var e,a=o(t),c=0,f=[];for(e in a)e!=u&&r(a,e)&&f.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~i(f,e)||f.push(e));return f}},function(t,n,e){var r=e(6),o=e(0),i=e(12);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){t.exports=e(9)},function(t,n,e){var r=e(30),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(94),o=e(1)("iterator"),i=e(14);t.exports=e(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){e(113);for(var r=e(2),o=e(9),i=e(14),u=e(1)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var f=a[c],s=r[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}},function(t,n,e){"use strict";var r=e(10),o=e.n(r),i=e(11),u=e.n(i),a=e(37),c=e(59);e.d(n,"a",function(){return f});var f=function(){function t(n){o()(this,t),this.functionCache=n,this.id=Number.NaN,this.state=new c.a(this)}return u()(t,[{key:"changeState",value:function(t){this.state=t,this.state.enter()}},{key:"onMessage",value:function(t){if(e.i(a.g)(t.data))close();else if(!this.state.onMessage(t))throw new Error("Message with type "+t.data.type+" cannot be handled by slave "+this)}},{key:"postMessage",value:function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n}(function(t){postMessage(t)})},{key:"toString",value:function(){return"BrowserSlave { id: "+this.id+", state: '"+this.state.name+"' }"}}]),t}()},function(t,n,e){"use strict";var r=e(40),o=e.n(r),i=e(10),u=e.n(i),a=e(11),c=e.n(a),f=e(70);e.d(n,"a",function(){return s});var s=function(){function t(){u()(this,t),this.cache=new f.a}return c()(t,[{key:"getFunction",value:function(t){return this.cache.get(t.identifier)}},{key:"registerFunction",value:function(t){var n=this.toFunction(t);return this.cache.set(t.id.identifier,n),n}},{key:"registerStaticFunction",value:function(t,n){if(this.has(t))throw new Error("The given function id '"+t.identifier+"' is already used by another function registration, the id needs to be unique.");this.cache.set(t.identifier,n)}},{key:"has",value:function(t){return this.cache.has(t.identifier)}},{key:"toFunction",value:function(t){if(t.name){var n=t.argumentNames.join(", "),e=Function.apply(void 0,["return function "+t.name+" ("+n+") { "+t.body+"}"]);return e()}return Function.apply(void 0,[].concat(o()(t.argumentNames),[t.body]))}}]),t}()},function(t,n,e){"use strict";function r(t){t.registerStaticFunction(o.a.IDENTITY,i.a),t.registerStaticFunction(o.a.FILTER,u.a),t.registerStaticFunction(o.a.MAP,a.a),t.registerStaticFunction(o.a.PARALLEL_JOB_EXECUTOR,c.a),t.registerStaticFunction(o.a.RANGE,f.a),t.registerStaticFunction(o.a.REDUCE,s.a),t.registerStaticFunction(o.a.TO_ITERATOR,l.b)}var o=e(65),i=e(69),u=e(62),a=e(63),c=e(64),f=e(66),s=e(67),l=e(19);n.a=r},function(t,n,e){"use strict";var r=e(16),o=e.n(r),i=e(40),u=e.n(i),a=e(39),c=e.n(a),f=e(75),s=e.n(f),l=e(80),p=e.n(l),v=e(79),d=e.n(v),h=e(10),y=e.n(h),g=e(11),_=e.n(g),b=e(60),x=e(37);e.d(n,"a",function(){return m});var w=function(){function t(n,e){y()(this,t),this.name=n,this.slave=e}return _()(t,[{key:"enter",value:function(){}},{key:"onMessage",value:function(t){return!1}}]),t}(),m=function(t){function n(t){return y()(this,n),p()(this,(n.__proto__||s()(n)).call(this,"Default",t))}return d()(n,t),_()(n,[{key:"onMessage",value:function(t){return!!e.i(x.a)(t.data)&&(this.slave.id=t.data.workerId,this.slave.changeState(new O(this.slave)),!0)}}]),n}(w),O=function(t){function n(t){return y()(this,n),p()(this,(n.__proto__||s()(n)).call(this,"Idle",t))}return d()(n,t),_()(n,[{key:"onMessage",value:function(t){var n=this;if(!e.i(x.b)(t.data))return!1;var r=t.data.task,o=r.usedFunctionIds.filter(function(t){return!n.slave.functionCache.has(t)});if(0===o.length)this.slave.changeState(new E(this.slave,r));else{var i=c()(o),a=i[0],f=i.slice(1);this.slave.postMessage(x.c.apply(void 0,[a].concat(u()(f)))),this.slave.changeState(new S(this.slave,r))}return!0}}]),n}(w),S=function(t){function n(t,e){y()(this,n);var r=p()(this,(n.__proto__||s()(n)).call(this,"WaitingForFunctionDefinition",t));return r.task=e,r}return d()(n,t),_()(n,[{key:"onMessage",value:function(t){var n=t.data;if(e.i(x.d)(n)){if(n.missingFunctions.length>0){var r=n.missingFunctions.map(function(t){return t.identifier}).join(", ");this.slave.postMessage(e.i(x.e)(new Error("The function ids ["+r+"] could not be resolved by slave "+this.slave.id+"."))),this.slave.changeState(new O(this.slave))}else{var i=!0,u=!1,a=void 0;try{for(var c,f=o()(n.functions);!(i=(c=f.next()).done);i=!0){var s=c.value;this.slave.functionCache.registerFunction(s)}}catch(t){u=!0,a=t}finally{try{!i&&f.return&&f.return()}finally{if(u)throw a}}this.slave.changeState(new E(this.slave,this.task))}return!0}return!1}}]),n}(w),E=function(t){function n(t,e){y()(this,n);var r=p()(this,(n.__proto__||s()(n)).call(this,"Executing",t));return r.task=e,r}return d()(n,t),_()(n,[{key:"enter",value:function(){var t=new b.a(this.slave.functionCache);try{var n=t.deserializeFunctionCall(this.task.main),r=n({functionCallDeserializer:t});this.slave.postMessage(e.i(x.f)(r))}catch(t){this.slave.postMessage(e.i(x.e)(t))}this.slave.changeState(new O(this.slave))}}]),n}(w)},function(t,n,e){"use strict";var r=e(10),o=e.n(r),i=e(11),u=e.n(i),a=e(36);e.d(n,"a",function(){return c});var c=function(){function t(n){o()(this,t),this.functionLookupTable=n}return u()(t,[{key:"deserializeFunctionCall",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.functionLookupTable.getFunction(t.functionId);if(!o)throw new Error("The function with the id "+t.functionId.identifier+" could not be retrieved while deserializing the function call. Is the function correctly registered?");var i=t.parameters||[];return r&&(i=i.map(function(t){return e.i(a.a)(t)?n.deserializeFunctionCall(t):t})),function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];return o.apply(void 0,i.concat(n))}}}]),t}()},function(t,n,e){"use strict";function r(t,n){return{_______isFunctionId:!0,identifier:t+"-"+n}}n.a=r},function(t,n,e){"use strict";function r(t,n,e){return{next:function(){for(var r=void 0;!(r=t.next()).done;)if(n(r.value,e))return r;return r}}}n.a=r},function(t,n,e){"use strict";function r(t,n,e){return{next:function(){var r=t.next();return r.done?{done:!0}:{done:r.done,value:n(r.value,e)}}}}n.a=r},function(t,n,e){"use strict";function r(t,n){var r={},o=!0,i=!1,a=void 0;try{for(var s,l=u()(t.environments);!(o=(s=l.next()).done);o=!0){var p=s.value,v=void 0;v=e.i(c.a)(p)?n.deserializeFunctionCall(p)():p,e.i(f.a)(r,v)}}catch(t){i=!0,a=t}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}return e.i(f.a)({},{taskIndex:t.taskIndex,valuesPerTask:t.valuesPerTask},r)}function o(t,n){var o=n.functionCallDeserializer,i=r(t,o),c=o.deserializeFunctionCall(t.generator,!0),f=c(i),s=!0,l=!1,p=void 0;try{for(var v,d=u()(t.operations);!(s=(v=d.next()).done);s=!0){var h=v.value,y=o.deserializeFunctionCall(h.iterator),g=o.deserializeFunctionCall(h.iteratee);f=y(f,g,i)}}catch(t){l=!0,p=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw p}}return e.i(a.a)(f)}var i=e(16),u=e.n(i),a=e(19),c=e(36),f=e(68);n.a=o},function(t,n,e){"use strict";var r=e(61);e.d(n,"a",function(){return o});var o={FILTER:e.i(r.a)("parallel",0),IDENTITY:e.i(r.a)("parallel",1),MAP:e.i(r.a)("parallel",2),PARALLEL_JOB_EXECUTOR:e.i(r.a)("parallel",3),RANGE:e.i(r.a)("parallel",4),REDUCE:e.i(r.a)("parallel",5),TIMES:e.i(r.a)("parallel",6),TO_ITERATOR:e.i(r.a)("parallel",7)}},function(t,n,e){"use strict";function r(t,n,e){var r=n-t,o=Math.max(Math.floor(r/(e||1)),0),i=t;return{next:function(){var t=i;return i+=e,0!==o--?{done:!1,value:t}:{done:!0}}}}n.a=r},function(t,n,e){"use strict";function r(t,n,r,i){for(var u=t,a=void 0;!(a=n.next()).done;)u=r(u,a.value,i);return e.i(o.b)([u])}var o=e(19);n.a=r},function(t,n,e){"use strict";function r(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];if(null==t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(var o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i)for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(t[u]=i[u])}return t}n.a=r},function(t,n,e){"use strict";function r(t){return t}n.a=r},function(t,n,e){"use strict";var r=e(10),o=e.n(r),i=e(11),u=e.n(i);e.d(n,"a",function(){return a});var a=function(){function t(){o()(this,t),this.data={}}return u()(t,[{key:"get",value:function(t){var n=this.toInternalKey(t);return this.has(t)?this.data[n]:void 0}},{key:"has",value:function(t){return this.hasOwnProperty.call(this.data,this.toInternalKey(t))}},{key:"set",value:function(t,n){this.data[this.toInternalKey(t)]=n}},{key:"clear",value:function(){this.data={}}},{key:"toInternalKey",value:function(t){return"@"+t}}]),t}()},function(t,n,e){t.exports={default:e(83),__esModule:!0}},function(t,n,e){t.exports={default:e(84),__esModule:!0}},function(t,n,e){t.exports={default:e(85),__esModule:!0}},function(t,n,e){t.exports={default:e(86),__esModule:!0}},function(t,n,e){t.exports={default:e(87),__esModule:!0}},function(t,n,e){t.exports={default:e(88),__esModule:!0}},function(t,n,e){t.exports={default:e(89),__esModule:!0}},function(t,n,e){t.exports={default:e(90),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(76),i=r(o),u=e(72),a=r(u),c=e(41),f=r(c);n.default=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof n?"undefined":(0,f.default)(n)));t.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(i.default?(0,i.default)(t,n):t.__proto__=n)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(41),i=r(o);n.default=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==("undefined"==typeof n?"undefined":(0,i.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){e(35),e(112),t.exports=e(0).Array.from},function(t,n,e){e(55),e(35),t.exports=e(111)},function(t,n,e){var r=e(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,n,e){e(114);var r=e(0).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(115);var r=e(0).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){e(116);var r=e(0).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(117),t.exports=e(0).Object.getPrototypeOf},function(t,n,e){e(118),t.exports=e(0).Object.setPrototypeOf},function(t,n,e){e(120),e(119),e(121),e(122),t.exports=e(0).Symbol},function(t,n,e){e(35),e(55),t.exports=e(34).f("iterator")},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(8),o=e(53),i=e(110);t.exports=function(t){return function(n,e,u){var a,c=r(n),f=o(c.length),s=i(u,f);if(t&&e!=e){for(;f>s;)if(a=c[s++],a!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(20),o=e(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),o))?e:i?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){"use strict";var r=e(3),o=e(15);t.exports=function(t,n,e){n in t?r.f(t,n,o(0,e)):t[n]=e}},function(t,n,e){var r=e(17),o=e(48),i=e(26);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,a=e(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&n.push(u);return n}},function(t,n,e){t.exports=e(2).document&&document.documentElement},function(t,n,e){var r=e(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(14),o=e(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){var r=e(20);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(4);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},function(t,n,e){"use strict";var r=e(25),o=e(15),i=e(27),u={};e(9)(u,e(1)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:e=!0}},i[r]=function(){return u},t(i)}catch(t){}return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(17),o=e(8);t.exports=function(t,n){for(var e,i=o(t),u=r(i),a=u.length,c=0;a>c;)if(i[e=u[c++]]===n)return e}},function(t,n,e){var r=e(18)("meta"),o=e(13),i=e(7),u=e(3).f,a=0,c=Object.isExtensible||function(){return!0},f=!e(12)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},v=function(t){return f&&d.NEED&&c(t)&&!i(t,r)&&s(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:v}},function(t,n,e){var r=e(3),o=e(4),i=e(17);t.exports=e(5)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),a=u.length,c=0;a>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(13),o=e(4),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(21)(Function.call,e(45).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n,e){var r=e(30),o=e(22);t.exports=function(t){return function(n,e){var i,u,a=String(o(n)),c=r(e),f=a.length;return c<0||c>=f?t?"":void 0:(i=a.charCodeAt(c),i<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r=e(30),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(4),o=e(54);t.exports=e(0).getIterator=function(t){var n=o(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return r(n.call(t))}},function(t,n,e){"use strict";var r=e(21),o=e(6),i=e(31),u=e(101),a=e(99),c=e(53),f=e(95),s=e(54);o(o.S+o.F*!e(103)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,o,l,p=i(t),v="function"==typeof this?this:Array,d=arguments.length,h=d>1?arguments[1]:void 0,y=void 0!==h,g=0,_=s(p);if(y&&(h=r(h,d>2?arguments[2]:void 0,2)),void 0==_||v==Array&&a(_))for(n=c(p.length),e=new v(n);n>g;g++)f(e,g,y?h(p[g],g):p[g]);else for(l=_.call(p),e=new v;!(o=l.next()).done;g++)f(e,g,y?u(l,h,[o.value,g],!0):o.value);return e.length=g,e}})},function(t,n,e){"use strict";var r=e(92),o=e(104),i=e(14),u=e(8);t.exports=e(44)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(6);r(r.S,"Object",{create:e(25)})},function(t,n,e){var r=e(6);r(r.S+r.F*!e(5),"Object",{defineProperty:e(3).f})},function(t,n,e){e(51)("getOwnPropertyNames",function(){return e(46).f})},function(t,n,e){var r=e(31),o=e(49);e(51)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(6);r(r.S,"Object",{setPrototypeOf:e(108).set})},function(t,n){},function(t,n,e){"use strict";var r=e(2),o=e(7),i=e(5),u=e(6),a=e(52),c=e(106).KEY,f=e(12),s=e(29),l=e(27),p=e(18),v=e(1),d=e(34),h=e(33),y=e(105),g=e(96),_=e(100),b=e(4),x=e(8),w=e(32),m=e(15),O=e(25),S=e(46),E=e(45),k=e(3),F=e(17),M=E.f,j=k.f,P=S.f,T=r.Symbol,A=r.JSON,I=A&&A.stringify,R="prototype",C=v("_hidden"),N=v("toPrimitive"),z={}.propertyIsEnumerable,L=s("symbol-registry"),D=s("symbols"),W=s("op-symbols"),J=Object[R],K="function"==typeof T,U=r.QObject,B=!U||!U[R]||!U[R].findChild,G=i&&f(function(){return 7!=O(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=M(J,n);r&&delete J[n],j(t,n,e),r&&t!==J&&j(J,n,r)}:j,q=function(t){var n=D[t]=O(T[R]);return n._k=t,n},Y=K&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},X=function(t,n,e){return t===J&&X(W,n,e),b(t),n=w(n,!0),b(e),o(D,n)?(e.enumerable?(o(t,C)&&t[C][n]&&(t[C][n]=!1),e=O(e,{enumerable:m(0,!1)})):(o(t,C)||j(t,C,m(1,{})),t[C][n]=!0),G(t,n,e)):j(t,n,e)},Q=function(t,n){b(t);for(var e,r=g(n=x(n)),o=0,i=r.length;i>o;)X(t,e=r[o++],n[e]);return t},H=function(t,n){return void 0===n?O(t):Q(O(t),n)},V=function(t){var n=z.call(this,t=w(t,!0));return!(this===J&&o(D,t)&&!o(W,t))&&(!(n||!o(this,t)||!o(D,t)||o(this,C)&&this[C][t])||n)},Z=function(t,n){if(t=x(t),n=w(n,!0),t!==J||!o(D,n)||o(W,n)){var e=M(t,n);return!e||!o(D,n)||o(t,C)&&t[C][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=P(x(t)),r=[],i=0;e.length>i;)o(D,n=e[i++])||n==C||n==c||r.push(n);return r},tt=function(t){for(var n,e=t===J,r=P(e?W:x(t)),i=[],u=0;r.length>u;)!o(D,n=r[u++])||e&&!o(J,n)||i.push(D[n]);return i};K||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===J&&n.call(W,e),o(this,C)&&o(this[C],t)&&(this[C][t]=!1),G(this,t,m(1,e))};return i&&B&&G(J,t,{configurable:!0,set:n}),q(t)},a(T[R],"toString",function(){return this._k}),E.f=Z,k.f=X,e(47).f=S.f=$,e(26).f=V,e(48).f=tt,i&&!e(24)&&a(J,"propertyIsEnumerable",V,!0),d.f=function(t){return q(v(t))}),u(u.G+u.W+u.F*!K,{Symbol:T});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)v(nt[et++]);for(var nt=F(v.store),et=0;nt.length>et;)h(nt[et++]);u(u.S+u.F*!K,"Symbol",{for:function(t){return o(L,t+="")?L[t]:L[t]=T(t)},keyFor:function(t){if(Y(t))return y(L,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),u(u.S+u.F*!K,"Object",{create:H,defineProperty:X,defineProperties:Q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),A&&u(u.S+u.F*(!K||f(function(){var t=T();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Y(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return n=r[1],"function"==typeof n&&(e=n),!e&&_(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!Y(n))return n}),r[1]=n,I.apply(A,r)}}}),T[R][N]||e(9)(T[R],N,T[R].valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(33)("asyncIterator")},function(t,n,e){e(33)("observable")},function(t,n,e){"use strict";var r=e(56),o=e(57),i=e(58),slaveFunctionLookupTable=new o.a;e.i(i.a)(slaveFunctionLookupTable);/** @preserve WORKER_SLAVE_STATIC_FUNCTIONS_PLACEHOLDER */ | ||
!function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,n,e){Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=123)}([function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(30)("wks"),o=e(18),i=e(2).Symbol,u="function"==typeof i,a=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};a.store=r},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(4),o=e(43),i=e(33),u=Object.defineProperty;n.f=e(5)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(13);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){t.exports=!e(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(2),o=e(0),i=e(22),u=e(9),a="prototype",c=function(t,n,e){var f,s,l,p=t&c.F,v=t&c.G,d=t&c.S,h=t&c.P,y=t&c.B,g=t&c.W,_=v?o:o[n]||(o[n]={}),b=_[a],x=v?r:d?r[n]:(r[n]||{})[a];v&&(e=n);for(f in e)s=!p&&x&&void 0!==x[f],s&&f in _||(l=s?x[f]:e[f],_[f]=v&&"function"!=typeof x[f]?e[f]:y&&s?i(l,r):g&&x[f]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[a]=t[a],n}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((_.virtual||(_.virtual={}))[f]=l,t&c.R&&b&&!b[f]&&u(b,f,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(98),o=e(23);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(3),o=e(15);t.exports=e(5)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(73),i=r(o);n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports={}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){t.exports={default:e(82),__esModule:!0}},function(t,n,e){var r=e(50),o=e(24);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){"use strict";function r(t){return a()(t)}function o(t){for(var n=[],e=void 0;!(e=t.next()).done;)n.push(e.value);return n}var i=e(40),u=(e.n(i),e(16)),a=e.n(u);n.b=r,n.a=o},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(39),i=r(o);n.default=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return(0,i.default)(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(91);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){t.exports=!0},function(t,n,e){var r=e(4),o=e(107),i=e(24),u=e(29)("IE_PROTO"),a=function(){},c="prototype",f=function(){var t,n=e(42)("iframe"),r=i.length,o="<",u=">";for(n.style.display="none",e(97).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),f=t.F;r--;)delete f[c][i[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[c]=r(t),e=new a,a[c]=null,e[u]=t):e=f(),void 0===n?e:o(e,n)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(3).f,o=e(7),i=e(1)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(30)("keys"),o=e(18);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(2),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(23);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(13);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(2),o=e(0),i=e(25),u=e(35),a=e(3).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(1)},function(t,n,e){"use strict";var r=e(109)(!0);e(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";function r(t){return!!t&&t.______serializedFunctionCall===!0}n.a=r},function(t,n,e){"use strict";function r(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return{functionIds:[t].concat(e),type:y.FunctionRequest}}function o(t){return{result:t,type:y.WorkerResult}}function i(t){var n={},e=!0,r=!1,o=void 0;try{for(var i,u=h()(v()(t));!(e=(i=u.next()).done);e=!0){var a=i.value;n[a]=l()(t[a])}}catch(t){r=!0,o=t}finally{try{!e&&u.return&&u.return()}finally{if(r)throw o}}return{error:n,type:y.FunctionExecutionError}}function u(t){return t.type===y.ScheduleTask}function a(t){return t.type===y.InitializeWorker}function c(t){return t.type===y.FunctionResponse}function f(t){return t.type===y.Stop}var s=e(71),l=e.n(s),p=e(74),v=e.n(p),d=e(16),h=e.n(d);n.c=r,n.f=o,n.e=i,n.b=u,n.a=a,n.d=c,n.g=f;var y;!function(t){t[t.InitializeWorker=0]="InitializeWorker",t[t.ScheduleTask=1]="ScheduleTask",t[t.FunctionRequest=2]="FunctionRequest",t[t.FunctionResponse=3]="FunctionResponse",t[t.WorkerResult=4]="WorkerResult",t[t.FunctionExecutionError=5]="FunctionExecutionError",t[t.Stop=6]="Stop"}(y||(y={}))},function(t,n,e){t.exports={default:e(81),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(39),i=r(o);n.default=function(t){return Array.isArray(t)?t:(0,i.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(78),i=r(o),u=e(77),a=r(u),c="function"==typeof a.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};n.default="function"==typeof a.default&&"symbol"===c(i.default)?function(t){return"undefined"==typeof t?"undefined":c(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":c(t)}},function(t,n,e){var r=e(13),o=e(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){t.exports=!e(5)&&!e(12)(function(){return 7!=Object.defineProperty(e(42)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){"use strict";var r=e(25),o=e(6),i=e(52),u=e(9),a=e(7),c=e(14),f=e(102),s=e(28),l=e(49),p=e(1)("iterator"),v=!([].keys&&"next"in[].keys()),d="@@iterator",h="keys",y="values",g=function(){return this};t.exports=function(t,n,e,_,b,x,w){f(e,n,_);var m,O,S,E=function(t){if(!v&&t in j)return j[t];switch(t){case h:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},k=n+" Iterator",F=b==y,M=!1,j=t.prototype,P=j[p]||j[d]||b&&j[b],T=P||E(b),A=b?F?E("entries"):T:void 0,I="Array"==n?j.entries||P:P;if(I&&(S=l(I.call(new t)),S!==Object.prototype&&(s(S,k,!0),r||a(S,p)||u(S,p,g))),F&&P&&P.name!==y&&(M=!0,T=function(){return P.call(this)}),r&&!w||!v&&!M&&j[p]||u(j,p,T),c[n]=T,c[k]=g,b)if(m={values:F?T:E(y),keys:x?T:E(h),entries:A},w)for(O in m)O in j||i(j,O,m[O]);else o(o.P+o.F*(v||M),n,m);return m}},function(t,n,e){var r=e(27),o=e(15),i=e(8),u=e(33),a=e(7),c=e(43),f=Object.getOwnPropertyDescriptor;n.f=e(5)?f:function(t,n){if(t=i(t),n=u(n,!0),c)try{return f(t,n)}catch(t){}if(a(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(8),o=e(47).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?a(t):o(r(t))}},function(t,n,e){var r=e(50),o=e(24).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(7),o=e(32),i=e(29)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(7),o=e(8),i=e(93)(!1),u=e(29)("IE_PROTO");t.exports=function(t,n){var e,a=o(t),c=0,f=[];for(e in a)e!=u&&r(a,e)&&f.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~i(f,e)||f.push(e));return f}},function(t,n,e){var r=e(6),o=e(0),i=e(12);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){t.exports=e(9)},function(t,n,e){var r=e(31),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(94),o=e(1)("iterator"),i=e(14);t.exports=e(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){e(113);for(var r=e(2),o=e(9),i=e(14),u=e(1)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var f=a[c],s=r[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}},function(t,n,e){"use strict";var r=e(10),o=e.n(r),i=e(11),u=e.n(i),a=e(38),c=e(59);e.d(n,"a",function(){return f});var f=function(){function t(n){o()(this,t),this.functionCache=n,this.id=Number.NaN,this.state=new c.a(this)}return u()(t,[{key:"changeState",value:function(t){this.state=t,this.state.enter()}},{key:"onMessage",value:function(t){if(e.i(a.g)(t.data))close();else if(!this.state.onMessage(t))throw new Error("Message with type "+t.data.type+" cannot be handled by slave "+this)}},{key:"postMessage",value:function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n}(function(t){postMessage(t)})},{key:"toString",value:function(){return"BrowserSlave { id: "+this.id+", state: '"+this.state.name+"' }"}}]),t}()},function(t,n,e){"use strict";var r=e(20),o=e.n(r),i=e(10),u=e.n(i),a=e(11),c=e.n(a),f=e(70);e.d(n,"a",function(){return s});var s=function(){function t(){u()(this,t),this.cache=new f.a}return c()(t,[{key:"getFunction",value:function(t){return this.cache.get(t.identifier)}},{key:"registerFunction",value:function(t){var n=this.toFunction(t);return this.cache.set(t.id.identifier,n),n}},{key:"registerStaticFunction",value:function(t,n){if(this.has(t))throw new Error("The given function id '"+t.identifier+"' is already used by another function registration, the id needs to be unique.");this.cache.set(t.identifier,n)}},{key:"has",value:function(t){return this.cache.has(t.identifier)}},{key:"toFunction",value:function(t){if(t.name){var n=t.argumentNames.join(", "),e=Function.apply(void 0,["return function "+t.name+" ("+n+") { "+t.body+" }; "]);return e()}return Function.apply(void 0,[].concat(o()(t.argumentNames),[t.body]))}}]),t}()},function(t,n,e){"use strict";function r(t){t.registerStaticFunction(o.a.IDENTITY,i.a),t.registerStaticFunction(o.a.FILTER,u.a),t.registerStaticFunction(o.a.MAP,a.a),t.registerStaticFunction(o.a.PARALLEL_JOB_EXECUTOR,c.a),t.registerStaticFunction(o.a.RANGE,f.a),t.registerStaticFunction(o.a.REDUCE,s.a),t.registerStaticFunction(o.a.TO_ITERATOR,l.b)}var o=e(65),i=e(69),u=e(62),a=e(63),c=e(64),f=e(66),s=e(67),l=e(19);n.a=r},function(t,n,e){"use strict";var r=e(16),o=e.n(r),i=e(20),u=e.n(i),a=e(40),c=e.n(a),f=e(75),s=e.n(f),l=e(80),p=e.n(l),v=e(79),d=e.n(v),h=e(10),y=e.n(h),g=e(11),_=e.n(g),b=e(60),x=e(38);e.d(n,"a",function(){return m});var w=function(){function t(n,e){y()(this,t),this.name=n,this.slave=e}return _()(t,[{key:"enter",value:function(){}},{key:"onMessage",value:function(t){return!1}}]),t}(),m=function(t){function n(t){return y()(this,n),p()(this,(n.__proto__||s()(n)).call(this,"Default",t))}return d()(n,t),_()(n,[{key:"onMessage",value:function(t){return!!e.i(x.a)(t.data)&&(this.slave.id=t.data.workerId,this.slave.changeState(new O(this.slave)),!0)}}]),n}(w),O=function(t){function n(t){return y()(this,n),p()(this,(n.__proto__||s()(n)).call(this,"Idle",t))}return d()(n,t),_()(n,[{key:"onMessage",value:function(t){var n=this;if(!e.i(x.b)(t.data))return!1;var r=t.data.task,o=r.usedFunctionIds.filter(function(t){return!n.slave.functionCache.has(t)});if(0===o.length)this.slave.changeState(new E(this.slave,r));else{var i=c()(o),a=i[0],f=i.slice(1);this.slave.postMessage(x.c.apply(void 0,[a].concat(u()(f)))),this.slave.changeState(new S(this.slave,r))}return!0}}]),n}(w),S=function(t){function n(t,e){y()(this,n);var r=p()(this,(n.__proto__||s()(n)).call(this,"WaitingForFunctionDefinition",t));return r.task=e,r}return d()(n,t),_()(n,[{key:"onMessage",value:function(t){var n=t.data;if(e.i(x.d)(n)){if(n.missingFunctions.length>0){var r=n.missingFunctions.map(function(t){return t.identifier}).join(", ");this.slave.postMessage(e.i(x.e)(new Error("The function ids ["+r+"] could not be resolved by slave "+this.slave.id+"."))),this.slave.changeState(new O(this.slave))}else{var i=!0,u=!1,a=void 0;try{for(var c,f=o()(n.functions);!(i=(c=f.next()).done);i=!0){var s=c.value;this.slave.functionCache.registerFunction(s)}}catch(t){u=!0,a=t}finally{try{!i&&f.return&&f.return()}finally{if(u)throw a}}this.slave.changeState(new E(this.slave,this.task))}return!0}return!1}}]),n}(w),E=function(t){function n(t,e){y()(this,n);var r=p()(this,(n.__proto__||s()(n)).call(this,"Executing",t));return r.task=e,r}return d()(n,t),_()(n,[{key:"enter",value:function(){var t=new b.a(this.slave.functionCache);try{var n=t.deserializeFunctionCall(this.task.main),r=n({functionCallDeserializer:t});this.slave.postMessage(e.i(x.f)(r))}catch(t){this.slave.postMessage(e.i(x.e)(t))}this.slave.changeState(new O(this.slave))}}]),n}(w)},function(t,n,e){"use strict";function r(t,n){return"function"==typeof t.bind?t.bind.apply(t,[void 0].concat(f()(n))):function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(void 0,n.concat(r))}}var o=e(10),i=e.n(o),u=e(11),a=e.n(u),c=e(20),f=e.n(c),s=e(37);e.d(n,"a",function(){return l});var l=function(){function t(n){i()(this,t),this.functionLookupTable=n}return a()(t,[{key:"deserializeFunctionCall",value:function(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.functionLookupTable.getFunction(t.functionId);if(!i)throw new Error("The function with the id "+t.functionId.identifier+" could not be retrieved while deserializing the function call. Is the function correctly registered?");var u=t.parameters||[];return o&&(u=u.map(function(t){return e.i(s.a)(t)?n.deserializeFunctionCall(t):t})),r(i,u)}}]),t}()},function(t,n,e){"use strict";function r(t,n){return{_______isFunctionId:!0,identifier:t+"-"+n}}n.a=r},function(t,n,e){"use strict";function r(t,n,e){return{next:function(){for(var r=void 0;!(r=t.next()).done;)if(n(r.value,e))return r;return r}}}n.a=r},function(t,n,e){"use strict";function r(t,n,e){return{next:function(){var r=t.next();return r.done?{done:!0}:{done:r.done,value:n(r.value,e)}}}}n.a=r},function(t,n,e){"use strict";function r(t,n){var r={},o=!0,i=!1,a=void 0;try{for(var s,l=u()(t.environments);!(o=(s=l.next()).done);o=!0){var p=s.value,v=void 0;v=e.i(c.a)(p)?n.deserializeFunctionCall(p)():p,e.i(f.a)(r,v)}}catch(t){i=!0,a=t}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}return e.i(f.a)({},{taskIndex:t.taskIndex,valuesPerTask:t.valuesPerTask},r)}function o(t,n){var o=n.functionCallDeserializer,i=r(t,o),c=o.deserializeFunctionCall(t.generator,!0),f=c(i),s=!0,l=!1,p=void 0;try{for(var v,d=u()(t.operations);!(s=(v=d.next()).done);s=!0){var h=v.value,y=o.deserializeFunctionCall(h.iterator),g=o.deserializeFunctionCall(h.iteratee);f=y(f,g,i)}}catch(t){l=!0,p=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw p}}return e.i(a.a)(f)}var i=e(16),u=e.n(i),a=e(19),c=e(37),f=e(68);n.a=o},function(t,n,e){"use strict";var r=e(61);e.d(n,"a",function(){return o});var o={FILTER:e.i(r.a)("parallel",0),IDENTITY:e.i(r.a)("parallel",1),MAP:e.i(r.a)("parallel",2),PARALLEL_JOB_EXECUTOR:e.i(r.a)("parallel",3),RANGE:e.i(r.a)("parallel",4),REDUCE:e.i(r.a)("parallel",5),TIMES:e.i(r.a)("parallel",6),TO_ITERATOR:e.i(r.a)("parallel",7)}},function(t,n,e){"use strict";function r(t,n,e){var r=n-t,o=Math.max(Math.floor(r/(e||1)),0),i=t;return{next:function(){var t=i;return i+=e,0!==o--?{done:!1,value:t}:{done:!0}}}}n.a=r},function(t,n,e){"use strict";function r(t,n,r,i){for(var u=t,a=void 0;!(a=n.next()).done;)u=r(u,a.value,i);return e.i(o.b)([u])}var o=e(19);n.a=r},function(t,n,e){"use strict";function r(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];if(null==t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(var o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i)for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(t[u]=i[u])}return t}n.a=r},function(t,n,e){"use strict";function r(t){return t}n.a=r},function(t,n,e){"use strict";var r=e(10),o=e.n(r),i=e(11),u=e.n(i);e.d(n,"a",function(){return a});var a=function(){function t(){o()(this,t),this.data={}}return u()(t,[{key:"get",value:function(t){var n=this.toInternalKey(t);return this.has(t)?this.data[n]:void 0}},{key:"has",value:function(t){return this.hasOwnProperty.call(this.data,this.toInternalKey(t))}},{key:"set",value:function(t,n){this.data[this.toInternalKey(t)]=n}},{key:"clear",value:function(){this.data={}}},{key:"toInternalKey",value:function(t){return"@"+t}}]),t}()},function(t,n,e){t.exports={default:e(83),__esModule:!0}},function(t,n,e){t.exports={default:e(84),__esModule:!0}},function(t,n,e){t.exports={default:e(85),__esModule:!0}},function(t,n,e){t.exports={default:e(86),__esModule:!0}},function(t,n,e){t.exports={default:e(87),__esModule:!0}},function(t,n,e){t.exports={default:e(88),__esModule:!0}},function(t,n,e){t.exports={default:e(89),__esModule:!0}},function(t,n,e){t.exports={default:e(90),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(76),i=r(o),u=e(72),a=r(u),c=e(41),f=r(c);n.default=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof n?"undefined":(0,f.default)(n)));t.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(i.default?(0,i.default)(t,n):t.__proto__=n)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(41),i=r(o);n.default=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==("undefined"==typeof n?"undefined":(0,i.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){e(36),e(112),t.exports=e(0).Array.from},function(t,n,e){e(55),e(36),t.exports=e(111)},function(t,n,e){var r=e(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,n,e){e(114);var r=e(0).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(115);var r=e(0).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){e(116);var r=e(0).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(117),t.exports=e(0).Object.getPrototypeOf},function(t,n,e){e(118),t.exports=e(0).Object.setPrototypeOf},function(t,n,e){e(120),e(119),e(121),e(122),t.exports=e(0).Symbol},function(t,n,e){e(36),e(55),t.exports=e(35).f("iterator")},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(8),o=e(53),i=e(110);t.exports=function(t){return function(n,e,u){var a,c=r(n),f=o(c.length),s=i(u,f);if(t&&e!=e){for(;f>s;)if(a=c[s++],a!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(21),o=e(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),o))?e:i?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){"use strict";var r=e(3),o=e(15);t.exports=function(t,n,e){n in t?r.f(t,n,o(0,e)):t[n]=e}},function(t,n,e){var r=e(17),o=e(48),i=e(27);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,a=e(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&n.push(u);return n}},function(t,n,e){t.exports=e(2).document&&document.documentElement},function(t,n,e){var r=e(21);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(14),o=e(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){var r=e(21);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(4);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},function(t,n,e){"use strict";var r=e(26),o=e(15),i=e(28),u={};e(9)(u,e(1)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:e=!0}},i[r]=function(){return u},t(i)}catch(t){}return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(17),o=e(8);t.exports=function(t,n){for(var e,i=o(t),u=r(i),a=u.length,c=0;a>c;)if(i[e=u[c++]]===n)return e}},function(t,n,e){var r=e(18)("meta"),o=e(13),i=e(7),u=e(3).f,a=0,c=Object.isExtensible||function(){return!0},f=!e(12)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},v=function(t){return f&&d.NEED&&c(t)&&!i(t,r)&&s(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:v}},function(t,n,e){var r=e(3),o=e(4),i=e(17);t.exports=e(5)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),a=u.length,c=0;a>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(13),o=e(4),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(22)(Function.call,e(45).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n,e){var r=e(31),o=e(23);t.exports=function(t){return function(n,e){var i,u,a=String(o(n)),c=r(e),f=a.length;return c<0||c>=f?t?"":void 0:(i=a.charCodeAt(c),i<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r=e(31),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(4),o=e(54);t.exports=e(0).getIterator=function(t){var n=o(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return r(n.call(t))}},function(t,n,e){"use strict";var r=e(22),o=e(6),i=e(32),u=e(101),a=e(99),c=e(53),f=e(95),s=e(54);o(o.S+o.F*!e(103)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,o,l,p=i(t),v="function"==typeof this?this:Array,d=arguments.length,h=d>1?arguments[1]:void 0,y=void 0!==h,g=0,_=s(p);if(y&&(h=r(h,d>2?arguments[2]:void 0,2)),void 0==_||v==Array&&a(_))for(n=c(p.length),e=new v(n);n>g;g++)f(e,g,y?h(p[g],g):p[g]);else for(l=_.call(p),e=new v;!(o=l.next()).done;g++)f(e,g,y?u(l,h,[o.value,g],!0):o.value);return e.length=g,e}})},function(t,n,e){"use strict";var r=e(92),o=e(104),i=e(14),u=e(8);t.exports=e(44)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(6);r(r.S,"Object",{create:e(26)})},function(t,n,e){var r=e(6);r(r.S+r.F*!e(5),"Object",{defineProperty:e(3).f})},function(t,n,e){e(51)("getOwnPropertyNames",function(){return e(46).f})},function(t,n,e){var r=e(32),o=e(49);e(51)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(6);r(r.S,"Object",{setPrototypeOf:e(108).set})},function(t,n){},function(t,n,e){"use strict";var r=e(2),o=e(7),i=e(5),u=e(6),a=e(52),c=e(106).KEY,f=e(12),s=e(30),l=e(28),p=e(18),v=e(1),d=e(35),h=e(34),y=e(105),g=e(96),_=e(100),b=e(4),x=e(8),w=e(33),m=e(15),O=e(26),S=e(46),E=e(45),k=e(3),F=e(17),M=E.f,j=k.f,P=S.f,T=r.Symbol,A=r.JSON,I=A&&A.stringify,R="prototype",C=v("_hidden"),N=v("toPrimitive"),z={}.propertyIsEnumerable,L=s("symbol-registry"),D=s("symbols"),W=s("op-symbols"),J=Object[R],K="function"==typeof T,U=r.QObject,B=!U||!U[R]||!U[R].findChild,G=i&&f(function(){return 7!=O(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=M(J,n);r&&delete J[n],j(t,n,e),r&&t!==J&&j(J,n,r)}:j,q=function(t){var n=D[t]=O(T[R]);return n._k=t,n},Y=K&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},X=function(t,n,e){return t===J&&X(W,n,e),b(t),n=w(n,!0),b(e),o(D,n)?(e.enumerable?(o(t,C)&&t[C][n]&&(t[C][n]=!1),e=O(e,{enumerable:m(0,!1)})):(o(t,C)||j(t,C,m(1,{})),t[C][n]=!0),G(t,n,e)):j(t,n,e)},Q=function(t,n){b(t);for(var e,r=g(n=x(n)),o=0,i=r.length;i>o;)X(t,e=r[o++],n[e]);return t},H=function(t,n){return void 0===n?O(t):Q(O(t),n)},V=function(t){var n=z.call(this,t=w(t,!0));return!(this===J&&o(D,t)&&!o(W,t))&&(!(n||!o(this,t)||!o(D,t)||o(this,C)&&this[C][t])||n)},Z=function(t,n){if(t=x(t),n=w(n,!0),t!==J||!o(D,n)||o(W,n)){var e=M(t,n);return!e||!o(D,n)||o(t,C)&&t[C][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=P(x(t)),r=[],i=0;e.length>i;)o(D,n=e[i++])||n==C||n==c||r.push(n);return r},tt=function(t){for(var n,e=t===J,r=P(e?W:x(t)),i=[],u=0;r.length>u;)!o(D,n=r[u++])||e&&!o(J,n)||i.push(D[n]);return i};K||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===J&&n.call(W,e),o(this,C)&&o(this[C],t)&&(this[C][t]=!1),G(this,t,m(1,e))};return i&&B&&G(J,t,{configurable:!0,set:n}),q(t)},a(T[R],"toString",function(){return this._k}),E.f=Z,k.f=X,e(47).f=S.f=$,e(27).f=V,e(48).f=tt,i&&!e(25)&&a(J,"propertyIsEnumerable",V,!0),d.f=function(t){return q(v(t))}),u(u.G+u.W+u.F*!K,{Symbol:T});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)v(nt[et++]);for(var nt=F(v.store),et=0;nt.length>et;)h(nt[et++]);u(u.S+u.F*!K,"Symbol",{for:function(t){return o(L,t+="")?L[t]:L[t]=T(t)},keyFor:function(t){if(Y(t))return y(L,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),u(u.S+u.F*!K,"Object",{create:H,defineProperty:X,defineProperties:Q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),A&&u(u.S+u.F*(!K||f(function(){var t=T();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Y(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return n=r[1],"function"==typeof n&&(e=n),!e&&_(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!Y(n))return n}),r[1]=n,I.apply(A,r)}}}),T[R][N]||e(9)(T[R],N,T[R].valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(34)("asyncIterator")},function(t,n,e){e(34)("observable")},function(t,n,e){"use strict";var r=e(56),o=e(57),i=e(58),slaveFunctionLookupTable=new o.a;e.i(i.a)(slaveFunctionLookupTable);/** @preserve WORKER_SLAVE_STATIC_FUNCTIONS_PLACEHOLDER */ | ||
var u=new r.a(slaveFunctionLookupTable);onmessage=function(){u.onMessage.apply(u,arguments)}}]); | ||
//# sourceMappingURL=worker-slave.parallel.js.map |
{ | ||
"name": "parallel-es", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Simple parallelization for EcmaScript", | ||
@@ -9,7 +9,7 @@ "main": "./dist/node.parallel.js", | ||
"scripts": { | ||
"build": "cross-env NODE_ENV=prod webpack --progress && cross-env NODE_ENV=prod-es6 webpack --progress && npm run build:declarations", | ||
"build": "cross-env NODE_ENV=prod webpack --progress && npm run build:declarations", | ||
"build:doc": "typedoc --out ./docs --module umd --target es6 --name \"Parallel ES\" ./src", | ||
"build:declarations": "tsc --declaration --outDir ./tmp -p tsconfig.json && copyfiles -u 1 './tmp/**/*.d.ts' ./dist", | ||
"prepublish": "npm run-script build", | ||
"start": "cross-env NODE_ENV=dev webpack --progress", | ||
"start": "cross-env NODE_ENV=dev webpack --progress --watch", | ||
"test": "cross-env NODE_ENV=test-ci karma start --single-run && npm run coverage:remap", | ||
@@ -16,0 +16,0 @@ "test:watch": "cross-env NODE_ENV=test karma start", |
@@ -5,2 +5,19 @@ import {IFunctionLookupTable} from "./function-lookup-table"; | ||
/** | ||
* Binds the function to undefined and the given params. Uses Function.bind if available or creates its own wrapper | ||
* if not. | ||
* @param fn the function to bind to the given parameters | ||
* @param params the parameters to which the function is partially bound | ||
* @returns a partially bound function | ||
*/ | ||
function bind<TResult>(fn: Function, params: any[]): (...args: any[]) => TResult { | ||
if (typeof(fn.bind) === "function") { | ||
return fn.bind(undefined, ...params); | ||
} | ||
return function bound(...additionalParams: any[]) { | ||
return fn.apply(undefined, params.concat(additionalParams)) as TResult; | ||
}; | ||
} | ||
/** | ||
* Deserializer for a {@link ISerializedFunctionCall}. | ||
@@ -38,6 +55,4 @@ */ | ||
return function (...additionalParams: any[]) { | ||
return func.apply(undefined, params.concat(additionalParams)) as TResult; | ||
}; | ||
return bind<TResult>(func, params); | ||
} | ||
} |
@@ -53,3 +53,3 @@ import {IFunctionLookupTable} from "./function-lookup-table"; | ||
const args = definition.argumentNames.join(", "); | ||
const wrapper = Function.apply(undefined, [`return function ${definition.name} (${args}) { ${definition.body}}` ]); | ||
const wrapper = Function.apply(undefined, [`return function ${definition.name} (${args}) { ${definition.body} }; ` ]); | ||
return wrapper(); | ||
@@ -56,0 +56,0 @@ } |
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
2568196
12185